cognova 0.2.13 → 0.2.14

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 (386) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/-mGU8_Hv.js +1 -0
  3. package/.output/public/_nuxt/0GqCtQ9S.js +1 -0
  4. package/.output/public/_nuxt/{DFpmIy6J.js → 1wCoXZ14.js} +1 -1
  5. package/.output/public/_nuxt/2J1KxdHv.js +1 -0
  6. package/.output/public/_nuxt/6VDUZECX.js +1 -0
  7. package/.output/public/_nuxt/{C7m9zGMG.js → 8WMJQbWG.js} +1 -1
  8. package/.output/public/_nuxt/9Rw88G6h.js +1 -0
  9. package/.output/public/_nuxt/{BjsKx597.js → B-yW4SD3.js} +1 -1
  10. package/.output/public/_nuxt/B20jNAhm.js +1 -0
  11. package/.output/public/_nuxt/B3OpTH_e.js +1 -0
  12. package/.output/public/_nuxt/B9Y3_B5G.js +1 -0
  13. package/.output/public/_nuxt/B9_vmatf.js +1 -0
  14. package/.output/public/_nuxt/B9o6sFST.js +1 -0
  15. package/.output/public/_nuxt/{CseYuM6E.js → BAY3_Hrq.js} +1 -1
  16. package/.output/public/_nuxt/{B_9zJTqe.js → BD5rPkc2.js} +3 -3
  17. package/.output/public/_nuxt/BGYoW3kO.js +1 -0
  18. package/.output/public/_nuxt/BHUy5EAj.js +1 -0
  19. package/.output/public/_nuxt/BLdMRpJD.js +1 -0
  20. package/.output/public/_nuxt/{D6tVZcRs.js → BOCn_SGf.js} +12 -12
  21. package/.output/public/_nuxt/BQi8LIrn.js +1 -0
  22. package/.output/public/_nuxt/BS1t375R.js +1 -0
  23. package/.output/public/_nuxt/BTGeP1bA.js +1 -0
  24. package/.output/public/_nuxt/{pdYvpiud.js → BVYYP4eQ.js} +5 -5
  25. package/.output/public/_nuxt/BWQ7zE01.js +1 -0
  26. package/.output/public/_nuxt/BWqJInD3.js +1 -0
  27. package/.output/public/_nuxt/BXdQ9ASJ.js +1 -0
  28. package/.output/public/_nuxt/{DQhm-UPG.js → BXxZokD_.js} +2 -2
  29. package/.output/public/_nuxt/BZ7DAtPi.js +1 -0
  30. package/.output/public/_nuxt/BZm9w7en.js +1 -0
  31. package/.output/public/_nuxt/B_hNqC64.js +1 -0
  32. package/.output/public/_nuxt/Be47YE2L.js +1 -0
  33. package/.output/public/_nuxt/BgIS9_ti.js +39 -0
  34. package/.output/public/_nuxt/BgavRUl_.js +1 -0
  35. package/.output/public/_nuxt/Bh0yGTzr.js +1 -0
  36. package/.output/public/_nuxt/BhhMUror.js +1 -0
  37. package/.output/public/_nuxt/Bj5e7QPz.js +1 -0
  38. package/.output/public/_nuxt/{9kAKMaPC.js → Bnn59-FS.js} +1 -1
  39. package/.output/public/_nuxt/BoCU3mWu.js +1 -0
  40. package/.output/public/_nuxt/Br6epbzY.js +1 -0
  41. package/.output/public/_nuxt/Br81Sr2R.js +1 -0
  42. package/.output/public/_nuxt/BrkEOLHu.js +9 -0
  43. package/.output/public/_nuxt/BtrNCc2S.js +1 -0
  44. package/.output/public/_nuxt/BxsQlbgl.js +1 -0
  45. package/.output/public/_nuxt/BzrhNhdT.js +1 -0
  46. package/.output/public/_nuxt/{B-DMcEU9.js → C-78dDNd.js} +1 -1
  47. package/.output/public/_nuxt/C1oaoi1p.js +1 -0
  48. package/.output/public/_nuxt/C2-_hcwB.js +1 -0
  49. package/.output/public/_nuxt/{TxMdabnL.js → C2Gh3qqr.js} +1 -1
  50. package/.output/public/_nuxt/C2OHaW6l.js +1 -0
  51. package/.output/public/_nuxt/C3szZmvA.js +1 -0
  52. package/.output/public/_nuxt/C3xzleKP.js +1 -0
  53. package/.output/public/_nuxt/C4sG6rdW.js +1 -0
  54. package/.output/public/_nuxt/C5Cu9Fx6.js +1 -0
  55. package/.output/public/_nuxt/{LRO7YHoH.js → C5gfF7J1.js} +1 -1
  56. package/.output/public/_nuxt/C6Eoiclo.js +1 -0
  57. package/.output/public/_nuxt/C7hFztZL.js +1 -0
  58. package/.output/public/_nuxt/CAVUAxNU.js +2 -0
  59. package/.output/public/_nuxt/{CiNxIhaq.js → CCeM5lW2.js} +1 -1
  60. package/.output/public/_nuxt/CDcQ31Eh.js +1 -0
  61. package/.output/public/_nuxt/CHbHVtCy.js +1 -0
  62. package/.output/public/_nuxt/CHnVFnBW.js +1 -0
  63. package/.output/public/_nuxt/CLNcmNQS.js +1 -0
  64. package/.output/public/_nuxt/{D7N3EZ-I.js → CPwCTHun.js} +1 -1
  65. package/.output/public/_nuxt/{CFmvNggn.js → CS8SdmH2.js} +1 -1
  66. package/.output/public/_nuxt/CTGm_mc8.js +1 -0
  67. package/.output/public/_nuxt/{DNcOC5zj.js → CTQFGHjS.js} +1 -1
  68. package/.output/public/_nuxt/{B0nzD8Sk.js → CVVtVzXC.js} +1 -1
  69. package/.output/public/_nuxt/CZNOaqeX.js +1 -0
  70. package/.output/public/_nuxt/C_A_NkeC.js +2 -0
  71. package/.output/public/_nuxt/{CGplHfmR.js → C_doutX-.js} +1 -1
  72. package/.output/public/_nuxt/{BrX-PnSK.js → CbDLhrNA.js} +2 -2
  73. package/.output/public/_nuxt/CePKCqSb.js +1 -0
  74. package/.output/public/_nuxt/Cet4T_yO.js +1 -0
  75. package/.output/public/_nuxt/{C6OSRpRd.js → CjJPkhbc.js} +1 -1
  76. package/.output/public/_nuxt/CkZT4LGq.js +1 -0
  77. package/.output/public/_nuxt/CkrW8sGL.js +1 -0
  78. package/.output/public/_nuxt/Co0UxVsx.js +1 -0
  79. package/.output/public/_nuxt/CqS0zXYQ.js +1 -0
  80. package/.output/public/_nuxt/CskGv_Km.js +1 -0
  81. package/.output/public/_nuxt/{DuzpliIL.js → CuvkTsqs.js} +1 -1
  82. package/.output/public/_nuxt/{B2wI_pYg.js → CxMuZEwX.js} +1 -1
  83. package/.output/public/_nuxt/{9O1MXkck.js → CxSijT71.js} +8 -8
  84. package/.output/public/_nuxt/Cywo6tZI.js +1 -0
  85. package/.output/public/_nuxt/D1reIfpX.js +1 -0
  86. package/.output/public/_nuxt/D1uV2uir.js +1 -0
  87. package/.output/public/_nuxt/{BWuL2CzO.js → D2edadpd.js} +1 -1
  88. package/.output/public/_nuxt/D3cEeQh7.js +1 -0
  89. package/.output/public/_nuxt/D41A2mE2.js +1 -0
  90. package/.output/public/_nuxt/D49P2RhG.js +1 -0
  91. package/.output/public/_nuxt/D867g6Ds.js +1 -0
  92. package/.output/public/_nuxt/DEFWIjWl.js +1 -0
  93. package/.output/public/_nuxt/DFTEBTzZ.js +1 -0
  94. package/.output/public/_nuxt/{-HePz7lp.js → DHRexj9X.js} +2 -2
  95. package/.output/public/_nuxt/DL4EpgqQ.js +1 -0
  96. package/.output/public/_nuxt/DLHnP6tw.js +1 -0
  97. package/.output/public/_nuxt/DM20WaLq.js +1 -0
  98. package/.output/public/_nuxt/{B8DFEjxA.js → DNAMjHbb.js} +1 -1
  99. package/.output/public/_nuxt/{CLkkdThv.js → DP8t9VWs.js} +24 -24
  100. package/.output/public/_nuxt/DTR31rjp.js +1 -0
  101. package/.output/public/_nuxt/{Bc8bTnkd.js → DTlSLSo1.js} +3 -3
  102. package/.output/public/_nuxt/{DowkFZ2V.js → DVdnhfXT.js} +1 -1
  103. package/.output/public/_nuxt/{DvHS7_h2.js → DZikIgHK.js} +1 -1
  104. package/.output/public/_nuxt/D_YGqvw_.js +1 -0
  105. package/.output/public/_nuxt/D_k1YwXm.js +1 -0
  106. package/.output/public/_nuxt/Daf2MbWG.js +7 -0
  107. package/.output/public/_nuxt/DcJ0GstJ.js +1 -0
  108. package/.output/public/_nuxt/DcYKh6QA.js +1 -0
  109. package/.output/public/_nuxt/DhN3_DYH.js +1 -0
  110. package/.output/public/_nuxt/DhSvBSt3.js +1 -0
  111. package/.output/public/_nuxt/DhlIWT8K.js +1 -0
  112. package/.output/public/_nuxt/DjsqyRqt.js +1 -0
  113. package/.output/public/_nuxt/DpSM97eH.js +1 -0
  114. package/.output/public/_nuxt/DqR9SdeU.js +1 -0
  115. package/.output/public/_nuxt/DqmQtg6Y.js +1 -0
  116. package/.output/public/_nuxt/Dsuag_iW.js +1 -0
  117. package/.output/public/_nuxt/Dtr_0IbE.js +1 -0
  118. package/.output/public/_nuxt/DwrmFEZN.js +1 -0
  119. package/.output/public/_nuxt/DxE8r3r4.js +1 -0
  120. package/.output/public/_nuxt/G_CsVlOR.js +1 -0
  121. package/.output/public/_nuxt/Gyw_2f6x.js +1 -0
  122. package/.output/public/_nuxt/HStC1ZyE.js +1 -0
  123. package/.output/public/_nuxt/Hh9mv0Ek.js +1 -0
  124. package/.output/public/_nuxt/LR0kCjbe.js +1 -0
  125. package/.output/public/_nuxt/MYeLvJGV.js +1 -0
  126. package/.output/public/_nuxt/NKs0EGrh.js +1 -0
  127. package/.output/public/_nuxt/PY5EGujn.js +1 -0
  128. package/.output/public/_nuxt/PamJNol9.js +1 -0
  129. package/.output/public/_nuxt/RlvwEbHv.js +1 -0
  130. package/.output/public/_nuxt/{BghuwIGa.js → TNpdJOlc.js} +1 -1
  131. package/.output/public/_nuxt/TSYrPbLR.js +1 -0
  132. package/.output/public/_nuxt/U-eBrbR4.js +1 -0
  133. package/.output/public/_nuxt/UuqXScSw.js +1 -0
  134. package/.output/public/_nuxt/V04-MrLN.js +1 -0
  135. package/.output/public/_nuxt/X0o5GcBb.js +1 -0
  136. package/.output/public/_nuxt/XQNzmQy9.js +1 -0
  137. package/.output/public/_nuxt/Y59XKprr.js +1 -0
  138. package/.output/public/_nuxt/YZQjZgsH.js +1 -0
  139. package/.output/public/_nuxt/_-TGPiLQ.js +1 -0
  140. package/.output/public/_nuxt/builds/latest.json +1 -1
  141. package/.output/public/_nuxt/builds/meta/d7188f50-b42c-4d2c-afab-066d318f0af8.json +1 -0
  142. package/.output/public/_nuxt/dashboard.ByJQ-Wzh.css +1 -0
  143. package/.output/public/_nuxt/entry.ZJxWCrU6.css +1 -0
  144. package/.output/public/_nuxt/{D12qPplu.js → hCeWb_38.js} +1 -1
  145. package/.output/public/_nuxt/{sBzyvWMJ.js → hrPTRWjM.js} +1 -1
  146. package/.output/public/_nuxt/jC4pIK1p.js +1 -0
  147. package/.output/public/_nuxt/jTT1R-Vz.js +1 -0
  148. package/.output/public/_nuxt/{CRRw0Thu.js → kkAMoB43.js} +1 -1
  149. package/.output/public/_nuxt/{h_bXa-f2.js → mzM4BGtv.js} +1 -1
  150. package/.output/public/_nuxt/o-s8JBm2.js +1 -0
  151. package/.output/public/_nuxt/pwJTkIQ4.js +1 -0
  152. package/.output/public/_nuxt/{BL1mkqgd.js → rIgg2Arf.js} +3 -3
  153. package/.output/public/_nuxt/subdxgSQ.js +1 -0
  154. package/.output/public/_nuxt/t8B72leH.js +1 -0
  155. package/.output/public/_nuxt/vCFAHwdt.js +1 -0
  156. package/.output/public/_nuxt/z-MP0bB7.js +1 -0
  157. package/.output/server/chunks/build/CodeIcon-CWD5HcV7.mjs +1 -1
  158. package/.output/server/chunks/build/DropdownMenu-BBrV9nXz.mjs +1 -1
  159. package/.output/server/chunks/build/{EditorToolbar-DIfb5arC.mjs → EditorToolbar-B9OwSI5e.mjs} +3 -3
  160. package/.output/server/chunks/build/{EditorToolbar-DIfb5arC.mjs.map → EditorToolbar-B9OwSI5e.mjs.map} +1 -1
  161. package/.output/server/chunks/build/Img-CWLmvN1t.mjs +1 -1
  162. package/.output/server/chunks/build/MDC-Dx0YPDhe.mjs +1 -1
  163. package/.output/server/chunks/build/Select-BB1oLrCD.mjs +1 -1
  164. package/.output/server/chunks/build/SelectMenu-DPssg6zD.mjs +1 -1
  165. package/.output/server/chunks/build/Table-DCwTlhCj.mjs +1 -1
  166. package/.output/server/chunks/build/Tooltip-TRyl6dje.mjs +1 -1
  167. package/.output/server/chunks/build/Tree-DUhXKd8y.mjs +1 -1
  168. package/.output/server/chunks/build/{_id_-DN00UDdO.mjs → _id_-CwBeklIM.mjs} +296 -430
  169. package/.output/server/chunks/build/_id_-CwBeklIM.mjs.map +1 -0
  170. package/.output/server/chunks/build/{_name_-BnS_KEfX.mjs → _name_-D7MtW4Vu.mjs} +2 -2
  171. package/.output/server/chunks/build/{_name_-BnS_KEfX.mjs.map → _name_-D7MtW4Vu.mjs.map} +1 -1
  172. package/.output/server/chunks/build/{_uuid_-DfJaumTE.mjs → _uuid_-lvG92ein.mjs} +4 -4
  173. package/.output/server/chunks/build/{_uuid_-DfJaumTE.mjs.map → _uuid_-lvG92ein.mjs.map} +1 -1
  174. package/.output/server/chunks/build/account-LDZ4TL6x.mjs +513 -0
  175. package/.output/server/chunks/build/account-LDZ4TL6x.mjs.map +1 -0
  176. package/.output/server/chunks/build/app-CGhRZPNT.mjs +252 -0
  177. package/.output/server/chunks/build/app-CGhRZPNT.mjs.map +1 -0
  178. package/.output/server/chunks/build/{chat-m4-n9vC6.mjs → chat-BphuYhvA.mjs} +18 -27
  179. package/.output/server/chunks/build/chat-BphuYhvA.mjs.map +1 -0
  180. package/.output/server/chunks/build/client.precomputed.mjs +1 -1
  181. package/.output/server/chunks/build/cookie-C_iulBi6.mjs +1 -1
  182. package/.output/server/chunks/build/{dashboard-CiVTAZuF.mjs → dashboard-nDujDyOg.mjs} +55 -16
  183. package/.output/server/chunks/build/{dashboard-CiVTAZuF.mjs.map → dashboard-nDujDyOg.mjs.map} +1 -1
  184. package/.output/server/chunks/build/{docs-ChGwOPg5.mjs → docs-Bwucwp0r.mjs} +664 -592
  185. package/.output/server/chunks/build/docs-Bwucwp0r.mjs.map +1 -0
  186. package/.output/server/chunks/build/fetch-BB7Qzkwe.mjs +1 -1
  187. package/.output/server/chunks/build/{hooks-D328DcO6.mjs → hooks-D6PmTth8.mjs} +19 -29
  188. package/.output/server/chunks/build/hooks-D6PmTth8.mjs.map +1 -0
  189. package/.output/server/chunks/build/{index-CAnGTRlu.mjs → index-CJkn2jiM.mjs} +2 -2
  190. package/.output/server/chunks/build/{index-CAnGTRlu.mjs.map → index-CJkn2jiM.mjs.map} +1 -1
  191. package/.output/server/chunks/build/index-CxDxc9fm.mjs +1 -1
  192. package/.output/server/chunks/build/index-Cz9Y6NwN.mjs +723 -0
  193. package/.output/server/chunks/build/index-Cz9Y6NwN.mjs.map +1 -0
  194. package/.output/server/chunks/build/index-hwhuKhuZ.mjs +76 -0
  195. package/.output/server/chunks/build/index-hwhuKhuZ.mjs.map +1 -0
  196. package/.output/server/chunks/build/integrations-D5JWURiJ.mjs +1499 -0
  197. package/.output/server/chunks/build/integrations-D5JWURiJ.mjs.map +1 -0
  198. package/.output/server/chunks/build/{library-Aeg7_Lsb.mjs → library-DxRdgP6X.mjs} +2 -2
  199. package/.output/server/chunks/build/{library-Aeg7_Lsb.mjs.map → library-DxRdgP6X.mjs.map} +1 -1
  200. package/.output/server/chunks/build/{login-DnnElTl2.mjs → login-BmER_VoU.mjs} +2 -2
  201. package/.output/server/chunks/build/{login-DnnElTl2.mjs.map → login-BmER_VoU.mjs.map} +1 -1
  202. package/.output/server/chunks/build/manage-secrets-BWzqc_-f.mjs +669 -0
  203. package/.output/server/chunks/build/manage-secrets-BWzqc_-f.mjs.map +1 -0
  204. package/.output/server/chunks/build/server.mjs +65 -34
  205. package/.output/server/chunks/build/server.mjs.map +1 -1
  206. package/.output/server/chunks/build/settings-neokAVE5.mjs +154 -0
  207. package/.output/server/chunks/build/settings-neokAVE5.mjs.map +1 -0
  208. package/.output/server/chunks/build/styles.mjs +2 -2
  209. package/.output/server/chunks/build/{tasks-DnAFqbtt.mjs → tasks-CnpIQNpS.mjs} +27 -37
  210. package/.output/server/chunks/build/tasks-CnpIQNpS.mjs.map +1 -0
  211. package/.output/server/chunks/build/{useAgents-DHEXiFSc.mjs → useAgents-nmbkB9-_.mjs} +5 -26
  212. package/.output/server/chunks/build/useAgents-nmbkB9-_.mjs.map +1 -0
  213. package/.output/server/chunks/build/{view-n2sYa4Zh.mjs → view-mb0ISqfM.mjs} +3 -3
  214. package/.output/server/chunks/build/{view-n2sYa4Zh.mjs.map → view-mb0ISqfM.mjs.map} +1 -1
  215. package/.output/server/chunks/nitro/nitro.mjs +1000 -858
  216. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  217. package/.output/server/chunks/routes/api/index.get.mjs +17 -2
  218. package/.output/server/chunks/routes/api/index.get.mjs.map +1 -1
  219. package/.output/server/chunks/routes/api/index.get3.mjs +21 -3
  220. package/.output/server/chunks/routes/api/index.get3.mjs.map +1 -1
  221. package/.output/server/chunks/routes/api/index.get4.mjs +10 -9
  222. package/.output/server/chunks/routes/api/index.get4.mjs.map +1 -1
  223. package/.output/server/chunks/routes/api/index.get9.mjs +10 -8
  224. package/.output/server/chunks/routes/api/index.get9.mjs.map +1 -1
  225. package/.output/server/chunks/routes/api/memory/search.get.mjs +10 -5
  226. package/.output/server/chunks/routes/api/memory/search.get.mjs.map +1 -1
  227. package/.output/server/chunks/routes/renderer.mjs +1 -1
  228. package/.output/server/index.mjs +1 -1
  229. package/.output/server/package.json +1 -1
  230. package/app/components/AssistantPanel.client.vue +16 -314
  231. package/app/components/agents/AgentCard.vue +111 -0
  232. package/app/components/agents/AgentInfoCard.vue +54 -0
  233. package/app/components/agents/AgentRunHistory.vue +103 -0
  234. package/app/components/agents/AgentRunModal.vue +1 -24
  235. package/app/components/agents/AgentStatsCards.vue +1 -26
  236. package/app/components/assistant/AssistantChat.vue +156 -0
  237. package/app/components/assistant/AssistantTerminal.client.vue +178 -0
  238. package/app/components/chat/ConversationList.vue +2 -12
  239. package/app/components/files/FileTree.vue +23 -202
  240. package/app/components/files/FileTreeModals.vue +226 -0
  241. package/app/components/hooks/HookStatsCards.vue +1 -6
  242. package/app/components/hooks/ToolBreakdownTable.vue +1 -6
  243. package/app/components/search/DashboardSearch.vue +38 -1
  244. package/app/components/tasks/TaskCard.vue +2 -7
  245. package/app/components/tasks/TaskDetail.vue +4 -9
  246. package/app/composables/useSearch.ts +21 -11
  247. package/app/layouts/dashboard.vue +1 -1
  248. package/app/pages/agents/[id].vue +6 -197
  249. package/app/pages/agents/index.vue +9 -142
  250. package/app/pages/settings/account.vue +243 -0
  251. package/app/pages/settings/app.vue +230 -0
  252. package/app/pages/settings/index.vue +12 -0
  253. package/app/pages/settings/integrations.vue +794 -0
  254. package/app/pages/settings/manage-secrets.vue +295 -0
  255. package/app/pages/settings.vue +20 -1581
  256. package/dist/cli/index.js +26 -2
  257. package/package.json +1 -1
  258. package/server/api/agents/index.get.ts +20 -1
  259. package/server/api/conversations/index.get.ts +23 -5
  260. package/server/api/documents/index.get.ts +11 -9
  261. package/server/api/memory/search.get.ts +11 -6
  262. package/server/api/tasks/index.get.ts +11 -9
  263. package/server/drizzle/migrations/0016_full_text_search.sql +127 -0
  264. package/server/drizzle/migrations/meta/_journal.json +7 -0
  265. package/shared/types/index.ts +7 -1
  266. package/shared/utils/formatting.ts +105 -0
  267. package/.output/public/_nuxt/4ALIM-zZ.js +0 -1
  268. package/.output/public/_nuxt/5sUbkh_6.js +0 -16
  269. package/.output/public/_nuxt/6bB8Ev7a.js +0 -1
  270. package/.output/public/_nuxt/7rT1DCe2.js +0 -1
  271. package/.output/public/_nuxt/B2PqR2Vu.js +0 -1
  272. package/.output/public/_nuxt/B5FuOh7E.js +0 -1
  273. package/.output/public/_nuxt/B6om4MW2.js +0 -1
  274. package/.output/public/_nuxt/B7ikW4eF.js +0 -1
  275. package/.output/public/_nuxt/B9kWNcU7.js +0 -1
  276. package/.output/public/_nuxt/BAZ8sewA.js +0 -1
  277. package/.output/public/_nuxt/BCPwL4ma.js +0 -1
  278. package/.output/public/_nuxt/BCrlmHh_.js +0 -1
  279. package/.output/public/_nuxt/BD-AFJWW.js +0 -1
  280. package/.output/public/_nuxt/BGcQMReV.js +0 -1
  281. package/.output/public/_nuxt/BNJJSRKh.js +0 -1
  282. package/.output/public/_nuxt/BNeeERBt.js +0 -1
  283. package/.output/public/_nuxt/BSJb5amZ.js +0 -1
  284. package/.output/public/_nuxt/BSsaE9Db.js +0 -1
  285. package/.output/public/_nuxt/BVO3XpHT.js +0 -1
  286. package/.output/public/_nuxt/B_Lr1vlV.js +0 -1
  287. package/.output/public/_nuxt/Bl0qBhCG.js +0 -1
  288. package/.output/public/_nuxt/Bl43dkDq.js +0 -1
  289. package/.output/public/_nuxt/BnMTFF5R.js +0 -1
  290. package/.output/public/_nuxt/BtV7oNn3.js +0 -1
  291. package/.output/public/_nuxt/BvFYnRMR.js +0 -1
  292. package/.output/public/_nuxt/BvTUBUNN.js +0 -1
  293. package/.output/public/_nuxt/ByLsRRoQ.js +0 -1
  294. package/.output/public/_nuxt/C1LcEMwB.js +0 -1
  295. package/.output/public/_nuxt/C2IiXp9N.js +0 -2
  296. package/.output/public/_nuxt/C796kFT9.js +0 -1
  297. package/.output/public/_nuxt/C8AtdrMH.js +0 -1
  298. package/.output/public/_nuxt/CAWbHTgy.js +0 -1
  299. package/.output/public/_nuxt/CJPrV25_.js +0 -1
  300. package/.output/public/_nuxt/CKKEWapF.js +0 -1
  301. package/.output/public/_nuxt/CNjv28J2.js +0 -1
  302. package/.output/public/_nuxt/CT8s4rqa.js +0 -1
  303. package/.output/public/_nuxt/CZSOrxUy.js +0 -1
  304. package/.output/public/_nuxt/CaNEL9JC.js +0 -39
  305. package/.output/public/_nuxt/CbTLg9oX.js +0 -1
  306. package/.output/public/_nuxt/CfCXpVn5.js +0 -1
  307. package/.output/public/_nuxt/ChmNlvWR.js +0 -1
  308. package/.output/public/_nuxt/Ck0QYdxe.js +0 -1
  309. package/.output/public/_nuxt/Ckb0pu4-.js +0 -1
  310. package/.output/public/_nuxt/CkwPRs1D.js +0 -1
  311. package/.output/public/_nuxt/CmEJg8C6.js +0 -2
  312. package/.output/public/_nuxt/CmL_vMJD.js +0 -1
  313. package/.output/public/_nuxt/Cq8zPxkT.js +0 -1
  314. package/.output/public/_nuxt/CxRnB4NC.js +0 -1
  315. package/.output/public/_nuxt/D0zMyG8n.js +0 -1
  316. package/.output/public/_nuxt/D1XYB283.js +0 -1
  317. package/.output/public/_nuxt/D2NxqyzW.js +0 -1
  318. package/.output/public/_nuxt/D5xyrvFu.js +0 -1
  319. package/.output/public/_nuxt/D8iBB0Py.js +0 -1
  320. package/.output/public/_nuxt/D8oIH8m1.js +0 -1
  321. package/.output/public/_nuxt/DB2zZev7.js +0 -1
  322. package/.output/public/_nuxt/DBrOAqkm.js +0 -1
  323. package/.output/public/_nuxt/DDXDFweK.js +0 -1
  324. package/.output/public/_nuxt/DFZkCmLQ.js +0 -1
  325. package/.output/public/_nuxt/DKZmgHNU.js +0 -1
  326. package/.output/public/_nuxt/DR8tGJhL.js +0 -1
  327. package/.output/public/_nuxt/DVAEVTjy.js +0 -1
  328. package/.output/public/_nuxt/DVqrPkCJ.js +0 -1
  329. package/.output/public/_nuxt/DWZ9ieYa.js +0 -1
  330. package/.output/public/_nuxt/DWj6VsZv.js +0 -1
  331. package/.output/public/_nuxt/DXJ9PxCv.js +0 -1
  332. package/.output/public/_nuxt/D_ziPROx.js +0 -1
  333. package/.output/public/_nuxt/Da2vwoYG.js +0 -1
  334. package/.output/public/_nuxt/Ddz3HcBB.js +0 -1
  335. package/.output/public/_nuxt/DgYei0bK.js +0 -1
  336. package/.output/public/_nuxt/Di_3GV_R.js +0 -1
  337. package/.output/public/_nuxt/Djog1f_e.js +0 -1
  338. package/.output/public/_nuxt/Dkap2-Pj.js +0 -7
  339. package/.output/public/_nuxt/DlJe_sHk.js +0 -1
  340. package/.output/public/_nuxt/DlPOQpH_.js +0 -1
  341. package/.output/public/_nuxt/DmYWMtVA.js +0 -1
  342. package/.output/public/_nuxt/DmxKU7sH.js +0 -1
  343. package/.output/public/_nuxt/DsodHRrQ.js +0 -1
  344. package/.output/public/_nuxt/DwSY6_2U.js +0 -1
  345. package/.output/public/_nuxt/DypJaSm-.js +0 -1
  346. package/.output/public/_nuxt/DzKaXH6P.js +0 -1
  347. package/.output/public/_nuxt/FK-jSuOT.js +0 -1
  348. package/.output/public/_nuxt/Fc2JsQt4.js +0 -1
  349. package/.output/public/_nuxt/IYCBGuRS.js +0 -1
  350. package/.output/public/_nuxt/NrRzUJNY.js +0 -1
  351. package/.output/public/_nuxt/OeVS0Rsb.js +0 -1
  352. package/.output/public/_nuxt/OlF0QnKF.js +0 -1
  353. package/.output/public/_nuxt/QuAoqY7t.js +0 -1
  354. package/.output/public/_nuxt/RlXHkmOd.js +0 -9
  355. package/.output/public/_nuxt/WZnvL9Dh.js +0 -1
  356. package/.output/public/_nuxt/ZvG7a1W3.js +0 -1
  357. package/.output/public/_nuxt/aPNZBVrG.js +0 -1
  358. package/.output/public/_nuxt/builds/meta/495aca73-bfa5-456e-b96a-f02e009c72d3.json +0 -1
  359. package/.output/public/_nuxt/dashboard.BxCOkJwt.css +0 -1
  360. package/.output/public/_nuxt/entry.C_udkZt9.css +0 -1
  361. package/.output/public/_nuxt/evY81hM3.js +0 -1
  362. package/.output/public/_nuxt/i6QBzaEi.js +0 -1
  363. package/.output/public/_nuxt/iTVKJ1kw.js +0 -1
  364. package/.output/public/_nuxt/j92uR3uR.js +0 -1
  365. package/.output/public/_nuxt/jdUkeAj_.js +0 -1
  366. package/.output/public/_nuxt/jeRvcMHU.js +0 -1
  367. package/.output/public/_nuxt/kuv0zpKq.js +0 -1
  368. package/.output/public/_nuxt/l3lKQs7b.js +0 -1
  369. package/.output/public/_nuxt/qIgZ7OXa.js +0 -1
  370. package/.output/public/_nuxt/qcVwZv8e.js +0 -1
  371. package/.output/public/_nuxt/ru8fqqWs.js +0 -1
  372. package/.output/public/_nuxt/sgmhgpCS.js +0 -1
  373. package/.output/public/_nuxt/y2jv0da-.js +0 -1
  374. package/.output/public/_nuxt/yyS4-kAX.js +0 -1
  375. package/.output/public/_nuxt/zIoBLBHF.js +0 -1
  376. package/.output/public/_nuxt/zpazwPgx.js +0 -1
  377. package/.output/server/chunks/build/_id_-DN00UDdO.mjs.map +0 -1
  378. package/.output/server/chunks/build/chat-m4-n9vC6.mjs.map +0 -1
  379. package/.output/server/chunks/build/docs-ChGwOPg5.mjs.map +0 -1
  380. package/.output/server/chunks/build/hooks-D328DcO6.mjs.map +0 -1
  381. package/.output/server/chunks/build/index-C9PuieXh.mjs +0 -820
  382. package/.output/server/chunks/build/index-C9PuieXh.mjs.map +0 -1
  383. package/.output/server/chunks/build/settings-B2KXoGcz.mjs +0 -3232
  384. package/.output/server/chunks/build/settings-B2KXoGcz.mjs.map +0 -1
  385. package/.output/server/chunks/build/tasks-DnAFqbtt.mjs.map +0 -1
  386. package/.output/server/chunks/build/useAgents-DHEXiFSc.mjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import{P as rc,c as Oe,am as Ei,K as te,cg as ic,S as oc,T as He,U as ac,a4 as oa,W as sc,C as cc,a3 as uc,h as lc,ch as Di,a as Un,aP as fc,e as $e,ah as hc,G as Vn,f as oe,y as dc,q as Xn,D as ur,a2 as qn,aI as Vr,k as Xr}from"./D6tVZcRs.js";import{a as Gn,t as pt,c as ae,n as gc,g as Oi,d as mc,f as aa,e as pc}from"./C8ut0f5H.js";import{g as vc}from"./CqkleIqs.js";const yc={base:"relative",variants:{size:{xs:"",sm:"",md:"",lg:"",xl:""},orientation:{horizontal:"inline-flex -space-x-px",vertical:"flex flex-col -space-y-px"}}},Bm={__name:"UFieldGroup",props:{as:{type:null,required:!1},size:{type:null,required:!1},orientation:{type:null,required:!1,default:"horizontal"},class:{type:null,required:!1},ui:{type:null,required:!1}},setup(t){const e=t,n=rc(),r=Oe(()=>Ei({extend:Ei(yc),...n.ui?.fieldGroup||{}}));return te(ic,Oe(()=>({orientation:e.orientation,size:e.size}))),(i,o)=>(He(),oc(cc(uc),{as:t.as,"data-orientation":t.orientation,class:sc(r.value({orientation:t.orientation,class:e.class}))},{default:ac(()=>[oa(i.$slots,"default")]),_:3},8,["as","data-orientation","class"]))}};function Ne(t,e){const n=Gn(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=pt(t,e?.in),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function _n(t,e){return Ne(t,{...e,weekStartsOn:1})}function sa(t,e){const n=pt(t,e?.in),r=n.getFullYear(),i=ae(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=_n(i),a=ae(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=_n(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function $i(t,e){const n=pt(t,e?.in);return n.setHours(0,0,0,0),n}function xc(t,e,n){const[r,i]=gc(n?.in,t,e),o=$i(r),a=$i(i),s=+o-Oi(o),c=+a-Oi(a);return Math.round((s-c)/mc)}function wc(t,e){const n=sa(t,e),r=ae(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),_n(r)}function _c(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function bc(t){return!(!_c(t)&&typeof t!="number"||isNaN(+pt(t)))}function kc(t,e){const n=pt(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Tc(t,e){const n=pt(t,e?.in);return xc(n,kc(n))+1}function Sc(t,e){const n=pt(t,e?.in),r=+_n(n)-+wc(n);return Math.round(r/aa)+1}function ca(t,e){const n=pt(t,e?.in),r=n.getFullYear(),i=Gn(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=ae(e?.in||t,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=Ne(a,e),c=ae(e?.in||t,0);c.setFullYear(r,0,o),c.setHours(0,0,0,0);const u=Ne(c,e);return+n>=+s?r+1:+n>=+u?r:r-1}function Cc(t,e){const n=Gn(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=ca(t,e),o=ae(e?.in||t,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Ne(o,e)}function Mc(t,e){const n=pt(t,e?.in),r=+Ne(n,e)-+Cc(n,e);return Math.round(r/aa)+1}function P(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const At={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return P(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):P(n+1,2)},d(t,e){return P(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(t,e){return P(t.getHours()%12||12,e.length)},H(t,e){return P(t.getHours(),e.length)},m(t,e){return P(t.getMinutes(),e.length)},s(t,e){return P(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return P(i,e.length)}},jt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ni={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return At.y(t,e)},Y:function(t,e,n,r){const i=ca(t,r),o=i>0?i:1-i;if(e==="YY"){const a=o%100;return P(a,2)}return e==="Yo"?n.ordinalNumber(o,{unit:"year"}):P(o,e.length)},R:function(t,e){const n=sa(t);return P(n,e.length)},u:function(t,e){const n=t.getFullYear();return P(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return P(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return P(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return At.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return P(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const i=Mc(t,r);return e==="wo"?n.ordinalNumber(i,{unit:"week"}):P(i,e.length)},I:function(t,e,n){const r=Sc(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):P(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):At.d(t,e)},D:function(t,e,n){const r=Tc(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):P(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const i=t.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return P(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const i=t.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return P(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),i=r===0?7:r;switch(e){case"i":return String(i);case"ii":return P(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let i;switch(r===12?i=jt.noon:r===0?i=jt.midnight:i=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let i;switch(r>=17?i=jt.evening:r>=12?i=jt.afternoon:r>=4?i=jt.morning:i=jt.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return At.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):At.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):P(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):P(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):At.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):At.s(t,e)},S:function(t,e){return At.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return Fi(r);case"XXXX":case"XX":return Ft(r);default:return Ft(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return Fi(r);case"xxxx":case"xx":return Ft(r);default:return Ft(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Ri(r,":");default:return"GMT"+Ft(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Ri(r,":");default:return"GMT"+Ft(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return P(r,e.length)},T:function(t,e,n){return P(+t,e.length)}};function Ri(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+e+P(o,2)}function Fi(t,e){return t%60===0?(t>0?"-":"+")+P(Math.abs(t)/60,2):Ft(t,e)}function Ft(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=P(Math.trunc(r/60),2),o=P(r%60,2);return n+i+e+o}const Pi=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},ua=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},Ac=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Pi(t,e);let o;switch(r){case"P":o=e.dateTime({width:"short"});break;case"PP":o=e.dateTime({width:"medium"});break;case"PPP":o=e.dateTime({width:"long"});break;default:o=e.dateTime({width:"full"});break}return o.replace("{{date}}",Pi(r,e)).replace("{{time}}",ua(i,e))},Ec={p:ua,P:Ac},Dc=/^D+$/,Oc=/^Y+$/,$c=["D","DD","YY","YYYY"];function Nc(t){return Dc.test(t)}function Rc(t){return Oc.test(t)}function Fc(t,e,n){const r=Pc(t,e,n);if(console.warn(r),$c.includes(t))throw new RangeError(r)}function Pc(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Ic=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Lc=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Bc=/^'([^]*?)'?$/,zc=/''/g,Wc=/[a-zA-Z]/;function zm(t,e,n){const r=Gn(),i=r.locale??pc,o=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=pt(t,n?.in);if(!bc(s))throw new RangeError("Invalid time value");let c=e.match(Lc).map(l=>{const f=l[0];if(f==="p"||f==="P"){const h=Ec[f];return h(l,i.formatLong)}return l}).join("").match(Ic).map(l=>{if(l==="''")return{isToken:!1,value:"'"};const f=l[0];if(f==="'")return{isToken:!1,value:Hc(l)};if(Ni[f])return{isToken:!0,value:l};if(f.match(Wc))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:l}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));const u={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return c.map(l=>{if(!l.isToken)return l.value;const f=l.value;(Rc(f)||Nc(f))&&Fc(f,e,String(t));const h=Ni[f[0]];return h(s,f,i.localize,u)}).join("")}function Hc(t){const e=t.match(Bc);return e?e[1].replace(zc,"'"):t}var Tr="http://www.w3.org/1999/xhtml";const Ii={svg:"http://www.w3.org/2000/svg",xhtml:Tr,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Zn(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Ii.hasOwnProperty(e)?{space:Ii[e],local:t}:t}function Yc(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Tr&&e.documentElement.namespaceURI===Tr?e.createElement(t):e.createElementNS(n,t)}}function Uc(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function la(t){var e=Zn(t);return(e.local?Uc:Yc)(e)}function Vc(){}function qr(t){return t==null?Vc:function(){return this.querySelector(t)}}function Xc(t){typeof t!="function"&&(t=qr(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],a=o.length,s=r[i]=new Array(a),c,u,l=0;l<a;++l)(c=o[l])&&(u=t.call(c,c.__data__,l,o))&&("__data__"in c&&(u.__data__=c.__data__),s[l]=u);return new rt(r,this._parents)}function qc(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Gc(){return[]}function fa(t){return t==null?Gc:function(){return this.querySelectorAll(t)}}function Zc(t){return function(){return qc(t.apply(this,arguments))}}function Qc(t){typeof t=="function"?t=Zc(t):t=fa(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a=e[o],s=a.length,c,u=0;u<s;++u)(c=a[u])&&(r.push(t.call(c,c.__data__,u,a)),i.push(c));return new rt(r,i)}function ha(t){return function(){return this.matches(t)}}function da(t){return function(e){return e.matches(t)}}var Kc=Array.prototype.find;function jc(t){return function(){return Kc.call(this.children,t)}}function Jc(){return this.firstElementChild}function tu(t){return this.select(t==null?Jc:jc(typeof t=="function"?t:da(t)))}var eu=Array.prototype.filter;function nu(){return Array.from(this.children)}function ru(t){return function(){return eu.call(this.children,t)}}function iu(t){return this.selectAll(t==null?nu:ru(typeof t=="function"?t:da(t)))}function ou(t){typeof t!="function"&&(t=ha(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],a=o.length,s=r[i]=[],c,u=0;u<a;++u)(c=o[u])&&t.call(c,c.__data__,u,o)&&s.push(c);return new rt(r,this._parents)}function ga(t){return new Array(t.length)}function au(){return new rt(this._enter||this._groups.map(ga),this._parents)}function bn(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}bn.prototype={constructor:bn,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function su(t){return function(){return t}}function cu(t,e,n,r,i,o){for(var a=0,s,c=e.length,u=o.length;a<u;++a)(s=e[a])?(s.__data__=o[a],r[a]=s):n[a]=new bn(t,o[a]);for(;a<c;++a)(s=e[a])&&(i[a]=s)}function uu(t,e,n,r,i,o,a){var s,c,u=new Map,l=e.length,f=o.length,h=new Array(l),d;for(s=0;s<l;++s)(c=e[s])&&(h[s]=d=a.call(c,c.__data__,s,e)+"",u.has(d)?i[s]=c:u.set(d,c));for(s=0;s<f;++s)d=a.call(t,o[s],s,o)+"",(c=u.get(d))?(r[s]=c,c.__data__=o[s],u.delete(d)):n[s]=new bn(t,o[s]);for(s=0;s<l;++s)(c=e[s])&&u.get(h[s])===c&&(i[s]=c)}function lu(t){return t.__data__}function fu(t,e){if(!arguments.length)return Array.from(this,lu);var n=e?uu:cu,r=this._parents,i=this._groups;typeof t!="function"&&(t=su(t));for(var o=i.length,a=new Array(o),s=new Array(o),c=new Array(o),u=0;u<o;++u){var l=r[u],f=i[u],h=f.length,d=hu(t.call(l,l&&l.__data__,u,r)),m=d.length,g=s[u]=new Array(m),v=a[u]=new Array(m),y=c[u]=new Array(h);n(l,f,g,v,y,d,e);for(var w=0,_=0,T,k;w<m;++w)if(T=g[w]){for(w>=_&&(_=w+1);!(k=v[_])&&++_<m;);T._next=k||null}}return a=new rt(a,r),a._enter=s,a._exit=c,a}function hu(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function du(){return new rt(this._exit||this._groups.map(ga),this._parents)}function gu(t,e,n){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function mu(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),c=0;c<a;++c)for(var u=n[c],l=r[c],f=u.length,h=s[c]=new Array(f),d,m=0;m<f;++m)(d=u[m]||l[m])&&(h[m]=d);for(;c<i;++c)s[c]=n[c];return new rt(s,this._parents)}function pu(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,o=r[i],a;--i>=0;)(a=r[i])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function vu(t){t||(t=yu);function e(f,h){return f&&h?t(f.__data__,h.__data__):!f-!h}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a=n[o],s=a.length,c=i[o]=new Array(s),u,l=0;l<s;++l)(u=a[l])&&(c[l]=u);c.sort(e)}return new rt(i,this._parents).order()}function yu(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function xu(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function wu(){return Array.from(this)}function _u(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}function bu(){let t=0;for(const e of this)++t;return t}function ku(){return!this.node()}function Tu(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,a=i.length,s;o<a;++o)(s=i[o])&&t.call(s,s.__data__,o,i);return this}function Su(t){return function(){this.removeAttribute(t)}}function Cu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Mu(t,e){return function(){this.setAttribute(t,e)}}function Au(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Eu(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Du(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Ou(t,e){var n=Zn(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?Cu:Su:typeof e=="function"?n.local?Du:Eu:n.local?Au:Mu)(n,e))}function ma(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function $u(t){return function(){this.style.removeProperty(t)}}function Nu(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ru(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Fu(t,e,n){return arguments.length>1?this.each((e==null?$u:typeof e=="function"?Ru:Nu)(t,e,n??"")):se(this.node(),t)}function se(t,e){return t.style.getPropertyValue(e)||ma(t).getComputedStyle(t,null).getPropertyValue(e)}function Pu(t){return function(){delete this[t]}}function Iu(t,e){return function(){this[t]=e}}function Lu(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Bu(t,e){return arguments.length>1?this.each((e==null?Pu:typeof e=="function"?Lu:Iu)(t,e)):this.node()[t]}function pa(t){return t.trim().split(/^|\s+/)}function Gr(t){return t.classList||new va(t)}function va(t){this._node=t,this._names=pa(t.getAttribute("class")||"")}va.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function ya(t,e){for(var n=Gr(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function xa(t,e){for(var n=Gr(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function zu(t){return function(){ya(this,t)}}function Wu(t){return function(){xa(this,t)}}function Hu(t,e){return function(){(e.apply(this,arguments)?ya:xa)(this,t)}}function Yu(t,e){var n=pa(t+"");if(arguments.length<2){for(var r=Gr(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?Hu:e?zu:Wu)(n,e))}function Uu(){this.textContent=""}function Vu(t){return function(){this.textContent=t}}function Xu(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function qu(t){return arguments.length?this.each(t==null?Uu:(typeof t=="function"?Xu:Vu)(t)):this.node().textContent}function Gu(){this.innerHTML=""}function Zu(t){return function(){this.innerHTML=t}}function Qu(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Ku(t){return arguments.length?this.each(t==null?Gu:(typeof t=="function"?Qu:Zu)(t)):this.node().innerHTML}function ju(){this.nextSibling&&this.parentNode.appendChild(this)}function Ju(){return this.each(ju)}function tl(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function el(){return this.each(tl)}function nl(t){var e=typeof t=="function"?t:la(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function rl(){return null}function il(t,e){var n=typeof t=="function"?t:la(t),r=e==null?rl:typeof e=="function"?e:qr(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function ol(){var t=this.parentNode;t&&t.removeChild(this)}function al(){return this.each(ol)}function sl(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function cl(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ul(t){return this.select(t?cl:sl)}function ll(t){return arguments.length?this.property("__data__",t):this.node().__data__}function fl(t){return function(e){t.call(this,e,this.__data__)}}function hl(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function dl(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n<i;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function gl(t,e,n){return function(){var r=this.__on,i,o=fl(e);if(r){for(var a=0,s=r.length;a<s;++a)if((i=r[a]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=e;return}}this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function ml(t,e,n){var r=hl(t+""),i,o=r.length,a;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,u=s.length,l;c<u;++c)for(i=0,l=s[c];i<o;++i)if((a=r[i]).type===l.type&&a.name===l.name)return l.value}return}for(s=e?gl:dl,i=0;i<o;++i)this.each(s(r[i],e,n));return this}function wa(t,e,n){var r=ma(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function pl(t,e){return function(){return wa(this,t,e)}}function vl(t,e){return function(){return wa(this,t,e.apply(this,arguments))}}function yl(t,e){return this.each((typeof e=="function"?vl:pl)(t,e))}function*xl(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length,a;i<o;++i)(a=r[i])&&(yield a)}var _a=[null];function rt(t,e){this._groups=t,this._parents=e}function Ye(){return new rt([[document.documentElement]],_a)}function wl(){return this}rt.prototype=Ye.prototype={constructor:rt,select:Xc,selectAll:Qc,selectChild:tu,selectChildren:iu,filter:ou,data:fu,enter:au,exit:du,join:gu,merge:mu,selection:wl,order:pu,sort:vu,call:xu,nodes:wu,node:_u,size:bu,empty:ku,each:Tu,attr:Ou,style:Fu,property:Bu,classed:Yu,text:qu,html:Ku,raise:Ju,lower:el,append:nl,insert:il,remove:al,clone:ul,datum:ll,on:ml,dispatch:yl,[Symbol.iterator]:xl};function kt(t){return typeof t=="string"?new rt([[document.querySelector(t)]],[document.documentElement]):new rt([[t]],_a)}function _l(t){let e;for(;e=t.sourceEvent;)t=e;return t}function kn(t,e){if(t=_l(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}var Me;(function(t){t[t.SVG=0]="SVG",t[t.HTML=1]="HTML"})(Me||(Me={}));var ce;(function(t){t.Fit="fit",t.Extend="extend",t.FitWidth="fit_width"})(ce||(ce={}));function Ae(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function bl(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Zr(t){let e,n,r;t.length!==2?(e=Ae,n=(s,c)=>Ae(t(s),c),r=(s,c)=>t(s)-c):(e=t===Ae||t===bl?t:kl,n=t,r=t);function i(s,c,u=0,l=s.length){if(u<l){if(e(c,c)!==0)return l;do{const f=u+l>>>1;n(s[f],c)<0?u=f+1:l=f}while(u<l)}return u}function o(s,c,u=0,l=s.length){if(u<l){if(e(c,c)!==0)return l;do{const f=u+l>>>1;n(s[f],c)<=0?u=f+1:l=f}while(u<l)}return u}function a(s,c,u=0,l=s.length){const f=i(s,c,u,l-1);return f>u&&r(s[f-1],c)>-r(s[f],c)?f-1:f}return{left:i,center:a,right:o}}function kl(){return 0}function ba(t){return t===null?NaN:+t}const ka=Zr(Ae),Ue=ka.right,Tl=ka.left;Zr(ba).center;function Sl(t,e){let n,r;for(const i of t)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));return[n,r]}class Li extends Map{constructor(e,n=Al){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[r,i]of e)this.set(r,i)}get(e){return super.get(Bi(this,e))}has(e){return super.has(Bi(this,e))}set(e,n){return super.set(Cl(this,e),n)}delete(e){return super.delete(Ml(this,e))}}function Bi({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function Cl({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function Ml({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function Al(t){return t!==null&&typeof t=="object"?t.valueOf():t}const El=Math.sqrt(50),Dl=Math.sqrt(10),Ol=Math.sqrt(2);function Tn(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=El?10:o>=Dl?5:o>=Ol?2:1;let s,c,u;return i<0?(u=Math.pow(10,-i)/a,s=Math.round(t*u),c=Math.round(e*u),s/u<t&&++s,c/u>e&&--c,u=-u):(u=Math.pow(10,i)*a,s=Math.round(t/u),c=Math.round(e/u),s*u<t&&++s,c*u>e&&--c),c<s&&.5<=n&&n<2?Tn(t,e,n*2):[s,c,u]}function Sr(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const r=e<t,[i,o,a]=r?Tn(e,t,n):Tn(t,e,n);if(!(o>=i))return[];const s=o-i+1,c=new Array(s);if(r)if(a<0)for(let u=0;u<s;++u)c[u]=(o-u)/-a;else for(let u=0;u<s;++u)c[u]=(o-u)*a;else if(a<0)for(let u=0;u<s;++u)c[u]=(i+u)/-a;else for(let u=0;u<s;++u)c[u]=(i+u)*a;return c}function Cr(t,e,n){return e=+e,t=+t,n=+n,Tn(t,e,n)[2]}function Mr(t,e,n){e=+e,t=+t,n=+n;const r=e<t,i=r?Cr(e,t,n):Cr(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}function zi(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Wi(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function $l(t,e,n=ba){if(!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t),s=+n(t[o+1],o+1,t);return a+(s-a)*(i-o)}}function Nl(t,e){let n=0,r=0;if(e===void 0)for(let i of t)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let o of t)(o=e(o,++i,t))!=null&&(o=+o)>=o&&(++n,r+=o)}if(n)return r/n}function*Rl(t){for(const e of t)yield*e}function Fl(t){return Array.from(Rl(t))}function Pl(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,o=new Array(i);++r<i;)o[r]=t+r*n;return o}function Il(t,e){let n=0;if(e===void 0)for(let r of t)(r=+r)&&(n+=r);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}function Ll(t,e,n){var r={},i=r.noTrailing,o=i===void 0?!1:i,a=r.noLeading,s=a===void 0?!1:a,c=r.debounceMode,u=c===void 0?void 0:c,l,f=!1,h=0;function d(){l&&clearTimeout(l)}function m(v){var y=v||{},w=y.upcomingOnly,_=w===void 0?!1:w;d(),f=!_}function g(){for(var v=arguments.length,y=new Array(v),w=0;w<v;w++)y[w]=arguments[w];var _=this,T=Date.now()-h;if(f)return;function k(){h=Date.now(),e.apply(_,y)}function p(){l=void 0}!s&&u&&!l&&k(),d(),u===void 0&&T>t?s?(h=Date.now(),o||(l=setTimeout(u?p:k,t))):k():o!==!0&&(l=setTimeout(u?p:k,u===void 0?t-T:t))}return g.cancel=m,g}var wt;(function(t){t.Left="left",t.Right="right",t.Auto="auto"})(wt||(wt={}));const ee=t=>typeof t=="number",Qr=t=>typeof t=="function",Ve=t=>Array.isArray(t),Bl=t=>t instanceof Object,Sn=t=>t.constructor.name!=="Function"&&t.constructor.name!=="Object",Hi=t=>Bl(t)&&!Ve(t)&&!Qr(t)&&!Sn(t),Wm=t=>[Object,Array].includes((t||{}).constructor)&&!Object.entries(t||{}).length,Yt=(t,e,n=[],r=new Set)=>{if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;if(r.has(t))return!0;r.add(t);for(let i=0;i<t.length;i++)if(!Yt(t[i],e[i],n,r))return!1;return!0}if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(typeof t=="object"&&t!==null&&e!==null){if(typeof e!="object")return!1;if(t===e)return!0;const i=Object.keys(t).filter(a=>!n.includes(a)),o=Object.keys(e).filter(a=>!n.includes(a));if(i.length!==o.length)return!1;if(r.has(t))return!0;r.add(t);for(const a of i)if(!Yt(t[a],e[a],n,r))return!1;return!0}return t===e},Ar=t=>t.flat(),Cn=(t,e=new Map)=>{if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof Array){const n=[];e.set(t,n);for(const r of t)n.push(e.has(r)?e.get(r):Cn(r,e));return n}if(Sn(t))return t;if(t instanceof Object){const n={};e.set(t,n);const r=t;return Object.keys(t).reduce((i,o)=>(i[o]=e.has(r[o])?e.get(r[o]):Cn(r[o],e),i),n),n}return t},ue=(t,e,n=new Map)=>{if(!t||!e||t===e)return t;const r=Sn(t)?t:Cn(t);return n.has(e)?n.get(e):(n.set(e,r),Object.keys(e).forEach(i=>{i==="__proto__"||i==="constructor"||(Hi(t[i])&&Hi(e[i])?r[i]=ue(t[i],e[i],n):Sn(e)?r[i]=e:r[i]=Cn(e[i]))}),r)},Mn=(t,e,n)=>Ll(e,t);function Ta(t,e,n){return Qr(e)?e(t,n):e}function zl(t,e,n){return Ta(t,e,n)}function X(t,e,n){return Ta(t,e,n)}function ve(t){return t.filter(e=>e&&!ee(e))}function Ot(t,e,n){return Math.min(Math.max(t,e),n)}function Hm(t,...e){if(!t)return[void 0,void 0];if(Ve(e)){let n=0,r=0;return t.forEach((i,o)=>{let a=0,s=0;for(const c of e){const u=X(i,c,o)||0;u>=0?a+=u:s+=u}a>r&&(r=a),s<n&&(n=s)}),[n,r]}}function Wl(t,e,...n){const r=[];let i=0,o=0;for(const a of n){const s=X(t,a,e)||0;s>=0?r.push(i+=s):r.push(o+=s)}return r}function Ym(t,e,n,r){const i=t.map((s,c)=>X(s,e,c)||0),o=n.map((s,c)=>{const u=Nl(t,(l,f)=>X(l,s,f)||0);return u===0&&Array.isArray(r)?r[c]:u<0}),a=n.map(()=>[]);return t.forEach((s,c)=>{let u=i[c],l=i[c];n.forEach((f,h)=>{const d=X(s,f,c)||0;d>=0?a[h].push([u,u+=d]):a[h].push([l,l+=d])})}),a.forEach((s,c)=>{s.isMostlyNegative=o[c]}),a}function Hl(t,...e){return t?Wi(t,(r,i)=>Wi(e,o=>X(r,o,i))):void 0}function Yl(t,...e){return t?zi(t,(r,i)=>zi(e,o=>X(r,o,i))):void 0}function lr(t,...e){return[Hl(t,...e),Yl(t,...e)]}function An(t,e,n,r=wt.Auto){if(t.length<=1)return t[0];const o=t.map((c,u)=>[c,u]).sort(([c,u],[l,f])=>X(c,n,u)-X(l,n,f)),a=o.map(([c,u])=>X(c,n,u)),s=r===wt.Right?Tl(a,e,0,t.length-1):Ue(a,e,1,t.length);return r===wt.Right?o[s][0]:r===wt.Left?o[s-1][0]:e-a[s-1]>a[s]-e?o[s][0]:o[s-1][0]}function Ul(t,e,n,r=!1){if(!n)return[];const i=t.filter((o,a)=>{const s=X(o,n,a);return s>=e[0]&&s<=e[1]});if(r){if(i.length===0){const f=An(t,e[0],n,wt.Left),h=An(t,e[1],n,wt.Right);return[f,h].filter(Boolean)}const o=i[0],a=i[i.length-1],s=t.findIndex(f=>f===o),c=t.findIndex(f=>f===a),u=Math.max(0,s-1),l=Math.min(t.length-1,c+1);return t.slice(u,l+1)}return i}var Bt=[],Vl=function(){return Bt.some(function(t){return t.activeTargets.length>0})},Xl=function(){return Bt.some(function(t){return t.skippedTargets.length>0})},Yi="ResizeObserver loop completed with undelivered notifications.",ql=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:Yi}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=Yi),window.dispatchEvent(t)},Re;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Re||(Re={}));var zt=function(t){return Object.freeze(t)},Gl=(function(){function t(e,n){this.inlineSize=e,this.blockSize=n,zt(this)}return t})(),Sa=(function(){function t(e,n,r,i){return this.x=e,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,zt(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,r=e.y,i=e.top,o=e.right,a=e.bottom,s=e.left,c=e.width,u=e.height;return{x:n,y:r,top:i,right:o,bottom:a,left:s,width:c,height:u}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t})(),Kr=function(t){return t instanceof SVGElement&&"getBBox"in t},Ca=function(t){if(Kr(t)){var e=t.getBBox(),n=e.width,r=e.height;return!n&&!r}var i=t,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||t.getClientRects().length)},Ui=function(t){var e;if(t instanceof Element)return!0;var n=(e=t?.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},Zl=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Ee=typeof window<"u"?window:{},Ke=new WeakMap,Vi=/auto|scroll/,Ql=/^tb|vertical/,Kl=/msie|trident/i.test(Ee.navigator&&Ee.navigator.userAgent),ht=function(t){return parseFloat(t||"0")},ne=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new Gl((n?e:t)||0,(n?t:e)||0)},Xi=zt({devicePixelContentBoxSize:ne(),borderBoxSize:ne(),contentBoxSize:ne(),contentRect:new Sa(0,0,0,0)}),Ma=function(t,e){if(e===void 0&&(e=!1),Ke.has(t)&&!e)return Ke.get(t);if(Ca(t))return Ke.set(t,Xi),Xi;var n=getComputedStyle(t),r=Kr(t)&&t.ownerSVGElement&&t.getBBox(),i=!Kl&&n.boxSizing==="border-box",o=Ql.test(n.writingMode||""),a=!r&&Vi.test(n.overflowY||""),s=!r&&Vi.test(n.overflowX||""),c=r?0:ht(n.paddingTop),u=r?0:ht(n.paddingRight),l=r?0:ht(n.paddingBottom),f=r?0:ht(n.paddingLeft),h=r?0:ht(n.borderTopWidth),d=r?0:ht(n.borderRightWidth),m=r?0:ht(n.borderBottomWidth),g=r?0:ht(n.borderLeftWidth),v=f+u,y=c+l,w=g+d,_=h+m,T=s?t.offsetHeight-_-t.clientHeight:0,k=a?t.offsetWidth-w-t.clientWidth:0,p=i?v+w:0,b=i?y+_:0,I=r?r.width:ht(n.width)-p-k,F=r?r.height:ht(n.height)-b-T,E=I+v+k+w,Y=F+y+T+_,M=zt({devicePixelContentBoxSize:ne(Math.round(I*devicePixelRatio),Math.round(F*devicePixelRatio),o),borderBoxSize:ne(E,Y,o),contentBoxSize:ne(I,F,o),contentRect:new Sa(f,c,I,F)});return Ke.set(t,M),M},Aa=function(t,e,n){var r=Ma(t,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(e){case Re.DEVICE_PIXEL_CONTENT_BOX:return a;case Re.BORDER_BOX:return i;default:return o}},jl=(function(){function t(e){var n=Ma(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=zt([n.borderBoxSize]),this.contentBoxSize=zt([n.contentBoxSize]),this.devicePixelContentBoxSize=zt([n.devicePixelContentBoxSize])}return t})(),Ea=function(t){if(Ca(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},Jl=function(){var t=1/0,e=[];Bt.forEach(function(a){if(a.activeTargets.length!==0){var s=[];a.activeTargets.forEach(function(u){var l=new jl(u.target),f=Ea(u.target);s.push(l),u.lastReportedSize=Aa(u.target,u.observedBox),f<t&&(t=f)}),e.push(function(){a.callback.call(a.observer,s,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=e;n<r.length;n++){var i=r[n];i()}return t},qi=function(t){Bt.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(Ea(i.target)>t?n.activeTargets.push(i):n.skippedTargets.push(i))})})},tf=function(){var t=0;for(qi(t);Vl();)t=Jl(),qi(t);return Xl()&&ql(),t>0},fr,Da=[],ef=function(){return Da.splice(0).forEach(function(t){return t()})},nf=function(t){if(!fr){var e=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return ef()}).observe(n,r),fr=function(){n.textContent="".concat(e?e--:e++)}}Da.push(t),fr()},rf=function(t){nf(function(){requestAnimationFrame(t)})},sn=0,of=function(){return!!sn},af=250,sf={attributes:!0,characterData:!0,childList:!0,subtree:!0},Gi=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Zi=function(t){return t===void 0&&(t=0),Date.now()+t},hr=!1,cf=(function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=af),!hr){hr=!0;var r=Zi(e);rf(function(){var i=!1;try{i=tf()}finally{if(hr=!1,e=r-Zi(),!of())return;i?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,sf)};document.body?n():Ee.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Gi.forEach(function(n){return Ee.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Gi.forEach(function(n){return Ee.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t})(),Er=new cf,Qi=function(t){!sn&&t>0&&Er.start(),sn+=t,!sn&&Er.stop()},uf=function(t){return!Kr(t)&&!Zl(t)&&getComputedStyle(t).display==="inline"},lf=(function(){function t(e,n){this.target=e,this.observedBox=n||Re.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=Aa(this.target,this.observedBox,!0);return uf(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t})(),ff=(function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t})(),je=new WeakMap,Ki=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},Je=(function(){function t(){}return t.connect=function(e,n){var r=new ff(e,n);je.set(e,r)},t.observe=function(e,n,r){var i=je.get(e),o=i.observationTargets.length===0;Ki(i.observationTargets,n)<0&&(o&&Bt.push(i),i.observationTargets.push(new lf(n,r&&r.box)),Qi(1),Er.schedule())},t.unobserve=function(e,n){var r=je.get(e),i=Ki(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&Bt.splice(Bt.indexOf(r),1),r.observationTargets.splice(i,1),Qi(-1))},t.disconnect=function(e){var n=this,r=je.get(e);r.observationTargets.slice().forEach(function(i){return n.unobserve(e,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},t})(),hf=(function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Je.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ui(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Je.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ui(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Je.unobserve(this,e)},t.prototype.disconnect=function(){Je.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t})();const df=globalThis.ResizeObserver||hf,Oa={duration:void 0,margin:{top:0,bottom:0,left:0,right:0},padding:{top:0,bottom:0,left:0,right:0},sizing:ce.Fit,width:void 0,height:void 0,svgDefs:void 0,ariaLabel:void 0};class Fe{constructor(e){this._defaultConfig=Oa,this._isFirstRender=!0,this._renderAnimationFrameId=null,this._container=e;const n=kt(this._container);n.attr("role","figure"),this.svg=n.append("svg").style("display","block").attr("xmlns","http://www.w3.org/2000/svg").attr("height",Fe.DEFAULT_CONTAINER_HEIGHT).attr("aria-hidden",!0),this._svgDefs=this.svg.append("defs"),this._svgDefsExternal=this.svg.append("defs"),this.element=this.svg.node()}updateContainer(e){var n;this.prevConfig=this.config,this.config=ue(this._defaultConfig,e),e?.svgDefs!==((n=this.prevConfig)===null||n===void 0?void 0:n.svgDefs)&&(this._svgDefsExternal.selectAll("*").remove(),this._svgDefsExternal.html(e.svgDefs))}_preRender(){}_render(e){const{config:n}=this;kt(this._container).attr("aria-label",n.ariaLabel),this._isFirstRender=!1}render(e=this.config.duration){const n=this.config.width||this.containerWidth,r=this.config.height||this.containerHeight;this.svg.attr("width",n).attr("height",r),this._resizeObserver||this._setUpResizeObserver(),cancelAnimationFrame(this._renderAnimationFrameId),this._renderAnimationFrameId=requestAnimationFrame(()=>{this._preRender(),this._render(e)})}get containerWidth(){return this.config.width?this.element.clientWidth:this._container.clientWidth||this._container.getBoundingClientRect().width}get containerHeight(){return this.config.height?this.element.clientHeight:this._container.clientHeight||this._container.getBoundingClientRect().height||Fe.DEFAULT_CONTAINER_HEIGHT}get width(){return Ot(this.containerWidth-this.config.margin.left-this.config.margin.right,0,Number.POSITIVE_INFINITY)}get height(){return Ot(this.containerHeight-this.config.margin.top-this.config.margin.bottom,0,Number.POSITIVE_INFINITY)}_removeAllChildren(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild)}_onResize(){const{config:e}=this;(e.sizing===ce.Fit||e.sizing===ce.FitWidth)&&this.render(0)}_setUpResizeObserver(){if(this._resizeObserver)return;const e=this._container.getBoundingClientRect();this._containerSize={width:e.width,height:e.height},this._resizeObserver=new df((n,r)=>{cancelAnimationFrame(this._resizeObserverAnimationFrameId),this._resizeObserverAnimationFrameId=requestAnimationFrame(()=>{const i=this._container.getBoundingClientRect(),o={width:i.width,height:i.height};!Yt(this._containerSize,o)&&o.width&&o.height&&(this._containerSize=o,this._onResize())})}),this._resizeObserver.observe(this._container)}destroy(){var e;cancelAnimationFrame(this._renderAnimationFrameId),cancelAnimationFrame(this._resizeObserverAnimationFrameId),(e=this._resizeObserver)===null||e===void 0||e.disconnect(),this.svg.remove()}}Fe.DEFAULT_CONTAINER_HEIGHT=300;function gf(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function mf(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var pf=(function(){function t(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(mf(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=gf(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},t})(),Z="-ms-",En="-moz-",N="-webkit-",$a="comm",jr="rule",Jr="decl",vf="@import",Na="@keyframes",yf="@layer",xf=Math.abs,Qn=String.fromCharCode,wf=Object.assign;function _f(t,e){return V(t,0)^45?(((e<<2^V(t,0))<<2^V(t,1))<<2^V(t,2))<<2^V(t,3):0}function Ra(t){return t.trim()}function bf(t,e){return(t=e.exec(t))?t[0]:t}function R(t,e,n){return t.replace(e,n)}function Dr(t,e){return t.indexOf(e)}function V(t,e){return t.charCodeAt(e)|0}function Pe(t,e,n){return t.slice(e,n)}function dt(t){return t.length}function ti(t){return t.length}function tn(t,e){return e.push(t),t}function kf(t,e){return t.map(e).join("")}var Kn=1,le=1,Fa=0,J=0,z=0,me="";function jn(t,e,n,r,i,o,a){return{value:t,root:e,parent:n,type:r,props:i,children:o,line:Kn,column:le,length:a,return:""}}function ye(t,e){return wf(jn("",null,null,"",null,null,0),t,{length:-t.length},e)}function Tf(){return z}function Sf(){return z=J>0?V(me,--J):0,le--,z===10&&(le=1,Kn--),z}function nt(){return z=J<Fa?V(me,J++):0,le++,z===10&&(le=1,Kn++),z}function gt(){return V(me,J)}function cn(){return J}function Xe(t,e){return Pe(me,t,e)}function Ie(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Pa(t){return Kn=le=1,Fa=dt(me=t),J=0,[]}function Ia(t){return me="",t}function un(t){return Ra(Xe(J-1,Or(t===91?t+2:t===40?t+1:t)))}function Cf(t){for(;(z=gt())&&z<33;)nt();return Ie(t)>2||Ie(z)>3?"":" "}function Mf(t,e){for(;--e&&nt()&&!(z<48||z>102||z>57&&z<65||z>70&&z<97););return Xe(t,cn()+(e<6&&gt()==32&&nt()==32))}function Or(t){for(;nt();)switch(z){case t:return J;case 34:case 39:t!==34&&t!==39&&Or(z);break;case 40:t===41&&Or(t);break;case 92:nt();break}return J}function Af(t,e){for(;nt()&&t+z!==57;)if(t+z===84&&gt()===47)break;return"/*"+Xe(e,J-1)+"*"+Qn(t===47?t:nt())}function Ef(t){for(;!Ie(gt());)nt();return Xe(t,J)}function Df(t){return Ia(ln("",null,null,null,[""],t=Pa(t),0,[0],t))}function ln(t,e,n,r,i,o,a,s,c){for(var u=0,l=0,f=a,h=0,d=0,m=0,g=1,v=1,y=1,w=0,_="",T=i,k=o,p=r,b=_;v;)switch(m=w,w=nt()){case 40:if(m!=108&&V(b,f-1)==58){Dr(b+=R(un(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:b+=un(w);break;case 9:case 10:case 13:case 32:b+=Cf(m);break;case 92:b+=Mf(cn()-1,7);continue;case 47:switch(gt()){case 42:case 47:tn(Of(Af(nt(),cn()),e,n),c);break;default:b+="/"}break;case 123*g:s[u++]=dt(b)*y;case 125*g:case 59:case 0:switch(w){case 0:case 125:v=0;case 59+l:y==-1&&(b=R(b,/\f/g,"")),d>0&&dt(b)-f&&tn(d>32?Ji(b+";",r,n,f-1):Ji(R(b," ","")+";",r,n,f-2),c);break;case 59:b+=";";default:if(tn(p=ji(b,e,n,u,l,i,s,_,T=[],k=[],f),o),w===123)if(l===0)ln(b,e,p,p,T,o,f,s,k);else switch(h===99&&V(b,3)===110?100:h){case 100:case 108:case 109:case 115:ln(t,p,p,r&&tn(ji(t,p,p,0,0,i,s,_,i,T=[],f),k),i,k,f,s,r?T:k);break;default:ln(b,p,p,p,[""],k,0,s,k)}}u=l=d=0,g=y=1,_=b="",f=a;break;case 58:f=1+dt(b),d=m;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&Sf()==125)continue}switch(b+=Qn(w),w*g){case 38:y=l>0?1:(b+="\f",-1);break;case 44:s[u++]=(dt(b)-1)*y,y=1;break;case 64:gt()===45&&(b+=un(nt())),h=gt(),l=f=dt(_=b+=Ef(cn())),w++;break;case 45:m===45&&dt(b)==2&&(g=0)}}return o}function ji(t,e,n,r,i,o,a,s,c,u,l){for(var f=i-1,h=i===0?o:[""],d=ti(h),m=0,g=0,v=0;m<r;++m)for(var y=0,w=Pe(t,f+1,f=xf(g=a[m])),_=t;y<d;++y)(_=Ra(g>0?h[y]+" "+w:R(w,/&\f/g,h[y])))&&(c[v++]=_);return jn(t,e,n,i===0?jr:s,c,u,l)}function Of(t,e,n){return jn(t,e,n,$a,Qn(Tf()),Pe(t,2,-2),0)}function Ji(t,e,n,r){return jn(t,e,n,Jr,Pe(t,0,r),Pe(t,r+1,-1),r)}function re(t,e){for(var n="",r=ti(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function $f(t,e,n,r){switch(t.type){case yf:if(t.children.length)break;case vf:case Jr:return t.return=t.return||t.value;case $a:return"";case Na:return t.return=t.value+"{"+re(t.children,r)+"}";case jr:t.value=t.props.join(",")}return dt(n=re(t.children,r))?t.return=t.value+"{"+n+"}":""}function Nf(t){var e=ti(t);return function(n,r,i,o){for(var a="",s=0;s<e;s++)a+=t[s](n,r,i,o)||"";return a}}function Rf(t){return function(e){e.root||(e=e.return)&&t(e)}}function Ff(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Pf=function(e,n,r){for(var i=0,o=0;i=o,o=gt(),i===38&&o===12&&(n[r]=1),!Ie(o);)nt();return Xe(e,J)},If=function(e,n){var r=-1,i=44;do switch(Ie(i)){case 0:i===38&&gt()===12&&(n[r]=1),e[r]+=Pf(J-1,n,r);break;case 2:e[r]+=un(i);break;case 4:if(i===44){e[++r]=gt()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=Qn(i)}while(i=nt());return e},Lf=function(e,n){return Ia(If(Pa(e),n))},to=new WeakMap,Bf=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,i=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!to.get(r))&&!i){to.set(e,!0);for(var o=[],a=Lf(n,o),s=r.props,c=0,u=0;c<a.length;c++)for(var l=0;l<s.length;l++,u++)e.props[u]=o[c]?a[c].replace(/&\f/g,s[l]):s[l]+" "+a[c]}}},zf=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function La(t,e){switch(_f(t,e)){case 5103:return N+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return N+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return N+t+En+t+Z+t+t;case 6828:case 4268:return N+t+Z+t+t;case 6165:return N+t+Z+"flex-"+t+t;case 5187:return N+t+R(t,/(\w+).+(:[^]+)/,N+"box-$1$2"+Z+"flex-$1$2")+t;case 5443:return N+t+Z+"flex-item-"+R(t,/flex-|-self/,"")+t;case 4675:return N+t+Z+"flex-line-pack"+R(t,/align-content|flex-|-self/,"")+t;case 5548:return N+t+Z+R(t,"shrink","negative")+t;case 5292:return N+t+Z+R(t,"basis","preferred-size")+t;case 6060:return N+"box-"+R(t,"-grow","")+N+t+Z+R(t,"grow","positive")+t;case 4554:return N+R(t,/([^-])(transform)/g,"$1"+N+"$2")+t;case 6187:return R(R(R(t,/(zoom-|grab)/,N+"$1"),/(image-set)/,N+"$1"),t,"")+t;case 5495:case 3959:return R(t,/(image-set\([^]*)/,N+"$1$`$1");case 4968:return R(R(t,/(.+:)(flex-)?(.*)/,N+"box-pack:$3"+Z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+N+t+t;case 4095:case 3583:case 4068:case 2532:return R(t,/(.+)-inline(.+)/,N+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(dt(t)-1-e>6)switch(V(t,e+1)){case 109:if(V(t,e+4)!==45)break;case 102:return R(t,/(.+:)(.+)-([^]+)/,"$1"+N+"$2-$3$1"+En+(V(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Dr(t,"stretch")?La(R(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(V(t,e+1)!==115)break;case 6444:switch(V(t,dt(t)-3-(~Dr(t,"!important")&&10))){case 107:return R(t,":",":"+N)+t;case 101:return R(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+N+(V(t,14)===45?"inline-":"")+"box$3$1"+N+"$2$3$1"+Z+"$2box$3")+t}break;case 5936:switch(V(t,e+11)){case 114:return N+t+Z+R(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return N+t+Z+R(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return N+t+Z+R(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return N+t+Z+t+t}return t}var Wf=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case Jr:e.return=La(e.value,e.length);break;case Na:return re([ye(e,{value:R(e.value,"@","@"+N)})],i);case jr:if(e.length)return kf(e.props,function(o){switch(bf(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return re([ye(e,{props:[R(o,/:(read-\w+)/,":"+En+"$1")]})],i);case"::placeholder":return re([ye(e,{props:[R(o,/:(plac\w+)/,":"+N+"input-$1")]}),ye(e,{props:[R(o,/:(plac\w+)/,":"+En+"$1")]}),ye(e,{props:[R(o,/:(plac\w+)/,Z+"input-$1")]})],i)}return""})}},Hf=[Wf],Yf=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var v=g.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=e.stylisPlugins||Hf,o={},a,s=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var v=g.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)o[v[y]]=!0;s.push(g)});var c,u=[Bf,zf];{var l,f=[$f,Rf(function(g){l.insert(g)})],h=Nf(u.concat(i,f)),d=function(v){return re(Df(v),h)};c=function(v,y,w,_){l=w,d(v?v+"{"+y.styles+"}":y.styles),_&&(m.inserted[y.name]=!0)}}var m={key:n,sheet:new pf({key:n,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:c};return m.sheet.hydrate(s),m};function Uf(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Vf={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Xf=/[A-Z]|^ms/g,qf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ba=function(e){return e.charCodeAt(1)===45},eo=function(e){return e!=null&&typeof e!="boolean"},dr=Ff(function(t){return Ba(t)?t:t.replace(Xf,"-$&").toLowerCase()}),no=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(qf,function(r,i,o){return $t={name:i,styles:o,next:$t},i})}return Vf[e]!==1&&!Ba(e)&&typeof n=="number"&&n!==0?n+"px":n};function Dn(t,e,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return $t={name:i.name,styles:i.styles,next:$t},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)$t={name:a.name,styles:a.styles,next:$t},a=a.next;var s=o.styles+";";return s}return Gf(t,e,n)}}var c=n;if(e==null)return c;var u=e[c];return u!==void 0?u:c}function Gf(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Dn(t,e,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var s=a;e!=null&&e[s]!==void 0?r+=o+"{"+e[s]+"}":eo(s)&&(r+=dr(o)+":"+no(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(e==null||e[a[0]]===void 0))for(var c=0;c<a.length;c++)eo(a[c])&&(r+=dr(o)+":"+no(o,a[c])+";");else{var u=Dn(t,e,a);switch(o){case"animation":case"animationName":{r+=dr(o)+":"+u+";";break}default:r+=o+"{"+u+"}"}}}return r}var ro=/label:\s*([^\s;{]+)\s*(;|$)/g,$t;function gr(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var r=!0,i="";$t=void 0;var o=t[0];if(o==null||o.raw===void 0)r=!1,i+=Dn(n,e,o);else{var a=o;i+=a[0]}for(var s=1;s<t.length;s++)if(i+=Dn(n,e,t[s]),r){var c=o;i+=c[s]}ro.lastIndex=0;for(var u="",l;(l=ro.exec(i))!==null;)u+="-"+l[1];var f=Uf(i)+u;return{name:f,styles:i,next:$t}}function za(t,e,n){var r="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):i&&(r+=i+" ")}),r}var Zf=function(e,n,r){var i=e.key+"-"+n.name;e.registered[i]===void 0&&(e.registered[i]=n.styles)},Qf=function(e,n,r){Zf(e,n);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+i:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function io(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function oo(t,e,n){var r=[],i=za(t,r,n);return r.length<2?n:i+e(r)}var Kf=function(e){var n=Yf(e);n.sheet.speedy=function(s){this.isSpeedy=s},n.compat=!0;var r=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];var f=gr(u,n.registered,void 0);return Qf(n,f),n.key+"-"+f.name},i=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];var f=gr(u,n.registered),h="animation-"+f.name;return io(n,{name:f.name,styles:"@keyframes "+h+"{"+f.styles+"}"}),h},o=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];var f=gr(u,n.registered);io(n,f)},a=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];return oo(n.registered,r,jf(u))};return{css:r,cx:a,injectGlobal:o,keyframes:i,hydrate:function(c){c.forEach(function(u){n.inserted[u]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:za.bind(null,n.registered),merge:oo.bind(null,n.registered,r)}},jf=function t(e){for(var n="",r=0;r<e.length;r++){var i=e[r];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))o=t(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(n&&(n+=" "),n+=o)}}return n},Wa=Kf({key:"css"}),Jn=Wa.injectGlobal,W=Wa.css,mr,ao;function Jf(){return ao||(ao=1,mr=function(e,n){n||(n=[0,""]),e=String(e);var r=parseFloat(e,10);return n[0]=r,n[1]=e.match(/[\d.\-\+]*\s*(.*)/)[1]||"",n}),mr}var pr,so;function th(){if(so)return pr;so=1;var t=Jf();pr=i;var e=r("in",document.body);function n(o,a){var s=t(getComputedStyle(o).getPropertyValue(a));return s[0]*i(s[1],o)}function r(o,a){var s=document.createElement("div");s.style.height="128"+o,a.appendChild(s);var c=n(s,"height")/128;return a.removeChild(s),c}function i(o,a){if(!o)return null;switch(a=a||document.body,o=(o+""||"px").trim().toLowerCase(),(a===window||a===document)&&(a=document.body),o){case"%":return a.clientHeight/100;case"ch":case"ex":return r(o,a);case"em":return n(a,"font-size");case"rem":return n(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return e;case"cm":return e/2.54;case"mm":return e/25.4;case"pt":return e/72;case"pc":return e/6;case"px":return 1}var s=t(o);if(!isNaN(s[0])&&s[1]){var c=i(s[1],a);return typeof c=="number"?s[0]*c:null}return null}return pr}th();function Ha(){const t=()=>Math.floor((1+crypto.getRandomValues(new Uint32Array(1))[0])*65536).toString(16).substring(1);return`${t()+t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`}function eh(t,e){const n=t.substr(4,t.length-5);return getComputedStyle(e).getPropertyValue(n)}function nh(t,e,n=0){const[r,i,o,a]=[t.x+n,t.y+t.height-2*n,t.x+t.width-2*n,t.y+n],[s,c,u,l]=[e.x+n,e.y+e.height-2*n,e.x+e.width-2*n,e.y+n];return!(i<l||c<a||o<s||u<r)}function ei(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Ya(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function qe(){}var Le=.7,On=1/Le,ie="\\s*([+-]?\\d+)\\s*",Be="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",mt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rh=/^#([0-9a-f]{3,8})$/,ih=new RegExp(`^rgb\\(${ie},${ie},${ie}\\)$`),oh=new RegExp(`^rgb\\(${mt},${mt},${mt}\\)$`),ah=new RegExp(`^rgba\\(${ie},${ie},${ie},${Be}\\)$`),sh=new RegExp(`^rgba\\(${mt},${mt},${mt},${Be}\\)$`),ch=new RegExp(`^hsl\\(${Be},${mt},${mt}\\)$`),uh=new RegExp(`^hsla\\(${Be},${mt},${mt},${Be}\\)$`),co={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};ei(qe,Ut,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:uo,formatHex:uo,formatHex8:lh,formatHsl:fh,formatRgb:lo,toString:lo});function uo(){return this.rgb().formatHex()}function lh(){return this.rgb().formatHex8()}function fh(){return Ua(this).formatHsl()}function lo(){return this.rgb().formatRgb()}function Ut(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=rh.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?fo(e):n===3?new K(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?en(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?en(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=ih.exec(t))?new K(e[1],e[2],e[3],1):(e=oh.exec(t))?new K(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=ah.exec(t))?en(e[1],e[2],e[3],e[4]):(e=sh.exec(t))?en(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=ch.exec(t))?mo(e[1],e[2]/100,e[3]/100,1):(e=uh.exec(t))?mo(e[1],e[2]/100,e[3]/100,e[4]):co.hasOwnProperty(t)?fo(co[t]):t==="transparent"?new K(NaN,NaN,NaN,0):null}function fo(t){return new K(t>>16&255,t>>8&255,t&255,1)}function en(t,e,n,r){return r<=0&&(t=e=n=NaN),new K(t,e,n,r)}function hh(t){return t instanceof qe||(t=Ut(t)),t?(t=t.rgb(),new K(t.r,t.g,t.b,t.opacity)):new K}function $r(t,e,n,r){return arguments.length===1?hh(t):new K(t,e,n,r??1)}function K(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}ei(K,$r,Ya(qe,{brighter(t){return t=t==null?On:Math.pow(On,t),new K(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Le:Math.pow(Le,t),new K(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new K(Wt(this.r),Wt(this.g),Wt(this.b),$n(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ho,formatHex:ho,formatHex8:dh,formatRgb:go,toString:go}));function ho(){return`#${Pt(this.r)}${Pt(this.g)}${Pt(this.b)}`}function dh(){return`#${Pt(this.r)}${Pt(this.g)}${Pt(this.b)}${Pt((isNaN(this.opacity)?1:this.opacity)*255)}`}function go(){const t=$n(this.opacity);return`${t===1?"rgb(":"rgba("}${Wt(this.r)}, ${Wt(this.g)}, ${Wt(this.b)}${t===1?")":`, ${t})`}`}function $n(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Wt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Pt(t){return t=Wt(t),(t<16?"0":"")+t.toString(16)}function mo(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new st(t,e,n,r)}function Ua(t){if(t instanceof st)return new st(t.h,t.s,t.l,t.opacity);if(t instanceof qe||(t=Ut(t)),!t)return new st;if(t instanceof st)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,c=(o+i)/2;return s?(e===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-e)/s+2:a=(e-n)/s+4,s/=c<.5?o+i:2-o-i,a*=60):s=c>0&&c<1?0:a,new st(a,s,c,t.opacity)}function ni(t,e,n,r){return arguments.length===1?Ua(t):new st(t,e,n,r??1)}function st(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}ei(st,ni,Ya(qe,{brighter(t){return t=t==null?On:Math.pow(On,t),new st(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Le:Math.pow(Le,t),new st(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new K(vr(t>=240?t-240:t+120,i,r),vr(t,i,r),vr(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new st(po(this.h),nn(this.s),nn(this.l),$n(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=$n(this.opacity);return`${t===1?"hsl(":"hsla("}${po(this.h)}, ${nn(this.s)*100}%, ${nn(this.l)*100}%${t===1?")":`, ${t})`}`}}));function po(t){return t=(t||0)%360,t<0?t+360:t}function nn(t){return Math.max(0,Math.min(1,t||0))}function vr(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const ke=globalThis?.UNOVIS_COLORS||["#4D8CFD","#FF6B7E","#F4B83E","#A6CC74","#00C19A","#6859BE"],gh=globalThis?.UNOVIS_COLORS_DARK||["#4D8CFD","#FF6B7E","#FFC16D","#A6CC74","#00C19A","#7887E0"],Et=t=>`--vis-${ee(t)?`color${t%ke.length}`:t}`;function mh(t,e=.4){const n=ni(t);return n.l=n.l*(1+e),n.formatHex()}function ph(t,e=.4,n=.6){const r=ni(t);return r.s=r.s*(1-n),r.l=r.l*(1-e),r.formatHex()}const Nn=10,Nr=[{id:"stripes-diagonal",svg:'<path d="M-1,1 l2,-2 M0,10 l10,-10 M9,11 l2,-2" stroke="#000"/>'},{id:"dots",svg:'<path d="m0-1.5a1 1 0 010 3m10-3a1 1 0 000 3M5 3.5a1 1 0 010 3 1 1 0 010-3M0 8.5 a1 1 0 010 3m10-3a1 1 0 000 3" fill"#000"/>'},{id:"stripes-vertical",svg:'<path d="M 5,-1 L5,11" stroke="#000"/>'},{id:"crosshatch",svg:'<path d="M0 0L10 10ZM10 0L0 10Z" stroke="#000"/>'},{id:"waves",svg:'<path d="M0 4Q2.5 1 5 4 7.5 7 10 4v2Q7.5 9 5 6 2.5 3 0 6Z" fill="#000"/>'},{id:"circles",svg:'<circle cx="5" cy="5" r="3" stroke="#000" fill="#fff"/>'}],Rr=[{id:"circle",marker:'<circle cx="5" cy="5" r="5"/>',dashArray:[]},{id:"triangle",marker:'<path d="M5,0 L10,9 L0,9Z">',dashArray:[9,1]},{id:"diamond",marker:'<path d="M 0 5 L5 0 L 10 5 L 5 10 L 0 5Z">',dashArray:[2]},{id:"arrow",marker:'<path d="M4 0 0 0 6 5 0 10 4 10 10 5Z">',dashArray:[2,3,8,3]},{id:"square",marker:'<rect x="1" y="1" width="8" height="8"/>',dashArray:[6]},{id:"star",marker:'<path d="m2 9 3-9 3 9L0 3h10Z"/>',dashArray:[1,6]}];function Dt(t){return`vis-${`pattern-${t.svg?"fill":"marker"}`}-${t.id}`}const vh=t=>`<mask id="${Dt(t)}">
1
+ import{W as rc,i as Oe,ap as Ei,R as te,ch as ic,c as oc,o as He,w as ac,r as oa,$ as sc,a as cc,P as uc,g as lc,ci as Di,d as Un,aR as fc,e as $e,an as hc,M as Vn,h as oe,F as dc,C as Xn,J as ur,a5 as qn,as as Vr,B as Xr}from"./BOCn_SGf.js";import{a as Gn,t as pt,c as ae,n as gc,g as Oi,d as mc,f as aa,e as pc}from"./C8ut0f5H.js";import{g as vc}from"./CqkleIqs.js";const yc={base:"relative",variants:{size:{xs:"",sm:"",md:"",lg:"",xl:""},orientation:{horizontal:"inline-flex -space-x-px",vertical:"flex flex-col -space-y-px"}}},Bm={__name:"UFieldGroup",props:{as:{type:null,required:!1},size:{type:null,required:!1},orientation:{type:null,required:!1,default:"horizontal"},class:{type:null,required:!1},ui:{type:null,required:!1}},setup(t){const e=t,n=rc(),r=Oe(()=>Ei({extend:Ei(yc),...n.ui?.fieldGroup||{}}));return te(ic,Oe(()=>({orientation:e.orientation,size:e.size}))),(i,o)=>(He(),oc(cc(uc),{as:t.as,"data-orientation":t.orientation,class:sc(r.value({orientation:t.orientation,class:e.class}))},{default:ac(()=>[oa(i.$slots,"default")]),_:3},8,["as","data-orientation","class"]))}};function Ne(t,e){const n=Gn(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=pt(t,e?.in),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function _n(t,e){return Ne(t,{...e,weekStartsOn:1})}function sa(t,e){const n=pt(t,e?.in),r=n.getFullYear(),i=ae(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=_n(i),a=ae(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=_n(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function $i(t,e){const n=pt(t,e?.in);return n.setHours(0,0,0,0),n}function xc(t,e,n){const[r,i]=gc(n?.in,t,e),o=$i(r),a=$i(i),s=+o-Oi(o),c=+a-Oi(a);return Math.round((s-c)/mc)}function wc(t,e){const n=sa(t,e),r=ae(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),_n(r)}function _c(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function bc(t){return!(!_c(t)&&typeof t!="number"||isNaN(+pt(t)))}function kc(t,e){const n=pt(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Tc(t,e){const n=pt(t,e?.in);return xc(n,kc(n))+1}function Sc(t,e){const n=pt(t,e?.in),r=+_n(n)-+wc(n);return Math.round(r/aa)+1}function ca(t,e){const n=pt(t,e?.in),r=n.getFullYear(),i=Gn(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=ae(e?.in||t,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=Ne(a,e),c=ae(e?.in||t,0);c.setFullYear(r,0,o),c.setHours(0,0,0,0);const u=Ne(c,e);return+n>=+s?r+1:+n>=+u?r:r-1}function Cc(t,e){const n=Gn(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=ca(t,e),o=ae(e?.in||t,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Ne(o,e)}function Mc(t,e){const n=pt(t,e?.in),r=+Ne(n,e)-+Cc(n,e);return Math.round(r/aa)+1}function P(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const At={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return P(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):P(n+1,2)},d(t,e){return P(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(t,e){return P(t.getHours()%12||12,e.length)},H(t,e){return P(t.getHours(),e.length)},m(t,e){return P(t.getMinutes(),e.length)},s(t,e){return P(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return P(i,e.length)}},Jt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ni={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return At.y(t,e)},Y:function(t,e,n,r){const i=ca(t,r),o=i>0?i:1-i;if(e==="YY"){const a=o%100;return P(a,2)}return e==="Yo"?n.ordinalNumber(o,{unit:"year"}):P(o,e.length)},R:function(t,e){const n=sa(t);return P(n,e.length)},u:function(t,e){const n=t.getFullYear();return P(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return P(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return P(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return At.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return P(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const i=Mc(t,r);return e==="wo"?n.ordinalNumber(i,{unit:"week"}):P(i,e.length)},I:function(t,e,n){const r=Sc(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):P(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):At.d(t,e)},D:function(t,e,n){const r=Tc(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):P(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const i=t.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return P(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const i=t.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return P(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),i=r===0?7:r;switch(e){case"i":return String(i);case"ii":return P(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let i;switch(r===12?i=Jt.noon:r===0?i=Jt.midnight:i=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let i;switch(r>=17?i=Jt.evening:r>=12?i=Jt.afternoon:r>=4?i=Jt.morning:i=Jt.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return At.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):At.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):P(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):P(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):At.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):At.s(t,e)},S:function(t,e){return At.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return Fi(r);case"XXXX":case"XX":return Ft(r);default:return Ft(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return Fi(r);case"xxxx":case"xx":return Ft(r);default:return Ft(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Ri(r,":");default:return"GMT"+Ft(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Ri(r,":");default:return"GMT"+Ft(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return P(r,e.length)},T:function(t,e,n){return P(+t,e.length)}};function Ri(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+e+P(o,2)}function Fi(t,e){return t%60===0?(t>0?"-":"+")+P(Math.abs(t)/60,2):Ft(t,e)}function Ft(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=P(Math.trunc(r/60),2),o=P(r%60,2);return n+i+e+o}const Pi=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},ua=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},Ac=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Pi(t,e);let o;switch(r){case"P":o=e.dateTime({width:"short"});break;case"PP":o=e.dateTime({width:"medium"});break;case"PPP":o=e.dateTime({width:"long"});break;default:o=e.dateTime({width:"full"});break}return o.replace("{{date}}",Pi(r,e)).replace("{{time}}",ua(i,e))},Ec={p:ua,P:Ac},Dc=/^D+$/,Oc=/^Y+$/,$c=["D","DD","YY","YYYY"];function Nc(t){return Dc.test(t)}function Rc(t){return Oc.test(t)}function Fc(t,e,n){const r=Pc(t,e,n);if(console.warn(r),$c.includes(t))throw new RangeError(r)}function Pc(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Ic=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Lc=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Bc=/^'([^]*?)'?$/,zc=/''/g,Wc=/[a-zA-Z]/;function zm(t,e,n){const r=Gn(),i=r.locale??pc,o=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=pt(t,n?.in);if(!bc(s))throw new RangeError("Invalid time value");let c=e.match(Lc).map(l=>{const f=l[0];if(f==="p"||f==="P"){const h=Ec[f];return h(l,i.formatLong)}return l}).join("").match(Ic).map(l=>{if(l==="''")return{isToken:!1,value:"'"};const f=l[0];if(f==="'")return{isToken:!1,value:Hc(l)};if(Ni[f])return{isToken:!0,value:l};if(f.match(Wc))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:l}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));const u={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return c.map(l=>{if(!l.isToken)return l.value;const f=l.value;(Rc(f)||Nc(f))&&Fc(f,e,String(t));const h=Ni[f[0]];return h(s,f,i.localize,u)}).join("")}function Hc(t){const e=t.match(Bc);return e?e[1].replace(zc,"'"):t}var Tr="http://www.w3.org/1999/xhtml";const Ii={svg:"http://www.w3.org/2000/svg",xhtml:Tr,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Zn(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Ii.hasOwnProperty(e)?{space:Ii[e],local:t}:t}function Yc(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Tr&&e.documentElement.namespaceURI===Tr?e.createElement(t):e.createElementNS(n,t)}}function Uc(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function la(t){var e=Zn(t);return(e.local?Uc:Yc)(e)}function Vc(){}function qr(t){return t==null?Vc:function(){return this.querySelector(t)}}function Xc(t){typeof t!="function"&&(t=qr(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],a=o.length,s=r[i]=new Array(a),c,u,l=0;l<a;++l)(c=o[l])&&(u=t.call(c,c.__data__,l,o))&&("__data__"in c&&(u.__data__=c.__data__),s[l]=u);return new rt(r,this._parents)}function qc(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Gc(){return[]}function fa(t){return t==null?Gc:function(){return this.querySelectorAll(t)}}function Zc(t){return function(){return qc(t.apply(this,arguments))}}function Qc(t){typeof t=="function"?t=Zc(t):t=fa(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a=e[o],s=a.length,c,u=0;u<s;++u)(c=a[u])&&(r.push(t.call(c,c.__data__,u,a)),i.push(c));return new rt(r,i)}function ha(t){return function(){return this.matches(t)}}function da(t){return function(e){return e.matches(t)}}var Kc=Array.prototype.find;function Jc(t){return function(){return Kc.call(this.children,t)}}function jc(){return this.firstElementChild}function tu(t){return this.select(t==null?jc:Jc(typeof t=="function"?t:da(t)))}var eu=Array.prototype.filter;function nu(){return Array.from(this.children)}function ru(t){return function(){return eu.call(this.children,t)}}function iu(t){return this.selectAll(t==null?nu:ru(typeof t=="function"?t:da(t)))}function ou(t){typeof t!="function"&&(t=ha(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],a=o.length,s=r[i]=[],c,u=0;u<a;++u)(c=o[u])&&t.call(c,c.__data__,u,o)&&s.push(c);return new rt(r,this._parents)}function ga(t){return new Array(t.length)}function au(){return new rt(this._enter||this._groups.map(ga),this._parents)}function bn(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}bn.prototype={constructor:bn,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function su(t){return function(){return t}}function cu(t,e,n,r,i,o){for(var a=0,s,c=e.length,u=o.length;a<u;++a)(s=e[a])?(s.__data__=o[a],r[a]=s):n[a]=new bn(t,o[a]);for(;a<c;++a)(s=e[a])&&(i[a]=s)}function uu(t,e,n,r,i,o,a){var s,c,u=new Map,l=e.length,f=o.length,h=new Array(l),d;for(s=0;s<l;++s)(c=e[s])&&(h[s]=d=a.call(c,c.__data__,s,e)+"",u.has(d)?i[s]=c:u.set(d,c));for(s=0;s<f;++s)d=a.call(t,o[s],s,o)+"",(c=u.get(d))?(r[s]=c,c.__data__=o[s],u.delete(d)):n[s]=new bn(t,o[s]);for(s=0;s<l;++s)(c=e[s])&&u.get(h[s])===c&&(i[s]=c)}function lu(t){return t.__data__}function fu(t,e){if(!arguments.length)return Array.from(this,lu);var n=e?uu:cu,r=this._parents,i=this._groups;typeof t!="function"&&(t=su(t));for(var o=i.length,a=new Array(o),s=new Array(o),c=new Array(o),u=0;u<o;++u){var l=r[u],f=i[u],h=f.length,d=hu(t.call(l,l&&l.__data__,u,r)),m=d.length,g=s[u]=new Array(m),v=a[u]=new Array(m),y=c[u]=new Array(h);n(l,f,g,v,y,d,e);for(var w=0,_=0,T,k;w<m;++w)if(T=g[w]){for(w>=_&&(_=w+1);!(k=v[_])&&++_<m;);T._next=k||null}}return a=new rt(a,r),a._enter=s,a._exit=c,a}function hu(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function du(){return new rt(this._exit||this._groups.map(ga),this._parents)}function gu(t,e,n){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function mu(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),c=0;c<a;++c)for(var u=n[c],l=r[c],f=u.length,h=s[c]=new Array(f),d,m=0;m<f;++m)(d=u[m]||l[m])&&(h[m]=d);for(;c<i;++c)s[c]=n[c];return new rt(s,this._parents)}function pu(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,o=r[i],a;--i>=0;)(a=r[i])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function vu(t){t||(t=yu);function e(f,h){return f&&h?t(f.__data__,h.__data__):!f-!h}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a=n[o],s=a.length,c=i[o]=new Array(s),u,l=0;l<s;++l)(u=a[l])&&(c[l]=u);c.sort(e)}return new rt(i,this._parents).order()}function yu(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function xu(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function wu(){return Array.from(this)}function _u(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}function bu(){let t=0;for(const e of this)++t;return t}function ku(){return!this.node()}function Tu(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,a=i.length,s;o<a;++o)(s=i[o])&&t.call(s,s.__data__,o,i);return this}function Su(t){return function(){this.removeAttribute(t)}}function Cu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Mu(t,e){return function(){this.setAttribute(t,e)}}function Au(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Eu(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Du(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Ou(t,e){var n=Zn(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?Cu:Su:typeof e=="function"?n.local?Du:Eu:n.local?Au:Mu)(n,e))}function ma(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function $u(t){return function(){this.style.removeProperty(t)}}function Nu(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ru(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Fu(t,e,n){return arguments.length>1?this.each((e==null?$u:typeof e=="function"?Ru:Nu)(t,e,n??"")):se(this.node(),t)}function se(t,e){return t.style.getPropertyValue(e)||ma(t).getComputedStyle(t,null).getPropertyValue(e)}function Pu(t){return function(){delete this[t]}}function Iu(t,e){return function(){this[t]=e}}function Lu(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Bu(t,e){return arguments.length>1?this.each((e==null?Pu:typeof e=="function"?Lu:Iu)(t,e)):this.node()[t]}function pa(t){return t.trim().split(/^|\s+/)}function Gr(t){return t.classList||new va(t)}function va(t){this._node=t,this._names=pa(t.getAttribute("class")||"")}va.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function ya(t,e){for(var n=Gr(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function xa(t,e){for(var n=Gr(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function zu(t){return function(){ya(this,t)}}function Wu(t){return function(){xa(this,t)}}function Hu(t,e){return function(){(e.apply(this,arguments)?ya:xa)(this,t)}}function Yu(t,e){var n=pa(t+"");if(arguments.length<2){for(var r=Gr(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?Hu:e?zu:Wu)(n,e))}function Uu(){this.textContent=""}function Vu(t){return function(){this.textContent=t}}function Xu(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function qu(t){return arguments.length?this.each(t==null?Uu:(typeof t=="function"?Xu:Vu)(t)):this.node().textContent}function Gu(){this.innerHTML=""}function Zu(t){return function(){this.innerHTML=t}}function Qu(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Ku(t){return arguments.length?this.each(t==null?Gu:(typeof t=="function"?Qu:Zu)(t)):this.node().innerHTML}function Ju(){this.nextSibling&&this.parentNode.appendChild(this)}function ju(){return this.each(Ju)}function tl(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function el(){return this.each(tl)}function nl(t){var e=typeof t=="function"?t:la(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function rl(){return null}function il(t,e){var n=typeof t=="function"?t:la(t),r=e==null?rl:typeof e=="function"?e:qr(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function ol(){var t=this.parentNode;t&&t.removeChild(this)}function al(){return this.each(ol)}function sl(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function cl(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ul(t){return this.select(t?cl:sl)}function ll(t){return arguments.length?this.property("__data__",t):this.node().__data__}function fl(t){return function(e){t.call(this,e,this.__data__)}}function hl(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function dl(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n<i;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function gl(t,e,n){return function(){var r=this.__on,i,o=fl(e);if(r){for(var a=0,s=r.length;a<s;++a)if((i=r[a]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=e;return}}this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function ml(t,e,n){var r=hl(t+""),i,o=r.length,a;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,u=s.length,l;c<u;++c)for(i=0,l=s[c];i<o;++i)if((a=r[i]).type===l.type&&a.name===l.name)return l.value}return}for(s=e?gl:dl,i=0;i<o;++i)this.each(s(r[i],e,n));return this}function wa(t,e,n){var r=ma(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function pl(t,e){return function(){return wa(this,t,e)}}function vl(t,e){return function(){return wa(this,t,e.apply(this,arguments))}}function yl(t,e){return this.each((typeof e=="function"?vl:pl)(t,e))}function*xl(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length,a;i<o;++i)(a=r[i])&&(yield a)}var _a=[null];function rt(t,e){this._groups=t,this._parents=e}function Ye(){return new rt([[document.documentElement]],_a)}function wl(){return this}rt.prototype=Ye.prototype={constructor:rt,select:Xc,selectAll:Qc,selectChild:tu,selectChildren:iu,filter:ou,data:fu,enter:au,exit:du,join:gu,merge:mu,selection:wl,order:pu,sort:vu,call:xu,nodes:wu,node:_u,size:bu,empty:ku,each:Tu,attr:Ou,style:Fu,property:Bu,classed:Yu,text:qu,html:Ku,raise:ju,lower:el,append:nl,insert:il,remove:al,clone:ul,datum:ll,on:ml,dispatch:yl,[Symbol.iterator]:xl};function kt(t){return typeof t=="string"?new rt([[document.querySelector(t)]],[document.documentElement]):new rt([[t]],_a)}function _l(t){let e;for(;e=t.sourceEvent;)t=e;return t}function kn(t,e){if(t=_l(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}var Me;(function(t){t[t.SVG=0]="SVG",t[t.HTML=1]="HTML"})(Me||(Me={}));var ce;(function(t){t.Fit="fit",t.Extend="extend",t.FitWidth="fit_width"})(ce||(ce={}));function Ae(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function bl(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Zr(t){let e,n,r;t.length!==2?(e=Ae,n=(s,c)=>Ae(t(s),c),r=(s,c)=>t(s)-c):(e=t===Ae||t===bl?t:kl,n=t,r=t);function i(s,c,u=0,l=s.length){if(u<l){if(e(c,c)!==0)return l;do{const f=u+l>>>1;n(s[f],c)<0?u=f+1:l=f}while(u<l)}return u}function o(s,c,u=0,l=s.length){if(u<l){if(e(c,c)!==0)return l;do{const f=u+l>>>1;n(s[f],c)<=0?u=f+1:l=f}while(u<l)}return u}function a(s,c,u=0,l=s.length){const f=i(s,c,u,l-1);return f>u&&r(s[f-1],c)>-r(s[f],c)?f-1:f}return{left:i,center:a,right:o}}function kl(){return 0}function ba(t){return t===null?NaN:+t}const ka=Zr(Ae),Ue=ka.right,Tl=ka.left;Zr(ba).center;function Sl(t,e){let n,r;for(const i of t)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));return[n,r]}class Li extends Map{constructor(e,n=Al){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[r,i]of e)this.set(r,i)}get(e){return super.get(Bi(this,e))}has(e){return super.has(Bi(this,e))}set(e,n){return super.set(Cl(this,e),n)}delete(e){return super.delete(Ml(this,e))}}function Bi({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function Cl({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function Ml({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function Al(t){return t!==null&&typeof t=="object"?t.valueOf():t}const El=Math.sqrt(50),Dl=Math.sqrt(10),Ol=Math.sqrt(2);function Tn(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=El?10:o>=Dl?5:o>=Ol?2:1;let s,c,u;return i<0?(u=Math.pow(10,-i)/a,s=Math.round(t*u),c=Math.round(e*u),s/u<t&&++s,c/u>e&&--c,u=-u):(u=Math.pow(10,i)*a,s=Math.round(t/u),c=Math.round(e/u),s*u<t&&++s,c*u>e&&--c),c<s&&.5<=n&&n<2?Tn(t,e,n*2):[s,c,u]}function Sr(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const r=e<t,[i,o,a]=r?Tn(e,t,n):Tn(t,e,n);if(!(o>=i))return[];const s=o-i+1,c=new Array(s);if(r)if(a<0)for(let u=0;u<s;++u)c[u]=(o-u)/-a;else for(let u=0;u<s;++u)c[u]=(o-u)*a;else if(a<0)for(let u=0;u<s;++u)c[u]=(i+u)/-a;else for(let u=0;u<s;++u)c[u]=(i+u)*a;return c}function Cr(t,e,n){return e=+e,t=+t,n=+n,Tn(t,e,n)[2]}function Mr(t,e,n){e=+e,t=+t,n=+n;const r=e<t,i=r?Cr(e,t,n):Cr(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}function zi(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Wi(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function $l(t,e,n=ba){if(!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t),s=+n(t[o+1],o+1,t);return a+(s-a)*(i-o)}}function Nl(t,e){let n=0,r=0;if(e===void 0)for(let i of t)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let o of t)(o=e(o,++i,t))!=null&&(o=+o)>=o&&(++n,r+=o)}if(n)return r/n}function*Rl(t){for(const e of t)yield*e}function Fl(t){return Array.from(Rl(t))}function Pl(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,o=new Array(i);++r<i;)o[r]=t+r*n;return o}function Il(t,e){let n=0;if(e===void 0)for(let r of t)(r=+r)&&(n+=r);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}function Ll(t,e,n){var r={},i=r.noTrailing,o=i===void 0?!1:i,a=r.noLeading,s=a===void 0?!1:a,c=r.debounceMode,u=c===void 0?void 0:c,l,f=!1,h=0;function d(){l&&clearTimeout(l)}function m(v){var y=v||{},w=y.upcomingOnly,_=w===void 0?!1:w;d(),f=!_}function g(){for(var v=arguments.length,y=new Array(v),w=0;w<v;w++)y[w]=arguments[w];var _=this,T=Date.now()-h;if(f)return;function k(){h=Date.now(),e.apply(_,y)}function p(){l=void 0}!s&&u&&!l&&k(),d(),u===void 0&&T>t?s?(h=Date.now(),o||(l=setTimeout(u?p:k,t))):k():o!==!0&&(l=setTimeout(u?p:k,u===void 0?t-T:t))}return g.cancel=m,g}var wt;(function(t){t.Left="left",t.Right="right",t.Auto="auto"})(wt||(wt={}));const ee=t=>typeof t=="number",Qr=t=>typeof t=="function",Ve=t=>Array.isArray(t),Bl=t=>t instanceof Object,Sn=t=>t.constructor.name!=="Function"&&t.constructor.name!=="Object",Hi=t=>Bl(t)&&!Ve(t)&&!Qr(t)&&!Sn(t),Wm=t=>[Object,Array].includes((t||{}).constructor)&&!Object.entries(t||{}).length,Yt=(t,e,n=[],r=new Set)=>{if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;if(r.has(t))return!0;r.add(t);for(let i=0;i<t.length;i++)if(!Yt(t[i],e[i],n,r))return!1;return!0}if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(typeof t=="object"&&t!==null&&e!==null){if(typeof e!="object")return!1;if(t===e)return!0;const i=Object.keys(t).filter(a=>!n.includes(a)),o=Object.keys(e).filter(a=>!n.includes(a));if(i.length!==o.length)return!1;if(r.has(t))return!0;r.add(t);for(const a of i)if(!Yt(t[a],e[a],n,r))return!1;return!0}return t===e},Ar=t=>t.flat(),Cn=(t,e=new Map)=>{if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof Array){const n=[];e.set(t,n);for(const r of t)n.push(e.has(r)?e.get(r):Cn(r,e));return n}if(Sn(t))return t;if(t instanceof Object){const n={};e.set(t,n);const r=t;return Object.keys(t).reduce((i,o)=>(i[o]=e.has(r[o])?e.get(r[o]):Cn(r[o],e),i),n),n}return t},ue=(t,e,n=new Map)=>{if(!t||!e||t===e)return t;const r=Sn(t)?t:Cn(t);return n.has(e)?n.get(e):(n.set(e,r),Object.keys(e).forEach(i=>{i==="__proto__"||i==="constructor"||(Hi(t[i])&&Hi(e[i])?r[i]=ue(t[i],e[i],n):Sn(e)?r[i]=e:r[i]=Cn(e[i]))}),r)},Mn=(t,e,n)=>Ll(e,t);function Ta(t,e,n){return Qr(e)?e(t,n):e}function zl(t,e,n){return Ta(t,e,n)}function X(t,e,n){return Ta(t,e,n)}function ve(t){return t.filter(e=>e&&!ee(e))}function Ot(t,e,n){return Math.min(Math.max(t,e),n)}function Hm(t,...e){if(!t)return[void 0,void 0];if(Ve(e)){let n=0,r=0;return t.forEach((i,o)=>{let a=0,s=0;for(const c of e){const u=X(i,c,o)||0;u>=0?a+=u:s+=u}a>r&&(r=a),s<n&&(n=s)}),[n,r]}}function Wl(t,e,...n){const r=[];let i=0,o=0;for(const a of n){const s=X(t,a,e)||0;s>=0?r.push(i+=s):r.push(o+=s)}return r}function Ym(t,e,n,r){const i=t.map((s,c)=>X(s,e,c)||0),o=n.map((s,c)=>{const u=Nl(t,(l,f)=>X(l,s,f)||0);return u===0&&Array.isArray(r)?r[c]:u<0}),a=n.map(()=>[]);return t.forEach((s,c)=>{let u=i[c],l=i[c];n.forEach((f,h)=>{const d=X(s,f,c)||0;d>=0?a[h].push([u,u+=d]):a[h].push([l,l+=d])})}),a.forEach((s,c)=>{s.isMostlyNegative=o[c]}),a}function Hl(t,...e){return t?Wi(t,(r,i)=>Wi(e,o=>X(r,o,i))):void 0}function Yl(t,...e){return t?zi(t,(r,i)=>zi(e,o=>X(r,o,i))):void 0}function lr(t,...e){return[Hl(t,...e),Yl(t,...e)]}function An(t,e,n,r=wt.Auto){if(t.length<=1)return t[0];const o=t.map((c,u)=>[c,u]).sort(([c,u],[l,f])=>X(c,n,u)-X(l,n,f)),a=o.map(([c,u])=>X(c,n,u)),s=r===wt.Right?Tl(a,e,0,t.length-1):Ue(a,e,1,t.length);return r===wt.Right?o[s][0]:r===wt.Left?o[s-1][0]:e-a[s-1]>a[s]-e?o[s][0]:o[s-1][0]}function Ul(t,e,n,r=!1){if(!n)return[];const i=t.filter((o,a)=>{const s=X(o,n,a);return s>=e[0]&&s<=e[1]});if(r){if(i.length===0){const f=An(t,e[0],n,wt.Left),h=An(t,e[1],n,wt.Right);return[f,h].filter(Boolean)}const o=i[0],a=i[i.length-1],s=t.findIndex(f=>f===o),c=t.findIndex(f=>f===a),u=Math.max(0,s-1),l=Math.min(t.length-1,c+1);return t.slice(u,l+1)}return i}var Bt=[],Vl=function(){return Bt.some(function(t){return t.activeTargets.length>0})},Xl=function(){return Bt.some(function(t){return t.skippedTargets.length>0})},Yi="ResizeObserver loop completed with undelivered notifications.",ql=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:Yi}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=Yi),window.dispatchEvent(t)},Re;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Re||(Re={}));var zt=function(t){return Object.freeze(t)},Gl=(function(){function t(e,n){this.inlineSize=e,this.blockSize=n,zt(this)}return t})(),Sa=(function(){function t(e,n,r,i){return this.x=e,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,zt(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,r=e.y,i=e.top,o=e.right,a=e.bottom,s=e.left,c=e.width,u=e.height;return{x:n,y:r,top:i,right:o,bottom:a,left:s,width:c,height:u}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t})(),Kr=function(t){return t instanceof SVGElement&&"getBBox"in t},Ca=function(t){if(Kr(t)){var e=t.getBBox(),n=e.width,r=e.height;return!n&&!r}var i=t,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||t.getClientRects().length)},Ui=function(t){var e;if(t instanceof Element)return!0;var n=(e=t?.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},Zl=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Ee=typeof window<"u"?window:{},Ke=new WeakMap,Vi=/auto|scroll/,Ql=/^tb|vertical/,Kl=/msie|trident/i.test(Ee.navigator&&Ee.navigator.userAgent),ht=function(t){return parseFloat(t||"0")},ne=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new Gl((n?e:t)||0,(n?t:e)||0)},Xi=zt({devicePixelContentBoxSize:ne(),borderBoxSize:ne(),contentBoxSize:ne(),contentRect:new Sa(0,0,0,0)}),Ma=function(t,e){if(e===void 0&&(e=!1),Ke.has(t)&&!e)return Ke.get(t);if(Ca(t))return Ke.set(t,Xi),Xi;var n=getComputedStyle(t),r=Kr(t)&&t.ownerSVGElement&&t.getBBox(),i=!Kl&&n.boxSizing==="border-box",o=Ql.test(n.writingMode||""),a=!r&&Vi.test(n.overflowY||""),s=!r&&Vi.test(n.overflowX||""),c=r?0:ht(n.paddingTop),u=r?0:ht(n.paddingRight),l=r?0:ht(n.paddingBottom),f=r?0:ht(n.paddingLeft),h=r?0:ht(n.borderTopWidth),d=r?0:ht(n.borderRightWidth),m=r?0:ht(n.borderBottomWidth),g=r?0:ht(n.borderLeftWidth),v=f+u,y=c+l,w=g+d,_=h+m,T=s?t.offsetHeight-_-t.clientHeight:0,k=a?t.offsetWidth-w-t.clientWidth:0,p=i?v+w:0,b=i?y+_:0,I=r?r.width:ht(n.width)-p-k,F=r?r.height:ht(n.height)-b-T,E=I+v+k+w,Y=F+y+T+_,M=zt({devicePixelContentBoxSize:ne(Math.round(I*devicePixelRatio),Math.round(F*devicePixelRatio),o),borderBoxSize:ne(E,Y,o),contentBoxSize:ne(I,F,o),contentRect:new Sa(f,c,I,F)});return Ke.set(t,M),M},Aa=function(t,e,n){var r=Ma(t,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(e){case Re.DEVICE_PIXEL_CONTENT_BOX:return a;case Re.BORDER_BOX:return i;default:return o}},Jl=(function(){function t(e){var n=Ma(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=zt([n.borderBoxSize]),this.contentBoxSize=zt([n.contentBoxSize]),this.devicePixelContentBoxSize=zt([n.devicePixelContentBoxSize])}return t})(),Ea=function(t){if(Ca(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},jl=function(){var t=1/0,e=[];Bt.forEach(function(a){if(a.activeTargets.length!==0){var s=[];a.activeTargets.forEach(function(u){var l=new Jl(u.target),f=Ea(u.target);s.push(l),u.lastReportedSize=Aa(u.target,u.observedBox),f<t&&(t=f)}),e.push(function(){a.callback.call(a.observer,s,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=e;n<r.length;n++){var i=r[n];i()}return t},qi=function(t){Bt.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(Ea(i.target)>t?n.activeTargets.push(i):n.skippedTargets.push(i))})})},tf=function(){var t=0;for(qi(t);Vl();)t=jl(),qi(t);return Xl()&&ql(),t>0},fr,Da=[],ef=function(){return Da.splice(0).forEach(function(t){return t()})},nf=function(t){if(!fr){var e=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return ef()}).observe(n,r),fr=function(){n.textContent="".concat(e?e--:e++)}}Da.push(t),fr()},rf=function(t){nf(function(){requestAnimationFrame(t)})},sn=0,of=function(){return!!sn},af=250,sf={attributes:!0,characterData:!0,childList:!0,subtree:!0},Gi=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Zi=function(t){return t===void 0&&(t=0),Date.now()+t},hr=!1,cf=(function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=af),!hr){hr=!0;var r=Zi(e);rf(function(){var i=!1;try{i=tf()}finally{if(hr=!1,e=r-Zi(),!of())return;i?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,sf)};document.body?n():Ee.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Gi.forEach(function(n){return Ee.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Gi.forEach(function(n){return Ee.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t})(),Er=new cf,Qi=function(t){!sn&&t>0&&Er.start(),sn+=t,!sn&&Er.stop()},uf=function(t){return!Kr(t)&&!Zl(t)&&getComputedStyle(t).display==="inline"},lf=(function(){function t(e,n){this.target=e,this.observedBox=n||Re.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=Aa(this.target,this.observedBox,!0);return uf(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t})(),ff=(function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t})(),Je=new WeakMap,Ki=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},je=(function(){function t(){}return t.connect=function(e,n){var r=new ff(e,n);Je.set(e,r)},t.observe=function(e,n,r){var i=Je.get(e),o=i.observationTargets.length===0;Ki(i.observationTargets,n)<0&&(o&&Bt.push(i),i.observationTargets.push(new lf(n,r&&r.box)),Qi(1),Er.schedule())},t.unobserve=function(e,n){var r=Je.get(e),i=Ki(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&Bt.splice(Bt.indexOf(r),1),r.observationTargets.splice(i,1),Qi(-1))},t.disconnect=function(e){var n=this,r=Je.get(e);r.observationTargets.slice().forEach(function(i){return n.unobserve(e,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},t})(),hf=(function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");je.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ui(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");je.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ui(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");je.unobserve(this,e)},t.prototype.disconnect=function(){je.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t})();const df=globalThis.ResizeObserver||hf,Oa={duration:void 0,margin:{top:0,bottom:0,left:0,right:0},padding:{top:0,bottom:0,left:0,right:0},sizing:ce.Fit,width:void 0,height:void 0,svgDefs:void 0,ariaLabel:void 0};class Fe{constructor(e){this._defaultConfig=Oa,this._isFirstRender=!0,this._renderAnimationFrameId=null,this._container=e;const n=kt(this._container);n.attr("role","figure"),this.svg=n.append("svg").style("display","block").attr("xmlns","http://www.w3.org/2000/svg").attr("height",Fe.DEFAULT_CONTAINER_HEIGHT).attr("aria-hidden",!0),this._svgDefs=this.svg.append("defs"),this._svgDefsExternal=this.svg.append("defs"),this.element=this.svg.node()}updateContainer(e){var n;this.prevConfig=this.config,this.config=ue(this._defaultConfig,e),e?.svgDefs!==((n=this.prevConfig)===null||n===void 0?void 0:n.svgDefs)&&(this._svgDefsExternal.selectAll("*").remove(),this._svgDefsExternal.html(e.svgDefs))}_preRender(){}_render(e){const{config:n}=this;kt(this._container).attr("aria-label",n.ariaLabel),this._isFirstRender=!1}render(e=this.config.duration){const n=this.config.width||this.containerWidth,r=this.config.height||this.containerHeight;this.svg.attr("width",n).attr("height",r),this._resizeObserver||this._setUpResizeObserver(),cancelAnimationFrame(this._renderAnimationFrameId),this._renderAnimationFrameId=requestAnimationFrame(()=>{this._preRender(),this._render(e)})}get containerWidth(){return this.config.width?this.element.clientWidth:this._container.clientWidth||this._container.getBoundingClientRect().width}get containerHeight(){return this.config.height?this.element.clientHeight:this._container.clientHeight||this._container.getBoundingClientRect().height||Fe.DEFAULT_CONTAINER_HEIGHT}get width(){return Ot(this.containerWidth-this.config.margin.left-this.config.margin.right,0,Number.POSITIVE_INFINITY)}get height(){return Ot(this.containerHeight-this.config.margin.top-this.config.margin.bottom,0,Number.POSITIVE_INFINITY)}_removeAllChildren(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild)}_onResize(){const{config:e}=this;(e.sizing===ce.Fit||e.sizing===ce.FitWidth)&&this.render(0)}_setUpResizeObserver(){if(this._resizeObserver)return;const e=this._container.getBoundingClientRect();this._containerSize={width:e.width,height:e.height},this._resizeObserver=new df((n,r)=>{cancelAnimationFrame(this._resizeObserverAnimationFrameId),this._resizeObserverAnimationFrameId=requestAnimationFrame(()=>{const i=this._container.getBoundingClientRect(),o={width:i.width,height:i.height};!Yt(this._containerSize,o)&&o.width&&o.height&&(this._containerSize=o,this._onResize())})}),this._resizeObserver.observe(this._container)}destroy(){var e;cancelAnimationFrame(this._renderAnimationFrameId),cancelAnimationFrame(this._resizeObserverAnimationFrameId),(e=this._resizeObserver)===null||e===void 0||e.disconnect(),this.svg.remove()}}Fe.DEFAULT_CONTAINER_HEIGHT=300;function gf(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function mf(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var pf=(function(){function t(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(mf(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=gf(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},t})(),Z="-ms-",En="-moz-",N="-webkit-",$a="comm",Jr="rule",jr="decl",vf="@import",Na="@keyframes",yf="@layer",xf=Math.abs,Qn=String.fromCharCode,wf=Object.assign;function _f(t,e){return V(t,0)^45?(((e<<2^V(t,0))<<2^V(t,1))<<2^V(t,2))<<2^V(t,3):0}function Ra(t){return t.trim()}function bf(t,e){return(t=e.exec(t))?t[0]:t}function R(t,e,n){return t.replace(e,n)}function Dr(t,e){return t.indexOf(e)}function V(t,e){return t.charCodeAt(e)|0}function Pe(t,e,n){return t.slice(e,n)}function dt(t){return t.length}function ti(t){return t.length}function tn(t,e){return e.push(t),t}function kf(t,e){return t.map(e).join("")}var Kn=1,le=1,Fa=0,j=0,z=0,me="";function Jn(t,e,n,r,i,o,a){return{value:t,root:e,parent:n,type:r,props:i,children:o,line:Kn,column:le,length:a,return:""}}function ye(t,e){return wf(Jn("",null,null,"",null,null,0),t,{length:-t.length},e)}function Tf(){return z}function Sf(){return z=j>0?V(me,--j):0,le--,z===10&&(le=1,Kn--),z}function nt(){return z=j<Fa?V(me,j++):0,le++,z===10&&(le=1,Kn++),z}function gt(){return V(me,j)}function cn(){return j}function Xe(t,e){return Pe(me,t,e)}function Ie(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Pa(t){return Kn=le=1,Fa=dt(me=t),j=0,[]}function Ia(t){return me="",t}function un(t){return Ra(Xe(j-1,Or(t===91?t+2:t===40?t+1:t)))}function Cf(t){for(;(z=gt())&&z<33;)nt();return Ie(t)>2||Ie(z)>3?"":" "}function Mf(t,e){for(;--e&&nt()&&!(z<48||z>102||z>57&&z<65||z>70&&z<97););return Xe(t,cn()+(e<6&&gt()==32&&nt()==32))}function Or(t){for(;nt();)switch(z){case t:return j;case 34:case 39:t!==34&&t!==39&&Or(z);break;case 40:t===41&&Or(t);break;case 92:nt();break}return j}function Af(t,e){for(;nt()&&t+z!==57;)if(t+z===84&&gt()===47)break;return"/*"+Xe(e,j-1)+"*"+Qn(t===47?t:nt())}function Ef(t){for(;!Ie(gt());)nt();return Xe(t,j)}function Df(t){return Ia(ln("",null,null,null,[""],t=Pa(t),0,[0],t))}function ln(t,e,n,r,i,o,a,s,c){for(var u=0,l=0,f=a,h=0,d=0,m=0,g=1,v=1,y=1,w=0,_="",T=i,k=o,p=r,b=_;v;)switch(m=w,w=nt()){case 40:if(m!=108&&V(b,f-1)==58){Dr(b+=R(un(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:b+=un(w);break;case 9:case 10:case 13:case 32:b+=Cf(m);break;case 92:b+=Mf(cn()-1,7);continue;case 47:switch(gt()){case 42:case 47:tn(Of(Af(nt(),cn()),e,n),c);break;default:b+="/"}break;case 123*g:s[u++]=dt(b)*y;case 125*g:case 59:case 0:switch(w){case 0:case 125:v=0;case 59+l:y==-1&&(b=R(b,/\f/g,"")),d>0&&dt(b)-f&&tn(d>32?ji(b+";",r,n,f-1):ji(R(b," ","")+";",r,n,f-2),c);break;case 59:b+=";";default:if(tn(p=Ji(b,e,n,u,l,i,s,_,T=[],k=[],f),o),w===123)if(l===0)ln(b,e,p,p,T,o,f,s,k);else switch(h===99&&V(b,3)===110?100:h){case 100:case 108:case 109:case 115:ln(t,p,p,r&&tn(Ji(t,p,p,0,0,i,s,_,i,T=[],f),k),i,k,f,s,r?T:k);break;default:ln(b,p,p,p,[""],k,0,s,k)}}u=l=d=0,g=y=1,_=b="",f=a;break;case 58:f=1+dt(b),d=m;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&Sf()==125)continue}switch(b+=Qn(w),w*g){case 38:y=l>0?1:(b+="\f",-1);break;case 44:s[u++]=(dt(b)-1)*y,y=1;break;case 64:gt()===45&&(b+=un(nt())),h=gt(),l=f=dt(_=b+=Ef(cn())),w++;break;case 45:m===45&&dt(b)==2&&(g=0)}}return o}function Ji(t,e,n,r,i,o,a,s,c,u,l){for(var f=i-1,h=i===0?o:[""],d=ti(h),m=0,g=0,v=0;m<r;++m)for(var y=0,w=Pe(t,f+1,f=xf(g=a[m])),_=t;y<d;++y)(_=Ra(g>0?h[y]+" "+w:R(w,/&\f/g,h[y])))&&(c[v++]=_);return Jn(t,e,n,i===0?Jr:s,c,u,l)}function Of(t,e,n){return Jn(t,e,n,$a,Qn(Tf()),Pe(t,2,-2),0)}function ji(t,e,n,r){return Jn(t,e,n,jr,Pe(t,0,r),Pe(t,r+1,-1),r)}function re(t,e){for(var n="",r=ti(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function $f(t,e,n,r){switch(t.type){case yf:if(t.children.length)break;case vf:case jr:return t.return=t.return||t.value;case $a:return"";case Na:return t.return=t.value+"{"+re(t.children,r)+"}";case Jr:t.value=t.props.join(",")}return dt(n=re(t.children,r))?t.return=t.value+"{"+n+"}":""}function Nf(t){var e=ti(t);return function(n,r,i,o){for(var a="",s=0;s<e;s++)a+=t[s](n,r,i,o)||"";return a}}function Rf(t){return function(e){e.root||(e=e.return)&&t(e)}}function Ff(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Pf=function(e,n,r){for(var i=0,o=0;i=o,o=gt(),i===38&&o===12&&(n[r]=1),!Ie(o);)nt();return Xe(e,j)},If=function(e,n){var r=-1,i=44;do switch(Ie(i)){case 0:i===38&&gt()===12&&(n[r]=1),e[r]+=Pf(j-1,n,r);break;case 2:e[r]+=un(i);break;case 4:if(i===44){e[++r]=gt()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=Qn(i)}while(i=nt());return e},Lf=function(e,n){return Ia(If(Pa(e),n))},to=new WeakMap,Bf=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,i=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!to.get(r))&&!i){to.set(e,!0);for(var o=[],a=Lf(n,o),s=r.props,c=0,u=0;c<a.length;c++)for(var l=0;l<s.length;l++,u++)e.props[u]=o[c]?a[c].replace(/&\f/g,s[l]):s[l]+" "+a[c]}}},zf=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function La(t,e){switch(_f(t,e)){case 5103:return N+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return N+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return N+t+En+t+Z+t+t;case 6828:case 4268:return N+t+Z+t+t;case 6165:return N+t+Z+"flex-"+t+t;case 5187:return N+t+R(t,/(\w+).+(:[^]+)/,N+"box-$1$2"+Z+"flex-$1$2")+t;case 5443:return N+t+Z+"flex-item-"+R(t,/flex-|-self/,"")+t;case 4675:return N+t+Z+"flex-line-pack"+R(t,/align-content|flex-|-self/,"")+t;case 5548:return N+t+Z+R(t,"shrink","negative")+t;case 5292:return N+t+Z+R(t,"basis","preferred-size")+t;case 6060:return N+"box-"+R(t,"-grow","")+N+t+Z+R(t,"grow","positive")+t;case 4554:return N+R(t,/([^-])(transform)/g,"$1"+N+"$2")+t;case 6187:return R(R(R(t,/(zoom-|grab)/,N+"$1"),/(image-set)/,N+"$1"),t,"")+t;case 5495:case 3959:return R(t,/(image-set\([^]*)/,N+"$1$`$1");case 4968:return R(R(t,/(.+:)(flex-)?(.*)/,N+"box-pack:$3"+Z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+N+t+t;case 4095:case 3583:case 4068:case 2532:return R(t,/(.+)-inline(.+)/,N+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(dt(t)-1-e>6)switch(V(t,e+1)){case 109:if(V(t,e+4)!==45)break;case 102:return R(t,/(.+:)(.+)-([^]+)/,"$1"+N+"$2-$3$1"+En+(V(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Dr(t,"stretch")?La(R(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(V(t,e+1)!==115)break;case 6444:switch(V(t,dt(t)-3-(~Dr(t,"!important")&&10))){case 107:return R(t,":",":"+N)+t;case 101:return R(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+N+(V(t,14)===45?"inline-":"")+"box$3$1"+N+"$2$3$1"+Z+"$2box$3")+t}break;case 5936:switch(V(t,e+11)){case 114:return N+t+Z+R(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return N+t+Z+R(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return N+t+Z+R(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return N+t+Z+t+t}return t}var Wf=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case jr:e.return=La(e.value,e.length);break;case Na:return re([ye(e,{value:R(e.value,"@","@"+N)})],i);case Jr:if(e.length)return kf(e.props,function(o){switch(bf(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return re([ye(e,{props:[R(o,/:(read-\w+)/,":"+En+"$1")]})],i);case"::placeholder":return re([ye(e,{props:[R(o,/:(plac\w+)/,":"+N+"input-$1")]}),ye(e,{props:[R(o,/:(plac\w+)/,":"+En+"$1")]}),ye(e,{props:[R(o,/:(plac\w+)/,Z+"input-$1")]})],i)}return""})}},Hf=[Wf],Yf=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var v=g.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=e.stylisPlugins||Hf,o={},a,s=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var v=g.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)o[v[y]]=!0;s.push(g)});var c,u=[Bf,zf];{var l,f=[$f,Rf(function(g){l.insert(g)})],h=Nf(u.concat(i,f)),d=function(v){return re(Df(v),h)};c=function(v,y,w,_){l=w,d(v?v+"{"+y.styles+"}":y.styles),_&&(m.inserted[y.name]=!0)}}var m={key:n,sheet:new pf({key:n,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:c};return m.sheet.hydrate(s),m};function Uf(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Vf={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Xf=/[A-Z]|^ms/g,qf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ba=function(e){return e.charCodeAt(1)===45},eo=function(e){return e!=null&&typeof e!="boolean"},dr=Ff(function(t){return Ba(t)?t:t.replace(Xf,"-$&").toLowerCase()}),no=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(qf,function(r,i,o){return $t={name:i,styles:o,next:$t},i})}return Vf[e]!==1&&!Ba(e)&&typeof n=="number"&&n!==0?n+"px":n};function Dn(t,e,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return $t={name:i.name,styles:i.styles,next:$t},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)$t={name:a.name,styles:a.styles,next:$t},a=a.next;var s=o.styles+";";return s}return Gf(t,e,n)}}var c=n;if(e==null)return c;var u=e[c];return u!==void 0?u:c}function Gf(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Dn(t,e,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var s=a;e!=null&&e[s]!==void 0?r+=o+"{"+e[s]+"}":eo(s)&&(r+=dr(o)+":"+no(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(e==null||e[a[0]]===void 0))for(var c=0;c<a.length;c++)eo(a[c])&&(r+=dr(o)+":"+no(o,a[c])+";");else{var u=Dn(t,e,a);switch(o){case"animation":case"animationName":{r+=dr(o)+":"+u+";";break}default:r+=o+"{"+u+"}"}}}return r}var ro=/label:\s*([^\s;{]+)\s*(;|$)/g,$t;function gr(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var r=!0,i="";$t=void 0;var o=t[0];if(o==null||o.raw===void 0)r=!1,i+=Dn(n,e,o);else{var a=o;i+=a[0]}for(var s=1;s<t.length;s++)if(i+=Dn(n,e,t[s]),r){var c=o;i+=c[s]}ro.lastIndex=0;for(var u="",l;(l=ro.exec(i))!==null;)u+="-"+l[1];var f=Uf(i)+u;return{name:f,styles:i,next:$t}}function za(t,e,n){var r="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):i&&(r+=i+" ")}),r}var Zf=function(e,n,r){var i=e.key+"-"+n.name;e.registered[i]===void 0&&(e.registered[i]=n.styles)},Qf=function(e,n,r){Zf(e,n);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+i:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function io(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function oo(t,e,n){var r=[],i=za(t,r,n);return r.length<2?n:i+e(r)}var Kf=function(e){var n=Yf(e);n.sheet.speedy=function(s){this.isSpeedy=s},n.compat=!0;var r=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];var f=gr(u,n.registered,void 0);return Qf(n,f),n.key+"-"+f.name},i=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];var f=gr(u,n.registered),h="animation-"+f.name;return io(n,{name:f.name,styles:"@keyframes "+h+"{"+f.styles+"}"}),h},o=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];var f=gr(u,n.registered);io(n,f)},a=function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];return oo(n.registered,r,Jf(u))};return{css:r,cx:a,injectGlobal:o,keyframes:i,hydrate:function(c){c.forEach(function(u){n.inserted[u]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:za.bind(null,n.registered),merge:oo.bind(null,n.registered,r)}},Jf=function t(e){for(var n="",r=0;r<e.length;r++){var i=e[r];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))o=t(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(n&&(n+=" "),n+=o)}}return n},Wa=Kf({key:"css"}),jn=Wa.injectGlobal,W=Wa.css,mr,ao;function jf(){return ao||(ao=1,mr=function(e,n){n||(n=[0,""]),e=String(e);var r=parseFloat(e,10);return n[0]=r,n[1]=e.match(/[\d.\-\+]*\s*(.*)/)[1]||"",n}),mr}var pr,so;function th(){if(so)return pr;so=1;var t=jf();pr=i;var e=r("in",document.body);function n(o,a){var s=t(getComputedStyle(o).getPropertyValue(a));return s[0]*i(s[1],o)}function r(o,a){var s=document.createElement("div");s.style.height="128"+o,a.appendChild(s);var c=n(s,"height")/128;return a.removeChild(s),c}function i(o,a){if(!o)return null;switch(a=a||document.body,o=(o+""||"px").trim().toLowerCase(),(a===window||a===document)&&(a=document.body),o){case"%":return a.clientHeight/100;case"ch":case"ex":return r(o,a);case"em":return n(a,"font-size");case"rem":return n(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return e;case"cm":return e/2.54;case"mm":return e/25.4;case"pt":return e/72;case"pc":return e/6;case"px":return 1}var s=t(o);if(!isNaN(s[0])&&s[1]){var c=i(s[1],a);return typeof c=="number"?s[0]*c:null}return null}return pr}th();function Ha(){const t=()=>Math.floor((1+crypto.getRandomValues(new Uint32Array(1))[0])*65536).toString(16).substring(1);return`${t()+t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`}function eh(t,e){const n=t.substr(4,t.length-5);return getComputedStyle(e).getPropertyValue(n)}function nh(t,e,n=0){const[r,i,o,a]=[t.x+n,t.y+t.height-2*n,t.x+t.width-2*n,t.y+n],[s,c,u,l]=[e.x+n,e.y+e.height-2*n,e.x+e.width-2*n,e.y+n];return!(i<l||c<a||o<s||u<r)}function ei(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Ya(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function qe(){}var Le=.7,On=1/Le,ie="\\s*([+-]?\\d+)\\s*",Be="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",mt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rh=/^#([0-9a-f]{3,8})$/,ih=new RegExp(`^rgb\\(${ie},${ie},${ie}\\)$`),oh=new RegExp(`^rgb\\(${mt},${mt},${mt}\\)$`),ah=new RegExp(`^rgba\\(${ie},${ie},${ie},${Be}\\)$`),sh=new RegExp(`^rgba\\(${mt},${mt},${mt},${Be}\\)$`),ch=new RegExp(`^hsl\\(${Be},${mt},${mt}\\)$`),uh=new RegExp(`^hsla\\(${Be},${mt},${mt},${Be}\\)$`),co={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};ei(qe,Ut,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:uo,formatHex:uo,formatHex8:lh,formatHsl:fh,formatRgb:lo,toString:lo});function uo(){return this.rgb().formatHex()}function lh(){return this.rgb().formatHex8()}function fh(){return Ua(this).formatHsl()}function lo(){return this.rgb().formatRgb()}function Ut(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=rh.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?fo(e):n===3?new K(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?en(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?en(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=ih.exec(t))?new K(e[1],e[2],e[3],1):(e=oh.exec(t))?new K(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=ah.exec(t))?en(e[1],e[2],e[3],e[4]):(e=sh.exec(t))?en(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=ch.exec(t))?mo(e[1],e[2]/100,e[3]/100,1):(e=uh.exec(t))?mo(e[1],e[2]/100,e[3]/100,e[4]):co.hasOwnProperty(t)?fo(co[t]):t==="transparent"?new K(NaN,NaN,NaN,0):null}function fo(t){return new K(t>>16&255,t>>8&255,t&255,1)}function en(t,e,n,r){return r<=0&&(t=e=n=NaN),new K(t,e,n,r)}function hh(t){return t instanceof qe||(t=Ut(t)),t?(t=t.rgb(),new K(t.r,t.g,t.b,t.opacity)):new K}function $r(t,e,n,r){return arguments.length===1?hh(t):new K(t,e,n,r??1)}function K(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}ei(K,$r,Ya(qe,{brighter(t){return t=t==null?On:Math.pow(On,t),new K(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Le:Math.pow(Le,t),new K(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new K(Wt(this.r),Wt(this.g),Wt(this.b),$n(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ho,formatHex:ho,formatHex8:dh,formatRgb:go,toString:go}));function ho(){return`#${Pt(this.r)}${Pt(this.g)}${Pt(this.b)}`}function dh(){return`#${Pt(this.r)}${Pt(this.g)}${Pt(this.b)}${Pt((isNaN(this.opacity)?1:this.opacity)*255)}`}function go(){const t=$n(this.opacity);return`${t===1?"rgb(":"rgba("}${Wt(this.r)}, ${Wt(this.g)}, ${Wt(this.b)}${t===1?")":`, ${t})`}`}function $n(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Wt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Pt(t){return t=Wt(t),(t<16?"0":"")+t.toString(16)}function mo(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new st(t,e,n,r)}function Ua(t){if(t instanceof st)return new st(t.h,t.s,t.l,t.opacity);if(t instanceof qe||(t=Ut(t)),!t)return new st;if(t instanceof st)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,c=(o+i)/2;return s?(e===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-e)/s+2:a=(e-n)/s+4,s/=c<.5?o+i:2-o-i,a*=60):s=c>0&&c<1?0:a,new st(a,s,c,t.opacity)}function ni(t,e,n,r){return arguments.length===1?Ua(t):new st(t,e,n,r??1)}function st(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}ei(st,ni,Ya(qe,{brighter(t){return t=t==null?On:Math.pow(On,t),new st(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Le:Math.pow(Le,t),new st(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new K(vr(t>=240?t-240:t+120,i,r),vr(t,i,r),vr(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new st(po(this.h),nn(this.s),nn(this.l),$n(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=$n(this.opacity);return`${t===1?"hsl(":"hsla("}${po(this.h)}, ${nn(this.s)*100}%, ${nn(this.l)*100}%${t===1?")":`, ${t})`}`}}));function po(t){return t=(t||0)%360,t<0?t+360:t}function nn(t){return Math.max(0,Math.min(1,t||0))}function vr(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const ke=globalThis?.UNOVIS_COLORS||["#4D8CFD","#FF6B7E","#F4B83E","#A6CC74","#00C19A","#6859BE"],gh=globalThis?.UNOVIS_COLORS_DARK||["#4D8CFD","#FF6B7E","#FFC16D","#A6CC74","#00C19A","#7887E0"],Et=t=>`--vis-${ee(t)?`color${t%ke.length}`:t}`;function mh(t,e=.4){const n=ni(t);return n.l=n.l*(1+e),n.formatHex()}function ph(t,e=.4,n=.6){const r=ni(t);return r.s=r.s*(1-n),r.l=r.l*(1-e),r.formatHex()}const Nn=10,Nr=[{id:"stripes-diagonal",svg:'<path d="M-1,1 l2,-2 M0,10 l10,-10 M9,11 l2,-2" stroke="#000"/>'},{id:"dots",svg:'<path d="m0-1.5a1 1 0 010 3m10-3a1 1 0 000 3M5 3.5a1 1 0 010 3 1 1 0 010-3M0 8.5 a1 1 0 010 3m10-3a1 1 0 000 3" fill"#000"/>'},{id:"stripes-vertical",svg:'<path d="M 5,-1 L5,11" stroke="#000"/>'},{id:"crosshatch",svg:'<path d="M0 0L10 10ZM10 0L0 10Z" stroke="#000"/>'},{id:"waves",svg:'<path d="M0 4Q2.5 1 5 4 7.5 7 10 4v2Q7.5 9 5 6 2.5 3 0 6Z" fill="#000"/>'},{id:"circles",svg:'<circle cx="5" cy="5" r="3" stroke="#000" fill="#fff"/>'}],Rr=[{id:"circle",marker:'<circle cx="5" cy="5" r="5"/>',dashArray:[]},{id:"triangle",marker:'<path d="M5,0 L10,9 L0,9Z">',dashArray:[9,1]},{id:"diamond",marker:'<path d="M 0 5 L5 0 L 10 5 L 5 10 L 0 5Z">',dashArray:[2]},{id:"arrow",marker:'<path d="M4 0 0 0 6 5 0 10 4 10 10 5Z">',dashArray:[2,3,8,3]},{id:"square",marker:'<rect x="1" y="1" width="8" height="8"/>',dashArray:[6]},{id:"star",marker:'<path d="m2 9 3-9 3 9L0 3h10Z"/>',dashArray:[1,6]}];function Dt(t){return`vis-${`pattern-${t.svg?"fill":"marker"}`}-${t.id}`}const vh=t=>`<mask id="${Dt(t)}">
2
2
  <pattern id="${t.id}" viewBox="0 0 10 10" width="${Nn}" height="${Nn}" patternUnits="userSpaceOnUse">
3
3
  <rect width="100%" height="100%" fill="#fff"/>
4
4
  ${t.svg}
@@ -12,7 +12,7 @@ import{P as rc,c as Oe,am as Ei,K as te,cg as ic,S as oc,T as He,U as ac,a4 as o
12
12
  markerWidth="${Nn}"
13
13
  markerHeight="${Nn}">
14
14
  ${t.marker}
15
- </marker>`;function xh(){const t=Nr.map(vh).concat(Rr.map(yh)).join(""),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.style.position="fixed",e.style.zIndex="-99999999",e.innerHTML=`<defs>${t}</defs>`,document.body.appendChild(e)}typeof window<"u"&&xh();const Va=globalThis?.UNOVIS_FONT_W2H_RATIO_DEFAULT||.5,Xa=globalThis?.UNOVIS_TEXT_SEPARATOR_DEFAULT||[" ","-",".",","],qa=globalThis?.UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT||"-",De=globalThis?.UNOVIS_TEXT_DEFAULT||{text:"",fontSize:12,fontFamily:"var(--vis-font-family)",lineHeight:1.25,marginTop:0,marginBottom:0};Jn`
15
+ </marker>`;function xh(){const t=Nr.map(vh).concat(Rr.map(yh)).join(""),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.style.position="fixed",e.style.zIndex="-99999999",e.innerHTML=`<defs>${t}</defs>`,document.body.appendChild(e)}typeof window<"u"&&xh();const Va=globalThis?.UNOVIS_FONT_W2H_RATIO_DEFAULT||.5,Xa=globalThis?.UNOVIS_TEXT_SEPARATOR_DEFAULT||[" ","-",".",","],qa=globalThis?.UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT||"-",De=globalThis?.UNOVIS_TEXT_DEFAULT||{text:"",fontSize:12,fontFamily:"var(--vis-font-family)",lineHeight:1.25,marginTop:0,marginBottom:0};jn`
16
16
  :root {
17
17
  label: vis-root-styles;
18
18
  --vis-font-family: Inter, Arial, "Helvetica Neue", Helvetica, sans-serif;
@@ -49,7 +49,7 @@ import{P as rc,c as Oe,am as Ei,K as te,cg as ic,S as oc,T as He,U as ac,a4 as o
49
49
  }
50
50
  `)}
51
51
  }
52
- `;function Ga(t=window?.document.body){return t?+eh("var(--vis-font-wh-ratio)",t):Va}var wh={value:()=>{}};function Za(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new fn(n)}function fn(t){this._=t}function _h(t,e){return t.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&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}fn.prototype=Za.prototype={constructor:fn,on:function(t,e){var n=this._,r=_h(t+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o<a;)if((i=(t=r[o]).type)&&(i=bh(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<a;)if(i=(t=r[o]).type)n[i]=vo(n[i],t.name,e);else if(e==null)for(i in n)n[i]=vo(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new fn(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,i=o.length;r<i;++r)o[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};function bh(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function vo(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=wh,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var fe=0,Te=0,xe=0,Qa=1e3,Rn,Se,Fn=0,Vt=0,tr=0,ze=typeof performance=="object"&&performance.now?performance:Date,Ka=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ri(){return Vt||(Ka(kh),Vt=ze.now()+tr)}function kh(){Vt=0}function Pn(){this._call=this._time=this._next=null}Pn.prototype=ja.prototype={constructor:Pn,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?ri():+n)+(e==null?0:+e),!this._next&&Se!==this&&(Se?Se._next=this:Rn=this,Se=this),this._call=t,this._time=n,Fr()},stop:function(){this._call&&(this._call=null,this._time=1/0,Fr())}};function ja(t,e,n){var r=new Pn;return r.restart(t,e,n),r}function Th(){ri(),++fe;for(var t=Rn,e;t;)(e=Vt-t._time)>=0&&t._call.call(void 0,e),t=t._next;--fe}function yo(){Vt=(Fn=ze.now())+tr,fe=Te=0;try{Th()}finally{fe=0,Ch(),Vt=0}}function Sh(){var t=ze.now(),e=t-Fn;e>Qa&&(tr-=e,Fn=t)}function Ch(){for(var t,e=Rn,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Rn=n);Se=t,Fr(r)}function Fr(t){if(!fe){Te&&(Te=clearTimeout(Te));var e=t-Vt;e>24?(t<1/0&&(Te=setTimeout(yo,t-ze.now()-tr)),xe&&(xe=clearInterval(xe))):(xe||(Fn=ze.now(),xe=setInterval(Sh,Qa)),fe=1,Ka(yo))}}function xo(t,e,n){var r=new Pn;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var Mh=Za("start","end","cancel","interrupt"),Ah=[],Ja=0,wo=1,Pr=2,hn=3,_o=4,Ir=5,dn=6;function er(t,e,n,r,i,o){var a=t.__transition;if(!a)t.__transition={};else if(n in a)return;Eh(t,n,{name:e,index:r,group:i,on:Mh,tween:Ah,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Ja})}function ii(t,e){var n=ut(t,e);if(n.state>Ja)throw new Error("too late; already scheduled");return n}function vt(t,e){var n=ut(t,e);if(n.state>hn)throw new Error("too late; already running");return n}function ut(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Eh(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=ja(o,0,n.time);function o(u){n.state=wo,n.timer.restart(a,n.delay,n.time),n.delay<=u&&a(u-n.delay)}function a(u){var l,f,h,d;if(n.state!==wo)return c();for(l in r)if(d=r[l],d.name===n.name){if(d.state===hn)return xo(a);d.state===_o?(d.state=dn,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[l]):+l<e&&(d.state=dn,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete r[l])}if(xo(function(){n.state===hn&&(n.state=_o,n.timer.restart(s,n.delay,n.time),s(u))}),n.state=Pr,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Pr){for(n.state=hn,i=new Array(h=n.tween.length),l=0,f=-1;l<h;++l)(d=n.tween[l].value.call(t,t.__data__,n.index,n.group))&&(i[++f]=d);i.length=f+1}}function s(u){for(var l=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(c),n.state=Ir,1),f=-1,h=i.length;++f<h;)i[f].call(t,l);n.state===Ir&&(n.on.call("end",t,t.__data__,n.index,n.group),c())}function c(){n.state=dn,n.timer.stop(),delete r[e];for(var u in r)return;delete t.__transition}}function oi(t,e){var n=t.__transition,r,i,o=!0,a;if(n){e=e==null?null:e+"";for(a in n){if((r=n[a]).name!==e){o=!1;continue}i=r.state>Pr&&r.state<Ir,r.state=dn,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[a]}o&&delete t.__transition}}function Dh(t){return this.each(function(){oi(this,t)})}const ai=t=>()=>t;function Oh(t,e){return function(n){return t+n*e}}function $h(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function Nh(t){return(t=+t)==1?ts:function(e,n){return n-e?$h(e,n,t):ai(isNaN(e)?n:e)}}function ts(t,e){var n=e-t;return n?Oh(t,n):ai(isNaN(t)?e:t)}const In=(function t(e){var n=Nh(e);function r(i,o){var a=n((i=$r(i)).r,(o=$r(o)).r),s=n(i.g,o.g),c=n(i.b,o.b),u=ts(i.opacity,o.opacity);return function(l){return i.r=a(l),i.g=s(l),i.b=c(l),i.opacity=u(l),i+""}}return r.gamma=t,r})(1);function Rh(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=t[i]*(1-o)+e[i]*o;return r}}function Fh(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Ph(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=pe(t[a],e[a]);for(;a<n;++a)o[a]=e[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function Ih(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function at(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Lh(t,e){var n={},r={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?n[i]=pe(t[i],e[i]):r[i]=e[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Lr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yr=new RegExp(Lr.source,"g");function Bh(t){return function(){return t}}function zh(t){return function(e){return t(e)+""}}function es(t,e){var n=Lr.lastIndex=yr.lastIndex=0,r,i,o,a=-1,s=[],c=[];for(t=t+"",e=e+"";(r=Lr.exec(t))&&(i=yr.exec(e));)(o=i.index)>n&&(o=e.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,c.push({i:a,x:at(r,i)})),n=yr.lastIndex;return n<e.length&&(o=e.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?c[0]?zh(c[0].x):Bh(e):(e=c.length,function(u){for(var l=0,f;l<e;++l)s[(f=c[l]).i]=f.x(u);return s.join("")})}function pe(t,e){var n=typeof e,r;return e==null||n==="boolean"?ai(e):(n==="number"?at:n==="string"?(r=Ut(e))?(e=r,In):es:e instanceof Ut?In:e instanceof Date?Ih:Fh(e)?Rh:Array.isArray(e)?Ph:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Lh:at)(t,e)}function si(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var bo=180/Math.PI,Br={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ns(t,e,n,r,i,o){var a,s,c;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),t*r<e*n&&(t=-t,e=-e,c=-c,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*bo,skewX:Math.atan(c)*bo,scaleX:a,scaleY:s}}var rn;function Wh(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Br:ns(e.a,e.b,e.c,e.d,e.e,e.f)}function Hh(t){return t==null||(rn||(rn=document.createElementNS("http://www.w3.org/2000/svg","g")),rn.setAttribute("transform",t),!(t=rn.transform.baseVal.consolidate()))?Br:(t=t.matrix,ns(t.a,t.b,t.c,t.d,t.e,t.f))}function rs(t,e,n,r){function i(u){return u.length?u.pop()+" ":""}function o(u,l,f,h,d,m){if(u!==f||l!==h){var g=d.push("translate(",null,e,null,n);m.push({i:g-4,x:at(u,f)},{i:g-2,x:at(l,h)})}else(f||h)&&d.push("translate("+f+e+h+n)}function a(u,l,f,h){u!==l?(u-l>180?l+=360:l-u>180&&(u+=360),h.push({i:f.push(i(f)+"rotate(",null,r)-2,x:at(u,l)})):l&&f.push(i(f)+"rotate("+l+r)}function s(u,l,f,h){u!==l?h.push({i:f.push(i(f)+"skewX(",null,r)-2,x:at(u,l)}):l&&f.push(i(f)+"skewX("+l+r)}function c(u,l,f,h,d,m){if(u!==f||l!==h){var g=d.push(i(d)+"scale(",null,",",null,")");m.push({i:g-4,x:at(u,f)},{i:g-2,x:at(l,h)})}else(f!==1||h!==1)&&d.push(i(d)+"scale("+f+","+h+")")}return function(u,l){var f=[],h=[];return u=t(u),l=t(l),o(u.translateX,u.translateY,l.translateX,l.translateY,f,h),a(u.rotate,l.rotate,f,h),s(u.skewX,l.skewX,f,h),c(u.scaleX,u.scaleY,l.scaleX,l.scaleY,f,h),u=l=null,function(d){for(var m=-1,g=h.length,v;++m<g;)f[(v=h[m]).i]=v.x(d);return f.join("")}}}var Yh=rs(Wh,"px, ","px)","deg)"),Uh=rs(Hh,", ",")",")");function Vh(t,e){e===void 0&&(e=t,t=pe);for(var n=0,r=e.length-1,i=e[0],o=new Array(r<0?0:r);n<r;)o[n]=t(i,i=e[++n]);return function(a){var s=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return o[s](a-s)}}function Xh(t,e){var n,r;return function(){var i=vt(this,t),o=i.tween;if(o!==n){r=n=o;for(var a=0,s=r.length;a<s;++a)if(r[a].name===e){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function qh(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=vt(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:e,value:n},c=0,u=i.length;c<u;++c)if(i[c].name===e){i[c]=s;break}c===u&&i.push(s)}o.tween=i}}function Gh(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=ut(this.node(),n).tween,i=0,o=r.length,a;i<o;++i)if((a=r[i]).name===t)return a.value;return null}return this.each((e==null?Xh:qh)(n,t,e))}function ci(t,e,n){var r=t._id;return t.each(function(){var i=vt(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return ut(i,r).value[e]}}function is(t,e){var n;return(typeof e=="number"?at:e instanceof Ut?In:(n=Ut(e))?(e=n,In):es)(t,e)}function Zh(t){return function(){this.removeAttribute(t)}}function Qh(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Kh(t,e,n){var r,i=n+"",o;return function(){var a=this.getAttribute(t);return a===i?null:a===r?o:o=e(r=a,n)}}function jh(t,e,n){var r,i=n+"",o;return function(){var a=this.getAttributeNS(t.space,t.local);return a===i?null:a===r?o:o=e(r=a,n)}}function Jh(t,e,n){var r,i,o;return function(){var a,s=n(this),c;return s==null?void this.removeAttribute(t):(a=this.getAttribute(t),c=s+"",a===c?null:a===r&&c===i?o:(i=c,o=e(r=a,s)))}}function td(t,e,n){var r,i,o;return function(){var a,s=n(this),c;return s==null?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local),c=s+"",a===c?null:a===r&&c===i?o:(i=c,o=e(r=a,s)))}}function ed(t,e){var n=Zn(t),r=n==="transform"?Uh:is;return this.attrTween(t,typeof e=="function"?(n.local?td:Jh)(n,r,ci(this,"attr."+t,e)):e==null?(n.local?Qh:Zh)(n):(n.local?jh:Kh)(n,r,e))}function nd(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function rd(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function id(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&rd(t,o)),n}return i._value=e,i}function od(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&nd(t,o)),n}return i._value=e,i}function ad(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=Zn(t);return this.tween(n,(r.local?id:od)(r,e))}function sd(t,e){return function(){ii(this,t).delay=+e.apply(this,arguments)}}function cd(t,e){return e=+e,function(){ii(this,t).delay=e}}function ud(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?sd:cd)(e,t)):ut(this.node(),e).delay}function ld(t,e){return function(){vt(this,t).duration=+e.apply(this,arguments)}}function fd(t,e){return e=+e,function(){vt(this,t).duration=e}}function hd(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?ld:fd)(e,t)):ut(this.node(),e).duration}function dd(t,e){if(typeof e!="function")throw new Error;return function(){vt(this,t).ease=e}}function gd(t){var e=this._id;return arguments.length?this.each(dd(e,t)):ut(this.node(),e).ease}function md(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;vt(this,t).ease=n}}function pd(t){if(typeof t!="function")throw new Error;return this.each(md(this._id,t))}function vd(t){typeof t!="function"&&(t=ha(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],a=o.length,s=r[i]=[],c,u=0;u<a;++u)(c=o[u])&&t.call(c,c.__data__,u,o)&&s.push(c);return new Tt(r,this._parents,this._name,this._id)}function yd(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var c=e[s],u=n[s],l=c.length,f=a[s]=new Array(l),h,d=0;d<l;++d)(h=c[d]||u[d])&&(f[d]=h);for(;s<r;++s)a[s]=e[s];return new Tt(a,this._parents,this._name,this._id)}function xd(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function wd(t,e,n){var r,i,o=xd(e)?ii:vt;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}function _d(t,e){var n=this._id;return arguments.length<2?ut(this.node(),n).on.on(t):this.each(wd(n,t,e))}function bd(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function kd(){return this.on("end.remove",bd(this._id))}function Td(t){var e=this._name,n=this._id;typeof t!="function"&&(t=qr(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s=r[a],c=s.length,u=o[a]=new Array(c),l,f,h=0;h<c;++h)(l=s[h])&&(f=t.call(l,l.__data__,h,s))&&("__data__"in l&&(f.__data__=l.__data__),u[h]=f,er(u[h],e,n,h,u,ut(l,n)));return new Tt(o,this._parents,e,n)}function Sd(t){var e=this._name,n=this._id;typeof t!="function"&&(t=fa(t));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var c=r[s],u=c.length,l,f=0;f<u;++f)if(l=c[f]){for(var h=t.call(l,l.__data__,f,c),d,m=ut(l,n),g=0,v=h.length;g<v;++g)(d=h[g])&&er(d,e,n,g,h,m);o.push(h),a.push(l)}return new Tt(o,a,e,n)}var Cd=Ye.prototype.constructor;function Md(){return new Cd(this._groups,this._parents)}function Ad(t,e){var n,r,i;return function(){var o=se(this,t),a=(this.style.removeProperty(t),se(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}function os(t){return function(){this.style.removeProperty(t)}}function Ed(t,e,n){var r,i=n+"",o;return function(){var a=se(this,t);return a===i?null:a===r?o:o=e(r=a,n)}}function Dd(t,e,n){var r,i,o;return function(){var a=se(this,t),s=n(this),c=s+"";return s==null&&(c=s=(this.style.removeProperty(t),se(this,t))),a===c?null:a===r&&c===i?o:(i=c,o=e(r=a,s))}}function Od(t,e){var n,r,i,o="style."+e,a="end."+o,s;return function(){var c=vt(this,t),u=c.on,l=c.value[o]==null?s||(s=os(e)):void 0;(u!==n||i!==l)&&(r=(n=u).copy()).on(a,i=l),c.on=r}}function $d(t,e,n){var r=(t+="")=="transform"?Yh:is;return e==null?this.styleTween(t,Ad(t,r)).on("end.style."+t,os(t)):typeof e=="function"?this.styleTween(t,Dd(t,r,ci(this,"style."+t,e))).each(Od(this._id,t)):this.styleTween(t,Ed(t,r,e),n).on("end.style."+t,null)}function Nd(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Rd(t,e,n){var r,i;function o(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&Nd(t,a,n)),r}return o._value=e,o}function Fd(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,Rd(t,e,n??""))}function Pd(t){return function(){this.textContent=t}}function Id(t){return function(){var e=t(this);this.textContent=e??""}}function Ld(t){return this.tween("text",typeof t=="function"?Id(ci(this,"text",t)):Pd(t==null?"":t+""))}function Bd(t){return function(e){this.textContent=t.call(this,e)}}function zd(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&Bd(i)),e}return r._value=t,r}function Wd(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,zd(t))}function Hd(){for(var t=this._name,e=this._id,n=as(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],s=a.length,c,u=0;u<s;++u)if(c=a[u]){var l=ut(c,e);er(c,t,n,u,a,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Tt(r,this._parents,t,n)}function Yd(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(o,a){var s={value:a},c={value:function(){--i===0&&o()}};n.each(function(){var u=vt(this,r),l=u.on;l!==t&&(e=(t=l).copy(),e._.cancel.push(s),e._.interrupt.push(s),e._.end.push(c)),u.on=e}),i===0&&o()})}var Ud=0;function Tt(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function as(){return++Ud}var yt=Ye.prototype;Tt.prototype={constructor:Tt,select:Td,selectAll:Sd,selectChild:yt.selectChild,selectChildren:yt.selectChildren,filter:vd,merge:yd,selection:Md,transition:Hd,call:yt.call,nodes:yt.nodes,node:yt.node,size:yt.size,empty:yt.empty,each:yt.each,on:_d,attr:ed,attrTween:ad,style:$d,styleTween:Fd,text:Ld,textTween:Wd,remove:kd,tween:Gh,delay:ud,duration:hd,ease:gd,easeVarying:pd,end:Yd,[Symbol.iterator]:yt[Symbol.iterator]};const ko=t=>+t;function Vd(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Xd={time:null,delay:0,duration:250,ease:Vd};function qd(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function Gd(t){var e,n;t instanceof Tt?(e=t._id,t=t._name):(e=as(),(n=Xd).time=ri(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],s=a.length,c,u=0;u<s;++u)(c=a[u])&&er(c,t,e,u,a,n||qd(c,e));return new Tt(r,this._parents,t,e)}Ye.prototype.interrupt=Dh;Ye.prototype.transition=Gd;function It(t,e,n){if(t.nodes().forEach(r=>oi(r)),e){const r=t.transition().duration(e);return n&&r.ease(n),r}else return t}class ui{constructor(e){this.data=e}get data(){return this._data}set data(e){this._data=e}}var D;(function(t){t.X="x",t.Y="y"})(D||(D={}));function lt(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function ss(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const To=Symbol("implicit");function li(){var t=new Li,e=[],n=[],r=To;function i(o){let a=t.get(o);if(a===void 0){if(r!==To)return r;t.set(o,a=e.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return e.slice();e=[],t=new Li;for(const a of o)t.has(a)||t.set(a,e.push(a)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return li(e,n).unknown(r)},lt.apply(i,arguments),i}function fi(){var t=li().unknown(void 0),e=t.domain,n=t.range,r=0,i=1,o,a,s=!1,c=0,u=0,l=.5;delete t.unknown;function f(){var h=e().length,d=i<r,m=d?i:r,g=d?r:i;o=(g-m)/Math.max(1,h-c+u*2),s&&(o=Math.floor(o)),m+=(g-m-o*(h-c))*l,a=o*(1-c),s&&(m=Math.round(m),a=Math.round(a));var v=Pl(h).map(function(y){return m+o*y});return n(d?v.reverse():v)}return t.domain=function(h){return arguments.length?(e(h),f()):e()},t.range=function(h){return arguments.length?([r,i]=h,r=+r,i=+i,f()):[r,i]},t.rangeRound=function(h){return[r,i]=h,r=+r,i=+i,s=!0,f()},t.bandwidth=function(){return a},t.step=function(){return o},t.round=function(h){return arguments.length?(s=!!h,f()):s},t.padding=function(h){return arguments.length?(c=Math.min(1,u=+h),f()):c},t.paddingInner=function(h){return arguments.length?(c=Math.min(1,h),f()):c},t.paddingOuter=function(h){return arguments.length?(u=+h,f()):u},t.align=function(h){return arguments.length?(l=Math.max(0,Math.min(1,h)),f()):l},t.copy=function(){return fi(e(),[r,i]).round(s).paddingInner(c).paddingOuter(u).align(l)},lt.apply(f(),arguments)}function cs(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return cs(e())},t}function Zd(){return cs(fi.apply(null,arguments).paddingInner(1))}function Qd(t){return function(){return t}}function zr(t){return+t}var So=[0,1];function j(t){return t}function Wr(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Qd(isNaN(e)?NaN:.5)}function Kd(t,e){var n;return t>e&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function jd(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=Wr(i,r),o=n(a,o)):(r=Wr(r,i),o=n(o,a)),function(s){return o(r(s))}}function Jd(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)i[a]=Wr(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(s){var c=Ue(t,s,1,r)-1;return o[c](i[c](s))}}function Ge(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function nr(){var t=So,e=So,n=pe,r,i,o,a=j,s,c,u;function l(){var h=Math.min(t.length,e.length);return a!==j&&(a=Kd(t[0],t[h-1])),s=h>2?Jd:jd,c=u=null,f}function f(h){return h==null||isNaN(h=+h)?o:(c||(c=s(t.map(r),e,n)))(r(a(h)))}return f.invert=function(h){return a(i((u||(u=s(e,t.map(r),at)))(h)))},f.domain=function(h){return arguments.length?(t=Array.from(h,zr),l()):t.slice()},f.range=function(h){return arguments.length?(e=Array.from(h),l()):e.slice()},f.rangeRound=function(h){return e=Array.from(h),n=si,l()},f.clamp=function(h){return arguments.length?(a=h?!0:j,l()):a!==j},f.interpolate=function(h){return arguments.length?(n=h,l()):n},f.unknown=function(h){return arguments.length?(o=h,f):o},function(h,d){return r=h,i=d,l()}}function us(){return nr()(j,j)}function tg(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Ln(t,e){if(!isFinite(t)||t===0)return null;var n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function he(t){return t=Ln(Math.abs(t)),t?t[1]:NaN}function eg(t,e){return function(n,r){for(var i=n.length,o=[],a=0,s=t[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),o.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(e)}}function ng(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var rg=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function We(t){if(!(e=rg.exec(t)))throw new Error("invalid format: "+t);var e;return new hi({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}We.prototype=hi.prototype;function hi(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}hi.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function ig(t){t:for(var e=t.length,n=1,r=-1,i;n<e;++n)switch(t[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+t[n])break t;r>0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}var Bn;function og(t,e){var n=Ln(t,e);if(!n)return Bn=void 0,t.toPrecision(e);var r=n[0],i=n[1],o=i-(Bn=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Ln(t,Math.max(0,e+o-1))[0]}function Co(t,e){var n=Ln(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Mo={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:tg,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Co(t*100,e),r:Co,s:og,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Ao(t){return t}var Eo=Array.prototype.map,Do=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ag(t){var e=t.grouping===void 0||t.thousands===void 0?Ao:eg(Eo.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",o=t.numerals===void 0?Ao:ng(Eo.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",s=t.minus===void 0?"−":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function u(f,h){f=We(f);var d=f.fill,m=f.align,g=f.sign,v=f.symbol,y=f.zero,w=f.width,_=f.comma,T=f.precision,k=f.trim,p=f.type;p==="n"?(_=!0,p="g"):Mo[p]||(T===void 0&&(T=12),k=!0,p="g"),(y||d==="0"&&m==="=")&&(y=!0,d="0",m="=");var b=(h&&h.prefix!==void 0?h.prefix:"")+(v==="$"?n:v==="#"&&/[boxX]/.test(p)?"0"+p.toLowerCase():""),I=(v==="$"?r:/[%p]/.test(p)?a:"")+(h&&h.suffix!==void 0?h.suffix:""),F=Mo[p],E=/[defgprs%]/.test(p);T=T===void 0?6:/[gprs]/.test(p)?Math.max(1,Math.min(21,T)):Math.max(0,Math.min(20,T));function Y(M){var q=b,G=I,ft,Qe,Zt;if(p==="c")G=F(M)+G,M="";else{M=+M;var Qt=M<0||1/M<0;if(M=isNaN(M)?c:F(Math.abs(M),T),k&&(M=ig(M)),Qt&&+M==0&&g!=="+"&&(Qt=!1),q=(Qt?g==="("?g:s:g==="-"||g==="("?"":g)+q,G=(p==="s"&&!isNaN(M)&&Bn!==void 0?Do[8+Bn/3]:"")+G+(Qt&&g==="("?")":""),E){for(ft=-1,Qe=M.length;++ft<Qe;)if(Zt=M.charCodeAt(ft),48>Zt||Zt>57){G=(Zt===46?i+M.slice(ft+1):M.slice(ft))+G,M=M.slice(0,ft);break}}}_&&!y&&(M=e(M,1/0));var Kt=q.length+M.length+G.length,ot=Kt<w?new Array(w-Kt+1).join(d):"";switch(_&&y&&(M=e(ot+M,ot.length?w-G.length:1/0),ot=""),m){case"<":M=q+M+G+ot;break;case"=":M=q+ot+M+G;break;case"^":M=ot.slice(0,Kt=ot.length>>1)+q+M+G+ot.slice(Kt);break;default:M=ot+q+M+G;break}return o(M)}return Y.toString=function(){return f+""},Y}function l(f,h){var d=Math.max(-8,Math.min(8,Math.floor(he(h)/3)))*3,m=Math.pow(10,-d),g=u((f=We(f),f.type="f",f),{suffix:Do[8+d/3]});return function(v){return g(m*v)}}return{format:u,formatPrefix:l}}var on,di,ls;sg({thousands:",",grouping:[3],currency:["$",""]});function sg(t){return on=ag(t),di=on.format,ls=on.formatPrefix,on}function cg(t){return Math.max(0,-he(Math.abs(t)))}function ug(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(he(e)/3)))*3-he(Math.abs(t)))}function lg(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,he(e)-he(t))+1}function fg(t,e,n,r){var i=Mr(t,e,n),o;switch(r=We(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(o=ug(i,a))&&(r.precision=o),ls(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=lg(i,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=cg(i))&&(r.precision=o-(r.type==="%")*2);break}}return di(r)}function Xt(t){var e=t.domain;return t.ticks=function(n){var r=e();return Sr(r[0],r[r.length-1],n??10)},t.tickFormat=function(n,r){var i=e();return fg(i[0],i[i.length-1],n??10,r)},t.nice=function(n){n==null&&(n=10);var r=e(),i=0,o=r.length-1,a=r[i],s=r[o],c,u,l=10;for(s<a&&(u=a,a=s,s=u,u=i,i=o,o=u);l-- >0;){if(u=Cr(a,s,n),u===c)return r[i]=a,r[o]=s,e(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;c=u}return t},t}function fs(){var t=us();return t.copy=function(){return Ge(t,fs())},lt.apply(t,arguments),Xt(t)}function hs(t){var e;function n(r){return r==null||isNaN(r=+r)?e:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(t=Array.from(r,zr),n):t.slice()},n.unknown=function(r){return arguments.length?(e=r,n):e},n.copy=function(){return hs(t).unknown(e)},t=arguments.length?Array.from(t,zr):[0,1],Xt(n)}function ds(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],o=t[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),t[n]=e.floor(i),t[r]=e.ceil(o),t}function Oo(t){return Math.log(t)}function $o(t){return Math.exp(t)}function hg(t){return-Math.log(-t)}function dg(t){return-Math.exp(-t)}function gg(t){return isFinite(t)?+("1e"+t):t<0?0:t}function mg(t){return t===10?gg:t===Math.E?Math.exp:e=>Math.pow(t,e)}function pg(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function No(t){return(e,n)=>-t(-e,n)}function vg(t){const e=t(Oo,$o),n=e.domain;let r=10,i,o;function a(){return i=pg(r),o=mg(r),n()[0]<0?(i=No(i),o=No(o),t(hg,dg)):t(Oo,$o),e}return e.base=function(s){return arguments.length?(r=+s,a()):r},e.domain=function(s){return arguments.length?(n(s),a()):n()},e.ticks=s=>{const c=n();let u=c[0],l=c[c.length-1];const f=l<u;f&&([u,l]=[l,u]);let h=i(u),d=i(l),m,g;const v=s==null?10:+s;let y=[];if(!(r%1)&&d-h<v){if(h=Math.floor(h),d=Math.ceil(d),u>0){for(;h<=d;++h)for(m=1;m<r;++m)if(g=h<0?m/o(-h):m*o(h),!(g<u)){if(g>l)break;y.push(g)}}else for(;h<=d;++h)for(m=r-1;m>=1;--m)if(g=h>0?m/o(-h):m*o(h),!(g<u)){if(g>l)break;y.push(g)}y.length*2<v&&(y=Sr(u,l,v))}else y=Sr(h,d,Math.min(d-h,v)).map(o);return f?y.reverse():y},e.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=We(c)).precision==null&&(c.trim=!0),c=di(c)),s===1/0)return c;const u=Math.max(1,r*s/e.ticks().length);return l=>{let f=l/o(Math.round(i(l)));return f*r<r-.5&&(f*=r),f<=u?c(l):""}},e.nice=()=>n(ds(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),e}function gs(){const t=vg(nr()).domain([1,10]);return t.copy=()=>Ge(t,gs()).base(t.base()),lt.apply(t,arguments),t}function Ro(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Fo(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function yg(t){var e=1,n=t(Ro(e),Fo(e));return n.constant=function(r){return arguments.length?t(Ro(e=+r),Fo(e)):e},Xt(n)}function ms(){var t=yg(nr());return t.copy=function(){return Ge(t,ms()).constant(t.constant())},lt.apply(t,arguments)}function Po(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function xg(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function wg(t){return t<0?-t*t:t*t}function _g(t){var e=t(j,j),n=1;function r(){return n===1?t(j,j):n===.5?t(xg,wg):t(Po(n),Po(1/n))}return e.exponent=function(i){return arguments.length?(n=+i,r()):n},Xt(e)}function gi(){var t=_g(nr());return t.copy=function(){return Ge(t,gi()).exponent(t.exponent())},lt.apply(t,arguments),t}function bg(){return gi.apply(null,arguments).exponent(.5)}function ps(){var t=[],e=[],n=[],r;function i(){var a=0,s=Math.max(1,e.length);for(n=new Array(s-1);++a<s;)n[a-1]=$l(t,a/s);return o}function o(a){return a==null||isNaN(a=+a)?r:e[Ue(n,a)]}return o.invertExtent=function(a){var s=e.indexOf(a);return s<0?[NaN,NaN]:[s>0?n[s-1]:t[0],s<n.length?n[s]:t[t.length-1]]},o.domain=function(a){if(!arguments.length)return t.slice();t=[];for(let s of a)s!=null&&!isNaN(s=+s)&&t.push(s);return t.sort(Ae),i()},o.range=function(a){return arguments.length?(e=Array.from(a),i()):e.slice()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return ps().domain(t).range(e).unknown(r)},lt.apply(o,arguments)}function vs(){var t=0,e=1,n=1,r=[.5],i=[0,1],o;function a(c){return c!=null&&c<=c?i[Ue(r,c,0,n)]:o}function s(){var c=-1;for(r=new Array(n);++c<n;)r[c]=((c+1)*e-(c-n)*t)/(n+1);return a}return a.domain=function(c){return arguments.length?([t,e]=c,t=+t,e=+e,s()):[t,e]},a.range=function(c){return arguments.length?(n=(i=Array.from(c)).length-1,s()):i.slice()},a.invertExtent=function(c){var u=i.indexOf(c);return u<0?[NaN,NaN]:u<1?[t,r[0]]:u>=n?[r[n-1],e]:[r[u-1],r[u]]},a.unknown=function(c){return arguments.length&&(o=c),a},a.thresholds=function(){return r.slice()},a.copy=function(){return vs().domain([t,e]).range(i).unknown(o)},lt.apply(Xt(a),arguments)}function ys(){var t=[.5],e=[0,1],n,r=1;function i(o){return o!=null&&o<=o?e[Ue(t,o,0,r)]:n}return i.domain=function(o){return arguments.length?(t=Array.from(o),r=Math.min(t.length,e.length-1),i):t.slice()},i.range=function(o){return arguments.length?(e=Array.from(o),r=Math.min(t.length,e.length-1),i):e.slice()},i.invertExtent=function(o){var a=e.indexOf(o);return[t[a-1],t[a]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return ys().domain(t).range(e).unknown(n)},lt.apply(i,arguments)}const xr=new Date,wr=new Date;function H(t,e,n,r){function i(o){return t(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(t(o=new Date(+o)),o),i.ceil=o=>(t(o=new Date(o-1)),e(o,1),t(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(e(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const c=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return c;let u;do c.push(u=new Date(+o)),e(o,s),t(o);while(u<o&&o<a);return c},i.filter=o=>H(a=>{if(a>=a)for(;t(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;e(a,-1),!o(a););else for(;--s>=0;)for(;e(a,1),!o(a););}),n&&(i.count=(o,a)=>(xr.setTime(+o),wr.setTime(+a),t(xr),t(wr),Math.floor(n(xr,wr))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const zn=H(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);zn.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?H(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):zn);zn.range;const _t=1e3,it=_t*60,bt=it*60,St=bt*24,mi=St*7,Io=St*30,_r=St*365,Lt=H(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*_t)},(t,e)=>(e-t)/_t,t=>t.getUTCSeconds());Lt.range;const pi=H(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*_t)},(t,e)=>{t.setTime(+t+e*it)},(t,e)=>(e-t)/it,t=>t.getMinutes());pi.range;const vi=H(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*it)},(t,e)=>(e-t)/it,t=>t.getUTCMinutes());vi.range;const yi=H(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*_t-t.getMinutes()*it)},(t,e)=>{t.setTime(+t+e*bt)},(t,e)=>(e-t)/bt,t=>t.getHours());yi.range;const xi=H(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*bt)},(t,e)=>(e-t)/bt,t=>t.getUTCHours());xi.range;const Ze=H(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*it)/St,t=>t.getDate()-1);Ze.range;const rr=H(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/St,t=>t.getUTCDate()-1);rr.range;const xs=H(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/St,t=>Math.floor(t/St));xs.range;function qt(t){return H(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*it)/mi)}const ir=qt(0),Wn=qt(1),kg=qt(2),Tg=qt(3),de=qt(4),Sg=qt(5),Cg=qt(6);ir.range;Wn.range;kg.range;Tg.range;de.range;Sg.range;Cg.range;function Gt(t){return H(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/mi)}const or=Gt(0),Hn=Gt(1),Mg=Gt(2),Ag=Gt(3),ge=Gt(4),Eg=Gt(5),Dg=Gt(6);or.range;Hn.range;Mg.range;Ag.range;ge.range;Eg.range;Dg.range;const wi=H(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());wi.range;const _i=H(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());_i.range;const Ct=H(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Ct.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:H(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});Ct.range;const Mt=H(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Mt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:H(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});Mt.range;function ws(t,e,n,r,i,o){const a=[[Lt,1,_t],[Lt,5,5*_t],[Lt,15,15*_t],[Lt,30,30*_t],[o,1,it],[o,5,5*it],[o,15,15*it],[o,30,30*it],[i,1,bt],[i,3,3*bt],[i,6,6*bt],[i,12,12*bt],[r,1,St],[r,2,2*St],[n,1,mi],[e,1,Io],[e,3,3*Io],[t,1,_r]];function s(u,l,f){const h=l<u;h&&([u,l]=[l,u]);const d=f&&typeof f.range=="function"?f:c(u,l,f),m=d?d.range(u,+l+1):[];return h?m.reverse():m}function c(u,l,f){const h=Math.abs(l-u)/f,d=Zr(([,,v])=>v).right(a,h);if(d===a.length)return t.every(Mr(u/_r,l/_r,f));if(d===0)return zn.every(Math.max(Mr(u,l,f),1));const[m,g]=a[h/a[d-1][2]<a[d][2]/h?d-1:d];return m.every(g)}return[s,c]}const[Og,$g]=ws(Mt,_i,or,xs,xi,vi),[Ng,Rg]=ws(Ct,wi,ir,Ze,yi,pi);function br(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function kr(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function we(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Fg(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,c=t.shortMonths,u=_e(i),l=be(i),f=_e(o),h=be(o),d=_e(a),m=be(a),g=_e(s),v=be(s),y=_e(c),w=be(c),_={a:Zt,A:Qt,b:Kt,B:ot,c:null,d:Yo,e:Yo,f:i0,g:g0,G:p0,H:e0,I:n0,j:r0,L:_s,m:o0,M:a0,p:Zs,q:Qs,Q:Xo,s:qo,S:s0,u:c0,U:u0,V:l0,w:f0,W:h0,x:null,X:null,y:d0,Y:m0,Z:v0,"%":Vo},T={a:Ks,A:js,b:Js,B:tc,c:null,d:Uo,e:Uo,f:_0,g:O0,G:N0,H:y0,I:x0,j:w0,L:ks,m:b0,M:k0,p:ec,q:nc,Q:Xo,s:qo,S:T0,u:S0,U:C0,V:M0,w:A0,W:E0,x:null,X:null,y:D0,Y:$0,Z:R0,"%":Vo},k={a:E,A:Y,b:M,B:q,c:G,d:Wo,e:Wo,f:Kg,g:zo,G:Bo,H:Ho,I:Ho,j:qg,L:Qg,m:Xg,M:Gg,p:F,q:Vg,Q:Jg,s:t0,S:Zg,u:zg,U:Wg,V:Hg,w:Bg,W:Yg,x:ft,X:Qe,y:zo,Y:Bo,Z:Ug,"%":jg};_.x=p(n,_),_.X=p(r,_),_.c=p(e,_),T.x=p(n,T),T.X=p(r,T),T.c=p(e,T);function p(C,A){return function(O){var x=[],Q=-1,L=0,tt=C.length,et,Rt,Ai;for(O instanceof Date||(O=new Date(+O));++Q<tt;)C.charCodeAt(Q)===37&&(x.push(C.slice(L,Q)),(Rt=Lo[et=C.charAt(++Q)])!=null?et=C.charAt(++Q):Rt=et==="e"?" ":"0",(Ai=A[et])&&(et=Ai(O,Rt)),x.push(et),L=Q+1);return x.push(C.slice(L,Q)),x.join("")}}function b(C,A){return function(O){var x=we(1900,void 0,1),Q=I(x,C,O+="",0),L,tt;if(Q!=O.length)return null;if("Q"in x)return new Date(x.Q);if("s"in x)return new Date(x.s*1e3+("L"in x?x.L:0));if(A&&!("Z"in x)&&(x.Z=0),"p"in x&&(x.H=x.H%12+x.p*12),x.m===void 0&&(x.m="q"in x?x.q:0),"V"in x){if(x.V<1||x.V>53)return null;"w"in x||(x.w=1),"Z"in x?(L=kr(we(x.y,0,1)),tt=L.getUTCDay(),L=tt>4||tt===0?Hn.ceil(L):Hn(L),L=rr.offset(L,(x.V-1)*7),x.y=L.getUTCFullYear(),x.m=L.getUTCMonth(),x.d=L.getUTCDate()+(x.w+6)%7):(L=br(we(x.y,0,1)),tt=L.getDay(),L=tt>4||tt===0?Wn.ceil(L):Wn(L),L=Ze.offset(L,(x.V-1)*7),x.y=L.getFullYear(),x.m=L.getMonth(),x.d=L.getDate()+(x.w+6)%7)}else("W"in x||"U"in x)&&("w"in x||(x.w="u"in x?x.u%7:"W"in x?1:0),tt="Z"in x?kr(we(x.y,0,1)).getUTCDay():br(we(x.y,0,1)).getDay(),x.m=0,x.d="W"in x?(x.w+6)%7+x.W*7-(tt+5)%7:x.w+x.U*7-(tt+6)%7);return"Z"in x?(x.H+=x.Z/100|0,x.M+=x.Z%100,kr(x)):br(x)}}function I(C,A,O,x){for(var Q=0,L=A.length,tt=O.length,et,Rt;Q<L;){if(x>=tt)return-1;if(et=A.charCodeAt(Q++),et===37){if(et=A.charAt(Q++),Rt=k[et in Lo?A.charAt(Q++):et],!Rt||(x=Rt(C,O,x))<0)return-1}else if(et!=O.charCodeAt(x++))return-1}return x}function F(C,A,O){var x=u.exec(A.slice(O));return x?(C.p=l.get(x[0].toLowerCase()),O+x[0].length):-1}function E(C,A,O){var x=d.exec(A.slice(O));return x?(C.w=m.get(x[0].toLowerCase()),O+x[0].length):-1}function Y(C,A,O){var x=f.exec(A.slice(O));return x?(C.w=h.get(x[0].toLowerCase()),O+x[0].length):-1}function M(C,A,O){var x=y.exec(A.slice(O));return x?(C.m=w.get(x[0].toLowerCase()),O+x[0].length):-1}function q(C,A,O){var x=g.exec(A.slice(O));return x?(C.m=v.get(x[0].toLowerCase()),O+x[0].length):-1}function G(C,A,O){return I(C,e,A,O)}function ft(C,A,O){return I(C,n,A,O)}function Qe(C,A,O){return I(C,r,A,O)}function Zt(C){return a[C.getDay()]}function Qt(C){return o[C.getDay()]}function Kt(C){return c[C.getMonth()]}function ot(C){return s[C.getMonth()]}function Zs(C){return i[+(C.getHours()>=12)]}function Qs(C){return 1+~~(C.getMonth()/3)}function Ks(C){return a[C.getUTCDay()]}function js(C){return o[C.getUTCDay()]}function Js(C){return c[C.getUTCMonth()]}function tc(C){return s[C.getUTCMonth()]}function ec(C){return i[+(C.getUTCHours()>=12)]}function nc(C){return 1+~~(C.getUTCMonth()/3)}return{format:function(C){var A=p(C+="",_);return A.toString=function(){return C},A},parse:function(C){var A=b(C+="",!1);return A.toString=function(){return C},A},utcFormat:function(C){var A=p(C+="",T);return A.toString=function(){return C},A},utcParse:function(C){var A=b(C+="",!0);return A.toString=function(){return C},A}}}var Lo={"-":"",_:" ",0:"0"},U=/^\s*\d+/,Pg=/^%/,Ig=/[\\^$*+?|[\]().{}]/g;function $(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function Lg(t){return t.replace(Ig,"\\$&")}function _e(t){return new RegExp("^(?:"+t.map(Lg).join("|")+")","i")}function be(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function Bg(t,e,n){var r=U.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function zg(t,e,n){var r=U.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Wg(t,e,n){var r=U.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Hg(t,e,n){var r=U.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Yg(t,e,n){var r=U.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Bo(t,e,n){var r=U.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function zo(t,e,n){var r=U.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ug(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Vg(t,e,n){var r=U.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Xg(t,e,n){var r=U.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Wo(t,e,n){var r=U.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function qg(t,e,n){var r=U.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Ho(t,e,n){var r=U.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Gg(t,e,n){var r=U.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Zg(t,e,n){var r=U.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Qg(t,e,n){var r=U.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Kg(t,e,n){var r=U.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function jg(t,e,n){var r=Pg.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Jg(t,e,n){var r=U.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function t0(t,e,n){var r=U.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Yo(t,e){return $(t.getDate(),e,2)}function e0(t,e){return $(t.getHours(),e,2)}function n0(t,e){return $(t.getHours()%12||12,e,2)}function r0(t,e){return $(1+Ze.count(Ct(t),t),e,3)}function _s(t,e){return $(t.getMilliseconds(),e,3)}function i0(t,e){return _s(t,e)+"000"}function o0(t,e){return $(t.getMonth()+1,e,2)}function a0(t,e){return $(t.getMinutes(),e,2)}function s0(t,e){return $(t.getSeconds(),e,2)}function c0(t){var e=t.getDay();return e===0?7:e}function u0(t,e){return $(ir.count(Ct(t)-1,t),e,2)}function bs(t){var e=t.getDay();return e>=4||e===0?de(t):de.ceil(t)}function l0(t,e){return t=bs(t),$(de.count(Ct(t),t)+(Ct(t).getDay()===4),e,2)}function f0(t){return t.getDay()}function h0(t,e){return $(Wn.count(Ct(t)-1,t),e,2)}function d0(t,e){return $(t.getFullYear()%100,e,2)}function g0(t,e){return t=bs(t),$(t.getFullYear()%100,e,2)}function m0(t,e){return $(t.getFullYear()%1e4,e,4)}function p0(t,e){var n=t.getDay();return t=n>=4||n===0?de(t):de.ceil(t),$(t.getFullYear()%1e4,e,4)}function v0(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+$(e/60|0,"0",2)+$(e%60,"0",2)}function Uo(t,e){return $(t.getUTCDate(),e,2)}function y0(t,e){return $(t.getUTCHours(),e,2)}function x0(t,e){return $(t.getUTCHours()%12||12,e,2)}function w0(t,e){return $(1+rr.count(Mt(t),t),e,3)}function ks(t,e){return $(t.getUTCMilliseconds(),e,3)}function _0(t,e){return ks(t,e)+"000"}function b0(t,e){return $(t.getUTCMonth()+1,e,2)}function k0(t,e){return $(t.getUTCMinutes(),e,2)}function T0(t,e){return $(t.getUTCSeconds(),e,2)}function S0(t){var e=t.getUTCDay();return e===0?7:e}function C0(t,e){return $(or.count(Mt(t)-1,t),e,2)}function Ts(t){var e=t.getUTCDay();return e>=4||e===0?ge(t):ge.ceil(t)}function M0(t,e){return t=Ts(t),$(ge.count(Mt(t),t)+(Mt(t).getUTCDay()===4),e,2)}function A0(t){return t.getUTCDay()}function E0(t,e){return $(Hn.count(Mt(t)-1,t),e,2)}function D0(t,e){return $(t.getUTCFullYear()%100,e,2)}function O0(t,e){return t=Ts(t),$(t.getUTCFullYear()%100,e,2)}function $0(t,e){return $(t.getUTCFullYear()%1e4,e,4)}function N0(t,e){var n=t.getUTCDay();return t=n>=4||n===0?ge(t):ge.ceil(t),$(t.getUTCFullYear()%1e4,e,4)}function R0(){return"+0000"}function Vo(){return"%"}function Xo(t){return+t}function qo(t){return Math.floor(+t/1e3)}var Jt,Ss,Cs;F0({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"]});function F0(t){return Jt=Fg(t),Ss=Jt.format,Jt.parse,Cs=Jt.utcFormat,Jt.utcParse,Jt}function P0(t){return new Date(t)}function I0(t){return t instanceof Date?+t:+new Date(+t)}function bi(t,e,n,r,i,o,a,s,c,u){var l=us(),f=l.invert,h=l.domain,d=u(".%L"),m=u(":%S"),g=u("%I:%M"),v=u("%I %p"),y=u("%a %d"),w=u("%b %d"),_=u("%B"),T=u("%Y");function k(p){return(c(p)<p?d:s(p)<p?m:a(p)<p?g:o(p)<p?v:r(p)<p?i(p)<p?y:w:n(p)<p?_:T)(p)}return l.invert=function(p){return new Date(f(p))},l.domain=function(p){return arguments.length?h(Array.from(p,I0)):h().map(P0)},l.ticks=function(p){var b=h();return t(b[0],b[b.length-1],p??10)},l.tickFormat=function(p,b){return b==null?k:u(b)},l.nice=function(p){var b=h();return(!p||typeof p.range!="function")&&(p=e(b[0],b[b.length-1],p??10)),p?h(ds(b,p)):l},l.copy=function(){return Ge(l,bi(t,e,n,r,i,o,a,s,c,u))},l}function L0(){return lt.apply(bi(Ng,Rg,Ct,wi,ir,Ze,yi,pi,Lt,Ss).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function B0(){return lt.apply(bi(Og,$g,Mt,_i,or,rr,xi,vi,Lt,Cs).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function z0(){var t=0,e=1,n,r,i,o,a=j,s=!1,c;function u(f){return f==null||isNaN(f=+f)?c:a(i===0?.5:(f=(o(f)-n)*i,s?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([t,e]=f,n=o(t=+t),r=o(e=+e),i=n===r?0:1/(r-n),u):[t,e]},u.clamp=function(f){return arguments.length?(s=!!f,u):s},u.interpolator=function(f){return arguments.length?(a=f,u):a};function l(f){return function(h){var d,m;return arguments.length?([d,m]=h,a=f(d,m),u):[a(0),a(1)]}}return u.range=l(pe),u.rangeRound=l(si),u.unknown=function(f){return arguments.length?(c=f,u):c},function(f){return o=f,n=f(t),r=f(e),i=n===r?0:1/(r-n),u}}function Ms(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function As(){var t=Xt(z0()(j));return t.copy=function(){return Ms(t,As())},ss.apply(t,arguments)}function W0(){var t=0,e=.5,n=1,r=1,i,o,a,s,c,u=j,l,f=!1,h;function d(g){return isNaN(g=+g)?h:(g=.5+((g=+l(g))-o)*(r*g<r*o?s:c),u(f?Math.max(0,Math.min(1,g)):g))}d.domain=function(g){return arguments.length?([t,e,n]=g,i=l(t=+t),o=l(e=+e),a=l(n=+n),s=i===o?0:.5/(o-i),c=o===a?0:.5/(a-o),r=o<i?-1:1,d):[t,e,n]},d.clamp=function(g){return arguments.length?(f=!!g,d):f},d.interpolator=function(g){return arguments.length?(u=g,d):u};function m(g){return function(v){var y,w,_;return arguments.length?([y,w,_]=v,u=Vh(g,[y,w,_]),d):[u(0),u(.5),u(1)]}}return d.range=m(pe),d.rangeRound=m(si),d.unknown=function(g){return arguments.length?(h=g,d):h},function(g){return l=g,i=g(t),o=g(e),a=g(n),s=i===o?0:.5/(o-i),c=o===a?0:.5/(a-o),r=o<i?-1:1,d}}function Es(){var t=Xt(W0()(j));return t.copy=function(){return Ms(t,Es())},ss.apply(t,arguments)}const Go={scaleLinear:fs,scalePow:gi,scaleSqrt:bg,scaleLog:gs,scaleSymlog:ms,scaleIdentity:hs,scaleTime:L0,scaleUtc:B0,scaleSequential:As,scaleDiverging:Es,scaleQuantize:vs,scaleQuantile:ps,scaleThreshold:ys,scaleOrdinal:li,scaleBand:fi,scalePoint:Zd};var B;(function(t){t.X="x",t.Y="y"})(B||(B={}));var Yn;(function(t){t.West="west",t.East="east",t.North="north",t.South="south"})(Yn||(Yn={}));const H0=Object.assign(Object.assign({},Oa),{components:[],tooltip:void 0,crosshair:void 0,annotations:void 0,xAxis:void 0,yAxis:void 0,autoMargin:!0,xScale:void 0,xDomain:void 0,xDomainMinConstraint:void 0,xDomainMaxConstraint:void 0,xRange:void 0,yScale:void 0,yDomain:void 0,yDomainMinConstraint:void 0,yDomainMaxConstraint:void 0,yRange:void 0,yDirection:Yn.North,preventEmptyDomain:null,scaleByDomain:!1,clipPathExtend:2});class Y0 extends Fe{constructor(e,n,r){var i,o;super(e),this._defaultConfig=H0,this.datamodel=new ui,this.config=this._defaultConfig,this._clipPathId=Ha(),this._axisMargin={top:0,bottom:0,left:0,right:0},this._firstRender=!0,this._clipPath=this.svg.append("clipPath").attr("id",this._clipPathId),this._clipPath.append("rect");const a="saturate",s=window.location.href.replace(window.location.hash,"");this.svg.attr("class",W`
52
+ `;function Ga(t=window?.document.body){return t?+eh("var(--vis-font-wh-ratio)",t):Va}var wh={value:()=>{}};function Za(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new fn(n)}function fn(t){this._=t}function _h(t,e){return t.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&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}fn.prototype=Za.prototype={constructor:fn,on:function(t,e){var n=this._,r=_h(t+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o<a;)if((i=(t=r[o]).type)&&(i=bh(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<a;)if(i=(t=r[o]).type)n[i]=vo(n[i],t.name,e);else if(e==null)for(i in n)n[i]=vo(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new fn(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,i=o.length;r<i;++r)o[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};function bh(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function vo(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=wh,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var fe=0,Te=0,xe=0,Qa=1e3,Rn,Se,Fn=0,Vt=0,tr=0,ze=typeof performance=="object"&&performance.now?performance:Date,Ka=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ri(){return Vt||(Ka(kh),Vt=ze.now()+tr)}function kh(){Vt=0}function Pn(){this._call=this._time=this._next=null}Pn.prototype=Ja.prototype={constructor:Pn,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?ri():+n)+(e==null?0:+e),!this._next&&Se!==this&&(Se?Se._next=this:Rn=this,Se=this),this._call=t,this._time=n,Fr()},stop:function(){this._call&&(this._call=null,this._time=1/0,Fr())}};function Ja(t,e,n){var r=new Pn;return r.restart(t,e,n),r}function Th(){ri(),++fe;for(var t=Rn,e;t;)(e=Vt-t._time)>=0&&t._call.call(void 0,e),t=t._next;--fe}function yo(){Vt=(Fn=ze.now())+tr,fe=Te=0;try{Th()}finally{fe=0,Ch(),Vt=0}}function Sh(){var t=ze.now(),e=t-Fn;e>Qa&&(tr-=e,Fn=t)}function Ch(){for(var t,e=Rn,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Rn=n);Se=t,Fr(r)}function Fr(t){if(!fe){Te&&(Te=clearTimeout(Te));var e=t-Vt;e>24?(t<1/0&&(Te=setTimeout(yo,t-ze.now()-tr)),xe&&(xe=clearInterval(xe))):(xe||(Fn=ze.now(),xe=setInterval(Sh,Qa)),fe=1,Ka(yo))}}function xo(t,e,n){var r=new Pn;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var Mh=Za("start","end","cancel","interrupt"),Ah=[],ja=0,wo=1,Pr=2,hn=3,_o=4,Ir=5,dn=6;function er(t,e,n,r,i,o){var a=t.__transition;if(!a)t.__transition={};else if(n in a)return;Eh(t,n,{name:e,index:r,group:i,on:Mh,tween:Ah,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:ja})}function ii(t,e){var n=ut(t,e);if(n.state>ja)throw new Error("too late; already scheduled");return n}function vt(t,e){var n=ut(t,e);if(n.state>hn)throw new Error("too late; already running");return n}function ut(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Eh(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=Ja(o,0,n.time);function o(u){n.state=wo,n.timer.restart(a,n.delay,n.time),n.delay<=u&&a(u-n.delay)}function a(u){var l,f,h,d;if(n.state!==wo)return c();for(l in r)if(d=r[l],d.name===n.name){if(d.state===hn)return xo(a);d.state===_o?(d.state=dn,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[l]):+l<e&&(d.state=dn,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete r[l])}if(xo(function(){n.state===hn&&(n.state=_o,n.timer.restart(s,n.delay,n.time),s(u))}),n.state=Pr,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Pr){for(n.state=hn,i=new Array(h=n.tween.length),l=0,f=-1;l<h;++l)(d=n.tween[l].value.call(t,t.__data__,n.index,n.group))&&(i[++f]=d);i.length=f+1}}function s(u){for(var l=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(c),n.state=Ir,1),f=-1,h=i.length;++f<h;)i[f].call(t,l);n.state===Ir&&(n.on.call("end",t,t.__data__,n.index,n.group),c())}function c(){n.state=dn,n.timer.stop(),delete r[e];for(var u in r)return;delete t.__transition}}function oi(t,e){var n=t.__transition,r,i,o=!0,a;if(n){e=e==null?null:e+"";for(a in n){if((r=n[a]).name!==e){o=!1;continue}i=r.state>Pr&&r.state<Ir,r.state=dn,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[a]}o&&delete t.__transition}}function Dh(t){return this.each(function(){oi(this,t)})}const ai=t=>()=>t;function Oh(t,e){return function(n){return t+n*e}}function $h(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function Nh(t){return(t=+t)==1?ts:function(e,n){return n-e?$h(e,n,t):ai(isNaN(e)?n:e)}}function ts(t,e){var n=e-t;return n?Oh(t,n):ai(isNaN(t)?e:t)}const In=(function t(e){var n=Nh(e);function r(i,o){var a=n((i=$r(i)).r,(o=$r(o)).r),s=n(i.g,o.g),c=n(i.b,o.b),u=ts(i.opacity,o.opacity);return function(l){return i.r=a(l),i.g=s(l),i.b=c(l),i.opacity=u(l),i+""}}return r.gamma=t,r})(1);function Rh(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=t[i]*(1-o)+e[i]*o;return r}}function Fh(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Ph(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=pe(t[a],e[a]);for(;a<n;++a)o[a]=e[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function Ih(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function at(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Lh(t,e){var n={},r={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?n[i]=pe(t[i],e[i]):r[i]=e[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Lr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yr=new RegExp(Lr.source,"g");function Bh(t){return function(){return t}}function zh(t){return function(e){return t(e)+""}}function es(t,e){var n=Lr.lastIndex=yr.lastIndex=0,r,i,o,a=-1,s=[],c=[];for(t=t+"",e=e+"";(r=Lr.exec(t))&&(i=yr.exec(e));)(o=i.index)>n&&(o=e.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,c.push({i:a,x:at(r,i)})),n=yr.lastIndex;return n<e.length&&(o=e.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?c[0]?zh(c[0].x):Bh(e):(e=c.length,function(u){for(var l=0,f;l<e;++l)s[(f=c[l]).i]=f.x(u);return s.join("")})}function pe(t,e){var n=typeof e,r;return e==null||n==="boolean"?ai(e):(n==="number"?at:n==="string"?(r=Ut(e))?(e=r,In):es:e instanceof Ut?In:e instanceof Date?Ih:Fh(e)?Rh:Array.isArray(e)?Ph:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Lh:at)(t,e)}function si(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var bo=180/Math.PI,Br={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ns(t,e,n,r,i,o){var a,s,c;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),t*r<e*n&&(t=-t,e=-e,c=-c,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*bo,skewX:Math.atan(c)*bo,scaleX:a,scaleY:s}}var rn;function Wh(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Br:ns(e.a,e.b,e.c,e.d,e.e,e.f)}function Hh(t){return t==null||(rn||(rn=document.createElementNS("http://www.w3.org/2000/svg","g")),rn.setAttribute("transform",t),!(t=rn.transform.baseVal.consolidate()))?Br:(t=t.matrix,ns(t.a,t.b,t.c,t.d,t.e,t.f))}function rs(t,e,n,r){function i(u){return u.length?u.pop()+" ":""}function o(u,l,f,h,d,m){if(u!==f||l!==h){var g=d.push("translate(",null,e,null,n);m.push({i:g-4,x:at(u,f)},{i:g-2,x:at(l,h)})}else(f||h)&&d.push("translate("+f+e+h+n)}function a(u,l,f,h){u!==l?(u-l>180?l+=360:l-u>180&&(u+=360),h.push({i:f.push(i(f)+"rotate(",null,r)-2,x:at(u,l)})):l&&f.push(i(f)+"rotate("+l+r)}function s(u,l,f,h){u!==l?h.push({i:f.push(i(f)+"skewX(",null,r)-2,x:at(u,l)}):l&&f.push(i(f)+"skewX("+l+r)}function c(u,l,f,h,d,m){if(u!==f||l!==h){var g=d.push(i(d)+"scale(",null,",",null,")");m.push({i:g-4,x:at(u,f)},{i:g-2,x:at(l,h)})}else(f!==1||h!==1)&&d.push(i(d)+"scale("+f+","+h+")")}return function(u,l){var f=[],h=[];return u=t(u),l=t(l),o(u.translateX,u.translateY,l.translateX,l.translateY,f,h),a(u.rotate,l.rotate,f,h),s(u.skewX,l.skewX,f,h),c(u.scaleX,u.scaleY,l.scaleX,l.scaleY,f,h),u=l=null,function(d){for(var m=-1,g=h.length,v;++m<g;)f[(v=h[m]).i]=v.x(d);return f.join("")}}}var Yh=rs(Wh,"px, ","px)","deg)"),Uh=rs(Hh,", ",")",")");function Vh(t,e){e===void 0&&(e=t,t=pe);for(var n=0,r=e.length-1,i=e[0],o=new Array(r<0?0:r);n<r;)o[n]=t(i,i=e[++n]);return function(a){var s=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return o[s](a-s)}}function Xh(t,e){var n,r;return function(){var i=vt(this,t),o=i.tween;if(o!==n){r=n=o;for(var a=0,s=r.length;a<s;++a)if(r[a].name===e){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function qh(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=vt(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:e,value:n},c=0,u=i.length;c<u;++c)if(i[c].name===e){i[c]=s;break}c===u&&i.push(s)}o.tween=i}}function Gh(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=ut(this.node(),n).tween,i=0,o=r.length,a;i<o;++i)if((a=r[i]).name===t)return a.value;return null}return this.each((e==null?Xh:qh)(n,t,e))}function ci(t,e,n){var r=t._id;return t.each(function(){var i=vt(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return ut(i,r).value[e]}}function is(t,e){var n;return(typeof e=="number"?at:e instanceof Ut?In:(n=Ut(e))?(e=n,In):es)(t,e)}function Zh(t){return function(){this.removeAttribute(t)}}function Qh(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Kh(t,e,n){var r,i=n+"",o;return function(){var a=this.getAttribute(t);return a===i?null:a===r?o:o=e(r=a,n)}}function Jh(t,e,n){var r,i=n+"",o;return function(){var a=this.getAttributeNS(t.space,t.local);return a===i?null:a===r?o:o=e(r=a,n)}}function jh(t,e,n){var r,i,o;return function(){var a,s=n(this),c;return s==null?void this.removeAttribute(t):(a=this.getAttribute(t),c=s+"",a===c?null:a===r&&c===i?o:(i=c,o=e(r=a,s)))}}function td(t,e,n){var r,i,o;return function(){var a,s=n(this),c;return s==null?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local),c=s+"",a===c?null:a===r&&c===i?o:(i=c,o=e(r=a,s)))}}function ed(t,e){var n=Zn(t),r=n==="transform"?Uh:is;return this.attrTween(t,typeof e=="function"?(n.local?td:jh)(n,r,ci(this,"attr."+t,e)):e==null?(n.local?Qh:Zh)(n):(n.local?Jh:Kh)(n,r,e))}function nd(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function rd(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function id(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&rd(t,o)),n}return i._value=e,i}function od(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&nd(t,o)),n}return i._value=e,i}function ad(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=Zn(t);return this.tween(n,(r.local?id:od)(r,e))}function sd(t,e){return function(){ii(this,t).delay=+e.apply(this,arguments)}}function cd(t,e){return e=+e,function(){ii(this,t).delay=e}}function ud(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?sd:cd)(e,t)):ut(this.node(),e).delay}function ld(t,e){return function(){vt(this,t).duration=+e.apply(this,arguments)}}function fd(t,e){return e=+e,function(){vt(this,t).duration=e}}function hd(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?ld:fd)(e,t)):ut(this.node(),e).duration}function dd(t,e){if(typeof e!="function")throw new Error;return function(){vt(this,t).ease=e}}function gd(t){var e=this._id;return arguments.length?this.each(dd(e,t)):ut(this.node(),e).ease}function md(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;vt(this,t).ease=n}}function pd(t){if(typeof t!="function")throw new Error;return this.each(md(this._id,t))}function vd(t){typeof t!="function"&&(t=ha(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],a=o.length,s=r[i]=[],c,u=0;u<a;++u)(c=o[u])&&t.call(c,c.__data__,u,o)&&s.push(c);return new Tt(r,this._parents,this._name,this._id)}function yd(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var c=e[s],u=n[s],l=c.length,f=a[s]=new Array(l),h,d=0;d<l;++d)(h=c[d]||u[d])&&(f[d]=h);for(;s<r;++s)a[s]=e[s];return new Tt(a,this._parents,this._name,this._id)}function xd(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function wd(t,e,n){var r,i,o=xd(e)?ii:vt;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}function _d(t,e){var n=this._id;return arguments.length<2?ut(this.node(),n).on.on(t):this.each(wd(n,t,e))}function bd(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function kd(){return this.on("end.remove",bd(this._id))}function Td(t){var e=this._name,n=this._id;typeof t!="function"&&(t=qr(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s=r[a],c=s.length,u=o[a]=new Array(c),l,f,h=0;h<c;++h)(l=s[h])&&(f=t.call(l,l.__data__,h,s))&&("__data__"in l&&(f.__data__=l.__data__),u[h]=f,er(u[h],e,n,h,u,ut(l,n)));return new Tt(o,this._parents,e,n)}function Sd(t){var e=this._name,n=this._id;typeof t!="function"&&(t=fa(t));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var c=r[s],u=c.length,l,f=0;f<u;++f)if(l=c[f]){for(var h=t.call(l,l.__data__,f,c),d,m=ut(l,n),g=0,v=h.length;g<v;++g)(d=h[g])&&er(d,e,n,g,h,m);o.push(h),a.push(l)}return new Tt(o,a,e,n)}var Cd=Ye.prototype.constructor;function Md(){return new Cd(this._groups,this._parents)}function Ad(t,e){var n,r,i;return function(){var o=se(this,t),a=(this.style.removeProperty(t),se(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}function os(t){return function(){this.style.removeProperty(t)}}function Ed(t,e,n){var r,i=n+"",o;return function(){var a=se(this,t);return a===i?null:a===r?o:o=e(r=a,n)}}function Dd(t,e,n){var r,i,o;return function(){var a=se(this,t),s=n(this),c=s+"";return s==null&&(c=s=(this.style.removeProperty(t),se(this,t))),a===c?null:a===r&&c===i?o:(i=c,o=e(r=a,s))}}function Od(t,e){var n,r,i,o="style."+e,a="end."+o,s;return function(){var c=vt(this,t),u=c.on,l=c.value[o]==null?s||(s=os(e)):void 0;(u!==n||i!==l)&&(r=(n=u).copy()).on(a,i=l),c.on=r}}function $d(t,e,n){var r=(t+="")=="transform"?Yh:is;return e==null?this.styleTween(t,Ad(t,r)).on("end.style."+t,os(t)):typeof e=="function"?this.styleTween(t,Dd(t,r,ci(this,"style."+t,e))).each(Od(this._id,t)):this.styleTween(t,Ed(t,r,e),n).on("end.style."+t,null)}function Nd(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Rd(t,e,n){var r,i;function o(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&Nd(t,a,n)),r}return o._value=e,o}function Fd(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,Rd(t,e,n??""))}function Pd(t){return function(){this.textContent=t}}function Id(t){return function(){var e=t(this);this.textContent=e??""}}function Ld(t){return this.tween("text",typeof t=="function"?Id(ci(this,"text",t)):Pd(t==null?"":t+""))}function Bd(t){return function(e){this.textContent=t.call(this,e)}}function zd(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&Bd(i)),e}return r._value=t,r}function Wd(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,zd(t))}function Hd(){for(var t=this._name,e=this._id,n=as(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],s=a.length,c,u=0;u<s;++u)if(c=a[u]){var l=ut(c,e);er(c,t,n,u,a,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Tt(r,this._parents,t,n)}function Yd(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(o,a){var s={value:a},c={value:function(){--i===0&&o()}};n.each(function(){var u=vt(this,r),l=u.on;l!==t&&(e=(t=l).copy(),e._.cancel.push(s),e._.interrupt.push(s),e._.end.push(c)),u.on=e}),i===0&&o()})}var Ud=0;function Tt(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function as(){return++Ud}var yt=Ye.prototype;Tt.prototype={constructor:Tt,select:Td,selectAll:Sd,selectChild:yt.selectChild,selectChildren:yt.selectChildren,filter:vd,merge:yd,selection:Md,transition:Hd,call:yt.call,nodes:yt.nodes,node:yt.node,size:yt.size,empty:yt.empty,each:yt.each,on:_d,attr:ed,attrTween:ad,style:$d,styleTween:Fd,text:Ld,textTween:Wd,remove:kd,tween:Gh,delay:ud,duration:hd,ease:gd,easeVarying:pd,end:Yd,[Symbol.iterator]:yt[Symbol.iterator]};const ko=t=>+t;function Vd(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Xd={time:null,delay:0,duration:250,ease:Vd};function qd(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function Gd(t){var e,n;t instanceof Tt?(e=t._id,t=t._name):(e=as(),(n=Xd).time=ri(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],s=a.length,c,u=0;u<s;++u)(c=a[u])&&er(c,t,e,u,a,n||qd(c,e));return new Tt(r,this._parents,t,e)}Ye.prototype.interrupt=Dh;Ye.prototype.transition=Gd;function It(t,e,n){if(t.nodes().forEach(r=>oi(r)),e){const r=t.transition().duration(e);return n&&r.ease(n),r}else return t}class ui{constructor(e){this.data=e}get data(){return this._data}set data(e){this._data=e}}var D;(function(t){t.X="x",t.Y="y"})(D||(D={}));function lt(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function ss(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const To=Symbol("implicit");function li(){var t=new Li,e=[],n=[],r=To;function i(o){let a=t.get(o);if(a===void 0){if(r!==To)return r;t.set(o,a=e.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return e.slice();e=[],t=new Li;for(const a of o)t.has(a)||t.set(a,e.push(a)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return li(e,n).unknown(r)},lt.apply(i,arguments),i}function fi(){var t=li().unknown(void 0),e=t.domain,n=t.range,r=0,i=1,o,a,s=!1,c=0,u=0,l=.5;delete t.unknown;function f(){var h=e().length,d=i<r,m=d?i:r,g=d?r:i;o=(g-m)/Math.max(1,h-c+u*2),s&&(o=Math.floor(o)),m+=(g-m-o*(h-c))*l,a=o*(1-c),s&&(m=Math.round(m),a=Math.round(a));var v=Pl(h).map(function(y){return m+o*y});return n(d?v.reverse():v)}return t.domain=function(h){return arguments.length?(e(h),f()):e()},t.range=function(h){return arguments.length?([r,i]=h,r=+r,i=+i,f()):[r,i]},t.rangeRound=function(h){return[r,i]=h,r=+r,i=+i,s=!0,f()},t.bandwidth=function(){return a},t.step=function(){return o},t.round=function(h){return arguments.length?(s=!!h,f()):s},t.padding=function(h){return arguments.length?(c=Math.min(1,u=+h),f()):c},t.paddingInner=function(h){return arguments.length?(c=Math.min(1,h),f()):c},t.paddingOuter=function(h){return arguments.length?(u=+h,f()):u},t.align=function(h){return arguments.length?(l=Math.max(0,Math.min(1,h)),f()):l},t.copy=function(){return fi(e(),[r,i]).round(s).paddingInner(c).paddingOuter(u).align(l)},lt.apply(f(),arguments)}function cs(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return cs(e())},t}function Zd(){return cs(fi.apply(null,arguments).paddingInner(1))}function Qd(t){return function(){return t}}function zr(t){return+t}var So=[0,1];function J(t){return t}function Wr(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Qd(isNaN(e)?NaN:.5)}function Kd(t,e){var n;return t>e&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function Jd(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=Wr(i,r),o=n(a,o)):(r=Wr(r,i),o=n(o,a)),function(s){return o(r(s))}}function jd(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)i[a]=Wr(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(s){var c=Ue(t,s,1,r)-1;return o[c](i[c](s))}}function Ge(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function nr(){var t=So,e=So,n=pe,r,i,o,a=J,s,c,u;function l(){var h=Math.min(t.length,e.length);return a!==J&&(a=Kd(t[0],t[h-1])),s=h>2?jd:Jd,c=u=null,f}function f(h){return h==null||isNaN(h=+h)?o:(c||(c=s(t.map(r),e,n)))(r(a(h)))}return f.invert=function(h){return a(i((u||(u=s(e,t.map(r),at)))(h)))},f.domain=function(h){return arguments.length?(t=Array.from(h,zr),l()):t.slice()},f.range=function(h){return arguments.length?(e=Array.from(h),l()):e.slice()},f.rangeRound=function(h){return e=Array.from(h),n=si,l()},f.clamp=function(h){return arguments.length?(a=h?!0:J,l()):a!==J},f.interpolate=function(h){return arguments.length?(n=h,l()):n},f.unknown=function(h){return arguments.length?(o=h,f):o},function(h,d){return r=h,i=d,l()}}function us(){return nr()(J,J)}function tg(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Ln(t,e){if(!isFinite(t)||t===0)return null;var n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function he(t){return t=Ln(Math.abs(t)),t?t[1]:NaN}function eg(t,e){return function(n,r){for(var i=n.length,o=[],a=0,s=t[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),o.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(e)}}function ng(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var rg=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function We(t){if(!(e=rg.exec(t)))throw new Error("invalid format: "+t);var e;return new hi({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}We.prototype=hi.prototype;function hi(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}hi.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function ig(t){t:for(var e=t.length,n=1,r=-1,i;n<e;++n)switch(t[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+t[n])break t;r>0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}var Bn;function og(t,e){var n=Ln(t,e);if(!n)return Bn=void 0,t.toPrecision(e);var r=n[0],i=n[1],o=i-(Bn=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Ln(t,Math.max(0,e+o-1))[0]}function Co(t,e){var n=Ln(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Mo={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:tg,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Co(t*100,e),r:Co,s:og,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Ao(t){return t}var Eo=Array.prototype.map,Do=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ag(t){var e=t.grouping===void 0||t.thousands===void 0?Ao:eg(Eo.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",o=t.numerals===void 0?Ao:ng(Eo.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",s=t.minus===void 0?"−":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function u(f,h){f=We(f);var d=f.fill,m=f.align,g=f.sign,v=f.symbol,y=f.zero,w=f.width,_=f.comma,T=f.precision,k=f.trim,p=f.type;p==="n"?(_=!0,p="g"):Mo[p]||(T===void 0&&(T=12),k=!0,p="g"),(y||d==="0"&&m==="=")&&(y=!0,d="0",m="=");var b=(h&&h.prefix!==void 0?h.prefix:"")+(v==="$"?n:v==="#"&&/[boxX]/.test(p)?"0"+p.toLowerCase():""),I=(v==="$"?r:/[%p]/.test(p)?a:"")+(h&&h.suffix!==void 0?h.suffix:""),F=Mo[p],E=/[defgprs%]/.test(p);T=T===void 0?6:/[gprs]/.test(p)?Math.max(1,Math.min(21,T)):Math.max(0,Math.min(20,T));function Y(M){var q=b,G=I,ft,Qe,Zt;if(p==="c")G=F(M)+G,M="";else{M=+M;var Qt=M<0||1/M<0;if(M=isNaN(M)?c:F(Math.abs(M),T),k&&(M=ig(M)),Qt&&+M==0&&g!=="+"&&(Qt=!1),q=(Qt?g==="("?g:s:g==="-"||g==="("?"":g)+q,G=(p==="s"&&!isNaN(M)&&Bn!==void 0?Do[8+Bn/3]:"")+G+(Qt&&g==="("?")":""),E){for(ft=-1,Qe=M.length;++ft<Qe;)if(Zt=M.charCodeAt(ft),48>Zt||Zt>57){G=(Zt===46?i+M.slice(ft+1):M.slice(ft))+G,M=M.slice(0,ft);break}}}_&&!y&&(M=e(M,1/0));var Kt=q.length+M.length+G.length,ot=Kt<w?new Array(w-Kt+1).join(d):"";switch(_&&y&&(M=e(ot+M,ot.length?w-G.length:1/0),ot=""),m){case"<":M=q+M+G+ot;break;case"=":M=q+ot+M+G;break;case"^":M=ot.slice(0,Kt=ot.length>>1)+q+M+G+ot.slice(Kt);break;default:M=ot+q+M+G;break}return o(M)}return Y.toString=function(){return f+""},Y}function l(f,h){var d=Math.max(-8,Math.min(8,Math.floor(he(h)/3)))*3,m=Math.pow(10,-d),g=u((f=We(f),f.type="f",f),{suffix:Do[8+d/3]});return function(v){return g(m*v)}}return{format:u,formatPrefix:l}}var on,di,ls;sg({thousands:",",grouping:[3],currency:["$",""]});function sg(t){return on=ag(t),di=on.format,ls=on.formatPrefix,on}function cg(t){return Math.max(0,-he(Math.abs(t)))}function ug(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(he(e)/3)))*3-he(Math.abs(t)))}function lg(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,he(e)-he(t))+1}function fg(t,e,n,r){var i=Mr(t,e,n),o;switch(r=We(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(o=ug(i,a))&&(r.precision=o),ls(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=lg(i,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=cg(i))&&(r.precision=o-(r.type==="%")*2);break}}return di(r)}function Xt(t){var e=t.domain;return t.ticks=function(n){var r=e();return Sr(r[0],r[r.length-1],n??10)},t.tickFormat=function(n,r){var i=e();return fg(i[0],i[i.length-1],n??10,r)},t.nice=function(n){n==null&&(n=10);var r=e(),i=0,o=r.length-1,a=r[i],s=r[o],c,u,l=10;for(s<a&&(u=a,a=s,s=u,u=i,i=o,o=u);l-- >0;){if(u=Cr(a,s,n),u===c)return r[i]=a,r[o]=s,e(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;c=u}return t},t}function fs(){var t=us();return t.copy=function(){return Ge(t,fs())},lt.apply(t,arguments),Xt(t)}function hs(t){var e;function n(r){return r==null||isNaN(r=+r)?e:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(t=Array.from(r,zr),n):t.slice()},n.unknown=function(r){return arguments.length?(e=r,n):e},n.copy=function(){return hs(t).unknown(e)},t=arguments.length?Array.from(t,zr):[0,1],Xt(n)}function ds(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],o=t[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),t[n]=e.floor(i),t[r]=e.ceil(o),t}function Oo(t){return Math.log(t)}function $o(t){return Math.exp(t)}function hg(t){return-Math.log(-t)}function dg(t){return-Math.exp(-t)}function gg(t){return isFinite(t)?+("1e"+t):t<0?0:t}function mg(t){return t===10?gg:t===Math.E?Math.exp:e=>Math.pow(t,e)}function pg(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function No(t){return(e,n)=>-t(-e,n)}function vg(t){const e=t(Oo,$o),n=e.domain;let r=10,i,o;function a(){return i=pg(r),o=mg(r),n()[0]<0?(i=No(i),o=No(o),t(hg,dg)):t(Oo,$o),e}return e.base=function(s){return arguments.length?(r=+s,a()):r},e.domain=function(s){return arguments.length?(n(s),a()):n()},e.ticks=s=>{const c=n();let u=c[0],l=c[c.length-1];const f=l<u;f&&([u,l]=[l,u]);let h=i(u),d=i(l),m,g;const v=s==null?10:+s;let y=[];if(!(r%1)&&d-h<v){if(h=Math.floor(h),d=Math.ceil(d),u>0){for(;h<=d;++h)for(m=1;m<r;++m)if(g=h<0?m/o(-h):m*o(h),!(g<u)){if(g>l)break;y.push(g)}}else for(;h<=d;++h)for(m=r-1;m>=1;--m)if(g=h>0?m/o(-h):m*o(h),!(g<u)){if(g>l)break;y.push(g)}y.length*2<v&&(y=Sr(u,l,v))}else y=Sr(h,d,Math.min(d-h,v)).map(o);return f?y.reverse():y},e.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=We(c)).precision==null&&(c.trim=!0),c=di(c)),s===1/0)return c;const u=Math.max(1,r*s/e.ticks().length);return l=>{let f=l/o(Math.round(i(l)));return f*r<r-.5&&(f*=r),f<=u?c(l):""}},e.nice=()=>n(ds(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),e}function gs(){const t=vg(nr()).domain([1,10]);return t.copy=()=>Ge(t,gs()).base(t.base()),lt.apply(t,arguments),t}function Ro(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Fo(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function yg(t){var e=1,n=t(Ro(e),Fo(e));return n.constant=function(r){return arguments.length?t(Ro(e=+r),Fo(e)):e},Xt(n)}function ms(){var t=yg(nr());return t.copy=function(){return Ge(t,ms()).constant(t.constant())},lt.apply(t,arguments)}function Po(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function xg(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function wg(t){return t<0?-t*t:t*t}function _g(t){var e=t(J,J),n=1;function r(){return n===1?t(J,J):n===.5?t(xg,wg):t(Po(n),Po(1/n))}return e.exponent=function(i){return arguments.length?(n=+i,r()):n},Xt(e)}function gi(){var t=_g(nr());return t.copy=function(){return Ge(t,gi()).exponent(t.exponent())},lt.apply(t,arguments),t}function bg(){return gi.apply(null,arguments).exponent(.5)}function ps(){var t=[],e=[],n=[],r;function i(){var a=0,s=Math.max(1,e.length);for(n=new Array(s-1);++a<s;)n[a-1]=$l(t,a/s);return o}function o(a){return a==null||isNaN(a=+a)?r:e[Ue(n,a)]}return o.invertExtent=function(a){var s=e.indexOf(a);return s<0?[NaN,NaN]:[s>0?n[s-1]:t[0],s<n.length?n[s]:t[t.length-1]]},o.domain=function(a){if(!arguments.length)return t.slice();t=[];for(let s of a)s!=null&&!isNaN(s=+s)&&t.push(s);return t.sort(Ae),i()},o.range=function(a){return arguments.length?(e=Array.from(a),i()):e.slice()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return ps().domain(t).range(e).unknown(r)},lt.apply(o,arguments)}function vs(){var t=0,e=1,n=1,r=[.5],i=[0,1],o;function a(c){return c!=null&&c<=c?i[Ue(r,c,0,n)]:o}function s(){var c=-1;for(r=new Array(n);++c<n;)r[c]=((c+1)*e-(c-n)*t)/(n+1);return a}return a.domain=function(c){return arguments.length?([t,e]=c,t=+t,e=+e,s()):[t,e]},a.range=function(c){return arguments.length?(n=(i=Array.from(c)).length-1,s()):i.slice()},a.invertExtent=function(c){var u=i.indexOf(c);return u<0?[NaN,NaN]:u<1?[t,r[0]]:u>=n?[r[n-1],e]:[r[u-1],r[u]]},a.unknown=function(c){return arguments.length&&(o=c),a},a.thresholds=function(){return r.slice()},a.copy=function(){return vs().domain([t,e]).range(i).unknown(o)},lt.apply(Xt(a),arguments)}function ys(){var t=[.5],e=[0,1],n,r=1;function i(o){return o!=null&&o<=o?e[Ue(t,o,0,r)]:n}return i.domain=function(o){return arguments.length?(t=Array.from(o),r=Math.min(t.length,e.length-1),i):t.slice()},i.range=function(o){return arguments.length?(e=Array.from(o),r=Math.min(t.length,e.length-1),i):e.slice()},i.invertExtent=function(o){var a=e.indexOf(o);return[t[a-1],t[a]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return ys().domain(t).range(e).unknown(n)},lt.apply(i,arguments)}const xr=new Date,wr=new Date;function H(t,e,n,r){function i(o){return t(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(t(o=new Date(+o)),o),i.ceil=o=>(t(o=new Date(o-1)),e(o,1),t(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(e(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const c=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return c;let u;do c.push(u=new Date(+o)),e(o,s),t(o);while(u<o&&o<a);return c},i.filter=o=>H(a=>{if(a>=a)for(;t(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;e(a,-1),!o(a););else for(;--s>=0;)for(;e(a,1),!o(a););}),n&&(i.count=(o,a)=>(xr.setTime(+o),wr.setTime(+a),t(xr),t(wr),Math.floor(n(xr,wr))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const zn=H(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);zn.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?H(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):zn);zn.range;const _t=1e3,it=_t*60,bt=it*60,St=bt*24,mi=St*7,Io=St*30,_r=St*365,Lt=H(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*_t)},(t,e)=>(e-t)/_t,t=>t.getUTCSeconds());Lt.range;const pi=H(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*_t)},(t,e)=>{t.setTime(+t+e*it)},(t,e)=>(e-t)/it,t=>t.getMinutes());pi.range;const vi=H(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*it)},(t,e)=>(e-t)/it,t=>t.getUTCMinutes());vi.range;const yi=H(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*_t-t.getMinutes()*it)},(t,e)=>{t.setTime(+t+e*bt)},(t,e)=>(e-t)/bt,t=>t.getHours());yi.range;const xi=H(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*bt)},(t,e)=>(e-t)/bt,t=>t.getUTCHours());xi.range;const Ze=H(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*it)/St,t=>t.getDate()-1);Ze.range;const rr=H(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/St,t=>t.getUTCDate()-1);rr.range;const xs=H(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/St,t=>Math.floor(t/St));xs.range;function qt(t){return H(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*it)/mi)}const ir=qt(0),Wn=qt(1),kg=qt(2),Tg=qt(3),de=qt(4),Sg=qt(5),Cg=qt(6);ir.range;Wn.range;kg.range;Tg.range;de.range;Sg.range;Cg.range;function Gt(t){return H(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/mi)}const or=Gt(0),Hn=Gt(1),Mg=Gt(2),Ag=Gt(3),ge=Gt(4),Eg=Gt(5),Dg=Gt(6);or.range;Hn.range;Mg.range;Ag.range;ge.range;Eg.range;Dg.range;const wi=H(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());wi.range;const _i=H(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());_i.range;const Ct=H(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Ct.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:H(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});Ct.range;const Mt=H(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Mt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:H(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});Mt.range;function ws(t,e,n,r,i,o){const a=[[Lt,1,_t],[Lt,5,5*_t],[Lt,15,15*_t],[Lt,30,30*_t],[o,1,it],[o,5,5*it],[o,15,15*it],[o,30,30*it],[i,1,bt],[i,3,3*bt],[i,6,6*bt],[i,12,12*bt],[r,1,St],[r,2,2*St],[n,1,mi],[e,1,Io],[e,3,3*Io],[t,1,_r]];function s(u,l,f){const h=l<u;h&&([u,l]=[l,u]);const d=f&&typeof f.range=="function"?f:c(u,l,f),m=d?d.range(u,+l+1):[];return h?m.reverse():m}function c(u,l,f){const h=Math.abs(l-u)/f,d=Zr(([,,v])=>v).right(a,h);if(d===a.length)return t.every(Mr(u/_r,l/_r,f));if(d===0)return zn.every(Math.max(Mr(u,l,f),1));const[m,g]=a[h/a[d-1][2]<a[d][2]/h?d-1:d];return m.every(g)}return[s,c]}const[Og,$g]=ws(Mt,_i,or,xs,xi,vi),[Ng,Rg]=ws(Ct,wi,ir,Ze,yi,pi);function br(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function kr(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function we(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Fg(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,c=t.shortMonths,u=_e(i),l=be(i),f=_e(o),h=be(o),d=_e(a),m=be(a),g=_e(s),v=be(s),y=_e(c),w=be(c),_={a:Zt,A:Qt,b:Kt,B:ot,c:null,d:Yo,e:Yo,f:i0,g:g0,G:p0,H:e0,I:n0,j:r0,L:_s,m:o0,M:a0,p:Zs,q:Qs,Q:Xo,s:qo,S:s0,u:c0,U:u0,V:l0,w:f0,W:h0,x:null,X:null,y:d0,Y:m0,Z:v0,"%":Vo},T={a:Ks,A:Js,b:js,B:tc,c:null,d:Uo,e:Uo,f:_0,g:O0,G:N0,H:y0,I:x0,j:w0,L:ks,m:b0,M:k0,p:ec,q:nc,Q:Xo,s:qo,S:T0,u:S0,U:C0,V:M0,w:A0,W:E0,x:null,X:null,y:D0,Y:$0,Z:R0,"%":Vo},k={a:E,A:Y,b:M,B:q,c:G,d:Wo,e:Wo,f:Kg,g:zo,G:Bo,H:Ho,I:Ho,j:qg,L:Qg,m:Xg,M:Gg,p:F,q:Vg,Q:jg,s:t0,S:Zg,u:zg,U:Wg,V:Hg,w:Bg,W:Yg,x:ft,X:Qe,y:zo,Y:Bo,Z:Ug,"%":Jg};_.x=p(n,_),_.X=p(r,_),_.c=p(e,_),T.x=p(n,T),T.X=p(r,T),T.c=p(e,T);function p(C,A){return function(O){var x=[],Q=-1,L=0,tt=C.length,et,Rt,Ai;for(O instanceof Date||(O=new Date(+O));++Q<tt;)C.charCodeAt(Q)===37&&(x.push(C.slice(L,Q)),(Rt=Lo[et=C.charAt(++Q)])!=null?et=C.charAt(++Q):Rt=et==="e"?" ":"0",(Ai=A[et])&&(et=Ai(O,Rt)),x.push(et),L=Q+1);return x.push(C.slice(L,Q)),x.join("")}}function b(C,A){return function(O){var x=we(1900,void 0,1),Q=I(x,C,O+="",0),L,tt;if(Q!=O.length)return null;if("Q"in x)return new Date(x.Q);if("s"in x)return new Date(x.s*1e3+("L"in x?x.L:0));if(A&&!("Z"in x)&&(x.Z=0),"p"in x&&(x.H=x.H%12+x.p*12),x.m===void 0&&(x.m="q"in x?x.q:0),"V"in x){if(x.V<1||x.V>53)return null;"w"in x||(x.w=1),"Z"in x?(L=kr(we(x.y,0,1)),tt=L.getUTCDay(),L=tt>4||tt===0?Hn.ceil(L):Hn(L),L=rr.offset(L,(x.V-1)*7),x.y=L.getUTCFullYear(),x.m=L.getUTCMonth(),x.d=L.getUTCDate()+(x.w+6)%7):(L=br(we(x.y,0,1)),tt=L.getDay(),L=tt>4||tt===0?Wn.ceil(L):Wn(L),L=Ze.offset(L,(x.V-1)*7),x.y=L.getFullYear(),x.m=L.getMonth(),x.d=L.getDate()+(x.w+6)%7)}else("W"in x||"U"in x)&&("w"in x||(x.w="u"in x?x.u%7:"W"in x?1:0),tt="Z"in x?kr(we(x.y,0,1)).getUTCDay():br(we(x.y,0,1)).getDay(),x.m=0,x.d="W"in x?(x.w+6)%7+x.W*7-(tt+5)%7:x.w+x.U*7-(tt+6)%7);return"Z"in x?(x.H+=x.Z/100|0,x.M+=x.Z%100,kr(x)):br(x)}}function I(C,A,O,x){for(var Q=0,L=A.length,tt=O.length,et,Rt;Q<L;){if(x>=tt)return-1;if(et=A.charCodeAt(Q++),et===37){if(et=A.charAt(Q++),Rt=k[et in Lo?A.charAt(Q++):et],!Rt||(x=Rt(C,O,x))<0)return-1}else if(et!=O.charCodeAt(x++))return-1}return x}function F(C,A,O){var x=u.exec(A.slice(O));return x?(C.p=l.get(x[0].toLowerCase()),O+x[0].length):-1}function E(C,A,O){var x=d.exec(A.slice(O));return x?(C.w=m.get(x[0].toLowerCase()),O+x[0].length):-1}function Y(C,A,O){var x=f.exec(A.slice(O));return x?(C.w=h.get(x[0].toLowerCase()),O+x[0].length):-1}function M(C,A,O){var x=y.exec(A.slice(O));return x?(C.m=w.get(x[0].toLowerCase()),O+x[0].length):-1}function q(C,A,O){var x=g.exec(A.slice(O));return x?(C.m=v.get(x[0].toLowerCase()),O+x[0].length):-1}function G(C,A,O){return I(C,e,A,O)}function ft(C,A,O){return I(C,n,A,O)}function Qe(C,A,O){return I(C,r,A,O)}function Zt(C){return a[C.getDay()]}function Qt(C){return o[C.getDay()]}function Kt(C){return c[C.getMonth()]}function ot(C){return s[C.getMonth()]}function Zs(C){return i[+(C.getHours()>=12)]}function Qs(C){return 1+~~(C.getMonth()/3)}function Ks(C){return a[C.getUTCDay()]}function Js(C){return o[C.getUTCDay()]}function js(C){return c[C.getUTCMonth()]}function tc(C){return s[C.getUTCMonth()]}function ec(C){return i[+(C.getUTCHours()>=12)]}function nc(C){return 1+~~(C.getUTCMonth()/3)}return{format:function(C){var A=p(C+="",_);return A.toString=function(){return C},A},parse:function(C){var A=b(C+="",!1);return A.toString=function(){return C},A},utcFormat:function(C){var A=p(C+="",T);return A.toString=function(){return C},A},utcParse:function(C){var A=b(C+="",!0);return A.toString=function(){return C},A}}}var Lo={"-":"",_:" ",0:"0"},U=/^\s*\d+/,Pg=/^%/,Ig=/[\\^$*+?|[\]().{}]/g;function $(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function Lg(t){return t.replace(Ig,"\\$&")}function _e(t){return new RegExp("^(?:"+t.map(Lg).join("|")+")","i")}function be(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function Bg(t,e,n){var r=U.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function zg(t,e,n){var r=U.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Wg(t,e,n){var r=U.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Hg(t,e,n){var r=U.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Yg(t,e,n){var r=U.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Bo(t,e,n){var r=U.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function zo(t,e,n){var r=U.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ug(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Vg(t,e,n){var r=U.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Xg(t,e,n){var r=U.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Wo(t,e,n){var r=U.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function qg(t,e,n){var r=U.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Ho(t,e,n){var r=U.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Gg(t,e,n){var r=U.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Zg(t,e,n){var r=U.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Qg(t,e,n){var r=U.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Kg(t,e,n){var r=U.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Jg(t,e,n){var r=Pg.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function jg(t,e,n){var r=U.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function t0(t,e,n){var r=U.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Yo(t,e){return $(t.getDate(),e,2)}function e0(t,e){return $(t.getHours(),e,2)}function n0(t,e){return $(t.getHours()%12||12,e,2)}function r0(t,e){return $(1+Ze.count(Ct(t),t),e,3)}function _s(t,e){return $(t.getMilliseconds(),e,3)}function i0(t,e){return _s(t,e)+"000"}function o0(t,e){return $(t.getMonth()+1,e,2)}function a0(t,e){return $(t.getMinutes(),e,2)}function s0(t,e){return $(t.getSeconds(),e,2)}function c0(t){var e=t.getDay();return e===0?7:e}function u0(t,e){return $(ir.count(Ct(t)-1,t),e,2)}function bs(t){var e=t.getDay();return e>=4||e===0?de(t):de.ceil(t)}function l0(t,e){return t=bs(t),$(de.count(Ct(t),t)+(Ct(t).getDay()===4),e,2)}function f0(t){return t.getDay()}function h0(t,e){return $(Wn.count(Ct(t)-1,t),e,2)}function d0(t,e){return $(t.getFullYear()%100,e,2)}function g0(t,e){return t=bs(t),$(t.getFullYear()%100,e,2)}function m0(t,e){return $(t.getFullYear()%1e4,e,4)}function p0(t,e){var n=t.getDay();return t=n>=4||n===0?de(t):de.ceil(t),$(t.getFullYear()%1e4,e,4)}function v0(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+$(e/60|0,"0",2)+$(e%60,"0",2)}function Uo(t,e){return $(t.getUTCDate(),e,2)}function y0(t,e){return $(t.getUTCHours(),e,2)}function x0(t,e){return $(t.getUTCHours()%12||12,e,2)}function w0(t,e){return $(1+rr.count(Mt(t),t),e,3)}function ks(t,e){return $(t.getUTCMilliseconds(),e,3)}function _0(t,e){return ks(t,e)+"000"}function b0(t,e){return $(t.getUTCMonth()+1,e,2)}function k0(t,e){return $(t.getUTCMinutes(),e,2)}function T0(t,e){return $(t.getUTCSeconds(),e,2)}function S0(t){var e=t.getUTCDay();return e===0?7:e}function C0(t,e){return $(or.count(Mt(t)-1,t),e,2)}function Ts(t){var e=t.getUTCDay();return e>=4||e===0?ge(t):ge.ceil(t)}function M0(t,e){return t=Ts(t),$(ge.count(Mt(t),t)+(Mt(t).getUTCDay()===4),e,2)}function A0(t){return t.getUTCDay()}function E0(t,e){return $(Hn.count(Mt(t)-1,t),e,2)}function D0(t,e){return $(t.getUTCFullYear()%100,e,2)}function O0(t,e){return t=Ts(t),$(t.getUTCFullYear()%100,e,2)}function $0(t,e){return $(t.getUTCFullYear()%1e4,e,4)}function N0(t,e){var n=t.getUTCDay();return t=n>=4||n===0?ge(t):ge.ceil(t),$(t.getUTCFullYear()%1e4,e,4)}function R0(){return"+0000"}function Vo(){return"%"}function Xo(t){return+t}function qo(t){return Math.floor(+t/1e3)}var jt,Ss,Cs;F0({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"]});function F0(t){return jt=Fg(t),Ss=jt.format,jt.parse,Cs=jt.utcFormat,jt.utcParse,jt}function P0(t){return new Date(t)}function I0(t){return t instanceof Date?+t:+new Date(+t)}function bi(t,e,n,r,i,o,a,s,c,u){var l=us(),f=l.invert,h=l.domain,d=u(".%L"),m=u(":%S"),g=u("%I:%M"),v=u("%I %p"),y=u("%a %d"),w=u("%b %d"),_=u("%B"),T=u("%Y");function k(p){return(c(p)<p?d:s(p)<p?m:a(p)<p?g:o(p)<p?v:r(p)<p?i(p)<p?y:w:n(p)<p?_:T)(p)}return l.invert=function(p){return new Date(f(p))},l.domain=function(p){return arguments.length?h(Array.from(p,I0)):h().map(P0)},l.ticks=function(p){var b=h();return t(b[0],b[b.length-1],p??10)},l.tickFormat=function(p,b){return b==null?k:u(b)},l.nice=function(p){var b=h();return(!p||typeof p.range!="function")&&(p=e(b[0],b[b.length-1],p??10)),p?h(ds(b,p)):l},l.copy=function(){return Ge(l,bi(t,e,n,r,i,o,a,s,c,u))},l}function L0(){return lt.apply(bi(Ng,Rg,Ct,wi,ir,Ze,yi,pi,Lt,Ss).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function B0(){return lt.apply(bi(Og,$g,Mt,_i,or,rr,xi,vi,Lt,Cs).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function z0(){var t=0,e=1,n,r,i,o,a=J,s=!1,c;function u(f){return f==null||isNaN(f=+f)?c:a(i===0?.5:(f=(o(f)-n)*i,s?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([t,e]=f,n=o(t=+t),r=o(e=+e),i=n===r?0:1/(r-n),u):[t,e]},u.clamp=function(f){return arguments.length?(s=!!f,u):s},u.interpolator=function(f){return arguments.length?(a=f,u):a};function l(f){return function(h){var d,m;return arguments.length?([d,m]=h,a=f(d,m),u):[a(0),a(1)]}}return u.range=l(pe),u.rangeRound=l(si),u.unknown=function(f){return arguments.length?(c=f,u):c},function(f){return o=f,n=f(t),r=f(e),i=n===r?0:1/(r-n),u}}function Ms(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function As(){var t=Xt(z0()(J));return t.copy=function(){return Ms(t,As())},ss.apply(t,arguments)}function W0(){var t=0,e=.5,n=1,r=1,i,o,a,s,c,u=J,l,f=!1,h;function d(g){return isNaN(g=+g)?h:(g=.5+((g=+l(g))-o)*(r*g<r*o?s:c),u(f?Math.max(0,Math.min(1,g)):g))}d.domain=function(g){return arguments.length?([t,e,n]=g,i=l(t=+t),o=l(e=+e),a=l(n=+n),s=i===o?0:.5/(o-i),c=o===a?0:.5/(a-o),r=o<i?-1:1,d):[t,e,n]},d.clamp=function(g){return arguments.length?(f=!!g,d):f},d.interpolator=function(g){return arguments.length?(u=g,d):u};function m(g){return function(v){var y,w,_;return arguments.length?([y,w,_]=v,u=Vh(g,[y,w,_]),d):[u(0),u(.5),u(1)]}}return d.range=m(pe),d.rangeRound=m(si),d.unknown=function(g){return arguments.length?(h=g,d):h},function(g){return l=g,i=g(t),o=g(e),a=g(n),s=i===o?0:.5/(o-i),c=o===a?0:.5/(a-o),r=o<i?-1:1,d}}function Es(){var t=Xt(W0()(J));return t.copy=function(){return Ms(t,Es())},ss.apply(t,arguments)}const Go={scaleLinear:fs,scalePow:gi,scaleSqrt:bg,scaleLog:gs,scaleSymlog:ms,scaleIdentity:hs,scaleTime:L0,scaleUtc:B0,scaleSequential:As,scaleDiverging:Es,scaleQuantize:vs,scaleQuantile:ps,scaleThreshold:ys,scaleOrdinal:li,scaleBand:fi,scalePoint:Zd};var B;(function(t){t.X="x",t.Y="y"})(B||(B={}));var Yn;(function(t){t.West="west",t.East="east",t.North="north",t.South="south"})(Yn||(Yn={}));const H0=Object.assign(Object.assign({},Oa),{components:[],tooltip:void 0,crosshair:void 0,annotations:void 0,xAxis:void 0,yAxis:void 0,autoMargin:!0,xScale:void 0,xDomain:void 0,xDomainMinConstraint:void 0,xDomainMaxConstraint:void 0,xRange:void 0,yScale:void 0,yDomain:void 0,yDomainMinConstraint:void 0,yDomainMaxConstraint:void 0,yRange:void 0,yDirection:Yn.North,preventEmptyDomain:null,scaleByDomain:!1,clipPathExtend:2});class Y0 extends Fe{constructor(e,n,r){var i,o;super(e),this._defaultConfig=H0,this.datamodel=new ui,this.config=this._defaultConfig,this._clipPathId=Ha(),this._axisMargin={top:0,bottom:0,left:0,right:0},this._firstRender=!0,this._clipPath=this.svg.append("clipPath").attr("id",this._clipPathId),this._clipPath.append("rect");const a="saturate",s=window.location.href.replace(window.location.hash,"");this.svg.attr("class",W`
53
53
  --highlight-filter-id: url(${s}#${a}); // defining a css variable
54
54
  `),this._svgDefs.append("filter").attr("id",a).attr("filterUnits","objectBoundingBox").html('<feColorMatrix type="saturate" in="SourceGraphic" values="1.35"/>'),n&&this.updateContainer(n,!0),r&&this.setData(r,!0),(this.config.xAxis||this.config.yAxis||!((i=this.components)===null||i===void 0)&&i.some(c=>c.datamodel.data))&&this.render(),(o=document.fonts)===null||o===void 0||o.ready.then(()=>{this._firstRender||this._renderAxes(0)})}get components(){return this.config.components}get width(){const e=this._getMargin();return Ot(this.containerWidth-e.left-e.right,0,Number.POSITIVE_INFINITY)}get height(){const e=this._getMargin();return Ot(this.containerHeight-e.top-e.bottom,0,Number.POSITIVE_INFINITY)}setData(e,n){var r,i,o,a,s;const{components:c,config:u}=this;if(!e)return;this.datamodel.data=e,c.forEach(f=>{f.setData(e)}),(r=u.crosshair)===null||r===void 0||r.setData(e),(i=u.xAxis)===null||i===void 0||i.setData(e),(o=u.yAxis)===null||o===void 0||o.setData(e),!Yt(this.datamodel.data,e)&&((a=u.tooltip)===null||a===void 0||a.hide(),(s=u.crosshair)===null||s===void 0||s.hide()),n||this.render()}updateContainer(e,n){super.updateContainer(e),this._removeAllChildren(),this.setData(this.datamodel.data,!0),e.xAxis&&(this.config.xAxis.config.type=D.X,this.element.appendChild(e.xAxis.element)),e.yAxis&&(this.config.yAxis.config.type=D.Y,this.element.appendChild(e.yAxis.element));for(const a of this.components)this.element.appendChild(a.element);const r=e.tooltip;r&&(r.hasContainer()||r.setContainer(this._container),r.setComponents(this.components));const i=e.crosshair;i&&(i.setContainer(this.svg),i.tooltip=r,this.element.appendChild(i.element));const o=e.annotations;o&&this.element.appendChild(o.element),this.element.appendChild(this._clipPath.node()),this.element.appendChild(this._svgDefs.node()),this.element.appendChild(this._svgDefsExternal.node()),n||this.render()}updateComponents(e,n){const{config:r}=this;this.components.forEach((i,o)=>{e[o]&&i.setConfig(e[o])}),this._updateScales(...this.components,r.xAxis,r.yAxis,r.crosshair),n||this.render()}update(e,n,r){r&&(this.datamodel.data=r),e&&this.updateContainer(e,!0),n&&this.updateComponents(n,!0),this.render()}_preRender(){const{config:e}=this;super._preRender(),e.autoMargin&&this._setAutoMargin();const n=ve([...this.components,e.xAxis,e.yAxis,e.crosshair,e.annotations]),r=this._getMargin();for(const i of n)i.setSize(this.width,this.height,this.containerWidth,this.containerHeight),i.setContainerMargin(r);this._updateScales(...this.components,e.xAxis,e.yAxis,e.crosshair)}_render(e){var n,r,i,o,a;const{config:s}=this;super._render();const c=this._getMargin();for(const f of this.components)f.g.attr("transform",`translate(${c.left},${c.top})`).style("clip-path",f.clippable?`url(#${this._clipPathId})`:null).style("-webkit-clip-path",f.clippable?`url(#${this._clipPathId})`:null),f.render(e);this._renderAxes(this._firstRender?0:e);const u=s.clipPathExtend;this._clipPath.select("rect").attr("x",-u).attr("y",-u).attr("width",this.width+2*u).attr("height",this.height+2*u),(n=s.tooltip)===null||n===void 0||n.update();const l=s.crosshair;if(l){const f=this.components.filter(g=>!g.stacked).map(g=>g.config.y),h=this.components.filter(g=>g.stacked).map(g=>g.config.y),d=(r=this.components.find(g=>g.config.baseline))===null||r===void 0?void 0:r.config,m=d?.baseline;l.accessors={x:(i=this.components[0])===null||i===void 0?void 0:i.config.x,y:Ar(f),yStacked:Ar(h),baseline:m},l.g.attr("transform",`translate(${c.left},${c.top})`).style("clip-path",`url(#${this._clipPathId})`).style("-webkit-clip-path",`url(#${this._clipPathId})`),l.render()}(o=s.annotations)===null||o===void 0||o.g.attr("transform",`translate(${c.left},${c.top})`),(a=s.annotations)===null||a===void 0||a.render(),this._firstRender=!1}_updateScales(...e){const n=ve(e||this.components);this._setScales(...n),this._updateScalesDomain(...n),this._updateScalesRange(...n)}_setScales(...e){const{config:n}=this;e&&(n.xScale&&e.forEach(r=>r.setScale(B.X,n.xScale)),n.yScale&&e.forEach(r=>r.setScale(B.Y,n.yScale)))}_updateScalesDomain(...e){const{config:n}=this;if(!e)return;const r=e.filter(i=>!i.config.excludeFromDomainCalculation);Object.values(B).forEach(i=>{var o,a,s,c,u,l,f,h;const[d,m]=Sl(Fl(r.map(k=>k.getDataExtent(i,n.scaleByDomain)))),g=i===B.Y?n.yDomain:n.xDomain,v=i===B.Y?n.yDomainMinConstraint:n.xDomainMinConstraint,y=i===B.Y?n.yDomainMaxConstraint:n.xDomainMaxConstraint,w=(a=(o=g?.[0])!==null&&o!==void 0?o:d)!==null&&a!==void 0?a:0,_=(c=(s=g?.[1])!==null&&s!==void 0?s:m)!==null&&c!==void 0?c:1,T=[Ot(w,(u=v?.[0])!==null&&u!==void 0?u:Number.NEGATIVE_INFINITY,(l=v?.[1])!==null&&l!==void 0?l:Number.POSITIVE_INFINITY),Ot(_,(f=y?.[0])!==null&&f!==void 0?f:Number.NEGATIVE_INFINITY,(h=y?.[1])!==null&&h!==void 0?h:Number.POSITIVE_INFINITY)];if(T[0]===T[1]){const k=r.some(p=>{var b;return((b=p.datamodel.data)===null||b===void 0?void 0:b.length)>0});(n.preventEmptyDomain||n.preventEmptyDomain===null&&(!k||i===B.Y))&&(T[1]=T[0]+1)}e.forEach(k=>k.setScaleDomain(i,T))})}_updateScalesRange(...e){var n,r,i,o,a,s;const{config:c}=this;if(!e)return;const u=c.yDirection===Yn.South,l=[(n=c.padding.left)!==null&&n!==void 0?n:0,this.width-((r=c.padding.right)!==null&&r!==void 0?r:0)],f=[this.height-((i=c.padding.bottom)!==null&&i!==void 0?i:0),(o=c.padding.top)!==null&&o!==void 0?o:0];u&&f.reverse();for(const d of e)d.setSize(this.width,this.height,this.containerWidth,this.containerHeight),d.setScaleRange(B.X,(a=c.xRange)!==null&&a!==void 0?a:l),d.setScaleRange(B.Y,(s=c.yRange)!==null&&s!==void 0?s:f);const h=e.map(d=>d.bleed).reduce((d,m)=>{for(const g of Object.keys(d)){const v=g;d[v]<m[v]&&(d[v]=m[v])}return d},{top:0,bottom:0,left:0,right:0});for(const d of e)d.setScaleRange(B.X,[l[0]+h.left,l[1]-h.right]),d.setScaleRange(B.Y,u?[f[0]+h.top,f[1]-h.bottom]:[f[0]-h.bottom,f[1]+h.top])}_renderAxes(e){const{config:{xAxis:n,yAxis:r}}=this,i=this._getMargin();ve([n,r]).forEach(a=>{const s=a.getOffset(i);a.g.attr("transform",`translate(${s.left},${s.top})`),a.render(e)})}_setAutoMargin(){const{config:{xAxis:e,yAxis:n}}=this,r=ve([...this.components,e,n]);this._setScales(...r),this._updateScalesDomain(...r);const i=this._firstRender?2:1;for(let o=0;o<i;o+=1){const a={top:0,bottom:0,left:0,right:0};this._updateScalesRange(...r),ve([e,n]).forEach(c=>{c.preRender();const u=c.getRequiredMargin();a.top<u.top&&(a.top=u.top),a.bottom<u.bottom&&(a.bottom=u.bottom),a.left<u.left&&(a.left=u.left),a.right<u.right&&(a.right=u.right)}),this._axisMargin=a}}_getMargin(){const{config:{margin:e}}=this;return{top:e.top+this._axisMargin.top,bottom:e.bottom+this._axisMargin.bottom,left:e.left+this._axisMargin.left,right:e.right+this._axisMargin.right}}destroy(){const{components:e,config:{tooltip:n,crosshair:r,annotations:i,xAxis:o,yAxis:a}}=this;super.destroy();for(const s of e)s?.destroy();n?.destroy(),r?.destroy(),i?.destroy(),o?.destroy(),a?.destroy()}}const Ds={duration:600,events:{},attributes:{}};class U0{constructor(e=Me.SVG){var n,r;this.type=Me.SVG,this.datamodel=new ui,this.sizing=ce.Fit,this.events={},this._defaultConfig=Ds,this._width=400,this._height=200,this._containerWidth=void 0,this._containerHeight=void 0,this._containerMargin={top:0,bottom:0,left:0,right:0},this._setUpComponentEventsThrottled=Mn(this._setUpComponentEvents,500),this._setCustomAttributesThrottled=Mn(this._setCustomAttributes,500),e===Me.SVG?this.element=document.createElementNS("http://www.w3.org/2000/svg","g"):this.element=document.createElement("div"),this.uid=Ha(),this.g=kt(this.element);const i=(r=(n=this.constructor)===null||n===void 0?void 0:n.selectors)===null||r===void 0?void 0:r.root;i&&this.g.attr("class",i)}setContainerMargin(e){this._containerMargin=e}setConfig(e){this.prevConfig=this.config,this.config=ue(this._defaultConfig,e)}setData(e){this.datamodel.data=e}setSize(e,n,r,i){isFinite(e)&&(this._width=e),isFinite(n)&&(this._height=n),isFinite(r)&&(this._containerWidth=r),isFinite(i)&&(this._containerHeight=i)}render(e=this.config.duration){this._render(e);const n="animating";e&&(this.g.attr(n,""),this.g.transition(n).duration(e).on("end interrupt",()=>{this.g.attr(n,null)})),this._setUpComponentEventsThrottled(),this._setCustomAttributesThrottled()}get bleed(){return{top:0,bottom:0,left:0,right:0}}_render(e=this.config.duration){}_setCustomAttributes(){const e=this.config.attributes;Object.keys(e).forEach(n=>{Object.keys(e[n]).forEach(r=>{this.g.selectAll(`.${n}`).attr(r,e[n][r])})})}_setUpComponentEvents(){this._bindEvents(this.events),this._bindEvents(this.config.events,".user")}_bindEvents(e=this.events,n=""){Object.keys(e).forEach(r=>{Object.keys(e[r]).forEach(i=>{const o=this.g.selectAll(`.${r}`);o.on(i+n,(a,s)=>{const c=o.nodes(),u=c.indexOf(a.currentTarget),l=e[r][i];return l?.(s,a,u,c)})})})}destroy(){var e;(e=this.g)===null||e===void 0||e.remove(),this.element=void 0}isDestroyed(){return!this.element}}class V0 extends ui{constructor(e){super(e)}get data(){var e;return(e=this._data)!==null&&e!==void 0?e:[]}set data(e){Array.isArray(e)&&(this._data=e)}}const ki=Object.assign(Object.assign({},Ds),{x:void 0,y:void 0,id:(t,e)=>{var n;return(n=t.id)!==null&&n!==void 0?n:`${e}`},color:t=>t.color,xScale:void 0,yScale:void 0,excludeFromDomainCalculation:!1});class Os extends U0{constructor(){super(...arguments),this.datamodel=new V0,this.clippable=!0,this.stacked=!1,this._defaultConfig=ki,this._xScale=Go.scaleLinear(),this._yScale=Go.scaleLinear()}get xScale(){return this.config.xScale||this._xScale}get yScale(){return this.config.yScale||this._yScale}setConfig(e){var n,r;!((n=this.config)===null||n===void 0)&&n.xScale&&(e.xScale=this.config.xScale),!((r=this.config)===null||r===void 0)&&r.yScale&&(e.yScale=this.config.yScale),super.setConfig(e)}setScaleDomain(e,n){var r,i;e===B.X&&((r=this._xScale)===null||r===void 0||r.domain(n)),e===B.Y&&((i=this._yScale)===null||i===void 0||i.domain(n))}setScaleRange(e,n){var r,i;e===B.X&&((r=this._xScale)===null||r===void 0||r.range(n)),e===B.Y&&((i=this._yScale)===null||i===void 0||i.range(n))}setScale(e,n){n&&e===B.X&&(this._xScale=n),n&&e===B.Y&&(this._yScale=n)}getDataExtent(e,n){const{config:r,datamodel:i}=this;switch(e){case B.X:return this.getXDataExtent();case B.Y:return this.getYDataExtent(n);default:return lr(i.data,r[e])}}getXDataExtent(){const{config:e,datamodel:n}=this;return lr(n.data,e.x)}getYDataExtent(e){const{config:n,datamodel:r}=this,i=this.xScale.domain(),o=e?Ul(r.data,i,n.x,!0):r.data,a=Ve(n.y)?n.y:[n.y];return lr(o,...a)}}var S;(function(t){t.Top="top",t.Bottom="bottom",t.Left="left",t.Right="right",t.Center="center",t.Auto="auto"})(S||(S={}));var Zo;(function(t){t.Absolute="absolute",t.Fixed="fixed"})(Zo||(Zo={}));var Qo;(function(t){t.Inside="inside",t.Outside="outside",t.Center="center"})(Qo||(Qo={}));var Ko;(function(t){t.Horizontal="horizontal",t.Vertical="vertical"})(Ko||(Ko={}));const X0={components:[],container:void 0,followCursor:!0,allowHover:!1,horizontalPlacement:S.Auto,horizontalShift:0,verticalPlacement:S.Top,verticalShift:0,attributes:{},triggers:{},className:void 0,showDelay:void 0,hideDelay:void 0},ar=W`
55
55
  label: tooltip;
@@ -69,7 +69,7 @@ import{P as rc,c as Oe,am as Ei,K as te,cg as ic,S as oc,T as He,U as ac,a4 as o
69
69
  border: solid 1px var(--vis-tooltip-border-color);
70
70
  background-color: var(--vis-tooltip-background-color);
71
71
  backdrop-filter: var(--vis-tooltip-backdrop-filter);
72
- `,q0=ar,G0=Jn`
72
+ `,q0=ar,G0=jn`
73
73
  :root {
74
74
  --vis-tooltip-background-color: rgba(255, 255, 255, 0.95);
75
75
  --vis-tooltip-border-color: #e5e9f7;
@@ -111,9 +111,9 @@ import{P as rc,c as Oe,am as Ei,K as te,cg as ic,S as oc,T as He,U as ac,a4 as o
111
111
  label: non-interactive;
112
112
  pointer-events: none;
113
113
  user-select: none;
114
- `,Z0=Object.freeze(Object.defineProperty({__proto__:null,hidden:mn,nonInteractive:Ns,positionFixed:$s,root:ar,show:gn,tooltip:q0,variables:G0},Symbol.toStringTag,{value:"Module"}));class Rs{constructor(e={}){this._defaultConfig=X0,this.config=this._defaultConfig,this._setUpEventsThrottled=Mn(this._setUpEvents,500),this._setContainerPositionThrottled=Mn(this._setContainerPosition,500),this._isShown=!1,this.element=document.createElement("div"),this.div=kt(this.element).attr("class",ar).classed(gn,!1).classed(mn,!0),this.setConfig(e),this.components=this.config.components,this._mutationObserver=new MutationObserver(()=>{this._isShown&&(!this.config.followCursor&&this._hoveredElement?this.placeByElement(this._hoveredElement):this._position&&this.place({x:this._position[0],y:this._position[1]}))}),this._mutationObserver.observe(this.div.node(),{childList:!0,subtree:!0})}setConfig(e){var n;this.prevConfig=this.config,this.config=ue(this._defaultConfig,e),this.prevConfig.horizontalPlacement!==this.config.horizontalPlacement&&this.overrideHorizontalPlacement(void 0),this.config.container&&this.config.container!==((n=this.prevConfig)===null||n===void 0?void 0:n.container)&&this.setContainer(this.config.container),this._setUpAttributes()}setContainer(e){var n;(n=this.element.parentNode)===null||n===void 0||n.removeChild(this.element),this._container=e,this._container.appendChild(this.element),this._setContainerPositionThrottled()}getContainer(){return this._container}hasContainer(){return!!this._container&&this._container.isConnected}setComponents(e){this.components=e}update(){this._container&&this._setUpEventsThrottled()}show(e,n){this.render(e),this.place(n)}_hide(){this.div.classed(gn,!1).on("transitionend",()=>{this.div.classed(mn,!this._isShown)}),this._isShown=!1}hide(){window.clearTimeout(this._showDelayTimeoutId),this.config.hideDelay?(window.clearTimeout(this._hideDelayTimeoutId),this._hideDelayTimeoutId=setTimeout(()=>this._hide(),this.config.hideDelay)):this._hide()}_display(){window.clearTimeout(this._hideDelayTimeoutId),this.div.classed(mn,!1).classed(gn,!0),this._isShown=!0}display(){this._isShown||(this.config.showDelay?(window.clearTimeout(this._showDelayTimeoutId),this._showDelayTimeoutId=setTimeout(()=>{this._display(),this.place({x:this._position[0],y:this._position[1]})},this.config.showDelay)):this._display())}place(e){if(this._position=[e.x,e.y],!this.hasContainer()){console.warn("Unovis | Tooltip: Container was not set or is not initialized yet");return}const{config:n}=this,r=this.element.offsetWidth,i=this.element.offsetHeight,o=this._overriddenHorizontalPlacement||(n.horizontalPlacement===S.Auto?S.Center:n.horizontalPlacement),a=n.verticalPlacement===S.Auto?e.y-i<0?S.Bottom:S.Top:n.verticalPlacement,s=5,c=o===S.Left?-r-s-n.horizontalShift:o===S.Center?-r/2:s+n.horizontalShift,u=a===S.Bottom?s+n.verticalShift:a===S.Center?-i/2:-s-n.verticalShift-i,[l,f]=this._constraintPosToContainer(e.x+c,e.y+u,r,i);this._applyPosition(l,f,i)}placeByElement(e){const{config:n}=this;this._hoveredElement=e;const r=5,i=this.element.offsetWidth,o=this.element.offsetHeight,a=this.isContainerBody(),s=a?window.innerWidth:this._container.scrollWidth,c=e.getBoundingClientRect(),u=a?[c.x,c.y]:kn({clientX:c.x,clientY:c.y,pageX:c.x,pageY:c.y},this._container),l=this._overriddenHorizontalPlacement||(n.horizontalPlacement===S.Auto?u[0]-i<0?S.Right:u[0]+i>s?S.Left:S.Center:n.horizontalPlacement);let f=0;switch(l){case S.Left:f=-i-r-n.horizontalShift;break;case S.Right:f=c.width+r+n.horizontalShift;break;case S.Center:default:f=(-i+c.width)/2;break}const h=n.verticalPlacement===S.Auto?l!==S.Center?S.Center:u[1]-o<0?S.Bottom:S.Top:n.verticalPlacement;let d=-o;switch(h){case S.Center:d+=(o+c.height)/2;break;case S.Bottom:d+=o+c.height+r+n.verticalShift;break;case S.Top:default:d+=-r-n.verticalShift;break}const[m,g]=this._constraintPosToContainer(u[0]+f,u[1]+d,i,o);this._applyPosition(m,g,o)}isContainerBody(){return this._container===document.body}overrideHorizontalPlacement(e){this._overriddenHorizontalPlacement=e}render(e){var n;const{config:r,prevConfig:i}=this;e instanceof HTMLElement?this.div.select(":first-child").node()!==e&&this.div.html("").append(()=>e):e!==null&&this.div.html(e||""),this.div.classed((n=r.className)!==null&&n!==void 0?n:"",!!r.className).classed(Ns,!r.allowHover),i?.className&&i.className!==r.className&&this.div.classed(i.className,!1),this.display()}_applyPosition(e,n,r){const i=this.isContainerBody(),o=i?window.innerHeight:this._container.scrollHeight;this.div.classed($s,i).style("top",i?`${n}px`:"unset").style("bottom",i?"unset":`${o-n-r}px`).style("left",`${e}px`)}_constraintPosToContainer(e,n,r,i){const o=this.isContainerBody(),a=o?window.innerHeight:this._container.scrollHeight,s=o?window.innerWidth:this._container.scrollWidth,c=10,u=e>s-r-c,l=e<c,f=u?s-r-c:l?c:e,h=10,d=n>a-i-h,m=n<h,g=d?a-i-h:m?h:n;return[s<r?0:f,a<i?0:g]}_setContainerPosition(){var e;this._container!==document.body&&((e=getComputedStyle(this._container))===null||e===void 0?void 0:e.position)==="static"&&(this._container.style.position="relative")}_setUpEvents(){const{config:e}=this;this.components.forEach(n=>{const r=kt(n.element);r.on("mousemove.tooltip",i=>{const{config:o}=this,a=i.composedPath&&i.composedPath()||i.path||[i.target];for(const s of Object.keys(o.triggers)){const c=o.triggers[s];if(!c)continue;const u=r.selectAll(`.${s}`).nodes();for(const l of a){if(l===r.node())break;if(l.classList.contains(s)){const f=u.indexOf(l),h=kt(l).datum(),d=c(h,f,u),[m,g]=this.isContainerBody()?[i.clientX,i.clientY]:kn(i,this._container);d===null?this.hide():(this.render(d),o.followCursor?this.place({x:m,y:g}):this.placeByElement(l)),i.stopPropagation();return}}}this._isShown&&this.hide()}).on("mouseleave.tooltip",i=>{i.stopPropagation(),this.hide()})}),e.allowHover?this.div.on("mouseenter.tooltip",this._display.bind(this)).on("mouseleave.tooltip",this.hide.bind(this)):this.div.on("mouseenter.tooltip",null).on("mouseleave.tooltip",null)}_setUpAttributes(){const e=this.config.attributes;e&&Object.keys(e).forEach(n=>{this.div.attr(n,e[n])})}destroy(){var e;this._mutationObserver.disconnect(),window.clearTimeout(this._hideDelayTimeoutId),window.clearTimeout(this._showDelayTimeoutId),(e=this.div)===null||e===void 0||e.remove()}}Rs.selectors=Z0;function an(t,e,n,r){return Array.isArray(e)&&isFinite(n)?e[n%e.length]:zl(t,e,n)||(ee(n)?`var(${Et(n)})`:null)}function Q0(t){return t}var pn=1,vn=2,Hr=3,Ce=4,jo=1e-6;function K0(t){return"translate("+t+",0)"}function j0(t){return"translate(0,"+t+")"}function J0(t){return e=>+t(e)}function tm(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function em(){return!this.__axis}function sr(t,e){var n=[],r=null,i=null,o=6,a=6,s=3,c=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=t===pn||t===Ce?-1:1,l=t===Ce||t===vn?"x":"y",f=t===pn||t===Hr?K0:j0;function h(d){var m=r??(e.ticks?e.ticks.apply(e,n):e.domain()),g=i??(e.tickFormat?e.tickFormat.apply(e,n):Q0),v=Math.max(o,0)+s,y=e.range(),w=+y[0]+c,_=+y[y.length-1]+c,T=(e.bandwidth?tm:J0)(e.copy(),c),k=d.selection?d.selection():d,p=k.selectAll(".domain").data([null]),b=k.selectAll(".tick").data(m,e).order(),I=b.exit(),F=b.enter().append("g").attr("class","tick"),E=b.select("line"),Y=b.select("text");p=p.merge(p.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),b=b.merge(F),E=E.merge(F.append("line").attr("stroke","currentColor").attr(l+"2",u*o)),Y=Y.merge(F.append("text").attr("fill","currentColor").attr(l,u*v).attr("dy",t===pn?"0em":t===Hr?"0.71em":"0.32em")),d!==k&&(p=p.transition(d),b=b.transition(d),E=E.transition(d),Y=Y.transition(d),I=I.transition(d).attr("opacity",jo).attr("transform",function(M){return isFinite(M=T(M))?f(M+c):this.getAttribute("transform")}),F.attr("opacity",jo).attr("transform",function(M){var q=this.parentNode.__axis;return f((q&&isFinite(q=q(M))?q:T(M))+c)})),I.remove(),p.attr("d",t===Ce||t===vn?a?"M"+u*a+","+w+"H"+c+"V"+_+"H"+u*a:"M"+c+","+w+"V"+_:a?"M"+w+","+u*a+"V"+c+"H"+_+"V"+u*a:"M"+w+","+c+"H"+_),b.attr("opacity",1).attr("transform",function(M){return f(T(M)+c)}),E.attr(l+"2",u*o),Y.attr(l,u*v).text(g),k.filter(em).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===vn?"start":t===Ce?"end":"middle"),k.each(function(){this.__axis=T})}return h.scale=function(d){return arguments.length?(e=d,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(d){return arguments.length?(n=d==null?[]:Array.from(d),h):n.slice()},h.tickValues=function(d){return arguments.length?(r=d==null?null:Array.from(d),h):r&&r.slice()},h.tickFormat=function(d){return arguments.length?(i=d,h):i},h.tickSize=function(d){return arguments.length?(o=a=+d,h):o},h.tickSizeInner=function(d){return arguments.length?(o=+d,h):o},h.tickSizeOuter=function(d){return arguments.length?(a=+d,h):a},h.tickPadding=function(d){return arguments.length?(s=+d,h):s},h.offset=function(d){return arguments.length?(c=+d,h):c},h}function Jo(t){return sr(pn,t)}function ta(t){return sr(vn,t)}function ea(t){return sr(Hr,t)}function na(t){return sr(Ce,t)}var Nt;(function(t){t.Start="start",t.Middle="middle",t.End="end"})(Nt||(Nt={}));var Ht;(function(t){t.Top="top",t.Middle="middle",t.Bottom="bottom"})(Ht||(Ht={}));var xt;(function(t){t.Wrap="wrap",t.Trim="trim"})(xt||(xt={}));var ct;(function(t){t.Left="left",t.Center="center",t.Right="right"})(ct||(ct={}));var yn={exports:{}},nm=yn.exports,ra;function rm(){return ra||(ra=1,(function(t){(function(e){if(typeof n!="function"){var n=function(m){return m};n.nonNative=!0}const r=n("plaintext"),i=n("html"),o=n("comment"),a=/<(\w*)>/g,s=/<\/?([^\s\/>]+)/;function c(m,g,v){m=m||"",g=g||[],v=v||"";let y=l(g,v);return f(m,y)}function u(m,g){m=m||[],g=g||"";let v=l(m,g);return function(w){return f(w||"",v)}}c.init_streaming_mode=u;function l(m,g){return m=h(m),{allowable_tags:m,tag_replacement:g,state:r,tag_buffer:"",depth:0,in_quote_char:""}}function f(m,g){if(typeof m!="string")throw new TypeError("'html' parameter must be a string");let v=g.allowable_tags,y=g.tag_replacement,w=g.state,_=g.tag_buffer,T=g.depth,k=g.in_quote_char,p="";for(let b=0,I=m.length;b<I;b++){let F=m[b];if(w===r)F==="<"?(w=i,_+=F):p+=F;else if(w===i)switch(F){case"<":if(k)break;T++;break;case">":if(k)break;if(T){T--;break}k="",w=r,_+=">",v.has(d(_))?p+=_:p+=y,_="";break;case'"':case"'":F===k?k="":k=k||F,_+=F;break;case"-":_==="<!-"&&(w=o),_+=F;break;case" ":case`
114
+ `,Z0=Object.freeze(Object.defineProperty({__proto__:null,hidden:mn,nonInteractive:Ns,positionFixed:$s,root:ar,show:gn,tooltip:q0,variables:G0},Symbol.toStringTag,{value:"Module"}));class Rs{constructor(e={}){this._defaultConfig=X0,this.config=this._defaultConfig,this._setUpEventsThrottled=Mn(this._setUpEvents,500),this._setContainerPositionThrottled=Mn(this._setContainerPosition,500),this._isShown=!1,this.element=document.createElement("div"),this.div=kt(this.element).attr("class",ar).classed(gn,!1).classed(mn,!0),this.setConfig(e),this.components=this.config.components,this._mutationObserver=new MutationObserver(()=>{this._isShown&&(!this.config.followCursor&&this._hoveredElement?this.placeByElement(this._hoveredElement):this._position&&this.place({x:this._position[0],y:this._position[1]}))}),this._mutationObserver.observe(this.div.node(),{childList:!0,subtree:!0})}setConfig(e){var n;this.prevConfig=this.config,this.config=ue(this._defaultConfig,e),this.prevConfig.horizontalPlacement!==this.config.horizontalPlacement&&this.overrideHorizontalPlacement(void 0),this.config.container&&this.config.container!==((n=this.prevConfig)===null||n===void 0?void 0:n.container)&&this.setContainer(this.config.container),this._setUpAttributes()}setContainer(e){var n;(n=this.element.parentNode)===null||n===void 0||n.removeChild(this.element),this._container=e,this._container.appendChild(this.element),this._setContainerPositionThrottled()}getContainer(){return this._container}hasContainer(){return!!this._container&&this._container.isConnected}setComponents(e){this.components=e}update(){this._container&&this._setUpEventsThrottled()}show(e,n){this.render(e),this.place(n)}_hide(){this.div.classed(gn,!1).on("transitionend",()=>{this.div.classed(mn,!this._isShown)}),this._isShown=!1}hide(){window.clearTimeout(this._showDelayTimeoutId),this.config.hideDelay?(window.clearTimeout(this._hideDelayTimeoutId),this._hideDelayTimeoutId=setTimeout(()=>this._hide(),this.config.hideDelay)):this._hide()}_display(){window.clearTimeout(this._hideDelayTimeoutId),this.div.classed(mn,!1).classed(gn,!0),this._isShown=!0}display(){this._isShown||(this.config.showDelay?(window.clearTimeout(this._showDelayTimeoutId),this._showDelayTimeoutId=setTimeout(()=>{this._display(),this.place({x:this._position[0],y:this._position[1]})},this.config.showDelay)):this._display())}place(e){if(this._position=[e.x,e.y],!this.hasContainer()){console.warn("Unovis | Tooltip: Container was not set or is not initialized yet");return}const{config:n}=this,r=this.element.offsetWidth,i=this.element.offsetHeight,o=this._overriddenHorizontalPlacement||(n.horizontalPlacement===S.Auto?S.Center:n.horizontalPlacement),a=n.verticalPlacement===S.Auto?e.y-i<0?S.Bottom:S.Top:n.verticalPlacement,s=5,c=o===S.Left?-r-s-n.horizontalShift:o===S.Center?-r/2:s+n.horizontalShift,u=a===S.Bottom?s+n.verticalShift:a===S.Center?-i/2:-s-n.verticalShift-i,[l,f]=this._constraintPosToContainer(e.x+c,e.y+u,r,i);this._applyPosition(l,f,i)}placeByElement(e){const{config:n}=this;this._hoveredElement=e;const r=5,i=this.element.offsetWidth,o=this.element.offsetHeight,a=this.isContainerBody(),s=a?window.innerWidth:this._container.scrollWidth,c=e.getBoundingClientRect(),u=a?[c.x,c.y]:kn({clientX:c.x,clientY:c.y,pageX:c.x,pageY:c.y},this._container),l=this._overriddenHorizontalPlacement||(n.horizontalPlacement===S.Auto?u[0]-i<0?S.Right:u[0]+i>s?S.Left:S.Center:n.horizontalPlacement);let f=0;switch(l){case S.Left:f=-i-r-n.horizontalShift;break;case S.Right:f=c.width+r+n.horizontalShift;break;case S.Center:default:f=(-i+c.width)/2;break}const h=n.verticalPlacement===S.Auto?l!==S.Center?S.Center:u[1]-o<0?S.Bottom:S.Top:n.verticalPlacement;let d=-o;switch(h){case S.Center:d+=(o+c.height)/2;break;case S.Bottom:d+=o+c.height+r+n.verticalShift;break;case S.Top:default:d+=-r-n.verticalShift;break}const[m,g]=this._constraintPosToContainer(u[0]+f,u[1]+d,i,o);this._applyPosition(m,g,o)}isContainerBody(){return this._container===document.body}overrideHorizontalPlacement(e){this._overriddenHorizontalPlacement=e}render(e){var n;const{config:r,prevConfig:i}=this;e instanceof HTMLElement?this.div.select(":first-child").node()!==e&&this.div.html("").append(()=>e):e!==null&&this.div.html(e||""),this.div.classed((n=r.className)!==null&&n!==void 0?n:"",!!r.className).classed(Ns,!r.allowHover),i?.className&&i.className!==r.className&&this.div.classed(i.className,!1),this.display()}_applyPosition(e,n,r){const i=this.isContainerBody(),o=i?window.innerHeight:this._container.scrollHeight;this.div.classed($s,i).style("top",i?`${n}px`:"unset").style("bottom",i?"unset":`${o-n-r}px`).style("left",`${e}px`)}_constraintPosToContainer(e,n,r,i){const o=this.isContainerBody(),a=o?window.innerHeight:this._container.scrollHeight,s=o?window.innerWidth:this._container.scrollWidth,c=10,u=e>s-r-c,l=e<c,f=u?s-r-c:l?c:e,h=10,d=n>a-i-h,m=n<h,g=d?a-i-h:m?h:n;return[s<r?0:f,a<i?0:g]}_setContainerPosition(){var e;this._container!==document.body&&((e=getComputedStyle(this._container))===null||e===void 0?void 0:e.position)==="static"&&(this._container.style.position="relative")}_setUpEvents(){const{config:e}=this;this.components.forEach(n=>{const r=kt(n.element);r.on("mousemove.tooltip",i=>{const{config:o}=this,a=i.composedPath&&i.composedPath()||i.path||[i.target];for(const s of Object.keys(o.triggers)){const c=o.triggers[s];if(!c)continue;const u=r.selectAll(`.${s}`).nodes();for(const l of a){if(l===r.node())break;if(l.classList.contains(s)){const f=u.indexOf(l),h=kt(l).datum(),d=c(h,f,u),[m,g]=this.isContainerBody()?[i.clientX,i.clientY]:kn(i,this._container);d===null?this.hide():(this.render(d),o.followCursor?this.place({x:m,y:g}):this.placeByElement(l)),i.stopPropagation();return}}}this._isShown&&this.hide()}).on("mouseleave.tooltip",i=>{i.stopPropagation(),this.hide()})}),e.allowHover?this.div.on("mouseenter.tooltip",this._display.bind(this)).on("mouseleave.tooltip",this.hide.bind(this)):this.div.on("mouseenter.tooltip",null).on("mouseleave.tooltip",null)}_setUpAttributes(){const e=this.config.attributes;e&&Object.keys(e).forEach(n=>{this.div.attr(n,e[n])})}destroy(){var e;this._mutationObserver.disconnect(),window.clearTimeout(this._hideDelayTimeoutId),window.clearTimeout(this._showDelayTimeoutId),(e=this.div)===null||e===void 0||e.remove()}}Rs.selectors=Z0;function an(t,e,n,r){return Array.isArray(e)&&isFinite(n)?e[n%e.length]:zl(t,e,n)||(ee(n)?`var(${Et(n)})`:null)}function Q0(t){return t}var pn=1,vn=2,Hr=3,Ce=4,Jo=1e-6;function K0(t){return"translate("+t+",0)"}function J0(t){return"translate(0,"+t+")"}function j0(t){return e=>+t(e)}function tm(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function em(){return!this.__axis}function sr(t,e){var n=[],r=null,i=null,o=6,a=6,s=3,c=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=t===pn||t===Ce?-1:1,l=t===Ce||t===vn?"x":"y",f=t===pn||t===Hr?K0:J0;function h(d){var m=r??(e.ticks?e.ticks.apply(e,n):e.domain()),g=i??(e.tickFormat?e.tickFormat.apply(e,n):Q0),v=Math.max(o,0)+s,y=e.range(),w=+y[0]+c,_=+y[y.length-1]+c,T=(e.bandwidth?tm:j0)(e.copy(),c),k=d.selection?d.selection():d,p=k.selectAll(".domain").data([null]),b=k.selectAll(".tick").data(m,e).order(),I=b.exit(),F=b.enter().append("g").attr("class","tick"),E=b.select("line"),Y=b.select("text");p=p.merge(p.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),b=b.merge(F),E=E.merge(F.append("line").attr("stroke","currentColor").attr(l+"2",u*o)),Y=Y.merge(F.append("text").attr("fill","currentColor").attr(l,u*v).attr("dy",t===pn?"0em":t===Hr?"0.71em":"0.32em")),d!==k&&(p=p.transition(d),b=b.transition(d),E=E.transition(d),Y=Y.transition(d),I=I.transition(d).attr("opacity",Jo).attr("transform",function(M){return isFinite(M=T(M))?f(M+c):this.getAttribute("transform")}),F.attr("opacity",Jo).attr("transform",function(M){var q=this.parentNode.__axis;return f((q&&isFinite(q=q(M))?q:T(M))+c)})),I.remove(),p.attr("d",t===Ce||t===vn?a?"M"+u*a+","+w+"H"+c+"V"+_+"H"+u*a:"M"+c+","+w+"V"+_:a?"M"+w+","+u*a+"V"+c+"H"+_+"V"+u*a:"M"+w+","+c+"H"+_),b.attr("opacity",1).attr("transform",function(M){return f(T(M)+c)}),E.attr(l+"2",u*o),Y.attr(l,u*v).text(g),k.filter(em).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===vn?"start":t===Ce?"end":"middle"),k.each(function(){this.__axis=T})}return h.scale=function(d){return arguments.length?(e=d,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(d){return arguments.length?(n=d==null?[]:Array.from(d),h):n.slice()},h.tickValues=function(d){return arguments.length?(r=d==null?null:Array.from(d),h):r&&r.slice()},h.tickFormat=function(d){return arguments.length?(i=d,h):i},h.tickSize=function(d){return arguments.length?(o=a=+d,h):o},h.tickSizeInner=function(d){return arguments.length?(o=+d,h):o},h.tickSizeOuter=function(d){return arguments.length?(a=+d,h):a},h.tickPadding=function(d){return arguments.length?(s=+d,h):s},h.offset=function(d){return arguments.length?(c=+d,h):c},h}function jo(t){return sr(pn,t)}function ta(t){return sr(vn,t)}function ea(t){return sr(Hr,t)}function na(t){return sr(Ce,t)}var Nt;(function(t){t.Start="start",t.Middle="middle",t.End="end"})(Nt||(Nt={}));var Ht;(function(t){t.Top="top",t.Middle="middle",t.Bottom="bottom"})(Ht||(Ht={}));var xt;(function(t){t.Wrap="wrap",t.Trim="trim"})(xt||(xt={}));var ct;(function(t){t.Left="left",t.Center="center",t.Right="right"})(ct||(ct={}));var yn={exports:{}},nm=yn.exports,ra;function rm(){return ra||(ra=1,(function(t){(function(e){if(typeof n!="function"){var n=function(m){return m};n.nonNative=!0}const r=n("plaintext"),i=n("html"),o=n("comment"),a=/<(\w*)>/g,s=/<\/?([^\s\/>]+)/;function c(m,g,v){m=m||"",g=g||[],v=v||"";let y=l(g,v);return f(m,y)}function u(m,g){m=m||[],g=g||"";let v=l(m,g);return function(w){return f(w||"",v)}}c.init_streaming_mode=u;function l(m,g){return m=h(m),{allowable_tags:m,tag_replacement:g,state:r,tag_buffer:"",depth:0,in_quote_char:""}}function f(m,g){if(typeof m!="string")throw new TypeError("'html' parameter must be a string");let v=g.allowable_tags,y=g.tag_replacement,w=g.state,_=g.tag_buffer,T=g.depth,k=g.in_quote_char,p="";for(let b=0,I=m.length;b<I;b++){let F=m[b];if(w===r)F==="<"?(w=i,_+=F):p+=F;else if(w===i)switch(F){case"<":if(k)break;T++;break;case">":if(k)break;if(T){T--;break}k="",w=r,_+=">",v.has(d(_))?p+=_:p+=y,_="";break;case'"':case"'":F===k?k="":k=k||F,_+=F;break;case"-":_==="<!-"&&(w=o),_+=F;break;case" ":case`
115
115
  `:if(_==="<"){w=r,p+="< ",_="";break}_+=F;break;default:_+=F;break}else w===o&&(F===">"?(_.slice(-2)=="--"&&(w=r),_=""):_+=F)}return g.state=w,g.tag_buffer=_,g.depth=T,g.in_quote_char=k,p}function h(m){let g=new Set;if(typeof m=="string"){let v;for(;v=a.exec(m);)g.add(v[1])}else!n.nonNative&&typeof m[n.iterator]=="function"?g=new Set(m):typeof m.forEach=="function"&&m.forEach(g.add,g);return g}function d(m){let g=s.exec(m);return g?g[1].toLowerCase():null}t.exports?t.exports=c:e.striptags=c})(nm)})(yn)),yn.exports}var im=rm();const om=vc(im);function am(t){switch(t){case ct.Center:return"middle";case ct.Right:return"end";case ct.Left:default:return"start"}}const sm=t=>{switch(t){case ct.Left:return"start";case ct.Right:return"end";case ct.Center:return"middle";default:return null}};function cm(t){return t.replace(/-([a-z])/g,(e,n)=>n.toUpperCase())}function um(t){var e;return(e=t.match(/[A-Z]{2,}(?=[A-Z][a-z0-9]*|\b)|[A-Z]?[a-z0-9]*|[A-Z]|[0-9]+/g))===null||e===void 0?void 0:e.filter(Boolean).map(n=>n.toLowerCase()).join("-")}function lm(t){return t.replace(/['"]/g,"&#39;").replace(/\u0000/g,"\\0").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\v/g,"\\v").replace(/\t/g,"\\t").replace(/\f/g,"\\f")}function fm(t,e=15){return t?t.length>e?`…${t.substr(t.length-e,e)}`:t:""}function hm(t,e=15){if(!t)return"";const n=Math.floor((e-3)/2);return t.length>e?`${t.substr(0,n)}…${t.substr(-n,n)}`:t}function dm(t,e=15){return t?t.length>e?`${t.substr(0,e)}…`:t:""}function gm(t,e=15,n=Nt.Middle){if(!t)return"";let r=dm(t,e);return n===Nt.Start?r=fm(t,e):n===Nt.Middle&&(r=hm(t,e)),r}function Fs(t,e=[" "]){let n=[t];for(let r=0;r<e.length;r++){const i=e[r];n.forEach((o,a)=>{const s=o.split(i),c=s.map((u,l)=>`${u}${l===s.length-1?"":i}`);n[a]=c}),n=Ar(n)}return n}function mm(t,e,n=[" ","-",".",","]){const r=t.text();if(!r)return;const i=Ve(n)?n:[n],o=Fs(r,i),a=parseFloat(t.attr("x"))||0;t.text("");let s=t.append("tspan").attr("x",a),c=`${o[0]}`;s.text(c),o.forEach((u,l)=>{if(l===0)return;const f=`${c}${u}`;s.text(f),s.node().getComputedTextLength()>e?(s.text(c.trim()),s=t.append("tspan").attr("x",a).attr("dy","1.2em").text(u),c=u):c+=u})}function ia(t,e,n,r,i,o){var a;e===void 0&&(e=50),n===void 0&&(n=Nt.Middle),i===void 0&&(i=+((a=window.getComputedStyle(t.node()))===null||a===void 0?void 0:a.fontSize)||0),o===void 0&&(o=Ga());const s=t.text()||"",c=s.length,u=i*c*o,f=Math.ceil(c*e/(1.1*u));return f<c?(t.text(gm(s,f,n)),!0):!1}function xn(t,e,n=Ga()){return t.length*e*n||0}function wn(t,e,n){const r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),o=document.createElementNS(r,"text");o.textContent=t,o.setAttribute("font-size",`${n}`),o.setAttribute("font-family",e),i.appendChild(o),document.body.appendChild(i);const a=o.getComputedTextLength();return document.body.removeChild(i),a}function pm(t,e=void 0,n=!0,r=Xa,i=!1){var o,a,s;const c=`${t.text}`;if(!c)return[];const u=(o=t.fontSize)!==null&&o!==void 0?o:De.fontSize,l=(a=t.fontFamily)!==null&&a!==void 0?a:De.fontFamily,f=(s=t.fontWidthToHeightRatio)!==null&&s!==void 0?s:De.fontWidthToHeightRatio,h=Array.isArray(r)?r:[r];return c.split(`
116
- `).map(m=>{const g=[];if(!e)return[m];const v=Fs(m,h);let y="";for(let w=0;w<v.length;w+=1){(n?xn(y+v[w],u,f):wn(y+v[w],l,u))<e||w===0?y+=v[w]:(g.push(y.trim()),y=v[w]);const T=2;if(i)for(;y.trim().length>T&&(n?xn(y,u,f):wn(y,l,u))>e;){let p=y.trim().length-T;for(;p>0;){const b=`${y.substring(0,p)}${qa}`;if((n?xn(b,u,f):wn(b,l,u))<=e||p===1){g.push(b.trim()),y=y.substring(p);break}p--}}}return y&&g.push(y.trim()),g}).flat()}function vm(t,e=void 0,n=void 0,r=!0,i=Xa,o=!1){const a=Array.isArray(t)?t.map(f=>ue(De,f)):[ue(De,t)],s=a.map(f=>pm(f,e,r,i,o)),c=a[0];let u=-c.fontSize*(c.lineHeight-1);const l=[];return a.forEach((f,h)=>{var d;let m=s[h];const g=h>0?l[h-1]:void 0,v=g?g.marginBottom:0,y=f.marginTop,w=Math.max(v,y);u+=w;const _=f.fontSize*f.lineHeight;let T=0;for(let k=0;k<m.length;k+=1){let p=m[k];u+=_;const b=`${p} …`,I=r?xn(b,f.fontSize,f.fontWidthToHeightRatio):wn(b,f.fontFamily,f.fontSize);if(T=Math.max(I,T),n&&u+_>n&&k!==m.length-1){p.charAt(p.length-1)===qa&&(p=p.substr(0,m[k].length-1)),I<e?m[k]=b:m[k]=`${m[k].substr(0,m[k].length-2)}…`,m=m.slice(0,k+1);break}}l.push(Object.assign(Object.assign({},f),{_lines:m,_estimatedHeight:u-(g?._estimatedHeight||0),_maxWidth:Math.max(T,(d=g?._maxWidth)!==null&&d!==void 0?d:0)}))}),l}function ym(t,e=0,n){return t.map((r,i)=>{const o=i>0?t[i-1]:void 0,a=o?o.marginBottom/o.fontSize:0,s=r.marginTop/r.fontSize,c=Math.max(a,s),u={fontSize:r.fontSize,fontFamily:r.fontFamily,fontWeight:r.fontWeight,fill:r.color,y:i===0&&n};return`<tspan xmlns="http://www.w3.org/2000/svg" ${Object.entries(u).filter(([f,h])=>h).map(([f,h])=>`${um(f)}="${lm(h.toString())}"`).join(" ")}>${r._lines.map((f,h)=>{let d;return i===0&&h===0?d=.8+c:h===0?d=c+r.lineHeight:d=r.lineHeight,`<tspan x="${e}" dy="${d}em">${f.length?f:" "}</tspan>`}).join("")}</tspan>`})}function xm(t){return Il(t,e=>e._estimatedHeight)}const wm=["text","tspan","textPath","altGlyph","altGlyphDef","altGlyphItem","glyphRef","textRef","textArea"];function _m(t,e,n,r){var i,o;const a=vm(e,n.width,void 0,n.fastMode,n.separator,n.wordBreak),s=(i=n.x)!==null&&i!==void 0?i:+t.getAttribute("x"),c=(o=n.y)!==null&&o!==void 0?o:+t.getAttribute("y"),u=s??0;let l=c??0;if(n.textAlign&&t.setAttribute("text-anchor",am(n.textAlign)),n.verticalAlign&&n.verticalAlign!==Ht.Top){const f=xm(a),h=n.verticalAlign===Ht.Middle?-f/2:n.verticalAlign===Ht.Bottom?-f:0;l+=h}n.textRotationAngle?t.setAttribute("transform",`rotate(${n.textRotationAngle===0||n.textRotationAngle?n.textRotationAngle:0} ${u} ${l})`):t.removeAttribute("transform");{const f=new DOMParser;t.textContent="",a.forEach(h=>{const d=ym([h],u,l).join(""),m=om(d,wm),g=f.parseFromString(m,"image/svg+xml").firstChild;t.appendChild(g)})}}const bm=Object.assign(Object.assign({},ki),{position:void 0,type:void 0,label:void 0,labelFontSize:null,labelTextFitMode:xt.Wrap,labelTextTrimType:Nt.Middle,gridLine:!0,tickLine:!0,domainLine:!0,numTicks:void 0,minMaxTicksOnly:!1,minMaxTicksOnlyWhenWidthIsLess:250,minMaxTicksOnlyShowGridLines:!1,tickTextWidth:void 0,tickTextSeparator:void 0,tickTextForceWordBreak:!1,tickTextTrimType:Nt.Middle,tickTextFitMode:xt.Wrap,tickTextFontSize:null,tickTextAlign:void 0,tickTextColor:null,tickTextAngle:void 0,labelMargin:8,labelColor:null,tickFormat:void 0,tickValues:void 0,fullSize:!0,tickPadding:8,tickTextHideOverlapping:void 0});function km(t,e){const n="--vis-",r=Object.entries(t);return Object.fromEntries(r.map(([i])=>[cm(i.replace(n,"")),i]))}function Tm(t,e){Jn({":root":t,[`body.theme-dark .${e}`]:Object.keys(t).filter(n=>n.includes("--vis-dark")).map(n=>({[n.replace("--vis-dark","--vis")]:`var(${n})`}))})}const Ps=W`
116
+ `).map(m=>{const g=[];if(!e)return[m];const v=Fs(m,h);let y="";for(let w=0;w<v.length;w+=1){(n?xn(y+v[w],u,f):wn(y+v[w],l,u))<e||w===0?y+=v[w]:(g.push(y.trim()),y=v[w]);const T=2;if(i)for(;y.trim().length>T&&(n?xn(y,u,f):wn(y,l,u))>e;){let p=y.trim().length-T;for(;p>0;){const b=`${y.substring(0,p)}${qa}`;if((n?xn(b,u,f):wn(b,l,u))<=e||p===1){g.push(b.trim()),y=y.substring(p);break}p--}}}return y&&g.push(y.trim()),g}).flat()}function vm(t,e=void 0,n=void 0,r=!0,i=Xa,o=!1){const a=Array.isArray(t)?t.map(f=>ue(De,f)):[ue(De,t)],s=a.map(f=>pm(f,e,r,i,o)),c=a[0];let u=-c.fontSize*(c.lineHeight-1);const l=[];return a.forEach((f,h)=>{var d;let m=s[h];const g=h>0?l[h-1]:void 0,v=g?g.marginBottom:0,y=f.marginTop,w=Math.max(v,y);u+=w;const _=f.fontSize*f.lineHeight;let T=0;for(let k=0;k<m.length;k+=1){let p=m[k];u+=_;const b=`${p} …`,I=r?xn(b,f.fontSize,f.fontWidthToHeightRatio):wn(b,f.fontFamily,f.fontSize);if(T=Math.max(I,T),n&&u+_>n&&k!==m.length-1){p.charAt(p.length-1)===qa&&(p=p.substr(0,m[k].length-1)),I<e?m[k]=b:m[k]=`${m[k].substr(0,m[k].length-2)}…`,m=m.slice(0,k+1);break}}l.push(Object.assign(Object.assign({},f),{_lines:m,_estimatedHeight:u-(g?._estimatedHeight||0),_maxWidth:Math.max(T,(d=g?._maxWidth)!==null&&d!==void 0?d:0)}))}),l}function ym(t,e=0,n){return t.map((r,i)=>{const o=i>0?t[i-1]:void 0,a=o?o.marginBottom/o.fontSize:0,s=r.marginTop/r.fontSize,c=Math.max(a,s),u={fontSize:r.fontSize,fontFamily:r.fontFamily,fontWeight:r.fontWeight,fill:r.color,y:i===0&&n};return`<tspan xmlns="http://www.w3.org/2000/svg" ${Object.entries(u).filter(([f,h])=>h).map(([f,h])=>`${um(f)}="${lm(h.toString())}"`).join(" ")}>${r._lines.map((f,h)=>{let d;return i===0&&h===0?d=.8+c:h===0?d=c+r.lineHeight:d=r.lineHeight,`<tspan x="${e}" dy="${d}em">${f.length?f:" "}</tspan>`}).join("")}</tspan>`})}function xm(t){return Il(t,e=>e._estimatedHeight)}const wm=["text","tspan","textPath","altGlyph","altGlyphDef","altGlyphItem","glyphRef","textRef","textArea"];function _m(t,e,n,r){var i,o;const a=vm(e,n.width,void 0,n.fastMode,n.separator,n.wordBreak),s=(i=n.x)!==null&&i!==void 0?i:+t.getAttribute("x"),c=(o=n.y)!==null&&o!==void 0?o:+t.getAttribute("y"),u=s??0;let l=c??0;if(n.textAlign&&t.setAttribute("text-anchor",am(n.textAlign)),n.verticalAlign&&n.verticalAlign!==Ht.Top){const f=xm(a),h=n.verticalAlign===Ht.Middle?-f/2:n.verticalAlign===Ht.Bottom?-f:0;l+=h}n.textRotationAngle?t.setAttribute("transform",`rotate(${n.textRotationAngle===0||n.textRotationAngle?n.textRotationAngle:0} ${u} ${l})`):t.removeAttribute("transform");{const f=new DOMParser;t.textContent="",a.forEach(h=>{const d=ym([h],u,l).join(""),m=om(d,wm),g=f.parseFromString(m,"image/svg+xml").firstChild;t.appendChild(g)})}}const bm=Object.assign(Object.assign({},ki),{position:void 0,type:void 0,label:void 0,labelFontSize:null,labelTextFitMode:xt.Wrap,labelTextTrimType:Nt.Middle,gridLine:!0,tickLine:!0,domainLine:!0,numTicks:void 0,minMaxTicksOnly:!1,minMaxTicksOnlyWhenWidthIsLess:250,minMaxTicksOnlyShowGridLines:!1,tickTextWidth:void 0,tickTextSeparator:void 0,tickTextForceWordBreak:!1,tickTextTrimType:Nt.Middle,tickTextFitMode:xt.Wrap,tickTextFontSize:null,tickTextAlign:void 0,tickTextColor:null,tickTextAngle:void 0,labelMargin:8,labelColor:null,tickFormat:void 0,tickValues:void 0,fullSize:!0,tickPadding:8,tickTextHideOverlapping:void 0});function km(t,e){const n="--vis-",r=Object.entries(t);return Object.fromEntries(r.map(([i])=>[cm(i.replace(n,"")),i]))}function Tm(t,e){jn({":root":t,[`body.theme-dark .${e}`]:Object.keys(t).filter(n=>n.includes("--vis-dark")).map(n=>({[n.replace("--vis-dark","--vis")]:`var(${n})`}))})}const Ps=W`
117
117
  label: axis-component;
118
118
  `,Ti={"--vis-axis-tick-color":"#e8e9ef","--vis-axis-grid-color":"#e8e9ef","--vis-axis-grid-line-width":"1px","--vis-axis-grid-line-dasharray":"none","--vis-axis-label-font-size":"14px","--vis-axis-label-color":"#6c778c","--vis-axis-label-weight":"500","--vis-axis-tick-label-color":"#6c778c","--vis-axis-tick-label-font-size":"12px","--vis-axis-tick-label-weight":"500","--vis-axis-tick-label-cursor":"default","--vis-axis-tick-label-text-decoration":"none","--vis-axis-tick-line-width":"1px","--vis-axis-tick-label-hide-transition":"opacity 400ms ease-in-out","--vis-dark-axis-tick-color":"#6c778c","--vis-dark-axis-tick-label-color":"#e8e9ef","--vis-dark-axis-grid-color":"#6c778c","--vis-dark-axis-label-color":"#fefefe"},Sm=km(Ti);Tm(Ti,Ps);const Si=W`
119
119
  label: hide-tick-line;
@@ -187,7 +187,7 @@ import{P as rc,c as Oe,am as Ei,K as te,cg as ic,S as oc,T as He,U as ac,a4 as o
187
187
  label: tick-label-hideable;
188
188
  opacity: 0;
189
189
  transition: var(--vis-axis-tick-label-hide-transition);
190
- `,Cm=Object.freeze(Object.defineProperty({__proto__:null,axis:Is,cssVarDefaults:Ti,grid:Ls,hideDomain:Ci,hideTickLine:Si,label:Ur,root:Ps,tick:Bs,tickLabel:zs,tickLabelHideable:Ws,tickTextExiting:Yr,variables:Sm},Symbol.toStringTag,{value:"Module"}));class Hs extends Os{constructor(e){super(),this._defaultConfig=bm,this.config=this._defaultConfig,this._defaultNumTicks=3,this.events={},e&&this.setConfig(e),this.axisGroup=this.g.append("g"),this.gridGroup=this.g.append("g").attr("class",Ls)}preRender(){const{config:e}=this,n=this.g.append("g").attr("opacity",0);this._renderAxis(n,0),this._axisRawBBox=n.node().getBBox(),e.tickTextAlign&&this._alignTickLabels(),this._renderAxisLabel(n),this._axisSizeBBox=this._getAxisSize(n),this._requiredMargin=this._getRequiredMargin(this._axisSizeBBox),n.remove()}getPosition(){const{config:{type:e,position:n}}=this;return n??(e===D.X?S.Bottom:S.Left)}_getAxisSize(e){return e.node().getBBox()}_getRequiredMargin(e=this._axisSizeBBox){const{config:{type:n,position:r}}=this;switch(n){case D.X:{const o=this._axisSizeBBox.x+this._axisSizeBBox.width,a=this._axisSizeBBox.x<0?Math.abs(this._axisSizeBBox.x):0,s=o-this._width>1?o-this._width:0;switch(r){case S.Top:return{top:e.height,left:a,right:s};case S.Bottom:default:return{bottom:e.height,left:a,right:s}}}case D.Y:{const i=e.height>this._height?(e.height-this._height)/2:0,o=i,a=i;switch(r){case S.Right:return{right:e.width,top:o,bottom:a};case S.Left:default:return{left:e.width,top:o,bottom:a}}}}}getRequiredMargin(){return this._requiredMargin}getOffset(e){const{config:{type:n,position:r}}=this;switch(n){case D.X:switch(r){case S.Top:return{top:e.top,left:e.left};case S.Bottom:default:return{top:e.top+this._height,left:e.left}}case D.Y:switch(r){case S.Right:return{top:e.top,left:e.left+this._width};case S.Left:default:return{top:e.top,left:e.left}}}}_render(e=this.config.duration,n=this.axisGroup){const{config:r}=this;if(this._renderAxis(n,e),this._renderAxisLabel(n),r.gridLine){const i=this._buildGrid();this.gridGroup.selectAll("*").interrupt(),It(this.gridGroup,e).call(i).style("opacity",1)}else It(this.gridGroup,e).style("opacity",0);r.tickTextAlign&&this._alignTickLabels(),this._resolveTickLabelOverlap(n)}_buildAxis(){const{config:{type:e,position:n,tickPadding:r}}=this,i=this._getNumTicks();switch(e){case D.X:switch(n){case S.Top:return Jo(this.xScale).ticks(i).tickPadding(r);case S.Bottom:default:return ea(this.xScale).ticks(i).tickPadding(r)}case D.Y:switch(n){case S.Right:return ta(this.yScale).ticks(i).tickPadding(r);case S.Left:default:return na(this.yScale).ticks(i).tickPadding(r)}}}_buildGrid(){const{config:e}=this;let n;switch(e.type){case D.X:switch(e.position){case S.Top:{n=Jo(this.xScale);break}case S.Bottom:default:{n=ea(this.xScale);break}}n.tickSize(-this._height);break;case D.Y:switch(e.position){case S.Right:{n=ta(this.yScale);break}case S.Left:default:{n=na(this.yScale);break}}n.tickSize(-this._width)}n.tickSizeOuter(0).tickFormat(()=>"");const r=this._getNumTicks()*2,i=n.scale(),o=i.domain(),a=()=>{if(!e.minMaxTicksOnlyShowGridLines)return o;const c=i.ticks(r);if(c.length<2)return o;const u=+c[1]-+c[0],l=o[1];return+l-+c[c.length-1]>u/2?[...c,l]:c},s=e.tickValues?this._getConfiguredTickValues():this._shouldRenderMinMaxTicksOnly()?a():i.ticks(r);return n.tickValues(s),n}_renderAxis(e=this.axisGroup,n=this.config.duration){const{config:r}=this,i=this._buildAxis(),o=i.scale(),a=r.tickValues?this._getConfiguredTickValues():this._shouldRenderMinMaxTicksOnly()?o.domain():o.ticks(this._getNumTicks()),s=a.length;i.tickValues(a),e.selectAll("*").interrupt(),It(e,n).call(i).on("end",()=>{this._resolveTickLabelOverlap(e)}),e.selectAll("g.tick").classed(Bs,!0).style("font-size",r.tickTextFontSize);const l=e.selectAll("g.tick > text").filter(f=>a.some(h=>Yt(f,h))).classed(zs,!0).classed(Ws,!!r.tickTextHideOverlapping).style("fill",r.tickTextColor);if(e.selectAll("g.tick > text").filter(f=>!a.some(h=>Yt(f,h))).classed(Yr,!0),l.nodes().forEach(f=>oi(f)),l.each((f,h,d)=>{var m,g;let v=(g=(m=r.tickFormat)===null||m===void 0?void 0:m.call(r,f,h,a))!==null&&g!==void 0?g:`${f}`;const y=d[h],w=r.tickTextWidth||(r.type===D.X?this._containerWidth/(s+1):this._containerWidth/5),_=getComputedStyle(y),T=Number.parseFloat(_.fontSize),k=_.fontFamily,p={verticalAlign:r.type===D.X?Ht.Top:Ht.Middle,width:w,textRotationAngle:r.tickTextAngle,separator:r.tickTextSeparator,wordBreak:r.tickTextForceWordBreak};if(r.tickTextFitMode===xt.Trim){const I=kt(y).text(v);ia(I,w,r.tickTextTrimType,!0,T,.58),v=kt(y).text()}_m(y,{text:v,fontFamily:k,fontSize:T},p)}),e.classed(Is,!0).classed(Si,!r.tickLine).classed(Ci,!r.domainLine),r.fullSize){const f=this._getFullDomainPath(0);It(e.select(".domain"),n).attr("d",f)}}_resolveTickLabelOverlap(e=this.axisGroup){const{config:n}=this,r=e.selectAll(`g.tick > text:not(.${Yr})`);if(!n.tickTextHideOverlapping){r.style("opacity",null);return}cancelAnimationFrame(this._collideTickLabelsAnimFrameId),this._collideTickLabelsAnimFrameId=requestAnimationFrame(()=>{this._collideTickLabels(r)})}_collideTickLabels(e){e.each((r,i,o)=>{const a=o[i];a._visible=!0});const n=3;for(let r=0;r<n;r+=1)e.each((i,o,a)=>{const s=a[o];if(!s._visible)return;const u=s.getBoundingClientRect();for(let l=o+1;l<a.length;l+=1){if(o===l)continue;const f=a[l];if(f._visible){const d=f.getBoundingClientRect();if(nh(u,d,-5)){f._visible=!1;break}}}});e.each((r,i,o)=>{const a=o[i];kt(a).style("opacity",a._visible?1:0)})}_getNumTicks(){const{config:{type:e,numTicks:n}}=this;if(n)return n;if(e===D.X){const r=this.xScale.range(),i=r[1]-r[0];return Math.floor(i/175)}if(e===D.Y){const r=this.yScale.range(),i=Math.abs(r[0]-r[1]);return Math.pow(i,.85)/25}return this._defaultNumTicks}_getConfiguredTickValues(){const{config:e}=this,n=e.type===D.X?this.xScale:this.yScale,r=n?.domain();return e.tickValues?e.tickValues.filter(i=>i>=r[0]&&i<=r[1]):null}_shouldRenderMinMaxTicksOnly(){const{config:e}=this;return e.minMaxTicksOnly||e.type===D.X&&this._width<e.minMaxTicksOnlyWhenWidthIsLess}_getFullDomainPath(e=0){const{config:{type:n}}=this;switch(n){case D.X:return`M0.5, ${e} V0.5 H${this._width+.5} V${e}`;case D.Y:return`M${-e}, ${this._height+.5} H0.5 V0.5 H${-e}`}}_renderAxisLabel(e=this.axisGroup){var n;const{type:r,label:i,labelMargin:o,labelFontSize:a,labelTextFitMode:s}=this.config;if(e.selectAll(`.${Ur}`).remove(),!i)return;const c=this.getPosition(),{width:u,height:l}=(n=this._axisRawBBox)!==null&&n!==void 0?n:e.node().getBBox(),f=r===D.Y?-90:0,h=e.append("text").attr("class",Ur).attr("dy",`${this._getLabelDY()}em`).style("font-size",a).style("fill",this.config.labelColor);h.text(i);let d=!1;if(s===xt.Wrap){const T=r===D.Y?this._height:this._width;h.node().getComputedTextLength()>T&&(mm(h,T),d=!0)}let m=u,g=l;if(s===xt.Wrap){const T=h.node().getBBox();m=T.width,g=T.height}else{const T=r===D.X?m:g,k=getComputedStyle(h.node()),p=Number.parseFloat(k.fontSize);ia(h,T,this.config.labelTextTrimType,!0,p);const b=h.node().getBBox();m=b.width,g=b.height}const v=r===D.X?this._width/2:r===D.Y&&s===xt.Wrap&&d?c===S.Left?-u-g/2-10:u:Math.pow(-1,+(c===S.Left))*u,y=r===D.Y?this._height/2:r===D.X&&s===xt.Wrap?c===S.Top?-l-g/2:l:Math.pow(-1,+(c===S.Top))*l,w=r===D.X?0:Math.pow(-1,+(c===S.Left))*o,_=r===D.X?Math.pow(-1,+(c===S.Top))*o:0;h.attr("transform",`translate(${v+w},${y+_}) rotate(${f})`)}_getLabelDY(){const{type:e,position:n}=this.config;switch(e){case D.X:switch(n){case S.Top:return 0;case S.Bottom:default:return .75}case D.Y:switch(n){case S.Right:return .75;case S.Left:default:return-.25}}}_alignTickLabels(){const{config:{type:e,tickTextAlign:n,tickTextAngle:r,position:i}}=this,o=this.g.selectAll("g.tick > text"),a=sm(n),s=e===D.X?0:this._getYTickTextTranslate(n,i),c=r?`translate(${s},0) rotate(${r})`:`translate(${s},0)`;o.attr("transform",c).attr("text-anchor",a)}_getYTickTextTranslate(e,n=S.Left){var r,i,o,a;const s=this.config.tickPadding+1,c=((a=(i=(r=this._axisRawBBox)===null||r===void 0?void 0:r.width)!==null&&i!==void 0?i:(o=this.axisGroup.node())===null||o===void 0?void 0:o.getBBox().width)!==null&&a!==void 0?a:0)-s;switch(e){case ct.Left:return n===S.Left?c*-1:0;case ct.Right:return n===S.Left?0:c;case ct.Center:return n===S.Left?c*-.5:c*.5;default:return 0}}}Hs.selectors=Cm;const Mm=Object.assign(Object.assign({},ki),{yStacked:void 0,baseline:null,duration:100,tooltip:void 0,template:(t,e,n,r)=>"",hideWhenFarFromPointer:!0,hideWhenFarFromPointerDistance:100,snapToData:!0,getCircles:void 0,color:void 0,strokeColor:void 0,strokeWidth:void 0,onCrosshairMove:void 0,forceShowAt:void 0,skipRangeCheck:!1}),Am=Jn`
190
+ `,Cm=Object.freeze(Object.defineProperty({__proto__:null,axis:Is,cssVarDefaults:Ti,grid:Ls,hideDomain:Ci,hideTickLine:Si,label:Ur,root:Ps,tick:Bs,tickLabel:zs,tickLabelHideable:Ws,tickTextExiting:Yr,variables:Sm},Symbol.toStringTag,{value:"Module"}));class Hs extends Os{constructor(e){super(),this._defaultConfig=bm,this.config=this._defaultConfig,this._defaultNumTicks=3,this.events={},e&&this.setConfig(e),this.axisGroup=this.g.append("g"),this.gridGroup=this.g.append("g").attr("class",Ls)}preRender(){const{config:e}=this,n=this.g.append("g").attr("opacity",0);this._renderAxis(n,0),this._axisRawBBox=n.node().getBBox(),e.tickTextAlign&&this._alignTickLabels(),this._renderAxisLabel(n),this._axisSizeBBox=this._getAxisSize(n),this._requiredMargin=this._getRequiredMargin(this._axisSizeBBox),n.remove()}getPosition(){const{config:{type:e,position:n}}=this;return n??(e===D.X?S.Bottom:S.Left)}_getAxisSize(e){return e.node().getBBox()}_getRequiredMargin(e=this._axisSizeBBox){const{config:{type:n,position:r}}=this;switch(n){case D.X:{const o=this._axisSizeBBox.x+this._axisSizeBBox.width,a=this._axisSizeBBox.x<0?Math.abs(this._axisSizeBBox.x):0,s=o-this._width>1?o-this._width:0;switch(r){case S.Top:return{top:e.height,left:a,right:s};case S.Bottom:default:return{bottom:e.height,left:a,right:s}}}case D.Y:{const i=e.height>this._height?(e.height-this._height)/2:0,o=i,a=i;switch(r){case S.Right:return{right:e.width,top:o,bottom:a};case S.Left:default:return{left:e.width,top:o,bottom:a}}}}}getRequiredMargin(){return this._requiredMargin}getOffset(e){const{config:{type:n,position:r}}=this;switch(n){case D.X:switch(r){case S.Top:return{top:e.top,left:e.left};case S.Bottom:default:return{top:e.top+this._height,left:e.left}}case D.Y:switch(r){case S.Right:return{top:e.top,left:e.left+this._width};case S.Left:default:return{top:e.top,left:e.left}}}}_render(e=this.config.duration,n=this.axisGroup){const{config:r}=this;if(this._renderAxis(n,e),this._renderAxisLabel(n),r.gridLine){const i=this._buildGrid();this.gridGroup.selectAll("*").interrupt(),It(this.gridGroup,e).call(i).style("opacity",1)}else It(this.gridGroup,e).style("opacity",0);r.tickTextAlign&&this._alignTickLabels(),this._resolveTickLabelOverlap(n)}_buildAxis(){const{config:{type:e,position:n,tickPadding:r}}=this,i=this._getNumTicks();switch(e){case D.X:switch(n){case S.Top:return jo(this.xScale).ticks(i).tickPadding(r);case S.Bottom:default:return ea(this.xScale).ticks(i).tickPadding(r)}case D.Y:switch(n){case S.Right:return ta(this.yScale).ticks(i).tickPadding(r);case S.Left:default:return na(this.yScale).ticks(i).tickPadding(r)}}}_buildGrid(){const{config:e}=this;let n;switch(e.type){case D.X:switch(e.position){case S.Top:{n=jo(this.xScale);break}case S.Bottom:default:{n=ea(this.xScale);break}}n.tickSize(-this._height);break;case D.Y:switch(e.position){case S.Right:{n=ta(this.yScale);break}case S.Left:default:{n=na(this.yScale);break}}n.tickSize(-this._width)}n.tickSizeOuter(0).tickFormat(()=>"");const r=this._getNumTicks()*2,i=n.scale(),o=i.domain(),a=()=>{if(!e.minMaxTicksOnlyShowGridLines)return o;const c=i.ticks(r);if(c.length<2)return o;const u=+c[1]-+c[0],l=o[1];return+l-+c[c.length-1]>u/2?[...c,l]:c},s=e.tickValues?this._getConfiguredTickValues():this._shouldRenderMinMaxTicksOnly()?a():i.ticks(r);return n.tickValues(s),n}_renderAxis(e=this.axisGroup,n=this.config.duration){const{config:r}=this,i=this._buildAxis(),o=i.scale(),a=r.tickValues?this._getConfiguredTickValues():this._shouldRenderMinMaxTicksOnly()?o.domain():o.ticks(this._getNumTicks()),s=a.length;i.tickValues(a),e.selectAll("*").interrupt(),It(e,n).call(i).on("end",()=>{this._resolveTickLabelOverlap(e)}),e.selectAll("g.tick").classed(Bs,!0).style("font-size",r.tickTextFontSize);const l=e.selectAll("g.tick > text").filter(f=>a.some(h=>Yt(f,h))).classed(zs,!0).classed(Ws,!!r.tickTextHideOverlapping).style("fill",r.tickTextColor);if(e.selectAll("g.tick > text").filter(f=>!a.some(h=>Yt(f,h))).classed(Yr,!0),l.nodes().forEach(f=>oi(f)),l.each((f,h,d)=>{var m,g;let v=(g=(m=r.tickFormat)===null||m===void 0?void 0:m.call(r,f,h,a))!==null&&g!==void 0?g:`${f}`;const y=d[h],w=r.tickTextWidth||(r.type===D.X?this._containerWidth/(s+1):this._containerWidth/5),_=getComputedStyle(y),T=Number.parseFloat(_.fontSize),k=_.fontFamily,p={verticalAlign:r.type===D.X?Ht.Top:Ht.Middle,width:w,textRotationAngle:r.tickTextAngle,separator:r.tickTextSeparator,wordBreak:r.tickTextForceWordBreak};if(r.tickTextFitMode===xt.Trim){const I=kt(y).text(v);ia(I,w,r.tickTextTrimType,!0,T,.58),v=kt(y).text()}_m(y,{text:v,fontFamily:k,fontSize:T},p)}),e.classed(Is,!0).classed(Si,!r.tickLine).classed(Ci,!r.domainLine),r.fullSize){const f=this._getFullDomainPath(0);It(e.select(".domain"),n).attr("d",f)}}_resolveTickLabelOverlap(e=this.axisGroup){const{config:n}=this,r=e.selectAll(`g.tick > text:not(.${Yr})`);if(!n.tickTextHideOverlapping){r.style("opacity",null);return}cancelAnimationFrame(this._collideTickLabelsAnimFrameId),this._collideTickLabelsAnimFrameId=requestAnimationFrame(()=>{this._collideTickLabels(r)})}_collideTickLabels(e){e.each((r,i,o)=>{const a=o[i];a._visible=!0});const n=3;for(let r=0;r<n;r+=1)e.each((i,o,a)=>{const s=a[o];if(!s._visible)return;const u=s.getBoundingClientRect();for(let l=o+1;l<a.length;l+=1){if(o===l)continue;const f=a[l];if(f._visible){const d=f.getBoundingClientRect();if(nh(u,d,-5)){f._visible=!1;break}}}});e.each((r,i,o)=>{const a=o[i];kt(a).style("opacity",a._visible?1:0)})}_getNumTicks(){const{config:{type:e,numTicks:n}}=this;if(n)return n;if(e===D.X){const r=this.xScale.range(),i=r[1]-r[0];return Math.floor(i/175)}if(e===D.Y){const r=this.yScale.range(),i=Math.abs(r[0]-r[1]);return Math.pow(i,.85)/25}return this._defaultNumTicks}_getConfiguredTickValues(){const{config:e}=this,n=e.type===D.X?this.xScale:this.yScale,r=n?.domain();return e.tickValues?e.tickValues.filter(i=>i>=r[0]&&i<=r[1]):null}_shouldRenderMinMaxTicksOnly(){const{config:e}=this;return e.minMaxTicksOnly||e.type===D.X&&this._width<e.minMaxTicksOnlyWhenWidthIsLess}_getFullDomainPath(e=0){const{config:{type:n}}=this;switch(n){case D.X:return`M0.5, ${e} V0.5 H${this._width+.5} V${e}`;case D.Y:return`M${-e}, ${this._height+.5} H0.5 V0.5 H${-e}`}}_renderAxisLabel(e=this.axisGroup){var n;const{type:r,label:i,labelMargin:o,labelFontSize:a,labelTextFitMode:s}=this.config;if(e.selectAll(`.${Ur}`).remove(),!i)return;const c=this.getPosition(),{width:u,height:l}=(n=this._axisRawBBox)!==null&&n!==void 0?n:e.node().getBBox(),f=r===D.Y?-90:0,h=e.append("text").attr("class",Ur).attr("dy",`${this._getLabelDY()}em`).style("font-size",a).style("fill",this.config.labelColor);h.text(i);let d=!1;if(s===xt.Wrap){const T=r===D.Y?this._height:this._width;h.node().getComputedTextLength()>T&&(mm(h,T),d=!0)}let m=u,g=l;if(s===xt.Wrap){const T=h.node().getBBox();m=T.width,g=T.height}else{const T=r===D.X?m:g,k=getComputedStyle(h.node()),p=Number.parseFloat(k.fontSize);ia(h,T,this.config.labelTextTrimType,!0,p);const b=h.node().getBBox();m=b.width,g=b.height}const v=r===D.X?this._width/2:r===D.Y&&s===xt.Wrap&&d?c===S.Left?-u-g/2-10:u:Math.pow(-1,+(c===S.Left))*u,y=r===D.Y?this._height/2:r===D.X&&s===xt.Wrap?c===S.Top?-l-g/2:l:Math.pow(-1,+(c===S.Top))*l,w=r===D.X?0:Math.pow(-1,+(c===S.Left))*o,_=r===D.X?Math.pow(-1,+(c===S.Top))*o:0;h.attr("transform",`translate(${v+w},${y+_}) rotate(${f})`)}_getLabelDY(){const{type:e,position:n}=this.config;switch(e){case D.X:switch(n){case S.Top:return 0;case S.Bottom:default:return .75}case D.Y:switch(n){case S.Right:return .75;case S.Left:default:return-.25}}}_alignTickLabels(){const{config:{type:e,tickTextAlign:n,tickTextAngle:r,position:i}}=this,o=this.g.selectAll("g.tick > text"),a=sm(n),s=e===D.X?0:this._getYTickTextTranslate(n,i),c=r?`translate(${s},0) rotate(${r})`:`translate(${s},0)`;o.attr("transform",c).attr("text-anchor",a)}_getYTickTextTranslate(e,n=S.Left){var r,i,o,a;const s=this.config.tickPadding+1,c=((a=(i=(r=this._axisRawBBox)===null||r===void 0?void 0:r.width)!==null&&i!==void 0?i:(o=this.axisGroup.node())===null||o===void 0?void 0:o.getBBox().width)!==null&&a!==void 0?a:0)-s;switch(e){case ct.Left:return n===S.Left?c*-1:0;case ct.Right:return n===S.Left?0:c;case ct.Center:return n===S.Left?c*-.5:c*.5;default:return 0}}}Hs.selectors=Cm;const Mm=Object.assign(Object.assign({},ki),{yStacked:void 0,baseline:null,duration:100,tooltip:void 0,template:(t,e,n,r)=>"",hideWhenFarFromPointer:!0,hideWhenFarFromPointerDistance:100,snapToData:!0,getCircles:void 0,color:void 0,strokeColor:void 0,strokeWidth:void 0,onCrosshairMove:void 0,forceShowAt:void 0,skipRangeCheck:!1}),Am=jn`
191
191
  :root {
192
192
  --vis-crosshair-line-stroke-color: #888;
193
193
  --vis-crosshair-line-stroke-width: 1px;
@@ -208,4 +208,4 @@ import{P as rc,c as Oe,am as Ei,K as te,cg as ic,S as oc,T as He,U as ac,a4 as o
208
208
  stroke-width: var(--vis-crosshair-circle-stroke-width);
209
209
  stroke-opacity: var(--vis-crosshair-circle-stroke-opacity);
210
210
  pointer-events: none;
211
- `,Dm=Object.freeze(Object.defineProperty({__proto__:null,circle:Us,globalStyles:Am,line:Ys,root:Em},Symbol.toStringTag,{value:"Module"}));class Vs extends Os{constructor(e){super(),this.clippable=!0,this._defaultConfig=Mm,this.config=this._defaultConfig,this._xPx=void 0,this._yPx=void 0,this._mouseEvent=void 0,this._animFrameId=null,this._accessors={x:void 0,y:void 0,yStacked:void 0,baseline:void 0},e&&this.setConfig(e),this.g.style("opacity",0),this.line=this.g.append("line").attr("class",Ys)}set accessors(e){this._accessors=e}get accessors(){var e;const{config:n}=this,r=!!(n.x||n.y||n.yStacked),i=r?n.x:this._accessors.x,o=r?n.y:this._accessors.y,a=o?Ve(o)?o:[o]:void 0,s=r?n.yStacked:this._accessors.yStacked,c=(e=n.baseline)!==null&&e!==void 0?e:this._accessors.baseline;return{x:i,y:a,yStacked:s,baseline:c}}_isContainerInViewport(){var e;if(!(!((e=this.container)===null||e===void 0)&&e.node()))return!1;const n=this.container.node().getBoundingClientRect(),r=window.innerWidth||document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight,o=Math.max(0,Math.min(n.right,r)-Math.max(n.left,0)),a=Math.max(0,Math.min(n.bottom,i)-Math.max(n.top,0)),s=n.width*n.height,c=o*a;return s>0&&c/s>=.35}setContainer(e){this.container!==e&&(this.container=e,this.container.on("mousemove.crosshair",this._onMouseMove.bind(this)),this.container.on("mouseout.crosshair",this._onMouseOut.bind(this)),this.container.on("wheel.crosshair",this._onWheel.bind(this)))}_render(e){var n,r,i,o,a;const{config:s,datamodel:c}=this,u=ee(e)?e:s.duration,l=s.forceShowAt!==void 0,f=l?this.xScale(s.forceShowAt):this._xPx,h=this.xScale.invert(f),d=!((n=c.data)===null||n===void 0)&&n.length&&this.accessors.x?c.data.indexOf(An(c.data,h,this.accessors.x,wt.Left)):void 0;let m,g;s.snapToData&&(!this.accessors.y&&!this.accessors.yStacked&&(!((r=c.data)===null||r===void 0)&&r.length)&&console.warn("Unovis | Crosshair: Y accessors have not been configured. Please check if they're present in the configuration object"),!(!((i=c.data)===null||i===void 0)&&i.length)&&this._mouseEvent&&console.warn("Unovis | Crosshair: No data to snap to. Make sure the data has been passed to the container or to the crosshair itself"),m=An(c.data,h,this.accessors.x),g=c.data.indexOf(m));const v=this.xScale.range(),y=this.yScale.range(),w=s.snapToData&&m?Ot(Math.round(this.xScale(X(m,this.accessors.x,g))),0,this._width):Ot(f,v[0],v[1]),_=f>=v[0]&&f<=v[1],T=this._yPx>=Math.min(y[0],y[1])&&this._yPx<=Math.max(y[0],y[1]);let k=s.skipRangeCheck?!!this._xPx:this._xPx?_&&T:_;s.hideWhenFarFromPointer&&Math.abs(w-+f)>=s.hideWhenFarFromPointerDistance&&(k=!1);const p=(o=s.tooltip)!==null&&o!==void 0?o:this.tooltip;if(k&&p&&this._isContainerInViewport()){const E=p.getContainer()||this.container.node(),Y=p.isContainerBody();if(l){const M=this.container.node().getBoundingClientRect(),q=(Y?f+M.left:f)+this._containerMargin.left,G=this._height/2+(Y?M.top:0),ft=[q,G];this._showTooltip(m,h,ft,d)}else if(this._mouseEvent){const M=Y?[this._mouseEvent.clientX,this._mouseEvent.clientY]:kn(this._mouseEvent,E);this._showTooltip(m,h,M,d)}}else this._hideTooltip();if(this._mouseEvent&&((a=s.onCrosshairMove)===null||a===void 0||a.call(s,k?this.xScale.invert(this._xPx):void 0,m,g,this._mouseEvent),this._mouseEvent=void 0),It(this.g,u).style("opacity",k?1:0),!isFinite(f))return;this.line.attr("y1",0).attr("y2",this._height),It(this.line,u,ko).attr("x1",w).attr("x2",w);const b=Qr(s.getCircles)?s.getCircles(h,c.data,this.yScale,d):this.getCircleData(m,g),I=this.g.selectAll("circle").data(b,(E,Y)=>{var M;return(M=E.id)!==null&&M!==void 0?M:Y}),F=I.enter().append("circle").attr("class",Us).attr("r",0).attr("cx",w).attr("cy",E=>E.y).style("fill",E=>E.color).style("stroke",E=>E.strokeColor).style("stroke-width",E=>E.strokeWidth);It(F.merge(I),u,ko).attr("cx",w).attr("cy",E=>E.y).attr("r",4).style("opacity",E=>E.opacity).style("fill",E=>E.color).style("stroke",E=>E.strokeColor).style("stroke-width",E=>E.strokeWidth),I.exit().remove()}hide(e){window.cancelAnimationFrame(this._animFrameId),this._animFrameId=window.requestAnimationFrame(()=>{var n,r;this._xPx=void 0,this._yPx=void 0,this._mouseEvent=void 0,(r=(n=this.config).onCrosshairMove)===null||r===void 0||r.call(n,void 0,void 0,void 0,e),this._render()})}_onMouseMove(e){var n;const{datamodel:r,element:i}=this;!this.accessors.x&&(!((n=r.data)===null||n===void 0)&&n.length)&&console.warn("Unovis | Crosshair: X accessor function has not been configured. Please check if it's present in the configuration object");const[o,a]=kn(e,i);this._xPx=o,this._yPx=a,this._mouseEvent=e,window.cancelAnimationFrame(this._animFrameId),this._animFrameId=window.requestAnimationFrame(()=>{this._render()})}_onMouseOut(e){var n;(!e||!(!((n=this.container)===null||n===void 0)&&n.node().contains(e.relatedTarget)))&&this.hide(e)}_onWheel(e){this.hide(e)}_showTooltip(e,n,r,i){var o;const{config:a,datamodel:s}=this,c=(o=a.tooltip)!==null&&o!==void 0?o:this.tooltip;if(!c||!r)return;const[u,l]=r,f=a.template(e,n,s.data,i);if(c.config.followCursor=!0,!c.config.horizontalPlacement||c.config.horizontalPlacement===S.Auto){const h=c.isContainerBody()?u-this.container.node().getBoundingClientRect().left:u;c.overrideHorizontalPlacement(h>this._containerWidth/2?S.Left:S.Right)}f&&c.show(f,{x:u,y:l})}_hideTooltip(){var e;const{config:n}=this,r=(e=n.tooltip)!==null&&e!==void 0?e:this.tooltip;r?.hide()}getYDataExtent(){return[void 0,void 0]}getCircleData(e,n){var r,i;const{config:o}=this;if(o.snapToData&&e){const a=(r=this.accessors.y)!==null&&r!==void 0?r:[],s=(i=this.accessors.yStacked)!==null&&i!==void 0?i:[],c=X(e,this.accessors.baseline,n)||0,u=Wl(e,n,...s).map((f,h)=>({y:this.yScale(f+c),opacity:ee(X(e,s[h],h))?1:0,color:an(e,o.color,h),strokeColor:o.strokeColor?an(e,o.strokeColor,h):void 0,strokeWidth:o.strokeWidth?X(e,o.strokeWidth,h):void 0})),l=a.map((f,h)=>{const d=X(e,f,n);return{y:this.yScale(d),opacity:ee(d)?1:0,color:an(e,o.color,u.length+h),strokeColor:o.strokeColor?an(e,o.strokeColor,h):void 0,strokeWidth:o.strokeWidth?X(e,o.strokeWidth,h):void 0}});return u.concat(l)}return[]}}Vs.selectors=Dm;const Om=Symbol("componentAccessorKey"),Xs=Symbol("tooltipAccessorKey"),qs=Symbol("crosshairAccessorKey"),Gs=Symbol("axisAccessorKey"),$m=Symbol("annotationsAccessorKey");function Mi(t,e){return Yt(t,e)}function cr(t){const e=lc(),n=e.attrs;return Oe(()=>{const r={},i=e?.vnode.props??{};return Object.keys(i).forEach(o=>{r[Di(o)]=t[Di(o)]}),{...r,...n}})}const Um=Un({__name:"index",props:{components:{},xScale:{type:[Object,Function]},xDomain:{},xDomainMinConstraint:{},xDomainMaxConstraint:{},xRange:{},yScale:{type:[Object,Function]},yDomain:{},yDomainMinConstraint:{},yDomainMaxConstraint:{},yRange:{},yDirection:{},xAxis:{},yAxis:{},autoMargin:{type:Boolean},tooltip:{},crosshair:{},preventEmptyDomain:{type:[Boolean,null]},scaleByDomain:{type:Boolean},annotations:{},clipPathExtend:{},duration:{},margin:{},padding:{},sizing:{},width:{},height:{},svgDefs:{},ariaLabel:{},data:{}},setup(t,{expose:e}){const n=t,{data:r}=fc(n),i=cr(n),o=$e(),a=hc({components:[],annotations:void 0,crosshair:void 0,tooltip:void 0,xAxis:void 0,yAxis:void 0}),s=$e();return oe(r,()=>{o.value&&o.value.setData(r.value,!0)}),dc(()=>{var c;a.components.map(u=>u.config),(c=o.value)==null||c.updateContainer({...ur(i.value),...ur(a)})}),Xn(()=>{s.value&&(o.value=new Y0(s.value,{...ur(a)},r.value))}),qn(()=>{var c;return(c=o.value)==null?void 0:c.destroy()}),te(Om,{data:r,update:c=>a.components=[...a.components,c],destroy:()=>{var c;return a.components=(c=a.components)==null?void 0:c.filter(u=>!u.isDestroyed())}}),te(Gs,{data:r,update:c=>a[`${c.config.type}Axis`]=c,destroy:c=>{a[`${c}Axis`]=void 0}}),te(qs,{data:r,update:c=>a.crosshair=c,destroy:()=>{a.crosshair=void 0}}),te(Xs,{data:r,update:c=>a.tooltip=c,destroy:()=>{a.tooltip=void 0}}),te($m,{data:r,update:c=>a.annotations=c,destroy:()=>{a.annotations=void 0}}),e({component:o}),(c,u)=>(He(),Vn("div",{"data-vis-xy-container":"",ref_key:"elRef",ref:s,class:"unovis-xy-container"},[oa(c.$slots,"default")],512))}}),Nm={"data-vis-axis":""},Vm=Un({__name:"index",props:{position:{},type:{},fullSize:{type:Boolean},label:{},labelFontSize:{},labelMargin:{},labelTextFitMode:{},labelTextTrimType:{},labelColor:{},gridLine:{type:Boolean},tickLine:{type:Boolean},domainLine:{type:Boolean},minMaxTicksOnly:{type:Boolean},minMaxTicksOnlyShowGridLines:{type:Boolean},minMaxTicksOnlyWhenWidthIsLess:{},tickFormat:{type:Function},tickValues:{},numTicks:{},tickTextFitMode:{},tickTextWidth:{},tickTextSeparator:{},tickTextForceWordBreak:{type:Boolean},tickTextTrimType:{},tickTextFontSize:{},tickTextAlign:{},tickTextColor:{},tickTextAngle:{},tickTextHideOverlapping:{type:Boolean},tickPadding:{},x:{},y:{},id:{type:Function},color:{},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=Vr(Gs),r=t,i=Oe(()=>n.data.value??r.data),o=cr(r),a=$e();return Xn(()=>{Xr(()=>{var s;a.value=new Hs(o.value),(s=a.value)==null||s.setData(i.value),n.update(a.value)})}),qn(()=>{var s;(s=a.value)==null||s.destroy(),n.destroy(r.type)}),oe(o,(s,c)=>{var u;Mi(s,c)||(u=a.value)==null||u.setConfig(o.value)}),oe(i,()=>{var s;(s=a.value)==null||s.setData(i.value)}),e({component:a}),(s,c)=>(He(),Vn("div",Nm))}}),Rm={"data-vis-crosshair":""},Xm=Un({__name:"index",props:{data:{}},setup(t,{expose:e}){const n=Vr(qs),r=t,i=Oe(()=>n.data.value??r.data),o=cr(r),a=$e();return Xn(()=>{Xr(()=>{var s;a.value=new Vs(o.value),(s=a.value)==null||s.setData(i.value),n.update(a.value)})}),qn(()=>{var s;(s=a.value)==null||s.destroy(),n.destroy()}),oe(o,(s,c)=>{var u;Mi(s,c)||(u=a.value)==null||u.setConfig(o.value)}),oe(i,()=>{var s;(s=a.value)==null||s.setData(i.value)}),e({component:a}),(s,c)=>(He(),Vn("div",Rm))}}),Fm={"data-vis-tooltip":""},qm=Un({__name:"index",props:{components:{},container:{},followCursor:{type:Boolean},allowHover:{type:Boolean},horizontalPlacement:{},horizontalShift:{},verticalPlacement:{},verticalShift:{},triggers:{},attributes:{},className:{},hideDelay:{},showDelay:{},data:{}},setup(t,{expose:e}){const n=Vr(Xs),r=cr(t),i=$e();return Xn(()=>{Xr(()=>{i.value=new Rs(r.value),n.update(i.value)})}),qn(()=>{var o;(o=i.value)==null||o.destroy(),n.destroy()}),oe(r,(o,a)=>{var s;Mi(o,a)||(s=i.value)==null||s.setConfig(r.value)}),e({component:i}),(o,a)=>(He(),Vn("div",Fm))}});(function(){try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".unovis-xy-container,.unovis-single-container{display:block;position:relative;width:100%}[data-vis-leaflet-map],[data-vis-leaflet-flow-map]{display:block;position:relative}[data-vis-bullet-legend],[data-vis-rolling-pin-legend]{display:block}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();export{Xm as A,ce as B,Vm as C,Yn as D,Ds as E,pe as F,U0 as G,V0 as H,mm as I,Xs as J,$m as K,Ko as O,Um as S,ki as X,Bm as _,Os as a,Ve as b,W as c,zi as d,ee as e,zm as f,X as g,Ym as h,Jn as i,zl as j,an as k,Wm as l,Wi as m,Hm as n,lr as o,Ot as p,Om as q,cr as r,It as s,Mi as t,kt as u,Ta as v,Ul as w,Oa as x,Fe as y,qm as z};
211
+ `,Dm=Object.freeze(Object.defineProperty({__proto__:null,circle:Us,globalStyles:Am,line:Ys,root:Em},Symbol.toStringTag,{value:"Module"}));class Vs extends Os{constructor(e){super(),this.clippable=!0,this._defaultConfig=Mm,this.config=this._defaultConfig,this._xPx=void 0,this._yPx=void 0,this._mouseEvent=void 0,this._animFrameId=null,this._accessors={x:void 0,y:void 0,yStacked:void 0,baseline:void 0},e&&this.setConfig(e),this.g.style("opacity",0),this.line=this.g.append("line").attr("class",Ys)}set accessors(e){this._accessors=e}get accessors(){var e;const{config:n}=this,r=!!(n.x||n.y||n.yStacked),i=r?n.x:this._accessors.x,o=r?n.y:this._accessors.y,a=o?Ve(o)?o:[o]:void 0,s=r?n.yStacked:this._accessors.yStacked,c=(e=n.baseline)!==null&&e!==void 0?e:this._accessors.baseline;return{x:i,y:a,yStacked:s,baseline:c}}_isContainerInViewport(){var e;if(!(!((e=this.container)===null||e===void 0)&&e.node()))return!1;const n=this.container.node().getBoundingClientRect(),r=window.innerWidth||document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight,o=Math.max(0,Math.min(n.right,r)-Math.max(n.left,0)),a=Math.max(0,Math.min(n.bottom,i)-Math.max(n.top,0)),s=n.width*n.height,c=o*a;return s>0&&c/s>=.35}setContainer(e){this.container!==e&&(this.container=e,this.container.on("mousemove.crosshair",this._onMouseMove.bind(this)),this.container.on("mouseout.crosshair",this._onMouseOut.bind(this)),this.container.on("wheel.crosshair",this._onWheel.bind(this)))}_render(e){var n,r,i,o,a;const{config:s,datamodel:c}=this,u=ee(e)?e:s.duration,l=s.forceShowAt!==void 0,f=l?this.xScale(s.forceShowAt):this._xPx,h=this.xScale.invert(f),d=!((n=c.data)===null||n===void 0)&&n.length&&this.accessors.x?c.data.indexOf(An(c.data,h,this.accessors.x,wt.Left)):void 0;let m,g;s.snapToData&&(!this.accessors.y&&!this.accessors.yStacked&&(!((r=c.data)===null||r===void 0)&&r.length)&&console.warn("Unovis | Crosshair: Y accessors have not been configured. Please check if they're present in the configuration object"),!(!((i=c.data)===null||i===void 0)&&i.length)&&this._mouseEvent&&console.warn("Unovis | Crosshair: No data to snap to. Make sure the data has been passed to the container or to the crosshair itself"),m=An(c.data,h,this.accessors.x),g=c.data.indexOf(m));const v=this.xScale.range(),y=this.yScale.range(),w=s.snapToData&&m?Ot(Math.round(this.xScale(X(m,this.accessors.x,g))),0,this._width):Ot(f,v[0],v[1]),_=f>=v[0]&&f<=v[1],T=this._yPx>=Math.min(y[0],y[1])&&this._yPx<=Math.max(y[0],y[1]);let k=s.skipRangeCheck?!!this._xPx:this._xPx?_&&T:_;s.hideWhenFarFromPointer&&Math.abs(w-+f)>=s.hideWhenFarFromPointerDistance&&(k=!1);const p=(o=s.tooltip)!==null&&o!==void 0?o:this.tooltip;if(k&&p&&this._isContainerInViewport()){const E=p.getContainer()||this.container.node(),Y=p.isContainerBody();if(l){const M=this.container.node().getBoundingClientRect(),q=(Y?f+M.left:f)+this._containerMargin.left,G=this._height/2+(Y?M.top:0),ft=[q,G];this._showTooltip(m,h,ft,d)}else if(this._mouseEvent){const M=Y?[this._mouseEvent.clientX,this._mouseEvent.clientY]:kn(this._mouseEvent,E);this._showTooltip(m,h,M,d)}}else this._hideTooltip();if(this._mouseEvent&&((a=s.onCrosshairMove)===null||a===void 0||a.call(s,k?this.xScale.invert(this._xPx):void 0,m,g,this._mouseEvent),this._mouseEvent=void 0),It(this.g,u).style("opacity",k?1:0),!isFinite(f))return;this.line.attr("y1",0).attr("y2",this._height),It(this.line,u,ko).attr("x1",w).attr("x2",w);const b=Qr(s.getCircles)?s.getCircles(h,c.data,this.yScale,d):this.getCircleData(m,g),I=this.g.selectAll("circle").data(b,(E,Y)=>{var M;return(M=E.id)!==null&&M!==void 0?M:Y}),F=I.enter().append("circle").attr("class",Us).attr("r",0).attr("cx",w).attr("cy",E=>E.y).style("fill",E=>E.color).style("stroke",E=>E.strokeColor).style("stroke-width",E=>E.strokeWidth);It(F.merge(I),u,ko).attr("cx",w).attr("cy",E=>E.y).attr("r",4).style("opacity",E=>E.opacity).style("fill",E=>E.color).style("stroke",E=>E.strokeColor).style("stroke-width",E=>E.strokeWidth),I.exit().remove()}hide(e){window.cancelAnimationFrame(this._animFrameId),this._animFrameId=window.requestAnimationFrame(()=>{var n,r;this._xPx=void 0,this._yPx=void 0,this._mouseEvent=void 0,(r=(n=this.config).onCrosshairMove)===null||r===void 0||r.call(n,void 0,void 0,void 0,e),this._render()})}_onMouseMove(e){var n;const{datamodel:r,element:i}=this;!this.accessors.x&&(!((n=r.data)===null||n===void 0)&&n.length)&&console.warn("Unovis | Crosshair: X accessor function has not been configured. Please check if it's present in the configuration object");const[o,a]=kn(e,i);this._xPx=o,this._yPx=a,this._mouseEvent=e,window.cancelAnimationFrame(this._animFrameId),this._animFrameId=window.requestAnimationFrame(()=>{this._render()})}_onMouseOut(e){var n;(!e||!(!((n=this.container)===null||n===void 0)&&n.node().contains(e.relatedTarget)))&&this.hide(e)}_onWheel(e){this.hide(e)}_showTooltip(e,n,r,i){var o;const{config:a,datamodel:s}=this,c=(o=a.tooltip)!==null&&o!==void 0?o:this.tooltip;if(!c||!r)return;const[u,l]=r,f=a.template(e,n,s.data,i);if(c.config.followCursor=!0,!c.config.horizontalPlacement||c.config.horizontalPlacement===S.Auto){const h=c.isContainerBody()?u-this.container.node().getBoundingClientRect().left:u;c.overrideHorizontalPlacement(h>this._containerWidth/2?S.Left:S.Right)}f&&c.show(f,{x:u,y:l})}_hideTooltip(){var e;const{config:n}=this,r=(e=n.tooltip)!==null&&e!==void 0?e:this.tooltip;r?.hide()}getYDataExtent(){return[void 0,void 0]}getCircleData(e,n){var r,i;const{config:o}=this;if(o.snapToData&&e){const a=(r=this.accessors.y)!==null&&r!==void 0?r:[],s=(i=this.accessors.yStacked)!==null&&i!==void 0?i:[],c=X(e,this.accessors.baseline,n)||0,u=Wl(e,n,...s).map((f,h)=>({y:this.yScale(f+c),opacity:ee(X(e,s[h],h))?1:0,color:an(e,o.color,h),strokeColor:o.strokeColor?an(e,o.strokeColor,h):void 0,strokeWidth:o.strokeWidth?X(e,o.strokeWidth,h):void 0})),l=a.map((f,h)=>{const d=X(e,f,n);return{y:this.yScale(d),opacity:ee(d)?1:0,color:an(e,o.color,u.length+h),strokeColor:o.strokeColor?an(e,o.strokeColor,h):void 0,strokeWidth:o.strokeWidth?X(e,o.strokeWidth,h):void 0}});return u.concat(l)}return[]}}Vs.selectors=Dm;const Om=Symbol("componentAccessorKey"),Xs=Symbol("tooltipAccessorKey"),qs=Symbol("crosshairAccessorKey"),Gs=Symbol("axisAccessorKey"),$m=Symbol("annotationsAccessorKey");function Mi(t,e){return Yt(t,e)}function cr(t){const e=lc(),n=e.attrs;return Oe(()=>{const r={},i=e?.vnode.props??{};return Object.keys(i).forEach(o=>{r[Di(o)]=t[Di(o)]}),{...r,...n}})}const Um=Un({__name:"index",props:{components:{},xScale:{type:[Object,Function]},xDomain:{},xDomainMinConstraint:{},xDomainMaxConstraint:{},xRange:{},yScale:{type:[Object,Function]},yDomain:{},yDomainMinConstraint:{},yDomainMaxConstraint:{},yRange:{},yDirection:{},xAxis:{},yAxis:{},autoMargin:{type:Boolean},tooltip:{},crosshair:{},preventEmptyDomain:{type:[Boolean,null]},scaleByDomain:{type:Boolean},annotations:{},clipPathExtend:{},duration:{},margin:{},padding:{},sizing:{},width:{},height:{},svgDefs:{},ariaLabel:{},data:{}},setup(t,{expose:e}){const n=t,{data:r}=fc(n),i=cr(n),o=$e(),a=hc({components:[],annotations:void 0,crosshair:void 0,tooltip:void 0,xAxis:void 0,yAxis:void 0}),s=$e();return oe(r,()=>{o.value&&o.value.setData(r.value,!0)}),dc(()=>{var c;a.components.map(u=>u.config),(c=o.value)==null||c.updateContainer({...ur(i.value),...ur(a)})}),Xn(()=>{s.value&&(o.value=new Y0(s.value,{...ur(a)},r.value))}),qn(()=>{var c;return(c=o.value)==null?void 0:c.destroy()}),te(Om,{data:r,update:c=>a.components=[...a.components,c],destroy:()=>{var c;return a.components=(c=a.components)==null?void 0:c.filter(u=>!u.isDestroyed())}}),te(Gs,{data:r,update:c=>a[`${c.config.type}Axis`]=c,destroy:c=>{a[`${c}Axis`]=void 0}}),te(qs,{data:r,update:c=>a.crosshair=c,destroy:()=>{a.crosshair=void 0}}),te(Xs,{data:r,update:c=>a.tooltip=c,destroy:()=>{a.tooltip=void 0}}),te($m,{data:r,update:c=>a.annotations=c,destroy:()=>{a.annotations=void 0}}),e({component:o}),(c,u)=>(He(),Vn("div",{"data-vis-xy-container":"",ref_key:"elRef",ref:s,class:"unovis-xy-container"},[oa(c.$slots,"default")],512))}}),Nm={"data-vis-axis":""},Vm=Un({__name:"index",props:{position:{},type:{},fullSize:{type:Boolean},label:{},labelFontSize:{},labelMargin:{},labelTextFitMode:{},labelTextTrimType:{},labelColor:{},gridLine:{type:Boolean},tickLine:{type:Boolean},domainLine:{type:Boolean},minMaxTicksOnly:{type:Boolean},minMaxTicksOnlyShowGridLines:{type:Boolean},minMaxTicksOnlyWhenWidthIsLess:{},tickFormat:{type:Function},tickValues:{},numTicks:{},tickTextFitMode:{},tickTextWidth:{},tickTextSeparator:{},tickTextForceWordBreak:{type:Boolean},tickTextTrimType:{},tickTextFontSize:{},tickTextAlign:{},tickTextColor:{},tickTextAngle:{},tickTextHideOverlapping:{type:Boolean},tickPadding:{},x:{},y:{},id:{type:Function},color:{},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=Vr(Gs),r=t,i=Oe(()=>n.data.value??r.data),o=cr(r),a=$e();return Xn(()=>{Xr(()=>{var s;a.value=new Hs(o.value),(s=a.value)==null||s.setData(i.value),n.update(a.value)})}),qn(()=>{var s;(s=a.value)==null||s.destroy(),n.destroy(r.type)}),oe(o,(s,c)=>{var u;Mi(s,c)||(u=a.value)==null||u.setConfig(o.value)}),oe(i,()=>{var s;(s=a.value)==null||s.setData(i.value)}),e({component:a}),(s,c)=>(He(),Vn("div",Nm))}}),Rm={"data-vis-crosshair":""},Xm=Un({__name:"index",props:{data:{}},setup(t,{expose:e}){const n=Vr(qs),r=t,i=Oe(()=>n.data.value??r.data),o=cr(r),a=$e();return Xn(()=>{Xr(()=>{var s;a.value=new Vs(o.value),(s=a.value)==null||s.setData(i.value),n.update(a.value)})}),qn(()=>{var s;(s=a.value)==null||s.destroy(),n.destroy()}),oe(o,(s,c)=>{var u;Mi(s,c)||(u=a.value)==null||u.setConfig(o.value)}),oe(i,()=>{var s;(s=a.value)==null||s.setData(i.value)}),e({component:a}),(s,c)=>(He(),Vn("div",Rm))}}),Fm={"data-vis-tooltip":""},qm=Un({__name:"index",props:{components:{},container:{},followCursor:{type:Boolean},allowHover:{type:Boolean},horizontalPlacement:{},horizontalShift:{},verticalPlacement:{},verticalShift:{},triggers:{},attributes:{},className:{},hideDelay:{},showDelay:{},data:{}},setup(t,{expose:e}){const n=Vr(Xs),r=cr(t),i=$e();return Xn(()=>{Xr(()=>{i.value=new Rs(r.value),n.update(i.value)})}),qn(()=>{var o;(o=i.value)==null||o.destroy(),n.destroy()}),oe(r,(o,a)=>{var s;Mi(o,a)||(s=i.value)==null||s.setConfig(r.value)}),e({component:i}),(o,a)=>(He(),Vn("div",Fm))}});(function(){try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".unovis-xy-container,.unovis-single-container{display:block;position:relative;width:100%}[data-vis-leaflet-map],[data-vis-leaflet-flow-map]{display:block;position:relative}[data-vis-bullet-legend],[data-vis-rolling-pin-legend]{display:block}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();export{Xm as A,ce as B,Vm as C,Yn as D,Ds as E,pe as F,U0 as G,V0 as H,mm as I,Xs as J,$m as K,Ko as O,Um as S,ki as X,Bm as _,Os as a,Ve as b,W as c,zi as d,ee as e,zm as f,X as g,Ym as h,jn as i,zl as j,an as k,Wm as l,Wi as m,Hm as n,lr as o,Ot as p,Om as q,cr as r,It as s,Mi as t,kt as u,Ta as v,Ul as w,Oa as x,Fe as y,qm as z};