@scalar/agent-chat 0.2.1 → 0.2.3

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 (256) hide show
  1. package/dist/App.vue.d.ts +6 -1
  2. package/dist/App.vue.d.ts.map +1 -1
  3. package/dist/Chat.vue.d.ts.map +1 -1
  4. package/dist/Tooltip-Cm82QgNj.js +575 -0
  5. package/dist/__vite-optional-peer-dep_stream-markdown_markstream-vue_false-sdjmOmXd.js +5 -0
  6. package/dist/__vite-optional-peer-dep_stream-monaco_markstream-vue_false-HdL4xm5U.js +5 -0
  7. package/dist/__vite-optional-peer-dep_vue-i18n_markstream-vue_false-B9Pwe5kz.js +5 -0
  8. package/dist/_basePickBy-hHD8tMGb.js +151 -0
  9. package/dist/_baseUniq-DTF1wuF6.js +614 -0
  10. package/dist/arc-Dw2RQerU.js +83 -0
  11. package/dist/architecture-U656AL7Q-B00Z9eXr.js +36 -0
  12. package/dist/architectureDiagram-VXUJARFQ-BtOffFaM.js +4662 -0
  13. package/dist/blockDiagram-VD42YOAC-BUqFMMQe.js +2261 -0
  14. package/dist/c4Diagram-YG6GDRKO-NrM1YcpG.js +1579 -0
  15. package/dist/channel-105myCGU.js +5 -0
  16. package/dist/chunk-4BX2VUAB-TAxJli7C.js +8 -0
  17. package/dist/chunk-55IACEB6-VXFJ4bz5.js +8 -0
  18. package/dist/chunk-B4BG7PRW-CZDQpfj5.js +1375 -0
  19. package/dist/chunk-DI55MBZ5-D3l7TA-E.js +1370 -0
  20. package/dist/chunk-FMBD7UC4-BMXFm8I3.js +19 -0
  21. package/dist/chunk-QN33PNHL-BOUpbpWp.js +19 -0
  22. package/dist/chunk-QZHKN3VN-C-TEEx05.js +15 -0
  23. package/dist/chunk-TZMSLE5B-BUiROKNR.js +64 -0
  24. package/dist/classDiagram-2ON5EDUG-HQET4ybK.js +16 -0
  25. package/dist/classDiagram-v2-WZHVMYZB-HQET4ybK.js +16 -0
  26. package/dist/clone-CIIO71O9.js +8 -0
  27. package/dist/components/ApprovalSection.vue.d.ts.map +1 -1
  28. package/dist/components/PaymentSection.vue.d.ts +9 -0
  29. package/dist/components/PaymentSection.vue.d.ts.map +1 -0
  30. package/dist/components/RequestPreview.vue.d.ts.map +1 -1
  31. package/dist/components/ResponseBody/ResponseBody.vue.d.ts +1 -1
  32. package/dist/components/ResponseBody/ResponseBodyPreview.vue.d.ts +1 -1
  33. package/dist/cose-bilkent-S5V4N54A-CMsF4n-5.js +2609 -0
  34. package/dist/cytoscape.esm-DfdJODL8.js +18735 -0
  35. package/dist/dagre-6UL2VRFP-DqzdQ6Qg.js +444 -0
  36. package/dist/defaultLocale-BEa-49Qz.js +171 -0
  37. package/dist/diagram-PSM6KHXK-1xyGntw2.js +531 -0
  38. package/dist/diagram-QEK2KX5R-DdZdlAm1.js +217 -0
  39. package/dist/diagram-S2PKOQOG-C80Eo2jp.js +142 -0
  40. package/dist/erDiagram-Q2GNP2WA-DFVRrMXT.js +841 -0
  41. package/dist/flowDiagram-NV44I4VS-D9QK_qqB.js +1620 -0
  42. package/dist/ganttDiagram-LVOFAZNH-Bo1NTkeQ.js +2506 -0
  43. package/dist/gitGraph-F6HP7TQM-C5hdgcgO.js +27 -0
  44. package/dist/gitGraphDiagram-NY62KEGX-BZqnqZh6.js +699 -0
  45. package/dist/graph-Dth4IhEK.js +247 -0
  46. package/dist/helpers.d.ts +1 -1
  47. package/dist/hooks/useSearch.d.ts.map +1 -1
  48. package/dist/index-BOvT43H8.js +111780 -0
  49. package/dist/index.d.ts +1 -1
  50. package/dist/index.js +2 -3
  51. package/dist/index2-B36B-gt0.js +69 -0
  52. package/dist/index3-CtIyYUnG.js +70 -0
  53. package/dist/index4-Dzz91Ao2.js +537 -0
  54. package/dist/index5-Bmz0gMSP.js +590 -0
  55. package/dist/index6-DMB3qTSV.js +196 -0
  56. package/dist/info-NVLQJR56-azt5obk5.js +27 -0
  57. package/dist/infoDiagram-ER5ION4S-DD4Jtctm.js +24 -0
  58. package/dist/infographic_markstream-vue_false-BfsmcXxk.js +5 -0
  59. package/dist/init-DjUOC4st.js +16 -0
  60. package/dist/journeyDiagram-XKPGCS4Q-CXL6UO0r.js +834 -0
  61. package/dist/kanban-definition-3W4ZIXB7-B57do5Wg.js +719 -0
  62. package/dist/katex-SsTUIUTC.js +11688 -0
  63. package/dist/layout-7TCY8eA2.js +1332 -0
  64. package/dist/linear-DSm5i91N.js +625 -0
  65. package/dist/mermaid-parser.core-CUQWpAMM.js +12746 -0
  66. package/dist/mermaid.core-QjuzH7xx.js +14164 -0
  67. package/dist/mhchem-XHl7cef5.js +2306 -0
  68. package/dist/mindmap-definition-VGOIOE7T-DAQyGNAM.js +784 -0
  69. package/dist/ordinal-DfAQgscy.js +61 -0
  70. package/dist/package.json +2 -2
  71. package/dist/packet-BFZMPI3H-CixuxAEA.js +27 -0
  72. package/dist/pie-7BOR55EZ-D3cgnzR1.js +32 -0
  73. package/dist/pieDiagram-ADFJNKIX-BqxgYwrL.js +161 -0
  74. package/dist/quadrantDiagram-AYHSOK5B-CQ4v-9Hh.js +1022 -0
  75. package/dist/radar-NHE76QYJ-DhV0Od_M.js +27 -0
  76. package/dist/registry/add-documents-to-store.d.ts +3 -2
  77. package/dist/registry/add-documents-to-store.d.ts.map +1 -1
  78. package/dist/requirementDiagram-UZGBJVZJ-ncWNAgFi.js +850 -0
  79. package/dist/safeRaf-I3a3-dyJ.js +10 -0
  80. package/dist/sankeyDiagram-TZEHDZUN-yCR2_cH5.js +810 -0
  81. package/dist/sequenceDiagram-WL72ISMW-DZ7wqFyd.js +2511 -0
  82. package/dist/state/state.d.ts +7 -3
  83. package/dist/state/state.d.ts.map +1 -1
  84. package/dist/stateDiagram-FKZM4ZOC-Dra68Tzi.js +263 -0
  85. package/dist/stateDiagram-v2-4FDKWEC3-CARbPECD.js +16 -0
  86. package/dist/style.css +1 -12713
  87. package/dist/timeline-definition-IT6M3QCI-DEbG9QIM.js +795 -0
  88. package/dist/treemap-KMMF4GRG-CQbPsyWe.js +81 -0
  89. package/dist/views/Chat/Chat.vue.d.ts.map +1 -1
  90. package/dist/views/Chat/Messages/ExecuteRequestTool.vue.d.ts +1 -1
  91. package/dist/views/Chat/Messages/ExecuteRequestTool.vue.d.ts.map +1 -1
  92. package/dist/views/Chat/Messages/GetMiniOpenAPIDocTool.vue.d.ts +1 -1
  93. package/dist/views/Chat/Messages/GetOpenAPISpecsSummary.vue.d.ts +1 -1
  94. package/dist/views/PromptForm.vue.d.ts.map +1 -1
  95. package/dist/views/Start.vue.d.ts.map +1 -1
  96. package/dist/xychartDiagram-PRI3JC2R-C94Pu8hL.js +1340 -0
  97. package/package.json +1 -1
  98. package/dist/App.vue.js +0 -29
  99. package/dist/App.vue.js.map +0 -1
  100. package/dist/App.vue2.js +0 -5
  101. package/dist/App.vue2.js.map +0 -1
  102. package/dist/Chat.vue.js +0 -55
  103. package/dist/Chat.vue.js.map +0 -1
  104. package/dist/Chat.vue2.js +0 -5
  105. package/dist/Chat.vue2.js.map +0 -1
  106. package/dist/_virtual/_plugin-vue_export-helper.js +0 -11
  107. package/dist/_virtual/_plugin-vue_export-helper.js.map +0 -1
  108. package/dist/components/ApprovalSection.vue.js +0 -8
  109. package/dist/components/ApprovalSection.vue.js.map +0 -1
  110. package/dist/components/ApprovalSection.vue2.js +0 -47
  111. package/dist/components/ApprovalSection.vue2.js.map +0 -1
  112. package/dist/components/AutosendPaused.vue.js +0 -15
  113. package/dist/components/AutosendPaused.vue.js.map +0 -1
  114. package/dist/components/ContextItem.vue.js +0 -8
  115. package/dist/components/ContextItem.vue.js.map +0 -1
  116. package/dist/components/ContextItem.vue2.js +0 -22
  117. package/dist/components/ContextItem.vue2.js.map +0 -1
  118. package/dist/components/Endpoint.vue.js +0 -8
  119. package/dist/components/Endpoint.vue.js.map +0 -1
  120. package/dist/components/Endpoint.vue2.js +0 -98
  121. package/dist/components/Endpoint.vue2.js.map +0 -1
  122. package/dist/components/ErrorMessage.vue.js +0 -8
  123. package/dist/components/ErrorMessage.vue.js.map +0 -1
  124. package/dist/components/ErrorMessage.vue2.js +0 -28
  125. package/dist/components/ErrorMessage.vue2.js.map +0 -1
  126. package/dist/components/LoadingMiniOpenAPIDoc.vue.js +0 -16
  127. package/dist/components/LoadingMiniOpenAPIDoc.vue.js.map +0 -1
  128. package/dist/components/LoadingOpenAPISpecsSummary.vue.js +0 -16
  129. package/dist/components/LoadingOpenAPISpecsSummary.vue.js.map +0 -1
  130. package/dist/components/Logo.vue.js +0 -25
  131. package/dist/components/Logo.vue.js.map +0 -1
  132. package/dist/components/RequestApproved.vue.js +0 -15
  133. package/dist/components/RequestApproved.vue.js.map +0 -1
  134. package/dist/components/RequestFailed.vue.js +0 -26
  135. package/dist/components/RequestFailed.vue.js.map +0 -1
  136. package/dist/components/RequestPreview.vue.js +0 -9
  137. package/dist/components/RequestPreview.vue.js.map +0 -1
  138. package/dist/components/RequestPreview.vue2.js +0 -150
  139. package/dist/components/RequestPreview.vue2.js.map +0 -1
  140. package/dist/components/RequestRejected.vue.js +0 -24
  141. package/dist/components/RequestRejected.vue.js.map +0 -1
  142. package/dist/components/RequestSuccess.vue.js +0 -15
  143. package/dist/components/RequestSuccess.vue.js.map +0 -1
  144. package/dist/components/ResponseBody/ResponseBody.vue.js +0 -45
  145. package/dist/components/ResponseBody/ResponseBody.vue.js.map +0 -1
  146. package/dist/components/ResponseBody/ResponseBody.vue2.js +0 -5
  147. package/dist/components/ResponseBody/ResponseBody.vue2.js.map +0 -1
  148. package/dist/components/ResponseBody/ResponseBodyInfo.vue.js +0 -17
  149. package/dist/components/ResponseBody/ResponseBodyInfo.vue.js.map +0 -1
  150. package/dist/components/ResponseBody/ResponseBodyPreview.vue.js +0 -8
  151. package/dist/components/ResponseBody/ResponseBodyPreview.vue.js.map +0 -1
  152. package/dist/components/ResponseBody/ResponseBodyPreview.vue2.js +0 -73
  153. package/dist/components/ResponseBody/ResponseBodyPreview.vue2.js.map +0 -1
  154. package/dist/components/ResponseBody/ResponseBodyRaw.vue.js +0 -23
  155. package/dist/components/ResponseBody/ResponseBodyRaw.vue.js.map +0 -1
  156. package/dist/components/ResponseBody/ResponseBodyRaw.vue2.js +0 -5
  157. package/dist/components/ResponseBody/ResponseBodyRaw.vue2.js.map +0 -1
  158. package/dist/components/ResponseBody/ResponseBodyToggle.vue.js +0 -30
  159. package/dist/components/ResponseBody/ResponseBodyToggle.vue.js.map +0 -1
  160. package/dist/components/ResponseBody/ResponseBodyToggle.vue2.js +0 -5
  161. package/dist/components/ResponseBody/ResponseBodyToggle.vue2.js.map +0 -1
  162. package/dist/components/ResponseBody/helpers/media-types.js +0 -134
  163. package/dist/components/ResponseBody/helpers/media-types.js.map +0 -1
  164. package/dist/components/ResponseBody/helpers/process-response-body.js +0 -63
  165. package/dist/components/ResponseBody/helpers/process-response-body.js.map +0 -1
  166. package/dist/components/SearchPopover.vue.js +0 -8
  167. package/dist/components/SearchPopover.vue.js.map +0 -1
  168. package/dist/components/SearchPopover.vue2.js +0 -78
  169. package/dist/components/SearchPopover.vue2.js.map +0 -1
  170. package/dist/components/SendingRequest.vue.js +0 -26
  171. package/dist/components/SendingRequest.vue.js.map +0 -1
  172. package/dist/components/Suggestion.vue.js +0 -8
  173. package/dist/components/Suggestion.vue.js.map +0 -1
  174. package/dist/components/Suggestion.vue2.js +0 -28
  175. package/dist/components/Suggestion.vue2.js.map +0 -1
  176. package/dist/components/TestRequestButton.vue.js +0 -8
  177. package/dist/components/TestRequestButton.vue.js.map +0 -1
  178. package/dist/components/TestRequestButton.vue2.js +0 -37
  179. package/dist/components/TestRequestButton.vue2.js.map +0 -1
  180. package/dist/helpers.js +0 -201
  181. package/dist/helpers.js.map +0 -1
  182. package/dist/hooks/useChatApprovals.js +0 -25
  183. package/dist/hooks/useChatApprovals.js.map +0 -1
  184. package/dist/hooks/useChatOperationBlocks.js +0 -29
  185. package/dist/hooks/useChatOperationBlocks.js.map +0 -1
  186. package/dist/hooks/useChatScroll.js +0 -22
  187. package/dist/hooks/useChatScroll.js.map +0 -1
  188. package/dist/hooks/useSearch.js +0 -36
  189. package/dist/hooks/useSearch.js.map +0 -1
  190. package/dist/index.js.map +0 -1
  191. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/api.js +0 -12
  192. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/api.js.map +0 -1
  193. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/core.js +0 -67
  194. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/core.js.map +0 -1
  195. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/errors.js +0 -25
  196. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/errors.js.map +0 -1
  197. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/parse.js +0 -64
  198. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/parse.js.map +0 -1
  199. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/regexes.js +0 -8
  200. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/regexes.js.map +0 -1
  201. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/schemas.js +0 -181
  202. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/schemas.js.map +0 -1
  203. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/util.js +0 -85
  204. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/util.js.map +0 -1
  205. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/versions.js +0 -9
  206. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/versions.js.map +0 -1
  207. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/mini/schemas.js +0 -61
  208. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/mini/schemas.js.map +0 -1
  209. package/dist/registry/add-documents-to-store.js +0 -42
  210. package/dist/registry/add-documents-to-store.js.map +0 -1
  211. package/dist/state/state.js +0 -112
  212. package/dist/state/state.js.map +0 -1
  213. package/dist/views/Chat/Chat.vue.js +0 -8
  214. package/dist/views/Chat/Chat.vue.js.map +0 -1
  215. package/dist/views/Chat/Chat.vue2.js +0 -84
  216. package/dist/views/Chat/Chat.vue2.js.map +0 -1
  217. package/dist/views/Chat/Messages/ExecuteRequestTool.vue.js +0 -8
  218. package/dist/views/Chat/Messages/ExecuteRequestTool.vue.js.map +0 -1
  219. package/dist/views/Chat/Messages/ExecuteRequestTool.vue2.js +0 -39
  220. package/dist/views/Chat/Messages/ExecuteRequestTool.vue2.js.map +0 -1
  221. package/dist/views/Chat/Messages/GetMiniOpenAPIDocTool.vue.js +0 -8
  222. package/dist/views/Chat/Messages/GetMiniOpenAPIDocTool.vue.js.map +0 -1
  223. package/dist/views/Chat/Messages/GetMiniOpenAPIDocTool.vue2.js +0 -65
  224. package/dist/views/Chat/Messages/GetMiniOpenAPIDocTool.vue2.js.map +0 -1
  225. package/dist/views/Chat/Messages/GetOpenAPISpecsSummary.vue.js +0 -32
  226. package/dist/views/Chat/Messages/GetOpenAPISpecsSummary.vue.js.map +0 -1
  227. package/dist/views/Chat/Messages/GetOpenAPISpecsSummary.vue2.js +0 -5
  228. package/dist/views/Chat/Messages/GetOpenAPISpecsSummary.vue2.js.map +0 -1
  229. package/dist/views/Chat/Messages/Text.vue.js +0 -21
  230. package/dist/views/Chat/Messages/Text.vue.js.map +0 -1
  231. package/dist/views/Chat/Messages/Text.vue2.js +0 -5
  232. package/dist/views/Chat/Messages/Text.vue2.js.map +0 -1
  233. package/dist/views/Layout.vue.js +0 -8
  234. package/dist/views/Layout.vue.js.map +0 -1
  235. package/dist/views/Layout.vue2.js +0 -28
  236. package/dist/views/Layout.vue2.js.map +0 -1
  237. package/dist/views/PromptForm.vue.js +0 -8
  238. package/dist/views/PromptForm.vue.js.map +0 -1
  239. package/dist/views/PromptForm.vue2.js +0 -182
  240. package/dist/views/PromptForm.vue2.js.map +0 -1
  241. package/dist/views/Settings/Auth.vue.js +0 -66
  242. package/dist/views/Settings/Auth.vue.js.map +0 -1
  243. package/dist/views/Settings/Auth.vue2.js +0 -5
  244. package/dist/views/Settings/Auth.vue2.js.map +0 -1
  245. package/dist/views/Settings/DocSettings.vue.js +0 -8
  246. package/dist/views/Settings/DocSettings.vue.js.map +0 -1
  247. package/dist/views/Settings/DocSettings.vue2.js +0 -50
  248. package/dist/views/Settings/DocSettings.vue2.js.map +0 -1
  249. package/dist/views/Settings/Settings.vue.js +0 -9
  250. package/dist/views/Settings/Settings.vue.js.map +0 -1
  251. package/dist/views/Settings/Settings.vue2.js +0 -78
  252. package/dist/views/Settings/Settings.vue2.js.map +0 -1
  253. package/dist/views/Start.vue.js +0 -8
  254. package/dist/views/Start.vue.js.map +0 -1
  255. package/dist/views/Start.vue2.js +0 -56
  256. package/dist/views/Start.vue2.js.map +0 -1
