h2o-wave 1.5.5__py3-none-macosx_12_0_arm64.whl → 1.6.1__py3-none-macosx_12_0_arm64.whl

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.

Potentially problematic release.


This version of h2o-wave might be problematic. Click here for more details.

Files changed (862) hide show
  1. h2o_wave/version.py +1 -1
  2. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/waved +0 -0
  3. h2o_wave-1.6.1.data/data/www/index.html +34 -0
  4. h2o_wave-1.6.1.data/data/www/wave-static/LocalizationProvider-b740fb5d.js +1 -0
  5. h2o_wave-1.6.1.data/data/www/wave-static/Paper-86bee4d0.js +5 -0
  6. h2o_wave-1.6.1.data/data/www/wave-static/ada-29abd822.js +1 -0
  7. h2o_wave-1.5.5.data/data/www/wave-static/ada.js-2a423f67.js → h2o_wave-1.6.1.data/data/www/wave-static/ada.js-596147e5.js +1 -1
  8. h2o_wave-1.6.1.data/data/www/wave-static/bash-cc88d916.js +1 -0
  9. h2o_wave-1.5.5.data/data/www/wave-static/bash.js-d41fa82b.js → h2o_wave-1.6.1.data/data/www/wave-static/bash.js-aeac230f.js +1 -1
  10. h2o_wave-1.5.5.data/data/www/wave-static/d-ae018a40.js → h2o_wave-1.6.1.data/data/www/wave-static/d-5d21e788.js +1 -1
  11. h2o_wave-1.5.5.data/data/www/wave-static/d.js-c92f99bf.js → h2o_wave-1.6.1.data/data/www/wave-static/d.js-04aa8683.js +1 -1
  12. h2o_wave-1.6.1.data/data/www/wave-static/dart-12586384.js +1 -0
  13. h2o_wave-1.5.5.data/data/www/wave-static/dart.js-0d9dff0b.js → h2o_wave-1.6.1.data/data/www/wave-static/dart.js-c61fbb04.js +1 -1
  14. h2o_wave-1.6.1.data/data/www/wave-static/elixir-a3c89d2d.js +1 -0
  15. h2o_wave-1.5.5.data/data/www/wave-static/elixir.js-e25c44a9.js → h2o_wave-1.6.1.data/data/www/wave-static/elixir.js-679b8865.js +1 -1
  16. h2o_wave-1.5.5.data/data/www/wave-static/erlang-96bbbbf9.js → h2o_wave-1.6.1.data/data/www/wave-static/erlang-92e0ed4f.js +1 -1
  17. h2o_wave-1.5.5.data/data/www/wave-static/erlang.js-c5dafe1f.js → h2o_wave-1.6.1.data/data/www/wave-static/erlang.js-22ea5237.js +1 -1
  18. h2o_wave-1.6.1.data/data/www/wave-static/haskell-63691c0e.js +1 -0
  19. h2o_wave-1.5.5.data/data/www/wave-static/haskell.js-0d288bf5.js → h2o_wave-1.6.1.data/data/www/wave-static/haskell.js-f0611637.js +1 -1
  20. h2o_wave-1.6.1.data/data/www/wave-static/index-0585b855.js +29 -0
  21. h2o_wave-1.6.1.data/data/www/wave-static/index-6d5ddf8f.js +121 -0
  22. h2o_wave-1.6.1.data/data/www/wave-static/index-8eb8cd52.js +53 -0
  23. h2o_wave-1.5.5.data/data/www/wave-static/index-607adbf4.js → h2o_wave-1.6.1.data/data/www/wave-static/index-c67a7a73.js +1 -1
  24. h2o_wave-1.6.1.data/data/www/wave-static/index-dba5d017.js +74 -0
  25. h2o_wave-1.6.1.data/data/www/wave-static/index-fc5121a3.js +1 -0
  26. h2o_wave-1.6.1.data/data/www/wave-static/java-95ec2edb.js +1 -0
  27. h2o_wave-1.5.5.data/data/www/wave-static/java.js-74de220a.js → h2o_wave-1.6.1.data/data/www/wave-static/java.js-83f5f276.js +1 -1
  28. h2o_wave-1.6.1.data/data/www/wave-static/javascript-e0819b20.js +1 -0
  29. h2o_wave-1.5.5.data/data/www/wave-static/javascript.js-c8c34c95.js → h2o_wave-1.6.1.data/data/www/wave-static/javascript.js-71712620.js +1 -1
  30. h2o_wave-1.6.1.data/data/www/wave-static/kotlin-2060981f.js +2 -0
  31. h2o_wave-1.5.5.data/data/www/wave-static/kotlin.js-7ef8b390.js → h2o_wave-1.6.1.data/data/www/wave-static/kotlin.js-a422cee0.js +1 -1
  32. h2o_wave-1.5.5.data/data/www/wave-static/less-e8ba4a3d.js → h2o_wave-1.6.1.data/data/www/wave-static/less-15af99b5.js +1 -1
  33. h2o_wave-1.5.5.data/data/www/wave-static/less.js-1767326e.js → h2o_wave-1.6.1.data/data/www/wave-static/less.js-c864d14d.js +1 -1
  34. h2o_wave-1.6.1.data/data/www/wave-static/php-baf23133.js +2 -0
  35. h2o_wave-1.5.5.data/data/www/wave-static/php.js-63f7b62c.js → h2o_wave-1.6.1.data/data/www/wave-static/php.js-f9c986ec.js +1 -1
  36. h2o_wave-1.6.1.data/data/www/wave-static/python-d59bf68c.js +1 -0
  37. h2o_wave-1.5.5.data/data/www/wave-static/python.js-057f6b41.js → h2o_wave-1.6.1.data/data/www/wave-static/python.js-17816629.js +1 -1
  38. h2o_wave-1.6.1.data/data/www/wave-static/ruby-e373545c.js +1 -0
  39. h2o_wave-1.5.5.data/data/www/wave-static/ruby.js-4746d674.js → h2o_wave-1.6.1.data/data/www/wave-static/ruby.js-117b6d69.js +1 -1
  40. h2o_wave-1.6.1.data/data/www/wave-static/scilab-6742e34e.js +1 -0
  41. h2o_wave-1.5.5.data/data/www/wave-static/scilab.js-7f71a2b8.js → h2o_wave-1.6.1.data/data/www/wave-static/scilab.js-8c19ac41.js +1 -1
  42. h2o_wave-1.5.5.data/data/www/wave-static/smali-21dcdb1a.js → h2o_wave-1.6.1.data/data/www/wave-static/smali-b3932e39.js +2 -1
  43. h2o_wave-1.5.5.data/data/www/wave-static/smali.js-20618455.js → h2o_wave-1.6.1.data/data/www/wave-static/smali.js-6e70e629.js +1 -1
  44. h2o_wave-1.5.5.data/data/www/wave-static/sql-c9fb4b28.js → h2o_wave-1.6.1.data/data/www/wave-static/sql-6b946051.js +1 -1
  45. h2o_wave-1.5.5.data/data/www/wave-static/sql.js-e6273c7e.js → h2o_wave-1.6.1.data/data/www/wave-static/sql.js-a38b17e7.js +1 -1
  46. h2o_wave-1.5.5.data/data/www/wave-static/stata-eb259ab5.js → h2o_wave-1.6.1.data/data/www/wave-static/stata-6862641d.js +3 -1
  47. h2o_wave-1.5.5.data/data/www/wave-static/stata.js-d55c8c45.js → h2o_wave-1.6.1.data/data/www/wave-static/stata.js-a8c64684.js +1 -1
  48. h2o_wave-1.6.1.data/data/www/wave-static/subunit-f5d1c72e.js +3 -0
  49. h2o_wave-1.5.5.data/data/www/wave-static/subunit.js-34d918d2.js → h2o_wave-1.6.1.data/data/www/wave-static/subunit.js-6b90d5d9.js +1 -1
  50. h2o_wave-1.5.5.data/data/www/wave-static/swift-368cc8e5.js → h2o_wave-1.6.1.data/data/www/wave-static/swift-37aa337f.js +1 -1
  51. h2o_wave-1.5.5.data/data/www/wave-static/swift.js-7f6aa6c5.js → h2o_wave-1.6.1.data/data/www/wave-static/swift.js-35cc9631.js +1 -1
  52. h2o_wave-1.5.5.data/data/www/wave-static/twig-f99d1c77.js → h2o_wave-1.6.1.data/data/www/wave-static/twig-f96e75c9.js +1 -1
  53. h2o_wave-1.5.5.data/data/www/wave-static/twig.js-0dd7fbc5.js → h2o_wave-1.6.1.data/data/www/wave-static/twig.js-cf8e8520.js +1 -1
  54. h2o_wave-1.6.1.data/data/www/wave-static/typescript-def66f35.js +1 -0
  55. h2o_wave-1.5.5.data/data/www/wave-static/typescript.js-e5ef291f.js → h2o_wave-1.6.1.data/data/www/wave-static/typescript.js-32ae264b.js +1 -1
  56. h2o_wave-1.6.1.data/data/www/wave-static/useThemeProps-d5970ea4.js +1 -0
  57. h2o_wave-1.6.1.data/data/www/wave-static/vega-embed.module-fd422424.js +189 -0
  58. h2o_wave-1.6.1.data/data/www/wave-static/vega.module-93f4078e.js +13 -0
  59. h2o_wave-1.5.5.data/data/www/wave-static/xml-f27a8dc3.js → h2o_wave-1.6.1.data/data/www/wave-static/xml-7b0fd495.js +1 -1
  60. h2o_wave-1.5.5.data/data/www/wave-static/xml.js-4c99a2a1.js → h2o_wave-1.6.1.data/data/www/wave-static/xml.js-200b702e.js +1 -1
  61. {h2o_wave-1.5.5.dist-info → h2o_wave-1.6.1.dist-info}/METADATA +1 -1
  62. h2o_wave-1.6.1.dist-info/RECORD +453 -0
  63. h2o_wave-1.5.5.data/data/www/index.html +0 -39
  64. h2o_wave-1.5.5.data/data/www/wave-static/1c-legacy-1f340165.js +0 -1
  65. h2o_wave-1.5.5.data/data/www/wave-static/1c.js-legacy-98368d09.js +0 -1
  66. h2o_wave-1.5.5.data/data/www/wave-static/LocalizationProvider-4dceadb2.js +0 -1
  67. h2o_wave-1.5.5.data/data/www/wave-static/LocalizationProvider-legacy-6fe31a5b.js +0 -1
  68. h2o_wave-1.5.5.data/data/www/wave-static/Paper-1ca89ee7.js +0 -5
  69. h2o_wave-1.5.5.data/data/www/wave-static/Paper-legacy-56d980b2.js +0 -6
  70. h2o_wave-1.5.5.data/data/www/wave-static/abnf-legacy-3ba57d97.js +0 -1
  71. h2o_wave-1.5.5.data/data/www/wave-static/abnf.js-legacy-772000e0.js +0 -1
  72. h2o_wave-1.5.5.data/data/www/wave-static/accesslog-legacy-9037b412.js +0 -1
  73. h2o_wave-1.5.5.data/data/www/wave-static/accesslog.js-legacy-4d603280.js +0 -1
  74. h2o_wave-1.5.5.data/data/www/wave-static/actionscript-legacy-65c2d547.js +0 -1
  75. h2o_wave-1.5.5.data/data/www/wave-static/actionscript.js-legacy-e26afc60.js +0 -1
  76. h2o_wave-1.5.5.data/data/www/wave-static/ada-c0236269.js +0 -1
  77. h2o_wave-1.5.5.data/data/www/wave-static/ada-legacy-760027de.js +0 -1
  78. h2o_wave-1.5.5.data/data/www/wave-static/ada.js-legacy-1b70d373.js +0 -1
  79. h2o_wave-1.5.5.data/data/www/wave-static/angelscript-legacy-030a1f63.js +0 -1
  80. h2o_wave-1.5.5.data/data/www/wave-static/angelscript.js-legacy-3c29e80f.js +0 -1
  81. h2o_wave-1.5.5.data/data/www/wave-static/apache-legacy-5c598c77.js +0 -1
  82. h2o_wave-1.5.5.data/data/www/wave-static/apache.js-legacy-26e714da.js +0 -1
  83. h2o_wave-1.5.5.data/data/www/wave-static/applescript-legacy-d3b114ae.js +0 -1
  84. h2o_wave-1.5.5.data/data/www/wave-static/applescript.js-legacy-ee917070.js +0 -1
  85. h2o_wave-1.5.5.data/data/www/wave-static/arcade-legacy-298c0d91.js +0 -1
  86. h2o_wave-1.5.5.data/data/www/wave-static/arcade.js-legacy-fb5fb17f.js +0 -1
  87. h2o_wave-1.5.5.data/data/www/wave-static/arduino-legacy-ce33056c.js +0 -1
  88. h2o_wave-1.5.5.data/data/www/wave-static/arduino.js-legacy-89bc14e9.js +0 -1
  89. h2o_wave-1.5.5.data/data/www/wave-static/armasm-legacy-6aaaf123.js +0 -1
  90. h2o_wave-1.5.5.data/data/www/wave-static/armasm.js-legacy-71dd9e63.js +0 -1
  91. h2o_wave-1.5.5.data/data/www/wave-static/asciidoc-legacy-9ba3cb85.js +0 -1
  92. h2o_wave-1.5.5.data/data/www/wave-static/asciidoc.js-legacy-4e49ba3d.js +0 -1
  93. h2o_wave-1.5.5.data/data/www/wave-static/aspectj-legacy-ad6f5aac.js +0 -1
  94. h2o_wave-1.5.5.data/data/www/wave-static/aspectj.js-legacy-b19328d9.js +0 -1
  95. h2o_wave-1.5.5.data/data/www/wave-static/autohotkey-legacy-b10158b5.js +0 -1
  96. h2o_wave-1.5.5.data/data/www/wave-static/autohotkey.js-legacy-bdec76c7.js +0 -1
  97. h2o_wave-1.5.5.data/data/www/wave-static/autoit-legacy-040507d0.js +0 -1
  98. h2o_wave-1.5.5.data/data/www/wave-static/autoit.js-legacy-69d1218a.js +0 -1
  99. h2o_wave-1.5.5.data/data/www/wave-static/avrasm-legacy-6b9df0d6.js +0 -1
  100. h2o_wave-1.5.5.data/data/www/wave-static/avrasm.js-legacy-b9d99374.js +0 -1
  101. h2o_wave-1.5.5.data/data/www/wave-static/awk-legacy-8e369975.js +0 -1
  102. h2o_wave-1.5.5.data/data/www/wave-static/awk.js-legacy-3bc1cf54.js +0 -1
  103. h2o_wave-1.5.5.data/data/www/wave-static/axapta-legacy-f376f3b3.js +0 -1
  104. h2o_wave-1.5.5.data/data/www/wave-static/axapta.js-legacy-8e4fd23d.js +0 -1
  105. h2o_wave-1.5.5.data/data/www/wave-static/bash-91557547.js +0 -1
  106. h2o_wave-1.5.5.data/data/www/wave-static/bash-legacy-0257aa19.js +0 -1
  107. h2o_wave-1.5.5.data/data/www/wave-static/bash.js-legacy-c31ebba3.js +0 -1
  108. h2o_wave-1.5.5.data/data/www/wave-static/basic-legacy-98313fa6.js +0 -1
  109. h2o_wave-1.5.5.data/data/www/wave-static/basic.js-legacy-95b6bc23.js +0 -1
  110. h2o_wave-1.5.5.data/data/www/wave-static/bnf-legacy-69774d99.js +0 -1
  111. h2o_wave-1.5.5.data/data/www/wave-static/bnf.js-legacy-2e4145ce.js +0 -1
  112. h2o_wave-1.5.5.data/data/www/wave-static/brainfuck-legacy-9be6d42a.js +0 -1
  113. h2o_wave-1.5.5.data/data/www/wave-static/brainfuck.js-legacy-986452f8.js +0 -1
  114. h2o_wave-1.5.5.data/data/www/wave-static/c-legacy-f117548e.js +0 -1
  115. h2o_wave-1.5.5.data/data/www/wave-static/c.js-legacy-3fc211c8.js +0 -1
  116. h2o_wave-1.5.5.data/data/www/wave-static/cal-legacy-8007c68c.js +0 -1
  117. h2o_wave-1.5.5.data/data/www/wave-static/cal.js-legacy-adf3caa7.js +0 -1
  118. h2o_wave-1.5.5.data/data/www/wave-static/capnproto-legacy-fd95903f.js +0 -1
  119. h2o_wave-1.5.5.data/data/www/wave-static/capnproto.js-legacy-16249eb6.js +0 -1
  120. h2o_wave-1.5.5.data/data/www/wave-static/ceylon-legacy-33a2b933.js +0 -1
  121. h2o_wave-1.5.5.data/data/www/wave-static/ceylon.js-legacy-88609133.js +0 -1
  122. h2o_wave-1.5.5.data/data/www/wave-static/clean-legacy-7d08533d.js +0 -1
  123. h2o_wave-1.5.5.data/data/www/wave-static/clean.js-legacy-ee527382.js +0 -1
  124. h2o_wave-1.5.5.data/data/www/wave-static/clojure-legacy-cf74b7ad.js +0 -1
  125. h2o_wave-1.5.5.data/data/www/wave-static/clojure-repl-legacy-a7dfd6ba.js +0 -1
  126. h2o_wave-1.5.5.data/data/www/wave-static/clojure-repl.js-legacy-d8c09b04.js +0 -1
  127. h2o_wave-1.5.5.data/data/www/wave-static/clojure.js-legacy-2b1b0d1a.js +0 -1
  128. h2o_wave-1.5.5.data/data/www/wave-static/cmake-legacy-058e10cc.js +0 -1
  129. h2o_wave-1.5.5.data/data/www/wave-static/cmake.js-legacy-a151aaf9.js +0 -1
  130. h2o_wave-1.5.5.data/data/www/wave-static/coffeescript-legacy-931e3a0e.js +0 -1
  131. h2o_wave-1.5.5.data/data/www/wave-static/coffeescript.js-legacy-cc0283c3.js +0 -1
  132. h2o_wave-1.5.5.data/data/www/wave-static/coq-legacy-7070cb24.js +0 -1
  133. h2o_wave-1.5.5.data/data/www/wave-static/coq.js-legacy-3710e9a4.js +0 -1
  134. h2o_wave-1.5.5.data/data/www/wave-static/cos-legacy-5d28f9c2.js +0 -1
  135. h2o_wave-1.5.5.data/data/www/wave-static/cos.js-legacy-629ddc42.js +0 -1
  136. h2o_wave-1.5.5.data/data/www/wave-static/cpp-legacy-461889cf.js +0 -1
  137. h2o_wave-1.5.5.data/data/www/wave-static/cpp.js-legacy-c6376d15.js +0 -1
  138. h2o_wave-1.5.5.data/data/www/wave-static/crmsh-legacy-5afa09d6.js +0 -1
  139. h2o_wave-1.5.5.data/data/www/wave-static/crmsh.js-legacy-d978e965.js +0 -1
  140. h2o_wave-1.5.5.data/data/www/wave-static/crystal-legacy-83f70abe.js +0 -1
  141. h2o_wave-1.5.5.data/data/www/wave-static/crystal.js-legacy-fbe617f5.js +0 -1
  142. h2o_wave-1.5.5.data/data/www/wave-static/csharp-legacy-538e1ba5.js +0 -1
  143. h2o_wave-1.5.5.data/data/www/wave-static/csharp.js-legacy-eca63ddd.js +0 -1
  144. h2o_wave-1.5.5.data/data/www/wave-static/csp-legacy-10c43cd6.js +0 -1
  145. h2o_wave-1.5.5.data/data/www/wave-static/csp.js-legacy-865165f8.js +0 -1
  146. h2o_wave-1.5.5.data/data/www/wave-static/css-legacy-06be5a7b.js +0 -1
  147. h2o_wave-1.5.5.data/data/www/wave-static/css.js-legacy-e18f3b2c.js +0 -1
  148. h2o_wave-1.5.5.data/data/www/wave-static/d-legacy-57358680.js +0 -1
  149. h2o_wave-1.5.5.data/data/www/wave-static/d.js-legacy-0265534f.js +0 -1
  150. h2o_wave-1.5.5.data/data/www/wave-static/dart-06281ff3.js +0 -1
  151. h2o_wave-1.5.5.data/data/www/wave-static/dart-legacy-f1fe067f.js +0 -1
  152. h2o_wave-1.5.5.data/data/www/wave-static/dart.js-legacy-99ef1ed5.js +0 -1
  153. h2o_wave-1.5.5.data/data/www/wave-static/delphi-legacy-40fb6e27.js +0 -1
  154. h2o_wave-1.5.5.data/data/www/wave-static/delphi.js-legacy-8533c56f.js +0 -1
  155. h2o_wave-1.5.5.data/data/www/wave-static/diff-legacy-4be4e2b2.js +0 -1
  156. h2o_wave-1.5.5.data/data/www/wave-static/diff.js-legacy-c55adccd.js +0 -1
  157. h2o_wave-1.5.5.data/data/www/wave-static/django-legacy-078ddbc0.js +0 -1
  158. h2o_wave-1.5.5.data/data/www/wave-static/django.js-legacy-61d970ec.js +0 -1
  159. h2o_wave-1.5.5.data/data/www/wave-static/dns-legacy-826e0616.js +0 -1
  160. h2o_wave-1.5.5.data/data/www/wave-static/dns.js-legacy-f07fff2d.js +0 -1
  161. h2o_wave-1.5.5.data/data/www/wave-static/dockerfile-legacy-3b4c85d5.js +0 -1
  162. h2o_wave-1.5.5.data/data/www/wave-static/dockerfile.js-legacy-8bb4b414.js +0 -1
  163. h2o_wave-1.5.5.data/data/www/wave-static/dos-legacy-46ebadf0.js +0 -1
  164. h2o_wave-1.5.5.data/data/www/wave-static/dos.js-legacy-a8aa3c9d.js +0 -1
  165. h2o_wave-1.5.5.data/data/www/wave-static/dsconfig-legacy-b8536f28.js +0 -1
  166. h2o_wave-1.5.5.data/data/www/wave-static/dsconfig.js-legacy-1889466e.js +0 -1
  167. h2o_wave-1.5.5.data/data/www/wave-static/dts-legacy-e9b77179.js +0 -1
  168. h2o_wave-1.5.5.data/data/www/wave-static/dts.js-legacy-eb002d43.js +0 -1
  169. h2o_wave-1.5.5.data/data/www/wave-static/dust-legacy-f38ddfe3.js +0 -1
  170. h2o_wave-1.5.5.data/data/www/wave-static/dust.js-legacy-912e5888.js +0 -1
  171. h2o_wave-1.5.5.data/data/www/wave-static/ebnf-legacy-12ae95ee.js +0 -1
  172. h2o_wave-1.5.5.data/data/www/wave-static/ebnf.js-legacy-25af7831.js +0 -1
  173. h2o_wave-1.5.5.data/data/www/wave-static/elixir-06f5031d.js +0 -1
  174. h2o_wave-1.5.5.data/data/www/wave-static/elixir-legacy-2b778392.js +0 -1
  175. h2o_wave-1.5.5.data/data/www/wave-static/elixir.js-legacy-4db9f6b3.js +0 -1
  176. h2o_wave-1.5.5.data/data/www/wave-static/elm-legacy-8710109e.js +0 -1
  177. h2o_wave-1.5.5.data/data/www/wave-static/elm.js-legacy-b1d3ab7d.js +0 -1
  178. h2o_wave-1.5.5.data/data/www/wave-static/erb-legacy-eaa3d968.js +0 -1
  179. h2o_wave-1.5.5.data/data/www/wave-static/erb.js-legacy-56a4fddf.js +0 -1
  180. h2o_wave-1.5.5.data/data/www/wave-static/erlang-legacy-b567ab4d.js +0 -1
  181. h2o_wave-1.5.5.data/data/www/wave-static/erlang-repl-legacy-bf64e9f3.js +0 -1
  182. h2o_wave-1.5.5.data/data/www/wave-static/erlang-repl.js-legacy-e8ee86eb.js +0 -1
  183. h2o_wave-1.5.5.data/data/www/wave-static/erlang.js-legacy-4fa5f7fe.js +0 -1
  184. h2o_wave-1.5.5.data/data/www/wave-static/excel-legacy-9c71e053.js +0 -1
  185. h2o_wave-1.5.5.data/data/www/wave-static/excel.js-legacy-fd71b895.js +0 -1
  186. h2o_wave-1.5.5.data/data/www/wave-static/fix-legacy-d2d58587.js +0 -1
  187. h2o_wave-1.5.5.data/data/www/wave-static/fix.js-legacy-011be80e.js +0 -1
  188. h2o_wave-1.5.5.data/data/www/wave-static/flix-legacy-69070261.js +0 -1
  189. h2o_wave-1.5.5.data/data/www/wave-static/flix.js-legacy-f8159a52.js +0 -1
  190. h2o_wave-1.5.5.data/data/www/wave-static/fortran-legacy-5e118021.js +0 -1
  191. h2o_wave-1.5.5.data/data/www/wave-static/fortran.js-legacy-1a358a42.js +0 -1
  192. h2o_wave-1.5.5.data/data/www/wave-static/fsharp-legacy-bd7f6e32.js +0 -1
  193. h2o_wave-1.5.5.data/data/www/wave-static/fsharp.js-legacy-52311080.js +0 -1
  194. h2o_wave-1.5.5.data/data/www/wave-static/gams-legacy-5462b492.js +0 -1
  195. h2o_wave-1.5.5.data/data/www/wave-static/gams.js-legacy-19ef2d30.js +0 -1
  196. h2o_wave-1.5.5.data/data/www/wave-static/gauss-legacy-c7e1c9b5.js +0 -1
  197. h2o_wave-1.5.5.data/data/www/wave-static/gauss.js-legacy-ee455f07.js +0 -1
  198. h2o_wave-1.5.5.data/data/www/wave-static/gcode-legacy-b7acb28b.js +0 -1
  199. h2o_wave-1.5.5.data/data/www/wave-static/gcode.js-legacy-2e9e86ac.js +0 -1
  200. h2o_wave-1.5.5.data/data/www/wave-static/gherkin-legacy-b0604c88.js +0 -1
  201. h2o_wave-1.5.5.data/data/www/wave-static/gherkin.js-legacy-92abc3f1.js +0 -1
  202. h2o_wave-1.5.5.data/data/www/wave-static/glsl-legacy-424a034d.js +0 -1
  203. h2o_wave-1.5.5.data/data/www/wave-static/glsl.js-legacy-862aa373.js +0 -1
  204. h2o_wave-1.5.5.data/data/www/wave-static/gml-legacy-a7effad4.js +0 -1
  205. h2o_wave-1.5.5.data/data/www/wave-static/gml.js-legacy-3522ddf5.js +0 -1
  206. h2o_wave-1.5.5.data/data/www/wave-static/go-legacy-596bb66d.js +0 -1
  207. h2o_wave-1.5.5.data/data/www/wave-static/go.js-legacy-b89ab4e3.js +0 -1
  208. h2o_wave-1.5.5.data/data/www/wave-static/golo-legacy-f1af3756.js +0 -1
  209. h2o_wave-1.5.5.data/data/www/wave-static/golo.js-legacy-cbea5e6c.js +0 -1
  210. h2o_wave-1.5.5.data/data/www/wave-static/gradle-legacy-fd50de9d.js +0 -1
  211. h2o_wave-1.5.5.data/data/www/wave-static/gradle.js-legacy-12f8da46.js +0 -1
  212. h2o_wave-1.5.5.data/data/www/wave-static/graphql-legacy-bd4f3e68.js +0 -1
  213. h2o_wave-1.5.5.data/data/www/wave-static/graphql.js-legacy-dd8ef285.js +0 -1
  214. h2o_wave-1.5.5.data/data/www/wave-static/groovy-legacy-fa32d1bf.js +0 -1
  215. h2o_wave-1.5.5.data/data/www/wave-static/groovy.js-legacy-b40cf44b.js +0 -1
  216. h2o_wave-1.5.5.data/data/www/wave-static/haml-legacy-31e1d1f0.js +0 -1
  217. h2o_wave-1.5.5.data/data/www/wave-static/haml.js-legacy-407349b5.js +0 -1
  218. h2o_wave-1.5.5.data/data/www/wave-static/handlebars-legacy-b82c2117.js +0 -1
  219. h2o_wave-1.5.5.data/data/www/wave-static/handlebars.js-legacy-32154186.js +0 -1
  220. h2o_wave-1.5.5.data/data/www/wave-static/haskell-684abd54.js +0 -1
  221. h2o_wave-1.5.5.data/data/www/wave-static/haskell-legacy-1f9ea37e.js +0 -1
  222. h2o_wave-1.5.5.data/data/www/wave-static/haskell.js-legacy-c083992a.js +0 -1
  223. h2o_wave-1.5.5.data/data/www/wave-static/haxe-legacy-385cdb6e.js +0 -1
  224. h2o_wave-1.5.5.data/data/www/wave-static/haxe.js-legacy-22b0ce92.js +0 -1
  225. h2o_wave-1.5.5.data/data/www/wave-static/hsp-legacy-761cba7c.js +0 -1
  226. h2o_wave-1.5.5.data/data/www/wave-static/hsp.js-legacy-f560601f.js +0 -1
  227. h2o_wave-1.5.5.data/data/www/wave-static/http-legacy-c5692273.js +0 -1
  228. h2o_wave-1.5.5.data/data/www/wave-static/http.js-legacy-46e83a90.js +0 -1
  229. h2o_wave-1.5.5.data/data/www/wave-static/hy-legacy-fe783a59.js +0 -1
  230. h2o_wave-1.5.5.data/data/www/wave-static/hy.js-legacy-a5f2ea46.js +0 -1
  231. h2o_wave-1.5.5.data/data/www/wave-static/index-310adf54.js +0 -1
  232. h2o_wave-1.5.5.data/data/www/wave-static/index-5d40e5e8.js +0 -1
  233. h2o_wave-1.5.5.data/data/www/wave-static/index-8d58024e.js +0 -1
  234. h2o_wave-1.5.5.data/data/www/wave-static/index-d142d151.js +0 -40
  235. h2o_wave-1.5.5.data/data/www/wave-static/index-d907c76b.js +0 -27
  236. h2o_wave-1.5.5.data/data/www/wave-static/index-legacy-074c945a.js +0 -27
  237. h2o_wave-1.5.5.data/data/www/wave-static/index-legacy-39d17cd0.js +0 -1
  238. h2o_wave-1.5.5.data/data/www/wave-static/index-legacy-7034fa46.js +0 -1
  239. h2o_wave-1.5.5.data/data/www/wave-static/index-legacy-b525a717.js +0 -1
  240. h2o_wave-1.5.5.data/data/www/wave-static/index-legacy-b5d3e984.js +0 -1
  241. h2o_wave-1.5.5.data/data/www/wave-static/index-legacy-d32e8de0.js +0 -1
  242. h2o_wave-1.5.5.data/data/www/wave-static/index-legacy-e245dc5b.js +0 -1
  243. h2o_wave-1.5.5.data/data/www/wave-static/inform7-legacy-f30b46a9.js +0 -1
  244. h2o_wave-1.5.5.data/data/www/wave-static/inform7.js-legacy-5bcf9ac4.js +0 -1
  245. h2o_wave-1.5.5.data/data/www/wave-static/ini-legacy-bfd2e00a.js +0 -1
  246. h2o_wave-1.5.5.data/data/www/wave-static/ini.js-legacy-bed1832c.js +0 -1
  247. h2o_wave-1.5.5.data/data/www/wave-static/irpf90-legacy-cba8050e.js +0 -1
  248. h2o_wave-1.5.5.data/data/www/wave-static/irpf90.js-legacy-6a2f3647.js +0 -1
  249. h2o_wave-1.5.5.data/data/www/wave-static/isbl-legacy-80fad5e6.js +0 -1
  250. h2o_wave-1.5.5.data/data/www/wave-static/isbl.js-legacy-620b16da.js +0 -1
  251. h2o_wave-1.5.5.data/data/www/wave-static/java-09cf3d63.js +0 -1
  252. h2o_wave-1.5.5.data/data/www/wave-static/java-legacy-9efe1586.js +0 -1
  253. h2o_wave-1.5.5.data/data/www/wave-static/java.js-legacy-e3daca00.js +0 -1
  254. h2o_wave-1.5.5.data/data/www/wave-static/javascript-64c45876.js +0 -1
  255. h2o_wave-1.5.5.data/data/www/wave-static/javascript-legacy-61645320.js +0 -1
  256. h2o_wave-1.5.5.data/data/www/wave-static/javascript.js-legacy-fb7dcd00.js +0 -1
  257. h2o_wave-1.5.5.data/data/www/wave-static/jboss-cli-legacy-c54acb77.js +0 -1
  258. h2o_wave-1.5.5.data/data/www/wave-static/jboss-cli.js-legacy-8acb35a3.js +0 -1
  259. h2o_wave-1.5.5.data/data/www/wave-static/json-legacy-949e0abc.js +0 -1
  260. h2o_wave-1.5.5.data/data/www/wave-static/json.js-legacy-34030651.js +0 -1
  261. h2o_wave-1.5.5.data/data/www/wave-static/julia-legacy-cb66b1d6.js +0 -1
  262. h2o_wave-1.5.5.data/data/www/wave-static/julia-repl-legacy-e8f571f8.js +0 -1
  263. h2o_wave-1.5.5.data/data/www/wave-static/julia-repl.js-legacy-2b038172.js +0 -1
  264. h2o_wave-1.5.5.data/data/www/wave-static/julia.js-legacy-528e9758.js +0 -1
  265. h2o_wave-1.5.5.data/data/www/wave-static/kotlin-ecc2b053.js +0 -1
  266. h2o_wave-1.5.5.data/data/www/wave-static/kotlin-legacy-b7d88556.js +0 -1
  267. h2o_wave-1.5.5.data/data/www/wave-static/kotlin.js-legacy-585f113e.js +0 -1
  268. h2o_wave-1.5.5.data/data/www/wave-static/lasso-legacy-23b2cac7.js +0 -1
  269. h2o_wave-1.5.5.data/data/www/wave-static/lasso.js-legacy-35e2ce52.js +0 -1
  270. h2o_wave-1.5.5.data/data/www/wave-static/latex-legacy-ea0bca01.js +0 -1
  271. h2o_wave-1.5.5.data/data/www/wave-static/latex.js-legacy-4c4eb187.js +0 -1
  272. h2o_wave-1.5.5.data/data/www/wave-static/ldif-legacy-740583f6.js +0 -1
  273. h2o_wave-1.5.5.data/data/www/wave-static/ldif.js-legacy-9d607a65.js +0 -1
  274. h2o_wave-1.5.5.data/data/www/wave-static/leaf-legacy-6ebff67e.js +0 -1
  275. h2o_wave-1.5.5.data/data/www/wave-static/leaf.js-legacy-af34a95d.js +0 -1
  276. h2o_wave-1.5.5.data/data/www/wave-static/less-legacy-3b0f9247.js +0 -1
  277. h2o_wave-1.5.5.data/data/www/wave-static/less.js-legacy-4181774f.js +0 -1
  278. h2o_wave-1.5.5.data/data/www/wave-static/lisp-legacy-9d646e30.js +0 -1
  279. h2o_wave-1.5.5.data/data/www/wave-static/lisp.js-legacy-4aea7ef1.js +0 -1
  280. h2o_wave-1.5.5.data/data/www/wave-static/livecodeserver-legacy-baca528c.js +0 -1
  281. h2o_wave-1.5.5.data/data/www/wave-static/livecodeserver.js-legacy-28dc36a8.js +0 -1
  282. h2o_wave-1.5.5.data/data/www/wave-static/livescript-legacy-3b86813d.js +0 -1
  283. h2o_wave-1.5.5.data/data/www/wave-static/livescript.js-legacy-b6170434.js +0 -1
  284. h2o_wave-1.5.5.data/data/www/wave-static/llvm-legacy-c03466b7.js +0 -1
  285. h2o_wave-1.5.5.data/data/www/wave-static/llvm.js-legacy-4e7ca67f.js +0 -1
  286. h2o_wave-1.5.5.data/data/www/wave-static/lsl-legacy-c50ab34e.js +0 -1
  287. h2o_wave-1.5.5.data/data/www/wave-static/lsl.js-legacy-09ecfc97.js +0 -1
  288. h2o_wave-1.5.5.data/data/www/wave-static/lua-legacy-f378dadf.js +0 -1
  289. h2o_wave-1.5.5.data/data/www/wave-static/lua.js-legacy-1d4fb04f.js +0 -1
  290. h2o_wave-1.5.5.data/data/www/wave-static/makefile-legacy-e89bc6a8.js +0 -1
  291. h2o_wave-1.5.5.data/data/www/wave-static/makefile.js-legacy-13039a48.js +0 -1
  292. h2o_wave-1.5.5.data/data/www/wave-static/markdown-legacy-37726c23.js +0 -1
  293. h2o_wave-1.5.5.data/data/www/wave-static/markdown.js-legacy-c7bd0271.js +0 -1
  294. h2o_wave-1.5.5.data/data/www/wave-static/markdownCodeSyntaxHighlighting-legacy-5eb502c8.js +0 -1
  295. h2o_wave-1.5.5.data/data/www/wave-static/mathematica-legacy-82f07096.js +0 -1
  296. h2o_wave-1.5.5.data/data/www/wave-static/mathematica.js-legacy-b06a64a8.js +0 -1
  297. h2o_wave-1.5.5.data/data/www/wave-static/matlab-legacy-00a713c5.js +0 -1
  298. h2o_wave-1.5.5.data/data/www/wave-static/matlab.js-legacy-a72af2d2.js +0 -1
  299. h2o_wave-1.5.5.data/data/www/wave-static/maxima-legacy-13f3e9a4.js +0 -1
  300. h2o_wave-1.5.5.data/data/www/wave-static/maxima.js-legacy-9fef8b73.js +0 -1
  301. h2o_wave-1.5.5.data/data/www/wave-static/mel-legacy-195785c7.js +0 -1
  302. h2o_wave-1.5.5.data/data/www/wave-static/mel.js-legacy-1933afd0.js +0 -1
  303. h2o_wave-1.5.5.data/data/www/wave-static/mercury-legacy-3675b888.js +0 -1
  304. h2o_wave-1.5.5.data/data/www/wave-static/mercury.js-legacy-dac0af55.js +0 -1
  305. h2o_wave-1.5.5.data/data/www/wave-static/mipsasm-legacy-0545684f.js +0 -1
  306. h2o_wave-1.5.5.data/data/www/wave-static/mipsasm.js-legacy-a4a0f717.js +0 -1
  307. h2o_wave-1.5.5.data/data/www/wave-static/mizar-legacy-6ec03e5a.js +0 -1
  308. h2o_wave-1.5.5.data/data/www/wave-static/mizar.js-legacy-2c621b1b.js +0 -1
  309. h2o_wave-1.5.5.data/data/www/wave-static/mojolicious-legacy-c44a8d5c.js +0 -1
  310. h2o_wave-1.5.5.data/data/www/wave-static/mojolicious.js-legacy-bb29890b.js +0 -1
  311. h2o_wave-1.5.5.data/data/www/wave-static/monkey-legacy-85108211.js +0 -1
  312. h2o_wave-1.5.5.data/data/www/wave-static/monkey.js-legacy-d652be10.js +0 -1
  313. h2o_wave-1.5.5.data/data/www/wave-static/moonscript-legacy-163fba1c.js +0 -1
  314. h2o_wave-1.5.5.data/data/www/wave-static/moonscript.js-legacy-8974fdaa.js +0 -1
  315. h2o_wave-1.5.5.data/data/www/wave-static/n1ql-legacy-4d976c83.js +0 -1
  316. h2o_wave-1.5.5.data/data/www/wave-static/n1ql.js-legacy-a9200fbe.js +0 -1
  317. h2o_wave-1.5.5.data/data/www/wave-static/nestedtext-legacy-a50f533d.js +0 -1
  318. h2o_wave-1.5.5.data/data/www/wave-static/nestedtext.js-legacy-ea2d840f.js +0 -1
  319. h2o_wave-1.5.5.data/data/www/wave-static/nginx-legacy-7b147fb4.js +0 -1
  320. h2o_wave-1.5.5.data/data/www/wave-static/nginx.js-legacy-7affba9c.js +0 -1
  321. h2o_wave-1.5.5.data/data/www/wave-static/nim-legacy-810f7f20.js +0 -1
  322. h2o_wave-1.5.5.data/data/www/wave-static/nim.js-legacy-c483e07d.js +0 -1
  323. h2o_wave-1.5.5.data/data/www/wave-static/nix-legacy-0ac67831.js +0 -1
  324. h2o_wave-1.5.5.data/data/www/wave-static/nix.js-legacy-20a97128.js +0 -1
  325. h2o_wave-1.5.5.data/data/www/wave-static/node-repl-legacy-3cc0a4ed.js +0 -1
  326. h2o_wave-1.5.5.data/data/www/wave-static/node-repl.js-legacy-71217a03.js +0 -1
  327. h2o_wave-1.5.5.data/data/www/wave-static/nsis-legacy-0996463b.js +0 -1
  328. h2o_wave-1.5.5.data/data/www/wave-static/nsis.js-legacy-b3d407d9.js +0 -1
  329. h2o_wave-1.5.5.data/data/www/wave-static/objectivec-legacy-b8c0f3f6.js +0 -1
  330. h2o_wave-1.5.5.data/data/www/wave-static/objectivec.js-legacy-cf10ec30.js +0 -1
  331. h2o_wave-1.5.5.data/data/www/wave-static/ocaml-legacy-de8a6e50.js +0 -1
  332. h2o_wave-1.5.5.data/data/www/wave-static/ocaml.js-legacy-3557e455.js +0 -1
  333. h2o_wave-1.5.5.data/data/www/wave-static/openscad-legacy-2f475eb4.js +0 -1
  334. h2o_wave-1.5.5.data/data/www/wave-static/openscad.js-legacy-f21eadc1.js +0 -1
  335. h2o_wave-1.5.5.data/data/www/wave-static/oxygene-legacy-ed2449bf.js +0 -1
  336. h2o_wave-1.5.5.data/data/www/wave-static/oxygene.js-legacy-9e0c41e8.js +0 -1
  337. h2o_wave-1.5.5.data/data/www/wave-static/parser3-legacy-35dc0290.js +0 -1
  338. h2o_wave-1.5.5.data/data/www/wave-static/parser3.js-legacy-28f35bcd.js +0 -1
  339. h2o_wave-1.5.5.data/data/www/wave-static/perl-legacy-df61e3fe.js +0 -1
  340. h2o_wave-1.5.5.data/data/www/wave-static/perl.js-legacy-b46e6579.js +0 -1
  341. h2o_wave-1.5.5.data/data/www/wave-static/pf-legacy-fb960280.js +0 -1
  342. h2o_wave-1.5.5.data/data/www/wave-static/pf.js-legacy-5ad82425.js +0 -1
  343. h2o_wave-1.5.5.data/data/www/wave-static/pgsql-legacy-f8081b81.js +0 -1
  344. h2o_wave-1.5.5.data/data/www/wave-static/pgsql.js-legacy-2857274b.js +0 -1
  345. h2o_wave-1.5.5.data/data/www/wave-static/php-99ab1efa.js +0 -1
  346. h2o_wave-1.5.5.data/data/www/wave-static/php-legacy-a0de235a.js +0 -1
  347. h2o_wave-1.5.5.data/data/www/wave-static/php-template-legacy-b106744b.js +0 -1
  348. h2o_wave-1.5.5.data/data/www/wave-static/php-template.js-legacy-6b69c542.js +0 -1
  349. h2o_wave-1.5.5.data/data/www/wave-static/php.js-legacy-bab4b322.js +0 -1
  350. h2o_wave-1.5.5.data/data/www/wave-static/plaintext-legacy-26afd1de.js +0 -1
  351. h2o_wave-1.5.5.data/data/www/wave-static/plaintext.js-legacy-ca5ac114.js +0 -1
  352. h2o_wave-1.5.5.data/data/www/wave-static/polyfills-legacy-41d83f3d.js +0 -1
  353. h2o_wave-1.5.5.data/data/www/wave-static/pony-legacy-e791b68d.js +0 -1
  354. h2o_wave-1.5.5.data/data/www/wave-static/pony.js-legacy-86642fef.js +0 -1
  355. h2o_wave-1.5.5.data/data/www/wave-static/powershell-legacy-2845386f.js +0 -1
  356. h2o_wave-1.5.5.data/data/www/wave-static/powershell.js-legacy-2f1b4c33.js +0 -1
  357. h2o_wave-1.5.5.data/data/www/wave-static/processing-legacy-634d78a6.js +0 -1
  358. h2o_wave-1.5.5.data/data/www/wave-static/processing.js-legacy-ad96f7d3.js +0 -1
  359. h2o_wave-1.5.5.data/data/www/wave-static/profile-legacy-f197c854.js +0 -1
  360. h2o_wave-1.5.5.data/data/www/wave-static/profile.js-legacy-963cee70.js +0 -1
  361. h2o_wave-1.5.5.data/data/www/wave-static/prolog-legacy-57bb9d2e.js +0 -1
  362. h2o_wave-1.5.5.data/data/www/wave-static/prolog.js-legacy-2d42efd9.js +0 -1
  363. h2o_wave-1.5.5.data/data/www/wave-static/properties-legacy-bd152a41.js +0 -1
  364. h2o_wave-1.5.5.data/data/www/wave-static/properties.js-legacy-82597745.js +0 -1
  365. h2o_wave-1.5.5.data/data/www/wave-static/protobuf-legacy-7cea966d.js +0 -1
  366. h2o_wave-1.5.5.data/data/www/wave-static/protobuf.js-legacy-9ba71dfc.js +0 -1
  367. h2o_wave-1.5.5.data/data/www/wave-static/puppet-legacy-8d3fd18d.js +0 -1
  368. h2o_wave-1.5.5.data/data/www/wave-static/puppet.js-legacy-207e72ad.js +0 -1
  369. h2o_wave-1.5.5.data/data/www/wave-static/purebasic-legacy-7df934eb.js +0 -1
  370. h2o_wave-1.5.5.data/data/www/wave-static/purebasic.js-legacy-b9c1a0b7.js +0 -1
  371. h2o_wave-1.5.5.data/data/www/wave-static/python-ed0affe4.js +0 -1
  372. h2o_wave-1.5.5.data/data/www/wave-static/python-legacy-a5e15ff7.js +0 -1
  373. h2o_wave-1.5.5.data/data/www/wave-static/python-repl-legacy-ebfe8102.js +0 -1
  374. h2o_wave-1.5.5.data/data/www/wave-static/python-repl.js-legacy-3d643d30.js +0 -1
  375. h2o_wave-1.5.5.data/data/www/wave-static/python.js-legacy-ca8aa2f6.js +0 -1
  376. h2o_wave-1.5.5.data/data/www/wave-static/q-legacy-a70f3c5e.js +0 -1
  377. h2o_wave-1.5.5.data/data/www/wave-static/q.js-legacy-acd6d9ff.js +0 -1
  378. h2o_wave-1.5.5.data/data/www/wave-static/qml-legacy-3d8d2a20.js +0 -1
  379. h2o_wave-1.5.5.data/data/www/wave-static/qml.js-legacy-294ccad7.js +0 -1
  380. h2o_wave-1.5.5.data/data/www/wave-static/r-legacy-038ccc64.js +0 -1
  381. h2o_wave-1.5.5.data/data/www/wave-static/r.js-legacy-592f4f3e.js +0 -1
  382. h2o_wave-1.5.5.data/data/www/wave-static/reasonml-legacy-49e0c6d7.js +0 -1
  383. h2o_wave-1.5.5.data/data/www/wave-static/reasonml.js-legacy-774323d4.js +0 -1
  384. h2o_wave-1.5.5.data/data/www/wave-static/rib-legacy-4d9f4e24.js +0 -1
  385. h2o_wave-1.5.5.data/data/www/wave-static/rib.js-legacy-cc2a55d3.js +0 -1
  386. h2o_wave-1.5.5.data/data/www/wave-static/roboconf-legacy-4d335fe3.js +0 -1
  387. h2o_wave-1.5.5.data/data/www/wave-static/roboconf.js-legacy-cbc539b3.js +0 -1
  388. h2o_wave-1.5.5.data/data/www/wave-static/routeros-legacy-1b7f3b07.js +0 -1
  389. h2o_wave-1.5.5.data/data/www/wave-static/routeros.js-legacy-f3ebc0ee.js +0 -1
  390. h2o_wave-1.5.5.data/data/www/wave-static/rsl-legacy-d2a3816f.js +0 -1
  391. h2o_wave-1.5.5.data/data/www/wave-static/rsl.js-legacy-4ac3a752.js +0 -1
  392. h2o_wave-1.5.5.data/data/www/wave-static/ruby-f28e1672.js +0 -1
  393. h2o_wave-1.5.5.data/data/www/wave-static/ruby-legacy-87033cc6.js +0 -1
  394. h2o_wave-1.5.5.data/data/www/wave-static/ruby.js-legacy-c377b0a2.js +0 -1
  395. h2o_wave-1.5.5.data/data/www/wave-static/ruleslanguage-legacy-563acc79.js +0 -1
  396. h2o_wave-1.5.5.data/data/www/wave-static/ruleslanguage.js-legacy-7788c137.js +0 -1
  397. h2o_wave-1.5.5.data/data/www/wave-static/rust-legacy-cfa79907.js +0 -1
  398. h2o_wave-1.5.5.data/data/www/wave-static/rust.js-legacy-8551e6c6.js +0 -1
  399. h2o_wave-1.5.5.data/data/www/wave-static/sas-legacy-b7f61485.js +0 -1
  400. h2o_wave-1.5.5.data/data/www/wave-static/sas.js-legacy-3ecb030f.js +0 -1
  401. h2o_wave-1.5.5.data/data/www/wave-static/scala-legacy-bc4d7d83.js +0 -1
  402. h2o_wave-1.5.5.data/data/www/wave-static/scala.js-legacy-f0766754.js +0 -1
  403. h2o_wave-1.5.5.data/data/www/wave-static/scheme-legacy-ae9eb833.js +0 -1
  404. h2o_wave-1.5.5.data/data/www/wave-static/scheme.js-legacy-bb5f91cf.js +0 -1
  405. h2o_wave-1.5.5.data/data/www/wave-static/scilab-515e5499.js +0 -1
  406. h2o_wave-1.5.5.data/data/www/wave-static/scilab-legacy-bf4e0e20.js +0 -1
  407. h2o_wave-1.5.5.data/data/www/wave-static/scilab.js-legacy-c8e86aa4.js +0 -1
  408. h2o_wave-1.5.5.data/data/www/wave-static/scss-legacy-06a0caa8.js +0 -1
  409. h2o_wave-1.5.5.data/data/www/wave-static/scss.js-legacy-0d92485a.js +0 -1
  410. h2o_wave-1.5.5.data/data/www/wave-static/shell-legacy-27061ecc.js +0 -1
  411. h2o_wave-1.5.5.data/data/www/wave-static/shell.js-legacy-ba1e4f51.js +0 -1
  412. h2o_wave-1.5.5.data/data/www/wave-static/smali-legacy-82101398.js +0 -1
  413. h2o_wave-1.5.5.data/data/www/wave-static/smali.js-legacy-48ee6fea.js +0 -1
  414. h2o_wave-1.5.5.data/data/www/wave-static/smalltalk-legacy-0b09a010.js +0 -1
  415. h2o_wave-1.5.5.data/data/www/wave-static/smalltalk.js-legacy-191fce3b.js +0 -1
  416. h2o_wave-1.5.5.data/data/www/wave-static/sml-legacy-a93386df.js +0 -1
  417. h2o_wave-1.5.5.data/data/www/wave-static/sml.js-legacy-81ada55d.js +0 -1
  418. h2o_wave-1.5.5.data/data/www/wave-static/sqf-legacy-65fc5dbe.js +0 -1
  419. h2o_wave-1.5.5.data/data/www/wave-static/sqf.js-legacy-832cbd50.js +0 -1
  420. h2o_wave-1.5.5.data/data/www/wave-static/sql-legacy-40280984.js +0 -1
  421. h2o_wave-1.5.5.data/data/www/wave-static/sql.js-legacy-ddeb0313.js +0 -1
  422. h2o_wave-1.5.5.data/data/www/wave-static/stan-legacy-d393acc4.js +0 -1
  423. h2o_wave-1.5.5.data/data/www/wave-static/stan.js-legacy-22c64211.js +0 -1
  424. h2o_wave-1.5.5.data/data/www/wave-static/stata-legacy-3a11277c.js +0 -1
  425. h2o_wave-1.5.5.data/data/www/wave-static/stata.js-legacy-3609a6e2.js +0 -1
  426. h2o_wave-1.5.5.data/data/www/wave-static/step21-legacy-c015564c.js +0 -1
  427. h2o_wave-1.5.5.data/data/www/wave-static/step21.js-legacy-a366849b.js +0 -1
  428. h2o_wave-1.5.5.data/data/www/wave-static/stylus-legacy-484c6475.js +0 -1
  429. h2o_wave-1.5.5.data/data/www/wave-static/stylus.js-legacy-a9a443c8.js +0 -1
  430. h2o_wave-1.5.5.data/data/www/wave-static/subunit-d0913233.js +0 -1
  431. h2o_wave-1.5.5.data/data/www/wave-static/subunit-legacy-04174477.js +0 -1
  432. h2o_wave-1.5.5.data/data/www/wave-static/subunit.js-legacy-b0febb39.js +0 -1
  433. h2o_wave-1.5.5.data/data/www/wave-static/swift-legacy-9a2f6ea6.js +0 -1
  434. h2o_wave-1.5.5.data/data/www/wave-static/swift.js-legacy-be8b1add.js +0 -1
  435. h2o_wave-1.5.5.data/data/www/wave-static/taggerscript-legacy-7a8c4f55.js +0 -1
  436. h2o_wave-1.5.5.data/data/www/wave-static/taggerscript.js-legacy-1564e5fc.js +0 -1
  437. h2o_wave-1.5.5.data/data/www/wave-static/tap-legacy-740e2754.js +0 -1
  438. h2o_wave-1.5.5.data/data/www/wave-static/tap.js-legacy-e2533b5e.js +0 -1
  439. h2o_wave-1.5.5.data/data/www/wave-static/tcl-legacy-d44bff04.js +0 -1
  440. h2o_wave-1.5.5.data/data/www/wave-static/tcl.js-legacy-3a775553.js +0 -1
  441. h2o_wave-1.5.5.data/data/www/wave-static/thrift-legacy-a894b9c5.js +0 -1
  442. h2o_wave-1.5.5.data/data/www/wave-static/thrift.js-legacy-04379052.js +0 -1
  443. h2o_wave-1.5.5.data/data/www/wave-static/timer-legacy-42b42209.js +0 -1
  444. h2o_wave-1.5.5.data/data/www/wave-static/tp-legacy-7b1c6428.js +0 -1
  445. h2o_wave-1.5.5.data/data/www/wave-static/tp.js-legacy-ce6ac4d7.js +0 -1
  446. h2o_wave-1.5.5.data/data/www/wave-static/twig-legacy-b26311d2.js +0 -1
  447. h2o_wave-1.5.5.data/data/www/wave-static/twig.js-legacy-c4c7f67e.js +0 -1
  448. h2o_wave-1.5.5.data/data/www/wave-static/typescript-2bf0a83d.js +0 -1
  449. h2o_wave-1.5.5.data/data/www/wave-static/typescript-legacy-f2bd4ca8.js +0 -1
  450. h2o_wave-1.5.5.data/data/www/wave-static/typescript.js-legacy-50a3116c.js +0 -1
  451. h2o_wave-1.5.5.data/data/www/wave-static/useThemeProps-d88399c8.js +0 -1
  452. h2o_wave-1.5.5.data/data/www/wave-static/useThemeProps-legacy-49c49885.js +0 -1
  453. h2o_wave-1.5.5.data/data/www/wave-static/vala-legacy-67c71a44.js +0 -1
  454. h2o_wave-1.5.5.data/data/www/wave-static/vala.js-legacy-9027c5a2.js +0 -1
  455. h2o_wave-1.5.5.data/data/www/wave-static/vbnet-legacy-5c739611.js +0 -1
  456. h2o_wave-1.5.5.data/data/www/wave-static/vbnet.js-legacy-2757b7a5.js +0 -1
  457. h2o_wave-1.5.5.data/data/www/wave-static/vbscript-html-legacy-ac338707.js +0 -1
  458. h2o_wave-1.5.5.data/data/www/wave-static/vbscript-html.js-legacy-e00f0680.js +0 -1
  459. h2o_wave-1.5.5.data/data/www/wave-static/vbscript-legacy-87e05029.js +0 -1
  460. h2o_wave-1.5.5.data/data/www/wave-static/vbscript.js-legacy-99f3021b.js +0 -1
  461. h2o_wave-1.5.5.data/data/www/wave-static/vega-embed.module-a95e8444.js +0 -9
  462. h2o_wave-1.5.5.data/data/www/wave-static/vega-embed.module-legacy-3f604751.js +0 -12
  463. h2o_wave-1.5.5.data/data/www/wave-static/vega.module-08ee6a8e.js +0 -1
  464. h2o_wave-1.5.5.data/data/www/wave-static/vega.module-legacy-49dfb982.js +0 -1
  465. h2o_wave-1.5.5.data/data/www/wave-static/verilog-legacy-2ffb1cf4.js +0 -1
  466. h2o_wave-1.5.5.data/data/www/wave-static/verilog.js-legacy-f7f3d414.js +0 -1
  467. h2o_wave-1.5.5.data/data/www/wave-static/vhdl-legacy-56ad3d59.js +0 -1
  468. h2o_wave-1.5.5.data/data/www/wave-static/vhdl.js-legacy-ebe12a2b.js +0 -1
  469. h2o_wave-1.5.5.data/data/www/wave-static/vim-legacy-a5d4f7e8.js +0 -1
  470. h2o_wave-1.5.5.data/data/www/wave-static/vim.js-legacy-68b8fde0.js +0 -1
  471. h2o_wave-1.5.5.data/data/www/wave-static/wasm-legacy-a322e0a9.js +0 -1
  472. h2o_wave-1.5.5.data/data/www/wave-static/wasm.js-legacy-4ee0fe5c.js +0 -1
  473. h2o_wave-1.5.5.data/data/www/wave-static/wren-legacy-c8da3971.js +0 -1
  474. h2o_wave-1.5.5.data/data/www/wave-static/wren.js-legacy-111d56cd.js +0 -1
  475. h2o_wave-1.5.5.data/data/www/wave-static/x86asm-legacy-83e00fa4.js +0 -1
  476. h2o_wave-1.5.5.data/data/www/wave-static/x86asm.js-legacy-ac9e945d.js +0 -1
  477. h2o_wave-1.5.5.data/data/www/wave-static/xl-legacy-42877465.js +0 -1
  478. h2o_wave-1.5.5.data/data/www/wave-static/xl.js-legacy-2f688509.js +0 -1
  479. h2o_wave-1.5.5.data/data/www/wave-static/xml-legacy-eea72490.js +0 -1
  480. h2o_wave-1.5.5.data/data/www/wave-static/xml.js-legacy-15f629e4.js +0 -1
  481. h2o_wave-1.5.5.data/data/www/wave-static/xquery-legacy-554d6921.js +0 -1
  482. h2o_wave-1.5.5.data/data/www/wave-static/xquery.js-legacy-1136eb37.js +0 -1
  483. h2o_wave-1.5.5.data/data/www/wave-static/yaml-legacy-5fac3622.js +0 -1
  484. h2o_wave-1.5.5.data/data/www/wave-static/yaml.js-legacy-fd5075f2.js +0 -1
  485. h2o_wave-1.5.5.data/data/www/wave-static/zephir-legacy-56a6ea33.js +0 -1
  486. h2o_wave-1.5.5.data/data/www/wave-static/zephir.js-legacy-cf8f00c6.js +0 -1
  487. h2o_wave-1.5.5.dist-info/RECORD +0 -852
  488. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/project_templates/README.md +0 -0
  489. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/project_templates/chat.py +0 -0
  490. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/project_templates/header.py +0 -0
  491. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/project_templates/header_nav.py +0 -0
  492. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/project_templates/header_sidebar_nav.py +0 -0
  493. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/project_templates/hello_world.py +0 -0
  494. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/project_templates/sidebar_nav.py +0 -0
  495. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/favicon.ico +0 -0
  496. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/logo192.png +0 -0
  497. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/logo512.png +0 -0
  498. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/manifest.json +0 -0
  499. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/robots.txt +0 -0
  500. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/1c-3f7bb63f.js +0 -0
  501. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/1c.js-880a5fb5.js +0 -0
  502. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/Inter-Black-8b21d5be.woff +0 -0
  503. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/Inter-Black-fc10113c.woff2 +0 -0
  504. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/Inter-Bold-3e242080.woff +0 -0
  505. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/Inter-Bold-c63158ba.woff2 +0 -0
  506. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/Inter-ExtraBold-307d9809.woff2 +0 -0
  507. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/Inter-ExtraBold-f053602c.woff +0 -0
  508. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/Inter-ExtraLight-015dad27.woff +0 -0
  509. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/Inter-ExtraLight-b6cd094a.woff2 +0 -0
  510. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/Inter-Light-36b86832.woff2 +0 -0
  511. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/Inter-Light-4871aed0.woff +0 -0
  512. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/Inter-Medium-1b498b95.woff2 +0 -0
  513. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/Inter-Medium-53deda46.woff +0 -0
  514. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/Inter-Regular-d612f121.woff2 +0 -0
  515. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/Inter-Regular-ef1f23c0.woff +0 -0
  516. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/Inter-SemiBold-15226129.woff2 +0 -0
  517. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/Inter-SemiBold-653fed7a.woff +0 -0
  518. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/Inter-Thin-77d96c1c.woff2 +0 -0
  519. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/Inter-Thin-e6bced8e.woff +0 -0
  520. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/abnf-13e3d3e9.js +0 -0
  521. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/abnf.js-4710a9b6.js +0 -0
  522. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/accesslog-0333fe45.js +0 -0
  523. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/accesslog.js-c69c4014.js +0 -0
  524. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/actionscript-970abe00.js +0 -0
  525. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/actionscript.js-a23662e0.js +0 -0
  526. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/angelscript-c4bcdcf1.js +0 -0
  527. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/angelscript.js-b9004b30.js +0 -0
  528. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/apache-69229b81.js +0 -0
  529. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/apache.js-53f92aaa.js +0 -0
  530. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/applescript-18053a85.js +0 -0
  531. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/applescript.js-167660b4.js +0 -0
  532. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/arcade-6075ac5c.js +0 -0
  533. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/arcade.js-d02d2998.js +0 -0
  534. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/arduino-d57cf405.js +0 -0
  535. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/arduino.js-37a85c8f.js +0 -0
  536. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/armasm-1f1daec6.js +0 -0
  537. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/armasm.js-7de2e829.js +0 -0
  538. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/asciidoc-c2ce0198.js +0 -0
  539. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/asciidoc.js-955e0d47.js +0 -0
  540. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/aspectj-65addc65.js +0 -0
  541. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/aspectj.js-de303d21.js +0 -0
  542. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/autohotkey-083cf3c0.js +0 -0
  543. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/autohotkey.js-902453c5.js +0 -0
  544. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/autoit-01458b60.js +0 -0
  545. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/autoit.js-e3487153.js +0 -0
  546. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/avrasm-9c20c591.js +0 -0
  547. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/avrasm.js-9296929c.js +0 -0
  548. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/awk-3a9cdcff.js +0 -0
  549. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/awk.js-d895eb86.js +0 -0
  550. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/axapta-1e6dd9a4.js +0 -0
  551. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/axapta.js-7a94aded.js +0 -0
  552. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/basic-ae19ba84.js +0 -0
  553. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/basic.js-5285fc1c.js +0 -0
  554. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/bnf-6d48c389.js +0 -0
  555. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/bnf.js-49945ebf.js +0 -0
  556. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/brainfuck-450234e6.js +0 -0
  557. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/brainfuck.js-3ce3a6cd.js +0 -0
  558. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/c-f46565f0.js +0 -0
  559. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/c.js-e57dbb84.js +0 -0
  560. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/cal-68febb00.js +0 -0
  561. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/cal.js-0c9d24c1.js +0 -0
  562. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/capnproto-42c0b6ff.js +0 -0
  563. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/capnproto.js-f123775c.js +0 -0
  564. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/ceylon-7044c346.js +0 -0
  565. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/ceylon.js-feb867e3.js +0 -0
  566. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/clean-21378384.js +0 -0
  567. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/clean.js-56633a25.js +0 -0
  568. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/clojure-202ef751.js +0 -0
  569. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/clojure-repl-d5a2be34.js +0 -0
  570. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/clojure-repl.js-0679d9f5.js +0 -0
  571. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/clojure.js-242a2f04.js +0 -0
  572. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/cmake-b4ce297d.js +0 -0
  573. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/cmake.js-7cccedf6.js +0 -0
  574. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/coffeescript-9a445365.js +0 -0
  575. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/coffeescript.js-db28b498.js +0 -0
  576. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/coq-67e06e00.js +0 -0
  577. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/coq.js-bc1dedb0.js +0 -0
  578. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/cos-52897118.js +0 -0
  579. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/cos.js-9f2c4957.js +0 -0
  580. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/cpp-aa04b0db.js +0 -0
  581. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/cpp.js-e637b2f4.js +0 -0
  582. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/crmsh-f2834950.js +0 -0
  583. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/crmsh.js-f8602207.js +0 -0
  584. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/crystal-164453c2.js +0 -0
  585. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/crystal.js-74828bd0.js +0 -0
  586. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/csharp-dda82316.js +0 -0
  587. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/csharp.js-56c58434.js +0 -0
  588. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/csp-b9668226.js +0 -0
  589. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/csp.js-eb7d3a88.js +0 -0
  590. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/css-5d2c9b40.js +0 -0
  591. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/css.js-62b267ee.js +0 -0
  592. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/delphi-20c87528.js +0 -0
  593. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/delphi.js-e5cd150c.js +0 -0
  594. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/diff-e6456a67.js +0 -0
  595. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/diff.js-5568e9f4.js +0 -0
  596. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/django-49d52be8.js +0 -0
  597. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/django.js-e38658c2.js +0 -0
  598. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/dns-5a205646.js +0 -0
  599. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/dns.js-63bf7d1f.js +0 -0
  600. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/dockerfile-33bf66d7.js +0 -0
  601. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/dockerfile.js-cccb49a0.js +0 -0
  602. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/dos-6d5191f9.js +0 -0
  603. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/dos.js-15b97873.js +0 -0
  604. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/dsconfig-e810963a.js +0 -0
  605. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/dsconfig.js-7c0a57b6.js +0 -0
  606. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/dts-8c60a07f.js +0 -0
  607. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/dts.js-80c29b59.js +0 -0
  608. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/dust-82a2434b.js +0 -0
  609. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/dust.js-c265de6d.js +0 -0
  610. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/ebnf-c82500bd.js +0 -0
  611. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/ebnf.js-7696d4d1.js +0 -0
  612. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/elm-b0baa83b.js +0 -0
  613. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/elm.js-065d04eb.js +0 -0
  614. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/erb-5b2c18cb.js +0 -0
  615. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/erb.js-5bf017f1.js +0 -0
  616. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/erlang-repl-4327c962.js +0 -0
  617. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/erlang-repl.js-1e32a7a4.js +0 -0
  618. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/excel-b748334a.js +0 -0
  619. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/excel.js-eacd8da9.js +0 -0
  620. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/fix-2076861f.js +0 -0
  621. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/fix.js-ea8e2c05.js +0 -0
  622. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/flix-d6821016.js +0 -0
  623. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/flix.js-039dc4da.js +0 -0
  624. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/fortran-93288908.js +0 -0
  625. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/fortran.js-e77c10a9.js +0 -0
  626. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/fsharp-004140a7.js +0 -0
  627. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/fsharp.js-5eebd197.js +0 -0
  628. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/gams-2364286e.js +0 -0
  629. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/gams.js-74a57ad8.js +0 -0
  630. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/gauss-526e2980.js +0 -0
  631. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/gauss.js-8fef6743.js +0 -0
  632. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/gcode-fcf823ff.js +0 -0
  633. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/gcode.js-cbfb4164.js +0 -0
  634. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/gherkin-7933969a.js +0 -0
  635. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/gherkin.js-794fab5c.js +0 -0
  636. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/glsl-1880d3bf.js +0 -0
  637. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/glsl.js-a2ed8800.js +0 -0
  638. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/gml-375bdc8f.js +0 -0
  639. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/gml.js-cda64410.js +0 -0
  640. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/go-6477af85.js +0 -0
  641. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/go.js-bc860eea.js +0 -0
  642. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/golo-a8b30a3b.js +0 -0
  643. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/golo.js-2e22bcec.js +0 -0
  644. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/gradle-d007f0f8.js +0 -0
  645. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/gradle.js-c114b7cd.js +0 -0
  646. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/graphql-0429227f.js +0 -0
  647. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/graphql.js-efb48106.js +0 -0
  648. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/groovy-83606e93.js +0 -0
  649. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/groovy.js-f30f8566.js +0 -0
  650. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/haml-81c61df4.js +0 -0
  651. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/haml.js-3c12d6c6.js +0 -0
  652. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/handlebars-dffd1fe9.js +0 -0
  653. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/handlebars.js-b804f107.js +0 -0
  654. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/haxe-f014280d.js +0 -0
  655. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/haxe.js-efbaab17.js +0 -0
  656. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/hsp-052b1a9a.js +0 -0
  657. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/hsp.js-1904ee6c.js +0 -0
  658. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/http-7fc81321.js +0 -0
  659. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/http.js-3552549b.js +0 -0
  660. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/hy-3c07056d.js +0 -0
  661. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/hy.js-2a8401d6.js +0 -0
  662. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/index-17424b44.js +0 -0
  663. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/index-be05b8a6.css +0 -0
  664. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/inform7-45a494ad.js +0 -0
  665. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/inform7.js-1bb293dc.js +0 -0
  666. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/ini-565c1ab6.js +0 -0
  667. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/ini.js-4c40a00d.js +0 -0
  668. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/irpf90-eea6e6cc.js +0 -0
  669. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/irpf90.js-dcf62e5f.js +0 -0
  670. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/isbl-7e0cec9a.js +0 -0
  671. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/isbl.js-b30a56d1.js +0 -0
  672. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/jboss-cli-a89c5614.js +0 -0
  673. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/jboss-cli.js-fc4be0ce.js +0 -0
  674. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/json-c6c94b43.js +0 -0
  675. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/json.js-32d1540a.js +0 -0
  676. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/julia-8a3768e7.js +0 -0
  677. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/julia-repl-1542a535.js +0 -0
  678. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/julia-repl.js-07ea0c88.js +0 -0
  679. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/julia.js-7321b26f.js +0 -0
  680. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/lasso-f278ccbb.js +0 -0
  681. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/lasso.js-a81c4a10.js +0 -0
  682. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/latex-480bc614.js +0 -0
  683. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/latex.js-7781fa8e.js +0 -0
  684. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/ldif-39e7018a.js +0 -0
  685. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/ldif.js-ff0be511.js +0 -0
  686. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/leaf-1983c9fd.js +0 -0
  687. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/leaf.js-6051fa44.js +0 -0
  688. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/lisp-47e106f3.js +0 -0
  689. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/lisp.js-5729457c.js +0 -0
  690. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/livecodeserver-a9710535.js +0 -0
  691. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/livecodeserver.js-621c3b9a.js +0 -0
  692. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/livescript-5888934c.js +0 -0
  693. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/livescript.js-911f9c89.js +0 -0
  694. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/llvm-a51ea25c.js +0 -0
  695. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/llvm.js-aec4e151.js +0 -0
  696. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/lsl-babb313c.js +0 -0
  697. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/lsl.js-372a9d2e.js +0 -0
  698. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/lua-33e3bed2.js +0 -0
  699. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/lua.js-a549c4fb.js +0 -0
  700. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/makefile-036c85bd.js +0 -0
  701. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/makefile.js-d981f866.js +0 -0
  702. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/markdown-83c491be.js +0 -0
  703. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/markdown.js-7e400889.js +0 -0
  704. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/markdownCodeSyntaxHighlighting-3b867111.js +0 -0
  705. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/mathematica-212cedeb.js +0 -0
  706. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/mathematica.js-a9cc13e1.js +0 -0
  707. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/matlab-91514d42.js +0 -0
  708. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/matlab.js-272d0a4b.js +0 -0
  709. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/maxima-ec780f01.js +0 -0
  710. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/maxima.js-8f83fc9b.js +0 -0
  711. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/mel-443f3074.js +0 -0
  712. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/mel.js-35aaad36.js +0 -0
  713. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/mercury-6fa710c7.js +0 -0
  714. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/mercury.js-e4a4d463.js +0 -0
  715. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/mipsasm-1d35360e.js +0 -0
  716. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/mipsasm.js-2b25ec79.js +0 -0
  717. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/mizar-bf5d69f1.js +0 -0
  718. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/mizar.js-a056f354.js +0 -0
  719. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/mojolicious-c56b1162.js +0 -0
  720. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/mojolicious.js-265d3ad9.js +0 -0
  721. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/monkey-bf0d5fb4.js +0 -0
  722. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/monkey.js-0189f1d4.js +0 -0
  723. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/moonscript-b6fa3ab7.js +0 -0
  724. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/moonscript.js-6d6e7d92.js +0 -0
  725. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/n1ql-c980c0d8.js +0 -0
  726. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/n1ql.js-a6e1cdbd.js +0 -0
  727. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/nestedtext-a75f487f.js +0 -0
  728. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/nestedtext.js-58eeb2fd.js +0 -0
  729. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/nginx-500d7783.js +0 -0
  730. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/nginx.js-6e1ff365.js +0 -0
  731. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/nim-8c52ae95.js +0 -0
  732. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/nim.js-8c2ba4ce.js +0 -0
  733. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/nix-8e17d7df.js +0 -0
  734. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/nix.js-1c9e5f0f.js +0 -0
  735. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/node-repl-c351033a.js +0 -0
  736. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/node-repl.js-0c21023a.js +0 -0
  737. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/nsis-9566a130.js +0 -0
  738. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/nsis.js-5bef79d6.js +0 -0
  739. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/objectivec-70d1e37c.js +0 -0
  740. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/objectivec.js-ea458201.js +0 -0
  741. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/ocaml-05a8032e.js +0 -0
  742. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/ocaml.js-34933407.js +0 -0
  743. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/openscad-724bb5e2.js +0 -0
  744. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/openscad.js-bc588586.js +0 -0
  745. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/oxygene-d0768591.js +0 -0
  746. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/oxygene.js-bddfaf72.js +0 -0
  747. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/parser3-3b7df84a.js +0 -0
  748. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/parser3.js-03917f62.js +0 -0
  749. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/perl-274a0c8e.js +0 -0
  750. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/perl.js-798899d1.js +0 -0
  751. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/pf-647ee253.js +0 -0
  752. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/pf.js-c7f35663.js +0 -0
  753. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/pgsql-67be9c80.js +0 -0
  754. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/pgsql.js-1e15a30d.js +0 -0
  755. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/php-template-059af3df.js +0 -0
  756. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/php-template.js-25c82e05.js +0 -0
  757. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/plaintext-7945c0c0.js +0 -0
  758. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/plaintext.js-89fd8faa.js +0 -0
  759. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/pony-37a85088.js +0 -0
  760. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/pony.js-af4b8cc4.js +0 -0
  761. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/powershell-99ec96b1.js +0 -0
  762. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/powershell.js-3aa375d4.js +0 -0
  763. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/processing-6b513c0b.js +0 -0
  764. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/processing.js-8f9c7b7e.js +0 -0
  765. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/profile-a11e18ed.js +0 -0
  766. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/profile.js-c43affa1.js +0 -0
  767. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/prolog-35f6eaf0.js +0 -0
  768. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/prolog.js-ea1f9010.js +0 -0
  769. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/properties-c15cbd34.js +0 -0
  770. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/properties.js-aab8f4b2.js +0 -0
  771. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/protobuf-96c705d8.js +0 -0
  772. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/protobuf.js-256fb21d.js +0 -0
  773. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/puppet-eaa21a84.js +0 -0
  774. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/puppet.js-526f0f6c.js +0 -0
  775. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/purebasic-b2255610.js +0 -0
  776. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/purebasic.js-88a0aeb0.js +0 -0
  777. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/python-repl-a098ea60.js +0 -0
  778. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/python-repl.js-da97070f.js +0 -0
  779. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/q-edbaf565.js +0 -0
  780. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/q.js-64716461.js +0 -0
  781. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/qml-e4a66052.js +0 -0
  782. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/qml.js-256c40c8.js +0 -0
  783. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/r-a77be0e5.js +0 -0
  784. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/r.js-df8e6a0d.js +0 -0
  785. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/reasonml-98659b0a.js +0 -0
  786. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/reasonml.js-d61d5332.js +0 -0
  787. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/rib-e50e8c11.js +0 -0
  788. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/rib.js-771507ef.js +0 -0
  789. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/roboconf-b646a8cd.js +0 -0
  790. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/roboconf.js-e47e2f37.js +0 -0
  791. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/routeros-daea5f39.js +0 -0
  792. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/routeros.js-7028f69c.js +0 -0
  793. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/rsl-02a6a6f6.js +0 -0
  794. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/rsl.js-3b3c4666.js +0 -0
  795. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/ruleslanguage-932a539f.js +0 -0
  796. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/ruleslanguage.js-52f1d5da.js +0 -0
  797. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/rust-e4f5d8be.js +0 -0
  798. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/rust.js-6937e5f3.js +0 -0
  799. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/sas-d4be0f22.js +0 -0
  800. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/sas.js-e9f7f74a.js +0 -0
  801. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/scala-ed6253c7.js +0 -0
  802. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/scala.js-0622a5e6.js +0 -0
  803. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/scheme-090728b4.js +0 -0
  804. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/scheme.js-df719b01.js +0 -0
  805. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/scss-17621482.js +0 -0
  806. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/scss.js-effc59ae.js +0 -0
  807. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/shell-c79fdff2.js +0 -0
  808. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/shell.js-31f5a65f.js +0 -0
  809. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/smalltalk-a5aaf1af.js +0 -0
  810. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/smalltalk.js-16b69abf.js +0 -0
  811. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/sml-3d2ff45b.js +0 -0
  812. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/sml.js-dca0f19d.js +0 -0
  813. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/sqf-895a1a12.js +0 -0
  814. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/sqf.js-7d395293.js +0 -0
  815. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/stan-44ba0bd8.js +0 -0
  816. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/stan.js-5923d3a1.js +0 -0
  817. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/step21-d469eb04.js +0 -0
  818. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/step21.js-91507b84.js +0 -0
  819. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/stylus-7fe3d2aa.js +0 -0
  820. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/stylus.js-5c46b7d2.js +0 -0
  821. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/taggerscript-9644bd70.js +0 -0
  822. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/taggerscript.js-3b33b52a.js +0 -0
  823. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/tap-9aff5b1c.js +0 -0
  824. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/tap.js-6c086fe2.js +0 -0
  825. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/tcl-e06ad942.js +0 -0
  826. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/tcl.js-8b627a42.js +0 -0
  827. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/thrift-172e9c7e.js +0 -0
  828. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/thrift.js-d6341b21.js +0 -0
  829. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/timer-4c6100d9.js +0 -0
  830. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/tp-57841279.js +0 -0
  831. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/tp.js-cedf36a8.js +0 -0
  832. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/vala-1a982c40.js +0 -0
  833. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/vala.js-db590567.js +0 -0
  834. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/vbnet-58370a58.js +0 -0
  835. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/vbnet.js-cdd968f7.js +0 -0
  836. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/vbscript-cf59c0ae.js +0 -0
  837. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/vbscript-html-6fb1969c.js +0 -0
  838. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/vbscript-html.js-ee15979a.js +0 -0
  839. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/vbscript.js-14980cef.js +0 -0
  840. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/verilog-708e7faf.js +0 -0
  841. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/verilog.js-c895778f.js +0 -0
  842. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/vhdl-6fc4a449.js +0 -0
  843. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/vhdl.js-04291f57.js +0 -0
  844. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/vim-3059209f.js +0 -0
  845. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/vim.js-a486e2f4.js +0 -0
  846. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/wasm-d475c0e5.js +0 -0
  847. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/wasm.js-e4c1cfdb.js +0 -0
  848. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/wren-f93687dd.js +0 -0
  849. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/wren.js-2485cae5.js +0 -0
  850. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/x86asm-774652e0.js +0 -0
  851. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/x86asm.js-b939195a.js +0 -0
  852. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/xl-c097ac75.js +0 -0
  853. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/xl.js-7efd80af.js +0 -0
  854. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/xquery-322b0611.js +0 -0
  855. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/xquery.js-83bd2c62.js +0 -0
  856. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/yaml-6a874c12.js +0 -0
  857. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/yaml.js-3a05ad15.js +0 -0
  858. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/zephir-cf2a8bcb.js +0 -0
  859. {h2o_wave-1.5.5.data → h2o_wave-1.6.1.data}/data/www/wave-static/zephir.js-fa8df6f1.js +0 -0
  860. {h2o_wave-1.5.5.dist-info → h2o_wave-1.6.1.dist-info}/WHEEL +0 -0
  861. {h2o_wave-1.5.5.dist-info → h2o_wave-1.6.1.dist-info}/entry_points.txt +0 -0
  862. {h2o_wave-1.5.5.dist-info → h2o_wave-1.6.1.dist-info}/licenses/LICENSE +0 -0
@@ -1,27 +0,0 @@
1
- import{aC as ai,aD as T,w as Es,x as tv,aE as vt,aF as m,aG as ct}from"./index-d142d151.js";import{t as ev}from"./timer-4c6100d9.js";const Ln=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return Jt},get Circle(){return Ux},get Ellipse(){return jx},get Image(){return qx},get Line(){return Zx},get Marker(){return Kx},get Path(){return us},get Polygon(){return a1},get Polyline(){return o1},get Rect(){return h1},get Text(){return u1}},Symbol.toStringTag,{value:"Module"})),En=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return Ut},get Circle(){return y1},get Dom(){return m1},get Ellipse(){return x1},get Image(){return w1},get Line(){return C1},get Marker(){return M1},get Path(){return S1},get Polygon(){return A1},get Polyline(){return b1},get Rect(){return L1},get Text(){return k1}},Symbol.toStringTag,{value:"Module"}));function rv(i){return+i}function iv(i){return i*i}function nv(i){return i*(2-i)}function Bs(i){return((i*=2)<=1?i*i:--i*(2-i)+1)/2}function av(i){return i*i*i}function ov(i){return--i*i*i+1}function Is(i){return((i*=2)<=1?i*i*i:(i-=2)*i*i+2)/2}var xo=3,sv=function i(r){r=+r;function t(e){return Math.pow(e,r)}return t.exponent=i,t}(xo),lv=function i(r){r=+r;function t(e){return 1-Math.pow(1-e,r)}return t.exponent=i,t}(xo),ks=function i(r){r=+r;function t(e){return((e*=2)<=1?Math.pow(e,r):2-Math.pow(2-e,r))/2}return t.exponent=i,t}(xo),jh=Math.PI,qh=jh/2;function hv(i){return+i==1?1:1-Math.cos(i*qh)}function uv(i){return Math.sin(i*qh)}function Ps(i){return(1-Math.cos(jh*i))/2}function De(i){return(Math.pow(2,-10*i)-.0009765625)*1.0009775171065494}function cv(i){return De(1-+i)}function fv(i){return 1-De(i)}function Fs(i){return((i*=2)<=1?De(1-i):2-De(i-1))/2}function vv(i){return 1-Math.sqrt(1-i*i)}function pv(i){return Math.sqrt(1- --i*i)}function Os(i){return((i*=2)<=1?1-Math.sqrt(1-i*i):Math.sqrt(1-(i-=2)*i)+1)/2}var Da=4/11,gv=6/11,dv=8/11,yv=3/4,mv=9/11,xv=10/11,wv=15/16,Cv=21/22,Mv=63/64,Fi=1/Da/Da;function Sv(i){return 1-oi(1-i)}function oi(i){return(i=+i)<Da?Fi*i*i:i<dv?Fi*(i-=gv)*i+yv:i<xv?Fi*(i-=mv)*i+wv:Fi*(i-=Cv)*i+Mv}function Av(i){return((i*=2)<=1?1-oi(1-i):oi(i-1)+1)/2}var wo=1.70158,bv=function i(r){r=+r;function t(e){return(e=+e)*e*(r*(e-1)+e)}return t.overshoot=i,t}(wo),Tv=function i(r){r=+r;function t(e){return--e*e*((e+1)*r+e)+1}return t.overshoot=i,t}(wo),Ds=function i(r){r=+r;function t(e){return((e*=2)<1?e*e*((r+1)*e-r):(e-=2)*e*((r+1)*e+r)+2)/2}return t.overshoot=i,t}(wo),Sr=2*Math.PI,Co=1,Mo=.3,Lv=function i(r,t){var e=Math.asin(1/(r=Math.max(1,r)))*(t/=Sr);function n(a){return r*De(- --a)*Math.sin((e-a)/t)}return n.amplitude=function(a){return i(a,t*Sr)},n.period=function(a){return i(r,a)},n}(Co,Mo),Rs=function i(r,t){var e=Math.asin(1/(r=Math.max(1,r)))*(t/=Sr);function n(a){return 1-r*De(a=+a)*Math.sin((a+e)/t)}return n.amplitude=function(a){return i(a,t*Sr)},n.period=function(a){return i(r,a)},n}(Co,Mo),Ev=function i(r,t){var e=Math.asin(1/(r=Math.max(1,r)))*(t/=Sr);function n(a){return((a=a*2-1)<0?r*De(-a)*Math.sin((e-a)/t):2-r*De(a)*Math.sin((e+a)/t))/2}return n.amplitude=function(a){return i(a,t*Sr)},n.period=function(a){return i(r,a)},n}(Co,Mo);const Bv=Object.freeze(Object.defineProperty({__proto__:null,easeBack:Ds,easeBackIn:bv,easeBackInOut:Ds,easeBackOut:Tv,easeBounce:oi,easeBounceIn:Sv,easeBounceInOut:Av,easeBounceOut:oi,easeCircle:Os,easeCircleIn:vv,easeCircleInOut:Os,easeCircleOut:pv,easeCubic:Is,easeCubicIn:av,easeCubicInOut:Is,easeCubicOut:ov,easeElastic:Rs,easeElasticIn:Lv,easeElasticInOut:Ev,easeElasticOut:Rs,easeExp:Fs,easeExpIn:cv,easeExpInOut:Fs,easeExpOut:fv,easeLinear:rv,easePoly:ks,easePolyIn:sv,easePolyInOut:ks,easePolyOut:lv,easeQuad:Bs,easeQuadIn:iv,easeQuadInOut:Bs,easeQuadOut:nv,easeSin:Ps,easeSinIn:hv,easeSinInOut:Ps,easeSinOut:uv},Symbol.toStringTag,{value:"Module"}));var Gt=function(i){return i!==null&&typeof i!="function"&&isFinite(i.length)},je=function(i,r){return Gt(i)?i.indexOf(r)>-1:!1},Ht=function(i,r){if(!Gt(i))return i;for(var t=[],e=0;e<i.length;e++){var n=i[e];r(n,e)&&t.push(n)}return t},Iv=function(i,r){return r===void 0&&(r=[]),Ht(i,function(t){return!je(r,t)})},kv={}.toString,ar=function(i,r){return kv.call(i)==="[object "+r+"]"};const R=function(i){return ar(i,"Function")};var E=function(i){return i==null};const I=function(i){return Array.isArray?Array.isArray(i):ar(i,"Array")},Q=function(i){var r=typeof i;return i!==null&&r==="object"||r==="function"};function M(i,r){if(i){var t;if(I(i))for(var e=0,n=i.length;e<n&&(t=r(i[e],e),t!==!1);e++);else if(Q(i)){for(var a in i)if(i.hasOwnProperty(a)&&(t=r(i[a],a),t===!1))break}}}var Ci=Object.keys?function(i){return Object.keys(i)}:function(i){var r=[];return M(i,function(t,e){R(i)&&e==="prototype"||r.push(e)}),r};function Pv(i,r){var t=Ci(r),e=t.length;if(E(i))return!e;for(var n=0;n<e;n+=1){var a=t[n];if(r[a]!==i[a]||!(a in i))return!1}return!0}var Ra=function(i){return typeof i=="object"&&i!==null},ne=function(i){if(!Ra(i)||!ar(i,"Object"))return!1;if(Object.getPrototypeOf(i)===null)return!0;for(var r=i;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(i)===r};function pe(i,r){if(!I(i))return null;var t;if(R(r)&&(t=r),ne(r)&&(t=function(n){return Pv(n,r)}),t){for(var e=0;e<i.length;e+=1)if(t(i[e]))return i[e]}return null}var Fv=function(i,r){for(var t=null,e=0;e<i.length;e++){var n=i[e],a=n[r];if(!E(a)){I(a)?t=a[0]:t=a;break}}return t},Vt=function(i){if(!I(i))return[];for(var r=[],t=0;t<i.length;t++)r=r.concat(i[t]);return r};const Qt=function(i){if(I(i))return i.reduce(function(r,t){return Math.max(r,t)},i[0])},oe=function(i){if(I(i))return i.reduce(function(r,t){return Math.min(r,t)},i[0])};var Ov=function(i){var r=i.filter(function(o){return!isNaN(o)});if(!r.length)return{min:0,max:0};if(I(i[0])){for(var t=[],e=0;e<i.length;e++)t=t.concat(i[e]);r=t}var n=Qt(r),a=oe(r);return{min:a,max:n}},Dv=Array.prototype.splice,Rv=function(r,t){if(!Gt(r))return[];for(var e=r?t.length:0,n=e-1;e--;){var a=void 0,o=t[e];(e===n||o!==a)&&(a=o,Dv.call(r,o,1))}return r},Zh=function(i,r,t){if(!I(i)&&!ne(i))return i;var e=t;return M(i,function(n,a){e=r(e,n,a)}),e},Yv=function(i,r){var t=[];if(!Gt(i))return t;for(var e=-1,n=[],a=i.length;++e<a;){var o=i[e];r(o,e,i)&&(t.push(o),n.push(e))}return Rv(i,n),t};const H=function(i){return ar(i,"String")};function Qh(i,r){r===void 0&&(r=new Map);var t=[];if(Array.isArray(i))for(var e=0,n=i.length;e<n;e++){var a=i[e];r.has(a)||(t.push(a),r.set(a,!0))}return t}const ge=function(i,r){for(var t=[],e={},n=0;n<i.length;n++){var a=i[n],o=a[r];if(!E(o)){I(o)||(o=[o]);for(var s=0;s<o.length;s++){var l=o[s];e[l]||(t.push(l),e[l]=!0)}}}return t};function Yt(i){if(Gt(i))return i[0]}function pt(i){if(Gt(i)){var r=i;return r[r.length-1]}}var Gv=function(i,r){for(var t=0;t<i.length;t++)if(!r(i[t],t))return!1;return!0},Bn=function(i,r){for(var t=0;t<i.length;t++)if(r(i[t],t))return!0;return!1},Hv=Object.prototype.hasOwnProperty;function He(i,r){if(!r||!I(i))return{};for(var t={},e=R(r)?r:function(s){return s[r]},n,a=0;a<i.length;a++){var o=i[a];n=e(o),Hv.call(t,n)?t[n].push(o):t[n]=[o]}return t}function Kh(i,r){if(!r)return{0:i};if(!R(r)){var t=I(r)?r:r.replace(/\s+/g,"").split("*");r=function(e){for(var n="_",a=0,o=t.length;a<o;a++)n+=e[t[a]]&&e[t[a]].toString();return n}}return He(i,r)}const Vv=function(i,r){if(!r)return[i];var t=Kh(i,r),e=[];for(var n in t)e.push(t[n]);return e};var J=function(i,r,t){return i<r?r:i>t?t:i},ha=function(i,r){var t=r.toString(),e=t.indexOf(".");if(e===-1)return Math.round(i);var n=t.substr(e+1).length;return n>20&&(n=20),parseFloat(i.toFixed(n))},W=function(i){return ar(i,"Number")},Xv=1e-5;function yt(i,r,t){return t===void 0&&(t=Xv),Math.abs(i-r)<t}var So=function(i,r){return(i%r+r)%r},zv=Math.PI/180,Ao=function(i){return zv*i};const Ar=function(i,r){return i.hasOwnProperty(r)};var bo=Object.values?function(i){return Object.values(i)}:function(i){var r=[];return M(i,function(t,e){R(i)&&e==="prototype"||r.push(t)}),r};const In=function(i){return E(i)?"":i.toString()};var Nv=function(i){return In(i).toLowerCase()};const Ir=Nv;function Jh(i,r){return!i||!r?i:i.replace(/\\?\{([^{}]+)\}/g,function(t,e){return t.charAt(0)==="\\"?t.slice(1):r[e]===void 0?"":r[e]})}var or=function(i){var r=In(i);return r.charAt(0).toUpperCase()+r.substring(1)},Wv={}.toString,_v=function(i){return Wv.call(i).replace(/^\[object /,"").replace(/]$/,"")},si=function(i){return ar(i,"Boolean")},tu=function(i){return ar(i,"Date")},$v=function(i){return i===null},Uv=Object.prototype,jv=function(i){var r=i&&i.constructor,t=typeof r=="function"&&r.prototype||Uv;return i===t},vr=function(i){return i===void 0},eu=function(i){return i instanceof Element||i instanceof HTMLDocument};function qv(i){var r=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)};return r(i)}function Zv(i){var r=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout;r(i)}function ua(i,r){for(var t in r)r.hasOwnProperty(t)&&t!=="constructor"&&r[t]!==void 0&&(i[t]=r[t])}function rt(i,r,t,e){return r&&ua(i,r),t&&ua(i,t),e&&ua(i,e),i}var Rt=function(i){if(typeof i!="object"||i===null)return i;var r;if(I(i)){r=[];for(var t=0,e=i.length;t<e;t++)typeof i[t]=="object"&&i[t]!=null?r[t]=Rt(i[t]):r[t]=i[t]}else{r={};for(var n in i)typeof i[n]=="object"&&i[n]!=null?r[n]=Rt(i[n]):r[n]=i[n]}return r};function ru(i,r,t){var e;return function(){var n=this,a=arguments,o=function(){e=null,t||i.apply(n,a)},s=t&&!e;clearTimeout(e),e=setTimeout(o,r),s&&i.apply(n,a)}}const kn=function(i,r){if(!R(i))throw new TypeError("Expected a function");var t=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var a=r?r.apply(this,e):e[0],o=t.cache;if(o.has(a))return o.get(a);var s=i.apply(this,e);return o.set(a,s),s};return t.cache=new Map,t};var Qv=5;function iu(i,r,t,e){t=t||0,e=e||Qv;for(var n in r)if(r.hasOwnProperty(n)){var a=r[n];a!==null&&ne(a)?(ne(i[n])||(i[n]={}),t<e?iu(i[n],a,t+1,e):i[n]=r[n]):I(a)?(i[n]=[],i[n]=i[n].concat(a)):a!==void 0&&(i[n]=a)}}var O=function(i){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];for(var e=0;e<r.length;e+=1)iu(i,r[e]);return i},nu=function(i,r){if(!Gt(i))return-1;var t=Array.prototype.indexOf;if(t)return t.call(i,r);for(var e=-1,n=0;n<i.length;n++)if(i[n]===r){e=n;break}return e},Kv=Object.prototype.hasOwnProperty;function se(i){if(E(i))return!0;if(Gt(i))return!i.length;var r=_v(i);if(r==="Map"||r==="Set")return!i.size;if(jv(i))return!Object.keys(i).length;for(var t in i)if(Kv.call(i,t))return!1;return!0}var st=function(i,r){if(i===r)return!0;if(!i||!r||H(i)||H(r))return!1;if(Gt(i)||Gt(r)){if(i.length!==r.length)return!1;for(var t=!0,e=0;e<i.length&&(t=st(i[e],r[e]),!!t);e++);return t}if(Ra(i)||Ra(r)){var n=Object.keys(i),a=Object.keys(r);if(n.length!==a.length)return!1;for(var t=!0,e=0;e<n.length&&(t=st(i[n[e]],r[n[e]]),!!t);e++);return t}return!1},At=function(i,r){if(!Gt(i))return i;for(var t=[],e=0;e<i.length;e++){var n=i[e];t.push(r(n,e))}return t},Jv=function(i){return i};const tp=function(i,r){r===void 0&&(r=Jv);var t={};return Q(i)&&!E(i)&&Object.keys(i).forEach(function(e){t[e]=r(i[e],e)}),t},A=function(i,r,t){for(var e=0,n=H(r)?r.split("."):r;i&&e<n.length;)i=i[n[e++]];return i===void 0||e<n.length?t:i},ot=function(i,r,t){var e=i,n=H(r)?r.split("."):r;return n.forEach(function(a,o){o<n.length-1?(Q(e[a])||(e[a]=W(n[o+1])?[]:{}),e=e[a]):e[a]=t}),i};var ep=Object.prototype.hasOwnProperty;const To=function(i,r){if(i===null||!ne(i))return{};var t={};return M(r,function(e){ep.call(i,e)&&(t[e]=i[e])}),t},Lo=function(i,r,t){var e,n,a,o,s=0;t||(t={});var l=function(){s=t.leading===!1?0:Date.now(),e=null,o=i.apply(n,a),e||(n=a=null)},h=function(){var u=Date.now();!s&&t.leading===!1&&(s=u);var c=r-(u-s);return n=this,a=arguments,c<=0||c>r?(e&&(clearTimeout(e),e=null),s=u,o=i.apply(n,a),e||(n=a=null)):!e&&t.trailing!==!1&&(e=setTimeout(l,c)),o};return h.cancel=function(){clearTimeout(e),s=0,e=n=a=null},h},rp=function(i){return Gt(i)?Array.prototype.slice.call(i):[]};var Oi={};const Ve=function(i){return i=i||"g",Oi[i]?Oi[i]+=1:Oi[i]=1,i+Oi[i]},Ee=function(){};function Ft(i){return E(i)?0:Gt(i)?i.length:Object.keys(i).length}var Di;const Ri=kn(function(i,r){r===void 0&&(r={});var t=r.fontSize,e=r.fontFamily,n=r.fontWeight,a=r.fontStyle,o=r.fontVariant;return Di||(Di=document.createElement("canvas").getContext("2d")),Di.font=[a,o,n,t+"px",e].join(" "),Di.measureText(H(i)?i:"").width},function(i,r){return r===void 0&&(r={}),ai([i],bo(r)).join("")}),ip=function(i,r,t,e){e===void 0&&(e="...");var n=16,a=Ri(e,t),o=H(i)?i:In(i),s=r,l=[],h,u;if(Ri(i,t)<=r)return i;for(;h=o.substr(0,n),u=Ri(h,t),!(u+a>s&&u>s);)if(l.push(h),s-=u,o=o.substr(n),!o)return l.join("");for(;h=o.substr(0,1),u=Ri(h,t),!(u+a>s);)if(l.push(h),s-=u,o=o.substr(1),!o)return l.join("");return""+l.join("")+e};var np=function(){function i(){this.map={}}return i.prototype.has=function(r){return this.map[r]!==void 0},i.prototype.get=function(r,t){var e=this.map[r];return e===void 0?t:e},i.prototype.set=function(r,t){this.map[r]=t},i.prototype.clear=function(){this.map={}},i.prototype.delete=function(r){delete this.map[r]},i.prototype.size=function(){return Object.keys(this.map).length},i}(),tt;(function(i){i.FORE="fore",i.MID="mid",i.BG="bg"})(tt||(tt={}));var k;(function(i){i.TOP="top",i.TOP_LEFT="top-left",i.TOP_RIGHT="top-right",i.RIGHT="right",i.RIGHT_TOP="right-top",i.RIGHT_BOTTOM="right-bottom",i.LEFT="left",i.LEFT_TOP="left-top",i.LEFT_BOTTOM="left-bottom",i.BOTTOM="bottom",i.BOTTOM_LEFT="bottom-left",i.BOTTOM_RIGHT="bottom-right",i.RADIUS="radius",i.CIRCLE="circle",i.NONE="none"})(k||(k={}));var ht;(function(i){i.AXIS="axis",i.GRID="grid",i.LEGEND="legend",i.TOOLTIP="tooltip",i.ANNOTATION="annotation",i.SLIDER="slider",i.SCROLLBAR="scrollbar",i.OTHER="other"})(ht||(ht={}));var mr={FORE:3,MID:2,BG:1},Z;(function(i){i.BEFORE_RENDER="beforerender",i.AFTER_RENDER="afterrender",i.BEFORE_PAINT="beforepaint",i.AFTER_PAINT="afterpaint",i.BEFORE_CHANGE_DATA="beforechangedata",i.AFTER_CHANGE_DATA="afterchangedata",i.BEFORE_CLEAR="beforeclear",i.AFTER_CLEAR="afterclear",i.BEFORE_DESTROY="beforedestroy",i.BEFORE_CHANGE_SIZE="beforechangesize",i.AFTER_CHANGE_SIZE="afterchangesize"})(Z||(Z={}));var xr;(function(i){i.BEFORE_DRAW_ANIMATE="beforeanimate",i.AFTER_DRAW_ANIMATE="afteranimate"})(xr||(xr={}));var Lt;(function(i){i.MOUSE_ENTER="plot:mouseenter",i.MOUSE_DOWN="plot:mousedown",i.MOUSE_MOVE="plot:mousemove",i.MOUSE_UP="plot:mouseup",i.MOUSE_LEAVE="plot:mouseleave",i.TOUCH_START="plot:touchstart",i.TOUCH_MOVE="plot:touchmove",i.TOUCH_END="plot:touchend",i.TOUCH_CANCEL="plot:touchcancel",i.CLICK="plot:click",i.DBLCLICK="plot:dblclick",i.CONTEXTMENU="plot:contextmenu",i.LEAVE="plot:leave",i.ENTER="plot:enter"})(Lt||(Lt={}));var fn;(function(i){i.ACTIVE="active",i.INACTIVE="inactive",i.SELECTED="selected",i.DEFAULT="default"})(fn||(fn={}));var pr=["color","shape","size"],$="_origin",Ys=1,Gs=1,Hs=.25,au={};function ap(i){var r=au[i];if(!r)throw new Error("G engine '".concat(i,"' is not exist, please register it at first."));return r}function ou(i,r){au[i]=r}function lr(i,r,t){if(i){if(typeof i.addEventListener=="function")return i.addEventListener(r,t,!1),{remove:function(){i.removeEventListener(r,t,!1)}};if(typeof i.attachEvent=="function")return i.attachEvent("on"+r,t),{remove:function(){i.detachEvent("on"+r,t)}}}}var Ur,ca,su,Ya;function op(){Ur=document.createElement("table"),ca=document.createElement("tr"),su=/^\s*<(\w+|!)[^>]*>/,Ya={tr:document.createElement("tbody"),tbody:Ur,thead:Ur,tfoot:Ur,td:ca,th:ca,"*":document.createElement("div")}}function Pe(i){Ur||op();var r=su.test(i)&&RegExp.$1;(!r||!(r in Ya))&&(r="*");var t=Ya[r];i=typeof i=="string"?i.replace(/(^\s*)|(\s*$)/g,""):i,t.innerHTML=""+i;var e=t.childNodes[0];return e&&t.contains(e)&&t.removeChild(e),e}function Pt(i,r,t){var e;try{e=window.getComputedStyle?window.getComputedStyle(i,null)[r]:i.style[r]}catch(n){}finally{e=e===void 0?t:e}return e}function sp(i,r){var t=Pt(i,"height",r);return t==="auto"&&(t=i.offsetHeight),parseFloat(t)}function lp(i,r){var t=sp(i,r),e=parseFloat(Pt(i,"borderTopWidth"))||0,n=parseFloat(Pt(i,"paddingTop"))||0,a=parseFloat(Pt(i,"paddingBottom"))||0,o=parseFloat(Pt(i,"borderBottomWidth"))||0,s=parseFloat(Pt(i,"marginTop"))||0,l=parseFloat(Pt(i,"marginBottom"))||0;return t+e+o+n+a+s+l}function hp(i,r){var t=Pt(i,"width",r);return t==="auto"&&(t=i.offsetWidth),parseFloat(t)}function up(i,r){var t=hp(i,r),e=parseFloat(Pt(i,"borderLeftWidth"))||0,n=parseFloat(Pt(i,"paddingLeft"))||0,a=parseFloat(Pt(i,"paddingRight"))||0,o=parseFloat(Pt(i,"borderRightWidth"))||0,s=parseFloat(Pt(i,"marginRight"))||0,l=parseFloat(Pt(i,"marginLeft"))||0;return t+e+o+n+a+l+s}function wt(i,r){if(i)for(var t in r)r.hasOwnProperty(t)&&(i.style[t]=r[t]);return i}function cp(i){var r=getComputedStyle(i);return{width:(i.clientWidth||parseInt(r.width,10))-parseInt(r.paddingLeft,10)-parseInt(r.paddingRight,10),height:(i.clientHeight||parseInt(r.height,10))-parseInt(r.paddingTop,10)-parseInt(r.paddingBottom,10)}}function Vs(i){return typeof i=="number"&&!isNaN(i)}function Xs(i,r,t,e){var n=t,a=e;if(r){var o=cp(i);n=o.width?o.width:n,a=o.height?o.height:a}return{width:Math.max(Vs(n)?n:Ys,Ys),height:Math.max(Vs(a)?a:Gs,Gs)}}function fp(i){var r=i.parentNode;r&&r.removeChild(i)}var vp="*",lu=function(){function i(){this._events={}}return i.prototype.on=function(r,t,e){return this._events[r]||(this._events[r]=[]),this._events[r].push({callback:t,once:!!e}),this},i.prototype.once=function(r,t){return this.on(r,t,!0),this},i.prototype.emit=function(r){for(var t=this,e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var a=this._events[r]||[],o=this._events[vp]||[],s=function(l){for(var h=l.length,u=0;u<h;u++)if(l[u]){var c=l[u],f=c.callback,v=c.once;v&&(l.splice(u,1),l.length===0&&delete t._events[r],h--,u--),f.apply(t,e)}};s(a),s(o)},i.prototype.off=function(r,t){if(!r)this._events={};else if(!t)delete this._events[r];else{for(var e=this._events[r]||[],n=e.length,a=0;a<n;a++)e[a].callback===t&&(e.splice(a,1),n--,a--);e.length===0&&delete this._events[r]}return this},i.prototype.getEvents=function(){return this._events},i}(),Eo=function(i){T(r,i);function r(t){var e=i.call(this)||this;e.destroyed=!1;var n=t.visible,a=n===void 0?!0:n;return e.visible=a,e}return r.prototype.show=function(){var t=this.visible;t||this.changeVisible(!0)},r.prototype.hide=function(){var t=this.visible;t&&this.changeVisible(!1)},r.prototype.destroy=function(){this.off(),this.destroyed=!0},r.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},r}(lu),Zr=" \n\v\f\r   ᠎              \u2028\u2029",pp=new RegExp("([a-z])["+Zr+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+Zr+"]*,?["+Zr+"]*)+)","ig"),gp=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+Zr+"]*,?["+Zr+"]*","ig"),gr=function(i){if(!i)return null;if(I(i))return i;var r={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},t=[];return String(i).replace(pp,function(e,n,a){var o=[],s=n.toLowerCase();if(a.replace(gp,function(l,h){h&&o.push(+h)}),s==="m"&&o.length>2&&(t.push([n].concat(o.splice(0,2))),s="l",n=n==="m"?"l":"L"),s==="o"&&o.length===1&&t.push([n,o[0]]),s==="r")t.push([n].concat(o));else for(;o.length>=r[s]&&(t.push([n].concat(o.splice(0,r[s]))),!!r[s]););return i}),t},Ga=function(i,r){for(var t=[],e=0,n=i.length;n-2*!r>e;e+=2){var a=[{x:+i[e-2],y:+i[e-1]},{x:+i[e],y:+i[e+1]},{x:+i[e+2],y:+i[e+3]},{x:+i[e+4],y:+i[e+5]}];r?e?n-4===e?a[3]={x:+i[0],y:+i[1]}:n-2===e&&(a[2]={x:+i[0],y:+i[1]},a[3]={x:+i[2],y:+i[3]}):a[0]={x:+i[n-2],y:+i[n-1]}:n-4===e?a[3]=a[2]:e||(a[0]={x:+i[e],y:+i[e+1]}),t.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return t},Yi=function(i,r,t,e,n){var a=[];if(n===null&&e===null&&(e=t),i=+i,r=+r,t=+t,e=+e,n!==null){var o=Math.PI/180,s=i+t*Math.cos(-e*o),l=i+t*Math.cos(-n*o),h=r+t*Math.sin(-e*o),u=r+t*Math.sin(-n*o);a=[["M",s,h],["A",t,t,0,+(n-e>180),0,l,u]]}else a=[["M",i,r],["m",0,-e],["a",t,e,0,1,1,0,2*e],["a",t,e,0,1,1,0,-2*e],["z"]];return a},Ha=function(i){if(i=gr(i),!i||!i.length)return[["M",0,0]];var r=[],t=0,e=0,n=0,a=0,o=0,s,l;i[0][0]==="M"&&(t=+i[0][1],e=+i[0][2],n=t,a=e,o++,r[0]=["M",t,e]);for(var h=i.length===3&&i[0][0]==="M"&&i[1][0].toUpperCase()==="R"&&i[2][0].toUpperCase()==="Z",u=void 0,c=void 0,f=o,v=i.length;f<v;f++){if(r.push(u=[]),c=i[f],s=c[0],s!==s.toUpperCase())switch(u[0]=s.toUpperCase(),u[0]){case"A":u[1]=c[1],u[2]=c[2],u[3]=c[3],u[4]=c[4],u[5]=c[5],u[6]=+c[6]+t,u[7]=+c[7]+e;break;case"V":u[1]=+c[1]+e;break;case"H":u[1]=+c[1]+t;break;case"R":l=[t,e].concat(c.slice(1));for(var p=2,g=l.length;p<g;p++)l[p]=+l[p]+t,l[++p]=+l[p]+e;r.pop(),r=r.concat(Ga(l,h));break;case"O":r.pop(),l=Yi(t,e,c[1],c[2]),l.push(l[0]),r=r.concat(l);break;case"U":r.pop(),r=r.concat(Yi(t,e,c[1],c[2],c[3])),u=["U"].concat(r[r.length-1].slice(-2));break;case"M":n=+c[1]+t,a=+c[2]+e;break;default:for(var p=1,g=c.length;p<g;p++)u[p]=+c[p]+(p%2?t:e)}else if(s==="R")l=[t,e].concat(c.slice(1)),r.pop(),r=r.concat(Ga(l,h)),u=["R"].concat(c.slice(-2));else if(s==="O")r.pop(),l=Yi(t,e,c[1],c[2]),l.push(l[0]),r=r.concat(l);else if(s==="U")r.pop(),r=r.concat(Yi(t,e,c[1],c[2],c[3])),u=["U"].concat(r[r.length-1].slice(-2));else for(var d=0,y=c.length;d<y;d++)u[d]=c[d];if(s=s.toUpperCase(),s!=="O")switch(u[0]){case"Z":t=+n,e=+a;break;case"H":t=u[1];break;case"V":e=u[1];break;case"M":n=u[u.length-2],a=u[u.length-1];break;default:t=u[u.length-2],e=u[u.length-1]}}return r},Gi=function(i,r,t,e){return[i,r,t,e,t,e]},zs=function(i,r,t,e,n,a){var o=.3333333333333333,s=2/3;return[o*i+s*t,o*r+s*e,o*n+s*t,o*a+s*e,n,a]},hu=function(i,r,t,e,n,a,o,s,l,h){t===e&&(t+=1);var u=Math.PI*120/180,c=Math.PI/180*(+n||0),f=[],v,p,g,d,y,w=function(Yr,Pi,me){var sa=Yr*Math.cos(me)-Pi*Math.sin(me),Gr=Yr*Math.sin(me)+Pi*Math.cos(me);return{x:sa,y:Gr}};if(h)p=h[0],g=h[1],d=h[2],y=h[3];else{v=w(i,r,-c),i=v.x,r=v.y,v=w(s,l,-c),s=v.x,l=v.y,i===s&&r===l&&(s+=1,l+=1);var x=(i-s)/2,C=(r-l)/2,S=x*x/(t*t)+C*C/(e*e);S>1&&(S=Math.sqrt(S),t=S*t,e=S*e);var b=t*t,L=e*e,B=(a===o?-1:1)*Math.sqrt(Math.abs((b*L-b*C*C-L*x*x)/(b*C*C+L*x*x)));d=B*t*C/e+(i+s)/2,y=B*-e*x/t+(r+l)/2,p=Math.asin(((r-y)/e).toFixed(9)),g=Math.asin(((l-y)/e).toFixed(9)),p=i<d?Math.PI-p:p,g=s<d?Math.PI-g:g,p<0&&(p=Math.PI*2+p),g<0&&(g=Math.PI*2+g),o&&p>g&&(p=p-Math.PI*2),!o&&g>p&&(g=g-Math.PI*2)}var P=g-p;if(Math.abs(P)>u){var F=g,D=s,Y=l;g=p+u*(o&&g>p?1:-1),s=d+t*Math.cos(g),l=y+e*Math.sin(g),f=hu(s,l,t,e,n,0,o,D,Y,[g,F,d,y])}P=g-p;var z=Math.cos(p),q=Math.sin(p),ut=Math.cos(g),at=Math.sin(g),St=Math.tan(P/4),lt=4/3*t*St,U=4/3*e*St,ye=[i,r],xt=[i+lt*q,r-U*z],Ne=[s+lt*at,l-U*ut],Ii=[s,l];if(xt[0]=2*ye[0]-xt[0],xt[1]=2*ye[1]-xt[1],h)return[xt,Ne,Ii].concat(f);f=[xt,Ne,Ii].concat(f).join().split(",");for(var ki=[],jt=0,Rr=f.length;jt<Rr;jt++)ki[jt]=jt%2?w(f[jt-1],f[jt],c).y:w(f[jt],f[jt+1],c).x;return ki},Va=function(i,r){var t=Ha(i),e=r&&Ha(r),n={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o=[],s=[],l="",h="",u,c=function(x,C,S){var b,L;if(!x)return["C",C.x,C.y,C.x,C.y,C.x,C.y];switch(!(x[0]in{T:1,Q:1})&&(C.qx=C.qy=null),x[0]){case"M":C.X=x[1],C.Y=x[2];break;case"A":x=["C"].concat(hu.apply(0,[C.x,C.y].concat(x.slice(1))));break;case"S":S==="C"||S==="S"?(b=C.x*2-C.bx,L=C.y*2-C.by):(b=C.x,L=C.y),x=["C",b,L].concat(x.slice(1));break;case"T":S==="Q"||S==="T"?(C.qx=C.x*2-C.qx,C.qy=C.y*2-C.qy):(C.qx=C.x,C.qy=C.y),x=["C"].concat(zs(C.x,C.y,C.qx,C.qy,x[1],x[2]));break;case"Q":C.qx=x[1],C.qy=x[2],x=["C"].concat(zs(C.x,C.y,x[1],x[2],x[3],x[4]));break;case"L":x=["C"].concat(Gi(C.x,C.y,x[1],x[2]));break;case"H":x=["C"].concat(Gi(C.x,C.y,x[1],C.y));break;case"V":x=["C"].concat(Gi(C.x,C.y,C.x,x[1]));break;case"Z":x=["C"].concat(Gi(C.x,C.y,C.X,C.Y));break}return x},f=function(x,C){if(x[C].length>7){x[C].shift();for(var S=x[C];S.length;)o[C]="A",e&&(s[C]="A"),x.splice(C++,0,["C"].concat(S.splice(0,6)));x.splice(C,1),u=Math.max(t.length,e&&e.length||0)}},v=function(x,C,S,b,L){x&&C&&x[L][0]==="M"&&C[L][0]!=="M"&&(C.splice(L,0,["M",b.x,b.y]),S.bx=0,S.by=0,S.x=x[L][1],S.y=x[L][2],u=Math.max(t.length,e&&e.length||0))};u=Math.max(t.length,e&&e.length||0);for(var p=0;p<u;p++){t[p]&&(l=t[p][0]),l!=="C"&&(o[p]=l,p&&(h=o[p-1])),t[p]=c(t[p],n,h),o[p]!=="A"&&l==="C"&&(o[p]="C"),f(t,p),e&&(e[p]&&(l=e[p][0]),l!=="C"&&(s[p]=l,p&&(h=s[p-1])),e[p]=c(e[p],a,h),s[p]!=="A"&&l==="C"&&(s[p]="C"),f(e,p)),v(t,e,n,a,p),v(e,t,a,n,p);var g=t[p],d=e&&e[p],y=g.length,w=e&&d.length;n.x=g[y-2],n.y=g[y-1],n.bx=parseFloat(g[y-4])||n.x,n.by=parseFloat(g[y-3])||n.y,a.bx=e&&(parseFloat(d[w-4])||a.x),a.by=e&&(parseFloat(d[w-3])||a.y),a.x=e&&d[w-2],a.y=e&&d[w-1]}return e?[t,e]:t},dp=/,?([a-z]),?/gi,uu=function(i){return i.join(",").replace(dp,"$1")},Ns=function(i,r,t,e,n){var a=-3*r+9*t-9*e+3*n,o=i*a+6*r-12*t+6*e;return i*o-3*r+3*t},Ws=function(i,r,t,e,n,a,o,s,l){l===null&&(l=1),l=l>1?1:l<0?0:l;for(var h=l/2,u=12,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],v=0,p=0;p<u;p++){var g=h*c[p]+h,d=Ns(g,i,t,n,o),y=Ns(g,r,e,a,s),w=d*d+y*y;v+=f[p]*Math.sqrt(w)}return h*v},yp=function(i,r,t,e,n,a,o,s){for(var l=[],h=[[],[]],u,c,f,v,p=0;p<2;++p){if(p===0?(c=6*i-12*t+6*n,u=-3*i+9*t-9*n+3*o,f=3*t-3*i):(c=6*r-12*e+6*a,u=-3*r+9*e-9*a+3*s,f=3*e-3*r),Math.abs(u)<1e-12){if(Math.abs(c)<1e-12)continue;v=-f/c,v>0&&v<1&&l.push(v);continue}var g=c*c-4*f*u,d=Math.sqrt(g);if(!(g<0)){var y=(-c+d)/(2*u);y>0&&y<1&&l.push(y);var w=(-c-d)/(2*u);w>0&&w<1&&l.push(w)}}for(var x=l.length,C=x,S;x--;)v=l[x],S=1-v,h[0][x]=S*S*S*i+3*S*S*v*t+3*S*v*v*n+v*v*v*o,h[1][x]=S*S*S*r+3*S*S*v*e+3*S*v*v*a+v*v*v*s;return h[0][C]=i,h[1][C]=r,h[0][C+1]=o,h[1][C+1]=s,h[0].length=h[1].length=C+2,{min:{x:Math.min.apply(0,h[0]),y:Math.min.apply(0,h[1])},max:{x:Math.max.apply(0,h[0]),y:Math.max.apply(0,h[1])}}},mp=function(i,r,t,e,n,a,o,s){if(!(Math.max(i,t)<Math.min(n,o)||Math.min(i,t)>Math.max(n,o)||Math.max(r,e)<Math.min(a,s)||Math.min(r,e)>Math.max(a,s))){var l=(i*e-r*t)*(n-o)-(i-t)*(n*s-a*o),h=(i*e-r*t)*(a-s)-(r-e)*(n*s-a*o),u=(i-t)*(a-s)-(r-e)*(n-o);if(u){var c=l/u,f=h/u,v=+c.toFixed(2),p=+f.toFixed(2);if(!(v<+Math.min(i,t).toFixed(2)||v>+Math.max(i,t).toFixed(2)||v<+Math.min(n,o).toFixed(2)||v>+Math.max(n,o).toFixed(2)||p<+Math.min(r,e).toFixed(2)||p>+Math.max(r,e).toFixed(2)||p<+Math.min(a,s).toFixed(2)||p>+Math.max(a,s).toFixed(2)))return{x:c,y:f}}}},we=function(i,r,t){return r>=i.x&&r<=i.x+i.width&&t>=i.y&&t<=i.y+i.height},cu=function(i,r,t,e,n){if(n)return[["M",+i+ +n,r],["l",t-n*2,0],["a",n,n,0,0,1,n,n],["l",0,e-n*2],["a",n,n,0,0,1,-n,n],["l",n*2-t,0],["a",n,n,0,0,1,-n,-n],["l",0,n*2-e],["a",n,n,0,0,1,n,-n],["z"]];var a=[["M",i,r],["l",t,0],["l",0,e],["l",-t,0],["z"]];return a.parsePathArray=uu,a},Xa=function(i,r,t,e){return i===null&&(i=r=t=e=0),r===null&&(r=i.y,t=i.width,e=i.height,i=i.x),{x:i,y:r,width:t,w:t,height:e,h:e,x2:i+t,y2:r+e,cx:i+t/2,cy:r+e/2,r1:Math.min(t,e)/2,r2:Math.max(t,e)/2,r0:Math.sqrt(t*t+e*e)/2,path:cu(i,r,t,e),vb:[i,r,t,e].join(" ")}},xp=function(i,r){return i=Xa(i),r=Xa(r),we(r,i.x,i.y)||we(r,i.x2,i.y)||we(r,i.x,i.y2)||we(r,i.x2,i.y2)||we(i,r.x,r.y)||we(i,r.x2,r.y)||we(i,r.x,r.y2)||we(i,r.x2,r.y2)||(i.x<r.x2&&i.x>r.x||r.x<i.x2&&r.x>i.x)&&(i.y<r.y2&&i.y>r.y||r.y<i.y2&&r.y>i.y)},_s=function(i,r,t,e,n,a,o,s){I(i)||(i=[i,r,t,e,n,a,o,s]);var l=yp.apply(null,i);return Xa(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},$s=function(i,r,t,e,n,a,o,s,l){var h=1-l,u=Math.pow(h,3),c=Math.pow(h,2),f=l*l,v=f*l,p=u*i+c*3*l*t+h*3*l*l*n+v*o,g=u*r+c*3*l*e+h*3*l*l*a+v*s,d=i+2*l*(t-i)+f*(n-2*t+i),y=r+2*l*(e-r)+f*(a-2*e+r),w=t+2*l*(n-t)+f*(o-2*n+t),x=e+2*l*(a-e)+f*(s-2*a+e),C=h*i+l*t,S=h*r+l*e,b=h*n+l*o,L=h*a+l*s,B=90-Math.atan2(d-w,y-x)*180/Math.PI;return{x:p,y:g,m:{x:d,y},n:{x:w,y:x},start:{x:C,y:S},end:{x:b,y:L},alpha:B}},wp=function(i,r,t){var e=_s(i),n=_s(r);if(!xp(e,n))return t?0:[];for(var a=Ws.apply(0,i),o=Ws.apply(0,r),s=~~(a/8),l=~~(o/8),h=[],u=[],c={},f=t?0:[],v=0;v<s+1;v++){var p=$s.apply(0,i.concat(v/s));h.push({x:p.x,y:p.y,t:v/s})}for(var v=0;v<l+1;v++){var p=$s.apply(0,r.concat(v/l));u.push({x:p.x,y:p.y,t:v/l})}for(var v=0;v<s;v++)for(var g=0;g<l;g++){var d=h[v],y=h[v+1],w=u[g],x=u[g+1],C=Math.abs(y.x-d.x)<.001?"y":"x",S=Math.abs(x.x-w.x)<.001?"y":"x",b=mp(d.x,d.y,y.x,y.y,w.x,w.y,x.x,x.y);if(b){if(c[b.x.toFixed(4)]===b.y.toFixed(4))continue;c[b.x.toFixed(4)]=b.y.toFixed(4);var L=d.t+Math.abs((b[C]-d[C])/(y[C]-d[C]))*(y.t-d.t),B=w.t+Math.abs((b[S]-w[S])/(x[S]-w[S]))*(x.t-w.t);L>=0&&L<=1&&B>=0&&B<=1&&(t?f+=1:f.push({x:b.x,y:b.y,t1:L,t2:B}))}}return f},Cp=function(i,r,t){i=Va(i),r=Va(r);for(var e,n,a,o,s,l,h,u,c,f,v=t?0:[],p=0,g=i.length;p<g;p++){var d=i[p];if(d[0]==="M")e=s=d[1],n=l=d[2];else{d[0]==="C"?(c=[e,n].concat(d.slice(1)),e=c[6],n=c[7]):(c=[e,n,e,n,s,l,s,l],e=s,n=l);for(var y=0,w=r.length;y<w;y++){var x=r[y];if(x[0]==="M")a=h=x[1],o=u=x[2];else{x[0]==="C"?(f=[a,o].concat(x.slice(1)),a=f[6],o=f[7]):(f=[a,o,a,o,h,u,h,u],a=h,o=u);var C=wp(c,f,t);if(t)v+=C;else{for(var S=0,b=C.length;S<b;S++)C[S].segment1=p,C[S].segment2=y,C[S].bez1=c,C[S].bez2=f;v=v.concat(C)}}}}}return v},Mp=function(i,r){return Cp(i,r)};function Sp(i,r){var t=[],e=[];function n(a,o){if(a.length===1)t.push(a[0]),e.push(a[0]);else{for(var s=[],l=0;l<a.length-1;l++)l===0&&t.push(a[0]),l===a.length-2&&e.push(a[l+1]),s[l]=[(1-o)*a[l][0]+o*a[l+1][0],(1-o)*a[l][1]+o*a[l+1][1]];n(s,o)}}return i.length&&n(i,r),{left:t,right:e.reverse()}}function Ap(i,r,t){var e=[[i[1],i[2]]];t=t||2;var n=[];r[0]==="A"?(e.push(r[6]),e.push(r[7])):r[0]==="C"?(e.push([r[1],r[2]]),e.push([r[3],r[4]]),e.push([r[5],r[6]])):r[0]==="S"||r[0]==="Q"?(e.push([r[1],r[2]]),e.push([r[3],r[4]])):e.push([r[1],r[2]]);for(var a=e,o=1/t,s=0;s<t-1;s++){var l=o/(1-o*s),h=Sp(a,l);n.push(h.left),a=h.right}n.push(a);var u=n.map(function(c){var f=[];return c.length===4&&(f.push("C"),f=f.concat(c[2])),c.length>=3&&(c.length===3&&f.push("Q"),f=f.concat(c[1])),c.length===2&&f.push("L"),f=f.concat(c[c.length-1]),f});return u}var bp=function(i,r,t){if(t===1)return[[].concat(i)];var e=[];if(r[0]==="L"||r[0]==="C"||r[0]==="Q")e=e.concat(Ap(i,r,t));else{var n=[].concat(i);n[0]==="M"&&(n[0]="L");for(var a=0;a<=t-1;a++)e.push(n)}return e},Tp=function(i,r){if(i.length===1)return i;var t=i.length-1,e=r.length-1,n=t/e,a=[];if(i.length===1&&i[0][0]==="M"){for(var o=0;o<e-t;o++)i.push(i[0]);return i}for(var o=0;o<e;o++){var s=Math.floor(n*o);a[s]=(a[s]||0)+1}var l=a.reduce(function(h,u,c){return c===t?h.concat(i[t]):h.concat(bp(i[c],i[c+1],u))},[]);return l.unshift(i[0]),(r[e]==="Z"||r[e]==="z")&&l.push("Z"),l},Lp=function(i,r){if(i.length!==r.length)return!1;var t=!0;return M(i,function(e,n){if(e!==r[n])return t=!1,!1}),t};function Ep(i,r,t){var e=null,n=t;return r<n&&(n=r,e="add"),i<n&&(n=i,e="del"),{type:e,min:n}}var Bp=function(i,r){var t=i.length,e=r.length,n,a,o=0;if(t===0||e===0)return null;for(var s=[],l=0;l<=t;l++)s[l]=[],s[l][0]={min:l};for(var h=0;h<=e;h++)s[0][h]={min:h};for(var l=1;l<=t;l++){n=i[l-1];for(var h=1;h<=e;h++){a=r[h-1],Lp(n,a)?o=0:o=1;var u=s[l-1][h].min+1,c=s[l][h-1].min+1,f=s[l-1][h-1].min+o;s[l][h]=Ep(u,c,f)}}return s},fu=function(i,r){var t=Bp(i,r),e=i.length,n=r.length,a=[],o=1,s=1;if(t[e][n].min!==e){for(var l=1;l<=e;l++){var h=t[l][l].min;s=l;for(var u=o;u<=n;u++)t[l][u].min<h&&(h=t[l][u].min,s=u);o=s,t[l][o].type&&a.push({index:l-1,type:t[l][o].type})}for(var l=a.length-1;l>=0;l--)o=a[l].index,a[l].type==="add"?i.splice(o,0,[].concat(i[o])):i.splice(o,1)}e=i.length;var c=n-e;if(e<n)for(var l=0;l<c;l++)i[e-1][0]==="z"||i[e-1][0]==="Z"?i.splice(e-2,0,i[e-2]):i.push(i[e-1]),e+=1;return i};function fa(i,r,t){for(var e=[].concat(i),n,a=1/(t+1),o=vu(r)[0],s=1;s<=t;s++)a*=s,n=Math.floor(i.length*a),n===0?e.unshift([o[0]*a+i[n][0]*(1-a),o[1]*a+i[n][1]*(1-a)]):e.splice(n,0,[o[0]*a+i[n][0]*(1-a),o[1]*a+i[n][1]*(1-a)]);return e}function vu(i){var r=[];switch(i[0]){case"M":r.push([i[1],i[2]]);break;case"L":r.push([i[1],i[2]]);break;case"A":r.push([i[6],i[7]]);break;case"Q":r.push([i[3],i[4]]),r.push([i[1],i[2]]);break;case"T":r.push([i[1],i[2]]);break;case"C":r.push([i[5],i[6]]),r.push([i[1],i[2]]),r.push([i[3],i[4]]);break;case"S":r.push([i[3],i[4]]),r.push([i[1],i[2]]);break;case"H":r.push([i[1],i[1]]);break;case"V":r.push([i[1],i[1]]);break}return r}var za=function(i,r){if(i.length<=1)return i;for(var t,e=0;e<r.length;e++)if(i[e][0]!==r[e][0])switch(t=vu(i[e]),r[e][0]){case"M":i[e]=["M"].concat(t[0]);break;case"L":i[e]=["L"].concat(t[0]);break;case"A":i[e]=[].concat(r[e]),i[e][6]=t[0][0],i[e][7]=t[0][1];break;case"Q":if(t.length<2)if(e>0)t=fa(t,i[e-1],1);else{i[e]=r[e];break}i[e]=["Q"].concat(t.reduce(function(n,a){return n.concat(a)},[]));break;case"T":i[e]=["T"].concat(t[0]);break;case"C":if(t.length<3)if(e>0)t=fa(t,i[e-1],2);else{i[e]=r[e];break}i[e]=["C"].concat(t.reduce(function(n,a){return n.concat(a)},[]));break;case"S":if(t.length<2)if(e>0)t=fa(t,i[e-1],1);else{i[e]=r[e];break}i[e]=["S"].concat(t.reduce(function(n,a){return n.concat(a)},[]));break;default:i[e]=r[e]}return i};const Bo=Object.freeze(Object.defineProperty({__proto__:null,catmullRomToBezier:Ga,fillPath:Tp,fillPathByDiff:fu,formatPath:za,intersection:Mp,parsePathArray:uu,parsePathString:gr,pathToAbsolute:Ha,pathToCurve:Va,rectPath:cu},Symbol.toStringTag,{value:"Module"}));var Mi=function(){function i(r,t){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=r,this.name=r,this.originalEvent=t,this.timeStamp=t.timeStamp}return i.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},i.prototype.stopPropagation=function(){this.propagationStopped=!0},i.prototype.toString=function(){var r=this.type;return"[Event (type="+r+")]"},i.prototype.save=function(){},i.prototype.restore=function(){},i}();function pu(i,r){var t=i.indexOf(r);t!==-1&&i.splice(t,1)}var Us=typeof window<"u"&&typeof window.document<"u";function gu(i,r){if(i.isCanvas())return!0;for(var t=r.getParent(),e=!1;t;){if(t===i){e=!0;break}t=t.getParent()}return e}function li(i){return i.cfg.visible&&i.cfg.capture}var Pn=function(i){T(r,i);function r(t){var e=i.call(this)||this;e.destroyed=!1;var n=e.getDefaultCfg();return e.cfg=rt(n,t),e}return r.prototype.getDefaultCfg=function(){return{}},r.prototype.get=function(t){return this.cfg[t]},r.prototype.set=function(t,e){this.cfg[t]=e},r.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},r}(lu),js=globalThis&&globalThis.__spreadArray||function(i,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,a;e<n;e++)(a||!(e in r))&&(a||(a=Array.prototype.slice.call(r,0,e)),a[e]=r[e]);return i.concat(a||Array.prototype.slice.call(r))},Ip=function(){function i(r,t,e){this.name=r,this.version=t,this.os=e,this.type="browser"}return i}(),kp=function(){function i(r){this.version=r,this.type="node",this.name="node",this.os=process.platform}return i}(),Pp=function(){function i(r,t,e,n){this.name=r,this.version=t,this.os=e,this.bot=n,this.type="bot-device"}return i}(),Fp=function(){function i(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return i}(),Op=function(){function i(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return i}(),Dp=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,Rp=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,qs=3,Yp=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",Dp]],Zs=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function du(i){return i?Qs(i):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new Op:typeof navigator<"u"?Qs(navigator.userAgent):Vp()}function Gp(i){return i!==""&&Yp.reduce(function(r,t){var e=t[0],n=t[1];if(r)return r;var a=n.exec(i);return!!a&&[e,a]},!1)}function Qs(i){var r=Gp(i);if(!r)return null;var t=r[0],e=r[1];if(t==="searchbot")return new Fp;var n=e[1]&&e[1].split(".").join("_").split("_").slice(0,3);n?n.length<qs&&(n=js(js([],n,!0),Xp(qs-n.length),!0)):n=[];var a=n.join("."),o=Hp(i),s=Rp.exec(i);return s&&s[1]?new Pp(t,a,o,s[1]):new Ip(t,a,o)}function Hp(i){for(var r=0,t=Zs.length;r<t;r++){var e=Zs[r],n=e[0],a=e[1],o=a.exec(i);if(o)return n}return null}function Vp(){var i=typeof process<"u"&&process.version;return i?new kp(process.version.slice(1)):null}function Xp(i){for(var r=[],t=0;t<i;t++)r.push("0");return r}var vn=typeof Float32Array<"u"?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var i=0,r=arguments.length;r--;)i+=arguments[r]*arguments[r];return Math.sqrt(i)});function zp(i,r){var t=r[0],e=r[1],n=r[2],a=r[3],o=r[4],s=r[5],l=r[6],h=r[7],u=r[8],c=u*o-s*h,f=-u*a+s*l,v=h*a-o*l,p=t*c+e*f+n*v;return p?(p=1/p,i[0]=c*p,i[1]=(-u*e+n*h)*p,i[2]=(s*e-n*o)*p,i[3]=f*p,i[4]=(u*t-n*l)*p,i[5]=(-s*t+n*a)*p,i[6]=v*p,i[7]=(-h*t+e*l)*p,i[8]=(o*t-e*a)*p,i):null}function Fn(i,r,t){var e=r[0],n=r[1],a=r[2],o=r[3],s=r[4],l=r[5],h=r[6],u=r[7],c=r[8],f=t[0],v=t[1],p=t[2],g=t[3],d=t[4],y=t[5],w=t[6],x=t[7],C=t[8];return i[0]=f*e+v*o+p*h,i[1]=f*n+v*s+p*u,i[2]=f*a+v*l+p*c,i[3]=g*e+d*o+y*h,i[4]=g*n+d*s+y*u,i[5]=g*a+d*l+y*c,i[6]=w*e+x*o+C*h,i[7]=w*n+x*s+C*u,i[8]=w*a+x*l+C*c,i}function Np(i,r){return i[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=1,i[5]=0,i[6]=r[0],i[7]=r[1],i[8]=1,i}function Wp(i,r){var t=Math.sin(r),e=Math.cos(r);return i[0]=e,i[1]=t,i[2]=0,i[3]=-t,i[4]=e,i[5]=0,i[6]=0,i[7]=0,i[8]=1,i}function _p(i,r){return i[0]=r[0],i[1]=0,i[2]=0,i[3]=0,i[4]=r[1],i[5]=0,i[6]=0,i[7]=0,i[8]=1,i}function $p(){var i=new vn(3);return vn!=Float32Array&&(i[0]=0,i[1]=0,i[2]=0),i}function hi(i,r,t){var e=r[0],n=r[1],a=r[2];return i[0]=e*t[0]+n*t[3]+a*t[6],i[1]=e*t[1]+n*t[4]+a*t[7],i[2]=e*t[2]+n*t[5]+a*t[8],i}(function(){var i=$p();return function(r,t,e,n,a,o){var s,l;for(t||(t=3),e||(e=0),n?l=Math.min(n*t+e,r.length):l=r.length,s=e;s<l;s+=t)i[0]=r[s],i[1]=r[s+1],i[2]=r[s+2],a(i,i,o),r[s]=i[0],r[s+1]=i[1],r[s+2]=i[2];return r}})();function Up(){var i=new vn(2);return vn!=Float32Array&&(i[0]=0,i[1]=0),i}function Be(i,r,t){return i[0]=r[0]+t[0],i[1]=r[1]+t[1],i}function yu(i,r,t){return i[0]=r[0]-t[0],i[1]=r[1]-t[1],i}function It(i,r,t){return i[0]=Math.min(r[0],t[0]),i[1]=Math.min(r[1],t[1]),i}function kt(i,r,t){return i[0]=Math.max(r[0],t[0]),i[1]=Math.max(r[1],t[1]),i}function Wt(i,r,t){return i[0]=r[0]*t,i[1]=r[1]*t,i}function pn(i,r){var t=r[0]-i[0],e=r[1]-i[1];return Math.hypot(t,e)}function dr(i){var r=i[0],t=i[1];return Math.hypot(r,t)}function mu(i,r){var t=r[0],e=r[1],n=t*t+e*e;return n>0&&(n=1/Math.sqrt(n)),i[0]=r[0]*n,i[1]=r[1]*n,i}function xu(i,r){return i[0]*r[0]+i[1]*r[1]}function jp(i,r,t){var e=r[0],n=r[1];return i[0]=t[0]*e+t[3]*n+t[6],i[1]=t[1]*e+t[4]*n+t[7],i}function Na(i,r){var t=i[0],e=i[1],n=r[0],a=r[1],o=Math.sqrt(t*t+e*e)*Math.sqrt(n*n+a*a),s=o&&(t*n+e*a)/o;return Math.acos(Math.min(Math.max(s,-1),1))}function qp(i,r){return i[0]===r[0]&&i[1]===r[1]}var wr=yu;(function(){var i=Up();return function(r,t,e,n,a,o){var s,l;for(t||(t=2),e||(e=0),n?l=Math.min(n*t+e,r.length):l=r.length,s=e;s<l;s+=t)i[0]=r[s],i[1]=r[s+1],a(i,i,o),r[s]=i[0],r[s+1]=i[1];return r}})();function cr(i,r,t){var e=[0,0,0,0,0,0,0,0,0];return Np(e,t),Fn(i,e,r)}function Io(i,r,t){var e=[0,0,0,0,0,0,0,0,0];return Wp(e,t),Fn(i,e,r)}function wu(i,r,t){var e=[0,0,0,0,0,0,0,0,0];return _p(e,t),Fn(i,e,r)}function Zp(i,r,t){return Fn(i,t,r)}function nt(i,r){for(var t=i?[].concat(i):[1,0,0,0,1,0,0,0,1],e=0,n=r.length;e<n;e++){var a=r[e];switch(a[0]){case"t":cr(t,t,[a[1],a[2]]);break;case"s":wu(t,t,[a[1],a[2]]);break;case"r":Io(t,t,a[1]);break;case"m":Zp(t,t,a[1]);break}}return t}function Qp(i,r){return i[0]*r[1]-r[0]*i[1]}function ko(i,r,t){var e=Na(i,r),n=Qp(i,r)>=0;return t?n?Math.PI*2-e:e:n?e:Math.PI*2-e}function Ks(i,r){var t=[],e=i[0],n=i[1],a=i[2],o=i[3],s=i[4],l=i[5],h=i[6],u=i[7],c=i[8],f=r[0],v=r[1],p=r[2],g=r[3],d=r[4],y=r[5],w=r[6],x=r[7],C=r[8];return t[0]=f*e+v*o+p*h,t[1]=f*n+v*s+p*u,t[2]=f*a+v*l+p*c,t[3]=g*e+d*o+y*h,t[4]=g*n+d*s+y*u,t[5]=g*a+d*l+y*c,t[6]=w*e+x*o+C*h,t[7]=w*n+x*s+C*u,t[8]=w*a+x*l+C*c,t}function fe(i,r){var t=[],e=r[0],n=r[1];return t[0]=i[0]*e+i[3]*n+i[6],t[1]=i[1]*e+i[4]*n+i[7],t}function On(i){var r=[],t=i[0],e=i[1],n=i[2],a=i[3],o=i[4],s=i[5],l=i[6],h=i[7],u=i[8],c=u*o-s*h,f=-u*a+s*l,v=h*a-o*l,p=t*c+e*f+n*v;return p?(p=1/p,r[0]=c*p,r[1]=(-u*e+n*h)*p,r[2]=(s*e-n*o)*p,r[3]=f*p,r[4]=(u*t-n*l)*p,r[5]=(-s*t+n*a)*p,r[6]=v*p,r[7]=(-h*t+e*l)*p,r[8]=(o*t-e*a)*p,r):null}var Vr=nt,va="matrix",Kp=["zIndex","capture","visible","type"],Jp=["repeat"],tg=":",eg="*";function rg(i){for(var r=[],t=0;t<i.length;t++)I(i[t])?r.push([].concat(i[t])):r.push(i[t]);return r}function ig(i,r){var t={},e=r.attrs;for(var n in i)t[n]=e[n];return t}function ng(i,r){var t={},e=r.attr();return M(i,function(n,a){Jp.indexOf(a)===-1&&!st(e[a],n)&&(t[a]=n)}),t}function ag(i,r){if(r.onFrame)return i;var t=r.startTime,e=r.delay,n=r.duration,a=Object.prototype.hasOwnProperty;return M(i,function(o){t+e<o.startTime+o.delay+o.duration&&n>o.delay&&M(r.toAttrs,function(s,l){a.call(o.toAttrs,l)&&(delete o.toAttrs[l],delete o.fromAttrs[l])})}),i}var Cu=function(i){T(r,i);function r(t){var e=i.call(this,t)||this;e.attrs={};var n=e.getDefaultAttrs();return rt(n,t.attrs),e.attrs=n,e.initAttrs(n),e.initAnimate(),e}return r.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},r.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},r.prototype.onCanvasChange=function(t){},r.prototype.initAttrs=function(t){},r.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},r.prototype.isGroup=function(){return!1},r.prototype.getParent=function(){return this.get("parent")},r.prototype.getCanvas=function(){return this.get("canvas")},r.prototype.attr=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var a=e[0],o=e[1];if(!a)return this.attrs;if(Q(a)){for(var s in a)this.setAttr(s,a[s]);return this.afterAttrsChange(a),this}return e.length===2?(this.setAttr(a,o),this.afterAttrsChange((t={},t[a]=o,t)),this):this.attrs[a]},r.prototype.isClipped=function(t,e){var n=this.getClip();return n&&!n.isHit(t,e)},r.prototype.setAttr=function(t,e){var n=this.attrs[t];n!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,n))},r.prototype.onAttrChange=function(t,e,n){t==="matrix"&&this.set("totalMatrix",null)},r.prototype.afterAttrsChange=function(t){if(this.cfg.isClipShape){var e=this.cfg.applyTo;e&&e.onCanvasChange("clip")}else this.onCanvasChange("attr")},r.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},r.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},r.prototype.setZIndex=function(t){this.set("zIndex",t);var e=this.getParent();return e&&e.sort(),this},r.prototype.toFront=function(){var t=this.getParent();if(t){var e=t.getChildren();this.get("el");var n=e.indexOf(this);e.splice(n,1),e.push(this),this.onCanvasChange("zIndex")}},r.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren();this.get("el");var n=e.indexOf(this);e.splice(n,1),e.unshift(this),this.onCanvasChange("zIndex")}},r.prototype.remove=function(t){t===void 0&&(t=!0);var e=this.getParent();e?(pu(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},r.prototype.resetMatrix=function(){this.attr(va,this.getDefaultMatrix()),this.onCanvasChange("matrix")},r.prototype.getMatrix=function(){return this.attr(va)},r.prototype.setMatrix=function(t){this.attr(va,t),this.onCanvasChange("matrix")},r.prototype.getTotalMatrix=function(){var t=this.cfg.totalMatrix;if(!t){var e=this.attr("matrix"),n=this.cfg.parentMatrix;n&&e?t=Ks(n,e):t=e||n,this.set("totalMatrix",t)}return t},r.prototype.applyMatrix=function(t){var e=this.attr("matrix"),n=null;t&&e?n=Ks(t,e):n=e||t,this.set("totalMatrix",n),this.set("parentMatrix",t)},r.prototype.getDefaultMatrix=function(){return null},r.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?fe(e,t):t},r.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=On(e);if(n)return fe(n,t)}return t},r.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var a=this.getShapeBase(),o=or(t.type),s=a[o];s&&(n=new s({type:t.type,isClipShape:!0,applyTo:this,attrs:t.attrs,canvas:e}))}return this.set("clipShape",n),this.onCanvasChange("clip"),n},r.prototype.getClip=function(){var t=this.cfg.clipShape;return t||null},r.prototype.clone=function(){var t=this,e=this.attrs,n={};M(e,function(s,l){I(e[l])?n[l]=rg(e[l]):n[l]=e[l]});var a=this.constructor,o=new a({attrs:n});return M(Kp,function(s){o.set(s,t.get(s))}),o},r.prototype.destroy=function(){var t=this.destroyed;t||(this.attrs={},i.prototype.destroy.call(this))},r.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},r.prototype.animate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!(!this.get("timeline")&&!this.get("canvas"))){this.set("animating",!0);var n=this.get("timeline");n||(n=this.get("canvas").get("timeline"),this.set("timeline",n));var a=this.get("animations")||[];n.timer||n.initTimer();var o=t[0],s=t[1],l=t[2],h=l===void 0?"easeLinear":l,u=t[3],c=u===void 0?Ee:u,f=t[4],v=f===void 0?0:f,p,g,d,y,w;R(o)?(p=o,o={}):Q(o)&&o.onFrame&&(p=o.onFrame,g=o.repeat),Q(s)?(w=s,s=w.duration,h=w.easing||"easeLinear",v=w.delay||0,g=w.repeat||g||!1,c=w.callback||Ee,d=w.pauseCallback||Ee,y=w.resumeCallback||Ee):(W(c)&&(v=c,c=null),R(h)?(c=h,h="easeLinear"):h=h||"easeLinear");var x=ng(o,this),C={fromAttrs:ig(x,this),toAttrs:x,duration:s,easing:h,repeat:g,callback:c,pauseCallback:d,resumeCallback:y,delay:v,startTime:n.getTime(),id:Ve(),onFrame:p,pathFormatted:!1};a.length>0?a=ag(a,C):n.addAnimator(this),a.push(C),this.set("animations",a),this.set("_pause",{isPaused:!1})}},r.prototype.stopAnimate=function(t){var e=this;t===void 0&&(t=!0);var n=this.get("animations");M(n,function(a){t&&(a.onFrame?e.attr(a.onFrame(1)):e.attr(a.toAttrs)),a.callback&&a.callback()}),this.set("animating",!1),this.set("animations",[])},r.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return M(e,function(a){a._paused=!0,a._pauseTime=n,a.pauseCallback&&a.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:n}),this},r.prototype.resumeAnimate=function(){var t=this.get("timeline"),e=t.getTime(),n=this.get("animations"),a=this.get("_pause").pauseTime;return M(n,function(o){o.startTime=o.startTime+(e-a),o._paused=!1,o._pauseTime=null,o.resumeCallback&&o.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",n),this},r.prototype.emitDelegation=function(t,e){var n=this,a=e.propagationPath;this.getEvents();var o;t==="mouseenter"?o=e.fromShape:t==="mouseleave"&&(o=e.toShape);for(var s=function(c){var f=a[c],v=f.get("name");if(v){if((f.isGroup()||f.isCanvas&&f.isCanvas())&&o&&gu(f,o))return"break";I(v)?M(v,function(p){n.emitDelegateEvent(f,p,e)}):l.emitDelegateEvent(f,v,e)}},l=this,h=0;h<a.length;h++){var u=s(h);if(u==="break")break}},r.prototype.emitDelegateEvent=function(t,e,n){var a=this.getEvents(),o=e+tg+n.type;(a[o]||a[eg])&&(n.name=o,n.currentTarget=t,n.delegateTarget=this,n.delegateObject=t.get("delegateObject"),this.emit(o,n))},r.prototype.translate=function(t,e){t===void 0&&(t=0),e===void 0&&(e=0);var n=this.getMatrix(),a=Vr(n,[["t",t,e]]);return this.setMatrix(a),this},r.prototype.move=function(t,e){var n=this.attr("x")||0,a=this.attr("y")||0;return this.translate(t-n,e-a),this},r.prototype.moveTo=function(t,e){return this.move(t,e)},r.prototype.scale=function(t,e){var n=this.getMatrix(),a=Vr(n,[["s",t,e||t]]);return this.setMatrix(a),this},r.prototype.rotate=function(t){var e=this.getMatrix(),n=Vr(e,[["r",t]]);return this.setMatrix(n),this},r.prototype.rotateAtStart=function(t){var e=this.attr(),n=e.x,a=e.y,o=this.getMatrix(),s=Vr(o,[["t",-n,-a],["r",t],["t",n,a]]);return this.setMatrix(s),this},r.prototype.rotateAtPoint=function(t,e,n){var a=this.getMatrix(),o=Vr(a,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(o),this},r}(Pn),Js={},Wa="_INDEX";function Mu(i,r){if(i.set("canvas",r),i.isGroup()){var t=i.get("children");t.length&&t.forEach(function(e){Mu(e,r)})}}function Su(i,r){if(i.set("timeline",r),i.isGroup()){var t=i.get("children");t.length&&t.forEach(function(e){Su(e,r)})}}function og(i,r,t){t===void 0&&(t=!0),t?r.destroy():(r.set("parent",null),r.set("canvas",null)),pu(i.getChildren(),r)}function sg(i){return function(r,t){var e=i(r,t);return e===0?r[Wa]-t[Wa]:e}}var Au=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.isCanvas=function(){return!1},r.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,a=-1/0,o=this.getChildren().filter(function(l){return l.get("visible")&&(!l.isGroup()||l.isGroup()&&l.getChildren().length>0)});o.length>0?M(o,function(l){var h=l.getBBox(),u=h.minX,c=h.maxX,f=h.minY,v=h.maxY;u<t&&(t=u),c>e&&(e=c),f<n&&(n=f),v>a&&(a=v)}):(t=0,e=0,n=0,a=0);var s={x:t,y:n,minX:t,minY:n,maxX:e,maxY:a,width:e-t,height:a-n};return s},r.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,a=-1/0,o=this.getChildren().filter(function(l){return l.get("visible")&&(!l.isGroup()||l.isGroup()&&l.getChildren().length>0)});o.length>0?M(o,function(l){var h=l.getCanvasBBox(),u=h.minX,c=h.maxX,f=h.minY,v=h.maxY;u<t&&(t=u),c>e&&(e=c),f<n&&(n=f),v>a&&(a=v)}):(t=0,e=0,n=0,a=0);var s={x:t,y:n,minX:t,minY:n,maxX:e,maxY:a,width:e-t,height:a-n};return s},r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return t.children=[],t},r.prototype.onAttrChange=function(t,e,n){if(i.prototype.onAttrChange.call(this,t,e,n),t==="matrix"){var a=this.getTotalMatrix();this._applyChildrenMarix(a)}},r.prototype.applyMatrix=function(t){var e=this.getTotalMatrix();i.prototype.applyMatrix.call(this,t);var n=this.getTotalMatrix();n!==e&&this._applyChildrenMarix(n)},r.prototype._applyChildrenMarix=function(t){var e=this.getChildren();M(e,function(n){n.applyMatrix(t)})},r.prototype.addShape=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],a=t[1];Q(n)?a=n:a.type=n;var o=Js[a.type];o||(o=or(a.type),Js[a.type]=o);var s=this.getShapeBase(),l=new s[o](a);return this.add(l),l},r.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],a=t[1],o;if(R(n))a?o=new n(a):o=new n({parent:this});else{var s=n||{},l=this.getGroupBase();o=new l(s)}return this.add(o),o},r.prototype.getCanvas=function(){var t;return this.isCanvas()?t=this:t=this.get("canvas"),t},r.prototype.getShape=function(t,e,n){if(!li(this))return null;var a=this.getChildren(),o;if(this.isCanvas())o=this._findShape(a,t,e,n);else{var s=[t,e,1];s=this.invertFromMatrix(s),this.isClipped(s[0],s[1])||(o=this._findShape(a,s[0],s[1],n))}return o},r.prototype._findShape=function(t,e,n,a){for(var o=null,s=t.length-1;s>=0;s--){var l=t[s];if(li(l)&&(l.isGroup()?o=l.getShape(e,n,a):l.isHit(e,n)&&(o=l)),o)break}return o},r.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),a=this.get("timeline"),o=t.getParent();o&&og(o,t,!1),t.set("parent",this),e&&Mu(t,e),a&&Su(t,a),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},r.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},r.prototype.getChildren=function(){return this.get("children")},r.prototype.sort=function(){var t=this.getChildren();M(t,function(e,n){return e[Wa]=n,e}),t.sort(sg(function(e,n){return e.get("zIndex")-n.get("zIndex")})),this.onCanvasChange("sort")},r.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},r.prototype.destroy=function(){this.get("destroyed")||(this.clear(),i.prototype.destroy.call(this))},r.prototype.getFirst=function(){return this.getChildByIndex(0)},r.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},r.prototype.getChildByIndex=function(t){var e=this.getChildren();return e[t]},r.prototype.getCount=function(){var t=this.getChildren();return t.length},r.prototype.contain=function(t){var e=this.getChildren();return e.indexOf(t)>-1},r.prototype.removeChild=function(t,e){e===void 0&&(e=!0),this.contain(t)&&t.remove(e)},r.prototype.findAll=function(t){var e=[],n=this.getChildren();return M(n,function(a){t(a)&&e.push(a),a.isGroup()&&(e=e.concat(a.findAll(t)))}),e},r.prototype.find=function(t){var e=null,n=this.getChildren();return M(n,function(a){if(t(a)?e=a:a.isGroup()&&(e=a.find(t)),e)return!1}),e},r.prototype.findById=function(t){return this.find(function(e){return e.get("id")===t})},r.prototype.findByClassName=function(t){return this.find(function(e){return e.get("className")===t})},r.prototype.findAllByName=function(t){return this.findAll(function(e){return e.get("name")===t})},r}(Cu),bu={};function lg(i){return bu[i.toLowerCase()]||Bv[i]}function Tu(i,r){bu[i.toLowerCase()]=r}var hg=function(i){return["fill","stroke","fillStyle","strokeStyle"].includes(i)},ug=function(i){return/^[r,R,L,l]{1}[\s]*\(/.test(i)},tl=[1,0,0,0,1,0,0,0,1];function cg(i,r,t){var e={},n=r.fromAttrs,a=r.toAttrs;if(!i.destroyed){var o;for(var s in a)if(!st(n[s],a[s]))if(s==="path"){var l=a[s],h=n[s];l.length>h.length?(l=gr(a[s]),h=gr(n[s]),h=fu(h,l),h=za(h,l),r.fromAttrs.path=h,r.toAttrs.path=l):r.pathFormatted||(l=gr(a[s]),h=gr(n[s]),h=za(h,l),r.fromAttrs.path=h,r.toAttrs.path=l,r.pathFormatted=!0),e[s]=[];for(var u=0;u<l.length;u++){for(var c=l[u],f=h[u],v=[],p=0;p<c.length;p++)W(c[p])&&f&&W(f[p])?(o=Es(f[p],c[p]),v.push(o(t))):v.push(c[p]);e[s].push(v)}}else if(s==="matrix"){var g=tv(n[s]||tl,a[s]||tl),d=g(t);e[s]=d}else hg(s)&&ug(a[s])?e[s]=a[s]:R(a[s])||(o=Es(n[s],a[s]),e[s]=o(t));i.attr(e)}}function fg(i,r,t){var e=r.startTime,n=r.delay;if(t<e+n||r._paused)return!1;var a,o=r.duration,s=r.easing,l=lg(s);if(t=t-e-r.delay,r.repeat)a=t%o/o,a=l(a);else if(a=t/o,a<1)a=l(a);else return r.onFrame?i.attr(r.onFrame(1)):i.attr(r.toAttrs),!0;if(r.onFrame){var h=r.onFrame(a);i.attr(h)}else cg(i,r,a);return!1}var vg=function(){function i(r){this.animators=[],this.current=0,this.timer=null,this.canvas=r}return i.prototype.initTimer=function(){var r=this,t=!1,e,n,a;this.timer=ev(function(o){if(r.current=o,r.animators.length>0){for(var s=r.animators.length-1;s>=0;s--){if(e=r.animators[s],e.destroyed){r.removeAnimator(s);continue}if(!e.isAnimatePaused()){n=e.get("animations");for(var l=n.length-1;l>=0;l--)a=n[l],t=fg(e,a,o),t&&(n.splice(l,1),t=!1,a.callback&&a.callback())}n.length===0&&r.removeAnimator(s)}var h=r.canvas.get("autoDraw");h||r.canvas.draw()}})},i.prototype.addAnimator=function(r){this.animators.push(r)},i.prototype.removeAnimator=function(r){this.animators.splice(r,1)},i.prototype.isAnimating=function(){return!!this.animators.length},i.prototype.stop=function(){this.timer&&this.timer.stop()},i.prototype.stopAllAnimations=function(r){r===void 0&&(r=!0),this.animators.forEach(function(t){t.stopAnimate(r)}),this.animators=[],this.canvas.draw()},i.prototype.getTime=function(){return this.current},i}(),pg=40,el=0,rl=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function il(i,r,t){t.name=r,t.target=i,t.currentTarget=i,t.delegateTarget=i,i.emit(r,t)}function gg(i,r,t){if(t.bubbles){var e=void 0,n=!1;if(r==="mouseenter"?(e=t.fromShape,n=!0):r==="mouseleave"&&(n=!0,e=t.toShape),i.isCanvas()&&n)return;if(e&&gu(i,e)){t.bubbles=!1;return}t.name=r,t.currentTarget=i,t.delegateTarget=i,i.emit(r,t)}}var dg=function(){function i(r){var t=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(e){var n=e.type;t._triggerEvent(n,e)},this._onDocumentMove=function(e){var n=t.canvas,a=n.get("el");if(a!==e.target&&(t.dragging||t.currentShape)){var o=t._getPointInfo(e);t.dragging&&t._emitEvent("drag",e,o,t.draggingShape)}},this._onDocumentMouseUp=function(e){var n=t.canvas,a=n.get("el");if(a!==e.target&&t.dragging){var o=t._getPointInfo(e);t.draggingShape&&t._emitEvent("drop",e,o,null),t._emitEvent("dragend",e,o,t.draggingShape),t._afterDrag(t.draggingShape,o,e)}},this.canvas=r.canvas}return i.prototype.init=function(){this._bindEvents()},i.prototype._bindEvents=function(){var r=this,t=this.canvas.get("el");M(rl,function(e){t.addEventListener(e,r._eventCallback)}),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},i.prototype._clearEvents=function(){var r=this,t=this.canvas.get("el");M(rl,function(e){t.removeEventListener(e,r._eventCallback)}),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},i.prototype._getEventObj=function(r,t,e,n,a,o){var s=new Mi(r,t);return s.fromShape=a,s.toShape=o,s.x=e.x,s.y=e.y,s.clientX=e.clientX,s.clientY=e.clientY,s.propagationPath.push(n),s},i.prototype._getShape=function(r,t){return this.canvas.getShape(r.x,r.y,t)},i.prototype._getPointInfo=function(r){var t=this.canvas,e=t.getClientByEvent(r),n=t.getPointByEvent(r);return{x:n.x,y:n.y,clientX:e.x,clientY:e.y}},i.prototype._triggerEvent=function(r,t){var e=this._getPointInfo(t),n=this._getShape(e,t),a=this["_on"+r],o=!1;if(a)a.call(this,e,n,t);else{var s=this.currentShape;r==="mouseenter"||r==="dragenter"||r==="mouseover"?(this._emitEvent(r,t,e,null,null,n),n&&this._emitEvent(r,t,e,n,null,n),r==="mouseenter"&&this.draggingShape&&this._emitEvent("dragenter",t,e,null)):r==="mouseleave"||r==="dragleave"||r==="mouseout"?(o=!0,s&&this._emitEvent(r,t,e,s,s,null),this._emitEvent(r,t,e,null,s,null),r==="mouseleave"&&this.draggingShape&&this._emitEvent("dragleave",t,e,null)):this._emitEvent(r,t,e,n,null,null)}if(o||(this.currentShape=n),n&&!n.get("destroyed")){var l=this.canvas,h=l.get("el");h.style.cursor=n.attr("cursor")||l.get("cursor")}},i.prototype._onmousedown=function(r,t,e){e.button===el&&(this.mousedownShape=t,this.mousedownPoint=r,this.mousedownTimeStamp=e.timeStamp),this._emitEvent("mousedown",e,r,t,null,null)},i.prototype._emitMouseoverEvents=function(r,t,e,n){var a=this.canvas.get("el");e!==n&&(e&&(this._emitEvent("mouseout",r,t,e,e,n),this._emitEvent("mouseleave",r,t,e,e,n),(!n||n.get("destroyed"))&&(a.style.cursor=this.canvas.get("cursor"))),n&&(this._emitEvent("mouseover",r,t,n,e,n),this._emitEvent("mouseenter",r,t,n,e,n)))},i.prototype._emitDragoverEvents=function(r,t,e,n,a){n?(n!==e&&(e&&this._emitEvent("dragleave",r,t,e,e,n),this._emitEvent("dragenter",r,t,n,e,n)),a||this._emitEvent("dragover",r,t,n)):e&&this._emitEvent("dragleave",r,t,e,e,n),a&&this._emitEvent("dragover",r,t,n)},i.prototype._afterDrag=function(r,t,e){r&&(r.set("capture",!0),this.draggingShape=null),this.dragging=!1;var n=this._getShape(t,e);n!==r&&this._emitMouseoverEvents(e,t,r,n),this.currentShape=n},i.prototype._onmouseup=function(r,t,e){if(e.button===el){var n=this.draggingShape;this.dragging?(n&&this._emitEvent("drop",e,r,t),this._emitEvent("dragend",e,r,n),this._afterDrag(n,r,e)):(this._emitEvent("mouseup",e,r,t),t===this.mousedownShape&&this._emitEvent("click",e,r,t),this.mousedownShape=null,this.mousedownPoint=null)}},i.prototype._ondragover=function(r,t,e){e.preventDefault();var n=this.currentShape;this._emitDragoverEvents(e,r,n,t,!0)},i.prototype._onmousemove=function(r,t,e){var n=this.canvas,a=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(e,r,a,t,!1),this._emitEvent("drag",e,r,o);else{var s=this.mousedownPoint;if(s){var l=this.mousedownShape,h=e.timeStamp,u=h-this.mousedownTimeStamp,c=s.clientX-r.clientX,f=s.clientY-r.clientY,v=c*c+f*f;u>120||v>pg?l&&l.get("draggable")?(o=this.mousedownShape,o.set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",e,r,o),this.mousedownShape=null,this.mousedownPoint=null):!l&&n.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",e,r,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(e,r,a,t),this._emitEvent("mousemove",e,r,t)):(this._emitMouseoverEvents(e,r,a,t),this._emitEvent("mousemove",e,r,t))}else this._emitMouseoverEvents(e,r,a,t),this._emitEvent("mousemove",e,r,t)}},i.prototype._emitEvent=function(r,t,e,n,a,o){var s=this._getEventObj(r,t,e,n,a,o);if(n){s.shape=n,il(n,r,s);for(var l=n.getParent();l;)l.emitDelegation(r,s),s.propagationStopped||gg(l,r,s),s.propagationPath.push(l),l=l.getParent()}else{var h=this.canvas;il(h,r,s)}},i.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},i}(),nl="px",al=du(),yg=al&&al.name==="firefox",Dn=function(i){T(r,i);function r(t){var e=i.call(this,t)||this;return e.initContainer(),e.initDom(),e.initEvents(),e.initTimeline(),e}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return t.cursor="default",t.supportCSSTransform=!1,t},r.prototype.initContainer=function(){var t=this.get("container");H(t)&&(t=document.getElementById(t),this.set("container",t))},r.prototype.initDom=function(){var t=this.createDom();this.set("el",t);var e=this.get("container");e.appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},r.prototype.initEvents=function(){var t=new dg({canvas:this});t.init(),this.set("eventController",t)},r.prototype.initTimeline=function(){var t=new vg(this);this.set("timeline",t)},r.prototype.setDOMSize=function(t,e){var n=this.get("el");Us&&(n.style.width=t+nl,n.style.height=e+nl)},r.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},r.prototype.getRenderer=function(){return this.get("renderer")},r.prototype.getCursor=function(){return this.get("cursor")},r.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");Us&&e&&(e.style.cursor=t)},r.prototype.getPointByEvent=function(t){var e=this.get("supportCSSTransform");if(e){if(yg&&!E(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!E(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var n=this.getClientByEvent(t),a=n.x,o=n.y;return this.getPointByClient(a,o)},r.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(t.type==="touchend"?e=t.changedTouches[0]:e=t.touches[0]),{x:e.clientX,y:e.clientY}},r.prototype.getPointByClient=function(t,e){var n=this.get("el"),a=n.getBoundingClientRect();return{x:t-a.left,y:e-a.top}},r.prototype.getClientByPoint=function(t,e){var n=this.get("el"),a=n.getBoundingClientRect();return{x:t+a.left,y:e+a.top}},r.prototype.draw=function(){},r.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},r.prototype.clearEvents=function(){var t=this.get("eventController");t.destroy()},r.prototype.isCanvas=function(){return!0},r.prototype.getParent=function(){return null},r.prototype.destroy=function(){var t=this.get("timeline");this.get("destroyed")||(this.clear(),t&&t.stop(),this.clearEvents(),this.removeDom(),i.prototype.destroy.call(this))},r}(Au),Rn=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.isGroup=function(){return!0},r.prototype.isEntityGroup=function(){return!1},r.prototype.clone=function(){for(var t=i.prototype.clone.call(this),e=this.getChildren(),n=0;n<e.length;n++){var a=e[n];t.add(a.clone())}return t},r}(Au),Yn=function(i){T(r,i);function r(t){return i.call(this,t)||this}return r.prototype._isInBBox=function(t,e){var n=this.getBBox();return n.minX<=t&&n.maxX>=t&&n.minY<=e&&n.maxY>=e},r.prototype.afterAttrsChange=function(t){i.prototype.afterAttrsChange.call(this,t),this.clearCacheBBox()},r.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},r.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},r.prototype.applyMatrix=function(t){i.prototype.applyMatrix.call(this,t),this.set("canvasBBox",null)},r.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,a=t.minY,o=t.maxX,s=t.maxY;if(e){var l=fe(e,[t.minX,t.minY]),h=fe(e,[t.maxX,t.minY]),u=fe(e,[t.minX,t.maxY]),c=fe(e,[t.maxX,t.maxY]);n=Math.min(l[0],h[0],u[0],c[0]),o=Math.max(l[0],h[0],u[0],c[0]),a=Math.min(l[1],h[1],u[1],c[1]),s=Math.max(l[1],h[1],u[1],c[1])}var f=this.attrs;if(f.shadowColor){var v=f.shadowBlur,p=v===void 0?0:v,g=f.shadowOffsetX,d=g===void 0?0:g,y=f.shadowOffsetY,w=y===void 0?0:y,x=n-p+d,C=o+p+d,S=a-p+w,b=s+p+w;n=Math.min(n,x),o=Math.max(o,C),a=Math.min(a,S),s=Math.max(s,b)}return{x:n,y:a,minX:n,minY:a,maxX:o,maxY:s,width:o-n,height:s-a}},r.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},r.prototype.isClipShape=function(){return this.get("isClipShape")},r.prototype.isInShape=function(t,e){return!1},r.prototype.isOnlyHitBox=function(){return!1},r.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),a=this.get("endArrowShape"),o=[t,e,1];o=this.invertFromMatrix(o);var s=o[0],l=o[1],h=this._isInBBox(s,l);return this.isOnlyHitBox()?h:!!(h&&!this.isClipped(s,l)&&(this.isInShape(s,l)||n&&n.isHit(s,l)||a&&a.isHit(s,l)))},r}(Cu),Lu=new Map;function $t(i,r){Lu.set(i,r)}function Gn(i){return Lu.get(i)}function Eu(i){var r=i.attr(),t=r.x,e=r.y,n=r.width,a=r.height;return{x:t,y:e,width:n,height:a}}function Bu(i){var r=i.attr(),t=r.x,e=r.y,n=r.r;return{x:t-n,y:e-n,width:n*2,height:n*2}}function Mt(i,r,t,e){var n=i-t,a=r-e;return Math.sqrt(n*n+a*a)}function ln(i,r){return Math.abs(i-r)<.001}function kr(i,r){var t=oe(i),e=oe(r),n=Qt(i),a=Qt(r);return{x:t,y:e,width:n-t,height:a-e}}function Hn(i){return(i+Math.PI*2)%(Math.PI*2)}const ft={box:function(i,r,t,e){return kr([i,t],[r,e])},length:function(i,r,t,e){return Mt(i,r,t,e)},pointAt:function(i,r,t,e,n){return{x:(1-n)*i+n*t,y:(1-n)*r+n*e}},pointDistance:function(i,r,t,e,n,a){var o=(t-i)*(n-i)+(e-r)*(a-r);if(o<0)return Mt(i,r,n,a);var s=(t-i)*(t-i)+(e-r)*(e-r);return o>s?Mt(t,e,n,a):this.pointToLine(i,r,t,e,n,a)},pointToLine:function(i,r,t,e,n,a){var o=[t-i,e-r];if(qp(o,[0,0]))return Math.sqrt((n-i)*(n-i)+(a-r)*(a-r));var s=[-o[1],o[0]];mu(s,s);var l=[n-i,a-r];return Math.abs(xu(l,s))},tangentAngle:function(i,r,t,e){return Math.atan2(e-r,t-i)}};var mg=1e-4;function Iu(i,r,t,e,n,a){var o,s=1/0,l=[t,e],h=20;a&&a>200&&(h=a/10);for(var u=1/h,c=u/10,f=0;f<=h;f++){var v=f*u,p=[n.apply(null,i.concat([v])),n.apply(null,r.concat([v]))],g=Mt(l[0],l[1],p[0],p[1]);g<s&&(o=v,s=g)}if(o===0)return{x:i[0],y:r[0]};if(o===1){var d=i.length;return{x:i[d-1],y:r[d-1]}}s=1/0;for(var f=0;f<32&&!(c<mg);f++){var y=o-c,w=o+c,p=[n.apply(null,i.concat([y])),n.apply(null,r.concat([y]))],g=Mt(l[0],l[1],p[0],p[1]);if(y>=0&&g<s)o=y,s=g;else{var x=[n.apply(null,i.concat([w])),n.apply(null,r.concat([w]))],C=Mt(l[0],l[1],x[0],x[1]);w<=1&&C<s?(o=w,s=C):c*=.5}}return{x:n.apply(null,i.concat([o])),y:n.apply(null,r.concat([o]))}}function xg(i,r){for(var t=0,e=i.length,n=0;n<e;n++){var a=i[n],o=r[n],s=i[(n+1)%e],l=r[(n+1)%e];t+=Mt(a,o,s,l)}return t/2}function Ae(i,r,t,e){var n=1-e;return n*n*i+2*e*n*r+e*e*t}function ol(i,r,t){var e=i+t-2*r;if(ln(e,0))return[.5];var n=(i-r)/e;return n<=1&&n>=0?[n]:[]}function sl(i,r,t,e){return 2*(1-e)*(r-i)+2*e*(t-r)}function ku(i,r,t,e,n,a,o){var s=Ae(i,t,n,o),l=Ae(r,e,a,o),h=ft.pointAt(i,r,t,e,o),u=ft.pointAt(t,e,n,a,o);return[[i,r,h.x,h.y,s,l],[s,l,u.x,u.y,n,a]]}function _a(i,r,t,e,n,a,o){if(o===0)return(Mt(i,r,t,e)+Mt(t,e,n,a)+Mt(i,r,n,a))/2;var s=ku(i,r,t,e,n,a,.5),l=s[0],h=s[1];return l.push(o-1),h.push(o-1),_a.apply(null,l)+_a.apply(null,h)}const Pu={box:function(i,r,t,e,n,a){var o=ol(i,t,n)[0],s=ol(r,e,a)[0],l=[i,n],h=[r,a];return o!==void 0&&l.push(Ae(i,t,n,o)),s!==void 0&&h.push(Ae(r,e,a,s)),kr(l,h)},length:function(i,r,t,e,n,a){return _a(i,r,t,e,n,a,3)},nearestPoint:function(i,r,t,e,n,a,o,s){return Iu([i,t,n],[r,e,a],o,s,Ae)},pointDistance:function(i,r,t,e,n,a,o,s){var l=this.nearestPoint(i,r,t,e,n,a,o,s);return Mt(l.x,l.y,o,s)},interpolationAt:Ae,pointAt:function(i,r,t,e,n,a,o){return{x:Ae(i,t,n,o),y:Ae(r,e,a,o)}},divide:function(i,r,t,e,n,a,o){return ku(i,r,t,e,n,a,o)},tangentAngle:function(i,r,t,e,n,a,o){var s=sl(i,t,n,o),l=sl(r,e,a,o),h=Math.atan2(l,s);return Hn(h)}};function be(i,r,t,e,n){var a=1-n;return a*a*a*i+3*r*n*a*a+3*t*n*n*a+e*n*n*n}function ll(i,r,t,e,n){var a=1-n;return 3*(a*a*(r-i)+2*a*n*(t-r)+n*n*(e-t))}function pa(i,r,t,e){var n=-3*i+9*r-9*t+3*e,a=6*i-12*r+6*t,o=3*r-3*i,s=[],l,h,u;if(ln(n,0))ln(a,0)||(l=-o/a,l>=0&&l<=1&&s.push(l));else{var c=a*a-4*n*o;ln(c,0)?s.push(-a/(2*n)):c>0&&(u=Math.sqrt(c),l=(-a+u)/(2*n),h=(-a-u)/(2*n),l>=0&&l<=1&&s.push(l),h>=0&&h<=1&&s.push(h))}return s}function Fu(i,r,t,e,n,a,o,s,l){var h=be(i,t,n,o,l),u=be(r,e,a,s,l),c=ft.pointAt(i,r,t,e,l),f=ft.pointAt(t,e,n,a,l),v=ft.pointAt(n,a,o,s,l),p=ft.pointAt(c.x,c.y,f.x,f.y,l),g=ft.pointAt(f.x,f.y,v.x,v.y,l);return[[i,r,c.x,c.y,p.x,p.y,h,u],[h,u,g.x,g.y,v.x,v.y,o,s]]}function $a(i,r,t,e,n,a,o,s,l){if(l===0)return xg([i,t,n,o],[r,e,a,s]);var h=Fu(i,r,t,e,n,a,o,s,.5),u=h[0],c=h[1];return u.push(l-1),c.push(l-1),$a.apply(null,u)+$a.apply(null,c)}const Qr={extrema:pa,box:function(i,r,t,e,n,a,o,s){for(var l=[i,o],h=[r,s],u=pa(i,t,n,o),c=pa(r,e,a,s),f=0;f<u.length;f++)l.push(be(i,t,n,o,u[f]));for(var f=0;f<c.length;f++)h.push(be(r,e,a,s,c[f]));return kr(l,h)},length:function(i,r,t,e,n,a,o,s){return $a(i,r,t,e,n,a,o,s,3)},nearestPoint:function(i,r,t,e,n,a,o,s,l,h,u){return Iu([i,t,n,o],[r,e,a,s],l,h,be,u)},pointDistance:function(i,r,t,e,n,a,o,s,l,h,u){var c=this.nearestPoint(i,r,t,e,n,a,o,s,l,h,u);return Mt(c.x,c.y,l,h)},interpolationAt:be,pointAt:function(i,r,t,e,n,a,o,s,l){return{x:be(i,t,n,o,l),y:be(r,e,a,s,l)}},divide:function(i,r,t,e,n,a,o,s,l){return Fu(i,r,t,e,n,a,o,s,l)},tangentAngle:function(i,r,t,e,n,a,o,s,l){var h=ll(i,t,n,o,l),u=ll(r,e,a,s,l);return Hn(Math.atan2(u,h))}};function hl(i,r){var t=Math.abs(i);return r>0?t:t*-1}const wg={box:function(i,r,t,e){return{x:i-t,y:r-e,width:t*2,height:e*2}},length:function(i,r,t,e){return Math.PI*(3*(t+e)-Math.sqrt((3*t+e)*(t+3*e)))},nearestPoint:function(i,r,t,e,n,a){var o=t,s=e;if(o===0||s===0)return{x:i,y:r};for(var l=n-i,h=a-r,u=Math.abs(l),c=Math.abs(h),f=o*o,v=s*s,p=Math.PI/4,g,d,y=0;y<4;y++){g=o*Math.cos(p),d=s*Math.sin(p);var w=(f-v)*Math.pow(Math.cos(p),3)/o,x=(v-f)*Math.pow(Math.sin(p),3)/s,C=g-w,S=d-x,b=u-w,L=c-x,B=Math.hypot(S,C),P=Math.hypot(L,b),F=B*Math.asin((C*L-S*b)/(B*P)),D=F/Math.sqrt(f+v-g*g-d*d);p+=D,p=Math.min(Math.PI/2,Math.max(0,p))}return{x:i+hl(g,l),y:r+hl(d,h)}},pointDistance:function(i,r,t,e,n,a){var o=this.nearestPoint(i,r,t,e,n,a);return Mt(o.x,o.y,n,a)},pointAt:function(i,r,t,e,n){var a=2*Math.PI*n;return{x:i+t*Math.cos(a),y:r+e*Math.sin(a)}},tangentAngle:function(i,r,t,e,n){var a=2*Math.PI*n,o=Math.atan2(e*Math.cos(a),-t*Math.sin(a));return Hn(o)}};function Cg(i,r,t,e,n,a,o,s){return-1*t*Math.cos(n)*Math.sin(s)-e*Math.sin(n)*Math.cos(s)}function Mg(i,r,t,e,n,a,o,s){return-1*t*Math.sin(n)*Math.sin(s)+e*Math.cos(n)*Math.cos(s)}function Sg(i,r,t){return Math.atan(-r/i*Math.tan(t))}function Ag(i,r,t){return Math.atan(r/(i*Math.tan(t)))}function ul(i,r,t,e,n,a){return t*Math.cos(n)*Math.cos(a)-e*Math.sin(n)*Math.sin(a)+i}function cl(i,r,t,e,n,a){return t*Math.sin(n)*Math.cos(a)+e*Math.cos(n)*Math.sin(a)+r}function bg(i,r,t,e){var n=Math.atan2(e*i,t*r);return(n+Math.PI*2)%(Math.PI*2)}function fl(i,r,t){return{x:i*Math.cos(t),y:r*Math.sin(t)}}function vl(i,r,t){var e=Math.cos(t),n=Math.sin(t);return[i*e-r*n,i*n+r*e]}const Tg={box:function(i,r,t,e,n,a,o){for(var s=Sg(t,e,n),l=1/0,h=-1/0,u=[a,o],c=-Math.PI*2;c<=Math.PI*2;c+=Math.PI){var f=s+c;a<o?a<f&&f<o&&u.push(f):o<f&&f<a&&u.push(f)}for(var c=0;c<u.length;c++){var v=ul(i,r,t,e,n,u[c]);v<l&&(l=v),v>h&&(h=v)}for(var p=Ag(t,e,n),g=1/0,d=-1/0,y=[a,o],c=-Math.PI*2;c<=Math.PI*2;c+=Math.PI){var w=p+c;a<o?a<w&&w<o&&y.push(w):o<w&&w<a&&y.push(w)}for(var c=0;c<y.length;c++){var x=cl(i,r,t,e,n,y[c]);x<g&&(g=x),x>d&&(d=x)}return{x:l,y:g,width:h-l,height:d-g}},length:function(i,r,t,e,n,a,o){},nearestPoint:function(i,r,t,e,n,a,o,s,l){var h=vl(s-i,l-r,-n),u=h[0],c=h[1],f=wg.nearestPoint(0,0,t,e,u,c),v=bg(t,e,f.x,f.y);v<a?f=fl(t,e,a):v>o&&(f=fl(t,e,o));var p=vl(f.x,f.y,n);return{x:p[0]+i,y:p[1]+r}},pointDistance:function(i,r,t,e,n,a,o,s,l){var h=this.nearestPoint(i,r,t,e,s,l);return Mt(h.x,h.y,s,l)},pointAt:function(i,r,t,e,n,a,o,s){var l=(o-a)*s+a;return{x:ul(i,r,t,e,n,l),y:cl(i,r,t,e,n,l)}},tangentAngle:function(i,r,t,e,n,a,o,s){var l=(o-a)*s+a,h=Cg(i,r,t,e,n,a,o,l),u=Mg(i,r,t,e,n,a,o,l);return Hn(Math.atan2(u,h))}};function Ou(i){for(var r=0,t=[],e=0;e<i.length-1;e++){var n=i[e],a=i[e+1],o=Mt(n[0],n[1],a[0],a[1]),s={from:n,to:a,length:o};t.push(s),r+=o}return{segments:t,totalLength:r}}function Lg(i){if(i.length<2)return 0;for(var r=0,t=0;t<i.length-1;t++){var e=i[t],n=i[t+1];r+=Mt(e[0],e[1],n[0],n[1])}return r}function Eg(i,r){if(r>1||r<0||i.length<2)return null;var t=Ou(i),e=t.segments,n=t.totalLength;if(n===0)return{x:i[0][0],y:i[0][1]};for(var a=0,o=null,s=0;s<e.length;s++){var l=e[s],h=l.from,u=l.to,c=l.length/n;if(r>=a&&r<=a+c){var f=(r-a)/c;o=ft.pointAt(h[0],h[1],u[0],u[1],f);break}a+=c}return o}function Bg(i,r){if(r>1||r<0||i.length<2)return 0;for(var t=Ou(i),e=t.segments,n=t.totalLength,a=0,o=0,s=0;s<e.length;s++){var l=e[s],h=l.from,u=l.to,c=l.length/n;if(r>=a&&r<=a+c){o=Math.atan2(u[1]-h[1],u[0]-h[0]);break}a+=c}return o}function Ig(i,r,t){for(var e=1/0,n=0;n<i.length-1;n++){var a=i[n],o=i[n+1],s=ft.pointDistance(a[0],a[1],o[0],o[1],r,t);s<e&&(e=s)}return e}const Du={box:function(i){for(var r=[],t=[],e=0;e<i.length;e++){var n=i[e];r.push(n[0]),t.push(n[1])}return kr(r,t)},length:function(i){return Lg(i)},pointAt:function(i,r){return Eg(i,r)},pointDistance:function(i,r,t){return Ig(i,r,t)},tangentAngle:function(i,r){return Bg(i,r)}};function pl(i,r){return!i||!r?i||r:{minX:Math.min(i.minX,r.minX),minY:Math.min(i.minY,r.minY),maxX:Math.max(i.maxX,r.maxX),maxY:Math.max(i.maxY,r.maxY)}}function Po(i,r){var t=i.get("startArrowShape"),e=i.get("endArrowShape"),n=null,a=null;return t&&(n=t.getCanvasBBox(),r=pl(r,n)),e&&(a=e.getCanvasBBox(),r=pl(r,a)),r}function kg(i){for(var r=i.attr(),t=r.points,e=[],n=[],a=0;a<t.length;a++){var o=t[a];e.push(o[0]),n.push(o[1])}var s=kr(e,n),l=s.x,h=s.y,u=s.width,c=s.height,f={minX:l,minY:h,maxX:l+u,maxY:h+c};return f=Po(i,f),{x:f.minX,y:f.minY,width:f.maxX-f.minX,height:f.maxY-f.minY}}function Pg(i){for(var r=i.attr(),t=r.points,e=[],n=[],a=0;a<t.length;a++){var o=t[a];e.push(o[0]),n.push(o[1])}return kr(e,n)}var ga=null;function Vn(){if(!ga){var i=document.createElement("canvas");i.width=1,i.height=1,ga=i.getContext("2d")}return ga}function Xn(i,r,t){var e=1;if(H(i)&&(e=i.split("\n").length),e>1){var n=Fg(r,t);return r*e+n*(e-1)}return r}function Fg(i,r){return r?r-i:i*.14}function Og(i,r){var t=Vn(),e=0;if(E(i)||i==="")return e;if(t.save(),t.font=r,H(i)&&i.includes("\n")){var n=i.split("\n");M(n,function(a){var o=t.measureText(a).width;e<o&&(e=o)})}else e=t.measureText(i).width;return t.restore(),e}function zn(i){var r=i.fontSize,t=i.fontFamily,e=i.fontWeight,n=i.fontStyle,a=i.fontVariant;return[n,a,e,r+"px",t].join(" ").trim()}function Dg(i){var r=i.attr(),t=r.x,e=r.y,n=r.text,a=r.fontSize,o=r.lineHeight,s=r.font;s||(s=zn(r));var l=Og(n,s),h;if(!l)h={x:t,y:e,width:0,height:0};else{var u=r.textAlign,c=r.textBaseline,f=Xn(n,a,o),v={x:t,y:e-f};u&&(u==="end"||u==="right"?v.x-=l:u==="center"&&(v.x-=l/2)),c&&(c==="top"?v.y+=f:c==="middle"&&(v.y+=f/2)),h={x:v.x,y:v.y,width:l,height:f}}return h}var Rg=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/ig,Yg=/[^\s\,]+/ig;function Gg(i){var r=i||[];if(I(r))return r;if(H(r))return r=r.match(Rg),M(r,function(t,e){if(t=t.match(Yg),t[0].length>1){var n=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=n}M(t,function(a,o){isNaN(a)||(t[o]=+a)}),r[e]=t}),r}function Hg(i,r,t,e){var n=[],a=!!e,o,s,l,h,u,c,f;if(a){l=e[0],h=e[1];for(var v=0,p=i.length;v<p;v+=1){var g=i[v];l=It([0,0],l,g),h=kt([0,0],h,g)}}for(var v=0,d=i.length;v<d;v+=1){var g=i[v];if(v===0&&!t)f=g;else if(v===d-1&&!t)c=g,n.push(f),n.push(c);else{var y=[v?v-1:d-1,v-1][t?0:1];o=i[y],s=i[t?(v+1)%d:v+1];var w=[0,0];w=wr(w,s,o),w=Wt(w,w,r);var x=pn(g,o),C=pn(g,s),S=x+C;S!==0&&(x/=S,C/=S);var b=Wt([0,0],w,-x),L=Wt([0,0],w,C);c=Be([0,0],g,b),u=Be([0,0],g,L),u=It([0,0],u,kt([0,0],s,g)),u=kt([0,0],u,It([0,0],s,g)),b=wr([0,0],u,g),b=Wt([0,0],b,-x/C),c=Be([0,0],g,b),c=It([0,0],c,kt([0,0],o,g)),c=kt([0,0],c,It([0,0],o,g)),L=wr([0,0],g,c),L=Wt([0,0],L,C/x),u=Be([0,0],g,L),a&&(c=kt([0,0],c,l),c=It([0,0],c,h),u=kt([0,0],u,l),u=It([0,0],u,h)),n.push(f),n.push(c),f=u}}return t&&n.push(n.shift()),n}function Vg(i,r,t){r===void 0&&(r=!1),t===void 0&&(t=[[0,0],[1,1]]);for(var e=!!r,n=[],a=0,o=i.length;a<o;a+=2)n.push([i[a],i[a+1]]);for(var s=Hg(n,.4,e,t),l=n.length,h=[],u,c,f,a=0;a<l-1;a+=1)u=s[a*2],c=s[a*2+1],f=n[a+1],h.push(["C",u[0],u[1],c[0],c[1],f[0],f[1]]);return e&&(u=s[l],c=s[l+1],f=n[0],h.push(["C",u[0],u[1],c[0],c[1],f[0],f[1]])),h}var Kr=" \n\v\f\r   ᠎              \u2028\u2029",Xg=new RegExp("([a-z])["+Kr+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+Kr+"]*,?["+Kr+"]*)+)","ig"),zg=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+Kr+"]*,?["+Kr+"]*","ig");function Ru(i){if(!i)return null;if(I(i))return i;var r={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},t=[];return String(i).replace(Xg,function(e,n,a){var o=[],s=n.toLowerCase();if(a.replace(zg,function(l,h){h&&o.push(+h)}),s==="m"&&o.length>2&&(t.push([n].concat(o.splice(0,2))),s="l",n=n==="m"?"l":"L"),s==="o"&&o.length===1&&t.push([n,o[0]]),s==="r")t.push([n].concat(o));else for(;o.length>=r[s]&&(t.push([n].concat(o.splice(0,r[s]))),!!r[s]););return""}),t}var Ng=/[a-z]/;function gl(i,r){return[r[0]+(r[0]-i[0]),r[1]+(r[1]-i[1])]}function Yu(i){var r=Ru(i);if(!r||!r.length)return[["M",0,0]];for(var t=!1,e=0;e<r.length;e++){var n=r[e][0];if(Ng.test(n)||["V","H","T","S"].indexOf(n)>=0){t=!0;break}}if(!t)return r;var a=[],o=0,s=0,l=0,h=0,u=0,c=r[0];(c[0]==="M"||c[0]==="m")&&(o=+c[1],s=+c[2],l=o,h=s,u++,a[0]=["M",o,s]);for(var e=u,f=r.length;e<f;e++){var v=r[e],p=a[e-1],g=[],n=v[0],d=n.toUpperCase();if(n!==d)switch(g[0]=d,d){case"A":g[1]=v[1],g[2]=v[2],g[3]=v[3],g[4]=v[4],g[5]=v[5],g[6]=+v[6]+o,g[7]=+v[7]+s;break;case"V":g[1]=+v[1]+s;break;case"H":g[1]=+v[1]+o;break;case"M":l=+v[1]+o,h=+v[2]+s,g[1]=l,g[2]=h;break;default:for(var y=1,w=v.length;y<w;y++)g[y]=+v[y]+(y%2?o:s)}else g=r[e];switch(d){case"Z":o=+l,s=+h;break;case"H":o=g[1],g=["L",o,s];break;case"V":s=g[1],g=["L",o,s];break;case"T":o=g[1],s=g[2];var x=gl([p[1],p[2]],[p[3],p[4]]);g=["Q",x[0],x[1],o,s];break;case"S":o=g[g.length-2],s=g[g.length-1];var C=p.length,S=gl([p[C-4],p[C-3]],[p[C-2],p[C-1]]);g=["C",S[0],S[1],g[1],g[2],o,s];break;case"M":l=g[g.length-2],h=g[g.length-1];break;default:o=g[g.length-2],s=g[g.length-1]}a.push(g)}return a}function Hi(i){return Math.sqrt(i[0]*i[0]+i[1]*i[1])}function Ua(i,r){return Hi(i)*Hi(r)?(i[0]*r[0]+i[1]*r[1])/(Hi(i)*Hi(r)):1}function dl(i,r){return(i[0]*r[1]<i[1]*r[0]?-1:1)*Math.acos(Ua(i,r))}function ja(i,r){return i[0]===r[0]&&i[1]===r[1]}function Wg(i,r){var t=r[1],e=r[2],n=So(Ao(r[3]),Math.PI*2),a=r[4],o=r[5],s=i[0],l=i[1],h=r[6],u=r[7],c=Math.cos(n)*(s-h)/2+Math.sin(n)*(l-u)/2,f=-1*Math.sin(n)*(s-h)/2+Math.cos(n)*(l-u)/2,v=c*c/(t*t)+f*f/(e*e);v>1&&(t*=Math.sqrt(v),e*=Math.sqrt(v));var p=t*t*(f*f)+e*e*(c*c),g=p?Math.sqrt((t*t*(e*e)-p)/p):1;a===o&&(g*=-1),isNaN(g)&&(g=0);var d=e?g*t*f/e:0,y=t?g*-e*c/t:0,w=(s+h)/2+Math.cos(n)*d-Math.sin(n)*y,x=(l+u)/2+Math.sin(n)*d+Math.cos(n)*y,C=[(c-d)/t,(f-y)/e],S=[(-1*c-d)/t,(-1*f-y)/e],b=dl([1,0],C),L=dl(C,S);return Ua(C,S)<=-1&&(L=Math.PI),Ua(C,S)>=1&&(L=0),o===0&&L>0&&(L=L-2*Math.PI),o===1&&L<0&&(L=L+2*Math.PI),{cx:w,cy:x,rx:ja(i,[h,u])?0:t,ry:ja(i,[h,u])?0:e,startAngle:b,endAngle:b+L,xRotation:n,arcFlag:a,sweepFlag:o}}function yl(i,r){return[r[0]+(r[0]-i[0]),r[1]+(r[1]-i[1])]}function Gu(i){i=Gg(i);for(var r=[],t=null,e=null,n=null,a=0,o=i.length,s=0;s<o;s++){var l=i[s];e=i[s+1];var h=l[0],u={command:h,prePoint:t,params:l,startTangent:null,endTangent:null};switch(h){case"M":n=[l[1],l[2]],a=s;break;case"A":var c=Wg(t,l);u.arcParams=c;break}if(h==="Z")t=n,e=i[a+1];else{var f=l.length;t=[l[f-2],l[f-1]]}e&&e[0]==="Z"&&(e=i[a],r[a]&&(r[a].prePoint=t)),u.currentPoint=t,r[a]&&ja(t,r[a].currentPoint)&&(r[a].prePoint=u.prePoint);var v=e?[e[e.length-2],e[e.length-1]]:null;u.nextPoint=v;var p=u.prePoint;if(["L","H","V"].includes(h))u.startTangent=[p[0]-t[0],p[1]-t[1]],u.endTangent=[t[0]-p[0],t[1]-p[1]];else if(h==="Q"){var g=[l[1],l[2]];u.startTangent=[p[0]-g[0],p[1]-g[1]],u.endTangent=[t[0]-g[0],t[1]-g[1]]}else if(h==="T"){var d=r[s-1],g=yl(d.currentPoint,p);d.command==="Q"?(u.command="Q",u.startTangent=[p[0]-g[0],p[1]-g[1]],u.endTangent=[t[0]-g[0],t[1]-g[1]]):(u.command="TL",u.startTangent=[p[0]-t[0],p[1]-t[1]],u.endTangent=[t[0]-p[0],t[1]-p[1]])}else if(h==="C"){var y=[l[1],l[2]],w=[l[3],l[4]];u.startTangent=[p[0]-y[0],p[1]-y[1]],u.endTangent=[t[0]-w[0],t[1]-w[1]],u.startTangent[0]===0&&u.startTangent[1]===0&&(u.startTangent=[y[0]-w[0],y[1]-w[1]]),u.endTangent[0]===0&&u.endTangent[1]===0&&(u.endTangent=[w[0]-y[0],w[1]-y[1]])}else if(h==="S"){var d=r[s-1],y=yl(d.currentPoint,p),w=[l[1],l[2]];d.command==="C"?(u.command="C",u.startTangent=[p[0]-y[0],p[1]-y[1]],u.endTangent=[t[0]-w[0],t[1]-w[1]]):(u.command="SQ",u.startTangent=[p[0]-w[0],p[1]-w[1]],u.endTangent=[t[0]-w[0],t[1]-w[1]])}else if(h==="A"){var x=.001,C=u.arcParams||{},S=C.cx,b=S===void 0?0:S,L=C.cy,B=L===void 0?0:L,P=C.rx,F=P===void 0?0:P,D=C.ry,Y=D===void 0?0:D,z=C.sweepFlag,q=z===void 0?0:z,ut=C.startAngle,at=ut===void 0?0:ut,St=C.endAngle,lt=St===void 0?0:St;q===0&&(x*=-1);var U=F*Math.cos(at-x)+b,ye=Y*Math.sin(at-x)+B;u.startTangent=[U-n[0],ye-n[1]];var xt=F*Math.cos(at+lt+x)+b,Ne=Y*Math.sin(at+lt-x)+B;u.endTangent=[p[0]-xt,p[1]-Ne]}r.push(u)}return r}var ml=function(i,r,t){return i>=r&&i<=t};function _g(i,r,t,e){var n=.001,a={x:t.x-i.x,y:t.y-i.y},o={x:r.x-i.x,y:r.y-i.y},s={x:e.x-t.x,y:e.y-t.y},l=o.x*s.y-o.y*s.x,h=l*l,u=o.x*o.x+o.y*o.y,c=s.x*s.x+s.y*s.y,f=null;if(h>n*u*c){var v=(a.x*s.y-a.y*s.x)/l,p=(a.x*o.y-a.y*o.x)/l;ml(v,0,1)&&ml(p,0,1)&&(f={x:i.x+v*o.x,y:i.y+v*o.y})}return f}var $g=1e-6;function da(i){return Math.abs(i)<$g?0:i<0?-1:1}function Ug(i,r,t){return(t[0]-i[0])*(r[1]-i[1])===(r[0]-i[0])*(t[1]-i[1])&&Math.min(i[0],r[0])<=t[0]&&t[0]<=Math.max(i[0],r[0])&&Math.min(i[1],r[1])<=t[1]&&t[1]<=Math.max(i[1],r[1])}function xl(i,r,t){var e=!1,n=i.length;if(n<=2)return!1;for(var a=0;a<n;a++){var o=i[a],s=i[(a+1)%n];if(Ug(o,s,[r,t]))return!0;da(o[1]-t)>0!=da(s[1]-t)>0&&da(r-(t-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(e=!e)}return e}function wl(i){for(var r=[],t=i.length,e=0;e<t-1;e++){var n=i[e],a=i[e+1];r.push({from:{x:n[0],y:n[1]},to:{x:a[0],y:a[1]}})}if(r.length>1){var o=i[0],s=i[t-1];r.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return r}function jg(i,r){var t=!1;return M(i,function(e){if(_g(e.from,e.to,r.from,r.to))return t=!0,!1}),t}function Cl(i){var r=i.map(function(e){return e[0]}),t=i.map(function(e){return e[1]});return{minX:Math.min.apply(null,r),maxX:Math.max.apply(null,r),minY:Math.min.apply(null,t),maxY:Math.max.apply(null,t)}}function qg(i,r){return!(r.minX>i.maxX||r.maxX<i.minX||r.minY>i.maxY||r.maxY<i.minY)}function Zg(i,r){if(i.length<2||r.length<2)return!1;var t=Cl(i),e=Cl(r);if(!qg(t,e))return!1;var n=!1;if(M(r,function(l){if(xl(i,l[0],l[1]))return n=!0,!1}),n||(M(i,function(l){if(xl(r,l[0],l[1]))return n=!0,!1}),n))return!0;var a=wl(i),o=wl(r),s=!1;return M(o,function(l){if(jg(a,l))return s=!0,!1}),s}function Qg(i,r){for(var t=[],e=[],n=[],a=0;a<i.length;a++){var o=i[a],s=o.currentPoint,l=o.params,h=o.prePoint,u=void 0;switch(o.command){case"Q":u=Pu.box(h[0],h[1],l[1],l[2],l[3],l[4]);break;case"C":u=Qr.box(h[0],h[1],l[1],l[2],l[3],l[4],l[5],l[6]);break;case"A":var c=o.arcParams;u=Tg.box(c.cx,c.cy,c.rx,c.ry,c.xRotation,c.startAngle,c.endAngle);break;default:t.push(s[0]),e.push(s[1]);break}u&&(o.box=u,t.push(u.x,u.x+u.width),e.push(u.y,u.y+u.height)),r&&(o.command==="L"||o.command==="M")&&o.prePoint&&o.nextPoint&&n.push(o)}t=t.filter(function(y){return!Number.isNaN(y)&&y!==1/0&&y!==-1/0}),e=e.filter(function(y){return!Number.isNaN(y)&&y!==1/0&&y!==-1/0});var f=oe(t),v=oe(e),p=Qt(t),g=Qt(e);if(n.length===0)return{x:f,y:v,width:p-f,height:g-v};for(var a=0;a<n.length;a++){var o=n[a],s=o.currentPoint,d=void 0;s[0]===f?(d=Vi(o,r),f=f-d.xExtra):s[0]===p&&(d=Vi(o,r),p=p+d.xExtra),s[1]===v?(d=Vi(o,r),v=v-d.yExtra):s[1]===g&&(d=Vi(o,r),g=g+d.yExtra)}return{x:f,y:v,width:p-f,height:g-v}}function Vi(i,r){var t=i.prePoint,e=i.currentPoint,n=i.nextPoint,a=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2),o=Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2),s=Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2),l=Math.acos((a+o-s)/(2*Math.sqrt(a)*Math.sqrt(o)));if(!l||Math.sin(l)===0||yt(l,0))return{xExtra:0,yExtra:0};var h=Math.abs(Math.atan2(n[1]-e[1],n[0]-e[0])),u=Math.abs(Math.atan2(n[0]-e[0],n[1]-e[1]));h=h>Math.PI/2?Math.PI-h:h,u=u>Math.PI/2?Math.PI-u:u;var c={xExtra:Math.cos(l/2-h)*(r/2*(1/Math.sin(l/2)))-r/2||0,yExtra:Math.cos(u-l/2)*(r/2*(1/Math.sin(l/2)))-r/2||0};return c}function Kg(i){var r=i.attr(),t=r.path,e=r.stroke,n=e?r.lineWidth:0,a=i.get("segments")||Gu(t),o=Qg(a,n),s=o.x,l=o.y,h=o.width,u=o.height,c={minX:s,minY:l,maxX:s+h,maxY:l+u};return c=Po(i,c),{x:c.minX,y:c.minY,width:c.maxX-c.minX,height:c.maxY-c.minY}}function Jg(i){var r=i.attr(),t=r.x1,e=r.y1,n=r.x2,a=r.y2,o=Math.min(t,n),s=Math.max(t,n),l=Math.min(e,a),h=Math.max(e,a),u={minX:o,maxX:s,minY:l,maxY:h};return u=Po(i,u),{x:u.minX,y:u.minY,width:u.maxX-u.minX,height:u.maxY-u.minY}}function td(i){var r=i.attr(),t=r.x,e=r.y,n=r.rx,a=r.ry;return{x:t-n,y:e-a,width:n*2,height:a*2}}$t("rect",Eu);$t("image",Eu);$t("circle",Bu);$t("marker",Bu);$t("polyline",kg);$t("polygon",Pg);$t("text",Dg);$t("path",Kg);$t("line",Jg);$t("ellipse",td);var Ml=0,ed=1/2,rd=1/2,id=.05,Nn=function(){function i(r){var t=r.xField,e=r.yField,n=r.adjustNames,a=n===void 0?["x","y"]:n;this.adjustNames=a,this.xField=t,this.yField=e}return i.prototype.isAdjust=function(r){return this.adjustNames.indexOf(r)>=0},i.prototype.getAdjustRange=function(r,t,e){var n=this.yField,a=e.indexOf(t),o=e.length,s,l;return!n&&this.isAdjust("y")?(s=0,l=1):o>1?(s=e[a===0?0:a-1],l=e[a===o-1?o-1:a+1],a!==0?s+=(t-s)/2:s-=(l-t)/2,a!==o-1?l-=(l-t)/2:l+=(t-e[o-2])/2):(s=t===0?0:t-.5,l=t===0?1:t+.5),{pre:s,next:l}},i.prototype.adjustData=function(r,t){var e=this,n=this.getDimValues(t);M(r,function(a,o){M(n,function(s,l){e.adjustDim(l,s,a,o)})})},i.prototype.groupData=function(r,t){return M(r,function(e){e[t]===void 0&&(e[t]=Ml)}),He(r,t)},i.prototype.adjustDim=function(r,t,e,n){},i.prototype.getDimValues=function(r){var t=this,e=t.xField,n=t.yField,a={},o=[];if(e&&this.isAdjust("x")&&o.push(e),n&&this.isAdjust("y")&&o.push(n),o.forEach(function(l){a[l]=ge(r,l).sort(function(h,u){return h-u})}),!n&&this.isAdjust("y")){var s="y";a[s]=[Ml,1]}return a},i}(),Hu={},Vu=function(i){return Hu[i.toLowerCase()]},Wn=function(i,r){if(Vu(i))throw new Error("Adjust type '"+i+"' existed.");Hu[i.toLowerCase()]=r};/*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation.
3
-
4
- Permission to use, copy, modify, and/or distribute this software for any
5
- purpose with or without fee is hereby granted.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
- PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */var qa=function(i,r){return qa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},qa(i,r)};function _n(i,r){qa(i,r);function t(){this.constructor=i}i.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}var ie=function(){return ie=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=t[a])}return r},ie.apply(this,arguments)},nd=function(i){_n(r,i);function r(t){var e=i.call(this,t)||this;e.cacheMap={},e.adjustDataArray=[],e.mergeData=[];var n=t.marginRatio,a=n===void 0?ed:n,o=t.dodgeRatio,s=o===void 0?rd:o,l=t.dodgeBy,h=t.intervalPadding,u=t.dodgePadding,c=t.xDimensionLength,f=t.groupNum,v=t.defaultSize,p=t.maxColumnWidth,g=t.minColumnWidth,d=t.columnWidthRatio;return e.marginRatio=a,e.dodgeRatio=s,e.dodgeBy=l,e.intervalPadding=h,e.dodgePadding=u,e.xDimensionLegenth=c,e.groupNum=f,e.defaultSize=v,e.maxColumnWidth=p,e.minColumnWidth=g,e.columnWidthRatio=d,e}return r.prototype.process=function(t){var e=Rt(t),n=Vt(e),a=this.dodgeBy,o=a?Vv(n,a):e;return this.cacheMap={},this.adjustDataArray=o,this.mergeData=n,this.adjustData(o,n),this.adjustDataArray=[],this.mergeData=[],e},r.prototype.adjustDim=function(t,e,n,a){var o=this,s=this.getDistribution(t),l=this.groupData(n,t);return M(l,function(h,u){var c;e.length===1?c={pre:e[0]-1,next:e[0]+1}:c=o.getAdjustRange(t,parseFloat(u),e),M(h,function(f){var v=f[t],p=s[v],g=p.indexOf(a);f[t]=o.getDodgeOffset(c,g,p.length)})}),[]},r.prototype.getDodgeOffset=function(t,e,n){var a=this,o=a.dodgeRatio,s=a.marginRatio,l=a.intervalPadding,h=a.dodgePadding,u=t.pre,c=t.next,f=c-u,v;if(!E(l)&&E(h)&&l>=0){var p=this.getIntervalOnlyOffset(n,e);v=u+p}else if(!E(h)&&E(l)&&h>=0){var p=this.getDodgeOnlyOffset(n,e);v=u+p}else if(!E(l)&&!E(h)&&l>=0&&h>=0){var p=this.getIntervalAndDodgeOffset(n,e);v=u+p}else{var g=f*o/n,d=s*g,p=1/2*(f-n*g-(n-1)*d)+((e+1)*g+e*d)-1/2*g-1/2*f;v=(u+c)/2+p}return v},r.prototype.getIntervalOnlyOffset=function(t,e){var n=this,a=n.defaultSize,o=n.intervalPadding,s=n.xDimensionLegenth,l=n.groupNum,h=n.dodgeRatio,u=n.maxColumnWidth,c=n.minColumnWidth,f=n.columnWidthRatio,v=o/s,p=(1-(l-1)*v)/l*h/(t-1),g=((1-v*(l-1))/l-p*(t-1))/t;if(g=E(f)?g:1/l/t*f,!E(u)){var d=u/s;g=Math.min(g,d)}if(!E(c)){var y=c/s;g=Math.max(g,y)}g=a?a/s:g,p=((1-(l-1)*v)/l-t*g)/(t-1);var w=((1/2+e)*g+e*p+1/2*v)*l-v/2;return w},r.prototype.getDodgeOnlyOffset=function(t,e){var n=this,a=n.defaultSize,o=n.dodgePadding,s=n.xDimensionLegenth,l=n.groupNum,h=n.marginRatio,u=n.maxColumnWidth,c=n.minColumnWidth,f=n.columnWidthRatio,v=o/s,p=1*h/(l-1),g=((1-p*(l-1))/l-v*(t-1))/t;if(g=f?1/l/t*f:g,!E(u)){var d=u/s;g=Math.min(g,d)}if(!E(c)){var y=c/s;g=Math.max(g,y)}g=a?a/s:g,p=(1-(g*t+v*(t-1))*l)/(l-1);var w=((1/2+e)*g+e*v+1/2*p)*l-p/2;return w},r.prototype.getIntervalAndDodgeOffset=function(t,e){var n=this,a=n.intervalPadding,o=n.dodgePadding,s=n.xDimensionLegenth,l=n.groupNum,h=a/s,u=o/s,c=((1-h*(l-1))/l-u*(t-1))/t,f=((1/2+e)*c+e*u+1/2*h)*l-h/2;return f},r.prototype.getDistribution=function(t){var e=this.adjustDataArray,n=this.cacheMap,a=n[t];return a||(a={},M(e,function(o,s){var l=ge(o,t);l.length||l.push(0),M(l,function(h){a[h]||(a[h]=[]),a[h].push(s)})}),n[t]=a),a},r}(Nn);function ad(i,r){return(r-i)*Math.random()+i}var od=function(i){_n(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.process=function(t){var e=Rt(t),n=Vt(e);return this.adjustData(e,n),e},r.prototype.adjustDim=function(t,e,n){var a=this,o=this.groupData(n,t);return M(o,function(s,l){return a.adjustGroup(s,t,parseFloat(l),e)})},r.prototype.getAdjustOffset=function(t){var e=t.pre,n=t.next,a=(n-e)*id;return ad(e+a,n-a)},r.prototype.adjustGroup=function(t,e,n,a){var o=this,s=this.getAdjustRange(e,n,a);return M(t,function(l){l[e]=o.getAdjustOffset(s)}),t},r}(Nn),ya=np,sd=function(i){_n(r,i);function r(t){var e=i.call(this,t)||this,n=t.adjustNames,a=n===void 0?["y"]:n,o=t.height,s=o===void 0?NaN:o,l=t.size,h=l===void 0?10:l,u=t.reverseOrder,c=u===void 0?!1:u;return e.adjustNames=a,e.height=s,e.size=h,e.reverseOrder=c,e}return r.prototype.process=function(t){var e=this,n=e.yField,a=e.reverseOrder,o=n?this.processStack(t):this.processOneDimStack(t);return a?this.reverse(o):o},r.prototype.reverse=function(t){return t.slice(0).reverse()},r.prototype.processStack=function(t){var e=this,n=e.xField,a=e.yField,o=e.reverseOrder,s=o?this.reverse(t):t,l=new ya,h=new ya;return s.map(function(u){return u.map(function(c){var f,v=A(c,n,0),p=A(c,[a]),g=v.toString();if(p=I(p)?p[1]:p,!E(p)){var d=p>=0?l:h;d.has(g)||d.set(g,0);var y=d.get(g),w=p+y;return d.set(g,w),ie(ie({},c),(f={},f[a]=[y,w],f))}return c})})},r.prototype.processOneDimStack=function(t){var e=this,n=this,a=n.xField,o=n.height,s=n.reverseOrder,l="y",h=s?this.reverse(t):t,u=new ya;return h.map(function(c){return c.map(function(f){var v,p=e.size,g=f[a],d=p*2/o;u.has(g)||u.set(g,d/2);var y=u.get(g);return u.set(g,y+d),ie(ie({},f),(v={},v[l]=y,v))})})},r}(Nn),ld=function(i){_n(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.process=function(t){var e=Vt(t),n=this,a=n.xField,o=n.yField,s=this.getXValuesMaxMap(e),l=Math.max.apply(Math,Object.keys(s).map(function(h){return s[h]}));return At(t,function(h){return At(h,function(u){var c,f,v=u[o],p=u[a];if(I(v)){var g=(l-s[p])/2;return ie(ie({},u),(c={},c[o]=At(v,function(y){return g+y}),c))}var d=(l-v)/2;return ie(ie({},u),(f={},f[o]=[d,v+d],f))})})},r.prototype.getXValuesMaxMap=function(t){var e=this,n=this,a=n.xField,o=n.yField,s=He(t,function(l){return l[a]});return tp(s,function(l){return e.getDimMaxValue(l,o)})},r.prototype.getDimMaxValue=function(t,e){var n=At(t,function(o){return A(o,e,[])}),a=Vt(n);return Math.max.apply(Math,a)},r}(Nn);Wn("Dodge",nd);Wn("Jitter",od);Wn("Stack",sd);Wn("Symmetric",ld);var Sl=function(i,r){return H(r)?r:i.invert(i.scale(r))},Si=function(){function i(r){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(r)}return i.prototype.mapping=function(){for(var r=this,t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.map(function(a,o){return r._toOriginParam(a,r.scales[o])});return this.callback.apply(this,n)},i.prototype.getLinearValue=function(r){var t=this.values.length-1,e=Math.floor(t*r),n=t*r-e,a=this.values[e],o=e===t?a:this.values[e+1];return a+(o-a)*n},i.prototype.getNames=function(){for(var r=this.scales,t=this.names,e=Math.min(r.length,t.length),n=[],a=0;a<e;a+=1)n.push(t[a]);return n},i.prototype.getFields=function(){return this.scales.map(function(r){return r.field})},i.prototype.getScale=function(r){return this.scales[this.names.indexOf(r)]},i.prototype.defaultCallback=function(){for(var r=this,t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.length===0?this.values:t.map(function(n,a){var o=r.scales[a];return o.type==="identity"?o.values[0]:r._getAttributeValue(o,n)})},i.prototype._parseCfg=function(r){var t=this,e=r.type,n=e===void 0?"base":e,a=r.names,o=a===void 0?[]:a,s=r.scales,l=s===void 0?[]:s,h=r.values,u=h===void 0?[]:h,c=r.callback;this.type=n,this.scales=l,this.values=u,this.names=o,this.callback=function(){for(var f=[],v=0;v<arguments.length;v++)f[v]=arguments[v];if(c){var p=c.apply(void 0,f);if(!E(p))return[p]}return t.defaultCallback.apply(t,f)}},i.prototype._getAttributeValue=function(r,t){if(r.isCategory&&!this.linear){var e=r.translate(t);return this.values[e%this.values.length]}var n=r.scale(t);return this.getLinearValue(n)},i.prototype._toOriginParam=function(r,t){return t.isLinear?r:I(r)?r.map(function(e){return Sl(t,e)}):Sl(t,r)},i}();/*! *****************************************************************************
15
- Copyright (c) Microsoft Corporation.
16
-
17
- Permission to use, copy, modify, and/or distribute this software for any
18
- purpose with or without fee is hereby granted.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
21
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
22
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
23
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
24
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
25
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
26
- PERFORMANCE OF THIS SOFTWARE.
27
- ***************************************************************************** */var Za=function(i,r){return Za=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},Za(i,r)};function Ai(i,r){Za(i,r);function t(){this.constructor=i}i.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}var hd=/rgba?\(([\s.,0-9]+)\)/,ud=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,cd=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,fd=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,vd=function(i){return/^[r,R,L,l]{1}[\s]*\(/.test(i)},pd=function(){var i=document.createElement("i");return i.title="Web Colour Picker",i.style.display="none",document.body.appendChild(i),i},ma=function(i,r,t,e){return i[e]+(r[e]-i[e])*t};function Xu(i){return"#"+xa(i[0])+xa(i[1])+xa(i[2])}var zu=function(i){return[parseInt(i.substr(1,2),16),parseInt(i.substr(3,2),16),parseInt(i.substr(5,2),16)]},xa=function(i){var r=Math.round(i).toString(16);return r.length===1?"0"+r:r},gd=function(i,r){var t=isNaN(Number(r))||r<0?0:r>1?1:Number(r),e=i.length-1,n=Math.floor(e*t),a=e*t-n,o=i[n],s=n===e?o:i[n+1];return Xu([ma(o,s,a,0),ma(o,s,a,1),ma(o,s,a,2)])},Xi,Nu=function(i){if(i[0]==="#"&&i.length===7)return i;Xi||(Xi=pd()),Xi.style.color=i;var r=document.defaultView.getComputedStyle(Xi,"").getPropertyValue("color"),t=hd.exec(r),e=t[1].split(/\s*,\s*/).map(function(n){return Number(n)});return r=Xu(e),r},dd=function(i){var r=H(i)?i.split("-"):i,t=At(r,function(e){return zu(e.indexOf("#")===-1?Nu(e):e)});return function(e){return gd(t,e)}},yd=function(i){if(vd(i)){var r,t=void 0;if(i[0]==="l"){var e=ud.exec(i),n=+e[1]+90;t=e[2],r="linear-gradient("+n+"deg, "}else if(i[0]==="r"){r="radial-gradient(";var e=cd.exec(i);t=e[4]}var a=t.match(fd);return M(a,function(o,s){var l=o.split(":");r+=l[1]+" "+l[0]*100+"%",s!==a.length-1&&(r+=", ")}),r+=")",r}return i};const ui={rgb2arr:zu,gradient:dd,toRGB:kn(Nu),toCSSGradient:yd};var md=function(i){Ai(r,i);function r(t){var e=i.call(this,t)||this;return e.type="color",e.names=["color"],H(e.values)&&(e.linear=!0),e.gradient=ui.gradient(e.values),e}return r.prototype.getLinearValue=function(t){return this.gradient(t)},r}(Si),xd=function(i){Ai(r,i);function r(t){var e=i.call(this,t)||this;return e.type="opacity",e.names=["opacity"],e}return r}(Si),wd=function(i){Ai(r,i);function r(t){var e=i.call(this,t)||this;return e.names=["x","y"],e.type="position",e}return r.prototype.mapping=function(t,e){var n=this.scales,a=n[0],o=n[1];return E(t)||E(e)?[]:[I(t)?t.map(function(s){return a.scale(s)}):a.scale(t),I(e)?e.map(function(s){return o.scale(s)}):o.scale(e)]},r}(Si),Cd=function(i){Ai(r,i);function r(t){var e=i.call(this,t)||this;return e.type="shape",e.names=["shape"],e}return r.prototype.getLinearValue=function(t){var e=Math.round((this.values.length-1)*t);return this.values[e]},r}(Si),Md=function(i){Ai(r,i);function r(t){var e=i.call(this,t)||this;return e.type="size",e.names=["size"],e}return r}(Si),Wu={};function Sd(i){return Wu[i]}function le(i,r){Wu[i]=r}var Ad=function(){function i(r){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=r,this.initCfg(),this.init()}return i.prototype.translate=function(r){return r},i.prototype.change=function(r){rt(this.__cfg__,r),this.init()},i.prototype.clone=function(){return this.constructor(this.__cfg__)},i.prototype.getTicks=function(){var r=this;return At(this.ticks,function(t,e){return Q(t)?t:{text:r.getText(t,e),tickValue:t,value:r.scale(t)}})},i.prototype.getText=function(r,t){var e=this.formatter,n=e?e(r,t):r;return E(n)||!R(n.toString)?"":n.toString()},i.prototype.getConfig=function(r){return this.__cfg__[r]},i.prototype.init=function(){rt(this,this.__cfg__),this.setDomain(),se(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},i.prototype.initCfg=function(){},i.prototype.setDomain=function(){},i.prototype.calculateTicks=function(){var r=this.tickMethod,t=[];if(H(r)){var e=Sd(r);if(!e)throw new Error("There is no method to to calculate ticks!");t=e(this)}else R(r)&&(t=r(this));return t},i.prototype.rangeMin=function(){return this.range[0]},i.prototype.rangeMax=function(){return this.range[1]},i.prototype.calcPercent=function(r,t,e){return W(r)?(r-t)/(e-t):NaN},i.prototype.calcValue=function(r,t,e){return t+r*(e-t)},i}();const Fo=Ad;var $n=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.type="cat",t.isCategory=!0,t}return r.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var t=0;t<this.values.length;t++)this.translateIndexMap.set(this.values[t],t)}},r.prototype.translate=function(t){this.buildIndexMap();var e=this.translateIndexMap.get(t);return e===void 0&&(e=W(t)?t:NaN),e},r.prototype.scale=function(t){var e=this.translate(t),n=this.calcPercent(e,this.min,this.max);return this.calcValue(n,this.rangeMin(),this.rangeMax())},r.prototype.invert=function(t){var e=this.max-this.min,n=this.calcPercent(t,this.rangeMin(),this.rangeMax()),a=Math.round(e*n)+this.min;return a<this.min||a>this.max?NaN:this.values[a]},r.prototype.getText=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var a=t;return W(t)&&!this.values.includes(t)&&(a=this.values[a]),i.prototype.getText.apply(this,ai([a],e))},r.prototype.initCfg=function(){this.tickMethod="cat"},r.prototype.setDomain=function(){if(E(this.getConfig("min"))&&(this.min=0),E(this.getConfig("max"))){var t=this.values.length;this.max=t>1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},r}(Fo),_u=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,Se="[1-9]\\d?",Ce="\\d\\d",bd="\\d{3}",Td="\\d{4}",Jr="[^\\s]+",$u=/\[([^]*?)\]/gm;function Uu(i,r){for(var t=[],e=0,n=i.length;e<n;e++)t.push(i[e].substr(0,r));return t}var Al=function(i){return function(r,t){var e=t[i].map(function(a){return a.toLowerCase()}),n=e.indexOf(r.toLowerCase());return n>-1?n:null}};function Re(i){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];for(var e=0,n=r;e<n.length;e++){var a=n[e];for(var o in a)i[o]=a[o]}return i}var ju=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],qu=["January","February","March","April","May","June","July","August","September","October","November","December"],Ld=Uu(qu,3),Ed=Uu(ju,3),Oo={dayNamesShort:Ed,dayNames:ju,monthNamesShort:Ld,monthNames:qu,amPm:["am","pm"],DoFn:function(i){return i+["th","st","nd","rd"][i%10>3?0:(i-i%10!==10?1:0)*i%10]}},gn=Re({},Oo),Zu=function(i){return gn=Re(gn,i)},bl=function(i){return i.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},Tt=function(i,r){for(r===void 0&&(r=2),i=String(i);i.length<r;)i="0"+i;return i},Bd={D:function(i){return String(i.getDate())},DD:function(i){return Tt(i.getDate())},Do:function(i,r){return r.DoFn(i.getDate())},d:function(i){return String(i.getDay())},dd:function(i){return Tt(i.getDay())},ddd:function(i,r){return r.dayNamesShort[i.getDay()]},dddd:function(i,r){return r.dayNames[i.getDay()]},M:function(i){return String(i.getMonth()+1)},MM:function(i){return Tt(i.getMonth()+1)},MMM:function(i,r){return r.monthNamesShort[i.getMonth()]},MMMM:function(i,r){return r.monthNames[i.getMonth()]},YY:function(i){return Tt(String(i.getFullYear()),4).substr(2)},YYYY:function(i){return Tt(i.getFullYear(),4)},h:function(i){return String(i.getHours()%12||12)},hh:function(i){return Tt(i.getHours()%12||12)},H:function(i){return String(i.getHours())},HH:function(i){return Tt(i.getHours())},m:function(i){return String(i.getMinutes())},mm:function(i){return Tt(i.getMinutes())},s:function(i){return String(i.getSeconds())},ss:function(i){return Tt(i.getSeconds())},S:function(i){return String(Math.round(i.getMilliseconds()/100))},SS:function(i){return Tt(Math.round(i.getMilliseconds()/10),2)},SSS:function(i){return Tt(i.getMilliseconds(),3)},a:function(i,r){return i.getHours()<12?r.amPm[0]:r.amPm[1]},A:function(i,r){return i.getHours()<12?r.amPm[0].toUpperCase():r.amPm[1].toUpperCase()},ZZ:function(i){var r=i.getTimezoneOffset();return(r>0?"-":"+")+Tt(Math.floor(Math.abs(r)/60)*100+Math.abs(r)%60,4)},Z:function(i){var r=i.getTimezoneOffset();return(r>0?"-":"+")+Tt(Math.floor(Math.abs(r)/60),2)+":"+Tt(Math.abs(r)%60,2)}},Tl=function(i){return+i-1},Ll=[null,Se],El=[null,Jr],Bl=["isPm",Jr,function(i,r){var t=i.toLowerCase();return t===r.amPm[0]?0:t===r.amPm[1]?1:null}],Il=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(i){var r=(i+"").match(/([+-]|\d\d)/gi);if(r){var t=+r[1]*60+parseInt(r[2],10);return r[0]==="+"?t:-t}return 0}],Id={D:["day",Se],DD:["day",Ce],Do:["day",Se+Jr,function(i){return parseInt(i,10)}],M:["month",Se,Tl],MM:["month",Ce,Tl],YY:["year",Ce,function(i){var r=new Date,t=+(""+r.getFullYear()).substr(0,2);return+(""+(+i>68?t-1:t)+i)}],h:["hour",Se,void 0,"isPm"],hh:["hour",Ce,void 0,"isPm"],H:["hour",Se],HH:["hour",Ce],m:["minute",Se],mm:["minute",Ce],s:["second",Se],ss:["second",Ce],YYYY:["year",Td],S:["millisecond","\\d",function(i){return+i*100}],SS:["millisecond",Ce,function(i){return+i*10}],SSS:["millisecond",bd],d:Ll,dd:Ll,ddd:El,dddd:El,MMM:["month",Jr,Al("monthNamesShort")],MMMM:["month",Jr,Al("monthNames")],a:Bl,A:Bl,ZZ:Il,Z:Il},dn={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},Qu=function(i){return Re(dn,i)},Ku=function(i,r,t){if(r===void 0&&(r=dn.default),t===void 0&&(t={}),typeof i=="number"&&(i=new Date(i)),Object.prototype.toString.call(i)!=="[object Date]"||isNaN(i.getTime()))throw new Error("Invalid Date pass to format");r=dn[r]||r;var e=[];r=r.replace($u,function(a,o){return e.push(o),"@@@"});var n=Re(Re({},gn),t);return r=r.replace(_u,function(a){return Bd[a](i,n)}),r.replace(/@@@/g,function(){return e.shift()})};function Ju(i,r,t){if(t===void 0&&(t={}),typeof r!="string")throw new Error("Invalid format in fecha parse");if(r=dn[r]||r,i.length>1e3)return null;var e=new Date,n={year:e.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},a=[],o=[],s=r.replace($u,function(C,S){return o.push(bl(S)),"@@@"}),l={},h={};s=bl(s).replace(_u,function(C){var S=Id[C],b=S[0],L=S[1],B=S[3];if(l[b])throw new Error("Invalid format. "+b+" specified twice in format");return l[b]=!0,B&&(h[B]=!0),a.push(S),"("+L+")"}),Object.keys(h).forEach(function(C){if(!l[C])throw new Error("Invalid format. "+C+" is required in specified format")}),s=s.replace(/@@@/g,function(){return o.shift()});var u=i.match(new RegExp(s,"i"));if(!u)return null;for(var c=Re(Re({},gn),t),f=1;f<u.length;f++){var v=a[f-1],p=v[0],g=v[2],d=g?g(u[f],c):+u[f];if(d==null)return null;n[p]=d}n.isPm===1&&n.hour!=null&&+n.hour!=12?n.hour=+n.hour+12:n.isPm===0&&+n.hour==12&&(n.hour=0);for(var y=new Date(n.year,n.month,n.day,n.hour,n.minute,n.second,n.millisecond),w=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],f=0,x=w.length;f<x;f++)if(l[w[f][0]]&&n[w[f][0]]!==y[w[f][1]]())return null;return n.timezoneOffset==null?y:new Date(Date.UTC(n.year,n.month,n.day,n.hour,n.minute-n.timezoneOffset,n.second,n.millisecond))}var tc={format:Ku,parse:Ju,defaultI18n:Oo,setGlobalDateI18n:Zu,setGlobalDateMasks:Qu};const kd=Object.freeze(Object.defineProperty({__proto__:null,assign:Re,default:tc,defaultI18n:Oo,format:Ku,parse:Ju,setGlobalDateI18n:Zu,setGlobalDateMasks:Qu},Symbol.toStringTag,{value:"Module"}));function Pd(i){return function(r,t,e,n){for(var a=E(e)?0:e,o=E(n)?r.length:n;a<o;){var s=a+o>>>1;i(r[s])>t?o=s:a=s+1}return a}}var kl="format";function ec(i,r){var t=kd[kl]||tc[kl];return t(i,r)}function yn(i){return H(i)&&(i.indexOf("T")>0?i=new Date(i).getTime():i=new Date(i.replace(/-/gi,"/")).getTime()),tu(i)&&(i=i.getTime()),i}var Zt=1e3,Qe=60*Zt,Ke=60*Qe,ve=24*Ke,ti=ve*31,Pl=ve*365,Xr=[["HH:mm:ss",Zt],["HH:mm:ss",Zt*10],["HH:mm:ss",Zt*30],["HH:mm",Qe],["HH:mm",Qe*10],["HH:mm",Qe*30],["HH",Ke],["HH",Ke*6],["HH",Ke*12],["YYYY-MM-DD",ve],["YYYY-MM-DD",ve*4],["YYYY-WW",ve*7],["YYYY-MM",ti],["YYYY-MM",ti*4],["YYYY-MM",ti*6],["YYYY",ve*380]];function Fd(i,r,t){var e=(r-i)/t,n=Pd(function(o){return o[1]})(Xr,e)-1,a=Xr[n];return n<0?a=Xr[0]:n>=Xr.length&&(a=pt(Xr)),a}var Od=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.type="timeCat",t}return r.prototype.translate=function(t){t=yn(t);var e=this.values.indexOf(t);return e===-1&&(W(t)&&t<this.values.length?e=t:e=NaN),e},r.prototype.getText=function(t,e){var n=this.translate(t);if(n>-1){var a=this.values[n],o=this.formatter;return a=o?o(a,e):ec(a,this.mask),a}return t},r.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},r.prototype.setDomain=function(){var t=this.values;M(t,function(e,n){t[n]=yn(e)}),t.sort(function(e,n){return e-n}),i.prototype.setDomain.call(this)},r}($n),Un=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.isContinuous=!0,t}return r.prototype.scale=function(t){if(E(t))return NaN;var e=this.rangeMin(),n=this.rangeMax(),a=this.max,o=this.min;if(a===o)return e;var s=this.getScalePercent(t);return e+s*(n-e)},r.prototype.init=function(){i.prototype.init.call(this);var t=this.ticks,e=Yt(t),n=pt(t);e<this.min&&(this.min=e),n>this.max&&(this.max=n),E(this.minLimit)||(this.min=e),E(this.maxLimit)||(this.max=n)},r.prototype.setDomain=function(){var t=Ov(this.values),e=t.min,n=t.max;E(this.min)&&(this.min=e),E(this.max)&&(this.max=n),this.min>this.max&&(this.min=e,this.max=n)},r.prototype.calculateTicks=function(){var t=this,e=i.prototype.calculateTicks.call(this);return this.nice||(e=Ht(e,function(n){return n>=t.min&&n<=t.max})),e},r.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},r.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},r}(Fo),jn=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.type="linear",t.isLinear=!0,t}return r.prototype.invert=function(t){var e=this.getInvertPercent(t);return this.min+e*(this.max-this.min)},r.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},r}(Un);function Te(i,r){var t=Math.E,e;return r>=0?e=Math.pow(t,Math.log(r)/i):e=Math.pow(t,Math.log(-r)/i)*-1,e}function Nt(i,r){return i===1?1:Math.log(r)/Math.log(i)}function rc(i,r,t){E(t)&&(t=Math.max.apply(null,i));var e=t;return M(i,function(n){n>0&&n<e&&(e=n)}),e===t&&(e=t/r),e>1&&(e=1),e}var Dd=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.type="log",t}return r.prototype.invert=function(t){var e=this.base,n=Nt(e,this.max),a=this.rangeMin(),o=this.rangeMax()-a,s,l=this.positiveMin;if(l){if(t===0)return 0;s=Nt(e,l/e);var h=1/(n-s)*o;if(t<h)return t/h*l}else s=Nt(e,this.min);var u=(t-a)/o,c=u*(n-s)+s;return Math.pow(e,c)},r.prototype.initCfg=function(){this.tickMethod="log",this.base=10,this.tickCount=6,this.nice=!0},r.prototype.setDomain=function(){i.prototype.setDomain.call(this);var t=this.min;if(t<0)throw new Error("When you use log scale, the minimum value must be greater than zero!");t===0&&(this.positiveMin=rc(this.values,this.base,this.max))},r.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n||t<=0)return 0;var a=this.base,o=this.positiveMin;o&&(n=o*1/a);var s;return t<o?s=t/o/(Nt(a,e)-Nt(a,n)):s=(Nt(a,t)-Nt(a,n))/(Nt(a,e)-Nt(a,n)),s},r}(Un),Rd=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.type="pow",t}return r.prototype.invert=function(t){var e=this.getInvertPercent(t),n=this.exponent,a=Te(n,this.max),o=Te(n,this.min),s=e*(a-o)+o,l=s>=0?1:-1;return Math.pow(s,n)*l},r.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},r.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var a=this.exponent,o=(Te(a,t)-Te(a,n))/(Te(a,e)-Te(a,n));return o},r}(Un),Yd=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.type="time",t}return r.prototype.getText=function(t,e){var n=this.translate(t),a=this.formatter;return a?a(n,e):ec(n,this.mask)},r.prototype.scale=function(t){var e=t;return(H(e)||tu(e))&&(e=this.translate(e)),i.prototype.scale.call(this,e)},r.prototype.translate=function(t){return yn(t)},r.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},r.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),n=this.getConfig("max");if((!E(e)||!W(e))&&(this.min=this.translate(this.min)),(!E(n)||!W(n))&&(this.max=this.translate(this.max)),t&&t.length){var a=[],o=1/0,s=o,l=0;M(t,function(h){var u=yn(h);if(isNaN(u))throw new TypeError("Invalid Time: "+h+" in time scale!");o>u?(s=o,o=u):s>u&&(s=u),l<u&&(l=u),a.push(u)}),t.length>1&&(this.minTickInterval=s-o),E(e)&&(this.min=o),E(n)&&(this.max=l)}},r}(jn),ic=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.type="quantize",t}return r.prototype.invert=function(t){var e=this.ticks,n=e.length,a=this.getInvertPercent(t),o=Math.floor(a*(n-1));if(o>=n-1)return pt(e);if(o<0)return Yt(e);var s=e[o],l=e[o+1],h=o/(n-1),u=(o+1)/(n-1);return s+(a-h)/(u-h)*(l-s)},r.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},r.prototype.calculateTicks=function(){var t=i.prototype.calculateTicks.call(this);return this.nice||(pt(t)!==this.max&&t.push(this.max),Yt(t)!==this.min&&t.unshift(this.min)),t},r.prototype.getScalePercent=function(t){var e=this.ticks;if(t<Yt(e))return 0;if(t>pt(e))return 1;var n=0;return M(e,function(a,o){if(t>=a)n=o;else return!1}),n/(e.length-1)},r}(Un),Gd=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.type="quantile",t}return r.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},r}(ic),nc={};function Qa(i){return nc[i]}function he(i,r){if(Qa(i))throw new Error("type '"+i+"' existed.");nc[i]=r}var Hd=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.type="identity",t.isIdentity=!0,t}return r.prototype.calculateTicks=function(){return this.values},r.prototype.scale=function(t){return this.values[0]!==t&&W(t)?t:this.range[0]},r.prototype.invert=function(t){var e=this.range;return t<e[0]||t>e[1]?NaN:this.values[0]},r}(Fo);function fr(i){return Math.abs(i)<1e-15?i:parseFloat(i.toFixed(15))}var Vd=[1,5,2,2.5,4,3],Fl=Number.EPSILON*100;function Xd(i,r){return(i%r+r)%r}function zd(i){return Math.round(i*1e12)/1e12}function Nd(i,r,t,e,n,a){var o=Ft(r),s=nu(r,i),l=0,h=Xd(e,a);return(h<Fl||a-h<Fl)&&e<=0&&n>=0&&(l=1),1-s/(o-1)-t+l}function Wd(i,r,t){var e=Ft(r),n=nu(r,i),a=1;return 1-n/(e-1)-t+a}function _d(i,r,t,e,n,a){var o=(i-1)/(a-n),s=(r-1)/(Math.max(a,e)-Math.min(t,n));return 2-Math.max(o/s,s/o)}function $d(i,r){return i>=r?2-(i-1)/(r-1):1}function Ud(i,r,t,e){var n=r-i;return 1-.5*(Math.pow(r-e,2)+Math.pow(i-t,2))/Math.pow(.1*n,2)}function jd(i,r,t){var e=r-i;if(t>e){var n=(t-e)/2;return 1-Math.pow(n,2)/Math.pow(.1*e,2)}return 1}function qd(){return 1}function ac(i,r,t,e,n,a){t===void 0&&(t=5),e===void 0&&(e=!0),n===void 0&&(n=Vd),a===void 0&&(a=[.25,.2,.5,.05]);var o=t<0?0:Math.round(t);if(Number.isNaN(i)||Number.isNaN(r)||typeof i!="number"||typeof r!="number"||!o)return{min:0,max:0,ticks:[]};if(r-i<1e-15||o===1)return{min:i,max:r,ticks:[i]};for(var s={score:-2,lmin:0,lmax:0,lstep:0},l=1;l<1/0;){for(var h=0;h<n.length;h+=1){var u=n[h],c=Wd(u,n,l);if(a[0]*c+a[1]+a[2]+a[3]<s.score){l=1/0;break}for(var f=2;f<1/0;){var v=$d(f,o);if(a[0]*c+a[1]+a[2]*v+a[3]<s.score)break;for(var p=(r-i)/(f+1)/l/u,g=Math.ceil(Math.log10(p));g<1/0;){var d=l*u*Math.pow(10,g),y=jd(i,r,d*(f-1));if(a[0]*c+a[1]*y+a[2]*v+a[3]<s.score)break;var w=Math.floor(r/d)*l-(f-1)*l,x=Math.ceil(i/d)*l;if(w<=x)for(var C=x-w,S=0;S<=C;S+=1){var b=w+S,L=b*(d/l),B=L+d*(f-1),P=d,F=Nd(u,n,l,L,B,P),D=Ud(i,r,L,B),Y=_d(f,o,i,r,L,B),z=qd(),q=a[0]*F+a[1]*D+a[2]*Y+a[3]*z;q>s.score&&(!e||L<=i&&B>=r)&&(s.lmin=L,s.lmax=B,s.lstep=P,s.score=q)}g+=1}f+=1}}l+=1}var ut=fr(s.lmax),at=fr(s.lmin),St=fr(s.lstep),lt=Math.floor(zd((ut-at)/St))+1,U=new Array(lt);U[0]=fr(at);for(var h=1;h<lt;h++)U[h]=fr(U[h-1]+St);return{min:Math.min(i,Yt(U)),max:Math.max(r,pt(U)),ticks:U}}function oc(i){var r=i.values,t=i.tickInterval,e=i.tickCount,n=r;if(W(t))return Ht(n,function(h,u){return u%t===0});var a=i.min,o=i.max;if(E(a)&&(a=0),E(o)&&(o=r.length-1),W(e)&&e<o-a){var s=ac(a,o,e,!1,[1,2,5,3,4,7,6,8,9]).ticks,l=Ht(s,function(h){return h>=a&&h<=o});return l.map(function(h){return r[h]})}return r.slice(a,o+1)}function Zd(i){var r=i.min,t=i.max,e=i.nice,n=i.tickCount,a=new Qd;return a.domain([r,t]),e&&a.nice(n),a.ticks(n)}var wa=5,Ol=Math.sqrt(50),Dl=Math.sqrt(10),Rl=Math.sqrt(2),Qd=function(){function i(){this._domain=[0,1]}return i.prototype.domain=function(r){return r?(this._domain=Array.from(r,Number),this):this._domain.slice()},i.prototype.nice=function(r){var t,e;r===void 0&&(r=wa);var n=this._domain.slice(),a=0,o=this._domain.length-1,s=this._domain[a],l=this._domain[o],h;return l<s&&(t=[l,s],s=t[0],l=t[1],e=[o,a],a=e[0],o=e[1]),h=hn(s,l,r),h>0?(s=Math.floor(s/h)*h,l=Math.ceil(l/h)*h,h=hn(s,l,r)):h<0&&(s=Math.ceil(s*h)/h,l=Math.floor(l*h)/h,h=hn(s,l,r)),h>0?(n[a]=Math.floor(s/h)*h,n[o]=Math.ceil(l/h)*h,this.domain(n)):h<0&&(n[a]=Math.ceil(s*h)/h,n[o]=Math.floor(l*h)/h,this.domain(n)),this},i.prototype.ticks=function(r){return r===void 0&&(r=wa),Kd(this._domain[0],this._domain[this._domain.length-1],r||wa)},i}();function Kd(i,r,t){var e,n=-1,a,o,s;if(r=+r,i=+i,t=+t,i===r&&t>0)return[i];if((e=r<i)&&(a=i,i=r,r=a),(s=hn(i,r,t))===0||!isFinite(s))return[];if(s>0)for(i=Math.ceil(i/s),r=Math.floor(r/s),o=new Array(a=Math.ceil(r-i+1));++n<a;)o[n]=(i+n)*s;else for(i=Math.floor(i*s),r=Math.ceil(r*s),o=new Array(a=Math.ceil(i-r+1));++n<a;)o[n]=(i-n)/s;return e&&o.reverse(),o}function hn(i,r,t){var e=(r-i)/Math.max(0,t),n=Math.floor(Math.log(e)/Math.LN10),a=e/Math.pow(10,n);return n>=0?(a>=Ol?10:a>=Dl?5:a>=Rl?2:1)*Math.pow(10,n):-Math.pow(10,-n)/(a>=Ol?10:a>=Dl?5:a>=Rl?2:1)}function Yl(i,r,t){var e;return t==="ceil"?e=Math.ceil(i/r):t==="floor"?e=Math.floor(i/r):e=Math.round(i/r),e*r}function Do(i,r,t){var e=Yl(i,t,"floor"),n=Yl(r,t,"ceil");e=ha(e,t),n=ha(n,t);for(var a=[],o=Math.max((n-e)/(Math.pow(2,12)-1),t),s=e;s<=n;s=s+o){var l=ha(s,o);a.push(l)}return{min:e,max:n,ticks:a}}function Ro(i,r,t){var e,n=i.minLimit,a=i.maxLimit,o=i.min,s=i.max,l=i.tickCount,h=l===void 0?5:l,u=E(n)?E(r)?o:r:n,c=E(a)?E(t)?s:t:a;if(u>c&&(e=[u,c],c=e[0],u=e[1]),h<=2)return[u,c];for(var f=(c-u)/(h-1),v=[],p=0;p<h;p++)v.push(u+f*p);return v}function Jd(i){var r=i.min,t=i.max,e=i.tickInterval,n=i.minLimit,a=i.maxLimit,o=Zd(i);return!E(n)||!E(a)?Ro(i,Yt(o),pt(o)):e?Do(r,t,e).ticks:o}function ty(i){var r=i.min,t=i.max,e=i.tickCount,n=i.nice,a=i.tickInterval,o=i.minLimit,s=i.maxLimit,l=ac(r,t,e,n).ticks;return!E(o)||!E(s)?Ro(i,Yt(l),pt(l)):a?Do(r,t,a).ticks:l}function ey(i){var r=i.base,t=i.tickCount,e=i.min,n=i.max,a=i.values,o,s=Nt(r,n);if(e>0)o=Math.floor(Nt(r,e));else{var l=rc(a,r,n);o=Math.floor(Nt(r,l))}for(var h=s-o,u=Math.ceil(h/t),c=[],f=o;f<s+u;f=f+u)c.push(Math.pow(r,f));return e<=0&&c.unshift(0),c}function sc(i,r,t){if(t===void 0&&(t=5),i===r)return{max:r,min:i,ticks:[i]};var e=t<0?0:Math.round(t);if(e===0)return{max:r,min:i,ticks:[]};var n=1.5,a=.5+1.5*n,o=r-i,s=o/e,l=Math.pow(10,Math.floor(Math.log10(s))),h=l;2*l-s<n*(s-h)&&(h=2*l,5*l-s<a*(s-h)&&(h=5*l,10*l-s<n*(s-h)&&(h=10*l)));for(var u=Math.ceil(r/h),c=Math.floor(i/h),f=Math.max(u*h,r),v=Math.min(c*h,i),p=Math.floor((f-v)/h)+1,g=new Array(p),d=0;d<p;d++)g[d]=fr(v+d*h);return{min:v,max:f,ticks:g}}function ry(i){var r=i.exponent,t=i.tickCount,e=Math.ceil(Te(r,i.max)),n=Math.floor(Te(r,i.min)),a=sc(n,e,t).ticks;return a.map(function(o){var s=o>=0?1:-1;return Math.pow(o,r)*s})}function iy(i,r){var t=i.length*r;return r===1?i[i.length-1]:r===0?i[0]:t%1!==0?i[Math.ceil(t)-1]:i.length%2===0?(i[t-1]+i[t])/2:i[t]}function ny(i){var r=i.tickCount,t=i.values;if(!t||!t.length)return[];for(var e=t.slice().sort(function(s,l){return s-l}),n=[],a=0;a<r;a++){var o=a/(r-1);n.push(iy(e,o))}return n}function ay(i){var r=i.min,t=i.max,e=i.tickCount,n=i.tickInterval,a=i.minLimit,o=i.maxLimit,s=sc(r,t,e).ticks;return!E(a)||!E(o)?Ro(i,Yt(s),pt(s)):n?Do(r,t,n).ticks:s}function oy(i){var r=i.min,t=i.max,e=i.minTickInterval,n=i.tickInterval,a=i.tickCount;if(n)a=Math.ceil((t-r)/n);else{n=Fd(r,t,a)[1];var o=(t-r)/n,s=o/a;s>1&&(n=n*Math.ceil(s)),e&&n<e&&(n=e)}n=Math.max(Math.floor((t-r)/(Math.pow(2,12)-1)),n);for(var l=[],h=r;h<t+n;h+=n)l.push(h);return l}function sy(i){var r=oc(i),t=pt(i.values);return t!==pt(r)&&r.push(t),r}function mn(i){return new Date(i).getFullYear()}function ly(i){return new Date(i,0,1).getTime()}function Ka(i){return new Date(i).getMonth()}function hy(i,r){var t=mn(i),e=mn(r),n=Ka(i),a=Ka(r);return(e-t)*12+(a-n)%12}function uy(i,r){return new Date(i,r,1).getTime()}function cy(i,r){return Math.ceil((r-i)/ve)}function fy(i,r){return Math.ceil((r-i)/Ke)}function vy(i,r){return Math.ceil((r-i)/(60*1e3))}function py(i){var r=i.min,t=i.max,e=i.minTickInterval,n=i.tickCount,a=i.tickInterval,o=[];a||(a=(t-r)/n,e&&a<e&&(a=e)),a=Math.max(Math.floor((t-r)/(Math.pow(2,12)-1)),a);var s=mn(r);if(a>Pl)for(var l=mn(t),h=Math.ceil(a/Pl),u=s;u<=l+h;u=u+h)o.push(ly(u));else if(a>ti)for(var c=Math.ceil(a/ti),f=Ka(r),v=hy(r,t),u=0;u<=v+c;u=u+c)o.push(uy(s,u+f));else if(a>ve)for(var p=new Date(r),g=p.getFullYear(),d=p.getMonth(),y=p.getDate(),w=Math.ceil(a/ve),x=cy(r,t),u=0;u<x+w;u=u+w)o.push(new Date(g,d,y+u).getTime());else if(a>Ke)for(var p=new Date(r),g=p.getFullYear(),d=p.getMonth(),w=p.getDate(),C=p.getHours(),S=Math.ceil(a/Ke),b=fy(r,t),u=0;u<=b+S;u=u+S)o.push(new Date(g,d,w,C+u).getTime());else if(a>Qe)for(var L=vy(r,t),B=Math.ceil(a/Qe),u=0;u<=L+B;u=u+B)o.push(r+u*Qe);else{var P=a;P<Zt&&(P=Zt);for(var F=Math.floor(r/Zt)*Zt,D=Math.ceil((t-r)/Zt),Y=Math.ceil(P/Zt),u=0;u<D+Y;u=u+Y)o.push(F+u*Zt)}return o.length>=512&&console.warn("Notice: current ticks length("+o.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+a+") is too small, increase the value to solve the problem!"),o}le("cat",oc);le("time-cat",sy);le("wilkinson-extended",ty);le("r-pretty",ay);le("time",oy);le("time-pretty",py);le("log",ey);le("pow",ry);le("quantile",ny);le("d3-linear",Jd);he("cat",$n);he("category",$n);he("identity",Hd);he("linear",jn);he("log",Dd);he("pow",Rd);he("time",Yd);he("timeCat",Od);he("quantize",ic);he("quantile",Gd);var lc={},hc=function(i){return lc[i.toLowerCase()]},bi=function(i,r){if(hc(i))throw new Error("Attribute type '"+i+"' existed.");lc[i.toLowerCase()]=r};bi("Color",md);bi("Opacity",xd);bi("Position",wd);bi("Shape",Cd);bi("Size",Md);var gy=function(){function i(r){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var t=r.start,e=r.end,n=r.matrix,a=n===void 0?[1,0,0,0,1,0,0,0,1]:n,o=r.isTransposed,s=o===void 0?!1:o;this.start=t,this.end=e,this.matrix=a,this.originalMatrix=vt([],a),this.isTransposed=s}return i.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},i.prototype.update=function(r){rt(this,r),this.initial()},i.prototype.convertDim=function(r,t){var e,n=this[t],a=n.start,o=n.end;return this.isReflect(t)&&(e=[o,a],a=e[0],o=e[1]),a+r*(o-a)},i.prototype.invertDim=function(r,t){var e,n=this[t],a=n.start,o=n.end;return this.isReflect(t)&&(e=[o,a],a=e[0],o=e[1]),(r-a)/(o-a)},i.prototype.applyMatrix=function(r,t,e){e===void 0&&(e=0);var n=this.matrix,a=[r,t,e];return hi(a,a,n),a},i.prototype.invertMatrix=function(r,t,e){e===void 0&&(e=0);var n=this.matrix,a=zp([0,0,0,0,0,0,0,0,0],n),o=[r,t,e];return a&&hi(o,o,a),o},i.prototype.convert=function(r){var t=this.convertPoint(r),e=t.x,n=t.y,a=this.applyMatrix(e,n,1);return{x:a[0],y:a[1]}},i.prototype.invert=function(r){var t=this.invertMatrix(r.x,r.y,1);return this.invertPoint({x:t[0],y:t[1]})},i.prototype.rotate=function(r){var t=this.matrix,e=this.center;return cr(t,t,[-e.x,-e.y]),Io(t,t,r),cr(t,t,[e.x,e.y]),this},i.prototype.reflect=function(r){return r==="x"?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},i.prototype.scale=function(r,t){var e=this.matrix,n=this.center;return cr(e,e,[-n.x,-n.y]),wu(e,e,[r,t]),cr(e,e,[n.x,n.y]),this},i.prototype.translate=function(r,t){var e=this.matrix;return cr(e,e,[r,t]),this},i.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},i.prototype.getCenter=function(){return this.center},i.prototype.getWidth=function(){return this.width},i.prototype.getHeight=function(){return this.height},i.prototype.getRadius=function(){return this.radius},i.prototype.isReflect=function(r){return r==="x"?this.isReflectX:this.isReflectY},i.prototype.resetMatrix=function(r){this.matrix=r||vt([],this.originalMatrix)},i}();const Yo=gy;var uc=function(i){T(r,i);function r(t){var e=i.call(this,t)||this;return e.isRect=!0,e.type="cartesian",e.initial(),e}return r.prototype.initial=function(){i.prototype.initial.call(this);var t=this.start,e=this.end;this.x={start:t.x,end:e.x},this.y={start:t.y,end:e.y}},r.prototype.convertPoint=function(t){var e,n=t.x,a=t.y;return this.isTransposed&&(e=[a,n],n=e[0],a=e[1]),{x:this.convertDim(n,"x"),y:this.convertDim(a,"y")}},r.prototype.invertPoint=function(t){var e,n=this.invertDim(t.x,"x"),a=this.invertDim(t.y,"y");return this.isTransposed&&(e=[a,n],n=e[0],a=e[1]),{x:n,y:a}},r}(Yo),dy=function(i){T(r,i);function r(t){var e=i.call(this,t)||this;e.isHelix=!0,e.type="helix";var n=t.startAngle,a=n===void 0?1.25*Math.PI:n,o=t.endAngle,s=o===void 0?7.25*Math.PI:o,l=t.innerRadius,h=l===void 0?0:l,u=t.radius;return e.startAngle=a,e.endAngle=s,e.innerRadius=h,e.radius=u,e.initial(),e}return r.prototype.initial=function(){i.prototype.initial.call(this);var t=(this.endAngle-this.startAngle)/(2*Math.PI)+1,e=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(e=e*this.radius),this.d=Math.floor(e*(1-this.innerRadius)/t),this.a=this.d/(Math.PI*2),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*e,end:this.innerRadius*e+this.d*.99}},r.prototype.convertPoint=function(t){var e,n=t.x,a=t.y;this.isTransposed&&(e=[a,n],n=e[0],a=e[1]);var o=this.convertDim(n,"x"),s=this.a*o,l=this.convertDim(a,"y");return{x:this.center.x+Math.cos(o)*(s+l),y:this.center.y+Math.sin(o)*(s+l)}},r.prototype.invertPoint=function(t){var e,n=this.d+this.y.start,a=yu([0,0],[t.x,t.y],[this.center.x,this.center.y]),o=ko(a,[1,0],!0),s=o*this.a;dr(a)<s&&(s=dr(a));var l=Math.floor((dr(a)-s)/n);o=2*l*Math.PI+o;var h=this.a*o,u=dr(a)-h;u=yt(u,0)?0:u;var c=this.invertDim(o,"x"),f=this.invertDim(u,"y");return c=yt(c,0)?0:c,f=yt(f,0)?0:f,this.isTransposed&&(e=[f,c],c=e[0],f=e[1]),{x:c,y:f}},r}(Yo),yy=function(i){T(r,i);function r(t){var e=i.call(this,t)||this;e.isPolar=!0,e.type="polar";var n=t.startAngle,a=n===void 0?-Math.PI/2:n,o=t.endAngle,s=o===void 0?Math.PI*3/2:o,l=t.innerRadius,h=l===void 0?0:l,u=t.radius;return e.startAngle=a,e.endAngle=s,e.innerRadius=h,e.radius=u,e.initial(),e}return r.prototype.initial=function(){for(i.prototype.initial.call(this);this.endAngle<this.startAngle;)this.endAngle+=Math.PI*2;var t=this.getOneBox(),e=t.maxX-t.minX,n=t.maxY-t.minY,a=Math.abs(t.minX)/e,o=Math.abs(t.minY)/n,s;this.height/n>this.width/e?(s=this.width/e,this.circleCenter={x:this.center.x-(.5-a)*this.width,y:this.center.y-(.5-o)*s*n}):(s=this.height/n,this.circleCenter={x:this.center.x-(.5-a)*s*e,y:this.center.y-(.5-o)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=s*this.radius:(this.radius<=0||this.radius>s)&&(this.polarRadius=s):this.polarRadius=s,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},r.prototype.getRadius=function(){return this.polarRadius},r.prototype.convertPoint=function(t){var e,n=this.getCenter(),a=t.x,o=t.y;return this.isTransposed&&(e=[o,a],a=e[0],o=e[1]),a=this.convertDim(a,"x"),o=this.convertDim(o,"y"),{x:n.x+Math.cos(a)*o,y:n.y+Math.sin(a)*o}},r.prototype.invertPoint=function(t){var e,n=this.getCenter(),a=[t.x-n.x,t.y-n.y],o=this,s=o.startAngle,l=o.endAngle;this.isReflect("x")&&(e=[l,s],s=e[0],l=e[1]);var h=[1,0,0,0,1,0,0,0,1];Io(h,h,s);var u=[1,0,0];hi(u,u,h);var c=[u[0],u[1]],f=ko(c,a,l<s);yt(f,Math.PI*2)&&(f=0);var v=dr(a),p=f/(l-s);p=l-s>0?p:-p;var g=this.invertDim(v,"y"),d={x:0,y:0};return d.x=this.isTransposed?g:p,d.y=this.isTransposed?p:g,d},r.prototype.getCenter=function(){return this.circleCenter},r.prototype.getOneBox=function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=Math.PI*2)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],a=[0,Math.sin(t),Math.sin(e)],o=Math.min(t,e);o<Math.max(t,e);o+=Math.PI/18)n.push(Math.cos(o)),a.push(Math.sin(o));return{minX:Math.min.apply(Math,n),maxX:Math.max.apply(Math,n),minY:Math.min.apply(Math,a),maxY:Math.max.apply(Math,a)}},r}(Yo),cc={},my=function(i){return cc[i.toLowerCase()]},qn=function(i,r){cc[i.toLowerCase()]=r};qn("rect",uc);qn("cartesian",uc);qn("polar",yy);qn("helix",dy);function fc(i,r,t){var e=new Mi(r,t);e.target=i,e.propagationPath.push(i),i.emitDelegation(r,e);for(var n=i.getParent();n;)n.emitDelegation(r,e),e.propagationPath.push(n),n=n.getParent()}var vc=[1,0,0,0,1,0,0,0,1];function er(i,r,t){if(t===void 0&&(t=vc),!r)return null;var e=nt(t,[["t",-i.x,-i.y],["r",r],["t",i.x,i.y]]);return e}function Go(i,r){return!i.x&&!i.y?null:nt(r||vc,[["t",i.x,i.y]])}function xy(i){var r=[1,0,0],t=[0,0,0];return hi(t,r,i),Math.atan2(t[1],t[0])}function zi(i,r){var t=[0,0];return jp(t,r,i),t}function wy(i,r){var t=zi(i,[r.minX,r.minY]),e=zi(i,[r.maxX,r.minY]),n=zi(i,[r.minX,r.maxY]),a=zi(i,[r.maxX,r.maxY]),o=Math.min(t[0],e[0],n[0],a[0]),s=Math.max(t[0],e[0],n[0],a[0]),l=Math.min(t[1],e[1],n[1],a[1]),h=Math.max(t[1],e[1],n[1],a[1]);return{x:o,y:l,minX:o,minY:l,maxX:s,maxY:h,width:s-o,height:h-l}}function pc(i,r,t,e){if(r){var n=er({x:t,y:e},r,i.getMatrix());i.setMatrix(n)}}function ei(i,r,t){var e=Go({x:r,y:t});i.attr("matrix",e)}function xn(i){var r=0,t=0,e=0,n=0;return W(i)?r=t=e=n=i:I(i)&&(r=i[0],e=E(i[1])?i[0]:i[1],n=E(i[2])?i[0]:i[2],t=E(i[3])?e:i[3]),[r,e,n,t]}function Ho(i){for(var r=i.childNodes,t=r.length,e=t-1;e>=0;e--)i.removeChild(r[e])}function Cy(i,r){return!!i.className.match(new RegExp("(\\s|^)"+r+"(\\s|$)"))}function ci(i){var r=i.start,t=i.end,e=Math.min(r.x,t.x),n=Math.min(r.y,t.y),a=Math.max(r.x,t.x),o=Math.max(r.y,t.y);return{x:e,y:n,minX:e,minY:n,maxX:a,maxY:o,width:a-e,height:o-n}}function My(i){var r=i.map(function(s){return s.x}),t=i.map(function(s){return s.y}),e=Math.min.apply(Math,r),n=Math.min.apply(Math,t),a=Math.max.apply(Math,r),o=Math.max.apply(Math,t);return{x:e,y:n,minX:e,minY:n,maxX:a,maxY:o,width:a-e,height:o-n}}function Zn(i,r,t,e){var n=i+t,a=r+e;return{x:i,y:r,width:t,height:e,minX:i,minY:r,maxX:isNaN(n)?0:n,maxY:isNaN(a)?0:a}}function Je(i,r,t){return(1-t)*i+r*t}function Cr(i,r,t){return{x:i.x+Math.cos(t)*r,y:i.y+Math.sin(t)*r}}function Sy(i,r){var t=r.x-i.x,e=r.y-i.y;return Math.sqrt(t*t+e*e)}var wn=function(i,r,t){return t===void 0&&(t=Math.pow(Number.EPSILON,.5)),[i,r].includes(1/0)?Math.abs(i)===Math.abs(r):Math.abs(i-r)<t};function Ay(i,r){var t=Math.max(i.minX,r.minX),e=Math.max(i.minY,r.minY),n=Math.min(i.maxX,r.maxX),a=Math.min(i.maxY,r.maxY);return Zn(t,e,n-t,a-e)}function gc(i){var r=i.getClip(),t=r&&r.getBBox(),e;if(!i.isGroup())e=i.getBBox();else{var n=1/0,a=-1/0,o=1/0,s=-1/0,l=i.getChildren();l.length>0?M(l,function(h){if(h.get("visible")){if(h.isGroup()&&h.get("children").length===0)return!0;var u=gc(h),c=h.applyToMatrix([u.minX,u.minY,1]),f=h.applyToMatrix([u.minX,u.maxY,1]),v=h.applyToMatrix([u.maxX,u.minY,1]),p=h.applyToMatrix([u.maxX,u.maxY,1]),g=Math.min(c[0],f[0],v[0],p[0]),d=Math.max(c[0],f[0],v[0],p[0]),y=Math.min(c[1],f[1],v[1],p[1]),w=Math.max(c[1],f[1],v[1],p[1]);g<n&&(n=g),d>a&&(a=d),y<o&&(o=y),w>s&&(s=w)}}):(n=0,a=0,o=0,s=0),e=Zn(n,o,a-n,s-o)}return t?Ay(e,t):e}function by(i,r){if(!(!i.getClip()&&!r.getClip())){var t=r.getClip();if(!t){i.setClip(null);return}var e={type:t.get("type"),attrs:t.attr()};i.setClip(e)}}function Et(i){return i+"px"}function dc(i,r,t,e){var n=Sy(i,r),a=e/n,o=0;return t==="start"?o=0-a:t==="end"&&(o=1+a),{x:Je(i.x,r.x,o),y:Je(i.y,r.y,o)}}var Ty={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},yc=function(i){T(r,i);function r(t){var e=i.call(this,t)||this;return e.initCfg(),e}return r.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},r.prototype.clear=function(){},r.prototype.update=function(t){var e=this,n=this.get("defaultCfg")||{};M(t,function(a,o){var s=e.get(o),l=a;s!==a&&(Q(a)&&n[o]&&(l=O({},n[o],a)),e.set(o,l))}),this.updateInner(t),this.afterUpdate(t)},r.prototype.updateInner=function(t){},r.prototype.afterUpdate=function(t){Ar(t,"visible")&&(t.visible?this.show():this.hide()),Ar(t,"capture")&&this.setCapture(t.capture)},r.prototype.getLayoutBBox=function(){return this.getBBox()},r.prototype.getLocationType=function(){return this.get("locationType")},r.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},r.prototype.setOffset=function(t,e){this.update({offsetX:t,offsetY:e})},r.prototype.setLocation=function(t){var e=m({},t);this.update(e)},r.prototype.getLocation=function(){var t=this,e={},n=this.get("locationType"),a=Ty[n];return M(a,function(o){e[o]=t.get(o)}),e},r.prototype.isList=function(){return!1},r.prototype.isSlider=function(){return!1},r.prototype.init=function(){},r.prototype.initCfg=function(){var t=this,e=this.get("defaultCfg");M(e,function(n,a){var o=t.get(a);if(Q(o)){var s=O({},n,o);t.set(a,s)}})},r}(Pn),We="update_status",Ly=["visible","tip","delegateObject"],Ey=["container","group","shapesMap","isRegister","isUpdating","destroyed"],mt=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},r.prototype.remove=function(){this.clear();var t=this.get("group");t.remove()},r.prototype.clear=function(){var t=this.get("group");t.clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},r.prototype.getChildComponentById=function(t){var e=this.getElementById(t),n=e&&e.get("component");return n},r.prototype.getElementById=function(t){return this.get("shapesMap")[t]},r.prototype.getElementByLocalId=function(t){var e=this.getElementId(t);return this.getElementById(e)},r.prototype.getElementsByName=function(t){var e=[];return M(this.get("shapesMap"),function(n){n.get("name")===t&&e.push(n)}),e},r.prototype.getContainer=function(){return this.get("container")},r.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},r.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var e=this.get("group");this.updateElements(t,e),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},r.prototype.show=function(){var t=this.get("group");t.show(),this.set("visible",!0)},r.prototype.hide=function(){var t=this.get("group");t.hide(),this.set("visible",!1)},r.prototype.setCapture=function(t){var e=this.get("group");e.set("capture",t),this.set("capture",t)},r.prototype.destroy=function(){this.removeEvent(),this.remove(),i.prototype.destroy.call(this)},r.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},r.prototype.getLayoutBBox=function(){var t=this.get("group"),e=this.getInnerLayoutBBox(),n=t.getTotalMatrix();return n&&(e=wy(n,e)),e},r.prototype.on=function(t,e,n){var a=this.get("group");return a.on(t,e,n),this},r.prototype.off=function(t,e){var n=this.get("group");return n&&n.off(t,e),this},r.prototype.emit=function(t,e){var n=this.get("group");n.emit(t,e)},r.prototype.init=function(){i.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},r.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},r.prototype.delegateEmit=function(t,e){var n=this.get("group");e.target=n,n.emit(t,e),fc(n,t,e)},r.prototype.createOffScreenGroup=function(){var t=this.get("group"),e=t.getGroupBase(),n=new e({delegateObject:this.getDelegateObject()});return n},r.prototype.applyOffset=function(){var t=this.get("offsetX"),e=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:e})},r.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},r.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",gc(t)),t},r.prototype.addGroup=function(t,e){this.appendDelegateObject(t,e);var n=t.addGroup(e);return this.get("isRegister")&&this.registerElement(n),n},r.prototype.addShape=function(t,e){this.appendDelegateObject(t,e);var n=t.addShape(e);return this.get("isRegister")&&this.registerElement(n),n},r.prototype.addComponent=function(t,e){var n=e.id,a=e.component,o=ct(e,["id","component"]),s=new a(m(m({},o),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return s.init(),s.render(),this.get("isRegister")&&this.registerElement(s.get("group")),s},r.prototype.initEvent=function(){},r.prototype.removeEvent=function(){var t=this.get("group");t.off()},r.prototype.getElementId=function(t){var e=this.get("id"),n=this.get("name");return e+"-"+n+"-"+t},r.prototype.registerElement=function(t){var e=t.get("id");this.get("shapesMap")[e]=t},r.prototype.unregisterElement=function(t){var e=t.get("id");delete this.get("shapesMap")[e]},r.prototype.moveElementTo=function(t,e){var n=Go(e);t.attr("matrix",n)},r.prototype.addAnimation=function(t,e,n){var a=e.attr("opacity");E(a)&&(a=1),e.attr("opacity",0),e.animate({opacity:a},n)},r.prototype.removeAnimation=function(t,e,n){e.animate({opacity:0},n)},r.prototype.updateAnimation=function(t,e,n,a){e.animate(n,a)},r.prototype.updateElements=function(t,e){var n=this,a=this.get("animate"),o=this.get("animateOption"),s=t.getChildren().slice(0),l;M(s,function(h){var u=h.get("id"),c=n.getElementById(u),f=h.get("name");if(c)if(h.get("isComponent")){var v=h.get("component"),p=c.get("component"),g=To(v.cfg,Iv(Ci(v.cfg),Ey));p.update(g),c.set(We,"update")}else{var d=n.getReplaceAttrs(c,h);a&&o.update?n.updateAnimation(f,c,d,o.update):c.attr(d),h.isGroup()&&n.updateElements(h,c),M(Ly,function(C){c.set(C,h.get(C))}),by(c,h),l=c,c.set(We,"update")}else{e.add(h);var y=e.getChildren();if(y.splice(y.length-1,1),l){var w=y.indexOf(l);y.splice(w+1,0,h)}else y.unshift(h);if(n.registerElement(h),h.set(We,"add"),h.get("isComponent")){var v=h.get("component");v.set("container",e)}else h.isGroup()&&n.registerNewGroup(h);if(l=h,a){var x=n.get("isInit")?o.appear:o.enter;x&&n.addAnimation(f,h,x)}}})},r.prototype.clearUpdateStatus=function(t){var e=t.getChildren();M(e,function(n){n.set(We,null)})},r.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},r.prototype.getDelegateObject=function(){var t,e=this.get("name"),n=(t={},t[e]=this,t.component=this,t);return n},r.prototype.appendDelegateObject=function(t,e){var n=t.get("delegateObject");e.delegateObject||(e.delegateObject={}),rt(e.delegateObject,n)},r.prototype.getReplaceAttrs=function(t,e){var n=t.attr(),a=e.attr();return M(n,function(o,s){a[s]===void 0&&(a[s]=void 0)}),a},r.prototype.registerNewGroup=function(t){var e=this,n=t.getChildren();M(n,function(a){e.registerElement(a),a.set(We,"add"),a.isGroup()&&e.registerNewGroup(a)})},r.prototype.deleteElements=function(){var t=this,e=this.get("shapesMap"),n=[];M(e,function(s,l){!s.get(We)||s.destroyed?n.push([l,s]):s.set(We,null)});var a=this.get("animate"),o=this.get("animateOption");M(n,function(s){var l=s[0],h=s[1];if(!h.destroyed){var u=h.get("name");if(a&&o.leave){var c=rt({callback:function(){t.removeElement(h)}},o.leave);t.removeAnimation(u,h,c)}else t.removeElement(h)}delete e[l]})},r.prototype.removeElement=function(t){if(t.get("isGroup")){var e=t.get("component");e&&e.destroy()}t.remove()},r}(yc),Ca="…";function By(i){for(var r=0,t=0;t<i.length;t++)r+=Ue(i,t);return r}function Ue(i,r){return i.charCodeAt(r)>0&&i.charCodeAt(r)<128?1:2}function Iy(i,r,t){t===void 0&&(t="tail");var e=i.length,n="";if(t==="tail"){for(var a=0,o=0;a<r;){var s=Ue(i,o);if(a+s<=r)n+=i[o],a+=Ue(i,o),o++;else break}n+=Ca}else if(t==="head"){for(var a=0,o=e-1;a<r;){var s=Ue(i,o);if(a+s<=r)n+=i[o],a+=Ue(i,o),o--;else break}n=Ca+n}else{for(var l="",h="",a=0,u=0,c=e-1;a<r;){var f=Ue(i,u),v=!1;f+a<=r&&(l+=i[u],u++,a+=f,v=!0);var p=Ue(i,c);if(p+a<=r&&(h=i[c]+h,a+=p,c--,v=!0),!v)break}n=l+Ca+h}return n}var ky="…",Py=2,Fy=400;function Oy(i){for(var r=i.map(function(l){var h=l.attr("text");return E(h)?"":""+h}),t=0,e=0,n=0;n<r.length;n+=1){for(var a=0,o=0;o<=r[n].length;o+=1){var s=r[n].charCodeAt(o);s>=19968&&s<=40869?a+=2:a+=1}a>t&&(t=a,e=n)}return i[e].getBBox().width}function Ja(i){if(i.length>Fy)return Oy(i);var r=0;return M(i,function(t){var e=t.getBBox(),n=e.width;r<n&&(r=n)}),r}function Dy(i,r){var t=r.getCanvasBBox();return i?t.width:t.height}function ri(i,r,t,e){var n;e===void 0&&(e="tail");var a=(n=r.attr("text"))!==null&&n!==void 0?n:"";if(e==="tail"){var o=To(r.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),s=ip(a,t,o,"…");return a!==s?(r.attr("text",s),r.set("tip",a),!0):(r.set("tip",null),!1)}var l=Dy(i,r),h=By(a),u=!1;if(t<l){var c=Math.floor(t/l*h)-Py,f=void 0;c>=0?f=Iy(a,c,e):f=ky,f&&(r.attr("text",f),u=!0)}return u?r.set("tip",a):r.set("tip",null),u}function Qn(i,r){var t=r.x,e=r.y,n=r.content,a=r.style,o=r.id,s=r.name,l=r.rotate,h=r.maxLength,u=r.autoEllipsis,c=r.isVertical,f=r.ellipsisPosition,v=r.background,p=i.addGroup({id:o+"-group",name:s+"-group",attrs:{x:t,y:e}}),g=p.addShape({type:"text",id:o,name:s,attrs:m({x:0,y:0,text:n},a)}),d=xn(A(v,"padding",0));if(h&&u){var y=h-(d[1]+d[3]);ri(!c,g,y,f)}if(v){var w=A(v,"style",{}),x=g.getCanvasBBox(),C=x.minX,S=x.minY,b=x.width,L=x.height,B=p.addShape("rect",{id:o+"-bg",name:o+"-bg",attrs:m({x:C-d[3],y:S-d[0],width:b+d[1]+d[3],height:L+d[0]+d[2]},w)});B.toBack()}ei(p,t,e),pc(p,l,t,e)}const V={fontFamily:'\n BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue",\n Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",\n SimSun, "sans-serif"',textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4};var Ry=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:V.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:V.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:V.lineColor,lineWidth:1}}}})},r.prototype.renderInner=function(t){this.renderLine(t),this.get("text")&&this.renderLabel(t)},r.prototype.renderLine=function(t){var e=this.get("start"),n=this.get("end"),a=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:m({x1:e.x,y1:e.y,x2:n.x,y2:n.y},a)})},r.prototype.getLabelPoint=function(t,e,n){var a;return n==="start"?a=0:n==="center"?a=.5:H(n)&&n.indexOf("%")!==-1?a=parseInt(n,10)/100:W(n)?a=n:a=1,(a>1||a<0)&&(a=1),{x:Je(t.x,e.x,a),y:Je(t.y,e.y,a)}},r.prototype.renderLabel=function(t){var e=this.get("text"),n=this.get("start"),a=this.get("end"),o=e.position,s=e.content,l=e.style,h=e.offsetX,u=e.offsetY,c=e.autoRotate,f=e.maxLength,v=e.autoEllipsis,p=e.ellipsisPosition,g=e.background,d=e.isVertical,y=d===void 0?!1:d,w=this.getLabelPoint(n,a,o),x=w.x+h,C=w.y+u,S={id:this.getElementId("line-text"),name:"annotation-line-text",x,y:C,content:s,style:l,maxLength:f,autoEllipsis:v,ellipsisPosition:p,background:g,isVertical:y};if(c){var b=[a.x-n.x,a.y-n.y];S.rotate=Math.atan2(b[1],b[0])}Qn(t,S)},r}(mt),Yy=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:V.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:V.fontFamily}}})},r.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},r.prototype.renderInner=function(t){var e=this.getLocation(),n=e.x,a=e.y,o=this.get("content"),s=this.get("style"),l=this.getElementId("text"),h=this.get("name")+"-text",u=this.get("maxLength"),c=this.get("autoEllipsis"),f=this.get("isVertical"),v=this.get("ellipsisPosition"),p=this.get("background"),g=this.get("rotate"),d={id:l,name:h,x:n,y:a,content:o,style:s,maxLength:u,autoEllipsis:c,isVertical:f,ellipsisPosition:v,background:p,rotate:g};Qn(t,d)},r.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var e=this.getLocation(),n=e.x,a=e.y,o=this.get("rotate");ei(t,n,a),pc(t,o,n,a)}},r}(mt),Gy=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2,style:{stroke:"#999",lineWidth:1}})},r.prototype.renderInner=function(t){this.renderArc(t)},r.prototype.getArcPath=function(){var t=this.getLocation(),e=t.center,n=t.radius,a=t.startAngle,o=t.endAngle,s=Cr(e,n,a),l=Cr(e,n,o),h=o-a>Math.PI?1:0,u=[["M",s.x,s.y]];if(o-a===Math.PI*2){var c=Cr(e,n,a+Math.PI);u.push(["A",n,n,0,h,1,c.x,c.y]),u.push(["A",n,n,0,h,1,l.x,l.y])}else u.push(["A",n,n,0,h,1,l.x,l.y]);return u},r.prototype.renderArc=function(t){var e=this.getArcPath(),n=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:m({path:e},n)})},r}(mt),Hy=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:V.regionColor,opacity:.4}}})},r.prototype.renderInner=function(t){this.renderRegion(t)},r.prototype.renderRegion=function(t){var e=this.get("start"),n=this.get("end"),a=this.get("style"),o=ci({start:e,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:m({x:o.x,y:o.y,width:o.width,height:o.height},a)})},r}(mt),Vy=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},r.prototype.renderInner=function(t){this.renderImage(t)},r.prototype.getImageAttrs=function(){var t=this.get("start"),e=this.get("end"),n=this.get("style"),a=ci({start:t,end:e}),o=this.get("src");return m({x:a.x,y:a.y,img:o,width:a.width,height:a.height},n)},r.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},r}(mt),Xy=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:V.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:V.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:V.fontFamily}}}})},r.prototype.renderInner=function(t){A(this.get("line"),"display")&&this.renderLine(t),A(this.get("text"),"display")&&this.renderText(t),A(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},r.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},r.prototype.renderPoint=function(t){var e=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:e})},r.prototype.renderLine=function(t){var e=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:e})},r.prototype.renderText=function(t){var e=this.getShapeAttrs().text,n=e.x,a=e.y,o=e.text,s=ct(e,["x","y","text"]),l=this.get("text"),h=l.background,u=l.maxLength,c=l.autoEllipsis,f=l.isVertival,v=l.ellipsisPosition,p={x:n,y:a,id:this.getElementId("text"),name:"annotation-text",content:o,style:s,background:h,maxLength:u,autoEllipsis:c,isVertival:f,ellipsisPosition:v};Qn(t,p)},r.prototype.autoAdjust=function(t){var e=this.get("direction"),n=this.get("x"),a=this.get("y"),o=A(this.get("line"),"length",0),s=this.get("coordinateBBox"),l=t.getBBox(),h=l.minX,u=l.maxX,c=l.minY,f=l.maxY,v=t.findById(this.getElementId("text-group")),p=t.findById(this.getElementId("text")),g=t.findById(this.getElementId("line"));if(s){if(v){if(n+h<=s.minX){var d=s.minX-(n+h);ei(v,v.attr("x")+d,v.attr("y"))}if(n+u>=s.maxX){var d=n+u-s.maxX;ei(v,v.attr("x")-d,v.attr("y"))}}if(e==="upward"&&a+c<=s.minY||e!=="upward"&&a+f>=s.maxY){var y=void 0,w=void 0;e==="upward"&&a+c<=s.minY?(y="top",w=1):(y="bottom",w=-1),p.attr("textBaseline",y),g&&g.attr("path",[["M",0,0],["L",0,o*w]]),ei(v,v.attr("x"),(o+2)*w)}}},r.prototype.getShapeAttrs=function(){var t=A(this.get("line"),"display"),e=A(this.get("point"),"style",{}),n=A(this.get("line"),"style",{}),a=A(this.get("text"),"style",{}),o=this.get("direction"),s=t?A(this.get("line"),"length",0):0,l=o==="upward"?-1:1;return{point:m({x:0,y:0},e),line:m({path:[["M",0,0],["L",0,s*l]]},n),text:m({x:0,y:(s+2)*l,text:A(this.get("text"),"content",""),textBaseline:o==="upward"?"bottom":"top"},a)}},r}(mt),zy=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:V.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:V.textColor,fontFamily:V.fontFamily}}}})},r.prototype.renderInner=function(t){var e=A(this.get("region"),"style",{});A(this.get("text"),"style",{});var n=this.get("lineLength")||0,a=this.get("points");if(a.length){var o=My(a),s=[];s.push(["M",a[0].x,o.minY-n]),a.forEach(function(h){s.push(["L",h.x,h.y])}),s.push(["L",a[a.length-1].x,a[a.length-1].y-n]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:m({path:s},e)});var l=m({id:this.getElementId("text"),name:"annotation-text",x:(o.minX+o.maxX)/2,y:o.minY-n},this.get("text"));Qn(t,l)}},r}(mt),Ny=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},r.prototype.renderInner=function(t){var e=this,n=this.get("start"),a=this.get("end"),o=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});M(this.get("shapes"),function(l,h){var u=l.get("type"),c=Rt(l.attr());e.adjustShapeAttrs(c),e.addShape(o,{id:e.getElementId("shape-"+u+"-"+h),capture:!1,type:u,attrs:c})});var s=ci({start:n,end:a});o.setClip({type:"rect",attrs:{x:s.minX,y:s.minY,width:s.width,height:s.height}})},r.prototype.adjustShapeAttrs=function(t){var e=this.get("color");t.fill&&(t.fill=t.fillStyle=e),t.stroke=t.strokeStyle=e},r}(mt),Wy=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"shape",draw:Ee})},r.prototype.renderInner=function(t){var e=this.get("render");R(e)&&e(t)},r}(mt),Vo=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{container:null,containerTpl:"<div></div>",updateAutoRender:!0,containerClassName:"",parent:null})},r.prototype.getContainer=function(){return this.get("container")},r.prototype.show=function(){var t=this.get("container");t.style.display="",this.set("visible",!0)},r.prototype.hide=function(){var t=this.get("container");t.style.display="none",this.set("visible",!1)},r.prototype.setCapture=function(t){var e=this.getContainer(),n=t?"auto":"none";e.style.pointerEvents=n,this.set("capture",t)},r.prototype.getBBox=function(){var t=this.getContainer(),e=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return Zn(e,n,t.clientWidth,t.clientHeight)},r.prototype.clear=function(){var t=this.get("container");Ho(t)},r.prototype.destroy=function(){this.removeEvent(),this.removeDom(),i.prototype.destroy.call(this)},r.prototype.init=function(){i.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},r.prototype.initCapture=function(){this.setCapture(this.get("capture"))},r.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},r.prototype.initDom=function(){},r.prototype.initContainer=function(){var t=this.get("container");if(E(t)){t=this.createDom();var e=this.get("parent");H(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else H(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},r.prototype.resetStyles=function(){var t=this.get("domStyles"),e=this.get("defaultStyles");t?t=O({},e,t):t=e,this.set("domStyles",t)},r.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var e=this.getContainer();this.applyChildrenStyles(e,t);var n=this.get("containerClassName");if(n&&Cy(e,n)){var a=t[n];wt(e,a)}}},r.prototype.applyChildrenStyles=function(t,e){M(e,function(n,a){var o=t.getElementsByClassName(a);M(o,function(s){wt(s,n)})})},r.prototype.applyStyle=function(t,e){var n=this.get("domStyles");wt(e,n[t])},r.prototype.createDom=function(){var t=this.get("containerTpl");return Pe(t)},r.prototype.initEvent=function(){},r.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},r.prototype.removeEvent=function(){},r.prototype.updateInner=function(t){Ar(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},r.prototype.resetPosition=function(){},r}(yc),_y=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'<div class="g2-html-annotation"></div>',alignX:"left",alignY:"top",html:"",zIndex:7})},r.prototype.render=function(){var t=this.getContainer(),e=this.get("html");Ho(t);var n=R(e)?e(t):e;if(eu(n))t.appendChild(n);else if(H(n)||W(n)){var a=Pe(""+n);a&&t.appendChild(a)}this.resetPosition()},r.prototype.resetPosition=function(){var t=this.getContainer(),e=this.getLocation(),n=e.x,a=e.y,o=this.get("alignX"),s=this.get("alignY"),l=this.get("offsetX"),h=this.get("offsetY"),u=up(t),c=lp(t),f={x:n,y:a};o==="middle"?f.x-=Math.round(u/2):o==="right"&&(f.x-=Math.round(u)),s==="middle"?f.y-=Math.round(c/2):s==="bottom"&&(f.y-=Math.round(c)),l&&(f.x+=l),h&&(f.y+=h),wt(t,{position:"absolute",left:f.x+"px",top:f.y+"px",zIndex:this.get("zIndex")})},r}(Vo);const $y=Object.freeze(Object.defineProperty({__proto__:null,Arc:Gy,DataMarker:Xy,DataRegion:zy,Html:_y,Image:Vy,Line:Ry,Region:Hy,RegionFilter:Ny,Shape:Wy,Text:Yy},Symbol.toStringTag,{value:"Module"}));function jr(i,r,t){var e=r+"Style",n=null;return M(t,function(a,o){i[o]&&a[e]&&(n||(n={}),rt(n,a[e]))}),n}var mc=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:V.lineColor}},tickLine:{style:{lineWidth:1,stroke:V.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:V.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:V.textColor,fontFamily:V.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:V.textColor,textBaseline:"middle",fontFamily:V.fontFamily,textAlign:"center"}},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:V.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},r.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},r.prototype.isList=function(){return!0},r.prototype.getItems=function(){return this.get("ticks")},r.prototype.setItems=function(t){this.update({ticks:t})},r.prototype.updateItem=function(t,e){rt(t,e),this.clear(),this.render()},r.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},r.prototype.setItemState=function(t,e,n){t[e]=n,this.updateTickStates(t)},r.prototype.hasState=function(t,e){return!!t[e]},r.prototype.getItemStates=function(t){var e=this.get("tickStates"),n=[];return M(e,function(a,o){t[o]&&n.push(o)}),n},r.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);M(n,function(a){e.setItemState(a,t,!1)})},r.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return Ht(n,function(a){return e.hasState(a,t)})},r.prototype.getSidePoint=function(t,e){var n=this,a=n.getSideVector(e,t);return{x:t.x+a[0],y:t.y+a[1]}},r.prototype.getTextAnchor=function(t){var e;return yt(t[0],0)?e="center":t[0]>0?e="start":t[0]<0&&(e="end"),e},r.prototype.getTextBaseline=function(t){var e;return yt(t[1],0)?e="middle":t[1]>0?e="top":t[1]<0&&(e="bottom"),e},r.prototype.processOverlap=function(t){},r.prototype.drawLine=function(t){var e=this.getLinePath(),n=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:rt({path:e},n.style)})},r.prototype.getTickLineItems=function(t){var e=this,n=[],a=this.get("tickLine"),o=a.alignTick,s=a.length,l=1,h=t.length;return h>=2&&(l=t[1].value-t[0].value),M(t,function(u){var c=u.point;o||(c=e.getTickPoint(u.value-l/2));var f=e.getSidePoint(c,s);n.push({startPoint:c,tickValue:u.value,endPoint:f,tickId:u.id,id:"tickline-"+u.id})}),n},r.prototype.getSubTickLineItems=function(t){var e=[],n=this.get("subTickLine"),a=n.count,o=t.length;if(o>=2)for(var s=0;s<o-1;s++)for(var l=t[s],h=t[s+1],u=0;u<a;u++){var c=(u+1)/(a+1),f=(1-c)*l.tickValue+c*h.tickValue,v=this.getTickPoint(f),p=this.getSidePoint(v,n.length);e.push({startPoint:v,endPoint:p,tickValue:f,id:"sub-"+l.id+"-"+u})}return e},r.prototype.getTickLineAttrs=function(t,e,n,a){var o=this.get(e).style,s={points:[t.startPoint,t.endPoint]},l=A(this.get("theme"),["tickLine","style"],{});o=R(o)?rt({},l,o(s,n,a)):o;var h=t.startPoint,u=t.endPoint;return m({x1:h.x,y1:h.y,x2:u.x,y2:u.y},o)},r.prototype.drawTick=function(t,e,n,a,o){this.addShape(e,{type:"line",id:this.getElementId(t.id),name:"axis-"+n,attrs:this.getTickLineAttrs(t,n,a,o)})},r.prototype.drawTickLines=function(t){var e=this,n=this.get("ticks"),a=this.get("subTickLine"),o=this.getTickLineItems(n),s=this.addGroup(t,{name:"axis-tickline-group",id:this.getElementId("tickline-group")}),l=this.get("tickLine");if(M(o,function(u,c){if(l.displayWithLabel){var f=e.getElementId("label-"+u.tickId);t.findById(f)&&e.drawTick(u,s,"tickLine",c,o)}else e.drawTick(u,s,"tickLine",c,o)}),a){var h=this.getSubTickLineItems(o);M(h,function(u,c){e.drawTick(u,s,"subTickLine",c,h)})}},r.prototype.processTicks=function(){var t=this,e=this.get("ticks");M(e,function(n){n.point=t.getTickPoint(n.value),E(n.id)&&(n.id=n.name)})},r.prototype.drawTicks=function(t){var e=this;this.optimizeTicks(),this.processTicks(),this.get("label")&&this.drawLabels(t),this.get("tickLine")&&this.drawTickLines(t);var n=this.get("ticks");M(n,function(a){e.applyTickStates(a,t)})},r.prototype.optimizeTicks=function(){var t=this.get("optimize"),e=this.get("ticks");if(t&&t.enable&&t.threshold>0){var n=Ft(e);if(n>t.threshold){var a=Math.ceil(n/t.threshold),o=e.filter(function(s,l){return l%a===0});this.set("ticks",o),this.set("originalTicks",e)}}},r.prototype.getLabelAttrs=function(t,e,n){var a=this.get("label"),o=a.offset,s=a.offsetX,l=a.offsetY,h=a.rotate,u=a.formatter,c=this.getSidePoint(t.point,o),f=this.getSideVector(o,c),v=u?u(t.name,t,e):t.name,p=a.style;p=R(p)?A(this.get("theme"),["label","style"],{}):p;var g=rt({x:c.x+s,y:c.y+l,text:v,textAlign:this.getTextAnchor(f),textBaseline:this.getTextBaseline(f)},p);return h&&(g.matrix=er(c,h)),g},r.prototype.drawLabels=function(t){var e=this,n=this.get("ticks"),a=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});M(n,function(f,v){e.addShape(a,{type:"text",name:"axis-label",id:e.getElementId("label-"+f.id),attrs:e.getLabelAttrs(f,v,n),delegateObject:{tick:f,item:f,index:v}})}),this.processOverlap(a);var o=a.getChildren(),s=A(this.get("theme"),["label","style"],{}),l=this.get("label"),h=l.style,u=l.formatter;if(R(h)){var c=o.map(function(f){return A(f.get("delegateObject"),"tick")});M(o,function(f,v){var p=f.get("delegateObject").tick,g=u?u(p.name,p,v):p.name,d=rt({},s,h(g,v,c));f.attr(d)})}},r.prototype.getTitleAttrs=function(){var t=this.get("title"),e=t.style,n=t.position,a=t.offset,o=t.spacing,s=o===void 0?0:o,l=t.autoRotate,h=e.fontSize,u=.5;n==="start"?u=0:n==="end"&&(u=1);var c=this.getTickPoint(u),f=this.getSidePoint(c,a||s+h/2),v=rt({x:f.x,y:f.y,text:t.text},e),p=t.rotate,g=p;if(E(p)&&l){var d=this.getAxisVector(c),y=[1,0];g=ko(d,y,!0)}if(g){var w=er(f,g);v.matrix=w}return v},r.prototype.drawTitle=function(t){this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:this.getTitleAttrs()})},r.prototype.applyTickStates=function(t,e){var n=this.getItemStates(t);if(n.length){var a=this.get("tickStates"),o=this.getElementId("label-"+t.id),s=e.findById(o);if(s){var l=jr(t,"label",a);l&&s.attr(l)}var h=this.getElementId("tickline-"+t.id),u=e.findById(h);if(u){var c=jr(t,"tickLine",a);c&&u.attr(c)}}},r.prototype.updateTickStates=function(t){var e=this.getItemStates(t),n=this.get("tickStates"),a=this.get("label"),o=this.getElementByLocalId("label-"+t.id),s=this.get("tickLine"),l=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(o){var h=jr(t,"label",n);h&&o.attr(h)}if(l){var u=jr(t,"tickLine",n);u&&l.attr(u)}}else o&&o.attr(a.style),l&&l.attr(s.style)},r}(mt);function Xo(i,r,t,e){var n=r.getChildren(),a=!1;return M(n,function(o){var s=ri(i,o,t,e);a=a||s}),a}function Uy(){return xc}function jy(i,r,t){return Xo(i,r,t,"head")}function xc(i,r,t){return Xo(i,r,t,"tail")}function qy(i,r,t){return Xo(i,r,t,"middle")}const Zy=Object.freeze(Object.defineProperty({__proto__:null,ellipsisHead:jy,ellipsisMiddle:qy,ellipsisTail:xc,getDefault:Uy},Symbol.toStringTag,{value:"Module"}));function Qy(i){var r=i.attr("matrix");return r&&r[0]!==1}function wc(i){var r=Qy(i)?xy(i.attr("matrix")):0;return r%360}function to(i,r,t,e){var n=!1,a=wc(r),o=Math.abs(i?t.attr("y")-r.attr("y"):t.attr("x")-r.attr("x")),s=(i?t.attr("y")>r.attr("y"):t.attr("x")>r.attr("x"))?r.getBBox():t.getBBox();if(i){var l=Math.abs(Math.cos(a));wn(l,0,Math.PI/180)?n=s.width+e>o:n=s.height/l+e>o}else{var l=Math.abs(Math.sin(a));wn(l,0,Math.PI/180)?n=s.width+e>o:n=s.height/l+e>o}return n}function fi(i,r,t,e){var n=(e==null?void 0:e.minGap)||0,a=r.getChildren().slice().filter(function(v){return v.get("visible")});if(!a.length)return!1;var o=!1;t&&a.reverse();for(var s=a.length,l=a[0],h=l,u=1;u<s;u++){var c=a[u];c.getBBox();var f=to(i,h,c,n);f?(c.hide(),o=!0):h=c}return o}function Cc(i,r,t){var e=(t==null?void 0:t.minGap)||0,n=r.getChildren().slice();if(n.length<2)return!1;var a=!1,o=n[0],s=o.getBBox(),l=n[1],h=n.length,u=wc(o),c=Math.abs(i?l.attr("y")-o.attr("y"):l.attr("x")-o.attr("x")),f=0;if(i){var v=Math.abs(Math.cos(u));if(wn(v,0,Math.PI/180)){var p=Ja(n);f=(p+e)/c}else f=(s.height/v+e)/c}else{var v=Math.abs(Math.sin(u));if(wn(v,0,Math.PI/180)){var p=Ja(n);f=(p+e)/c}else f=(s.height/v+e)/c}if(f>1){f=Math.ceil(f);for(var g=0;g<h;g++)g%f!==0&&(n[g].hide(),a=!0)}return a}function Ky(){return Mc}function Jy(i,r,t,e){return fi(i,r,!1,e)}function tm(i,r,t,e){return fi(i,r,!0,e)}function em(i,r,t,e){var n=(e==null?void 0:e.minGap)||0,a=r.getChildren().slice();if(a.length<=2)return!1;for(var o=!1,s=a.length,l=a[0],h=a[s-1],u=l,c=1;c<s-1;c++){var f=a[c];f.getBBox();var v=to(i,u,f,n);v?(f.hide(),o=!0):u=f}var p=to(i,u,h,n);return p&&(u.hide(),o=!0),o}function Mc(i,r,t,e){var n=Cc(i,r,e);return fi(i,r,!1)&&(n=!0),n}function rm(i,r,t,e){var n=r.getChildren().slice(),a=Cc(i,r,e);if(n.length>2){var o=n[0],s=n[n.length-1];o.get("visible")||(o.show(),fi(i,r,!1,e)&&(a=!0)),s.get("visible")||(s.show(),fi(i,r,!0,e)&&(a=!0))}return a}const im=Object.freeze(Object.defineProperty({__proto__:null,equidistance:Mc,equidistanceWithReverseBoth:rm,getDefault:Ky,reserveBoth:em,reserveFirst:Jy,reserveLast:tm},Symbol.toStringTag,{value:"Module"}));function nm(i,r){M(i,function(t){var e=t.attr("x"),n=t.attr("y"),a=er({x:e,y:n},r);t.attr("matrix",a)})}function Sc(i,r,t,e){var n=r.getChildren();if(!n.length||!i&&n.length<2)return!1;var a=Ja(n),o=!1;if(i)o=!!t&&a>t;else{var s=Math.abs(n[1].attr("x")-n[0].attr("x"));o=a>s}if(o){var l=e(t,a);nm(n,l)}return o}function am(){return Ac}function Ac(i,r,t,e){return Sc(i,r,t,function(){return W(e)?e:i?V.verticalAxisRotate:V.horizontalAxisRotate})}function om(i,r,t){return Sc(i,r,t,function(e,n){if(!e)return i?V.verticalAxisRotate:V.horizontalAxisRotate;if(i)return-Math.acos(e/n);var a=0;return e>n?a=Math.PI/4:(a=Math.asin(e/n),a>Math.PI/4&&(a=Math.PI/4)),a})}const sm=Object.freeze(Object.defineProperty({__proto__:null,fixedAngle:Ac,getDefault:am,unfixedAngle:om},Symbol.toStringTag,{value:"Module"})),bc=Object.freeze(Object.defineProperty({__proto__:null,autoEllipsis:Zy,autoHide:im,autoRotate:sm},Symbol.toStringTag,{value:"Module"}));var lm=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{type:"line",locationType:"region",start:null,end:null})},r.prototype.getLinePath=function(){var t=this.get("start"),e=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",e.x,e.y]),n},r.prototype.getInnerLayoutBBox=function(){var t=this.get("start"),e=this.get("end"),n=i.prototype.getInnerLayoutBBox.call(this),a=Math.min(t.x,e.x,n.x),o=Math.min(t.y,e.y,n.y),s=Math.max(t.x,e.x,n.maxX),l=Math.max(t.y,e.y,n.maxY);return{x:a,y:o,minX:a,minY:o,maxX:s,maxY:l,width:s-a,height:l-o}},r.prototype.isVertical=function(){var t=this.get("start"),e=this.get("end");return yt(t.x,e.x)},r.prototype.isHorizontal=function(){var t=this.get("start"),e=this.get("end");return yt(t.y,e.y)},r.prototype.getTickPoint=function(t){var e=this,n=e.get("start"),a=e.get("end"),o=a.x-n.x,s=a.y-n.y;return{x:n.x+o*t,y:n.y+s*t}},r.prototype.getSideVector=function(t){var e=this.getAxisVector(),n=mu([0,0],e),a=this.get("verticalFactor"),o=[n[1],n[0]*-1];return Wt([0,0],o,t*a)},r.prototype.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},r.prototype.processOverlap=function(t){var e=this,n=this.isVertical(),a=this.isHorizontal();if(!(!n&&!a)){var o=this.get("label"),s=this.get("title"),l=this.get("verticalLimitLength"),h=o.offset,u=l,c=0,f=0;s&&(c=s.style.fontSize,f=s.spacing),u&&(u=u-h-f-c);var v=this.get("overlapOrder");if(M(v,function(d){o[d]&&e.canProcessOverlap(d)&&e.autoProcessOverlap(d,o[d],t,u)}),s&&E(s.offset)){var p=t.getCanvasBBox(),g=n?p.width:p.height;s.offset=h+g+f+c/2}}},r.prototype.canProcessOverlap=function(t){var e=this.get("label");return t==="autoRotate"?E(e.rotate):!0},r.prototype.autoProcessOverlap=function(t,e,n,a){var o=this,s=this.isVertical(),l=!1,h=bc[t];if(e===!0)this.get("label"),l=h.getDefault()(s,n,a);else if(R(e))l=e(s,n,a);else if(Q(e)){var u=e;h[u.type]&&(l=h[u.type](s,n,a,u.cfg))}else h[e]&&(l=h[e](s,n,a));if(t==="autoRotate"){if(l){var c=n.getChildren(),f=this.get("verticalFactor");M(c,function(p){var g=p.attr("textAlign");if(g==="center"){var d=f>0?"end":"start";p.attr("textAlign",d)}})}}else if(t==="autoHide"){var v=n.getChildren().slice(0);M(v,function(p){p.get("visible")||(o.get("isRegister")&&o.unregisterElement(p),p.remove())})}},r}(mc),hm=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},r.prototype.getLinePath=function(){var t=this.get("center"),e=t.x,n=t.y,a=this.get("radius"),o=a,s=this.get("startAngle"),l=this.get("endAngle"),h=[];if(Math.abs(l-s)===Math.PI*2)h=[["M",e,n-o],["A",a,o,0,1,1,e,n+o],["A",a,o,0,1,1,e,n-o],["Z"]];else{var u=this.getCirclePoint(s),c=this.getCirclePoint(l),f=Math.abs(l-s)>Math.PI?1:0,v=s>l?0:1;h=[["M",e,n],["L",u.x,u.y],["A",a,o,0,f,v,c.x,c.y],["L",e,n]]}return h},r.prototype.getTickPoint=function(t){var e=this.get("startAngle"),n=this.get("endAngle"),a=e+(n-e)*t;return this.getCirclePoint(a)},r.prototype.getSideVector=function(t,e){var n=this.get("center"),a=[e.x-n.x,e.y-n.y],o=this.get("verticalFactor"),s=dr(a);return Wt(a,a,o*t/s),a},r.prototype.getAxisVector=function(t){var e=this.get("center"),n=[t.x-e.x,t.y-e.y];return[n[1],-1*n[0]]},r.prototype.getCirclePoint=function(t,e){var n=this.get("center");return e=e||this.get("radius"),{x:n.x+Math.cos(t)*e,y:n.y+Math.sin(t)*e}},r.prototype.canProcessOverlap=function(t){var e=this.get("label");return t==="autoRotate"?E(e.rotate):!0},r.prototype.processOverlap=function(t){var e=this,n=this.get("label"),a=this.get("title"),o=this.get("verticalLimitLength"),s=n.offset,l=o,h=0,u=0;a&&(h=a.style.fontSize,u=a.spacing),l&&(l=l-s-u-h);var c=this.get("overlapOrder");if(M(c,function(v){n[v]&&e.canProcessOverlap(v)&&e.autoProcessOverlap(v,n[v],t,l)}),a&&E(a.offset)){var f=t.getCanvasBBox().height;a.offset=s+f+u+h/2}},r.prototype.autoProcessOverlap=function(t,e,n,a){var o=this,s=!1,l=bc[t];if(a>0)if(e===!0)s=l.getDefault()(!1,n,a);else if(R(e))s=e(!1,n,a);else if(Q(e)){var h=e;l[h.type]&&(s=l[h.type](!1,n,a,h.cfg))}else l[e]&&(s=l[e](!1,n,a));if(t==="autoRotate"){if(s){var u=n.getChildren(),c=this.get("verticalFactor");M(u,function(v){var p=v.attr("textAlign");if(p==="center"){var g=c>0?"end":"start";v.attr("textAlign",g)}})}}else if(t==="autoHide"){var f=n.getChildren().slice(0);M(f,function(v){v.get("visible")||(o.get("isRegister")&&o.unregisterElement(v),v.remove())})}},r}(mc),zo=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:V.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:V.textColor,textAlign:"center",textBaseline:"middle",fontFamily:V.fontFamily}},textBackground:{padding:5,style:{stroke:V.lineColor}}}})},r.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},r.prototype.renderText=function(t){var e=this.get("text"),n=e.style,a=e.autoRotate,o=e.content;if(!E(o)){var s=this.getTextPoint(),l=null;if(a){var h=this.getRotateAngle();l=er(s,h)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:m(m(m({},s),{text:o,matrix:l}),n)})}},r.prototype.renderLine=function(t){var e=this.getLinePath(),n=this.get("line"),a=n.style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:m({path:e},a)})},r.prototype.renderBackground=function(t){var e=this.getElementId("text"),n=t.findById(e),a=this.get("textBackground");if(a&&n){var o=n.getBBox(),s=xn(a.padding),l=a.style,h=this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:m({x:o.x-s[3],y:o.y-s[0],width:o.width+s[1]+s[3],height:o.height+s[0]+s[2],matrix:n.attr("matrix")},l)});h.toBack()}},r}(mt),Tc=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{type:"line",locationType:"region",start:null,end:null})},r.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.start,n=t.end,a=this.get("text").position,o=Math.atan2(n.y-e.y,n.x-e.x),s=a==="start"?o-Math.PI/2:o+Math.PI/2;return s},r.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,a=this.get("text"),o=a.position,s=a.offset;return dc(e,n,o,s)},r.prototype.getLinePath=function(){var t=this.getLocation(),e=t.start,n=t.end;return[["M",e.x,e.y],["L",n.x,n.y]]},r}(zo),um=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},r.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.startAngle,n=t.endAngle,a=this.get("text").position,o=a==="start"?e+Math.PI/2:n-Math.PI/2;return o},r.prototype.getTextPoint=function(){var t=this.get("text"),e=t.position,n=t.offset,a=this.getLocation(),o=a.center,s=a.radius,l=a.startAngle,h=a.endAngle,u=e==="start"?l:h,c=this.getRotateAngle()-Math.PI,f=Cr(o,s,u),v=Math.cos(c)*n,p=Math.sin(c)*n;return{x:f.x+v,y:f.y+p}},r.prototype.getLinePath=function(){var t=this.getLocation(),e=t.center,n=t.radius,a=t.startAngle,o=t.endAngle,s=null;if(o-a===Math.PI*2){var l=e.x,h=e.y;s=[["M",l,h-n],["A",n,n,0,1,1,l,h+n],["A",n,n,0,1,1,l,h-n],["Z"]]}else{var u=Cr(e,n,a),c=Cr(e,n,o),f=Math.abs(o-a)>Math.PI?1:0,v=a>o?0:1;s=[["M",u.x,u.y],["A",n,n,0,f,v,c.x,c.y]]}return s},r}(zo),vi="g2-crosshair",eo=vi+"-line",ro=vi+"-text",zr;const cm=(zr={},zr[""+vi]={position:"relative"},zr[""+eo]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},zr[""+ro]={position:"absolute",color:V.textColor,fontFamily:V.fontFamily},zr);var fm=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'<div class="'+vi+'"></div>',crosshairTpl:'<div class="'+eo+'"></div>',textTpl:'<span class="'+ro+'">{content}</span>',domStyles:null,containerClassName:vi,defaultStyles:cm,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},r.prototype.render=function(){this.resetText(),this.resetPosition()},r.prototype.initCrossHair=function(){var t=this.getContainer(),e=this.get("crosshairTpl"),n=Pe(e);t.appendChild(n),this.applyStyle(eo,n),this.set("crosshairEl",n)},r.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,a=this.get("text"),o=a.position,s=a.offset;return dc(e,n,o,s)},r.prototype.resetText=function(){var t=this.get("text"),e=this.get("textEl");if(t){var n=t.content;if(!e){var a=this.getContainer(),o=Jh(this.get("textTpl"),t);e=Pe(o),a.appendChild(e),this.applyStyle(ro,e),this.set("textEl",e)}e.innerHTML=n}else e&&e.remove()},r.prototype.isVertical=function(t,e){return t.x===e.x},r.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var e=this.get("start"),n=this.get("end"),a=Math.min(e.x,n.x),o=Math.min(e.y,n.y);this.isVertical(e,n)?wt(t,{width:"1px",height:Et(Math.abs(n.y-e.y))}):wt(t,{height:"1px",width:Et(Math.abs(n.x-e.x))}),wt(t,{top:Et(o),left:Et(a)}),this.alignText()},r.prototype.alignText=function(){var t=this.get("textEl");if(t){var e=this.get("text").align,n=t.clientWidth,a=this.getTextPoint();switch(e){case"center":a.x=a.x-n/2;break;case"right":a.x=a.x-n}wt(t,{top:Et(a.y),left:Et(a.x)})}},r.prototype.updateInner=function(t){Ar(t,"text")&&this.resetText(),i.prototype.updateInner.call(this,t)},r}(Vo);const Gl=Object.freeze(Object.defineProperty({__proto__:null,Base:zo,Circle:um,Html:fm,Line:Tc},Symbol.toStringTag,{value:"Module"}));var Lc=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:V.lineColor}}}})},r.prototype.getLineType=function(){var t=this.get("line")||this.get("defaultCfg").line;return t.type},r.prototype.renderInner=function(t){this.drawGrid(t)},r.prototype.getAlternatePath=function(t,e){var n=this.getGridPath(t),a=e.slice(0).reverse(),o=this.getGridPath(a,!0),s=this.get("closed");return s?n=n.concat(o):(o[0][0]="L",n=n.concat(o),n.push(["Z"])),n},r.prototype.getPathStyle=function(){return this.get("line").style},r.prototype.drawGrid=function(t){var e=this,n=this.get("line"),a=this.get("items"),o=this.get("alternateColor"),s=null;M(a,function(l,h){var u=l.id||h;if(n){var c=e.getPathStyle();c=R(c)?c(l,h,a):c;var f=e.getElementId("line-"+u),v=e.getGridPath(l.points);e.addShape(t,{type:"path",name:"grid-line",id:f,attrs:rt({path:v},c)})}if(o&&h>0){var p=e.getElementId("region-"+u),g=h%2===0;if(H(o))g&&e.drawAlternateRegion(p,t,s.points,l.points,o);else{var d=g?o[1]:o[0];e.drawAlternateRegion(p,t,s.points,l.points,d)}}s=l})},r.prototype.drawAlternateRegion=function(t,e,n,a,o){var s=this.getAlternatePath(n,a);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:s,fill:o}})},r}(mt);function vm(i,r,t,e){var n=t-i,a=e-r;return Math.sqrt(n*n+a*a)}var pm=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{type:"circle",center:null,closed:!0})},r.prototype.getGridPath=function(t,e){var n=this.getLineType(),a=this.get("closed"),o=[];if(t.length)if(n==="circle"){var s=this.get("center"),l=t[0],h=vm(s.x,s.y,l.x,l.y),u=e?0:1;a?(o.push(["M",s.x,s.y-h]),o.push(["A",h,h,0,0,u,s.x,s.y+h]),o.push(["A",h,h,0,0,u,s.x,s.y-h]),o.push(["Z"])):M(t,function(c,f){f===0?o.push(["M",c.x,c.y]):o.push(["A",h,h,0,0,u,c.x,c.y])})}else M(t,function(c,f){f===0?o.push(["M",c.x,c.y]):o.push(["L",c.x,c.y])}),a&&o.push(["Z"]);return o},r}(Lc),gm=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{type:"line"})},r.prototype.getGridPath=function(t){var e=[];return M(t,function(n,a){a===0?e.push(["M",n.x,n.y]):e.push(["L",n.x,n.y])}),e},r}(Lc),Ec=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},r.prototype.getLayoutBBox=function(){var t=i.prototype.getLayoutBBox.call(this),e=this.get("maxWidth"),n=this.get("maxHeight"),a=t.width,o=t.height;return e&&(a=Math.min(a,e)),n&&(o=Math.min(o,n)),Zn(t.minX,t.minY,a,o)},r.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},r.prototype.resetLocation=function(){var t=this.get("x"),e=this.get("y"),n=this.get("offsetX"),a=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+n,y:e+a})},r.prototype.applyOffset=function(){this.resetLocation()},r.prototype.getDrawPoint=function(){return this.get("currentPoint")},r.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},r.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},r.prototype.drawBackground=function(t){var e=this.get("background"),n=t.getBBox(),a=xn(e.padding),o=m({x:0,y:0,width:n.width+a[1]+a[3],height:n.height+a[0]+a[2]},e.style),s=this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:o});s.toBack()},r.prototype.drawTitle=function(t){var e=this.get("currentPoint"),n=this.get("title"),a=n.spacing,o=n.style,s=n.text,l=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:m({text:s,x:e.x,y:e.y},o)}),h=l.getBBox();this.set("currentPoint",{x:e.x,y:h.maxY+a})},r.prototype.resetDraw=function(){var t=this.get("background"),e={x:0,y:0};if(t){var n=xn(t.padding);e.x=n[3],e.y=n[0]}this.set("currentPoint",e)},r}(mt),Ma={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},Ni={fill:V.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:V.fontFamily,fontWeight:"normal",lineHeight:12},Sa="navigation-arrow-right",Aa="navigation-arrow-left",Hl={right:90*Math.PI/180,left:(360-90)*Math.PI/180,up:0,down:180*Math.PI/180},dm=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.currentPageIndex=1,t.totalPagesCnt=1,t.pageWidth=0,t.pageHeight=0,t.startX=0,t.startY=0,t.onNavigationBack=function(){var e=t.getElementByLocalId("item-group");if(t.currentPageIndex>1){t.currentPageIndex-=1,t.updateNavigation();var n=t.getCurrentNavigationMatrix();t.get("animate")?e.animate({matrix:n},100):e.attr({matrix:n})}},t.onNavigationAfter=function(){var e=t.getElementByLocalId("item-group");if(t.currentPageIndex<t.totalPagesCnt){t.currentPageIndex+=1,t.updateNavigation();var n=t.getCurrentNavigationMatrix();t.get("animate")?e.animate({matrix:n},100):e.attr({matrix:n})}},t}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"legend",type:"category",itemSpacing:24,itemMarginBottom:8,maxItemWidth:null,itemWidth:null,itemHeight:null,itemName:{},itemValue:null,maxWidth:null,maxHeight:null,marker:{},radio:null,items:[],itemStates:{},itemBackground:{},pageNavigator:{},defaultCfg:{title:{spacing:5,style:{fill:V.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}},background:{padding:5,style:{stroke:V.lineColor}},itemBackground:{style:{opacity:0,fill:"#fff"}},pageNavigator:Ma,itemName:{spacing:16,style:Ni},marker:{spacing:8,style:{r:6,symbol:"circle"}},itemValue:{alignRight:!1,formatter:null,style:Ni,spacing:6},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:V.uncheckedColor},markerStyle:{fill:V.uncheckedColor,stroke:V.uncheckedColor}},inactive:{nameStyle:{fill:V.uncheckedColor},markerStyle:{opacity:.2}}}}})},r.prototype.isList=function(){return!0},r.prototype.getItems=function(){return this.get("items")},r.prototype.setItems=function(t){this.update({items:t})},r.prototype.updateItem=function(t,e){rt(t,e),this.clear(),this.render()},r.prototype.clearItems=function(){var t=this.getElementByLocalId("item-group");t&&t.clear()},r.prototype.setItemState=function(t,e,n){t[e]=n;var a=this.getElementByLocalId("item-"+t.id);if(a){var o=this.getItems(),s=o.indexOf(t),l=this.createOffScreenGroup(),h=this.drawItem(t,s,this.getItemHeight(),l);this.updateElements(h,a),this.clearUpdateStatus(a)}},r.prototype.hasState=function(t,e){return!!t[e]},r.prototype.getItemStates=function(t){var e=this.get("itemStates"),n=[];return M(e,function(a,o){t[o]&&n.push(o)}),n},r.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);M(n,function(a){e.setItemState(a,t,!1)})},r.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return Ht(n,function(a){return e.hasState(a,t)})},r.prototype.drawLegendContent=function(t){this.processItems(),this.drawItems(t)},r.prototype.processItems=function(){var t=this.get("items");M(t,function(e){e.id||(e.id=e.name)})},r.prototype.drawItems=function(t){var e=this,n=this.addGroup(t,{id:this.getElementId("item-container-group"),name:"legend-item-container-group"}),a=this.addGroup(n,{id:this.getElementId("item-group"),name:"legend-item-group"}),o=this.getItemHeight(),s=this.get("itemWidth"),l=this.get("itemSpacing"),h=this.get("itemMarginBottom"),u=this.get("currentPoint"),c=u.x,f=u.y,v=this.get("layout"),p=this.get("items"),g=!1,d=0,y=this.get("maxWidth"),w=this.get("maxHeight");M(p,function(x,C){var S=e.drawItem(x,C,o,a),b=S.getBBox(),L=s||b.width;L>d&&(d=L),v==="horizontal"?(y&&y<u.x+L-c&&(g=!0,u.x=c,u.y+=o+h),e.moveElementTo(S,u),u.x+=L+l):(w&&w<u.y+o+h-f&&(g=!0,u.x+=d+l,u.y=f,d=0),e.moveElementTo(S,u),u.y+=o+h)}),g&&this.get("flipPage")&&(this.pageHeight=0,this.pageWidth=0,this.totalPagesCnt=1,this.startX=c,this.startY=f,this.adjustNavigation(t,a))},r.prototype.getItemHeight=function(){var t=this.get("itemHeight");if(!t){var e=(this.get("itemName")||{}).style;if(R(e)){var n=this.getItems();n.forEach(function(a,o){var s=m(m({},Ni),e(a,o,n)).fontSize;t<s&&(t=s)})}else e&&(t=e.fontSize)}return t},r.prototype.drawMarker=function(t,e,n,a){var o=m(m(m({x:0,y:a/2},e.style),{symbol:A(n.marker,"symbol","circle")}),A(n.marker,"style",{})),s=this.addShape(t,{type:"marker",id:this.getElementId("item-"+n.id+"-marker"),name:"legend-item-marker",attrs:o}),l=s.getBBox();s.attr("x",l.width/2);var h=s.attr(),u=h.stroke,c=h.fill;return u&&s.set("isStroke",!0),c&&s.set("isFill",!0),s},r.prototype.drawItemText=function(t,e,n,a,o,s,l){var h=n.formatter,u=n.style,c=m(m({x:s,y:o/2,text:h?h(a[e],a,l):a[e]},Ni),R(u)?u(a,l,this.getItems()):u);return this.addShape(t,{type:"text",id:this.getElementId("item-"+a.id+"-"+e),name:"legend-item-"+e,attrs:c})},r.prototype.drawRadio=function(t,e,n,a,o){var s,l,h=e.style||{},u=(s=h.r)!==null&&s!==void 0?s:a/2,c=u*3.6/8,f=[o+u,a/2-u],v=f[0],p=f[1],g=[v+u,p+u],d=g[0],y=g[1],w=[v,y+u],x=w[0],C=w[1],S=[o,p+u],b=S[0],L=S[1],B=n.showRadio,P=m(m({path:[["M",v,p],["A",u,u,0,0,1,d,y],["L",d-c,y],["L",d,y],["A",u,u,0,0,1,x,C],["L",x,C-c],["L",x,C],["A",u,u,0,0,1,b,L],["L",b+c,L],["L",b,L],["A",u,u,0,0,1,v,p],["L",v,p+c]],stroke:"#000000",fill:"#ffffff"},h),{opacity:B?(l=h==null?void 0:h.opacity)!==null&&l!==void 0?l:.45:0}),F=this.addShape(t,{type:"path",id:this.getElementId("item-"+n.id+"-radio"),name:"legend-item-radio",attrs:P});return F.set("tip",e.tip),F},r.prototype.drawItem=function(t,e,n,a){var o="item-"+t.id,s=this.addGroup(a,{name:"legend-item-container",id:this.getElementId("item-container-"+o),delegateObject:{item:t,index:e}}),l=this.addGroup(s,{name:"legend-item",id:this.getElementId(o),delegateObject:{item:t,index:e}}),h=this.get("marker"),u=this.get("itemName"),c=this.get("itemValue"),f=this.get("itemBackground"),v=this.get("radio"),p=this.getLimitItemWidth(),g=0;if(h){var d=this.drawMarker(l,h,t,n),y=h.spacing,w=A(t,["marker","spacing"]);W(w)&&(y=w),g=d.getBBox().maxX+y}if(u){var x=this.drawItemText(l,"name",u,t,n,g,e);p&&ri(!0,x,J(p-g,0,p)),g=x.getBBox().maxX+u.spacing}if(c){var C=this.drawItemText(l,"value",c,t,n,g,e);p&&(c.alignRight?(C.attr({textAlign:"right",x:p}),ri(!0,C,J(p-g,0,p),"head")):ri(!0,C,J(p-g,0,p))),g=C.getBBox().maxX+c.spacing}if(v&&this.drawRadio(l,v,t,n,g),f){var S=l.getBBox(),b=this.addShape(l,{type:"rect",name:"legend-item-background",id:this.getElementId(o+"-background"),attrs:m({x:0,y:0,width:S.width,height:n},f.style)});b.toBack()}return this.applyItemStates(t,l),l},r.prototype.adjustNavigation=function(t,e){var n=this,a=this.startX,o=this.startY,s=this.get("layout"),l=e.findAll(function(F){return F.get("name")==="legend-item"}),h=this.get("maxWidth"),u=this.get("maxHeight"),c=this.get("itemWidth"),f=this.get("itemSpacing"),v=this.getItemHeight(),p=O({},Ma,this.get("pageNavigator")),g=this.drawNavigation(t,s,"00/00",p),d=g.getBBox(),y={x:a,y:o},w=1,x=0,C=0,S=0,b=this.get("itemMarginBottom");if(s==="horizontal"){var L=this.get("maxRow")||1,B=v+(L===1?0:b);this.pageHeight=B*L,M(l,function(F){var D=F.getBBox(),Y=c||D.width;(x&&x<y.x+Y+f||h<y.x+Y+f+d.width)&&(w===1&&(x=y.x+f,n.pageWidth=x,n.moveElementTo(g,{x:h-f-d.width-d.minX,y:y.y+v/2-d.height/2-d.minY})),w+=1,y.x=a,y.y+=B),n.moveElementTo(F,y),F.getParent().setClip({type:"rect",attrs:{x:y.x,y:y.y,width:Y+f,height:v}}),y.x+=Y+f})}else{M(l,function(F){var D=F.getBBox();D.width>C&&(C=D.width)}),S=C,C+=f,h&&(C=Math.min(h,C),S=Math.min(h,S)),this.pageWidth=C,this.pageHeight=u-Math.max(d.height,v+b);var P=Math.floor(this.pageHeight/(v+b));M(l,function(F,D){D!==0&&D%P===0&&(w+=1,y.x+=C,y.y=o),n.moveElementTo(F,y),F.getParent().setClip({type:"rect",attrs:{x:y.x,y:y.y,width:C,height:v}}),y.y+=v+b}),this.totalPagesCnt=w,this.moveElementTo(g,{x:a+S/2-d.width/2-d.minX,y:u-d.height-d.minY})}this.pageHeight&&this.pageWidth&&e.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),s==="horizontal"&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(w/this.get("maxRow")):this.totalPagesCnt=w,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(g),e.attr("matrix",this.getCurrentNavigationMatrix())},r.prototype.drawNavigation=function(t,e,n,a){var o={x:0,y:0},s=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),l=A(a.marker,"style",{}),h=l.size,u=h===void 0?12:h,c=ct(l,["size"]),f=this.drawArrow(s,o,Aa,e==="horizontal"?"up":"left",u,c);f.on("click",this.onNavigationBack);var v=f.getBBox();o.x+=v.width+2;var p=this.addShape(s,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:m({x:o.x,y:o.y+u/2,text:n,textBaseline:"middle"},A(a.text,"style"))}),g=p.getBBox();o.x+=g.width+2;var d=this.drawArrow(s,o,Sa,e==="horizontal"?"down":"right",u,c);return d.on("click",this.onNavigationAfter),s},r.prototype.updateNavigation=function(t){var e=O({},Ma,this.get("pageNavigator")),n=e.marker.style,a=n.fill,o=n.opacity,s=n.inactiveFill,l=n.inactiveOpacity,h=this.currentPageIndex+"/"+this.totalPagesCnt,u=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),c=t?t.findById(this.getElementId(Aa)):this.getElementByLocalId(Aa),f=t?t.findById(this.getElementId(Sa)):this.getElementByLocalId(Sa);u.attr("text",h),c.attr("opacity",this.currentPageIndex===1?l:o),c.attr("fill",this.currentPageIndex===1?s:a),c.attr("cursor",this.currentPageIndex===1?"not-allowed":"pointer"),f.attr("opacity",this.currentPageIndex===this.totalPagesCnt?l:o),f.attr("fill",this.currentPageIndex===this.totalPagesCnt?s:a),f.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var v=c.getBBox().maxX+2;u.attr("x",v),v+=u.getBBox().width+2,this.updateArrowPath(f,{x:v,y:0})},r.prototype.drawArrow=function(t,e,n,a,o,s){var l=e.x,h=e.y,u=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:m({size:o,direction:a,path:[["M",l+o/2,h],["L",l,h+o],["L",l+o,h+o],["Z"]],cursor:"pointer"},s)});return u.attr("matrix",er({x:l+o/2,y:h+o/2},Hl[a])),u},r.prototype.updateArrowPath=function(t,e){var n=e.x,a=e.y,o=t.attr(),s=o.size,l=o.direction,h=er({x:n+s/2,y:a+s/2},Hl[l]);t.attr("path",[["M",n+s/2,a],["L",n,a+s],["L",n+s,a+s],["Z"]]),t.attr("matrix",h)},r.prototype.getCurrentNavigationMatrix=function(){var t=this,e=t.currentPageIndex,n=t.pageWidth,a=t.pageHeight,o=this.get("layout"),s=o==="horizontal"?{x:0,y:a*(1-e)}:{x:n*(1-e),y:0};return Go(s)},r.prototype.applyItemStates=function(t,e){var n=this.getItemStates(t),a=n.length>0;if(a){var o=e.getChildren(),s=this.get("itemStates");M(o,function(l){var h=l.get("name"),u=h.split("-")[2],c=jr(t,u,s);c&&(l.attr(c),u==="marker"&&!(l.get("isStroke")&&l.get("isFill"))&&(l.get("isStroke")&&l.attr("fill",null),l.get("isFill")&&l.attr("stroke",null)))})}},r.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),e=this.get("maxItemWidth");return e?t&&(e=t<=e?t:e):t&&(e=t),e},r}(Ec),ym=1.4,Vl=.4,mm=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:V.textColor,textBaseline:"middle",fontFamily:V.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:V.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},r.prototype.isSlider=function(){return!0},r.prototype.getValue=function(){return this.getCurrentValue()},r.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},r.prototype.setRange=function(t,e){this.update({min:t,max:e})},r.prototype.setValue=function(t){var e=this.getValue();this.set("value",t);var n=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(n),this.delegateEmit("valuechanged",{originValue:e,value:t})},r.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},r.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},r.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},r.prototype.bindHandlersEvent=function(t){var e=this;t.on("legend-handler-min:drag",function(n){var a=e.getValueByCanvasPoint(n.x,n.y),o=e.getCurrentValue(),s=o[1];s<a&&(s=a),e.setValue([a,s])}),t.on("legend-handler-max:drag",function(n){var a=e.getValueByCanvasPoint(n.x,n.y),o=e.getCurrentValue(),s=o[0];s>a&&(s=a),e.setValue([s,a])})},r.prototype.bindRailEvent=function(t){},r.prototype.bindTrackEvent=function(t){var e=this,n=null;t.on("legend-track:dragstart",function(a){n={x:a.x,y:a.y}}),t.on("legend-track:drag",function(a){if(n){var o=e.getValueByCanvasPoint(n.x,n.y),s=e.getValueByCanvasPoint(a.x,a.y),l=e.getCurrentValue(),h=l[1]-l[0],u=e.getRange(),c=s-o;c<0?l[0]+c>u.min?e.setValue([l[0]+c,l[1]+c]):e.setValue([u.min,u.min+h]):c>0&&(c>0&&l[1]+c<u.max?e.setValue([l[0]+c,l[1]+c]):e.setValue([u.max-h,u.max])),n={x:a.x,y:a.y}}}),t.on("legend-track:dragend",function(a){n=null})},r.prototype.drawLabels=function(t){this.drawLabel("min",t),this.drawLabel("max",t)},r.prototype.drawLabel=function(t,e){var n=this.get("label"),a=n.style,o=n.align,s=n.formatter,l=this.get(t),h=this.getLabelAlignAttrs(t,o),u="label-"+t;this.addShape(e,{type:"text",id:this.getElementId(u),name:"legend-label-"+t,attrs:m(m({x:0,y:0,text:R(s)?s(l):l},a),h)})},r.prototype.getLabelAlignAttrs=function(t,e){var n=this.isVertical(),a="center",o="middle";return n?(a="start",e!=="rail"?t==="min"?o="top":o="bottom":o="top"):e!=="rail"?(o="top",t==="min"?a="start":a="end"):(a="start",o="middle"),{textAlign:a,textBaseline:o}},r.prototype.getRailPath=function(t,e,n,a){var o=this.get("rail"),s=o.size,l=o.defaultLength,h=o.type,u=this.isVertical(),c=l,f=n,v=a;f||(f=u?s:c),v||(v=u?c:s);var p=[];return h==="color"?(p.push(["M",t,e]),p.push(["L",t+f,e]),p.push(["L",t+f,e+v]),p.push(["L",t,e+v]),p.push(["Z"])):(p.push(["M",t+f,e]),p.push(["L",t+f,e+v]),p.push(["L",t,e+v]),p.push(["Z"])),p},r.prototype.drawRail=function(t){var e=this.get("rail"),n=e.style;this.addShape(t,{type:"path",id:this.getElementId("rail"),name:"legend-rail",attrs:m({path:this.getRailPath(0,0)},n)})},r.prototype.getTrackColor=function(t){var e=t.length;if(!e)return null;if(e===1)return t[0];var n;this.isVertical()?n="l(90)":n="l(0)";for(var a=0;a<e;a++){var o=a/(e-1);n+=" "+o+":"+t[a]}return n},r.prototype.getTrackPath=function(t){var e=this.getRailShape(t),n=e.attr("path");return Rt(n)},r.prototype.getClipTrackAttrs=function(t){var e=this.getCurrentValue(),n=e[0],a=e[1],o=this.getRailBBox(t),s=this.getPointByValue(n,t),l=this.getPointByValue(a,t),h=this.isVertical(),u,c,f,v;return h?(u=o.minX,c=s.y,f=o.width,v=l.y-s.y):(u=s.x,c=o.minY,f=l.x-s.x,v=o.height),{x:u,y:c,width:f,height:v}},r.prototype.getTrackAttrs=function(t){var e=this.get("track"),n=this.get("colors"),a=this.getTrackPath(t);return rt({path:a,fill:this.getTrackColor(n)},e.style)},r.prototype.resetTrackClip=function(t){var e=t||this.get("group"),n=this.getElementId("track"),a=e.findById(n),o=a.getClip(),s=this.getClipTrackAttrs(t);o?o.attr(s):a.setClip({type:"rect",attrs:s})},r.prototype.resetTrack=function(t){var e=this.getElementId("track"),n=t.findById(e),a=this.getTrackAttrs(t);n?n.attr(a):this.addShape(t,{type:"path",id:e,draggable:this.get("slidable"),name:"legend-track",attrs:a})},r.prototype.getPointByValue=function(t,e){var n=this.getRange(),a=n.min,o=n.max,s=(t-a)/(o-a),l=this.getRailBBox(e),h=this.isVertical(),u={x:0,y:0};return h?(u.x=l.minX+l.width/2,u.y=Je(l.minY,l.maxY,s)):(u.x=Je(l.minX,l.maxX,s),u.y=l.minY+l.height/2),u},r.prototype.getRailShape=function(t){var e=t||this.get("group");return e.findById(this.getElementId("rail"))},r.prototype.getRailBBox=function(t){var e=this.getRailShape(t),n=e.getBBox();return n},r.prototype.getRailCanvasBBox=function(){var t=this.get("group"),e=t.findById(this.getElementId("rail")),n=e.getCanvasBBox();return n},r.prototype.isVertical=function(){return this.get("layout")==="vertical"},r.prototype.getValueByCanvasPoint=function(t,e){var n=this.getRange(),a=n.min,o=n.max,s=this.getRailCanvasBBox(),l=this.isVertical(),h=this.get("step"),u;l?u=(e-s.minY)/s.height:u=(t-s.minX)/s.width;var c=Je(a,o,u);if(h){var f=Math.round((c-a)/h);c=a+f*h}return c>o&&(c=o),c<a&&(c=a),c},r.prototype.getCurrentValue=function(){var t=this.get("value");if(!t){var e=this.get("values");return e?[Math.max(Math.min.apply(Math,ai(e,[this.get("max")])),this.get("min")),Math.min(Math.max.apply(Math,ai(e,[this.get("min")])),this.get("max"))]:[this.get("min"),this.get("max")]}return t},r.prototype.resetHandlers=function(t){var e=this.getCurrentValue(),n=e[0],a=e[1];this.resetHandler(t,"min",n),this.resetHandler(t,"max",a)},r.prototype.getHandlerPath=function(t,e){var n=this.isVertical(),a=[],o=t.size,s=e.x,l=e.y,h=o*ym,u=o/2,c=o/6;if(n){var f=s+h*Vl;a.push(["M",s,l]),a.push(["L",f,l+u]),a.push(["L",s+h,l+u]),a.push(["L",s+h,l-u]),a.push(["L",f,l-u]),a.push(["Z"]),a.push(["M",f,l+c]),a.push(["L",s+h-2,l+c]),a.push(["M",f,l-c]),a.push(["L",s+h-2,l-c])}else{var v=l+h*Vl;a.push(["M",s,l]),a.push(["L",s-u,v]),a.push(["L",s-u,l+h]),a.push(["L",s+u,l+h]),a.push(["L",s+u,v]),a.push(["Z"]),a.push(["M",s-c,v]),a.push(["L",s-c,l+h-2]),a.push(["M",s+c,v]),a.push(["L",s+c,l+h-2])}return a},r.prototype.resetHandler=function(t,e,n){var a=this.getPointByValue(n,t),o=this.get("handler"),s=this.getHandlerPath(o,a),l=this.getElementId("handler-"+e),h=t.findById(l),u=this.isVertical();h?h.attr("path",s):this.addShape(t,{type:"path",name:"legend-handler-"+e,draggable:!0,id:l,attrs:m(m({path:s},o.style),{cursor:u?"ns-resize":"ew-resize"})})},r.prototype.fixedElements=function(t){var e=t.findById(this.getElementId("rail")),n=t.findById(this.getElementId("label-min")),a=t.findById(this.getElementId("label-max")),o=this.getDrawPoint();this.isVertical()?this.fixedVertail(n,a,e,o):this.fixedHorizontal(n,a,e,o)},r.prototype.fitRailLength=function(t,e,n,a){var o=this.isVertical(),s=o?"height":"width",l=this.get("label"),h=l.align,u=l.spacing,c=this.get("max"+or(s));if(c){var f=h==="rail"?n[s]+t[s]+e[s]+u*2:n[s],v=f-c;v>0&&this.changeRailLength(a,s,n[s]-v)}},r.prototype.changeRailLength=function(t,e,n){var a=t.getBBox(),o;e==="height"?o=this.getRailPath(a.x,a.y,a.width,n):o=this.getRailPath(a.x,a.y,n,a.height),t.attr("path",o)},r.prototype.changeRailPosition=function(t,e,n){var a=t.getBBox(),o=this.getRailPath(e,n,a.width,a.height);t.attr("path",o)},r.prototype.fixedHorizontal=function(t,e,n,a){var o=this.get("label"),s=o.align,l=o.spacing,h=n.getBBox(),u=t.getBBox(),c=e.getBBox(),f=h.height;this.fitRailLength(u,c,h,n),h=n.getBBox(),s==="rail"?(t.attr({x:a.x,y:a.y+f/2}),this.changeRailPosition(n,a.x+u.width+l,a.y),e.attr({x:a.x+u.width+h.width+l*2,y:a.y+f/2})):s==="top"?(t.attr({x:a.x,y:a.y}),e.attr({x:a.x+h.width,y:a.y}),this.changeRailPosition(n,a.x,a.y+u.height+l)):(this.changeRailPosition(n,a.x,a.y),t.attr({x:a.x,y:a.y+h.height+l}),e.attr({x:a.x+h.width,y:a.y+h.height+l}))},r.prototype.fixedVertail=function(t,e,n,a){var o=this.get("label"),s=o.align,l=o.spacing,h=n.getBBox(),u=t.getBBox(),c=e.getBBox();if(this.fitRailLength(u,c,h,n),h=n.getBBox(),s==="rail")t.attr({x:a.x,y:a.y}),this.changeRailPosition(n,a.x,a.y+u.height+l),e.attr({x:a.x,y:a.y+u.height+h.height+l*2});else if(s==="right")t.attr({x:a.x+h.width+l,y:a.y}),this.changeRailPosition(n,a.x,a.y),e.attr({x:a.x+h.width+l,y:a.y+h.height});else{var f=Math.max(u.width,c.width);t.attr({x:a.x,y:a.y}),this.changeRailPosition(n,a.x+f+l,a.y),e.attr({x:a.x,y:a.y+h.height})}},r}(Ec),rr="g2-tooltip",ir="g2-tooltip-title",pi="g2-tooltip-list",Kn="g2-tooltip-list-item",Jn="g2-tooltip-marker",ta="g2-tooltip-value",Bc="g2-tooltip-name",No="g2-tooltip-crosshair-x",Wo="g2-tooltip-crosshair-y";const xm=Object.freeze(Object.defineProperty({__proto__:null,CONTAINER_CLASS:rr,CROSSHAIR_X:No,CROSSHAIR_Y:Wo,LIST_CLASS:pi,LIST_ITEM_CLASS:Kn,MARKER_CLASS:Jn,NAME_CLASS:Bc,TITLE_CLASS:ir,VALUE_CLASS:ta},Symbol.toStringTag,{value:"Module"}));var ee;const wm=(ee={},ee[""+rr]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:V.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},ee[""+ir]={marginBottom:"4px"},ee[""+pi]={margin:"0px",listStyleType:"none",padding:"0px"},ee[""+Kn]={listStyleType:"none",marginBottom:"4px"},ee[""+Jn]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},ee[""+ta]={display:"inline-block",float:"right",marginLeft:"30px"},ee[""+No]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},ee[""+Wo]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},ee);function Cm(i,r,t,e,n){var a={left:i<n.x,right:i+t>n.x+n.width,top:r<n.y,bottom:r+e>n.y+n.height};return a}function Mm(i,r,t,e,n,a){var o=i,s=r;switch(a){case"left":o=i-e-t,s=r-n/2;break;case"right":o=i+t,s=r-n/2;break;case"top":o=i-e/2,s=r-n-t;break;case"bottom":o=i-e/2,s=r+t;break;default:o=i+t,s=r-n-t;break}return{x:o,y:s}}function Sm(i,r,t,e,n,a,o){var s=Mm(i,r,t,e,n,a);if(o){var l=Cm(s.x,s.y,e,n,o);a==="auto"?(l.right&&(s.x=Math.max(0,i-e-t)),l.top&&(s.y=Math.max(0,r-n-t))):a==="top"||a==="bottom"?(l.left&&(s.x=o.x),l.right&&(s.x=o.x+o.width-e),a==="top"&&l.top&&(s.y=r+t),a==="bottom"&&l.bottom&&(s.y=r-n-t)):(l.top&&(s.y=o.y),l.bottom&&(s.y=o.y+o.height-n),a==="left"&&l.left&&(s.x=i+t),a==="right"&&l.right&&(s.x=i-e-t))}return s}function Am(i,r){var t=!1;return M(r,function(e){if(Ar(i,e))return t=!0,!1}),t}var bm=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'<div class="'+rr+'"><div class="'+ir+'"></div><ul class="'+pi+'"></ul></div>',itemTpl:'<li class="'+Kn+'" data-index={index}>\n <span class="'+Jn+'" style="background:{color}"></span>\n <span class="'+Bc+'">{name}</span>:\n <span class="'+ta+'">{value}</span>\n </li>',xCrosshairTpl:'<div class="'+No+'"></div>',yCrosshairTpl:'<div class="'+Wo+'"></div>',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:rr,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:wm})},r.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},r.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},r.prototype.show=function(){var t=this.getContainer();!t||this.destroyed||(this.set("visible",!0),wt(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},r.prototype.hide=function(){var t=this.getContainer();!t||this.destroyed||(this.set("visible",!1),wt(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},r.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},r.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},r.prototype.setCrossHairsVisible=function(t){var e=t?"":"none",n=this.get("xCrosshairDom"),a=this.get("yCrosshairDom");n&&wt(n,{display:e}),a&&wt(a,{display:e})},r.prototype.initContainer=function(){if(i.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var t=this.getHtmlContentNode();this.get("parent").appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()}},r.prototype.updateInner=function(t){this.get("customContent")?this.renderCustomContent():(Am(t,["title","showTitle"])&&this.resetTitle(),Ar(t,"items")&&this.renderItems()),i.prototype.updateInner.call(this,t)},r.prototype.initDom=function(){this.cacheDoms()},r.prototype.removeDom=function(){i.prototype.removeDom.call(this),this.clearCrosshairs()},r.prototype.resetPosition=function(){var t=this.get("x"),e=this.get("y"),n=this.get("offset"),a=this.getOffset(),o=a.offsetX,s=a.offsetY,l=this.get("position"),h=this.get("region"),u=this.getContainer(),c=this.getBBox(),f=c.width,v=c.height,p;h&&(p=ci(h));var g=Sm(t,e,n,f,v,l,p);wt(u,{left:Et(g.x+o),top:Et(g.y+s)}),this.resetCrosshairs()},r.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),e=this.get("parent"),n=this.get("container");n&&n.parentNode===e?e.replaceChild(t,n):e.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},r.prototype.getHtmlContentNode=function(){var t,e=this.get("customContent");if(e){var n=e(this.get("title"),this.get("items"));eu(n)?t=n:t=Pe(n)}return t},r.prototype.cacheDoms=function(){var t=this.getContainer(),e=t.getElementsByClassName(ir)[0],n=t.getElementsByClassName(pi)[0];this.set("titleDom",e),this.set("listDom",n)},r.prototype.resetTitle=function(){var t=this.get("title"),e=this.get("showTitle");e&&t?this.setTitle(t):this.setTitle("")},r.prototype.setTitle=function(t){var e=this.get("titleDom");e&&(e.innerText=t)},r.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),e=this.get("crosshairs");if(!t||!e)this.clearCrosshairs();else{var n=ci(t),a=this.get("xCrosshairDom"),o=this.get("yCrosshairDom");e==="x"?(this.resetCrosshair("x",n),o&&(o.remove(),this.set("yCrosshairDom",null))):e==="y"?(this.resetCrosshair("y",n),a&&(a.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",n),this.resetCrosshair("y",n)),this.setCrossHairsVisible(this.get("visible"))}},r.prototype.resetCrosshair=function(t,e){var n=this.checkCrosshair(t),a=this.get(t);t==="x"?wt(n,{left:Et(a),top:Et(e.y),height:Et(e.height)}):wt(n,{top:Et(a),left:Et(e.x),width:Et(e.width)})},r.prototype.checkCrosshair=function(t){var e=t+"CrosshairDom",n=t+"CrosshairTpl",a="CROSSHAIR_"+t.toUpperCase(),o=xm[a],s=this.get(e),l=this.get("parent");return s||(s=Pe(this.get(n)),this.applyStyle(o,s),l.appendChild(s),this.set(e,s)),s},r.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),e=this.get("itemTpl"),n=this.get("listDom");n&&(M(t,function(a){var o=ui.toCSSGradient(a.color),s=m(m({},a),{color:o}),l=Jh(e,s),h=Pe(l);n.appendChild(h)}),this.applyChildrenStyles(n,this.get("domStyles")))},r.prototype.clearItemDoms=function(){this.get("listDom")&&Ho(this.get("listDom"))},r.prototype.clearCrosshairs=function(){var t=this.get("xCrosshairDom"),e=this.get("yCrosshairDom");t&&t.remove(),e&&e.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},r}(Vo),Tm={opacity:0},Lm={stroke:"#C5C5C5",strokeOpacity:.85},Em={fill:"#CACED4",opacity:.85};function Bm(i){return At(i,function(r,t){var e=t===0?"M":"L",n=r[0],a=r[1];return[e,n,a]})}function Ic(i){return Bm(i)}function Im(i){if(i.length<=2)return Ic(i);var r=[];M(i,function(o){st(o,r.slice(r.length-2))||r.push(o[0],o[1])});var t=Vg(r,!1),e=Yt(i),n=e[0],a=e[1];return t.unshift(["M",n,a]),t}function km(i,r,t,e){e===void 0&&(e=!0);var n=new jn({values:i}),a=new $n({values:At(i,function(s,l){return l})}),o=At(i,function(s,l){return[a.scale(l)*r,t-n.scale(s)*t]});return e?Im(o):Ic(o)}function Pm(i,r){var t=new jn({values:i}),e=t.max<0?t.max:Math.max(0,t.min);return r-t.scale(e)*r}function Fm(i,r,t,e){var n=ai(i),a=Pm(e,t);return n.push(["L",r,a]),n.push(["L",0,a]),n.push(["Z"]),n}var Om=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:Tm,lineStyle:Lm,areaStyle:Em})},r.prototype.renderInner=function(t){var e=this.cfg,n=e.width,a=e.height,o=e.data,s=e.smooth,l=e.isArea,h=e.backgroundStyle,u=e.lineStyle,c=e.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:m({x:0,y:0,width:n,height:a},h)});var f=km(o,n,a,s);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:m({path:f},u)}),l){var v=Fm(f,n,a,o);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:m({path:v},c)})}},r.prototype.applyOffset=function(){var t=this.cfg,e=t.x,n=t.y;this.moveElementTo(this.get("group"),{x:e,y:n})},r}(mt),kc={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},Xl=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"handler",x:0,y:0,width:10,height:24,style:kc})},r.prototype.renderInner=function(t){var e=this.cfg,n=e.width,a=e.height,o=e.style,s=o.fill,l=o.stroke,h=o.radius,u=o.opacity,c=o.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:a,fill:s,stroke:l,radius:h,opacity:u,cursor:c}});var f=1/3*n,v=2/3*n,p=1/4*a,g=3/4*a;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:f,y1:p,x2:f,y2:g,stroke:l,cursor:c}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:v,y1:p,x2:v,y2:g,stroke:l,cursor:c}})},r.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},r.prototype.initEvent=function(){this.bindEvents()},r.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",function(){var e=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",e),t.draw()}),this.get("group").on("mouseleave",function(){var e=t.get("style").fill;t.getElementByLocalId("background").attr("fill",e),t.draw()})},r.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},r}(mt),Dm={fill:"#416180",opacity:.05},Rm={fill:"#5B8FF9",opacity:.15,cursor:"move"},un=10,Ym={width:un,height:24},Gm={textBaseline:"middle",fill:"#000",opacity:.45},Hm="sliderchange",Vm=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.onMouseDown=function(e){return function(n){t.currentTarget=e;var a=n.originalEvent;a.stopPropagation(),a.preventDefault(),t.prevX=A(a,"touches.0.pageX",a.pageX),t.prevY=A(a,"touches.0.pageY",a.pageY);var o=t.getContainerDOM();o.addEventListener("mousemove",t.onMouseMove),o.addEventListener("mouseup",t.onMouseUp),o.addEventListener("mouseleave",t.onMouseUp),o.addEventListener("touchmove",t.onMouseMove),o.addEventListener("touchend",t.onMouseUp),o.addEventListener("touchcancel",t.onMouseUp)}},t.onMouseMove=function(e){var n=t.cfg.width,a=[t.get("start"),t.get("end")];e.stopPropagation(),e.preventDefault();var o=A(e,"touches.0.pageX",e.pageX),s=A(e,"touches.0.pageY",e.pageY),l=o-t.prevX,h=t.adjustOffsetRange(l/n);t.updateStartEnd(h),t.updateUI(t.getElementByLocalId("foreground"),t.getElementByLocalId("minText"),t.getElementByLocalId("maxText")),t.prevX=o,t.prevY=s,t.draw(),t.emit(Hm,[t.get("start"),t.get("end")].sort()),t.delegateEmit("valuechanged",{originValue:a,value:[t.get("start"),t.get("end")]})},t.onMouseUp=function(){t.currentTarget&&(t.currentTarget=void 0);var e=t.getContainerDOM();e&&(e.removeEventListener("mousemove",t.onMouseMove),e.removeEventListener("mouseup",t.onMouseUp),e.removeEventListener("mouseleave",t.onMouseUp),e.removeEventListener("touchmove",t.onMouseMove),e.removeEventListener("touchend",t.onMouseUp),e.removeEventListener("touchcancel",t.onMouseUp))},t}return r.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.get("start"),a=this.get("end"),o=J(n,t,e),s=J(a,t,e);!this.get("isInit")&&(n!==o||a!==s)&&this.setValue([o,s])},r.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},r.prototype.setValue=function(t){var e=this.getRange();if(I(t)&&t.length===2){var n=[this.get("start"),this.get("end")];this.update({start:J(t[0],e.min,e.max),end:J(t[1],e.min,e.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:n,value:t})}},r.prototype.getValue=function(){return[this.get("start"),this.get("end")]},r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:Dm,foregroundStyle:Rm,handlerStyle:Ym,textStyle:Gm}})},r.prototype.update=function(t){var e=t.start,n=t.end,a=m({},t);E(e)||(a.start=J(e,0,1)),E(n)||(a.end=J(n,0,1)),i.prototype.update.call(this,a),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},r.prototype.init=function(){this.set("start",J(this.get("start"),0,1)),this.set("end",J(this.get("end"),0,1)),i.prototype.init.call(this)},r.prototype.render=function(){i.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},r.prototype.renderInner=function(t){var e=this.cfg;e.start,e.end;var n=e.width,a=e.height,o=e.trendCfg,s=o===void 0?{}:o,l=e.minText,h=e.maxText,u=e.backgroundStyle,c=u===void 0?{}:u,f=e.foregroundStyle,v=f===void 0?{}:f,p=e.textStyle,g=p===void 0?{}:p,d=O({},kc,this.cfg.handlerStyle);Ft(A(s,"data"))&&(this.trend=this.addComponent(t,m({component:Om,id:this.getElementId("trend"),x:0,y:0,width:n,height:a},s))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:m({x:0,y:0,width:n,height:a},c)}),this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:m({y:a/2,textAlign:"right",text:l,silent:!1},g)}),this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:m({y:a/2,textAlign:"left",text:h,silent:!1},g)}),this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:m({y:0,height:a},v)});var y=A(d,"width",un),w=A(d,"height",24);this.minHandler=this.addComponent(t,{component:Xl,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(a-w)/2,width:y,height:w,cursor:"ew-resize",style:d}),this.maxHandler=this.addComponent(t,{component:Xl,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(a-w)/2,width:y,height:w,cursor:"ew-resize",style:d})},r.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},r.prototype.initEvent=function(){this.bindEvents()},r.prototype.updateUI=function(t,e,n){var a=this.cfg,o=a.start,s=a.end,l=a.width,h=a.minText,u=a.maxText,c=a.handlerStyle,f=a.height,v=o*l,p=s*l;this.trend&&(this.trend.update({width:l,height:f}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",v),t.attr("width",p-v);var g=A(c,"width",un);e.attr("text",h),n.attr("text",u);var d=this._dodgeText([v,p],e,n),y=d[0],w=d[1];this.minHandler&&(this.minHandler.update({x:v-g/2}),this.get("updateAutoRender")||this.minHandler.render()),M(y,function(x,C){return e.attr(C,x)}),this.maxHandler&&(this.maxHandler.update({x:p-g/2}),this.get("updateAutoRender")||this.maxHandler.render()),M(w,function(x,C){return n.attr(C,x)})},r.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var e=t.findById(this.getElementId("foreground"));e.on("mousedown",this.onMouseDown("foreground")),e.on("touchstart",this.onMouseDown("foreground"))},r.prototype.adjustOffsetRange=function(t){var e=this.cfg,n=e.start,a=e.end;switch(this.currentTarget){case"minHandler":{var o=0-n,s=1-n;return Math.min(s,Math.max(o,t))}case"maxHandler":{var o=0-a,s=1-a;return Math.min(s,Math.max(o,t))}case"foreground":{var o=0-n,s=1-a;return Math.min(s,Math.max(o,t))}}},r.prototype.updateStartEnd=function(t){var e=this.cfg,n=e.start,a=e.end;switch(this.currentTarget){case"minHandler":n+=t;break;case"maxHandler":a+=t;break;case"foreground":n+=t,a+=t;break}this.set("start",n),this.set("end",a)},r.prototype._dodgeText=function(t,e,n){var a,o,s=this.cfg,l=s.handlerStyle,h=s.width,u=2,c=A(l,"width",un),f=t[0],v=t[1],p=!1;f>v&&(a=[v,f],f=a[0],v=a[1],o=[n,e],e=o[0],n=o[1],p=!0);var g=e.getBBox(),d=n.getBBox(),y=g.width>f-u?{x:f+c/2+u,textAlign:"left"}:{x:f-c/2-u,textAlign:"right"},w=d.width>h-v-u?{x:v-c/2-u,textAlign:"right"}:{x:v+c/2+u,textAlign:"left"};return p?[w,y]:[y,w]},r.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},r.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},r}(mt),Xm={trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},ba={default:Xm,hover:{thumbColor:"rgba(0,0,0,0.2)"}},zm=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.clearEvents=Ee,t.onStartEvent=function(e){return function(n){t.isMobile=e,n.originalEvent.preventDefault();var a=e?A(n.originalEvent,"touches.0.clientX"):n.clientX,o=e?A(n.originalEvent,"touches.0.clientY"):n.clientY;t.startPos=t.cfg.isHorizontal?a:o,t.bindLaterEvent()}},t.bindLaterEvent=function(){var e=t.getContainerDOM(),n=[];t.isMobile?n=[lr(e,"touchmove",t.onMouseMove),lr(e,"touchend",t.onMouseUp),lr(e,"touchcancel",t.onMouseUp)]:n=[lr(e,"mousemove",t.onMouseMove),lr(e,"mouseup",t.onMouseUp),lr(e,"mouseleave",t.onMouseUp)],t.clearEvents=function(){n.forEach(function(a){a.remove()})}},t.onMouseMove=function(e){var n=t.cfg,a=n.isHorizontal,o=n.thumbOffset;e.preventDefault();var s=t.isMobile?A(e,"touches.0.clientX"):e.clientX,l=t.isMobile?A(e,"touches.0.clientY"):e.clientY,h=a?s:l,u=h-t.startPos;t.startPos=h,t.updateThumbOffset(o+u)},t.onMouseUp=function(e){e.preventDefault(),t.clearEvents()},t.onTrackClick=function(e){var n=t.cfg,a=n.isHorizontal,o=n.x,s=n.y,l=n.thumbLen,h=t.getContainerDOM(),u=h.getBoundingClientRect(),c=e.clientX,f=e.clientY,v=a?c-u.left-o-l/2:f-u.top-s-l/2,p=t.validateRange(v);t.updateThumbOffset(p)},t.onThumbMouseOver=function(){var e=t.cfg.theme.hover.thumbColor;t.getElementByLocalId("thumb").attr("stroke",e),t.draw()},t.onThumbMouseOut=function(){var e=t.cfg.theme.default.thumbColor;t.getElementByLocalId("thumb").attr("stroke",e),t.draw()},t}return r.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.getValue(),a=J(n,t,e);n!==a&&!this.get("isInit")&&this.setValue(a)},r.prototype.getRange=function(){var t=this.get("minLimit")||0,e=this.get("maxLimit")||1;return{min:t,max:e}},r.prototype.setValue=function(t){var e=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*J(t,e.min,e.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},r.prototype.getValue=function(){return J(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return m(m({},t),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:ba})},r.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},r.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},r.prototype.initEvent=function(){this.bindEvents()},r.prototype.renderTrackShape=function(t){var e=this.cfg,n=e.trackLen,a=e.theme,o=a===void 0?{default:{}}:a,s=O({},ba,o).default,l=s.lineCap,h=s.trackColor,u=s.size,c=A(this.cfg,"size",u),f=this.get("isHorizontal")?{x1:0+c/2,y1:c/2,x2:n-c/2,y2:c/2,lineWidth:c,stroke:h,lineCap:l}:{x1:c/2,y1:0+c/2,x2:c/2,y2:n-c/2,lineWidth:c,stroke:h,lineCap:l};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:f})},r.prototype.renderThumbShape=function(t){var e=this.cfg,n=e.thumbOffset,a=e.thumbLen,o=e.theme,s=O({},ba,o).default,l=s.size,h=s.lineCap,u=s.thumbColor,c=A(this.cfg,"size",l),f=this.get("isHorizontal")?{x1:n+c/2,y1:c/2,x2:n+a-c/2,y2:c/2,lineWidth:c,stroke:u,lineCap:h,cursor:"default"}:{x1:c/2,y1:n+c/2,x2:c/2,y2:n+a-c/2,lineWidth:c,stroke:u,lineCap:h,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:f})},r.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp);var e=t.findById(this.getElementId("track"));e.on("click",this.onTrackClick);var n=t.findById(this.getElementId("thumb"));n.on("mouseover",this.onThumbMouseOver),n.on("mouseout",this.onThumbMouseOut)},r.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},r.prototype.validateRange=function(t){var e=this.cfg,n=e.thumbLen,a=e.trackLen,o=t;return t+n>a?o=a-n:t+n<n&&(o=0),o},r.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},r.prototype.updateThumbOffset=function(t){var e=this.cfg,n=e.thumbOffset,a=e.isHorizontal,o=e.thumbLen,s=e.size,l=this.validateRange(t);if(l!==n){var h=this.getElementByLocalId("thumb");a?h.attr({x1:l+s/2,x2:l+o-s/2}):h.attr({y1:l+s/2,y2:l+o-s/2}),this.emitOffsetChange(l)}},r.prototype.emitOffsetChange=function(t){var e=this.cfg,n=e.thumbOffset,a=e.trackLen,o=e.thumbLen;this.cfg.thumbOffset=t,this.emit("scrollchange",{thumbOffset:t,ratio:J(t/(a-o),0,1)}),this.delegateEmit("valuechange",{originalValue:n,value:t})},r}(mt),Nm=lm,Wm=hm,_m=gm,$m=pm,zl=dm,Um=mm,_o=bm;function jm(i){if(se(i))return null;var r=i[0].x,t=i[0].x,e=i[0].y,n=i[0].y;return M(i,function(a){r=r>a.x?a.x:r,t=t<a.x?a.x:t,e=e>a.y?a.y:e,n=n<a.y?a.y:n}),{minX:r,maxX:t,minY:e,maxY:n,centerX:(r+t)/2,centerY:(e+n)/2}}function Nl(i){return Array.from(new Set(i)).length===1}function Wl(i){return(oe(i)+Qt(i))/2}function it(i,r,t,e){return{x:i+t*Math.cos(e),y:r+t*Math.sin(e)}}function Fe(i,r,t,e,n,a){a===void 0&&(a=0);var o=it(i,r,t,e),s=it(i,r,t,n),l=it(i,r,a,e),h=it(i,r,a,n);if(n-e===Math.PI*2){var u=it(i,r,t,e+Math.PI),c=it(i,r,a,e+Math.PI),f=[["M",o.x,o.y],["A",t,t,0,1,1,u.x,u.y],["A",t,t,0,1,1,s.x,s.y],["M",l.x,l.y]];return a&&(f.push(["A",a,a,0,1,0,c.x,c.y]),f.push(["A",a,a,0,1,0,h.x,h.y])),f.push(["M",o.x,o.y]),f.push(["Z"]),f}var v=n-e<=Math.PI?0:1,p=[["M",o.x,o.y],["A",t,t,0,v,1,s.x,s.y],["L",h.x,h.y]];return a&&p.push(["A",a,a,0,v,0,l.x,l.y]),p.push(["L",o.x,o.y]),p.push(["Z"]),p}function Pc(i,r,t,e,n){var a=it(i,r,t,e),o=it(i,r,t,n);if(yt(n-e,Math.PI*2)){var s=it(i,r,t,e+Math.PI);return[["M",a.x,a.y],["A",t,t,0,1,1,s.x,s.y],["A",t,t,0,1,1,a.x,a.y],["A",t,t,0,1,0,s.x,s.y],["A",t,t,0,1,0,a.x,a.y],["Z"]]}var l=n-e<=Math.PI?0:1;return[["M",a.x,a.y],["A",t,t,0,l,1,o.x,o.y]]}function gi(i,r){var t=i.points,e=jm(t),n,a,o=r.startAngle,s=r.endAngle,l=s-o;return r.isTransposed?(n=e.maxY*l,a=e.minY*l):(n=e.maxX*l,a=e.minX*l),n+=o,a+=o,{startAngle:a,endAngle:n}}function qm(i,r){if(W(i)&&W(r))return[i,r];if(i=i,r=r,Nl(i)||Nl(r))return[Wl(i),Wl(r)];for(var t=-1,e=0,n=0,a,o=i.length-1,s,l=0;++t<i.length;)a=o,o=t,l+=s=i[a]*r[o]-i[o]*r[a],e+=(i[a]+i[o])*s,n+=(r[a]+r[o])*s;return l*=3,[e/l,n/l]}function Fc(i,r){var t=i.attr(),e=r.attr();return M(t,function(n,a){e[a]===void 0&&(e[a]=void 0)}),e}function yr(i,r,t){var e=Math.min(r,t),n=Math.max(r,t);return i>=e&&i<=n}function Zm(i,r,t){if(H(i))return i.padEnd(r,t);if(I(i)){var e=i.length;if(e<r)for(var n=r-e,a=0;a<n;a++)i.push(t)}return i}function Bt(i,r){return typeof i=="object"&&r.forEach(function(t){delete i[t]}),i}function Le(i,r,t){r===void 0&&(r=[]),t===void 0&&(t=new Map);for(var e=0,n=i;e<n.length;e++){var a=n[e];t.has(a)||(r.push(a),t.set(a,!0))}return r}var bt=function(){function i(r,t,e,n){r===void 0&&(r=0),t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0),this.x=r,this.y=t,this.height=n,this.width=e}return i.fromRange=function(r,t,e,n){return new i(r,t,e-r,n-t)},i.fromObject=function(r){return new i(r.minX,r.minY,r.width,r.height)},Object.defineProperty(i.prototype,"minX",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"maxX",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"minY",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"maxY",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"tl",{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"tr",{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"bl",{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"br",{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"top",{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"right",{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"bottom",{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"left",{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),i.prototype.isEqual=function(r){return this.x===r.x&&this.y===r.y&&this.width===r.width&&this.height===r.height},i.prototype.contains=function(r){return r.minX>=this.minX&&r.maxX<=this.maxX&&r.minY>=this.minY&&r.maxY<=this.maxY},i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height)},i.prototype.add=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var e=this.clone();return M(r,function(n){e.x=Math.min(n.x,e.x),e.y=Math.min(n.y,e.y),e.width=Math.max(n.maxX,e.maxX)-e.x,e.height=Math.max(n.maxY,e.maxY)-e.y}),e},i.prototype.merge=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var e=this.clone();return M(r,function(n){e.x=Math.max(n.x,e.x),e.y=Math.max(n.y,e.y),e.width=Math.min(n.maxX,e.maxX)-e.x,e.height=Math.min(n.maxY,e.maxY)-e.y}),e},i.prototype.cut=function(r,t){var e=r.width,n=r.height;switch(t){case k.TOP:case k.TOP_LEFT:case k.TOP_RIGHT:return i.fromRange(this.minX,this.minY+n,this.maxX,this.maxY);case k.RIGHT:case k.RIGHT_TOP:case k.RIGHT_BOTTOM:return i.fromRange(this.minX,this.minY,this.maxX-e,this.maxY);case k.BOTTOM:case k.BOTTOM_LEFT:case k.BOTTOM_RIGHT:return i.fromRange(this.minX,this.minY,this.maxX,this.maxY-n);case k.LEFT:case k.LEFT_TOP:case k.LEFT_BOTTOM:return i.fromRange(this.minX+e,this.minY,this.maxX,this.maxY);default:return this}},i.prototype.shrink=function(r){var t=r[0],e=r[1],n=r[2],a=r[3];return new i(this.x+a,this.y+t,this.width-a-e,this.height-t-n)},i.prototype.expand=function(r){var t=r[0],e=r[1],n=r[2],a=r[3];return new i(this.x-a,this.y-t,this.width+a+e,this.height+t+n)},i.prototype.exceed=function(r){return[Math.max(-this.minY+r.minY,0),Math.max(this.maxX-r.maxX,0),Math.max(this.maxY-r.maxY,0),Math.max(-this.minX+r.minX,0)]},i.prototype.collide=function(r){return this.minX<r.maxX&&this.maxX>r.minX&&this.minY<r.maxY&&this.maxY>r.minY},i.prototype.size=function(){return this.width*this.height},i.prototype.isPointIn=function(r){return r.x>=this.minX&&r.x<=this.maxX&&r.y>=this.minY&&r.y<=this.maxY},i}();function Qm(i){return[[i.minX,i.minY],[i.maxX,i.minY],[i.maxX,i.maxY],[i.minX,i.maxY]]}function Ti(i){if(i.isPolar&&!i.isTransposed)return(i.endAngle-i.startAngle)*i.getRadius();var r=i.convert({x:0,y:0}),t=i.convert({x:1,y:0});return Math.sqrt(Math.pow(t.x-r.x,2)+Math.pow(t.y-r.y,2))}function Km(i){if(i.isPolar){var r=i.startAngle,t=i.endAngle;return t-r===Math.PI*2}return!1}function ea(i,r){var t=i.getCenter();return Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2))}function io(i,r){var t=!1;if(i)if(i.type==="theta"){var e=i.start,n=i.end;t=yr(r.x,e.x,n.x)&&yr(r.y,e.y,n.y)}else{var a=i.invert(r);t=yr(a.x,0,1)&&yr(a.y,0,1)}return t}function br(i,r){var t=i.getCenter();return Math.atan2(r.y-t.y,r.x-t.x)}function $o(i,r){r===void 0&&(r=0);var t=i.start,e=i.end,n=i.getWidth(),a=i.getHeight();if(i.isPolar){var o=i.startAngle,s=i.endAngle,l=i.getCenter(),h=i.getRadius();return{type:"path",startState:{path:Fe(l.x,l.y,h+r,o,o)},endState:function(c){var f=(s-o)*c+o,v=Fe(l.x,l.y,h+r,o,f);return{path:v}},attrs:{path:Fe(l.x,l.y,h+r,o,s)}}}var u;return i.isTransposed?u={height:a+r*2}:u={width:n+r*2},{type:"rect",startState:{x:t.x-r,y:e.y-r,width:i.isTransposed?n+r*2:0,height:i.isTransposed?0:a+r*2},endState:u,attrs:{x:t.x-r,y:e.y-r,width:n+r*2,height:a+r*2}}}function Jm(i,r){r===void 0&&(r=0);var t=i.start,e=i.end,n=i.getWidth(),a=i.getHeight(),o=Math.min(t.x,e.x),s=Math.min(t.y,e.y);return bt.fromRange(o-r,s-r,o+n+r,s+a+r)}var t0=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function e0(i){var r="linear";return t0.test(i)?r="timeCat":H(i)&&(r="cat"),r}function Oc(i,r,t,e){return r===void 0&&(r={}),r.type?r.type:i.type!=="identity"&&pr.includes(t)&&["interval"].includes(e)||i.isCategory?"cat":i.type}function r0(i,r,t){var e=r||[];if(W(i)||E(Fv(e,i))&&se(t)){var n=Qa("identity");return new n({field:i.toString(),values:[i]})}var a=ge(e,i),o=A(t,"type",e0(a[0])),s=Qa(o);return new s(m({field:i,values:a},t))}function i0(i,r){if(i.type!=="identity"&&r.type!=="identity"){var t={};for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e]);i.change(t)}}function di(i){return i.alias||i.field}function Dc(i,r,t){var e=i.values,n=e.length,a;if(n===1)a=[.5,1];else{var o=1,s=0;Km(r)?r.isTransposed?(o=A(t,"widthRatio.multiplePie",1/1.3),s=1/n*o,a=[s/2,1-s/2]):a=[0,1-1/n]:(s=1/n/2,a=[s,1-s])}return a}function n0(i){var r=i.values.filter(function(t){return!E(t)&&!isNaN(t)});return Math.max.apply(Math,vt(vt([],r,!1),[E(i.max)?-1/0:i.max],!1))}function a0(i){var r,t;switch(i){case k.TOP:r={x:0,y:1},t={x:1,y:1};break;case k.RIGHT:r={x:1,y:0},t={x:1,y:1};break;case k.BOTTOM:r={x:0,y:0},t={x:1,y:0};break;case k.LEFT:r={x:0,y:0},t={x:0,y:1};break;default:r=t={x:0,y:0}}return{start:r,end:t}}function o0(i){var r,t;return i.isTransposed?(r={x:0,y:0},t={x:1,y:0}):(r={x:0,y:0},t={x:0,y:1}),{start:r,end:t}}function Wi(i,r){var t={start:{x:0,y:0},end:{x:0,y:0}};i.isRect?t=a0(r):i.isPolar&&(t=o0(i));var e=t.start,n=t.end;return{start:i.convert(e),end:i.convert(n)}}function Rc(i){var r=i.start,t=i.end;return r.x===t.x}function _l(i,r){var t=i.start,e=i.end,n=Rc(i);return n?(t.y-e.y)*(r.x-t.x)>0?1:-1:(e.x-t.x)*(t.y-r.y)>0?-1:1}function _i(i,r){var t=A(i,["components","axis"],{});return O({},A(t,["common"],{}),O({},A(t,[r],{})))}function $l(i,r,t){var e=A(i,["components","axis"],{});return O({},A(e,["common","title"],{}),O({},A(e,[r,"title"],{})),t)}function Ta(i){var r=i.x,t=i.y,e=i.circleCenter,n=t.start>t.end,a=i.isTransposed?i.convert({x:n?0:1,y:0}):i.convert({x:0,y:n?0:1}),o=[a.x-e.x,a.y-e.y],s=[1,0],l=a.y>e.y?Na(o,s):Na(o,s)*-1,h=l+(r.end-r.start),u=Math.sqrt(Math.pow(a.x-e.x,2)+Math.pow(a.y-e.y,2));return{center:e,radius:u,startAngle:l,endAngle:h}}function Cn(i,r){return si(i)?i===!1?!1:{}:A(i,[r])}function Ul(i,r){return A(i,"position",r)}function jl(i,r){return A(r,["title","text"],di(i))}var Pr=function(){function i(r,t){this.destroyed=!1,this.facets=[],this.view=r,this.cfg=O({},this.getDefaultCfg(),t)}return i.prototype.init=function(){this.container||(this.container=this.createContainer());var r=this.view.getData();this.facets=this.generateFacets(r)},i.prototype.render=function(){this.renderViews()},i.prototype.update=function(){},i.prototype.clear=function(){this.clearFacetViews()},i.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},i.prototype.facetToView=function(r){var t=r.region,e=r.data,n=r.padding,a=n===void 0?this.cfg.padding:n,o=this.view.createView({region:t,padding:a});o.data(e||[]),r.view=o,this.beforeEachView(o,r);var s=this.cfg.eachView;return s&&s(o,r),this.afterEachView(o,r),o},i.prototype.createContainer=function(){var r=this.view.getLayer(tt.FORE);return r.addGroup()},i.prototype.renderViews=function(){this.createFacetViews()},i.prototype.createFacetViews=function(){var r=this;return this.facets.map(function(t){return r.facetToView(t)})},i.prototype.clearFacetViews=function(){var r=this;M(this.facets,function(t){t.view&&(r.view.removeView(t.view),t.view=void 0)})},i.prototype.parseSpacing=function(){var r=this.view.viewBBox,t=r.width,e=r.height,n=this.cfg.spacing;return n.map(function(a,o){return W(a)?a/(o===0?t:e):parseFloat(a)/100})},i.prototype.getFieldValues=function(r,t){var e=[],n={};return M(r,function(a){var o=a[t];!E(o)&&!n[o]&&(e.push(o),n[o]=!0)}),e},i.prototype.getRegion=function(r,t,e,n){var a=this.parseSpacing(),o=a[0],s=a[1],l=(1+o)/(t===0?1:t)-o,h=(1+s)/(r===0?1:r)-s,u={x:(l+o)*e,y:(h+s)*n},c={x:u.x+l,y:u.y+h};return{start:u,end:c}},i.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},i.prototype.getDefaultTitleCfg=function(){var r=this.view.getTheme().fontFamily;return{style:{fontSize:14,fill:"#666",fontFamily:r}}},i.prototype.processAxis=function(r,t){var e=r.getOptions(),n=e.coordinate,a=r.geometries,o=A(n,"type","rect");if(o==="rect"&&a.length){E(e.axes)&&(e.axes={});var s=e.axes,l=a[0].getXYFields(),h=l[0],u=l[1],c=Cn(s,h),f=Cn(s,u);c!==!1&&(e.axes[h]=this.getXAxisOption(h,s,c,t)),f!==!1&&(e.axes[u]=this.getYAxisOption(u,s,f,t))}},i.prototype.getFacetDataFilter=function(r){return function(t){return Gv(r,function(e){var n=e.field,a=e.value;return!E(a)&&n?t[n]===a:!0})}},i}(),Yc={},s0=function(i){return Yc[Ir(i)]},Fr=function(i,r){Yc[Ir(i)]=r},l0=function(){function i(r,t){this.context=r,this.cfg=t,r.addAction(this)}return i.prototype.applyCfg=function(r){rt(this,r)},i.prototype.init=function(){this.applyCfg(this.cfg)},i.prototype.destroy=function(){this.context.removeAction(this),this.context=null},i}();const dt=l0;var h0=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.execute=function(){this.callback&&this.callback(this.context)},r.prototype.destroy=function(){i.prototype.destroy.call(this),this.callback=null},r}(dt),Uo={};function u0(i,r){var t=Uo[i],e=null;if(t){var n=t.ActionClass,a=t.cfg;e=new n(r,a),e.name=i,e.init()}return e}function TM(i){var r=Uo[i];return A(r,"ActionClass")}function G(i,r,t){Uo[i]={ActionClass:r,cfg:t}}function c0(i,r){var t=new h0(r);return t.callback=i,t.name="callback",t}function f0(i,r){var t=[];if(i.length){t.push(["M",i[0].x,i[0].y]);for(var e=1,n=i.length;e<n;e+=1){var a=i[e];t.push(["L",a.x,a.y])}r&&t.push(["Z"])}return t}function no(i,r){for(var t=[i[0]],e=1,n=i.length;e<n;e=e+2){var a=r.convert({x:i[e],y:i[e+1]});t.push(a.x,a.y)}return t}function Gc(i,r){var t=r.isTransposed,e=i[1],n=i[6],a=i[7],o=r.convert({x:n,y:a}),s=t?0:1;return["A",e,e,0,0,s,o.x,o.y]}function v0(i,r,t){var e=t.isTransposed,n=t.startAngle,a=t.endAngle,o=i[0].toLowerCase()==="a"?{x:i[6],y:i[7]}:{x:i[1],y:i[2]},s={x:r[1],y:r[2]},l=[],h=e?"y":"x",u=Math.abs(s[h]-o[h])*(a-n),c=s[h]>=o[h]?1:0,f=u>Math.PI?1:0,v=t.convert(s),p=ea(t,v);if(p>=.5)if(u===Math.PI*2){var g={x:(s.x+o.x)/2,y:(s.y+o.y)/2},d=t.convert(g);l.push(["A",p,p,0,f,c,d.x,d.y]),l.push(["A",p,p,0,f,c,v.x,v.y])}else l.push(["A",p,p,0,f,c,v.x,v.y]);return l}function p0(i){M(i,function(r,t){var e=r;if(e[0].toLowerCase()==="a"){var n=i[t-1],a=i[t+1];a&&a[0].toLowerCase()==="a"?n&&n[0].toLowerCase()==="l"&&(n[0]="M"):n&&n[0].toLowerCase()==="a"&&a&&a[0].toLowerCase()==="l"&&(a[0]="M")}})}var g0=function(i,r,t,e){var n=[],a=!!e,o,s,l,h,u,c,f;if(a){l=e[0],h=e[1];for(var v=0,p=i.length;v<p;v++){var g=i[v];l=It([0,0],l,g),h=kt([0,0],h,g)}}for(var v=0,d=i.length;v<d;v++){var g=i[v];if(v===0&&!t)f=g;else if(v===d-1&&!t)c=g,n.push(f),n.push(c);else{o=i[t?v?v-1:d-1:v-1],s=i[t?(v+1)%d:v+1];var y=[0,0];y=wr(y,s,o),y=Wt(y,y,r);var w=pn(g,o),x=pn(g,s),C=w+x;C!==0&&(w/=C,x/=C);var S=Wt([0,0],y,-w),b=Wt([0,0],y,x);c=Be([0,0],g,S),u=Be([0,0],g,b),u=It([0,0],u,kt([0,0],s,g)),u=kt([0,0],u,It([0,0],s,g)),S=wr([0,0],u,g),S=Wt([0,0],S,-w/x),c=Be([0,0],g,S),c=It([0,0],c,kt([0,0],o,g)),c=kt([0,0],c,It([0,0],o,g)),b=wr([0,0],g,c),b=Wt([0,0],b,x/w),u=Be([0,0],g,b),a&&(c=kt([0,0],c,l),c=It([0,0],c,h),u=kt([0,0],u,l),u=It([0,0],u,h)),n.push(f),n.push(c),f=u}}return t&&n.push(n.shift()),n};function Hc(i,r,t){for(var e=!!r,n=[],a=0,o=i.length;a<o;a+=2)n.push([i[a],i[a+1]]);for(var s=g0(n,.4,e,t),l=n.length,h=[],u,c,f,a=0;a<l-1;a++)u=s[a*2],c=s[a*2+1],f=n[a+1],h.push(["C",u[0],u[1],c[0],c[1],f[0],f[1]]);return e&&(u=s[l],c=s[l+1],f=n[0],h.push(["C",u[0],u[1],c[0],c[1],f[0],f[1]])),h}function Li(i,r){return f0(i,r)}function Mn(i,r,t){var e=[],n=i[0],a=null;if(i.length<=2)return Li(i,r);for(var o=0,s=i.length;o<s;o++){var l=i[o];(!a||!(a.x===l.x&&a.y===l.y))&&(e.push(l.x),e.push(l.y),a=l)}var h=t||[[0,0],[1,1]],u=Hc(e,r,h);return u.unshift(["M",n.x,n.y]),u}function d0(i,r){var t=[];return M(r,function(e){var n=e[0];switch(n.toLowerCase()){case"m":case"l":case"c":t.push(no(e,i));break;case"a":t.push(Gc(e,i));break;case"z":default:t.push(e);break}}),t}function y0(i,r){var t=[],e,n,a,o;return M(r,function(s,l){var h=s[0];switch(h.toLowerCase()){case"m":case"c":case"q":t.push(no(s,i));break;case"l":e=r[l-1],n=s,a=i.isTransposed,o=a?e[e.length-2]===n[1]:e[e.length-1]===n[2],o?t=t.concat(v0(e,n,i)):t.push(no(s,i));break;case"a":t.push(Gc(s,i));break;case"z":default:t.push(s);break}}),p0(t),t}function Vc(i,r){var t=i.event,e=t.target,n=e.getCanvasBBox();return n.width>=r||n.height>=r?n:null}function m0(i,r){var t=i.event,e=t.target,n=e.getCanvasBBox();return n.width>=r||n.height>=r?e.attr("path"):null}function Ye(i){var r=i.event,t,e=r.target;return e&&(t=e.get("element")),t}function Tr(i){var r=i.event,t=r.target,e;return t&&(e=t.get("delegateObject")),e}function Xc(i){var r=i.event.gEvent;return!(r&&r.fromShape&&r.toShape&&r.fromShape.get("element")===r.toShape.get("element"))}function yi(i){return i&&i.component&&i.component.isList()}function zc(i){return i&&i.component&&i.component.isSlider()}function mi(i){var r=i.event,t=r.target;return t&&t.get("name")==="mask"}function jo(i,r){var t=i.event.target;if(t.get("type")==="path"){var e=m0(i,r);return e?C0(i.view,e):void 0}var n=Vc(i,r);return n?qo(i.view,n):null}function Nc(i,r,t){var e=Vc(i,t);if(!e)return null;var n=i.view,a=ao(n,r,{x:e.x,y:e.y}),o=ao(n,r,{x:e.maxX,y:e.maxY}),s={minX:a.x,minY:a.y,maxX:o.x,maxY:o.y};return qo(r,s)}function gt(i){var r=i.geometries,t=[];return M(r,function(e){var n=e.elements;t=t.concat(n)}),i.views&&i.views.length&&M(i.views,function(e){t=t.concat(gt(e))}),t}function x0(i,r,t){var e=gt(i);return e.filter(function(n){return Kt(n,r)===t})}function Wc(i,r){var t=i.geometries,e=[];return M(t,function(n){var a=n.getElementsBy(function(o){return o.hasState(r)});e=e.concat(a)}),e}function Kt(i,r){var t=i.getModel(),e=t.data,n;return I(e)?n=e[0][r]:n=e[r],n}function w0(i,r){return!(r.minX>i.maxX||r.maxX<i.minX||r.minY>i.maxY||r.maxY<i.minY)}function qo(i,r){var t=gt(i),e=[];return M(t,function(n){var a=n.shape,o=a.getCanvasBBox();w0(r,o)&&e.push(n)}),e}function ql(i){var r=[];return M(i,function(t){var e=t[0];if(e!=="A")for(var n=1;n<t.length;n=n+2)r.push([t[n],t[n+1]]);else{var a=t.length;r.push([t[a-2],t[a-1]])}}),r}function C0(i,r){var t=gt(i),e=ql(r),n=t.filter(function(a){var o=a.shape,s;if(o.get("type")==="path")s=ql(o.attr("path"));else{var l=o.getCanvasBBox();s=Qm(l)}return Zg(e,s)});return n}function _c(i){return i.getComponents().map(function(r){return r.component})}function Zo(i,r){var t=r.x-i.x,e=r.y-i.y;return Math.sqrt(t*t+e*e)}function M0(i,r){if(i.length<=2)return Li(i,!1);var t=i[0],e=[];M(i,function(a){e.push(a.x),e.push(a.y)});var n=Hc(e,r,null);return n.unshift(["M",t.x,t.y]),n}function Zl(i,r){return i.x<=r.x&&i.maxX>=r.x&&i.y<=r.y&&i.maxY>r.y}function ae(i){var r=i.parent,t=null;return r&&(t=r.views.filter(function(e){return e!==i})),t}function S0(i,r){var t=i.getCoordinate();return t.invert(r)}function ao(i,r,t){var e=S0(i,t);return r.getCoordinate().convert(e)}function $c(i,r,t,e){var n=!1;return M(i,function(a){if(a[t]===r[t]&&a[e]===r[e])return n=!0,!1}),n}function Lr(i,r){var t=i.getScaleByField(r);return!t&&i.views&&M(i.views,function(e){if(t=Lr(e,r),t)return!1}),t}var A0=function(){function i(r){this.actions=[],this.event=null,this.cacheMap={},this.view=r}return i.prototype.cache=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];if(r.length===1)return this.cacheMap[r[0]];r.length===2&&(this.cacheMap[r[0]]=r[1])},i.prototype.getAction=function(r){return this.actions.find(function(t){return t.name===r})},i.prototype.addAction=function(r){this.actions.push(r)},i.prototype.removeAction=function(r){var t=this.actions,e=this.actions.indexOf(r);e>=0&&t.splice(e,1)},i.prototype.getCurrentPoint=function(){var r=this.event;if(r)if(r.target instanceof HTMLElement){var t=this.view.getCanvas(),e=t.getPointByClient(r.clientX,r.clientY);return e}else return{x:r.x,y:r.y};return null},i.prototype.getCurrentShape=function(){return A(this.event,["gEvent","shape"])},i.prototype.isInPlot=function(){var r=this.getCurrentPoint();return r?this.view.isPointInPlot(r):!1},i.prototype.isInShape=function(r){var t=this.getCurrentShape();return t?t.get("name")===r:!1},i.prototype.isInComponent=function(r){var t=_c(this.view),e=this.getCurrentPoint();return e?!!t.find(function(n){var a=n.getBBox();return r?n.get("name")===r&&Zl(a,e):Zl(a,e)}):!1},i.prototype.destroy=function(){M(this.actions.slice(),function(r){r.destroy()}),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},i}(),b0=function(){function i(r,t){this.view=r,this.cfg=t}return i.prototype.init=function(){this.initEvents()},i.prototype.initEvents=function(){},i.prototype.clearEvents=function(){},i.prototype.destroy=function(){this.clearEvents()},i}();const T0=b0;function Ql(i,r,t){var e=i.split(":"),n=e[0],a=r.getAction(n)||u0(n,r);if(!a)throw new Error("There is no action named ".concat(n));var o=e[1];return{action:a,methodName:o,arg:t}}function Kl(i){var r=i.action,t=i.methodName,e=i.arg;if(r[t])r[t](e);else throw new Error("Action(".concat(r.name,") doesn't have a method called ").concat(t))}var Dt={START:"start",SHOW_ENABLE:"showEnable",END:"end",ROLLBACK:"rollback",PROCESSING:"processing"},L0=function(i){T(r,i);function r(t,e){var n=i.call(this,t,e)||this;return n.callbackCaches={},n.emitCaches={},n.steps=e,n}return r.prototype.init=function(){this.initContext(),i.prototype.init.call(this)},r.prototype.destroy=function(){i.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},r.prototype.initEvents=function(){var t=this;M(this.steps,function(e,n){M(e,function(a){var o=t.getActionCallback(n,a);o&&t.bindEvent(a.trigger,o)})})},r.prototype.clearEvents=function(){var t=this;M(this.steps,function(e,n){M(e,function(a){var o=t.getActionCallback(n,a);o&&t.offEvent(a.trigger,o)})})},r.prototype.initContext=function(){var t=this.view,e=new A0(t);this.context=e;var n=this.steps;M(n,function(a){M(a,function(o){if(R(o.action))o.actionObject={action:c0(o.action,e),methodName:"execute"};else if(H(o.action))o.actionObject=Ql(o.action,e,o.arg);else if(I(o.action)){var s=o.action,l=I(o.arg)?o.arg:[o.arg];o.actionObject=[],M(s,function(h,u){o.actionObject.push(Ql(h,e,l[u]))})}})})},r.prototype.isAllowStep=function(t){var e=this.currentStepName,n=this.steps;if(e===t||t===Dt.SHOW_ENABLE)return!0;if(t===Dt.PROCESSING)return e===Dt.START;if(t===Dt.START)return e!==Dt.PROCESSING;if(t===Dt.END)return e===Dt.PROCESSING||e===Dt.START;if(t===Dt.ROLLBACK){if(n[Dt.END])return e===Dt.END;if(e===Dt.START)return!0}return!1},r.prototype.isAllowExecute=function(t,e){if(this.isAllowStep(t)){var n=this.getKey(t,e);return e.once&&this.emitCaches[n]?!1:e.isEnable?e.isEnable(this.context):!0}return!1},r.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},r.prototype.afterExecute=function(t,e){t!==Dt.SHOW_ENABLE&&this.currentStepName!==t&&this.enterStep(t);var n=this.getKey(t,e);this.emitCaches[n]=!0},r.prototype.getKey=function(t,e){return t+e.trigger+e.action},r.prototype.getActionCallback=function(t,e){var n=this,a=this.context,o=this.callbackCaches,s=e.actionObject;if(e.action&&s){var l=this.getKey(t,e);if(!o[l]){var h=function(u){a.event=u,n.isAllowExecute(t,e)?(I(s)?M(s,function(c){a.event=u,Kl(c)}):(a.event=u,Kl(s)),n.afterExecute(t,e),e.callback&&(a.event=u,e.callback(a))):a.event=null};e.debounce?o[l]=ru(h,e.debounce.wait,e.debounce.immediate):e.throttle?o[l]=Lo(h,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):o[l]=h}return o[l]}return null},r.prototype.bindEvent=function(t,e){var n=t.split(":");n[0]==="window"?window.addEventListener(n[1],e):n[0]==="document"?document.addEventListener(n[1],e):this.view.on(t,e)},r.prototype.offEvent=function(t,e){var n=t.split(":");n[0]==="window"?window.removeEventListener(n[1],e):n[0]==="document"?document.removeEventListener(n[1],e):this.view.off(t,e)},r}(T0),Uc={};function E0(i){return Uc[Ir(i)]}function K(i,r){Uc[Ir(i)]=r}function B0(i,r,t){var e=E0(i);if(!e)return null;if(ne(e)){var n=rt(Rt(e),t);return new L0(r,n)}else{var a=e;return new a(r,t)}}function I0(i){return{title:{autoRotate:!0,position:"center",spacing:i.axisTitleSpacing,style:{fill:i.axisTitleTextFillColor,fontSize:i.axisTitleTextFontSize,lineHeight:i.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:i.fontFamily}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:i.axisLabelOffset,style:{fill:i.axisLabelFillColor,fontSize:i.axisLabelFontSize,lineHeight:i.axisLabelLineHeight,fontFamily:i.fontFamily}},line:{style:{lineWidth:i.axisLineBorder,stroke:i.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:i.axisGridBorderColor,lineWidth:i.axisGridBorder,lineDash:i.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:i.axisTickLineBorder,stroke:i.axisTickLineBorderColor},alignTick:!0,length:i.axisTickLineLength},subTickLine:null,animate:!0}}function k0(i){return{title:null,marker:{symbol:"circle",spacing:i.legendMarkerSpacing,style:{r:i.legendCircleMarkerSize,fill:i.legendMarkerColor}},itemName:{spacing:5,style:{fill:i.legendItemNameFillColor,fontFamily:i.fontFamily,fontSize:i.legendItemNameFontSize,lineHeight:i.legendItemNameLineHeight,fontWeight:i.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:i.legendPageNavigatorMarkerSize,inactiveFill:i.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:i.legendPageNavigatorMarkerInactiveFillOpacity,fill:i.legendPageNavigatorMarkerFillColor,opacity:i.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:i.legendPageNavigatorTextFillColor,fontSize:i.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:i.legendItemSpacing,itemMarginBottom:i.legendItemMarginBottom,padding:i.legendPadding}}function jc(i){var r,t={point:{default:{fill:i.pointFillColor,r:i.pointSize,stroke:i.pointBorderColor,lineWidth:i.pointBorder,fillOpacity:i.pointFillOpacity},active:{stroke:i.pointActiveBorderColor,lineWidth:i.pointActiveBorder},selected:{stroke:i.pointSelectedBorderColor,lineWidth:i.pointSelectedBorder},inactive:{fillOpacity:i.pointInactiveFillOpacity,strokeOpacity:i.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:i.hollowPointFillColor,lineWidth:i.hollowPointBorder,stroke:i.hollowPointBorderColor,strokeOpacity:i.hollowPointBorderOpacity,r:i.hollowPointSize},active:{stroke:i.hollowPointActiveBorderColor,strokeOpacity:i.hollowPointActiveBorderOpacity},selected:{lineWidth:i.hollowPointSelectedBorder,stroke:i.hollowPointSelectedBorderColor,strokeOpacity:i.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:i.hollowPointInactiveBorderOpacity}},area:{default:{fill:i.areaFillColor,fillOpacity:i.areaFillOpacity,stroke:null},active:{fillOpacity:i.areaActiveFillOpacity},selected:{fillOpacity:i.areaSelectedFillOpacity},inactive:{fillOpacity:i.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:i.hollowAreaBorderColor,lineWidth:i.hollowAreaBorder,strokeOpacity:i.hollowAreaBorderOpacity},active:{fill:null,lineWidth:i.hollowAreaActiveBorder},selected:{fill:null,lineWidth:i.hollowAreaSelectedBorder},inactive:{strokeOpacity:i.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:i.intervalFillColor,fillOpacity:i.intervalFillOpacity},active:{stroke:i.intervalActiveBorderColor,lineWidth:i.intervalActiveBorder},selected:{stroke:i.intervalSelectedBorderColor,lineWidth:i.intervalSelectedBorder},inactive:{fillOpacity:i.intervalInactiveFillOpacity,strokeOpacity:i.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:i.hollowIntervalFillColor,stroke:i.hollowIntervalBorderColor,lineWidth:i.hollowIntervalBorder,strokeOpacity:i.hollowIntervalBorderOpacity},active:{stroke:i.hollowIntervalActiveBorderColor,lineWidth:i.hollowIntervalActiveBorder,strokeOpacity:i.hollowIntervalActiveBorderOpacity},selected:{stroke:i.hollowIntervalSelectedBorderColor,lineWidth:i.hollowIntervalSelectedBorder,strokeOpacity:i.hollowIntervalSelectedBorderOpacity},inactive:{stroke:i.hollowIntervalInactiveBorderColor,lineWidth:i.hollowIntervalInactiveBorder,strokeOpacity:i.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:i.lineBorderColor,lineWidth:i.lineBorder,strokeOpacity:i.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:i.lineActiveBorder},selected:{lineWidth:i.lineSelectedBorder},inactive:{strokeOpacity:i.lineInactiveBorderOpacity}}},e=I0(i),n=k0(i);return{background:i.backgroundColor,defaultColor:i.brandColor,subColor:i.subColor,semanticRed:i.paletteSemanticRed,semanticGreen:i.paletteSemanticGreen,padding:"auto",fontFamily:i.fontFamily,columnWidthRatio:1/2,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:i.paletteQualitative10,colors20:i.paletteQualitative20,sequenceColors:i.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:function(a){var o=a.geometry.coordinate;if(o.isPolar&&o.isTransposed){var s=gi(a.getModel(),o),l=s.startAngle,h=s.endAngle,u=(l+h)/2,c=7.5,f=c*Math.cos(u),v=c*Math.sin(u);return{matrix:nt(null,[["t",f,v]])}}return t.interval.selected}}},"hollow-rect":{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},line:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},tick:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},funnel:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}},pyramid:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}}},line:{line:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},dot:{default:{style:m(m({},t.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:m(m({},t.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:m(m({},t.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:m(m({},t.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:m(m({},t.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:m(m({},t.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:m(m({},t.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:m(m({},t.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vh:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hvh:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vhv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}}},polygon:{polygon:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}}},point:{circle:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},square:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},bowtie:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},diamond:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},hexagon:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},triangle:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},"triangle-down":{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},"hollow-circle":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-square":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-bowtie":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-diamond":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-hexagon":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-triangle":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-triangle-down":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},cross:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},tick:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},plus:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},hyphen:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},line:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}}},area:{area:{default:{style:t.area.default},active:{style:t.area.active},inactive:{style:t.area.inactive},selected:{style:t.area.selected}},smooth:{default:{style:t.area.default},active:{style:t.area.active},inactive:{style:t.area.inactive},selected:{style:t.area.selected}},line:{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}},"smooth-line":{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}}},schema:{candle:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},box:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}}},edge:{line:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vhv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},arc:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}}},violin:{violin:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hollow:{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}},"hollow-smooth":{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}}}},components:{axis:{common:e,top:{position:"top",grid:null,title:null,verticalLimitLength:1/2},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:1/2},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:O({},e.grid,{line:{type:"line"}})},radius:{title:null,grid:O({},e.grid,{line:{type:"circle"}})}},legend:{common:n,right:{layout:"vertical",padding:i.legendVerticalPadding},left:{layout:"vertical",padding:i.legendVerticalPadding},top:{layout:"horizontal",padding:i.legendHorizontalPadding},bottom:{layout:"horizontal",padding:i.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:i.sliderRailHeight,defaultLength:i.sliderRailWidth,style:{fill:i.sliderRailFillColor,stroke:i.sliderRailBorderColor,lineWidth:i.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:i.sliderLabelTextFillColor,fontSize:i.sliderLabelTextFontSize,lineHeight:i.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:i.fontFamily}},handler:{size:i.sliderHandlerWidth,style:{fill:i.sliderHandlerFillColor,stroke:i.sliderHandlerBorderColor}},slidable:!0,padding:n.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:i.tooltipCrosshairsBorderColor,lineWidth:i.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(r={},r["".concat(rr)]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:i.tooltipContainerFillColor,opacity:i.tooltipContainerFillOpacity,boxShadow:i.tooltipContainerShadow,borderRadius:"".concat(i.tooltipContainerBorderRadius,"px"),color:i.tooltipTextFillColor,fontSize:"".concat(i.tooltipTextFontSize,"px"),fontFamily:i.fontFamily,lineHeight:"".concat(i.tooltipTextLineHeight,"px"),padding:"0 12px 0 12px"},r["".concat(ir)]={marginBottom:"12px",marginTop:"12px"},r["".concat(pi)]={margin:0,listStyleType:"none",padding:0},r["".concat(Kn)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},r["".concat(Jn)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},r["".concat(ta)]={display:"inline-block",float:"right",marginLeft:"30px"},r)},annotation:{arc:{style:{stroke:i.annotationArcBorderColor,lineWidth:i.annotationArcBorder},animate:!0},line:{style:{stroke:i.annotationLineBorderColor,lineDash:i.annotationLineDash,lineWidth:i.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:i.annotationTextFillColor,stroke:i.annotationTextBorderColor,lineWidth:i.annotationTextBorder,fontSize:i.annotationTextFontSize,textAlign:"start",fontFamily:i.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:i.annotationTextFillColor,stroke:i.annotationTextBorderColor,lineWidth:i.annotationTextBorder,fontSize:i.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:i.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:i.annotationRegionBorder,stroke:i.annotationRegionBorderColor,fill:i.annotationRegionFillColor,fillOpacity:i.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:i.brandColor,lineWidth:2}},line:{style:{stroke:i.annotationLineBorderColor,lineWidth:i.annotationLineBorder},length:i.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:i.annotationTextFillColor,stroke:i.annotationTextBorderColor,lineWidth:i.annotationTextBorder,fontSize:i.annotationTextFontSize,fontFamily:i.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:i.annotationRegionFillColor,fillOpacity:i.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:i.annotationTextFillColor,stroke:i.annotationTextBorderColor,lineWidth:i.annotationTextBorder,fontSize:i.annotationTextFontSize,fontFamily:i.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:i.cSliderBackgroundFillColor,opacity:i.cSliderBackgroundFillOpacity},foregroundStyle:{fill:i.cSliderForegroundFillColor,opacity:i.cSliderForegroundFillOpacity},handlerStyle:{width:i.cSliderHandlerWidth,height:i.cSliderHandlerHeight,fill:i.cSliderHandlerFillColor,opacity:i.cSliderHandlerFillOpacity,stroke:i.cSliderHandlerBorderColor,lineWidth:i.cSliderHandlerBorder,radius:i.cSliderHandlerBorderRadius,highLightFill:i.cSliderHandlerHighlightFillColor},textStyle:{fill:i.cSliderTextFillColor,opacity:i.cSliderTextFillOpacity,fontSize:i.cSliderTextFontSize,lineHeight:i.cSliderTextLineHeight,fontWeight:i.cSliderTextFontWeight,stroke:i.cSliderTextBorderColor,lineWidth:i.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:i.scrollbarTrackFillColor,thumbColor:i.scrollbarThumbFillColor}},hover:{style:{thumbColor:i.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:i.labelFillColor,fontSize:i.labelFontSize,fontFamily:i.fontFamily,stroke:i.labelBorderColor,lineWidth:i.labelBorder},fillColorDark:i.labelFillColorDark,fillColorLight:i.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:i.innerLabelFillColor,fontSize:i.innerLabelFontSize,fontFamily:i.fontFamily,stroke:i.innerLabelBorderColor,lineWidth:i.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:i.overflowLabelFillColor,fontSize:i.overflowLabelFontSize,fontFamily:i.fontFamily,stroke:i.overflowLabelBorderColor,lineWidth:i.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:i.labelLineBorder}},autoRotate:!0}}}var N={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},Nr={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},P0=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],F0=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],O0=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],qc=function(i){i===void 0&&(i={});var r=i.paletteQualitative10,t=r===void 0?P0:r,e=i.paletteQualitative20,n=e===void 0?F0:e,a=i.brandColor,o=a===void 0?t[0]:a,s={backgroundColor:"transparent",brandColor:o,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:t,paletteQualitative20:n,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:O0,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:N[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:N[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:N[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:N[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:N[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:N[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:N[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:o,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:N[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:N[100],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:N[100],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:N[45],legendPageNavigatorTextFontSize:12,sliderRailFillColor:N[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:N[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:N[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:N[25],annotationArcBorderColor:N[15],annotationArcBorder:1,annotationLineBorderColor:N[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:N[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:N[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:N[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:N[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:N[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:Nr[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:N[65],overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:Nr[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:N[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:o,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:Nr[100],pointBorderOpacity:1,pointActiveBorderColor:N[100],pointSelectedBorder:2,pointSelectedBorderColor:N[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:o,hollowPointBorderOpacity:.95,hollowPointFillColor:Nr[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:N[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:N[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:o,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:o,areaFillOpacity:.25,areaActiveFillColor:o,areaActiveFillOpacity:.5,areaSelectedFillColor:o,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:o,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:N[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:N[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:o,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:N[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:N[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:o,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:Nr[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:N[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:N[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return m(m({},s),i)};qc();function Sn(i){var r=i.styleSheet,t=r===void 0?{}:r,e=ct(i,["styleSheet"]),n=qc(t);return O({},jc(n),e)}var D0=Sn({}),oo={default:D0};function La(i){return A(oo,Ir(i),oo.default)}function R0(i,r){oo[Ir(i)]=Sn(r)}function Jl(i,r,t){var e=t.translate(i),n=t.translate(r);return yt(e,n)}function Y0(i,r){var t=r.coordinate,e=r.getXScale(),n=e.range,a=n[n.length-1],o=n[0],s=t.invert(i),l=s.x;return t.isPolar&&l>(1+a)/2&&(l=o),e.translate(e.invert(l))}function th(i,r,t){var e=t.coordinate,n=t.getYScale(),a=n.field,o=e.invert(r),s=n.invert(o.y),l=pe(i,function(h){var u=h[$];return u[a][0]<=s&&u[a][1]>=s});return l||i[i.length-1]}var G0=kn(function(i){if(i.isCategory)return 1;for(var r=i.values,t=r.length,e=i.translate(r[0]),n=e,a=0;a<t;a++){var o=r[a],s=i.translate(o);s<e&&(e=s),s>n&&(n=s)}return(n-e)/(t-1)});function H0(i,r,t){var e=r.getAttribute("position"),n=e.getFields(),a=r.scales,o=R(t)||!t?n[0]:t,s=a[o],l=s?s.getText(i[o]):i[o]||o;return R(t)?t(l,i):l}function V0(i){var r=bo(i.attributes);return Ht(r,function(t){return je(pr,t.type)})}function Zc(i){for(var r=V0(i),t,e=0,n=r;e<n.length;e++){var a=n[e],o=a.getScale(a.type);if(o&&o.isLinear){var s=A(i.scaleDefs,o.field),l=Oc(o,s,a.type,i.type);if(l!=="cat"){t=o;break}}}var h=i.getXScale(),u=i.getYScale();return t||u||h}function X0(i,r){var t=r.field,e=i[t];if(I(e)){var n=e.map(function(a){return r.getText(a)});return n.join("-")}return r.getText(e)}function z0(i,r){var t,e=r.getGroupScales();if(e.length&&(t=e[0]),t){var n=t.field;return t.getText(i[n])}var a=Zc(r);return di(a)}function Qc(i,r,t){if(r.length===0)return null;var e=t.type,n=t.getXScale(),a=t.getYScale(),o=n.field,s=a.field,l=null;if(e==="heatmap"||e==="point"){for(var h=t.coordinate,u=h.invert(i),c=n.invert(u.x),f=a.invert(u.y),v=1/0,p=0;p<r.length;p++){var g=r[p],d=g[$],y=Math.pow(d[o]-c,2)+Math.pow(d[s]-f,2);y<v&&(v=y,l=g)}return l}var w=r[0],x=r[r.length-1],C=Y0(i,t),S=w[$][o],b=w[$][s],L=x[$][o],B=a.isLinear&&I(b);if(I(S)){for(var p=0;p<r.length;p++){var P=r[p],d=P[$];if(n.translate(d[o][0])<=C&&n.translate(d[o][1])>=C)if(B)I(l)||(l=[]),l.push(P);else{l=P;break}}I(l)&&(l=th(l,i,t))}else{var F=void 0;if(!n.isLinear&&n.type!=="timeCat"){for(var p=0;p<r.length;p++){var P=r[p],d=P[$];if(Jl(d[o],C,n))if(B)I(l)||(l=[]),l.push(P);else{l=P;break}else n.translate(d[o])<=C&&(x=P,F=r[p+1])}I(l)&&(l=th(l,i,t))}else{if((C>n.translate(L)||C<n.translate(S))&&(C>n.max||C<n.min))return null;for(var D=0,Y=r.length-1,z=void 0;D<=Y;){z=Math.floor((D+Y)/2);var q=r[z][$][o];if(Jl(q,C,n))return r[z];n.translate(q)<=n.translate(C)?(D=z+1,x=r[z],F=r[z+1]):(Y===0&&(x=r[0]),Y=z-1)}}x&&F&&Math.abs(n.translate(x[$][o])-C)>Math.abs(n.translate(F[$][o])-C)&&(x=F)}var ut=G0(t.getXScale());return!l&&Math.abs(n.translate(x[$][o])-C)<=ut/2&&(l=x),l}function Qo(i,r,t,e){t===void 0&&(t=""),e===void 0&&(e=!1);var n=i[$],a=H0(n,r,t),o=r.tooltipOption,s=r.theme.defaultColor,l=[],h,u;function c(L,B){if(e||!E(B)&&B!==""){var P={title:a,data:n,mappingData:i,name:L,value:B,color:i.color||s,marker:!0};l.push(P)}}if(Q(o)){var f=o.fields,v=o.callback;if(v){var p=f.map(function(L){return i[$][L]}),g=v.apply(void 0,p),d=m({data:i[$],mappingData:i,title:a,color:i.color||s,marker:!0},g);l.push(d)}else for(var y=r.scales,w=0,x=f;w<x.length;w++){var C=x[w];if(!E(n[C])){var S=y[C];h=di(S),u=S.getText(n[C]),c(h,u)}}}else{var b=Zc(r);u=X0(n,b),h=z0(n,r),c(h,u)}return l}function eh(i,r,t,e){var n=e.showNil,a=[],o=i.dataArray;if(!se(o)){i.sort(o);for(var s=0,l=o;s<l.length;s++){var h=l[s],u=Qc(r,h,i);if(u){var c=i.getElementId(u),f=i.elementsMap[c];if(i.type==="heatmap"||f.visible){var v=Qo(u,i,t,n);v.length&&a.push(v)}}}}return a}function rh(i,r,t,e){var n=e.showNil,a=[],o=i.container,s=o.getShape(r.x,r.y);if(s&&s.get("visible")&&s.get("origin")){var l=s.get("origin").mappingData,h=Qo(l,i,t,n);h.length&&a.push(h)}return a}function so(i,r,t){for(var e=[],n=i.geometries,a=t.shared,o=t.title,s=t.reversed,l=0,h=n;l<h.length;l++){var u=h[l];if(u.visible&&u.tooltipOption!==!1){var c=u.type,f=void 0;["point","edge","polygon"].includes(c)?f=rh(u,r,o,t):["area","line","path","heatmap"].includes(c)||a!==!1?f=eh(u,r,o,t):f=rh(u,r,o,t),f.length&&(s&&f.reverse(),e.push(f))}}return e}function N0(i,r,t){for(var e=so(i,r,t),n=0,a=i.views;n<a.length;n++){var o=a[n];e=e.concat(so(o,r,t))}return e}function W0(i){return!W(i)&&!I(i)}function Ko(i){i===void 0&&(i=0);var r=I(i)?i:[i];switch(r.length){case 0:r=[0,0,0,0];break;case 1:r=new Array(4).fill(r[0]);break;case 2:r=vt(vt([],r,!0),r,!0);break;case 3:r=vt(vt([],r,!0),[r[1]],!1);break;default:r=r.slice(0,4);break}return r}var Jo={};function Or(i,r){Jo[i]=r}function _0(){return Object.keys(Jo)}function $0(i){return Jo[i]}var U0=function(){function i(r){this.option=this.wrapperOption(r)}return i.prototype.update=function(r){return this.option=this.wrapperOption(r),this},i.prototype.hasAction=function(r){var t=this.option.actions;return Bn(t,function(e){return e[0]===r})},i.prototype.create=function(r,t){var e=this.option,n=e.type,a=e.cfg,o=n==="theta",s=m({start:r,end:t},a),l=my(o?"polar":n);return this.coordinate=new l(s),this.coordinate.type=n,o&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},i.prototype.adjust=function(r,t){return this.coordinate.update({start:r,end:t}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},i.prototype.rotate=function(r){return this.option.actions.push(["rotate",r]),this},i.prototype.reflect=function(r){return this.option.actions.push(["reflect",r]),this},i.prototype.scale=function(r,t){return this.option.actions.push(["scale",r,t]),this},i.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},i.prototype.getOption=function(){return this.option},i.prototype.getCoordinate=function(){return this.coordinate},i.prototype.wrapperOption=function(r){return m({type:"rect",actions:[],cfg:{}},r)},i.prototype.execActions=function(r){var t=this,e=this.option.actions;M(e,function(n){var a,o=n[0],s=n.slice(1),l=E(r)?!0:r.includes(o);l&&(a=t.coordinate)[o].apply(a,s)})},i}(),j0=function(){function i(r,t,e){this.view=r,this.gEvent=t,this.data=e,this.type=t.type}return i.fromData=function(r,t,e){return new i(r,new Mi(t,{}),e)},Object.defineProperty(i.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),i.prototype.toString=function(){return"[Event (type=".concat(this.type,")]")},i.prototype.clone=function(){return new i(this.view,this.gEvent,this.data)},i}();const Ct=j0;function q0(i){var r=i.getController("axis"),t=i.getController("legend"),e=i.getController("annotation"),n=i.getController("slider"),a=i.getController("scrollbar");[r,n,a,t,e].forEach(function(o){o&&o.layout()})}var Z0=function(){function i(){this.scales=new Map,this.syncScales=new Map}return i.prototype.createScale=function(r,t,e,n){var a=e,o=this.getScaleMeta(n);if(t.length===0&&o){var s=o.scale,l={type:s.type};s.isCategory&&(l.values=s.values),a=O(l,o.scaleDef,e)}var h=r0(r,t,a);return this.cacheScale(h,e,n),h},i.prototype.sync=function(r,t){var e=this;this.syncScales.forEach(function(n,a){var o=Number.MAX_SAFE_INTEGER,s=Number.MIN_SAFE_INTEGER,l=[];M(n,function(h){var u=e.getScale(h);s=W(u.max)?Math.max(s,u.max):s,o=W(u.min)?Math.min(o,u.min):o,M(u.values,function(c){l.includes(c)||l.push(c)})}),M(n,function(h){var u=e.getScale(h);if(u.isContinuous)u.change({min:o,max:s,values:l});else if(u.isCategory){var c=u.range,f=e.getScaleMeta(h);l&&!A(f,["scaleDef","range"])&&(c=Dc(O({},u,{values:l}),r,t)),u.change({values:l,range:c})}})})},i.prototype.cacheScale=function(r,t,e){var n=this.getScaleMeta(e);n&&n.scale.type===r.type?(i0(n.scale,r),n.scaleDef=t):(n={key:e,scale:r,scaleDef:t},this.scales.set(e,n));var a=this.getSyncKey(n);if(n.syncKey=a,this.removeFromSyncScales(e),a){var o=this.syncScales.get(a);o||(o=[],this.syncScales.set(a,o)),o.push(e)}},i.prototype.getScale=function(r){var t=this.getScaleMeta(r);if(!t){var e=pt(r.split("-")),n=this.syncScales.get(e);n&&n.length&&(t=this.getScaleMeta(n[0]))}return t&&t.scale},i.prototype.deleteScale=function(r){var t=this.getScaleMeta(r);if(t){var e=t.syncKey,n=this.syncScales.get(e);if(n&&n.length){var a=n.indexOf(r);a!==-1&&n.splice(a,1)}}this.scales.delete(r)},i.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},i.prototype.removeFromSyncScales=function(r){var t=this;this.syncScales.forEach(function(e,n){var a=e.indexOf(r);if(a!==-1)return e.splice(a,1),e.length===0&&t.syncScales.delete(n),!1})},i.prototype.getSyncKey=function(r){var t=r.scale,e=r.scaleDef,n=t.field,a=A(e,["sync"]);return a===!0?n:a===!1?void 0:a},i.prototype.getScaleMeta=function(r){return this.scales.get(r)},i}(),cn=function(){function i(r,t,e,n){r===void 0&&(r=0),t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0),this.top=r,this.right=t,this.bottom=e,this.left=n}return i.instance=function(r,t,e,n){return r===void 0&&(r=0),t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=0),new i(r,t,e,n)},i.prototype.max=function(r){var t=r[0],e=r[1],n=r[2],a=r[3];return this.top=Math.max(this.top,t),this.right=Math.max(this.right,e),this.bottom=Math.max(this.bottom,n),this.left=Math.max(this.left,a),this},i.prototype.shrink=function(r){var t=r[0],e=r[1],n=r[2],a=r[3];return this.top+=t,this.right+=e,this.bottom+=n,this.left+=a,this},i.prototype.inc=function(r,t){var e=r.width,n=r.height;switch(t){case k.TOP:case k.TOP_LEFT:case k.TOP_RIGHT:this.top+=n;break;case k.RIGHT:case k.RIGHT_TOP:case k.RIGHT_BOTTOM:this.right+=e;break;case k.BOTTOM:case k.BOTTOM_LEFT:case k.BOTTOM_RIGHT:this.bottom+=n;break;case k.LEFT:case k.LEFT_TOP:case k.LEFT_BOTTOM:this.left+=e;break}return this},i.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},i.prototype.clone=function(){return new(i.bind.apply(i,vt([void 0],this.getPadding(),!1)))},i}();function Q0(i){var r=i.padding;if(!W0(r))return new(cn.bind.apply(cn,vt([void 0],Ko(r),!1)));var t=i.viewBBox,e=new cn,n=[],a=[],o=[];return M(i.getComponents(),function(s){var l=s.type;l===ht.AXIS?n.push(s):[ht.LEGEND,ht.SLIDER,ht.SCROLLBAR].includes(l)?a.push(s):l!==ht.GRID&&l!==ht.TOOLTIP&&o.push(s)}),M(n,function(s){var l=s.component,h=l.getLayoutBBox(),u=new bt(h.x,h.y,h.width,h.height),c=u.exceed(t);e.max(c)}),M(a,function(s){var l=s.component,h=s.direction,u=l.getLayoutBBox(),c=l.get("padding"),f=new bt(u.x,u.y,u.width,u.height).expand(c);e.inc(f,h)}),M(o,function(s){var l=s.component,h=s.direction,u=l.getLayoutBBox(),c=new bt(u.x,u.y,u.width,u.height);e.inc(c,h)}),e}function K0(i,r,t){var e=t.instance();r.forEach(function(n){n.autoPadding=e.max(n.autoPadding.getPadding())})}var Kc=function(i){T(r,i);function r(t){var e=i.call(this,{visible:t.visible})||this;e.views=[],e.geometries=[],e.controllers=[],e.interactions={},e.limitInPlot=!1,e.options={data:[],animate:!0},e.usedControllers=_0(),e.scalePool=new Z0,e.layoutFunc=q0,e.isPreMouseInPlot=!1,e.isDataChanged=!1,e.isCoordinateChanged=!1,e.createdScaleKeys=new Map,e.onCanvasEvent=function(x){var C=x.name;if(!C.includes(":")){var S=e.createViewEvent(x);e.doPlotEvent(S),e.emit(C,S)}},e.onDelegateEvents=function(x){var C=x.name;if(C.includes(":")){var S=e.createViewEvent(x);e.emit(C,S)}};var n=t.id,a=n===void 0?Ve("view"):n,o=t.parent,s=t.canvas,l=t.backgroundGroup,h=t.middleGroup,u=t.foregroundGroup,c=t.region,f=c===void 0?{start:{x:0,y:0},end:{x:1,y:1}}:c,v=t.padding,p=t.appendPadding,g=t.theme,d=t.options,y=t.limitInPlot,w=t.syncViewPadding;return e.parent=o,e.canvas=s,e.backgroundGroup=l,e.middleGroup=h,e.foregroundGroup=u,e.region=f,e.padding=v,e.appendPadding=p,e.options=m(m({},e.options),d),e.limitInPlot=y,e.id=a,e.syncViewPadding=w,e.themeObject=Q(g)?O({},La("default"),Sn(g)):La(g),e.init(),e}return r.prototype.setLayout=function(t){this.layoutFunc=t},r.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},r.prototype.render=function(t,e){t===void 0&&(t=!1),this.emit(Z.BEFORE_RENDER,Ct.fromData(this,Z.BEFORE_RENDER,e)),this.paint(t),this.emit(Z.AFTER_RENDER,Ct.fromData(this,Z.AFTER_RENDER,e)),this.visible===!1&&this.changeVisible(!1)},r.prototype.clear=function(){var t=this;this.emit(Z.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var e=this.geometries,n=0;n<e.length;n++)e[n].clear(),e[n].container.remove(!0),e[n].labelsContainer.remove(!0);this.geometries=[];for(var a=this.controllers,n=0;n<a.length;n++)a[n].name==="annotation"?a[n].clear(!0):a[n].clear();this.createdScaleKeys.forEach(function(s,l){t.getRootView().scalePool.deleteScale(l)}),this.createdScaleKeys.clear();for(var o=this.views,n=0;n<o.length;n++)o[n].clear();this.emit(Z.AFTER_CLEAR)},r.prototype.destroy=function(){this.emit(Z.BEFORE_DESTROY);var t=this.interactions;M(t,function(s){s&&s.destroy()}),this.clear();for(var e=this.controllers,n=0,a=e.length;n<a;n++){var o=e[n];o.destroy()}this.backgroundGroup.remove(!0),this.middleGroup.remove(!0),this.foregroundGroup.remove(!0),i.prototype.destroy.call(this)},r.prototype.changeVisible=function(t){i.prototype.changeVisible.call(this,t);for(var e=this.geometries,n=0,a=e.length;n<a;n++){var o=e[n];o.changeVisible(t)}for(var s=this.controllers,n=0,a=s.length;n<a;n++){var l=s[n];l.changeVisible(t)}return this.foregroundGroup.set("visible",t),this.middleGroup.set("visible",t),this.backgroundGroup.set("visible",t),this.getCanvas().draw(),this},r.prototype.data=function(t){return ot(this.options,"data",t),this.isDataChanged=!0,this},r.prototype.source=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.data() instead."),this.data(t)},r.prototype.filter=function(t,e){return R(e)?(ot(this.options,["filters",t],e),this):(!e&&A(this.options,["filters",t])&&delete this.options.filters[t],this)},r.prototype.axis=function(t,e){return si(t)?ot(this.options,["axes"],t):ot(this.options,["axes",t],e),this},r.prototype.legend=function(t,e){return si(t)?ot(this.options,["legends"],t):H(t)?(ot(this.options,["legends",t],e),ne(e)&&(e!=null&&e.selected)&&ot(this.options,["filters",t],function(n){var a;return(a=e==null?void 0:e.selected[n])!==null&&a!==void 0?a:!0})):ot(this.options,["legends"],t),this},r.prototype.scale=function(t,e){var n=this;return H(t)?ot(this.options,["scales",t],e):Q(t)&&M(t,function(a,o){ot(n.options,["scales",o],a)}),this},r.prototype.tooltip=function(t){return ot(this.options,"tooltip",t),this},r.prototype.annotation=function(){return this.getController("annotation")},r.prototype.guide=function(){return console.warn("This method will be removed at G2 V4.1. Please use chart.annotation() instead."),this.annotation()},r.prototype.coordinate=function(t,e){return H(t)?ot(this.options,"coordinate",{type:t,cfg:e}):ot(this.options,"coordinate",t),this.coordinateController.update(this.options.coordinate),this.coordinateController},r.prototype.coord=function(t,e){return console.warn("This method will be removed at G2 V4.1. Please use chart.coordinate() instead."),this.coordinate(t,e)},r.prototype.facet=function(t,e){this.facetInstance&&this.facetInstance.destroy();var n=s0(t);if(!n)throw new Error("facet '".concat(t,"' is not exist!"));return this.facetInstance=new n(this,m(m({},e),{type:t})),this},r.prototype.animate=function(t){return ot(this.options,"animate",t),this},r.prototype.updateOptions=function(t){return this.clear(),rt(this.options,t),this.views.forEach(function(e){return e.destroy()}),this.views=[],this.initOptions(),this.coordinateBBox=this.viewBBox,this},r.prototype.option=function(t,e){if(r.prototype[t])throw new Error("Can't use built in variable name \"".concat(t,'", please change another one.'));return ot(this.options,t,e),this},r.prototype.theme=function(t){return this.themeObject=Q(t)?O({},this.themeObject,Sn(t)):La(t),this},r.prototype.interaction=function(t,e){var n=this.interactions[t];n&&n.destroy();var a=B0(t,this,e);return a&&(a.init(),this.interactions[t]=a),this},r.prototype.removeInteraction=function(t){var e=this.interactions[t];e&&(e.destroy(),this.interactions[t]=void 0)},r.prototype.changeData=function(t){this.isDataChanged=!0,this.emit(Z.BEFORE_CHANGE_DATA,Ct.fromData(this,Z.BEFORE_CHANGE_DATA,null)),this.data(t),this.paint(!0);for(var e=this.views,n=0,a=e.length;n<a;n++){var o=e[n];o.changeData(t)}this.emit(Z.AFTER_CHANGE_DATA,Ct.fromData(this,Z.AFTER_CHANGE_DATA,null))},r.prototype.createView=function(t){this.parent&&this.parent.parent&&console.warn("The view nesting recursive feature will be removed at G2 V4.1. Please avoid to use it.");var e={data:this.options.data,scales:Rt(this.options.scales),axes:Rt(this.options.axes),coordinate:Rt(this.coordinateController.getOption()),tooltip:Rt(this.options.tooltip),legends:Rt(this.options.legends),animate:this.options.animate,visible:this.visible},n=new r(m(m({parent:this,canvas:this.canvas,backgroundGroup:this.backgroundGroup.addGroup({zIndex:mr.BG}),middleGroup:this.middleGroup.addGroup({zIndex:mr.MID}),foregroundGroup:this.foregroundGroup.addGroup({zIndex:mr.FORE}),theme:this.themeObject,padding:this.padding},t),{options:m(m({},e),A(t,"options",{}))}));return this.views.push(n),n},r.prototype.view=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.createView() instead."),this.createView(t)},r.prototype.removeView=function(t){var e=Yv(this.views,function(n){return n===t})[0];return e&&e.destroy(),e},r.prototype.getCoordinate=function(){return this.coordinateInstance},r.prototype.getTheme=function(){return this.themeObject},r.prototype.getXScale=function(){var t=this.geometries[0];return t?t.getXScale():null},r.prototype.getYScales=function(){var t={},e=[];return this.geometries.forEach(function(n){var a=n.getYScale(),o=a.field;t[o]||(t[o]=!0,e.push(a))}),e},r.prototype.getScalesByDim=function(t){for(var e=this.geometries,n={},a=0,o=e.length;a<o;a++){var s=e[a],l=t==="x"?s.getXScale():s.getYScale();l&&!n[l.field]&&(n[l.field]=l)}return n},r.prototype.getScale=function(t,e){var n=e||this.getScaleKey(t);return this.getRootView().scalePool.getScale(n)},r.prototype.getScaleByField=function(t,e){return this.getScale(t,e)},r.prototype.getOptions=function(){return this.options},r.prototype.getData=function(){return this.filteredData},r.prototype.getOriginalData=function(){return this.options.data},r.prototype.getPadding=function(){return this.autoPadding.getPadding()},r.prototype.getGeometries=function(){return this.geometries},r.prototype.getElements=function(){return Zh(this.geometries,function(t,e){return t.concat(e.getElements())},[])},r.prototype.getElementsBy=function(t){return this.getElements().filter(function(e){return t(e)})},r.prototype.getLayer=function(t){return t===tt.BG?this.backgroundGroup:t===tt.MID?this.middleGroup:t===tt.FORE?this.foregroundGroup:this.foregroundGroup},r.prototype.isPointInPlot=function(t){return io(this.getCoordinate(),t)},r.prototype.getLegendAttributes=function(){return Vt(this.geometries.map(function(t){return t.getGroupAttributes()}))},r.prototype.getGroupScales=function(){var t=this.geometries.map(function(e){return e.getGroupScales()});return Le(Vt(t))},r.prototype.getCanvas=function(){return this.getRootView().canvas},r.prototype.getRootView=function(){for(var t=this;;){if(t.parent){t=t.parent;continue}break}return t},r.prototype.getXY=function(t){var e=this.getCoordinate(),n=this.getScalesByDim("x"),a=this.getScalesByDim("y"),o,s;if(M(t,function(l,h){n[h]&&(o=n[h].scale(l)),a[h]&&(s=a[h].scale(l))}),!E(o)&&!E(s))return e.convert({x:o,y:s})},r.prototype.getController=function(t){return pe(this.controllers,function(e){return e.name===t})},r.prototype.showTooltip=function(t){var e=this.getController("tooltip");return e&&e.showTooltip(t),this},r.prototype.hideTooltip=function(){var t=this.getController("tooltip");return t&&t.hideTooltip(),this},r.prototype.lockTooltip=function(){var t=this.getController("tooltip");return t&&t.lockTooltip(),this},r.prototype.unlockTooltip=function(){var t=this.getController("tooltip");return t&&t.unlockTooltip(),this},r.prototype.isTooltipLocked=function(){var t=this.getController("tooltip");return t&&t.isTooltipLocked()},r.prototype.getTooltipItems=function(t){var e=this.getController("tooltip");return e?e.getTooltipItems(t):[]},r.prototype.getSnapRecords=function(t){for(var e=this.geometries,n=[],a=0,o=e.length;a<o;a++){var s=e[a],l=s.dataArray;s.sort(l);for(var h=void 0,u=0,c=l.length;u<c;u++){var f=l[u];h=Qc(t,f,s),h&&n.push(h)}}for(var v=this.views,a=0,o=v.length;a<o;a++){var p=v[a],g=p.getSnapRecords(t);n=n.concat(g)}return n},r.prototype.getComponents=function(){for(var t=[],e=this.controllers,n=0,a=e.length;n<a;n++){var o=e[n];t=t.concat(o.getComponents())}return t},r.prototype.filterData=function(t){var e=this.options.filters;return Ft(e)===0?t:Ht(t,function(n,a){var o=Object.keys(e);return o.every(function(s){var l=e[s];return l(n[s],n,a)})})},r.prototype.filterFieldData=function(t,e){var n=this.options.filters,a=A(n,t);return vr(a)?e:e.filter(function(o,s){return a(o[t],o,s)})},r.prototype.adjustCoordinate=function(){var t=this.getCoordinate(),e=t.start,n=t.end,a=this.coordinateBBox.bl,o=this.coordinateBBox.tr;if(st(e,a)&&st(n,o)){this.isCoordinateChanged=!1;return}this.isCoordinateChanged=!0,this.coordinateInstance=this.coordinateController.adjust(a,o)},r.prototype.paint=function(t){this.renderDataRecursive(t),this.syncScale(),this.emit(Z.BEFORE_PAINT),this.renderPaddingRecursive(t),this.renderLayoutRecursive(t),this.renderBackgroundStyleShape(),this.renderPaintRecursive(t),this.emit(Z.AFTER_PAINT),this.isDataChanged=!1},r.prototype.renderBackgroundStyleShape=function(){if(!this.parent){var t=A(this.themeObject,"background");if(t){this.backgroundStyleRectShape||(this.backgroundStyleRectShape=this.backgroundGroup.addShape("rect",{attrs:{},zIndex:-1,capture:!1}),this.backgroundStyleRectShape.toBack());var e=this.viewBBox,n=e.x,a=e.y,o=e.width,s=e.height;this.backgroundStyleRectShape.attr({fill:t,x:n,y:a,width:o,height:s})}else this.backgroundStyleRectShape&&(this.backgroundStyleRectShape.remove(!0),this.backgroundStyleRectShape=void 0)}},r.prototype.renderPaddingRecursive=function(t){this.calculateViewBBox(),this.adjustCoordinate(),this.initComponents(t),this.autoPadding=Q0(this).shrink(Ko(this.appendPadding)),this.coordinateBBox=this.viewBBox.shrink(this.autoPadding.getPadding()),this.adjustCoordinate();for(var e=this.views,n=0,a=e.length;n<a;n++){var o=e[n];o.renderPaddingRecursive(t)}},r.prototype.renderLayoutRecursive=function(t){var e=this.syncViewPadding===!0?K0:R(this.syncViewPadding)?this.syncViewPadding:void 0;e&&(e(this,this.views,cn),this.views.forEach(function(l){l.coordinateBBox=l.viewBBox.shrink(l.autoPadding.getPadding()),l.adjustCoordinate()})),this.doLayout();for(var n=this.views,a=0,o=n.length;a<o;a++){var s=n[a];s.renderLayoutRecursive(t)}},r.prototype.renderPaintRecursive=function(t){var e=this.middleGroup;if(this.limitInPlot){var n=$o(this.coordinateInstance),a=n.type,o=n.attrs;e.setClip({type:a,attrs:o})}else e.setClip(void 0);this.paintGeometries(t),this.renderComponents(t);for(var s=this.views,l=0,h=s.length;l<h;l++){var u=s[l];u.renderPaintRecursive(t)}},r.prototype.createScale=function(t,e,n,a){var o=A(this.options.scales,[t]),s=m(m({},o),n);return this.parent?this.parent.createScale(t,e,s,a):this.scalePool.createScale(t,e,s,a)},r.prototype.renderDataRecursive=function(t){this.doFilterData(),this.createCoordinate(),this.initGeometries(t),this.renderFacet(t);for(var e=this.views,n=0,a=e.length;n<a;n++){var o=e[n];o.renderDataRecursive(t)}},r.prototype.calculateViewBBox=function(){var t,e,n,a;if(this.parent){var o=this.parent.coordinateBBox;t=o.x,e=o.y,n=o.width,a=o.height}else t=0,e=0,n=this.canvas.get("width"),a=this.canvas.get("height");var s=this.region,l=s.start,h=s.end,u=new bt(t+n*l.x,e+a*l.y,n*(h.x-l.x),a*(h.y-l.y));(!this.viewBBox||!this.viewBBox.isEqual(u))&&(this.viewBBox=new bt(t+n*l.x,e+a*l.y,n*(h.x-l.x),a*(h.y-l.y))),this.coordinateBBox=this.viewBBox},r.prototype.initEvents=function(){this.foregroundGroup.on("*",this.onDelegateEvents),this.middleGroup.on("*",this.onDelegateEvents),this.backgroundGroup.on("*",this.onDelegateEvents),this.canvas.on("*",this.onCanvasEvent)},r.prototype.initComponentController=function(){for(var t=this.usedControllers,e=0,n=t.length;e<n;e++){var a=t[e],o=$0(a);o&&this.controllers.push(new o(this))}},r.prototype.createViewEvent=function(t){var e=t.shape,n=t.name,a=e?e.get("origin"):null,o=new Ct(this,t,a);return o.type=n,o},r.prototype.doPlotEvent=function(t){var e=t.type,n=t.x,a=t.y,o={x:n,y:a},s=["mousedown","mouseup","mousemove","mouseleave","mousewheel","touchstart","touchmove","touchend","touchcancel","click","dblclick","contextmenu"];if(s.includes(e)){var l=this.isPointInPlot(o),h=t.clone();if(l){var u="plot:".concat(e);h.type=u,this.emit(u,h),(e==="mouseleave"||e==="touchend")&&(this.isPreMouseInPlot=!1)}e==="mousemove"||e==="touchmove"?(this.isPreMouseInPlot&&!l?(e==="mousemove"&&(h.type=Lt.MOUSE_LEAVE,this.emit(Lt.MOUSE_LEAVE,h)),h.type=Lt.LEAVE,this.emit(Lt.LEAVE,h)):!this.isPreMouseInPlot&&l&&(e==="mousemove"&&(h.type=Lt.MOUSE_ENTER,this.emit(Lt.MOUSE_ENTER,h)),h.type=Lt.ENTER,this.emit(Lt.ENTER,h)),this.isPreMouseInPlot=l):(e==="mouseleave"||e==="touchend")&&this.isPreMouseInPlot&&(e==="mouseleave"&&(h.type=Lt.MOUSE_LEAVE,this.emit(Lt.MOUSE_LEAVE,h)),h.type=Lt.LEAVE,this.emit(Lt.LEAVE,h),this.isPreMouseInPlot=!1)}},r.prototype.doFilterData=function(){var t=this.options.data;this.filteredData=this.filterData(t)},r.prototype.initGeometries=function(t){this.createOrUpdateScales();for(var e=this.getCoordinate(),n=A(this.options,"scales",{}),a=this.geometries,o=0,s=a.length;o<s;o++){var l=a[o];l.scales=this.getGeometryScales();var h={coordinate:e,scaleDefs:n,data:this.filteredData,theme:this.themeObject,isDataChanged:this.isDataChanged,isCoordinateChanged:this.isCoordinateChanged};t?l.update(h):l.init(h)}this.adjustScales()},r.prototype.createOrUpdateScales=function(){for(var t=this.getScaleFields(),e=this.getGroupedFields(),n=this.getOptions(),a=n.data,o=n.scales,s=o===void 0?{}:o,l=this.filteredData,h=0,u=t.length;h<u;h++){var c=t[h],f=s[c],v=this.getScaleKey(c);this.createScale(c,e.includes(c)?a:l,f,v),this.createdScaleKeys.set(v,!0)}},r.prototype.syncScale=function(){this.getRootView().scalePool.sync(this.getCoordinate(),this.theme)},r.prototype.getGeometryScales=function(){for(var t=this.getScaleFields(),e={},n=0;n<t.length;n++){var a=t[n];e[a]=this.getScaleByField(a)}return e},r.prototype.getScaleFields=function(){for(var t=[],e=new Map,n=this.geometries,a=0;a<n.length;a++){var o=n[a],s=o.getScaleFields();Le(s,t,e)}return t},r.prototype.getGroupedFields=function(){for(var t=[],e=new Map,n=this.geometries,a=0;a<n.length;a++){var o=n[a],s=o.getGroupFields();Le(s,t,e)}return t},r.prototype.adjustScales=function(){this.adjustCategoryScaleRange()},r.prototype.adjustCategoryScaleRange=function(){var t=this,e=vt([this.getXScale()],this.getYScales(),!0).filter(function(o){return!!o}),n=this.getCoordinate(),a=this.options.scales;M(e,function(o){var s=o.field,l=o.values,h=o.isCategory,u=o.isIdentity;(h||u)&&l&&!A(a,[s,"range"])&&(o.range=Dc(o,n,t.theme))})},r.prototype.initComponents=function(t){for(var e=this.controllers,n=0;n<e.length;n++){var a=e[n];t?a.update():(a.clear(),a.render())}},r.prototype.doLayout=function(){this.layoutFunc(this)},r.prototype.createCoordinate=function(){var t=this.coordinateBBox.bl,e=this.coordinateBBox.tr;this.coordinateInstance=this.coordinateController.create(t,e)},r.prototype.paintGeometries=function(t){for(var e=this.options.animate,n=this.getCoordinate(),a={x:this.viewBBox.x,y:this.viewBBox.y,minX:this.viewBBox.minX,minY:this.viewBBox.minY,maxX:this.viewBBox.maxX,maxY:this.viewBBox.maxY,width:this.viewBBox.width,height:this.viewBBox.height},o=this.geometries,s=0;s<o.length;s++){var l=o[s];l.coordinate=n,l.canvasRegion=a,e||l.animate(!1),l.paint(t)}},r.prototype.renderComponents=function(t){for(var e=0;e<this.getComponents().length;e++){var n=this.getComponents()[e];n.component.render()}},r.prototype.renderFacet=function(t){this.facetInstance&&(t?this.facetInstance.update():(this.facetInstance.clear(),this.facetInstance.init(),this.facetInstance.render()))},r.prototype.initOptions=function(){var t=this,e=this.options,n=e.geometries,a=n===void 0?[]:n,o=e.interactions,s=o===void 0?[]:o,l=e.views,h=l===void 0?[]:l,u=e.annotations,c=u===void 0?[]:u,f=e.coordinate,v=e.events,p=e.facets;this.coordinateController?f&&this.coordinateController.update(f):this.coordinateController=new U0(f);for(var g=0;g<a.length;g++){var d=a[g];this.createGeometry(d)}for(var y=0;y<s.length;y++){var w=s[y],x=w.type,C=w.cfg;this.interaction(x,C)}for(var S=0;S<h.length;S++){var b=h[S];this.createView(b)}for(var L=this.getController("annotation"),B=0;B<c.length;B++){var P=c[B];L.annotation(P)}v&&M(v,function(F,D){t.on(D,F)}),p&&M(p,function(F){var D=F.type,Y=ct(F,["type"]);t.facet(D,Y)})},r.prototype.createGeometry=function(t){var e=t.type,n=t.cfg,a=n===void 0?{}:n;if(this[e]){var o=this[e](a);M(t,function(s,l){R(o[l])&&o[l](s)})}},r.prototype.getScaleKey=function(t){return"".concat(this.id,"-").concat(t)},r}(Eo);function ue(i,r){Kc.prototype[i.toLowerCase()]=function(t){t===void 0&&(t={});var e=m({container:this.middleGroup.addGroup(),labelsContainer:this.foregroundGroup.addGroup()},t),n=new r(e);return this.geometries.push(n),n}}const J0=Kc;var tx=function(i){T(r,i);function r(t){var e=this,n=t.container,a=t.width,o=t.height,s=t.autoFit,l=s===void 0?!1:s,h=t.padding,u=t.appendPadding,c=t.renderer,f=c===void 0?"canvas":c,v=t.pixelRatio,p=t.localRefresh,g=p===void 0?!0:p,d=t.visible,y=d===void 0?!0:d,w=t.supportCSSTransform,x=w===void 0?!1:w,C=t.defaultInteractions,S=C===void 0?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text"]:C,b=t.options,L=t.limitInPlot,B=t.theme,P=t.syncViewPadding,F=H(n)?document.getElementById(n):n,D=Pe('<div style="position:relative;"></div>');F.appendChild(D);var Y=Xs(F,l,a,o),z=ap(f),q=new z.Canvas(m({container:D,pixelRatio:v,localRefresh:g,supportCSSTransform:x},Y));return e=i.call(this,{parent:null,canvas:q,backgroundGroup:q.addGroup({zIndex:mr.BG}),middleGroup:q.addGroup({zIndex:mr.MID}),foregroundGroup:q.addGroup({zIndex:mr.FORE}),padding:h,appendPadding:u,visible:y,options:b,limitInPlot:L,theme:B,syncViewPadding:P})||this,e.onResize=ru(function(){e.forceFit()},300),e.ele=F,e.canvas=q,e.width=Y.width,e.height=Y.height,e.autoFit=l,e.localRefresh=g,e.renderer=f,e.wrapperElement=D,e.updateCanvasStyle(),e.bindAutoFit(),e.initDefaultInteractions(S),e}return r.prototype.initDefaultInteractions=function(t){var e=this;M(t,function(n){e.interaction(n)})},r.prototype.aria=function(t){var e="aria-label";t===!1?this.ele.removeAttribute(e):this.ele.setAttribute(e,t.label)},r.prototype.changeSize=function(t,e){return this.width===t&&this.height===e?this:(this.emit(Z.BEFORE_CHANGE_SIZE),this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this.emit(Z.AFTER_CHANGE_SIZE),this)},r.prototype.clear=function(){i.prototype.clear.call(this),this.aria(!1)},r.prototype.destroy=function(){i.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),fp(this.wrapperElement),this.wrapperElement=null},r.prototype.changeVisible=function(t){return i.prototype.changeVisible.call(this,t),this.wrapperElement.style.display=t?"":"none",this},r.prototype.forceFit=function(){if(!this.destroyed){var t=Xs(this.ele,!0,this.width,this.height),e=t.width,n=t.height;this.changeSize(e,n)}},r.prototype.updateCanvasStyle=function(){wt(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},r.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},r.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},r}(J0);const LM=tx;var Dr=function(){function i(r){this.visible=!0,this.components=[],this.view=r}return i.prototype.clear=function(r){M(this.components,function(t){t.component.destroy()}),this.components=[]},i.prototype.destroy=function(){this.clear()},i.prototype.getComponents=function(){return this.components},i.prototype.changeVisible=function(r){this.visible!==r&&(this.components.forEach(function(t){r?t.component.show():t.component.hide()}),this.visible=r)},i}();function ex(i){for(var r=[],t=function(n){var a=i[n],o=pe(r,function(s){return s.color===a.color&&s.name===a.name&&s.value===a.value&&s.title===a.title});o||r.push(a)},e=0;e<i.length;e++)t(e);return r}var rx=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.isLocked=!1,t}return Object.defineProperty(r.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.isVisible=function(){var t=this.view.getOptions().tooltip;return t!==!1},r.prototype.render=function(){},r.prototype.showTooltip=function(t){if(this.point=t,!!this.isVisible()){var e=this.view,n=this.getTooltipItems(t);if(!n.length){this.hideTooltip();return}var a=this.getTitle(n),o={x:n[0].x,y:n[0].y};e.emit("tooltip:show",Ct.fromData(e,"tooltip:show",m({items:n,title:a},t)));var s=this.getTooltipCfg(),l=s.follow,h=s.showMarkers,u=s.showCrosshairs,c=s.showContent,f=s.marker,v=this.items,p=this.title;if(!st(p,a)||!st(v,n)?(e.emit("tooltip:change",Ct.fromData(e,"tooltip:change",m({items:n,title:a},t))),(R(c)?c(n):c)&&(this.tooltip||this.renderTooltip(),this.tooltip.update(rt({},s,{items:this.getItemsAfterProcess(n),title:a},l?t:{})),this.tooltip.show()),h&&this.renderTooltipMarkers(n,f)):(this.tooltip&&l&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()),this.items=n,this.title=a,u){var g=A(s,["crosshairs","follow"],!1);this.renderCrosshairs(g?t:o,s)}}},r.prototype.hideTooltip=function(){var t=this.getTooltipCfg().follow;if(!t){this.point=null;return}var e=this.tooltipMarkersGroup;e&&e.hide();var n=this.xCrosshair,a=this.yCrosshair;n&&n.hide(),a&&a.hide();var o=this.tooltip;o&&o.hide(),this.view.emit("tooltip:hide",Ct.fromData(this.view,"tooltip:hide",{})),this.point=null},r.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},r.prototype.unlockTooltip=function(){this.isLocked=!1;var t=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(t.capture)},r.prototype.isTooltipLocked=function(){return this.isLocked},r.prototype.clear=function(){var t=this,e=t.tooltip,n=t.xCrosshair,a=t.yCrosshair,o=t.tooltipMarkersGroup;e&&(e.hide(),e.clear()),n&&n.clear(),a&&a.clear(),o&&o.clear(),e!=null&&e.get("customContent")&&(this.tooltip.destroy(),this.tooltip=null),this.title=null,this.items=null},r.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},r.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},r.prototype.changeVisible=function(t){if(this.visible!==t){var e=this,n=e.tooltip,a=e.tooltipMarkersGroup,o=e.xCrosshair,s=e.yCrosshair;t?(n&&n.show(),a&&a.show(),o&&o.show(),s&&s.show()):(n&&n.hide(),a&&a.hide(),o&&o.hide(),s&&s.hide()),this.visible=t}},r.prototype.getTooltipItems=function(t){var e=this.findItemsFromView(this.view,t);if(e.length){e=Vt(e);for(var n=0,a=e;n<a.length;n++)for(var o=a[n],s=0,l=o;s<l.length;s++){var h=l[s],u=h.mappingData,c=u.x,f=u.y;h.x=I(c)?c[c.length-1]:c,h.y=I(f)?f[f.length-1]:f}var v=this.getTooltipCfg().shared;if(v===!1&&e.length>1){for(var p=e[0],g=Math.abs(t.y-p[0].y),d=0,y=e;d<y.length;d++){var w=y[d],x=Math.abs(t.y-w[0].y);x<=g&&(p=w,g=x)}e=[p]}return ex(Vt(e))}return[]},r.prototype.layout=function(){},r.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var t=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}})}},r.prototype.isCursorEntered=function(t){if(this.tooltip){var e=this.tooltip.getContainer(),n=this.tooltip.get("capture");if(e&&n){var a=e.getBoundingClientRect(),o=a.x,s=a.y,l=a.width,h=a.height;return new bt(o,s,l,h).isPointIn(t)}}return!1},r.prototype.getTooltipCfg=function(){var t=this.view,e=t.getOptions().tooltip,n=this.processCustomContent(e),a=t.getTheme(),o=A(a,["components","tooltip"],{}),s=A(n,"enterable",o.enterable);return O({},o,n,{capture:!!(s||this.isLocked)})},r.prototype.processCustomContent=function(t){if(si(t)||!A(t,"customContent"))return t;var e=t.customContent,n=function(a,o){var s=e(a,o)||"";return H(s)?'<div class="g2-tooltip">'+s+"</div>":s};return m(m({},t),{customContent:n})},r.prototype.getTitle=function(t){var e=t[0].title||t[0].name;return this.title=e,e},r.prototype.renderTooltip=function(){var t=this.view.getCanvas(),e={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},n=this.getTooltipCfg(),a=new _o(m(m({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));a.init(),this.tooltip=a},r.prototype.renderTooltipMarkers=function(t,e){for(var n=this.getTooltipMarkersGroup(),a=this.view.getRootView(),o=a.limitInPlot,s=0,l=t;s<l.length;s++){var h=l[s],u=h.x,c=h.y;if(o||n!=null&&n.getClip()){var f=$o(a.getCoordinate()),v=f.type,p=f.attrs;n==null||n.setClip({type:v,attrs:p})}else n==null||n.setClip(void 0);var g=m(m({fill:h.color,symbol:"circle",shadowColor:h.color},e),{x:u,y:c});n.addShape("marker",{attrs:g})}},r.prototype.renderCrosshairs=function(t,e){var n=A(e,["crosshairs","type"],"x");n==="x"?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,e)):n==="y"?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,e)):n==="xy"&&(this.renderXCrosshairs(t,e),this.renderYCrosshairs(t,e))},r.prototype.renderXCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate();if(io(n,t)){var a,o;if(n.isRect)n.isTransposed?(a={x:n.start.x,y:t.y},o={x:n.end.x,y:t.y}):(a={x:t.x,y:n.end.y},o={x:t.x,y:n.start.y});else{var s=br(n,t),l=n.getCenter(),h=n.getRadius();o=it(l.x,l.y,h,s),a=l}var u=O({start:a,end:o,container:this.getTooltipCrosshairsGroup()},A(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete u.type;var c=this.xCrosshair;c?c.update(u):(c=new Tc(u),c.init()),c.render(),c.show(),this.xCrosshair=c}},r.prototype.renderYCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate();if(io(n,t)){var a,o;if(n.isRect){var s=void 0,l=void 0;n.isTransposed?(s={x:t.x,y:n.end.y},l={x:t.x,y:n.start.y}):(s={x:n.start.x,y:t.y},l={x:n.end.x,y:t.y}),a={start:s,end:l},o="Line"}else a={center:n.getCenter(),radius:ea(n,t),startAngle:n.startAngle,endAngle:n.endAngle},o="Circle";a=O({container:this.getTooltipCrosshairsGroup()},a,A(e,"crosshairs",{}),this.getCrosshairsText("y",t,e)),delete a.type;var h=this.yCrosshair;h?n.isRect&&h.get("type")==="circle"||!n.isRect&&h.get("type")==="line"?(h=new Gl[o](a),h.init()):h.update(a):(h=new Gl[o](a),h.init()),h.render(),h.show(),this.yCrosshair=h}},r.prototype.getCrosshairsText=function(t,e,n){var a=A(n,["crosshairs","text"]),o=A(n,["crosshairs","follow"]),s=this.items;if(a){var l=this.getViewWithGeometry(this.view),h=s[0],u=l.getXScale(),c=l.getYScales()[0],f=void 0,v=void 0;if(o){var p=this.view.getCoordinate().invert(e);f=u.invert(p.x),v=c.invert(p.y)}else f=h.data[u.field],v=h.data[c.field];var g=t==="x"?f:v;return R(a)?a=a(t,g,s,e):a.content=g,{text:a}}},r.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},r.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):(t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"}),t.toFront(),this.tooltipMarkersGroup=t),t},r.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||(t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1}),t.toBack(),this.tooltipCrosshairsGroup=t),t},r.prototype.findItemsFromView=function(t,e){if(t.getOptions().tooltip===!1)return[];for(var n=this.getTooltipCfg(),a=so(t,e,n),o=0,s=t.views;o<s.length;o++){var l=s[o];a=a.concat(this.findItemsFromView(l,e))}return a},r.prototype.getViewWithGeometry=function(t){var e=this;return t.geometries.length?t:pe(t.views,function(n){return e.getViewWithGeometry(n)})},r.prototype.getItemsAfterProcess=function(t){var e=this.getTooltipCfg().customItems,n=e||function(a){return a};return n(t)},r}(Dr);const ix=rx;var Jc={};function tf(i){return Jc[i.toLowerCase()]}function Xt(i,r){Jc[i.toLowerCase()]=r}var Er={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},nx={interval:function(i){return{enter:{animation:i.isRect?i.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:i.isPolar&&i.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},ih={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(i){var r;return i.isRect?r=i.isTransposed?"grow-in-x":"grow-in-y":(r="grow-in-xy",i.isPolar&&i.isTransposed&&(r="wave-in")),{animation:r}},schema:function(i){var r;return i.isRect?r=i.isTransposed?"grow-in-x":"grow-in-y":r="grow-in-xy",{animation:r}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function ax(i,r){return{delay:R(i.delay)?i.delay(r):i.delay,easing:R(i.easing)?i.easing(r):i.easing,duration:R(i.duration)?i.duration(r):i.duration,callback:i.callback,repeat:i.repeat}}function ef(i,r,t){var e=nx[i];return e&&(R(e)&&(e=e(r)),e=O({},Er,e),t)?e[t]:e}function Mr(i,r,t){var e=A(i.get("origin"),"data",$),n=r.animation,a=ax(r,e);if(n){var o=tf(n);o&&o(i,a,t)}else i.animate(t.toAttrs,a)}function ox(i,r,t,e,n){if(ih[t]){var a=ih[t](e),o=tf(A(a,"animation",""));if(o){var s=m(m(m({},Er.appear),a),r);i.stopAnimate(),o(i,s,{coordinate:e,minYPoint:n,toAttrs:null})}}}var ts="element-background",sx=function(i){T(r,i);function r(t){var e=i.call(this,t)||this;e.states=[];var n=t.shapeFactory,a=t.container,o=t.offscreenGroup,s=t.elementIndex,l=t.visible,h=l===void 0?!0:l;return e.shapeFactory=n,e.container=a,e.offscreenGroup=o,e.visible=h,e.elementIndex=s,e}return r.prototype.draw=function(t,e){e===void 0&&(e=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,e),this.visible===!1&&this.changeVisible(!1)},r.prototype.update=function(t){var e=this,n=e.shapeFactory,a=e.shape;if(a){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(a,t);var o=this.getOffscreenGroup(),s=n.drawShape(this.shapeType,t,o);s.cfg.data=this.data,s.cfg.origin=t,s.cfg.element=this,this.syncShapeStyle(a,s,this.getStates(),this.getAnimateCfg("update"))}},r.prototype.destroy=function(){var t=this,e=t.shapeFactory,n=t.shape;if(n){var a=this.getAnimateCfg("leave");a?Mr(n,a,{coordinate:e.coordinate,toAttrs:m({},n.attr())}):n.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=void 0,this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,i.prototype.destroy.call(this)},r.prototype.changeVisible=function(t){i.prototype.changeVisible.call(this,t),t?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach(function(e){e.show()})):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach(function(e){e.hide()}))},r.prototype.setState=function(t,e){var n=this,a=n.states,o=n.shapeFactory,s=n.model,l=n.shape,h=n.shapeType,u=a.indexOf(t);if(e){if(u>-1)return;a.push(t),(t==="active"||t==="selected")&&(l==null||l.toFront())}else{if(u===-1)return;if(a.splice(u,1),t==="active"||t==="selected"){var c=this.geometry,f=c.sortZIndex,v=c.zIndexReversed,p=v?this.geometry.elements.length-this.elementIndex:this.elementIndex;f?l.setZIndex(p):l.set("zIndex",p)}}var g=o.drawShape(h,s,this.getOffscreenGroup());a.length?this.syncShapeStyle(l,g,a,null):this.syncShapeStyle(l,g,["reset"],null),g.remove(!0);var d={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",d),fc(this.shape,"statechange",d)},r.prototype.clearStates=function(){var t=this,e=this.states;M(e,function(n){t.setState(n,!1)}),this.states=[]},r.prototype.hasState=function(t){return this.states.includes(t)},r.prototype.getStates=function(){return this.states},r.prototype.getData=function(){return this.data},r.prototype.getModel=function(){return this.model},r.prototype.getBBox=function(){var t=this,e=t.shape,n=t.labelShape,a={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return e&&(a=e.getCanvasBBox()),n&&n.forEach(function(o){var s=o.getCanvasBBox();a.x=Math.min(s.x,a.x),a.y=Math.min(s.y,a.y),a.minX=Math.min(s.minX,a.minX),a.minY=Math.min(s.minY,a.minY),a.maxX=Math.max(s.maxX,a.maxX),a.maxY=Math.max(s.maxY,a.maxY)}),a.width=a.maxX-a.minX,a.height=a.maxY-a.minY,a},r.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this,e=t.shapeType,n=t.geometry,a=t.shapeFactory,o=n.stateOption,s=a.defaultShapeType,l=a.theme[e]||a.theme[s];this.statesStyle=O({},l,o)}return this.statesStyle},r.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),a=A(n,[t,"style"],{}),o=a[e]||a;return R(o)?o(this):o},r.prototype.getAnimateCfg=function(t){var e=this,n=this.animate;if(n){var a=n[t];return a&&m(m({},a),{callback:function(){var o;R(a.callback)&&a.callback(),(o=e.geometry)===null||o===void 0||o.emit(xr.AFTER_DRAW_ANIMATE)}})}return null},r.prototype.drawShape=function(t,e){var n;e===void 0&&(e=!1);var a=this,o=a.shapeFactory,s=a.container,l=a.shapeType;if(this.shape=o.drawShape(l,t,s),this.shape){this.setShapeInfo(this.shape,t);var h=this.shape.cfg.name;h?H(h)&&(this.shape.cfg.name=["element",h]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var u=e?"enter":"appear",c=this.getAnimateCfg(u);c&&((n=this.geometry)===null||n===void 0||n.emit(xr.BEFORE_DRAW_ANIMATE),Mr(this.shape,c,{coordinate:o.coordinate,toAttrs:m({},this.shape.attr())}))}},r.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},r.prototype.setShapeInfo=function(t,e){var n=this;if(t.cfg.origin=e,t.cfg.element=this,t.isGroup()){var a=t.get("children");a.forEach(function(o){n.setShapeInfo(o,e)})}},r.prototype.syncShapeStyle=function(t,e,n,a,o){var s=this,l;if(n===void 0&&(n=[]),o===void 0&&(o=0),!(!t||!e)){var h=t.get("clipShape"),u=e.get("clipShape");if(this.syncShapeStyle(h,u,n,a),t.isGroup())for(var c=t.get("children"),f=e.get("children"),v=0;v<c.length;v++)this.syncShapeStyle(c[v],f[v],n,a,o+v);else{if(!se(n)&&!st(n,["reset"])){var p=t.get("name");I(p)&&(p=p[1]),M(n,function(d){if(e.get("name")!==ts){var y=s.getStateStyle(d,p||o);e.attr(y)}})}var g=Fc(t,e);this.animate?a?((l=this.geometry)===null||l===void 0||l.emit(xr.BEFORE_DRAW_ANIMATE),Mr(t,a,{coordinate:this.shapeFactory.coordinate,toAttrs:g,shapeModel:this.model})):se(n)?t.attr(g):(t.stopAnimate(),t.animate(g,{duration:300})):t.attr(g)}}},r.prototype.getShapeType=function(t){var e=A(t,"shape");return I(e)?e[0]:e},r}(Eo);const rf=sx;var nf={},af={};function lx(i){return nf[i.toLowerCase()]}function ra(i,r){nf[i.toLowerCase()]=r}function hx(i){return af[i.toLowerCase()]}function Ot(i,r){af[i.toLowerCase()]=r}var ux={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(i,r){var t=this.getShape(i);return t.getPoints?t.getPoints(r):this.getDefaultPoints(r)},getShape:function(i){var r=this[i]||this[this.defaultShapeType];return r.coordinate=this.coordinate,r},getDefaultPoints:function(){return[]},getDefaultStyle:function(i){return A(i,[this.defaultShapeType,"default","style"],{})},getMarker:function(i,r){var t=this.getShape(i);if(!t.getMarker){var e=this.defaultShapeType;t=this.getShape(e)}var n=this.theme,a=A(n,[i,"default"],{}),o=t.getMarker(r);return O({},a,o)},drawShape:function(i,r,t){var e=this.getShape(i);return e.draw(r,t)}},cx={coordinate:null,parsePath:function(i){var r=this.coordinate,t=Ru(i);return r.isPolar?t=y0(r,t):t=d0(r,t),t},parsePoint:function(i){var r=this.coordinate;return r.convert(i)},parsePoints:function(i){var r=this.coordinate;return i.map(function(t){return r.convert(t)})},draw:function(i,r){}},es={};function Xe(i,r){var t=or(i),e=m(m(m({},ux),r),{geometryType:i});return es[t]=e,e}function j(i,r,t){var e=or(i),n=es[e],a=m(m({},cx),t);return n[r]=a,a}function nh(i){var r=or(i);return es[r]}function fx(i,r,t){if(t===void 0&&(t={}),!r)return[i];var e=Kh(i,r),n=[];if(r.length===1&&t[r[0]])for(var a=t[r[0]],o=0,s=a;o<s.length;o++){var l=s[o],h=e["_".concat(l)];h&&n.push(h)}else for(var u in e)if(e.hasOwnProperty(u)){var c=e[u];n.push(c)}return n}function of(i,r){return Bn(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],function(t){return!st(i[t],r[t])})}function Wr(i){return I(i)?i:i.split("*")}function sf(i,r){for(var t=[],e=[],n=[],a=new Map,o=0;o<r.length;o++){var s=r[o];i[s]?e.push(s):t.push(s),a.set(s,!0)}return Object.keys(i).forEach(function(l){a.has(l)||n.push(l)}),{added:t,updated:e,removed:n}}function vx(i,r){var t=[];return M(r,function(e,n){var a=n.split(" ")[0];a===i&&t.push(e)}),t}var px=function(i){T(r,i);function r(t){var e=i.call(this,t)||this;e.type="base",e.attributes={},e.elements=[],e.elementsMap={},e.animateOption=!0,e.attributeOption={},e.lastElementsMap={},e.generatePoints=!1,e.beforeMappingData=null,e.adjusts={},e.idFields=[],e.hasSorted=!1,e.isCoordinateChanged=!1;var n=t.container,a=t.labelsContainer,o=t.coordinate,s=t.data,l=t.sortable,h=l===void 0?!1:l,u=t.visible,c=u===void 0?!0:u,f=t.theme,v=t.scales,p=v===void 0?{}:v,g=t.scaleDefs,d=g===void 0?{}:g,y=t.intervalPadding,w=t.dodgePadding,x=t.maxColumnWidth,C=t.minColumnWidth,S=t.columnWidthRatio,b=t.roseWidthRatio,L=t.multiplePieWidthRatio,B=t.zIndexReversed,P=t.sortZIndex;return e.container=n,e.labelsContainer=a,e.coordinate=o,e.data=s,e.sortable=h,e.visible=c,e.userTheme=f,e.scales=p,e.scaleDefs=d,e.intervalPadding=y,e.dodgePadding=w,e.maxColumnWidth=x,e.minColumnWidth=C,e.columnWidthRatio=S,e.roseWidthRatio=b,e.multiplePieWidthRatio=L,e.zIndexReversed=B,e.sortZIndex=P,e}return r.prototype.position=function(t){var e=t;ne(t)||(e={fields:Wr(t)});var n=A(e,"fields");return n.length===1&&(n.unshift("1"),ot(e,"fields",n)),ot(this.attributeOption,"position",e),this},r.prototype.color=function(t,e){return this.createAttrOption("color",t,e),this},r.prototype.shape=function(t,e){return this.createAttrOption("shape",t,e),this},r.prototype.size=function(t,e){return this.createAttrOption("size",t,e),this},r.prototype.adjust=function(t){var e=t;return(H(t)||ne(t))&&(e=[t]),M(e,function(n,a){Q(n)||(e[a]={type:n})}),this.adjustOption=e,this},r.prototype.style=function(t,e){if(H(t)){var n=Wr(t);this.styleOption={fields:n,callback:e}}else{var a=t,n=a.fields,o=a.callback,s=a.cfg;n||o||s?this.styleOption=t:this.styleOption={cfg:t}}return this},r.prototype.tooltip=function(t,e){if(H(t)){var n=Wr(t);this.tooltipOption={fields:n,callback:e}}else this.tooltipOption=t;return this},r.prototype.animate=function(t){return this.animateOption=t,this},r.prototype.label=function(t,e,n){if(H(t)){var a={},o=Wr(t);a.fields=o,R(e)?a.callback=e:ne(e)&&(a.cfg=e),n&&(a.cfg=n),this.labelOption=a}else this.labelOption=t;return this},r.prototype.state=function(t){return this.stateOption=t,this},r.prototype.customInfo=function(t){return this.customOption=t,this},r.prototype.init=function(t){t===void 0&&(t={}),this.setCfg(t),this.initAttributes(),this.processData(this.data),this.adjustScale()},r.prototype.update=function(t){t===void 0&&(t={});var e=t.data,n=t.isDataChanged,a=t.isCoordinateChanged,o=this,s=o.attributeOption,l=o.lastAttributeOption;st(s,l)?e&&(n||!st(e,this.data))?(this.setCfg(t),this.initAttributes(),this.processData(e)):this.setCfg(t):this.init(t),this.adjustScale(),this.isCoordinateChanged=a},r.prototype.paint=function(t){t===void 0&&(t=!1),this.animateOption&&(this.animateOption=O({},ef(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elementsMap={},this.elements=[];var e=this.getOffscreenGroup();e.clear();var n=this.beforeMappingData,a=this.beforeMapping(n);this.dataArray=new Array(a.length);for(var o=0;o<a.length;o++){var s=a[o];this.dataArray[o]=this.mapping(s)}if(this.updateElements(this.dataArray,t),this.lastElementsMap=this.elementsMap,this.canDoGroupAnimation(t)){var l=this.container,h=this.type,u=this.coordinate,c=A(this.animateOption,"appear"),f=this.getYScale(),v=u.convert({x:0,y:f.scale(this.getYMinValue())});ox(l,c,h,u,v)}this.labelOption&&this.renderLabels(Vt(this.dataArray),t),this.lastAttributeOption=m({},this.attributeOption),this.visible===!1&&this.changeVisible(!1)},r.prototype.clear=function(){var t=this,e=t.container,n=t.geometryLabel,a=t.offscreenGroup;e&&e.clear(),n&&n.clear(),a&&a.clear(),this.scaleDefs=void 0,this.attributes={},this.scales={},this.elementsMap={},this.lastElementsMap={},this.elements=[],this.adjusts={},this.dataArray=null,this.beforeMappingData=null,this.lastAttributeOption=void 0,this.defaultSize=void 0,this.idFields=[],this.groupScales=void 0,this.hasSorted=!1,this.isCoordinateChanged=!1},r.prototype.destroy=function(){this.clear();var t=this.container;t.remove(!0),this.offscreenGroup&&(this.offscreenGroup.remove(!0),this.offscreenGroup=null),this.geometryLabel&&(this.geometryLabel.destroy(),this.geometryLabel=null),this.theme=void 0,this.shapeFactory=void 0,i.prototype.destroy.call(this)},r.prototype.getGroupScales=function(){return this.groupScales},r.prototype.getAttribute=function(t){return this.attributes[t]},r.prototype.getXScale=function(){return this.getAttribute("position").scales[0]},r.prototype.getYScale=function(){return this.getAttribute("position").scales[1]},r.prototype.getGroupAttributes=function(){var t=[];return M(this.attributes,function(e){pr.includes(e.type)&&t.push(e)}),t},r.prototype.getDefaultValue=function(t){var e,n=this.getAttribute(t);return n&&se(n.scales)&&(e=n.values[0]),e},r.prototype.getAttributeValues=function(t,e){for(var n=[],a=t.scales,o=0,s=a.length;o<s;o++){var l=a[o],h=l.field;l.isIdentity?n.push(l.values):n.push(e[h])}return t.mapping.apply(t,n)},r.prototype.getAdjust=function(t){return this.adjusts[t]},r.prototype.getCoordinate=function(){return this.coordinate},r.prototype.getData=function(){return this.data},r.prototype.getShapeMarker=function(t,e){var n=this.getShapeFactory();return n.getMarker(t,e)},r.prototype.getElementsBy=function(t){return this.elements.filter(function(e){return t(e)})},r.prototype.getElements=function(){return this.elements},r.prototype.getElementId=function(t){t=I(t)?t[0]:t;var e=t[$];if(this.idFields.length){for(var n=e[this.idFields[0]],a=1;a<this.idFields.length;a++)n+="-"+e[this.idFields[a]];return n}var o=this.type,s=this.getXScale(),l=this.getYScale(),h=s.field||"x",u=l.field||"y",c=e[u],f;s.type==="identity"?f=s.values[0]:f=e[h];var v;o==="interval"||o==="schema"?v="".concat(f):o==="line"||o==="area"||o==="path"?v=o:v="".concat(f,"-").concat(c);for(var p=this.groupScales,a=0,g=p.length;a<g;a++){var d=p[a],y=d.field;v="".concat(v,"-").concat(e[y])}var w=this.getAdjust("dodge");if(w){var x=w.dodgeBy;x&&(v="".concat(v,"-").concat(e[x]))}return this.getAdjust("jitter")&&(v="".concat(v,"-").concat(t.x,"-").concat(t.y)),v},r.prototype.getScaleFields=function(){var t=[],e=new Map,n=this,a=n.attributeOption,o=n.labelOption,s=n.tooltipOption;for(var l in a)if(a.hasOwnProperty(l)){var h=a[l];h.fields?Le(h.fields,t,e):h.values&&Le(h.values,t,e)}return o&&o.fields&&Le(o.fields,t,e),Q(s)&&s.fields&&Le(s.fields,t,e),t},r.prototype.changeVisible=function(t){i.prototype.changeVisible.call(this,t);for(var e=this.elements,n=0,a=e.length;n<a;n++){var o=e[n];o.changeVisible(t)}t?(this.container&&this.container.show(),this.labelsContainer&&this.labelsContainer.show()):(this.container&&this.container.hide(),this.labelsContainer&&this.labelsContainer.hide())},r.prototype.getFields=function(){var t=new Map,e=[];return Object.values(this.attributeOption).forEach(function(n){var a=(n==null?void 0:n.fields)||[];a.forEach(function(o){t.has(o)||e.push(o),t.set(o,!0)})},[]),e},r.prototype.getGroupFields=function(){for(var t=[],e=new Map,n=0,a=pr.length;n<a;n++){var o=pr[n],s=this.attributeOption[o];s&&s.fields&&Le(s.fields,t,e)}return t},r.prototype.getXYFields=function(){var t=this.attributeOption.position.fields,e=t[0],n=t[1];return[e,n]},r.prototype.getXField=function(){return A(this.getXYFields(),[0])},r.prototype.getYField=function(){return A(this.getXYFields(),[1])},r.prototype.getShapes=function(){return this.elements.map(function(t){return t.shape})},r.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},r.prototype.sort=function(t){if(!this.hasSorted)for(var e=this.getXScale(),n=e.field,a=0;a<t.length;a++){var o=t[a];o.sort(function(s,l){return e.translate(s[$][n])-e.translate(l[$][n])})}this.hasSorted=!0},r.prototype.adjustScale=function(){var t=this.getYScale();t&&this.getAdjust("stack")&&this.updateStackRange(t,this.beforeMappingData)},r.prototype.getShapeFactory=function(){var t=this.shapeType;if(nh(t))return this.shapeFactory||(this.shapeFactory=Rt(nh(t))),this.shapeFactory.coordinate=this.coordinate,this.shapeFactory.theme=this.theme.geometries[t]||{},this.shapeFactory},r.prototype.createShapePointsCfg=function(t){var e=this.getXScale(),n=this.getYScale(),a=this.normalizeValues(t[e.field],e),o;return n?o=this.normalizeValues(t[n.field],n):o=t.y?t.y:.1,{x:a,y:o,y0:n?n.scale(this.getYMinValue()):void 0}},r.prototype.createElement=function(t,e,n){n===void 0&&(n=!1);var a=this.container,o=this.getDrawCfg(t),s=this.getShapeFactory(),l=new rf({shapeFactory:s,container:a,offscreenGroup:this.getOffscreenGroup(),elementIndex:e});return l.animate=this.animateOption,l.geometry=this,l.draw(o,n),l},r.prototype.getDrawCfg=function(t){var e=t[$],n={mappingData:t,data:e,x:t.x,y:t.y,color:t.color,size:t.size,isInCircle:this.coordinate.isPolar,customInfo:this.customOption},a=t.shape;!a&&this.getShapeFactory()&&(a=this.getShapeFactory().defaultShapeType),n.shape=a;var o=this.theme.geometries[this.shapeType];n.defaultStyle=A(o,[a,"default"],{}).style,!n.defaultStyle&&this.getShapeFactory()&&(n.defaultStyle=this.getShapeFactory().getDefaultStyle(o));var s=this.styleOption;return s&&(n.style=this.getStyleCfg(s,e)),this.generatePoints&&(n.points=t.points,n.nextPoints=t.nextPoints),n},r.prototype.updateElements=function(t,e){e===void 0&&(e=!1);for(var n=new Map,a=[],o=new Map,s=0,l=0;l<t.length;l++)for(var h=t[l],u=0;u<h.length;u++){var c=h[u],f=this.getElementId(c),v=n.has(f)?"".concat(f,"-").concat(l,"-").concat(u):f;a.push(v),n.set(v,c),o.set(v,s),s++}this.elements=new Array(s);for(var p=sf(this.lastElementsMap,a),g=p.added,d=p.updated,y=p.removed,w=0,x=g;w<x.length;w++){var f=x[w],c=n.get(f),l=o.get(f),C=this.createElement(c,l,e);this.elements[l]=C,this.elementsMap[f]=C,C.shape&&C.shape.set("zIndex",this.zIndexReversed?this.elements.length-l:l)}for(var S=0,b=d;S<b.length;S++){var f=b[S],C=this.lastElementsMap[f],c=n.get(f),L=this.getDrawCfg(c),B=C.getModel(),l=o.get(f);(this.isCoordinateChanged||of(L,B))&&(C.animate=this.animateOption,C.update(L)),this.elements[l]=C,this.elementsMap[f]=C,C.shape&&C.shape.set("zIndex",this.zIndexReversed?this.elements.length-l:l)}this.container&&this.container.sort();for(var P=0,F=y;P<F.length;P++){var f=F[P],C=this.lastElementsMap[f];C.animate=this.animateOption,C.destroy()}},r.prototype.getLabelType=function(){var t=this,e=t.labelOption,n=t.coordinate,a=t.type,o=n.type,s=n.isTransposed,l=A(e,["cfg","type"]);return l||(o==="polar"?l=s?"pie":"polar":o==="theta"?l="pie":a==="interval"||a==="polygon"?l="interval":l="base"),l},r.prototype.getYMinValue=function(){var t=this.getYScale(),e=t.min,n=t.max,a;return e>=0?a=e:n<=0?a=n:a=0,a},r.prototype.createAttrOption=function(t,e,n){if(E(e)||Q(e))Q(e)&&st(Object.keys(e),["values"])?ot(this.attributeOption,t,{fields:e.values}):ot(this.attributeOption,t,e);else{var a={};W(e)?a.values=[e]:a.fields=Wr(e),n&&(R(n)?a.callback=n:a.values=n),ot(this.attributeOption,t,a)}},r.prototype.initAttributes=function(){var t=this,e=this,n=e.attributes,a=e.attributeOption,o=e.theme,s=e.shapeType;this.groupScales=[];var l={},h=function(f){if(a.hasOwnProperty(f)){var v=a[f];if(!v)return{value:void 0};var p=m({},v),g=p.callback,d=p.values,y=p.fields,w=y===void 0?[]:y,x=w.map(function(S){var b=t.scales[S];if(!l[S]&&pr.includes(f)){var L=Oc(b,A(t.scaleDefs,S),f,t.type);L==="cat"&&(t.groupScales.push(b),l[S]=!0)}return b});p.scales=x,f!=="position"&&x.length===1&&x[0].type==="identity"?p.values=x[0].values:!g&&!d&&(f==="size"?p.values=o.sizes:f==="shape"?p.values=o.shapes[s]||[]:f==="color"&&(x.length?p.values=x[0].values.length<=10?o.colors10:o.colors20:p.values=o.colors10));var C=hc(f);n[f]=new C(p)}};for(var u in a){var c=h(u);if(typeof c=="object")return c.value}},r.prototype.processData=function(t){this.hasSorted=!1;for(var e=this.getAttribute("position").scales,n=e.filter(function(S){return S.isCategory}),a=this.groupData(t),o=[],s=0,l=a.length;s<l;s++){for(var h=a[s],u=[],c=0,f=h.length;c<f;c++){var v=h[c],p={};for(var g in v)p[g]=v[g];p[$]=v;for(var d=0,y=n;d<y.length;d++){var w=y[d],x=w.field;p[x]=w.translate(p[x])}u.push(p)}o.push(u)}var C=this.adjustData(o);return this.beforeMappingData=C,C},r.prototype.adjustData=function(t){var e=this.adjustOption,n=this,a=n.intervalPadding,o=n.dodgePadding,s=n.theme,l=this.maxColumnWidth||s.maxColumnWidth,h=this.minColumnWidth||s.minColumnWidth,u=this.columnWidthRatio||s.columnWidthRatio,c=t;if(e){var f=this.getXScale(),v=this.getYScale(),p=f.field,g=v?v.field:null,d=Ti(this.coordinate),y=f.values.length,w=this.getAttribute("size"),x=void 0;w&&(x=w.values[0]);for(var C=0,S=e.length;C<S;C++){var b=e[C],L=m({xField:p,yField:g,intervalPadding:a,dodgePadding:o,xDimensionLength:d,groupNum:y,defaultSize:x,maxColumnWidth:l,minColumnWidth:h,columnWidthRatio:u},b),B=b.type;if(B==="dodge"){var P=[];if(f.isCategory||f.type==="identity")P.push("x");else if(!v)P.push("y");else throw new Error("dodge is not support linear attribute, please use category attribute!");L.adjustNames=P,L.dodgeRatio=u}else if(B==="stack"){var F=this.coordinate;if(!v){L.height=F.getHeight();var D=this.getDefaultValue("size")||3;L.size=D}!F.isTransposed&&E(L.reverseOrder)&&(L.reverseOrder=!0)}var Y=Vu(B);L.dimValuesMap={},f&&f.values&&(L.dimValuesMap[f.field]=f.values.map(function(q){return f.translate(q)}));var z=new Y(L);c=z.process(c),this.adjusts[B]=z}}return c},r.prototype.groupData=function(t){for(var e=this.getGroupScales(),n=this.scaleDefs,a={},o=[],s=0;s<e.length;s++){var l=e[s],h=l.field;o.push(h),A(n,[h,"values"])&&(a[h]=n[h].values)}return fx(t,o,a)},r.prototype.updateStackRange=function(t,e){for(var n=Vt(e),a=t.field,o=t.min,s=t.max,l=0;l<n.length;l++){var h=n[l],u=Math.min.apply(null,h[a]),c=Math.max.apply(null,h[a]);u<o&&(o=u),c>s&&(s=c)}var f=this.scaleDefs,v={};o<t.min&&!A(f,[a,"min"])&&(v.min=o),s>t.max&&!A(f,[a,"max"])&&(v.max=s),t.change(v)},r.prototype.beforeMapping=function(t){var e=t;if(this.sortable&&this.sort(e),this.generatePoints)for(var n=0,a=e.length;n<a;n++){var o=e[n];this.generateShapePoints(o);var s=e[n+1];s&&(this.generateShapePoints(s),o[0].nextPoints=s[0].points)}return e},r.prototype.generateShapePoints=function(t){for(var e=this.getShapeFactory(),n=this.getAttribute("shape"),a=0;a<t.length;a++){var o=t[a],s=this.createShapePointsCfg(o),l=n?this.getAttributeValues(n,o):null,h=e.getShapePoints(l,s);o.points=h}},r.prototype.normalizeValues=function(t,e){var n=[];if(I(t))for(var a=0;a<t.length;a++){var o=t[a];n.push(e.scale(o))}else n=e.scale(t);return n},r.prototype.mapping=function(t){for(var e=this.attributes,n=[],a=0;a<t.length;a++){var o=t[a],s={_origin:o[$],points:o.points,nextPoints:o.nextPoints};for(var l in e)if(e.hasOwnProperty(l)){var h=e[l],u=h.names,c=this.getAttributeValues(h,o);if(u.length>1)for(var f=0;f<c.length;f+=1){var v=c[f],p=u[f];s[p]=I(v)&&v.length===1?v[0]:v}else s[u[0]]=c.length===1?c[0]:c}this.convertPoint(s),n.push(s)}return n},r.prototype.convertPoint=function(t){var e=t.x,n=t.y,a,o,s,l=this.coordinate;if(I(e)&&I(n)){a=[],o=[];for(var h=0,u=0,c=e.length,f=n.length;h<c&&u<f;h+=1,u+=1)s=l.convert({x:e[h],y:n[u]}),a.push(s.x),o.push(s.y)}else if(I(n)){o=[];for(var v=0;v<n.length;v++){var p=n[v];s=l.convert({x:e,y:p}),a&&a!==s.x?(I(a)||(a=[a]),a.push(s.x)):a=s.x,o.push(s.y)}}else if(I(e)){a=[];for(var v=0;v<e.length;v++){var g=e[v];s=l.convert({x:g,y:n}),o&&o!==s.y?(I(o)||(o=[o]),o.push(s.y)):o=s.y,a.push(s.x)}}else{var d=l.convert({x:e,y:n});a=d.x,o=d.y}t.x=a,t.y=o},r.prototype.getStyleCfg=function(t,e){var n=t.fields,a=n===void 0?[]:n,o=t.callback,s=t.cfg;if(s)return s;var l=a.map(function(h){return e[h]});return o.apply(void 0,l)},r.prototype.setCfg=function(t){var e=this,n=t.coordinate,a=t.data,o=t.theme,s=t.scaleDefs;n&&(this.coordinate=n),a&&(this.data=a),s&&(this.scaleDefs=s,this.idFields=[],M(s,function(l,h){l&&l.key&&e.idFields.push(h)})),o&&(this.theme=this.userTheme?O({},o,this.userTheme):o)},r.prototype.renderLabels=function(t,e){e===void 0&&(e=!1);var n=this.geometryLabel;if(!n){var a=this.getLabelType(),o=lx(a);n=new o(this),this.geometryLabel=n}n.render(t,e);var s=n.labelsRenderer.shapesMap;M(this.elementsMap,function(l,h){var u=vx(h,s);if(u.length){l.labelShape=u;for(var c=0;c<u.length;c++)for(var f=u[c],v=f.getChildren(),p=0;p<v.length;p++){var g=v[p];g.cfg.name=["element","label"],g.cfg.element=l}}})},r.prototype.canDoGroupAnimation=function(t){return!t&&this.animateOption&&(A(this.animateOption,"appear")===void 0||A(this.animateOption,"appear")&&A(this.animateOption,["appear","animation"])===void 0)},r}(Eo);const ze=px;var ia=nt;function Ei(i,r,t){var e=ia(i.getMatrix(),[["t",r,t]]);i.setMatrix(e)}function gx(i,r){var t=i.attr(),e=t.x,n=t.y,a=ia(i.getMatrix(),[["t",-e,-n],["r",r],["t",e,n]]);return a}function rs(i,r){var t=gx(i,r);i.setMatrix(t)}function dx(i,r){var t=i.getBBox(),e=(t.minX+t.maxX)/2,n=(t.minY+t.maxY)/2;i.applyToMatrix([e,n,1]);var a=ia(i.getMatrix(),[["t",-e,-n],["s",r,r],["t",e,n]]);i.setMatrix(a)}function Ge(i){return i.find(function(r){return r.get("type")==="text"})}function lo(i,r,t){t===void 0&&(t=[0,0,0,0]);var e=i.getChildren()[0];if(e){var n=e.clone();r!=null&&r.rotate&&rs(n,-r.rotate);var a=n.getCanvasBBox(),o=a.x,s=a.y,l=a.width,h=a.height;n.destroy();var u=t;return E(u)?u=[2,2,2,2]:W(u)&&(u=new Array(4).fill(u)),{x:o-u[3],y:s-u[0],width:l+u[1]+u[3],height:h+u[0]+u[2],rotation:(r==null?void 0:r.rotate)||0}}}function yx(i,r,t){t===void 0&&(t=0);var e=Math.max(0,Math.min(i.x+i.width+t,r.x+r.width+t)-Math.max(i.x-t,r.x-t)),n=Math.max(0,Math.min(i.y+i.height+t,r.y+r.height+t)-Math.max(i.y-t,r.y-t));return e*n}function mx(i,r){var t=i.getBBox();return Bn(r,function(e){var n=e.getBBox();return yx(t,n,2)>0})}function lf(i,r,t){var e=t.data,n=t.origin,a=t.animateCfg,o=t.coordinate,s=A(a,"update");i.set("data",e),i.set("origin",n),i.set("animateCfg",a),i.set("coordinate",o),i.set("visible",r.get("visible")),i.getChildren().forEach(function(l,h){var u=r.getChildByIndex(h);if(!u)i.removeChild(l),l.remove(!0);else{l.set("data",e),l.set("origin",n),l.set("animateCfg",a),l.set("coordinate",o);var c=Fc(l,u);s?Mr(l,s,{toAttrs:c,coordinate:o}):l.attr(c),u.isGroup()&&lf(l,u,t)}}),M(r.getChildren(),function(l,h){h>=i.getCount()&&(l.destroyed||i.add(l))})}var xx=function(){function i(r){this.shapesMap={},this.lastShapesMap={};var t=r.layout,e=r.container;this.layout=t,this.container=e}return i.prototype.render=function(r,t,e){var n=this;e===void 0&&(e=!1),this.shapesMap={};var a=this.container,o=this.createOffscreenGroup();if(r.length){for(var s=0,l=r;s<l.length;s++){var h=l[s];h&&this.renderLabel(h,o)}this.doLayout(r,t),this.renderLabelLine(r),this.renderLabelBackground(r),this.adjustLabel(r)}var u=this.lastShapesMap,c=this.shapesMap;M(c,function(f,v){if(f.destroyed)delete c[v];else{if(u[v]){var p=f.get("data"),g=f.get("origin"),d=f.get("coordinate"),y=f.get("animateCfg"),w=u[v];lf(w,c[v],{data:p,origin:g,animateCfg:y,coordinate:d}),n.shapesMap[v]=w}else{a.add(f);var x=A(f.get("animateCfg"),e?"enter":"appear");x&&Mr(f,x,{toAttrs:m({},f.attr()),coordinate:f.get("coordinate")})}delete u[v]}}),M(u,function(f){var v=A(f.get("animateCfg"),"leave");v?Mr(f,v,{toAttrs:null,coordinate:f.get("coordinate")}):f.remove(!0)}),this.lastShapesMap=c,o.destroy()},i.prototype.clear=function(){this.container.clear(),this.shapesMap={},this.lastShapesMap={}},i.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null,this.lastShapesMap=null},i.prototype.renderLabel=function(r,t){var e=r.id,n=r.elementId,a=r.data,o=r.mappingData,s=r.coordinate,l=r.animate,h=r.content,u={id:e,elementId:n,data:a,origin:m(m({},o),{data:o[$]}),coordinate:s},c=t.addGroup(m({name:"label",animateCfg:this.animate===!1||l===null||l===!1?!1:O({},this.animate,l)},u)),f;if(h.isGroup&&h.isGroup()||h.isShape&&h.isShape()){var v=h.getCanvasBBox(),p=v.width,g=v.height,d=A(r,"textAlign","left"),y=r.x,w=r.y-g/2;d==="center"?y=y-p/2:(d==="right"||d==="end")&&(y=y-p),Ei(h,y,w),f=h,c.add(h)}else{var x=A(r,["style","fill"]);f=c.addShape("text",m({attrs:m(m({x:r.x,y:r.y,textAlign:r.textAlign,textBaseline:A(r,"textBaseline","middle"),text:r.content},r.style),{fill:$v(x)?r.color:x})},u))}r.rotate&&rs(f,r.rotate),this.shapesMap[e]=c},i.prototype.doLayout=function(r,t){var e=this;if(this.layout){var n=I(this.layout)?this.layout:[this.layout];M(n,function(a){var o=hx(A(a,"type",""));if(o){var s=[],l=[];M(e.shapesMap,function(h,u){s.push(h),l.push(t[h.get("elementId")])}),o(r,s,l,e.region,a.cfg)}})}},i.prototype.renderLabelLine=function(r){var t=this;M(r,function(e){var n=A(e,"coordinate");if(!(!e||!n)){var a=n.getCenter(),o=n.getRadius();if(e.labelLine){var s=A(e,"labelLine",{}),l=e.id,h=s.path;if(!h){var u=it(a.x,a.y,o,e.angle);h=[["M",u.x,u.y],["L",e.x,e.y]]}var c=t.shapesMap[l];c.destroyed||c.addShape("path",{capture:!1,attrs:m({path:h,stroke:e.color?e.color:A(e,["style","fill"],"#000"),fill:null},s.style),id:l,origin:e.mappingData,data:e.data,coordinate:e.coordinate})}}})},i.prototype.renderLabelBackground=function(r){var t=this;M(r,function(e){var n=A(e,"coordinate"),a=A(e,"background");if(!(!a||!n)){var o=e.id,s=t.shapesMap[o];if(!s.destroyed){var l=s.getChildren()[0];if(l){var h=lo(s,e,a.padding),u=h.rotation,c=ct(h,["rotation"]),f=s.addShape("rect",{attrs:m(m({},c),a.style||{}),id:o,origin:e.mappingData,data:e.data,coordinate:e.coordinate});if(f.setZIndex(-1),u){var v=l.getMatrix();f.setMatrix(v)}}}}})},i.prototype.createOffscreenGroup=function(){var r=this.container,t=r.getGroupBase(),e=new t({});return e},i.prototype.adjustLabel=function(r){var t=this;M(r,function(e){if(e){var n=e.id,a=t.shapesMap[n];if(!a.destroyed){var o=a.findAll(function(s){return s.get("type")!=="path"});M(o,function(s){s&&(e.offsetX&&s.attr("x",s.attr("x")+e.offsetX),e.offsetY&&s.attr("y",s.attr("y")+e.offsetY))})}}})},i}();function ah(i){var r=0;return M(i,function(t){r+=t}),r/i.length}var wx=function(){function i(r){this.geometry=r}return i.prototype.getLabelItems=function(r){var t=this,e=[],n=this.getLabelCfgs(r);return M(r,function(a,o){var s=n[o];if(!s||E(a.x)||E(a.y)){e.push(null);return}var l=I(s.content)?s.content:[s.content];s.content=l;var h=l.length;M(l,function(u,c){if(E(u)||u===""){e.push(null);return}var f=m(m({},s),t.getLabelPoint(s,a,c));f.textAlign||(f.textAlign=t.getLabelAlign(f,c,h)),f.offset<=0&&(f.labelLine=null),e.push(f)})}),e},i.prototype.render=function(r,t){t===void 0&&(t=!1);var e=this.getLabelItems(r),n=this.getLabelsRenderer(),a=this.getGeometryShapes();n.render(e,a,t)},i.prototype.clear=function(){var r=this.labelsRenderer;r&&r.clear()},i.prototype.destroy=function(){var r=this.labelsRenderer;r&&r.destroy(),this.labelsRenderer=null},i.prototype.getCoordinate=function(){return this.geometry.coordinate},i.prototype.getDefaultLabelCfg=function(r,t){var e=this.geometry,n=e.type,a=e.theme;return n==="polygon"||n==="interval"&&t==="middle"||r<0&&!["line","point","path"].includes(n)?A(a,"innerLabels",{}):A(a,"labels",{})},i.prototype.getThemedLabelCfg=function(r){var t=this.geometry,e=this.getDefaultLabelCfg(),n=t.type,a=t.theme,o;return n==="polygon"||r.offset<0&&!["line","point","path"].includes(n)?o=O({},e,a.innerLabels,r):o=O({},e,a.labels,r),o},i.prototype.setLabelPosition=function(r,t,e,n){},i.prototype.getLabelOffset=function(r){var t=this.getCoordinate(),e=this.getOffsetVector(r);return t.isTransposed?e[0]:e[1]},i.prototype.getLabelOffsetPoint=function(r,t,e){var n=r.offset,a=this.getCoordinate(),o=a.isTransposed,s=o?"x":"y",l=o?1:-1,h={x:0,y:0};return t>0||e===1?h[s]=n*l:h[s]=n*l*-1,h},i.prototype.getLabelPoint=function(r,t,e){var n=this.getCoordinate(),a=r.content.length;function o(d,y,w){w===void 0&&(w=!1);var x=d;return I(x)&&(r.content.length===1?w?x=ah(x):x.length<=2?x=x[d.length-1]:x=ah(x):x=x[y]),x}var s={content:r.content[e],x:0,y:0,start:{x:0,y:0},color:"#fff"},l=I(t.shape)?t.shape[0]:t.shape,h=l==="funnel"||l==="pyramid";if(this.geometry.type==="polygon"){var u=qm(t.x,t.y);s.x=u[0],s.y=u[1]}else this.geometry.type==="interval"&&!h?(s.x=o(t.x,e,!0),s.y=o(t.y,e)):(s.x=o(t.x,e),s.y=o(t.y,e));if(h){var c=A(t,"nextPoints"),f=A(t,"points");if(c){var v=n.convert(f[1]),p=n.convert(c[1]);s.x=(v.x+p.x)/2,s.y=(v.y+p.y)/2}else if(l==="pyramid"){var v=n.convert(f[1]),p=n.convert(f[2]);s.x=(v.x+p.x)/2,s.y=(v.y+p.y)/2}}r.position&&this.setLabelPosition(s,t,e,r.position);var g=this.getLabelOffsetPoint(r,e,a);return s.start={x:s.x,y:s.y},s.x+=g.x,s.y+=g.y,s.color=t.color,s},i.prototype.getLabelAlign=function(r,t,e){var n="center",a=this.getCoordinate();if(a.isTransposed){var o=r.offset;o<0?n="right":o===0?n="center":n="left",e>1&&t===0&&(n==="right"?n="left":n==="left"&&(n="right"))}return n},i.prototype.getLabelId=function(r){var t=this.geometry,e=t.type,n=t.getXScale(),a=t.getYScale(),o=r[$],s=t.getElementId(r);return e==="line"||e==="area"?s+=" ".concat(o[n.field]):e==="path"&&(s+=" ".concat(o[n.field],"-").concat(o[a.field])),s},i.prototype.getLabelsRenderer=function(){var r=this.geometry,t=r.labelsContainer,e=r.labelOption,n=r.canvasRegion,a=r.animateOption,o=this.geometry.coordinate,s=this.labelsRenderer;return s||(s=new xx({container:t,layout:A(e,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=s),s.region=n,s.animate=a?ef("label",o):!1,s},i.prototype.getLabelCfgs=function(r){var t=this,e=this.geometry,n=e.labelOption,a=e.scales,o=e.coordinate,s=n,l=s.fields,h=s.callback,u=s.cfg,c=l.map(function(v){return a[v]}),f=[];return M(r,function(v,p){var g=v[$],d=t.getLabelText(g,c),y;if(h){var w=l.map(function(L){return g[L]});if(y=h.apply(void 0,w),E(y)){f.push(null);return}}var x=m(m({id:t.getLabelId(v),elementId:t.geometry.getElementId(v),data:g,mappingData:v,coordinate:o},u),y);R(x.position)&&(x.position=x.position(g,v,p));var C=t.getLabelOffset(x.offset||0),S=t.getDefaultLabelCfg(C,x.position);x=O({},S,x),x.offset=t.getLabelOffset(x.offset||0);var b=x.content;R(b)?x.content=b(g,v,p):vr(b)&&(x.content=d[0]),f.push(x)}),f},i.prototype.getLabelText=function(r,t){var e=[];return M(t,function(n){var a=r[n.field];I(a)?a=a.map(function(o){return n.getText(o)}):a=n.getText(a),E(a)||a===""?e.push(null):e.push(a)}),e},i.prototype.getOffsetVector=function(r){r===void 0&&(r=0);var t=this.getCoordinate(),e=0;return W(r)&&(e=r),t.isTransposed?t.applyMatrix(e,0):t.applyMatrix(0,e)},i.prototype.getGeometryShapes=function(){var r=this.geometry,t={};return M(r.elementsMap,function(e,n){t[n]=e.shape}),M(r.getOffscreenGroup().getChildren(),function(e){var n=r.getElementId(e.get("origin").mappingData);t[n]=e}),t},i}();const is=wx;function ho(i,r,t){if(!i)return t;var e;if(i.callback&&i.callback.length>1){var n=Array(i.callback.length-1).fill("");e=i.mapping.apply(i,vt([r],n,!1)).join("")}else e=i.mapping(r).join("");return e||t}var nr={hexagon:function(i,r,t){var e=t/2*Math.sqrt(3);return[["M",i,r-t],["L",i+e,r-t/2],["L",i+e,r+t/2],["L",i,r+t],["L",i-e,r+t/2],["L",i-e,r-t/2],["Z"]]},bowtie:function(i,r,t){var e=t-1.5;return[["M",i-t,r-e],["L",i+t,r+e],["L",i+t,r-e],["L",i-t,r+e],["Z"]]},cross:function(i,r,t){return[["M",i-t,r-t],["L",i+t,r+t],["M",i+t,r-t],["L",i-t,r+t]]},tick:function(i,r,t){return[["M",i-t/2,r-t],["L",i+t/2,r-t],["M",i,r-t],["L",i,r+t],["M",i-t/2,r+t],["L",i+t/2,r+t]]},plus:function(i,r,t){return[["M",i-t,r],["L",i+t,r],["M",i,r-t],["L",i,r+t]]},hyphen:function(i,r,t){return[["M",i-t,r],["L",i+t,r]]},line:function(i,r,t){return[["M",i,r-t],["L",i,r+t]]}},Cx=["line","cross","tick","plus","hyphen"];function Mx(i,r){return R(r)?r(i):O({},i,r)}function Sx(i,r){var t=i.symbol;if(H(t)&&Cx.indexOf(t)!==-1){var e=A(i,"style",{}),n=A(e,"lineWidth",1),a=e.stroke||e.fill||r;i.style=O({},i.style,{lineWidth:n,stroke:a,fill:null})}}function hf(i){var r=i.symbol;H(r)&&nr[r]&&(i.symbol=nr[r])}function Ea(i){return i.startsWith(k.LEFT)||i.startsWith(k.RIGHT)?"vertical":"horizontal"}function uf(i,r,t,e,n){var a=t.getScale(t.type);if(a.isCategory){var o=a.field,s=r.getAttribute("color"),l=r.getAttribute("shape"),h=i.getTheme().defaultColor,u=r.coordinate.isPolar;return a.getTicks().map(function(c,f){var v,p=c.text,g=c.value,d=p,y=a.invert(g),w=i.filterFieldData(o,[(v={},v[o]=y,v)]).length===0;M(i.views,function(L){var B;L.filterFieldData(o,[(B={},B[o]=y,B)]).length||(w=!0)});var x=ho(s,y,h),C=ho(l,y,"point"),S=r.getShapeMarker(C,{color:x,isInPolar:u}),b=n;return R(b)&&(b=b(d,f,m({name:d,value:y},O({},e,S)))),S=O({},e,S,Bt(m({},b),["style"])),Sx(S,x),b&&b.style&&(S.style=Mx(S.style,b.style)),hf(S),{id:y,name:d,value:y,marker:S,unchecked:w}})}return[]}function Ax(i,r,t){return t.map(function(e,n){var a=r;R(a)&&(a=a(e.name,n,O({},i,e)));var o=R(e.marker)?e.marker(e.name,n,O({},i,e)):e.marker,s=O({},i,a,o);return hf(s),e.marker=s,e})}function oh(i,r){var t=A(i,["components","legend"],{});return O({},A(t,["common"],{}),O({},A(t,[r],{})))}function Ba(i){return i?!1:i==null||isNaN(i)}function sh(i){if(I(i))return Ba(i[1].y);var r=i.y;return I(r)?Ba(r[0]):Ba(r)}function na(i,r,t){if(r===void 0&&(r=!1),t===void 0&&(t=!0),!i.length||i.length===1&&!t)return[];if(r){for(var e=[],n=0,a=i.length;n<a;n++){var o=i[n];sh(o)||e.push(o)}return[e]}for(var s=[],l=[],n=0,a=i.length;n<a;n++){var o=i[n];sh(o)?l.length&&(l.length===1&&!t||s.push(l),l=[]):l.push(o)}return l.length&&s.push(l),s}function cf(i){for(var r=[],t=0;t<i.length;t++){var e=i[t];if(e){var n=t===0?"M":"L";r.push([n,e.x,e.y])}}var a=i[0];return a&&(r.push(["L",a.x,a.y]),r.push(["z"])),r}function ff(i){for(var r=i.length/2,t=[],e=[],n=0;n<i.length;n++)n<r?t.push(i[n]):e.push(i[n]);var a=Mn(t,!1),o=Mn(e,!1);e.length&&a.push(["L",e[0].x,e[0].y]),o.shift();var s=a.concat(o);return t.length&&s.push(["L",t[0].x,t[0].y]),s.push(["z"]),s}function et(i,r,t,e){e===void 0&&(e="");var n=i.style,a=n===void 0?{}:n,o=i.defaultStyle,s=i.color,l=i.size,h=m(m({},o),a);return s&&(r&&(a.stroke||(h.stroke=s)),t&&(a.fill||(h.fill=s))),e&&E(a[e])&&!E(l)&&(h[e]=l),h}function vf(i){return O({},{fill:"#CCD6EC",fillOpacity:.3},A(i,["background","style"]))}function ns(i){var r=i.x,t=I(i.y)?i.y:[i.y];return t.map(function(e,n){return{x:I(r)?r[n]:r,y:e}})}var bx={line:function(i,r,t){return[["M",i-t,r],["L",i+t,r]]},dot:function(i,r,t){return[["M",i-t,r],["L",i+t,r]]},dash:function(i,r,t){return[["M",i-t,r],["L",i+t,r]]},smooth:function(i,r,t){return[["M",i-t,r],["A",t/2,t/2,0,1,1,i,r],["A",t/2,t/2,0,1,0,i+t,r]]},hv:function(i,r,t){return[["M",i-t-1,r-2.5],["L",i,r-2.5],["L",i,r+2.5],["L",i+t+1,r+2.5]]},vh:function(i,r,t){return[["M",i-t-1,r+2.5],["L",i,r+2.5],["L",i,r-2.5],["L",i+t+1,r-2.5]]},hvh:function(i,r,t){return[["M",i-(t+1),r+2.5],["L",i-t/2,r+2.5],["L",i-t/2,r-2.5],["L",i+t/2,r-2.5],["L",i+t/2,r+2.5],["L",i+t+1,r+2.5]]},vhv:function(i,r){return[["M",i-5,r+2.5],["L",i-5,r],["L",i,r],["L",i,r-3],["L",i,r+3],["L",i+6.5,r+3]]}};function pf(i,r){var t=i.color;return{symbol:bx[r],style:{lineWidth:2,r:6,stroke:t}}}function Tx(i,r,t){for(var e=i.isStack,n=i.connectNulls,a=i.isInCircle,o=i.showSinglePoint,s=et(i,!0,!1,"lineWidth"),l=na(i.points,n,o),h=[],u=0,c=l.length;u<c;u++){var f=l[u];h=h.concat(gf(f,a,e,r,t,s))}return s.path=h,s}function uo(i,r,t,e,n){if(i.length===1)return[["M",i[0].x,i[0].y-n.lineWidth/2],["L",i[0].x,i[0].y],["L",i[0].x,i[0].y+n.lineWidth/2]];var a;return t?(r&&i.length&&i.push({x:i[0].x,y:i[0].y}),a=Mn(i,!1,e)):(a=Li(i,!1),r&&a.push(["Z"])),a}function Lx(i,r,t,e,n,a){var o=[],s=[];M(i,function(u){var c=ns(u);o.push(c[1]),s.push(c[0])});var l=uo(o,r,e,n,a),h=uo(s,r,e,n,a);return t?l:l.concat(h)}function gf(i,r,t,e,n,a){if(i.length){var o=i[0];return I(o.y)?Lx(i,r,t,e,n,a):uo(i,r,e,n,a)}return[]}Xe("line",{defaultShapeType:"line"});M(["line","dot","dash","smooth"],function(i){j("line",i,{draw:function(r,t){var e=i==="smooth",n;if(e){var a=this.coordinate,o=a.start,s=a.end;n=[[o.x,s.y],[s.x,o.y]]}var l=Tx(r,e,n),h=t.addShape({type:"path",attrs:l,name:"line",capture:!e});return h},getMarker:function(r){return pf(r,i)}})});var EM="4.1.49",BM={getLegendItems:uf,translate:Ei,rotate:rs,zoom:dx,transform:ia,getAngle:gi,getSectorPath:Fe,polarToCartesian:it,getDelegationObject:Tr,getTooltipItems:Qo,getMappingValue:ho,getPath:gf,getPathPoints:na},_e={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},_={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},qt=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],Ex=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],Bx=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],Ix=function(i){i===void 0&&(i={});var r=i.paletteQualitative10,t=r===void 0?qt:r,e=i.paletteQualitative20,n=e===void 0?Ex:e,a=i.brandColor,o=a===void 0?t[0]:a,s={backgroundColor:"#141414",brandColor:o,subColor:"rgba(255,255,255,0.05)",paletteQualitative10:t,paletteQualitative20:n,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:Bx,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:_[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:_[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:_[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:_[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:_[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:_[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:_[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:qt[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:_[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:_[45],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:_[45],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:_[65],legendPageNavigatorTextFontSize:12,sliderRailFillColor:_[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:_[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:_e[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:_e[25],annotationArcBorderColor:_[15],annotationArcBorder:1,annotationLineBorderColor:_[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:_[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:_[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:_[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:_[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:_[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:_e[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:_[65],overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:_e[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:_[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#fff",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(255,255,255,0.65)",scrollbarThumbFillColor:"rgba(0,0,0,0.35)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.45)",pointFillColor:qt[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:_e[100],pointBorderOpacity:1,pointActiveBorderColor:_[100],pointSelectedBorder:2,pointSelectedBorderColor:_[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:qt[0],hollowPointBorderOpacity:.95,hollowPointFillColor:_e[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:_[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:_[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:qt[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:qt[0],areaFillOpacity:.25,areaActiveFillColor:qt[0],areaActiveFillOpacity:.5,areaSelectedFillColor:qt[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:qt[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:_[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:_[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:qt[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:_[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:_[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:qt[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:_e[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:_[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:_[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return m(m({},s),i)},kx=Ix();function Px(){return window?window.devicePixelRatio:1}function df(i,r,t,e){var n=i-t,a=r-e;return Math.sqrt(n*n+a*a)}function qe(i,r,t,e,n,a){return n>=i&&n<=i+t&&a>=r&&a<=r+e}function xi(i,r){return!(r.minX>i.maxX||r.maxX<i.minX||r.minY>i.maxY||r.maxY<i.minY)}function Fx(i,r){return!i||!r?i||r:{minX:Math.min(i.minX,r.minX),minY:Math.min(i.minY,r.minY),maxX:Math.max(i.maxX,r.maxX),maxY:Math.max(i.maxY,r.maxY)}}function lh(i,r){return i[0]===r[0]&&i[1]===r[1]}var Ox=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,Dx=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,Rx=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,yf=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function mf(i,r){var t=i.match(yf);M(t,function(e){var n=e.split(":");r.addColorStop(n[0],n[1])})}function Yx(i,r,t){var e=Ox.exec(t),n=parseFloat(e[1])%360*(Math.PI/180),a=e[2],o=r.getBBox(),s,l;n>=0&&n<1/2*Math.PI?(s={x:o.minX,y:o.minY},l={x:o.maxX,y:o.maxY}):1/2*Math.PI<=n&&n<Math.PI?(s={x:o.maxX,y:o.minY},l={x:o.minX,y:o.maxY}):Math.PI<=n&&n<3/2*Math.PI?(s={x:o.maxX,y:o.maxY},l={x:o.minX,y:o.minY}):(s={x:o.minX,y:o.maxY},l={x:o.maxX,y:o.minY});var h=Math.tan(n),u=h*h,c=(l.x-s.x+h*(l.y-s.y))/(u+1)+s.x,f=h*(l.x-s.x+h*(l.y-s.y))/(u+1)+s.y,v=i.createLinearGradient(s.x,s.y,c,f);return mf(a,v),v}function Gx(i,r,t){var e=Dx.exec(t),n=parseFloat(e[1]),a=parseFloat(e[2]),o=parseFloat(e[3]),s=e[4];if(o===0){var l=s.match(yf);return l[l.length-1].split(":")[1]}var h=r.getBBox(),u=h.maxX-h.minX,c=h.maxY-h.minY,f=Math.sqrt(u*u+c*c)/2,v=i.createRadialGradient(h.minX+u*n,h.minY+c*a,0,h.minX+u/2,h.minY+c/2,o*f);return mf(s,v),v}function Hx(i,r,t){if(r.get("patternSource")&&r.get("patternSource")===t)return r.get("pattern");var e,n,a=Rx.exec(t),o=a[1],s=a[2];function l(){e=i.createPattern(n,o),r.set("pattern",e),r.set("patternSource",t)}switch(o){case"a":o="repeat";break;case"x":o="repeat-x";break;case"y":o="repeat-y";break;case"n":o="no-repeat";break;default:o="no-repeat"}return n=new Image,s.match(/^data:/i)||(n.crossOrigin="Anonymous"),n.src=s,n.complete?l():(n.onload=l,n.src=n.src),e}function Vx(i,r,t){var e=r.getBBox();if(isNaN(e.x)||isNaN(e.y)||isNaN(e.width)||isNaN(e.height))return t;if(H(t)){if(t[1]==="("||t[2]==="("){if(t[0]==="l")return Yx(i,r,t);if(t[0]==="r")return Gx(i,r,t);if(t[0]==="p")return Hx(i,r,t)}return t}if(t instanceof CanvasPattern)return t}function Xx(i){var r=0,t=0,e=0,n=0;return I(i)?i.length===1?r=t=e=n=i[0]:i.length===2?(r=e=i[0],t=n=i[1]):i.length===3?(r=i[0],t=n=i[1],e=i[2]):(r=i[0],t=i[1],e=i[2],n=i[3]):r=t=e=n=i,[r,t,e,n]}function $i(i){return Math.sqrt(i[0]*i[0]+i[1]*i[1])}function co(i,r){return $i(i)*$i(r)?(i[0]*r[0]+i[1]*r[1])/($i(i)*$i(r)):1}function hh(i,r){return(i[0]*r[1]<i[1]*r[0]?-1:1)*Math.acos(co(i,r))}function An(i,r){var t=r[1],e=r[2],n=So(Ao(r[3]),Math.PI*2),a=r[4],o=r[5],s=i[0],l=i[1],h=r[6],u=r[7],c=Math.cos(n)*(s-h)/2+Math.sin(n)*(l-u)/2,f=-1*Math.sin(n)*(s-h)/2+Math.cos(n)*(l-u)/2,v=c*c/(t*t)+f*f/(e*e);v>1&&(t*=Math.sqrt(v),e*=Math.sqrt(v));var p=t*t*(f*f)+e*e*(c*c),g=p?Math.sqrt((t*t*(e*e)-p)/p):1;a===o&&(g*=-1),isNaN(g)&&(g=0);var d=e?g*t*f/e:0,y=t?g*-e*c/t:0,w=(s+h)/2+Math.cos(n)*d-Math.sin(n)*y,x=(l+u)/2+Math.sin(n)*d+Math.cos(n)*y,C=[(c-d)/t,(f-y)/e],S=[(-1*c-d)/t,(-1*f-y)/e],b=hh([1,0],C),L=hh(C,S);return co(C,S)<=-1&&(L=Math.PI),co(C,S)>=1&&(L=0),o===0&&L>0&&(L=L-2*Math.PI),o===1&&L<0&&(L=L+2*Math.PI),{cx:w,cy:x,rx:lh(i,[h,u])?0:t,ry:lh(i,[h,u])?0:e,startAngle:b,endAngle:b+L,xRotation:n,arcFlag:a,sweepFlag:o}}var bn=Math.sin,Tn=Math.cos,as=Math.atan2,Ui=Math.PI;function xf(i,r,t,e,n,a,o){var s=r.stroke,l=r.lineWidth,h=t-n,u=e-a,c=as(u,h),f=new us({type:"path",canvas:i.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*Tn(Ui/6)+","+10*bn(Ui/6)+" L0,0 L"+10*Tn(Ui/6)+",-"+10*bn(Ui/6),stroke:s,lineWidth:l}});f.translate(n,a),f.rotateAtPoint(n,a,c),i.set(o?"startArrowShape":"endArrowShape",f)}function wf(i,r,t,e,n,a,o){var s=r.startArrow,l=r.endArrow,h=r.stroke,u=r.lineWidth,c=o?s:l,f=c.d,v=c.fill,p=c.stroke,g=c.lineWidth,d=ct(c,["d","fill","stroke","lineWidth"]),y=t-n,w=e-a,x=as(w,y);f&&(n=n-Tn(x)*f,a=a-bn(x)*f);var C=new us({type:"path",canvas:i.get("canvas"),isArrowShape:!0,attrs:m(m({},d),{stroke:p||h,lineWidth:g||u,fill:v})});C.translate(n,a),C.rotateAtPoint(n,a,x),i.set(o?"startArrowShape":"endArrowShape",C)}function tr(i,r,t,e,n){var a=as(e-r,t-i);return{dx:Tn(a)*n,dy:bn(a)*n}}function os(i,r,t,e,n,a){typeof r.startArrow=="object"?wf(i,r,t,e,n,a,!0):r.startArrow?xf(i,r,t,e,n,a,!0):i.set("startArrowShape",null)}function ss(i,r,t,e,n,a){typeof r.endArrow=="object"?wf(i,r,t,e,n,a,!1):r.endArrow?xf(i,r,t,e,n,a,!1):i.set("startArrowShape",null)}var uh={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function Br(i,r){var t=r.attr();for(var e in t){var n=t[e],a=uh[e]?uh[e]:e;a==="matrix"&&n?i.transform(n[0],n[1],n[3],n[4],n[6],n[7]):a==="lineDash"&&i.setLineDash?I(n)&&i.setLineDash(n):(a==="strokeStyle"||a==="fillStyle"?n=Vx(i,r,n):a==="globalAlpha"&&(n=n*i.globalAlpha),i[a]=n)}}function fo(i,r,t){for(var e=0;e<r.length;e++){var n=r[e];n.cfg.visible?n.draw(i,t):n.skipDraw()}}function zx(i,r,t){var e=i.get("refreshElements");M(e,function(n){if(n!==i)for(var a=n.cfg.parent;a&&a!==i&&!a.cfg.refresh;)a.cfg.refresh=!0,a=a.cfg.parent}),e[0]===i?ls(r):vo(r,t)}function vo(i,r){for(var t=0;t<i.length;t++){var e=i[t];if(e.cfg.visible)if(e.cfg.hasChanged)e.cfg.refresh=!0,e.isGroup()&&ls(e.cfg.children);else if(e.cfg.refresh)e.isGroup()&&vo(e.cfg.children,r);else{var n=Nx(e,r);e.cfg.refresh=n,n&&e.isGroup()&&vo(e.cfg.children,r)}}}function Cf(i){for(var r=0;r<i.length;r++){var t=i[r];t.cfg.hasChanged=!1,t.isGroup()&&!t.destroyed&&Cf(t.cfg.children)}}function ls(i,r){for(var t=0;t<i.length;t++){var e=i[t];e.cfg.refresh=!0,e.isGroup()&&ls(e.get("children"))}}function Nx(i,r){var t=i.cfg.cacheCanvasBBox,e=i.cfg.isInView&&t&&xi(t,r);return e}function Mf(i,r,t,e){var n=t.path,a=t.startArrow,o=t.endArrow;if(n){var s=[0,0],l=[0,0],h={dx:0,dy:0};r.beginPath();for(var u=0;u<n.length;u++){var c=n[u],f=c[0];if(u===0&&a&&a.d){var v=i.getStartTangent();h=tr(v[0][0],v[0][1],v[1][0],v[1][1],a.d)}else if(u===n.length-2&&n[u+1][0]==="Z"&&o&&o.d){var p=n[u+1];if(p[0]==="Z"){var v=i.getEndTangent();h=tr(v[0][0],v[0][1],v[1][0],v[1][1],o.d)}}else if(u===n.length-1&&o&&o.d&&n[0]!=="Z"){var v=i.getEndTangent();h=tr(v[0][0],v[0][1],v[1][0],v[1][1],o.d)}var g=h.dx,d=h.dy;switch(f){case"M":r.moveTo(c[1]-g,c[2]-d),l=[c[1],c[2]];break;case"L":r.lineTo(c[1]-g,c[2]-d);break;case"Q":r.quadraticCurveTo(c[1],c[2],c[3]-g,c[4]-d);break;case"C":r.bezierCurveTo(c[1],c[2],c[3],c[4],c[5]-g,c[6]-d);break;case"A":{var y=void 0;e?(y=e[u],y||(y=An(s,c),e[u]=y)):y=An(s,c);var w=y.cx,x=y.cy,C=y.rx,S=y.ry,b=y.startAngle,L=y.endAngle,B=y.xRotation,P=y.sweepFlag;if(r.ellipse)r.ellipse(w,x,C,S,B,b,L,1-P);else{var F=C>S?C:S,D=C>S?1:C/S,Y=C>S?S/C:1;r.translate(w,x),r.rotate(B),r.scale(D,Y),r.arc(0,0,F,b,L,1-P),r.scale(1/D,1/Y),r.rotate(-B),r.translate(-w,-x)}break}case"Z":r.closePath();break}if(f==="Z")s=l;else{var z=c.length;s=[c[z-2],c[z-1]]}}}}function Sf(i,r){var t=i.get("canvas");t&&(r==="remove"&&(i._cacheCanvasBBox=i.get("cacheCanvasBBox")),i.get("hasChanged")||(i.set("hasChanged",!0),i.cfg.parent&&i.cfg.parent.get("hasChanged")||(t.refreshElement(i,r,t),t.get("autoDraw")&&t.draw())))}function Wx(i){var r;if(i.destroyed)r=i._cacheCanvasBBox;else{var t=i.get("cacheCanvasBBox"),e=t&&!!(t.width&&t.height),n=i.getCanvasBBox(),a=n&&!!(n.width&&n.height);e&&a?r=Fx(t,n):e?r=t:a&&(r=n)}return r}function _x(i){if(!i.length)return null;var r=[],t=[],e=[],n=[];return M(i,function(a){var o=Wx(a);o&&(r.push(o.minX),t.push(o.minY),e.push(o.maxX),n.push(o.maxY))}),{minX:oe(r),minY:oe(t),maxX:Qt(e),maxY:Qt(n)}}function $x(i,r){return!i||!r||!xi(i,r)?null:{minX:Math.max(i.minX,r.minX),minY:Math.max(i.minY,r.minY),maxX:Math.min(i.maxX,r.maxX),maxY:Math.min(i.maxY,r.maxY)}}var hs=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.onCanvasChange=function(t){Sf(this,t)},r.prototype.getShapeBase=function(){return Ln},r.prototype.getGroupBase=function(){return r},r.prototype._applyClip=function(t,e){e&&(t.save(),Br(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},r.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],n=[];M(t,function(f){var v=f.cfg.cacheCanvasBBox;v&&f.cfg.isInView&&(e.push(v.minX,v.maxX),n.push(v.minY,v.maxY))});var a=null;if(e.length){var o=oe(e),s=Qt(e),l=oe(n),h=Qt(n);a={minX:o,minY:l,x:o,y:l,maxX:s,maxY:h,width:s-o,height:h-l};var u=this.cfg.canvas;if(u){var c=u.getViewRange();this.set("isInView",xi(a,c))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",a)},r.prototype.draw=function(t,e){var n=this.cfg.children,a=e?this.cfg.refresh:!0;n.length&&a&&(t.save(),Br(t,this),this._applyClip(t,this.getClip()),fo(t,n,e),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},r.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},r}(Rn),Jt=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultAttrs=function(){var t=i.prototype.getDefaultAttrs.call(this);return m(m({},t),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},r.prototype.getShapeBase=function(){return Ln},r.prototype.getGroupBase=function(){return hs},r.prototype.onCanvasChange=function(t){Sf(this,t)},r.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=Gn(t),a=n(this),o=e/2,s=a.x-o,l=a.y-o,h=a.x+a.width+o,u=a.y+a.height+o;return{x:s,minX:s,y:l,minY:l,width:a.width+e,height:a.height+e,maxX:h,maxY:u}},r.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},r.prototype.isStroke=function(){return!!this.attrs.stroke},r.prototype._applyClip=function(t,e){e&&(t.save(),Br(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},r.prototype.draw=function(t,e){var n=this.cfg.clipShape;if(e){if(this.cfg.refresh===!1){this.set("hasChanged",!1);return}var a=this.getCanvasBBox();if(!xi(e,a)){this.set("hasChanged",!1),this.cfg.isInView&&this._afterDraw();return}}t.save(),Br(t,this),this._applyClip(t,n),this.drawPath(t),t.restore(),this._afterDraw()},r.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},r.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var e=this.getCanvasBBox(),n=xi(e,t);this.set("isInView",n),n?this.set("cacheCanvasBBox",e):this.set("cacheCanvasBBox",null)}},r.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},r.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},r.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},r.prototype.fill=function(t){t.fill()},r.prototype.stroke=function(t){t.stroke()},r.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,a=e.opacity,o=e.strokeOpacity,s=e.fillOpacity;this.isFill()&&(!E(s)&&s!==1?(t.globalAlpha=s,this.fill(t),t.globalAlpha=a):this.fill(t)),this.isStroke()&&n>0&&(!E(o)&&o!==1&&(t.globalAlpha=o),this.stroke(t)),this.afterDrawPath(t)},r.prototype.createPath=function(t){},r.prototype.afterDrawPath=function(t){},r.prototype.isInShape=function(t,e){var n=this.isStroke(),a=this.isFill(),o=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,a,o)},r.prototype.isInStrokeOrPath=function(t,e,n,a,o){return!1},r.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},r}(Yn),Ux=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultAttrs=function(){var t=i.prototype.getDefaultAttrs.call(this);return m(m({},t),{x:0,y:0,r:0})},r.prototype.isInStrokeOrPath=function(t,e,n,a,o){var s=this.attr(),l=s.x,h=s.y,u=s.r,c=o/2,f=df(l,h,t,e);return a&&n?f<=u+c:a?f<=u:n?f>=u-c&&f<=u+c:!1},r.prototype.createPath=function(t){var e=this.attr(),n=e.x,a=e.y,o=e.r;t.beginPath(),t.arc(n,a,o,0,Math.PI*2,!1),t.closePath()},r}(Jt);function ji(i,r,t,e){return i/(t*t)+r/(e*e)}var jx=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultAttrs=function(){var t=i.prototype.getDefaultAttrs.call(this);return m(m({},t),{x:0,y:0,rx:0,ry:0})},r.prototype.isInStrokeOrPath=function(t,e,n,a,o){var s=this.attr(),l=o/2,h=s.x,u=s.y,c=s.rx,f=s.ry,v=(t-h)*(t-h),p=(e-u)*(e-u);return a&&n?ji(v,p,c+l,f+l)<=1:a?ji(v,p,c,f)<=1:n?ji(v,p,c-l,f-l)>=1&&ji(v,p,c+l,f+l)<=1:!1},r.prototype.createPath=function(t){var e=this.attr(),n=e.x,a=e.y,o=e.rx,s=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,a,o,s,0,0,Math.PI*2,!1);else{var l=o>s?o:s,h=o>s?1:o/s,u=o>s?s/o:1;t.save(),t.translate(n,a),t.scale(h,u),t.arc(0,0,l,0,Math.PI*2),t.restore(),t.closePath()}},r}(Jt);function ch(i){return i instanceof HTMLElement&&H(i.nodeName)&&i.nodeName.toUpperCase()==="CANVAS"}var qx=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultAttrs=function(){var t=i.prototype.getDefaultAttrs.call(this);return m(m({},t),{x:0,y:0,width:0,height:0})},r.prototype.initAttrs=function(t){this._setImage(t.img)},r.prototype.isStroke=function(){return!1},r.prototype.isOnlyHitBox=function(){return!0},r.prototype._afterLoading=function(){if(this.get("toDraw")===!0){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},r.prototype._setImage=function(t){var e=this,n=this.attrs;if(H(t)){var a=new Image;a.onload=function(){if(e.destroyed)return!1;e.attr("img",a),e.set("loading",!1),e._afterLoading();var o=e.get("callback");o&&o.call(e)},a.crossOrigin="Anonymous",a.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):ch(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},r.prototype.onAttrChange=function(t,e,n){i.prototype.onAttrChange.call(this,t,e,n),t==="img"&&this._setImage(e)},r.prototype.createPath=function(t){if(this.get("loading")){this.set("toDraw",!0),this.set("context",t);return}var e=this.attr(),n=e.x,a=e.y,o=e.width,s=e.height,l=e.sx,h=e.sy,u=e.swidth,c=e.sheight,f=e.img;(f instanceof Image||ch(f))&&(!E(l)&&!E(h)&&!E(u)&&!E(c)?t.drawImage(f,l,h,u,c,n,a,o,s):t.drawImage(f,n,a,o,s))},r}(Jt);function Ie(i,r,t,e,n,a,o){var s=Math.min(i,t),l=Math.max(i,t),h=Math.min(r,e),u=Math.max(r,e),c=n/2;return a>=s-c&&a<=l+c&&o>=h-c&&o<=u+c?ft.pointToLine(i,r,t,e,a,o)<=n/2:!1}var Zx=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultAttrs=function(){var t=i.prototype.getDefaultAttrs.call(this);return m(m({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},r.prototype.initAttrs=function(t){this.setArrow()},r.prototype.onAttrChange=function(t,e,n){i.prototype.onAttrChange.call(this,t,e,n),this.setArrow()},r.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,a=t.x2,o=t.y2,s=t.startArrow,l=t.endArrow;s&&os(this,t,a,o,e,n),l&&ss(this,t,e,n,a,o)},r.prototype.isInStrokeOrPath=function(t,e,n,a,o){if(!n||!o)return!1;var s=this.attr(),l=s.x1,h=s.y1,u=s.x2,c=s.y2;return Ie(l,h,u,c,o,t,e)},r.prototype.createPath=function(t){var e=this.attr(),n=e.x1,a=e.y1,o=e.x2,s=e.y2,l=e.startArrow,h=e.endArrow,u={dx:0,dy:0},c={dx:0,dy:0};l&&l.d&&(u=tr(n,a,o,s,e.startArrow.d)),h&&h.d&&(c=tr(n,a,o,s,e.endArrow.d)),t.beginPath(),t.moveTo(n+u.dx,a+u.dy),t.lineTo(o-c.dx,s-c.dy)},r.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},r.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,a=t.x2,o=t.y2;return ft.length(e,n,a,o)},r.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,a=e.y1,o=e.x2,s=e.y2;return ft.pointAt(n,a,o,s,t)},r}(Jt),Qx={circle:function(i,r,t){return[["M",i-t,r],["A",t,t,0,1,0,i+t,r],["A",t,t,0,1,0,i-t,r]]},square:function(i,r,t){return[["M",i-t,r-t],["L",i+t,r-t],["L",i+t,r+t],["L",i-t,r+t],["Z"]]},diamond:function(i,r,t){return[["M",i-t,r],["L",i,r-t],["L",i+t,r],["L",i,r+t],["Z"]]},triangle:function(i,r,t){var e=t*Math.sin(.3333333333333333*Math.PI);return[["M",i-t,r+e],["L",i,r-e],["L",i+t,r+e],["Z"]]},"triangle-down":function(i,r,t){var e=t*Math.sin(.3333333333333333*Math.PI);return[["M",i-t,r-e],["L",i+t,r-e],["L",i,r+e],["Z"]]}},Kx=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.initAttrs=function(t){this._resetParamsCache()},r.prototype._resetParamsCache=function(){this.set("paramsCache",{})},r.prototype.onAttrChange=function(t,e,n){i.prototype.onAttrChange.call(this,t,e,n),["symbol","x","y","r","radius"].indexOf(t)!==-1&&this._resetParamsCache()},r.prototype.isOnlyHitBox=function(){return!0},r.prototype._getR=function(t){return E(t.r)?t.radius:t.r},r.prototype._getPath=function(){var t=this.attr(),e=t.x,n=t.y,a=t.symbol||"circle",o=this._getR(t),s,l;if(R(a))s=a,l=s(e,n,o),l=Yu(l);else{if(s=r.Symbols[a],!s)return console.warn(a+" marker is not supported."),null;l=s(e,n,o)}return l},r.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");Mf(this,t,{path:e},n)},r.Symbols=Qx,r}(Jt);function Af(i,r,t){var e=Vn();return i.createPath(e),e.isPointInPath(r,t)}var Jx=1e-6;function Ia(i){return Math.abs(i)<Jx?0:i<0?-1:1}function t1(i,r,t){return(t[0]-i[0])*(r[1]-i[1])===(r[0]-i[0])*(t[1]-i[1])&&Math.min(i[0],r[0])<=t[0]&&t[0]<=Math.max(i[0],r[0])&&Math.min(i[1],r[1])<=t[1]&&t[1]<=Math.max(i[1],r[1])}function bf(i,r,t){var e=!1,n=i.length;if(n<=2)return!1;for(var a=0;a<n;a++){var o=i[a],s=i[(a+1)%n];if(t1(o,s,[r,t]))return!0;Ia(o[1]-t)>0!=Ia(s[1]-t)>0&&Ia(r-(t-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(e=!e)}return e}function qr(i,r,t,e,n,a,o,s){var l=(Math.atan2(s-r,o-i)+Math.PI*2)%(Math.PI*2);if(l<e||l>n)return!1;var h={x:i+t*Math.cos(l),y:r+t*Math.sin(l)};return df(h.x,h.y,o,s)<=a/2}var e1=nt;function r1(i){for(var r=!1,t=i.length,e=0;e<t;e++){var n=i[e],a=n[0];if(a==="C"||a==="A"||a==="Q"){r=!0;break}}return r}function i1(i,r,t,e,n){for(var a=!1,o=r/2,s=0;s<i.length;s++){var l=i[s],h=l.currentPoint,u=l.params,c=l.prePoint,f=l.box;if(!(f&&!qe(f.x-o,f.y-o,f.width+r,f.height+r,t,e))){switch(l.command){case"L":case"Z":a=Ie(c[0],c[1],h[0],h[1],r,t,e);break;case"Q":var v=Pu.pointDistance(c[0],c[1],u[1],u[2],u[3],u[4],t,e);a=v<=r/2;break;case"C":var p=Qr.pointDistance(c[0],c[1],u[1],u[2],u[3],u[4],u[5],u[6],t,e,n);a=p<=r/2;break;case"A":var g=l.arcParams,d=g.cx,y=g.cy,w=g.rx,x=g.ry,C=g.startAngle,S=g.endAngle,b=g.xRotation,L=[t,e,1],B=w>x?w:x,P=w>x?1:w/x,F=w>x?x/w:1,D=e1(null,[["t",-d,-y],["r",-b],["s",1/P,1/F]]);hi(L,L,D),a=qr(0,0,B,C,S,r,L[0],L[1]);break}if(a)break}}return a}function n1(i){for(var r=i.length,t=[],e=[],n=[],a=0;a<r;a++){var o=i[a],s=o[0];s==="M"?(n.length&&(e.push(n),n=[]),n.push([o[1],o[2]])):s==="Z"?n.length&&(t.push(n),n=[]):n.push([o[1],o[2]])}return n.length>0&&e.push(n),{polygons:t,polylines:e}}const qi=m({hasArc:r1,extractPolygons:n1,isPointInStroke:i1},Bo);function fh(i,r,t){for(var e=!1,n=0;n<i.length;n++){var a=i[n];if(e=bf(a,r,t),e)break}return e}var us=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultAttrs=function(){var t=i.prototype.getDefaultAttrs.call(this);return m(m({},t),{startArrow:!1,endArrow:!1})},r.prototype.initAttrs=function(t){this._setPathArr(t.path),this.setArrow()},r.prototype.onAttrChange=function(t,e,n){i.prototype.onAttrChange.call(this,t,e,n),t==="path"&&this._setPathArr(e),this.setArrow()},r.prototype._setPathArr=function(t){this.attrs.path=Yu(t);var e=qi.hasArc(t);this.set("hasArc",e),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},r.prototype.getSegments=function(){var t=this.get("segements");return t||(t=Gu(this.attr("path")),this.set("segments",t)),t},r.prototype.setArrow=function(){var t=this.attr(),e=t.startArrow,n=t.endArrow;if(e){var a=this.getStartTangent();os(this,t,a[0][0],a[0][1],a[1][0],a[1][1])}if(n){var a=this.getEndTangent();ss(this,t,a[0][0],a[0][1],a[1][0],a[1][1])}},r.prototype.isInStrokeOrPath=function(t,e,n,a,o){var s=this.getSegments(),l=this.get("hasArc"),h=!1;if(n){var u=this.getTotalLength();h=qi.isPointInStroke(s,o,t,e,u)}if(!h&&a)if(l)h=Af(this,t,e);else{var c=this.attr("path"),f=qi.extractPolygons(c);h=fh(f.polygons,t,e)||fh(f.polylines,t,e)}return h},r.prototype.createPath=function(t){var e=this.attr(),n=this.get("paramsCache");Mf(this,t,e,n)},r.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},r.prototype.getTotalLength=function(){var t=this.get("totalLength");return E(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},r.prototype.getPoint=function(t){var e=this.get("tCache");e||(this._calculateCurve(),this._setTcache(),e=this.get("tCache"));var n,a,o=this.get("curve");if(!e||e.length===0)return o?{x:o[0][1],y:o[0][2]}:null;M(e,function(u,c){t>=u[0]&&t<=u[1]&&(n=(t-u[0])/(u[1]-u[0]),a=c)});var s=o[a];if(E(s)||E(a))return null;var l=s.length,h=o[a+1];return Qr.pointAt(s[l-2],s[l-1],h[1],h[2],h[3],h[4],h[5],h[6],n)},r.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",qi.pathToCurve(t))},r.prototype._setTcache=function(){var t=0,e=0,n=[],a,o,s,l,h=this.get("curve");if(h){if(M(h,function(u,c){s=h[c+1],l=u.length,s&&(t+=Qr.length(u[l-2],u[l-1],s[1],s[2],s[3],s[4],s[5],s[6])||0)}),this.set("totalLength",t),t===0){this.set("tCache",[]);return}M(h,function(u,c){s=h[c+1],l=u.length,s&&(a=[],a[0]=e/t,o=Qr.length(u[l-2],u[l-1],s[1],s[2],s[3],s[4],s[5],s[6]),e+=o||0,a[1]=e/t,n.push(a))}),this.set("tCache",n)}},r.prototype.getStartTangent=function(){var t=this.getSegments(),e;if(t.length>1){var n=t[0].currentPoint,a=t[1].currentPoint,o=t[1].startTangent;e=[],o?(e.push([n[0]-o[0],n[1]-o[1]]),e.push([n[0],n[1]])):(e.push([a[0],a[1]]),e.push([n[0],n[1]]))}return e},r.prototype.getEndTangent=function(){var t=this.getSegments(),e=t.length,n;if(e>1){var a=t[e-2].currentPoint,o=t[e-1].currentPoint,s=t[e-1].endTangent;n=[],s?(n.push([o[0]-s[0],o[1]-s[1]]),n.push([o[0],o[1]])):(n.push([a[0],a[1]]),n.push([o[0],o[1]]))}return n},r}(Jt);function Tf(i,r,t,e,n){var a=i.length;if(a<2)return!1;for(var o=0;o<a-1;o++){var s=i[o][0],l=i[o][1],h=i[o+1][0],u=i[o+1][1];if(Ie(s,l,h,u,r,t,e))return!0}if(n){var c=i[0],f=i[a-1];if(Ie(c[0],c[1],f[0],f[1],r,t,e))return!0}return!1}var a1=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.isInStrokeOrPath=function(t,e,n,a,o){var s=this.attr().points,l=!1;return n&&(l=Tf(s,o,t,e,!0)),!l&&a&&(l=bf(s,t,e)),l},r.prototype.createPath=function(t){var e=this.attr(),n=e.points;if(!(n.length<2)){t.beginPath();for(var a=0;a<n.length;a++){var o=n[a];a===0?t.moveTo(o[0],o[1]):t.lineTo(o[0],o[1])}t.closePath()}},r}(Jt),o1=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultAttrs=function(){var t=i.prototype.getDefaultAttrs.call(this);return m(m({},t),{startArrow:!1,endArrow:!1})},r.prototype.initAttrs=function(t){this.setArrow()},r.prototype.onAttrChange=function(t,e,n){i.prototype.onAttrChange.call(this,t,e,n),this.setArrow(),["points"].indexOf(t)!==-1&&this._resetCache()},r.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},r.prototype.setArrow=function(){var t=this.attr(),e=this.attrs,n=e.points,a=e.startArrow,o=e.endArrow,s=n.length,l=n[0][0],h=n[0][1],u=n[s-1][0],c=n[s-1][1];a&&os(this,t,n[1][0],n[1][1],l,h),o&&ss(this,t,n[s-2][0],n[s-2][1],u,c)},r.prototype.isFill=function(){return!1},r.prototype.isInStrokeOrPath=function(t,e,n,a,o){if(!n||!o)return!1;var s=this.attr().points;return Tf(s,o,t,e,!1)},r.prototype.isStroke=function(){return!0},r.prototype.createPath=function(t){var e=this.attr(),n=e.points,a=e.startArrow,o=e.endArrow,s=n.length;if(!(n.length<2)){var l=n[0][0],h=n[0][1],u=n[s-1][0],c=n[s-1][1];if(a&&a.d){var f=tr(l,h,n[1][0],n[1][1],a.d);l+=f.dx,h+=f.dy}if(o&&o.d){var f=tr(n[s-2][0],n[s-2][1],u,c,o.d);u-=f.dx,c-=f.dy}t.beginPath(),t.moveTo(l,h);for(var v=0;v<s-1;v++){var p=n[v];t.lineTo(p[0],p[1])}t.lineTo(u,c)}},r.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},r.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return E(e)?(this.set("totalLength",Du.length(t)),this.get("totalLength")):e},r.prototype.getPoint=function(t){var e=this.attr().points,n=this.get("tCache");n||(this._setTcache(),n=this.get("tCache"));var a,o;return M(n,function(s,l){t>=s[0]&&t<=s[1]&&(a=(t-s[0])/(s[1]-s[0]),o=l)}),ft.pointAt(e[o][0],e[o][1],e[o+1][0],e[o+1][1],a)},r.prototype._setTcache=function(){var t=this.attr().points;if(!(!t||t.length===0)){var e=this.getTotalLength();if(!(e<=0)){var n=0,a=[],o,s;M(t,function(l,h){t[h+1]&&(o=[],o[0]=n/e,s=ft.length(l[0],l[1],t[h+1][0],t[h+1][1]),n+=s,o[1]=n/e,a.push(o))}),this.set("tCache",a)}}},r.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},r.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},r}(Jt);function s1(i,r,t,e,n,a,o){var s=n/2;return qe(i-s,r-s,t,n,a,o)||qe(i+t-s,r-s,n,e,a,o)||qe(i+s,r+e-s,t,n,a,o)||qe(i-s,r+s,n,e,a,o)}function l1(i,r,t,e,n,a,o,s){return Ie(i+n,r,i+t-n,r,a,o,s)||Ie(i+t,r+n,i+t,r+e-n,a,o,s)||Ie(i+t-n,r+e,i+n,r+e,a,o,s)||Ie(i,r+e-n,i,r+n,a,o,s)||qr(i+t-n,r+n,n,1.5*Math.PI,2*Math.PI,a,o,s)||qr(i+t-n,r+e-n,n,0,.5*Math.PI,a,o,s)||qr(i+n,r+e-n,n,.5*Math.PI,Math.PI,a,o,s)||qr(i+n,r+n,n,Math.PI,1.5*Math.PI,a,o,s)}var h1=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultAttrs=function(){var t=i.prototype.getDefaultAttrs.call(this);return m(m({},t),{x:0,y:0,width:0,height:0,radius:0})},r.prototype.isInStrokeOrPath=function(t,e,n,a,o){var s=this.attr(),l=s.x,h=s.y,u=s.width,c=s.height,f=s.radius;if(f){var p=!1;return n&&(p=l1(l,h,u,c,f,o,t,e)),!p&&a&&(p=Af(this,t,e)),p}else{var v=o/2;if(a&&n)return qe(l-v,h-v,u+v,c+v,t,e);if(a)return qe(l,h,u,c,t,e);if(n)return s1(l,h,u,c,o,t,e)}},r.prototype.createPath=function(t){var e=this.attr(),n=e.x,a=e.y,o=e.width,s=e.height,l=e.radius;if(t.beginPath(),l===0)t.rect(n,a,o,s);else{var h=Xx(l),u=h[0],c=h[1],f=h[2],v=h[3];t.moveTo(n+u,a),t.lineTo(n+o-c,a),c!==0&&t.arc(n+o-c,a+c,c,-Math.PI/2,0),t.lineTo(n+o,a+s-f),f!==0&&t.arc(n+o-f,a+s-f,f,0,Math.PI/2),t.lineTo(n+v,a+s),v!==0&&t.arc(n+v,a+s-v,v,Math.PI/2,Math.PI),t.lineTo(n,a+u),u!==0&&t.arc(n+u,a+u,u,Math.PI,Math.PI*1.5),t.closePath()}},r}(Jt),u1=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultAttrs=function(){var t=i.prototype.getDefaultAttrs.call(this);return m(m({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},r.prototype.isOnlyHitBox=function(){return!0},r.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},r.prototype._assembleFont=function(){var t=this.attrs;t.font=zn(t)},r.prototype._setText=function(t){var e=null;H(t)&&t.indexOf("\n")!==-1&&(e=t.split("\n")),this.set("textArr",e)},r.prototype.onAttrChange=function(t,e,n){i.prototype.onAttrChange.call(this,t,e,n),t.startsWith("font")&&this._assembleFont(),t==="text"&&this._setText(e)},r.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=t.fontSize*1;return e?e-n:n*.14},r.prototype._drawTextArr=function(t,e,n){var a=this.attrs,o=a.textBaseline,s=a.x,l=a.y,h=a.fontSize*1,u=this._getSpaceingY(),c=Xn(a.text,a.fontSize,a.lineHeight),f;M(e,function(v,p){f=l+p*(u+h)-c+h,o==="middle"&&(f+=c-h-(c-h)/2),o==="top"&&(f+=c-h),E(v)||(n?t.fillText(v,s,f):t.strokeText(v,s,f))})},r.prototype._drawText=function(t,e){var n=this.attr(),a=n.x,o=n.y,s=this.get("textArr");if(s)this._drawTextArr(t,s,e);else{var l=n.text;E(l)||(e?t.fillText(l,a,o):t.strokeText(l,a,o))}},r.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,a=e.opacity,o=e.strokeOpacity,s=e.fillOpacity;this.isStroke()&&n>0&&(!E(o)&&o!==1&&(t.globalAlpha=a),this.stroke(t)),this.isFill()&&(!E(s)&&s!==1?(t.globalAlpha=s,this.fill(t),t.globalAlpha=a):this.fill(t)),this.afterDrawPath(t)},r.prototype.fill=function(t){this._drawText(t,!0)},r.prototype.stroke=function(t){this._drawText(t,!1)},r}(Jt);function c1(i,r){if(r){var t=On(r);return fe(t,i)}return i}function Lf(i,r,t){var e=i.getTotalMatrix();if(e){var n=c1([r,t,1],e),a=n[0],o=n[1];return[a,o]}return[r,t]}function vh(i,r,t){if(i.isCanvas&&i.isCanvas())return!0;if(!li(i)||i.cfg.isInView===!1)return!1;if(i.cfg.clipShape){var e=Lf(i,r,t),n=e[0],a=e[1];if(i.isClipped(n,a))return!1}var o=i.cfg.cacheCanvasBBox||i.getCanvasBBox();return r>=o.minX&&r<=o.maxX&&t>=o.minY&&t<=o.maxY}function Ef(i,r,t){if(!vh(i,r,t))return null;for(var e=null,n=i.getChildren(),a=n.length,o=a-1;o>=0;o--){var s=n[o];if(s.isGroup())e=Ef(s,r,t);else if(vh(s,r,t)){var l=s,h=Lf(s,r,t),u=h[0],c=h[1];l.isInShape(u,c)&&(e=s)}if(e)break}return e}var f1=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return t.renderer="canvas",t.autoDraw=!0,t.localRefresh=!0,t.refreshElements=[],t.clipView=!0,t.quickHit=!1,t},r.prototype.onCanvasChange=function(t){(t==="attr"||t==="sort"||t==="changeSize")&&(this.set("refreshElements",[this]),this.draw())},r.prototype.getShapeBase=function(){return Ln},r.prototype.getGroupBase=function(){return hs},r.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||Px();return t>=1?Math.ceil(t):1},r.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},r.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},r.prototype.setDOMSize=function(t,e){i.prototype.setDOMSize.call(this,t,e);var n=this.get("context"),a=this.get("el"),o=this.getPixelRatio();a.width=o*t,a.height=o*e,o>1&&n.scale(o,o)},r.prototype.clear=function(){i.prototype.clear.call(this),this._clearFrame();var t=this.get("context"),e=this.get("el");t.clearRect(0,0,e.width,e.height)},r.prototype.getShape=function(t,e){var n;return this.get("quickHit")?n=Ef(this,t,e):n=i.prototype.getShape.call(this,t,e,null),n},r.prototype._getRefreshRegion=function(){var t=this.get("refreshElements"),e=this.getViewRange(),n;if(t.length&&t[0]===this)n=e;else if(n=_x(t),n){n.minX=Math.floor(n.minX),n.minY=Math.floor(n.minY),n.maxX=Math.ceil(n.maxX),n.maxY=Math.ceil(n.maxY),n.maxY+=1;var a=this.get("clipView");a&&(n=$x(n,e))}return n},r.prototype.refreshElement=function(t){var e=this.get("refreshElements");e.push(t)},r.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&(Zv(t),this.set("drawFrame",null),this.set("refreshElements",[]))},r.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},r.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),n=this.getChildren();t.clearRect(0,0,e.width,e.height),Br(t,this),fo(t,n),this.set("refreshElements",[])},r.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),a=this._getRefreshRegion();a?(t.clearRect(a.minX,a.minY,a.maxX-a.minX,a.maxY-a.minY),t.save(),t.beginPath(),t.rect(a.minX,a.minY,a.maxX-a.minX,a.maxY-a.minY),t.clip(),Br(t,this),zx(this,n,a),fo(t,n,a),t.restore()):e.length&&Cf(e),M(e,function(o){o.get("hasChanged")&&o.set("hasChanged",!1)}),this.set("refreshElements",[])},r.prototype._startDraw=function(){var t=this,e=this.get("drawFrame");e||(e=qv(function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null)}),this.set("drawFrame",e))},r.prototype.skipDraw=function(){},r.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t)},r}(Dn),v1="0.5.12";const p1=Object.freeze(Object.defineProperty({__proto__:null,AbstractCanvas:Dn,AbstractGroup:Rn,AbstractShape:Yn,Base:Pn,Canvas:f1,Event:Mi,Group:hs,PathUtil:Bo,Shape:Ln,assembleFont:zn,getArcParams:An,getBBoxMethod:Gn,getOffScreenContext:Vn,getTextHeight:Xn,invert:On,isAllowCapture:li,multiplyVec2:fe,registerBBox:$t,registerEasing:Tu,version:v1},Symbol.toStringTag,{value:"Module"}));var po={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},X={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"};function _t(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Bf(i){var r=po[i.type],t=i.getParent();if(!r)throw new Error("the type "+i.type+" is not supported by svg");var e=_t(r);if(i.get("id")&&(e.id=i.get("id")),i.set("el",e),i.set("attrs",{}),t){var n=t.get("el");n||(n=t.createDom(),t.set("el",n)),n.appendChild(e)}return e}function If(i,r){var t=i.get("el"),e=rp(t.children).sort(r),n=document.createDocumentFragment();e.forEach(function(a){n.appendChild(a)}),t.appendChild(n)}function g1(i,r){var t=i.parentNode,e=Array.from(t.childNodes).filter(function(s){return s.nodeType===1&&s.nodeName.toLowerCase()!=="defs"}),n=e[r],a=e.indexOf(i);if(n){if(a>r)t.insertBefore(i,n);else if(a<r){var o=e[r+1];o?t.insertBefore(i,o):t.appendChild(i)}}else t.appendChild(i)}function d1(i,r){var t=i.cfg.el,e=i.attr(),n={dx:e.shadowOffsetX,dy:e.shadowOffsetY,blur:e.shadowBlur,color:e.shadowColor};if(!n.dx&&!n.dy&&!n.blur&&!n.color)t.removeAttribute("filter");else{var a=r.find("filter",n);a||(a=r.addShadow(n)),t.setAttribute("filter","url(#"+a+")")}}function Bi(i){var r=i.attr().matrix;if(r){for(var t=i.cfg.el,e=[],n=0;n<9;n+=3)e.push(r[n]+","+r[n+1]);e=e.join(","),e.indexOf("NaN")===-1?t.setAttribute("transform","matrix("+e+")"):console.warn("invalid matrix:",r)}}function wi(i,r){var t=i.getClip(),e=i.get("el");if(!t)e.removeAttribute("clip-path");else if(t&&!e.hasAttribute("clip-path")){Bf(t),t.createPath(r);var n=r.addClip(t);e.setAttribute("clip-path","url(#"+n+")")}}function kf(i,r){r.forEach(function(t){t.draw(i)})}function Pf(i,r){var t=i.get("canvas");if(t&&t.get("autoDraw")){var e=t.get("context"),n=i.getParent(),a=n?n.getChildren():[t],o=i.get("el");if(r==="remove"){var s=i.get("isClipShape");if(s){var l=o&&o.parentNode,h=l&&l.parentNode;l&&h&&h.removeChild(l)}else o&&o.parentNode&&o.parentNode.removeChild(o)}else if(r==="show")o.setAttribute("visibility","visible");else if(r==="hide")o.setAttribute("visibility","hidden");else if(r==="zIndex")g1(o,a.indexOf(i));else if(r==="sort"){var u=i.get("children");u&&u.length&&If(i,function(c,f){return u.indexOf(c)-u.indexOf(f)?1:0})}else r==="clear"?o&&(o.innerHTML=""):r==="matrix"?Bi(i):r==="clip"?wi(i,e):r==="attr"||r==="add"&&i.draw(e)}}var cs=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.isEntityGroup=function(){return!0},r.prototype.createDom=function(){var t=_t("g");this.set("el",t);var e=this.getParent();if(e){var n=e.get("el");n||(n=e.createDom(),e.set("el",n)),n.appendChild(t)}return t},r.prototype.afterAttrsChange=function(t){i.prototype.afterAttrsChange.call(this,t);var e=this.get("canvas");if(e&&e.get("autoDraw")){var n=e.get("context");this.createPath(n,t)}},r.prototype.onCanvasChange=function(t){Pf(this,t)},r.prototype.getShapeBase=function(){return En},r.prototype.getGroupBase=function(){return r},r.prototype.draw=function(t){var e=this.getChildren(),n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||this.createDom(),wi(this,t),this.createPath(t),e.length&&kf(t,e))},r.prototype.createPath=function(t,e){var n=this.attr(),a=this.get("el");M(e||n,function(o,s){X[s]&&a.setAttribute(X[s],o)}),Bi(this)},r}(Rn),Ut=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.type="svg",t.canFill=!1,t.canStroke=!1,t}return r.prototype.getDefaultAttrs=function(){var t=i.prototype.getDefaultAttrs.call(this);return m(m({},t),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},r.prototype.afterAttrsChange=function(t){i.prototype.afterAttrsChange.call(this,t);var e=this.get("canvas");if(e&&e.get("autoDraw")){var n=e.get("context");this.draw(n,t)}},r.prototype.getShapeBase=function(){return En},r.prototype.getGroupBase=function(){return cs},r.prototype.onCanvasChange=function(t){Pf(this,t)},r.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var n=Gn(this.get("type"));n&&(e=n(this))}if(e){var a=e.x,o=e.y,s=e.width,l=e.height,h=this.getHitLineWidth(),u=h/2,c=a-u,f=o-u,v=a+s+u,p=o+l+u;return{x:c,y:f,minX:c,minY:f,maxX:v,maxY:p,width:s+h,height:l+h}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},r.prototype.isFill=function(){var t=this.attr(),e=t.fill,n=t.fillStyle;return(e||n||this.isClipShape())&&this.canFill},r.prototype.isStroke=function(){var t=this.attr(),e=t.stroke,n=t.strokeStyle;return(e||n)&&this.canStroke},r.prototype.draw=function(t,e){var n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||Bf(this),wi(this,t),this.createPath(t,e),this.shadow(t,e),this.strokeAndFill(t,e),this.transform(e))},r.prototype.createPath=function(t,e){},r.prototype.strokeAndFill=function(t,e){var n=e||this.attr(),a=n.fill,o=n.fillStyle,s=n.stroke,l=n.strokeStyle,h=n.fillOpacity,u=n.strokeOpacity,c=n.lineWidth,f=this.get("el");this.canFill&&(e?"fill"in n?this._setColor(t,"fill",a):"fillStyle"in n&&this._setColor(t,"fill",o):this._setColor(t,"fill",a||o),h&&f.setAttribute(X.fillOpacity,h)),this.canStroke&&c>0&&(e?"stroke"in n?this._setColor(t,"stroke",s):"strokeStyle"in n&&this._setColor(t,"stroke",l):this._setColor(t,"stroke",s||l),u&&f.setAttribute(X.strokeOpacity,u),c&&f.setAttribute(X.lineWidth,c))},r.prototype._setColor=function(t,e,n){var a=this.get("el");if(!n){a.setAttribute(X[e],"none");return}if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var o=t.find("gradient",n);o||(o=t.addGradient(n)),a.setAttribute(X[e],"url(#"+o+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){var o=t.find("pattern",n);o||(o=t.addPattern(n)),a.setAttribute(X[e],"url(#"+o+")")}else a.setAttribute(X[e],n)},r.prototype.shadow=function(t,e){var n=this.attr(),a=e||n,o=a.shadowOffsetX,s=a.shadowOffsetY,l=a.shadowBlur,h=a.shadowColor;(o||s||l||h)&&d1(this,t)},r.prototype.transform=function(t){var e=this.attr(),n=(t||e).matrix;n&&Bi(this)},r.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},r.prototype.isPointInPath=function(t,e){var n=this.get("el"),a=this.get("canvas"),o=a.get("el").getBoundingClientRect(),s=t+o.left,l=e+o.top,h=document.elementFromPoint(s,l);return!!(h&&h.isEqualNode(n))},r.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},r}(Yn),y1=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.type="circle",t.canFill=!0,t.canStroke=!0,t}return r.prototype.getDefaultAttrs=function(){var t=i.prototype.getDefaultAttrs.call(this);return m(m({},t),{x:0,y:0,r:0})},r.prototype.createPath=function(t,e){var n=this.attr(),a=this.get("el");M(e||n,function(o,s){s==="x"||s==="y"?a.setAttribute("c"+s,o):X[s]&&a.setAttribute(X[s],o)})},r}(Ut),m1=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.type="dom",t.canFill=!1,t.canStroke=!1,t}return r.prototype.createPath=function(t,e){var n=this.attr(),a=this.get("el");if(M(e||n,function(h,u){X[u]&&a.setAttribute(X[u],h)}),typeof n.html=="function"){var o=n.html.call(this,n);if(o instanceof Element||o instanceof HTMLDocument){for(var s=a.childNodes,l=s.length-1;l>=0;l--)a.removeChild(s[l]);a.appendChild(o)}else a.innerHTML=o}else a.innerHTML=n.html},r}(Ut),x1=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.type="ellipse",t.canFill=!0,t.canStroke=!0,t}return r.prototype.getDefaultAttrs=function(){var t=i.prototype.getDefaultAttrs.call(this);return m(m({},t),{x:0,y:0,rx:0,ry:0})},r.prototype.createPath=function(t,e){var n=this.attr(),a=this.get("el");M(e||n,function(o,s){s==="x"||s==="y"?a.setAttribute("c"+s,o):X[s]&&a.setAttribute(X[s],o)})},r}(Ut),w1=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.type="image",t.canFill=!1,t.canStroke=!1,t}return r.prototype.getDefaultAttrs=function(){var t=i.prototype.getDefaultAttrs.call(this);return m(m({},t),{x:0,y:0,width:0,height:0})},r.prototype.createPath=function(t,e){var n=this,a=this.attr(),o=this.get("el");M(e||a,function(s,l){l==="img"?n._setImage(a.img):X[l]&&o.setAttribute(X[l],s)})},r.prototype.setAttr=function(t,e){this.attrs[t]=e,t==="img"&&this._setImage(e)},r.prototype._setImage=function(t){var e=this.attr(),n=this.get("el");if(H(t))n.setAttribute("href",t);else if(t instanceof window.Image)e.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&H(t.nodeName)&&t.nodeName.toUpperCase()==="CANVAS")n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var a=document.createElement("canvas");a.setAttribute("width",""+t.width),a.setAttribute("height",""+t.height),a.getContext("2d").putImageData(t,0,0),e.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",a.toDataURL())}},r}(Ut),C1=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.type="line",t.canFill=!1,t.canStroke=!0,t}return r.prototype.getDefaultAttrs=function(){var t=i.prototype.getDefaultAttrs.call(this);return m(m({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},r.prototype.createPath=function(t,e){var n=this.attr(),a=this.get("el");M(e||n,function(o,s){if(s==="startArrow"||s==="endArrow")if(o){var l=Q(o)?t.addArrow(n,X[s]):t.getDefaultArrow(n,X[s]);a.setAttribute(X[s],"url(#"+l+")")}else a.removeAttribute(X[s]);else X[s]&&a.setAttribute(X[s],o)})},r.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,a=t.x2,o=t.y2;return ft.length(e,n,a,o)},r.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,a=e.y1,o=e.x2,s=e.y2;return ft.pointAt(n,a,o,s,t)},r}(Ut),Zi={circle:function(i,r,t){return[["M",i,r],["m",-t,0],["a",t,t,0,1,0,t*2,0],["a",t,t,0,1,0,-t*2,0]]},square:function(i,r,t){return[["M",i-t,r-t],["L",i+t,r-t],["L",i+t,r+t],["L",i-t,r+t],["Z"]]},diamond:function(i,r,t){return[["M",i-t,r],["L",i,r-t],["L",i+t,r],["L",i,r+t],["Z"]]},triangle:function(i,r,t){var e=t*Math.sin(.3333333333333333*Math.PI);return[["M",i-t,r+e],["L",i,r-e],["L",i+t,r+e],["z"]]},triangleDown:function(i,r,t){var e=t*Math.sin(.3333333333333333*Math.PI);return[["M",i-t,r-e],["L",i+t,r-e],["L",i,r+e],["Z"]]}};const ph={get:function(i){return Zi[i]},register:function(i,r){Zi[i]=r},remove:function(i){delete Zi[i]},getAll:function(){return Zi}};var M1=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.type="marker",t.canFill=!0,t.canStroke=!0,t}return r.prototype.createPath=function(t){var e=this.get("el");e.setAttribute("d",this._assembleMarker())},r.prototype._assembleMarker=function(){var t=this._getPath();return I(t)?t.map(function(e){return e.join(" ")}).join(""):t},r.prototype._getPath=function(){var t=this.attr(),e=t.x,n=t.y,a=t.r||t.radius,o=t.symbol||"circle",s;return R(o)?s=o:s=ph.get(o),s?s(e,n,a):(console.warn(s+" symbol is not exist."),null)},r.symbolsFactory=ph,r}(Ut),S1=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.type="path",t.canFill=!0,t.canStroke=!0,t}return r.prototype.getDefaultAttrs=function(){var t=i.prototype.getDefaultAttrs.call(this);return m(m({},t),{startArrow:!1,endArrow:!1})},r.prototype.createPath=function(t,e){var n=this,a=this.attr(),o=this.get("el");M(e||a,function(s,l){if(l==="path"&&I(s))o.setAttribute("d",n._formatPath(s));else if(l==="startArrow"||l==="endArrow")if(s){var h=Q(s)?t.addArrow(a,X[l]):t.getDefaultArrow(a,X[l]);o.setAttribute(X[l],"url(#"+h+")")}else o.removeAttribute(X[l]);else X[l]&&o.setAttribute(X[l],s)})},r.prototype._formatPath=function(t){var e=t.map(function(n){return n.join(" ")}).join("");return~e.indexOf("NaN")?"":e},r.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},r.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength();if(n===0)return null;var a=e?e.getPointAtLength(t*n):null;return a?{x:a.x,y:a.y}:null},r}(Ut),A1=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.type="polygon",t.canFill=!0,t.canStroke=!0,t}return r.prototype.createPath=function(t,e){var n=this.attr(),a=this.get("el");M(e||n,function(o,s){s==="points"&&I(o)&&o.length>=2?a.setAttribute("points",o.map(function(l){return l[0]+","+l[1]}).join(" ")):X[s]&&a.setAttribute(X[s],o)})},r}(Ut),b1=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.type="polyline",t.canFill=!0,t.canStroke=!0,t}return r.prototype.getDefaultAttrs=function(){var t=i.prototype.getDefaultAttrs.call(this);return m(m({},t),{startArrow:!1,endArrow:!1})},r.prototype.onAttrChange=function(t,e,n){i.prototype.onAttrChange.call(this,t,e,n),["points"].indexOf(t)!==-1&&this._resetCache()},r.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},r.prototype.createPath=function(t,e){var n=this.attr(),a=this.get("el");M(e||n,function(o,s){s==="points"&&I(o)&&o.length>=2?a.setAttribute("points",o.map(function(l){return l[0]+","+l[1]}).join(" ")):X[s]&&a.setAttribute(X[s],o)})},r.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return E(e)?(this.set("totalLength",Du.length(t)),this.get("totalLength")):e},r.prototype.getPoint=function(t){var e=this.attr().points,n=this.get("tCache");n||(this._setTcache(),n=this.get("tCache"));var a,o;return M(n,function(s,l){t>=s[0]&&t<=s[1]&&(a=(t-s[0])/(s[1]-s[0]),o=l)}),ft.pointAt(e[o][0],e[o][1],e[o+1][0],e[o+1][1],a)},r.prototype._setTcache=function(){var t=this.attr().points;if(!(!t||t.length===0)){var e=this.getTotalLength();if(!(e<=0)){var n=0,a=[],o,s;M(t,function(l,h){t[h+1]&&(o=[],o[0]=n/e,s=ft.length(l[0],l[1],t[h+1][0],t[h+1][1]),n+=s,o[1]=n/e,a.push(o))}),this.set("tCache",a)}}},r.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},r.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},r}(Ut);function T1(i){var r=0,t=0,e=0,n=0;return I(i)?i.length===1?r=t=e=n=i[0]:i.length===2?(r=e=i[0],t=n=i[1]):i.length===3?(r=i[0],t=n=i[1],e=i[2]):(r=i[0],t=i[1],e=i[2],n=i[3]):r=t=e=n=i,{r1:r,r2:t,r3:e,r4:n}}var L1=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.type="rect",t.canFill=!0,t.canStroke=!0,t}return r.prototype.getDefaultAttrs=function(){var t=i.prototype.getDefaultAttrs.call(this);return m(m({},t),{x:0,y:0,width:0,height:0,radius:0})},r.prototype.createPath=function(t,e){var n=this,a=this.attr(),o=this.get("el"),s=!1,l=["x","y","width","height","radius"];M(e||a,function(h,u){l.indexOf(u)!==-1&&!s?(o.setAttribute("d",n._assembleRect(a)),s=!0):l.indexOf(u)===-1&&X[u]&&o.setAttribute(X[u],h)})},r.prototype._assembleRect=function(t){var e=t.x,n=t.y,a=t.width,o=t.height,s=t.radius;if(!s)return"M "+e+","+n+" l "+a+",0 l 0,"+o+" l"+-a+" 0 z";var l=T1(s);I(s)?s.length===1?l.r1=l.r2=l.r3=l.r4=s[0]:s.length===2?(l.r1=l.r3=s[0],l.r2=l.r4=s[1]):s.length===3?(l.r1=s[0],l.r2=l.r4=s[1],l.r3=s[2]):(l.r1=s[0],l.r2=s[1],l.r3=s[2],l.r4=s[3]):l.r1=l.r2=l.r3=l.r4=s;var h=[["M "+(e+l.r1)+","+n],["l "+(a-l.r1-l.r2)+",0"],["a "+l.r2+","+l.r2+",0,0,1,"+l.r2+","+l.r2],["l 0,"+(o-l.r2-l.r3)],["a "+l.r3+","+l.r3+",0,0,1,"+-l.r3+","+l.r3],["l "+(l.r3+l.r4-a)+",0"],["a "+l.r4+","+l.r4+",0,0,1,"+-l.r4+","+-l.r4],["l 0,"+(l.r4+l.r1-o)],["a "+l.r1+","+l.r1+",0,0,1,"+l.r1+","+-l.r1],["z"]];return h.join(" ")},r}(Ut),gh=.3,E1={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},B1={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},I1={left:"left",start:"left",center:"middle",right:"end",end:"end"},k1=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.type="text",t.canFill=!0,t.canStroke=!0,t}return r.prototype.getDefaultAttrs=function(){var t=i.prototype.getDefaultAttrs.call(this);return m(m({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},r.prototype.createPath=function(t,e){var n=this,a=this.attr(),o=this.get("el");this._setFont(),M(e||a,function(s,l){l==="text"?n._setText(""+s):l==="matrix"&&s?Bi(n):X[l]&&o.setAttribute(X[l],s)}),o.setAttribute("paint-order","stroke"),o.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},r.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,a=e.textAlign,o=du();o&&o.name==="firefox"?t.setAttribute("dominant-baseline",B1[n]||"alphabetic"):t.setAttribute("alignment-baseline",E1[n]||"baseline"),t.setAttribute("text-anchor",I1[a]||"left")},r.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),a=n.x,o=n.textBaseline,s=o===void 0?"bottom":o;if(!t)e.innerHTML="";else if(~t.indexOf("\n")){var l=t.split("\n"),h=l.length-1,u="";M(l,function(c,f){f===0?s==="alphabetic"?u+='<tspan x="'+a+'" dy="'+-h+'em">'+c+"</tspan>":s==="top"?u+='<tspan x="'+a+'" dy="0.9em">'+c+"</tspan>":s==="middle"?u+='<tspan x="'+a+'" dy="'+-(h-1)/2+'em">'+c+"</tspan>":s==="bottom"?u+='<tspan x="'+a+'" dy="-'+(h+gh)+'em">'+c+"</tspan>":s==="hanging"&&(u+='<tspan x="'+a+'" dy="'+(-(h-1)-gh)+'em">'+c+"</tspan>"):u+='<tspan x="'+a+'" dy="1em">'+c+"</tspan>"}),e.innerHTML=u}else e.innerHTML=t},r}(Ut),P1=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,F1=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,O1=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function Ff(i){var r=i.match(O1);if(!r)return"";var t="";return r.sort(function(e,n){return e=e.split(":"),n=n.split(":"),Number(e[0])-Number(n[0])}),M(r,function(e){e=e.split(":"),t+='<stop offset="'+e[0]+'" stop-color="'+e[1]+'"></stop>'}),t}function D1(i,r){var t=P1.exec(i),e=So(Ao(parseFloat(t[1])),Math.PI*2),n=t[2],a,o;e>=0&&e<.5*Math.PI?(a={x:0,y:0},o={x:1,y:1}):.5*Math.PI<=e&&e<Math.PI?(a={x:1,y:0},o={x:0,y:1}):Math.PI<=e&&e<1.5*Math.PI?(a={x:1,y:1},o={x:0,y:0}):(a={x:0,y:1},o={x:1,y:0});var s=Math.tan(e),l=s*s,h=(o.x-a.x+s*(o.y-a.y))/(l+1)+a.x,u=s*(o.x-a.x+s*(o.y-a.y))/(l+1)+a.y;r.setAttribute("x1",a.x),r.setAttribute("y1",a.y),r.setAttribute("x2",h),r.setAttribute("y2",u),r.innerHTML=Ff(n)}function R1(i,r){var t=F1.exec(i),e=parseFloat(t[1]),n=parseFloat(t[2]),a=parseFloat(t[3]),o=t[4];r.setAttribute("cx",e),r.setAttribute("cy",n),r.setAttribute("r",a),r.innerHTML=Ff(o)}var Y1=function(){function i(r){this.cfg={};var t=null,e=Ve("gradient_");return r.toLowerCase()[0]==="l"?(t=_t("linearGradient"),D1(r,t)):(t=_t("radialGradient"),R1(r,t)),t.setAttribute("id",e),this.el=t,this.id=e,this.cfg=r,this}return i.prototype.match=function(r,t){return this.cfg===t},i}(),G1={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},H1={x:"-40%",y:"-40%",width:"200%",height:"200%"},V1=function(){function i(r){this.type="filter",this.cfg={},this.type="filter";var t=_t("filter");return M(H1,function(e,n){t.setAttribute(n,e)}),this.el=t,this.id=Ve("filter_"),this.el.id=this.id,this.cfg=r,this._parseShadow(r,t),this}return i.prototype.match=function(r,t){if(this.type!==r)return!1;var e=!0,n=this.cfg;return M(Object.keys(n),function(a){if(n[a]!==t[a])return e=!1,!1}),e},i.prototype.update=function(r,t){var e=this.cfg;return e[G1[r]]=t,this._parseShadow(e,this.el),this},i.prototype._parseShadow=function(r,t){var e='<feDropShadow\n dx="'+(r.dx||0)+'"\n dy="'+(r.dy||0)+'"\n stdDeviation="'+(r.blur?r.blur/10:0)+'"\n flood-color="'+(r.color?r.color:"#000")+'"\n flood-opacity="'+(r.opacity?r.opacity:1)+'"\n />';t.innerHTML=e},i}(),dh=function(){function i(r,t){this.cfg={};var e=_t("marker"),n=Ve("marker_");e.setAttribute("id",n);var a=_t("path");a.setAttribute("stroke",r.stroke||"none"),a.setAttribute("fill",r.fill||"none"),e.appendChild(a),e.setAttribute("overflow","visible"),e.setAttribute("orient","auto-start-reverse"),this.el=e,this.child=a,this.id=n;var o=r[t==="marker-start"?"startArrow":"endArrow"];return this.stroke=r.stroke||"#000",o===!0?this._setDefaultPath(t,a):(this.cfg=o,this._setMarker(r.lineWidth,a)),this}return i.prototype.match=function(){return!1},i.prototype._setDefaultPath=function(r,t){var e=this.el;t.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),e.setAttribute("refX",""+10*Math.cos(Math.PI/6)),e.setAttribute("refY","5")},i.prototype._setMarker=function(r,t){var e=this.el,n=this.cfg.path,a=this.cfg.d;I(n)&&(n=n.map(function(o){return o.join(" ")}).join("")),t.setAttribute("d",n),e.appendChild(t),a&&e.setAttribute("refX",""+a/r)},i.prototype.update=function(r){var t=this.child;t.attr?t.attr("fill",r):t.setAttribute("fill",r)},i}(),X1=function(){function i(r){this.type="clip",this.cfg={};var t=_t("clipPath");this.el=t,this.id=Ve("clip_"),t.id=this.id;var e=r.cfg.el;return t.appendChild(e),this.cfg=r,this}return i.prototype.match=function(){return!1},i.prototype.remove=function(){var r=this.el;r.parentNode.removeChild(r)},i}(),z1=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,N1=function(){function i(r){this.cfg={};var t=_t("pattern");t.setAttribute("patternUnits","userSpaceOnUse");var e=_t("image");t.appendChild(e);var n=Ve("pattern_");t.id=n,this.el=t,this.id=n,this.cfg=r;var a=z1.exec(r),o=a[2];e.setAttribute("href",o);var s=new Image;o.match(/^data:/i)||(s.crossOrigin="Anonymous"),s.src=o;function l(){t.setAttribute("width",""+s.width),t.setAttribute("height",""+s.height)}return s.complete?l():(s.onload=l,s.src=s.src),this}return i.prototype.match=function(r,t){return this.cfg===t},i}(),W1=function(){function i(r){var t=_t("defs"),e=Ve("defs_");t.id=e,r.appendChild(t),this.children=[],this.defaultArrow={},this.el=t,this.canvas=r}return i.prototype.find=function(r,t){for(var e=this.children,n=null,a=0;a<e.length;a++)if(e[a].match(r,t)){n=e[a].id;break}return n},i.prototype.findById=function(r){for(var t=this.children,e=null,n=0;n<t.length;n++)if(t[n].id===r){e=t[n];break}return e},i.prototype.add=function(r){this.children.push(r),r.canvas=this.canvas,r.parent=this},i.prototype.getDefaultArrow=function(r,t){var e=r.stroke||r.strokeStyle;if(this.defaultArrow[e])return this.defaultArrow[e].id;var n=new dh(r,t);return this.defaultArrow[e]=n,this.el.appendChild(n.el),this.add(n),n.id},i.prototype.addGradient=function(r){var t=new Y1(r);return this.el.appendChild(t.el),this.add(t),t.id},i.prototype.addArrow=function(r,t){var e=new dh(r,t);return this.el.appendChild(e.el),this.add(e),e.id},i.prototype.addShadow=function(r){var t=new V1(r);return this.el.appendChild(t.el),this.add(t),t.id},i.prototype.addPattern=function(r){var t=new N1(r);return this.el.appendChild(t.el),this.add(t),t.id},i.prototype.addClip=function(r){var t=new X1(r);return this.el.appendChild(t.el),this.add(t),t.id},i}(),_1=function(i){T(r,i);function r(t){return i.call(this,m(m({},t),{autoDraw:!0,renderer:"svg"}))||this}return r.prototype.getShapeBase=function(){return En},r.prototype.getGroupBase=function(){return cs},r.prototype.getShape=function(t,e,n){var a=n.target||n.srcElement;if(!po[a.tagName]){for(var o=a.parentNode;o&&!po[o.tagName];)o=o.parentNode;a=o}return this.find(function(s){return s.get("el")===a})},r.prototype.createDom=function(){var t=_t("svg"),e=new W1(t);return t.setAttribute("width",""+this.get("width")),t.setAttribute("height",""+this.get("height")),this.set("context",e),t},r.prototype.onCanvasChange=function(t){var e=this.get("context"),n=this.get("el");if(t==="sort"){var a=this.get("children");a&&a.length&&If(this,function(s,l){return a.indexOf(s)-a.indexOf(l)?1:0})}else if(t==="clear"){if(n){n.innerHTML="";var o=e.el;o.innerHTML="",n.appendChild(o)}}else t==="matrix"?Bi(this):t==="clip"?wi(this,e):t==="changeSize"&&(n.setAttribute("width",""+this.get("width")),n.setAttribute("height",""+this.get("height")))},r.prototype.draw=function(){var t=this.get("context"),e=this.getChildren();wi(this,t),e.length&&kf(t,e)},r}(Dn),$1="0.5.6";const U1=Object.freeze(Object.defineProperty({__proto__:null,AbstractCanvas:Dn,AbstractGroup:Rn,AbstractShape:Yn,Base:Pn,Canvas:_1,Event:Mi,Group:cs,PathUtil:Bo,Shape:En,assembleFont:zn,getBBoxMethod:Gn,getOffScreenContext:Vn,getTextHeight:Xn,invert:On,isAllowCapture:li,multiplyVec2:fe,registerBBox:$t,registerEasing:Tu,version:$1},Symbol.toStringTag,{value:"Module"}));var fs=function(i){T(r,i);function r(t){var e=i.call(this,t)||this;e.type="path",e.shapeType="line";var n=t.connectNulls,a=n===void 0?!1:n,o=t.showSinglePoint,s=o===void 0?!0:o;return e.connectNulls=a,e.showSinglePoint=s,e}return r.prototype.updateElements=function(t,e){e===void 0&&(e=!1);for(var n=new Map,a=new Map,o=[],s=0,l=0;l<t.length;l++){var h=t[l],u=this.getElementId(h);o.push(u),n.set(u,h),a.set(u,s),s++}this.elements=new Array(s);for(var c=sf(this.lastElementsMap,o),f=c.added,v=c.updated,p=c.removed,g=0,d=f;g<d.length;g++){var u=d[g],h=n.get(u),y=this.getShapeFactory(),w=this.getShapeInfo(h),l=a.get(u),x=new rf({shapeFactory:y,container:this.container,offscreenGroup:this.getOffscreenGroup(),elementIndex:l});x.geometry=this,x.animate=this.animateOption,x.draw(w,e),this.elementsMap[u]=x,this.elements[l]=x}for(var C=0,S=v;C<S.length;C++){var u=S[C],h=n.get(u),x=this.lastElementsMap[u],l=a.get(u),w=this.getShapeInfo(h),b=x.getModel();(this.isCoordinateChanged||of(b,w))&&(x.animate=this.animateOption,x.update(w)),this.elementsMap[u]=x,this.elements[l]=x}for(var L=0,B=p;L<B.length;L++){var u=B[L],x=this.lastElementsMap[u];x.animate=this.animateOption,x.destroy()}},r.prototype.getPointsAndData=function(t){for(var e=[],n=[],a=0,o=t.length;a<o;a++){var s=t[a];e.push({x:s.x,y:s.y}),n.push(s[$])}return{points:e,data:n}},r.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=this.getPointsAndData(t),a=n.points,o=n.data;return e.mappingData=t,e.data=o,e.isStack=!!this.getAdjust("stack"),e.points=a,e.connectNulls=this.connectNulls,e.showSinglePoint=this.showSinglePoint,e},r}(ze);function j1(i,r,t,e,n){var a=[];if(i.length){for(var o=[],s=[],l=0,h=i.length;l<h;l++){var u=i[l];o.push(u[1]),s.push(u[0])}s=s.reverse(),M([o,s],function(c,f){var v=[],p=e.parsePoints(c),g=p[0];o.length===1&&s.length===1?v=f===0?[["M",g.x-.5,g.y],["L",g.x+.5,g.y]]:[["L",g.x+.5,g.y],["L",g.x-.5,g.y]]:(r&&p.push({x:g.x,y:g.y}),t?v=Mn(p,!1,n):v=Li(p,!1),f>0&&(v[0][0]="L")),a=a.concat(v)}),a.push(["Z"])}return a}function aa(i,r,t,e,n){for(var a=et(i,r,!r,"lineWidth"),o=i.connectNulls,s=i.isInCircle,l=i.points,h=i.showSinglePoint,u=na(l,o,h),c=[],f=0,v=u.length;f<v;f++){var p=u[f];c=c.concat(j1(p,s,t,e,n))}return a.path=c,a}function Of(i){var r=i.start,t=i.end;return[[r.x,t.y],[t.x,r.y]]}Xe("area",{defaultShapeType:"area",getDefaultPoints:function(i){var r=i.x,t=i.y0,e=I(i.y)?i.y:[t,i.y];return e.map(function(n){return{x:r,y:n}})}});j("area","area",{draw:function(i,r){var t=aa(i,!1,!1,this),e=r.addShape({type:"path",attrs:t,name:"area"});return e},getMarker:function(i){var r=i.color;return{symbol:function(t,e,n){return n===void 0&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:r}}}});var q1=function(i){T(r,i);function r(t){var e=i.call(this,t)||this;e.type="area",e.shapeType="area",e.generatePoints=!0,e.startOnZero=!0;var n=t.startOnZero,a=n===void 0?!0:n,o=t.sortable,s=o===void 0?!1:o,l=t.showSinglePoint,h=l===void 0?!1:l;return e.startOnZero=a,e.sortable=s,e.showSinglePoint=h,e}return r.prototype.getPointsAndData=function(t){for(var e=[],n=[],a=0,o=t.length;a<o;a++){var s=t[a];e.push(s.points),n.push(s[$])}return{points:e,data:n}},r.prototype.getYMinValue=function(){if(this.startOnZero)return i.prototype.getYMinValue.call(this);var t=this.getYScale();return t.min},r}(fs);Xe("edge",{defaultShapeType:"line",getDefaultPoints:function(i){return ns(i)}});j("edge","line",{draw:function(i,r){var t=et(i,!0,!1,"lineWidth"),e=Li(this.parsePoints(i.points),this.coordinate.isPolar);return r.addShape("path",{attrs:m(m({},t),{path:e})})},getMarker:function(i){return{symbol:"circle",style:{r:4.5,fill:i.color}}}});var Z1=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.type="edge",t.shapeType="edge",t.generatePoints=!0,t}return r}(ze),Q1=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.type="heatmap",t.paletteCache={},t}return r.prototype.updateElements=function(t,e){for(var n=0;n<t.length;n++){var a=t[n],o=this.prepareRange(a),s=this.prepareSize(),l=A(this.styleOption,["cfg","shadowBlur"]);W(l)||(l=s/2),this.prepareGreyScaleBlurredCircle(s,l),this.drawWithRange(a,o,s,l)}},r.prototype.color=function(t,e){return this.createAttrOption("color",t,typeof e!="function"?e:""),this},r.prototype.clear=function(){i.prototype.clear.call(this),this.clearShadowCanvasCtx(),this.paletteCache={}},r.prototype.prepareRange=function(t){var e=this.getAttribute("color"),n=e.getFields()[0],a=1/0,o=-1/0;return t.forEach(function(s){var l=s[$][n];l>o&&(o=l),l<a&&(a=l)}),a===o&&(a=o-1),[a,o]},r.prototype.prepareSize=function(){var t=this.getDefaultValue("size");return W(t)||(t=this.getDefaultSize()),t},r.prototype.prepareGreyScaleBlurredCircle=function(t,e){var n=this.getGrayScaleBlurredCanvas(),a=t+e,o=n.getContext("2d");n.width=n.height=a*2,o.clearRect(0,0,n.width,n.height),o.shadowOffsetX=o.shadowOffsetY=a*2,o.shadowBlur=e,o.shadowColor="black",o.beginPath(),o.arc(-a,-a,t,0,Math.PI*2,!0),o.closePath(),o.fill()},r.prototype.drawWithRange=function(t,e,n,a){var o=this.coordinate,s=o.start,l=o.end,h=this.coordinate.getWidth(),u=this.coordinate.getHeight(),c=this.getAttribute("color"),f=c.getFields()[0];this.clearShadowCanvasCtx();var v=this.getShadowCanvasCtx();e&&(t=t.filter(function(B){return B[$][f]<=e[1]&&B[$][f]>=e[0]}));for(var p=this.scales[f],g=0,d=t;g<d.length;g++){var y=d[g],w=this.getDrawCfg(y),x=w.x,C=w.y,S=p.scale(y[$][f]);this.drawGrayScaleBlurredCircle(x-s.x,C-l.y,n+a,S,v)}var b=v.getImageData(0,0,h,u);this.clearShadowCanvasCtx(),this.colorize(b),v.putImageData(b,0,0);var L=this.getImageShape();L.attr("x",s.x),L.attr("y",l.y),L.attr("width",h),L.attr("height",u),L.attr("img",v.canvas),L.set("origin",this.getShapeInfo(t))},r.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),e=this.coordinate;return Math.min(e.getWidth()/(t.scales[0].ticks.length*4),e.getHeight()/(t.scales[1].ticks.length*4))},r.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},r.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},r.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},r.prototype.drawGrayScaleBlurredCircle=function(t,e,n,a,o){var s=this.getGrayScaleBlurredCanvas();o.globalAlpha=a,o.drawImage(s,t-n,e-n)},r.prototype.colorize=function(t){for(var e=this.getAttribute("color"),n=t.data,a=this.paletteCache,o=3;o<n.length;o+=4){var s=n[o];if(W(s)){var l=a[s]?a[s]:ui.rgb2arr(e.gradient(s/256));n[o-3]=l[0],n[o-2]=l[1],n[o-1]=l[2],n[o]=s}}},r.prototype.getImageShape=function(){var t=this.imageShape;if(t)return t;var e=this.container;return t=e.addShape({type:"image",attrs:{}}),this.imageShape=t,t},r.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=t.map(function(a){return a[$]});return m(m({},e),{mappingData:t,data:n})},r}(ze);function vs(i){var r=i.x,t=i.y,e=i.y0,n=i.size,a,o;I(t)?(a=t[0],o=t[1]):(a=e,o=t);var s,l;I(r)?(s=r[0],l=r[1]):(s=r-n/2,l=r+n/2);var h=[{x:s,y:a},{x:s,y:o}];return h.push({x:l,y:o},{x:l,y:a}),h}function ps(i,r){r===void 0&&(r=!0);var t=[],e=i[0];t.push(["M",e.x,e.y]);for(var n=1,a=i.length;n<a;n++)t.push(["L",i[n].x,i[n].y]);return r&&(t.push(["L",e.x,e.y]),t.push(["z"])),t}function Df(i,r){var t=0,e=0,n=0,a=0;return I(i)?i.length===1?t=e=n=a=i[0]:i.length===2?(t=n=i[0],e=a=i[1]):i.length===3?(t=i[0],e=a=i[1],n=i[2]):(t=i[0],e=i[1],n=i[2],a=i[3]):t=e=n=a=i,t+e>r&&(t=t?r/(1+e/t):0,e=r-t),n+a>r&&(n=n?r/(1+a/n):0,a=r-n),[t||0,e||0,n||0,a||0]}function Rf(i,r,t){var e=[];if(t.isRect){var n=t.isTransposed?{x:t.start.x,y:r[0].y}:{x:r[0].x,y:t.start.y},a=t.isTransposed?{x:t.end.x,y:r[2].y}:{x:r[3].x,y:t.end.y},o=A(i,["background","style","radius"]);if(o){var s=t.isTransposed?Math.abs(r[0].y-r[2].y):r[2].x-r[1].x,l=t.isTransposed?t.getWidth():t.getHeight(),h=Df(o,Math.min(s,l)),u=h[0],c=h[1],f=h[2],v=h[3];e.push(["M",n.x,a.y+u]),u!==0&&e.push(["A",u,u,0,0,1,n.x+u,a.y]),e.push(["L",a.x-c,a.y]),c!==0&&e.push(["A",c,c,0,0,1,a.x,a.y+c]),e.push(["L",a.x,n.y-f]),f!==0&&e.push(["A",f,f,0,0,1,a.x-f,n.y]),e.push(["L",n.x+v,n.y]),v!==0&&e.push(["A",v,v,0,0,1,n.x,n.y-v])}else e.push(["M",n.x,n.y]),e.push(["L",a.x,n.y]),e.push(["L",a.x,a.y]),e.push(["L",n.x,a.y]),e.push(["L",n.x,n.y]);e.push(["z"])}if(t.isPolar){var p=t.getCenter(),g=gi(i,t),d=g.startAngle,y=g.endAngle;if(t.type!=="theta"&&!t.isTransposed)e=Fe(p.x,p.y,t.getRadius(),d,y);else{var w=function(S){return Math.pow(S,2)},u=Math.sqrt(w(p.x-r[0].x)+w(p.y-r[0].y)),c=Math.sqrt(w(p.x-r[2].x)+w(p.y-r[2].y));e=Fe(p.x,p.y,u,t.startAngle,t.endAngle,c)}}return e}function K1(i,r,t){var e=t.getWidth(),n=t.getHeight(),a=t.type==="rect",o=[],s=(i[2].x-i[1].x)/2,l=t.isTransposed?s*n/e:s*e/n;return r==="round"?(a?(o.push(["M",i[0].x,i[0].y+l]),o.push(["L",i[1].x,i[1].y-l]),o.push(["A",s,s,0,0,1,i[2].x,i[2].y-l]),o.push(["L",i[3].x,i[3].y+l]),o.push(["A",s,s,0,0,1,i[0].x,i[0].y+l])):(o.push(["M",i[0].x,i[0].y]),o.push(["L",i[1].x,i[1].y]),o.push(["A",s,s,0,0,1,i[2].x,i[2].y]),o.push(["L",i[3].x,i[3].y]),o.push(["A",s,s,0,0,1,i[0].x,i[0].y])),o.push(["z"])):o=ps(i),o}function Yf(i,r,t){var e=[];return E(r)?t?e.push(["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["L",(i[2].x+i[3].x)/2,(i[2].y+i[3].y)/2],["Z"]):e.push(["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["L",i[2].x,i[2].y],["L",i[3].x,i[3].y],["Z"]):e.push(["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["L",r[1].x,r[1].y],["L",r[0].x,r[0].y],["Z"]),e}function _r(i,r){return[r,i]}function J1(i,r,t){var e,n,a,o,s,l,h,u=vt([],i,!0),c=u[0],f=u[1],v=u[2],p=u[3],g=typeof t=="number"?Array(4).fill(t):t,d=g[0],y=g[1],w=g[2],x=g[3];r.isTransposed&&(e=_r(f,p),f=e[0],p=e[1]),r.isReflect("y")&&(n=_r(c,f),c=n[0],f=n[1],a=_r(v,p),v=a[0],p=a[1]),r.isReflect("x")&&(o=_r(c,p),c=o[0],p=o[1],s=_r(f,v),f=s[0],v=s[1]);var C=[],S=function(b){return Math.abs(b)};return l=Df([d,y,w,x],Math.min(S(p.x-c.x),S(f.y-c.y))).map(function(b){return S(b)}),d=l[0],y=l[1],w=l[2],x=l[3],r.isTransposed&&(h=[x,d,y,w],d=h[0],y=h[1],w=h[2],x=h[3]),c.y<f.y?(C.push(["M",p.x,p.y+w]),w!==0&&C.push(["A",w,w,0,0,0,p.x-w,p.y]),C.push(["L",c.x+x,c.y]),x!==0&&C.push(["A",x,x,0,0,0,c.x,c.y+x]),C.push(["L",f.x,f.y-d]),d!==0&&C.push(["A",d,d,0,0,0,f.x+d,f.y]),C.push(["L",v.x-y,v.y]),y!==0&&C.push(["A",y,y,0,0,0,v.x,v.y-y]),C.push(["L",p.x,p.y+w]),C.push(["z"])):p.x<c.x?(C.push(["M",v.x+y,v.y]),y!==0&&C.push(["A",y,y,0,0,0,v.x,v.y+y]),C.push(["L",p.x,p.y-w]),w!==0&&C.push(["A",w,w,0,0,0,p.x+w,p.y]),C.push(["L",c.x-x,c.y]),x!==0&&C.push(["A",x,x,0,0,0,c.x,c.y-x]),C.push(["L",f.x,f.y+d]),d!==0&&C.push(["A",d,d,0,0,0,f.x-d,f.y]),C.push(["L",v.x+y,v.y]),C.push(["z"])):(C.push(["M",f.x,f.y+d]),d!==0&&C.push(["A",d,d,0,0,1,f.x+d,f.y]),C.push(["L",v.x-y,v.y]),y!==0&&C.push(["A",y,y,0,0,1,v.x,v.y+y]),C.push(["L",p.x,p.y-w]),w!==0&&C.push(["A",w,w,0,0,1,p.x-w,p.y]),C.push(["L",c.x+x,c.y]),x!==0&&C.push(["A",x,x,0,0,1,c.x,c.y-x]),C.push(["L",f.x,f.y+d]),C.push(["z"])),C}Xe("interval",{defaultShapeType:"rect",getDefaultPoints:function(i){return vs(i)}});j("interval","rect",{draw:function(i,r){var t=et(i,!1,!0),e=r,n=i==null?void 0:i.background;if(n){e=r.addGroup();var a=vf(i),o=Rf(i,this.parsePoints(i.points),this.coordinate);e.addShape("path",{attrs:m(m({},a),{path:o}),zIndex:-1,name:ts})}var s;t.radius&&this.coordinate.isRect?s=J1(this.parsePoints(i.points),this.coordinate,t.radius):s=this.parsePath(K1(i.points,t.lineCap,this.coordinate));var l=e.addShape("path",{attrs:m(m({},t),{path:s}),name:"interval"});return n?e:l},getMarker:function(i){var r=i.color,t=i.isInPolar;return t?{symbol:"circle",style:{r:4.5,fill:r}}:{symbol:"square",style:{r:4,fill:r}}}});function tw(i,r){var t=i.length,e=i;H(e[0])&&(e=i.map(function(s){return r.translate(s)}));for(var n=e[1]-e[0],a=2;a<t;a++){var o=e[a]-e[a-1];n>o&&(n=o)}return n}function ew(i,r){if(r){var t=Vt(i),e=ge(t,r);return e.length}return i.length}function gs(i){var r=i.theme,t=i.coordinate,e=i.getXScale(),n=e.values,a=i.beforeMappingData,o=n.length,s=Ti(i.coordinate),l=i.intervalPadding,h=i.dodgePadding,u=i.maxColumnWidth||r.maxColumnWidth,c=i.minColumnWidth||r.minColumnWidth,f=i.columnWidthRatio||r.columnWidthRatio,v=i.multiplePieWidthRatio||r.multiplePieWidthRatio,p=i.roseWidthRatio||r.roseWidthRatio;if(e.isLinear&&n.length>1){n.sort();var g=tw(n,e);o=(e.max-e.min)/g,n.length>o&&(o=n.length)}var d=e.range,y=1/o,w=1;if(t.isPolar?t.isTransposed&&o>1?w=v:w=p:(e.isLinear&&(y*=d[1]-d[0]),w=f),!E(l)&&l>=0){var x=l/s;y=(1-(o-1)*x)/o}else y*=w;if(i.getAdjust("dodge")){var C=i.getAdjust("dodge"),S=C.dodgeBy,b=ew(a,S);if(!E(h)&&h>=0){var L=h/s;y=(y-L*(b-1))/b}else!E(l)&&l>=0&&(y*=w),y=y/b;y=y>=0?y:0}if(!E(u)&&u>=0){var B=u/s;y>B&&(y=B)}if(!E(c)&&c>=0){var P=c/s;y<P&&(y=P)}return y}var rw=function(i){T(r,i);function r(t){var e=i.call(this,t)||this;e.type="interval",e.shapeType="interval",e.generatePoints=!0;var n=t.background;return e.background=n,e}return r.prototype.createShapePointsCfg=function(t){var e=i.prototype.createShapePointsCfg.call(this,t),n,a=this.getAttribute("size");if(a){n=this.getAttributeValues(a,t)[0];var o=this.coordinate,s=Ti(o);n=n/s}else this.defaultSize||(this.defaultSize=gs(this)),n=this.defaultSize;return e.size=n,e},r.prototype.adjustScale=function(){i.prototype.adjustScale.call(this);var t=this.getYScale();if(this.coordinate.type==="theta")t.change({nice:!1,min:0,max:n0(t)});else{var e=this.scaleDefs,n=t.field,a=t.min,o=t.max,s=t.type;s!=="time"&&(a>0&&!A(e,[n,"min"])&&t.change({min:0}),o<=0&&!A(e,[n,"max"])&&t.change({max:0}))}},r.prototype.getDrawCfg=function(t){var e=i.prototype.getDrawCfg.call(this,t);return e.background=this.background,e},r}(ze),iw=function(i){T(r,i);function r(t){var e=i.call(this,t)||this;e.type="line";var n=t.sortable,a=n===void 0?!1:n;return e.sortable=a,e}return r}(fs),Gf=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],nw=["cross","tick","plus","hyphen","line"];function ds(i,r,t,e,n){var a=et(r,n,!n,"r"),o=i.parsePoints(r.points),s=o[0];if(r.isStack)s=o[1];else if(o.length>1){for(var l=t.addGroup(),h=0,u=o;h<u.length;h++){var c=u[h];l.addShape({type:"marker",attrs:m(m(m({},a),{symbol:nr[e]||e}),c)})}return l}return t.addShape({type:"marker",attrs:m(m(m({},a),{symbol:nr[e]||e}),s)})}Xe("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(i){return ns(i)}});M(Gf,function(i){j("point","hollow-".concat(i),{draw:function(r,t){return ds(this,r,t,i,!0)},getMarker:function(r){var t=r.color;return{symbol:nr[i]||i,style:{r:4.5,stroke:t,fill:null}}}})});var aw=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.type="point",t.shapeType="point",t.generatePoints=!0,t}return r.prototype.getDrawCfg=function(t){var e=i.prototype.getDrawCfg.call(this,t);return m(m({},e),{isStack:!!this.getAdjust("stack")})},r}(ze);function ow(i){for(var r=i[0],t=1,e=[["M",r.x,r.y]];t<i.length;){var n=i[t];(n.x!==i[t-1].x||n.y!==i[t-1].y)&&(e.push(["L",n.x,n.y]),n.x===r.x&&n.y===r.y&&t<i.length-1&&(r=i[t+1],e.push(["Z"]),e.push(["M",r.x,r.y]),t++)),t++}return st(pt(e),r)||e.push(["L",r.x,r.y]),e.push(["Z"]),e}Xe("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(i){var r=[];return M(i.x,function(t,e){var n=i.y[e];r.push({x:t,y:n})}),r}});j("polygon","polygon",{draw:function(i,r){if(!se(i.points)){var t=et(i,!0,!0),e=this.parsePath(ow(i.points));return r.addShape("path",{attrs:m(m({},t),{path:e}),name:"polygon"})}},getMarker:function(i){var r=i.color;return{symbol:"square",style:{r:4,fill:r}}}});var sw=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.type="polygon",t.shapeType="polygon",t.generatePoints=!0,t}return r.prototype.createShapePointsCfg=function(t){var e=i.prototype.createShapePointsCfg.call(this,t),n=e.x,a=e.y,o;if(!(I(n)&&I(a))){var s=this.getXScale(),l=this.getYScale(),h=s.values.length,u=l.values.length,c=.5*1/h,f=.5*1/u;s.isCategory&&l.isCategory?(n=[n-c,n-c,n+c,n+c],a=[a-f,a+f,a+f,a-f]):I(n)?(o=n,n=[o[0],o[0],o[1],o[1]],a=[a-f/2,a+f/2,a+f/2,a-f/2]):I(a)&&(o=a,a=[o[0],o[1],o[1],o[0]],n=[n-c/2,n-c/2,n+c/2,n+c/2]),e.x=n,e.y=a}return e},r}(ze);Xe("schema",{defaultShapeType:""});var lw=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.type="schema",t.shapeType="schema",t.generatePoints=!0,t}return r.prototype.createShapePointsCfg=function(t){var e=i.prototype.createShapePointsCfg.call(this,t),n,a=this.getAttribute("size");if(a){n=this.getAttributeValues(a,t)[0];var o=this.coordinate,s=Ti(o);n=n/s}else this.defaultSize||(this.defaultSize=gs(this)),n=this.defaultSize;return e.size=n,e},r}(ze);function hw(i){if(!I(i))return[];var r=Qt(i);return At(i,function(t){return t/r})}Xe("violin",{defaultShapeType:"violin",getDefaultPoints:function(i){var r=i.size/2,t=[],e=hw(i._size);return M(i.y,function(n,a){var o=e[a]*r,s=a===0,l=a===i.y.length-1;t.push({isMin:s,isMax:l,x:i.x-o,y:n}),t.unshift({isMin:s,isMax:l,x:i.x+o,y:n})}),t}});j("violin","violin",{draw:function(i,r){var t=et(i,!0,!0),e=this.parsePath(cf(i.points));return r.addShape("path",{attrs:m(m({},t),{path:e}),name:"violin"})},getMarker:function(i){var r=i.color;return{symbol:"circle",style:{r:4,fill:r}}}});var uw=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.type="violin",t.shapeType="violin",t.generatePoints=!0,t}return r.prototype.createShapePointsCfg=function(t){var e=i.prototype.createShapePointsCfg.call(this,t),n,a=this.getAttribute("size");if(a){n=this.getAttributeValues(a,t)[0];var o=this.coordinate,s=Ti(o);n=n/s}else this.defaultSize||(this.defaultSize=gs(this)),n=this.defaultSize;return e.size=n,e._size=A(t[$],[this._sizeField]),e},r.prototype.initAttributes=function(){var t=this.attributeOption,e=t.size?t.size.fields[0]:this._sizeField?this._sizeField:"size";this._sizeField=e,delete t.size,i.prototype.initAttributes.call(this)},r}(ze);j("area","line",{draw:function(i,r){var t=aa(i,!0,!1,this),e=r.addShape({type:"path",attrs:t,name:"area"});return e},getMarker:function(i){var r=i.color;return{symbol:function(t,e,n){return n===void 0&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:r,fill:null}}}});j("area","smooth",{draw:function(i,r){var t=this.coordinate,e=aa(i,!1,!0,this,Of(t)),n=r.addShape({type:"path",attrs:e,name:"area"});return n},getMarker:function(i){var r=i.color;return{symbol:function(t,e,n){return n===void 0&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:r}}}});j("area","smooth-line",{draw:function(i,r){var t=this.coordinate,e=aa(i,!0,!0,this,Of(t)),n=r.addShape({type:"path",attrs:e,name:"area"});return n},getMarker:function(i){var r=i.color;return{symbol:function(t,e,n){return n===void 0&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:r,fill:null}}}});function go(i,r){return["C",i.x*1/2+r.x*1/2,i.y,i.x*1/2+r.x*1/2,r.y,r.x,r.y]}function yo(i,r){var t=[];t.push({x:r.x,y:r.y}),t.push(i);var e=["Q"];return M(t,function(n){e.push(n.x,n.y)}),e}function cw(i,r,t){var e=yo(r,t),n=[["M",i.x,i.y]];return n.push(e),n}function fw(i,r){var t=yo(i[1],r),e=yo(i[3],r),n=[["M",i[0].x,i[0].y]];return n.push(e),n.push(["L",i[3].x,i[3].y]),n.push(["L",i[2].x,i[2].y]),n.push(t),n.push(["L",i[1].x,i[1].y]),n.push(["L",i[0].x,i[0].y]),n.push(["Z"]),n}j("edge","arc",{draw:function(i,r){var t=et(i,!0,!1,"lineWidth"),e=i.points,n=e.length>2?"weight":"normal",a;if(i.isInCircle){var o={x:0,y:1};return n==="normal"?a=cw(e[0],e[1],o):(t.fill=t.stroke,a=fw(e,o)),a=this.parsePath(a),r.addShape("path",{attrs:m(m({},t),{path:a})})}else{if(n==="normal")return e=this.parsePoints(e),a=Pc((e[1].x+e[0].x)/2,e[0].y,Math.abs(e[1].x-e[0].x)/2,Math.PI,Math.PI*2),r.addShape("path",{attrs:m(m({},t),{path:a})});var s=go(e[1],e[3]),l=go(e[2],e[0]);return a=[["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],s,["L",e[3].x,e[3].y],["L",e[2].x,e[2].y],l,["Z"]],a=this.parsePath(a),t.fill=t.stroke,r.addShape("path",{attrs:m(m({},t),{path:a})})}},getMarker:function(i){return{symbol:"circle",style:{r:4.5,fill:i.color}}}});function vw(i,r){var t=go(i,r),e=[["M",i.x,i.y]];return e.push(t),e}j("edge","smooth",{draw:function(i,r){var t=et(i,!0,!1,"lineWidth"),e=i.points,n=this.parsePath(vw(e[0],e[1]));return r.addShape("path",{attrs:m(m({},t),{path:n})})},getMarker:function(i){return{symbol:"circle",style:{r:4.5,fill:i.color}}}});var Qi=1/3;function pw(i,r){var t=[];t.push({x:i.x,y:i.y*(1-Qi)+r.y*Qi}),t.push({x:r.x,y:i.y*(1-Qi)+r.y*Qi}),t.push(r);var e=[["M",i.x,i.y]];return M(t,function(n){e.push(["L",n.x,n.y])}),e}j("edge","vhv",{draw:function(i,r){var t=et(i,!0,!1,"lineWidth"),e=i.points,n=this.parsePath(pw(e[0],e[1]));return r.addShape("path",{attrs:m(m({},t),{path:n})})},getMarker:function(i){return{symbol:"circle",style:{r:4.5,fill:i.color}}}});j("interval","funnel",{getPoints:function(i){return i.size=i.size*2,vs(i)},draw:function(i,r){var t=et(i,!1,!0),e=this.parsePath(Yf(i.points,i.nextPoints,!1)),n=r.addShape("path",{attrs:m(m({},t),{path:e}),name:"interval"});return n},getMarker:function(i){var r=i.color;return{symbol:"square",style:{r:4,fill:r}}}});j("interval","hollow-rect",{draw:function(i,r){var t=et(i,!0,!1),e=r,n=i==null?void 0:i.background;if(n){e=r.addGroup();var a=vf(i),o=Rf(i,this.parsePoints(i.points),this.coordinate);e.addShape("path",{attrs:m(m({},a),{path:o}),zIndex:-1,name:ts})}var s=this.parsePath(ps(i.points)),l=e.addShape("path",{attrs:m(m({},t),{path:s}),name:"interval"});return n?e:l},getMarker:function(i){var r=i.color,t=i.isInPolar;return t?{symbol:"circle",style:{r:4.5,stroke:r,fill:null}}:{symbol:"square",style:{r:4,stroke:r,fill:null}}}});function gw(i){var r=i.x,t=i.y,e=i.y0;return I(t)?t.map(function(n,a){return{x:I(r)?r[a]:r,y:n}}):[{x:r,y:e},{x:r,y:t}]}j("interval","line",{getPoints:function(i){return gw(i)},draw:function(i,r){var t=et(i,!0,!1,"lineWidth"),e=Bt(m({},t),["fill"]),n=this.parsePath(ps(i.points,!1)),a=r.addShape("path",{attrs:m(m({},e),{path:n}),name:"interval"});return a},getMarker:function(i){var r=i.color;return{symbol:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]},style:{r:5,stroke:r}}}});j("interval","pyramid",{getPoints:function(i){return i.size=i.size*2,vs(i)},draw:function(i,r){var t=et(i,!1,!0),e=this.parsePath(Yf(i.points,i.nextPoints,!0)),n=r.addShape("path",{attrs:m(m({},t),{path:e}),name:"interval"});return n},getMarker:function(i){var r=i.color;return{symbol:"square",style:{r:4,fill:r}}}});function dw(i){var r=i.x,t=i.y,e=i.y0,n=i.size,a,o;I(t)?(a=t[0],o=t[1]):(a=e,o=t);var s=r+n/2,l=r-n/2;return[{x:r,y:a},{x:r,y:o},{x:l,y:a},{x:s,y:a},{x:l,y:o},{x:s,y:o}]}function yw(i){return[["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["M",i[2].x,i[2].y],["L",i[3].x,i[3].y],["M",i[4].x,i[4].y],["L",i[5].x,i[5].y]]}j("interval","tick",{getPoints:function(i){return dw(i)},draw:function(i,r){var t=et(i,!0,!1),e=this.parsePath(yw(i.points)),n=r.addShape("path",{attrs:m(m({},t),{path:e}),name:"interval"});return n},getMarker:function(i){var r=i.color;return{symbol:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},style:{r:5,stroke:r}}}});var mw=function(i,r,t){var e=i.x,n=i.y,a=r.x,o=r.y,s;switch(t){case"hv":s=[{x:a,y:n}];break;case"vh":s=[{x:e,y:o}];break;case"hvh":var l=(a+e)/2;s=[{x:l,y:n},{x:l,y:o}];break;case"vhv":var h=(n+o)/2;s=[{x:e,y:h},{x:a,y:h}];break}return s};function xw(i,r){var t=[];return M(i,function(e,n){var a=i[n+1];if(t.push(e),a){var o=mw(e,a,r);t=t.concat(o)}}),t}function ww(i){return i.map(function(r,t){return t===0?["M",r.x,r.y]:["L",r.x,r.y]})}function Cw(i,r){var t=na(i.points,i.connectNulls,i.showSinglePoint),e=[];return M(t,function(n){var a=xw(n,r);e=e.concat(ww(a))}),m(m({},et(i,!0,!1,"lineWidth")),{path:e})}M(["hv","vh","hvh","vhv"],function(i){j("line",i,{draw:function(r,t){var e=Cw(r,i),n=t.addShape({type:"path",attrs:e,name:"line"});return n},getMarker:function(r){return pf(r,i)}})});M(nw,function(i){j("point",i,{draw:function(r,t){return ds(this,r,t,i,!0)},getMarker:function(r){var t=r.color;return{symbol:nr[i],style:{r:4.5,stroke:t,fill:null}}}})});j("point","image",{draw:function(i,r){var t=et(i,!1,!1,"r").r,e=this.parsePoints(i.points),n=e[0];if(i.isStack)n=e[1];else if(e.length>1){for(var a=r.addGroup(),o=0,s=e;o<s.length;o++){var l=s[o];a.addShape("image",{attrs:{x:l.x-t/2,y:l.y-t,width:t,height:t,img:i.shape[1]}})}return a}return r.addShape("image",{attrs:{x:n.x-t/2,y:n.y-t,width:t,height:t,img:i.shape[1]}})},getMarker:function(i){var r=i.color;return{symbol:"circle",style:{r:4.5,fill:r}}}});M(Gf,function(i){j("point",i,{draw:function(r,t){return ds(this,r,t,i,!1)},getMarker:function(r){var t=r.color;return{symbol:nr[i]||i,style:{r:4.5,fill:t}}}})});function yh(i){var r=I(i)?i:[i],t=r[0],e=r[r.length-1],n=r.length>1?r[1]:t,a=r.length>3?r[3]:e,o=r.length>2?r[2]:n;return{min:t,max:e,min1:n,max1:a,median:o}}function mh(i,r,t){var e=t/2,n;if(I(r)){var a=yh(r),o=a.min,s=a.max,l=a.median,h=a.min1,u=a.max1,c=i-e,f=i+e;n=[[c,s],[f,s],[i,s],[i,u],[c,h],[c,u],[f,u],[f,h],[i,h],[i,o],[c,o],[f,o],[c,l],[f,l]]}else{r=E(r)?.5:r;var v=yh(i),o=v.min,s=v.max,l=v.median,h=v.min1,u=v.max1,p=r-e,g=r+e;n=[[o,p],[o,g],[o,r],[h,r],[h,p],[h,g],[u,g],[u,p],[u,r],[s,r],[s,p],[s,g],[l,p],[l,g]]}return n.map(function(d){return{x:d[0],y:d[1]}})}function Mw(i){return[["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["M",i[2].x,i[2].y],["L",i[3].x,i[3].y],["M",i[4].x,i[4].y],["L",i[5].x,i[5].y],["L",i[6].x,i[6].y],["L",i[7].x,i[7].y],["L",i[4].x,i[4].y],["Z"],["M",i[8].x,i[8].y],["L",i[9].x,i[9].y],["M",i[10].x,i[10].y],["L",i[11].x,i[11].y],["M",i[12].x,i[12].y],["L",i[13].x,i[13].y]]}j("schema","box",{getPoints:function(i){var r=i.x,t=i.y,e=i.size;return mh(r,t,e)},draw:function(i,r){var t=et(i,!0,!1),e=this.parsePath(Mw(i.points)),n=r.addShape("path",{attrs:m(m({},t),{path:e,name:"schema"})});return n},getMarker:function(i){var r=i.color;return{symbol:function(t,e,n){var a=[e-6,e-3,e,e+3,e+6],o=mh(t,a,n);return[["M",o[0].x+1,o[0].y],["L",o[1].x-1,o[1].y],["M",o[2].x,o[2].y],["L",o[3].x,o[3].y],["M",o[4].x,o[4].y],["L",o[5].x,o[5].y],["L",o[6].x,o[6].y],["L",o[7].x,o[7].y],["L",o[4].x,o[4].y],["Z"],["M",o[8].x,o[8].y],["L",o[9].x,o[9].y],["M",o[10].x+1,o[10].y],["L",o[11].x-1,o[11].y],["M",o[12].x,o[12].y],["L",o[13].x,o[13].y]]},style:{r:6,lineWidth:1,stroke:r}}}});function Sw(i){var r=I(i)?i:[i],t=r.sort(function(e,n){return n-e});return Zm(t,4,t[t.length-1])}function xh(i,r,t){var e=Sw(r);return[{x:i,y:e[0]},{x:i,y:e[1]},{x:i-t/2,y:e[2]},{x:i-t/2,y:e[1]},{x:i+t/2,y:e[1]},{x:i+t/2,y:e[2]},{x:i,y:e[2]},{x:i,y:e[3]}]}function Aw(i){return[["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["M",i[2].x,i[2].y],["L",i[3].x,i[3].y],["L",i[4].x,i[4].y],["L",i[5].x,i[5].y],["Z"],["M",i[6].x,i[6].y],["L",i[7].x,i[7].y]]}j("schema","candle",{getPoints:function(i){var r=i.x,t=i.y,e=i.size;return xh(r,t,e)},draw:function(i,r){var t=et(i,!0,!0),e=this.parsePath(Aw(i.points)),n=r.addShape("path",{attrs:m(m({},t),{path:e,name:"schema"})});return n},getMarker:function(i){var r=i.color;return{symbol:function(t,e,n){var a=[e+7.5,e+3,e-3,e-7.5],o=xh(t,a,n);return[["M",o[0].x,o[0].y],["L",o[1].x,o[1].y],["M",o[2].x,o[2].y],["L",o[3].x,o[3].y],["L",o[4].x,o[4].y],["L",o[5].x,o[5].y],["Z"],["M",o[6].x,o[6].y],["L",o[7].x,o[7].y]]},style:{lineWidth:1,stroke:r,fill:r,r:6}}}});function bw(i,r){var t=Math.abs(i[0].x-i[2].x),e=Math.abs(i[0].y-i[2].y),n=Math.min(t,e);r&&(n=J(r,0,Math.min(t,e))),n=n/2;var a=(i[0].x+i[2].x)/2,o=(i[0].y+i[2].y)/2;return{x:a-n,y:o-n,width:n*2,height:n*2}}j("polygon","square",{draw:function(i,r){if(!se(i.points)){var t=et(i,!0,!0),e=this.parsePoints(i.points);return r.addShape("rect",{attrs:m(m({},t),bw(e,i.size)),name:"polygon"})}},getMarker:function(i){var r=i.color;return{symbol:"square",style:{r:4,fill:r}}}});j("violin","smooth",{draw:function(i,r){var t=et(i,!0,!0),e=this.parsePath(ff(i.points));return r.addShape("path",{attrs:m(m({},t),{path:e})})},getMarker:function(i){var r=i.color;return{symbol:"circle",style:{stroke:null,r:4,fill:r}}}});j("violin","hollow",{draw:function(i,r){var t=et(i,!0,!1),e=this.parsePath(cf(i.points));return r.addShape("path",{attrs:m(m({},t),{path:e})})},getMarker:function(i){var r=i.color;return{symbol:"circle",style:{r:4,fill:null,stroke:r}}}});j("violin","hollow-smooth",{draw:function(i,r){var t=et(i,!0,!1),e=this.parsePath(ff(i.points));return r.addShape("path",{attrs:m(m({},t),{path:e})})},getMarker:function(i){var r=i.color;return{symbol:"circle",style:{r:4,fill:null,stroke:r}}}});var Tw=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getLabelValueDir=function(t){var e="y",n=t.points;return n[0][e]<=n[2][e]?1:-1},r.prototype.getLabelOffsetPoint=function(t,e,n,a){var o,s=i.prototype.getLabelOffsetPoint.call(this,t,e,n),l=this.getCoordinate(),h=l.isTransposed,u=h?"x":"y",c=this.getLabelValueDir(t.mappingData);return s=m(m({},s),(o={},o[u]=s[u]*c,o)),l.isReflect("x")&&(s=m(m({},s),{x:s.x*-1})),l.isReflect("y")&&(s=m(m({},s),{y:s.y*-1})),s},r.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),a=e.theme;return O({},n,a.labels,t.position==="middle"?{offset:0}:{},t)},r.prototype.setLabelPosition=function(t,e,n,a){var o=this.getCoordinate(),s=o.isTransposed,l=e.points,h=o.convert(l[0]),u=o.convert(l[2]),c=this.getLabelValueDir(e),f,v,p,g,d=I(e.shape)?e.shape[0]:e.shape;if(d==="funnel"||d==="pyramid"){var y=A(e,"nextPoints"),w=A(e,"points");if(y){var x=o.convert(w[0]),C=o.convert(w[1]),S=o.convert(y[0]),b=o.convert(y[1]);s?(f=Math.min(S.y,x.y),p=Math.max(S.y,x.y),v=(C.x+b.x)/2,g=(x.x+S.x)/2):(f=Math.min((C.y+b.y)/2,(x.y+S.y)/2),p=Math.max((C.y+b.y)/2,(x.y+S.y)/2),v=b.x,g=x.x)}else f=Math.min(u.y,h.y),p=Math.max(u.y,h.y),v=u.x,g=h.x}else f=Math.min(u.y,h.y),p=Math.max(u.y,h.y),v=u.x,g=h.x;switch(a){case"right":t.x=v,t.y=(f+p)/2,t.textAlign=A(t,"textAlign",c>0?"left":"right");break;case"left":t.x=g,t.y=(f+p)/2,t.textAlign=A(t,"textAlign",c>0?"left":"right");break;case"bottom":s&&(t.x=(v+g)/2),t.y=p,t.textAlign=A(t,"textAlign","center"),t.textBaseline=A(t,"textBaseline",c>0?"bottom":"top");break;case"middle":s&&(t.x=(v+g)/2),t.y=(f+p)/2,t.textAlign=A(t,"textAlign","center"),t.textBaseline=A(t,"textBaseline","middle");break;case"top":s&&(t.x=(v+g)/2),t.y=f,t.textAlign=A(t,"textAlign","center"),t.textBaseline=A(t,"textBaseline",c>0?"bottom":"top");break}},r}(is),Ki=Math.PI/2,Hf=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=0;if(W(t))n=t;else if(H(t)&&t.indexOf("%")!==-1){var a=e.getRadius();e.innerRadius>0&&(a=a*(1-e.innerRadius)),n=parseFloat(t)*.01*a}return n},r.prototype.getLabelItems=function(t){var e=i.prototype.getLabelItems.call(this,t),n=this.geometry.getYScale();return At(e,function(a){if(a&&n){var o=n.scale(A(a.data,n.field));return m(m({},a),{percent:o})}return a})},r.prototype.getLabelAlign=function(t){var e=this.getCoordinate(),n;if(t.labelEmit)n=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(!e.isTransposed)n="center";else{var a=e.getCenter(),o=t.offset;Math.abs(t.x-a.x)<1?n="center":t.angle>Math.PI||t.angle<=0?n=o>0?"left":"right":n=o>0?"right":"left"}return n},r.prototype.getLabelPoint=function(t,e,n){var a=1,o,s=t.content[n];this.isToMiddle(e)?o=this.getMiddlePoint(e.points):(t.content.length===1&&n===0?n=1:n===0&&(a=-1),o=this.getArcPoint(e,n));var l=t.offset*a,h=this.getPointAngle(o),u=t.labelEmit,c=this.getCirclePoint(h,l,o,u);return c.r===0?c.content="":(c.content=s,c.angle=h,c.color=e.color),c.rotate=t.autoRotate?this.getLabelRotate(h,l,u):t.rotate,c.start={x:o.x,y:o.y},c},r.prototype.getArcPoint=function(t,e){return e===void 0&&(e=0),!I(t.x)&&!I(t.y)?{x:t.x,y:t.y}:{x:I(t.x)?t.x[e]:t.x,y:I(t.y)?t.y[e]:t.y}},r.prototype.getPointAngle=function(t){return br(this.getCoordinate(),t)},r.prototype.getCirclePoint=function(t,e,n,a){var o=this.getCoordinate(),s=o.getCenter(),l=ea(o,n);if(l===0)return m(m({},s),{r:l});var h=t;if(o.isTransposed&&l>e&&!a){var u=Math.asin(e/(2*l));h=t+u*2}else l=l+e;return{x:s.x+l*Math.cos(h),y:s.y+l*Math.sin(h),r:l}},r.prototype.getLabelRotate=function(t,e,n){var a=t+Ki;return n&&(a-=Ki),a&&(a>Ki?a=a-Math.PI:a<-Ki&&(a=a+Math.PI)),a},r.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,a={x:0,y:0};return M(t,function(o){a.x+=o.x,a.y+=o.y}),a.x/=n,a.y/=n,a=e.convert(a),a},r.prototype.isToMiddle=function(t){return t.x.length>2},r}(is),Lw=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.defaultLayout="distribute",t}return r.prototype.getDefaultLabelCfg=function(t,e){var n=i.prototype.getDefaultLabelCfg.call(this,t,e);return O({},n,A(this.geometry.theme,"pieLabels",{}))},r.prototype.getLabelOffset=function(t){return i.prototype.getLabelOffset.call(this,t)||0},r.prototype.getLabelRotate=function(t,e,n){var a;return e<0&&(a=t,a>Math.PI/2&&(a=a-Math.PI),a<-Math.PI/2&&(a=a+Math.PI)),a},r.prototype.getLabelAlign=function(t){var e=this.getCoordinate(),n=e.getCenter(),a;return t.angle<=Math.PI/2&&t.x>=n.x?a="left":a="right",t.offset<=0&&(a==="right"?a="left":a="right"),a},r.prototype.getArcPoint=function(t){return t},r.prototype.getPointAngle=function(t){var e=this.getCoordinate(),n={x:I(t.x)?t.x[0]:t.x,y:t.y[0]},a={x:I(t.x)?t.x[1]:t.x,y:t.y[1]},o,s=br(e,n);if(t.points&&t.points[0].y===t.points[1].y)o=s;else{var l=br(e,a);s>=l&&(l=l+Math.PI*2),o=s+(l-s)/2}return o},r.prototype.getCirclePoint=function(t,e){var n=this.getCoordinate(),a=n.getCenter(),o=n.getRadius()+e;return m(m({},it(a.x,a.y,o,t)),{angle:t,r:o})},r}(Hf),wh=4;function Ew(i,r,t,e,n,a){var o=!0,s=e.start,l=e.end,h=Math.min(s.y,l.y),u=Math.abs(s.y-l.y),c,f=0,v=Number.MIN_VALUE,p=r.map(function(S){return S.y>f&&(f=S.y),S.y<v&&(v=S.y),{size:t,targets:[S.y-h]}});for(v-=h,f-h>u&&(u=f-h);o;)for(p.forEach(function(S){var b=(Math.min.apply(v,S.targets)+Math.max.apply(v,S.targets))/2;S.pos=Math.min(Math.max(v,b-S.size/2),u-S.size)}),o=!1,c=p.length;c--;)if(c>0){var g=p[c-1],d=p[c];g.pos+g.size>d.pos&&(g.size+=d.size,g.targets=g.targets.concat(d.targets),g.pos+g.size>u&&(g.pos=u-g.size),p.splice(c,1),o=!0)}c=0,p.forEach(function(S){var b=h+t/2;S.targets.forEach(function(){r[c].y=S.pos+b,b+=t,c++})});for(var y={},w=0,x=i;w<x.length;w++){var C=x[w];y[C.get("id")]=C}r.forEach(function(S){var b=S.r*S.r,L=Math.pow(Math.abs(S.y-n.y),2);if(b<L)S.x=n.x;else{var B=Math.sqrt(b-L);a?S.x=n.x+B:S.x=n.x-B}var P=y[S.id];P.attr("x",S.x),P.attr("y",S.y);var F=pe(P.getChildren(),function(D){return D.get("type")==="text"});F&&(F.attr("y",S.y),F.attr("x",S.x))})}function Bw(i,r,t,e){if(!(!i.length||!r.length)){var n=i[0]?i[0].offset:0,a=r[0].get("coordinate"),o=a.getRadius(),s=a.getCenter();if(n>0){var l=14,h=o+n,u=h*2+l*2,c={start:a.start,end:a.end},f=[[],[]];i.forEach(function(v){v&&(v.textAlign==="right"?f[0].push(v):f[1].push(v))}),f.forEach(function(v,p){var g=u/l;v.length>g&&(v.sort(function(d,y){return y["..percent"]-d["..percent"]}),v.splice(g,v.length-g)),v.sort(function(d,y){return d.y-y.y}),Ew(r,v,l,c,s,p)})}M(i,function(v){if(v&&v.labelLine){var p=v.offset,g=v.angle,d=it(s.x,s.y,o,g),y=it(s.x,s.y,o+p/2,g),w=v.x+A(v,"offsetX",0),x=v.y+A(v,"offsetY",0),C={x:w-Math.cos(g)*wh,y:x-Math.sin(g)*wh};Q(v.labelLine)||(v.labelLine={}),v.labelLine.path=["M ".concat(d.x),"".concat(d.y," Q").concat(y.x),"".concat(y.y," ").concat(C.x),C.y].join(",")}})}}function Vf(i,r,t){var e=i.filter(function(p){return!p.invisible});e.sort(function(p,g){return p.y-g.y});var n=!0,a=t.minY,o=t.maxY,s=Math.abs(a-o),l,h=0,u=Number.MIN_VALUE,c=e.map(function(p){return p.y>h&&(h=p.y),p.y<u&&(u=p.y),{content:p.content,size:r,targets:[p.y-a],pos:null}});for(u-=a,h-a>s&&(s=h-a);n;)for(c.forEach(function(p){var g=(Math.min.apply(u,p.targets)+Math.max.apply(u,p.targets))/2;p.pos=Math.min(Math.max(u,g-p.size/2),s-p.size),p.pos=Math.max(0,p.pos)}),n=!1,l=c.length;l--;)if(l>0){var f=c[l-1],v=c[l];f.pos+f.size>v.pos&&(f.size+=v.size,f.targets=f.targets.concat(v.targets),f.pos+f.size>s&&(f.pos=s-f.size),c.splice(l,1),n=!0)}l=0,c.forEach(function(p){var g=a+r/2;p.targets.forEach(function(){e[l].y=p.pos+g,g+=r,l++})})}var Ch=4;function Iw(i,r){var t=r.getCenter(),e=r.getRadius();if(i&&i.labelLine){var n=i.angle,a=i.offset,o=it(t.x,t.y,e,n),s=i.x+A(i,"offsetX",0)*(Math.cos(n)>0?1:-1),l=i.y+A(i,"offsetY",0)*(Math.sin(n)>0?1:-1),h={x:s-Math.cos(n)*Ch,y:l-Math.sin(n)*Ch},u=i.labelLine.smooth,c=[],f=h.x-t.x,v=h.y-t.y,p=Math.atan(v/f);if(f<0&&(p+=Math.PI),u===!1){Q(i.labelLine)||(i.labelLine={});var g=0;(n<0&&n>-Math.PI/2||n>Math.PI*1.5)&&h.y>o.y&&(g=1),n>=0&&n<Math.PI/2&&h.y>o.y&&(g=1),n>=Math.PI/2&&n<Math.PI&&o.y>h.y&&(g=1),(n<-Math.PI/2||n>=Math.PI&&n<Math.PI*1.5)&&o.y>h.y&&(g=1);var d=a/2>4?4:Math.max(a/2-1,0),y=it(t.x,t.y,e+d,n),w=it(t.x,t.y,e+a/2,p),x=0;c.push("M ".concat(o.x," ").concat(o.y)),c.push("L ".concat(y.x," ").concat(y.y)),c.push("A ".concat(t.x," ").concat(t.y," 0 ").concat(x," ").concat(g," ").concat(w.x," ").concat(w.y)),c.push("L ".concat(h.x," ").concat(h.y))}else{var y=it(t.x,t.y,e+(a/2>4?4:Math.max(a/2-1,0)),n),C=o.x<t.x?1:-1;c.push("M ".concat(h.x," ").concat(h.y));var S=(o.y-t.y)/(o.x-t.x),b=(h.y-t.y)/(h.x-t.x);Math.abs(S-b)>Math.pow(Math.E,-16)&&c.push.apply(c,["C",h.x+C*4,h.y,2*y.x-o.x,2*y.y-o.y,o.x,o.y]),c.push("L ".concat(o.x," ").concat(o.y))}i.labelLine.path=c.join(" ")}}function kw(i,r,t,e){var n=Ht(i,function(b){return!E(b)}),a=r[0]&&r[0].get("coordinate");if(a){for(var o=a.getCenter(),s=a.getRadius(),l={},h=0,u=r;h<u.length;h++){var c=u[h];l[c.get("id")]=c}var f=A(n[0],"labelHeight",14),v=A(n[0],"offset",0);if(!(v<=0)){var p="left",g="right",d=He(n,function(b){return b.x<o.x?p:g}),y=a.start,w=a.end,x=Math.min((s+v+f)*2,a.getHeight()),C=x/2,S={minX:y.x,maxX:w.x,minY:o.y-C,maxY:o.y+C};M(d,function(b,L){var B=Math.floor(x/f);b.length>B&&(b.sort(function(P,F){return F.percent-P.percent}),M(b,function(P,F){F+1>B&&(l[P.id].set("visible",!1),P.invisible=!0)})),Vf(b,f,S)}),M(d,function(b,L){M(b,function(B){var P=L===g,F=l[B.id],D=F.getChildByIndex(0);if(D){var Y=s+v,z=B.y-o.y,q=Math.pow(Y,2),ut=Math.pow(z,2),at=q-ut>0?q-ut:0,St=Math.sqrt(at),lt=Math.abs(Math.cos(B.angle)*Y);P?B.x=o.x+Math.max(St,lt):B.x=o.x-Math.max(St,lt)}D&&(D.attr("y",B.y),D.attr("x",B.x)),Iw(B,a)})})}}}var mo=4,Pw=4,Mh=4;function Fw(i,r,t){var e=r.getCenter(),n=r.getRadius(),a={x:i.x-(t?Mh:-Mh),y:i.y},o=it(e.x,e.y,n+mo,i.angle),s={x:a.x,y:a.y},l={x:o.x,y:o.y},h=it(e.x,e.y,n,i.angle),u="";if(a.y!==o.y){var c=t?4:-4;s.y=a.y,i.angle<0&&i.angle>=-Math.PI/2&&(s.x=Math.max(o.x,a.x-c),a.y<o.y?l.y=s.y:(l.y=o.y,l.x=Math.max(l.x,s.x-c))),i.angle>0&&i.angle<Math.PI/2&&(s.x=Math.max(o.x,a.x-c),a.y>o.y?l.y=s.y:(l.y=o.y,l.x=Math.max(l.x,s.x-c))),i.angle>Math.PI/2&&(s.x=Math.min(o.x,a.x-c),a.y>o.y?l.y=s.y:(l.y=o.y,l.x=Math.min(l.x,s.x-c))),i.angle<-Math.PI/2&&(s.x=Math.min(o.x,a.x-c),a.y<o.y?l.y=s.y:(l.y=o.y,l.x=Math.min(l.x,s.x-c)))}u=["M ".concat(a.x,",").concat(a.y),"L ".concat(s.x,",").concat(s.y),"L ".concat(l.x,",").concat(l.y),"L ".concat(o.x,",").concat(o.y),"L ".concat(h.x,",").concat(h.y)].join(" "),i.labelLine=O({},i.labelLine,{path:u})}function Ow(i,r,t,e){var n=r[0]&&r[0].get("coordinate");if(n){for(var a=n.getCenter(),o=n.getRadius(),s={},l=0,h=r;l<h.length;l++){var u=h[l];s[u.get("id")]=u}var c=A(i[0],"labelHeight",14),f=Math.max(A(i[0],"offset",0),mo);M(i,function(b){if(b){var L=A(s,[b.id]);if(L){var B=b.x>a.x||b.x===a.x&&b.y>a.y,P=E(b.offsetX)?Pw:b.offsetX,F=it(a.x,a.y,o+mo,b.angle),D=f+P;b.x=a.x+(B?1:-1)*(o+D),b.y=F.y}}});var v=n.start,p=n.end,g="left",d="right",y=He(i,function(b){return b.x<a.x?g:d}),w=(o+f)*2+c;M(y,function(b){var L=b.length*c;L>w&&(w=Math.min(L,Math.abs(v.y-p.y)))});var x={minX:v.x,maxX:p.x,minY:a.y-w/2,maxY:a.y+w/2};M(y,function(b,L){var B=w/c;b.length>B&&(b.sort(function(P,F){return F.percent-P.percent}),M(b,function(P,F){F>B&&(s[P.id].set("visible",!1),P.invisible=!0)})),Vf(b,c,x)});var C=x.minY,S=x.maxY;M(y,function(b,L){var B=L===d;M(b,function(P){var F=A(s,P&&[P.id]);if(F){if(P.y<C||P.y>S){F.set("visible",!1);return}var D=F.getChildByIndex(0),Y=D.getCanvasBBox(),z={x:B?Y.x:Y.maxX,y:Y.y+Y.height/2};Ei(D,P.x-z.x,P.y-z.y),P.labelLine&&Fw(P,n,B)}})})}}function Dw(i,r,t,e){M(r,function(n){var a=e.minX,o=e.minY,s=e.maxX,l=e.maxY,h=n.getCanvasBBox(),u=h.minX,c=h.minY,f=h.maxX,v=h.maxY,p=h.x,g=h.y,d=h.width,y=h.height,w=p,x=g;(u<a||f<a)&&(w=a),(c<o||v<o)&&(x=o),u>s?w=s-d:f>s&&(w=w-(f-s)),c>l?x=l-y:v>l&&(x=x-(v-l)),(w!==p||x!==g)&&Ei(n,w-p,x-g)})}function Rw(i,r,t,e){M(r,function(n,a){var o=n.getCanvasBBox(),s=t[a].getBBox();(o.minX<s.minX||o.minY<s.minY||o.maxX>s.maxX||o.maxY>s.maxY)&&n.remove(!0)})}var Yw=100,Xf=function(){function i(r){r===void 0&&(r={}),this.bitmap={};var t=r.xGap,e=t===void 0?1:t,n=r.yGap,a=n===void 0?8:n;this.xGap=e,this.yGap=a}return i.prototype.hasGap=function(r){for(var t=!0,e=this.bitmap,n=Math.round(r.minX),a=Math.round(r.maxX),o=Math.round(r.minY),s=Math.round(r.maxY),l=n;l<=a;l+=1){if(!e[l]){e[l]={};continue}if(l===n||l===a){for(var h=o;h<=s;h++)if(e[l][h]){t=!1;break}}else if(e[l][o]||e[l][s]){t=!1;break}}return t},i.prototype.fillGap=function(r){for(var t=this.bitmap,e=Math.round(r.minX),n=Math.round(r.maxX),a=Math.round(r.minY),o=Math.round(r.maxY),s=e;s<=n;s+=1)t[s]||(t[s]={});for(var s=e;s<=n;s+=this.xGap){for(var l=a;l<=o;l+=this.yGap)t[s][l]=!0;t[s][o]=!0}if(this.yGap!==1)for(var s=a;s<=o;s+=1)t[e][s]=!0,t[n][s]=!0;if(this.xGap!==1)for(var s=e;s<=n;s+=1)t[s][a]=!0,t[s][o]=!0},i.prototype.destroy=function(){this.bitmap={}},i}();function Gw(i,r,t){t===void 0&&(t=Yw);var e=-1,n=i.attr(),a=n.x,o=n.y,s=i.getCanvasBBox(),l=Math.sqrt(s.width*s.width+s.height*s.height),h,u=-e,c=0,f=0,v=function(y){var w=y*.1;return[w*Math.cos(w),w*Math.sin(w)]};if(r.hasGap(s))return r.fillGap(s),!0;for(var p=!1,g=0,d={};Math.min(Math.abs(c),Math.abs(f))<l&&g<t;)if(h=v(u+=e),c=~~h[0],f=~~h[1],!(!c&&!f||d["".concat(c,"-").concat(f)])&&(i.attr({x:a+c,y:o+f}),c+f<0&&i.attr("textAlign","right"),g++,r.hasGap(i.getCanvasBBox()))){r.fillGap(i.getCanvasBBox()),p=!0,d["".concat(c,"-").concat(f)]=!0;break}return p}function Hw(i,r,t,e){var n=i.getCanvasBBox(),a=n.width,o=n.height,s={x:r,y:t,textAlign:"center"};switch(e){case 0:s.y-=o+1,s.x+=1,s.textAlign="left";break;case 1:s.y-=o+1,s.x-=1,s.textAlign="right";break;case 2:s.y+=o+1,s.x-=1,s.textAlign="right";break;case 3:s.y+=o+1,s.x+=1,s.textAlign="left";break;case 5:s.y-=o*2+2;break;case 6:s.y+=o*2+2;break;case 7:s.x+=a+1,s.textAlign="left";break;case 8:s.x-=a+1,s.textAlign="right";break}return i.attr(s),i.getCanvasBBox()}function Vw(i,r,t,e){var n=new Xf;M(r,function(a){var o=a.find(function(s){return s.get("type")==="text"});Gw(o,n)||a.remove(!0)}),n.destroy()}function Xw(i,r,t,e){var n=new Xf;M(r,function(a){for(var o=a.find(function(v){return v.get("type")==="text"}),s=o.attr(),l=s.x,h=s.y,u=!1,c=0;c<=8;c++){var f=Hw(o,l,h,c);if(n.hasGap(f)){n.fillGap(f),u=!0;break}}u||a.remove(!0)}),n.destroy()}var zw=xu;function Sh(i){if(i.length>4)return[];var r=function(n,a){return[a.x-n.x,a.y-n.y]},t=r(i[0],i[1]),e=r(i[1],i[2]);return[t,e]}function Ji(i,r,t){r===void 0&&(r=0),t===void 0&&(t={x:0,y:0});var e=i.x,n=i.y;return{x:(e-t.x)*Math.cos(-r)+(n-t.y)*Math.sin(-r)+t.x,y:(t.x-e)*Math.sin(-r)+(n-t.y)*Math.cos(-r)+t.y}}function Ah(i){var r=[{x:i.x,y:i.y},{x:i.x+i.width,y:i.y},{x:i.x+i.width,y:i.y+i.height},{x:i.x,y:i.y+i.height}],t=i.rotation;return t?[Ji(r[0],t,r[0]),Ji(r[1],t,r[0]),Ji(r[2],t,r[0]),Ji(r[3],t,r[0])]:r}function bh(i,r){if(i.length>4)return{min:0,max:0};var t=[];return i.forEach(function(e){t.push(zw([e.x,e.y],r))}),{min:Math.min.apply(Math,t),max:Math.max.apply(Math,t)}}function Nw(i,r){return i.max>r.min&&i.min<r.max}function Ww(i){return W(i)&&!Number.isNaN(i)&&i!==1/0&&i!==-1/0}function Th(i){return Object.values(i).every(Ww)}function _w(i,r,t){return t===void 0&&(t=0),!(r.x>i.x+i.width+t||r.x+r.width<i.x-t||r.y>i.y+i.height+t||r.y+r.height<i.y-t)}function $w(i,r){if(!Th(i)||!Th(r))return!1;if(!i.rotation&&!r.rotation)return _w(i,r);for(var t=Ah(i),e=Ah(r),n=vt(vt([],Sh(t),!0),Sh(e),!0),a=0;a<n.length;a++){var o=n[a],s=bh(t,o),l=bh(e,o);if(!Nw(s,l))return!1}return!0}function Uw(i,r,t,e){for(var n=0;n<r.length;n++){var a=r[n];if(r[n].get("visible"))for(var o=n+1;o<r.length;o++){var s=r[o];if(a&&s&&a!==s&&s.get("visible")){var l=lo(a,i[n],A(i[n],"background.padding")),h=lo(s,i[o],A(i[o],"background.padding"));$w(l,h)&&r[o].set("visible",!1)}}}}var Lh={"#5B8FF9":!0},jw=function(i){var r=ui.toRGB(i).toUpperCase();if(Lh[r])return Lh[r];var t=ui.rgb2arr(r),e=t[0],n=t[1],a=t[2],o=(e*299+n*587+a*114)/1e3<128;return o};function qw(i,r,t){if(t.length!==0){var e=t[0].get("element"),n=e.geometry.theme,a=n.labels||{},o=a.fillColorLight,s=a.fillColorDark;t.forEach(function(l,h){var u=r[h],c=u.find(function(y){return y.get("type")==="text"}),f=bt.fromObject(l.getBBox()),v=bt.fromObject(c.getCanvasBBox()),p=!f.contains(v),g=l.attr("fill"),d=jw(g);p?c.attr(n.overflowLabels.style):d?o&&c.attr("fill",o):s&&c.attr("fill",s)})}}function Zw(i,r,t){var e=i.coordinate,n=Ge(r),a=bt.fromObject(n.getCanvasBBox()),o=bt.fromObject(t.getBBox());return e.isTransposed?o.height>=a.height:o.width>=a.width}function Qw(i,r,t){var e=!!i.getAdjust("stack");return e||r.every(function(n,a){var o=t[a];return Zw(i,n,o)})}function Kw(i,r,t){var e=i.coordinate,n=bt.fromObject(t.getBBox()),a=Ge(r);e.isTransposed?a.attr({x:n.minX+n.width/2,textAlign:"center"}):a.attr({y:n.minY+n.height/2,textBaseline:"middle"})}function Jw(i,r,t){var e;if(t.length!==0){var n=(e=t[0])===null||e===void 0?void 0:e.get("element"),a=n==null?void 0:n.geometry;if(!(!a||a.type!=="interval")){var o=Qw(a,r,t);o&&t.forEach(function(s,l){var h=r[l];Kw(a,h,s)})}}}function tC(i){var r=500,t=[],e=Math.max(Math.floor(i.length/r),1);return M(i,function(n,a){a%e===0?t.push(n):n.set("visible",!1)}),t}function eC(i,r,t){var e;if(t.length!==0){var n=(e=t[0])===null||e===void 0?void 0:e.get("element"),a=n==null?void 0:n.geometry;if(!(!a||a.type!=="interval")){var o=tC(r),s=a.getXYFields()[0],l=[],h=[],u=He(o,function(g){return g.get("data")[s]}),c=Qh(At(o,function(g){return g.get("data")[s]})),f;o.forEach(function(g){g.set("visible",!0)});var v=function(g){g&&(g.length&&h.push(g.pop()),h.push.apply(h,g))};for(Ft(c)>0&&(f=c.shift(),v(u[f])),Ft(c)>0&&(f=c.pop(),v(u[f])),M(c.reverse(),function(g){v(u[g])});h.length>0;){var p=h.shift();p.get("visible")&&(mx(p,l)?p.set("visible",!1):l.push(p))}}}}function rC(i,r){var t=i.getXYFields()[1],e=[],n=r.sort(function(a,o){return a.get("data")[t]-a.get("data")[t]});return n.length>0&&e.push(n.shift()),n.length>0&&e.push(n.pop()),e.push.apply(e,n),e}function zf(i,r,t){return i.some(function(e){return t(e,r)})}function iC(i,r,t){t===void 0&&(t=0);var e=Math.max(0,Math.min(i.x+i.width+t,r.x+r.width+t)-Math.max(i.x-t,r.x-t)),n=Math.max(0,Math.min(i.y+i.height+t,r.y+r.height+t)-Math.max(i.y-t,r.y-t));return e*n}function Eh(i,r){return zf(i,r,function(t,e){var n=Ge(t),a=Ge(e);return iC(n.getCanvasBBox(),a.getCanvasBBox(),2)>0})}function nC(i,r,t,e,n){var a,o;if(t.length!==0){var s=(a=t[0])===null||a===void 0?void 0:a.get("element"),l=s==null?void 0:s.geometry;if(!(!l||l.type!=="point")){var h=l.getXYFields(),u=h[0],c=h[1],f=He(r,function(g){return g.get("data")[u]}),v=[],p=n&&n.offset||((o=i[0])===null||o===void 0?void 0:o.offset)||12;At(Ci(f).reverse(),function(g){for(var d=rC(l,f[g]);d.length;){var y=d.shift(),w=Ge(y);if(zf(v,y,function(S,b){return S.get("data")[u]===b.get("data")[u]&&S.get("data")[c]===b.get("data")[c]})){w.set("visible",!1);continue}var x=Eh(v,y),C=!1;if(x&&(w.attr("y",w.attr("y")+2*p),C=Eh(v,y)),C){w.set("visible",!1);continue}v.push(y)}})}}}function aC(i,r){var t=i.getXYFields()[1],e=[],n=r.sort(function(a,o){return a.get("data")[t]-a.get("data")[t]});return n.length>0&&e.push(n.shift()),n.length>0&&e.push(n.pop()),e.push.apply(e,n),e}function Nf(i,r,t){return i.some(function(e){return t(e,r)})}function oC(i,r,t){t===void 0&&(t=0);var e=Math.max(0,Math.min(i.x+i.width+t,r.x+r.width+t)-Math.max(i.x-t,r.x-t)),n=Math.max(0,Math.min(i.y+i.height+t,r.y+r.height+t)-Math.max(i.y-t,r.y-t));return e*n}function Bh(i,r){return Nf(i,r,function(t,e){var n=Ge(t),a=Ge(e);return oC(n.getCanvasBBox(),a.getCanvasBBox(),2)>0})}function sC(i,r,t,e,n){var a,o;if(t.length!==0){var s=(a=t[0])===null||a===void 0?void 0:a.get("element"),l=s==null?void 0:s.geometry;if(!(!l||["path","line","area"].indexOf(l.type)<0)){var h=l.getXYFields(),u=h[0],c=h[1],f=He(r,function(g){return g.get("data")[u]}),v=[],p=n&&n.offset||((o=i[0])===null||o===void 0?void 0:o.offset)||12;At(Ci(f).reverse(),function(g){for(var d=aC(l,f[g]);d.length;){var y=d.shift(),w=Ge(y);if(Nf(v,y,function(S,b){return S.get("data")[u]===b.get("data")[u]&&S.get("data")[c]===b.get("data")[c]})){w.set("visible",!1);continue}var x=Bh(v,y),C=!1;if(x&&(w.attr("y",w.attr("y")+2*p),C=Bh(v,y)),C){w.set("visible",!1);continue}v.push(y)}})}}}var ka;function lC(){return ka||(ka=document.createElement("canvas").getContext("2d")),ka}var tn=kn(function(i,r){r===void 0&&(r={});var t=r.fontSize,e=r.fontFamily,n=r.fontWeight,a=r.fontStyle,o=r.fontVariant,s=lC();return s.font=[a,o,n,"".concat(t,"px"),e].join(" "),s.measureText(H(i)?i:"").width},function(i,r){return r===void 0&&(r={}),vt([i],bo(r),!0).join("")}),hC=function(i,r,t){var e=16,n=tn("...",t),a;H(i)?a=i:a=In(i);var o=r,s=[],l,h;if(tn(i,t)<=r)return i;for(;l=a.substr(0,e),h=tn(l,t),!(h+n>o&&h>o);)if(s.push(l),o-=h,a=a.substr(e),!a)return s.join("");for(;l=a.substr(0,1),h=tn(l,t),!(h+n>o);)if(s.push(l),o-=h,a=a.substr(1),!a)return s.join("");return"".concat(s.join(""),"...")};function uC(i,r,t,e,n){if(!(r.length<=0)){var a=(n==null?void 0:n.direction)||["top","right","bottom","left"],o=(n==null?void 0:n.action)||"translate",s=(n==null?void 0:n.margin)||0,l=r[0].get("coordinate");if(l){var h=Jm(l,s),u=h.minX,c=h.minY,f=h.maxX,v=h.maxY;M(r,function(p){var g=p.getCanvasBBox(),d=g.minX,y=g.minY,w=g.maxX,x=g.maxY,C=g.x,S=g.y,b=g.width,L=g.height,B=C,P=S;if(a.indexOf("left")>=0&&(d<u||w<u)&&(B=u),a.indexOf("top")>=0&&(y<c||x<c)&&(P=c),a.indexOf("right")>=0&&(d>f?B=f-b:w>f&&(B=B-(w-f))),a.indexOf("bottom")>=0&&(y>v?P=v-L:x>v&&(P=P-(x-v))),B!==C||P!==S){var F=B-C;if(o==="translate")Ei(p,F,P-S);else if(o==="ellipsis"){var D=p.findAll(function(Y){return Y.get("type")==="text"});D.forEach(function(Y){var z=To(Y.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),q=Y.getCanvasBBox(),ut=hC(Y.attr("text"),q.width-Math.abs(F),z);Y.attr("text",ut)})}else p.hide()}})}}}function cC(i,r,t){var e={fillOpacity:E(i.attr("fillOpacity"))?1:i.attr("fillOpacity"),strokeOpacity:E(i.attr("strokeOpacity"))?1:i.attr("strokeOpacity"),opacity:E(i.attr("opacity"))?1:i.attr("opacity")};i.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),i.animate(e,r)}function fC(i,r,t){var e={fillOpacity:0,strokeOpacity:0,opacity:0},n=r.easing,a=r.duration,o=r.delay;i.animate(e,a,n,function(){i.remove(!0)},o)}function vC(i,r,t){var e,n=r[0],a=r[1];return i.applyToMatrix([n,a,1]),t==="x"?(i.setMatrix(nt(i.getMatrix(),[["t",-n,-a],["s",.01,1],["t",n,a]])),e=nt(i.getMatrix(),[["t",-n,-a],["s",100,1],["t",n,a]])):t==="y"?(i.setMatrix(nt(i.getMatrix(),[["t",-n,-a],["s",1,.01],["t",n,a]])),e=nt(i.getMatrix(),[["t",-n,-a],["s",1,100],["t",n,a]])):t==="xy"&&(i.setMatrix(nt(i.getMatrix(),[["t",-n,-a],["s",.01,.01],["t",n,a]])),e=nt(i.getMatrix(),[["t",-n,-a],["s",100,100],["t",n,a]])),e}function ys(i,r,t,e,n){var a=t.start,o=t.end,s=t.getWidth(),l=t.getHeight(),h,u;n==="y"?(h=a.x+s/2,u=e.y<a.y?e.y:a.y):n==="x"?(h=e.x>a.x?e.x:a.x,u=a.y+l/2):n==="xy"&&(t.isPolar?(h=t.getCenter().x,u=t.getCenter().y):(h=(a.x+o.x)/2,u=(a.y+o.y)/2));var c=vC(i,[h,u],n);i.animate({matrix:c},r)}function pC(i,r,t){var e=t.coordinate,n=t.minYPoint;ys(i,r,e,n,"x")}function gC(i,r,t){var e=t.coordinate,n=t.minYPoint;ys(i,r,e,n,"y")}function dC(i,r,t){var e=t.coordinate,n=t.minYPoint;ys(i,r,e,n,"xy")}function yC(i,r,t){var e=i.getTotalLength();i.attr("lineDash",[e]),i.animate(function(n){return{lineDashOffset:(1-n)*e}},r)}function mC(i,r,t){var e=t.toAttrs,n=e.x,a=e.y;delete e.x,delete e.y,i.attr(e),i.animate({x:n,y:a},r)}function xC(i,r,t){var e=i.getBBox(),n=i.get("origin").mappingData,a=n.points,o=a[0].y-a[1].y>0?e.maxX:e.minX,s=(e.minY+e.maxY)/2;i.applyToMatrix([o,s,1]);var l=nt(i.getMatrix(),[["t",-o,-s],["s",.01,1],["t",o,s]]);i.setMatrix(l),i.animate({matrix:nt(i.getMatrix(),[["t",-o,-s],["s",100,1],["t",o,s]])},r)}function wC(i,r,t){var e=i.getBBox(),n=i.get("origin").mappingData,a=(e.minX+e.maxX)/2,o=n.points,s=o[0].y-o[1].y<=0?e.maxY:e.minY;i.applyToMatrix([a,s,1]);var l=nt(i.getMatrix(),[["t",-a,-s],["s",1,.01],["t",a,s]]);i.setMatrix(l),i.animate({matrix:nt(i.getMatrix(),[["t",-a,-s],["s",1,100],["t",a,s]])},r)}function Ih(i,r){var t,e=An(i,r),n=e.startAngle,a=e.endAngle;return!yt(n,-Math.PI*.5)&&n<-Math.PI*.5&&(n+=Math.PI*2),!yt(a,-Math.PI*.5)&&a<-Math.PI*.5&&(a+=Math.PI*2),r[5]===0&&(t=[a,n],n=t[0],a=t[1]),yt(n,Math.PI*1.5)&&(n=Math.PI*-.5),yt(a,Math.PI*-.5)&&(a=Math.PI*1.5),{startAngle:n,endAngle:a}}function kh(i){var r;return i[0]==="M"||i[0]==="L"?r=[i[1],i[2]]:(i[0]==="a"||i[0]==="A"||i[0]==="C")&&(r=[i[i.length-2],i[i.length-1]]),r}function Ph(i){var r,t,e,n=i.filter(function(x){return x[0]==="A"||x[0]==="a"});if(n.length===0)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var a=n[0],o=n.length>1?n[1]:n[0],s=i.indexOf(a),l=i.indexOf(o),h=kh(i[s-1]),u=kh(i[l-1]),c=Ih(h,a),f=c.startAngle,v=c.endAngle,p=Ih(u,o),g=p.startAngle,d=p.endAngle;yt(f,g)&&yt(v,d)?(t=f,e=v):(t=Math.min(f,g),e=Math.max(v,d));var y=a[1],w=n[n.length-1][1];return y<w?(r=[w,y],y=r[0],w=r[1]):y===w&&(w=0),{startAngle:t,endAngle:e,radius:y,innerRadius:w}}function CC(i,r,t){var e=t.toAttrs,n=t.coordinate,a=e.path||[],o=a.map(function(w){return w[0]});if(!(a.length<1)){var s=Ph(a),l=s.startAngle,h=s.endAngle,u=s.radius,c=s.innerRadius,f=Ph(i.attr("path")),v=f.startAngle,p=f.endAngle,g=n.getCenter(),d=l-v,y=h-p;if(d===0&&y===0){i.attr("path",a);return}i.animate(function(w){var x=v+w*d,C=p+w*y;return m(m({},e),{path:st(o,["M","A","A","Z"])?Pc(g.x,g.y,u,x,C):Fe(g.x,g.y,u,x,C,c)})},m(m({},r),{callback:function(){i.attr("path",a)}}))}}function MC(i,r,t){var e=$o(t.coordinate,20),n=e.type,a=e.startState,o=e.endState,s=i.setClip({type:n,attrs:a});s.animate(o,m(m({},r),{callback:function(){i&&!i.get("destroyed")&&i.set("clipShape",null),s.remove(!0)}}))}function ms(i,r,t){if(i.isGroup())M(i.getChildren(),function(s){ms(s,r,t)});else{var e=i.getBBox(),n=(e.minX+e.maxX)/2,a=(e.minY+e.maxY)/2;if(i.applyToMatrix([n,a,1]),t==="zoomIn"){var o=nt(i.getMatrix(),[["t",-n,-a],["s",.01,.01],["t",n,a]]);i.setMatrix(o),i.animate({matrix:nt(i.getMatrix(),[["t",-n,-a],["s",100,100],["t",n,a]])},r)}else i.animate({matrix:nt(i.getMatrix(),[["t",-n,-a],["s",.01,.01],["t",n,a]])},m(m({},r),{callback:function(){i.remove(!0)}}))}}function SC(i,r,t){ms(i,r,"zoomIn")}function AC(i,r,t){ms(i,r,"zoomOut")}function de(i){return[k.TOP,k.BOTTOM].includes(i)?{offsetX:0,offsetY:i===k.TOP?-8:8,style:{textAlign:"center",textBaseline:i===k.TOP?"bottom":"top"}}:[k.LEFT,k.RIGHT].includes(i)?{offsetX:i===k.LEFT?-8:8,offsetY:0,style:{textAlign:i===k.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}}function Pa(i,r,t){return{x:i.x+r*Math.cos(t),y:i.y+r*Math.sin(t)}}var bC=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){return O({},i.prototype.getDefaultCfg.call(this),{type:"circle",showTitle:!0,title:i.prototype.getDefaultTitleCfg.call(this)})},r.prototype.render=function(){i.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},r.prototype.getRegion=function(t,e){var n=.5,a={x:.5,y:.5},o=Math.PI*2/t,s=-1*Math.PI/2+o*e,l=n/(1+1/Math.sin(o/2)),h=Pa(a,n-l,s),u=Math.PI*5/4,c=Math.PI*1/4;return{start:Pa(h,l,u),end:Pa(h,l,c)}},r.prototype.afterEachView=function(t,e){this.processAxis(t,e)},r.prototype.beforeEachView=function(t,e){},r.prototype.generateFacets=function(t){var e=this,n=this.cfg,a=n.fields,o=n.type,s=a[0];if(!s)throw new Error("No `fields` specified!");var l=this.getFieldValues(t,s),h=l.length,u=[];return l.forEach(function(c,f){var v=[{field:s,value:c,values:l}],p=Ht(t,e.getFacetDataFilter(v)),g={type:o,data:p,region:e.getRegion(h,f),columnValue:c,columnField:s,columnIndex:f,columnValuesLength:h,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};u.push(g)}),u},r.prototype.getXAxisOption=function(t,e,n,a){return n},r.prototype.getYAxisOption=function(t,e,n,a){return n},r.prototype.renderTitle=function(){var t=this;M(this.facets,function(e){var n=e.columnValue,a=e.view,o=A(t.cfg.title,"formatter"),s=O({position:["50%","0%"],content:o?o(n):n},de(k.TOP),t.cfg.title);a.annotation().text(s)})},r}(Pr),TC=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){return O({},i.prototype.getDefaultCfg.call(this),{type:"list",cols:null,showTitle:!0,title:i.prototype.getDefaultTitleCfg.call(this)})},r.prototype.render=function(){i.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},r.prototype.afterEachView=function(t,e){this.processAxis(t,e)},r.prototype.beforeEachView=function(t,e){},r.prototype.generateFacets=function(t){var e=this,n=this.cfg.fields,a=this.cfg.cols,o=n[0];if(!o)throw new Error("No `fields` specified!");var s=this.getFieldValues(t,o),l=s.length;a=a||l;var h=this.getPageCount(l,a),u=[];return s.forEach(function(c,f){var v=e.getRowCol(f,a),p=v.row,g=v.col,d=[{field:o,value:c,values:s}],y=Ht(t,e.getFacetDataFilter(d)),w={type:e.cfg.type,data:y,region:e.getRegion(h,a,g,p),columnValue:c,rowValue:c,columnField:o,rowField:null,columnIndex:g,rowIndex:p,columnValuesLength:a,rowValuesLength:h,total:l};u.push(w)}),u},r.prototype.getXAxisOption=function(t,e,n,a){return a.rowIndex!==a.rowValuesLength-1&&a.columnValuesLength*a.rowIndex+a.columnIndex+1+a.columnValuesLength<=a.total?m(m({},n),{label:null,title:null}):n},r.prototype.getYAxisOption=function(t,e,n,a){return a.columnIndex!==0?m(m({},n),{title:null,label:null}):n},r.prototype.renderTitle=function(){var t=this;M(this.facets,function(e){var n=e.columnValue,a=e.view,o=A(t.cfg.title,"formatter"),s=O({position:["50%","0%"],content:o?o(n):n},de(k.TOP),t.cfg.title);a.annotation().text(s)})},r.prototype.getPageCount=function(t,e){return Math.floor((t+e-1)/e)},r.prototype.getRowCol=function(t,e){var n=Math.floor(t/e),a=t%e;return{row:n,col:a}},r}(Pr),LC=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){return O({},i.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:m({},i.prototype.getDefaultTitleCfg.call(this)),rowTitle:m({},i.prototype.getDefaultTitleCfg.call(this))})},r.prototype.render=function(){i.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},r.prototype.afterEachView=function(t,e){this.processAxis(t,e)},r.prototype.beforeEachView=function(t,e){},r.prototype.generateFacets=function(t){for(var e=this.cfg,n=e.fields,a=e.type,o=n.length,s=o,l=[],h=0;h<s;h++)for(var u=n[h],c=0;c<o;c++){var f=n[c],v={type:a,data:t,region:this.getRegion(o,s,h,c),columnValue:u,rowValue:f,columnField:u,rowField:f,columnIndex:h,rowIndex:c,columnValuesLength:s,rowValuesLength:o};l.push(v)}return l},r.prototype.getXAxisOption=function(t,e,n,a){return a.rowIndex!==a.rowValuesLength-1?m(m({},n),{label:null,title:null}):n},r.prototype.getYAxisOption=function(t,e,n,a){return a.columnIndex!==0?m(m({},n),{title:null,label:null}):n},r.prototype.renderTitle=function(){var t=this;M(this.facets,function(e,n){var a=e.columnIndex,o=e.rowIndex,s=e.columnValuesLength;e.rowValuesLength;var l=e.columnValue,h=e.rowValue,u=e.view;if(o===0){var c=A(t.cfg.columnTitle,"formatter"),f=O({position:["50%","0%"],content:c?c(l):l},de(k.TOP),t.cfg.columnTitle);u.annotation().text(f)}if(a===s-1){var c=A(t.cfg.rowTitle,"formatter"),f=O({position:["100%","50%"],content:c?c(h):h},de(k.RIGHT),t.cfg.rowTitle);u.annotation().text(f)}})},r}(Pr),EC=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){return O({},i.prototype.getDefaultCfg.call(this),{type:"mirror",showTitle:!0,title:i.prototype.getDefaultTitleCfg.call(this),transpose:!1})},r.prototype.render=function(){i.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},r.prototype.beforeEachView=function(t,e){this.cfg.transpose?e.columnIndex%2===0?t.coordinate().transpose().reflect("x"):t.coordinate().transpose():e.rowIndex%2!==0&&t.coordinate().reflect("y")},r.prototype.afterEachView=function(t,e){this.processAxis(t,e)},r.prototype.generateFacets=function(t){var e=this,n=this.cfg.fields[0],a=[],o=1,s=1,l=[""],h=[""],u,c;return this.cfg.transpose?(u=n,l=this.getFieldValues(t,u).slice(0,2),o=l.length):(c=n,h=this.getFieldValues(t,c).slice(0,2),s=h.length),l.forEach(function(f,v){h.forEach(function(p,g){var d=[{field:u,value:f,values:l},{field:c,value:p,values:h}],y=Ht(t,e.getFacetDataFilter(d)),w={type:e.cfg.type,data:y,region:e.getRegion(s,o,v,g),columnValue:f,rowValue:p,columnField:u,rowField:c,columnIndex:v,rowIndex:g,columnValuesLength:o,rowValuesLength:s};a.push(w)})}),a},r.prototype.getXAxisOption=function(t,e,n,a){return a.columnIndex===1||a.rowIndex===1?m(m({},n),{label:null,title:null}):n},r.prototype.getYAxisOption=function(t,e,n,a){return n},r.prototype.renderTitle=function(){var t=this;M(this.facets,function(e,n){var a=e.columnValue,o=e.rowValue,s=e.view,l=A(t.cfg.title,"formatter");if(t.cfg.transpose){var h=O({position:["50%","0%"],content:l?l(a):a},de(k.TOP),t.cfg.title);s.annotation().text(h)}else{var h=O({position:["100%","50%"],content:l?l(o):o},de(k.RIGHT),t.cfg.title);s.annotation().text(h)}})},r}(Pr),BC=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.afterEachView=function(t,e){this.processAxis(t,e)},r.prototype.beforeEachView=function(t,e){},r.prototype.getDefaultCfg=function(){return O({},i.prototype.getDefaultCfg.call(this),{type:"rect",columnTitle:m({},i.prototype.getDefaultTitleCfg.call(this)),rowTitle:m({},i.prototype.getDefaultTitleCfg.call(this))})},r.prototype.render=function(){i.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},r.prototype.generateFacets=function(t){var e=this,n=this.cfg.fields,a=n[0],o=n[1],s=[],l=1,h=1,u=[""],c=[""];return a&&(u=this.getFieldValues(t,a),l=u.length),o&&(c=this.getFieldValues(t,o),h=c.length),u.forEach(function(f,v){c.forEach(function(p,g){var d=[{field:a,value:f,values:u},{field:o,value:p,values:c}],y=Ht(t,e.getFacetDataFilter(d)),w={type:e.cfg.type,data:y,region:e.getRegion(h,l,v,g),columnValue:f,rowValue:p,columnField:a,rowField:o,columnIndex:v,rowIndex:g,columnValuesLength:l,rowValuesLength:h};s.push(w)})}),s},r.prototype.renderTitle=function(){var t=this;M(this.facets,function(e,n){var a=e.columnIndex,o=e.rowIndex,s=e.columnValuesLength,l=e.columnValue,h=e.rowValue,u=e.view;if(o===0){var c=A(t.cfg.columnTitle,"formatter"),f=O({position:["50%","0%"],content:c?c(l):l},de(k.TOP),t.cfg.columnTitle);u.annotation().text(f)}if(a===s-1){var c=A(t.cfg.rowTitle,"formatter"),f=O({position:["100%","50%"],content:c?c(h):h},de(k.RIGHT),t.cfg.rowTitle);u.annotation().text(f)}})},r.prototype.getXAxisOption=function(t,e,n,a){return a.rowIndex!==a.rowValuesLength-1?m(m({},n),{title:null,label:null}):a.columnIndex!==Math.floor((a.columnValuesLength-1)/2)?m(m({},n),{title:null}):n},r.prototype.getYAxisOption=function(t,e,n,a){return a.columnIndex!==0?m(m({},n),{title:null,label:null}):a.rowIndex!==Math.floor((a.rowValuesLength-1)/2)?m(m({},n),{title:null}):n},r}(Pr),IC=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.afterChartRender=function(){t.facets&&t.cfg.line&&(t.container.clear(),t.drawLines(t.facets))},t}return r.prototype.afterEachView=function(t,e){this.processAxis(t,e)},r.prototype.beforeEachView=function(t,e){},r.prototype.init=function(){i.prototype.init.call(this),this.view.on(Z.AFTER_RENDER,this.afterChartRender)},r.prototype.getDefaultCfg=function(){return O({},i.prototype.getDefaultCfg.call(this),{type:"tree",line:{style:{lineWidth:1,stroke:"#ddd"},smooth:!1},showTitle:!0,title:i.prototype.getDefaultTitleCfg.call(this)})},r.prototype.generateFacets=function(t){var e=this.cfg.fields;if(!e.length)throw new Error("Please specify for the fields for rootFacet!");var n=[],a={type:this.cfg.type,data:t,region:null,rowValuesLength:this.getRows(),columnValuesLength:1,rowIndex:0,columnIndex:0,rowField:"",columnField:"",rowValue:"",columnValue:""};return n.push(a),a.children=this.getChildFacets(t,1,n),this.setRegion(n),n},r.prototype.setRegion=function(t){var e=this;this.forceColIndex(t),t.forEach(function(n){n.region=e.getRegion(n.rowValuesLength,n.columnValuesLength,n.columnIndex,n.rowIndex)})},r.prototype.getRegion=function(t,e,n,a){var o=1/e,s=1/t,l={x:o*n,y:s*a},h={x:l.x+o,y:l.y+s*2/3};return{start:l,end:h}},r.prototype.forceColIndex=function(t){var e=this,n=[],a=0;t.forEach(function(f){e.isLeaf(f)&&(n.push(f),f.columnIndex=a,a++)}),n.forEach(function(f){f.columnValuesLength=n.length});for(var o=this.cfg.fields.length,s=o-1;s>=0;s--)for(var l=this.getFacetsByLevel(t,s),h=0,u=l;h<u.length;h++){var c=u[h];this.isLeaf(c)||(c.originColIndex=c.columnIndex,c.columnIndex=this.getRegionIndex(c.children),c.columnValuesLength=n.length)}},r.prototype.getFacetsByLevel=function(t,e){var n=[];return t.forEach(function(a){a.rowIndex===e&&n.push(a)}),n},r.prototype.getRegionIndex=function(t){var e=t[0],n=t[t.length-1];return(n.columnIndex-e.columnIndex)/2+e.columnIndex},r.prototype.isLeaf=function(t){return!t.children||!t.children.length},r.prototype.getRows=function(){return this.cfg.fields.length+1},r.prototype.getChildFacets=function(t,e,n){var a=this,o=this.cfg.fields,s=o.length;if(!(s<e)){var l=[],h=o[e-1],u=this.getFieldValues(t,h);return u.forEach(function(c,f){var v=[{field:h,value:c,values:u}],p=t.filter(a.getFacetDataFilter(v));if(p.length){var g={type:a.cfg.type,data:p,region:null,columnValue:c,rowValue:"",columnField:h,rowField:"",columnIndex:f,rowValuesLength:a.getRows(),columnValuesLength:1,rowIndex:e,children:a.getChildFacets(p,e+1,n)};l.push(g),n.push(g)}}),l}},r.prototype.render=function(){i.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},r.prototype.renderTitle=function(){var t=this;M(this.facets,function(e){var n=e.columnValue,a=e.view,o=A(t.cfg.title,"formatter"),s=O({position:["50%","0%"],content:o?o(n):n},de(k.TOP),t.cfg.title);a.annotation().text(s)})},r.prototype.drawLines=function(t){var e=this;t.forEach(function(n){if(!e.isLeaf(n)){var a=n.children;e.addFacetLines(n,a)}})},r.prototype.addFacetLines=function(t,e){var n=this,a=t.view,o=a.coordinateBBox,s={x:o.x+o.width/2,y:o.y+o.height};e.forEach(function(l){var h=l.view.coordinateBBox,u={x:h.bl.x+(h.tr.x-h.bl.x)/2,y:h.tr.y},c={x:s.x,y:s.y+(u.y-s.y)/2},f={x:u.x,y:c.y};n.drawLine([s,c,f,u])})},r.prototype.getPath=function(t){var e=[],n=this.cfg.line.smooth;return n?(e.push(["M",t[0].x,t[0].y]),e.push(["C",t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y])):t.forEach(function(a,o){o===0?e.push(["M",a.x,a.y]):e.push(["L",a.x,a.y])}),e},r.prototype.drawLine=function(t){var e=this.getPath(t),n=this.cfg.line.style;this.container.addShape("path",{attrs:rt({path:e},n)})},r.prototype.getXAxisOption=function(t,e,n,a){return a.rowIndex!==a.rowValuesLength-1?m(m({},n),{title:null,label:null}):n},r.prototype.getYAxisOption=function(t,e,n,a){return a.originColIndex!==0&&a.columnIndex!==0?m(m({},n),{title:null,label:null}):n},r}(Pr);function Fh(i){var r=vt([],i,!0);r.sort(function(e,n){return e-n});var t=r.length;return t===0?0:t%2===1?r[(t-1)/2]:(r[t/2]+r[t/2-1])/2}function kC(i){var r=Zh(i,function(t,e){return t+=isNaN(e)||!W(e)?0:e},0);return i.length===0?0:r/i.length}function en(i,r){if(!r)return null;var t;switch(i){case"start":return 0;case"center":return .5;case"end":return 1;case"median":{t=r.isCategory?Fh(r.values.map(function(e,n){return n})):Fh(r.values);break}case"mean":{t=r.isCategory?(r.values.length-1)/2:kC(r.values);break}case"min":t=r.isCategory?0:r[i];break;case"max":t=r.isCategory?r.values.length-1:r[i];break;default:t=i;break}return r.scale(t)}var rn=["regionFilter","shape"],PC=function(i){T(r,i);function r(t){var e=i.call(this,t)||this;return e.cache=new Map,e.foregroundContainer=e.view.getLayer(tt.FORE).addGroup(),e.backgroundContainer=e.view.getLayer(tt.BG).addGroup(),e.option=[],e}return Object.defineProperty(r.prototype,"name",{get:function(){return"annotation"},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.layout=function(){this.update()},r.prototype.render=function(){},r.prototype.update=function(){var t=this;this.onAfterRender(function(){var n=new Map;M(t.option,function(a){if(je(rn,a.type)){var o=t.updateOrCreate(a);o&&n.set(t.getCacheKey(a),o)}}),t.cache=t.syncCache(n)});var e=new Map;M(this.option,function(n){if(!je(rn,n.type)){var a=t.updateOrCreate(n);a&&e.set(t.getCacheKey(n),a)}}),this.cache=this.syncCache(e)},r.prototype.clear=function(t){t===void 0&&(t=!1),i.prototype.clear.call(this),this.clearComponents(),this.foregroundContainer.clear(),this.backgroundContainer.clear(),t&&(this.option=[])},r.prototype.destroy=function(){this.clear(!0),this.foregroundContainer.remove(!0),this.backgroundContainer.remove(!0)},r.prototype.getComponents=function(){var t=[];return this.cache.forEach(function(e){t.push(e)}),t},r.prototype.clearComponents=function(){this.getComponents().forEach(function(t){t.component.destroy()}),this.cache.clear()},r.prototype.onAfterRender=function(t){this.view.getOptions().animate?this.view.geometries.forEach(function(e){e.animateOption&&e.once(xr.AFTER_DRAW_ANIMATE,function(){t()})}):this.view.getRootView().once(Z.AFTER_RENDER,function(){t()})},r.prototype.createAnnotation=function(t){var e=t.type,n=$y[or(e)];if(n){var a=this.getAnnotationTheme(e),o=this.getAnnotationCfg(e,t,a);if(!o)return null;var s=new n(o);return{component:s,layer:this.isTop(o)?tt.FORE:tt.BG,direction:k.NONE,type:ht.ANNOTATION,extra:t}}},r.prototype.annotation=function(t){this.option.push(t)},r.prototype.arc=function(t){return this.annotation(m({type:"arc"},t)),this},r.prototype.image=function(t){return this.annotation(m({type:"image"},t)),this},r.prototype.line=function(t){return this.annotation(m({type:"line"},t)),this},r.prototype.region=function(t){return this.annotation(m({type:"region"},t)),this},r.prototype.text=function(t){return this.annotation(m({type:"text"},t)),this},r.prototype.dataMarker=function(t){return this.annotation(m({type:"dataMarker"},t)),this},r.prototype.dataRegion=function(t){this.annotation(m({type:"dataRegion"},t))},r.prototype.regionFilter=function(t){this.annotation(m({type:"regionFilter"},t))},r.prototype.shape=function(t){this.annotation(m({type:"shape"},t))},r.prototype.html=function(t){this.annotation(m({type:"html"},t))},r.prototype.parsePosition=function(t){var e=this.view.getXScale(),n=this.view.getScalesByDim("y"),a=R(t)?t.call(null,e,n):t,o=0,s=0;if(I(a)){var l=a[0],h=a[1];if(H(l)&&l.indexOf("%")!==-1&&!isNaN(l.slice(0,-1)))return this.parsePercentPosition(a);o=en(l,e),s=en(h,Object.values(n)[0])}else if(!E(a))for(var u=0,c=Ci(a);u<c.length;u++){var f=c[u],v=a[f];f===e.field&&(o=en(v,e)),n[f]&&(s=en(v,n[f]))}return isNaN(o)||isNaN(s)?null:this.view.getCoordinate().convert({x:o,y:s})},r.prototype.getRegionPoints=function(t,e){var n=this,a=this.view.getXScale(),o=this.view.getScalesByDim("y"),s=Object.values(o)[0],l=a.field,h=this.view.getData(),u=I(t)?t[0]:t[l],c=I(e)?e[0]:e[l],f=[],v;return M(h,function(p,g){if(p[l]===u&&(v=g),g>=v){var d=n.parsePosition([p[l],p[s.field]]);d&&f.push(d)}if(p[l]===c)return!1}),f},r.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,n=parseFloat(t[1])/100,a=this.view.getCoordinate(),o=a.start,s=a.end,l={x:Math.min(o.x,s.x),y:Math.min(o.y,s.y)},h=a.getWidth()*e+l.x,u=a.getHeight()*n+l.y;return{x:h,y:u}},r.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),e=t.start,n=t.end,a=t.getWidth(),o=t.getHeight(),s={x:Math.min(e.x,n.x),y:Math.min(e.y,n.y)};return{x:s.x,y:s.y,minX:s.x,minY:s.y,maxX:s.x+a,maxY:s.y+o,width:a,height:o}},r.prototype.getAnnotationCfg=function(t,e,n){var a=this,o=this.view.getCoordinate(),s=this.view.getCanvas(),l={};if(E(e))return null;var h=e.start,u=e.end,c=e.position,f=this.parsePosition(h),v=this.parsePosition(u),p=this.parsePosition(c);if(["arc","image","line","region","regionFilter"].includes(t)&&(!f||!v))return null;if(["text","dataMarker","html"].includes(t)&&!p)return null;if(t==="arc"){var g=e;g.start,g.end;var d=ct(g,["start","end"]),y=br(o,f),w=br(o,v);y>w&&(w=Math.PI*2+w),l=m(m({},d),{center:o.getCenter(),radius:ea(o,f),startAngle:y,endAngle:w})}else if(t==="image"){var x=e;x.start,x.end;var d=ct(x,["start","end"]);l=m(m({},d),{start:f,end:v,src:e.src})}else if(t==="line"){var C=e;C.start,C.end;var d=ct(C,["start","end"]);l=m(m({},d),{start:f,end:v,text:A(e,"text",null)})}else if(t==="region"){var S=e;S.start,S.end;var d=ct(S,["start","end"]);l=m(m({},d),{start:f,end:v})}else if(t==="text"){var b=this.view.getData(),L=e;L.position;var B=L.content,d=ct(L,["position","content"]),P=B;R(B)&&(P=B(b)),l=m(m(m({},p),d),{content:P})}else if(t==="dataMarker"){var F=e;F.position;var D=F.point,Y=F.line,z=F.text,q=F.autoAdjust,ut=F.direction,d=ct(F,["position","point","line","text","autoAdjust","direction"]);l=m(m(m({},d),p),{coordinateBBox:this.getCoordinateBBox(),point:D,line:Y,text:z,autoAdjust:q,direction:ut})}else if(t==="dataRegion"){var at=e,St=at.start,lt=at.end,U=at.region,z=at.text,ye=at.lineLength,d=ct(at,["start","end","region","text","lineLength"]);l=m(m({},d),{points:this.getRegionPoints(St,lt),region:U,text:z,lineLength:ye})}else if(t==="regionFilter"){var xt=e;xt.start,xt.end;var Ne=xt.apply,Ii=xt.color,d=ct(xt,["start","end","apply","color"]),ki=this.view.geometries,jt=[],Rr=function(te){te&&(te.isGroup()?te.getChildren().forEach(function(Hr){return Rr(Hr)}):jt.push(te))};M(ki,function(te){Ne?je(Ne,te.type)&&M(te.elements,function(Hr){Rr(Hr.shape)}):M(te.elements,function(Hr){Rr(Hr.shape)})}),l=m(m({},d),{color:Ii,shapes:jt,start:f,end:v})}else if(t==="shape"){var Yr=e,Pi=Yr.render,me=ct(Yr,["render"]),sa=function(Jf){if(R(e.render))return Pi(Jf,a.view,{parsePosition:a.parsePosition.bind(a)})};l=m(m({},me),{render:sa})}else if(t==="html"){var Gr=e,la=Gr.html;Gr.position;var me=ct(Gr,["html","position"]),Kf=function(te){return R(la)?la(te,a.view):la};l=m(m(m({},me),p),{parent:s.get("el").parentNode,html:Kf})}var xe=O({},n,m(m({},l),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return t!=="html"&&(xe.container=this.getComponentContainer(xe)),xe.animate=this.view.getOptions().animate&&xe.animate&&A(e,"animate",xe.animate),xe.animateOption=O({},Er,xe.animateOption,e.animateOption),xe},r.prototype.isTop=function(t){return A(t,"top",!0)},r.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},r.prototype.getAnnotationTheme=function(t){return A(this.view.getTheme(),["components","annotation",t],{})},r.prototype.updateOrCreate=function(t){var e=this.cache.get(this.getCacheKey(t));if(e){var n=t.type,a=this.getAnnotationTheme(n),o=this.getAnnotationCfg(n,t,a);o&&Bt(o,["container"]),e.component.update(m(m({},o||{}),{visible:!!o})),je(rn,t.type)&&e.component.render()}else e=this.createAnnotation(t),e&&(e.component.init(),je(rn,t.type)&&e.component.render());return e},r.prototype.syncCache=function(t){var e=this,n=new Map(this.cache);return t.forEach(function(a,o){n.set(o,a)}),n.forEach(function(a,o){pe(e.option,function(s){return o===e.getCacheKey(s)})||(a.component.destroy(),n.delete(o))}),n},r.prototype.getCacheKey=function(t){return t},r}(Dr);function Oh(i,r){var t=O({},A(i,["components","axis","common"]),A(i,["components","axis",r]));return A(t,["grid"],{})}function nn(i,r,t,e){var n=[],a=r.getTicks();return i.isPolar&&a.push({value:1,text:"",tickValue:""}),a.reduce(function(o,s,l){var h=s.value;if(e)n.push({points:[i.convert(t==="y"?{x:0,y:h}:{x:h,y:0}),i.convert(t==="y"?{x:1,y:h}:{x:h,y:1})]});else if(l){var u=o.value,c=(u+h)/2;n.push({points:[i.convert(t==="y"?{x:0,y:c}:{x:c,y:0}),i.convert(t==="y"?{x:1,y:c}:{x:c,y:1})]})}return s},a[0]),n}function Fa(i,r,t,e,n){var a=r.values.length,o=[],s=t.getTicks();return s.reduce(function(l,h){var u=l?l.value:h.value,c=h.value,f=(u+c)/2;return n==="x"?o.push({points:[i.convert({x:e?c:f,y:0}),i.convert({x:e?c:f,y:1})]}):o.push({points:At(Array(a+1),function(v,p){return i.convert({x:p/a,y:e?c:f})})}),h},s[0]),o}function Dh(i,r){var t=A(r,"grid");if(t===null)return!1;var e=A(i,"grid");return!(t===void 0&&e===null)}var Me=["container"],Rh=m(m({},Er),{appear:null}),FC=function(i){T(r,i);function r(t){var e=i.call(this,t)||this;return e.cache=new Map,e.gridContainer=e.view.getLayer(tt.BG).addGroup(),e.gridForeContainer=e.view.getLayer(tt.FORE).addGroup(),e.axisContainer=e.view.getLayer(tt.BG).addGroup(),e.axisForeContainer=e.view.getLayer(tt.FORE).addGroup(),e}return Object.defineProperty(r.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.render=function(){this.update()},r.prototype.layout=function(){var t=this,e=this.view.getCoordinate();M(this.getComponents(),function(n){var a=n.component,o=n.direction,s=n.type,l=n.extra,h=l.dim,u=l.scale,c=l.alignTick,f;if(s===ht.AXIS)e.isPolar?h==="x"?f=e.isTransposed?Wi(e,o):Ta(e):h==="y"&&(f=e.isTransposed?Ta(e):Wi(e,o)):f=Wi(e,o);else if(s===ht.GRID)if(e.isPolar){var v=void 0;e.isTransposed?v=h==="x"?Fa(e,t.view.getYScales()[0],u,c,h):nn(e,u,h,c):v=h==="x"?nn(e,u,h,c):Fa(e,t.view.getXScale(),u,c,h),f={items:v,center:t.view.getCoordinate().getCenter()}}else f={items:nn(e,u,h,c)};a.update(f)})},r.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var e=new Map;this.cache.forEach(function(n,a){t.has(a)?e.set(a,n):n.component.destroy()}),this.cache=e},r.prototype.clear=function(){i.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},r.prototype.destroy=function(){i.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},r.prototype.getComponents=function(){var t=[];return this.cache.forEach(function(e){t.push(e)}),t},r.prototype.updateXAxes=function(t){var e=this.view.getXScale();if(!(!e||e.isIdentity)){var n=Cn(this.option,e.field);if(n!==!1){var a=Ul(n,k.BOTTOM),o=tt.BG,s="x",l=this.view.getCoordinate(),h=this.getId("axis",e.field),u=this.getId("grid",e.field);if(l.isRect){var c=this.cache.get(h);if(c){var f=this.getLineAxisCfg(e,n,a);Bt(f,Me),c.component.update(f),t.set(h,c)}else c=this.createLineAxis(e,n,o,a,s),this.cache.set(h,c),t.set(h,c);var v=this.cache.get(u);if(v){var f=this.getLineGridCfg(e,n,a,s);Bt(f,Me),v.component.update(f),t.set(u,v)}else v=this.createLineGrid(e,n,o,a,s),v&&(this.cache.set(u,v),t.set(u,v))}else if(l.isPolar){var c=this.cache.get(h);if(c){var f=l.isTransposed?this.getLineAxisCfg(e,n,k.RADIUS):this.getCircleAxisCfg(e,n,a);Bt(f,Me),c.component.update(f),t.set(h,c)}else{if(l.isTransposed){if(vr(n))return;c=this.createLineAxis(e,n,o,k.RADIUS,s)}else c=this.createCircleAxis(e,n,o,a,s);this.cache.set(h,c),t.set(h,c)}var v=this.cache.get(u);if(v){var f=l.isTransposed?this.getCircleGridCfg(e,n,k.RADIUS,s):this.getLineGridCfg(e,n,k.CIRCLE,s);Bt(f,Me),v.component.update(f),t.set(u,v)}else{if(l.isTransposed){if(vr(n))return;v=this.createCircleGrid(e,n,o,k.RADIUS,s)}else v=this.createLineGrid(e,n,o,k.CIRCLE,s);v&&(this.cache.set(u,v),t.set(u,v))}}}}},r.prototype.updateYAxes=function(t){var e=this,n=this.view.getYScales();M(n,function(a,o){if(!(!a||a.isIdentity)){var s=a.field,l=Cn(e.option,s);if(l!==!1){var h=tt.BG,u="y",c=e.getId("axis",s),f=e.getId("grid",s),v=e.view.getCoordinate();if(v.isRect){var p=Ul(l,o===0?k.LEFT:k.RIGHT),g=e.cache.get(c);if(g){var d=e.getLineAxisCfg(a,l,p);Bt(d,Me),g.component.update(d),t.set(c,g)}else g=e.createLineAxis(a,l,h,p,u),e.cache.set(c,g),t.set(c,g);var y=e.cache.get(f);if(y){var d=e.getLineGridCfg(a,l,p,u);Bt(d,Me),y.component.update(d),t.set(f,y)}else y=e.createLineGrid(a,l,h,p,u),y&&(e.cache.set(f,y),t.set(f,y))}else if(v.isPolar){var g=e.cache.get(c);if(g){var d=v.isTransposed?e.getCircleAxisCfg(a,l,k.CIRCLE):e.getLineAxisCfg(a,l,k.RADIUS);Bt(d,Me),g.component.update(d),t.set(c,g)}else{if(v.isTransposed){if(vr(l))return;g=e.createCircleAxis(a,l,h,k.CIRCLE,u)}else g=e.createLineAxis(a,l,h,k.RADIUS,u);e.cache.set(c,g),t.set(c,g)}var y=e.cache.get(f);if(y){var d=v.isTransposed?e.getLineGridCfg(a,l,k.CIRCLE,u):e.getCircleGridCfg(a,l,k.RADIUS,u);Bt(d,Me),y.component.update(d),t.set(f,y)}else{if(v.isTransposed){if(vr(l))return;y=e.createLineGrid(a,l,h,k.CIRCLE,u)}else y=e.createCircleGrid(a,l,h,k.RADIUS,u);y&&(e.cache.set(f,y),t.set(f,y))}}}}})},r.prototype.createLineAxis=function(t,e,n,a,o){var s={component:new Nm(this.getLineAxisCfg(t,e,a)),layer:n,direction:a===k.RADIUS?k.NONE:a,type:ht.AXIS,extra:{dim:o,scale:t}};return s.component.set("field",t.field),s.component.init(),s},r.prototype.createLineGrid=function(t,e,n,a,o){var s=this.getLineGridCfg(t,e,a,o);if(s){var l={component:new _m(s),layer:n,direction:k.NONE,type:ht.GRID,extra:{dim:o,scale:t,alignTick:A(s,"alignTick",!0)}};return l.component.init(),l}},r.prototype.createCircleAxis=function(t,e,n,a,o){var s={component:new Wm(this.getCircleAxisCfg(t,e,a)),layer:n,direction:a,type:ht.AXIS,extra:{dim:o,scale:t}};return s.component.set("field",t.field),s.component.init(),s},r.prototype.createCircleGrid=function(t,e,n,a,o){var s=this.getCircleGridCfg(t,e,a,o);if(s){var l={component:new $m(s),layer:n,direction:k.NONE,type:ht.GRID,extra:{dim:o,scale:t,alignTick:A(s,"alignTick",!0)}};return l.component.init(),l}},r.prototype.getLineAxisCfg=function(t,e,n){var a=A(e,["top"])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),s=Wi(o,n),l=jl(t,e),h=_i(this.view.getTheme(),n),u=A(e,["title"])?O({title:{style:{text:l}}},{title:$l(this.view.getTheme(),n,e.title)},e):e,c=O(m(m({container:a},s),{ticks:t.getTicks().map(function(x){return{id:"".concat(x.tickValue),name:x.text,value:x.value}}),verticalFactor:o.isPolar?_l(s,o.getCenter())*-1:_l(s,o.getCenter()),theme:h}),h,u),f=this.getAnimateCfg(c),v=f.animate,p=f.animateOption;c.animateOption=p,c.animate=v;var g=Rc(s),d=A(c,"verticalLimitLength",g?1/3:1/2);if(d<=1){var y=this.view.getCanvas().get("width"),w=this.view.getCanvas().get("height");c.verticalLimitLength=d*(g?y:w)}return c},r.prototype.getLineGridCfg=function(t,e,n,a){if(Dh(_i(this.view.getTheme(),n),e)){var o=Oh(this.view.getTheme(),n),s=O({container:A(e,["top"])?this.gridForeContainer:this.gridContainer},o,A(e,"grid"),this.getAnimateCfg(e));return s.items=nn(this.view.getCoordinate(),t,a,A(s,"alignTick",!0)),s}},r.prototype.getCircleAxisCfg=function(t,e,n){var a=A(e,["top"])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),s=t.getTicks().map(function(g){return{id:"".concat(g.tickValue),name:g.text,value:g.value}});!t.isCategory&&Math.abs(o.endAngle-o.startAngle)===Math.PI*2&&s.pop();var l=jl(t,e),h=_i(this.view.getTheme(),k.CIRCLE),u=A(e,["title"])?O({title:{style:{text:l}}},{title:$l(this.view.getTheme(),n,e.title)},e):e,c=O(m(m({container:a},Ta(this.view.getCoordinate())),{ticks:s,verticalFactor:1,theme:h}),h,u),f=this.getAnimateCfg(c),v=f.animate,p=f.animateOption;return c.animate=v,c.animateOption=p,c},r.prototype.getCircleGridCfg=function(t,e,n,a){if(Dh(_i(this.view.getTheme(),n),e)){var o=Oh(this.view.getTheme(),k.RADIUS),s=O({container:A(e,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},o,A(e,"grid"),this.getAnimateCfg(e)),l=A(s,"alignTick",!0),h=a==="x"?this.view.getYScales()[0]:this.view.getXScale();return s.items=Fa(this.view.getCoordinate(),h,t,l,a),s}},r.prototype.getId=function(t,e){var n=this.view.getCoordinate();return"".concat(t,"-").concat(e,"-").concat(n.type)},r.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&A(t,"animate"),animateOption:t&&t.animateOption?O({},Rh,t.animateOption):Rh}},r}(Dr);function ke(i,r,t){return t===k.TOP?[i.minX+i.width/2-r.width/2,i.minY]:t===k.BOTTOM?[i.minX+i.width/2-r.width/2,i.maxY-r.height]:t===k.LEFT?[i.minX,i.minY+i.height/2-r.height/2]:t===k.RIGHT?[i.maxX-r.width,i.minY+i.height/2-r.height/2]:t===k.TOP_LEFT||t===k.LEFT_TOP?[i.tl.x,i.tl.y]:t===k.TOP_RIGHT||t===k.RIGHT_TOP?[i.tr.x-r.width,i.tr.y]:t===k.BOTTOM_LEFT||t===k.LEFT_BOTTOM?[i.bl.x,i.bl.y-r.height]:t===k.BOTTOM_RIGHT||t===k.RIGHT_BOTTOM?[i.br.x-r.width,i.br.y-r.height]:[0,0]}function Yh(i,r){return si(i)?i===!1?!1:{}:A(i,[r],i)}function an(i){return A(i,"position",k.BOTTOM)}var OC=function(i){T(r,i);function r(t){var e=i.call(this,t)||this;return e.container=e.view.getLayer(tt.FORE).addGroup(),e}return Object.defineProperty(r.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.render=function(){this.update()},r.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox,M(this.components,function(e){var n=e.component,a=e.direction,o=Ea(a),s=n.get("maxWidthRatio"),l=n.get("maxHeightRatio"),h=t.getCategoryLegendSizeCfg(o,s,l),u=n.get("maxWidth"),c=n.get("maxHeight");n.update({maxWidth:Math.min(h.maxWidth,u||0),maxHeight:Math.min(h.maxHeight,c||0)});var f=n.get("padding"),v=n.getLayoutBBox(),p=new bt(v.x,v.y,v.width,v.height).expand(f),g=ke(t.view.viewBBox,p,a),d=g[0],y=g[1],w=ke(t.layoutBBox,p,a),x=w[0],C=w[1],S=0,b=0;a.startsWith("top")||a.startsWith("bottom")?(S=d,b=C):(S=x,b=y),n.setLocation({x:S+f[3],y:b+f[0]}),t.layoutBBox=t.layoutBBox.cut(p,a)})},r.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var e={},n=function(f,v,p){var g=t.getId(p.field),d=t.getComponentById(g);if(d){var y=void 0,w=Yh(t.option,p.field);w!==!1&&(A(w,"custom")?y=t.getCategoryCfg(f,v,p,w,!0):p.isLinear?y=t.getContinuousCfg(f,v,p,w):p.isCategory&&(y=t.getCategoryCfg(f,v,p,w))),y&&(Bt(y,["container"]),d.direction=an(w),d.component.update(y),e[g]=!0)}else{var x=t.createFieldLegend(f,v,p);x&&(x.component.init(),t.components.push(x),e[g]=!0)}};if(A(this.option,"custom")){var a="global-custom",o=this.getComponentById(a);if(o){var s=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);Bt(s,["container"]),o.component.update(s),e[a]=!0}else{var l=this.createCustomLegend(void 0,void 0,void 0,this.option);if(l){l.init();var h=tt.FORE,u=an(this.option);this.components.push({id:a,component:l,layer:h,direction:u,type:ht.LEGEND,extra:void 0}),e[a]=!0}}}else this.loopLegends(n);var c=[];M(this.getComponents(),function(f){e[f.id]?c.push(f):f.component.destroy()}),this.components=c},r.prototype.clear=function(){i.prototype.clear.call(this),this.container.clear()},r.prototype.destroy=function(){i.prototype.destroy.call(this),this.container.remove(!0)},r.prototype.getGeometries=function(t){var e=this,n=t.geometries;return M(t.views,function(a){n=n.concat(e.getGeometries(a))}),n},r.prototype.loopLegends=function(t){var e=this.view.getRootView()===this.view;if(e){var n=this.getGeometries(this.view),a={};M(n,function(o){var s=o.getGroupAttributes();M(s,function(l){var h=l.getScale(l.type);!h||h.type==="identity"||a[h.field]||(t(o,l,h),a[h.field]=!0)})})}},r.prototype.createFieldLegend=function(t,e,n){var a,o=Yh(this.option,n.field),s=tt.FORE,l=an(o);if(o!==!1&&(A(o,"custom")?a=this.createCustomLegend(t,e,n,o):n.isLinear?a=this.createContinuousLegend(t,e,n,o):n.isCategory&&(a=this.createCategoryLegend(t,e,n,o))),a)return a.set("field",n.field),{id:this.getId(n.field),component:a,layer:s,direction:l,type:ht.LEGEND,extra:{scale:n}}},r.prototype.createCustomLegend=function(t,e,n,a){var o=this.getCategoryCfg(t,e,n,a,!0);return new zl(o)},r.prototype.createContinuousLegend=function(t,e,n,a){var o=this.getContinuousCfg(t,e,n,Bt(a,["value"]));return new Um(o)},r.prototype.createCategoryLegend=function(t,e,n,a){var o=this.getCategoryCfg(t,e,n,a);return new zl(o)},r.prototype.getContinuousCfg=function(t,e,n,a){var o=n.getTicks(),s=pe(o,function(g){return g.value===0}),l=pe(o,function(g){return g.value===1}),h=o.map(function(g){var d=g.value,y=g.tickValue,w=e.mapping(n.invert(d)).join("");return{value:y,attrValue:w,color:w,scaleValue:d}});s||h.push({value:n.min,attrValue:e.mapping(n.invert(0)).join(""),color:e.mapping(n.invert(0)).join(""),scaleValue:0}),l||h.push({value:n.max,attrValue:e.mapping(n.invert(1)).join(""),color:e.mapping(n.invert(1)).join(""),scaleValue:1}),h.sort(function(g,d){return g.value-d.value});var u={min:Yt(h).value,max:pt(h).value,colors:[],rail:{type:e.type},track:{}};e.type==="size"&&(u.track={style:{fill:e.type==="size"?this.view.getTheme().defaultColor:void 0}}),e.type==="color"&&(u.colors=h.map(function(g){return g.attrValue}));var c=this.container,f=an(a),v=Ea(f),p=A(a,"title");return p&&(p=O({text:di(n)},p)),u.container=c,u.layout=v,u.title=p,u.animateOption=Er,this.mergeLegendCfg(u,a,"continuous")},r.prototype.getCategoryCfg=function(t,e,n,a,o){var s=this.container,l=A(a,"position",k.BOTTOM),h=oh(this.view.getTheme(),l),u=A(h,["marker"]),c=A(a,"marker"),f=Ea(l),v=A(h,["pageNavigator"]),p=A(a,"pageNavigator"),g=o?Ax(u,c,a.items):uf(this.view,t,e,u,c),d=A(a,"title");d&&(d=O({text:n?di(n):""},d));var y=A(a,"maxWidthRatio"),w=A(a,"maxHeightRatio"),x=this.getCategoryLegendSizeCfg(f,y,w);x.container=s,x.layout=f,x.items=g,x.title=d,x.animateOption=Er,x.pageNavigator=O({},v,p);var C=this.mergeLegendCfg(x,a,l);C.reversed&&C.items.reverse();var S=A(C,"maxItemWidth");return S&&S<=1&&(C.maxItemWidth=this.view.viewBBox.width*S),C},r.prototype.mergeLegendCfg=function(t,e,n){var a=n.split("-")[0],o=oh(this.view.getTheme(),a);return O({},o,t,e)},r.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},r.prototype.getComponentById=function(t){return pe(this.components,function(e){return e.id===t})},r.prototype.getCategoryLegendSizeCfg=function(t,e,n){e===void 0&&(e=Hs),n===void 0&&(n=Hs);var a=this.view.viewBBox,o=a.width,s=a.height;return t==="vertical"?{maxWidth:o*e,maxHeight:s}:{maxWidth:o,maxHeight:s*n}},r}(Dr),DC=function(i){T(r,i);function r(t){var e=i.call(this,t)||this;return e.onChangeFn=Ee,e.resetMeasure=function(){e.clear()},e.onValueChange=function(n){var a=n[0],o=n[1];e.start=a,e.end=o,e.changeViewData(a,o)},e.container=e.view.getLayer(tt.FORE).addGroup(),e.onChangeFn=Lo(e.onValueChange,20,{leading:!0}),e.width=0,e.view.on(Z.BEFORE_CHANGE_DATA,e.resetMeasure),e.view.on(Z.BEFORE_CHANGE_SIZE,e.resetMeasure),e}return Object.defineProperty(r.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),r.prototype.destroy=function(){i.prototype.destroy.call(this),this.view.off(Z.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(Z.BEFORE_CHANGE_SIZE,this.resetMeasure)},r.prototype.init=function(){},r.prototype.render=function(){this.option=this.view.getOptions().slider;var t=this.getSliderCfg(),e=t.start,n=t.end;E(this.start)&&(this.start=e,this.end=n);var a=this.view.getOptions().data;this.option&&!se(a)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},r.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout(function(){t.view.destroyed||t.changeViewData(t.start,t.end)},0)),this.slider){var e=this.view.coordinateBBox.width,n=this.slider.component.get("padding"),a=n[0];n[1],n[2];var o=n[3],s=this.slider.component.getLayoutBBox(),l=new bt(s.x,s.y,Math.min(s.width,e),s.height).expand(n),h=this.getMinMaxText(this.start,this.end),u=h.minText,c=h.maxText,f=ke(this.view.viewBBox,l,k.BOTTOM);f[0];var v=f[1],p=ke(this.view.coordinateBBox,l,k.BOTTOM),g=p[0];p[1],this.slider.component.update(m(m({},this.getSliderCfg()),{x:g+o,y:v+a,width:this.width,start:this.start,end:this.end,minText:u,maxText:c})),this.view.viewBBox=this.view.viewBBox.cut(l,k.BOTTOM)}},r.prototype.update=function(){this.render()},r.prototype.createSlider=function(){var t=this.getSliderCfg(),e=new Vm(m({container:this.container},t));return e.init(),{component:e,layer:tt.FORE,direction:k.BOTTOM,type:ht.SLIDER}},r.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var e=this.getMinMaxText(this.start,this.end),n=e.minText,a=e.maxText;t=m(m({},t),{width:this.width,start:this.start,end:this.end,minText:n,maxText:a})}return this.slider.component.update(t),this.slider},r.prototype.measureSlider=function(){var t=this.getSliderCfg().width;this.width=t},r.prototype.getSliderCfg=function(){var t={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if(Q(this.option)){var e=m({data:this.getData()},A(this.option,"trendCfg",{}));t=O({},t,this.getThemeOptions(),this.option),t=m(m({},t),{trendCfg:e})}return t.start=J(Math.min(E(t.start)?0:t.start,E(t.end)?1:t.end),0,1),t.end=J(Math.max(E(t.start)?0:t.start,E(t.end)?1:t.end),0,1),t},r.prototype.getData=function(){var t=this.view.getOptions().data,e=this.view.getYScales()[0],n=this.view.getGroupScales();if(n.length){var a=n[0],o=a.field,s=a.ticks;return t.reduce(function(l,h){return h[o]===s[0]&&l.push(h[e.field]),l},[])}return t.map(function(l){return l[e.field]||0})},r.prototype.getThemeOptions=function(){var t=this.view.getTheme();return A(t,["components","slider","common"],{})},r.prototype.getMinMaxText=function(t,e){var n=this.view.getOptions().data,a=this.view.getXScale(),o=ge(n,a.field);a.isLinear&&(o=o.sort());var s=o,l=Ft(n);if(!a||!l)return{};var h=Ft(s),u=Math.floor(t*(h-1)),c=Math.floor(e*(h-1)),f=A(s,[u]),v=A(s,[c]),p=this.getSliderCfg().formatter;return p&&(f=p(f,n[u],u),v=p(v,n[c],c)),{minText:f,maxText:v}},r.prototype.changeViewData=function(t,e){var n=this.view.getOptions().data,a=this.view.getXScale(),o=Ft(n);if(!(!a||!o)){var s=ge(n,a.field),l=this.view.getXScale().isLinear?s.sort(function(v,p){return Number(v)-Number(p)}):s,h=l,u=Ft(h),c=Math.floor(t*(u-1)),f=Math.floor(e*(u-1));this.view.filter(a.field,function(v,p){var g=h.indexOf(v);return g>-1?yr(g,c,f):!0}),this.view.render(!0)}},r.prototype.getComponents=function(){return this.slider?[this.slider]:[]},r.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},r}(Dr),on=0,Gh=8,RC=32,YC=20,GC=function(i){T(r,i);function r(t){var e=i.call(this,t)||this;return e.onChangeFn=Ee,e.resetMeasure=function(){e.clear()},e.onValueChange=function(n){var a=n.ratio,o=e.getValidScrollbarCfg().animate;e.ratio=J(a,0,1);var s=e.view.getOptions().animate;o||e.view.animate(!1),e.changeViewData(e.getScrollRange(),!0),e.view.animate(s)},e.container=e.view.getLayer(tt.FORE).addGroup(),e.onChangeFn=Lo(e.onValueChange,20,{leading:!0}),e.trackLen=0,e.thumbLen=0,e.ratio=0,e.view.on(Z.BEFORE_CHANGE_DATA,e.resetMeasure),e.view.on(Z.BEFORE_CHANGE_SIZE,e.resetMeasure),e}return Object.defineProperty(r.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),r.prototype.destroy=function(){i.prototype.destroy.call(this),this.view.off(Z.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(Z.BEFORE_CHANGE_SIZE,this.resetMeasure)},r.prototype.init=function(){},r.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},r.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout(function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)})),this.scrollbar){var e=this.view.coordinateBBox.width,n=this.scrollbar.component.get("padding"),a=this.scrollbar.component.getLayoutBBox(),o=new bt(a.x,a.y,Math.min(a.width,e),a.height).expand(n),s=this.getScrollbarComponentCfg(),l=void 0,h=void 0;if(s.isHorizontal){var u=ke(this.view.viewBBox,o,k.BOTTOM);u[0];var c=u[1],f=ke(this.view.coordinateBBox,o,k.BOTTOM),v=f[0];f[1],l=v,h=c}else{var p=ke(this.view.viewBBox,o,k.RIGHT);p[0];var c=p[1],g=ke(this.view.viewBBox,o,k.RIGHT),v=g[0];g[1],l=v,h=c}l+=n[3],h+=n[0],this.trackLen?this.scrollbar.component.update(m(m({},s),{x:l,y:h,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update(m(m({},s),{x:l,y:h})),this.view.viewBBox=this.view.viewBBox.cut(o,s.isHorizontal?k.BOTTOM:k.RIGHT)}},r.prototype.update=function(){this.render()},r.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},r.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},r.prototype.setValue=function(t){this.onValueChange({ratio:t})},r.prototype.getValue=function(){return this.ratio},r.prototype.getThemeOptions=function(){var t=this.view.getTheme();return A(t,["components","scrollbar","common"],{})},r.prototype.getScrollbarTheme=function(t){var e=A(this.view.getTheme(),["components","scrollbar"]),n=t||{},a=n.thumbHighlightColor,o=ct(n,["thumbHighlightColor"]);return{default:O({},A(e,["default","style"],{}),o),hover:O({},A(e,["hover","style"],{}),{thumbColor:a})}},r.prototype.measureScrollbar=function(){var t=this.view.getXScale(),e=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var n=this.getScrollbarComponentCfg(),a=n.trackLen,o=n.thumbLen;this.trackLen=a,this.thumbLen=o,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=e},r.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*J(this.ratio,0,1)),e=Math.min(t+this.step-1,this.cnt-1);return[t,e]},r.prototype.changeViewData=function(t,e){var n=this,a=t[0],o=t[1],s=this.getValidScrollbarCfg().type,l=s!=="vertical",h=ge(this.data,this.xScaleCfg.field),u=this.view.getXScale().isLinear?h.sort(function(f,v){return Number(f)-Number(v)}):h,c=l?u:u.reverse();this.yScalesCfg.forEach(function(f){n.view.scale(f.field,{formatter:f.formatter,type:f.type,min:f.min,max:f.max,tickMethod:f.tickMethod})}),this.view.filter(this.xScaleCfg.field,function(f){var v=c.indexOf(f);return v>-1?yr(v,a,o):!0}),this.view.render(!0)},r.prototype.createScrollbar=function(){var t=this.getValidScrollbarCfg().type,e=t!=="vertical",n=new zm(m(m({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return n.init(),{component:n,layer:tt.FORE,direction:e?k.BOTTOM:k.RIGHT,type:ht.SCROLLBAR}},r.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),e=this.trackLen?m(m({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):m({},t);return this.scrollbar.component.update(e),this.scrollbar},r.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,e=this.getValidScrollbarCfg(),n=e.type,a=e.categorySize,o=n!=="vertical";return Math.floor((o?t.width:t.height)/a)},r.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),e=this.getScrollbarData(),n=ge(e,t.field);return Ft(n)},r.prototype.getScrollbarComponentCfg=function(){var t=this.view,e=t.coordinateBBox,n=t.viewBBox,a=this.getValidScrollbarCfg(),o=a.type,s=a.padding,l=a.width,h=a.height,u=a.style,c=o!=="vertical",f=s[0],v=s[1],p=s[2],g=s[3],d=c?{x:e.minX+g,y:n.maxY-h-p}:{x:n.maxX-l-v,y:e.minY+f},y=this.getStep(),w=this.getCnt(),x=c?e.width-g-v:e.height-f-p,C=Math.max(x*J(y/w,0,1),YC);return m(m({},this.getThemeOptions()),{x:d.x,y:d.y,size:c?h:l,isHorizontal:c,trackLen:x,thumbLen:C,thumbOffset:0,theme:this.getScrollbarTheme(u)})},r.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:RC,width:Gh,height:Gh,padding:[0,0,0,0],animate:!0,style:{}};return Q(this.option)&&(t=m(m({},t),this.option)),(!Q(this.option)||!this.option.padding)&&(t.padding=t.type==="horizontal"?[on,0,on,0]:[0,on,0,on]),t},r.prototype.getScrollbarData=function(){var t=this.view.getCoordinate(),e=this.getValidScrollbarCfg(),n=this.view.getOptions().data||[];return t.isReflect("y")&&e.type==="vertical"&&(n=vt([],n,!0).reverse()),n},r}(Dr),HC={fill:"#CCD6EC",opacity:.3};function VC(i,r,t){var e=N0(i,r,t);if(e.length){e=Vt(e);for(var n=0,a=e;n<a.length;n++)for(var o=a[n],s=0,l=o;s<l.length;s++){var h=l[s],u=h.mappingData,c=u.x,f=u.y;h.x=I(c)?c[c.length-1]:c,h.y=I(f)?f[f.length-1]:f}var v=t.shared;if(v===!1&&e.length>1){for(var p=e[0],g=Math.abs(r.y-p[0].y),d=0,y=e;d<y.length;d++){var w=y[d],x=Math.abs(r.y-w[0].y);x<=g&&(p=w,g=x)}e=[p]}return Qh(Vt(e))}return[]}var XC=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.show=function(t){var e=this.context.view,n=this.context.event,a=e.getController("tooltip").getTooltipCfg(),o=VC(e,{x:n.x,y:n.y},a);if(!st(o,this.items)&&(this.items=o,o.length)){var s=e.getXScale().field,l=o[0].data[s],h=[],u=e.geometries;if(M(u,function(lt){if(lt.type==="interval"||lt.type==="schema"){var U=lt.getElementsBy(function(ye){var xt=ye.getData();return xt[s]===l});h=h.concat(U)}}),h.length){var c=e.getCoordinate(),f=h[0].shape.getCanvasBBox(),v=h[0].shape.getCanvasBBox(),p=f;M(h,function(lt){var U=lt.shape.getCanvasBBox();c.isTransposed?(U.minY<f.minY&&(f=U),U.maxY>v.maxY&&(v=U)):(U.minX<f.minX&&(f=U),U.maxX>v.maxX&&(v=U)),p.x=Math.min(U.minX,p.minX),p.y=Math.min(U.minY,p.minY),p.width=Math.max(U.maxX,p.maxX)-p.x,p.height=Math.max(U.maxY,p.maxY)-p.y});var g=e.backgroundGroup,d=e.coordinateBBox,y=void 0;if(c.isRect){var w=e.getXScale(),x=t||{},C=x.appendRatio,S=x.appendWidth;E(S)&&(C=E(C)?w.isLinear?0:.25:C,S=c.isTransposed?C*v.height:C*f.width);var b=void 0,L=void 0,B=void 0,P=void 0;c.isTransposed?(b=d.minX,L=Math.min(v.minY,f.minY)-S,B=d.width,P=p.height+S*2):(b=Math.min(f.minX,v.minX)-S,L=d.minY,B=p.width+S*2,P=d.height),y=[["M",b,L],["L",b+B,L],["L",b+B,L+P],["L",b,L+P],["Z"]]}else{var F=Yt(h),D=pt(h),Y=gi(F.getModel(),c).startAngle,z=gi(D.getModel(),c).endAngle,q=c.getCenter(),ut=c.getRadius(),at=c.innerRadius*ut;y=Fe(q.x,q.y,ut,Y,z,at)}if(this.regionPath)this.regionPath.attr("path",y),this.regionPath.show();else{var St=A(t,"style",HC);this.regionPath=g.addShape({type:"path",name:"active-region",capture:!1,attrs:m(m({},St),{path:y})})}}}},r.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},r.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),i.prototype.destroy.call(this)},r}(dt),Wf=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.timeStamp=0,t}return r.prototype.show=function(){var t=this.context,e=t.event,n=t.view,a=n.isTooltipLocked();if(!a){var o=this.timeStamp,s=+new Date,l=A(t.view.getOptions(),"tooltip.showDelay",16);if(s-o>l){var h=this.location,u={x:e.x,y:e.y};(!h||!st(h,u))&&this.showTooltip(n,u),this.timeStamp=s,this.location=u}}},r.prototype.hide=function(){var t=this.context.view,e=t.getController("tooltip"),n=this.context.event,a=n.clientX,o=n.clientY;e.isCursorEntered({x:a,y:o})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},r.prototype.showTooltip=function(t,e){t.showTooltip(e)},r.prototype.hideTooltip=function(t){t.hideTooltip()},r}(dt),zC=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.showTooltip=function(t,e){var n=ae(t);M(n,function(a){var o=ao(t,a,e);a.showTooltip(o)})},r.prototype.hideTooltip=function(t){var e=ae(t);M(e,function(n){n.hideTooltip()})},r}(Wf),NC=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.timeStamp=0,t}return r.prototype.destroy=function(){i.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},r.prototype.show=function(){var t=this.context,e=t.event,n=this.timeStamp,a=+new Date;if(a-n>16){var o=this.location,s={x:e.x,y:e.y};(!o||!st(o,s))&&this.showTooltip(s),this.timeStamp=a,this.location=s}},r.prototype.hide=function(){this.hideTooltip(),this.location=null},r.prototype.showTooltip=function(t){var e=this.context,n=e.event,a=n.target;if(a&&a.get("tip")){this.tooltip||this.renderTooltip();var o=a.get("tip");this.tooltip.update(m({title:o},t)),this.tooltip.show()}},r.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},r.prototype.renderTooltip=function(){var t,e=this.context.view,n=e.canvas,a={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},o=e.getTheme(),s=A(o,["components","tooltip","domStyles"],{}),l=new _o({parent:n.get("el").parentNode,region:a,visible:!1,crosshairs:null,domStyles:m({},O({},s,(t={},t[rr]={"max-width":"50%"},t[ir]={"word-break":"break-all"},t)))});l.init(),l.setCapture(!1),this.tooltip=l},r}(dt),xs=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.stateName="",t}return r.prototype.hasState=function(t){return t.hasState(this.stateName)},r.prototype.setElementState=function(t,e){t.setState(this.stateName,e)},r.prototype.setState=function(){this.setStateEnable(!0)},r.prototype.clear=function(){var t=this.context.view;this.clearViewState(t)},r.prototype.clearViewState=function(t){var e=this,n=Wc(t,this.stateName);M(n,function(a){e.setElementState(a,!1)})},r}(dt);function Hh(i){return A(i.get("delegateObject"),"item")}var ws=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.ignoreListItemStates=["unchecked"],t}return r.prototype.isItemIgnore=function(t,e){var n=this.ignoreListItemStates,a=n.filter(function(o){return e.hasState(t,o)});return!!a.length},r.prototype.setStateByComponent=function(t,e,n){var a=this.context.view,o=t.get("field"),s=gt(a);this.setElementsStateByItem(s,o,e,n)},r.prototype.setStateByElement=function(t,e){this.setElementState(t,e)},r.prototype.isMathItem=function(t,e,n){var a=this.context.view,o=Lr(a,e),s=Kt(t,e);return!E(s)&&n.name===o.getText(s)},r.prototype.setElementsStateByItem=function(t,e,n,a){var o=this;M(t,function(s){o.isMathItem(s,e,n)&&s.setState(o.stateName,a)})},r.prototype.setStateEnable=function(t){var e=Ye(this.context);if(e)Xc(this.context)&&this.setStateByElement(e,t);else{var n=Tr(this.context);if(yi(n)){var a=n.item,o=n.component;if(a&&o&&!this.isItemIgnore(a,o)){var s=this.context.event.gEvent;if(s&&s.fromShape&&s.toShape&&Hh(s.fromShape)===Hh(s.toShape))return;this.setStateByComponent(o,a,t)}}}},r.prototype.toggle=function(){var t=Ye(this.context);if(t){var e=t.hasState(this.stateName);this.setElementState(t,!e)}},r.prototype.reset=function(){this.setStateEnable(!1)},r}(xs),WC=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.stateName="active",t}return r.prototype.active=function(){this.setState()},r}(ws),_C=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.cache={},t}return r.prototype.getColorScale=function(t,e){var n=e.geometry.getAttribute("color");if(!n)return null;var a=t.getScaleByField(n.getFields()[0]);return a},r.prototype.getLinkPath=function(t,e){var n=this.context.view,a=n.getCoordinate().isTransposed,o=t.shape.getCanvasBBox(),s=e.shape.getCanvasBBox(),l=a?[["M",o.minX,o.minY],["L",s.minX,s.maxY],["L",s.maxX,s.maxY],["L",o.maxX,o.minY],["Z"]]:[["M",o.maxX,o.minY],["L",s.minX,s.minY],["L",s.minX,s.maxY],["L",o.maxX,o.maxY],["Z"]];return l},r.prototype.addLinkShape=function(t,e,n,a){var o={opacity:.4,fill:e.shape.attr("fill")};t.addShape({type:"path",attrs:m(m({},O({},o,R(a)?a(o,e):a)),{path:this.getLinkPath(e,n)})})},r.prototype.linkByElement=function(t,e){var n=this,a=this.context.view,o=this.getColorScale(a,t);if(o){var s=Kt(t,o.field);if(!this.cache[s]){var l=x0(a,o.field,s),h=this.linkGroup,u=h.addGroup();this.cache[s]=u;var c=l.length;M(l,function(f,v){if(v<c-1){var p=l[v+1];n.addLinkShape(u,f,p,e)}})}}},r.prototype.removeLink=function(t){var e=this.getColorScale(this.context.view,t);if(e){var n=Kt(t,e.field);this.cache[n]&&(this.cache[n].remove(),this.cache[n]=null)}},r.prototype.link=function(t){var e=this.context;this.linkGroup||(this.linkGroup=e.view.foregroundGroup.addGroup({id:"link-by-color-group",capture:!1}));var n=Ye(e);n&&this.linkByElement(n,t==null?void 0:t.style)},r.prototype.unlink=function(){var t=Ye(this.context);t&&this.removeLink(t)},r.prototype.clear=function(){this.linkGroup&&this.linkGroup.clear(),this.cache={}},r.prototype.destroy=function(){i.prototype.destroy.call(this),this.linkGroup&&this.linkGroup.remove()},r}(dt),Cs=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.startPoint=null,t.endPoint=null,t.isStarted=!1,t.effectSiblings=!1,t.effectByRecord=!1,t}return r.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},r.prototype.start=function(){this.clear(),this.startPoint=this.getCurrentPoint(),this.isStarted=!0},r.prototype.getIntersectElements=function(){var t=null;if(mi(this.context))t=jo(this.context,10);else{var e=this.startPoint,n=this.isStarted?this.getCurrentPoint():this.endPoint;if(!e||!n)return;var a={minX:Math.min(e.x,n.x),minY:Math.min(e.y,n.y),maxX:Math.max(e.x,n.x),maxY:Math.max(e.y,n.y)},o=this.context.view;t=qo(o,a)}return t},r.prototype.setStateEnable=function(t){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(t);else{var e=gt(this.context.view),n=this.getIntersectElements();n&&n.length?this.effectByRecord?this.setSiblingsStateByRecord(n,t):this.setElementsState(n,t,e):this.clear()}},r.prototype.setSiblingsStateByRecord=function(t,e){var n=this,a=this.context.view,o=ae(a),s=t.map(function(u){return u.getModel().data}),l=a.getXScale().field,h=a.getYScales()[0].field;M(o,function(u){var c=gt(u),f=c.filter(function(v){var p=v.getModel().data;return $c(s,p,l,h)});n.setElementsState(f,e,c)})},r.prototype.setSiblingsState=function(t){var e=this,n=this.context.view,a=ae(n);mi(this.context)&&M(a,function(o){var s=gt(o),l=Nc(e.context,o,10);l&&l.length?e.setElementsState(l,t,s):e.clearViewState(o)})},r.prototype.setElementsState=function(t,e,n){var a=this;M(n,function(o){t.includes(o)?a.setElementState(o,e):a.setElementState(o,!1)})},r.prototype.end=function(){this.isStarted=!1,this.endPoint=this.getCurrentPoint()},r.prototype.clear=function(){var t=this,e=this.context.view;if(this.effectSiblings){var n=ae(e);M(n,function(a){t.clearViewState(a)})}else this.clearViewState(e)},r}(xs),$C=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.stateName="active",t}return r.prototype.active=function(){this.setState()},r}(Cs),Ms=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.setStateEnable=function(t){var e=Ye(this.context);if(e){if(!Xc(this.context))return;t?(this.clear(),this.setElementState(e,!0)):this.hasState(e)&&this.setElementState(e,!1)}},r.prototype.toggle=function(){var t=Ye(this.context);if(t){var e=this.hasState(t);e||this.clear(),this.setElementState(t,!e)}},r.prototype.reset=function(){this.setStateEnable(!1)},r}(xs),UC=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.stateName="active",t}return r.prototype.active=function(){this.setState()},r}(Ms),ii="inactive",ni="active";function Ss(i){var r=gt(i);M(r,function(t){t.hasState(ni)&&t.setState(ni,!1),t.hasState(ii)&&t.setState(ii,!1)})}function _f(i,r,t){M(i,function(e){r(e)?(e.hasState(ii)&&e.setState(ii,!1),e.setState(ni,t)):(e.hasState(ni)&&e.setState(ni,!1),e.setState(ii,t))})}var Ze=fn.INACTIVE,ce=fn.ACTIVE,As=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.stateName=ce,t}return r.prototype.setElementsStateByItem=function(t,e,n,a){var o=this,s=function(l){return o.isMathItem(l,e,n)};this.setHighlightBy(t,s,a)},r.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(Ze)&&t.setState(Ze,!1),t.setState(ce,!0)):t.hasState(ce)||t.setState(Ze,!0)},r.prototype.setHighlightBy=function(t,e,n){var a=this;if(n)M(t,function(l){a.setElementHighlight(l,e)});else{var o=Wc(this.context.view,ce),s=!0;M(o,function(l){if(!e(l))return s=!1,!1}),s?this.clear():M(t,function(l){e(l)&&(l.hasState(ce)&&l.setState(ce,!1),l.setState(Ze,!0))})}},r.prototype.setElementState=function(t,e){var n=this.context.view,a=gt(n);this.setHighlightBy(a,function(o){return t===o},e)},r.prototype.highlight=function(){this.setState()},r.prototype.clear=function(){var t=this.context.view;Ss(t)},r}(ws),jC=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.setStateByElement=function(t,e){var n=this.context.view,a=t.geometry.getAttribute("color");if(a){var o=n.getScaleByField(a.getFields()[0]),s=Kt(t,o.field),l=gt(n),h=l.filter(function(u){return Kt(u,o.field)===s});this.setHighlightBy(l,function(u){return h.includes(u)},e)}},r}(As),qC=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(Ze)&&t.setState(Ze,!1),t.setState(ce,!0)):(t.setState(Ze,!0),t.hasState(ce)&&t.setState(ce,!1))},r.prototype.setStateByElement=function(t,e){var n=this.context.view,a=n.getXScale(),o=Kt(t,a.field),s=gt(n),l=s.filter(function(h){return Kt(h,a.field)===o});this.setHighlightBy(s,function(h){return l.includes(h)},e)},r.prototype.toggle=function(){var t=Ye(this.context);if(t){var e=t.hasState(this.stateName);this.setStateByElement(t,!e)}},r}(As),re;(function(i){i.BEFORE_HIGHLIGHT="element-range-highlight:beforehighlight",i.AFTER_HIGHLIGHT="element-range-highlight:afterhighlight",i.BEFORE_CLEAR="element-range-highlight:beforeclear",i.AFTER_CLEAR="element-range-highlight:afterclear"})(re||(re={}));var $f=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.stateName="active",t}return r.prototype.clearViewState=function(t){Ss(t)},r.prototype.highlight=function(){var t=this.context,e=t.view,n=t.event,a=this.getIntersectElements(),o={view:e,event:n,highlightElements:a};e.emit(re.BEFORE_HIGHLIGHT,Ct.fromData(e,re.BEFORE_HIGHLIGHT,o)),this.setState(),e.emit(re.AFTER_HIGHLIGHT,Ct.fromData(e,re.AFTER_HIGHLIGHT,o))},r.prototype.clear=function(){var t=this.context.view;t.emit(re.BEFORE_CLEAR,Ct.fromData(t,re.BEFORE_CLEAR,{})),i.prototype.clear.call(this),t.emit(re.AFTER_CLEAR,Ct.fromData(t,re.AFTER_CLEAR,{}))},r.prototype.setElementsState=function(t,e,n){_f(n,function(a){return t.indexOf(a)>=0},e)},r}(Cs),ZC=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.stateName="active",t}return r.prototype.highlight=function(){this.setState()},r.prototype.setElementState=function(t,e){var n=this.context.view,a=gt(n);_f(a,function(o){return t===o},e)},r.prototype.clear=function(){var t=this.context.view;Ss(t)},r}(Ms),QC=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.stateName="selected",t}return r.prototype.selected=function(){this.setState()},r}(Cs),KC=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.stateName="selected",t}return r.prototype.selected=function(){this.setState()},r}(ws),JC=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.stateName="selected",t}return r.prototype.selected=function(){this.setState()},r}(Ms),sr=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.stateName="",t.ignoreItemStates=[],t}return r.prototype.getTriggerListInfo=function(){var t=Tr(this.context),e=null;return yi(t)&&(e={item:t.item,list:t.component}),e},r.prototype.getAllowComponents=function(){var t=this,e=this.context.view,n=_c(e),a=[];return M(n,function(o){o.isList()&&t.allowSetStateByElement(o)&&a.push(o)}),a},r.prototype.hasState=function(t,e){return t.hasState(e,this.stateName)},r.prototype.clearAllComponentsState=function(){var t=this,e=this.getAllowComponents();M(e,function(n){n.clearItemsState(t.stateName)})},r.prototype.allowSetStateByElement=function(t){var e=t.get("field");if(!e)return!1;if(this.cfg&&this.cfg.componentNames){var n=t.get("name");if(this.cfg.componentNames.indexOf(n)===-1)return!1}var a=this.context.view,o=Lr(a,e);return o&&o.isCategory},r.prototype.allowSetStateByItem=function(t,e){var n=this.ignoreItemStates;if(n.length){var a=n.filter(function(o){return e.hasState(t,o)});return a.length===0}return!0},r.prototype.setStateByElement=function(t,e,n){var a=t.get("field"),o=this.context.view,s=Lr(o,a),l=Kt(e,a),h=s.getText(l);this.setItemsState(t,h,n)},r.prototype.setStateEnable=function(t){var e=this,n=Ye(this.context);if(n){var a=this.getAllowComponents();M(a,function(h){e.setStateByElement(h,n,t)})}else{var o=Tr(this.context);if(yi(o)){var s=o.item,l=o.component;this.allowSetStateByElement(l)&&this.allowSetStateByItem(s,l)&&this.setItemState(l,s,t)}}},r.prototype.setItemsState=function(t,e,n){var a=this,o=t.getItems();M(o,function(s){s.name===e&&a.setItemState(t,s,n)})},r.prototype.setItemState=function(t,e,n){t.setItemState(e,this.stateName,n)},r.prototype.setState=function(){this.setStateEnable(!0)},r.prototype.reset=function(){this.setStateEnable(!1)},r.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,a=this.hasState(e,n);this.setItemState(e,n,!a)}},r.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},r}(dt),tM=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.stateName="active",t}return r.prototype.active=function(){this.setState()},r}(sr),Vh="inactive",Xh="active";function eM(i){var r=i.getItems();M(r,function(t){i.hasState(t,Xh)&&i.setItemState(t,Xh,!1),i.hasState(t,Vh)&&i.setItemState(t,Vh,!1)})}var $r="inactive",$e="active",bs=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.stateName=$e,t.ignoreItemStates=["unchecked"],t}return r.prototype.setItemsState=function(t,e,n){this.setHighlightBy(t,function(a){return a.name===e},n)},r.prototype.setItemState=function(t,e,n){t.getItems(),this.setHighlightBy(t,function(a){return a===e},n)},r.prototype.setHighlightBy=function(t,e,n){var a=t.getItems();if(n)M(a,function(l){e(l)?(t.hasState(l,$r)&&t.setItemState(l,$r,!1),t.setItemState(l,$e,!0)):t.hasState(l,$e)||t.setItemState(l,$r,!0)});else{var o=t.getItemsByState($e),s=!0;M(o,function(l){if(!e(l))return s=!1,!1}),s?this.clear():M(a,function(l){e(l)&&(t.hasState(l,$e)&&t.setItemState(l,$e,!1),t.setItemState(l,$r,!0))})}},r.prototype.highlight=function(){this.setState()},r.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)eM(t.list);else{var e=this.getAllowComponents();M(e,function(n){n.clearItemsState($e),n.clearItemsState($r)})}},r}(sr),rM=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.stateName="selected",t}return r.prototype.selected=function(){this.setState()},r}(sr),iM=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.stateName="unchecked",t}return r.prototype.unchecked=function(){this.setState()},r}(sr),hr="unchecked",sn="checked",nM=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.stateName=sn,t}return r.prototype.setItemState=function(t,e,n){this.setCheckedBy(t,function(a){return a===e},n)},r.prototype.setCheckedBy=function(t,e,n){var a=t.getItems();n&&M(a,function(o){e(o)?(t.hasState(o,hr)&&t.setItemState(o,hr,!1),t.setItemState(o,sn,!0)):t.hasState(o,sn)||t.setItemState(o,hr,!0)})},r.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,a=!Bn(e.getItems(),function(o){return e.hasState(o,hr)});a||e.hasState(n,hr)?this.setItemState(e,n,!0):this.reset()}},r.prototype.checked=function(){this.setState()},r.prototype.reset=function(){var t=this.getAllowComponents();M(t,function(e){e.clearItemsState(sn),e.clearItemsState(hr)})},r}(sr),ur="unchecked",aM=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t!=null&&t.item){var e=t.list,n=t.item,a=e.getItems(),o=a.filter(function(w){return!e.hasState(w,ur)}),s=a.filter(function(w){return e.hasState(w,ur)}),l=o[0];if(a.length===o.length)for(var h=0,u=a;h<u.length;h++){var c=u[h];e.setItemState(c,ur,c.id!==n.id)}else if(a.length-s.length===1)if(l.id===n.id)for(var f=0,v=a;f<v.length;f++){var c=v[f];e.setItemState(c,ur,!1)}else for(var p=0,g=a;p<g.length;p++){var c=g[p];e.setItemState(c,ur,c.id!==n.id)}else for(var d=0,y=a;d<y.length;d++){var c=y[d];e.setItemState(c,ur,c.id!==n.id)}}},r}(sr),zh="showRadio",Oa="legend-radio-tip",oM=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.timeStamp=0,t}return r.prototype.show=function(){var t=this.getTriggerListInfo();if(t!=null&&t.item){var e=t.list,n=t.item;e.setItemState(n,zh,!0)}},r.prototype.hide=function(){var t=this.getTriggerListInfo();if(t!=null&&t.item){var e=t.list,n=t.item;e.setItemState(n,zh,!1)}},r.prototype.destroy=function(){i.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},r.prototype.showTip=function(){var t=this.context,e=t.event,n=this.timeStamp,a=+new Date,o=this.context.event.target;if(a-n>16&&o.get("name")==="legend-item-radio"){var s=this.location,l={x:e.x,y:e.y};this.timeStamp=a,this.location=l,(!s||!st(s,l))&&this.showTooltip(l)}},r.prototype.hideTip=function(){this.hideTooltip(),this.location=null},r.prototype.showTooltip=function(t){var e=this.context,n=e.event,a=n.target;if(a&&a.get("tip")){this.tooltip||this.renderTooltip();var o=e.view.getCanvas().get("el").getBoundingClientRect(),s=o.x,l=o.y;this.tooltip.update(m(m({title:a.get("tip")},t),{x:t.x+s,y:t.y+l})),this.tooltip.show()}},r.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},r.prototype.renderTooltip=function(){var t,e=(t={},t[rr]={padding:"6px 8px",transform:"translate(-50%, -80%)",background:"rgba(0,0,0,0.75)",color:"#fff","border-radius":"2px","z-index":100},t[ir]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},t);document.getElementById(Oa)&&document.body.removeChild(document.getElementById(Oa));var n=new _o({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:e,containerId:Oa});n.init(),n.setCapture(!1),this.tooltip=n},r}(sr),Ts=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.maskShape=null,t.points=[],t.starting=!1,t.moving=!1,t.preMovePoint=null,t.shapeType="path",t}return r.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},r.prototype.emitEvent=function(t){var e="mask:".concat(t),n=this.context.view,a=this.context.event;n.emit(e,{target:this.maskShape,shape:this.maskShape,points:this.points,x:a.x,y:a.y})},r.prototype.createMask=function(){var t=this.context.view,e=this.getMaskAttrs(),n=t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:m({fill:"#C5D4EB",opacity:.3},e)});return n},r.prototype.getMaskPath=function(){return[]},r.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},r.prototype.start=function(t){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(t==null?void 0:t.maskStyle),this.emitEvent("start")},r.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},r.prototype.move=function(){if(!(!this.moving||!this.maskShape)){var t=this.getCurrentPoint(),e=this.preMovePoint,n=t.x-e.x,a=t.y-e.y,o=this.points;M(o,function(s){s.x+=n,s.y+=a}),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},r.prototype.updateMask=function(t){var e=O({},this.getMaskAttrs(),t);this.maskShape.attr(e)},r.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},r.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},r.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},r.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},r.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,i.prototype.destroy.call(this)},r}(dt),sM=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.shapeType="circle",t}return r.prototype.getMaskAttrs=function(){var t=this.points,e=pt(this.points),n=0,a=0,o=0;if(t.length){var s=t[0];n=Zo(s,e)/2,a=(e.x+s.x)/2,o=(e.y+s.y)/2}return{x:a,y:o,r:n}},r}(Ts),Uf=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.shapeType="rect",t}return r.prototype.getRegion=function(){var t=this.points;return{start:Yt(t),end:pt(t)}},r.prototype.getMaskAttrs=function(){var t=this.getRegion(),e=t.start,n=t.end,a=Math.min(e.x,n.x),o=Math.min(e.y,n.y),s=Math.abs(n.x-e.x),l=Math.abs(n.y-e.y);return{x:a,y:o,width:s,height:l}},r}(Ts);function Nh(i){i.x=J(i.x,0,1),i.y=J(i.y,0,1)}var jf=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.dim="x",t.inPlot=!0,t}return r.prototype.getRegion=function(){var t=null,e=null,n=this.points,a=this.dim,o=this.context.view.getCoordinate(),s=o.invert(Yt(n)),l=o.invert(pt(n));return this.inPlot&&(Nh(s),Nh(l)),a==="x"?(t=o.convert({x:s.x,y:0}),e=o.convert({x:l.x,y:1})):(t=o.convert({x:0,y:s.y}),e=o.convert({x:1,y:l.y})),{start:t,end:e}},r}(Uf),qf=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getMaskPath=function(){var t=this.points,e=[];return t.length&&(M(t,function(n,a){a===0?e.push(["M",n.x,n.y]):e.push(["L",n.x,n.y])}),e.push(["L",t[0].x,t[0].y])),e},r.prototype.getMaskAttrs=function(){return{path:this.getMaskPath()}},r.prototype.addPoint=function(){this.resize()},r}(Ts),lM=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.getMaskPath=function(){var t=this.points;return M0(t,!0)},r}(qf),hM=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.setCursor=function(t){var e=this.context.view;e.getCanvas().setCursor(t)},r.prototype.default=function(){this.setCursor("default")},r.prototype.pointer=function(){this.setCursor("pointer")},r.prototype.move=function(){this.setCursor("move")},r.prototype.crosshair=function(){this.setCursor("crosshair")},r.prototype.wait=function(){this.setCursor("wait")},r.prototype.help=function(){this.setCursor("help")},r.prototype.text=function(){this.setCursor("text")},r.prototype.eResize=function(){this.setCursor("e-resize")},r.prototype.wResize=function(){this.setCursor("w-resize")},r.prototype.nResize=function(){this.setCursor("n-resize")},r.prototype.sResize=function(){this.setCursor("s-resize")},r.prototype.neResize=function(){this.setCursor("ne-resize")},r.prototype.nwResize=function(){this.setCursor("nw-resize")},r.prototype.seResize=function(){this.setCursor("se-resize")},r.prototype.swResize=function(){this.setCursor("sw-resize")},r.prototype.nsResize=function(){this.setCursor("ns-resize")},r.prototype.ewResize=function(){this.setCursor("ew-resize")},r}(dt),uM=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.filterView=function(t,e,n){var a=this;t.getScaleByField(e)&&t.filter(e,n),t.views&&t.views.length&&M(t.views,function(o){a.filterView(o,e,n)})},r.prototype.filter=function(){var t=Tr(this.context);if(t){var e=this.context.view,n=t.component,a=n.get("field");if(yi(t)){if(a){var o=n.getItemsByState("unchecked"),s=Lr(e,a),l=o.map(function(f){return f.name});l.length?this.filterView(e,a,function(f){var v=s.getText(f);return!l.includes(v)}):this.filterView(e,a,null),e.render(!0)}}else if(zc(t)){var h=n.getValue(),u=h[0],c=h[1];this.filterView(e,a,function(f){return f>=u&&f<=c}),e.render(!0)}}},r}(dt);function Wh(i,r,t,e){var n=Math.min(t[r],e[r]),a=Math.max(t[r],e[r]),o=i.range,s=o[0],l=o[1];if(n<s&&(n=s),a>l&&(a=l),n===l&&a===l)return null;var h=i.invert(n),u=i.invert(a);if(i.isCategory){var c=i.values.indexOf(h),f=i.values.indexOf(u),v=i.values.slice(c,f+1);return function(p){return v.includes(p)}}else return function(p){return p>=h&&p<=u}}var zt;(function(i){i.FILTER="brush-filter-processing",i.RESET="brush-filter-reset",i.BEFORE_FILTER="brush-filter:beforefilter",i.AFTER_FILTER="brush-filter:afterfilter",i.BEFORE_RESET="brush-filter:beforereset",i.AFTER_RESET="brush-filter:afterreset"})(zt||(zt={}));var oa=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.dims=["x","y"],t.startPoint=null,t.isStarted=!1,t}return r.prototype.hasDim=function(t){return this.dims.includes(t)},r.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},r.prototype.filter=function(){var t,e;if(mi(this.context)){var n=this.context.event.target,a=n.getCanvasBBox();t={x:a.x,y:a.y},e={x:a.maxX,y:a.maxY}}else{if(!this.isStarted)return;t=this.startPoint,e=this.context.getCurrentPoint()}if(!(Math.abs(t.x-e.x)<5||Math.abs(t.x-e.y)<5)){var o=this.context,s=o.view,l=o.event,h={view:s,event:l,dims:this.dims};s.emit(zt.BEFORE_FILTER,Ct.fromData(s,zt.BEFORE_FILTER,h));var u=s.getCoordinate(),c=u.invert(e),f=u.invert(t);if(this.hasDim("x")){var v=s.getXScale(),p=Wh(v,"x",c,f);this.filterView(s,v.field,p)}if(this.hasDim("y")){var g=s.getYScales()[0],p=Wh(g,"y",c,f);this.filterView(s,g.field,p)}this.reRender(s,{source:zt.FILTER}),s.emit(zt.AFTER_FILTER,Ct.fromData(s,zt.AFTER_FILTER,h))}},r.prototype.end=function(){this.isStarted=!1},r.prototype.reset=function(){var t=this.context.view;if(t.emit(zt.BEFORE_RESET,Ct.fromData(t,zt.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var e=t.getXScale();this.filterView(t,e.field,null)}if(this.hasDim("y")){var n=t.getYScales()[0];this.filterView(t,n.field,null)}this.reRender(t,{source:zt.RESET}),t.emit(zt.AFTER_RESET,Ct.fromData(t,zt.AFTER_RESET,{}))},r.prototype.filterView=function(t,e,n){t.filter(e,n)},r.prototype.reRender=function(t,e){t.render(!0,e)},r}(dt),Ls=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.filterView=function(t,e,n){var a=ae(t);M(a,function(o){o.filter(e,n)})},r.prototype.reRender=function(t){var e=ae(t);M(e,function(n){n.render(!0)})},r}(oa),cM=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.filter=function(){var t=Tr(this.context),e=this.context.view,n=gt(e);if(mi(this.context)){var a=jo(this.context,10);a&&M(n,function(p){a.includes(p)?p.show():p.hide()})}else if(t){var o=t.component,s=o.get("field");if(yi(t)){if(s){var l=o.getItemsByState("unchecked"),h=Lr(e,s),u=l.map(function(p){return p.name});M(n,function(p){var g=Kt(p,s),d=h.getText(g);u.indexOf(d)>=0?p.hide():p.show()})}}else if(zc(t)){var c=o.getValue(),f=c[0],v=c[1];M(n,function(p){var g=Kt(p,s);g>=f&&g<=v?p.show():p.hide()})}}},r.prototype.clear=function(){var t=gt(this.context.view);M(t,function(e){e.show()})},r.prototype.reset=function(){this.clear()},r}(dt),Zf=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.byRecord=!1,t}return r.prototype.filter=function(){mi(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},r.prototype.filterByRecord=function(){var t=this.context.view,e=jo(this.context,10);if(e){var n=t.getXScale().field,a=t.getYScales()[0].field,o=e.map(function(l){return l.getModel().data}),s=ae(t);M(s,function(l){var h=gt(l);M(h,function(u){var c=u.getModel().data;$c(o,c,n,a)?u.show():u.hide()})})}},r.prototype.filterByBBox=function(){var t=this,e=this.context.view,n=ae(e);M(n,function(a){var o=Nc(t.context,a,10),s=gt(a);o&&M(s,function(l){o.includes(l)?l.show():l.hide()})})},r.prototype.reset=function(){var t=ae(this.context.view);M(t,function(e){var n=gt(e);M(n,function(a){a.show()})})},r}(dt),fM=10,vM=5,pM=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.buttonGroup=null,t.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},t}return r.prototype.getButtonCfg=function(){return O(this.buttonCfg,this.cfg)},r.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=e.addShape({type:"text",name:"button-text",attrs:m({text:t.text},t.textStyle)}),a=n.getBBox(),o=Ko(t.padding),s=e.addShape({type:"rect",name:"button-rect",attrs:m({x:a.x-o[3],y:a.y-o[0],width:a.width+o[1]+o[3],height:a.height+o[0]+o[2]},t.style)});s.toBack(),e.on("mouseenter",function(){s.attr(t.activeStyle)}),e.on("mouseleave",function(){s.attr(t.style)}),this.buttonGroup=e},r.prototype.resetPosition=function(){var t=this.context.view,e=t.getCoordinate(),n=e.convert({x:1,y:1}),a=this.buttonGroup,o=a.getBBox(),s=nt(null,[["t",n.x-o.width-fM,n.y+o.height+vM]]);a.setMatrix(s)},r.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},r.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},r.prototype.destroy=function(){var t=this.buttonGroup;t&&t.remove(),i.prototype.destroy.call(this)},r}(dt),gM=4,dM=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.starting=!1,t.dragStart=!1,t}return r.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},r.prototype.drag=function(){if(this.startPoint){var t=this.context.getCurrentPoint(),e=this.context.view,n=this.context.event;this.dragStart?e.emit("drag",{target:n.target,x:n.x,y:n.y}):Zo(t,this.startPoint)>gM&&(e.emit("dragstart",{target:n.target,x:n.x,y:n.y}),this.dragStart=!0)}},r.prototype.end=function(){if(this.dragStart){var t=this.context.view,e=this.context.event;t.emit("dragend",{target:e.target,x:e.x,y:e.y})}this.starting=!1,this.dragStart=!1},r}(dt),yM=5,mM=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.starting=!1,t.isMoving=!1,t.startPoint=null,t.startMatrix=null,t}return r.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},r.prototype.move=function(){if(this.starting){var t=this.startPoint,e=this.context.getCurrentPoint(),n=Zo(t,e);if(n>yM&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var a=this.context.view,o=nt(this.startMatrix,[["t",e.x-t.x,e.y-t.y]]);a.backgroundGroup.setMatrix(o),a.foregroundGroup.setMatrix(o),a.middleGroup.setMatrix(o)}}},r.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},r.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},r}(dt),_h="x",$h="y",Qf=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.dims=[_h,$h],t.cfgFields=["dims"],t.cacheScaleDefs={},t}return r.prototype.hasDim=function(t){return this.dims.includes(t)},r.prototype.getScale=function(t){var e=this.context.view;return t==="x"?e.getXScale():e.getYScales()[0]},r.prototype.resetDim=function(t){var e=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);e.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},r.prototype.reset=function(){this.resetDim(_h),this.resetDim($h);var t=this.context.view;t.render(!0)},r}(dt),xM=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.startPoint=null,t.starting=!1,t.startCache={},t}return r.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var e=this.dims;M(e,function(n){var a=t.getScale(n),o=a.min,s=a.max,l=a.values;t.startCache[n]={min:o,max:s,values:l}})},r.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},r.prototype.translate=function(){var t=this;if(this.starting){var e=this.startPoint,n=this.context.view.getCoordinate(),a=this.context.getCurrentPoint(),o=n.invert(e),s=n.invert(a),l=s.x-o.x,h=s.y-o.y,u=this.context.view,c=this.dims;M(c,function(f){t.translateDim(f,{x:l*-1,y:h*-1})}),u.render(!0)}},r.prototype.translateDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.translateLinear(t,n,e)}},r.prototype.translateLinear=function(t,e,n){var a=this.context.view,o=this.startCache[t],s=o.min,l=o.max,h=l-s,u=n[t]*h;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:s,max:l}),a.scale(e.field,{nice:!1,min:s+u,max:l+u})},r.prototype.reset=function(){i.prototype.reset.call(this),this.startPoint=null,this.starting=!1},r}(Qf),wM=function(i){T(r,i);function r(){var t=i!==null&&i.apply(this,arguments)||this;return t.zoomRatio=.05,t}return r.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},r.prototype.zoom=function(t){var e=this,n=this.dims;M(n,function(a){e.zoomDim(a,t)}),this.context.view.render(!0)},r.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},r.prototype.zoomDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.zoomLinear(t,n,e)}},r.prototype.zoomLinear=function(t,e,n){var a=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:e.min,max:e.max});var o=this.cacheScaleDefs[t],s=o.max-o.min,l=e.min,h=e.max,u=n*s,c=l-u,f=h+u,v=f-c,p=v/s;f>c&&p<100&&p>.01&&a.scale(e.field,{nice:!1,min:l-u,max:h+u})},r}(Qf);function CM(i){var r=i.gEvent.originalEvent;return r.deltaY>0}var MM=1,SM=function(i){T(r,i);function r(){return i!==null&&i.apply(this,arguments)||this}return r.prototype.scroll=function(t){var e=this.context,n=e.view,a=e.event;if(n.getOptions().scrollbar){var o=(t==null?void 0:t.wheelDelta)||MM,s=n.getController("scrollbar"),l=n.getXScale(),h=n.getOptions().data,u=Ft(ge(h,l.field)),c=Ft(l.values),f=s.getValue(),v=Math.floor((u-c)*f),p=v+(CM(a)?o:-o),g=o/(u-c)/1e4,d=J(p/(u-c)+g,0,1);s.setValue(d)}},r}(dt);R0("dark",jc(kx));ou("canvas",p1);ou("svg",U1);ue("Polygon",sw);ue("Interval",rw);ue("Schema",lw);ue("Path",fs);ue("Point",aw);ue("Line",iw);ue("Area",q1);ue("Edge",Z1);ue("Heatmap",Q1);ue("Violin",uw);ra("base",is);ra("interval",Tw);ra("pie",Lw);ra("polar",Hf);Ot("overlap",Xw);Ot("distribute",Bw);Ot("fixed-overlap",Vw);Ot("hide-overlap",Uw);Ot("limit-in-shape",Rw);Ot("limit-in-canvas",Dw);Ot("limit-in-plot",uC);Ot("pie-outer",kw);Ot("adjust-color",qw);Ot("interval-adjust-position",Jw);Ot("interval-hide-overlap",eC);Ot("point-adjust-position",nC);Ot("pie-spider",Ow);Ot("path-adjust-position",sC);Xt("fade-in",cC);Xt("fade-out",fC);Xt("grow-in-x",pC);Xt("grow-in-xy",dC);Xt("grow-in-y",gC);Xt("scale-in-x",xC);Xt("scale-in-y",wC);Xt("wave-in",MC);Xt("zoom-in",SC);Xt("zoom-out",AC);Xt("position-update",mC);Xt("sector-path-update",CC);Xt("path-in",yC);Fr("rect",BC);Fr("mirror",EC);Fr("list",TC);Fr("matrix",LC);Fr("circle",bC);Fr("tree",IC);Or("axis",FC);Or("legend",OC);Or("tooltip",ix);Or("annotation",PC);Or("slider",DC);Or("scrollbar",GC);G("tooltip",Wf);G("sibling-tooltip",zC);G("ellipsis-text",NC);G("element-active",WC);G("element-single-active",UC);G("element-range-active",$C);G("element-highlight",As);G("element-highlight-by-x",qC);G("element-highlight-by-color",jC);G("element-single-highlight",ZC);G("element-range-highlight",$f);G("element-sibling-highlight",$f,{effectSiblings:!0,effectByRecord:!0});G("element-selected",KC);G("element-single-selected",JC);G("element-range-selected",QC);G("element-link-by-color",_C);G("active-region",XC);G("list-active",tM);G("list-selected",rM);G("list-highlight",bs);G("list-unchecked",iM);G("list-checked",nM);G("list-focus",aM);G("list-radio",oM);G("legend-item-highlight",bs,{componentNames:["legend"]});G("axis-label-highlight",bs,{componentNames:["axis"]});G("rect-mask",Uf);G("x-rect-mask",jf,{dim:"x"});G("y-rect-mask",jf,{dim:"y"});G("circle-mask",sM);G("path-mask",qf);G("smooth-path-mask",lM);G("cursor",hM);G("data-filter",uM);G("brush",oa);G("brush-x",oa,{dims:["x"]});G("brush-y",oa,{dims:["y"]});G("sibling-filter",Ls);G("sibling-x-filter",Ls);G("sibling-y-filter",Ls);G("element-filter",cM);G("element-sibling-filter",Zf);G("element-sibling-filter-record",Zf,{byRecord:!0});G("view-drag",dM);G("view-move",mM);G("scale-translate",xM);G("scale-zoom",wM);G("reset-button",pM,{name:"reset-button",text:"reset"});G("mousewheel-scroll",SM);function Oe(i){return i.isInPlot()}K("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]});K("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]});K("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]});K("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]});K("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]});K("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]});K("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]});K("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]});K("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]});K("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]});K("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]});K("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(i){return!i.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(i){return!i.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]});K("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Oe,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Oe,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Oe,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]});K("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]});K("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Oe,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Oe,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Oe,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]});K("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Oe,action:"path-mask:start"},{trigger:"mousedown",isEnable:Oe,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]});K("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]});K("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(i){return!i.isInShape("legend-item-radio")},action:["list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]});K("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]});K("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]});K("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","element-filter:filter"]}]});K("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]});function Uh(i){return i.gEvent.preventDefault(),i.gEvent.originalEvent.deltaY>0}K("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(i){return Uh(i.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(i){return!Uh(i.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]});K("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]});K("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]});export{dt as Action,zt as BRUSH_FILTER_EVENTS,LM as Chart,Dr as ComponentController,Yo as Coordinate,k as DIRECTION,re as ELEMENT_RANGE_HIGHLIGHT_EVENTS,rf as Element,Ct as Event,Pr as Facet,ze as Geometry,is as GeometryLabel,T0 as Interaction,dt as InteractionAction,tt as LAYER,Fo as Scale,ix as TooltipController,BM as Util,EM as VERSION,Z as VIEW_LIFE_CIRCLE,J0 as View,TM as getActionClass,tf as getAnimation,ap as getEngine,s0 as getFacet,lx as getGeometryLabel,hx as getGeometryLabelLayout,E0 as getInteraction,nh as getShapeFactory,La as getTheme,G as registerAction,Xt as registerAnimation,Or as registerComponentController,ou as registerEngine,Fr as registerFacet,ue as registerGeometry,ra as registerGeometryLabel,Ot as registerGeometryLabelLayout,K as registerInteraction,j as registerShape,Xe as registerShapeFactory,R0 as registerTheme};