@iamfiro/design 0.1.0 → 0.3.0

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 (160) hide show
  1. package/AGENTS.md +1 -0
  2. package/agents/INDEX.md +1 -0
  3. package/agents/brand-icon/AGENTS.md +2 -2
  4. package/agents/social-login-button/AGENTS.md +156 -0
  5. package/lib/components/Accordion/Accordion2.js +135 -0
  6. package/lib/components/ActionBar/ActionBar2.js +65 -0
  7. package/lib/components/Alert/Alert2.js +131 -0
  8. package/lib/components/AppShell/AppShell2.js +94 -0
  9. package/lib/components/AreaChart/AreaChart.js +59 -0
  10. package/lib/components/BarChart/BarChart2.js +243 -0
  11. package/lib/components/BarList/BarList2.js +172 -0
  12. package/lib/components/Breadcrumb/Breadcrumb2.js +87 -0
  13. package/lib/components/Calendar/Calendar2.js +309 -0
  14. package/lib/components/Calendar/DatePicker2.js +229 -0
  15. package/lib/components/Calendar/date.js +121 -0
  16. package/lib/components/Card/Card2.js +104 -0
  17. package/lib/components/CardFrame/CardFrame2.js +72 -0
  18. package/lib/components/Chart/ChartParts.js +150 -0
  19. package/lib/components/Chart/chart2.js +96 -0
  20. package/lib/components/Chart/useChartInteraction.js +94 -0
  21. package/lib/components/ChatBubble/ChatBubble2.js +174 -0
  22. package/lib/components/ChatBubble/formatChatTime.js +53 -0
  23. package/lib/components/ChatComposer/ChatComposer2.js +153 -0
  24. package/lib/components/CodeBlock/CodeBlock2.js +93 -0
  25. package/lib/components/CodeBlock/highlight.js +114 -0
  26. package/lib/components/ColorPicker/ColorPicker2.js +610 -0
  27. package/lib/components/ColorPicker/color.js +180 -0
  28. package/lib/components/ColorPicker/presets.js +75 -0
  29. package/lib/components/Combobox/Combobox2.js +229 -0
  30. package/lib/components/CommandMenu/CommandMenu.js +267 -0
  31. package/lib/components/Comment/Comment2.js +134 -0
  32. package/lib/components/ContextMenu/ContextMenu2.js +168 -0
  33. package/lib/components/DataGrid/DataGrid2.js +1996 -0
  34. package/lib/components/DataGrid/GridPopover.js +154 -0
  35. package/lib/components/DataGrid/anchor.js +50 -0
  36. package/lib/components/DataGrid/model.js +558 -0
  37. package/lib/components/DataGrid/panels.js +703 -0
  38. package/lib/components/DataGrid/typeMeta.js +76 -0
  39. package/lib/components/DataGrid/types.js +54 -0
  40. package/lib/components/DescriptionList/DescriptionList2.js +180 -0
  41. package/lib/components/Dialog/AlertDialog.js +118 -0
  42. package/lib/components/Dialog/Dialog2.js +109 -0
  43. package/lib/components/Dialog/modal.js +92 -0
  44. package/lib/components/Drawer/Drawer2.js +244 -0
  45. package/lib/components/DropdownMenu/DropdownMenu2.js +394 -0
  46. package/lib/components/DropdownMenu/menuCore.js +63 -0
  47. package/lib/components/Dropzone/Dropzone2.js +144 -0
  48. package/lib/components/EmptyState/EmptyState2.js +72 -0
  49. package/lib/components/FileChip/FileChip2.js +118 -0
  50. package/lib/components/FileUpload/FileUpload.js +258 -0
  51. package/lib/components/FilterChips/FilterChips2.js +101 -0
  52. package/lib/components/FunnelChart/FunnelChart2.js +283 -0
  53. package/lib/components/FunnelChart/funnel.js +69 -0
  54. package/lib/components/Highlight/Highlight2.js +100 -0
  55. package/lib/components/HoverCard/HoverCard.js +134 -0
  56. package/lib/components/InlineDiff/InlineDiff2.js +215 -0
  57. package/lib/components/InlineDiff/diff.js +126 -0
  58. package/lib/components/InlineDiff/useDiffReview.js +109 -0
  59. package/lib/components/Kanban/Kanban2.js +691 -0
  60. package/lib/components/Kanban/KanbanCard.js +159 -0
  61. package/lib/components/Kanban/move.js +69 -0
  62. package/lib/components/LineChart/LineChart2.js +342 -0
  63. package/lib/components/List/List2.js +133 -0
  64. package/lib/components/Listbox/Listbox2.js +163 -0
  65. package/lib/components/Marker/Marker2.js +82 -0
  66. package/lib/components/Menubar/Menubar2.js +223 -0
  67. package/lib/components/MultiSelect/MultiSelect2.js +204 -0
  68. package/lib/components/NavigationMenu/NavigationMenu2.js +481 -0
  69. package/lib/components/NoticeStack/NoticeStack2.js +178 -0
  70. package/lib/components/NumberStepper/NumberStepper2.js +129 -0
  71. package/lib/components/OtpInput/OtpInput2.js +122 -0
  72. package/lib/components/Pagination/Pagination2.js +210 -0
  73. package/lib/components/Pagination/paginationRange.js +53 -0
  74. package/lib/components/PhoneInput/PhoneInput.js +175 -0
  75. package/lib/components/PieChart/PieChart2.js +246 -0
  76. package/lib/components/PieChart/arc.js +66 -0
  77. package/lib/components/PieChart/useArcTween.js +94 -0
  78. package/lib/components/Popover/Popover2.js +112 -0
  79. package/lib/components/ProgressTracker/ProgressTracker2.js +226 -0
  80. package/lib/components/Rating/Rating2.js +186 -0
  81. package/lib/components/Resizable/Resizable2.js +236 -0
  82. package/lib/components/Resizable/layout.js +115 -0
  83. package/lib/components/ScaledPreview/ScaledPreview2.js +100 -0
  84. package/lib/components/ScatterChart/ScatterChart2.js +356 -0
  85. package/lib/components/ScatterChart/scatter.js +83 -0
  86. package/lib/components/ScrollArea/ScrollArea2.js +218 -0
  87. package/lib/components/Select/Select2.js +153 -0
  88. package/lib/components/Sidebar/Sidebar2.js +127 -0
  89. package/lib/components/Skeleton/Skeleton2.js +91 -0
  90. package/lib/components/Slider/Slider2.js +142 -0
  91. package/lib/components/SocialLoginButton/SocialLoginButton.js +85 -0
  92. package/lib/components/SparkChart/SparkChart2.js +217 -0
  93. package/lib/components/SparkChart/spark.js +76 -0
  94. package/lib/components/Sparkbar/Sparkbar2.js +111 -0
  95. package/lib/components/SplitView/SplitView2.js +95 -0
  96. package/lib/components/Stat/Stat2.js +164 -0
  97. package/lib/components/StepList/StepList2.js +131 -0
  98. package/lib/components/Table/Table2.js +104 -0
  99. package/lib/components/Tabs/Tabs2.js +131 -0
  100. package/lib/components/TagInput/TagInput2.js +360 -0
  101. package/lib/components/TimePicker/TimePicker2.js +388 -0
  102. package/lib/components/TimePicker/time.js +83 -0
  103. package/lib/components/Timeline/Timeline2.js +369 -0
  104. package/lib/components/Timeline/scale.js +83 -0
  105. package/lib/components/Toast/Toaster.js +212 -0
  106. package/lib/components/Toast/store.js +129 -0
  107. package/lib/components/ToggleGroup/ToggleGroup2.js +125 -0
  108. package/lib/components/Toolbar/Toolbar2.js +281 -0
  109. package/lib/components/Tracker/Tracker2.js +172 -0
  110. package/lib/components/TreeDiagram/TreeDiagram2.js +223 -0
  111. package/lib/components/TreeView/TreeView2.js +284 -0
  112. package/lib/hooks/timing.js +55 -0
  113. package/lib/hooks/useControllableState.js +49 -0
  114. package/lib/hooks/useCountdown.js +80 -0
  115. package/lib/hooks/useDigitInput.js +105 -0
  116. package/lib/hooks/useDismiss.js +71 -0
  117. package/lib/hooks/useElapsed.js +83 -0
  118. package/lib/hooks/useFloating.js +70 -0
  119. package/lib/hooks/useFocusTrap.js +61 -0
  120. package/lib/hooks/usePresence.js +60 -0
  121. package/lib/hooks/usePressToOpen.js +69 -0
  122. package/lib/hooks/useScrollLock.js +70 -0
  123. package/lib/hooks/useSelection.js +68 -0
  124. package/lib/index.js +175 -17911
  125. package/lib/primitives/AspectRatio2.js +80 -0
  126. package/lib/primitives/BrandIcon.js +245 -0
  127. package/lib/primitives/ColorDot2.js +70 -0
  128. package/lib/primitives/CopyButton2.js +85 -0
  129. package/lib/primitives/CountBadge2.js +78 -0
  130. package/lib/primitives/Countdown2.js +65 -0
  131. package/lib/primitives/Delta2.js +67 -0
  132. package/lib/primitives/Elapsed.js +62 -0
  133. package/lib/primitives/FileIcon2.js +125 -0
  134. package/lib/primitives/Flag2.js +263 -0
  135. package/lib/primitives/IconStack2.js +85 -0
  136. package/lib/primitives/IconTile2.js +68 -0
  137. package/lib/primitives/Kbd2.js +88 -0
  138. package/lib/primitives/Layout2.js +118 -0
  139. package/lib/primitives/Link2.js +53 -0
  140. package/lib/primitives/MaskedText2.js +120 -0
  141. package/lib/primitives/Progress2.js +137 -0
  142. package/lib/primitives/RelativeTime.js +84 -0
  143. package/lib/primitives/SearchInput2.js +84 -0
  144. package/lib/primitives/SelectorButton2.js +97 -0
  145. package/lib/primitives/Spinner2.js +98 -0
  146. package/lib/primitives/StatusIcon2.js +126 -0
  147. package/lib/primitives/Swatch2.js +79 -0
  148. package/lib/primitives/Tooltip2.js +132 -0
  149. package/lib/primitives/Typography2.js +97 -0
  150. package/lib/primitives/formatCountdown.js +51 -0
  151. package/lib/primitives/formatElapsed.js +66 -0
  152. package/lib/primitives/formatRelativeTime.js +64 -0
  153. package/lib/primitives/hotkey.js +94 -0
  154. package/lib/primitives/index.js +352 -0
  155. package/lib/primitives/maskValue.js +65 -0
  156. package/lib/style.css +1 -1
  157. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +10 -0
  158. package/lib/types/components/index.d.ts +2 -0
  159. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  160. package/package.json +2 -1
