@oiz/stzh-components 2.2.0 → 2.3.0-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (789) hide show
  1. package/dist/cjs/{app-globals-b6d82414.js → app-globals-13e786d3.js} +1 -1
  2. package/dist/cjs/{arrow-3c3b0ae5.js → arrow-cd521f34.js} +468 -478
  3. package/dist/cjs/axios-7ec96df7.js +3167 -0
  4. package/dist/cjs/{dom-9deb26c8.js → dom-be1edfde.js} +1 -1
  5. package/dist/cjs/{focus-trap.esm-1cb6bb2e.js → focus-trap.esm-34a1a0d0.js} +188 -278
  6. package/dist/cjs/{index-9fcb4305.js → index-83d427ee.js} +113 -3
  7. package/dist/cjs/loader.cjs.js +5 -4
  8. package/dist/cjs/{shadow-css-bf3843d2.js → shadow-css-54f5c2d9.js} +1 -1
  9. package/dist/cjs/stzh-accordion-item.cjs.entry.js +1 -1
  10. package/dist/cjs/stzh-accordion.cjs.entry.js +1 -1
  11. package/dist/cjs/stzh-actions.cjs.entry.js +1 -1
  12. package/dist/cjs/stzh-actionset.cjs.entry.js +15 -5
  13. package/dist/cjs/stzh-anchornav.cjs.entry.js +2 -2
  14. package/dist/cjs/stzh-appnav.cjs.entry.js +1 -1
  15. package/dist/cjs/stzh-appointments.cjs.entry.js +1 -1
  16. package/dist/cjs/stzh-audio.cjs.entry.js +1 -1
  17. package/dist/cjs/stzh-badge_3.cjs.entry.js +2 -2
  18. package/dist/cjs/stzh-calendar.cjs.entry.js +1 -1
  19. package/dist/cjs/stzh-card_3.cjs.entry.js +20 -15
  20. package/dist/cjs/stzh-cell.cjs.entry.js +1 -1
  21. package/dist/cjs/stzh-chart.cjs.entry.js +1471 -404
  22. package/dist/cjs/stzh-checkbox.cjs.entry.js +2 -2
  23. package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +2 -2
  24. package/dist/cjs/stzh-chip_2.cjs.entry.js +132 -0
  25. package/dist/cjs/stzh-components.cjs.js +27 -5
  26. package/dist/cjs/stzh-contact.cjs.entry.js +91 -0
  27. package/dist/cjs/stzh-container.cjs.entry.js +3 -2
  28. package/dist/cjs/stzh-cspace.cjs.entry.js +2 -2
  29. package/dist/cjs/stzh-datalist_2.cjs.entry.js +33 -13
  30. package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js +1 -1
  31. package/dist/cjs/stzh-datamessagelist.cjs.entry.js +1 -1
  32. package/dist/cjs/stzh-datatable.cjs.entry.js +32 -31
  33. package/dist/cjs/stzh-datepicker_3.cjs.entry.js +2 -2
  34. package/dist/cjs/stzh-details.cjs.entry.js +1 -1
  35. package/dist/cjs/stzh-dialog.cjs.entry.js +2 -2
  36. package/dist/cjs/stzh-dropdown.cjs.entry.js +1056 -425
  37. package/dist/cjs/stzh-fieldset.cjs.entry.js +2 -2
  38. package/dist/cjs/stzh-figure.cjs.entry.js +5 -3
  39. package/dist/cjs/stzh-flyingfocus.cjs.entry.js +1 -1
  40. package/dist/cjs/stzh-footer.cjs.entry.js +2 -2
  41. package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +3 -3
  42. package/dist/cjs/stzh-header.cjs.entry.js +6 -5
  43. package/dist/cjs/stzh-heading.cjs.entry.js +1 -1
  44. package/dist/cjs/stzh-hr.cjs.entry.js +1 -1
  45. package/dist/cjs/stzh-hspace.cjs.entry.js +4 -3
  46. package/dist/cjs/stzh-icon-sprite.cjs.entry.js +1 -1
  47. package/dist/cjs/{stzh-input-description-4326b0d9.js → stzh-input-description-2edc5cac.js} +1 -1
  48. package/dist/cjs/stzh-input.cjs.entry.js +2 -2
  49. package/dist/cjs/stzh-invert.cjs.entry.js +23 -0
  50. package/dist/cjs/stzh-langnav.cjs.entry.js +1 -1
  51. package/dist/cjs/stzh-link.cjs.entry.js +1 -1
  52. package/dist/cjs/stzh-list-item.cjs.entry.js +1 -1
  53. package/dist/cjs/stzh-list.cjs.entry.js +1 -1
  54. package/dist/cjs/stzh-loader.cjs.entry.js +1 -1
  55. package/dist/cjs/stzh-loadingbar.cjs.entry.js +1 -1
  56. package/dist/cjs/stzh-menu_2.cjs.entry.js +1 -1
  57. package/dist/cjs/stzh-message.cjs.entry.js +1 -1
  58. package/dist/cjs/stzh-metanav.cjs.entry.js +1 -1
  59. package/dist/cjs/stzh-microsite-teaserlist.cjs.entry.js +3 -3
  60. package/dist/cjs/stzh-olmap.cjs.entry.js +1 -1
  61. package/dist/cjs/stzh-overlay.cjs.entry.js +2 -2
  62. package/dist/cjs/stzh-page-skiplinks.cjs.entry.js +1 -1
  63. package/dist/cjs/stzh-pagebottom.cjs.entry.js +5 -2
  64. package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +2 -2
  65. package/dist/cjs/stzh-pagetitle.cjs.entry.js +9 -1
  66. package/dist/cjs/stzh-popover.cjs.entry.js +5 -5
  67. package/dist/cjs/stzh-portal-mitwirken.cjs.entry.js +2 -2
  68. package/dist/cjs/stzh-progressbar-item.cjs.entry.js +6 -4
  69. package/dist/cjs/stzh-progressbar.cjs.entry.js +2 -2
  70. package/dist/cjs/stzh-ratio.cjs.entry.js +26 -0
  71. package/dist/cjs/stzh-readspeaker.cjs.entry.js +1 -1
  72. package/dist/cjs/stzh-row.cjs.entry.js +1 -1
  73. package/dist/cjs/stzh-saptcha.cjs.entry.js +1 -1
  74. package/dist/cjs/stzh-section.cjs.entry.js +1 -1
  75. package/dist/cjs/stzh-share.cjs.entry.js +1 -1
  76. package/dist/cjs/stzh-show.cjs.entry.js +41 -0
  77. package/dist/cjs/stzh-sitemap.cjs.entry.js +2 -2
  78. package/dist/cjs/stzh-skiplink.cjs.entry.js +1 -1
  79. package/dist/cjs/stzh-sortable.cjs.entry.js +10 -66
  80. package/dist/cjs/stzh-space.cjs.entry.js +34 -0
  81. package/dist/cjs/stzh-status.cjs.entry.js +1 -1
  82. package/dist/cjs/stzh-sticky.cjs.entry.js +5 -3
  83. package/dist/cjs/stzh-table.cjs.entry.js +3 -2
  84. package/dist/cjs/stzh-text.cjs.entry.js +2 -2
  85. package/dist/cjs/stzh-textandimage.cjs.entry.js +1 -1
  86. package/dist/cjs/stzh-toggle.cjs.entry.js +2 -2
  87. package/dist/cjs/stzh-tooltip.cjs.entry.js +5 -5
  88. package/dist/cjs/stzh-upload.cjs.entry.js +5 -2
  89. package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +782 -690
  90. package/dist/cjs/stzh-vbz-majorticker.cjs.entry.js +7 -7
  91. package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +3 -3
  92. package/dist/cjs/stzh-visuallyhidden.cjs.entry.js +1 -1
  93. package/dist/cjs/stzh-vspace.cjs.entry.js +4 -3
  94. package/dist/collection/assets/i18n/de.json +1 -1
  95. package/dist/collection/assets/i18n/en.json +1 -1
  96. package/dist/collection/collection-manifest.json +7 -3
  97. package/dist/collection/components/stzh-actionset/stzh-actionset.css +11 -0
  98. package/dist/collection/components/stzh-actionset/stzh-actionset.js +18 -8
  99. package/dist/collection/components/stzh-actionset/stzh-actionset.stories.js +5 -5
  100. package/dist/collection/components/stzh-anchornav/stzh-anchornav.css +1 -3
  101. package/dist/collection/components/stzh-button/stzh-button.css +12 -4
  102. package/dist/collection/components/stzh-button/stzh-button.stories.js +10 -6
  103. package/dist/collection/components/stzh-card/stzh-card.css +0 -18
  104. package/dist/collection/components/stzh-card/stzh-card.stories.js +1 -1
  105. package/dist/collection/components/stzh-chart/stzh-chart.css +55 -37
  106. package/dist/collection/components/stzh-chip/stzh-chip.css +16 -2
  107. package/dist/collection/components/stzh-chip/stzh-chip.js +32 -3
  108. package/dist/collection/components/stzh-chip/stzh-chip.stories.js +7 -0
  109. package/dist/collection/components/stzh-chip-select/stzh-chip-select.css +6 -0
  110. package/dist/collection/components/stzh-chip-select/stzh-chip-select.js +21 -11
  111. package/dist/collection/components/stzh-clamp/stzh-clamp.css +5 -0
  112. package/dist/collection/components/{stzh-contactaddress/stzh-contactaddress.css → stzh-contact/stzh-contact.css} +22 -22
  113. package/dist/collection/components/{stzh-contactaddress/stzh-contactaddress.js → stzh-contact/stzh-contact.js} +25 -25
  114. package/dist/collection/components/{stzh-contactaddress/stzh-contactaddress.stories.js → stzh-contact/stzh-contact.stories.js} +10 -9
  115. package/dist/collection/components/stzh-container/stzh-container.css +11 -1
  116. package/dist/collection/components/stzh-container/stzh-container.js +26 -1
  117. package/dist/collection/components/stzh-container/stzh-container.stories.js +6 -1
  118. package/dist/collection/components/stzh-cspace/stzh-cspace.css +136 -43
  119. package/dist/collection/components/stzh-datalist/stzh-datalist.css +12 -0
  120. package/dist/collection/components/stzh-datalist/stzh-datalist.js +19 -0
  121. package/dist/collection/components/stzh-datalist/stzh-datalist.stories.js +2 -1
  122. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.css +28 -13
  123. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.js +35 -13
  124. package/dist/collection/components/stzh-datatable/stzh-datatable.css +3 -0
  125. package/dist/collection/components/stzh-datatable/stzh-datatable.js +20 -1
  126. package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +9 -8
  127. package/dist/collection/components/stzh-fieldset/stzh-fieldset.css +1 -0
  128. package/dist/collection/components/stzh-figure/stzh-figure.css +8 -5
  129. package/dist/collection/components/stzh-figure/stzh-figure.js +21 -1
  130. package/dist/collection/components/stzh-footer/stzh-footer.css +1 -0
  131. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.css +12 -1
  132. package/dist/collection/components/stzh-header/stzh-header.css +5 -1
  133. package/dist/collection/components/stzh-header/stzh-header.js +4 -3
  134. package/dist/collection/components/stzh-header/stzh-header.stories.js +46 -38
  135. package/dist/collection/components/stzh-hspace/stzh-hspace.css +166 -138
  136. package/dist/collection/components/stzh-hspace/stzh-hspace.js +30 -6
  137. package/dist/collection/components/stzh-invert/stzh-invert.css +158 -0
  138. package/dist/collection/components/stzh-invert/stzh-invert.js +25 -0
  139. package/dist/collection/components/stzh-invert/stzh-invert.stories.js +55 -0
  140. package/dist/collection/components/stzh-link/stzh-link.stories.js +11 -19
  141. package/dist/collection/components/stzh-pagebottom/stzh-pagebottom.js +4 -1
  142. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.js +8 -0
  143. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.stories.js +6 -6
  144. package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.css +14 -1
  145. package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.stories.js +4 -6
  146. package/dist/collection/components/stzh-popover/stzh-popover.css +1 -1
  147. package/dist/collection/components/stzh-popover/stzh-popover.js +1 -1
  148. package/dist/collection/components/stzh-popover/stzh-popover.stories.js +5 -7
  149. package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.css +34 -9
  150. package/dist/collection/components/stzh-progressbar/stzh-progressbar.js +2 -2
  151. package/dist/collection/components/stzh-progressbar/stzh-progressbar.stories.js +2 -1
  152. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.css +40 -4
  153. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js +22 -2
  154. package/dist/collection/components/stzh-ratio/stzh-ratio.css +172 -0
  155. package/dist/collection/components/stzh-ratio/stzh-ratio.js +88 -0
  156. package/dist/collection/components/stzh-ratio/stzh-ratio.stories.js +35 -0
  157. package/dist/collection/components/stzh-richtext/stzh-richtext.css +10 -5
  158. package/dist/collection/components/stzh-show/stzh-show.css +165 -0
  159. package/dist/collection/components/stzh-show/stzh-show.js +158 -0
  160. package/dist/collection/components/stzh-show/stzh-show.stories.js +52 -0
  161. package/dist/collection/components/stzh-sitemap/stzh-sitemap.css +1 -1
  162. package/dist/collection/components/stzh-sortable/stzh-sortable.js +6 -3
  163. package/dist/collection/components/stzh-space/stzh-space.css +842 -0
  164. package/dist/collection/components/stzh-space/stzh-space.js +262 -0
  165. package/dist/collection/components/stzh-space/stzh-space.stories.js +76 -0
  166. package/dist/collection/components/stzh-sticky/stzh-sticky.css +9 -0
  167. package/dist/collection/components/stzh-sticky/stzh-sticky.js +21 -1
  168. package/dist/collection/components/stzh-sticky/stzh-sticky.stories.js +3 -1
  169. package/dist/collection/components/stzh-table/stzh-table.css +3 -0
  170. package/dist/collection/components/stzh-table/stzh-table.js +19 -0
  171. package/dist/collection/components/stzh-text/stzh-text.css +2 -2
  172. package/dist/collection/components/stzh-tooltip/stzh-tooltip.js +2 -2
  173. package/dist/collection/components/stzh-upload/stzh-upload.js +3 -0
  174. package/dist/collection/components/stzh-vspace/stzh-vspace.css +157 -129
  175. package/dist/collection/components/stzh-vspace/stzh-vspace.js +30 -6
  176. package/dist/collection/pages/egov.stories.js +190 -182
  177. package/dist/collection/pages/meinkonto.stories.js +367 -511
  178. package/dist/collection/pages/microsite.stories.js +235 -0
  179. package/dist/collection/pages/website.stories.js +139 -0
  180. package/dist/collection/patterns/appointments.stories.js +2 -2
  181. package/dist/collection/patterns/contact.stories.js +20 -20
  182. package/dist/collection/patterns/contactform.stories.js +2 -2
  183. package/dist/collection/patterns/jobdetails.stories.js +151 -0
  184. package/dist/collection/patterns/subpages.stories.js +1 -1
  185. package/dist/collection/patterns/twocolumns.stories.js +46 -0
  186. package/dist/components/arrow.js +468 -478
  187. package/dist/components/axios.js +3165 -0
  188. package/dist/components/date-utils.js +159 -0
  189. package/dist/components/focus-trap.esm.js +188 -278
  190. package/dist/components/index.d.ts +14 -1
  191. package/dist/components/index.js +7 -3
  192. package/dist/components/stzh-actionset2.js +16 -6
  193. package/dist/components/stzh-anchornav.js +1 -1
  194. package/dist/components/stzh-appointments.js +2 -1
  195. package/dist/components/stzh-button2.js +1 -1
  196. package/dist/components/stzh-calendar2.js +2 -159
  197. package/dist/components/stzh-card2.js +1 -1
  198. package/dist/components/stzh-chart.js +1470 -403
  199. package/dist/components/stzh-chip-select2.js +27 -15
  200. package/dist/components/stzh-chip2.js +23 -5
  201. package/dist/components/stzh-clamp2.js +1 -1
  202. package/dist/components/{stzh-contactaddress.d.ts → stzh-contact.d.ts} +4 -4
  203. package/dist/components/stzh-contact.js +157 -0
  204. package/dist/components/stzh-container.js +5 -2
  205. package/dist/components/stzh-cspace.js +1 -1
  206. package/dist/components/stzh-datalist-item2.js +30 -11
  207. package/dist/components/stzh-datalist2.js +3 -1
  208. package/dist/components/stzh-datatable.js +32 -30
  209. package/dist/components/stzh-datepicker2.js +2 -1
  210. package/dist/components/stzh-dropdown2.js +1054 -423
  211. package/dist/components/stzh-fieldset.js +1 -1
  212. package/dist/components/stzh-figure.js +6 -3
  213. package/dist/components/stzh-footer.js +1 -1
  214. package/dist/components/stzh-ghettobox2.js +1 -1
  215. package/dist/components/stzh-header.js +5 -4
  216. package/dist/components/stzh-hspace.js +8 -5
  217. package/dist/components/stzh-invert.d.ts +11 -0
  218. package/dist/components/stzh-invert.js +36 -0
  219. package/dist/components/stzh-microsite-teaserlist.js +1 -1
  220. package/dist/components/stzh-pagebottom.js +4 -1
  221. package/dist/components/stzh-pagetitle-hero.js +1 -1
  222. package/dist/components/stzh-pagetitle.js +8 -0
  223. package/dist/components/stzh-popover2.js +2 -2
  224. package/dist/components/stzh-portal-mitwirken.js +1 -1
  225. package/dist/components/stzh-progressbar-item2.js +6 -3
  226. package/dist/components/stzh-progressbar.js +1 -1
  227. package/dist/components/stzh-ratio.d.ts +11 -0
  228. package/dist/components/stzh-ratio.js +43 -0
  229. package/dist/components/stzh-richtext2.js +1 -1
  230. package/dist/components/stzh-show.d.ts +11 -0
  231. package/dist/components/stzh-show.js +62 -0
  232. package/dist/components/stzh-sitemap.js +1 -1
  233. package/dist/components/stzh-sortable2.js +9 -65
  234. package/dist/components/stzh-space.d.ts +11 -0
  235. package/dist/components/stzh-space.js +59 -0
  236. package/dist/components/stzh-sticky.js +5 -2
  237. package/dist/components/stzh-table.js +3 -1
  238. package/dist/components/stzh-text2.js +1 -1
  239. package/dist/components/stzh-tooltip2.js +2 -2
  240. package/dist/components/stzh-upload.js +3 -0
  241. package/dist/components/stzh-vbz-linechip2.js +772 -680
  242. package/dist/components/stzh-vbz-majorticker.js +1 -1
  243. package/dist/components/stzh-vbz-ticker.js +1 -1
  244. package/dist/components/stzh-vspace.js +8 -5
  245. package/dist/esm/{app-globals-ff581b69.js → app-globals-2e508622.js} +1 -1
  246. package/dist/esm/{arrow-86a679c7.js → arrow-480bc86f.js} +468 -478
  247. package/dist/esm/axios-e2b39666.js +3165 -0
  248. package/dist/esm/{dom-6be6f662.js → dom-c525f6e4.js} +1 -1
  249. package/dist/esm/{focus-trap.esm-074705a3.js → focus-trap.esm-82634dec.js} +188 -278
  250. package/dist/esm/{index-011c84fe.js → index-319b7c49.js} +112 -4
  251. package/dist/esm/loader.js +5 -4
  252. package/dist/esm/polyfills/css-shim.js +1 -1
  253. package/dist/esm/{shadow-css-ed4599f8.js → shadow-css-abbdeef8.js} +1 -1
  254. package/dist/esm/stzh-accordion-item.entry.js +1 -1
  255. package/dist/esm/stzh-accordion.entry.js +1 -1
  256. package/dist/esm/stzh-actions.entry.js +1 -1
  257. package/dist/esm/stzh-actionset.entry.js +16 -6
  258. package/dist/esm/stzh-anchornav.entry.js +2 -2
  259. package/dist/esm/stzh-appnav.entry.js +1 -1
  260. package/dist/esm/stzh-appointments.entry.js +1 -1
  261. package/dist/esm/stzh-audio.entry.js +1 -1
  262. package/dist/esm/stzh-badge_3.entry.js +2 -2
  263. package/dist/esm/stzh-calendar.entry.js +1 -1
  264. package/dist/esm/stzh-card_3.entry.js +20 -15
  265. package/dist/esm/stzh-cell.entry.js +1 -1
  266. package/dist/esm/stzh-chart.entry.js +1471 -404
  267. package/dist/esm/stzh-checkbox.entry.js +2 -2
  268. package/dist/esm/stzh-checkboxgroup.entry.js +2 -2
  269. package/dist/esm/stzh-chip_2.entry.js +127 -0
  270. package/dist/esm/stzh-components.js +24 -5
  271. package/dist/esm/stzh-contact.entry.js +87 -0
  272. package/dist/esm/stzh-container.entry.js +3 -2
  273. package/dist/esm/stzh-cspace.entry.js +2 -2
  274. package/dist/esm/stzh-datalist_2.entry.js +33 -13
  275. package/dist/esm/stzh-datamessagelist-item.entry.js +1 -1
  276. package/dist/esm/stzh-datamessagelist.entry.js +1 -1
  277. package/dist/esm/stzh-datatable.entry.js +32 -31
  278. package/dist/esm/stzh-datepicker_3.entry.js +2 -2
  279. package/dist/esm/stzh-details.entry.js +1 -1
  280. package/dist/esm/stzh-dialog.entry.js +2 -2
  281. package/dist/esm/stzh-dropdown.entry.js +1056 -425
  282. package/dist/esm/stzh-fieldset.entry.js +2 -2
  283. package/dist/esm/stzh-figure.entry.js +5 -3
  284. package/dist/esm/stzh-flyingfocus.entry.js +1 -1
  285. package/dist/esm/stzh-footer.entry.js +2 -2
  286. package/dist/esm/stzh-ghettobox_2.entry.js +3 -3
  287. package/dist/esm/stzh-header.entry.js +6 -5
  288. package/dist/esm/stzh-heading.entry.js +1 -1
  289. package/dist/esm/stzh-hr.entry.js +1 -1
  290. package/dist/esm/stzh-hspace.entry.js +4 -3
  291. package/dist/esm/stzh-icon-sprite.entry.js +1 -1
  292. package/dist/esm/{stzh-input-description-bdd1e340.js → stzh-input-description-cc38e214.js} +1 -1
  293. package/dist/esm/stzh-input.entry.js +2 -2
  294. package/dist/esm/stzh-invert.entry.js +19 -0
  295. package/dist/esm/stzh-langnav.entry.js +1 -1
  296. package/dist/esm/stzh-link.entry.js +1 -1
  297. package/dist/esm/stzh-list-item.entry.js +1 -1
  298. package/dist/esm/stzh-list.entry.js +1 -1
  299. package/dist/esm/stzh-loader.entry.js +1 -1
  300. package/dist/esm/stzh-loadingbar.entry.js +1 -1
  301. package/dist/esm/stzh-menu_2.entry.js +1 -1
  302. package/dist/esm/stzh-message.entry.js +1 -1
  303. package/dist/esm/stzh-metanav.entry.js +1 -1
  304. package/dist/esm/stzh-microsite-teaserlist.entry.js +2 -2
  305. package/dist/esm/stzh-olmap.entry.js +1 -1
  306. package/dist/esm/stzh-overlay.entry.js +2 -2
  307. package/dist/esm/stzh-page-skiplinks.entry.js +1 -1
  308. package/dist/esm/stzh-pagebottom.entry.js +5 -2
  309. package/dist/esm/stzh-pagetitle-hero.entry.js +2 -2
  310. package/dist/esm/stzh-pagetitle.entry.js +9 -1
  311. package/dist/esm/stzh-popover.entry.js +5 -5
  312. package/dist/esm/stzh-portal-mitwirken.entry.js +2 -2
  313. package/dist/esm/stzh-progressbar-item.entry.js +6 -4
  314. package/dist/esm/stzh-progressbar.entry.js +2 -2
  315. package/dist/esm/stzh-ratio.entry.js +22 -0
  316. package/dist/esm/stzh-readspeaker.entry.js +1 -1
  317. package/dist/esm/stzh-row.entry.js +1 -1
  318. package/dist/esm/stzh-saptcha.entry.js +1 -1
  319. package/dist/esm/stzh-section.entry.js +1 -1
  320. package/dist/esm/stzh-share.entry.js +1 -1
  321. package/dist/esm/stzh-show.entry.js +37 -0
  322. package/dist/esm/stzh-sitemap.entry.js +2 -2
  323. package/dist/esm/stzh-skiplink.entry.js +1 -1
  324. package/dist/esm/stzh-sortable.entry.js +10 -66
  325. package/dist/esm/stzh-space.entry.js +30 -0
  326. package/dist/esm/stzh-status.entry.js +1 -1
  327. package/dist/esm/stzh-sticky.entry.js +5 -3
  328. package/dist/esm/stzh-table.entry.js +3 -2
  329. package/dist/esm/stzh-text.entry.js +2 -2
  330. package/dist/esm/stzh-textandimage.entry.js +1 -1
  331. package/dist/esm/stzh-toggle.entry.js +2 -2
  332. package/dist/esm/stzh-tooltip.entry.js +5 -5
  333. package/dist/esm/stzh-upload.entry.js +5 -2
  334. package/dist/esm/stzh-vbz-linechip.entry.js +783 -691
  335. package/dist/esm/stzh-vbz-majorticker.entry.js +2 -2
  336. package/dist/esm/stzh-vbz-ticker.entry.js +2 -2
  337. package/dist/esm/stzh-visuallyhidden.entry.js +1 -1
  338. package/dist/esm/stzh-vspace.entry.js +4 -3
  339. package/dist/esm-es5/app-globals-2e508622.js +1 -0
  340. package/dist/esm-es5/arrow-480bc86f.js +1 -0
  341. package/dist/esm-es5/axios-e2b39666.js +1 -0
  342. package/dist/esm-es5/{dom-6be6f662.js → dom-c525f6e4.js} +0 -0
  343. package/dist/esm-es5/focus-trap.esm-82634dec.js +9 -0
  344. package/dist/esm-es5/index-319b7c49.js +2 -0
  345. package/dist/esm-es5/loader.js +1 -1
  346. package/dist/esm-es5/{shadow-css-ed4599f8.js → shadow-css-abbdeef8.js} +0 -0
  347. package/dist/esm-es5/stzh-accordion-item.entry.js +1 -1
  348. package/dist/esm-es5/stzh-accordion.entry.js +1 -1
  349. package/dist/esm-es5/stzh-actions.entry.js +1 -1
  350. package/dist/esm-es5/stzh-actionset.entry.js +1 -1
  351. package/dist/esm-es5/stzh-anchornav.entry.js +1 -1
  352. package/dist/esm-es5/stzh-appnav.entry.js +1 -1
  353. package/dist/esm-es5/stzh-appointments.entry.js +1 -1
  354. package/dist/esm-es5/stzh-audio.entry.js +1 -1
  355. package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
  356. package/dist/esm-es5/stzh-calendar.entry.js +1 -1
  357. package/dist/esm-es5/stzh-card_3.entry.js +1 -1
  358. package/dist/esm-es5/stzh-cell.entry.js +1 -1
  359. package/dist/esm-es5/stzh-chart.entry.js +3 -3
  360. package/dist/esm-es5/stzh-checkbox.entry.js +1 -1
  361. package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
  362. package/dist/esm-es5/stzh-chip_2.entry.js +1 -0
  363. package/dist/esm-es5/stzh-components.js +1 -1
  364. package/dist/esm-es5/stzh-contact.entry.js +1 -0
  365. package/dist/esm-es5/stzh-container.entry.js +1 -1
  366. package/dist/esm-es5/stzh-cspace.entry.js +1 -1
  367. package/dist/esm-es5/stzh-datalist_2.entry.js +1 -1
  368. package/dist/esm-es5/stzh-datamessagelist-item.entry.js +1 -1
  369. package/dist/esm-es5/stzh-datamessagelist.entry.js +1 -1
  370. package/dist/esm-es5/stzh-datatable.entry.js +4 -4
  371. package/dist/esm-es5/stzh-datepicker_3.entry.js +1 -1
  372. package/dist/esm-es5/stzh-details.entry.js +1 -1
  373. package/dist/esm-es5/stzh-dialog.entry.js +1 -1
  374. package/dist/esm-es5/stzh-dropdown.entry.js +9 -1
  375. package/dist/esm-es5/stzh-fieldset.entry.js +1 -1
  376. package/dist/esm-es5/stzh-figure.entry.js +1 -1
  377. package/dist/esm-es5/stzh-flyingfocus.entry.js +1 -1
  378. package/dist/esm-es5/stzh-footer.entry.js +1 -1
  379. package/dist/esm-es5/stzh-ghettobox_2.entry.js +1 -1
  380. package/dist/esm-es5/stzh-header.entry.js +1 -1
  381. package/dist/esm-es5/stzh-heading.entry.js +1 -1
  382. package/dist/esm-es5/stzh-hr.entry.js +1 -1
  383. package/dist/esm-es5/stzh-hspace.entry.js +1 -1
  384. package/dist/esm-es5/stzh-icon-sprite.entry.js +1 -1
  385. package/dist/esm-es5/{stzh-input-description-bdd1e340.js → stzh-input-description-cc38e214.js} +1 -1
  386. package/dist/esm-es5/stzh-input.entry.js +1 -1
  387. package/dist/esm-es5/stzh-invert.entry.js +1 -0
  388. package/dist/esm-es5/stzh-langnav.entry.js +1 -1
  389. package/dist/esm-es5/stzh-link.entry.js +1 -1
  390. package/dist/esm-es5/stzh-list-item.entry.js +1 -1
  391. package/dist/esm-es5/stzh-list.entry.js +1 -1
  392. package/dist/esm-es5/stzh-loader.entry.js +1 -1
  393. package/dist/esm-es5/stzh-loadingbar.entry.js +1 -1
  394. package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
  395. package/dist/esm-es5/stzh-message.entry.js +1 -1
  396. package/dist/esm-es5/stzh-metanav.entry.js +1 -1
  397. package/dist/esm-es5/stzh-microsite-teaserlist.entry.js +1 -1
  398. package/dist/esm-es5/stzh-olmap.entry.js +1 -1
  399. package/dist/esm-es5/stzh-overlay.entry.js +1 -1
  400. package/dist/esm-es5/stzh-page-skiplinks.entry.js +1 -1
  401. package/dist/esm-es5/stzh-pagebottom.entry.js +1 -1
  402. package/dist/esm-es5/stzh-pagetitle-hero.entry.js +1 -1
  403. package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
  404. package/dist/esm-es5/stzh-popover.entry.js +1 -1
  405. package/dist/esm-es5/stzh-portal-mitwirken.entry.js +1 -1
  406. package/dist/esm-es5/stzh-progressbar-item.entry.js +1 -1
  407. package/dist/esm-es5/stzh-progressbar.entry.js +1 -1
  408. package/dist/esm-es5/stzh-ratio.entry.js +1 -0
  409. package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
  410. package/dist/esm-es5/stzh-row.entry.js +1 -1
  411. package/dist/esm-es5/stzh-saptcha.entry.js +1 -1
  412. package/dist/esm-es5/stzh-section.entry.js +1 -1
  413. package/dist/esm-es5/stzh-share.entry.js +1 -1
  414. package/dist/esm-es5/stzh-show.entry.js +1 -0
  415. package/dist/esm-es5/stzh-sitemap.entry.js +1 -1
  416. package/dist/esm-es5/stzh-skiplink.entry.js +1 -1
  417. package/dist/esm-es5/stzh-sortable.entry.js +2 -2
  418. package/dist/esm-es5/stzh-space.entry.js +1 -0
  419. package/dist/esm-es5/stzh-status.entry.js +1 -1
  420. package/dist/esm-es5/stzh-sticky.entry.js +1 -1
  421. package/dist/esm-es5/stzh-table.entry.js +1 -1
  422. package/dist/esm-es5/stzh-text.entry.js +1 -1
  423. package/dist/esm-es5/stzh-textandimage.entry.js +1 -1
  424. package/dist/esm-es5/stzh-toggle.entry.js +1 -1
  425. package/dist/esm-es5/stzh-tooltip.entry.js +1 -1
  426. package/dist/esm-es5/stzh-upload.entry.js +1 -1
  427. package/dist/esm-es5/stzh-vbz-linechip.entry.js +1 -1
  428. package/dist/esm-es5/stzh-vbz-majorticker.entry.js +1 -1
  429. package/dist/esm-es5/stzh-vbz-ticker.entry.js +1 -1
  430. package/dist/esm-es5/stzh-visuallyhidden.entry.js +1 -1
  431. package/dist/esm-es5/stzh-vspace.entry.js +1 -1
  432. package/dist/esm-es5/translation-utils-2623783f.js +1 -1
  433. package/dist/stzh-components/assets/i18n/de.json +1 -1
  434. package/dist/stzh-components/assets/i18n/en.json +1 -1
  435. package/dist/stzh-components/p-00c4c8c0.system.entry.js +1 -0
  436. package/dist/stzh-components/p-013d269a.system.entry.js +1 -0
  437. package/dist/stzh-components/p-0447b178.system.entry.js +1 -0
  438. package/dist/stzh-components/{p-2bec3c77.entry.js → p-04d390eb.entry.js} +1 -1
  439. package/dist/stzh-components/p-06f5abab.system.entry.js +1 -0
  440. package/dist/stzh-components/{p-9176246f.entry.js → p-0930004d.entry.js} +1 -1
  441. package/dist/stzh-components/p-09f582cd.entry.js +1 -0
  442. package/dist/stzh-components/p-0a2de4e8.entry.js +1 -0
  443. package/dist/stzh-components/p-0ada0b0a.system.entry.js +1 -0
  444. package/dist/stzh-components/p-0af8a184.system.entry.js +1 -0
  445. package/dist/stzh-components/p-0afba769.entry.js +1 -0
  446. package/dist/stzh-components/p-0ce8b383.system.js +1 -0
  447. package/dist/stzh-components/p-0f882e26.system.entry.js +1 -0
  448. package/dist/stzh-components/{p-fbf2f4ed.system.entry.js → p-101f9b11.system.entry.js} +1 -1
  449. package/dist/stzh-components/{p-cff8376e.entry.js → p-12564ee4.entry.js} +1 -1
  450. package/dist/stzh-components/p-125a8244.entry.js +1 -0
  451. package/dist/stzh-components/{p-bee6eef5.entry.js → p-126a0f14.entry.js} +1 -1
  452. package/dist/stzh-components/p-12e03b78.system.entry.js +1 -0
  453. package/dist/stzh-components/{p-30ae5c00.system.entry.js → p-16b3d4ee.system.entry.js} +1 -1
  454. package/dist/stzh-components/p-1783b15a.js +12 -0
  455. package/dist/stzh-components/p-1c2c9ca8.entry.js +1 -0
  456. package/dist/stzh-components/p-1f925e84.system.entry.js +1 -0
  457. package/dist/stzh-components/p-20bd79d0.entry.js +1 -0
  458. package/dist/stzh-components/p-246cd179.js +1 -0
  459. package/dist/stzh-components/p-26889a91.entry.js +9 -0
  460. package/dist/stzh-components/p-2ad73c0c.system.entry.js +1 -0
  461. package/dist/stzh-components/p-2b67b0b3.system.entry.js +9 -0
  462. package/dist/stzh-components/p-2ba88798.entry.js +1 -0
  463. package/dist/stzh-components/{p-60274e67.system.entry.js → p-2c490268.system.entry.js} +1 -1
  464. package/dist/stzh-components/{p-912706bb.entry.js → p-2e6ef670.entry.js} +1 -1
  465. package/dist/stzh-components/p-2f4448c9.system.entry.js +1 -0
  466. package/dist/stzh-components/{p-376946bc.entry.js → p-2f4c5e18.entry.js} +1 -1
  467. package/dist/stzh-components/p-3238b0bf.entry.js +1 -0
  468. package/dist/stzh-components/p-36e72c1d.system.js +2 -0
  469. package/dist/stzh-components/{p-fd265f3a.entry.js → p-38e7645a.entry.js} +1 -1
  470. package/dist/stzh-components/{p-ed6adb96.entry.js → p-3b00d8b8.entry.js} +1 -1
  471. package/dist/stzh-components/p-3e433996.entry.js +1 -0
  472. package/dist/stzh-components/p-3f676d99.system.entry.js +1 -0
  473. package/dist/stzh-components/{p-0c8427bc.entry.js → p-40798ed2.entry.js} +1 -1
  474. package/dist/stzh-components/p-418e04f7.system.entry.js +1 -0
  475. package/dist/stzh-components/{p-7704b10b.entry.js → p-41fa7e81.entry.js} +1 -1
  476. package/dist/stzh-components/p-4370efe7.entry.js +1 -0
  477. package/dist/stzh-components/p-444b2baf.entry.js +1 -0
  478. package/dist/stzh-components/p-44b03dbb.js +10 -0
  479. package/dist/stzh-components/{p-2577ca1e.system.entry.js → p-44d10402.system.entry.js} +1 -1
  480. package/dist/stzh-components/{p-ed0d51b6.entry.js → p-46d07ed7.entry.js} +1 -1
  481. package/dist/stzh-components/p-470182bb.system.entry.js +1 -0
  482. package/dist/stzh-components/{p-669896ec.entry.js → p-48dee587.entry.js} +1 -1
  483. package/dist/stzh-components/p-48e835cf.system.js +1 -0
  484. package/dist/stzh-components/{p-55b7cda7.system.entry.js → p-4a298117.system.entry.js} +1 -1
  485. package/dist/stzh-components/p-4a60b27f.entry.js +1 -0
  486. package/dist/stzh-components/p-4d8c81b2.system.entry.js +1 -0
  487. package/dist/stzh-components/{p-f027e569.system.entry.js → p-512c38b3.system.entry.js} +1 -1
  488. package/dist/stzh-components/p-51b3a560.system.entry.js +1 -0
  489. package/dist/stzh-components/p-537adcfe.system.entry.js +3 -0
  490. package/dist/stzh-components/{p-13051e1c.js → p-538882c8.js} +0 -0
  491. package/dist/stzh-components/p-55752bd5.system.entry.js +1 -0
  492. package/dist/stzh-components/p-563b1abc.system.entry.js +1 -0
  493. package/dist/stzh-components/p-59793ef8.system.entry.js +1 -0
  494. package/dist/stzh-components/{p-6a0a76b3.entry.js → p-5b162e4f.entry.js} +1 -1
  495. package/dist/stzh-components/{p-0409bf6b.system.entry.js → p-5c717080.system.entry.js} +1 -1
  496. package/dist/stzh-components/p-5cb1cd93.system.entry.js +1 -0
  497. package/dist/stzh-components/p-5f9b58fb.system.entry.js +1 -0
  498. package/dist/stzh-components/{p-e7cf6c45.system.entry.js → p-617ece76.system.entry.js} +1 -1
  499. package/dist/stzh-components/{p-104df3a8.system.entry.js → p-6414454e.system.entry.js} +1 -1
  500. package/dist/stzh-components/p-6496df0a.system.entry.js +9 -0
  501. package/dist/stzh-components/p-64cdef2f.entry.js +1 -0
  502. package/dist/stzh-components/p-64e27ac1.entry.js +1 -0
  503. package/dist/stzh-components/p-655e3c46.system.entry.js +1 -0
  504. package/dist/stzh-components/{p-b0d8866d.entry.js → p-65ea23f6.entry.js} +1 -1
  505. package/dist/stzh-components/p-668b4025.system.entry.js +1 -0
  506. package/dist/stzh-components/{p-f03ce92d.system.entry.js → p-6722e89a.system.entry.js} +1 -1
  507. package/dist/stzh-components/p-67ae4994.entry.js +1 -0
  508. package/dist/stzh-components/{p-f39f347c.system.js → p-6845b6ac.system.js} +0 -0
  509. package/dist/stzh-components/p-6adc5f0c.system.entry.js +1 -0
  510. package/dist/stzh-components/p-6c80b920.system.entry.js +1 -0
  511. package/dist/stzh-components/p-6dbf976b.entry.js +1 -0
  512. package/dist/stzh-components/{p-eade9f77.entry.js → p-6e3231ce.entry.js} +1 -1
  513. package/dist/stzh-components/{p-ef3da23b.entry.js → p-705aa56d.entry.js} +1 -1
  514. package/dist/stzh-components/{p-288ee536.system.entry.js → p-70f85be3.system.entry.js} +1 -1
  515. package/dist/stzh-components/{p-62a2684d.entry.js → p-7185f634.entry.js} +1 -1
  516. package/dist/stzh-components/{p-11d7b426.system.entry.js → p-74d6e349.system.entry.js} +1 -1
  517. package/dist/stzh-components/p-77d0a54b.system.entry.js +1 -0
  518. package/dist/stzh-components/p-7b0c04b3.system.entry.js +1 -0
  519. package/dist/stzh-components/{p-0cc8bbd7.system.entry.js → p-7e4261ce.system.entry.js} +1 -1
  520. package/dist/stzh-components/{p-fee6a938.entry.js → p-7e94b787.entry.js} +1 -1
  521. package/dist/stzh-components/{p-df5f49b4.js → p-7f0fb35c.js} +1 -1
  522. package/dist/stzh-components/{p-44e0b101.system.entry.js → p-7f1b7b44.system.entry.js} +1 -1
  523. package/dist/stzh-components/{p-97e16665.system.entry.js → p-80f497d8.system.entry.js} +1 -1
  524. package/dist/stzh-components/p-81b4b0e6.system.entry.js +1 -0
  525. package/dist/stzh-components/{p-8cc119d3.system.entry.js → p-8361c9d8.system.entry.js} +1 -1
  526. package/dist/stzh-components/{p-cc720d2d.entry.js → p-838b0542.entry.js} +1 -1
  527. package/dist/stzh-components/p-862e7723.system.entry.js +1 -0
  528. package/dist/stzh-components/{p-49b292df.entry.js → p-86336227.entry.js} +1 -1
  529. package/dist/stzh-components/{p-586a8b3f.entry.js → p-8715198b.entry.js} +1 -1
  530. package/dist/stzh-components/p-8972cf20.entry.js +1 -0
  531. package/dist/stzh-components/p-8c5a6832.system.entry.js +1 -0
  532. package/dist/stzh-components/p-8caafed2.system.entry.js +1 -0
  533. package/dist/stzh-components/p-8ccefd49.system.entry.js +1 -0
  534. package/dist/stzh-components/p-8ee705ed.entry.js +1 -0
  535. package/dist/stzh-components/p-906caf97.js +1 -0
  536. package/dist/stzh-components/{p-9e4e0cc9.entry.js → p-923dffc7.entry.js} +1 -1
  537. package/dist/stzh-components/p-9380fb85.entry.js +1 -0
  538. package/dist/stzh-components/p-97e4272b.system.entry.js +1 -0
  539. package/dist/stzh-components/p-990f395b.entry.js +1 -0
  540. package/dist/stzh-components/p-99a3742a.js +2 -0
  541. package/dist/stzh-components/p-99aacd74.entry.js +1 -0
  542. package/dist/stzh-components/p-99b82949.entry.js +1 -0
  543. package/dist/stzh-components/p-99e27f57.system.js +1 -0
  544. package/dist/stzh-components/{p-576e1345.entry.js → p-99e43fb0.entry.js} +1 -1
  545. package/dist/stzh-components/p-9be29697.entry.js +1 -0
  546. package/dist/stzh-components/{p-eb6d3e6c.entry.js → p-9c35c9cd.entry.js} +1 -1
  547. package/dist/stzh-components/{p-33f80cd2.system.entry.js → p-9d5c70ee.system.entry.js} +1 -1
  548. package/dist/stzh-components/p-9e30ee4a.system.js +10 -0
  549. package/dist/stzh-components/{p-94830f96.system.entry.js → p-a0a033bd.system.entry.js} +1 -1
  550. package/dist/stzh-components/{p-d5cb80ad.system.entry.js → p-a11ef2d6.system.entry.js} +1 -1
  551. package/dist/stzh-components/p-a2b2cfac.system.entry.js +1 -0
  552. package/dist/stzh-components/p-a3c7aa63.entry.js +9 -0
  553. package/dist/stzh-components/p-a408bfba.system.js +1 -1
  554. package/dist/stzh-components/{p-aae4655f.entry.js → p-a44527f8.entry.js} +1 -1
  555. package/dist/stzh-components/{p-8bbaed3a.entry.js → p-a4dd5ba3.entry.js} +1 -1
  556. package/dist/stzh-components/{p-c30600d0.system.entry.js → p-a51dd210.system.entry.js} +1 -1
  557. package/dist/stzh-components/{p-4b0f473e.entry.js → p-a693ab41.entry.js} +1 -1
  558. package/dist/stzh-components/p-a6be6aca.system.entry.js +1 -0
  559. package/dist/stzh-components/p-ac3e3b2a.system.entry.js +1 -0
  560. package/dist/stzh-components/{p-72389069.entry.js → p-ad816fd9.entry.js} +1 -1
  561. package/dist/stzh-components/p-af67ea5e.entry.js +7 -0
  562. package/dist/stzh-components/p-b050c1f4.entry.js +1 -0
  563. package/dist/stzh-components/{p-be79497f.system.entry.js → p-b1ffc2a9.system.entry.js} +1 -1
  564. package/dist/stzh-components/p-b395bed5.system.entry.js +1 -0
  565. package/dist/stzh-components/{p-30ba96a3.entry.js → p-b689b882.entry.js} +1 -1
  566. package/dist/stzh-components/{p-b3dc4913.entry.js → p-b6e6f847.entry.js} +1 -1
  567. package/dist/stzh-components/p-b92734db.entry.js +1 -0
  568. package/dist/stzh-components/{p-57a0f895.entry.js → p-b9427914.entry.js} +1 -1
  569. package/dist/stzh-components/p-bada7caa.system.entry.js +1 -0
  570. package/dist/stzh-components/p-bb82fa2d.system.entry.js +1 -0
  571. package/dist/stzh-components/{p-557f07b5.system.entry.js → p-bc36fda4.system.entry.js} +1 -1
  572. package/dist/stzh-components/{p-1d8272a5.entry.js → p-be68b323.entry.js} +1 -1
  573. package/dist/stzh-components/p-bf071e77.system.js +1 -0
  574. package/dist/stzh-components/{p-84965eac.entry.js → p-c0ec905d.entry.js} +1 -1
  575. package/dist/stzh-components/p-c2f909c1.system.entry.js +1 -0
  576. package/dist/stzh-components/{p-ea9ca52b.entry.js → p-c33b7d23.entry.js} +1 -1
  577. package/dist/stzh-components/p-c646c712.entry.js +1 -0
  578. package/dist/stzh-components/p-c8cc2563.system.entry.js +1 -0
  579. package/dist/stzh-components/p-c9c7d88a.entry.js +1 -0
  580. package/dist/stzh-components/p-cbe6d2ea.entry.js +1 -0
  581. package/dist/stzh-components/{p-2732d8c8.system.js → p-cbfae706.system.js} +0 -0
  582. package/dist/stzh-components/p-ccf023da.entry.js +3 -0
  583. package/dist/stzh-components/p-d04bbc19.js +1 -0
  584. package/dist/stzh-components/p-d32965be.system.entry.js +1 -0
  585. package/dist/stzh-components/p-d54ff4d4.system.entry.js +1 -0
  586. package/dist/stzh-components/p-d5644c25.entry.js +8 -0
  587. package/dist/stzh-components/p-d6a11daa.entry.js +1 -0
  588. package/dist/stzh-components/p-d943e02c.system.entry.js +1 -0
  589. package/dist/stzh-components/{p-a474826c.system.entry.js → p-da85cf73.system.entry.js} +1 -1
  590. package/dist/stzh-components/p-da98a8bb.system.entry.js +7 -0
  591. package/dist/stzh-components/p-db306e24.entry.js +1 -0
  592. package/dist/stzh-components/{p-d2f6fb1b.system.js → p-db339680.system.js} +1 -1
  593. package/dist/stzh-components/{p-f5fdc88c.entry.js → p-dbe5320f.entry.js} +3 -3
  594. package/dist/stzh-components/p-dd1bb919.entry.js +1 -0
  595. package/dist/stzh-components/p-dd5f29aa.entry.js +1 -0
  596. package/dist/stzh-components/p-de9edaf2.entry.js +1 -0
  597. package/dist/stzh-components/p-e3afc8f7.entry.js +1 -0
  598. package/dist/stzh-components/p-e54ef44f.system.entry.js +1 -0
  599. package/dist/stzh-components/p-e78fe899.system.entry.js +1 -0
  600. package/dist/stzh-components/{p-60d9bf98.system.entry.js → p-e7909de9.system.entry.js} +1 -1
  601. package/dist/stzh-components/{p-58af0855.system.entry.js → p-e7e9b295.system.entry.js} +1 -1
  602. package/dist/stzh-components/p-e8feb92e.system.entry.js +1 -0
  603. package/dist/stzh-components/p-eb7773f3.entry.js +1 -0
  604. package/dist/stzh-components/p-ed58b644.system.entry.js +1 -0
  605. package/dist/stzh-components/p-ee4b939a.entry.js +1 -0
  606. package/dist/stzh-components/{p-28d8aa31.entry.js → p-f0e2a32d.entry.js} +1 -1
  607. package/dist/stzh-components/{p-0cff4e01.entry.js → p-f2deda0a.entry.js} +1 -1
  608. package/dist/stzh-components/p-f3d69226.system.entry.js +1 -0
  609. package/dist/stzh-components/p-f433e62a.system.entry.js +1 -0
  610. package/dist/stzh-components/p-f5b2c12e.entry.js +1 -0
  611. package/dist/stzh-components/{p-4226dec6.system.entry.js → p-f7bb76d8.system.entry.js} +1 -1
  612. package/dist/stzh-components/{p-e0f063ac.entry.js → p-f8feb07b.entry.js} +1 -1
  613. package/dist/stzh-components/p-f9ab0433.entry.js +1 -0
  614. package/dist/stzh-components/p-fa615b51.system.entry.js +1 -0
  615. package/dist/stzh-components/{p-e016ceb9.entry.js → p-fd15cc86.entry.js} +1 -1
  616. package/dist/stzh-components/p-fd3acd16.system.entry.js +1 -0
  617. package/dist/stzh-components/p-fe5d5fc8.entry.js +1 -0
  618. package/dist/stzh-components/p-fe9acc68.system.entry.js +1 -0
  619. package/dist/stzh-components/stzh-components.css +1 -1
  620. package/dist/stzh-components/stzh-components.esm.js +1 -1
  621. package/dist/stzh-components/stzh-components.js +1 -1
  622. package/dist/types/components/stzh-actionset/stzh-actionset.localization.d.ts +1 -1
  623. package/dist/types/components/stzh-appointments/stzh-appointments.localization.d.ts +1 -1
  624. package/dist/types/components/stzh-audio/stzh-audio.localization.d.ts +1 -1
  625. package/dist/types/components/stzh-calendar/stzh-calendar-day.d.ts +1 -1
  626. package/dist/types/components/stzh-calendar/stzh-calendar-month.d.ts +1 -1
  627. package/dist/types/components/stzh-calendar/stzh-calendar.localization.d.ts +1 -1
  628. package/dist/types/components/stzh-card/stzh-card.localization.d.ts +1 -1
  629. package/dist/types/components/stzh-card-list/stzh-card-list.localization.d.ts +1 -1
  630. package/dist/types/components/stzh-container/stzh-container.d.ts +2 -0
  631. package/dist/types/components/stzh-datamessagelist-item/stzh-datamessagelist-item.localization.d.ts +1 -1
  632. package/dist/types/components/stzh-datatable/stzh-datatable.localization.d.ts +1 -1
  633. package/dist/types/components/stzh-datepicker/stzh-datepicker.localization.d.ts +1 -1
  634. package/dist/types/components/stzh-dialog/stzh-dialog.localization.d.ts +1 -1
  635. package/dist/types/components/stzh-dropdown/stzh-dropdown.localization.d.ts +1 -1
  636. package/dist/types/components/stzh-footer/stzh-footer.localization.d.ts +1 -1
  637. package/dist/types/components/stzh-ghettobox/stzh-ghettobox.localization.d.ts +1 -1
  638. package/dist/types/components/stzh-hspace/stzh-hspace.d.ts +3 -1
  639. package/dist/types/components/stzh-input/stzh-input-description.d.ts +1 -1
  640. package/dist/types/components/stzh-message/stzh-message.localization.d.ts +1 -1
  641. package/dist/types/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.localization.d.ts +1 -1
  642. package/dist/types/components/stzh-olmap/stzh-olmap.localization.d.ts +1 -1
  643. package/dist/types/components/stzh-popover/stzh-popover.localization.d.ts +1 -1
  644. package/dist/types/components/stzh-progressbar-item/stzh-progressbar-item.d.ts +1 -0
  645. package/dist/types/components/stzh-saptcha/stzh-saptcha.localization.d.ts +1 -1
  646. package/dist/types/components/stzh-share/stzh-share.localization.d.ts +1 -1
  647. package/dist/types/components/stzh-sortable/stzh-sortable.localization.d.ts +1 -1
  648. package/dist/types/components/stzh-space/stzh-space.d.ts +27 -0
  649. package/dist/types/components/stzh-tooltip/stzh-tooltip.localization.d.ts +1 -1
  650. package/dist/types/components/stzh-upload/stzh-upload.localization.d.ts +1 -1
  651. package/dist/types/components/stzh-vbz-majorticker/stzh-vbz-majorticker.localization.d.ts +1 -1
  652. package/dist/types/components/stzh-vbz-ticker/stzh-vbz-ticker.localization.d.ts +1 -1
  653. package/dist/types/components/stzh-vspace/stzh-vspace.d.ts +3 -1
  654. package/dist/types/components.d.ts +390 -20
  655. package/dist/types/index.d.ts +135 -133
  656. package/dist/types/stencil-public-runtime.d.ts +59 -3
  657. package/dist/types/utils/date-adapter.d.ts +2 -2
  658. package/dist/types/utils/h.d.ts +3 -3
  659. package/dist/types/utils/test-utils.d.ts +2 -2
  660. package/dist/types/utils/translation-utils.d.ts +5 -5
  661. package/dist/vscode-data.json +563 -4
  662. package/loader/index.d.ts +9 -0
  663. package/package.json +11 -11
  664. package/dist/cjs/index-8bd1552a.js +0 -2019
  665. package/dist/cjs/stzh-chip.cjs.entry.js +0 -100
  666. package/dist/cjs/stzh-clamp.cjs.entry.js +0 -27
  667. package/dist/cjs/stzh-contactaddress.cjs.entry.js +0 -91
  668. package/dist/collection/pages/example.stories.js +0 -170
  669. package/dist/components/index3.js +0 -2017
  670. package/dist/components/stzh-contactaddress.js +0 -157
  671. package/dist/esm/index-545902f4.js +0 -2017
  672. package/dist/esm/stzh-chip.entry.js +0 -96
  673. package/dist/esm/stzh-clamp.entry.js +0 -23
  674. package/dist/esm/stzh-contactaddress.entry.js +0 -87
  675. package/dist/esm-es5/app-globals-ff581b69.js +0 -1
  676. package/dist/esm-es5/arrow-86a679c7.js +0 -1
  677. package/dist/esm-es5/focus-trap.esm-074705a3.js +0 -9
  678. package/dist/esm-es5/index-011c84fe.js +0 -2
  679. package/dist/esm-es5/index-545902f4.js +0 -1
  680. package/dist/esm-es5/stzh-chip.entry.js +0 -1
  681. package/dist/esm-es5/stzh-clamp.entry.js +0 -1
  682. package/dist/esm-es5/stzh-contactaddress.entry.js +0 -1
  683. package/dist/stzh-components/p-006751fc.system.entry.js +0 -1
  684. package/dist/stzh-components/p-025c9c5b.entry.js +0 -1
  685. package/dist/stzh-components/p-06d9b884.system.entry.js +0 -1
  686. package/dist/stzh-components/p-0743d7fa.entry.js +0 -1
  687. package/dist/stzh-components/p-0850a2e1.system.entry.js +0 -1
  688. package/dist/stzh-components/p-09da70d8.entry.js +0 -1
  689. package/dist/stzh-components/p-0a647396.entry.js +0 -1
  690. package/dist/stzh-components/p-10c046fc.system.entry.js +0 -1
  691. package/dist/stzh-components/p-12a2afe9.entry.js +0 -1
  692. package/dist/stzh-components/p-17645237.entry.js +0 -1
  693. package/dist/stzh-components/p-18cb06e2.entry.js +0 -1
  694. package/dist/stzh-components/p-19ab7e34.system.entry.js +0 -1
  695. package/dist/stzh-components/p-1ae4d600.system.entry.js +0 -1
  696. package/dist/stzh-components/p-1e4b4d71.system.js +0 -1
  697. package/dist/stzh-components/p-21cad060.system.entry.js +0 -1
  698. package/dist/stzh-components/p-22b06793.entry.js +0 -1
  699. package/dist/stzh-components/p-23829f75.system.entry.js +0 -1
  700. package/dist/stzh-components/p-2bdc71ae.system.entry.js +0 -1
  701. package/dist/stzh-components/p-2d340222.system.entry.js +0 -1
  702. package/dist/stzh-components/p-31c3469c.entry.js +0 -1
  703. package/dist/stzh-components/p-3200f52a.system.entry.js +0 -1
  704. package/dist/stzh-components/p-385dda6c.system.entry.js +0 -1
  705. package/dist/stzh-components/p-391e6b90.entry.js +0 -1
  706. package/dist/stzh-components/p-3a1ff759.entry.js +0 -1
  707. package/dist/stzh-components/p-3ad67331.entry.js +0 -1
  708. package/dist/stzh-components/p-3e850dce.entry.js +0 -1
  709. package/dist/stzh-components/p-40a19ce6.js +0 -10
  710. package/dist/stzh-components/p-441ea784.entry.js +0 -1
  711. package/dist/stzh-components/p-4704588f.system.entry.js +0 -1
  712. package/dist/stzh-components/p-49bb09a5.entry.js +0 -1
  713. package/dist/stzh-components/p-4b369bac.entry.js +0 -1
  714. package/dist/stzh-components/p-51be647d.entry.js +0 -1
  715. package/dist/stzh-components/p-53934cfd.js +0 -1
  716. package/dist/stzh-components/p-57237509.system.entry.js +0 -1
  717. package/dist/stzh-components/p-5790eb4f.system.entry.js +0 -1
  718. package/dist/stzh-components/p-57f8596f.system.entry.js +0 -1
  719. package/dist/stzh-components/p-5b1c1cf7.entry.js +0 -1
  720. package/dist/stzh-components/p-5ddf8258.system.entry.js +0 -1
  721. package/dist/stzh-components/p-5fd9ae99.system.entry.js +0 -1
  722. package/dist/stzh-components/p-60ec90b2.system.entry.js +0 -1
  723. package/dist/stzh-components/p-63d94a57.system.entry.js +0 -1
  724. package/dist/stzh-components/p-64422176.entry.js +0 -9
  725. package/dist/stzh-components/p-661831da.entry.js +0 -1
  726. package/dist/stzh-components/p-67c6f0f2.entry.js +0 -1
  727. package/dist/stzh-components/p-6d009f56.system.entry.js +0 -1
  728. package/dist/stzh-components/p-71c07419.system.entry.js +0 -1
  729. package/dist/stzh-components/p-75068cd7.system.entry.js +0 -1
  730. package/dist/stzh-components/p-76165227.entry.js +0 -1
  731. package/dist/stzh-components/p-7941cf38.js +0 -1
  732. package/dist/stzh-components/p-7adc28a4.system.entry.js +0 -7
  733. package/dist/stzh-components/p-7b86c022.entry.js +0 -1
  734. package/dist/stzh-components/p-7c26f80f.system.entry.js +0 -1
  735. package/dist/stzh-components/p-7ce59988.system.entry.js +0 -1
  736. package/dist/stzh-components/p-7e94dde2.entry.js +0 -1
  737. package/dist/stzh-components/p-812ea5e9.system.entry.js +0 -1
  738. package/dist/stzh-components/p-8364475f.js +0 -12
  739. package/dist/stzh-components/p-84b9f66f.system.entry.js +0 -1
  740. package/dist/stzh-components/p-853a1f92.entry.js +0 -1
  741. package/dist/stzh-components/p-88a31179.system.entry.js +0 -1
  742. package/dist/stzh-components/p-8991d3bc.entry.js +0 -1
  743. package/dist/stzh-components/p-8a1d00fe.entry.js +0 -3
  744. package/dist/stzh-components/p-8fa2fb95.system.entry.js +0 -1
  745. package/dist/stzh-components/p-9072a490.system.entry.js +0 -1
  746. package/dist/stzh-components/p-92afa8df.entry.js +0 -1
  747. package/dist/stzh-components/p-95b490ec.system.entry.js +0 -1
  748. package/dist/stzh-components/p-9743f558.system.entry.js +0 -1
  749. package/dist/stzh-components/p-996579d0.entry.js +0 -1
  750. package/dist/stzh-components/p-9a5ebb1f.js +0 -2
  751. package/dist/stzh-components/p-9dac46e2.system.entry.js +0 -1
  752. package/dist/stzh-components/p-9e38b823.system.entry.js +0 -1
  753. package/dist/stzh-components/p-a16dc363.entry.js +0 -1
  754. package/dist/stzh-components/p-a53c0a98.entry.js +0 -1
  755. package/dist/stzh-components/p-a8101552.entry.js +0 -8
  756. package/dist/stzh-components/p-a934dd4d.entry.js +0 -1
  757. package/dist/stzh-components/p-aacf685b.system.entry.js +0 -3
  758. package/dist/stzh-components/p-ac1a6085.system.entry.js +0 -1
  759. package/dist/stzh-components/p-ac3aa560.system.entry.js +0 -1
  760. package/dist/stzh-components/p-afedafa6.system.entry.js +0 -1
  761. package/dist/stzh-components/p-b2145753.system.entry.js +0 -1
  762. package/dist/stzh-components/p-b436a18d.system.entry.js +0 -1
  763. package/dist/stzh-components/p-b908d228.system.entry.js +0 -1
  764. package/dist/stzh-components/p-b937ae70.system.js +0 -1
  765. package/dist/stzh-components/p-ba0b93c4.system.entry.js +0 -9
  766. package/dist/stzh-components/p-bfcfbfbb.system.entry.js +0 -1
  767. package/dist/stzh-components/p-c0fef3d1.entry.js +0 -1
  768. package/dist/stzh-components/p-c3a543a6.entry.js +0 -1
  769. package/dist/stzh-components/p-c63aecaa.system.entry.js +0 -1
  770. package/dist/stzh-components/p-c87e12de.system.entry.js +0 -1
  771. package/dist/stzh-components/p-cf6003d6.js +0 -1
  772. package/dist/stzh-components/p-cfd22a5e.system.entry.js +0 -1
  773. package/dist/stzh-components/p-d240494d.entry.js +0 -1
  774. package/dist/stzh-components/p-d5c0801b.entry.js +0 -1
  775. package/dist/stzh-components/p-d6ec20c8.system.entry.js +0 -1
  776. package/dist/stzh-components/p-d9bf09b1.system.entry.js +0 -1
  777. package/dist/stzh-components/p-db1692fb.entry.js +0 -1
  778. package/dist/stzh-components/p-dbdc01c7.system.js +0 -2
  779. package/dist/stzh-components/p-ded16c0e.system.js +0 -1
  780. package/dist/stzh-components/p-e20369c8.system.js +0 -10
  781. package/dist/stzh-components/p-e32bc982.system.js +0 -1
  782. package/dist/stzh-components/p-e46d82b9.system.entry.js +0 -1
  783. package/dist/stzh-components/p-e76a3647.entry.js +0 -1
  784. package/dist/stzh-components/p-ec3a472a.system.entry.js +0 -1
  785. package/dist/stzh-components/p-ec7b6ce8.entry.js +0 -7
  786. package/dist/stzh-components/p-f133eba2.entry.js +0 -1
  787. package/dist/stzh-components/p-f3107fc7.system.entry.js +0 -1
  788. package/dist/stzh-components/p-fcec6003.system.entry.js +0 -1
  789. package/dist/stzh-components/p-fdb906b9.system.entry.js +0 -1
@@ -0,0 +1,3 @@
1
+ import{r as n,h as t,c as r,g as i}from"./p-99a3742a.js";import{g as e,c as u,a as o,b as a}from"./p-a6d4a8b1.js";function f(n,t){return n<t?-1:n>t?1:n>=t?0:NaN}function s(n){var t;return 1===n.length&&(t=n,n=function(n,r){return f(t(n),r)}),{left:function(t,r,i,e){for(null==i&&(i=0),null==e&&(e=t.length);i<e;){var u=i+e>>>1;n(t[u],r)<0?i=u+1:e=u}return i},right:function(t,r,i,e){for(null==i&&(i=0),null==e&&(e=t.length);i<e;){var u=i+e>>>1;n(t[u],r)>0?e=u:i=u+1}return i}}}var c=s(f),l=c.right,h=c.left;function v(n,t){return[n,t]}function d(n){return null===n?NaN:+n}function b(n,t){var r,i,e=n.length,u=0,o=-1,a=0,f=0;if(null==t)for(;++o<e;)isNaN(r=d(n[o]))||(f+=(i=r-a)*(r-(a+=i/++u)));else for(;++o<e;)isNaN(r=d(t(n[o],o,n)))||(f+=(i=r-a)*(r-(a+=i/++u)));if(u>1)return f/(u-1)}function p(n,t){var r=b(n,t);return r?Math.sqrt(r):r}function y(n,t){var r,i,e,u=n.length,o=-1;if(null==t){for(;++o<u;)if(null!=(r=n[o])&&r>=r)for(i=e=r;++o<u;)null!=(r=n[o])&&(i>r&&(i=r),e<r&&(e=r))}else for(;++o<u;)if(null!=(r=t(n[o],o,n))&&r>=r)for(i=e=r;++o<u;)null!=(r=t(n[o],o,n))&&(i>r&&(i=r),e<r&&(e=r));return[i,e]}var m=Array.prototype,g=m.slice,w=m.map;function M(n){return function(){return n}}function k(n){return n}function z(n,t,r){n=+n,t=+t,r=(e=arguments.length)<2?(t=n,n=0,1):e<3?1:+r;for(var i=-1,e=0|Math.max(0,Math.ceil((t-n)/r)),u=new Array(e);++i<e;)u[i]=n+i*r;return u}var _=Math.sqrt(50),x=Math.sqrt(10),A=Math.sqrt(2);function N(n,t,r){var i,e,u,o,a=-1;if(r=+r,(n=+n)==(t=+t)&&r>0)return[n];if((i=t<n)&&(e=n,n=t,t=e),0===(o=S(n,t,r))||!isFinite(o))return[];if(o>0)for(n=Math.ceil(n/o),t=Math.floor(t/o),u=new Array(e=Math.ceil(t-n+1));++a<e;)u[a]=(n+a)*o;else for(n=Math.floor(n*o),t=Math.ceil(t*o),u=new Array(e=Math.ceil(n-t+1));++a<e;)u[a]=(n-a)/o;return i&&u.reverse(),u}function S(n,t,r){var i=(t-n)/Math.max(0,r),e=Math.floor(Math.log(i)/Math.LN10),u=i/Math.pow(10,e);return e>=0?(u>=_?10:u>=x?5:u>=A?2:1)*Math.pow(10,e):-Math.pow(10,-e)/(u>=_?10:u>=x?5:u>=A?2:1)}function E(n,t,r){var i=Math.abs(t-n)/Math.max(0,r),e=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),u=i/e;return u>=_?e*=10:u>=x?e*=5:u>=A&&(e*=2),t<n?-e:e}function F(n){return Math.ceil(Math.log(n.length)/Math.LN2)+1}function O(n,t,r){if(null==r&&(r=d),i=n.length){if((t=+t)<=0||i<2)return+r(n[0],0,n);if(t>=1)return+r(n[i-1],i-1,n);var i,e=(i-1)*t,u=Math.floor(e),o=+r(n[u],u,n);return o+(+r(n[u+1],u+1,n)-o)*(e-u)}}function C(n){for(var t,r,i,e=n.length,u=-1,o=0;++u<e;)o+=n[u].length;for(r=new Array(o);--e>=0;)for(t=(i=n[e]).length;--t>=0;)r[--o]=i[t];return r}function P(n,t){var r,i,e=n.length,u=-1;if(null==t){for(;++u<e;)if(null!=(r=n[u])&&r>=r)for(i=r;++u<e;)null!=(r=n[u])&&i>r&&(i=r)}else for(;++u<e;)if(null!=(r=t(n[u],u,n))&&r>=r)for(i=r;++u<e;)null!=(r=t(n[u],u,n))&&i>r&&(i=r);return i}function R(n){if(!(e=n.length))return[];for(var t=-1,r=P(n,T),i=new Array(r);++t<r;)for(var e,u=-1,o=i[t]=new Array(e);++u<e;)o[u]=n[u][t];return i}function T(n){return n.length}var j=Array.prototype.slice;function D(n){return n}var L=1e-6;function B(n){return"translate("+(n+.5)+",0)"}function H(n){return"translate(0,"+(n+.5)+")"}function I(n){return function(t){return+n(t)}}function W(n){var t=Math.max(0,n.bandwidth()-1)/2;return n.round()&&(t=Math.round(t)),function(r){return+n(r)+t}}function U(){return!this.__axis}function G(n,t){var r=[],i=null,e=null,u=6,o=6,a=3,f=1===n||4===n?-1:1,s=4===n||2===n?"x":"y",c=1===n||3===n?B:H;function l(l){var h=null==i?t.ticks?t.ticks.apply(t,r):t.domain():i,v=null==e?t.tickFormat?t.tickFormat.apply(t,r):D:e,d=Math.max(u,0)+a,b=t.range(),p=+b[0]+.5,y=+b[b.length-1]+.5,m=(t.bandwidth?W:I)(t.copy()),g=l.selection?l.selection():l,w=g.selectAll(".domain").data([null]),M=g.selectAll(".tick").data(h,t).order(),k=M.exit(),z=M.enter().append("g").attr("class","tick"),_=M.select("line"),x=M.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),M=M.merge(z),_=_.merge(z.append("line").attr("stroke","#000").attr(s+"2",f*u)),x=x.merge(z.append("text").attr("fill","#000").attr(s,f*d).attr("dy",1===n?"0em":3===n?"0.71em":"0.32em")),l!==g&&(w=w.transition(l),M=M.transition(l),_=_.transition(l),x=x.transition(l),k=k.transition(l).attr("opacity",L).attr("transform",(function(n){return isFinite(n=m(n))?c(n):this.getAttribute("transform")})),z.attr("opacity",L).attr("transform",(function(n){var t=this.parentNode.__axis;return c(t&&isFinite(t=t(n))?t:m(n))}))),k.remove(),w.attr("d",4===n||2==n?"M"+f*o+","+p+"H0.5V"+y+"H"+f*o:"M"+p+","+f*o+"V0.5H"+y+"V"+f*o),M.attr("opacity",1).attr("transform",(function(n){return c(m(n))})),_.attr(s+"2",f*u),x.attr(s,f*d).text(v),g.filter(U).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===n?"start":4===n?"end":"middle"),g.each((function(){this.__axis=m}))}return l.scale=function(n){return arguments.length?(t=n,l):t},l.ticks=function(){return r=j.call(arguments),l},l.tickArguments=function(n){return arguments.length?(r=null==n?[]:j.call(n),l):r.slice()},l.tickValues=function(n){return arguments.length?(i=null==n?null:j.call(n),l):i&&i.slice()},l.tickFormat=function(n){return arguments.length?(e=n,l):e},l.tickSize=function(n){return arguments.length?(u=o=+n,l):u},l.tickSizeInner=function(n){return arguments.length?(u=+n,l):u},l.tickSizeOuter=function(n){return arguments.length?(o=+n,l):o},l.tickPadding=function(n){return arguments.length?(a=+n,l):a},l}var q={value:function(){}};function Y(){for(var n,t=0,r=arguments.length,i={};t<r;++t){if(!(n=arguments[t]+"")||n in i)throw new Error("illegal type: "+n);i[n]=[]}return new X(i)}function X(n){this._=n}function V(n,t){return n.trim().split(/^|\s+/).map((function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}}))}function J(n,t){for(var r,i=0,e=n.length;i<e;++i)if((r=n[i]).name===t)return r.value}function $(n,t,r){for(var i=0,e=n.length;i<e;++i)if(n[i].name===t){n[i]=q,n=n.slice(0,i).concat(n.slice(i+1));break}return null!=r&&n.push({name:t,value:r}),n}X.prototype=Y.prototype={constructor:X,on:function(n,t){var r,i=this._,e=V(n+"",i),u=-1,o=e.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++u<o;)if(r=(n=e[u]).type)i[r]=$(i[r],n.name,t);else if(null==t)for(r in i)i[r]=$(i[r],n.name,null);return this}for(;++u<o;)if((r=(n=e[u]).type)&&(r=J(i[r],n.name)))return r},copy:function(){var n={},t=this._;for(var r in t)n[r]=t[r].slice();return new X(n)},call:function(n,t){if((r=arguments.length-2)>0)for(var r,i,e=new Array(r),u=0;u<r;++u)e[u]=arguments[u+2];if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(u=0,r=(i=this._[n]).length;u<r;++u)i[u].value.apply(t,e)},apply:function(n,t,r){if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(var i=this._[n],e=0,u=i.length;e<u;++e)i[e].value.apply(t,r)}};var Z="http://www.w3.org/1999/xhtml";const Q={svg:"http://www.w3.org/2000/svg",xhtml:Z,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function K(n){var t=n+="",r=t.indexOf(":");return r>=0&&"xmlns"!==(t=n.slice(0,r))&&(n=n.slice(r+1)),Q.hasOwnProperty(t)?{space:Q[t],local:n}:n}function nn(n){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Z&&t.documentElement.namespaceURI===Z?t.createElement(n):t.createElementNS(r,n)}}function tn(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function rn(n){var t=K(n);return(t.local?tn:nn)(t)}function en(){}function un(n){return null==n?en:function(){return this.querySelector(n)}}function on(){return[]}function an(n){return null==n?on:function(){return this.querySelectorAll(n)}}var fn=function(n){return function(){return this.matches(n)}};if("undefined"!=typeof document){var sn=document.documentElement;if(!sn.matches){var cn=sn.webkitMatchesSelector||sn.msMatchesSelector||sn.mozMatchesSelector||sn.oMatchesSelector;fn=function(n){return function(){return cn.call(this,n)}}}}const ln=fn;function hn(n){return new Array(n.length)}function vn(n,t){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=t}function dn(n,t,r,i,e,u){for(var o,a=0,f=t.length,s=u.length;a<s;++a)(o=t[a])?(o.__data__=u[a],i[a]=o):r[a]=new vn(n,u[a]);for(;a<f;++a)(o=t[a])&&(e[a]=o)}function bn(n,t,r,i,e,u,o){var a,f,s,c={},l=t.length,h=u.length,v=new Array(l);for(a=0;a<l;++a)(f=t[a])&&(v[a]=s="$"+o.call(f,f.__data__,a,t),s in c?e[a]=f:c[s]=f);for(a=0;a<h;++a)(f=c[s="$"+o.call(n,u[a],a,u)])?(i[a]=f,f.__data__=u[a],c[s]=null):r[a]=new vn(n,u[a]);for(a=0;a<l;++a)(f=t[a])&&c[v[a]]===f&&(e[a]=f)}function pn(n,t){return n<t?-1:n>t?1:n>=t?0:NaN}function yn(n){return function(){this.removeAttribute(n)}}function mn(n){return function(){this.removeAttributeNS(n.space,n.local)}}function gn(n,t){return function(){this.setAttribute(n,t)}}function wn(n,t){return function(){this.setAttributeNS(n.space,n.local,t)}}function Mn(n,t){return function(){var r=t.apply(this,arguments);null==r?this.removeAttribute(n):this.setAttribute(n,r)}}function kn(n,t){return function(){var r=t.apply(this,arguments);null==r?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,r)}}function zn(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function _n(n){return function(){this.style.removeProperty(n)}}function xn(n,t,r){return function(){this.style.setProperty(n,t,r)}}function An(n,t,r){return function(){var i=t.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,r)}}function Nn(n,t){return n.style.getPropertyValue(t)||zn(n).getComputedStyle(n,null).getPropertyValue(t)}function Sn(n){return function(){delete this[n]}}function En(n,t){return function(){this[n]=t}}function Fn(n,t){return function(){var r=t.apply(this,arguments);null==r?delete this[n]:this[n]=r}}function On(n){return n.trim().split(/^|\s+/)}function Cn(n){return n.classList||new Pn(n)}function Pn(n){this._node=n,this._names=On(n.getAttribute("class")||"")}function Rn(n,t){for(var r=Cn(n),i=-1,e=t.length;++i<e;)r.add(t[i])}function Tn(n,t){for(var r=Cn(n),i=-1,e=t.length;++i<e;)r.remove(t[i])}function jn(n){return function(){Rn(this,n)}}function Dn(n){return function(){Tn(this,n)}}function Ln(n,t){return function(){(t.apply(this,arguments)?Rn:Tn)(this,n)}}function Bn(){this.textContent=""}function Hn(n){return function(){this.textContent=n}}function In(n){return function(){var t=n.apply(this,arguments);this.textContent=null==t?"":t}}function Wn(){this.innerHTML=""}function Un(n){return function(){this.innerHTML=n}}function Gn(n){return function(){var t=n.apply(this,arguments);this.innerHTML=null==t?"":t}}function qn(){this.nextSibling&&this.parentNode.appendChild(this)}function Yn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Xn(){return null}function Vn(){var n=this.parentNode;n&&n.removeChild(this)}function Jn(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function $n(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}vn.prototype={constructor:vn,appendChild:function(n){return this._parent.insertBefore(n,this._next)},insertBefore:function(n,t){return this._parent.insertBefore(n,t)},querySelector:function(n){return this._parent.querySelector(n)},querySelectorAll:function(n){return this._parent.querySelectorAll(n)}},Pn.prototype={add:function(n){this._names.indexOf(n)<0&&(this._names.push(n),this._node.setAttribute("class",this._names.join(" ")))},remove:function(n){var t=this._names.indexOf(n);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};var Zn={},Qn=null;function Kn(n,t,r){return n=nt(n,t,r),function(t){var r=t.relatedTarget;r&&(r===this||8&r.compareDocumentPosition(this))||n.call(this,t)}}function nt(n,t,r){return function(i){var e=Qn;Qn=i;try{n.call(this,this.__data__,t,r)}finally{Qn=e}}}function tt(n){return n.trim().split(/^|\s+/).map((function(n){var t="",r=n.indexOf(".");return r>=0&&(t=n.slice(r+1),n=n.slice(0,r)),{type:n,name:t}}))}function rt(n){return function(){var t=this.__on;if(t){for(var r,i=0,e=-1,u=t.length;i<u;++i)r=t[i],n.type&&r.type!==n.type||r.name!==n.name?t[++e]=r:this.removeEventListener(r.type,r.listener,r.capture);++e?t.length=e:delete this.__on}}}function it(n,t,r){var i=Zn.hasOwnProperty(n.type)?Kn:nt;return function(e,u,o){var a,f=this.__on,s=i(t,u,o);if(f)for(var c=0,l=f.length;c<l;++c)if((a=f[c]).type===n.type&&a.name===n.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=s,a.capture=r),void(a.value=t);this.addEventListener(n.type,s,r),a={type:n.type,name:n.name,value:t,listener:s,capture:r},f?f.push(a):this.__on=[a]}}function et(n,t,r,i){var e=Qn;n.sourceEvent=Qn,Qn=n;try{return t.apply(r,i)}finally{Qn=e}}function ut(n,t,r){var i=zn(n),e=i.CustomEvent;"function"==typeof e?e=new e(t,r):(e=i.document.createEvent("Event"),r?(e.initEvent(t,r.bubbles,r.cancelable),e.detail=r.detail):e.initEvent(t,!1,!1)),n.dispatchEvent(e)}function ot(n,t){return function(){return ut(this,n,t)}}function at(n,t){return function(){return ut(this,n,t.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Zn={mouseenter:"mouseover",mouseleave:"mouseout"}));var ft=[null];function st(n,t){this._groups=n,this._parents=t}function ct(){return new st([[document.documentElement]],ft)}function lt(n){return"string"==typeof n?new st([[document.querySelector(n)]],[document.documentElement]):new st([[n]],ft)}st.prototype=ct.prototype={constructor:st,select:function(n){"function"!=typeof n&&(n=un(n));for(var t=this._groups,r=t.length,i=new Array(r),e=0;e<r;++e)for(var u,o,a=t[e],f=a.length,s=i[e]=new Array(f),c=0;c<f;++c)(u=a[c])&&(o=n.call(u,u.__data__,c,a))&&("__data__"in u&&(o.__data__=u.__data__),s[c]=o);return new st(i,this._parents)},selectAll:function(n){"function"!=typeof n&&(n=an(n));for(var t=this._groups,r=t.length,i=[],e=[],u=0;u<r;++u)for(var o,a=t[u],f=a.length,s=0;s<f;++s)(o=a[s])&&(i.push(n.call(o,o.__data__,s,a)),e.push(o));return new st(i,e)},filter:function(n){"function"!=typeof n&&(n=ln(n));for(var t=this._groups,r=t.length,i=new Array(r),e=0;e<r;++e)for(var u,o=t[e],a=o.length,f=i[e]=[],s=0;s<a;++s)(u=o[s])&&n.call(u,u.__data__,s,o)&&f.push(u);return new st(i,this._parents)},data:function(n,t){if(!n)return v=new Array(this.size()),s=-1,this.each((function(n){v[++s]=n})),v;var r=t?bn:dn,i=this._parents,e=this._groups;"function"!=typeof n&&(n=function(n){return function(){return n}}(n));for(var u=e.length,o=new Array(u),a=new Array(u),f=new Array(u),s=0;s<u;++s){var c=i[s],l=e[s],h=l.length,v=n.call(c,c&&c.__data__,s,i),d=v.length,b=a[s]=new Array(d),p=o[s]=new Array(d);r(c,l,b,p,f[s]=new Array(h),v,t);for(var y,m,g=0,w=0;g<d;++g)if(y=b[g]){for(g>=w&&(w=g+1);!(m=p[w])&&++w<d;);y._next=m||null}}return(o=new st(o,i))._enter=a,o._exit=f,o},enter:function(){return new st(this._enter||this._groups.map(hn),this._parents)},exit:function(){return new st(this._exit||this._groups.map(hn),this._parents)},merge:function(n){for(var t=this._groups,r=n._groups,i=t.length,e=Math.min(i,r.length),u=new Array(i),o=0;o<e;++o)for(var a,f=t[o],s=r[o],c=f.length,l=u[o]=new Array(c),h=0;h<c;++h)(a=f[h]||s[h])&&(l[h]=a);for(;o<i;++o)u[o]=t[o];return new st(u,this._parents)},order:function(){for(var n=this._groups,t=-1,r=n.length;++t<r;)for(var i,e=n[t],u=e.length-1,o=e[u];--u>=0;)(i=e[u])&&(o&&o!==i.nextSibling&&o.parentNode.insertBefore(i,o),o=i);return this},sort:function(n){function t(t,r){return t&&r?n(t.__data__,r.__data__):!t-!r}n||(n=pn);for(var r=this._groups,i=r.length,e=new Array(i),u=0;u<i;++u){for(var o,a=r[u],f=a.length,s=e[u]=new Array(f),c=0;c<f;++c)(o=a[c])&&(s[c]=o);s.sort(t)}return new st(e,this._parents).order()},call:function(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this},nodes:function(){var n=new Array(this.size()),t=-1;return this.each((function(){n[++t]=this})),n},node:function(){for(var n=this._groups,t=0,r=n.length;t<r;++t)for(var i=n[t],e=0,u=i.length;e<u;++e){var o=i[e];if(o)return o}return null},size:function(){var n=0;return this.each((function(){++n})),n},empty:function(){return!this.node()},each:function(n){for(var t=this._groups,r=0,i=t.length;r<i;++r)for(var e,u=t[r],o=0,a=u.length;o<a;++o)(e=u[o])&&n.call(e,e.__data__,o,u);return this},attr:function(n,t){var r=K(n);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((null==t?r.local?mn:yn:"function"==typeof t?r.local?kn:Mn:r.local?wn:gn)(r,t))},style:function(n,t,r){return arguments.length>1?this.each((null==t?_n:"function"==typeof t?An:xn)(n,t,null==r?"":r)):Nn(this.node(),n)},property:function(n,t){return arguments.length>1?this.each((null==t?Sn:"function"==typeof t?Fn:En)(n,t)):this.node()[n]},classed:function(n,t){var r=On(n+"");if(arguments.length<2){for(var i=Cn(this.node()),e=-1,u=r.length;++e<u;)if(!i.contains(r[e]))return!1;return!0}return this.each(("function"==typeof t?Ln:t?jn:Dn)(r,t))},text:function(n){return arguments.length?this.each(null==n?Bn:("function"==typeof n?In:Hn)(n)):this.node().textContent},html:function(n){return arguments.length?this.each(null==n?Wn:("function"==typeof n?Gn:Un)(n)):this.node().innerHTML},raise:function(){return this.each(qn)},lower:function(){return this.each(Yn)},append:function(n){var t="function"==typeof n?n:rn(n);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(n,t){var r="function"==typeof n?n:rn(n),i=null==t?Xn:"function"==typeof t?t:un(t);return this.select((function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(Vn)},clone:function(n){return this.select(n?$n:Jn)},datum:function(n){return arguments.length?this.property("__data__",n):this.node().__data__},on:function(n,t,r){var i,e,u=tt(n+""),o=u.length;if(!(arguments.length<2)){for(a=t?it:rt,null==r&&(r=!1),i=0;i<o;++i)this.each(a(u[i],t,r));return this}var a=this.node().__on;if(a)for(var f,s=0,c=a.length;s<c;++s)for(i=0,f=a[s];i<o;++i)if((e=u[i]).type===f.type&&e.name===f.name)return f.value},dispatch:function(n,t){return this.each(("function"==typeof t?at:ot)(n,t))}};var ht=0;function vt(){return new dt}function dt(){this._="@"+(++ht).toString(36)}function bt(){for(var n,t=Qn;n=t.sourceEvent;)t=n;return t}function pt(n,t){var r=n.ownerSVGElement||n;if(r.createSVGPoint){var i=r.createSVGPoint();return i.x=t.clientX,i.y=t.clientY,[(i=i.matrixTransform(n.getScreenCTM().inverse())).x,i.y]}var e=n.getBoundingClientRect();return[t.clientX-e.left-n.clientLeft,t.clientY-e.top-n.clientTop]}function yt(n){var t=bt();return t.changedTouches&&(t=t.changedTouches[0]),pt(n,t)}function mt(n,t,r){arguments.length<3&&(r=t,t=bt().changedTouches);for(var i,e=0,u=t?t.length:0;e<u;++e)if((i=t[e]).identifier===r)return pt(n,i);return null}function gt(){Qn.stopImmediatePropagation()}function wt(){Qn.preventDefault(),Qn.stopImmediatePropagation()}function Mt(n){var t=n.document.documentElement,r=lt(n).on("dragstart.drag",wt,!0);"onselectstart"in t?r.on("selectstart.drag",wt,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function kt(n,t){var r=n.document.documentElement,i=lt(n).on("dragstart.drag",null);t&&(i.on("click.drag",wt,!0),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in r?i.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}function zt(n){return function(){return n}}function _t(n,t,r,i,e,u,o,a,f,s){this.target=n,this.type=t,this.subject=r,this.identifier=i,this.active=e,this.x=u,this.y=o,this.dx=a,this.dy=f,this._=s}function xt(){return!Qn.button}function At(){return this.parentNode}function Nt(n){return null==n?{x:Qn.x,y:Qn.y}:n}function St(){return"ontouchstart"in this}function Et(n,t,r){n.prototype=t.prototype=r,r.constructor=n}function Ft(n,t){var r=Object.create(n.prototype);for(var i in t)r[i]=t[i];return r}function Ot(){}dt.prototype=vt.prototype={constructor:dt,get:function(n){for(var t=this._;!(t in n);)if(!(n=n.parentNode))return;return n[t]},set:function(n,t){return n[this._]=t},remove:function(n){return this._ in n&&delete n[this._]},toString:function(){return this._}},_t.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};var Ct=.7,Pt=1/Ct,Rt="\\s*([+-]?\\d+)\\s*",Tt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",jt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Dt=/^#([0-9a-f]{3})$/,Lt=/^#([0-9a-f]{6})$/,Bt=new RegExp("^rgb\\("+[Rt,Rt,Rt]+"\\)$"),Ht=new RegExp("^rgb\\("+[jt,jt,jt]+"\\)$"),It=new RegExp("^rgba\\("+[Rt,Rt,Rt,Tt]+"\\)$"),Wt=new RegExp("^rgba\\("+[jt,jt,jt,Tt]+"\\)$"),Ut=new RegExp("^hsl\\("+[Tt,jt,jt]+"\\)$"),Gt=new RegExp("^hsla\\("+[Tt,jt,jt,Tt]+"\\)$"),qt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Yt(n){var t;return n=(n+"").trim().toLowerCase(),(t=Dt.exec(n))?new Zt((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=Lt.exec(n))?Xt(parseInt(t[1],16)):(t=Bt.exec(n))?new Zt(t[1],t[2],t[3],1):(t=Ht.exec(n))?new Zt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=It.exec(n))?Vt(t[1],t[2],t[3],t[4]):(t=Wt.exec(n))?Vt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ut.exec(n))?Qt(t[1],t[2]/100,t[3]/100,1):(t=Gt.exec(n))?Qt(t[1],t[2]/100,t[3]/100,t[4]):qt.hasOwnProperty(n)?Xt(qt[n]):"transparent"===n?new Zt(NaN,NaN,NaN,0):null}function Xt(n){return new Zt(n>>16&255,n>>8&255,255&n,1)}function Vt(n,t,r,i){return i<=0&&(n=t=r=NaN),new Zt(n,t,r,i)}function Jt(n){return n instanceof Ot||(n=Yt(n)),n?new Zt((n=n.rgb()).r,n.g,n.b,n.opacity):new Zt}function $t(n,t,r,i){return 1===arguments.length?Jt(n):new Zt(n,t,r,null==i?1:i)}function Zt(n,t,r,i){this.r=+n,this.g=+t,this.b=+r,this.opacity=+i}function Qt(n,t,r,i){return i<=0?n=t=r=NaN:r<=0||r>=1?n=t=NaN:t<=0&&(n=NaN),new tr(n,t,r,i)}function Kt(n){if(n instanceof tr)return new tr(n.h,n.s,n.l,n.opacity);if(n instanceof Ot||(n=Yt(n)),!n)return new tr;if(n instanceof tr)return n;var t=(n=n.rgb()).r/255,r=n.g/255,i=n.b/255,e=Math.min(t,r,i),u=Math.max(t,r,i),o=NaN,a=u-e,f=(u+e)/2;return a?(o=t===u?(r-i)/a+6*(r<i):r===u?(i-t)/a+2:(t-r)/a+4,a/=f<.5?u+e:2-u-e,o*=60):a=f>0&&f<1?0:o,new tr(o,a,f,n.opacity)}function nr(n,t,r,i){return 1===arguments.length?Kt(n):new tr(n,t,r,null==i?1:i)}function tr(n,t,r,i){this.h=+n,this.s=+t,this.l=+r,this.opacity=+i}function rr(n,t,r){return 255*(n<60?t+(r-t)*n/60:n<180?r:n<240?t+(r-t)*(240-n)/60:t)}Et(Ot,Yt,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Et(Zt,$t,Ft(Ot,{brighter:function(n){return n=null==n?Pt:Math.pow(Pt,n),new Zt(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=null==n?Ct:Math.pow(Ct,n),new Zt(this.r*n,this.g*n,this.b*n,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===n?")":", "+n+")")}})),Et(tr,nr,Ft(Ot,{brighter:function(n){return n=null==n?Pt:Math.pow(Pt,n),new tr(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=null==n?Ct:Math.pow(Ct,n),new tr(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=this.h%360+360*(this.h<0),t=isNaN(n)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,e=2*r-i;return new Zt(rr(n>=240?n-240:n+120,e,i),rr(n,e,i),rr(n<120?n+240:n-120,e,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var ir=Math.PI/180,er=180/Math.PI,ur=.95047,or=1.08883,ar=4/29,fr=6/29,sr=3*fr*fr;function cr(n){if(n instanceof hr)return new hr(n.l,n.a,n.b,n.opacity);if(n instanceof gr){var t=n.h*ir;return new hr(n.l,Math.cos(t)*n.c,Math.sin(t)*n.c,n.opacity)}n instanceof Zt||(n=Jt(n));var r=pr(n.r),i=pr(n.g),e=pr(n.b),u=vr((.4124564*r+.3575761*i+.1804375*e)/ur),o=vr((.2126729*r+.7151522*i+.072175*e)/1);return new hr(116*o-16,500*(u-o),200*(o-vr((.0193339*r+.119192*i+.9503041*e)/or)),n.opacity)}function lr(n,t,r,i){return 1===arguments.length?cr(n):new hr(n,t,r,null==i?1:i)}function hr(n,t,r,i){this.l=+n,this.a=+t,this.b=+r,this.opacity=+i}function vr(n){return n>.008856451679035631?Math.pow(n,1/3):n/sr+ar}function dr(n){return n>fr?n*n*n:sr*(n-ar)}function br(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function pr(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function yr(n){if(n instanceof gr)return new gr(n.h,n.c,n.l,n.opacity);n instanceof hr||(n=cr(n));var t=Math.atan2(n.b,n.a)*er;return new gr(t<0?t+360:t,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function mr(n,t,r,i){return 1===arguments.length?yr(n):new gr(n,t,r,null==i?1:i)}function gr(n,t,r,i){this.h=+n,this.c=+t,this.l=+r,this.opacity=+i}Et(hr,lr,Ft(Ot,{brighter:function(n){return new hr(this.l+18*(null==n?1:n),this.a,this.b,this.opacity)},darker:function(n){return new hr(this.l-18*(null==n?1:n),this.a,this.b,this.opacity)},rgb:function(){var n=(this.l+16)/116,t=isNaN(this.a)?n:n+this.a/500,r=isNaN(this.b)?n:n-this.b/200;return n=1*dr(n),new Zt(br(3.2404542*(t=ur*dr(t))-1.5371385*n-.4985314*(r=or*dr(r))),br(-.969266*t+1.8760108*n+.041556*r),br(.0556434*t-.2040259*n+1.0572252*r),this.opacity)}})),Et(gr,mr,Ft(Ot,{brighter:function(n){return new gr(this.h,this.c,this.l+18*(null==n?1:n),this.opacity)},darker:function(n){return new gr(this.h,this.c,this.l-18*(null==n?1:n),this.opacity)},rgb:function(){return cr(this).rgb()}}));var wr=-.14861,Mr=1.78277,kr=-.29227,zr=-.90649,_r=1.97294,xr=_r*zr,Ar=_r*Mr,Nr=Mr*kr-zr*wr;function Sr(n){if(n instanceof Fr)return new Fr(n.h,n.s,n.l,n.opacity);n instanceof Zt||(n=Jt(n));var t=n.g/255,r=n.b/255,i=(Nr*r+xr*(n.r/255)-Ar*t)/(Nr+xr-Ar),e=r-i,u=(_r*(t-i)-kr*e)/zr,o=Math.sqrt(u*u+e*e)/(_r*i*(1-i)),a=o?Math.atan2(u,e)*er-120:NaN;return new Fr(a<0?a+360:a,o,i,n.opacity)}function Er(n,t,r,i){return 1===arguments.length?Sr(n):new Fr(n,t,r,null==i?1:i)}function Fr(n,t,r,i){this.h=+n,this.s=+t,this.l=+r,this.opacity=+i}function Or(n,t,r,i,e){var u=n*n,o=u*n;return((1-3*n+3*u-o)*t+(4-6*u+3*o)*r+(1+3*n+3*u-3*o)*i+o*e)/6}function Cr(n){var t=n.length-1;return function(r){var i=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),e=n[i],u=n[i+1];return Or((r-i/t)*t,i>0?n[i-1]:2*e-u,e,u,i<t-1?n[i+2]:2*u-e)}}function Pr(n){var t=n.length;return function(r){var i=Math.floor(((r%=1)<0?++r:r)*t);return Or((r-i/t)*t,n[(i+t-1)%t],n[i%t],n[(i+1)%t],n[(i+2)%t])}}function Rr(n){return function(){return n}}function Tr(n,t){return function(r){return n+r*t}}function jr(n,t){var r=t-n;return r?Tr(n,r>180||r<-180?r-360*Math.round(r/360):r):Rr(isNaN(n)?t:n)}function Dr(n,t){var r=t-n;return r?Tr(n,r):Rr(isNaN(n)?t:n)}Et(Fr,Er,Ft(Ot,{brighter:function(n){return n=null==n?Pt:Math.pow(Pt,n),new Fr(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=null==n?Ct:Math.pow(Ct,n),new Fr(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=isNaN(this.h)?0:(this.h+120)*ir,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),i=Math.cos(n),e=Math.sin(n);return new Zt(255*(t+r*(wr*i+Mr*e)),255*(t+r*(kr*i+zr*e)),255*(t+r*(_r*i)),this.opacity)}}));const Lr=function n(t){var r=function(n){return 1==(n=+n)?Dr:function(t,r){return r-t?function(n,t,r){return n=Math.pow(n,r),t=Math.pow(t,r)-n,r=1/r,function(i){return Math.pow(n+i*t,r)}}(t,r,n):Rr(isNaN(t)?r:t)}}(t);function i(n,t){var i=r((n=$t(n)).r,(t=$t(t)).r),e=r(n.g,t.g),u=r(n.b,t.b),o=Dr(n.opacity,t.opacity);return function(t){return n.r=i(t),n.g=e(t),n.b=u(t),n.opacity=o(t),n+""}}return i.gamma=n,i}(1);function Br(n){return function(t){var r,i,e=t.length,u=new Array(e),o=new Array(e),a=new Array(e);for(r=0;r<e;++r)i=$t(t[r]),u[r]=i.r||0,o[r]=i.g||0,a[r]=i.b||0;return u=n(u),o=n(o),a=n(a),i.opacity=1,function(n){return i.r=u(n),i.g=o(n),i.b=a(n),i+""}}}var Hr=Br(Cr),Ir=Br(Pr);function Wr(n,t){var r,i=t?t.length:0,e=n?Math.min(i,n.length):0,u=new Array(e),o=new Array(i);for(r=0;r<e;++r)u[r]=Jr(n[r],t[r]);for(;r<i;++r)o[r]=t[r];return function(n){for(r=0;r<e;++r)o[r]=u[r](n);return o}}function Ur(n,t){var r=new Date;return t-=n=+n,function(i){return r.setTime(n+t*i),r}}function Gr(n,t){return t-=n=+n,function(r){return n+t*r}}function qr(n,t){var r,i={},e={};for(r in null!==n&&"object"==typeof n||(n={}),null!==t&&"object"==typeof t||(t={}),t)r in n?i[r]=Jr(n[r],t[r]):e[r]=t[r];return function(n){for(r in i)e[r]=i[r](n);return e}}var Yr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Xr=new RegExp(Yr.source,"g");function Vr(n,t){var r,i,e,u=Yr.lastIndex=Xr.lastIndex=0,o=-1,a=[],f=[];for(n+="",t+="";(r=Yr.exec(n))&&(i=Xr.exec(t));)(e=i.index)>u&&(e=t.slice(u,e),a[o]?a[o]+=e:a[++o]=e),(r=r[0])===(i=i[0])?a[o]?a[o]+=i:a[++o]=i:(a[++o]=null,f.push({i:o,x:Gr(r,i)})),u=Xr.lastIndex;return u<t.length&&(e=t.slice(u),a[o]?a[o]+=e:a[++o]=e),a.length<2?f[0]?function(n){return function(t){return n(t)+""}}(f[0].x):function(n){return function(){return n}}(t):(t=f.length,function(n){for(var r,i=0;i<t;++i)a[(r=f[i]).i]=r.x(n);return a.join("")})}function Jr(n,t){var r,i=typeof t;return null==t||"boolean"===i?Rr(t):("number"===i?Gr:"string"===i?(r=Yt(t))?(t=r,Lr):Vr:t instanceof Yt?Lr:t instanceof Date?Ur:Array.isArray(t)?Wr:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?qr:Gr)(n,t)}function $r(n,t){return t-=n=+n,function(r){return Math.round(n+t*r)}}var Zr,Qr,Kr,ni,ti=180/Math.PI,ri={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ii(n,t,r,i,e,u){var o,a,f;return(o=Math.sqrt(n*n+t*t))&&(n/=o,t/=o),(f=n*r+t*i)&&(r-=n*f,i-=t*f),(a=Math.sqrt(r*r+i*i))&&(r/=a,i/=a,f/=a),n*i<t*r&&(n=-n,t=-t,f=-f,o=-o),{translateX:e,translateY:u,rotate:Math.atan2(t,n)*ti,skewX:Math.atan(f)*ti,scaleX:o,scaleY:a}}function ei(n,t,r,i){function e(n){return n.length?n.pop()+" ":""}return function(u,o){var a=[],f=[];return u=n(u),o=n(o),function(n,i,e,u,o,a){if(n!==e||i!==u){var f=o.push("translate(",null,t,null,r);a.push({i:f-4,x:Gr(n,e)},{i:f-2,x:Gr(i,u)})}else(e||u)&&o.push("translate("+e+t+u+r)}(u.translateX,u.translateY,o.translateX,o.translateY,a,f),function(n,t,r,u){n!==t?(n-t>180?t+=360:t-n>180&&(n+=360),u.push({i:r.push(e(r)+"rotate(",null,i)-2,x:Gr(n,t)})):t&&r.push(e(r)+"rotate("+t+i)}(u.rotate,o.rotate,a,f),function(n,t,r,u){n!==t?u.push({i:r.push(e(r)+"skewX(",null,i)-2,x:Gr(n,t)}):t&&r.push(e(r)+"skewX("+t+i)}(u.skewX,o.skewX,a,f),function(n,t,r,i,u,o){if(n!==r||t!==i){var a=u.push(e(u)+"scale(",null,",",null,")");o.push({i:a-4,x:Gr(n,r)},{i:a-2,x:Gr(t,i)})}else 1===r&&1===i||u.push(e(u)+"scale("+r+","+i+")")}(u.scaleX,u.scaleY,o.scaleX,o.scaleY,a,f),u=o=null,function(n){for(var t,r=-1,i=f.length;++r<i;)a[(t=f[r]).i]=t.x(n);return a.join("")}}}var ui=ei((function(n){return"none"===n?ri:(Zr||(Zr=document.createElement("DIV"),Qr=document.documentElement,Kr=document.defaultView),Zr.style.transform=n,n=Kr.getComputedStyle(Qr.appendChild(Zr),null).getPropertyValue("transform"),Qr.removeChild(Zr),ii(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))}),"px, ","px)","deg)"),oi=ei((function(n){return null==n?ri:(ni||(ni=document.createElementNS("http://www.w3.org/2000/svg","g")),ni.setAttribute("transform",n),(n=ni.transform.baseVal.consolidate())?ii((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):ri)}),", ",")",")"),ai=Math.SQRT2;function fi(n){return((n=Math.exp(n))+1/n)/2}function si(n,t){var r,i,e=n[0],u=n[1],o=n[2],a=t[2],f=t[0]-e,s=t[1]-u,c=f*f+s*s;if(c<1e-12)i=Math.log(a/o)/ai,r=function(n){return[e+n*f,u+n*s,o*Math.exp(ai*n*i)]};else{var l=Math.sqrt(c),h=(a*a-o*o+4*c)/(2*o*2*l),v=(a*a-o*o-4*c)/(2*a*2*l),d=Math.log(Math.sqrt(h*h+1)-h),b=Math.log(Math.sqrt(v*v+1)-v);i=(b-d)/ai,r=function(n){var t=n*i,r=fi(d),a=o/(2*l)*(r*function(n){return((n=Math.exp(2*n))-1)/(n+1)}(ai*t+d)-function(n){return((n=Math.exp(n))-1/n)/2}(d));return[e+a*f,u+a*s,o*r/fi(ai*t+d)]}}return r.duration=1e3*i,r}function ci(n){return function(t,r){var i=n((t=nr(t)).h,(r=nr(r)).h),e=Dr(t.s,r.s),u=Dr(t.l,r.l),o=Dr(t.opacity,r.opacity);return function(n){return t.h=i(n),t.s=e(n),t.l=u(n),t.opacity=o(n),t+""}}}const li=ci(jr);var hi=ci(Dr);function vi(n){return function(t,r){var i=n((t=mr(t)).h,(r=mr(r)).h),e=Dr(t.c,r.c),u=Dr(t.l,r.l),o=Dr(t.opacity,r.opacity);return function(n){return t.h=i(n),t.c=e(n),t.l=u(n),t.opacity=o(n),t+""}}}const di=vi(jr);var bi=vi(Dr);function pi(n){return function t(r){function i(t,i){var e=n((t=Er(t)).h,(i=Er(i)).h),u=Dr(t.s,i.s),o=Dr(t.l,i.l),a=Dr(t.opacity,i.opacity);return function(n){return t.h=e(n),t.s=u(n),t.l=o(Math.pow(n,r)),t.opacity=a(n),t+""}}return r=+r,i.gamma=t,i}(1)}const yi=pi(jr);var mi,gi,wi=pi(Dr),Mi=0,ki=0,zi=0,_i=0,xi=0,Ai=0,Ni="object"==typeof performance&&performance.now?performance:Date,Si="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};function Ei(){return xi||(Si(Fi),xi=Ni.now()+Ai)}function Fi(){xi=0}function Oi(){this._call=this._time=this._next=null}function Ci(n,t,r){var i=new Oi;return i.restart(n,t,r),i}function Pi(){Ei(),++Mi;for(var n,t=mi;t;)(n=xi-t._time)>=0&&t._call.call(null,n),t=t._next;--Mi}function Ri(){xi=(_i=Ni.now())+Ai,Mi=ki=0;try{Pi()}finally{Mi=0,function(){for(var n,t,r=mi,i=1/0;r;)r._call?(i>r._time&&(i=r._time),n=r,r=r._next):(t=r._next,r._next=null,r=n?n._next=t:mi=t);gi=n,ji(i)}(),xi=0}}function Ti(){var n=Ni.now(),t=n-_i;t>1e3&&(Ai-=t,_i=n)}function ji(n){Mi||(ki&&(ki=clearTimeout(ki)),n-xi>24?(n<1/0&&(ki=setTimeout(Ri,n-Ni.now()-Ai)),zi&&(zi=clearInterval(zi))):(zi||(_i=Ni.now(),zi=setInterval(Ti,1e3)),Mi=1,Si(Ri)))}function Di(n,t,r){var i=new Oi;return i.restart((function(r){i.stop(),n(r+t)}),t=null==t?0:+t,r),i}Oi.prototype=Ci.prototype={constructor:Oi,restart:function(n,t,r){if("function"!=typeof n)throw new TypeError("callback is not a function");r=(null==r?Ei():+r)+(null==t?0:+t),this._next||gi===this||(gi?gi._next=this:mi=this,gi=this),this._call=n,this._time=r,ji()},stop:function(){this._call&&(this._call=null,this._time=1/0,ji())}};var Li=Y("start","end","interrupt"),Bi=[];function Hi(n,t,r,i,e,u){var o=n.__transition;if(o){if(r in o)return}else n.__transition={};!function(n,t,r){var i,e=n.__transition;function u(f){var s,c,l,h;if(1!==r.state)return a();for(s in e)if((h=e[s]).name===r.name){if(3===h.state)return Di(u);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",n,n.__data__,h.index,h.group),delete e[s]):+s<t&&(h.state=6,h.timer.stop(),delete e[s])}if(Di((function(){3===r.state&&(r.state=4,r.timer.restart(o,r.delay,r.time),o(f))})),r.state=2,r.on.call("start",n,n.__data__,r.index,r.group),2===r.state){for(r.state=3,i=new Array(l=r.tween.length),s=0,c=-1;s<l;++s)(h=r.tween[s].value.call(n,n.__data__,r.index,r.group))&&(i[++c]=h);i.length=c+1}}function o(t){for(var e=t<r.duration?r.ease.call(null,t/r.duration):(r.timer.restart(a),r.state=5,1),u=-1,o=i.length;++u<o;)i[u].call(null,e);5===r.state&&(r.on.call("end",n,n.__data__,r.index,r.group),a())}function a(){for(var i in r.state=6,r.timer.stop(),delete e[t],e)return;delete n.__transition}e[t]=r,r.timer=Ci((function(n){r.state=1,r.timer.restart(u,r.delay,r.time),r.delay<=n&&u(n-r.delay)}),0,r.time)}(n,r,{name:t,index:i,group:e,on:Li,tween:Bi,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:0})}function Ii(n,t){var r=Ui(n,t);if(r.state>0)throw new Error("too late; already scheduled");return r}function Wi(n,t){var r=Ui(n,t);if(r.state>2)throw new Error("too late; already started");return r}function Ui(n,t){var r=n.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function Gi(n,t){var r,i,e,u=n.__transition,o=!0;if(u){for(e in t=null==t?null:t+"",u)(r=u[e]).name===t?(i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),i&&r.on.call("interrupt",n,n.__data__,r.index,r.group),delete u[e]):o=!1;o&&delete n.__transition}}function qi(n,t){var r,i;return function(){var e=Wi(this,n),u=e.tween;if(u!==r)for(var o=0,a=(i=r=u).length;o<a;++o)if(i[o].name===t){(i=i.slice()).splice(o,1);break}e.tween=i}}function Yi(n,t,r){var i,e;if("function"!=typeof r)throw new Error;return function(){var u=Wi(this,n),o=u.tween;if(o!==i){e=(i=o).slice();for(var a={name:t,value:r},f=0,s=e.length;f<s;++f)if(e[f].name===t){e[f]=a;break}f===s&&e.push(a)}u.tween=e}}function Xi(n,t,r){var i=n._id;return n.each((function(){var n=Wi(this,i);(n.value||(n.value={}))[t]=r.apply(this,arguments)})),function(n){return Ui(n,i).value[t]}}function Vi(n,t){var r;return("number"==typeof t?Gr:t instanceof Yt?Lr:(r=Yt(t))?(t=r,Lr):Vr)(n,t)}function Ji(n){return function(){this.removeAttribute(n)}}function $i(n){return function(){this.removeAttributeNS(n.space,n.local)}}function Zi(n,t,r){var i,e;return function(){var u=this.getAttribute(n);return u===r?null:u===i?e:e=t(i=u,r)}}function Qi(n,t,r){var i,e;return function(){var u=this.getAttributeNS(n.space,n.local);return u===r?null:u===i?e:e=t(i=u,r)}}function Ki(n,t,r){var i,e,u;return function(){var o,a=r(this);if(null!=a)return(o=this.getAttribute(n))===a?null:o===i&&a===e?u:u=t(i=o,e=a);this.removeAttribute(n)}}function ne(n,t,r){var i,e,u;return function(){var o,a=r(this);if(null!=a)return(o=this.getAttributeNS(n.space,n.local))===a?null:o===i&&a===e?u:u=t(i=o,e=a);this.removeAttributeNS(n.space,n.local)}}function te(n,t){function r(){var r=this,i=t.apply(r,arguments);return i&&function(t){r.setAttributeNS(n.space,n.local,i(t))}}return r._value=t,r}function re(n,t){function r(){var r=this,i=t.apply(r,arguments);return i&&function(t){r.setAttribute(n,i(t))}}return r._value=t,r}function ie(n,t){return function(){Ii(this,n).delay=+t.apply(this,arguments)}}function ee(n,t){return t=+t,function(){Ii(this,n).delay=t}}function ue(n,t){return function(){Wi(this,n).duration=+t.apply(this,arguments)}}function oe(n,t){return t=+t,function(){Wi(this,n).duration=t}}function ae(n,t){if("function"!=typeof t)throw new Error;return function(){Wi(this,n).ease=t}}function fe(n,t,r){var i,e,u=function(n){return(n+"").trim().split(/^|\s+/).every((function(n){var t=n.indexOf(".");return t>=0&&(n=n.slice(0,t)),!n||"start"===n}))}(t)?Ii:Wi;return function(){var o=u(this,n),a=o.on;a!==i&&(e=(i=a).copy()).on(t,r),o.on=e}}var se=ct.prototype.constructor;function ce(n,t,r){function i(){var i=this,e=t.apply(i,arguments);return e&&function(t){i.style.setProperty(n,e(t),r)}}return i._value=t,i}var le=0;function he(n,t,r,i){this._groups=n,this._parents=t,this._name=r,this._id=i}function ve(n){return ct().transition(n)}function de(){return++le}var be=ct.prototype;function pe(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}function ye(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}he.prototype=ve.prototype={constructor:he,select:function(n){var t=this._name,r=this._id;"function"!=typeof n&&(n=un(n));for(var i=this._groups,e=i.length,u=new Array(e),o=0;o<e;++o)for(var a,f,s=i[o],c=s.length,l=u[o]=new Array(c),h=0;h<c;++h)(a=s[h])&&(f=n.call(a,a.__data__,h,s))&&("__data__"in a&&(f.__data__=a.__data__),l[h]=f,Hi(l[h],t,r,h,l,Ui(a,r)));return new he(u,this._parents,t,r)},selectAll:function(n){var t=this._name,r=this._id;"function"!=typeof n&&(n=an(n));for(var i=this._groups,e=i.length,u=[],o=[],a=0;a<e;++a)for(var f,s=i[a],c=s.length,l=0;l<c;++l)if(f=s[l]){for(var h,v=n.call(f,f.__data__,l,s),d=Ui(f,r),b=0,p=v.length;b<p;++b)(h=v[b])&&Hi(h,t,r,b,v,d);u.push(v),o.push(f)}return new he(u,o,t,r)},filter:function(n){"function"!=typeof n&&(n=ln(n));for(var t=this._groups,r=t.length,i=new Array(r),e=0;e<r;++e)for(var u,o=t[e],a=o.length,f=i[e]=[],s=0;s<a;++s)(u=o[s])&&n.call(u,u.__data__,s,o)&&f.push(u);return new he(i,this._parents,this._name,this._id)},merge:function(n){if(n._id!==this._id)throw new Error;for(var t=this._groups,r=n._groups,i=t.length,e=Math.min(i,r.length),u=new Array(i),o=0;o<e;++o)for(var a,f=t[o],s=r[o],c=f.length,l=u[o]=new Array(c),h=0;h<c;++h)(a=f[h]||s[h])&&(l[h]=a);for(;o<i;++o)u[o]=t[o];return new he(u,this._parents,this._name,this._id)},selection:function(){return new se(this._groups,this._parents)},transition:function(){for(var n=this._name,t=this._id,r=de(),i=this._groups,e=i.length,u=0;u<e;++u)for(var o,a=i[u],f=a.length,s=0;s<f;++s)if(o=a[s]){var c=Ui(o,t);Hi(o,n,r,s,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new he(i,this._parents,n,r)},call:be.call,nodes:be.nodes,node:be.node,size:be.size,empty:be.empty,each:be.each,on:function(n,t){var r=this._id;return arguments.length<2?Ui(this.node(),r).on.on(n):this.each(fe(r,n,t))},attr:function(n,t){var r=K(n),i="transform"===r?oi:Vi;return this.attrTween(n,"function"==typeof t?(r.local?ne:Ki)(r,i,Xi(this,"attr."+n,t)):null==t?(r.local?$i:Ji)(r):(r.local?Qi:Zi)(r,i,t+""))},attrTween:function(n,t){var r="attr."+n;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;var i=K(n);return this.tween(r,(i.local?te:re)(i,t))},style:function(n,t,r){var i="transform"==(n+="")?ui:Vi;return null==t?this.styleTween(n,function(n,t){var r,i,e;return function(){var u=Nn(this,n),o=(this.style.removeProperty(n),Nn(this,n));return u===o?null:u===r&&o===i?e:e=t(r=u,i=o)}}(n,i)).on("end.style."+n,function(n){return function(){this.style.removeProperty(n)}}(n)):this.styleTween(n,"function"==typeof t?function(n,t,r){var i,e,u;return function(){var o=Nn(this,n),a=r(this);return null==a&&(this.style.removeProperty(n),a=Nn(this,n)),o===a?null:o===i&&a===e?u:u=t(i=o,e=a)}}(n,i,Xi(this,"style."+n,t)):function(n,t,r){var i,e;return function(){var u=Nn(this,n);return u===r?null:u===i?e:e=t(i=u,r)}}(n,i,t+""),r)},styleTween:function(n,t,r){var i="style."+(n+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==t)return this.tween(i,null);if("function"!=typeof t)throw new Error;return this.tween(i,ce(n,t,null==r?"":r))},text:function(n){return this.tween("text","function"==typeof n?function(n){return function(){var t=n(this);this.textContent=null==t?"":t}}(Xi(this,"text",n)):function(n){return function(){this.textContent=n}}(null==n?"":n+""))},remove:function(){return this.on("end.remove",function(n){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==n)return;t&&t.removeChild(this)}}(this._id))},tween:function(n,t){var r=this._id;if(n+="",arguments.length<2){for(var i,e=Ui(this.node(),r).tween,u=0,o=e.length;u<o;++u)if((i=e[u]).name===n)return i.value;return null}return this.each((null==t?qi:Yi)(r,n,t))},delay:function(n){var t=this._id;return arguments.length?this.each(("function"==typeof n?ie:ee)(t,n)):Ui(this.node(),t).delay},duration:function(n){var t=this._id;return arguments.length?this.each(("function"==typeof n?ue:oe)(t,n)):Ui(this.node(),t).duration},ease:function(n){var t=this._id;return arguments.length?this.each(ae(t,n)):Ui(this.node(),t).ease}};var me=function n(t){function r(n){return Math.pow(n,t)}return t=+t,r.exponent=n,r}(3),ge=function n(t){function r(n){return 1-Math.pow(1-n,t)}return t=+t,r.exponent=n,r}(3),we=function n(t){function r(n){return((n*=2)<=1?Math.pow(n,t):2-Math.pow(2-n,t))/2}return t=+t,r.exponent=n,r}(3),Me=Math.PI,ke=Me/2;function ze(n){return(1-Math.cos(Me*n))/2}function _e(n){return((n*=2)<=1?Math.pow(2,10*n-10):2-Math.pow(2,10-10*n))/2}function xe(n){return((n*=2)<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}var Ae=7.5625;function Ne(n){return(n=+n)<.36363636363636365?Ae*n*n:n<.7272727272727273?Ae*(n-=.5454545454545454)*n+.75:n<.9090909090909091?Ae*(n-=.8181818181818182)*n+.9375:Ae*(n-=.9545454545454546)*n+.984375}var Se=1.70158,Ee=function n(t){function r(n){return n*n*((t+1)*n-t)}return t=+t,r.overshoot=n,r}(Se),Fe=function n(t){function r(n){return--n*n*((t+1)*n+t)+1}return t=+t,r.overshoot=n,r}(Se),Oe=function n(t){function r(n){return((n*=2)<1?n*n*((t+1)*n-t):(n-=2)*n*((t+1)*n+t)+2)/2}return t=+t,r.overshoot=n,r}(Se),Ce=2*Math.PI,Pe=function n(t,r){var i=Math.asin(1/(t=Math.max(1,t)))*(r/=Ce);function e(n){return t*Math.pow(2,10*--n)*Math.sin((i-n)/r)}return e.amplitude=function(t){return n(t,r*Ce)},e.period=function(r){return n(t,r)},e}(1,.3),Re=function n(t,r){var i=Math.asin(1/(t=Math.max(1,t)))*(r/=Ce);function e(n){return 1-t*Math.pow(2,-10*(n=+n))*Math.sin((n+i)/r)}return e.amplitude=function(t){return n(t,r*Ce)},e.period=function(r){return n(t,r)},e}(1,.3),Te=function n(t,r){var i=Math.asin(1/(t=Math.max(1,t)))*(r/=Ce);function e(n){return((n=2*n-1)<0?t*Math.pow(2,10*n)*Math.sin((i-n)/r):2-t*Math.pow(2,-10*n)*Math.sin((i+n)/r))/2}return e.amplitude=function(t){return n(t,r*Ce)},e.period=function(r){return n(t,r)},e}(1,.3),je={time:null,delay:0,duration:250,ease:ye};function De(n,t){for(var r;!(r=n.__transition)||!(r=r[t]);)if(!(n=n.parentNode))return je.time=Ei(),je;return r}ct.prototype.interrupt=function(n){return this.each((function(){Gi(this,n)}))},ct.prototype.transition=function(n){var t,r;n instanceof he?(t=n._id,n=n._name):(t=de(),(r=je).time=Ei(),n=null==n?null:n+"");for(var i=this._groups,e=i.length,u=0;u<e;++u)for(var o,a=i[u],f=a.length,s=0;s<f;++s)(o=a[s])&&Hi(o,n,t,s,a,r||De(o,t));return new he(i,this._parents,n,t)};var Le=[null];function Be(n){return function(){return n}}function He(n,t,r){this.target=n,this.type=t,this.selection=r}function Ie(){Qn.stopImmediatePropagation()}function We(){Qn.preventDefault(),Qn.stopImmediatePropagation()}var Ue={name:"drag"},Ge={name:"space"},qe={name:"handle"},Ye={name:"center"},Xe={name:"x",handles:["e","w"].map(tu),input:function(n,t){return n&&[[n[0],t[0][1]],[n[1],t[1][1]]]},output:function(n){return n&&[n[0][0],n[1][0]]}},Ve={name:"y",handles:["n","s"].map(tu),input:function(n,t){return n&&[[t[0][0],n[0]],[t[1][0],n[1]]]},output:function(n){return n&&[n[0][1],n[1][1]]}},Je={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(tu),input:function(n){return n},output:function(n){return n}},$e={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Ze={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Qe={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Ke={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},nu={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function tu(n){return{type:n}}function ru(){return!Qn.button}function iu(){var n=this.ownerSVGElement||this;return[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]}function eu(n){for(;!n.__brush;)if(!(n=n.parentNode))return;return n.__brush}function uu(n){return n[0][0]===n[1][0]||n[0][1]===n[1][1]}function ou(n){var t,r=iu,i=ru,e=Y(o,"start","brush","end"),u=6;function o(t){var r=t.property("__brush",l).selectAll(".overlay").data([tu("overlay")]);r.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",$e.overlay).merge(r).each((function(){var n=eu(this).extent;lt(this).attr("x",n[0][0]).attr("y",n[0][1]).attr("width",n[1][0]-n[0][0]).attr("height",n[1][1]-n[0][1])})),t.selectAll(".selection").data([tu("selection")]).enter().append("rect").attr("class","selection").attr("cursor",$e.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var i=t.selectAll(".handle").data(n.handles,(function(n){return n.type}));i.exit().remove(),i.enter().append("rect").attr("class",(function(n){return"handle handle--"+n.type})).attr("cursor",(function(n){return $e[n.type]})),t.each(a).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",c)}function a(){var n=lt(this),t=eu(this).selection;t?(n.selectAll(".selection").style("display",null).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1]),n.selectAll(".handle").style("display",null).attr("x",(function(n){return"e"===n.type[n.type.length-1]?t[1][0]-u/2:t[0][0]-u/2})).attr("y",(function(n){return"s"===n.type[0]?t[1][1]-u/2:t[0][1]-u/2})).attr("width",(function(n){return"n"===n.type||"s"===n.type?t[1][0]-t[0][0]+u:u})).attr("height",(function(n){return"e"===n.type||"w"===n.type?t[1][1]-t[0][1]+u:u}))):n.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function f(n,t){return n.__brush.emitter||new s(n,t)}function s(n,t){this.that=n,this.args=t,this.state=n.__brush,this.active=0}function c(){if(Qn.touches){if(Qn.changedTouches.length<Qn.touches.length)return We()}else if(t)return;if(i.apply(this,arguments)){var r,e,u,o,s,c,l,h,v,d,b,p,y,m=this,g=Qn.target.__data__.type,w="selection"===(Qn.metaKey?g="overlay":g)?Ue:Qn.altKey?Ye:qe,M=n===Ve?null:Ke[g],k=n===Xe?null:nu[g],z=eu(m),_=z.extent,x=z.selection,A=_[0][0],N=_[0][1],S=_[1][0],E=_[1][1],F=M&&k&&Qn.shiftKey,O=yt(m),C=O,P=f(m,arguments).beforestart();"overlay"===g?z.selection=x=[[r=n===Ve?A:O[0],u=n===Xe?N:O[1]],[s=n===Ve?S:r,l=n===Xe?E:u]]:(r=x[0][0],u=x[0][1],s=x[1][0],l=x[1][1]),e=r,o=u,c=s,h=l;var R=lt(m).attr("pointer-events","none"),T=R.selectAll(".overlay").attr("cursor",$e[g]);if(Qn.touches)R.on("touchmove.brush",D,!0).on("touchend.brush touchcancel.brush",B,!0);else{var j=lt(Qn.view).on("keydown.brush",H,!0).on("keyup.brush",I,!0).on("mousemove.brush",D,!0).on("mouseup.brush",B,!0);Mt(Qn.view)}Ie(),Gi(m),a.call(m),P.start()}function D(){var n=yt(m);!F||p||y||(Math.abs(n[0]-C[0])>Math.abs(n[1]-C[1])?y=!0:p=!0),C=n,b=!0,We(),L()}function L(){var n;switch(v=C[0]-O[0],d=C[1]-O[1],w){case Ge:case Ue:M&&(v=Math.max(A-r,Math.min(S-s,v)),e=r+v,c=s+v),k&&(d=Math.max(N-u,Math.min(E-l,d)),o=u+d,h=l+d);break;case qe:M<0?(v=Math.max(A-r,Math.min(S-r,v)),e=r+v,c=s):M>0&&(v=Math.max(A-s,Math.min(S-s,v)),e=r,c=s+v),k<0?(d=Math.max(N-u,Math.min(E-u,d)),o=u+d,h=l):k>0&&(d=Math.max(N-l,Math.min(E-l,d)),o=u,h=l+d);break;case Ye:M&&(e=Math.max(A,Math.min(S,r-v*M)),c=Math.max(A,Math.min(S,s+v*M))),k&&(o=Math.max(N,Math.min(E,u-d*k)),h=Math.max(N,Math.min(E,l+d*k)))}c<e&&(M*=-1,n=r,r=s,s=n,n=e,e=c,c=n,g in Ze&&T.attr("cursor",$e[g=Ze[g]])),h<o&&(k*=-1,n=u,u=l,l=n,n=o,o=h,h=n,g in Qe&&T.attr("cursor",$e[g=Qe[g]])),z.selection&&(x=z.selection),p&&(e=x[0][0],c=x[1][0]),y&&(o=x[0][1],h=x[1][1]),x[0][0]===e&&x[0][1]===o&&x[1][0]===c&&x[1][1]===h||(z.selection=[[e,o],[c,h]],a.call(m),P.brush())}function B(){if(Ie(),Qn.touches){if(Qn.touches.length)return;t&&clearTimeout(t),t=setTimeout((function(){t=null}),500),R.on("touchmove.brush touchend.brush touchcancel.brush",null)}else kt(Qn.view,b),j.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);R.attr("pointer-events","all"),T.attr("cursor",$e.overlay),z.selection&&(x=z.selection),uu(x)&&(z.selection=null,a.call(m)),P.end()}function H(){switch(Qn.keyCode){case 16:F=M&&k;break;case 18:w===qe&&(M&&(s=c-v*M,r=e+v*M),k&&(l=h-d*k,u=o+d*k),w=Ye,L());break;case 32:w!==qe&&w!==Ye||(M<0?s=c-v:M>0&&(r=e-v),k<0?l=h-d:k>0&&(u=o-d),w=Ge,T.attr("cursor",$e.selection),L());break;default:return}We()}function I(){switch(Qn.keyCode){case 16:F&&(p=y=F=!1,L());break;case 18:w===Ye&&(M<0?s=c:M>0&&(r=e),k<0?l=h:k>0&&(u=o),w=qe,L());break;case 32:w===Ge&&(Qn.altKey?(M&&(s=c-v*M,r=e+v*M),k&&(l=h-d*k,u=o+d*k),w=Ye):(M<0?s=c:M>0&&(r=e),k<0?l=h:k>0&&(u=o),w=qe),T.attr("cursor",$e[g]),L());break;default:return}We()}}function l(){var t=this.__brush||{selection:null};return t.extent=r.apply(this,arguments),t.dim=n,t}return o.move=function(t,r){t.selection?t.on("start.brush",(function(){f(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){f(this,arguments).end()})).tween("brush",(function(){var t=this,i=t.__brush,e=f(t,arguments),u=i.selection,o=n.input("function"==typeof r?r.apply(this,arguments):r,i.extent),s=Jr(u,o);function c(n){i.selection=1===n&&uu(o)?null:s(n),a.call(t),e.brush()}return u&&o?c:c(1)})):t.each((function(){var t=this,i=arguments,e=t.__brush,u=n.input("function"==typeof r?r.apply(t,i):r,e.extent),o=f(t,i).beforestart();Gi(t),e.selection=null==u||uu(u)?null:u,a.call(t),o.start().brush().end()}))},s.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(t){et(new He(o,t,n.output(this.state.selection)),e.apply,e,[t,this.that,this.args])}},o.extent=function(n){return arguments.length?(r="function"==typeof n?n:Be([[+n[0][0],+n[0][1]],[+n[1][0],+n[1][1]]]),o):r},o.filter=function(n){return arguments.length?(i="function"==typeof n?n:Be(!!n),o):i},o.handleSize=function(n){return arguments.length?(u=+n,o):u},o.on=function(){var n=e.on.apply(e,arguments);return n===e?o:n},o}var au=Math.cos,fu=Math.sin,su=Math.PI,cu=su/2,lu=2*su,hu=Math.max;function vu(n){return function(t,r){return n(t.source.value+t.target.value,r.source.value+r.target.value)}}var du=Array.prototype.slice;function bu(n){return function(){return n}}var pu=Math.PI,yu=2*pu,mu=1e-6,gu=yu-mu;function wu(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Mu(){return new wu}function ku(n){return n.source}function zu(n){return n.target}function _u(n){return n.radius}function xu(n){return n.startAngle}function Au(n){return n.endAngle}wu.prototype=Mu.prototype={constructor:wu,moveTo:function(n,t){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(n,t){this._+="L"+(this._x1=+n)+","+(this._y1=+t)},quadraticCurveTo:function(n,t,r,i){this._+="Q"+ +n+","+ +t+","+(this._x1=+r)+","+(this._y1=+i)},bezierCurveTo:function(n,t,r,i,e,u){this._+="C"+ +n+","+ +t+","+ +r+","+ +i+","+(this._x1=+e)+","+(this._y1=+u)},arcTo:function(n,t,r,i,e){var u=this._x1,o=this._y1,a=(r=+r)-(n=+n),f=(i=+i)-(t=+t),s=u-n,c=o-t,l=s*s+c*c;if((e=+e)<0)throw new Error("negative radius: "+e);if(null===this._x1)this._+="M"+(this._x1=n)+","+(this._y1=t);else if(l>mu)if(Math.abs(c*a-f*s)>mu&&e){var h=r-u,v=i-o,d=a*a+f*f,b=h*h+v*v,p=Math.sqrt(d),y=Math.sqrt(l),m=e*Math.tan((pu-Math.acos((d+l-b)/(2*p*y)))/2),g=m/y,w=m/p;Math.abs(g-1)>mu&&(this._+="L"+(n+g*s)+","+(t+g*c)),this._+="A"+e+","+e+",0,0,"+ +(c*h>s*v)+","+(this._x1=n+w*a)+","+(this._y1=t+w*f)}else this._+="L"+(this._x1=n)+","+(this._y1=t)},arc:function(n,t,r,i,e,u){n=+n,t=+t;var o=(r=+r)*Math.cos(i),a=r*Math.sin(i),f=n+o,s=t+a,c=1^u,l=u?i-e:e-i;if(r<0)throw new Error("negative radius: "+r);null===this._x1?this._+="M"+f+","+s:(Math.abs(this._x1-f)>mu||Math.abs(this._y1-s)>mu)&&(this._+="L"+f+","+s),r&&(l<0&&(l=l%yu+yu),l>gu?this._+="A"+r+","+r+",0,1,"+c+","+(n-o)+","+(t-a)+"A"+r+","+r+",0,1,"+c+","+(this._x1=f)+","+(this._y1=s):l>mu&&(this._+="A"+r+","+r+",0,"+ +(l>=pu)+","+c+","+(this._x1=n+r*Math.cos(e))+","+(this._y1=t+r*Math.sin(e))))},rect:function(n,t,r,i){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +i+"h"+-r+"Z"},toString:function(){return this._}};var Nu="$";function Su(){}function Eu(n,t){var r=new Su;if(n instanceof Su)n.each((function(n,t){r.set(t,n)}));else if(Array.isArray(n)){var i,e=-1,u=n.length;if(null==t)for(;++e<u;)r.set(e,n[e]);else for(;++e<u;)r.set(t(i=n[e],e,n),i)}else if(n)for(var o in n)r.set(o,n[o]);return r}function Fu(){return{}}function Ou(n,t,r){n[t]=r}function Cu(){return Eu()}function Pu(n,t,r){n.set(t,r)}function Ru(){}Su.prototype=Eu.prototype={constructor:Su,has:function(n){return Nu+n in this},get:function(n){return this[Nu+n]},set:function(n,t){return this[Nu+n]=t,this},remove:function(n){var t=Nu+n;return t in this&&delete this[t]},clear:function(){for(var n in this)n[0]===Nu&&delete this[n]},keys:function(){var n=[];for(var t in this)t[0]===Nu&&n.push(t.slice(1));return n},values:function(){var n=[];for(var t in this)t[0]===Nu&&n.push(this[t]);return n},entries:function(){var n=[];for(var t in this)t[0]===Nu&&n.push({key:t.slice(1),value:this[t]});return n},size:function(){var n=0;for(var t in this)t[0]===Nu&&++n;return n},empty:function(){for(var n in this)if(n[0]===Nu)return!1;return!0},each:function(n){for(var t in this)t[0]===Nu&&n(this[t],t.slice(1),this)}};var Tu=Eu.prototype;function ju(n,t){var r=new Ru;if(n instanceof Ru)n.each((function(n){r.add(n)}));else if(n){var i=-1,e=n.length;if(null==t)for(;++i<e;)r.add(n[i]);else for(;++i<e;)r.add(t(n[i],i,n))}return r}Ru.prototype=ju.prototype={constructor:Ru,has:Tu.has,add:function(n){return this[Nu+(n+="")]=n,this},remove:Tu.remove,clear:Tu.clear,values:Tu.keys,size:Tu.size,empty:Tu.empty,each:Tu.each};var Du={},Lu={};function Bu(n){return new Function("d","return {"+n.map((function(n,t){return JSON.stringify(n)+": d["+t+"]"})).join(",")+"}")}function Hu(n){var t=new RegExp('["'+n+"\n\r]"),r=n.charCodeAt(0);function i(n,t){var i,e=[],u=n.length,o=0,a=0,f=u<=0,s=!1;function c(){if(f)return Lu;if(s)return s=!1,Du;var t,i,e=o;if(34===n.charCodeAt(e)){for(;o++<u&&34!==n.charCodeAt(o)||34===n.charCodeAt(++o););return(t=o)>=u?f=!0:10===(i=n.charCodeAt(o++))?s=!0:13===i&&(s=!0,10===n.charCodeAt(o)&&++o),n.slice(e+1,t-1).replace(/""/g,'"')}for(;o<u;){if(10===(i=n.charCodeAt(t=o++)))s=!0;else if(13===i)s=!0,10===n.charCodeAt(o)&&++o;else if(i!==r)continue;return n.slice(e,t)}return f=!0,n.slice(e,u)}for(10===n.charCodeAt(u-1)&&--u,13===n.charCodeAt(u-1)&&--u;(i=c())!==Lu;){for(var l=[];i!==Du&&i!==Lu;)l.push(i),i=c();t&&null==(l=t(l,a++))||e.push(l)}return e}function e(t){return t.map(u).join(n)}function u(n){return null==n?"":t.test(n+="")?'"'+n.replace(/"/g,'""')+'"':n}return{parse:function(n,t){var r,e,u=i(n,(function(n,i){if(r)return r(n,i-1);e=n,r=t?function(n,t){var r=Bu(n);return function(i,e){return t(r(i),e,n)}}(n,t):Bu(n)}));return u.columns=e||[],u},parseRows:i,format:function(t,r){return null==r&&(r=function(n){var t=Object.create(null),r=[];return n.forEach((function(n){for(var i in n)i in t||r.push(t[i]=i)})),r}(t)),[r.map(u).join(n)].concat(t.map((function(t){return r.map((function(n){return u(t[n])})).join(n)}))).join("\n")},formatRows:function(n){return n.map(e).join("\n")}}}var Iu=Hu(","),Wu=Iu.parse,Uu=Iu.parseRows,Gu=Iu.format,qu=Iu.formatRows,Yu=Hu("\t"),Xu=Yu.parse,Vu=Yu.parseRows,Ju=Yu.format,$u=Yu.formatRows;function Zu(n){return function(){return n}}function Qu(){return 1e-6*(Math.random()-.5)}function Ku(n,t,r,i){if(isNaN(t)||isNaN(r))return n;var e,u,o,a,f,s,c,l,h,v=n._root,d={data:i},b=n._x0,p=n._y0,y=n._x1,m=n._y1;if(!v)return n._root=d,n;for(;v.length;)if((s=t>=(u=(b+y)/2))?b=u:y=u,(c=r>=(o=(p+m)/2))?p=o:m=o,e=v,!(v=v[l=c<<1|s]))return e[l]=d,n;if(a=+n._x.call(null,v.data),f=+n._y.call(null,v.data),t===a&&r===f)return d.next=v,e?e[l]=d:n._root=d,n;do{e=e?e[l]=new Array(4):n._root=new Array(4),(s=t>=(u=(b+y)/2))?b=u:y=u,(c=r>=(o=(p+m)/2))?p=o:m=o}while((l=c<<1|s)==(h=(f>=o)<<1|a>=u));return e[h]=v,e[l]=d,n}function no(n,t,r,i,e){this.node=n,this.x0=t,this.y0=r,this.x1=i,this.y1=e}function to(n){return n[0]}function ro(n){return n[1]}function io(n,t,r){var i=new eo(null==t?to:t,null==r?ro:r,NaN,NaN,NaN,NaN);return null==n?i:i.addAll(n)}function eo(n,t,r,i,e,u){this._x=n,this._y=t,this._x0=r,this._y0=i,this._x1=e,this._y1=u,this._root=void 0}function uo(n){for(var t={data:n.data},r=t;n=n.next;)r=r.next={data:n.data};return t}var oo=io.prototype=eo.prototype;function ao(n){return n.x+n.vx}function fo(n){return n.y+n.vy}function so(n){return n.index}function co(n,t){var r=n.get(t);if(!r)throw new Error("missing: "+t);return r}function lo(n){return n.x}function ho(n){return n.y}oo.copy=function(){var n,t,r=new eo(this._x,this._y,this._x0,this._y0,this._x1,this._y1),i=this._root;if(!i)return r;if(!i.length)return r._root=uo(i),r;for(n=[{source:i,target:r._root=new Array(4)}];i=n.pop();)for(var e=0;e<4;++e)(t=i.source[e])&&(t.length?n.push({source:t,target:i.target[e]=new Array(4)}):i.target[e]=uo(t));return r},oo.add=function(n){var t=+this._x.call(null,n),r=+this._y.call(null,n);return Ku(this.cover(t,r),t,r,n)},oo.addAll=function(n){var t,r,i,e,u=n.length,o=new Array(u),a=new Array(u),f=1/0,s=1/0,c=-1/0,l=-1/0;for(r=0;r<u;++r)isNaN(i=+this._x.call(null,t=n[r]))||isNaN(e=+this._y.call(null,t))||(o[r]=i,a[r]=e,i<f&&(f=i),i>c&&(c=i),e<s&&(s=e),e>l&&(l=e));for(c<f&&(f=this._x0,c=this._x1),l<s&&(s=this._y0,l=this._y1),this.cover(f,s).cover(c,l),r=0;r<u;++r)Ku(this,o[r],a[r],n[r]);return this},oo.cover=function(n,t){if(isNaN(n=+n)||isNaN(t=+t))return this;var r=this._x0,i=this._y0,e=this._x1,u=this._y1;if(isNaN(r))e=(r=Math.floor(n))+1,u=(i=Math.floor(t))+1;else{if(!(r>n||n>e||i>t||t>u))return this;var o,a,f=e-r,s=this._root;switch(a=(t<(i+u)/2)<<1|n<(r+e)/2){case 0:do{(o=new Array(4))[a]=s,s=o}while(u=i+(f*=2),n>(e=r+f)||t>u);break;case 1:do{(o=new Array(4))[a]=s,s=o}while(u=i+(f*=2),(r=e-f)>n||t>u);break;case 2:do{(o=new Array(4))[a]=s,s=o}while(i=u-(f*=2),n>(e=r+f)||i>t);break;case 3:do{(o=new Array(4))[a]=s,s=o}while(i=u-(f*=2),(r=e-f)>n||i>t)}this._root&&this._root.length&&(this._root=s)}return this._x0=r,this._y0=i,this._x1=e,this._y1=u,this},oo.data=function(){var n=[];return this.visit((function(t){if(!t.length)do{n.push(t.data)}while(t=t.next)})),n},oo.extent=function(n){return arguments.length?this.cover(+n[0][0],+n[0][1]).cover(+n[1][0],+n[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},oo.find=function(n,t,r){var i,e,u,o,a,f,s,c=this._x0,l=this._y0,h=this._x1,v=this._y1,d=[],b=this._root;for(b&&d.push(new no(b,c,l,h,v)),null==r?r=1/0:(c=n-r,l=t-r,h=n+r,v=t+r,r*=r);f=d.pop();)if(!(!(b=f.node)||(e=f.x0)>h||(u=f.y0)>v||(o=f.x1)<c||(a=f.y1)<l))if(b.length){var p=(e+o)/2,y=(u+a)/2;d.push(new no(b[3],p,y,o,a),new no(b[2],e,y,p,a),new no(b[1],p,u,o,y),new no(b[0],e,u,p,y)),(s=(t>=y)<<1|n>=p)&&(f=d[d.length-1],d[d.length-1]=d[d.length-1-s],d[d.length-1-s]=f)}else{var m=n-+this._x.call(null,b.data),g=t-+this._y.call(null,b.data),w=m*m+g*g;if(w<r){var M=Math.sqrt(r=w);c=n-M,l=t-M,h=n+M,v=t+M,i=b.data}}return i},oo.remove=function(n){if(isNaN(u=+this._x.call(null,n))||isNaN(o=+this._y.call(null,n)))return this;var t,r,i,e,u,o,a,f,s,c,l,h,v=this._root,d=this._x0,b=this._y0,p=this._x1,y=this._y1;if(!v)return this;if(v.length)for(;;){if((s=u>=(a=(d+p)/2))?d=a:p=a,(c=o>=(f=(b+y)/2))?b=f:y=f,t=v,!(v=v[l=c<<1|s]))return this;if(!v.length)break;(t[l+1&3]||t[l+2&3]||t[l+3&3])&&(r=t,h=l)}for(;v.data!==n;)if(i=v,!(v=v.next))return this;return(e=v.next)&&delete v.next,i?(e?i.next=e:delete i.next,this):t?(e?t[l]=e:delete t[l],(v=t[0]||t[1]||t[2]||t[3])&&v===(t[3]||t[2]||t[1]||t[0])&&!v.length&&(r?r[h]=v:this._root=v),this):(this._root=e,this)},oo.removeAll=function(n){for(var t=0,r=n.length;t<r;++t)this.remove(n[t]);return this},oo.root=function(){return this._root},oo.size=function(){var n=0;return this.visit((function(t){if(!t.length)do{++n}while(t=t.next)})),n},oo.visit=function(n){var t,r,i,e,u,o,a=[],f=this._root;for(f&&a.push(new no(f,this._x0,this._y0,this._x1,this._y1));t=a.pop();)if(!n(f=t.node,i=t.x0,e=t.y0,u=t.x1,o=t.y1)&&f.length){var s=(i+u)/2,c=(e+o)/2;(r=f[3])&&a.push(new no(r,s,c,u,o)),(r=f[2])&&a.push(new no(r,i,c,s,o)),(r=f[1])&&a.push(new no(r,s,e,u,c)),(r=f[0])&&a.push(new no(r,i,e,s,c))}return this},oo.visitAfter=function(n){var t,r=[],i=[];for(this._root&&r.push(new no(this._root,this._x0,this._y0,this._x1,this._y1));t=r.pop();){var e=t.node;if(e.length){var u,o=t.x0,a=t.y0,f=t.x1,s=t.y1,c=(o+f)/2,l=(a+s)/2;(u=e[0])&&r.push(new no(u,o,a,c,l)),(u=e[1])&&r.push(new no(u,c,a,f,l)),(u=e[2])&&r.push(new no(u,o,l,c,s)),(u=e[3])&&r.push(new no(u,c,l,f,s))}i.push(t)}for(;t=i.pop();)n(t.node,t.x0,t.y0,t.x1,t.y1);return this},oo.x=function(n){return arguments.length?(this._x=n,this):this._x},oo.y=function(n){return arguments.length?(this._y=n,this):this._y};var vo,bo=Math.PI*(3-Math.sqrt(5));function po(n,t){if((r=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var r,i=n.slice(0,r);return[i.length>1?i[0]+i.slice(2):i,+n.slice(r+1)]}function yo(n){return(n=po(Math.abs(n)))?n[1]:NaN}function mo(n,t){var r=po(n,t);if(!r)return n+"";var i=r[0],e=r[1];return e<0?"0."+new Array(-e).join("0")+i:i.length>e+1?i.slice(0,e+1)+"."+i.slice(e+1):i+new Array(e-i.length+2).join("0")}const go={"":function(n,t){n:for(var r,i=(n=n.toPrecision(t)).length,e=1,u=-1;e<i;++e)switch(n[e]){case".":u=r=e;break;case"0":0===u&&(u=e),r=e;break;case"e":break n;default:u>0&&(u=0)}return u>0?n.slice(0,u)+n.slice(r+1):n},"%":function(n,t){return(100*n).toFixed(t)},b:function(n){return Math.round(n).toString(2)},c:function(n){return n+""},d:function(n){return Math.round(n).toString(10)},e:function(n,t){return n.toExponential(t)},f:function(n,t){return n.toFixed(t)},g:function(n,t){return n.toPrecision(t)},o:function(n){return Math.round(n).toString(8)},p:function(n,t){return mo(100*n,t)},r:mo,s:function(n,t){var r=po(n,t);if(!r)return n+"";var i=r[0],e=r[1],u=e-(vo=3*Math.max(-8,Math.min(8,Math.floor(e/3))))+1,o=i.length;return u===o?i:u>o?i+new Array(u-o+1).join("0"):u>0?i.slice(0,u)+"."+i.slice(u):"0."+new Array(1-u).join("0")+po(n,Math.max(0,t+u-1))[0]},X:function(n){return Math.round(n).toString(16).toUpperCase()},x:function(n){return Math.round(n).toString(16)}};var wo=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function Mo(n){return new ko(n)}function ko(n){if(!(t=wo.exec(n)))throw new Error("invalid format: "+n);var t,r=t[1]||" ",i=t[2]||">",e=t[3]||"-",u=t[4]||"",o=!!t[5],a=t[6]&&+t[6],f=!!t[7],s=t[8]&&+t[8].slice(1),c=t[9]||"";"n"===c?(f=!0,c="g"):go[c]||(c=""),(o||"0"===r&&"="===i)&&(o=!0,r="0",i="="),this.fill=r,this.align=i,this.sign=e,this.symbol=u,this.zero=o,this.width=a,this.comma=f,this.precision=s,this.type=c}function zo(n){return n}Mo.prototype=ko.prototype,ko.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var _o,xo,Ao,No=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function So(n){var t,r,i=n.grouping&&n.thousands?(t=n.grouping,r=n.thousands,function(n,i){for(var e=n.length,u=[],o=0,a=t[0],f=0;e>0&&a>0&&(f+a+1>i&&(a=Math.max(1,i-f)),u.push(n.substring(e-=a,e+a)),!((f+=a+1)>i));)a=t[o=(o+1)%t.length];return u.reverse().join(r)}):zo,e=n.currency,u=n.decimal,o=n.numerals?function(n){return function(t){return t.replace(/[0-9]/g,(function(t){return n[+t]}))}}(n.numerals):zo,a=n.percent||"%";function f(n){var t=(n=Mo(n)).fill,r=n.align,f=n.sign,s=n.symbol,c=n.zero,l=n.width,h=n.comma,v=n.precision,d=n.type,b="$"===s?e[0]:"#"===s&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",p="$"===s?e[1]:/[%p]/.test(d)?a:"",y=go[d],m=!d||/[defgprs%]/.test(d);function g(n){var e,a,s,g=b,w=p;if("c"===d)w=y(n)+w,n="";else{var M=(n=+n)<0;if(n=y(Math.abs(n),v),M&&0==+n&&(M=!1),g=(M?"("===f?f:"-":"-"===f||"("===f?"":f)+g,w=("s"===d?No[8+vo/3]:"")+w+(M&&"("===f?")":""),m)for(e=-1,a=n.length;++e<a;)if(48>(s=n.charCodeAt(e))||s>57){w=(46===s?u+n.slice(e+1):n.slice(e))+w,n=n.slice(0,e);break}}h&&!c&&(n=i(n,1/0));var k=g.length+n.length+w.length,z=k<l?new Array(l-k+1).join(t):"";switch(h&&c&&(n=i(z+n,z.length?l-w.length:1/0),z=""),r){case"<":n=g+n+w+z;break;case"=":n=g+z+n+w;break;case"^":n=z.slice(0,k=z.length>>1)+g+n+w+z.slice(k);break;default:n=z+g+n+w}return o(n)}return v=null==v?d?6:12:/[gprs]/.test(d)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),g.toString=function(){return n+""},g}return{format:f,formatPrefix:function(n,t){var r=f(((n=Mo(n)).type="f",n)),i=3*Math.max(-8,Math.min(8,Math.floor(yo(t)/3))),e=Math.pow(10,-i),u=No[8+i/3];return function(n){return r(e*n)+u}}}}function Eo(n){return _o=So(n),xo=_o.format,Ao=_o.formatPrefix,_o}function Fo(n){return Math.max(0,-yo(Math.abs(n)))}function Oo(n,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(yo(t)/3)))-yo(Math.abs(n)))}function Co(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,yo(t)-yo(n))+1}function Po(){return new Ro}function Ro(){this.reset()}Eo({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),Ro.prototype={constructor:Ro,reset:function(){this.s=this.t=0},add:function(n){jo(To,n,this.t),jo(this,To.s,this.s),this.s?this.t+=To.t:this.s=To.t},valueOf:function(){return this.s}};var To=new Ro;function jo(n,t,r){var i=n.s=t+r,e=i-t;n.t=t-(i-e)+(r-e)}var Do=1e-6,Lo=Math.PI,Bo=Lo/2,Ho=Lo/4,Io=2*Lo,Wo=180/Lo,Uo=Lo/180,Go=Math.abs,qo=Math.atan,Yo=Math.atan2,Xo=Math.cos,Vo=Math.ceil,Jo=Math.exp,$o=Math.log,Zo=Math.pow,Qo=Math.sin,Ko=Math.sign||function(n){return n>0?1:n<0?-1:0},na=Math.sqrt,ta=Math.tan;function ra(n){return n>1?0:n<-1?Lo:Math.acos(n)}function ia(n){return n>1?Bo:n<-1?-Bo:Math.asin(n)}function ea(n){return(n=Qo(n/2))*n}function ua(){}function oa(n,t){n&&fa.hasOwnProperty(n.type)&&fa[n.type](n,t)}var aa={Feature:function(n,t){oa(n.geometry,t)},FeatureCollection:function(n,t){for(var r=n.features,i=-1,e=r.length;++i<e;)oa(r[i].geometry,t)}},fa={Sphere:function(n,t){t.sphere()},Point:function(n,t){t.point((n=n.coordinates)[0],n[1],n[2])},MultiPoint:function(n,t){for(var r=n.coordinates,i=-1,e=r.length;++i<e;)t.point((n=r[i])[0],n[1],n[2])},LineString:function(n,t){sa(n.coordinates,t,0)},MultiLineString:function(n,t){for(var r=n.coordinates,i=-1,e=r.length;++i<e;)sa(r[i],t,0)},Polygon:function(n,t){ca(n.coordinates,t)},MultiPolygon:function(n,t){for(var r=n.coordinates,i=-1,e=r.length;++i<e;)ca(r[i],t)},GeometryCollection:function(n,t){for(var r=n.geometries,i=-1,e=r.length;++i<e;)oa(r[i],t)}};function sa(n,t,r){var i,e=-1,u=n.length-r;for(t.lineStart();++e<u;)t.point((i=n[e])[0],i[1],i[2]);t.lineEnd()}function ca(n,t){var r=-1,i=n.length;for(t.polygonStart();++r<i;)sa(n[r],t,1);t.polygonEnd()}function la(n,t){n&&aa.hasOwnProperty(n.type)?aa[n.type](n,t):oa(n,t)}var ha,va,da,ba,pa,ya=Po(),ma=Po(),ga={point:ua,lineStart:ua,lineEnd:ua,polygonStart:function(){ya.reset(),ga.lineStart=wa,ga.lineEnd=Ma},polygonEnd:function(){var n=+ya;ma.add(n<0?Io+n:n),this.lineStart=this.lineEnd=this.point=ua},sphere:function(){ma.add(Io)}};function wa(){ga.point=ka}function Ma(){za(ha,va)}function ka(n,t){ga.point=za,ha=n,va=t,da=n*=Uo,ba=Xo(t=(t*=Uo)/2+Ho),pa=Qo(t)}function za(n,t){var r=(n*=Uo)-da,i=r>=0?1:-1,e=i*r,u=Xo(t=(t*=Uo)/2+Ho),o=Qo(t),a=pa*o,f=ba*u+a*Xo(e),s=a*i*Qo(e);ya.add(Yo(s,f)),da=n,ba=u,pa=o}function _a(n){return[Yo(n[1],n[0]),ia(n[2])]}function xa(n){var t=n[0],r=n[1],i=Xo(r);return[i*Xo(t),i*Qo(t),Qo(r)]}function Aa(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]}function Na(n,t){return[n[1]*t[2]-n[2]*t[1],n[2]*t[0]-n[0]*t[2],n[0]*t[1]-n[1]*t[0]]}function Sa(n,t){n[0]+=t[0],n[1]+=t[1],n[2]+=t[2]}function Ea(n,t){return[n[0]*t,n[1]*t,n[2]*t]}function Fa(n){var t=na(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=t,n[1]/=t,n[2]/=t}var Oa,Ca,Pa,Ra,Ta,ja,Da,La,Ba,Ha,Ia,Wa,Ua,Ga,qa,Ya,Xa,Va,Ja,$a,Za,Qa,Ka,nf,tf,rf,ef=Po(),uf={point:of,lineStart:ff,lineEnd:sf,polygonStart:function(){uf.point=cf,uf.lineStart=lf,uf.lineEnd=hf,ef.reset(),ga.polygonStart()},polygonEnd:function(){ga.polygonEnd(),uf.point=of,uf.lineStart=ff,uf.lineEnd=sf,ya<0?(Oa=-(Pa=180),Ca=-(Ra=90)):ef>Do?Ra=90:ef<-1e-6&&(Ca=-90),Ha[0]=Oa,Ha[1]=Pa}};function of(n,t){Ba.push(Ha=[Oa=n,Pa=n]),t<Ca&&(Ca=t),t>Ra&&(Ra=t)}function af(n,t){var r=xa([n*Uo,t*Uo]);if(La){var i=Na(La,r),e=Na([i[1],-i[0],0],i);Fa(e),e=_a(e);var u,o=n-Ta,a=o>0?1:-1,f=e[0]*Wo*a,s=Go(o)>180;s^(a*Ta<f&&f<a*n)?(u=e[1]*Wo)>Ra&&(Ra=u):s^(a*Ta<(f=(f+360)%360-180)&&f<a*n)?(u=-e[1]*Wo)<Ca&&(Ca=u):(t<Ca&&(Ca=t),t>Ra&&(Ra=t)),s?n<Ta?vf(Oa,n)>vf(Oa,Pa)&&(Pa=n):vf(n,Pa)>vf(Oa,Pa)&&(Oa=n):Pa>=Oa?(n<Oa&&(Oa=n),n>Pa&&(Pa=n)):n>Ta?vf(Oa,n)>vf(Oa,Pa)&&(Pa=n):vf(n,Pa)>vf(Oa,Pa)&&(Oa=n)}else Ba.push(Ha=[Oa=n,Pa=n]);t<Ca&&(Ca=t),t>Ra&&(Ra=t),La=r,Ta=n}function ff(){uf.point=af}function sf(){Ha[0]=Oa,Ha[1]=Pa,uf.point=of,La=null}function cf(n,t){if(La){var r=n-Ta;ef.add(Go(r)>180?r+(r>0?360:-360):r)}else ja=n,Da=t;ga.point(n,t),af(n,t)}function lf(){ga.lineStart()}function hf(){cf(ja,Da),ga.lineEnd(),Go(ef)>Do&&(Oa=-(Pa=180)),Ha[0]=Oa,Ha[1]=Pa,La=null}function vf(n,t){return(t-=n)<0?t+360:t}function df(n,t){return n[0]-t[0]}function bf(n,t){return n[0]<=n[1]?n[0]<=t&&t<=n[1]:t<n[0]||n[1]<t}var pf={sphere:ua,point:yf,lineStart:gf,lineEnd:kf,polygonStart:function(){pf.lineStart=zf,pf.lineEnd=_f},polygonEnd:function(){pf.lineStart=gf,pf.lineEnd=kf}};function yf(n,t){n*=Uo;var r=Xo(t*=Uo);mf(r*Xo(n),r*Qo(n),Qo(t))}function mf(n,t,r){++Ia,Ua+=(n-Ua)/Ia,Ga+=(t-Ga)/Ia,qa+=(r-qa)/Ia}function gf(){pf.point=wf}function wf(n,t){n*=Uo;var r=Xo(t*=Uo);nf=r*Xo(n),tf=r*Qo(n),rf=Qo(t),pf.point=Mf,mf(nf,tf,rf)}function Mf(n,t){n*=Uo;var r=Xo(t*=Uo),i=r*Xo(n),e=r*Qo(n),u=Qo(t),o=Yo(na((o=tf*u-rf*e)*o+(o=rf*i-nf*u)*o+(o=nf*e-tf*i)*o),nf*i+tf*e+rf*u);Wa+=o,Ya+=o*(nf+(nf=i)),Xa+=o*(tf+(tf=e)),Va+=o*(rf+(rf=u)),mf(nf,tf,rf)}function kf(){pf.point=yf}function zf(){pf.point=xf}function _f(){Af(Qa,Ka),pf.point=yf}function xf(n,t){Qa=n,Ka=t,n*=Uo,t*=Uo,pf.point=Af;var r=Xo(t);nf=r*Xo(n),tf=r*Qo(n),rf=Qo(t),mf(nf,tf,rf)}function Af(n,t){n*=Uo;var r=Xo(t*=Uo),i=r*Xo(n),e=r*Qo(n),u=Qo(t),o=tf*u-rf*e,a=rf*i-nf*u,f=nf*e-tf*i,s=na(o*o+a*a+f*f),c=ia(s),l=s&&-c/s;Ja+=l*o,$a+=l*a,Za+=l*f,Wa+=c,Ya+=c*(nf+(nf=i)),Xa+=c*(tf+(tf=e)),Va+=c*(rf+(rf=u)),mf(nf,tf,rf)}function Nf(n){return function(){return n}}function Sf(n,t){function r(r,i){return r=n(r,i),t(r[0],r[1])}return n.invert&&t.invert&&(r.invert=function(r,i){return(r=t.invert(r,i))&&n.invert(r[0],r[1])}),r}function Ef(n,t){return[n>Lo?n-Io:n<-Lo?n+Io:n,t]}function Ff(n,t,r){return(n%=Io)?t||r?Sf(Cf(n),Pf(t,r)):Cf(n):t||r?Pf(t,r):Ef}function Of(n){return function(t,r){return[(t+=n)>Lo?t-Io:t<-Lo?t+Io:t,r]}}function Cf(n){var t=Of(n);return t.invert=Of(-n),t}function Pf(n,t){var r=Xo(n),i=Qo(n),e=Xo(t),u=Qo(t);function o(n,t){var o=Xo(t),a=Xo(n)*o,f=Qo(n)*o,s=Qo(t),c=s*r+a*i;return[Yo(f*e-c*u,a*r-s*i),ia(c*e+f*u)]}return o.invert=function(n,t){var o=Xo(t),a=Xo(n)*o,f=Qo(n)*o,s=Qo(t),c=s*e-f*u;return[Yo(f*e+s*u,a*r+c*i),ia(c*r-a*i)]},o}function Rf(n){function t(t){return(t=n(t[0]*Uo,t[1]*Uo))[0]*=Wo,t[1]*=Wo,t}return n=Ff(n[0]*Uo,n[1]*Uo,n.length>2?n[2]*Uo:0),t.invert=function(t){return(t=n.invert(t[0]*Uo,t[1]*Uo))[0]*=Wo,t[1]*=Wo,t},t}function Tf(n,t,r,i,e,u){if(r){var o=Xo(t),a=Qo(t),f=i*r;null==e?(e=t+i*Io,u=t-f/2):(e=jf(o,e),u=jf(o,u),(i>0?e<u:e>u)&&(e+=i*Io));for(var s,c=e;i>0?c>u:c<u;c-=f)s=_a([o,-a*Xo(c),-a*Qo(c)]),n.point(s[0],s[1])}}function jf(n,t){(t=xa(t))[0]-=n,Fa(t);var r=ra(-t[1]);return((-t[2]<0?-r:r)+Io-Do)%Io}function Df(){var n,t=[];return{point:function(t,r){n.push([t,r])},lineStart:function(){t.push(n=[])},lineEnd:ua,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var r=t;return t=[],n=null,r}}}function Lf(n,t){return Go(n[0]-t[0])<Do&&Go(n[1]-t[1])<Do}function Bf(n,t,r,i){this.x=n,this.z=t,this.o=r,this.e=i,this.v=!1,this.n=this.p=null}function Hf(n,t,r,i,e){var u,o,a=[],f=[];if(n.forEach((function(n){if(!((t=n.length-1)<=0)){var t,r,i=n[0],o=n[t];if(Lf(i,o)){for(e.lineStart(),u=0;u<t;++u)e.point((i=n[u])[0],i[1]);e.lineEnd()}else a.push(r=new Bf(i,n,null,!0)),f.push(r.o=new Bf(i,null,r,!1)),a.push(r=new Bf(o,n,null,!1)),f.push(r.o=new Bf(o,null,r,!0))}})),a.length){for(f.sort(t),If(a),If(f),u=0,o=f.length;u<o;++u)f[u].e=r=!r;for(var s,c,l=a[0];;){for(var h=l,v=!0;h.v;)if((h=h.n)===l)return;s=h.z,e.lineStart();do{if(h.v=h.o.v=!0,h.e){if(v)for(u=0,o=s.length;u<o;++u)e.point((c=s[u])[0],c[1]);else i(h.x,h.n.x,1,e);h=h.n}else{if(v)for(u=(s=h.p.z).length-1;u>=0;--u)e.point((c=s[u])[0],c[1]);else i(h.x,h.p.x,-1,e);h=h.p}s=(h=h.o).z,v=!v}while(!h.v);e.lineEnd()}}}function If(n){if(t=n.length){for(var t,r,i=0,e=n[0];++i<t;)e.n=r=n[i],r.p=e,e=r;e.n=r=n[0],r.p=e}}Ef.invert=Ef;var Wf=Po();function Uf(n,t){var r=t[0],i=t[1],e=[Qo(r),-Xo(r),0],u=0,o=0;Wf.reset();for(var a=0,f=n.length;a<f;++a)if(c=(s=n[a]).length)for(var s,c,l=s[c-1],h=l[0],v=l[1]/2+Ho,d=Qo(v),b=Xo(v),p=0;p<c;++p,h=m,d=w,b=M,l=y){var y=s[p],m=y[0],g=y[1]/2+Ho,w=Qo(g),M=Xo(g),k=m-h,z=k>=0?1:-1,_=z*k,x=_>Lo,A=d*w;if(Wf.add(Yo(A*z*Qo(_),b*M+A*Xo(_))),u+=x?k+z*Io:k,x^h>=r^m>=r){var N=Na(xa(l),xa(y));Fa(N);var S=Na(e,N);Fa(S);var E=(x^k>=0?-1:1)*ia(S[2]);(i>E||i===E&&(N[0]||N[1]))&&(o+=x^k>=0?1:-1)}}return(u<-1e-6||u<Do&&Wf<-1e-6)^1&o}function Gf(n,t,r,i){return function(e){var u,o,a,f=t(e),s=Df(),c=t(s),l=!1,h={point:v,lineStart:b,lineEnd:p,polygonStart:function(){h.point=y,h.lineStart=m,h.lineEnd=g,o=[],u=[]},polygonEnd:function(){h.point=v,h.lineStart=b,h.lineEnd=p,o=C(o);var n=Uf(u,i);o.length?(l||(e.polygonStart(),l=!0),Hf(o,Yf,n,r,e)):n&&(l||(e.polygonStart(),l=!0),e.lineStart(),r(null,null,1,e),e.lineEnd()),l&&(e.polygonEnd(),l=!1),o=u=null},sphere:function(){e.polygonStart(),e.lineStart(),r(null,null,1,e),e.lineEnd(),e.polygonEnd()}};function v(t,r){n(t,r)&&e.point(t,r)}function d(n,t){f.point(n,t)}function b(){h.point=d,f.lineStart()}function p(){h.point=v,f.lineEnd()}function y(n,t){a.push([n,t]),c.point(n,t)}function m(){c.lineStart(),a=[]}function g(){y(a[0][0],a[0][1]),c.lineEnd();var n,t,r,i,f=c.clean(),h=s.result(),v=h.length;if(a.pop(),u.push(a),a=null,v)if(1&f){if((t=(r=h[0]).length-1)>0){for(l||(e.polygonStart(),l=!0),e.lineStart(),n=0;n<t;++n)e.point((i=r[n])[0],i[1]);e.lineEnd()}}else v>1&&2&f&&h.push(h.pop().concat(h.shift())),o.push(h.filter(qf))}return h}}function qf(n){return n.length>1}function Yf(n,t){return((n=n.x)[0]<0?n[1]-Bo-Do:Bo-n[1])-((t=t.x)[0]<0?t[1]-Bo-Do:Bo-t[1])}const Xf=Gf((function(){return!0}),(function(n){var t,r=NaN,i=NaN,e=NaN;return{lineStart:function(){n.lineStart(),t=1},point:function(u,o){var a=u>0?Lo:-Lo,f=Go(u-r);Go(f-Lo)<Do?(n.point(r,i=(i+o)/2>0?Bo:-Bo),n.point(e,i),n.lineEnd(),n.lineStart(),n.point(a,i),n.point(u,i),t=0):e!==a&&f>=Lo&&(Go(r-e)<Do&&(r-=e*Do),Go(u-a)<Do&&(u-=a*Do),i=function(n,t,r,i){var e,u,o=Qo(n-r);return Go(o)>Do?qo((Qo(t)*(u=Xo(i))*Qo(r)-Qo(i)*(e=Xo(t))*Qo(n))/(e*u*o)):(t+i)/2}(r,i,u,o),n.point(e,i),n.lineEnd(),n.lineStart(),n.point(a,i),t=0),n.point(r=u,i=o),e=a},lineEnd:function(){n.lineEnd(),r=i=NaN},clean:function(){return 2-t}}}),(function(n,t,r,i){var e;if(null==n)i.point(-Lo,e=r*Bo),i.point(0,e),i.point(Lo,e),i.point(Lo,0),i.point(Lo,-e),i.point(0,-e),i.point(-Lo,-e),i.point(-Lo,0),i.point(-Lo,e);else if(Go(n[0]-t[0])>Do){var u=n[0]<t[0]?Lo:-Lo;i.point(-u,e=r*u/2),i.point(0,e),i.point(u,e)}else i.point(t[0],t[1])}),[-Lo,-Bo]);function Vf(n){var t=Xo(n),r=6*Uo,i=t>0,e=Go(t)>Do;function u(n,r){return Xo(n)*Xo(r)>t}function o(n,r,i){var e=[1,0,0],u=Na(xa(n),xa(r)),o=Aa(u,u),a=u[0],f=o-a*a;if(!f)return!i&&n;var s=t*o/f,c=-t*a/f,l=Na(e,u),h=Ea(e,s);Sa(h,Ea(u,c));var v=l,d=Aa(h,v),b=Aa(v,v),p=d*d-b*(Aa(h,h)-1);if(!(p<0)){var y=na(p),m=Ea(v,(-d-y)/b);if(Sa(m,h),m=_a(m),!i)return m;var g,w=n[0],M=r[0],k=n[1],z=r[1];M<w&&(g=w,w=M,M=g);var _=M-w,x=Go(_-Lo)<Do;if(!x&&z<k&&(g=k,k=z,z=g),x||_<Do?x?k+z>0^m[1]<(Go(m[0]-w)<Do?k:z):k<=m[1]&&m[1]<=z:_>Lo^(w<=m[0]&&m[0]<=M)){var A=Ea(v,(-d+y)/b);return Sa(A,h),[m,_a(A)]}}}function a(t,r){var e=i?n:Lo-n,u=0;return t<-e?u|=1:t>e&&(u|=2),r<-e?u|=4:r>e&&(u|=8),u}return Gf(u,(function(n){var t,r,f,s,c;return{lineStart:function(){s=f=!1,c=1},point:function(l,h){var v,d=[l,h],b=u(l,h),p=i?b?0:a(l,h):b?a(l+(l<0?Lo:-Lo),h):0;if(!t&&(s=f=b)&&n.lineStart(),b!==f&&(!(v=o(t,d))||Lf(t,v)||Lf(d,v))&&(d[0]+=Do,d[1]+=Do,b=u(d[0],d[1])),b!==f)c=0,b?(n.lineStart(),v=o(d,t),n.point(v[0],v[1])):(v=o(t,d),n.point(v[0],v[1]),n.lineEnd()),t=v;else if(e&&t&&i^b){var y;p&r||!(y=o(d,t,!0))||(c=0,i?(n.lineStart(),n.point(y[0][0],y[0][1]),n.point(y[1][0],y[1][1]),n.lineEnd()):(n.point(y[1][0],y[1][1]),n.lineEnd(),n.lineStart(),n.point(y[0][0],y[0][1])))}!b||t&&Lf(t,d)||n.point(d[0],d[1]),t=d,f=b,r=p},lineEnd:function(){f&&n.lineEnd(),t=null},clean:function(){return c|(s&&f)<<1}}}),(function(t,i,e,u){Tf(u,n,r,e,t,i)}),i?[0,-n]:[-Lo,n-Lo])}var Jf=1e9,$f=-Jf;function Zf(n,t,r,i){function e(e,u){return n<=e&&e<=r&&t<=u&&u<=i}function u(e,u,a,s){var c=0,l=0;if(null==e||(c=o(e,a))!==(l=o(u,a))||f(e,u)<0^a>0)do{s.point(0===c||3===c?n:r,c>1?i:t)}while((c=(c+a+4)%4)!==l);else s.point(u[0],u[1])}function o(i,e){return Go(i[0]-n)<Do?e>0?0:3:Go(i[0]-r)<Do?e>0?2:1:Go(i[1]-t)<Do?e>0?1:0:e>0?3:2}function a(n,t){return f(n.x,t.x)}function f(n,t){var r=o(n,1),i=o(t,1);return r!==i?r-i:0===r?t[1]-n[1]:1===r?n[0]-t[0]:2===r?n[1]-t[1]:t[0]-n[0]}return function(o){var f,s,c,l,h,v,d,b,p,y,m,g=o,w=Df(),M={point:k,lineStart:function(){M.point=z,s&&s.push(c=[]),y=!0,p=!1,d=b=NaN},lineEnd:function(){f&&(z(l,h),v&&p&&w.rejoin(),f.push(w.result())),M.point=k,p&&g.lineEnd()},polygonStart:function(){g=w,f=[],s=[],m=!0},polygonEnd:function(){var t=function(){for(var t=0,r=0,e=s.length;r<e;++r)for(var u,o,a=s[r],f=1,c=a.length,l=a[0],h=l[0],v=l[1];f<c;++f)u=h,o=v,h=(l=a[f])[0],v=l[1],o<=i?v>i&&(h-u)*(i-o)>(v-o)*(n-u)&&++t:v<=i&&(h-u)*(i-o)<(v-o)*(n-u)&&--t;return t}(),r=m&&t,e=(f=C(f)).length;(r||e)&&(o.polygonStart(),r&&(o.lineStart(),u(null,null,1,o),o.lineEnd()),e&&Hf(f,a,t,u,o),o.polygonEnd()),g=o,f=s=c=null}};function k(n,t){e(n,t)&&g.point(n,t)}function z(u,o){var a=e(u,o);if(s&&c.push([u,o]),y)l=u,h=o,v=a,y=!1,a&&(g.lineStart(),g.point(u,o));else if(a&&p)g.point(u,o);else{var f=[d=Math.max($f,Math.min(Jf,d)),b=Math.max($f,Math.min(Jf,b))],w=[u=Math.max($f,Math.min(Jf,u)),o=Math.max($f,Math.min(Jf,o))];!function(n,t,r,i,e,u){var o,a=n[0],f=n[1],s=0,c=1,l=t[0]-a,h=t[1]-f;if(o=r-a,l||!(o>0)){if(o/=l,l<0){if(o<s)return;o<c&&(c=o)}else if(l>0){if(o>c)return;o>s&&(s=o)}if(o=e-a,l||!(o<0)){if(o/=l,l<0){if(o>c)return;o>s&&(s=o)}else if(l>0){if(o<s)return;o<c&&(c=o)}if(o=i-f,h||!(o>0)){if(o/=h,h<0){if(o<s)return;o<c&&(c=o)}else if(h>0){if(o>c)return;o>s&&(s=o)}if(o=u-f,h||!(o<0)){if(o/=h,h<0){if(o>c)return;o>s&&(s=o)}else if(h>0){if(o<s)return;o<c&&(c=o)}return s>0&&(n[0]=a+s*l,n[1]=f+s*h),c<1&&(t[0]=a+c*l,t[1]=f+c*h),!0}}}}}(f,w,n,t,r,i)?a&&(g.lineStart(),g.point(u,o),m=!1):(p||(g.lineStart(),g.point(f[0],f[1])),g.point(w[0],w[1]),a||g.lineEnd(),m=!1)}d=u,b=o,p=a}return M}}var Qf,Kf,ns,ts=Po(),rs={sphere:ua,point:ua,lineStart:function(){rs.point=es,rs.lineEnd=is},lineEnd:ua,polygonStart:ua,polygonEnd:ua};function is(){rs.point=rs.lineEnd=ua}function es(n,t){Qf=n*=Uo,Kf=Qo(t*=Uo),ns=Xo(t),rs.point=us}function us(n,t){n*=Uo;var r=Qo(t*=Uo),i=Xo(t),e=Go(n-Qf),u=Xo(e),o=i*Qo(e),a=ns*r-Kf*i*u,f=Kf*r+ns*i*u;ts.add(Yo(na(o*o+a*a),f)),Qf=n,Kf=r,ns=i}function os(n){return ts.reset(),la(n,rs),+ts}var as=[null,null],fs={type:"LineString",coordinates:as};function ss(n,t){return as[0]=n,as[1]=t,os(fs)}var cs={Feature:function(n,t){return hs(n.geometry,t)},FeatureCollection:function(n,t){for(var r=n.features,i=-1,e=r.length;++i<e;)if(hs(r[i].geometry,t))return!0;return!1}},ls={Sphere:function(){return!0},Point:function(n,t){return vs(n.coordinates,t)},MultiPoint:function(n,t){for(var r=n.coordinates,i=-1,e=r.length;++i<e;)if(vs(r[i],t))return!0;return!1},LineString:function(n,t){return ds(n.coordinates,t)},MultiLineString:function(n,t){for(var r=n.coordinates,i=-1,e=r.length;++i<e;)if(ds(r[i],t))return!0;return!1},Polygon:function(n,t){return bs(n.coordinates,t)},MultiPolygon:function(n,t){for(var r=n.coordinates,i=-1,e=r.length;++i<e;)if(bs(r[i],t))return!0;return!1},GeometryCollection:function(n,t){for(var r=n.geometries,i=-1,e=r.length;++i<e;)if(hs(r[i],t))return!0;return!1}};function hs(n,t){return!(!n||!ls.hasOwnProperty(n.type))&&ls[n.type](n,t)}function vs(n,t){return 0===ss(n,t)}function ds(n,t){var r=ss(n[0],n[1]);return ss(n[0],t)+ss(t,n[1])<=r+Do}function bs(n,t){return!!Uf(n.map(ps),ys(t))}function ps(n){return(n=n.map(ys)).pop(),n}function ys(n){return[n[0]*Uo,n[1]*Uo]}function ms(n,t,r){var i=z(n,t-Do,r).concat(t);return function(n){return i.map((function(t){return[n,t]}))}}function gs(n,t,r){var i=z(n,t-Do,r).concat(t);return function(n){return i.map((function(t){return[t,n]}))}}function ws(){var n,t,r,i,e,u,o,a,f,s,c,l,h=10,v=h,d=90,b=360,p=2.5;function y(){return{type:"MultiLineString",coordinates:m()}}function m(){return z(Vo(i/d)*d,r,d).map(c).concat(z(Vo(a/b)*b,o,b).map(l)).concat(z(Vo(t/h)*h,n,h).filter((function(n){return Go(n%d)>Do})).map(f)).concat(z(Vo(u/v)*v,e,v).filter((function(n){return Go(n%b)>Do})).map(s))}return y.lines=function(){return m().map((function(n){return{type:"LineString",coordinates:n}}))},y.outline=function(){return{type:"Polygon",coordinates:[c(i).concat(l(o).slice(1),c(r).reverse().slice(1),l(a).reverse().slice(1))]}},y.extent=function(n){return arguments.length?y.extentMajor(n).extentMinor(n):y.extentMinor()},y.extentMajor=function(n){return arguments.length?(a=+n[0][1],o=+n[1][1],(i=+n[0][0])>(r=+n[1][0])&&(n=i,i=r,r=n),a>o&&(n=a,a=o,o=n),y.precision(p)):[[i,a],[r,o]]},y.extentMinor=function(r){return arguments.length?(u=+r[0][1],e=+r[1][1],(t=+r[0][0])>(n=+r[1][0])&&(r=t,t=n,n=r),u>e&&(r=u,u=e,e=r),y.precision(p)):[[t,u],[n,e]]},y.step=function(n){return arguments.length?y.stepMajor(n).stepMinor(n):y.stepMinor()},y.stepMajor=function(n){return arguments.length?(d=+n[0],b=+n[1],y):[d,b]},y.stepMinor=function(n){return arguments.length?(h=+n[0],v=+n[1],y):[h,v]},y.precision=function(h){return arguments.length?(p=+h,f=ms(u,e,90),s=gs(t,n,p),c=ms(a,o,90),l=gs(i,r,p),y):p},y.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function Ms(n){return n}var ks,zs,_s,xs,As=Po(),Ns=Po(),Ss={point:ua,lineStart:ua,lineEnd:ua,polygonStart:function(){Ss.lineStart=Es,Ss.lineEnd=Cs},polygonEnd:function(){Ss.lineStart=Ss.lineEnd=Ss.point=ua,As.add(Go(Ns)),Ns.reset()},result:function(){var n=As/2;return As.reset(),n}};function Es(){Ss.point=Fs}function Fs(n,t){Ss.point=Os,ks=_s=n,zs=xs=t}function Os(n,t){Ns.add(xs*n-_s*t),_s=n,xs=t}function Cs(){Os(ks,zs)}var Ps,Rs,Ts,js,Ds=1/0,Ls=Ds,Bs=-Ds,Hs=Bs,Is={point:function(n,t){n<Ds&&(Ds=n),n>Bs&&(Bs=n),t<Ls&&(Ls=t),t>Hs&&(Hs=t)},lineStart:ua,lineEnd:ua,polygonStart:ua,polygonEnd:ua,result:function(){var n=[[Ds,Ls],[Bs,Hs]];return Bs=Hs=-(Ls=Ds=1/0),n}},Ws=0,Us=0,Gs=0,qs=0,Ys=0,Xs=0,Vs=0,Js=0,$s=0,Zs={point:Qs,lineStart:Ks,lineEnd:rc,polygonStart:function(){Zs.lineStart=ic,Zs.lineEnd=ec},polygonEnd:function(){Zs.point=Qs,Zs.lineStart=Ks,Zs.lineEnd=rc},result:function(){var n=$s?[Vs/$s,Js/$s]:Xs?[qs/Xs,Ys/Xs]:Gs?[Ws/Gs,Us/Gs]:[NaN,NaN];return Ws=Us=Gs=qs=Ys=Xs=Vs=Js=$s=0,n}};function Qs(n,t){Ws+=n,Us+=t,++Gs}function Ks(){Zs.point=nc}function nc(n,t){Zs.point=tc,Qs(Ts=n,js=t)}function tc(n,t){var r=n-Ts,i=t-js,e=na(r*r+i*i);qs+=e*(Ts+n)/2,Ys+=e*(js+t)/2,Xs+=e,Qs(Ts=n,js=t)}function rc(){Zs.point=Qs}function ic(){Zs.point=uc}function ec(){oc(Ps,Rs)}function uc(n,t){Zs.point=oc,Qs(Ps=Ts=n,Rs=js=t)}function oc(n,t){var r=n-Ts,i=t-js,e=na(r*r+i*i);qs+=e*(Ts+n)/2,Ys+=e*(js+t)/2,Xs+=e,Vs+=(e=js*n-Ts*t)*(Ts+n),Js+=e*(js+t),$s+=3*e,Qs(Ts=n,js=t)}function ac(n){this._context=n}ac.prototype={_radius:4.5,pointRadius:function(n){return this._radius=n,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(n,t){switch(this._point){case 0:this._context.moveTo(n,t),this._point=1;break;case 1:this._context.lineTo(n,t);break;default:this._context.moveTo(n+this._radius,t),this._context.arc(n,t,this._radius,0,Io)}},result:ua};var fc,sc,cc,lc,hc,vc=Po(),dc={point:ua,lineStart:function(){dc.point=bc},lineEnd:function(){fc&&pc(sc,cc),dc.point=ua},polygonStart:function(){fc=!0},polygonEnd:function(){fc=null},result:function(){var n=+vc;return vc.reset(),n}};function bc(n,t){dc.point=pc,sc=lc=n,cc=hc=t}function pc(n,t){vc.add(na((lc-=n)*lc+(hc-=t)*hc)),lc=n,hc=t}function yc(){this._string=[]}function mc(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function gc(n){return function(t){var r=new wc;for(var i in n)r[i]=n[i];return r.stream=t,r}}function wc(){}function Mc(n,t,r){var i=n.clipExtent&&n.clipExtent();return n.scale(150).translate([0,0]),null!=i&&n.clipExtent(null),la(r,n.stream(Is)),t(Is.result()),null!=i&&n.clipExtent(i),n}function kc(n,t,r){return Mc(n,(function(r){var i=t[1][0]-t[0][0],e=t[1][1]-t[0][1],u=Math.min(i/(r[1][0]-r[0][0]),e/(r[1][1]-r[0][1])),o=+t[0][0]+(i-u*(r[1][0]+r[0][0]))/2,a=+t[0][1]+(e-u*(r[1][1]+r[0][1]))/2;n.scale(150*u).translate([o,a])}),r)}function zc(n,t,r){return kc(n,[[0,0],t],r)}function _c(n,t,r){return Mc(n,(function(r){var i=+t,e=i/(r[1][0]-r[0][0]),u=(i-e*(r[1][0]+r[0][0]))/2,o=-e*r[0][1];n.scale(150*e).translate([u,o])}),r)}function xc(n,t,r){return Mc(n,(function(r){var i=+t,e=i/(r[1][1]-r[0][1]),u=-e*r[0][0],o=(i-e*(r[1][1]+r[0][1]))/2;n.scale(150*e).translate([u,o])}),r)}yc.prototype={_radius:4.5,_circle:mc(4.5),pointRadius:function(n){return(n=+n)!==this._radius&&(this._radius=n,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(n,t){switch(this._point){case 0:this._string.push("M",n,",",t),this._point=1;break;case 1:this._string.push("L",n,",",t);break;default:null==this._circle&&(this._circle=mc(this._radius)),this._string.push("M",n,",",t,this._circle)}},result:function(){if(this._string.length){var n=this._string.join("");return this._string=[],n}return null}},wc.prototype={constructor:wc,point:function(n,t){this.stream.point(n,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Ac=Xo(30*Uo);function Nc(n,t){return+t?function(n,t){function r(i,e,u,o,a,f,s,c,l,h,v,d,b,p){var y=s-i,m=c-e,g=y*y+m*m;if(g>4*t&&b--){var w=o+h,M=a+v,k=f+d,z=na(w*w+M*M+k*k),_=ia(k/=z),x=Go(Go(k)-1)<Do||Go(u-l)<Do?(u+l)/2:Yo(M,w),A=n(x,_),N=A[0],S=A[1],E=N-i,F=S-e,O=m*E-y*F;(O*O/g>t||Go((y*E+m*F)/g-.5)>.3||o*h+a*v+f*d<Ac)&&(r(i,e,u,o,a,f,N,S,x,w/=z,M/=z,k,b,p),p.point(N,S),r(N,S,x,w,M,k,s,c,l,h,v,d,b,p))}}return function(t){var i,e,u,o,a,f,s,c,l,h,v,d,b={point:p,lineStart:y,lineEnd:g,polygonStart:function(){t.polygonStart(),b.lineStart=w},polygonEnd:function(){t.polygonEnd(),b.lineStart=y}};function p(r,i){r=n(r,i),t.point(r[0],r[1])}function y(){c=NaN,b.point=m,t.lineStart()}function m(i,e){var u=xa([i,e]),o=n(i,e);r(c,l,s,h,v,d,c=o[0],l=o[1],s=i,h=u[0],v=u[1],d=u[2],16,t),t.point(c,l)}function g(){b.point=p,t.lineEnd()}function w(){y(),b.point=M,b.lineEnd=k}function M(n,t){m(i=n,t),e=c,u=l,o=h,a=v,f=d,b.point=m}function k(){r(c,l,s,h,v,d,e,u,i,o,a,f,16,t),b.lineEnd=g,g()}return b}}(n,t):function(n){return gc({point:function(t,r){t=n(t,r),this.stream.point(t[0],t[1])}})}(n)}var Sc=gc({point:function(n,t){this.stream.point(n*Uo,t*Uo)}});function Ec(n){return Fc((function(){return n}))()}function Fc(n){var t,r,i,e,u,o,a,f,s,c,l=150,h=480,v=250,d=0,b=0,p=0,y=0,m=0,g=null,w=Xf,M=null,k=Ms,z=.5,_=Nc(N,z);function x(n){return[(n=u(n[0]*Uo,n[1]*Uo))[0]*l+r,i-n[1]*l]}function A(n){return(n=u.invert((n[0]-r)/l,(i-n[1])/l))&&[n[0]*Wo,n[1]*Wo]}function N(n,e){return[(n=t(n,e))[0]*l+r,i-n[1]*l]}function S(){u=Sf(e=Ff(p,y,m),t);var n=t(d,b);return r=h-n[0]*l,i=v+n[1]*l,E()}function E(){return s=c=null,x}return x.stream=function(n){return s&&c===n?s:s=Sc(function(n){return gc({point:function(t,r){var i=n(t,r);return this.stream.point(i[0],i[1])}})}(e)(w(_(k(c=n)))))},x.preclip=function(n){return arguments.length?(w=n,g=void 0,E()):w},x.postclip=function(n){return arguments.length?(k=n,M=o=a=f=null,E()):k},x.clipAngle=function(n){return arguments.length?(w=+n?Vf(g=n*Uo):(g=null,Xf),E()):g*Wo},x.clipExtent=function(n){return arguments.length?(k=null==n?(M=o=a=f=null,Ms):Zf(M=+n[0][0],o=+n[0][1],a=+n[1][0],f=+n[1][1]),E()):null==M?null:[[M,o],[a,f]]},x.scale=function(n){return arguments.length?(l=+n,S()):l},x.translate=function(n){return arguments.length?(h=+n[0],v=+n[1],S()):[h,v]},x.center=function(n){return arguments.length?(d=n[0]%360*Uo,b=n[1]%360*Uo,S()):[d*Wo,b*Wo]},x.rotate=function(n){return arguments.length?(p=n[0]%360*Uo,y=n[1]%360*Uo,m=n.length>2?n[2]%360*Uo:0,S()):[p*Wo,y*Wo,m*Wo]},x.precision=function(n){return arguments.length?(_=Nc(N,z=n*n),E()):na(z)},x.fitExtent=function(n,t){return kc(x,n,t)},x.fitSize=function(n,t){return zc(x,n,t)},x.fitWidth=function(n,t){return _c(x,n,t)},x.fitHeight=function(n,t){return xc(x,n,t)},function(){return t=n.apply(this,arguments),x.invert=t.invert&&A,S()}}function Oc(n){var t=0,r=Lo/3,i=Fc(n),e=i(t,r);return e.parallels=function(n){return arguments.length?i(t=n[0]*Uo,r=n[1]*Uo):[t*Wo,r*Wo]},e}function Cc(n,t){var r=Qo(n),i=(r+Qo(t))/2;if(Go(i)<Do)return function(n){var t=Xo(n);function r(n,r){return[n*t,Qo(r)/t]}return r.invert=function(n,r){return[n/t,ia(r*t)]},r}(n);var e=1+r*(2*i-r),u=na(e)/i;function o(n,t){var r=na(e-2*i*Qo(t))/i;return[r*Qo(n*=i),u-r*Xo(n)]}return o.invert=function(n,t){var r=u-t;return[Yo(n,Go(r))/i*Ko(r),ia((e-(n*n+r*r)*i*i)/(2*i))]},o}function Pc(){return Oc(Cc).scale(155.424).center([0,33.6442])}function Rc(){return Pc().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Tc(n){return function(t,r){var i=Xo(t),e=Xo(r),u=n(i*e);return[u*e*Qo(t),u*Qo(r)]}}function jc(n){return function(t,r){var i=na(t*t+r*r),e=n(i),u=Qo(e),o=Xo(e);return[Yo(t*u,i*o),ia(i&&r*u/i)]}}var Dc=Tc((function(n){return na(2/(1+n))}));Dc.invert=jc((function(n){return 2*ia(n/2)}));var Lc=Tc((function(n){return(n=ra(n))&&n/Qo(n)}));function Bc(n,t){return[n,$o(ta((Bo+t)/2))]}function Hc(n){var t,r,i,e=Ec(n),u=e.center,o=e.scale,a=e.translate,f=e.clipExtent,s=null;function c(){var u=Lo*o(),a=e(Rf(e.rotate()).invert([0,0]));return f(null==s?[[a[0]-u,a[1]-u],[a[0]+u,a[1]+u]]:n===Bc?[[Math.max(a[0]-u,s),t],[Math.min(a[0]+u,r),i]]:[[s,Math.max(a[1]-u,t)],[r,Math.min(a[1]+u,i)]])}return e.scale=function(n){return arguments.length?(o(n),c()):o()},e.translate=function(n){return arguments.length?(a(n),c()):a()},e.center=function(n){return arguments.length?(u(n),c()):u()},e.clipExtent=function(n){return arguments.length?(null==n?s=t=r=i=null:(s=+n[0][0],t=+n[0][1],r=+n[1][0],i=+n[1][1]),c()):null==s?null:[[s,t],[r,i]]},c()}function Ic(n){return ta((Bo+n)/2)}function Wc(n,t){var r=Xo(n),i=n===t?Qo(n):$o(r/Xo(t))/$o(Ic(t)/Ic(n)),e=r*Zo(Ic(n),i)/i;if(!i)return Bc;function u(n,t){e>0?t<-Bo+Do&&(t=-Bo+Do):t>Bo-Do&&(t=Bo-Do);var r=e/Zo(Ic(t),i);return[r*Qo(i*n),e-r*Xo(i*n)]}return u.invert=function(n,t){var r=e-t,u=Ko(i)*na(n*n+r*r);return[Yo(n,Go(r))/i*Ko(r),2*qo(Zo(e/u,1/i))-Bo]},u}function Uc(n,t){return[n,t]}function Gc(n,t){var r=Xo(n),i=n===t?Qo(n):(r-Xo(t))/(t-n),e=r/i+n;if(Go(i)<Do)return Uc;function u(n,t){var r=e-t,u=i*n;return[r*Qo(u),e-r*Xo(u)]}return u.invert=function(n,t){var r=e-t;return[Yo(n,Go(r))/i*Ko(r),e-Ko(i)*na(n*n+r*r)]},u}function qc(n,t){var r=Xo(t),i=Xo(n)*r;return[r*Qo(n)/i,Qo(t)/i]}function Yc(n,t,r,i){return 1===n&&1===t&&0===r&&0===i?Ms:gc({point:function(e,u){this.stream.point(e*n+r,u*t+i)}})}function Xc(n,t){var r=t*t,i=r*r;return[n*(.8707-.131979*r+i*(i*(.003971*r-.001529*i)-.013791)),t*(1.007226+r*(.015085+i*(.028874*r-.044475-.005916*i)))]}function Vc(n,t){return[Xo(t)*Qo(n),Qo(t)]}function Jc(n,t){var r=Xo(t),i=1+Xo(n)*r;return[r*Qo(n)/i,Qo(t)/i]}function $c(n,t){return[$o(ta((Bo+t)/2)),-n]}function Zc(n,t){return n.parent===t.parent?1:2}function Qc(n,t){return n+t.x}function Kc(n,t){return Math.max(n,t.y)}function nl(n){var t=0,r=n.children,i=r&&r.length;if(i)for(;--i>=0;)t+=r[i].value;else t=1;n.value=t}function tl(n,t){var r,i,e,u,o,a=new ul(n),f=+n.value&&(a.value=n.value),s=[a];for(null==t&&(t=rl);r=s.pop();)if(f&&(r.value=+r.data.value),(e=t(r.data))&&(o=e.length))for(r.children=new Array(o),u=o-1;u>=0;--u)s.push(i=r.children[u]=new ul(e[u])),i.parent=r,i.depth=r.depth+1;return a.eachBefore(el)}function rl(n){return n.children}function il(n){n.data=n.data.data}function el(n){var t=0;do{n.height=t}while((n=n.parent)&&n.height<++t)}function ul(n){this.data=n,this.depth=this.height=0,this.parent=null}Lc.invert=jc((function(n){return n})),Bc.invert=function(n,t){return[n,2*qo(Jo(t))-Bo]},Uc.invert=Uc,qc.invert=jc(qo),Xc.invert=function(n,t){var r,i=t,e=25;do{var u=i*i,o=u*u;i-=r=(i*(1.007226+u*(.015085+o*(.028874*u-.044475-.005916*o)))-t)/(1.007226+u*(.045255+o*(.259866*u-.311325-.005916*11*o)))}while(Go(r)>Do&&--e>0);return[n/(.8707+(u=i*i)*(u*(u*u*u*(.003971-.001529*u)-.013791)-.131979)),i]},Vc.invert=jc(ia),Jc.invert=jc((function(n){return 2*qo(n)})),$c.invert=function(n,t){return[-t,2*qo(Jo(n))-Bo]},ul.prototype=tl.prototype={constructor:ul,count:function(){return this.eachAfter(nl)},each:function(n){var t,r,i,e,u=this,o=[u];do{for(t=o.reverse(),o=[];u=t.pop();)if(n(u),r=u.children)for(i=0,e=r.length;i<e;++i)o.push(r[i])}while(o.length);return this},eachAfter:function(n){for(var t,r,i,e=this,u=[e],o=[];e=u.pop();)if(o.push(e),t=e.children)for(r=0,i=t.length;r<i;++r)u.push(t[r]);for(;e=o.pop();)n(e);return this},eachBefore:function(n){for(var t,r,i=this,e=[i];i=e.pop();)if(n(i),t=i.children)for(r=t.length-1;r>=0;--r)e.push(t[r]);return this},sum:function(n){return this.eachAfter((function(t){for(var r=+n(t.data)||0,i=t.children,e=i&&i.length;--e>=0;)r+=i[e].value;t.value=r}))},sort:function(n){return this.eachBefore((function(t){t.children&&t.children.sort(n)}))},path:function(n){for(var t=this,r=function(n,t){if(n===t)return n;var r=n.ancestors(),i=t.ancestors(),e=null;for(n=r.pop(),t=i.pop();n===t;)e=n,n=r.pop(),t=i.pop();return e}(t,n),i=[t];t!==r;)i.push(t=t.parent);for(var e=i.length;n!==r;)i.splice(e,0,n),n=n.parent;return i},ancestors:function(){for(var n=this,t=[n];n=n.parent;)t.push(n);return t},descendants:function(){var n=[];return this.each((function(t){n.push(t)})),n},leaves:function(){var n=[];return this.eachBefore((function(t){t.children||n.push(t)})),n},links:function(){var n=this,t=[];return n.each((function(r){r!==n&&t.push({source:r.parent,target:r})})),t},copy:function(){return tl(this).eachBefore(il)}};var ol=Array.prototype.slice;function al(n){for(var t,r,i=0,e=(n=function(n){for(var t,r,i=n.length;i;)r=Math.random()*i--|0,t=n[i],n[i]=n[r],n[r]=t;return n}(ol.call(n))).length,u=[];i<e;)t=n[i],r&&cl(r,t)?++i:(r=hl(u=fl(u,t)),i=0);return r}function fl(n,t){var r,i;if(ll(t,n))return[t];for(r=0;r<n.length;++r)if(sl(t,n[r])&&ll(vl(n[r],t),n))return[n[r],t];for(r=0;r<n.length-1;++r)for(i=r+1;i<n.length;++i)if(sl(vl(n[r],n[i]),t)&&sl(vl(n[r],t),n[i])&&sl(vl(n[i],t),n[r])&&ll(dl(n[r],n[i],t),n))return[n[r],n[i],t];throw new Error}function sl(n,t){var r=n.r-t.r,i=t.x-n.x,e=t.y-n.y;return r<0||r*r<i*i+e*e}function cl(n,t){var r=n.r-t.r+1e-6,i=t.x-n.x,e=t.y-n.y;return r>0&&r*r>i*i+e*e}function ll(n,t){for(var r=0;r<t.length;++r)if(!cl(n,t[r]))return!1;return!0}function hl(n){switch(n.length){case 1:return function(n){return{x:n.x,y:n.y,r:n.r}}(n[0]);case 2:return vl(n[0],n[1]);case 3:return dl(n[0],n[1],n[2])}}function vl(n,t){var r=n.x,i=n.y,e=n.r,u=t.x,o=t.y,a=t.r,f=u-r,s=o-i,c=a-e,l=Math.sqrt(f*f+s*s);return{x:(r+u+f/l*c)/2,y:(i+o+s/l*c)/2,r:(l+e+a)/2}}function dl(n,t,r){var i=n.x,e=n.y,u=n.r,o=t.x,a=t.y,f=t.r,s=r.x,c=r.y,l=r.r,h=i-o,v=i-s,d=e-a,b=e-c,p=f-u,y=l-u,m=i*i+e*e-u*u,g=m-o*o-a*a+f*f,w=m-s*s-c*c+l*l,M=v*d-h*b,k=(d*w-b*g)/(2*M)-i,z=(b*p-d*y)/M,_=(v*g-h*w)/(2*M)-e,x=(h*y-v*p)/M,A=z*z+x*x-1,N=2*(u+k*z+_*x),S=k*k+_*_-u*u,E=-(A?(N+Math.sqrt(N*N-4*A*S))/(2*A):S/N);return{x:i+k+z*E,y:e+_+x*E,r:E}}function bl(n,t,r){var i=n.x,e=n.y,u=t.r+r.r,o=n.r+r.r,a=t.x-i,f=t.y-e,s=a*a+f*f;if(s){var c=.5+((o*=o)-(u*=u))/(2*s),l=Math.sqrt(Math.max(0,2*u*(o+s)-(o-=s)*o-u*u))/(2*s);r.x=i+c*a+l*f,r.y=e+c*f-l*a}else r.x=i+o,r.y=e}function pl(n,t){var r=t.x-n.x,i=t.y-n.y,e=n.r+t.r;return e*e-1e-6>r*r+i*i}function yl(n){var t=n._,r=n.next._,i=t.r+r.r,e=(t.x*r.r+r.x*t.r)/i,u=(t.y*r.r+r.y*t.r)/i;return e*e+u*u}function ml(n){this._=n,this.next=null,this.previous=null}function gl(n){if(!(e=n.length))return 0;var t,r,i,e,u,o,a,f,s,c,l;if((t=n[0]).x=0,t.y=0,!(e>1))return t.r;if(t.x=-(r=n[1]).r,r.x=t.r,r.y=0,!(e>2))return t.r+r.r;bl(r,t,i=n[2]),t=new ml(t),r=new ml(r),i=new ml(i),t.next=i.previous=r,r.next=t.previous=i,i.next=r.previous=t;n:for(a=3;a<e;++a){bl(t._,r._,i=n[a]),i=new ml(i),f=r.next,s=t.previous,c=r._.r,l=t._.r;do{if(c<=l){if(pl(f._,i._)){t.next=r=f,r.previous=t,--a;continue n}c+=f._.r,f=f.next}else{if(pl(s._,i._)){(t=s).next=r,r.previous=t,--a;continue n}l+=s._.r,s=s.previous}}while(f!==s.next);for(i.previous=t,i.next=r,t.next=r.previous=r=i,u=yl(t);(i=i.next)!==r;)(o=yl(i))<u&&(t=i,u=o);r=t.next}for(t=[r._],i=r;(i=i.next)!==r;)t.push(i._);for(i=al(t),a=0;a<e;++a)(t=n[a]).x-=i.x,t.y-=i.y;return i.r}function wl(n){return null==n?null:Ml(n)}function Ml(n){if("function"!=typeof n)throw new Error;return n}function kl(){return 0}function zl(n){return function(){return n}}function _l(n){return Math.sqrt(n.value)}function xl(n){return function(t){t.children||(t.r=Math.max(0,+n(t)||0))}}function Al(n,t){return function(r){if(i=r.children){var i,e,u,o=i.length,a=n(r)*t||0;if(a)for(e=0;e<o;++e)i[e].r+=a;if(u=gl(i),a)for(e=0;e<o;++e)i[e].r-=a;r.r=u+a}}}function Nl(n){return function(t){var r=t.parent;t.r*=n,r&&(t.x=r.x+n*t.x,t.y=r.y+n*t.y)}}function Sl(n){n.x0=Math.round(n.x0),n.y0=Math.round(n.y0),n.x1=Math.round(n.x1),n.y1=Math.round(n.y1)}function El(n,t,r,i,e){for(var u,o=n.children,a=-1,f=o.length,s=n.value&&(i-t)/n.value;++a<f;)(u=o[a]).y0=r,u.y1=e,u.x0=t,u.x1=t+=u.value*s}var Fl={depth:-1},Ol={};function Cl(n){return n.id}function Pl(n){return n.parentId}function Rl(n,t){return n.parent===t.parent?1:2}function Tl(n){var t=n.children;return t?t[0]:n.t}function jl(n){var t=n.children;return t?t[t.length-1]:n.t}function Dl(n,t,r){var i=r/(t.i-n.i);t.c-=i,t.s+=r,n.c+=i,t.z+=r,t.m+=r}function Ll(n,t,r){return n.a.parent===t.parent?n.a:r}function Bl(n,t){this._=n,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}function Hl(n,t,r,i,e){for(var u,o=n.children,a=-1,f=o.length,s=n.value&&(e-r)/n.value;++a<f;)(u=o[a]).x0=t,u.x1=i,u.y0=r,u.y1=r+=u.value*s}Bl.prototype=Object.create(ul.prototype);var Il=(1+Math.sqrt(5))/2;function Wl(n,t,r,i,e,u){for(var o,a,f,s,c,l,h,v,d,b,p,y=[],m=t.children,g=0,w=0,M=m.length,k=t.value;g<M;){f=e-r,s=u-i;do{c=m[w++].value}while(!c&&w<M);for(l=h=c,p=c*c*(b=Math.max(s/f,f/s)/(k*n)),d=Math.max(h/p,p/l);w<M;++w){if(c+=a=m[w].value,a<l&&(l=a),a>h&&(h=a),p=c*c*b,(v=Math.max(h/p,p/l))>d){c-=a;break}d=v}y.push(o={value:c,dice:f<s,children:m.slice(g,w)}),o.dice?El(o,r,i,e,k?i+=s*c/k:u):Hl(o,r,i,k?r+=f*c/k:e,u),k-=c,g=w}return y}const Ul=function n(t){function r(n,r,i,e,u){Wl(t,n,r,i,e,u)}return r.ratio=function(t){return n((t=+t)>1?t:1)},r}(Il),Gl=function n(t){function r(n,r,i,e,u){if((o=n._squarify)&&o.ratio===t)for(var o,a,f,s,c,l=-1,h=o.length,v=n.value;++l<h;){for(f=(a=o[l]).children,s=a.value=0,c=f.length;s<c;++s)a.value+=f[s].value;a.dice?El(a,r,i,e,i+=(u-i)*a.value/v):Hl(a,r,i,r+=(e-r)*a.value/v,u),v-=a.value}else n._squarify=o=Wl(t,n,r,i,e,u),o.ratio=t}return r.ratio=function(t){return n((t=+t)>1?t:1)},r}(Il);function ql(n,t,r){return(t[0]-n[0])*(r[1]-n[1])-(t[1]-n[1])*(r[0]-n[0])}function Yl(n,t){return n[0]-t[0]||n[1]-t[1]}function Xl(n){for(var t=n.length,r=[0,1],i=2,e=2;e<t;++e){for(;i>1&&ql(n[r[i-2]],n[r[i-1]],n[e])<=0;)--i;r[i++]=e}return r.slice(0,i)}var Vl=[].slice,Jl={};function $l(n){this._size=n,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function Zl(n){if(!n._start)try{!function(n){for(;n._start=n._waiting&&n._active<n._size;){var t=n._ended+n._active,r=n._tasks[t],i=r.length-1,e=r[i];r[i]=Ql(n,t),--n._waiting,++n._active,r=e.apply(null,r),n._tasks[t]&&(n._tasks[t]=r||Jl)}}(n)}catch(t){if(n._tasks[n._ended+n._active-1])Kl(n,t);else if(!n._data)throw t}}function Ql(n,t){return function(r,i){n._tasks[t]&&(--n._active,++n._ended,n._tasks[t]=null,null==n._error&&(null!=r?Kl(n,r):(n._data[t]=i,n._waiting?Zl(n):nh(n))))}}function Kl(n,t){var r,i=n._tasks.length;for(n._error=t,n._data=void 0,n._waiting=NaN;--i>=0;)if((r=n._tasks[i])&&(n._tasks[i]=null,r.abort))try{r.abort()}catch(t){}n._active=NaN,nh(n)}function nh(n){if(!n._active&&n._call){var t=n._data;n._data=void 0,n._call(n._error,t)}}function th(n){if(null==n)n=1/0;else if(!((n=+n)>=1))throw new Error("invalid concurrency");return new $l(n)}function rh(){return Math.random()}$l.prototype=th.prototype={constructor:$l,defer:function(n){if("function"!=typeof n)throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(null!=this._error)return this;var t=Vl.call(arguments,1);return t.push(n),++this._waiting,this._tasks.push(t),Zl(this),this},abort:function(){return null==this._error&&Kl(this,new Error("abort")),this},await:function(n){if("function"!=typeof n)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=function(t,r){n.apply(null,[t].concat(r))},nh(this),this},awaitAll:function(n){if("function"!=typeof n)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=n,nh(this),this}};const ih=function n(t){function r(n,r){return n=null==n?0:+n,r=null==r?1:+r,1===arguments.length?(r=n,n=0):r-=n,function(){return t()*r+n}}return r.source=n,r}(rh),eh=function n(t){function r(n,r){var i,e;return n=null==n?0:+n,r=null==r?1:+r,function(){var u;if(null!=i)u=i,i=null;else do{i=2*t()-1,u=2*t()-1,e=i*i+u*u}while(!e||e>1);return n+r*u*Math.sqrt(-2*Math.log(e)/e)}}return r.source=n,r}(rh),uh=function n(t){function r(){var n=eh.source(t).apply(this,arguments);return function(){return Math.exp(n())}}return r.source=n,r}(rh),oh=function n(t){function r(n){return function(){for(var r=0,i=0;i<n;++i)r+=t();return r}}return r.source=n,r}(rh),ah=function n(t){function r(n){var r=oh.source(t)(n);return function(){return r()/n}}return r.source=n,r}(rh),fh=function n(t){function r(n){return function(){return-Math.log(1-t())/n}}return r.source=n,r}(rh);function sh(n,t){var r,i,e,u,o=Y("beforesend","progress","load","error"),a=Eu(),f=new XMLHttpRequest,s=null,c=null,l=0;function h(n){var t,i=f.status;if(!i&&function(n){var t=n.responseType;return t&&"text"!==t?n.response:n.responseText}(f)||i>=200&&i<300||304===i){if(e)try{t=e.call(r,f)}catch(u){return void o.call("error",r,u)}else t=f;o.call("load",r,t)}else o.call("error",r,n)}if("undefined"!=typeof XDomainRequest&&!("withCredentials"in f)&&/^(http(s)?:)?\/\//.test(n)&&(f=new XDomainRequest),"onload"in f?f.onload=f.onerror=f.ontimeout=h:f.onreadystatechange=function(n){f.readyState>3&&h(n)},f.onprogress=function(n){o.call("progress",r,n)},r={header:function(n,t){return n=(n+"").toLowerCase(),arguments.length<2?a.get(n):(null==t?a.remove(n):a.set(n,t+""),r)},mimeType:function(n){return arguments.length?(i=null==n?null:n+"",r):i},responseType:function(n){return arguments.length?(u=n,r):u},timeout:function(n){return arguments.length?(l=+n,r):l},user:function(n){return arguments.length<1?s:(s=null==n?null:n+"",r)},password:function(n){return arguments.length<1?c:(c=null==n?null:n+"",r)},response:function(n){return e=n,r},get:function(n,t){return r.send("GET",n,t)},post:function(n,t){return r.send("POST",n,t)},send:function(t,e,h){return f.open(t,n,!0,s,c),null==i||a.has("accept")||a.set("accept",i+",*/*"),f.setRequestHeader&&a.each((function(n,t){f.setRequestHeader(t,n)})),null!=i&&f.overrideMimeType&&f.overrideMimeType(i),null!=u&&(f.responseType=u),l>0&&(f.timeout=l),null==h&&"function"==typeof e&&(h=e,e=null),null!=h&&1===h.length&&(h=function(n){return function(t,r){n(null==t?r:null)}}(h)),null!=h&&r.on("error",h).on("load",(function(n){h(null,n)})),o.call("beforesend",r,f),f.send(null==e?null:e),r},abort:function(){return f.abort(),r},on:function(){var n=o.on.apply(o,arguments);return n===o?r:n}},null!=t){if("function"!=typeof t)throw new Error("invalid callback: "+t);return r.get(t)}return r}function ch(n,t){return function(r,i){var e=sh(r).mimeType(n).response(t);if(null!=i){if("function"!=typeof i)throw new Error("invalid callback: "+i);return e.get(i)}return e}}const lh=ch("text/html",(function(n){return document.createRange().createContextualFragment(n.responseText)})),hh=ch("application/json",(function(n){return JSON.parse(n.responseText)})),vh=ch("text/plain",(function(n){return n.responseText})),dh=ch("application/xml",(function(n){var t=n.responseXML;if(!t)throw new Error("parse error");return t}));function bh(n,t){return function(r,i,e){arguments.length<3&&(e=i,i=null);var u=sh(r).mimeType(n);return u.row=function(n){return arguments.length?u.response(ph(t,i=n)):i},u.row(i),e?u.get(e):u}}function ph(n,t){return function(r){return n(r.responseText,t)}}const yh=bh("text/csv",Wu),mh=bh("text/tab-separated-values",Xu);var gh=Array.prototype,wh=gh.map,Mh=gh.slice,kh={name:"implicit"};function zh(n){var t=Eu(),r=[],i=kh;function e(e){var u=e+"",o=t.get(u);if(!o){if(i!==kh)return i;t.set(u,o=r.push(e))}return n[(o-1)%n.length]}return n=null==n?[]:Mh.call(n),e.domain=function(n){if(!arguments.length)return r.slice();r=[],t=Eu();for(var i,u,o=-1,a=n.length;++o<a;)t.has(u=(i=n[o])+"")||t.set(u,r.push(i));return e},e.range=function(t){return arguments.length?(n=Mh.call(t),e):n.slice()},e.unknown=function(n){return arguments.length?(i=n,e):i},e.copy=function(){return zh().domain(r).range(n).unknown(i)},e}function _h(){var n,t,r=zh().unknown(void 0),i=r.domain,e=r.range,u=[0,1],o=!1,a=0,f=0,s=.5;function c(){var r=i().length,c=u[1]<u[0],l=u[c-0],h=u[1-c];n=(h-l)/Math.max(1,r-a+2*f),o&&(n=Math.floor(n)),l+=(h-l-n*(r-a))*s,t=n*(1-a),o&&(l=Math.round(l),t=Math.round(t));var v=z(r).map((function(t){return l+n*t}));return e(c?v.reverse():v)}return delete r.unknown,r.domain=function(n){return arguments.length?(i(n),c()):i()},r.range=function(n){return arguments.length?(u=[+n[0],+n[1]],c()):u.slice()},r.rangeRound=function(n){return u=[+n[0],+n[1]],o=!0,c()},r.bandwidth=function(){return t},r.step=function(){return n},r.round=function(n){return arguments.length?(o=!!n,c()):o},r.padding=function(n){return arguments.length?(a=f=Math.max(0,Math.min(1,n)),c()):a},r.paddingInner=function(n){return arguments.length?(a=Math.max(0,Math.min(1,n)),c()):a},r.paddingOuter=function(n){return arguments.length?(f=Math.max(0,Math.min(1,n)),c()):f},r.align=function(n){return arguments.length?(s=Math.max(0,Math.min(1,n)),c()):s},r.copy=function(){return _h().domain(i()).range(u).round(o).paddingInner(a).paddingOuter(f).align(s)},c()}function xh(n){var t=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return xh(t())},n}function Ah(n){return function(){return n}}function Nh(n){return+n}var Sh=[0,1];function Eh(n,t){return(t-=n=+n)?function(r){return(r-n)/t}:Ah(t)}function Fh(n,t,r,i){var e=n[0],u=n[1],o=t[0],a=t[1];return u<e?(e=r(u,e),o=i(a,o)):(e=r(e,u),o=i(o,a)),function(n){return o(e(n))}}function Oh(n,t,r,i){var e=Math.min(n.length,t.length)-1,u=new Array(e),o=new Array(e),a=-1;for(n[e]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++a<e;)u[a]=r(n[a],n[a+1]),o[a]=i(t[a],t[a+1]);return function(t){var r=l(n,t,1,e)-1;return o[r](u[r](t))}}function Ch(n,t){return t.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp())}function Ph(n,t){var r,i,e,u=Sh,o=Sh,a=Jr,f=!1;function s(){return r=Math.min(u.length,o.length)>2?Oh:Fh,i=e=null,c}function c(t){return(i||(i=r(u,o,f?function(n){return function(t,r){var i=n(t=+t,r=+r);return function(n){return n<=t?0:n>=r?1:i(n)}}}(n):n,a)))(+t)}return c.invert=function(n){return(e||(e=r(o,u,Eh,f?function(n){return function(t,r){var i=n(t=+t,r=+r);return function(n){return n<=0?t:n>=1?r:i(n)}}}(t):t)))(+n)},c.domain=function(n){return arguments.length?(u=wh.call(n,Nh),s()):u.slice()},c.range=function(n){return arguments.length?(o=Mh.call(n),s()):o.slice()},c.rangeRound=function(n){return o=Mh.call(n),a=$r,s()},c.clamp=function(n){return arguments.length?(f=!!n,s()):f},c.interpolate=function(n){return arguments.length?(a=n,s()):a},s()}function Rh(n){var t=n.domain;return n.ticks=function(n){var r=t();return N(r[0],r[r.length-1],null==n?10:n)},n.tickFormat=function(n,r){return function(n,t,r){var i,e=n[0],u=n[n.length-1],o=E(e,u,null==t?10:t);switch((r=Mo(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(u));return null!=r.precision||isNaN(i=Oo(o,a))||(r.precision=i),Ao(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=Co(o,Math.max(Math.abs(e),Math.abs(u))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=Fo(o))||(r.precision=i-2*("%"===r.type))}return xo(r)}(t(),n,r)},n.nice=function(r){null==r&&(r=10);var i,e=t(),u=0,o=e.length-1,a=e[u],f=e[o];return f<a&&(i=a,a=f,f=i,i=u,u=o,o=i),(i=S(a,f,r))>0?i=S(a=Math.floor(a/i)*i,f=Math.ceil(f/i)*i,r):i<0&&(i=S(a=Math.ceil(a*i)/i,f=Math.floor(f*i)/i,r)),i>0?(e[u]=Math.floor(a/i)*i,e[o]=Math.ceil(f/i)*i,t(e)):i<0&&(e[u]=Math.ceil(a*i)/i,e[o]=Math.floor(f*i)/i,t(e)),n},n}function Th(n,t){var r,i=0,e=(n=n.slice()).length-1,u=n[i],o=n[e];return o<u&&(r=i,i=e,e=r,r=u,u=o,o=r),n[i]=t.floor(u),n[e]=t.ceil(o),n}function jh(n,t){return(t=Math.log(t/n))?function(r){return Math.log(r/n)/t}:Ah(t)}function Dh(n,t){return n<0?function(r){return-Math.pow(-t,r)*Math.pow(-n,1-r)}:function(r){return Math.pow(t,r)*Math.pow(n,1-r)}}function Lh(n){return isFinite(n)?+("1e"+n):n<0?0:n}function Bh(n){return 10===n?Lh:n===Math.E?Math.exp:function(t){return Math.pow(n,t)}}function Hh(n){return n===Math.E?Math.log:10===n&&Math.log10||2===n&&Math.log2||(n=Math.log(n),function(t){return Math.log(t)/n})}function Ih(n){return function(t){return-n(-t)}}function Wh(n,t){return n<0?-Math.pow(-n,t):Math.pow(n,t)}function Uh(){var n=1,t=Ph((function(t,r){return(r=Wh(r,n)-(t=Wh(t,n)))?function(i){return(Wh(i,n)-t)/r}:Ah(r)}),(function(t,r){return r=Wh(r,n)-(t=Wh(t,n)),function(i){return Wh(t+r*i,1/n)}})),r=t.domain;return t.exponent=function(t){return arguments.length?(n=+t,r(r())):n},t.copy=function(){return Ch(t,Uh().exponent(n))},Rh(t)}var Gh=new Date,qh=new Date;function Yh(n,t,r,i){function e(t){return n(t=new Date(+t)),t}return e.floor=e,e.ceil=function(r){return n(r=new Date(r-1)),t(r,1),n(r),r},e.round=function(n){var t=e(n),r=e.ceil(n);return n-t<r-n?t:r},e.offset=function(n,r){return t(n=new Date(+n),null==r?1:Math.floor(r)),n},e.range=function(r,i,u){var o,a=[];if(r=e.ceil(r),u=null==u?1:Math.floor(u),!(r<i&&u>0))return a;do{a.push(o=new Date(+r)),t(r,u),n(r)}while(o<r&&r<i);return a},e.filter=function(r){return Yh((function(t){if(t>=t)for(;n(t),!r(t);)t.setTime(t-1)}),(function(n,i){if(n>=n)if(i<0)for(;++i<=0;)for(;t(n,-1),!r(n););else for(;--i>=0;)for(;t(n,1),!r(n););}))},r&&(e.count=function(t,i){return Gh.setTime(+t),qh.setTime(+i),n(Gh),n(qh),Math.floor(r(Gh,qh))},e.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?e.filter(i?function(t){return i(t)%n==0}:function(t){return e.count(0,t)%n==0}):e:null}),e}var Xh=Yh((function(){}),(function(n,t){n.setTime(+n+t)}),(function(n,t){return t-n}));Xh.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?Yh((function(t){t.setTime(Math.floor(t/n)*n)}),(function(t,r){t.setTime(+t+r*n)}),(function(t,r){return(r-t)/n})):Xh:null};var Vh=Xh.range,Jh=1e3,$h=6e4,Zh=36e5,Qh=864e5,Kh=6048e5,nv=Yh((function(n){n.setTime(Math.floor(n/Jh)*Jh)}),(function(n,t){n.setTime(+n+t*Jh)}),(function(n,t){return(t-n)/Jh}),(function(n){return n.getUTCSeconds()})),tv=nv.range,rv=Yh((function(n){n.setTime(Math.floor(n/$h)*$h)}),(function(n,t){n.setTime(+n+t*$h)}),(function(n,t){return(t-n)/$h}),(function(n){return n.getMinutes()})),iv=rv.range,ev=Yh((function(n){var t=n.getTimezoneOffset()*$h%Zh;t<0&&(t+=Zh),n.setTime(Math.floor((+n-t)/Zh)*Zh+t)}),(function(n,t){n.setTime(+n+t*Zh)}),(function(n,t){return(t-n)/Zh}),(function(n){return n.getHours()})),uv=ev.range,ov=Yh((function(n){n.setHours(0,0,0,0)}),(function(n,t){n.setDate(n.getDate()+t)}),(function(n,t){return(t-n-(t.getTimezoneOffset()-n.getTimezoneOffset())*$h)/Qh}),(function(n){return n.getDate()-1})),av=ov.range;function fv(n){return Yh((function(t){t.setDate(t.getDate()-(t.getDay()+7-n)%7),t.setHours(0,0,0,0)}),(function(n,t){n.setDate(n.getDate()+7*t)}),(function(n,t){return(t-n-(t.getTimezoneOffset()-n.getTimezoneOffset())*$h)/Kh}))}var sv=fv(0),cv=fv(1),lv=fv(2),hv=fv(3),vv=fv(4),dv=fv(5),bv=fv(6),pv=sv.range,yv=cv.range,mv=lv.range,gv=hv.range,wv=vv.range,Mv=dv.range,kv=bv.range,zv=Yh((function(n){n.setDate(1),n.setHours(0,0,0,0)}),(function(n,t){n.setMonth(n.getMonth()+t)}),(function(n,t){return t.getMonth()-n.getMonth()+12*(t.getFullYear()-n.getFullYear())}),(function(n){return n.getMonth()})),_v=zv.range,xv=Yh((function(n){n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,t){n.setFullYear(n.getFullYear()+t)}),(function(n,t){return t.getFullYear()-n.getFullYear()}),(function(n){return n.getFullYear()}));xv.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Yh((function(t){t.setFullYear(Math.floor(t.getFullYear()/n)*n),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,r){t.setFullYear(t.getFullYear()+r*n)})):null};var Av=xv.range,Nv=Yh((function(n){n.setUTCSeconds(0,0)}),(function(n,t){n.setTime(+n+t*$h)}),(function(n,t){return(t-n)/$h}),(function(n){return n.getUTCMinutes()})),Sv=Nv.range,Ev=Yh((function(n){n.setUTCMinutes(0,0,0)}),(function(n,t){n.setTime(+n+t*Zh)}),(function(n,t){return(t-n)/Zh}),(function(n){return n.getUTCHours()})),Fv=Ev.range,Ov=Yh((function(n){n.setUTCHours(0,0,0,0)}),(function(n,t){n.setUTCDate(n.getUTCDate()+t)}),(function(n,t){return(t-n)/Qh}),(function(n){return n.getUTCDate()-1})),Cv=Ov.range;function Pv(n){return Yh((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-n)%7),t.setUTCHours(0,0,0,0)}),(function(n,t){n.setUTCDate(n.getUTCDate()+7*t)}),(function(n,t){return(t-n)/Kh}))}var Rv=Pv(0),Tv=Pv(1),jv=Pv(2),Dv=Pv(3),Lv=Pv(4),Bv=Pv(5),Hv=Pv(6),Iv=Rv.range,Wv=Tv.range,Uv=jv.range,Gv=Dv.range,qv=Lv.range,Yv=Bv.range,Xv=Hv.range,Vv=Yh((function(n){n.setUTCDate(1),n.setUTCHours(0,0,0,0)}),(function(n,t){n.setUTCMonth(n.getUTCMonth()+t)}),(function(n,t){return t.getUTCMonth()-n.getUTCMonth()+12*(t.getUTCFullYear()-n.getUTCFullYear())}),(function(n){return n.getUTCMonth()})),Jv=Vv.range,$v=Yh((function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,t){n.setUTCFullYear(n.getUTCFullYear()+t)}),(function(n,t){return t.getUTCFullYear()-n.getUTCFullYear()}),(function(n){return n.getUTCFullYear()}));$v.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Yh((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/n)*n),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*n)})):null};var Zv=$v.range;function Qv(n){if(0<=n.y&&n.y<100){var t=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return t.setFullYear(n.y),t}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function Kv(n){if(0<=n.y&&n.y<100){var t=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return t.setUTCFullYear(n.y),t}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function nd(n){return{y:n,m:0,d:1,H:0,M:0,S:0,L:0}}function td(n){var t=n.dateTime,r=n.date,i=n.time,e=n.periods,u=n.days,o=n.shortDays,a=n.months,f=n.shortMonths,s=vd(e),c=dd(e),l=vd(u),h=dd(u),v=vd(o),d=dd(o),b=vd(a),p=dd(a),y=vd(f),m=dd(f),g={a:function(n){return o[n.getDay()]},A:function(n){return u[n.getDay()]},b:function(n){return f[n.getMonth()]},B:function(n){return a[n.getMonth()]},c:null,d:Rd,e:Rd,f:Bd,H:Td,I:jd,j:Dd,L:Ld,m:Hd,M:Id,p:function(n){return e[+(n.getHours()>=12)]},Q:bb,s:pb,S:Wd,u:Ud,U:Gd,V:qd,w:Yd,W:Xd,x:null,X:null,y:Vd,Y:Jd,Z:$d,"%":db},w={a:function(n){return o[n.getUTCDay()]},A:function(n){return u[n.getUTCDay()]},b:function(n){return f[n.getUTCMonth()]},B:function(n){return a[n.getUTCMonth()]},c:null,d:Zd,e:Zd,f:rb,H:Qd,I:Kd,j:nb,L:tb,m:ib,M:eb,p:function(n){return e[+(n.getUTCHours()>=12)]},Q:bb,s:pb,S:ub,u:ob,U:ab,V:fb,w:sb,W:cb,x:null,X:null,y:lb,Y:hb,Z:vb,"%":db},M={a:function(n,t,r){var i=v.exec(t.slice(r));return i?(n.w=d[i[0].toLowerCase()],r+i[0].length):-1},A:function(n,t,r){var i=l.exec(t.slice(r));return i?(n.w=h[i[0].toLowerCase()],r+i[0].length):-1},b:function(n,t,r){var i=y.exec(t.slice(r));return i?(n.m=m[i[0].toLowerCase()],r+i[0].length):-1},B:function(n,t,r){var i=b.exec(t.slice(r));return i?(n.m=p[i[0].toLowerCase()],r+i[0].length):-1},c:function(n,r,i){return _(n,t,r,i)},d:_d,e:_d,f:Fd,H:Ad,I:Ad,j:xd,L:Ed,m:zd,M:Nd,p:function(n,t,r){var i=s.exec(t.slice(r));return i?(n.p=c[i[0].toLowerCase()],r+i[0].length):-1},Q:Cd,s:Pd,S:Sd,u:pd,U:yd,V:md,w:bd,W:gd,x:function(n,t,i){return _(n,r,t,i)},X:function(n,t,r){return _(n,i,t,r)},y:Md,Y:wd,Z:kd,"%":Od};function k(n,t){return function(r){var i,e,u,o=[],a=-1,f=0,s=n.length;for(r instanceof Date||(r=new Date(+r));++a<s;)37===n.charCodeAt(a)&&(o.push(n.slice(f,a)),null!=(e=ad[i=n.charAt(++a)])?i=n.charAt(++a):e="e"===i?" ":"0",(u=t[i])&&(i=u(r,e)),o.push(i),f=a+1);return o.push(n.slice(f,a)),o.join("")}}function z(n,t){return function(r){var i,e,u=nd(1900);if(_(u,n,r+="",0)!=r.length)return null;if("Q"in u)return new Date(u.Q);if("p"in u&&(u.H=u.H%12+12*u.p),"V"in u){if(u.V<1||u.V>53)return null;"w"in u||(u.w=1),"Z"in u?(e=(i=Kv(nd(u.y))).getUTCDay(),i=e>4||0===e?Tv.ceil(i):Tv(i),i=Ov.offset(i,7*(u.V-1)),u.y=i.getUTCFullYear(),u.m=i.getUTCMonth(),u.d=i.getUTCDate()+(u.w+6)%7):(e=(i=t(nd(u.y))).getDay(),i=e>4||0===e?cv.ceil(i):cv(i),i=ov.offset(i,7*(u.V-1)),u.y=i.getFullYear(),u.m=i.getMonth(),u.d=i.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),e="Z"in u?Kv(nd(u.y)).getUTCDay():t(nd(u.y)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+7*u.W-(e+5)%7:u.w+7*u.U-(e+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,Kv(u)):t(u)}}function _(n,t,r,i){for(var e,u,o=0,a=t.length,f=r.length;o<a;){if(i>=f)return-1;if(37===(e=t.charCodeAt(o++))){if(e=t.charAt(o++),!(u=M[e in ad?t.charAt(o++):e])||(i=u(n,r,i))<0)return-1}else if(e!=r.charCodeAt(i++))return-1}return i}return g.x=k(r,g),g.X=k(i,g),g.c=k(t,g),w.x=k(r,w),w.X=k(i,w),w.c=k(t,w),{format:function(n){var t=k(n+="",g);return t.toString=function(){return n},t},parse:function(n){var t=z(n+="",Qv);return t.toString=function(){return n},t},utcFormat:function(n){var t=k(n+="",w);return t.toString=function(){return n},t},utcParse:function(n){var t=z(n,Kv);return t.toString=function(){return n},t}}}var rd,id,ed,ud,od,ad={"-":"",_:" ",0:"0"},fd=/^\s*\d+/,sd=/^%/,cd=/[\\^$*+?|[\]().{}]/g;function ld(n,t,r){var i=n<0?"-":"",e=(i?-n:n)+"",u=e.length;return i+(u<r?new Array(r-u+1).join(t)+e:e)}function hd(n){return n.replace(cd,"\\$&")}function vd(n){return new RegExp("^(?:"+n.map(hd).join("|")+")","i")}function dd(n){for(var t={},r=-1,i=n.length;++r<i;)t[n[r].toLowerCase()]=r;return t}function bd(n,t,r){var i=fd.exec(t.slice(r,r+1));return i?(n.w=+i[0],r+i[0].length):-1}function pd(n,t,r){var i=fd.exec(t.slice(r,r+1));return i?(n.u=+i[0],r+i[0].length):-1}function yd(n,t,r){var i=fd.exec(t.slice(r,r+2));return i?(n.U=+i[0],r+i[0].length):-1}function md(n,t,r){var i=fd.exec(t.slice(r,r+2));return i?(n.V=+i[0],r+i[0].length):-1}function gd(n,t,r){var i=fd.exec(t.slice(r,r+2));return i?(n.W=+i[0],r+i[0].length):-1}function wd(n,t,r){var i=fd.exec(t.slice(r,r+4));return i?(n.y=+i[0],r+i[0].length):-1}function Md(n,t,r){var i=fd.exec(t.slice(r,r+2));return i?(n.y=+i[0]+(+i[0]>68?1900:2e3),r+i[0].length):-1}function kd(n,t,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return i?(n.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function zd(n,t,r){var i=fd.exec(t.slice(r,r+2));return i?(n.m=i[0]-1,r+i[0].length):-1}function _d(n,t,r){var i=fd.exec(t.slice(r,r+2));return i?(n.d=+i[0],r+i[0].length):-1}function xd(n,t,r){var i=fd.exec(t.slice(r,r+3));return i?(n.m=0,n.d=+i[0],r+i[0].length):-1}function Ad(n,t,r){var i=fd.exec(t.slice(r,r+2));return i?(n.H=+i[0],r+i[0].length):-1}function Nd(n,t,r){var i=fd.exec(t.slice(r,r+2));return i?(n.M=+i[0],r+i[0].length):-1}function Sd(n,t,r){var i=fd.exec(t.slice(r,r+2));return i?(n.S=+i[0],r+i[0].length):-1}function Ed(n,t,r){var i=fd.exec(t.slice(r,r+3));return i?(n.L=+i[0],r+i[0].length):-1}function Fd(n,t,r){var i=fd.exec(t.slice(r,r+6));return i?(n.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function Od(n,t,r){var i=sd.exec(t.slice(r,r+1));return i?r+i[0].length:-1}function Cd(n,t,r){var i=fd.exec(t.slice(r));return i?(n.Q=+i[0],r+i[0].length):-1}function Pd(n,t,r){var i=fd.exec(t.slice(r));return i?(n.Q=1e3*+i[0],r+i[0].length):-1}function Rd(n,t){return ld(n.getDate(),t,2)}function Td(n,t){return ld(n.getHours(),t,2)}function jd(n,t){return ld(n.getHours()%12||12,t,2)}function Dd(n,t){return ld(1+ov.count(xv(n),n),t,3)}function Ld(n,t){return ld(n.getMilliseconds(),t,3)}function Bd(n,t){return Ld(n,t)+"000"}function Hd(n,t){return ld(n.getMonth()+1,t,2)}function Id(n,t){return ld(n.getMinutes(),t,2)}function Wd(n,t){return ld(n.getSeconds(),t,2)}function Ud(n){var t=n.getDay();return 0===t?7:t}function Gd(n,t){return ld(sv.count(xv(n),n),t,2)}function qd(n,t){var r=n.getDay();return n=r>=4||0===r?vv(n):vv.ceil(n),ld(vv.count(xv(n),n)+(4===xv(n).getDay()),t,2)}function Yd(n){return n.getDay()}function Xd(n,t){return ld(cv.count(xv(n),n),t,2)}function Vd(n,t){return ld(n.getFullYear()%100,t,2)}function Jd(n,t){return ld(n.getFullYear()%1e4,t,4)}function $d(n){var t=n.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ld(t/60|0,"0",2)+ld(t%60,"0",2)}function Zd(n,t){return ld(n.getUTCDate(),t,2)}function Qd(n,t){return ld(n.getUTCHours(),t,2)}function Kd(n,t){return ld(n.getUTCHours()%12||12,t,2)}function nb(n,t){return ld(1+Ov.count($v(n),n),t,3)}function tb(n,t){return ld(n.getUTCMilliseconds(),t,3)}function rb(n,t){return tb(n,t)+"000"}function ib(n,t){return ld(n.getUTCMonth()+1,t,2)}function eb(n,t){return ld(n.getUTCMinutes(),t,2)}function ub(n,t){return ld(n.getUTCSeconds(),t,2)}function ob(n){var t=n.getUTCDay();return 0===t?7:t}function ab(n,t){return ld(Rv.count($v(n),n),t,2)}function fb(n,t){var r=n.getUTCDay();return n=r>=4||0===r?Lv(n):Lv.ceil(n),ld(Lv.count($v(n),n)+(4===$v(n).getUTCDay()),t,2)}function sb(n){return n.getUTCDay()}function cb(n,t){return ld(Tv.count($v(n),n),t,2)}function lb(n,t){return ld(n.getUTCFullYear()%100,t,2)}function hb(n,t){return ld(n.getUTCFullYear()%1e4,t,4)}function vb(){return"+0000"}function db(){return"%"}function bb(n){return+n}function pb(n){return Math.floor(+n/1e3)}function yb(n){return rd=td(n),id=rd.format,ed=rd.parse,ud=rd.utcFormat,od=rd.utcParse,rd}yb({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var mb="%Y-%m-%dT%H:%M:%S.%LZ",gb=Date.prototype.toISOString?function(n){return n.toISOString()}:ud(mb),wb=+new Date("2000-01-01T00:00:00.000Z")?function(n){var t=new Date(n);return isNaN(t)?null:t}:od(mb),Mb=31536e6;function kb(n){return new Date(n)}function zb(n){return n instanceof Date?+n:+new Date(+n)}function _b(n,t,r,i,e,u,o,a,f){var c=Ph(Eh,Gr),l=c.invert,h=c.domain,v=f(".%L"),d=f(":%S"),b=f("%I:%M"),p=f("%I %p"),y=f("%a %d"),m=f("%b %d"),g=f("%B"),w=f("%Y"),M=[[o,1,1e3],[o,5,5e3],[o,15,15e3],[o,30,3e4],[u,1,6e4],[u,5,3e5],[u,15,9e5],[u,30,18e5],[e,1,36e5],[e,3,108e5],[e,6,216e5],[e,12,432e5],[i,1,864e5],[i,2,1728e5],[r,1,6048e5],[t,1,2592e6],[t,3,7776e6],[n,1,Mb]];function k(a){return(o(a)<a?v:u(a)<a?d:e(a)<a?b:i(a)<a?p:t(a)<a?r(a)<a?y:m:n(a)<a?g:w)(a)}function z(t,r,i,e){if(null==t&&(t=10),"number"==typeof t){var u=Math.abs(i-r)/t,o=s((function(n){return n[2]})).right(M,u);o===M.length?(e=E(r/Mb,i/Mb,t),t=n):o?(e=(o=M[u/M[o-1][2]<M[o][2]/u?o-1:o])[1],t=o[0]):(e=Math.max(E(r,i,t),1),t=a)}return null==e?t:t.every(e)}return c.invert=function(n){return new Date(l(n))},c.domain=function(n){return arguments.length?h(wh.call(n,zb)):h().map(kb)},c.ticks=function(n,t){var r,i=h(),e=i[0],u=i[i.length-1],o=u<e;return o&&(r=e,e=u,u=r),r=(r=z(n,e,u,t))?r.range(e,u+1):[],o?r.reverse():r},c.tickFormat=function(n,t){return null==t?k:f(t)},c.nice=function(n,t){var r=h();return(n=z(n,r[0],r[r.length-1],t))?h(Th(r,n)):c},c.copy=function(){return Ch(c,_b(n,t,r,i,e,u,o,a,f))},c}function xb(n){return n.match(/.{6}/g).map((function(n){return"#"+n}))}const Ab=xb("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Nb=xb("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),Sb=xb("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),Eb=xb("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),Fb=wi(Er(300,.5,0),Er(-240,.5,1));var Ob=wi(Er(-100,.75,.35),Er(80,1.5,.8)),Cb=wi(Er(260,.75,.35),Er(80,1.5,.8)),Pb=Er();function Rb(n){var t=n.length;return function(r){return n[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}const Tb=Rb(xb("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var jb=Rb(xb("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Db=Rb(xb("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Lb=Rb(xb("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Bb(n){return function(){return n}}var Hb=Math.abs,Ib=Math.atan2,Wb=Math.cos,Ub=Math.max,Gb=Math.min,qb=Math.sin,Yb=Math.sqrt,Xb=1e-12,Vb=Math.PI,Jb=Vb/2,$b=2*Vb;function Zb(n){return n>1?0:n<-1?Vb:Math.acos(n)}function Qb(n){return n>=1?Jb:n<=-1?-Jb:Math.asin(n)}function Kb(n){return n.innerRadius}function np(n){return n.outerRadius}function tp(n){return n.startAngle}function rp(n){return n.endAngle}function ip(n){return n&&n.padAngle}function ep(n,t,r,i,e,u,o,a){var f=r-n,s=i-t,c=o-e,l=a-u,h=(c*(t-u)-l*(n-e))/(l*f-c*s);return[n+h*f,t+h*s]}function up(n,t,r,i,e,u,o){var a=n-r,f=t-i,s=(o?u:-u)/Yb(a*a+f*f),c=s*f,l=-s*a,h=n+c,v=t+l,d=r+c,b=i+l,p=(h+d)/2,y=(v+b)/2,m=d-h,g=b-v,w=m*m+g*g,M=e-u,k=h*b-d*v,z=(g<0?-1:1)*Yb(Ub(0,M*M*w-k*k)),_=(k*g-m*z)/w,x=(-k*m-g*z)/w,A=(k*g+m*z)/w,N=(-k*m+g*z)/w,S=_-p,E=x-y,F=A-p,O=N-y;return S*S+E*E>F*F+O*O&&(_=A,x=N),{cx:_,cy:x,x01:-c,y01:-l,x11:_*(e/M-1),y11:x*(e/M-1)}}function op(n){this._context=n}function ap(n){return new op(n)}function fp(n){return n[0]}function sp(n){return n[1]}function cp(){var n=fp,t=sp,r=Bb(!0),i=null,e=ap,u=null;function o(o){var a,f,s,c=o.length,l=!1;for(null==i&&(u=e(s=Mu())),a=0;a<=c;++a)!(a<c&&r(f=o[a],a,o))===l&&((l=!l)?u.lineStart():u.lineEnd()),l&&u.point(+n(f,a,o),+t(f,a,o));if(s)return u=null,s+""||null}return o.x=function(t){return arguments.length?(n="function"==typeof t?t:Bb(+t),o):n},o.y=function(n){return arguments.length?(t="function"==typeof n?n:Bb(+n),o):t},o.defined=function(n){return arguments.length?(r="function"==typeof n?n:Bb(!!n),o):r},o.curve=function(n){return arguments.length?(e=n,null!=i&&(u=e(i)),o):e},o.context=function(n){return arguments.length?(null==n?i=u=null:u=e(i=n),o):i},o}function lp(){var n=fp,t=null,r=Bb(0),i=sp,e=Bb(!0),u=null,o=ap,a=null;function f(f){var s,c,l,h,v,d=f.length,b=!1,p=new Array(d),y=new Array(d);for(null==u&&(a=o(v=Mu())),s=0;s<=d;++s){if(!(s<d&&e(h=f[s],s,f))===b)if(b=!b)c=s,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),l=s-1;l>=c;--l)a.point(p[l],y[l]);a.lineEnd(),a.areaEnd()}b&&(p[s]=+n(h,s,f),y[s]=+r(h,s,f),a.point(t?+t(h,s,f):p[s],i?+i(h,s,f):y[s]))}if(v)return a=null,v+""||null}function s(){return cp().defined(e).curve(o).context(u)}return f.x=function(r){return arguments.length?(n="function"==typeof r?r:Bb(+r),t=null,f):n},f.x0=function(t){return arguments.length?(n="function"==typeof t?t:Bb(+t),f):n},f.x1=function(n){return arguments.length?(t=null==n?null:"function"==typeof n?n:Bb(+n),f):t},f.y=function(n){return arguments.length?(r="function"==typeof n?n:Bb(+n),i=null,f):r},f.y0=function(n){return arguments.length?(r="function"==typeof n?n:Bb(+n),f):r},f.y1=function(n){return arguments.length?(i=null==n?null:"function"==typeof n?n:Bb(+n),f):i},f.lineX0=f.lineY0=function(){return s().x(n).y(r)},f.lineY1=function(){return s().x(n).y(i)},f.lineX1=function(){return s().x(t).y(r)},f.defined=function(n){return arguments.length?(e="function"==typeof n?n:Bb(!!n),f):e},f.curve=function(n){return arguments.length?(o=n,null!=u&&(a=o(u)),f):o},f.context=function(n){return arguments.length?(null==n?u=a=null:a=o(u=n),f):u},f}function hp(n,t){return t<n?-1:t>n?1:t>=n?0:NaN}function vp(n){return n}op.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,t):this._context.moveTo(n,t);break;case 1:this._point=2;default:this._context.lineTo(n,t)}}};var dp=pp(ap);function bp(n){this._curve=n}function pp(n){function t(t){return new bp(n(t))}return t._curve=n,t}function yp(n){var t=n.curve;return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n.curve=function(n){return arguments.length?t(pp(n)):t()._curve},n}function mp(){return yp(cp().curve(dp))}function gp(){var n=lp().curve(dp),t=n.curve,r=n.lineX0,i=n.lineX1,e=n.lineY0,u=n.lineY1;return n.angle=n.x,delete n.x,n.startAngle=n.x0,delete n.x0,n.endAngle=n.x1,delete n.x1,n.radius=n.y,delete n.y,n.innerRadius=n.y0,delete n.y0,n.outerRadius=n.y1,delete n.y1,n.lineStartAngle=function(){return yp(r())},delete n.lineX0,n.lineEndAngle=function(){return yp(i())},delete n.lineX1,n.lineInnerRadius=function(){return yp(e())},delete n.lineY0,n.lineOuterRadius=function(){return yp(u())},delete n.lineY1,n.curve=function(n){return arguments.length?t(pp(n)):t()._curve},n}function wp(n,t){return[(t=+t)*Math.cos(n-=Math.PI/2),t*Math.sin(n)]}bp.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(n,t){this._curve.point(t*Math.sin(n),t*-Math.cos(n))}};var Mp=Array.prototype.slice;function kp(n){return n.source}function zp(n){return n.target}function _p(n){var t=kp,r=zp,i=fp,e=sp,u=null;function o(){var o,a=Mp.call(arguments),f=t.apply(this,a),s=r.apply(this,a);if(u||(u=o=Mu()),n(u,+i.apply(this,(a[0]=f,a)),+e.apply(this,a),+i.apply(this,(a[0]=s,a)),+e.apply(this,a)),o)return u=null,o+""||null}return o.source=function(n){return arguments.length?(t=n,o):t},o.target=function(n){return arguments.length?(r=n,o):r},o.x=function(n){return arguments.length?(i="function"==typeof n?n:Bb(+n),o):i},o.y=function(n){return arguments.length?(e="function"==typeof n?n:Bb(+n),o):e},o.context=function(n){return arguments.length?(u=null==n?null:n,o):u},o}function xp(n,t,r,i,e){n.moveTo(t,r),n.bezierCurveTo(t=(t+i)/2,r,t,e,i,e)}function Ap(n,t,r,i,e){n.moveTo(t,r),n.bezierCurveTo(t,r=(r+e)/2,i,r,i,e)}function Np(n,t,r,i,e){var u=wp(t,r),o=wp(t,r=(r+e)/2),a=wp(i,r),f=wp(i,e);n.moveTo(u[0],u[1]),n.bezierCurveTo(o[0],o[1],a[0],a[1],f[0],f[1])}const Sp={draw:function(n,t){var r=Math.sqrt(t/Vb);n.moveTo(r,0),n.arc(0,0,r,0,$b)}},Ep={draw:function(n,t){var r=Math.sqrt(t/5)/2;n.moveTo(-3*r,-r),n.lineTo(-r,-r),n.lineTo(-r,-3*r),n.lineTo(r,-3*r),n.lineTo(r,-r),n.lineTo(3*r,-r),n.lineTo(3*r,r),n.lineTo(r,r),n.lineTo(r,3*r),n.lineTo(-r,3*r),n.lineTo(-r,r),n.lineTo(-3*r,r),n.closePath()}};var Fp=Math.sqrt(1/3),Op=2*Fp;const Cp={draw:function(n,t){var r=Math.sqrt(t/Op),i=r*Fp;n.moveTo(0,-r),n.lineTo(i,0),n.lineTo(0,r),n.lineTo(-i,0),n.closePath()}};var Pp=Math.sin(Vb/10)/Math.sin(7*Vb/10),Rp=Math.sin($b/10)*Pp,Tp=-Math.cos($b/10)*Pp;const jp={draw:function(n,t){var r=Math.sqrt(.8908130915292852*t),i=Rp*r,e=Tp*r;n.moveTo(0,-r),n.lineTo(i,e);for(var u=1;u<5;++u){var o=$b*u/5,a=Math.cos(o),f=Math.sin(o);n.lineTo(f*r,-a*r),n.lineTo(a*i-f*e,f*i+a*e)}n.closePath()}},Dp={draw:function(n,t){var r=Math.sqrt(t),i=-r/2;n.rect(i,i,r,r)}};var Lp=Math.sqrt(3);const Bp={draw:function(n,t){var r=-Math.sqrt(t/(3*Lp));n.moveTo(0,2*r),n.lineTo(-Lp*r,-r),n.lineTo(Lp*r,-r),n.closePath()}};var Hp=-.5,Ip=Math.sqrt(3)/2,Wp=1/Math.sqrt(12),Up=3*(Wp/2+1);const Gp={draw:function(n,t){var r=Math.sqrt(t/Up),i=r/2,e=r*Wp,u=i,o=r*Wp+r,a=-u,f=o;n.moveTo(i,e),n.lineTo(u,o),n.lineTo(a,f),n.lineTo(Hp*i-Ip*e,Ip*i+Hp*e),n.lineTo(Hp*u-Ip*o,Ip*u+Hp*o),n.lineTo(Hp*a-Ip*f,Ip*a+Hp*f),n.lineTo(Hp*i+Ip*e,Hp*e-Ip*i),n.lineTo(Hp*u+Ip*o,Hp*o-Ip*u),n.lineTo(Hp*a+Ip*f,Hp*f-Ip*a),n.closePath()}};var qp=[Sp,Ep,Cp,Dp,jp,Bp,Gp];function Yp(){}function Xp(n,t,r){n._context.bezierCurveTo((2*n._x0+n._x1)/3,(2*n._y0+n._y1)/3,(n._x0+2*n._x1)/3,(n._y0+2*n._y1)/3,(n._x0+4*n._x1+t)/6,(n._y0+4*n._y1+r)/6)}function Vp(n){this._context=n}function Jp(n){this._context=n}function $p(n){this._context=n}function Zp(n,t){this._basis=new Vp(n),this._beta=t}Vp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Xp(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,t):this._context.moveTo(n,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Xp(this,n,t)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=t}},Jp.prototype={areaStart:Yp,areaEnd:Yp,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1,this._x2=n,this._y2=t;break;case 1:this._point=2,this._x3=n,this._y3=t;break;case 2:this._point=3,this._x4=n,this._y4=t,this._context.moveTo((this._x0+4*this._x1+n)/6,(this._y0+4*this._y1+t)/6);break;default:Xp(this,n,t)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=t}},$p.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+n)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:Xp(this,n,t)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=t}},Zp.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var n=this._x,t=this._y,r=n.length-1;if(r>0)for(var i,e=n[0],u=t[0],o=n[r]-e,a=t[r]-u,f=-1;++f<=r;)this._basis.point(this._beta*n[f]+(1-this._beta)*(e+(i=f/r)*o),this._beta*t[f]+(1-this._beta)*(u+i*a));this._x=this._y=null,this._basis.lineEnd()},point:function(n,t){this._x.push(+n),this._y.push(+t)}};const Qp=function n(t){function r(n){return 1===t?new Vp(n):new Zp(n,t)}return r.beta=function(t){return n(+t)},r}(.85);function Kp(n,t,r){n._context.bezierCurveTo(n._x1+n._k*(n._x2-n._x0),n._y1+n._k*(n._y2-n._y0),n._x2+n._k*(n._x1-t),n._y2+n._k*(n._y1-r),n._x2,n._y2)}function ny(n,t){this._context=n,this._k=(1-t)/6}ny.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Kp(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,t):this._context.moveTo(n,t);break;case 1:this._point=2,this._x1=n,this._y1=t;break;case 2:this._point=3;default:Kp(this,n,t)}this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const ty=function n(t){function r(n){return new ny(n,t)}return r.tension=function(t){return n(+t)},r}(0);function ry(n,t){this._context=n,this._k=(1-t)/6}ry.prototype={areaStart:Yp,areaEnd:Yp,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1,this._x3=n,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=n,this._y4=t);break;case 2:this._point=3,this._x5=n,this._y5=t;break;default:Kp(this,n,t)}this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const iy=function n(t){function r(n){return new ry(n,t)}return r.tension=function(t){return n(+t)},r}(0);function ey(n,t){this._context=n,this._k=(1-t)/6}ey.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Kp(this,n,t)}this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const uy=function n(t){function r(n){return new ey(n,t)}return r.tension=function(t){return n(+t)},r}(0);function oy(n,t,r){var i=n._x1,e=n._y1,u=n._x2,o=n._y2;if(n._l01_a>Xb){var a=2*n._l01_2a+3*n._l01_a*n._l12_a+n._l12_2a,f=3*n._l01_a*(n._l01_a+n._l12_a);i=(i*a-n._x0*n._l12_2a+n._x2*n._l01_2a)/f,e=(e*a-n._y0*n._l12_2a+n._y2*n._l01_2a)/f}if(n._l23_a>Xb){var s=2*n._l23_2a+3*n._l23_a*n._l12_a+n._l12_2a,c=3*n._l23_a*(n._l23_a+n._l12_a);u=(u*s+n._x1*n._l23_2a-t*n._l12_2a)/c,o=(o*s+n._y1*n._l23_2a-r*n._l12_2a)/c}n._context.bezierCurveTo(i,e,u,o,n._x2,n._y2)}function ay(n,t){this._context=n,this._alpha=t}ay.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(n,t){if(n=+n,t=+t,this._point){var r=this._x2-n,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(n,t):this._context.moveTo(n,t);break;case 1:this._point=2;break;case 2:this._point=3;default:oy(this,n,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const fy=function n(t){function r(n){return t?new ay(n,t):new ny(n,0)}return r.alpha=function(t){return n(+t)},r}(.5);function sy(n,t){this._context=n,this._alpha=t}sy.prototype={areaStart:Yp,areaEnd:Yp,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(n,t){if(n=+n,t=+t,this._point){var r=this._x2-n,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=n,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=n,this._y4=t);break;case 2:this._point=3,this._x5=n,this._y5=t;break;default:oy(this,n,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const cy=function n(t){function r(n){return t?new sy(n,t):new ry(n,0)}return r.alpha=function(t){return n(+t)},r}(.5);function ly(n,t){this._context=n,this._alpha=t}ly.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(n,t){if(n=+n,t=+t,this._point){var r=this._x2-n,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:oy(this,n,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const hy=function n(t){function r(n){return t?new ly(n,t):new ey(n,0)}return r.alpha=function(t){return n(+t)},r}(.5);function vy(n){this._context=n}function dy(n){return n<0?-1:1}function by(n,t,r){var i=n._x1-n._x0,e=t-n._x1,u=(n._y1-n._y0)/(i||e<0&&-0),o=(r-n._y1)/(e||i<0&&-0),a=(u*e+o*i)/(i+e);return(dy(u)+dy(o))*Math.min(Math.abs(u),Math.abs(o),.5*Math.abs(a))||0}function py(n,t){var r=n._x1-n._x0;return r?(3*(n._y1-n._y0)/r-t)/2:t}function yy(n,t,r){var i=n._x0,e=n._x1,u=n._y1,o=(e-i)/3;n._context.bezierCurveTo(i+o,n._y0+o*t,e-o,u-o*r,e,u)}function my(n){this._context=n}function gy(n){this._context=new wy(n)}function wy(n){this._context=n}function My(n){this._context=n}function ky(n){var t,r,i=n.length-1,e=new Array(i),u=new Array(i),o=new Array(i);for(e[0]=0,u[0]=2,o[0]=n[0]+2*n[1],t=1;t<i-1;++t)e[t]=1,u[t]=4,o[t]=4*n[t]+2*n[t+1];for(e[i-1]=2,u[i-1]=7,o[i-1]=8*n[i-1]+n[i],t=1;t<i;++t)u[t]-=r=e[t]/u[t-1],o[t]-=r*o[t-1];for(e[i-1]=o[i-1]/u[i-1],t=i-2;t>=0;--t)e[t]=(o[t]-e[t+1])/u[t];for(u[i-1]=(n[i]+e[i-1])/2,t=0;t<i-1;++t)u[t]=2*n[t+1]-e[t+1];return[e,u]}function zy(n,t){this._context=n,this._t=t}function _y(n,t){if((e=n.length)>1)for(var r,i,e,u=1,o=n[t[0]],a=o.length;u<e;++u)for(i=o,o=n[t[u]],r=0;r<a;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function xy(n){for(var t=n.length,r=new Array(t);--t>=0;)r[t]=t;return r}function Ay(n,t){return n[t]}function Ny(n){var t=n.map(Sy);return xy(n).sort((function(n,r){return t[n]-t[r]}))}function Sy(n){for(var t,r=0,i=-1,e=n.length;++i<e;)(t=+n[i][1])&&(r+=t);return r}function Ey(n){return function(){return n}}function Fy(n){return n[0]}function Oy(n){return n[1]}function Cy(){this._=null}function Py(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function Ry(n,t){var r=t,i=t.R,e=r.U;e?e.L===r?e.L=i:e.R=i:n._=i,i.U=e,r.U=i,r.R=i.L,r.R&&(r.R.U=r),i.L=r}function Ty(n,t){var r=t,i=t.L,e=r.U;e?e.L===r?e.L=i:e.R=i:n._=i,i.U=e,r.U=i,r.L=i.R,r.L&&(r.L.U=r),i.R=r}function jy(n){for(;n.L;)n=n.L;return n}function Dy(n,t,r,i){var e=[null,null],u=am.push(e)-1;return e.left=n,e.right=t,r&&By(e,n,t,r),i&&By(e,t,n,i),um[n.index].halfedges.push(u),um[t.index].halfedges.push(u),e}function Ly(n,t,r){var i=[t,r];return i.left=n,i}function By(n,t,r,i){n[0]||n[1]?n.left===r?n[1]=i:n[0]=i:(n[0]=i,n.left=t,n.right=r)}function Hy(n,t,r,i,e){var u,o=n[0],a=n[1],f=o[0],s=o[1],c=0,l=1,h=a[0]-f,v=a[1]-s;if(u=t-f,h||!(u>0)){if(u/=h,h<0){if(u<c)return;u<l&&(l=u)}else if(h>0){if(u>l)return;u>c&&(c=u)}if(u=i-f,h||!(u<0)){if(u/=h,h<0){if(u>l)return;u>c&&(c=u)}else if(h>0){if(u<c)return;u<l&&(l=u)}if(u=r-s,v||!(u>0)){if(u/=v,v<0){if(u<c)return;u<l&&(l=u)}else if(v>0){if(u>l)return;u>c&&(c=u)}if(u=e-s,v||!(u<0)){if(u/=v,v<0){if(u>l)return;u>c&&(c=u)}else if(v>0){if(u<c)return;u<l&&(l=u)}return!(c>0||l<1)||(c>0&&(n[0]=[f+c*h,s+c*v]),l<1&&(n[1]=[f+l*h,s+l*v]),!0)}}}}}function Iy(n,t,r,i,e){var u=n[1];if(u)return!0;var o,a,f=n[0],s=n.left,c=n.right,l=s[0],h=s[1],v=c[0],d=c[1],b=(l+v)/2;if(d===h){if(b<t||b>=i)return;if(l>v){if(f){if(f[1]>=e)return}else f=[b,r];u=[b,e]}else{if(f){if(f[1]<r)return}else f=[b,e];u=[b,r]}}else if(a=(h+d)/2-(o=(l-v)/(d-h))*b,o<-1||o>1)if(l>v){if(f){if(f[1]>=e)return}else f=[(r-a)/o,r];u=[(e-a)/o,e]}else{if(f){if(f[1]<r)return}else f=[(e-a)/o,e];u=[(r-a)/o,r]}else if(h<d){if(f){if(f[0]>=i)return}else f=[t,o*t+a];u=[i,o*i+a]}else{if(f){if(f[0]<t)return}else f=[i,o*i+a];u=[t,o*t+a]}return n[0]=f,n[1]=u,!0}function Wy(n,t){var r=n.site,i=t.left,e=t.right;return r===e&&(e=i,i=r),e?Math.atan2(e[1]-i[1],e[0]-i[0]):(r===i?(i=t[1],e=t[0]):(i=t[0],e=t[1]),Math.atan2(i[0]-e[0],e[1]-i[1]))}function Uy(n,t){return t[+(t.left!==n.site)]}function Gy(n,t){return t[+(t.left===n.site)]}vy.prototype={areaStart:Yp,areaEnd:Yp,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(n,t){n=+n,t=+t,this._point?this._context.lineTo(n,t):(this._point=1,this._context.moveTo(n,t))}},my.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:yy(this,this._t0,py(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(n,t){var r=NaN;if(t=+t,(n=+n)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(n,t):this._context.moveTo(n,t);break;case 1:this._point=2;break;case 2:this._point=3,yy(this,py(this,r=by(this,n,t)),r);break;default:yy(this,this._t0,r=by(this,n,t))}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=t,this._t0=r}}},(gy.prototype=Object.create(my.prototype)).point=function(n,t){my.prototype.point.call(this,t,n)},wy.prototype={moveTo:function(n,t){this._context.moveTo(t,n)},closePath:function(){this._context.closePath()},lineTo:function(n,t){this._context.lineTo(t,n)},bezierCurveTo:function(n,t,r,i,e,u){this._context.bezierCurveTo(t,n,i,r,u,e)}},My.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var n=this._x,t=this._y,r=n.length;if(r)if(this._line?this._context.lineTo(n[0],t[0]):this._context.moveTo(n[0],t[0]),2===r)this._context.lineTo(n[1],t[1]);else for(var i=ky(n),e=ky(t),u=0,o=1;o<r;++u,++o)this._context.bezierCurveTo(i[0][u],e[0][u],i[1][u],e[1][u],n[o],t[o]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(n,t){this._x.push(+n),this._y.push(+t)}},zy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(n,t){switch(n=+n,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,t):this._context.moveTo(n,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(n,t);else{var r=this._x*(1-this._t)+n*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=n,this._y=t}},Cy.prototype={constructor:Cy,insert:function(n,t){var r,i,e;if(n){if(t.P=n,t.N=n.N,n.N&&(n.N.P=t),n.N=t,n.R){for(n=n.R;n.L;)n=n.L;n.L=t}else n.R=t;r=n}else this._?(n=jy(this._),t.P=null,t.N=n,n.P=n.L=t,r=n):(t.P=t.N=null,this._=t,r=null);for(t.L=t.R=null,t.U=r,t.C=!0,n=t;r&&r.C;)r===(i=r.U).L?(e=i.R)&&e.C?(r.C=e.C=!1,i.C=!0,n=i):(n===r.R&&(Ry(this,r),r=(n=r).U),r.C=!1,i.C=!0,Ty(this,i)):(e=i.L)&&e.C?(r.C=e.C=!1,i.C=!0,n=i):(n===r.L&&(Ty(this,r),r=(n=r).U),r.C=!1,i.C=!0,Ry(this,i)),r=n.U;this._.C=!1},remove:function(n){n.N&&(n.N.P=n.P),n.P&&(n.P.N=n.N),n.N=n.P=null;var t,r,i,e=n.U,u=n.L,o=n.R;if(r=u?o?jy(o):u:o,e?e.L===n?e.L=r:e.R=r:this._=r,u&&o?(i=r.C,r.C=n.C,r.L=u,u.U=r,r!==o?(e=r.U,r.U=n.U,e.L=n=r.R,r.R=o,o.U=r):(r.U=e,e=r,n=r.R)):(i=n.C,n=r),n&&(n.U=e),!i)if(n&&n.C)n.C=!1;else{do{if(n===this._)break;if(n===e.L){if((t=e.R).C&&(t.C=!1,e.C=!0,Ry(this,e),t=e.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,Ty(this,t),t=e.R),t.C=e.C,e.C=t.R.C=!1,Ry(this,e),n=this._;break}}else if((t=e.L).C&&(t.C=!1,e.C=!0,Ty(this,e),t=e.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,Ry(this,t),t=e.L),t.C=e.C,e.C=t.L.C=!1,Ty(this,e),n=this._;break}t.C=!0,n=e,e=e.U}while(!n.C);n&&(n.C=!1)}}};var qy,Yy=[];function Xy(){Py(this),this.x=this.y=this.arc=this.site=this.cy=null}function Vy(n){var t=n.P,r=n.N;if(t&&r){var i=t.site,e=n.site,u=r.site;if(i!==u){var o=e[0],a=e[1],f=i[0]-o,s=i[1]-a,c=u[0]-o,l=u[1]-a,h=2*(f*l-s*c);if(!(h>=-sm)){var v=f*f+s*s,d=c*c+l*l,b=(l*v-s*d)/h,p=(f*d-c*v)/h,y=Yy.pop()||new Xy;y.arc=n,y.site=e,y.x=b+o,y.y=(y.cy=p+a)+Math.sqrt(b*b+p*p),n.circle=y;for(var m=null,g=om._;g;)if(y.y<g.y||y.y===g.y&&y.x<=g.x){if(!g.L){m=g.P;break}g=g.L}else{if(!g.R){m=g;break}g=g.R}om.insert(m,y),m||(qy=y)}}}}function Jy(n){var t=n.circle;t&&(t.P||(qy=t.N),om.remove(t),Yy.push(t),Py(t),n.circle=null)}var $y=[];function Zy(){Py(this),this.edge=this.site=this.circle=null}function Qy(n){var t=$y.pop()||new Zy;return t.site=n,t}function Ky(n){Jy(n),em.remove(n),$y.push(n),Py(n)}function nm(n){var t=n.circle,r=t.x,i=t.cy,e=[r,i],u=n.P,o=n.N,a=[n];Ky(n);for(var f=u;f.circle&&Math.abs(r-f.circle.x)<fm&&Math.abs(i-f.circle.cy)<fm;)u=f.P,a.unshift(f),Ky(f),f=u;a.unshift(f),Jy(f);for(var s=o;s.circle&&Math.abs(r-s.circle.x)<fm&&Math.abs(i-s.circle.cy)<fm;)o=s.N,a.push(s),Ky(s),s=o;a.push(s),Jy(s);var c,l=a.length;for(c=1;c<l;++c)By((s=a[c]).edge,(f=a[c-1]).site,s.site,e);(s=a[l-1]).edge=Dy((f=a[0]).site,s.site,null,e),Vy(f),Vy(s)}function tm(n){for(var t,r,i,e,u=n[0],o=n[1],a=em._;a;)if((i=rm(a,o)-u)>fm)a=a.L;else{if(!((e=u-im(a,o))>fm)){i>-fm?(t=a.P,r=a):e>-fm?(t=a,r=a.N):t=r=a;break}if(!a.R){t=a;break}a=a.R}!function(n){um[n.index]={site:n,halfedges:[]}}(n);var f=Qy(n);if(em.insert(t,f),t||r){if(t===r)return Jy(t),r=Qy(t.site),em.insert(f,r),f.edge=r.edge=Dy(t.site,f.site),Vy(t),void Vy(r);if(r){Jy(t),Jy(r);var s=t.site,c=s[0],l=s[1],h=n[0]-c,v=n[1]-l,d=r.site,b=d[0]-c,p=d[1]-l,y=2*(h*p-v*b),m=h*h+v*v,g=b*b+p*p,w=[(p*m-v*g)/y+c,(h*g-b*m)/y+l];By(r.edge,s,d,w),f.edge=Dy(s,n,null,w),r.edge=Dy(n,d,null,w),Vy(t),Vy(r)}else f.edge=Dy(t.site,f.site)}}function rm(n,t){var r=n.site,i=r[0],e=r[1],u=e-t;if(!u)return i;var o=n.P;if(!o)return-1/0;var a=(r=o.site)[0],f=r[1],s=f-t;if(!s)return a;var c=a-i,l=1/u-1/s,h=c/s;return l?(-h+Math.sqrt(h*h-2*l*(c*c/(-2*s)-f+s/2+e-u/2)))/l+i:(i+a)/2}function im(n,t){var r=n.N;if(r)return rm(r,t);var i=n.site;return i[1]===t?i[0]:1/0}var em,um,om,am,fm=1e-6,sm=1e-12;function cm(n,t,r){return(n[0]-r[0])*(t[1]-n[1])-(n[0]-t[0])*(r[1]-n[1])}function lm(n,t){return t[1]-n[1]||t[0]-n[0]}function hm(n,t){var r,i,e,u=n.sort(lm).pop();for(am=[],um=new Array(n.length),em=new Cy,om=new Cy;;)if(e=qy,u&&(!e||u[1]<e.y||u[1]===e.y&&u[0]<e.x))u[0]===r&&u[1]===i||(tm(u),r=u[0],i=u[1]),u=n.pop();else{if(!e)break;nm(e.arc)}if(function(){for(var n,t,r,i,e=0,u=um.length;e<u;++e)if((n=um[e])&&(i=(t=n.halfedges).length)){var o=new Array(i),a=new Array(i);for(r=0;r<i;++r)o[r]=r,a[r]=Wy(n,am[t[r]]);for(o.sort((function(n,t){return a[t]-a[n]})),r=0;r<i;++r)a[r]=t[o[r]];for(r=0;r<i;++r)t[r]=a[r]}}(),t){var o=+t[0][0],a=+t[0][1],f=+t[1][0],s=+t[1][1];!function(n,t,r,i){for(var e,u=am.length;u--;)Iy(e=am[u],n,t,r,i)&&Hy(e,n,t,r,i)&&(Math.abs(e[0][0]-e[1][0])>fm||Math.abs(e[0][1]-e[1][1])>fm)||delete am[u]}(o,a,f,s),function(n,t,r,i){var e,u,o,a,f,s,c,l,h,v,d,b,p=um.length,y=!0;for(e=0;e<p;++e)if(u=um[e]){for(o=u.site,a=(f=u.halfedges).length;a--;)am[f[a]]||f.splice(a,1);for(a=0,s=f.length;a<s;)d=(v=Gy(u,am[f[a]]))[0],b=v[1],l=(c=Uy(u,am[f[++a%s]]))[0],h=c[1],(Math.abs(d-l)>fm||Math.abs(b-h)>fm)&&(f.splice(a,0,am.push(Ly(o,v,Math.abs(d-n)<fm&&i-b>fm?[n,Math.abs(l-n)<fm?h:i]:Math.abs(b-i)<fm&&r-d>fm?[Math.abs(h-i)<fm?l:r,i]:Math.abs(d-r)<fm&&b-t>fm?[r,Math.abs(l-r)<fm?h:t]:Math.abs(b-t)<fm&&d-n>fm?[Math.abs(h-t)<fm?l:n,t]:null))-1),++s);s&&(y=!1)}if(y){var m,g,w,M=1/0;for(e=0,y=null;e<p;++e)(u=um[e])&&(w=(m=(o=u.site)[0]-n)*m+(g=o[1]-t)*g)<M&&(M=w,y=u);if(y){var k=[n,t],z=[n,i],_=[r,i],x=[r,t];y.halfedges.push(am.push(Ly(o=y.site,k,z))-1,am.push(Ly(o,z,_))-1,am.push(Ly(o,_,x))-1,am.push(Ly(o,x,k))-1)}}for(e=0;e<p;++e)(u=um[e])&&(u.halfedges.length||delete um[e])}(o,a,f,s)}this.edges=am,this.cells=um,em=om=am=um=null}function vm(n){return function(){return n}}function dm(n,t,r){this.target=n,this.type=t,this.transform=r}function bm(n,t,r){this.k=n,this.x=t,this.y=r}hm.prototype={constructor:hm,polygons:function(){var n=this.edges;return this.cells.map((function(t){var r=t.halfedges.map((function(r){return Uy(t,n[r])}));return r.data=t.site.data,r}))},triangles:function(){var n=[],t=this.edges;return this.cells.forEach((function(r,i){if(u=(e=r.halfedges).length)for(var e,u,o,a=r.site,f=-1,s=t[e[u-1]],c=s.left===a?s.right:s.left;++f<u;)o=c,c=(s=t[e[f]]).left===a?s.right:s.left,o&&c&&i<o.index&&i<c.index&&cm(a,o,c)<0&&n.push([a.data,o.data,c.data])})),n},links:function(){return this.edges.filter((function(n){return n.right})).map((function(n){return{source:n.left.data,target:n.right.data}}))},find:function(n,t,r){for(var i,e,u=this,o=u._found||0,a=u.cells.length;!(e=u.cells[o]);)if(++o>=a)return null;var f=n-e.site[0],s=t-e.site[1],c=f*f+s*s;do{e=u.cells[i=o],o=null,e.halfedges.forEach((function(r){var i=u.edges[r],a=i.left;if(a!==e.site&&a||(a=i.right)){var f=n-a[0],s=t-a[1],l=f*f+s*s;l<c&&(c=l,o=a.index)}}))}while(null!==o);return u._found=i,null==r||c<=r*r?e.site:null}},bm.prototype={constructor:bm,scale:function(n){return 1===n?this:new bm(this.k*n,this.x,this.y)},translate:function(n,t){return 0===n&0===t?this:new bm(this.k,this.x+this.k*n,this.y+this.k*t)},apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function(n){return n*this.k+this.x},applyY:function(n){return n*this.k+this.y},invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function(n){return(n-this.x)/this.k},invertY:function(n){return(n-this.y)/this.k},rescaleX:function(n){return n.copy().domain(n.range().map(this.invertX,this).map(n.invert,n))},rescaleY:function(n){return n.copy().domain(n.range().map(this.invertY,this).map(n.invert,n))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var pm=new bm(1,0,0);function ym(n){return n.__zoom||pm}function mm(){Qn.stopImmediatePropagation()}function gm(){Qn.preventDefault(),Qn.stopImmediatePropagation()}function wm(){return!Qn.button}function Mm(){var n,t,r=this;return r instanceof SVGElement?(n=(r=r.ownerSVGElement||r).width.baseVal.value,t=r.height.baseVal.value):(n=r.clientWidth,t=r.clientHeight),[[0,0],[n,t]]}function km(){return this.__zoom||pm}function zm(){return-Qn.deltaY*(Qn.deltaMode?120:1)/500}function _m(){return"ontouchstart"in this}function xm(n,t,r){var i=n.invertX(t[0][0])-r[0][0],e=n.invertX(t[1][0])-r[1][0],u=n.invertY(t[0][1])-r[0][1],o=n.invertY(t[1][1])-r[1][1];return n.translate(e>i?(i+e)/2:Math.min(0,i)||Math.max(0,e),o>u?(u+o)/2:Math.min(0,u)||Math.max(0,o))}ym.prototype=bm.prototype;const Am=Object.freeze({__proto__:null,version:"4.13.0",bisect:l,bisectRight:l,bisectLeft:h,ascending:f,bisector:s,cross:function(n,t,r){var i,e,u,o,a=n.length,f=t.length,s=new Array(a*f);for(null==r&&(r=v),i=u=0;i<a;++i)for(o=n[i],e=0;e<f;++e,++u)s[u]=r(o,t[e]);return s},descending:function(n,t){return t<n?-1:t>n?1:t>=n?0:NaN},deviation:p,extent:y,histogram:function(){var n=k,t=y,r=F;function i(i){var e,u,o=i.length,a=new Array(o);for(e=0;e<o;++e)a[e]=n(i[e],e,i);var f=t(a),s=f[0],c=f[1],h=r(a,s,c);Array.isArray(h)||(h=E(s,c,h),h=z(Math.ceil(s/h)*h,Math.floor(c/h)*h,h));for(var v=h.length;h[0]<=s;)h.shift(),--v;for(;h[v-1]>c;)h.pop(),--v;var d,b=new Array(v+1);for(e=0;e<=v;++e)(d=b[e]=[]).x0=e>0?h[e-1]:s,d.x1=e<v?h[e]:c;for(e=0;e<o;++e)s<=(u=a[e])&&u<=c&&b[l(h,u,0,v)].push(i[e]);return b}return i.value=function(t){return arguments.length?(n="function"==typeof t?t:M(t),i):n},i.domain=function(n){return arguments.length?(t="function"==typeof n?n:M([n[0],n[1]]),i):t},i.thresholds=function(n){return arguments.length?(r="function"==typeof n?n:Array.isArray(n)?M(g.call(n)):M(n),i):r},i},thresholdFreedmanDiaconis:function(n,t,r){return n=w.call(n,d).sort(f),Math.ceil((r-t)/(2*(O(n,.75)-O(n,.25))*Math.pow(n.length,-1/3)))},thresholdScott:function(n,t,r){return Math.ceil((r-t)/(3.5*p(n)*Math.pow(n.length,-1/3)))},thresholdSturges:F,max:function(n,t){var r,i,e=n.length,u=-1;if(null==t){for(;++u<e;)if(null!=(r=n[u])&&r>=r)for(i=r;++u<e;)null!=(r=n[u])&&r>i&&(i=r)}else for(;++u<e;)if(null!=(r=t(n[u],u,n))&&r>=r)for(i=r;++u<e;)null!=(r=t(n[u],u,n))&&r>i&&(i=r);return i},mean:function(n,t){var r,i=n.length,e=i,u=-1,o=0;if(null==t)for(;++u<i;)isNaN(r=d(n[u]))?--e:o+=r;else for(;++u<i;)isNaN(r=d(t(n[u],u,n)))?--e:o+=r;if(e)return o/e},median:function(n,t){var r,i=n.length,e=-1,u=[];if(null==t)for(;++e<i;)isNaN(r=d(n[e]))||u.push(r);else for(;++e<i;)isNaN(r=d(t(n[e],e,n)))||u.push(r);return O(u.sort(f),.5)},merge:C,min:P,pairs:function(n,t){null==t&&(t=v);for(var r=0,i=n.length-1,e=n[0],u=new Array(i<0?0:i);r<i;)u[r]=t(e,e=n[++r]);return u},permute:function(n,t){for(var r=t.length,i=new Array(r);r--;)i[r]=n[t[r]];return i},quantile:O,range:z,scan:function(n,t){if(r=n.length){var r,i,e=0,u=0,o=n[u];for(null==t&&(t=f);++e<r;)(t(i=n[e],o)<0||0!==t(o,o))&&(o=i,u=e);return 0===t(o,o)?u:void 0}},shuffle:function(n,t,r){for(var i,e,u=(null==r?n.length:r)-(t=null==t?0:+t);u;)e=Math.random()*u--|0,i=n[u+t],n[u+t]=n[e+t],n[e+t]=i;return n},sum:function(n,t){var r,i=n.length,e=-1,u=0;if(null==t)for(;++e<i;)(r=+n[e])&&(u+=r);else for(;++e<i;)(r=+t(n[e],e,n))&&(u+=r);return u},ticks:N,tickIncrement:S,tickStep:E,transpose:R,variance:b,zip:function(){return R(arguments)},axisTop:function(n){return G(1,n)},axisRight:function(n){return G(2,n)},axisBottom:function(n){return G(3,n)},axisLeft:function(n){return G(4,n)},brush:function(){return ou(Je)},brushX:function(){return ou(Xe)},brushY:function(){return ou(Ve)},brushSelection:function(n){var t=n.__brush;return t?t.dim.output(t.selection):null},chord:function(){var n=0,t=null,r=null,i=null;function e(e){var u,o,a,f,s,c,l=e.length,h=[],v=z(l),d=[],b=[],p=b.groups=new Array(l),y=new Array(l*l);for(u=0,s=-1;++s<l;){for(o=0,c=-1;++c<l;)o+=e[s][c];h.push(o),d.push(z(l)),u+=o}for(t&&v.sort((function(n,r){return t(h[n],h[r])})),r&&d.forEach((function(n,t){n.sort((function(n,i){return r(e[t][n],e[t][i])}))})),f=(u=hu(0,lu-n*l)/u)?n:lu/l,o=0,s=-1;++s<l;){for(a=o,c=-1;++c<l;){var m=v[s],g=d[m][c],w=e[m][g],M=o,k=o+=w*u;y[g*l+m]={index:m,subindex:g,startAngle:M,endAngle:k,value:w}}p[m]={index:m,startAngle:a,endAngle:o,value:h[m]},o+=f}for(s=-1;++s<l;)for(c=s-1;++c<l;){var _=y[c*l+s],x=y[s*l+c];(_.value||x.value)&&b.push(_.value<x.value?{source:x,target:_}:{source:_,target:x})}return i?b.sort(i):b}return e.padAngle=function(t){return arguments.length?(n=hu(0,t),e):n},e.sortGroups=function(n){return arguments.length?(t=n,e):t},e.sortSubgroups=function(n){return arguments.length?(r=n,e):r},e.sortChords=function(n){return arguments.length?(null==n?i=null:(i=vu(n))._=n,e):i&&i._},e},ribbon:function(){var n=ku,t=zu,r=_u,i=xu,e=Au,u=null;function o(){var o,a=du.call(arguments),f=n.apply(this,a),s=t.apply(this,a),c=+r.apply(this,(a[0]=f,a)),l=i.apply(this,a)-cu,h=e.apply(this,a)-cu,v=c*au(l),d=c*fu(l),b=+r.apply(this,(a[0]=s,a)),p=i.apply(this,a)-cu,y=e.apply(this,a)-cu;if(u||(u=o=Mu()),u.moveTo(v,d),u.arc(0,0,c,l,h),l===p&&h===y||(u.quadraticCurveTo(0,0,b*au(p),b*fu(p)),u.arc(0,0,b,p,y)),u.quadraticCurveTo(0,0,v,d),u.closePath(),o)return u=null,o+""||null}return o.radius=function(n){return arguments.length?(r="function"==typeof n?n:bu(+n),o):r},o.startAngle=function(n){return arguments.length?(i="function"==typeof n?n:bu(+n),o):i},o.endAngle=function(n){return arguments.length?(e="function"==typeof n?n:bu(+n),o):e},o.source=function(t){return arguments.length?(n=t,o):n},o.target=function(n){return arguments.length?(t=n,o):t},o.context=function(n){return arguments.length?(u=null==n?null:n,o):u},o},nest:function(){var n,t,r,i=[],e=[];function u(r,e,o,a){if(e>=i.length)return null!=n&&r.sort(n),null!=t?t(r):r;for(var f,s,c,l=-1,h=r.length,v=i[e++],d=Eu(),b=o();++l<h;)(c=d.get(f=v(s=r[l])+""))?c.push(s):d.set(f,[s]);return d.each((function(n,t){a(b,t,u(n,e,o,a))})),b}function o(n,r){if(++r>i.length)return n;var u,a=e[r-1];return null!=t&&r>=i.length?u=n.entries():(u=[],n.each((function(n,t){u.push({key:t,values:o(n,r)})}))),null!=a?u.sort((function(n,t){return a(n.key,t.key)})):u}return r={object:function(n){return u(n,0,Fu,Ou)},map:function(n){return u(n,0,Cu,Pu)},entries:function(n){return o(u(n,0,Cu,Pu),0)},key:function(n){return i.push(n),r},sortKeys:function(n){return e[i.length-1]=n,r},sortValues:function(t){return n=t,r},rollup:function(n){return t=n,r}}},set:ju,map:Eu,keys:function(n){var t=[];for(var r in n)t.push(r);return t},values:function(n){var t=[];for(var r in n)t.push(n[r]);return t},entries:function(n){var t=[];for(var r in n)t.push({key:r,value:n[r]});return t},color:Yt,rgb:$t,hsl:nr,lab:lr,hcl:mr,cubehelix:Er,dispatch:Y,drag:function(){var n,t,r,i,e=xt,u=At,o=Nt,a=St,f={},s=Y("start","drag","end"),c=0,l=0;function h(n){n.on("mousedown.drag",v).filter(a).on("touchstart.drag",p).on("touchmove.drag",y).on("touchend.drag touchcancel.drag",m).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(){if(!i&&e.apply(this,arguments)){var o=g("mouse",u.apply(this,arguments),yt,this,arguments);o&&(lt(Qn.view).on("mousemove.drag",d,!0).on("mouseup.drag",b,!0),Mt(Qn.view),gt(),r=!1,n=Qn.clientX,t=Qn.clientY,o("start"))}}function d(){if(wt(),!r){var i=Qn.clientX-n,e=Qn.clientY-t;r=i*i+e*e>l}f.mouse("drag")}function b(){lt(Qn.view).on("mousemove.drag mouseup.drag",null),kt(Qn.view,r),wt(),f.mouse("end")}function p(){if(e.apply(this,arguments)){var n,t,r=Qn.changedTouches,i=u.apply(this,arguments),o=r.length;for(n=0;n<o;++n)(t=g(r[n].identifier,i,mt,this,arguments))&&(gt(),t("start"))}}function y(){var n,t,r=Qn.changedTouches,i=r.length;for(n=0;n<i;++n)(t=f[r[n].identifier])&&(wt(),t("drag"))}function m(){var n,t,r=Qn.changedTouches,e=r.length;for(i&&clearTimeout(i),i=setTimeout((function(){i=null}),500),n=0;n<e;++n)(t=f[r[n].identifier])&&(gt(),t("end"))}function g(n,t,r,i,e){var u,a,l,v=r(t,n),d=s.copy();if(et(new _t(h,"beforestart",u,n,c,v[0],v[1],0,0,d),(function(){return null!=(Qn.subject=u=o.apply(i,e))&&(a=u.x-v[0]||0,l=u.y-v[1]||0,!0)})))return function o(s){var b,p=v;switch(s){case"start":f[n]=o,b=c++;break;case"end":delete f[n],--c;case"drag":v=r(t,n),b=c}et(new _t(h,s,u,n,b,v[0]+a,v[1]+l,v[0]-p[0],v[1]-p[1],d),d.apply,d,[s,i,e])}}return h.filter=function(n){return arguments.length?(e="function"==typeof n?n:zt(!!n),h):e},h.container=function(n){return arguments.length?(u="function"==typeof n?n:zt(n),h):u},h.subject=function(n){return arguments.length?(o="function"==typeof n?n:zt(n),h):o},h.touchable=function(n){return arguments.length?(a="function"==typeof n?n:zt(!!n),h):a},h.on=function(){var n=s.on.apply(s,arguments);return n===s?h:n},h.clickDistance=function(n){return arguments.length?(l=(n=+n)*n,h):Math.sqrt(l)},h},dragDisable:Mt,dragEnable:kt,dsvFormat:Hu,csvParse:Wu,csvParseRows:Uu,csvFormat:Gu,csvFormatRows:qu,tsvParse:Xu,tsvParseRows:Vu,tsvFormat:Ju,tsvFormatRows:$u,easeLinear:function(n){return+n},easeQuad:pe,easeQuadIn:function(n){return n*n},easeQuadOut:function(n){return n*(2-n)},easeQuadInOut:pe,easeCubic:ye,easeCubicIn:function(n){return n*n*n},easeCubicOut:function(n){return--n*n*n+1},easeCubicInOut:ye,easePoly:we,easePolyIn:me,easePolyOut:ge,easePolyInOut:we,easeSin:ze,easeSinIn:function(n){return 1-Math.cos(n*ke)},easeSinOut:function(n){return Math.sin(n*ke)},easeSinInOut:ze,easeExp:_e,easeExpIn:function(n){return Math.pow(2,10*n-10)},easeExpOut:function(n){return 1-Math.pow(2,-10*n)},easeExpInOut:_e,easeCircle:xe,easeCircleIn:function(n){return 1-Math.sqrt(1-n*n)},easeCircleOut:function(n){return Math.sqrt(1- --n*n)},easeCircleInOut:xe,easeBounce:Ne,easeBounceIn:function(n){return 1-Ne(1-n)},easeBounceOut:Ne,easeBounceInOut:function(n){return((n*=2)<=1?1-Ne(1-n):Ne(n-1)+1)/2},easeBack:Oe,easeBackIn:Ee,easeBackOut:Fe,easeBackInOut:Oe,easeElastic:Re,easeElasticIn:Pe,easeElasticOut:Re,easeElasticInOut:Te,forceCenter:function(n,t){var r;function i(){var i,e,u=r.length,o=0,a=0;for(i=0;i<u;++i)o+=(e=r[i]).x,a+=e.y;for(o=o/u-n,a=a/u-t,i=0;i<u;++i)(e=r[i]).x-=o,e.y-=a}return null==n&&(n=0),null==t&&(t=0),i.initialize=function(n){r=n},i.x=function(t){return arguments.length?(n=+t,i):n},i.y=function(n){return arguments.length?(t=+n,i):t},i},forceCollide:function(n){var t,r,i=1,e=1;function u(){for(var n,u,a,f,s,c,l,h=t.length,v=0;v<e;++v)for(u=io(t,ao,fo).visitAfter(o),n=0;n<h;++n)l=(c=r[(a=t[n]).index])*c,f=a.x+a.vx,s=a.y+a.vy,u.visit(d);function d(n,t,r,e,u){var o=n.data,h=n.r,v=c+h;if(!o)return t>f+v||e<f-v||r>s+v||u<s-v;if(o.index>a.index){var d=f-o.x-o.vx,b=s-o.y-o.vy,p=d*d+b*b;p<v*v&&(0===d&&(p+=(d=Qu())*d),0===b&&(p+=(b=Qu())*b),p=(v-(p=Math.sqrt(p)))/p*i,a.vx+=(d*=p)*(v=(h*=h)/(l+h)),a.vy+=(b*=p)*v,o.vx-=d*(v=1-v),o.vy-=b*v)}}}function o(n){if(n.data)return n.r=r[n.data.index];for(var t=n.r=0;t<4;++t)n[t]&&n[t].r>n.r&&(n.r=n[t].r)}function a(){if(t){var i,e,u=t.length;for(r=new Array(u),i=0;i<u;++i)r[(e=t[i]).index]=+n(e,i,t)}}return"function"!=typeof n&&(n=Zu(null==n?1:+n)),u.initialize=function(n){t=n,a()},u.iterations=function(n){return arguments.length?(e=+n,u):e},u.strength=function(n){return arguments.length?(i=+n,u):i},u.radius=function(t){return arguments.length?(n="function"==typeof t?t:Zu(+t),a(),u):n},u},forceLink:function(n){var t,r,i,e,u,o=so,a=function(n){return 1/Math.min(e[n.source.index],e[n.target.index])},f=Zu(30),s=1;function c(i){for(var e=0,o=n.length;e<s;++e)for(var a,f,c,l,h,v,d,b=0;b<o;++b)l=(c=(a=n[b]).target).x+c.vx-(f=a.source).x-f.vx||Qu(),h=c.y+c.vy-f.y-f.vy||Qu(),h*=v=((v=Math.sqrt(l*l+h*h))-r[b])/v*i*t[b],c.vx-=(l*=v)*(d=u[b]),c.vy-=h*d,f.vx+=l*(d=1-d),f.vy+=h*d}function l(){if(i){var a,f,s=i.length,c=n.length,l=Eu(i,o);for(a=0,e=new Array(s);a<c;++a)(f=n[a]).index=a,"object"!=typeof f.source&&(f.source=co(l,f.source)),"object"!=typeof f.target&&(f.target=co(l,f.target)),e[f.source.index]=(e[f.source.index]||0)+1,e[f.target.index]=(e[f.target.index]||0)+1;for(a=0,u=new Array(c);a<c;++a)u[a]=e[(f=n[a]).source.index]/(e[f.source.index]+e[f.target.index]);t=new Array(c),h(),r=new Array(c),v()}}function h(){if(i)for(var r=0,e=n.length;r<e;++r)t[r]=+a(n[r],r,n)}function v(){if(i)for(var t=0,e=n.length;t<e;++t)r[t]=+f(n[t],t,n)}return null==n&&(n=[]),c.initialize=function(n){i=n,l()},c.links=function(t){return arguments.length?(n=t,l(),c):n},c.id=function(n){return arguments.length?(o=n,c):o},c.iterations=function(n){return arguments.length?(s=+n,c):s},c.strength=function(n){return arguments.length?(a="function"==typeof n?n:Zu(+n),h(),c):a},c.distance=function(n){return arguments.length?(f="function"==typeof n?n:Zu(+n),v(),c):f},c},forceManyBody:function(){var n,t,r,i,e=Zu(-30),u=1,o=1/0,a=.81;function f(i){var e,u=n.length,o=io(n,lo,ho).visitAfter(c);for(r=i,e=0;e<u;++e)t=n[e],o.visit(l)}function s(){if(n){var t,r,u=n.length;for(i=new Array(u),t=0;t<u;++t)i[(r=n[t]).index]=+e(r,t,n)}}function c(n){var t,r,e,u,o,a=0,f=0;if(n.length){for(e=u=o=0;o<4;++o)(t=n[o])&&(r=Math.abs(t.value))&&(a+=t.value,f+=r,e+=r*t.x,u+=r*t.y);n.x=e/f,n.y=u/f}else{(t=n).x=t.data.x,t.y=t.data.y;do{a+=i[t.data.index]}while(t=t.next)}n.value=a}function l(n,e,f,s){if(!n.value)return!0;var c=n.x-t.x,l=n.y-t.y,h=s-e,v=c*c+l*l;if(h*h/a<v)return v<o&&(0===c&&(v+=(c=Qu())*c),0===l&&(v+=(l=Qu())*l),v<u&&(v=Math.sqrt(u*v)),t.vx+=c*n.value*r/v,t.vy+=l*n.value*r/v),!0;if(!(n.length||v>=o)){(n.data!==t||n.next)&&(0===c&&(v+=(c=Qu())*c),0===l&&(v+=(l=Qu())*l),v<u&&(v=Math.sqrt(u*v)));do{n.data!==t&&(t.vx+=c*(h=i[n.data.index]*r/v),t.vy+=l*h)}while(n=n.next)}}return f.initialize=function(t){n=t,s()},f.strength=function(n){return arguments.length?(e="function"==typeof n?n:Zu(+n),s(),f):e},f.distanceMin=function(n){return arguments.length?(u=n*n,f):Math.sqrt(u)},f.distanceMax=function(n){return arguments.length?(o=n*n,f):Math.sqrt(o)},f.theta=function(n){return arguments.length?(a=n*n,f):Math.sqrt(a)},f},forceRadial:function(n,t,r){var i,e,u,o=Zu(.1);function a(n){for(var o=0,a=i.length;o<a;++o){var f=i[o],s=f.x-t||1e-6,c=f.y-r||1e-6,l=Math.sqrt(s*s+c*c),h=(u[o]-l)*e[o]*n/l;f.vx+=s*h,f.vy+=c*h}}function f(){if(i){var t,r=i.length;for(e=new Array(r),u=new Array(r),t=0;t<r;++t)u[t]=+n(i[t],t,i),e[t]=isNaN(u[t])?0:+o(i[t],t,i)}}return"function"!=typeof n&&(n=Zu(+n)),null==t&&(t=0),null==r&&(r=0),a.initialize=function(n){i=n,f()},a.strength=function(n){return arguments.length?(o="function"==typeof n?n:Zu(+n),f(),a):o},a.radius=function(t){return arguments.length?(n="function"==typeof t?t:Zu(+t),f(),a):n},a.x=function(n){return arguments.length?(t=+n,a):t},a.y=function(n){return arguments.length?(r=+n,a):r},a},forceSimulation:function(n){var t,r=1,i=.001,e=1-Math.pow(i,1/300),u=0,o=.6,a=Eu(),f=Ci(c),s=Y("tick","end");function c(){l(),s.call("tick",t),r<i&&(f.stop(),s.call("end",t))}function l(){var t,i,f=n.length;for(r+=(u-r)*e,a.each((function(n){n(r)})),t=0;t<f;++t)null==(i=n[t]).fx?i.x+=i.vx*=o:(i.x=i.fx,i.vx=0),null==i.fy?i.y+=i.vy*=o:(i.y=i.fy,i.vy=0)}function h(){for(var t,r=0,i=n.length;r<i;++r){if((t=n[r]).index=r,isNaN(t.x)||isNaN(t.y)){var e=10*Math.sqrt(r),u=r*bo;t.x=e*Math.cos(u),t.y=e*Math.sin(u)}(isNaN(t.vx)||isNaN(t.vy))&&(t.vx=t.vy=0)}}function v(t){return t.initialize&&t.initialize(n),t}return null==n&&(n=[]),h(),t={tick:l,restart:function(){return f.restart(c),t},stop:function(){return f.stop(),t},nodes:function(r){return arguments.length?(n=r,h(),a.each(v),t):n},alpha:function(n){return arguments.length?(r=+n,t):r},alphaMin:function(n){return arguments.length?(i=+n,t):i},alphaDecay:function(n){return arguments.length?(e=+n,t):+e},alphaTarget:function(n){return arguments.length?(u=+n,t):u},velocityDecay:function(n){return arguments.length?(o=1-n,t):1-o},force:function(n,r){return arguments.length>1?(null==r?a.remove(n):a.set(n,v(r)),t):a.get(n)},find:function(t,r,i){var e,u,o,a,f,s=0,c=n.length;for(null==i?i=1/0:i*=i,s=0;s<c;++s)(o=(e=t-(a=n[s]).x)*e+(u=r-a.y)*u)<i&&(f=a,i=o);return f},on:function(n,r){return arguments.length>1?(s.on(n,r),t):s.on(n)}}},forceX:function(n){var t,r,i,e=Zu(.1);function u(n){for(var e,u=0,o=t.length;u<o;++u)(e=t[u]).vx+=(i[u]-e.x)*r[u]*n}function o(){if(t){var u,o=t.length;for(r=new Array(o),i=new Array(o),u=0;u<o;++u)r[u]=isNaN(i[u]=+n(t[u],u,t))?0:+e(t[u],u,t)}}return"function"!=typeof n&&(n=Zu(null==n?0:+n)),u.initialize=function(n){t=n,o()},u.strength=function(n){return arguments.length?(e="function"==typeof n?n:Zu(+n),o(),u):e},u.x=function(t){return arguments.length?(n="function"==typeof t?t:Zu(+t),o(),u):n},u},forceY:function(n){var t,r,i,e=Zu(.1);function u(n){for(var e,u=0,o=t.length;u<o;++u)(e=t[u]).vy+=(i[u]-e.y)*r[u]*n}function o(){if(t){var u,o=t.length;for(r=new Array(o),i=new Array(o),u=0;u<o;++u)r[u]=isNaN(i[u]=+n(t[u],u,t))?0:+e(t[u],u,t)}}return"function"!=typeof n&&(n=Zu(null==n?0:+n)),u.initialize=function(n){t=n,o()},u.strength=function(n){return arguments.length?(e="function"==typeof n?n:Zu(+n),o(),u):e},u.y=function(t){return arguments.length?(n="function"==typeof t?t:Zu(+t),o(),u):n},u},formatDefaultLocale:Eo,get format(){return xo},get formatPrefix(){return Ao},formatLocale:So,formatSpecifier:Mo,precisionFixed:Fo,precisionPrefix:Oo,precisionRound:Co,geoArea:function(n){return ma.reset(),la(n,ga),2*ma},geoBounds:function(n){var t,r,i,e,u,o,a;if(Ra=Pa=-(Oa=Ca=1/0),Ba=[],la(n,uf),r=Ba.length){for(Ba.sort(df),t=1,u=[i=Ba[0]];t<r;++t)bf(i,(e=Ba[t])[0])||bf(i,e[1])?(vf(i[0],e[1])>vf(i[0],i[1])&&(i[1]=e[1]),vf(e[0],i[1])>vf(i[0],i[1])&&(i[0]=e[0])):u.push(i=e);for(o=-1/0,t=0,i=u[r=u.length-1];t<=r;i=e,++t)(a=vf(i[1],(e=u[t])[0]))>o&&(o=a,Oa=e[0],Pa=i[1])}return Ba=Ha=null,Oa===1/0||Ca===1/0?[[NaN,NaN],[NaN,NaN]]:[[Oa,Ca],[Pa,Ra]]},geoCentroid:function(n){Ia=Wa=Ua=Ga=qa=Ya=Xa=Va=Ja=$a=Za=0,la(n,pf);var t=Ja,r=$a,i=Za,e=t*t+r*r+i*i;return e<1e-12&&(t=Ya,r=Xa,i=Va,Wa<Do&&(t=Ua,r=Ga,i=qa),(e=t*t+r*r+i*i)<1e-12)?[NaN,NaN]:[Yo(r,t)*Wo,ia(i/na(e))*Wo]},geoCircle:function(){var n,t,r=Nf([0,0]),i=Nf(90),e=Nf(6),u={point:function(r,i){n.push(r=t(r,i)),r[0]*=Wo,r[1]*=Wo}};function o(){var o=r.apply(this,arguments),a=i.apply(this,arguments)*Uo,f=e.apply(this,arguments)*Uo;return n=[],t=Ff(-o[0]*Uo,-o[1]*Uo,0).invert,Tf(u,a,f,1),o={type:"Polygon",coordinates:[n]},n=t=null,o}return o.center=function(n){return arguments.length?(r="function"==typeof n?n:Nf([+n[0],+n[1]]),o):r},o.radius=function(n){return arguments.length?(i="function"==typeof n?n:Nf(+n),o):i},o.precision=function(n){return arguments.length?(e="function"==typeof n?n:Nf(+n),o):e},o},geoClipAntimeridian:Xf,geoClipCircle:Vf,geoClipExtent:function(){var n,t,r,i=0,e=0,u=960,o=500;return r={stream:function(r){return n&&t===r?n:n=Zf(i,e,u,o)(t=r)},extent:function(a){return arguments.length?(i=+a[0][0],e=+a[0][1],u=+a[1][0],o=+a[1][1],n=t=null,r):[[i,e],[u,o]]}}},geoClipRectangle:Zf,geoContains:function(n,t){return(n&&cs.hasOwnProperty(n.type)?cs[n.type]:hs)(n,t)},geoDistance:ss,geoGraticule:ws,geoGraticule10:function(){return ws()()},geoInterpolate:function(n,t){var r=n[0]*Uo,i=n[1]*Uo,e=t[0]*Uo,u=t[1]*Uo,o=Xo(i),a=Qo(i),f=Xo(u),s=Qo(u),c=o*Xo(r),l=o*Qo(r),h=f*Xo(e),v=f*Qo(e),d=2*ia(na(ea(u-i)+o*f*ea(e-r))),b=Qo(d),p=d?function(n){var t=Qo(n*=d)/b,r=Qo(d-n)/b,i=r*c+t*h,e=r*l+t*v,u=r*a+t*s;return[Yo(e,i)*Wo,Yo(u,na(i*i+e*e))*Wo]}:function(){return[r*Wo,i*Wo]};return p.distance=d,p},geoLength:os,geoPath:function(n,t){var r,i,e=4.5;function u(n){return n&&("function"==typeof e&&i.pointRadius(+e.apply(this,arguments)),la(n,r(i))),i.result()}return u.area=function(n){return la(n,r(Ss)),Ss.result()},u.measure=function(n){return la(n,r(dc)),dc.result()},u.bounds=function(n){return la(n,r(Is)),Is.result()},u.centroid=function(n){return la(n,r(Zs)),Zs.result()},u.projection=function(t){return arguments.length?(r=null==t?(n=null,Ms):(n=t).stream,u):n},u.context=function(n){return arguments.length?(i=null==n?(t=null,new yc):new ac(t=n),"function"!=typeof e&&i.pointRadius(e),u):t},u.pointRadius=function(n){return arguments.length?(e="function"==typeof n?n:(i.pointRadius(+n),+n),u):e},u.projection(n).context(t)},geoAlbers:Rc,geoAlbersUsa:function(){var n,t,r,i,e,u,o=Rc(),a=Pc().rotate([154,0]).center([-2,58.5]).parallels([55,65]),f=Pc().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(n,t){u=[n,t]}};function c(n){var t=n[0],o=n[1];return u=null,r.point(t,o),u||(i.point(t,o),u)||(e.point(t,o),u)}function l(){return n=t=null,c}return c.invert=function(n){var t=o.scale(),r=o.translate(),i=(n[0]-r[0])/t,e=(n[1]-r[1])/t;return(e>=.12&&e<.234&&i>=-.425&&i<-.214?a:e>=.166&&e<.234&&i>=-.214&&i<-.115?f:o).invert(n)},c.stream=function(r){return n&&t===r?n:(i=[o.stream(t=r),a.stream(r),f.stream(r)],e=i.length,n={point:function(n,t){for(var r=-1;++r<e;)i[r].point(n,t)},sphere:function(){for(var n=-1;++n<e;)i[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)i[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)i[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)i[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)i[n].polygonEnd()}});var i,e},c.precision=function(n){return arguments.length?(o.precision(n),a.precision(n),f.precision(n),l()):o.precision()},c.scale=function(n){return arguments.length?(o.scale(n),a.scale(.35*n),f.scale(n),c.translate(o.translate())):o.scale()},c.translate=function(n){if(!arguments.length)return o.translate();var t=o.scale(),u=+n[0],c=+n[1];return r=o.translate(n).clipExtent([[u-.455*t,c-.238*t],[u+.455*t,c+.238*t]]).stream(s),i=a.translate([u-.307*t,c+.201*t]).clipExtent([[u-.425*t+Do,c+.12*t+Do],[u-.214*t-Do,c+.234*t-Do]]).stream(s),e=f.translate([u-.205*t,c+.212*t]).clipExtent([[u-.214*t+Do,c+.166*t+Do],[u-.115*t-Do,c+.234*t-Do]]).stream(s),l()},c.fitExtent=function(n,t){return kc(c,n,t)},c.fitSize=function(n,t){return zc(c,n,t)},c.fitWidth=function(n,t){return _c(c,n,t)},c.fitHeight=function(n,t){return xc(c,n,t)},c.scale(1070)},geoAzimuthalEqualArea:function(){return Ec(Dc).scale(124.75).clipAngle(179.999)},geoAzimuthalEqualAreaRaw:Dc,geoAzimuthalEquidistant:function(){return Ec(Lc).scale(79.4188).clipAngle(179.999)},geoAzimuthalEquidistantRaw:Lc,geoConicConformal:function(){return Oc(Wc).scale(109.5).parallels([30,30])},geoConicConformalRaw:Wc,geoConicEqualArea:Pc,geoConicEqualAreaRaw:Cc,geoConicEquidistant:function(){return Oc(Gc).scale(131.154).center([0,13.9389])},geoConicEquidistantRaw:Gc,geoEquirectangular:function(){return Ec(Uc).scale(152.63)},geoEquirectangularRaw:Uc,geoGnomonic:function(){return Ec(qc).scale(144.049).clipAngle(60)},geoGnomonicRaw:qc,geoIdentity:function(){var n,t,r,i,e,u,o=1,a=0,f=0,s=1,c=1,l=Ms,h=null,v=Ms;function d(){return i=e=null,u}return u={stream:function(n){return i&&e===n?i:i=l(v(e=n))},postclip:function(i){return arguments.length?(v=i,h=n=t=r=null,d()):v},clipExtent:function(i){return arguments.length?(v=null==i?(h=n=t=r=null,Ms):Zf(h=+i[0][0],n=+i[0][1],t=+i[1][0],r=+i[1][1]),d()):null==h?null:[[h,n],[t,r]]},scale:function(n){return arguments.length?(l=Yc((o=+n)*s,o*c,a,f),d()):o},translate:function(n){return arguments.length?(l=Yc(o*s,o*c,a=+n[0],f=+n[1]),d()):[a,f]},reflectX:function(n){return arguments.length?(l=Yc(o*(s=n?-1:1),o*c,a,f),d()):s<0},reflectY:function(n){return arguments.length?(l=Yc(o*s,o*(c=n?-1:1),a,f),d()):c<0},fitExtent:function(n,t){return kc(u,n,t)},fitSize:function(n,t){return zc(u,n,t)},fitWidth:function(n,t){return _c(u,n,t)},fitHeight:function(n,t){return xc(u,n,t)}}},geoProjection:Ec,geoProjectionMutator:Fc,geoMercator:function(){return Hc(Bc).scale(961/Io)},geoMercatorRaw:Bc,geoNaturalEarth1:function(){return Ec(Xc).scale(175.295)},geoNaturalEarth1Raw:Xc,geoOrthographic:function(){return Ec(Vc).scale(249.5).clipAngle(90.000001)},geoOrthographicRaw:Vc,geoStereographic:function(){return Ec(Jc).scale(250).clipAngle(142)},geoStereographicRaw:Jc,geoTransverseMercator:function(){var n=Hc($c),t=n.center,r=n.rotate;return n.center=function(n){return arguments.length?t([-n[1],n[0]]):[(n=t())[1],-n[0]]},n.rotate=function(n){return arguments.length?r([n[0],n[1],n.length>2?n[2]+90:90]):[(n=r())[0],n[1],n[2]-90]},r([0,0,90]).scale(159.155)},geoTransverseMercatorRaw:$c,geoRotation:Rf,geoStream:la,geoTransform:function(n){return{stream:gc(n)}},cluster:function(){var n=Zc,t=1,r=1,i=!1;function e(e){var u,o=0;e.eachAfter((function(t){var r=t.children;r?(t.x=function(n){return n.reduce(Qc,0)/n.length}(r),t.y=function(n){return 1+n.reduce(Kc,0)}(r)):(t.x=u?o+=n(t,u):0,t.y=0,u=t)}));var a=function(n){for(var t;t=n.children;)n=t[0];return n}(e),f=function(n){for(var t;t=n.children;)n=t[t.length-1];return n}(e),s=a.x-n(a,f)/2,c=f.x+n(f,a)/2;return e.eachAfter(i?function(n){n.x=(n.x-e.x)*t,n.y=(e.y-n.y)*r}:function(n){n.x=(n.x-s)/(c-s)*t,n.y=(1-(e.y?n.y/e.y:1))*r})}return e.separation=function(t){return arguments.length?(n=t,e):n},e.size=function(n){return arguments.length?(i=!1,t=+n[0],r=+n[1],e):i?null:[t,r]},e.nodeSize=function(n){return arguments.length?(i=!0,t=+n[0],r=+n[1],e):i?[t,r]:null},e},hierarchy:tl,pack:function(){var n=null,t=1,r=1,i=kl;function e(e){return e.x=t/2,e.y=r/2,n?e.eachBefore(xl(n)).eachAfter(Al(i,.5)).eachBefore(Nl(1)):e.eachBefore(xl(_l)).eachAfter(Al(kl,1)).eachAfter(Al(i,e.r/Math.min(t,r))).eachBefore(Nl(Math.min(t,r)/(2*e.r))),e}return e.radius=function(t){return arguments.length?(n=wl(t),e):n},e.size=function(n){return arguments.length?(t=+n[0],r=+n[1],e):[t,r]},e.padding=function(n){return arguments.length?(i="function"==typeof n?n:zl(+n),e):i},e},packSiblings:function(n){return gl(n),n},packEnclose:al,partition:function(){var n=1,t=1,r=0,i=!1;function e(e){var u=e.height+1;return e.x0=e.y0=r,e.x1=n,e.y1=t/u,e.eachBefore(function(n,t){return function(i){i.children&&El(i,i.x0,n*(i.depth+1)/t,i.x1,n*(i.depth+2)/t);var e=i.x0,u=i.y0,o=i.x1-r,a=i.y1-r;o<e&&(e=o=(e+o)/2),a<u&&(u=a=(u+a)/2),i.x0=e,i.y0=u,i.x1=o,i.y1=a}}(t,u)),i&&e.eachBefore(Sl),e}return e.round=function(n){return arguments.length?(i=!!n,e):i},e.size=function(r){return arguments.length?(n=+r[0],t=+r[1],e):[n,t]},e.padding=function(n){return arguments.length?(r=+n,e):r},e},stratify:function(){var n=Cl,t=Pl;function r(r){var i,e,u,o,a,f,s,c=r.length,l=new Array(c),h={};for(e=0;e<c;++e)a=l[e]=new ul(i=r[e]),null!=(f=n(i,e,r))&&(f+="")&&(h[s="$"+(a.id=f)]=s in h?Ol:a);for(e=0;e<c;++e)if(a=l[e],null!=(f=t(r[e],e,r))&&(f+="")){if(!(o=h["$"+f]))throw new Error("missing: "+f);if(o===Ol)throw new Error("ambiguous: "+f);o.children?o.children.push(a):o.children=[a],a.parent=o}else{if(u)throw new Error("multiple roots");u=a}if(!u)throw new Error("no root");if(u.parent=Fl,u.eachBefore((function(n){n.depth=n.parent.depth+1,--c})).eachBefore(el),u.parent=null,c>0)throw new Error("cycle");return u}return r.id=function(t){return arguments.length?(n=Ml(t),r):n},r.parentId=function(n){return arguments.length?(t=Ml(n),r):t},r},tree:function(){var n=Rl,t=1,r=1,i=null;function e(e){var f=function(n){for(var t,r,i,e,u,o=new Bl(n,0),a=[o];t=a.pop();)if(i=t._.children)for(t.children=new Array(u=i.length),e=u-1;e>=0;--e)a.push(r=t.children[e]=new Bl(i[e],e)),r.parent=t;return(o.parent=new Bl(null,0)).children=[o],o}(e);if(f.eachAfter(u),f.parent.m=-f.z,f.eachBefore(o),i)e.eachBefore(a);else{var s=e,c=e,l=e;e.eachBefore((function(n){n.x<s.x&&(s=n),n.x>c.x&&(c=n),n.depth>l.depth&&(l=n)}));var h=s===c?1:n(s,c)/2,v=h-s.x,d=t/(c.x+h+v),b=r/(l.depth||1);e.eachBefore((function(n){n.x=(n.x+v)*d,n.y=n.depth*b}))}return e}function u(t){var r=t.children,i=t.parent.children,e=t.i?i[t.i-1]:null;if(r){!function(n){for(var t,r=0,i=0,e=n.children,u=e.length;--u>=0;)(t=e[u]).z+=r,t.m+=r,r+=t.s+(i+=t.c)}(t);var u=(r[0].z+r[r.length-1].z)/2;e?(t.z=e.z+n(t._,e._),t.m=t.z-u):t.z=u}else e&&(t.z=e.z+n(t._,e._));t.parent.A=function(t,r,i){if(r){for(var e,u=t,o=t,a=r,f=u.parent.children[0],s=u.m,c=o.m,l=a.m,h=f.m;a=jl(a),u=Tl(u),a&&u;)f=Tl(f),(o=jl(o)).a=t,(e=a.z+l-u.z-s+n(a._,u._))>0&&(Dl(Ll(a,t,i),t,e),s+=e,c+=e),l+=a.m,s+=u.m,h+=f.m,c+=o.m;a&&!jl(o)&&(o.t=a,o.m+=l-c),u&&!Tl(f)&&(f.t=u,f.m+=s-h,i=t)}return i}(t,e,t.parent.A||i[0])}function o(n){n._.x=n.z+n.parent.m,n.m+=n.parent.m}function a(n){n.x*=t,n.y=n.depth*r}return e.separation=function(t){return arguments.length?(n=t,e):n},e.size=function(n){return arguments.length?(i=!1,t=+n[0],r=+n[1],e):i?null:[t,r]},e.nodeSize=function(n){return arguments.length?(i=!0,t=+n[0],r=+n[1],e):i?[t,r]:null},e},treemap:function(){var n=Ul,t=!1,r=1,i=1,e=[0],u=kl,o=kl,a=kl,f=kl,s=kl;function c(n){return n.x0=n.y0=0,n.x1=r,n.y1=i,n.eachBefore(l),e=[0],t&&n.eachBefore(Sl),n}function l(t){var r=e[t.depth],i=t.x0+r,c=t.y0+r,l=t.x1-r,h=t.y1-r;l<i&&(i=l=(i+l)/2),h<c&&(c=h=(c+h)/2),t.x0=i,t.y0=c,t.x1=l,t.y1=h,t.children&&(r=e[t.depth+1]=u(t)/2,i+=s(t)-r,c+=o(t)-r,(l-=a(t)-r)<i&&(i=l=(i+l)/2),(h-=f(t)-r)<c&&(c=h=(c+h)/2),n(t,i,c,l,h))}return c.round=function(n){return arguments.length?(t=!!n,c):t},c.size=function(n){return arguments.length?(r=+n[0],i=+n[1],c):[r,i]},c.tile=function(t){return arguments.length?(n=Ml(t),c):n},c.padding=function(n){return arguments.length?c.paddingInner(n).paddingOuter(n):c.paddingInner()},c.paddingInner=function(n){return arguments.length?(u="function"==typeof n?n:zl(+n),c):u},c.paddingOuter=function(n){return arguments.length?c.paddingTop(n).paddingRight(n).paddingBottom(n).paddingLeft(n):c.paddingTop()},c.paddingTop=function(n){return arguments.length?(o="function"==typeof n?n:zl(+n),c):o},c.paddingRight=function(n){return arguments.length?(a="function"==typeof n?n:zl(+n),c):a},c.paddingBottom=function(n){return arguments.length?(f="function"==typeof n?n:zl(+n),c):f},c.paddingLeft=function(n){return arguments.length?(s="function"==typeof n?n:zl(+n),c):s},c},treemapBinary:function(n,t,r,i,e){var u,o,a=n.children,f=a.length,s=new Array(f+1);for(s[0]=o=u=0;u<f;++u)s[u+1]=o+=a[u].value;!function n(t,r,i,e,u,o,f){if(t>=r-1){var c=a[t];return c.x0=e,c.y0=u,c.x1=o,void(c.y1=f)}for(var l=s[t],h=i/2+l,v=t+1,d=r-1;v<d;){var b=v+d>>>1;s[b]<h?v=b+1:d=b}h-s[v-1]<s[v]-h&&t+1<v&&--v;var p=s[v]-l,y=i-p;if(o-e>f-u){var m=(e*y+o*p)/i;n(t,v,p,e,u,m,f),n(v,r,y,m,u,o,f)}else{var g=(u*y+f*p)/i;n(t,v,p,e,u,o,g),n(v,r,y,e,g,o,f)}}(0,f,n.value,t,r,i,e)},treemapDice:El,treemapSlice:Hl,treemapSliceDice:function(n,t,r,i,e){(1&n.depth?Hl:El)(n,t,r,i,e)},treemapSquarify:Ul,treemapResquarify:Gl,interpolate:Jr,interpolateArray:Wr,interpolateBasis:Cr,interpolateBasisClosed:Pr,interpolateDate:Ur,interpolateNumber:Gr,interpolateObject:qr,interpolateRound:$r,interpolateString:Vr,interpolateTransformCss:ui,interpolateTransformSvg:oi,interpolateZoom:si,interpolateRgb:Lr,interpolateRgbBasis:Hr,interpolateRgbBasisClosed:Ir,interpolateHsl:li,interpolateHslLong:hi,interpolateLab:function(n,t){var r=Dr((n=lr(n)).l,(t=lr(t)).l),i=Dr(n.a,t.a),e=Dr(n.b,t.b),u=Dr(n.opacity,t.opacity);return function(t){return n.l=r(t),n.a=i(t),n.b=e(t),n.opacity=u(t),n+""}},interpolateHcl:di,interpolateHclLong:bi,interpolateCubehelix:yi,interpolateCubehelixLong:wi,quantize:function(n,t){for(var r=new Array(t),i=0;i<t;++i)r[i]=n(i/(t-1));return r},path:Mu,polygonArea:function(n){for(var t,r=-1,i=n.length,e=n[i-1],u=0;++r<i;)u+=(t=e)[1]*(e=n[r])[0]-t[0]*e[1];return u/2},polygonCentroid:function(n){for(var t,r,i=-1,e=n.length,u=0,o=0,a=n[e-1],f=0;++i<e;)f+=r=(t=a)[0]*(a=n[i])[1]-a[0]*t[1],u+=(t[0]+a[0])*r,o+=(t[1]+a[1])*r;return[u/(f*=3),o/f]},polygonHull:function(n){if((r=n.length)<3)return null;var t,r,i=new Array(r),e=new Array(r);for(t=0;t<r;++t)i[t]=[+n[t][0],+n[t][1],t];for(i.sort(Yl),t=0;t<r;++t)e[t]=[i[t][0],-i[t][1]];var u=Xl(i),o=Xl(e),a=o[0]===u[0],f=o[o.length-1]===u[u.length-1],s=[];for(t=u.length-1;t>=0;--t)s.push(n[i[u[t]][2]]);for(t=+a;t<o.length-f;++t)s.push(n[i[o[t]][2]]);return s},polygonContains:function(n,t){for(var r,i,e=n.length,u=n[e-1],o=t[0],a=t[1],f=u[0],s=u[1],c=!1,l=0;l<e;++l)r=(u=n[l])[0],(i=u[1])>a!=s>a&&o<(f-r)*(a-i)/(s-i)+r&&(c=!c),f=r,s=i;return c},polygonLength:function(n){for(var t,r,i=-1,e=n.length,u=n[e-1],o=u[0],a=u[1],f=0;++i<e;)t=o,r=a,t-=o=(u=n[i])[0],r-=a=u[1],f+=Math.sqrt(t*t+r*r);return f},quadtree:io,queue:th,randomUniform:ih,randomNormal:eh,randomLogNormal:uh,randomBates:ah,randomIrwinHall:oh,randomExponential:fh,request:sh,html:lh,json:hh,text:vh,xml:dh,csv:yh,tsv:mh,scaleBand:_h,scalePoint:function(){return xh(_h().paddingInner(1))},scaleIdentity:function n(){var t=[0,1];function r(n){return+n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(t=wh.call(n,Nh),r):t.slice()},r.copy=function(){return n().domain(t)},Rh(r)},scaleLinear:function n(){var t=Ph(Eh,Gr);return t.copy=function(){return Ch(t,n())},Rh(t)},scaleLog:function n(){var t=Ph(jh,Dh).domain([1,10]),r=t.domain,i=10,e=Hh(10),u=Bh(10);function o(){return e=Hh(i),u=Bh(i),r()[0]<0&&(e=Ih(e),u=Ih(u)),t}return t.base=function(n){return arguments.length?(i=+n,o()):i},t.domain=function(n){return arguments.length?(r(n),o()):r()},t.ticks=function(n){var t,o=r(),a=o[0],f=o[o.length-1];(t=f<a)&&(h=a,a=f,f=h);var s,c,l,h=e(a),v=e(f),d=null==n?10:+n,b=[];if(!(i%1)&&v-h<d){if(h=Math.round(h)-1,v=Math.round(v)+1,a>0){for(;h<v;++h)for(c=1,s=u(h);c<i;++c)if(!((l=s*c)<a)){if(l>f)break;b.push(l)}}else for(;h<v;++h)for(c=i-1,s=u(h);c>=1;--c)if(!((l=s*c)<a)){if(l>f)break;b.push(l)}}else b=N(h,v,Math.min(v-h,d)).map(u);return t?b.reverse():b},t.tickFormat=function(n,r){if(null==r&&(r=10===i?".0e":","),"function"!=typeof r&&(r=xo(r)),n===1/0)return r;null==n&&(n=10);var o=Math.max(1,i*n/t.ticks().length);return function(n){var t=n/u(Math.round(e(n)));return t*i<i-.5&&(t*=i),t<=o?r(n):""}},t.nice=function(){return r(Th(r(),{floor:function(n){return u(Math.floor(e(n)))},ceil:function(n){return u(Math.ceil(e(n)))}}))},t.copy=function(){return Ch(t,n().base(i))},t},scaleOrdinal:zh,scaleImplicit:kh,scalePow:Uh,scaleSqrt:function(){return Uh().exponent(.5)},scaleQuantile:function n(){var t=[],r=[],i=[];function e(){var n=0,e=Math.max(1,r.length);for(i=new Array(e-1);++n<e;)i[n-1]=O(t,n/e);return u}function u(n){if(!isNaN(n=+n))return r[l(i,n)]}return u.invertExtent=function(n){var e=r.indexOf(n);return e<0?[NaN,NaN]:[e>0?i[e-1]:t[0],e<i.length?i[e]:t[t.length-1]]},u.domain=function(n){if(!arguments.length)return t.slice();t=[];for(var r,i=0,u=n.length;i<u;++i)null==(r=n[i])||isNaN(r=+r)||t.push(r);return t.sort(f),e()},u.range=function(n){return arguments.length?(r=Mh.call(n),e()):r.slice()},u.quantiles=function(){return i.slice()},u.copy=function(){return n().domain(t).range(r)},u},scaleQuantize:function n(){var t=0,r=1,i=1,e=[.5],u=[0,1];function o(n){if(n<=n)return u[l(e,n,0,i)]}function a(){var n=-1;for(e=new Array(i);++n<i;)e[n]=((n+1)*r-(n-i)*t)/(i+1);return o}return o.domain=function(n){return arguments.length?(t=+n[0],r=+n[1],a()):[t,r]},o.range=function(n){return arguments.length?(i=(u=Mh.call(n)).length-1,a()):u.slice()},o.invertExtent=function(n){var o=u.indexOf(n);return o<0?[NaN,NaN]:o<1?[t,e[0]]:o>=i?[e[i-1],r]:[e[o-1],e[o]]},o.copy=function(){return n().domain([t,r]).range(u)},Rh(o)},scaleThreshold:function n(){var t=[.5],r=[0,1],i=1;function e(n){if(n<=n)return r[l(t,n,0,i)]}return e.domain=function(n){return arguments.length?(t=Mh.call(n),i=Math.min(t.length,r.length-1),e):t.slice()},e.range=function(n){return arguments.length?(r=Mh.call(n),i=Math.min(t.length,r.length-1),e):r.slice()},e.invertExtent=function(n){var i=r.indexOf(n);return[t[i-1],t[i]]},e.copy=function(){return n().domain(t).range(r)},e},scaleTime:function(){return _b(xv,zv,sv,ov,ev,rv,nv,Xh,id).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},scaleUtc:function(){return _b($v,Vv,Rv,Ov,Ev,Nv,nv,Xh,ud).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])},schemeCategory10:Ab,schemeCategory20b:Nb,schemeCategory20c:Sb,schemeCategory20:Eb,interpolateCubehelixDefault:Fb,interpolateRainbow:function(n){(n<0||n>1)&&(n-=Math.floor(n));var t=Math.abs(n-.5);return Pb.h=360*n-100,Pb.s=1.5-1.5*t,Pb.l=.8-.9*t,Pb+""},interpolateWarm:Ob,interpolateCool:Cb,interpolateViridis:Tb,interpolateMagma:jb,interpolateInferno:Db,interpolatePlasma:Lb,scaleSequential:function n(t){var r=0,i=1,e=!1;function u(n){var u=(n-r)/(i-r);return t(e?Math.max(0,Math.min(1,u)):u)}return u.domain=function(n){return arguments.length?(r=+n[0],i=+n[1],u):[r,i]},u.clamp=function(n){return arguments.length?(e=!!n,u):e},u.interpolator=function(n){return arguments.length?(t=n,u):t},u.copy=function(){return n(t).domain([r,i]).clamp(e)},Rh(u)},create:function(n){return lt(rn(n).call(document.documentElement))},creator:rn,local:vt,matcher:ln,mouse:yt,namespace:K,namespaces:Q,clientPoint:pt,select:lt,selectAll:function(n){return"string"==typeof n?new st([document.querySelectorAll(n)],[document.documentElement]):new st([null==n?[]:n],ft)},selection:ct,selector:un,selectorAll:an,style:Nn,touch:mt,touches:function(n,t){null==t&&(t=bt().touches);for(var r=0,i=t?t.length:0,e=new Array(i);r<i;++r)e[r]=pt(n,t[r]);return e},window:zn,get event(){return Qn},customEvent:et,arc:function(){var n=Kb,t=np,r=Bb(0),i=null,e=tp,u=rp,o=ip,a=null;function f(){var f,s,c=+n.apply(this,arguments),l=+t.apply(this,arguments),h=e.apply(this,arguments)-Jb,v=u.apply(this,arguments)-Jb,d=Hb(v-h),b=v>h;if(a||(a=f=Mu()),l<c&&(s=l,l=c,c=s),l>Xb)if(d>$b-Xb)a.moveTo(l*Wb(h),l*qb(h)),a.arc(0,0,l,h,v,!b),c>Xb&&(a.moveTo(c*Wb(v),c*qb(v)),a.arc(0,0,c,v,h,b));else{var p,y,m=h,g=v,w=h,M=v,k=d,z=d,_=o.apply(this,arguments)/2,x=_>Xb&&(i?+i.apply(this,arguments):Yb(c*c+l*l)),A=Gb(Hb(l-c)/2,+r.apply(this,arguments)),N=A,S=A;if(x>Xb){var E=Qb(x/c*qb(_)),F=Qb(x/l*qb(_));(k-=2*E)>Xb?(w+=E*=b?1:-1,M-=E):(k=0,w=M=(h+v)/2),(z-=2*F)>Xb?(m+=F*=b?1:-1,g-=F):(z=0,m=g=(h+v)/2)}var O=l*Wb(m),C=l*qb(m),P=c*Wb(M),R=c*qb(M);if(A>Xb){var T=l*Wb(g),j=l*qb(g),D=c*Wb(w),L=c*qb(w);if(d<Vb){var B=k>Xb?ep(O,C,D,L,T,j,P,R):[P,R],H=O-B[0],I=C-B[1],W=T-B[0],U=j-B[1],G=1/qb(Zb((H*W+I*U)/(Yb(H*H+I*I)*Yb(W*W+U*U)))/2),q=Yb(B[0]*B[0]+B[1]*B[1]);N=Gb(A,(c-q)/(G-1)),S=Gb(A,(l-q)/(G+1))}}z>Xb?S>Xb?(p=up(D,L,O,C,l,S,b),y=up(T,j,P,R,l,S,b),a.moveTo(p.cx+p.x01,p.cy+p.y01),S<A?a.arc(p.cx,p.cy,S,Ib(p.y01,p.x01),Ib(y.y01,y.x01),!b):(a.arc(p.cx,p.cy,S,Ib(p.y01,p.x01),Ib(p.y11,p.x11),!b),a.arc(0,0,l,Ib(p.cy+p.y11,p.cx+p.x11),Ib(y.cy+y.y11,y.cx+y.x11),!b),a.arc(y.cx,y.cy,S,Ib(y.y11,y.x11),Ib(y.y01,y.x01),!b))):(a.moveTo(O,C),a.arc(0,0,l,m,g,!b)):a.moveTo(O,C),c>Xb&&k>Xb?N>Xb?(p=up(P,R,T,j,c,-N,b),y=up(O,C,D,L,c,-N,b),a.lineTo(p.cx+p.x01,p.cy+p.y01),N<A?a.arc(p.cx,p.cy,N,Ib(p.y01,p.x01),Ib(y.y01,y.x01),!b):(a.arc(p.cx,p.cy,N,Ib(p.y01,p.x01),Ib(p.y11,p.x11),!b),a.arc(0,0,c,Ib(p.cy+p.y11,p.cx+p.x11),Ib(y.cy+y.y11,y.cx+y.x11),b),a.arc(y.cx,y.cy,N,Ib(y.y11,y.x11),Ib(y.y01,y.x01),!b))):a.arc(0,0,c,M,w,b):a.lineTo(P,R)}else a.moveTo(0,0);if(a.closePath(),f)return a=null,f+""||null}return f.centroid=function(){var r=(+n.apply(this,arguments)+ +t.apply(this,arguments))/2,i=(+e.apply(this,arguments)+ +u.apply(this,arguments))/2-Vb/2;return[Wb(i)*r,qb(i)*r]},f.innerRadius=function(t){return arguments.length?(n="function"==typeof t?t:Bb(+t),f):n},f.outerRadius=function(n){return arguments.length?(t="function"==typeof n?n:Bb(+n),f):t},f.cornerRadius=function(n){return arguments.length?(r="function"==typeof n?n:Bb(+n),f):r},f.padRadius=function(n){return arguments.length?(i=null==n?null:"function"==typeof n?n:Bb(+n),f):i},f.startAngle=function(n){return arguments.length?(e="function"==typeof n?n:Bb(+n),f):e},f.endAngle=function(n){return arguments.length?(u="function"==typeof n?n:Bb(+n),f):u},f.padAngle=function(n){return arguments.length?(o="function"==typeof n?n:Bb(+n),f):o},f.context=function(n){return arguments.length?(a=null==n?null:n,f):a},f},area:lp,line:cp,pie:function(){var n=vp,t=hp,r=null,i=Bb(0),e=Bb($b),u=Bb(0);function o(o){var a,f,s,c,l,h=o.length,v=0,d=new Array(h),b=new Array(h),p=+i.apply(this,arguments),y=Math.min($b,Math.max(-$b,e.apply(this,arguments)-p)),m=Math.min(Math.abs(y)/h,u.apply(this,arguments)),g=m*(y<0?-1:1);for(a=0;a<h;++a)(l=b[d[a]=a]=+n(o[a],a,o))>0&&(v+=l);for(null!=t?d.sort((function(n,r){return t(b[n],b[r])})):null!=r&&d.sort((function(n,t){return r(o[n],o[t])})),a=0,s=v?(y-h*g)/v:0;a<h;++a,p=c)b[f=d[a]]={data:o[f],index:a,value:l=b[f],startAngle:p,endAngle:c=p+(l>0?l*s:0)+g,padAngle:m};return b}return o.value=function(t){return arguments.length?(n="function"==typeof t?t:Bb(+t),o):n},o.sortValues=function(n){return arguments.length?(t=n,r=null,o):t},o.sort=function(n){return arguments.length?(r=n,t=null,o):r},o.startAngle=function(n){return arguments.length?(i="function"==typeof n?n:Bb(+n),o):i},o.endAngle=function(n){return arguments.length?(e="function"==typeof n?n:Bb(+n),o):e},o.padAngle=function(n){return arguments.length?(u="function"==typeof n?n:Bb(+n),o):u},o},areaRadial:gp,radialArea:gp,lineRadial:mp,radialLine:mp,pointRadial:wp,linkHorizontal:function(){return _p(xp)},linkVertical:function(){return _p(Ap)},linkRadial:function(){var n=_p(Np);return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n},symbol:function(){var n=Bb(Sp),t=Bb(64),r=null;function i(){var i;if(r||(r=i=Mu()),n.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return i.type=function(t){return arguments.length?(n="function"==typeof t?t:Bb(t),i):n},i.size=function(n){return arguments.length?(t="function"==typeof n?n:Bb(+n),i):t},i.context=function(n){return arguments.length?(r=null==n?null:n,i):r},i},symbols:qp,symbolCircle:Sp,symbolCross:Ep,symbolDiamond:Cp,symbolSquare:Dp,symbolStar:jp,symbolTriangle:Bp,symbolWye:Gp,curveBasisClosed:function(n){return new Jp(n)},curveBasisOpen:function(n){return new $p(n)},curveBasis:function(n){return new Vp(n)},curveBundle:Qp,curveCardinalClosed:iy,curveCardinalOpen:uy,curveCardinal:ty,curveCatmullRomClosed:cy,curveCatmullRomOpen:hy,curveCatmullRom:fy,curveLinearClosed:function(n){return new vy(n)},curveLinear:ap,curveMonotoneX:function(n){return new my(n)},curveMonotoneY:function(n){return new gy(n)},curveNatural:function(n){return new My(n)},curveStep:function(n){return new zy(n,.5)},curveStepAfter:function(n){return new zy(n,1)},curveStepBefore:function(n){return new zy(n,0)},stack:function(){var n=Bb([]),t=xy,r=_y,i=Ay;function e(e){var u,o,a=n.apply(this,arguments),f=e.length,s=a.length,c=new Array(s);for(u=0;u<s;++u){for(var l,h=a[u],v=c[u]=new Array(f),d=0;d<f;++d)v[d]=l=[0,+i(e[d],h,d,e)],l.data=e[d];v.key=h}for(u=0,o=t(c);u<s;++u)c[o[u]].index=u;return r(c,o),c}return e.keys=function(t){return arguments.length?(n="function"==typeof t?t:Bb(Mp.call(t)),e):n},e.value=function(n){return arguments.length?(i="function"==typeof n?n:Bb(+n),e):i},e.order=function(n){return arguments.length?(t=null==n?xy:"function"==typeof n?n:Bb(Mp.call(n)),e):t},e.offset=function(n){return arguments.length?(r=null==n?_y:n,e):r},e},stackOffsetExpand:function(n,t){if((i=n.length)>0){for(var r,i,e,u=0,o=n[0].length;u<o;++u){for(e=r=0;r<i;++r)e+=n[r][u][1]||0;if(e)for(r=0;r<i;++r)n[r][u][1]/=e}_y(n,t)}},stackOffsetDiverging:function(n,t){if((a=n.length)>1)for(var r,i,e,u,o,a,f=0,s=n[t[0]].length;f<s;++f)for(u=o=0,r=0;r<a;++r)(e=(i=n[t[r]][f])[1]-i[0])>=0?(i[0]=u,i[1]=u+=e):e<0?(i[1]=o,i[0]=o+=e):i[0]=u},stackOffsetNone:_y,stackOffsetSilhouette:function(n,t){if((r=n.length)>0){for(var r,i=0,e=n[t[0]],u=e.length;i<u;++i){for(var o=0,a=0;o<r;++o)a+=n[o][i][1]||0;e[i][1]+=e[i][0]=-a/2}_y(n,t)}},stackOffsetWiggle:function(n,t){if((e=n.length)>0&&(i=(r=n[t[0]]).length)>0){for(var r,i,e,u=0,o=1;o<i;++o){for(var a=0,f=0,s=0;a<e;++a){for(var c=n[t[a]],l=c[o][1]||0,h=(l-(c[o-1][1]||0))/2,v=0;v<a;++v){var d=n[t[v]];h+=(d[o][1]||0)-(d[o-1][1]||0)}f+=l,s+=h*l}r[o-1][1]+=r[o-1][0]=u,f&&(u-=s/f)}r[o-1][1]+=r[o-1][0]=u,_y(n,t)}},stackOrderAscending:Ny,stackOrderDescending:function(n){return Ny(n).reverse()},stackOrderInsideOut:function(n){var t,r,i=n.length,e=n.map(Sy),u=xy(n).sort((function(n,t){return e[t]-e[n]})),o=0,a=0,f=[],s=[];for(t=0;t<i;++t)r=u[t],o<a?(o+=e[r],f.push(r)):(a+=e[r],s.push(r));return s.reverse().concat(f)},stackOrderNone:xy,stackOrderReverse:function(n){return xy(n).reverse()},timeInterval:Yh,timeMillisecond:Xh,timeMilliseconds:Vh,utcMillisecond:Xh,utcMilliseconds:Vh,timeSecond:nv,timeSeconds:tv,utcSecond:nv,utcSeconds:tv,timeMinute:rv,timeMinutes:iv,timeHour:ev,timeHours:uv,timeDay:ov,timeDays:av,timeWeek:sv,timeWeeks:pv,timeSunday:sv,timeSundays:pv,timeMonday:cv,timeMondays:yv,timeTuesday:lv,timeTuesdays:mv,timeWednesday:hv,timeWednesdays:gv,timeThursday:vv,timeThursdays:wv,timeFriday:dv,timeFridays:Mv,timeSaturday:bv,timeSaturdays:kv,timeMonth:zv,timeMonths:_v,timeYear:xv,timeYears:Av,utcMinute:Nv,utcMinutes:Sv,utcHour:Ev,utcHours:Fv,utcDay:Ov,utcDays:Cv,utcWeek:Rv,utcWeeks:Iv,utcSunday:Rv,utcSundays:Iv,utcMonday:Tv,utcMondays:Wv,utcTuesday:jv,utcTuesdays:Uv,utcWednesday:Dv,utcWednesdays:Gv,utcThursday:Lv,utcThursdays:qv,utcFriday:Bv,utcFridays:Yv,utcSaturday:Hv,utcSaturdays:Xv,utcMonth:Vv,utcMonths:Jv,utcYear:$v,utcYears:Zv,timeFormatDefaultLocale:yb,get timeFormat(){return id},get timeParse(){return ed},get utcFormat(){return ud},get utcParse(){return od},timeFormatLocale:td,isoFormat:gb,isoParse:wb,now:Ei,timer:Ci,timerFlush:Pi,timeout:Di,interval:function(n,t,r){var i=new Oi,e=t;return null==t?(i.restart(n,t,r),i):(t=+t,r=null==r?Ei():+r,i.restart((function u(o){o+=e,i.restart(u,e+=t,r),n(o)}),t,r),i)},transition:ve,active:function(n,t){var r,i,e=n.__transition;if(e)for(i in t=null==t?null:t+"",e)if((r=e[i]).state>1&&r.name===t)return new he([[n]],Le,t,+i);return null},interrupt:Gi,voronoi:function(){var n=Fy,t=Oy,r=null;function i(i){return new hm(i.map((function(r,e){var u=[Math.round(n(r,e,i)/fm)*fm,Math.round(t(r,e,i)/fm)*fm];return u.index=e,u.data=r,u})),r)}return i.polygons=function(n){return i(n).polygons()},i.links=function(n){return i(n).links()},i.triangles=function(n){return i(n).triangles()},i.x=function(t){return arguments.length?(n="function"==typeof t?t:Ey(+t),i):n},i.y=function(n){return arguments.length?(t="function"==typeof n?n:Ey(+n),i):t},i.extent=function(n){return arguments.length?(r=null==n?null:[[+n[0][0],+n[0][1]],[+n[1][0],+n[1][1]]],i):r&&[[r[0][0],r[0][1]],[r[1][0],r[1][1]]]},i.size=function(n){return arguments.length?(r=null==n?null:[[0,0],[+n[0],+n[1]]],i):r&&[r[1][0]-r[0][0],r[1][1]-r[0][1]]},i},zoom:function(){var n,t,r=wm,i=Mm,e=xm,u=zm,o=_m,a=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],s=250,c=si,l=[],h=Y("start","zoom","end"),v=500,d=0;function b(n){n.property("__zoom",km).on("wheel.zoom",k).on("mousedown.zoom",z).on("dblclick.zoom",_).filter(o).on("touchstart.zoom",x).on("touchmove.zoom",A).on("touchend.zoom touchcancel.zoom",N).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(n,t){return(t=Math.max(a[0],Math.min(a[1],t)))===n.k?n:new bm(t,n.x,n.y)}function y(n,t,r){var i=t[0]-r[0]*n.k,e=t[1]-r[1]*n.k;return i===n.x&&e===n.y?n:new bm(n.k,i,e)}function m(n){return[(+n[0][0]+ +n[1][0])/2,(+n[0][1]+ +n[1][1])/2]}function g(n,t,r){n.on("start.zoom",(function(){w(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){w(this,arguments).end()})).tween("zoom",(function(){var n=this,e=arguments,u=w(n,e),o=i.apply(n,e),a=r||m(o),f=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),s=n.__zoom,l="function"==typeof t?t.apply(n,e):t,h=c(s.invert(a).concat(f/s.k),l.invert(a).concat(f/l.k));return function(n){if(1===n)n=l;else{var t=h(n),r=f/t[2];n=new bm(r,a[0]-t[0]*r,a[1]-t[1]*r)}u.zoom(null,n)}}))}function w(n,t){for(var r,i=0,e=l.length;i<e;++i)if((r=l[i]).that===n)return r;return new M(n,t)}function M(n,t){this.that=n,this.args=t,this.index=-1,this.active=0,this.extent=i.apply(n,t)}function k(){if(r.apply(this,arguments)){var n=w(this,arguments),t=this.__zoom,i=Math.max(a[0],Math.min(a[1],t.k*Math.pow(2,u.apply(this,arguments)))),o=yt(this);if(n.wheel)n.mouse[0][0]===o[0]&&n.mouse[0][1]===o[1]||(n.mouse[1]=t.invert(n.mouse[0]=o)),clearTimeout(n.wheel);else{if(t.k===i)return;n.mouse=[o,t.invert(o)],Gi(this),n.start()}gm(),n.wheel=setTimeout(s,150),n.zoom("mouse",e(y(p(t,i),n.mouse[0],n.mouse[1]),n.extent,f))}function s(){n.wheel=null,n.end()}}function z(){if(!t&&r.apply(this,arguments)){var n=w(this,arguments),i=lt(Qn.view).on("mousemove.zoom",s,!0).on("mouseup.zoom",c,!0),u=yt(this),o=Qn.clientX,a=Qn.clientY;Mt(Qn.view),mm(),n.mouse=[u,this.__zoom.invert(u)],Gi(this),n.start()}function s(){if(gm(),!n.moved){var t=Qn.clientX-o,r=Qn.clientY-a;n.moved=t*t+r*r>d}n.zoom("mouse",e(y(n.that.__zoom,n.mouse[0]=yt(n.that),n.mouse[1]),n.extent,f))}function c(){i.on("mousemove.zoom mouseup.zoom",null),kt(Qn.view,n.moved),gm(),n.end()}}function _(){if(r.apply(this,arguments)){var n=this.__zoom,t=yt(this),u=n.invert(t),o=n.k*(Qn.shiftKey?.5:2),a=e(y(p(n,o),t,u),i.apply(this,arguments),f);gm(),s>0?lt(this).transition().duration(s).call(g,a,t):lt(this).call(b.transform,a)}}function x(){if(r.apply(this,arguments)){var t,i,e,u,o=w(this,arguments),a=Qn.changedTouches,f=a.length;for(mm(),i=0;i<f;++i)u=[u=mt(this,a,(e=a[i]).identifier),this.__zoom.invert(u),e.identifier],o.touch0?o.touch1||(o.touch1=u):(o.touch0=u,t=!0);if(n&&(n=clearTimeout(n),!o.touch1))return o.end(),void((u=lt(this).on("dblclick.zoom"))&&u.apply(this,arguments));t&&(n=setTimeout((function(){n=null}),v),Gi(this),o.start())}}function A(){var t,r,i,u,o=w(this,arguments),a=Qn.changedTouches,s=a.length;for(gm(),n&&(n=clearTimeout(n)),t=0;t<s;++t)i=mt(this,a,(r=a[t]).identifier),o.touch0&&o.touch0[2]===r.identifier?o.touch0[0]=i:o.touch1&&o.touch1[2]===r.identifier&&(o.touch1[0]=i);if(r=o.that.__zoom,o.touch1){var c=o.touch0[0],l=o.touch0[1],h=o.touch1[0],v=o.touch1[1],d=(d=h[0]-c[0])*d+(d=h[1]-c[1])*d,b=(b=v[0]-l[0])*b+(b=v[1]-l[1])*b;r=p(r,Math.sqrt(d/b)),i=[(c[0]+h[0])/2,(c[1]+h[1])/2],u=[(l[0]+v[0])/2,(l[1]+v[1])/2]}else{if(!o.touch0)return;i=o.touch0[0],u=o.touch0[1]}o.zoom("touch",e(y(r,i,u),o.extent,f))}function N(){var n,r,i=w(this,arguments),e=Qn.changedTouches,u=e.length;for(mm(),t&&clearTimeout(t),t=setTimeout((function(){t=null}),v),n=0;n<u;++n)r=e[n],i.touch0&&i.touch0[2]===r.identifier?delete i.touch0:i.touch1&&i.touch1[2]===r.identifier&&delete i.touch1;i.touch1&&!i.touch0&&(i.touch0=i.touch1,delete i.touch1),i.touch0?i.touch0[1]=this.__zoom.invert(i.touch0[0]):i.end()}return b.transform=function(n,t){var r=n.selection?n.selection():n;r.property("__zoom",km),n!==r?g(n,t):r.interrupt().each((function(){w(this,arguments).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},b.scaleBy=function(n,t){b.scaleTo(n,(function(){var n=this.__zoom.k,r="function"==typeof t?t.apply(this,arguments):t;return n*r}))},b.scaleTo=function(n,t){b.transform(n,(function(){var n=i.apply(this,arguments),r=this.__zoom,u=m(n),o=r.invert(u),a="function"==typeof t?t.apply(this,arguments):t;return e(y(p(r,a),u,o),n,f)}))},b.translateBy=function(n,t,r){b.transform(n,(function(){return e(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof r?r.apply(this,arguments):r),i.apply(this,arguments),f)}))},b.translateTo=function(n,t,r){b.transform(n,(function(){var n=i.apply(this,arguments),u=this.__zoom,o=m(n);return e(pm.translate(o[0],o[1]).scale(u.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof r?-r.apply(this,arguments):-r),n,f)}))},M.prototype={start:function(){return 1==++this.active&&(this.index=l.push(this)-1,this.emit("start")),this},zoom:function(n,t){return this.mouse&&"mouse"!==n&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==n&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==n&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(l.splice(this.index,1),this.index=-1,this.emit("end")),this},emit:function(n){et(new dm(b,n,this.that.__zoom),h.apply,h,[n,this.that,this.args])}},b.wheelDelta=function(n){return arguments.length?(u="function"==typeof n?n:vm(+n),b):u},b.filter=function(n){return arguments.length?(r="function"==typeof n?n:vm(!!n),b):r},b.touchable=function(n){return arguments.length?(o="function"==typeof n?n:vm(!!n),b):o},b.extent=function(n){return arguments.length?(i="function"==typeof n?n:vm([[+n[0][0],+n[0][1]],[+n[1][0],+n[1][1]]]),b):i},b.scaleExtent=function(n){return arguments.length?(a[0]=+n[0],a[1]=+n[1],b):[a[0],a[1]]},b.translateExtent=function(n){return arguments.length?(f[0][0]=+n[0][0],f[1][0]=+n[1][0],f[0][1]=+n[0][1],f[1][1]=+n[1][1],b):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},b.constrain=function(n){return arguments.length?(e=n,b):e},b.duration=function(n){return arguments.length?(s=+n,b):s},b.interpolate=function(n){return arguments.length?(c=n,b):c},b.on=function(){var n=h.on.apply(h,arguments);return n===h?b:n},b.clickDistance=function(n){return arguments.length?(d=(n=+n)*n,b):Math.sqrt(d)},b},zoomTransform:ym,zoomIdentity:pm}),Nm=e(Am);var Sm=u((function(n,t){
2
+ /*! sszvis v2.4.1, Copyright 2014-present Statistik Stadt Zürich */
3
+ !function(n,t){var r="default"in t?t.default:t;function i(n){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];throw Error("[Immer] minified error nr: "+n+(r.length?" "+r.join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function e(n){return!!n&&!!n[q]}function u(n){return!!n&&(function(n){if(!n||"object"!=typeof n)return!1;var t=Object.getPrototypeOf(n);return!t||t===Object.prototype}(n)||Array.isArray(n)||!!n[G]||!!n.constructor[G]||h(n)||v(n))}function o(n,t,r){void 0===r&&(r=!1),0===f(n)?(r?Object.keys:Y)(n).forEach((function(i){r&&"symbol"==typeof i||t(i,n[i],n)})):n.forEach((function(r,i){return t(i,r,n)}))}function f(n){var t=n[q];return t?t.i>3?t.i-4:t.i:Array.isArray(n)?1:h(n)?2:v(n)?3:0}function s(n,t){return 2===f(n)?n.has(t):Object.prototype.hasOwnProperty.call(n,t)}function c(n,t,r){var i=f(n);2===i?n.set(t,r):3===i?(n.delete(t),n.add(r)):n[t]=r}function l(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t}function h(n){return H&&n instanceof Map}function v(n){return I&&n instanceof Set}function d(n){return n.o||n.t}function b(n){if(Array.isArray(n))return n.slice();var t=X(n);delete t[q];for(var r=Y(t),i=0;i<r.length;i++){var e=r[i],u=t[e];!1===u.writable&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(t[e]={configurable:!0,writable:!0,enumerable:u.enumerable,value:n[e]})}return Object.create(Object.getPrototypeOf(n),t)}function p(n,t){m(n)||e(n)||!u(n)||(f(n)>1&&(n.set=n.add=n.clear=n.delete=y),Object.freeze(n),t&&o(n,(function(n,t){return p(t,!0)}),!0))}function y(){i(2)}function m(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function g(n){var t=V[n];return t||i(19,n),t}function w(){return L}function M(n,t){t&&(g("Patches"),n.u=[],n.s=[],n.v=t)}function k(n){z(n),n.p.forEach(x),n.p=null}function z(n){n===L&&(L=n.l)}function _(n){return L={p:[],l:L,h:n,m:!0,_:0}}function x(n){var t=n[q];0===t.i||1===t.i?t.j():t.g=!0}function A(n,t){t._=t.p.length;var r=t.p[0],e=void 0!==n&&n!==r;return t.h.O||g("ES5").S(t,n,e),e?(r[q].P&&(k(t),i(4)),u(n)&&(n=N(t,n),t.l||E(t,n)),t.u&&g("Patches").M(r[q],n,t.u,t.s)):n=N(t,r,[]),k(t),t.u&&t.v(t.u,t.s),n!==U?n:void 0}function N(n,t,r){if(m(t))return t;var i=t[q];if(!i)return o(t,(function(e,u){return S(n,i,t,e,u,r)}),!0),t;if(i.A!==n)return t;if(!i.P)return E(n,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var e=4===i.i||5===i.i?i.o=b(i.k):i.o;o(3===i.i?new Set(e):e,(function(t,u){return S(n,i,e,t,u,r)})),E(n,e,!1),r&&n.u&&g("Patches").R(i,r,n.u,n.s)}return i.o}function S(n,t,r,i,o,a){if(e(o)){var f=N(n,o,a&&t&&3!==t.i&&!s(t.D,i)?a.concat(i):void 0);if(c(r,i,f),!e(f))return;n.m=!1}if(u(o)&&!m(o)){if(!n.h.N&&n._<1)return;N(n,o),t&&t.A.l||E(n,o)}}function E(n,t,r){void 0===r&&(r=!1),n.h.N&&n.m&&p(t,r)}function F(n,t){var r=n[q];return(r?d(r):n)[t]}function O(n,t){if(t in n)for(var r=Object.getPrototypeOf(n);r;){var i=Object.getOwnPropertyDescriptor(r,t);if(i)return i;r=Object.getPrototypeOf(r)}}function C(n){n.P||(n.P=!0,n.l&&C(n.l))}function P(n){n.o||(n.o=b(n.t))}function R(n,t,r){var i=h(t)?g("MapSet").T(t,r):v(t)?g("MapSet").F(t,r):n.O?function(n,t){var r=Array.isArray(n),i={i:r?1:0,A:t?t.A:w(),P:!1,I:!1,D:{},l:t,t:n,k:null,o:null,j:null,C:!1},e=i,u=J;r&&(e=[i],u=$);var o=Proxy.revocable(e,u),a=o.revoke,f=o.proxy;return i.k=f,i.j=a,f}(t,r):g("ES5").J(t,r);return(r?r.A:w()).p.push(i),i}function T(n){return e(n)||i(22,n),function n(t){if(!u(t))return t;var r,i=t[q],e=f(t);if(i){if(!i.P&&(i.i<4||!g("ES5").K(i)))return i.t;i.I=!0,r=j(t,e),i.I=!1}else r=j(t,e);return o(r,(function(t,e){i&&function(n,t){return 2===f(n)?n.get(t):n[t]}(i.t,t)===e||c(r,t,n(e))})),3===e?new Set(r):r}(n)}function j(n,t){switch(t){case 2:return new Map(n);case 3:return Array.from(n)}return b(n)}var D,L,B="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),H="undefined"!=typeof Map,I="undefined"!=typeof Set,W="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,U=B?Symbol.for("immer-nothing"):((D={})["immer-nothing"]=!0,D),G=B?Symbol.for("immer-draftable"):"__$immer_draftable",q=B?Symbol.for("immer-state"):"__$immer_state",Y="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,X=Object.getOwnPropertyDescriptors||function(n){var t={};return Y(n).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(n,r)})),t},V={},J={get:function(n,t){if(t===q)return n;var r=d(n);if(!s(r,t))return function(n,t,r){var i,e=O(t,r);return e?"value"in e?e.value:null===(i=e.get)||void 0===i?void 0:i.call(n.k):void 0}(n,r,t);var i=r[t];return n.I||!u(i)?i:i===F(n.t,t)?(P(n),n.o[t]=R(n.A.h,i,n)):i},has:function(n,t){return t in d(n)},ownKeys:function(n){return Reflect.ownKeys(d(n))},set:function(n,t,r){var i=O(d(n),t);if(null==i?void 0:i.set)return i.set.call(n.k,r),!0;if(n.D[t]=!0,!n.P){if(l(r,F(d(n),t))&&(void 0!==r||s(n.t,t)))return!0;P(n),C(n)}return n.o[t]=r,!0},deleteProperty:function(n,t){return void 0!==F(n.t,t)||t in n.t?(n.D[t]=!1,P(n),C(n)):delete n.D[t],n.o&&delete n.o[t],!0},getOwnPropertyDescriptor:function(n,t){var r=d(n),i=Reflect.getOwnPropertyDescriptor(r,t);return i?{writable:!0,configurable:1!==n.i||"length"!==t,enumerable:i.enumerable,value:r[t]}:i},defineProperty:function(){i(11)},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){i(12)}},$={};o(J,(function(n,t){$[n]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),$.deleteProperty=function(n,t){return J.deleteProperty.call(this,n[0],t)},$.set=function(n,t,r){return J.set.call(this,n[0],t,r,n[0])};var Z=function(){function n(n){this.O=W,this.N=!1,"boolean"==typeof(null==n?void 0:n.useProxies)&&this.setUseProxies(n.useProxies),"boolean"==typeof(null==n?void 0:n.autoFreeze)&&this.setAutoFreeze(n.autoFreeze),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this)}var t=n.prototype;return t.produce=function(n,t,r){if("function"==typeof n&&"function"!=typeof t){var e=t;t=n;var o=this;return function(n){var r=this;void 0===n&&(n=e);for(var i=arguments.length,u=Array(i>1?i-1:0),a=1;a<i;a++)u[a-1]=arguments[a];return o.produce(n,(function(n){var i;return(i=t).call.apply(i,[r,n].concat(u))}))}}var a;if("function"!=typeof t&&i(6),void 0!==r&&"function"!=typeof r&&i(7),u(n)){var f=_(this),s=R(this,n,void 0),c=!0;try{a=t(s),c=!1}finally{c?k(f):z(f)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(n){return M(f,r),A(n,f)}),(function(n){throw k(f),n})):(M(f,r),A(a,f))}if(!n||"object"!=typeof n){if((a=t(n))===U)return;return void 0===a&&(a=n),this.N&&p(a,!0),a}i(21,n)},t.produceWithPatches=function(n,t){var r,i,e=this;return"function"==typeof n?function(t){for(var r=arguments.length,i=Array(r>1?r-1:0),u=1;u<r;u++)i[u-1]=arguments[u];return e.produceWithPatches(t,(function(t){return n.apply(void 0,[t].concat(i))}))}:[this.produce(n,t,(function(n,t){r=n,i=t})),r,i]},t.createDraft=function(n){u(n)||i(8),e(n)&&(n=T(n));var t=_(this),r=R(this,n,void 0);return r[q].C=!0,z(t),r},t.finishDraft=function(n,t){var r=(n&&n[q]).A;return M(r,t),A(void 0,r)},t.setAutoFreeze=function(n){this.N=n},t.setUseProxies=function(n){n&&!W&&i(20),this.O=n},t.applyPatches=function(n,t){var r;for(r=t.length-1;r>=0;r--){var i=t[r];if(0===i.path.length&&"replace"===i.op){n=i.value;break}}var u=g("Patches").$;return e(n)?u(n,t):this.produce(n,(function(n){return u(n,t.slice(r+1))}))},n}(),Q=new Z;Q.produceWithPatches.bind(Q);var K=Q.setAutoFreeze.bind(Q);Q.setUseProxies.bind(Q),Q.applyPatches.bind(Q);var nn=Q.createDraft.bind(Q),tn=Q.finishDraft.bind(Q);function rn(n){var t=this.constructor;return this.then((function(r){return t.resolve(n()).then((function(){return r}))}),(function(r){return t.resolve(n()).then((function(){return t.reject(r)}))}))}var en=setTimeout;function un(n){return Boolean(n&&void 0!==n.length)}function on(){}function an(n){if(!(this instanceof an))throw new TypeError("Promises must be constructed via new");if("function"!=typeof n)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],vn(n,this)}function fn(n,t){for(;3===n._state;)n=n._value;0!==n._state?(n._handled=!0,an._immediateFn((function(){var r=1===n._state?t.onFulfilled:t.onRejected;if(null!==r){var i;try{i=r(n._value)}catch(e){return void cn(t.promise,e)}sn(t.promise,i)}else(1===n._state?sn:cn)(t.promise,n._value)}))):n._deferreds.push(t)}function sn(n,t){try{if(t===n)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var r=t.then;if(t instanceof an)return n._state=3,n._value=t,void ln(n);if("function"==typeof r)return void vn((i=r,e=t,function(){i.apply(e,arguments)}),n)}n._state=1,n._value=t,ln(n)}catch(u){cn(n,u)}var i,e}function cn(n,t){n._state=2,n._value=t,ln(n)}function ln(n){2===n._state&&0===n._deferreds.length&&an._immediateFn((function(){n._handled||an._unhandledRejectionFn(n._value)}));for(var t=0,r=n._deferreds.length;t<r;t++)fn(n,n._deferreds[t]);n._deferreds=null}function hn(n,t,r){this.onFulfilled="function"==typeof n?n:null,this.onRejected="function"==typeof t?t:null,this.promise=r}function vn(n,t){var r=!1;try{n((function(n){r||(r=!0,sn(t,n))}),(function(n){r||(r=!0,cn(t,n))}))}catch(i){if(r)return;r=!0,cn(t,i)}}an.prototype.catch=function(n){return this.then(null,n)},an.prototype.then=function(n,t){var r=new this.constructor(on);return fn(this,new hn(n,t,r)),r},an.prototype.finally=rn,an.all=function(n){return new an((function(t,r){if(!un(n))return r(new TypeError("Promise.all accepts an array"));var i=Array.prototype.slice.call(n);if(0===i.length)return t([]);var e=i.length;function u(n,o){try{if(o&&("object"==typeof o||"function"==typeof o)){var a=o.then;if("function"==typeof a)return void a.call(o,(function(t){u(n,t)}),r)}i[n]=o,0==--e&&t(i)}catch(f){r(f)}}for(var o=0;o<i.length;o++)u(o,i[o])}))},an.resolve=function(n){return n&&"object"==typeof n&&n.constructor===an?n:new an((function(t){t(n)}))},an.reject=function(n){return new an((function(t,r){r(n)}))},an.race=function(n){return new an((function(t,r){if(!un(n))return r(new TypeError("Promise.race accepts an array"));for(var i=0,e=n.length;i<e;i++)an.resolve(n[i]).then(t,r)}))},an._immediateFn="function"==typeof setImmediate&&function(n){setImmediate(n)}||function(n){en(n,0)},an._unhandledRejectionFn=function(n){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",n)};var dn=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==a)return a;throw new Error("unable to locate global object")}();"Promise"in dn?dn.Promise.prototype.finally||(dn.Promise.prototype.finally=rn):dn.Promise=an;var bn="undefined"!=typeof self?self:window,pn="URLSearchParams"in bn,yn="Symbol"in bn&&"iterator"in Symbol,mn="FileReader"in bn&&"Blob"in bn&&function(){try{return new Blob,!0}catch(n){return!1}}(),gn="FormData"in bn,wn="ArrayBuffer"in bn;if(wn)var Mn=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],kn=ArrayBuffer.isView||function(n){return n&&Mn.indexOf(Object.prototype.toString.call(n))>-1};function zn(n){if("string"!=typeof n&&(n=String(n)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(n)||""===n)throw new TypeError("Invalid character in header field name");return n.toLowerCase()}function _n(n){return"string"!=typeof n&&(n=String(n)),n}function xn(n){var t={next:function(){var t=n.shift();return{done:void 0===t,value:t}}};return yn&&(t[Symbol.iterator]=function(){return t}),t}function An(n){this.map={},n instanceof An?n.forEach((function(n,t){this.append(t,n)}),this):Array.isArray(n)?n.forEach((function(n){this.append(n[0],n[1])}),this):n&&Object.getOwnPropertyNames(n).forEach((function(t){this.append(t,n[t])}),this)}function Nn(n){if(n.bodyUsed)return Promise.reject(new TypeError("Already read"));n.bodyUsed=!0}function Sn(n){return new Promise((function(t,r){n.onload=function(){t(n.result)},n.onerror=function(){r(n.error)}}))}function En(n){var t=new FileReader,r=Sn(t);return t.readAsArrayBuffer(n),r}function Fn(n){if(n.slice)return n.slice(0);var t=new Uint8Array(n.byteLength);return t.set(new Uint8Array(n)),t.buffer}function On(){return this.bodyUsed=!1,this._initBody=function(n){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=n,n?"string"==typeof n?this._bodyText=n:mn&&Blob.prototype.isPrototypeOf(n)?this._bodyBlob=n:gn&&FormData.prototype.isPrototypeOf(n)?this._bodyFormData=n:pn&&URLSearchParams.prototype.isPrototypeOf(n)?this._bodyText=n.toString():wn&&mn&&((t=n)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=Fn(n.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):wn&&(ArrayBuffer.prototype.isPrototypeOf(n)||kn(n))?this._bodyArrayBuffer=Fn(n):this._bodyText=n=Object.prototype.toString.call(n):this._bodyText="",this.headers.get("content-type")||("string"==typeof n?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):pn&&URLSearchParams.prototype.isPrototypeOf(n)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},mn&&(this.blob=function(){var n=Nn(this);if(n)return n;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?Nn(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(En)}),this.text=function(){var n,t,r,i=Nn(this);if(i)return i;if(this._bodyBlob)return n=this._bodyBlob,t=new FileReader,r=Sn(t),t.readAsText(n),r;if(this._bodyArrayBuffer)return Promise.resolve(function(n){for(var t=new Uint8Array(n),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},gn&&(this.formData=function(){return this.text().then(Rn)}),this.json=function(){return this.text().then(JSON.parse)},this}An.prototype.append=function(n,t){n=zn(n),t=_n(t);var r=this.map[n];this.map[n]=r?r+", "+t:t},An.prototype.delete=function(n){delete this.map[zn(n)]},An.prototype.get=function(n){return n=zn(n),this.has(n)?this.map[n]:null},An.prototype.has=function(n){return this.map.hasOwnProperty(zn(n))},An.prototype.set=function(n,t){this.map[zn(n)]=_n(t)},An.prototype.forEach=function(n,t){for(var r in this.map)this.map.hasOwnProperty(r)&&n.call(t,this.map[r],r,this)},An.prototype.keys=function(){var n=[];return this.forEach((function(t,r){n.push(r)})),xn(n)},An.prototype.values=function(){var n=[];return this.forEach((function(t){n.push(t)})),xn(n)},An.prototype.entries=function(){var n=[];return this.forEach((function(t,r){n.push([r,t])})),xn(n)},yn&&(An.prototype[Symbol.iterator]=An.prototype.entries);var Cn=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Pn(n,t){var r,i,e=(t=t||{}).body;if(n instanceof Pn){if(n.bodyUsed)throw new TypeError("Already read");this.url=n.url,this.credentials=n.credentials,t.headers||(this.headers=new An(n.headers)),this.method=n.method,this.mode=n.mode,this.signal=n.signal,e||null==n._bodyInit||(e=n._bodyInit,n.bodyUsed=!0)}else this.url=String(n);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new An(t.headers)),this.method=(i=(r=t.method||this.method||"GET").toUpperCase(),Cn.indexOf(i)>-1?i:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&e)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(e),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var u=/([?&])_=[^&]*/;u.test(this.url)?this.url=this.url.replace(u,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function Rn(n){var t=new FormData;return n.trim().split("&").forEach((function(n){if(n){var r=n.split("="),i=r.shift().replace(/\+/g," "),e=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(e))}})),t}function Tn(n,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"",this.headers=new An(t.headers),this.url=t.url||"",this._initBody(n)}Pn.prototype.clone=function(){return new Pn(this,{body:this._bodyInit})},On.call(Pn.prototype),On.call(Tn.prototype),Tn.prototype.clone=function(){return new Tn(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new An(this.headers),url:this.url})},Tn.error=function(){var n=new Tn(null,{status:0,statusText:""});return n.type="error",n};var jn=[301,302,303,307,308];Tn.redirect=function(n,t){if(-1===jn.indexOf(t))throw new RangeError("Invalid status code");return new Tn(null,{status:t,headers:{location:n}})};var Dn=bn.DOMException;function Ln(n,t){return new Promise((function(r,i){var e=new Pn(n,t);if(e.signal&&e.signal.aborted)return i(new Dn("Aborted","AbortError"));var u=new XMLHttpRequest;function o(){u.abort()}u.onload=function(){var n,t,i={status:u.status,statusText:u.statusText,headers:(n=u.getAllResponseHeaders()||"",t=new An,n.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(n){var r=n.split(":"),i=r.shift().trim();if(i){var e=r.join(":").trim();t.append(i,e)}})),t)};i.url="responseURL"in u?u.responseURL:i.headers.get("X-Request-URL");var e="response"in u?u.response:u.responseText;setTimeout((function(){r(new Tn(e,i))}),0)},u.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},u.onabort=function(){setTimeout((function(){i(new Dn("Aborted","AbortError"))}),0)},u.open(e.method,function(n){try{return""===n&&bn.location.href?bn.location.href:n}catch(t){return n}}(e.url),!0),"include"===e.credentials?u.withCredentials=!0:"omit"===e.credentials&&(u.withCredentials=!1),"responseType"in u&&(mn?u.responseType="blob":wn&&e.headers.get("Content-Type")&&-1!==e.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),e.headers.forEach((function(n,t){u.setRequestHeader(t,n)})),e.signal&&(e.signal.addEventListener("abort",o),u.onreadystatechange=function(){4===u.readyState&&e.signal.removeEventListener("abort",o)}),u.send(void 0===e._bodyInit?null:e._bodyInit)}))}function Bn(n){function t(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return function(t){n.apply(void 0,r).then((function(n){t(void 0,n)})).catch(t)}}return function(r,i){return{then:function(t){return n(r,i).then(t)},get:t(r),row:function(n){return{get:t(r,n)}}}}}"function"!=typeof Dn&&(Dn=function(n,t){this.message=n,this.name=t;var r=Error(n);this.stack=r.stack},Dn.prototype=Object.create(Error.prototype),Dn.prototype.constructor=Dn),Ln.polyfill=!0,bn.fetch||(bn.fetch=Ln,bn.Headers=An,bn.Request=Pn,bn.Response=Tn),r.csv=Bn(r.csv),r.json=Bn(r.json),function(){if("undefined"!=typeof window){var n=function n(t,r){var i=t.nodeType;if(3==i)r.push(t.textContent.replace(/&/,"&amp;").replace(/</,"&lt;").replace(">","&gt;"));else if(1==i){if(r.push("<",t.tagName),t.hasAttributes())for(var e=t.attributes,u=0,o=e.length;u<o;++u){var a=e.item(u);r.push(" ",a.name,"='",a.value,"'")}if(t.hasChildNodes()){r.push(">");var f=t.childNodes;for(u=0,o=f.length;u<o;++u)n(f.item(u),r);r.push("</",t.tagName,">")}else r.push("/>")}else{if(8!=i)throw"Error serializing XML. Unhandled node of type: "+i;r.push("\x3c!--",t.nodeValue,"--\x3e")}};Object.defineProperty(SVGElement.prototype,"innerHTML",{get:function(){for(var t=[],r=this.firstChild;r;)n(r,t),r=r.nextSibling;return t.join("")},set:function(n){for(;this.firstChild;)this.removeChild(this.firstChild);try{var t=new DOMParser;t.async=!1;for(var r=t.parseFromString("<svg xmlns='http://www.w3.org/2000/svg'>"+n+"</svg>","text/xml").documentElement.firstChild;r;)this.appendChild(this.ownerDocument.importNode(r,!0)),r=r.nextSibling}catch(i){throw new Error("Error parsing XML string")}}}),Object.defineProperty(SVGElement.prototype,"innerSVG",{get:function(){return this.innerHTML},set:function(n){this.innerHTML=n}})}}(),Number.isNaN=Number.isNaN||function(n){return"number"==typeof n&&n!=n},function(){function n(n,t){var r=u[n];return r?r.enumerable=t:u[n]=r={configurable:!0,enumerable:t,get:function(){return J.get(this[q],n)},set:function(t){J.set(this[q],n,t)}},r}function t(n){for(var t=n.length-1;t>=0;t--){var e=n[t][q];if(!e.P)switch(e.i){case 5:i(e)&&C(e);break;case 4:r(e)&&C(e)}}}function r(n){for(var t=n.t,r=n.k,i=Y(r),e=i.length-1;e>=0;e--){var u=i[e];if(u!==q){var o=t[u];if(void 0===o&&!s(t,u))return!0;var a=r[u],f=a&&a[q];if(f?f.t!==o:!l(a,o))return!0}}var c=!!t[q];return i.length!==Y(t).length+(c?0:1)}function i(n){var t=n.k;if(t.length!==n.t.length)return!0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);return!(!r||r.get)}var u={};!function(n,t){V[n]=t}("ES5",{J:function(t,r){var i=Array.isArray(t),e=function(t,r){if(t){for(var i=Array(r.length),e=0;e<r.length;e++)Object.defineProperty(i,""+e,n(e,!0));return i}var u=X(r);delete u[q];for(var o=Y(u),a=0;a<o.length;a++){var f=o[a];u[f]=n(f,t||!!u[f].enumerable)}return Object.create(Object.getPrototypeOf(r),u)}(i,t),u={i:i?5:4,A:r?r.A:w(),P:!1,I:!1,D:{},l:r,t,k:e,o:null,g:!1,C:!1};return Object.defineProperty(e,q,{value:u,writable:!0}),e},S:function(n,r,u){u?e(r)&&r[q].A===n&&t(n.p):(n.u&&function n(t){if(t&&"object"==typeof t){var r=t[q];if(r){var e=r.t,u=r.k,a=r.D,f=r.i;if(4===f)o(u,(function(t){t!==q&&(void 0!==e[t]||s(e,t)?a[t]||n(u[t]):(a[t]=!0,C(r)))})),o(e,(function(n){void 0!==u[n]||s(u,n)||(a[n]=!1,C(r))}));else if(5===f){if(i(r)&&(C(r),a.length=!0),u.length<e.length)for(var c=u.length;c<e.length;c++)a[c]=!1;else for(var l=e.length;l<u.length;l++)a[l]=!0;for(var h=Math.min(u.length,e.length),v=0;v<h;v++)void 0===a[v]&&n(u[v])}}}}(n.p[0]),t(n.p))},K:function(n){return 4===n.i?r(n):i(n)}})}(),K(!1),t.selection.prototype.selectDiv=function(n){var t=this.selectAll('[data-d3-selectdiv="'+n+'"]').data((function(n){return[n]})),r=t.enter().append("div").attr("data-d3-selectdiv",n).style("position","absolute");return t.merge(r)},t.selection.prototype.selectGroup=function(n){var t=this.selectAll('[data-d3-selectgroup="'+n+'"]').data((function(n){return[n]})),r=t.enter().append("g").attr("data-d3-selectgroup",n);return t.merge(r)};var Hn=function(n){return n},In=function(n){return"[object String]"===Object.prototype.toString.call(n)},Wn=function(n){return n instanceof t.selection},Un=function(n,t){switch(n){case 0:return function(){return t.call(this)};case 1:return function(n){return t.call(this,n)};case 2:return function(n,r){return t.call(this,n,r)};case 3:return function(n,r,i){return t.call(this,n,r,i)};case 4:return function(n,r,i,e){return t.call(this,n,r,i,e)};case 5:return function(n,r,i,e,u){return t.call(this,n,r,i,e,u)};case 6:return function(n,r,i,e,u,o){return t.call(this,n,r,i,e,u,o)};case 7:return function(n,r,i,e,u,o,a){return t.call(this,n,r,i,e,u,o,a)};case 8:return function(n,r,i,e,u,o,a,f){return t.call(this,n,r,i,e,u,o,a,f)};case 9:return function(n,r,i,e,u,o,a,f,s){return t.call(this,n,r,i,e,u,o,a,f,s)};case 10:return function(n,r,i,e,u,o,a,f,s,c){return t.call(this,n,r,i,e,u,o,a,f,s,c)};default:return t}},Gn=function(){var n=arguments,t=arguments.length-1;return function(){for(var r=t,i=n[r].apply(this,arguments);r--;)i=n[r].call(this,i);return i}},qn=function(n){return void 0!==n&&null!=n&&!Number.isNaN(n)},Yn=function(n,t){for(var r=new Array(n),i=0;i<n;++i)r[i]=t;return r},Xn=function(n,t){for(var r=0;r<t.length;r++)if(n(t[r]))return t[r]},Vn=function(n){return n[0]},Jn=function(n){return n.touches&&n.touches.length?n.touches[0]:n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:null},$n=function(n){return null===n},Zn=function(n){return Object(n)===n},Qn=function(n){return n[n.length-1]},Kn=function(n){return function(){return!n.apply(this,arguments)}},nt=function(n){return function(t){return t[n]}},tt=function(n,t){return function(r){var i=void 0!==r?r[n]:void 0;return void 0!==i?i:t}},rt=function(n,t){return t||(t=Hn),n.reduce((function(r,i,e){var u=t(i,e,n);return r.indexOf(u)<0?r.concat(u):r}),[])},it=function(n,t){return n.toString()===t.toString()},et=function(n){return"function"==typeof n?n:function(){return n}},ut=function(n,r){if("function"!=typeof n||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var i=function t(){var i=arguments,e=r?r.apply(this,i):i[0],u=t.cache;if(u.has(e))return u.get(e);var o=n.apply(this,i);return t.cache=u.set(e,o)||u,o};return i.cache=t.map(),i};function ot(n,t,r){var i=function(n){var t=n.selectAll("defs").data([0]),r=t.enter().append("defs");return t.merge(r)}(n).selectAll(t+"#"+r).data([0]),e=i.enter().append(t).attr("id",r);return i.merge(e)}function at(n){return function(){return It(t.scaleOrdinal().range(n.map(Ut)))}}var ft="#3431DE",st="#0A8DF6",ct="#23C3F1",lt="#7B4FB7",ht="#DB247D",vt="#FB737E",dt="#007C78",bt="#1D942E",pt="#99C32E",yt="#9A5B01",mt="#FF720C",gt="#FBB900",wt=at([ft,st,ct,lt,ht,vt,dt,bt,pt,yt,mt,gt]),Mt=at([ft,ht,bt,gt,ct,mt]),kt=at([ft,st,ct,lt,ht,vt]),zt=at([dt,bt,pt,yt,mt,gt]);function _t(n){return function(){return Wt(t.scaleLinear().range(n.map(Ut)))}}var xt=_t(["#CADEFF","#5B6EFF","#211A8A"]),At=_t(["#FED2EE","#ED408D","#7D0044"]),Nt=_t(["#CFEED8","#34B446","#0C4B1F"]),St=_t(["#FCDDBB","#EA5D00","#611F00"]);function Et(n){return function(){return Wt(t.scaleLinear().range(n.map(Ut)))}}var Ft=Et(["#782600","#FFFFFF","#2F2ABB"]),Ot=Et(["#782600","#F3F3F3","#2F2ABB"]),Ct=Et(["#A30059","#FFFFFF","#10652A"]),Pt=Et(["#A30059","#F3F3F3","#10652A"]);function Rt(n){return function(){return Wt(t.scaleOrdinal().range(n.map(Ut)))}}var Tt=Rt(["#FAFAFA"]),jt=Rt(["#EAEAEA"]),Dt=Rt(["#D6D6D6"]),Lt=Rt(["#B8B8B8"]),Bt=Rt(["#7C7C7C"]),Ht=Rt(["#545454"]);function It(n){return n.darker=function(){return It(n.copy().range(n.range().map(Gt("darker",.6))))},n.brighter=function(){return It(n.copy().range(n.range().map(Gt("brighter",.6))))},n.reverse=function(){return It(n.copy().range(n.range().reverse()))},n}function Wt(n){return(n=function(n){var r=n.domain;return n.domain=function(n){if(1===arguments.length){var i=[n[0],t.mean(n),n[1]];return r.call(this,i)}return r.apply(this,arguments)},n}(n)).reverse=function(){return Wt(n.copy().range(n.range().reverse()))},n}function Ut(n){return t.lab(n)}function Gt(n){var t=Array.prototype.slice.call(arguments,1);return function(r){return r[n].apply(r,t)}}var qt=function(n){var t="#CCCCCC";n.attr("patternUnits","userSpaceOnUse").attr("patternContentUnits","userSpaceOnUse").attr("x",0).attr("y",0).attr("width",14).attr("height",14),n.append("rect").attr("x",0).attr("y",0).attr("width",14).attr("height",14).attr("fill","#FAFAFA"),n.append("line").attr("x1",1).attr("y1",10).attr("x2",5).attr("y2",14).attr("stroke",t),n.append("line").attr("x1",5).attr("y1",10).attr("x2",1).attr("y2",14).attr("stroke",t),n.append("line").attr("x1",8).attr("y1",3).attr("x2",12).attr("y2",7).attr("stroke",t),n.append("line").attr("x1",12).attr("y1",3).attr("x2",8).attr("y2",7).attr("stroke",t)},Yt=function(n){n.attr("patternUnits","userSpaceOnUse").attr("patternContentUnits","userSpaceOnUse").attr("x",0).attr("y",0).attr("width",6).attr("height",6),n.append("rect").attr("x",0).attr("y",0).attr("width",6).attr("height",6).attr("fill","#fff"),n.append("line").attr("x1",0).attr("y1",3).attr("x2",3).attr("y2",0).attr("stroke","#ddd").attr("stroke-linecap","square"),n.append("line").attr("x1",3).attr("y1",6).attr("x2",6).attr("y2",3).attr("stroke","#ddd").attr("stroke-linecap","square")},Xt=function(n){n.attr("x1",0).attr("y1",0).attr("x2",.55).attr("y2",1).attr("id","lake-fade-gradient"),n.append("stop").attr("offset",.74).attr("stop-color","white").attr("stop-opacity",1),n.append("stop").attr("offset",.97).attr("stop-color","white").attr("stop-opacity",0)},Vt=function(n){n.attr("maskContentUnits","objectBoundingBox"),n.append("rect").attr("fill","url(#lake-fade-gradient)").attr("width",1).attr("height",1)},Jt=function(n){n.attr("patternUnits","userSpaceOnUse").attr("patternContentUnits","userSpaceOnUse").attr("x",0).attr("y",0).attr("width",6).attr("height",6),n.append("line").attr("x1",0).attr("y1",3).attr("x2",3).attr("y2",0).attr("stroke","#e6e6e6").attr("stroke-width",1.1),n.append("line").attr("x1",3).attr("y1",6).attr("x2",6).attr("y2",3).attr("stroke","#e6e6e6").attr("stroke-width",1.1)};function $t(){var n={},t=null,r=Zt;function i(i){t&&(i.props=function(){return Kt(n)},t.apply(i,Qt(arguments))),i.each((function(){this.__props__=Kt(n),r.apply(this,Qt(arguments))}))}return i.prop=function(t,r){return r||(r=Zt),i[t]=function(n,t,r){return r||(r=Zt),function(){return arguments.length?(n[t]=r.apply(null,Qt(arguments)),this):n[t]}}(n,t,r.bind(i)).bind(i),i},i.delegate=function(n,t){return i[n]=function(){var r=t[n].apply(t,Qt(arguments));return 0===arguments.length?r:i},i},i.renderSelection=function(n){return t=n,i},i.render=function(n){return r=n,i},i}function Zt(n){return n}function Qt(n){return Array.prototype.slice.call(n)}function Kt(n){var t={};for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}t.selection.prototype.props=function(){if(arguments.length)throw new Error("selection.props() does not accept any arguments");if(1!=this.size())throw new Error("only one group is supported");if(1!=this._groups[0].length)throw new Error("only one node is supported");return this._groups[0][0].__props__||{}};var nr=function(n){return Math.floor(n)+.5},tr=function(n){var t=Gn(Math.floor,Number),r=n.match(/(translate\()\s*([0-9.,\- ]+)\s*(\))/i)[2].replace(","," ").replace(/\s+/," ").split(" ").map(Number);1===r.length&&r.push([0]);var i=r.map(t);return[r[0]-i[0],r[1]-i[1]]};function rr(n,t){return"translate("+n+","+t+")"}function ir(){return $t().prop("position").position(et([0,0])).prop("debug").render((function(r){var i=t.select(this),e=i.props(),u=i.selectAll("[data-tooltip-anchor]").data(r),o=u.enter().append("rect").attr("height",1).attr("width",1).attr("fill","none").attr("stroke","none").attr("visibility","none").attr("data-tooltip-anchor","");if(u.exit().remove(),(u=u.merge(o)).attr("transform",Gn(n,e.position)),e.debug){var a=i.selectAll("[data-tooltip-anchor-debug]").data(r),f=a.enter().append("circle").attr("data-tooltip-anchor-debug","");a.exit().remove(),(a=a.merge(f)).attr("r",2).attr("fill","#fff").attr("stroke","#f00").attr("stroke-width",1.5).attr("transform",Gn(n,e.position))}}));function n(n){return rr.apply(null,n)}}function er(n,t,r){return function(i){var e=i.enter().append("circle").classed("sszvis-rangeFlag__mark",!0).classed(n,!0);i.exit().remove(),(i=i.merge(e)).attr("r",3.5).attr("cx",t).attr("cy",r)}}var ur={decimal:".",thousands:" ",grouping:[3],currency:["CHF ",""],dateTime:"%a. %e. %B %X %Y",date:"%d.%m.%Y",time:"%H:%M:%S",periods:[],days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],shortDays:["So","Mo","Di","Mi","Do","Fr","Sa"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],shortMonths:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"]},or=t.timeFormatLocale(ur).format,ar=t.formatLocale(ur).format,fr=function(n){for(var t=[[".%L",function(n){return n.getMilliseconds()}],[":%S",function(n){return n.getSeconds()}],["%H:%M",function(n){return n.getMinutes()}],["%H Uhr",function(n){return n.getHours()}],["%a., %d.",function(n){return n.getDay()&&1!=n.getDate()}],["%e. %b",function(n){return 1!=n.getDate()}],["%B",function(n){return n.getMonth()}],["%Y",function(){return!0}]],r=0;r<t.length;++r)if(t[r][1](n))return or(t[r][0])(n)},sr=Gn((function(n){return n.toUpperCase()}),or("%b")),cr=or("%Y"),lr=function(n){var t,r=Math.abs(n);return null==n||isNaN(n)?"–":r>=1e4?ar(",.0f")(n):r>=100?(t=Math.min(1,vr(n)),dr(ar("."+t+"f")(n))):r>0?(t=Math.min(2,vr(n)),dr(ar("."+t+"f")(n))):ar(".0f")(0)},hr=function(n){return String(n)};function vr(n){return(String(Math.abs(n)).split(".")[1]||"").length}function dr(n){return n.replace(/(\.[0-9]*[1-9])0+$|\.0*$/,"$1")}var br=function(){return $t().prop("header").prop("body").prop("orientation",et).orientation("bottom").prop("dx",et).dx(1).prop("dy",et).dy(1).prop("opacity",et).opacity(1).renderSelection((function(n){var r=n.datum(),i=n.props(),e=qn,u=e(i.header)&&!e(i.body)||!e(i.header)&&e(i.body),o=n.selectAll(".sszvis-tooltip").data(r);o.exit().remove();var a=o.enter().append("div");(o=o.merge(a)).style("pointer-events","none").style("opacity",i.opacity).style("padding-top",(function(n){return"top"===i.orientation(n)?"6px":null})).style("padding-right",(function(n){return"right"===i.orientation(n)?"6px":null})).style("padding-bottom",(function(n){return"bottom"===i.orientation(n)?"6px":null})).style("padding-left",(function(n){return"left"===i.orientation(n)?"6px":null})).classed("sszvis-tooltip",!0);var f=a.append("svg").attr("class","sszvis-tooltip__background").attr("height",0).attr("width",0),s=f.append("path");if(void 0!==window.SVGFEColorMatrixElement&&2==SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE){var c=f.append("filter").attr("id","sszvisTooltipShadowFilter").attr("height","150%");c.append("feGaussianBlur").attr("in","SourceAlpha").attr("stdDeviation",2),c.append("feComponentTransfer").append("feFuncA").attr("type","linear").attr("slope",.2);var l=c.append("feMerge");l.append("feMergeNode"),l.append("feMergeNode").attr("in","SourceGraphic"),s.attr("filter","url(#sszvisTooltipShadowFilter)")}else f.classed("sszvis-tooltip__background--fallback",!0);var h=a.append("div").classed("sszvis-tooltip__content",!0);h.append("div").classed("sszvis-tooltip__header",!0),h.append("div").classed("sszvis-tooltip__body",!0),o.select(".sszvis-tooltip__header").datum(nt("datum")).html(i.header||et("")),o.select(".sszvis-tooltip__body").datum(nt("datum")).html((function(n){var t=i.body?et(i.body)(n):"";return Array.isArray(t)?'<table class="sszvis-tooltip__body__table">'+t.map((function(n){return"<tr>"+n.map((function(n){return"<td>"+n+"</td>"})).join("")+"</tr>"})).join("")+"</table>":t})),n.selectAll(".sszvis-tooltip").classed("sszvis-tooltip--small",u).each((function(n){var r=t.select(this),e=r.node().getBoundingClientRect(),o=i.orientation.apply(this,arguments);switch(o){case"top":r.style("left",n.x-e.width/2+"px").style("top",n.y+i.dy(n)+"px");break;case"bottom":r.style("left",n.x-e.width/2+"px").style("top",n.y-i.dy(n)-e.height+"px");break;case"left":r.style("left",n.x+i.dx(n)+"px").style("top",n.y-e.height/2+"px");break;case"right":r.style("left",n.x-i.dx(n)-e.width+"px").style("top",n.y-e.height/2+"px")}var a=e.height+10,f=e.width+10;r.select(".sszvis-tooltip__background").attr("height",a).attr("width",f).style("left","-5px").style("top","-5px").select("path").attr("d",pr([5,5],[f-5,a-5],o,u?3:4))}))}))};function pr(n,t,r,i){switch(r){case"top":n[1]=n[1]+6;break;case"bottom":t[1]=t[1]-6;break;case"left":n[0]=n[0]+6;break;case"right":t[0]=t[0]-6}function e(n){return n[0]}function u(n){return n[1]}function o(n,t,r,i,e,u,o){var a=r+(e-r)/2,f=i+(u-i)/2,s=[];return o&&i===u?s=r<e?["L",a-6,f,"L",a,f-6,"L",a+6,f]:["L",a+6,f,"L",a,f+6,"L",a-6,f]:o&&r===e&&(s=i<u?["L",a,f-6,"L",a+6,f,"L",a,f+6]:["L",a,f+6,"L",a-6,f,"L",a,f-6]),[].concat(["Q",n,t,r,i],s,["L",e,u])}return[["M",e(n),u(n)+i],o(e(n),u(n),e(n)+i,u(n),e(t)-i,u(n),"top"===r),o(e(t),u(n),e(t),u(n)+i,e(t),u(t)-i,"right"===r),o(e(t),u(t),e(t)-i,u(t),e(n)+i,u(t),"bottom"===r),o(e(n),u(t),e(n),u(t)-i,e(n),u(n)+i,"left"===r)].map((function(n){return n.join(" ")})).join(" ")}var yr=function(n,r){r||(r={}),r.src||(r.src="fallback.png"),(Wn(n)?n:t.select(n)).append("img").attr("class","sszvis-fallback-image").attr("src",r.src)},mr={resize:[]};"undefined"!=typeof window&&t.select(window).on("resize",function(n,t,r){var i,e=0;return arguments.length<3&&(r=!0),function(){var u=arguments,o=this;i=function(){n.apply(o,u),e=(new Date).getTime()+t,i=null,r&&setTimeout((function(){i&&i()}),t)},(new Date).getTime()>e&&i()}}((function(){gr("resize")}),500));var gr=function(n){var t=Array.prototype.slice.call(arguments,1);return mr[n]&&mr[n].forEach((function(n){n.apply(null,t)})),this},wr={on:function(n,t){return mr[n]||(mr[n]=[]),mr[n]=mr[n].filter((function(n){return n!==t})).concat(t),this},off:function(n,t){return mr[n]?(mr[n]=mr[n].filter((function(n){return n!==t})),this):this},trigger:gr};function Mr(n,t){if(!n)throw new Error("[sszvis.app] ".concat(t))}function kr(n){return"function"==typeof n}function zr(n,t){var r=Cr(t);return Xn((function(n){return xr(n,r)}),n)}function _r(n,t){return Xn((function(n){return n.name===t}),n)}function xr(n,t){var r=n.measurement,i=Cr(t);return i.width<=r.width&&i.screenHeight<=r.screenHeight}function Ar(n,t){var r=Cr(t);return n.filter((function(n){return xr(n,r)}))}function Nr(n){return n.map(Pr).concat(Pr({name:"_"}))}var Sr,Er=(Sr=Nr([{name:"palm",width:540},{name:"lap",width:749}]),function(){return Sr}),Fr=Rr("palm"),Or=Rr("lap");function Cr(n){var t=tt("width",1/0),r=tt("screenHeight",1/0);return{width:t(n),screenHeight:r(n)}}function Pr(n){var t;return t=qn(n.measurement)?Cr(n.measurement):Cr({width:n.width,screenHeight:n.screenHeight}),{name:n.name,measurement:t}}function Rr(n){return function(t){return xr(_r(Er(),n),t)}}function Tr(n,t){var r=n/t;return function(n){return n/r}}var jr=Tr(4,3),Dr=Tr(16,10),Lr=function(n){return Math.min(Tr(12,5)(n),500)};Lr.MAX_HEIGHT=500;var Br=function(n){return Math.min(Tr(1,1)(n),420)};Br.MAX_HEIGHT=420;var Hr=function(n){return Math.min(Tr(4,5)(n),600)};Hr.MAX_HEIGHT=600;var Ir={palm:jr,lap:Dr,_:Lr},Wr=function(n){var t=zr(Er(),n);return(0,Ir[t.name])(n.width)},Ur=qr("warn"),Gr=qr("error");function qr(n){return function(){console&&console[n]&&Yr(arguments).forEach((function(t){console[n](t)}))}}function Yr(n){return Array.prototype.slice.call(n)}var Xr=function(n){return n.rangeExtent?n.rangeExtent():(t=n.range(),(r=t[0])<(i=t[t.length-1])?[r,i]:[i,r]);var t,r,i};function Vr(n,r,i,e){e=(e||5)-2;var u=r;r-=2*(i=i||5);var o=[];return n.each((function(){var n,a,f=t.select(this),s=f.text().split(/[ \f\n\r\t\v]+/).reverse(),c=[],l=0,h=f.attr("y"),v=parseFloat(f.attr("dy")),d=1,b=f.style("text-anchor")||"start";if(isNaN(v)&&(v=0),t.select(f.node().parentNode).classed("tick"))switch(b){case"start":a=-r/2;break;case"middle":a=0;break;case"end":a=r/2}else switch(b){case"start":a=i;break;case"middle":a=u/2;break;case"end":a=u-i}h=+(null===h?e:h);for(var p=f.text(null).append("tspan").attr("x",a).attr("y",h).attr("dy",v+"em");s.length>0;)n=s.pop(),c.push(n),p.text(c.join(" ")),p.node().getComputedTextLength()>r&&c.length>1&&(c.pop(),p.text(c.join(" ")),c=[n],p=f.append("tspan").attr("x",a).attr("y",h).attr("dy",1.1*++l+v+"em").text(n),++d);o.push(d)})),o}var Jr=function(){var n=$t().prop("scale").prop("orient").prop("ticks").prop("tickValues").prop("tickSize").prop("tickSizeInner").prop("tickSizeOuter").prop("tickPadding").prop("tickFormat").prop("_scale").prop("orient").orient("bottom").prop("alignOuterLabels").alignOuterLabels(!1).prop("contour").prop("removeStroke").prop("hideBorderTickThreshold").hideBorderTickThreshold(8).prop("hideLabelThreshold").hideLabelThreshold(10).prop("highlightTick",et).prop("showZeroY").showZeroY(!1).prop("slant").prop("textWrap").prop("tickLength").prop("title").prop("titleAnchor").prop("titleCenter").prop("dxTitle").prop("dyTitle").prop("titleVertical").prop("vertical").vertical(!1).prop("yOffset").yOffset(0).render((function(){var n=t.select(this),r=n.props(),i=!r.vertical&&"bottom"===r.orient,e=function(){switch(r.orient){case"bottom":return t.axisBottom();case"top":return t.axisTop();case"left":return t.axisLeft();case"right":return t.axisRight()}}();["scale","ticks","tickValues","tickSizeInner","tickSizeOuter","tickPadding","tickFormat","tickSize"].forEach((function(n){if(void 0!==r[n]){if(void 0===e[n])throw new Error('axis: "'+n+'" not available');e[n](r[n])}})),r._scale&&e.scale(r._scale);var u=n.selectGroup("sszvis-axis").classed("sszvis-axis",!0).classed("sszvis-axis--top",!r.vertical&&"top"===r.orient).classed("sszvis-axis--bottom",i).classed("sszvis-axis--vertical",r.vertical).attr("transform",rr(0,r.yOffset)).call(e);u.attr("fill",null).attr("font-size",null).attr("font-family",null);var o=e.scale(),a=u.selectAll("g.tick"),f=a.selectAll("text");a.each((function(){var n=tr(this.getAttribute("transform")),r=nr(0)-n[0],e=nr(i?2:0)+n[1];t.select(this).select("line").attr("transform",rr(r,e))})),f.each((function(){"top"!==r.orient&&"bottom"!==r.orient||t.select(this).attr("dx","-0.5"),"left"!==r.orient&&"right"!==r.orient||t.select(this).attr("y","-0.5")})),u.selectAll("path.domain");var s=Xr(o);if(a.selectAll("line").each((function(n){var i=o(n),e=t.select(this);e.classed("hidden",!e.classed("sszvis-axis__longtick")&&(Kr(i,s[0])<r.hideBorderTickThreshold||Kr(i,s[1])<r.hideBorderTickThreshold))})),qn(r.tickLength)){var c=t.extent(o.domain()),l=a.filter((function(n){return!it(n,c[0])&&!it(n,c[1])})),h=r.orient,v=2;"left"!==h&&"right"!==h||(l.selectAll("text").each((function(){v=Math.max(this.getBoundingClientRect().width,v)})),v+=2);var d=l.selectAll("line.sszvis-axis__longtick").data([0]);if(r.tickLength>v){var b=d.enter().append("line").classed("sszvis-axis__longtick",!0);d=d.merge(b),"top"===h?d.attr("y1",v).attr("y2",r.tickLength):"bottom"===h?d.attr("y1",-v).attr("y2",-r.tickLength):"left"===h?d.attr("x1",-v).attr("x2",-r.tickLength):"right"===h&&d.attr("x1",v).attr("x2",r.tickLength)}else d.remove()}if(r.alignOuterLabels){var p=Xr(o),y=p[0],m=p[1];f.style("text-anchor",(function(n){var t=o(n);return Kr(t,y)<12?"start":Kr(t,m)<12?"end":"middle"}))}if(qn(r.textWrap)&&f.call(Vr,r.textWrap),r.slant&&f.call(ni[r.orient][r.slant]),r.highlightTick){var g=[],w=[];f.classed("hidden",!1).classed("active",r.highlightTick),r.hideLabelThreshold>0&&!r.slant&&(f.each((function(n){var t=this.getBoundingClientRect(),i={node:this,bounds:{top:t.top,right:t.right,bottom:t.bottom,left:t.left}};r.highlightTick(n)?(i.bounds.left-=r.hideLabelThreshold,i.bounds.right+=r.hideLabelThreshold,g.push(i)):w.push(i)})),g.forEach((function(n){w.forEach((function(r){var i,e;t.select(r.node).classed("hidden",!((e=n.bounds).left>(i=r.bounds).right||e.right<i.left||e.top>i.bottom||e.bottom<i.top))}))})))}if(r.title){var M=u.selectAll(".sszvis-axis__title").data([r.title]),k=M.enter().append("text").classed("sszvis-axis__title",!0);M.exit().remove(),M.merge(k).text((function(n){return n})).attr("transform",(function(){var n,t=r.orient,i=Xr(o);return(n=r.titleCenter?{left:"left"===t||"right"===t?0:"top"===t||"bottom"===t?(i[0]+i[1])/2:0,top:"left"===t||"right"===t?(i[0]+i[1])/2:"top"===t?0:"bottom"===t?32:0}:{left:"left"===t||"right"===t||"top"===t?0:"bottom"===t?i[1]:0,top:"left"===t||"right"===t||"top"===t?0:"bottom"===t?32:0}).vertical=!!r.titleVertical,n.left+=r.dxTitle||0,n.top+=r.dyTitle||0,"translate("+n.left+", "+n.top+") rotate("+(n.vertical?"-90":"0")+")"})).style("text-anchor",(function(){var n=r.orient;return void 0!==r.titleAnchor?r.titleAnchor:"left"===n?"end":"right"===n?"start":"top"===n||"bottom"===n?"end":void 0}))}r.contour&&r.slant?Ur("Can't apply contour to slanted labels"):r.contour&&a.each((function(){var n=t.select(this),r=n.select("text").node(),i=n.select(".sszvis-axis__label-contour");i.empty()&&(i=t.select(r.cloneNode()).classed("sszvis-axis__label-contour",!0),this.insertBefore(i.node(),r)),i.text(r.textContent)})),r.removeStroke||a.each((function(){t.select(this).select("text").attr("stroke","white").attr("stroke-width",.5).attr("stroke-opacity",.75)}))}));return n},$r=function(n){var t=this.scale().domain(),r=[],i=Math.round(t.length/n);void 0!==t[0]&&r.push(t[0]);for(var e=i,u=t.length;e<u-1;e+=i)void 0!==t[e]&&r.push(t[e]);return void 0!==t[t.length-1]&&r.push(t[t.length-1]),this.tickValues(r),n},Zr=function(){return Jr().yOffset(2).ticks(3).tickSizeInner(4).tickSizeOuter(6.5).tickPadding(6).tickFormat(Un(1,lr))};Zr.time=function(){return Zr().tickFormat(fr).alignOuterLabels(!0)},Zr.ordinal=function(){return Zr().prop("ticks",$r).tickFormat(hr)},Zr.pyramid=function(){return Zr().ticks(10).prop("scale",(function(n){var t=n.copy(),r=t.domain(),i=t.range();return t.domain([-r[1],r[1]]).range([i[0]-i[1],i[0]+i[1]]),this._scale(t),t})).tickFormat((function(n){return lr(Math.abs(n))}))};var Qr=function(){var n=Jr().ticks(6).tickSize(0,0).tickPadding(0).tickFormat((function(t){return 0!==t||n.showZeroY()?lr(t):null})).vertical(!0);return n};function Kr(n,t){return Math.abs(n-t)}Qr.time=function(){return Qr().tickFormat(fr)},Qr.ordinal=function(){return Qr().prop("ticks",$r).tickFormat(hr)};var ni={top:{horizontal:function(n){n.style("text-anchor","middle").attr("dx","-0.5").attr("dy","0.71em").attr("transform",null)},vertical:function(n){n.style("text-anchor","start").attr("dx","0em").attr("dy","0.35em").attr("transform","rotate(-90)")},diagonal:function(n){n.style("text-anchor","start").attr("dx","0.1em").attr("dy","0.1em").attr("transform","translate(-0.5) rotate(-45)")}},bottom:{horizontal:function(n){n.style("text-anchor","middle").attr("dx","-0.5").attr("dy","0.71em").attr("transform",null)},vertical:function(n){n.style("text-anchor","end").attr("dx","-1em").attr("dy","-0.75em").attr("transform","rotate(-90)")},diagonal:function(n){n.style("text-anchor","end").attr("dx","-0.8em").attr("dy","0em").attr("transform","rotate(-45)")}}};function ti(){var n=t.dispatch("start","move","drag","end"),r=$t().prop("debug").prop("xScale").prop("yScale").prop("draggable").prop("cancelScrolling",et).cancelScrolling(!1).prop("fireOnPanOnly",et).fireOnPanOnly(!1).prop("padding",(function(n){var t={top:0,left:0,bottom:0,right:0};for(var r in n)t[r]=n[r];return t})).padding({}).render((function(){var r=t.select(this),i=r.props(),e=Xr(i.xScale).sort(t.ascending),u=Xr(i.yScale).sort(t.ascending);e[0]-=i.padding.left,e[1]+=i.padding.right,u[0]-=i.padding.top,u[1]+=i.padding.bottom;var o=r.selectAll("[data-sszvis-behavior-move]").data([0]),a=o.enter().append("rect").attr("data-sszvis-behavior-move","").attr("class","sszvis-interactive");o=o.merge(a),i.draggable&&o.classed("sszvis-interactive--draggable",!0),o.attr("x",e[0]).attr("y",u[0]).attr("width",e[1]-e[0]).attr("height",u[1]-u[0]).attr("fill","transparent").on("mouseover",(function(){n.apply("start",this,arguments)})).on("mousedown",(function(){var r=this,e=t.select(document),u=t.select(window),o=function(){var e=t.mouse(r),u=ri(i.xScale,e[0]),o=ri(i.yScale,e[1]);t.event.preventDefault(),n.apply("drag",this,[u,o])},a=function(){r.__dragging__=!1,u.on("mouseup.sszvis-behavior-move",null),u.on("mousemove.sszvis-behavior-move",null),e.on("mouseout.sszvis-behavior-move",null),n.apply("end",this,arguments)};u.on("mousemove.sszvis-behavior-move",o),u.on("mouseup.sszvis-behavior-move",a),e.on("mouseout.sszvis-behavior-move",(function(){var n=t.event.relatedTarget||t.event.toElement;n&&"HTML"!==n.nodeName||a()})),r.__dragging__=!0,o()})).on("mousemove",(function(){var r=t.mouse(this),e=ri(i.xScale,r[0]),u=ri(i.yScale,r[1]);this.__dragging__||n.apply("move",this,[e,u])})).on("mouseout",(function(){n.apply("end",this,[])})).on("touchstart",(function(){var r=Vn(t.touches(this)),e=ri(i.xScale,r[0]),u=ri(i.yScale,r[1]),o=i.cancelScrolling(e,u);if(o&&t.event.preventDefault(),!i.fireOnPanOnly()||o){n.apply("start",this,[e,u]),n.apply("drag",this,[e,u]),n.apply("move",this,[e,u]);t.select(this).on("touchmove",(function(){var r=Vn(t.touches(this)),e=ri(i.xScale,r[0]),u=ri(i.yScale,r[1]),o=i.cancelScrolling(e,u);o&&t.event.preventDefault(),!i.fireOnPanOnly()||o?(n.apply("drag",this,[e,u]),n.apply("move",this,[e,u])):n.apply("end",this,[])})).on("touchend",(function(){n.apply("end",this,[]),t.select(this).on("touchmove",null).on("touchend",null)}))}})),i.debug&&o.attr("fill","rgba(255,0,0,0.2)")}));return r.on=function(){var t=n.on.apply(n,arguments);return t===n?r:t},r}function ri(n,t){switch(n.invert?"Linear":n.paddingInner?"Band":"Point"){case"Linear":return n.invert(t);case"Band":return function(n,t){var r=n.step(),i=n.paddingOuter()*r,e=n.paddingInner()*r,u=n.bandwidth(),o=n.range(),a=n.domain();if(1===a.length)return o[0]<=t&&o[1]>=t?a[0]:null;for(var f=a.map((function(n,t){return 0===t?[o[0],o[0]+i+u+e/2]:t===a.length-1?[o[1]-(i+u+e/2),o[1]]:[o[0]+i+t*r-e/2,o[0]+i+(t+1)*r-e/2]})),s=0,c=f.length;s<c;s++)if(f[s][0]<t&&t<=f[s][1])return a[s];return null}(n,t);case"Point":return function(n,t){var r=n.step(),i=n.padding()*r,e=n.range(),u=n.domain();if(1===u.length)return e[0]<=t&&e[1]>=t?u[0]:null;for(var o=u.map((function(n,t){return 0===t?[e[0],e[0]+i+r/2]:t===u.length-1?[e[1]-(i+r/2),e[1]]:[e[0]+i+t*r-r/2,e[0]+i+t*r+r/2]})),a=0,f=o.length;a<f;a++)if(o[a][0]<t&&t<=o[a][1])return u[a];return null}(n,t);default:throw new Error("Unknown scale type, could not invert")}}var ii=function(n){return!$n(n)&&qn(n)?document.elementFromPoint(n.clientX,n.clientY):null},ei=function(n){if(!$n(n)){var r=t.select(n);if(!$n(r.attr("data-sszvis-behavior-pannable"))){var i=r.datum();if(qn(i))return i}}return null},ui=function(n){return ei(ii(n))};var oi=Math.pow(15,2);function ai(n,t){var r=n.clientX-t[0],i=n.clientY-t[1];return r*r+i*i<oi}var fi,si,ci=function(n){var r;return{width:(r=In(n)?t.select(n).node():Wn(n)?n.node():n)?r.getBoundingClientRect().width:void 0,screenWidth:window.innerWidth,screenHeight:window.innerHeight}},li=(fi=document.createElement("canvas").getContext("2d"),si={},function(n,t,r){var i=[n,t,r].join("-");return fi.font=n+"px "+t,si[i]||(si[i]=fi.measureText(r).width)}),hi=function(n){return li(10,"Arial, sans-serif",n)},vi=function(n){return li(12,"Arial, sans-serif",n)};function di(n,r){var i=null,e=null;0===arguments.length?i={}:1===arguments.length?Zn(n)?i=n:Wn(n)?(i={},e=n):(i={},e=t.select(n)):(i=n,e=Wn(r)?r:t.select(r));var u={top:bi(i.top,0),right:bi(i.right,1),bottom:bi(i.bottom,0),left:bi(i.left,1)},o=qn(e)?ci(e):{width:516},a=bi(i.width,o.width),f=Wr(o),s=bi(i.height,f+u.top+u.bottom);return{innerHeight:s-u.top-u.bottom,innerWidth:a-u.left-u.right,padding:u,height:s,width:a,screenWidth:o.screenWidth,screenHeight:o.screenHeight}}function bi(n,t){return void 0===n?t:n}function pi(n,t){for(var r in n)t(n[r],r)}function yi(){var n,t={},r=[],i=[];function e(t,u){if(u>=r.length)return n&&t.sort(n),t;var o=i[u],a=r[u++],f=function(n,t){for(var r,i,e={},u=0,o=n.length;u<o;++u)e[r=t(i=n[u])]?e[r].push(i):e[r]=[i];return e}(t,a.func);if("obj"===a.type){var s={};return pi(f,(function(n,t){s[t]=e(n,u)})),s}if("arr"===a.type){var c=[];return o?function(n,t){for(var r=0,i=n.length;r<i;++r)t(n[r],r)}(Object.keys(f).sort(o),(function(n){c.push(e(f[n],u))})):pi(f,(function(n){c.push(e(n,u))})),c}}return t.apply=function(n){return e(n,0)},t.objectBy=function(n){return r.push({type:"obj",func:n}),t},t.arrayBy=function(n,e){return r.push({type:"arr",func:n}),e&&(i[r.length-1]=e),t},t.sort=function(r){return n=r,t},t}var mi=t.easePolyOut,gi=function(){return t.transition().ease(mi).duration(300)},wi=function(){return t.transition().ease(mi).duration(500)};function Mi(n){return isNaN(n)?0:n}function ki(){return $t().prop("x",et).prop("y",et).prop("width",et).prop("height",et).prop("fill",et).prop("stroke",et).prop("centerTooltip").prop("tooltipAnchor").prop("transition").transition(!0).render((function(n){var r,i=t.select(this),e=i.props(),u=Gn(Mi,e.x),o=Gn(Mi,e.y),a=Gn(Mi,e.width),f=Gn(Mi,e.height),s=i.selectAll(".sszvis-bar").data(n);if(s.exit().remove(),s.enter().append("rect").classed("sszvis-bar",!0).attr("x",u).attr("y",o).attr("width",a).attr("height",f).merge(s).attr("fill",e.fill).attr("stroke",e.stroke),e.transition&&(s=s.transition(gi())),s.attr("x",u).attr("y",o).attr("width",a).attr("height",f),e.centerTooltip)r=function(n){return[u(n)+a(n)/2,o(n)+f(n)/2]};else if(e.tooltipAnchor){var c=e.tooltipAnchor.map(parseFloat);r=function(n){return[u(n)+c[0]*a(n),o(n)+c[1]*f(n)]}}else r=function(n){return[u(n)+a(n)/2,o(n)]};var l=ir().position(r);i.call(l)}))}function zi(){return $t().prop("barPosition").prop("barWidth").prop("mirror").mirror(!1).render((function(n){var r=t.select(this),i=r.props(),e=t.line().x(i.barWidth).y(i.barPosition),u=r.selectAll(".sszvis-pyramid__referenceline").data(n);u.exit().remove();var o=u.enter().append("path").attr("class","sszvis-pyramid__referenceline");(u=u.merge(o)).attr("transform",i.mirror?"scale(-1, 1)":"").transition(gi()).attr("d",e)}))}var _i=nt("stack"),xi=nt("0"),Ai=nt("1");function Ni(n){return function(r,i,e){return function(u){var o=yi().arrayBy(r).objectBy(i).apply(u),a=o.reduce((function(n,t){return rt(n.concat(Object.keys(t)))}),[]),f=t.stack().keys(a).value((function(n,t){return e(n[t][0])})).order(n)(o);return f.forEach((function(n){n.forEach((function(t){t.series=n.key,t.data=t.data[n.key][0],t.stack=r(t.data)}))})),f.keys=a,f.maxValue=t.max(f,(function(n){return t.max(n,(function(n){return n[1]}))})),f}}}var Si=Ni(t.stackOrderNone),Ei=Ni(t.stackOrderReverse);function Fi(n){return $t().prop("xScale",et).prop("width",et).prop("yScale",et).prop("height",et).prop("fill").prop("stroke").render((function(r){var i=t.select(this),e=i.props(),u=ki().x(n.x(e)).y(n.y(e)).width(n.width(e)).height(n.height(e)).fill(e.fill).stroke(e.stroke||"#FFFFFF"),o=i.selectAll(".sszvis-stack").data(r),a=o.enter().append("g").classed("sszvis-stack",!0);o.exit().remove(),(o=o.merge(a)).call(u)}))}var Oi={x:function(n){return Gn(n.xScale,xi)},y:function(n){return Gn(n.yScale,_i)},width:function(n){return function(t){return n.xScale(t[1])-n.xScale(t[0])}},height:function(n){return n.height}},Ci={x:function(n){return Gn(n.xScale,_i)},y:function(n){return Gn(n.yScale,Ai)},width:function(n){return n.width},height:function(n){return function(t){return n.yScale(t[0])-n.yScale(t[1])}}},Pi=nt("data"),Ri=nt("row");function Ti(){return $t().prop("stackElement").renderSelection((function(n){var r=n.datum(),i=n.props(),e=n.selectAll("[data-sszvis-stack]").data(r),u=e.enter().append("g").attr("data-sszvis-stack","");e.exit().remove(),(e=e.merge(u)).each((function(n){t.select(this).datum(n).call(i.stackElement)}))}))}function ji(){return $t().prop("barPosition").prop("barWidth").prop("mirror").mirror(!1).render((function(n){var r=t.select(this),i=r.props(),e=t.line().x(i.barWidth).y(i.barPosition),u=r.selectAll(".sszvis-path").data(n);u.exit().remove();var o=u.enter().append("path").attr("class","sszvis-path").attr("fill","none").attr("stroke","#aaa").attr("stroke-width",2).attr("stroke-dasharray","3 3");(u=u.merge(o)).attr("transform",i.mirror?"scale(-1, 1)":"").transition(gi()).attr("d",e)}))}var Di=2*Math.PI;function Li(n,t){return t.indexOf(n)>=0}function Bi(){return $t().prop("scale").prop("rowHeight").rowHeight(21).prop("columnWidth").columnWidth(200).prop("rows").rows(3).prop("columns").columns(3).prop("verticallyCentered").verticallyCentered(!1).prop("orientation").prop("reverse").reverse(!1).prop("rightAlign").rightAlign(!1).prop("horizontalFloat").horizontalFloat(!1).prop("floatPadding").floatPadding(20).prop("floatWidth").floatWidth(600).render((function(){var n,r,i=t.select(this),e=i.props(),u=e.scale.domain();e.reverse&&(u=u.slice().reverse()),"horizontal"===e.orientation?(r=Math.ceil(e.columns),n=Math.ceil(u.length/r)):"vertical"===e.orientation&&(n=Math.ceil(e.rows),r=Math.ceil(u.length/n));var o=i.selectAll(".sszvis-legend--entry").data(u),a=o.enter().append("g").classed("sszvis-legend--entry",!0);o.exit().remove();var f=o.merge(a).selectAll(".sszvis-legend__mark").data((function(n){return[n]})),s=f.enter().append("circle").classed("sszvis-legend__mark",!0);f.exit().remove(),f.merge(s).attr("cx",e.rightAlign?-6:6).attr("cy",nr(e.rowHeight/2)).attr("r",5).attr("fill",(function(n){return e.scale(n)})).attr("stroke",(function(n){return e.scale(n)})).attr("stroke-width",1);var c=o.merge(a).selectAll(".sszvis-legend__label").data((function(n){return[n]})),l=c.enter().append("text").classed("sszvis-legend__label",!0);c.exit().remove(),c.merge(l).text((function(n){return n})).attr("dy","0.35em").style("text-anchor",(function(){return e.rightAlign?"end":"start"})).attr("transform",(function(){return rr(e.rightAlign?-18:18,nr(e.rowHeight/2))}));var h="";if(e.verticallyCentered&&(h="translate(0,"+String(-u.length*e.rowHeight/2)+") "),e.horizontalFloat){var v=0,d=0;o.merge(a).attr("transform",(function(){var n=this.getBoundingClientRect().width;d+n>e.floatWidth&&(v+=e.rowHeight,d=0);var t=rr(d,v);return d+=n+e.floatPadding,h+t}))}else o.merge(a).attr("transform",(function(t,i){return"horizontal"===e.orientation?h+"translate("+i%r*e.columnWidth+","+Math.floor(i/r)*e.rowHeight+")":"vertical"===e.orientation?h+"translate("+Math.floor(i/n)*e.columnWidth+","+i%n*e.rowHeight+")":void 0}))}))}function Hi(n,r){var i=n.length,e=t.max(n,Ii),u=t.sum(n,Ii),o=i<=4?1:Wi(r,e,2),a=1===o&&u<=r;return{columns:o,rows:a?1:Math.ceil(i/o),columnWidth:1===o?null:e,legendWidth:o*e,horizontalFloat:a,orientation:a?null:"vertical"}}function Ii(n){return vi(n)+40}function Wi(n,t,r){return r<=1?1:t<=n/r?r:Wi(n,t,r-1)}var Ui=function(){var n=0;return function(){return++n}}();var Gi=ut((function(n,r,i){return t.geoMercator().fitSize([n,r],i)}),(function(n,t,r,i){return n+","+t+","+i})),qi=function(n,r,i,e){return t.geoPath().projection(Gi(n,r,i,e))},Yi="geoId",Xi=function(n,t,r){r||(r=Yi);var i=Array.isArray(n)?n.reduce((function(n,t){return n[t[r]]=t,n}),{}):{};return t.features.map((function(n){return{geoJson:n,datum:i[n.id]}}))},Vi=function(n){if(!n.properties.cachedCenter){var r=n.properties.center;n.properties.cachedCenter=r?r.split(",").map(parseFloat):t.geoCentroid(n)}return n.properties.cachedCenter},Ji=nt("datum");function $i(){return $t().prop("mergedData").prop("geoJson").prop("mapPath").prop("defined",et).defined(!0).prop("fill",et).fill((function(){return"black"})).prop("transitionColor").transitionColor(!0).render((function(){var n=t.select(this),r=n.props();function i(n){return r.defined(n.datum)?r.fill(n.datum):"url(#missing-pattern)"}ot(n,"pattern","missing-pattern").call(qt);var e=n.selectAll(".sszvis-map__area").data(r.mergedData),u=e.enter().append("path").classed("sszvis-map__area",!0).classed("sszvis-map__area--entering",!0).attr("data-event-target","").attr("fill",i);e.classed("sszvis-map__area--entering",!1),e.exit().remove(),e=e.merge(u),n.selectAll(".sszvis-map__area--undefined").attr("fill",i),e.classed("sszvis-map__area--undefined",(function(n){return!qn(n.datum)||!r.defined(n.datum)})).attr("d",(function(n){return r.mapPath(n.geoJson)})),r.transitionColor?e.transition().call(wi).attr("fill",i):e.attr("fill",i);var o=ir().position((function(n){return r.mapPath.projection()(Vi(n.geoJson))}));n.selectGroup("tooltipAnchors").datum(r.mergedData).call(o)}))}function Zi(){return $t().prop("keyName").keyName(Yi).prop("geoJson").prop("mapPath").prop("highlight").highlight([]).prop("highlightStroke",et).highlightStroke("white").prop("highlightStrokeWidth",et).highlightStrokeWidth(2).render((function(){var n=t.select(this),r=n.props(),i=n.selectAll(".sszvis-map__highlight");if(!r.highlight.length)return i.remove(),!0;var e=r.geoJson.features.reduce((function(n,t){return n[t.id]=t,n}),{}),u=r.highlight.reduce((function(n,t){return t&&n.push({geoJson:e[t[r.keyName]],datum:t}),n}),[]),o=(i=i.data(u)).enter().append("path").classed("sszvis-map__highlight",!0);i.exit().remove(),(i=i.merge(o)).attr("d",(function(n){return r.mapPath(n.geoJson)})).style("stroke",(function(n){return r.highlightStroke(n.datum)})).style("stroke-width",(function(n){return r.highlightStrokeWidth(n.datum)}))}))}function Qi(){return $t().prop("geoJson").prop("mapPath").prop("borderColor").borderColor("white").prop("strokeWidth").strokeWidth(1.25).render((function(){var n=t.select(this),r=n.props(),i=n.selectAll(".sszvis-map__border").data([r.geoJson]),e=i.enter().append("path").classed("sszvis-map__border",!0);i.exit().remove(),(i=i.merge(e)).attr("d",r.mapPath).style("stroke",r.borderColor).style("stroke-width",r.strokeWidth)}))}function Ki(){return $t().prop("mapPath").prop("lakeFeature").prop("lakeBounds").prop("lakePathColor").prop("fadeOut").fadeOut(!0).render((function(){var n=t.select(this),r=n.props();ot(n,"pattern","lake-pattern").call(Yt),r.fadeOut&&(ot(n,"linearGradient","lake-fade-gradient").call(Xt),ot(n,"mask","lake-fade-mask").call(Vt));var i=n.selectAll(".sszvis-map__lakezurich").data([r.lakeFeature]),e=i.enter().append("path").classed("sszvis-map__lakezurich",!0);i.exit().remove(),(i=i.merge(e)).attr("d",r.mapPath).attr("fill","url(#lake-pattern)"),r.fadeOut&&i.attr("mask","url(#lake-fade-mask)");var u=n.selectAll(".sszvis-map__lakepath").data([r.lakeBounds]),o=u.enter().append("path").classed("sszvis-map__lakepath",!0);u.exit().remove(),(u=u.merge(o)).attr("d",r.mapPath),r.lakePathColor&&u.style("stroke",r.lakePathColor)}))}var ne=t.timeFormatLocale(ur).parse,te=ne("%d.%m.%Y"),re=ne("%Y");function ie(n){return function(){var t,r=(t=[[]],{addLine:function(){t.push([])},addWord:function(n,r){Qn(t).push({text:et(r),style:n})},lines:function(){return t}});function i(t){return n(r,t)}return i.newline=function(){return r.addLine(),i},["bold","italic","plain"].forEach((function(n){i[n]=function(t){return r.addWord(n,t),i}})),i}}var ee,ue=ie((ee={plain:function(n){return n},italic:function(n){return"<em>"+n+"</em>"},bold:function(n){return"<strong>"+n+"</strong>"}},function(n,t){return n.lines().map((function(n){return n.map((function(n){return ee[n.style].call(null,n.text(t))})).join(" ")})).join("<br/>")})),oe=ie(function(){var n={plain:function(n){return"<tspan>"+n+"</tspan>"},italic:function(n){return'<tspan style="font-style:italic">'+n+"</tspan>"},bold:function(n){return'<tspan style="font-weight:bold">'+n+"</tspan>"}};return function(t,r){return t.lines().reduce((function(t,i,e){return t+'<tspan x="0" dy="'+(0===e?0:"1.2em")+'">'+i.map((function(t){return n[t.style].call(null,t.text(r))})).join(" ")+"</tspan>"}),"")}}());n.AGGLOMERATION_2012_KEY="zurichAgglomeration2012",n.DEFAULT_LEGEND_COLOR_ORDINAL_ROW_HEIGHT=21,n.DEFAULT_WIDTH=516,n.GEO_KEY_DEFAULT=Yi,n.RATIO=16/9,n.STADT_KREISE_KEY="zurichStadtKreise",n.STATISTISCHE_QUARTIERE_KEY="zurichStatistischeQuartiere",n.STATISTISCHE_ZONEN_KEY="zurichStatistischeZonen",n.SWITZERLAND_KEY="switzerland",n.WAHL_KREISE_KEY="zurichWahlKreise",n.annotationCircle=function(){return $t().prop("x",et).prop("y",et).prop("r",et).prop("dx",et).prop("dy",et).prop("caption",et).render((function(n){var r=t.select(this),i=r.props();ot(r,"pattern","data-area-pattern").call(Jt);var e=r.selectAll(".sszvis-dataareacircle").data(n),u=e.enter().append("circle").classed("sszvis-dataareacircle",!0);if((e=e.merge(u)).attr("cx",i.x).attr("cy",i.y).attr("r",i.r).attr("fill","url(#data-area-pattern)"),i.caption){var o=r.selectAll(".sszvis-dataareacircle__caption").data(n),a=o.enter().append("text").classed("sszvis-dataareacircle__caption",!0);(o=o.merge(a)).attr("x",i.x).attr("y",i.y).attr("dx",i.dx).attr("dy",i.dy).text(i.caption)}}))},n.annotationLine=function(){return $t().prop("x1").prop("x2").prop("y1").prop("y2").prop("xScale").prop("yScale").prop("dx",et).dx(0).prop("dy",et).dy(0).prop("caption",et).render((function(n){var r=t.select(this),i=r.props(),e=i.xScale(i.x1),u=i.yScale(i.y1),o=i.xScale(i.x2),a=i.yScale(i.y2),f=r.selectAll(".sszvis-referenceline").data(n);f.exit().remove();var s=f.enter().append("line").classed("sszvis-referenceline",!0);if((f=f.merge(s)).attr("x1",e).attr("y1",u).attr("x2",o).attr("y2",a),i.caption){var c=r.selectAll(".sszvis-referenceline__caption").data([0]);c.exit().remove();var l=c.enter().append("text").classed("sszvis-referenceline__caption",!0);(c=c.merge(l)).attr("transform",(function(){var n=180*Math.atan2(a-u,o-e)/Math.PI;return"translate("+(e+o)/2+","+(u+a)/2+") rotate("+n+")"})).attr("dx",i.dx).attr("dy",i.dy).text(i.caption)}}))},n.annotationRangeFlag=function(){return $t().prop("x",et).prop("y0",et).prop("y1",et).render((function(n){var r=t.select(this),i=r.props(),e=Gn(nr,i.x),u=Gn(nr,i.y0),o=Gn(nr,i.y1);r.selectAll(".sszvis-rangeFlag__mark.bottom").data(n).call(er("bottom",e,u)),r.selectAll(".sszvis-rangeFlag__mark.top").data(n).call(er("top",e,o));var a=ir().position((function(n){return[e(n),nr((i.y0(n)+i.y1(n))/2)]}));r.call(a)}))},n.annotationRangeRuler=function(){return $t().prop("x",et).prop("y0",et).prop("y1",et).prop("top").prop("bottom").prop("label").prop("removeStroke").label(et("")).prop("total").prop("flip",et).flip(!1).render((function(n){var r=t.select(this),i=r.props(),e=Gn(nr,i.x),u=Gn(nr,i.y0),o=Gn(nr,i.y1),a=r.selectAll(".sszvis-rangeRuler__rule").data([0]),f=a.enter().append("line").classed("sszvis-rangeRuler__rule",!0);a.exit().remove(),(a=a.merge(f)).attr("x1",e).attr("y1",i.top).attr("x2",e).attr("y2",i.bottom);var s=r.selectAll(".sszvis-rangeRuler--mark").data(n),c=s.enter().append("g").classed("sszvis-rangeRuler--mark",!0);s.exit().remove(),s=s.merge(c),c.append("circle").classed("sszvis-rangeRuler__p1",!0),c.append("circle").classed("sszvis-rangeRuler__p2",!0),c.append("text").classed("sszvis-rangeRuler__label",!0),s.selectAll(".sszvis-rangeRuler__p1").data((function(n){return[n]})).attr("cx",e).attr("cy",u).attr("r",1.5),s.selectAll(".sszvis-rangeRuler__p2").data((function(n){return[n]})).attr("cx",e).attr("cy",o).attr("r",1.5),s.selectAll(".sszvis-rangeRuler__label").data((function(n){return[n]})).attr("x",(function(n){var t=i.flip(n)?-10:10;return e(n)+t})).attr("y",(function(n){return nr((i.y0(n)+i.y1(n))/2)})).attr("dy","0.35em").style("text-anchor",(function(n){return i.flip(n)?"end":"start"})).text(Gn(lr,i.label)),i.removeStroke||s.attr("stroke","white").attr("stroke-width",.5).attr("stroke-opacity",.75);var l=r.selectAll(".sszvis-rangeRuler__total").data([Qn(n)]),h=l.enter().append("text").classed("sszvis-rangeRuler__total",!0);l.exit().remove(),(l=l.merge(h)).attr("x",(function(n){var t=i.flip(n)?-10:10;return e(n)+t})).attr("y",i.top-10).style("text-anchor",(function(n){return i.flip(n)?"end":"start"})).text("Total "+lr(i.total)),i.removeStroke||l.attr("stroke","white").attr("stroke-width",.5).attr("stroke-opacity",.75)}))},n.annotationRectangle=function(){return $t().prop("x",et).prop("y",et).prop("width",et).prop("height",et).prop("dx",et).prop("dy",et).prop("caption",et).render((function(n){var r=t.select(this),i=r.props();ot(r,"pattern","data-area-pattern").call(Jt);var e=r.selectAll(".sszvis-dataarearectangle").data(n),u=e.enter().append("rect").classed("sszvis-dataarearectangle",!0);if((e=e.merge(u)).attr("x",i.x).attr("y",i.y).attr("width",i.width).attr("height",i.height).attr("fill","url(#data-area-pattern)"),i.caption){var o=r.selectAll(".sszvis-dataarearectangle__caption").data(n),a=o.enter().append("text").classed("sszvis-dataarearectangle__caption",!0);(o=o.merge(a)).attr("x",(function(n,t){return i.x(n,t)+i.width(n,t)/2})).attr("y",(function(n,t){return i.y(n,t)+i.height(n,t)/2})).attr("dx",i.dx).attr("dy",i.dy).text(i.caption)}}))},n.annotationRuler=function(){return $t().prop("top").prop("bottom").prop("x",et).prop("y",et).prop("label").label(et("")).prop("color").prop("flip",et).flip(!1).prop("labelId",et).prop("reduceOverlap").reduceOverlap(!0).render((function(n){var r=t.select(this),i=r.props(),e=i.labelId||function(n){return i.x(n)+"_"+i.y(n)},u=r.selectAll(".sszvis-ruler__rule").data(n,e),o=u.enter().append("line").classed("sszvis-ruler__rule",!0);u.exit().remove(),(u=u.merge(o)).attr("x1",Gn(nr,i.x)).attr("y1",i.y).attr("x2",Gn(nr,i.x)).attr("y2",i.bottom);var a=r.selectAll(".sszvis-ruler__dot").data(n,e),f=a.enter().append("circle").classed("sszvis-ruler__dot",!0);a.exit().remove(),(a=a.merge(f)).attr("cx",Gn(nr,i.x)).attr("cy",Gn(nr,i.y)).attr("r",3.5).attr("fill",i.color);var s=r.selectAll(".sszvis-ruler__label-outline").data(n,e),c=s.enter().append("text").classed("sszvis-ruler__label-outline",!0);s.exit().remove(),s=s.merge(c);var l=r.selectAll(".sszvis-ruler__label").data(n,e),h=l.enter().append("text").classed("sszvis-ruler__label",!0);l.exit().remove(),l=l.merge(h);var v=Gn(nr,i.x),d=Gn(nr,i.y),b=r.selectAll(".sszvis-ruler__label, .sszvis-ruler__label-outline").attr("transform",(function(n){var t=v(n),r=d(n),e=i.flip(n)?-10:10,u=r<i.top+u?2*u:r>i.bottom-u?0:5;return rr(t+e,r+u)})).style("text-anchor",(function(n){return i.flip(n)?"end":"start"})).html(i.label);if(i.reduceOverlap){var p=10,y=[],m={};for(b.attr("y",""),l.each((function(n){var t=this.getBoundingClientRect(),r={top:t.top,bottom:t.bottom,dy:0};y.push(r),m[e(n)]=r})),y.sort((function(n,r){return t.ascending(n.top,r.top)}));p--;)y.forEach((function(n,t){y.slice(t+1).forEach((function(t){var r=n.bottom-t.top;if(r>=2){var i=r/2;n.bottom-=i,n.top-=i,n.dy-=i,t.bottom+=i,t.top+=i,t.dy+=i}}))}));b.attr("y",(function(n){return m[e(n)].dy}))}}))},n.app=function(n){var t,r,i=n.init,e=n.render,u=n.actions,o=void 0===u?{}:u,a=n.fallback;Mr(kr(i),'An "init" function returning a Promise must be provided.'),Mr(kr(e),'A "render" function must be provided.');var f=Object.keys(o).reduce((function(n,t){return n[t]=function(n){c(t,n)},n}),{});function s(n){t||(t=!0,requestAnimationFrame((function(){e(r,f),t=!1}))),kr(n)&&n(c)}function c(n,t){Mr(null!=o[n],'Action "'.concat(n,'" is not defined, add it to "actions".'));var i=nn(r),e=o[n](i,t);r=tn(i),s(e)}var l=nn({});i(l).then((function(n){r=tn(l),s(n),wr.on("resize",s)})).catch((function(n){Mr(!1,n),a&&yr(a.element,{src:a.src})}))},n.arity=Un,n.aspectRatio=Tr,n.aspectRatio12to5=Lr,n.aspectRatio16to10=Dr,n.aspectRatio4to3=jr,n.aspectRatioAuto=Wr,n.aspectRatioPortrait=Hr,n.aspectRatioSquare=Br,n.axisX=Zr,n.axisY=Qr,n.bar=ki,n.bounds=di,n.breakpointCreateSpec=Nr,n.breakpointDefaultSpec=Er,n.breakpointFind=zr,n.breakpointFindByName=_r,n.breakpointLap=Or,n.breakpointMatch=Ar,n.breakpointPalm=Fr,n.breakpointTest=xr,n.buttonGroup=function(){return $t().prop("values").prop("current").prop("width").width(300).prop("change").change(Hn).render((function(){var n=t.select(this),r=n.props(),i=r.width/r.values.length,e=n.selectAll(".sszvis-control-optionSelectable").data(["sszvis-control-buttonGroup"],(function(n){return n})),u=e.enter().append("div").classed("sszvis-control-optionSelectable",!0).classed("sszvis-control-buttonGroup",!0);e.exit().remove(),(e=e.merge(u)).style("width",r.width+"px");var o=e.selectAll(".sszvis-control-buttonGroup__item").data(r.values),a=o.enter().append("div").classed("sszvis-control-buttonGroup__item",!0);o.exit().remove(),(o=o.merge(a)).style("width",i+"px").classed("selected",(function(n){return n===r.current})).text((function(n){return n})).on("click",r.change)}))},n.cascade=yi,n.choropleth=function(){var n=t.dispatch("over","out","click"),r=$i(),i=Qi(),e=Ki(),u=Zi(),o=$t().prop("width").prop("height").prop("keyName").keyName(Yi).prop("withLake").withLake(!0).prop("anchoredShape").prop("features").prop("borders").prop("lakeFeatures").prop("lakeBorders").prop("lakeFadeOut").lakeFadeOut(!1).delegate("defined",r).delegate("fill",r).delegate("transitionColor",r).delegate("borderColor",i).delegate("strokeWidth",i).delegate("highlight",u).delegate("highlightStroke",u).delegate("highlightStrokeWidth",u).delegate("lakePathColor",e).render((function(o){var a=t.select(this),f=a.props(),s=qi(f.width,f.height,f.features,"zurichStadtfeatures"),c=Xi(o,f.features,f.keyName);r.geoJson(f.features).mergedData(c).mapPath(s),i.geoJson(f.borders).mapPath(s),e.lakeFeature(f.lakeFeatures).lakeBounds(f.lakeBorders).mapPath(s).fadeOut(f.lakeFadeOut),u.geoJson(f.features).keyName(f.keyName).mapPath(s),a.call(r).call(i),f.withLake&&a.call(e),a.call(u),f.anchoredShape&&(f.anchoredShape.mergedData(c).mapPath(s),a.call(f.anchoredShape)),a.selectAll("[data-event-target]").on("mouseover",(function(t){n.call("over",this,t.datum)})).on("mouseout",(function(t){n.call("out",this,t.datum)})).on("click",(function(t){n.call("click",this,t.datum)}))}));return o.on=function(){var t=n.on.apply(n,arguments);return t===n?o:t},o},n.colorLegendDimensions=Hi,n.colorLegendLayout=function(n,r){var i=n.legendLabels,e=n.axisLabels,u=void 0===e?[]:e,o=n.slant,a=void 0===o?"horizontal":o,f=Hi(i,ci(r).width),s=i.length>6?wt().domain(i):Mt().domain(i),c=Bi().scale(s).horizontalFloat(f.horizontalFloat).rows(f.rows).columnWidth(f.columnWidth).orientation(f.orientation),l=function(n,r){switch(n){case"vertical":return 40+t.max(r,hi);case"diagonal":return 40+Math.sqrt(2*Math.pow(t.max(r,hi)/2,2));default:return 60}}(a,u),h=21*f.rows;return{axisLabelPadding:l,legendPadding:h,bottomPadding:l+h,legendWidth:f.legendWidth,legend:c,scale:s}},n.compose=Gn,n.contains=function(n,t){return n.indexOf(t)>=0},n.createHtmlLayer=function(n,r,i){r||(r=di()),i||(i={});var e="data-sszvis-html-"+(i.key||"default"),u=Wn(n)?n:t.select(n);u.classed("sszvis-outer-container",!0);var o=u.selectAll("[data-sszvis-html-layer]["+e+"]").data([0]),a=o.enter().append("div").classed("sszvis-html-layer",!0).attr("data-sszvis-html-layer","").attr(e,"");return(o=o.merge(a)).style("position","absolute").style("left",r.padding.left+"px").style("top",r.padding.top+"px"),o},n.createSvgLayer=function(n,r,i){r||(r=di()),i||(i={});var e="data-sszvis-svg-"+(i.key||"default"),u=i.title||"",o=i.description||"",a=(Wn(n)?n:t.select(n)).selectAll("svg["+e+"]").data([0]),f=a.enter().append("svg");f.classed("sszvis-svg-layer",!0).attr(e,"").attr("role","img").attr("aria-label",u+" – "+o),f.append("title").text(u),f.append("desc").text(o).classed("sszvis-svg-layer",!0).attr(e,"").attr("role","img"),a.merge(f).attr("height",r.height).attr("width",r.width);var s=a.merge(f).selectAll("[data-sszvis-svg-layer]").data((function(){return[0]})),c=s.enter().append("g").attr("data-sszvis-svg-layer","");return s.merge(c).attr("transform","translate("+r.padding.left+","+r.padding.top+")"),s.merge(c)},n.dataAreaPattern=Jt,n.defaultTransition=gi,n.defined=qn,n.derivedSet=function(n,t){t||(t=Hn);for(var r,i,e=[],u=[],o=0,a=n.length;o<a;++o)i=t(r=n[o],o,n),e.indexOf(i)<0&&(e.push(i),u.push(r));return u},n.dimensionsHeatTable=function(n,t,r,i,e){e||(e={}),e.top||(e.top=0),e.right||(e.right=0),e.bottom||(e.bottom=0),e.left||(e.left=0);var u=n-e.left-e.right,o=Math.min((u-t*(r-1))/r,30),a=o+t,f=r*a-t;return{side:o,paddedSide:a,padRatio:1-o/a,width:f,height:i*a-t,centeredOffset:Math.max((u-f)/2,0)}},n.dimensionsHorizontalBarChart=function(n){var t=24,r=t*n+20*(n-1);return{barHeight:t,padHeight:20,padRatio:.4545454545454546,outerRatio:0,axisOffset:-22,barGroupHeight:r,totalHeight:r+0}},n.dimensionsVerticalBarChart=function(n,t){var r=1-.7,i=t-1,e=n*r/(r*i+.7*t),u=(n-e*i)/t;u>48&&(e=(n-(u=48)*t)/i),e<2&&(e=2),e>100&&(e=100);var o=u*t+e*i;return{barWidth:u,padWidth:e,padRatio:1-u/(u+e),outerRatio:(n-o)/2/(u+e),barGroupWidth:o,totalWidth:n}},n.dot=function(){return $t().prop("x",et).prop("y",et).prop("radius").prop("stroke").prop("fill").prop("transition").transition(!0).render((function(n){var r=t.select(this),i=r.props(),e=r.selectAll(".sszvis-circle").data(n);e.exit().remove(),e.enter().append("circle").classed("sszvis-circle",!0).attr("cx",i.x).attr("cy",i.y).attr("r",i.radius).merge(e).attr("stroke",i.stroke).attr("fill",i.fill),i.transition&&(e=e.transition(gi())),e.attr("cx",i.x).attr("cy",i.y).attr("r",i.radius);var u=ir().position((function(n){return[i.x(n),i.y(n)]}));r.call(u)}))},n.ensureDefsElement=ot,n.every=function(n,t){for(var r=0;r<t.length;r++)if(!n(t[r]))return!1;return!0},n.fallbackCanvasUnsupported=function(){return!document.createElement("canvas").getContext},n.fallbackRender=yr,n.fallbackUnsupported=function(){return!(document.createElementNS&&document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect)},n.fastTransition=function(){return t.transition().ease(mi).duration(50)},n.filledArray=Yn,n.find=Xn,n.first=Vn,n.firstTouch=Jn,n.fitTooltip=function(n,t){var r=Math.min(1*t.innerWidth/4,100),i=Math.max(3*t.innerWidth/4,t.innerWidth-100);return function(t){var e=t.x;return e>i?"right":e<r?"left":n}},n.flatten=function(n){return Array.prototype.concat.apply([],n)},n.foldPattern=function(n,t){var r=t[n];if("function"==typeof r)return r();throw new Error("[foldPattern] No definition provided for key: "+n)},n.formatAge=function(n){return String(Math.round(n))},n.formatAxisTimeFormat=fr,n.formatFractionPercent=function(n){return lr(100*n)+" %"},n.formatMonth=sr,n.formatNone=function(){return""},n.formatNumber=lr,n.formatPercent=function(n){return lr(n)+" %"},n.formatPreciseNumber=function n(t,r){return arguments.length>1?n(t)(r):function(n){var r=Math.abs(n);return r>=100&&r<1e4?ar("."+t+"f")(n):ar(",."+t+"f")(n)}},n.formatText=hr,n.formatYear=cr,n.functor=et,n.getGeoJsonCenter=Vi,n.groupedBars=function(){return $t().prop("groupScale").prop("groupSize").prop("groupWidth").prop("groupSpace").groupSpace(.05).prop("y",et).prop("height").prop("fill").prop("stroke").prop("defined",et).defined(!0).render((function(n){var r=t.select(this),i=r.props(),e=t.scaleBand().domain(t.range(i.groupSize)).padding(i.groupSpace).paddingOuter(0).rangeRound([0,i.groupWidth]),u=r.selectAll("g.sszvis-bargroup").data(n),o=u.enter().append("g").classed("sszvis-bargroup",!0);u.exit().remove();var a=(u=u.merge(o)).selectAll("g.sszvis-barunit").data((function(n){return n})),f=a.enter().append("g").classed("sszvis-barunit",!0);a.exit().remove(),(a=a.merge(f)).each((function(n,t){n.__sszvisGroupedBarIndex__=t}));var s=a.filter(i.defined);s.selectAll("*").remove(),s.attr("transform",(function(){return rr(0,0)})),s.append("rect").classed("sszvis-bar",!0).attr("fill",i.fill).attr("x",(function(n){return i.groupScale(n)+e(n.__sszvisGroupedBarIndex__)})).attr("y",i.y).attr("width",e.bandwidth()).attr("height",i.height);var c=a.filter(Kn(i.defined));c.selectAll("*").remove(),c.attr("transform",(function(n,t){return rr(i.groupScale(n)+e(n.__sszvisGroupedBarIndex__)+e.bandwidth()/2,i.y(n,t))})),c.append("line").classed("sszvis-bar--missing line1",!0).attr("x1",-4).attr("y1",-4).attr("x2",4).attr("y2",4),c.append("line").classed("sszvis-bar--missing line2",!0).attr("x1",4).attr("y1",-4).attr("x2",-4).attr("y2",4);var l=ir().position((function(n){var t=0,r=1/0;return n.forEach((function(n,u){t+=i.groupScale(n)+e(n.__sszvisGroupedBarIndex__)+e.bandwidth()/2,r=Math.min(r,i.y(n,u))})),[t/n.length,r]}));r.call(l)}))},n.halfPixel=nr,n.handleRuler=function(){return $t().prop("x",et).prop("y",et).prop("top").prop("bottom").prop("label").label(et("")).prop("color").prop("flip",et).flip(!1).render((function(n){var r=t.select(this),i=r.props(),e=Gn(nr,i.x),u=Gn(nr,i.y),o=i.bottom-4,a=i.top-24,f=r.selectAll(".sszvis-handleRuler__group").data([0]),s=f.enter().append("g").classed("sszvis-handleRuler__group",!0);f.exit().remove(),f=f.merge(s),s.append("line").classed("sszvis-ruler__rule",!0),s.append("rect").classed("sszvis-handleRuler__handle",!0),s.append("line").classed("sszvis-handleRuler__handle-mark",!0),f.selectAll(".sszvis-ruler__rule").attr("x1",e).attr("y1",nr(i.top)).attr("x2",e).attr("y2",nr(o)),f.selectAll(".sszvis-handleRuler__handle").attr("x",(function(n){return e(n)-5})).attr("y",nr(a)).attr("width",10).attr("height",24).attr("rx",2).attr("ry",2),f.selectAll(".sszvis-handleRuler__handle-mark").attr("x1",e).attr("y1",nr(a+.15*24)).attr("x2",e).attr("y2",nr(a+20.4));var c=f.selectAll(".sszvis-ruler__dot").data(n),l=c.enter().append("circle").classed("sszvis-ruler__dot",!0);c.exit().remove(),(c=c.merge(l)).attr("cx",e).attr("cy",u).attr("r",3.5).attr("fill",i.color);var h=r.selectAll(".sszvis-ruler__label-outline").data(n),v=h.enter().append("text").classed("sszvis-ruler__label-outline",!0);h.exit().remove(),h=h.merge(v);var d=r.selectAll(".sszvis-ruler__label").data(n),b=d.enter().append("text").classed("sszvis-ruler__label",!0);d.exit().remove(),d=d.merge(b),r.selectAll(".sszvis-ruler__label, .sszvis-ruler__label-outline").attr("transform",(function(n){var t=Gn(nr,i.x)(n),r=Gn(nr,i.y)(n),e=i.flip(n)?-10:10,u=r<i.top+u?2*u:r>i.bottom-u?0:5;return rr(t+e,r+u)})).style("text-anchor",(function(n){return i.flip(n)?"end":"start"})).html(i.label)}))},n.hashableSet=function(n,t){t||(t=Hn);for(var r,i={},e=[],u=0,o=n.length;u<o;++u)i[r=t(n[u],u,n)]||(i[r]=!0,e.push(r));return e},n.heatTableMissingValuePattern=function(n){var t=Tt(),r="#A4A4A4",i=.35,e=.65;n.attr("patternUnits","objectBoundingBox").attr("patternContentUnits","objectBoundingBox").attr("x",0).attr("y",0).attr("width",1).attr("height",1),n.append("rect").attr("x",0).attr("y",0).attr("width",1).attr("height",1).attr("fill",t),n.append("line").attr("x1",i).attr("y1",i).attr("x2",e).attr("y2",e).attr("stroke-width",.035).attr("stroke",r),n.append("line").attr("x1",e).attr("y1",i).attr("x2",i).attr("y2",e).attr("stroke-width",.035).attr("stroke",r)},n.identity=Hn,n.isFunction=function(n){return"function"==typeof n},n.isNull=$n,n.isNumber=function(n){return"[object Number]"===Object.prototype.toString.call(n)&&!Number.isNaN(n)},n.isObject=Zn,n.isSelection=Wn,n.isString=In,n.last=Qn,n.layoutPopulationPyramid=function(n,t){for(var r=Math.min(Hr(n),480),i=1*(t-1),e=Math.round((r-i)/t),u=t*(e=Math.max(e,2))+i,o=u-e,a=e+1,f=[];o>=0;)f.push(o),o-=a;var s=Math.min(n/2,.8*Hr.MAX_HEIGHT/2);return{barHeight:e,padding:1,totalHeight:u,positions:f,maxBarLength:s,chartPadding:Math.max((n-2*s)/2,1)}},n.layoutSmallMultiples=function(){return $t().prop("width").prop("height").prop("paddingX").prop("paddingY").prop("rows").prop("cols").render((function(n){var r=t.select(this),i=r.props(),e=(i.width-i.paddingX*(i.cols-1))/i.cols,u=(i.height-i.paddingY*(i.rows-1))/i.rows,o=e/2,a=u/2,f=r.selectAll("g.sszvis-multiple").data(n),s=f.enter().append("g").classed("sszvis-g sszvis-multiple",!0);f.exit().remove();var c=(f=f.merge(s)).selectAll("g.sszvis-multiple-chart").data((function(n){return[n.values]})),l=c.enter().append("g").classed("sszvis-multiple-chart",!0);c.exit().remove(),c=c.merge(l),f.datum((function(n,t){return n.gx=t%i.cols*(e+i.paddingX),n.gw=e,n.cx=o,n.gy=Math.floor(t/i.cols)*(u+i.paddingY),n.gh=u,n.cy=a,n})).attr("transform",(function(n){return"translate("+n.gx+","+n.gy+")"}))}))},n.layoutStackedAreaMultiples=function(n,t,r){r||(r=.1);for(var i=n/(t-r),e=i*(1-r),u=e,o=[];u-n<1;)o.push(u),u+=i;return{range:o,bandHeight:e,padHeight:i*r}},n.legendColorBinned=function(){return $t().prop("scale").prop("displayValues").prop("endpoints").prop("width").width(200).prop("labelFormat").labelFormat(Hn).render((function(){var n=t.select(this),r=n.props();if(!r.scale)return Gr("legend.binnedColorScale - a scale must be specified.");if(!r.displayValues)return Gr("legend.binnedColorScale - display values must be specified.");if(!r.endpoints)return Gr("legend.binnedColorScale - endpoints must be specified");var i=[0,r.width-10],e=t.scaleLinear().domain(r.endpoints).range(i),u=0,o=[],a=r.endpoints[0];r.displayValues.forEach((function(n){var t=e(n)-u,i=u%1;o.push({x:Math.floor(5+u),w:t+i,c:r.scale(a),p:n}),u+=t,a=n})),o.push({x:Math.floor(5+u),w:i[1]-u,c:r.scale(a)});var f=n.selectAll("circle.sszvis-legend__circle").data(r.endpoints),s=f.enter().append("circle").classed("sszvis-legend__circle",!0);(f=f.merge(s)).exit().remove(),f.attr("r",5).attr("cy",5).attr("cx",(function(n,t){return 0===t?5:r.width-5})).attr("fill",r.scale);var c=n.selectAll("rect.sszvis-legend__crispmark").data(o),l=c.enter().append("rect").classed("sszvis-legend__crispmark",!0);(c=c.merge(l)).exit().remove(),c.attr("x",(function(n){return n.x})).attr("y",0).attr("width",(function(n){return n.w})).attr("height",10).attr("fill",(function(n){return n.c}));var h=o.slice(0,-1),v=n.selectAll("line.sszvis-legend__crispmark").data(h),d=v.enter().append("line").classed("sszvis-legend__crispmark",!0);v.merge(d),v.exit().remove(),v.attr("x1",(function(n){return nr(n.x+n.w)})).attr("x2",(function(n){return nr(n.x+n.w)})).attr("y1",11).attr("y2",16).attr("stroke","#B8B8B8");var b=n.selectAll(".sszvis-legend__axislabel").data(h),p=b.enter().append("text").classed("sszvis-legend__axislabel",!0);(b=b.merge(p)).exit().remove(),b.style("text-anchor","middle").attr("transform",(function(n){return"translate("+(n.x+n.w)+",30)"})).text((function(n){return r.labelFormat(n.p)}))}))},n.legendColorLinear=function(){return $t().prop("scale").prop("displayValues").displayValues([]).prop("width").width(200).prop("segments").segments(8).prop("labelText").prop("labelFormat").labelFormat(Hn).render((function(){var n=t.select(this),r=n.props();if(!r.scale)return Gr("legend.linearColorScale - a scale must be specified."),!1;var i=r.scale.domain(),e=r.displayValues;!e.length&&r.scale.ticks&&(e=r.scale.ticks(r.segments-1)),e.push(Qn(i));var u=e.length>0?r.width/e.length:0,o=n.selectAll("rect.sszvis-legend__mark").data(e),a=o.enter().append("rect").classed("sszvis-legend__mark",!0);o.exit().remove(),(o=o.merge(a)).attr("x",(function(n,t){return t*u-1})).attr("y",0).attr("width",u+1).attr("height",10).attr("fill",(function(n){return r.scale(n)}));var f=[Vn(i),Qn(i)],s=r.labelText||f,c=n.selectAll("circle.ssvis-legend--mark").data(f),l=c.enter().append("circle").attr("class","ssvis-legend--mark");c.exit().remove(),(c=c.merge(l)).attr("cx",(function(n,t){return t*r.width})).attr("cy",5).attr("r",5).attr("fill",(function(n){return r.scale(n)}));var h=n.selectAll(".sszvis-legend__label").data(s),v=h.enter().append("text").classed("sszvis-legend__label",!0);h.exit().remove(),h=h.merge(v);h.style("text-anchor",(function(n,t){return 0===t?"end":"start"})).attr("dy","0.35em").attr("transform",(function(n,t){return"translate("+(t*r.width+16*(0===t?-1:1))+", 5)"})).text((function(n,t){return r.labelFormat(n,t)}))}))},n.legendColorOrdinal=Bi,n.legendRadius=function(){return $t().prop("scale").prop("tickFormat").tickFormat(Hn).prop("tickValues").render((function(){var n=t.select(this),r=n.props(),i=r.scale.domain(),e=r.tickValues||[i[1],r.scale.invert(t.mean(r.scale.range())),i[0]],u=Xr(r.scale)[1],o=n.selectAll("g.sszvis-legend__elementgroup").data([0]),a=o.enter().append("g").attr("class","sszvis-legend__elementgroup");(o=o.merge(a)).attr("transform",rr(nr(u),nr(u)));var f=o.selectAll("circle.sszvis-legend__greyline").data(e),s=f.enter().append("circle").classed("sszvis-legend__greyline",!0);function c(n){return u-2*r.scale(n)}f.exit().remove(),(f=f.merge(s)).attr("r",r.scale).attr("stroke-width",1).attr("cy",(function(n){return u-r.scale(n)}));var l=o.selectAll("line.sszvis-legend__dashedline").data(e),h=l.enter().append("line").classed("sszvis-legend__dashedline",!0);l.exit().remove(),(l=l.merge(h)).attr("x1",0).attr("y1",c).attr("x2",u+15).attr("y2",c);var v=o.selectAll(".sszvis-legend__label").data(e),d=v.enter().append("text").attr("class","sszvis-legend__label sszvis-legend__label--small");v.exit().remove(),(v=v.merge(d)).attr("dx",u+18).attr("y",c).attr("dy","0.35em").text(r.tickFormat)}))},n.line=function(){return $t().prop("x").prop("y").prop("stroke").prop("strokeWidth").prop("defined").prop("key").key((function(n,t){return t})).prop("valuesAccessor").valuesAccessor(Hn).prop("transition").transition(!0).render((function(n){var r=t.select(this),i=r.props(),e=t.line().defined(void 0!==i.defined?i.defined:Gn(Kn(isNaN),i.y)).x(i.x).y(i.y),u=r.selectAll(".sszvis-line").data(n,i.key),o=u.enter().append("path").classed("sszvis-line",!0).style("stroke",i.stroke);(u=u.merge(o)).exit().remove(),u.order(),i.transition&&(u=u.transition(gi())),u.attr("d",Gn(e,i.valuesAccessor)).style("stroke",i.stroke).style("stroke-width",i.strokeWidth)}))},n.loadError=function(n){Gr(n)},n.locale=ur,n.mapLakeFadeGradient=Xt,n.mapLakeGradientMask=Vt,n.mapLakePattern=Yt,n.mapMissingValuePattern=qt,n.mapRendererBase=$i,n.mapRendererBubble=function(){var n=t.dispatch("over","out","click"),r=$t().prop("mergedData").prop("mapPath").prop("radius",et).prop("fill",et).prop("strokeColor",et).strokeColor("#ffffff").prop("strokeWidth",et).strokeWidth(1).prop("transition").transition(!0).render((function(){var r=t.select(this),i=r.props(),e=Gn(i.radius,Ji),u=r.selectGroup("anchoredCircles").selectAll(".sszvis-anchored-circle").data(i.mergedData,(function(n){return n.geoJson.id}));if(u.enter().append("circle").attr("class","sszvis-anchored-circle sszvis-anchored-circle--entering").attr("r",e).on("mouseover",(function(t){n.call("over",this,t.datum)})).on("mouseout",(function(t){n.call("out",this,t.datum)})).on("click",(function(t){n.call("click",this,t.datum)})).merge(u).attr("transform",(function(n){var t=i.mapPath.projection()(Vi(n.geoJson));return rr(t[0],t[1])})).style("fill",(function(n){return i.fill(n.datum)})).style("stroke",(function(n){return i.strokeColor(n.datum)})).style("stroke-width",(function(n){return i.strokeWidth(n.datum)})).sort((function(n,t){return i.radius(t.datum)-i.radius(n.datum)})),u.classed("sszvis-anchored-circle--entering",!1),i.transition){var o=gi();u.exit().transition(o).attr("r",0).remove(),u.transition(o).attr("r",e)}else u.exit().remove(),u.attr("r",e)}));return r.on=function(){var t=n.on.apply(n,arguments);return t===n?r:t},r},n.mapRendererGeoJson=function(){var n=t.dispatch("over","out","click"),r=$t().prop("dataKeyName").dataKeyName(Yi).prop("geoJsonKeyName").geoJsonKeyName("id").prop("geoJson").prop("mapPath").prop("defined",et).defined(!0).prop("fill",et).fill("black").prop("stroke",et).stroke("black").prop("strokeWidth",et).strokeWidth(1.25).prop("transitionColor").transitionColor(!0).render((function(r){var i=t.select(this),e=i.props();ot(i,"pattern","missing-pattern").call(qt);var u=nt(e.dataKeyName),o=nt(e.geoJsonKeyName),a=r.reduce((function(n,t){return n[u(t)]=t,n})),f=e.geoJson.features.map((function(n){return{geoJson:n,datum:a[o(n.properties)]}}));function s(n){return qn(n.datum)&&e.defined(n.datum)?e.fill(n.datum):"url(#missing-pattern)"}var c=i.selectAll(".sszvis-map__geojsonelement").data(f),l=c.enter().append("path").classed("sszvis-map__geojsonelement",!0).attr("data-event-target","").attr("fill",s);c.exit().remove(),c=c.merge(l),i.selectAll(".sszvis-map__geojsonelement--undefined").attr("fill",s),c.classed("sszvis-map__geojsonelement--undefined",(function(n){return!qn(n.datum)||!e.defined(n.datum)})).attr("d",(function(n){return e.mapPath(n.geoJson)})),e.transitionColor?c.transition().call(wi).attr("fill",s):c.attr("fill",s),c.attr("stroke",(function(n){return qn(n.datum)&&e.defined(n.datum)?e.stroke(n.datum):""})).attr("stroke-width",e.strokeWidth),i.selectAll("[data-event-target]").on("mouseover",(function(t){n.over(t.datum)})).on("mouseout",(function(t){n.out(t.datum)})).on("click",(function(t){n.click(t.datum)}));var h=ir().position((function(n){n.geoJson.properties||(n.geoJson.properties={});var r=n.geoJson.properties.sphericalCentroid;return r||(n.geoJson.properties.sphericalCentroid=r=t.geoCentroid(n.geoJson)),e.mapPath.projection()(r)}));i.selectGroup("tooltipAnchors").datum(f).call(h)}));return r.on=function(){var t=n.on.apply(n,arguments);return t===n?r:t},r},n.mapRendererHighlight=Zi,n.mapRendererImage=function(){return $t().prop("projection").prop("src").prop("geoBounds").prop("opacity").opacity(1).render((function(){var n=t.select(this),r=n.props(),i=n.selectAll(".sszvis-map__image").data([0]),e=i.enter().append("img").classed("sszvis-map__image",!0);i.exit().remove(),i=i.merge(e);var u=r.projection(r.geoBounds[0]),o=r.projection(r.geoBounds[1]);i.attr("src",r.src).style("left",Math.round(u[0])+"px").style("top",Math.round(u[1])+"px").style("width",Math.round(o[0]-u[0])+"px").style("height",Math.round(o[1]-u[1])+"px").style("opacity",r.opacity)}))},n.mapRendererMesh=Qi,n.mapRendererPatternedLakeOverlay=Ki,n.mapRendererRaster=function(){return $t().prop("debug").debug(!1).prop("width").prop("height").prop("position").prop("cellSide").cellSide(2).prop("fill",et).prop("opacity").opacity(1).render((function(n){var r=t.select(this),i=r.props(),e=r.selectAll(".sszvis-map__rasterimage").data([0]),u=e.enter().append("canvas").classed("sszvis-map__rasterimage",!0);e.exit().remove(),(e=e.merge(u)).attr("width",i.width).attr("height",i.height).style("opacity",i.opacity);var o=e.node().getContext("2d");o.clearRect(0,0,i.width,i.height),i.debug&&(o.fillStyle="rgba(255, 0, 0, 0.2)",o.fillRect(0,0,i.width,i.height));var a=i.cellSide/2;n.forEach((function(n){var t=i.position(n);o.fillStyle=i.fill(n),o.fillRect(t[0]-a,t[1]-a,i.cellSide,i.cellSide)}))}))},n.measureAxisLabel=hi,n.measureDimensions=ci,n.measureLegendLabel=vi,n.measureText=li,n.memoize=ut,n.modularTextHTML=ue,n.modularTextSVG=oe,n.move=ti,n.muchDarker=function(n){return t.hsl(n).darker(.7)},n.not=Kn,n.panning=function(){var n=t.dispatch("start","pan","end"),r=$t().prop("elementSelector").render((function(){var r=t.select(this),i=r.props();r.selectAll(i.elementSelector).attr("data-sszvis-behavior-pannable","").classed("sszvis-interactive",!0).on("mouseenter",(function(){n.apply("start",this,arguments)})).on("mousemove",(function(){n.apply("pan",this,arguments)})).on("mouseleave",(function(){n.apply("end",this,arguments)})).on("touchstart",(function(){t.event.preventDefault(),n.apply("start",this,arguments)})).on("touchmove",(function(){t.event.preventDefault();var r=ui(Jn(t.event));n.apply(null!==r?"pan":"end",this,arguments)})).on("touchend",(function(){n.apply("end",this,arguments)}))}));return r.on=function(){var t=n.on.apply(n,arguments);return t===n?r:t},r},n.parseDate=function(n){return te(n)},n.parseNumber=function(n){return""===n.trim()?NaN:+n},n.parseYear=function(n){return re(n)},n.pie=function(){return $t().prop("radius").prop("fill").prop("stroke").prop("angle",et).render((function(n){var r=t.select(this),i=r.props(),e=i.stroke||"#FFFFFF",u=0;n.forEach((function(n){n._a0=u,isNaN(n.a0)&&(n.a0=u),u+=i.angle(n),n._a1=u,isNaN(n.a1)&&(n.a1=u)}));var o=t.arc().innerRadius(4).outerRadius(i.radius).startAngle((function(n){return n.a0})).endAngle((function(n){return n.a1})),a=r.selectAll(".sszvis-path").each((function(t,r){n[r]&&(n[r].a0=t.a0,n[r].a1=t.a1)})).data(n),f=a.enter().append("path").classed("sszvis-path",!0).attr("transform","translate("+i.radius+","+i.radius+")").attr("fill",i.fill).attr("stroke",e);a.exit().remove(),(a=a.merge(f)).transition(gi()).attr("transform","translate("+i.radius+","+i.radius+")").attrTween("d",(function(n){var r=t.interpolate(n.a0,n._a0),i=t.interpolate(n.a1,n._a1);return function(t){return n.a0=r(t),n.a1=i(t),o(n)}})).attr("fill",i.fill).attr("stroke",e);var s=ir().position((function(n){var t=n.a0+Math.abs(n.a1-n.a0)/2-Math.PI/2,r=2*i.radius/3;return[i.radius+Math.cos(t)*r,i.radius+Math.sin(t)*r]}));r.datum(n).call(s)}))},n.pixelsFromGeoDistance=function(n,t,r){var i=r/(2*Math.PI*6367475)*360/2,e=[[t[0]-i,t[1]-i],[t[0]+i,t[1]+i]].map(n);return(Math.abs(e[1][0]-e[0][0])+Math.abs(e[1][1]-e[0][1]))/2},n.prepareMergedGeoData=Xi,n.prop=nt,n.propOr=tt,n.pyramid=function(){return $t().prop("barHeight",et).prop("barWidth",et).prop("barPosition",et).prop("barFill",et).barFill("#000").prop("tooltipAnchor").tooltipAnchor([.5,.5]).prop("leftAccessor").prop("rightAccessor").prop("leftRefAccessor").prop("rightRefAccessor").render((function(n){var r=t.select(this),i=r.props(),e=ki().x((function(n){return-.5-i.barWidth(n)})).y(i.barPosition).height(i.barHeight).width(i.barWidth).fill(i.barFill).tooltipAnchor(i.tooltipAnchor),u=ki().x(.5).y(i.barPosition).height(i.barHeight).width(i.barWidth).fill(i.barFill).tooltipAnchor(i.tooltipAnchor),o=zi().barPosition(i.barPosition).barWidth(i.barWidth).mirror(!0),a=zi().barPosition(i.barPosition).barWidth(i.barWidth);r.selectGroup("left").datum(i.leftAccessor(n)).call(e),r.selectGroup("right").datum(i.rightAccessor(n)).call(u),r.selectGroup("leftReference").datum(i.leftRefAccessor?[i.leftRefAccessor(n)]:[]).call(o),r.selectGroup("rightReference").datum(i.rightRefAccessor?[i.rightRefAccessor(n)]:[]).call(a)}))},n.range=Xr,n.responsiveProps=function(){var n=Er(),t={};function r(r){if(!(Zn(r)&&(i=r,qn(i)&&qn(i.width)&&qn(i.screenWidth)&&qn(i.screenHeight))))return Ur("Could not determine the current breakpoint, returning the default props"),Object.keys(t).reduce((function(n,t,r){return n[r]=t._,n}),{});var i,e=Ar(n,r);return Object.keys(t).reduce((function(i,u){var o=t[u];if(!function(n,t){if(!qn(n._))return!1;for(var r in n)if({}.hasOwnProperty.call(n,r)&&"_"!==r&&!qn(_r(t,r)))return!1;return!0}(o,n))return Ur('responsiveProps was given an invalid propSpec for property: "'+u+'". The spec: ',o),i;var a=Xn((function(n){return qn(o[n.name])}),e);return i[u]=o[a.name](r.width),i}),{})}return r.prop=function(n,i){return t[n]=(e=i,Object.keys(e).reduce((function(n,t){return n[t]=et(e[t]),n}),{})),r;var e},r.breakpoints=function(t){return 0===arguments.length?n:(n=Nr(t),r)},r},n.roundTransformString=function(n){var t=Gn(Math.floor,Number);return n.replace(/(translate\()\s*([0-9., ]+)\s*(\))/i,(function(n,r,i,e){return r+i.replace(","," ").replace(/\s+/," ").split(" ").map(t).join(",")+e}))},n.sankey=function(){return $t().prop("sizeScale").prop("columnPosition").prop("nodeThickness").prop("nodePadding").prop("columnPadding",et).prop("columnLabel",et).columnLabel("").prop("columnLabelOffset",et).columnLabelOffset(0).prop("linkCurvature").linkCurvature(.5).prop("nodeColor",et).prop("linkColor",et).prop("linkSort",et).linkSort((function(n,t){return n.value-t.value})).prop("labelSide",et).labelSide("left").prop("labelSideSwitch").prop("labelOpacity",et).labelOpacity(1).prop("labelHitBoxSize").labelHitBoxSize(0).prop("nameLabel").nameLabel(Hn).prop("linkSourceLabels").linkSourceLabels([]).prop("linkTargetLabels").linkTargetLabels([]).prop("linkLabel",et).render((function(n){var r=t.select(this),i=r.props(),e=nt("id"),u=function(n){return Math.floor(i.columnPadding(n.columnIndex)+i.sizeScale(n.valueOffset)+i.nodePadding*n.nodeIndex)},o=function(n){return i.columnPosition(n.columnIndex)},a=function(n){return u(n)},f=function(){return Math.max(i.nodeThickness,1)},s=function(n){return Math.ceil(Math.max(i.sizeScale(n.value),1))},c=ki().x(o).y(a).width(f).height(s).fill(i.nodeColor),l=r.selectGroup("nodes").datum(n.nodes);l.call(c);var h=ir().position((function(n){return[o(n)+f()/2,a(n)+s(n)/2]}));l.call(h);var v=function(n){return i.columnPosition(n)+i.nodeThickness/2},d=l.selectAll(".sszvis-sankey-column-label").data(n.columnLengths),b=d.enter().append("text").attr("class","sszvis-sankey-label sszvis-sankey-weak-label sszvis-sankey-column-label");(d=d.merge(b)).exit().remove(),d.attr("transform",(function(n,t){return rr(v(t)+i.columnLabelOffset(n,t),-24)})).text((function(n,t){return i.columnLabel(t)}));var p=l.selectAll(".sszvis-sankey-column-label-tick").data(n.columnLengths),y=p.enter().append("line").attr("class","sszvis-sankey-column-label-tick");(p=p.merge(y)).exit().remove(),p.attr("x1",(function(n,t){return nr(v(t))})).attr("x2",(function(n,t){return nr(v(t))})).attr("y1",nr(-16)).attr("y2",nr(-12));var m=function(n){return[i.columnPosition(n.src.columnIndex)+i.nodeThickness+1,i.columnPosition(n.tgt.columnIndex)-1,u(n.src)+i.sizeScale(n.srcOffset)+i.sizeScale(n.value)/2,u(n.tgt)+i.sizeScale(n.tgtOffset)+i.sizeScale(n.value)/2]},g=function(n){var t=m(n);return function(n,t,r,i){return[n,t,r,i]}(t[0],t[1],t[2],t[3])},w=r.selectGroup("links"),M=w.selectAll(".sszvis-link").data(n.links,e),k=M.enter().append("path").attr("class","sszvis-link");(M=M.merge(k)).exit().remove(),M.attr("fill","none").attr("d",(function(n){var r=m(n),e=t.interpolateNumber(r[0],r[1]),u=e(i.linkCurvature),o=e(1-i.linkCurvature);return function(n,t,r,i,e,u){return"M"+n+","+e+"C"+t+","+e+" "+r+","+u+" "+i+","+u}(r[0],u,o,r[1],r[2],r[3])})).attr("stroke-width",(function(n){return Math.max(i.sizeScale(n.value),1)})).attr("stroke",i.linkColor).sort(i.linkSort),w.datum(n.links);var z=ir().position((function(n){var t=g(n);return[(t[0]+t[1])/2,(t[2]+t[3])/2]}));w.call(z);var _=r.selectGroup("linklabels"),x=_.selectAll(".sszvis-sankey-link-source-label").data(i.linkSourceLabels),A=x.enter().append("text").attr("class","sszvis-sankey-label sszvis-sankey-strong-label sszvis-sankey-link-source-label");(x=x.merge(A)).exit().remove(),x.attr("transform",(function(n){var t=g(n);return rr(t[0]+6,t[2])})).text(i.linkLabel);var N=_.selectAll(".sszvis-sankey-link-target-label").data(i.linkTargetLabels),S=N.enter().append("text").attr("class","sszvis-sankey-label sszvis-sankey-strong-label sszvis-sankey-link-target-label");(N=N.merge(S)).exit().remove(),N.attr("transform",(function(n){var t=g(n);return rr(t[1]-6,t[3])})).text(i.linkLabel);var E=function(n){var t=i.labelSide(n);return i.labelSideSwitch&&(t="left"===t?"right":"left"),t},F=r.selectGroup("nodelabels"),O=F.selectAll(".sszvis-sankey-node-label").data(n.nodes),C=O.enter().append("text").attr("class","sszvis-sankey-label sszvis-sankey-weak-label sszvis-sankey-node-label");(O=O.merge(C)).exit().remove(),O.text((function(n){return i.nameLabel(n.id)})).attr("text-align","middle").attr("text-anchor",(function(n){return"left"===E(n.columnIndex)?"end":"start"})).attr("x",(function(n){return"left"===E(n.columnIndex)?o(n)-6:o(n)+i.nodeThickness+6})).attr("y",(function(n){return a(n)+s(n)/2})).style("opacity",i.labelOpacity);var P=F.selectAll(".sszvis-sankey-hitbox").data(n.nodes),R=P.enter().append("rect").attr("class","sszvis-sankey-hitbox");(P=P.merge(R)).exit().remove(),P.attr("fill","transparent").attr("x",(function(n){return o(n)+("left"===E(n.columnIndex)?-i.labelHitBoxSize:0)})).attr("y",(function(n){return a(n)-i.nodePadding/2})).attr("width",i.labelHitBoxSize+i.nodeThickness).attr("height",(function(n){return s(n)+i.nodePadding}))}))},n.sankeyLayout=function(n,r,i,e){var u=t.min(n.map((function(n){return Math.max(12,Math.min(50,.15*i/(n-1)))}))),o=t.min(n.map((function(n,t){return Math.max(1,i-(n-1)*u)/r[t]}))),a=u/o,f=u,s=t.max(r),c=n.map((function(n,t){return r[t]*o+(n-1)*f})),l=t.max(c),h=n.map((function(n,t){return(l-c[t])/2}));return{valuePadding:a,nodePadding:f,columnPaddings:h,valueDomain:[0,s],valueRange:[0,s*o],nodeThickness:20,columnDomain:[0,1],columnRange:[0,(e-20)/(n.length-1)]}},n.sankeyPrepareData=function(){var n=Hn,r=Hn,i=Hn,e=[],u=nt("value"),o=function(n,r){return t.ascending(u(n),u(r))},a=function(n,r){return t.descending(u(n),u(r))},f=a,s=function(o){var s=e.reduce((function(n,t,r){return t.forEach((function(t){n.has(t)&&Ur("Duplicate column member id passed to sszvis.layout.sankey.prepareData.column:",t,"The existing value will be overwritten"),n.set(t,{id:t,columnIndex:r,nodeIndex:0,value:0,valueOffset:0,linksFrom:[],linksTo:[]})})),n}),t.map()),c=o.map((function(t){var e=n(t),u=r(t),o=+i(t)||0,a=s.get(e),f=s.get(u);if(!a)return Ur("Found invalid source column id:",e),null;if(!f)return Ur("Found invalid target column id:",u),null;var c={id:Ui(),value:o,src:a,srcOffset:0,tgt:f,tgtOffset:0};return a.linksFrom.push(c),f.linksTo.push(c),c})),l=s.values(),h=l.reduce((function(n,r){var i=t.sum(r.linksFrom,u),e=t.sum(r.linksTo,u);return r.value=Math.max(0,i,e),n[r.columnIndex]+=r.value,n}),Yn(e.length,0)),v=e.map((function(n){return n.length}));return l.sort(f),c.sort(a),l.reduce((function(n,t){return t.valueOffset=n[0][t.columnIndex],t.nodeIndex=n[1][t.columnIndex],n[0][t.columnIndex]+=t.value,n[1][t.columnIndex]+=1,n}),[Yn(e.length,0),Yn(e.length,0)]),l.forEach((function(n){n.linksFrom.sort((function(n,t){return n.tgt.nodeIndex-t.tgt.nodeIndex})),n.linksTo.sort((function(n,t){return n.src.nodeIndex-t.src.nodeIndex})),n.linksFrom.reduce((function(n,t){return t.srcOffset=n,n+u(t)}),0),n.linksTo.reduce((function(n,t){return t.tgtOffset=n,n+u(t)}),0)})),{nodes:l,links:c,columnTotals:h,columnLengths:v}};return s.apply=function(n){return s(n)},s.source=function(t){return n=t,s},s.target=function(n){return r=n,s},s.value=function(n){return i=n,s},s.descendingSort=function(){return f=a,s},s.ascendingSort=function(){return f=o,s},s.idLists=function(n){return e=n,s},s},n.scaleDeepGry=Ht,n.scaleDimGry=Lt,n.scaleDivNtr=Ct,n.scaleDivNtrGry=Pt,n.scaleDivVal=Ft,n.scaleDivValGry=Ot,n.scaleGry=Dt,n.scaleLightGry=Tt,n.scaleMedGry=Bt,n.scalePaleGry=jt,n.scaleQual12=wt,n.scaleQual6=Mt,n.scaleQual6a=kt,n.scaleQual6b=zt,n.scaleSeqBlu=xt,n.scaleSeqBrn=St,n.scaleSeqGrn=Nt,n.scaleSeqRed=At,n.selectMenu=function(){return $t().prop("values").prop("current").prop("width").width(300).prop("change").change(Hn).render((function(){var n=t.select(this),r=n.props(),i=n.selectAll(".sszvis-control-optionSelectable").data(["sszvis-control-select"],(function(n){return n})),e=i.enter().append("div").classed("sszvis-control-optionSelectable",!0).classed("sszvis-control-select",!0);i.exit().remove(),(i=i.merge(e)).style("width",r.width+"px");var u=i.selectDiv("selectMetrics").classed("sszvis-control-select__metrics",!0),o=i.selectAll(".sszvis-control-select__element").data([1]),a=o.enter().append("select").classed("sszvis-control-select__element",!0).on("change",(function(){var n=t.select(this).property("value");r.change(r.values[n]),setTimeout((function(){window.focus()}),0)}));(o=o.merge(a)).style("width",r.width+30+"px");var f=o.selectAll("option").data(r.values),s=f.enter().append("option");f.exit().remove(),f.merge(s).attr("selected",(function(n){return n===r.current?"selected":null})).attr("value",(function(n,t){return t})).text((function(n){return function(n,t,r){var i=1e3,e=function r(e,u){n.text(e);var o=Math.ceil(n.node().clientWidth);return u<i&&o>t?r(e.slice(0,e.length-2)+"…",u+1):e};return e(r,0)}(u,r.width-40,n)}))}))},n.set=rt,n.slider=function(){return $t().prop("scale").prop("value").prop("onchange").prop("minorTicks").minorTicks([]).prop("majorTicks").majorTicks([]).prop("tickLabels",et).tickLabels(Hn).prop("label",et).label(Hn).render((function(){var n=t.select(this),r=n.props(),i=nr(18),e=r.scale.domain(),u=Xr(r.scale),o=r.scale.copy().range([u[0]+5.5,u[1]-5.5]),a=n.selectAll("g.sszvis-control-slider__backgroundgroup").data([1]),f=a.enter().append("g").classed("sszvis-control-slider__backgroundgroup",!0);(a=a.merge(f)).exit().remove();var s=Zr().scale(o).orient("bottom").hideBorderTickThreshold(0).tickSize(12).tickPadding(6).tickValues(rt([].concat(r.majorTicks,r.minorTicks))).tickFormat((function(n){return Li(n,r.majorTicks)?r.tickLabels(n):""})),c=a.selectAll("g.sszvis-axisGroup").data([1]),l=c.enter().append("g").classed("sszvis-axisGroup sszvis-axis sszvis-axis--bottom sszvis-axis--slider",!0);(c=c.merge(l)).attr("transform",rr(0,28)).call(s),c.selectAll(".tick line").filter((function(n){return!Li(n,r.majorTicks)})).attr("y2",4);var h=c.selectAll(".tick text").filter((function(n){return Li(n,r.majorTicks)})),v=h.size();h.style("text-anchor",(function(n,t){return 0===t?"start":t===v-1?"end":"middle"}));var d=a.selectAll("g.sszvis-slider__background").data([1]),b=d.enter().append("g").classed("sszvis-slider__background",!0);(d=d.merge(b)).attr("transform",rr(0,i));var p=d.selectAll(".sszvis-slider__background__bg1").data([1]),y=p.enter().append("line").classed("sszvis-slider__background__bg1",!0).style("stroke-width",6).style("stroke","#888").style("stroke-linecap","round");(p=p.merge(y)).attr("x1",Math.ceil(u[0]+3)).attr("x2",Math.floor(u[1]-3));var m=d.selectAll(".sszvis-slider__background__bg2").data([1]),g=m.enter().append("line").classed("sszvis-slider__background__bg2",!0).style("stroke-width",5).style("stroke","#fff").style("stroke-linecap","round");(m=m.merge(g)).attr("x1",Math.ceil(u[0]+3)).attr("x2",Math.floor(u[1]-3));var w=d.selectAll(".sszvis-slider__backgroundshadow").data([r.value]),M=w.enter().append("line").attr("class","sszvis-slider__backgroundshadow").attr("stroke-width",5).style("stroke","#E0E0E0").style("stroke-linecap","round");(w=w.merge(M)).attr("x1",Math.ceil(u[0]+3)).attr("x2",Gn(Math.floor,o));var k=n.selectAll("g.sszvis-control-slider__handle").data([r.value]);k.exit().remove();var z=k.enter().append("g").classed("sszvis-control-slider__handle",!0);(k=k.merge(z)).attr("transform",(function(n){return rr(nr(o(n)),.5)})),z.append("text").classed("sszvis-control-slider--label",!0),k.selectAll(".sszvis-control-slider--label").data((function(n){return[n]})).text(r.label).style("text-anchor",(function(n){return it(n,e[0])?"start":it(n,e[1])?"end":"middle"})).attr("dx",(function(n){return it(n,e[0])?-5:it(n,e[1])?5:0})),z.append("rect").classed("sszvis-control-slider__handlebox",!0).attr("x",-5).attr("y",i-11.5).attr("width",10).attr("height",23).attr("rx",2).attr("ry",2);z.append("line").classed("sszvis-control-slider__handleline",!0).attr("y1",i-7.5).attr("y2",i+7.5);var _=ti().xScale(r.scale).yScale(t.scaleLinear().range([-11,40])).draggable(!0).on("drag",r.onchange);n.selectGroup("sliderInteraction").classed("sszvis-control-slider--interactionLayer",!0).attr("transform",rr(0,4)).call(_)}))},n.slightlyDarker=function(n){return t.hsl(n).darker(.4)},n.slowTransition=wi,n.some=function(n,t){for(var r=0;r<t.length;r++)if(n(t[r]))return!0;return!1},n.stackedArea=function(){return $t().prop("x").prop("y0").prop("y1").prop("fill").prop("stroke").prop("defined").prop("key").key((function(n,t){return t})).prop("transition").transition(!0).render((function(n){var r=t.select(this),i=r.props(),e=t.area().defined(void 0!==i.defined?i.defined:function(){return Gn(Kn(isNaN),i.y0)&&Gn(Kn(isNaN),i.y1)}).x(i.x).y0(i.y0).y1(i.y1),u=r.selectAll("path.sszvis-path").data(n,i.key),o=u.enter().append("path").classed("sszvis-path",!0);u.exit().remove(),u=u.merge(o),i.transition&&(u=u.transition(gi())),u.attr("d",e).attr("fill",i.fill).attr("stroke",i.stroke||"#ffffff")}))},n.stackedAreaMultiples=function(){return $t().prop("x").prop("y0").prop("y1").prop("fill").prop("stroke").prop("defined").prop("key").key((function(n,t){return t})).prop("valuesAccessor").valuesAccessor(Hn).prop("transition").transition(!0).render((function(n){var r=t.select(this),i=r.props();n=n.slice().reverse();var e=t.area().defined(void 0!==i.defined?i.defined:function(){return Gn(Kn(isNaN),i.y0)&&Gn(Kn(isNaN),i.y1)}).x(i.x).y0(i.y0).y1(i.y1),u=r.selectAll("path.sszvis-path").data(n,i.key),o=u.enter().append("path").classed("sszvis-path",!0);u.exit().remove(),u=o.merge(u),i.transition&&(u=u.transition(gi())),u.attr("d",Gn(e,i.valuesAccessor)).attr("fill",i.fill).attr("stroke",i.stroke)}))},n.stackedBarHorizontal=function(){return Fi(Oi)},n.stackedBarHorizontalData=Si,n.stackedBarVertical=function(){return Fi(Ci)},n.stackedBarVerticalData=Ei,n.stackedPyramid=function(){return $t().prop("barHeight",et).prop("barWidth",et).prop("barPosition",et).prop("barFill",et).barFill("#000").prop("tooltipAnchor").tooltipAnchor([.5,.5]).prop("leftAccessor").prop("rightAccessor").prop("leftRefAccessor").prop("rightRefAccessor").render((function(n){var r=t.select(this),i=r.props(),e=ki().x((function(n){return-.5-i.barWidth(n[1])})).y(Gn(i.barPosition,Ri)).height(i.barHeight).width((function(n){return i.barWidth(n[1])-i.barWidth(n[0])})).fill(Gn(i.barFill,Pi)).tooltipAnchor(i.tooltipAnchor),u=ki().x((function(n){return.5+i.barWidth(n[0])})).y(Gn(i.barPosition,Ri)).height(i.barHeight).width((function(n){return i.barWidth(n[1])-i.barWidth(n[0])})).fill(Gn(i.barFill,Pi)).tooltipAnchor(i.tooltipAnchor),o=Ti().stackElement(e),a=Ti().stackElement(u),f=ji().barPosition(i.barPosition).barWidth(i.barWidth).mirror(!0),s=ji().barPosition(i.barPosition).barWidth(i.barWidth);r.selectGroup("leftStack").datum(i.leftAccessor(n)).call(o),r.selectGroup("rightStack").datum(i.rightAccessor(n)).call(a),r.selectGroup("leftReference").datum(i.leftRefAccessor?[i.leftRefAccessor(n)]:[]).call(f),r.selectGroup("rightReference").datum(i.rightRefAccessor?[i.rightRefAccessor(n)]:[]).call(s)}))},n.stackedPyramidData=function(n,r,i,e){return function(u){var o=yi().arrayBy(n).arrayBy(r).objectBy(i).apply(u).map((function(r){var i=Object.keys(r[0]),u=n(r[0][i[0]][0]),o=t.stack().keys(i).value((function(n,t){return e(n[t][0])}))(r);return o.forEach((function(n,t){n.forEach((function(n,r){return n.data=n.data[i[t]][0],n.series=i[t],n.side=u,n.row=r,n.value=e(n.data),n}))})),o}));return o.maxValue=t.max(o,(function(n){return t.max(n,(function(n){return t.max(n,(function(n){return n[1]}))}))})),o}},n.stringEqual=it,n.sunburst=function(){return $t().prop("angleScale").angleScale(t.scaleLinear().range([0,2*Math.PI])).prop("radiusScale").prop("centerRadius").prop("fill").prop("stroke").stroke("white").render((function(n){var r=t.select(this),i=r.props();var e=function(n){return Math.max(0,Math.min(Di,i.angleScale(n.x0)))},u=function(n){return Math.max(0,Math.min(Di,i.angleScale(n.x1)))},o=function(n){return i.centerRadius+Math.max(0,i.radiusScale(n.y0))},a=function(n){return i.centerRadius+Math.max(0,i.radiusScale(n.y1))},f=t.arc().startAngle(e).endAngle(u).innerRadius(o).outerRadius(a);n.forEach((function(n){n._x0=n.x0,n._x1=n.x1}));var s=r.selectAll(".sszvis-sunburst-arc").each((function(t,r){n[r]&&(n[r].x0=t.x0,n[r].x1=t.x1)})).data(n),c=s.enter().append("path").attr("class","sszvis-sunburst-arc");s.exit().remove(),(s=s.merge(c)).attr("stroke",i.stroke).attr("fill",(function n(r){if(r.data.isSunburstRoot)return"transparent";if(r.parent){if(r.parent.data.isSunburstRoot)return t.hsl(i.fill(r.data.key));var e=n(r.parent);return e.l*=1.15,e}return Ur("Data passed to sszvis.component.sunburst does not have the expected tree structure. You should prepare it using sszvis.format.sunburst.prepareData"),t.hsl(i.fill(r.data.key))})),s.transition(gi()).attrTween("d",(function(n){var r=t.interpolate(n.x0,n._x0),i=t.interpolate(n.x1,n._x1);return function(t){return n.x0=r(t),n.x1=i(t),f(n)}}));var l=ir().position((function(n){var t=e(n),r=u(n),i=t+Math.abs(r-t)/2-Math.PI/2,f=(o(n)+a(n))/2;return[Math.cos(i)*f,Math.sin(i)*f]}));r.call(l)}))},n.sunburstGetRadiusExtent=function(n){return[t.min(n,(function(n){return n.y0})),t.max(n,(function(n){return n.y1}))]},n.sunburstLayout=function(n,t){var r=t/2,i=r/3;return{centerRadius:i,numLayers:n,ringWidth:Math.max(10,Math.min(60,(r-i)/n))}},n.sunburstPrepareData=function(){var n=t.nest(),r=Hn,i=function(){return 0};function e(e){n.rollup(Vn);var u=t.hierarchy({isSunburstRoot:!0,values:n.entries(e)},nt("values")).sort(i).sum((function(n){return n.value?r(n.value):0}));return t.partition()(u),function n(t){return[].concat.apply([t],(t.children||[]).map(n))}(u).filter((function(n){return!n.data.isSunburstRoot}))}return e.calculate=function(n){return e(n)},e.layer=function(t){return n.key(t),e},e.value=function(n){return r=n,e},e.sort=function(n){return i=n,e},e},n.swissMapPath=qi,n.swissMapProjection=Gi,n.textWrap=Vr,n.tooltip=function(){var n=br();return $t().delegate("header",n).delegate("body",n).delegate("orientation",n).delegate("dx",n).delegate("dy",n).delegate("opacity",n).prop("renderInto").prop("visible",et).visible(!1).renderSelection((function(t){var r=t.props(),i=r.renderInto.node().getBoundingClientRect(),e=[];t.each((function(n){if(r.visible(n)){var t=this.getBoundingClientRect(),u=[t.left-i.left,t.top-i.top];e.push({datum:n,x:u[0],y:u[1]})}})),r.renderInto.datum(e).call(n)}))},n.tooltipAnchor=ir,n.transformTranslateSubpixelShift=tr,n.translateString=rr,n.viewport=wr,n.voronoi=function(){var n=t.dispatch("over","out"),r=$t().prop("x").prop("y").prop("bounds").prop("debug").render((function(r){var i=t.select(this),e=i.props();if(!e.bounds)return Gr("behavior.voronoi - requires bounds"),!1;var u=t.voronoi().x(e.x).y(e.y).extent(e.bounds),o=i.selectAll("[data-sszvis-behavior-voronoi]").data(u.polygons(r)),a=o.enter().append("path").attr("data-sszvis-behavior-voronoi","").attr("data-sszvis-behavior-pannable","").attr("class","sszvis-interactive");o.exit().remove(),(o=o.merge(a)).attr("d",(function(n){return"M"+n.join("L")+"Z"})).attr("fill","transparent").on("mouseover",(function(r){var i=this.parentNode.getBoundingClientRect();ai(t.event,[i.left+e.x(r.data),i.top+e.y(r.data)])&&n.apply("over",this,[r.data])})).on("mousemove",(function(r){var i=this.parentNode.getBoundingClientRect();ai(t.event,[i.left+e.x(r.data),i.top+e.y(r.data)])?n.apply("over",this,[r.data]):n.apply("out",this,[])})).on("mouseout",(function(){n.apply("out",this,[])})).on("touchstart",(function(r){var i=this.parentNode.getBoundingClientRect();if(ai(Jn(t.event),[i.left+e.x(r.data),i.top+e.y(r.data)])){t.event.preventDefault(),n.apply("over",this,[r.data]);t.select(this).on("touchmove",(function(){var r=Jn(t.event),i=ii(r),u=ei(i);if(null!==u){var o=i.parentNode.getBoundingClientRect();ai(r,[o.left+e.x(u.data),o.top+e.y(u.data)])?(t.event.cancelable&&t.event.preventDefault(),n.apply("over",this,[u.data])):n.apply("out",this,[])}else n.apply("out",this,[])})).on("touchend",(function(){n.apply("out",this,[]),t.select(this).on("touchmove",null).on("touchend",null)}))}})),e.debug&&o.attr("stroke","#f00")}));return r.on=function(){var t=n.on.apply(n,arguments);return t===n?r:t},r},n.widthAdaptiveMapPathStroke=function(n){return Math.min(Math.max(.8,n/400),1.1)},n.withAlpha=function(n,r){var i=t.rgb(n);return"rgba("+i.r+","+i.g+","+i.b+","+r+")"},Object.defineProperty(n,"__esModule",{value:!0})}(t,Nm)}));const Em=o(Sm),Fm=Object.freeze(Object.assign(Object.create(null),Sm,{default:Em}));function Om(n){return n}function Cm(n){if(null==n)return Om;var t,r,i=n.scale[0],e=n.scale[1],u=n.translate[0],o=n.translate[1];return function(n,a){a||(t=r=0);var f=2,s=n.length,c=new Array(s);for(c[0]=(t+=n[0])*i+u,c[1]=(r+=n[1])*e+o;f<s;)c[f]=n[f],++f;return c}}function Pm(n){var t,r=Cm(n.transform),i=1/0,e=i,u=-i,o=-i;function a(n){(n=r(n))[0]<i&&(i=n[0]),n[0]>u&&(u=n[0]),n[1]<e&&(e=n[1]),n[1]>o&&(o=n[1])}function f(n){switch(n.type){case"GeometryCollection":n.geometries.forEach(f);break;case"Point":a(n.coordinates);break;case"MultiPoint":n.coordinates.forEach(a)}}for(t in n.arcs.forEach((function(n){for(var t,a=-1,f=n.length;++a<f;)(t=r(n[a],a))[0]<i&&(i=t[0]),t[0]>u&&(u=t[0]),t[1]<e&&(e=t[1]),t[1]>o&&(o=t[1])})),n.objects)f(n.objects[t]);return[i,e,u,o]}function Rm(n,t){var r=t.id,i=t.bbox,e=null==t.properties?{}:t.properties,u=Tm(n,t);return null==r&&null==i?{type:"Feature",properties:e,geometry:u}:null==i?{type:"Feature",id:r,properties:e,geometry:u}:{type:"Feature",id:r,bbox:i,properties:e,geometry:u}}function Tm(n,t){var r=Cm(n.transform),i=n.arcs;function e(n,t){t.length&&t.pop();for(var e=i[n<0?~n:n],u=0,o=e.length;u<o;++u)t.push(r(e[u],u));n<0&&function(n,t){for(var r,i=n.length,e=i-t;e<--i;)r=n[e],n[e++]=n[i],n[i]=r}(t,o)}function u(n){return r(n)}function o(n){for(var t=[],r=0,i=n.length;r<i;++r)e(n[r],t);return t.length<2&&t.push(t[0]),t}function a(n){for(var t=o(n);t.length<4;)t.push(t[0]);return t}function f(n){return n.map(a)}return function n(t){var r,i=t.type;switch(i){case"GeometryCollection":return{type:i,geometries:t.geometries.map(n)};case"Point":r=u(t.coordinates);break;case"MultiPoint":r=t.coordinates.map(u);break;case"LineString":r=o(t.arcs);break;case"MultiLineString":r=t.arcs.map(o);break;case"Polygon":r=f(t.arcs);break;case"MultiPolygon":r=t.arcs.map(f);break;default:return null}return{type:i,coordinates:r}}(t)}function jm(n,t){var r={},i={},e={},u=[],o=-1;function a(n,t){for(var i in n){var e=n[i];delete t[e.start],delete e.start,delete e.end,e.forEach((function(n){r[n<0?~n:n]=1})),u.push(e)}}return t.forEach((function(r,i){var e,u=n.arcs[r<0?~r:r];u.length<3&&!u[1][0]&&!u[1][1]&&(e=t[++o],t[o]=r,t[i]=e)})),t.forEach((function(t){var r,u,o=function(t){var r,i=n.arcs[t<0?~t:t],e=i[0];return n.transform?(r=[0,0],i.forEach((function(n){r[0]+=n[0],r[1]+=n[1]}))):r=i[i.length-1],t<0?[r,e]:[e,r]}(t),a=o[0],f=o[1];if(r=e[a])if(delete e[r.end],r.push(t),r.end=f,u=i[f]){delete i[u.start];var s=u===r?r:r.concat(u);i[s.start=r.start]=e[s.end=u.end]=s}else i[r.start]=e[r.end]=r;else if(r=i[f])if(delete i[r.start],r.unshift(t),r.start=a,u=e[a]){delete e[u.end];var c=u===r?r:u.concat(r);i[c.start=u.start]=e[c.end=r.end]=c}else i[r.start]=e[r.end]=r;else i[(r=[t]).start=a]=e[r.end=f]=r})),a(e,i),a(i,e),t.forEach((function(n){r[n<0?~n:n]||u.push([n])})),u}function Dm(n,t,r){var i,e,u;if(arguments.length>1)i=Lm(0,t,r);else for(e=0,i=new Array(u=n.arcs.length);e<u;++e)i[e]=e;return{type:"MultiLineString",arcs:jm(n,i)}}function Lm(n,t,r){var i,e=[],u=[];function o(n){var t=n<0?~n:n;(u[t]||(u[t]=[])).push({i:n,g:i})}function a(n){n.forEach(o)}function f(n){n.forEach(a)}return function n(t){switch(i=t,t.type){case"GeometryCollection":t.geometries.forEach(n);break;case"LineString":a(t.arcs);break;case"MultiLineString":case"Polygon":f(t.arcs);break;case"MultiPolygon":!function(n){n.forEach(f)}(t.arcs)}}(t),u.forEach(null==r?function(n){e.push(n[0].i)}:function(n){r(n[0].g,n[n.length-1].g)&&e.push(n[0].i)}),e}function Bm(n,t){var r={},i=[],e=[];function u(n){n.forEach((function(t){t.forEach((function(t){(r[t=t<0?~t:t]||(r[t]=[])).push(n)}))})),i.push(n)}function o(t){return function(n){for(var t,r=-1,i=n.length,e=n[i-1],u=0;++r<i;)u+=(t=e)[0]*(e=n[r])[1]-t[1]*e[0];return Math.abs(u)}(Tm(n,{type:"Polygon",arcs:[t]}).coordinates[0])}return t.forEach((function n(t){switch(t.type){case"GeometryCollection":t.geometries.forEach(n);break;case"Polygon":u(t.arcs);break;case"MultiPolygon":t.arcs.forEach(u)}})),i.forEach((function(n){if(!n._){var t=[],i=[n];for(n._=1,e.push(t);n=i.pop();)t.push(n),n.forEach((function(n){n.forEach((function(n){r[n<0?~n:n].forEach((function(n){n._||(n._=1,i.push(n))}))}))}))}})),i.forEach((function(n){delete n._})),{type:"MultiPolygon",arcs:e.map((function(t){var i,e=[];if(t.forEach((function(n){n.forEach((function(n){n.forEach((function(n){r[n<0?~n:n].length<2&&e.push(n)}))}))})),(i=(e=jm(n,e)).length)>1)for(var u,a,f=1,s=o(e[0]);f<i;++f)(u=o(e[f]))>s&&(a=e[0],e[0]=e[f],e[f]=a,s=u);return e}))}}function Hm(n,t){for(var r=0,i=n.length;r<i;){var e=r+i>>>1;n[e]<t?r=e+1:i=e}return r}function Im(n){if(null==n)return Om;var t,r,i=n.scale[0],e=n.scale[1],u=n.translate[0],o=n.translate[1];return function(n,a){a||(t=r=0);var f=2,s=n.length,c=new Array(s),l=Math.round((n[0]-u)/i),h=Math.round((n[1]-o)/e);for(c[0]=l-t,t=l,c[1]=h-r,r=h;f<s;)c[f]=n[f],++f;return c}}const Wm=Object.freeze({__proto__:null,bbox:Pm,feature:function(n,t){return"GeometryCollection"===t.type?{type:"FeatureCollection",features:t.geometries.map((function(t){return Rm(n,t)}))}:Rm(n,t)},mesh:function(n){return Tm(n,Dm.apply(this,arguments))},meshArcs:Dm,merge:function(n){return Tm(n,Bm.apply(this,arguments))},mergeArcs:Bm,neighbors:function(n){var t={},r=n.map((function(){return[]}));function i(n,r){n.forEach((function(n){n<0&&(n=~n);var i=t[n];i?i.push(r):t[n]=[r]}))}function e(n,t){n.forEach((function(n){i(n,t)}))}var u={LineString:i,MultiLineString:e,Polygon:e,MultiPolygon:function(n,t){n.forEach((function(n){e(n,t)}))}};for(var o in n.forEach((function n(t,r){"GeometryCollection"===t.type?t.geometries.forEach((function(t){n(t,r)})):t.type in u&&u[t.type](t.arcs,r)})),t)for(var a=t[o],f=a.length,s=0;s<f;++s)for(var c=s+1;c<f;++c){var l,h=a[s],v=a[c];(l=r[h])[o=Hm(l,v)]!==v&&l.splice(o,0,v),(l=r[v])[o=Hm(l,h)]!==h&&l.splice(o,0,h)}return r},quantize:function(n,t){if(n.transform)throw new Error("already quantized");if(t&&t.scale)a=n.bbox;else{if(!((r=Math.floor(t))>=2))throw new Error("n must be ≥2");var r,i=(a=n.bbox||Pm(n))[0],e=a[1],u=a[2],o=a[3];t={scale:[u-i?(u-i)/(r-1):1,o-e?(o-e)/(r-1):1],translate:[i,e]}}var a,f,s=Im(t),c=n.objects,l={};function h(n){return s(n)}function v(n){var t;switch(n.type){case"GeometryCollection":t={type:"GeometryCollection",geometries:n.geometries.map(v)};break;case"Point":t={type:"Point",coordinates:h(n.coordinates)};break;case"MultiPoint":t={type:"MultiPoint",coordinates:n.coordinates.map(h)};break;default:return n}return null!=n.id&&(t.id=n.id),null!=n.bbox&&(t.bbox=n.bbox),null!=n.properties&&(t.properties=n.properties),t}for(f in c)l[f]=v(c[f]);return{type:"Topology",bbox:a,transform:t,objects:l,arcs:n.arcs.map((function(n){var t,r=0,i=1,e=n.length,u=new Array(e);for(u[0]=s(n[0],0);++r<e;)((t=s(n[r],r))[0]||t[1])&&(u[i++]=t);return 1===i&&(u[i++]=[0,0]),u.length=i,u}))}},transform:Cm,untransform:Im}),Um=class{constructor(t){n(this,t),this.initialized=!1,this.chartId=void 0,this.create=function(){}}createWatcher(){!this.initialized&&this.chartElement&&(this.initialized=!0,this.create(this.chartElement,{d3:Am,sszvis:Fm,topojson:Wm}))}componentDidRender(){!this.initialized&&this.chartElement&&(this.initialized=!0,this.create(this.chartElement,{d3:Am,sszvis:Fm,topojson:Wm}))}render(){return t(r,null,t("div",{class:{"stzh-chart":!0}},t("div",{id:this.chartId,ref:n=>this.chartElement=n,class:"stzh-chart__element"})))}get element(){return i(this)}static get watchers(){return{create:["createWatcher"]}}};Um.style='@charset "UTF-8";:host{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sszvis-outer-container{clear:both;position:relative}.sszvis-svg-layer{position:relative}.sszvis-html-layer{position:absolute}.sszvis-fallback-image{display:block;margin:0 auto;max-width:32.25rem;width:100%}.sszvis-interactive{cursor:default;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);-webkit-touch-callout:none}.sszvis-interactive.sszvis-interactive--draggable{cursor:pointer;cursor:grab;cursor:-webkit-grab}.sszvis-interactive.sszvis-interactive--draggable:active{cursor:grabbing;cursor:-webkit-grabbing}:root{--stzh-font:var(--stzh-font-family-regular, "Helvetica Neue", Helvetica, Arial, sans-serif)}.sszvis-axis text{fill:#767676;font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;font-family:var(--stzh-font);font-size:0.625rem;font-style:normal;font-weight:normal}.sszvis-axis path,.sszvis-axis line{fill:none;stroke:#b8b8b8;shape-rendering:crispEdges}.sszvis-axis .tick text.active{fill:#545454}.sszvis-axis .tick text.hidden{display:none}.sszvis-axis .tick line.hidden{display:none}.sszvis-axis.sszvis-axis--top path{display:none}.sszvis-axis.sszvis-axis--vertical path{display:none}.sszvis-axis.sszvis-axis--slider path{stroke:none}.sszvis-axis__label-contour{fill:#ffffff;opacity:0.8;stroke:#ffffff;stroke-width:3}.sszvis-bar--missing{stroke:#a4a4a4}.sszvis-line{fill:none;stroke-width:1.1}.sszvis-pyramid__referenceline{fill:none;stroke:#aaa;stroke-width:2;stroke-dasharray:3 3}.sszvis-sankey-label{alignment-baseline:central;dominant-baseline:central;font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;font-family:var(--stzh-font);font-size:0.625rem;font-style:normal;font-weight:normal}.sszvis-sankey-strong-label{fill:#545454}.sszvis-sankey-weak-label{fill:#767676}.sszvis-sankey-column-label{text-anchor:middle}.sszvis-sankey-column-label-tick{stroke:#b8b8b8}.sszvis-sankey-link-source-label{text-anchor:start}.sszvis-sankey-link-target-label{text-anchor:end}.sszvis-map__area{stroke:none}.sszvis-map__border{fill:none;pointer-events:none;stroke-linejoin:round;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.sszvis-map__highlight{fill:none;pointer-events:none;stroke-linejoin:round;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.sszvis-map__lakezurich{pointer-events:none;stroke:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.sszvis-map__lakepath{fill:none;pointer-events:none;stroke:#d3d3d3;stroke-width:1.25;stroke-dasharray:3 3;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.sszvis-map__geojsonelement{pointer-events:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.sszvis-map__image{display:block;position:absolute;pointer-events:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.sszvis-map__rasterimage{display:block;position:absolute;pointer-events:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.sszvis-control-buttonGroup{display:inline-block;position:absolute;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.sszvis-control-buttonGroup__item{background-color:#ffffff;border:0.0625rem solid #767676;border-left:none;-webkit-box-sizing:border-box;box-sizing:border-box;color:#767676;cursor:pointer;display:table-cell;font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;font-family:var(--stzh-font);font-size:0.75rem;line-height:normal;padding:0.5625rem 0.75rem;text-align:center;vertical-align:middle}.sszvis-control-buttonGroup__item.selected{background-color:#767676;color:#ffffff}.sszvis-control-buttonGroup__item:first-child{border-left:0.0625rem solid #767676;border-top-left-radius:0.1875rem;border-bottom-left-radius:0.1875rem}.sszvis-control-buttonGroup__item:last-child{border-top-right-radius:0.1875rem;border-bottom-right-radius:0.1875rem}.sszvis-control-select{border:0.0625rem solid #767676;border-radius:0.1875rem;background-color:#ffffff;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAABQElEQVR4nO3TzW2DUBDEcZdACSnBpe1lVhzdCSXZnaQE55JJSOJgMO9rH/OTOK70/iNxOomIiIiIiMi3cRzfar8hlc0tAM4A3gFMeZ5UDoDps+W86sDMBgBXd7+7+z3yCACmWcfVzIbFg9/xkUeYx68a4b/4iCM8in86wlJ8pBGW4ucj/Dhy98uzowgjrImffZevQzMb3P0WeYSN8bc/v0HkEXbHU8QRksVTpBGSx1OEEbLFU8sjZI+nFkcoFk8tjVA8nloYoVo81RyhejzVGKGZeCo5QnPxVGKEZuMp5wjNx1OOEcLEU8oRwsVTihHCxtOeEcLH0ysjdBNPW0foKp4yjBAnnhKOEC+eEowQN552jBA/nl4YoZ942jBCf/G0YoR+42lhhP7j6cEIx4mn2QjHiyczGw4bLyIiIiIiUtMHjJmBk7uXEiAAAAAASUVORK5CYII=");background-position:96% 51%;background-repeat:no-repeat;background-size:0.75rem 0.75rem;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;height:2.125rem;overflow:hidden}.sszvis-control-select__element{background:transparent;border:0.0625rem solid #ffffff;color:#767676;font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;font-family:var(--stzh-font);font-size:1rem;height:2.125rem;outline:0}.sszvis-control-select__element:-moz-focusring{color:transparent;text-shadow:0 0 0 #000}.sszvis-control-select__metrics{font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;font-family:var(--stzh-font);font-size:0.75rem;height:auto;position:absolute;visibility:hidden;width:auto;white-space:nowrap}.sszvis-control-slider__handle{cursor:pointer}.sszvis-control-slider--label{fill:#545454;font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;font-family:var(--stzh-font);font-size:0.625rem;text-anchor:middle}.sszvis-control-slider__handlebox{fill:#fff;stroke:#545454}.sszvis-control-slider__handleline{stroke:#545454}.sszvis-handleRuler__handle{fill:#ffffff;stroke:#808184}.sszvis-handleRuler__handle-mark{stroke:#a6a8ab}.sszvis-ruler__rule{shape-rendering:crispEdges;stroke:#cccccc}.sszvis-ruler__dot{stroke:#ffffff;stroke-width:1.5}.sszvis-ruler__label,.sszvis-ruler__label-outline{font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;font-family:var(--stzh-font);font-size:0.75rem;font-style:normal;font-weight:normal}.sszvis-ruler__label{fill:#545454}.sszvis-ruler__label-outline{stroke:#ffffff;stroke-width:3}.sszvis-rangeFlag__mark{fill:#efefef;stroke:#7c7c7c;stroke-width:1.5}.sszvis-rangeRuler__rule{opacity:0.25;shape-rendering:crispEdges;stroke:#000000}.sszvis-rangeRuler__p1,.sszvis-rangeRuler__p2{fill:#000000;opacity:0.25}.sszvis-rangeRuler__label,.sszvis-rangeRuler__total{font-size:0.625rem;fill:#545454;font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;font-family:var(--stzh-font);font-style:normal}.sszvis-tooltip{min-width:3.75rem;position:absolute}.sszvis-tooltip__background{position:absolute}.sszvis-tooltip__background path{fill:rgba(255, 255, 255, 0.9)}.sszvis-tooltip__background.sszvis-tooltip__background--fallback path{stroke:#ddd;stroke-width:1}.sszvis-tooltip__content{font-family:Arial;padding:0.625rem 0.625rem 0.4375rem 0.625rem;position:relative;white-space:nowrap;z-index:1}.sszvis-tooltip__content strong{font-weight:bold}.sszvis-tooltip__content em{font-weight:bold}.sszvis-tooltip__header{color:#545454;font-size:0.75rem;line-height:1.3333;vertical-align:middle}.sszvis-tooltip__body{color:#7c7c7c;font-size:0.6875rem;line-height:1.4545;vertical-align:middle}.sszvis-tooltip--small .sszvis-tooltip__content{padding:0.375rem 0.625rem 0.25rem 0.625rem;text-align:center}.sszvis-tooltip__body__table,.sszvis-tooltip__body__table td{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:top}.sszvis-tooltip__body__table{border:none !important;border-collapse:collapse;border-spacing:0;min-width:7.5rem;margin-top:0.375rem;width:100%}.sszvis-tooltip__body__table tr{border-top:0.0625rem solid #e5e6e7}.sszvis-tooltip__body__table td{border:none !important;padding:0.4375rem 0.5em 0.4375rem 0 !important;text-align:left;vertical-align:top}.sszvis-tooltip__body__table tr:last-child td{padding-bottom:0.1875rem}.sszvis-tooltip__body__table td:last-child{color:#545454;font-weight:bold;padding-right:0;text-align:right}.sszvis-tooltipAnchor{pointer-events:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.sszvis-referenceline{stroke-width:1.5;stroke:#aaa;stroke-dasharray:3 3}.sszvis-referenceline__caption{fill:#7c7c7c;font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;font-family:var(--stzh-font);font-size:0.6875rem;text-anchor:middle;-webkit-backface-visibility:hidden}.sszvis-dataareacircle__caption{fill:#7c7c7c;font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;font-family:var(--stzh-font);font-size:0.6875rem;text-anchor:middle}.sszvis-dataarearectangle__caption{fill:#7c7c7c;font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;font-family:var(--stzh-font);font-size:0.6875rem;text-anchor:middle}.sszvis-legend__label{fill:#767676;font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;font-family:var(--stzh-font);font-size:0.75rem;font-style:normal;font-weight:normal;text-anchor:start}.sszvis-legend__label--small{fill:#767676;font-size:0.625rem}.sszvis-legend__axislabel{fill:#767676;font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;font-family:var(--stzh-font);font-size:0.625rem;font-style:normal;font-weight:normal}.sszvis-legend__crispmark{shape-rendering:crispEdges}.sszvis-legend__greyline{fill:none;stroke:#b8b8b8;stroke-width:1.1}.sszvis-legend__dashedline{stroke:#cccccc;stroke-dasharray:2 3;stroke-width:1}stzh-chart{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}stzh-chart[hidden]{display:none}stzh-chart *,stzh-chart *::before,stzh-chart *::after{-webkit-box-sizing:border-box;box-sizing:border-box}';export{Um as stzh_chart}