@arcgis/charts-components 5.1.0-next.67 → 5.1.0-next.69

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 (280) hide show
  1. package/dist/cdn/{3ZHL4GR5.js → 2O53DY2A.js} +1 -1
  2. package/dist/cdn/{W6T7TNP5.js → 2VF6ASX3.js} +1 -1
  3. package/dist/cdn/{ZRDVJBTQ.js → 37VJSRAS.js} +1 -1
  4. package/dist/cdn/{GOFQJ3EM.js → 3GG6X5CL.js} +1 -1
  5. package/dist/cdn/{EGHVQUKF.js → 3QBU6MQ5.js} +1 -1
  6. package/dist/cdn/{2333HQZZ.js → 3T2FVDR7.js} +1 -1
  7. package/dist/cdn/{FOSGOEWY.js → 43R5PVEI.js} +1 -1
  8. package/dist/cdn/{N4IITAR7.js → 4C32OYQJ.js} +1 -1
  9. package/dist/cdn/{MP7HYYJR.js → 4IFQNR3G.js} +1 -1
  10. package/dist/cdn/{EF4GVHB2.js → 5E5RDZ2L.js} +1 -1
  11. package/dist/cdn/{WNEW6UZS.js → 5MI7J6SB.js} +1 -1
  12. package/dist/cdn/{EP5VVTAX.js → 6O64ICA7.js} +1 -1
  13. package/dist/cdn/{NEFPCTH3.js → 75VR3DZF.js} +1 -1
  14. package/dist/cdn/{L2NQ6Z3Z.js → 7JVMWMV6.js} +1 -1
  15. package/dist/cdn/{32WPXK4K.js → 7RXXWIVB.js} +1 -1
  16. package/dist/cdn/{JKADR7OP.js → BK5QIDWU.js} +1 -1
  17. package/dist/cdn/{6RKNXP6N.js → BN5RF3B3.js} +1 -1
  18. package/dist/cdn/{XFXE7IY2.js → BZLRQYWQ.js} +1 -1
  19. package/dist/cdn/{LRQVALTM.js → CG5LNWQP.js} +1 -1
  20. package/dist/cdn/{4BDLJPIB.js → CXB3OEU5.js} +1 -1
  21. package/dist/cdn/{GXQDCOI4.js → DDTZK4ZS.js} +2 -2
  22. package/dist/cdn/{ITB7EYBT.js → DG3UIWBJ.js} +1 -1
  23. package/dist/cdn/{5KOFW5BO.js → DH4KFHEJ.js} +1 -1
  24. package/dist/cdn/DPTNMDQ2.js +2 -0
  25. package/dist/cdn/{YHUBOYF5.js → DVFYTNTP.js} +1 -1
  26. package/dist/cdn/{KYFOP4WA.js → EEPB3VMU.js} +1 -1
  27. package/dist/cdn/{35NR6IHU.js → EFK5PLEA.js} +1 -1
  28. package/dist/cdn/{R6XIAIZH.js → EPJXASVH.js} +1 -1
  29. package/dist/cdn/{BVK4ULHH.js → F3HSSBGO.js} +1 -1
  30. package/dist/cdn/{QT24FAYQ.js → FA2MNOK5.js} +1 -1
  31. package/dist/cdn/{ISNJYFT7.js → FBULWKPL.js} +1 -1
  32. package/dist/cdn/{KZ37E2J3.js → FDZIENVW.js} +7 -7
  33. package/dist/cdn/{75FO5HPY.js → FODXH222.js} +1 -1
  34. package/dist/cdn/{LT62HS4S.js → FOGT5KUE.js} +1 -1
  35. package/dist/cdn/FXXH57MZ.js +2 -0
  36. package/dist/cdn/{TZJGC4RS.js → G6SILWNJ.js} +1 -1
  37. package/dist/cdn/{ZIXBICPN.js → GN6WTMJI.js} +1 -1
  38. package/dist/cdn/{BXDRHDLV.js → GP4QLK4N.js} +1 -1
  39. package/dist/cdn/{AALOFAWG.js → GPH4IVVC.js} +1 -1
  40. package/dist/cdn/{6GURKNO2.js → H5NXFSSR.js} +1 -1
  41. package/dist/cdn/{HW42VNOU.js → HCQXHKNP.js} +1 -1
  42. package/dist/cdn/{J66D7A5G.js → HMOVBIG5.js} +1 -1
  43. package/dist/cdn/{BXNLQMSP.js → HPVMWOTJ.js} +1 -1
  44. package/dist/cdn/{YQTJQ5J7.js → IYFHTQYZ.js} +1 -1
  45. package/dist/cdn/{LGAAHH35.js → J4JNCBCR.js} +1 -1
  46. package/dist/cdn/{7Y5FTMNT.js → JLGME4J6.js} +1 -1
  47. package/dist/cdn/{OPDQRTZL.js → K64KZFUI.js} +1 -1
  48. package/dist/cdn/{TJA5FMLP.js → KBRCEEW3.js} +1 -1
  49. package/dist/cdn/{LIXBROPH.js → KG55SHPZ.js} +1 -1
  50. package/dist/cdn/{PGJD4Q7S.js → KG6VAY4O.js} +1 -1
  51. package/dist/cdn/{RDBNRYTF.js → KN7ESG7U.js} +1 -1
  52. package/dist/cdn/{WWK3UOMD.js → KY4NYHSX.js} +1 -1
  53. package/dist/cdn/{KOLQWSYX.js → L2GEZVU6.js} +1 -1
  54. package/dist/cdn/{RX6QOYCR.js → L3OQ2NIJ.js} +1 -1
  55. package/dist/cdn/{YPSEQYTV.js → L55YFWP2.js} +1 -1
  56. package/dist/cdn/L6BCDBFS.js +58 -0
  57. package/dist/cdn/{MUCSVAGN.js → LCTOFU34.js} +1 -1
  58. package/dist/cdn/{PG36SBDU.js → LMQBVW4Y.js} +1 -1
  59. package/dist/cdn/{WBGGAC4P.js → LZNL4CV3.js} +7 -7
  60. package/dist/cdn/{PLBPOYRN.js → N4NXC5VP.js} +1 -1
  61. package/dist/cdn/{4HRFZU2C.js → NMN7APV2.js} +1 -1
  62. package/dist/cdn/{PL24HKI7.js → NUQWD6MH.js} +1 -1
  63. package/dist/cdn/{4NYTLY62.js → O5VGWELF.js} +1 -1
  64. package/dist/cdn/{O7ZCEGVR.js → O6CQEJXL.js} +1 -1
  65. package/dist/cdn/{NVV2EBVI.js → OSFZ7E4K.js} +1 -1
  66. package/dist/cdn/{YNRVU2AU.js → P4UM7XJU.js} +1 -1
  67. package/dist/cdn/{I6IYDKWG.js → P7SJ5F7P.js} +1 -1
  68. package/dist/cdn/{FFXTYOTF.js → PAJGACUC.js} +1 -1
  69. package/dist/cdn/{VRXVXPKS.js → PKAKWMPJ.js} +1 -1
  70. package/dist/cdn/{XV7GLCBP.js → PTZSDKNC.js} +1 -1
  71. package/dist/cdn/{SNZF4LXV.js → QZLISK4V.js} +1 -1
  72. package/dist/cdn/{Y3NWCVUF.js → R655ROJC.js} +1 -1
  73. package/dist/cdn/{JMMW4Z5P.js → RVLBXAVH.js} +1 -1
  74. package/dist/cdn/{EWLMYFSA.js → SDY2AQGU.js} +1 -1
  75. package/dist/cdn/{HLYRVLOY.js → SGF2PV4P.js} +1 -1
  76. package/dist/cdn/{6TKG7ZF7.js → SRM5VT2M.js} +1 -1
  77. package/dist/cdn/{7YDVVZJU.js → SUGR2WYY.js} +1 -1
  78. package/dist/cdn/{2NIOPMWE.js → SYAK37D4.js} +1 -1
  79. package/dist/cdn/{7HGCX3PA.js → T7YV57EF.js} +1 -1
  80. package/dist/cdn/{Z4GL4EF6.js → TPNWVUVU.js} +1 -1
  81. package/dist/cdn/{VWCFL5P6.js → U4N2MVS4.js} +1 -1
  82. package/dist/cdn/U7L3L6IV.js +2 -0
  83. package/dist/cdn/{5PSQ7OKJ.js → UNQKJNUN.js} +1 -1
  84. package/dist/cdn/{25LAV2UI.js → VA2XXKOF.js} +1 -1
  85. package/dist/cdn/{JTL73F75.js → VDOYZJKE.js} +1 -1
  86. package/dist/cdn/{QEPCR5IP.js → VGZDKASC.js} +1 -1
  87. package/dist/cdn/{2J5IWBKU.js → VLCL2UJQ.js} +1 -1
  88. package/dist/cdn/{GDRC3J3W.js → VRMFR6JD.js} +1 -1
  89. package/dist/cdn/{G56RB2UI.js → VRTAYKLG.js} +1 -1
  90. package/dist/cdn/{DHCFSWRJ.js → VSLWVFL4.js} +1 -1
  91. package/dist/cdn/{NEEKPRM4.js → VXXFXJV7.js} +1 -1
  92. package/dist/cdn/WATBJBBK.js +2 -0
  93. package/dist/cdn/{W5VC5OCC.js → WE2MDZV5.js} +1 -1
  94. package/dist/cdn/{CCNHG4LT.js → WFGPHSOB.js} +1 -1
  95. package/dist/cdn/{IN3H6ULU.js → WQTAH6YL.js} +1 -1
  96. package/dist/cdn/{RQLVJM4J.js → WUE3B4N6.js} +1 -1
  97. package/dist/cdn/{2E5ZABQ4.js → XB6PLTZP.js} +1 -1
  98. package/dist/cdn/XBFMFWAP.js +2 -0
  99. package/dist/cdn/{I54YDLFZ.js → XDXT62JB.js} +1 -1
  100. package/dist/cdn/{6GVGNQYH.js → XZTMAM5W.js} +1 -1
  101. package/dist/cdn/{ZXIRDWJW.js → YAVQSNZ6.js} +1 -1
  102. package/dist/cdn/{AMLWVAHN.js → YYMXG6GF.js} +1 -1
  103. package/dist/cdn/ZU4JDSMJ.js +2 -0
  104. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.ar.json +1 -1
  105. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.bg.json +1 -1
  106. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.bs.json +1 -1
  107. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.ca.json +1 -1
  108. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.cs.json +1 -1
  109. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.da.json +1 -1
  110. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.de.json +1 -1
  111. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.el.json +1 -1
  112. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.es.json +1 -1
  113. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.et.json +1 -1
  114. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.fi.json +1 -1
  115. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.fr.json +1 -1
  116. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.he.json +1 -1
  117. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.hr.json +1 -1
  118. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.hu.json +1 -1
  119. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.id.json +1 -1
  120. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.it.json +1 -1
  121. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.ja.json +1 -1
  122. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.ko.json +1 -1
  123. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.lt.json +1 -1
  124. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.lv.json +1 -1
  125. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.nl.json +1 -1
  126. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.no.json +1 -1
  127. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.pl.json +1 -1
  128. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.pt-BR.json +1 -1
  129. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.pt-PT.json +1 -1
  130. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.ro.json +1 -1
  131. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.ru.json +1 -1
  132. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.sk.json +1 -1
  133. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.sl.json +1 -1
  134. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.sr.json +1 -1
  135. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.sv.json +1 -1
  136. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.th.json +1 -1
  137. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.tr.json +1 -1
  138. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.uk.json +1 -1
  139. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.vi.json +1 -1
  140. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.zh-CN.json +1 -1
  141. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.zh-HK.json +1 -1
  142. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.zh-TW.json +1 -1
  143. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.ar.json +1 -1
  144. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.bg.json +1 -1
  145. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.bs.json +1 -1
  146. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.ca.json +1 -1
  147. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.cs.json +1 -1
  148. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.da.json +1 -1
  149. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.de.json +1 -1
  150. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.el.json +1 -1
  151. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.es.json +1 -1
  152. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.et.json +1 -1
  153. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.fi.json +1 -1
  154. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.fr.json +1 -1
  155. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.he.json +1 -1
  156. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.hr.json +1 -1
  157. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.hu.json +1 -1
  158. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.id.json +1 -1
  159. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.it.json +1 -1
  160. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.ja.json +1 -1
  161. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.ko.json +1 -1
  162. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.lt.json +1 -1
  163. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.lv.json +1 -1
  164. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.nl.json +1 -1
  165. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.no.json +1 -1
  166. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.pl.json +1 -1
  167. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.pt-BR.json +1 -1
  168. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.pt-PT.json +1 -1
  169. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.ro.json +1 -1
  170. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.ru.json +1 -1
  171. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.sk.json +1 -1
  172. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.sl.json +1 -1
  173. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.sr.json +1 -1
  174. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.sv.json +1 -1
  175. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.th.json +1 -1
  176. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.tr.json +1 -1
  177. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.uk.json +1 -1
  178. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.vi.json +1 -1
  179. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.zh-CN.json +1 -1
  180. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.zh-HK.json +1 -1
  181. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.zh-TW.json +1 -1
  182. package/dist/cdn/assets/common/t9n/messages.ar.json +1 -1
  183. package/dist/cdn/assets/common/t9n/messages.bg.json +1 -1
  184. package/dist/cdn/assets/common/t9n/messages.bs.json +1 -1
  185. package/dist/cdn/assets/common/t9n/messages.ca.json +1 -1
  186. package/dist/cdn/assets/common/t9n/messages.cs.json +1 -1
  187. package/dist/cdn/assets/common/t9n/messages.da.json +1 -1
  188. package/dist/cdn/assets/common/t9n/messages.de.json +1 -1
  189. package/dist/cdn/assets/common/t9n/messages.el.json +1 -1
  190. package/dist/cdn/assets/common/t9n/messages.es.json +1 -1
  191. package/dist/cdn/assets/common/t9n/messages.et.json +1 -1
  192. package/dist/cdn/assets/common/t9n/messages.fi.json +1 -1
  193. package/dist/cdn/assets/common/t9n/messages.fr.json +1 -1
  194. package/dist/cdn/assets/common/t9n/messages.he.json +1 -1
  195. package/dist/cdn/assets/common/t9n/messages.hr.json +1 -1
  196. package/dist/cdn/assets/common/t9n/messages.hu.json +1 -1
  197. package/dist/cdn/assets/common/t9n/messages.id.json +1 -1
  198. package/dist/cdn/assets/common/t9n/messages.it.json +1 -1
  199. package/dist/cdn/assets/common/t9n/messages.ja.json +1 -1
  200. package/dist/cdn/assets/common/t9n/messages.ko.json +1 -1
  201. package/dist/cdn/assets/common/t9n/messages.lt.json +1 -1
  202. package/dist/cdn/assets/common/t9n/messages.lv.json +1 -1
  203. package/dist/cdn/assets/common/t9n/messages.nl.json +1 -1
  204. package/dist/cdn/assets/common/t9n/messages.no.json +1 -1
  205. package/dist/cdn/assets/common/t9n/messages.pl.json +1 -1
  206. package/dist/cdn/assets/common/t9n/messages.pt-BR.json +1 -1
  207. package/dist/cdn/assets/common/t9n/messages.pt-PT.json +1 -1
  208. package/dist/cdn/assets/common/t9n/messages.ro.json +1 -1
  209. package/dist/cdn/assets/common/t9n/messages.ru.json +1 -1
  210. package/dist/cdn/assets/common/t9n/messages.sk.json +1 -1
  211. package/dist/cdn/assets/common/t9n/messages.sl.json +1 -1
  212. package/dist/cdn/assets/common/t9n/messages.sr.json +1 -1
  213. package/dist/cdn/assets/common/t9n/messages.sv.json +1 -1
  214. package/dist/cdn/assets/common/t9n/messages.th.json +1 -1
  215. package/dist/cdn/assets/common/t9n/messages.tr.json +1 -1
  216. package/dist/cdn/assets/common/t9n/messages.uk.json +1 -1
  217. package/dist/cdn/assets/common/t9n/messages.vi.json +1 -1
  218. package/dist/cdn/assets/common/t9n/messages.zh-CN.json +1 -1
  219. package/dist/cdn/assets/common/t9n/messages.zh-HK.json +1 -1
  220. package/dist/cdn/assets/common/t9n/messages.zh-TW.json +1 -1
  221. package/dist/cdn/index.js +1 -1
  222. package/dist/chunks/index2.js +0 -1
  223. package/dist/chunks/interfaces.js +35 -43
  224. package/dist/chunks/serial-chart-data.js +4358 -10456
  225. package/dist/components/arcgis-chart/customElement.d.ts +23 -1
  226. package/dist/components/arcgis-chart/customElement.js +12625 -6626
  227. package/dist/components/arcgis-charts-config-guide/customElement.js +0 -1
  228. package/dist/docs/api.json +1 -1
  229. package/dist/docs/docs.json +1 -1
  230. package/dist/docs/vscode.html-custom-data.json +1 -1
  231. package/dist/docs/web-types.json +1 -1
  232. package/dist/json-schema/index.d.ts +2 -2
  233. package/dist/loader.js +1 -1
  234. package/dist/types/lumina.d.ts +1 -1
  235. package/dist/types/preact.d.ts +1 -1
  236. package/dist/types/react.d.ts +1 -1
  237. package/dist/types/stencil.d.ts +1 -1
  238. package/package.json +4 -4
  239. package/dist/cdn/4F37LPEF.js +0 -2
  240. package/dist/cdn/CUAIY5DK.js +0 -37
  241. package/dist/cdn/ECRW3QJF.js +0 -2
  242. package/dist/cdn/GKYHQ5OF.js +0 -2
  243. package/dist/cdn/JDQ6BNXO.js +0 -2
  244. package/dist/cdn/PGVNBWSU.js +0 -23
  245. package/dist/cdn/TLSTPQNA.js +0 -2
  246. /package/dist/cdn/{UV5SARBS.js → 2BS7WCYC.js} +0 -0
  247. /package/dist/cdn/{2NTJWJIL.js → 2KVU566F.js} +0 -0
  248. /package/dist/cdn/{K2B3HXTF.js → 2QPNL7Y2.js} +0 -0
  249. /package/dist/cdn/{TCBSBBWS.js → 3WRAGIMC.js} +0 -0
  250. /package/dist/cdn/{VSGEUWLS.js → 5C7U7CYQ.js} +0 -0
  251. /package/dist/cdn/{5GTDAUJP.js → 5MWQVGQZ.js} +0 -0
  252. /package/dist/cdn/{IJV4GPC2.js → 6IQ2FQTN.js} +0 -0
  253. /package/dist/cdn/{T3SPP6VD.js → 76DFMYG4.js} +0 -0
  254. /package/dist/cdn/{DBZZDGFN.js → B4MAGTAP.js} +0 -0
  255. /package/dist/cdn/{FE6JBDVY.js → B55FRUGA.js} +0 -0
  256. /package/dist/cdn/{TQXS55IG.js → B56AXPLG.js} +0 -0
  257. /package/dist/cdn/{L3GOQ5OW.js → CAOSVB4R.js} +0 -0
  258. /package/dist/cdn/{IYCUGRVF.js → DQUKRY3M.js} +0 -0
  259. /package/dist/cdn/{PXARJZNJ.js → FFW6SQJB.js} +0 -0
  260. /package/dist/cdn/{5BCD22Z4.js → GDLCLCPQ.js} +0 -0
  261. /package/dist/cdn/{UFA45G3D.js → HPONDACN.js} +0 -0
  262. /package/dist/cdn/{S4E3LX4H.js → HQMC6YQ6.js} +0 -0
  263. /package/dist/cdn/{PBJ6N3WD.js → JFGFCKMZ.js} +0 -0
  264. /package/dist/cdn/{UWTDBFUQ.js → K437RPD5.js} +0 -0
  265. /package/dist/cdn/{X6O3IA2W.js → K7ALB3FX.js} +0 -0
  266. /package/dist/cdn/{HOLFKH7Q.js → KAQTKYYM.js} +0 -0
  267. /package/dist/cdn/{63Y6JME7.js → KCPSHLUL.js} +0 -0
  268. /package/dist/cdn/{LSVE7QXZ.js → LJCSR2IZ.js} +0 -0
  269. /package/dist/cdn/{BZOGCJZN.js → LXIM3RKN.js} +0 -0
  270. /package/dist/cdn/{P2QEICEQ.js → M2XPJIOQ.js} +0 -0
  271. /package/dist/cdn/{VBEHPXA6.js → MOBZATNH.js} +0 -0
  272. /package/dist/cdn/{ZG6HIUYV.js → NEJTN4I6.js} +0 -0
  273. /package/dist/cdn/{2XF6LPQI.js → PYCYFLNO.js} +0 -0
  274. /package/dist/cdn/{YFFVERLU.js → Q2TVJHZD.js} +0 -0
  275. /package/dist/cdn/{7WFAXHLM.js → QR3YISEA.js} +0 -0
  276. /package/dist/cdn/{QJT4EUS4.js → QZ3WZKSG.js} +0 -0
  277. /package/dist/cdn/{4BLJCGW5.js → SQPFZZKR.js} +0 -0
  278. /package/dist/cdn/{C2AG56ML.js → SWOSRENC.js} +0 -0
  279. /package/dist/cdn/{FJQT5KJP.js → VQJLB7UN.js} +0 -0
  280. /package/dist/cdn/{DOJQQMHT.js → XD62BPHL.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{D as We,E as gr,a as Ha,d as Ni,g as Ga,k as Qa,l as yr,n as ks,r as Za,t as me,u as Zt,v as At,w as Et,x as oe,y as be,z as de}from"./Y7IQV44J.js";import{d as Vs,f as bt,g as vt}from"./3ZHL4GR5.js";import{a as y,b as pe,c as ot,e as pi,f as Xe,h as ke,i as Bs,j as qs,k as Ce,l as Bt,n as Ri,o as Wr,p as Ws,q as Qt,s as js,t as _s,v as et,y as J}from"./ETLJKITO.js";import{H as gt}from"./J66D7A5G.js";import{b as z,d as Yu}from"./QPIMTXPL.js";export default $arcgis.t(([{substitute:pt},yy,ms,ai,ys,gy,by,vy,su,Sy,La,ou,{computeStatisticsHistograms:wy,fetchPixelFeatureSet:Iy},Cy,xy,Ty,Fy,Oy,Py,gs,Ay,Ey])=>{var Ul=z((la,zl)=>{(function(t,e){typeof la=="object"&&typeof zl<"u"?e(la):typeof define=="function"&&define.amd?define(["exports"],e):e(t.URI=t.URI||{})})(la,(function(t){"use strict";function e(){for(var v=arguments.length,g=Array(v),S=0;S<v;S++)g[S]=arguments[S];if(g.length>1){g[0]=g[0].slice(0,-1);for(var x=g.length-1,T=1;T<x;++T)g[T]=g[T].slice(1,-1);return g[x]=g[x].slice(1),g.join("")}else return g[0]}function i(v){return"(?:"+v+")"}function a(v){return v===void 0?"undefined":v===null?"null":Object.prototype.toString.call(v).split(" ").pop().split("]").shift().toLowerCase()}function r(v){return v.toUpperCase()}function n(v){return v!=null?v instanceof Array?v:typeof v.length!="number"||v.split||v.setInterval||v.call?[v]:Array.prototype.slice.call(v):[]}function s(v,g){var S=v;if(g)for(var x in g)S[x]=g[x];return S}function o(v){var g="[A-Za-z]",S="[\\x0D]",x="[0-9]",T="[\\x22]",q=e(x,"[A-Fa-f]"),G="[\\x0A]",X="[\\x20]",ne=i(i("%[EFef]"+q+"%"+q+q+"%"+q+q)+"|"+i("%[89A-Fa-f]"+q+"%"+q+q)+"|"+i("%"+q+q)),Ee="[\\:\\/\\?\\#\\[\\]\\@]",Y="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",we=e(Ee,Y),De=v?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",ge=v?"[\\uE000-\\uF8FF]":"[]",re=e(g,x,"[\\-\\.\\_\\~]",De),Ie=i(g+e(g,x,"[\\+\\-\\.]")+"*"),le=i(i(ne+"|"+e(re,Y,"[\\:]"))+"*"),fr=i(i("25[0-5]")+"|"+i("2[0-4]"+x)+"|"+i("1"+x+x)+"|"+i("[1-9]"+x)+"|"+x),Ye=i(i("25[0-5]")+"|"+i("2[0-4]"+x)+"|"+i("1"+x+x)+"|"+i("0?[1-9]"+x)+"|0?0?"+x),nt=i(Ye+"\\."+Ye+"\\."+Ye+"\\."+Ye),ue=i(q+"{1,4}"),Ke=i(i(ue+"\\:"+ue)+"|"+nt),st=i(i(ue+"\\:")+"{6}"+Ke),Pt=i("\\:\\:"+i(ue+"\\:")+"{5}"+Ke),hr=i(i(ue)+"?\\:\\:"+i(ue+"\\:")+"{4}"+Ke),Rt=i(i(i(ue+"\\:")+"{0,1}"+ue)+"?\\:\\:"+i(ue+"\\:")+"{3}"+Ke),oi=i(i(i(ue+"\\:")+"{0,2}"+ue)+"?\\:\\:"+i(ue+"\\:")+"{2}"+Ke),Di=i(i(i(ue+"\\:")+"{0,3}"+ue)+"?\\:\\:"+ue+"\\:"+Ke),Li=i(i(i(ue+"\\:")+"{0,4}"+ue)+"?\\:\\:"+Ke),Nr=i(i(i(ue+"\\:")+"{0,5}"+ue)+"?\\:\\:"+ue),Rr=i(i(i(ue+"\\:")+"{0,6}"+ue)+"?\\:\\:"),Mt=i([st,Pt,hr,Rt,oi,Di,Li,Nr,Rr].join("|")),Mr=i(i(re+"|"+ne)+"+"),za=i(Mt+"\\%25"+Mr),mr=i(Mt+i("\\%25|\\%(?!"+q+"{2})")+Mr),zu=i("[vV]"+q+"+\\."+e(re,Y,"[\\:]")+"+"),Uu=i("\\["+i(mr+"|"+Mt+"|"+zu)+"\\]"),$s=i(i(ne+"|"+e(re,Y))+"*"),li=i(Uu+"|"+nt+"(?!"+$s+")|"+$s),di=i(x+"*"),Ns=i(i(le+"@")+"?"+li+i("\\:"+di)+"?"),ci=i(ne+"|"+e(re,Y,"[\\:\\@]")),Hu=i(ci+"*"),Rs=i(ci+"+"),Gu=i(i(ne+"|"+e(re,Y,"[\\@]"))+"+"),kt=i(i("\\/"+Hu)+"*"),kr=i("\\/"+i(Rs+kt)+"?"),Ua=i(Gu+kt),$i=i(Rs+kt),Br="(?!"+ci+")",Kv=i(kt+"|"+kr+"|"+Ua+"|"+$i+"|"+Br),qr=i(i(ci+"|"+e("[\\/\\?]",ge))+"*"),ui=i(i(ci+"|[\\/\\?]")+"*"),Ms=i(i("\\/\\/"+Ns+kt)+"|"+kr+"|"+$i+"|"+Br),Qu=i(Ie+"\\:"+Ms+i("\\?"+qr)+"?"+i("\\#"+ui)+"?"),Zu=i(i("\\/\\/"+Ns+kt)+"|"+kr+"|"+Ua+"|"+Br),Ju=i(Zu+i("\\?"+qr)+"?"+i("\\#"+ui)+"?"),Xv=i(Qu+"|"+Ju),e0=i(Ie+"\\:"+Ms+i("\\?"+qr)+"?"),t0="^("+Ie+")\\:"+i(i("\\/\\/("+i("("+le+")@")+"?("+li+")"+i("\\:("+di+")")+"?)")+"?("+kt+"|"+kr+"|"+$i+"|"+Br+")")+i("\\?("+qr+")")+"?"+i("\\#("+ui+")")+"?$",r0="^(){0}"+i(i("\\/\\/("+i("("+le+")@")+"?("+li+")"+i("\\:("+di+")")+"?)")+"?("+kt+"|"+kr+"|"+Ua+"|"+Br+")")+i("\\?("+qr+")")+"?"+i("\\#("+ui+")")+"?$",i0="^("+Ie+")\\:"+i(i("\\/\\/("+i("("+le+")@")+"?("+li+")"+i("\\:("+di+")")+"?)")+"?("+kt+"|"+kr+"|"+$i+"|"+Br+")")+i("\\?("+qr+")")+"?$",a0="^"+i("\\#("+ui+")")+"?$",n0="^"+i("("+le+")@")+"?("+li+")"+i("\\:("+di+")")+"?$";return{NOT_SCHEME:new RegExp(e("[^]",g,x,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(e("[^\\%\\:]",re,Y),"g"),NOT_HOST:new RegExp(e("[^\\%\\[\\]\\:]",re,Y),"g"),NOT_PATH:new RegExp(e("[^\\%\\/\\:\\@]",re,Y),"g"),NOT_PATH_NOSCHEME:new RegExp(e("[^\\%\\/\\@]",re,Y),"g"),NOT_QUERY:new RegExp(e("[^\\%]",re,Y,"[\\:\\@\\/\\?]",ge),"g"),NOT_FRAGMENT:new RegExp(e("[^\\%]",re,Y,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(e("[^]",re,Y),"g"),UNRESERVED:new RegExp(re,"g"),OTHER_CHARS:new RegExp(e("[^\\%]",re,we),"g"),PCT_ENCODED:new RegExp(ne,"g"),IPV4ADDRESS:new RegExp("^("+nt+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Mt+")"+i(i("\\%25|\\%(?!"+q+"{2})")+"("+Mr+")")+"?\\]?$")}}var l=o(!1),d=o(!0),c=(function(){function v(g,S){var x=[],T=!0,q=!1,G=void 0;try{for(var X=g[Symbol.iterator](),ne;!(T=(ne=X.next()).done)&&(x.push(ne.value),!(S&&x.length===S));T=!0);}catch(Ee){q=!0,G=Ee}finally{try{!T&&X.return&&X.return()}finally{if(q)throw G}}return x}return function(g,S){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return v(g,S);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),u=function(v){if(Array.isArray(v)){for(var g=0,S=Array(v.length);g<v.length;g++)S[g]=v[g];return S}else return Array.from(v)},f=2147483647,p=36,h=1,b=26,m=38,w=700,C=72,I=128,O="-",P=/^xn--/,A=/[^\0-\x7E]/,M=/[\x2E\u3002\uFF0E\uFF61]/g,N={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=p-h,R=Math.floor,k=String.fromCharCode;function L(v){throw new RangeError(N[v])}function D(v,g){for(var S=[],x=v.length;x--;)S[x]=g(v[x]);return S}function $(v,g){var S=v.split("@"),x="";S.length>1&&(x=S[0]+"@",v=S[1]),v=v.replace(M,".");var T=v.split("."),q=D(T,g).join(".");return x+q}function W(v){for(var g=[],S=0,x=v.length;S<x;){var T=v.charCodeAt(S++);if(T>=55296&&T<=56319&&S<x){var q=v.charCodeAt(S++);(q&64512)==56320?g.push(((T&1023)<<10)+(q&1023)+65536):(g.push(T),S--)}else g.push(T)}return g}var ee=function(g){return String.fromCodePoint.apply(String,u(g))},H=function(g){return g-48<10?g-22:g-65<26?g-65:g-97<26?g-97:p},Q=function(g,S){return g+22+75*(g<26)-((S!=0)<<5)},U=function(g,S,x){var T=0;for(g=x?R(g/w):g>>1,g+=R(g/S);g>E*b>>1;T+=p)g=R(g/E);return R(T+(E+1)*g/(g+m))},_=function(g){var S=[],x=g.length,T=0,q=I,G=C,X=g.lastIndexOf(O);X<0&&(X=0);for(var ne=0;ne<X;++ne)g.charCodeAt(ne)>=128&&L("not-basic"),S.push(g.charCodeAt(ne));for(var Ee=X>0?X+1:0;Ee<x;){for(var Y=T,we=1,De=p;;De+=p){Ee>=x&&L("invalid-input");var ge=H(g.charCodeAt(Ee++));(ge>=p||ge>R((f-T)/we))&&L("overflow"),T+=ge*we;var re=De<=G?h:De>=G+b?b:De-G;if(ge<re)break;var Ie=p-re;we>R(f/Ie)&&L("overflow"),we*=Ie}var le=S.length+1;G=U(T-Y,le,Y==0),R(T/le)>f-q&&L("overflow"),q+=R(T/le),T%=le,S.splice(T++,0,q)}return String.fromCodePoint.apply(String,S)},ce=function(g){var S=[];g=W(g);var x=g.length,T=I,q=0,G=C,X=!0,ne=!1,Ee=void 0;try{for(var Y=g[Symbol.iterator](),we;!(X=(we=Y.next()).done);X=!0){var De=we.value;De<128&&S.push(k(De))}}catch(mr){ne=!0,Ee=mr}finally{try{!X&&Y.return&&Y.return()}finally{if(ne)throw Ee}}var ge=S.length,re=ge;for(ge&&S.push(O);re<x;){var Ie=f,le=!0,fr=!1,Ye=void 0;try{for(var nt=g[Symbol.iterator](),ue;!(le=(ue=nt.next()).done);le=!0){var Ke=ue.value;Ke>=T&&Ke<Ie&&(Ie=Ke)}}catch(mr){fr=!0,Ye=mr}finally{try{!le&&nt.return&&nt.return()}finally{if(fr)throw Ye}}var st=re+1;Ie-T>R((f-q)/st)&&L("overflow"),q+=(Ie-T)*st,T=Ie;var Pt=!0,hr=!1,Rt=void 0;try{for(var oi=g[Symbol.iterator](),Di;!(Pt=(Di=oi.next()).done);Pt=!0){var Li=Di.value;if(Li<T&&++q>f&&L("overflow"),Li==T){for(var Nr=q,Rr=p;;Rr+=p){var Mt=Rr<=G?h:Rr>=G+b?b:Rr-G;if(Nr<Mt)break;var Mr=Nr-Mt,za=p-Mt;S.push(k(Q(Mt+Mr%za,0))),Nr=R(Mr/za)}S.push(k(Q(Nr,0))),G=U(q,st,re==ge),q=0,++re}}}catch(mr){hr=!0,Rt=mr}finally{try{!Pt&&oi.return&&oi.return()}finally{if(hr)throw Rt}}++q,++T}return S.join("")},Be=function(g){return $(g,function(S){return P.test(S)?_(S.slice(4).toLowerCase()):S})},je=function(g){return $(g,function(S){return A.test(S)?"xn--"+ce(S):S})},te={version:"2.1.0",ucs2:{decode:W,encode:ee},decode:_,encode:ce,toASCII:je,toUnicode:Be},Pe={};function $e(v){var g=v.charCodeAt(0),S=void 0;return g<16?S="%0"+g.toString(16).toUpperCase():g<128?S="%"+g.toString(16).toUpperCase():g<2048?S="%"+(g>>6|192).toString(16).toUpperCase()+"%"+(g&63|128).toString(16).toUpperCase():S="%"+(g>>12|224).toString(16).toUpperCase()+"%"+(g>>6&63|128).toString(16).toUpperCase()+"%"+(g&63|128).toString(16).toUpperCase(),S}function _e(v){for(var g="",S=0,x=v.length;S<x;){var T=parseInt(v.substr(S+1,2),16);if(T<128)g+=String.fromCharCode(T),S+=3;else if(T>=194&&T<224){if(x-S>=6){var q=parseInt(v.substr(S+4,2),16);g+=String.fromCharCode((T&31)<<6|q&63)}else g+=v.substr(S,6);S+=6}else if(T>=224){if(x-S>=9){var G=parseInt(v.substr(S+4,2),16),X=parseInt(v.substr(S+7,2),16);g+=String.fromCharCode((T&15)<<12|(G&63)<<6|X&63)}else g+=v.substr(S,9);S+=9}else g+=v.substr(S,3),S+=3}return g}function Ht(v,g){function S(x){var T=_e(x);return T.match(g.UNRESERVED)?T:x}return v.scheme&&(v.scheme=String(v.scheme).replace(g.PCT_ENCODED,S).toLowerCase().replace(g.NOT_SCHEME,"")),v.userinfo!==void 0&&(v.userinfo=String(v.userinfo).replace(g.PCT_ENCODED,S).replace(g.NOT_USERINFO,$e).replace(g.PCT_ENCODED,r)),v.host!==void 0&&(v.host=String(v.host).replace(g.PCT_ENCODED,S).toLowerCase().replace(g.NOT_HOST,$e).replace(g.PCT_ENCODED,r)),v.path!==void 0&&(v.path=String(v.path).replace(g.PCT_ENCODED,S).replace(v.scheme?g.NOT_PATH:g.NOT_PATH_NOSCHEME,$e).replace(g.PCT_ENCODED,r)),v.query!==void 0&&(v.query=String(v.query).replace(g.PCT_ENCODED,S).replace(g.NOT_QUERY,$e).replace(g.PCT_ENCODED,r)),v.fragment!==void 0&&(v.fragment=String(v.fragment).replace(g.PCT_ENCODED,S).replace(g.NOT_FRAGMENT,$e).replace(g.PCT_ENCODED,r)),v}function $t(v){return v.replace(/^0*(.*)/,"$1")||"0"}function Ae(v,g){var S=v.match(g.IPV4ADDRESS)||[],x=c(S,2),T=x[1];return T?T.split(".").map($t).join("."):v}function Te(v,g){var S=v.match(g.IPV6ADDRESS)||[],x=c(S,3),T=x[1],q=x[2];if(T){for(var G=T.toLowerCase().split("::").reverse(),X=c(G,2),ne=X[0],Ee=X[1],Y=Ee?Ee.split(":").map($t):[],we=ne.split(":").map($t),De=g.IPV4ADDRESS.test(we[we.length-1]),ge=De?7:8,re=we.length-ge,Ie=Array(ge),le=0;le<ge;++le)Ie[le]=Y[le]||we[re+le]||"";De&&(Ie[ge-1]=Ae(Ie[ge-1],g));var fr=Ie.reduce(function(st,Pt,hr){if(!Pt||Pt==="0"){var Rt=st[st.length-1];Rt&&Rt.index+Rt.length===hr?Rt.length++:st.push({index:hr,length:1})}return st},[]),Ye=fr.sort(function(st,Pt){return Pt.length-st.length})[0],nt=void 0;if(Ye&&Ye.length>1){var ue=Ie.slice(0,Ye.index),Ke=Ie.slice(Ye.index+Ye.length);nt=ue.join(":")+"::"+Ke.join(":")}else nt=Ie.join(":");return q&&(nt+="%"+q),nt}else return v}var cr=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,qe="".match(/(){0}/)[1]===void 0;function ie(v){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S={},x=g.iri!==!1?d:l;g.reference==="suffix"&&(v=(g.scheme?g.scheme+":":"")+"//"+v);var T=v.match(cr);if(T){qe?(S.scheme=T[1],S.userinfo=T[3],S.host=T[4],S.port=parseInt(T[5],10),S.path=T[6]||"",S.query=T[7],S.fragment=T[8],isNaN(S.port)&&(S.port=T[5])):(S.scheme=T[1]||void 0,S.userinfo=v.indexOf("@")!==-1?T[3]:void 0,S.host=v.indexOf("//")!==-1?T[4]:void 0,S.port=parseInt(T[5],10),S.path=T[6]||"",S.query=v.indexOf("?")!==-1?T[7]:void 0,S.fragment=v.indexOf("#")!==-1?T[8]:void 0,isNaN(S.port)&&(S.port=v.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?T[4]:void 0)),S.host&&(S.host=Te(Ae(S.host,x),x)),S.scheme===void 0&&S.userinfo===void 0&&S.host===void 0&&S.port===void 0&&!S.path&&S.query===void 0?S.reference="same-document":S.scheme===void 0?S.reference="relative":S.fragment===void 0?S.reference="absolute":S.reference="uri",g.reference&&g.reference!=="suffix"&&g.reference!==S.reference&&(S.error=S.error||"URI is not a "+g.reference+" reference.");var q=Pe[(g.scheme||S.scheme||"").toLowerCase()];if(!g.unicodeSupport&&(!q||!q.unicodeSupport)){if(S.host&&(g.domainHost||q&&q.domainHost))try{S.host=te.toASCII(S.host.replace(x.PCT_ENCODED,_e).toLowerCase())}catch(G){S.error=S.error||"Host's domain name can not be converted to ASCII via punycode: "+G}Ht(S,l)}else Ht(S,x);q&&q.parse&&q.parse(S,g)}else S.error=S.error||"URI can not be parsed.";return S}function Gt(v,g){var S=g.iri!==!1?d:l,x=[];return v.userinfo!==void 0&&(x.push(v.userinfo),x.push("@")),v.host!==void 0&&x.push(Te(Ae(String(v.host),S),S).replace(S.IPV6ADDRESS,function(T,q,G){return"["+q+(G?"%25"+G:"")+"]"})),(typeof v.port=="number"||typeof v.port=="string")&&(x.push(":"),x.push(String(v.port))),x.length?x.join(""):void 0}var Nt=/^\.\.?\//,ur=/^\/\.(\/|$)/,pr=/^\/\.\.(\/|$)/,Me=/^\/?(?:.|\n)*?(?=\/|$)/;function at(v){for(var g=[];v.length;)if(v.match(Nt))v=v.replace(Nt,"");else if(v.match(ur))v=v.replace(ur,"/");else if(v.match(pr))v=v.replace(pr,"/"),g.pop();else if(v==="."||v==="..")v="";else{var S=v.match(Me);if(S){var x=S[0];v=v.slice(x.length),g.push(x)}else throw new Error("Unexpected dot segment condition")}return g.join("")}function Ue(v){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=g.iri?d:l,x=[],T=Pe[(g.scheme||v.scheme||"").toLowerCase()];if(T&&T.serialize&&T.serialize(v,g),v.host&&!S.IPV6ADDRESS.test(v.host)){if(g.domainHost||T&&T.domainHost)try{v.host=g.iri?te.toUnicode(v.host):te.toASCII(v.host.replace(S.PCT_ENCODED,_e).toLowerCase())}catch(X){v.error=v.error||"Host's domain name can not be converted to "+(g.iri?"Unicode":"ASCII")+" via punycode: "+X}}Ht(v,S),g.reference!=="suffix"&&v.scheme&&(x.push(v.scheme),x.push(":"));var q=Gt(v,g);if(q!==void 0&&(g.reference!=="suffix"&&x.push("//"),x.push(q),v.path&&v.path.charAt(0)!=="/"&&x.push("/")),v.path!==void 0){var G=v.path;!g.absolutePath&&(!T||!T.absolutePath)&&(G=at(G)),q===void 0&&(G=G.replace(/^\/\//,"/%2F")),x.push(G)}return v.query!==void 0&&(x.push("?"),x.push(v.query)),v.fragment!==void 0&&(x.push("#"),x.push(v.fragment)),x.join("")}function Ve(v,g){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},x=arguments[3],T={};return x||(v=ie(Ue(v,S),S),g=ie(Ue(g,S),S)),S=S||{},!S.tolerant&&g.scheme?(T.scheme=g.scheme,T.userinfo=g.userinfo,T.host=g.host,T.port=g.port,T.path=at(g.path||""),T.query=g.query):(g.userinfo!==void 0||g.host!==void 0||g.port!==void 0?(T.userinfo=g.userinfo,T.host=g.host,T.port=g.port,T.path=at(g.path||""),T.query=g.query):(g.path?(g.path.charAt(0)==="/"?T.path=at(g.path):((v.userinfo!==void 0||v.host!==void 0||v.port!==void 0)&&!v.path?T.path="/"+g.path:v.path?T.path=v.path.slice(0,v.path.lastIndexOf("/")+1)+g.path:T.path=g.path,T.path=at(T.path)),T.query=g.query):(T.path=v.path,g.query!==void 0?T.query=g.query:T.query=v.query),T.userinfo=v.userinfo,T.host=v.host,T.port=v.port),T.scheme=v.scheme),T.fragment=g.fragment,T}function Ft(v,g,S){var x=s({scheme:"null"},S);return Ue(Ve(ie(v,x),ie(g,x),x,!0),x)}function Je(v,g){return typeof v=="string"?v=Ue(ie(v,g),g):a(v)==="object"&&(v=ie(Ue(v,g),g)),v}function Ei(v,g,S){return typeof v=="string"?v=Ue(ie(v,S),S):a(v)==="object"&&(v=Ue(v,S)),typeof g=="string"?g=Ue(ie(g,S),S):a(g)==="object"&&(g=Ue(g,S)),v===g}function _a(v,g){return v&&v.toString().replace(!g||!g.iri?l.ESCAPE:d.ESCAPE,$e)}function yt(v,g){return v&&v.toString().replace(!g||!g.iri?l.PCT_ENCODED:d.PCT_ENCODED,_e)}var ni={scheme:"http",domainHost:!0,parse:function(g,S){return g.host||(g.error=g.error||"HTTP URIs must have a host."),g},serialize:function(g,S){var x=String(g.scheme).toLowerCase()==="https";return(g.port===(x?443:80)||g.port==="")&&(g.port=void 0),g.path||(g.path="/"),g}},Ts={scheme:"https",domainHost:ni.domainHost,parse:ni.parse,serialize:ni.serialize};function Fs(v){return typeof v.secure=="boolean"?v.secure:String(v.scheme).toLowerCase()==="wss"}var si={scheme:"ws",domainHost:!0,parse:function(g,S){var x=g;return x.secure=Fs(x),x.resourceName=(x.path||"/")+(x.query?"?"+x.query:""),x.path=void 0,x.query=void 0,x},serialize:function(g,S){if((g.port===(Fs(g)?443:80)||g.port==="")&&(g.port=void 0),typeof g.secure=="boolean"&&(g.scheme=g.secure?"wss":"ws",g.secure=void 0),g.resourceName){var x=g.resourceName.split("?"),T=c(x,2),q=T[0],G=T[1];g.path=q&&q!=="/"?q:void 0,g.query=G,g.resourceName=void 0}return g.fragment=void 0,g}},Os={scheme:"wss",domainHost:si.domainHost,parse:si.parse,serialize:si.serialize},Lu={},$u=!0,Ps="[A-Za-z0-9\\-\\.\\_\\~"+($u?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Ot="[0-9A-Fa-f]",Nu=i(i("%[EFef]"+Ot+"%"+Ot+Ot+"%"+Ot+Ot)+"|"+i("%[89A-Fa-f]"+Ot+"%"+Ot+Ot)+"|"+i("%"+Ot+Ot)),Ru="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Mu="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",ku=e(Mu,'[\\"\\\\]'),Bu="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",qu=new RegExp(Ps,"g"),$r=new RegExp(Nu,"g"),Wu=new RegExp(e("[^]",Ru,"[\\.]",'[\\"]',ku),"g"),As=new RegExp(e("[^]",Ps,Bu),"g"),ju=As;function Va(v){var g=_e(v);return g.match(qu)?g:v}var Es={scheme:"mailto",parse:function(g,S){var x=g,T=x.to=x.path?x.path.split(","):[];if(x.path=void 0,x.query){for(var q=!1,G={},X=x.query.split("&"),ne=0,Ee=X.length;ne<Ee;++ne){var Y=X[ne].split("=");switch(Y[0]){case"to":for(var we=Y[1].split(","),De=0,ge=we.length;De<ge;++De)T.push(we[De]);break;case"subject":x.subject=yt(Y[1],S);break;case"body":x.body=yt(Y[1],S);break;default:q=!0,G[yt(Y[0],S)]=yt(Y[1],S);break}}q&&(x.headers=G)}x.query=void 0;for(var re=0,Ie=T.length;re<Ie;++re){var le=T[re].split("@");if(le[0]=yt(le[0]),S.unicodeSupport)le[1]=yt(le[1],S).toLowerCase();else try{le[1]=te.toASCII(yt(le[1],S).toLowerCase())}catch(fr){x.error=x.error||"Email address's domain name can not be converted to ASCII via punycode: "+fr}T[re]=le.join("@")}return x},serialize:function(g,S){var x=g,T=n(g.to);if(T){for(var q=0,G=T.length;q<G;++q){var X=String(T[q]),ne=X.lastIndexOf("@"),Ee=X.slice(0,ne).replace($r,Va).replace($r,r).replace(Wu,$e),Y=X.slice(ne+1);try{Y=S.iri?te.toUnicode(Y):te.toASCII(yt(Y,S).toLowerCase())}catch(re){x.error=x.error||"Email address's domain name can not be converted to "+(S.iri?"Unicode":"ASCII")+" via punycode: "+re}T[q]=Ee+"@"+Y}x.path=T.join(",")}var we=g.headers=g.headers||{};g.subject&&(we.subject=g.subject),g.body&&(we.body=g.body);var De=[];for(var ge in we)we[ge]!==Lu[ge]&&De.push(ge.replace($r,Va).replace($r,r).replace(As,$e)+"="+we[ge].replace($r,Va).replace($r,r).replace(ju,$e));return De.length&&(x.query=De.join("&")),x}},_u=/^([^\:]+)\:(.*)/,Ds={scheme:"urn",parse:function(g,S){var x=g.path&&g.path.match(_u),T=g;if(x){var q=S.scheme||T.scheme||"urn",G=x[1].toLowerCase(),X=x[2],ne=q+":"+(S.nid||G),Ee=Pe[ne];T.nid=G,T.nss=X,T.path=void 0,Ee&&(T=Ee.parse(T,S))}else T.error=T.error||"URN can not be parsed.";return T},serialize:function(g,S){var x=S.scheme||g.scheme||"urn",T=g.nid,q=x+":"+(S.nid||T),G=Pe[q];G&&(g=G.serialize(g,S));var X=g,ne=g.nss;return X.path=(T||S.nid)+":"+ne,X}},Vu=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Ls={scheme:"urn:uuid",parse:function(g,S){var x=g;return x.uuid=x.nss,x.nss=void 0,!S.tolerant&&(!x.uuid||!x.uuid.match(Vu))&&(x.error=x.error||"UUID is not valid."),x},serialize:function(g,S){var x=g;return x.nss=(g.uuid||"").toLowerCase(),x}};Pe[ni.scheme]=ni,Pe[Ts.scheme]=Ts,Pe[si.scheme]=si,Pe[Os.scheme]=Os,Pe[Es.scheme]=Es,Pe[Ds.scheme]=Ds,Pe[Ls.scheme]=Ls,t.SCHEMES=Pe,t.pctEncChar=$e,t.pctDecChars=_e,t.parse=ie,t.removeDotSegments=at,t.serialize=Ue,t.resolveComponents=Ve,t.resolve=Ft,t.normalize=Je,t.equal=Ei,t.escapeComponent=_a,t.unescapeComponent=yt,Object.defineProperty(t,"__esModule",{value:!0})}))});var da=z((p0,Hl)=>{"use strict";Hl.exports=function t(e,i){if(e===i)return!0;if(e&&i&&typeof e=="object"&&typeof i=="object"){if(e.constructor!==i.constructor)return!1;var a,r,n;if(Array.isArray(e)){if(a=e.length,a!=i.length)return!1;for(r=a;r--!==0;)if(!t(e[r],i[r]))return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===i.toString();if(n=Object.keys(e),a=n.length,a!==Object.keys(i).length)return!1;for(r=a;r--!==0;)if(!Object.prototype.hasOwnProperty.call(i,n[r]))return!1;for(r=a;r--!==0;){var s=n[r];if(!t(e[s],i[s]))return!1}return!0}return e!==e&&i!==i}});var Ql=z((f0,Gl)=>{"use strict";Gl.exports=function(e){for(var i=0,a=e.length,r=0,n;r<a;)i++,n=e.charCodeAt(r++),n>=55296&&n<=56319&&r<a&&(n=e.charCodeAt(r),(n&64512)==56320&&r++);return i}});var Cr=z((h0,Yl)=>{"use strict";Yl.exports={copy:Bh,checkDataType:Mn,checkDataTypes:qh,coerceToTypes:Wh,toHash:Bn,getProperty:qn,escapeQuotes:Wn,equal:da(),ucs2length:Ql(),varOccurences:Vh,varReplace:zh,schemaHasRules:Uh,schemaHasRulesExcept:Hh,schemaUnknownRules:Gh,toQuotedString:kn,getPathExpr:Qh,getPath:Zh,getData:Kh,unescapeFragment:Xh,unescapeJsonPointer:_n,escapeFragment:em,escapeJsonPointer:jn};function Bh(t,e){e=e||{};for(var i in t)e[i]=t[i];return e}function Mn(t,e,i,a){var r=a?" !== ":" === ",n=a?" || ":" && ",s=a?"!":"",o=a?"":"!";switch(t){case"null":return e+r+"null";case"array":return s+"Array.isArray("+e+")";case"object":return"("+s+e+n+"typeof "+e+r+'"object"'+n+o+"Array.isArray("+e+"))";case"integer":return"(typeof "+e+r+'"number"'+n+o+"("+e+" % 1)"+n+e+r+e+(i?n+s+"isFinite("+e+")":"")+")";case"number":return"(typeof "+e+r+'"'+t+'"'+(i?n+s+"isFinite("+e+")":"")+")";default:return"typeof "+e+r+'"'+t+'"'}}function qh(t,e,i){switch(t.length){case 1:return Mn(t[0],e,i,!0);default:var a="",r=Bn(t);r.array&&r.object&&(a=r.null?"(":"(!"+e+" || ",a+="typeof "+e+' !== "object")',delete r.null,delete r.array,delete r.object),r.number&&delete r.integer;for(var n in r)a+=(a?" && ":"")+Mn(n,e,i,!0);return a}}var Zl=Bn(["string","number","integer","boolean","null"]);function Wh(t,e){if(Array.isArray(e)){for(var i=[],a=0;a<e.length;a++){var r=e[a];(Zl[r]||t==="array"&&r==="array")&&(i[i.length]=r)}if(i.length)return i}else{if(Zl[e])return[e];if(t==="array"&&e==="array")return["array"]}}function Bn(t){for(var e={},i=0;i<t.length;i++)e[t[i]]=!0;return e}var jh=/^[a-z$_][a-z$_0-9]*$/i,_h=/'|\\/g;function qn(t){return typeof t=="number"?"["+t+"]":jh.test(t)?"."+t:"['"+Wn(t)+"']"}function Wn(t){return t.replace(_h,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function Vh(t,e){e+="[^0-9]";var i=t.match(new RegExp(e,"g"));return i?i.length:0}function zh(t,e,i){return e+="([^0-9])",i=i.replace(/\$/g,"$$$$"),t.replace(new RegExp(e,"g"),i+"$1")}function Uh(t,e){if(typeof t=="boolean")return!t;for(var i in t)if(e[i])return!0}function Hh(t,e,i){if(typeof t=="boolean")return!t&&i!="not";for(var a in t)if(a!=i&&e[a])return!0}function Gh(t,e){if(typeof t!="boolean"){for(var i in t)if(!e[i])return i}}function kn(t){return"'"+Wn(t)+"'"}function Qh(t,e,i,a){var r=i?"'/' + "+e+(a?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):a?"'[' + "+e+" + ']'":"'[\\'' + "+e+" + '\\']'";return Jl(t,r)}function Zh(t,e,i){var a=kn(i?"/"+jn(e):qn(e));return Jl(t,a)}var Jh=/^\/(?:[^~]|~0|~1)*$/,Yh=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Kh(t,e,i){var a,r,n,s;if(t==="")return"rootData";if(t[0]=="/"){if(!Jh.test(t))throw new Error("Invalid JSON-pointer: "+t);r=t,n="rootData"}else{if(s=t.match(Yh),!s)throw new Error("Invalid JSON-pointer: "+t);if(a=+s[1],r=s[2],r=="#"){if(a>=e)throw new Error("Cannot access property/index "+a+" levels up, current level is "+e);return i[e-a]}if(a>e)throw new Error("Cannot access data "+a+" levels up, current level is "+e);if(n="data"+(e-a||""),!r)return n}for(var o=n,l=r.split("/"),d=0;d<l.length;d++){var c=l[d];c&&(n+=qn(_n(c)),o+=" && "+n)}return o}function Jl(t,e){return t=='""'?e:(t+" + "+e).replace(/([^\\])' \+ '/g,"$1")}function Xh(t){return _n(decodeURIComponent(t))}function em(t){return encodeURIComponent(jn(t))}function jn(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function _n(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}});var Vn=z((m0,Kl)=>{"use strict";var tm=Cr();Kl.exports=rm;function rm(t){tm.copy(t,this)}});var ed=z((y0,Xl)=>{"use strict";var rr=Xl.exports=function(t,e,i){typeof e=="function"&&(i=e,e={}),i=e.cb||i;var a=typeof i=="function"?i:i.pre||function(){},r=i.post||function(){};ca(e,a,r,t,"",t)};rr.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0};rr.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};rr.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};rr.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function ca(t,e,i,a,r,n,s,o,l,d){if(a&&typeof a=="object"&&!Array.isArray(a)){e(a,r,n,s,o,l,d);for(var c in a){var u=a[c];if(Array.isArray(u)){if(c in rr.arrayKeywords)for(var f=0;f<u.length;f++)ca(t,e,i,u[f],r+"/"+c+"/"+f,n,r,c,a,f)}else if(c in rr.propsKeywords){if(u&&typeof u=="object")for(var p in u)ca(t,e,i,u[p],r+"/"+c+"/"+im(p),n,r,c,a,p)}else(c in rr.keywords||t.allKeys&&!(c in rr.skipKeywords))&&ca(t,e,i,u,r+"/"+c,n,r,c,a)}i(a,r,n,s,o,l,d)}}function im(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var ya=z((g0,ad)=>{"use strict";var Ci=Ul(),td=da(),ha=Cr(),ua=Vn(),am=ed();ad.exports=ar;ar.normalizeId=ir;ar.fullPath=pa;ar.url=fa;ar.ids=dm;ar.inlineRef=zn;ar.schema=ma;function ar(t,e,i){var a=this._refs[i];if(typeof a=="string")if(this._refs[a])a=this._refs[a];else return ar.call(this,t,e,a);if(a=a||this._schemas[i],a instanceof ua)return zn(a.schema,this._opts.inlineRefs)?a.schema:a.validate||this._compile(a);var r=ma.call(this,e,i),n,s,o;return r&&(n=r.schema,e=r.root,o=r.baseId),n instanceof ua?s=n.validate||t.call(this,n.schema,e,void 0,o):n!==void 0&&(s=zn(n,this._opts.inlineRefs)?n:t.call(this,n,e,void 0,o)),s}function ma(t,e){var i=Ci.parse(e),a=id(i),r=pa(this._getId(t.schema));if(Object.keys(t.schema).length===0||a!==r){var n=ir(a),s=this._refs[n];if(typeof s=="string")return nm.call(this,t,s,i);if(s instanceof ua)s.validate||this._compile(s),t=s;else if(s=this._schemas[n],s instanceof ua){if(s.validate||this._compile(s),n==ir(e))return{schema:s,root:t,baseId:r};t=s}else return;if(!t.schema)return;r=pa(this._getId(t.schema))}return rd.call(this,i,r,t.schema,t)}function nm(t,e,i){var a=ma.call(this,t,e);if(a){var r=a.schema,n=a.baseId;t=a.root;var s=this._getId(r);return s&&(n=fa(n,s)),rd.call(this,i,n,r,t)}}var sm=ha.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function rd(t,e,i,a){if(t.fragment=t.fragment||"",t.fragment.slice(0,1)=="/"){for(var r=t.fragment.split("/"),n=1;n<r.length;n++){var s=r[n];if(s){if(s=ha.unescapeFragment(s),i=i[s],i===void 0)break;var o;if(!sm[s]&&(o=this._getId(i),o&&(e=fa(e,o)),i.$ref)){var l=fa(e,i.$ref),d=ma.call(this,a,l);d&&(i=d.schema,a=d.root,e=d.baseId)}}}if(i!==void 0&&i!==a.schema)return{schema:i,root:a,baseId:e}}}var om=ha.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function zn(t,e){if(e===!1)return!1;if(e===void 0||e===!0)return Un(t);if(e)return Hn(t)<=e}function Un(t){var e;if(Array.isArray(t)){for(var i=0;i<t.length;i++)if(e=t[i],typeof e=="object"&&!Un(e))return!1}else for(var a in t)if(a=="$ref"||(e=t[a],typeof e=="object"&&!Un(e)))return!1;return!0}function Hn(t){var e=0,i;if(Array.isArray(t)){for(var a=0;a<t.length;a++)if(i=t[a],typeof i=="object"&&(e+=Hn(i)),e==1/0)return 1/0}else for(var r in t){if(r=="$ref")return 1/0;if(om[r])e++;else if(i=t[r],typeof i=="object"&&(e+=Hn(i)+1),e==1/0)return 1/0}return e}function pa(t,e){e!==!1&&(t=ir(t));var i=Ci.parse(t);return id(i)}function id(t){return Ci.serialize(t).split("#")[0]+"#"}var lm=/#\/?$/;function ir(t){return t?t.replace(lm,""):""}function fa(t,e){return e=ir(e),Ci.resolve(t,e)}function dm(t){var e=ir(this._getId(t)),i={"":e},a={"":pa(e,!1)},r={},n=this;return am(t,{allKeys:!0},function(s,o,l,d,c,u,f){if(o!==""){var p=n._getId(s),h=i[d],b=a[d]+"/"+c;if(f!==void 0&&(b+="/"+(typeof f=="number"?f:ha.escapeFragment(f))),typeof p=="string"){p=h=ir(h?Ci.resolve(h,p):p);var m=n._refs[p];if(typeof m=="string"&&(m=n._refs[m]),m&&m.schema){if(!td(s,m.schema))throw new Error('id "'+p+'" resolves to more than one schema')}else if(p!=ir(b))if(p[0]=="#"){if(r[p]&&!td(s,r[p]))throw new Error('id "'+p+'" resolves to more than one schema');r[p]=s}else n._refs[p]=b}i[o]=h,a[o]=b}}),r}});var ga=z((b0,sd)=>{"use strict";var Gn=ya();sd.exports={Validation:nd(cm),MissingRef:nd(Qn)};function cm(t){this.message="validation failed",this.errors=t,this.ajv=this.validation=!0}Qn.message=function(t,e){return"can't resolve reference "+e+" from id "+t};function Qn(t,e,i){this.message=i||Qn.message(t,e),this.missingRef=Gn.url(t,e),this.missingSchema=Gn.normalizeId(Gn.fullPath(this.missingRef))}function nd(t){return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}});var Zn=z((v0,od)=>{"use strict";od.exports=function(t,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var i=typeof e.cycles=="boolean"?e.cycles:!1,a=e.cmp&&(function(n){return function(s){return function(o,l){var d={key:o,value:s[o]},c={key:l,value:s[l]};return n(d,c)}}})(e.cmp),r=[];return(function n(s){if(s&&s.toJSON&&typeof s.toJSON=="function"&&(s=s.toJSON()),s!==void 0){if(typeof s=="number")return isFinite(s)?""+s:"null";if(typeof s!="object")return JSON.stringify(s);var o,l;if(Array.isArray(s)){for(l="[",o=0;o<s.length;o++)o&&(l+=","),l+=n(s[o])||"null";return l+"]"}if(s===null)return"null";if(r.indexOf(s)!==-1){if(i)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var d=r.push(s)-1,c=Object.keys(s).sort(a&&a(s));for(l="",o=0;o<c.length;o++){var u=c[o],f=n(s[u]);f&&(l&&(l+=","),l+=JSON.stringify(u)+":"+f)}return r.splice(d,1),"{"+l+"}"}})(t)}});var Jn=z((S0,ld)=>{"use strict";ld.exports=function(e,i,a){var r="",n=e.schema.$async===!0,s=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),o=e.self._getId(e.schema);if(e.opts.strictKeywords){var l=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(l){var d="unknown keyword: "+l;if(e.opts.strictKeywords==="log")e.logger.warn(d);else throw new Error(d)}}if(e.isTop&&(r+=" var validate = ",n&&(e.async=!0,r+="async "),r+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",o&&(e.opts.sourceCode||e.opts.processCode)&&(r+=" "+("/*# sourceURL="+o+" */")+" ")),typeof e.schema=="boolean"||!(s||e.schema.$ref)){var i="false schema",c=e.level,u=e.dataLevel,f=e.schema[i],p=e.schemaPath+e.util.getProperty(i),h=e.errSchemaPath+"/"+i,P=!e.opts.allErrors,N,b="data"+(u||""),O="valid"+c;if(e.schema===!1){e.isTop?P=!0:r+=" var "+O+" = false; ";var m=m||[];m.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(N||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: {} ",e.opts.messages!==!1&&(r+=" , message: 'boolean schema is false' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "),r+=" } "):r+=" {} ";var w=r;r=m.pop(),!e.compositeRule&&P?e.async?r+=" throw new ValidationError(["+w+"]); ":r+=" validate.errors = ["+w+"]; return false; ":r+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n?r+=" return data; ":r+=" validate.errors = null; return true; ":r+=" var "+O+" = true; ";return e.isTop&&(r+=" }; return validate; "),r}if(e.isTop){var C=e.isTop,c=e.level=0,u=e.dataLevel=0,b="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],e.schema.default!==void 0&&e.opts.useDefaults&&e.opts.strictDefaults){var I="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(I);else throw new Error(I)}r+=" var vErrors = null; ",r+=" var errors = 0; ",r+=" if (rootData === undefined) rootData = data; "}else{var c=e.level,u=e.dataLevel,b="data"+(u||"");if(o&&(e.baseId=e.resolve.url(e.baseId,o)),n&&!e.async)throw new Error("async schema in sync schema");r+=" var errs_"+c+" = errors;"}var O="valid"+c,P=!e.opts.allErrors,A="",M="",N,E=e.schema.type,R=Array.isArray(E);if(E&&e.opts.nullable&&e.schema.nullable===!0&&(R?E.indexOf("null")==-1&&(E=E.concat("null")):E!="null"&&(E=[E,"null"],R=!0)),R&&E.length==1&&(E=E[0],R=!1),e.schema.$ref&&s){if(e.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');e.opts.extendRefs!==!0&&(s=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(r+=" "+e.RULES.all.$comment.code(e,"$comment")),E){if(e.opts.coerceTypes)var k=e.util.coerceToTypes(e.opts.coerceTypes,E);var L=e.RULES.types[E];if(k||R||L===!0||L&&!Me(L)){var p=e.schemaPath+".type",h=e.errSchemaPath+"/type",p=e.schemaPath+".type",h=e.errSchemaPath+"/type",D=R?"checkDataTypes":"checkDataType";if(r+=" if ("+e.util[D](E,b,e.opts.strictNumbers,!0)+") { ",k){var $="dataType"+c,W="coerced"+c;r+=" var "+$+" = typeof "+b+"; var "+W+" = undefined; ",e.opts.coerceTypes=="array"&&(r+=" if ("+$+" == 'object' && Array.isArray("+b+") && "+b+".length == 1) { "+b+" = "+b+"[0]; "+$+" = typeof "+b+"; if ("+e.util.checkDataType(e.schema.type,b,e.opts.strictNumbers)+") "+W+" = "+b+"; } "),r+=" if ("+W+" !== undefined) ; ";var ee=k;if(ee)for(var H,Q=-1,U=ee.length-1;Q<U;)H=ee[Q+=1],H=="string"?r+=" else if ("+$+" == 'number' || "+$+" == 'boolean') "+W+" = '' + "+b+"; else if ("+b+" === null) "+W+" = ''; ":H=="number"||H=="integer"?(r+=" else if ("+$+" == 'boolean' || "+b+" === null || ("+$+" == 'string' && "+b+" && "+b+" == +"+b+" ",H=="integer"&&(r+=" && !("+b+" % 1)"),r+=")) "+W+" = +"+b+"; "):H=="boolean"?r+=" else if ("+b+" === 'false' || "+b+" === 0 || "+b+" === null) "+W+" = false; else if ("+b+" === 'true' || "+b+" === 1) "+W+" = true; ":H=="null"?r+=" else if ("+b+" === '' || "+b+" === 0 || "+b+" === false) "+W+" = null; ":e.opts.coerceTypes=="array"&&H=="array"&&(r+=" else if ("+$+" == 'string' || "+$+" == 'number' || "+$+" == 'boolean' || "+b+" == null) "+W+" = ["+b+"]; ");r+=" else { ";var m=m||[];m.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(N||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",R?r+=""+E.join(","):r+=""+E,r+="' } ",e.opts.messages!==!1&&(r+=" , message: 'should be ",R?r+=""+E.join(","):r+=""+E,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "),r+=" } "):r+=" {} ";var w=r;r=m.pop(),!e.compositeRule&&P?e.async?r+=" throw new ValidationError(["+w+"]); ":r+=" validate.errors = ["+w+"]; return false; ":r+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } if ("+W+" !== undefined) { ";var _=u?"data"+(u-1||""):"parentData",ce=u?e.dataPathArr[u]:"parentDataProperty";r+=" "+b+" = "+W+"; ",u||(r+="if ("+_+" !== undefined)"),r+=" "+_+"["+ce+"] = "+W+"; } "}else{var m=m||[];m.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(N||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",R?r+=""+E.join(","):r+=""+E,r+="' } ",e.opts.messages!==!1&&(r+=" , message: 'should be ",R?r+=""+E.join(","):r+=""+E,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "),r+=" } "):r+=" {} ";var w=r;r=m.pop(),!e.compositeRule&&P?e.async?r+=" throw new ValidationError(["+w+"]); ":r+=" validate.errors = ["+w+"]; return false; ":r+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } "}}if(e.schema.$ref&&!s)r+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",P&&(r+=" } if (errors === ",C?r+="0":r+="errs_"+c,r+=") { ",M+="}");else{var Be=e.RULES;if(Be){for(var L,je=-1,te=Be.length-1;je<te;)if(L=Be[je+=1],Me(L)){if(L.type&&(r+=" if ("+e.util.checkDataType(L.type,b,e.opts.strictNumbers)+") { "),e.opts.useDefaults){if(L.type=="object"&&e.schema.properties){var f=e.schema.properties,Pe=Object.keys(f),$e=Pe;if($e)for(var _e,Ht=-1,$t=$e.length-1;Ht<$t;){_e=$e[Ht+=1];var Ae=f[_e];if(Ae.default!==void 0){var Te=b+e.util.getProperty(_e);if(e.compositeRule){if(e.opts.strictDefaults){var I="default is ignored for: "+Te;if(e.opts.strictDefaults==="log")e.logger.warn(I);else throw new Error(I)}}else r+=" if ("+Te+" === undefined ",e.opts.useDefaults=="empty"&&(r+=" || "+Te+" === null || "+Te+" === '' "),r+=" ) "+Te+" = ",e.opts.useDefaults=="shared"?r+=" "+e.useDefault(Ae.default)+" ":r+=" "+JSON.stringify(Ae.default)+" ",r+="; "}}}else if(L.type=="array"&&Array.isArray(e.schema.items)){var cr=e.schema.items;if(cr){for(var Ae,Q=-1,qe=cr.length-1;Q<qe;)if(Ae=cr[Q+=1],Ae.default!==void 0){var Te=b+"["+Q+"]";if(e.compositeRule){if(e.opts.strictDefaults){var I="default is ignored for: "+Te;if(e.opts.strictDefaults==="log")e.logger.warn(I);else throw new Error(I)}}else r+=" if ("+Te+" === undefined ",e.opts.useDefaults=="empty"&&(r+=" || "+Te+" === null || "+Te+" === '' "),r+=" ) "+Te+" = ",e.opts.useDefaults=="shared"?r+=" "+e.useDefault(Ae.default)+" ":r+=" "+JSON.stringify(Ae.default)+" ",r+="; "}}}}var ie=L.rules;if(ie){for(var Gt,Nt=-1,ur=ie.length-1;Nt<ur;)if(Gt=ie[Nt+=1],at(Gt)){var pr=Gt.code(e,Gt.keyword,L.type);pr&&(r+=" "+pr+" ",P&&(A+="}"))}}if(P&&(r+=" "+A+" ",A=""),L.type&&(r+=" } ",E&&E===L.type&&!k)){r+=" else { ";var p=e.schemaPath+".type",h=e.errSchemaPath+"/type",m=m||[];m.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(N||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",R?r+=""+E.join(","):r+=""+E,r+="' } ",e.opts.messages!==!1&&(r+=" , message: 'should be ",R?r+=""+E.join(","):r+=""+E,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "),r+=" } "):r+=" {} ";var w=r;r=m.pop(),!e.compositeRule&&P?e.async?r+=" throw new ValidationError(["+w+"]); ":r+=" validate.errors = ["+w+"]; return false; ":r+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } "}P&&(r+=" if (errors === ",C?r+="0":r+="errs_"+c,r+=") { ",M+="}")}}}P&&(r+=" "+M+" "),C?(n?(r+=" if (errors === 0) return data; ",r+=" else throw new ValidationError(vErrors); "):(r+=" validate.errors = vErrors; ",r+=" return errors === 0; "),r+=" }; return validate;"):r+=" var "+O+" = errors === errs_"+c+";";function Me(Ve){for(var Ft=Ve.rules,Je=0;Je<Ft.length;Je++)if(at(Ft[Je]))return!0}function at(Ve){return e.schema[Ve.keyword]!==void 0||Ve.implements&&Ue(Ve)}function Ue(Ve){for(var Ft=Ve.implements,Je=0;Je<Ft.length;Je++)if(e.schema[Ft[Je]]!==void 0)return!0}return r}});var fd=z((w0,pd)=>{"use strict";var ba=ya(),Sa=Cr(),cd=ga(),um=Zn(),dd=Jn(),pm=Sa.ucs2length,fm=da(),hm=cd.Validation;pd.exports=Yn;function Yn(t,e,i,a){var r=this,n=this._opts,s=[void 0],o={},l=[],d={},c=[],u={},f=[];e=e||{schema:t,refVal:s,refs:o};var p=mm.call(this,t,e,a),h=this._compilations[p.index];if(p.compiling)return h.callValidate=I;var b=this._formats,m=this.RULES;try{var w=O(t,e,i,a);h.validate=w;var C=h.callValidate;return C&&(C.schema=w.schema,C.errors=null,C.refs=w.refs,C.refVal=w.refVal,C.root=w.root,C.$async=w.$async,n.sourceCode&&(C.source=w.source)),w}finally{ym.call(this,t,e,a)}function I(){var D=h.validate,$=D.apply(this,arguments);return I.errors=D.errors,$}function O(D,$,W,ee){var H=!$||$&&$.schema==D;if($.schema!=e.schema)return Yn.call(r,D,$,W,ee);var Q=D.$async===!0,U=dd({isTop:!0,schema:D,isRoot:H,baseId:ee,root:$,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:cd.MissingRef,RULES:m,validate:dd,util:Sa,resolve:ba,resolveRef:P,usePattern:R,useDefault:k,useCustomRule:L,opts:n,formats:b,logger:r.logger,self:r});U=va(s,vm)+va(l,gm)+va(c,bm)+va(f,Sm)+U,n.processCode&&(U=n.processCode(U,D));var _;try{var ce=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",U);_=ce(r,m,b,e,s,c,f,fm,pm,hm),s[0]=_}catch(Be){throw r.logger.error("Error compiling schema, function code:",U),Be}return _.schema=D,_.errors=null,_.refs=o,_.refVal=s,_.root=H?_:$,Q&&(_.$async=!0),n.sourceCode===!0&&(_.source={code:U,patterns:l,defaults:c}),_}function P(D,$,W){$=ba.url(D,$);var ee=o[$],H,Q;if(ee!==void 0)return H=s[ee],Q="refVal["+ee+"]",E(H,Q);if(!W&&e.refs){var U=e.refs[$];if(U!==void 0)return H=e.refVal[U],Q=A($,H),E(H,Q)}Q=A($);var _=ba.call(r,O,e,$);if(_===void 0){var ce=i&&i[$];ce&&(_=ba.inlineRef(ce,n.inlineRefs)?ce:Yn.call(r,ce,e,i,D))}if(_===void 0)M($);else return N($,_),E(_,Q)}function A(D,$){var W=s.length;return s[W]=$,o[D]=W,"refVal"+W}function M(D){delete o[D]}function N(D,$){var W=o[D];s[W]=$}function E(D,$){return typeof D=="object"||typeof D=="boolean"?{code:$,schema:D,inline:!0}:{code:$,$async:D&&!!D.$async}}function R(D){var $=d[D];return $===void 0&&($=d[D]=l.length,l[$]=D),"pattern"+$}function k(D){switch(typeof D){case"boolean":case"number":return""+D;case"string":return Sa.toQuotedString(D);case"object":if(D===null)return"null";var $=um(D),W=u[$];return W===void 0&&(W=u[$]=c.length,c[W]=D),"default"+W}}function L(D,$,W,ee){if(r._opts.validateSchema!==!1){var H=D.definition.dependencies;if(H&&!H.every(function($e){return Object.prototype.hasOwnProperty.call(W,$e)}))throw new Error("parent schema must have all required keywords: "+H.join(","));var Q=D.definition.validateSchema;if(Q){var U=Q($);if(!U){var _="keyword schema is invalid: "+r.errorsText(Q.errors);if(r._opts.validateSchema=="log")r.logger.error(_);else throw new Error(_)}}}var ce=D.definition.compile,Be=D.definition.inline,je=D.definition.macro,te;if(ce)te=ce.call(r,$,W,ee);else if(je)te=je.call(r,$,W,ee),n.validateSchema!==!1&&r.validateSchema(te,!0);else if(Be)te=Be.call(r,ee,D.keyword,$,W);else if(te=D.definition.validate,!te)return;if(te===void 0)throw new Error('custom keyword "'+D.keyword+'"failed to compile');var Pe=f.length;return f[Pe]=te,{code:"customRule"+Pe,validate:te}}}function mm(t,e,i){var a=ud.call(this,t,e,i);return a>=0?{index:a,compiling:!0}:(a=this._compilations.length,this._compilations[a]={schema:t,root:e,baseId:i},{index:a,compiling:!1})}function ym(t,e,i){var a=ud.call(this,t,e,i);a>=0&&this._compilations.splice(a,1)}function ud(t,e,i){for(var a=0;a<this._compilations.length;a++){var r=this._compilations[a];if(r.schema==t&&r.root==e&&r.baseId==i)return a}return-1}function gm(t,e){return"var pattern"+t+" = new RegExp("+Sa.toQuotedString(e[t])+");"}function bm(t){return"var default"+t+" = defaults["+t+"];"}function vm(t,e){return e[t]===void 0?"":"var refVal"+t+" = refVal["+t+"];"}function Sm(t){return"var customRule"+t+" = customRules["+t+"];"}function va(t,e){if(!t.length)return"";for(var i="",a=0;a<t.length;a++)i+=e(a,t);return i}});var md=z((I0,hd)=>{"use strict";var wa=hd.exports=function(){this._cache={}};wa.prototype.put=function(e,i){this._cache[e]=i};wa.prototype.get=function(e){return this._cache[e]};wa.prototype.del=function(e){delete this._cache[e]};wa.prototype.clear=function(){this._cache={}}});var Od=z((C0,Fd)=>{"use strict";var wm=Cr(),Im=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Cm=[0,31,28,31,30,31,30,31,31,30,31,30,31],xm=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,yd=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,Tm=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,Fm=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,gd=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,bd=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,vd=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Sd=/^(?:\/(?:[^~/]|~0|~1)*)*$/,wd=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,Id=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;Fd.exports=Ia;function Ia(t){return t=t=="full"?"full":"fast",wm.copy(Ia[t])}Ia.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":gd,url:bd,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:yd,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:Td,uuid:vd,"json-pointer":Sd,"json-pointer-uri-fragment":wd,"relative-json-pointer":Id};Ia.full={date:Cd,time:xd,"date-time":Am,uri:Dm,"uri-reference":Fm,"uri-template":gd,url:bd,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:yd,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:Td,uuid:vd,"json-pointer":Sd,"json-pointer-uri-fragment":wd,"relative-json-pointer":Id};function Om(t){return t%4===0&&(t%100!==0||t%400===0)}function Cd(t){var e=t.match(Im);if(!e)return!1;var i=+e[1],a=+e[2],r=+e[3];return a>=1&&a<=12&&r>=1&&r<=(a==2&&Om(i)?29:Cm[a])}function xd(t,e){var i=t.match(xm);if(!i)return!1;var a=i[1],r=i[2],n=i[3],s=i[5];return(a<=23&&r<=59&&n<=59||a==23&&r==59&&n==60)&&(!e||s)}var Pm=/t|\s/i;function Am(t){var e=t.split(Pm);return e.length==2&&Cd(e[0])&&xd(e[1],!0)}var Em=/\/|:/;function Dm(t){return Em.test(t)&&Tm.test(t)}var Lm=/[^\\]\\Z/;function Td(t){if(Lm.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var Ad=z((x0,Pd)=>{"use strict";Pd.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.errSchemaPath+"/"+i,d=!e.opts.allErrors,c="data"+(s||""),u="valid"+n,f,p;if(o=="#"||o=="#/")e.isRoot?(f=e.async,p="validate"):(f=e.root.schema.$async===!0,p="root.refVal[0]");else{var h=e.resolveRef(e.baseId,o,e.isRoot);if(h===void 0){var b=e.MissingRefError.message(e.baseId,o);if(e.opts.missingRefs=="fail"){e.logger.error(b);var m=m||[];m.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { ref: '"+e.util.escapeQuotes(o)+"' } ",e.opts.messages!==!1&&(r+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(o)+"' "),e.opts.verbose&&(r+=" , schema: "+e.util.toQuotedString(o)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";var w=r;r=m.pop(),!e.compositeRule&&d?e.async?r+=" throw new ValidationError(["+w+"]); ":r+=" validate.errors = ["+w+"]; return false; ":r+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d&&(r+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(b),d&&(r+=" if (true) { ");else throw new e.MissingRefError(e.baseId,o,b)}else if(h.inline){var C=e.util.copy(e);C.level++;var I="valid"+C.level;C.schema=h.schema,C.schemaPath="",C.errSchemaPath=o;var O=e.validate(C).replace(/validate\.schema/g,h.code);r+=" "+O+" ",d&&(r+=" if ("+I+") { ")}else f=h.$async===!0||e.async&&h.$async!==!1,p=h.code}if(p){var m=m||[];m.push(r),r="",e.opts.passContext?r+=" "+p+".call(this, ":r+=" "+p+"( ",r+=" "+c+", (dataPath || '')",e.errorPath!='""'&&(r+=" + "+e.errorPath);var P=s?"data"+(s-1||""):"parentData",A=s?e.dataPathArr[s]:"parentDataProperty";r+=" , "+P+" , "+A+", rootData) ";var M=r;if(r=m.pop(),f){if(!e.async)throw new Error("async schema referenced by sync schema");d&&(r+=" var "+u+"; "),r+=" try { await "+M+"; ",d&&(r+=" "+u+" = true; "),r+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",d&&(r+=" "+u+" = false; "),r+=" } ",d&&(r+=" if ("+u+") { ")}else r+=" if (!"+M+") { if (vErrors === null) vErrors = "+p+".errors; else vErrors = vErrors.concat("+p+".errors); errors = vErrors.length; } ",d&&(r+=" else { ")}return r}});var Dd=z((T0,Ed)=>{"use strict";Ed.exports=function(e,i,a){var r=" ",n=e.schema[i],s=e.schemaPath+e.util.getProperty(i),o=e.errSchemaPath+"/"+i,l=!e.opts.allErrors,d=e.util.copy(e),c="";d.level++;var u="valid"+d.level,f=d.baseId,p=!0,h=n;if(h)for(var b,m=-1,w=h.length-1;m<w;)b=h[m+=1],(e.opts.strictKeywords?typeof b=="object"&&Object.keys(b).length>0||b===!1:e.util.schemaHasRules(b,e.RULES.all))&&(p=!1,d.schema=b,d.schemaPath=s+"["+m+"]",d.errSchemaPath=o+"/"+m,r+=" "+e.validate(d)+" ",d.baseId=f,l&&(r+=" if ("+u+") { ",c+="}"));return l&&(p?r+=" if (true) { ":r+=" "+c.slice(0,-1)+" "),r}});var $d=z((F0,Ld)=>{"use strict";Ld.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f="valid"+n,p="errs__"+n,h=e.util.copy(e),b="";h.level++;var m="valid"+h.level,w=o.every(function(N){return e.opts.strictKeywords?typeof N=="object"&&Object.keys(N).length>0||N===!1:e.util.schemaHasRules(N,e.RULES.all)});if(w){var C=h.baseId;r+=" var "+p+" = errors; var "+f+" = false; ";var I=e.compositeRule;e.compositeRule=h.compositeRule=!0;var O=o;if(O)for(var P,A=-1,M=O.length-1;A<M;)P=O[A+=1],h.schema=P,h.schemaPath=l+"["+A+"]",h.errSchemaPath=d+"/"+A,r+=" "+e.validate(h)+" ",h.baseId=C,r+=" "+f+" = "+f+" || "+m+"; if (!"+f+") { ",b+="}";e.compositeRule=h.compositeRule=I,r+=" "+b+" if (!"+f+") { var err = ",e.createErrors!==!1?(r+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(r+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+=" } else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.opts.allErrors&&(r+=" } ")}else c&&(r+=" if (true) { ");return r}});var Rd=z((O0,Nd)=>{"use strict";Nd.exports=function(e,i,a){var r=" ",n=e.schema[i],s=e.errSchemaPath+"/"+i,o=!e.opts.allErrors,l=e.util.toQuotedString(n);return e.opts.$comment===!0?r+=" console.log("+l+");":typeof e.opts.$comment=="function"&&(r+=" self._opts.$comment("+l+", "+e.util.toQuotedString(s)+", validate.root.schema);"),r}});var kd=z((P0,Md)=>{"use strict";Md.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f="valid"+n,p=e.opts.$data&&o&&o.$data,h;p?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",h="schema"+n):h=o,p||(r+=" var schema"+n+" = validate.schema"+l+";"),r+="var "+f+" = equal("+u+", schema"+n+"); if (!"+f+") { ";var b=b||[];b.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { allowedValue: schema"+n+" } ",e.opts.messages!==!1&&(r+=" , message: 'should be equal to constant' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var m=r;return r=b.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+m+"]); ":r+=" validate.errors = ["+m+"]; return false; ":r+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" }",c&&(r+=" else { "),r}});var qd=z((A0,Bd)=>{"use strict";Bd.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f="valid"+n,p="errs__"+n,h=e.util.copy(e),b="";h.level++;var m="valid"+h.level,w="i"+n,C=h.dataLevel=e.dataLevel+1,I="data"+C,O=e.baseId,P=e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all);if(r+="var "+p+" = errors;var "+f+";",P){var A=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=o,h.schemaPath=l,h.errSchemaPath=d,r+=" var "+m+" = false; for (var "+w+" = 0; "+w+" < "+u+".length; "+w+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,w,e.opts.jsonPointers,!0);var M=u+"["+w+"]";h.dataPathArr[C]=w;var N=e.validate(h);h.baseId=O,e.util.varOccurences(N,I)<2?r+=" "+e.util.varReplace(N,I,M)+" ":r+=" var "+I+" = "+M+"; "+N+" ",r+=" if ("+m+") break; } ",e.compositeRule=h.compositeRule=A,r+=" "+b+" if (!"+m+") {"}else r+=" if ("+u+".length == 0) {";var E=E||[];E.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(r+=" , message: 'should contain a valid item' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var R=r;return r=E.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+R+"]); ":r+=" validate.errors = ["+R+"]; return false; ":r+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { ",P&&(r+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } "),e.opts.allErrors&&(r+=" } "),r}});var jd=z((E0,Wd)=>{"use strict";Wd.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f="errs__"+n,p=e.util.copy(e),h="";p.level++;var b="valid"+p.level,m={},w={},C=e.opts.ownProperties;for(A in o)if(A!="__proto__"){var I=o[A],O=Array.isArray(I)?w:m;O[A]=I}r+="var "+f+" = errors;";var P=e.errorPath;r+="var missing"+n+";";for(var A in w)if(O=w[A],O.length){if(r+=" if ( "+u+e.util.getProperty(A)+" !== undefined ",C&&(r+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(A)+"') "),c){r+=" && ( ";var M=O;if(M)for(var N,E=-1,R=M.length-1;E<R;){N=M[E+=1],E&&(r+=" || ");var k=e.util.getProperty(N),L=u+k;r+=" ( ( "+L+" === undefined ",C&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(N)+"') "),r+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?N:k)+") ) "}r+=")) { ";var D="missing"+n,$="' + "+D+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(P,D,!0):P+" + "+D);var W=W||[];W.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { property: '"+e.util.escapeQuotes(A)+"', missingProperty: '"+$+"', depsCount: "+O.length+", deps: '"+e.util.escapeQuotes(O.length==1?O[0]:O.join(", "))+"' } ",e.opts.messages!==!1&&(r+=" , message: 'should have ",O.length==1?r+="property "+e.util.escapeQuotes(O[0]):r+="properties "+e.util.escapeQuotes(O.join(", ")),r+=" when property "+e.util.escapeQuotes(A)+" is present' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var ee=r;r=W.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+ee+"]); ":r+=" validate.errors = ["+ee+"]; return false; ":r+=" var err = "+ee+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{r+=" ) { ";var H=O;if(H)for(var N,Q=-1,U=H.length-1;Q<U;){N=H[Q+=1];var k=e.util.getProperty(N),$=e.util.escapeQuotes(N),L=u+k;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(P,N,e.opts.jsonPointers)),r+=" if ( "+L+" === undefined ",C&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(N)+"') "),r+=") { var err = ",e.createErrors!==!1?(r+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { property: '"+e.util.escapeQuotes(A)+"', missingProperty: '"+$+"', depsCount: "+O.length+", deps: '"+e.util.escapeQuotes(O.length==1?O[0]:O.join(", "))+"' } ",e.opts.messages!==!1&&(r+=" , message: 'should have ",O.length==1?r+="property "+e.util.escapeQuotes(O[0]):r+="properties "+e.util.escapeQuotes(O.join(", ")),r+=" when property "+e.util.escapeQuotes(A)+" is present' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}r+=" } ",c&&(h+="}",r+=" else { ")}e.errorPath=P;var _=p.baseId;for(var A in m){var I=m[A];(e.opts.strictKeywords?typeof I=="object"&&Object.keys(I).length>0||I===!1:e.util.schemaHasRules(I,e.RULES.all))&&(r+=" "+b+" = true; if ( "+u+e.util.getProperty(A)+" !== undefined ",C&&(r+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(A)+"') "),r+=") { ",p.schema=I,p.schemaPath=l+e.util.getProperty(A),p.errSchemaPath=d+"/"+e.util.escapeFragment(A),r+=" "+e.validate(p)+" ",p.baseId=_,r+=" } ",c&&(r+=" if ("+b+") { ",h+="}"))}return c&&(r+=" "+h+" if ("+f+" == errors) {"),r}});var Vd=z((D0,_d)=>{"use strict";_d.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f="valid"+n,p=e.opts.$data&&o&&o.$data,h;p?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",h="schema"+n):h=o;var b="i"+n,m="schema"+n;p||(r+=" var "+m+" = validate.schema"+l+";"),r+="var "+f+";",p&&(r+=" if (schema"+n+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+n+")) "+f+" = false; else {"),r+=""+f+" = false;for (var "+b+"=0; "+b+"<"+m+".length; "+b+"++) if (equal("+u+", "+m+"["+b+"])) { "+f+" = true; break; }",p&&(r+=" } "),r+=" if (!"+f+") { ";var w=w||[];w.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { allowedValues: schema"+n+" } ",e.opts.messages!==!1&&(r+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var C=r;return r=w.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+C+"]); ":r+=" validate.errors = ["+C+"]; return false; ":r+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" }",c&&(r+=" else { "),r}});var Ud=z((L0,zd)=>{"use strict";zd.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||"");if(e.opts.format===!1)return c&&(r+=" if (true) { "),r;var f=e.opts.$data&&o&&o.$data,p;f?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o;var h=e.opts.unknownFormats,b=Array.isArray(h);if(f){var m="format"+n,w="isObject"+n,C="formatType"+n;r+=" var "+m+" = formats["+p+"]; var "+w+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+C+" = "+w+" && "+m+".type || 'string'; if ("+w+") { ",e.async&&(r+=" var async"+n+" = "+m+".async; "),r+=" "+m+" = "+m+".validate; } if ( ",f&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),r+=" (",h!="ignore"&&(r+=" ("+p+" && !"+m+" ",b&&(r+=" && self._opts.unknownFormats.indexOf("+p+") == -1 "),r+=") || "),r+=" ("+m+" && "+C+" == '"+a+"' && !(typeof "+m+" == 'function' ? ",e.async?r+=" (async"+n+" ? await "+m+"("+u+") : "+m+"("+u+")) ":r+=" "+m+"("+u+") ",r+=" : "+m+".test("+u+"))))) {"}else{var m=e.formats[o];if(!m){if(h=="ignore")return e.logger.warn('unknown format "'+o+'" ignored in schema at path "'+e.errSchemaPath+'"'),c&&(r+=" if (true) { "),r;if(b&&h.indexOf(o)>=0)return c&&(r+=" if (true) { "),r;throw new Error('unknown format "'+o+'" is used in schema at path "'+e.errSchemaPath+'"')}var w=typeof m=="object"&&!(m instanceof RegExp)&&m.validate,C=w&&m.type||"string";if(w){var I=m.async===!0;m=m.validate}if(C!=a)return c&&(r+=" if (true) { "),r;if(I){if(!e.async)throw new Error("async format in sync schema");var O="formats"+e.util.getProperty(o)+".validate";r+=" if (!(await "+O+"("+u+"))) { "}else{r+=" if (! ";var O="formats"+e.util.getProperty(o);w&&(O+=".validate"),typeof m=="function"?r+=" "+O+"("+u+") ":r+=" "+O+".test("+u+") ",r+=") { "}}var P=P||[];P.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { format: ",f?r+=""+p:r+=""+e.util.toQuotedString(o),r+=" } ",e.opts.messages!==!1&&(r+=` , message: 'should match format "`,f?r+="' + "+p+" + '":r+=""+e.util.escapeQuotes(o),r+=`"' `),e.opts.verbose&&(r+=" , schema: ",f?r+="validate.schema"+l:r+=""+e.util.toQuotedString(o),r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var A=r;return r=P.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+A+"]); ":r+=" validate.errors = ["+A+"]; return false; ":r+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",c&&(r+=" else { "),r}});var Gd=z(($0,Hd)=>{"use strict";Hd.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f="valid"+n,p="errs__"+n,h=e.util.copy(e);h.level++;var b="valid"+h.level,m=e.schema.then,w=e.schema.else,C=m!==void 0&&(e.opts.strictKeywords?typeof m=="object"&&Object.keys(m).length>0||m===!1:e.util.schemaHasRules(m,e.RULES.all)),I=w!==void 0&&(e.opts.strictKeywords?typeof w=="object"&&Object.keys(w).length>0||w===!1:e.util.schemaHasRules(w,e.RULES.all)),O=h.baseId;if(C||I){var P;h.createErrors=!1,h.schema=o,h.schemaPath=l,h.errSchemaPath=d,r+=" var "+p+" = errors; var "+f+" = true; ";var A=e.compositeRule;e.compositeRule=h.compositeRule=!0,r+=" "+e.validate(h)+" ",h.baseId=O,h.createErrors=!0,r+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.compositeRule=h.compositeRule=A,C?(r+=" if ("+b+") { ",h.schema=e.schema.then,h.schemaPath=e.schemaPath+".then",h.errSchemaPath=e.errSchemaPath+"/then",r+=" "+e.validate(h)+" ",h.baseId=O,r+=" "+f+" = "+b+"; ",C&&I?(P="ifClause"+n,r+=" var "+P+" = 'then'; "):P="'then'",r+=" } ",I&&(r+=" else { ")):r+=" if (!"+b+") { ",I&&(h.schema=e.schema.else,h.schemaPath=e.schemaPath+".else",h.errSchemaPath=e.errSchemaPath+"/else",r+=" "+e.validate(h)+" ",h.baseId=O,r+=" "+f+" = "+b+"; ",C&&I?(P="ifClause"+n,r+=" var "+P+" = 'else'; "):P="'else'",r+=" } "),r+=" if (!"+f+") { var err = ",e.createErrors!==!1?(r+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { failingKeyword: "+P+" } ",e.opts.messages!==!1&&(r+=` , message: 'should match "' + `+P+` + '" schema' `),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+=" } ",c&&(r+=" else { ")}else c&&(r+=" if (true) { ");return r}});var Zd=z((N0,Qd)=>{"use strict";Qd.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f="valid"+n,p="errs__"+n,h=e.util.copy(e),b="";h.level++;var m="valid"+h.level,w="i"+n,C=h.dataLevel=e.dataLevel+1,I="data"+C,O=e.baseId;if(r+="var "+p+" = errors;var "+f+";",Array.isArray(o)){var P=e.schema.additionalItems;if(P===!1){r+=" "+f+" = "+u+".length <= "+o.length+"; ";var A=d;d=e.errSchemaPath+"/additionalItems",r+=" if (!"+f+") { ";var M=M||[];M.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+o.length+" } ",e.opts.messages!==!1&&(r+=" , message: 'should NOT have more than "+o.length+" items' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var N=r;r=M.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+N+"]); ":r+=" validate.errors = ["+N+"]; return false; ":r+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",d=A,c&&(b+="}",r+=" else { ")}var E=o;if(E){for(var R,k=-1,L=E.length-1;k<L;)if(R=E[k+=1],e.opts.strictKeywords?typeof R=="object"&&Object.keys(R).length>0||R===!1:e.util.schemaHasRules(R,e.RULES.all)){r+=" "+m+" = true; if ("+u+".length > "+k+") { ";var D=u+"["+k+"]";h.schema=R,h.schemaPath=l+"["+k+"]",h.errSchemaPath=d+"/"+k,h.errorPath=e.util.getPathExpr(e.errorPath,k,e.opts.jsonPointers,!0),h.dataPathArr[C]=k;var $=e.validate(h);h.baseId=O,e.util.varOccurences($,I)<2?r+=" "+e.util.varReplace($,I,D)+" ":r+=" var "+I+" = "+D+"; "+$+" ",r+=" } ",c&&(r+=" if ("+m+") { ",b+="}")}}if(typeof P=="object"&&(e.opts.strictKeywords?typeof P=="object"&&Object.keys(P).length>0||P===!1:e.util.schemaHasRules(P,e.RULES.all))){h.schema=P,h.schemaPath=e.schemaPath+".additionalItems",h.errSchemaPath=e.errSchemaPath+"/additionalItems",r+=" "+m+" = true; if ("+u+".length > "+o.length+") { for (var "+w+" = "+o.length+"; "+w+" < "+u+".length; "+w+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,w,e.opts.jsonPointers,!0);var D=u+"["+w+"]";h.dataPathArr[C]=w;var $=e.validate(h);h.baseId=O,e.util.varOccurences($,I)<2?r+=" "+e.util.varReplace($,I,D)+" ":r+=" var "+I+" = "+D+"; "+$+" ",c&&(r+=" if (!"+m+") break; "),r+=" } } ",c&&(r+=" if ("+m+") { ",b+="}")}}else if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){h.schema=o,h.schemaPath=l,h.errSchemaPath=d,r+=" for (var "+w+" = 0; "+w+" < "+u+".length; "+w+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,w,e.opts.jsonPointers,!0);var D=u+"["+w+"]";h.dataPathArr[C]=w;var $=e.validate(h);h.baseId=O,e.util.varOccurences($,I)<2?r+=" "+e.util.varReplace($,I,D)+" ":r+=" var "+I+" = "+D+"; "+$+" ",c&&(r+=" if (!"+m+") break; "),r+=" }"}return c&&(r+=" "+b+" if ("+p+" == errors) {"),r}});var Kn=z((R0,Jd)=>{"use strict";Jd.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,O,u="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;f?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o;var h=i=="maximum",b=h?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[b],w=e.opts.$data&&m&&m.$data,C=h?"<":">",I=h?">":"<",O=void 0;if(!(f||typeof o=="number"||o===void 0))throw new Error(i+" must be number");if(!(w||m===void 0||typeof m=="number"||typeof m=="boolean"))throw new Error(b+" must be number or boolean");if(w){var P=e.util.getData(m.$data,s,e.dataPathArr),A="exclusive"+n,M="exclType"+n,N="exclIsNumber"+n,E="op"+n,R="' + "+E+" + '";r+=" var schemaExcl"+n+" = "+P+"; ",P="schemaExcl"+n,r+=" var "+A+"; var "+M+" = typeof "+P+"; if ("+M+" != 'boolean' && "+M+" != 'undefined' && "+M+" != 'number') { ";var O=b,k=k||[];k.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(O||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(r+=" , message: '"+b+" should be boolean' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var L=r;r=k.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+L+"]); ":r+=" validate.errors = ["+L+"]; return false; ":r+=" var err = "+L+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else if ( ",f&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),r+=" "+M+" == 'number' ? ( ("+A+" = "+p+" === undefined || "+P+" "+C+"= "+p+") ? "+u+" "+I+"= "+P+" : "+u+" "+I+" "+p+" ) : ( ("+A+" = "+P+" === true) ? "+u+" "+I+"= "+p+" : "+u+" "+I+" "+p+" ) || "+u+" !== "+u+") { var op"+n+" = "+A+" ? '"+C+"' : '"+C+"='; ",o===void 0&&(O=b,d=e.errSchemaPath+"/"+b,p=P,f=w)}else{var N=typeof m=="number",R=C;if(N&&f){var E="'"+R+"'";r+=" if ( ",f&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),r+=" ( "+p+" === undefined || "+m+" "+C+"= "+p+" ? "+u+" "+I+"= "+m+" : "+u+" "+I+" "+p+" ) || "+u+" !== "+u+") { "}else{N&&o===void 0?(A=!0,O=b,d=e.errSchemaPath+"/"+b,p=m,I+="="):(N&&(p=Math[h?"min":"max"](m,o)),m===(N?p:!0)?(A=!0,O=b,d=e.errSchemaPath+"/"+b,I+="="):(A=!1,R+="="));var E="'"+R+"'";r+=" if ( ",f&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),r+=" "+u+" "+I+" "+p+" || "+u+" !== "+u+") { "}}O=O||i;var k=k||[];k.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(O||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { comparison: "+E+", limit: "+p+", exclusive: "+A+" } ",e.opts.messages!==!1&&(r+=" , message: 'should be "+R+" ",f?r+="' + "+p:r+=""+p+"'"),e.opts.verbose&&(r+=" , schema: ",f?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var L=r;return r=k.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+L+"]); ":r+=" validate.errors = ["+L+"]; return false; ":r+=" var err = "+L+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",c&&(r+=" else { "),r}});var Xn=z((M0,Yd)=>{"use strict";Yd.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,b,u="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;if(f?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(f||typeof o=="number"))throw new Error(i+" must be number");var h=i=="maxItems"?">":"<";r+="if ( ",f&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),r+=" "+u+".length "+h+" "+p+") { ";var b=i,m=m||[];m.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(b||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(r+=" , message: 'should NOT have ",i=="maxItems"?r+="more":r+="fewer",r+=" than ",f?r+="' + "+p+" + '":r+=""+o,r+=" items' "),e.opts.verbose&&(r+=" , schema: ",f?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var w=r;return r=m.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+w+"]); ":r+=" validate.errors = ["+w+"]; return false; ":r+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",c&&(r+=" else { "),r}});var es=z((k0,Kd)=>{"use strict";Kd.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,b,u="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;if(f?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(f||typeof o=="number"))throw new Error(i+" must be number");var h=i=="maxLength"?">":"<";r+="if ( ",f&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),e.opts.unicode===!1?r+=" "+u+".length ":r+=" ucs2length("+u+") ",r+=" "+h+" "+p+") { ";var b=i,m=m||[];m.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(b||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(r+=" , message: 'should NOT be ",i=="maxLength"?r+="longer":r+="shorter",r+=" than ",f?r+="' + "+p+" + '":r+=""+o,r+=" characters' "),e.opts.verbose&&(r+=" , schema: ",f?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var w=r;return r=m.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+w+"]); ":r+=" validate.errors = ["+w+"]; return false; ":r+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",c&&(r+=" else { "),r}});var ts=z((B0,Xd)=>{"use strict";Xd.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,b,u="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;if(f?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(f||typeof o=="number"))throw new Error(i+" must be number");var h=i=="maxProperties"?">":"<";r+="if ( ",f&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),r+=" Object.keys("+u+").length "+h+" "+p+") { ";var b=i,m=m||[];m.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(b||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(r+=" , message: 'should NOT have ",i=="maxProperties"?r+="more":r+="fewer",r+=" than ",f?r+="' + "+p+" + '":r+=""+o,r+=" properties' "),e.opts.verbose&&(r+=" , schema: ",f?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var w=r;return r=m.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+w+"]); ":r+=" validate.errors = ["+w+"]; return false; ":r+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",c&&(r+=" else { "),r}});var tc=z((q0,ec)=>{"use strict";ec.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;if(f?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(f||typeof o=="number"))throw new Error(i+" must be number");r+="var division"+n+";if (",f&&(r+=" "+p+" !== undefined && ( typeof "+p+" != 'number' || "),r+=" (division"+n+" = "+u+" / "+p+", ",e.opts.multipleOfPrecision?r+=" Math.abs(Math.round(division"+n+") - division"+n+") > 1e-"+e.opts.multipleOfPrecision+" ":r+=" division"+n+" !== parseInt(division"+n+") ",r+=" ) ",f&&(r+=" ) "),r+=" ) { ";var h=h||[];h.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { multipleOf: "+p+" } ",e.opts.messages!==!1&&(r+=" , message: 'should be multiple of ",f?r+="' + "+p:r+=""+p+"'"),e.opts.verbose&&(r+=" , schema: ",f?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var b=r;return r=h.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+b+"]); ":r+=" validate.errors = ["+b+"]; return false; ":r+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",c&&(r+=" else { "),r}});var ic=z((W0,rc)=>{"use strict";rc.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f="errs__"+n,p=e.util.copy(e);p.level++;var h="valid"+p.level;if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){p.schema=o,p.schemaPath=l,p.errSchemaPath=d,r+=" var "+f+" = errors; ";var b=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.createErrors=!1;var m;p.opts.allErrors&&(m=p.opts.allErrors,p.opts.allErrors=!1),r+=" "+e.validate(p)+" ",p.createErrors=!0,m&&(p.opts.allErrors=m),e.compositeRule=p.compositeRule=b,r+=" if ("+h+") { ";var w=w||[];w.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(r+=" , message: 'should NOT be valid' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var C=r;r=w.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+C+"]); ":r+=" validate.errors = ["+C+"]; return false; ":r+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.opts.allErrors&&(r+=" } ")}else r+=" var err = ",e.createErrors!==!1?(r+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(r+=" , message: 'should NOT be valid' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(r+=" if (false) { ");return r}});var nc=z((j0,ac)=>{"use strict";ac.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f="valid"+n,p="errs__"+n,h=e.util.copy(e),b="";h.level++;var m="valid"+h.level,w=h.baseId,C="prevValid"+n,I="passingSchemas"+n;r+="var "+p+" = errors , "+C+" = false , "+f+" = false , "+I+" = null; ";var O=e.compositeRule;e.compositeRule=h.compositeRule=!0;var P=o;if(P)for(var A,M=-1,N=P.length-1;M<N;)A=P[M+=1],(e.opts.strictKeywords?typeof A=="object"&&Object.keys(A).length>0||A===!1:e.util.schemaHasRules(A,e.RULES.all))?(h.schema=A,h.schemaPath=l+"["+M+"]",h.errSchemaPath=d+"/"+M,r+=" "+e.validate(h)+" ",h.baseId=w):r+=" var "+m+" = true; ",M&&(r+=" if ("+m+" && "+C+") { "+f+" = false; "+I+" = ["+I+", "+M+"]; } else { ",b+="}"),r+=" if ("+m+") { "+f+" = "+C+" = true; "+I+" = "+M+"; }";return e.compositeRule=h.compositeRule=O,r+=""+b+"if (!"+f+") { var err = ",e.createErrors!==!1?(r+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { passingSchemas: "+I+" } ",e.opts.messages!==!1&&(r+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+="} else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; }",e.opts.allErrors&&(r+=" } "),r}});var oc=z((_0,sc)=>{"use strict";sc.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;f?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o;var h=f?"(new RegExp("+p+"))":e.usePattern(o);r+="if ( ",f&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),r+=" !"+h+".test("+u+") ) { ";var b=b||[];b.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { pattern: ",f?r+=""+p:r+=""+e.util.toQuotedString(o),r+=" } ",e.opts.messages!==!1&&(r+=` , message: 'should match pattern "`,f?r+="' + "+p+" + '":r+=""+e.util.escapeQuotes(o),r+=`"' `),e.opts.verbose&&(r+=" , schema: ",f?r+="validate.schema"+l:r+=""+e.util.toQuotedString(o),r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var m=r;return r=b.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+m+"]); ":r+=" validate.errors = ["+m+"]; return false; ":r+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",c&&(r+=" else { "),r}});var dc=z((V0,lc)=>{"use strict";lc.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f="errs__"+n,p=e.util.copy(e),h="";p.level++;var b="valid"+p.level,m="key"+n,w="idx"+n,C=p.dataLevel=e.dataLevel+1,I="data"+C,O="dataProperties"+n,P=Object.keys(o||{}).filter(Q),A=e.schema.patternProperties||{},M=Object.keys(A).filter(Q),N=e.schema.additionalProperties,E=P.length||M.length,R=N===!1,k=typeof N=="object"&&Object.keys(N).length,L=e.opts.removeAdditional,D=R||k||L,$=e.opts.ownProperties,W=e.baseId,ee=e.schema.required;if(ee&&!(e.opts.$data&&ee.$data)&&ee.length<e.opts.loopRequired)var H=e.util.toHash(ee);function Q(yt){return yt!=="__proto__"}if(r+="var "+f+" = errors;var "+b+" = true;",$&&(r+=" var "+O+" = undefined;"),D){if($?r+=" "+O+" = "+O+" || Object.keys("+u+"); for (var "+w+"=0; "+w+"<"+O+".length; "+w+"++) { var "+m+" = "+O+"["+w+"]; ":r+=" for (var "+m+" in "+u+") { ",E){if(r+=" var isAdditional"+n+" = !(false ",P.length)if(P.length>8)r+=" || validate.schema"+l+".hasOwnProperty("+m+") ";else{var U=P;if(U)for(var _,ce=-1,Be=U.length-1;ce<Be;)_=U[ce+=1],r+=" || "+m+" == "+e.util.toQuotedString(_)+" "}if(M.length){var je=M;if(je)for(var te,Pe=-1,$e=je.length-1;Pe<$e;)te=je[Pe+=1],r+=" || "+e.usePattern(te)+".test("+m+") "}r+=" ); if (isAdditional"+n+") { "}if(L=="all")r+=" delete "+u+"["+m+"]; ";else{var _e=e.errorPath,Ht="' + "+m+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers)),R)if(L)r+=" delete "+u+"["+m+"]; ";else{r+=" "+b+" = false; ";var $t=d;d=e.errSchemaPath+"/additionalProperties";var Ae=Ae||[];Ae.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { additionalProperty: '"+Ht+"' } ",e.opts.messages!==!1&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is an invalid additional property":r+="should NOT have additional properties",r+="' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var Te=r;r=Ae.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+Te+"]); ":r+=" validate.errors = ["+Te+"]; return false; ":r+=" var err = "+Te+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d=$t,c&&(r+=" break; ")}else if(k)if(L=="failing"){r+=" var "+f+" = errors; ";var cr=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=N,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var qe=u+"["+m+"]";p.dataPathArr[C]=m;var ie=e.validate(p);p.baseId=W,e.util.varOccurences(ie,I)<2?r+=" "+e.util.varReplace(ie,I,qe)+" ":r+=" var "+I+" = "+qe+"; "+ie+" ",r+=" if (!"+b+") { errors = "+f+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+u+"["+m+"]; } ",e.compositeRule=p.compositeRule=cr}else{p.schema=N,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var qe=u+"["+m+"]";p.dataPathArr[C]=m;var ie=e.validate(p);p.baseId=W,e.util.varOccurences(ie,I)<2?r+=" "+e.util.varReplace(ie,I,qe)+" ":r+=" var "+I+" = "+qe+"; "+ie+" ",c&&(r+=" if (!"+b+") break; ")}e.errorPath=_e}E&&(r+=" } "),r+=" } ",c&&(r+=" if ("+b+") { ",h+="}")}var Gt=e.opts.useDefaults&&!e.compositeRule;if(P.length){var Nt=P;if(Nt)for(var _,ur=-1,pr=Nt.length-1;ur<pr;){_=Nt[ur+=1];var Me=o[_];if(e.opts.strictKeywords?typeof Me=="object"&&Object.keys(Me).length>0||Me===!1:e.util.schemaHasRules(Me,e.RULES.all)){var at=e.util.getProperty(_),qe=u+at,Ue=Gt&&Me.default!==void 0;p.schema=Me,p.schemaPath=l+at,p.errSchemaPath=d+"/"+e.util.escapeFragment(_),p.errorPath=e.util.getPath(e.errorPath,_,e.opts.jsonPointers),p.dataPathArr[C]=e.util.toQuotedString(_);var ie=e.validate(p);if(p.baseId=W,e.util.varOccurences(ie,I)<2){ie=e.util.varReplace(ie,I,qe);var Ve=qe}else{var Ve=I;r+=" var "+I+" = "+qe+"; "}if(Ue)r+=" "+ie+" ";else{if(H&&H[_]){r+=" if ( "+Ve+" === undefined ",$&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(_)+"') "),r+=") { "+b+" = false; ";var _e=e.errorPath,$t=d,Ft=e.util.escapeQuotes(_);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(_e,_,e.opts.jsonPointers)),d=e.errSchemaPath+"/required";var Ae=Ae||[];Ae.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+Ft+"' } ",e.opts.messages!==!1&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+Ft+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var Te=r;r=Ae.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+Te+"]); ":r+=" validate.errors = ["+Te+"]; return false; ":r+=" var err = "+Te+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d=$t,e.errorPath=_e,r+=" } else { "}else c?(r+=" if ( "+Ve+" === undefined ",$&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(_)+"') "),r+=") { "+b+" = true; } else { "):(r+=" if ("+Ve+" !== undefined ",$&&(r+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(_)+"') "),r+=" ) { ");r+=" "+ie+" } "}}c&&(r+=" if ("+b+") { ",h+="}")}}if(M.length){var Je=M;if(Je)for(var te,Ei=-1,_a=Je.length-1;Ei<_a;){te=Je[Ei+=1];var Me=A[te];if(e.opts.strictKeywords?typeof Me=="object"&&Object.keys(Me).length>0||Me===!1:e.util.schemaHasRules(Me,e.RULES.all)){p.schema=Me,p.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(te),p.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(te),$?r+=" "+O+" = "+O+" || Object.keys("+u+"); for (var "+w+"=0; "+w+"<"+O+".length; "+w+"++) { var "+m+" = "+O+"["+w+"]; ":r+=" for (var "+m+" in "+u+") { ",r+=" if ("+e.usePattern(te)+".test("+m+")) { ",p.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var qe=u+"["+m+"]";p.dataPathArr[C]=m;var ie=e.validate(p);p.baseId=W,e.util.varOccurences(ie,I)<2?r+=" "+e.util.varReplace(ie,I,qe)+" ":r+=" var "+I+" = "+qe+"; "+ie+" ",c&&(r+=" if (!"+b+") break; "),r+=" } ",c&&(r+=" else "+b+" = true; "),r+=" } ",c&&(r+=" if ("+b+") { ",h+="}")}}}return c&&(r+=" "+h+" if ("+f+" == errors) {"),r}});var uc=z((z0,cc)=>{"use strict";cc.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f="errs__"+n,p=e.util.copy(e),h="";p.level++;var b="valid"+p.level;if(r+="var "+f+" = errors;",e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){p.schema=o,p.schemaPath=l,p.errSchemaPath=d;var m="key"+n,w="idx"+n,C="i"+n,I="' + "+m+" + '",O=p.dataLevel=e.dataLevel+1,P="data"+O,A="dataProperties"+n,M=e.opts.ownProperties,N=e.baseId;M&&(r+=" var "+A+" = undefined; "),M?r+=" "+A+" = "+A+" || Object.keys("+u+"); for (var "+w+"=0; "+w+"<"+A+".length; "+w+"++) { var "+m+" = "+A+"["+w+"]; ":r+=" for (var "+m+" in "+u+") { ",r+=" var startErrs"+n+" = errors; ";var E=m,R=e.compositeRule;e.compositeRule=p.compositeRule=!0;var k=e.validate(p);p.baseId=N,e.util.varOccurences(k,P)<2?r+=" "+e.util.varReplace(k,P,E)+" ":r+=" var "+P+" = "+E+"; "+k+" ",e.compositeRule=p.compositeRule=R,r+=" if (!"+b+") { for (var "+C+"=startErrs"+n+"; "+C+"<errors; "+C+"++) { vErrors["+C+"].propertyName = "+m+"; } var err = ",e.createErrors!==!1?(r+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { propertyName: '"+I+"' } ",e.opts.messages!==!1&&(r+=" , message: 'property name \\'"+I+"\\' is invalid' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),c&&(r+=" break; "),r+=" } }"}return c&&(r+=" "+h+" if ("+f+" == errors) {"),r}});var fc=z((U0,pc)=>{"use strict";pc.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f="valid"+n,p=e.opts.$data&&o&&o.$data,h;p?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",h="schema"+n):h=o;var b="schema"+n;if(!p)if(o.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var m=[],w=o;if(w)for(var C,I=-1,O=w.length-1;I<O;){C=w[I+=1];var P=e.schema.properties[C];P&&(e.opts.strictKeywords?typeof P=="object"&&Object.keys(P).length>0||P===!1:e.util.schemaHasRules(P,e.RULES.all))||(m[m.length]=C)}}else var m=o;if(p||m.length){var A=e.errorPath,M=p||m.length>=e.opts.loopRequired,N=e.opts.ownProperties;if(c)if(r+=" var missing"+n+"; ",M){p||(r+=" var "+b+" = validate.schema"+l+"; ");var E="i"+n,R="schema"+n+"["+E+"]",k="' + "+R+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(A,R,e.opts.jsonPointers)),r+=" var "+f+" = true; ",p&&(r+=" if (schema"+n+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+n+")) "+f+" = false; else {"),r+=" for (var "+E+" = 0; "+E+" < "+b+".length; "+E+"++) { "+f+" = "+u+"["+b+"["+E+"]] !== undefined ",N&&(r+=" && Object.prototype.hasOwnProperty.call("+u+", "+b+"["+E+"]) "),r+="; if (!"+f+") break; } ",p&&(r+=" } "),r+=" if (!"+f+") { ";var L=L||[];L.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+k+"' } ",e.opts.messages!==!1&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+k+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var D=r;r=L.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+D+"]); ":r+=" validate.errors = ["+D+"]; return false; ":r+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { "}else{r+=" if ( ";var $=m;if($)for(var W,E=-1,ee=$.length-1;E<ee;){W=$[E+=1],E&&(r+=" || ");var H=e.util.getProperty(W),Q=u+H;r+=" ( ( "+Q+" === undefined ",N&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(W)+"') "),r+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?W:H)+") ) "}r+=") { ";var R="missing"+n,k="' + "+R+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(A,R,!0):A+" + "+R);var L=L||[];L.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+k+"' } ",e.opts.messages!==!1&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+k+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var D=r;r=L.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+D+"]); ":r+=" validate.errors = ["+D+"]; return false; ":r+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { "}else if(M){p||(r+=" var "+b+" = validate.schema"+l+"; ");var E="i"+n,R="schema"+n+"["+E+"]",k="' + "+R+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(A,R,e.opts.jsonPointers)),p&&(r+=" if ("+b+" && !Array.isArray("+b+")) { var err = ",e.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+k+"' } ",e.opts.messages!==!1&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+k+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+b+" !== undefined) { "),r+=" for (var "+E+" = 0; "+E+" < "+b+".length; "+E+"++) { if ("+u+"["+b+"["+E+"]] === undefined ",N&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", "+b+"["+E+"]) "),r+=") { var err = ",e.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+k+"' } ",e.opts.messages!==!1&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+k+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",p&&(r+=" } ")}else{var U=m;if(U)for(var W,_=-1,ce=U.length-1;_<ce;){W=U[_+=1];var H=e.util.getProperty(W),k=e.util.escapeQuotes(W),Q=u+H;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(A,W,e.opts.jsonPointers)),r+=" if ( "+Q+" === undefined ",N&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(W)+"') "),r+=") { var err = ",e.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+k+"' } ",e.opts.messages!==!1&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+k+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=A}else c&&(r+=" if (true) {");return r}});var mc=z((H0,hc)=>{"use strict";hc.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f="valid"+n,p=e.opts.$data&&o&&o.$data,h;if(p?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",h="schema"+n):h=o,(o||p)&&e.opts.uniqueItems!==!1){p&&(r+=" var "+f+"; if ("+h+" === false || "+h+" === undefined) "+f+" = true; else if (typeof "+h+" != 'boolean') "+f+" = false; else { "),r+=" var i = "+u+".length , "+f+" = true , j; if (i > 1) { ";var b=e.schema.items&&e.schema.items.type,m=Array.isArray(b);if(!b||b=="object"||b=="array"||m&&(b.indexOf("object")>=0||b.indexOf("array")>=0))r+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+u+"[i], "+u+"[j])) { "+f+" = false; break outer; } } } ";else{r+=" var itemIndices = {}, item; for (;i--;) { var item = "+u+"[i]; ";var w="checkDataType"+(m?"s":"");r+=" if ("+e.util[w](b,"item",e.opts.strictNumbers,!0)+") continue; ",m&&(r+=` if (typeof item == 'string') item = '"' + item; `),r+=" if (typeof itemIndices[item] == 'number') { "+f+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}r+=" } ",p&&(r+=" } "),r+=" if (!"+f+") { ";var C=C||[];C.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { i: i, j: j } ",e.opts.messages!==!1&&(r+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(r+=" , schema: ",p?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var I=r;r=C.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+I+"]); ":r+=" validate.errors = ["+I+"]; return false; ":r+=" var err = "+I+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",c&&(r+=" else { ")}else c&&(r+=" if (true) { ");return r}});var gc=z((G0,yc)=>{"use strict";yc.exports={$ref:Ad(),allOf:Dd(),anyOf:$d(),$comment:Rd(),const:kd(),contains:qd(),dependencies:jd(),enum:Vd(),format:Ud(),if:Gd(),items:Zd(),maximum:Kn(),minimum:Kn(),maxItems:Xn(),minItems:Xn(),maxLength:es(),minLength:es(),maxProperties:ts(),minProperties:ts(),multipleOf:tc(),not:ic(),oneOf:nc(),pattern:oc(),properties:dc(),propertyNames:uc(),required:fc(),uniqueItems:mc(),validate:Jn()}});var Sc=z((Q0,vc)=>{"use strict";var bc=gc(),rs=Cr().toHash;vc.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],i=["type","$comment"],a=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],r=["number","integer","string","array","object","boolean","null"];return e.all=rs(i),e.types=rs(r),e.forEach(function(n){n.rules=n.rules.map(function(s){var o;if(typeof s=="object"){var l=Object.keys(s)[0];o=s[l],s=l,o.forEach(function(c){i.push(c),e.all[c]=!0})}i.push(s);var d=e.all[s]={keyword:s,code:bc[s],implements:o};return d}),e.all.$comment={keyword:"$comment",code:bc.$comment},n.type&&(e.types[n.type]=n)}),e.keywords=rs(i.concat(a)),e.custom={},e}});var Cc=z((Z0,Ic)=>{"use strict";var wc=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];Ic.exports=function(t,e){for(var i=0;i<e.length;i++){t=JSON.parse(JSON.stringify(t));var a=e[i].split("/"),r=t,n;for(n=1;n<a.length;n++)r=r[a[n]];for(n=0;n<wc.length;n++){var s=wc[n],o=r[s];o&&(r[s]={anyOf:[o,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return t}});var Fc=z((J0,Tc)=>{"use strict";var $m=ga().MissingRef;Tc.exports=xc;function xc(t,e,i){var a=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof e=="function"&&(i=e,e=void 0);var r=n(t).then(function(){var o=a._addSchema(t,void 0,e);return o.validate||s(o)});return i&&r.then(function(o){i(null,o)},i),r;function n(o){var l=o.$schema;return l&&!a.getSchema(l)?xc.call(a,{$ref:l},!0):Promise.resolve()}function s(o){try{return a._compile(o)}catch(d){if(d instanceof $m)return l(d);throw d}function l(d){var c=d.missingSchema;if(p(c))throw new Error("Schema "+c+" is loaded but "+d.missingRef+" cannot be resolved");var u=a._loadingSchemas[c];return u||(u=a._loadingSchemas[c]=a._opts.loadSchema(c),u.then(f,f)),u.then(function(h){if(!p(c))return n(h).then(function(){p(c)||a.addSchema(h,c,void 0,e)})}).then(function(){return s(o)});function f(){delete a._loadingSchemas[c]}function p(h){return a._refs[h]||a._schemas[h]}}}}});var Pc=z((Y0,Oc)=>{"use strict";Oc.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u,f="data"+(s||""),p="valid"+n,h="errs__"+n,b=e.opts.$data&&o&&o.$data,m;b?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",m="schema"+n):m=o;var w=this,C="definition"+n,I=w.definition,O="",P,A,M,N,E;if(b&&I.$data){E="keywordValidate"+n;var R=I.validateSchema;r+=" var "+C+" = RULES.custom['"+i+"'].definition; var "+E+" = "+C+".validate;"}else{if(N=e.useCustomRule(w,o,e.schema,e),!N)return;m="validate.schema"+l,E=N.code,P=I.compile,A=I.inline,M=I.macro}var k=E+".errors",L="i"+n,D="ruleErr"+n,$=I.async;if($&&!e.async)throw new Error("async keyword in sync schema");if(A||M||(r+=""+k+" = null;"),r+="var "+h+" = errors;var "+p+";",b&&I.$data&&(O+="}",r+=" if ("+m+" === undefined) { "+p+" = true; } else { ",R&&(O+="}",r+=" "+p+" = "+C+".validateSchema("+m+"); if ("+p+") { ")),A)I.statements?r+=" "+N.validate+" ":r+=" "+p+" = "+N.validate+"; ";else if(M){var W=e.util.copy(e),O="";W.level++;var ee="valid"+W.level;W.schema=N.validate,W.schemaPath="";var H=e.compositeRule;e.compositeRule=W.compositeRule=!0;var Q=e.validate(W).replace(/validate\.schema/g,E);e.compositeRule=W.compositeRule=H,r+=" "+Q}else{var U=U||[];U.push(r),r="",r+=" "+E+".call( ",e.opts.passContext?r+="this":r+="self",P||I.schema===!1?r+=" , "+f+" ":r+=" , "+m+" , "+f+" , validate.schema"+e.schemaPath+" ",r+=" , (dataPath || '')",e.errorPath!='""'&&(r+=" + "+e.errorPath);var _=s?"data"+(s-1||""):"parentData",ce=s?e.dataPathArr[s]:"parentDataProperty";r+=" , "+_+" , "+ce+" , rootData ) ";var Be=r;r=U.pop(),I.errors===!1?(r+=" "+p+" = ",$&&(r+="await "),r+=""+Be+"; "):$?(k="customErrors"+n,r+=" var "+k+" = null; try { "+p+" = await "+Be+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+k+" = e.errors; else throw e; } "):r+=" "+k+" = null; "+p+" = "+Be+"; "}if(I.modifying&&(r+=" if ("+_+") "+f+" = "+_+"["+ce+"];"),r+=""+O,I.valid)c&&(r+=" if (true) { ");else{r+=" if ( ",I.valid===void 0?(r+=" !",M?r+=""+ee:r+=""+p):r+=" "+!I.valid+" ",r+=") { ",u=w.keyword;var U=U||[];U.push(r),r="";var U=U||[];U.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(u||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { keyword: '"+w.keyword+"' } ",e.opts.messages!==!1&&(r+=` , message: 'should pass "`+w.keyword+`" keyword validation' `),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),r+=" } "):r+=" {} ";var je=r;r=U.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+je+"]); ":r+=" validate.errors = ["+je+"]; return false; ":r+=" var err = "+je+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var te=r;r=U.pop(),A?I.errors?I.errors!="full"&&(r+=" for (var "+L+"="+h+"; "+L+"<errors; "+L+"++) { var "+D+" = vErrors["+L+"]; if ("+D+".dataPath === undefined) "+D+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+D+".schemaPath === undefined) { "+D+'.schemaPath = "'+d+'"; } ',e.opts.verbose&&(r+=" "+D+".schema = "+m+"; "+D+".data = "+f+"; "),r+=" } "):I.errors===!1?r+=" "+te+" ":(r+=" if ("+h+" == errors) { "+te+" } else { for (var "+L+"="+h+"; "+L+"<errors; "+L+"++) { var "+D+" = vErrors["+L+"]; if ("+D+".dataPath === undefined) "+D+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+D+".schemaPath === undefined) { "+D+'.schemaPath = "'+d+'"; } ',e.opts.verbose&&(r+=" "+D+".schema = "+m+"; "+D+".data = "+f+"; "),r+=" } } "):M?(r+=" var err = ",e.createErrors!==!1?(r+=" { keyword: '"+(u||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { keyword: '"+w.keyword+"' } ",e.opts.messages!==!1&&(r+=` , message: 'should pass "`+w.keyword+`" keyword validation' `),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; ")):I.errors===!1?r+=" "+te+" ":(r+=" if (Array.isArray("+k+")) { if (vErrors === null) vErrors = "+k+"; else vErrors = vErrors.concat("+k+"); errors = vErrors.length; for (var "+L+"="+h+"; "+L+"<errors; "+L+"++) { var "+D+" = vErrors["+L+"]; if ("+D+".dataPath === undefined) "+D+".dataPath = (dataPath || '') + "+e.errorPath+"; "+D+'.schemaPath = "'+d+'"; ',e.opts.verbose&&(r+=" "+D+".schema = "+m+"; "+D+".data = "+f+"; "),r+=" } } else { "+te+" } "),r+=" } ",c&&(r+=" else { ")}return r}});var is=z((K0,Nm)=>{Nm.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var Dc=z((X0,Ec)=>{"use strict";var Ac=is();Ec.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:Ac.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:Ac.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}});var $c=z((eS,Lc)=>{"use strict";var Rm=/^[a-z_$][a-z0-9_$-]*$/i,Mm=Pc(),km=Dc();Lc.exports={add:Bm,get:qm,remove:Wm,validate:as};function Bm(t,e){var i=this.RULES;if(i.keywords[t])throw new Error("Keyword "+t+" is already defined");if(!Rm.test(t))throw new Error("Keyword "+t+" is not a valid identifier");if(e){this.validateKeyword(e,!0);var a=e.type;if(Array.isArray(a))for(var r=0;r<a.length;r++)s(t,a[r],e);else s(t,a,e);var n=e.metaSchema;n&&(e.$data&&this._opts.$data&&(n={anyOf:[n,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),e.validateSchema=this.compile(n,!0))}i.keywords[t]=i.all[t]=!0;function s(o,l,d){for(var c,u=0;u<i.length;u++){var f=i[u];if(f.type==l){c=f;break}}c||(c={type:l,rules:[]},i.push(c));var p={keyword:o,definition:d,custom:!0,code:Mm,implements:d.implements};c.rules.push(p),i.custom[o]=p}return this}function qm(t){var e=this.RULES.custom[t];return e?e.definition:this.RULES.keywords[t]||!1}function Wm(t){var e=this.RULES;delete e.keywords[t],delete e.all[t],delete e.custom[t];for(var i=0;i<e.length;i++)for(var a=e[i].rules,r=0;r<a.length;r++)if(a[r].keyword==t){a.splice(r,1);break}return this}function as(t,e){as.errors=null;var i=this._validateKeyword=this._validateKeyword||this.compile(km,!0);if(i(t))return!0;if(as.errors=i.errors,e)throw new Error("custom keyword definition is invalid: "+this.errorsText(i.errors));return!1}});var Nc=z((tS,jm)=>{jm.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var zc=z((rS,Vc)=>{"use strict";var Mc=fd(),xr=ya(),_m=md(),kc=Vn(),Vm=Zn(),zm=Od(),Um=Sc(),Bc=Cc(),qc=Cr();Vc.exports=Fe;Fe.prototype.validate=Gm;Fe.prototype.compile=Qm;Fe.prototype.addSchema=Zm;Fe.prototype.addMetaSchema=Jm;Fe.prototype.validateSchema=Ym;Fe.prototype.getSchema=Xm;Fe.prototype.removeSchema=ty;Fe.prototype.addFormat=dy;Fe.prototype.errorsText=ly;Fe.prototype._addSchema=ry;Fe.prototype._compile=iy;Fe.prototype.compileAsync=Fc();var Ta=$c();Fe.prototype.addKeyword=Ta.add;Fe.prototype.getKeyword=Ta.get;Fe.prototype.removeKeyword=Ta.remove;Fe.prototype.validateKeyword=Ta.validate;var Wc=ga();Fe.ValidationError=Wc.Validation;Fe.MissingRefError=Wc.MissingRef;Fe.$dataMetaSchema=Bc;var xa="http://json-schema.org/draft-07/schema",Rc=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],Hm=["/properties"];function Fe(t){if(!(this instanceof Fe))return new Fe(t);t=this._opts=qc.copy(t)||{},my(this),this._schemas={},this._refs={},this._fragments={},this._formats=zm(t.format),this._cache=t.cache||new _m,this._loadingSchemas={},this._compilations=[],this.RULES=Um(),this._getId=ay(t),t.loopRequired=t.loopRequired||1/0,t.errorDataPath=="property"&&(t._errorDataPathProperty=!0),t.serialize===void 0&&(t.serialize=Vm),this._metaOpts=hy(this),t.formats&&py(this),t.keywords&&fy(this),cy(this),typeof t.meta=="object"&&this.addMetaSchema(t.meta),t.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),uy(this)}function Gm(t,e){var i;if(typeof t=="string"){if(i=this.getSchema(t),!i)throw new Error('no schema with key or ref "'+t+'"')}else{var a=this._addSchema(t);i=a.validate||this._compile(a)}var r=i(e);return i.$async!==!0&&(this.errors=i.errors),r}function Qm(t,e){var i=this._addSchema(t,void 0,e);return i.validate||this._compile(i)}function Zm(t,e,i,a){if(Array.isArray(t)){for(var r=0;r<t.length;r++)this.addSchema(t[r],void 0,i,a);return this}var n=this._getId(t);if(n!==void 0&&typeof n!="string")throw new Error("schema id must be string");return e=xr.normalizeId(e||n),_c(this,e),this._schemas[e]=this._addSchema(t,i,a,!0),this}function Jm(t,e,i){return this.addSchema(t,e,i,!0),this}function Ym(t,e){var i=t.$schema;if(i!==void 0&&typeof i!="string")throw new Error("$schema must be a string");if(i=i||this._opts.defaultMeta||Km(this),!i)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var a=this.validate(i,t);if(!a&&e){var r="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(r);else throw new Error(r)}return a}function Km(t){var e=t._opts.meta;return t._opts.defaultMeta=typeof e=="object"?t._getId(e)||e:t.getSchema(xa)?xa:void 0,t._opts.defaultMeta}function Xm(t){var e=jc(this,t);switch(typeof e){case"object":return e.validate||this._compile(e);case"string":return this.getSchema(e);case"undefined":return ey(this,t)}}function ey(t,e){var i=xr.schema.call(t,{schema:{}},e);if(i){var a=i.schema,r=i.root,n=i.baseId,s=Mc.call(t,a,r,void 0,n);return t._fragments[e]=new kc({ref:e,fragment:!0,schema:a,root:r,baseId:n,validate:s}),s}}function jc(t,e){return e=xr.normalizeId(e),t._schemas[e]||t._refs[e]||t._fragments[e]}function ty(t){if(t instanceof RegExp)return Ca(this,this._schemas,t),Ca(this,this._refs,t),this;switch(typeof t){case"undefined":return Ca(this,this._schemas),Ca(this,this._refs),this._cache.clear(),this;case"string":var e=jc(this,t);return e&&this._cache.del(e.cacheKey),delete this._schemas[t],delete this._refs[t],this;case"object":var i=this._opts.serialize,a=i?i(t):t;this._cache.del(a);var r=this._getId(t);r&&(r=xr.normalizeId(r),delete this._schemas[r],delete this._refs[r])}return this}function Ca(t,e,i){for(var a in e){var r=e[a];!r.meta&&(!i||i.test(a))&&(t._cache.del(r.cacheKey),delete e[a])}}function ry(t,e,i,a){if(typeof t!="object"&&typeof t!="boolean")throw new Error("schema should be object or boolean");var r=this._opts.serialize,n=r?r(t):t,s=this._cache.get(n);if(s)return s;a=a||this._opts.addUsedSchema!==!1;var o=xr.normalizeId(this._getId(t));o&&a&&_c(this,o);var l=this._opts.validateSchema!==!1&&!e,d;l&&!(d=o&&o==xr.normalizeId(t.$schema))&&this.validateSchema(t,!0);var c=xr.ids.call(this,t),u=new kc({id:o,schema:t,localRefs:c,cacheKey:n,meta:i});return o[0]!="#"&&a&&(this._refs[o]=u),this._cache.put(n,u),l&&d&&this.validateSchema(t,!0),u}function iy(t,e){if(t.compiling)return t.validate=r,r.schema=t.schema,r.errors=null,r.root=e||r,t.schema.$async===!0&&(r.$async=!0),r;t.compiling=!0;var i;t.meta&&(i=this._opts,this._opts=this._metaOpts);var a;try{a=Mc.call(this,t.schema,e,t.localRefs)}catch(n){throw delete t.validate,n}finally{t.compiling=!1,t.meta&&(this._opts=i)}return t.validate=a,t.refs=a.refs,t.refVal=a.refVal,t.root=a.root,a;function r(){var n=t.validate,s=n.apply(this,arguments);return r.errors=n.errors,s}}function ay(t){switch(t.schemaId){case"auto":return oy;case"id":return ny;default:return sy}}function ny(t){return t.$id&&this.logger.warn("schema $id ignored",t.$id),t.id}function sy(t){return t.id&&this.logger.warn("schema id ignored",t.id),t.$id}function oy(t){if(t.$id&&t.id&&t.$id!=t.id)throw new Error("schema $id is different from id");return t.$id||t.id}function ly(t,e){if(t=t||this.errors,!t)return"No errors";e=e||{};for(var i=e.separator===void 0?", ":e.separator,a=e.dataVar===void 0?"data":e.dataVar,r="",n=0;n<t.length;n++){var s=t[n];s&&(r+=a+s.dataPath+" "+s.message+i)}return r.slice(0,-i.length)}function dy(t,e){return typeof e=="string"&&(e=new RegExp(e)),this._formats[t]=e,this}function cy(t){var e;if(t._opts.$data&&(e=Nc(),t.addMetaSchema(e,e.$id,!0)),t._opts.meta!==!1){var i=is();t._opts.$data&&(i=Bc(i,Hm)),t.addMetaSchema(i,xa,!0),t._refs["http://json-schema.org/schema"]=xa}}function uy(t){var e=t._opts.schemas;if(e)if(Array.isArray(e))t.addSchema(e);else for(var i in e)t.addSchema(e[i],i)}function py(t){for(var e in t._opts.formats){var i=t._opts.formats[e];t.addFormat(e,i)}}function fy(t){for(var e in t._opts.keywords){var i=t._opts.keywords[e];t.addKeyword(e,i)}}function _c(t,e){if(t._schemas[e]||t._refs[e])throw new Error('schema with key or id "'+e+'" already exists')}function hy(t){for(var e=qc.copy(t._opts),i=0;i<Rc.length;i++)delete e[Rc[i]];return e}function my(t){var e=t._opts.logger;if(e===!1)t.logger={log:ns,warn:ns,error:ns};else{if(e===void 0&&(e=console),!(typeof e=="object"&&e.log&&e.warn&&e.error))throw new Error("logger must implement log, warn and error methods");t.logger=e}}function ns(){}});var Wt=class extends Error{},sn=class extends Wt{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},on=class extends Wt{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},ln=class extends Wt{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},Kt=class extends Wt{},Vi=class extends Wt{constructor(e){super(`Invalid unit ${e}`)}},Ne=class extends Wt{},Dt=class extends Wt{constructor(){super("Zone is an abstract class")}},B="numeric",It="short",it="long",zi={year:B,month:B,day:B},wo={year:B,month:It,day:B},Ku={year:B,month:It,day:B,weekday:It},Io={year:B,month:it,day:B},Co={year:B,month:it,day:B,weekday:it},xo={hour:B,minute:B},To={hour:B,minute:B,second:B},Fo={hour:B,minute:B,second:B,timeZoneName:It},Oo={hour:B,minute:B,second:B,timeZoneName:it},Po={hour:B,minute:B,hourCycle:"h23"},Ao={hour:B,minute:B,second:B,hourCycle:"h23"},Eo={hour:B,minute:B,second:B,hourCycle:"h23",timeZoneName:It},Do={hour:B,minute:B,second:B,hourCycle:"h23",timeZoneName:it},Lo={year:B,month:B,day:B,hour:B,minute:B},$o={year:B,month:B,day:B,hour:B,minute:B,second:B},No={year:B,month:It,day:B,hour:B,minute:B},Ro={year:B,month:It,day:B,hour:B,minute:B,second:B},Xu={year:B,month:It,day:B,weekday:It,hour:B,minute:B},Mo={year:B,month:it,day:B,hour:B,minute:B,timeZoneName:It},ko={year:B,month:it,day:B,hour:B,minute:B,second:B,timeZoneName:It},Bo={year:B,month:it,day:B,weekday:it,hour:B,minute:B,timeZoneName:it},qo={year:B,month:it,day:B,weekday:it,hour:B,minute:B,second:B,timeZoneName:it},wr=class{get type(){throw new Dt}get name(){throw new Dt}get ianaName(){return this.name}get isUniversal(){throw new Dt}offsetName(e,i){throw new Dt}formatOffset(e,i){throw new Dt}offset(e){throw new Dt}equals(e){throw new Dt}get isValid(){throw new Dt}},Ja=null,Ui=class t extends wr{static get instance(){return Ja===null&&(Ja=new t),Ja}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:i,locale:a}){return Jo(e,i,a)}formatOffset(e,i){return gi(this.offset(e),i)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}},dn=new Map;function ep(t){let e=dn.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"}),dn.set(t,e)),e}var tp={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function rp(t,e){let i=t.format(e).replace(/\u200E/g,""),a=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(i),[,r,n,s,o,l,d,c]=a;return[s,r,n,o,l,d,c]}function ip(t,e){let i=t.formatToParts(e),a=[];for(let r=0;r<i.length;r++){let{type:n,value:s}=i[r],o=tp[n];n==="era"?a[o]=s:V(o)||(a[o]=parseInt(s,10))}return a}var Ya=new Map,er=class t extends wr{static create(e){let i=Ya.get(e);return i===void 0&&Ya.set(e,i=new t(e)),i}static resetCache(){Ya.clear(),dn.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:i,locale:a}){return Jo(e,i,a,this.name)}formatOffset(e,i){return gi(this.offset(e),i)}offset(e){if(!this.valid)return NaN;let i=new Date(e);if(isNaN(i))return NaN;let a=ep(this.name),[r,n,s,o,l,d,c]=a.formatToParts?ip(a,i):rp(a,i);o==="BC"&&(r=-Math.abs(r)+1);let f=Yi({year:r,month:n,day:s,hour:l===24?0:l,minute:d,second:c,millisecond:0}),p=+i,h=p%1e3;return p-=h>=0?h:1e3+h,(f-p)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}},zs={};function ap(t,e={}){let i=JSON.stringify([t,e]),a=zs[i];return a||(a=new Intl.ListFormat(t,e),zs[i]=a),a}var cn=new Map;function un(t,e={}){let i=JSON.stringify([t,e]),a=cn.get(i);return a===void 0&&(a=new Intl.DateTimeFormat(t,e),cn.set(i,a)),a}var pn=new Map;function np(t,e={}){let i=JSON.stringify([t,e]),a=pn.get(i);return a===void 0&&(a=new Intl.NumberFormat(t,e),pn.set(i,a)),a}var fn=new Map;function sp(t,e={}){let{base:i,...a}=e,r=JSON.stringify([t,a]),n=fn.get(r);return n===void 0&&(n=new Intl.RelativeTimeFormat(t,e),fn.set(r,n)),n}var hi=null;function op(){return hi||(hi=new Intl.DateTimeFormat().resolvedOptions().locale,hi)}var hn=new Map;function Wo(t){let e=hn.get(t);return e===void 0&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),hn.set(t,e)),e}var mn=new Map;function lp(t){let e=mn.get(t);if(!e){let i=new Intl.Locale(t);e="getWeekInfo"in i?i.getWeekInfo():i.weekInfo,"minimalDays"in e||(e={...jo,...e}),mn.set(t,e)}return e}function dp(t){let e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));let i=t.indexOf("-u-");if(i===-1)return[t];{let a,r;try{a=un(t).resolvedOptions(),r=t}catch{let l=t.substring(0,i);a=un(l).resolvedOptions(),r=l}let{numberingSystem:n,calendar:s}=a;return[r,n,s]}}function cp(t,e,i){return(i||e)&&(t.includes("-u-")||(t+="-u"),i&&(t+=`-ca-${i}`),e&&(t+=`-nu-${e}`)),t}function up(t){let e=[];for(let i=1;i<=12;i++){let a=ye.utc(2009,i,1);e.push(t(a))}return e}function pp(t){let e=[];for(let i=1;i<=7;i++){let a=ye.utc(2016,11,13+i);e.push(t(a))}return e}function Mi(t,e,i,a){let r=t.listingMode();return r==="error"?null:r==="en"?i(e):a(e)}function fp(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||Wo(t.locale).numberingSystem==="latn"}var yn=class{constructor(e,i,a){this.padTo=a.padTo||0,this.floor=a.floor||!1;let{padTo:r,floor:n,...s}=a;if(!i||Object.keys(s).length>0){let o={useGrouping:!1,...a};a.padTo>0&&(o.minimumIntegerDigits=a.padTo),this.inf=np(e,o)}}format(e){if(this.inf){let i=this.floor?Math.floor(e):e;return this.inf.format(i)}else{let i=this.floor?Math.floor(e):Pn(e,3);return Le(i,this.padTo)}}},gn=class{constructor(e,i,a){this.opts=a,this.originalZone=void 0;let r;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let s=-1*(e.offset/60),o=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;e.offset!==0&&er.create(o).valid?(r=o,this.dt=e):(r="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,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let n={...this.opts};n.timeZone=n.timeZone||r,this.dtf=un(i,n)}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(i=>{if(i.type==="timeZoneName"){let a=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...i,value:a}}else return i}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},bn=class{constructor(e,i,a){this.opts={style:"long",...a},!i&&Qo()&&(this.rtf=sp(e,a))}format(e,i){return this.rtf?this.rtf.format(e,i):Np(i,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,i){return this.rtf?this.rtf.formatToParts(e,i):[]}},jo={firstDay:1,minimalDays:4,weekend:[6,7]},fe=class t{static fromOpts(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,i,a,r,n=!1){let s=e||ve.defaultLocale,o=s||(n?"en-US":op()),l=i||ve.defaultNumberingSystem,d=a||ve.defaultOutputCalendar,c=wn(r)||ve.defaultWeekSettings;return new t(o,l,d,c,s)}static resetCache(){hi=null,cn.clear(),pn.clear(),fn.clear(),hn.clear(),mn.clear()}static fromObject({locale:e,numberingSystem:i,outputCalendar:a,weekSettings:r}={}){return t.create(e,i,a,r)}constructor(e,i,a,r,n){let[s,o,l]=dp(e);this.locale=s,this.numberingSystem=i||o||null,this.outputCalendar=a||l||null,this.weekSettings=r,this.intl=cp(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=fp(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),i=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&i?"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,wn(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,i=!1){return Mi(this,e,Xo,()=>{let a=this.intl==="ja"||this.intl.startsWith("ja-");i&=!a;let r=i?{month:e,day:"numeric"}:{month:e},n=i?"format":"standalone";if(!this.monthsCache[n][e]){let s=a?o=>this.dtFormatter(o,r).format():o=>this.extract(o,r,"month");this.monthsCache[n][e]=up(s)}return this.monthsCache[n][e]})}weekdays(e,i=!1){return Mi(this,e,rl,()=>{let a=i?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=i?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=pp(n=>this.extract(n,a,"weekday"))),this.weekdaysCache[r][e]})}meridiems(){return Mi(this,void 0,()=>il,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ye.utc(2016,11,13,9),ye.utc(2016,11,13,19)].map(i=>this.extract(i,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Mi(this,e,al,()=>{let i={era:e};return this.eraCache[e]||(this.eraCache[e]=[ye.utc(-40,1,1),ye.utc(2017,1,1)].map(a=>this.extract(a,i,"era"))),this.eraCache[e]})}extract(e,i,a){let r=this.dtFormatter(e,i),n=r.formatToParts(),s=n.find(o=>o.type.toLowerCase()===a);return s?s.value:null}numberFormatter(e={}){return new yn(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,i={}){return new gn(e,this.intl,i)}relFormatter(e={}){return new bn(this.intl,this.isEnglish(),e)}listFormatter(e={}){return ap(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||Wo(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Zo()?lp(this.locale):jo}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})`}},Ka=null,ut=class t extends wr{static get utcInstance(){return Ka===null&&(Ka=new t(0)),Ka}static instance(e){return e===0?t.utcInstance:new t(e)}static parseSpecifier(e){if(e){let i=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(i)return new t(Ki(i[1],i[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${gi(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${gi(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,i){return gi(this.fixed,i)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}},vn=class extends wr{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 Yt(t,e){if(V(t)||t===null)return e;if(t instanceof wr)return t;if(vp(t)){let i=t.toLowerCase();return i==="default"?e:i==="local"||i==="system"?Ui.instance:i==="utc"||i==="gmt"?ut.utcInstance:ut.parseSpecifier(i)||er.create(t)}else return Xt(t)?ut.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new vn(t)}var xn={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"},Us={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]},hp=xn.hanidec.replace(/[\[|\]]/g,"").split("");function mp(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let i=0;i<t.length;i++){let a=t.charCodeAt(i);if(t[i].search(xn.hanidec)!==-1)e+=hp.indexOf(t[i]);else for(let r in Us){let[n,s]=Us[r];a>=n&&a<=s&&(e+=a-n)}}return parseInt(e,10)}else return e}var Sn=new Map;function yp(){Sn.clear()}function St({numberingSystem:t},e=""){let i=t||"latn",a=Sn.get(i);a===void 0&&(a=new Map,Sn.set(i,a));let r=a.get(e);return r===void 0&&(r=new RegExp(`${xn[i]}${e}`),a.set(e,r)),r}var Hs=()=>Date.now(),Gs="system",Qs=null,Zs=null,Js=null,Ys=60,Ks,Xs=null,ve=class{static get now(){return Hs}static set now(e){Hs=e}static set defaultZone(e){Gs=e}static get defaultZone(){return Yt(Gs,Ui.instance)}static get defaultLocale(){return Qs}static set defaultLocale(e){Qs=e}static get defaultNumberingSystem(){return Zs}static set defaultNumberingSystem(e){Zs=e}static get defaultOutputCalendar(){return Js}static set defaultOutputCalendar(e){Js=e}static get defaultWeekSettings(){return Xs}static set defaultWeekSettings(e){Xs=wn(e)}static get twoDigitCutoffYear(){return Ys}static set twoDigitCutoffYear(e){Ys=e%100}static get throwOnInvalid(){return Ks}static set throwOnInvalid(e){Ks=e}static resetCaches(){fe.resetCache(),er.resetCache(),ye.resetCache(),yp()}},rt=class{constructor(e,i){this.reason=e,this.explanation=i}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},_o=[0,31,59,90,120,151,181,212,243,273,304,334],Vo=[0,31,60,91,121,152,182,213,244,274,305,335];function dt(t,e){return new rt("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Tn(t,e,i){let a=new Date(Date.UTC(t,e-1,i));t<100&&t>=0&&a.setUTCFullYear(a.getUTCFullYear()-1900);let r=a.getUTCDay();return r===0?7:r}function zo(t,e,i){return i+(vi(t)?Vo:_o)[e-1]}function Uo(t,e){let i=vi(t)?Vo:_o,a=i.findIndex(n=>n<e),r=e-i[a];return{month:a+1,day:r}}function Fn(t,e){return(t-e+7)%7+1}function Hi(t,e=4,i=1){let{year:a,month:r,day:n}=t,s=zo(a,r,n),o=Fn(Tn(a,r,n),i),l=Math.floor((s-o+14-e)/7),d;return l<1?(d=a-1,l=bi(d,e,i)):l>bi(a,e,i)?(d=a+1,l=1):d=a,{weekYear:d,weekNumber:l,weekday:o,...Xi(t)}}function eo(t,e=4,i=1){let{weekYear:a,weekNumber:r,weekday:n}=t,s=Fn(Tn(a,1,e),i),o=Ur(a),l=r*7+n-s-7+e,d;l<1?(d=a-1,l+=Ur(d)):l>o?(d=a+1,l-=Ur(a)):d=a;let{month:c,day:u}=Uo(d,l);return{year:d,month:c,day:u,...Xi(t)}}function Xa(t){let{year:e,month:i,day:a}=t,r=zo(e,i,a);return{year:e,ordinal:r,...Xi(t)}}function to(t){let{year:e,ordinal:i}=t,{month:a,day:r}=Uo(e,i);return{year:e,month:a,day:r,...Xi(t)}}function ro(t,e){if(!V(t.localWeekday)||!V(t.localWeekNumber)||!V(t.localWeekYear)){if(!V(t.weekday)||!V(t.weekNumber)||!V(t.weekYear))throw new Kt("Cannot mix locale-based week fields with ISO-based week fields");return V(t.localWeekday)||(t.weekday=t.localWeekday),V(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),V(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 gp(t,e=4,i=1){let a=Ji(t.weekYear),r=ct(t.weekNumber,1,bi(t.weekYear,e,i)),n=ct(t.weekday,1,7);return a?r?n?!1:dt("weekday",t.weekday):dt("week",t.weekNumber):dt("weekYear",t.weekYear)}function bp(t){let e=Ji(t.year),i=ct(t.ordinal,1,Ur(t.year));return e?i?!1:dt("ordinal",t.ordinal):dt("year",t.year)}function Ho(t){let e=Ji(t.year),i=ct(t.month,1,12),a=ct(t.day,1,Gi(t.year,t.month));return e?i?a?!1:dt("day",t.day):dt("month",t.month):dt("year",t.year)}function Go(t){let{hour:e,minute:i,second:a,millisecond:r}=t,n=ct(e,0,23)||e===24&&i===0&&a===0&&r===0,s=ct(i,0,59),o=ct(a,0,59),l=ct(r,0,999);return n?s?o?l?!1:dt("millisecond",r):dt("second",a):dt("minute",i):dt("hour",e)}function V(t){return typeof t>"u"}function Xt(t){return typeof t=="number"}function Ji(t){return typeof t=="number"&&t%1===0}function vp(t){return typeof t=="string"}function Sp(t){return Object.prototype.toString.call(t)==="[object Date]"}function Qo(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Zo(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function wp(t){return Array.isArray(t)?t:[t]}function io(t,e,i){if(t.length!==0)return t.reduce((a,r)=>{let n=[e(r),r];return a&&i(a[0],n[0])===a[0]?a:n},null)[1]}function Ip(t,e){return e.reduce((i,a)=>(i[a]=t[a],i),{})}function Qr(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function wn(t){if(t==null)return null;if(typeof t!="object")throw new Ne("Week settings must be an object");if(!ct(t.firstDay,1,7)||!ct(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!ct(e,1,7)))throw new Ne("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function ct(t,e,i){return Ji(t)&&t>=e&&t<=i}function Cp(t,e){return t-e*Math.floor(t/e)}function Le(t,e=2){let i=t<0,a;return i?a="-"+(""+-t).padStart(e,"0"):a=(""+t).padStart(e,"0"),a}function Jt(t){if(!(V(t)||t===null||t===""))return parseInt(t,10)}function br(t){if(!(V(t)||t===null||t===""))return parseFloat(t)}function On(t){if(!(V(t)||t===null||t==="")){let e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function Pn(t,e,i="round"){let a=10**e;switch(i){case"expand":return t>0?Math.ceil(t*a)/a:Math.floor(t*a)/a;case"trunc":return Math.trunc(t*a)/a;case"round":return Math.round(t*a)/a;case"floor":return Math.floor(t*a)/a;case"ceil":return Math.ceil(t*a)/a;default:throw new RangeError(`Value rounding ${i} is out of range`)}}function vi(t){return t%4===0&&(t%100!==0||t%400===0)}function Ur(t){return vi(t)?366:365}function Gi(t,e){let i=Cp(e-1,12)+1,a=t+(e-i)/12;return i===2?vi(a)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function Yi(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 ao(t,e,i){return-Fn(Tn(t,1,e),i)+e-1}function bi(t,e=4,i=1){let a=ao(t,e,i),r=ao(t+1,e,i);return(Ur(t)-a+r)/7}function In(t){return t>99?t:t>ve.twoDigitCutoffYear?1900+t:2e3+t}function Jo(t,e,i,a=null){let r=new Date(t),n={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};a&&(n.timeZone=a);let s={timeZoneName:e,...n},o=new Intl.DateTimeFormat(i,s).formatToParts(r).find(l=>l.type.toLowerCase()==="timezonename");return o?o.value:null}function Ki(t,e){let i=parseInt(t,10);Number.isNaN(i)&&(i=0);let a=parseInt(e,10)||0,r=i<0||Object.is(i,-0)?-a:a;return i*60+r}function Yo(t){let e=Number(t);if(typeof t=="boolean"||t===""||!Number.isFinite(e))throw new Ne(`Invalid unit value ${t}`);return e}function Qi(t,e){let i={};for(let a in t)if(Qr(t,a)){let r=t[a];if(r==null)continue;i[e(a)]=Yo(r)}return i}function gi(t,e){let i=Math.trunc(Math.abs(t/60)),a=Math.trunc(Math.abs(t%60)),r=t>=0?"+":"-";switch(e){case"short":return`${r}${Le(i,2)}:${Le(a,2)}`;case"narrow":return`${r}${i}${a>0?`:${a}`:""}`;case"techie":return`${r}${Le(i,2)}${Le(a,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Xi(t){return Ip(t,["hour","minute","second","millisecond"])}var xp=["January","February","March","April","May","June","July","August","September","October","November","December"],Ko=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Tp=["J","F","M","A","M","J","J","A","S","O","N","D"];function Xo(t){switch(t){case"narrow":return[...Tp];case"short":return[...Ko];case"long":return[...xp];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 el=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],tl=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Fp=["M","T","W","T","F","S","S"];function rl(t){switch(t){case"narrow":return[...Fp];case"short":return[...tl];case"long":return[...el];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var il=["AM","PM"],Op=["Before Christ","Anno Domini"],Pp=["BC","AD"],Ap=["B","A"];function al(t){switch(t){case"narrow":return[...Ap];case"short":return[...Pp];case"long":return[...Op];default:return null}}function Ep(t){return il[t.hour<12?0:1]}function Dp(t,e){return rl(e)[t.weekday-1]}function Lp(t,e){return Xo(e)[t.month-1]}function $p(t,e){return al(e)[t.year<0?0:1]}function Np(t,e,i="always",a=!1){let r={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."]},n=["hours","minutes","seconds"].indexOf(t)===-1;if(i==="auto"&&n){let u=t==="days";switch(e){case 1:return u?"tomorrow":`next ${r[t][0]}`;case-1:return u?"yesterday":`last ${r[t][0]}`;case 0:return u?"today":`this ${r[t][0]}`}}let s=Object.is(e,-0)||e<0,o=Math.abs(e),l=o===1,d=r[t],c=a?l?d[1]:d[2]||d[1]:l?r[t][0]:t;return s?`${o} ${c} ago`:`in ${o} ${c}`}function no(t,e){let i="";for(let a of t)a.literal?i+=a.val:i+=e(a.val);return i}var Rp={D:zi,DD:wo,DDD:Io,DDDD:Co,t:xo,tt:To,ttt:Fo,tttt:Oo,T:Po,TT:Ao,TTT:Eo,TTTT:Do,f:Lo,ff:No,fff:Mo,ffff:Bo,F:$o,FF:Ro,FFF:ko,FFFF:qo},tt=class t{static create(e,i={}){return new t(e,i)}static parseFormat(e){let i=null,a="",r=!1,n=[];for(let s=0;s<e.length;s++){let o=e.charAt(s);o==="'"?((a.length>0||r)&&n.push({literal:r||/^\s+$/.test(a),val:a===""?"'":a}),i=null,a="",r=!r):r||o===i?a+=o:(a.length>0&&n.push({literal:/^\s+$/.test(a),val:a}),a=o,i=o)}return a.length>0&&n.push({literal:r||/^\s+$/.test(a),val:a}),n}static macroTokenToFormatOpts(e){return Rp[e]}constructor(e,i){this.opts=i,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,i){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...i}).format()}dtFormatter(e,i={}){return this.loc.dtFormatter(e,{...this.opts,...i})}formatDateTime(e,i){return this.dtFormatter(e,i).format()}formatDateTimeParts(e,i){return this.dtFormatter(e,i).formatToParts()}formatInterval(e,i){return this.dtFormatter(e.start,i).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,i){return this.dtFormatter(e,i).resolvedOptions()}num(e,i=0,a=void 0){if(this.opts.forceSimple)return Le(e,i);let r={...this.opts};return i>0&&(r.padTo=i),a&&(r.signDisplay=a),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,i){let a=this.loc.listingMode()==="en",r=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",n=(p,h)=>this.loc.extract(e,p,h),s=p=>e.isOffsetFixed&&e.offset===0&&p.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,p.format):"",o=()=>a?Ep(e):n({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(p,h)=>a?Lp(e,p):n(h?{month:p}:{month:p,day:"numeric"},"month"),d=(p,h)=>a?Dp(e,p):n(h?{weekday:p}:{weekday:p,month:"long",day:"numeric"},"weekday"),c=p=>{let h=t.macroTokenToFormatOpts(p);return h?this.formatWithSystemDefault(e,h):p},u=p=>a?$p(e,p):n({era:p},"era"),f=p=>{switch(p){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 s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({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 o();case"d":return r?n({day:"numeric"},"day"):this.num(e.day);case"dd":return r?n({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return r?n({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?n({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return r?n({month:"numeric"},"month"):this.num(e.month);case"MM":return r?n({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return r?n({year:"numeric"},"year"):this.num(e.year);case"yy":return r?n({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?n({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?n({year:"numeric"},"year"):this.num(e.year,6);case"G":return u("short");case"GG":return u("long");case"GGGGG":return u("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 c(p)}};return no(t.parseFormat(i),f)}formatDurationFromString(e,i){let a=this.opts.signMode==="negativeLargestOnly"?-1:1,r=c=>{switch(c[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}},n=(c,u)=>f=>{let p=r(f);if(p){let h=u.isNegativeDuration&&p!==u.largestUnit?a:1,b;return this.opts.signMode==="negativeLargestOnly"&&p!==u.largestUnit?b="never":this.opts.signMode==="all"?b="always":b="auto",this.num(c.get(p)*h,f.length,b)}else return f},s=t.parseFormat(i),o=s.reduce((c,{literal:u,val:f})=>u?c:c.concat(f),[]),l=e.shiftTo(...o.map(r).filter(c=>c)),d={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return no(s,n(l,d))}},nl=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Zr(...t){let e=t.reduce((i,a)=>i+a.source,"");return RegExp(`^${e}$`)}function Jr(...t){return e=>t.reduce(([i,a,r],n)=>{let[s,o,l]=n(e,r);return[{...i,...s},o||a,l]},[{},null,1]).slice(0,2)}function Yr(t,...e){if(t==null)return[null,null];for(let[i,a]of e){let r=i.exec(t);if(r)return a(r)}return[null,null]}function sl(...t){return(e,i)=>{let a={},r;for(r=0;r<t.length;r++)a[t[r]]=Jt(e[i+r]);return[a,null,i+r]}}var ol=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,Mp=`(?:${ol.source}?(?:\\[(${nl.source})\\])?)?`,An=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,ll=RegExp(`${An.source}${Mp}`),En=RegExp(`(?:[Tt]${ll.source})?`),kp=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Bp=/(\d{4})-?W(\d\d)(?:-?(\d))?/,qp=/(\d{4})-?(\d{3})/,Wp=sl("weekYear","weekNumber","weekDay"),jp=sl("year","ordinal"),_p=/(\d{4})-(\d\d)-(\d\d)/,dl=RegExp(`${An.source} ?(?:${ol.source}|(${nl.source}))?`),Vp=RegExp(`(?: ${dl.source})?`);function Hr(t,e,i){let a=t[e];return V(a)?i:Jt(a)}function zp(t,e){return[{year:Hr(t,e),month:Hr(t,e+1,1),day:Hr(t,e+2,1)},null,e+3]}function Kr(t,e){return[{hours:Hr(t,e,0),minutes:Hr(t,e+1,0),seconds:Hr(t,e+2,0),milliseconds:On(t[e+3])},null,e+4]}function Si(t,e){let i=!t[e]&&!t[e+1],a=Ki(t[e+1],t[e+2]),r=i?null:ut.instance(a);return[{},r,e+3]}function wi(t,e){let i=t[e]?er.create(t[e]):null;return[{},i,e+1]}var Up=RegExp(`^T?${An.source}$`),Hp=/^-?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 Gp(t){let[e,i,a,r,n,s,o,l,d]=t,c=e[0]==="-",u=l&&l[0]==="-",f=(p,h=!1)=>p!==void 0&&(h||p&&c)?-p:p;return[{years:f(br(i)),months:f(br(a)),weeks:f(br(r)),days:f(br(n)),hours:f(br(s)),minutes:f(br(o)),seconds:f(br(l),l==="-0"),milliseconds:f(On(d),u)}]}var Qp={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Dn(t,e,i,a,r,n,s){let o={year:e.length===2?In(Jt(e)):Jt(e),month:Ko.indexOf(i)+1,day:Jt(a),hour:Jt(r),minute:Jt(n)};return s&&(o.second=Jt(s)),t&&(o.weekday=t.length>3?el.indexOf(t)+1:tl.indexOf(t)+1),o}var Zp=/^(?:(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 Jp(t){let[,e,i,a,r,n,s,o,l,d,c,u]=t,f=Dn(e,r,a,i,n,s,o),p;return l?p=Qp[l]:d?p=0:p=Ki(c,u),[f,new ut(p)]}function Yp(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var Kp=/^(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$/,Xp=/^(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$/,ef=/^(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 so(t){let[,e,i,a,r,n,s,o]=t;return[Dn(e,r,a,i,n,s,o),ut.utcInstance]}function tf(t){let[,e,i,a,r,n,s,o]=t;return[Dn(e,o,i,a,r,n,s),ut.utcInstance]}var rf=Zr(kp,En),af=Zr(Bp,En),nf=Zr(qp,En),sf=Zr(ll),cl=Jr(zp,Kr,Si,wi),of=Jr(Wp,Kr,Si,wi),lf=Jr(jp,Kr,Si,wi),df=Jr(Kr,Si,wi);function cf(t){return Yr(t,[rf,cl],[af,of],[nf,lf],[sf,df])}function uf(t){return Yr(Yp(t),[Zp,Jp])}function pf(t){return Yr(t,[Kp,so],[Xp,so],[ef,tf])}function ff(t){return Yr(t,[Hp,Gp])}var hf=Jr(Kr);function mf(t){return Yr(t,[Up,hf])}var yf=Zr(_p,Vp),gf=Zr(dl),bf=Jr(Kr,Si,wi);function vf(t){return Yr(t,[yf,cl],[gf,bf])}var oo="Invalid Duration",ul={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Sf={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:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...ul},lt=146097/400,jr=146097/4800,wf={years:{quarters:4,months:12,weeks:lt/7,days:lt,hours:lt*24,minutes:lt*24*60,seconds:lt*24*60*60,milliseconds:lt*24*60*60*1e3},quarters:{months:3,weeks:lt/28,days:lt/4,hours:lt*24/4,minutes:lt*24*60/4,seconds:lt*24*60*60/4,milliseconds:lt*24*60*60*1e3/4},months:{weeks:jr/7,days:jr,hours:jr*24,minutes:jr*24*60,seconds:jr*24*60*60,milliseconds:jr*24*60*60*1e3},...ul},Sr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],If=Sr.slice(0).reverse();function qt(t,e,i=!1){let a={values:i?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Re(a)}function pl(t,e){let i=e.milliseconds??0;for(let a of If.slice(1))e[a]&&(i+=e[a]*t[a].milliseconds);return i}function lo(t,e){let i=pl(t,e)<0?-1:1;Sr.reduceRight((a,r)=>{if(V(e[r]))return a;if(a){let n=e[a]*i,s=t[r][a],o=Math.floor(n/s);e[r]+=o*i,e[a]-=o*s*i}return r},null),Sr.reduce((a,r)=>{if(V(e[r]))return a;if(a){let n=e[a]%1;e[a]-=n,e[r]+=n*t[a][r]}return r},null)}function co(t){let e={};for(let[i,a]of Object.entries(t))a!==0&&(e[i]=a);return e}var Re=class t{constructor(e){let i=e.conversionAccuracy==="longterm"||!1,a=i?wf:Sf;e.matrix&&(a=e.matrix),this.values=e.values,this.loc=e.loc||fe.create(),this.conversionAccuracy=i?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=a,this.isLuxonDuration=!0}static fromMillis(e,i){return t.fromObject({milliseconds:e},i)}static fromObject(e,i={}){if(e==null||typeof e!="object")throw new Ne(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new t({values:Qi(e,t.normalizeUnit),loc:fe.fromObject(i),conversionAccuracy:i.conversionAccuracy,matrix:i.matrix})}static fromDurationLike(e){if(Xt(e))return t.fromMillis(e);if(t.isDuration(e))return e;if(typeof e=="object")return t.fromObject(e);throw new Ne(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,i){let[a]=ff(e);return a?t.fromObject(a,i):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,i){let[a]=mf(e);return a?t.fromObject(a,i):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,i=null){if(!e)throw new Ne("need to specify a reason the Duration is invalid");let a=e instanceof rt?e:new rt(e,i);if(ve.throwOnInvalid)throw new ln(a);return new t({invalid:a})}static normalizeUnit(e){let i={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(!i)throw new Vi(e);return i}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,i={}){let a={...i,floor:i.round!==!1&&i.floor!==!1};return this.isValid?tt.create(this.loc,a).formatDurationFromString(this,e):oo}toHuman(e={}){if(!this.isValid)return oo;let i=e.showZeros!==!1,a=Sr.map(r=>{let n=this.values[r];return V(n)||n===0&&!i?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(n)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(a)}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+=Pn(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let i=this.toMillis();return i<0||i>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},ye.fromMillis(i,{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?pl(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let i=t.fromDurationLike(e),a={};for(let r of Sr)(Qr(i.values,r)||Qr(this.values,r))&&(a[r]=i.get(r)+this.get(r));return qt(this,{values:a},!0)}minus(e){if(!this.isValid)return this;let i=t.fromDurationLike(e);return this.plus(i.negate())}mapUnits(e){if(!this.isValid)return this;let i={};for(let a of Object.keys(this.values))i[a]=Yo(e(this.values[a],a));return qt(this,{values:i},!0)}get(e){return this[t.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let i={...this.values,...Qi(e,t.normalizeUnit)};return qt(this,{values:i})}reconfigure({locale:e,numberingSystem:i,conversionAccuracy:a,matrix:r}={}){let s={loc:this.loc.clone({locale:e,numberingSystem:i}),matrix:r,conversionAccuracy:a};return qt(this,s)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return lo(this.matrix,e),qt(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=co(this.normalize().shiftToAll().toObject());return qt(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(s=>t.normalizeUnit(s));let i={},a={},r=this.toObject(),n;for(let s of Sr)if(e.indexOf(s)>=0){n=s;let o=0;for(let d in a)o+=this.matrix[d][s]*a[d],a[d]=0;Xt(r[s])&&(o+=r[s]);let l=Math.trunc(o);i[s]=l,a[s]=(o*1e3-l*1e3)/1e3}else Xt(r[s])&&(a[s]=r[s]);for(let s in a)a[s]!==0&&(i[n]+=s===n?a[s]:a[s]/this.matrix[n][s]);return lo(this.matrix,i),qt(this,{values:i},!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 i of Object.keys(this.values))e[i]=this.values[i]===0?0:-this.values[i];return qt(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;let e=co(this.values);return qt(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 i(a,r){return a===void 0||a===0?r===void 0||r===0:a===r}for(let a of Sr)if(!i(this.values[a],e.values[a]))return!1;return!0}},_r="Invalid Interval";function Cf(t,e){return!t||!t.isValid?Gr.invalid("missing or invalid start"):!e||!e.isValid?Gr.invalid("missing or invalid end"):e<t?Gr.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 Gr=class t{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,i=null){if(!e)throw new Ne("need to specify a reason the Interval is invalid");let a=e instanceof rt?e:new rt(e,i);if(ve.throwOnInvalid)throw new on(a);return new t({invalid:a})}static fromDateTimes(e,i){let a=fi(e),r=fi(i),n=Cf(a,r);return n??new t({start:a,end:r})}static after(e,i){let a=Re.fromDurationLike(i),r=fi(e);return t.fromDateTimes(r,r.plus(a))}static before(e,i){let a=Re.fromDurationLike(i),r=fi(e);return t.fromDateTimes(r.minus(a),r)}static fromISO(e,i){let[a,r]=(e||"").split("/",2);if(a&&r){let n,s;try{n=ye.fromISO(a,i),s=n.isValid}catch{s=!1}let o,l;try{o=ye.fromISO(r,i),l=o.isValid}catch{l=!1}if(s&&l)return t.fromDateTimes(n,o);if(s){let d=Re.fromISO(r,i);if(d.isValid)return t.after(n,d)}else if(l){let d=Re.fromISO(a,i);if(d.isValid)return t.before(o,d)}}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",i){if(!this.isValid)return NaN;let a=this.start.startOf(e,i),r;return i?.useLocaleWeeks?r=this.end.reconfigure({locale:a.locale}):r=this.end,r=r.startOf(e,i),Math.floor(r.diff(a,e).get(e))+(r.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:i}={}){return this.isValid?t.fromDateTimes(e||this.s,i||this.e):this}splitAt(...e){if(!this.isValid)return[];let i=e.map(fi).filter(s=>this.contains(s)).sort((s,o)=>s.toMillis()-o.toMillis()),a=[],{s:r}=this,n=0;for(;r<this.e;){let s=i[n]||this.e,o=+s>+this.e?this.e:s;a.push(t.fromDateTimes(r,o)),r=o,n+=1}return a}splitBy(e){let i=Re.fromDurationLike(e);if(!this.isValid||!i.isValid||i.as("milliseconds")===0)return[];let{s:a}=this,r=1,n,s=[];for(;a<this.e;){let o=this.start.plus(i.mapUnits(l=>l*r));n=+o>+this.e?this.e:o,s.push(t.fromDateTimes(a,n)),a=n,r+=1}return s}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 i=this.s>e.s?this.s:e.s,a=this.e<e.e?this.e:e.e;return i>=a?null:t.fromDateTimes(i,a)}union(e){if(!this.isValid)return this;let i=this.s<e.s?this.s:e.s,a=this.e>e.e?this.e:e.e;return t.fromDateTimes(i,a)}static merge(e){let[i,a]=e.sort((r,n)=>r.s-n.s).reduce(([r,n],s)=>n?n.overlaps(s)||n.abutsStart(s)?[r,n.union(s)]:[r.concat([n]),s]:[r,s],[[],null]);return a&&i.push(a),i}static xor(e){let i=null,a=0,r=[],n=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...n),o=s.sort((l,d)=>l.time-d.time);for(let l of o)a+=l.type==="s"?1:-1,a===1?i=l.time:(i&&+i!=+l.time&&r.push(t.fromDateTimes(i,l.time)),i=null);return t.merge(r)}difference(...e){return t.xor([this].concat(e)).map(i=>this.intersection(i)).filter(i=>i&&!i.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:_r}[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=zi,i={}){return this.isValid?tt.create(this.s.loc.clone(i),e).formatInterval(this):_r}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:_r}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:_r}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:_r}toFormat(e,{separator:i=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${i}${this.e.toFormat(e)}`:_r}toDuration(e,i){return this.isValid?this.e.diff(this.s,e,i):Re.invalid(this.invalidReason)}mapEndpoints(e){return t.fromDateTimes(e(this.s),e(this.e))}},zr=class{static hasDST(e=ve.defaultZone){let i=ye.now().setZone(e).set({month:12});return!e.isUniversal&&i.offset!==i.set({month:6}).offset}static isValidIANAZone(e){return er.isValidZone(e)}static normalizeZone(e){return Yt(e,ve.defaultZone)}static getStartOfWeek({locale:e=null,locObj:i=null}={}){return(i||fe.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:i=null}={}){return(i||fe.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:i=null}={}){return(i||fe.create(e)).getWeekendDays().slice()}static months(e="long",{locale:i=null,numberingSystem:a=null,locObj:r=null,outputCalendar:n="gregory"}={}){return(r||fe.create(i,a,n)).months(e)}static monthsFormat(e="long",{locale:i=null,numberingSystem:a=null,locObj:r=null,outputCalendar:n="gregory"}={}){return(r||fe.create(i,a,n)).months(e,!0)}static weekdays(e="long",{locale:i=null,numberingSystem:a=null,locObj:r=null}={}){return(r||fe.create(i,a,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:i=null,numberingSystem:a=null,locObj:r=null}={}){return(r||fe.create(i,a,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return fe.create(e).meridiems()}static eras(e="short",{locale:i=null}={}){return fe.create(i,null,"gregory").eras(e)}static features(){return{relative:Qo(),localeWeek:Zo()}}};function uo(t,e){let i=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),a=i(e)-i(t);return Math.floor(Re.fromMillis(a).as("days"))}function xf(t,e,i){let a=[["years",(l,d)=>d.year-l.year],["quarters",(l,d)=>d.quarter-l.quarter+(d.year-l.year)*4],["months",(l,d)=>d.month-l.month+(d.year-l.year)*12],["weeks",(l,d)=>{let c=uo(l,d);return(c-c%7)/7}],["days",uo]],r={},n=t,s,o;for(let[l,d]of a)i.indexOf(l)>=0&&(s=l,r[l]=d(t,e),o=n.plus(r),o>e?(r[l]--,t=n.plus(r),t>e&&(o=t,r[l]--,t=n.plus(r))):t=o);return[t,r,o,s]}function Tf(t,e,i,a){let[r,n,s,o]=xf(t,e,i),l=e-r,d=i.filter(u=>["hours","minutes","seconds","milliseconds"].indexOf(u)>=0);d.length===0&&(s<e&&(s=r.plus({[o]:1})),s!==r&&(n[o]=(n[o]||0)+l/(s-r)));let c=Re.fromObject(n,a);return d.length>0?Re.fromMillis(l,a).shiftTo(...d).plus(c):c}var Ff="missing Intl.DateTimeFormat.formatToParts support";function ae(t,e=i=>i){return{regex:t,deser:([i])=>e(mp(i))}}var Of="\xA0",fl=`[ ${Of}]`,hl=new RegExp(fl,"g");function Pf(t){return t.replace(/\./g,"\\.?").replace(hl,fl)}function po(t){return t.replace(/\./g,"").replace(hl," ").toLowerCase()}function wt(t,e){return t===null?null:{regex:RegExp(t.map(Pf).join("|")),deser:([i])=>t.findIndex(a=>po(i)===po(a))+e}}function fo(t,e){return{regex:t,deser:([,i,a])=>Ki(i,a),groups:e}}function ki(t){return{regex:t,deser:([e])=>e}}function Af(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Ef(t,e){let i=St(e),a=St(e,"{2}"),r=St(e,"{3}"),n=St(e,"{4}"),s=St(e,"{6}"),o=St(e,"{1,2}"),l=St(e,"{1,3}"),d=St(e,"{1,6}"),c=St(e,"{1,9}"),u=St(e,"{2,4}"),f=St(e,"{4,6}"),p=m=>({regex:RegExp(Af(m.val)),deser:([w])=>w,literal:!0}),b=(m=>{if(t.literal)return p(m);switch(m.val){case"G":return wt(e.eras("short"),0);case"GG":return wt(e.eras("long"),0);case"y":return ae(d);case"yy":return ae(u,In);case"yyyy":return ae(n);case"yyyyy":return ae(f);case"yyyyyy":return ae(s);case"M":return ae(o);case"MM":return ae(a);case"MMM":return wt(e.months("short",!0),1);case"MMMM":return wt(e.months("long",!0),1);case"L":return ae(o);case"LL":return ae(a);case"LLL":return wt(e.months("short",!1),1);case"LLLL":return wt(e.months("long",!1),1);case"d":return ae(o);case"dd":return ae(a);case"o":return ae(l);case"ooo":return ae(r);case"HH":return ae(a);case"H":return ae(o);case"hh":return ae(a);case"h":return ae(o);case"mm":return ae(a);case"m":return ae(o);case"q":return ae(o);case"qq":return ae(a);case"s":return ae(o);case"ss":return ae(a);case"S":return ae(l);case"SSS":return ae(r);case"u":return ki(c);case"uu":return ki(o);case"uuu":return ae(i);case"a":return wt(e.meridiems(),0);case"kkkk":return ae(n);case"kk":return ae(u,In);case"W":return ae(o);case"WW":return ae(a);case"E":case"c":return ae(i);case"EEE":return wt(e.weekdays("short",!1),1);case"EEEE":return wt(e.weekdays("long",!1),1);case"ccc":return wt(e.weekdays("short",!0),1);case"cccc":return wt(e.weekdays("long",!0),1);case"Z":case"ZZ":return fo(new RegExp(`([+-]${o.source})(?::(${a.source}))?`),2);case"ZZZ":return fo(new RegExp(`([+-]${o.source})(${a.source})?`),2);case"z":return ki(/[a-z_+-/]{1,256}?/i);case" ":return ki(/[^\S\n\r]/);default:return p(m)}})(t)||{invalidReason:Ff};return b.token=t,b}var Df={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 Lf(t,e,i){let{type:a,value:r}=t;if(a==="literal"){let l=/^\s+$/.test(r);return{literal:!l,val:l?" ":r}}let n=e[a],s=a;a==="hour"&&(e.hour12!=null?s=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?s="hour12":s="hour24":s=i.hour12?"hour12":"hour24");let o=Df[s];if(typeof o=="object"&&(o=o[n]),o)return{literal:!1,val:o}}function $f(t){return[`^${t.map(i=>i.regex).reduce((i,a)=>`${i}(${a.source})`,"")}$`,t]}function Nf(t,e,i){let a=t.match(e);if(a){let r={},n=1;for(let s in i)if(Qr(i,s)){let o=i[s],l=o.groups?o.groups+1:1;!o.literal&&o.token&&(r[o.token.val[0]]=o.deser(a.slice(n,n+l))),n+=l}return[a,r]}else return[a,{}]}function Rf(t){let e=n=>{switch(n){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}},i=null,a;return V(t.z)||(i=er.create(t.z)),V(t.Z)||(i||(i=new ut(t.Z)),a=t.Z),V(t.q)||(t.M=(t.q-1)*3+1),V(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),V(t.u)||(t.S=On(t.u)),[Object.keys(t).reduce((n,s)=>{let o=e(s);return o&&(n[o]=t[s]),n},{}),i,a]}var en=null;function Mf(){return en||(en=ye.fromMillis(1555555555555)),en}function kf(t,e){if(t.literal)return t;let i=tt.macroTokenToFormatOpts(t.val),a=gl(i,e);return a==null||a.includes(void 0)?t:a}function ml(t,e){return Array.prototype.concat(...t.map(i=>kf(i,e)))}var Zi=class{constructor(e,i){if(this.locale=e,this.format=i,this.tokens=ml(tt.parseFormat(i),e),this.units=this.tokens.map(a=>Ef(a,e)),this.disqualifyingUnit=this.units.find(a=>a.invalidReason),!this.disqualifyingUnit){let[a,r]=$f(this.units);this.regex=RegExp(a,"i"),this.handlers=r}}explainFromTokens(e){if(this.isValid){let[i,a]=Nf(e,this.regex,this.handlers),[r,n,s]=a?Rf(a):[null,null,void 0];if(Qr(a,"a")&&Qr(a,"H"))throw new Kt("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:i,matches:a,result:r,zone:n,specificOffset:s}}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 yl(t,e,i){return new Zi(t,i).explainFromTokens(e)}function Bf(t,e,i){let{result:a,zone:r,specificOffset:n,invalidReason:s}=yl(t,e,i);return[a,r,n,s]}function gl(t,e){if(!t)return null;let a=tt.create(e,t).dtFormatter(Mf()),r=a.formatToParts(),n=a.resolvedOptions();return r.map(s=>Lf(s,t,n))}var tn="Invalid DateTime",ho=864e13;function mi(t){return new rt("unsupported zone",`the zone "${t.name}" is not supported`)}function rn(t){return t.weekData===null&&(t.weekData=Hi(t.c)),t.weekData}function an(t){return t.localWeekData===null&&(t.localWeekData=Hi(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function vr(t,e){let i={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new ye({...i,...e,old:i})}function bl(t,e,i){let a=t-e*60*1e3,r=i.offset(a);if(e===r)return[a,e];a-=(r-e)*60*1e3;let n=i.offset(a);return r===n?[a,r]:[t-Math.min(r,n)*60*1e3,Math.max(r,n)]}function Bi(t,e){t+=e*60*1e3;let i=new Date(t);return{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}function Wi(t,e,i){return bl(Yi(t),e,i)}function mo(t,e){let i=t.o,a=t.c.year+Math.trunc(e.years),r=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,n={...t.c,year:a,month:r,day:Math.min(t.c.day,Gi(a,r))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},s=Re.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"),o=Yi(n),[l,d]=bl(o,i,t.zone);return s!==0&&(l+=s,d=t.zone.offset(l)),{ts:l,o:d}}function Vr(t,e,i,a,r,n){let{setZone:s,zone:o}=i;if(t&&Object.keys(t).length!==0||e){let l=e||o,d=ye.fromObject(t,{...i,zone:l,specificOffset:n});return s?d:d.setZone(o)}else return ye.invalid(new rt("unparsable",`the input "${r}" can't be parsed as ${a}`))}function qi(t,e,i=!0){return t.isValid?tt.create(fe.create("en-US"),{allowZ:i,forceSimple:!0}).formatDateTimeFromString(t,e):null}function nn(t,e,i){let a=t.c.year>9999||t.c.year<0,r="";if(a&&t.c.year>=0&&(r+="+"),r+=Le(t.c.year,a?6:4),i==="year")return r;if(e){if(r+="-",r+=Le(t.c.month),i==="month")return r;r+="-"}else if(r+=Le(t.c.month),i==="month")return r;return r+=Le(t.c.day),r}function yo(t,e,i,a,r,n,s){let o=!i||t.c.millisecond!==0||t.c.second!==0,l="";switch(s){case"day":case"month":case"year":break;default:if(l+=Le(t.c.hour),s==="hour")break;if(e){if(l+=":",l+=Le(t.c.minute),s==="minute")break;o&&(l+=":",l+=Le(t.c.second))}else{if(l+=Le(t.c.minute),s==="minute")break;o&&(l+=Le(t.c.second))}if(s==="second")break;o&&(!a||t.c.millisecond!==0)&&(l+=".",l+=Le(t.c.millisecond,3))}return r&&(t.isOffsetFixed&&t.offset===0&&!n?l+="Z":t.o<0?(l+="-",l+=Le(Math.trunc(-t.o/60)),l+=":",l+=Le(Math.trunc(-t.o%60))):(l+="+",l+=Le(Math.trunc(t.o/60)),l+=":",l+=Le(Math.trunc(t.o%60)))),n&&(l+="["+t.zone.ianaName+"]"),l}var vl={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},qf={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Wf={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ji=["year","month","day","hour","minute","second","millisecond"],jf=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],_f=["year","ordinal","hour","minute","second","millisecond"];function _i(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 Vi(t);return e}function go(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return _i(t)}}function Vf(t){if(yi===void 0&&(yi=ve.now()),t.type!=="iana")return t.offset(yi);let e=t.name,i=Cn.get(e);return i===void 0&&(i=t.offset(yi),Cn.set(e,i)),i}function bo(t,e){let i=Yt(e.zone,ve.defaultZone);if(!i.isValid)return ye.invalid(mi(i));let a=fe.fromObject(e),r,n;if(V(t.year))r=ve.now();else{for(let l of ji)V(t[l])&&(t[l]=vl[l]);let s=Ho(t)||Go(t);if(s)return ye.invalid(s);let o=Vf(i);[r,n]=Wi(t,o,i)}return new ye({ts:r,zone:i,loc:a,o:n})}function vo(t,e,i){let a=V(i.round)?!0:i.round,r=V(i.rounding)?"trunc":i.rounding,n=(o,l)=>(o=Pn(o,a||i.calendary?0:2,i.calendary?"round":r),e.loc.clone(i).relFormatter(i).format(o,l)),s=o=>i.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(i.unit)return n(s(i.unit),i.unit);for(let o of i.units){let l=s(o);if(Math.abs(l)>=1)return n(l,o)}return n(t>e?-0:0,i.units[i.units.length-1])}function So(t){let e={},i;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],i=Array.from(t).slice(0,t.length-1)):i=Array.from(t),[e,i]}var yi,Cn=new Map,ye=class t{constructor(e){let i=e.zone||ve.defaultZone,a=e.invalid||(Number.isNaN(e.ts)?new rt("invalid input"):null)||(i.isValid?null:mi(i));this.ts=V(e.ts)?ve.now():e.ts;let r=null,n=null;if(!a)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(i))[r,n]=[e.old.c,e.old.o];else{let o=Xt(e.o)&&!e.old?e.o:i.offset(this.ts);r=Bi(this.ts,o),a=Number.isNaN(r.year)?new rt("invalid input"):null,r=a?null:r,n=a?null:o}this._zone=i,this.loc=e.loc||fe.create(),this.invalid=a,this.weekData=null,this.localWeekData=null,this.c=r,this.o=n,this.isLuxonDateTime=!0}static now(){return new t({})}static local(){let[e,i]=So(arguments),[a,r,n,s,o,l,d]=i;return bo({year:a,month:r,day:n,hour:s,minute:o,second:l,millisecond:d},e)}static utc(){let[e,i]=So(arguments),[a,r,n,s,o,l,d]=i;return e.zone=ut.utcInstance,bo({year:a,month:r,day:n,hour:s,minute:o,second:l,millisecond:d},e)}static fromJSDate(e,i={}){let a=Sp(e)?e.valueOf():NaN;if(Number.isNaN(a))return t.invalid("invalid input");let r=Yt(i.zone,ve.defaultZone);return r.isValid?new t({ts:a,zone:r,loc:fe.fromObject(i)}):t.invalid(mi(r))}static fromMillis(e,i={}){if(Xt(e))return e<-ho||e>ho?t.invalid("Timestamp out of range"):new t({ts:e,zone:Yt(i.zone,ve.defaultZone),loc:fe.fromObject(i)});throw new Ne(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,i={}){if(Xt(e))return new t({ts:e*1e3,zone:Yt(i.zone,ve.defaultZone),loc:fe.fromObject(i)});throw new Ne("fromSeconds requires a numerical input")}static fromObject(e,i={}){e=e||{};let a=Yt(i.zone,ve.defaultZone);if(!a.isValid)return t.invalid(mi(a));let r=fe.fromObject(i),n=Qi(e,go),{minDaysInFirstWeek:s,startOfWeek:o}=ro(n,r),l=ve.now(),d=V(i.specificOffset)?a.offset(l):i.specificOffset,c=!V(n.ordinal),u=!V(n.year),f=!V(n.month)||!V(n.day),p=u||f,h=n.weekYear||n.weekNumber;if((p||c)&&h)throw new Kt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&c)throw new Kt("Can't mix ordinal dates with month/day");let b=h||n.weekday&&!p,m,w,C=Bi(l,d);b?(m=jf,w=qf,C=Hi(C,s,o)):c?(m=_f,w=Wf,C=Xa(C)):(m=ji,w=vl);let I=!1;for(let R of m){let k=n[R];V(k)?I?n[R]=w[R]:n[R]=C[R]:I=!0}let O=b?gp(n,s,o):c?bp(n):Ho(n),P=O||Go(n);if(P)return t.invalid(P);let A=b?eo(n,s,o):c?to(n):n,[M,N]=Wi(A,d,a),E=new t({ts:M,zone:a,o:N,loc:r});return n.weekday&&p&&e.weekday!==E.weekday?t.invalid("mismatched weekday",`you can't specify both a weekday of ${n.weekday} and a date of ${E.toISO()}`):E.isValid?E:t.invalid(E.invalid)}static fromISO(e,i={}){let[a,r]=cf(e);return Vr(a,r,i,"ISO 8601",e)}static fromRFC2822(e,i={}){let[a,r]=uf(e);return Vr(a,r,i,"RFC 2822",e)}static fromHTTP(e,i={}){let[a,r]=pf(e);return Vr(a,r,i,"HTTP",i)}static fromFormat(e,i,a={}){if(V(e)||V(i))throw new Ne("fromFormat requires an input string and a format");let{locale:r=null,numberingSystem:n=null}=a,s=fe.fromOpts({locale:r,numberingSystem:n,defaultToEN:!0}),[o,l,d,c]=Bf(s,e,i);return c?t.invalid(c):Vr(o,l,a,`format ${i}`,e,d)}static fromString(e,i,a={}){return t.fromFormat(e,i,a)}static fromSQL(e,i={}){let[a,r]=vf(e);return Vr(a,r,i,"SQL",e)}static invalid(e,i=null){if(!e)throw new Ne("need to specify a reason the DateTime is invalid");let a=e instanceof rt?e:new rt(e,i);if(ve.throwOnInvalid)throw new sn(a);return new t({invalid:a})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,i={}){let a=gl(e,fe.fromObject(i));return a?a.map(r=>r?r.val:null).join(""):null}static expandFormat(e,i={}){return ml(tt.parseFormat(e),fe.fromObject(i)).map(r=>r.val).join("")}static resetCache(){yi=void 0,Cn.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?rn(this).weekYear:NaN}get weekNumber(){return this.isValid?rn(this).weekNumber:NaN}get weekday(){return this.isValid?rn(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?an(this).weekday:NaN}get localWeekNumber(){return this.isValid?an(this).weekNumber:NaN}get localWeekYear(){return this.isValid?an(this).weekYear:NaN}get ordinal(){return this.isValid?Xa(this.c).ordinal:NaN}get monthShort(){return this.isValid?zr.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?zr.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?zr.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?zr.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,i=6e4,a=Yi(this.c),r=this.zone.offset(a-e),n=this.zone.offset(a+e),s=this.zone.offset(a-r*i),o=this.zone.offset(a-n*i);if(s===o)return[this];let l=a-s*i,d=a-o*i,c=Bi(l,s),u=Bi(d,o);return c.hour===u.hour&&c.minute===u.minute&&c.second===u.second&&c.millisecond===u.millisecond?[vr(this,{ts:l}),vr(this,{ts:d})]:[this]}get isInLeapYear(){return vi(this.year)}get daysInMonth(){return Gi(this.year,this.month)}get daysInYear(){return this.isValid?Ur(this.year):NaN}get weeksInWeekYear(){return this.isValid?bi(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?bi(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:i,numberingSystem:a,calendar:r}=tt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:i,numberingSystem:a,outputCalendar:r}}toUTC(e=0,i={}){return this.setZone(ut.instance(e),i)}toLocal(){return this.setZone(ve.defaultZone)}setZone(e,{keepLocalTime:i=!1,keepCalendarTime:a=!1}={}){if(e=Yt(e,ve.defaultZone),e.equals(this.zone))return this;if(e.isValid){let r=this.ts;if(i||a){let n=e.offset(this.ts),s=this.toObject();[r]=Wi(s,n,e)}return vr(this,{ts:r,zone:e})}else return t.invalid(mi(e))}reconfigure({locale:e,numberingSystem:i,outputCalendar:a}={}){let r=this.loc.clone({locale:e,numberingSystem:i,outputCalendar:a});return vr(this,{loc:r})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let i=Qi(e,go),{minDaysInFirstWeek:a,startOfWeek:r}=ro(i,this.loc),n=!V(i.weekYear)||!V(i.weekNumber)||!V(i.weekday),s=!V(i.ordinal),o=!V(i.year),l=!V(i.month)||!V(i.day),d=o||l,c=i.weekYear||i.weekNumber;if((d||s)&&c)throw new Kt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new Kt("Can't mix ordinal dates with month/day");let u;n?u=eo({...Hi(this.c,a,r),...i},a,r):V(i.ordinal)?(u={...this.toObject(),...i},V(i.day)&&(u.day=Math.min(Gi(u.year,u.month),u.day))):u=to({...Xa(this.c),...i});let[f,p]=Wi(u,this.o,this.zone);return vr(this,{ts:f,o:p})}plus(e){if(!this.isValid)return this;let i=Re.fromDurationLike(e);return vr(this,mo(this,i))}minus(e){if(!this.isValid)return this;let i=Re.fromDurationLike(e).negate();return vr(this,mo(this,i))}startOf(e,{useLocaleWeeks:i=!1}={}){if(!this.isValid)return this;let a={},r=Re.normalizeUnit(e);switch(r){case"years":a.month=1;case"quarters":case"months":a.day=1;case"weeks":case"days":a.hour=0;case"hours":a.minute=0;case"minutes":a.second=0;case"seconds":a.millisecond=0;break}if(r==="weeks")if(i){let n=this.loc.getStartOfWeek(),{weekday:s}=this;s<n&&(a.weekNumber=this.weekNumber-1),a.weekday=n}else a.weekday=1;if(r==="quarters"){let n=Math.ceil(this.month/3);a.month=(n-1)*3+1}return this.set(a)}endOf(e,i){return this.isValid?this.plus({[e]:1}).startOf(e,i).minus(1):this}toFormat(e,i={}){return this.isValid?tt.create(this.loc.redefaultToEN(i)).formatDateTimeFromString(this,e):tn}toLocaleString(e=zi,i={}){return this.isValid?tt.create(this.loc.clone(i),e).formatDateTime(this):tn}toLocaleParts(e={}){return this.isValid?tt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:i=!1,suppressMilliseconds:a=!1,includeOffset:r=!0,extendedZone:n=!1,precision:s="milliseconds"}={}){if(!this.isValid)return null;s=_i(s);let o=e==="extended",l=nn(this,o,s);return ji.indexOf(s)>=3&&(l+="T"),l+=yo(this,o,i,a,r,n,s),l}toISODate({format:e="extended",precision:i="day"}={}){return this.isValid?nn(this,e==="extended",_i(i)):null}toISOWeekDate(){return qi(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:i=!1,includeOffset:a=!0,includePrefix:r=!1,extendedZone:n=!1,format:s="extended",precision:o="milliseconds"}={}){return this.isValid?(o=_i(o),(r&&ji.indexOf(o)>=3?"T":"")+yo(this,s==="extended",i,e,a,n,o)):null}toRFC2822(){return qi(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return qi(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?nn(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:i=!1,includeOffsetSpace:a=!0}={}){let r="HH:mm:ss.SSS";return(i||e)&&(a&&(r+=" "),i?r+="z":e&&(r+="ZZ")),qi(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():tn}[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 i={...this.c};return e.includeConfig&&(i.outputCalendar=this.outputCalendar,i.numberingSystem=this.loc.numberingSystem,i.locale=this.loc.locale),i}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,i="milliseconds",a={}){if(!this.isValid||!e.isValid)return Re.invalid("created by diffing an invalid DateTime");let r={locale:this.locale,numberingSystem:this.numberingSystem,...a},n=wp(i).map(Re.normalizeUnit),s=e.valueOf()>this.valueOf(),o=s?this:e,l=s?e:this,d=Tf(o,l,n,r);return s?d.negate():d}diffNow(e="milliseconds",i={}){return this.diff(t.now(),e,i)}until(e){return this.isValid?Gr.fromDateTimes(this,e):this}hasSame(e,i,a){if(!this.isValid)return!1;let r=e.valueOf(),n=this.setZone(e.zone,{keepLocalTime:!0});return n.startOf(i,a)<=r&&r<=n.endOf(i,a)}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 i=e.base||t.fromObject({},{zone:this.zone}),a=e.padding?this<i?-e.padding:e.padding:0,r=["years","months","days","hours","minutes","seconds"],n=e.unit;return Array.isArray(e.unit)&&(r=e.unit,n=void 0),vo(i,this.plus(a),{...e,numeric:"always",units:r,unit:n})}toRelativeCalendar(e={}){return this.isValid?vo(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 Ne("min requires all arguments be DateTimes");return io(e,i=>i.valueOf(),Math.min)}static max(...e){if(!e.every(t.isDateTime))throw new Ne("max requires all arguments be DateTimes");return io(e,i=>i.valueOf(),Math.max)}static fromFormatExplain(e,i,a={}){let{locale:r=null,numberingSystem:n=null}=a,s=fe.fromOpts({locale:r,numberingSystem:n,defaultToEN:!0});return yl(s,e,i)}static fromStringExplain(e,i,a={}){return t.fromFormatExplain(e,i,a)}static buildFormatParser(e,i={}){let{locale:a=null,numberingSystem:r=null}=i,n=fe.fromOpts({locale:a,numberingSystem:r,defaultToEN:!0});return new Zi(n,e)}static fromFormatParser(e,i,a={}){if(V(e)||V(i))throw new Ne("fromFormatParser requires an input string and a format parser");let{locale:r=null,numberingSystem:n=null}=a,s=fe.fromOpts({locale:r,numberingSystem:n,defaultToEN:!0});if(!s.equals(i.locale))throw new Ne(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${i.locale}`);let{result:o,zone:l,specificOffset:d,invalidReason:c}=i.explainFromTokens(e);return c?t.invalid(c):Vr(o,l,a,`format ${i.format}`,e,d)}static get DATE_SHORT(){return zi}static get DATE_MED(){return wo}static get DATE_MED_WITH_WEEKDAY(){return Ku}static get DATE_FULL(){return Io}static get DATE_HUGE(){return Co}static get TIME_SIMPLE(){return xo}static get TIME_WITH_SECONDS(){return To}static get TIME_WITH_SHORT_OFFSET(){return Fo}static get TIME_WITH_LONG_OFFSET(){return Oo}static get TIME_24_SIMPLE(){return Po}static get TIME_24_WITH_SECONDS(){return Ao}static get TIME_24_WITH_SHORT_OFFSET(){return Eo}static get TIME_24_WITH_LONG_OFFSET(){return Do}static get DATETIME_SHORT(){return Lo}static get DATETIME_SHORT_WITH_SECONDS(){return $o}static get DATETIME_MED(){return No}static get DATETIME_MED_WITH_SECONDS(){return Ro}static get DATETIME_MED_WITH_WEEKDAY(){return Xu}static get DATETIME_FULL(){return Mo}static get DATETIME_FULL_WITH_SECONDS(){return ko}static get DATETIME_HUGE(){return Bo}static get DATETIME_HUGE_WITH_SECONDS(){return qo}};function fi(t){if(ye.isDateTime(t))return t;if(t&&t.valueOf&&Xt(t.valueOf()))return ye.fromJSDate(t);if(t&&typeof t=="object")return ye.fromObject(t);throw new Ne(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var aa=function(){return aa=Object.assign||function(e){for(var i,a=1,r=arguments.length;a<r;a++){i=arguments[a];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},aa.apply(this,arguments)},Ln={exports:{}},xe={},$n={exports:{}},Ir={};function xl(){var t={};return t["align-content"]=!1,t["align-items"]=!1,t["align-self"]=!1,t["alignment-adjust"]=!1,t["alignment-baseline"]=!1,t.all=!1,t["anchor-point"]=!1,t.animation=!1,t["animation-delay"]=!1,t["animation-direction"]=!1,t["animation-duration"]=!1,t["animation-fill-mode"]=!1,t["animation-iteration-count"]=!1,t["animation-name"]=!1,t["animation-play-state"]=!1,t["animation-timing-function"]=!1,t.azimuth=!1,t["backface-visibility"]=!1,t.background=!0,t["background-attachment"]=!0,t["background-clip"]=!0,t["background-color"]=!0,t["background-image"]=!0,t["background-origin"]=!0,t["background-position"]=!0,t["background-repeat"]=!0,t["background-size"]=!0,t["baseline-shift"]=!1,t.binding=!1,t.bleed=!1,t["bookmark-label"]=!1,t["bookmark-level"]=!1,t["bookmark-state"]=!1,t.border=!0,t["border-bottom"]=!0,t["border-bottom-color"]=!0,t["border-bottom-left-radius"]=!0,t["border-bottom-right-radius"]=!0,t["border-bottom-style"]=!0,t["border-bottom-width"]=!0,t["border-collapse"]=!0,t["border-color"]=!0,t["border-image"]=!0,t["border-image-outset"]=!0,t["border-image-repeat"]=!0,t["border-image-slice"]=!0,t["border-image-source"]=!0,t["border-image-width"]=!0,t["border-left"]=!0,t["border-left-color"]=!0,t["border-left-style"]=!0,t["border-left-width"]=!0,t["border-radius"]=!0,t["border-right"]=!0,t["border-right-color"]=!0,t["border-right-style"]=!0,t["border-right-width"]=!0,t["border-spacing"]=!0,t["border-style"]=!0,t["border-top"]=!0,t["border-top-color"]=!0,t["border-top-left-radius"]=!0,t["border-top-right-radius"]=!0,t["border-top-style"]=!0,t["border-top-width"]=!0,t["border-width"]=!0,t.bottom=!1,t["box-decoration-break"]=!0,t["box-shadow"]=!0,t["box-sizing"]=!0,t["box-snap"]=!0,t["box-suppress"]=!0,t["break-after"]=!0,t["break-before"]=!0,t["break-inside"]=!0,t["caption-side"]=!1,t.chains=!1,t.clear=!0,t.clip=!1,t["clip-path"]=!1,t["clip-rule"]=!1,t.color=!0,t["color-interpolation-filters"]=!0,t["column-count"]=!1,t["column-fill"]=!1,t["column-gap"]=!1,t["column-rule"]=!1,t["column-rule-color"]=!1,t["column-rule-style"]=!1,t["column-rule-width"]=!1,t["column-span"]=!1,t["column-width"]=!1,t.columns=!1,t.contain=!1,t.content=!1,t["counter-increment"]=!1,t["counter-reset"]=!1,t["counter-set"]=!1,t.crop=!1,t.cue=!1,t["cue-after"]=!1,t["cue-before"]=!1,t.cursor=!1,t.direction=!1,t.display=!0,t["display-inside"]=!0,t["display-list"]=!0,t["display-outside"]=!0,t["dominant-baseline"]=!1,t.elevation=!1,t["empty-cells"]=!1,t.filter=!1,t.flex=!1,t["flex-basis"]=!1,t["flex-direction"]=!1,t["flex-flow"]=!1,t["flex-grow"]=!1,t["flex-shrink"]=!1,t["flex-wrap"]=!1,t.float=!1,t["float-offset"]=!1,t["flood-color"]=!1,t["flood-opacity"]=!1,t["flow-from"]=!1,t["flow-into"]=!1,t.font=!0,t["font-family"]=!0,t["font-feature-settings"]=!0,t["font-kerning"]=!0,t["font-language-override"]=!0,t["font-size"]=!0,t["font-size-adjust"]=!0,t["font-stretch"]=!0,t["font-style"]=!0,t["font-synthesis"]=!0,t["font-variant"]=!0,t["font-variant-alternates"]=!0,t["font-variant-caps"]=!0,t["font-variant-east-asian"]=!0,t["font-variant-ligatures"]=!0,t["font-variant-numeric"]=!0,t["font-variant-position"]=!0,t["font-weight"]=!0,t.grid=!1,t["grid-area"]=!1,t["grid-auto-columns"]=!1,t["grid-auto-flow"]=!1,t["grid-auto-rows"]=!1,t["grid-column"]=!1,t["grid-column-end"]=!1,t["grid-column-start"]=!1,t["grid-row"]=!1,t["grid-row-end"]=!1,t["grid-row-start"]=!1,t["grid-template"]=!1,t["grid-template-areas"]=!1,t["grid-template-columns"]=!1,t["grid-template-rows"]=!1,t["hanging-punctuation"]=!1,t.height=!0,t.hyphens=!1,t.icon=!1,t["image-orientation"]=!1,t["image-resolution"]=!1,t["ime-mode"]=!1,t["initial-letters"]=!1,t["inline-box-align"]=!1,t["justify-content"]=!1,t["justify-items"]=!1,t["justify-self"]=!1,t.left=!1,t["letter-spacing"]=!0,t["lighting-color"]=!0,t["line-box-contain"]=!1,t["line-break"]=!1,t["line-grid"]=!1,t["line-height"]=!1,t["line-snap"]=!1,t["line-stacking"]=!1,t["line-stacking-ruby"]=!1,t["line-stacking-shift"]=!1,t["line-stacking-strategy"]=!1,t["list-style"]=!0,t["list-style-image"]=!0,t["list-style-position"]=!0,t["list-style-type"]=!0,t.margin=!0,t["margin-bottom"]=!0,t["margin-left"]=!0,t["margin-right"]=!0,t["margin-top"]=!0,t["marker-offset"]=!1,t["marker-side"]=!1,t.marks=!1,t.mask=!1,t["mask-box"]=!1,t["mask-box-outset"]=!1,t["mask-box-repeat"]=!1,t["mask-box-slice"]=!1,t["mask-box-source"]=!1,t["mask-box-width"]=!1,t["mask-clip"]=!1,t["mask-image"]=!1,t["mask-origin"]=!1,t["mask-position"]=!1,t["mask-repeat"]=!1,t["mask-size"]=!1,t["mask-source-type"]=!1,t["mask-type"]=!1,t["max-height"]=!0,t["max-lines"]=!1,t["max-width"]=!0,t["min-height"]=!0,t["min-width"]=!0,t["move-to"]=!1,t["nav-down"]=!1,t["nav-index"]=!1,t["nav-left"]=!1,t["nav-right"]=!1,t["nav-up"]=!1,t["object-fit"]=!1,t["object-position"]=!1,t.opacity=!1,t.order=!1,t.orphans=!1,t.outline=!1,t["outline-color"]=!1,t["outline-offset"]=!1,t["outline-style"]=!1,t["outline-width"]=!1,t.overflow=!1,t["overflow-wrap"]=!1,t["overflow-x"]=!1,t["overflow-y"]=!1,t.padding=!0,t["padding-bottom"]=!0,t["padding-left"]=!0,t["padding-right"]=!0,t["padding-top"]=!0,t.page=!1,t["page-break-after"]=!1,t["page-break-before"]=!1,t["page-break-inside"]=!1,t["page-policy"]=!1,t.pause=!1,t["pause-after"]=!1,t["pause-before"]=!1,t.perspective=!1,t["perspective-origin"]=!1,t.pitch=!1,t["pitch-range"]=!1,t["play-during"]=!1,t.position=!1,t["presentation-level"]=!1,t.quotes=!1,t["region-fragment"]=!1,t.resize=!1,t.rest=!1,t["rest-after"]=!1,t["rest-before"]=!1,t.richness=!1,t.right=!1,t.rotation=!1,t["rotation-point"]=!1,t["ruby-align"]=!1,t["ruby-merge"]=!1,t["ruby-position"]=!1,t["shape-image-threshold"]=!1,t["shape-outside"]=!1,t["shape-margin"]=!1,t.size=!1,t.speak=!1,t["speak-as"]=!1,t["speak-header"]=!1,t["speak-numeral"]=!1,t["speak-punctuation"]=!1,t["speech-rate"]=!1,t.stress=!1,t["string-set"]=!1,t["tab-size"]=!1,t["table-layout"]=!1,t["text-align"]=!0,t["text-align-last"]=!0,t["text-combine-upright"]=!0,t["text-decoration"]=!0,t["text-decoration-color"]=!0,t["text-decoration-line"]=!0,t["text-decoration-skip"]=!0,t["text-decoration-style"]=!0,t["text-emphasis"]=!0,t["text-emphasis-color"]=!0,t["text-emphasis-position"]=!0,t["text-emphasis-style"]=!0,t["text-height"]=!0,t["text-indent"]=!0,t["text-justify"]=!0,t["text-orientation"]=!0,t["text-overflow"]=!0,t["text-shadow"]=!0,t["text-space-collapse"]=!0,t["text-transform"]=!0,t["text-underline-position"]=!0,t["text-wrap"]=!0,t.top=!1,t.transform=!1,t["transform-origin"]=!1,t["transform-style"]=!1,t.transition=!1,t["transition-delay"]=!1,t["transition-duration"]=!1,t["transition-property"]=!1,t["transition-timing-function"]=!1,t["unicode-bidi"]=!1,t["vertical-align"]=!1,t.visibility=!1,t["voice-balance"]=!1,t["voice-duration"]=!1,t["voice-family"]=!1,t["voice-pitch"]=!1,t["voice-range"]=!1,t["voice-rate"]=!1,t["voice-stress"]=!1,t["voice-volume"]=!1,t.volume=!1,t["white-space"]=!1,t.widows=!1,t.width=!0,t["will-change"]=!1,t["word-break"]=!0,t["word-spacing"]=!0,t["word-wrap"]=!0,t["wrap-flow"]=!1,t["wrap-through"]=!1,t["writing-mode"]=!1,t["z-index"]=!1,t}function zf(t,e,i){}function Uf(t,e,i){}var Hf=/javascript\s*\:/img;function Gf(t,e){return Hf.test(e)?"":e}Ir.whiteList=xl();Ir.getDefaultWhiteList=xl;Ir.onAttr=zf;Ir.onIgnoreAttr=Uf;Ir.safeAttrValue=Gf;var Qf={indexOf:function(t,e){var i,a;if(Array.prototype.indexOf)return t.indexOf(e);for(i=0,a=t.length;i<a;i++)if(t[i]===e)return i;return-1},forEach:function(t,e,i){var a,r;if(Array.prototype.forEach)return t.forEach(e,i);for(a=0,r=t.length;a<r;a++)e.call(i,t[a],a,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(t){return String.prototype.trimRight?t.trimRight():t.replace(/(\s*$)/g,"")}},Ii=Qf;function Zf(t,e){t=Ii.trimRight(t),t[t.length-1]!==";"&&(t+=";");var i=t.length,a=!1,r=0,n=0,s="";function o(){if(!a){var c=Ii.trim(t.slice(r,n)),u=c.indexOf(":");if(u!==-1){var f=Ii.trim(c.slice(0,u)),p=Ii.trim(c.slice(u+1));if(f){var h=e(r,s.length,f,p,c);h&&(s+=h+"; ")}}}r=n+1}for(;n<i;n++){var l=t[n];if(l==="/"&&t[n+1]==="*"){var d=t.indexOf("*/",n+2);if(d===-1)break;n=d+1,r=n+1,a=!1}else l==="("?a=!0:l===")"?a=!1:l===";"?a||o():l===`
3
- `&&o()}return Ii.trim(s)}var Jf=Zf,ea=Ir,Yf=Jf;function Sl(t){return t==null}function Kf(t){var e={};for(var i in t)e[i]=t[i];return e}function Tl(t){t=Kf(t||{}),t.whiteList=t.whiteList||ea.whiteList,t.onAttr=t.onAttr||ea.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||ea.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||ea.safeAttrValue,this.options=t}Tl.prototype.process=function(t){if(t=t||"",t=t.toString(),!t)return"";var e=this,i=e.options,a=i.whiteList,r=i.onAttr,n=i.onIgnoreAttr,s=i.safeAttrValue,o=Yf(t,function(l,d,c,u,f){var p=a[c],h=!1;if(p===!0?h=p:typeof p=="function"?h=p(u):p instanceof RegExp&&(h=p.test(u)),h!==!0&&(h=!1),u=s(c,u),!!u){var b={position:d,sourcePosition:l,source:f,isWhite:h};if(h){var m=r(c,u,b);return Sl(m)?c+":"+u:m}else{var m=n(c,u,b);if(!Sl(m))return m}}});return o};var Xf=Tl;(function(t,e){var i=Ir,a=Xf;function r(s,o){var l=new a(o);return l.process(s)}e=t.exports=r,e.FilterCSS=a;for(var n in i)e[n]=i[n]})($n,$n.exports);var Nn=$n.exports,Rn={indexOf:function(t,e){var i,a;if(Array.prototype.indexOf)return t.indexOf(e);for(i=0,a=t.length;i<a;i++)if(t[i]===e)return i;return-1},forEach:function(t,e,i){var a,r;if(Array.prototype.forEach)return t.forEach(e,i);for(a=0,r=t.length;a<r;a++)e.call(i,t[a],a,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(t){var e=/\s|\n|\t/,i=e.exec(t);return i?i.index:-1}},eh=Nn.FilterCSS,th=Nn.getDefaultWhiteList,na=Rn;function Fl(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var Ol=new eh;function rh(t,e,i){}function ih(t,e,i){}function ah(t,e,i){}function nh(t,e,i){}function Pl(t){return t.replace(oh,"&lt;").replace(lh,"&gt;")}function sh(t,e,i,a){if(i=Nl(i),e==="href"||e==="src"){if(i=na.trim(i),i==="#")return"#";if(!(i.substr(0,7)==="http://"||i.substr(0,8)==="https://"||i.substr(0,7)==="mailto:"||i.substr(0,4)==="tel:"||i.substr(0,11)==="data:image/"||i.substr(0,6)==="ftp://"||i.substr(0,2)==="./"||i.substr(0,3)==="../"||i[0]==="#"||i[0]==="/"))return""}else if(e==="background"){if(ta.lastIndex=0,ta.test(i))return""}else if(e==="style"){if(wl.lastIndex=0,wl.test(i)||(Il.lastIndex=0,Il.test(i)&&(ta.lastIndex=0,ta.test(i))))return"";a!==!1&&(a=a||Ol,i=a.process(i))}return i=Rl(i),i}var oh=/</g,lh=/>/g,dh=/"/g,ch=/&quot;/g,uh=/&#([a-zA-Z0-9]*);?/gim,ph=/&colon;?/gim,fh=/&newline;?/gim,ta=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,wl=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Il=/u\s*r\s*l\s*\(.*/gi;function Al(t){return t.replace(dh,"&quot;")}function El(t){return t.replace(ch,'"')}function Dl(t){return t.replace(uh,function(i,a){return a[0]==="x"||a[0]==="X"?String.fromCharCode(parseInt(a.substr(1),16)):String.fromCharCode(parseInt(a,10))})}function Ll(t){return t.replace(ph,":").replace(fh," ")}function $l(t){for(var e="",i=0,a=t.length;i<a;i++)e+=t.charCodeAt(i)<32?" ":t.charAt(i);return na.trim(e)}function Nl(t){return t=El(t),t=Dl(t),t=Ll(t),t=$l(t),t}function Rl(t){return t=Al(t),t=Pl(t),t}function hh(){return""}function mh(t,e){typeof e!="function"&&(e=function(){});var i=!Array.isArray(t);function a(s){return i?!0:na.indexOf(t,s)!==-1}var r=[],n=!1;return{onIgnoreTag:function(s,o,l){if(a(s))if(l.isClosing){var d="[/removed]",c=l.position+d.length;return r.push([n!==!1?n:l.position,c]),n=!1,d}else return n||(n=l.position),"[removed]";else return e(s,o,l)},remove:function(s){var o="",l=0;return na.forEach(r,function(d){o+=s.slice(l,d[0]),l=d[1]}),o+=s.slice(l),o}}}function yh(t){for(var e="",i=0;i<t.length;){var a=t.indexOf("<!--",i);if(a===-1){e+=t.slice(i);break}e+=t.slice(i,a);var r=t.indexOf("-->",a);if(r===-1)break;i=r+3}return e}function gh(t){var e=t.split("");return e=e.filter(function(i){var a=i.charCodeAt(0);return a===127?!1:a<=31?a===10||a===13:!0}),e.join("")}xe.whiteList=Fl();xe.getDefaultWhiteList=Fl;xe.onTag=rh;xe.onIgnoreTag=ih;xe.onTagAttr=ah;xe.onIgnoreTagAttr=nh;xe.safeAttrValue=sh;xe.escapeHtml=Pl;xe.escapeQuote=Al;xe.unescapeQuote=El;xe.escapeHtmlEntities=Dl;xe.escapeDangerHtml5Entities=Ll;xe.clearNonPrintableCharacter=$l;xe.friendlyAttrValue=Nl;xe.escapeAttrValue=Rl;xe.onIgnoreTagStripAll=hh;xe.StripTagBody=mh;xe.stripCommentTag=yh;xe.stripBlankChar=gh;xe.cssFilter=Ol;xe.getDefaultCSSWhiteList=th;var sa={},tr=Rn;function bh(t){var e=tr.spaceIndex(t),i;return e===-1?i=t.slice(1,-1):i=t.slice(1,e+1),i=tr.trim(i).toLowerCase(),i.slice(0,1)==="/"&&(i=i.slice(1)),i.slice(-1)==="/"&&(i=i.slice(0,-1)),i}function vh(t){return t.slice(0,2)==="</"}function Sh(t,e,i){var a="",r=0,n=!1,s=!1,o=0,l=t.length,d="",c="";e:for(o=0;o<l;o++){var u=t.charAt(o);if(n===!1){if(u==="<"){n=o;continue}}else if(s===!1){if(u==="<"){a+=i(t.slice(r,o)),n=o,r=o;continue}if(u===">"){a+=i(t.slice(r,n)),c=t.slice(n,o+1),d=bh(c),a+=e(n,a.length,d,c,vh(c)),r=o+1,n=!1;continue}if(u==='"'||u==="'")for(var f=1,p=t.charAt(o-f);p.trim()===""||p==="=";){if(p==="="){s=u;continue e}p=t.charAt(o-++f)}}else if(u===s){s=!1;continue}}return r<t.length&&(a+=i(t.substr(r))),a}var wh=/[^a-zA-Z0-9\\_:.-]/gim;function Ih(t,e){var i=0,a=0,r=[],n=!1,s=t.length;function o(f,p){if(f=tr.trim(f),f=f.replace(wh,"").toLowerCase(),!(f.length<1)){var h=e(f,p||"");h&&r.push(h)}}for(var l=0;l<s;l++){var d=t.charAt(l),c,u;if(n===!1&&d==="="){n=t.slice(i,l),i=l+1,a=t.charAt(i)==='"'||t.charAt(i)==="'"?i:xh(t,l+1);continue}if(n!==!1&&l===a){if(u=t.indexOf(d,l+1),u===-1)break;c=tr.trim(t.slice(a+1,u)),o(n,c),n=!1,l=u,i=l+1;continue}if(/\s|\n|\t/.test(d))if(t=t.replace(/\s|\n|\t/g," "),n===!1)if(u=Ch(t,l),u===-1){c=tr.trim(t.slice(i,l)),o(c),n=!1,i=l+1;continue}else{l=u-1;continue}else if(u=Th(t,l-1),u===-1){c=tr.trim(t.slice(i,l)),c=Cl(c),o(n,c),n=!1,i=l+1;continue}else continue}return i<t.length&&(n===!1?o(t.slice(i)):o(n,Cl(tr.trim(t.slice(i))))),tr.trim(r.join(" "))}function Ch(t,e){for(;e<t.length;e++){var i=t[e];if(i!==" ")return i==="="?e:-1}}function xh(t,e){for(;e<t.length;e++){var i=t[e];if(i!==" ")return i==="'"||i==='"'?e:-1}}function Th(t,e){for(;e>0;e--){var i=t[e];if(i!==" ")return i==="="?e:-1}}function Fh(t){return t[0]==='"'&&t[t.length-1]==='"'||t[0]==="'"&&t[t.length-1]==="'"}function Cl(t){return Fh(t)?t.substr(1,t.length-2):t}sa.parseTag=Sh;sa.parseAttr=Ih;var Oh=Nn.FilterCSS,Ct=xe,Ml=sa,Ph=Ml.parseTag,Ah=Ml.parseAttr,ia=Rn;function ra(t){return t==null}function Eh(t){var e=ia.spaceIndex(t);if(e===-1)return{html:"",closing:t[t.length-2]==="/"};t=ia.trim(t.slice(e+1,-1));var i=t[t.length-1]==="/";return i&&(t=ia.trim(t.slice(0,-1))),{html:t,closing:i}}function Dh(t){var e={};for(var i in t)e[i]=t[i];return e}function Lh(t){var e={};for(var i in t)Array.isArray(t[i])?e[i.toLowerCase()]=t[i].map(function(a){return a.toLowerCase()}):e[i.toLowerCase()]=t[i];return e}function kl(t){t=Dh(t||{}),t.stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=Ct.onIgnoreTagStripAll),t.whiteList||t.allowList?t.whiteList=Lh(t.whiteList||t.allowList):t.whiteList=Ct.whiteList,t.onTag=t.onTag||Ct.onTag,t.onTagAttr=t.onTagAttr||Ct.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||Ct.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||Ct.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||Ct.safeAttrValue,t.escapeHtml=t.escapeHtml||Ct.escapeHtml,this.options=t,t.css===!1?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new Oh(t.css))}kl.prototype.process=function(t){if(t=t||"",t=t.toString(),!t)return"";var e=this,i=e.options,a=i.whiteList,r=i.onTag,n=i.onIgnoreTag,s=i.onTagAttr,o=i.onIgnoreTagAttr,l=i.safeAttrValue,d=i.escapeHtml,c=e.cssFilter;i.stripBlankChar&&(t=Ct.stripBlankChar(t)),i.allowCommentTag||(t=Ct.stripCommentTag(t));var u=!1;i.stripIgnoreTagBody&&(u=Ct.StripTagBody(i.stripIgnoreTagBody,n),n=u.onIgnoreTag);var f=Ph(t,function(p,h,b,m,w){var C={sourcePosition:p,position:h,isClosing:w,isWhite:Object.prototype.hasOwnProperty.call(a,b)},I=r(b,m,C);if(!ra(I))return I;if(C.isWhite){if(C.isClosing)return"</"+b+">";var O=Eh(m),P=a[b],A=Ah(O.html,function(M,N){var E=ia.indexOf(P,M)!==-1,R=s(b,M,N,E);return ra(R)?E?(N=l(b,M,N,c),N?M+'="'+N+'"':M):(R=o(b,M,N,E),ra(R)?void 0:R):R});return m="<"+b,A&&(m+=" "+A),O.closing&&(m+=" /"),m+=">",m}else return I=n(b,m,C),ra(I)?d(m):I},d);return u&&(f=u.remove(f)),f};var $h=kl;(function(t,e){var i=xe,a=sa,r=$h;function n(o,l){var d=new r(l);return d.process(o)}e=t.exports=n,e.filterXSS=n,e.FilterXSS=r,(function(){for(var o in i)e[o]=i[o];for(var l in a)e[l]=a[l]})();function s(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}s()&&(self.filterXSS=t.exports)})(Ln,Ln.exports);var Xr=Ln.exports,Nh=function(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},Bl=(function(){function t(e,i){var a=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],article:["style"],aside:["style"],audio:["autoplay","controls","loop","muted","preload"],b:[],blockquote:["style"],br:[],code:["style"],dd:["style"],del:["style"],details:["open","style"],div:["align","aria-hidden","aria-label","style"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],footer:["style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],header:["style"],hr:[],i:[],img:["alt","border","height","src","style","width"],li:[],main:["style"],mark:["style"],nav:["style"],ol:[],p:["style"],pre:["style"],section:["style"],source:["media","src","type"],span:["aria-hidden","aria-label","style"],strong:[],sub:["style"],summary:["style"],sup:["style"],table:["border","cellpadding","cellspacing","height","style","width"],tbody:[],tr:["align","height","style","valign"],td:["align","colspan","height","nowrap","rowspan","style","valign","width"],th:["align","colspan","height","nowrap","rowspan","style","valign","width"],time:["style"],u:[],ul:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.arcgisCSSWhiteList=aa(aa({},Xr.getDefaultCSSWhiteList()),{"align-items":!0,"align-self":!0,flex:!0,"flex-basis":!0,"flex-direction":!0,"flex-flow":!0,"flex-grow":!0,"flex-shrink":!0,"flex-wrap":!0,float:!0,gap:!0,grid:!0,"grid-area":!0,"grid-auto-columns":!0,"grid-auto-flow":!0,"grid-auto-rows":!0,"grid-column":!0,"grid-column-end":!0,"grid-column-start":!0,"grid-row":!0,"grid-row-end":!0,"grid-row-start":!0,"grid-template":!0,"grid-template-areas":!0,"grid-template-columns":!0,"grid-template-rows":!0,"justify-content":!0,"justify-items":!0,"justify-self":!0,"line-height":!0,overflow:!0}),this.allowedProtocols=["http","https","mailto","iform","tel","flow","lfmobile","arcgis-navigator","arcgis-appstudio-player","arcgis-survey123","arcgis-collector","arcgis-workforce","arcgis-explorer","arcgis-trek2there","arcgis-quickcapture","mspbi","comgooglemaps","pdfefile","pdfehttp","pdfehttps","boxapp","boxemm","awb","awbs","gropen","radarscope"],this.arcgisFilterOptions={allowCommentTag:!0,safeAttrValue:function(n,s,o,l){return n==="a"&&s==="href"||(n==="img"||n==="source")&&s==="src"?a.sanitizeUrl(o):Xr.safeAttrValue(n,s,o,l)}},this._entityMap={"&":"&#x38;","<":"&#x3C;",">":"&#x3E;",'"':"&#x22;","'":"&#x27;","/":"&#x2F;"};var r;e&&!i?r=e:e&&i?(r=Object.create(this.arcgisFilterOptions),r.css={whiteList:this.arcgisCSSWhiteList},Object.keys(e).forEach(function(n){if(n==="whiteList")r.whiteList=a._extendObjectOfArrays([a.arcgisWhiteList,e.whiteList||{}]);else if(n==="css"){var s=e.css.whiteList;s!=null&&e.css instanceof Object&&Object.keys(s).forEach(function(o){return r.css.whiteList[o]=s[o]})}else r[n]=e[n]})):(r=Object.create(this.arcgisFilterOptions),r.whiteList=this.arcgisWhiteList,r.css={whiteList:this.arcgisCSSWhiteList}),this.xssFilterOptions=r,this._xssFilter=new Xr.FilterXSS(r)}return t.prototype.sanitize=function(e,i){switch(i===void 0&&(i={}),typeof e){case"number":return isNaN(e)||!isFinite(e)?null:e;case"boolean":return e;case"string":return this._xssFilter.process(e);case"object":return this._iterateOverObject(e,i);default:return i.allowUndefined&&typeof e>"u"?void 0:null}},t.prototype.sanitizeUrl=function(e,i){var a=(i??{}).isProtocolRequired,r=a===void 0?!0:a,n=this._trim(e.substring(0,e.indexOf(":"))),s=e==="/",o=/^#/.test(e),l=n&&this.allowedProtocols.indexOf(n.toLowerCase())>-1;return s||o||l?Xr.escapeAttrValue(e):!n&&!r?Xr.escapeAttrValue("https://".concat(e)):""},t.prototype.sanitizeHTMLAttribute=function(e,i,a,r){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(e,i,a,r):Xr.safeAttrValue(e,i,a,r)},t.prototype.validate=function(e,i){i===void 0&&(i={});var a=this.sanitize(e,i);return{isValid:e===a,sanitized:a}},t.prototype.encodeHTML=function(e){var i=this;return String(e).replace(/[&<>"'\/]/g,function(a){return i._entityMap[a]})},t.prototype.encodeAttrValue=function(e){var i=/^[a-zA-Z0-9]$/;return String(e).replace(/[\x00-\xFF]/g,function(a,r){return i.test(a)?a:"&#x".concat(Number(e.charCodeAt(r)).toString(16),";")})},t.prototype._extendObjectOfArrays=function(e){var i={};return e.forEach(function(a){Object.keys(a).forEach(function(r){Array.isArray(a[r])&&Array.isArray(i[r])?i[r]=i[r].concat(a[r]):i[r]=a[r]})}),i},t.prototype._iterateOverObject=function(e,i){var a=this;i===void 0&&(i={});try{var r=!1,n=void 0;if(Array.isArray(e))n=e.reduce(function(o,l){var d=a.validate(l,i);return d.isValid?o.concat([l]):(r=!0,o.concat([d.sanitized]))},[]);else if(Nh(e)){var s=Object.keys(e);n=s.reduce(function(o,l){var d=e[l],c=a.validate(d,i);return c.isValid?o[l]=d:(r=!0,o[l]=c.sanitized),o},{})}else return i.allowUndefined&&typeof e>"u"?void 0:null;return r?n:e}catch{return null}},t.prototype._trim=function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},t})();function ql(t){var e,i,a=t.length;if(a===1)e=0,i=t[0][1];else{for(var r=0,n=0,s=0,o=0,l,d,c,u=0;u<a;u++)l=t[u],d=l[0],c=l[1],r+=d,n+=c,s+=d*d,o+=d*c;e=(a*o-r*n)/(a*s-r*r),i=n/a-e*r/a}return{m:e,b:i}}function Wl(t){return function(e){return t.b+t.m*e}}function jl(t,e){if(t.length<2)return 1;for(var i=0,a=0;a<t.length;a++)i+=t[a][1];for(var r=i/t.length,n=0,s=0;s<t.length;s++)n+=Math.pow(r-t[s][1],2);for(var o=0,l=0;l<t.length;l++)o+=Math.pow(t[l][1]-e(t[l][0]),2);return 1-o/n}var _l=function(){this.totalCount=0,this.data={}};_l.prototype.train=function(e,i){this.data[i]||(this.data[i]={});for(var a in e){var r=e[a];this.data[i][a]===void 0&&(this.data[i][a]={}),this.data[i][a][r]===void 0&&(this.data[i][a][r]=0),this.data[i][a][r]++}this.totalCount++};_l.prototype.score=function(e){var i={},a;for(var r in e){var n=e[r];for(a in this.data)i[a]={},this.data[a][r]?i[a][r+"_"+n]=(this.data[a][r][n]||0)/this.totalCount:i[a][r+"_"+n]=0}var s={};for(a in i){s[a]=0;for(var o in i[a])s[a]+=i[a][o]}return s};var Vl=function(){this.weights=[],this.bias=0};Vl.prototype.predict=function(e){if(e.length!==this.weights.length)return null;for(var i=0,a=0;a<this.weights.length;a++)i+=this.weights[a]*e[a];return i+=this.bias,i>0?1:0};Vl.prototype.train=function(e,i){if(i!==0&&i!==1)return null;e.length!==this.weights.length&&(this.weights=e,this.bias=1);var a=this.predict(e);if(typeof a=="number"&&a!==i){for(var r=i-a,n=0;n<this.weights.length;n++)this.weights[n]+=r*e[n];this.bias+=r}return this};var l0=607/128,d0=Math.log(Math.sqrt(2*Math.PI));var c0=Math.sqrt(2*Math.PI);var Rh=Math.sqrt(2*Math.PI);function Mh(t){for(var e=t,i=t,a=1;a<15;a++)i*=t*t/(2*a+1),e+=i;return Math.round((.5+e/Rh*Math.exp(-t*t/2))*1e4)/1e4}var kh=[];for(oa=0;oa<=3.09;oa+=.01)kh.push(Mh(oa));var oa;var nu=Yu(zc(),1);var Vt="25.0.0",Lt="arcgis_charts_pie_from_fields_name",Fr="arcgis_charts_pie_from_fields_value",Dy="arcgis_charts_bar_line_from_fields_name",Ly="arcgis_charts_bar_line_from_fields_value",jt={Mean:"Mean",Median:"Median",StdDev:"Standard Deviation",Normal:"Normal Distribution",Trendline:"Trendline"},Uc={Count:"count",Start:"minValue",End:"maxValue"};function $y(t,e){let i=e.errors[t];throw new ze(e.modalHeaders.error,i??e.errors.simpleError)}function Ny(t){return t.axes?.[0]?.valueFormat?.type}function PS(t){return t.intlOptions}function He(t){return t?.type===y.NumberAxisFormat}function AS(t){return He(t)&&t.intlOptions?.style==="percent"}function or(t){return t?.type===y.CategoryAxisFormat}function xi(t){return t?.type===y.DateAxisFormat}function ES(t){let{oldConfig:e,newConfig:i,rotationChanged:a}=t;return a?[!0,!0]:[e.horizontalAxisLabelsBehavior!==i.horizontalAxisLabelsBehavior,e.verticalAxisLabelsBehavior!==i.verticalAxisLabelsBehavior]}function Ry(t){return He(t?.[1]?.valueFormat)&&(t?.[2]?.valueFormat===void 0||He(t[2].valueFormat))}function My(t){return He(t?.[1]?.valueFormat)&&(t?.[2]?.valueFormat===void 0||He(t[2].valueFormat))}function ky(t){return(or(t?.[0]?.valueFormat)||xi(t?.[0]?.valueFormat))&&He(t?.[1]?.valueFormat)&&(t?.[2]?.valueFormat===void 0||He(t[2].valueFormat))}function By(t){return or(t?.[0]?.valueFormat)&&or(t?.[1]?.valueFormat)||xi(t?.[0]?.valueFormat)&&or(t?.[1]?.valueFormat)||xi(t?.[0]?.valueFormat)&&xi(t?.[1]?.valueFormat)}function qy(t){return(or(t?.[0]?.valueFormat)||xi(t?.[0]?.valueFormat))&&He(t?.[1]?.valueFormat)}function Wy(t){return He(t?.[0]?.valueFormat)&&He(t?.[1]?.valueFormat)}function jy(t){return He(t?.[0]?.valueFormat)&&He(t?.[1]?.valueFormat)}function _y(t){return He(t?.[0]?.valueFormat)}function DS(t){let{chartType:e,axesConfig:i,errorStrings:a}=t,r,n;switch(e){case y.GaugeSeries:r=_y,n="invalidValueFormatForGauge";break;case y.ScatterSeries:r=Wy,n="invalidValueFormatForScatterplot";break;case y.HistogramSeries:r=jy,n="invalidValueFormatForHistogram";break;case y.LineSeries:r=Ry,n="invalidValueFormatForLineChart";break;case y.BarSeries:r=My,n="invalidValueFormatForBarChart";break;case y.ComboLineAndBarSeries:r=qy,n="invalidValueFormatForComboBarLineChart";break;case y.BoxPlotSeries:r=ky,n="invalidValueFormatForBoxPlot";break;case y.HeatSeries:r=By,n="invalidValueFormatForHeatChart";break}r!==void 0&&n!==void 0&&(r(i)||$y(n,a))}function LS(t){let{isXAxis:e,chartType:i,valueFormat:a,isAxisForHistogramOverlaySeries:r}=t;return e&&(or(a)||i===y.HistogramSeries&&!r||i===y.BarSeries&&He(a))}var Vy={MonoSelection:"monoSelection",MultiSelection:"multiSelection",MultiSelectionWithCtrlKey:"multiSelectionWithCtrlKey",Zoom:"zoom",None:"none"},$S={MultiAxes:"multi-axes",XAxis:"x-axis",YAxis:"y-axis"},bs={Reject:"reject",RenderUpToTheLimit:"renderUpToTheLimit"},Z={AxisLabels:"axisLabels",GuideLabel:"guideLabel",AxisTitle:"axisTitle",ChartTitle:"chartTitle",ChartSubtitle:"chartSubtitle",DataLabels:"dataLabels",LegendTitle:"legendTitle",LegendText:"legendText",DescriptionText:"descriptionText"},NS=32,ss="arcgis_charts_features_extent",xt={maxRecordCountFactor:5,maxParallelRequests:4,maxRecords:2e3,orderByJSAPIDelimiter:" ",outStatistics:{statisticType:Bs.statisticType,onStatisticField:"OBJECTID",outStatisticFieldName:"arcgis_charts_outStatisticFieldName_default_key"},uniqueIdsName:"arcgisChartsUniqueIds",heatChartLowerBoundaryAlias:"lowerBoundary5x1",heatChartUpperBoundaryAlias:"upperBoundary5x1"},zy=["EXPR_1","Expr1","expr1","EXPR1"],RS=1,Ge=.7,Uy=25,lu=[156,156,156,255],Hy=[156,156,156,255],MS=Zt.Solid,kS=2,$a={defaultGroupOfSlicesId:"arcgis_charts_group_of_slices",sliceIdPrefix:"arcgis-charts-slice-id",undefinedSliceId:"arcgis-charts-slice-id-undefined",nullSliceId:"arcgis-charts-slice-id-null",emptySliceId:"arcgis-charts-slice-id-empty"},ka="arcgis_charts_box_plot_category",Or={valueField:"arcgis_charts_heat_chart_value",xField:"arcgis_charts_heat_chart_x",yField:"arcgis_charts_heat_chart_y"},BS={min:1,max:10},Gy=[[31,120,180,255],[166,206,227,255],[51,160,44,255],[178,223,138,255],[227,26,28,255],[251,154,153,255],[255,127,0,255],[253,191,111,255],[106,61,154,255],[202,178,214,255]],qS=[[90,180,255,255],[165,220,255,255],[90,215,80,255],[165,245,150,255],[255,80,85,255],[255,170,170,255],[255,165,70,255],[255,205,130,255],[155,110,255,255],[220,195,255,255]],Qy=[[104,104,104,255],[51,124,235,255],[132,0,168,255],[156,156,156,255]],WS=[[104,104,104,255],[51,124,235,255],[175,90,255,255],[156,156,156,255]],jS=[255,255,255,255],_S=[43,43,43,255],VS=[0,122,194,255],zS=[255,255,255,255],US=[0,0,0,255],Aa=[150,150,150,178.5];function ft(t){let{colorIndex:e,opacity:i,histogramOverlays:a}=t,r=Math.max(0,e??0),n=[...a===!0?Qy:Gy],[s,o,l,d]=n[r%n.length],c=i!==void 0?i*255:d;return[s,o,l,c]}function du(t){return[0,0,0,(t??Ge)*255]}function HS(){return{type:y.CursorCrosshair,verticalLineVisible:!1,horizontalLineVisible:!1,style:{type:de.SLS,style:Zt.Dot,color:[211,211,211,255],width:1}}}function Ba(t=1){return[Math.floor(Math.random()*256),Math.floor(Math.random()*256),Math.floor(Math.random()*256),t*255]}function se(t){let e={family:"Arial, Helvetica, sans-serif",size:10};switch(t){case Z.ChartTitle:e.size=18;break;case Z.AxisTitle:e.size=14;break;case Z.LegendText:e.size=12;break;case Z.LegendTitle:e.size=13;break;case Z.DescriptionText:e.size=11;break}return e}function cu(t="",e=se(),i){let a=oe.Center;return(i===Z.DataLabels||i===Z.GuideLabel)&&(a=void 0),{type:de.TS,color:du(),text:t,font:e,horizontalAlignment:a}}function K(t){let{text:e,visible:i,font:a,type:r}=t??{text:"",visible:!0,font:se()};return{type:y.Text,visible:i,content:cu(e,a,r)}}function Oi(t){let e=t?.useRandomColor??!1,i=t?.useRampColor,a=t?.width??1,r=t?.isHistogramOverlay,n=t?.color??du(1);return e?n=Ba():i!==void 0&&(r===!0?n=ft({colorIndex:i.colorIndex,histogramOverlays:r}):n=ft({colorIndex:i.colorIndex})),t?.opacity!==void 0&&(n[3]=t.opacity),{type:de.SLS,style:Zt.Solid,color:n,width:a}}function Zy(){return{type:y.CategoryAxisFormat,characterLimit:11}}function GS(){return{type:y.DateAxisFormat,intlOptions:{}}}function us(){return{type:y.NumberAxisFormat,intlOptions:{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:3,useGrouping:!0}}}function QS(){return{type:y.NumberAxisFormat,intlOptions:{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:2}}}function ZS(){return{type:y.NumberAxisFormat,intlOptions:{style:"percent",minimumFractionDigits:0,maximumFractionDigits:0}}}function os(t="Category Axis"){let e=K({text:t,visible:!0,font:se(Z.AxisTitle)});e.content.horizontalAlignment=oe.Center,e.content.verticalAlignment=be.Middle;let i=K({text:t,visible:!0,font:se(Z.AxisLabels)});return{type:y.Axis,visible:!0,title:e,labels:i,valueFormat:Zy(),lineSymbol:Oi({color:lu})}}function Ea(t="Value Axis"){let e=K({text:t,visible:!0,font:se(Z.AxisTitle)}),i=K({text:t,visible:!0,font:se(Z.AxisLabels)});return e.content.verticalAlignment=be.Middle,e.content.horizontalAlignment=oe.Center,{type:y.Axis,visible:!0,title:e,labels:i,valueFormat:us(),lineSymbol:Oi({color:lu})}}function lr(){return{type:y.Legend,visible:!0,title:K({text:"",visible:!0,font:se(Z.LegendTitle)}),body:cu("",se(Z.LegendText)),position:pi.Right}}function Fa(t){return{type:y.Overlay,visible:!0,created:!1,symbol:Oi({useRampColor:{colorIndex:t},isHistogramOverlay:!0})}}function dr(){return[255,255,255,255]}function zt(t){return t.utilsStrings.chartType.chart}function Ut(){return`Chart ${Date.now()}`}function JS(t,e=!1){return{type:de.SFS,style:Et.Solid,color:e?Ba(Ge):ft({colorIndex:t??0,opacity:Ge})}}function Jy(t=0){return{type:de.SMS,style:At.Circle,color:ft({colorIndex:t,opacity:Ge}),size:5}}function Yy(t){return{type:de.SLS,style:Zt.Solid,color:ft({colorIndex:t,opacity:Ge}),width:2}}function Ky(t=!1){return{type:de.SMS,style:At.Circle,color:t?Ba(Ge):ft({colorIndex:0,opacity:Ge}),size:7}}function YS(){return{type:y.SizePolicy,field:"",scaleType:_s.Linear,minSize:5,maxSize:30}}function Xy(t=!1){return{type:y.Overlays,trendLine:{type:y.Overlay,created:!1,visible:!0,symbol:{type:de.SLS,style:Zt.Solid,color:t?Ba():ft({colorIndex:1}),width:2}}}}function eg(t,e){let i=t.countSeries;return{type:y.HeatSeries,id:i,name:i,y:"",x:"",dataLabels:K({text:"",visible:!1,font:se(Z.DataLabels)}),query:{outStatistics:[{statisticType:pe.Count,onStatisticField:e??"ObjectID",outStatisticFieldName:`${pe.Count}_${e}_0`.toUpperCase()}],groupByFieldsForStatistics:[]},emptyCells:{symbol:{type:de.SFS,style:Et.Solid,color:Aa},text:t.utilsStrings.null}}}function tg(){return{type:y.ScatterSeries,id:y.ScatterSeries,name:y.ScatterSeries,x:"",y:"",markerSymbol:Ky(),overlays:Xy(),dataLabels:K({text:"",visible:!1,font:se(Z.DataLabels)})}}function Er(t,e){let i=[],a=t.xAxis,r=t.utilsStrings.statistics.count,n,s,o=Oi({opacity:Uy});switch(e===y.HeatSeries?s=os(r):(s=Ea(r),s.grid=o),e){case y.BarSeries:case y.HeatSeries:{n=os(a);break}case y.ScatterSeries:{n=Ea(a),n.grid=o;break}case y.RadarSeries:case y.LineSeries:case y.HistogramSeries:{n=Ea(a);break}case y.BoxPlotSeries:{n=os("");break}}return n!==void 0&&i.push(n,s),i}function rg(){return{type:y.GaugeNeedle,symbol:{type:de.SFS,color:[0,0,0,200]}}}function ig(t){let e=[],i=t.xAxis,a=Ea(i);return a.needle=rg(),e.push(a),e}function ag(t){let e=t.commonStrings,i=t.objectIDField??"ObjectID",a=`${pe.Count}_${i}_0`.toUpperCase(),r=e.countSeries;return{type:y.LineSeries,id:r,name:r,query:{outStatistics:[{statisticType:pe.Count,onStatisticField:i,outStatisticFieldName:a}],groupByFieldsForStatistics:[]},x:"",y:a,lineSymbol:Yy(t.seriesIndex),markerSymbol:Jy(t.seriesIndex),dataLabels:K({text:"",visible:!1,font:se(Z.DataLabels)}),temporalBinning:{unit:Ce.Day,size:0,timeAggregationType:Wr.Start,trimIncompleteTimeInterval:!0,nullPolicy:Ri.Interpolate}}}function KS(t){return{...ag(t),type:y.RadarSeries}}function ng(t){return{type:de.SFS,style:Et.Solid,color:ft({colorIndex:t,opacity:Ge})}}function XS(t){let e=t.objectIDField??"*",i=t.commonStrings,a=`${pe.Count}_Y_0`.toUpperCase(),r=i.countSeries;return{type:y.BarSeries,id:r,name:r,query:{outStatistics:[{statisticType:pe.Count,onStatisticField:e,outStatisticFieldName:a}],groupByFieldsForStatistics:[]},x:"",y:a,fillSymbol:ng(t.seriesIndex),dataLabels:K({text:"",visible:!1,font:se(Z.DataLabels),type:Z.DataLabels})}}function ew(t,e){let i=t.countSeries;return{name:i,type:y.BoxPlotSeries,id:i,fillSymbol:{type:de.SFS,style:Et.Solid,color:ft({colorIndex:e,opacity:Ge})},query:{},x:ka,y:""}}function sg(){return{type:y.PieTick,visible:!0,lineSymbol:Oi({width:1,color:Hy})}}function og(){return{type:de.SFS,style:Et.Solid}}function tw(t,e){let i=`${pe.Count}_${e}_0`.toUpperCase(),a=t.countSeries;return{type:y.PieSeries,id:a,name:a,query:{outStatistics:[{statisticType:pe.Count,onStatisticField:e??"ObjectID",outStatisticFieldName:i}],groupByFieldsForStatistics:[]},x:"",y:i,fillSymbol:og(),dataLabels:K({text:"",visible:!1,font:se(Z.DataLabels),type:Z.DataLabels}),startAngle:-90,endAngle:270,dataLabelsCharacterLimit:11,displayCategoryOnDataLabel:!0,displayNumericValueOnDataLabel:!1,displayPercentageOnDataLabel:!0,numericValueFormat:{...us(),intlOptions:{minimumFractionDigits:1,maximumFractionDigits:1}},percentValueFormat:{...us(),intlOptions:{minimumFractionDigits:1,maximumFractionDigits:1}},ticks:sg()}}function rw(t){let e=t.objectIDField??"ObjectID",i=`${pe.Count}_${e}_0`.toUpperCase(),a="Series0";return{type:y.GaugeSeries,id:a,name:a,query:{outStatistics:[{statisticType:pe.Count,onStatisticField:e,outStatisticFieldName:i}]},x:""}}function Ti(){return!1}function iw(t,e=Ut()){return{version:Vt,type:y.Chart,id:e,colorMatch:!0,rotated:Ti(),orderOptions:{data:{orderType:et.Category,orderBy:ke.Ascending}},title:K({text:zt(t),visible:!0,font:se(Z.ChartTitle)}),subtitle:K(),footer:K({text:"",visible:!0,font:se(Z.DescriptionText)}),background:dr(),axes:Er(t,y.BarSeries),series:[],legend:lr()}}function aw(t,e=Ut()){return{version:Vt,type:y.Chart,id:e,rotated:Ti(),colorMatch:!0,orderOptions:{data:{orderType:et.Category,orderBy:ke.Ascending}},title:K({text:zt(t),visible:!0,font:se(Z.ChartTitle)}),subtitle:K(),footer:K({text:"",visible:!0,font:se(Z.DescriptionText)}),background:dr(),series:[],legend:lr(),axes:Er(t,y.BoxPlotSeries),standardizeValues:!0,showOutliers:!1}}function nw(t,e=Ut()){return{version:Vt,type:y.Chart,id:e,colorMatch:!0,rotated:Ti(),orderOptions:{data:{orderType:et.Category,orderBy:ke.Ascending}},title:K({text:zt(t),visible:!0,font:se(Z.ChartTitle)}),subtitle:K(),footer:K({text:"",visible:!0,font:se(Z.DescriptionText)}),background:dr(),axes:Er(t,y.LineSeries),series:[],legend:lr()}}function sw(t,e=Ut()){return{version:Vt,type:y.Chart,id:e,colorMatch:!0,orderOptions:{data:{orderType:et.Category,orderBy:ke.Ascending}},title:K({text:zt(t),visible:!0,font:se(Z.ChartTitle)}),subtitle:K(),footer:K({text:"",visible:!0,font:se(Z.DescriptionText)}),background:dr(),axes:Er(t,y.RadarSeries),series:[],legend:lr()}}function ow(t,e=Ut()){return{version:Vt,type:y.Chart,id:e,colorMatch:!0,orderOptions:{data:{orderType:et.YValue,orderBy:ke.Descending}},title:K({text:zt(t),visible:!0,font:se(Z.ChartTitle)}),subtitle:K(),footer:K({text:"",visible:!0,font:se(Z.DescriptionText)}),background:dr(),series:[],legend:{...lr(),displayNumericValue:!1,displayPercentage:!0}}}function lw(t,e=Ut()){return{version:Vt,type:y.Chart,id:e,colorMatch:!0,title:K({text:zt(t),visible:!0,font:se(Z.ChartTitle)}),series:[],axes:ig(t)}}function dw(t,e=Ut()){return{version:Vt,type:y.Chart,id:e,colorMatch:!0,title:K({text:zt(t),visible:!0,font:se(Z.ChartTitle)}),subtitle:K(),footer:K({text:"",visible:!0,font:se(Z.DescriptionText)}),background:dr(),axes:Er(t,y.ScatterSeries),series:[tg()],legend:lr()}}function cw(t,e){return{version:Vt,type:y.Chart,id:Ut(),title:K({text:zt(t),visible:!0,font:se(Z.ChartTitle)}),background:dr(),axes:Er(t,y.HeatSeries),series:[eg(t,e)],legend:{...lr(),position:pi.Bottom}}}function lg(){return{type:y.Overlays,mean:Fa(1),median:Fa(2),standardDeviation:Fa(3),comparisonDistribution:Fa(4)}}function dg(){return{type:de.SFS,style:Et.Solid,color:ft({colorIndex:0,opacity:Ge})}}function cg(){return{type:y.HistogramSeries,id:y.HistogramSeries,name:y.HistogramSeries,visible:!0,dataTooltipVisible:!0,dataTooltipReverseColor:!1,assignToSecondValueAxis:!1,x:"",binCount:32,overlays:lg(),dataTransformationType:ot.None,fillSymbol:dg(),dataLabels:K({text:"",visible:!1,font:se(Z.DataLabels)})}}function uw(t,e=Ut()){return{version:Vt,type:y.Chart,id:e,colorMatch:!0,title:K({text:zt(t),visible:!0,font:se(Z.ChartTitle)}),subtitle:K(),footer:K({text:"",visible:!0,font:se(Z.DescriptionText)}),background:dr(),axes:Er(t,y.HistogramSeries),series:[cg()],legend:lr()}}var ls={behaviorAfterLimit:bs.Reject,maxCategoryCount:Number.NaN,maxBarChartSeriesCount:100,maxBarUniqueSeriesCountTotal:1e4,maxBarTwoSeriesCountPerSeries:1e3,maxBarTwoSeriesCountTotal:2e3,maxBarThreePlusSeriesCountPerSeries:100,maxBarThreePlusSeriesCountTotal:2e3,maxScatterPointsBeforeAggregation:1e4,maxScatterPointsAfterAggregation:1e4,maxLineChartSeriesCount:100,maxLineUniqueSeriesCountTotal:1e4,maxLineTwoSeriesCountPerSeries:5e3,maxLineTwoSeriesCountTotal:1e4,maxLineThreePlusSeriesCountPerSeries:1e3,maxLineThreePlusSeriesCountTotal:1e4,maxPieChartSliceCountTotal:300,maxGaugeByFeaturesLimit:50,maxBoxPlotSeriesCount:100,maxBoxUniqueSeriesCountTotal:1e4,maxBoxTwoSeriesCountPerSeries:1e3,maxBoxTwoSeriesCountTotal:2e3,maxBoxThreePlusSeriesCountPerSeries:100,maxBoxThreePlusSeriesCountTotal:2e3,maxBoxPlotOutlierLimit:1e4,maxHeatChartCellLimit:1e4};function vs(t){let e={...ls};return t!==void 0&&Object.keys(ls).forEach(i=>{let a=i;e[a]=t[a]??ls[a]}),e}function pw(){return{maxScatterCellsPerQuery:500,maxScatterCellsPerQueryForStandard:175,maxElementsPerSelectionQuery:25,maxOIDsPerSelectionQuery:2e3,maxOperandsPerWhereClause:50}}function fw(t,e){let i;switch(t){case pe.Average:{i=e.utilsStrings.statistics.mean;break}case pe.ContinuousPercentile:{i=e.utilsStrings.statistics.median;break}case pe.Sum:{i=e.utilsStrings.statistics.sum;break}case pe.Minimum:{i=e.utilsStrings.statistics.minimum;break}case pe.Maximum:{i=e.utilsStrings.statistics.maximum;break}case pe.Variance:{i=e.utilsStrings.statistics.variance;break}case pe.DiscretePercentile:{i=e.utilsStrings.statistics.discretePercentile;break}case pe.NoAggregation:{i=e.utilsStrings.statistics.noAggregation;break}case pe.Count:default:{i=e.utilsStrings.statistics.count;break}}return i}function hw(t,e){let i;switch(t){case Wr.End:{i=e.timeAggregationTypes.end;break}case Wr.Start:{i=e.timeAggregationTypes.start;break}default:i="";break}return i}function ug(){return Xe.Side}function mw(t){return t.utilsStrings.notAvailable}var pg=0,fg="_arcgis_charts_outliers",hg="_arcgis_charts_z_score",yw=[210,210,210,255*Ge],gw=" percentage ";var j={aria:{defaultChartItemRole:"figure"},title:{marginBottom:8,wrap:!0},subtitle:{marginBottom:10,wrap:!0},rotated:!1,legendProperties:{legendLabels:{marginLeft:5,marginRight:5,truncate:!1,applyOnClones:!0,wrap:!0,maxWidth:200},valueLabels:{wrap:!0,maxWidth:200},legendTitle:{wrap:!0,maxWidth:220,marginLeft:10,marginRight:10,marginTop:10},legendMarkersSize:14,legendLabelReducedOpacity:.5,rectangleMarkerRadius:3,roundedMarkerRadius:12,legendPaddingRightWithScrollbarVisible:10,maxHeight:100,marginTop:2,marginBottom:2,marginLeft:0,marginRight:0,paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0,position:pi.Right},footer:{wrap:!0,horizontalCenter:oe.Center,verticalCenter:be.Middle,align:oe.Center},axisLabel:{rotation:0,align:oe.Center,horizontalCenter:oe.Center,verticalCenter:be.Top,dy:5,paddingTop:5,paddingRight:5,paddingLeft:5,maxWidth:Number.NaN},axisTickLength:5,rotatedAxisLabel:{rotation:-45,horizontalCenter:oe.Left,verticalCenter:be.Bottom,dy:6,paddingTop:5,paddingLeft:0,paddingRight:5},histogramAxisLabel:{rotation:0,horizontalCenter:oe.Center,verticalCenter:be.Middle,dy:0,dx:0,paddingLeft:3,paddingRight:3},xAxisTitleLabel:{align:oe.Center,valign:be.Middle,rotation:0,fontSize:10,wrap:!0},yAxisTitleLabel:{align:oe.Center,valign:be.Middle,rotation:270,wrap:!0},titleLabel:{align:oe.Center,wrap:!0},subtitleLabel:{align:oe.Center,wrap:!0},horizontalSurfaceGuideLabels:{horizontalCenter:oe.Right,align:oe.Right,verticalCenter:be.Middle,wrap:!0},horizontalLineGuideLabels:{horizontalCenter:oe.Right,align:oe.Right,verticalCenter:be.Top,wrap:!0},verticalSurfaceGuideLabels:{horizontalCenter:oe.Center,verticalCenter:be.Top,valign:be.Top},verticalLineGuideLabels:{horizontalCenter:oe.Right,verticalCenter:be.Bottom,valign:be.Top,wrap:!0,rotation:90},guideAbove:!1,cursorCrosshair:{style:{type:de.SLS,style:Zt.Dash,color:[0,0,0,102],width:1},horizontalLineVisible:!1,verticalLineVisible:!1},gauge:{innerRadius:80,radius:80,startAngle:-180,endAngle:180,innerLabelToInnerChartRatio:.5,axisLabelToInnerChartRatio:.13,innerLabelAutoMinFontSize:14,innerLabelAutoMaxFontSize:100,axisLabelAutoMinFontSize:14,axisLabelAutoMaxFontSize:40,gaugeMinGridDistance:1,axisMinimum:0,axisMaximum:100,numberOfLabelIntervals:5,numberOfTicksBetweenTwoLabels:4,maximumNumberOfLabelIntervals:24,paddingTop:10,paddingBottom:10,paddingRight:5,paddingLeft:5},gaugeTicksLength:7,gaugeInnerLabel:{horizontalCenter:oe.Center,verticalCenter:be.Middle},gaugeNeedle:{startWidth:10,endWidth:1,innerRadius:25,displayPin:!1},gaugeFirstLabelId:"arcgis_charts_gauge_first_label",gaugeLastLabelId:"arcgis_charts_gauge_last_label",headerContainer:{layout:"vertical",width:"100%",paddingBottom:5},footerContainer:{layout:"vertical",width:"100%",paddingTop:5,paddingBottom:15},paddingMinSize:0,marginMinSize:0,chartPaddingMinSize:7,chartPaddingRightWhenLegendNotOnRight:15,chartAndLegendContainer:{paddingTop:0},chartContainer:{paddingBottom:0,paddingTop:15},chartContainerPaddingTopWhenRotated:5,dataLabelInitialize:{strokeWidth:0,applyOnClones:!0},dataLabel:{align:oe.Center,horizontalCenter:oe.Center,valign:be.Bottom,verticalCenter:be.Top,dy:-3},dataLabelRotated:{align:oe.Right,horizontalCenter:oe.Right,valign:be.Middle,verticalCenter:be.Middle,dx:2},dataLabelStackedRotated:{align:oe.Center,horizontalCenter:oe.Center,valign:be.Middle,verticalCenter:be.Middle},dataLabelStackedNonRotated:{align:oe.Center,horizontalCenter:oe.Center,valign:be.Middle,verticalCenter:be.Middle},dataLabelNegative:{paddingTop:5,paddingRight:5},rotatedChartPadding:{paddingTop:2,paddingRight:2},scatterplotSeries:{strokeOpacity:0,r2:Number.NaN,trendLinePoints:[{},{}]},histogramSeries:{normalDistribNumberOfPoints:100},lineSeries:{strokeWidth:2,lineSmoothed:!1,lineSmoothedKind:qs.Bezier,showArea:!1,areaOpacity:.25,markerVisible:!0,rotated:!1,stackedType:Xe.Side,stackNegativeValuesToBaseline:!0,marker:{markerBigSize:7,markerSizeThresholdForTooltipDisplay:5,markerStyle:At.Circle}},buffer:!1,treatZeroValueAs:1e-4,elementLimitForSmoothRendering:1e3,defaultStatParameterValue:.5,pieChart:{dataLabels:{maxWidth:100,wrap:!1},dataLabelsOffset:10,dataLabelsInside:!1,chartRadius:80,chartOptimizedRadius:70,innerRadius:pg,min:-90,max:270,displayCategoryOnLegend:!0,displayCategoryOnTooltip:!0,displayCategoryOnDataLabel:!0,displayNumericValueOnLegend:!1,displayNumericValueOnDataLabel:!0,displayNumericValueOnTooltip:!0,displayPercentageOnLegend:!1,displayPercentageOnDataLabel:!1,displayPercentageOnTooltip:!0,sliceGrouping:{sliceId:$a.defaultGroupOfSlicesId,percentageThreshold:0,fillSymbol:{type:de.SFS,color:[210,210,210,255*Ge]}},defaultPadding:0,alignDataLabels:!1,ticksOpacity:1,minimumSize:20,technicalFieldSliceId:"arcgis_charts_slice_id",technicalFieldSlicePercent:"arcgis_charts_slice_percent",technicalFieldGroupedSlices:"arcgis_charts_grouped_slices"},pieSliceCustomLabelName:"customLabel",yAxisLabelMaxWidth:100,xAxisLabelMaxWidth:75,axisLabelPadding:1.5,categoryAxisLabelPadding:3,seriesSort:ke.Ascending,technicalSortingFieldBySum:"arcgis_charts_category_sum",technicalSortingFieldByPercent:"arcgis_charts_category_first_series_percent",technicalFieldSplitByField:"arcgis_charts_split_by_field",color:[0,0,0,255],chartEllipsis:"...",backgroundColor:[255,255,255,255],grayColor:Aa,xAxisMinGridDistance:120,xCategoryAxisMinGridDistance:40,yAxisMinGridDistance:40,yCategoryAxisMinGridDistance:20,secondRotatedValueAxisMinGridDistance:80,staggerMinGridDistance:40,shortestMinGridDistance:20,maxNumberOfXAxisLabelsInWrapModeForDateAxis:15,maxNumberOfXAxisLabelsInWrapMode:20,lineWidth:1,loaderRotationSpeed:400,loaderIntervalTimeout:400,loaderLabelFontSize:20,selectionTheme:{selectedElementsTheme:{elementOutlineColor:[0,255,255,255],elementOutlineWidth:5}},columnTooltipPosition:"pointer",guideTooltipPosition:"pointer",markerTooltipPosition:"fixed",sliceTooltipPosition:"fixed",patternLineProperties:{width:5,height:5,strokeWidth:1,tileSize:50,diagonalTileSize:1200},patternRectProperties:{rectWidth:9,rectHeight:9,width:10,height:10,strokeWidth:.3,fillOpacity:0},originalCategoryValue:"arcgis_charts_original_category_value",originalYCategoryValue:"arcgis_charts_original_category_y_value",originalDateValue:"arcgis_charts_original_date_value",dateBinningRange:"arcgis_charts_bin_range",originalServerBinningRange:"arcgis_charts_server_bin_range",dateBinModel:"arcgis_charts_bin_model",xAxisField:"arcgis_charts_axis_field",nullValue:"arcgis_charts_null",queryMaxFloatPrecision:10,dateFormatUTC:{timeZone:"UTC",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1},dayDefaultFormat:{day:"numeric",month:"short"},weekDefaultFormat:{day:"numeric",month:"short"},rendererOtherValue:"arcgisChartsrendererOtherValue",rendererSymbolField:"arcgis_charts_renderer_symbol",scatterplotAggregationFields:{dataContextXMinField:"arcgis_charts_xmin",dataContextXMaxField:"arcgis_charts_xmax",dataContextYMinField:"arcgis_charts_ymin",dataContextYMaxField:"arcgis_charts_ymax",dataContextCountDistinctX:"distinctX",dataContextCountDistinctY:"distinctY",queryNumberOfFeatures:"numberOfFeatures",queryNumberOfAggregatedFeatures:"numberOfAggregatedFeatures",xStep:"xStep",yStep:"yStep",rowCount:"rowCount",columnCount:"columnCount",realGridSize:"realGridSize"},dataTooltipVisible:!0,dataTooltipStyle:{outline:{type:de.SLS,color:[255,255,255,255],width:1}},dataTooltipStyleReversed:{color:[255,255,255,255],outline:{type:de.SLS,width:3}},tooltipWidth:300,axisLabelOveredOpacity:.5,generalFontSize:10,actionMode:Vy.MultiSelectionWithCtrlKey,debounceTime:100,chartDefaultPaddingRight:0,htmlEmptyContent:"<p></p>",boxPlot:{boxPlotCategory:"arcgis_charts_box_plot_category",boxPlotOutliersSuffix:"_arcgis_charts_outliers",boxPlotOutliersVisibility:!1,boxPlotStandardizeValuesVisibility:!1,boxPlotOutliersSize:4,boxPlotLineWidth:2,boxPlotOutlierId:"is_arcgis_charts_outlier",boxPlotMeanLineMarkerId:"is_arcgis_charts_mean_marker",boxPlotWhiskersColor:[153,153,153,178.5],boxPlotTooltipLabelWidth:250},binTemporalData:!0,lastTemporalBin:"is_arcgis_charts_last_bin",options:{hideEmptySeries:!0,replaceNoValueCategoryWithZero:!0,autoInverseDataLabelTextColor:!1},nullCategory:{text:"null",symbol:{type:de.SFS,color:Aa,outline:{type:de.SLS,style:Zt.Solid,color:Aa,width:1}}},classBreaks:{breaksCount:5}},Dr={LegendItemVisibilityChange:"arcgisChartsJSLegendItemVisibilityChange",RenderingComplete:"arcgisChartsJSRenderingComplete",SeriesColorsChange:"arcgisChartsJSSeriesColorChange",AxesMinMaxChange:"arcgisChartsJSAxesMinMaxChange",SelectionComplete:"arcgisChartsJSSelectionComplete",TooManySelectedElements:"arcgisChartsJSTooManySelectedElements",SeriesOrder:"arcgisChartsJSSeriesOrder"};function Lr(t){return{detail:t,composed:!0,cancelable:!0,bubbles:!0}}function bw(t,e){e&&e.dispatchEvent(new window.CustomEvent(Dr.LegendItemVisibilityChange,Lr(t)))}function vw(t){t&&t.dispatchEvent(new window.CustomEvent(Dr.RenderingComplete,Lr()))}function Sw(t){let{data:e,htmlContainer:i}=t;i&&i.dispatchEvent(new window.CustomEvent(Dr.SelectionComplete,Lr(e)))}function ww(t){t&&t.dispatchEvent(new window.CustomEvent(Dr.TooManySelectedElements,Lr()))}function Iw(t){let{data:e,htmlContainer:i,chartId:a,colorMatchApplied:r}=t;i&&i.dispatchEvent(new window.CustomEvent(Dr.SeriesColorsChange,Lr({chartId:a,data:e,colorMatchApplied:r})))}function Cw(t,e){e&&e.dispatchEvent(new window.CustomEvent(Dr.AxesMinMaxChange,Lr(t)))}function mg(t){let{data:e,htmlContainer:i}=t;i&&e&&i.dispatchEvent(new window.CustomEvent(Dr.SeriesOrder,Lr(e)))}function yg(t){return t!==void 0&&t!==Et.Solid&&t!==Et.Null}function xw(t,e){let i="",a=(e??0)/2,r=0-a,n=0+a,s=0-a,o=0+a;switch(t){case At.Circle:i=`M ${r},0 a ${a},${a} 0 1,0 ${a*2},0 a ${a},${a} 0 1,0 ${-a*2},0`;break;case At.Cross:i=`M ${r},0 L ${n},0 M 0,${s} L 0,${o} E`;break;case At.Diamond:i=`M ${r},0 L 0,${s} L ${n},0 L 0,${o} L ${r},0 Z`;break;case At.Square:i=`M ${r},${o} L ${r},${s} L ${n},${s} L ${n},${o} L ${r},${o} Z`;break;case At.Triangle:i=`M ${r},${o} L 0,${s} L ${n},${o} L ${r},${o} Z`;break;case At.X:i=`M ${r},${o} L ${n},${s} M ${r},${s} L ${n},${o} E`;break}return i}function uu(t){return t?.[$a.defaultGroupOfSlicesId]===!0}function Tw(t,e){let i=t?.filter(a=>!uu(a));return!yr(i,e)}var ri={...j,titleAndSubtitlePaddingBottom:5,chartPadding:5,footerContainer:{...j.footerContainer,paddingTop:0,paddingBottom:0},headerContainer:{...j.headerContainer,paddingBottom:18},chartContainer:{...j.chartContainer},dataLabel:{...j.dataLabel,verticalCenter:"bottom"},scrollbarPadding:12,zIndexes:{guide:100,scatterplotTrendLine:2,bulletMarkers:1,axisLineLayer:30},verticalSurfaceGuideLabels:{wrap:!0},verticalLineGuideLabels:{wrap:!0,rotation:90},horizontalSurfaceGuideLabels:{wrap:!0},horizontalLineGuideLabels:{wrap:!0},overlayId:{scatterplotTrendLine:"arcgis_charts_scatter_plot_trendline",histogramMean:"arcgis_charts_histogram_mean",histogramMedian:"arcgis_charts_histogram_median",histogramStdDev:"arcgis_charts_histogram_std_dev",histogramNormalDistribution:"arcgis_charts_histogram_normal_distribution"},axisLabelSpacing:{verticalAxisLabelSidePadding:8,horizontalAxisLabelPaddingTop:6},legendPadding:20,heatChart:{gradientHeatRules:{minColor:[255,255,200,255],maxColor:[255,0,0,255],outsideRangeLowerColor:[250,250,250,255],outsideRangeUpperColor:[0,0,255,255]},legend:{position:pi.Bottom,chartPadding:40,legendPadding:20,width:70,bottomHeight:20,topHeight:50,titleHeight:10,titlePadding:10,minMaxLabelPadding:3},emptyCells:{symbol:{type:de.SFS,style:Et.Solid,color:j.grayColor},text:"null"},includeLeapDay:!1},heatChartLabelPadding:{paddingTop:2},heatChartFirstDayOfWeek:7,pieChartDataLabel:{minWidth:30},focusableThreshold:500};function Fw(t){let e;return t?.[0]!==void 0&&(e=t.reduce((i,a)=>({...i,xmin:Math.min(i.xmin,a.xmin),xmax:Math.max(i.xmax,a.xmax),ymin:Math.min(i.ymin,a.ymin),ymax:Math.max(i.ymax,a.ymax)}),t[0])),e}function Hc(t){let{value:e,dataContext:i,specificField:a,keepNullValues:r=!1,useRendererLabel:n=!1,config:s}=t,o=e,{originalCategoryValue:l,originalDateValue:d}=j;if(i!==void 0){let c=n?Pg(i):void 0;a!==void 0&&i[a]!==void 0?o=i[a]:c!==void 0?o=c:i[d]!==void 0?o=i[d]:i[l]!==void 0?o=i[l]:i[Lt]!==void 0&&(o=i[Lt]),!r&&o===null&&(o="null",s?.series?.[0].type===y.BarSeries&&(o=s.series?.[0]?.nullCategory?.text??ri.nullCategory?.text??o))}return o}function gg(t){return t?.[j.originalCategoryValue]}function bg(t){let{arrayToSort:e,orderBy:i,sortingField:a,forceAscendingOrder:r,isNonAggregated:n,sortByCategory:s,preferLabel:o,isPieOrByFieldsChart:l}=t;if(e!==void 0&&e.length>1){let d=i===ke.Descending&&r!==!0;e.sort((c,u)=>{let f=0,p=c[a];s===!0&&!l&&(p=Hc({value:`${c[a]?.toString()}`,dataContext:c,specificField:o?j.xAxisField:void 0}));let h=u[a];return s===!0&&!l&&(h=Hc({value:`${u[a]?.toString()}`,dataContext:u,specificField:o?j.xAxisField:void 0})),n===!0&&d&&s===!0&&(p=Number.isNaN(Number.parseFloat(`${p?.toString()}`))?p:Number.parseFloat(p),h=Number.isNaN(Number.parseFloat(`${h?.toString()}`))?h:Number.parseFloat(h)),s===!0&&(c[j.originalCategoryValue]===null||p===null)||c[$a.defaultGroupOfSlicesId]===!0?f=1:s===!0&&(u[j.originalCategoryValue]===null||h===null)||u[$a.defaultGroupOfSlicesId]===!0?f=-1:typeof p=="string"&&typeof h=="string"?(f=p.localeCompare(h,void 0,{numeric:!0}),d&&(f*=-1)):p===void 0?f=d?-1:1:h===void 0?f=d?1:-1:p!==null&&h!==null&&(p>h?f=d?-1:1:p<h&&(f=d?1:-1)),f})}}function Ow(t){let{arrayToSort:e,orderBy:i,sortingField:a,fieldList:r,isByFieldsChart:n,preferLabel:s}=t;e!==void 0&&e.length>1&&!Tt(a)&&i!==void 0&&i.length>0&&e.sort((o,l)=>{let d=o[a];s&&n&&typeof d=="string"&&(d=ps(r,d));let c=i.indexOf(d?.toString()??"");c===-1&&(c=i.length);let u=l[a];s&&n&&typeof u=="string"&&(u=ps(r,u));let f=i.indexOf(u?.toString()??"");return f===-1&&(f=i.length),c-f})}function vg(t){let{statsMap:e,dataContext:i,chartLimits:a}=t,r=!1;if(e!==void 0){let{maxScatterPointsBeforeAggregation:n}=vs(a),{queryNumberOfFeatures:s}=j.scatterplotAggregationFields;r=(e.get(s)??Number.NaN)>=n}else i!==void 0&&(r=j.scatterplotAggregationFields.dataContextXMinField in i);return r}function Sg(t){let e=!0,i=J(t.series);if(i===y.BarSeries||i===y.LineSeries||i===y.ComboLineAndBarSeries){let a=Oe(t.series);e=a!==F.BarAndLineNoAggregation&&a!==F.BarAndLineSplitByNoAggregation}return e}function wg(t){return Oe(t.series)!==F.PieNoAggregation}function Pw(t){let{dataContext:e,chartConfig:i,chartLimits:a}=t,r=!0;if(i!==void 0)switch(J(i.series)){case y.BarSeries:case y.LineSeries:case y.ComboLineAndBarSeries:r=Sg(i);break;case y.ScatterSeries:r=vg({dataContext:e,chartLimits:a});break;case y.PieSeries:r=wg(i);break}return r}function Aw(t,e){let i=t;switch(e){case ot.Log:i=`log(${t})`;break;case ot.Sqrt:i=`power(CAST(${t} AS FLOAT),0.5)`;break}return i}function Ew(t){let e=new Date(t).valueOf();return Number.isNaN(e)||(e=new Intl.DateTimeFormat("en-US",j.dateFormatUTC).format(t).replace(",","")),e}function Dw(t){let{dataToConvert:e,x:i,y:a,fieldList:r}=t,n=[];if(e){let s=e[ss];Object.entries(e).forEach(([o])=>{if(o!==""&&o!==ss&&o in e){let l={[i]:ps(r,o),[a]:e[o],[j.xAxisField]:o,[j.originalCategoryValue]:o};s!==void 0&&(l[ss]=s),e[`${j.rendererSymbolField}_${o}`]!==void 0&&(l[j.rendererSymbolField]=e[`${j.rendererSymbolField}_${o}`]),n.push(l)}})}return n}function Lw(t,e){let i=!0;if(t!==void 0&&t.length>1&&!Tt(e)){let a=0,r=0,n=0;t.forEach(s=>{let o=s[e];!Ug(o)||o===0?n+=1:o>0?a+=1:r+=1}),i=n===t.length||a>=0&&r===0||a===0&&r>=0}return i}function Oa(t){let{countTotal:e,countPerSeries:i,numberOfSeries:a}=t,r,n=[];return typeof e=="number"&&Number.isFinite(e)&&n.push(e),typeof i=="number"&&Number.isFinite(i)&&n.push(i*a),n.length>0&&(r=Math.min(...n)),r}function $w(t,e){let i,{maxBarChartSeriesCount:a,maxBarUniqueSeriesCountTotal:r,maxBarTwoSeriesCountPerSeries:n,maxBarTwoSeriesCountTotal:s,maxBarThreePlusSeriesCountPerSeries:o,maxBarThreePlusSeriesCountTotal:l,maxLineChartSeriesCount:d,maxLineUniqueSeriesCountTotal:c,maxLineTwoSeriesCountPerSeries:u,maxLineTwoSeriesCountTotal:f,maxLineThreePlusSeriesCountPerSeries:p,maxLineThreePlusSeriesCountTotal:h,maxPieChartSliceCountTotal:b,maxGaugeByFeaturesLimit:m}=vs(e),w=J(t.series),C=t.series.length===0?1:t.series.length,I=Oe(t.series);switch(w){case y.ComboLineAndBarSeries:case y.BarSeries:C<=a&&(C===1?i=r:C===2?i=Oa({countTotal:s,countPerSeries:n,numberOfSeries:C}):C>2&&(i=Oa({countTotal:l,countPerSeries:o,numberOfSeries:C})));break;case y.LineSeries:C<=d&&(C===1?i=c:C===2?i=Oa({countTotal:f,countPerSeries:u,numberOfSeries:C}):C>2&&(i=Oa({countTotal:h,countPerSeries:p,numberOfSeries:C})));break;case y.PieSeries:i=b;break;case y.GaugeSeries:i=m;break;case y.ScatterSeries:case y.HistogramSeries:case y.BoxPlotSeries:}return(I===F.BarAndLineNoAggregation||I===F.BarAndLineMultiFields)&&i!==void 0&&(i=Math.ceil(i/C)),i}function Nw(t,e){let i=t;if(Number.isFinite(t)){let{factor:a,offset:r}=e??{};Number.isFinite(a)&&(i*=a),Number.isFinite(r)&&(i+=r)}return i}function Ig(t){let e=!1;if(t!==void 0){let i=t.replace(" ",""),a=/^%(0*100{1,1}\.?((?:\.)0*)?$)|(^%0*\d{0,2}\.?((?:\.)\d*)?)$/u,r=/^(0*100{1,1}\.?((?:\.)0*)?%$)|(^0*\d{0,2}\.?((?:\.)\d*)?%)$/u;e=a.test(i)||r.test(i)}return e}function Rw(t){let e;if(Ig(t)){let i=/%(\d{1,3}(.\d+)?)$/u,a=/(\d{1,3}(.\d+)?)%$/u,r=t.replace(" ",""),n=i.exec(r)?.[1]??a.exec(r)?.[1];n!==void 0&&(e=Number(n))}return e}function Cg(t){let{stringToTruncate:e,characterLimit:i,ellipsis:a=j.chartEllipsis}=t,r=e;return typeof i=="number"&&Number.isFinite(i)&&i>0&&i<e.length&&(r=e.slice(0,i),r=`${r}${a}`),r}function Mw(t,e=":"){return t?`\u200F${e}`:`\u200E${e}`}function kw(t){return e=>{let i=typeof e!="string"?e?.toString()??"":e;return!Tt(i)&&i!==j.htmlEmptyContent&&(i=Cg({stringToTruncate:i,characterLimit:t})),i}}function xg(t){let e=/[[]/gu,i=/[\]]/gu,a=/[{]/gu,r=/[}]/gu,n=/[']/gu;return t=t.replace(e,"[["),t=t.replace(i,"]]"),t=t.replace(a,"{{"),t=t.replace(r,"}}"),t=t.replace(n,"''"),t}function Tg(t,e){let i="";return t!==void 0&&(i=`${e==="amChartsV5"?"fontStyle":"font-style"}:${t};`),i}function Fg(t,e){let i="";return t===!0&&(i=`${e==="amChartsV5"?"letterSpacing":"letter-spacing"}:1px;`),i}function Bw(t){let{textSymbol:e,placeholderString:i,format:a,axisLabelsBehavior:r,defaults:n}=t,s=Tg(e?.font?.style,a),o=Fg(e?.kerning,a),l=i??e?.text??"";if(a==="html"){let{wrap:d,maxWidth:c}=n??{};r===Ws.Wrap&&(d=!0,c=c??j.xAxisLabelMaxWidth);let u=d===!0&&Number.isFinite(c)?`max-width: ${c}px; word-break: break-word;`:"";l=`<p style="margin:0;${s}${o}${u}">${l}</p>`}else l=xg(l),(s!==""||o!=="")&&(l=`[${s}${o}]${l}[/]`);return l}function Og(t){return t?t.replace(/[A-Z]/gu,e=>`-${e.toLowerCase()}`):void 0}var qw=[y.BarSeries,y.BoxPlotSeries,y.LineSeries,y.PieSeries,y.HistogramSeries,y.ScatterSeries],Ww=1,jw={PNG:"png"},Gc={ChartRenderer:1,LayerRenderer:2};function _w(t){let{chartConfig:e,queryObject:i}=t,a=!1;if(e.chartRenderer)a=!0;else{let{series:r}=e,n=J(r),s=Oe(r),o=xs(e),l=Eu({seriesConfig:o,queryObject:i}),d=Se(i)?.renderer;switch(d?.type){case We.Simple:a=n===y.HistogramSeries||n===y.ScatterSeries||s===F.BarAndLineMonoField||s===F.BoxPlotMonoField||s===F.BoxPlotMultiFields||s===F.BoxPlotMonoFieldAndCategory||s===F.BarAndLineNoAggregation&&r.length===1&&!l;break;case We.UniqueValue:{let c=d?.field,u=Ai(o.query?.where),{x:f}=o;a=(s===F.BoxPlotMonoFieldAndSplitBy||s===F.BoxPlotMultiFieldsAndSplitBy||s===F.BoxPlotMonoFieldAndCategoryAndSplitBy||s===F.BarAndLineSplitByNoAggregation||s===F.BarAndLineSplitBy)&&c===u||(s===F.BoxPlotMonoFieldAndCategory||s===F.PieFromCategory||s===F.BarAndLineMonoField)&&c===f||s===F.BarAndLineNoAggregation||s===F.PieNoAggregation||n===y.ScatterSeries}break;case We.PieChart:a=s===F.PieFromFields||s===F.BarAndLineFromFields||s===F.BarAndLineMultiFields||s===F.BarAndLineMonoField||s===F.BoxPlotMonoField||s===F.BoxPlotMultiFields||s===F.BoxPlotMonoFieldAndCategory||s===F.BoxPlotMultiFieldsAndCategory;break;case We.ClassBreaks:a=n===y.HeatSeries||n===y.ScatterSeries||s===F.BarAndLineNoAggregation||s===F.PieNoAggregation;break;case We.Dictionary:case We.DotDensity:case We.Heatmap:break}}return a}function Vw(t,e){return Og(t?.type)??e?.type}function Pg(t){let e=j.rendererSymbolField,i=e in t?e:void 0;if(!i){let a=t[j.originalCategoryValue];i=Object.keys(t).find(r=>{let n=t[r];return r.includes(e)&&n?.label&&n?.uniqueValue===a}),i||(i=Object.keys(t).find(r=>r.includes(e))??"")}return t[i]?.label}function Ag(t){return t?.type!==void 0&&(t.color!==void 0||t.label!==void 0||t.style!==void 0||t.outline!==void 0)}function pu(t){let{symbolField:e,dataItem:i,rendererSymbol:a,rendererOrigin:r}=t,n=!1;if(!Ag(a))delete i[e];else{let s={...a};s.color!==void 0&&r===Gc.LayerRenderer&&(s.color[3]=Ge*255),r===Gc.LayerRenderer&&(delete s.style,delete s.outline,delete s.label),i[e]=s,n=!0}return n}function Eg(t){let{renderer:e,seriesConfig:i,chartSubType:a,dataItem:r,rendererOrigin:n}=t,s,o=!1,l=J(i),{outline:d,attributes:c}=e;return c.forEach(u=>{let{field:f}=u,{color:p,label:h}=u,b;Array.isArray(p)&&p?.length===4?b=p:p&&"toRgba"in p&&(b=p.toRgba());let m=!1,w=!0;switch(l){case y.BarSeries:case y.LineSeries:case y.ComboLineAndBarSeries:case y.RadarSeries:if(a!==F.BarAndLineFromFields){let C=i.find(I=>I.query?.outStatistics?.[0]?.onStatisticField===f);C!==void 0&&"y"in C?f=[C.y].flat()[0]:f=""}m=a!==F.BarAndLineFromFields||f===r[j.originalCategoryValue];break;case y.PieSeries:m=a===F.PieFromFields&&f===r[j.originalCategoryValue];break;case y.BoxPlotSeries:a===F.BoxPlotMonoField||a===F.BoxPlotMonoFieldAndCategory?m=f===i[0].y:f&&(a===F.BoxPlotMultiFields||a===F.BoxPlotMultiFieldsAndCategory)&&(m=i.map(C=>C.y).flat().includes(f)),w=!1;break}m&&b&&(s={type:de.SMS,color:b,label:w&&h?h:void 0},d!=null&&(s.outline=d),pu({dataItem:r,symbolField:a===F.BarAndLineFromFields||a===F.PieFromFields?j.rendererSymbolField:`${j.rendererSymbolField}_${f}`,rendererSymbol:s,rendererOrigin:n})&&(o=!0))}),{rendererSymbol:s,colorMatchApplied:o}}function Dg(t){let{seriesConfig:e,chartSubType:i,rendererType:a}=t,r=j.rendererSymbolField;if(a===We.UniqueValue){if(yu(i)){let n=ht({where:e.query?.where,keepSurroundingQuotes:!1,escape:!1});n===null?r=j.nullValue:i===F.BarAndLineSplitBy&&typeof e.y=="string"?r=e.y:i===F.BarAndLineSplitByNoAggregation&&typeof e.y=="string"?r=`${e.y}_${n}`:r=`${n}`}}else if(a===We.PieChart)switch(i){case F.BoxPlotMultiFields:r=Array.isArray(e.y)?e.y.flat():e.y;break;case F.BarAndLineMonoField:case F.BarAndLineMultiFields:case F.BoxPlotMonoField:case F.BoxPlotMonoFieldAndCategory:case F.BoxPlotMultiFieldsAndCategory:r=e.y;break}return r}function fu(t){let{seriesConfig:e,chartSubType:i,rendererType:a,dataItem:r}=t,n=Dg({seriesConfig:e,chartSubType:i,rendererType:a});return n instanceof Array&&e.type===y.BoxPlotSeries&&a===We.PieChart&&r!==void 0&&(n=n.find(s=>s===r[ka])??n[0]),n=n!==j.rendererSymbolField?`${j.rendererSymbolField}_${n.toString()}`:n,n}function zw(t){let{chartRenderer:e,queryObject:i}=t,a=e!==void 0?{...Se(i),renderer:ms.fromJSON(e)}:Se(i);return new yy({layer:a})}async function Uw(t){let{seriesConfig:e,dataItem:i,renderer:a,rendererType:r,rendererOrigin:n,chartSubType:s,splitByField:o,graphicTemplate:l,rendererFieldNames:d,mapAttributesToSymbol:c}=t,u,f=!1;if(r===We.PieChart){let p=Eg({renderer:a,seriesConfig:e,chartSubType:s,dataItem:i,rendererOrigin:n});u=p.rendererSymbol,f=p.colorMatchApplied}else if(!uu(i)){let{x:p}=e[0],h=new Map;o&&o.trim()!==""?e.forEach(b=>{if(b.type===y.BarSeries||b.type===y.LineSeries||b.type===y.BoxPlotSeries||b.type===y.RadarSeries){let m=fu({seriesConfig:b,chartSubType:s,rendererType:r,dataItem:i}),w=ht({where:b.query?.where,normalize:!0,keepSurroundingQuotes:!1,escape:!1});h.set(m,{...i,[o]:w})}}):e[0].type===y.HeatSeries&&r===We.ClassBreaks?h.set(j.rendererSymbolField,{[Or.valueField]:i[Or.valueField]}):h.set(j.rendererSymbolField,{...i,[p]:gg(i)});try{let b=Array.from(h.entries()),m=l.clone();m.layer=l.layer;let w=a?.uniqueValueInfos;for(let C=0;C<b.length;C+=1){let[I,O]=b[C];if(Qc({mode:"encode",x:p,splitByField:o,attributes:O}),d&&d.length>0&&Object.keys(O).forEach(P=>{d.includes(P)||delete O[P]}),m.attributes=O,c?.has(JSON.stringify(O)))u=c.get(JSON.stringify(O));else{if(u=(await ai.getDisplayedSymbol(m))?.toJSON(),u!=null){if(u.color===void 0){let A=(await ai.getDisplayedColor(m))?.toJSON();A&&(u.color=A.length===4?A:[...A,255])}let P=await ai.getLegendLabel(m);P!=null&&P!==""&&(u.label=P,u.uniqueValue=w?.find(A=>A.label===P)?.value??void 0)}c?.set(JSON.stringify(O),u)}Qc({mode:"revert",x:p,splitByField:o,attributes:i}),pu({dataItem:i,symbolField:I,rendererSymbol:u,rendererOrigin:n})&&(f=!0)}}catch{}}return{rendererSymbol:u,colorMatchApplied:f}}function Qc(t){let{splitByField:e,attributes:i,x:a,mode:r}=t;[a,e??""].forEach(n=>{i[n]===(r==="encode"?null:j.nullValue)&&(i[n]=r==="encode"?j.nullValue:null)})}function Lg(t){let{dataItem:e,seriesConfig:i,chartSubType:a,colorMatch:r,rendererType:n}=t,s;if(r&&e!==void 0){let o=fu({seriesConfig:i,chartSubType:a,rendererType:n,dataItem:e});s=e[o]}return s}function Hw(t){let{seriesSymbol:e,rendererSymbol:i,colorIndex:a}=t,r=i?.color??e.color;r=r??ft({colorIndex:a,opacity:Ge});let n={...e,color:r},s=n.type===de.SFS&&yg(n.style);return i?.type===e.type&&i.style!==void 0&&!s&&(n.style=i.style),n.type!==de.SLS&&(n.outline={type:de.SLS,style:i?.outline?.style??n.outline?.style,width:i?.outline?.width??n.outline?.width,color:i?.outline?.color??n.outline?.color??i?.color}),n}function $g(t){let e=[];return t&&(e=t.series.flatMap(i=>i.query?.outStatistics?.map(a=>a.onStatisticField)).filter(i=>i!==void 0),e.length===0&&(e=_t(t.series))),e}function Gw(t,e){let i=!1;if(t&&e&&e.length>0&&hu(t)){let a=Mg(t),r=xs(t);a?i=$g(t).some(n=>e.includes(n)):i=e.includes(r.x)}return i}function Qw(t){let e=[];if(t&&"type"in t&&typeof t.type=="string")switch(t.type){case"uniqueValue":case"unique-value":"field1"in t&&typeof t.field1=="string"&&(e=[t.field1]);break;case"classBreaks":case"class-breaks":"field"in t&&typeof t.field=="string"&&(e=[t.field]);break;case"pieChart":case"pie-chart":"attributes"in t&&Array.isArray(t.attributes)&&(e=t.attributes.map(i=>i.field));break}return e}function Na(t){return J(t?.series)===y.HeatSeries}function Pr(t){return J(t?.series)===y.BoxPlotSeries}function Ng(t,e){return t[0].dataTransformationType!==e[0].dataTransformationType}function Rg(t,e){return t[0].binCount!==e[0].binCount}function Zw(t,e){let i=!0,a=J(t?.series),r=J(e?.series);return a&&a!==r&&(i=a===y.ComboLineAndBarSeries&&(r===y.BarSeries||r===y.LineSeries)||r===y.ComboLineAndBarSeries&&(a===y.BarSeries||a===y.LineSeries)||a===y.BarSeries&&r===y.LineSeries||a===y.LineSeries&&r===y.BarSeries),i}function Zc(t,e){return t!==void 0&&e!==void 0&&e>0}function Jw(t){let{chartConfig:e,queryObject:i,chartData:a}=t,r=[],n=Oe(e.series),s=hu(e),o=Se(i),l=e.chartRenderer??o?.renderer?.toJSON();return r=e.series.map((d,c)=>{let u=J([d]),f;return(u===y.BarSeries||u===y.LineSeries||u===y.RadarSeries)&&(d.type===y.BarSeries?f=d.fillSymbol?.color:(d.type===y.RadarSeries||d.type===y.LineSeries)&&(f=d.lineSymbol?.color),s?f=Lg({dataItem:a[0],seriesConfig:d,chartSubType:n,colorMatch:s,rendererType:l?.type})?.color:f===void 0&&(f=ft({colorIndex:c}))),f}).filter(d=>d!==void 0),r}function Yw(t){return t!==F.PieNoAggregation&&t!==F.BarAndLineNoAggregation&&t!==F.BarAndLineSplitByNoAggregation}function Mg(t){let e=Oe(t.series);return e===F.BarAndLineFromFields||e===F.PieFromFields||e===F.BoxPlotMonoField||e===F.BoxPlotMultiFields||e===F.BoxPlotMonoFieldAndSplitBy||e===F.BoxPlotMultiFieldsAndSplitBy}function Jc(t){return Pr(t)?t?.showMean??!1:!1}function Kw(t){return Pr(t)?t?.showOutliers:void 0}function Xw(){return`{name} {${j.originalCategoryValue}} {dateY} {valueX} {dateX} {valueY}`}var he={Min:"min",FirstQuartile:"first_quartile",Median:"median",ThirdQuartile:"third_quartile",Max:"max",IQR:"iqr",Average:"avg",StandardDeviation:"stddev",Outlier:"outlier"},ze=class extends Error{constructor(e,i,a){super(i),this.name=e,this.details=a}},Qe={Default:"defaultError",LayerLoadFailure:"layerLoadFailure",QueryFeaturesError:"queryFeaturesError",ChartDisposed:"ChartDisposeError",LayerFieldsNotFound:"layerFieldsNotFound",LayerNotSupported:"layerNotSupported"},F={NonSpecific:"nonSpecific",BarAndLineNoAggregation:"barAndLineNoAggregation",BarAndLineMonoField:"barAndLineMonoField",BarAndLineMultiFields:"barAndLineMultiFields",BarAndLineFromFields:"barAndLineFromFields",BarAndLineSplitBy:"barAndLineSplitBy",BarAndLineSplitByNoAggregation:"barAndLineSplitByNoAggregation",PieNoAggregation:"pieNoAggregation",PieFromCategory:"pieFromCategory",PieFromFields:"pieFromFields",BoxPlotMonoField:"boxPlotMonoField",BoxPlotMultiFields:"boxPlotMultiFields",BoxPlotMonoFieldAndCategory:"boxPlotMonoFieldAndCategory",BoxPlotMultiFieldsAndCategory:"boxPlotMultiFieldsAndCategory",BoxPlotMonoFieldAndSplitBy:"boxPlotMonoFieldAndSplitBy",BoxPlotMultiFieldsAndSplitBy:"boxPlotMultiFieldsAndSplitBy",BoxPlotMonoFieldAndCategoryAndSplitBy:"boxPlotMonoFieldAndCategoryAndSplitBy"},e1={SelectionByClick:"SelectionByClick",SelectionByRange:"SelectionByRange",ProgrammaticSelection:"ProgrammaticSelection",ClearSelection:"ClearSelection"};function hu(t){return t?.colorMatch??!1}function Yc(t){let e=Ti();if(t!==void 0){let i=J(t.series);(i===y.BarSeries||i===y.LineSeries||i===y.ComboLineAndBarSeries||i===y.BoxPlotSeries)&&(e=t.rotated??Ti())}return e}function t1(t){return t?.map(e=>e.type)??[]}function Ss(t){let e=t?.stackedType;if(e===void 0&&t!==void 0){let i=J(t.series);(i===y.BarSeries||i===y.LineSeries||i===y.ComboLineAndBarSeries||i===y.RadarSeries)&&(e=ug())}return e}function kg(t){let e=t;return e=e.replace(/'/gu,"''"),e=e.replace(/[/\\"|[\]\\]/gu,"\\$&"),e}function Bg(t){let e=!1;if(typeof t!="number"){let i=new Intl.Segmenter;e=Array.from(i.segment(t),a=>a.segment).some(a=>a.charCodeAt(0)>255)}return e}function qg(t){let e=t,i="";t.startsWith("'")&&t.endsWith("'")&&(e=t.slice(1,-1),i="'"),e=e.replace(/'/gu,"''");let a="";return Bg(e)&&(a="N"),`${a}${i}${e}${i}`}function mu(t){let{value:e,keepSurroundingQuotes:i,escape:a}=t,r=e?.trim();if(!Tt(r)){let n="";r.startsWith("'")&&r.endsWith("'")&&(r=r.slice(1,-1),i&&(n="'")),a!==!1&&(r=kg(r)),r=`${n}${r}${n}`}return r}function r1(t){let{count:e,seriesCount:i,chartType:a,chartLimits:r}=t,{behaviorAfterLimit:n}=r??{},s=!0;if(n!==bs.RenderUpToTheLimit){let{maxBarChartSeriesCount:o,maxBarUniqueSeriesCountTotal:l,maxBarTwoSeriesCountPerSeries:d,maxBarTwoSeriesCountTotal:c,maxBarThreePlusSeriesCountPerSeries:u,maxBarThreePlusSeriesCountTotal:f,maxLineChartSeriesCount:p,maxLineUniqueSeriesCountTotal:h,maxLineTwoSeriesCountPerSeries:b,maxLineTwoSeriesCountTotal:m,maxLineThreePlusSeriesCountPerSeries:w,maxLineThreePlusSeriesCountTotal:C,maxPieChartSliceCountTotal:I,maxGaugeByFeaturesLimit:O,maxBoxPlotSeriesCount:P,maxBoxUniqueSeriesCountTotal:A,maxBoxTwoSeriesCountTotal:M,maxBoxTwoSeriesCountPerSeries:N,maxBoxThreePlusSeriesCountTotal:E,maxBoxThreePlusSeriesCountPerSeries:R,maxHeatChartCellLimit:k}=vs(r);switch(a){case y.BarSeries:case y.ComboLineAndBarSeries:{let L=e/i;i<=o?i===0?s=!0:i===1?s=e<=l:i===2?s=e<=c&&L<=d:i>2&&(s=e<=f&&L<=u):s=!1}break;case y.LineSeries:case y.RadarSeries:{let L=e/i;i<=p?i===0?s=!0:i===1?s=e<=h:i===2?s=e<=m&&L<=b:i>2&&(s=e<=C&&L<=w):s=!1}break;case y.PieSeries:s=e<=I;break;case y.BoxPlotSeries:{let L=e/i;i<=P?i===0?s=!0:i===1?s=e<=A:i===2?s=e<=M&&L<=N:i>2&&(s=e<=E&&L<=R):s=!1}break;case y.HeatSeries:s=e<=k;break;case y.GaugeSeries:s=e<=O;break}}return s}function ps(t=[],e){let i=t.find(a=>a.name===e)?.alias;return i!==""?i??e:e}function i1(t=[],e){let i=t.find(a=>a.alias===e)?.name;return i!==""?i??e:e}function a1(t){let e=!1;switch(J(t)){case y.HeatSeries:case y.PieSeries:e=!0;break;case y.BarSeries:case y.LineSeries:case y.RadarSeries:case y.ComboLineAndBarSeries:case y.BoxPlotSeries:e=t.length>1;break;case y.HistogramSeries:case y.ScatterSeries:{let i=t[0];e=i.overlays!==void 0&&Object.values(i.overlays).some(a=>a.created===!0);break}}return e}function Wg(t){let e=!0;return J(t.series)===y.ScatterSeries&&(e=t.series.length===1),e}function jg(t){let e=!0;return J(t.series)===y.HistogramSeries&&(e=t.series.length<=1&&t.series[0].type===y.HistogramSeries&&(!("dataTransformationType"in t.series[0])||t.series[0].dataTransformationType!==void 0&&Object.values(ot).includes(t.series[0].dataTransformationType))),e}function _g(t){let e=!0;return J(t.series)===y.PieSeries&&(e=t.series.length<=1),e}function Vg(t,e){let i=J(e?.series),a=i!==void 0&&t.includes(i);if(a&&e!==void 0)switch(i){case y.HistogramSeries:a=jg(e);break;case y.ScatterSeries:a=Wg(e);break;case y.PieSeries:a=_g(e);break}return a}function Tt(t){return t==null||typeof t=="string"&&t.trim()===""}function Da(t,e){let i=e.find(a=>a in t);return{isInItem:i!==void 0,expr:i}}function zg(t){return Da(t,zy)}function n1(t,e){let i;switch(t){case Ce.Second:i=e.seconds??"";break;case Ce.Minute:i=e.minutes??"";break;case Ce.Hour:i=e.hours??"";break;case Ce.Day:i=e.days??"";break;case Ce.Week:i=e.weeks??"";break;case Ce.Month:i=e.months??"";break;case Ce.Year:i=e.years??"";break;default:i="";break}return i}function s1(t){let e;switch(t){case jt.Mean:e=1;break;case jt.Median:e=2;break;case jt.StdDev:e=3;break;case jt.Normal:default:e=0;break}return e}function o1(t,e){if(e!==void 0){let{seriesId:i,overlayType:a,visible:r}=t.detail,n;switch(a){case jt.Mean:e.series[0].type===y.HistogramSeries&&(n=e.series[0].overlays?.mean);break;case jt.Median:e.series[0].type===y.HistogramSeries&&(n=e.series[0].overlays?.median);break;case jt.StdDev:e.series[0].type===y.HistogramSeries&&(n=e.series[0].overlays?.standardDeviation);break;case jt.Normal:e.series[0].type===y.HistogramSeries&&(n=e.series[0].overlays?.comparisonDistribution);break;case jt.Trendline:e.series[0].type===y.ScatterSeries&&(n=e.series[0].overlays?.trendLine);break;default:n=e.series.find(s=>s.id===i);break}n!==void 0&&(n.visible=r)}}function l1(t){return new Bl().sanitize(t)}function Ug(t){return t!=null&&!Number.isNaN(t)&&Number.isFinite(t)}function Hg(t,e){let i={fieldToSort:""};if(!Tt(t)){let a=t.trim(),r=a.split(" ").at(-1)?.toUpperCase();r===ke.Ascending||r===ke.Descending?i={fieldToSort:a.substring(0,a.lastIndexOf(" ")),orderBy:r}:(i={fieldToSort:a},e!==!1&&(i.orderBy=ke.Ascending))}return i}function yu(t){return t===F.BarAndLineSplitBy||t===F.BarAndLineSplitByNoAggregation||t===F.BoxPlotMonoFieldAndSplitBy||t===F.BoxPlotMultiFieldsAndSplitBy||t===F.BoxPlotMonoFieldAndCategoryAndSplitBy}function d1(t){return t?.selectionPixelTarget?Qa(t.selectionPixelTarget.pixelRanges):t?.selectionOIDs===void 0||t.selectionOIDs.length===0}function c1(t={arrayA:[],arrayB:[],getKey:e=>e}){let{arrayA:e,arrayB:i,getKey:a}=t;if(i.length===0||e.length===0)return e;let r=new Map;i.forEach((l,d)=>{let c=a(l);r.set(c,d)});let n=[],s=[];e.forEach((l,d)=>{let c=a(l);r.has(c)&&(n.push(d),s.push(l))}),s.sort((l,d)=>{let c=a(l),u=a(d);return r.get(c)-r.get(u)});let o=[...e];return n.forEach((l,d)=>{o[l]=s[d]}),o}function u1(t,e){return(t===F.BarAndLineNoAggregation||t===F.BarAndLineSplitByNoAggregation)&&e!==void 0?e.x:j.xAxisField}function p1(t){let{r:e,g:i,b:a,a:r=1}=t,n=Math.round((1-r)*255+r*e),s=Math.round((1-r)*255+r*i),o=Math.round((1-r)*255+r*a);return .299*n+.587*s+.114*o>128}var Ar=new Map;function Gg(t,e){let i=ye.now().offset/60,a=ye.now().setZone(t)??i,r=a.offset/60,n=e?a.setZone(e).offset/60:0;return r-n}function gu(t){let{outTimeZone:e=Intl.DateTimeFormat().resolvedOptions().timeZone,dataTimeZone:i="UTC",runsOnClientQueryEngine:a}=t,r="",n=Gg(e,i);if(n!==0)if(a)r=`${n>0?"+":"-"}1*INTERVAL '${Math.abs(n)}' HOUR `;else{let s=Math.abs(n%1),o=Math.round(s*60);n=Math.floor(n),r=n>0?`+INTERVAL '${Math.abs(n)}:${o!==0?o:"00"}:01' HOUR TO SECOND`:`-INTERVAL '${Math.abs(n)-(o!==0?0:1)}:${o!==0?String(o-1):"59"}:59' HOUR TO SECOND`}return r}function f1(t){let{dateFieldName:e,unit:i,runsOnClientQueryEngine:a}=t,r=gu({runsOnClientQueryEngine:a}),n=`EXTRACT(YEAR FROM ${e} ${r})`,s=`EXTRACT(MONTH FROM ${e} ${r})`,o=`EXTRACT(DAY FROM ${e} ${r})`,l=`EXTRACT(HOUR FROM ${e} ${r})`,d=`EXTRACT(MINUTE FROM ${e} ${r})`,c=`EXTRACT(SECOND FROM ${e} ${r})`,u=[];switch(i){case Ce.Second:u=[n,s,o,l,d,c];break;case Ce.Minute:u=[n,s,o,l,d];break;case Ce.Hour:u=[n,s,o,l];break;case Ce.Day:case Ce.Week:case Ce.Month:case Ce.Year:u=[n,s,o];break}return u}function Qg(t){return t!==void 0&&"type"in t&&t.type==="imagery"}function Zg(t){return t!==void 0&&"type"in t&&t.type==="imagery-tile"}function Jg(t){return t==="imagery"||t==="imagery-tile"}function mt(t){return t!==void 0&&"type"in t&&Jg(t.type)}function Yg(t){let e=t?.iLayer?.layerType;return e==="ArcGISImageServiceLayer"||e==="ArcGISTiledImageServiceLayer"}function Kg(t,e){if(mt(t))throw new Error(e??"Raster layer is not supported by this operation.")}function h1(t){return t!==void 0&&(!("url"in t)||!t.url)}function qa(t){return t!==void 0&&"view"in t&&"layer"in t&&t.layer.type==="feature"}function Xg(t){return t!==void 0&&"type"in t&&t.type==="feature"}function bu(t){return t!==void 0&&"type"in t&&t.type==="subtype-sublayer"}function eb(t){return Xg(t)||bu(t)}function Ze(t){return bu(t)?t.parent??void 0:t}function tb(t){return t?.capabilities?.query?.supportsDistance||Ze(t)?.sourceJSON?.advancedQueryCapabilities?.supportsQueryWithDistance===!0}function rb(t){return t?.capabilities?.queryAttributeBins?.supportsFixedInterval===!0&&t?.capabilities?.queryAttributeBins?.supportsStackBy}function ib(t,e){return t!==void 0&&(qa(t)||"capabilities"in t&&t.capabilities?.queryAttributeBins?.supportsDate===!0&&(Tt(e)||t.capabilities?.queryAttributeBins?.supportsStackBy))}function m1(t){let e=!1,i=Ze(Se(t))?.sourceJSON;if(i){let a=i.queryBinsCapabilities?.supportsFixedIntervalBin,r=i.queryBinsCapabilities?.supportedStatisticTypes,n=[pe.Maximum,pe.Count].every(s=>r?.includes(s.toUpperCase())||r?.includes(s.toLowerCase()));e=a&&n}return e}function y1(t){let e;return qa(t)?e=t.layer:e=t,e}function Se(t){let e;return qa(t)?e=t.layer:e=t,e}function ab(t){let e=!1,i=Ze(t)?.sourceJSON?.advancedQueryCapabilities?.supportedSpatialAggregationStatistics??[],a=t?.capabilities?.query.supportedSpatialAggregationStatistics??{};return e=i.includes("EnvelopeAggregate")||"envelope"in a&&a.envelope===!0,e}function g1(t){let{chartConfig:e,queryObject:i}=t,a;if(i){let r=Se(i);Qg(r)?a={id:r.id,layerType:"ArcGISImageServiceLayer"}:Zg(r)?a={id:r.id,layerType:"ArcGISTiledImageServiceLayer"}:a={id:r.id,layerType:"ArcGISFeatureLayer"},r.url&&(a.url=r.url)}return{...e,iLayer:a}}function nb(t){let e;switch(t){case gr.Feet:e="esriSRUnit_Foot";break;case gr.Miles:e="esriSRUnit_StatuteMile";break;case gr.NauticalMiles:e="esriSRUnit_NauticalMile";break;case gr.USNauticalMiles:e="esriSRUnit_USNauticalMile";break;case gr.Meters:e="esriSRUnit_Meter";break;case gr.Kilometers:e="esriSRUnit_Kilometer";break}return e}async function sb(t){let{queryObject:e,queryConfig:i,outputFormat:a,dataFormat:r,outAnalytics:n}=t,{where:s,geometry:o,distance:l,units:d,timeExtent:c}=i,u,f=Se(e),p=Ze(f);if(p){let h={where:Ra([s,p.definitionExpression])},b={query:h},m=Wa(o)?.extent?.toJSON();if(m!==void 0){let C=nb(d),{xmin:I,ymin:O,xmax:P,ymax:A}=m;h.geometryType="esriGeometryEnvelope",h.geometry=`${I},${O},${P},${A}`,l!==void 0&&(h.distance=l.toString()),C!==void 0&&(h.units=C,o?.spatialReference?.wkid!=null&&(h.inSR=o.spatialReference.wkid.toString()))}c&&(h.time=`${c[0]},${c[1]}`);let w=`${p.url}/${p.layerId}/queryAnalytic?f=${a}&dataFormat=${r}&outAnalytics=${n}`;try{u=(await La(w,b)).data?.features?.[0]?.attributes}catch(C){let I=(await bt(vt(document.documentElement).t9nLocale,gt("./assets/common/t9n"),"messages.")).errorStrings;throw new ze(Qe.QueryFeaturesError,I.errors.queryError,C)}}return u}function ob(t,e){return{lowerBoundaryAlias:`charts_lower_boundary_${t}`,upperBoundaryAlias:`charts_upper_boundary_${t}`,stackAlias:`charts_stack_alias_${e}`}}async function b1(t){let{chartConfig:e,queryObject:i,queryConfig:a,errorStrings:r,options:n}=t,s,o=Se(i),l=rb(o);if(l&&i&&"queryAttributeBins"in i){let{x:d,y:c,xTemporalBinning:u,yTemporalBinning:f}=e.series[0],{outTimeZone:p,firstDayOfWeek:h,includeLeapDay:b}=e,m=bb({queryObject:i,queryConfig:a,x:d,y:c,xTemporalBinning:u,yTemporalBinning:f,configTimeZone:p,firstDayOfWeek:h,includeLeapDay:b,options:n});try{s=await i.queryAttributeBins(m)}catch(w){throw new ze(Qe.QueryFeaturesError,r.errors.queryError,w)}}if(!l)throw new ze(Qe.QueryFeaturesError,r.errors.queryBinsNotSupported,r.errors.queryBinsNotSupported);return s}async function v1(t){let{chartConfig:e,queryObject:i,queryConfig:a,returnFeaturesExtent:r,errorStrings:n,abortKey:s}=t,o=e.series[0],l,{x:d,y:c}=o;a.groupByFieldsForStatistics=[d],d!==c&&a.groupByFieldsForStatistics.push(c),a&&r===!0&&!a.outStatistics?.some(u=>u.statisticType===pe.EnvelopeAggregate)&&a.outStatistics?.push({statisticType:pe.EnvelopeAggregate,onStatisticField:"1"});try{l=await Su({queryObject:i,queryConfig:a,abortKey:s})}catch(u){throw new ze(Qe.QueryFeaturesError,n.errors.queryError,u)}return l}async function S1(t){let{queryObject:e,queryConfig:i,xStep:a,xMin:r,xMax:n,x:s,y:o,yStep:l,errorStrings:d}=t,c;if(e&&"queryAttributeBins"in e&&Number.isFinite(a)&&Number.isFinite(l)&&Number.isFinite(r)&&Number.isFinite(n)&&a>0&&l>0){let u=vb({queryObject:e,queryConfig:i,xStep:a,xMin:r,xMax:n,x:s,y:o,yStep:l});try{c=await e.queryAttributeBins(u)}catch(f){throw new ze(Qe.QueryFeaturesError,d.errors.queryError,f)}}return c}async function w1(t){let{queryConfig:e,x:i,queryObject:a,chartSubType:r,isGaugeByFeature:n}=t,s,o=Se(a),{idField:l,isTraditionalTypeOID:d}=Is(o),c=ws({queryObject:a,queryConfig:e});c.outFields=n||r===F.PieNoAggregation||r===F.BarAndLineNoAggregation||r===F.BarAndLineSplitByNoAggregation?[d?l:"*"]:[i],c.outFields?.[0]===i&&(c.returnDistinctValues=!0);try{s=await a.queryFeatureCount(c)}catch{s=Number.NaN}return s}async function I1(t){let{queryObject:e,queryConfig:i,abortKey:a}=t,{outStatistics:r}=i,n=new Map;if(r!==void 0&&r.length>0){let s=r.map(c=>{let{statisticType:u,onStatisticField:f,outStatisticFieldName:p}=c;return{statisticType:u,onStatisticField:f,outStatisticFieldName:p?.toUpperCase()}});i.outStatistics=s,delete i.num,delete i.orderByFields;let o=ws({queryObject:e,queryConfig:i}),l;try{l=await e.queryFeatures(o,{signal:a!==void 0?Ar.get(a)?.signal:void 0})}catch(c){if(!gs.isAbortError(c)){let u=(await bt(vt(document.documentElement).t9nLocale,gt("./assets/common/t9n"),"messages.")).errorStrings;throw new ze(Qe.QueryFeaturesError,u.errors.queryError,c)}}let d=l?.features?.[0]?.attributes;d!==void 0&&r.forEach(c=>{let{outStatisticFieldName:u}=c;if(u!==void 0){let f=d[u.toLowerCase()]??d[u.toUpperCase()]??d[u];f!==void 0&&n.set(u,f)}})}return n}async function vu(t){let{queryObject:e,queryConfig:i,returnUniqueIdsOnly:a,abortKey:r}=t,n=[],s=Se(e),o=Sb(s),l=ws({queryObject:e,queryConfig:i,maxRecordCountFactor:o});try{if(a===!0)if("queryObjectIds"in e)n=await e.queryObjectIds(l);else{let{idField:d,isTraditionalTypeOID:c}=Is(s),u=c?d:"*";l.outFields=[u],n=(await e.queryFeatures(l,{signal:r!==void 0?Ar.get(r)?.signal:void 0})).features.map(f=>f.getObjectId())}else n=(await e.queryFeatures(l,{signal:r!==void 0?Ar.get(r)?.signal:void 0})).features}catch(d){if(!gs.isAbortError(d)){let c=(await bt(vt(document.documentElement).t9nLocale,gt("./assets/common/t9n"),"messages.")).errorStrings;throw new ze(Qe.QueryFeaturesError,c.errors.queryError,d)}}return n}async function lb(t){let e=[],{featureCount:i,maxRecords:a,queryConfig:r}=t,n=[],s=0,o=r?.start??0;for(;s<xt.maxParallelRequests&&o<i;){let l={...t};l.queryConfig={...r,start:o,num:Math.min(a,i-o)},e.push(vu(l)),o+=a,s+=1}return n=(await Promise.all(e)).flat(),n}async function Su(t){let{queryObject:e,queryConfig:i,returnUniqueIdsOnly:a,featureCount:r,noBatch:n,abortKey:s}=t,o=[],l=Se(e),d=r??1,c=wu(l);if(n!==!0&&d>c&&l?.capabilities?.query.supportsPagination){let u=0,f=0,p=Math.ceil(d/c),h=Math.ceil(p/xt.maxParallelRequests),b=[];for(;f<h;){u=f*xt.maxParallelRequests*c;let m=lb({queryConfig:{...i,start:u},queryObject:e,maxRecords:c,featureCount:d,returnUniqueIdsOnly:a,abortKey:s});b.push(m),f+=1}o=(await Promise.all(b)).flat()}else(Number.isNaN(d)||d>=0)&&(o=await vu({queryObject:e,queryConfig:i,returnUniqueIdsOnly:a,abortKey:s}));return o}async function C1(t){let{queryObject:e,queryConfig:i,uniqueFeature:a,abortKey:r}=t,n={...i,returnDistinctValues:!0};return await Su({queryObject:e,abortKey:r,queryConfig:n,returnUniqueIdsOnly:!0,featureCount:a===!0?1:void 0})}function x1(t){if(t!==void 0){let e=Ar.get(t);e!==void 0&&e.abort(),Ar.set(t,new AbortController)}}function db(t){return{lowerBoundaryAlias:`charts_lower_boundary_${t}`,upperBoundaryAlias:`charts_upper_boundary_${t}`}}async function T1(t){let{queryObject:e,dateField:i,splitByField:a,queryConfig:r,temporalBinning:n}=t,s=[],o;if(n){let{unit:l}=n;try{if(l){let d=Ze(Se(e))??void 0;if(o=ib(d,a),o&&e&&"queryAttributeBins"in e){let c=mb({queryObject:e,queryConfig:r,temporalBinning:n,dateField:i,splitByField:a});s=(await e.queryAttributeBins(c)).features}}}catch(d){let c=(await bt(vt(document.documentElement).t9nLocale,gt("./assets/common/t9n"),"messages.")).errorStrings;throw new ze(Qe.QueryFeaturesError,c.errors.queryError,d)}}if(o===!1){let l=(await bt(vt(document.documentElement).t9nLocale,gt("./assets/common/t9n"),"messages.")).errorStrings;throw new ze(Qe.QueryFeaturesError,l.errors.queryBinsNotSupported,l.errors.queryBinsNotSupported)}return s}function cb(t){let e=!t.geometry||t.geometry.type==="extent",i=(t.where??"").toUpperCase(),a=!i.includes("CURRENT_TIMESTAMP")&&!i.includes("CURRENT_DATE")&&!i.includes("CURRENT_TIME");return e&&a}function wu(t){let e=xt.maxRecords;if(t&&"sourceJSON"in t&&t.sourceJSON?.maxRecordCount){let{sourceJSON:i}=t;e=i.maxRecordCount,i.advancedQueryCapabilities?.supportsMaxRecordCountFactor===!0&&(e*=xt.maxRecordCountFactor)}return e}function Ra(t,e){let i,a=Array.from(new Set(t)).filter(r=>r!=null&&r!==""&&!ti(r));return a.sort((r,n)=>n.length-r.length),a.length===1?[i]=a:a?.forEach(r=>{r!==void 0&&(Tt(i)?i=`(${r})`:i?.includes(`(${r})`)||(i=`${i} ${e??"AND"} (${r})`))}),i??"1=1"}function ub(t,e){let i=e;if(t!==void 0){let a=Se(t),r=Ze(a)?.timeExtent;r?.start!=null&&r?.end!=null&&(i=[r.start.valueOf(),r.end.valueOf()])}return i}function pb(t){let{queryObject:e,defaultGeometry:i,ignoreViewExtent:a}=t,r=i;if(!a&&qa(e)){let n=e.view.extent,{xmin:s,xmax:o,ymin:l,ymax:d,zmin:c,zmax:u}=n;r={xmin:s,ymin:l,zmin:c,xmax:o,ymax:d,zmax:u,spatialReference:n.spatialReference.toJSON()}}return r}function Wa(t){let e;return t!==void 0&&(e=ys.fromJSON(t)),e}function fb(t){return t===void 0?["*"]:Array.from(new Set(t))}function ja(t){let{queryType:e,queryObject:i,queryConfig:a}=t,{where:r,outStatistics:n,geometry:s,distance:o,units:l,timeExtent:d,returnDistinctValues:c}=a??{},u=Se(i),f=Ze(u)?.createQuery()??new Fy,p,h=Au(u).idFields;if(e==="AttributeBinsQuery"&&a?.objectIds?.[0]!==void 0&&h&&(p=`${h} IN (${a.objectIds.join(",")})`),e==="AttributeBinsQuery"&&(f=new Ty(f.toJSON())),f.where=Ra([f.where,r,p]),"returnDistinctValues"in f&&(f.returnDistinctValues=c??!1),n!==void 0){let m=ab(u);f.outStatistics=n.filter(w=>w.statisticType!==pe.EnvelopeAggregate||m).map(w=>Oy.fromJSON(w))}let b=Wa(s);return b!==void 0&&(f.geometry=b,a?.spatialRelationship&&(f.spatialRelationship=a.spatialRelationship),tb(u)&&(o!==void 0&&(f.distance=o),l!==void 0&&(f.units=l))),d&&(f.timeExtent=new Py({start:d?.[0],end:d?.[1]})),cb(f)&&(f.cacheHint=!0),f}function hb(t){let e;switch(t){case Wr.Start:e="first";break;case Wr.End:e="last";break}return e}function mb(t){let{queryObject:e,queryConfig:i,temporalBinning:a,dateField:r,splitByField:n}=t,s=Se(e),o=Pi(e).find(w=>w.name===r)?.type,l=ja({queryType:"AttributeBinsQuery",queryObject:e,queryConfig:i}),{unit:d,size:c,timeAggregationType:u,start:f,end:p,offset:h,outTimeZone:b}=a,m=db(r);if(l.lowerBoundaryAlias=m.lowerBoundaryAlias,l.upperBoundaryAlias=m.upperBoundaryAlias,o!==me.DateOnly&&(l.outTimeZone=b??Intl.DateTimeFormat().resolvedOptions().timeZone),l.binParameters={type:"date",field:r,interval:{unit:d,value:c},start:f,end:p,offset:h?{unit:h.unit,value:h.size}:null},l.binParameters.type==="date"&&(s?.capabilities?.queryAttributeBins?.supportsSnapToData&&(l.binParameters.snapToData=hb(u)),s?.capabilities?.queryAttributeBins?.supportsReturnFullIntervalBin&&(l.binParameters.returnFullIntervalBin=!0)),!Tt(n)){let w=Ze(s)?.fields.find(C=>C.name===n)?.type;(!w||w==="string"||w==="integer"||w==="small-integer"||w==="big-integer"||w==="double")&&(l.binParameters.stackBy={type:"field",value:n,valueType:w==="string"?"string":"integer"})}return l}function yb(t){let{field:e,fieldType:i,unit:a,outTimeZone:r,dataTimeZone:n,runsOnClientQueryEngine:s,addIntervalStatement:o,addLeapDayExpression:l}=t,d,c,u=1,f=1;switch(a){case Bt.MinuteOfDay:i!==me.DateOnly&&(c="MINUTE",u=0,f=59);break;case Bt.HourOfDay:i!==me.DateOnly&&(c="HOUR",u=0,f=23);break;case Bt.DayOfWeek:c="DOW",f=7;break;case Bt.DayOfMonth:c="DAY",f=31;break;case Bt.DayOfYear:c="DOY",f=366;break;case Bt.WeekOfYear:c="WEEK",f=53;break;case Bt.MonthOfYear:c="MONTH",f=12;break;case Bt.QuarterOfYear:c="QUARTER",f=4;break}if(c){let p=o?` ${gu({dataTimeZone:n,runsOnClientQueryEngine:s,outTimeZone:r})}`:"";d=gb({addLeapDayExpression:l,temporalKey:c,field:e,intervalStatement:p})}return{expression:d,start:u,end:f}}function gb(t){let{addLeapDayExpression:e=!1,temporalKey:i,field:a,intervalStatement:r}=t,n;return e&&a.length&&i==="DAY"?n=`CASE WHEN (EXTRACT(MONTH FROM ${a})=2 AND EXTRACT(DAY FROM ${a})=29) THEN 0 ELSE EXTRACT (${i} FROM ${a}${r}) END`:n=`EXTRACT (${i} FROM ${a}${r})`,n}function Kc(t){let{temporalBinning:e,xOrY:i,xOrYFieldType:a,addIntervalStatement:r,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o,includeLeapDay:l}=t,{unit:d}=e??{},c,u,f,p;return a===me.Date||a===me.DateOnly||a===me.TimestampOffset?{expression:u,start:f,end:p}=yb({field:i,fieldType:a,unit:d,addIntervalStatement:r,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o,addLeapDayExpression:!l}):c=i,{field:c,expression:u,start:f,end:p}}function bb(t){let{queryObject:e,queryConfig:i,x:a,y:r,xTemporalBinning:n,yTemporalBinning:s,firstDayOfWeek:o,includeLeapDay:l,configTimeZone:d,options:c}=t,u=Pi(e),f=u.find(P=>P.name===a)?.type,p=u.find(P=>P.name===r)?.type,h=ja({queryType:"AttributeBinsQuery",queryObject:e,queryConfig:i});if(h.binParameters={type:"fixed-interval",interval:1},h.lowerBoundaryAlias=xt.heatChartLowerBoundaryAlias,h.upperBoundaryAlias=xt.heatChartUpperBoundaryAlias,f!==me.DateOnly){let P=Intl.DateTimeFormat().resolvedOptions().timeZone,A=c?.view&&"timeZone"in c?.view?c.view.timeZone:void 0,M=d??A??P;M==="unknown"?M="Etc/UTC":M==="system"&&(M=P),h.outTimeZone=M}o!==void 0&&(h.binParameters.firstDayOfWeek=o);let b=Kc({temporalBinning:n,xOrY:a,xOrYFieldType:f,addIntervalStatement:!1,includeLeapDay:l}),{field:m,expression:w,start:C,end:I}=b;m?h.binParameters.field=m:w&&(h.binParameters.expression=w,h.binParameters.expressionValueType="integer",h.binParameters.type==="fixed-interval"&&(C!==void 0&&(h.binParameters.start=C),I!==void 0&&(h.binParameters.end=I)));let O=Kc({temporalBinning:s,xOrY:r,xOrYFieldType:p,addIntervalStatement:!1,includeLeapDay:l});return O.field?h.binParameters.stackBy={type:"field",value:O.field}:O.expression&&(h.binParameters.stackBy={type:"expression",value:O.expression,valueType:"integer",alias:r}),h}function vb(t){let{queryObject:e,queryConfig:i,xStep:a,xMin:r,xMax:n,x:s,y:o,yStep:l}=t,d=ja({queryType:"AttributeBinsQuery",queryObject:e,queryConfig:i}),c=ob(s,o);return d.lowerBoundaryAlias=c.lowerBoundaryAlias,d.upperBoundaryAlias=c.upperBoundaryAlias,d.binParameters={type:"fixed-interval",field:s,interval:a,start:r,end:n,stackBy:{value:`FLOOR(${o} / ${l})`,type:"expression",alias:c.stackAlias,valueType:"integer"}},d}function ws(t){let{queryObject:e,queryConfig:i,maxRecordCountFactor:a}=t,{groupByFieldsForStatistics:r,orderByFields:n,gdbVersion:s,start:o,num:l,outFields:d}=i??{},c=ja({queryType:"Query",queryObject:e,queryConfig:i});c.returnGeometry=!1;let u=Se(e);return c.outFields=fb(d),c.groupByFieldsForStatistics=r??c.groupByFieldsForStatistics,c.orderByFields=n??[],c.objectIds=i?.objectIds,a!==void 0&&(c.maxRecordCountFactor=a),s!==void 0&&s!==""&&(c.gdbVersion=s),l!==void 0&&(c.num=l),o!==void 0&&(c.start=o,c.num=c.num??wu(u)),c}function Sb(t){return t&&"sourceJSON"in t&&t.sourceJSON?.advancedQueryCapabilities?.supportsMaxRecordCountFactor===!0?xt.maxRecordCountFactor:void 0}var Iu={NonNumericAggregation:"nonNumericAggregation",DuplicateSeriesID:"duplicateSeriesId"},nr={Required:"required",MinLength:"minLength",MinItems:"minItems",MaxItems:"maxItems",Pattern:"pattern",AdditionalProperties:"additionalProperties",Enum:"enum",AnyOf:"anyOf"},Xc={BadData:"badData",EmptyDataSet:"emptyDataSet",InvalidConfig:"invalidConfig",HistogramEmptyField:"histogramEmptyField",BarElementExceedsLimit:"barElementExceedsLimit",LineChartExceedsLimit:"lineChartExceedsLimit",BoxPlotExceedsLimit:"boxPlotExceedsLimit",BoxPlotOutliersExceedsLimit:"boxPlotOutliersExceedsLimit",HeatChartExceedsLimit:"heatChartExceedsLimit",PieChartExceedsLimit:"pieChartExceedsLimit",GaugeExceedsLimit:"gaugeExceedsLimit",PieChartMixOfNegativePositiveSlices:"PieChartMixOfNegativePositiveSlices",NegativeValueInSqrtCalculation:"negativeValueInSqrtCalculation",NegativeValueInLogCalculation:"negativeValueInLogCalculation",NegativeValueInXAxisLogScale:"negativeValueInXAxisLogScale",NegativeValueInYAxisLogScale:"negativeValueInYAxisLogScale"},wb=2048;function Ib(t){let e;switch(t){case ot.Log:e="log";break;case ot.Sqrt:e="sqrt";break;case ot.None:default:e=void 0;break}return e}async function Cb(t){let{queryConfig:e,chartConfig:i,queryObject:a,options:r,abortKey:n}=t,s=i.series[0],{x:o,dataTransformationType:l,binCount:d}=s,c=Se(a);if(!mt(c))throw new ze(Qe.LayerNotSupported);c.loaded||await c.load();let u=await c.generateRasterInfo(c.rasterFunction),f=r?.view,p=Wa(e.geometry)??c.fullExtent,h=u.bandCount===1?0:u.bandInfos.findIndex(w=>w.name===o),b,m;if(f===void 0&&(l===void 0||l===ot.None)&&d&&Array.isArray(u.histograms)&&u.histograms.length>h&&u.histograms[h].size%d===0&&Array.isArray(u.statistics)&&u?.statistics?.length>h)b=u.histograms[h],m=u.statistics[h];else{let w,C,I;if(f)w=f.resolution,C=f.resolution,I=f.spatialReference;else{let M=wb,N=2,E=u.width,R=u.height,k=Math.max(0,Math.ceil(Math.log(Math.max(E,R)/M)/Math.log(N))),L=N**k;w=u.pixelSize.x*L,C=u.pixelSize.y*L,I=c.spatialReference}let O=new Ay({x:w,y:C,spatialReference:I}),P=Ib(l),A=await wy(c,{bandIds:[h],geometry:p,histogramSize:d??void 0,pixelSize:O,transformType:P},{signal:n!==void 0?Ar.get(n)?.signal:void 0});m=A.statistics[0],b=A.histograms[0]}return{histogram:b,statistics:m}}function xb(t,e){let i=[],a=(t.max-t.min)/t.size;for(let r=0;r<t.size;r++){let n=t.min+r*a;i.push({minValue:n,maxValue:n+a,count:t.counts[r]})}if(e&&t.size!==e&&t.size%e===0){let r=t.size/e,n=[];for(let s=0;s<e;s++){let o=i[s*r].minValue,l=i[(s+1)*r-1].maxValue,d=0;for(let c=0;c<r;c++)d+=i[s*r+c].count;n.push({minValue:o,maxValue:l,count:d})}return n}return i}async function F1(t){let{chartConfig:e,queryConfig:i,queryObject:a,options:r,abortKey:n}=t;if(a===void 0)throw new Error("QueryObject is undefined!");let s,{statistics:o,histogram:l}=await Cb({queryObject:a,chartConfig:e,queryConfig:i,options:r,abortKey:n});if(o&&l){let d=e.series[0].binCount??void 0,c=xb(l,d);c.length>0?s={valid:!0,count:c.length,data:{bins:c,min:o.min,max:o.max,mean:o.avg,median:o.median,stddev:o.stddev,sum:o.sum??o.avg*o.count,count:o.count}}:s={valid:!1,invalidType:Xc.EmptyDataSet}}else s={valid:!1,invalidType:Xc.BadData};return s}var Tb=t=>t.series[0].x;function Fb(t){let{chartConfig:e,layer:i,selectionDataItems:a}=t,r=hs(i,Tb(e)),n=a.map(l=>[l.minValue,l.maxValue]).reduce((l,d,c)=>{if(c===0)l.push([...d]);else{let u=l[l.length-1];u[1]===d[0]?u[1]=d[1]:l.push([...d])}return l},[]),s=e.series[0],{dataTransformationType:o}=s;switch(o){case ot.Log:n.forEach(l=>{l[0]=Math.exp(l[0]),l[1]=Math.exp(l[1])});break;case ot.Sqrt:n.forEach(l=>{l[0]=l[0]*l[0],l[1]=l[1]*l[1]});break;case ot.None:}return n.length>0?{bandId:r,pixelRanges:n}:void 0}var Ob={dataFormat:"json",outputFormat:"json",typeKey:"analyticType",typeValue:"LinRegR2",fieldValue:"onAnalyticField",slopePropertyList:["Slope","SLOPE","slope"],interceptPropertyList:["Intercept","INTERCEPT","intercept"],r2PropertyList:["R2","r2"]};function fs(t,e){let i,a,r=e??(n=>n);for(let n of t){let s=r(n);s==null||Number.isNaN(s)||((i===void 0||s<i)&&(i=s),(a===void 0||s>a)&&(a=s))}return{min:i,max:a}}function O1(t,e){let i=0,a=0,r=e??(n=>n);for(let n of t){let s=r(n);s==null||Number.isNaN(s)||(i++,a+=s)}return i>0?a/i:void 0}function P1(t,e){let i=0,a=e??(r=>r);for(let r of t){let n=a(r);n==null||Number.isNaN(n)||(i+=n)}return i}function A1(t,e,i=1){let a=Math.max(0,Math.ceil((e-t)/i)),r=new Array(a);for(let n=0;n<a;n++)r[n]=t+n*i;return r}async function Pb(t){let{queryObject:e}=t,i=!1;if(!mt(e)){let a=eb(e),r=Se(e),n=Ze(r);if(a&&n?.url!==void 0&&n.url!==null){let s=`${n.url}/${n.layerId}?f=json`;try{let o=(await La(s)).data,l=o?.advancedQueryCapabilities?.supportsQueryAnalytic===!0,d=o?.sqlParserVersion===void 0||n.version!=null&&n.version>=10.91;i=l&&d}catch{}}}return i}function Ab(t){let{x:e,y:i,trendlineXToY:a,data:r}=t,{min:n,max:s}=r?fs(r,o=>o[e]):{min:Number.NaN,max:Number.NaN};return[{[e]:n??Number.NaN,[i]:a(n??Number.NaN)},{[e]:s??Number.NaN,[i]:a(s??Number.NaN)}]}function Eb(t){let{data:e,x:i,y:a}=t,r=[];return e!==void 0&&(r=e.filter(n=>Number.isFinite(n[i])&&Number.isFinite(n[a])).map(n=>[n[i],n[a]])),r}async function Db(t){let{statsMap:e,queryObject:i,chartConfig:a,queryConfig:r}=t,n=a.series[0],{x:s,y:o}=n;Kg(i);let l=Number.NaN,d=[{[s]:Number.NaN,[o]:Number.NaN},{[s]:Number.NaN,[o]:Number.NaN}],{dataFormat:c,outputFormat:u,typeKey:f,typeValue:p,fieldValue:h,slopePropertyList:b,interceptPropertyList:m,r2PropertyList:w}=Ob,C=`[{"${f}": "${p}", "${h}":"${s},${o}"}]`,I=await sb({queryObject:i,queryConfig:r,outputFormat:u,dataFormat:c,outAnalytics:C});if(I!==void 0){let O=Number.NaN,P=Number.NaN,{expr:A}=Da(I,b),{expr:M}=Da(I,m),{expr:N}=Da(I,w);A!==void 0&&Number.isFinite(I[A])&&(O=I[A]),M!==void 0&&Number.isFinite(I[M])&&(P=I[M]),N!==void 0&&Number.isFinite(I[N])&&(l=I[N]);let{dataContextXMinField:E,dataContextXMaxField:R,dataContextYMinField:k,dataContextYMaxField:L}=j.scatterplotAggregationFields,D=e.get(E)??Number.NaN,$=e.get(R)??Number.NaN,W=e.get(k)??Number.NaN,ee=e.get(L)??Number.NaN,H=($-D)/100,Q=D-H,U=Number.NaN;for(;!(U>=W&&U<=ee)&&Q<=$;)Q+=H,U=O*Q+P;let _=$+H,ce=Number.NaN;for(;!(ce>=W&&ce<=ee)&&_>=D;)_-=H,ce=O*_+P;d=[{[s]:Q,[o]:U},{[s]:_,[o]:ce}]}return{r2:l,trendLinePoints:d}}function Lb(t){let{data:e,chartConfig:i}=t,a=i.series[0],{x:r,y:n}=a,{r2:s,trendLinePoints:o}=j.scatterplotSeries,l=Eb({data:e,x:r,y:n});if(l!==void 0){let d=ql(l),c=Wl(d);s=d.m===0?0:jl(l,c),o=Ab({x:r,y:n,trendlineXToY:c,data:e})}return{r2:s,trendLinePoints:o}}async function $b(t){let e=await Pb(t),{chartConfig:i}=t,a=i.series[0],{x:r,y:n}=a,{r2:s}=j.scatterplotSeries,o=[{[r]:Number.NaN,[n]:Number.NaN},{[r]:Number.NaN,[n]:Number.NaN}],l={r2:s,trendLinePoints:o},d=!1;if(e)try{l=await Db(t)}catch{d=!0}return(!e||d)&&(l=Lb(t)),l}var Nb=50,Rb=4194304;async function Mb(t){let{layer:e,chartConfig:i,rawData:a}=t,r=i.series[0],{x:n,y:s}=r,{idField:o}=Is(e),l=(await e.generateRasterInfo(e.rasterFunction)).bandInfos,d=l.length===1,c=d?l?.[0].name:"";return a.map(u=>({...d&&{[n]:u.attributes?.[c],[s]:u.attributes?.[c]},...u.attributes,[xt.uniqueIdsName]:u.attributes?.[o]}))??[]}async function kb(t){let{queryObject:e,queryConfig:i,abortKey:a}=t;if(!e||!mt(e))throw new ze(Qe.LayerNotSupported);return await zb({queryObject:e,queryConfig:i,imagerySkipFactor:Nb,imageryMaxPixelCount:Rb,abortKey:a})}async function E1(t){let{chartConfig:e,queryConfig:i,queryObject:a,sortData:r,calculateTrendLine:n,options:s,abortKey:o}=t;if(!a)throw new Error("QueryObject is undefined!");let l=await kb({queryObject:a,queryConfig:i,abortKey:o}),d=await Mb({layer:a,chartConfig:e,rawData:l});r!==!1&&bg({arrayToSort:d,sortingField:e.series[0].x,orderBy:ke.Ascending});let c=new Map,{r2:u,trendLinePoints:f}=n!==!1?await $b({data:d,statsMap:c,queryConfig:i,options:s,queryObject:a,chartConfig:e}):j.scatterplotSeries;return{dataItems:d,r2:u,trendLinePoints:f}}var Bb=t=>({x:t.series[0].x,y:t.series[0].y});function qb(t){let{chartConfig:e,layer:i,selectionDataItems:a}=t,r;if(a.length>0){let{x:n,y:s}=Bb(e),o=hs(i,n),l=hs(i,s);if(o!==void 0&&l!==void 0){let d=a[0]?.[n],c=a[0]?.[s],u=d,f=c;a.forEach(p=>{let h=p[n],b=p[s];h<d?d=h:h>u&&(u=h),b<c?c=b:b>f&&(f=b)}),r={xBandId:o,yBandId:l,pixelRanges:new Ey({xmin:d,xmax:u,ymin:c,ymax:f})}}}return r}var Cu="PixelID",Wb=[y.BarSeries,y.HistogramSeries,y.ScatterSeries];async function D1(t,e){let i=!1;if(Vg(Wb,t))switch(J(t?.series)){case y.BarSeries:e.loaded||await e.load(),i=!!(await e.generateRasterInfo(e.rasterFunction)).attributeTable;break;case y.HistogramSeries:case y.ScatterSeries:i=!0;break}return i}async function jb(t){let{layer:e,chartConfig:i}=t,a;return mt(e)?a=e:i?.iLayer?.layerType==="ArcGISImageServiceLayer"?a=await Tu(i.iLayer):i?.iLayer?.layerType==="ArcGISTiledImageServiceLayer"&&(a=await Fu(i.iLayer)),a}function _b(t){let e;switch(t){case"f32":e=me.Single;break;case"f64":e=me.Double;break;default:e=me.Integer;break}return e}function xu(t){if(!t.loaded)throw new Error("Raster layer must be loaded to get its ID field name");let e=t.serviceRasterInfo?.attributeTable?.fields.find(i=>i.type==="oid");return e?e.name:Cu}function Vb(t){let{layer:e,rasterInfo:i,usePopupTemplateFieldsInfo:a}=t,r=i??e.serviceRasterInfo??void 0,n;if(!e.loaded||!r)throw new Error("Raster layer must be loaded and have rasterInfo available to fetch its fields info");try{if(r.attributeTable)n=r.attributeTable.fields.map(s=>s.toJSON());else{let s=_b(r.pixelType),o=r.bandInfos.map(l=>({name:l.name,alias:l.name,type:s}));a===!0&&e?.popupTemplate?.fieldInfos!==void 0&&o.map(l=>{let d=e.popupTemplate?.fieldInfos?.find(c=>c.fieldName?.toLowerCase()===l.name.toLowerCase())?.label;return d&&d!==l.name&&(l.alias=d),l}),n=[{name:Cu,alias:"Pixel ID",type:me.OID},...o]}}catch{n=[]}return n}var Tu=Ni(async t=>{let e={},i=t.layerDefinition;e.definitionExpression=i?.definitionExpression,e.id=t.id,t.url!==void 0&&(e.url=t.url),t.itemId!==void 0&&t.layerDefinition?.id!==void 0&&(e.portalItem={id:t.itemId});let a=new Cy(e);return await a.load(),a},t=>JSON.stringify(t,Object.keys(t).sort())),Fu=Ni(async t=>{let e={};e.id=t.id,t.url!==void 0&&(e.url=t.url),t.itemId!==void 0&&(e.portalItem={id:t.itemId});let i=new xy(e);return await i.load(),i},t=>JSON.stringify(t,Object.keys(t).sort())),hs=(t,e)=>{let i,a=t.serviceRasterInfo?.bandInfos;if(e&&a&&a.length>0){let r=e.toLowerCase(),n=a.findIndex(s=>s.name.toLowerCase()===r);n>-1&&(i=n)}return i},L1=t=>{let{chartConfig:e,layer:i,selectionDataItems:a}=t,r=J(e.series),n;switch(r){case y.HistogramSeries:n=Fb({chartConfig:e,layer:i,selectionDataItems:a});break;case y.ScatterSeries:n=qb({chartConfig:e,layer:i,selectionDataItems:a});break;default:n=void 0;break}return n};async function zb(t){let{queryObject:e,queryConfig:i,imagerySkipFactor:a,imageryMaxPixelCount:r,abortKey:n}=t,s=[];if(e!==void 0)try{let o=Se(e);o.loaded||await o.load();let l={geometry:Wa(i.geometry)??o.fullExtent,autoResample:!0,maxPixelCount:r,skipFactor:a},d=n&&Ar.get(n)?.signal||void 0,c=await Iy(o,l,{signal:d});s=ou.fromJSON(c.featureSet).features}catch{s=[]}return s}function Ub(t){let{queryObject:e,defaultGeometry:i,ignoreViewExtent:a,viewExtent:r}=t,n=i;if(!a&&r){let{xmin:s,xmax:o,ymin:l,ymax:d,zmin:c,zmax:u}=r;n={xmin:s,ymin:l,zmin:c,xmax:o,ymax:d,zmax:u,spatialReference:r.spatialReference.toJSON()}}else if(!n&&e.fullExtent){let{xmin:s,xmax:o,ymin:l,ymax:d,zmin:c,zmax:u}=e.fullExtent;n={xmin:s,ymin:l,zmin:c,xmax:o,ymax:d,zmax:u,spatialReference:e.fullExtent.spatialReference.toJSON()}}return n}function $1(t){let e,i,a;return t!==void 0&&(e=t.type,(e===We.UniqueValue||e===We.ClassBreaks)&&(i=t.field??void 0,e===We.ClassBreaks&&(a=t.normalizationField??void 0))),{rendererType:e,rendererField:i,rendererNormalizationField:a}}var Ou=Ni(async(t,e)=>{let i=t.featureCollection,a,r;if(i?.layers?.[0]!==void 0){let o=i.layers[0];a=o.featureSet,r=o.layerDefinition}else r=t.layerDefinition;let n={};if(a!==void 0){if(n.source=ou.fromJSON(a).features,r?.fields!==void 0&&(n.fields=r.fields.map(o=>vy.fromJSON(o))),r?.objectIdField!==void 0&&(n.objectIdField=r.objectIdField),r?.geometryType!==void 0){let o=ys.fromJSON({geometryType:r.geometryType});o?.type!==void 0&&o?.type!=="extent"&&(n.geometryType=o.type)}r?.spatialReference!==void 0&&(n.spatialReference=r.spatialReference)}else n.id=t.id,r?.id!==void 0&&(n.layerId=r.id),t.url!==void 0&&(n.url=t.url),t.itemId!==void 0&&r?.id!==void 0&&(n.portalItem={id:t.itemId});if(r!==void 0){let o=r.drawingInfo;o?.renderer!==void 0&&(n.renderer=ms.fromJSON(o.renderer))}let s=new gy(n);return await s.load({signal:e}),s},t=>JSON.stringify(t));async function N1(t){let e;switch(t?.layerType??""){case"ArcGISFeatureLayer":e=await Ou(t);break;case"ArcGISImageServiceLayer":e=await Tu(t);break;case"ArcGISTiledImageServiceLayer":e=await Fu(t);break;default:throw new ze(Qe.LayerNotSupported)}return e}async function R1(t){let{layer:e,view:i,chartConfig:a,filterByExtent:r,abortSignal:n}=t,s=mt(e)||Yg(a),o;if(s)o=await jb(t);else{let l=Se(e),d=Ze(l);d!==void 0?r&&i!==void 0&&!d.isTable?(d.outFields=["*"],o=await i.whenLayerView(d)):o=e:a?.iLayer&&a.iLayer?.layerType==="ArcGISFeatureLayer"&&(o=await Ou(a.iLayer,n))}return o}function Pi(t,e){let i=Se(t),a=[];if(i!==void 0){let r=e===!0&&i?.popupTemplate?.fieldInfos!==void 0;mt(i)?a=Vb({layer:i,usePopupTemplateFieldsInfo:e}):a=i.fields.map(n=>{let s=n.toJSON();if(r){let o=i.popupTemplate?.fieldInfos?.find(l=>l.fieldName?.toLowerCase()===n.name.toLowerCase())?.label;o!==void 0&&o!==n.name&&(s.alias=o)}return s})}return a}function Pu(t,e=[]){return e.find(i=>i.name===t)}function Au(t){let e,i=!1;if(mt(t))e=[xu(t)];else{let a=Ze(t);a&&("uniqueIdFields"in a&&a.uniqueIdFields&&a.uniqueIdFields.length>0?e=a.uniqueIdFields:(e=[a.objectIdField],i=!0))}return{idFields:e,isTraditionalTypeOID:i}}function Is(t){let e="",i=!1;if(mt(t))e=xu(t);else if(t){let a=Au(t);i=a.isTraditionalTypeOID,a.idFields&&(e=a.idFields[0])}return{idField:e,isTraditionalTypeOID:i}}function Cs(t){let e=[me.Single,me.Double,me.SmallInteger,me.Integer,me.BigInteger];return t!==void 0&&e.includes(t.type)}function Hb(t){return t?.type===me.Date||t?.type===me.DateOnly||t?.type===me.TimestampOffset}function M1(t){return t?.type===me.String}function k1(t){return t?.type===me.TimeOnly}function B1(t){let e=[me.SmallInteger,me.Integer,me.BigInteger];return t!==void 0&&e.includes(t.type)}function q1(t){return t.filter(e=>Hb(e)).map(e=>e.name)}function W1(t){return t.filter(e=>Cs(e)).map(e=>e.name)}function Gb(t,e){let i;if(e){let a=Se(t).getFieldDomain(e);a instanceof by&&(i=a)}return i}function Qb(t,e){let i=e?.getName(t?.toString())??e?.getName(t)??e?.getName(Number(t));return i===null&&(i=void 0),i}function j1(t){let{queryObject:e,fieldName:i,fieldValue:a}=t;return mt(e)?void 0:Qb(a,Gb(e,i))}async function _1(t){let e=[];return t&&!Ze(t)?.isTable&&t.fieldsIndex&&(e=await su.getRendererFields(t.renderer,t.fieldsIndex)),e}function Zb(t){let e="/rest/services",i=t.toLowerCase(),a=i.indexOf(e);return i=a>-1?t.substring(0,a):t,`${i}/rest/info`}async function V1(t){let e=!0,i=".arcgis.com/",a=t?.url,r=a?.includes(i);if(a&&r&&Ze(t)?.sourceJSON?.serviceItemId!==void 0){let n=Zb(a);try{let s=(await La(n,{query:{f:"json"}})).data;if(s.owningTenant!==void 0&&s.owningSystemUrl!==void 0){let o=`${s.owningSystemUrl}/sharing/rest/portals/${s.owningTenant}`,l=(await La(o,{authMode:"auto",query:{f:"json"}})).data,d=new Sy({sourceJSON:l});await d.load(),e=d?.sourceJSON?.subscriptionInfo?.dataStoreLevel===void 0}}catch{}}return e}function Jb(t){let{queryObject:e,fieldToMatch:i,returnUndefinedIfNotFound:a}=t,r=Pi(e),n=Yb(r,i),s=a?"":i;return n?.name??s}function Yb(t,e){let i=t.find(a=>e===a.name);return i||(i=t.find(a=>e.toUpperCase()===a.name.toUpperCase())),i}function z1(t){let{fieldsList:e,queryObject:i,returnUndefinedIfNotFound:a}=t,r=e;return r!==void 0&&(r=r.map(n=>Jb({queryObject:i,fieldToMatch:n,returnUndefinedIfNotFound:a}))),r}function U1(t){let{queryObject:e,chartConfig:i,runtimeDataFilters:a,ignoreViewExtent:r,viewExtent:n}=t,{series:s,dataFilters:o}=i,{where:l,gdbVersion:d,timeExtent:c,geometry:u,distance:f,units:p,objectIds:h,spatialRelationship:b}=o??{},{where:m,gdbVersion:w,timeExtent:C,geometry:I,distance:O,units:P,objectIds:A,spatialRelationship:M}=a??{},N=s[0],{query:E}=N,{where:R}=E??{},k=Oe(s),L={...E};return L.where=Ra([l,m]),k!==F.BarAndLineSplitBy&&k!==F.BoxPlotMonoFieldAndSplitBy&&k!==F.BoxPlotMonoFieldAndCategoryAndSplitBy&&k!==F.BoxPlotMultiFieldsAndSplitBy&&k!==F.BarAndLineSplitByNoAggregation&&(L.where=Ra([L.where,R])),i.orderOptions?.orderByFields!==void 0&&(L.orderByFields=i.orderOptions.orderByFields),L.gdbVersion=w??d,L.timeExtent=ub(e,C??c),L.geometry=mt(e)?Ub({queryObject:e,defaultGeometry:I??u,ignoreViewExtent:r,viewExtent:n}):pb({queryObject:e,defaultGeometry:I??u,ignoreViewExtent:r}),L.distance=O??f,L.units=P??p,L.objectIds=A??h,L.spatialRelationship=M??b,E?.outStatistics?.[0]?.statisticType===pe.Count&&(L.returnDistinctValues=E?.returnDistinctValues??!1),L}var Kb=t=>{let e;if("portalItem"in t){let i=t.portalItem?.id;typeof i=="string"&&(e=i)}return e};function H1(t){let{view:e,portalItemId:i}=t,a;if(e&&i){let r=Array.from(e.map?.allLayers??[]).find(n=>Kb(n)===i);r&&(a=r)}return a}var Tr=["1.0.0","1.0.1","2.0.0","3.0.0","3.1.0","3.2.0","3.3.0","3.4.0","3.5.0","3.6.0","3.7.0","3.8.0","3.9.0","3.9.1","3.9.2","3.10.0","3.11.0","4.0.0","4.0.1","5.0.0","6.0.0","6.1.0","6.2.0","6.2.1","6.3.0","6.4.0","7.0.0","7.1.0","7.1.1","7.2.0","7.2.1","7.3.1","7.4.0","7.4.1","7.5.0","7.5.1","7.6.0","8.0.0","8.0.1","9.0.0","9.1.0","9.2.0","9.3.0","9.4.0","9.5.0","9.6.0","9.6.1","9.7.0","10.0.0","11.0.0","12.0.0","13.0.0","14.0.0","14.0.1","15.0.0","16.0.0","16.1.0","16.1.1","17.0.0","17.1.0","17.2.0","17.2.1","18.0.0","18.1.0","18.1.1","18.1.2","18.1.3","19.0.0","20.0.0","20.1.0","20.2.0","21.0.0","21.1.0","22.0.0","23.0.0","23.1.0","23.2.0","23.3.0","24.0.0","24.1.0","24.2.0","24.3.0","24.4.0","24.5.0","24.6.0","24.7.0","24.8.0","25.0.0"],Xb="1.0.0",ev="unrecognized.version",tv=[y.LineSeries,y.BarSeries,y.ComboLineAndBarSeries,y.RadarSeries];function ds(t,e){let i=0;if(t!==e){let a=t.split("."),r=e.split(".");for(let n=0;n<a.length;n+=1){let s=Number.parseInt(a[n],10),o=Number.parseInt(r[n],10);if(s>o||Number.isNaN(o)){i=1;break}if(s<o){i=-1;break}}}return i}function rv(t){return t!==void 0?/^([1-9]\d*|0)(\.(([1-9]\d*)|0)){2}$/u.test(t):!1}function iv(t){let e=Qt.Same,i=[];if(rv(t)&&t!==void 0){Tr.sort(ds);let a=ds(t,Tr[Tr.length-1]);if(a===1?e=Qt.Newer:a===-1&&(e=Qt.Older),e===Qt.Newer||e===Qt.Same)i.push(t);else{for(let r=Tr.length-2;r>=0;r-=1)if(ds(t,Tr[r])>=0){i=Tr.slice(r,Tr.length);break}i.length===0&&i.push(Xb)}}else e=Qt.Unrecognized,i.push(ev);return{versionStatus:e,versions:i}}function xs(t){let{series:e}=t,i=("showMean"in t?t.showMean:!1)===!0?e.find(a=>a.type===y.LineSeries):e[0];return i??=e[0],i}function G1(t,e){let i=t!==null?t.toString():null,a=e!=null?e.toString():null;return a!==null&&a!==i?de.SFS:de.SLS}function Ai(t,e){let i="";return t!==void 0&&t.includes("=")&&(i=e!==!1?mu({value:t.split("=")[0]}):t.split("=")[0].trim()),i}function ht(t){let{where:e,normalize:i,keepSurroundingQuotes:a,escape:r}=t,n="";return e!==void 0&&e.includes("=")&&(n=e.split("=").slice(1).join("=").trim(),n==="null"?n=null:n.trim()!==""&&!Number.isNaN(Number(n))?n=Number(n):i===!1?r===!0&&(n=qg(n)):n=mu({value:n,keepSurroundingQuotes:a,escape:r})),n}function ti(t){let e=!1;if(t===void 0||t==="")e=!0;else if(t.includes("=")){let i=Ai(t,!1),a=ht({where:t,normalize:!1});e=i===`${a}`}return e}function Q1(t){let{where:e,normalize:i,escape:a}=t,r=i===void 0?!0:i,n=Ai(e),s=ht({where:e,normalize:r,keepSurroundingQuotes:!0,escape:a}),o=e;return n!==""&&s!==""&&(o=`${n}=${s}`),o}function av(t){let e=F.PieFromCategory;return t[0].query?.outStatistics===void 0?e=F.PieNoAggregation:t[0].query?.groupByFieldsForStatistics===void 0&&(e=F.PieFromFields),e}function nv(t){let e=F.BarAndLineMonoField,i=t[0].query?.where;return t[0].query?.groupByFieldsForStatistics===void 0&&(t[0].query?.outStatistics??[]).length>0?e=F.BarAndLineFromFields:i===void 0&&t[0].query?.outStatistics===void 0?e=F.BarAndLineNoAggregation:ti(i)?t.length>1&&(e=F.BarAndLineMultiFields):e=t[0].query?.outStatistics===void 0?F.BarAndLineSplitByNoAggregation:F.BarAndLineSplitBy,e}function sv(t){let e=F.BoxPlotMonoField,i=t.length===1,a=t.find(o=>o.type===y.LineSeries)??t[0],{x:r}=a,n="y"in a?a.y:"",s=a.query?.where;switch(r){case ka:typeof n=="object"&&n.length>1?ti(s)?i&&(e=F.BoxPlotMultiFields):e=F.BoxPlotMultiFieldsAndSplitBy:i?e=F.BoxPlotMonoField:ti(s)||(e=F.BoxPlotMonoFieldAndSplitBy);break;default:i?e=F.BoxPlotMonoFieldAndCategory:ti(s)?e=F.BoxPlotMultiFieldsAndCategory:e=F.BoxPlotMonoFieldAndCategoryAndSplitBy;break}return e}function Oe(t){let e=F.NonSpecific;if(t?.[0]!==void 0)switch(J(t)){case y.PieSeries:e=av(t);break;case y.RadarSeries:case y.BarSeries:case y.LineSeries:case y.ComboLineAndBarSeries:e=nv(t);break;case y.BoxPlotSeries:e=sv(t);break}return e}function Eu(t){let{seriesConfig:e,xAxisValueFormatType:i,setTimeBinningInfoWhenNotProvided:a,queryObject:r}=t,n=!1;if(!mt(r)&&Se(r)?.fields?.find(s=>s.name===e.x)?.type!=="time-only"&&ii(e)&&e.binTemporalData!==!1&&i===y.DateAxisFormat){let s=Oe([e]);if(e.temporalBinning&&s!==F.BarAndLineNoAggregation&&s!==F.BarAndLineSplitByNoAggregation){let{unit:o,size:l}=e.temporalBinning;n=a===!0||l!==void 0&&l>0&&o!==void 0}}return n}function ii(t){return tv.includes(t?.type)}function ov(t){let{previousConfig:e,newConfig:i,behaviorAfterLimit:a}=t,r=e.series,n=i.series,s=!1,o=!1;(a===bs.RenderUpToTheLimit||e.orderOptions?.data===void 0||i.orderOptions?.data===void 0)&&(o=!yr(e.orderOptions?.orderByFields,i.orderOptions?.orderByFields));let l=Za(r.map(c=>c.query),["where","outStatistics[0].outStatisticFieldName","outStatistics[0].onStatisticField"]),d=Za(n.map(c=>c.query),["where","outStatistics[0].outStatisticFieldName","outStatistics[0].onStatisticField"]);return s=!yr(l,d),s||o}function lv(t,e){return JSON.stringify(t.dataFilters)!==JSON.stringify(e.dataFilters)}function dv(t,e){let i=!1;if(e.length&&t.length)if(e[0].x!==t[0].x)i=!0;else{let a=J(t);if(a!==y.HistogramSeries&&a!==y.GaugeSeries){let r=_t(t).sort(),n=_t(e).sort();i=JSON.stringify(r)!==JSON.stringify(n)}}return i}function cv(t,e){return(t??!1)!==(e?.filterBySelection??!1)}function uv(t,e){return ii(t.series[0])&&ii(e.series[0])&&(t.series[0].binTemporalData??j.binTemporalData)!==(e.series[0].binTemporalData??j.binTemporalData)}function pv(t,e){let i=t.axes?.[0].valueFormat.type,a=e.axes?.[0].valueFormat.type,r=Oe(e.series),n=r===F.BarAndLineNoAggregation||r===F.BarAndLineSplitByNoAggregation,s=i===y.DateAxisFormat&&a===y.NumberAxisFormat,o=i===y.NumberAxisFormat&&a===y.DateAxisFormat;return i!==a&&(n||s||o)}function fv(t){let{previousSeries:e,newConfig:i,setTimeBinningInfoWhenNotProvided:a,queryObject:r}=t,n=i.series?.[0],s=!1,o=!1;if(n&&ii(n)&&Eu({seriesConfig:n,xAxisValueFormatType:Ny(i),setTimeBinningInfoWhenNotProvided:a,queryObject:r})){let l=e[0];s=JSON.stringify(l.temporalBinning)!==JSON.stringify(n.temporalBinning),o=a===!0&&(n.temporalBinning?.size??0)<=0}return{timeBinningChanged:s,newTimeBinningWillBeCalculated:o}}function eu(t,e){return e.length!==t.length}function hv(t,e){return Jc(t)!==Jc(e)}function mv(t,e){return JSON.stringify(t.series[0]?.valueConversion)!==JSON.stringify(e.series[0]?.valueConversion)}function yv(t,e){return JSON.stringify(t.series[0]?.xTemporalBinning)!==JSON.stringify(e.series[0]?.xTemporalBinning)||JSON.stringify(t.series[0]?.yTemporalBinning)!==JSON.stringify(e.series[0]?.yTemporalBinning)||(t.firstDayOfWeek??7)!==(e.firstDayOfWeek??7)||t.outTimeZone!==e.outTimeZone||(t.nullPolicy??Ri.Null)!==(e.nullPolicy??Ri.Null)}function gv(t,e){return(t.hideEmptyRowsAndColumns??!1)!==(e.hideEmptyRowsAndColumns??!1)}function bv(t,e){return(t.includeLeapDay??ri.heatChart.includeLeapDay)!==(e.includeLeapDay??ri.heatChart.includeLeapDay)}function vv(t){let{previousConfig:e,newConfig:i,fieldList:a}=t,r=e.series[0],n=i.series[0],s=!1;if(r.type===y.ScatterSeries&&n.type===y.ScatterSeries&&a&&a.length>0){let o=new Set(r.additionalTooltipFields||[]),l=new Set(n.additionalTooltipFields||[]);if(!yr(o,l)){let d=Array.from(l).filter(c=>!o.has(c));d.length>0&&(s=a?.some(c=>d.includes(c.name)&&!Cs(c)))}}return s}function Z1(t,e){return(t.colorMatch??!1)!==(e.colorMatch??!1)}function J1(t,e){return(t.stackedType??Xe.Side)!==(e.stackedType??Xe.Side)}function Ma(t){let e={...t};return e.position===void 0&&(e.position=ri.heatChart.legend.position),e}function Y1(t,e){let i=t.legend??{type:y.Legend},a=e.legend??{type:y.Legend},r=Ma(i),n=Ma(a);return!yr(r,n)}function K1(t,e){let i=t.legend??{type:y.Legend},a=e.legend??{type:y.Legend},r=Ma(i),n=Ma(a);return r.position!==n.position}function X1(t,e){return JSON.stringify(t.series[0]?.gradientRules)!==JSON.stringify(e.series[0]?.gradientRules)}function eI(t,e){return t.series[0].heatRulesType!==e.series[0].heatRulesType}function tI(t){let{oldConfig:e,newConfig:i}=t,a=!1,r=e.series[0],n=i.series[0],s=J(e.series),o=J(i.series);if(s===y.PieSeries&&o===y.PieSeries){let{slices:l,sliceGrouping:d}=r,{slices:c,sliceGrouping:u}=n,f=l?.map(m=>({sliceId:m.sliceId,label:m.label})),p=c?.map(m=>({sliceId:m.sliceId,label:m.label})),h=d?.label,b=u?.label;a=JSON.stringify(f)!==JSON.stringify(p)||JSON.stringify(h)!==JSON.stringify(b)}return a}function Sv(t){let{previousSelectionOIDs:e,options:i}=t,a=!1;return i?.filterBySelection===!0&&(a=e?.length!==i?.selectionData?.selectionOIDs?.length||!yr(e,i?.selectionData?.selectionOIDs)),a}function rI(t,e){return t?.length!==e?.length||t?.some((i,a)=>{let r=ht({where:i?.query?.where}),n=ht({where:e?.[a]?.query?.where});return r!==n})}function iI(t,e){let i=_t(t),a=_t(e);return JSON.stringify(i)!==JSON.stringify(a)}function aI(t,e){let i,a,r,n;return ii(t.series[0])&&(i=t.series[0].temporalBinning?.unit,r=t.series[0].temporalBinning?.size),ii(e.series[0])&&(a=e.series[0].temporalBinning?.unit,n=e.series[0].temporalBinning?.size),Zc(i,r)&&!Zc(a,n)}function nI(t,e){return t.axes?.length===3&&e.axes?.length===2||t.axes?.length===2&&e.axes?.length===3}function sI(t,e){return JSON.stringify(t.series.map(i=>i.assignToSecondValueAxis??!1))!==JSON.stringify(e.series.map(i=>i.assignToSecondValueAxis??!1))}function oI(t,e){let i=t.axes?.map(r=>r?.guides?.map(n=>n?.above===!0)),a=e.axes?.map(r=>r?.guides?.map(n=>n?.above===!0));return JSON.stringify(i)!==JSON.stringify(a)}function lI(t,e){return Yc(t)!==Yc(e)}function dI(t,e){return(t.showOutliers??j.boxPlot.boxPlotOutliersVisibility)!==(e.showOutliers??j.boxPlot.boxPlotOutliersVisibility)}function cI(t,e){return(t.standardizeValues??j.boxPlot.boxPlotStandardizeValuesVisibility)!==(e.standardizeValues??j.boxPlot.boxPlotStandardizeValuesVisibility)}function uI(t,e){return JSON.stringify(t?.chartRenderer)!==JSON.stringify(e?.chartRenderer)}function pI(t,e){let i=t.axes?.[0].valueFormat.type===y.DateAxisFormat?t.axes[0].valueFormat.intlOptions.timeZone:void 0,a=e.axes?.[0].valueFormat.type===y.DateAxisFormat?e.axes[0].valueFormat.intlOptions.timeZone:void 0;return i!==a}function fI(t,e){let i=!1,a=t.series[0],r=e.series[0];if(a.type===y.ScatterSeries&&r.type===y.ScatterSeries){let{sizePolicy:n}=a,{sizePolicy:s}=r;i=JSON.stringify(n)!==JSON.stringify(s)}return i}function hI(t,e){let i=!1,a=t.series[0],r=e.series[0];if(a.type===y.ScatterSeries&&r.type===y.ScatterSeries){let{sizePolicy:n}=a,{sizePolicy:s}=r;i=n===void 0&&s!==void 0||n!==void 0&&s===void 0||n?.field!==s?.field}return i}function mI(t){let{previousConfig:e,newConfig:i,options:a,previousFilterBySelection:r,previousSelectionOIDs:n,fieldList:s,queryObject:o}=t,{series:l}=i,{series:d}=e,c=J(l),u=!1,f=!1,p=!1,h={common:{layerChanged:!1,queryChanged:!1,xOrYChanged:!1,numberOfSeriesChanged:!1,configFiltersChanged:!1,filterBySelectionChanged:!1,dataForFilterBySelectionChanged:!1,binTemporalDataChanged:!1,timeBinningChanged:!1,newTimeBinningWillBeCalculated:!1,valueFormatChangeRequiresNewData:!1},histogram:{dataPropsChanged:!1},gauge:{valueConversionChanged:!1},boxPlot:{showMeanChanged:!1},heatChart:{binningChanged:!1,hideEmptyRowsAndColumnsChanged:!1,includeLeapDay:!1},scatterPlot:{tooltipFieldsChanged:!1}};switch(h.common.queryChanged=ov({previousConfig:e,newConfig:i,behaviorAfterLimit:a?.chartLimits?.behaviorAfterLimit}),h.common.configFiltersChanged=lv(e,i),h.common.xOrYChanged=dv(d,l),h.common.filterBySelectionChanged=cv(r,a),h.common.dataForFilterBySelectionChanged=Sv({previousSelectionOIDs:n,options:a}),h.common.binTemporalDataChanged=uv(e,i),h.common.valueFormatChangeRequiresNewData=pv(e,i),h.common={...h.common,...fv({previousSeries:d,newConfig:i,setTimeBinningInfoWhenNotProvided:a?.setTimeBinningInfoWhenNotProvided,queryObject:o})},c){case y.HistogramSeries:h.histogram.dataPropsChanged=Rg(d,l)||Ng(d,l);break;case y.LineSeries:case y.BarSeries:case y.ComboLineAndBarSeries:h.common.numberOfSeriesChanged=eu(d,l);break;case y.BoxPlotSeries:Pr(e)&&Pr(i)&&(h.common.numberOfSeriesChanged=eu(d,l),h.boxPlot.showMeanChanged=hv(e,i));break;case y.GaugeSeries:h.gauge.valueConversionChanged=mv(e,i);break;case y.HeatSeries:Na(e)&&Na(i)&&(h.heatChart.binningChanged=yv(e,i),h.heatChart.hideEmptyRowsAndColumnsChanged=gv(e,i),h.heatChart.includeLeapDay=bv(e,i));break;case y.ScatterSeries:h.scatterPlot.tooltipFieldsChanged=vv({previousConfig:e,newConfig:i,fieldList:s});break}return f=Object.values(h.common).some(b=>b),(h.gauge.valueConversionChanged||h.histogram.dataPropsChanged||h.boxPlot.showMeanChanged||h.heatChart.binningChanged||h.heatChart.hideEmptyRowsAndColumnsChanged||h.heatChart.includeLeapDay||h.scatterPlot.tooltipFieldsChanged)&&(p=!0),u=f||p,{dataUpdateNeeded:u,dataUpdateDetails:h}}function yI(t,e){let i=Ga(t);if(i&&i.series.length>1){let{preferLabel:a,orderBy:r}=i.orderOptions?.series??{};if(r!==void 0){let n;if(a===!1){let s=Oe(i.series);n=yu(s)?"splitByValue":"name"}else n="name";i.series.sort((s,o)=>{let l,d;n==="splitByValue"?(l=ht({where:s.query?.where})??"",d=ht({where:o.query?.where})??""):(l=s.name,d=o.name);let[c,u]=r.toUpperCase()===ke.Descending?[d,l]:[l,d];return typeof c=="string"&&typeof u=="string"?c.localeCompare(u):Number(c)-Number(u)})}}return mg({data:i?.series.map(a=>a.id),htmlContainer:e}),i}function wv(t){let e,i=t?.orderOptions?.data;return t.series?.length>0&&i?.orderType===et.MultiAxes&&(e=[],e.push({sortingField:Or.xField,orderBy:i.orderByX??ke.Ascending}),e.push({sortingField:i.orderByY!==void 0?Or.yField:"",orderBy:i.orderByY})),e}function Iv(t){let e=Oe(t.series),i;if(t.orderOptions?.data!==void 0){let a=t.orderOptions?.data?.orderType??et.Category,r=t.orderOptions?.data&&"orderBy"in t.orderOptions.data?t.orderOptions.data.orderBy:void 0;if(a===et.Category)a=t.series[0].x;else{a===et.Mean?a=he.Average:a===et.Median&&(a=he.Median);let n=e===F.BoxPlotMultiFieldsAndCategory&&typeof t.series[0].y=="string"?t.series[0].y:void 0,s=Ai(t.series[0].query?.where),o=ht({where:t.series[0].query?.where});a=Fi({key:a,y:n,chartSubType:e,splitBy:s,splitByValue:o}),Array.isArray(r)&&(r=ke.Ascending)}i={sortingField:a,orderBy:r??ke.Ascending,preferLabel:t.orderOptions.data&&"preferLabel"in t.orderOptions.data?t.orderOptions.data.preferLabel??!0:!0}}return i}function Cv(t){let e=t.series[0],{x:i,y:a}=e,r=Oe(t.series)===F.PieFromFields,n=Oe(t.series)===F.BarAndLineFromFields,s,o="",l;if(t.orderOptions?.data!==void 0){let d=t.orderOptions.data&&"preferLabel"in t.orderOptions.data?t.orderOptions.data.preferLabel:!0;if(o=t.orderOptions?.data?.orderType??et.Category,l=t.orderOptions?.data&&"orderBy"in t.orderOptions.data?t.orderOptions.data.orderBy:void 0,o===et.Category?r?o=Lt:o=d?i:ri.originalCategoryValue:o=r?Fr:[a].flat()[0],o!==void 0&&o!==""){let c=Ss(t);if(J(t.series)!==y.PieSeries&&o!==i&&t.series?.length>1)switch(c){case Xe.Stacked:o=j.technicalSortingFieldBySum;break;case Xe.Stacked100:o=j.technicalSortingFieldByPercent;break;case Xe.Side:typeof a=="string"&&(o=a);break}s={sortingField:o,orderBy:l??ke.Ascending,preferLabel:d}}}else(n||r)&&t.series[0].query?.outStatistics&&(l=t.series[0].query.outStatistics.map(d=>d.onStatisticField),l?.length>1&&(s={sortingField:ri.originalCategoryValue,orderBy:l,preferLabel:!1}));return s}function tu(t){let e,i=J(t.series);if(t.series?.length>0){let a;switch(i){case y.HeatSeries:Na(t)&&(e=wv(t));break;case y.BoxPlotSeries:Pr(t)&&(a=Iv(t));break;case y.LineSeries:case y.BarSeries:case y.RadarSeries:case y.PieSeries:a=Cv(t);break}!e&&a&&(e=[],e.push(a))}return e}function gI(t){let{oldConfig:e,newConfig:i,dataWasUpdated:a}=t,r=J(i.series),n=Oe(i.series),s=!1,o=!1;if(n!==F.BoxPlotMonoField&&n!==F.BoxPlotMonoFieldAndSplitBy&&i.orderOptions?.data!==void 0){let l=tu(e),d=tu(i);if(r===y.HeatSeries){let c=l?l[0]:void 0,u=d?d[0]:void 0,f=l?l[1]:void 0,p=d?d[1]:void 0;o=e.orderOptions?.data?.orderType!==i.orderOptions?.data?.orderType||c?.sortingField!==u?.sortingField||c?.orderBy!==u?.orderBy||f?.sortingField!==p?.sortingField||f?.orderBy!==p?.orderBy,s=o||a}else{let c=l?l[0]:void 0,u=d?d[0]:void 0;o=e.orderOptions?.data?.orderType!==i.orderOptions?.data?.orderType||c?.sortingField!==u?.sortingField||c?.orderBy!==u?.orderBy||(c?.preferLabel??!0)!==(u?.preferLabel??!0),s=o||a}}return s}function xv(t){let e=t===void 0||t==="";return{[he.Average]:`${e?"":`${t}_`}${he.Average}`,[he.Min]:`${e?"":`${t}_`}${he.Min}`,[he.Max]:`${e?"":`${t}_`}${he.Max}`,[he.FirstQuartile]:`${e?"":`${t}_`}${he.FirstQuartile}`,[he.Median]:`${e?"":`${t}_`}${he.Median}`,[he.ThirdQuartile]:`${e?"":`${t}_`}${he.ThirdQuartile}`,[he.IQR]:`${e?"":`${t}_`}${he.IQR}`,[he.Outlier]:`${e?"":`${t}_`}${he.Outlier}`,[he.StandardDeviation]:`${e?"":`${t}_`}${he.StandardDeviation}`}}function Tv(t){return"subType"in t&&t.subType===js.FeatureGauge}function Fv(t){let e;return t!==void 0&&("bins"in t?e=t.bins:"dataItems"in t&&(e=t.dataItems)),e}function Ov(t){return t===F.BoxPlotMultiFields||t===F.BoxPlotMultiFieldsAndCategory||t===F.BoxPlotMultiFieldsAndSplitBy}function Fi(t){let{key:e,y:i,chartSubType:a,splitBy:r,splitByValue:n,showOutliers:s,standardizeValues:o}=t,l=n,d=xv(i)[e];return s===!0&&(e===he.Min||e===he.Max)&&(d=`${d}${fg}`),o===!0&&(Ov(a)||e===he.Outlier)&&(d=`${d}${hg}`),(n===void 0||`${n}`.trim()==="")&&(l=ht({where:r,normalize:!0,escape:!1})),l!==void 0&&`${l}`.trim()!==""&&(d=`${l}${d!==""?`_${d}`:""}`),d}function cs(t){let{dataItem:e,y:i,splitBy:a,showOutliers:r}=t,n=Fi({key:he.FirstQuartile,y:i,splitBy:a,showOutliers:r}),s=Fi({key:he.ThirdQuartile,y:i,splitBy:a,showOutliers:r});return Number.isFinite(e[n])||Number.isFinite(e[s])}function Pv(t){let{configSeries:e,boxPlotDataItem:i,yList:a,showOutliers:r}=t,n=Oe(e),s=!1;switch(n){case F.BoxPlotMonoField:case F.BoxPlotMultiFields:case F.BoxPlotMonoFieldAndCategory:s=cs({dataItem:i,showOutliers:r});break;case F.BoxPlotMultiFieldsAndCategory:s=a.some(o=>cs({dataItem:i,y:o,showOutliers:r}));break;case F.BoxPlotMonoFieldAndSplitBy:case F.BoxPlotMultiFieldsAndSplitBy:case F.BoxPlotMonoFieldAndCategoryAndSplitBy:s=e.some(o=>cs({dataItem:i,splitBy:o.query?.where,showOutliers:r}));break;default:s=!1;break}return s}function Du(t){return t.map(e=>e.id).filter(e=>e!==void 0)}function _t(t,e){let i=[],a=e??Du(t),r=Oe(t);return i=t.filter(n=>a.includes(n.id)).map(n=>{let s="y"in n?n.y:void 0;return s!==void 0&&r===F.BarAndLineSplitByNoAggregation&&(s=`${s.toString()}_${ht({where:n.query?.where,keepSurroundingQuotes:!1,escape:!1})}`),s}).filter(n=>n!==void 0),Array.from(new Set(i.flat()))}function Av(t){let{seriesConfig:e,filteredSeriesIds:i,showMean:a}=t,r=[];if(a===!0){let n=e.find(s=>s.type===y.BoxPlotSeries);n!==void 0&&"y"in n&&(r=[n.y].flat())}else r=_t(e,i);return r}function sr(t,e){return t===null&&e===!0||Number.isFinite(t)}function Ev(t){let{dataItem:e,x:i,y:a,nullAsValid:r=!1}=t;return e[i]!==void 0&&(typeof e[i]!="number"||Number.isFinite(e[i]))&&sr(e[a],r)}function bI(t){let{chartConfig:e,nullAsValid:i=!1,dataSet:a}=t,r=!0;if(e!==void 0){let n=J(e.series);if(a===void 0||a.length===0)r=!0;else{let s=_t(e.series);r=!a.some(o=>{let l=!1;switch(n){case y.HistogramSeries:{let d=o;l=sr(d.minValue,i)&&sr(d.maxValue,i)}break;case y.ScatterSeries:{let d=o,{x:c,y:u}=e.series[0];l=sr(d[c],i)&&sr(d[u],i)}break;case y.ComboLineAndBarSeries:case y.RadarSeries:case y.LineSeries:case y.BarSeries:{let d=o,{x:c}=e.series[0];l=s.some(u=>Ev({dataItem:d,x:c,y:u,nullAsValid:i}));break}case y.BoxPlotSeries:{if(Pr(e)){let d=e.series;l=Pv({configSeries:d,boxPlotDataItem:o,yList:s,showOutliers:e.showOutliers})}break}case y.PieSeries:{let d=o,{x:c,y:u}=e.series[0];Oe(e.series)===F.PieFromFields&&(c=Lt,u=Fr);let f=d[u];l=d[c]!==void 0&&d[c]!==null&&!ks(f)&&sr(Number(f),i)}break;case y.GaugeSeries:{let{x:d}=e.series[0];l=sr(o[d],i)}break;case y.HeatSeries:l=a.some(d=>sr(d[Or.valueField],i));break}return l})}}return r}function Dv(t,e){let i=new Map,a=e??Du(t);return t.forEach(r=>{if(a.includes(r.id)&&"y"in r){let n=i.get(r.type)??[];n.push(r.y),i.set(r.type,n)}}),i}function Lv(t){let{seriesConfig:e,filteredSeriesIds:i,filteredData:a}=t,r=Dv(e,i),n=e.find(d=>d.type===y.LineSeries||d.type===y.RadarSeries)?.stackNegativeValuesToBaseline??!0,s=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER,l=!1;return a.forEach(d=>{r.forEach(c=>{if(n){let u=0,f=0,p=!1,h=!1;for(let b=0;b<c.length;b+=1){let m=d[c[b]];Number.isFinite(m)&&(m<0?(f+=m,h=!0,l=!0):(u+=m,p=!0))}s=p?Math.max(s,u):s,o=h?Math.min(o,f):o,p&&!h&&(o=Math.min(o,u)),!p&&h&&(s=Math.max(s,f)),p&&u<=0&&(l=!0)}else{let u=0;for(let f=0;f<c.length;f+=1){let p=d[c[f]];u+=p,s=Math.max(s,u),o=Math.min(o,u)}(s<=0||o<=0)&&(l=!0)}})}),{stackedMinY:o,stackedMaxY:s,dataHasNegativeValues:l}}function $v(t){let{dataItem:e,...i}=t,a=Fi({key:he.Min,...i}),r=Fi({key:he.Max,...i}),n=e[a],s=e[r];return{min:n,max:s}}function ru(t){let e=Number.NaN,i=Number.NaN,a,r,{chartConfig:n,chartData:s,filteredSeriesIds:o}=t,{series:l}=n;if(l?.length>0){let{x:d}=l[0],c=J(n.series);if(c===y.HistogramSeries&&s.length>0){let u=s[0]?.[Uc.Start],f=s[s.length-1]?.[Uc.End];a=typeof u=="number"?u:a,r=typeof f=="number"?f:r}else{let u=s.filter(f=>f[d]!==null);if({min:a,max:r}=fs(u,f=>f[d]),n.axes?.[0]?.valueFormat.type===y.DateAxisFormat&&a!==void 0&&r!==void 0&&([a,r]=[new Date(a).valueOf(),new Date(r).valueOf()]),c===y.BoxPlotSeries){e=Number.MAX_SAFE_INTEGER,i=Number.MIN_SAFE_INTEGER;let f=_t(l,o),p=Oe(l),h="standardizeValues"in n?n.standardizeValues===!0:void 0,b=n.series.map(m=>m.visible!==!1?ht({where:m.query?.where}):"");b.length===0&&b.push(" "),u.forEach(m=>{f.forEach(w=>{let C=p===F.BoxPlotMultiFieldsAndCategory?w:void 0;b.forEach(I=>{let{min:O,max:P}=$v({y:C,splitByValue:I,chartSubType:p,showOutliers:!1,standardizeValues:h,dataItem:m});O!=null&&O<e&&(e=O),P!=null&&P>i&&(i=P)})})})}else switch(Ss(n)){case Xe.Stacked100:case Xe.Stacked:{let{stackedMinY:f,stackedMaxY:p}=Lv({seriesConfig:l,filteredData:u,filteredSeriesIds:o});e=f,i=p;break}case Xe.Side:default:{e=Number.MAX_SAFE_INTEGER,i=Number.MIN_SAFE_INTEGER,_t(l,o).forEach(f=>{let{min:p,max:h}=fs(u,b=>b[f]);p!==void 0&&p<e&&(e=p),h!==void 0&&h>i&&(i=h)});break}}}}return{minY:e,maxY:i,minX:a,maxX:r}}function Nv(t){let{chartConfig:e,isSecondValueAxis:i,seriesIds:a}=t,r=a;return e.axes?.length===3&&(r=e.series.map(n=>{let s="";return(a===void 0||a.includes(n.id))&&(i===!0&&"assignToSecondValueAxis"in n&&n.assignToSecondValueAxis===!0||i!==!0&&(!("assignToSecondValueAxis"in n)||n.assignToSecondValueAxis!==!0))&&({id:s}=n),s}).filter(n=>n!=="")),r}function Rv(t){let e=!1;if(t){let i=t.axes?.[0],a=i?.isLogarithmic===!0,r=i?.valueFormat?.type;e=(r===y.NumberAxisFormat||r===y.DateAxisFormat)&&a}return e}function iu(t,e){let i=!1;return Number.isFinite(t)&&t!==Number.MAX_SAFE_INTEGER&&Number.isFinite(e)&&e!==Number.MIN_SAFE_INTEGER&&(i=t<=0||e<=0),i}function Mv(t){let{chartConfig:e,chartData:i,axisConfigIndex:a}=t,r=!1;if(a===0){if(Rv(e)){let{minX:n,maxX:s}=ru({chartConfig:e,chartData:i});r=iu(n,s)}}else{let n=Nv({chartConfig:e,isSecondValueAxis:a===2}),{minY:s,maxY:o}=ru({chartConfig:e,chartData:i,filteredSeriesIds:n});r=iu(s,o)}return r}function vI(t){let{chartConfig:e,axisConfigIndex:i,chartData:a}=t,r=!0,n=e?.axes?.[i];return e&&a&&n?.isLogarithmic===!0&&(r=!Mv({chartConfig:e,chartData:a,axisConfigIndex:i})),r}function kv(t,e){let i=t;if(e?.[0]!==void 0&&Oe(e)===F.PieFromFields){let{x:a,y:r}=e[0];(Ha(t)?i:i.dataItems).forEach(n=>(Lt in n&&a!==Lt&&(n[a]=n[a]!==void 0?n[a]:n[Lt],delete n[Lt]),Fr in n&&r!==Fr&&(n[r]=n[r]!==void 0?n[r]:n[Fr],delete n[Fr]),n))}return i}function Bv(t,e){let i=J(e),a=t,r=e?.[0];if((i===y.PieSeries||i===y.BoxPlotSeries||i===y.LineSeries||i===y.RadarSeries||i===y.BarSeries||i===y.HeatSeries||i===y.ComboLineAndBarSeries)&&r!==void 0){let n=Ha(t),s=n?t:t.dataItems;if(t!==void 0){let{originalCategoryValue:o,originalYCategoryValue:l,originalDateValue:d,xAxisField:c}=j,u=i===y.HeatSeries?Or.xField:r.x,f=i===y.HeatSeries?Or.yField:void 0;s=s.map(p=>{let h=p[u];p[d]!==void 0?h=p[d]:p[o]!==void 0&&(h=p[o]);let b={...p,[u]:h};if(delete b[d],delete b[o],delete b[c],f){let m=p[f];p[l]!==void 0&&(m=p[l]),b={...b,[f]:m},delete b[l]}return b}),n?a=s:"dataItems"in a&&(a.dataItems=s)}}return a}function au(t){let e={...t};delete e[j.technicalSortingFieldBySum],delete e[j.technicalSortingFieldByPercent],delete e[j.pieChart.technicalFieldSlicePercent],delete e[j.pieChart.technicalFieldGroupedSlices],delete e[j.lastTemporalBin],delete e[j.originalServerBinningRange],delete e[j.technicalFieldSplitByField],delete e[xt.uniqueIdsName],Object.keys(e).filter(a=>a.includes(j.rendererSymbolField)).forEach(a=>delete e[a]);let i=zg(e);return i.isInItem&&delete e[i.expr??""],e}function qv(t,e){let i=t,a=J(e),r=Fv(i);if(r!==void 0)switch(a){case y.ComboLineAndBarSeries:case y.BarSeries:case y.LineSeries:case y.RadarSeries:case y.PieSeries:{r=r.map(au),i={dataItems:r};let{timeIntervalInfo:n,serverLimitReached:s}=t??{};Qa(n)||(i.timeIntervalInfo=n),s!==void 0&&(i.serverLimitReached=s)}break;case y.ScatterSeries:i={...i,dataItems:r.map(au)};break}return i}var SI=(t,e)=>{let i=10**e;return Math.round(t*i)/i};function wI(t){let{data:e,seriesConfig:i}=t,a=Ga(e);return a!==void 0&&(a=Bv(a,i),a=qv(a,i),a=kv(a,i)),a}var ei={$schema:"http://json-schema.org/draft-07/schema#",definitions:{ValueConversion:{type:"object",properties:{factor:{type:"number",description:"A numeric value multiplying the value to convert."},offset:{type:"number",description:"A numeric offset to apply to the value to convert."}},description:"Stores information regarding a numeric conversion.",title:"ValueConversion"},WebChartAxisScrollBar:{type:"object",properties:{visible:{type:"boolean",description:"Scrollbar visibility.",default:!1},width:{type:"number",description:"Scrollbar width in pixels."},color:{$ref:"#/definitions/Color",description:"Scrollbar color."},gripSize:{type:"number",description:"Grip size in pixels."},margin:{type:"number",description:"Margin between the scrollbar and the series container in pixels."}},description:"Describes the properties of an axis scrollbar.",title:"WebChartAxisScrollBar"},Color:{type:"array",items:{type:"number"},minItems:4,maxItems:4,description:"Represents the color information (R, G, B, A).",title:"Color"},WebChartTextSymbol:{type:"object",properties:{xoffset:{type:["number","string"],description:"Horizontal offset. Can be a number for a fixed value in pixels, or a string such as `25%` for a value relative to the label's container width."},yoffset:{type:["number","string"],description:"Vertical offset. Can be a number for a fixed value in pixels, or a string such as `25%` for a value relative to the label's container height."},angle:{type:"number",description:"Rotation angle of the label."},style:{type:"string",description:"Label style."},type:{type:"string",const:"esriTS"},color:{$ref:"#/definitions/Color"},backgroundColor:{$ref:"#/definitions/Color"},borderLineSize:{type:"number"},borderLineColor:{$ref:"#/definitions/Color"},haloSize:{type:"number"},haloColor:{$ref:"#/definitions/Color"},verticalAlignment:{type:"string",enum:["baseline","bottom","middle","top"]},horizontalAlignment:{type:"string",enum:["center","justify","left","right"]},rightToLeft:{type:"boolean"},kerning:{type:"boolean"},font:{$ref:"#/definitions/IFont"},text:{type:"string",description:"Only applicable when specified as a client-side graphic."}},required:["type"],description:"Represents a text symbol.",title:"WebChartTextSymbol"},'Omit<ITextSymbol,("angle"|"style"|"xoffset"|"yoffset")>':{$ref:"#/definitions/Pick%3CITextSymbol%2CExclude%3C(%22type%22%7C%22color%22%7C%22backgroundColor%22%7C%22borderLineSize%22%7C%22borderLineColor%22%7C%22haloSize%22%7C%22haloColor%22%7C%22verticalAlignment%22%7C%22horizontalAlignment%22%7C%22rightToLeft%22%7C%22kerning%22%7C%22font%22%7C%22text%22%7C%22angle%22%7C%22xoffset%22%7C%22yoffset%22%7C%22style%22%7Cstring)%2C(%22angle%22%7C%22style%22%7C%22xoffset%22%7C%22yoffset%22)%3E%3E",title:'Omit<ITextSymbol,("angle"|"style"|"xoffset"|"yoffset")>'},'Pick<ITextSymbol,Exclude<("type"|"color"|"backgroundColor"|"borderLineSize"|"borderLineColor"|"haloSize"|"haloColor"|"verticalAlignment"|"horizontalAlignment"|"rightToLeft"|"kerning"|"font"|"text"|"angle"|"xoffset"|"yoffset"|"style"|string),("angle"|"style"|"xoffset"|"yoffset")>>':{type:"object",properties:{type:{type:"string",const:"esriTS"},color:{$ref:"#/definitions/Color"},backgroundColor:{$ref:"#/definitions/Color"},borderLineSize:{type:"number"},borderLineColor:{$ref:"#/definitions/Color"},haloSize:{type:"number"},haloColor:{$ref:"#/definitions/Color"},verticalAlignment:{type:"string",enum:["baseline","bottom","middle","top"]},horizontalAlignment:{type:"string",enum:["center","justify","left","right"]},rightToLeft:{type:"boolean"},kerning:{type:"boolean"},font:{$ref:"#/definitions/IFont"},text:{type:"string",description:"Only applicable when specified as a client-side graphic."}},required:["type"],title:'Pick<ITextSymbol,Exclude<("type"|"color"|"backgroundColor"|"borderLineSize"|"borderLineColor"|"haloSize"|"haloColor"|"verticalAlignment"|"horizontalAlignment"|"rightToLeft"|"kerning"|"font"|"text"|"angle"|"xoffset"|"yoffset"|"style"|string),("angle"|"style"|"xoffset"|"yoffset")>>'},IFont:{type:"object",properties:{family:{type:"string"},size:{type:"number"},style:{type:"string",enum:["italic","normal","oblique"]},weight:{type:"string",enum:["bold","bolder","lighter","normal"]},decoration:{type:"string",enum:["line-through","none","underline"]}},title:"IFont"},WebChartText:{type:"object",properties:{type:{type:"string",const:"chartText",description:"A unique string identifier for the `ChartText` object. This value is `chartText`."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},content:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains the styling information and text content."}},required:["type","content"],description:"Stores information on how some text is rendered on the chart and whether it is visible or not.",title:"WebChartText"},WebChartCursorCrosshair:{type:"object",properties:{type:{type:"string",const:"cursorCrosshair",description:"Represents a unique string identifier for the chart cursor's crosshair."},style:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling information on how the chart cursor's crosshair should be rendered."},verticalLineVisible:{type:"boolean",description:"Indicates whether the vertical crosshair line should be displayed.",default:!1},horizontalLineVisible:{type:"boolean",description:"Indicates whether the horizontal crosshair line should be displayed.",default:!1}},required:["type"],description:"JSON representation of the cursor's crosshair for a chart.",title:"WebChartCursorCrosshair"},ISimpleLineSymbol:{type:"object",properties:{type:{type:"string",const:"esriSLS"},style:{$ref:"#/definitions/SimpleLineSymbolStyle"},color:{$ref:"#/definitions/Color"},width:{type:"number"}},required:["type"],title:"ISimpleLineSymbol"},ISymbol:{type:"object",properties:{type:{$ref:"#/definitions/SymbolType"},style:{type:"string"}},required:["type"],title:"ISymbol"},SymbolType:{type:"string",enum:["esriPFS","esriPMS","esriSFS","esriSLS","esriSMS","esriTS"],title:"SymbolType"},SimpleLineSymbolStyle:{type:"string",enum:["esriSLSDash","esriSLSDashDot","esriSLSDashDotDot","esriSLSDot","esriSLSNull","esriSLSSolid"],title:"SimpleLineSymbolStyle"},WebChartLegend:{type:"object",properties:{type:{type:"string",const:"chartLegend",description:"A unique string identifier for the `ChartLegend` object. This value is `chartLegend`."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},title:{$ref:"#/definitions/WebChartText",description:"Contains styling information on how the title of the legend box should be rendered."},body:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains styling information on how legend body (excluding the `title`) should be rendered. Will use default styling if not provided."},position:{$ref:"#/definitions/WebChartLegendPositions",description:'Positions the legends at `"right"`, `"left"`, `"top"`, or `"bottom"` of the chart.',default:"`right`"},maxHeight:{type:["number","null"],description:"Legend's maximum height. If not set the legend will occupy the same height as the series container.",default:null},roundMarkers:{type:"boolean",description:"Allows the legend markers to be displayed as circles.\n- `false` or `undefined`: rounded rectangles\n- `true`: circles",default:!1}},required:["type"],description:"JSON representation of the chart's legend.",title:"WebChartLegend"},WebChartLegendPositions:{type:"string",enum:["left","right","top","bottom"],title:"WebChartLegendPositions"},WebChartNullCategory:{type:"object",properties:{text:{type:"string",description:"Specifies the text to use for the null category. If none is provided, the default `null` text will be used."},symbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling information on how the overlay should be rendered. If not provided a default style is applied.",default:"1 - symbol.outline.width"}},title:"WebChartNullCategory"},ISimpleFillSymbol:{type:"object",properties:{type:{type:"string",const:"esriSFS"},style:{$ref:"#/definitions/SimpleFillSymbolStyle"},color:{$ref:"#/definitions/Color"},outline:{$ref:"#/definitions/ISimpleLineSymbol"}},required:["type"],title:"ISimpleFillSymbol"},SimpleFillSymbolStyle:{type:"string",enum:["esriSFSBackwardDiagonal","esriSFSCross","esriSFSDiagonalCross","esriSFSForwardDiagonal","esriSFSHorizontal","esriSFSNull","esriSFSSolid","esriSFSVertical"],title:"SimpleFillSymbolStyle"},WebChartPieChartLegend:{type:"object",properties:{type:{type:"string",const:"chartLegend",description:"A unique string identifier for the `ChartLegend` object. This value is `chartLegend`."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},title:{$ref:"#/definitions/WebChartText",description:"Contains styling information on how the title of the legend box should be rendered."},body:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains styling information on how legend body (excluding the `title`) should be rendered. Will use default styling if not provided."},position:{$ref:"#/definitions/WebChartLegendPositions",description:'Positions the legends at `"right"`, `"left"`, `"top"`, or `"bottom"` of the chart.',default:"`right`"},maxHeight:{type:["number","null"],description:"Legend's maximum height. If not set the legend will occupy the same height as the series container.",default:null},roundMarkers:{type:"boolean",description:"Allows the legend markers to be displayed as circles.\n- `false` or `undefined`: rounded rectangles\n- `true`: circles",default:!1},displayCategory:{type:"boolean",description:"Indicates whether the category associated to a slice is to be displayed in the legend.",default:!0},displayNumericValue:{type:"boolean",description:"Indicates whether the numeric value associated to a slice is to be displayed in the legend. If both `displayNumericValue` and `displayPercentage` are true on a same label, they will be displayed as `percentage (value)`",default:!1},displayPercentage:{type:"boolean",description:"Indicates whether the percentage to a slice is to be displayed in the legend. If both `displayNumericValue` and `displayPercentage` are true on a same label, they will be displayed as `percentage (value)`",default:!1},labelMaxWidth:{type:"number",description:"Maximum width in pixels of the label displaying the slice name. If the label is larger than the maximum width, it will automatically wrap.",default:200},valueLabelMaxWidth:{type:"number",description:"Maximum width in pixels of the value label displaying the slice value. If the label is larger than the maximum width, it will automatically wrap.",default:200}},required:["type"],description:"Specific legend for pie charts",title:"WebChartPieChartLegend"},WebChartOverlay:{type:"object",properties:{type:{type:"string",const:"chartOverlay",description:"A unique string identifier for the `ChartOverlay` object. This value is `chartOverlay`."},created:{type:"boolean",description:"Determines whether the overlay is created under the hood. It may or may not be visible.",default:!1},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},symbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling information on how the overlay should be rendered. If not provided a default style is applied."}},required:["type"],description:"JSON representation of the chart's overlays such as the trendline in scatterplot, and the median overlay in histogram.",title:"WebChartOverlay"},NumberFormatOptions:{type:"object",properties:{type:{type:"string",const:"number",description:"Represents a unique string identifier for the `NumberFormatOptions` object. For the `NumberFormatOptions` object, it is `number`. It can help to differentiate numerical (value) axis from other types of axes such as date-time axis and category axis."},intlOptions:{$ref:"#/definitions/Intl.NumberFormatOptions",description:"Represents the JS native [Intl.NumberFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat), which is based on [CLDR](http://cldr.unicode.org/translation/numbers-currency/number-patterns) specifications."}},required:["type","intlOptions"],description:"Defines how the numerical(value) axis data should be formatted.",title:"NumberFormatOptions"},"Intl.NumberFormatOptions":{type:"object",properties:{localeMatcher:{type:"string",enum:["lookup","best fit"]},style:{$ref:"#/definitions/Intl.NumberFormatOptionsStyle"},currency:{type:"string"},currencyDisplay:{$ref:"#/definitions/Intl.NumberFormatOptionsCurrencyDisplay"},useGrouping:{$ref:"#/definitions/Intl.NumberFormatOptionsUseGrouping"},minimumIntegerDigits:{type:"number"},minimumFractionDigits:{type:"number"},maximumFractionDigits:{type:"number"},minimumSignificantDigits:{type:"number"},maximumSignificantDigits:{type:"number"}},title:"Intl.NumberFormatOptions"},"Intl.NumberFormatOptionsStyle":{title:"Intl.NumberFormatOptionsStyle"},"Intl.NumberFormatOptionsCurrencyDisplay":{title:"Intl.NumberFormatOptionsCurrencyDisplay"},"Intl.NumberFormatOptionsUseGrouping":{type:"boolean",title:"Intl.NumberFormatOptionsUseGrouping"},WebChartDateTimeUnitFormatOptions:{type:"object",properties:{year:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},month:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},day:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},hour:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},minute:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},second:{$ref:"#/definitions/Intl.DateTimeFormatOptions"}},description:"Interface used by the axis `valueFormat` property to describe how to format specific date and time units when displayed on the axis.",title:"WebChartDateTimeUnitFormatOptions"},"Intl.DateTimeFormatOptions":{type:"object",properties:{localeMatcher:{type:"string",enum:["best fit","lookup"]},weekday:{type:"string",enum:["long","short","narrow"]},era:{type:"string",enum:["long","short","narrow"]},year:{type:"string",enum:["numeric","2-digit"]},month:{type:"string",enum:["numeric","2-digit","long","short","narrow"]},day:{type:"string",enum:["numeric","2-digit"]},hour:{type:"string",enum:["numeric","2-digit"]},minute:{type:"string",enum:["numeric","2-digit"]},second:{type:"string",enum:["numeric","2-digit"]},timeZoneName:{type:"string",enum:["short","long","shortOffset","longOffset","shortGeneric","longGeneric"]},formatMatcher:{type:"string",enum:["best fit","basic"]},hour12:{type:"boolean"},timeZone:{type:"string"}},title:"Intl.DateTimeFormatOptions"},DateTimeFormatOptions:{type:"object",properties:{type:{type:"string",const:"date",description:"Represents a unique string identifier for the `NumberFormatOptions` object. For the `NumberFormatOptions` object, it is `date`. It can help to differentiate date-time axis from other types of axes such as numeric (value) axis and category axis."},intlOptions:{$ref:"#/definitions/Intl.DateTimeFormatOptions",description:"Represent the JS native [Intl.DateTimeFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat), which is based on [CLDR](http://cldr.unicode.org/translation/date-time-1/date-time-patterns) specifications."},formatPerDateTimeUnit:{$ref:"#/definitions/WebChartDateTimeUnitFormatOptions",description:"Represents how to format specific date and time units when displayed on the axis, independently from the `intlOptions`."}},required:["type","intlOptions"],description:"Defines how the `DateTime` axis data should be formatted.",title:"DateTimeFormatOptions"},CategoryFormatOptions:{type:"object",properties:{type:{type:"string",const:"category",description:"Represents a unique string identifier for the `CategoryFormatOptions` object. For the `CategoryFormatOptions` object, it is `category`. It can help to differentiate category axis from other types of axes such as date-time axis and numeric (value) axis."},characterLimit:{type:["number","null"],description:"Represents a positive integer which represents the limit on the number of characters to be displayed for all the category strings. The truncated string are appended with `...`. If property is not present or `null`, no truncation is done."}},required:["type"],description:"Defines how the category axis data (categories) should be formatted.",title:"CategoryFormatOptions"},WebChartGuide:{type:"object",properties:{type:{type:"string",const:"chartGuide",description:"Represents a unique string identifier for the `Guide` object. For the `Guide` class, it is `chartGuide`."},start:{anyOf:[{type:"string",format:"date-time"},{type:"number"},{type:"string"},{type:"null"}],description:"Determines the value where the guide should begin."},end:{anyOf:[{type:"string",format:"date-time"},{type:"number"},{type:"string"},{type:"null"}],description:"Determines the value where the guide should end. If it is not specified, a line guide is used, otherwise a fill/rectangular guide is used."},style:{anyOf:[{$ref:"#/definitions/ISimpleFillSymbol"},{$ref:"#/definitions/ISimpleLineSymbol"}],description:"Determines how the guide should be rendered."},name:{type:"string",description:"A unique string identifier which is used to refer to a particular guide. It is displayed in the charts config UI to differentiate between different guides."},label:{$ref:"#/definitions/WebChartTextSymbol",description:"Defines a text label for the given guide. It is displayed on the chart next to the concerned guide and is styled using **esriTS** format."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},above:{type:"boolean",description:"Determines whether the guide should be rendered on top of (overlapping) the series or under the series.",default:!1},tooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the guide's tooltip background (false) or its outline (true).",default:!1}},required:["type","start","style","name"],description:"JSON representation of the chart's guide object. Can be used to represent both line and fill guides.",title:"WebChartGuide"},WebChartAxis:{type:"object",properties:{type:{type:"string",const:"chartAxis",description:"Represents a unique string identifier for the `WebChartAxis` object. For `ChartAxis` object, it is `chartAxis`."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},isLogarithmic:{type:"boolean",description:"Specifies whether the axis has a logarithmic scale or not.",default:!1},title:{$ref:"#/definitions/WebChartText",description:"Contains styling information on how the title of the axis should be rendered"},valueFormat:{anyOf:[{$ref:"#/definitions/CategoryFormatOptions"},{$ref:"#/definitions/DateTimeFormatOptions"},{$ref:"#/definitions/NumberFormatOptions"}],description:"Specifies how numerical/categorical/date-time values should be formatted."},minimum:{type:["number","null"],description:"The minimum value which the axis should represent, when it is not defined or null, then the minimum value for the corresponding axis is automatically calculated."},maximum:{type:["number","null"],description:"The maximum value which the axis should represent, when it is not defined or null, then the maximum value for the corresponding axis is automatically calculated."},grid:{$ref:"#/definitions/ISimpleLineSymbol",description:"Dictates how the grid lines associated with a particular axis should be rendered."},guides:{type:"array",items:{$ref:"#/definitions/WebChartGuide"},description:"Represent an array of guides that should be rendered onto the axis."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling information on how the axis line should be rendered. If not provided a default style is applied."},labels:{$ref:"#/definitions/WebChartText",description:"Contains styling information on how the axis labels should be rendered."},scrollbar:{$ref:"#/definitions/WebChartAxisScrollBar",description:"Represents the axis scrollbar style and visibility."},displayZeroLine:{type:"boolean",description:"Represents an option to hide/un-hide the zero line on value axis.",default:!1},integerOnlyValues:{type:"boolean",description:"Represents an option to show `integer-only` values for a value axis",default:!1},displayCursorTooltip:{type:"boolean",description:"Specifies whether cursor tooltip should be displayed.",default:!1},buffer:{type:"boolean",description:"Allows setting a buffer to a **value axis** to provide some space around the series.",default:!1},tickSpacing:{type:"number",description:`The desired minimum distance between two adjacent axis ticks. The actual distance may fluctuate depending on the chart's size. When not provided a default value is assigned according to the axis type and axis labels behavior.
2
+ import{D as We,E as gr,a as Ha,d as Ni,g as Ga,k as Qa,l as yr,n as ks,r as Za,t as me,u as Zt,v as At,w as Et,x as oe,y as be,z as de}from"./Y7IQV44J.js";import{d as Vs,f as bt,g as vt}from"./2O53DY2A.js";import{a as y,b as pe,c as ot,e as pi,f as Xe,h as ke,i as Bs,j as qs,k as Ce,l as Bt,n as Ri,o as Wr,p as Ws,q as Qt,s as js,t as _s,v as et,y as J}from"./ETLJKITO.js";import{H as gt}from"./HMOVBIG5.js";import{b as z,d as Yu}from"./QPIMTXPL.js";export default $arcgis.t(([{substitute:pt},yy,ms,ai,ys,gy,by,vy,su,Sy,La,ou,{computeStatisticsHistograms:wy,fetchPixelFeatureSet:Iy},Cy,xy,Ty,Fy,Oy,Py,gs,Ay,Ey])=>{var Ul=z((la,zl)=>{(function(t,e){typeof la=="object"&&typeof zl<"u"?e(la):typeof define=="function"&&define.amd?define(["exports"],e):e(t.URI=t.URI||{})})(la,(function(t){"use strict";function e(){for(var v=arguments.length,g=Array(v),S=0;S<v;S++)g[S]=arguments[S];if(g.length>1){g[0]=g[0].slice(0,-1);for(var x=g.length-1,T=1;T<x;++T)g[T]=g[T].slice(1,-1);return g[x]=g[x].slice(1),g.join("")}else return g[0]}function i(v){return"(?:"+v+")"}function a(v){return v===void 0?"undefined":v===null?"null":Object.prototype.toString.call(v).split(" ").pop().split("]").shift().toLowerCase()}function r(v){return v.toUpperCase()}function n(v){return v!=null?v instanceof Array?v:typeof v.length!="number"||v.split||v.setInterval||v.call?[v]:Array.prototype.slice.call(v):[]}function s(v,g){var S=v;if(g)for(var x in g)S[x]=g[x];return S}function o(v){var g="[A-Za-z]",S="[\\x0D]",x="[0-9]",T="[\\x22]",q=e(x,"[A-Fa-f]"),G="[\\x0A]",X="[\\x20]",ne=i(i("%[EFef]"+q+"%"+q+q+"%"+q+q)+"|"+i("%[89A-Fa-f]"+q+"%"+q+q)+"|"+i("%"+q+q)),Ee="[\\:\\/\\?\\#\\[\\]\\@]",Y="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",we=e(Ee,Y),De=v?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",ge=v?"[\\uE000-\\uF8FF]":"[]",re=e(g,x,"[\\-\\.\\_\\~]",De),Ie=i(g+e(g,x,"[\\+\\-\\.]")+"*"),le=i(i(ne+"|"+e(re,Y,"[\\:]"))+"*"),fr=i(i("25[0-5]")+"|"+i("2[0-4]"+x)+"|"+i("1"+x+x)+"|"+i("[1-9]"+x)+"|"+x),Ye=i(i("25[0-5]")+"|"+i("2[0-4]"+x)+"|"+i("1"+x+x)+"|"+i("0?[1-9]"+x)+"|0?0?"+x),nt=i(Ye+"\\."+Ye+"\\."+Ye+"\\."+Ye),ue=i(q+"{1,4}"),Ke=i(i(ue+"\\:"+ue)+"|"+nt),st=i(i(ue+"\\:")+"{6}"+Ke),Pt=i("\\:\\:"+i(ue+"\\:")+"{5}"+Ke),hr=i(i(ue)+"?\\:\\:"+i(ue+"\\:")+"{4}"+Ke),Rt=i(i(i(ue+"\\:")+"{0,1}"+ue)+"?\\:\\:"+i(ue+"\\:")+"{3}"+Ke),oi=i(i(i(ue+"\\:")+"{0,2}"+ue)+"?\\:\\:"+i(ue+"\\:")+"{2}"+Ke),Di=i(i(i(ue+"\\:")+"{0,3}"+ue)+"?\\:\\:"+ue+"\\:"+Ke),Li=i(i(i(ue+"\\:")+"{0,4}"+ue)+"?\\:\\:"+Ke),Nr=i(i(i(ue+"\\:")+"{0,5}"+ue)+"?\\:\\:"+ue),Rr=i(i(i(ue+"\\:")+"{0,6}"+ue)+"?\\:\\:"),Mt=i([st,Pt,hr,Rt,oi,Di,Li,Nr,Rr].join("|")),Mr=i(i(re+"|"+ne)+"+"),za=i(Mt+"\\%25"+Mr),mr=i(Mt+i("\\%25|\\%(?!"+q+"{2})")+Mr),zu=i("[vV]"+q+"+\\."+e(re,Y,"[\\:]")+"+"),Uu=i("\\["+i(mr+"|"+Mt+"|"+zu)+"\\]"),$s=i(i(ne+"|"+e(re,Y))+"*"),li=i(Uu+"|"+nt+"(?!"+$s+")|"+$s),di=i(x+"*"),Ns=i(i(le+"@")+"?"+li+i("\\:"+di)+"?"),ci=i(ne+"|"+e(re,Y,"[\\:\\@]")),Hu=i(ci+"*"),Rs=i(ci+"+"),Gu=i(i(ne+"|"+e(re,Y,"[\\@]"))+"+"),kt=i(i("\\/"+Hu)+"*"),kr=i("\\/"+i(Rs+kt)+"?"),Ua=i(Gu+kt),$i=i(Rs+kt),Br="(?!"+ci+")",Kv=i(kt+"|"+kr+"|"+Ua+"|"+$i+"|"+Br),qr=i(i(ci+"|"+e("[\\/\\?]",ge))+"*"),ui=i(i(ci+"|[\\/\\?]")+"*"),Ms=i(i("\\/\\/"+Ns+kt)+"|"+kr+"|"+$i+"|"+Br),Qu=i(Ie+"\\:"+Ms+i("\\?"+qr)+"?"+i("\\#"+ui)+"?"),Zu=i(i("\\/\\/"+Ns+kt)+"|"+kr+"|"+Ua+"|"+Br),Ju=i(Zu+i("\\?"+qr)+"?"+i("\\#"+ui)+"?"),Xv=i(Qu+"|"+Ju),e0=i(Ie+"\\:"+Ms+i("\\?"+qr)+"?"),t0="^("+Ie+")\\:"+i(i("\\/\\/("+i("("+le+")@")+"?("+li+")"+i("\\:("+di+")")+"?)")+"?("+kt+"|"+kr+"|"+$i+"|"+Br+")")+i("\\?("+qr+")")+"?"+i("\\#("+ui+")")+"?$",r0="^(){0}"+i(i("\\/\\/("+i("("+le+")@")+"?("+li+")"+i("\\:("+di+")")+"?)")+"?("+kt+"|"+kr+"|"+Ua+"|"+Br+")")+i("\\?("+qr+")")+"?"+i("\\#("+ui+")")+"?$",i0="^("+Ie+")\\:"+i(i("\\/\\/("+i("("+le+")@")+"?("+li+")"+i("\\:("+di+")")+"?)")+"?("+kt+"|"+kr+"|"+$i+"|"+Br+")")+i("\\?("+qr+")")+"?$",a0="^"+i("\\#("+ui+")")+"?$",n0="^"+i("("+le+")@")+"?("+li+")"+i("\\:("+di+")")+"?$";return{NOT_SCHEME:new RegExp(e("[^]",g,x,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(e("[^\\%\\:]",re,Y),"g"),NOT_HOST:new RegExp(e("[^\\%\\[\\]\\:]",re,Y),"g"),NOT_PATH:new RegExp(e("[^\\%\\/\\:\\@]",re,Y),"g"),NOT_PATH_NOSCHEME:new RegExp(e("[^\\%\\/\\@]",re,Y),"g"),NOT_QUERY:new RegExp(e("[^\\%]",re,Y,"[\\:\\@\\/\\?]",ge),"g"),NOT_FRAGMENT:new RegExp(e("[^\\%]",re,Y,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(e("[^]",re,Y),"g"),UNRESERVED:new RegExp(re,"g"),OTHER_CHARS:new RegExp(e("[^\\%]",re,we),"g"),PCT_ENCODED:new RegExp(ne,"g"),IPV4ADDRESS:new RegExp("^("+nt+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Mt+")"+i(i("\\%25|\\%(?!"+q+"{2})")+"("+Mr+")")+"?\\]?$")}}var l=o(!1),d=o(!0),c=(function(){function v(g,S){var x=[],T=!0,q=!1,G=void 0;try{for(var X=g[Symbol.iterator](),ne;!(T=(ne=X.next()).done)&&(x.push(ne.value),!(S&&x.length===S));T=!0);}catch(Ee){q=!0,G=Ee}finally{try{!T&&X.return&&X.return()}finally{if(q)throw G}}return x}return function(g,S){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return v(g,S);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),u=function(v){if(Array.isArray(v)){for(var g=0,S=Array(v.length);g<v.length;g++)S[g]=v[g];return S}else return Array.from(v)},f=2147483647,p=36,h=1,b=26,m=38,w=700,C=72,I=128,O="-",P=/^xn--/,A=/[^\0-\x7E]/,M=/[\x2E\u3002\uFF0E\uFF61]/g,N={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=p-h,R=Math.floor,k=String.fromCharCode;function L(v){throw new RangeError(N[v])}function D(v,g){for(var S=[],x=v.length;x--;)S[x]=g(v[x]);return S}function $(v,g){var S=v.split("@"),x="";S.length>1&&(x=S[0]+"@",v=S[1]),v=v.replace(M,".");var T=v.split("."),q=D(T,g).join(".");return x+q}function W(v){for(var g=[],S=0,x=v.length;S<x;){var T=v.charCodeAt(S++);if(T>=55296&&T<=56319&&S<x){var q=v.charCodeAt(S++);(q&64512)==56320?g.push(((T&1023)<<10)+(q&1023)+65536):(g.push(T),S--)}else g.push(T)}return g}var ee=function(g){return String.fromCodePoint.apply(String,u(g))},H=function(g){return g-48<10?g-22:g-65<26?g-65:g-97<26?g-97:p},Q=function(g,S){return g+22+75*(g<26)-((S!=0)<<5)},U=function(g,S,x){var T=0;for(g=x?R(g/w):g>>1,g+=R(g/S);g>E*b>>1;T+=p)g=R(g/E);return R(T+(E+1)*g/(g+m))},_=function(g){var S=[],x=g.length,T=0,q=I,G=C,X=g.lastIndexOf(O);X<0&&(X=0);for(var ne=0;ne<X;++ne)g.charCodeAt(ne)>=128&&L("not-basic"),S.push(g.charCodeAt(ne));for(var Ee=X>0?X+1:0;Ee<x;){for(var Y=T,we=1,De=p;;De+=p){Ee>=x&&L("invalid-input");var ge=H(g.charCodeAt(Ee++));(ge>=p||ge>R((f-T)/we))&&L("overflow"),T+=ge*we;var re=De<=G?h:De>=G+b?b:De-G;if(ge<re)break;var Ie=p-re;we>R(f/Ie)&&L("overflow"),we*=Ie}var le=S.length+1;G=U(T-Y,le,Y==0),R(T/le)>f-q&&L("overflow"),q+=R(T/le),T%=le,S.splice(T++,0,q)}return String.fromCodePoint.apply(String,S)},ce=function(g){var S=[];g=W(g);var x=g.length,T=I,q=0,G=C,X=!0,ne=!1,Ee=void 0;try{for(var Y=g[Symbol.iterator](),we;!(X=(we=Y.next()).done);X=!0){var De=we.value;De<128&&S.push(k(De))}}catch(mr){ne=!0,Ee=mr}finally{try{!X&&Y.return&&Y.return()}finally{if(ne)throw Ee}}var ge=S.length,re=ge;for(ge&&S.push(O);re<x;){var Ie=f,le=!0,fr=!1,Ye=void 0;try{for(var nt=g[Symbol.iterator](),ue;!(le=(ue=nt.next()).done);le=!0){var Ke=ue.value;Ke>=T&&Ke<Ie&&(Ie=Ke)}}catch(mr){fr=!0,Ye=mr}finally{try{!le&&nt.return&&nt.return()}finally{if(fr)throw Ye}}var st=re+1;Ie-T>R((f-q)/st)&&L("overflow"),q+=(Ie-T)*st,T=Ie;var Pt=!0,hr=!1,Rt=void 0;try{for(var oi=g[Symbol.iterator](),Di;!(Pt=(Di=oi.next()).done);Pt=!0){var Li=Di.value;if(Li<T&&++q>f&&L("overflow"),Li==T){for(var Nr=q,Rr=p;;Rr+=p){var Mt=Rr<=G?h:Rr>=G+b?b:Rr-G;if(Nr<Mt)break;var Mr=Nr-Mt,za=p-Mt;S.push(k(Q(Mt+Mr%za,0))),Nr=R(Mr/za)}S.push(k(Q(Nr,0))),G=U(q,st,re==ge),q=0,++re}}}catch(mr){hr=!0,Rt=mr}finally{try{!Pt&&oi.return&&oi.return()}finally{if(hr)throw Rt}}++q,++T}return S.join("")},Be=function(g){return $(g,function(S){return P.test(S)?_(S.slice(4).toLowerCase()):S})},je=function(g){return $(g,function(S){return A.test(S)?"xn--"+ce(S):S})},te={version:"2.1.0",ucs2:{decode:W,encode:ee},decode:_,encode:ce,toASCII:je,toUnicode:Be},Pe={};function $e(v){var g=v.charCodeAt(0),S=void 0;return g<16?S="%0"+g.toString(16).toUpperCase():g<128?S="%"+g.toString(16).toUpperCase():g<2048?S="%"+(g>>6|192).toString(16).toUpperCase()+"%"+(g&63|128).toString(16).toUpperCase():S="%"+(g>>12|224).toString(16).toUpperCase()+"%"+(g>>6&63|128).toString(16).toUpperCase()+"%"+(g&63|128).toString(16).toUpperCase(),S}function _e(v){for(var g="",S=0,x=v.length;S<x;){var T=parseInt(v.substr(S+1,2),16);if(T<128)g+=String.fromCharCode(T),S+=3;else if(T>=194&&T<224){if(x-S>=6){var q=parseInt(v.substr(S+4,2),16);g+=String.fromCharCode((T&31)<<6|q&63)}else g+=v.substr(S,6);S+=6}else if(T>=224){if(x-S>=9){var G=parseInt(v.substr(S+4,2),16),X=parseInt(v.substr(S+7,2),16);g+=String.fromCharCode((T&15)<<12|(G&63)<<6|X&63)}else g+=v.substr(S,9);S+=9}else g+=v.substr(S,3),S+=3}return g}function Ht(v,g){function S(x){var T=_e(x);return T.match(g.UNRESERVED)?T:x}return v.scheme&&(v.scheme=String(v.scheme).replace(g.PCT_ENCODED,S).toLowerCase().replace(g.NOT_SCHEME,"")),v.userinfo!==void 0&&(v.userinfo=String(v.userinfo).replace(g.PCT_ENCODED,S).replace(g.NOT_USERINFO,$e).replace(g.PCT_ENCODED,r)),v.host!==void 0&&(v.host=String(v.host).replace(g.PCT_ENCODED,S).toLowerCase().replace(g.NOT_HOST,$e).replace(g.PCT_ENCODED,r)),v.path!==void 0&&(v.path=String(v.path).replace(g.PCT_ENCODED,S).replace(v.scheme?g.NOT_PATH:g.NOT_PATH_NOSCHEME,$e).replace(g.PCT_ENCODED,r)),v.query!==void 0&&(v.query=String(v.query).replace(g.PCT_ENCODED,S).replace(g.NOT_QUERY,$e).replace(g.PCT_ENCODED,r)),v.fragment!==void 0&&(v.fragment=String(v.fragment).replace(g.PCT_ENCODED,S).replace(g.NOT_FRAGMENT,$e).replace(g.PCT_ENCODED,r)),v}function $t(v){return v.replace(/^0*(.*)/,"$1")||"0"}function Ae(v,g){var S=v.match(g.IPV4ADDRESS)||[],x=c(S,2),T=x[1];return T?T.split(".").map($t).join("."):v}function Te(v,g){var S=v.match(g.IPV6ADDRESS)||[],x=c(S,3),T=x[1],q=x[2];if(T){for(var G=T.toLowerCase().split("::").reverse(),X=c(G,2),ne=X[0],Ee=X[1],Y=Ee?Ee.split(":").map($t):[],we=ne.split(":").map($t),De=g.IPV4ADDRESS.test(we[we.length-1]),ge=De?7:8,re=we.length-ge,Ie=Array(ge),le=0;le<ge;++le)Ie[le]=Y[le]||we[re+le]||"";De&&(Ie[ge-1]=Ae(Ie[ge-1],g));var fr=Ie.reduce(function(st,Pt,hr){if(!Pt||Pt==="0"){var Rt=st[st.length-1];Rt&&Rt.index+Rt.length===hr?Rt.length++:st.push({index:hr,length:1})}return st},[]),Ye=fr.sort(function(st,Pt){return Pt.length-st.length})[0],nt=void 0;if(Ye&&Ye.length>1){var ue=Ie.slice(0,Ye.index),Ke=Ie.slice(Ye.index+Ye.length);nt=ue.join(":")+"::"+Ke.join(":")}else nt=Ie.join(":");return q&&(nt+="%"+q),nt}else return v}var cr=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,qe="".match(/(){0}/)[1]===void 0;function ie(v){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S={},x=g.iri!==!1?d:l;g.reference==="suffix"&&(v=(g.scheme?g.scheme+":":"")+"//"+v);var T=v.match(cr);if(T){qe?(S.scheme=T[1],S.userinfo=T[3],S.host=T[4],S.port=parseInt(T[5],10),S.path=T[6]||"",S.query=T[7],S.fragment=T[8],isNaN(S.port)&&(S.port=T[5])):(S.scheme=T[1]||void 0,S.userinfo=v.indexOf("@")!==-1?T[3]:void 0,S.host=v.indexOf("//")!==-1?T[4]:void 0,S.port=parseInt(T[5],10),S.path=T[6]||"",S.query=v.indexOf("?")!==-1?T[7]:void 0,S.fragment=v.indexOf("#")!==-1?T[8]:void 0,isNaN(S.port)&&(S.port=v.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?T[4]:void 0)),S.host&&(S.host=Te(Ae(S.host,x),x)),S.scheme===void 0&&S.userinfo===void 0&&S.host===void 0&&S.port===void 0&&!S.path&&S.query===void 0?S.reference="same-document":S.scheme===void 0?S.reference="relative":S.fragment===void 0?S.reference="absolute":S.reference="uri",g.reference&&g.reference!=="suffix"&&g.reference!==S.reference&&(S.error=S.error||"URI is not a "+g.reference+" reference.");var q=Pe[(g.scheme||S.scheme||"").toLowerCase()];if(!g.unicodeSupport&&(!q||!q.unicodeSupport)){if(S.host&&(g.domainHost||q&&q.domainHost))try{S.host=te.toASCII(S.host.replace(x.PCT_ENCODED,_e).toLowerCase())}catch(G){S.error=S.error||"Host's domain name can not be converted to ASCII via punycode: "+G}Ht(S,l)}else Ht(S,x);q&&q.parse&&q.parse(S,g)}else S.error=S.error||"URI can not be parsed.";return S}function Gt(v,g){var S=g.iri!==!1?d:l,x=[];return v.userinfo!==void 0&&(x.push(v.userinfo),x.push("@")),v.host!==void 0&&x.push(Te(Ae(String(v.host),S),S).replace(S.IPV6ADDRESS,function(T,q,G){return"["+q+(G?"%25"+G:"")+"]"})),(typeof v.port=="number"||typeof v.port=="string")&&(x.push(":"),x.push(String(v.port))),x.length?x.join(""):void 0}var Nt=/^\.\.?\//,ur=/^\/\.(\/|$)/,pr=/^\/\.\.(\/|$)/,Me=/^\/?(?:.|\n)*?(?=\/|$)/;function at(v){for(var g=[];v.length;)if(v.match(Nt))v=v.replace(Nt,"");else if(v.match(ur))v=v.replace(ur,"/");else if(v.match(pr))v=v.replace(pr,"/"),g.pop();else if(v==="."||v==="..")v="";else{var S=v.match(Me);if(S){var x=S[0];v=v.slice(x.length),g.push(x)}else throw new Error("Unexpected dot segment condition")}return g.join("")}function Ue(v){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=g.iri?d:l,x=[],T=Pe[(g.scheme||v.scheme||"").toLowerCase()];if(T&&T.serialize&&T.serialize(v,g),v.host&&!S.IPV6ADDRESS.test(v.host)){if(g.domainHost||T&&T.domainHost)try{v.host=g.iri?te.toUnicode(v.host):te.toASCII(v.host.replace(S.PCT_ENCODED,_e).toLowerCase())}catch(X){v.error=v.error||"Host's domain name can not be converted to "+(g.iri?"Unicode":"ASCII")+" via punycode: "+X}}Ht(v,S),g.reference!=="suffix"&&v.scheme&&(x.push(v.scheme),x.push(":"));var q=Gt(v,g);if(q!==void 0&&(g.reference!=="suffix"&&x.push("//"),x.push(q),v.path&&v.path.charAt(0)!=="/"&&x.push("/")),v.path!==void 0){var G=v.path;!g.absolutePath&&(!T||!T.absolutePath)&&(G=at(G)),q===void 0&&(G=G.replace(/^\/\//,"/%2F")),x.push(G)}return v.query!==void 0&&(x.push("?"),x.push(v.query)),v.fragment!==void 0&&(x.push("#"),x.push(v.fragment)),x.join("")}function Ve(v,g){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},x=arguments[3],T={};return x||(v=ie(Ue(v,S),S),g=ie(Ue(g,S),S)),S=S||{},!S.tolerant&&g.scheme?(T.scheme=g.scheme,T.userinfo=g.userinfo,T.host=g.host,T.port=g.port,T.path=at(g.path||""),T.query=g.query):(g.userinfo!==void 0||g.host!==void 0||g.port!==void 0?(T.userinfo=g.userinfo,T.host=g.host,T.port=g.port,T.path=at(g.path||""),T.query=g.query):(g.path?(g.path.charAt(0)==="/"?T.path=at(g.path):((v.userinfo!==void 0||v.host!==void 0||v.port!==void 0)&&!v.path?T.path="/"+g.path:v.path?T.path=v.path.slice(0,v.path.lastIndexOf("/")+1)+g.path:T.path=g.path,T.path=at(T.path)),T.query=g.query):(T.path=v.path,g.query!==void 0?T.query=g.query:T.query=v.query),T.userinfo=v.userinfo,T.host=v.host,T.port=v.port),T.scheme=v.scheme),T.fragment=g.fragment,T}function Ft(v,g,S){var x=s({scheme:"null"},S);return Ue(Ve(ie(v,x),ie(g,x),x,!0),x)}function Je(v,g){return typeof v=="string"?v=Ue(ie(v,g),g):a(v)==="object"&&(v=ie(Ue(v,g),g)),v}function Ei(v,g,S){return typeof v=="string"?v=Ue(ie(v,S),S):a(v)==="object"&&(v=Ue(v,S)),typeof g=="string"?g=Ue(ie(g,S),S):a(g)==="object"&&(g=Ue(g,S)),v===g}function _a(v,g){return v&&v.toString().replace(!g||!g.iri?l.ESCAPE:d.ESCAPE,$e)}function yt(v,g){return v&&v.toString().replace(!g||!g.iri?l.PCT_ENCODED:d.PCT_ENCODED,_e)}var ni={scheme:"http",domainHost:!0,parse:function(g,S){return g.host||(g.error=g.error||"HTTP URIs must have a host."),g},serialize:function(g,S){var x=String(g.scheme).toLowerCase()==="https";return(g.port===(x?443:80)||g.port==="")&&(g.port=void 0),g.path||(g.path="/"),g}},Ts={scheme:"https",domainHost:ni.domainHost,parse:ni.parse,serialize:ni.serialize};function Fs(v){return typeof v.secure=="boolean"?v.secure:String(v.scheme).toLowerCase()==="wss"}var si={scheme:"ws",domainHost:!0,parse:function(g,S){var x=g;return x.secure=Fs(x),x.resourceName=(x.path||"/")+(x.query?"?"+x.query:""),x.path=void 0,x.query=void 0,x},serialize:function(g,S){if((g.port===(Fs(g)?443:80)||g.port==="")&&(g.port=void 0),typeof g.secure=="boolean"&&(g.scheme=g.secure?"wss":"ws",g.secure=void 0),g.resourceName){var x=g.resourceName.split("?"),T=c(x,2),q=T[0],G=T[1];g.path=q&&q!=="/"?q:void 0,g.query=G,g.resourceName=void 0}return g.fragment=void 0,g}},Os={scheme:"wss",domainHost:si.domainHost,parse:si.parse,serialize:si.serialize},Lu={},$u=!0,Ps="[A-Za-z0-9\\-\\.\\_\\~"+($u?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Ot="[0-9A-Fa-f]",Nu=i(i("%[EFef]"+Ot+"%"+Ot+Ot+"%"+Ot+Ot)+"|"+i("%[89A-Fa-f]"+Ot+"%"+Ot+Ot)+"|"+i("%"+Ot+Ot)),Ru="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Mu="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",ku=e(Mu,'[\\"\\\\]'),Bu="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",qu=new RegExp(Ps,"g"),$r=new RegExp(Nu,"g"),Wu=new RegExp(e("[^]",Ru,"[\\.]",'[\\"]',ku),"g"),As=new RegExp(e("[^]",Ps,Bu),"g"),ju=As;function Va(v){var g=_e(v);return g.match(qu)?g:v}var Es={scheme:"mailto",parse:function(g,S){var x=g,T=x.to=x.path?x.path.split(","):[];if(x.path=void 0,x.query){for(var q=!1,G={},X=x.query.split("&"),ne=0,Ee=X.length;ne<Ee;++ne){var Y=X[ne].split("=");switch(Y[0]){case"to":for(var we=Y[1].split(","),De=0,ge=we.length;De<ge;++De)T.push(we[De]);break;case"subject":x.subject=yt(Y[1],S);break;case"body":x.body=yt(Y[1],S);break;default:q=!0,G[yt(Y[0],S)]=yt(Y[1],S);break}}q&&(x.headers=G)}x.query=void 0;for(var re=0,Ie=T.length;re<Ie;++re){var le=T[re].split("@");if(le[0]=yt(le[0]),S.unicodeSupport)le[1]=yt(le[1],S).toLowerCase();else try{le[1]=te.toASCII(yt(le[1],S).toLowerCase())}catch(fr){x.error=x.error||"Email address's domain name can not be converted to ASCII via punycode: "+fr}T[re]=le.join("@")}return x},serialize:function(g,S){var x=g,T=n(g.to);if(T){for(var q=0,G=T.length;q<G;++q){var X=String(T[q]),ne=X.lastIndexOf("@"),Ee=X.slice(0,ne).replace($r,Va).replace($r,r).replace(Wu,$e),Y=X.slice(ne+1);try{Y=S.iri?te.toUnicode(Y):te.toASCII(yt(Y,S).toLowerCase())}catch(re){x.error=x.error||"Email address's domain name can not be converted to "+(S.iri?"Unicode":"ASCII")+" via punycode: "+re}T[q]=Ee+"@"+Y}x.path=T.join(",")}var we=g.headers=g.headers||{};g.subject&&(we.subject=g.subject),g.body&&(we.body=g.body);var De=[];for(var ge in we)we[ge]!==Lu[ge]&&De.push(ge.replace($r,Va).replace($r,r).replace(As,$e)+"="+we[ge].replace($r,Va).replace($r,r).replace(ju,$e));return De.length&&(x.query=De.join("&")),x}},_u=/^([^\:]+)\:(.*)/,Ds={scheme:"urn",parse:function(g,S){var x=g.path&&g.path.match(_u),T=g;if(x){var q=S.scheme||T.scheme||"urn",G=x[1].toLowerCase(),X=x[2],ne=q+":"+(S.nid||G),Ee=Pe[ne];T.nid=G,T.nss=X,T.path=void 0,Ee&&(T=Ee.parse(T,S))}else T.error=T.error||"URN can not be parsed.";return T},serialize:function(g,S){var x=S.scheme||g.scheme||"urn",T=g.nid,q=x+":"+(S.nid||T),G=Pe[q];G&&(g=G.serialize(g,S));var X=g,ne=g.nss;return X.path=(T||S.nid)+":"+ne,X}},Vu=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Ls={scheme:"urn:uuid",parse:function(g,S){var x=g;return x.uuid=x.nss,x.nss=void 0,!S.tolerant&&(!x.uuid||!x.uuid.match(Vu))&&(x.error=x.error||"UUID is not valid."),x},serialize:function(g,S){var x=g;return x.nss=(g.uuid||"").toLowerCase(),x}};Pe[ni.scheme]=ni,Pe[Ts.scheme]=Ts,Pe[si.scheme]=si,Pe[Os.scheme]=Os,Pe[Es.scheme]=Es,Pe[Ds.scheme]=Ds,Pe[Ls.scheme]=Ls,t.SCHEMES=Pe,t.pctEncChar=$e,t.pctDecChars=_e,t.parse=ie,t.removeDotSegments=at,t.serialize=Ue,t.resolveComponents=Ve,t.resolve=Ft,t.normalize=Je,t.equal=Ei,t.escapeComponent=_a,t.unescapeComponent=yt,Object.defineProperty(t,"__esModule",{value:!0})}))});var da=z((p0,Hl)=>{"use strict";Hl.exports=function t(e,i){if(e===i)return!0;if(e&&i&&typeof e=="object"&&typeof i=="object"){if(e.constructor!==i.constructor)return!1;var a,r,n;if(Array.isArray(e)){if(a=e.length,a!=i.length)return!1;for(r=a;r--!==0;)if(!t(e[r],i[r]))return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===i.toString();if(n=Object.keys(e),a=n.length,a!==Object.keys(i).length)return!1;for(r=a;r--!==0;)if(!Object.prototype.hasOwnProperty.call(i,n[r]))return!1;for(r=a;r--!==0;){var s=n[r];if(!t(e[s],i[s]))return!1}return!0}return e!==e&&i!==i}});var Ql=z((f0,Gl)=>{"use strict";Gl.exports=function(e){for(var i=0,a=e.length,r=0,n;r<a;)i++,n=e.charCodeAt(r++),n>=55296&&n<=56319&&r<a&&(n=e.charCodeAt(r),(n&64512)==56320&&r++);return i}});var Cr=z((h0,Yl)=>{"use strict";Yl.exports={copy:Bh,checkDataType:Mn,checkDataTypes:qh,coerceToTypes:Wh,toHash:Bn,getProperty:qn,escapeQuotes:Wn,equal:da(),ucs2length:Ql(),varOccurences:Vh,varReplace:zh,schemaHasRules:Uh,schemaHasRulesExcept:Hh,schemaUnknownRules:Gh,toQuotedString:kn,getPathExpr:Qh,getPath:Zh,getData:Kh,unescapeFragment:Xh,unescapeJsonPointer:_n,escapeFragment:em,escapeJsonPointer:jn};function Bh(t,e){e=e||{};for(var i in t)e[i]=t[i];return e}function Mn(t,e,i,a){var r=a?" !== ":" === ",n=a?" || ":" && ",s=a?"!":"",o=a?"":"!";switch(t){case"null":return e+r+"null";case"array":return s+"Array.isArray("+e+")";case"object":return"("+s+e+n+"typeof "+e+r+'"object"'+n+o+"Array.isArray("+e+"))";case"integer":return"(typeof "+e+r+'"number"'+n+o+"("+e+" % 1)"+n+e+r+e+(i?n+s+"isFinite("+e+")":"")+")";case"number":return"(typeof "+e+r+'"'+t+'"'+(i?n+s+"isFinite("+e+")":"")+")";default:return"typeof "+e+r+'"'+t+'"'}}function qh(t,e,i){switch(t.length){case 1:return Mn(t[0],e,i,!0);default:var a="",r=Bn(t);r.array&&r.object&&(a=r.null?"(":"(!"+e+" || ",a+="typeof "+e+' !== "object")',delete r.null,delete r.array,delete r.object),r.number&&delete r.integer;for(var n in r)a+=(a?" && ":"")+Mn(n,e,i,!0);return a}}var Zl=Bn(["string","number","integer","boolean","null"]);function Wh(t,e){if(Array.isArray(e)){for(var i=[],a=0;a<e.length;a++){var r=e[a];(Zl[r]||t==="array"&&r==="array")&&(i[i.length]=r)}if(i.length)return i}else{if(Zl[e])return[e];if(t==="array"&&e==="array")return["array"]}}function Bn(t){for(var e={},i=0;i<t.length;i++)e[t[i]]=!0;return e}var jh=/^[a-z$_][a-z$_0-9]*$/i,_h=/'|\\/g;function qn(t){return typeof t=="number"?"["+t+"]":jh.test(t)?"."+t:"['"+Wn(t)+"']"}function Wn(t){return t.replace(_h,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function Vh(t,e){e+="[^0-9]";var i=t.match(new RegExp(e,"g"));return i?i.length:0}function zh(t,e,i){return e+="([^0-9])",i=i.replace(/\$/g,"$$$$"),t.replace(new RegExp(e,"g"),i+"$1")}function Uh(t,e){if(typeof t=="boolean")return!t;for(var i in t)if(e[i])return!0}function Hh(t,e,i){if(typeof t=="boolean")return!t&&i!="not";for(var a in t)if(a!=i&&e[a])return!0}function Gh(t,e){if(typeof t!="boolean"){for(var i in t)if(!e[i])return i}}function kn(t){return"'"+Wn(t)+"'"}function Qh(t,e,i,a){var r=i?"'/' + "+e+(a?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):a?"'[' + "+e+" + ']'":"'[\\'' + "+e+" + '\\']'";return Jl(t,r)}function Zh(t,e,i){var a=kn(i?"/"+jn(e):qn(e));return Jl(t,a)}var Jh=/^\/(?:[^~]|~0|~1)*$/,Yh=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Kh(t,e,i){var a,r,n,s;if(t==="")return"rootData";if(t[0]=="/"){if(!Jh.test(t))throw new Error("Invalid JSON-pointer: "+t);r=t,n="rootData"}else{if(s=t.match(Yh),!s)throw new Error("Invalid JSON-pointer: "+t);if(a=+s[1],r=s[2],r=="#"){if(a>=e)throw new Error("Cannot access property/index "+a+" levels up, current level is "+e);return i[e-a]}if(a>e)throw new Error("Cannot access data "+a+" levels up, current level is "+e);if(n="data"+(e-a||""),!r)return n}for(var o=n,l=r.split("/"),d=0;d<l.length;d++){var c=l[d];c&&(n+=qn(_n(c)),o+=" && "+n)}return o}function Jl(t,e){return t=='""'?e:(t+" + "+e).replace(/([^\\])' \+ '/g,"$1")}function Xh(t){return _n(decodeURIComponent(t))}function em(t){return encodeURIComponent(jn(t))}function jn(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function _n(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}});var Vn=z((m0,Kl)=>{"use strict";var tm=Cr();Kl.exports=rm;function rm(t){tm.copy(t,this)}});var ed=z((y0,Xl)=>{"use strict";var rr=Xl.exports=function(t,e,i){typeof e=="function"&&(i=e,e={}),i=e.cb||i;var a=typeof i=="function"?i:i.pre||function(){},r=i.post||function(){};ca(e,a,r,t,"",t)};rr.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0};rr.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};rr.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};rr.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function ca(t,e,i,a,r,n,s,o,l,d){if(a&&typeof a=="object"&&!Array.isArray(a)){e(a,r,n,s,o,l,d);for(var c in a){var u=a[c];if(Array.isArray(u)){if(c in rr.arrayKeywords)for(var f=0;f<u.length;f++)ca(t,e,i,u[f],r+"/"+c+"/"+f,n,r,c,a,f)}else if(c in rr.propsKeywords){if(u&&typeof u=="object")for(var p in u)ca(t,e,i,u[p],r+"/"+c+"/"+im(p),n,r,c,a,p)}else(c in rr.keywords||t.allKeys&&!(c in rr.skipKeywords))&&ca(t,e,i,u,r+"/"+c,n,r,c,a)}i(a,r,n,s,o,l,d)}}function im(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var ya=z((g0,ad)=>{"use strict";var Ci=Ul(),td=da(),ha=Cr(),ua=Vn(),am=ed();ad.exports=ar;ar.normalizeId=ir;ar.fullPath=pa;ar.url=fa;ar.ids=dm;ar.inlineRef=zn;ar.schema=ma;function ar(t,e,i){var a=this._refs[i];if(typeof a=="string")if(this._refs[a])a=this._refs[a];else return ar.call(this,t,e,a);if(a=a||this._schemas[i],a instanceof ua)return zn(a.schema,this._opts.inlineRefs)?a.schema:a.validate||this._compile(a);var r=ma.call(this,e,i),n,s,o;return r&&(n=r.schema,e=r.root,o=r.baseId),n instanceof ua?s=n.validate||t.call(this,n.schema,e,void 0,o):n!==void 0&&(s=zn(n,this._opts.inlineRefs)?n:t.call(this,n,e,void 0,o)),s}function ma(t,e){var i=Ci.parse(e),a=id(i),r=pa(this._getId(t.schema));if(Object.keys(t.schema).length===0||a!==r){var n=ir(a),s=this._refs[n];if(typeof s=="string")return nm.call(this,t,s,i);if(s instanceof ua)s.validate||this._compile(s),t=s;else if(s=this._schemas[n],s instanceof ua){if(s.validate||this._compile(s),n==ir(e))return{schema:s,root:t,baseId:r};t=s}else return;if(!t.schema)return;r=pa(this._getId(t.schema))}return rd.call(this,i,r,t.schema,t)}function nm(t,e,i){var a=ma.call(this,t,e);if(a){var r=a.schema,n=a.baseId;t=a.root;var s=this._getId(r);return s&&(n=fa(n,s)),rd.call(this,i,n,r,t)}}var sm=ha.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function rd(t,e,i,a){if(t.fragment=t.fragment||"",t.fragment.slice(0,1)=="/"){for(var r=t.fragment.split("/"),n=1;n<r.length;n++){var s=r[n];if(s){if(s=ha.unescapeFragment(s),i=i[s],i===void 0)break;var o;if(!sm[s]&&(o=this._getId(i),o&&(e=fa(e,o)),i.$ref)){var l=fa(e,i.$ref),d=ma.call(this,a,l);d&&(i=d.schema,a=d.root,e=d.baseId)}}}if(i!==void 0&&i!==a.schema)return{schema:i,root:a,baseId:e}}}var om=ha.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function zn(t,e){if(e===!1)return!1;if(e===void 0||e===!0)return Un(t);if(e)return Hn(t)<=e}function Un(t){var e;if(Array.isArray(t)){for(var i=0;i<t.length;i++)if(e=t[i],typeof e=="object"&&!Un(e))return!1}else for(var a in t)if(a=="$ref"||(e=t[a],typeof e=="object"&&!Un(e)))return!1;return!0}function Hn(t){var e=0,i;if(Array.isArray(t)){for(var a=0;a<t.length;a++)if(i=t[a],typeof i=="object"&&(e+=Hn(i)),e==1/0)return 1/0}else for(var r in t){if(r=="$ref")return 1/0;if(om[r])e++;else if(i=t[r],typeof i=="object"&&(e+=Hn(i)+1),e==1/0)return 1/0}return e}function pa(t,e){e!==!1&&(t=ir(t));var i=Ci.parse(t);return id(i)}function id(t){return Ci.serialize(t).split("#")[0]+"#"}var lm=/#\/?$/;function ir(t){return t?t.replace(lm,""):""}function fa(t,e){return e=ir(e),Ci.resolve(t,e)}function dm(t){var e=ir(this._getId(t)),i={"":e},a={"":pa(e,!1)},r={},n=this;return am(t,{allKeys:!0},function(s,o,l,d,c,u,f){if(o!==""){var p=n._getId(s),h=i[d],b=a[d]+"/"+c;if(f!==void 0&&(b+="/"+(typeof f=="number"?f:ha.escapeFragment(f))),typeof p=="string"){p=h=ir(h?Ci.resolve(h,p):p);var m=n._refs[p];if(typeof m=="string"&&(m=n._refs[m]),m&&m.schema){if(!td(s,m.schema))throw new Error('id "'+p+'" resolves to more than one schema')}else if(p!=ir(b))if(p[0]=="#"){if(r[p]&&!td(s,r[p]))throw new Error('id "'+p+'" resolves to more than one schema');r[p]=s}else n._refs[p]=b}i[o]=h,a[o]=b}}),r}});var ga=z((b0,sd)=>{"use strict";var Gn=ya();sd.exports={Validation:nd(cm),MissingRef:nd(Qn)};function cm(t){this.message="validation failed",this.errors=t,this.ajv=this.validation=!0}Qn.message=function(t,e){return"can't resolve reference "+e+" from id "+t};function Qn(t,e,i){this.message=i||Qn.message(t,e),this.missingRef=Gn.url(t,e),this.missingSchema=Gn.normalizeId(Gn.fullPath(this.missingRef))}function nd(t){return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}});var Zn=z((v0,od)=>{"use strict";od.exports=function(t,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var i=typeof e.cycles=="boolean"?e.cycles:!1,a=e.cmp&&(function(n){return function(s){return function(o,l){var d={key:o,value:s[o]},c={key:l,value:s[l]};return n(d,c)}}})(e.cmp),r=[];return(function n(s){if(s&&s.toJSON&&typeof s.toJSON=="function"&&(s=s.toJSON()),s!==void 0){if(typeof s=="number")return isFinite(s)?""+s:"null";if(typeof s!="object")return JSON.stringify(s);var o,l;if(Array.isArray(s)){for(l="[",o=0;o<s.length;o++)o&&(l+=","),l+=n(s[o])||"null";return l+"]"}if(s===null)return"null";if(r.indexOf(s)!==-1){if(i)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var d=r.push(s)-1,c=Object.keys(s).sort(a&&a(s));for(l="",o=0;o<c.length;o++){var u=c[o],f=n(s[u]);f&&(l&&(l+=","),l+=JSON.stringify(u)+":"+f)}return r.splice(d,1),"{"+l+"}"}})(t)}});var Jn=z((S0,ld)=>{"use strict";ld.exports=function(e,i,a){var r="",n=e.schema.$async===!0,s=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),o=e.self._getId(e.schema);if(e.opts.strictKeywords){var l=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(l){var d="unknown keyword: "+l;if(e.opts.strictKeywords==="log")e.logger.warn(d);else throw new Error(d)}}if(e.isTop&&(r+=" var validate = ",n&&(e.async=!0,r+="async "),r+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",o&&(e.opts.sourceCode||e.opts.processCode)&&(r+=" "+("/*# sourceURL="+o+" */")+" ")),typeof e.schema=="boolean"||!(s||e.schema.$ref)){var i="false schema",c=e.level,u=e.dataLevel,f=e.schema[i],p=e.schemaPath+e.util.getProperty(i),h=e.errSchemaPath+"/"+i,P=!e.opts.allErrors,N,b="data"+(u||""),O="valid"+c;if(e.schema===!1){e.isTop?P=!0:r+=" var "+O+" = false; ";var m=m||[];m.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(N||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: {} ",e.opts.messages!==!1&&(r+=" , message: 'boolean schema is false' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "),r+=" } "):r+=" {} ";var w=r;r=m.pop(),!e.compositeRule&&P?e.async?r+=" throw new ValidationError(["+w+"]); ":r+=" validate.errors = ["+w+"]; return false; ":r+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n?r+=" return data; ":r+=" validate.errors = null; return true; ":r+=" var "+O+" = true; ";return e.isTop&&(r+=" }; return validate; "),r}if(e.isTop){var C=e.isTop,c=e.level=0,u=e.dataLevel=0,b="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],e.schema.default!==void 0&&e.opts.useDefaults&&e.opts.strictDefaults){var I="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(I);else throw new Error(I)}r+=" var vErrors = null; ",r+=" var errors = 0; ",r+=" if (rootData === undefined) rootData = data; "}else{var c=e.level,u=e.dataLevel,b="data"+(u||"");if(o&&(e.baseId=e.resolve.url(e.baseId,o)),n&&!e.async)throw new Error("async schema in sync schema");r+=" var errs_"+c+" = errors;"}var O="valid"+c,P=!e.opts.allErrors,A="",M="",N,E=e.schema.type,R=Array.isArray(E);if(E&&e.opts.nullable&&e.schema.nullable===!0&&(R?E.indexOf("null")==-1&&(E=E.concat("null")):E!="null"&&(E=[E,"null"],R=!0)),R&&E.length==1&&(E=E[0],R=!1),e.schema.$ref&&s){if(e.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');e.opts.extendRefs!==!0&&(s=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(r+=" "+e.RULES.all.$comment.code(e,"$comment")),E){if(e.opts.coerceTypes)var k=e.util.coerceToTypes(e.opts.coerceTypes,E);var L=e.RULES.types[E];if(k||R||L===!0||L&&!Me(L)){var p=e.schemaPath+".type",h=e.errSchemaPath+"/type",p=e.schemaPath+".type",h=e.errSchemaPath+"/type",D=R?"checkDataTypes":"checkDataType";if(r+=" if ("+e.util[D](E,b,e.opts.strictNumbers,!0)+") { ",k){var $="dataType"+c,W="coerced"+c;r+=" var "+$+" = typeof "+b+"; var "+W+" = undefined; ",e.opts.coerceTypes=="array"&&(r+=" if ("+$+" == 'object' && Array.isArray("+b+") && "+b+".length == 1) { "+b+" = "+b+"[0]; "+$+" = typeof "+b+"; if ("+e.util.checkDataType(e.schema.type,b,e.opts.strictNumbers)+") "+W+" = "+b+"; } "),r+=" if ("+W+" !== undefined) ; ";var ee=k;if(ee)for(var H,Q=-1,U=ee.length-1;Q<U;)H=ee[Q+=1],H=="string"?r+=" else if ("+$+" == 'number' || "+$+" == 'boolean') "+W+" = '' + "+b+"; else if ("+b+" === null) "+W+" = ''; ":H=="number"||H=="integer"?(r+=" else if ("+$+" == 'boolean' || "+b+" === null || ("+$+" == 'string' && "+b+" && "+b+" == +"+b+" ",H=="integer"&&(r+=" && !("+b+" % 1)"),r+=")) "+W+" = +"+b+"; "):H=="boolean"?r+=" else if ("+b+" === 'false' || "+b+" === 0 || "+b+" === null) "+W+" = false; else if ("+b+" === 'true' || "+b+" === 1) "+W+" = true; ":H=="null"?r+=" else if ("+b+" === '' || "+b+" === 0 || "+b+" === false) "+W+" = null; ":e.opts.coerceTypes=="array"&&H=="array"&&(r+=" else if ("+$+" == 'string' || "+$+" == 'number' || "+$+" == 'boolean' || "+b+" == null) "+W+" = ["+b+"]; ");r+=" else { ";var m=m||[];m.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(N||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",R?r+=""+E.join(","):r+=""+E,r+="' } ",e.opts.messages!==!1&&(r+=" , message: 'should be ",R?r+=""+E.join(","):r+=""+E,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "),r+=" } "):r+=" {} ";var w=r;r=m.pop(),!e.compositeRule&&P?e.async?r+=" throw new ValidationError(["+w+"]); ":r+=" validate.errors = ["+w+"]; return false; ":r+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } if ("+W+" !== undefined) { ";var _=u?"data"+(u-1||""):"parentData",ce=u?e.dataPathArr[u]:"parentDataProperty";r+=" "+b+" = "+W+"; ",u||(r+="if ("+_+" !== undefined)"),r+=" "+_+"["+ce+"] = "+W+"; } "}else{var m=m||[];m.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(N||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",R?r+=""+E.join(","):r+=""+E,r+="' } ",e.opts.messages!==!1&&(r+=" , message: 'should be ",R?r+=""+E.join(","):r+=""+E,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "),r+=" } "):r+=" {} ";var w=r;r=m.pop(),!e.compositeRule&&P?e.async?r+=" throw new ValidationError(["+w+"]); ":r+=" validate.errors = ["+w+"]; return false; ":r+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } "}}if(e.schema.$ref&&!s)r+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",P&&(r+=" } if (errors === ",C?r+="0":r+="errs_"+c,r+=") { ",M+="}");else{var Be=e.RULES;if(Be){for(var L,je=-1,te=Be.length-1;je<te;)if(L=Be[je+=1],Me(L)){if(L.type&&(r+=" if ("+e.util.checkDataType(L.type,b,e.opts.strictNumbers)+") { "),e.opts.useDefaults){if(L.type=="object"&&e.schema.properties){var f=e.schema.properties,Pe=Object.keys(f),$e=Pe;if($e)for(var _e,Ht=-1,$t=$e.length-1;Ht<$t;){_e=$e[Ht+=1];var Ae=f[_e];if(Ae.default!==void 0){var Te=b+e.util.getProperty(_e);if(e.compositeRule){if(e.opts.strictDefaults){var I="default is ignored for: "+Te;if(e.opts.strictDefaults==="log")e.logger.warn(I);else throw new Error(I)}}else r+=" if ("+Te+" === undefined ",e.opts.useDefaults=="empty"&&(r+=" || "+Te+" === null || "+Te+" === '' "),r+=" ) "+Te+" = ",e.opts.useDefaults=="shared"?r+=" "+e.useDefault(Ae.default)+" ":r+=" "+JSON.stringify(Ae.default)+" ",r+="; "}}}else if(L.type=="array"&&Array.isArray(e.schema.items)){var cr=e.schema.items;if(cr){for(var Ae,Q=-1,qe=cr.length-1;Q<qe;)if(Ae=cr[Q+=1],Ae.default!==void 0){var Te=b+"["+Q+"]";if(e.compositeRule){if(e.opts.strictDefaults){var I="default is ignored for: "+Te;if(e.opts.strictDefaults==="log")e.logger.warn(I);else throw new Error(I)}}else r+=" if ("+Te+" === undefined ",e.opts.useDefaults=="empty"&&(r+=" || "+Te+" === null || "+Te+" === '' "),r+=" ) "+Te+" = ",e.opts.useDefaults=="shared"?r+=" "+e.useDefault(Ae.default)+" ":r+=" "+JSON.stringify(Ae.default)+" ",r+="; "}}}}var ie=L.rules;if(ie){for(var Gt,Nt=-1,ur=ie.length-1;Nt<ur;)if(Gt=ie[Nt+=1],at(Gt)){var pr=Gt.code(e,Gt.keyword,L.type);pr&&(r+=" "+pr+" ",P&&(A+="}"))}}if(P&&(r+=" "+A+" ",A=""),L.type&&(r+=" } ",E&&E===L.type&&!k)){r+=" else { ";var p=e.schemaPath+".type",h=e.errSchemaPath+"/type",m=m||[];m.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(N||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",R?r+=""+E.join(","):r+=""+E,r+="' } ",e.opts.messages!==!1&&(r+=" , message: 'should be ",R?r+=""+E.join(","):r+=""+E,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "),r+=" } "):r+=" {} ";var w=r;r=m.pop(),!e.compositeRule&&P?e.async?r+=" throw new ValidationError(["+w+"]); ":r+=" validate.errors = ["+w+"]; return false; ":r+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } "}P&&(r+=" if (errors === ",C?r+="0":r+="errs_"+c,r+=") { ",M+="}")}}}P&&(r+=" "+M+" "),C?(n?(r+=" if (errors === 0) return data; ",r+=" else throw new ValidationError(vErrors); "):(r+=" validate.errors = vErrors; ",r+=" return errors === 0; "),r+=" }; return validate;"):r+=" var "+O+" = errors === errs_"+c+";";function Me(Ve){for(var Ft=Ve.rules,Je=0;Je<Ft.length;Je++)if(at(Ft[Je]))return!0}function at(Ve){return e.schema[Ve.keyword]!==void 0||Ve.implements&&Ue(Ve)}function Ue(Ve){for(var Ft=Ve.implements,Je=0;Je<Ft.length;Je++)if(e.schema[Ft[Je]]!==void 0)return!0}return r}});var fd=z((w0,pd)=>{"use strict";var ba=ya(),Sa=Cr(),cd=ga(),um=Zn(),dd=Jn(),pm=Sa.ucs2length,fm=da(),hm=cd.Validation;pd.exports=Yn;function Yn(t,e,i,a){var r=this,n=this._opts,s=[void 0],o={},l=[],d={},c=[],u={},f=[];e=e||{schema:t,refVal:s,refs:o};var p=mm.call(this,t,e,a),h=this._compilations[p.index];if(p.compiling)return h.callValidate=I;var b=this._formats,m=this.RULES;try{var w=O(t,e,i,a);h.validate=w;var C=h.callValidate;return C&&(C.schema=w.schema,C.errors=null,C.refs=w.refs,C.refVal=w.refVal,C.root=w.root,C.$async=w.$async,n.sourceCode&&(C.source=w.source)),w}finally{ym.call(this,t,e,a)}function I(){var D=h.validate,$=D.apply(this,arguments);return I.errors=D.errors,$}function O(D,$,W,ee){var H=!$||$&&$.schema==D;if($.schema!=e.schema)return Yn.call(r,D,$,W,ee);var Q=D.$async===!0,U=dd({isTop:!0,schema:D,isRoot:H,baseId:ee,root:$,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:cd.MissingRef,RULES:m,validate:dd,util:Sa,resolve:ba,resolveRef:P,usePattern:R,useDefault:k,useCustomRule:L,opts:n,formats:b,logger:r.logger,self:r});U=va(s,vm)+va(l,gm)+va(c,bm)+va(f,Sm)+U,n.processCode&&(U=n.processCode(U,D));var _;try{var ce=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",U);_=ce(r,m,b,e,s,c,f,fm,pm,hm),s[0]=_}catch(Be){throw r.logger.error("Error compiling schema, function code:",U),Be}return _.schema=D,_.errors=null,_.refs=o,_.refVal=s,_.root=H?_:$,Q&&(_.$async=!0),n.sourceCode===!0&&(_.source={code:U,patterns:l,defaults:c}),_}function P(D,$,W){$=ba.url(D,$);var ee=o[$],H,Q;if(ee!==void 0)return H=s[ee],Q="refVal["+ee+"]",E(H,Q);if(!W&&e.refs){var U=e.refs[$];if(U!==void 0)return H=e.refVal[U],Q=A($,H),E(H,Q)}Q=A($);var _=ba.call(r,O,e,$);if(_===void 0){var ce=i&&i[$];ce&&(_=ba.inlineRef(ce,n.inlineRefs)?ce:Yn.call(r,ce,e,i,D))}if(_===void 0)M($);else return N($,_),E(_,Q)}function A(D,$){var W=s.length;return s[W]=$,o[D]=W,"refVal"+W}function M(D){delete o[D]}function N(D,$){var W=o[D];s[W]=$}function E(D,$){return typeof D=="object"||typeof D=="boolean"?{code:$,schema:D,inline:!0}:{code:$,$async:D&&!!D.$async}}function R(D){var $=d[D];return $===void 0&&($=d[D]=l.length,l[$]=D),"pattern"+$}function k(D){switch(typeof D){case"boolean":case"number":return""+D;case"string":return Sa.toQuotedString(D);case"object":if(D===null)return"null";var $=um(D),W=u[$];return W===void 0&&(W=u[$]=c.length,c[W]=D),"default"+W}}function L(D,$,W,ee){if(r._opts.validateSchema!==!1){var H=D.definition.dependencies;if(H&&!H.every(function($e){return Object.prototype.hasOwnProperty.call(W,$e)}))throw new Error("parent schema must have all required keywords: "+H.join(","));var Q=D.definition.validateSchema;if(Q){var U=Q($);if(!U){var _="keyword schema is invalid: "+r.errorsText(Q.errors);if(r._opts.validateSchema=="log")r.logger.error(_);else throw new Error(_)}}}var ce=D.definition.compile,Be=D.definition.inline,je=D.definition.macro,te;if(ce)te=ce.call(r,$,W,ee);else if(je)te=je.call(r,$,W,ee),n.validateSchema!==!1&&r.validateSchema(te,!0);else if(Be)te=Be.call(r,ee,D.keyword,$,W);else if(te=D.definition.validate,!te)return;if(te===void 0)throw new Error('custom keyword "'+D.keyword+'"failed to compile');var Pe=f.length;return f[Pe]=te,{code:"customRule"+Pe,validate:te}}}function mm(t,e,i){var a=ud.call(this,t,e,i);return a>=0?{index:a,compiling:!0}:(a=this._compilations.length,this._compilations[a]={schema:t,root:e,baseId:i},{index:a,compiling:!1})}function ym(t,e,i){var a=ud.call(this,t,e,i);a>=0&&this._compilations.splice(a,1)}function ud(t,e,i){for(var a=0;a<this._compilations.length;a++){var r=this._compilations[a];if(r.schema==t&&r.root==e&&r.baseId==i)return a}return-1}function gm(t,e){return"var pattern"+t+" = new RegExp("+Sa.toQuotedString(e[t])+");"}function bm(t){return"var default"+t+" = defaults["+t+"];"}function vm(t,e){return e[t]===void 0?"":"var refVal"+t+" = refVal["+t+"];"}function Sm(t){return"var customRule"+t+" = customRules["+t+"];"}function va(t,e){if(!t.length)return"";for(var i="",a=0;a<t.length;a++)i+=e(a,t);return i}});var md=z((I0,hd)=>{"use strict";var wa=hd.exports=function(){this._cache={}};wa.prototype.put=function(e,i){this._cache[e]=i};wa.prototype.get=function(e){return this._cache[e]};wa.prototype.del=function(e){delete this._cache[e]};wa.prototype.clear=function(){this._cache={}}});var Od=z((C0,Fd)=>{"use strict";var wm=Cr(),Im=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Cm=[0,31,28,31,30,31,30,31,31,30,31,30,31],xm=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,yd=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,Tm=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,Fm=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,gd=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,bd=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,vd=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Sd=/^(?:\/(?:[^~/]|~0|~1)*)*$/,wd=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,Id=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;Fd.exports=Ia;function Ia(t){return t=t=="full"?"full":"fast",wm.copy(Ia[t])}Ia.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":gd,url:bd,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:yd,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:Td,uuid:vd,"json-pointer":Sd,"json-pointer-uri-fragment":wd,"relative-json-pointer":Id};Ia.full={date:Cd,time:xd,"date-time":Am,uri:Dm,"uri-reference":Fm,"uri-template":gd,url:bd,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:yd,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:Td,uuid:vd,"json-pointer":Sd,"json-pointer-uri-fragment":wd,"relative-json-pointer":Id};function Om(t){return t%4===0&&(t%100!==0||t%400===0)}function Cd(t){var e=t.match(Im);if(!e)return!1;var i=+e[1],a=+e[2],r=+e[3];return a>=1&&a<=12&&r>=1&&r<=(a==2&&Om(i)?29:Cm[a])}function xd(t,e){var i=t.match(xm);if(!i)return!1;var a=i[1],r=i[2],n=i[3],s=i[5];return(a<=23&&r<=59&&n<=59||a==23&&r==59&&n==60)&&(!e||s)}var Pm=/t|\s/i;function Am(t){var e=t.split(Pm);return e.length==2&&Cd(e[0])&&xd(e[1],!0)}var Em=/\/|:/;function Dm(t){return Em.test(t)&&Tm.test(t)}var Lm=/[^\\]\\Z/;function Td(t){if(Lm.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var Ad=z((x0,Pd)=>{"use strict";Pd.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.errSchemaPath+"/"+i,d=!e.opts.allErrors,c="data"+(s||""),u="valid"+n,f,p;if(o=="#"||o=="#/")e.isRoot?(f=e.async,p="validate"):(f=e.root.schema.$async===!0,p="root.refVal[0]");else{var h=e.resolveRef(e.baseId,o,e.isRoot);if(h===void 0){var b=e.MissingRefError.message(e.baseId,o);if(e.opts.missingRefs=="fail"){e.logger.error(b);var m=m||[];m.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { ref: '"+e.util.escapeQuotes(o)+"' } ",e.opts.messages!==!1&&(r+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(o)+"' "),e.opts.verbose&&(r+=" , schema: "+e.util.toQuotedString(o)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),r+=" } "):r+=" {} ";var w=r;r=m.pop(),!e.compositeRule&&d?e.async?r+=" throw new ValidationError(["+w+"]); ":r+=" validate.errors = ["+w+"]; return false; ":r+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d&&(r+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(b),d&&(r+=" if (true) { ");else throw new e.MissingRefError(e.baseId,o,b)}else if(h.inline){var C=e.util.copy(e);C.level++;var I="valid"+C.level;C.schema=h.schema,C.schemaPath="",C.errSchemaPath=o;var O=e.validate(C).replace(/validate\.schema/g,h.code);r+=" "+O+" ",d&&(r+=" if ("+I+") { ")}else f=h.$async===!0||e.async&&h.$async!==!1,p=h.code}if(p){var m=m||[];m.push(r),r="",e.opts.passContext?r+=" "+p+".call(this, ":r+=" "+p+"( ",r+=" "+c+", (dataPath || '')",e.errorPath!='""'&&(r+=" + "+e.errorPath);var P=s?"data"+(s-1||""):"parentData",A=s?e.dataPathArr[s]:"parentDataProperty";r+=" , "+P+" , "+A+", rootData) ";var M=r;if(r=m.pop(),f){if(!e.async)throw new Error("async schema referenced by sync schema");d&&(r+=" var "+u+"; "),r+=" try { await "+M+"; ",d&&(r+=" "+u+" = true; "),r+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",d&&(r+=" "+u+" = false; "),r+=" } ",d&&(r+=" if ("+u+") { ")}else r+=" if (!"+M+") { if (vErrors === null) vErrors = "+p+".errors; else vErrors = vErrors.concat("+p+".errors); errors = vErrors.length; } ",d&&(r+=" else { ")}return r}});var Dd=z((T0,Ed)=>{"use strict";Ed.exports=function(e,i,a){var r=" ",n=e.schema[i],s=e.schemaPath+e.util.getProperty(i),o=e.errSchemaPath+"/"+i,l=!e.opts.allErrors,d=e.util.copy(e),c="";d.level++;var u="valid"+d.level,f=d.baseId,p=!0,h=n;if(h)for(var b,m=-1,w=h.length-1;m<w;)b=h[m+=1],(e.opts.strictKeywords?typeof b=="object"&&Object.keys(b).length>0||b===!1:e.util.schemaHasRules(b,e.RULES.all))&&(p=!1,d.schema=b,d.schemaPath=s+"["+m+"]",d.errSchemaPath=o+"/"+m,r+=" "+e.validate(d)+" ",d.baseId=f,l&&(r+=" if ("+u+") { ",c+="}"));return l&&(p?r+=" if (true) { ":r+=" "+c.slice(0,-1)+" "),r}});var $d=z((F0,Ld)=>{"use strict";Ld.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f="valid"+n,p="errs__"+n,h=e.util.copy(e),b="";h.level++;var m="valid"+h.level,w=o.every(function(N){return e.opts.strictKeywords?typeof N=="object"&&Object.keys(N).length>0||N===!1:e.util.schemaHasRules(N,e.RULES.all)});if(w){var C=h.baseId;r+=" var "+p+" = errors; var "+f+" = false; ";var I=e.compositeRule;e.compositeRule=h.compositeRule=!0;var O=o;if(O)for(var P,A=-1,M=O.length-1;A<M;)P=O[A+=1],h.schema=P,h.schemaPath=l+"["+A+"]",h.errSchemaPath=d+"/"+A,r+=" "+e.validate(h)+" ",h.baseId=C,r+=" "+f+" = "+f+" || "+m+"; if (!"+f+") { ",b+="}";e.compositeRule=h.compositeRule=I,r+=" "+b+" if (!"+f+") { var err = ",e.createErrors!==!1?(r+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(r+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+=" } else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.opts.allErrors&&(r+=" } ")}else c&&(r+=" if (true) { ");return r}});var Rd=z((O0,Nd)=>{"use strict";Nd.exports=function(e,i,a){var r=" ",n=e.schema[i],s=e.errSchemaPath+"/"+i,o=!e.opts.allErrors,l=e.util.toQuotedString(n);return e.opts.$comment===!0?r+=" console.log("+l+");":typeof e.opts.$comment=="function"&&(r+=" self._opts.$comment("+l+", "+e.util.toQuotedString(s)+", validate.root.schema);"),r}});var kd=z((P0,Md)=>{"use strict";Md.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f="valid"+n,p=e.opts.$data&&o&&o.$data,h;p?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",h="schema"+n):h=o,p||(r+=" var schema"+n+" = validate.schema"+l+";"),r+="var "+f+" = equal("+u+", schema"+n+"); if (!"+f+") { ";var b=b||[];b.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { allowedValue: schema"+n+" } ",e.opts.messages!==!1&&(r+=" , message: 'should be equal to constant' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var m=r;return r=b.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+m+"]); ":r+=" validate.errors = ["+m+"]; return false; ":r+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" }",c&&(r+=" else { "),r}});var qd=z((A0,Bd)=>{"use strict";Bd.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f="valid"+n,p="errs__"+n,h=e.util.copy(e),b="";h.level++;var m="valid"+h.level,w="i"+n,C=h.dataLevel=e.dataLevel+1,I="data"+C,O=e.baseId,P=e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all);if(r+="var "+p+" = errors;var "+f+";",P){var A=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=o,h.schemaPath=l,h.errSchemaPath=d,r+=" var "+m+" = false; for (var "+w+" = 0; "+w+" < "+u+".length; "+w+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,w,e.opts.jsonPointers,!0);var M=u+"["+w+"]";h.dataPathArr[C]=w;var N=e.validate(h);h.baseId=O,e.util.varOccurences(N,I)<2?r+=" "+e.util.varReplace(N,I,M)+" ":r+=" var "+I+" = "+M+"; "+N+" ",r+=" if ("+m+") break; } ",e.compositeRule=h.compositeRule=A,r+=" "+b+" if (!"+m+") {"}else r+=" if ("+u+".length == 0) {";var E=E||[];E.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(r+=" , message: 'should contain a valid item' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var R=r;return r=E.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+R+"]); ":r+=" validate.errors = ["+R+"]; return false; ":r+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { ",P&&(r+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } "),e.opts.allErrors&&(r+=" } "),r}});var jd=z((E0,Wd)=>{"use strict";Wd.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f="errs__"+n,p=e.util.copy(e),h="";p.level++;var b="valid"+p.level,m={},w={},C=e.opts.ownProperties;for(A in o)if(A!="__proto__"){var I=o[A],O=Array.isArray(I)?w:m;O[A]=I}r+="var "+f+" = errors;";var P=e.errorPath;r+="var missing"+n+";";for(var A in w)if(O=w[A],O.length){if(r+=" if ( "+u+e.util.getProperty(A)+" !== undefined ",C&&(r+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(A)+"') "),c){r+=" && ( ";var M=O;if(M)for(var N,E=-1,R=M.length-1;E<R;){N=M[E+=1],E&&(r+=" || ");var k=e.util.getProperty(N),L=u+k;r+=" ( ( "+L+" === undefined ",C&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(N)+"') "),r+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?N:k)+") ) "}r+=")) { ";var D="missing"+n,$="' + "+D+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(P,D,!0):P+" + "+D);var W=W||[];W.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { property: '"+e.util.escapeQuotes(A)+"', missingProperty: '"+$+"', depsCount: "+O.length+", deps: '"+e.util.escapeQuotes(O.length==1?O[0]:O.join(", "))+"' } ",e.opts.messages!==!1&&(r+=" , message: 'should have ",O.length==1?r+="property "+e.util.escapeQuotes(O[0]):r+="properties "+e.util.escapeQuotes(O.join(", ")),r+=" when property "+e.util.escapeQuotes(A)+" is present' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var ee=r;r=W.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+ee+"]); ":r+=" validate.errors = ["+ee+"]; return false; ":r+=" var err = "+ee+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{r+=" ) { ";var H=O;if(H)for(var N,Q=-1,U=H.length-1;Q<U;){N=H[Q+=1];var k=e.util.getProperty(N),$=e.util.escapeQuotes(N),L=u+k;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(P,N,e.opts.jsonPointers)),r+=" if ( "+L+" === undefined ",C&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(N)+"') "),r+=") { var err = ",e.createErrors!==!1?(r+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { property: '"+e.util.escapeQuotes(A)+"', missingProperty: '"+$+"', depsCount: "+O.length+", deps: '"+e.util.escapeQuotes(O.length==1?O[0]:O.join(", "))+"' } ",e.opts.messages!==!1&&(r+=" , message: 'should have ",O.length==1?r+="property "+e.util.escapeQuotes(O[0]):r+="properties "+e.util.escapeQuotes(O.join(", ")),r+=" when property "+e.util.escapeQuotes(A)+" is present' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}r+=" } ",c&&(h+="}",r+=" else { ")}e.errorPath=P;var _=p.baseId;for(var A in m){var I=m[A];(e.opts.strictKeywords?typeof I=="object"&&Object.keys(I).length>0||I===!1:e.util.schemaHasRules(I,e.RULES.all))&&(r+=" "+b+" = true; if ( "+u+e.util.getProperty(A)+" !== undefined ",C&&(r+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(A)+"') "),r+=") { ",p.schema=I,p.schemaPath=l+e.util.getProperty(A),p.errSchemaPath=d+"/"+e.util.escapeFragment(A),r+=" "+e.validate(p)+" ",p.baseId=_,r+=" } ",c&&(r+=" if ("+b+") { ",h+="}"))}return c&&(r+=" "+h+" if ("+f+" == errors) {"),r}});var Vd=z((D0,_d)=>{"use strict";_d.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f="valid"+n,p=e.opts.$data&&o&&o.$data,h;p?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",h="schema"+n):h=o;var b="i"+n,m="schema"+n;p||(r+=" var "+m+" = validate.schema"+l+";"),r+="var "+f+";",p&&(r+=" if (schema"+n+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+n+")) "+f+" = false; else {"),r+=""+f+" = false;for (var "+b+"=0; "+b+"<"+m+".length; "+b+"++) if (equal("+u+", "+m+"["+b+"])) { "+f+" = true; break; }",p&&(r+=" } "),r+=" if (!"+f+") { ";var w=w||[];w.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { allowedValues: schema"+n+" } ",e.opts.messages!==!1&&(r+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var C=r;return r=w.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+C+"]); ":r+=" validate.errors = ["+C+"]; return false; ":r+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" }",c&&(r+=" else { "),r}});var Ud=z((L0,zd)=>{"use strict";zd.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||"");if(e.opts.format===!1)return c&&(r+=" if (true) { "),r;var f=e.opts.$data&&o&&o.$data,p;f?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o;var h=e.opts.unknownFormats,b=Array.isArray(h);if(f){var m="format"+n,w="isObject"+n,C="formatType"+n;r+=" var "+m+" = formats["+p+"]; var "+w+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+C+" = "+w+" && "+m+".type || 'string'; if ("+w+") { ",e.async&&(r+=" var async"+n+" = "+m+".async; "),r+=" "+m+" = "+m+".validate; } if ( ",f&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),r+=" (",h!="ignore"&&(r+=" ("+p+" && !"+m+" ",b&&(r+=" && self._opts.unknownFormats.indexOf("+p+") == -1 "),r+=") || "),r+=" ("+m+" && "+C+" == '"+a+"' && !(typeof "+m+" == 'function' ? ",e.async?r+=" (async"+n+" ? await "+m+"("+u+") : "+m+"("+u+")) ":r+=" "+m+"("+u+") ",r+=" : "+m+".test("+u+"))))) {"}else{var m=e.formats[o];if(!m){if(h=="ignore")return e.logger.warn('unknown format "'+o+'" ignored in schema at path "'+e.errSchemaPath+'"'),c&&(r+=" if (true) { "),r;if(b&&h.indexOf(o)>=0)return c&&(r+=" if (true) { "),r;throw new Error('unknown format "'+o+'" is used in schema at path "'+e.errSchemaPath+'"')}var w=typeof m=="object"&&!(m instanceof RegExp)&&m.validate,C=w&&m.type||"string";if(w){var I=m.async===!0;m=m.validate}if(C!=a)return c&&(r+=" if (true) { "),r;if(I){if(!e.async)throw new Error("async format in sync schema");var O="formats"+e.util.getProperty(o)+".validate";r+=" if (!(await "+O+"("+u+"))) { "}else{r+=" if (! ";var O="formats"+e.util.getProperty(o);w&&(O+=".validate"),typeof m=="function"?r+=" "+O+"("+u+") ":r+=" "+O+".test("+u+") ",r+=") { "}}var P=P||[];P.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { format: ",f?r+=""+p:r+=""+e.util.toQuotedString(o),r+=" } ",e.opts.messages!==!1&&(r+=` , message: 'should match format "`,f?r+="' + "+p+" + '":r+=""+e.util.escapeQuotes(o),r+=`"' `),e.opts.verbose&&(r+=" , schema: ",f?r+="validate.schema"+l:r+=""+e.util.toQuotedString(o),r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var A=r;return r=P.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+A+"]); ":r+=" validate.errors = ["+A+"]; return false; ":r+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",c&&(r+=" else { "),r}});var Gd=z(($0,Hd)=>{"use strict";Hd.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f="valid"+n,p="errs__"+n,h=e.util.copy(e);h.level++;var b="valid"+h.level,m=e.schema.then,w=e.schema.else,C=m!==void 0&&(e.opts.strictKeywords?typeof m=="object"&&Object.keys(m).length>0||m===!1:e.util.schemaHasRules(m,e.RULES.all)),I=w!==void 0&&(e.opts.strictKeywords?typeof w=="object"&&Object.keys(w).length>0||w===!1:e.util.schemaHasRules(w,e.RULES.all)),O=h.baseId;if(C||I){var P;h.createErrors=!1,h.schema=o,h.schemaPath=l,h.errSchemaPath=d,r+=" var "+p+" = errors; var "+f+" = true; ";var A=e.compositeRule;e.compositeRule=h.compositeRule=!0,r+=" "+e.validate(h)+" ",h.baseId=O,h.createErrors=!0,r+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.compositeRule=h.compositeRule=A,C?(r+=" if ("+b+") { ",h.schema=e.schema.then,h.schemaPath=e.schemaPath+".then",h.errSchemaPath=e.errSchemaPath+"/then",r+=" "+e.validate(h)+" ",h.baseId=O,r+=" "+f+" = "+b+"; ",C&&I?(P="ifClause"+n,r+=" var "+P+" = 'then'; "):P="'then'",r+=" } ",I&&(r+=" else { ")):r+=" if (!"+b+") { ",I&&(h.schema=e.schema.else,h.schemaPath=e.schemaPath+".else",h.errSchemaPath=e.errSchemaPath+"/else",r+=" "+e.validate(h)+" ",h.baseId=O,r+=" "+f+" = "+b+"; ",C&&I?(P="ifClause"+n,r+=" var "+P+" = 'else'; "):P="'else'",r+=" } "),r+=" if (!"+f+") { var err = ",e.createErrors!==!1?(r+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { failingKeyword: "+P+" } ",e.opts.messages!==!1&&(r+=` , message: 'should match "' + `+P+` + '" schema' `),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+=" } ",c&&(r+=" else { ")}else c&&(r+=" if (true) { ");return r}});var Zd=z((N0,Qd)=>{"use strict";Qd.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f="valid"+n,p="errs__"+n,h=e.util.copy(e),b="";h.level++;var m="valid"+h.level,w="i"+n,C=h.dataLevel=e.dataLevel+1,I="data"+C,O=e.baseId;if(r+="var "+p+" = errors;var "+f+";",Array.isArray(o)){var P=e.schema.additionalItems;if(P===!1){r+=" "+f+" = "+u+".length <= "+o.length+"; ";var A=d;d=e.errSchemaPath+"/additionalItems",r+=" if (!"+f+") { ";var M=M||[];M.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+o.length+" } ",e.opts.messages!==!1&&(r+=" , message: 'should NOT have more than "+o.length+" items' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var N=r;r=M.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+N+"]); ":r+=" validate.errors = ["+N+"]; return false; ":r+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",d=A,c&&(b+="}",r+=" else { ")}var E=o;if(E){for(var R,k=-1,L=E.length-1;k<L;)if(R=E[k+=1],e.opts.strictKeywords?typeof R=="object"&&Object.keys(R).length>0||R===!1:e.util.schemaHasRules(R,e.RULES.all)){r+=" "+m+" = true; if ("+u+".length > "+k+") { ";var D=u+"["+k+"]";h.schema=R,h.schemaPath=l+"["+k+"]",h.errSchemaPath=d+"/"+k,h.errorPath=e.util.getPathExpr(e.errorPath,k,e.opts.jsonPointers,!0),h.dataPathArr[C]=k;var $=e.validate(h);h.baseId=O,e.util.varOccurences($,I)<2?r+=" "+e.util.varReplace($,I,D)+" ":r+=" var "+I+" = "+D+"; "+$+" ",r+=" } ",c&&(r+=" if ("+m+") { ",b+="}")}}if(typeof P=="object"&&(e.opts.strictKeywords?typeof P=="object"&&Object.keys(P).length>0||P===!1:e.util.schemaHasRules(P,e.RULES.all))){h.schema=P,h.schemaPath=e.schemaPath+".additionalItems",h.errSchemaPath=e.errSchemaPath+"/additionalItems",r+=" "+m+" = true; if ("+u+".length > "+o.length+") { for (var "+w+" = "+o.length+"; "+w+" < "+u+".length; "+w+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,w,e.opts.jsonPointers,!0);var D=u+"["+w+"]";h.dataPathArr[C]=w;var $=e.validate(h);h.baseId=O,e.util.varOccurences($,I)<2?r+=" "+e.util.varReplace($,I,D)+" ":r+=" var "+I+" = "+D+"; "+$+" ",c&&(r+=" if (!"+m+") break; "),r+=" } } ",c&&(r+=" if ("+m+") { ",b+="}")}}else if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){h.schema=o,h.schemaPath=l,h.errSchemaPath=d,r+=" for (var "+w+" = 0; "+w+" < "+u+".length; "+w+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,w,e.opts.jsonPointers,!0);var D=u+"["+w+"]";h.dataPathArr[C]=w;var $=e.validate(h);h.baseId=O,e.util.varOccurences($,I)<2?r+=" "+e.util.varReplace($,I,D)+" ":r+=" var "+I+" = "+D+"; "+$+" ",c&&(r+=" if (!"+m+") break; "),r+=" }"}return c&&(r+=" "+b+" if ("+p+" == errors) {"),r}});var Kn=z((R0,Jd)=>{"use strict";Jd.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,O,u="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;f?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o;var h=i=="maximum",b=h?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[b],w=e.opts.$data&&m&&m.$data,C=h?"<":">",I=h?">":"<",O=void 0;if(!(f||typeof o=="number"||o===void 0))throw new Error(i+" must be number");if(!(w||m===void 0||typeof m=="number"||typeof m=="boolean"))throw new Error(b+" must be number or boolean");if(w){var P=e.util.getData(m.$data,s,e.dataPathArr),A="exclusive"+n,M="exclType"+n,N="exclIsNumber"+n,E="op"+n,R="' + "+E+" + '";r+=" var schemaExcl"+n+" = "+P+"; ",P="schemaExcl"+n,r+=" var "+A+"; var "+M+" = typeof "+P+"; if ("+M+" != 'boolean' && "+M+" != 'undefined' && "+M+" != 'number') { ";var O=b,k=k||[];k.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(O||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(r+=" , message: '"+b+" should be boolean' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var L=r;r=k.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+L+"]); ":r+=" validate.errors = ["+L+"]; return false; ":r+=" var err = "+L+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else if ( ",f&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),r+=" "+M+" == 'number' ? ( ("+A+" = "+p+" === undefined || "+P+" "+C+"= "+p+") ? "+u+" "+I+"= "+P+" : "+u+" "+I+" "+p+" ) : ( ("+A+" = "+P+" === true) ? "+u+" "+I+"= "+p+" : "+u+" "+I+" "+p+" ) || "+u+" !== "+u+") { var op"+n+" = "+A+" ? '"+C+"' : '"+C+"='; ",o===void 0&&(O=b,d=e.errSchemaPath+"/"+b,p=P,f=w)}else{var N=typeof m=="number",R=C;if(N&&f){var E="'"+R+"'";r+=" if ( ",f&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),r+=" ( "+p+" === undefined || "+m+" "+C+"= "+p+" ? "+u+" "+I+"= "+m+" : "+u+" "+I+" "+p+" ) || "+u+" !== "+u+") { "}else{N&&o===void 0?(A=!0,O=b,d=e.errSchemaPath+"/"+b,p=m,I+="="):(N&&(p=Math[h?"min":"max"](m,o)),m===(N?p:!0)?(A=!0,O=b,d=e.errSchemaPath+"/"+b,I+="="):(A=!1,R+="="));var E="'"+R+"'";r+=" if ( ",f&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),r+=" "+u+" "+I+" "+p+" || "+u+" !== "+u+") { "}}O=O||i;var k=k||[];k.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(O||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { comparison: "+E+", limit: "+p+", exclusive: "+A+" } ",e.opts.messages!==!1&&(r+=" , message: 'should be "+R+" ",f?r+="' + "+p:r+=""+p+"'"),e.opts.verbose&&(r+=" , schema: ",f?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var L=r;return r=k.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+L+"]); ":r+=" validate.errors = ["+L+"]; return false; ":r+=" var err = "+L+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",c&&(r+=" else { "),r}});var Xn=z((M0,Yd)=>{"use strict";Yd.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,b,u="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;if(f?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(f||typeof o=="number"))throw new Error(i+" must be number");var h=i=="maxItems"?">":"<";r+="if ( ",f&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),r+=" "+u+".length "+h+" "+p+") { ";var b=i,m=m||[];m.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(b||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(r+=" , message: 'should NOT have ",i=="maxItems"?r+="more":r+="fewer",r+=" than ",f?r+="' + "+p+" + '":r+=""+o,r+=" items' "),e.opts.verbose&&(r+=" , schema: ",f?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var w=r;return r=m.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+w+"]); ":r+=" validate.errors = ["+w+"]; return false; ":r+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",c&&(r+=" else { "),r}});var es=z((k0,Kd)=>{"use strict";Kd.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,b,u="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;if(f?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(f||typeof o=="number"))throw new Error(i+" must be number");var h=i=="maxLength"?">":"<";r+="if ( ",f&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),e.opts.unicode===!1?r+=" "+u+".length ":r+=" ucs2length("+u+") ",r+=" "+h+" "+p+") { ";var b=i,m=m||[];m.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(b||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(r+=" , message: 'should NOT be ",i=="maxLength"?r+="longer":r+="shorter",r+=" than ",f?r+="' + "+p+" + '":r+=""+o,r+=" characters' "),e.opts.verbose&&(r+=" , schema: ",f?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var w=r;return r=m.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+w+"]); ":r+=" validate.errors = ["+w+"]; return false; ":r+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",c&&(r+=" else { "),r}});var ts=z((B0,Xd)=>{"use strict";Xd.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,b,u="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;if(f?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(f||typeof o=="number"))throw new Error(i+" must be number");var h=i=="maxProperties"?">":"<";r+="if ( ",f&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),r+=" Object.keys("+u+").length "+h+" "+p+") { ";var b=i,m=m||[];m.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(b||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(r+=" , message: 'should NOT have ",i=="maxProperties"?r+="more":r+="fewer",r+=" than ",f?r+="' + "+p+" + '":r+=""+o,r+=" properties' "),e.opts.verbose&&(r+=" , schema: ",f?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var w=r;return r=m.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+w+"]); ":r+=" validate.errors = ["+w+"]; return false; ":r+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",c&&(r+=" else { "),r}});var tc=z((q0,ec)=>{"use strict";ec.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;if(f?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(f||typeof o=="number"))throw new Error(i+" must be number");r+="var division"+n+";if (",f&&(r+=" "+p+" !== undefined && ( typeof "+p+" != 'number' || "),r+=" (division"+n+" = "+u+" / "+p+", ",e.opts.multipleOfPrecision?r+=" Math.abs(Math.round(division"+n+") - division"+n+") > 1e-"+e.opts.multipleOfPrecision+" ":r+=" division"+n+" !== parseInt(division"+n+") ",r+=" ) ",f&&(r+=" ) "),r+=" ) { ";var h=h||[];h.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { multipleOf: "+p+" } ",e.opts.messages!==!1&&(r+=" , message: 'should be multiple of ",f?r+="' + "+p:r+=""+p+"'"),e.opts.verbose&&(r+=" , schema: ",f?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var b=r;return r=h.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+b+"]); ":r+=" validate.errors = ["+b+"]; return false; ":r+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",c&&(r+=" else { "),r}});var ic=z((W0,rc)=>{"use strict";rc.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f="errs__"+n,p=e.util.copy(e);p.level++;var h="valid"+p.level;if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){p.schema=o,p.schemaPath=l,p.errSchemaPath=d,r+=" var "+f+" = errors; ";var b=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.createErrors=!1;var m;p.opts.allErrors&&(m=p.opts.allErrors,p.opts.allErrors=!1),r+=" "+e.validate(p)+" ",p.createErrors=!0,m&&(p.opts.allErrors=m),e.compositeRule=p.compositeRule=b,r+=" if ("+h+") { ";var w=w||[];w.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(r+=" , message: 'should NOT be valid' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var C=r;r=w.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+C+"]); ":r+=" validate.errors = ["+C+"]; return false; ":r+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.opts.allErrors&&(r+=" } ")}else r+=" var err = ",e.createErrors!==!1?(r+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(r+=" , message: 'should NOT be valid' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(r+=" if (false) { ");return r}});var nc=z((j0,ac)=>{"use strict";ac.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f="valid"+n,p="errs__"+n,h=e.util.copy(e),b="";h.level++;var m="valid"+h.level,w=h.baseId,C="prevValid"+n,I="passingSchemas"+n;r+="var "+p+" = errors , "+C+" = false , "+f+" = false , "+I+" = null; ";var O=e.compositeRule;e.compositeRule=h.compositeRule=!0;var P=o;if(P)for(var A,M=-1,N=P.length-1;M<N;)A=P[M+=1],(e.opts.strictKeywords?typeof A=="object"&&Object.keys(A).length>0||A===!1:e.util.schemaHasRules(A,e.RULES.all))?(h.schema=A,h.schemaPath=l+"["+M+"]",h.errSchemaPath=d+"/"+M,r+=" "+e.validate(h)+" ",h.baseId=w):r+=" var "+m+" = true; ",M&&(r+=" if ("+m+" && "+C+") { "+f+" = false; "+I+" = ["+I+", "+M+"]; } else { ",b+="}"),r+=" if ("+m+") { "+f+" = "+C+" = true; "+I+" = "+M+"; }";return e.compositeRule=h.compositeRule=O,r+=""+b+"if (!"+f+") { var err = ",e.createErrors!==!1?(r+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { passingSchemas: "+I+" } ",e.opts.messages!==!1&&(r+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+="} else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; }",e.opts.allErrors&&(r+=" } "),r}});var oc=z((_0,sc)=>{"use strict";sc.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;f?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o;var h=f?"(new RegExp("+p+"))":e.usePattern(o);r+="if ( ",f&&(r+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),r+=" !"+h+".test("+u+") ) { ";var b=b||[];b.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { pattern: ",f?r+=""+p:r+=""+e.util.toQuotedString(o),r+=" } ",e.opts.messages!==!1&&(r+=` , message: 'should match pattern "`,f?r+="' + "+p+" + '":r+=""+e.util.escapeQuotes(o),r+=`"' `),e.opts.verbose&&(r+=" , schema: ",f?r+="validate.schema"+l:r+=""+e.util.toQuotedString(o),r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var m=r;return r=b.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+m+"]); ":r+=" validate.errors = ["+m+"]; return false; ":r+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",c&&(r+=" else { "),r}});var dc=z((V0,lc)=>{"use strict";lc.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f="errs__"+n,p=e.util.copy(e),h="";p.level++;var b="valid"+p.level,m="key"+n,w="idx"+n,C=p.dataLevel=e.dataLevel+1,I="data"+C,O="dataProperties"+n,P=Object.keys(o||{}).filter(Q),A=e.schema.patternProperties||{},M=Object.keys(A).filter(Q),N=e.schema.additionalProperties,E=P.length||M.length,R=N===!1,k=typeof N=="object"&&Object.keys(N).length,L=e.opts.removeAdditional,D=R||k||L,$=e.opts.ownProperties,W=e.baseId,ee=e.schema.required;if(ee&&!(e.opts.$data&&ee.$data)&&ee.length<e.opts.loopRequired)var H=e.util.toHash(ee);function Q(yt){return yt!=="__proto__"}if(r+="var "+f+" = errors;var "+b+" = true;",$&&(r+=" var "+O+" = undefined;"),D){if($?r+=" "+O+" = "+O+" || Object.keys("+u+"); for (var "+w+"=0; "+w+"<"+O+".length; "+w+"++) { var "+m+" = "+O+"["+w+"]; ":r+=" for (var "+m+" in "+u+") { ",E){if(r+=" var isAdditional"+n+" = !(false ",P.length)if(P.length>8)r+=" || validate.schema"+l+".hasOwnProperty("+m+") ";else{var U=P;if(U)for(var _,ce=-1,Be=U.length-1;ce<Be;)_=U[ce+=1],r+=" || "+m+" == "+e.util.toQuotedString(_)+" "}if(M.length){var je=M;if(je)for(var te,Pe=-1,$e=je.length-1;Pe<$e;)te=je[Pe+=1],r+=" || "+e.usePattern(te)+".test("+m+") "}r+=" ); if (isAdditional"+n+") { "}if(L=="all")r+=" delete "+u+"["+m+"]; ";else{var _e=e.errorPath,Ht="' + "+m+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers)),R)if(L)r+=" delete "+u+"["+m+"]; ";else{r+=" "+b+" = false; ";var $t=d;d=e.errSchemaPath+"/additionalProperties";var Ae=Ae||[];Ae.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { additionalProperty: '"+Ht+"' } ",e.opts.messages!==!1&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is an invalid additional property":r+="should NOT have additional properties",r+="' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var Te=r;r=Ae.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+Te+"]); ":r+=" validate.errors = ["+Te+"]; return false; ":r+=" var err = "+Te+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d=$t,c&&(r+=" break; ")}else if(k)if(L=="failing"){r+=" var "+f+" = errors; ";var cr=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=N,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var qe=u+"["+m+"]";p.dataPathArr[C]=m;var ie=e.validate(p);p.baseId=W,e.util.varOccurences(ie,I)<2?r+=" "+e.util.varReplace(ie,I,qe)+" ":r+=" var "+I+" = "+qe+"; "+ie+" ",r+=" if (!"+b+") { errors = "+f+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+u+"["+m+"]; } ",e.compositeRule=p.compositeRule=cr}else{p.schema=N,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var qe=u+"["+m+"]";p.dataPathArr[C]=m;var ie=e.validate(p);p.baseId=W,e.util.varOccurences(ie,I)<2?r+=" "+e.util.varReplace(ie,I,qe)+" ":r+=" var "+I+" = "+qe+"; "+ie+" ",c&&(r+=" if (!"+b+") break; ")}e.errorPath=_e}E&&(r+=" } "),r+=" } ",c&&(r+=" if ("+b+") { ",h+="}")}var Gt=e.opts.useDefaults&&!e.compositeRule;if(P.length){var Nt=P;if(Nt)for(var _,ur=-1,pr=Nt.length-1;ur<pr;){_=Nt[ur+=1];var Me=o[_];if(e.opts.strictKeywords?typeof Me=="object"&&Object.keys(Me).length>0||Me===!1:e.util.schemaHasRules(Me,e.RULES.all)){var at=e.util.getProperty(_),qe=u+at,Ue=Gt&&Me.default!==void 0;p.schema=Me,p.schemaPath=l+at,p.errSchemaPath=d+"/"+e.util.escapeFragment(_),p.errorPath=e.util.getPath(e.errorPath,_,e.opts.jsonPointers),p.dataPathArr[C]=e.util.toQuotedString(_);var ie=e.validate(p);if(p.baseId=W,e.util.varOccurences(ie,I)<2){ie=e.util.varReplace(ie,I,qe);var Ve=qe}else{var Ve=I;r+=" var "+I+" = "+qe+"; "}if(Ue)r+=" "+ie+" ";else{if(H&&H[_]){r+=" if ( "+Ve+" === undefined ",$&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(_)+"') "),r+=") { "+b+" = false; ";var _e=e.errorPath,$t=d,Ft=e.util.escapeQuotes(_);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(_e,_,e.opts.jsonPointers)),d=e.errSchemaPath+"/required";var Ae=Ae||[];Ae.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+Ft+"' } ",e.opts.messages!==!1&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+Ft+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var Te=r;r=Ae.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+Te+"]); ":r+=" validate.errors = ["+Te+"]; return false; ":r+=" var err = "+Te+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d=$t,e.errorPath=_e,r+=" } else { "}else c?(r+=" if ( "+Ve+" === undefined ",$&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(_)+"') "),r+=") { "+b+" = true; } else { "):(r+=" if ("+Ve+" !== undefined ",$&&(r+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(_)+"') "),r+=" ) { ");r+=" "+ie+" } "}}c&&(r+=" if ("+b+") { ",h+="}")}}if(M.length){var Je=M;if(Je)for(var te,Ei=-1,_a=Je.length-1;Ei<_a;){te=Je[Ei+=1];var Me=A[te];if(e.opts.strictKeywords?typeof Me=="object"&&Object.keys(Me).length>0||Me===!1:e.util.schemaHasRules(Me,e.RULES.all)){p.schema=Me,p.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(te),p.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(te),$?r+=" "+O+" = "+O+" || Object.keys("+u+"); for (var "+w+"=0; "+w+"<"+O+".length; "+w+"++) { var "+m+" = "+O+"["+w+"]; ":r+=" for (var "+m+" in "+u+") { ",r+=" if ("+e.usePattern(te)+".test("+m+")) { ",p.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var qe=u+"["+m+"]";p.dataPathArr[C]=m;var ie=e.validate(p);p.baseId=W,e.util.varOccurences(ie,I)<2?r+=" "+e.util.varReplace(ie,I,qe)+" ":r+=" var "+I+" = "+qe+"; "+ie+" ",c&&(r+=" if (!"+b+") break; "),r+=" } ",c&&(r+=" else "+b+" = true; "),r+=" } ",c&&(r+=" if ("+b+") { ",h+="}")}}}return c&&(r+=" "+h+" if ("+f+" == errors) {"),r}});var uc=z((z0,cc)=>{"use strict";cc.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f="errs__"+n,p=e.util.copy(e),h="";p.level++;var b="valid"+p.level;if(r+="var "+f+" = errors;",e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){p.schema=o,p.schemaPath=l,p.errSchemaPath=d;var m="key"+n,w="idx"+n,C="i"+n,I="' + "+m+" + '",O=p.dataLevel=e.dataLevel+1,P="data"+O,A="dataProperties"+n,M=e.opts.ownProperties,N=e.baseId;M&&(r+=" var "+A+" = undefined; "),M?r+=" "+A+" = "+A+" || Object.keys("+u+"); for (var "+w+"=0; "+w+"<"+A+".length; "+w+"++) { var "+m+" = "+A+"["+w+"]; ":r+=" for (var "+m+" in "+u+") { ",r+=" var startErrs"+n+" = errors; ";var E=m,R=e.compositeRule;e.compositeRule=p.compositeRule=!0;var k=e.validate(p);p.baseId=N,e.util.varOccurences(k,P)<2?r+=" "+e.util.varReplace(k,P,E)+" ":r+=" var "+P+" = "+E+"; "+k+" ",e.compositeRule=p.compositeRule=R,r+=" if (!"+b+") { for (var "+C+"=startErrs"+n+"; "+C+"<errors; "+C+"++) { vErrors["+C+"].propertyName = "+m+"; } var err = ",e.createErrors!==!1?(r+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { propertyName: '"+I+"' } ",e.opts.messages!==!1&&(r+=" , message: 'property name \\'"+I+"\\' is invalid' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),c&&(r+=" break; "),r+=" } }"}return c&&(r+=" "+h+" if ("+f+" == errors) {"),r}});var fc=z((U0,pc)=>{"use strict";pc.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f="valid"+n,p=e.opts.$data&&o&&o.$data,h;p?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",h="schema"+n):h=o;var b="schema"+n;if(!p)if(o.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var m=[],w=o;if(w)for(var C,I=-1,O=w.length-1;I<O;){C=w[I+=1];var P=e.schema.properties[C];P&&(e.opts.strictKeywords?typeof P=="object"&&Object.keys(P).length>0||P===!1:e.util.schemaHasRules(P,e.RULES.all))||(m[m.length]=C)}}else var m=o;if(p||m.length){var A=e.errorPath,M=p||m.length>=e.opts.loopRequired,N=e.opts.ownProperties;if(c)if(r+=" var missing"+n+"; ",M){p||(r+=" var "+b+" = validate.schema"+l+"; ");var E="i"+n,R="schema"+n+"["+E+"]",k="' + "+R+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(A,R,e.opts.jsonPointers)),r+=" var "+f+" = true; ",p&&(r+=" if (schema"+n+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+n+")) "+f+" = false; else {"),r+=" for (var "+E+" = 0; "+E+" < "+b+".length; "+E+"++) { "+f+" = "+u+"["+b+"["+E+"]] !== undefined ",N&&(r+=" && Object.prototype.hasOwnProperty.call("+u+", "+b+"["+E+"]) "),r+="; if (!"+f+") break; } ",p&&(r+=" } "),r+=" if (!"+f+") { ";var L=L||[];L.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+k+"' } ",e.opts.messages!==!1&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+k+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var D=r;r=L.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+D+"]); ":r+=" validate.errors = ["+D+"]; return false; ":r+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { "}else{r+=" if ( ";var $=m;if($)for(var W,E=-1,ee=$.length-1;E<ee;){W=$[E+=1],E&&(r+=" || ");var H=e.util.getProperty(W),Q=u+H;r+=" ( ( "+Q+" === undefined ",N&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(W)+"') "),r+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?W:H)+") ) "}r+=") { ";var R="missing"+n,k="' + "+R+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(A,R,!0):A+" + "+R);var L=L||[];L.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+k+"' } ",e.opts.messages!==!1&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+k+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var D=r;r=L.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+D+"]); ":r+=" validate.errors = ["+D+"]; return false; ":r+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { "}else if(M){p||(r+=" var "+b+" = validate.schema"+l+"; ");var E="i"+n,R="schema"+n+"["+E+"]",k="' + "+R+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(A,R,e.opts.jsonPointers)),p&&(r+=" if ("+b+" && !Array.isArray("+b+")) { var err = ",e.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+k+"' } ",e.opts.messages!==!1&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+k+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+b+" !== undefined) { "),r+=" for (var "+E+" = 0; "+E+" < "+b+".length; "+E+"++) { if ("+u+"["+b+"["+E+"]] === undefined ",N&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", "+b+"["+E+"]) "),r+=") { var err = ",e.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+k+"' } ",e.opts.messages!==!1&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+k+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",p&&(r+=" } ")}else{var U=m;if(U)for(var W,_=-1,ce=U.length-1;_<ce;){W=U[_+=1];var H=e.util.getProperty(W),k=e.util.escapeQuotes(W),Q=u+H;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(A,W,e.opts.jsonPointers)),r+=" if ( "+Q+" === undefined ",N&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(W)+"') "),r+=") { var err = ",e.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+k+"' } ",e.opts.messages!==!1&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+k+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=A}else c&&(r+=" if (true) {");return r}});var mc=z((H0,hc)=>{"use strict";hc.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u="data"+(s||""),f="valid"+n,p=e.opts.$data&&o&&o.$data,h;if(p?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",h="schema"+n):h=o,(o||p)&&e.opts.uniqueItems!==!1){p&&(r+=" var "+f+"; if ("+h+" === false || "+h+" === undefined) "+f+" = true; else if (typeof "+h+" != 'boolean') "+f+" = false; else { "),r+=" var i = "+u+".length , "+f+" = true , j; if (i > 1) { ";var b=e.schema.items&&e.schema.items.type,m=Array.isArray(b);if(!b||b=="object"||b=="array"||m&&(b.indexOf("object")>=0||b.indexOf("array")>=0))r+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+u+"[i], "+u+"[j])) { "+f+" = false; break outer; } } } ";else{r+=" var itemIndices = {}, item; for (;i--;) { var item = "+u+"[i]; ";var w="checkDataType"+(m?"s":"");r+=" if ("+e.util[w](b,"item",e.opts.strictNumbers,!0)+") continue; ",m&&(r+=` if (typeof item == 'string') item = '"' + item; `),r+=" if (typeof itemIndices[item] == 'number') { "+f+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}r+=" } ",p&&(r+=" } "),r+=" if (!"+f+") { ";var C=C||[];C.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { i: i, j: j } ",e.opts.messages!==!1&&(r+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(r+=" , schema: ",p?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var I=r;r=C.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+I+"]); ":r+=" validate.errors = ["+I+"]; return false; ":r+=" var err = "+I+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",c&&(r+=" else { ")}else c&&(r+=" if (true) { ");return r}});var gc=z((G0,yc)=>{"use strict";yc.exports={$ref:Ad(),allOf:Dd(),anyOf:$d(),$comment:Rd(),const:kd(),contains:qd(),dependencies:jd(),enum:Vd(),format:Ud(),if:Gd(),items:Zd(),maximum:Kn(),minimum:Kn(),maxItems:Xn(),minItems:Xn(),maxLength:es(),minLength:es(),maxProperties:ts(),minProperties:ts(),multipleOf:tc(),not:ic(),oneOf:nc(),pattern:oc(),properties:dc(),propertyNames:uc(),required:fc(),uniqueItems:mc(),validate:Jn()}});var Sc=z((Q0,vc)=>{"use strict";var bc=gc(),rs=Cr().toHash;vc.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],i=["type","$comment"],a=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],r=["number","integer","string","array","object","boolean","null"];return e.all=rs(i),e.types=rs(r),e.forEach(function(n){n.rules=n.rules.map(function(s){var o;if(typeof s=="object"){var l=Object.keys(s)[0];o=s[l],s=l,o.forEach(function(c){i.push(c),e.all[c]=!0})}i.push(s);var d=e.all[s]={keyword:s,code:bc[s],implements:o};return d}),e.all.$comment={keyword:"$comment",code:bc.$comment},n.type&&(e.types[n.type]=n)}),e.keywords=rs(i.concat(a)),e.custom={},e}});var Cc=z((Z0,Ic)=>{"use strict";var wc=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];Ic.exports=function(t,e){for(var i=0;i<e.length;i++){t=JSON.parse(JSON.stringify(t));var a=e[i].split("/"),r=t,n;for(n=1;n<a.length;n++)r=r[a[n]];for(n=0;n<wc.length;n++){var s=wc[n],o=r[s];o&&(r[s]={anyOf:[o,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return t}});var Fc=z((J0,Tc)=>{"use strict";var $m=ga().MissingRef;Tc.exports=xc;function xc(t,e,i){var a=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof e=="function"&&(i=e,e=void 0);var r=n(t).then(function(){var o=a._addSchema(t,void 0,e);return o.validate||s(o)});return i&&r.then(function(o){i(null,o)},i),r;function n(o){var l=o.$schema;return l&&!a.getSchema(l)?xc.call(a,{$ref:l},!0):Promise.resolve()}function s(o){try{return a._compile(o)}catch(d){if(d instanceof $m)return l(d);throw d}function l(d){var c=d.missingSchema;if(p(c))throw new Error("Schema "+c+" is loaded but "+d.missingRef+" cannot be resolved");var u=a._loadingSchemas[c];return u||(u=a._loadingSchemas[c]=a._opts.loadSchema(c),u.then(f,f)),u.then(function(h){if(!p(c))return n(h).then(function(){p(c)||a.addSchema(h,c,void 0,e)})}).then(function(){return s(o)});function f(){delete a._loadingSchemas[c]}function p(h){return a._refs[h]||a._schemas[h]}}}}});var Pc=z((Y0,Oc)=>{"use strict";Oc.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,c=!e.opts.allErrors,u,f="data"+(s||""),p="valid"+n,h="errs__"+n,b=e.opts.$data&&o&&o.$data,m;b?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",m="schema"+n):m=o;var w=this,C="definition"+n,I=w.definition,O="",P,A,M,N,E;if(b&&I.$data){E="keywordValidate"+n;var R=I.validateSchema;r+=" var "+C+" = RULES.custom['"+i+"'].definition; var "+E+" = "+C+".validate;"}else{if(N=e.useCustomRule(w,o,e.schema,e),!N)return;m="validate.schema"+l,E=N.code,P=I.compile,A=I.inline,M=I.macro}var k=E+".errors",L="i"+n,D="ruleErr"+n,$=I.async;if($&&!e.async)throw new Error("async keyword in sync schema");if(A||M||(r+=""+k+" = null;"),r+="var "+h+" = errors;var "+p+";",b&&I.$data&&(O+="}",r+=" if ("+m+" === undefined) { "+p+" = true; } else { ",R&&(O+="}",r+=" "+p+" = "+C+".validateSchema("+m+"); if ("+p+") { ")),A)I.statements?r+=" "+N.validate+" ":r+=" "+p+" = "+N.validate+"; ";else if(M){var W=e.util.copy(e),O="";W.level++;var ee="valid"+W.level;W.schema=N.validate,W.schemaPath="";var H=e.compositeRule;e.compositeRule=W.compositeRule=!0;var Q=e.validate(W).replace(/validate\.schema/g,E);e.compositeRule=W.compositeRule=H,r+=" "+Q}else{var U=U||[];U.push(r),r="",r+=" "+E+".call( ",e.opts.passContext?r+="this":r+="self",P||I.schema===!1?r+=" , "+f+" ":r+=" , "+m+" , "+f+" , validate.schema"+e.schemaPath+" ",r+=" , (dataPath || '')",e.errorPath!='""'&&(r+=" + "+e.errorPath);var _=s?"data"+(s-1||""):"parentData",ce=s?e.dataPathArr[s]:"parentDataProperty";r+=" , "+_+" , "+ce+" , rootData ) ";var Be=r;r=U.pop(),I.errors===!1?(r+=" "+p+" = ",$&&(r+="await "),r+=""+Be+"; "):$?(k="customErrors"+n,r+=" var "+k+" = null; try { "+p+" = await "+Be+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+k+" = e.errors; else throw e; } "):r+=" "+k+" = null; "+p+" = "+Be+"; "}if(I.modifying&&(r+=" if ("+_+") "+f+" = "+_+"["+ce+"];"),r+=""+O,I.valid)c&&(r+=" if (true) { ");else{r+=" if ( ",I.valid===void 0?(r+=" !",M?r+=""+ee:r+=""+p):r+=" "+!I.valid+" ",r+=") { ",u=w.keyword;var U=U||[];U.push(r),r="";var U=U||[];U.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(u||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { keyword: '"+w.keyword+"' } ",e.opts.messages!==!1&&(r+=` , message: 'should pass "`+w.keyword+`" keyword validation' `),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),r+=" } "):r+=" {} ";var je=r;r=U.pop(),!e.compositeRule&&c?e.async?r+=" throw new ValidationError(["+je+"]); ":r+=" validate.errors = ["+je+"]; return false; ":r+=" var err = "+je+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var te=r;r=U.pop(),A?I.errors?I.errors!="full"&&(r+=" for (var "+L+"="+h+"; "+L+"<errors; "+L+"++) { var "+D+" = vErrors["+L+"]; if ("+D+".dataPath === undefined) "+D+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+D+".schemaPath === undefined) { "+D+'.schemaPath = "'+d+'"; } ',e.opts.verbose&&(r+=" "+D+".schema = "+m+"; "+D+".data = "+f+"; "),r+=" } "):I.errors===!1?r+=" "+te+" ":(r+=" if ("+h+" == errors) { "+te+" } else { for (var "+L+"="+h+"; "+L+"<errors; "+L+"++) { var "+D+" = vErrors["+L+"]; if ("+D+".dataPath === undefined) "+D+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+D+".schemaPath === undefined) { "+D+'.schemaPath = "'+d+'"; } ',e.opts.verbose&&(r+=" "+D+".schema = "+m+"; "+D+".data = "+f+"; "),r+=" } } "):M?(r+=" var err = ",e.createErrors!==!1?(r+=" { keyword: '"+(u||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { keyword: '"+w.keyword+"' } ",e.opts.messages!==!1&&(r+=` , message: 'should pass "`+w.keyword+`" keyword validation' `),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; ")):I.errors===!1?r+=" "+te+" ":(r+=" if (Array.isArray("+k+")) { if (vErrors === null) vErrors = "+k+"; else vErrors = vErrors.concat("+k+"); errors = vErrors.length; for (var "+L+"="+h+"; "+L+"<errors; "+L+"++) { var "+D+" = vErrors["+L+"]; if ("+D+".dataPath === undefined) "+D+".dataPath = (dataPath || '') + "+e.errorPath+"; "+D+'.schemaPath = "'+d+'"; ',e.opts.verbose&&(r+=" "+D+".schema = "+m+"; "+D+".data = "+f+"; "),r+=" } } else { "+te+" } "),r+=" } ",c&&(r+=" else { ")}return r}});var is=z((K0,Nm)=>{Nm.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var Dc=z((X0,Ec)=>{"use strict";var Ac=is();Ec.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:Ac.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:Ac.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}});var $c=z((eS,Lc)=>{"use strict";var Rm=/^[a-z_$][a-z0-9_$-]*$/i,Mm=Pc(),km=Dc();Lc.exports={add:Bm,get:qm,remove:Wm,validate:as};function Bm(t,e){var i=this.RULES;if(i.keywords[t])throw new Error("Keyword "+t+" is already defined");if(!Rm.test(t))throw new Error("Keyword "+t+" is not a valid identifier");if(e){this.validateKeyword(e,!0);var a=e.type;if(Array.isArray(a))for(var r=0;r<a.length;r++)s(t,a[r],e);else s(t,a,e);var n=e.metaSchema;n&&(e.$data&&this._opts.$data&&(n={anyOf:[n,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),e.validateSchema=this.compile(n,!0))}i.keywords[t]=i.all[t]=!0;function s(o,l,d){for(var c,u=0;u<i.length;u++){var f=i[u];if(f.type==l){c=f;break}}c||(c={type:l,rules:[]},i.push(c));var p={keyword:o,definition:d,custom:!0,code:Mm,implements:d.implements};c.rules.push(p),i.custom[o]=p}return this}function qm(t){var e=this.RULES.custom[t];return e?e.definition:this.RULES.keywords[t]||!1}function Wm(t){var e=this.RULES;delete e.keywords[t],delete e.all[t],delete e.custom[t];for(var i=0;i<e.length;i++)for(var a=e[i].rules,r=0;r<a.length;r++)if(a[r].keyword==t){a.splice(r,1);break}return this}function as(t,e){as.errors=null;var i=this._validateKeyword=this._validateKeyword||this.compile(km,!0);if(i(t))return!0;if(as.errors=i.errors,e)throw new Error("custom keyword definition is invalid: "+this.errorsText(i.errors));return!1}});var Nc=z((tS,jm)=>{jm.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var zc=z((rS,Vc)=>{"use strict";var Mc=fd(),xr=ya(),_m=md(),kc=Vn(),Vm=Zn(),zm=Od(),Um=Sc(),Bc=Cc(),qc=Cr();Vc.exports=Fe;Fe.prototype.validate=Gm;Fe.prototype.compile=Qm;Fe.prototype.addSchema=Zm;Fe.prototype.addMetaSchema=Jm;Fe.prototype.validateSchema=Ym;Fe.prototype.getSchema=Xm;Fe.prototype.removeSchema=ty;Fe.prototype.addFormat=dy;Fe.prototype.errorsText=ly;Fe.prototype._addSchema=ry;Fe.prototype._compile=iy;Fe.prototype.compileAsync=Fc();var Ta=$c();Fe.prototype.addKeyword=Ta.add;Fe.prototype.getKeyword=Ta.get;Fe.prototype.removeKeyword=Ta.remove;Fe.prototype.validateKeyword=Ta.validate;var Wc=ga();Fe.ValidationError=Wc.Validation;Fe.MissingRefError=Wc.MissingRef;Fe.$dataMetaSchema=Bc;var xa="http://json-schema.org/draft-07/schema",Rc=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],Hm=["/properties"];function Fe(t){if(!(this instanceof Fe))return new Fe(t);t=this._opts=qc.copy(t)||{},my(this),this._schemas={},this._refs={},this._fragments={},this._formats=zm(t.format),this._cache=t.cache||new _m,this._loadingSchemas={},this._compilations=[],this.RULES=Um(),this._getId=ay(t),t.loopRequired=t.loopRequired||1/0,t.errorDataPath=="property"&&(t._errorDataPathProperty=!0),t.serialize===void 0&&(t.serialize=Vm),this._metaOpts=hy(this),t.formats&&py(this),t.keywords&&fy(this),cy(this),typeof t.meta=="object"&&this.addMetaSchema(t.meta),t.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),uy(this)}function Gm(t,e){var i;if(typeof t=="string"){if(i=this.getSchema(t),!i)throw new Error('no schema with key or ref "'+t+'"')}else{var a=this._addSchema(t);i=a.validate||this._compile(a)}var r=i(e);return i.$async!==!0&&(this.errors=i.errors),r}function Qm(t,e){var i=this._addSchema(t,void 0,e);return i.validate||this._compile(i)}function Zm(t,e,i,a){if(Array.isArray(t)){for(var r=0;r<t.length;r++)this.addSchema(t[r],void 0,i,a);return this}var n=this._getId(t);if(n!==void 0&&typeof n!="string")throw new Error("schema id must be string");return e=xr.normalizeId(e||n),_c(this,e),this._schemas[e]=this._addSchema(t,i,a,!0),this}function Jm(t,e,i){return this.addSchema(t,e,i,!0),this}function Ym(t,e){var i=t.$schema;if(i!==void 0&&typeof i!="string")throw new Error("$schema must be a string");if(i=i||this._opts.defaultMeta||Km(this),!i)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var a=this.validate(i,t);if(!a&&e){var r="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(r);else throw new Error(r)}return a}function Km(t){var e=t._opts.meta;return t._opts.defaultMeta=typeof e=="object"?t._getId(e)||e:t.getSchema(xa)?xa:void 0,t._opts.defaultMeta}function Xm(t){var e=jc(this,t);switch(typeof e){case"object":return e.validate||this._compile(e);case"string":return this.getSchema(e);case"undefined":return ey(this,t)}}function ey(t,e){var i=xr.schema.call(t,{schema:{}},e);if(i){var a=i.schema,r=i.root,n=i.baseId,s=Mc.call(t,a,r,void 0,n);return t._fragments[e]=new kc({ref:e,fragment:!0,schema:a,root:r,baseId:n,validate:s}),s}}function jc(t,e){return e=xr.normalizeId(e),t._schemas[e]||t._refs[e]||t._fragments[e]}function ty(t){if(t instanceof RegExp)return Ca(this,this._schemas,t),Ca(this,this._refs,t),this;switch(typeof t){case"undefined":return Ca(this,this._schemas),Ca(this,this._refs),this._cache.clear(),this;case"string":var e=jc(this,t);return e&&this._cache.del(e.cacheKey),delete this._schemas[t],delete this._refs[t],this;case"object":var i=this._opts.serialize,a=i?i(t):t;this._cache.del(a);var r=this._getId(t);r&&(r=xr.normalizeId(r),delete this._schemas[r],delete this._refs[r])}return this}function Ca(t,e,i){for(var a in e){var r=e[a];!r.meta&&(!i||i.test(a))&&(t._cache.del(r.cacheKey),delete e[a])}}function ry(t,e,i,a){if(typeof t!="object"&&typeof t!="boolean")throw new Error("schema should be object or boolean");var r=this._opts.serialize,n=r?r(t):t,s=this._cache.get(n);if(s)return s;a=a||this._opts.addUsedSchema!==!1;var o=xr.normalizeId(this._getId(t));o&&a&&_c(this,o);var l=this._opts.validateSchema!==!1&&!e,d;l&&!(d=o&&o==xr.normalizeId(t.$schema))&&this.validateSchema(t,!0);var c=xr.ids.call(this,t),u=new kc({id:o,schema:t,localRefs:c,cacheKey:n,meta:i});return o[0]!="#"&&a&&(this._refs[o]=u),this._cache.put(n,u),l&&d&&this.validateSchema(t,!0),u}function iy(t,e){if(t.compiling)return t.validate=r,r.schema=t.schema,r.errors=null,r.root=e||r,t.schema.$async===!0&&(r.$async=!0),r;t.compiling=!0;var i;t.meta&&(i=this._opts,this._opts=this._metaOpts);var a;try{a=Mc.call(this,t.schema,e,t.localRefs)}catch(n){throw delete t.validate,n}finally{t.compiling=!1,t.meta&&(this._opts=i)}return t.validate=a,t.refs=a.refs,t.refVal=a.refVal,t.root=a.root,a;function r(){var n=t.validate,s=n.apply(this,arguments);return r.errors=n.errors,s}}function ay(t){switch(t.schemaId){case"auto":return oy;case"id":return ny;default:return sy}}function ny(t){return t.$id&&this.logger.warn("schema $id ignored",t.$id),t.id}function sy(t){return t.id&&this.logger.warn("schema id ignored",t.id),t.$id}function oy(t){if(t.$id&&t.id&&t.$id!=t.id)throw new Error("schema $id is different from id");return t.$id||t.id}function ly(t,e){if(t=t||this.errors,!t)return"No errors";e=e||{};for(var i=e.separator===void 0?", ":e.separator,a=e.dataVar===void 0?"data":e.dataVar,r="",n=0;n<t.length;n++){var s=t[n];s&&(r+=a+s.dataPath+" "+s.message+i)}return r.slice(0,-i.length)}function dy(t,e){return typeof e=="string"&&(e=new RegExp(e)),this._formats[t]=e,this}function cy(t){var e;if(t._opts.$data&&(e=Nc(),t.addMetaSchema(e,e.$id,!0)),t._opts.meta!==!1){var i=is();t._opts.$data&&(i=Bc(i,Hm)),t.addMetaSchema(i,xa,!0),t._refs["http://json-schema.org/schema"]=xa}}function uy(t){var e=t._opts.schemas;if(e)if(Array.isArray(e))t.addSchema(e);else for(var i in e)t.addSchema(e[i],i)}function py(t){for(var e in t._opts.formats){var i=t._opts.formats[e];t.addFormat(e,i)}}function fy(t){for(var e in t._opts.keywords){var i=t._opts.keywords[e];t.addKeyword(e,i)}}function _c(t,e){if(t._schemas[e]||t._refs[e])throw new Error('schema with key or id "'+e+'" already exists')}function hy(t){for(var e=qc.copy(t._opts),i=0;i<Rc.length;i++)delete e[Rc[i]];return e}function my(t){var e=t._opts.logger;if(e===!1)t.logger={log:ns,warn:ns,error:ns};else{if(e===void 0&&(e=console),!(typeof e=="object"&&e.log&&e.warn&&e.error))throw new Error("logger must implement log, warn and error methods");t.logger=e}}function ns(){}});var Wt=class extends Error{},sn=class extends Wt{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},on=class extends Wt{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},ln=class extends Wt{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},Kt=class extends Wt{},Vi=class extends Wt{constructor(e){super(`Invalid unit ${e}`)}},Ne=class extends Wt{},Dt=class extends Wt{constructor(){super("Zone is an abstract class")}},B="numeric",It="short",it="long",zi={year:B,month:B,day:B},wo={year:B,month:It,day:B},Ku={year:B,month:It,day:B,weekday:It},Io={year:B,month:it,day:B},Co={year:B,month:it,day:B,weekday:it},xo={hour:B,minute:B},To={hour:B,minute:B,second:B},Fo={hour:B,minute:B,second:B,timeZoneName:It},Oo={hour:B,minute:B,second:B,timeZoneName:it},Po={hour:B,minute:B,hourCycle:"h23"},Ao={hour:B,minute:B,second:B,hourCycle:"h23"},Eo={hour:B,minute:B,second:B,hourCycle:"h23",timeZoneName:It},Do={hour:B,minute:B,second:B,hourCycle:"h23",timeZoneName:it},Lo={year:B,month:B,day:B,hour:B,minute:B},$o={year:B,month:B,day:B,hour:B,minute:B,second:B},No={year:B,month:It,day:B,hour:B,minute:B},Ro={year:B,month:It,day:B,hour:B,minute:B,second:B},Xu={year:B,month:It,day:B,weekday:It,hour:B,minute:B},Mo={year:B,month:it,day:B,hour:B,minute:B,timeZoneName:It},ko={year:B,month:it,day:B,hour:B,minute:B,second:B,timeZoneName:It},Bo={year:B,month:it,day:B,weekday:it,hour:B,minute:B,timeZoneName:it},qo={year:B,month:it,day:B,weekday:it,hour:B,minute:B,second:B,timeZoneName:it},wr=class{get type(){throw new Dt}get name(){throw new Dt}get ianaName(){return this.name}get isUniversal(){throw new Dt}offsetName(e,i){throw new Dt}formatOffset(e,i){throw new Dt}offset(e){throw new Dt}equals(e){throw new Dt}get isValid(){throw new Dt}},Ja=null,Ui=class t extends wr{static get instance(){return Ja===null&&(Ja=new t),Ja}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:i,locale:a}){return Jo(e,i,a)}formatOffset(e,i){return gi(this.offset(e),i)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}},dn=new Map;function ep(t){let e=dn.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"}),dn.set(t,e)),e}var tp={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function rp(t,e){let i=t.format(e).replace(/\u200E/g,""),a=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(i),[,r,n,s,o,l,d,c]=a;return[s,r,n,o,l,d,c]}function ip(t,e){let i=t.formatToParts(e),a=[];for(let r=0;r<i.length;r++){let{type:n,value:s}=i[r],o=tp[n];n==="era"?a[o]=s:V(o)||(a[o]=parseInt(s,10))}return a}var Ya=new Map,er=class t extends wr{static create(e){let i=Ya.get(e);return i===void 0&&Ya.set(e,i=new t(e)),i}static resetCache(){Ya.clear(),dn.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:i,locale:a}){return Jo(e,i,a,this.name)}formatOffset(e,i){return gi(this.offset(e),i)}offset(e){if(!this.valid)return NaN;let i=new Date(e);if(isNaN(i))return NaN;let a=ep(this.name),[r,n,s,o,l,d,c]=a.formatToParts?ip(a,i):rp(a,i);o==="BC"&&(r=-Math.abs(r)+1);let f=Yi({year:r,month:n,day:s,hour:l===24?0:l,minute:d,second:c,millisecond:0}),p=+i,h=p%1e3;return p-=h>=0?h:1e3+h,(f-p)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}},zs={};function ap(t,e={}){let i=JSON.stringify([t,e]),a=zs[i];return a||(a=new Intl.ListFormat(t,e),zs[i]=a),a}var cn=new Map;function un(t,e={}){let i=JSON.stringify([t,e]),a=cn.get(i);return a===void 0&&(a=new Intl.DateTimeFormat(t,e),cn.set(i,a)),a}var pn=new Map;function np(t,e={}){let i=JSON.stringify([t,e]),a=pn.get(i);return a===void 0&&(a=new Intl.NumberFormat(t,e),pn.set(i,a)),a}var fn=new Map;function sp(t,e={}){let{base:i,...a}=e,r=JSON.stringify([t,a]),n=fn.get(r);return n===void 0&&(n=new Intl.RelativeTimeFormat(t,e),fn.set(r,n)),n}var hi=null;function op(){return hi||(hi=new Intl.DateTimeFormat().resolvedOptions().locale,hi)}var hn=new Map;function Wo(t){let e=hn.get(t);return e===void 0&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),hn.set(t,e)),e}var mn=new Map;function lp(t){let e=mn.get(t);if(!e){let i=new Intl.Locale(t);e="getWeekInfo"in i?i.getWeekInfo():i.weekInfo,"minimalDays"in e||(e={...jo,...e}),mn.set(t,e)}return e}function dp(t){let e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));let i=t.indexOf("-u-");if(i===-1)return[t];{let a,r;try{a=un(t).resolvedOptions(),r=t}catch{let l=t.substring(0,i);a=un(l).resolvedOptions(),r=l}let{numberingSystem:n,calendar:s}=a;return[r,n,s]}}function cp(t,e,i){return(i||e)&&(t.includes("-u-")||(t+="-u"),i&&(t+=`-ca-${i}`),e&&(t+=`-nu-${e}`)),t}function up(t){let e=[];for(let i=1;i<=12;i++){let a=ye.utc(2009,i,1);e.push(t(a))}return e}function pp(t){let e=[];for(let i=1;i<=7;i++){let a=ye.utc(2016,11,13+i);e.push(t(a))}return e}function Mi(t,e,i,a){let r=t.listingMode();return r==="error"?null:r==="en"?i(e):a(e)}function fp(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||Wo(t.locale).numberingSystem==="latn"}var yn=class{constructor(e,i,a){this.padTo=a.padTo||0,this.floor=a.floor||!1;let{padTo:r,floor:n,...s}=a;if(!i||Object.keys(s).length>0){let o={useGrouping:!1,...a};a.padTo>0&&(o.minimumIntegerDigits=a.padTo),this.inf=np(e,o)}}format(e){if(this.inf){let i=this.floor?Math.floor(e):e;return this.inf.format(i)}else{let i=this.floor?Math.floor(e):Pn(e,3);return Le(i,this.padTo)}}},gn=class{constructor(e,i,a){this.opts=a,this.originalZone=void 0;let r;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let s=-1*(e.offset/60),o=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;e.offset!==0&&er.create(o).valid?(r=o,this.dt=e):(r="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,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let n={...this.opts};n.timeZone=n.timeZone||r,this.dtf=un(i,n)}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(i=>{if(i.type==="timeZoneName"){let a=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...i,value:a}}else return i}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},bn=class{constructor(e,i,a){this.opts={style:"long",...a},!i&&Qo()&&(this.rtf=sp(e,a))}format(e,i){return this.rtf?this.rtf.format(e,i):Np(i,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,i){return this.rtf?this.rtf.formatToParts(e,i):[]}},jo={firstDay:1,minimalDays:4,weekend:[6,7]},fe=class t{static fromOpts(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,i,a,r,n=!1){let s=e||ve.defaultLocale,o=s||(n?"en-US":op()),l=i||ve.defaultNumberingSystem,d=a||ve.defaultOutputCalendar,c=wn(r)||ve.defaultWeekSettings;return new t(o,l,d,c,s)}static resetCache(){hi=null,cn.clear(),pn.clear(),fn.clear(),hn.clear(),mn.clear()}static fromObject({locale:e,numberingSystem:i,outputCalendar:a,weekSettings:r}={}){return t.create(e,i,a,r)}constructor(e,i,a,r,n){let[s,o,l]=dp(e);this.locale=s,this.numberingSystem=i||o||null,this.outputCalendar=a||l||null,this.weekSettings=r,this.intl=cp(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=fp(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),i=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&i?"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,wn(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,i=!1){return Mi(this,e,Xo,()=>{let a=this.intl==="ja"||this.intl.startsWith("ja-");i&=!a;let r=i?{month:e,day:"numeric"}:{month:e},n=i?"format":"standalone";if(!this.monthsCache[n][e]){let s=a?o=>this.dtFormatter(o,r).format():o=>this.extract(o,r,"month");this.monthsCache[n][e]=up(s)}return this.monthsCache[n][e]})}weekdays(e,i=!1){return Mi(this,e,rl,()=>{let a=i?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=i?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=pp(n=>this.extract(n,a,"weekday"))),this.weekdaysCache[r][e]})}meridiems(){return Mi(this,void 0,()=>il,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ye.utc(2016,11,13,9),ye.utc(2016,11,13,19)].map(i=>this.extract(i,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Mi(this,e,al,()=>{let i={era:e};return this.eraCache[e]||(this.eraCache[e]=[ye.utc(-40,1,1),ye.utc(2017,1,1)].map(a=>this.extract(a,i,"era"))),this.eraCache[e]})}extract(e,i,a){let r=this.dtFormatter(e,i),n=r.formatToParts(),s=n.find(o=>o.type.toLowerCase()===a);return s?s.value:null}numberFormatter(e={}){return new yn(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,i={}){return new gn(e,this.intl,i)}relFormatter(e={}){return new bn(this.intl,this.isEnglish(),e)}listFormatter(e={}){return ap(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||Wo(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Zo()?lp(this.locale):jo}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})`}},Ka=null,ut=class t extends wr{static get utcInstance(){return Ka===null&&(Ka=new t(0)),Ka}static instance(e){return e===0?t.utcInstance:new t(e)}static parseSpecifier(e){if(e){let i=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(i)return new t(Ki(i[1],i[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${gi(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${gi(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,i){return gi(this.fixed,i)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}},vn=class extends wr{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 Yt(t,e){if(V(t)||t===null)return e;if(t instanceof wr)return t;if(vp(t)){let i=t.toLowerCase();return i==="default"?e:i==="local"||i==="system"?Ui.instance:i==="utc"||i==="gmt"?ut.utcInstance:ut.parseSpecifier(i)||er.create(t)}else return Xt(t)?ut.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new vn(t)}var xn={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"},Us={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]},hp=xn.hanidec.replace(/[\[|\]]/g,"").split("");function mp(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let i=0;i<t.length;i++){let a=t.charCodeAt(i);if(t[i].search(xn.hanidec)!==-1)e+=hp.indexOf(t[i]);else for(let r in Us){let[n,s]=Us[r];a>=n&&a<=s&&(e+=a-n)}}return parseInt(e,10)}else return e}var Sn=new Map;function yp(){Sn.clear()}function St({numberingSystem:t},e=""){let i=t||"latn",a=Sn.get(i);a===void 0&&(a=new Map,Sn.set(i,a));let r=a.get(e);return r===void 0&&(r=new RegExp(`${xn[i]}${e}`),a.set(e,r)),r}var Hs=()=>Date.now(),Gs="system",Qs=null,Zs=null,Js=null,Ys=60,Ks,Xs=null,ve=class{static get now(){return Hs}static set now(e){Hs=e}static set defaultZone(e){Gs=e}static get defaultZone(){return Yt(Gs,Ui.instance)}static get defaultLocale(){return Qs}static set defaultLocale(e){Qs=e}static get defaultNumberingSystem(){return Zs}static set defaultNumberingSystem(e){Zs=e}static get defaultOutputCalendar(){return Js}static set defaultOutputCalendar(e){Js=e}static get defaultWeekSettings(){return Xs}static set defaultWeekSettings(e){Xs=wn(e)}static get twoDigitCutoffYear(){return Ys}static set twoDigitCutoffYear(e){Ys=e%100}static get throwOnInvalid(){return Ks}static set throwOnInvalid(e){Ks=e}static resetCaches(){fe.resetCache(),er.resetCache(),ye.resetCache(),yp()}},rt=class{constructor(e,i){this.reason=e,this.explanation=i}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},_o=[0,31,59,90,120,151,181,212,243,273,304,334],Vo=[0,31,60,91,121,152,182,213,244,274,305,335];function dt(t,e){return new rt("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Tn(t,e,i){let a=new Date(Date.UTC(t,e-1,i));t<100&&t>=0&&a.setUTCFullYear(a.getUTCFullYear()-1900);let r=a.getUTCDay();return r===0?7:r}function zo(t,e,i){return i+(vi(t)?Vo:_o)[e-1]}function Uo(t,e){let i=vi(t)?Vo:_o,a=i.findIndex(n=>n<e),r=e-i[a];return{month:a+1,day:r}}function Fn(t,e){return(t-e+7)%7+1}function Hi(t,e=4,i=1){let{year:a,month:r,day:n}=t,s=zo(a,r,n),o=Fn(Tn(a,r,n),i),l=Math.floor((s-o+14-e)/7),d;return l<1?(d=a-1,l=bi(d,e,i)):l>bi(a,e,i)?(d=a+1,l=1):d=a,{weekYear:d,weekNumber:l,weekday:o,...Xi(t)}}function eo(t,e=4,i=1){let{weekYear:a,weekNumber:r,weekday:n}=t,s=Fn(Tn(a,1,e),i),o=Ur(a),l=r*7+n-s-7+e,d;l<1?(d=a-1,l+=Ur(d)):l>o?(d=a+1,l-=Ur(a)):d=a;let{month:c,day:u}=Uo(d,l);return{year:d,month:c,day:u,...Xi(t)}}function Xa(t){let{year:e,month:i,day:a}=t,r=zo(e,i,a);return{year:e,ordinal:r,...Xi(t)}}function to(t){let{year:e,ordinal:i}=t,{month:a,day:r}=Uo(e,i);return{year:e,month:a,day:r,...Xi(t)}}function ro(t,e){if(!V(t.localWeekday)||!V(t.localWeekNumber)||!V(t.localWeekYear)){if(!V(t.weekday)||!V(t.weekNumber)||!V(t.weekYear))throw new Kt("Cannot mix locale-based week fields with ISO-based week fields");return V(t.localWeekday)||(t.weekday=t.localWeekday),V(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),V(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 gp(t,e=4,i=1){let a=Ji(t.weekYear),r=ct(t.weekNumber,1,bi(t.weekYear,e,i)),n=ct(t.weekday,1,7);return a?r?n?!1:dt("weekday",t.weekday):dt("week",t.weekNumber):dt("weekYear",t.weekYear)}function bp(t){let e=Ji(t.year),i=ct(t.ordinal,1,Ur(t.year));return e?i?!1:dt("ordinal",t.ordinal):dt("year",t.year)}function Ho(t){let e=Ji(t.year),i=ct(t.month,1,12),a=ct(t.day,1,Gi(t.year,t.month));return e?i?a?!1:dt("day",t.day):dt("month",t.month):dt("year",t.year)}function Go(t){let{hour:e,minute:i,second:a,millisecond:r}=t,n=ct(e,0,23)||e===24&&i===0&&a===0&&r===0,s=ct(i,0,59),o=ct(a,0,59),l=ct(r,0,999);return n?s?o?l?!1:dt("millisecond",r):dt("second",a):dt("minute",i):dt("hour",e)}function V(t){return typeof t>"u"}function Xt(t){return typeof t=="number"}function Ji(t){return typeof t=="number"&&t%1===0}function vp(t){return typeof t=="string"}function Sp(t){return Object.prototype.toString.call(t)==="[object Date]"}function Qo(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Zo(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function wp(t){return Array.isArray(t)?t:[t]}function io(t,e,i){if(t.length!==0)return t.reduce((a,r)=>{let n=[e(r),r];return a&&i(a[0],n[0])===a[0]?a:n},null)[1]}function Ip(t,e){return e.reduce((i,a)=>(i[a]=t[a],i),{})}function Qr(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function wn(t){if(t==null)return null;if(typeof t!="object")throw new Ne("Week settings must be an object");if(!ct(t.firstDay,1,7)||!ct(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!ct(e,1,7)))throw new Ne("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function ct(t,e,i){return Ji(t)&&t>=e&&t<=i}function Cp(t,e){return t-e*Math.floor(t/e)}function Le(t,e=2){let i=t<0,a;return i?a="-"+(""+-t).padStart(e,"0"):a=(""+t).padStart(e,"0"),a}function Jt(t){if(!(V(t)||t===null||t===""))return parseInt(t,10)}function br(t){if(!(V(t)||t===null||t===""))return parseFloat(t)}function On(t){if(!(V(t)||t===null||t==="")){let e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function Pn(t,e,i="round"){let a=10**e;switch(i){case"expand":return t>0?Math.ceil(t*a)/a:Math.floor(t*a)/a;case"trunc":return Math.trunc(t*a)/a;case"round":return Math.round(t*a)/a;case"floor":return Math.floor(t*a)/a;case"ceil":return Math.ceil(t*a)/a;default:throw new RangeError(`Value rounding ${i} is out of range`)}}function vi(t){return t%4===0&&(t%100!==0||t%400===0)}function Ur(t){return vi(t)?366:365}function Gi(t,e){let i=Cp(e-1,12)+1,a=t+(e-i)/12;return i===2?vi(a)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function Yi(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 ao(t,e,i){return-Fn(Tn(t,1,e),i)+e-1}function bi(t,e=4,i=1){let a=ao(t,e,i),r=ao(t+1,e,i);return(Ur(t)-a+r)/7}function In(t){return t>99?t:t>ve.twoDigitCutoffYear?1900+t:2e3+t}function Jo(t,e,i,a=null){let r=new Date(t),n={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};a&&(n.timeZone=a);let s={timeZoneName:e,...n},o=new Intl.DateTimeFormat(i,s).formatToParts(r).find(l=>l.type.toLowerCase()==="timezonename");return o?o.value:null}function Ki(t,e){let i=parseInt(t,10);Number.isNaN(i)&&(i=0);let a=parseInt(e,10)||0,r=i<0||Object.is(i,-0)?-a:a;return i*60+r}function Yo(t){let e=Number(t);if(typeof t=="boolean"||t===""||!Number.isFinite(e))throw new Ne(`Invalid unit value ${t}`);return e}function Qi(t,e){let i={};for(let a in t)if(Qr(t,a)){let r=t[a];if(r==null)continue;i[e(a)]=Yo(r)}return i}function gi(t,e){let i=Math.trunc(Math.abs(t/60)),a=Math.trunc(Math.abs(t%60)),r=t>=0?"+":"-";switch(e){case"short":return`${r}${Le(i,2)}:${Le(a,2)}`;case"narrow":return`${r}${i}${a>0?`:${a}`:""}`;case"techie":return`${r}${Le(i,2)}${Le(a,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Xi(t){return Ip(t,["hour","minute","second","millisecond"])}var xp=["January","February","March","April","May","June","July","August","September","October","November","December"],Ko=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Tp=["J","F","M","A","M","J","J","A","S","O","N","D"];function Xo(t){switch(t){case"narrow":return[...Tp];case"short":return[...Ko];case"long":return[...xp];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 el=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],tl=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Fp=["M","T","W","T","F","S","S"];function rl(t){switch(t){case"narrow":return[...Fp];case"short":return[...tl];case"long":return[...el];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var il=["AM","PM"],Op=["Before Christ","Anno Domini"],Pp=["BC","AD"],Ap=["B","A"];function al(t){switch(t){case"narrow":return[...Ap];case"short":return[...Pp];case"long":return[...Op];default:return null}}function Ep(t){return il[t.hour<12?0:1]}function Dp(t,e){return rl(e)[t.weekday-1]}function Lp(t,e){return Xo(e)[t.month-1]}function $p(t,e){return al(e)[t.year<0?0:1]}function Np(t,e,i="always",a=!1){let r={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."]},n=["hours","minutes","seconds"].indexOf(t)===-1;if(i==="auto"&&n){let u=t==="days";switch(e){case 1:return u?"tomorrow":`next ${r[t][0]}`;case-1:return u?"yesterday":`last ${r[t][0]}`;case 0:return u?"today":`this ${r[t][0]}`}}let s=Object.is(e,-0)||e<0,o=Math.abs(e),l=o===1,d=r[t],c=a?l?d[1]:d[2]||d[1]:l?r[t][0]:t;return s?`${o} ${c} ago`:`in ${o} ${c}`}function no(t,e){let i="";for(let a of t)a.literal?i+=a.val:i+=e(a.val);return i}var Rp={D:zi,DD:wo,DDD:Io,DDDD:Co,t:xo,tt:To,ttt:Fo,tttt:Oo,T:Po,TT:Ao,TTT:Eo,TTTT:Do,f:Lo,ff:No,fff:Mo,ffff:Bo,F:$o,FF:Ro,FFF:ko,FFFF:qo},tt=class t{static create(e,i={}){return new t(e,i)}static parseFormat(e){let i=null,a="",r=!1,n=[];for(let s=0;s<e.length;s++){let o=e.charAt(s);o==="'"?((a.length>0||r)&&n.push({literal:r||/^\s+$/.test(a),val:a===""?"'":a}),i=null,a="",r=!r):r||o===i?a+=o:(a.length>0&&n.push({literal:/^\s+$/.test(a),val:a}),a=o,i=o)}return a.length>0&&n.push({literal:r||/^\s+$/.test(a),val:a}),n}static macroTokenToFormatOpts(e){return Rp[e]}constructor(e,i){this.opts=i,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,i){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...i}).format()}dtFormatter(e,i={}){return this.loc.dtFormatter(e,{...this.opts,...i})}formatDateTime(e,i){return this.dtFormatter(e,i).format()}formatDateTimeParts(e,i){return this.dtFormatter(e,i).formatToParts()}formatInterval(e,i){return this.dtFormatter(e.start,i).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,i){return this.dtFormatter(e,i).resolvedOptions()}num(e,i=0,a=void 0){if(this.opts.forceSimple)return Le(e,i);let r={...this.opts};return i>0&&(r.padTo=i),a&&(r.signDisplay=a),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,i){let a=this.loc.listingMode()==="en",r=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",n=(p,h)=>this.loc.extract(e,p,h),s=p=>e.isOffsetFixed&&e.offset===0&&p.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,p.format):"",o=()=>a?Ep(e):n({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(p,h)=>a?Lp(e,p):n(h?{month:p}:{month:p,day:"numeric"},"month"),d=(p,h)=>a?Dp(e,p):n(h?{weekday:p}:{weekday:p,month:"long",day:"numeric"},"weekday"),c=p=>{let h=t.macroTokenToFormatOpts(p);return h?this.formatWithSystemDefault(e,h):p},u=p=>a?$p(e,p):n({era:p},"era"),f=p=>{switch(p){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 s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({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 o();case"d":return r?n({day:"numeric"},"day"):this.num(e.day);case"dd":return r?n({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return r?n({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?n({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return r?n({month:"numeric"},"month"):this.num(e.month);case"MM":return r?n({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return r?n({year:"numeric"},"year"):this.num(e.year);case"yy":return r?n({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?n({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?n({year:"numeric"},"year"):this.num(e.year,6);case"G":return u("short");case"GG":return u("long");case"GGGGG":return u("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 c(p)}};return no(t.parseFormat(i),f)}formatDurationFromString(e,i){let a=this.opts.signMode==="negativeLargestOnly"?-1:1,r=c=>{switch(c[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}},n=(c,u)=>f=>{let p=r(f);if(p){let h=u.isNegativeDuration&&p!==u.largestUnit?a:1,b;return this.opts.signMode==="negativeLargestOnly"&&p!==u.largestUnit?b="never":this.opts.signMode==="all"?b="always":b="auto",this.num(c.get(p)*h,f.length,b)}else return f},s=t.parseFormat(i),o=s.reduce((c,{literal:u,val:f})=>u?c:c.concat(f),[]),l=e.shiftTo(...o.map(r).filter(c=>c)),d={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return no(s,n(l,d))}},nl=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Zr(...t){let e=t.reduce((i,a)=>i+a.source,"");return RegExp(`^${e}$`)}function Jr(...t){return e=>t.reduce(([i,a,r],n)=>{let[s,o,l]=n(e,r);return[{...i,...s},o||a,l]},[{},null,1]).slice(0,2)}function Yr(t,...e){if(t==null)return[null,null];for(let[i,a]of e){let r=i.exec(t);if(r)return a(r)}return[null,null]}function sl(...t){return(e,i)=>{let a={},r;for(r=0;r<t.length;r++)a[t[r]]=Jt(e[i+r]);return[a,null,i+r]}}var ol=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,Mp=`(?:${ol.source}?(?:\\[(${nl.source})\\])?)?`,An=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,ll=RegExp(`${An.source}${Mp}`),En=RegExp(`(?:[Tt]${ll.source})?`),kp=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Bp=/(\d{4})-?W(\d\d)(?:-?(\d))?/,qp=/(\d{4})-?(\d{3})/,Wp=sl("weekYear","weekNumber","weekDay"),jp=sl("year","ordinal"),_p=/(\d{4})-(\d\d)-(\d\d)/,dl=RegExp(`${An.source} ?(?:${ol.source}|(${nl.source}))?`),Vp=RegExp(`(?: ${dl.source})?`);function Hr(t,e,i){let a=t[e];return V(a)?i:Jt(a)}function zp(t,e){return[{year:Hr(t,e),month:Hr(t,e+1,1),day:Hr(t,e+2,1)},null,e+3]}function Kr(t,e){return[{hours:Hr(t,e,0),minutes:Hr(t,e+1,0),seconds:Hr(t,e+2,0),milliseconds:On(t[e+3])},null,e+4]}function Si(t,e){let i=!t[e]&&!t[e+1],a=Ki(t[e+1],t[e+2]),r=i?null:ut.instance(a);return[{},r,e+3]}function wi(t,e){let i=t[e]?er.create(t[e]):null;return[{},i,e+1]}var Up=RegExp(`^T?${An.source}$`),Hp=/^-?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 Gp(t){let[e,i,a,r,n,s,o,l,d]=t,c=e[0]==="-",u=l&&l[0]==="-",f=(p,h=!1)=>p!==void 0&&(h||p&&c)?-p:p;return[{years:f(br(i)),months:f(br(a)),weeks:f(br(r)),days:f(br(n)),hours:f(br(s)),minutes:f(br(o)),seconds:f(br(l),l==="-0"),milliseconds:f(On(d),u)}]}var Qp={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Dn(t,e,i,a,r,n,s){let o={year:e.length===2?In(Jt(e)):Jt(e),month:Ko.indexOf(i)+1,day:Jt(a),hour:Jt(r),minute:Jt(n)};return s&&(o.second=Jt(s)),t&&(o.weekday=t.length>3?el.indexOf(t)+1:tl.indexOf(t)+1),o}var Zp=/^(?:(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 Jp(t){let[,e,i,a,r,n,s,o,l,d,c,u]=t,f=Dn(e,r,a,i,n,s,o),p;return l?p=Qp[l]:d?p=0:p=Ki(c,u),[f,new ut(p)]}function Yp(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var Kp=/^(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$/,Xp=/^(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$/,ef=/^(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 so(t){let[,e,i,a,r,n,s,o]=t;return[Dn(e,r,a,i,n,s,o),ut.utcInstance]}function tf(t){let[,e,i,a,r,n,s,o]=t;return[Dn(e,o,i,a,r,n,s),ut.utcInstance]}var rf=Zr(kp,En),af=Zr(Bp,En),nf=Zr(qp,En),sf=Zr(ll),cl=Jr(zp,Kr,Si,wi),of=Jr(Wp,Kr,Si,wi),lf=Jr(jp,Kr,Si,wi),df=Jr(Kr,Si,wi);function cf(t){return Yr(t,[rf,cl],[af,of],[nf,lf],[sf,df])}function uf(t){return Yr(Yp(t),[Zp,Jp])}function pf(t){return Yr(t,[Kp,so],[Xp,so],[ef,tf])}function ff(t){return Yr(t,[Hp,Gp])}var hf=Jr(Kr);function mf(t){return Yr(t,[Up,hf])}var yf=Zr(_p,Vp),gf=Zr(dl),bf=Jr(Kr,Si,wi);function vf(t){return Yr(t,[yf,cl],[gf,bf])}var oo="Invalid Duration",ul={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Sf={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:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...ul},lt=146097/400,jr=146097/4800,wf={years:{quarters:4,months:12,weeks:lt/7,days:lt,hours:lt*24,minutes:lt*24*60,seconds:lt*24*60*60,milliseconds:lt*24*60*60*1e3},quarters:{months:3,weeks:lt/28,days:lt/4,hours:lt*24/4,minutes:lt*24*60/4,seconds:lt*24*60*60/4,milliseconds:lt*24*60*60*1e3/4},months:{weeks:jr/7,days:jr,hours:jr*24,minutes:jr*24*60,seconds:jr*24*60*60,milliseconds:jr*24*60*60*1e3},...ul},Sr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],If=Sr.slice(0).reverse();function qt(t,e,i=!1){let a={values:i?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Re(a)}function pl(t,e){let i=e.milliseconds??0;for(let a of If.slice(1))e[a]&&(i+=e[a]*t[a].milliseconds);return i}function lo(t,e){let i=pl(t,e)<0?-1:1;Sr.reduceRight((a,r)=>{if(V(e[r]))return a;if(a){let n=e[a]*i,s=t[r][a],o=Math.floor(n/s);e[r]+=o*i,e[a]-=o*s*i}return r},null),Sr.reduce((a,r)=>{if(V(e[r]))return a;if(a){let n=e[a]%1;e[a]-=n,e[r]+=n*t[a][r]}return r},null)}function co(t){let e={};for(let[i,a]of Object.entries(t))a!==0&&(e[i]=a);return e}var Re=class t{constructor(e){let i=e.conversionAccuracy==="longterm"||!1,a=i?wf:Sf;e.matrix&&(a=e.matrix),this.values=e.values,this.loc=e.loc||fe.create(),this.conversionAccuracy=i?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=a,this.isLuxonDuration=!0}static fromMillis(e,i){return t.fromObject({milliseconds:e},i)}static fromObject(e,i={}){if(e==null||typeof e!="object")throw new Ne(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new t({values:Qi(e,t.normalizeUnit),loc:fe.fromObject(i),conversionAccuracy:i.conversionAccuracy,matrix:i.matrix})}static fromDurationLike(e){if(Xt(e))return t.fromMillis(e);if(t.isDuration(e))return e;if(typeof e=="object")return t.fromObject(e);throw new Ne(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,i){let[a]=ff(e);return a?t.fromObject(a,i):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,i){let[a]=mf(e);return a?t.fromObject(a,i):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,i=null){if(!e)throw new Ne("need to specify a reason the Duration is invalid");let a=e instanceof rt?e:new rt(e,i);if(ve.throwOnInvalid)throw new ln(a);return new t({invalid:a})}static normalizeUnit(e){let i={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(!i)throw new Vi(e);return i}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,i={}){let a={...i,floor:i.round!==!1&&i.floor!==!1};return this.isValid?tt.create(this.loc,a).formatDurationFromString(this,e):oo}toHuman(e={}){if(!this.isValid)return oo;let i=e.showZeros!==!1,a=Sr.map(r=>{let n=this.values[r];return V(n)||n===0&&!i?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(n)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(a)}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+=Pn(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let i=this.toMillis();return i<0||i>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},ye.fromMillis(i,{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?pl(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let i=t.fromDurationLike(e),a={};for(let r of Sr)(Qr(i.values,r)||Qr(this.values,r))&&(a[r]=i.get(r)+this.get(r));return qt(this,{values:a},!0)}minus(e){if(!this.isValid)return this;let i=t.fromDurationLike(e);return this.plus(i.negate())}mapUnits(e){if(!this.isValid)return this;let i={};for(let a of Object.keys(this.values))i[a]=Yo(e(this.values[a],a));return qt(this,{values:i},!0)}get(e){return this[t.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let i={...this.values,...Qi(e,t.normalizeUnit)};return qt(this,{values:i})}reconfigure({locale:e,numberingSystem:i,conversionAccuracy:a,matrix:r}={}){let s={loc:this.loc.clone({locale:e,numberingSystem:i}),matrix:r,conversionAccuracy:a};return qt(this,s)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return lo(this.matrix,e),qt(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=co(this.normalize().shiftToAll().toObject());return qt(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(s=>t.normalizeUnit(s));let i={},a={},r=this.toObject(),n;for(let s of Sr)if(e.indexOf(s)>=0){n=s;let o=0;for(let d in a)o+=this.matrix[d][s]*a[d],a[d]=0;Xt(r[s])&&(o+=r[s]);let l=Math.trunc(o);i[s]=l,a[s]=(o*1e3-l*1e3)/1e3}else Xt(r[s])&&(a[s]=r[s]);for(let s in a)a[s]!==0&&(i[n]+=s===n?a[s]:a[s]/this.matrix[n][s]);return lo(this.matrix,i),qt(this,{values:i},!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 i of Object.keys(this.values))e[i]=this.values[i]===0?0:-this.values[i];return qt(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;let e=co(this.values);return qt(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 i(a,r){return a===void 0||a===0?r===void 0||r===0:a===r}for(let a of Sr)if(!i(this.values[a],e.values[a]))return!1;return!0}},_r="Invalid Interval";function Cf(t,e){return!t||!t.isValid?Gr.invalid("missing or invalid start"):!e||!e.isValid?Gr.invalid("missing or invalid end"):e<t?Gr.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 Gr=class t{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,i=null){if(!e)throw new Ne("need to specify a reason the Interval is invalid");let a=e instanceof rt?e:new rt(e,i);if(ve.throwOnInvalid)throw new on(a);return new t({invalid:a})}static fromDateTimes(e,i){let a=fi(e),r=fi(i),n=Cf(a,r);return n??new t({start:a,end:r})}static after(e,i){let a=Re.fromDurationLike(i),r=fi(e);return t.fromDateTimes(r,r.plus(a))}static before(e,i){let a=Re.fromDurationLike(i),r=fi(e);return t.fromDateTimes(r.minus(a),r)}static fromISO(e,i){let[a,r]=(e||"").split("/",2);if(a&&r){let n,s;try{n=ye.fromISO(a,i),s=n.isValid}catch{s=!1}let o,l;try{o=ye.fromISO(r,i),l=o.isValid}catch{l=!1}if(s&&l)return t.fromDateTimes(n,o);if(s){let d=Re.fromISO(r,i);if(d.isValid)return t.after(n,d)}else if(l){let d=Re.fromISO(a,i);if(d.isValid)return t.before(o,d)}}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",i){if(!this.isValid)return NaN;let a=this.start.startOf(e,i),r;return i?.useLocaleWeeks?r=this.end.reconfigure({locale:a.locale}):r=this.end,r=r.startOf(e,i),Math.floor(r.diff(a,e).get(e))+(r.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:i}={}){return this.isValid?t.fromDateTimes(e||this.s,i||this.e):this}splitAt(...e){if(!this.isValid)return[];let i=e.map(fi).filter(s=>this.contains(s)).sort((s,o)=>s.toMillis()-o.toMillis()),a=[],{s:r}=this,n=0;for(;r<this.e;){let s=i[n]||this.e,o=+s>+this.e?this.e:s;a.push(t.fromDateTimes(r,o)),r=o,n+=1}return a}splitBy(e){let i=Re.fromDurationLike(e);if(!this.isValid||!i.isValid||i.as("milliseconds")===0)return[];let{s:a}=this,r=1,n,s=[];for(;a<this.e;){let o=this.start.plus(i.mapUnits(l=>l*r));n=+o>+this.e?this.e:o,s.push(t.fromDateTimes(a,n)),a=n,r+=1}return s}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 i=this.s>e.s?this.s:e.s,a=this.e<e.e?this.e:e.e;return i>=a?null:t.fromDateTimes(i,a)}union(e){if(!this.isValid)return this;let i=this.s<e.s?this.s:e.s,a=this.e>e.e?this.e:e.e;return t.fromDateTimes(i,a)}static merge(e){let[i,a]=e.sort((r,n)=>r.s-n.s).reduce(([r,n],s)=>n?n.overlaps(s)||n.abutsStart(s)?[r,n.union(s)]:[r.concat([n]),s]:[r,s],[[],null]);return a&&i.push(a),i}static xor(e){let i=null,a=0,r=[],n=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...n),o=s.sort((l,d)=>l.time-d.time);for(let l of o)a+=l.type==="s"?1:-1,a===1?i=l.time:(i&&+i!=+l.time&&r.push(t.fromDateTimes(i,l.time)),i=null);return t.merge(r)}difference(...e){return t.xor([this].concat(e)).map(i=>this.intersection(i)).filter(i=>i&&!i.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:_r}[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=zi,i={}){return this.isValid?tt.create(this.s.loc.clone(i),e).formatInterval(this):_r}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:_r}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:_r}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:_r}toFormat(e,{separator:i=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${i}${this.e.toFormat(e)}`:_r}toDuration(e,i){return this.isValid?this.e.diff(this.s,e,i):Re.invalid(this.invalidReason)}mapEndpoints(e){return t.fromDateTimes(e(this.s),e(this.e))}},zr=class{static hasDST(e=ve.defaultZone){let i=ye.now().setZone(e).set({month:12});return!e.isUniversal&&i.offset!==i.set({month:6}).offset}static isValidIANAZone(e){return er.isValidZone(e)}static normalizeZone(e){return Yt(e,ve.defaultZone)}static getStartOfWeek({locale:e=null,locObj:i=null}={}){return(i||fe.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:i=null}={}){return(i||fe.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:i=null}={}){return(i||fe.create(e)).getWeekendDays().slice()}static months(e="long",{locale:i=null,numberingSystem:a=null,locObj:r=null,outputCalendar:n="gregory"}={}){return(r||fe.create(i,a,n)).months(e)}static monthsFormat(e="long",{locale:i=null,numberingSystem:a=null,locObj:r=null,outputCalendar:n="gregory"}={}){return(r||fe.create(i,a,n)).months(e,!0)}static weekdays(e="long",{locale:i=null,numberingSystem:a=null,locObj:r=null}={}){return(r||fe.create(i,a,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:i=null,numberingSystem:a=null,locObj:r=null}={}){return(r||fe.create(i,a,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return fe.create(e).meridiems()}static eras(e="short",{locale:i=null}={}){return fe.create(i,null,"gregory").eras(e)}static features(){return{relative:Qo(),localeWeek:Zo()}}};function uo(t,e){let i=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),a=i(e)-i(t);return Math.floor(Re.fromMillis(a).as("days"))}function xf(t,e,i){let a=[["years",(l,d)=>d.year-l.year],["quarters",(l,d)=>d.quarter-l.quarter+(d.year-l.year)*4],["months",(l,d)=>d.month-l.month+(d.year-l.year)*12],["weeks",(l,d)=>{let c=uo(l,d);return(c-c%7)/7}],["days",uo]],r={},n=t,s,o;for(let[l,d]of a)i.indexOf(l)>=0&&(s=l,r[l]=d(t,e),o=n.plus(r),o>e?(r[l]--,t=n.plus(r),t>e&&(o=t,r[l]--,t=n.plus(r))):t=o);return[t,r,o,s]}function Tf(t,e,i,a){let[r,n,s,o]=xf(t,e,i),l=e-r,d=i.filter(u=>["hours","minutes","seconds","milliseconds"].indexOf(u)>=0);d.length===0&&(s<e&&(s=r.plus({[o]:1})),s!==r&&(n[o]=(n[o]||0)+l/(s-r)));let c=Re.fromObject(n,a);return d.length>0?Re.fromMillis(l,a).shiftTo(...d).plus(c):c}var Ff="missing Intl.DateTimeFormat.formatToParts support";function ae(t,e=i=>i){return{regex:t,deser:([i])=>e(mp(i))}}var Of="\xA0",fl=`[ ${Of}]`,hl=new RegExp(fl,"g");function Pf(t){return t.replace(/\./g,"\\.?").replace(hl,fl)}function po(t){return t.replace(/\./g,"").replace(hl," ").toLowerCase()}function wt(t,e){return t===null?null:{regex:RegExp(t.map(Pf).join("|")),deser:([i])=>t.findIndex(a=>po(i)===po(a))+e}}function fo(t,e){return{regex:t,deser:([,i,a])=>Ki(i,a),groups:e}}function ki(t){return{regex:t,deser:([e])=>e}}function Af(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Ef(t,e){let i=St(e),a=St(e,"{2}"),r=St(e,"{3}"),n=St(e,"{4}"),s=St(e,"{6}"),o=St(e,"{1,2}"),l=St(e,"{1,3}"),d=St(e,"{1,6}"),c=St(e,"{1,9}"),u=St(e,"{2,4}"),f=St(e,"{4,6}"),p=m=>({regex:RegExp(Af(m.val)),deser:([w])=>w,literal:!0}),b=(m=>{if(t.literal)return p(m);switch(m.val){case"G":return wt(e.eras("short"),0);case"GG":return wt(e.eras("long"),0);case"y":return ae(d);case"yy":return ae(u,In);case"yyyy":return ae(n);case"yyyyy":return ae(f);case"yyyyyy":return ae(s);case"M":return ae(o);case"MM":return ae(a);case"MMM":return wt(e.months("short",!0),1);case"MMMM":return wt(e.months("long",!0),1);case"L":return ae(o);case"LL":return ae(a);case"LLL":return wt(e.months("short",!1),1);case"LLLL":return wt(e.months("long",!1),1);case"d":return ae(o);case"dd":return ae(a);case"o":return ae(l);case"ooo":return ae(r);case"HH":return ae(a);case"H":return ae(o);case"hh":return ae(a);case"h":return ae(o);case"mm":return ae(a);case"m":return ae(o);case"q":return ae(o);case"qq":return ae(a);case"s":return ae(o);case"ss":return ae(a);case"S":return ae(l);case"SSS":return ae(r);case"u":return ki(c);case"uu":return ki(o);case"uuu":return ae(i);case"a":return wt(e.meridiems(),0);case"kkkk":return ae(n);case"kk":return ae(u,In);case"W":return ae(o);case"WW":return ae(a);case"E":case"c":return ae(i);case"EEE":return wt(e.weekdays("short",!1),1);case"EEEE":return wt(e.weekdays("long",!1),1);case"ccc":return wt(e.weekdays("short",!0),1);case"cccc":return wt(e.weekdays("long",!0),1);case"Z":case"ZZ":return fo(new RegExp(`([+-]${o.source})(?::(${a.source}))?`),2);case"ZZZ":return fo(new RegExp(`([+-]${o.source})(${a.source})?`),2);case"z":return ki(/[a-z_+-/]{1,256}?/i);case" ":return ki(/[^\S\n\r]/);default:return p(m)}})(t)||{invalidReason:Ff};return b.token=t,b}var Df={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 Lf(t,e,i){let{type:a,value:r}=t;if(a==="literal"){let l=/^\s+$/.test(r);return{literal:!l,val:l?" ":r}}let n=e[a],s=a;a==="hour"&&(e.hour12!=null?s=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?s="hour12":s="hour24":s=i.hour12?"hour12":"hour24");let o=Df[s];if(typeof o=="object"&&(o=o[n]),o)return{literal:!1,val:o}}function $f(t){return[`^${t.map(i=>i.regex).reduce((i,a)=>`${i}(${a.source})`,"")}$`,t]}function Nf(t,e,i){let a=t.match(e);if(a){let r={},n=1;for(let s in i)if(Qr(i,s)){let o=i[s],l=o.groups?o.groups+1:1;!o.literal&&o.token&&(r[o.token.val[0]]=o.deser(a.slice(n,n+l))),n+=l}return[a,r]}else return[a,{}]}function Rf(t){let e=n=>{switch(n){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}},i=null,a;return V(t.z)||(i=er.create(t.z)),V(t.Z)||(i||(i=new ut(t.Z)),a=t.Z),V(t.q)||(t.M=(t.q-1)*3+1),V(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),V(t.u)||(t.S=On(t.u)),[Object.keys(t).reduce((n,s)=>{let o=e(s);return o&&(n[o]=t[s]),n},{}),i,a]}var en=null;function Mf(){return en||(en=ye.fromMillis(1555555555555)),en}function kf(t,e){if(t.literal)return t;let i=tt.macroTokenToFormatOpts(t.val),a=gl(i,e);return a==null||a.includes(void 0)?t:a}function ml(t,e){return Array.prototype.concat(...t.map(i=>kf(i,e)))}var Zi=class{constructor(e,i){if(this.locale=e,this.format=i,this.tokens=ml(tt.parseFormat(i),e),this.units=this.tokens.map(a=>Ef(a,e)),this.disqualifyingUnit=this.units.find(a=>a.invalidReason),!this.disqualifyingUnit){let[a,r]=$f(this.units);this.regex=RegExp(a,"i"),this.handlers=r}}explainFromTokens(e){if(this.isValid){let[i,a]=Nf(e,this.regex,this.handlers),[r,n,s]=a?Rf(a):[null,null,void 0];if(Qr(a,"a")&&Qr(a,"H"))throw new Kt("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:i,matches:a,result:r,zone:n,specificOffset:s}}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 yl(t,e,i){return new Zi(t,i).explainFromTokens(e)}function Bf(t,e,i){let{result:a,zone:r,specificOffset:n,invalidReason:s}=yl(t,e,i);return[a,r,n,s]}function gl(t,e){if(!t)return null;let a=tt.create(e,t).dtFormatter(Mf()),r=a.formatToParts(),n=a.resolvedOptions();return r.map(s=>Lf(s,t,n))}var tn="Invalid DateTime",ho=864e13;function mi(t){return new rt("unsupported zone",`the zone "${t.name}" is not supported`)}function rn(t){return t.weekData===null&&(t.weekData=Hi(t.c)),t.weekData}function an(t){return t.localWeekData===null&&(t.localWeekData=Hi(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function vr(t,e){let i={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new ye({...i,...e,old:i})}function bl(t,e,i){let a=t-e*60*1e3,r=i.offset(a);if(e===r)return[a,e];a-=(r-e)*60*1e3;let n=i.offset(a);return r===n?[a,r]:[t-Math.min(r,n)*60*1e3,Math.max(r,n)]}function Bi(t,e){t+=e*60*1e3;let i=new Date(t);return{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}function Wi(t,e,i){return bl(Yi(t),e,i)}function mo(t,e){let i=t.o,a=t.c.year+Math.trunc(e.years),r=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,n={...t.c,year:a,month:r,day:Math.min(t.c.day,Gi(a,r))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},s=Re.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"),o=Yi(n),[l,d]=bl(o,i,t.zone);return s!==0&&(l+=s,d=t.zone.offset(l)),{ts:l,o:d}}function Vr(t,e,i,a,r,n){let{setZone:s,zone:o}=i;if(t&&Object.keys(t).length!==0||e){let l=e||o,d=ye.fromObject(t,{...i,zone:l,specificOffset:n});return s?d:d.setZone(o)}else return ye.invalid(new rt("unparsable",`the input "${r}" can't be parsed as ${a}`))}function qi(t,e,i=!0){return t.isValid?tt.create(fe.create("en-US"),{allowZ:i,forceSimple:!0}).formatDateTimeFromString(t,e):null}function nn(t,e,i){let a=t.c.year>9999||t.c.year<0,r="";if(a&&t.c.year>=0&&(r+="+"),r+=Le(t.c.year,a?6:4),i==="year")return r;if(e){if(r+="-",r+=Le(t.c.month),i==="month")return r;r+="-"}else if(r+=Le(t.c.month),i==="month")return r;return r+=Le(t.c.day),r}function yo(t,e,i,a,r,n,s){let o=!i||t.c.millisecond!==0||t.c.second!==0,l="";switch(s){case"day":case"month":case"year":break;default:if(l+=Le(t.c.hour),s==="hour")break;if(e){if(l+=":",l+=Le(t.c.minute),s==="minute")break;o&&(l+=":",l+=Le(t.c.second))}else{if(l+=Le(t.c.minute),s==="minute")break;o&&(l+=Le(t.c.second))}if(s==="second")break;o&&(!a||t.c.millisecond!==0)&&(l+=".",l+=Le(t.c.millisecond,3))}return r&&(t.isOffsetFixed&&t.offset===0&&!n?l+="Z":t.o<0?(l+="-",l+=Le(Math.trunc(-t.o/60)),l+=":",l+=Le(Math.trunc(-t.o%60))):(l+="+",l+=Le(Math.trunc(t.o/60)),l+=":",l+=Le(Math.trunc(t.o%60)))),n&&(l+="["+t.zone.ianaName+"]"),l}var vl={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},qf={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Wf={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ji=["year","month","day","hour","minute","second","millisecond"],jf=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],_f=["year","ordinal","hour","minute","second","millisecond"];function _i(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 Vi(t);return e}function go(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return _i(t)}}function Vf(t){if(yi===void 0&&(yi=ve.now()),t.type!=="iana")return t.offset(yi);let e=t.name,i=Cn.get(e);return i===void 0&&(i=t.offset(yi),Cn.set(e,i)),i}function bo(t,e){let i=Yt(e.zone,ve.defaultZone);if(!i.isValid)return ye.invalid(mi(i));let a=fe.fromObject(e),r,n;if(V(t.year))r=ve.now();else{for(let l of ji)V(t[l])&&(t[l]=vl[l]);let s=Ho(t)||Go(t);if(s)return ye.invalid(s);let o=Vf(i);[r,n]=Wi(t,o,i)}return new ye({ts:r,zone:i,loc:a,o:n})}function vo(t,e,i){let a=V(i.round)?!0:i.round,r=V(i.rounding)?"trunc":i.rounding,n=(o,l)=>(o=Pn(o,a||i.calendary?0:2,i.calendary?"round":r),e.loc.clone(i).relFormatter(i).format(o,l)),s=o=>i.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(i.unit)return n(s(i.unit),i.unit);for(let o of i.units){let l=s(o);if(Math.abs(l)>=1)return n(l,o)}return n(t>e?-0:0,i.units[i.units.length-1])}function So(t){let e={},i;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],i=Array.from(t).slice(0,t.length-1)):i=Array.from(t),[e,i]}var yi,Cn=new Map,ye=class t{constructor(e){let i=e.zone||ve.defaultZone,a=e.invalid||(Number.isNaN(e.ts)?new rt("invalid input"):null)||(i.isValid?null:mi(i));this.ts=V(e.ts)?ve.now():e.ts;let r=null,n=null;if(!a)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(i))[r,n]=[e.old.c,e.old.o];else{let o=Xt(e.o)&&!e.old?e.o:i.offset(this.ts);r=Bi(this.ts,o),a=Number.isNaN(r.year)?new rt("invalid input"):null,r=a?null:r,n=a?null:o}this._zone=i,this.loc=e.loc||fe.create(),this.invalid=a,this.weekData=null,this.localWeekData=null,this.c=r,this.o=n,this.isLuxonDateTime=!0}static now(){return new t({})}static local(){let[e,i]=So(arguments),[a,r,n,s,o,l,d]=i;return bo({year:a,month:r,day:n,hour:s,minute:o,second:l,millisecond:d},e)}static utc(){let[e,i]=So(arguments),[a,r,n,s,o,l,d]=i;return e.zone=ut.utcInstance,bo({year:a,month:r,day:n,hour:s,minute:o,second:l,millisecond:d},e)}static fromJSDate(e,i={}){let a=Sp(e)?e.valueOf():NaN;if(Number.isNaN(a))return t.invalid("invalid input");let r=Yt(i.zone,ve.defaultZone);return r.isValid?new t({ts:a,zone:r,loc:fe.fromObject(i)}):t.invalid(mi(r))}static fromMillis(e,i={}){if(Xt(e))return e<-ho||e>ho?t.invalid("Timestamp out of range"):new t({ts:e,zone:Yt(i.zone,ve.defaultZone),loc:fe.fromObject(i)});throw new Ne(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,i={}){if(Xt(e))return new t({ts:e*1e3,zone:Yt(i.zone,ve.defaultZone),loc:fe.fromObject(i)});throw new Ne("fromSeconds requires a numerical input")}static fromObject(e,i={}){e=e||{};let a=Yt(i.zone,ve.defaultZone);if(!a.isValid)return t.invalid(mi(a));let r=fe.fromObject(i),n=Qi(e,go),{minDaysInFirstWeek:s,startOfWeek:o}=ro(n,r),l=ve.now(),d=V(i.specificOffset)?a.offset(l):i.specificOffset,c=!V(n.ordinal),u=!V(n.year),f=!V(n.month)||!V(n.day),p=u||f,h=n.weekYear||n.weekNumber;if((p||c)&&h)throw new Kt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&c)throw new Kt("Can't mix ordinal dates with month/day");let b=h||n.weekday&&!p,m,w,C=Bi(l,d);b?(m=jf,w=qf,C=Hi(C,s,o)):c?(m=_f,w=Wf,C=Xa(C)):(m=ji,w=vl);let I=!1;for(let R of m){let k=n[R];V(k)?I?n[R]=w[R]:n[R]=C[R]:I=!0}let O=b?gp(n,s,o):c?bp(n):Ho(n),P=O||Go(n);if(P)return t.invalid(P);let A=b?eo(n,s,o):c?to(n):n,[M,N]=Wi(A,d,a),E=new t({ts:M,zone:a,o:N,loc:r});return n.weekday&&p&&e.weekday!==E.weekday?t.invalid("mismatched weekday",`you can't specify both a weekday of ${n.weekday} and a date of ${E.toISO()}`):E.isValid?E:t.invalid(E.invalid)}static fromISO(e,i={}){let[a,r]=cf(e);return Vr(a,r,i,"ISO 8601",e)}static fromRFC2822(e,i={}){let[a,r]=uf(e);return Vr(a,r,i,"RFC 2822",e)}static fromHTTP(e,i={}){let[a,r]=pf(e);return Vr(a,r,i,"HTTP",i)}static fromFormat(e,i,a={}){if(V(e)||V(i))throw new Ne("fromFormat requires an input string and a format");let{locale:r=null,numberingSystem:n=null}=a,s=fe.fromOpts({locale:r,numberingSystem:n,defaultToEN:!0}),[o,l,d,c]=Bf(s,e,i);return c?t.invalid(c):Vr(o,l,a,`format ${i}`,e,d)}static fromString(e,i,a={}){return t.fromFormat(e,i,a)}static fromSQL(e,i={}){let[a,r]=vf(e);return Vr(a,r,i,"SQL",e)}static invalid(e,i=null){if(!e)throw new Ne("need to specify a reason the DateTime is invalid");let a=e instanceof rt?e:new rt(e,i);if(ve.throwOnInvalid)throw new sn(a);return new t({invalid:a})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,i={}){let a=gl(e,fe.fromObject(i));return a?a.map(r=>r?r.val:null).join(""):null}static expandFormat(e,i={}){return ml(tt.parseFormat(e),fe.fromObject(i)).map(r=>r.val).join("")}static resetCache(){yi=void 0,Cn.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?rn(this).weekYear:NaN}get weekNumber(){return this.isValid?rn(this).weekNumber:NaN}get weekday(){return this.isValid?rn(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?an(this).weekday:NaN}get localWeekNumber(){return this.isValid?an(this).weekNumber:NaN}get localWeekYear(){return this.isValid?an(this).weekYear:NaN}get ordinal(){return this.isValid?Xa(this.c).ordinal:NaN}get monthShort(){return this.isValid?zr.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?zr.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?zr.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?zr.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,i=6e4,a=Yi(this.c),r=this.zone.offset(a-e),n=this.zone.offset(a+e),s=this.zone.offset(a-r*i),o=this.zone.offset(a-n*i);if(s===o)return[this];let l=a-s*i,d=a-o*i,c=Bi(l,s),u=Bi(d,o);return c.hour===u.hour&&c.minute===u.minute&&c.second===u.second&&c.millisecond===u.millisecond?[vr(this,{ts:l}),vr(this,{ts:d})]:[this]}get isInLeapYear(){return vi(this.year)}get daysInMonth(){return Gi(this.year,this.month)}get daysInYear(){return this.isValid?Ur(this.year):NaN}get weeksInWeekYear(){return this.isValid?bi(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?bi(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:i,numberingSystem:a,calendar:r}=tt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:i,numberingSystem:a,outputCalendar:r}}toUTC(e=0,i={}){return this.setZone(ut.instance(e),i)}toLocal(){return this.setZone(ve.defaultZone)}setZone(e,{keepLocalTime:i=!1,keepCalendarTime:a=!1}={}){if(e=Yt(e,ve.defaultZone),e.equals(this.zone))return this;if(e.isValid){let r=this.ts;if(i||a){let n=e.offset(this.ts),s=this.toObject();[r]=Wi(s,n,e)}return vr(this,{ts:r,zone:e})}else return t.invalid(mi(e))}reconfigure({locale:e,numberingSystem:i,outputCalendar:a}={}){let r=this.loc.clone({locale:e,numberingSystem:i,outputCalendar:a});return vr(this,{loc:r})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let i=Qi(e,go),{minDaysInFirstWeek:a,startOfWeek:r}=ro(i,this.loc),n=!V(i.weekYear)||!V(i.weekNumber)||!V(i.weekday),s=!V(i.ordinal),o=!V(i.year),l=!V(i.month)||!V(i.day),d=o||l,c=i.weekYear||i.weekNumber;if((d||s)&&c)throw new Kt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new Kt("Can't mix ordinal dates with month/day");let u;n?u=eo({...Hi(this.c,a,r),...i},a,r):V(i.ordinal)?(u={...this.toObject(),...i},V(i.day)&&(u.day=Math.min(Gi(u.year,u.month),u.day))):u=to({...Xa(this.c),...i});let[f,p]=Wi(u,this.o,this.zone);return vr(this,{ts:f,o:p})}plus(e){if(!this.isValid)return this;let i=Re.fromDurationLike(e);return vr(this,mo(this,i))}minus(e){if(!this.isValid)return this;let i=Re.fromDurationLike(e).negate();return vr(this,mo(this,i))}startOf(e,{useLocaleWeeks:i=!1}={}){if(!this.isValid)return this;let a={},r=Re.normalizeUnit(e);switch(r){case"years":a.month=1;case"quarters":case"months":a.day=1;case"weeks":case"days":a.hour=0;case"hours":a.minute=0;case"minutes":a.second=0;case"seconds":a.millisecond=0;break}if(r==="weeks")if(i){let n=this.loc.getStartOfWeek(),{weekday:s}=this;s<n&&(a.weekNumber=this.weekNumber-1),a.weekday=n}else a.weekday=1;if(r==="quarters"){let n=Math.ceil(this.month/3);a.month=(n-1)*3+1}return this.set(a)}endOf(e,i){return this.isValid?this.plus({[e]:1}).startOf(e,i).minus(1):this}toFormat(e,i={}){return this.isValid?tt.create(this.loc.redefaultToEN(i)).formatDateTimeFromString(this,e):tn}toLocaleString(e=zi,i={}){return this.isValid?tt.create(this.loc.clone(i),e).formatDateTime(this):tn}toLocaleParts(e={}){return this.isValid?tt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:i=!1,suppressMilliseconds:a=!1,includeOffset:r=!0,extendedZone:n=!1,precision:s="milliseconds"}={}){if(!this.isValid)return null;s=_i(s);let o=e==="extended",l=nn(this,o,s);return ji.indexOf(s)>=3&&(l+="T"),l+=yo(this,o,i,a,r,n,s),l}toISODate({format:e="extended",precision:i="day"}={}){return this.isValid?nn(this,e==="extended",_i(i)):null}toISOWeekDate(){return qi(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:i=!1,includeOffset:a=!0,includePrefix:r=!1,extendedZone:n=!1,format:s="extended",precision:o="milliseconds"}={}){return this.isValid?(o=_i(o),(r&&ji.indexOf(o)>=3?"T":"")+yo(this,s==="extended",i,e,a,n,o)):null}toRFC2822(){return qi(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return qi(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?nn(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:i=!1,includeOffsetSpace:a=!0}={}){let r="HH:mm:ss.SSS";return(i||e)&&(a&&(r+=" "),i?r+="z":e&&(r+="ZZ")),qi(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():tn}[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 i={...this.c};return e.includeConfig&&(i.outputCalendar=this.outputCalendar,i.numberingSystem=this.loc.numberingSystem,i.locale=this.loc.locale),i}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,i="milliseconds",a={}){if(!this.isValid||!e.isValid)return Re.invalid("created by diffing an invalid DateTime");let r={locale:this.locale,numberingSystem:this.numberingSystem,...a},n=wp(i).map(Re.normalizeUnit),s=e.valueOf()>this.valueOf(),o=s?this:e,l=s?e:this,d=Tf(o,l,n,r);return s?d.negate():d}diffNow(e="milliseconds",i={}){return this.diff(t.now(),e,i)}until(e){return this.isValid?Gr.fromDateTimes(this,e):this}hasSame(e,i,a){if(!this.isValid)return!1;let r=e.valueOf(),n=this.setZone(e.zone,{keepLocalTime:!0});return n.startOf(i,a)<=r&&r<=n.endOf(i,a)}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 i=e.base||t.fromObject({},{zone:this.zone}),a=e.padding?this<i?-e.padding:e.padding:0,r=["years","months","days","hours","minutes","seconds"],n=e.unit;return Array.isArray(e.unit)&&(r=e.unit,n=void 0),vo(i,this.plus(a),{...e,numeric:"always",units:r,unit:n})}toRelativeCalendar(e={}){return this.isValid?vo(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 Ne("min requires all arguments be DateTimes");return io(e,i=>i.valueOf(),Math.min)}static max(...e){if(!e.every(t.isDateTime))throw new Ne("max requires all arguments be DateTimes");return io(e,i=>i.valueOf(),Math.max)}static fromFormatExplain(e,i,a={}){let{locale:r=null,numberingSystem:n=null}=a,s=fe.fromOpts({locale:r,numberingSystem:n,defaultToEN:!0});return yl(s,e,i)}static fromStringExplain(e,i,a={}){return t.fromFormatExplain(e,i,a)}static buildFormatParser(e,i={}){let{locale:a=null,numberingSystem:r=null}=i,n=fe.fromOpts({locale:a,numberingSystem:r,defaultToEN:!0});return new Zi(n,e)}static fromFormatParser(e,i,a={}){if(V(e)||V(i))throw new Ne("fromFormatParser requires an input string and a format parser");let{locale:r=null,numberingSystem:n=null}=a,s=fe.fromOpts({locale:r,numberingSystem:n,defaultToEN:!0});if(!s.equals(i.locale))throw new Ne(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${i.locale}`);let{result:o,zone:l,specificOffset:d,invalidReason:c}=i.explainFromTokens(e);return c?t.invalid(c):Vr(o,l,a,`format ${i.format}`,e,d)}static get DATE_SHORT(){return zi}static get DATE_MED(){return wo}static get DATE_MED_WITH_WEEKDAY(){return Ku}static get DATE_FULL(){return Io}static get DATE_HUGE(){return Co}static get TIME_SIMPLE(){return xo}static get TIME_WITH_SECONDS(){return To}static get TIME_WITH_SHORT_OFFSET(){return Fo}static get TIME_WITH_LONG_OFFSET(){return Oo}static get TIME_24_SIMPLE(){return Po}static get TIME_24_WITH_SECONDS(){return Ao}static get TIME_24_WITH_SHORT_OFFSET(){return Eo}static get TIME_24_WITH_LONG_OFFSET(){return Do}static get DATETIME_SHORT(){return Lo}static get DATETIME_SHORT_WITH_SECONDS(){return $o}static get DATETIME_MED(){return No}static get DATETIME_MED_WITH_SECONDS(){return Ro}static get DATETIME_MED_WITH_WEEKDAY(){return Xu}static get DATETIME_FULL(){return Mo}static get DATETIME_FULL_WITH_SECONDS(){return ko}static get DATETIME_HUGE(){return Bo}static get DATETIME_HUGE_WITH_SECONDS(){return qo}};function fi(t){if(ye.isDateTime(t))return t;if(t&&t.valueOf&&Xt(t.valueOf()))return ye.fromJSDate(t);if(t&&typeof t=="object")return ye.fromObject(t);throw new Ne(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var aa=function(){return aa=Object.assign||function(e){for(var i,a=1,r=arguments.length;a<r;a++){i=arguments[a];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},aa.apply(this,arguments)},Ln={exports:{}},xe={},$n={exports:{}},Ir={};function xl(){var t={};return t["align-content"]=!1,t["align-items"]=!1,t["align-self"]=!1,t["alignment-adjust"]=!1,t["alignment-baseline"]=!1,t.all=!1,t["anchor-point"]=!1,t.animation=!1,t["animation-delay"]=!1,t["animation-direction"]=!1,t["animation-duration"]=!1,t["animation-fill-mode"]=!1,t["animation-iteration-count"]=!1,t["animation-name"]=!1,t["animation-play-state"]=!1,t["animation-timing-function"]=!1,t.azimuth=!1,t["backface-visibility"]=!1,t.background=!0,t["background-attachment"]=!0,t["background-clip"]=!0,t["background-color"]=!0,t["background-image"]=!0,t["background-origin"]=!0,t["background-position"]=!0,t["background-repeat"]=!0,t["background-size"]=!0,t["baseline-shift"]=!1,t.binding=!1,t.bleed=!1,t["bookmark-label"]=!1,t["bookmark-level"]=!1,t["bookmark-state"]=!1,t.border=!0,t["border-bottom"]=!0,t["border-bottom-color"]=!0,t["border-bottom-left-radius"]=!0,t["border-bottom-right-radius"]=!0,t["border-bottom-style"]=!0,t["border-bottom-width"]=!0,t["border-collapse"]=!0,t["border-color"]=!0,t["border-image"]=!0,t["border-image-outset"]=!0,t["border-image-repeat"]=!0,t["border-image-slice"]=!0,t["border-image-source"]=!0,t["border-image-width"]=!0,t["border-left"]=!0,t["border-left-color"]=!0,t["border-left-style"]=!0,t["border-left-width"]=!0,t["border-radius"]=!0,t["border-right"]=!0,t["border-right-color"]=!0,t["border-right-style"]=!0,t["border-right-width"]=!0,t["border-spacing"]=!0,t["border-style"]=!0,t["border-top"]=!0,t["border-top-color"]=!0,t["border-top-left-radius"]=!0,t["border-top-right-radius"]=!0,t["border-top-style"]=!0,t["border-top-width"]=!0,t["border-width"]=!0,t.bottom=!1,t["box-decoration-break"]=!0,t["box-shadow"]=!0,t["box-sizing"]=!0,t["box-snap"]=!0,t["box-suppress"]=!0,t["break-after"]=!0,t["break-before"]=!0,t["break-inside"]=!0,t["caption-side"]=!1,t.chains=!1,t.clear=!0,t.clip=!1,t["clip-path"]=!1,t["clip-rule"]=!1,t.color=!0,t["color-interpolation-filters"]=!0,t["column-count"]=!1,t["column-fill"]=!1,t["column-gap"]=!1,t["column-rule"]=!1,t["column-rule-color"]=!1,t["column-rule-style"]=!1,t["column-rule-width"]=!1,t["column-span"]=!1,t["column-width"]=!1,t.columns=!1,t.contain=!1,t.content=!1,t["counter-increment"]=!1,t["counter-reset"]=!1,t["counter-set"]=!1,t.crop=!1,t.cue=!1,t["cue-after"]=!1,t["cue-before"]=!1,t.cursor=!1,t.direction=!1,t.display=!0,t["display-inside"]=!0,t["display-list"]=!0,t["display-outside"]=!0,t["dominant-baseline"]=!1,t.elevation=!1,t["empty-cells"]=!1,t.filter=!1,t.flex=!1,t["flex-basis"]=!1,t["flex-direction"]=!1,t["flex-flow"]=!1,t["flex-grow"]=!1,t["flex-shrink"]=!1,t["flex-wrap"]=!1,t.float=!1,t["float-offset"]=!1,t["flood-color"]=!1,t["flood-opacity"]=!1,t["flow-from"]=!1,t["flow-into"]=!1,t.font=!0,t["font-family"]=!0,t["font-feature-settings"]=!0,t["font-kerning"]=!0,t["font-language-override"]=!0,t["font-size"]=!0,t["font-size-adjust"]=!0,t["font-stretch"]=!0,t["font-style"]=!0,t["font-synthesis"]=!0,t["font-variant"]=!0,t["font-variant-alternates"]=!0,t["font-variant-caps"]=!0,t["font-variant-east-asian"]=!0,t["font-variant-ligatures"]=!0,t["font-variant-numeric"]=!0,t["font-variant-position"]=!0,t["font-weight"]=!0,t.grid=!1,t["grid-area"]=!1,t["grid-auto-columns"]=!1,t["grid-auto-flow"]=!1,t["grid-auto-rows"]=!1,t["grid-column"]=!1,t["grid-column-end"]=!1,t["grid-column-start"]=!1,t["grid-row"]=!1,t["grid-row-end"]=!1,t["grid-row-start"]=!1,t["grid-template"]=!1,t["grid-template-areas"]=!1,t["grid-template-columns"]=!1,t["grid-template-rows"]=!1,t["hanging-punctuation"]=!1,t.height=!0,t.hyphens=!1,t.icon=!1,t["image-orientation"]=!1,t["image-resolution"]=!1,t["ime-mode"]=!1,t["initial-letters"]=!1,t["inline-box-align"]=!1,t["justify-content"]=!1,t["justify-items"]=!1,t["justify-self"]=!1,t.left=!1,t["letter-spacing"]=!0,t["lighting-color"]=!0,t["line-box-contain"]=!1,t["line-break"]=!1,t["line-grid"]=!1,t["line-height"]=!1,t["line-snap"]=!1,t["line-stacking"]=!1,t["line-stacking-ruby"]=!1,t["line-stacking-shift"]=!1,t["line-stacking-strategy"]=!1,t["list-style"]=!0,t["list-style-image"]=!0,t["list-style-position"]=!0,t["list-style-type"]=!0,t.margin=!0,t["margin-bottom"]=!0,t["margin-left"]=!0,t["margin-right"]=!0,t["margin-top"]=!0,t["marker-offset"]=!1,t["marker-side"]=!1,t.marks=!1,t.mask=!1,t["mask-box"]=!1,t["mask-box-outset"]=!1,t["mask-box-repeat"]=!1,t["mask-box-slice"]=!1,t["mask-box-source"]=!1,t["mask-box-width"]=!1,t["mask-clip"]=!1,t["mask-image"]=!1,t["mask-origin"]=!1,t["mask-position"]=!1,t["mask-repeat"]=!1,t["mask-size"]=!1,t["mask-source-type"]=!1,t["mask-type"]=!1,t["max-height"]=!0,t["max-lines"]=!1,t["max-width"]=!0,t["min-height"]=!0,t["min-width"]=!0,t["move-to"]=!1,t["nav-down"]=!1,t["nav-index"]=!1,t["nav-left"]=!1,t["nav-right"]=!1,t["nav-up"]=!1,t["object-fit"]=!1,t["object-position"]=!1,t.opacity=!1,t.order=!1,t.orphans=!1,t.outline=!1,t["outline-color"]=!1,t["outline-offset"]=!1,t["outline-style"]=!1,t["outline-width"]=!1,t.overflow=!1,t["overflow-wrap"]=!1,t["overflow-x"]=!1,t["overflow-y"]=!1,t.padding=!0,t["padding-bottom"]=!0,t["padding-left"]=!0,t["padding-right"]=!0,t["padding-top"]=!0,t.page=!1,t["page-break-after"]=!1,t["page-break-before"]=!1,t["page-break-inside"]=!1,t["page-policy"]=!1,t.pause=!1,t["pause-after"]=!1,t["pause-before"]=!1,t.perspective=!1,t["perspective-origin"]=!1,t.pitch=!1,t["pitch-range"]=!1,t["play-during"]=!1,t.position=!1,t["presentation-level"]=!1,t.quotes=!1,t["region-fragment"]=!1,t.resize=!1,t.rest=!1,t["rest-after"]=!1,t["rest-before"]=!1,t.richness=!1,t.right=!1,t.rotation=!1,t["rotation-point"]=!1,t["ruby-align"]=!1,t["ruby-merge"]=!1,t["ruby-position"]=!1,t["shape-image-threshold"]=!1,t["shape-outside"]=!1,t["shape-margin"]=!1,t.size=!1,t.speak=!1,t["speak-as"]=!1,t["speak-header"]=!1,t["speak-numeral"]=!1,t["speak-punctuation"]=!1,t["speech-rate"]=!1,t.stress=!1,t["string-set"]=!1,t["tab-size"]=!1,t["table-layout"]=!1,t["text-align"]=!0,t["text-align-last"]=!0,t["text-combine-upright"]=!0,t["text-decoration"]=!0,t["text-decoration-color"]=!0,t["text-decoration-line"]=!0,t["text-decoration-skip"]=!0,t["text-decoration-style"]=!0,t["text-emphasis"]=!0,t["text-emphasis-color"]=!0,t["text-emphasis-position"]=!0,t["text-emphasis-style"]=!0,t["text-height"]=!0,t["text-indent"]=!0,t["text-justify"]=!0,t["text-orientation"]=!0,t["text-overflow"]=!0,t["text-shadow"]=!0,t["text-space-collapse"]=!0,t["text-transform"]=!0,t["text-underline-position"]=!0,t["text-wrap"]=!0,t.top=!1,t.transform=!1,t["transform-origin"]=!1,t["transform-style"]=!1,t.transition=!1,t["transition-delay"]=!1,t["transition-duration"]=!1,t["transition-property"]=!1,t["transition-timing-function"]=!1,t["unicode-bidi"]=!1,t["vertical-align"]=!1,t.visibility=!1,t["voice-balance"]=!1,t["voice-duration"]=!1,t["voice-family"]=!1,t["voice-pitch"]=!1,t["voice-range"]=!1,t["voice-rate"]=!1,t["voice-stress"]=!1,t["voice-volume"]=!1,t.volume=!1,t["white-space"]=!1,t.widows=!1,t.width=!0,t["will-change"]=!1,t["word-break"]=!0,t["word-spacing"]=!0,t["word-wrap"]=!0,t["wrap-flow"]=!1,t["wrap-through"]=!1,t["writing-mode"]=!1,t["z-index"]=!1,t}function zf(t,e,i){}function Uf(t,e,i){}var Hf=/javascript\s*\:/img;function Gf(t,e){return Hf.test(e)?"":e}Ir.whiteList=xl();Ir.getDefaultWhiteList=xl;Ir.onAttr=zf;Ir.onIgnoreAttr=Uf;Ir.safeAttrValue=Gf;var Qf={indexOf:function(t,e){var i,a;if(Array.prototype.indexOf)return t.indexOf(e);for(i=0,a=t.length;i<a;i++)if(t[i]===e)return i;return-1},forEach:function(t,e,i){var a,r;if(Array.prototype.forEach)return t.forEach(e,i);for(a=0,r=t.length;a<r;a++)e.call(i,t[a],a,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(t){return String.prototype.trimRight?t.trimRight():t.replace(/(\s*$)/g,"")}},Ii=Qf;function Zf(t,e){t=Ii.trimRight(t),t[t.length-1]!==";"&&(t+=";");var i=t.length,a=!1,r=0,n=0,s="";function o(){if(!a){var c=Ii.trim(t.slice(r,n)),u=c.indexOf(":");if(u!==-1){var f=Ii.trim(c.slice(0,u)),p=Ii.trim(c.slice(u+1));if(f){var h=e(r,s.length,f,p,c);h&&(s+=h+"; ")}}}r=n+1}for(;n<i;n++){var l=t[n];if(l==="/"&&t[n+1]==="*"){var d=t.indexOf("*/",n+2);if(d===-1)break;n=d+1,r=n+1,a=!1}else l==="("?a=!0:l===")"?a=!1:l===";"?a||o():l===`
3
+ `&&o()}return Ii.trim(s)}var Jf=Zf,ea=Ir,Yf=Jf;function Sl(t){return t==null}function Kf(t){var e={};for(var i in t)e[i]=t[i];return e}function Tl(t){t=Kf(t||{}),t.whiteList=t.whiteList||ea.whiteList,t.onAttr=t.onAttr||ea.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||ea.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||ea.safeAttrValue,this.options=t}Tl.prototype.process=function(t){if(t=t||"",t=t.toString(),!t)return"";var e=this,i=e.options,a=i.whiteList,r=i.onAttr,n=i.onIgnoreAttr,s=i.safeAttrValue,o=Yf(t,function(l,d,c,u,f){var p=a[c],h=!1;if(p===!0?h=p:typeof p=="function"?h=p(u):p instanceof RegExp&&(h=p.test(u)),h!==!0&&(h=!1),u=s(c,u),!!u){var b={position:d,sourcePosition:l,source:f,isWhite:h};if(h){var m=r(c,u,b);return Sl(m)?c+":"+u:m}else{var m=n(c,u,b);if(!Sl(m))return m}}});return o};var Xf=Tl;(function(t,e){var i=Ir,a=Xf;function r(s,o){var l=new a(o);return l.process(s)}e=t.exports=r,e.FilterCSS=a;for(var n in i)e[n]=i[n]})($n,$n.exports);var Nn=$n.exports,Rn={indexOf:function(t,e){var i,a;if(Array.prototype.indexOf)return t.indexOf(e);for(i=0,a=t.length;i<a;i++)if(t[i]===e)return i;return-1},forEach:function(t,e,i){var a,r;if(Array.prototype.forEach)return t.forEach(e,i);for(a=0,r=t.length;a<r;a++)e.call(i,t[a],a,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(t){var e=/\s|\n|\t/,i=e.exec(t);return i?i.index:-1}},eh=Nn.FilterCSS,th=Nn.getDefaultWhiteList,na=Rn;function Fl(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var Ol=new eh;function rh(t,e,i){}function ih(t,e,i){}function ah(t,e,i){}function nh(t,e,i){}function Pl(t){return t.replace(oh,"&lt;").replace(lh,"&gt;")}function sh(t,e,i,a){if(i=Nl(i),e==="href"||e==="src"){if(i=na.trim(i),i==="#")return"#";if(!(i.substr(0,7)==="http://"||i.substr(0,8)==="https://"||i.substr(0,7)==="mailto:"||i.substr(0,4)==="tel:"||i.substr(0,11)==="data:image/"||i.substr(0,6)==="ftp://"||i.substr(0,2)==="./"||i.substr(0,3)==="../"||i[0]==="#"||i[0]==="/"))return""}else if(e==="background"){if(ta.lastIndex=0,ta.test(i))return""}else if(e==="style"){if(wl.lastIndex=0,wl.test(i)||(Il.lastIndex=0,Il.test(i)&&(ta.lastIndex=0,ta.test(i))))return"";a!==!1&&(a=a||Ol,i=a.process(i))}return i=Rl(i),i}var oh=/</g,lh=/>/g,dh=/"/g,ch=/&quot;/g,uh=/&#([a-zA-Z0-9]*);?/gim,ph=/&colon;?/gim,fh=/&newline;?/gim,ta=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,wl=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Il=/u\s*r\s*l\s*\(.*/gi;function Al(t){return t.replace(dh,"&quot;")}function El(t){return t.replace(ch,'"')}function Dl(t){return t.replace(uh,function(i,a){return a[0]==="x"||a[0]==="X"?String.fromCharCode(parseInt(a.substr(1),16)):String.fromCharCode(parseInt(a,10))})}function Ll(t){return t.replace(ph,":").replace(fh," ")}function $l(t){for(var e="",i=0,a=t.length;i<a;i++)e+=t.charCodeAt(i)<32?" ":t.charAt(i);return na.trim(e)}function Nl(t){return t=El(t),t=Dl(t),t=Ll(t),t=$l(t),t}function Rl(t){return t=Al(t),t=Pl(t),t}function hh(){return""}function mh(t,e){typeof e!="function"&&(e=function(){});var i=!Array.isArray(t);function a(s){return i?!0:na.indexOf(t,s)!==-1}var r=[],n=!1;return{onIgnoreTag:function(s,o,l){if(a(s))if(l.isClosing){var d="[/removed]",c=l.position+d.length;return r.push([n!==!1?n:l.position,c]),n=!1,d}else return n||(n=l.position),"[removed]";else return e(s,o,l)},remove:function(s){var o="",l=0;return na.forEach(r,function(d){o+=s.slice(l,d[0]),l=d[1]}),o+=s.slice(l),o}}}function yh(t){for(var e="",i=0;i<t.length;){var a=t.indexOf("<!--",i);if(a===-1){e+=t.slice(i);break}e+=t.slice(i,a);var r=t.indexOf("-->",a);if(r===-1)break;i=r+3}return e}function gh(t){var e=t.split("");return e=e.filter(function(i){var a=i.charCodeAt(0);return a===127?!1:a<=31?a===10||a===13:!0}),e.join("")}xe.whiteList=Fl();xe.getDefaultWhiteList=Fl;xe.onTag=rh;xe.onIgnoreTag=ih;xe.onTagAttr=ah;xe.onIgnoreTagAttr=nh;xe.safeAttrValue=sh;xe.escapeHtml=Pl;xe.escapeQuote=Al;xe.unescapeQuote=El;xe.escapeHtmlEntities=Dl;xe.escapeDangerHtml5Entities=Ll;xe.clearNonPrintableCharacter=$l;xe.friendlyAttrValue=Nl;xe.escapeAttrValue=Rl;xe.onIgnoreTagStripAll=hh;xe.StripTagBody=mh;xe.stripCommentTag=yh;xe.stripBlankChar=gh;xe.cssFilter=Ol;xe.getDefaultCSSWhiteList=th;var sa={},tr=Rn;function bh(t){var e=tr.spaceIndex(t),i;return e===-1?i=t.slice(1,-1):i=t.slice(1,e+1),i=tr.trim(i).toLowerCase(),i.slice(0,1)==="/"&&(i=i.slice(1)),i.slice(-1)==="/"&&(i=i.slice(0,-1)),i}function vh(t){return t.slice(0,2)==="</"}function Sh(t,e,i){var a="",r=0,n=!1,s=!1,o=0,l=t.length,d="",c="";e:for(o=0;o<l;o++){var u=t.charAt(o);if(n===!1){if(u==="<"){n=o;continue}}else if(s===!1){if(u==="<"){a+=i(t.slice(r,o)),n=o,r=o;continue}if(u===">"){a+=i(t.slice(r,n)),c=t.slice(n,o+1),d=bh(c),a+=e(n,a.length,d,c,vh(c)),r=o+1,n=!1;continue}if(u==='"'||u==="'")for(var f=1,p=t.charAt(o-f);p.trim()===""||p==="=";){if(p==="="){s=u;continue e}p=t.charAt(o-++f)}}else if(u===s){s=!1;continue}}return r<t.length&&(a+=i(t.substr(r))),a}var wh=/[^a-zA-Z0-9\\_:.-]/gim;function Ih(t,e){var i=0,a=0,r=[],n=!1,s=t.length;function o(f,p){if(f=tr.trim(f),f=f.replace(wh,"").toLowerCase(),!(f.length<1)){var h=e(f,p||"");h&&r.push(h)}}for(var l=0;l<s;l++){var d=t.charAt(l),c,u;if(n===!1&&d==="="){n=t.slice(i,l),i=l+1,a=t.charAt(i)==='"'||t.charAt(i)==="'"?i:xh(t,l+1);continue}if(n!==!1&&l===a){if(u=t.indexOf(d,l+1),u===-1)break;c=tr.trim(t.slice(a+1,u)),o(n,c),n=!1,l=u,i=l+1;continue}if(/\s|\n|\t/.test(d))if(t=t.replace(/\s|\n|\t/g," "),n===!1)if(u=Ch(t,l),u===-1){c=tr.trim(t.slice(i,l)),o(c),n=!1,i=l+1;continue}else{l=u-1;continue}else if(u=Th(t,l-1),u===-1){c=tr.trim(t.slice(i,l)),c=Cl(c),o(n,c),n=!1,i=l+1;continue}else continue}return i<t.length&&(n===!1?o(t.slice(i)):o(n,Cl(tr.trim(t.slice(i))))),tr.trim(r.join(" "))}function Ch(t,e){for(;e<t.length;e++){var i=t[e];if(i!==" ")return i==="="?e:-1}}function xh(t,e){for(;e<t.length;e++){var i=t[e];if(i!==" ")return i==="'"||i==='"'?e:-1}}function Th(t,e){for(;e>0;e--){var i=t[e];if(i!==" ")return i==="="?e:-1}}function Fh(t){return t[0]==='"'&&t[t.length-1]==='"'||t[0]==="'"&&t[t.length-1]==="'"}function Cl(t){return Fh(t)?t.substr(1,t.length-2):t}sa.parseTag=Sh;sa.parseAttr=Ih;var Oh=Nn.FilterCSS,Ct=xe,Ml=sa,Ph=Ml.parseTag,Ah=Ml.parseAttr,ia=Rn;function ra(t){return t==null}function Eh(t){var e=ia.spaceIndex(t);if(e===-1)return{html:"",closing:t[t.length-2]==="/"};t=ia.trim(t.slice(e+1,-1));var i=t[t.length-1]==="/";return i&&(t=ia.trim(t.slice(0,-1))),{html:t,closing:i}}function Dh(t){var e={};for(var i in t)e[i]=t[i];return e}function Lh(t){var e={};for(var i in t)Array.isArray(t[i])?e[i.toLowerCase()]=t[i].map(function(a){return a.toLowerCase()}):e[i.toLowerCase()]=t[i];return e}function kl(t){t=Dh(t||{}),t.stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=Ct.onIgnoreTagStripAll),t.whiteList||t.allowList?t.whiteList=Lh(t.whiteList||t.allowList):t.whiteList=Ct.whiteList,t.onTag=t.onTag||Ct.onTag,t.onTagAttr=t.onTagAttr||Ct.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||Ct.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||Ct.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||Ct.safeAttrValue,t.escapeHtml=t.escapeHtml||Ct.escapeHtml,this.options=t,t.css===!1?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new Oh(t.css))}kl.prototype.process=function(t){if(t=t||"",t=t.toString(),!t)return"";var e=this,i=e.options,a=i.whiteList,r=i.onTag,n=i.onIgnoreTag,s=i.onTagAttr,o=i.onIgnoreTagAttr,l=i.safeAttrValue,d=i.escapeHtml,c=e.cssFilter;i.stripBlankChar&&(t=Ct.stripBlankChar(t)),i.allowCommentTag||(t=Ct.stripCommentTag(t));var u=!1;i.stripIgnoreTagBody&&(u=Ct.StripTagBody(i.stripIgnoreTagBody,n),n=u.onIgnoreTag);var f=Ph(t,function(p,h,b,m,w){var C={sourcePosition:p,position:h,isClosing:w,isWhite:Object.prototype.hasOwnProperty.call(a,b)},I=r(b,m,C);if(!ra(I))return I;if(C.isWhite){if(C.isClosing)return"</"+b+">";var O=Eh(m),P=a[b],A=Ah(O.html,function(M,N){var E=ia.indexOf(P,M)!==-1,R=s(b,M,N,E);return ra(R)?E?(N=l(b,M,N,c),N?M+'="'+N+'"':M):(R=o(b,M,N,E),ra(R)?void 0:R):R});return m="<"+b,A&&(m+=" "+A),O.closing&&(m+=" /"),m+=">",m}else return I=n(b,m,C),ra(I)?d(m):I},d);return u&&(f=u.remove(f)),f};var $h=kl;(function(t,e){var i=xe,a=sa,r=$h;function n(o,l){var d=new r(l);return d.process(o)}e=t.exports=n,e.filterXSS=n,e.FilterXSS=r,(function(){for(var o in i)e[o]=i[o];for(var l in a)e[l]=a[l]})();function s(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}s()&&(self.filterXSS=t.exports)})(Ln,Ln.exports);var Xr=Ln.exports,Nh=function(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},Bl=(function(){function t(e,i){var a=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],article:["style"],aside:["style"],audio:["autoplay","controls","loop","muted","preload"],b:[],blockquote:["style"],br:[],code:["style"],dd:["style"],del:["style"],details:["open","style"],div:["align","aria-hidden","aria-label","style"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],footer:["style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],header:["style"],hr:[],i:[],img:["alt","border","height","src","style","width"],li:[],main:["style"],mark:["style"],nav:["style"],ol:[],p:["style"],pre:["style"],section:["style"],source:["media","src","type"],span:["aria-hidden","aria-label","style"],strong:[],sub:["style"],summary:["style"],sup:["style"],table:["border","cellpadding","cellspacing","height","style","width"],tbody:[],tr:["align","height","style","valign"],td:["align","colspan","height","nowrap","rowspan","style","valign","width"],th:["align","colspan","height","nowrap","rowspan","style","valign","width"],time:["style"],u:[],ul:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.arcgisCSSWhiteList=aa(aa({},Xr.getDefaultCSSWhiteList()),{"align-items":!0,"align-self":!0,flex:!0,"flex-basis":!0,"flex-direction":!0,"flex-flow":!0,"flex-grow":!0,"flex-shrink":!0,"flex-wrap":!0,float:!0,gap:!0,grid:!0,"grid-area":!0,"grid-auto-columns":!0,"grid-auto-flow":!0,"grid-auto-rows":!0,"grid-column":!0,"grid-column-end":!0,"grid-column-start":!0,"grid-row":!0,"grid-row-end":!0,"grid-row-start":!0,"grid-template":!0,"grid-template-areas":!0,"grid-template-columns":!0,"grid-template-rows":!0,"justify-content":!0,"justify-items":!0,"justify-self":!0,"line-height":!0,overflow:!0}),this.allowedProtocols=["http","https","mailto","iform","tel","flow","lfmobile","arcgis-navigator","arcgis-appstudio-player","arcgis-survey123","arcgis-collector","arcgis-workforce","arcgis-explorer","arcgis-trek2there","arcgis-quickcapture","mspbi","comgooglemaps","pdfefile","pdfehttp","pdfehttps","boxapp","boxemm","awb","awbs","gropen","radarscope"],this.arcgisFilterOptions={allowCommentTag:!0,safeAttrValue:function(n,s,o,l){return n==="a"&&s==="href"||(n==="img"||n==="source")&&s==="src"?a.sanitizeUrl(o):Xr.safeAttrValue(n,s,o,l)}},this._entityMap={"&":"&#x38;","<":"&#x3C;",">":"&#x3E;",'"':"&#x22;","'":"&#x27;","/":"&#x2F;"};var r;e&&!i?r=e:e&&i?(r=Object.create(this.arcgisFilterOptions),r.css={whiteList:this.arcgisCSSWhiteList},Object.keys(e).forEach(function(n){if(n==="whiteList")r.whiteList=a._extendObjectOfArrays([a.arcgisWhiteList,e.whiteList||{}]);else if(n==="css"){var s=e.css.whiteList;s!=null&&e.css instanceof Object&&Object.keys(s).forEach(function(o){return r.css.whiteList[o]=s[o]})}else r[n]=e[n]})):(r=Object.create(this.arcgisFilterOptions),r.whiteList=this.arcgisWhiteList,r.css={whiteList:this.arcgisCSSWhiteList}),this.xssFilterOptions=r,this._xssFilter=new Xr.FilterXSS(r)}return t.prototype.sanitize=function(e,i){switch(i===void 0&&(i={}),typeof e){case"number":return isNaN(e)||!isFinite(e)?null:e;case"boolean":return e;case"string":return this._xssFilter.process(e);case"object":return this._iterateOverObject(e,i);default:return i.allowUndefined&&typeof e>"u"?void 0:null}},t.prototype.sanitizeUrl=function(e,i){var a=(i??{}).isProtocolRequired,r=a===void 0?!0:a,n=this._trim(e.substring(0,e.indexOf(":"))),s=e==="/",o=/^#/.test(e),l=n&&this.allowedProtocols.indexOf(n.toLowerCase())>-1;return s||o||l?Xr.escapeAttrValue(e):!n&&!r?Xr.escapeAttrValue("https://".concat(e)):""},t.prototype.sanitizeHTMLAttribute=function(e,i,a,r){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(e,i,a,r):Xr.safeAttrValue(e,i,a,r)},t.prototype.validate=function(e,i){i===void 0&&(i={});var a=this.sanitize(e,i);return{isValid:e===a,sanitized:a}},t.prototype.encodeHTML=function(e){var i=this;return String(e).replace(/[&<>"'\/]/g,function(a){return i._entityMap[a]})},t.prototype.encodeAttrValue=function(e){var i=/^[a-zA-Z0-9]$/;return String(e).replace(/[\x00-\xFF]/g,function(a,r){return i.test(a)?a:"&#x".concat(Number(e.charCodeAt(r)).toString(16),";")})},t.prototype._extendObjectOfArrays=function(e){var i={};return e.forEach(function(a){Object.keys(a).forEach(function(r){Array.isArray(a[r])&&Array.isArray(i[r])?i[r]=i[r].concat(a[r]):i[r]=a[r]})}),i},t.prototype._iterateOverObject=function(e,i){var a=this;i===void 0&&(i={});try{var r=!1,n=void 0;if(Array.isArray(e))n=e.reduce(function(o,l){var d=a.validate(l,i);return d.isValid?o.concat([l]):(r=!0,o.concat([d.sanitized]))},[]);else if(Nh(e)){var s=Object.keys(e);n=s.reduce(function(o,l){var d=e[l],c=a.validate(d,i);return c.isValid?o[l]=d:(r=!0,o[l]=c.sanitized),o},{})}else return i.allowUndefined&&typeof e>"u"?void 0:null;return r?n:e}catch{return null}},t.prototype._trim=function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},t})();function ql(t){var e,i,a=t.length;if(a===1)e=0,i=t[0][1];else{for(var r=0,n=0,s=0,o=0,l,d,c,u=0;u<a;u++)l=t[u],d=l[0],c=l[1],r+=d,n+=c,s+=d*d,o+=d*c;e=(a*o-r*n)/(a*s-r*r),i=n/a-e*r/a}return{m:e,b:i}}function Wl(t){return function(e){return t.b+t.m*e}}function jl(t,e){if(t.length<2)return 1;for(var i=0,a=0;a<t.length;a++)i+=t[a][1];for(var r=i/t.length,n=0,s=0;s<t.length;s++)n+=Math.pow(r-t[s][1],2);for(var o=0,l=0;l<t.length;l++)o+=Math.pow(t[l][1]-e(t[l][0]),2);return 1-o/n}var _l=function(){this.totalCount=0,this.data={}};_l.prototype.train=function(e,i){this.data[i]||(this.data[i]={});for(var a in e){var r=e[a];this.data[i][a]===void 0&&(this.data[i][a]={}),this.data[i][a][r]===void 0&&(this.data[i][a][r]=0),this.data[i][a][r]++}this.totalCount++};_l.prototype.score=function(e){var i={},a;for(var r in e){var n=e[r];for(a in this.data)i[a]={},this.data[a][r]?i[a][r+"_"+n]=(this.data[a][r][n]||0)/this.totalCount:i[a][r+"_"+n]=0}var s={};for(a in i){s[a]=0;for(var o in i[a])s[a]+=i[a][o]}return s};var Vl=function(){this.weights=[],this.bias=0};Vl.prototype.predict=function(e){if(e.length!==this.weights.length)return null;for(var i=0,a=0;a<this.weights.length;a++)i+=this.weights[a]*e[a];return i+=this.bias,i>0?1:0};Vl.prototype.train=function(e,i){if(i!==0&&i!==1)return null;e.length!==this.weights.length&&(this.weights=e,this.bias=1);var a=this.predict(e);if(typeof a=="number"&&a!==i){for(var r=i-a,n=0;n<this.weights.length;n++)this.weights[n]+=r*e[n];this.bias+=r}return this};var l0=607/128,d0=Math.log(Math.sqrt(2*Math.PI));var c0=Math.sqrt(2*Math.PI);var Rh=Math.sqrt(2*Math.PI);function Mh(t){for(var e=t,i=t,a=1;a<15;a++)i*=t*t/(2*a+1),e+=i;return Math.round((.5+e/Rh*Math.exp(-t*t/2))*1e4)/1e4}var kh=[];for(oa=0;oa<=3.09;oa+=.01)kh.push(Mh(oa));var oa;var nu=Yu(zc(),1);var Vt="25.0.0",Lt="arcgis_charts_pie_from_fields_name",Fr="arcgis_charts_pie_from_fields_value",Dy="arcgis_charts_bar_line_from_fields_name",Ly="arcgis_charts_bar_line_from_fields_value",jt={Mean:"Mean",Median:"Median",StdDev:"Standard Deviation",Normal:"Normal Distribution",Trendline:"Trendline"},Uc={Count:"count",Start:"minValue",End:"maxValue"};function $y(t,e){let i=e.errors[t];throw new ze(e.modalHeaders.error,i??e.errors.simpleError)}function Ny(t){return t.axes?.[0]?.valueFormat?.type}function PS(t){return t.intlOptions}function He(t){return t?.type===y.NumberAxisFormat}function AS(t){return He(t)&&t.intlOptions?.style==="percent"}function or(t){return t?.type===y.CategoryAxisFormat}function xi(t){return t?.type===y.DateAxisFormat}function ES(t){let{oldConfig:e,newConfig:i,rotationChanged:a}=t;return a?[!0,!0]:[e.horizontalAxisLabelsBehavior!==i.horizontalAxisLabelsBehavior,e.verticalAxisLabelsBehavior!==i.verticalAxisLabelsBehavior]}function Ry(t){return He(t?.[1]?.valueFormat)&&(t?.[2]?.valueFormat===void 0||He(t[2].valueFormat))}function My(t){return He(t?.[1]?.valueFormat)&&(t?.[2]?.valueFormat===void 0||He(t[2].valueFormat))}function ky(t){return(or(t?.[0]?.valueFormat)||xi(t?.[0]?.valueFormat))&&He(t?.[1]?.valueFormat)&&(t?.[2]?.valueFormat===void 0||He(t[2].valueFormat))}function By(t){return or(t?.[0]?.valueFormat)&&or(t?.[1]?.valueFormat)||xi(t?.[0]?.valueFormat)&&or(t?.[1]?.valueFormat)||xi(t?.[0]?.valueFormat)&&xi(t?.[1]?.valueFormat)}function qy(t){return(or(t?.[0]?.valueFormat)||xi(t?.[0]?.valueFormat))&&He(t?.[1]?.valueFormat)}function Wy(t){return He(t?.[0]?.valueFormat)&&He(t?.[1]?.valueFormat)}function jy(t){return He(t?.[0]?.valueFormat)&&He(t?.[1]?.valueFormat)}function _y(t){return He(t?.[0]?.valueFormat)}function DS(t){let{chartType:e,axesConfig:i,errorStrings:a}=t,r,n;switch(e){case y.GaugeSeries:r=_y,n="invalidValueFormatForGauge";break;case y.ScatterSeries:r=Wy,n="invalidValueFormatForScatterplot";break;case y.HistogramSeries:r=jy,n="invalidValueFormatForHistogram";break;case y.LineSeries:r=Ry,n="invalidValueFormatForLineChart";break;case y.BarSeries:r=My,n="invalidValueFormatForBarChart";break;case y.ComboLineAndBarSeries:r=qy,n="invalidValueFormatForComboBarLineChart";break;case y.BoxPlotSeries:r=ky,n="invalidValueFormatForBoxPlot";break;case y.HeatSeries:r=By,n="invalidValueFormatForHeatChart";break}r!==void 0&&n!==void 0&&(r(i)||$y(n,a))}function LS(t){let{isXAxis:e,chartType:i,valueFormat:a,isAxisForHistogramOverlaySeries:r}=t;return e&&(or(a)||i===y.HistogramSeries&&!r||i===y.BarSeries&&He(a))}var Vy={MonoSelection:"monoSelection",MultiSelection:"multiSelection",MultiSelectionWithCtrlKey:"multiSelectionWithCtrlKey",Zoom:"zoom",None:"none"},$S={MultiAxes:"multi-axes",XAxis:"x-axis",YAxis:"y-axis"},bs={Reject:"reject",RenderUpToTheLimit:"renderUpToTheLimit"},Z={AxisLabels:"axisLabels",GuideLabel:"guideLabel",AxisTitle:"axisTitle",ChartTitle:"chartTitle",ChartSubtitle:"chartSubtitle",DataLabels:"dataLabels",LegendTitle:"legendTitle",LegendText:"legendText",DescriptionText:"descriptionText"},NS=32,ss="arcgis_charts_features_extent",xt={maxRecordCountFactor:5,maxParallelRequests:4,maxRecords:2e3,orderByJSAPIDelimiter:" ",outStatistics:{statisticType:Bs.statisticType,onStatisticField:"OBJECTID",outStatisticFieldName:"arcgis_charts_outStatisticFieldName_default_key"},uniqueIdsName:"arcgisChartsUniqueIds",heatChartLowerBoundaryAlias:"lowerBoundary5x1",heatChartUpperBoundaryAlias:"upperBoundary5x1"},zy=["EXPR_1","Expr1","expr1","EXPR1"],RS=1,Ge=.7,Uy=25,lu=[156,156,156,255],Hy=[156,156,156,255],MS=Zt.Solid,kS=2,$a={defaultGroupOfSlicesId:"arcgis_charts_group_of_slices",sliceIdPrefix:"arcgis-charts-slice-id",undefinedSliceId:"arcgis-charts-slice-id-undefined",nullSliceId:"arcgis-charts-slice-id-null",emptySliceId:"arcgis-charts-slice-id-empty"},ka="arcgis_charts_box_plot_category",Or={valueField:"arcgis_charts_heat_chart_value",xField:"arcgis_charts_heat_chart_x",yField:"arcgis_charts_heat_chart_y"},BS={min:1,max:10},Gy=[[31,120,180,255],[166,206,227,255],[51,160,44,255],[178,223,138,255],[227,26,28,255],[251,154,153,255],[255,127,0,255],[253,191,111,255],[106,61,154,255],[202,178,214,255]],qS=[[90,180,255,255],[165,220,255,255],[90,215,80,255],[165,245,150,255],[255,80,85,255],[255,170,170,255],[255,165,70,255],[255,205,130,255],[155,110,255,255],[220,195,255,255]],Qy=[[104,104,104,255],[51,124,235,255],[132,0,168,255],[156,156,156,255]],WS=[[104,104,104,255],[51,124,235,255],[175,90,255,255],[156,156,156,255]],jS=[255,255,255,255],_S=[43,43,43,255],VS=[0,122,194,255],zS=[255,255,255,255],US=[0,0,0,255],Aa=[150,150,150,178.5];function ft(t){let{colorIndex:e,opacity:i,histogramOverlays:a}=t,r=Math.max(0,e??0),n=[...a===!0?Qy:Gy],[s,o,l,d]=n[r%n.length],c=i!==void 0?i*255:d;return[s,o,l,c]}function du(t){return[0,0,0,(t??Ge)*255]}function HS(){return{type:y.CursorCrosshair,verticalLineVisible:!1,horizontalLineVisible:!1,style:{type:de.SLS,style:Zt.Dot,color:[211,211,211,255],width:1}}}function Ba(t=1){return[Math.floor(Math.random()*256),Math.floor(Math.random()*256),Math.floor(Math.random()*256),t*255]}function se(t){let e={family:"Arial, Helvetica, sans-serif",size:10};switch(t){case Z.ChartTitle:e.size=18;break;case Z.AxisTitle:e.size=14;break;case Z.LegendText:e.size=12;break;case Z.LegendTitle:e.size=13;break;case Z.DescriptionText:e.size=11;break}return e}function cu(t="",e=se(),i){let a=oe.Center;return(i===Z.DataLabels||i===Z.GuideLabel)&&(a=void 0),{type:de.TS,color:du(),text:t,font:e,horizontalAlignment:a}}function K(t){let{text:e,visible:i,font:a,type:r}=t??{text:"",visible:!0,font:se()};return{type:y.Text,visible:i,content:cu(e,a,r)}}function Oi(t){let e=t?.useRandomColor??!1,i=t?.useRampColor,a=t?.width??1,r=t?.isHistogramOverlay,n=t?.color??du(1);return e?n=Ba():i!==void 0&&(r===!0?n=ft({colorIndex:i.colorIndex,histogramOverlays:r}):n=ft({colorIndex:i.colorIndex})),t?.opacity!==void 0&&(n[3]=t.opacity),{type:de.SLS,style:Zt.Solid,color:n,width:a}}function Zy(){return{type:y.CategoryAxisFormat,characterLimit:11}}function GS(){return{type:y.DateAxisFormat,intlOptions:{}}}function us(){return{type:y.NumberAxisFormat,intlOptions:{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:3,useGrouping:!0}}}function QS(){return{type:y.NumberAxisFormat,intlOptions:{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:2}}}function ZS(){return{type:y.NumberAxisFormat,intlOptions:{style:"percent",minimumFractionDigits:0,maximumFractionDigits:0}}}function os(t="Category Axis"){let e=K({text:t,visible:!0,font:se(Z.AxisTitle)});e.content.horizontalAlignment=oe.Center,e.content.verticalAlignment=be.Middle;let i=K({text:t,visible:!0,font:se(Z.AxisLabels)});return{type:y.Axis,visible:!0,title:e,labels:i,valueFormat:Zy(),lineSymbol:Oi({color:lu})}}function Ea(t="Value Axis"){let e=K({text:t,visible:!0,font:se(Z.AxisTitle)}),i=K({text:t,visible:!0,font:se(Z.AxisLabels)});return e.content.verticalAlignment=be.Middle,e.content.horizontalAlignment=oe.Center,{type:y.Axis,visible:!0,title:e,labels:i,valueFormat:us(),lineSymbol:Oi({color:lu})}}function lr(){return{type:y.Legend,visible:!0,title:K({text:"",visible:!0,font:se(Z.LegendTitle)}),body:cu("",se(Z.LegendText)),position:pi.Right}}function Fa(t){return{type:y.Overlay,visible:!0,created:!1,symbol:Oi({useRampColor:{colorIndex:t},isHistogramOverlay:!0})}}function dr(){return[255,255,255,255]}function zt(t){return t.utilsStrings.chartType.chart}function Ut(){return`Chart ${Date.now()}`}function JS(t,e=!1){return{type:de.SFS,style:Et.Solid,color:e?Ba(Ge):ft({colorIndex:t??0,opacity:Ge})}}function Jy(t=0){return{type:de.SMS,style:At.Circle,color:ft({colorIndex:t,opacity:Ge}),size:5}}function Yy(t){return{type:de.SLS,style:Zt.Solid,color:ft({colorIndex:t,opacity:Ge}),width:2}}function Ky(t=!1){return{type:de.SMS,style:At.Circle,color:t?Ba(Ge):ft({colorIndex:0,opacity:Ge}),size:7}}function YS(){return{type:y.SizePolicy,field:"",scaleType:_s.Linear,minSize:5,maxSize:30}}function Xy(t=!1){return{type:y.Overlays,trendLine:{type:y.Overlay,created:!1,visible:!0,symbol:{type:de.SLS,style:Zt.Solid,color:t?Ba():ft({colorIndex:1}),width:2}}}}function eg(t,e){let i=t.countSeries;return{type:y.HeatSeries,id:i,name:i,y:"",x:"",dataLabels:K({text:"",visible:!1,font:se(Z.DataLabels)}),query:{outStatistics:[{statisticType:pe.Count,onStatisticField:e??"ObjectID",outStatisticFieldName:`${pe.Count}_${e}_0`.toUpperCase()}],groupByFieldsForStatistics:[]},emptyCells:{symbol:{type:de.SFS,style:Et.Solid,color:Aa},text:t.utilsStrings.null}}}function tg(){return{type:y.ScatterSeries,id:y.ScatterSeries,name:y.ScatterSeries,x:"",y:"",markerSymbol:Ky(),overlays:Xy(),dataLabels:K({text:"",visible:!1,font:se(Z.DataLabels)})}}function Er(t,e){let i=[],a=t.xAxis,r=t.utilsStrings.statistics.count,n,s,o=Oi({opacity:Uy});switch(e===y.HeatSeries?s=os(r):(s=Ea(r),s.grid=o),e){case y.BarSeries:case y.HeatSeries:{n=os(a);break}case y.ScatterSeries:{n=Ea(a),n.grid=o;break}case y.RadarSeries:case y.LineSeries:case y.HistogramSeries:{n=Ea(a);break}case y.BoxPlotSeries:{n=os("");break}}return n!==void 0&&i.push(n,s),i}function rg(){return{type:y.GaugeNeedle,symbol:{type:de.SFS,color:[0,0,0,200]}}}function ig(t){let e=[],i=t.xAxis,a=Ea(i);return a.needle=rg(),e.push(a),e}function ag(t){let e=t.commonStrings,i=t.objectIDField??"ObjectID",a=`${pe.Count}_${i}_0`.toUpperCase(),r=e.countSeries;return{type:y.LineSeries,id:r,name:r,query:{outStatistics:[{statisticType:pe.Count,onStatisticField:i,outStatisticFieldName:a}],groupByFieldsForStatistics:[]},x:"",y:a,lineSymbol:Yy(t.seriesIndex),markerSymbol:Jy(t.seriesIndex),dataLabels:K({text:"",visible:!1,font:se(Z.DataLabels)}),temporalBinning:{unit:Ce.Day,size:0,timeAggregationType:Wr.Start,trimIncompleteTimeInterval:!0,nullPolicy:Ri.Interpolate}}}function KS(t){return{...ag(t),type:y.RadarSeries}}function ng(t){return{type:de.SFS,style:Et.Solid,color:ft({colorIndex:t,opacity:Ge})}}function XS(t){let e=t.objectIDField??"*",i=t.commonStrings,a=`${pe.Count}_Y_0`.toUpperCase(),r=i.countSeries;return{type:y.BarSeries,id:r,name:r,query:{outStatistics:[{statisticType:pe.Count,onStatisticField:e,outStatisticFieldName:a}],groupByFieldsForStatistics:[]},x:"",y:a,fillSymbol:ng(t.seriesIndex),dataLabels:K({text:"",visible:!1,font:se(Z.DataLabels),type:Z.DataLabels})}}function ew(t,e){let i=t.countSeries;return{name:i,type:y.BoxPlotSeries,id:i,fillSymbol:{type:de.SFS,style:Et.Solid,color:ft({colorIndex:e,opacity:Ge})},query:{},x:ka,y:""}}function sg(){return{type:y.PieTick,visible:!0,lineSymbol:Oi({width:1,color:Hy})}}function og(){return{type:de.SFS,style:Et.Solid}}function tw(t,e){let i=`${pe.Count}_${e}_0`.toUpperCase(),a=t.countSeries;return{type:y.PieSeries,id:a,name:a,query:{outStatistics:[{statisticType:pe.Count,onStatisticField:e??"ObjectID",outStatisticFieldName:i}],groupByFieldsForStatistics:[]},x:"",y:i,fillSymbol:og(),dataLabels:K({text:"",visible:!1,font:se(Z.DataLabels),type:Z.DataLabels}),startAngle:-90,endAngle:270,dataLabelsCharacterLimit:11,displayCategoryOnDataLabel:!0,displayNumericValueOnDataLabel:!1,displayPercentageOnDataLabel:!0,numericValueFormat:{...us(),intlOptions:{minimumFractionDigits:1,maximumFractionDigits:1}},percentValueFormat:{...us(),intlOptions:{minimumFractionDigits:1,maximumFractionDigits:1}},ticks:sg()}}function rw(t){let e=t.objectIDField??"ObjectID",i=`${pe.Count}_${e}_0`.toUpperCase(),a="Series0";return{type:y.GaugeSeries,id:a,name:a,query:{outStatistics:[{statisticType:pe.Count,onStatisticField:e,outStatisticFieldName:i}]},x:""}}function Ti(){return!1}function iw(t,e=Ut()){return{version:Vt,type:y.Chart,id:e,colorMatch:!0,rotated:Ti(),orderOptions:{data:{orderType:et.Category,orderBy:ke.Ascending}},title:K({text:zt(t),visible:!0,font:se(Z.ChartTitle)}),subtitle:K(),footer:K({text:"",visible:!0,font:se(Z.DescriptionText)}),background:dr(),axes:Er(t,y.BarSeries),series:[],legend:lr()}}function aw(t,e=Ut()){return{version:Vt,type:y.Chart,id:e,rotated:Ti(),colorMatch:!0,orderOptions:{data:{orderType:et.Category,orderBy:ke.Ascending}},title:K({text:zt(t),visible:!0,font:se(Z.ChartTitle)}),subtitle:K(),footer:K({text:"",visible:!0,font:se(Z.DescriptionText)}),background:dr(),series:[],legend:lr(),axes:Er(t,y.BoxPlotSeries),standardizeValues:!0,showOutliers:!1}}function nw(t,e=Ut()){return{version:Vt,type:y.Chart,id:e,colorMatch:!0,rotated:Ti(),orderOptions:{data:{orderType:et.Category,orderBy:ke.Ascending}},title:K({text:zt(t),visible:!0,font:se(Z.ChartTitle)}),subtitle:K(),footer:K({text:"",visible:!0,font:se(Z.DescriptionText)}),background:dr(),axes:Er(t,y.LineSeries),series:[],legend:lr()}}function sw(t,e=Ut()){return{version:Vt,type:y.Chart,id:e,colorMatch:!0,orderOptions:{data:{orderType:et.Category,orderBy:ke.Ascending}},title:K({text:zt(t),visible:!0,font:se(Z.ChartTitle)}),subtitle:K(),footer:K({text:"",visible:!0,font:se(Z.DescriptionText)}),background:dr(),axes:Er(t,y.RadarSeries),series:[],legend:lr()}}function ow(t,e=Ut()){return{version:Vt,type:y.Chart,id:e,colorMatch:!0,orderOptions:{data:{orderType:et.YValue,orderBy:ke.Descending}},title:K({text:zt(t),visible:!0,font:se(Z.ChartTitle)}),subtitle:K(),footer:K({text:"",visible:!0,font:se(Z.DescriptionText)}),background:dr(),series:[],legend:{...lr(),displayNumericValue:!1,displayPercentage:!0}}}function lw(t,e=Ut()){return{version:Vt,type:y.Chart,id:e,colorMatch:!0,title:K({text:zt(t),visible:!0,font:se(Z.ChartTitle)}),series:[],axes:ig(t)}}function dw(t,e=Ut()){return{version:Vt,type:y.Chart,id:e,colorMatch:!0,title:K({text:zt(t),visible:!0,font:se(Z.ChartTitle)}),subtitle:K(),footer:K({text:"",visible:!0,font:se(Z.DescriptionText)}),background:dr(),axes:Er(t,y.ScatterSeries),series:[tg()],legend:lr()}}function cw(t,e){return{version:Vt,type:y.Chart,id:Ut(),title:K({text:zt(t),visible:!0,font:se(Z.ChartTitle)}),background:dr(),axes:Er(t,y.HeatSeries),series:[eg(t,e)],legend:{...lr(),position:pi.Bottom}}}function lg(){return{type:y.Overlays,mean:Fa(1),median:Fa(2),standardDeviation:Fa(3),comparisonDistribution:Fa(4)}}function dg(){return{type:de.SFS,style:Et.Solid,color:ft({colorIndex:0,opacity:Ge})}}function cg(){return{type:y.HistogramSeries,id:y.HistogramSeries,name:y.HistogramSeries,visible:!0,dataTooltipVisible:!0,dataTooltipReverseColor:!1,assignToSecondValueAxis:!1,x:"",binCount:32,overlays:lg(),dataTransformationType:ot.None,fillSymbol:dg(),dataLabels:K({text:"",visible:!1,font:se(Z.DataLabels)})}}function uw(t,e=Ut()){return{version:Vt,type:y.Chart,id:e,colorMatch:!0,title:K({text:zt(t),visible:!0,font:se(Z.ChartTitle)}),subtitle:K(),footer:K({text:"",visible:!0,font:se(Z.DescriptionText)}),background:dr(),axes:Er(t,y.HistogramSeries),series:[cg()],legend:lr()}}var ls={behaviorAfterLimit:bs.Reject,maxCategoryCount:Number.NaN,maxBarChartSeriesCount:100,maxBarUniqueSeriesCountTotal:1e4,maxBarTwoSeriesCountPerSeries:1e3,maxBarTwoSeriesCountTotal:2e3,maxBarThreePlusSeriesCountPerSeries:100,maxBarThreePlusSeriesCountTotal:2e3,maxScatterPointsBeforeAggregation:1e4,maxScatterPointsAfterAggregation:1e4,maxLineChartSeriesCount:100,maxLineUniqueSeriesCountTotal:1e4,maxLineTwoSeriesCountPerSeries:5e3,maxLineTwoSeriesCountTotal:1e4,maxLineThreePlusSeriesCountPerSeries:1e3,maxLineThreePlusSeriesCountTotal:1e4,maxPieChartSliceCountTotal:300,maxGaugeByFeaturesLimit:50,maxBoxPlotSeriesCount:100,maxBoxUniqueSeriesCountTotal:1e4,maxBoxTwoSeriesCountPerSeries:1e3,maxBoxTwoSeriesCountTotal:2e3,maxBoxThreePlusSeriesCountPerSeries:100,maxBoxThreePlusSeriesCountTotal:2e3,maxBoxPlotOutlierLimit:1e4,maxHeatChartCellLimit:1e4};function vs(t){let e={...ls};return t!==void 0&&Object.keys(ls).forEach(i=>{let a=i;e[a]=t[a]??ls[a]}),e}function pw(){return{maxScatterCellsPerQuery:500,maxScatterCellsPerQueryForStandard:175,maxElementsPerSelectionQuery:25,maxOIDsPerSelectionQuery:2e3,maxOperandsPerWhereClause:50}}function fw(t,e){let i;switch(t){case pe.Average:{i=e.utilsStrings.statistics.mean;break}case pe.ContinuousPercentile:{i=e.utilsStrings.statistics.median;break}case pe.Sum:{i=e.utilsStrings.statistics.sum;break}case pe.Minimum:{i=e.utilsStrings.statistics.minimum;break}case pe.Maximum:{i=e.utilsStrings.statistics.maximum;break}case pe.Variance:{i=e.utilsStrings.statistics.variance;break}case pe.DiscretePercentile:{i=e.utilsStrings.statistics.discretePercentile;break}case pe.NoAggregation:{i=e.utilsStrings.statistics.noAggregation;break}case pe.Count:default:{i=e.utilsStrings.statistics.count;break}}return i}function hw(t,e){let i;switch(t){case Wr.End:{i=e.timeAggregationTypes.end;break}case Wr.Start:{i=e.timeAggregationTypes.start;break}default:i="";break}return i}function ug(){return Xe.Side}function mw(t){return t.utilsStrings.notAvailable}var pg=0,fg="_arcgis_charts_outliers",hg="_arcgis_charts_z_score",yw=[210,210,210,255*Ge],gw=" percentage ";var j={aria:{defaultChartItemRole:"figure"},title:{marginBottom:8,wrap:!0},subtitle:{marginBottom:10,wrap:!0},rotated:!1,legendProperties:{legendLabels:{marginLeft:5,marginRight:5,truncate:!1,applyOnClones:!0,wrap:!0,maxWidth:200},valueLabels:{wrap:!0,maxWidth:200},legendTitle:{wrap:!0,maxWidth:220,marginLeft:10,marginRight:10,marginTop:10},legendMarkersSize:14,legendLabelReducedOpacity:.5,rectangleMarkerRadius:3,roundedMarkerRadius:12,legendPaddingRightWithScrollbarVisible:10,maxHeight:100,marginTop:2,marginBottom:2,marginLeft:0,marginRight:0,paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0,position:pi.Right},footer:{wrap:!0,horizontalCenter:oe.Center,verticalCenter:be.Middle,align:oe.Center},axisLabel:{rotation:0,align:oe.Center,horizontalCenter:oe.Center,verticalCenter:be.Top,dy:5,paddingTop:5,paddingRight:5,paddingLeft:5,maxWidth:Number.NaN},axisTickLength:5,rotatedAxisLabel:{rotation:-45,horizontalCenter:oe.Left,verticalCenter:be.Bottom,dy:6,paddingTop:5,paddingLeft:0,paddingRight:5},histogramAxisLabel:{rotation:0,horizontalCenter:oe.Center,verticalCenter:be.Middle,dy:0,dx:0,paddingLeft:3,paddingRight:3},xAxisTitleLabel:{align:oe.Center,valign:be.Middle,rotation:0,fontSize:10,wrap:!0},yAxisTitleLabel:{align:oe.Center,valign:be.Middle,rotation:270,wrap:!0},titleLabel:{align:oe.Center,wrap:!0},subtitleLabel:{align:oe.Center,wrap:!0},horizontalSurfaceGuideLabels:{horizontalCenter:oe.Right,align:oe.Right,verticalCenter:be.Middle,wrap:!0},horizontalLineGuideLabels:{horizontalCenter:oe.Right,align:oe.Right,verticalCenter:be.Top,wrap:!0},verticalSurfaceGuideLabels:{horizontalCenter:oe.Center,verticalCenter:be.Top,valign:be.Top},verticalLineGuideLabels:{horizontalCenter:oe.Right,verticalCenter:be.Bottom,valign:be.Top,wrap:!0,rotation:90},guideAbove:!1,cursorCrosshair:{style:{type:de.SLS,style:Zt.Dash,color:[0,0,0,102],width:1},horizontalLineVisible:!1,verticalLineVisible:!1},gauge:{innerRadius:80,radius:80,startAngle:-180,endAngle:180,innerLabelToInnerChartRatio:.5,axisLabelToInnerChartRatio:.13,innerLabelAutoMinFontSize:14,innerLabelAutoMaxFontSize:100,axisLabelAutoMinFontSize:14,axisLabelAutoMaxFontSize:40,gaugeMinGridDistance:1,axisMinimum:0,axisMaximum:100,numberOfLabelIntervals:5,numberOfTicksBetweenTwoLabels:4,maximumNumberOfLabelIntervals:24,paddingTop:10,paddingBottom:10,paddingRight:5,paddingLeft:5},gaugeTicksLength:7,gaugeInnerLabel:{horizontalCenter:oe.Center,verticalCenter:be.Middle},gaugeNeedle:{startWidth:10,endWidth:1,innerRadius:25,displayPin:!1},gaugeFirstLabelId:"arcgis_charts_gauge_first_label",gaugeLastLabelId:"arcgis_charts_gauge_last_label",headerContainer:{layout:"vertical",width:"100%",paddingBottom:5},footerContainer:{layout:"vertical",width:"100%",paddingTop:5,paddingBottom:15},paddingMinSize:0,marginMinSize:0,chartPaddingMinSize:7,chartPaddingRightWhenLegendNotOnRight:15,chartAndLegendContainer:{paddingTop:0},chartContainer:{paddingBottom:0,paddingTop:15},chartContainerPaddingTopWhenRotated:5,dataLabelInitialize:{strokeWidth:0,applyOnClones:!0},dataLabel:{align:oe.Center,horizontalCenter:oe.Center,valign:be.Bottom,verticalCenter:be.Top,dy:-3},dataLabelRotated:{align:oe.Right,horizontalCenter:oe.Right,valign:be.Middle,verticalCenter:be.Middle,dx:2},dataLabelStackedRotated:{align:oe.Center,horizontalCenter:oe.Center,valign:be.Middle,verticalCenter:be.Middle},dataLabelStackedNonRotated:{align:oe.Center,horizontalCenter:oe.Center,valign:be.Middle,verticalCenter:be.Middle},dataLabelNegative:{paddingTop:5,paddingRight:5},rotatedChartPadding:{paddingTop:2,paddingRight:2},scatterplotSeries:{strokeOpacity:0,r2:Number.NaN,trendLinePoints:[{},{}]},histogramSeries:{normalDistribNumberOfPoints:100},lineSeries:{strokeWidth:2,lineSmoothed:!1,lineSmoothedKind:qs.Bezier,showArea:!1,areaOpacity:.25,markerVisible:!0,rotated:!1,stackedType:Xe.Side,stackNegativeValuesToBaseline:!0,marker:{markerBigSize:7,markerSizeThresholdForTooltipDisplay:5,markerStyle:At.Circle}},buffer:!1,treatZeroValueAs:1e-4,elementLimitForSmoothRendering:1e3,defaultStatParameterValue:.5,pieChart:{dataLabels:{maxWidth:100,wrap:!1},dataLabelsOffset:10,dataLabelsInside:!1,chartRadius:80,chartOptimizedRadius:70,innerRadius:pg,min:-90,max:270,displayCategoryOnLegend:!0,displayCategoryOnTooltip:!0,displayCategoryOnDataLabel:!0,displayNumericValueOnLegend:!1,displayNumericValueOnDataLabel:!0,displayNumericValueOnTooltip:!0,displayPercentageOnLegend:!1,displayPercentageOnDataLabel:!1,displayPercentageOnTooltip:!0,sliceGrouping:{sliceId:$a.defaultGroupOfSlicesId,percentageThreshold:0,fillSymbol:{type:de.SFS,color:[210,210,210,255*Ge]}},defaultPadding:0,alignDataLabels:!1,ticksOpacity:1,minimumSize:20,technicalFieldSliceId:"arcgis_charts_slice_id",technicalFieldSlicePercent:"arcgis_charts_slice_percent",technicalFieldGroupedSlices:"arcgis_charts_grouped_slices"},pieSliceCustomLabelName:"customLabel",yAxisLabelMaxWidth:100,xAxisLabelMaxWidth:75,axisLabelPadding:1.5,categoryAxisLabelPadding:3,seriesSort:ke.Ascending,technicalSortingFieldBySum:"arcgis_charts_category_sum",technicalSortingFieldByPercent:"arcgis_charts_category_first_series_percent",technicalFieldSplitByField:"arcgis_charts_split_by_field",color:[0,0,0,255],chartEllipsis:"...",backgroundColor:[255,255,255,255],grayColor:Aa,xAxisMinGridDistance:120,xCategoryAxisMinGridDistance:40,yAxisMinGridDistance:40,yCategoryAxisMinGridDistance:20,secondRotatedValueAxisMinGridDistance:80,staggerMinGridDistance:40,shortestMinGridDistance:20,maxNumberOfXAxisLabelsInWrapModeForDateAxis:15,maxNumberOfXAxisLabelsInWrapMode:20,lineWidth:1,loaderRotationSpeed:400,loaderIntervalTimeout:400,loaderLabelFontSize:20,selectionTheme:{selectedElementsTheme:{elementOutlineColor:[0,255,255,255],elementOutlineWidth:5}},columnTooltipPosition:"pointer",guideTooltipPosition:"pointer",markerTooltipPosition:"fixed",sliceTooltipPosition:"fixed",patternLineProperties:{width:5,height:5,strokeWidth:1,tileSize:50,diagonalTileSize:1200},patternRectProperties:{rectWidth:9,rectHeight:9,width:10,height:10,strokeWidth:.3,fillOpacity:0},originalCategoryValue:"arcgis_charts_original_category_value",originalYCategoryValue:"arcgis_charts_original_category_y_value",originalDateValue:"arcgis_charts_original_date_value",dateBinningRange:"arcgis_charts_bin_range",originalServerBinningRange:"arcgis_charts_server_bin_range",dateBinModel:"arcgis_charts_bin_model",xAxisField:"arcgis_charts_axis_field",nullValue:"arcgis_charts_null",queryMaxFloatPrecision:10,dateFormatUTC:{timeZone:"UTC",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1},dayDefaultFormat:{day:"numeric",month:"short"},weekDefaultFormat:{day:"numeric",month:"short"},rendererOtherValue:"arcgisChartsrendererOtherValue",rendererSymbolField:"arcgis_charts_renderer_symbol",scatterplotAggregationFields:{dataContextXMinField:"arcgis_charts_xmin",dataContextXMaxField:"arcgis_charts_xmax",dataContextYMinField:"arcgis_charts_ymin",dataContextYMaxField:"arcgis_charts_ymax",dataContextCountDistinctX:"distinctX",dataContextCountDistinctY:"distinctY",queryNumberOfFeatures:"numberOfFeatures",queryNumberOfAggregatedFeatures:"numberOfAggregatedFeatures",xStep:"xStep",yStep:"yStep",rowCount:"rowCount",columnCount:"columnCount",realGridSize:"realGridSize"},dataTooltipVisible:!0,dataTooltipStyle:{outline:{type:de.SLS,color:[255,255,255,255],width:1}},dataTooltipStyleReversed:{color:[255,255,255,255],outline:{type:de.SLS,width:3}},tooltipWidth:300,axisLabelOveredOpacity:.5,generalFontSize:10,actionMode:Vy.MultiSelectionWithCtrlKey,debounceTime:100,chartDefaultPaddingRight:0,htmlEmptyContent:"<p></p>",boxPlot:{boxPlotCategory:"arcgis_charts_box_plot_category",boxPlotOutliersSuffix:"_arcgis_charts_outliers",boxPlotOutliersVisibility:!1,boxPlotStandardizeValuesVisibility:!1,boxPlotOutliersSize:4,boxPlotLineWidth:2,boxPlotOutlierId:"is_arcgis_charts_outlier",boxPlotMeanLineMarkerId:"is_arcgis_charts_mean_marker",boxPlotWhiskersColor:[153,153,153,178.5],boxPlotTooltipLabelWidth:250},binTemporalData:!0,lastTemporalBin:"is_arcgis_charts_last_bin",options:{hideEmptySeries:!0,replaceNoValueCategoryWithZero:!0,autoInverseDataLabelTextColor:!1},nullCategory:{text:"null",symbol:{type:de.SFS,color:Aa,outline:{type:de.SLS,style:Zt.Solid,color:Aa,width:1}}},classBreaks:{breaksCount:5}},Dr={LegendItemVisibilityChange:"arcgisChartsJSLegendItemVisibilityChange",RenderingComplete:"arcgisChartsJSRenderingComplete",SeriesColorsChange:"arcgisChartsJSSeriesColorChange",AxesMinMaxChange:"arcgisChartsJSAxesMinMaxChange",SelectionComplete:"arcgisChartsJSSelectionComplete",TooManySelectedElements:"arcgisChartsJSTooManySelectedElements",SeriesOrder:"arcgisChartsJSSeriesOrder"};function Lr(t){return{detail:t,composed:!0,cancelable:!0,bubbles:!0}}function bw(t,e){e&&e.dispatchEvent(new window.CustomEvent(Dr.LegendItemVisibilityChange,Lr(t)))}function vw(t){t&&t.dispatchEvent(new window.CustomEvent(Dr.RenderingComplete,Lr()))}function Sw(t){let{data:e,htmlContainer:i}=t;i&&i.dispatchEvent(new window.CustomEvent(Dr.SelectionComplete,Lr(e)))}function ww(t){t&&t.dispatchEvent(new window.CustomEvent(Dr.TooManySelectedElements,Lr()))}function Iw(t){let{data:e,htmlContainer:i,chartId:a,colorMatchApplied:r}=t;i&&i.dispatchEvent(new window.CustomEvent(Dr.SeriesColorsChange,Lr({chartId:a,data:e,colorMatchApplied:r})))}function Cw(t,e){e&&e.dispatchEvent(new window.CustomEvent(Dr.AxesMinMaxChange,Lr(t)))}function mg(t){let{data:e,htmlContainer:i}=t;i&&e&&i.dispatchEvent(new window.CustomEvent(Dr.SeriesOrder,Lr(e)))}function yg(t){return t!==void 0&&t!==Et.Solid&&t!==Et.Null}function xw(t,e){let i="",a=(e??0)/2,r=0-a,n=0+a,s=0-a,o=0+a;switch(t){case At.Circle:i=`M ${r},0 a ${a},${a} 0 1,0 ${a*2},0 a ${a},${a} 0 1,0 ${-a*2},0`;break;case At.Cross:i=`M ${r},0 L ${n},0 M 0,${s} L 0,${o} E`;break;case At.Diamond:i=`M ${r},0 L 0,${s} L ${n},0 L 0,${o} L ${r},0 Z`;break;case At.Square:i=`M ${r},${o} L ${r},${s} L ${n},${s} L ${n},${o} L ${r},${o} Z`;break;case At.Triangle:i=`M ${r},${o} L 0,${s} L ${n},${o} L ${r},${o} Z`;break;case At.X:i=`M ${r},${o} L ${n},${s} M ${r},${s} L ${n},${o} E`;break}return i}function uu(t){return t?.[$a.defaultGroupOfSlicesId]===!0}function Tw(t,e){let i=t?.filter(a=>!uu(a));return!yr(i,e)}var ri={...j,titleAndSubtitlePaddingBottom:5,chartPadding:5,footerContainer:{...j.footerContainer,paddingTop:0,paddingBottom:0},headerContainer:{...j.headerContainer,paddingBottom:18},chartContainer:{...j.chartContainer},dataLabel:{...j.dataLabel,verticalCenter:"bottom"},scrollbarPadding:12,zIndexes:{guide:100,scatterplotTrendLine:2,bulletMarkers:1,axisLineLayer:30},verticalSurfaceGuideLabels:{wrap:!0},verticalLineGuideLabels:{wrap:!0,rotation:90},horizontalSurfaceGuideLabels:{wrap:!0},horizontalLineGuideLabels:{wrap:!0},overlayId:{scatterplotTrendLine:"arcgis_charts_scatter_plot_trendline",histogramMean:"arcgis_charts_histogram_mean",histogramMedian:"arcgis_charts_histogram_median",histogramStdDev:"arcgis_charts_histogram_std_dev",histogramNormalDistribution:"arcgis_charts_histogram_normal_distribution"},axisLabelSpacing:{verticalAxisLabelSidePadding:8,horizontalAxisLabelPaddingTop:6},legendPadding:20,heatChart:{gradientHeatRules:{minColor:[255,255,200,255],maxColor:[255,0,0,255],outsideRangeLowerColor:[250,250,250,255],outsideRangeUpperColor:[0,0,255,255]},legend:{position:pi.Bottom,chartPadding:40,legendPadding:20,width:70,bottomHeight:20,topHeight:50,titleHeight:10,titlePadding:10,minMaxLabelPadding:3},emptyCells:{symbol:{type:de.SFS,style:Et.Solid,color:j.grayColor},text:"null"},includeLeapDay:!1},heatChartLabelPadding:{paddingTop:2},heatChartFirstDayOfWeek:7,pieChartDataLabel:{minWidth:30},focusableThreshold:500};function Fw(t){let e;return t?.[0]!==void 0&&(e=t.reduce((i,a)=>({...i,xmin:Math.min(i.xmin,a.xmin),xmax:Math.max(i.xmax,a.xmax),ymin:Math.min(i.ymin,a.ymin),ymax:Math.max(i.ymax,a.ymax)}),t[0])),e}function Hc(t){let{value:e,dataContext:i,specificField:a,keepNullValues:r=!1,useRendererLabel:n=!1,config:s}=t,o=e,{originalCategoryValue:l,originalDateValue:d}=j;if(i!==void 0){let c=n?Pg(i):void 0;a!==void 0&&i[a]!==void 0?o=i[a]:c!==void 0?o=c:i[d]!==void 0?o=i[d]:i[l]!==void 0?o=i[l]:i[Lt]!==void 0&&(o=i[Lt]),!r&&o===null&&(o="null",s?.series?.[0].type===y.BarSeries&&(o=s.series?.[0]?.nullCategory?.text??ri.nullCategory?.text??o))}return o}function gg(t){return t?.[j.originalCategoryValue]}function bg(t){let{arrayToSort:e,orderBy:i,sortingField:a,forceAscendingOrder:r,isNonAggregated:n,sortByCategory:s,preferLabel:o,isPieOrByFieldsChart:l}=t;if(e!==void 0&&e.length>1){let d=i===ke.Descending&&r!==!0;e.sort((c,u)=>{let f=0,p=c[a];s===!0&&!l&&(p=Hc({value:`${c[a]?.toString()}`,dataContext:c,specificField:o?j.xAxisField:void 0}));let h=u[a];return s===!0&&!l&&(h=Hc({value:`${u[a]?.toString()}`,dataContext:u,specificField:o?j.xAxisField:void 0})),n===!0&&d&&s===!0&&(p=Number.isNaN(Number.parseFloat(`${p?.toString()}`))?p:Number.parseFloat(p),h=Number.isNaN(Number.parseFloat(`${h?.toString()}`))?h:Number.parseFloat(h)),s===!0&&(c[j.originalCategoryValue]===null||p===null)||c[$a.defaultGroupOfSlicesId]===!0?f=1:s===!0&&(u[j.originalCategoryValue]===null||h===null)||u[$a.defaultGroupOfSlicesId]===!0?f=-1:typeof p=="string"&&typeof h=="string"?(f=p.localeCompare(h,void 0,{numeric:!0}),d&&(f*=-1)):p===void 0?f=d?-1:1:h===void 0?f=d?1:-1:p!==null&&h!==null&&(p>h?f=d?-1:1:p<h&&(f=d?1:-1)),f})}}function Ow(t){let{arrayToSort:e,orderBy:i,sortingField:a,fieldList:r,isByFieldsChart:n,preferLabel:s}=t;e!==void 0&&e.length>1&&!Tt(a)&&i!==void 0&&i.length>0&&e.sort((o,l)=>{let d=o[a];s&&n&&typeof d=="string"&&(d=ps(r,d));let c=i.indexOf(d?.toString()??"");c===-1&&(c=i.length);let u=l[a];s&&n&&typeof u=="string"&&(u=ps(r,u));let f=i.indexOf(u?.toString()??"");return f===-1&&(f=i.length),c-f})}function vg(t){let{statsMap:e,dataContext:i,chartLimits:a}=t,r=!1;if(e!==void 0){let{maxScatterPointsBeforeAggregation:n}=vs(a),{queryNumberOfFeatures:s}=j.scatterplotAggregationFields;r=(e.get(s)??Number.NaN)>=n}else i!==void 0&&(r=j.scatterplotAggregationFields.dataContextXMinField in i);return r}function Sg(t){let e=!0,i=J(t.series);if(i===y.BarSeries||i===y.LineSeries||i===y.ComboLineAndBarSeries){let a=Oe(t.series);e=a!==F.BarAndLineNoAggregation&&a!==F.BarAndLineSplitByNoAggregation}return e}function wg(t){return Oe(t.series)!==F.PieNoAggregation}function Pw(t){let{dataContext:e,chartConfig:i,chartLimits:a}=t,r=!0;if(i!==void 0)switch(J(i.series)){case y.BarSeries:case y.LineSeries:case y.ComboLineAndBarSeries:r=Sg(i);break;case y.ScatterSeries:r=vg({dataContext:e,chartLimits:a});break;case y.PieSeries:r=wg(i);break}return r}function Aw(t,e){let i=t;switch(e){case ot.Log:i=`log(${t})`;break;case ot.Sqrt:i=`power(CAST(${t} AS FLOAT),0.5)`;break}return i}function Ew(t){let e=new Date(t).valueOf();return Number.isNaN(e)||(e=new Intl.DateTimeFormat("en-US",j.dateFormatUTC).format(t).replace(",","")),e}function Dw(t){let{dataToConvert:e,x:i,y:a,fieldList:r}=t,n=[];if(e){let s=e[ss];Object.entries(e).forEach(([o])=>{if(o!==""&&o!==ss&&o in e){let l={[i]:ps(r,o),[a]:e[o],[j.xAxisField]:o,[j.originalCategoryValue]:o};s!==void 0&&(l[ss]=s),e[`${j.rendererSymbolField}_${o}`]!==void 0&&(l[j.rendererSymbolField]=e[`${j.rendererSymbolField}_${o}`]),n.push(l)}})}return n}function Lw(t,e){let i=!0;if(t!==void 0&&t.length>1&&!Tt(e)){let a=0,r=0,n=0;t.forEach(s=>{let o=s[e];!Ug(o)||o===0?n+=1:o>0?a+=1:r+=1}),i=n===t.length||a>=0&&r===0||a===0&&r>=0}return i}function Oa(t){let{countTotal:e,countPerSeries:i,numberOfSeries:a}=t,r,n=[];return typeof e=="number"&&Number.isFinite(e)&&n.push(e),typeof i=="number"&&Number.isFinite(i)&&n.push(i*a),n.length>0&&(r=Math.min(...n)),r}function $w(t,e){let i,{maxBarChartSeriesCount:a,maxBarUniqueSeriesCountTotal:r,maxBarTwoSeriesCountPerSeries:n,maxBarTwoSeriesCountTotal:s,maxBarThreePlusSeriesCountPerSeries:o,maxBarThreePlusSeriesCountTotal:l,maxLineChartSeriesCount:d,maxLineUniqueSeriesCountTotal:c,maxLineTwoSeriesCountPerSeries:u,maxLineTwoSeriesCountTotal:f,maxLineThreePlusSeriesCountPerSeries:p,maxLineThreePlusSeriesCountTotal:h,maxPieChartSliceCountTotal:b,maxGaugeByFeaturesLimit:m}=vs(e),w=J(t.series),C=t.series.length===0?1:t.series.length,I=Oe(t.series);switch(w){case y.ComboLineAndBarSeries:case y.BarSeries:C<=a&&(C===1?i=r:C===2?i=Oa({countTotal:s,countPerSeries:n,numberOfSeries:C}):C>2&&(i=Oa({countTotal:l,countPerSeries:o,numberOfSeries:C})));break;case y.LineSeries:C<=d&&(C===1?i=c:C===2?i=Oa({countTotal:f,countPerSeries:u,numberOfSeries:C}):C>2&&(i=Oa({countTotal:h,countPerSeries:p,numberOfSeries:C})));break;case y.PieSeries:i=b;break;case y.GaugeSeries:i=m;break;case y.ScatterSeries:case y.HistogramSeries:case y.BoxPlotSeries:}return(I===F.BarAndLineNoAggregation||I===F.BarAndLineMultiFields)&&i!==void 0&&(i=Math.ceil(i/C)),i}function Nw(t,e){let i=t;if(Number.isFinite(t)){let{factor:a,offset:r}=e??{};Number.isFinite(a)&&(i*=a),Number.isFinite(r)&&(i+=r)}return i}function Ig(t){let e=!1;if(t!==void 0){let i=t.replace(" ",""),a=/^%(0*100{1,1}\.?((?:\.)0*)?$)|(^%0*\d{0,2}\.?((?:\.)\d*)?)$/u,r=/^(0*100{1,1}\.?((?:\.)0*)?%$)|(^0*\d{0,2}\.?((?:\.)\d*)?%)$/u;e=a.test(i)||r.test(i)}return e}function Rw(t){let e;if(Ig(t)){let i=/%(\d{1,3}(.\d+)?)$/u,a=/(\d{1,3}(.\d+)?)%$/u,r=t.replace(" ",""),n=i.exec(r)?.[1]??a.exec(r)?.[1];n!==void 0&&(e=Number(n))}return e}function Cg(t){let{stringToTruncate:e,characterLimit:i,ellipsis:a=j.chartEllipsis}=t,r=e;return typeof i=="number"&&Number.isFinite(i)&&i>0&&i<e.length&&(r=e.slice(0,i),r=`${r}${a}`),r}function Mw(t,e=":"){return t?`\u200F${e}`:`\u200E${e}`}function kw(t){return e=>{let i=typeof e!="string"?e?.toString()??"":e;return!Tt(i)&&i!==j.htmlEmptyContent&&(i=Cg({stringToTruncate:i,characterLimit:t})),i}}function xg(t){let e=/[[]/gu,i=/[\]]/gu,a=/[{]/gu,r=/[}]/gu,n=/[']/gu;return t=t.replace(e,"[["),t=t.replace(i,"]]"),t=t.replace(a,"{{"),t=t.replace(r,"}}"),t=t.replace(n,"''"),t}function Tg(t,e){let i="";return t!==void 0&&(i=`${e==="amChartsV5"?"fontStyle":"font-style"}:${t};`),i}function Fg(t,e){let i="";return t===!0&&(i=`${e==="amChartsV5"?"letterSpacing":"letter-spacing"}:1px;`),i}function Bw(t){let{textSymbol:e,placeholderString:i,format:a,axisLabelsBehavior:r,defaults:n}=t,s=Tg(e?.font?.style,a),o=Fg(e?.kerning,a),l=i??e?.text??"";if(a==="html"){let{wrap:d,maxWidth:c}=n??{};r===Ws.Wrap&&(d=!0,c=c??j.xAxisLabelMaxWidth);let u=d===!0&&Number.isFinite(c)?`max-width: ${c}px; word-break: break-word;`:"";l=`<p style="margin:0;${s}${o}${u}">${l}</p>`}else l=xg(l),(s!==""||o!=="")&&(l=`[${s}${o}]${l}[/]`);return l}function Og(t){return t?t.replace(/[A-Z]/gu,e=>`-${e.toLowerCase()}`):void 0}var qw=[y.BarSeries,y.BoxPlotSeries,y.LineSeries,y.PieSeries,y.HistogramSeries,y.ScatterSeries],Ww=1,jw={PNG:"png"},Gc={ChartRenderer:1,LayerRenderer:2};function _w(t){let{chartConfig:e,queryObject:i}=t,a=!1;if(e.chartRenderer)a=!0;else{let{series:r}=e,n=J(r),s=Oe(r),o=xs(e),l=Eu({seriesConfig:o,queryObject:i}),d=Se(i)?.renderer;switch(d?.type){case We.Simple:a=n===y.HistogramSeries||n===y.ScatterSeries||s===F.BarAndLineMonoField||s===F.BoxPlotMonoField||s===F.BoxPlotMultiFields||s===F.BoxPlotMonoFieldAndCategory||s===F.BarAndLineNoAggregation&&r.length===1&&!l;break;case We.UniqueValue:{let c=d?.field,u=Ai(o.query?.where),{x:f}=o;a=(s===F.BoxPlotMonoFieldAndSplitBy||s===F.BoxPlotMultiFieldsAndSplitBy||s===F.BoxPlotMonoFieldAndCategoryAndSplitBy||s===F.BarAndLineSplitByNoAggregation||s===F.BarAndLineSplitBy)&&c===u||(s===F.BoxPlotMonoFieldAndCategory||s===F.PieFromCategory||s===F.BarAndLineMonoField)&&c===f||s===F.BarAndLineNoAggregation||s===F.PieNoAggregation||n===y.ScatterSeries}break;case We.PieChart:a=s===F.PieFromFields||s===F.BarAndLineFromFields||s===F.BarAndLineMultiFields||s===F.BarAndLineMonoField||s===F.BoxPlotMonoField||s===F.BoxPlotMultiFields||s===F.BoxPlotMonoFieldAndCategory||s===F.BoxPlotMultiFieldsAndCategory;break;case We.ClassBreaks:a=n===y.HeatSeries||n===y.ScatterSeries||s===F.BarAndLineNoAggregation||s===F.PieNoAggregation;break;case We.Dictionary:case We.DotDensity:case We.Heatmap:break}}return a}function Vw(t,e){return Og(t?.type)??e?.type}function Pg(t){let e=j.rendererSymbolField,i=e in t?e:void 0;if(!i){let a=t[j.originalCategoryValue];i=Object.keys(t).find(r=>{let n=t[r];return r.includes(e)&&n?.label&&n?.uniqueValue===a}),i||(i=Object.keys(t).find(r=>r.includes(e))??"")}return t[i]?.label}function Ag(t){return t?.type!==void 0&&(t.color!==void 0||t.label!==void 0||t.style!==void 0||t.outline!==void 0)}function pu(t){let{symbolField:e,dataItem:i,rendererSymbol:a,rendererOrigin:r}=t,n=!1;if(!Ag(a))delete i[e];else{let s={...a};s.color!==void 0&&r===Gc.LayerRenderer&&(s.color[3]=Ge*255),r===Gc.LayerRenderer&&(delete s.style,delete s.outline,delete s.label),i[e]=s,n=!0}return n}function Eg(t){let{renderer:e,seriesConfig:i,chartSubType:a,dataItem:r,rendererOrigin:n}=t,s,o=!1,l=J(i),{outline:d,attributes:c}=e;return c.forEach(u=>{let{field:f}=u,{color:p,label:h}=u,b;Array.isArray(p)&&p?.length===4?b=p:p&&"toRgba"in p&&(b=p.toRgba());let m=!1,w=!0;switch(l){case y.BarSeries:case y.LineSeries:case y.ComboLineAndBarSeries:case y.RadarSeries:if(a!==F.BarAndLineFromFields){let C=i.find(I=>I.query?.outStatistics?.[0]?.onStatisticField===f);C!==void 0&&"y"in C?f=[C.y].flat()[0]:f=""}m=a!==F.BarAndLineFromFields||f===r[j.originalCategoryValue];break;case y.PieSeries:m=a===F.PieFromFields&&f===r[j.originalCategoryValue];break;case y.BoxPlotSeries:a===F.BoxPlotMonoField||a===F.BoxPlotMonoFieldAndCategory?m=f===i[0].y:f&&(a===F.BoxPlotMultiFields||a===F.BoxPlotMultiFieldsAndCategory)&&(m=i.map(C=>C.y).flat().includes(f)),w=!1;break}m&&b&&(s={type:de.SMS,color:b,label:w&&h?h:void 0},d!=null&&(s.outline=d),pu({dataItem:r,symbolField:a===F.BarAndLineFromFields||a===F.PieFromFields?j.rendererSymbolField:`${j.rendererSymbolField}_${f}`,rendererSymbol:s,rendererOrigin:n})&&(o=!0))}),{rendererSymbol:s,colorMatchApplied:o}}function Dg(t){let{seriesConfig:e,chartSubType:i,rendererType:a}=t,r=j.rendererSymbolField;if(a===We.UniqueValue){if(yu(i)){let n=ht({where:e.query?.where,keepSurroundingQuotes:!1,escape:!1});n===null?r=j.nullValue:i===F.BarAndLineSplitBy&&typeof e.y=="string"?r=e.y:i===F.BarAndLineSplitByNoAggregation&&typeof e.y=="string"?r=`${e.y}_${n}`:r=`${n}`}}else if(a===We.PieChart)switch(i){case F.BoxPlotMultiFields:r=Array.isArray(e.y)?e.y.flat():e.y;break;case F.BarAndLineMonoField:case F.BarAndLineMultiFields:case F.BoxPlotMonoField:case F.BoxPlotMonoFieldAndCategory:case F.BoxPlotMultiFieldsAndCategory:r=e.y;break}return r}function fu(t){let{seriesConfig:e,chartSubType:i,rendererType:a,dataItem:r}=t,n=Dg({seriesConfig:e,chartSubType:i,rendererType:a});return n instanceof Array&&e.type===y.BoxPlotSeries&&a===We.PieChart&&r!==void 0&&(n=n.find(s=>s===r[ka])??n[0]),n=n!==j.rendererSymbolField?`${j.rendererSymbolField}_${n.toString()}`:n,n}function zw(t){let{chartRenderer:e,queryObject:i}=t,a=e!==void 0?{...Se(i),renderer:ms.fromJSON(e)}:Se(i);return new yy({layer:a})}async function Uw(t){let{seriesConfig:e,dataItem:i,renderer:a,rendererType:r,rendererOrigin:n,chartSubType:s,splitByField:o,graphicTemplate:l,rendererFieldNames:d,mapAttributesToSymbol:c}=t,u,f=!1;if(r===We.PieChart){let p=Eg({renderer:a,seriesConfig:e,chartSubType:s,dataItem:i,rendererOrigin:n});u=p.rendererSymbol,f=p.colorMatchApplied}else if(!uu(i)){let{x:p}=e[0],h=new Map;o&&o.trim()!==""?e.forEach(b=>{if(b.type===y.BarSeries||b.type===y.LineSeries||b.type===y.BoxPlotSeries||b.type===y.RadarSeries){let m=fu({seriesConfig:b,chartSubType:s,rendererType:r,dataItem:i}),w=ht({where:b.query?.where,normalize:!0,keepSurroundingQuotes:!1,escape:!1});h.set(m,{...i,[o]:w})}}):e[0].type===y.HeatSeries&&r===We.ClassBreaks?h.set(j.rendererSymbolField,{[Or.valueField]:i[Or.valueField]}):h.set(j.rendererSymbolField,{...i,[p]:gg(i)});try{let b=Array.from(h.entries()),m=l.clone();m.layer=l.layer;let w=a?.uniqueValueInfos;for(let C=0;C<b.length;C+=1){let[I,O]=b[C];if(Qc({mode:"encode",x:p,splitByField:o,attributes:O}),d&&d.length>0&&Object.keys(O).forEach(P=>{d.includes(P)||delete O[P]}),m.attributes=O,c?.has(JSON.stringify(O)))u=c.get(JSON.stringify(O));else{if(u=(await ai.getDisplayedSymbol(m))?.toJSON(),u!=null){if(u.color===void 0){let A=(await ai.getDisplayedColor(m))?.toJSON();A&&(u.color=A.length===4?A:[...A,255])}let P=await ai.getLegendLabel(m);P!=null&&P!==""&&(u.label=P,u.uniqueValue=w?.find(A=>A.label===P)?.value??void 0)}c?.set(JSON.stringify(O),u)}Qc({mode:"revert",x:p,splitByField:o,attributes:i}),pu({dataItem:i,symbolField:I,rendererSymbol:u,rendererOrigin:n})&&(f=!0)}}catch{}}return{rendererSymbol:u,colorMatchApplied:f}}function Qc(t){let{splitByField:e,attributes:i,x:a,mode:r}=t;[a,e??""].forEach(n=>{i[n]===(r==="encode"?null:j.nullValue)&&(i[n]=r==="encode"?j.nullValue:null)})}function Lg(t){let{dataItem:e,seriesConfig:i,chartSubType:a,colorMatch:r,rendererType:n}=t,s;if(r&&e!==void 0){let o=fu({seriesConfig:i,chartSubType:a,rendererType:n,dataItem:e});s=e[o]}return s}function Hw(t){let{seriesSymbol:e,rendererSymbol:i,colorIndex:a}=t,r=i?.color??e.color;r=r??ft({colorIndex:a,opacity:Ge});let n={...e,color:r},s=n.type===de.SFS&&yg(n.style);return i?.type===e.type&&i.style!==void 0&&!s&&(n.style=i.style),n.type!==de.SLS&&(n.outline={type:de.SLS,style:i?.outline?.style??n.outline?.style,width:i?.outline?.width??n.outline?.width,color:i?.outline?.color??n.outline?.color??i?.color}),n}function $g(t){let e=[];return t&&(e=t.series.flatMap(i=>i.query?.outStatistics?.map(a=>a.onStatisticField)).filter(i=>i!==void 0),e.length===0&&(e=_t(t.series))),e}function Gw(t,e){let i=!1;if(t&&e&&e.length>0&&hu(t)){let a=Mg(t),r=xs(t);a?i=$g(t).some(n=>e.includes(n)):i=e.includes(r.x)}return i}function Qw(t){let e=[];if(t&&"type"in t&&typeof t.type=="string")switch(t.type){case"uniqueValue":case"unique-value":"field1"in t&&typeof t.field1=="string"&&(e=[t.field1]);break;case"classBreaks":case"class-breaks":"field"in t&&typeof t.field=="string"&&(e=[t.field]);break;case"pieChart":case"pie-chart":"attributes"in t&&Array.isArray(t.attributes)&&(e=t.attributes.map(i=>i.field));break}return e}function Na(t){return J(t?.series)===y.HeatSeries}function Pr(t){return J(t?.series)===y.BoxPlotSeries}function Ng(t,e){return t[0].dataTransformationType!==e[0].dataTransformationType}function Rg(t,e){return t[0].binCount!==e[0].binCount}function Zw(t,e){let i=!0,a=J(t?.series),r=J(e?.series);return a&&a!==r&&(i=a===y.ComboLineAndBarSeries&&(r===y.BarSeries||r===y.LineSeries)||r===y.ComboLineAndBarSeries&&(a===y.BarSeries||a===y.LineSeries)||a===y.BarSeries&&r===y.LineSeries||a===y.LineSeries&&r===y.BarSeries),i}function Zc(t,e){return t!==void 0&&e!==void 0&&e>0}function Jw(t){let{chartConfig:e,queryObject:i,chartData:a}=t,r=[],n=Oe(e.series),s=hu(e),o=Se(i),l=e.chartRenderer??o?.renderer?.toJSON();return r=e.series.map((d,c)=>{let u=J([d]),f;return(u===y.BarSeries||u===y.LineSeries||u===y.RadarSeries)&&(d.type===y.BarSeries?f=d.fillSymbol?.color:(d.type===y.RadarSeries||d.type===y.LineSeries)&&(f=d.lineSymbol?.color),s?f=Lg({dataItem:a[0],seriesConfig:d,chartSubType:n,colorMatch:s,rendererType:l?.type})?.color:f===void 0&&(f=ft({colorIndex:c}))),f}).filter(d=>d!==void 0),r}function Yw(t){return t!==F.PieNoAggregation&&t!==F.BarAndLineNoAggregation&&t!==F.BarAndLineSplitByNoAggregation}function Mg(t){let e=Oe(t.series);return e===F.BarAndLineFromFields||e===F.PieFromFields||e===F.BoxPlotMonoField||e===F.BoxPlotMultiFields||e===F.BoxPlotMonoFieldAndSplitBy||e===F.BoxPlotMultiFieldsAndSplitBy}function Jc(t){return Pr(t)?t?.showMean??!1:!1}function Kw(t){return Pr(t)?t?.showOutliers:void 0}function Xw(){return`{name} {${j.originalCategoryValue}} {dateY} {valueX} {dateX} {valueY}`}var he={Min:"min",FirstQuartile:"first_quartile",Median:"median",ThirdQuartile:"third_quartile",Max:"max",IQR:"iqr",Average:"avg",StandardDeviation:"stddev",Outlier:"outlier"},ze=class extends Error{constructor(e,i,a){super(i),this.name=e,this.details=a}},Qe={Default:"defaultError",LayerLoadFailure:"layerLoadFailure",QueryFeaturesError:"queryFeaturesError",ChartDisposed:"ChartDisposeError",LayerFieldsNotFound:"layerFieldsNotFound",LayerNotSupported:"layerNotSupported"},F={NonSpecific:"nonSpecific",BarAndLineNoAggregation:"barAndLineNoAggregation",BarAndLineMonoField:"barAndLineMonoField",BarAndLineMultiFields:"barAndLineMultiFields",BarAndLineFromFields:"barAndLineFromFields",BarAndLineSplitBy:"barAndLineSplitBy",BarAndLineSplitByNoAggregation:"barAndLineSplitByNoAggregation",PieNoAggregation:"pieNoAggregation",PieFromCategory:"pieFromCategory",PieFromFields:"pieFromFields",BoxPlotMonoField:"boxPlotMonoField",BoxPlotMultiFields:"boxPlotMultiFields",BoxPlotMonoFieldAndCategory:"boxPlotMonoFieldAndCategory",BoxPlotMultiFieldsAndCategory:"boxPlotMultiFieldsAndCategory",BoxPlotMonoFieldAndSplitBy:"boxPlotMonoFieldAndSplitBy",BoxPlotMultiFieldsAndSplitBy:"boxPlotMultiFieldsAndSplitBy",BoxPlotMonoFieldAndCategoryAndSplitBy:"boxPlotMonoFieldAndCategoryAndSplitBy"},e1={SelectionByClick:"SelectionByClick",SelectionByRange:"SelectionByRange",ProgrammaticSelection:"ProgrammaticSelection",ClearSelection:"ClearSelection"};function hu(t){return t?.colorMatch??!1}function Yc(t){let e=Ti();if(t!==void 0){let i=J(t.series);(i===y.BarSeries||i===y.LineSeries||i===y.ComboLineAndBarSeries||i===y.BoxPlotSeries)&&(e=t.rotated??Ti())}return e}function t1(t){return t?.map(e=>e.type)??[]}function Ss(t){let e=t?.stackedType;if(e===void 0&&t!==void 0){let i=J(t.series);(i===y.BarSeries||i===y.LineSeries||i===y.ComboLineAndBarSeries||i===y.RadarSeries)&&(e=ug())}return e}function kg(t){let e=t;return e=e.replace(/'/gu,"''"),e=e.replace(/[/\\"|[\]\\]/gu,"\\$&"),e}function Bg(t){let e=!1;if(typeof t!="number"){let i=new Intl.Segmenter;e=Array.from(i.segment(t),a=>a.segment).some(a=>a.charCodeAt(0)>255)}return e}function qg(t){let e=t,i="";t.startsWith("'")&&t.endsWith("'")&&(e=t.slice(1,-1),i="'"),e=e.replace(/'/gu,"''");let a="";return Bg(e)&&(a="N"),`${a}${i}${e}${i}`}function mu(t){let{value:e,keepSurroundingQuotes:i,escape:a}=t,r=e?.trim();if(!Tt(r)){let n="";r.startsWith("'")&&r.endsWith("'")&&(r=r.slice(1,-1),i&&(n="'")),a!==!1&&(r=kg(r)),r=`${n}${r}${n}`}return r}function r1(t){let{count:e,seriesCount:i,chartType:a,chartLimits:r}=t,{behaviorAfterLimit:n}=r??{},s=!0;if(n!==bs.RenderUpToTheLimit){let{maxBarChartSeriesCount:o,maxBarUniqueSeriesCountTotal:l,maxBarTwoSeriesCountPerSeries:d,maxBarTwoSeriesCountTotal:c,maxBarThreePlusSeriesCountPerSeries:u,maxBarThreePlusSeriesCountTotal:f,maxLineChartSeriesCount:p,maxLineUniqueSeriesCountTotal:h,maxLineTwoSeriesCountPerSeries:b,maxLineTwoSeriesCountTotal:m,maxLineThreePlusSeriesCountPerSeries:w,maxLineThreePlusSeriesCountTotal:C,maxPieChartSliceCountTotal:I,maxGaugeByFeaturesLimit:O,maxBoxPlotSeriesCount:P,maxBoxUniqueSeriesCountTotal:A,maxBoxTwoSeriesCountTotal:M,maxBoxTwoSeriesCountPerSeries:N,maxBoxThreePlusSeriesCountTotal:E,maxBoxThreePlusSeriesCountPerSeries:R,maxHeatChartCellLimit:k}=vs(r);switch(a){case y.BarSeries:case y.ComboLineAndBarSeries:{let L=e/i;i<=o?i===0?s=!0:i===1?s=e<=l:i===2?s=e<=c&&L<=d:i>2&&(s=e<=f&&L<=u):s=!1}break;case y.LineSeries:case y.RadarSeries:{let L=e/i;i<=p?i===0?s=!0:i===1?s=e<=h:i===2?s=e<=m&&L<=b:i>2&&(s=e<=C&&L<=w):s=!1}break;case y.PieSeries:s=e<=I;break;case y.BoxPlotSeries:{let L=e/i;i<=P?i===0?s=!0:i===1?s=e<=A:i===2?s=e<=M&&L<=N:i>2&&(s=e<=E&&L<=R):s=!1}break;case y.HeatSeries:s=e<=k;break;case y.GaugeSeries:s=e<=O;break}}return s}function ps(t=[],e){let i=t.find(a=>a.name===e)?.alias;return i!==""?i??e:e}function i1(t=[],e){let i=t.find(a=>a.alias===e)?.name;return i!==""?i??e:e}function a1(t){let e=!1;switch(J(t)){case y.HeatSeries:case y.PieSeries:e=!0;break;case y.BarSeries:case y.LineSeries:case y.RadarSeries:case y.ComboLineAndBarSeries:case y.BoxPlotSeries:e=t.length>1;break;case y.HistogramSeries:case y.ScatterSeries:{let i=t[0];e=i.overlays!==void 0&&Object.values(i.overlays).some(a=>a.created===!0);break}}return e}function Wg(t){let e=!0;return J(t.series)===y.ScatterSeries&&(e=t.series.length===1),e}function jg(t){let e=!0;return J(t.series)===y.HistogramSeries&&(e=t.series.length<=1&&t.series[0].type===y.HistogramSeries&&(!("dataTransformationType"in t.series[0])||t.series[0].dataTransformationType!==void 0&&Object.values(ot).includes(t.series[0].dataTransformationType))),e}function _g(t){let e=!0;return J(t.series)===y.PieSeries&&(e=t.series.length<=1),e}function Vg(t,e){let i=J(e?.series),a=i!==void 0&&t.includes(i);if(a&&e!==void 0)switch(i){case y.HistogramSeries:a=jg(e);break;case y.ScatterSeries:a=Wg(e);break;case y.PieSeries:a=_g(e);break}return a}function Tt(t){return t==null||typeof t=="string"&&t.trim()===""}function Da(t,e){let i=e.find(a=>a in t);return{isInItem:i!==void 0,expr:i}}function zg(t){return Da(t,zy)}function n1(t,e){let i;switch(t){case Ce.Second:i=e.seconds??"";break;case Ce.Minute:i=e.minutes??"";break;case Ce.Hour:i=e.hours??"";break;case Ce.Day:i=e.days??"";break;case Ce.Week:i=e.weeks??"";break;case Ce.Month:i=e.months??"";break;case Ce.Year:i=e.years??"";break;default:i="";break}return i}function s1(t){let e;switch(t){case jt.Mean:e=1;break;case jt.Median:e=2;break;case jt.StdDev:e=3;break;case jt.Normal:default:e=0;break}return e}function o1(t,e){if(e!==void 0){let{seriesId:i,overlayType:a,visible:r}=t.detail,n;switch(a){case jt.Mean:e.series[0].type===y.HistogramSeries&&(n=e.series[0].overlays?.mean);break;case jt.Median:e.series[0].type===y.HistogramSeries&&(n=e.series[0].overlays?.median);break;case jt.StdDev:e.series[0].type===y.HistogramSeries&&(n=e.series[0].overlays?.standardDeviation);break;case jt.Normal:e.series[0].type===y.HistogramSeries&&(n=e.series[0].overlays?.comparisonDistribution);break;case jt.Trendline:e.series[0].type===y.ScatterSeries&&(n=e.series[0].overlays?.trendLine);break;default:n=e.series.find(s=>s.id===i);break}n!==void 0&&(n.visible=r)}}function l1(t){return new Bl().sanitize(t)}function Ug(t){return t!=null&&!Number.isNaN(t)&&Number.isFinite(t)}function Hg(t,e){let i={fieldToSort:""};if(!Tt(t)){let a=t.trim(),r=a.split(" ").at(-1)?.toUpperCase();r===ke.Ascending||r===ke.Descending?i={fieldToSort:a.substring(0,a.lastIndexOf(" ")),orderBy:r}:(i={fieldToSort:a},e!==!1&&(i.orderBy=ke.Ascending))}return i}function yu(t){return t===F.BarAndLineSplitBy||t===F.BarAndLineSplitByNoAggregation||t===F.BoxPlotMonoFieldAndSplitBy||t===F.BoxPlotMultiFieldsAndSplitBy||t===F.BoxPlotMonoFieldAndCategoryAndSplitBy}function d1(t){return t?.selectionPixelTarget?Qa(t.selectionPixelTarget.pixelRanges):t?.selectionOIDs===void 0||t.selectionOIDs.length===0}function c1(t={arrayA:[],arrayB:[],getKey:e=>e}){let{arrayA:e,arrayB:i,getKey:a}=t;if(i.length===0||e.length===0)return e;let r=new Map;i.forEach((l,d)=>{let c=a(l);r.set(c,d)});let n=[],s=[];e.forEach((l,d)=>{let c=a(l);r.has(c)&&(n.push(d),s.push(l))}),s.sort((l,d)=>{let c=a(l),u=a(d);return r.get(c)-r.get(u)});let o=[...e];return n.forEach((l,d)=>{o[l]=s[d]}),o}function u1(t,e){return(t===F.BarAndLineNoAggregation||t===F.BarAndLineSplitByNoAggregation)&&e!==void 0?e.x:j.xAxisField}function p1(t){let{r:e,g:i,b:a,a:r=1}=t,n=Math.round((1-r)*255+r*e),s=Math.round((1-r)*255+r*i),o=Math.round((1-r)*255+r*a);return .299*n+.587*s+.114*o>128}var Ar=new Map;function Gg(t,e){let i=ye.now().offset/60,a=ye.now().setZone(t)??i,r=a.offset/60,n=e?a.setZone(e).offset/60:0;return r-n}function gu(t){let{outTimeZone:e=Intl.DateTimeFormat().resolvedOptions().timeZone,dataTimeZone:i="UTC",runsOnClientQueryEngine:a}=t,r="",n=Gg(e,i);if(n!==0)if(a)r=`${n>0?"+":"-"}1*INTERVAL '${Math.abs(n)}' HOUR `;else{let s=Math.abs(n%1),o=Math.round(s*60);n=Math.floor(n),r=n>0?`+INTERVAL '${Math.abs(n)}:${o!==0?o:"00"}:01' HOUR TO SECOND`:`-INTERVAL '${Math.abs(n)-(o!==0?0:1)}:${o!==0?String(o-1):"59"}:59' HOUR TO SECOND`}return r}function f1(t){let{dateFieldName:e,unit:i,runsOnClientQueryEngine:a}=t,r=gu({runsOnClientQueryEngine:a}),n=`EXTRACT(YEAR FROM ${e} ${r})`,s=`EXTRACT(MONTH FROM ${e} ${r})`,o=`EXTRACT(DAY FROM ${e} ${r})`,l=`EXTRACT(HOUR FROM ${e} ${r})`,d=`EXTRACT(MINUTE FROM ${e} ${r})`,c=`EXTRACT(SECOND FROM ${e} ${r})`,u=[];switch(i){case Ce.Second:u=[n,s,o,l,d,c];break;case Ce.Minute:u=[n,s,o,l,d];break;case Ce.Hour:u=[n,s,o,l];break;case Ce.Day:case Ce.Week:case Ce.Month:case Ce.Year:u=[n,s,o];break}return u}function Qg(t){return t!==void 0&&"type"in t&&t.type==="imagery"}function Zg(t){return t!==void 0&&"type"in t&&t.type==="imagery-tile"}function Jg(t){return t==="imagery"||t==="imagery-tile"}function mt(t){return t!==void 0&&"type"in t&&Jg(t.type)}function Yg(t){let e=t?.iLayer?.layerType;return e==="ArcGISImageServiceLayer"||e==="ArcGISTiledImageServiceLayer"}function Kg(t,e){if(mt(t))throw new Error(e??"Raster layer is not supported by this operation.")}function h1(t){return t!==void 0&&(!("url"in t)||!t.url)}function qa(t){return t!==void 0&&"view"in t&&"layer"in t&&t.layer.type==="feature"}function Xg(t){return t!==void 0&&"type"in t&&t.type==="feature"}function bu(t){return t!==void 0&&"type"in t&&t.type==="subtype-sublayer"}function eb(t){return Xg(t)||bu(t)}function Ze(t){return bu(t)?t.parent??void 0:t}function tb(t){return t?.capabilities?.query?.supportsDistance||Ze(t)?.sourceJSON?.advancedQueryCapabilities?.supportsQueryWithDistance===!0}function rb(t){return t?.capabilities?.queryAttributeBins?.supportsFixedInterval===!0&&t?.capabilities?.queryAttributeBins?.supportsStackBy}function ib(t,e){return t!==void 0&&(qa(t)||"capabilities"in t&&t.capabilities?.queryAttributeBins?.supportsDate===!0&&(Tt(e)||t.capabilities?.queryAttributeBins?.supportsStackBy))}function m1(t){let e=!1,i=Ze(Se(t))?.sourceJSON;if(i){let a=i.queryBinsCapabilities?.supportsFixedIntervalBin,r=i.queryBinsCapabilities?.supportedStatisticTypes,n=[pe.Maximum,pe.Count].every(s=>r?.includes(s.toUpperCase())||r?.includes(s.toLowerCase()));e=a&&n}return e}function y1(t){let e;return qa(t)?e=t.layer:e=t,e}function Se(t){let e;return qa(t)?e=t.layer:e=t,e}function ab(t){let e=!1,i=Ze(t)?.sourceJSON?.advancedQueryCapabilities?.supportedSpatialAggregationStatistics??[],a=t?.capabilities?.query.supportedSpatialAggregationStatistics??{};return e=i.includes("EnvelopeAggregate")||"envelope"in a&&a.envelope===!0,e}function g1(t){let{chartConfig:e,queryObject:i}=t,a;if(i){let r=Se(i);Qg(r)?a={id:r.id,layerType:"ArcGISImageServiceLayer"}:Zg(r)?a={id:r.id,layerType:"ArcGISTiledImageServiceLayer"}:a={id:r.id,layerType:"ArcGISFeatureLayer"},r.url&&(a.url=r.url)}return{...e,iLayer:a}}function nb(t){let e;switch(t){case gr.Feet:e="esriSRUnit_Foot";break;case gr.Miles:e="esriSRUnit_StatuteMile";break;case gr.NauticalMiles:e="esriSRUnit_NauticalMile";break;case gr.USNauticalMiles:e="esriSRUnit_USNauticalMile";break;case gr.Meters:e="esriSRUnit_Meter";break;case gr.Kilometers:e="esriSRUnit_Kilometer";break}return e}async function sb(t){let{queryObject:e,queryConfig:i,outputFormat:a,dataFormat:r,outAnalytics:n}=t,{where:s,geometry:o,distance:l,units:d,timeExtent:c}=i,u,f=Se(e),p=Ze(f);if(p){let h={where:Ra([s,p.definitionExpression])},b={query:h},m=Wa(o)?.extent?.toJSON();if(m!==void 0){let C=nb(d),{xmin:I,ymin:O,xmax:P,ymax:A}=m;h.geometryType="esriGeometryEnvelope",h.geometry=`${I},${O},${P},${A}`,l!==void 0&&(h.distance=l.toString()),C!==void 0&&(h.units=C,o?.spatialReference?.wkid!=null&&(h.inSR=o.spatialReference.wkid.toString()))}c&&(h.time=`${c[0]},${c[1]}`);let w=`${p.url}/${p.layerId}/queryAnalytic?f=${a}&dataFormat=${r}&outAnalytics=${n}`;try{u=(await La(w,b)).data?.features?.[0]?.attributes}catch(C){let I=(await bt(vt(document.documentElement).t9nLocale,gt("./assets/common/t9n"),"messages.")).errorStrings;throw new ze(Qe.QueryFeaturesError,I.errors.queryError,C)}}return u}function ob(t,e){return{lowerBoundaryAlias:`charts_lower_boundary_${t}`,upperBoundaryAlias:`charts_upper_boundary_${t}`,stackAlias:`charts_stack_alias_${e}`}}async function b1(t){let{chartConfig:e,queryObject:i,queryConfig:a,errorStrings:r,options:n}=t,s,o=Se(i),l=rb(o);if(l&&i&&"queryAttributeBins"in i){let{x:d,y:c,xTemporalBinning:u,yTemporalBinning:f}=e.series[0],{outTimeZone:p,firstDayOfWeek:h,includeLeapDay:b}=e,m=bb({queryObject:i,queryConfig:a,x:d,y:c,xTemporalBinning:u,yTemporalBinning:f,configTimeZone:p,firstDayOfWeek:h,includeLeapDay:b,options:n});try{s=await i.queryAttributeBins(m)}catch(w){throw new ze(Qe.QueryFeaturesError,r.errors.queryError,w)}}if(!l)throw new ze(Qe.QueryFeaturesError,r.errors.queryBinsNotSupported,r.errors.queryBinsNotSupported);return s}async function v1(t){let{chartConfig:e,queryObject:i,queryConfig:a,returnFeaturesExtent:r,errorStrings:n,abortKey:s}=t,o=e.series[0],l,{x:d,y:c}=o;a.groupByFieldsForStatistics=[d],d!==c&&a.groupByFieldsForStatistics.push(c),a&&r===!0&&!a.outStatistics?.some(u=>u.statisticType===pe.EnvelopeAggregate)&&a.outStatistics?.push({statisticType:pe.EnvelopeAggregate,onStatisticField:"1"});try{l=await Su({queryObject:i,queryConfig:a,abortKey:s})}catch(u){throw new ze(Qe.QueryFeaturesError,n.errors.queryError,u)}return l}async function S1(t){let{queryObject:e,queryConfig:i,xStep:a,xMin:r,xMax:n,x:s,y:o,yStep:l,errorStrings:d}=t,c;if(e&&"queryAttributeBins"in e&&Number.isFinite(a)&&Number.isFinite(l)&&Number.isFinite(r)&&Number.isFinite(n)&&a>0&&l>0){let u=vb({queryObject:e,queryConfig:i,xStep:a,xMin:r,xMax:n,x:s,y:o,yStep:l});try{c=await e.queryAttributeBins(u)}catch(f){throw new ze(Qe.QueryFeaturesError,d.errors.queryError,f)}}return c}async function w1(t){let{queryConfig:e,x:i,queryObject:a,chartSubType:r,isGaugeByFeature:n}=t,s,o=Se(a),{idField:l,isTraditionalTypeOID:d}=Is(o),c=ws({queryObject:a,queryConfig:e});c.outFields=n||r===F.PieNoAggregation||r===F.BarAndLineNoAggregation||r===F.BarAndLineSplitByNoAggregation?[d?l:"*"]:[i],c.outFields?.[0]===i&&(c.returnDistinctValues=!0);try{s=await a.queryFeatureCount(c)}catch{s=Number.NaN}return s}async function I1(t){let{queryObject:e,queryConfig:i,abortKey:a}=t,{outStatistics:r}=i,n=new Map;if(r!==void 0&&r.length>0){let s=r.map(c=>{let{statisticType:u,onStatisticField:f,outStatisticFieldName:p}=c;return{statisticType:u,onStatisticField:f,outStatisticFieldName:p?.toUpperCase()}});i.outStatistics=s,delete i.num,delete i.orderByFields;let o=ws({queryObject:e,queryConfig:i}),l;try{l=await e.queryFeatures(o,{signal:a!==void 0?Ar.get(a)?.signal:void 0})}catch(c){if(!gs.isAbortError(c)){let u=(await bt(vt(document.documentElement).t9nLocale,gt("./assets/common/t9n"),"messages.")).errorStrings;throw new ze(Qe.QueryFeaturesError,u.errors.queryError,c)}}let d=l?.features?.[0]?.attributes;d!==void 0&&r.forEach(c=>{let{outStatisticFieldName:u}=c;if(u!==void 0){let f=d[u.toLowerCase()]??d[u.toUpperCase()]??d[u];f!==void 0&&n.set(u,f)}})}return n}async function vu(t){let{queryObject:e,queryConfig:i,returnUniqueIdsOnly:a,abortKey:r}=t,n=[],s=Se(e),o=Sb(s),l=ws({queryObject:e,queryConfig:i,maxRecordCountFactor:o});try{if(a===!0)if("queryObjectIds"in e)n=await e.queryObjectIds(l);else{let{idField:d,isTraditionalTypeOID:c}=Is(s),u=c?d:"*";l.outFields=[u],n=(await e.queryFeatures(l,{signal:r!==void 0?Ar.get(r)?.signal:void 0})).features.map(f=>f.getObjectId())}else n=(await e.queryFeatures(l,{signal:r!==void 0?Ar.get(r)?.signal:void 0})).features}catch(d){if(!gs.isAbortError(d)){let c=(await bt(vt(document.documentElement).t9nLocale,gt("./assets/common/t9n"),"messages.")).errorStrings;throw new ze(Qe.QueryFeaturesError,c.errors.queryError,d)}}return n}async function lb(t){let e=[],{featureCount:i,maxRecords:a,queryConfig:r}=t,n=[],s=0,o=r?.start??0;for(;s<xt.maxParallelRequests&&o<i;){let l={...t};l.queryConfig={...r,start:o,num:Math.min(a,i-o)},e.push(vu(l)),o+=a,s+=1}return n=(await Promise.all(e)).flat(),n}async function Su(t){let{queryObject:e,queryConfig:i,returnUniqueIdsOnly:a,featureCount:r,noBatch:n,abortKey:s}=t,o=[],l=Se(e),d=r??1,c=wu(l);if(n!==!0&&d>c&&l?.capabilities?.query.supportsPagination){let u=0,f=0,p=Math.ceil(d/c),h=Math.ceil(p/xt.maxParallelRequests),b=[];for(;f<h;){u=f*xt.maxParallelRequests*c;let m=lb({queryConfig:{...i,start:u},queryObject:e,maxRecords:c,featureCount:d,returnUniqueIdsOnly:a,abortKey:s});b.push(m),f+=1}o=(await Promise.all(b)).flat()}else(Number.isNaN(d)||d>=0)&&(o=await vu({queryObject:e,queryConfig:i,returnUniqueIdsOnly:a,abortKey:s}));return o}async function C1(t){let{queryObject:e,queryConfig:i,uniqueFeature:a,abortKey:r}=t,n={...i,returnDistinctValues:!0};return await Su({queryObject:e,abortKey:r,queryConfig:n,returnUniqueIdsOnly:!0,featureCount:a===!0?1:void 0})}function x1(t){if(t!==void 0){let e=Ar.get(t);e!==void 0&&e.abort(),Ar.set(t,new AbortController)}}function db(t){return{lowerBoundaryAlias:`charts_lower_boundary_${t}`,upperBoundaryAlias:`charts_upper_boundary_${t}`}}async function T1(t){let{queryObject:e,dateField:i,splitByField:a,queryConfig:r,temporalBinning:n}=t,s=[],o;if(n){let{unit:l}=n;try{if(l){let d=Ze(Se(e))??void 0;if(o=ib(d,a),o&&e&&"queryAttributeBins"in e){let c=mb({queryObject:e,queryConfig:r,temporalBinning:n,dateField:i,splitByField:a});s=(await e.queryAttributeBins(c)).features}}}catch(d){let c=(await bt(vt(document.documentElement).t9nLocale,gt("./assets/common/t9n"),"messages.")).errorStrings;throw new ze(Qe.QueryFeaturesError,c.errors.queryError,d)}}if(o===!1){let l=(await bt(vt(document.documentElement).t9nLocale,gt("./assets/common/t9n"),"messages.")).errorStrings;throw new ze(Qe.QueryFeaturesError,l.errors.queryBinsNotSupported,l.errors.queryBinsNotSupported)}return s}function cb(t){let e=!t.geometry||t.geometry.type==="extent",i=(t.where??"").toUpperCase(),a=!i.includes("CURRENT_TIMESTAMP")&&!i.includes("CURRENT_DATE")&&!i.includes("CURRENT_TIME");return e&&a}function wu(t){let e=xt.maxRecords;if(t&&"sourceJSON"in t&&t.sourceJSON?.maxRecordCount){let{sourceJSON:i}=t;e=i.maxRecordCount,i.advancedQueryCapabilities?.supportsMaxRecordCountFactor===!0&&(e*=xt.maxRecordCountFactor)}return e}function Ra(t,e){let i,a=Array.from(new Set(t)).filter(r=>r!=null&&r!==""&&!ti(r));return a.sort((r,n)=>n.length-r.length),a.length===1?[i]=a:a?.forEach(r=>{r!==void 0&&(Tt(i)?i=`(${r})`:i?.includes(`(${r})`)||(i=`${i} ${e??"AND"} (${r})`))}),i??"1=1"}function ub(t,e){let i=e;if(t!==void 0){let a=Se(t),r=Ze(a)?.timeExtent;r?.start!=null&&r?.end!=null&&(i=[r.start.valueOf(),r.end.valueOf()])}return i}function pb(t){let{queryObject:e,defaultGeometry:i,ignoreViewExtent:a}=t,r=i;if(!a&&qa(e)){let n=e.view.extent,{xmin:s,xmax:o,ymin:l,ymax:d,zmin:c,zmax:u}=n;r={xmin:s,ymin:l,zmin:c,xmax:o,ymax:d,zmax:u,spatialReference:n.spatialReference.toJSON()}}return r}function Wa(t){let e;return t!==void 0&&(e=ys.fromJSON(t)),e}function fb(t){return t===void 0?["*"]:Array.from(new Set(t))}function ja(t){let{queryType:e,queryObject:i,queryConfig:a}=t,{where:r,outStatistics:n,geometry:s,distance:o,units:l,timeExtent:d,returnDistinctValues:c}=a??{},u=Se(i),f=Ze(u)?.createQuery()??new Fy,p,h=Au(u).idFields;if(e==="AttributeBinsQuery"&&a?.objectIds?.[0]!==void 0&&h&&(p=`${h} IN (${a.objectIds.join(",")})`),e==="AttributeBinsQuery"&&(f=new Ty(f.toJSON())),f.where=Ra([f.where,r,p]),"returnDistinctValues"in f&&(f.returnDistinctValues=c??!1),n!==void 0){let m=ab(u);f.outStatistics=n.filter(w=>w.statisticType!==pe.EnvelopeAggregate||m).map(w=>Oy.fromJSON(w))}let b=Wa(s);return b!==void 0&&(f.geometry=b,a?.spatialRelationship&&(f.spatialRelationship=a.spatialRelationship),tb(u)&&(o!==void 0&&(f.distance=o),l!==void 0&&(f.units=l))),d&&(f.timeExtent=new Py({start:d?.[0],end:d?.[1]})),cb(f)&&(f.cacheHint=!0),f}function hb(t){let e;switch(t){case Wr.Start:e="first";break;case Wr.End:e="last";break}return e}function mb(t){let{queryObject:e,queryConfig:i,temporalBinning:a,dateField:r,splitByField:n}=t,s=Se(e),o=Pi(e).find(w=>w.name===r)?.type,l=ja({queryType:"AttributeBinsQuery",queryObject:e,queryConfig:i}),{unit:d,size:c,timeAggregationType:u,start:f,end:p,offset:h,outTimeZone:b}=a,m=db(r);if(l.lowerBoundaryAlias=m.lowerBoundaryAlias,l.upperBoundaryAlias=m.upperBoundaryAlias,o!==me.DateOnly&&(l.outTimeZone=b??Intl.DateTimeFormat().resolvedOptions().timeZone),l.binParameters={type:"date",field:r,interval:{unit:d,value:c},start:f,end:p,offset:h?{unit:h.unit,value:h.size}:null},l.binParameters.type==="date"&&(s?.capabilities?.queryAttributeBins?.supportsSnapToData&&(l.binParameters.snapToData=hb(u)),s?.capabilities?.queryAttributeBins?.supportsReturnFullIntervalBin&&(l.binParameters.returnFullIntervalBin=!0)),!Tt(n)){let w=Ze(s)?.fields.find(C=>C.name===n)?.type;(!w||w==="string"||w==="integer"||w==="small-integer"||w==="big-integer"||w==="double")&&(l.binParameters.stackBy={type:"field",value:n,valueType:w==="string"?"string":"integer"})}return l}function yb(t){let{field:e,fieldType:i,unit:a,outTimeZone:r,dataTimeZone:n,runsOnClientQueryEngine:s,addIntervalStatement:o,addLeapDayExpression:l}=t,d,c,u=1,f=1;switch(a){case Bt.MinuteOfDay:i!==me.DateOnly&&(c="MINUTE",u=0,f=59);break;case Bt.HourOfDay:i!==me.DateOnly&&(c="HOUR",u=0,f=23);break;case Bt.DayOfWeek:c="DOW",f=7;break;case Bt.DayOfMonth:c="DAY",f=31;break;case Bt.DayOfYear:c="DOY",f=366;break;case Bt.WeekOfYear:c="WEEK",f=53;break;case Bt.MonthOfYear:c="MONTH",f=12;break;case Bt.QuarterOfYear:c="QUARTER",f=4;break}if(c){let p=o?` ${gu({dataTimeZone:n,runsOnClientQueryEngine:s,outTimeZone:r})}`:"";d=gb({addLeapDayExpression:l,temporalKey:c,field:e,intervalStatement:p})}return{expression:d,start:u,end:f}}function gb(t){let{addLeapDayExpression:e=!1,temporalKey:i,field:a,intervalStatement:r}=t,n;return e&&a.length&&i==="DAY"?n=`CASE WHEN (EXTRACT(MONTH FROM ${a})=2 AND EXTRACT(DAY FROM ${a})=29) THEN 0 ELSE EXTRACT (${i} FROM ${a}${r}) END`:n=`EXTRACT (${i} FROM ${a}${r})`,n}function Kc(t){let{temporalBinning:e,xOrY:i,xOrYFieldType:a,addIntervalStatement:r,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o,includeLeapDay:l}=t,{unit:d}=e??{},c,u,f,p;return a===me.Date||a===me.DateOnly||a===me.TimestampOffset?{expression:u,start:f,end:p}=yb({field:i,fieldType:a,unit:d,addIntervalStatement:r,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o,addLeapDayExpression:!l}):c=i,{field:c,expression:u,start:f,end:p}}function bb(t){let{queryObject:e,queryConfig:i,x:a,y:r,xTemporalBinning:n,yTemporalBinning:s,firstDayOfWeek:o,includeLeapDay:l,configTimeZone:d,options:c}=t,u=Pi(e),f=u.find(P=>P.name===a)?.type,p=u.find(P=>P.name===r)?.type,h=ja({queryType:"AttributeBinsQuery",queryObject:e,queryConfig:i});if(h.binParameters={type:"fixed-interval",interval:1},h.lowerBoundaryAlias=xt.heatChartLowerBoundaryAlias,h.upperBoundaryAlias=xt.heatChartUpperBoundaryAlias,f!==me.DateOnly){let P=Intl.DateTimeFormat().resolvedOptions().timeZone,A=c?.view&&"timeZone"in c?.view?c.view.timeZone:void 0,M=d??A??P;M==="unknown"?M="Etc/UTC":M==="system"&&(M=P),h.outTimeZone=M}o!==void 0&&(h.binParameters.firstDayOfWeek=o);let b=Kc({temporalBinning:n,xOrY:a,xOrYFieldType:f,addIntervalStatement:!1,includeLeapDay:l}),{field:m,expression:w,start:C,end:I}=b;m?h.binParameters.field=m:w&&(h.binParameters.expression=w,h.binParameters.expressionValueType="integer",h.binParameters.type==="fixed-interval"&&(C!==void 0&&(h.binParameters.start=C),I!==void 0&&(h.binParameters.end=I)));let O=Kc({temporalBinning:s,xOrY:r,xOrYFieldType:p,addIntervalStatement:!1,includeLeapDay:l});return O.field?h.binParameters.stackBy={type:"field",value:O.field}:O.expression&&(h.binParameters.stackBy={type:"expression",value:O.expression,valueType:"integer",alias:r}),h}function vb(t){let{queryObject:e,queryConfig:i,xStep:a,xMin:r,xMax:n,x:s,y:o,yStep:l}=t,d=ja({queryType:"AttributeBinsQuery",queryObject:e,queryConfig:i}),c=ob(s,o);return d.lowerBoundaryAlias=c.lowerBoundaryAlias,d.upperBoundaryAlias=c.upperBoundaryAlias,d.binParameters={type:"fixed-interval",field:s,interval:a,start:r,end:n,stackBy:{value:`FLOOR(${o} / ${l})`,type:"expression",alias:c.stackAlias,valueType:"integer"}},d}function ws(t){let{queryObject:e,queryConfig:i,maxRecordCountFactor:a}=t,{groupByFieldsForStatistics:r,orderByFields:n,gdbVersion:s,start:o,num:l,outFields:d}=i??{},c=ja({queryType:"Query",queryObject:e,queryConfig:i});c.returnGeometry=!1;let u=Se(e);return c.outFields=fb(d),c.groupByFieldsForStatistics=r??c.groupByFieldsForStatistics,c.orderByFields=n??[],c.objectIds=i?.objectIds,a!==void 0&&(c.maxRecordCountFactor=a),s!==void 0&&s!==""&&(c.gdbVersion=s),l!==void 0&&(c.num=l),o!==void 0&&(c.start=o,c.num=c.num??wu(u)),c}function Sb(t){return t&&"sourceJSON"in t&&t.sourceJSON?.advancedQueryCapabilities?.supportsMaxRecordCountFactor===!0?xt.maxRecordCountFactor:void 0}var Iu={NonNumericAggregation:"nonNumericAggregation",DuplicateSeriesID:"duplicateSeriesId"},nr={Required:"required",MinLength:"minLength",MinItems:"minItems",MaxItems:"maxItems",Pattern:"pattern",AdditionalProperties:"additionalProperties",Enum:"enum",AnyOf:"anyOf"},Xc={BadData:"badData",EmptyDataSet:"emptyDataSet",InvalidConfig:"invalidConfig",HistogramEmptyField:"histogramEmptyField",BarElementExceedsLimit:"barElementExceedsLimit",LineChartExceedsLimit:"lineChartExceedsLimit",BoxPlotExceedsLimit:"boxPlotExceedsLimit",BoxPlotOutliersExceedsLimit:"boxPlotOutliersExceedsLimit",HeatChartExceedsLimit:"heatChartExceedsLimit",PieChartExceedsLimit:"pieChartExceedsLimit",GaugeExceedsLimit:"gaugeExceedsLimit",PieChartMixOfNegativePositiveSlices:"PieChartMixOfNegativePositiveSlices",NegativeValueInSqrtCalculation:"negativeValueInSqrtCalculation",NegativeValueInLogCalculation:"negativeValueInLogCalculation",NegativeValueInXAxisLogScale:"negativeValueInXAxisLogScale",NegativeValueInYAxisLogScale:"negativeValueInYAxisLogScale"},wb=2048;function Ib(t){let e;switch(t){case ot.Log:e="log";break;case ot.Sqrt:e="sqrt";break;case ot.None:default:e=void 0;break}return e}async function Cb(t){let{queryConfig:e,chartConfig:i,queryObject:a,options:r,abortKey:n}=t,s=i.series[0],{x:o,dataTransformationType:l,binCount:d}=s,c=Se(a);if(!mt(c))throw new ze(Qe.LayerNotSupported);c.loaded||await c.load();let u=await c.generateRasterInfo(c.rasterFunction),f=r?.view,p=Wa(e.geometry)??c.fullExtent,h=u.bandCount===1?0:u.bandInfos.findIndex(w=>w.name===o),b,m;if(f===void 0&&(l===void 0||l===ot.None)&&d&&Array.isArray(u.histograms)&&u.histograms.length>h&&u.histograms[h].size%d===0&&Array.isArray(u.statistics)&&u?.statistics?.length>h)b=u.histograms[h],m=u.statistics[h];else{let w,C,I;if(f)w=f.resolution,C=f.resolution,I=f.spatialReference;else{let M=wb,N=2,E=u.width,R=u.height,k=Math.max(0,Math.ceil(Math.log(Math.max(E,R)/M)/Math.log(N))),L=N**k;w=u.pixelSize.x*L,C=u.pixelSize.y*L,I=c.spatialReference}let O=new Ay({x:w,y:C,spatialReference:I}),P=Ib(l),A=await wy(c,{bandIds:[h],geometry:p,histogramSize:d??void 0,pixelSize:O,transformType:P},{signal:n!==void 0?Ar.get(n)?.signal:void 0});m=A.statistics[0],b=A.histograms[0]}return{histogram:b,statistics:m}}function xb(t,e){let i=[],a=(t.max-t.min)/t.size;for(let r=0;r<t.size;r++){let n=t.min+r*a;i.push({minValue:n,maxValue:n+a,count:t.counts[r]})}if(e&&t.size!==e&&t.size%e===0){let r=t.size/e,n=[];for(let s=0;s<e;s++){let o=i[s*r].minValue,l=i[(s+1)*r-1].maxValue,d=0;for(let c=0;c<r;c++)d+=i[s*r+c].count;n.push({minValue:o,maxValue:l,count:d})}return n}return i}async function F1(t){let{chartConfig:e,queryConfig:i,queryObject:a,options:r,abortKey:n}=t;if(a===void 0)throw new Error("QueryObject is undefined!");let s,{statistics:o,histogram:l}=await Cb({queryObject:a,chartConfig:e,queryConfig:i,options:r,abortKey:n});if(o&&l){let d=e.series[0].binCount??void 0,c=xb(l,d);c.length>0?s={valid:!0,count:c.length,data:{bins:c,min:o.min,max:o.max,mean:o.avg,median:o.median,stddev:o.stddev,sum:o.sum??o.avg*o.count,count:o.count}}:s={valid:!1,invalidType:Xc.EmptyDataSet}}else s={valid:!1,invalidType:Xc.BadData};return s}var Tb=t=>t.series[0].x;function Fb(t){let{chartConfig:e,layer:i,selectionDataItems:a}=t,r=hs(i,Tb(e)),n=a.map(l=>[l.minValue,l.maxValue]).reduce((l,d,c)=>{if(c===0)l.push([...d]);else{let u=l[l.length-1];u[1]===d[0]?u[1]=d[1]:l.push([...d])}return l},[]),s=e.series[0],{dataTransformationType:o}=s;switch(o){case ot.Log:n.forEach(l=>{l[0]=Math.exp(l[0]),l[1]=Math.exp(l[1])});break;case ot.Sqrt:n.forEach(l=>{l[0]=l[0]*l[0],l[1]=l[1]*l[1]});break;case ot.None:}return n.length>0?{bandId:r,pixelRanges:n}:void 0}var Ob={dataFormat:"json",outputFormat:"json",typeKey:"analyticType",typeValue:"LinRegR2",fieldValue:"onAnalyticField",slopePropertyList:["Slope","SLOPE","slope"],interceptPropertyList:["Intercept","INTERCEPT","intercept"],r2PropertyList:["R2","r2"]};function fs(t,e){let i,a,r=e??(n=>n);for(let n of t){let s=r(n);s==null||Number.isNaN(s)||((i===void 0||s<i)&&(i=s),(a===void 0||s>a)&&(a=s))}return{min:i,max:a}}function O1(t,e){let i=0,a=0,r=e??(n=>n);for(let n of t){let s=r(n);s==null||Number.isNaN(s)||(i++,a+=s)}return i>0?a/i:void 0}function P1(t,e){let i=0,a=e??(r=>r);for(let r of t){let n=a(r);n==null||Number.isNaN(n)||(i+=n)}return i}function A1(t,e,i=1){let a=Math.max(0,Math.ceil((e-t)/i)),r=new Array(a);for(let n=0;n<a;n++)r[n]=t+n*i;return r}async function Pb(t){let{queryObject:e}=t,i=!1;if(!mt(e)){let a=eb(e),r=Se(e),n=Ze(r);if(a&&n?.url!==void 0&&n.url!==null){let s=`${n.url}/${n.layerId}?f=json`;try{let o=(await La(s)).data,l=o?.advancedQueryCapabilities?.supportsQueryAnalytic===!0,d=o?.sqlParserVersion===void 0||n.version!=null&&n.version>=10.91;i=l&&d}catch{}}}return i}function Ab(t){let{x:e,y:i,trendlineXToY:a,data:r}=t,{min:n,max:s}=r?fs(r,o=>o[e]):{min:Number.NaN,max:Number.NaN};return[{[e]:n??Number.NaN,[i]:a(n??Number.NaN)},{[e]:s??Number.NaN,[i]:a(s??Number.NaN)}]}function Eb(t){let{data:e,x:i,y:a}=t,r=[];return e!==void 0&&(r=e.filter(n=>Number.isFinite(n[i])&&Number.isFinite(n[a])).map(n=>[n[i],n[a]])),r}async function Db(t){let{statsMap:e,queryObject:i,chartConfig:a,queryConfig:r}=t,n=a.series[0],{x:s,y:o}=n;Kg(i);let l=Number.NaN,d=[{[s]:Number.NaN,[o]:Number.NaN},{[s]:Number.NaN,[o]:Number.NaN}],{dataFormat:c,outputFormat:u,typeKey:f,typeValue:p,fieldValue:h,slopePropertyList:b,interceptPropertyList:m,r2PropertyList:w}=Ob,C=`[{"${f}": "${p}", "${h}":"${s},${o}"}]`,I=await sb({queryObject:i,queryConfig:r,outputFormat:u,dataFormat:c,outAnalytics:C});if(I!==void 0){let O=Number.NaN,P=Number.NaN,{expr:A}=Da(I,b),{expr:M}=Da(I,m),{expr:N}=Da(I,w);A!==void 0&&Number.isFinite(I[A])&&(O=I[A]),M!==void 0&&Number.isFinite(I[M])&&(P=I[M]),N!==void 0&&Number.isFinite(I[N])&&(l=I[N]);let{dataContextXMinField:E,dataContextXMaxField:R,dataContextYMinField:k,dataContextYMaxField:L}=j.scatterplotAggregationFields,D=e.get(E)??Number.NaN,$=e.get(R)??Number.NaN,W=e.get(k)??Number.NaN,ee=e.get(L)??Number.NaN,H=($-D)/100,Q=D-H,U=Number.NaN;for(;!(U>=W&&U<=ee)&&Q<=$;)Q+=H,U=O*Q+P;let _=$+H,ce=Number.NaN;for(;!(ce>=W&&ce<=ee)&&_>=D;)_-=H,ce=O*_+P;d=[{[s]:Q,[o]:U},{[s]:_,[o]:ce}]}return{r2:l,trendLinePoints:d}}function Lb(t){let{data:e,chartConfig:i}=t,a=i.series[0],{x:r,y:n}=a,{r2:s,trendLinePoints:o}=j.scatterplotSeries,l=Eb({data:e,x:r,y:n});if(l!==void 0){let d=ql(l),c=Wl(d);s=d.m===0?0:jl(l,c),o=Ab({x:r,y:n,trendlineXToY:c,data:e})}return{r2:s,trendLinePoints:o}}async function $b(t){let e=await Pb(t),{chartConfig:i}=t,a=i.series[0],{x:r,y:n}=a,{r2:s}=j.scatterplotSeries,o=[{[r]:Number.NaN,[n]:Number.NaN},{[r]:Number.NaN,[n]:Number.NaN}],l={r2:s,trendLinePoints:o},d=!1;if(e)try{l=await Db(t)}catch{d=!0}return(!e||d)&&(l=Lb(t)),l}var Nb=50,Rb=4194304;async function Mb(t){let{layer:e,chartConfig:i,rawData:a}=t,r=i.series[0],{x:n,y:s}=r,{idField:o}=Is(e),l=(await e.generateRasterInfo(e.rasterFunction)).bandInfos,d=l.length===1,c=d?l?.[0].name:"";return a.map(u=>({...d&&{[n]:u.attributes?.[c],[s]:u.attributes?.[c]},...u.attributes,[xt.uniqueIdsName]:u.attributes?.[o]}))??[]}async function kb(t){let{queryObject:e,queryConfig:i,abortKey:a}=t;if(!e||!mt(e))throw new ze(Qe.LayerNotSupported);return await zb({queryObject:e,queryConfig:i,imagerySkipFactor:Nb,imageryMaxPixelCount:Rb,abortKey:a})}async function E1(t){let{chartConfig:e,queryConfig:i,queryObject:a,sortData:r,calculateTrendLine:n,options:s,abortKey:o}=t;if(!a)throw new Error("QueryObject is undefined!");let l=await kb({queryObject:a,queryConfig:i,abortKey:o}),d=await Mb({layer:a,chartConfig:e,rawData:l});r!==!1&&bg({arrayToSort:d,sortingField:e.series[0].x,orderBy:ke.Ascending});let c=new Map,{r2:u,trendLinePoints:f}=n!==!1?await $b({data:d,statsMap:c,queryConfig:i,options:s,queryObject:a,chartConfig:e}):j.scatterplotSeries;return{dataItems:d,r2:u,trendLinePoints:f}}var Bb=t=>({x:t.series[0].x,y:t.series[0].y});function qb(t){let{chartConfig:e,layer:i,selectionDataItems:a}=t,r;if(a.length>0){let{x:n,y:s}=Bb(e),o=hs(i,n),l=hs(i,s);if(o!==void 0&&l!==void 0){let d=a[0]?.[n],c=a[0]?.[s],u=d,f=c;a.forEach(p=>{let h=p[n],b=p[s];h<d?d=h:h>u&&(u=h),b<c?c=b:b>f&&(f=b)}),r={xBandId:o,yBandId:l,pixelRanges:new Ey({xmin:d,xmax:u,ymin:c,ymax:f})}}}return r}var Cu="PixelID",Wb=[y.BarSeries,y.HistogramSeries,y.ScatterSeries];async function D1(t,e){let i=!1;if(Vg(Wb,t))switch(J(t?.series)){case y.BarSeries:e.loaded||await e.load(),i=!!(await e.generateRasterInfo(e.rasterFunction)).attributeTable;break;case y.HistogramSeries:case y.ScatterSeries:i=!0;break}return i}async function jb(t){let{layer:e,chartConfig:i}=t,a;return mt(e)?a=e:i?.iLayer?.layerType==="ArcGISImageServiceLayer"?a=await Tu(i.iLayer):i?.iLayer?.layerType==="ArcGISTiledImageServiceLayer"&&(a=await Fu(i.iLayer)),a}function _b(t){let e;switch(t){case"f32":e=me.Single;break;case"f64":e=me.Double;break;default:e=me.Integer;break}return e}function xu(t){if(!t.loaded)throw new Error("Raster layer must be loaded to get its ID field name");let e=t.serviceRasterInfo?.attributeTable?.fields.find(i=>i.type==="oid");return e?e.name:Cu}function Vb(t){let{layer:e,rasterInfo:i,usePopupTemplateFieldsInfo:a}=t,r=i??e.serviceRasterInfo??void 0,n;if(!e.loaded||!r)throw new Error("Raster layer must be loaded and have rasterInfo available to fetch its fields info");try{if(r.attributeTable)n=r.attributeTable.fields.map(s=>s.toJSON());else{let s=_b(r.pixelType),o=r.bandInfos.map(l=>({name:l.name,alias:l.name,type:s}));a===!0&&e?.popupTemplate?.fieldInfos!==void 0&&o.map(l=>{let d=e.popupTemplate?.fieldInfos?.find(c=>c.fieldName?.toLowerCase()===l.name.toLowerCase())?.label;return d&&d!==l.name&&(l.alias=d),l}),n=[{name:Cu,alias:"Pixel ID",type:me.OID},...o]}}catch{n=[]}return n}var Tu=Ni(async t=>{let e={},i=t.layerDefinition;e.definitionExpression=i?.definitionExpression,e.id=t.id,t.url!==void 0&&(e.url=t.url),t.itemId!==void 0&&t.layerDefinition?.id!==void 0&&(e.portalItem={id:t.itemId});let a=new Cy(e);return await a.load(),a},t=>JSON.stringify(t,Object.keys(t).sort())),Fu=Ni(async t=>{let e={};e.id=t.id,t.url!==void 0&&(e.url=t.url),t.itemId!==void 0&&(e.portalItem={id:t.itemId});let i=new xy(e);return await i.load(),i},t=>JSON.stringify(t,Object.keys(t).sort())),hs=(t,e)=>{let i,a=t.serviceRasterInfo?.bandInfos;if(e&&a&&a.length>0){let r=e.toLowerCase(),n=a.findIndex(s=>s.name.toLowerCase()===r);n>-1&&(i=n)}return i},L1=t=>{let{chartConfig:e,layer:i,selectionDataItems:a}=t,r=J(e.series),n;switch(r){case y.HistogramSeries:n=Fb({chartConfig:e,layer:i,selectionDataItems:a});break;case y.ScatterSeries:n=qb({chartConfig:e,layer:i,selectionDataItems:a});break;default:n=void 0;break}return n};async function zb(t){let{queryObject:e,queryConfig:i,imagerySkipFactor:a,imageryMaxPixelCount:r,abortKey:n}=t,s=[];if(e!==void 0)try{let o=Se(e);o.loaded||await o.load();let l={geometry:Wa(i.geometry)??o.fullExtent,autoResample:!0,maxPixelCount:r,skipFactor:a},d=n&&Ar.get(n)?.signal||void 0,c=await Iy(o,l,{signal:d});s=ou.fromJSON(c.featureSet).features}catch{s=[]}return s}function Ub(t){let{queryObject:e,defaultGeometry:i,ignoreViewExtent:a,viewExtent:r}=t,n=i;if(!a&&r){let{xmin:s,xmax:o,ymin:l,ymax:d,zmin:c,zmax:u}=r;n={xmin:s,ymin:l,zmin:c,xmax:o,ymax:d,zmax:u,spatialReference:r.spatialReference.toJSON()}}else if(!n&&e.fullExtent){let{xmin:s,xmax:o,ymin:l,ymax:d,zmin:c,zmax:u}=e.fullExtent;n={xmin:s,ymin:l,zmin:c,xmax:o,ymax:d,zmax:u,spatialReference:e.fullExtent.spatialReference.toJSON()}}return n}function $1(t){let e,i,a;return t!==void 0&&(e=t.type,(e===We.UniqueValue||e===We.ClassBreaks)&&(i=t.field??void 0,e===We.ClassBreaks&&(a=t.normalizationField??void 0))),{rendererType:e,rendererField:i,rendererNormalizationField:a}}var Ou=Ni(async(t,e)=>{let i=t.featureCollection,a,r;if(i?.layers?.[0]!==void 0){let o=i.layers[0];a=o.featureSet,r=o.layerDefinition}else r=t.layerDefinition;let n={};if(a!==void 0){if(n.source=ou.fromJSON(a).features,r?.fields!==void 0&&(n.fields=r.fields.map(o=>vy.fromJSON(o))),r?.objectIdField!==void 0&&(n.objectIdField=r.objectIdField),r?.geometryType!==void 0){let o=ys.fromJSON({geometryType:r.geometryType});o?.type!==void 0&&o?.type!=="extent"&&(n.geometryType=o.type)}r?.spatialReference!==void 0&&(n.spatialReference=r.spatialReference)}else n.id=t.id,r?.id!==void 0&&(n.layerId=r.id),t.url!==void 0&&(n.url=t.url),t.itemId!==void 0&&r?.id!==void 0&&(n.portalItem={id:t.itemId});if(r!==void 0){let o=r.drawingInfo;o?.renderer!==void 0&&(n.renderer=ms.fromJSON(o.renderer))}let s=new gy(n);return await s.load({signal:e}),s},t=>JSON.stringify(t));async function N1(t){let e;switch(t?.layerType??""){case"ArcGISFeatureLayer":e=await Ou(t);break;case"ArcGISImageServiceLayer":e=await Tu(t);break;case"ArcGISTiledImageServiceLayer":e=await Fu(t);break;default:throw new ze(Qe.LayerNotSupported)}return e}async function R1(t){let{layer:e,view:i,chartConfig:a,filterByExtent:r,abortSignal:n}=t,s=mt(e)||Yg(a),o;if(s)o=await jb(t);else{let l=Se(e),d=Ze(l);d!==void 0?r&&i!==void 0&&!d.isTable?(d.outFields=["*"],o=await i.whenLayerView(d)):o=e:a?.iLayer&&a.iLayer?.layerType==="ArcGISFeatureLayer"&&(o=await Ou(a.iLayer,n))}return o}function Pi(t,e){let i=Se(t),a=[];if(i!==void 0){let r=e===!0&&i?.popupTemplate?.fieldInfos!==void 0;mt(i)?a=Vb({layer:i,usePopupTemplateFieldsInfo:e}):a=i.fields.map(n=>{let s=n.toJSON();if(r){let o=i.popupTemplate?.fieldInfos?.find(l=>l.fieldName?.toLowerCase()===n.name.toLowerCase())?.label;o!==void 0&&o!==n.name&&(s.alias=o)}return s})}return a}function Pu(t,e=[]){return e.find(i=>i.name===t)}function Au(t){let e,i=!1;if(mt(t))e=[xu(t)];else{let a=Ze(t);a&&("uniqueIdFields"in a&&a.uniqueIdFields&&a.uniqueIdFields.length>0?e=a.uniqueIdFields:(e=[a.objectIdField],i=!0))}return{idFields:e,isTraditionalTypeOID:i}}function Is(t){let e="",i=!1;if(mt(t))e=xu(t);else if(t){let a=Au(t);i=a.isTraditionalTypeOID,a.idFields&&(e=a.idFields[0])}return{idField:e,isTraditionalTypeOID:i}}function Cs(t){let e=[me.Single,me.Double,me.SmallInteger,me.Integer,me.BigInteger];return t!==void 0&&e.includes(t.type)}function Hb(t){return t?.type===me.Date||t?.type===me.DateOnly||t?.type===me.TimestampOffset}function M1(t){return t?.type===me.String}function k1(t){return t?.type===me.TimeOnly}function B1(t){let e=[me.SmallInteger,me.Integer,me.BigInteger];return t!==void 0&&e.includes(t.type)}function q1(t){return t.filter(e=>Hb(e)).map(e=>e.name)}function W1(t){return t.filter(e=>Cs(e)).map(e=>e.name)}function Gb(t,e){let i;if(e){let a=Se(t).getFieldDomain(e);a instanceof by&&(i=a)}return i}function Qb(t,e){let i=e?.getName(t?.toString())??e?.getName(t)??e?.getName(Number(t));return i===null&&(i=void 0),i}function j1(t){let{queryObject:e,fieldName:i,fieldValue:a}=t;return mt(e)?void 0:Qb(a,Gb(e,i))}async function _1(t){let e=[];return t&&!Ze(t)?.isTable&&t.fieldsIndex&&(e=await su.getRendererFields(t.renderer,t.fieldsIndex)),e}function Zb(t){let e="/rest/services",i=t.toLowerCase(),a=i.indexOf(e);return i=a>-1?t.substring(0,a):t,`${i}/rest/info`}async function V1(t){let e=!0,i=".arcgis.com/",a=t?.url,r=a?.includes(i);if(a&&r&&Ze(t)?.sourceJSON?.serviceItemId!==void 0){let n=Zb(a);try{let s=(await La(n,{query:{f:"json"}})).data;if(s.owningTenant!==void 0&&s.owningSystemUrl!==void 0){let o=`${s.owningSystemUrl}/sharing/rest/portals/${s.owningTenant}`,l=(await La(o,{authMode:"auto",query:{f:"json"}})).data,d=new Sy({sourceJSON:l});await d.load(),e=d?.sourceJSON?.subscriptionInfo?.dataStoreLevel===void 0}}catch{}}return e}function Jb(t){let{queryObject:e,fieldToMatch:i,returnUndefinedIfNotFound:a}=t,r=Pi(e),n=Yb(r,i),s=a?"":i;return n?.name??s}function Yb(t,e){let i=t.find(a=>e===a.name);return i||(i=t.find(a=>e.toUpperCase()===a.name.toUpperCase())),i}function z1(t){let{fieldsList:e,queryObject:i,returnUndefinedIfNotFound:a}=t,r=e;return r!==void 0&&(r=r.map(n=>Jb({queryObject:i,fieldToMatch:n,returnUndefinedIfNotFound:a}))),r}function U1(t){let{queryObject:e,chartConfig:i,runtimeDataFilters:a,ignoreViewExtent:r,viewExtent:n}=t,{series:s,dataFilters:o}=i,{where:l,gdbVersion:d,timeExtent:c,geometry:u,distance:f,units:p,objectIds:h,spatialRelationship:b}=o??{},{where:m,gdbVersion:w,timeExtent:C,geometry:I,distance:O,units:P,objectIds:A,spatialRelationship:M}=a??{},N=s[0],{query:E}=N,{where:R}=E??{},k=Oe(s),L={...E};return L.where=Ra([l,m]),k!==F.BarAndLineSplitBy&&k!==F.BoxPlotMonoFieldAndSplitBy&&k!==F.BoxPlotMonoFieldAndCategoryAndSplitBy&&k!==F.BoxPlotMultiFieldsAndSplitBy&&k!==F.BarAndLineSplitByNoAggregation&&(L.where=Ra([L.where,R])),i.orderOptions?.orderByFields!==void 0&&(L.orderByFields=i.orderOptions.orderByFields),L.gdbVersion=w??d,L.timeExtent=ub(e,C??c),L.geometry=mt(e)?Ub({queryObject:e,defaultGeometry:I??u,ignoreViewExtent:r,viewExtent:n}):pb({queryObject:e,defaultGeometry:I??u,ignoreViewExtent:r}),L.distance=O??f,L.units=P??p,L.objectIds=A??h,L.spatialRelationship=M??b,E?.outStatistics?.[0]?.statisticType===pe.Count&&(L.returnDistinctValues=E?.returnDistinctValues??!1),L}var Kb=t=>{let e;if("portalItem"in t){let i=t.portalItem?.id;typeof i=="string"&&(e=i)}return e};function H1(t){let{view:e,portalItemId:i}=t,a;if(e&&i){let r=Array.from(e.map?.allLayers??[]).find(n=>Kb(n)===i);r&&(a=r)}return a}var Tr=["1.0.0","1.0.1","2.0.0","3.0.0","3.1.0","3.2.0","3.3.0","3.4.0","3.5.0","3.6.0","3.7.0","3.8.0","3.9.0","3.9.1","3.9.2","3.10.0","3.11.0","4.0.0","4.0.1","5.0.0","6.0.0","6.1.0","6.2.0","6.2.1","6.3.0","6.4.0","7.0.0","7.1.0","7.1.1","7.2.0","7.2.1","7.3.1","7.4.0","7.4.1","7.5.0","7.5.1","7.6.0","8.0.0","8.0.1","9.0.0","9.1.0","9.2.0","9.3.0","9.4.0","9.5.0","9.6.0","9.6.1","9.7.0","10.0.0","11.0.0","12.0.0","13.0.0","14.0.0","14.0.1","15.0.0","16.0.0","16.1.0","16.1.1","17.0.0","17.1.0","17.2.0","17.2.1","18.0.0","18.1.0","18.1.1","18.1.2","18.1.3","19.0.0","20.0.0","20.1.0","20.2.0","21.0.0","21.1.0","22.0.0","23.0.0","23.1.0","23.2.0","23.3.0","24.0.0","24.1.0","24.2.0","24.3.0","24.4.0","24.5.0","24.6.0","24.7.0","24.8.0","25.0.0"],Xb="1.0.0",ev="unrecognized.version",tv=[y.LineSeries,y.BarSeries,y.ComboLineAndBarSeries,y.RadarSeries];function ds(t,e){let i=0;if(t!==e){let a=t.split("."),r=e.split(".");for(let n=0;n<a.length;n+=1){let s=Number.parseInt(a[n],10),o=Number.parseInt(r[n],10);if(s>o||Number.isNaN(o)){i=1;break}if(s<o){i=-1;break}}}return i}function rv(t){return t!==void 0?/^([1-9]\d*|0)(\.(([1-9]\d*)|0)){2}$/u.test(t):!1}function iv(t){let e=Qt.Same,i=[];if(rv(t)&&t!==void 0){Tr.sort(ds);let a=ds(t,Tr[Tr.length-1]);if(a===1?e=Qt.Newer:a===-1&&(e=Qt.Older),e===Qt.Newer||e===Qt.Same)i.push(t);else{for(let r=Tr.length-2;r>=0;r-=1)if(ds(t,Tr[r])>=0){i=Tr.slice(r,Tr.length);break}i.length===0&&i.push(Xb)}}else e=Qt.Unrecognized,i.push(ev);return{versionStatus:e,versions:i}}function xs(t){let{series:e}=t,i=("showMean"in t?t.showMean:!1)===!0?e.find(a=>a.type===y.LineSeries):e[0];return i??=e[0],i}function G1(t,e){let i=t!==null?t.toString():null,a=e!=null?e.toString():null;return a!==null&&a!==i?de.SFS:de.SLS}function Ai(t,e){let i="";return t!==void 0&&t.includes("=")&&(i=e!==!1?mu({value:t.split("=")[0]}):t.split("=")[0].trim()),i}function ht(t){let{where:e,normalize:i,keepSurroundingQuotes:a,escape:r}=t,n="";return e!==void 0&&e.includes("=")&&(n=e.split("=").slice(1).join("=").trim(),n==="null"?n=null:n.trim()!==""&&!Number.isNaN(Number(n))?n=Number(n):i===!1?r===!0&&(n=qg(n)):n=mu({value:n,keepSurroundingQuotes:a,escape:r})),n}function ti(t){let e=!1;if(t===void 0||t==="")e=!0;else if(t.includes("=")){let i=Ai(t,!1),a=ht({where:t,normalize:!1});e=i===`${a}`}return e}function Q1(t){let{where:e,normalize:i,escape:a}=t,r=i===void 0?!0:i,n=Ai(e),s=ht({where:e,normalize:r,keepSurroundingQuotes:!0,escape:a}),o=e;return n!==""&&s!==""&&(o=`${n}=${s}`),o}function av(t){let e=F.PieFromCategory;return t[0].query?.outStatistics===void 0?e=F.PieNoAggregation:t[0].query?.groupByFieldsForStatistics===void 0&&(e=F.PieFromFields),e}function nv(t){let e=F.BarAndLineMonoField,i=t[0].query?.where;return t[0].query?.groupByFieldsForStatistics===void 0&&(t[0].query?.outStatistics??[]).length>0?e=F.BarAndLineFromFields:i===void 0&&t[0].query?.outStatistics===void 0?e=F.BarAndLineNoAggregation:ti(i)?t.length>1&&(e=F.BarAndLineMultiFields):e=t[0].query?.outStatistics===void 0?F.BarAndLineSplitByNoAggregation:F.BarAndLineSplitBy,e}function sv(t){let e=F.BoxPlotMonoField,i=t.length===1,a=t.find(o=>o.type===y.LineSeries)??t[0],{x:r}=a,n="y"in a?a.y:"",s=a.query?.where;return r===ka?typeof n=="object"&&n.length>1?ti(s)?i&&(e=F.BoxPlotMultiFields):e=F.BoxPlotMultiFieldsAndSplitBy:i?e=F.BoxPlotMonoField:ti(s)||(e=F.BoxPlotMonoFieldAndSplitBy):i?e=F.BoxPlotMonoFieldAndCategory:ti(s)?e=F.BoxPlotMultiFieldsAndCategory:e=F.BoxPlotMonoFieldAndCategoryAndSplitBy,e}function Oe(t){let e=F.NonSpecific;if(t?.[0]!==void 0)switch(J(t)){case y.PieSeries:e=av(t);break;case y.RadarSeries:case y.BarSeries:case y.LineSeries:case y.ComboLineAndBarSeries:e=nv(t);break;case y.BoxPlotSeries:e=sv(t);break}return e}function Eu(t){let{seriesConfig:e,xAxisValueFormatType:i,setTimeBinningInfoWhenNotProvided:a,queryObject:r}=t,n=!1;if(!mt(r)&&Se(r)?.fields?.find(s=>s.name===e.x)?.type!=="time-only"&&ii(e)&&e.binTemporalData!==!1&&i===y.DateAxisFormat){let s=Oe([e]);if(e.temporalBinning&&s!==F.BarAndLineNoAggregation&&s!==F.BarAndLineSplitByNoAggregation){let{unit:o,size:l}=e.temporalBinning;n=a===!0||l!==void 0&&l>0&&o!==void 0}}return n}function ii(t){return tv.includes(t?.type)}function ov(t){let{previousConfig:e,newConfig:i,behaviorAfterLimit:a}=t,r=e.series,n=i.series,s=!1,o=!1;(a===bs.RenderUpToTheLimit||e.orderOptions?.data===void 0||i.orderOptions?.data===void 0)&&(o=!yr(e.orderOptions?.orderByFields,i.orderOptions?.orderByFields));let l=Za(r.map(c=>c.query),["where","outStatistics[0].outStatisticFieldName","outStatistics[0].onStatisticField"]),d=Za(n.map(c=>c.query),["where","outStatistics[0].outStatisticFieldName","outStatistics[0].onStatisticField"]);return s=!yr(l,d),s||o}function lv(t,e){return JSON.stringify(t.dataFilters)!==JSON.stringify(e.dataFilters)}function dv(t,e){let i=!1;if(e.length&&t.length)if(e[0].x!==t[0].x)i=!0;else{let a=J(t);if(a!==y.HistogramSeries&&a!==y.GaugeSeries){let r=_t(t).sort(),n=_t(e).sort();i=JSON.stringify(r)!==JSON.stringify(n)}}return i}function cv(t,e){return(t??!1)!==(e?.filterBySelection??!1)}function uv(t,e){return ii(t.series[0])&&ii(e.series[0])&&(t.series[0].binTemporalData??j.binTemporalData)!==(e.series[0].binTemporalData??j.binTemporalData)}function pv(t,e){let i=t.axes?.[0].valueFormat.type,a=e.axes?.[0].valueFormat.type,r=Oe(e.series),n=r===F.BarAndLineNoAggregation||r===F.BarAndLineSplitByNoAggregation,s=i===y.DateAxisFormat&&a===y.NumberAxisFormat,o=i===y.NumberAxisFormat&&a===y.DateAxisFormat;return i!==a&&(n||s||o)}function fv(t){let{previousSeries:e,newConfig:i,setTimeBinningInfoWhenNotProvided:a,queryObject:r}=t,n=i.series?.[0],s=!1,o=!1;if(n&&ii(n)&&Eu({seriesConfig:n,xAxisValueFormatType:Ny(i),setTimeBinningInfoWhenNotProvided:a,queryObject:r})){let l=e[0];s=JSON.stringify(l.temporalBinning)!==JSON.stringify(n.temporalBinning),o=a===!0&&(n.temporalBinning?.size??0)<=0}return{timeBinningChanged:s,newTimeBinningWillBeCalculated:o}}function eu(t,e){return e.length!==t.length}function hv(t,e){return Jc(t)!==Jc(e)}function mv(t,e){return JSON.stringify(t.series[0]?.valueConversion)!==JSON.stringify(e.series[0]?.valueConversion)}function yv(t,e){return JSON.stringify(t.series[0]?.xTemporalBinning)!==JSON.stringify(e.series[0]?.xTemporalBinning)||JSON.stringify(t.series[0]?.yTemporalBinning)!==JSON.stringify(e.series[0]?.yTemporalBinning)||(t.firstDayOfWeek??7)!==(e.firstDayOfWeek??7)||t.outTimeZone!==e.outTimeZone||(t.nullPolicy??Ri.Null)!==(e.nullPolicy??Ri.Null)}function gv(t,e){return(t.hideEmptyRowsAndColumns??!1)!==(e.hideEmptyRowsAndColumns??!1)}function bv(t,e){return(t.includeLeapDay??ri.heatChart.includeLeapDay)!==(e.includeLeapDay??ri.heatChart.includeLeapDay)}function vv(t){let{previousConfig:e,newConfig:i,fieldList:a}=t,r=e.series[0],n=i.series[0],s=!1;if(r.type===y.ScatterSeries&&n.type===y.ScatterSeries&&a&&a.length>0){let o=new Set(r.additionalTooltipFields||[]),l=new Set(n.additionalTooltipFields||[]);if(!yr(o,l)){let d=Array.from(l).filter(c=>!o.has(c));d.length>0&&(s=a?.some(c=>d.includes(c.name)&&!Cs(c)))}}return s}function Z1(t,e){return(t.colorMatch??!1)!==(e.colorMatch??!1)}function J1(t,e){return(t.stackedType??Xe.Side)!==(e.stackedType??Xe.Side)}function Ma(t){let e={...t};return e.position===void 0&&(e.position=ri.heatChart.legend.position),e}function Y1(t,e){let i=t.legend??{type:y.Legend},a=e.legend??{type:y.Legend},r=Ma(i),n=Ma(a);return!yr(r,n)}function K1(t,e){let i=t.legend??{type:y.Legend},a=e.legend??{type:y.Legend},r=Ma(i),n=Ma(a);return r.position!==n.position}function X1(t,e){return JSON.stringify(t.series[0]?.gradientRules)!==JSON.stringify(e.series[0]?.gradientRules)}function eI(t,e){return t.series[0].heatRulesType!==e.series[0].heatRulesType}function tI(t){let{oldConfig:e,newConfig:i}=t,a=!1,r=e.series[0],n=i.series[0],s=J(e.series),o=J(i.series);if(s===y.PieSeries&&o===y.PieSeries){let{slices:l,sliceGrouping:d}=r,{slices:c,sliceGrouping:u}=n,f=l?.map(m=>({sliceId:m.sliceId,label:m.label})),p=c?.map(m=>({sliceId:m.sliceId,label:m.label})),h=d?.label,b=u?.label;a=JSON.stringify(f)!==JSON.stringify(p)||JSON.stringify(h)!==JSON.stringify(b)}return a}function Sv(t){let{previousSelectionOIDs:e,options:i}=t,a=!1;return i?.filterBySelection===!0&&(a=e?.length!==i?.selectionData?.selectionOIDs?.length||!yr(e,i?.selectionData?.selectionOIDs)),a}function rI(t,e){return t?.length!==e?.length||t?.some((i,a)=>{let r=ht({where:i?.query?.where}),n=ht({where:e?.[a]?.query?.where});return r!==n})}function iI(t,e){let i=_t(t),a=_t(e);return JSON.stringify(i)!==JSON.stringify(a)}function aI(t,e){let i,a,r,n;return ii(t.series[0])&&(i=t.series[0].temporalBinning?.unit,r=t.series[0].temporalBinning?.size),ii(e.series[0])&&(a=e.series[0].temporalBinning?.unit,n=e.series[0].temporalBinning?.size),Zc(i,r)&&!Zc(a,n)}function nI(t,e){return t.axes?.length===3&&e.axes?.length===2||t.axes?.length===2&&e.axes?.length===3}function sI(t,e){return JSON.stringify(t.series.map(i=>i.assignToSecondValueAxis??!1))!==JSON.stringify(e.series.map(i=>i.assignToSecondValueAxis??!1))}function oI(t,e){let i=t.axes?.map(r=>r?.guides?.map(n=>n?.above===!0)),a=e.axes?.map(r=>r?.guides?.map(n=>n?.above===!0));return JSON.stringify(i)!==JSON.stringify(a)}function lI(t,e){return Yc(t)!==Yc(e)}function dI(t,e){return(t.showOutliers??j.boxPlot.boxPlotOutliersVisibility)!==(e.showOutliers??j.boxPlot.boxPlotOutliersVisibility)}function cI(t,e){return(t.standardizeValues??j.boxPlot.boxPlotStandardizeValuesVisibility)!==(e.standardizeValues??j.boxPlot.boxPlotStandardizeValuesVisibility)}function uI(t,e){return JSON.stringify(t?.chartRenderer)!==JSON.stringify(e?.chartRenderer)}function pI(t,e){let i=t.axes?.[0].valueFormat.type===y.DateAxisFormat?t.axes[0].valueFormat.intlOptions.timeZone:void 0,a=e.axes?.[0].valueFormat.type===y.DateAxisFormat?e.axes[0].valueFormat.intlOptions.timeZone:void 0;return i!==a}function fI(t,e){let i=!1,a=t.series[0],r=e.series[0];if(a.type===y.ScatterSeries&&r.type===y.ScatterSeries){let{sizePolicy:n}=a,{sizePolicy:s}=r;i=JSON.stringify(n)!==JSON.stringify(s)}return i}function hI(t,e){let i=!1,a=t.series[0],r=e.series[0];if(a.type===y.ScatterSeries&&r.type===y.ScatterSeries){let{sizePolicy:n}=a,{sizePolicy:s}=r;i=n===void 0&&s!==void 0||n!==void 0&&s===void 0||n?.field!==s?.field}return i}function mI(t){let{previousConfig:e,newConfig:i,options:a,previousFilterBySelection:r,previousSelectionOIDs:n,fieldList:s,queryObject:o}=t,{series:l}=i,{series:d}=e,c=J(l),u=!1,f=!1,p=!1,h={common:{layerChanged:!1,queryChanged:!1,xOrYChanged:!1,numberOfSeriesChanged:!1,configFiltersChanged:!1,filterBySelectionChanged:!1,dataForFilterBySelectionChanged:!1,binTemporalDataChanged:!1,timeBinningChanged:!1,newTimeBinningWillBeCalculated:!1,valueFormatChangeRequiresNewData:!1},histogram:{dataPropsChanged:!1},gauge:{valueConversionChanged:!1},boxPlot:{showMeanChanged:!1},heatChart:{binningChanged:!1,hideEmptyRowsAndColumnsChanged:!1,includeLeapDay:!1},scatterPlot:{tooltipFieldsChanged:!1}};switch(h.common.queryChanged=ov({previousConfig:e,newConfig:i,behaviorAfterLimit:a?.chartLimits?.behaviorAfterLimit}),h.common.configFiltersChanged=lv(e,i),h.common.xOrYChanged=dv(d,l),h.common.filterBySelectionChanged=cv(r,a),h.common.dataForFilterBySelectionChanged=Sv({previousSelectionOIDs:n,options:a}),h.common.binTemporalDataChanged=uv(e,i),h.common.valueFormatChangeRequiresNewData=pv(e,i),h.common={...h.common,...fv({previousSeries:d,newConfig:i,setTimeBinningInfoWhenNotProvided:a?.setTimeBinningInfoWhenNotProvided,queryObject:o})},c){case y.HistogramSeries:h.histogram.dataPropsChanged=Rg(d,l)||Ng(d,l);break;case y.LineSeries:case y.BarSeries:case y.ComboLineAndBarSeries:h.common.numberOfSeriesChanged=eu(d,l);break;case y.BoxPlotSeries:Pr(e)&&Pr(i)&&(h.common.numberOfSeriesChanged=eu(d,l),h.boxPlot.showMeanChanged=hv(e,i));break;case y.GaugeSeries:h.gauge.valueConversionChanged=mv(e,i);break;case y.HeatSeries:Na(e)&&Na(i)&&(h.heatChart.binningChanged=yv(e,i),h.heatChart.hideEmptyRowsAndColumnsChanged=gv(e,i),h.heatChart.includeLeapDay=bv(e,i));break;case y.ScatterSeries:h.scatterPlot.tooltipFieldsChanged=vv({previousConfig:e,newConfig:i,fieldList:s});break}return f=Object.values(h.common).some(b=>b),(h.gauge.valueConversionChanged||h.histogram.dataPropsChanged||h.boxPlot.showMeanChanged||h.heatChart.binningChanged||h.heatChart.hideEmptyRowsAndColumnsChanged||h.heatChart.includeLeapDay||h.scatterPlot.tooltipFieldsChanged)&&(p=!0),u=f||p,{dataUpdateNeeded:u,dataUpdateDetails:h}}function yI(t,e){let i=Ga(t);if(i&&i.series.length>1){let{preferLabel:a,orderBy:r}=i.orderOptions?.series??{};if(r!==void 0){let n;if(a===!1){let s=Oe(i.series);n=yu(s)?"splitByValue":"name"}else n="name";i.series.sort((s,o)=>{let l,d;n==="splitByValue"?(l=ht({where:s.query?.where})??"",d=ht({where:o.query?.where})??""):(l=s.name,d=o.name);let[c,u]=r.toUpperCase()===ke.Descending?[d,l]:[l,d];return typeof c=="string"&&typeof u=="string"?c.localeCompare(u):Number(c)-Number(u)})}}return mg({data:i?.series.map(a=>a.id),htmlContainer:e}),i}function wv(t){let e,i=t?.orderOptions?.data;return t.series?.length>0&&i?.orderType===et.MultiAxes&&(e=[],e.push({sortingField:Or.xField,orderBy:i.orderByX??ke.Ascending}),e.push({sortingField:i.orderByY!==void 0?Or.yField:"",orderBy:i.orderByY})),e}function Iv(t){let e=Oe(t.series),i;if(t.orderOptions?.data!==void 0){let a=t.orderOptions?.data?.orderType??et.Category,r=t.orderOptions?.data&&"orderBy"in t.orderOptions.data?t.orderOptions.data.orderBy:void 0;if(a===et.Category)a=t.series[0].x;else{a===et.Mean?a=he.Average:a===et.Median&&(a=he.Median);let n=e===F.BoxPlotMultiFieldsAndCategory&&typeof t.series[0].y=="string"?t.series[0].y:void 0,s=Ai(t.series[0].query?.where),o=ht({where:t.series[0].query?.where});a=Fi({key:a,y:n,chartSubType:e,splitBy:s,splitByValue:o}),Array.isArray(r)&&(r=ke.Ascending)}i={sortingField:a,orderBy:r??ke.Ascending,preferLabel:t.orderOptions.data&&"preferLabel"in t.orderOptions.data?t.orderOptions.data.preferLabel??!0:!0}}return i}function Cv(t){let e=t.series[0],{x:i,y:a}=e,r=Oe(t.series)===F.PieFromFields,n=Oe(t.series)===F.BarAndLineFromFields,s,o="",l;if(t.orderOptions?.data!==void 0){let d=t.orderOptions.data&&"preferLabel"in t.orderOptions.data?t.orderOptions.data.preferLabel:!0;if(o=t.orderOptions?.data?.orderType??et.Category,l=t.orderOptions?.data&&"orderBy"in t.orderOptions.data?t.orderOptions.data.orderBy:void 0,o===et.Category?r?o=Lt:o=d?i:ri.originalCategoryValue:o=r?Fr:[a].flat()[0],o!==void 0&&o!==""){let c=Ss(t);if(J(t.series)!==y.PieSeries&&o!==i&&t.series?.length>1)switch(c){case Xe.Stacked:o=j.technicalSortingFieldBySum;break;case Xe.Stacked100:o=j.technicalSortingFieldByPercent;break;case Xe.Side:typeof a=="string"&&(o=a);break}s={sortingField:o,orderBy:l??ke.Ascending,preferLabel:d}}}else(n||r)&&t.series[0].query?.outStatistics&&(l=t.series[0].query.outStatistics.map(d=>d.onStatisticField),l?.length>1&&(s={sortingField:ri.originalCategoryValue,orderBy:l,preferLabel:!1}));return s}function tu(t){let e,i=J(t.series);if(t.series?.length>0){let a;switch(i){case y.HeatSeries:Na(t)&&(e=wv(t));break;case y.BoxPlotSeries:Pr(t)&&(a=Iv(t));break;case y.LineSeries:case y.BarSeries:case y.RadarSeries:case y.PieSeries:a=Cv(t);break}!e&&a&&(e=[],e.push(a))}return e}function gI(t){let{oldConfig:e,newConfig:i,dataWasUpdated:a}=t,r=J(i.series),n=Oe(i.series),s=!1,o=!1;if(n!==F.BoxPlotMonoField&&n!==F.BoxPlotMonoFieldAndSplitBy&&i.orderOptions?.data!==void 0){let l=tu(e),d=tu(i);if(r===y.HeatSeries){let c=l?l[0]:void 0,u=d?d[0]:void 0,f=l?l[1]:void 0,p=d?d[1]:void 0;o=e.orderOptions?.data?.orderType!==i.orderOptions?.data?.orderType||c?.sortingField!==u?.sortingField||c?.orderBy!==u?.orderBy||f?.sortingField!==p?.sortingField||f?.orderBy!==p?.orderBy,s=o||a}else{let c=l?l[0]:void 0,u=d?d[0]:void 0;o=e.orderOptions?.data?.orderType!==i.orderOptions?.data?.orderType||c?.sortingField!==u?.sortingField||c?.orderBy!==u?.orderBy||(c?.preferLabel??!0)!==(u?.preferLabel??!0),s=o||a}}return s}function xv(t){let e=t===void 0||t==="";return{[he.Average]:`${e?"":`${t}_`}${he.Average}`,[he.Min]:`${e?"":`${t}_`}${he.Min}`,[he.Max]:`${e?"":`${t}_`}${he.Max}`,[he.FirstQuartile]:`${e?"":`${t}_`}${he.FirstQuartile}`,[he.Median]:`${e?"":`${t}_`}${he.Median}`,[he.ThirdQuartile]:`${e?"":`${t}_`}${he.ThirdQuartile}`,[he.IQR]:`${e?"":`${t}_`}${he.IQR}`,[he.Outlier]:`${e?"":`${t}_`}${he.Outlier}`,[he.StandardDeviation]:`${e?"":`${t}_`}${he.StandardDeviation}`}}function Tv(t){return"subType"in t&&t.subType===js.FeatureGauge}function Fv(t){let e;return t!==void 0&&("bins"in t?e=t.bins:"dataItems"in t&&(e=t.dataItems)),e}function Ov(t){return t===F.BoxPlotMultiFields||t===F.BoxPlotMultiFieldsAndCategory||t===F.BoxPlotMultiFieldsAndSplitBy}function Fi(t){let{key:e,y:i,chartSubType:a,splitBy:r,splitByValue:n,showOutliers:s,standardizeValues:o}=t,l=n,d=xv(i)[e];return s===!0&&(e===he.Min||e===he.Max)&&(d=`${d}${fg}`),o===!0&&(Ov(a)||e===he.Outlier)&&(d=`${d}${hg}`),(n===void 0||`${n}`.trim()==="")&&(l=ht({where:r,normalize:!0,escape:!1})),l!==void 0&&`${l}`.trim()!==""&&(d=`${l}${d!==""?`_${d}`:""}`),d}function cs(t){let{dataItem:e,y:i,splitBy:a,showOutliers:r}=t,n=Fi({key:he.FirstQuartile,y:i,splitBy:a,showOutliers:r}),s=Fi({key:he.ThirdQuartile,y:i,splitBy:a,showOutliers:r});return Number.isFinite(e[n])||Number.isFinite(e[s])}function Pv(t){let{configSeries:e,boxPlotDataItem:i,yList:a,showOutliers:r}=t,n=Oe(e),s=!1;switch(n){case F.BoxPlotMonoField:case F.BoxPlotMultiFields:case F.BoxPlotMonoFieldAndCategory:s=cs({dataItem:i,showOutliers:r});break;case F.BoxPlotMultiFieldsAndCategory:s=a.some(o=>cs({dataItem:i,y:o,showOutliers:r}));break;case F.BoxPlotMonoFieldAndSplitBy:case F.BoxPlotMultiFieldsAndSplitBy:case F.BoxPlotMonoFieldAndCategoryAndSplitBy:s=e.some(o=>cs({dataItem:i,splitBy:o.query?.where,showOutliers:r}));break;default:s=!1;break}return s}function Du(t){return t.map(e=>e.id).filter(e=>e!==void 0)}function _t(t,e){let i=[],a=e??Du(t),r=Oe(t);return i=t.filter(n=>a.includes(n.id)).map(n=>{let s="y"in n?n.y:void 0;return s!==void 0&&r===F.BarAndLineSplitByNoAggregation&&(s=`${s.toString()}_${ht({where:n.query?.where,keepSurroundingQuotes:!1,escape:!1})}`),s}).filter(n=>n!==void 0),Array.from(new Set(i.flat()))}function Av(t){let{seriesConfig:e,filteredSeriesIds:i,showMean:a}=t,r=[];if(a===!0){let n=e.find(s=>s.type===y.BoxPlotSeries);n!==void 0&&"y"in n&&(r=[n.y].flat())}else r=_t(e,i);return r}function sr(t,e){return t===null&&e===!0||Number.isFinite(t)}function Ev(t){let{dataItem:e,x:i,y:a,nullAsValid:r=!1}=t;return e[i]!==void 0&&(typeof e[i]!="number"||Number.isFinite(e[i]))&&sr(e[a],r)}function bI(t){let{chartConfig:e,nullAsValid:i=!1,dataSet:a}=t,r=!0;if(e!==void 0){let n=J(e.series);if(a===void 0||a.length===0)r=!0;else{let s=_t(e.series);r=!a.some(o=>{let l=!1;switch(n){case y.HistogramSeries:{let d=o;l=sr(d.minValue,i)&&sr(d.maxValue,i)}break;case y.ScatterSeries:{let d=o,{x:c,y:u}=e.series[0];l=sr(d[c],i)&&sr(d[u],i)}break;case y.ComboLineAndBarSeries:case y.RadarSeries:case y.LineSeries:case y.BarSeries:{let d=o,{x:c}=e.series[0];l=s.some(u=>Ev({dataItem:d,x:c,y:u,nullAsValid:i}));break}case y.BoxPlotSeries:{if(Pr(e)){let d=e.series;l=Pv({configSeries:d,boxPlotDataItem:o,yList:s,showOutliers:e.showOutliers})}break}case y.PieSeries:{let d=o,{x:c,y:u}=e.series[0];Oe(e.series)===F.PieFromFields&&(c=Lt,u=Fr);let f=d[u];l=d[c]!==void 0&&d[c]!==null&&!ks(f)&&sr(Number(f),i)}break;case y.GaugeSeries:{let{x:d}=e.series[0];l=sr(o[d],i)}break;case y.HeatSeries:l=a.some(d=>sr(d[Or.valueField],i));break}return l})}}return r}function Dv(t,e){let i=new Map,a=e??Du(t);return t.forEach(r=>{if(a.includes(r.id)&&"y"in r){let n=i.get(r.type)??[];n.push(r.y),i.set(r.type,n)}}),i}function Lv(t){let{seriesConfig:e,filteredSeriesIds:i,filteredData:a}=t,r=Dv(e,i),n=e.find(d=>d.type===y.LineSeries||d.type===y.RadarSeries)?.stackNegativeValuesToBaseline??!0,s=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER,l=!1;return a.forEach(d=>{r.forEach(c=>{if(n){let u=0,f=0,p=!1,h=!1;for(let b=0;b<c.length;b+=1){let m=d[c[b]];Number.isFinite(m)&&(m<0?(f+=m,h=!0,l=!0):(u+=m,p=!0))}s=p?Math.max(s,u):s,o=h?Math.min(o,f):o,p&&!h&&(o=Math.min(o,u)),!p&&h&&(s=Math.max(s,f)),p&&u<=0&&(l=!0)}else{let u=0;for(let f=0;f<c.length;f+=1){let p=d[c[f]];u+=p,s=Math.max(s,u),o=Math.min(o,u)}(s<=0||o<=0)&&(l=!0)}})}),{stackedMinY:o,stackedMaxY:s,dataHasNegativeValues:l}}function $v(t){let{dataItem:e,...i}=t,a=Fi({key:he.Min,...i}),r=Fi({key:he.Max,...i}),n=e[a],s=e[r];return{min:n,max:s}}function ru(t){let e=Number.NaN,i=Number.NaN,a,r,{chartConfig:n,chartData:s,filteredSeriesIds:o}=t,{series:l}=n;if(l?.length>0){let{x:d}=l[0],c=J(n.series);if(c===y.HistogramSeries&&s.length>0){let u=s[0]?.[Uc.Start],f=s[s.length-1]?.[Uc.End];a=typeof u=="number"?u:a,r=typeof f=="number"?f:r}else{let u=s.filter(f=>f[d]!==null);if({min:a,max:r}=fs(u,f=>f[d]),n.axes?.[0]?.valueFormat.type===y.DateAxisFormat&&a!==void 0&&r!==void 0&&([a,r]=[new Date(a).valueOf(),new Date(r).valueOf()]),c===y.BoxPlotSeries){e=Number.MAX_SAFE_INTEGER,i=Number.MIN_SAFE_INTEGER;let f=_t(l,o),p=Oe(l),h="standardizeValues"in n?n.standardizeValues===!0:void 0,b=n.series.map(m=>m.visible!==!1?ht({where:m.query?.where}):"");b.length===0&&b.push(" "),u.forEach(m=>{f.forEach(w=>{let C=p===F.BoxPlotMultiFieldsAndCategory?w:void 0;b.forEach(I=>{let{min:O,max:P}=$v({y:C,splitByValue:I,chartSubType:p,showOutliers:!1,standardizeValues:h,dataItem:m});O!=null&&O<e&&(e=O),P!=null&&P>i&&(i=P)})})})}else switch(Ss(n)){case Xe.Stacked100:case Xe.Stacked:{let{stackedMinY:f,stackedMaxY:p}=Lv({seriesConfig:l,filteredData:u,filteredSeriesIds:o});e=f,i=p;break}case Xe.Side:default:{e=Number.MAX_SAFE_INTEGER,i=Number.MIN_SAFE_INTEGER,_t(l,o).forEach(f=>{let{min:p,max:h}=fs(u,b=>b[f]);p!==void 0&&p<e&&(e=p),h!==void 0&&h>i&&(i=h)});break}}}}return{minY:e,maxY:i,minX:a,maxX:r}}function Nv(t){let{chartConfig:e,isSecondValueAxis:i,seriesIds:a}=t,r=a;return e.axes?.length===3&&(r=e.series.map(n=>{let s="";return(a===void 0||a.includes(n.id))&&(i===!0&&"assignToSecondValueAxis"in n&&n.assignToSecondValueAxis===!0||i!==!0&&(!("assignToSecondValueAxis"in n)||n.assignToSecondValueAxis!==!0))&&({id:s}=n),s}).filter(n=>n!=="")),r}function Rv(t){let e=!1;if(t){let i=t.axes?.[0],a=i?.isLogarithmic===!0,r=i?.valueFormat?.type;e=(r===y.NumberAxisFormat||r===y.DateAxisFormat)&&a}return e}function iu(t,e){let i=!1;return Number.isFinite(t)&&t!==Number.MAX_SAFE_INTEGER&&Number.isFinite(e)&&e!==Number.MIN_SAFE_INTEGER&&(i=t<=0||e<=0),i}function Mv(t){let{chartConfig:e,chartData:i,axisConfigIndex:a}=t,r=!1;if(a===0){if(Rv(e)){let{minX:n,maxX:s}=ru({chartConfig:e,chartData:i});r=iu(n,s)}}else{let n=Nv({chartConfig:e,isSecondValueAxis:a===2}),{minY:s,maxY:o}=ru({chartConfig:e,chartData:i,filteredSeriesIds:n});r=iu(s,o)}return r}function vI(t){let{chartConfig:e,axisConfigIndex:i,chartData:a}=t,r=!0,n=e?.axes?.[i];return e&&a&&n?.isLogarithmic===!0&&(r=!Mv({chartConfig:e,chartData:a,axisConfigIndex:i})),r}function kv(t,e){let i=t;if(e?.[0]!==void 0&&Oe(e)===F.PieFromFields){let{x:a,y:r}=e[0];(Ha(t)?i:i.dataItems).forEach(n=>(Lt in n&&a!==Lt&&(n[a]=n[a]!==void 0?n[a]:n[Lt],delete n[Lt]),Fr in n&&r!==Fr&&(n[r]=n[r]!==void 0?n[r]:n[Fr],delete n[Fr]),n))}return i}function Bv(t,e){let i=J(e),a=t,r=e?.[0];if((i===y.PieSeries||i===y.BoxPlotSeries||i===y.LineSeries||i===y.RadarSeries||i===y.BarSeries||i===y.HeatSeries||i===y.ComboLineAndBarSeries)&&r!==void 0){let n=Ha(t),s=n?t:t.dataItems;if(t!==void 0){let{originalCategoryValue:o,originalYCategoryValue:l,originalDateValue:d,xAxisField:c}=j,u=i===y.HeatSeries?Or.xField:r.x,f=i===y.HeatSeries?Or.yField:void 0;s=s.map(p=>{let h=p[u];p[d]!==void 0?h=p[d]:p[o]!==void 0&&(h=p[o]);let b={...p,[u]:h};if(delete b[d],delete b[o],delete b[c],f){let m=p[f];p[l]!==void 0&&(m=p[l]),b={...b,[f]:m},delete b[l]}return b}),n?a=s:"dataItems"in a&&(a.dataItems=s)}}return a}function au(t){let e={...t};delete e[j.technicalSortingFieldBySum],delete e[j.technicalSortingFieldByPercent],delete e[j.pieChart.technicalFieldSlicePercent],delete e[j.pieChart.technicalFieldGroupedSlices],delete e[j.lastTemporalBin],delete e[j.originalServerBinningRange],delete e[j.technicalFieldSplitByField],delete e[xt.uniqueIdsName],Object.keys(e).filter(a=>a.includes(j.rendererSymbolField)).forEach(a=>delete e[a]);let i=zg(e);return i.isInItem&&delete e[i.expr??""],e}function qv(t,e){let i=t,a=J(e),r=Fv(i);if(r!==void 0)switch(a){case y.ComboLineAndBarSeries:case y.BarSeries:case y.LineSeries:case y.RadarSeries:case y.PieSeries:{r=r.map(au),i={dataItems:r};let{timeIntervalInfo:n,serverLimitReached:s}=t??{};Qa(n)||(i.timeIntervalInfo=n),s!==void 0&&(i.serverLimitReached=s)}break;case y.ScatterSeries:i={...i,dataItems:r.map(au)};break}return i}var SI=(t,e)=>{let i=10**e;return Math.round(t*i)/i};function wI(t){let{data:e,seriesConfig:i}=t,a=Ga(e);return a!==void 0&&(a=Bv(a,i),a=qv(a,i),a=kv(a,i)),a}var ei={$schema:"http://json-schema.org/draft-07/schema#",definitions:{ValueConversion:{type:"object",properties:{factor:{type:"number",description:"A numeric value multiplying the value to convert."},offset:{type:"number",description:"A numeric offset to apply to the value to convert."}},description:"Stores information regarding a numeric conversion.",title:"ValueConversion"},WebChartAxisScrollBar:{type:"object",properties:{visible:{type:"boolean",description:"Scrollbar visibility.",default:!1},width:{type:"number",description:"Scrollbar width in pixels."},color:{$ref:"#/definitions/Color",description:"Scrollbar color."},gripSize:{type:"number",description:"Grip size in pixels."},margin:{type:"number",description:"Margin between the scrollbar and the series container in pixels."}},description:"Describes the properties of an axis scrollbar.",title:"WebChartAxisScrollBar"},Color:{type:"array",items:{type:"number"},minItems:4,maxItems:4,description:"Represents the color information (R, G, B, A).",title:"Color"},WebChartTextSymbol:{type:"object",properties:{xoffset:{type:["number","string"],description:"Horizontal offset. Can be a number for a fixed value in pixels, or a string such as `25%` for a value relative to the label's container width."},yoffset:{type:["number","string"],description:"Vertical offset. Can be a number for a fixed value in pixels, or a string such as `25%` for a value relative to the label's container height."},angle:{type:"number",description:"Rotation angle of the label."},style:{type:"string",description:"Label style."},type:{type:"string",const:"esriTS"},color:{$ref:"#/definitions/Color"},backgroundColor:{$ref:"#/definitions/Color"},borderLineSize:{type:"number"},borderLineColor:{$ref:"#/definitions/Color"},haloSize:{type:"number"},haloColor:{$ref:"#/definitions/Color"},verticalAlignment:{type:"string",enum:["baseline","bottom","middle","top"]},horizontalAlignment:{type:"string",enum:["center","justify","left","right"]},rightToLeft:{type:"boolean"},kerning:{type:"boolean"},font:{$ref:"#/definitions/IFont"},text:{type:"string",description:"Only applicable when specified as a client-side graphic."}},required:["type"],description:"Represents a text symbol.",title:"WebChartTextSymbol"},'Omit<ITextSymbol,("angle"|"style"|"xoffset"|"yoffset")>':{$ref:"#/definitions/Pick%3CITextSymbol%2CExclude%3C(%22type%22%7C%22color%22%7C%22backgroundColor%22%7C%22borderLineSize%22%7C%22borderLineColor%22%7C%22haloSize%22%7C%22haloColor%22%7C%22verticalAlignment%22%7C%22horizontalAlignment%22%7C%22rightToLeft%22%7C%22kerning%22%7C%22font%22%7C%22text%22%7C%22angle%22%7C%22xoffset%22%7C%22yoffset%22%7C%22style%22%7Cstring)%2C(%22angle%22%7C%22style%22%7C%22xoffset%22%7C%22yoffset%22)%3E%3E",title:'Omit<ITextSymbol,("angle"|"style"|"xoffset"|"yoffset")>'},'Pick<ITextSymbol,Exclude<("type"|"color"|"backgroundColor"|"borderLineSize"|"borderLineColor"|"haloSize"|"haloColor"|"verticalAlignment"|"horizontalAlignment"|"rightToLeft"|"kerning"|"font"|"text"|"angle"|"xoffset"|"yoffset"|"style"|string),("angle"|"style"|"xoffset"|"yoffset")>>':{type:"object",properties:{type:{type:"string",const:"esriTS"},color:{$ref:"#/definitions/Color"},backgroundColor:{$ref:"#/definitions/Color"},borderLineSize:{type:"number"},borderLineColor:{$ref:"#/definitions/Color"},haloSize:{type:"number"},haloColor:{$ref:"#/definitions/Color"},verticalAlignment:{type:"string",enum:["baseline","bottom","middle","top"]},horizontalAlignment:{type:"string",enum:["center","justify","left","right"]},rightToLeft:{type:"boolean"},kerning:{type:"boolean"},font:{$ref:"#/definitions/IFont"},text:{type:"string",description:"Only applicable when specified as a client-side graphic."}},required:["type"],title:'Pick<ITextSymbol,Exclude<("type"|"color"|"backgroundColor"|"borderLineSize"|"borderLineColor"|"haloSize"|"haloColor"|"verticalAlignment"|"horizontalAlignment"|"rightToLeft"|"kerning"|"font"|"text"|"angle"|"xoffset"|"yoffset"|"style"|string),("angle"|"style"|"xoffset"|"yoffset")>>'},IFont:{type:"object",properties:{family:{type:"string"},size:{type:"number"},style:{type:"string",enum:["italic","normal","oblique"]},weight:{type:"string",enum:["bold","bolder","lighter","normal"]},decoration:{type:"string",enum:["line-through","none","underline"]}},title:"IFont"},WebChartText:{type:"object",properties:{type:{type:"string",const:"chartText",description:"A unique string identifier for the `ChartText` object. This value is `chartText`."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},content:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains the styling information and text content."}},required:["type","content"],description:"Stores information on how some text is rendered on the chart and whether it is visible or not.",title:"WebChartText"},WebChartCursorCrosshair:{type:"object",properties:{type:{type:"string",const:"cursorCrosshair",description:"Represents a unique string identifier for the chart cursor's crosshair."},style:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling information on how the chart cursor's crosshair should be rendered."},verticalLineVisible:{type:"boolean",description:"Indicates whether the vertical crosshair line should be displayed.",default:!1},horizontalLineVisible:{type:"boolean",description:"Indicates whether the horizontal crosshair line should be displayed.",default:!1}},required:["type"],description:"JSON representation of the cursor's crosshair for a chart.",title:"WebChartCursorCrosshair"},ISimpleLineSymbol:{type:"object",properties:{type:{type:"string",const:"esriSLS"},style:{$ref:"#/definitions/SimpleLineSymbolStyle"},color:{$ref:"#/definitions/Color"},width:{type:"number"}},required:["type"],title:"ISimpleLineSymbol"},ISymbol:{type:"object",properties:{type:{$ref:"#/definitions/SymbolType"},style:{type:"string"}},required:["type"],title:"ISymbol"},SymbolType:{type:"string",enum:["esriPFS","esriPMS","esriSFS","esriSLS","esriSMS","esriTS"],title:"SymbolType"},SimpleLineSymbolStyle:{type:"string",enum:["esriSLSDash","esriSLSDashDot","esriSLSDashDotDot","esriSLSDot","esriSLSNull","esriSLSSolid"],title:"SimpleLineSymbolStyle"},WebChartLegend:{type:"object",properties:{type:{type:"string",const:"chartLegend",description:"A unique string identifier for the `ChartLegend` object. This value is `chartLegend`."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},title:{$ref:"#/definitions/WebChartText",description:"Contains styling information on how the title of the legend box should be rendered."},body:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains styling information on how legend body (excluding the `title`) should be rendered. Will use default styling if not provided."},position:{$ref:"#/definitions/WebChartLegendPositions",description:'Positions the legends at `"right"`, `"left"`, `"top"`, or `"bottom"` of the chart.',default:"`right`"},maxHeight:{type:["number","null"],description:"Legend's maximum height. If not set the legend will occupy the same height as the series container.",default:null},roundMarkers:{type:"boolean",description:"Allows the legend markers to be displayed as circles.\n- `false` or `undefined`: rounded rectangles\n- `true`: circles",default:!1}},required:["type"],description:"JSON representation of the chart's legend.",title:"WebChartLegend"},WebChartLegendPositions:{type:"string",enum:["left","right","top","bottom"],title:"WebChartLegendPositions"},WebChartNullCategory:{type:"object",properties:{text:{type:"string",description:"Specifies the text to use for the null category. If none is provided, the default `null` text will be used."},symbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling information on how the overlay should be rendered. If not provided a default style is applied.",default:"1 - symbol.outline.width"}},title:"WebChartNullCategory"},ISimpleFillSymbol:{type:"object",properties:{type:{type:"string",const:"esriSFS"},style:{$ref:"#/definitions/SimpleFillSymbolStyle"},color:{$ref:"#/definitions/Color"},outline:{$ref:"#/definitions/ISimpleLineSymbol"}},required:["type"],title:"ISimpleFillSymbol"},SimpleFillSymbolStyle:{type:"string",enum:["esriSFSBackwardDiagonal","esriSFSCross","esriSFSDiagonalCross","esriSFSForwardDiagonal","esriSFSHorizontal","esriSFSNull","esriSFSSolid","esriSFSVertical"],title:"SimpleFillSymbolStyle"},WebChartPieChartLegend:{type:"object",properties:{type:{type:"string",const:"chartLegend",description:"A unique string identifier for the `ChartLegend` object. This value is `chartLegend`."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},title:{$ref:"#/definitions/WebChartText",description:"Contains styling information on how the title of the legend box should be rendered."},body:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains styling information on how legend body (excluding the `title`) should be rendered. Will use default styling if not provided."},position:{$ref:"#/definitions/WebChartLegendPositions",description:'Positions the legends at `"right"`, `"left"`, `"top"`, or `"bottom"` of the chart.',default:"`right`"},maxHeight:{type:["number","null"],description:"Legend's maximum height. If not set the legend will occupy the same height as the series container.",default:null},roundMarkers:{type:"boolean",description:"Allows the legend markers to be displayed as circles.\n- `false` or `undefined`: rounded rectangles\n- `true`: circles",default:!1},displayCategory:{type:"boolean",description:"Indicates whether the category associated to a slice is to be displayed in the legend.",default:!0},displayNumericValue:{type:"boolean",description:"Indicates whether the numeric value associated to a slice is to be displayed in the legend. If both `displayNumericValue` and `displayPercentage` are true on a same label, they will be displayed as `percentage (value)`",default:!1},displayPercentage:{type:"boolean",description:"Indicates whether the percentage to a slice is to be displayed in the legend. If both `displayNumericValue` and `displayPercentage` are true on a same label, they will be displayed as `percentage (value)`",default:!1},labelMaxWidth:{type:"number",description:"Maximum width in pixels of the label displaying the slice name. If the label is larger than the maximum width, it will automatically wrap.",default:200},valueLabelMaxWidth:{type:"number",description:"Maximum width in pixels of the value label displaying the slice value. If the label is larger than the maximum width, it will automatically wrap.",default:200}},required:["type"],description:"Specific legend for pie charts",title:"WebChartPieChartLegend"},WebChartOverlay:{type:"object",properties:{type:{type:"string",const:"chartOverlay",description:"A unique string identifier for the `ChartOverlay` object. This value is `chartOverlay`."},created:{type:"boolean",description:"Determines whether the overlay is created under the hood. It may or may not be visible.",default:!1},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},symbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling information on how the overlay should be rendered. If not provided a default style is applied."}},required:["type"],description:"JSON representation of the chart's overlays such as the trendline in scatterplot, and the median overlay in histogram.",title:"WebChartOverlay"},NumberFormatOptions:{type:"object",properties:{type:{type:"string",const:"number",description:"Represents a unique string identifier for the `NumberFormatOptions` object. For the `NumberFormatOptions` object, it is `number`. It can help to differentiate numerical (value) axis from other types of axes such as date-time axis and category axis."},intlOptions:{$ref:"#/definitions/Intl.NumberFormatOptions",description:"Represents the JS native [Intl.NumberFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat), which is based on [CLDR](http://cldr.unicode.org/translation/numbers-currency/number-patterns) specifications."}},required:["type","intlOptions"],description:"Defines how the numerical(value) axis data should be formatted.",title:"NumberFormatOptions"},"Intl.NumberFormatOptions":{type:"object",properties:{localeMatcher:{type:"string",enum:["lookup","best fit"]},style:{$ref:"#/definitions/Intl.NumberFormatOptionsStyle"},currency:{type:"string"},currencyDisplay:{$ref:"#/definitions/Intl.NumberFormatOptionsCurrencyDisplay"},useGrouping:{$ref:"#/definitions/Intl.NumberFormatOptionsUseGrouping"},minimumIntegerDigits:{type:"number"},minimumFractionDigits:{type:"number"},maximumFractionDigits:{type:"number"},minimumSignificantDigits:{type:"number"},maximumSignificantDigits:{type:"number"}},title:"Intl.NumberFormatOptions"},"Intl.NumberFormatOptionsStyle":{title:"Intl.NumberFormatOptionsStyle"},"Intl.NumberFormatOptionsCurrencyDisplay":{title:"Intl.NumberFormatOptionsCurrencyDisplay"},"Intl.NumberFormatOptionsUseGrouping":{type:"boolean",title:"Intl.NumberFormatOptionsUseGrouping"},WebChartDateTimeUnitFormatOptions:{type:"object",properties:{year:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},month:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},day:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},hour:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},minute:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},second:{$ref:"#/definitions/Intl.DateTimeFormatOptions"}},description:"Interface used by the axis `valueFormat` property to describe how to format specific date and time units when displayed on the axis.",title:"WebChartDateTimeUnitFormatOptions"},"Intl.DateTimeFormatOptions":{type:"object",properties:{localeMatcher:{type:"string",enum:["best fit","lookup"]},weekday:{type:"string",enum:["long","short","narrow"]},era:{type:"string",enum:["long","short","narrow"]},year:{type:"string",enum:["numeric","2-digit"]},month:{type:"string",enum:["numeric","2-digit","long","short","narrow"]},day:{type:"string",enum:["numeric","2-digit"]},hour:{type:"string",enum:["numeric","2-digit"]},minute:{type:"string",enum:["numeric","2-digit"]},second:{type:"string",enum:["numeric","2-digit"]},timeZoneName:{type:"string",enum:["short","long","shortOffset","longOffset","shortGeneric","longGeneric"]},formatMatcher:{type:"string",enum:["best fit","basic"]},hour12:{type:"boolean"},timeZone:{type:"string"}},title:"Intl.DateTimeFormatOptions"},DateTimeFormatOptions:{type:"object",properties:{type:{type:"string",const:"date",description:"Represents a unique string identifier for the `NumberFormatOptions` object. For the `NumberFormatOptions` object, it is `date`. It can help to differentiate date-time axis from other types of axes such as numeric (value) axis and category axis."},intlOptions:{$ref:"#/definitions/Intl.DateTimeFormatOptions",description:"Represent the JS native [Intl.DateTimeFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat), which is based on [CLDR](http://cldr.unicode.org/translation/date-time-1/date-time-patterns) specifications."},formatPerDateTimeUnit:{$ref:"#/definitions/WebChartDateTimeUnitFormatOptions",description:"Represents how to format specific date and time units when displayed on the axis, independently from the `intlOptions`."}},required:["type","intlOptions"],description:"Defines how the `DateTime` axis data should be formatted.",title:"DateTimeFormatOptions"},CategoryFormatOptions:{type:"object",properties:{type:{type:"string",const:"category",description:"Represents a unique string identifier for the `CategoryFormatOptions` object. For the `CategoryFormatOptions` object, it is `category`. It can help to differentiate category axis from other types of axes such as date-time axis and numeric (value) axis."},characterLimit:{type:["number","null"],description:"Represents a positive integer which represents the limit on the number of characters to be displayed for all the category strings. The truncated string are appended with `...`. If property is not present or `null`, no truncation is done."}},required:["type"],description:"Defines how the category axis data (categories) should be formatted.",title:"CategoryFormatOptions"},WebChartGuide:{type:"object",properties:{type:{type:"string",const:"chartGuide",description:"Represents a unique string identifier for the `Guide` object. For the `Guide` class, it is `chartGuide`."},start:{anyOf:[{type:"string",format:"date-time"},{type:"number"},{type:"string"},{type:"null"}],description:"Determines the value where the guide should begin."},end:{anyOf:[{type:"string",format:"date-time"},{type:"number"},{type:"string"},{type:"null"}],description:"Determines the value where the guide should end. If it is not specified, a line guide is used, otherwise a fill/rectangular guide is used."},style:{anyOf:[{$ref:"#/definitions/ISimpleFillSymbol"},{$ref:"#/definitions/ISimpleLineSymbol"}],description:"Determines how the guide should be rendered."},name:{type:"string",description:"A unique string identifier which is used to refer to a particular guide. It is displayed in the charts config UI to differentiate between different guides."},label:{$ref:"#/definitions/WebChartTextSymbol",description:"Defines a text label for the given guide. It is displayed on the chart next to the concerned guide and is styled using **esriTS** format."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},above:{type:"boolean",description:"Determines whether the guide should be rendered on top of (overlapping) the series or under the series.",default:!1},tooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the guide's tooltip background (false) or its outline (true).",default:!1}},required:["type","start","style","name"],description:"JSON representation of the chart's guide object. Can be used to represent both line and fill guides.",title:"WebChartGuide"},WebChartAxis:{type:"object",properties:{type:{type:"string",const:"chartAxis",description:"Represents a unique string identifier for the `WebChartAxis` object. For `ChartAxis` object, it is `chartAxis`."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},isLogarithmic:{type:"boolean",description:"Specifies whether the axis has a logarithmic scale or not.",default:!1},title:{$ref:"#/definitions/WebChartText",description:"Contains styling information on how the title of the axis should be rendered"},valueFormat:{anyOf:[{$ref:"#/definitions/CategoryFormatOptions"},{$ref:"#/definitions/DateTimeFormatOptions"},{$ref:"#/definitions/NumberFormatOptions"}],description:"Specifies how numerical/categorical/date-time values should be formatted."},minimum:{type:["number","null"],description:"The minimum value which the axis should represent, when it is not defined or null, then the minimum value for the corresponding axis is automatically calculated."},maximum:{type:["number","null"],description:"The maximum value which the axis should represent, when it is not defined or null, then the maximum value for the corresponding axis is automatically calculated."},grid:{$ref:"#/definitions/ISimpleLineSymbol",description:"Dictates how the grid lines associated with a particular axis should be rendered."},guides:{type:"array",items:{$ref:"#/definitions/WebChartGuide"},description:"Represent an array of guides that should be rendered onto the axis."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling information on how the axis line should be rendered. If not provided a default style is applied."},labels:{$ref:"#/definitions/WebChartText",description:"Contains styling information on how the axis labels should be rendered."},scrollbar:{$ref:"#/definitions/WebChartAxisScrollBar",description:"Represents the axis scrollbar style and visibility."},displayZeroLine:{type:"boolean",description:"Represents an option to hide/un-hide the zero line on value axis.",default:!1},integerOnlyValues:{type:"boolean",description:"Represents an option to show `integer-only` values for a value axis",default:!1},displayCursorTooltip:{type:"boolean",description:"Specifies whether cursor tooltip should be displayed.",default:!1},buffer:{type:"boolean",description:"Allows setting a buffer to a **value axis** to provide some space around the series.",default:!1},tickSpacing:{type:"number",description:`The desired minimum distance between two adjacent axis ticks. The actual distance may fluctuate depending on the chart's size. When not provided a default value is assigned according to the axis type and axis labels behavior.
4
4
 
5
5
  **Note**: This property is not applicable to gauge charts.`,minimum:1},dateBaseInterval:{$ref:"#/definitions/TimeIntervalInfo",description:"Specifies the base interval on a date axis. Will be ignored on the other axis types. It will be overridden by the properties from the series `binTemporalData` when provided."}},required:["type","valueFormat","labels"],description:"JSON representation of the chart's axis object",title:"WebChartAxis"},TimeIntervalInfo:{type:"object",properties:{unit:{$ref:"#/definitions/WebChartTemporalBinningUnits"},size:{type:"number"}},title:"TimeIntervalInfo"},WebChartTemporalBinningUnits:{type:"string",enum:["seconds","minutes","hours","days","weeks","months","quarters","years"],description:"The temporal binning units",title:"WebChartTemporalBinningUnits"},WebChartGaugeAxisTick:{type:"object",properties:{type:{type:"string",const:"gaugeAxisTick",description:"Represents a unique string identifier for the `GaugeAxisTick` object. For `WebChartGaugeAxisTick` object, it is `gaugeAxisTick`."},visible:{type:"boolean",description:"Determines the visibility of the axis ticks.",default:!0}},required:["type"],description:"JSON representation of the gauge axis ticks. Currently only used by `WebChartGaugeAxis`.",title:"WebChartGaugeAxisTick"},WebChartNeedle:{type:"object",properties:{type:{type:"string",const:"gaugeNeedle",description:"Represents a unique string identifier for the `ChartNeedle` object. For `WebChartNeedle` object, it is `gaugeNeedle`."},visible:{type:"boolean",description:"Hides or shows the needle.",default:!0},symbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling information on how the needle should be rendered."},startWidth:{type:["number","null"],description:"Represents the needle's thickness at the bottom (chart's center) in pixels.",minimum:1,default:10},endWidth:{type:["number","null"],description:"Represents the needle's thickness at the top in pixels.",minimum:1,default:1},innerRadius:{type:["number","null"],description:"Represents the size of the hole in the middle of the chart. Can be visualized when guides are displayed.",minimum:0,maximum:100,default:25},displayPin:{type:"boolean",description:"Hides or shows the needle's pin (centroid circle).",default:!1}},required:["type"],description:"JSON representation of a gauge needle.",title:"WebChartNeedle"},WebChartGaugeAxis:{type:"object",properties:{type:{type:"string",const:"chartAxis",description:"Represents a unique string identifier for the `WebChartAxis` object. For `ChartAxis` object, it is `chartAxis`."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},isLogarithmic:{type:"boolean",description:"Specifies whether the axis has a logarithmic scale or not.",default:!1},title:{$ref:"#/definitions/WebChartText",description:"Contains styling information on how the title of the axis should be rendered"},valueFormat:{anyOf:[{$ref:"#/definitions/CategoryFormatOptions"},{$ref:"#/definitions/DateTimeFormatOptions"},{$ref:"#/definitions/NumberFormatOptions"}],description:"Specifies how numerical/categorical/date-time values should be formatted."},minimum:{type:["number","null"],description:"The minimum value which the axis should represent, when it is not defined or null, then the minimum value for the corresponding axis is automatically calculated."},maximum:{type:["number","null"],description:"The maximum value which the axis should represent, when it is not defined or null, then the maximum value for the corresponding axis is automatically calculated."},grid:{$ref:"#/definitions/ISimpleLineSymbol",description:"Dictates how the grid lines associated with a particular axis should be rendered."},guides:{type:"array",items:{$ref:"#/definitions/WebChartGuide"},description:"Represent an array of guides that should be rendered onto the axis."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling information on how the axis line should be rendered. If not provided a default style is applied."},labels:{$ref:"#/definitions/WebChartText",description:"Contains styling information on how the axis labels should be rendered."},scrollbar:{$ref:"#/definitions/WebChartAxisScrollBar",description:"Represents the axis scrollbar style and visibility."},displayZeroLine:{type:"boolean",description:"Represents an option to hide/un-hide the zero line on value axis.",default:!1},integerOnlyValues:{type:"boolean",description:"Represents an option to show `integer-only` values for a value axis",default:!1},displayCursorTooltip:{type:"boolean",description:"Specifies whether cursor tooltip should be displayed.",default:!1},buffer:{type:"boolean",description:"Allows setting a buffer to a **value axis** to provide some space around the series.",default:!1},tickSpacing:{type:"number",description:`The desired minimum distance between two adjacent axis ticks. The actual distance may fluctuate depending on the chart's size. When not provided a default value is assigned according to the axis type and axis labels behavior.
6
6