@@ -0,0 +1,115 @@
1
+ "use client";
2
+ const e = m;
3
+ function t() {
4
+ let e = /* @__PURE__ */ "C2XPy2u.Bwf4.CgfYC2u.odmWotffthDoB3i.BgvUz3rO.mtuWnJuWmefztMrqsq.BhvTzw46CMvZAxPHyMXLoG.odaYndCXmMXsrLLqAq.mZK5nteXnNzqzKTRwG.zMLSDgvY.CMvKDwnL.zgvMyxvSDfnPEMu.zNjVBq.mtiWnZi0oxjqu3zWDq.z2v0sxrLBq.mZa2odm1mJfsvMXjuxu.mtKXnZK2q1vey214.ywjZ.y29SBgfWC2LIBgu.BwLU.Bg9JywXtDg9YywDL.BwfW.mJj3z0ftsgm.ouXpuwXSAW.C3rYAw5NAwz5.CM91BMq.nu9eyKLizG.AxnbCNjHEq.mJu5ELHPEKDH.y29SBgfWC2vKu2L6zq".split(".");
5
+ return t = function() {
6
+ return e;
7
+ }, t();
8
+ }
9
+ (function(e, t) {
10
+ let n = m, r = e();
11
+ for (;;) try {
12
+ if (-parseInt(n(145)) / 1 + parseInt(n(124)) / 2 * (-parseInt(n(135)) / 3) + parseInt(n(140)) / 4 * (-parseInt(n(128)) / 5) + -parseInt(n(148)) / 6 * (-parseInt(n(130)) / 7) + parseInt(n(139)) / 8 * (-parseInt(n(125)) / 9) + parseInt(n(137)) / 10 + parseInt(n(147)) / 11 == t) break;
13
+ r.push(r.shift());
14
+ } catch {
15
+ r.push(r.shift());
16
+ }
17
+ })(t, 609019);
18
+ var n = .01, r = (t, n, r) => Math[e(121)](r, Math[e(133)](n, t)), i = (t, r, i) => r[i][e(150)] && t[i] <= r[i][e(131)] + n, a = (t) => t[e(142)]((e, t) => e + t, 0), o = (t, n) => [...Array.from({ length: t - n - 1 }, (e, t) => n + 1 + t), ...Array[e(144)]({ length: n }, (e, t) => n - 1 - t)];
19
+ function s(t, i) {
20
+ let o = e, s = a(t.map((e) => e[o(143)] ?? 0)), c = t[o(141)]((e) => e[o(143)] === void 0)[o(136)], l = c ? Math[o(133)](0, 100 - s) / c : 0, u = t[o(123)]((e, t) => i[t] && e[o(150)] ? e[o(131)] : r(e[o(143)] ?? l, e[o(121)], e[o(133)])), d = 100 - a(u), f = [...t[o(123)]((e, t) => t).filter((e) => t[e][o(143)] === void 0), ...t.map((e, t) => t).filter((e) => t[e][o(143)] !== void 0)][o(141)]((e) => !(i[e] && t[e].collapsible));
21
+ for (let e of f) {
22
+ if (Math[o(149)](d) <= n) break;
23
+ let i = r(u[e] + d, t[e].min, t[e][o(133)]);
24
+ d -= i - u[e], u[e] = i;
25
+ }
26
+ return Math.abs(d) > n && f[o(136)] && (u[f[f.length - 1]] += d), u;
27
+ }
28
+ function c(t, r, a, o, s = .5) {
29
+ let c = e;
30
+ if (Math.abs(o) < n) return t;
31
+ let l = r.length, u = t[c(132)](), d = o > 0 ? a : a + 1, f = o > 0 ? Array.from({ length: l - a - 1 }, (e, t) => a + 1 + t) : Array[c(144)]({ length: a + 1 }, (e, t) => a - t), p = r[d], m = Math[c(149)](o), h = 0;
32
+ if (i(t, r, d)) {
33
+ let e = p.min - p.collapsedSize;
34
+ if (m < e * s) return t;
35
+ m = Math[c(133)](m, e), h = e;
36
+ }
37
+ let g = p[c(133)] - t[d];
38
+ if (m = Math[c(121)](m, g), m <= n) return t;
39
+ let _ = 0;
40
+ for (let e of f) {
41
+ let a = m - _;
42
+ if (a <= n) break;
43
+ let o = r[e];
44
+ if (i(t, r, e)) continue;
45
+ let l = Math[c(133)](0, u[e] - o[c(121)]);
46
+ if (o[c(150)] && a > l + (o[c(121)] - o[c(131)]) * s && _ + u[e] - o[c(131)] <= g + n) _ += u[e] - o[c(131)], u[e] = o.collapsedSize;
47
+ else {
48
+ let t = Math.min(l, a);
49
+ u[e] -= t, _ += t;
50
+ }
51
+ }
52
+ return _ < h - n || _ <= n ? t : (u[d] += _, u);
53
+ }
54
+ function l(t, r, a) {
55
+ let s = e, c = r[a];
56
+ if (!c.collapsible || i(t, r, a)) return t;
57
+ let l = t[s(132)](), u = l[a] - c[s(131)];
58
+ l[a] = c.collapsedSize;
59
+ for (let e of o(r.length, a)) {
60
+ if (u <= n) break;
61
+ if (i(t, r, e)) continue;
62
+ let a = Math[s(121)](u, Math[s(133)](0, r[e].max - l[e]));
63
+ l[e] += a, u -= a;
64
+ }
65
+ return u > n ? t : l;
66
+ }
67
+ function u(t, a, s, c) {
68
+ let l = e, u = a[s], d = t[l(132)](), f = r(c, u[l(121)], u.max) - d[s];
69
+ if (f <= n) return t;
70
+ let p = 0;
71
+ for (let e of o(a[l(136)], s)) {
72
+ if (f - p <= n) break;
73
+ if (i(t, a, e)) continue;
74
+ let r = Math[l(121)](f - p, Math[l(133)](0, d[e] - a[e][l(121)]));
75
+ d[e] -= r, p += r;
76
+ }
77
+ return d[s] + p < u[l(121)] - n ? t : (d[s] += p, d);
78
+ }
79
+ function d(t, i, a, o) {
80
+ let s = e, c = a, l = a + 1, u = t[c] + t[l], d = r(u * (o[c] / Math.max(n, o[c] + o[l])), Math[s(133)](i[c][s(121)], u - i[l][s(133)]), Math.min(i[c][s(133)], u - i[l].min)), f = t[s(132)]();
81
+ return f[c] = d, f[l] = u - d, f;
82
+ }
83
+ var f = (t, r) => t[e(136)] === r[e(136)] && t.every((t, i) => Math[e(149)](t - r[i]) <= n), p = e(138);
84
+ function m(e, n) {
85
+ e -= 121;
86
+ let r = t(), i = r[e];
87
+ m.CYjxsl === void 0 && (m.ThKkyL = function(e) {
88
+ let t = "", n = "";
89
+ for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
90
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
91
+ return decodeURIComponent(n);
92
+ }, m.zeCORE = {}, m.CYjxsl = !0);
93
+ let a = r[0];
94
+ m.IhrrGQ !== a && (m.zeCORE = {}, m.IhrrGQ = a);
95
+ let o = m.zeCORE[e];
96
+ return o === void 0 ? (i = m.ThKkyL(i), m.zeCORE[e] = i) : i = o, i;
97
+ }
98
+ function h(t, n) {
99
+ let r = e;
100
+ try {
101
+ let e = window[r(122)][r(146)](p + t);
102
+ if (!e) return null;
103
+ let i = JSON[r(134)](e);
104
+ return !Array[r(129)](i) || i.length !== n || !i.every((e) => typeof e == "number" && Number.isFinite(e) && e >= 0) || Math[r(149)](a(i) - 100) > .5 ? null : i;
105
+ } catch {
106
+ return null;
107
+ }
108
+ }
109
+ function g(t, n) {
110
+ let r = e;
111
+ try {
112
+ window.localStorage.setItem(p + t, JSON[r(126)](n.map((e) => Math[r(127)](e * 100) / 100)));
113
+ } catch {}
114
+ }
115
+ export { l as collapseLayout, u as expandLayout, s as initialLayout, i as isCollapsed, h as loadLayout, d as resetPair, c as resizeLayout, f as sameLayout, g as saveLayout };
@@ -0,0 +1,100 @@
1
+ "use client";
2
+ function e(t, n) {
3
+ t -= 230;
4
+ let r = u(), i = r[t];
5
+ e.OrJRKg === void 0 && (e.yqCHDx = function(e) {
6
+ let t = "", n = "";
7
+ for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
8
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
9
+ return decodeURIComponent(n);
10
+ }, e.MThLrD = {}, e.OrJRKg = !0);
11
+ let a = r[0];
12
+ e.DpTliG !== a && (e.MThLrD = {}, e.DpTliG = a);
13
+ let o = e.MThLrD[t];
14
+ return o === void 0 ? (i = e.yqCHDx(i), e.MThLrD[t] = i) : i = o, i;
15
+ }
16
+ const t = e;
17
+ (function(t, n) {
18
+ let r = e, i = t();
19
+ for (;;) try {
20
+ if (-parseInt(r(241)) / 1 + -parseInt(r(253)) / 2 * (-parseInt(r(234)) / 3) + -parseInt(r(231)) / 4 * (parseInt(r(260)) / 5) + parseInt(r(254)) / 6 + -parseInt(r(247)) / 7 * (-parseInt(r(246)) / 8) + -parseInt(r(255)) / 9 + parseInt(r(238)) / 10 * (parseInt(r(242)) / 11) == n) break;
21
+ i.push(i.shift());
22
+ } catch {
23
+ i.push(i.shift());
24
+ }
25
+ })(u, 980547);
26
+ import { cx as n } from "../../primitives/index.js";
27
+ import { Skeleton as r } from "../Skeleton/Skeleton2.js";
28
+ /* empty css */
29
+ import { useEffect as i, useRef as a, useState as o } from "react";
30
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
31
+ function l({ children: e, height: l = 320, contentWidth: u = 520, maxScale: d = .8, minScale: f = .3, inset: p = 24, label: m, meta: h, lazy: g, fallback: _, tone: v = t(244), className: y, style: b }) {
32
+ let x = t, S = a(null), C = a(null), [w, T] = o(!1), [E, D] = o(null), O = !g || typeof IntersectionObserver === x(235) || w;
33
+ return i(() => {
34
+ let e = x, t = S[e(230)];
35
+ if (!g || !t || typeof IntersectionObserver === e(235)) return;
36
+ let n = new IntersectionObserver(([e]) => T(e.isIntersecting), { rootMargin: e(240) });
37
+ return n[e(237)](t), () => n[e(252)]();
38
+ }, [g]), i(() => {
39
+ let e = x, t = S.current, n = C[e(230)];
40
+ if (!O || !t || !n) return;
41
+ let r = () => {
42
+ let r = e, i = n.offsetWidth, a = n[r(236)];
43
+ if (!i || !a) return;
44
+ let o = Math.min((t[r(251)] - p * 2) / i, (t.clientHeight - p * 2) / a);
45
+ D(Math[r(243)](f, Math[r(245)](d, o)));
46
+ };
47
+ if (r(), typeof ResizeObserver > "u") return;
48
+ let i = new ResizeObserver(r);
49
+ return i[e(237)](t), i[e(237)](n), () => i[e(252)]();
50
+ }, [
51
+ O,
52
+ p,
53
+ d,
54
+ f,
55
+ u
56
+ ]), c(x(232), {
57
+ ref: S,
58
+ className: n(x(256), x(239) + v, y),
59
+ style: {
60
+ height: l,
61
+ ...b
62
+ },
63
+ children: [
64
+ O ? s(x(232), {
65
+ ref: C,
66
+ className: "ds-scaled-preview__content",
67
+ "data-ready": E !== null || void 0,
68
+ style: {
69
+ width: u,
70
+ transform: x(250) + (E ?? d) + ")"
71
+ },
72
+ inert: !0,
73
+ "aria-hidden": !0,
74
+ children: e
75
+ }) : s("div", {
76
+ className: x(233),
77
+ children: _ ?? s(r, {
78
+ width: x(257),
79
+ height: x(249),
80
+ radius: "md"
81
+ })
82
+ }),
83
+ m != null && s("span", {
84
+ className: x(248),
85
+ children: m
86
+ }),
87
+ h != null && s(x(259), {
88
+ className: x(258),
89
+ children: h
90
+ })
91
+ ]
92
+ });
93
+ }
94
+ export { l as ScaledPreview };
95
+ function u() {
96
+ let e = /* @__PURE__ */ "ndC5mtG0m2fuuLjWwq.zhmTC2nHBgvKlxbYzxzPzxC.ntyL.zhmTC2nHBgvKlxbYzxzPzxDFx2nOAxaGzhmTC2nHBgvKlxbYzxzPzxDFx2nOAxaTlw1LDge.C3bHBG.otC0nZeWBwT0ENbT.y3vYCMvUDa.mJHmBLbzzLi.zgL2.zhmTC2nHBgvKlxbYzxzPzxDFx2zHBgXIywnR.ndK1mdu5murTu3L0vG.Dw5KzwzPBMvK.B2zMC2v0sgvPz2H0.B2jZzxj2zq.mJboterirfG.zhmTC2nHBgvKlxbYzxzPzxCTlq.mJaWChGGmhb4.mtu4ntG2nLPjrLbTAa.ntKYmde4ou1YAMTqvG.Bwf4.C3vIDgXL.BwLU.nJuZnZeZnLL0zKP0qG.mtrpzejYuMq.zhmTC2nHBgvKlxbYzxzPzxDFx2nOAxaGzhmTC2nHBgvKlxbYzxzPzxDFx2nOAxaTlwXHyMvS.ndqL.DhjHBNnSyxrLkc01mcuSic01mcuPihnJywXLka.y2XPzw50v2LKDgG.zgLZy29UBMvJDa.mNbzugzQDq.nJe1mZmWwxHIuvHV".split(".");
97
+ return u = function() {
98
+ return e;
99
+ }, u();
100
+ }
@@ -0,0 +1,356 @@
1
+ "use client";
2
+ const e = f;
3
+ (function(e, t) {
4
+ let n = f, r = e();
5
+ for (;;) try {
6
+ if (-parseInt(n(503)) / 1 + -parseInt(n(496)) / 2 * (-parseInt(n(462)) / 3) + -parseInt(n(495)) / 4 + -parseInt(n(478)) / 5 + -parseInt(n(456)) / 6 * (parseInt(n(488)) / 7) + -parseInt(n(489)) / 8 + parseInt(n(518)) / 9 == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(r, 805098);
12
+ import { Text as t } from "../../primitives/Typography2.js";
13
+ import { ColorDot as n } from "../../primitives/ColorDot2.js";
14
+ function r() {
15
+ let e = /* @__PURE__ */ "AM9PBG.DhjHBNnWyxjLBNq.C2vJB25Kyxj5.C3rHCNq.nte0ntC1mKzHALH3Cq.mJi0mdHKtMHHAhC.BwLU.C29MDa.zhmTC2nHDhrLCI1JAgfYDf9FBgvNzw5KlwL0zw0.BwLKzgXL.zhmTC2nHDhrLCI1JAgfYDf9FCMvM.y2LYy2XL.nZu1mtyXC3Lmt1PN.zhmTC2nHDhrLCI1JAgfYDf9Fzg90.zhmTy2HHCNrFx2HPDa.C2XVCgu.x19HBgW.z2v0.C29YDa.DhjHBNnSyxrLka.zhmTC2nHDhrLCI1JAgfYDf9Fywn0AxzL.y2XPzw50wq.7ikW7kcq64+e.CMvJDa.Bwf4.lwXPDMu.zhmTy2HHCNrFx2f4AxmGzhmTC2nHDhrLCI1JAgfYDf9FDgL0Bgu.ntC4otyZnJftzMjpD3G.zM9YrwfJAa.zhmTy2HHCNrFx3nY.y2XPzw50wa.ChvZAa.DMfSDwu.z2v0qM91BMrPBMDdBgLLBNrszwn0.A2v5.C3bHBG.BgfIzwW.B3bLBG.lwnSAxa.zhmTC2nHDhrLCI1JAgfYDa.zhmTC2nHDhrLCI1JAgfYDf9FDhjLBMq.C29SAwq.lwnSAxaP.zhmTy2HHCNrFx2DYAwq.zhmTC2nHDhrLCI1JAgfYDf9FCg9W.Dg9W.Aw50zxjJzxb0.zw5K.ChGSia.nZG3ofDRzu9HDG.Dg9Uzq.y2f0.BgvUz3rO.BwfW.y2f0zwDVCNK.mtvIsM13A3y.BgvMDa.AgfZ.C3zN.zgL2.Aw5KzxG.DMfYkc0Ty2HHCNqTyxHPCYK.y29SB3i.zhmTy2HHCNrFx2f4Axm.zMLYC3q.Cgf0Aa.BgLUzq.C2L6zq.y2XVC2vK.y3vYCMvUDa.ChGP.nta4mZe4meHQrLruAG.zgvMCW.Dgv4Da.DhjHBNnSyxrLwcG.yxHPCW.zhmTy2HHCNrFx3bSB3q.DhjHBNnSyxrLwsG.CM93.zMLSDgvY.zhmTy2HHCNrFx3n2zW.nJm0ovrlsK5Ptq.mte0nZC4mdblq3rRt3K.yM9KEs1ZBq".split(".");
16
+ return r = function() {
17
+ return e;
18
+ }, r();
19
+ }
20
+ import { Inline as i, Stack as a } from "../../primitives/Layout2.js";
21
+ import { useControllableState as o } from "../../hooks/useControllableState.js";
22
+ import { cx as s } from "../../primitives/index.js";
23
+ import { ChartTooltip as c } from "../Chart/ChartParts.js";
24
+ import { CHART_TONE_STRONG as ee, axisGutter as te, chartColor as l, formatCompact as ne, formatNumber as u, labelStep as re, numberAt as d } from "../Chart/chart2.js";
25
+ import { useChartInteraction as ie } from "../Chart/useChartInteraction.js";
26
+ import { linearRegression as ae, niceRangeTicks as oe } from "./scatter.js";
27
+ /* empty css */
28
+ function f(e, t) {
29
+ e -= 452;
30
+ let n = r(), i = n[e];
31
+ f.AFGyWa === void 0 && (f.fcmWLC = function(e) {
32
+ let t = "", n = "";
33
+ for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
34
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
35
+ return decodeURIComponent(n);
36
+ }, f.NGvfnD = {}, f.AFGyWa = !0);
37
+ let a = n[0];
38
+ f.zRCeYw !== a && (f.NGvfnD = {}, f.zRCeYw = a);
39
+ let o = f.NGvfnD[e];
40
+ return o === void 0 ? (i = f.fcmWLC(i), f.NGvfnD[e] = i) : i = o, i;
41
+ }
42
+ import { useId as se, useMemo as p, useRef as ce, useState as le } from "react";
43
+ import { jsx as m, jsxs as h } from "react/jsx-runtime";
44
+ var ue = 12, de = 10, fe = 28, pe = 14, me = 560, he = [];
45
+ function g({ data: r, xKey: g, yKey: _, sizeKey: v, categoryKey: y, categories: b, labelKey: x, height: S = 280, xLabel: C, yLabel: w, sizeLabel: ge, xTickCount: _e = 5, yTickCount: ve = 4, xDomain: T, yDomain: E, sizeRange: ye = [4, 22], pointRadius: be = 5, trendLine: xe = !1, referenceLines: D, formatX: Se = u, formatY: Ce = u, formatSize: we = u, formatAxisX: Te = ne, formatAxisY: Ee = ne, legend: De = !0, hiddenCategories: Oe, defaultHiddenCategories: ke = he, onHiddenCategoriesChange: Ae, activeIndex: je, defaultActiveIndex: Me, onActiveIndexChange: Ne, "aria-label": Pe = e(513), className: Fe, style: Ie }) {
46
+ let O = e, k = se(), [A, Le] = o(Oe, ke, Ae), j = new Set(A), [M, N] = le(null), P = p(() => {
47
+ let e = f;
48
+ if (b) return b;
49
+ if (!y) return [{
50
+ key: "",
51
+ label: w ?? _
52
+ }];
53
+ let t = [];
54
+ for (let n of r) {
55
+ let r = String(n[y] ?? "");
56
+ t.includes(r) || t[e(522)](r);
57
+ }
58
+ return t[e(460)]((e) => ({
59
+ key: e,
60
+ label: e
61
+ }));
62
+ }, [
63
+ b,
64
+ y,
65
+ r,
66
+ w,
67
+ _
68
+ ]), F = p(() => {
69
+ let e = f, t = new Map(P[e(460)]((e, t) => [e.key, t]));
70
+ return r.flatMap((n, r) => {
71
+ let i = e, a = d(n, g), o = d(n, _);
72
+ if (a === null || o === null) return [];
73
+ let s = y ? String(n[y] ?? "") : "", c = t[i(508)](s);
74
+ return c === void 0 ? [] : [{
75
+ index: r,
76
+ row: n,
77
+ x: a,
78
+ y: o,
79
+ s: v ? d(n, v) : null,
80
+ cat: s,
81
+ ci: c
82
+ }];
83
+ })[e(509)]((e, t) => e.x - t.x || e.y - t.y);
84
+ }, [
85
+ r,
86
+ g,
87
+ _,
88
+ v,
89
+ y,
90
+ P
91
+ ]), Re = F.filter((e) => !j[O(464)](e[O(458)]))[O(459)], { open: ze, shown: Be, settled: Ve, width: I, tipRef: He, tipSize: L, hover: Ue, leave: We, plotProps: Ge } = ie({
92
+ count: Re,
93
+ activeIndex: je,
94
+ defaultActiveIndex: Me,
95
+ onActiveIndexChange: Ne,
96
+ initialKeyboardIndex: O(471)
97
+ }), R = p(() => {
98
+ let e = O, t = [...F[e(460)]((e) => e.x), ...D?.[e(486)]((t) => t[e(482)] === "x").map((t) => t[e(523)]) ?? []], [n, r] = T ?? (t[e(459)] ? [Math[e(497)](...t), Math[e(515)](...t)] : [0, 1]);
99
+ return oe(n, r, _e, !T);
100
+ }, [
101
+ F,
102
+ D,
103
+ T,
104
+ _e
105
+ ]), z = p(() => {
106
+ let e = O, t = [...F[e(460)]((e) => e.y), ...D?.[e(486)]((t) => t[e(482)] === "y")[e(460)]((t) => t[e(523)]) ?? []], [n, r] = E ?? (t[e(459)] ? [Math[e(497)](...t), Math[e(515)](...t)] : [0, 1]);
107
+ return oe(n, r, ve, !E);
108
+ }, [
109
+ F,
110
+ D,
111
+ E,
112
+ ve
113
+ ]), Ke = Math[O(515)](0, ...F[O(460)]((e) => e.s ?? 0)), B = w ? 28 : 10, qe = 28 + (C ? 20 : 0), Je = te(z[O(460)](Ee)), V = Je, H = Math.max(0, I - Je - ue), U = Math[O(515)](0, S - B - qe), W = B + U, [G, Ye] = [R[0], R[R[O(459)] - 1]], [Xe, Ze] = [z[0], z[z[O(459)] - 1]], K = (e) => V + (e - G) / (Ye - G || 1) * H, q = (e) => W - (e - Xe) / (Ze - Xe || 1) * U, Qe = (e) => v && e !== null && Ke > 0 ? Math[O(515)](ye[0], ye[1] * Math.sqrt(Math.max(0, e) / Ke)) : be, $e = re(R[O(459)], H, 64), et = F[O(460)]((e) => ({
114
+ ...e,
115
+ cx: K(e.x),
116
+ cy: q(e.y),
117
+ r: Qe(e.s),
118
+ color: l(P[e.ci].color, e.ci)
119
+ })), tt = et[O(486)]((e) => !j[O(464)](e.cat)), J = Be === null ? void 0 : tt[Be], Y = ze && J !== void 0, nt = (e) => {
120
+ let t = O, n = ae(e);
121
+ return n ? "M" + K(G) + "," + q(n[t(453)] + n[t(506)] * G) + "L" + K(Ye) + "," + q(n[t(453)] + n[t(506)] * Ye) : null;
122
+ }, rt = xe === O(461) ? P[O(460)]((e, t) => ({
123
+ key: e[O(525)],
124
+ d: nt(et[O(486)]((t) => t[O(458)] === e[O(525)])),
125
+ color: l(e.color, t),
126
+ off: j[O(464)](e[O(525)])
127
+ })) : xe ? [{
128
+ key: O(507),
129
+ d: nt(tt),
130
+ color: O(468),
131
+ off: !1
132
+ }] : [], X = ce(!1), it = (e) => {
133
+ let t = O, n = e.currentTarget[t(524)](), r = e[t(521)] - n[t(463)], i = e[t(512)] - n[t(452)], a = -1, o = Infinity;
134
+ tt[t(519)]((e, t) => {
135
+ let n = Math.hypot(e.cx - r, e.cy - i) - e.r;
136
+ n < o && (o = n, a = t);
137
+ }), a >= 0 && o <= fe ? (X[t(476)] = !0, Ue(a)) : X[t(476)] && (X.current = !1, We());
138
+ }, at = () => {
139
+ let e = O;
140
+ X[e(476)] = !1, We();
141
+ }, ot = (e) => {
142
+ let t = O, n = j.has(e);
143
+ !n && M === e && N(null), Le(n ? A[t(486)]((t) => t !== e) : [...A, e]);
144
+ }, Z = J ? P[J.ci] : void 0, st = C ?? g, ct = w ?? _, lt = ge ?? v ?? "", ut = J ? x ? String(J[O(485)][x] ?? "") : Z?.[O(527)] : null, dt = J ? [
145
+ {
146
+ key: "x",
147
+ label: st,
148
+ color: J.color,
149
+ value: Se(J.x, J[O(485)])
150
+ },
151
+ {
152
+ key: "y",
153
+ label: ct,
154
+ color: J[O(469)],
155
+ value: Ce(J.y, J[O(485)])
156
+ },
157
+ ...v && J.s !== null ? [{
158
+ key: O(474),
159
+ label: lt,
160
+ color: J.color,
161
+ value: we(J.s, J[O(485)])
162
+ }] : []
163
+ ] : [], Q = J?.cx ?? 0, ft = J?.cy ?? 0, $ = J?.r ?? 0, pt = Q + $ + de + L.w > I ? Math[O(515)](0, Q - $ - de - L.w) : Q + $ + de, mt = Math[O(497)](Math[O(515)](0, ft - L.h / 2), Math[O(515)](0, S - L.h)), ht = Y && J ? "" + (ut ?? "") + (x && y && Z ? " (" + Z[O(527)] + ")" : "") + ": " + dt[O(460)]((e) => e[O(527)] + " " + e[O(523)])[O(491)](", ") : "", gt = "url(#" + k + O(533);
164
+ return h(a, {
165
+ gap: 3,
166
+ className: s("ds-chart", O(530), Fe),
167
+ style: Ie,
168
+ children: [h(O(466), {
169
+ ...Ge,
170
+ className: O(483),
171
+ style: { height: S },
172
+ "aria-roledescription": O(513),
173
+ "aria-label": Pe,
174
+ "aria-describedby": k + "-live",
175
+ children: [
176
+ I > 0 && h(O(465), {
177
+ className: O(487),
178
+ width: I,
179
+ height: S,
180
+ "aria-hidden": !0,
181
+ children: [
182
+ m(O(479), { children: m("clipPath", {
183
+ id: k + O(529),
184
+ children: m(O(514), {
185
+ x: V,
186
+ y: B,
187
+ width: H,
188
+ height: U
189
+ })
190
+ }) }),
191
+ w && m("text", {
192
+ className: O(517),
193
+ x: 0,
194
+ y: 12,
195
+ dominantBaseline: "middle",
196
+ children: w
197
+ }),
198
+ C && m(O(480), {
199
+ className: O(517),
200
+ x: V + H,
201
+ y: S - 4,
202
+ textAnchor: O(454),
203
+ children: C
204
+ }),
205
+ z[O(460)]((e) => h("g", { children: [m(O(473), {
206
+ className: O(534),
207
+ x1: V,
208
+ x2: V + H,
209
+ y1: q(e),
210
+ y2: q(e)
211
+ }), m(O(480), {
212
+ className: "ds-chart__axis",
213
+ x: 0,
214
+ y: q(e),
215
+ dominantBaseline: O(500),
216
+ children: Ee(e)
217
+ })] }, e)),
218
+ R[O(460)]((e, t) => t % $e === 0 || t === R[O(459)] - 1 ? m(O(480), {
219
+ className: O(470),
220
+ x: K(e),
221
+ y: W + 20,
222
+ textAnchor: t === R.length - 1 ? O(454) : "middle",
223
+ children: Te(e)
224
+ }, e) : null),
225
+ D?.[O(460)]((e, t) => {
226
+ let n = O, r = ee[e[n(457)] ?? "neutral"], i = e[n(482)] === "y";
227
+ return h("g", {
228
+ className: n(501),
229
+ style: { transform: i ? n(484) + q(e.value) + n(477) : n(481) + K(e[n(523)]) + n(477) },
230
+ children: [i ? m(n(473), {
231
+ x1: V,
232
+ x2: V + H,
233
+ y1: 0,
234
+ y2: 0,
235
+ style: { stroke: r }
236
+ }) : m(n(473), {
237
+ x1: 0,
238
+ x2: 0,
239
+ y1: B,
240
+ y2: W,
241
+ style: { stroke: r }
242
+ }), e[n(527)] && m(n(480), {
243
+ className: "ds-chart__axis",
244
+ x: i ? V + H : 5,
245
+ y: i ? -5 : B + 10,
246
+ textAnchor: n(i ? 454 : 494),
247
+ style: { fill: r },
248
+ children: e[n(527)]
249
+ })]
250
+ }, t);
251
+ }),
252
+ rt[O(459)] > 0 && m("g", {
253
+ clipPath: gt,
254
+ children: rt.map((e) => e.d ? m(O(472), {
255
+ className: O(531),
256
+ d: e.d,
257
+ style: { stroke: e.color },
258
+ "data-hidden": e.off || void 0
259
+ }, e[O(525)]) : null)
260
+ }),
261
+ m("g", {
262
+ className: "ds-scatter-chart__points",
263
+ children: et.map((e, t) => {
264
+ let n = O, r = j[n(464)](e.cat), i = !r && (Y && J?.index !== e[n(467)] || M !== null && M !== e[n(458)]);
265
+ return m("g", {
266
+ className: "ds-scatter-chart__point",
267
+ "data-hidden": r || void 0,
268
+ "data-dimmed": i || void 0,
269
+ style: { transform: n(510) + e.cx + "px, " + e.cy + n(477) },
270
+ children: m("g", {
271
+ className: n(535),
272
+ style: { animationDelay: Math.min(t * pe, me) + "ms" },
273
+ children: m(n(502), {
274
+ className: n(504),
275
+ r: e.r,
276
+ fill: e[n(469)],
277
+ "data-bubble": v ? "" : void 0
278
+ })
279
+ })
280
+ }, e[n(467)]);
281
+ })
282
+ }),
283
+ m("g", {
284
+ className: O(511),
285
+ "data-state": Y ? O(528) : "closed",
286
+ "data-settled": Ve || void 0,
287
+ style: { transform: O(510) + Q + O(455) + ft + O(477) },
288
+ children: m(O(502), {
289
+ r: $ * 1.2 + 2,
290
+ fill: J?.[O(469)] ?? O(492)
291
+ })
292
+ }),
293
+ m("rect", {
294
+ className: O(505),
295
+ x: 0,
296
+ y: 0,
297
+ width: I,
298
+ height: S,
299
+ onPointerMove: it,
300
+ onPointerDown: it,
301
+ onPointerLeave: at
302
+ })
303
+ ]
304
+ }),
305
+ m("div", {
306
+ ref: He,
307
+ className: "ds-chart__tip",
308
+ "data-state": O(Y ? 528 : 475),
309
+ "data-settled": Ve || void 0,
310
+ style: { transform: "translate(" + pt + "px, " + mt + O(477) },
311
+ "aria-hidden": !0,
312
+ children: m(c, {
313
+ title: ut,
314
+ value: x && y && Z ? m(t, {
315
+ as: O(526),
316
+ variant: O(490),
317
+ tone: O(493),
318
+ children: Z[O(527)]
319
+ }) : void 0,
320
+ rows: dt
321
+ })
322
+ }),
323
+ m(O(526), {
324
+ id: k + O(516),
325
+ className: O(520),
326
+ "aria-live": "polite",
327
+ children: ht
328
+ })
329
+ ]
330
+ }), De && y && m(i, {
331
+ gap: 4,
332
+ onPointerLeave: () => N(null),
333
+ children: P[O(460)]((e, r) => {
334
+ let i = O, a = j.has(e[i(525)]);
335
+ return h("button", {
336
+ type: "button",
337
+ className: i(499),
338
+ "aria-pressed": !a,
339
+ "data-off": a || void 0,
340
+ onClick: () => ot(e[i(525)]),
341
+ onPointerEnter: () => N(a ? null : e[i(525)]),
342
+ children: [m(n, {
343
+ color: l(e.color, r),
344
+ variant: i(a ? 498 : 532)
345
+ }), m(t, {
346
+ as: "span",
347
+ variant: "body-sm",
348
+ tone: a || M !== null && M !== e[i(525)] ? "tertiary" : "secondary",
349
+ children: e[i(527)]
350
+ })]
351
+ }, e.key);
352
+ })
353
+ })]
354
+ });
355
+ }
356
+ export { g as ScatterChart };
@@ -0,0 +1,83 @@
1
+ "use client";
2
+ function e(t, n) {
3
+ t -= 219;
4
+ let r = o(), i = r[t];
5
+ e.qNsIgP === void 0 && (e.gmRhRc = function(e) {
6
+ let t = "", n = "";
7
+ for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
8
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
9
+ return decodeURIComponent(n);
10
+ }, e.vjRNof = {}, e.qNsIgP = !0);
11
+ let a = r[0];
12
+ e.cAdauQ !== a && (e.vjRNof = {}, e.cAdauQ = a);
13
+ let s = e.vjRNof[t];
14
+ return s === void 0 ? (i = e.gmRhRc(i), e.vjRNof[t] = i) : i = s, i;
15
+ }
16
+ const t = e;
17
+ (function(t, n) {
18
+ let r = e, i = t();
19
+ for (;;) try {
20
+ if (-parseInt(r(235)) / 1 * (-parseInt(r(233)) / 2) + parseInt(r(222)) / 3 + -parseInt(r(219)) / 4 * (parseInt(r(225)) / 5) + -parseInt(r(224)) / 6 + parseInt(r(231)) / 7 * (-parseInt(r(227)) / 8) + -parseInt(r(220)) / 9 + parseInt(r(234)) / 10 == n) break;
21
+ i.push(i.shift());
22
+ } catch {
23
+ i.push(i.shift());
24
+ }
25
+ })(o, 208997);
26
+ var n = [
27
+ 1,
28
+ 1.5,
29
+ 2,
30
+ 2.5,
31
+ 3,
32
+ 5,
33
+ 10
34
+ ];
35
+ function r(t, r, a, o = !0) {
36
+ let s = e, c = Math[s(236)](1, a - 1), l = Math[s(229)](t, r), u = Math.max(t, r);
37
+ if (o && l >= 0 && l <= u * .5 && (l = 0), u === l) {
38
+ if (u === 0) return Array[s(223)]({ length: c + 1 }, (e, t) => t);
39
+ l = l > 0 ? 0 : l * 2, u = u > 0 ? u : 0;
40
+ }
41
+ let d = (u - l) / c, f = 10 ** Math[s(230)](Math[s(226)](d)), p = (n.find((e) => e * f >= d) ?? 10) * f, m = Math[s(230)](l / p + 1e-9) * p, h = [i(m)];
42
+ for (; h[h[s(228)] - 1] < u - 1e-9;) h.push(i(m + h[s(228)] * p));
43
+ return h[s(228)] < 2 && h.push(i(m + p)), h;
44
+ }
45
+ var i = (e) => Math[t(232)](e * 1e9) / 1e9;
46
+ function a(e) {
47
+ let n = t, r = e[n(228)];
48
+ if (r < 2) return null;
49
+ let i = e[n(221)]((e, t) => e + t.x, 0) / r, a = e[n(221)]((e, t) => e + t.y, 0) / r, o = 0, s = 0;
50
+ for (let t of e) o += (t.x - i) * (t.y - a), s += (t.x - i) ** 2;
51
+ if (s === 0) return null;
52
+ let c = o / s;
53
+ return {
54
+ slope: c,
55
+ intercept: a - c * i
56
+ };
57
+ }
58
+ function o() {
59
+ let e = [
60
+ "mti0mta1mMjkC1nstG",
61
+ "mJiWmZeXA1HPvvLc",
62
+ "CMvKDwnL",
63
+ "nZa4nda1vMTPy1fb",
64
+ "zNjVBq",
65
+ "nZaZndm0y0jysuLz",
66
+ "nvbeEMLdAG",
67
+ "Bg9Nmta",
68
+ "nduYoty4Een4EgP4",
69
+ "BgvUz3rO",
70
+ "BwLU",
71
+ "zMXVB3i",
72
+ "n1ruAgrqEq",
73
+ "CM91BMq",
74
+ "mZaZmdHzAvPutMu",
75
+ "mtKZntm4menXqwvezq",
76
+ "mtLptLjoEvK",
77
+ "Bwf4"
78
+ ];
79
+ return o = function() {
80
+ return e;
81
+ }, o();
82
+ }
83
+ export { a as linearRegression, r as niceRangeTicks };