@@ -0,0 +1,625 @@
1
+ import { i as te } from "./init-DjUOC4st.js";
2
+ import { e as y, a as ie, b as fe, f as ae } from "./defaultLocale-BEa-49Qz.js";
3
+ function H(e, n) {
4
+ return e == null || n == null ? NaN : e < n ? -1 : e > n ? 1 : e >= n ? 0 : NaN;
5
+ }
6
+ function ue(e, n) {
7
+ return e == null || n == null ? NaN : n < e ? -1 : n > e ? 1 : n >= e ? 0 : NaN;
8
+ }
9
+ function X(e) {
10
+ let n, r, t;
11
+ e.length !== 2 ? (n = H, r = (a, c) => H(e(a), c), t = (a, c) => e(a) - c) : (n = e === H || e === ue ? e : oe, r = e, t = e);
12
+ function i(a, c, u = 0, l = a.length) {
13
+ if (u < l) {
14
+ if (n(c, c) !== 0) return l;
15
+ do {
16
+ const s = u + l >>> 1;
17
+ r(a[s], c) < 0 ? u = s + 1 : l = s;
18
+ } while (u < l);
19
+ }
20
+ return u;
21
+ }
22
+ function o(a, c, u = 0, l = a.length) {
23
+ if (u < l) {
24
+ if (n(c, c) !== 0) return l;
25
+ do {
26
+ const s = u + l >>> 1;
27
+ r(a[s], c) <= 0 ? u = s + 1 : l = s;
28
+ } while (u < l);
29
+ }
30
+ return u;
31
+ }
32
+ function f(a, c, u = 0, l = a.length) {
33
+ const s = i(a, c, u, l - 1);
34
+ return s > u && t(a[s - 1], c) > -t(a[s], c) ? s - 1 : s;
35
+ }
36
+ return { left: i, center: f, right: o };
37
+ }
38
+ function oe() {
39
+ return 0;
40
+ }
41
+ function ce(e) {
42
+ return e === null ? NaN : +e;
43
+ }
44
+ const le = X(H), se = le.right;
45
+ X(ce).center;
46
+ const he = Math.sqrt(50), xe = Math.sqrt(10), ge = Math.sqrt(2);
47
+ function A(e, n, r) {
48
+ const t = (n - e) / Math.max(0, r), i = Math.floor(Math.log10(t)), o = t / Math.pow(10, i), f = o >= he ? 10 : o >= xe ? 5 : o >= ge ? 2 : 1;
49
+ let a, c, u;
50
+ return i < 0 ? (u = Math.pow(10, -i) / f, a = Math.round(e * u), c = Math.round(n * u), a / u < e && ++a, c / u > n && --c, u = -u) : (u = Math.pow(10, i) * f, a = Math.round(e / u), c = Math.round(n / u), a * u < e && ++a, c * u > n && --c), c < a && 0.5 <= r && r < 2 ? A(e, n, r * 2) : [a, c, u];
51
+ }
52
+ function de(e, n, r) {
53
+ if (n = +n, e = +e, r = +r, !(r > 0)) return [];
54
+ if (e === n) return [e];
55
+ const t = n < e, [i, o, f] = t ? A(n, e, r) : A(e, n, r);
56
+ if (!(o >= i)) return [];
57
+ const a = o - i + 1, c = new Array(a);
58
+ if (t)
59
+ if (f < 0) for (let u = 0; u < a; ++u) c[u] = (o - u) / -f;
60
+ else for (let u = 0; u < a; ++u) c[u] = (o - u) * f;
61
+ else if (f < 0) for (let u = 0; u < a; ++u) c[u] = (i + u) / -f;
62
+ else for (let u = 0; u < a; ++u) c[u] = (i + u) * f;
63
+ return c;
64
+ }
65
+ function _(e, n, r) {
66
+ return n = +n, e = +e, r = +r, A(e, n, r)[2];
67
+ }
68
+ function me(e, n, r) {
69
+ n = +n, e = +e, r = +r;
70
+ const t = n < e, i = t ? _(n, e, r) : _(e, n, r);
71
+ return (t ? -1 : 1) * (i < 0 ? 1 / -i : i);
72
+ }
73
+ function B(e, n, r) {
74
+ e.prototype = n.prototype = r, r.constructor = e;
75
+ }
76
+ function Y(e, n) {
77
+ var r = Object.create(e.prototype);
78
+ for (var t in n) r[t] = n[t];
79
+ return r;
80
+ }
81
+ function $() {
82
+ }
83
+ var N = 0.7, q = 1 / N, w = "\\s*([+-]?\\d+)\\s*", M = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", d = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", be = /^#([0-9a-f]{3,8})$/, pe = new RegExp(`^rgb\\(${w},${w},${w}\\)$`), we = new RegExp(`^rgb\\(${d},${d},${d}\\)$`), ye = new RegExp(`^rgba\\(${w},${w},${w},${M}\\)$`), Ne = new RegExp(`^rgba\\(${d},${d},${d},${M}\\)$`), Me = new RegExp(`^hsl\\(${M},${d},${d}\\)$`), ve = new RegExp(`^hsla\\(${M},${d},${d},${M}\\)$`), F = {
84
+ aliceblue: 15792383,
85
+ antiquewhite: 16444375,
86
+ aqua: 65535,
87
+ aquamarine: 8388564,
88
+ azure: 15794175,
89
+ beige: 16119260,
90
+ bisque: 16770244,
91
+ black: 0,
92
+ blanchedalmond: 16772045,
93
+ blue: 255,
94
+ blueviolet: 9055202,
95
+ brown: 10824234,
96
+ burlywood: 14596231,
97
+ cadetblue: 6266528,
98
+ chartreuse: 8388352,
99
+ chocolate: 13789470,
100
+ coral: 16744272,
101
+ cornflowerblue: 6591981,
102
+ cornsilk: 16775388,
103
+ crimson: 14423100,
104
+ cyan: 65535,
105
+ darkblue: 139,
106
+ darkcyan: 35723,
107
+ darkgoldenrod: 12092939,
108
+ darkgray: 11119017,
109
+ darkgreen: 25600,
110
+ darkgrey: 11119017,
111
+ darkkhaki: 12433259,
112
+ darkmagenta: 9109643,
113
+ darkolivegreen: 5597999,
114
+ darkorange: 16747520,
115
+ darkorchid: 10040012,
116
+ darkred: 9109504,
117
+ darksalmon: 15308410,
118
+ darkseagreen: 9419919,
119
+ darkslateblue: 4734347,
120
+ darkslategray: 3100495,
121
+ darkslategrey: 3100495,
122
+ darkturquoise: 52945,
123
+ darkviolet: 9699539,
124
+ deeppink: 16716947,
125
+ deepskyblue: 49151,
126
+ dimgray: 6908265,
127
+ dimgrey: 6908265,
128
+ dodgerblue: 2003199,
129
+ firebrick: 11674146,
130
+ floralwhite: 16775920,
131
+ forestgreen: 2263842,
132
+ fuchsia: 16711935,
133
+ gainsboro: 14474460,
134
+ ghostwhite: 16316671,
135
+ gold: 16766720,
136
+ goldenrod: 14329120,
137
+ gray: 8421504,
138
+ green: 32768,
139
+ greenyellow: 11403055,
140
+ grey: 8421504,
141
+ honeydew: 15794160,
142
+ hotpink: 16738740,
143
+ indianred: 13458524,
144
+ indigo: 4915330,
145
+ ivory: 16777200,
146
+ khaki: 15787660,
147
+ lavender: 15132410,
148
+ lavenderblush: 16773365,
149
+ lawngreen: 8190976,
150
+ lemonchiffon: 16775885,
151
+ lightblue: 11393254,
152
+ lightcoral: 15761536,
153
+ lightcyan: 14745599,
154
+ lightgoldenrodyellow: 16448210,
155
+ lightgray: 13882323,
156
+ lightgreen: 9498256,
157
+ lightgrey: 13882323,
158
+ lightpink: 16758465,
159
+ lightsalmon: 16752762,
160
+ lightseagreen: 2142890,
161
+ lightskyblue: 8900346,
162
+ lightslategray: 7833753,
163
+ lightslategrey: 7833753,
164
+ lightsteelblue: 11584734,
165
+ lightyellow: 16777184,
166
+ lime: 65280,
167
+ limegreen: 3329330,
168
+ linen: 16445670,
169
+ magenta: 16711935,
170
+ maroon: 8388608,
171
+ mediumaquamarine: 6737322,
172
+ mediumblue: 205,
173
+ mediumorchid: 12211667,
174
+ mediumpurple: 9662683,
175
+ mediumseagreen: 3978097,
176
+ mediumslateblue: 8087790,
177
+ mediumspringgreen: 64154,
178
+ mediumturquoise: 4772300,
179
+ mediumvioletred: 13047173,
180
+ midnightblue: 1644912,
181
+ mintcream: 16121850,
182
+ mistyrose: 16770273,
183
+ moccasin: 16770229,
184
+ navajowhite: 16768685,
185
+ navy: 128,
186
+ oldlace: 16643558,
187
+ olive: 8421376,
188
+ olivedrab: 7048739,
189
+ orange: 16753920,
190
+ orangered: 16729344,
191
+ orchid: 14315734,
192
+ palegoldenrod: 15657130,
193
+ palegreen: 10025880,
194
+ paleturquoise: 11529966,
195
+ palevioletred: 14381203,
196
+ papayawhip: 16773077,
197
+ peachpuff: 16767673,
198
+ peru: 13468991,
199
+ pink: 16761035,
200
+ plum: 14524637,
201
+ powderblue: 11591910,
202
+ purple: 8388736,
203
+ rebeccapurple: 6697881,
204
+ red: 16711680,
205
+ rosybrown: 12357519,
206
+ royalblue: 4286945,
207
+ saddlebrown: 9127187,
208
+ salmon: 16416882,
209
+ sandybrown: 16032864,
210
+ seagreen: 3050327,
211
+ seashell: 16774638,
212
+ sienna: 10506797,
213
+ silver: 12632256,
214
+ skyblue: 8900331,
215
+ slateblue: 6970061,
216
+ slategray: 7372944,
217
+ slategrey: 7372944,
218
+ snow: 16775930,
219
+ springgreen: 65407,
220
+ steelblue: 4620980,
221
+ tan: 13808780,
222
+ teal: 32896,
223
+ thistle: 14204888,
224
+ tomato: 16737095,
225
+ turquoise: 4251856,
226
+ violet: 15631086,
227
+ wheat: 16113331,
228
+ white: 16777215,
229
+ whitesmoke: 16119285,
230
+ yellow: 16776960,
231
+ yellowgreen: 10145074
232
+ };
233
+ B($, v, {
234
+ copy(e) {
235
+ return Object.assign(new this.constructor(), this, e);
236
+ },
237
+ displayable() {
238
+ return this.rgb().displayable();
239
+ },
240
+ hex: V,
241
+ // Deprecated! Use color.formatHex.
242
+ formatHex: V,
243
+ formatHex8: $e,
244
+ formatHsl: ke,
245
+ formatRgb: G,
246
+ toString: G
247
+ });
248
+ function V() {
249
+ return this.rgb().formatHex();
250
+ }
251
+ function $e() {
252
+ return this.rgb().formatHex8();
253
+ }
254
+ function ke() {
255
+ return Z(this).formatHsl();
256
+ }
257
+ function G() {
258
+ return this.rgb().formatRgb();
259
+ }
260
+ function v(e) {
261
+ var n, r;
262
+ return e = (e + "").trim().toLowerCase(), (n = be.exec(e)) ? (r = n[1].length, n = parseInt(n[1], 16), r === 6 ? L(n) : r === 3 ? new x(n >> 8 & 15 | n >> 4 & 240, n >> 4 & 15 | n & 240, (n & 15) << 4 | n & 15, 1) : r === 8 ? k(n >> 24 & 255, n >> 16 & 255, n >> 8 & 255, (n & 255) / 255) : r === 4 ? k(n >> 12 & 15 | n >> 8 & 240, n >> 8 & 15 | n >> 4 & 240, n >> 4 & 15 | n & 240, ((n & 15) << 4 | n & 15) / 255) : null) : (n = pe.exec(e)) ? new x(n[1], n[2], n[3], 1) : (n = we.exec(e)) ? new x(n[1] * 255 / 100, n[2] * 255 / 100, n[3] * 255 / 100, 1) : (n = ye.exec(e)) ? k(n[1], n[2], n[3], n[4]) : (n = Ne.exec(e)) ? k(n[1] * 255 / 100, n[2] * 255 / 100, n[3] * 255 / 100, n[4]) : (n = Me.exec(e)) ? K(n[1], n[2] / 100, n[3] / 100, 1) : (n = ve.exec(e)) ? K(n[1], n[2] / 100, n[3] / 100, n[4]) : F.hasOwnProperty(e) ? L(F[e]) : e === "transparent" ? new x(NaN, NaN, NaN, 0) : null;
263
+ }
264
+ function L(e) {
265
+ return new x(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
266
+ }
267
+ function k(e, n, r, t) {
268
+ return t <= 0 && (e = n = r = NaN), new x(e, n, r, t);
269
+ }
270
+ function Re(e) {
271
+ return e instanceof $ || (e = v(e)), e ? (e = e.rgb(), new x(e.r, e.g, e.b, e.opacity)) : new x();
272
+ }
273
+ function C(e, n, r, t) {
274
+ return arguments.length === 1 ? Re(e) : new x(e, n, r, t ?? 1);
275
+ }
276
+ function x(e, n, r, t) {
277
+ this.r = +e, this.g = +n, this.b = +r, this.opacity = +t;
278
+ }
279
+ B(x, C, Y($, {
280
+ brighter(e) {
281
+ return e = e == null ? q : Math.pow(q, e), new x(this.r * e, this.g * e, this.b * e, this.opacity);
282
+ },
283
+ darker(e) {
284
+ return e = e == null ? N : Math.pow(N, e), new x(this.r * e, this.g * e, this.b * e, this.opacity);
285
+ },
286
+ rgb() {
287
+ return this;
288
+ },
289
+ clamp() {
290
+ return new x(b(this.r), b(this.g), b(this.b), E(this.opacity));
291
+ },
292
+ displayable() {
293
+ return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
294
+ },
295
+ hex: T,
296
+ // Deprecated! Use color.formatHex.
297
+ formatHex: T,
298
+ formatHex8: He,
299
+ formatRgb: J,
300
+ toString: J
301
+ }));
302
+ function T() {
303
+ return `#${m(this.r)}${m(this.g)}${m(this.b)}`;
304
+ }
305
+ function He() {
306
+ return `#${m(this.r)}${m(this.g)}${m(this.b)}${m((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
307
+ }
308
+ function J() {
309
+ const e = E(this.opacity);
310
+ return `${e === 1 ? "rgb(" : "rgba("}${b(this.r)}, ${b(this.g)}, ${b(this.b)}${e === 1 ? ")" : `, ${e})`}`;
311
+ }
312
+ function E(e) {
313
+ return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
314
+ }
315
+ function b(e) {
316
+ return Math.max(0, Math.min(255, Math.round(e) || 0));
317
+ }
318
+ function m(e) {
319
+ return e = b(e), (e < 16 ? "0" : "") + e.toString(16);
320
+ }
321
+ function K(e, n, r, t) {
322
+ return t <= 0 ? e = n = r = NaN : r <= 0 || r >= 1 ? e = n = NaN : n <= 0 && (e = NaN), new g(e, n, r, t);
323
+ }
324
+ function Z(e) {
325
+ if (e instanceof g) return new g(e.h, e.s, e.l, e.opacity);
326
+ if (e instanceof $ || (e = v(e)), !e) return new g();
327
+ if (e instanceof g) return e;
328
+ e = e.rgb();
329
+ var n = e.r / 255, r = e.g / 255, t = e.b / 255, i = Math.min(n, r, t), o = Math.max(n, r, t), f = NaN, a = o - i, c = (o + i) / 2;
330
+ return a ? (n === o ? f = (r - t) / a + (r < t) * 6 : r === o ? f = (t - n) / a + 2 : f = (n - r) / a + 4, a /= c < 0.5 ? o + i : 2 - o - i, f *= 60) : a = c > 0 && c < 1 ? 0 : f, new g(f, a, c, e.opacity);
331
+ }
332
+ function Ae(e, n, r, t) {
333
+ return arguments.length === 1 ? Z(e) : new g(e, n, r, t ?? 1);
334
+ }
335
+ function g(e, n, r, t) {
336
+ this.h = +e, this.s = +n, this.l = +r, this.opacity = +t;
337
+ }
338
+ B(g, Ae, Y($, {
339
+ brighter(e) {
340
+ return e = e == null ? q : Math.pow(q, e), new g(this.h, this.s, this.l * e, this.opacity);
341
+ },
342
+ darker(e) {
343
+ return e = e == null ? N : Math.pow(N, e), new g(this.h, this.s, this.l * e, this.opacity);
344
+ },
345
+ rgb() {
346
+ var e = this.h % 360 + (this.h < 0) * 360, n = isNaN(e) || isNaN(this.s) ? 0 : this.s, r = this.l, t = r + (r < 0.5 ? r : 1 - r) * n, i = 2 * r - t;
347
+ return new x(
348
+ P(e >= 240 ? e - 240 : e + 120, i, t),
349
+ P(e, i, t),
350
+ P(e < 120 ? e + 240 : e - 120, i, t),
351
+ this.opacity
352
+ );
353
+ },
354
+ clamp() {
355
+ return new g(Q(this.h), R(this.s), R(this.l), E(this.opacity));
356
+ },
357
+ displayable() {
358
+ return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
359
+ },
360
+ formatHsl() {
361
+ const e = E(this.opacity);
362
+ return `${e === 1 ? "hsl(" : "hsla("}${Q(this.h)}, ${R(this.s) * 100}%, ${R(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
363
+ }
364
+ }));
365
+ function Q(e) {
366
+ return e = (e || 0) % 360, e < 0 ? e + 360 : e;
367
+ }
368
+ function R(e) {
369
+ return Math.max(0, Math.min(1, e || 0));
370
+ }
371
+ function P(e, n, r) {
372
+ return (e < 60 ? n + (r - n) * e / 60 : e < 180 ? r : e < 240 ? n + (r - n) * (240 - e) / 60 : n) * 255;
373
+ }
374
+ const j = (e) => () => e;
375
+ function ee(e, n) {
376
+ return function(r) {
377
+ return e + r * n;
378
+ };
379
+ }
380
+ function qe(e, n, r) {
381
+ return e = Math.pow(e, r), n = Math.pow(n, r) - e, r = 1 / r, function(t) {
382
+ return Math.pow(e + t * n, r);
383
+ };
384
+ }
385
+ function rn(e, n) {
386
+ var r = n - e;
387
+ return r ? ee(e, r > 180 || r < -180 ? r - 360 * Math.round(r / 360) : r) : j(isNaN(e) ? n : e);
388
+ }
389
+ function Ee(e) {
390
+ return (e = +e) == 1 ? ne : function(n, r) {
391
+ return r - n ? qe(n, r, e) : j(isNaN(n) ? r : n);
392
+ };
393
+ }
394
+ function ne(e, n) {
395
+ var r = n - e;
396
+ return r ? ee(e, r) : j(isNaN(e) ? n : e);
397
+ }
398
+ const U = (function e(n) {
399
+ var r = Ee(n);
400
+ function t(i, o) {
401
+ var f = r((i = C(i)).r, (o = C(o)).r), a = r(i.g, o.g), c = r(i.b, o.b), u = ne(i.opacity, o.opacity);
402
+ return function(l) {
403
+ return i.r = f(l), i.g = a(l), i.b = c(l), i.opacity = u(l), i + "";
404
+ };
405
+ }
406
+ return t.gamma = e, t;
407
+ })(1);
408
+ function Ie(e, n) {
409
+ n || (n = []);
410
+ var r = e ? Math.min(n.length, e.length) : 0, t = n.slice(), i;
411
+ return function(o) {
412
+ for (i = 0; i < r; ++i) t[i] = e[i] * (1 - o) + n[i] * o;
413
+ return t;
414
+ };
415
+ }
416
+ function je(e) {
417
+ return ArrayBuffer.isView(e) && !(e instanceof DataView);
418
+ }
419
+ function Pe(e, n) {
420
+ var r = n ? n.length : 0, t = e ? Math.min(r, e.length) : 0, i = new Array(t), o = new Array(r), f;
421
+ for (f = 0; f < t; ++f) i[f] = D(e[f], n[f]);
422
+ for (; f < r; ++f) o[f] = n[f];
423
+ return function(a) {
424
+ for (f = 0; f < t; ++f) o[f] = i[f](a);
425
+ return o;
426
+ };
427
+ }
428
+ function Se(e, n) {
429
+ var r = /* @__PURE__ */ new Date();
430
+ return e = +e, n = +n, function(t) {
431
+ return r.setTime(e * (1 - t) + n * t), r;
432
+ };
433
+ }
434
+ function I(e, n) {
435
+ return e = +e, n = +n, function(r) {
436
+ return e * (1 - r) + n * r;
437
+ };
438
+ }
439
+ function _e(e, n) {
440
+ var r = {}, t = {}, i;
441
+ (e === null || typeof e != "object") && (e = {}), (n === null || typeof n != "object") && (n = {});
442
+ for (i in n)
443
+ i in e ? r[i] = D(e[i], n[i]) : t[i] = n[i];
444
+ return function(o) {
445
+ for (i in r) t[i] = r[i](o);
446
+ return t;
447
+ };
448
+ }
449
+ var z = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, S = new RegExp(z.source, "g");
450
+ function Ce(e) {
451
+ return function() {
452
+ return e;
453
+ };
454
+ }
455
+ function ze(e) {
456
+ return function(n) {
457
+ return e(n) + "";
458
+ };
459
+ }
460
+ function Oe(e, n) {
461
+ var r = z.lastIndex = S.lastIndex = 0, t, i, o, f = -1, a = [], c = [];
462
+ for (e = e + "", n = n + ""; (t = z.exec(e)) && (i = S.exec(n)); )
463
+ (o = i.index) > r && (o = n.slice(r, o), a[f] ? a[f] += o : a[++f] = o), (t = t[0]) === (i = i[0]) ? a[f] ? a[f] += i : a[++f] = i : (a[++f] = null, c.push({ i: f, x: I(t, i) })), r = S.lastIndex;
464
+ return r < n.length && (o = n.slice(r), a[f] ? a[f] += o : a[++f] = o), a.length < 2 ? c[0] ? ze(c[0].x) : Ce(n) : (n = c.length, function(u) {
465
+ for (var l = 0, s; l < n; ++l) a[(s = c[l]).i] = s.x(u);
466
+ return a.join("");
467
+ });
468
+ }
469
+ function D(e, n) {
470
+ var r = typeof n, t;
471
+ return n == null || r === "boolean" ? j(n) : (r === "number" ? I : r === "string" ? (t = v(n)) ? (n = t, U) : Oe : n instanceof v ? U : n instanceof Date ? Se : je(n) ? Ie : Array.isArray(n) ? Pe : typeof n.valueOf != "function" && typeof n.toString != "function" || isNaN(n) ? _e : I)(e, n);
472
+ }
473
+ function Be(e, n) {
474
+ return e = +e, n = +n, function(r) {
475
+ return Math.round(e * (1 - r) + n * r);
476
+ };
477
+ }
478
+ function De(e) {
479
+ return Math.max(0, -y(Math.abs(e)));
480
+ }
481
+ function Fe(e, n) {
482
+ return Math.max(0, Math.max(-8, Math.min(8, Math.floor(y(n) / 3))) * 3 - y(Math.abs(e)));
483
+ }
484
+ function Ve(e, n) {
485
+ return e = Math.abs(e), n = Math.abs(n) - e, Math.max(0, y(n) - y(e)) + 1;
486
+ }
487
+ function Ge(e) {
488
+ return function() {
489
+ return e;
490
+ };
491
+ }
492
+ function Le(e) {
493
+ return +e;
494
+ }
495
+ var W = [0, 1];
496
+ function p(e) {
497
+ return e;
498
+ }
499
+ function O(e, n) {
500
+ return (n -= e = +e) ? function(r) {
501
+ return (r - e) / n;
502
+ } : Ge(isNaN(n) ? NaN : 0.5);
503
+ }
504
+ function Te(e, n) {
505
+ var r;
506
+ return e > n && (r = e, e = n, n = r), function(t) {
507
+ return Math.max(e, Math.min(n, t));
508
+ };
509
+ }
510
+ function Je(e, n, r) {
511
+ var t = e[0], i = e[1], o = n[0], f = n[1];
512
+ return i < t ? (t = O(i, t), o = r(f, o)) : (t = O(t, i), o = r(o, f)), function(a) {
513
+ return o(t(a));
514
+ };
515
+ }
516
+ function Ke(e, n, r) {
517
+ var t = Math.min(e.length, n.length) - 1, i = new Array(t), o = new Array(t), f = -1;
518
+ for (e[t] < e[0] && (e = e.slice().reverse(), n = n.slice().reverse()); ++f < t; )
519
+ i[f] = O(e[f], e[f + 1]), o[f] = r(n[f], n[f + 1]);
520
+ return function(a) {
521
+ var c = se(e, a, 1, t) - 1;
522
+ return o[c](i[c](a));
523
+ };
524
+ }
525
+ function Qe(e, n) {
526
+ return n.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());
527
+ }
528
+ function Ue() {
529
+ var e = W, n = W, r = D, t, i, o, f = p, a, c, u;
530
+ function l() {
531
+ var h = Math.min(e.length, n.length);
532
+ return f !== p && (f = Te(e[0], e[h - 1])), a = h > 2 ? Ke : Je, c = u = null, s;
533
+ }
534
+ function s(h) {
535
+ return h == null || isNaN(h = +h) ? o : (c || (c = a(e.map(t), n, r)))(t(f(h)));
536
+ }
537
+ return s.invert = function(h) {
538
+ return f(i((u || (u = a(n, e.map(t), I)))(h)));
539
+ }, s.domain = function(h) {
540
+ return arguments.length ? (e = Array.from(h, Le), l()) : e.slice();
541
+ }, s.range = function(h) {
542
+ return arguments.length ? (n = Array.from(h), l()) : n.slice();
543
+ }, s.rangeRound = function(h) {
544
+ return n = Array.from(h), r = Be, l();
545
+ }, s.clamp = function(h) {
546
+ return arguments.length ? (f = h ? !0 : p, l()) : f !== p;
547
+ }, s.interpolate = function(h) {
548
+ return arguments.length ? (r = h, l()) : r;
549
+ }, s.unknown = function(h) {
550
+ return arguments.length ? (o = h, s) : o;
551
+ }, function(h, re) {
552
+ return t = h, i = re, l();
553
+ };
554
+ }
555
+ function We() {
556
+ return Ue()(p, p);
557
+ }
558
+ function Xe(e, n, r, t) {
559
+ var i = me(e, n, r), o;
560
+ switch (t = ie(t ?? ",f"), t.type) {
561
+ case "s": {
562
+ var f = Math.max(Math.abs(e), Math.abs(n));
563
+ return t.precision == null && !isNaN(o = Fe(i, f)) && (t.precision = o), fe(t, f);
564
+ }
565
+ case "":
566
+ case "e":
567
+ case "g":
568
+ case "p":
569
+ case "r": {
570
+ t.precision == null && !isNaN(o = Ve(i, Math.max(Math.abs(e), Math.abs(n)))) && (t.precision = o - (t.type === "e"));
571
+ break;
572
+ }
573
+ case "f":
574
+ case "%": {
575
+ t.precision == null && !isNaN(o = De(i)) && (t.precision = o - (t.type === "%") * 2);
576
+ break;
577
+ }
578
+ }
579
+ return ae(t);
580
+ }
581
+ function Ye(e) {
582
+ var n = e.domain;
583
+ return e.ticks = function(r) {
584
+ var t = n();
585
+ return de(t[0], t[t.length - 1], r ?? 10);
586
+ }, e.tickFormat = function(r, t) {
587
+ var i = n();
588
+ return Xe(i[0], i[i.length - 1], r ?? 10, t);
589
+ }, e.nice = function(r) {
590
+ r == null && (r = 10);
591
+ var t = n(), i = 0, o = t.length - 1, f = t[i], a = t[o], c, u, l = 10;
592
+ for (a < f && (u = f, f = a, a = u, u = i, i = o, o = u); l-- > 0; ) {
593
+ if (u = _(f, a, r), u === c)
594
+ return t[i] = f, t[o] = a, n(t);
595
+ if (u > 0)
596
+ f = Math.floor(f / u) * u, a = Math.ceil(a / u) * u;
597
+ else if (u < 0)
598
+ f = Math.ceil(f * u) / u, a = Math.floor(a * u) / u;
599
+ else
600
+ break;
601
+ c = u;
602
+ }
603
+ return e;
604
+ }, e;
605
+ }
606
+ function Ze() {
607
+ var e = We();
608
+ return e.copy = function() {
609
+ return Qe(e, Ze());
610
+ }, te.apply(e, arguments), Ye(e);
611
+ }
612
+ export {
613
+ $ as C,
614
+ x as R,
615
+ Qe as a,
616
+ X as b,
617
+ We as c,
618
+ B as d,
619
+ Y as e,
620
+ rn as h,
621
+ Ze as l,
622
+ ne as n,
623
+ Re as r,
624
+ me as t
625
+ };