@arcgis/map-components 6.0.0-next.20 → 6.0.0-next.21

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 (342) hide show
  1. package/dist/cdn/{VQDXE456.js → 22RLIDCP.js} +1 -1
  2. package/dist/cdn/{CD2XIXN5.js → 27TSPXYV.js} +1 -1
  3. package/dist/cdn/{THIUS6HZ.js → 2GPVEWYM.js} +1 -1
  4. package/dist/cdn/{UHP6ZS6H.js → 2IBL2HKQ.js} +1 -1
  5. package/dist/cdn/{VYM3TR3Q.js → 2NM6UWC4.js} +1 -1
  6. package/dist/cdn/{CYUO2UNT.js → 2PLAZVGP.js} +1 -1
  7. package/dist/cdn/{M6COQWFB.js → 2RQGZLOJ.js} +1 -1
  8. package/dist/cdn/{AD2IA3IS.js → 2SQGIY7T.js} +1 -1
  9. package/dist/cdn/{R2KMEDRH.js → 2UAH624K.js} +1 -1
  10. package/dist/cdn/{C2YP473B.js → 2WJ53TNR.js} +1 -1
  11. package/dist/cdn/{IEZGQ2LC.js → 2YXWKKNB.js} +1 -1
  12. package/dist/cdn/{VTER7AQ2.js → 32526XJ7.js} +1 -1
  13. package/dist/cdn/{WQF3SS53.js → 34XDXFK6.js} +1 -1
  14. package/dist/cdn/3B4VHD67.js +2 -0
  15. package/dist/cdn/{LKMQHTBY.js → 3EXEL7AM.js} +1 -1
  16. package/dist/cdn/{MGQA3G43.js → 3GN3DAON.js} +1 -1
  17. package/dist/cdn/{AI3ETXGZ.js → 3MWXYWKR.js} +1 -1
  18. package/dist/cdn/{J7VECW7F.js → 3SXQLU4S.js} +1 -1
  19. package/dist/cdn/{WD4TPDI6.js → 3W7KESW7.js} +1 -1
  20. package/dist/cdn/{Y3S6WJN2.js → 43IGD6V3.js} +1 -1
  21. package/dist/cdn/{UKB45JOM.js → 4DPAOAMZ.js} +1 -1
  22. package/dist/cdn/{YAVRBZ5C.js → 4FFEPX2D.js} +1 -1
  23. package/dist/cdn/{IZKG2DP3.js → 4H2REMNG.js} +1 -1
  24. package/dist/cdn/{VHYR3UPY.js → 4I6F64B2.js} +1 -1
  25. package/dist/cdn/{DUKK2PHD.js → 4IG6WUCI.js} +1 -1
  26. package/dist/cdn/4LNXCEM5.js +2 -0
  27. package/dist/cdn/4LO7PNX7.js +2 -0
  28. package/dist/cdn/{ALZFPS2D.js → 4P4NKBQC.js} +1 -1
  29. package/dist/cdn/{SQI6CU3W.js → 4PDZTEB2.js} +1 -1
  30. package/dist/cdn/{LPXSF4M6.js → 4WZZZTT5.js} +1 -1
  31. package/dist/cdn/{XSEDC76K.js → 55VX76T5.js} +1 -1
  32. package/dist/cdn/{UBCDF55B.js → 57LPG3BE.js} +1 -1
  33. package/dist/cdn/{6BMZP72L.js → 5A7LDBDR.js} +1 -1
  34. package/dist/cdn/{6NCZTAOF.js → 5DN4ONEW.js} +1 -1
  35. package/dist/cdn/{YMAEN7NR.js → 5FBHHKRV.js} +1 -1
  36. package/dist/cdn/{DYUFBVXE.js → 5GFPOTOB.js} +1 -1
  37. package/dist/cdn/{LL3DXDKE.js → 5V6BNJ5O.js} +1 -1
  38. package/dist/cdn/{QABRDQFJ.js → 5V6K43GW.js} +1 -1
  39. package/dist/cdn/{GD4XR5XA.js → 5XZKVLHC.js} +1 -1
  40. package/dist/cdn/{F2EOAAKS.js → 62OAO327.js} +1 -1
  41. package/dist/cdn/{3YQDH3QT.js → 6DRXFSTW.js} +1 -1
  42. package/dist/cdn/{YFYFQWXG.js → 6G5QADEG.js} +1 -1
  43. package/dist/cdn/{4IJC4V6Z.js → 6HDYZ7WW.js} +1 -1
  44. package/dist/cdn/6KYZMT4A.js +2 -0
  45. package/dist/cdn/{XNHTHY3W.js → 6QWLMG5M.js} +1 -1
  46. package/dist/cdn/{NEQJAZLZ.js → 6WFVZM5S.js} +1 -1
  47. package/dist/cdn/{HJZRNUBU.js → 6Y7Q7GRB.js} +1 -1
  48. package/dist/cdn/{D7T33U5Z.js → 74PUSJU5.js} +1 -1
  49. package/dist/cdn/{H7QBBTTP.js → 7EIN5VCY.js} +1 -1
  50. package/dist/cdn/{KQZYGYQO.js → 7EKBNXGL.js} +1 -1
  51. package/dist/cdn/7ILT5PDJ.js +2 -0
  52. package/dist/cdn/{IU7BOICX.js → 7JK4JGPG.js} +1 -1
  53. package/dist/cdn/{KRJCOTGC.js → 7JPHMESH.js} +1 -1
  54. package/dist/cdn/{XCHCC6HT.js → 7LO6ACC7.js} +1 -1
  55. package/dist/cdn/{P7XX5RSZ.js → 7V7LQ35Q.js} +1 -1
  56. package/dist/cdn/{27HLXBPP.js → 7Y4SF2NT.js} +1 -1
  57. package/dist/cdn/{XFPFS6PS.js → 7Y6PADB5.js} +1 -1
  58. package/dist/cdn/{CYXNSUYF.js → 7ZWBGSCM.js} +1 -1
  59. package/dist/cdn/{OLEUR4YB.js → A5IFDSOU.js} +1 -1
  60. package/dist/cdn/{5FA37EZ6.js → AHWBCZBO.js} +1 -1
  61. package/dist/cdn/{4EGKJPJ2.js → AKGUTL2V.js} +1 -1
  62. package/dist/cdn/AMRGLUBB.js +2 -0
  63. package/dist/cdn/{RQ2MM3DQ.js → AOGDXJ2J.js} +1 -1
  64. package/dist/cdn/ARN5ZKLI.js +2 -0
  65. package/dist/cdn/{KLY36SOM.js → AUP633OS.js} +1 -1
  66. package/dist/cdn/{JCCTYIZ2.js → B2TICPHR.js} +1 -1
  67. package/dist/cdn/{CI6VWQ63.js → BDZHLGVT.js} +1 -1
  68. package/dist/cdn/{H6SIAY6D.js → BFYJTV6Q.js} +1 -1
  69. package/dist/cdn/{7NB627L5.js → BJ35LPCU.js} +1 -1
  70. package/dist/cdn/{66RQ6K6J.js → BJI5DVB5.js} +1 -1
  71. package/dist/cdn/{5Y45LLBY.js → BJJZGYBG.js} +1 -1
  72. package/dist/cdn/{EPNWPJZ6.js → BLYXYNGB.js} +1 -1
  73. package/dist/cdn/{F4AJCUZ6.js → BOPNSNUT.js} +1 -1
  74. package/dist/cdn/{LMI7MLKS.js → BUH3AQ7E.js} +1 -1
  75. package/dist/cdn/{Y7ILKQZU.js → BVRQWRKX.js} +1 -1
  76. package/dist/cdn/{JSHCS4Y6.js → C6K7TZ27.js} +1 -1
  77. package/dist/cdn/{2ZNQABOI.js → CLICUS2A.js} +1 -1
  78. package/dist/cdn/{2JOUXCA5.js → COSETVX4.js} +1 -1
  79. package/dist/cdn/{EBQ537XN.js → CWCVAPXD.js} +1 -1
  80. package/dist/cdn/{YCQWS3JT.js → CXXBV6RJ.js} +1 -1
  81. package/dist/cdn/{YR4YEJ2N.js → DCO26B7J.js} +1 -1
  82. package/dist/cdn/{KV5K3ATE.js → DDGUDJJZ.js} +1 -1
  83. package/dist/cdn/{ASHCHM4V.js → DEW5IWND.js} +1 -1
  84. package/dist/cdn/{OBQUHPHJ.js → DFNH6YRR.js} +1 -1
  85. package/dist/cdn/{DE4OSJG5.js → DFTYQJWJ.js} +1 -1
  86. package/dist/cdn/{ZOLOOVHX.js → DFZ22GLY.js} +1 -1
  87. package/dist/cdn/{R3VD3PEO.js → DGSTI5DI.js} +1 -1
  88. package/dist/cdn/{5JRZJANG.js → DS6EUOYE.js} +1 -1
  89. package/dist/cdn/{ZDLHDQCX.js → DWPXOIRF.js} +1 -1
  90. package/dist/cdn/{2T3ALADJ.js → DZIJPJS3.js} +1 -1
  91. package/dist/cdn/{6DDIOOI6.js → E6ZXXC74.js} +1 -1
  92. package/dist/cdn/{RTZG4WTI.js → EB4V6SPF.js} +1 -1
  93. package/dist/cdn/{EXSZCSCL.js → ECUVJOIW.js} +1 -1
  94. package/dist/cdn/{M6CSJLXC.js → ED2T4ASN.js} +1 -1
  95. package/dist/cdn/{LB52TH7O.js → EP27GLNL.js} +1 -1
  96. package/dist/cdn/{BE5M3N7T.js → EXB4CY2Y.js} +1 -1
  97. package/dist/cdn/{QMH2OBF6.js → EZHYSI6R.js} +1 -1
  98. package/dist/cdn/{RUMWDBIU.js → F2DTKJTK.js} +1 -1
  99. package/dist/cdn/{NU75HQA2.js → F74YQZ2X.js} +1 -1
  100. package/dist/cdn/{DIXSGC2P.js → FDESUDJ5.js} +1 -1
  101. package/dist/cdn/{BWM4ZVN7.js → FGU7NUST.js} +1 -1
  102. package/dist/cdn/{KQDXSX5Y.js → FH6Q5A5L.js} +1 -1
  103. package/dist/cdn/{Z24QDG3E.js → FMLDKHWP.js} +2 -2
  104. package/dist/cdn/{7EIWYGE2.js → FOKE5ILO.js} +1 -1
  105. package/dist/cdn/{WALR7J3I.js → FQ3ZJA4Q.js} +1 -1
  106. package/dist/cdn/{QYOTQQAL.js → FZGMIIBX.js} +1 -1
  107. package/dist/cdn/{DQSP4RFL.js → G2ACNJGG.js} +1 -1
  108. package/dist/cdn/{6S6CZJKN.js → G2PLGAUY.js} +1 -1
  109. package/dist/cdn/{X5WMEO4X.js → G56N6RF4.js} +1 -1
  110. package/dist/cdn/{CESPPRYQ.js → GEOME3IC.js} +1 -1
  111. package/dist/cdn/{WV2GLDRQ.js → GFC6LS4L.js} +1 -1
  112. package/dist/cdn/{WNRWNZGL.js → GKNGEZCO.js} +1 -1
  113. package/dist/cdn/{SW6UOJIE.js → GPYZM5CC.js} +1 -1
  114. package/dist/cdn/{U7FYQAUZ.js → GQQTIX2X.js} +1 -1
  115. package/dist/cdn/{KM7PWRG2.js → H4BTVLCG.js} +1 -1
  116. package/dist/cdn/{M76PF7SP.js → HLOH2QPV.js} +1 -1
  117. package/dist/cdn/{C6XAWMZK.js → I52P5EXK.js} +1 -1
  118. package/dist/cdn/{TTGQ4Y7X.js → IFLDLAK4.js} +1 -1
  119. package/dist/cdn/{XYEUSNMJ.js → IN7TMVRK.js} +1 -1
  120. package/dist/cdn/{IAIVTB2Q.js → IOUO7KBT.js} +1 -1
  121. package/dist/cdn/{LXLZB2JC.js → IZFEOYED.js} +1 -1
  122. package/dist/cdn/{L4HKKYNC.js → JBD7Q5YD.js} +1 -1
  123. package/dist/cdn/{GWXQ6CHV.js → JN6RVFAM.js} +1 -1
  124. package/dist/cdn/{RYQW6GPV.js → JUOOKKZJ.js} +1 -1
  125. package/dist/cdn/{NY7PPWFQ.js → JUYPQUPQ.js} +1 -1
  126. package/dist/cdn/{35EYUDTJ.js → KAG4QZ7K.js} +1 -1
  127. package/dist/cdn/{OFBCNFBW.js → KE2ER3F7.js} +1 -1
  128. package/dist/cdn/{AA4RF7H6.js → KIHYSYOL.js} +1 -1
  129. package/dist/cdn/{IQ4ADF3I.js → KIWV2RIN.js} +1 -1
  130. package/dist/cdn/{3ZFHZPWM.js → KXD4VEKE.js} +1 -1
  131. package/dist/cdn/{SDMJGSR7.js → L4WLEN3C.js} +1 -1
  132. package/dist/cdn/{STOPSNWH.js → L5XC4FXT.js} +1 -1
  133. package/dist/cdn/{AXJE2SZV.js → L6FLCEH6.js} +1 -1
  134. package/dist/cdn/{BRGIHQI3.js → LILX2DJE.js} +1 -1
  135. package/dist/cdn/{ZN52ACGS.js → LKGURYDH.js} +1 -1
  136. package/dist/cdn/{CEW6QJGT.js → LRH4FKHU.js} +1 -1
  137. package/dist/cdn/{BNZFCSS2.js → LSLTIN2Q.js} +1 -1
  138. package/dist/cdn/{BK2UM27Y.js → LTFGTX7S.js} +1 -1
  139. package/dist/cdn/{T2UN4CJT.js → LUW2PXWZ.js} +1 -1
  140. package/dist/cdn/{QFWFBHIF.js → LWVYNWD5.js} +1 -1
  141. package/dist/cdn/{NIMNZJJZ.js → LXHZGIW5.js} +1 -1
  142. package/dist/cdn/{TJC7VHRZ.js → LXJURAXP.js} +1 -1
  143. package/dist/cdn/{3XEUTP6J.js → M37TWKYP.js} +1 -1
  144. package/dist/cdn/{SMRY445Z.js → M3CIFZFR.js} +1 -1
  145. package/dist/cdn/{5P7WPXOY.js → M5OK7RKI.js} +1 -1
  146. package/dist/cdn/{RLYKTTAI.js → M7MRLBZA.js} +1 -1
  147. package/dist/cdn/{QYYYQIAI.js → MA2DWIGR.js} +1 -1
  148. package/dist/cdn/{6XODSQWR.js → MBLS5ES4.js} +1 -1
  149. package/dist/cdn/{EVQL7FMR.js → MDS3NVWM.js} +1 -1
  150. package/dist/cdn/{K7OB5AHB.js → MGH6EHT7.js} +1 -1
  151. package/dist/cdn/{OT43XHBV.js → MNL7ONFB.js} +1 -1
  152. package/dist/cdn/{FNJBBQT5.js → N4D5I6Y4.js} +1 -1
  153. package/dist/cdn/{5RCFYMHK.js → NHMHVWNB.js} +1 -1
  154. package/dist/cdn/{XDQ6UHVN.js → NKFAPBY3.js} +1 -1
  155. package/dist/cdn/{LDC5FSWA.js → NQ3COROI.js} +1 -1
  156. package/dist/cdn/{454VHWQQ.js → NTHSQXKG.js} +1 -1
  157. package/dist/cdn/{5VXEMMLV.js → NTT5IV4A.js} +1 -1
  158. package/dist/cdn/{7QA26M4F.js → NZQLQGTQ.js} +1 -1
  159. package/dist/cdn/{UJLIKFS6.js → O46PVNMT.js} +1 -1
  160. package/dist/cdn/{AWB7XOHF.js → O5HQ5YZK.js} +1 -1
  161. package/dist/cdn/{FFVPO4JB.js → OJJSIN3V.js} +1 -1
  162. package/dist/cdn/{U7WRQCRV.js → OLY5EME5.js} +1 -1
  163. package/dist/cdn/{D6GJRZJV.js → ONYCZO7Y.js} +1 -1
  164. package/dist/cdn/{TIUFHDP2.js → OQ6SYZBT.js} +1 -1
  165. package/dist/cdn/{4EHW2LXW.js → ORVSAF3Z.js} +1 -1
  166. package/dist/cdn/{AVLV4PPI.js → OZF64H7N.js} +1 -1
  167. package/dist/cdn/P3565WG3.js +2 -0
  168. package/dist/cdn/{5EBCPTE5.js → P65FMRMP.js} +1 -1
  169. package/dist/cdn/{AB74IWXX.js → PCXDOSKQ.js} +1 -1
  170. package/dist/cdn/{B7D5ZTB2.js → PFSIUSDJ.js} +1 -1
  171. package/dist/cdn/{I3FQUA77.js → PHVKEWZ7.js} +1 -1
  172. package/dist/cdn/{XX6G24PV.js → PKYYNRBS.js} +1 -1
  173. package/dist/cdn/{7IGSTLKW.js → PQ7NUE5C.js} +2 -2
  174. package/dist/cdn/{M2HYKS62.js → PRUHLC54.js} +1 -1
  175. package/dist/cdn/{RSNXBYXL.js → PXDX3LCI.js} +1 -1
  176. package/dist/cdn/PYBUTNHM.js +2 -0
  177. package/dist/cdn/Q6RSVQNE.js +2 -0
  178. package/dist/cdn/{GIBXI44G.js → Q7GF26CL.js} +1 -1
  179. package/dist/cdn/{QPHKPPYM.js → QAOT2TJ6.js} +1 -1
  180. package/dist/cdn/{MRCZ6R25.js → QET5SVDO.js} +1 -1
  181. package/dist/cdn/QKGJVGXJ.js +2 -0
  182. package/dist/cdn/{KIFEVB5D.js → QUPDTNAC.js} +1 -1
  183. package/dist/cdn/{OISNNHIG.js → QVJ2FUNW.js} +1 -1
  184. package/dist/cdn/{NR2RFSZB.js → QZVF23GH.js} +1 -1
  185. package/dist/cdn/{XOOSPWUF.js → RBRDUDEY.js} +1 -1
  186. package/dist/cdn/{7465ANAR.js → REB4CHAK.js} +1 -1
  187. package/dist/cdn/{F2QSG3HU.js → RINX3CTL.js} +1 -1
  188. package/dist/cdn/{YNMIPIKK.js → S4L4V6FJ.js} +1 -1
  189. package/dist/cdn/{4JL3FLRV.js → SAQ5BNZJ.js} +1 -1
  190. package/dist/cdn/{R5DBF7SZ.js → SDLZ4BNM.js} +1 -1
  191. package/dist/cdn/{SBYVR52H.js → SI2DEXWH.js} +1 -1
  192. package/dist/cdn/{UQLRFL2S.js → SIT5NBLS.js} +1 -1
  193. package/dist/cdn/{GCTF7CS7.js → SJGQALDG.js} +1 -1
  194. package/dist/cdn/{XYQWC4QA.js → SJGWHUCR.js} +1 -1
  195. package/dist/cdn/{QE7SN2DZ.js → SKAZPI3A.js} +1 -1
  196. package/dist/cdn/{ZNAOFUAU.js → SU2SAOBL.js} +1 -1
  197. package/dist/cdn/{CBAI4VLY.js → SXW4GFL3.js} +1 -1
  198. package/dist/cdn/{IU5QHF6T.js → T3MDSQ3T.js} +1 -1
  199. package/dist/cdn/T4Z2B3T7.js +2 -0
  200. package/dist/cdn/{WTRZ6OZV.js → TDYIVFVF.js} +1 -1
  201. package/dist/cdn/{YECZWYQZ.js → TKD5T5DW.js} +1 -1
  202. package/dist/cdn/{RQT2PVDJ.js → U77WHUC6.js} +1 -1
  203. package/dist/cdn/{PVAKLYII.js → UE6EBLH3.js} +1 -1
  204. package/dist/cdn/{UJYW2LBF.js → UFDB6U6V.js} +1 -1
  205. package/dist/cdn/{2CV4EHYO.js → UFK7DHVC.js} +1 -1
  206. package/dist/cdn/{SQXGDXHV.js → UHDJ2SI5.js} +1 -1
  207. package/dist/cdn/{3POODM7N.js → UI4IEVSV.js} +1 -1
  208. package/dist/cdn/{QCYQNVPL.js → UKIVMO7H.js} +1 -1
  209. package/dist/cdn/{YSE67FR2.js → UPCWZNTA.js} +1 -1
  210. package/dist/cdn/{RVJKTOGT.js → UR3Z5YHW.js} +1 -1
  211. package/dist/cdn/{DAZLYCHV.js → UVAUYBWF.js} +1 -1
  212. package/dist/cdn/{VIMOA3H7.js → UVPQKV5P.js} +1 -1
  213. package/dist/cdn/{3ND2HQVC.js → UYAOMCP7.js} +1 -1
  214. package/dist/cdn/UYDXI4AK.js +4 -0
  215. package/dist/cdn/{T2ONRGQX.js → V4AT7ENI.js} +1 -1
  216. package/dist/cdn/{5UF6YKFN.js → V4JCZIP5.js} +1 -1
  217. package/dist/cdn/{H22SGLVH.js → V7DMA5ZO.js} +1 -1
  218. package/dist/cdn/{AFYLXNX3.js → VEV3AAVP.js} +1 -1
  219. package/dist/cdn/{6IF5KBOJ.js → VHZM25YV.js} +1 -1
  220. package/dist/cdn/{5T4TPTPA.js → VKO3CVBS.js} +1 -1
  221. package/dist/cdn/{FUJYJKDU.js → VLHURRRU.js} +1 -1
  222. package/dist/cdn/{HKB7SRFI.js → VM5QVCMC.js} +1 -1
  223. package/dist/cdn/{JVC5XNYJ.js → VPDDFGYQ.js} +1 -1
  224. package/dist/cdn/{3TGVVG6M.js → VWUH2VUY.js} +1 -1
  225. package/dist/cdn/{3VB6M2GX.js → VWW5GBIK.js} +1 -1
  226. package/dist/cdn/{3SZ3FE66.js → W4GNRGIN.js} +1 -1
  227. package/dist/cdn/{ERULVBEV.js → WG5PHRPT.js} +1 -1
  228. package/dist/cdn/{KWPVYPJ5.js → WKI4XW7G.js} +1 -1
  229. package/dist/cdn/WTAAQHO3.js +2 -0
  230. package/dist/cdn/{BKSKZ6W6.js → WUWF6ZDM.js} +1 -1
  231. package/dist/cdn/{CYH72IDQ.js → WVKMYNN7.js} +1 -1
  232. package/dist/cdn/{64TOY3PA.js → WW7YOPDY.js} +1 -1
  233. package/dist/cdn/{TTDOASDI.js → XLB473BN.js} +1 -1
  234. package/dist/cdn/XLZB6JMZ.js +2 -0
  235. package/dist/cdn/{CUFP5Q3Z.js → XO7X6L4B.js} +1 -1
  236. package/dist/cdn/{JPFLHUNR.js → XPBFBRSY.js} +1 -1
  237. package/dist/cdn/{MWFZNICV.js → XTCYIS4Z.js} +1 -1
  238. package/dist/cdn/{BT755NSP.js → XYAJT7LP.js} +1 -1
  239. package/dist/cdn/{NHGQ7T4H.js → Y3E2FJPQ.js} +1 -1
  240. package/dist/cdn/Y4C7JJCJ.js +2 -0
  241. package/dist/cdn/{VLGRGILZ.js → Y6NC7ML3.js} +1 -1
  242. package/dist/cdn/{4NW2V4RQ.js → Y7IM3OFU.js} +1 -1
  243. package/dist/cdn/{FTFHL3EA.js → Y7XSHXVA.js} +1 -1
  244. package/dist/cdn/YAWLVMV6.js +2 -0
  245. package/dist/cdn/{SNGKRGPF.js → YBJ6ZAPO.js} +1 -1
  246. package/dist/cdn/{ZMXN6PZS.js → YBSEIOQX.js} +1 -1
  247. package/dist/cdn/{2C4EHM32.js → YBXCTOS7.js} +1 -1
  248. package/dist/cdn/{BPNUA7MC.js → YC7VLNKI.js} +1 -1
  249. package/dist/cdn/{FUSAMFLS.js → YDILFOHE.js} +1 -1
  250. package/dist/cdn/{7CHCF6IX.js → YEKQVWF5.js} +1 -1
  251. package/dist/cdn/{H6KJMGY6.js → YJROHURO.js} +1 -1
  252. package/dist/cdn/{LOF4XAJZ.js → YYCTSS52.js} +1 -1
  253. package/dist/cdn/{CG7BTPM3.js → Z42MH42I.js} +1 -1
  254. package/dist/cdn/{ID3UU7QE.js → Z6NHKWWS.js} +1 -1
  255. package/dist/cdn/{4XEZYOW7.js → ZC5YVHZ3.js} +1 -1
  256. package/dist/cdn/{SNEMD7IN.js → ZE4UHSTB.js} +1 -1
  257. package/dist/cdn/{HS2TQPAG.js → ZH3MW6H3.js} +1 -1
  258. package/dist/cdn/{BSTT6ICQ.js → ZJPYW3TN.js} +1 -1
  259. package/dist/cdn/{L726CUBZ.js → ZKKZQVJT.js} +1 -1
  260. package/dist/cdn/{4IQJMQQZ.js → ZNV3M5P2.js} +1 -1
  261. package/dist/cdn/index.js +1 -1
  262. package/dist/components/arcgis-elevation-profile/customElement.js +14 -20
  263. package/dist/components/arcgis-features-next/customElement.d.ts +2 -2
  264. package/dist/components/arcgis-features-next/customElement.js +27 -20
  265. package/dist/components/arcgis-floor-filter/customElement.d.ts +3 -0
  266. package/dist/components/arcgis-floor-filter/customElement.js +3 -3
  267. package/dist/components/arcgis-floor-filter/interfaces.d.ts +72 -0
  268. package/dist/components/arcgis-sketch/customElement.js +394 -204
  269. package/dist/components/arcgis-sketch/toolbar-sizing-controller.d.ts +96 -0
  270. package/dist/components/arcgis-time-bar-slider/customElement.d.ts +8 -0
  271. package/dist/components/arcgis-time-bar-slider/customElement.js +35 -35
  272. package/dist/docs/api.json +1 -1
  273. package/dist/docs/docs.json +1 -1
  274. package/dist/docs/vscode.html-custom-data.json +1 -1
  275. package/dist/docs/web-types.json +1 -1
  276. package/dist/index.d.ts +6 -0
  277. package/dist/loader.js +1 -1
  278. package/dist/types/lumina.d.ts +3 -1
  279. package/dist/types/preact.d.ts +3 -1
  280. package/dist/types/react.d.ts +3 -1
  281. package/dist/types/stencil.d.ts +3 -1
  282. package/package.json +7 -7
  283. package/dist/cdn/3SX4JMXA.js +0 -2
  284. package/dist/cdn/4CLSMFD2.js +0 -2
  285. package/dist/cdn/7FA44B44.js +0 -2
  286. package/dist/cdn/ATLQSGEK.js +0 -2
  287. package/dist/cdn/ELAKAKPE.js +0 -2
  288. package/dist/cdn/EVJFKABL.js +0 -4
  289. package/dist/cdn/EWM5PERI.js +0 -2
  290. package/dist/cdn/GBJY4A36.js +0 -2
  291. package/dist/cdn/HWRPCOVE.js +0 -2
  292. package/dist/cdn/M4M3QTI4.js +0 -2
  293. package/dist/cdn/O7ZXS622.js +0 -2
  294. package/dist/cdn/SIXKHDVJ.js +0 -2
  295. package/dist/cdn/TFXSKVB7.js +0 -2
  296. package/dist/cdn/TWPVYHJG.js +0 -2
  297. package/dist/cdn/VBSWB2VR.js +0 -2
  298. package/dist/cdn/W472ZYUY.js +0 -2
  299. package/dist/cdn/ZIQRARXE.js +0 -2
  300. /package/dist/cdn/{PBXO27K2.js → 2P5AJORF.js} +0 -0
  301. /package/dist/cdn/{GGUWUNUA.js → 4LWSF6AI.js} +0 -0
  302. /package/dist/cdn/{VCJ6M3PX.js → 5GGAWGSN.js} +0 -0
  303. /package/dist/cdn/{FIYZBOAN.js → 5GTPIPN7.js} +0 -0
  304. /package/dist/cdn/{BP7H6IBX.js → 62HMPABL.js} +0 -0
  305. /package/dist/cdn/{KZUUBMYO.js → 6SL7YNKF.js} +0 -0
  306. /package/dist/cdn/{7SDUVBEL.js → 7YT5W57B.js} +0 -0
  307. /package/dist/cdn/{X5RVRRKO.js → AKTIOEYM.js} +0 -0
  308. /package/dist/cdn/{LFSVKJXI.js → AYQJ2LTV.js} +0 -0
  309. /package/dist/cdn/{S5MD2X3H.js → CHMBPPHS.js} +0 -0
  310. /package/dist/cdn/{Z66I2FAE.js → DLUFAV4S.js} +0 -0
  311. /package/dist/cdn/{VWHNYGBM.js → DPEWQQEB.js} +0 -0
  312. /package/dist/cdn/{PSD74QRS.js → ECA47Z37.js} +0 -0
  313. /package/dist/cdn/{ZUYPKJYL.js → FJMXBIN5.js} +0 -0
  314. /package/dist/cdn/{DRD2FAEC.js → G4IKO2R6.js} +0 -0
  315. /package/dist/cdn/{GE4QV5JC.js → GCPR7XFU.js} +0 -0
  316. /package/dist/cdn/{DQDUD556.js → IAYL44LK.js} +0 -0
  317. /package/dist/cdn/{CEVISDMV.js → IRFIHD5X.js} +0 -0
  318. /package/dist/cdn/{DQRQZK5Y.js → KOMTNQPT.js} +0 -0
  319. /package/dist/cdn/{MPIIQAQO.js → LS4U4GD5.js} +0 -0
  320. /package/dist/cdn/{6LUCQLB7.js → LVIYMA67.js} +0 -0
  321. /package/dist/cdn/{WQIIAMYV.js → MEISDI2H.js} +0 -0
  322. /package/dist/cdn/{V3HQQ6TJ.js → N2YWWQOS.js} +0 -0
  323. /package/dist/cdn/{ENHMLZOY.js → NVKOZL7X.js} +0 -0
  324. /package/dist/cdn/{SIIF27TS.js → NVN2CATF.js} +0 -0
  325. /package/dist/cdn/{JAH2AKJ5.js → OFBWNR54.js} +0 -0
  326. /package/dist/cdn/{AKAOYYJ7.js → OLSESBZ7.js} +0 -0
  327. /package/dist/cdn/{SFMD5PPC.js → PWZHB6VD.js} +0 -0
  328. /package/dist/cdn/{UN65FKRA.js → QWMDZDQA.js} +0 -0
  329. /package/dist/cdn/{23L5GSFN.js → RTDY3HLR.js} +0 -0
  330. /package/dist/cdn/{MGE3J5KE.js → SFDCS6A2.js} +0 -0
  331. /package/dist/cdn/{ONSMVZAM.js → SLNXNVPI.js} +0 -0
  332. /package/dist/cdn/{DWQQDLIU.js → SLQPDAGN.js} +0 -0
  333. /package/dist/cdn/{EGD2CSA7.js → T34W3GKP.js} +0 -0
  334. /package/dist/cdn/{PST64E7E.js → TP2KQRW6.js} +0 -0
  335. /package/dist/cdn/{33LESQ6T.js → UDXDE3LW.js} +0 -0
  336. /package/dist/cdn/{ZQL4CTJK.js → XCSF7KJK.js} +0 -0
  337. /package/dist/cdn/{V7OBQRSG.js → XGWYQ7FU.js} +0 -0
  338. /package/dist/cdn/{P3ZJLVKC.js → XQ2WXTW7.js} +0 -0
  339. /package/dist/cdn/{TT57O767.js → ZCL4XHIZ.js} +0 -0
  340. /package/dist/cdn/{T5XVILYA.js → ZHYXFOYU.js} +0 -0
  341. /package/dist/cdn/{ZO5WNVFD.js → ZNIMZP5R.js} +0 -0
  342. /package/dist/cdn/{ITRBNYSS.js → ZSKO7HLH.js} +0 -0
@@ -1,4 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{a as Ei}from"./WV2GLDRQ.js";import{a as wi,b as Ci,c as Ti,d as ki,e as Mi,f as Vt,g as ee,h as hs,i as Di}from"./4CLSMFD2.js";import{A as I,C as is,E as F,F as Yt,H as ss,I as rs,J as as,K as Ct,L as ns,P as E,Q as os,R as Tt,T as Tr,c as It,e as Gt,ga as Si,h as st,i as V,k as X,l as xr,m as br,o as ei,qa as $i,r as vr,s as wr,u as te,y as N,z as vi}from"./EWM5PERI.js";import{D as be,E as Je,F as ur,G as fr,H as Ji,J as Qi,K as ts,L as pr,M as mr,N as gr,O as Qe,P as ti,Q as _r,S as it,V as lt,W as $,_ as es,c as qi,e as rr,f as P,g as xe,h as wt,j as ar,k as nr,l as bi,n as Ze,o as or,p as Ki,q as hr,r as lr,s as Qt,t as Et,u as cr,v as K,w as Zi,x as $t,y as dr,z as Y}from"./ELAKAKPE.js";import{a as Dt,b as ht,d as R,e as qt,f as Ui}from"./33LESQ6T.js";import{A as tr,E as pe,G as ji,H as me,J as er,K as W,L as ir,N as sr,O as et,P as ge,Q as gt,S as Ke,T as yr,U as Cr,X as Wt,b as mt,d as Zs,f as Ot,g as B,h as Kt,i as je,j as Ht,k as Zt,m as yi,n as Js,o as xi,p as w,r as ue,s as Jt,t as ye,u as Qs,v as qe,w as fe}from"./KZUUBMYO.js";import{a as Zr}from"./TAVTDQ6S.js";var ls=class{constructor(){this._targets=[],this._observer=new ResizeObserver(t=>{w(t,e=>{w(this._targets,i=>{i.target===e.target&&i.callback()})})})}addTarget(t,e){this._observer.observe(t,{box:"border-box"}),this._targets.push({target:t,callback:e})}removeTarget(t){this._observer.unobserve(t),pe(this._targets,e=>e.target!==t)}},Ai=class o{constructor(){this._timer=null,this._targets=[]}addTarget(t,e){if(this._timer===null){let s=null,r=()=>{let a=Date.now();(s===null||a>s+o.delay)&&(s=a,w(this._targets,n=>{let h=n.target.getBoundingClientRect();(h.width!==n.size.width||h.height!==n.size.height)&&(n.size=h,n.callback())})),this._targets.length===0?this._timer=null:this._timer=requestAnimationFrame(r)};this._timer=requestAnimationFrame(r)}let i={width:0,height:0,left:0,right:0,top:0,bottom:0,x:0,y:0};this._targets.push({target:t,callback:e,size:i})}removeTarget(t){pe(this._targets,e=>e.target!==t),this._targets.length===0&&this._timer!==null&&(cancelAnimationFrame(this._timer),this._timer=null)}};Ai.delay=200;var Pi=null;function Jr(){return Pi===null&&(typeof ResizeObserver<"u"?Pi=new ls:Pi=new Ai),Pi}var Li=class{constructor(t,e){this._disposed=!1,this._sensor=Jr(),this._element=t,this._listener=xe(e),this._sensor.addTarget(t,e)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._sensor.removeTarget(this._element),this._listener.dispose())}get sensor(){return this._sensor}};var ie=class extends N{};ie.className="InterfaceColors";ie.classNames=N.classNames.concat([ie.className]);var Pt=class extends F{_beforeChanged(){super._beforeChanged(),(this.isDirty("pointerBaseWidth")||this.isDirty("cornerRadius")||this.isDirty("pointerLength")||this.isDirty("pointerX")||this.isDirty("pointerY")||this.isDirty("width")||this.isDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){this.markDirtyBounds();let t=this.width(),e=this.height();if(t>0&&e>0){let i=this.get("cornerRadius",8);i=st(i,0,Math.min(t/2,e/2));let s=this.get("pointerX",0),r=this.get("pointerY",0),a=this.get("pointerBaseWidth",15)/2,n=0,h=0,l=t,c=0,u=t,d=e,f=0,m=e,_=(s-n)*(d-h)-(r-h)*(u-n),p=(s-f)*(c-m)-(r-m)*(l-f),y=this._display;if(y.moveTo(i,0),_>0&&p>0){let g=Math.round(st(s,i+a,t-a-i));r=st(r,-1/0,0),y.lineTo(g-a,0),y.lineTo(s,r),y.lineTo(g+a,0)}if(y.lineTo(t-i,0),y.arcTo(t,0,t,i,i),_>0&&p<0){let g=Math.round(st(r,i+a,e-a-i));s=st(s,t,1/0),y.lineTo(t,i),y.lineTo(t,Math.max(g-a,i)),y.lineTo(s,r),y.lineTo(t,g+a)}if(y.lineTo(t,e-i),y.arcTo(t,e,t-i,e,i),_<0&&p<0){let g=Math.round(st(s,i+a,t-a-i));r=st(r,e,1/0),y.lineTo(t-i,e),y.lineTo(g+a,e),y.lineTo(s,r),y.lineTo(g-a,e)}if(y.lineTo(i,e),y.arcTo(0,e,0,e-i,i),_<0&&p>0){let g=Math.round(st(r,i+a,e-i-a));s=st(s,-1/0,0),y.lineTo(0,e-i),y.lineTo(0,g+a),y.lineTo(s,r),y.lineTo(0,Math.max(g-a,i))}y.lineTo(0,i),y.arcTo(0,0,i,0,i),y.closePath()}}}};Pt.className="PointedRectangle";Pt.classNames=F.classNames.concat([Pt.className]);var kt=class extends E{constructor(t,e,i,s=[]){super(t,e,i,s),this._fx=0,this._fy=0,this._w=0,this._h=0,this._htmlContentHovered=!1,this._focusAnnounce=!1}_afterNew(){this._settings.themeTags=it(this._settings.themeTags,["tooltip"]),super._afterNew(),this._setDefaultTagged("background",["tooltip","background"],()=>Pt.new(this._root,{})),this._label=this.children.push(Tt.new(this._root,{})),this._disposers.push(this._label.events.on("boundschanged",()=>{this._updateBackground()})),this._disposers.push(this.on("bounds",()=>{this._updateBackground()})),this._updateTextColor(),this._root.tooltipContainer.children.push(this),this.hide(0),this._disposers.push(this.label.onPrivate("htmlElement",t=>{t&&(this._disposers.push(P(t,"pointerover",e=>{this._htmlContentHovered=!0})),this._disposers.push(P(t,"pointerout",e=>{this._htmlContentHovered=!1})))})),this.on("visible",t=>{this._handleReaderAnnouncement()}),this.label.events.on("dataitemchanged",t=>{this._handleReaderAnnouncement()}),this._root._tooltips.push(this)}_handleReaderAnnouncement(){if((this.get("readerAnnounce")||this._focusAnnounce)&&this.isVisibleDeep()){let t=this.label.getAccessibleText();if(!this.get("readerAnnounce")&&this._repeatsTargetLabel(t))return;this._root.readerAlert(t)}}_repeatsTargetLabel(t){let e=this.get("tooltipTarget"),i=e&&e.getPrivate("focusElement"),s=i&&i.dom.getAttribute("aria-label"),r=a=>Je(a).replace(/\s+/g," ").trim().toLowerCase();return s?r(s)==r(t):!1}get label(){return this._label}_dispose(){super._dispose(),Jt(this._root._tooltips,this)}_updateChildren(){super._updateChildren(),(this.isDirty("pointerOrientation")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight"))&&this.get("background")._markDirtyKey("width"),this.get("labelText")!=null&&this.label.set("text",this.get("labelText")),this.get("labelHTML")!=null&&this.label.set("html",this.get("labelHTML")),this.get("labelAriaLabel")!=null&&this.label.set("ariaLabel",this.get("labelAriaLabel"))}_changed(){if(super._changed(),(this.isDirty("pointTo")||this.isDirty("pointerOrientation"))&&this._updateBackground(),this.isDirty("tooltipTarget")&&this.updateBackgroundColor(),this.isDirty("keepTargetHover"))if(this.get("keepTargetHover")){let e=this.get("background");this._keepHoverDp=new gt([e.events.on("pointerover",i=>{let s=this.get("tooltipTarget");s&&(s.parent&&s.parent.getPrivate("tooltipTarget")==s&&(s=s.parent),s.hover())}),e.events.on("pointerout",i=>{let s=this.get("tooltipTarget");s&&(s.parent&&s.parent.getPrivate("tooltipTarget")==s&&(s=s.parent),this._htmlContentHovered||s.unhover())})]),this.label.onPrivate("htmlElement",i=>{this._keepHoverDp&&i&&this._keepHoverDp.disposers.push(P(i,"pointerleave",s=>{let r=this.root._renderer.getEvent(s);e.events.dispatch("pointerout",{type:"pointerout",originalEvent:r.event,point:r.point,simulated:!1,target:e})}))})}else this._keepHoverDp&&(this._keepHoverDp.dispose(),this._keepHoverDp=void 0)}_onShow(){super._onShow(),this.updateBackgroundColor()}updateBackgroundColor(){let t=this.get("tooltipTarget"),e=this.get("background"),i,s;if(t&&e){if(i=t.get("fill"),s=t.get("stroke"),i==null&&(i=s),this.get("getFillFromSprite")&&(this._fillDp&&this._fillDp.dispose(),i!=null&&e._setC("fill",i),this._fillDp=t.on("fill",r=>{r!=null&&(e._setC("fill",r),this._updateTextColor(r))}),this._disposers.push(this._fillDp)),this.get("getFillGradientFromSprite")){this._fillGrDp&&this._fillGrDp.dispose();let r=t.get("fillGradient");r!=null&&e._setC("fillGradient",r),this._fillGrDp=t.on("fillGradient",a=>{a!=null&&e._setC("fillGradient",a)}),this._disposers.push(this._fillGrDp)}this.get("getStrokeFromSprite")&&(this._strokeDp&&this._strokeDp.dispose(),i!=null&&e._setC("stroke",i),this._strokeDp=t.on("fill",r=>{r!=null&&e._setC("stroke",r)}),this._disposers.push(this._strokeDp)),this.get("getLabelFillFromSprite")&&(this._labelDp&&this._labelDp.dispose(),i!=null&&this.label._setC("fill",i),this._labelDp=t.on("fill",r=>{r!=null&&this.label._setC("fill",r)}),this._disposers.push(this._labelDp))}this._updateTextColor(i)}_updateTextColor(t){this.get("autoTextColor")&&(t==null&&(t=this.get("background").get("fill")),t==null&&(t=this._root.interfaceColors.get("background")),t instanceof $&&this.label._setC("fill",$.alternative(t,this._root.interfaceColors.get("alternativeText"),this._root.interfaceColors.get("text"))))}_setDataItem(t){super._setDataItem(t),this.label._setDataItem(t)}_updateBackground(){super.updateBackground();let t=this._root.container;if(t){let e=.5,i=.5,s=this.get("centerX");s instanceof Dt&&(e=s.value);let r=this.get("centerY");r instanceof Dt&&(i=r.value);let a=t.width(),n=t.height(),h=this.parent,l=0,c=0;if(h){l=h.x(),c=h.y();let k=h.get("layerMargin");k&&(l+=k.left||0,c+=k.top||0,a+=(k.left||0)+(k.right||0),n+=(k.top||0)+(k.bottom||0))}let u=this.get("bounds",{left:-l,top:-c,right:a-l,bottom:n-c});this._updateBounds();let d=this.width(),f=this.height();d===0&&(d=this._w),f===0&&(f=this._h);let m=this.get("pointTo",{x:a/2,y:n/2}),_=m.x,p=m.y,y=this.get("pointerOrientation"),g=this.get("background"),b=0,v=0,x=0;g instanceof Pt&&(b=g.get("pointerLength",0),v=g.get("strokeWidth",0)/2,x=v,g._setC("width",d),g._setC("height",f));let C=0,T=0,M=u.right-u.left,S=u.bottom-u.top;y=="horizontal"||y=="left"||y=="right"?(v=0,y=="horizontal"?_>u.left+M/2?(_-=d*(1-e)+b,x*=-1):_+=d*e+b:y=="left"?_+=d*(1-e)+b:(_-=d*e+b,x*=-1)):(x=0,y=="vertical"?p>u.top+f/2+b?p-=f*(1-i)+b:(p+=f*i+b,v*=-1):y=="down"?p-=f*(1-i)+b:(p+=f*i+b,v*=-1)),_=st(_,u.left+d*e,u.left+M-d*(1-e))+x,p=st(p,u.top+f*i,u.top+S-f*(1-i))-v,C=m.x-_+d*e+x,T=m.y-p+f*i-v,this._fx=_,this._fy=p;let D=this.get("animationDuration",0);if(D>0&&this.get("visible")&&this.get("opacity")>.1){let k=this.get("animationEasing");this.animate({key:"x",to:_,duration:D,easing:k}),this.animate({key:"y",to:p,duration:D,easing:k})}else this._setC("x",_),this._setC("y",p);g instanceof Pt&&(g._setC("pointerX",C),g._setC("pointerY",T)),d>0&&(this._w=d),f>0&&(this._h=f)}}};kt.className="Tooltip";kt.classNames=E.classNames.concat([kt.className]);var se=class extends N{_setDefaults(){this._setDefault("negativeBase",0),this._setDefault("numberFormat","#,###.#####"),this._setDefault("smallNumberThreshold",1);let t="_big_number_suffix_",e="_small_number_suffix_",i="_byte_suffix_";this._setDefault("bigNumberPrefixes",[{number:1e3,suffix:this._t(t+"3")},{number:1e6,suffix:this._t(t+"6")},{number:1e9,suffix:this._t(t+"9")},{number:1e12,suffix:this._t(t+"12")},{number:1e15,suffix:this._t(t+"15")},{number:1e18,suffix:this._t(t+"18")},{number:1e21,suffix:this._t(t+"21")},{number:1e24,suffix:this._t(t+"24")}]),this._setDefault("smallNumberPrefixes",[{number:1e-24,suffix:this._t(e+"24")},{number:1e-21,suffix:this._t(e+"21")},{number:1e-18,suffix:this._t(e+"18")},{number:1e-15,suffix:this._t(e+"15")},{number:1e-12,suffix:this._t(e+"12")},{number:1e-9,suffix:this._t(e+"9")},{number:1e-6,suffix:this._t(e+"6")},{number:.001,suffix:this._t(e+"3")}]),this._setDefault("bytePrefixes",[{number:1,suffix:this._t(i+"B")},{number:1024,suffix:this._t(i+"KB")},{number:1048576,suffix:this._t(i+"MB")},{number:1073741824,suffix:this._t(i+"GB")},{number:1099511627776,suffix:this._t(i+"TB")},{number:0x4000000000000,suffix:this._t(i+"PB")}]),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){(e==null||Ot(e)&&e.toLowerCase()==="number")&&(e=this.get("numberFormat",""));let s,r=Number(t);if(Kt(e))try{return this.get("intlLocales")?new Intl.NumberFormat(this.get("intlLocales"),e).format(r):new Intl.NumberFormat(void 0,e).format(r)}catch{return"Invalid"}else{e=be(e);let a=this.parseFormat(e,this._root.language),n;r>this.get("negativeBase")?n=a.positive:r<this.get("negativeBase")?n=a.negative:n=a.zero,i!=null&&!n.mod&&(n=er(n),n.decimals.active=r==0?0:i),s=n.template.split(Ht).join(this.applyFormat(r,n))}return this.get("forceLTR")===!0&&(s="\u200E"+s),s}parseFormat(t,e){let i=e.translateEmpty("_thousandSeparator"),s=e.translateEmpty("_decimalSeparator"),r={positive:{thousands:{active:-1,passive:-1,interval:-1,separator:i},decimals:{active:-1,passive:-1,separator:s},template:"",source:"",parsed:!1},negative:{thousands:{active:-1,passive:-1,interval:-1,separator:i},decimals:{active:-1,passive:-1,separator:s},template:"",source:"",parsed:!1},zero:{thousands:{active:-1,passive:-1,interval:-1,separator:i},decimals:{active:-1,passive:-1,separator:s},template:"",source:"",parsed:!1}};t=t.replace("||",Zt);let a=t.split("|");return r.positive.source=a[0],typeof a[2]>"u"?r.zero=r.positive:r.zero.source=a[2],typeof a[1]>"u"?r.negative=r.positive:r.negative.source=a[1],W(r,(n,h)=>{if(h.parsed)return;let l=h.source;l.toLowerCase()==="number"&&(l=this.get("numberFormat","#,###.#####"));let c=Ct.chunk(l,!0);for(let u=0;u<c.length;u++){let d=c[u];if(d.text=d.text.replace(Zt,"|"),d.type==="value"){let f=d.text.match(/[#0.,]+[ ]?[abespABESP%!]?[abespABESP‰!]?/);if(f)if(f===null||f[0]==="")h.template+=d.text;else{let m=f[0].match(/[abespABESP%‰!]{2}|[abespABESP%‰]{1}$/);m&&(h.mod=m[0].toLowerCase(),h.modSpacing=!!f[0].match(/[ ]{1}[abespABESP%‰!]{1}$/));let _=f[0].split(".");if(_[0]!==""){h.thousands.active=(_[0].match(/0/g)||[]).length,h.thousands.passive=(_[0].match(/\#/g)||[]).length+h.thousands.active;let p=_[0].split(",");p.length===1||(h.thousands.interval=(p.pop()||"").length,h.thousands.interval===0&&(h.thousands.interval=-1))}typeof _[1]>"u"||(h.decimals.active=(_[1].match(/0/g)||[]).length,h.decimals.passive=(_[1].match(/\#/g)||[]).length+h.decimals.active),h.template+=d.text.split(f[0]).join(Ht)}}else h.template+=d.text}h.parsed=!0}),r}applyFormat(t,e){let i=t<0;t=Math.abs(t);let s="",r="",a=e.mod?e.mod.split(""):[];if(a.indexOf("b")!==-1){let u=this.applyPrefix(t,this.get("bytePrefixes"),a.indexOf("!")!==-1);t=u[0],s=u[1],r=u[2],e.modSpacing&&(r=" "+r)}else if(a.indexOf("a")!==-1){let u=this.applyPrefix(t,t<this.get("smallNumberThreshold")?this.get("smallNumberPrefixes"):this.get("bigNumberPrefixes"),a.indexOf("!")!==-1);t=u[0],s=u[1],r=u[2],e.modSpacing&&(r=" "+r)}else if(a.indexOf("p")!==-1){let u=Math.min(t.toString().length+2,21);t=parseFloat(t.toPrecision(u)),s=this._root.language.translate("_percentPrefix"),r=this._root.language.translate("_percentSuffix"),s==""&&r==""&&(r="%")}else if(a.indexOf("%")!==-1){let u=Math.min(t.toString().length+2,21);t*=100,t=parseFloat(t.toPrecision(u)),r="%"}else if(a.indexOf("\u2030")!==-1){let u=Math.min(t.toString().length+3,21);t*=1e3,t=parseFloat(t.toPrecision(u)),r="\u2030"}if(a.indexOf("e")!==-1){let u;e.decimals.passive>=0?u=t.toExponential(e.decimals.passive).split("e"):u=t.toExponential().split("e"),t=Number(u[0]),r="e"+u[1],e.modSpacing&&(r=" "+r)}else if(e.decimals.passive===0)t=Math.round(t);else if(e.decimals.passive>0){let u=dr(t);if(u>0){let d=Math.pow(10,e.decimals.passive);t=Math.round(parseFloat((t*d).toFixed(u)))/d}}let n="",h=Zs(t).split("."),l=h[0];if(l.length<e.thousands.active&&(l=Array(e.thousands.active-l.length+1).join("0")+l),e.thousands.interval>0){let u=[],d=l.split("").reverse().join("");for(let f=0,m=l.length;f<=m;f+=e.thousands.interval){let _=d.substr(f,e.thousands.interval).split("").reverse().join("");_!==""&&u.unshift(_)}l=u.join(e.thousands.separator)}n+=l,h.length===1&&h.push("");let c=h[1];return c.length<e.decimals.active&&(c+=Array(e.decimals.active-c.length+1).join("0")),c!==""&&(n+=e.decimals.separator+c),n===""&&(n="0"),t!==0&&i&&a.indexOf("s")===-1&&(n="-"+n),s&&(n=s+n),r&&(n+=r),n}applyPrefix(t,e,i=!1){let s=t,r="",a="",n=!1,h=1;for(let l=0,c=e.length;l<c;l++)e[l].number<=t&&(e[l].number===0?s=0:(s=t/e[l].number,h=e[l].number),r=e[l].prefix,a=e[l].suffix,n=!0);return!n&&i&&e.length&&t!=0&&(s=t/e[0].number,r=e[0].prefix,a=e[0].suffix,n=!0),n&&(s=parseFloat(s.toPrecision(Math.min(h.toString().length+Math.floor(s).toString().replace(/[^0-9]*/g,"").length,21)))),[s,r,a]}escape(t){return t.replace("||",Zt)}unescape(t){return t.replace(Zt,"|")}};se.className="NumberFormatter";se.classNames=N.classNames.concat([se.className]);var ae=class extends N{_setDefaults(){this._setDefault("capitalize",!0),this._setDefault("dateFormat","yyyy-MM-dd"),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i=!1){(typeof e>"u"||e==="")&&(e=this.get("dateFormat","yyyy-MM-dd"));let s,r=t;if(Kt(e))try{let c=this.get("intlLocales");return c?new Intl.DateTimeFormat(c,e).format(r):new Intl.DateTimeFormat(void 0,e).format(r)}catch{return"Invalid"}let a=this.parseFormat(e);if(!B(r.getTime()))return"Invalid date";let n=this._root.timezone,h=r,l=this._root.utc&&!i;return n&&!this._root.utc&&!i&&(r=new Date(r.getTime()-Math.round(n.offsetUTC(r)*6e4)),l=!0),s=this.applyFormat(r,a,i,h,l),this.get("capitalize")&&(s=s.replace(/^.{1}/,s.substr(0,1).toUpperCase())),s}applyFormat(t,e,i=!1,s,r=this._root.utc&&!i){let a=e.template,n,h,l,c,u,d,f,m,_=(s||t).getTime();r?(n=t.getUTCFullYear(),h=t.getUTCMonth(),l=t.getUTCDay(),c=t.getUTCDate(),u=t.getUTCHours(),d=t.getUTCMinutes(),f=t.getUTCSeconds(),m=t.getUTCMilliseconds()):(n=t.getFullYear(),h=t.getMonth(),l=t.getDay(),c=t.getDate(),u=t.getHours(),d=t.getMinutes(),f=t.getSeconds(),m=t.getMilliseconds());for(let p=0,y=e.parts.length;p<y;p++){let g="";switch(e.parts[p]){case"G":g=this._t(n<0?"_era_bc":"_era_ad");break;case"yyyy":g=Math.abs(n).toString(),n<0&&(g+=this._t("_era_bc"));break;case"yyy":case"yy":case"y":g=Math.abs(n).toString().substr(-e.parts[p].length),n<0&&(g+=this._t("_era_bc"));break;case"YYYY":case"YYY":case"YY":case"Y":let b=pr(t,r);e.parts[p]=="YYYY"?g=Math.abs(b).toString():g=Math.abs(b).toString().substr(-e.parts[p].length),b<0&&(g+=this._t("_era_bc"));break;case"u":break;case"q":g=""+Math.ceil((h+1)/3);break;case"MMMMM":g=this._t(this._getMonth(h)).substr(0,1);break;case"MMMM":g=this._t(this._getMonth(h));break;case"MMM":g=this._t(this._getShortMonth(h));break;case"MM":g=Y(h+1,2,"0");break;case"M":g=(h+1).toString();break;case"ww":g=Y(ts(t,r),2,"0");break;case"w":g=ts(t,r).toString();break;case"W":g=mr(t,r).toString();break;case"dd":g=Y(c,2,"0");break;case"d":g=c.toString();break;case"DD":case"DDD":g=Y(Qi(t,r).toString(),e.parts[p].length,"0");break;case"D":g=Qi(t,r).toString();break;case"F":break;case"g":break;case"t":g=this._root.language.translateFunc("_dateOrd").call(this,c);break;case"E":g=(l||7).toString();break;case"EE":g=Y((l||7).toString(),2,"0");break;case"EEE":case"eee":g=this._t(this._getShortWeekday(l));break;case"EEEE":case"eeee":g=this._t(this._getWeekday(l));break;case"EEEEE":case"eeeee":g=this._t(this._getShortWeekday(l)).substr(0,1);break;case"e":case"ee":g=(l-(this._root.locale.firstDayOfWeek||1)+1).toString(),e.parts[p]=="ee"&&(g=Y(g,2,"0"));break;case"a":u>=12?g=this._t("PM"):g=this._t("AM");break;case"aa":u>=12?g=this._t("P.M."):g=this._t("A.M.");break;case"aaa":u>=12?g=this._t("P"):g=this._t("A");break;case"h":g=Qe(u).toString();break;case"hh":g=Y(Qe(u),2,"0");break;case"H":g=u.toString();break;case"HH":g=Y(u,2,"0");break;case"K":g=Qe(u,0).toString();break;case"KK":g=Y(Qe(u,0),2,"0");break;case"k":g=(u+1).toString();break;case"kk":g=Y(u+1,2,"0");break;case"m":g=d.toString();break;case"mm":g=Y(d,2,"0");break;case"s":g=f.toString();break;case"ss":g=Y(f,2,"0");break;case"S":case"SS":case"SSS":g=Math.round(m/1e3*Math.pow(10,e.parts[p].length)).toString();break;case"x":g=_.toString();break;case"n":case"nn":case"nnn":g=Y(m,e.parts[p].length,"0");break;case"z":g=ti(s||t,!1,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zz":g=ti(s||t,!0,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"zzz":g=ti(s||t,!1,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zzzz":g=ti(s||t,!0,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"Z":case"ZZ":let v=this._root.utc?"UTC":this._root.timezone,x;v instanceof qi?x=v.offsetUTC(s||t):x=v?_r(v,s||t):t.getTimezoneOffset();let C=Math.abs(x)/60,T=Math.floor(C),M=Math.round(C*60-T*60);M==60&&(T++,M=0),this._root.utc&&(T=0,M=0),e.parts[p]=="Z"?(g="GMT",g+=x>0?"-":"+",g+=Y(T,2)+":"+Y(M,2)):(g=x>0?"-":"+",g+=Y(T,2)+Y(M,2));break;case"i":g=(s||t).toISOString();break;case"I":g=(s||t).toUTCString();break}a=a.replace(Ht,g)}return a}parseFormat(t){let e={template:"",parts:[]},i=Ct.chunk(t,!0);for(let s=0;s<i.length;s++){let r=i[s];if(r.type==="value"){if(r.text.match(/^date$/i)){let n=this.get("dateFormat","yyyy-MM-dd");Ot(n)||(n="yyyy-MM-dd"),r.text=n}let a=r.text.match(/G|yyyy|yyy|yy|y|YYYY|YYY|YY|Y|u|q|MMMMM|MMMM|MMM|MM|M|ww|w|W|dd|d|DDD|DD|D|F|g|EEEEE|EEEE|EEE|EE|E|eeeee|eeee|eee|ee|e|aaa|aa|a|hh|h|HH|H|KK|K|kk|k|mm|m|ss|s|SSS|SS|S|A|zzzz|zzz|zz|z|ZZ|Z|t|x|nnn|nn|n|i|I/g);if(a)for(let n=0;n<a.length;n++)e.parts.push(a[n]),r.text=r.text.replace(a[n],Ht)}e.template+=r.text}return e}_months(){return["January","February","March","April","May","June","July","August","September","October","November","December"]}_getMonth(t){return this._months()[t]}_shortMonths(){return["Jan","Feb","Mar","Apr","May(short)","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}_getShortMonth(t){return this._shortMonths()[t]}_weekdays(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}_getWeekday(t){return this._weekdays()[t]}_shortWeekdays(){return["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]}_getShortWeekday(t){return this._shortWeekdays()[t]}parse(t,e,i){if(typeof i>"u"&&(i=this._root.utc),t instanceof Date)return t;if(B(t))return new Date(t);if(e=="x")return new Date(parseInt(t));Ot(t)||(t=t.toString());let s,r="";e=be(e),e=e.substr(0,t.length);let a=this.parseFormat(e);if(a.parts.length==0)return new Date(t);let n={year:-1,year3:-1,year2:-1,year1:-1,month:-1,monthShort:-1,monthLong:-1,weekdayShort:-1,weekdayLong:-1,day:-1,yearDay:-1,week:-1,hourBase0:-1,hour12Base0:-1,hourBase1:-1,hour12Base1:-1,minute:-1,second:-1,millisecond:-1,millisecondDigits:-1,am:-1,zone:-1,timestamp:-1,iso:-1},h={year:1970,month:0,day:1,hour:0,minute:0,second:0,millisecond:0,timestamp:null,offset:0,utc:i},l=0,c=0;for(let f=0;f<a.parts.length;f++){switch(c=f+l+1,a.parts[f]){case"yyyy":case"YYYY":r+="([0-9]{4})",n.year=c;break;case"yyy":case"YYY":r+="([0-9]{3})",n.year3=c;break;case"yy":case"YY":r+="([0-9]{2})",n.year2=c;break;case"y":case"Y":r+="([0-9]{1})",n.year1=c;break;case"MMMM":r+="("+this.getStringList(this._months()).join("|")+")",n.monthLong=c;break;case"MMM":r+="("+this.getStringList(this._shortMonths()).join("|")+")",n.monthShort=c;break;case"MM":case"M":r+="([0-9]{2}|[0-9]{1})",n.month=c;break;case"ww":case"w":r+="([0-9]{2}|[0-9]{1})",n.week=c;break;case"dd":case"d":r+="([0-9]{2}|[0-9]{1})",n.day=c;break;case"DDD":case"DD":case"D":r+="([0-9]{3}|[0-9]{2}|[0-9]{1})",n.yearDay=c;break;case"dddd":r+="("+this.getStringList(this._weekdays()).join("|")+")",n.weekdayLong=c;break;case"ddd":r+="("+this.getStringList(this._shortWeekdays()).join("|")+")",n.weekdayShort=c;break;case"aaa":case"aa":case"a":r+="("+this.getStringList(["AM","PM","A.M.","P.M.","A","P"]).join("|")+")",n.am=c;break;case"hh":case"h":r+="([0-9]{2}|[0-9]{1})",n.hour12Base1=c;break;case"HH":case"H":r+="([0-9]{2}|[0-9]{1})",n.hourBase0=c;break;case"KK":case"K":r+="([0-9]{2}|[0-9]{1})",n.hour12Base0=c;break;case"kk":case"k":r+="([0-9]{2}|[0-9]{1})",n.hourBase1=c;break;case"mm":case"m":r+="([0-9]{2}|[0-9]{1})",n.minute=c;break;case"ss":case"s":r+="([0-9]{2}|[0-9]{1})",n.second=c;break;case"SSS":case"SS":case"S":r+="([0-9]{3}|[0-9]{2}|[0-9]{1})",n.millisecond=c,n.millisecondDigits=a.parts[f].length;break;case"nnn":case"nn":case"n":r+="([0-9]{3}|[0-9]{2}|[0-9]{1})",n.millisecond=c;break;case"x":r+="([0-9]{1,})",n.timestamp=c;break;case"Z":r+="GMT([-+]+[0-9]{2}:[0-9]{2})",n.zone=c;break;case"ZZ":r+="([\\-+]+[0-9]{2}[0-9]{2})",n.zone=c;break;case"i":r+="([0-9]{4})-?([0-9]{2})-?([0-9]{2})T?([0-9]{2}):?([0-9]{2}):?([0-9]{2})\\.?([0-9]{0,3})([zZ]|[+\\-][0-9]{2}:?[0-9]{2}|$)",n.iso=c,l+=7;break;case"G":case"YYYY":case"YYY":case"YY":case"Y":case"MMMMM":case"W":case"EEEEE":case"EEEE":case"EEE":case"EE":case"E":case"eeeee":case"eeee":case"eee":case"ee":case"e":case"zzzz":case"zzz":case"zz":case"z":case"t":l--;break}r+="[^0-9]*"}let u=new RegExp(r),d=t.match(u);if(d){if(n.year>-1&&(h.year=parseInt(d[n.year])),n.year3>-1){let f=parseInt(d[n.year3]);f+=1e3,h.year=f}if(n.year2>-1){let f=parseInt(d[n.year2]);f>50?f+=1e3:f+=2e3,h.year=f}if(n.year1>-1){let f=parseInt(d[n.year1]);f=Math.floor(new Date().getFullYear()/10)*10+f,h.year=f}if(n.monthLong>-1&&(h.month=this.resolveMonth(d[n.monthLong])),n.monthShort>-1&&(h.month=this.resolveShortMonth(d[n.monthShort])),n.month>-1&&(h.month=parseInt(d[n.month])-1),n.week>-1&&n.day===-1&&(h.month=0,h.day=gr(parseInt(d[n.week]),h.year,1,i)),n.day>-1&&(h.day=parseInt(d[n.day])),n.yearDay>-1&&(h.month=0,h.day=parseInt(d[n.yearDay])),n.hourBase0>-1&&(h.hour=parseInt(d[n.hourBase0])),n.hourBase1>-1&&(h.hour=parseInt(d[n.hourBase1])-1),n.hour12Base0>-1){let f=parseInt(d[n.hour12Base0]);f==11&&(f=0),n.am>-1&&!this.isAm(d[n.am])&&(f+=12),h.hour=f}if(n.hour12Base1>-1){let f=parseInt(d[n.hour12Base1]);f==12&&(f=0),n.am>-1&&!this.isAm(d[n.am])&&(f+=12),h.hour=f}if(n.minute>-1&&(h.minute=parseInt(d[n.minute])),n.second>-1&&(h.second=parseInt(d[n.second])),n.millisecond>-1){let f=parseInt(d[n.millisecond]);n.millisecondDigits==2?f*=10:n.millisecondDigits==1&&(f*=100),h.millisecond=f}if(n.timestamp>-1){h.timestamp=parseInt(d[n.timestamp]);let f=new Date(h.timestamp);h.year=f.getUTCFullYear(),h.month=f.getUTCMonth(),h.day=f.getUTCDate(),h.hour=f.getUTCHours(),h.minute=f.getUTCMinutes(),h.second=f.getUTCSeconds(),h.millisecond=f.getUTCMilliseconds()}n.zone>-1&&(h.offset=this.resolveTimezoneOffset(new Date(h.year,h.month,h.day),d[n.zone])),n.iso>-1&&(h.year=mt(d[n.iso+0]),h.month=mt(d[n.iso+1])-1,h.day=mt(d[n.iso+2]),h.hour=mt(d[n.iso+3]),h.minute=mt(d[n.iso+4]),h.second=mt(d[n.iso+5]),h.millisecond=mt(d[n.iso+6]),d[n.iso+7]=="Z"||d[n.iso+7]=="z"?h.utc=!0:d[n.iso+7]!=""&&(h.offset=this.resolveTimezoneOffset(new Date(h.year,h.month,h.day),d[n.iso+7]))),h.utc?s=new Date(Date.UTC(h.year,h.month,h.day,h.hour,h.minute,h.second,h.millisecond)):s=new Date(h.year,h.month,h.day,h.hour,h.minute+h.offset,h.second,h.millisecond)}else s=new Date(t);return s}resolveTimezoneOffset(t,e){if(e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)){let s=e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/),r=s[1],a=s[2],n=s[3],h=parseInt(a)*60+parseInt(n);r=="+"&&(h*=-1);let l=(t||new Date).getTimezoneOffset();return h-l}return 0}resolveMonth(t){let e=this._months().indexOf(t);return e>-1||!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._months()).indexOf(t),e>-1)?e:0}resolveShortMonth(t){let e=this._shortMonths().indexOf(t);return e>-1||(e=this._months().indexOf(t),e>-1)||this._root.language&&!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._shortMonths()).indexOf(t),e>-1)?e:0}isAm(t){return this.getStringList(["AM","A.M.","A"]).indexOf(t.toUpperCase())>-1}getStringList(t){let e=[];for(let i=0;i<t.length;i++)this._root.language?e.push(Ji(this._t(t[i]))):e.push(Ji(t[i]));return e}};ae.className="DateFormatter";ae.classNames=N.classNames.concat([ae.className]);var ne=class extends N{constructor(){super(...arguments),this._unitAliases={Y:"y",D:"d",H:"h",K:"h",k:"h",n:"S"}}_setDefaults(){let t="_duration_millisecond",e="_duration_second",i="_duration_minute",s="_duration_hour",r="_duration_day",a="_duration_week",n="_duration_month",h="_duration_year",l="_second",c="_minute",u="_hour",d="_day",f="_week",m="_month",_="_year";this._setDefault("negativeBase",0),this._setDefault("baseUnit","second"),this._setDefault("durationFormats",{millisecond:{millisecond:this._t(t),second:this._t(t+l),minute:this._t(t+c),hour:this._t(t+u),day:this._t(t+d),week:this._t(t+f),month:this._t(t+m),year:this._t(t+_)},second:{second:this._t(e),minute:this._t(e+c),hour:this._t(e+u),day:this._t(e+d),week:this._t(e+f),month:this._t(e+m),year:this._t(e+_)},minute:{minute:this._t(i),hour:this._t(i+u),day:this._t(i+d),week:this._t(i+f),month:this._t(i+m),year:this._t(i+_)},hour:{hour:this._t(s),day:this._t(s+d),week:this._t(s+f),month:this._t(s+m),year:this._t(s+_)},day:{day:this._t(r),week:this._t(r+f),month:this._t(r+m),year:this._t(r+_)},week:{week:this._t(a),month:this._t(a+m),year:this._t(a+_)},month:{month:this._t(n),year:this._t(n+_)},year:{year:this._t(h)}}),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){let s=i||this.get("baseUnit");(typeof e>"u"||e==="")&&(this.get("durationFormat")!=null?e=this.get("durationFormat"):e=this.getFormat(mt(t),void 0,s)),e=be(e);let r=this.parseFormat(e,s),a=Number(t),n;a>this.get("negativeBase")?n=r.positive:a<this.get("negativeBase")?n=r.negative:n=r.zero;let h=this.applyFormat(a,n);return n.color!==""&&(h="["+n.color+"]"+h+"[/]"),h}parseFormat(t,e){let i=e||this.get("baseUnit"),s={positive:{color:"",template:"",parts:[],source:"",baseUnit:i,parsed:!1,absolute:!1},negative:{color:"",template:"",parts:[],source:"",baseUnit:i,parsed:!1,absolute:!1},zero:{color:"",template:"",parts:[],source:"",baseUnit:i,parsed:!1,absolute:!1}};t=t.replace("||",Zt);let r=t.split("|");return s.positive.source=r[0],typeof r[2]>"u"?s.zero=s.positive:s.zero.source=r[2],typeof r[1]>"u"?s.negative=s.positive:s.negative.source=r[1],W(s,(a,n)=>{if(n.parsed)return;let h=n.source,l=[];l=n.source.match(/^\[([^\]]*)\]/),l&&l.length&&l[0]!==""&&(h=n.source.substr(l[0].length),n.color=l[1]);let c=Ct.chunk(h,!0);for(let u=0;u<c.length;u++){let d=c[u];if(d.text=d.text.replace(Zt,"|"),d.type==="value"){d.text.match(/[yYMdDwhHKkmsSn]+a/)&&(n.absolute=!0,d.text=d.text.replace(/([yYMdDwhHKkmsSn]+)a/,"$1"));let f=d.text.match(/y+|Y+|M+|d+|D+|w+|h+|H+|K+|k+|m+|s+|S+|n+/g);if(f)for(let m=0;m<f.length;m++)n.parts.push(f[m]),d.text=d.text.replace(f[m],Ht)}n.template+=d.text}n.parsed=!0}),s}applyFormat(t,e){let i=!e.absolute&&t<this.get("negativeBase");t=Math.abs(t);let s=this.toTimeStamp(t,e.baseUnit),r=e.template,a={millisecond:0,second:0,minute:0,hour:0,day:0,week:0,month:0,year:0};for(let n=0,h=e.parts.length;n<h;n++){let l=e.parts[n],c=this._toTimeUnit(l.substr(0,1)),u,d=this._getUnitValue(c);n<h-1?u=Math.floor(s/d):u=Math.round(s/d),a[c]+=u,s-=u*d}W(a,(n,h)=>{n=="millisecond"&&h==1e3?(a.second++,a.millisecond=0):n=="second"&&h==60?(a.minute++,a.second=0):n=="minute"&&h==60?(a.hour++,a.minute=0):n=="hour"&&h==24?(a.day++,a.hour=0):n=="day"&&h==7&&e.parts.indexOf("w")!==-1?(a.week++,a.day=0):n=="day"&&h==30?(a.month++,a.day=0):n=="month"&&h==12&&(a.year++,a.month=0)});for(let n=0,h=e.parts.length;n<h;n++){let l=e.parts[n],c=this._toTimeUnit(l.substr(0,1)),u=l.length;r=r.replace(Ht,Y(a[c],u,"0"))}return i&&(r="-"+r),r}toTimeStamp(t,e){return t*this._getUnitValue(e)}_toTimeUnit(t){switch(this._unitAliases[t]||t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year"}}getFormat(t,e,i){if(this.get("durationFormat")!=null)return this.get("durationFormat");if(i||(i=this.get("baseUnit")),e!=null&&t!=e){t=Math.abs(t),e=Math.abs(e);let s=this.getValueUnit(Math.max(t,e),i);return this.get("durationFormats")[i][s]}else{let s=this.getValueUnit(t,i);return this.get("durationFormats")[i][s]}}getValueUnit(t,e){e||(e=this.get("baseUnit"));let i,s=this.getMilliseconds(t,e);return ir(this._getUnitValues(),(r,a)=>{if(r==e||i){if(s/a<=1)return i||(i=r),!1;i=r}return!0}),i}getMilliseconds(t,e){return e||(e=this.get("baseUnit")),t*this._getUnitValue(e)}_getUnitValue(t){return this._getUnitValues()[t]}_getUnitValues(){return{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6}}};ne.className="DurationFormatter";ne.classNames=N.classNames.concat([ne.className]);var Ni={firstDayOfWeek:1,_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03BC",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(o){let t="th";if(o<11||o>13)switch(o%10){case 1:t="st";break;case 2:t="nd";break;case 3:t="rd";break}return t},"Zoom Out":"",Play:"",Stop:"",Legend:"","Press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:"",OK:"",Cancel:"",Delete:"",Settings:"",Expand:"","Move Up":"","Move Down":""};var Fi=class extends N{_setDefaults(){this.setPrivate("defaultLocale",Ni),super._setDefaults()}translate(t,e,...i){e||(e=this._root.locale||this.getPrivate("defaultLocale"));let s=t,r=e[t];if(r===null)s="";else if(r!=null)r&&(s=r);else if(e!==this.getPrivate("defaultLocale"))return this.translate(t,this.getPrivate("defaultLocale"),...i);if(i.length)for(let a=i.length,n=0;n<a;++n)s=s.split("%"+(n+1)).join(i[n]);return s}translateAny(t,e,...i){return this.translate(t,e,...i)}setTranslationAny(t,e,i){let s=i||this._root.locale;s[t]=e}setTranslationsAny(t,e){W(t,(i,s)=>{this.setTranslationAny(i,s,e)})}translateEmpty(t,e,...i){let s=this.translate(t,e,...i);return s==t?"":s}translateFunc(t,e){return this._root.locale[t]?this._root.locale[t]:e!==this.getPrivate("defaultLocale")?this.translateFunc(t,this.getPrivate("defaultLocale")):()=>""}translateAll(t,e){return this.isDefault()?t:xi(t,i=>this.translate(i,e))}isDefault(){return this.getPrivate("defaultLocale")===this._root.locale}};var At=class{constructor(t,e,i,s){this.x1=t,this.y1=e,this.x2=i,this.y2=s,this.type="linear",this.stops=[]}addColorStop(t,e){this.stops.push({offset:t,color:e})}},Lt=class{constructor(t,e,i,s,r,a){this.x1=t,this.y1=e,this.radius1=i,this.x2=s,this.y2=r,this.radius2=a,this.type="radial",this.stops=[]}addColorStop(t,e){this.stops.push({offset:t,color:e})}},Nt=class{constructor(t,e,i,s,r){this.graphics=t,this.background=e,this.repetition=i,this.width=s,this.height=r,this.type="pattern"}},Mt=class{constructor(t,e){this.source=t,this.repetition=e,this.type="raster"}};function Bi(o,t){for(;!(o.interactive&&!t(o));)if(o._parent)o=o._parent;else break}function Qr(o,t,e){return P(o,bi(t),i=>{let s=Ki(i),r=i.touches;r?(r.length==0&&(r=i.changedTouches),e(fe(r),s)):e([i],s)})}var ve=class extends ge{constructor(t){super(),this._host=t,this.interactionsEnabled=!0,this.tapToActivate=!1,this.tapToActivateTimeout=3e3,this._touchActive=!1,this._hovering=new Set,this._dragging=[],this._mousedown=[],this._listeners={},this._events={};let e=t.view;if(this._disposers.push(new et(()=>{W(this._events,(i,s)=>{s.disposer.dispose()})})),wt("touchevents")){let i=s=>{this._dragging.length!==0&&ue(this._dragging,r=>r.value.shouldCancelTouch()?(s.preventDefault(),!1):!0),this._touchActiveTimeout&&this._delayTouchDeactivate()};this._disposers.push(P(window,"touchstart",i,{passive:!1})),this._disposers.push(P(e,"touchstart",i,{passive:!1})),this._disposers.push(P(e,"touchmove",()=>{this._touchActiveTimeout&&this._delayTouchDeactivate()},{passive:!0})),this._disposers.push(P(window,"click",s=>{this._touchActive=!1},{passive:!0})),this._disposers.push(P(e,"click",s=>{window.setTimeout(()=>{this._touchActive=!0,this._delayTouchDeactivate()},100)},{passive:!0}))}wt("wheelevents")&&this._disposers.push(P(e,"wheel",i=>{let s=!1;this._hovering.forEach(r=>{if(r.wheelable)return s=!0,!1}),s&&i.preventDefault()},{passive:!1}))}_delayTouchDeactivate(){this._touchActiveTimeout&&clearTimeout(this._touchActiveTimeout),this.tapToActivateTimeout>0&&(this._touchActiveTimeout=window.setTimeout(()=>{this._touchActive=!1},this.tapToActivateTimeout))}afterRender(){if(this._hovering.size&&this._lastPointerMoveEvent){let{events:t,target:e,native:i}=this._lastPointerMoveEvent;w(t,s=>{this._dispatchGlobalMousemove(s,e,i)})}}_withEvents(t,e){let i=this._events[t];if(i!==void 0){i.dispatching=!0;try{e(i)}finally{i.dispatching=!1,i.cleanup&&(i.cleanup=!1,pe(i.callbacks,s=>!s.disposed),i.callbacks.length===0&&(i.disposer.dispose(),delete this._events[t]))}}}_dispatchEventAll(t,e){this.interactionsEnabled&&this._withEvents(t,i=>{w(i.callbacks,s=>{s.disposed||s.callback.call(s.context,e)})})}_dispatchEvent(t,e,i){if(!this.interactionsEnabled)return!1;let s=!1;return this._withEvents(t,r=>{w(r.callbacks,a=>{!a.disposed&&a.object===e&&(a.callback.call(a.context,i),s=!0)})}),s}_dispatchMousedown(t,e){let i=t.button;if(i!=0&&i!=2&&i!=1&&i!==void 0)return;let s=this._host.getEvent(t),r=this._host._getHitTarget(s.originalPoint,s.bbox,e);if(r){let a=s.id,n=!1;Bi(r,h=>{let l={id:a,value:h};return this._mousedown.push(l),!n&&this._dispatchEvent("pointerdown",h,s)&&(n=!0,this._dragging.some(u=>u.value===h&&u.id===a)||this._dragging.push(l)),!0})}this._dispatchEventAll("globalpointerdown",s)}_dispatchGlobalMousemove(t,e,i){let s=this._host.getEvent(t),r=this._host._getHitTarget(s.originalPoint,s.bbox,e);s.native=i,r?(this._hovering.forEach(a=>{a.contains(r)||(this._hovering.delete(a),a.cursorOverStyle&&Ze(document.body,"cursor",a._replacedCursorStyle),this._dispatchEvent("pointerout",a,s))}),s.native&&Bi(r,a=>(this._hovering.has(a)||(this._hovering.add(a),a.cursorOverStyle&&(a._replacedCursorStyle=or(document.body,"cursor"),Ze(document.body,"cursor",a.cursorOverStyle)),this._dispatchEvent("pointerover",a,s)),!0))):(this._hovering.forEach(a=>{a.cursorOverStyle&&Ze(document.body,"cursor",a._replacedCursorStyle),this._dispatchEvent("pointerout",a,s)}),this._hovering.clear()),this._dispatchEventAll("globalpointermove",s)}removeHovering(t){this._hovering.delete(t),t.cursorOverStyle&&Ze(document.body,"cursor",t._replacedCursorStyle)}_dispatchGlobalMouseup(t,e){let i=this._host.getEvent(t);i.native=e,this._dispatchEventAll("globalpointerup",i)}_dispatchDragMove(t){if(this._dragging.length!==0){let e=this._host.getEvent(t),i=e.id;this._dragging.forEach(s=>{s.id===i&&this._dispatchEvent("pointermove",s.value,e)})}}_dispatchDragEnd(t,e){let i=t.button,s;if(i==0||i===void 0)s="click";else if(i==2)s="rightclick";else if(i==1)s="middleclick";else return;let r=this._host.getEvent(t),a=r.id;if(this._mousedown.length!==0){let n=this._host._getHitTarget(r.originalPoint,r.bbox,e);n&&this._mousedown.forEach(h=>{h.id===a&&h.value.contains(n)&&this._dispatchEvent(s,h.value,r)}),this._mousedown.length=0}this._dragging.length!==0&&(this._dragging.forEach(n=>{n.id===a&&this._dispatchEvent("pointerup",n.value,r)}),this._dragging.length=0)}_dispatchDoubleClick(t,e){let i=this._host.getEvent(t),s=this._host._getHitTarget(i.originalPoint,i.bbox,e);s&&Bi(s,r=>!this._dispatchEvent("dblclick",r,i))}_dispatchWheel(t,e){let i=this._host.getEvent(t),s=this._host._getHitTarget(i.originalPoint,i.bbox,e);s&&Bi(s,r=>!this._dispatchEvent("wheel",r,i))}_makeSharedEvent(t,e){if(this._listeners[t]===void 0){let i=e();this._listeners[t]=new Ke(()=>{delete this._listeners[t],i.dispose()})}return this._listeners[t].increment()}_onPointerEvent(t,e){let i=!1,s=null;function r(){s=null,i=!1}return new gt([new et(()=>{s!==null&&clearTimeout(s),r()}),P(this._host.view,bi(t),a=>{i=!0,s!==null&&clearTimeout(s),s=window.setTimeout(r,0)}),Qr(window,t,(a,n)=>{s!==null&&(clearTimeout(s),s=null),e(a,n,i),i=!1})])}_initEvent(t){switch(t){case"globalpointermove":case"pointerover":case"pointerout":return this._makeSharedEvent("pointermove",()=>{let e=(i,s,r)=>{this._lastPointerMoveEvent={events:i,target:s,native:r},w(i,a=>{this._dispatchGlobalMousemove(a,s,r)})};return new gt([this._onPointerEvent("pointerdown",e),this._onPointerEvent("pointermove",e)])});case"globalpointerup":return this._makeSharedEvent("pointerup",()=>{let e=this._onPointerEvent("pointerup",(s,r,a)=>{w(s,n=>{this._dispatchGlobalMouseup(n,a)}),this._lastPointerMoveEvent={events:s,target:r,native:a}}),i=this._onPointerEvent("pointercancel",(s,r,a)=>{w(s,n=>{this._dispatchGlobalMouseup(n,a)}),this._lastPointerMoveEvent={events:s,target:r,native:a}});return new et(()=>{e.dispose(),i.dispose()})});case"click":case"rightclick":case"middleclick":case"pointerdown":case"globalpointerdown":case"pointermove":case"pointerup":return this._makeSharedEvent("pointerdown",()=>{let e=this._onPointerEvent("pointerdown",(a,n)=>{w(a,h=>{this._dispatchMousedown(h,n)})}),i=this._onPointerEvent("pointermove",a=>{w(a,n=>{this._dispatchDragMove(n)})}),s=this._onPointerEvent("pointerup",(a,n)=>{w(a,h=>{this._dispatchDragEnd(h,n)})}),r=this._onPointerEvent("pointercancel",(a,n)=>{w(a,h=>{this._dispatchDragEnd(h,n)})});return new et(()=>{e.dispose(),i.dispose(),s.dispose(),r.dispose()})});case"dblclick":return this._makeSharedEvent("dblclick",()=>this._onPointerEvent("dblclick",(e,i)=>{w(e,s=>{this._dispatchDoubleClick(s,i)})}));case"wheel":return this._makeSharedEvent("wheel",()=>P(this._host.view,bi("wheel"),e=>{this._dispatchWheel(e,Ki(e))},{passive:!1}))}}addEvent(t,e,i,s){let r=this._events[e];r===void 0&&(r=this._events[e]={disposer:this._initEvent(e),callbacks:[],dispatching:!1,cleanup:!1});let a={object:t,context:s,callback:i,disposed:!1};return r.callbacks.push(a),new et(()=>{a.disposed=!0,r.dispatching?r.cleanup=!0:(ye(r.callbacks,a),r.callbacks.length===0&&(r.disposer.dispose(),delete this._events[e]))})}};var ta=(function(){function o(t,e){var i=[],s=!0,r=!1,a=void 0;try{for(var n=t[Symbol.iterator](),h;!(s=(h=n.next()).done)&&(i.push(h.value),!(e&&i.length===e));s=!0);}catch(l){r=!0,a=l}finally{try{!s&&n.return&&n.return()}finally{if(r)throw a}}return i}return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return o(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),ii=Math.PI*2,cs=function(t,e,i,s,r,a,n){var h=t.x,l=t.y;h*=e,l*=i;var c=s*h-r*l,u=r*h+s*l;return{x:c+a,y:u+n}},ea=function(t,e){var i=e===1.5707963267948966?.551915024494:e===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(e/4),s=Math.cos(t),r=Math.sin(t),a=Math.cos(t+e),n=Math.sin(t+e);return[{x:s-r*i,y:r+s*i},{x:a+n*i,y:n-a*i},{x:a,y:n}]},kr=function(t,e,i,s){var r=t*s-e*i<0?-1:1,a=t*i+e*s;return a>1&&(a=1),a<-1&&(a=-1),r*Math.acos(a)},ia=function(t,e,i,s,r,a,n,h,l,c,u,d){var f=Math.pow(r,2),m=Math.pow(a,2),_=Math.pow(u,2),p=Math.pow(d,2),y=f*m-f*p-m*_;y<0&&(y=0),y/=f*p+m*_,y=Math.sqrt(y)*(n===h?-1:1);var g=y*r/a*d,b=y*-a/r*u,v=c*g-l*b+(t+i)/2,x=l*g+c*b+(e+s)/2,C=(u-g)/r,T=(d-b)/a,M=(-u-g)/r,S=(-d-b)/a,D=kr(1,0,C,T),k=kr(C,T,M,S);return h===0&&k>0&&(k-=ii),h===1&&k<0&&(k+=ii),[v,x,D,k]},sa=function(t){var e=t.px,i=t.py,s=t.cx,r=t.cy,a=t.rx,n=t.ry,h=t.xAxisRotation,l=h===void 0?0:h,c=t.largeArcFlag,u=c===void 0?0:c,d=t.sweepFlag,f=d===void 0?0:d,m=[];if(a===0||n===0)return[];var _=Math.sin(l*ii/360),p=Math.cos(l*ii/360),y=p*(e-s)/2+_*(i-r)/2,g=-_*(e-s)/2+p*(i-r)/2;if(y===0&&g===0)return[];a=Math.abs(a),n=Math.abs(n);var b=Math.pow(y,2)/Math.pow(a,2)+Math.pow(g,2)/Math.pow(n,2);b>1&&(a*=Math.sqrt(b),n*=Math.sqrt(b));var v=ia(e,i,s,r,a,n,u,f,_,p,y,g),x=ta(v,4),C=x[0],T=x[1],M=x[2],S=x[3],D=Math.abs(S)/(ii/4);Math.abs(1-D)<1e-7&&(D=1);var k=Math.max(Math.ceil(D),1);S/=k;for(var A=0;A<k;A++)m.push(ea(M,S)),M+=S;return m.map(function(L){var H=cs(L[0],a,n,p,_,C,T),z=H.x,q=H.y,J=cs(L[1],a,n,p,_,C,T),tt=J.x,U=J.y,j=cs(L[2],a,n,p,_,C,T),vt=j.x,nt=j.y;return{x1:z,y1:q,x2:tt,y2:U,x:vt,y:nt}})},Mr=sa;function G(o,t){o.left=Math.min(o.left,t.x),o.top=Math.min(o.top,t.y),o.right=Math.max(o.right,t.x),o.bottom=Math.max(o.bottom,t.y)}function ra(o,t,e){if(t!==e)throw new Error("Required "+e+" arguments for "+o+" but got "+t)}function si(o,t,e){if(t<e)throw new Error("Required at least "+e+" arguments for "+o+" but got "+t)}function dt(o,t,e){if(si(o,t,e),t%e!==0)throw new Error("Arguments for "+o+" must be in pairs of "+e)}function aa(o){for(let t=0;t<o.length;t+=7){let e=t+3,i=o[e];if(i.length>1){let s=/^([01])([01])(.*)$/.exec(i);s!==null&&(o.splice(e,0,s[1]),++e,o.splice(e,0,s[2]),++e,s[3].length>0?o[e]=s[3]:o.splice(e,1))}if(++e,i=o[e],i.length>1){let s=/^([01])(.+)$/.exec(i);s!==null&&(o.splice(e,0,s[1]),++e,o[e]=s[2])}}}function Sr(o){if(o===0||o===1)return o;throw new Error("Flag must be 0 or 1")}var O=class{path(t){}addBounds(t){}},ds=class extends O{constructor(){super(...arguments),this.type="beginPath"}},ri=class extends O{constructor(t){super(),this.color=t,this.type="beginFill"}},us=class extends O{constructor(t){super(),this.clearShadow=t,this.type="endFill"}},fs=class extends O{constructor(){super(...arguments),this.type="endStroke"}},ai=class extends O{constructor(t,e,i,s){super(),this.width=t,this.color=e,this.lineJoin=i,this.lineCap=s,this.type="lineStyle"}},ps=class extends O{constructor(t){super(),this.dash=t,this.type="lineDash"}},ms=class extends O{constructor(t){super(),this.dashOffset=t,this.type="lineDashOffset"}},gs=class extends O{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.width=i,this.height=s,this.type="drawRect"}path(t){t.rect(this.x,this.y,this.width,this.height)}addBounds(t){let e=this.x,i=this.y,s=e+this.width,r=i+this.height;G(t,{x:e,y:i}),G(t,{x:s,y:i}),G(t,{x:e,y:r}),G(t,{x:s,y:r})}},_s=class extends O{constructor(t,e,i){super(),this.x=t,this.y=e,this.radius=i,this.type="drawCircle"}path(t){t.moveTo(this.x+this.radius,this.y),t.arc(this.x,this.y,this.radius,0,2*Math.PI)}addBounds(t){G(t,{x:this.x-this.radius,y:this.y-this.radius}),G(t,{x:this.x+this.radius,y:this.y+this.radius})}},ys=class extends O{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.radiusX=i,this.radiusY=s,this.type="drawEllipse"}path(t){t.ellipse(0,0,this.radiusX,this.radiusY,0,0,Math.PI*2)}addBounds(t){G(t,{x:this.x-this.radiusX,y:this.y-this.radiusY}),G(t,{x:this.x+this.radiusX,y:this.y+this.radiusY})}},xs=class extends O{constructor(t,e,i,s,r,a){super(),this.cx=t,this.cy=e,this.radius=i,this.startAngle=s,this.endAngle=r,this.anticlockwise=a,this.type="arc"}path(t){this.radius>0&&t.arc(this.cx,this.cy,this.radius,this.startAngle,this.endAngle,this.anticlockwise)}addBounds(t){let e=br(this.cx,this.cy,this.startAngle*Gt,this.endAngle*Gt,this.radius);G(t,{x:e.left,y:e.top}),G(t,{x:e.right,y:e.bottom})}},bs=class extends O{constructor(t,e,i,s,r){super(),this.x1=t,this.y1=e,this.x2=i,this.y2=s,this.radius=r,this.type="arcTo"}path(t){this.radius>0&&t.arcTo(this.x1,this.y1,this.x2,this.y2,this.radius)}},vs=class extends O{constructor(t,e){super(),this.x=t,this.y=e,this.type="lineTo"}path(t){t.lineTo(this.x,this.y)}addBounds(t){G(t,{x:this.x,y:this.y})}},ws=class extends O{constructor(t,e){super(),this.x=t,this.y=e,this.type="moveTo"}path(t){t.moveTo(this.x,this.y)}addBounds(t){G(t,{x:this.x,y:this.y})}},Cs=class extends O{constructor(){super(...arguments),this.type="closePath"}path(t){t.closePath()}},Ts=class extends O{constructor(t,e,i,s,r,a){super(),this.cpX=t,this.cpY=e,this.cpX2=i,this.cpY2=s,this.toX=r,this.toY=a,this.type="bezierCurveTo"}path(t){t.bezierCurveTo(this.cpX,this.cpY,this.cpX2,this.cpY2,this.toX,this.toY)}addBounds(t){G(t,{x:this.cpX,y:this.cpY}),G(t,{x:this.cpX2,y:this.cpY2}),G(t,{x:this.toX,y:this.toY})}},ks=class extends O{constructor(t,e,i,s){super(),this.cpX=t,this.cpY=e,this.toX=i,this.toY=s,this.type="quadraticCurveTo"}path(t){t.quadraticCurveTo(this.cpX,this.cpY,this.toX,this.toY)}addBounds(t){G(t,{x:this.cpX,y:this.cpY}),G(t,{x:this.toX,y:this.toY})}},Ms=class extends O{constructor(t,e,i,s,r){super(),this.color=t,this.blur=e,this.offsetX=i,this.offsetY=s,this.opacity=r,this.type="shadow"}},Ss=class extends O{constructor(t,e,i,s,r){super(),this.image=t,this.width=e,this.height=i,this.x=s,this.y=r,this.type="image"}addBounds(t){G(t,{x:this.x,y:this.y}),G(t,{x:this.width,y:this.height})}},Ds=class extends O{constructor(t,e){super(),this.id=t,this.name=e,this.type="beginGroup"}},Es=class extends O{constructor(){super(...arguments),this.type="endGroup"}},Ri=class{constructor(){this.ops=[],this.version=0,this._hasShadows=!1,this._strokeWidth=1}clear(){this.ops.length=0,this._strokeWidth=1,++this.version}beginFill(t,e=1){this._fillAlpha=e,t?t instanceof $?this.ops.push(new ri(t.toCSS(e))):this.ops.push(new ri(t)):this.ops.push(new ri("rgba(0, 0, 0, "+e+")"))}endFill(){this.ops.push(new us(this._hasShadows))}endStroke(){this._strokeWidth>0&&isFinite(this._strokeWidth)&&this.ops.push(new fs)}beginPath(){this.ops.push(new ds)}lineStyle(t=0,e,i=1,s,r){this._strokeAlpha=i,this._strokeWidth=t,e?e instanceof $?this.ops.push(new ai(t,e.toCSS(i),s,r)):this.ops.push(new ai(t,e,s,r)):this.ops.push(new ai(t,"rgba(0, 0, 0, "+i+")",s,r))}setLineDash(t){this.ops.push(new ps(t||[]))}setLineDashOffset(t=0){this.ops.push(new ms(t))}drawRect(t,e,i,s){this.ops.push(new gs(t,e,i,s))}drawCircle(t,e,i){this.ops.push(new _s(t,e,i))}drawEllipse(t,e,i,s){this.ops.push(new ys(t,e,i,s))}arc(t,e,i,s,r,a=!1){this.ops.push(new xs(t,e,i,s,r,a))}arcTo(t,e,i,s,r){this.ops.push(new bs(t,e,i,s,r))}lineTo(t,e){this.ops.push(new vs(t,e))}moveTo(t,e){this.ops.push(new ws(t,e))}bezierCurveTo(t,e,i,s,r,a){this.ops.push(new Ts(t,e,i,s,r,a))}quadraticCurveTo(t,e,i,s){this.ops.push(new ks(t,e,i,s))}closePath(){this.ops.push(new Cs)}shadow(t,e=0,i=0,s=0,r){this._hasShadows=!0,this.ops.push(new Ms(r!=null?t.toCSS(r):t.toCSS(this._fillAlpha||this._strokeAlpha),e,i,s))}image(t,e,i,s,r){this.ops.push(new Ss(t,e,i,s,r))}beginGroup(t,e){this.ops.push(new Ds(t,e))}endGroup(){this.ops.push(new Es)}svgPath(t){let e=0,i=0,s=null,r=null,a=null,n=null,h=/([MmZzLlHhVvCcSsQqTtAa])([^MmZzLlHhVvCcSsQqTtAa]*)/g,l=/[\u0009 \u000A\u000C\u000D]*([\+\-]?[0-9]*\.?[0-9]+(?:[eE][\+\-]?[0-9]+)?)[\u0009 \u000A\u000C\u000D]*,?/g,c=this.ops.length;try{let u;for(;(u=h.exec(t))!==null;){let d=u[1],f=u[2],m=[];for(;(u=l.exec(f))!==null;)m.push(u[1]);switch(d!=="S"&&d!=="s"&&d!=="C"&&d!=="c"&&(s=null,r=null),d!=="Q"&&d!=="q"&&d!=="T"&&d!=="t"&&(a=null,n=null),d){case"M":dt(d,m.length,2),e=+m[0],i=+m[1],this.moveTo(e,i);for(let p=2;p<m.length;p+=2)e=+m[p],i=+m[p+1],this.lineTo(e,i);break;case"m":dt(d,m.length,2),e+=+m[0],i+=+m[1],this.moveTo(e,i);for(let p=2;p<m.length;p+=2)e+=+m[p],i+=+m[p+1],this.lineTo(e,i);break;case"L":dt(d,m.length,2);for(let p=0;p<m.length;p+=2)e=+m[p],i=+m[p+1],this.lineTo(e,i);break;case"l":dt(d,m.length,2);for(let p=0;p<m.length;p+=2)e+=+m[p],i+=+m[p+1],this.lineTo(e,i);break;case"H":si(d,m.length,1);for(let p=0;p<m.length;++p)e=+m[p],this.lineTo(e,i);break;case"h":si(d,m.length,1);for(let p=0;p<m.length;++p)e+=+m[p],this.lineTo(e,i);break;case"V":si(d,m.length,1);for(let p=0;p<m.length;++p)i=+m[p],this.lineTo(e,i);break;case"v":si(d,m.length,1);for(let p=0;p<m.length;++p)i+=+m[p],this.lineTo(e,i);break;case"C":dt(d,m.length,6);for(let p=0;p<m.length;p+=6){let y=+m[p],g=+m[p+1];s=+m[p+2],r=+m[p+3],e=+m[p+4],i=+m[p+5],this.bezierCurveTo(y,g,s,r,e,i)}break;case"c":dt(d,m.length,6);for(let p=0;p<m.length;p+=6){let y=+m[p]+e,g=+m[p+1]+i;s=+m[p+2]+e,r=+m[p+3]+i,e+=+m[p+4],i+=+m[p+5],this.bezierCurveTo(y,g,s,r,e,i)}break;case"S":dt(d,m.length,4),(s===null||r===null)&&(s=e,r=i);for(let p=0;p<m.length;p+=4){let y=2*e-s,g=2*i-r;s=+m[p],r=+m[p+1],e=+m[p+2],i=+m[p+3],this.bezierCurveTo(y,g,s,r,e,i)}break;case"s":dt(d,m.length,4),(s===null||r===null)&&(s=e,r=i);for(let p=0;p<m.length;p+=4){let y=2*e-s,g=2*i-r;s=+m[p]+e,r=+m[p+1]+i,e+=+m[p+2],i+=+m[p+3],this.bezierCurveTo(y,g,s,r,e,i)}break;case"Q":dt(d,m.length,4);for(let p=0;p<m.length;p+=4)a=+m[p],n=+m[p+1],e=+m[p+2],i=+m[p+3],this.quadraticCurveTo(a,n,e,i);break;case"q":dt(d,m.length,4);for(let p=0;p<m.length;p+=4)a=+m[p]+e,n=+m[p+1]+i,e+=+m[p+2],i+=+m[p+3],this.quadraticCurveTo(a,n,e,i);break;case"T":dt(d,m.length,2),(a===null||n===null)&&(a=e,n=i);for(let p=0;p<m.length;p+=2)a=2*e-a,n=2*i-n,e=+m[p],i=+m[p+1],this.quadraticCurveTo(a,n,e,i);break;case"t":dt(d,m.length,2),(a===null||n===null)&&(a=e,n=i);for(let p=0;p<m.length;p+=2)a=2*e-a,n=2*i-n,e+=+m[p],i+=+m[p+1],this.quadraticCurveTo(a,n,e,i);break;case"A":case"a":let _=d==="a";aa(m),dt(d,m.length,7);for(let p=0;p<m.length;p+=7){let y=+m[p+5],g=+m[p+6];_&&(y+=e,g+=i);let b=Mr({px:e,py:i,rx:+m[p],ry:+m[p+1],xAxisRotation:+m[p+2],largeArcFlag:Sr(+m[p+3]),sweepFlag:Sr(+m[p+4]),cx:y,cy:g});w(b,v=>{this.bezierCurveTo(v.x1,v.y1,v.x2,v.y2,v.x,v.y),e=v.x,i=v.y})}break;case"Z":case"z":ra(d,m.length,0),this.closePath();break}}}catch(u){this.ops.length=c,console.warn(`Error when parsing svgPath:
3
- `+u.message+`
4
- `+t)}}addBounds(t){w(this.ops,e=>{e.addBounds(t)})}};var we=class{constructor(t=1,e=0,i=0,s=1,r=0,a=0){this.a=t,this.b=e,this.c=i,this.d=s,this.tx=r,this.ty=a}setTransform(t,e,i,s,r,a=1){this.a=Math.cos(r)*a,this.b=Math.sin(r)*a,this.c=-Math.sin(r)*a,this.d=Math.cos(r)*a,this.tx=t-(i*this.a+s*this.c),this.ty=e-(i*this.b+s*this.d)}apply(t){return{x:this.a*t.x+this.c*t.y+this.tx,y:this.b*t.x+this.d*t.y+this.ty}}applyInverse(t){let e=1/(this.a*this.d+this.c*-this.b);return{x:this.d*e*t.x+-this.c*e*t.y+(this.ty*this.c-this.tx*this.d)*e,y:this.a*e*t.y+-this.b*e*t.x+(-this.ty*this.a+this.tx*this.b)*e}}append(t){let e=this.a,i=this.b,s=this.c,r=this.d;this.a=t.a*e+t.b*s,this.b=t.a*i+t.b*r,this.c=t.c*e+t.d*s,this.d=t.c*i+t.d*r,this.tx=t.tx*e+t.ty*s+this.tx,this.ty=t.tx*i+t.ty*r+this.ty}prepend(t){let e=this.tx;if(t.a!==1||t.b!==0||t.c!==0||t.d!==1){let i=this.a,s=this.c;this.a=i*t.a+this.b*t.c,this.b=i*t.b+this.b*t.d,this.c=s*t.a+this.d*t.c,this.d=s*t.b+this.d*t.d}this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty}copyFrom(t){this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty}};function na(o,t){return o===null||t===null?o===t:o.a===t.a&&o.b===t.b&&o.c===t.c&&o.d===t.d}function Dr(o,t,e,i){let s=o.a,r=o.b,a=o.c,n=o.d,h=o.tx-t,l=o.ty-e;o.a=i.a*s+i.c*r,o.b=i.b*s+i.d*r,o.c=i.a*a+i.c*n,o.d=i.b*a+i.d*n,o.tx=t+i.a*h+i.c*l,o.ty=e+i.b*h+i.d*l}var zi=class{constructor(){this._x=0,this._y=0}get x(){return this._x}get y(){return this._y}set x(t){this._x=t}set y(t){this._y=t}},Xt=class extends sr{constructor(t){super(),this.mask=null,this.visible=!0,this.exportable=!0,this.interactive=!1,this.inactive=null,this.wheelable=!1,this.cancelTouch=!1,this.isMeasured=!1,this.buttonMode=!1,this.alpha=1,this.compoundAlpha=1,this.angle=0,this.scale=1,this.x=0,this.y=0,this.crisp=!1,this.pivot=new zi,this.deform=null,this._localMatrix=new we,this._matrix=new we,this._uMatrix=new we,this._mx=NaN,this._my=NaN,this._mpx=NaN,this._mpy=NaN,this._mAngle=NaN,this._mScale=NaN,this._mDeform=null,this._renderer=t}_dispose(){this._renderer._removeObject(this),this.getLayer().dirty=!0}getCanvas(){return this._renderer._layerCanvas(this.getLayer())}getLayer(){let t=this;for(;;){if(t._layer)return t._layer;if(t._parent)t=t._parent;else return this._renderer.defaultLayer}}setLayer(t,e){t==null?this._layer=void 0:(this._layer=this._renderer._useLayer(t,e),this._parent&&this._parent.registerChildLayer(this._layer))}markDirtyLayer(){this.getLayer().dirty=!0}clear(){this.invalidateBounds()}invalidateBounds(){this._localBounds=void 0}_addBounds(t){}contains(t){for(;;){if(t===this)return!0;if(t._parent)t=t._parent;else return!1}}toGlobal(t){return this._matrix.apply(t)}toLocal(t){return this._matrix.applyInverse(t)}getLocalMatrix(){return this._uMatrix.setTransform(0,0,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this.deform!==null&&Dr(this._uMatrix,0,0,this.deform),this._uMatrix}getLocalBounds(){return this._localBounds||(this._localBounds={left:1e7,top:1e7,right:-1e7,bottom:-1e7},this._addBounds(this._localBounds)),this._localBounds}getContentBounds(){if(this.isMeasured)return this.getLocalBounds();let t=1e7,e={left:t,top:t,right:-t,bottom:-t};return this.isMeasured=!0,this._addBounds(e),this.isMeasured=!1,e.left>e.right?{left:0,top:0,right:0,bottom:0}:e}getAdjustedBounds(t){this._setMatrix();let e=this.getLocalMatrix(),i=e.apply({x:t.left,y:t.top}),s=e.apply({x:t.right,y:t.top}),r=e.apply({x:t.right,y:t.bottom}),a=e.apply({x:t.left,y:t.bottom});return{left:Math.min(i.x,s.x,r.x,a.x),top:Math.min(i.y,s.y,r.y,a.y),right:Math.max(i.x,s.x,r.x,a.x),bottom:Math.max(i.y,s.y,r.y,a.y)}}on(t,e,i){return this.interactive?this._renderer._interaction.addEvent(this,t,e,i):new et(()=>{})}_setMatrix(){let t=this.pivot.x,e=this.pivot.y,i=this.deform;(this.x!==this._mx||this.y!==this._my||t!==this._mpx||e!==this._mpy||this.angle!==this._mAngle||this.scale!==this._mScale||!na(i,this._mDeform))&&(this._localMatrix.setTransform(this.x,this.y,t,e,this.angle*Math.PI/180,this.scale),i!==null&&Dr(this._localMatrix,this.x,this.y,i),this._mx=this.x,this._my=this.y,this._mpx=t,this._mpy=e,this._mAngle=this.angle,this._mScale=this.scale,this._mDeform=i===null?null:{a:i.a,b:i.b,c:i.c,d:i.d}),this._matrix.copyFrom(this._localMatrix),this._parent&&this._matrix.prepend(this._parent._matrix)}hovering(){return this._renderer._interaction._hovering.has(this)}dragging(){return this._renderer._interaction._dragging.some(t=>t.value===this)}shouldCancelTouch(){let t=this._renderer._interaction;return t.tapToActivate&&!t._touchActive?!1:this.cancelTouch?!0:this._parent?this._parent.shouldCancelTouch():!1}},ut=class extends Xt{constructor(){super(...arguments),this.interactiveChildren=!0,this._children=[]}addChild(t){t._parent=this,this._children.push(t),t._layer&&this.registerChildLayer(t._layer)}addChildAt(t,e){t._parent=this,this._children.splice(e,0,t),t._layer&&this.registerChildLayer(t._layer)}removeChild(t){t._parent=void 0,ye(this._children,t)}registerChildLayer(t){this._childLayers||(this._childLayers=[]),qe(this._childLayers,t),this._parent&&this._parent.registerChildLayer(t)}markDirtyLayer(t=!1){super.markDirtyLayer(),t&&this._childLayers&&w(this._childLayers,e=>e.dirty=!0)}_dispose(){super._dispose(),this._childLayers&&w(this._childLayers,t=>{t.dirty=!0})}},rt=class extends Xt{constructor(){super(...arguments),this._data=new Ri,this.blendMode=is.NORMAL}clear(){super.clear(),this._data.clear(),this._contentBounds=void 0}getContentBounds(){return this.isMeasured||!this.visible?super.getContentBounds():(this._contentBounds||(this._contentBounds=super.getContentBounds()),this._contentBounds)}beginFill(t,e=1){t&&!(t instanceof $)&&(this.isMeasured=!0),this._data.beginFill(t,e)}endFill(){this._data.endFill()}endStroke(){this._data.endStroke()}beginPath(){this._data.beginPath()}lineStyle(t=0,e,i=1,s,r){this._data.lineStyle(t,e,i,s,r)}setLineDash(t){this._data.setLineDash(t)}setLineDashOffset(t=0){this._data.setLineDashOffset(t)}drawRect(t,e,i,s){this._data.drawRect(t,e,i,s)}drawCircle(t,e,i){this._data.drawCircle(t,e,i)}drawEllipse(t,e,i,s){this._data.drawEllipse(t,e,i,s)}arc(t,e,i,s,r,a=!1){this._data.arc(t,e,i,s,r,a)}arcTo(t,e,i,s,r){this._data.arcTo(t,e,i,s,r)}lineTo(t,e){this._data.lineTo(t,e)}moveTo(t,e){this._data.moveTo(t,e)}bezierCurveTo(t,e,i,s,r,a){this._data.bezierCurveTo(t,e,i,s,r,a)}quadraticCurveTo(t,e,i,s){this._data.quadraticCurveTo(t,e,i,s)}closePath(){this._data.closePath()}shadow(t,e=0,i=0,s=0,r){this._data.shadow(t,e,i,s,r)}image(t,e,i,s,r){this._data.image(t,e,i,s,r)}svgPath(t){this._data.svgPath(t)}beginGroup(t,e){this._data.beginGroup(t,e)}endGroup(){this._data.endGroup()}_addBounds(t){this.visible&&this.isMeasured&&this._data.addBounds(t)}},Ce=class{constructor(){this.lineHeight=ht(120),this.baselineRatio=.19,this.oversizedBehavior="none",this.breakWords=!1,this.ellipsis="\u2026",this.ignoreFormatting=!1}},ft=class extends Xt{constructor(t,e,i){super(t),this.resolution=1,this.textVisible=!0,this._originalScale=1,this.text=e,this.style=i}invalidateBounds(){super.invalidateBounds(),this._textInfo=void 0}invalidateVisibility(){this.textVisible=!0,this.scale=this._originalScale||1}_getFontStyle(t,e=!1){return wi(this.style,t,e,()=>getComputedStyle(this._renderer.view).getPropertyValue("font-family"))}_addBounds(t){if(this.visible&&this.isMeasured){let e=this._renderer._measureText(this);G(t,{x:e.left,y:e.top}),G(t,{x:e.right,y:e.bottom})}}_layoutState(){return{lines:[],textVisible:this.textVisible,truncated:this.truncated,scale:this.scale,originalScale:this._originalScale}}_applyLayoutState(t){this._textInfo=t.lines,this.textVisible=t.textVisible,this.truncated=t.truncated,this.scale=t.scale,this._originalScale=t.originalScale}},at=class extends ft{constructor(){super(...arguments),this.textType="circular",this.inside=!1,this.orientation="auto",this.kerning=0,this._textReversed=!1}_inward(){let t=this.orientation;if(t!="auto")return t=="inward";let e=this.radius||0,i=this.startAngle||0,s=0,r=this.style.textAlign||"left",a=r=="left"?1:-1,n=0,h=0;return w(this._textInfo,l=>{let c=i+l.width/(e-l.height)/2*-a;c>n&&(n=c)}),r=="left"?h=(n+s/2)*Gt:r=="right"?h=(n-s/2)*Gt:h=i*Gt,h=xr(h),h>=270||h<=90}_orient(){let t=this._textInfo,e=(this.style.textAlign||"left")=="left"?1:-1,i=!this._textReversed,s=this._inward();return s&&i&&t.reverse(),(e==-1&&s||e==1&&!s)&&i&&w(t,r=>{r.textChunks.reverse()}),this._textReversed=!0,s}_eachGlyph(t,e){let i=this.radius||0,s=this.startAngle||0,r=this.inside,a=this.style.textAlign||"left",n=this.kerning||0,h=a=="left"?1:-1;w(this._textInfo,l=>{let c=l.height;r||(i+=c);let u=s;a=="center"&&(u+=l.width/(i-c)/2*-h),u+=Math.PI*(t?0:1);let d=isFinite(u)?u:0,f=_=>{isFinite(_)&&(d+=_)},m=(t?1:-1)*(0-i+c/2);w(l.textChunks,_=>{f(_.width/2/(i-c)*h),e(_,d,m,c),f((_.width/2+n)/(i-c)*h)}),r&&(i-=c)})}},pt=class extends Xt{constructor(t,e){super(t),this.image=e}getLocalBounds(){if(!this._localBounds){let t=0,e=0;this.width&&(t=this.width),this.height&&(e=this.height),this._localBounds={left:0,top:0,right:t,bottom:e},this._addBounds(this._localBounds)}return this._localBounds}clear(){super.clear(),this.image=void 0,this._imageMask=void 0}};function oa(o){let t=[0,0,0];for(let e=0;e<24;e++)t[e%3]<<=1,t[e%3]|=o&1,o>>=1;return(t[0]|0)+(t[1]<<8)+(t[2]<<16)}function Ar(o){let t=document.createElement("canvas");t.width=1,t.height=1;let e=t.getContext("2d",{willReadFrequently:!0});e.drawImage(o,0,0,1,1);try{return e.getImageData(0,0,1,1),!1}catch{return console.warn('Image "'+o.src+'" is loaded from different host and is not covered by CORS policy. For more information about the implications read here: https://www.amcharts.com/docs/v5/concepts/cors'),!0}}function ni(o){o.width=0,o.height=0,o.style.width="0px",o.style.height="0px"}function hi(o){return Math.floor(o)+.5}var oi=new WeakMap;function $s(o,t){if(typeof t=="string")return t;let e=oi.get(t);if(e===void 0){let i;if(t instanceof At)i=o.createLinearGradient(t.x1,t.y1,t.x2,t.y2);else if(t instanceof Lt)i=o.createRadialGradient(t.x1,t.y1,t.radius1,t.x2,t.y2,t.radius2);else if(t instanceof Nt||t instanceof Mt){let s=ha(o,t);return s?(oi.set(t,s),s):t}else return t;w(t.stops,s=>{i.addColorStop(s.offset,s.color)}),e=i,oi.set(t,e)}return e}function ha(o,t){if(t instanceof Mt)return o.createPattern(t.source,t.repetition);let e=document.createElement("canvas");if(e.width=t.width,e.height=t.height,!e.width||!e.height)return null;let i=e.getContext("2d");return Hi(t.background,i),Hi(t.graphics,i),o.createPattern(e,t.repetition)}function Oi(o,t,e){t.type==="image"?e!==void 0?(o.fillStyle=e,o.fillRect(t.x,t.y,t.width,t.height)):o.drawImage(t.image,t.x,t.y,t.width,t.height):t.path(o)}function Ps(o,t,e,i){switch(t.type){case"beginPath":o.beginPath();break;case"beginFill":e!==void 0?o.fillStyle=e:o.fillStyle=$s(o,t.color);break;case"endFill":o.fill(),t.clearShadow&&(o.shadowColor="",o.shadowBlur=0,o.shadowOffsetX=0,o.shadowOffsetY=0);break;case"endStroke":o.stroke();break;case"lineStyle":e!==void 0?o.strokeStyle=e:o.strokeStyle=$s(o,t.color),o.lineWidth=t.width,t.lineJoin&&(o.lineJoin=t.lineJoin),t.lineCap&&(o.lineCap=t.lineCap);break;case"lineDash":o.setLineDash(t.dash);break;case"lineDashOffset":o.lineDashOffset=t.dashOffset;break;case"shadow":i||(t.opacity&&(o.fillStyle=t.color),o.shadowColor=t.color,o.shadowBlur=t.blur,o.shadowOffsetX=t.offsetX,o.shadowOffsetY=t.offsetY);break}}function yt(o,t){let e=o._renderer;return e instanceof oe?e:t.renderer}function la(o,t){let e=o._layer;return{inactive:o.inactive==null?t.inactive:o.inactive,layer:e?e instanceof ci?e:t.renderer.getLayer(e.order):t.layer,renderer:t.renderer}}function Bs(o,t){return o._colorId===void 0&&(o._colorId=yt(o,t).paintId(o)),o._colorId}function Ut(o,t){return!t.inactive&&(o.interactive||yt(o,t)._forceInteractive>0)}function ca(o,t){return o instanceof ut&&o.interactiveChildren||Ut(o,t)}function di(o=0){return o>0}function Ii(o,t,e=0){let i=Ut(o,t),s=t.layer.order||0;return!!(i&&(s==0&&!di(e)||s==e))}function ui(o,t){o.exportable===!1&&(t.layer.tainted=!0)}function Lr(o,t,e){let i=o._matrix,s=i.tx*e,r=i.ty*e;o.crisp&&o.deform===null&&(s=hi(s),r=hi(r)),t.setTransform(i.a*e,i.b*e,i.c*e,i.d*e,s,r)}function As(o,t,e,i){let s=o._matrix;t.setTransform(s.a*e,s.b*e,s.c*e,s.d*e,(s.tx+i.left)*e,(s.ty+i.top)*e)}function Er(o,t,e,i){i.margin?As(o,t,i.scale||e,i.margin):Lr(o,t,i.scale||e)}function Ls(o,t,e=0){let i=yt(o,t);if(o.visible&&(o.exportable!==!1||!i._omitTainted)){o._setMatrix();let s=la(o,t),r=i.resolution,a=i._dirtyLayers,n=i._ghostLayer,h=n.context,l=o.mask;l&&l._setMatrix(),w(a,c=>{if(c){let u=c.context;u.save(),l&&(Er(l,u,r,c),Ns(l,u),u.clip()),u.globalAlpha=o.compoundAlpha*o.alpha,Er(o,u,r,c),o.filter&&(u.filter=o.filter)}}),h.save(),l&&ca(o,s)&&(As(l,h,r,n.margin),Ns(l,h),h.clip()),As(o,h,r,n.margin),s.layer.order>0&&!e&&Qs(i._deferredGhostLayers,s.layer.order),da(o,s,e),h.restore(),w(a,c=>{c&&c.context.restore()})}}function da(o,t,e){o instanceof ut?ua(o,t,e):o instanceof rt?fa(o,t,e):o instanceof at?ma(o,t,e):o instanceof ft?Nr(o,t,e):o instanceof pt?ya(o,t,e):ui(o,t)}function ua(o,t,e){ui(o,t);let i=yt(o,t);o.interactive&&o.interactiveChildren&&++i._forceInteractive,w(o._children,s=>{s.compoundAlpha=o.compoundAlpha*o.alpha,Ls(s,t,e)}),o.interactive&&o.interactiveChildren&&--i._forceInteractive}function Ns(o,t){t.beginPath(),w(o._data.ops,e=>{Oi(t,e)})}function fa(o,t,e=0){ui(o,t);let i=t.layer.dirty,s=Ut(o,t),r=di(e),a=Ii(o,t,e);if(i||s||r){let n=t.layer.context,h=yt(o,t)._ghostLayer.context;i&&!r&&(n.globalCompositeOperation=o.blendMode,n.beginPath());let l;a&&(h.beginPath(),l=Bs(o,t)),w(o._data.ops,c=>{i&&!r&&(Oi(n,c),Ps(n,c,void 0,!1)),a&&(Oi(h,c,l),Ps(h,c,l,!0))})}}function $r(o,t,e,i){if(e===i)Lr(o,t,e);else{let s=o._matrix,r=s.tx*e,a=s.ty*i;o.crisp&&o.deform===null&&(r=hi(r),a=hi(a)),t.setTransform(s.a*e,s.b*i,s.c*e,s.d*i,r,a)}}function Hi(o,t,e=1,i=e){if(o.visible){o._setMatrix(),t.save();let s=o.mask;s&&(s._setMatrix(),$r(s,t,e,i),Ns(s,t),t.clip()),t.globalAlpha=o.compoundAlpha*o.alpha,$r(o,t,e,i),o.filter&&(t.filter=o.filter),t.globalCompositeOperation=o.blendMode,t.beginPath(),w(o._data.ops,r=>{Oi(t,r),Ps(t,r,void 0,!1)}),t.restore()}}function Pr(o,t){o.style.textAlign&&(t.textAlign=o.style.textAlign),o.style.direction&&(t.direction=o.style.direction),o.style.textBaseline&&(t.textBaseline=o.style.textBaseline)}function Gi(o,t,e=!1,i=!1,s=!1){ui(o,t);let r=t.layer.context,a=yt(o,t)._ghostLayer.context,n=o.style,h=o._getFontStyle(void 0,i);s||(r.font=h,n.fill&&(n.fill instanceof $?r.fillStyle=n.fill.toCSS(n.fillOpacity!=null?n.fillOpacity:1):r.fillStyle=$s(r,n.fill)),n.shadowColor&&(r.shadowColor=n.shadowColor.toCSS(n.shadowOpacity!=null?n.shadowOpacity:1)),n.shadowBlur&&(r.shadowBlur=n.shadowBlur),n.shadowOffsetX&&(r.shadowOffsetX=n.shadowOffsetX),n.shadowOffsetY&&(r.shadowOffsetY=n.shadowOffsetY),Pr(o,r)),Ut(o,t)&&!e&&(a.font=h),Ut(o,t)&&!e&&(a.fillStyle=Bs(o,t),Pr(o,a))}function Rs(o,t){if(o instanceof at&&o.textType=="circular")return pa(o,t);let e=t.layer.context,i=yt(o,t)._ghostLayer.context;e.save(),i.save(),Gi(o,t,!0,Ci());let s=o._layoutState(),r=ki(e,o.text,o.style,a=>o._getFontStyle(a),s);return o._applyLayoutState(s),e.restore(),i.restore(),r}function pa(o,t){let e=t.layer.context,i=yt(o,t)._ghostLayer.context;o._textReversed=!1,e.save(),i.save(),Gi(o,t,!0);let s=o._layoutState(),r=Mi(e,o.text,o.style,a=>o._getFontStyle(a),s);return o._applyLayoutState(s),e.restore(),i.restore(),r}function Nr(o,t,e=0){if(o._textInfo||Rs(o,t),o.textVisible){let i=Ut(o,t),s=t.layer.context,r=t.layer.dirty,a=yt(o,t)._ghostLayer.context,n=di(e),h=Ii(o,t,e),l=r&&!n;if(!l&&!(o.interactive&&h))return;l&&s.save(),a.save(),Gi(o,t,!1,!1,!l),w(o._textInfo,(c,u)=>{w(c.textChunks,(d,f)=>{if(d.style&&(l&&(s.save(),s.font=d.style),a.save(),Ut(o,t)&&(a.font=d.style)),d.fill&&l&&(s.save(),s.fillStyle=d.fill.toCSS()),l&&s.fillText(d.text,d.offsetX,c.offsetY+d.offsetY),l&&(d.textDecoration=="underline"||d.textDecoration=="line-through")){let m=1,_=1,p=d.height,y=o.style.oversizedBehavior||"";if(["truncate","wrap","wrap-no-break"].indexOf(y)>-1){let v=Ti(d.text,s,o.style);d.width=v.actualBoundingBoxLeft+v.actualBoundingBoxRight}let g=d.offsetX;switch(o.style.textAlign){case"right":case"end":g-=d.width;break;case"center":g-=d.width/2;break}if(d.style)switch(Ct.getTextStyle(d.style).fontWeight){case"bolder":case"bold":case"700":case"800":case"900":m=2;break}p&&(_=p/20);let b;d.textDecoration=="line-through"?b=m+c.offsetY+d.offsetY-d.height/2:b=m+_*1.5+c.offsetY+d.offsetY,b=hi(b),s.save(),s.beginPath(),d.fill?s.strokeStyle=d.fill.toCSS():o.style.fill&&o.style.fill instanceof $&&(s.strokeStyle=o.style.fill.toCSS()),s.lineWidth=m*_,s.moveTo(g,b),s.lineTo(g+d.width,b),s.stroke(),s.restore()}i&&o.interactive&&h&&a.fillText(d.text,d.offsetX,c.offsetY+d.offsetY),d.fill&&l&&s.restore(),d.style&&(l&&s.restore(),a.restore())})}),l&&s.restore(),a.restore()}}function ma(o,t,e=0){o.textType==="circular"?ga(o,t,e):Nr(o,t,e)}function ga(o,t,e=0){if(o.textVisible){let i=Ut(o,t),s=t.layer.context,r=t.layer.dirty,a=yt(o,t)._ghostLayer.context,n=di(e),h=Ii(o,t,e),l=r&&!n;if(!l&&!h)return;l&&s.save(),i&&a.save(),Gi(o,t,!1,!1,!l),o._textInfo||Rs(o,t);let c=o.radius||0,u=o.startAngle||0,d=o.inside,f=o.style.textAlign||"left",m=o.kerning||0,_=f=="left"?1:-1,p=o._orient();w(o._textInfo,(y,g)=>{let b=y.height;d||(c+=b);let v=u;f=="center"&&(v+=y.width/(c-b)/2*-_),v+=Math.PI*(p?0:1),l&&(s.save(),s.rotate(v)),i&&(a.save(),a.rotate(v));let x=0;w(y.textChunks,(C,T)=>{let M=C.text,S=C.width;x=S/2/(c-b)*_,l&&s.rotate(x),i&&a.rotate(x),C.style&&(l&&(s.save(),s.font=C.style),a.save(),i&&(a.font=C.style)),C.fill&&l&&(s.save(),s.fillStyle=C.fill.toCSS()),l&&(s.textBaseline="middle",s.textAlign="center"),i&&(a.textBaseline="middle",a.textAlign="center"),l&&s.fillText(M,0,(p?1:-1)*(0-c+b/2)),i&&h&&a.fillText(M,0,(p?1:-1)*(0-c+b/2)),C.fill&&l&&s.restore(),C.style&&(l&&s.restore(),a.restore()),x=(S/2+m)/(c-b)*_,l&&s.rotate(x),i&&a.rotate(x)}),l&&s.restore(),i&&a.restore(),d&&(c-=b)}),l&&s.restore(),i&&a.restore()}}function _a(o,t,e){if(o._imageMask===void 0){let i=o.width||t.naturalWidth,s=o.height||t.naturalHeight,r=document.createElement("canvas");r.width=i,r.height=s;let a=r.getContext("2d");a.imageSmoothingEnabled=!1,a.fillStyle=Bs(o,e),a.fillRect(0,0,i,s),Ar(t)||(a.globalCompositeOperation="destination-in",a.drawImage(t,0,0,i,s)),o._imageMask=r}return o._imageMask}function ya(o,t,e=0){if(ui(o,t),o.image){if(o.tainted===void 0&&(o.tainted=Ar(o.image),t.layer.tainted=!0),o.tainted&&yt(o,t)._omitTainted)return;let i=di(e),s=Ii(o,t,e);if(t.layer.dirty&&!i){o.shadowColor&&(t.layer.context.shadowColor=o.shadowColor.toCSS(o.shadowOpacity!=null?o.shadowOpacity:1)),o.shadowBlur&&(t.layer.context.shadowBlur=o.shadowBlur),o.shadowOffsetX&&(t.layer.context.shadowOffsetX=o.shadowOffsetX),o.shadowOffsetY&&(t.layer.context.shadowOffsetY=o.shadowOffsetY);let r=o.width||o.image.naturalWidth,a=o.height||o.image.naturalHeight;t.layer.context.drawImage(o.image,0,0,r,a)}if(o.interactive&&Ut(o,t)&&s){let r=_a(o,o.image,t);yt(o,t)._ghostLayer.context.drawImage(r,0,0)}}}var li=class{constructor(t,e,i,s){this.event=t,this.originalPoint=e,this.point=i,this.bbox=s,this.simulated=!1,this.native=!0,wt("touchevents")&&t instanceof Touch?this.id=t.identifier:this.id=null}},oe=class extends ge{constructor(t){super(),this.view=document.createElement("div"),this._layerDom=document.createElement("div"),this.layers=[],this._dirtyLayers=[],this.defaultLayer=this.getLayer(0),this._ghostLayer=new Fs,this._deferredGhostLayers=[],this._patternCanvas=document.createElement("canvas"),this._patternContext=this._patternCanvas.getContext("2d"),this._realWidth=0,this._realHeight=0,this._calculatedWidth=0,this._calculatedHeight=0,this._colorId=0,this._colorMap={},this._forceInteractive=0,this._omitTainted=!1,t==null?this.resolution=window.devicePixelRatio:this.resolution=t,this.view.style.position="absolute",this.view.setAttribute("aria-hidden","true"),this.view.appendChild(this._layerDom),this._disposers.push(new et(()=>{w(this.layers,e=>{ni(e.view),e.exportableView&&ni(e.exportableView)}),ni(this._ghostLayer.view),ni(this._patternCanvas)})),this._disposers.push(xe(()=>{t==null&&(this.resolution=window.devicePixelRatio)})),this._interaction=new ve(this),this._disposers.push(this._interaction)}resetImageArray(){this._ghostLayer.imageArray=void 0}get interactionsEnabled(){return this._interaction.interactionsEnabled}set interactionsEnabled(t){this._interaction.interactionsEnabled=t}get tapToActivate(){return this._interaction.tapToActivate}set tapToActivate(t){this._interaction.tapToActivate=t}get tapToActivateTimeout(){return this._interaction.tapToActivateTimeout}set tapToActivateTimeout(t){this._interaction.tapToActivateTimeout=t}get debugGhostView(){return!!this._ghostLayer.view.parentNode}set debugGhostView(t){t?this._ghostLayer.view.parentNode||this.view.appendChild(this._ghostLayer.view):this._ghostLayer.view.parentNode&&this._ghostLayer.view.parentNode.removeChild(this._ghostLayer.view)}createLinearGradient(t,e,i,s){return new At(t,e,i,s)}createRadialGradient(t,e,i,s,r,a){return new Lt(t,e,i,s,r,a)}createPattern(t,e,i,s,r){let a=this.resolution,n=a!==1&&s>0&&r>0,h=n?Math.max(1,Math.round(s*a)):s,l=n?Math.max(1,Math.round(r*a)):r;this._patternCanvas.width=h,this._patternCanvas.height=l,this._patternContext.clearRect(0,0,h,l);let c=n?h/s:1,u=n?l/r:1;Hi(e,this._patternContext,c,u),Hi(t,this._patternContext,c,u);let d=new Nt(t,e,i,s,r),f=this._patternContext.createPattern(this._patternCanvas,i);return f&&n&&f.setTransform(new DOMMatrix([1/c,0,0,1/u,0,0])),oi.set(d,f),d}createRasterPattern(t,e){let i=this._patternContext.createPattern(t,e);if(!i)return null;let s=new Mt(t,e);return oi.set(s,i),s}makeContainer(){return new ut(this)}makeGraphics(){return new rt(this)}makeText(t,e){return new ft(this,t,e)}makeTextStyle(){return new Ce}makeRadialText(t,e){return new at(this,t,e)}makePicture(t){return new pt(this,t)}resizeLayer(t){t.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resizeGhost(){this._ghostLayer.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resize(t,e,i,s){this._realWidth=t,this._realHeight=e,this._calculatedWidth=i,this._calculatedHeight=s,w(this.layers,r=>{r&&(r.dirty=!0,this.resizeLayer(r))}),this.resizeGhost(),this.view.style.width=i+"px",this.view.style.height=s+"px"}createDetachedLayer(t=!1){let e=document.createElement("canvas"),i=e.getContext("2d",{willReadFrequently:t}),s=new ci(e,i);return e.style.position="absolute",e.style.top="0px",e.style.left="0px",s}getLayerByOrder(t){let e=this.layers,i=e.length;for(let s=0;s<i;s++){let r=e[s];if(r.order==t)return r}}getLayer(t,e=!0){let i=this.getLayerByOrder(t);if(i)return i;let s=this.createDetachedLayer(t==99);s.order=t,s.visible=e,s.view.className="am5-layer-"+t,s.visible&&this.resizeLayer(s);let r=this.layers;r.push(s),r.sort((l,c)=>l.order>c.order?1:l.order<c.order?-1:0);let a=r.length,n=yi(r,s),h;for(let l=n+1;l<a;l++)if(r[l].visible){h=r[l];break}return s.visible&&(h===void 0?this._layerDom.appendChild(s.view):this._layerDom.insertBefore(s.view,h.view)),s}render(t){this._dirtyLayers.length=0,this._deferredGhostLayers=[],w(this.layers,i=>{i&&i.dirty&&i.visible&&(this._dirtyLayers.push(i),i.clear())}),this._ghostLayer.clear(),Ls(t,{inactive:null,layer:this.defaultLayer,renderer:this});let e=this._deferredGhostLayers;e.length&&(e.sort((i,s)=>i-s),w(e,i=>{Ls(t,{inactive:null,layer:this.defaultLayer,renderer:this},i)})),this._ghostLayer.context.restore(),w(this._dirtyLayers,i=>{i.context.restore(),i.dirty=!1}),this._interaction.afterRender()}paintId(t){let e=oa(++this._colorId),i=$.fromHex(e).toCSS();return this._colorMap[i]=t,i}_removeObject(t){t._colorId!==void 0&&delete this._colorMap[t._colorId],t instanceof pt&&t._imageMask&&ni(t._imageMask)}_useLayer(t,e){let s=this.getLayer(t,!0);return s.visible=!0,s.margin=e,e&&Qt(s.view,!1),this._ghostLayer.setMargin(this.layers),s.dirty=!0,this.resizeLayer(s),this.resizeGhost(),s}_layerCanvas(t){return t.view}_measureText(t){return Rs(t,{inactive:t.inactive,layer:t.getLayer(),renderer:this})}_adjustBoundingBox(t){let e=this._ghostLayer.margin;return new DOMRect(-e.left,-e.top,t.width+e.left+e.right,t.height+e.top+e.bottom)}getEvent(t,e=!0){let i=this.view.getBoundingClientRect(),s=t.clientX||0,r=t.clientY||0,a=this._calculatedWidth/(i.width||this._realWidth),n=this._calculatedHeight/(i.height||this._realHeight),h={x:s-i.left,y:r-i.top},l={x:(s-(e?i.left:0))*a,y:(r-(e?i.top:0))*n};return new li(t,h,l,this._adjustBoundingBox(i))}_getHitTarget(t,e,i){if(e.width===0||e.height===0||t.x<e.left||t.x>e.right||t.y<e.top||t.y>e.bottom||!i||!this._layerDom.contains(i))return;let s=this._ghostLayer.getImageData(t,e);if(s.data[0]===0&&s.data[1]===0&&s.data[2]===0)return!1;let r=$.fromRGB(s.data[0],s.data[1],s.data[2]).toCSS();return this._colorMap[r]}getObjectAtPoint(t){let e=this._ghostLayer.getImageArray(t);if(e[0]===0&&e[1]===0&&e[2]===0)return;let i=$.fromRGB(e[0],e[1],e[2]).toCSS();return this._colorMap[i]}removeHovering(t){this._interaction.removeHovering(t)}getCanvas(t,e){this.render(t),e||(e={});let i=this.resolution,s=Math.floor(this._calculatedWidth*this.resolution),r=Math.floor(this._calculatedHeight*this.resolution);if(e.minWidth&&e.minWidth>s){let f=e.minWidth/s;f*this.resolution>i&&(i=f*this.resolution)}if(e.minHeight&&e.minHeight>r){let f=e.minHeight/r;f*this.resolution>i&&(i=f*this.resolution)}if(e.maxWidth&&e.maxWidth<s){let f=e.maxWidth/s;f*this.resolution<i&&(i=f*this.resolution)}if(e.maxHeight&&e.maxHeight<r){let f=e.maxHeight/r;f*this.resolution<i&&(i=f*this.resolution)}e.maintainPixelRatio&&(i/=this.resolution);let a=[],n=!1,h=document.createElement("canvas");i!=this.resolution&&(n=!0,s=s*i/this.resolution,r=r*i/this.resolution),h.width=s,h.height=r,h.style.position="fixed",h.style.top="-10000px",this.view.appendChild(h),a.push(h);let l=h.getContext("2d"),c=0,u=0,d=!1;return w(this.layers,f=>{if(f&&f.visible&&(f.tainted||n)){d=!0,f.exportableView=f.view,f.exportableContext=f.context,f.view=document.createElement("canvas"),f.view.style.position="fixed",f.view.style.top="-10000px",this.view.appendChild(f.view),a.push(f.view);let m=0,_=0;f.margin&&(m+=f.margin.left||0+f.margin.right||0,_+=f.margin.top||0+f.margin.bottom||0),f.view.width=s+m,f.view.height=r+_,f.context=f.view.getContext("2d"),f.dirty=!0,f.scale=i}}),d&&(this._omitTainted=!0,this.render(t),this._omitTainted=!1),w(this.layers,f=>{if(f&&f.visible){let m=0,_=0;f.margin&&(m=-(f.margin.left||0)*this.resolution,_=-(f.margin.top||0)*this.resolution),l.drawImage(f.view,m,_),f.exportableView&&(f.view=f.exportableView,f.exportableView=void 0),f.exportableContext&&(f.context=f.exportableContext,f.exportableContext=void 0),c<f.view.clientWidth&&(c=f.view.clientWidth),u<f.view.clientHeight&&(u=f.view.clientHeight),f.scale=void 0}}),h.style.width=c+"px",h.style.height=u+"px",w(a,f=>{f.style.position="",f.style.top="",this.view.removeChild(f)}),h}},Fs=class{constructor(){this.margin={left:0,right:0,top:0,bottom:0},this._resolution=1,this._width=0,this._height=0,this.view=document.createElement("canvas"),this.context=this.view.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.context.imageSmoothingEnabled=!1,this.view.style.position="absolute",this.view.style.top="0px",this.view.style.left="0px"}resize(t,e,i,s,r){this._resolution=r,t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px",this._width=Math.floor(t*r),this._height=Math.floor(e*r),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}getImageData(t,e){return this.context.getImageData(Math.round((t.x-e.left)/e.width*this._width),Math.round((t.y-e.top)/e.height*this._height),1,1)}getImageArray(t){this.imageArray||(this.imageArray=this.context.getImageData(0,0,this._width,this._height).data);let e=this.imageArray,i=Math.round(t.x*this._resolution),r=(Math.round(t.y*this._resolution)*this._width+i)*4;return[e[r],e[r+1],e[r+2],e[r+3]]}setMargin(t){this.margin.left=0,this.margin.right=0,this.margin.top=0,this.margin.bottom=0,w(t,e=>{e.margin&&(this.margin.left=Math.max(this.margin.left,e.margin.left),this.margin.right=Math.max(this.margin.right,e.margin.right),this.margin.top=Math.max(this.margin.top,e.margin.top),this.margin.bottom=Math.max(this.margin.bottom,e.margin.bottom))})}clear(){this.context.save(),this.context.fillStyle="#000",this.context.fillRect(0,0,this._width,this._height)}},ci=class{constructor(t,e){this.tainted=!0,this.order=0,this.visible=!0,this.dirty=!0,this._width=0,this._height=0,this.view=t,this.context=e}resize(t,e,i,s,r){this.width!=null&&(t=this.width,i=this.width),this.height!=null&&(e=this.height,s=this.height),this.margin?(t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px"):(this.view.style.left="0px",this.view.style.top="0px"),this._width=Math.floor(t*r),this._height=Math.floor(e*r),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}clear(){this.context.save(),this.context.clearRect(0,0,this._width,this._height)}};function Fr(o,t){o==null?requestAnimationFrame(t):setTimeout(()=>{requestAnimationFrame(t)},1e3/o)}var Br={text:"CanvasText",grid:"CanvasText",alternativeBackground:"CanvasText",stroke:"CanvasText",background:"Canvas",alternativeText:"Canvas",fill:"Canvas",primaryButton:"ButtonFace",primaryButtonHover:"ButtonFace",primaryButtonDown:"ButtonFace",primaryButtonActive:"ButtonFace",primaryButtonDisabled:"ButtonFace",secondaryButton:"ButtonFace",secondaryButtonHover:"ButtonFace",secondaryButtonDown:"ButtonFace",secondaryButtonActive:"ButtonFace",primaryButtonText:"ButtonText",primaryButtonStroke:"ButtonText",secondaryButtonText:"ButtonText",secondaryButtonStroke:"ButtonText",primaryButtonTextDisabled:"GrayText",disabled:"GrayText"},zs,Wi;function Rr(){return zs===void 0&&(zs=window.matchMedia?window.matchMedia("(forced-colors: active)"):null),zs}function ba(){if(!Wi){let o={},t=document.createElement("div");t.style.cssText="position:absolute;width:0;height:0;overflow:hidden;forced-color-adjust:none",document.body.appendChild(t),w(["Canvas","CanvasText","ButtonFace","ButtonText","GrayText"],e=>{t.style.color=e,o[e]=$.fromCSS(getComputedStyle(t).color)}),document.body.removeChild(t),Wi=o}return Wi}var Yi=class o{constructor(t,e={},i){if(this._computedSettings={},this._isDirty=!1,this._isDirtyParents=!1,this._isDirtyAnimation=!1,this._dirty={},this._dirtyParents={},this._dirtyBounds={},this._dirtyPositions={},this._ticker=null,this._tickers=[],this._updateTick=!0,this.skipRenderFrame=!1,this.events=new yr,this.animationTime=null,this._animations=[],this.language=Fi.new(this,{}),this.locale=Ni,this.utc=!1,this.numberFormatter=se.new(this,{}),this.dateFormatter=ae.new(this,{}),this.durationFormatter=ne.new(this,{}),this.tabindex=0,this._tabindexes=[],this._a11yD=!1,this._focusElementDirty=!1,this._groupStops={},this._dirtyGroups={},this.verticalLayout=rs.new(this,{}),this.horizontalLayout=ss.new(this,{}),this.gridLayout=as.new(this,{}),this._paused=!1,this.autoResize=!0,this._fontHash="",this._isDisposed=!1,this._disposers=[],this._tooltips=[],this._htmlEnabledContainers=[],this.entitiesById={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._settings=e,e.accessible==!1&&(this._a11yD=!0),e.useSafeResolution==null&&(e.useSafeResolution=!0,this._computedSettings.useSafeResolution=!0),e.sanitizeHTML==null&&(e.sanitizeHTML=!0,this._computedSettings.sanitizeHTML=!0);let s;e.useSafeResolution&&(s=Zi());let r=e.renderer||o.defaultRenderer;this._renderer=new r(s);let a=o._getDOM(t);this.interfaceColors=ie.new(this,{}),this.dom=a;let n=document.createElement("div");n.style.position="relative",n.style.width="100%",n.style.height="100%",a.appendChild(n);let h=e.tooltipContainerBounds;h&&(this._tooltipContainerSettings=h),this._inner=n,this._updateComputedStyles(),te.rootElements.push(this)}static new(t,e){let i=o._getDOM(t);w(te.rootElements,r=>{if(r.dom===i)if(te.autoDispose)r.dispose();else throw new Error("You cannot have multiple Roots on the same DOM node")});let s=new o(t,e,!0);return s._init(),s}static _getDOM(t){let e=t instanceof HTMLElement?t:document.getElementById(t);if(e===null)throw new Error("Could not find HTML element with id `"+t+"`");return e}moveDOM(t){let e;if(t instanceof HTMLElement?e=t:e=document.getElementById(t),e){for(;this.dom.childNodes.length>0;)e.appendChild(this.dom.childNodes[0]);this.dom=e,this._styles=void 0,this._initResizeSensor(),this.resize()}}_handleLogo(){if(this._logo){let t=this.dom.offsetWidth,e=this.dom.offsetHeight;t<=150||e<=60?this._logo.hide():this._logo.show()}}_showBranding(){if(!this._logo){let t=this.tooltipContainer.children.push(E.new(this,{interactive:!0,interactiveChildren:!1,position:"absolute",setStateOnChildren:!0,paddingTop:9,paddingRight:9,paddingBottom:9,paddingLeft:9,scale:.6,y:ht(100),centerY:R,tooltipY:10,tooltipText:"Created using amCharts 5",tooltipX:R,cursorOverStyle:"pointer",background:Yt.new(this,{fill:lt(4671320),fillOpacity:0,tooltipY:5})}));t.set("tooltip",this.systemTooltip),t.events.on("click",()=>{window.open("https://www.amcharts.com/","_blank")}),t.states.create("hover",{});let e=t.children.push(F.new(this,{stroke:lt(13421772),strokeWidth:3,svgPath:"M5 25 L13 25h13.6c3.4 0 6 0 10.3-4.3s5.2-12 8.6-12c3.4 0 4.3 8.6 7.7 8.6M83.4 25H79.8c-3.4 0-6 0-10.3-4.3s-5.2-12-8.6-12-4.3 8.6-7.7 8.6",dx:-50,strokeOpacity:0}));e.states._createC("hover",{stroke:lt(3976191)});let i=t.children.push(F.new(this,{stroke:lt(8947848),strokeWidth:3,svgPath:"M83.4 25h-31C37 25 39.5 4.4 28.4 4.4S18.9 24.2 4.3 25H0",dx:50,strokeOpacity:0})),s=wr(vr),r=1500;t.setTimeout(()=>{i.animate({key:"strokeOpacity",to:1,duration:r,easing:s}),i.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"strokeOpacity",to:1,duration:r,easing:s})},3e3),i.states.create("hover",{stroke:lt(4671320)}),this._logo=t,this._handleLogo()}}_getRealSize(){return this.dom.getBoundingClientRect()}_getCalculatedSize(t){if(this._settings.calculateSize)return this._settings.calculateSize(t);{let e=this.dom,i=e.offsetWidth,s=e.offsetHeight;return Math.abs(i-t.width)>1||Math.abs(s-t.height)>1?{width:i,height:s}:{width:t.width,height:t.height}}}_init(){let t=this._settings;t.accessible!==!1&&(t.focusable&&(this._inner.setAttribute("focusable","true"),this._inner.setAttribute("tabindex",this.tabindex+"")),t.ariaLabel&&this._inner.setAttribute("aria-label",t.ariaLabel),t.role&&this._inner.setAttribute("role",t.role));let e=this._renderer,i=this._getRealSize(),s=this._getCalculatedSize(i),r=Math.floor(s.width),a=Math.floor(s.height),n=Math.floor(i.width),h=Math.floor(i.height),l=E.new(this,{visible:!0,width:r,height:a});this._rootContainer=l,this._rootContainer._defaultThemes.push(Tr.new(this));let c=l.children.push(E.new(this,{width:R,height:R}));c._setC("visible",!0),this.container=c,e.resize(n,h,r,a),this._inner.appendChild(e.view),this._initResizeSensor();let u=document.fonts;if(u&&u.addEventListener){let f=()=>{let p=0;return u.forEach(y=>{y.status=="loaded"&&p++}),p},m=f(),_=()=>{let p=f();p>m&&!this._isDisposed&&(this._invalidateLabelBounds(this._rootContainer,!0),w(this._tooltips,y=>{this._invalidateLabelBounds(y,!0)})),m=p};this._disposers.push(P(u,"loadingdone",_)),this._disposers.push(P(u,"loading",()=>{u.ready.then(_)})),u.status=="loading"&&u.ready.then(_)}let d=document.createElement("div");if(this._htmlElementContainer=d,d.className="am5-html-container",d.style.position="absolute",d.style.pointerEvents="none",this._tooltipContainerSettings||(d.style.overflow="hidden"),this._inner.appendChild(d),this._a11yD!==!0){let f=document.createElement("div");f.className="am5-reader-container",f.setAttribute("role","alert"),f.style.position="absolute",f.style.width="1px",f.style.height="1px",f.style.overflow="hidden",f.style.clip="rect(1px, 1px, 1px, 1px)",this._readerAlertElement=f,this._inner.appendChild(this._readerAlertElement);let m=document.createElement("div");m.className="am5-focus-container",m.style.position="absolute",m.style.pointerEvents="none",m.style.top="0px",m.style.left="0px",m.style.overflow="hidden",m.style.width=r+"px",m.style.height=a+"px",m.setAttribute("role","graphics-document"),t.ariaLabel&&m.setAttribute("aria-label",t.ariaLabel),Qt(m,!1),this._focusElementContainer=m,this._inner.appendChild(this._focusElementContainer);let _=document.createElement("div");this._tooltipElementContainer=_,_.className="am5-tooltip-container",this._inner.appendChild(_),wt("keyboardevents")&&(this._disposers.push(P(window,"keydown",p=>{let y=Et(p);y=="Shift"?this._isShift=!0:y=="Tab"&&(this._isShift=p.shiftKey)})),this._disposers.push(P(window,"keyup",p=>{Et(p)=="Shift"&&(this._isShift=!1)})),this._disposers.push(P(m,"click",()=>{let p=this._focusedSprite;if(p){let y=p.get("clickAnnounceText","");y!==""&&this.readerAlert(y);let g=e.getEvent(new MouseEvent("click"));p.events.dispatch("click",{type:"click",originalEvent:g.event,point:g.point,simulated:!0,target:p})}})),this._disposers.push(P(m,"keydown",p=>{let y=this._focusedSprite;if(y){if(p.key=="Escape"){y.isDragging()&&this._stopKeyboardDrag(y),y.hideTooltip();return}let g=0,b=0,v=Et(p);switch(v){case"Enter":case" ":if(v==" "&&["button","checkbox","switch","radio","tab","option","menuitem","menuitemcheckbox","menuitemradio"].indexOf(y.get("role",""))===-1)return;let x=y.get("clickAnnounceText","");x!==""&&this.readerAlert(x),p.preventDefault();let C=e.getEvent(new MouseEvent("mouse"));y.events.dispatch("click",{type:"click",originalEvent:C.event,point:C.point,simulated:!0,target:y});return;case"ArrowLeft":g=-6;break;case"ArrowRight":g=6;break;case"ArrowUp":b=-6;break;case"ArrowDown":b=6;break;default:return}if(g!=0||b!=0){if(p.preventDefault(),y.get("focusableGroup")&&!p.shiftKey&&!y.isDragging())return;if(!y.isDragging()){this._keyboardDragPoint={x:0,y:0};let T=e.getEvent(new MouseEvent("mousedown",{clientX:0,clientY:0}));T.point={x:0,y:0},y.events.isEnabled("pointerdown")&&y.events.dispatch("pointerdown",{type:"pointerdown",originalEvent:T.event,point:T.point,simulated:!0,target:y})}let x=this._keyboardDragPoint;x.x+=g,x.y+=b;let C=e.getEvent(new MouseEvent("mousemove",{clientX:x.x,clientY:x.y}),!1);y.events.isEnabled("globalpointermove")&&y.events.dispatch("globalpointermove",{type:"globalpointermove",originalEvent:C.event,point:C.point,simulated:!0,target:y})}}})),this._disposers.push(P(m,"keyup",p=>{if(this._focusedSprite){let y=this._focusedSprite,g=Et(p);switch(g){case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":if(y.isDragging()){this._stopKeyboardDrag(y);return}else if(y.get("focusableGroup")){let b=y.get("focusableGroup"),v=this._tabindexes.filter(T=>T===y||T.get("focusableGroup")==b&&T.isVisibleDeep()&&this._canTab(T)),x=v.indexOf(y),C=v.length-1;x+=g=="ArrowRight"||g=="ArrowDown"?1:-1,x<0?x=C:x>C&&(x=0),nr(v[x].getPrivate("focusElement").dom)}break}}})))}this._startTicker(),this.setThemes([]),this._initForcedColors(),this._addTooltip(),this._hasLicense()||this._showBranding()}get systemTooltip(){if(!this._systemTooltip){let t=kt.new(this,{themeTags:["system"]});this._systemTooltip=t}return this._systemTooltip}_initResizeSensor(){this._resizeSensorDisposer&&this._resizeSensorDisposer.dispose(),this._resizeSensorDisposer=new Li(this.dom,()=>{this.autoResize&&this.resize()}),this._disposers.push(this._resizeSensorDisposer)}resize(){let t=this._getRealSize(),e=this._getCalculatedSize(t),i=Math.floor(e.width),s=Math.floor(e.height);if(i>0&&s>0){let r=Math.floor(t.width),a=Math.floor(t.height),n=this._htmlElementContainer;if(n.style.width=i+"px",n.style.height=s+"px",this._a11yD!==!0){let l=this._focusElementContainer;l.style.width=i+"px",l.style.height=s+"px"}this._renderer.resize(r,a,i,s);let h=this._rootContainer;h.setPrivate("width",i),h.setPrivate("height",s),this._render(),this._handleLogo()}}_reapplySettings(){let t=this._settings,e=Zi();if(this._renderer.resolution=t.useSafeResolution&&e!=null?e:window.devicePixelRatio,t.tooltipContainerBounds&&(this._tooltipContainerSettings=t.tooltipContainerBounds),this._htmlElementContainer&&(this._htmlElementContainer.style.overflow=t.tooltipContainerBounds?"":"hidden"),t.accessible===!1&&(this._a11yD=!0),!this._a11yD){let i=this._inner;t.focusable?(i.setAttribute("focusable","true"),i.setAttribute("tabindex",this.tabindex+"")):(i.removeAttribute("focusable"),i.removeAttribute("tabindex")),t.ariaLabel!=null?i.setAttribute("aria-label",t.ariaLabel):i.removeAttribute("aria-label"),t.role!=null?i.setAttribute("role",t.role):i.removeAttribute("role")}this._updateForcedColors(),this._rootContainer&&(this._rootContainer.markDirty(),this._rootContainer.walkChildren(i=>{i.markDirty()})),this._render()}get settings(){return this._settings}_render(){if(this.skipRenderFrame){this.skipRenderFrame=!1;return}this._renderer.render(this._rootContainer._display),this._focusElementDirty&&(this._updateDirtyGroups(),this._updateCurrentFocus(),this._focusElementDirty=!1)}_runTickers(t){w(this._tickers,e=>{e(t)})}_runAnimations(t){let e=0;return pe(this._animations,i=>{let s=i._runAnimation(t);return s===es.Stopped?!1:(s===es.Playing&&++e,!0)}),this._isDirtyAnimation=!1,e===0}_runDirties(){let t={};for(;this._isDirtyParents;)this._isDirtyParents=!1,me(this._dirtyParents).forEach(([a,n])=>{delete this._dirtyParents[a],n.isDisposed()||(t[n.uid]=n,n._prepareChildren())});me(t).forEach(([a,n])=>{n._updateChildren()});let e=[];me(this._dirty).forEach(([a,n])=>{n.isDisposed()?delete this._dirty[a]:(e.push(n),n._beforeChanged())}),e.forEach(a=>{a._changed(),delete this._dirty[a.uid],a._clearDirty()}),this._isDirty=!1;let i={},s=[];me(this._dirtyBounds).forEach(([a,n])=>{delete this._dirtyBounds[a],n.isDisposed()||(i[n.uid]=n.depth(),s.push(n))}),this._positionHTMLElements(),s.sort((a,n)=>Cr(i[n.uid],i[a.uid])),s.forEach(a=>{a._updateBounds()});let r=this._dirtyPositions;me(r).forEach(([a,n])=>{delete r[a],n.isDisposed()||n._updatePosition()}),e.forEach(a=>{a._afterChanged()}),me(t).forEach(([a,n])=>{n._childrenPrep=!1,n._childrenUpdt=!1})}_renderFrame(t){if(this._updateTick){this.events.isEnabled("framestarted")&&this.events.dispatch("framestarted",{type:"framestarted",target:this,timestamp:t}),this._checkComputedStyles(),this._runTickers(t);let e=this._runAnimations(t);return this._runDirties(),this._render(),this._renderer.resetImageArray(),this._positionHTMLElements(),this.events.isEnabled("frameended")&&this.events.dispatch("frameended",{type:"frameended",target:this,timestamp:t}),this._tickers.length===0&&e&&!this._isDirtyAnimation&&!this._isDirty}else return!0}_runTicker(t,e){this.isDisposed()||(this.animationTime=t,this._renderFrame(t)?(this._ticker=null,this.animationTime=null):this._paused||(e?this._ticker:Fr(this.fps,this._ticker)))}_runTickerNow(t=1e4){if(!this.isDisposed()){let e=performance.now()+t;for(;;){let i=performance.now();if(i>=e){this.animationTime=null;break}if(this.animationTime=i,this._renderFrame(i)){this.animationTime=null;break}}}}_startTicker(){this._ticker===null&&(this.animationTime=null,this._ticker=t=>{this._runTicker(t)},Fr(this.fps,this._ticker))}get updateTick(){return this._updateTick}set updateTick(t){this._updateTick=t,t&&this._startTicker()}_addDirtyEntity(t){this._isDirty=!0,this._dirty[t.uid]===void 0&&(this._dirty[t.uid]=t),this._startTicker()}_addDirtyParent(t){this._isDirty=!0,this._isDirtyParents=!0,this._dirtyParents[t.uid]===void 0&&(this._dirtyParents[t.uid]=t),this._startTicker()}_addDirtyBounds(t){this._isDirty=!0,this._dirtyBounds[t.uid]===void 0&&(this._dirtyBounds[t.uid]=t),this._startTicker()}_addDirtyPosition(t){this._isDirty=!0,this._dirtyPositions[t.uid]===void 0&&(this._dirtyPositions[t.uid]=t),this._startTicker()}_addAnimation(t){this._isDirtyAnimation=!0,this._animations.indexOf(t)===-1&&this._animations.push(t),this._startTicker()}_markDirty(){this._isDirty=!0}_markDirtyRedraw(){this.events.once("frameended",()=>{this._isDirty=!0,this._startTicker()})}eachFrame(t){return this._tickers.push(t),this._startTicker(),new et(()=>{ye(this._tickers,t)})}markDirtyGlobal(t){t||(t=this.container),t.walkChildren(e=>{e instanceof E&&this.markDirtyGlobal(e),e.markDirty(),e.markDirtyBounds()})}width(){return Math.floor(this._getCalculatedSize(this._getRealSize()).width)}height(){return Math.floor(this._getCalculatedSize(this._getRealSize()).height)}dispose(){this._isDisposed||(this._isDisposed=!0,this._rootContainer.dispose(),this._renderer.dispose(),this.horizontalLayout.dispose(),this.verticalLayout.dispose(),this.interfaceColors.dispose(),w(this._disposers,t=>{t.dispose()}),this._inner&&rr(this._inner),Jt(te.rootElements,this))}isDisposed(){return this._isDisposed}readerAlert(t){if(this._a11yD!==!0){let e=this._readerAlertElement;t=Je(t),e.innerHTML==t&&(e.innerHTML=""),e.innerHTML=t}}setThemes(t){this._rootContainer.set("themes",t);let e=this.tooltipContainer;e&&e._applyThemes();let i=this.interfaceColors;i&&i._applyThemes()}_addTooltip(){if(!this.tooltipContainer){let t=this._tooltipContainerSettings,e=this._rootContainer.children.push(E.new(this,{position:"absolute",isMeasured:!1,width:R,height:R,layer:t?35:30,layerMargin:t||void 0}));this.tooltipContainer=e;let i=kt.new(this,{});this.container._setC("tooltip",i),i.hide(0),this._tooltip=i}}_registerTabindexOrder(t){this._a11yD!=!0&&(t.get("focusable")&&!t.getPrivate("focusExcluded")?qe(this._tabindexes,t):Jt(this._tabindexes,t),this._invalidateTabindexes())}_unregisterTabindexOrder(t){this._a11yD!=!0&&(Jt(this._tabindexes,t),this._invalidateTabindexes())}_invalidateTabindexes(){this._a11yD!=!0&&(this._tabindexes.sort((t,e)=>{let i=t.get("tabindexOrder",0),s=e.get("tabindexOrder",0);return i==s?0:i>s?1:-1}),w(this._tabindexes,(t,e)=>{t.getPrivate("focusElement")?this._moveFocusElement(e,t):this._makeFocusElement(e,t);let i=t.get("focusableGroup");i&&(this._dirtyGroups[i]=i)}),this._updateDirtyGroups())}_canFocus(t){return!!(t.get("visible")&&t.get("opacity")!==0&&t.get("role")!="tooltip"&&!t.get("ariaHidden")&&!t.isHidden()&&t.getPrivate("focusable")!==!1&&this._hasFocusSize(t))}_canTab(t){return this._canFocus(t)&&(this._focusedSprite===t||!t.getPrivate("focusOutOfView"))}_invalidateGroup(t){this._dirtyGroups[t]=t,this._focusElementDirty=!0}_updateDirtyGroups(){let t=this._dirtyGroups;this._dirtyGroups={},W(t,(e,i)=>{this._updateGroup(i)})}_updateGroup(t){let e=this._tabindexes.filter(s=>s.get("focusableGroup")==t&&s.getPrivate("focusElement")),i=this._groupStops[t];(!i||e.indexOf(i)==-1||!this._canTab(i))&&(i=tr(e,s=>this._canTab(s))),i?this._groupStops[t]=i:delete this._groupStops[t],w(e,s=>{let r=s.getPrivate("focusElement").dom;this._canTab(s)?r.setAttribute("tabindex",s===i?""+this.tabindex:"-1"):r.removeAttribute("tabindex")})}_updateCurrentFocus(){this._a11yD!=!0&&this._focusedSprite&&(this._decorateFocusElement(this._focusedSprite),this._positionFocusElement(this._focusedSprite))}_decorateFocusElement(t,e){if(this._a11yD==!0||(e||(e=t.getPrivate("focusElement").dom),!e))return;let i=t.get("toggleKey"),s=i=="active"||i=="disabled",r=t.get("role");r=="figure"&&s&&t.get("focusable")&&(r="button"),r?e.setAttribute("role",r):e.removeAttribute("role");let a=t.get("ariaExpanded");if(a!=null?e.setAttribute("aria-expanded",a?"true":"false"):e.removeAttribute("aria-expanded"),r=="button"&&s&&a==null){let b=i=="disabled"?!t.get("disabled"):!!t.get("active");e.setAttribute("aria-pressed",b?"true":"false")}else e.removeAttribute("aria-pressed");let n=t.get("ariaLabel");if(n){let b=ns(t,n);e.setAttribute("aria-label",b)}else e.removeAttribute("aria-label");let h=t.get("ariaLive");h?e.setAttribute("aria-live",h):e.removeAttribute("aria-live");let l=t.get("ariaChecked");l!=null&&r&&["checkbox","option","radio","menuitemcheckbox","menuitemradio","treeitem"].indexOf(r)!==-1?e.setAttribute("aria-checked",l?"true":"false"):e.removeAttribute("aria-checked");let c=t.get("ariaCurrent");c!=null?e.setAttribute("aria-current",c):e.removeAttribute("aria-current");let u=t.get("ariaSelected");u!=null&&r&&["gridcell","option","row","tab","columnheader","rowheader","treeitem"].indexOf(r)!==-1?e.setAttribute("aria-selected",u?"true":"false"):e.removeAttribute("aria-selected"),t.get("ariaHidden")?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden");let d=t.get("ariaOrientation");d?e.setAttribute("aria-orientation",d):e.removeAttribute("aria-orientation");let f=t.get("ariaValueNow");f?e.setAttribute("aria-valuenow",f):e.removeAttribute("aria-valuenow");let m=t.get("ariaValueMin");m?e.setAttribute("aria-valuemin",m):e.removeAttribute("aria-valuemin");let _=t.get("ariaValueMax");_?e.setAttribute("aria-valuemax",_):e.removeAttribute("aria-valuemax");let p=t.get("ariaValueText");p?e.setAttribute("aria-valuetext",p):e.removeAttribute("aria-valuetext");let y=t.get("ariaControls");y?e.setAttribute("aria-controls",y):e.removeAttribute("aria-controls");let g=t.get("focusableGroup");this._canFocus(t)?(this._canTab(t)?g?e.setAttribute("tabindex",this._groupStops[g]===t?""+this.tabindex:"-1"):e.setAttribute("tabindex",""+this.tabindex):e.removeAttribute("tabindex"),e.removeAttribute("aria-hidden")):(e.removeAttribute("tabindex"),e.setAttribute("aria-hidden","true")),g&&this._invalidateGroup(g)}_initForcedColors(){let t=Rr();t&&t.addEventListener&&this._disposers.push(P(t,"change",()=>{Wi=void 0,this._updateForcedColors()})),this._updateForcedColors()}_updateForcedColors(){let t=Rr(),e=t&&t.matches&&this._settings.forcedColors!==!1,i=this.interfaceColors;if(e){let s=ba();if(!this._forcedColorsBackup){let r={};W(Br,a=>{r[a]={value:i.get(a),user:i.isUserSetting(a)&&!i.isComputedSetting(a)}}),this._forcedColorsBackup=r}W(Br,(r,a)=>{i._setC(r,s[a])})}else if(this._forcedColorsBackup){let s=this._forcedColorsBackup;this._forcedColorsBackup=void 0,W(s,(r,a)=>{a.user?i.set(r,a.value):i.remove(r)}),i._applyThemes()}}_stopKeyboardDrag(t){let e=this._keyboardDragPoint||{x:0,y:0},i=this._renderer.getEvent(new MouseEvent("mouseup",{clientX:e.x,clientY:e.y}));t.events.isEnabled("globalpointerup")&&t.events.dispatch("globalpointerup",{type:"globalpointerup",originalEvent:i.event,point:i.point,simulated:!0,target:t}),this._keyboardDragPoint=void 0}_hasFocusSize(t){if(this._focusedSprite===t||t.height()||t.width())return!0;if(!t.get("isMeasured")){let e=t._focusBounds();return e.right>e.left||e.bottom>e.top}return!1}_makeFocusElement(t,e){if(e.getPrivate("focusElement")||this._a11yD==!0)return;let i=document.createElement("div");e.get("role")!="tooltip"&&(i.tabIndex=this.tabindex),i.style.position="absolute",Qt(i,!1);let s=[];e.setPrivate("focusElement",{dom:i,disposers:s}),this._decorateFocusElement(e),s.push(P(i,"focus",r=>{this._handleFocus(r)})),s.push(P(i,"blur",r=>{this._handleBlur(r)})),this._moveFocusElement(t,e)}_removeFocusElement(t){if(this._a11yD==!0)return;Jt(this._tabindexes,t);let e=t.getPrivate("focusElement");if(e){this._focusElementContainer.removeChild(e.dom),w(e.disposers,r=>{r.dispose()}),t.removePrivate("focusElement");let s=t.get("focusableGroup");s&&(this._groupStops[s]===t&&delete this._groupStops[s],this._invalidateGroup(s))}}_hideFocusElement(t){if(this._a11yD==!0)return;let e=t.getPrivate("focusElement");e.dom.style.display="none"}_moveFocusElement(t,e){if(this._a11yD==!0)return;let i=this._focusElementContainer,s=e.getPrivate("focusElement").dom;if(s===this._focusElementContainer.children[t])return;let r=this._focusElementContainer.children[t+1];r?i.insertBefore(s,r):i.append(s)}_positionFocusElement(t){if(this._a11yD==!0||t==null)return;this._focusElementContainer.scrollTop=0;let e=t._focusBounds(),i=e.right==e.left?t.width():e.right-e.left,s=e.top==e.bottom?t.height():e.bottom-e.top,r=this._settings.focusPadding!==void 0?this._settings.focusPadding:2,a=e.left-r,n=e.top-r;i<0&&(a+=i,i=Math.abs(i)),s<0&&(n+=s,s=Math.abs(s));let h=t.getPrivate("focusElement").dom;h.style.top=n+"px",h.style.left=a+"px",h.style.width=i+r*2+"px",h.style.height=s+r*2+"px"}_getSpriteByFocusElement(t){let e;return ue(this._tabindexes,(i,s)=>i.getPrivate("focusElement").dom===t?(e=i,!1):!0),e}_handleFocus(t){if(this._a11yD==!0)return;let e=this._getSpriteByFocusElement(t.target);if(!e)return;if(!e.isVisibleDeep()){this._focusNext(t.target,this._isShift?-1:1);return}this._positionFocusElement(e),this._focusedSprite=e,e.events.isEnabled("focus")&&e.events.dispatch("focus",{type:"focus",originalEvent:t,target:e});let i=e.get("focusableGroup");i&&(this._groupStops[i]=e,this._updateGroup(i))}_focusNext(t,e,i){if(this._a11yD==!0)return;let s=this.dom.getRootNode?this.dom.getRootNode():null,r=this.dom.ownerDocument||document;s&&(typeof ShadowRoot<"u"&&s instanceof ShadowRoot||s instanceof Document)&&(r=s);let a=Array.from(r.querySelectorAll(["a[href]","area[href]","button:not([disabled])","details","input:not([disabled])","iframe:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contentEditable=""]','[contentEditable="true"]','[contentEditable="TRUE"]','[tabindex]:not([tabindex^="-"])'].join(","))),n=a.indexOf(t)+e;n<0?n=a.length-1:n>=a.length&&(n=0);let h=a[n];if(i&&e==-1){let l=this._getSpriteByFocusElement(h);if(l&&l.get("focusableGroup")==i){this._focusNext(h,e);return}}h&&h.focus()}_handleBlur(t){if(this._a11yD==!0)return;let e=this._focusedSprite;e&&!e.isDisposed()&&e.events.isEnabled("blur")&&e.events.dispatch("blur",{type:"blur",originalEvent:t,target:e}),this._focusedSprite=void 0,e&&!e.isDisposed()&&e.getPrivate("focusElement")&&this._decorateFocusElement(e)}updateTooltip(t){if(this._a11yD==!0)return;let e=ur(Je(t._getText())),i=t.getPrivate("tooltipElement");t.get("role")=="tooltip"&&e!=""?(i||(i=this._makeTooltipElement(t)),i.innerHTML!=e&&(i.innerHTML=e),i.setAttribute("aria-hidden",t.isVisibleDeep()?"false":"true")):i&&(i.remove(),t.removePrivate("tooltipElement"))}_makeTooltipElement(t){let e=this._tooltipElementContainer,i=document.createElement("div");return i.style.position="absolute",i.style.width="1px",i.style.height="1px",i.style.overflow="hidden",i.style.clip="rect(1px, 1px, 1px, 1px)",Qt(i,!1),this._decorateFocusElement(t,i),e.append(i),t.setPrivate("tooltipElement",i),i}_removeTooltipElement(t){if(this._a11yD==!0)return;let e=t.getPrivate("tooltipElement");if(e){let i=e.parentElement;i&&i.removeChild(e)}}_invalidateAccessibility(t){if(this._a11yD==!0)return;this._focusElementDirty=!0;let e=t.getPrivate("focusElement");t.get("focusable")&&!t.getPrivate("focusExcluded")?e&&(this._decorateFocusElement(t),this._focusedSprite===t&&this._positionFocusElement(t)):e&&this._removeFocusElement(t)}focused(t){return this._focusedSprite===t}documentPointToRoot(t){let e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,r=i.height/e.height;return{x:(t.x-e.left)*s,y:(t.y-e.top)*r}}rootPointToDocument(t){let e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,r=i.height/e.height;return{x:t.x/s+e.left,y:t.y/r+e.top}}addDisposer(t){return this._disposers.push(t),t}_updateComputedStyles(){this._styles||(this._styles=window.getComputedStyle(this.dom));let t=this._styles,e=[t.fontFamily,t.fontSize,t.fontStyle,t.fontWeight,t.fontVariant,t.fontStretch].join();return e!==this._fontHash?(this._fontHash=e,!0):!1}_checkComputedStyles(){this._updateComputedStyles()&&this._invalidateLabelBounds(this.container)}_invalidateLabelBounds(t,e){t instanceof E?t.children.each(i=>{this._invalidateLabelBounds(i,e)}):t instanceof os&&(t.markDirtyBounds(),e&&(t._display.invalidateBounds(),t.markDirty()))}_hasLicense(){for(let t=0;t<te.licenses.length;t++)if(te.licenses[t].match(/^AM5C.{5,}/i))return!0;return!1}_licenseApplied(){this._logo&&this._logo.set("forceHidden",!0)}get debugGhostView(){return this._renderer.debugGhostView}set debugGhostView(t){this._renderer.debugGhostView=t}set tapToActivate(t){this._renderer.tapToActivate=t}get tapToActivate(){return this._renderer.tapToActivate}set tapToActivateTimeout(t){this._renderer.tapToActivateTimeout=t}get tapToActivateTimeout(){return this._renderer.tapToActivateTimeout}_makeHTMLElement(t){let e=this._htmlElementContainer,i=document.createElement("div");t.setPrivate("htmlElement",i);let s=!1,r;t._walkParents(n=>{if(n.get("verticalScrollbar"))return s=!0,r=n,!1});let a;return s&&(a=document.createElement("div"),t.setPrivate("htmlElementWrapper",a),t.setPrivate("wrapperContainer",r),a.style.position="absolute",a.style.overflow="hidden",a.style.boxSizing="border-box",a.style.top="0px",a.style.left="0px",a.style.width="100%",a.style.height="100%",r.events.on("boundschanged",()=>{this._positionHTMLElement(t)})),i.style.position="absolute",i.style.overflow="auto",i.style.boxSizing="border-box",Qt(i,t.get("interactive",!1)),t.events.isEnabled("click")&&(Qt(i,!0),this._disposers.push(P(i,"click",n=>{let h=this._renderer.getEvent(n);t.events.dispatch("click",{type:"click",originalEvent:h.event,point:h.point,simulated:!1,target:t})}))),this._positionHTMLElement(t),s?(a.append(i),e.append(a)):e.append(i),qe(this._htmlEnabledContainers,t),i}_positionHTMLElements(){w(this._htmlEnabledContainers,t=>{this._positionHTMLElement(t)})}_positionHTMLElement(t){let e=t.getPrivate("htmlElementWrapper");if(e){let s=t.getPrivate("wrapperContainer");if(s){let r=s.globalBounds();e.style.clipPath="rect("+r.top+"px "+r.right+"px "+r.bottom+"px "+r.left+"px)"}}let i=t.getPrivate("htmlElement");if(i){w(["paddingTop","paddingRight","paddingBottom","paddingLeft","minWidth","minHeight","maxWidth","maxHeight"],b=>{let v=t.get(b);v?i.style[b]=v+"px":i.style[b]=""}),w(["fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration"],b=>{let v=t.get(b);v?b=="fontSize"&&!Ot(v)?i.style[b]=v+"px":i.style[b]=v+"":i.style[b]=""});let a=t.compositeScale()||1,n=t.compositeRotation()||0;i.style.transform="",i.style.transformOrigin="";let h=t.compositeOpacity();setTimeout(()=>{i.style.opacity=h+""},10);let l=t.isVisibleDeep();l&&(i.style.display="block");let c={x:t.x()+t.get("dx",0),y:t.y()+t.get("dy",0)};t.parent&&(c=t.parent.toGlobal(c)),i.style.top=c.y+"px",i.style.left=c.x+"px";let u=t.get("width"),d=t.get("height"),f=0,m=0;if(u&&(f=t.width()),d&&(m=t.height()),!u||!d){i.style.position="fixed",i.style.width="",i.style.height="";let b=i.getBoundingClientRect();i.style.position="absolute",u||(f=b.width),d||(m=b.height);let v=f/a,x=m/a,C=t.get("centerX",0),T=t.get("centerY",0),M=0,S=0,D=0,k=0;C instanceof Dt?(M=-C.value*v,S=(1-C.value)*v):(M=-C,S=v-C),T instanceof Dt?(D=-T.value*x,k=(1-T.value)*x):(D=-T,k=x-T),t._localBounds={left:M,right:S,top:D,bottom:k};let A=t._adjustedLocalBounds,L=t._display.getAdjustedBounds(t._localBounds);t._adjustedLocalBounds=L,(A.left!==L.left||A.right!==L.right||A.top!==L.top||A.bottom!==L.bottom)&&t.markDirtyBounds()}f>0&&(i.style.minWidth=f+"px"),m>0&&(i.style.minHeight=m+"px"),(!l||h==0)&&(i.style.display="none");let _=t.get("centerX",0),p=Ui(_)?_.percent+"%":_+"px",y=t.get("centerY",0),g=Ui(y)?y.percent+"%":y+"px";(_||y)&&(i.style.transform="translate(-"+p+", -"+g+")"+i.style.transform),a!=1&&(i.style.transform+="scale("+a+")"),n!=0&&(i.style.transform+=" rotate("+n+"deg)"),i.style.transform!=""&&(i.style.transformOrigin=p+" "+g)}}_sanitizeHTML(t){return this._settings.sanitizeHTML?fr(t):t}_setHTMLContent(t,e){let i=t.getPrivate("htmlElement");i||(i=this._makeHTMLElement(t),this.autoResize||this.resize());let s=this._sanitizeHTML(e);i.innerHTML!=s&&(i.innerHTML=s)}_removeHTMLContent(t){let e=t.getPrivate("htmlElementWrapper"),i=t.getPrivate("htmlElement");e?(this._htmlElementContainer.removeChild(e),t.removePrivate("htmlElement"),t.removePrivate("htmlElementWrapper"),t.removePrivate("wrapperContainer")):i&&(this._htmlElementContainer.removeChild(i),t.removePrivate("htmlElement"),t.removePrivate("wrapperContainer")),Jt(this._htmlEnabledContainers,t)}};Yi.defaultRenderer=oe;var Vi;function va(o,t,e){let i=t.interfaceColors,s=i.get("secondaryButton").toCSS(),r=i.get("text").toCSS(),a=i.get("alternativeBackground").toCSS(.45);if(!Vi){let n=new gt([new K(o,".am5-modal",{width:"100%",height:"100%",position:"absolute","z-index":"100000",top:"0",left:"0"},t.nonce),new K(o,".am5-modal-curtain",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute",background:i.get("background").toCSS(.5),"z-index":"100"},t.nonce),new K(o,".am5-modal-wrapper",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute","text-align":"center","white-space":"nowrap",background:i.get("background").toCSS(.5),"z-index":"101"},t.nonce),new K(o,".am5-modal-wrapper:before",{content:"''",display:"inline-block",height:"100%","vertical-align":"middle","margin-right":"-0.25em"},t.nonce),new K(o,".am5-modal-content",{display:"inline-block",padding:"1.2em","vertical-align":"middle","text-align":"start","white-space":"normal",background:i.get("background").toCSS(),"border-radius":"4px","-webkit-box-shadow":"0px 0px 36px 0px "+a,"box-shadow":"0px 0px 36px 0px "+a,color:r},t.nonce),new K(o,".am5-modal-content h1",{"font-size":"1em",margin:"0 0 0.5em 0"},t.nonce),new K(o,".am5-modal-table",{display:"table",margin:"1em 0"},t.nonce),new K(o,".am5-modal-table-row",{display:"table-row"},t.nonce),new K(o,".am5-modal-table-heading",{display:"table-heading",padding:"3px 10px 3px 0"},t.nonce),new K(o,".am5-modal-table-cell",{display:"table-cell",padding:"3px 0 3px 0"},t.nonce),new K(o,".am5-modal-table-cell > *",{"vertical-align":"middle"},t.nonce),new K(o,".am5-modal-content input[type=text], .am5-modal-content input[type=number], .am5-modal-content select",{border:"1px solid "+s,"border-radius":"4px",padding:"3px 5px",margin:"2px"},t.nonce),new K(o,".am5-modal-input-narrow",{width:"70px"},t.nonce),new K(o,".am5-modal-button",{"font-weight":"400",color:i.get("secondaryButtonText").toCSS(),"line-height":"1.5","text-align":"center","text-decoration":"none","vertical-align":"middle",cursor:"pointer",padding:"0.2em 0.8em","font-size":"1em","border-radius":"0.25em",margin:"0 0.25em 0 0",border:"1px solid "+i.get("secondaryButtonStroke").toCSS(),background:i.get("secondaryButton").toCSS()},t.nonce),new K(o,".am5-modal-button:hover",{background:i.get("secondaryButtonHover").toCSS()},t.nonce),new K(o,".am5-modal-button.am5-modal-primary",{color:i.get("primaryButtonText").toCSS(),border:"1px solid "+i.get("primaryButtonStroke").toCSS(),background:i.get("primaryButton").toCSS()},t.nonce),new K(o,".am5-modal-button.am5-modal-primary:hover",{background:i.get("primaryButtonHover").toCSS()},t.nonce)]);Vi=new Ke(()=>{Vi=void 0,n.dispose()})}return Vi.increment()}var Te=class extends N{_afterNew(){super._afterNewApplyThemes(),this._setRawDefault("deactivateRoot",!0),va(cr(this._root.dom),this._root);let t=document.createElement("div");t.className="am5-modal",t.style.display="none",this.root._inner.appendChild(t),this.setPrivate("container",t);let e=document.createElement("div");e.className="am5-modal-curtain",t.appendChild(e),this.setPrivate("curtain",e),this._disposers.push(P(e,"click",()=>{this.cancel()}));let i=document.createElement("div");i.className="am5-modal-wrapper",i.setAttribute("role","dialog"),i.setAttribute("aria-modal","true"),i.tabIndex=-1,t.appendChild(i),this.setPrivate("wrapper",i);let s=document.createElement("div");s.className="am5-modal-content",i.appendChild(s),this.setPrivate("content",s);let r=this.get("content");r&&(s.innerHTML=this._root._sanitizeHTML(r)),wt("keyboardevents")&&(this._disposers.push(P(document,"keydown",a=>{this.isOpen()&&Et(a)=="Escape"&&this.cancel()})),this._disposers.push(P(i,"keydown",a=>{if(Et(a)=="Tab"){let n=this._getFocusables();if(n.length==0){a.preventDefault();return}let h=n[0],l=n[n.length-1],c=document.activeElement;a.shiftKey&&(c===h||c===i)?(a.preventDefault(),l.focus()):!a.shiftKey&&c===l&&(a.preventDefault(),h.focus())}})))}_getFocusables(){let t=this.getPrivate("content").querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex^='-'])");return Array.prototype.filter.call(t,e=>e.offsetWidth>0||e.offsetHeight>0)}_updateLabel(){let t=this.getPrivate("wrapper"),e=this.get("ariaLabel");if(t.removeAttribute("aria-label"),t.removeAttribute("aria-labelledby"),e)t.setAttribute("aria-label",e);else{let i=this.getPrivate("content").querySelector("h1, h2, h3, h4, h5, h6");i&&(i.id||(i.id="am5-modal-title-"+this.uid),t.setAttribute("aria-labelledby",i.id))}}_restoreFocus(){let t=this._opener;this._opener=void 0;let e=document.activeElement;t&&t.focus&&document.contains(t)&&(!e||e===document.body||hr(this.getPrivate("container"),e))&&t.focus()}_beforeChanged(){super._beforeChanged(),this.isDirty("content")&&(this.getPrivate("content").innerHTML=this._root._sanitizeHTML(this.get("content",""))),(this.isDirty("content")||this.isDirty("ariaLabel"))&&this._updateLabel()}isOpen(){return this.getPrivate("container").style.display!="none"}open(){this.isOpen()||(this._opener=document.activeElement),this.getPrivate("container").style.display="block",this._updateLabel();let t=this._getFocusables();(t.length?t[0]:this.getPrivate("wrapper")).focus(),this.get("deactivateRoot")&&this.setTimeout(()=>{this._root._renderer.interactionsEnabled=!1},10),this.events.dispatch("opened",{type:"opened",target:this})}close(){this.getPrivate("container").style.display="none",this._restoreFocus(),this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("closed",{type:"closed",target:this})}cancel(){this.getPrivate("container").style.display="none",this._restoreFocus(),this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("cancelled",{type:"cancelled",target:this})}_dispose(){super._dispose();let t=this.getPrivate("container");t.parentElement&&t.parentElement.removeChild(t)}};Te.className="Modal";Te.classNames=N.classNames.concat([Te.className]);var ke=class extends N{_afterNew(){super._afterNewApplyThemes()}_beforeChanged(){if(super._beforeChanged(),this.isDirty("sprite")){let t=this.get("sprite");t&&(t._setC("position","absolute"),t.get("role")==null&&t._setC("role","figure"),this._disposers.push(t))}(this.isDirty("locationX")||this.isDirty("locationY"))&&this.series&&this.series._positionBullet(this)}};ke.className="Bullet";ke.classNames=N.classNames.concat([ke.className]);var Me=class extends ee{_afterNew(){super._afterNew(),this.addTag("confirm"),wt("keyboardevents")&&this._disposers.push(P(document,"keydown",t=>{let e=Et(t);this.get("active")&&e=="Escape"&&this._cancel()})),this._disposers.push(P(document,"click",()=>{this._ignoreClick||this._cancel(),this._ignoreClick=!1})),this.events.on("click",()=>{this.get("active")||(this._ignoreClick=!0),this._confirm()})}_cancel(){this.get("active")&&(this.events.dispatch("cancelled",{type:"cancelled",target:this}),this.set("active",!1))}_confirm(){this.get("active")&&(this.events.dispatch("confirmed",{type:"confirmed",target:this}),this.set("active",!1),this.isFocus()&&this.setTimeout(()=>{this.set("active",!1),ar()},10))}_prepareChildren(){super._prepareChildren()}};Me.className="ConfirmButton";Me.classNames=ee.classNames.concat([Me.className]);var he=class extends F{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),this.isDirty("radius")&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawCircle(0,0,Math.abs(this.get("radius",10)))}};he.className="Circle";he.classNames=F.classNames.concat([he.className]);var Se=class extends F{_beforeChanged(){if(super._beforeChanged(),this.isDirty("coordinates")){let t=[],e=this.get("coordinates");e&&w(e,i=>{t.push({x:i[0],y:i[1]})}),this.set("points",t)}if(this.isPrivateDirty("points")&&(this._clear=!0),this.isDirty("points")){this._clear=!0;let t=this.get("points"),e=this._prevSettings.points;if(e){if(t){let n=fe(t),h=fe(e),l=n.length,c=h.length;if(l>c){let u=fe(n);for(let d=0;d<l;d++){let f=Math.floor(d/l*c);u[d]={x:h[f].x,y:h[f].y}}h=u}else if(c>l){let u=fe(h);for(let d=0;d<c;d++){let f=Math.floor(d/c*l);u[d]={x:n[f].x,y:n[f].y}}n=u}this.setPrivateRaw("previousPoints",h),this.setPrivateRaw("points",n),this.morphAnimation=this.animatePrivate({key:"morphProgress",from:0,to:1,duration:this.get("animationDuration",0),easing:this.get("animationEasing")}),this._root.events.once("frameended",()=>{this._markDirtyPrivateKey("morphProgress")})}}else this.setPrivateRaw("previousPoints",t),this.setPrivateRaw("points",t);let i=1/0,s=-1/0,r=1/0,a=-1/0;if(t)for(let n=0,h=t.length;n<h;n++){let l=t[n];i=Math.min(i,l.x),s=Math.max(s,l.x),r=Math.min(r,l.y),a=Math.max(a,l.y)}this.setPrivate("minX",i),this.setPrivate("maxX",s),this.setPrivate("minY",r),this.setPrivate("maxY",a)}this.isPrivateDirty("morphProgress")&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._draw()}_draw(){let t=this.getPrivate("previousPoints"),e=this.getPrivate("points"),i=this.getPrivate("morphProgress",1);if(e&&t){let s=e[0],r=t[0];s&&this._display.moveTo(r.x+(s.x-r.x)*i,r.y+(s.y-r.y)*i);for(let a=1,n=e.length;a<n;a++){let h=e[a],l=t[a];this._display.lineTo(l.x+(h.x-l.x)*i,l.y+(h.y-l.y)*i)}this._display.closePath()}}_updateSize(){this.markDirty(),this._clear=!0}};Se.className="Polygon";Se.classNames=F.classNames.concat([Se.className]);var De=class extends F{_beforeChanged(){super._beforeChanged(),(this.isDirty("radiusX")||this.isDirty("radiusY")||this.isDirty("rotation"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawEllipse(0,0,Math.abs(this.get("radiusX")),Math.abs(this.get("radiusY")))}};De.className="Ellipse";De.classNames=F.classNames.concat([De.className]);var Ee=class extends F{_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("spikes"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){let t=this._display,e=this.get("radius",0),i=$t(this.get("innerRadius",0),e),s=this.get("spikes",0),r=Math.PI/s,a=Math.PI/2*3;t.moveTo(0,-e);for(let n=0;n<s;n++)t.lineTo(Math.cos(a)*e,Math.sin(a)*e),a+=r,t.lineTo(Math.cos(a)*i,Math.sin(a)*i),a+=r;t.lineTo(0,-e),t.closePath()}}};Ee.className="Star";Ee.classNames=F.classNames.concat([Ee.className]);var Ft=class extends E{constructor(){super(...arguments),this._movePoints={},this._downScale=1,this._downX=0,this._downY=0,this.contents=this.children.push(E.new(this._root,{width:R,height:R,x:0,y:0,draggable:!0,background:Yt.new(this._root,{fill:lt(16777215),fillOpacity:0})}))}_afterNew(){super._afterNew();let t=this.contents.events;this._disposers.push(t.on("pointerdown",s=>{this._handleThisDown(s)})),this._disposers.push(t.on("globalpointerup",s=>{this._handleThisUp(s)})),this._disposers.push(t.on("globalpointermove",s=>{this._handleThisMove(s)}));let e=this.contents.get("background");e&&(e.adapters.add("width",s=>Number(s)*20),e.adapters.add("height",s=>Number(s)*20),e.adapters.add("x",s=>Number(s)-e.width()/2),e.adapters.add("y",s=>Number(s)-e.height()/2));let i=this.contents;i.adapters.add("x",s=>{let r=i.get("scale",1);if(B(s)&&r>=1){let a=this.get("maxPanOut",.4),n=i.width();s=Math.min(n*a,s),s=Math.max(this.width()-n*r*(1+a),s)}return s}),i.adapters.add("y",s=>{let r=i.get("scale",1);if(B(s)&&r>=1){let a=this.get("maxPanOut",.4),n=i.height();s=Math.min(n*a,s),s=Math.max(this.height()-n*r*(1+a),s)}return s})}_prepareChildren(){super._prepareChildren(),this.isDirty("wheelable")&&this._handleSetWheel(),this.contents._display.cancelTouch=this.get("pinchZoom",!1)}_handleSetWheel(){this.get("wheelable")?(this._wheelDp&&this._wheelDp.dispose(),this._wheelDp=this.events.on("wheel",t=>{let e=t.originalEvent;if(lr(e,this))e.preventDefault();else return;let i=this.toLocal(t.point);this._handleWheelZoom(e.deltaY,i)}),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_handleWheelZoom(t,e){let i=this.get("zoomStep",2),s=this.contents.get("scale",1),r=s;t>0?r=s/i:t<0&&(r=s*i),r!=s&&this.zoomToPoint(e,r)}zoomToPoint(t,e){e&&(e=st(e,this.get("minZoomLevel",1),this.get("maxZoomLevel",32)));let i=this.contents.get("scale",1),s=t.x,r=t.y,a=s,n=r,h=this.contents,l=h.x(),c=h.y(),u=a-(s-l)/i*e,d=n-(r-c)/i*e;return this._animateTo(u,d,e),this._za}zoomIn(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)*this.get("zoomStep",2))}zoomOut(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)/this.get("zoomStep",2))}goHome(){return this._animateTo(0,0,1)}_animateTo(t,e,i){let s=this.get("animationDuration",0),r=this.get("animationEasing"),a=this.contents;this._txa=a.animate({key:"x",to:t,duration:s,easing:r}),this._tya=a.animate({key:"y",to:e,duration:s,easing:r}),this._za=a.animate({key:"scale",to:i,duration:s,easing:r})}_handleThisUp(t){this._downPoints={}}_handleThisDown(t){let e=this.contents;this._downScale=e.get("scale",1);let i=e._downPoints,s=ji(i).length;if(s==1){let r=i[1];r||(r=i[0]),r&&r.x==t.point.x&&r.y==t.point.y&&(s=0)}if(s>0){this._downX=e.x(),this._downY=e.y();let r=e._getDownPointId();if(r){let a=this._movePoints[r];a&&(e._downPoints[r]=a)}}}_handleThisMove(t){let i=t.originalEvent.pointerId;if(this.get("pinchZoom")&&i&&(this._movePoints[i]=t.point,ji(this.contents._downPoints).length>1)){this._handlePinch();return}}_handlePinch(){let t=0,e=[],i=[];if(W(this.contents._downPoints,(s,r)=>{e[t]=r;let a=this._movePoints[s];a&&(i[t]=a),t++}),e.length>1&&i.length>1){this.contents._isDragging=!1;let s=e[0],r=e[1],a=i[0],n=i[1];if(s&&r&&a&&n){s=this.toLocal(s),r=this.toLocal(r),a=this.toLocal(a),n=this.toLocal(n);let h=Math.hypot(r.x-s.x,r.y-s.y),c=Math.hypot(n.x-a.x,n.y-a.y)/h*this._downScale,u={x:a.x+(n.x-a.x)/2,y:a.y+(n.y-a.y)/2},d={x:s.x+(r.x-s.x)/2,y:s.y+(r.y-s.y)/2},f=this._downX||0,m=this._downY||0,_=this._downScale,p=u.x-(-f+d.x)/_*c,y=u.y-(-m+d.y)/_*c;this.contents.setAll({x:p,y,scale:c})}}}};Ft.className="ZoomableContainer";Ft.classNames=E.classNames.concat([Ft.className]);var xt=class extends N{_afterNew(){super._afterNewApplyThemes()}getFill(t){return{addColorStop:(e,i)=>{}}}_changed(){super._changed()}getBounds(t){let e=this.get("target");if(e){let i=e.globalBounds(),s=t.toLocal({x:i.left,y:i.top}),r=t.toLocal({x:i.right,y:i.top}),a=t.toLocal({x:i.right,y:i.bottom}),n=t.toLocal({x:i.left,y:i.bottom});return{left:Math.min(s.x,r.x,a.x,n.x),top:Math.min(s.y,r.y,a.y,n.y),right:Math.max(s.x,r.x,a.x,n.x),bottom:Math.max(s.y,r.y,a.y,n.y)}}return t._display.getLocalBounds()}};xt.className="Gradient";xt.classNames=N.classNames.concat([xt.className]);var jt=class extends xt{getFill(t){let e=this.get("rotation",0),i=this.getBounds(t),s=i.left||0,r=i.right||0,a=i.top||0,n=i.bottom||0,h=X(e),l=V(e),c=h*(r-s),u=l*(n-a);c==0&&(c=1),u==0&&(u=1);let d=Math.max(c,u),f=this._root._renderer.createLinearGradient(s,a,s+d*h,a+d*l),m=this.get("stops");if(m){let _=0;w(m,p=>{let y=p.offset;B(y)||(y=_/(m.length-1));let g=p.opacity;B(g)||(g=1);let b=p.color;if(b){let v=p.lighten;v&&(b=$.lighten(b,v));let x=p.brighten;x&&(b=$.brighten(b,x)),f.addColorStop(y,"rgba("+b.r+","+b.g+","+b.b+","+g+")")}_++})}return f}};jt.className="LinearGradient";jt.classNames=xt.classNames.concat([jt.className]);var $e=class extends E{constructor(){super(...arguments),this.labelContainer=this.children.push(E.new(this._root,{})),this.markerContainer=this.children.push(E.new(this._root,{})),this.startLabel=this.labelContainer.children.push(Tt.new(this._root,{themeTags:["start"]})),this.endLabel=this.labelContainer.children.push(Tt.new(this._root,{themeTags:["end"]})),this.markers=this.addDisposer(new It(Wt.new({}),()=>Vt._new(this._root,{themeTags:it(this.markers.template.get("themeTags",[]),[this.get("orientation"),"heatlegend","marker"])},[this.markers.template])))}_afterNew(){this._settings.themeTags=it(this._settings.themeTags,["heatlegend",this._settings.orientation]),super._afterNew(),this._setC("tooltip",kt.new(this._root,{themeTags:["heatlegend"]}))}makeMarker(){let t=this.markers.make();return t.states.create("disabled",{}),t}showValue(t,e,i){let s=this.getTooltip();if(s&&B(t)){let r=this.get("startValue",0),a=this.get("endValue",1),n=(t-r)/(a-r);(n==1/0||n==-1/0||isNaN(n))&&(n=.5);let h=this.get("startColor"),l=this.get("endColor"),c=this.get("colors");e||(e=this.getNumberFormatter().format(t)),i||(c&&c.length?i=$.interpolateColors(n,c):h&&l&&(i=$.interpolate(n,h,l))),s.label.set("text",e);let u;this.get("orientation")=="vertical"?u=this.markerContainer.toGlobal({x:0,y:this.innerHeight()*(1-n)}):u=this.markerContainer.toGlobal({x:this.innerWidth()*n,y:0});let d=s.get("background");d&&i&&d.set("fill",i),s.set("pointTo",u),s.show()}}_colorMarkers(t,e,i,s){let r=this.get("orientation"),a=Math.max(1,t.length-1);if(e)w(t,(n,h)=>{let l=this.makeMarker();r=="vertical"?this.markerContainer.children.moveValue(l,0):this.markerContainer.children.push(l),l._setCAll({fill:n,fillOpacity:ht(h/a*100).interpolate(i,s)})});else{let n=this.makeMarker();this.markerContainer.children.push(n);let h=xi(t,(l,c)=>({color:l,opacity:ht(c/a*100).interpolate(i,s),offset:0}));r=="vertical"&&h.reverse(),w(h,(l,c)=>{l.offset=c/a}),n._setC("fillGradient",jt.new(this._root,{stops:h,rotation:r=="vertical"?90:0}))}}_prepareChildren(){super._prepareChildren();let t=this.labelContainer,e=this.get("orientation"),i=this.startLabel,s=this.endLabel,r=this.getTooltip();if(this.isDirty("orientation")&&(e=="vertical"?(this.markerContainer._setCAll({layout:this._root.verticalLayout,height:R}),this._setC("layout",this._root.horizontalLayout),i._setCAll({y:R,x:void 0,centerY:R,centerX:R}),s._setCAll({y:0,x:void 0,centerY:0,centerX:R}),t._setCAll({height:R,width:void 0}),r&&r._setC("pointerOrientation","horizontal")):(this.markerContainer._setCAll({layout:this._root.horizontalLayout,width:R}),this._setC("layout",this._root.verticalLayout),i._setCAll({x:0,y:void 0,centerX:0,centerY:0}),s._setCAll({x:R,y:void 0,centerX:R,centerY:0}),t._setCAll({width:R,height:void 0}),r&&r._setC("pointerOrientation","vertical"))),this.isDirty("stepCount")||this.isDirty("startColor")||this.isDirty("endColor")||this.isDirty("colors")||this.isDirty("startOpacity")||this.isDirty("endOpacity")||this.isDirty("orientation")){let a=this.get("stepCount",1),n=this.get("startColor"),h=this.get("endColor"),l=this.get("colors"),c=this.get("startOpacity",1),u=this.get("endOpacity",1);if(this.markerContainer.children.clear(),l&&l.length)a>=1&&this._colorMarkers(l,a>1,c,u);else if(a>1)for(let d=0;d<a;d++){let f=this.makeMarker();e=="vertical"?this.markerContainer.children.moveValue(f,0):this.markerContainer.children.push(f),n&&h&&f._setCAll({fill:$.interpolate(d/a,n,h),fillOpacity:ht(d/a*100).interpolate(c,u)})}else if(a==1){let d=this.makeMarker();this.markerContainer.children.push(d);let f=jt.new(this._root,{stops:[{color:n,opacity:c},{color:h,opacity:u}]});if(e=="vertical"){f.set("rotation",90);let m=f.get("stops");m&&m.reverse()}else f.set("rotation",0);n&&h&&d._setC("fillGradient",f)}}(this.isDirty("startText")||this.isDirty("startValue"))&&i._setC("text",this.get("startText",this.getNumberFormatter().format(this.get("startValue",0)))),(this.isDirty("endText")||this.isDirty("endValue"))&&s._setC("text",this.get("endText",this.getNumberFormatter().format(this.get("endValue",1))))}};$e.className="HeatLegend";$e.classNames=E.classNames.concat([$e.className]);var Pe=class extends Si{constructor(){super(...arguments),this.itemContainers=this.addDisposer(new It(Wt.new({}),()=>E._new(this._root,{themeTags:it(this.itemContainers.template.get("themeTags",[]),["legend","item"]),themeTagsSelf:it(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"]),background:Vt.new(this._root,{themeTags:it(this.itemContainers.template.get("themeTags",[]),["legend","item","background"]),themeTagsSelf:it(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"])})},[this.itemContainers.template]))),this.markers=this.addDisposer(new It(Wt.new({}),()=>E._new(this._root,{themeTags:it(this.markers.template.get("themeTags",[]),["legend","marker"])},[this.markers.template]))),this.labels=this.addDisposer(new It(Wt.new({}),()=>Tt._new(this._root,{themeTags:it(this.labels.template.get("themeTags",[]),["legend","label"])},[this.labels.template]))),this.valueLabels=this.addDisposer(new It(Wt.new({}),()=>Tt._new(this._root,{themeTags:it(this.valueLabels.template.get("themeTags",[]),["legend","label","value"])},[this.valueLabels.template]))),this.markerRectangles=this.addDisposer(new It(Wt.new({}),()=>Vt._new(this._root,{themeTags:it(this.markerRectangles.template.get("themeTags",[]),["legend","marker","rectangle"])},[this.markerRectangles.template])))}_afterNew(){this._settings.themeTags=it(this._settings.themeTags,["legend"]),this.fields.push("name","stroke","fill"),super._afterNew()}makeItemContainer(t){let e=this.children.push(this.itemContainers.make());return e._setDataItem(t),this.itemContainers.push(e),e.states.create("disabled",{}),e}makeMarker(){let t=this.markers.make();return this.markers.push(t),t.states.create("disabled",{}),t}makeLabel(){let t=this.labels.make();return t.states.create("disabled",{}),t}makeValueLabel(){let t=this.valueLabels.make();return t.states.create("disabled",{}),t}makeMarkerRectangle(){let t=this.markerRectangles.make();return t.states.create("disabled",{}),t}processDataItem(t){super.processDataItem(t);let e=this.makeItemContainer(t),i=this.get("nameField"),s=this.get("fillField"),r=this.get("strokeField");if(e){let a=this.get("clickTarget","itemContainer"),n=t.dataContext;n&&n.set&&n.set("legendDataItem",t),e._setDataItem(t),t.set("itemContainer",e);let h=this.makeMarker();if(h){e.children.push(h),h._setDataItem(t),t.set("marker",h);let u=this.get("useDefaultMarker"),d=h.children.push(this.makeMarkerRectangle()),f=t.get("fill"),m=t.get("stroke");t.set("markerRectangle",d),n&&n.get&&(f=n.get(s,f),m=n.get(r,m)),m||(m=f),u?n&&n.on&&(n.on(s,()=>{d._setC("fill",n.get(s))}),n.on(r,()=>{d._setC("stroke",n.get(r))})):n&&n.createLegendMarker&&n.createLegendMarker(),d._setCAll({fill:f,stroke:m});let _=n&&n.component;_&&_.updateLegendMarker&&_.updateLegendMarker(n)}let l=this.makeLabel();if(l){e.children.push(l),l._setDataItem(t),t.set("label",l),l.text.on("text",()=>{e.setRaw("ariaLabel",l.text._getText()+(this.get("clickTarget")!=="none"?"; "+this._t("Press ENTER to toggle"):"")),e.markDirtyAccessibility()}),n&&n.get&&t.set("name",n.get(i));let u=t.get("name");u&&l.set("text",u)}let c=this.makeValueLabel();if(c&&(e.children.push(c),c._setDataItem(t),t.set("valueLabel",c)),n&&n.show&&(n.on("visible",u=>{e.set("disabled",!u)}),n.get("visible")||e.set("disabled",!0),a!="none")){let u=e;a=="marker"&&(u=h,e.events.on("click",d=>{d.simulated&&h.events.dispatch("click",Object.assign(Object.assign({},d),{target:h}))})),this._addClickEvents(u,n,t)}this.children.values.sort((u,d)=>{let f=u.dataItem?u.dataItem.dataContext:void 0,m=d.dataItem?d.dataItem.dataContext:void 0;if(f&&m){let _=this.data.indexOf(f),p=this.data.indexOf(m);if(_>p)return 1;if(_<p)return-1}return 0}),n&&n.updateLegendValue&&n.updateLegendValue()}}_addClickEvents(t,e,i){t.set("cursorOverStyle","pointer"),t.events.on("pointerover",()=>{let s=e.component;s&&s.hoverDataItem&&s.hoverDataItem(e)}),t.events.on("pointerout",()=>{let s=e.component;s&&s.hoverDataItem&&s.unhoverDataItem(e)}),t.events.on("click",()=>{let s=i.get("label").text._getText();e.show&&e.isHidden&&(e.isHidden()||e.get("visible")===!1)?(e.show(),t.set("disabled",!1),this._root.readerAlert(this._t("%1 shown",this._root.locale,s))):e.hide&&(e.hide(),t.set("disabled",!0),this._root.readerAlert(this._t("%1 hidden",this._root.locale,s)))})}disposeDataItem(t){super.disposeDataItem(t);let e=t.dataContext;e&&e.get&&e.get("legendDataItem")==t&&e.set("legendDataItem",void 0);let i=t.get("itemContainer");i&&(this.itemContainers.removeValue(i),i.dispose());let s=t.get("marker");s&&(this.markers.removeValue(s),s.dispose());let r=t.get("markerRectangle");r&&(this.markerRectangles.removeValue(r),r.dispose());let a=t.get("label");a&&(this.labels.removeValue(a),a.dispose());let n=t.get("valueLabel");n&&(this.valueLabels.removeValue(n),n.dispose())}};Pe.className="Legend";Pe.classNames=Si.classNames.concat([Pe.className]);var bt=class extends F{_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){let t=this.width(),e=this.height(),i=this._display;i.moveTo(-t/2,e/2),i.lineTo(0,-e/2),i.lineTo(t/2,e/2),i.lineTo(-t/2,e/2),i.closePath()}_updateSize(){this.markDirty(),this._clear=!0}};bt.className="Triangle";bt.classNames=F.classNames.concat([bt.className]);var Bt=class o extends F{_beforeChanged(){super._beforeChanged(),this.isDirty("points")&&(this._clear=!0)}static makeOrthogonal(t){if(t.length>1){let e=[];for(let i=0;i<t.length-1;i++){let s=t[i],r=t[i+1];e.push(s),s.x!==r.x&&s.y!==r.y&&e.push({x:r.x,y:s.y})}e.push(t[t.length-1]),t=e}return t}_changed(){if(super._changed(),this._clear){let t=this._display,e=this.get("points",[]);if(e.length===0)return;e=o.makeOrthogonal(e),t.moveTo(e[0].x,e[0].y);for(let i=1;i<e.length;i++){let s=this.get("cornerRadius",0),r=e[i-1],a=e[i],n=e[i+1],h=a.y===r.y&&a.x!==r.x,l=a.x===r.x&&a.y!==r.y,c=n&&(h&&n.y!==a.y||l&&n.x!==a.x);if(s>0&&n&&c){if(l){s=Math.min(s,Math.abs(a.x-n.x)/2,Math.abs(a.y-r.y)/2);let u=Math.sign(a.y-r.y);t.lineTo(a.x,a.y-s*u);let d=n.x<a.x?-1:1;t.arcTo(a.x,a.y,a.x+s*d,a.y,s)}else if(h){s=Math.min(s,Math.abs(a.y-n.y)/2,Math.abs(a.x-r.x)/2);let u=Math.sign(a.x-r.x);t.lineTo(a.x-s*u,a.y);let d=n.y<a.y?-1:1;t.arcTo(a.x,a.y,a.x,a.y+s*d,s)}}else t.lineTo(a.x,a.y)}}}};Bt.className="OrthogonalLine";Bt.classNames=F.classNames.concat([Bt.className]);var Ae=class extends E{constructor(){super(...arguments),this.line=this.children.push(Bt.new(this._root,{themeTags:["line"]})),this.hitLine=this.children.push(Bt.new(this._root,{themeTags:["hit"]})),this.startArrow=this.children.push(bt.new(this._root,{themeTags:["start","arrow"]})),this.endArrow=this.children.push(bt.new(this._root,{themeTags:["end","arrow"]}))}_afterNew(){this.addTag("link"),super._afterNew()}_updateChildren(){if(super._updateChildren(),this.isDirty("points")){let t=Bt.makeOrthogonal(this.get("points",[]));this.line.set("points",t),this.hitLine.set("points",t);let e=this.startArrow,i=this.endArrow,s=t.length;if(s>1){let[r,a]=t;e.setAll({x:r.x,y:r.y,rotation:ei(r,a)-90});let n=t[s-1],h=t[s-2];i.setAll({x:n.x,y:n.y,rotation:ei(h,n)+90})}else if(s===1){let[r]=t;e.setAll({x:r.x,y:r.y,rotation:0}),i.setAll({x:r.x,y:r.y,rotation:0})}}}};Ae.className="Link";Ae.classNames=E.classNames.concat([Ae.className]);var Le=class extends vi{constructor(){super(...arguments),this._display=this._root._renderer.makePicture(void 0)}_changed(){if(super._changed(),this.isDirty("width")){let t=this.get("width");this._display.width=B(t)?t:void 0}if(this.isDirty("height")){let t=this.get("height");this._display.height=B(t)?t:void 0}if(this.isDirty("shadowColor")){let t=this.get("shadowColor");this._display.shadowColor=t??void 0}this.isDirty("shadowBlur")&&(this._display.shadowBlur=this.get("shadowBlur")),this.isDirty("shadowOffsetX")&&(this._display.shadowOffsetX=this.get("shadowOffsetX")),this.isDirty("shadowOffsetY")&&(this._display.shadowOffsetY=this.get("shadowOffsetY")),this.isDirty("shadowOpacity")&&(this._display.shadowOpacity=this.get("shadowOpacity")),(this.isDirty("src")||this.isDirty("cors"))&&(this._display.clear(),this._load())}_load(){let t=this.get("src");if(t){let e=new Image;e.crossOrigin=this.get("cors","anonymous"),e.src=t;let i=this.events;e.decode().then(()=>{this._display.image=e,this._updateSize(),!i.isDisposed()&&i.isEnabled("loaded")&&i.dispatch("loaded",{type:"loaded",target:this})}).catch(s=>{!i.isDisposed()&&i.isEnabled("loaderror")&&i.dispatch("loaderror",{type:"loaderror",target:this})})}}_updateSize(){super._updateSize();let t=this._display.image;if(t){let e=this.getPrivate("width",this.get("width")),i=this.getPrivate("height",this.get("height")),s=t.width&&t.height?t.width/t.height:0;B(e)&&B(i)?(this._display.width=e,this._display.height=i):B(e)&&s?i=e/s:B(i)&&s?e=i*s:(e=t.width,i=t.height),B(e)&&(this._display.width=e),B(i)&&(this._display.height=i),this.markDirtyBounds(),this.markDirty()}}};Le.className="Picture";Le.classNames=vi.classNames.concat([Le.className]);var Ne=class extends Di{_afterNew(){this._addOrientationClass(),super._afterNew(),this.endGrip.setPrivate("visible",!1),this.thumb.setPrivate("visible",!1)}updateGrips(){super.updateGrips();let t=this.startGrip;this.endGrip.setAll({x:t.x(),y:t.y()}),this.setRaw("end",this.get("start"))}};Ne.className="Slider";Ne.classNames=Di.classNames.concat([Ne.className]);var Fe=class extends $i{constructor(){super(...arguments),this.zoomableContainer=Ft.new(this._root,{width:R,height:R,isMeasured:!1})._markC("width","height","isMeasured")}_afterNew(){super._afterNew(),this.addTag("serialchartcontainer"),this.zoomableContainer.contents.children.push(this.seriesContainer),this.zoomableContainer.contents.children.push(this.bulletsContainer),this.chartContainer.children.push(this.zoomableContainer)}_prepareChildren(){if(super._prepareChildren(),this.isDirty("zoomTools")){let t=this._prevSettings.zoomTools,e=this.get("zoomTools");e!==t&&(t&&t.dispose(),e&&(e.set("target",this.zoomableContainer),this.children.push(e)),this._prevSettings.zoomTools=e)}}};Fe.className="SerialChartContainer";Fe.classNames=$i.classNames.concat([Fe.className]);var Be=class extends E{constructor(){super(...arguments),this.homeButton=this.children.push(ee.new(this._root,{width:35,height:35,themeTags:["home"]})._markC("width","height","themeTags")),this.plusButton=this.children.push(ee.new(this._root,{width:35,height:35,themeTags:["plus"]})._markC("width","height","themeTags")),this.minusButton=this.children.push(ee.new(this._root,{width:35,height:35,themeTags:["minus"]})._markC("width","height","themeTags"))}_afterNew(){super._afterNew(),this._setC("position","absolute"),this._setC("layout",this._root.verticalLayout),this.addTag("zoomtools"),this.plusButton._setCAll({icon:F.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.minusButton._setCAll({icon:F.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.homeButton._setCAll({icon:F.new(this._root,{themeTags:["icon"]}),layout:void 0})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("target")){let t=this.get("target");this._disposer&&(this._disposer.dispose(),this._disposer=void 0),this._targetDisposer&&(this._targetDisposer.dispose(),this._targetDisposer=void 0),t&&(t instanceof Ft&&(this._targetDisposer=this.addDisposer(t.contents.on("scale",e=>{e==t.get("minZoomLevel")?this.minusButton._setC("disabled",!0):this.minusButton._setC("disabled",!1),e==t.get("maxZoomLevel")?this.plusButton._setC("disabled",!0):this.plusButton._setC("disabled",!1)})),this.root.events.once("frameended",()=>{t.contents.get("scale",1)==t.get("minZoomLevel")&&this.minusButton._setC("disabled",!0)})),this._disposer=new gt([this.plusButton.events.on("click",()=>{t.zoomIn()}),this.minusButton.events.on("click",()=>{t.zoomOut()}),this.homeButton.events.on("click",()=>{t.goHome()})]))}}};Be.className="ZoomTools";Be.classNames=E.classNames.concat([Be.className]);var Re=class extends I{constructor(){super(...arguments),this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this._clearGrain=!1}_beforeChanged(){let t=this.get("width",200),e=this.get("height",200);this.canvas.width!==t&&(this.canvas.width=t),this.canvas.height!==e&&(this.canvas.height=e),(this.isDirty("size")||this.isDirty("density")||this.isDirty("minOpacity")||this.isDirty("maxOpacity")||this.isDirty("colors")||this.isDirty("horizontalGap")||this.isDirty("verticalGap"))&&(this._clearGrain=!0),super._beforeChanged()}_changed(){let t=this._clear;if(super._changed(),this._clearGrain||t){let e=this.get("width",200),i=this.get("height",200),s=this.context.createImageData(e,i),r=Math.max(1,this.get("size",1)),a=this.get("minOpacity",0),n=this.get("maxOpacity",.3),h=this.get("colors",[this.get("color",$.fromHex(0))]),l=e/r,c=i/r,u=this.get("density",1),d=this.get("horizontalGap",0)+1,f=this.get("verticalGap",0)+1,m=h.length,_=n-a,p=new Array(m),y=new Array(m),g=new Array(m);for(let T=0;T<m;T++)p[T]=h[T].r,y[T]=h[T].g,g[T]=h[T].b;let b=new Uint32Array(s.data.buffer),v=u>=1,x=d>1?d:0,C=f>1?f:0;for(let T=0;T<c;T++)if(!(C&&T%C!==0)){for(let M=0;M<l;M++)if(!(x&&M%x!==0)&&(v||Math.random()<u)){let S=m>1?Math.random()*m|0:0,D=(a+Math.random()*_)*255|0,k=(p[S]|y[S]<<8|g[S]<<16|D<<24)>>>0;r===1?b[T*e+M]=k:this._setRectData(M,T,r,e,b,k)}}this.context.putImageData(s,0,0),this._pattern=this._root._renderer.createRasterPattern(this.canvas,"repeat")}this._clearGrain=!1}_checkDirtyFill(){return!1}_setRectData(t,e,i,s,r,a){let n=t*i,h=e*i,l=n+i,c=h+i;for(var u=h;u<c;u++){let f=u*s+n;for(var d=n;d<l;d++)r[f]=a,f++}}};Re.className="GrainPattern";Re.classNames=I.classNames.concat([Re.className]);var ze=class extends xt{getFill(t){let e=this.getBounds(t),i=0,s=0,r=e.left||0,a=e.right||0,n=e.top||0,h=e.bottom||0,l=a-r,c=h-n,u=t.get("radius");B(u)?(r=0,n=0):(u=Math.min(l,c)/2,i=r+l/2,s=n+c/2);let d=this.get("x"),f=this.get("y");d!=null&&(i=B(d)?d:r+$t(d,l)),f!=null&&(s=B(f)?f:n+$t(f,c));let m=this._root._renderer.createRadialGradient(i,s,0,i,s,u),_=this.get("stops");if(_){let p=0;w(_,y=>{let g=y.offset;B(g)||(g=p/(_.length-1));let b=y.opacity;B(b)||(b=1);let v=y.color;if(v){let x=y.lighten;x&&(v=$.lighten(v,x));let C=y.brighten;C&&(v=$.brighten(v,C)),m.addColorStop(g,"rgba("+v.r+","+v.g+","+v.b+","+b+")")}p++})}return m}};ze.className="RadialGradient";ze.classNames=xt.classNames.concat([ze.className]);var le=class extends I{_beforeChanged(){super._beforeChanged(),(this.isDirty("gap")||this.isDirty("radius")||this.isDirty("checkered"))&&(this._clear=!0),this._optimizeTileSize()}_optimizeTileSize(){let t=this.get("repetition");if(t&&t!=="repeat"||this.get("rotation",0)!==0)return;let e=this.get("gap",0),i=this.get("radius",3)*2+e;if(i<=0)return;let s=this.get("checkered",!1)?2:1,r=Math.max(1,Math.round(i*s));this.get("width",100)!==r&&this.setRaw("width",r),this.get("height",100)!==r&&this.setRaw("height",r)}_draw(){super._draw();let t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0),r=this.get("width",100),a=this.get("height",100),n=this.get("radius",3),h=n*2+i,l=n*2+i,c=Math.round(r/h),u=Math.round(a/l);h=r/c,l=a/u,s!=0&&(this._display.x=h*X(s),this._display.y=l*V(s));let d=-2,f=c+2,m=-2,_=u+2;if(s!=0){let g=X(s),b=V(s),v=this._display.x,x=this._display.y,C=1/0,T=-1/0,M=1/0,S=-1/0,D=[[0,0],[r,0],[0,a],[r,a]];for(let k=0;k<D.length;k++){let A=D[k][0]-v,L=D[k][1]-x,H=g*A+b*L,z=-b*A+g*L;H<C&&(C=H),H>T&&(T=H),z<M&&(M=z),z>S&&(S=z)}d=Math.floor(C/h)-2,f=Math.ceil(T/h)+2,m=Math.floor(M/l)-2,_=Math.ceil(S/l)+2}let p=this.get("color"),y=this.get("colorOpacity");(p||y)&&this._display.beginFill(p,y);for(let g=m;g<_;g++)for(let b=d;b<f;b++)if(!t||(g&1)!=1&&(b&1)!=1||(g&1)==1&&(b&1)==1){let v=b*h,x=g*l;e&&(v+=h+i/2,x+=l+i/2),this._display.drawCircle(v-n,x-n,n)}(p||y)&&this._display.endFill()}};le.className="CirclePattern";le.classNames=I.classNames.concat([le.className]);var ce=class extends I{_beforeChanged(){super._beforeChanged(),(this.isDirty("gap")||this.isDirty("angle"))&&(this._clear=!0),this._optimizeTileSize()}_optimizeTileSize(){let t=this.get("repetition");if(t&&t!=="repeat"||this.get("rotation"))return;let e=this.get("gap",0);if(!e)return;let i=e+this.get("strokeWidth",1),s=this.get("angle",0)*Math.PI/180,r=Math.abs(Math.sin(s)),a=Math.abs(Math.cos(s)),n=4,h=Math.max(1,Math.ceil((r>1e-6?i/r:1)*n)),l=Math.max(1,Math.ceil((a>1e-6?i/a:1)*n));this.get("width",100)>h&&this.setRaw("width",h),this.get("height",100)>l&&this.setRaw("height",l)}_draw(){super._draw();let t=this.get("width",100),e=this.get("height",100),i=this.get("gap",0),s=this.get("strokeWidth",1);if(!i)this._display.moveTo(0,0),this._display.lineTo(t,0);else{let n=i+s,h=e/n,l=this.get("angle",0)*Math.PI/180;if(l===0)for(let c=-h;c<h*2;c++){let u=Math.round(c*n-n/2)+.5;this._display.moveTo(-t,u),this._display.lineTo(t*2,u)}else{let c=Math.cos(l),u=Math.sin(l),d=Math.max(Math.abs(t*u),Math.abs(e*c));d>1e-6&&(n=d/Math.max(1,Math.round(d/n)));let f=Math.sqrt(t*t+e*e)*2,m=n/Math.max(Math.abs(c),Math.abs(u)),_=Math.ceil(f/m)*2;for(let p=-_;p<_;p++){let y=p*n,g=y*u-f*c,b=y*c+f*u,v=y*u+f*c,x=y*c-f*u;this._display.moveTo(g,b),this._display.lineTo(v,x)}}}this._display.lineStyle(s,this.get("color"),this.get("colorOpacity"));let r=this.get("strokeDasharray");B(r)&&(r<.5?r=[0]:r=[r]),this._display.setLineDash(r);let a=this.get("strokeDashoffset");a&&this._display.setLineDashOffset(a),this._display.endStroke()}};ce.className="LinePattern";ce.classNames=I.classNames.concat([ce.className]);var de=class extends I{_beforeChanged(){super._beforeChanged(),(this.isDirty("gap")||this.isDirty("rotateShapes")||this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isDirty("checkered"))&&(this._clear=!0),this._optimizeTileSize()}_optimizeTileSize(){let t=this.get("repetition");if(t&&t!=="repeat"||this.get("rotation",0)!==0&&!this.get("rotateShapes",!1))return;let e=this.get("gap",0),i=this.get("maxWidth",5)+e,s=this.get("maxHeight",5)+e;if(i<=0||s<=0)return;let r=this.get("checkered",!1)?2:1,a=Math.max(1,Math.round(i*r)),n=Math.max(1,Math.round(s*r));this.get("width",100)!==a&&this.setRaw("width",a),this.get("height",100)!==n&&this.setRaw("height",n)}_draw(){super._draw();let t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0),r=this.get("rotateShapes",!1),a=this.get("width",100),n=this.get("height",100),h=this.get("maxWidth",5),l=this.get("maxHeight",5),c=this._display,u=h+i,d=l+i,f=Math.round(a/u),m=Math.round(n/d);u=a/f,d=n/m;let _=r?0:s,p=r?s:0;c.angle=_,_!=0?(c.x=u/2*X(_),c.y=-d/2*V(_)):(c.x=0,c.y=0);let y=0,g=f,b=0,v=m;if(p!=0)y=-1,g=f+1,b=-1,v=m+1;else if(_!=0){let z=X(_),q=V(_),J=c.x,tt=c.y,U=1/0,j=-1/0,vt=1/0,nt=-1/0,ot=[[0,0],[a,0],[0,n],[a,n]];for(let zt=0;zt<ot.length;zt++){let qs=ot[zt][0]-J,Ks=ot[zt][1]-tt,gi=z*qs+q*Ks,_i=-q*qs+z*Ks;gi<U&&(U=gi),gi>j&&(j=gi),_i<vt&&(vt=_i),_i>nt&&(nt=_i)}y=Math.floor(U/u)-2,g=Math.ceil(j/u)+2,b=Math.floor(vt/d)-2,v=Math.ceil(nt/d)+2}let x=X(p),C=V(p),T=h/2,M=l/2,S=T*x,D=T*C,k=M*x,A=M*C;for(let z=b;z<v;z++)for(let q=y;q<g;q++)if(!t||(z&1)!=1&&(q&1)!=1||(z&1)==1&&(q&1)==1){let J=q*u,tt=z*d;if(e&&(J+=(u-h)/2,tt+=(d-l)/2),p!=0){let U=J+T,j=tt+M;c.moveTo(U-S+A,j-D-k),c.lineTo(U+S+A,j+D-k),c.lineTo(U+S-A,j+D+k),c.lineTo(U-S-A,j-D+k),c.closePath()}else c.drawRect(J,tt,h,l)}let L=this.get("color"),H=this.get("colorOpacity");(L||H)&&(c.beginFill(L,H),c.endFill())}};de.className="RectanglePattern";de.classNames=I.classNames.concat([de.className]);var Oe=class extends I{_beforeChanged(){super._beforeChanged(),(this.isDirty("gap")||this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("spikes")||this.isDirty("checkered")||this.isDirty("rotateShapes"))&&(this._clear=!0),this._optimizeTileSize()}_optimizeTileSize(){let t=this.get("repetition");if(t&&t!=="repeat"||this.get("rotation",0)!==0&&!this.get("rotateShapes",!1))return;let e=this.get("gap",0),i=this.get("radius",5)*2+e;if(i<=0)return;let s=this.get("checkered",!1)?2:1,r=Math.max(1,Math.round(i*s));this.get("width",100)!==r&&this.setRaw("width",r),this.get("height",100)!==r&&this.setRaw("height",r)}_draw(){super._draw();let t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0),r=this.get("rotateShapes",!1),a=this.get("width",100),n=this.get("height",100),h=this.get("radius",5),l=$t(this.get("innerRadius",ht(50)),h),c=this.get("spikes",5),u=this._display,d=h*2+i,f=h*2+i,m=Math.round(a/d),_=Math.round(n/f);d=a/m,f=n/_;let p=r?0:s,y=r?s:0;u.angle=p,p!=0?(u.x=d/2*X(p),u.y=-f/2*V(p)):(u.x=0,u.y=0);let g=0,b=m,v=0,x=_;if(y!=0)g=-1,b=m+1,v=-1,x=_+1;else if(p!=0){let D=X(p),k=V(p),A=u.x,L=u.y,H=1/0,z=-1/0,q=1/0,J=-1/0,tt=[[0,0],[a,0],[0,n],[a,n]];for(let U=0;U<tt.length;U++){let j=tt[U][0]-A,vt=tt[U][1]-L,nt=D*j+k*vt,ot=-k*j+D*vt;nt<H&&(H=nt),nt>z&&(z=nt),ot<q&&(q=ot),ot>J&&(J=ot)}g=Math.floor(H/d)-2,b=Math.ceil(z/d)+2,v=Math.floor(q/f)-2,x=Math.ceil(J/f)+2}let C=X(y),T=V(y);for(let D=v;D<x;D++)for(let k=g;k<b;k++)if(!t||(D&1)!=1&&(k&1)!=1||(D&1)==1&&(k&1)==1){let A=k*d,L=D*f;e?(A+=d/2,L+=f/2):(A+=h,L+=h),this._drawStar(A,L,h,l,c,C,T)}let M=this.get("color"),S=this.get("colorOpacity");(M||S)&&(u.beginFill(M,S),u.endFill())}_drawStar(t,e,i,s,r,a,n){let h=this._display,l=Math.PI/r,c=Math.PI/2*3,u=0,d=-i;h.moveTo(t+u*a-d*n,e+u*n+d*a);for(let f=0;f<r;f++)u=Math.cos(c)*i,d=Math.sin(c)*i,h.lineTo(t+u*a-d*n,e+u*n+d*a),c+=l,u=Math.cos(c)*s,d=Math.sin(c)*s,h.lineTo(t+u*a-d*n,e+u*n+d*a),c+=l;u=0,d=-i,h.lineTo(t+u*a-d*n,e+u*n+d*a),h.closePath()}};Oe.className="StarPattern";Oe.classNames=I.classNames.concat([Oe.className]);var He=class extends I{_beforeChanged(){super._beforeChanged(),(this.isDirty("gap")||this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isDirty("checkered")||this.isDirty("rotateShapes"))&&(this._clear=!0),this._optimizeTileSize()}_optimizeTileSize(){let t=this.get("repetition");if(t&&t!=="repeat"||this.get("rotation",0)!==0&&!this.get("rotateShapes",!1))return;let e=this.get("gap",0),i=this.get("maxWidth",8)+e,s=this.get("maxHeight",8)+e;if(i<=0||s<=0)return;let r=this.get("checkered",!1)?2:1,a=Math.max(1,Math.round(i*r)),n=Math.max(1,Math.round(s*r));this.get("width",100)!==a&&this.setRaw("width",a),this.get("height",100)!==n&&this.setRaw("height",n)}_draw(){super._draw();let t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0),r=this.get("rotateShapes",!1),a=this.get("width",100),n=this.get("height",100),h=this.get("maxWidth",8),l=this.get("maxHeight",8),c=this._display,u=h+i,d=l+i,f=Math.round(a/u),m=Math.round(n/d);u=a/f,d=n/m;let _=r?0:s,p=r?s:0;c.angle=_,_!=0?(c.x=u/2*X(_),c.y=-d/2*V(_)):(c.x=0,c.y=0);let y=0,g=f,b=0,v=m;if(p!=0)y=-1,g=f+1,b=-1,v=m+1;else if(_!=0){let k=X(_),A=V(_),L=c.x,H=c.y,z=1/0,q=-1/0,J=1/0,tt=-1/0,U=[[0,0],[a,0],[0,n],[a,n]];for(let j=0;j<U.length;j++){let vt=U[j][0]-L,nt=U[j][1]-H,ot=k*vt+A*nt,zt=-A*vt+k*nt;ot<z&&(z=ot),ot>q&&(q=ot),zt<J&&(J=zt),zt>tt&&(tt=zt)}y=Math.floor(z/u)-2,g=Math.ceil(q/u)+2,b=Math.floor(J/d)-2,v=Math.ceil(tt/d)+2}let x=X(p),C=V(p),T=h/2,M=l/2;for(let k=b;k<v;k++)for(let A=y;A<g;A++)if(!t||(k&1)!=1&&(A&1)!=1||(k&1)==1&&(A&1)==1){let L=A*u,H=k*d;e?(L+=u/2,H+=d/2):(L+=T,H+=M),this._point(L,H,-T,M,x,C,!0),this._point(L,H,0,-M,x,C,!1),this._point(L,H,T,M,x,C,!1),c.closePath()}let S=this.get("color"),D=this.get("colorOpacity");(S||D)&&(c.beginFill(S,D),c.endFill())}_point(t,e,i,s,r,a,n){let h=t+i*r-s*a,l=e+i*a+s*r;n?this._display.moveTo(h,l):this._display.lineTo(h,l)}};He.className="TrianglePattern";He.classNames=I.classNames.concat([He.className]);var Ie=class extends I{constructor(){super(...arguments),this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this._clearPath=!1,this._bbox={x:0,y:0,w:1,h:1}}_beforeChanged(){this._optimizeTileSize(),super._beforeChanged();let t=this.get("width",100),e=this.get("height",100);this.canvas.width!==t&&(this.canvas.width=t),this.canvas.height!==e&&(this.canvas.height=e),(this._clear||this.isDirty("svgPath")||this.isDirty("gap")||this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isDirty("checkered")||this.isDirty("centered"))&&(this._clearPath=!0)}_optimizeTileSize(){let t=this.get("repetition");if(t&&t!=="repeat"||this._authored("width")||this._authored("height"))return;let e=this._motif(),i=this.get("gap",0),s=e.w+i,r=e.h+i;if(s<=0||r<=0)return;let a=this.get("checkered",!1)?2:1,n=Math.max(1,Math.round(s*a)),h=Math.max(1,Math.round(r*a));this.get("width",100)!==n&&this._setCRaw("width",n),this.get("height",100)!==h&&this._setCRaw("height",h)}_authored(t){return this.isUserSetting(t)&&!this.isComputedSetting(t)}_motif(){let t=this.get("svgPath");t!=null&&t!==this._bboxPath&&(this._bbox=this._getPathBounds(t),this._bboxPath=t);let e=this._bbox,i=this.get("maxWidth"),s=this.get("maxHeight");if(i==null&&s==null)return{scale:1,w:e.w,h:e.h};let r=Math.min(i!=null?i/e.w:1/0,s!=null?s/e.h:1/0);return{scale:r,w:i??e.w*r,h:s??e.h*r}}_changed(){if(super._changed(),this._clearPath){let t=this.get("svgPath");t!=null&&this._renderPattern(t)}this._clearPath=!1}_renderPattern(t){let e=this._motif(),i=this.get("width",100),s=this.get("height",100),r=this.get("gap",0),a=e.w,n=e.h,h=this.get("checkered",!1),l=this.get("centered",!0),c=this.get("rotation",0)*Math.PI/180,u=this.context;u.setTransform(1,0,0,1,0,0),u.clearRect(0,0,i,s);let d=this.get("fill"),f=this.get("fillOpacity",1);d&&f>0&&(u.fillStyle=d.toCSS(f),u.fillRect(0,0,i,s));let m=this.get("color");u.fillStyle=m?m.toCSS(this.get("colorOpacity",1)):"#000000";let _=new Path2D(t),p=this._bbox,y=e.scale,g=p.x+p.w/2,b=p.y+p.h/2,v=a+r,x=n+r,C=Math.max(1,Math.round(i/v)),T=Math.max(1,Math.round(s/x));this.get("maxWidth")==null&&this.get("maxHeight")==null&&(this._authored("width")||this._authored("height"))&&(C=1,T=1),v=i/C,x=s/T;for(let M=-1;M<=T;M++)for(let S=-1;S<=C;S++){if(h&&(M&1)!==(S&1))continue;let D=l?S*v+v/2:S*v+r/2+a/2,k=l?M*x+x/2:M*x+r/2+n/2;u.save(),u.translate(D,k),c!==0&&u.rotate(c),u.scale(y,y),u.translate(-g,-b),u.fill(_),u.restore()}this._pattern=this._root._renderer.createRasterPattern(this.canvas,this.get("repetition","repeat"))}_getPathBounds(t){let e="http://www.w3.org/2000/svg",i=document.createElementNS(e,"svg");i.style.cssText="position:absolute;left:-10000px;top:-10000px;width:0;height:0;overflow:hidden;";let s=document.createElementNS(e,"path");s.setAttribute("d",t),i.appendChild(s),document.body.appendChild(i);let r=0,a=0,n=1,h=1;try{let l=s.getBBox();r=l.x,a=l.y,n=l.width||1,h=l.height||1}catch{}return document.body.removeChild(i),{x:r,y:a,w:n,h}}};Ie.className="PathPattern";Ie.classNames=I.classNames.concat([Ie.className]);var Ge=class extends N{_afterNew(){if(super._afterNewApplyThemes(),this.get("patterns",[]).length===0){let t=this.get("color",this.root.interfaceColors.get("stroke"));this.set("patterns",[this.getLinePattern({width:1e3,height:1e3,angle:45,strokeWidth:1,color:t}),this.getRectanglePattern({width:10,height:10,rotation:0,maxWidth:4,maxHeight:4,color:t}),this.getLinePattern({width:1e3,height:1e3,angle:-45,strokeWidth:1,gap:6,color:t}),this.getCirclePattern({width:11,height:11,radius:2,color:t}),this.getLinePattern({width:6,height:6,angle:90,strokeWidth:1,color:t}),this.getRectanglePattern({width:14,height:14,rotation:45,rotateShapes:!0,gap:4,maxWidth:6,maxHeight:6,checkered:!0,color:t}),this.getLinePattern({width:6,height:6,angle:0,strokeWidth:1,color:t}),this.getRectanglePattern({width:15,height:15,rotation:0,gap:5,maxWidth:5,maxHeight:5,checkered:!0,color:t}),this.getLinePattern({width:1e3,height:1e3,angle:45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:t}),this.getCirclePattern({width:20,height:20,radius:3,gap:4,checkered:!0,color:t}),this.getLinePattern({width:1e3,height:1e3,angle:-45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:t}),this.getRectanglePattern({width:10,height:10,rotation:0,gap:1,maxWidth:9,maxHeight:9,color:t}),this.getLinePattern({width:1e3,height:1e3,angle:-45,strokeWidth:2,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,angle:45,strokeWidth:2,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,angle:0,strokeWidth:3,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,angle:90,strokeWidth:3,gap:1,color:t})])}this._dirty.patterns=!1}_beforeChanged(){this.isDirty("patterns")&&this.reset()}getIndex(t){let e=this.get("patterns",[]);if(t<e.length&&e[t]!==null)return e[t];if(t>e.length-1){let i=t%e.length;return e[i]}return e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0))}getLinePattern(t){return ce.new(this.root,t)}getRectanglePattern(t){return de.new(this.root,t)}getCirclePattern(t){return le.new(this.root,t)}};Ge.className="PatternSet";Ge.classNames=N.classNames.concat([Ge.className]);var Os=class{static parse(t,e){e=this._applyDefaults(e);try{if(Ot(t)){let i=JSON.parse(t);return e.reverse&&je(i)&&i.reverse(),i}else{if(je(t)||Kt(t))return t;throw"Unable to parse JSON data"}}catch{return}}static _applyDefaults(t){let e={},i={reverse:!1};return t||(t={}),W(i,(s,r)=>{e[s]=t[s]!=null?t[s]:r}),e}},Hs=class{static parse(t,e){e=this._applyDefaults(e);let i=this.CSVToArray(t,e.delimiter),s=[],r=[],a,n;for(n=0;n<e.skipRows;n++)i.shift();if(e.useColumnNames){r=i.shift();for(let l=0;l<r.length;l++)a=r[l]!=null?r[l].replace(/^\s+|\s+$/gm,""):"",a===""&&(a="col"+l),r[l]=a}let h;for(;h=e.reverse?i.pop():i.shift(),!!h;){if(e.skipEmpty&&h.length===1&&h[0]==="")continue;let l={};for(n=0;n<h.length;n++)a=r[n]===void 0?"col"+n:r[n],l[a]=h[n];s.push(l)}return s}static CSVToArray(t,e){e=e||",";let i=new RegExp("(\\"+e+'|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\'+e+"\\r\\n]*))","gi"),s=[[]],r=null;for(;r=i.exec(t),!(!r||r[0].length===0);){let a=r[1];a.length&&a!==e&&s.push([]);let n;r[2]?n=r[2].replace(new RegExp('""',"g"),'"'):n=r[3],s[s.length-1].push(n)}return s}static _applyDefaults(t){let e={},i={delimiter:",",reverse:!1,skipRows:0,skipEmpty:!0,useColumnNames:!1};return t||(t={}),W(i,(s,r)=>{e[s]=t[s]!=null?t[s]:r}),e}};var Is=class extends N{constructor(){super(...arguments),this._checkDates=!1,this._checkNumbers=!1,this._checkColors=!1,this._checkEmpty=!1,this._checkDeep=!1}_afterNew(){super._afterNew(),this._checkFeatures(),this.on("dateFields",()=>this._checkFeatures()),this.on("dateFormat",()=>this._checkFeatures()),this.on("numericFields",()=>this._checkFeatures()),this.on("colorFields",()=>this._checkFeatures()),this.on("emptyAs",()=>this._checkFeatures())}_checkFeatures(){(this.isDirty("dateFields")||this.isDirty("dateFormat"))&&(this._checkDates=this.get("dateFields")&&this.get("dateFields").length>0),this.isDirty("numericFields")&&(this._checkNumbers=this.get("numericFields")&&this.get("numericFields").length>0),this.isDirty("colorFields")&&(this._checkColors=this.get("colorFields")&&this.get("colorFields").length>0),this.isDirty("emptyAs")&&(this._checkEmpty=this.get("emptyAs")!=null),this._checkDeepFeatures()}_checkDeepFeatures(){let t=[];w(["dateFields","numericFields","colorFields"],e=>{w(this.get(e,[]),i=>{let s=i.split(".");for(s.pop();s.length>0;)t.push(s.join(".")),s.pop()})}),this._checkDeep=t.length>0,this.setPrivate("deepFields",t)}processMany(t){je(t)&&(this._checkDates||this._checkNumbers||this._checkColors||this._checkEmpty)&&w(t,e=>{this.processRow(e)})}processRow(t,e=""){W(t,(i,s)=>{let r=e+i;this._checkEmpty&&(t[i]=this._maybeToEmpty(t[i])),this._checkNumbers&&(t[i]=this._maybeToNumber(r,t[i])),this._checkDates&&(t[i]=this._maybeToDate(r,t[i])),this._checkColors&&(t[i]=this._maybeToColor(r,t[i])),this._checkDeep&&this.getPrivate("deepFields",[]).indexOf(r)!==-1&&Kt(t[i])&&this.processRow(t[i],r+".")})}_maybeToNumber(t,e){return this.get("numericFields").indexOf(t)!==-1?mt(e):e}_maybeToDate(t,e){return this.get("dateFields").indexOf(t)!==-1?this._root.dateFormatter.parse(e,this.get("dateFormat","")).getTime():e}_maybeToEmpty(t){return(t==null||t==="")&&this.get("emptyAs")!=null?this.get("emptyAs"):t}_maybeToColor(t,e){return this.get("colorFields").indexOf(t)!==-1?$.fromAny(e):e}};var We=class extends E{constructor(){super(...arguments),this.rectangle=this.children.push(Yt.new(this._root,{themeTags:["rectangle"],fillOpacity:0,fill:lt(16777215)})),this.gripL=this._createGrip("left"),this.gripR=this._createGrip("right"),this.gripT=this._createGrip("top"),this.gripB=this._createGrip("bottom"),this._is=1,this._ix=0,this._iw=0,this._isHover=!1}_afterNew(){super._afterNew(),this.addTag("resizer"),this.set("visible",!1),this.gripL.events.on("dragged",t=>{this._resize(t.target,-1)}),this.gripR.events.on("dragged",t=>{this._resize(t.target,1)}),this.gripL.events.on("dragstart",t=>{this._resizeStart(t.target)}),this.gripR.events.on("dragstart",t=>{this._resizeStart(t.target)}),this.gripT.events.on("dragged",t=>{this._rotate(t,90)}),this.gripB.events.on("dragged",t=>{this._rotate(t,-90)}),this.gripT.events.on("dragstart",t=>{this._resizeStart(t.target)}),this.gripB.events.on("dragstart",t=>{this._resizeStart(t.target)})}_resizeStart(t){let e=this.get("sprite");e&&(this._is=e.get("scale",1),this._ix=t.x(),this._iw=this.width()/2)}_resize(t,e){let i=this.get("sprite"),s=this.get("spriteTemplate");if(i){let r=Math.max(.01,this._is*(1+e*(t.x()-this._ix)/this._iw));s?s.set("scale",r):i.set("scale",r),i.states.lookup("default").set("scale",r),this._updatePositions()}}_rotate(t,e){let i=this.get("sprite"),s=this.get("spriteTemplate");if(i){let r=this.parent;if(r){let a=this.get("rotationStep",10),n=Math.round((ei({x:this.x(),y:this.y()},r.toLocal(t.point))+e)/a)*a;s?s.set("rotation",n):i.set("rotation",n),i.states.lookup("default").set("rotation",n),this._updatePositions()}}}_createGrip(t){let e=this.children.push(E.new(this._root,{themeTags:["grip",t],setStateOnChildren:!0,draggable:!0}));return e.children.push(Vt.new(this._root,{themeTags:["outline"],centerX:qt,centerY:qt})),e.children.push(Vt.new(this._root,{centerX:qt,centerY:qt})),e}_updateChildren(){if(super._updateChildren(),this.isDirty("sprite")){let t=this.get("sprite");if(this._positionDP&&(this._positionDP.dispose(),this._positionDP=void 0),t){this.show(0),this.setPrivate("visible",!0),this._updatePositions();let e=t.parent;e&&e.children.moveValue(this,0),this._positionDP=new gt([t.events.on("positionchanged",()=>{this._updatePositions()}),t.events.on("boundschanged",()=>{this._updatePositions()})])}else this.hide(0),this.setPrivate("visible",!1)}(this.isDirty("width")||this.isDirty("height")||this.isDirty("rotation"))&&this._updatePositions()}_updatePositions(){let t=this.get("sprite");if(t){let e=t.localBounds(),i=t.get("scale",1),s=20,r=(e.right-e.left)*i+s,a=(e.bottom-e.top)*i+s,n=t.get("rotation",0),h=this.rectangle,l=t.get("centerX",qt),c=t.get("centerY",qt),u=0;l instanceof Dt&&(u=l.value);let d=0;c instanceof Dt&&(d=c.value),h.setAll({centerX:l,centerY:c,width:r,height:a}),this.setAll({x:t.x()+s*(u-.5)*X(n)-s*(d-.5)*V(n),y:t.y()+s*(d-.5)*X(n)+s*(u-.5)*V(n),width:r,height:a,rotation:n}),this.gripT.setAll({x:(.5-u)*r,y:-d*a}),this.gripB.setAll({x:(.5-u)*r,y:(1-d)*a}),this.gripL.setAll({x:-u*r,y:(.5-d)*a}),this.gripR.setAll({x:(1-u)*r,y:(.5-d)*a}),this.rectangle.setAll({width:r,height:a})}}};We.className="SpriteResizer";We.classNames=E.classNames.concat([We.className]);var Rt=Math.PI*2;function _e(...o){for(let t=0;t<o.length;t++)if(!isFinite(o[t]))return!1;return!0}var Ye=class{constructor(t=3){this._precision=t,this._parts=[],this._x=0,this._y=0,this._startX=0,this._startY=0,this._hasPoint=!1}get d(){return this._parts.join("")}clear(){this._parts.length=0,this._hasPoint=!1}_n(t){let e=Math.pow(10,this._precision);return String(Math.round(t*e)/e)}_point(t,e){return this._n(t)+" "+this._n(e)}moveTo(t,e){_e(t,e)&&(this._parts.push("M"+this._point(t,e)),this._x=this._startX=t,this._y=this._startY=e,this._hasPoint=!0)}lineTo(t,e){if(_e(t,e)){if(!this._hasPoint){this.moveTo(t,e);return}this._parts.push("L"+this._point(t,e)),this._x=t,this._y=e}}closePath(){this._hasPoint&&(this._parts.push("Z"),this._x=this._startX,this._y=this._startY)}rect(t,e,i,s){_e(t,e,i,s)&&(this.moveTo(t,e),this._parts.push("L"+this._point(t+i,e)+"L"+this._point(t+i,e+s)+"L"+this._point(t,e+s)+"Z"),this._x=t,this._y=e)}bezierCurveTo(t,e,i,s,r,a){_e(t,e,i,s,r,a)&&(this._hasPoint||this.moveTo(t,e),this._parts.push("C"+this._point(t,e)+" "+this._point(i,s)+" "+this._point(r,a)),this._x=r,this._y=a)}quadraticCurveTo(t,e,i,s){_e(t,e,i,s)&&(this._hasPoint||this.moveTo(t,e),this._parts.push("Q"+this._point(t,e)+" "+this._point(i,s)),this._x=i,this._y=s)}arc(t,e,i,s,r,a=!1){this.ellipse(t,e,i,i,0,s,r,a)}ellipse(t,e,i,s,r,a,n,h=!1){if(!_e(t,e,i,s,r,a,n)||i<0||s<0)return;let l=a%Rt;l<0&&(l+=Rt);let c=n+(l-a);!h&&c-l>=Rt?c=l+Rt:h&&l-c>=Rt?c=l-Rt:!h&&l>c?c=l+(Rt-(l-c)%Rt):h&&l<c&&(c=l-(Rt-(c-l)%Rt));let u=Math.cos(r),d=Math.sin(r),f=x=>{let C=i*Math.cos(x),T=s*Math.sin(x);return[t+C*u-T*d,e+C*d+T*u]},[m,_]=f(l);this.lineTo(m,_);let p=c-l;if(p===0||i===0||s===0){let[x,C]=f(c);this.lineTo(x,C);return}let y=Math.ceil(Math.abs(p)/Math.PI-1e-9),g=p/y,b=this._n(r*180/Math.PI),v=p>0?"1":"0";for(let x=1;x<=y;x++){let[C,T]=f(l+g*x);this._parts.push("A"+this._n(i)+" "+this._n(s)+" "+b+" 0 "+v+" "+this._point(C,T)),this._x=C,this._y=T}}arcTo(t,e,i,s,r){if(!_e(t,e,i,s,r))return;this._hasPoint||this.moveTo(t,e);let a=this._x,n=this._y;if(a===t&&n===e||t===i&&e===s||r===0){this.lineTo(t,e);return}let h=a-t,l=n-e,c=i-t,u=s-e,d=Math.hypot(h,l),f=Math.hypot(c,u),m=h*u-l*c;if(Math.abs(m)<1e-9*d*f){this.lineTo(t,e);return}let _=(h*c+l*u)/(d*f),p=Math.acos(Math.max(-1,Math.min(1,_))),y=r/Math.tan(p/2),g=t+h/d*y,b=e+l/d*y,v=t+c/f*y,x=e+u/f*y;this.lineTo(g,b),this._parts.push("A"+this._n(r)+" "+this._n(r)+" 0 0 "+(m<0?"1":"0")+" "+this._point(v,x)),this._x=v,this._y=x}};function St(o){return o.replace(/[\u0000-\u0008\u000B\u000C\u000E-\u001F\uFFFE\uFFFF]/g,"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}var zr=new WeakMap;function Yr(o){try{return o.toDataURL()}catch{return""}}var Or=new WeakMap;function wa(o,t){let e=o._data,i=Or.get(t);return(!i||i.data!==e||i.version!==e.version)&&(i={data:e,version:e.version,url:Yr(t)},Or.set(t,i)),i.url}var fi=class{constructor(t){this._prefix=t,this._ids=new Map,this._next=0,this.used=new Set}begin(){this.used=new Set}id(t,e){let i=this._ids.get(e);return i===void 0&&(i=this._prefix+t+ ++this._next,this._ids.set(e,i)),this.used.add(e),i}withId(t){let e=this._ids.get(t);return t.replace(/^<(\w+)/,'<$1 id="'+e+'"')}sweep(){let t=this.used;this._ids.forEach((e,i)=>{t.has(i)||this._ids.delete(i)})}},pi=class{constructor(t,e,i=1,s=!1){this.precision=t,this.defs=e,this.resolution=i,this.live=s,this.blend=!1,this._paints=new Map,this._p=Math.pow(10,t),this.href=s?"href":"xlink:href"}n(t){let e=this._p;return String(Math.round(t*e)/e)}defsMarkup(){let t=[];return this.defs.used.forEach(e=>{t.push(this.defs.withId(e))}),t.join("")}matrix(t,e=!1){let i=t.tx,s=t.ty;if(e){let r=this.resolution;i=(Math.floor(i*r)+.5)/r,s=(Math.floor(s*r)+.5)/r}return"matrix("+this.n(t.a)+" "+this.n(t.b)+" "+this.n(t.c)+" "+this.n(t.d)+" "+this.n(i)+" "+this.n(s)+")"}paint(t,e){if(typeof e=="string")return this.color(t,e);let i=this._paints.get(e);if(i===void 0){if(e instanceof At)i=this.defs.id("g",'<linearGradient gradientUnits="userSpaceOnUse" x1="'+this.n(e.x1)+'" y1="'+this.n(e.y1)+'" x2="'+this.n(e.x2)+'" y2="'+this.n(e.y2)+'">'+this._stops(e.stops)+"</linearGradient>");else if(e instanceof Lt)i=this.defs.id("g",'<radialGradient gradientUnits="userSpaceOnUse" cx="'+this.n(e.x2)+'" cy="'+this.n(e.y2)+'" r="'+this.n(e.radius2)+'" fx="'+this.n(e.x1)+'" fy="'+this.n(e.y1)+'" fr="'+this.n(e.radius1)+'">'+this._stops(e.stops)+"</radialGradient>");else if(e instanceof Nt){let s=[];Wr(this,e.background,s),Wr(this,e.graphics,s),i=this.defs.id("p",'<pattern patternUnits="userSpaceOnUse" width="'+this.n(e.width)+'" height="'+this.n(e.height)+'">'+s.join("")+"</pattern>")}else if(e instanceof Mt){let s=e.source.width,r=e.source.height,a=zr.get(e);if(a===void 0&&(a=Yr(e.source),zr.set(e,a)),!a||!s||!r)return t+'="none"';i=this.defs.id("p",'<pattern patternUnits="userSpaceOnUse" width="'+s+'" height="'+r+'"><image width="'+s+'" height="'+r+'" '+this.href+'="'+a+'"/></pattern>')}else return t+'="none"';this._paints.set(e,i)}return t+'="url(#'+i+')"'}color(t,e){let i=/^rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*(?:,\s*([\d.]+)\s*)?\)$/.exec(e);if(i){let s=t+'="rgb('+Math.round(+i[1])+","+Math.round(+i[2])+","+Math.round(+i[3])+')"';return i[4]!==void 0&&+i[4]<1?s+" "+t+'-opacity="'+this.n(+i[4])+'"':s}return t+'="'+St(e)+'"'}_stops(t){return t.map(e=>'<stop offset="'+this.n(e.offset)+'" '+this.color("stop-color",e.color).replace("stop-color-opacity","stop-opacity")+"/>").join("")}shadow(t,e,i,s,r,a,n){if(!e&&!i&&!s)return;let h=this.resolution;e/=h,i/=h,s/=h;let l=r.a*r.d-r.b*r.c||1,c=(r.d*i-r.c*s)/l,u=(-r.b*i+r.a*s)/l,d=Math.sqrt(Math.abs(l))||1;return this._dropShadow(t,e/2/d,c,u,a,n)}_dropShadow(t,e,i,s,r,a=0){let n=this.color("flood-color",t).replace("flood-color-opacity","flood-opacity"),h='x="-50%" y="-50%" width="200%" height="200%"';if(r&&r.right>=r.left&&r.bottom>=r.top){let l=r.right-r.left,c=r.bottom-r.top,u=3*e+Math.abs(i)+a,d=3*e+Math.abs(s)+a;(u>l/2||d>c/2)&&(h='filterUnits="userSpaceOnUse" x="'+this.n(r.left-u)+'" y="'+this.n(r.top-d)+'" width="'+this.n(l+2*u)+'" height="'+this.n(c+2*d)+'"')}return this.defs.id("s","<filter "+h+' color-interpolation-filters="sRGB"><feDropShadow dx="'+this.n(i)+'" dy="'+this.n(s)+'" stdDeviation="'+this.n(e)+'" '+n+"/></filter>")}cssFilter(t,e,i){let s=this.resolution,r=e.a*e.d-e.b*e.c||1,a=(Math.sqrt(Math.abs(r))||1)*s;return t.replace(/([a-z-]+)\(((?:[^()]|\([^()]*\))*)\)/gi,(n,h,l)=>{let c=h.toLowerCase();if(c==="blur"){let u=/^\s*(-?[\d.]+)(px)?\s*$/.exec(l);return u?"blur("+this.n(+u[1]/a)+"px)":n}else if(c==="drop-shadow"){let u=l.match(/[a-z-]+\([^()]*\)|\S+/gi)||[],d=[],f=[],m=!1;if(w(u,v=>{let x=/^(-?[\d.]+)(px)?$/.exec(v);x?d.push(+x[1]):/^-?[\d.]+[a-z%]+$/i.test(v)?m=!0:f.push(v)}),m||d.length<2)return n;let _=d[0]/s,p=d[1]/s,y=(e.d*_-e.c*p)/r,g=(-e.b*_+e.a*p)/r,b=d.length>2?d[2]/a:0;return"url(#"+this._dropShadow(f.length?f.join(" "):"#000",b,y,g,i)+")"}return n})}clip(t){let e=Vr(t,this.precision);if(e.clip===void 0){let i=new Ye(this.precision);w(t._data.ops,s=>{s.path(i)}),e.clip=i.d}return this.defs.id("c",'<clipPath><path transform="'+this.matrix(t._matrix)+'" d="'+e.clip+'"/></clipPath>')}};function mi(o,t,e,i,s){let r=' transform="'+o.matrix(t._matrix,t.crisp&&t.deform===null)+'"';e<1&&(r+=' opacity="'+o.n(e)+'"');let a=[];s&&a.push("url(#"+s+")"),i&&i.trim()!=="none"&&a.push(o.cssFilter(i,t._matrix,t.getLocalBounds()));let n="";return a.length&&(n+="filter:"+a.join(" ")+";"),t instanceof rt&&t.blendMode&&t.blendMode!="source-over"&&(Ca(t.blendMode)?Ta():(n+="mix-blend-mode:"+(t.blendMode=="lighter"?"plus-lighter":t.blendMode)+";",o.blend=!0)),n&&(r+=' style="'+St(n)+'"'),r}function Ca(o){return o=="destination-over"||o=="source-atop"||o=="xor"}var Hr=!1;function Ta(){Hr||(Hr=!0,console.warn("amCharts SVG: blend modes DST_OVER, SRC_ATOP and XOR are canvas-only; they are drawn as NORMAL."))}function Gs(o){return typeof o=="string"||o instanceof At||o instanceof Lt||o instanceof Nt||o instanceof Mt}var Ir=new WeakMap;function Vr(o,t){let e=o._data,i=Ir.get(o);return(!i||i.version!==e.version||i.length!==e.ops.length||i.precision!==t)&&(i={version:e.version,length:e.ops.length,precision:t},Ir.set(o,i)),i}function Xr(o,t,e,i,s){let r=Vr(t,o.precision),a=!r.paths,n=r.paths||(r.paths=[]),h=0,l=()=>(a&&n.push(c.d),n[h++]),c=new Ye(o.precision),u="#000",d="#000",f=1,m="miter",_="butt",p=[],y=0,g,b=x=>{let C=x&&g?o.shadow(g.color,g.blur,g.offsetX,g.offsetY,t._matrix,t.getLocalBounds(),f*5):void 0;return mi(o,t,e,i,C)},v=[];for(w(t._data.ops,x=>{switch(x.type){case"beginPath":a&&(c=new Ye(o.precision));break;case"beginFill":Gs(x.color)&&(u=x.color);break;case"beginGroup":v.push(s.length),s.push("<g"+ka(o,x.id,x.name)+">");break;case"endGroup":{let C=v.pop();C!==void 0&&(s.length==C+1?s.pop():s.push("</g>"));break}case"endFill":{let C=l();C&&(o.live||!Gr(u))&&s.push("<path"+b(!0)+' d="'+C+'" '+o.paint("fill",u)+"/>"),x.clearShadow&&(g=void 0);break}case"lineStyle":Gs(x.color)&&(d=x.color),x.width>0&&isFinite(x.width)&&(f=x.width),x.lineJoin&&(m=x.lineJoin),x.lineCap&&(_=x.lineCap);break;case"endStroke":{let C=l();if(C&&(o.live||!Gr(d))){let T=' fill="none" '+o.paint("stroke",d)+' stroke-width="'+o.n(f)+'" stroke-miterlimit="10"';m!="miter"&&(T+=' stroke-linejoin="'+m+'"'),_!="butt"&&(T+=' stroke-linecap="'+_+'"'),p.length&&(T+=' stroke-dasharray="'+p.map(M=>o.n(M)).join(" ")+'"',y&&(T+=' stroke-dashoffset="'+o.n(y)+'"')),s.push("<path"+b(!0)+' d="'+C+'"'+T+"/>")}break}case"lineDash":Js(x.dash,C=>!(C>=0&&isFinite(C)))||(p=x.dash);break;case"lineDashOffset":isFinite(x.dashOffset)&&(y=x.dashOffset);break;case"shadow":g=x;break;case"image":Ma(o,t,x,e,i,s);break;default:a&&x.path(c)}});v.length;){let x=v.pop();s.length==x+1?s.pop():s.push("</g>")}}function Gr(o){if(typeof o!="string")return!1;let t=/^rgba\([^,]+,[^,]+,[^,]+,\s*([\d.]+)\s*\)$/.exec(o);return!!t&&+t[1]<=0}function ka(o,t,e){let i="";return t!=null&&t!==""&&(i+=(o.live?' data-id="':' id="')+St(t)+'"'),e!=null&&e!==""&&(i+=' data-name="'+St(e)+'"'),i}function Ma(o,t,e,i,s,r){if(!isFinite(e.x)||!isFinite(e.y)||!isFinite(e.width)||!isFinite(e.height))return;let a=e.image,n=a instanceof HTMLCanvasElement?wa(t,a):a.src;n&&r.push("<image"+mi(o,t,i,s)+' x="'+o.n(e.x)+'" y="'+o.n(e.y)+'" width="'+o.n(e.width)+'" height="'+o.n(e.height)+'" '+o.href+'="'+St(n)+'" preserveAspectRatio="none"/>')}function Wr(o,t,e){t.visible&&(t._setMatrix(),Xr(o,t,t.compoundAlpha*t.alpha,t.filter,e))}function Sa(o,t){switch(o){case"center":return"middle";case"end":return"end";case"left":return t?"end":void 0;case"right":return t?void 0:"end"}}function Da(o){switch(o){case"top":return"text-before-edge";case"hanging":return"hanging";case"middle":return"central";case"ideographic":return"ideographic";case"bottom":return"text-after-edge"}}function Ea(o,t,e,i,s){o.live&&!t._textInfo&&t._renderer._measureText(t);let r=t._textInfo;if(!t.textVisible||!r)return;let a=t.style,n=wi(a,void 0,!1,()=>getComputedStyle(t._renderer.view).getPropertyValue("font-family")),h=a.direction=="rtl",l;a.fill instanceof $?l=o.color("fill",a.fill.toCSS(a.fillOpacity!=null?a.fillOpacity:1)):a.fill&&Gs(a.fill)?l=o.paint("fill",a.fill):l='fill="#000"';let c;if(a.shadowColor&&(c=o.shadow(a.shadowColor.toCSS(a.shadowOpacity!=null?a.shadowOpacity:1),a.shadowBlur||0,a.shadowOffsetX||0,a.shadowOffsetY||0,t._matrix,t.getLocalBounds())),t instanceof at&&t.textType=="circular"){let _=o.live?t._orient():t._inward();$a(o,t,_,n,l,e,i,c,s);return}let u=mi(o,t,e,i,c),d=Sa(a.textAlign,h);d&&(u+=' text-anchor="'+d+'"');let f=Da(a.textBaseline);f&&(u+=' dominant-baseline="'+f+'"'),h&&(u+=' direction="rtl"');let m=[];w(r,_=>{w(_.textChunks,p=>{let y=p.style||n,g=p.fill?o.color("fill",p.fill.toCSS()):l,b=p.offsetX,v=_.offsetY+p.offsetY;if(!(!isFinite(b)||!isFinite(v))&&(p.text!==""&&m.push('<text x="'+o.n(b)+'" y="'+o.n(v)+'" '+g+' style="font:'+St(y)+';white-space:pre">'+St(p.text)+"</text>"),p.textDecoration=="underline"||p.textDecoration=="line-through")){let x=1,C=1,T=p.height,M=p.offsetX;switch(a.textAlign){case"right":case"end":M-=p.width;break;case"center":M-=p.width/2;break}if(p.style)switch(Ct.getTextStyle(p.style).fontWeight){case"bolder":case"bold":case"700":case"800":case"900":x=2;break}T&&(C=T/20);let S;if(p.textDecoration=="line-through"?S=x+_.offsetY+p.offsetY-p.height/2:S=x+C*1.5+_.offsetY+p.offsetY,S=Math.floor(S)+.5,!isFinite(S)||!isFinite(M)||!isFinite(p.width))return;let D='stroke="#000"';p.fill?D=o.color("stroke",p.fill.toCSS()):a.fill instanceof $&&(D=o.color("stroke",a.fill.toCSS())),m.push('<path d="M'+o.n(M)+" "+o.n(S)+"L"+o.n(M+p.width)+" "+o.n(S)+'" fill="none" '+D+' stroke-width="'+o.n(x*C)+'"/>')}})}),m.length&&s.push("<g"+u+">"+m.join("")+"</g>")}function $a(o,t,e,i,s,r,a,n,h){let l=[];t._eachGlyph(e,(c,u,d)=>{if(!isFinite(d))return;let f=c.style||i,m=c.fill?o.color("fill",c.fill.toCSS()):s;l.push('<text transform="rotate('+o.n(u*Gt)+')" x="0" y="'+o.n(d)+'" text-anchor="middle" dominant-baseline="central" '+m+' style="font:'+St(f)+';white-space:pre">'+St(c.text)+"</text>")}),l.length&&h.push("<g"+mi(o,t,r,a,n)+">"+l.join("")+"</g>")}function Pa(o,t,e,i,s){let r=t.image;if(!r||t.tainted&&!o.live)return;let a=t.width||r.naturalWidth,n=t.height||r.naturalHeight;if(!isFinite(a)||!isFinite(n))return;let h;t.shadowColor&&(h=o.shadow(t.shadowColor.toCSS(t.shadowOpacity!=null?t.shadowOpacity:1),t.shadowBlur||0,t.shadowOffsetX||0,t.shadowOffsetY||0,t._matrix,{left:0,top:0,right:a,bottom:n})),s.push("<image"+mi(o,t,e,i,h)+' width="'+o.n(a)+'" height="'+o.n(n)+'" '+o.href+'="'+St(r.src)+'" preserveAspectRatio="none"/>')}function Ur(o,t,e,i,s,r,a){if(!t.visible||t.exportable===!1&&!o.live)return;t._setMatrix(),t._layer&&(i=t._layer);let n=s*t.alpha;if(n>=0&&n<=1&&(s=n),s<=0&&!o.live)return;t.filter&&(r=t.filter);let h=[];if(t instanceof ut)w(t._children,l=>{Ur(o,l,e,i,s,r,h)});else if(i===e&&isFinite(t._matrix.tx)&&isFinite(t._matrix.ty)&&isFinite(t._matrix.a)){let l=[];t instanceof rt?Xr(o,t,s,r,l):t instanceof ft?Ea(o,t,s,r,l):t instanceof pt&&Pa(o,t,s,r,l),l.length&&h.push({node:t,markup:l.join("")})}if(h.length){let l=t.mask;l?(l._setMatrix(),a.push({node:t,clip:o.clip(l),items:h})):w(h,c=>{a.push(c)})}}function Ws(o,t,e,i,s=1){let r=[];return Ur(o,t,e,i,s,void 0,r),r}function Ys(o){return"url(#"+o+")"}function jr(o){return o.map(t=>"items"in t?'<g clip-path="'+Ys(t.clip)+'">'+jr(t.items)+"</g>":t.markup).join("")}function Vs(o){return o?"isolation:isolate":""}function Aa(o,t={}){let e,i=t.width,s=t.height,r=t.title;if(o instanceof Xt)e=o;else{let _="_rootContainer"in o?o:o._root;r==null&&(r=_.settings.ariaLabel);let p=_._rootContainer._display;e="_rootContainer"in o?p:o._display,_._renderer.render(p),i==null&&(i=_.width()||_._rootContainer.width()),s==null&&(s=_.height()||_._rootContainer.height())}let a=new fi(t.idPrefix!=null?t.idPrefix:"am5-"),n=new pi(t.precision!=null?t.precision:3,a),h=e._renderer,l=[],c=e.getLayer(),u=1;for(let _=e._parent;_;_=_._parent)_.alpha>=0&&_.alpha<=1&&(u*=_.alpha);w(h.layers,_=>{if(_.visible){n.blend=!1;let p=jr(Ws(n,e,_,c,u));if(p){let y=Vs(n.blend);l.push('<g class="am5-layer-'+_.order+'"'+(y?' style="'+y+'"':"")+' aria-hidden="true">'+p+"</g>")}}});let d=n.n(i||0),f=n.n(s||0),m=n.defsMarkup();return'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+d+'" height="'+f+'" viewBox="0 0 '+d+" "+f+'" role="img">'+(r?"<title>"+St(r)+"</title>":"")+(m?"<defs>"+m+"</defs>":"")+(t.background?'<rect width="'+d+'" height="'+f+'" '+n.color("fill",t.background)+' aria-hidden="true"/>':"")+l.join("")+"</svg>"}var Xs=class{constructor(){this.bounds={left:1/0,top:1/0,right:-1/0,bottom:-1/0},this._x=0,this._y=0,this._startX=0,this._startY=0}_add(t,e){let i=this.bounds;t<i.left&&(i.left=t),t>i.right&&(i.right=t),e<i.top&&(i.top=e),e>i.bottom&&(i.bottom=e)}_to(t,e){this._add(t,e),this._x=t,this._y=e}moveTo(t,e){this._to(t,e),this._startX=t,this._startY=e}lineTo(t,e){this._to(t,e)}closePath(){this._x=this._startX,this._y=this._startY}rect(t,e,i,s){this._add(t+i,e+s),this.moveTo(t,e)}arc(t,e,i,s,r,a){this._add(t-i,e-i),this._add(t+i,e+i),this._to(t+i*Math.cos(r),e+i*Math.sin(r))}arcTo(t,e,i,s,r){let a=this._x-t,n=this._y-e,h=i-t,l=s-e,c=Math.sqrt(a*a+n*n),u=Math.sqrt(h*h+l*l),d=a*l-n*h;if(c===0||u===0||d===0||r===0){this._to(t,e);return}let f=(a*h+n*l)/(c*u),m=r*Math.sqrt((1+f)/(1-f));this._add(t,e),this._add(t+a/c*m,e+n/c*m),this._to(t+h/u*m,e+l/u*m)}ellipse(t,e,i,s,r,a,n,h){let l=Math.max(i,s);this._add(t-l,e-l),this._add(t+l,e+l);let c=i*Math.cos(n),u=s*Math.sin(n);this._to(t+c*Math.cos(r)-u*Math.sin(r),e+c*Math.sin(r)+u*Math.cos(r))}bezierCurveTo(t,e,i,s,r,a){this._add(t,e),this._add(i,s),this._to(r,a)}quadraticCurveTo(t,e,i,s){this._add(t,e),this._to(i,s)}},Xi=class{constructor(){this._force=0,this._clipPaths=new Map,this._images=new WeakMap}invalidate(){this._entries=void 0,this._clipPaths.clear()}hit(t,e,i){this._entries||(this._entries=this._collect(t,e));let s=this._entries;for(let r=s.length-1;r>=0;--r){let a=s[r];if(!a.node.isDisposed()&&this._hitNode(a,i)&&this._inClips(a.clips,i))return a.node}}_getContext(){if(!this._context){let t=document.createElement("canvas");t.width=1,t.height=1,this._context=t.getContext("2d")}return this._context}_collect(t,e){let i={};this._force=0,this._walk(t,null,e,void 0,i);let s=Object.keys(i).map(Number).sort((a,n)=>a-n),r=[];return w(s,a=>{w(i[a],n=>{r.push(n)})}),r}_walk(t,e,i,s,r){if(!t.visible)return;t._setMatrix();let a=t.inactive==null?e:t.inactive,n=t._layer||i,h=!a&&(t.interactive||this._force>0),l=t.mask;if(l&&(t instanceof ut&&t.interactiveChildren||h)&&(l._setMatrix(),s=s?s.concat([l]):[l]),t instanceof ut){let c=t.interactive&&t.interactiveChildren;c&&++this._force,w(t._children,u=>{this._walk(u,a,n,s,r)}),c&&--this._force}else if(h&&this._onGhost(t)){let c=n.order||0;if(c>=0){let u=r[c];u||(u=r[c]=[]),u.push({node:t,clips:s})}}}_onGhost(t){return t instanceof rt||t instanceof at&&t.textType=="circular"?!0:t instanceof ft?t.interactive:t instanceof pt?t.interactive&&!!t.image:!1}_hitNode(t,e){let i=t.node,s=i._matrix.applyInverse(e),r=s.x,a=s.y;if(!isFinite(r)||!isFinite(a))return!1;if(i instanceof rt)return this._hitGraphics(t,i,r,a);if(i instanceof at&&i.textType=="circular")return this._hitCircularText(i,r,a);if(i instanceof ft){let n=i._textBounds;return i.textVisible&&!!i._textInfo&&!!n&&r>=n.left&&r<=n.right&&a>=n.top&&a<=n.bottom}else if(i instanceof pt)return this._hitImage(i,r,a);return!1}_hitGraphics(t,e,i,s){let r=e._data.ops,a=t.bounds;if(!a){let c=new Xs,u=1;w(r,d=>{d.type==="lineStyle"&&(u=Math.max(u,d.width*5)),d.path(c)}),a=t.bounds=c.bounds,a.left-=u,a.top-=u,a.right+=u,a.bottom+=u}if(i<a.left||i>a.right||s<a.top||s>a.bottom)return!1;let n=this._getContext();n.save();let h=new Path2D,l=!1;return ue(r,c=>{switch(c.type){case"beginPath":h=new Path2D;break;case"endFill":l=n.isPointInPath(h,i,s);break;case"endStroke":l=n.isPointInStroke(h,i,s);break;case"lineStyle":n.lineWidth=c.width,c.lineJoin&&(n.lineJoin=c.lineJoin),c.lineCap&&(n.lineCap=c.lineCap);break;case"lineDash":n.setLineDash(c.dash);break;case"lineDashOffset":n.lineDashOffset=c.dashOffset;break;default:c.path(h)}return!l}),n.restore(),l}_hitCircularText(t,e,i){if(!t.textVisible||!t._textInfo)return!1;let s=!1;return t._eachGlyph(t._inward(),(r,a,n,h)=>{if(!s){let l=Math.cos(a),c=Math.sin(a),u=e*l+i*c,d=-e*c+i*l;s=Math.abs(u)<=r.width/2&&Math.abs(d-n)<=h/2}}),s}_hitImage(t,e,i){let s=t.image;if(!s)return!1;let r=t.width||s.naturalWidth,a=t.height||s.naturalHeight;if(e<0||i<0||e>=r||i>=a)return!1;let n=this._images.get(t);if((!n||n.image!==s||n.width!==r||n.height!==a)&&(n={image:s,width:r,height:a,data:La(s,r,a)},this._images.set(t,n)),!n.data)return!0;let h=(Math.floor(i)*Math.floor(r)+Math.floor(e))*4+3;return n.data[h]===255}_inClips(t,e){if(!t)return!0;let i=this._getContext(),s=!0;return ue(t,r=>{let a=this._clipPaths.get(r);if(!a){a=new Path2D;let h=a;w(r._data.ops,l=>{l.path(h)}),this._clipPaths.set(r,a)}let n=r._matrix.applyInverse(e);return s=i.isPointInPath(a,n.x,n.y),s}),s}};function La(o,t,e){let i=document.createElement("canvas");i.width=t,i.height=e;let s=i.getContext("2d",{willReadFrequently:!0});s.imageSmoothingEnabled=!1,s.drawImage(o,0,0,t,e);try{return s.getImageData(0,0,i.width,i.height).data}catch{return null}}var Ve="http://www.w3.org/2000/svg",Na=0,Us=class{constructor(t,e){this.element=t,this.order=0,this.visible=!0,this.dirty=!0,this._defsElement=document.createElementNS(Ve,"defs"),this._defElements=new Map,this._content=document.createElementNS(Ve,"g"),this._leaves=new Map,this._clips=new Map,this._defs=new fi(e),t.appendChild(this._defsElement),t.appendChild(this._content)}resize(t,e){this.width!=null&&(t=this.width),this.height!=null&&(e=this.height);let i=this.margin||{left:0,right:0,top:0,bottom:0},s=String(t+i.left+i.right),r=String(e+i.top+i.bottom),a=this.element;a.setAttribute("x",String(-i.left)),a.setAttribute("y",String(-i.top)),a.setAttribute("width",s),a.setAttribute("height",r),a.setAttribute("viewBox",-i.left+" "+-i.top+" "+s+" "+r)}},js=class extends ge{constructor(t){super(),this.view=document.createElement("div"),this._svg=document.createElementNS(Ve,"svg"),this._id=++Na,this._realWidth=0,this._realHeight=0,this._calculatedWidth=0,this._calculatedHeight=0,this.layers=[],this.defaultLayer=this.getLayer(0),this._hitTester=new Xi,this._measureCanvas=document.createElement("canvas"),this._measureContext=this._measureCanvas.getContext("2d"),this._parser=document.createElementNS(Ve,"g"),t==null?this.resolution=window.devicePixelRatio:this.resolution=t,this.view.style.position="absolute",this.view.setAttribute("aria-hidden","true");let e=this._svg;e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.overflow="visible",e.style.willChange="transform",e.style.setProperty("user-select","none"),e.style.setProperty("-webkit-user-select","none"),this.view.appendChild(e);let i=this._measureCanvas;i.width=0,i.height=0,i.style.position="absolute",i.style.visibility="hidden",this.view.appendChild(i),this._disposers.push(new et(()=>{w(this.layers,s=>{s._canvas&&(s._canvas.width=0,s._canvas.height=0)}),this.view.innerHTML=""})),this._disposers.push(xe(()=>{t==null&&(this.resolution=window.devicePixelRatio)})),this._interaction=new ve(this),this._disposers.push(this._interaction)}get interactionsEnabled(){return this._interaction.interactionsEnabled}set interactionsEnabled(t){this._interaction.interactionsEnabled=t}get tapToActivate(){return this._interaction.tapToActivate}set tapToActivate(t){this._interaction.tapToActivate=t}get tapToActivateTimeout(){return this._interaction.tapToActivateTimeout}set tapToActivateTimeout(t){this._interaction.tapToActivateTimeout=t}get debugGhostView(){return!1}set debugGhostView(t){}createLinearGradient(t,e,i,s){return new At(t,e,i,s)}createRadialGradient(t,e,i,s,r,a){return new Lt(t,e,i,s,r,a)}createPattern(t,e,i,s,r){return new Nt(this._snapshot(t),this._snapshot(e),i,s,r)}_snapshot(t){let e=new rt(this);return e._data.ops=t._data.ops.slice(),e.visible=t.visible,e.alpha=t.alpha,e.compoundAlpha=t.compoundAlpha,e.x=t.x,e.y=t.y,e.angle=t.angle,e.scale=t.scale,e.pivot.x=t.pivot.x,e.pivot.y=t.pivot.y,e.crisp=t.crisp,e.filter=t.filter,e.blendMode=t.blendMode,e}createRasterPattern(t,e){if(!t.width||!t.height)return null;let i=document.createElement("canvas");return i.width=t.width,i.height=t.height,i.getContext("2d").drawImage(t,0,0),new Mt(i,e)}makeContainer(){return new ut(this)}makeGraphics(){return new rt(this)}makeText(t,e){return new ft(this,t,e)}makeTextStyle(){return new Ce}makeRadialText(t,e){return new at(this,t,e)}makePicture(t){return new pt(this,t)}resize(t,e,i,s){this._realWidth=t,this._realHeight=e,this._calculatedWidth=i,this._calculatedHeight=s,w(this.layers,r=>{r.dirty=!0,r.resize(i,s),this._resizeCanvas(r)}),this.view.style.width=i+"px",this.view.style.height=s+"px",this._svg.setAttribute("width",String(i)),this._svg.setAttribute("height",String(s))}getLayerByOrder(t){let e=this.layers,i=e.length;for(let s=0;s<i;s++){let r=e[s];if(r.order==t)return r}}getLayer(t,e=!0){let i=this.getLayerByOrder(t);if(i)return i;let s=document.createElementNS(Ve,"svg");s.setAttribute("class","am5-layer-"+t),s.setAttribute("overflow","hidden"),s.setAttribute("pointer-events","none");let r=new Us(s,"am5s"+this._id+"l"+String(t).replace(/[^\w]/g,"_")+"-");r.order=t,r.visible=e,r.resize(this._calculatedWidth,this._calculatedHeight);let a=this.layers;a.push(r),a.sort((h,l)=>h.order-l.order);let n=a[yi(a,r)+1];return n===void 0?this._svg.appendChild(s):this._svg.insertBefore(s,n.element),this._applyVisible(r),r}_applyVisible(t){t.visible?t.element.removeAttribute("display"):t.element.setAttribute("display","none")}render(t){this._root=t,w(this.layers,e=>{e.dirty&&e.visible&&(this._renderLayer(t,e),e.dirty=!1)}),this._hitTester.invalidate(),this._interaction.afterRender()}_renderLayer(t,e){let i=e._defs;i.begin();let s=new pi(3,i,this.resolution,!0),r=Ws(s,t,e,this.defaultLayer),a=new Map,n=new Map,h=[];if(this._match(e,r,a,n,h),e._leaves.forEach((c,u)=>{a.get(u)!==c&&w(c.elements,d=>{d.remove()})}),e._clips.forEach((c,u)=>{n.get(u)!==c&&c.element.remove()}),h.length){let c=this._parse(h.map(u=>"<g>"+u.markup+"</g>"));w(h,(u,d)=>{u.elements=Array.prototype.slice.call(c[d].children)})}this._place(e._content,r,a,n),e._leaves=a,e._clips=n,this._syncDefs(e),i.sweep();let l=Vs(s.blend);l?e.element.setAttribute("style",l):e.element.removeAttribute("style")}_match(t,e,i,s,r){w(e,a=>{if("items"in a){let n=t._clips.get(a.node);n||(n={clip:"",element:document.createElementNS(Ve,"g")}),n.clip!==a.clip&&(n.clip=a.clip,n.element.setAttribute("clip-path",Ys(a.clip))),s.set(a.node,n),this._match(t,a.items,i,s,r)}else{let n=t._leaves.get(a.node);(!n||n.markup!==a.markup)&&(n={markup:a.markup,elements:[]},r.push(n)),i.set(a.node,n)}})}_place(t,e,i,s){let r=t.firstChild,a=n=>{n===r?r=r.nextSibling:t.insertBefore(n,r)};for(w(e,n=>{if("items"in n){let h=s.get(n.node);this._place(h.element,n.items,i,s),a(h.element)}else w(i.get(n.node).elements,a)});r;){let n=r.nextSibling;t.removeChild(r),r=n}}_syncDefs(t){let e=t._defs,i=e.used,s=t._defElements;s.forEach((a,n)=>{i.has(n)||(a.remove(),s.delete(n))});let r=[];if(i.forEach(a=>{s.has(a)||r.push(a)}),r.length){let a=this._parse(r.map(n=>e.withId(n)));w(r,(n,h)=>{let l=a[h];t._defsElement.appendChild(l),s.set(n,l)})}}_parse(t){let e=this._parser;e.innerHTML=t.join("");let i=Array.prototype.slice.call(e.children);return e.innerHTML="",i}_removeObject(t){this._hitTester.invalidate()}_useLayer(t,e){let s=this.getLayer(t,!0);return s.visible=!0,s.margin=e,s.dirty=!0,s.resize(this._calculatedWidth,this._calculatedHeight),this._applyVisible(s),s}_layerCanvas(t){let e=t;if(!e._canvas){let i=document.createElement("canvas");i.style.position="absolute",i.style.top="0px",i.style.left="0px",i.style.pointerEvents="none",e._canvas=i,this._resizeCanvas(e),this.view.appendChild(i)}return e._canvas}_resizeCanvas(t){let e=t._canvas;e&&(e.width=Math.floor(this._calculatedWidth*this.resolution),e.height=Math.floor(this._calculatedHeight*this.resolution),e.style.width=this._calculatedWidth+"px",e.style.height=this._calculatedHeight+"px")}_measureText(t){let e=this._measureContext,i=t.style,s=t instanceof at&&t.textType=="circular";s&&(t._textReversed=!1),e.save(),e.font=t._getFontStyle(void 0,s?!1:Ci()),i.textAlign&&(e.textAlign=i.textAlign),i.direction&&(e.direction=i.direction),i.textBaseline&&(e.textBaseline=i.textBaseline);let r=t._layoutState(),a=h=>t._getFontStyle(h),n=s?Mi(e,t.text,i,a,r):ki(e,t.text,i,a,r);if(t._applyLayoutState(r),!s&&["truncate","wrap","wrap-no-break"].indexOf(i.oversizedBehavior||"")>-1){let h=t._getFontStyle();w(r.lines,l=>{w(l.textChunks,c=>{if(c.textDecoration=="underline"||c.textDecoration=="line-through"){e.font=c.style||h;let u=Ti(c.text,e,i);c.width=u.actualBoundingBoxLeft+u.actualBoundingBoxRight}})})}return e.restore(),t._textBounds=n,n}_margin(){let t={left:0,right:0,top:0,bottom:0};return w(this.layers,e=>{e.margin&&(t.left=Math.max(t.left,e.margin.left),t.right=Math.max(t.right,e.margin.right),t.top=Math.max(t.top,e.margin.top),t.bottom=Math.max(t.bottom,e.margin.bottom))}),t}getEvent(t,e=!0){let i=this.view.getBoundingClientRect(),s=t.clientX||0,r=t.clientY||0,a=this._calculatedWidth/(i.width||this._realWidth),n=this._calculatedHeight/(i.height||this._realHeight),h={x:s-i.left,y:r-i.top},l={x:(s-(e?i.left:0))*a,y:(r-(e?i.top:0))*n},c=this._margin();return new li(t,h,l,new DOMRect(-c.left,-c.top,i.width+c.left+c.right,i.height+c.top+c.bottom))}_getHitTarget(t,e,i){if(e.width===0||e.height===0||t.x<e.left||t.x>e.right||t.y<e.top||t.y>e.bottom||!i||!this.view.contains(i))return;let s=this._margin(),r=this.resolution,a=Math.floor((this._calculatedWidth+s.left+s.right)*r),n=Math.floor((this._calculatedHeight+s.top+s.bottom)*r),h=Math.round((t.x-e.left)/e.width*a),l=Math.round((t.y-e.top)/e.height*n);return this._hitTest({x:(h+.5)/r-s.left,y:(l+.5)/r-s.top})||!1}_hitTest(t){if(this._root)return this._hitTester.hit(this._root,this.defaultLayer,t)}getObjectAtPoint(t){let e=this.resolution;return this._hitTest({x:(Math.round(t.x*e)+.5)/e,y:(Math.round(t.y*e)+.5)/e})}removeHovering(t){this._interaction.removeHovering(t)}resetImageArray(){}getCanvas(t,e){let i=new oe(this.resolution),s=i.view;s.style.visibility="hidden",this.view.appendChild(s);try{return i.resize(this._realWidth,this._realHeight,this._calculatedWidth,this._calculatedHeight),w(this.layers,r=>{r.visible&&i._useLayer(r.order,r.margin)}),i.getCanvas(t,e)}finally{this.view.removeChild(s),i.dispose()}}};var Xe=class extends E{constructor(){super(...arguments),this.label=this.children.push(hs.new(this._root,{})),this.buttonsContainer=this.children.push(E.new(this._root,{themeTags:["buttons"]})),this.upButton=this.buttonsContainer.children.push(bt.new(this._root,{themeTags:["upbutton"]})),this.downButton=this.buttonsContainer.children.push(bt.new(this._root,{themeTags:["downbutton"]}))}_afterNew(){this.addTag("numericstepper"),this.set("layout",this._root.horizontalLayout),this.label.adapters.add("text",t=>(t&&t.replace(/\D/g,""),t===""&&(t="0"),t)),this.set("background",Yt.new(this._root,{fillOpacity:0,fill:lt(16777215)})),this.buttonsContainer.states._createC("hidden",{opacity:0,visible:!0}),this.events.on("pointerover",()=>{this.buttonsContainer.set("active",!0)}),this.events.on("pointerout",()=>{this.buttonsContainer.set("active",!1)}),this.label.on("text",t=>{if(t){let e=parseFloat(t);isNaN(e)||this.set("value",e)}}),this.upButton.events.on("click",()=>{this.set("value",this.get("value",0)+1)}),this.downButton.events.on("click",()=>{this.set("value",Math.max(0,this.get("value",0)-1))}),super._afterNew()}_updateChildren(){super._updateChildren();let t=this.get("value",0),e=this.label;if(this.isDirty("value")&&e.set("text",t.toString()),this.isDirty("disabled")){let i=this.get("disabled",!1);this.set("interactive",!i),this.upButton.set("interactive",!i),this.downButton.set("interactive",!i),i?(this.label.set("editOn","none"),this.buttonsContainer.hide(0)):(this.label.set("editOn","click"),this.buttonsContainer.show(0))}}};Xe.className="NumericStepper";Xe.classNames=E.classNames.concat([Xe.className]);var Ue=class extends E{constructor(){super(...arguments),this.circle=this.children.push(he.new(this._root,{themeTags:["background"]})),this.label=this.children.push(Tt.new(this._root,{})),this.slice=this.children.push(Ei.new(this._root,{isMeasured:!1})),this.backgroundSlice=this.children.push(Ei.new(this._root,{themeTags:["background"]}))}_afterNew(){this.addTag("progresspie"),super._afterNew()}_updateChildren(){if(super._updateChildren(),this.isDirty("width")||this.isDirty("height")||this.isDirty("radius")||this.isDirty("innerRadius")){let t=this.innerWidth(),e=this.innerHeight(),i=$t(this.get("radius",R),Math.min(t,e)/2),s=$t(this.get("innerRadius",ht(80)),i);this.slice.setAll({radius:i,innerRadius:s}),this.backgroundSlice.setAll({radius:i,innerRadius:s}),this.circle.set("radius",i)}if(this.isDirty("value")){let t=this.get("value",0);this.slice.set("arc",t*360),this.backgroundSlice.set("arc",360),this.label.setAll({text:this.getNumberFormatter().format(t*100,this.get("numberFormat","#'"))}),this.root.events.once("frameended",()=>{this.label.markDirtyKey("text")})}}};Ue.className="ProgressPie";Ue.classNames=E.classNames.concat([Ue.className]);var Kr={};Zr(Kr,{load:()=>Fa,readBlob:()=>qr});function Fa(o,t,e){return new Promise((i,s)=>{let r=e!=null&&e.responseType=="blob",a=new XMLHttpRequest;if(a.onload=()=>{if(a.status===200){let n,h;if(r){h=a.response,qr(h).then(c=>{let u={xhr:a,error:!1,response:c,blob:h,type:a.getResponseHeader("Content-Type"),target:t};i(u)},()=>{s({xhr:a,error:!0,blob:h,type:a.getResponseHeader("Content-Type"),target:t})});return}else n=a.responseText||a.response;let l={xhr:a,error:!1,response:n,blob:h,type:a.getResponseHeader("Content-Type"),target:t};i(l)}else s({xhr:a,error:!0,type:a.getResponseHeader("Content-Type"),target:t})},a.onerror=()=>{s({xhr:a,error:!0,type:a.getResponseHeader("Content-Type"),target:t})},a.open("GET",o,!0),e&&e.withCredentials&&(a.withCredentials=!0),e!=null){if(e.requestHeaders!=null)for(let n=0;n<e.requestHeaders.length;n++){let h=e.requestHeaders[n];a.setRequestHeader(h.key,h.value)}e.responseType!=null&&(a.responseType=e.responseType)}a.send()})}function qr(o){return new Promise((t,e)=>{let i=new FileReader;i.onload=s=>{t(i.result)},i.onerror=s=>{e(s)},i.readAsText(o)})}export{ie as a,Pt as b,kt as c,se as d,ae as e,ne as f,oe as g,ci as h,Yi as i,Te as j,ke as k,Me as l,he as m,Se as n,De as o,Ee as p,Ft as q,xt as r,jt as s,$e as t,Pe as u,bt as v,Bt as w,Ae as x,Le as y,Ne as z,Fe as A,Be as B,Re as C,ze as D,le as E,ce as F,de as G,Oe as H,He as I,Ie as J,Ge as K,Os as L,Hs as M,Is as N,We as O,Aa as P,js as Q,Xe as R,Ue as S,Kr as T};