@iamfiro/design 0.3.0 → 0.3.2

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 (156) hide show
  1. package/agents/avatar/AGENTS.md +29 -1
  2. package/agents/tooltip/AGENTS.md +1 -1
  3. package/lib/components/Accordion/Accordion2.js +76 -76
  4. package/lib/components/ActionBar/ActionBar2.js +43 -43
  5. package/lib/components/Alert/Alert2.js +46 -46
  6. package/lib/components/AppShell/AppShell2.js +58 -58
  7. package/lib/components/AreaChart/AreaChart.js +39 -40
  8. package/lib/components/BarChart/BarChart2.js +169 -169
  9. package/lib/components/BarList/BarList2.js +99 -99
  10. package/lib/components/Breadcrumb/Breadcrumb2.js +65 -66
  11. package/lib/components/Calendar/Calendar2.js +172 -171
  12. package/lib/components/Calendar/DatePicker2.js +101 -102
  13. package/lib/components/Calendar/date.js +71 -71
  14. package/lib/components/Card/Card2.js +55 -56
  15. package/lib/components/CardFrame/CardFrame2.js +52 -52
  16. package/lib/components/Chart/ChartParts.js +90 -90
  17. package/lib/components/Chart/chart2.js +52 -52
  18. package/lib/components/Chart/useChartInteraction.js +44 -44
  19. package/lib/components/ChatBubble/ChatBubble2.js +112 -112
  20. package/lib/components/ChatBubble/formatChatTime.js +44 -42
  21. package/lib/components/ChatComposer/ChatComposer2.js +94 -94
  22. package/lib/components/CodeBlock/CodeBlock2.js +66 -66
  23. package/lib/components/CodeBlock/highlight.js +67 -70
  24. package/lib/components/ColorPicker/ColorPicker2.js +404 -405
  25. package/lib/components/ColorPicker/color.js +81 -81
  26. package/lib/components/ColorPicker/presets.js +44 -43
  27. package/lib/components/Combobox/Combobox2.js +128 -128
  28. package/lib/components/CommandMenu/CommandMenu.js +137 -137
  29. package/lib/components/Comment/Comment2.js +55 -80
  30. package/lib/components/ContextMenu/ContextMenu2.js +93 -94
  31. package/lib/components/DataGrid/DataGrid2.js +1181 -1180
  32. package/lib/components/DataGrid/GridPopover.js +112 -112
  33. package/lib/components/DataGrid/anchor.js +23 -25
  34. package/lib/components/DataGrid/model.js +274 -275
  35. package/lib/components/DataGrid/panels.js +423 -423
  36. package/lib/components/DataGrid/typeMeta.js +21 -22
  37. package/lib/components/DataGrid/types.js +38 -37
  38. package/lib/components/DescriptionList/DescriptionList2.js +107 -107
  39. package/lib/components/Dialog/AlertDialog.js +53 -53
  40. package/lib/components/Dialog/Dialog2.js +71 -70
  41. package/lib/components/Dialog/modal.js +59 -58
  42. package/lib/components/Drawer/Drawer2.js +123 -124
  43. package/lib/components/DropdownMenu/DropdownMenu2.js +198 -200
  44. package/lib/components/DropdownMenu/menuCore.js +46 -47
  45. package/lib/components/Dropzone/Dropzone2.js +77 -77
  46. package/lib/components/EmptyState/EmptyState2.js +57 -56
  47. package/lib/components/FileChip/FileChip2.js +71 -71
  48. package/lib/components/FileUpload/FileUpload.js +119 -119
  49. package/lib/components/FilterChips/FilterChips2.js +61 -61
  50. package/lib/components/FunnelChart/FunnelChart2.js +141 -141
  51. package/lib/components/FunnelChart/funnel.js +51 -51
  52. package/lib/components/Highlight/Highlight2.js +54 -54
  53. package/lib/components/HoverCard/HoverCard.js +108 -83
  54. package/lib/components/InlineDiff/InlineDiff2.js +126 -126
  55. package/lib/components/InlineDiff/diff.js +82 -82
  56. package/lib/components/InlineDiff/useDiffReview.js +62 -60
  57. package/lib/components/Kanban/Kanban2.js +382 -382
  58. package/lib/components/Kanban/KanbanCard.js +92 -92
  59. package/lib/components/Kanban/move.js +45 -49
  60. package/lib/components/LineChart/LineChart2.js +207 -207
  61. package/lib/components/List/List2.js +71 -71
  62. package/lib/components/Listbox/Listbox2.js +115 -115
  63. package/lib/components/Marker/Marker2.js +67 -60
  64. package/lib/components/Menubar/Menubar2.js +130 -133
  65. package/lib/components/MultiSelect/MultiSelect2.js +104 -104
  66. package/lib/components/NavigationMenu/NavigationMenu2.js +261 -262
  67. package/lib/components/NoticeStack/NoticeStack2.js +105 -105
  68. package/lib/components/NumberStepper/NumberStepper2.js +67 -67
  69. package/lib/components/OtpInput/OtpInput2.js +66 -67
  70. package/lib/components/Pagination/Pagination2.js +90 -90
  71. package/lib/components/Pagination/paginationRange.js +24 -24
  72. package/lib/components/PhoneInput/PhoneInput.js +74 -74
  73. package/lib/components/PieChart/PieChart2.js +119 -119
  74. package/lib/components/PieChart/arc.js +63 -42
  75. package/lib/components/PieChart/useArcTween.js +56 -54
  76. package/lib/components/Popover/Popover2.js +61 -61
  77. package/lib/components/ProgressTracker/ProgressTracker2.js +127 -127
  78. package/lib/components/Rating/Rating2.js +81 -81
  79. package/lib/components/Resizable/Resizable2.js +112 -110
  80. package/lib/components/Resizable/layout.js +50 -50
  81. package/lib/components/ScaledPreview/ScaledPreview2.js +49 -50
  82. package/lib/components/ScatterChart/ScatterChart2.js +226 -227
  83. package/lib/components/ScatterChart/scatter.js +59 -57
  84. package/lib/components/ScrollArea/ScrollArea2.js +112 -112
  85. package/lib/components/Select/Select2.js +79 -79
  86. package/lib/components/Sidebar/Sidebar2.js +79 -79
  87. package/lib/components/Skeleton/Skeleton2.js +68 -68
  88. package/lib/components/Slider/Slider2.js +78 -77
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +65 -66
  90. package/lib/components/SparkChart/SparkChart2.js +146 -145
  91. package/lib/components/SparkChart/spark.js +41 -67
  92. package/lib/components/Sparkbar/Sparkbar2.js +61 -60
  93. package/lib/components/SplitView/SplitView2.js +53 -53
  94. package/lib/components/Stat/Stat2.js +94 -94
  95. package/lib/components/StepList/StepList2.js +70 -70
  96. package/lib/components/Table/Table2.js +63 -63
  97. package/lib/components/Tabs/Tabs2.js +70 -70
  98. package/lib/components/TagInput/TagInput2.js +236 -239
  99. package/lib/components/TimePicker/TimePicker2.js +231 -232
  100. package/lib/components/TimePicker/time.js +63 -65
  101. package/lib/components/Timeline/Timeline2.js +167 -167
  102. package/lib/components/Timeline/scale.js +55 -55
  103. package/lib/components/Toast/Toaster.js +151 -152
  104. package/lib/components/Toast/store.js +90 -87
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +91 -91
  106. package/lib/components/Toolbar/Toolbar2.js +145 -145
  107. package/lib/components/Tracker/Tracker2.js +76 -76
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +112 -111
  109. package/lib/components/TreeView/TreeView2.js +124 -124
  110. package/lib/hooks/timing.js +30 -29
  111. package/lib/hooks/useControllableState.js +37 -36
  112. package/lib/hooks/useCountdown.js +56 -59
  113. package/lib/hooks/useDigitInput.js +52 -78
  114. package/lib/hooks/useDismiss.js +58 -57
  115. package/lib/hooks/useElapsed.js +54 -54
  116. package/lib/hooks/useFloating.js +26 -26
  117. package/lib/hooks/useFocusTrap.js +42 -42
  118. package/lib/hooks/usePresence.js +49 -48
  119. package/lib/hooks/usePressToOpen.js +42 -41
  120. package/lib/hooks/useScrollLock.js +45 -44
  121. package/lib/hooks/useSelection.js +45 -39
  122. package/lib/index.js +71 -71
  123. package/lib/primitives/AspectRatio2.js +60 -60
  124. package/lib/primitives/BrandIcon.js +161 -161
  125. package/lib/primitives/ColorDot2.js +42 -45
  126. package/lib/primitives/CopyButton2.js +57 -56
  127. package/lib/primitives/CountBadge2.js +55 -51
  128. package/lib/primitives/Countdown2.js +41 -46
  129. package/lib/primitives/Delta2.js +36 -36
  130. package/lib/primitives/Elapsed.js +49 -49
  131. package/lib/primitives/FileIcon2.js +96 -96
  132. package/lib/primitives/Flag2.js +135 -135
  133. package/lib/primitives/IconStack2.js +38 -60
  134. package/lib/primitives/IconTile2.js +28 -29
  135. package/lib/primitives/Kbd2.js +50 -50
  136. package/lib/primitives/Layout2.js +71 -71
  137. package/lib/primitives/Link2.js +32 -31
  138. package/lib/primitives/MaskedText2.js +49 -74
  139. package/lib/primitives/Progress2.js +65 -66
  140. package/lib/primitives/RelativeTime.js +58 -57
  141. package/lib/primitives/SearchInput2.js +65 -65
  142. package/lib/primitives/SelectorButton2.js +74 -73
  143. package/lib/primitives/Spinner2.js +50 -50
  144. package/lib/primitives/StatusIcon2.js +68 -68
  145. package/lib/primitives/Swatch2.js +59 -55
  146. package/lib/primitives/Tooltip2.js +81 -81
  147. package/lib/primitives/Typography2.js +53 -53
  148. package/lib/primitives/formatCountdown.js +21 -22
  149. package/lib/primitives/formatElapsed.js +43 -42
  150. package/lib/primitives/formatRelativeTime.js +50 -50
  151. package/lib/primitives/hotkey.js +82 -82
  152. package/lib/primitives/index.js +193 -174
  153. package/lib/primitives/maskValue.js +28 -28
  154. package/lib/style.css +1 -1
  155. package/lib/types/primitives/index.d.ts +6 -2
  156. package/package.json +1 -1
@@ -1,46 +1,70 @@
1
1
  "use client";
2
- (function(e, t) {
3
- let n = a, r = e();
2
+ (function(e, n) {
3
+ let r = t, i = e();
4
4
  for (;;) try {
5
- if (-parseInt(n(378)) / 1 * (parseInt(n(386)) / 2) + -parseInt(n(372)) / 3 * (parseInt(n(382)) / 4) + -parseInt(n(371)) / 5 * (parseInt(n(377)) / 6) + -parseInt(n(388)) / 7 + -parseInt(n(384)) / 8 * (-parseInt(n(389)) / 9) + -parseInt(n(385)) / 10 * (-parseInt(n(381)) / 11) + parseInt(n(374)) / 12 * (parseInt(n(379)) / 13) == t) break;
6
- r.push(r.shift());
5
+ if (-parseInt(r(142)) / 1 * (-parseInt(r(128)) / 2) + -parseInt(r(132)) / 3 * (parseInt(r(140)) / 4) + -parseInt(r(131)) / 5 + parseInt(r(133)) / 6 + -parseInt(r(141)) / 7 + parseInt(r(135)) / 8 + -parseInt(r(144)) / 9 * (parseInt(r(129)) / 10) == n) break;
6
+ i.push(i.shift());
7
7
  } catch {
8
- r.push(r.shift());
8
+ i.push(i.shift());
9
9
  }
10
- })(s, 784909);
10
+ })(o, 689319);
11
11
  import { TIMING as e } from "./timing.js";
12
- import { useCallback as t, useEffect as n, useRef as r, useState as i } from "react";
13
- function a(e, t) {
14
- e -= 371;
15
- let n = s(), r = n[e];
16
- a.BkzCow === void 0 && (a.fqiHhr = function(e) {
12
+ function t(e, n) {
13
+ e -= 128;
14
+ let r = o(), i = r[e];
15
+ t.lTsHDH === void 0 && (t.eTtFsa = function(e) {
17
16
  let t = "", n = "";
18
17
  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);
19
18
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
20
19
  return decodeURIComponent(n);
21
- }, a.TXYgdu = {}, a.BkzCow = !0);
22
- let i = n[0];
23
- a.zWqEqT !== i && (a.TXYgdu = {}, a.zWqEqT = i);
24
- let o = a.TXYgdu[e];
25
- return o === void 0 ? (r = a.fqiHhr(r), a.TXYgdu[e] = r) : r = o, r;
20
+ }, t.rEyXRE = {}, t.lTsHDH = !0);
21
+ let a = r[0];
22
+ t.LbJbQF !== a && (t.rEyXRE = {}, t.LbJbQF = a);
23
+ let s = t.rEyXRE[e];
24
+ return s === void 0 ? (i = t.eTtFsa(i), t.rEyXRE[e] = i) : i = s, i;
26
25
  }
27
- function o(o, { running: s = !0, onComplete: c } = {}) {
28
- let [l, u] = i(o), [d, f] = i(0), [p, m] = i(o);
26
+ import { useCallback as n, useEffect as r, useRef as i, useState as a } from "react";
27
+ function o() {
28
+ let e = [
29
+ "BM93",
30
+ "nJn4Au5HA04",
31
+ "mJi2ndyXofnQrxDyDW",
32
+ "mJKWmteWv1Pnwevi",
33
+ "y3vYCMvUDa",
34
+ "ndq0mJiYnvvuEKjKCq",
35
+ "mZbAA3LgDLG",
36
+ "mtGWmJeWmgniwxPMDG",
37
+ "C2v0sw50zxj2ywW",
38
+ "nJq1mJaXnNv0DunVEq",
39
+ "y2XLyxjjBNrLCNzHBa",
40
+ "y2vPBa",
41
+ "y291BNrKB3DUvgLJAW",
42
+ "Bwf4",
43
+ "mta5mti0ue96sujy",
44
+ "mti5odu3mhvREuj6vW",
45
+ "muD6tKTqBq"
46
+ ];
47
+ return o = function() {
48
+ return e;
49
+ }, o();
50
+ }
51
+ function s(o, { running: s = !0, onComplete: c } = {}) {
52
+ let [l, u] = a(o), [d, f] = a(0), [p, m] = a(o);
29
53
  o !== p && (m(o), u(o), f((e) => e + 1));
30
- let h = r(l), g = r(c);
31
- n(() => {
32
- let e = a;
33
- h[e(376)] = l, g[e(376)] = c;
34
- }), n(() => {
35
- let t = a, n = h[t(376)];
36
- if (!s || n <= 0) return;
37
- let r = performance[t(380)]() + n * 1e3, i = window[t(383)](() => {
38
- let e = t, n = Math[e(373)](0, Math[e(375)]((r - performance[e(380)]()) / 1e3));
39
- h[e(376)] = n, u(n), n <= 0 && (window[e(390)](i), g[e(376)]?.());
40
- }, e[t(387)]);
41
- return () => window[t(390)](i);
54
+ let h = i(l), g = i(c);
55
+ r(() => {
56
+ let e = t;
57
+ h.current = l, g[e(130)] = c;
58
+ }), r(() => {
59
+ let n = t, r = h[n(130)];
60
+ if (!s || r <= 0) return;
61
+ let i = performance.now() + r * 1e3, a = window[n(134)](() => {
62
+ let e = n, t = Math[e(139)](0, Math[e(137)]((i - performance[e(143)]()) / 1e3));
63
+ h[e(130)] = t, u(t), t <= 0 && (window[e(136)](a), g[e(130)]?.());
64
+ }, e[n(138)]);
65
+ return () => window.clearInterval(a);
42
66
  }, [s, d]);
43
- let _ = t((e) => {
67
+ let _ = n((e) => {
44
68
  let t = e ?? o;
45
69
  h.current = t, u(t), f((e) => e + 1);
46
70
  }, [o]);
@@ -50,31 +74,4 @@ function o(o, { running: s = !0, onComplete: c } = {}) {
50
74
  restart: _
51
75
  };
52
76
  }
53
- export { o as useCountdown };
54
- function s() {
55
- let e = [
56
- "ndK2odi1ALfeuvLI",
57
- "mJaWodqZmu1TCLz2EG",
58
- "y2XLyxjjBNrLCNzHBa",
59
- "mJmWnuHoze1WrG",
60
- "nJmWtMHtqMDh",
61
- "Bwf4",
62
- "mZzWBNnPtKW",
63
- "y2vPBa",
64
- "y3vYCMvUDa",
65
- "mte2ndzWDfn6t1G",
66
- "ntqZueHRs29o",
67
- "mZqYntGXmMXODe1Lvq",
68
- "BM93",
69
- "odC4nda1zhvyC1rT",
70
- "mJGWr3rvuwL1",
71
- "C2v0sw50zxj2ywW",
72
- "mJrtDLz4zKG",
73
- "ntbzB3vSug4",
74
- "mZq2EgLIr1j5",
75
- "y291BNrKB3DUvgLJAW"
76
- ];
77
- return s = function() {
78
- return e;
79
- }, s();
80
- }
77
+ export { s as useCountdown };
@@ -1,105 +1,79 @@
1
1
  "use client";
2
- const e = o;
3
- function t() {
4
- let e = [
5
- "C2XPy2u",
6
- "mJvhqKfPsLe",
7
- "BwLU",
8
- "y3vYCMvUDa",
9
- "mta1mZm2n1juBxvlua",
10
- "CMvWBgfJzq",
11
- "mZa4ndiZmuDkuMHSAa",
12
- "mty4B1nPDePT",
13
- "ntuZmgznsLPSCq",
14
- "mtCXmZi3ngTvAwfMyG",
15
- "ndGXndfgufbmuw8",
16
- "B2zM",
17
- "DMfSDwu",
18
- "BgvUz3rO",
19
- "ywn0AxzLrwXLBwvUDa",
20
- "rgvSzxrL",
21
- "otaXmJu0ng1OtMHfsq",
22
- "A2v5",
23
- "y3vYCMvUDfrHCMDLDa",
24
- "nZyZCgHRrw51",
25
- "C2v0u2vSzwn0Aw9UuMfUz2u",
26
- "DgfYz2v0",
27
- "mtu5nJCYu0jxAxjP",
28
- "DgvZDa",
29
- "qMfJA3nWywnL"
30
- ];
31
- return t = function() {
32
- return e;
33
- }, t();
34
- }
2
+ const e = i;
35
3
  (function(e, t) {
36
- let n = o, r = e();
4
+ let n = i, r = e();
37
5
  for (;;) try {
38
- if (-parseInt(n(354)) / 1 + parseInt(n(334)) / 2 + -parseInt(n(331)) / 3 + -parseInt(n(347)) / 4 * (-parseInt(n(351)) / 5) + -parseInt(n(332)) / 6 * (parseInt(n(344)) / 7) + -parseInt(n(341)) / 8 + parseInt(n(335)) / 9 * (parseInt(n(333)) / 10) == t) break;
6
+ if (-parseInt(n(471)) / 1 + -parseInt(n(485)) / 2 * (parseInt(n(473)) / 3) + -parseInt(n(483)) / 4 * (-parseInt(n(486)) / 5) + -parseInt(n(475)) / 6 + parseInt(n(474)) / 7 * (parseInt(n(487)) / 8) + parseInt(n(492)) / 9 + parseInt(n(477)) / 10 == t) break;
39
7
  r.push(r.shift());
40
8
  } catch {
41
9
  r.push(r.shift());
42
10
  }
43
- })(t, 803160);
44
- import { useLayoutEffect as n, useRef as r } from "react";
45
- var i = (t) => t[e(355)](/\D/g, "");
46
- function a(t, n) {
47
- let r = e;
48
- if (n === 0) return 0;
49
- let i = 0;
50
- for (let e = 0; e < t[r(338)]; e++) if (/\d/.test(t[e]) && ++i === n) return e + 1;
51
- return t[r(338)];
52
- }
53
- function o(e, n) {
54
- e -= 331;
55
- let r = t(), i = r[e];
56
- o.Cmrefn === void 0 && (o.CznGBF = function(e) {
11
+ })(a, 423095);
12
+ import { useLayoutEffect as t, useRef as n } from "react";
13
+ var r = (t) => t[e(488)](/\D/g, "");
14
+ function i(e, t) {
15
+ e -= 471;
16
+ let n = a(), r = n[e];
17
+ i.vZVzEU === void 0 && (i.qtueSt = function(e) {
57
18
  let t = "", n = "";
58
19
  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);
59
20
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
60
21
  return decodeURIComponent(n);
61
- }, o.cYDktd = {}, o.Cmrefn = !0);
62
- let a = r[0];
63
- o.UkFKwL !== a && (o.cYDktd = {}, o.UkFKwL = a);
64
- let s = o.cYDktd[e];
65
- return s === void 0 ? (i = o.CznGBF(i), o.cYDktd[e] = i) : i = s, i;
22
+ }, i.qAXoID = {}, i.vZVzEU = !0);
23
+ let o = n[0];
24
+ i.iWjcwK !== o && (i.qAXoID = {}, i.iWjcwK = o);
25
+ let s = i.qAXoID[e];
26
+ return s === void 0 ? (r = i.qtueSt(r), i.qAXoID[e] = r) : r = s, r;
27
+ }
28
+ function a() {
29
+ let e = /* @__PURE__ */ "BwLU.DgvZDa.C2v0u2vSzwn0Aw9UuMfUz2u.ogTStwPlCW.C2XPy2u.ngDiu3jWsW.mZK1zMX1DxnZ.mZq0ndK2tNP0zvPM.CMvWBgfJzq.qMfJA3nWywnL.y3vYCMvUDfrHCMDLDa.DgfYz2v0.ntmXntGWnvfQswHiCW.ywn0AxzLrwXLBwvUDa.C2vSzwn0Aw9Uu3rHCNq.DMfSDwu.y3vYCMvUDa.ndK2odK1AwveEKjg.BNvTzxjPyW.odaYmdi2tg9rzerT.n3DzqwvsyW.mZiXntm4ogrfwuTksW.rgvSzxrL.mtm1nJCWnZbsCxH1s0i.A2v5.BgvUz3rO".split(".");
30
+ return a = function() {
31
+ return e;
32
+ }, a();
33
+ }
34
+ function o(t, n) {
35
+ let r = e;
36
+ if (n === 0) return 0;
37
+ let i = 0;
38
+ for (let e = 0; e < t[r(479)]; e++) if (/\d/.test(t[e]) && ++i === n) return e + 1;
39
+ return t[r(479)];
66
40
  }
67
- function s({ digits: t, onDigitsChange: s, format: c = (e) => e, maxDigits: l }) {
68
- let u = e, d = r(null), f = r(null), p = c(t);
69
- return n(() => {
70
- let e = o, t = d.current, n = f[e(353)];
71
- if (!t || n === null || document[e(339)] !== t) return;
72
- f[e(353)] = null;
73
- let r = a(t.value, n);
74
- t.setSelectionRange(r, r);
41
+ function s({ digits: a, onDigitsChange: s, format: c = (e) => e, maxDigits: l }) {
42
+ let u = e, d = n(null), f = n(null), p = c(a);
43
+ return t(() => {
44
+ let e = i, t = d[e(496)], n = f[e(496)];
45
+ if (!t || n === null || document[e(493)] !== t) return;
46
+ f[e(496)] = null;
47
+ let r = o(t[e(495)], n);
48
+ t[e(482)](r, r);
75
49
  }), {
76
50
  ref: d,
77
51
  value: p,
78
52
  onChange: (e) => {
79
- let n = o, r = e[n(346)][n(337)], c = i(r[n(350)](0, e[n(346)].selectionStart ?? r[n(338)])).length, u = i(r)[n(350)](0, l);
80
- if (f[n(353)] = Math[n(352)](c, u[n(338)]), u !== t) s(u);
81
- else if (r !== p) {
82
- e.target[n(337)] = p;
83
- let t = a(p, f[n(353)]);
84
- f[n(353)] = null, e[n(346)].setSelectionRange(t, t);
53
+ let t = i, n = e[t(491)][t(495)], c = r(n[t(484)](0, e[t(491)][t(494)] ?? n[t(479)]))[t(479)], u = r(n)[t(484)](0, l);
54
+ if (f[t(496)] = Math[t(480)](c, u[t(479)]), u !== a) s(u);
55
+ else if (n !== p) {
56
+ e[t(491)][t(495)] = p;
57
+ let n = o(p, f[t(496)]);
58
+ f[t(496)] = null, e[t(491)][t(482)](n, n);
85
59
  }
86
60
  },
87
61
  onKeyDown: (e) => {
88
- let t = o, n = e[t(343)], { selectionStart: r, selectionEnd: i } = n;
89
- if (r !== null && r === i) {
90
- if (e[t(342)] === t(349)) {
62
+ let t = i, n = e[t(490)], { selectionStart: r, selectionEnd: a } = n;
63
+ if (r !== null && r === a) {
64
+ if (e[t(478)] === t(489)) {
91
65
  let e = r;
92
- for (; e > 0 && !/\d/[t(348)](n[t(337)][e - 1]);) e--;
93
- e !== r && n[t(345)](e, e);
94
- } else if (e[t(342)] === t(340)) {
66
+ for (; e > 0 && !/\d/[t(481)](n[t(495)][e - 1]);) e--;
67
+ e !== r && n[t(482)](e, e);
68
+ } else if (e.key === t(476)) {
95
69
  let e = r;
96
- for (; e < n.value[t(338)] && !/\d/[t(348)](n[t(337)][e]);) e++;
97
- e !== r && n[t(345)](e, e);
70
+ for (; e < n[t(495)][t(479)] && !/\d/[t(481)](n.value[e]);) e++;
71
+ e !== r && n.setSelectionRange(e, e);
98
72
  }
99
73
  }
100
74
  },
101
- inputMode: "numeric",
102
- autoComplete: u(336)
75
+ inputMode: u(472),
76
+ autoComplete: "off"
103
77
  };
104
78
  }
105
79
  export { s as useDigitInput };
@@ -1,71 +1,72 @@
1
1
  "use client";
2
- (function(e, n) {
3
- let r = t, i = e();
2
+ (function(e, t) {
3
+ let n = r, i = e();
4
4
  for (;;) try {
5
- if (parseInt(r(380)) / 1 * (parseInt(r(383)) / 2) + parseInt(r(381)) / 3 * (parseInt(r(390)) / 4) + -parseInt(r(391)) / 5 + -parseInt(r(378)) / 6 * (-parseInt(r(393)) / 7) + -parseInt(r(377)) / 8 * (parseInt(r(385)) / 9) + -parseInt(r(382)) / 10 * (parseInt(r(392)) / 11) + -parseInt(r(386)) / 12 == n) break;
5
+ if (parseInt(n(499)) / 1 * (parseInt(n(501)) / 2) + -parseInt(n(494)) / 3 * (-parseInt(n(505)) / 4) + -parseInt(n(500)) / 5 * (parseInt(n(496)) / 6) + parseInt(n(495)) / 7 * (-parseInt(n(492)) / 8) + -parseInt(n(493)) / 9 * (-parseInt(n(504)) / 10) + parseInt(n(506)) / 11 * (-parseInt(n(498)) / 12) + parseInt(n(503)) / 13 * (parseInt(n(497)) / 14) == t) break;
6
6
  i.push(i.shift());
7
7
  } catch {
8
8
  i.push(i.shift());
9
9
  }
10
- })(e, 270360);
11
- function e() {
12
- let t = [
13
- "oevqEM1nzW",
14
- "owrkCK5TqW",
15
- "nZbLBgnSzhC",
16
- "mte5mtGWrMrVB01J",
17
- "y3vYCMvUDa",
18
- "oxzzuer0Ba",
19
- "mJu0nJq5nMTzyMPJrW",
20
- "DgfYz2v0",
21
- "CMvTB3zLrxzLBNrmAxn0zw5LCG",
22
- "C29Tzq",
23
- "nJi5ndGWDur6y2X2",
24
- "mtuYnZC5nwXmugDwuW",
25
- "mJiWmZnVzerxDKG",
26
- "mtC5odKZDvzsuuPf",
27
- "mtm3ota0og5sAeTwDW",
28
- "nNH2ueXtEa",
29
- "Cg9PBNrLCMrVD24"
30
- ];
31
- return e = function() {
32
- return t;
33
- }, e();
34
- }
35
- function t(n, r) {
36
- n -= 377;
37
- let i = e(), a = i[n];
38
- t.JJVONj === void 0 && (t.vihKmQ = function(e) {
39
- let t = "", n = "";
40
- 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);
41
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
42
- return decodeURIComponent(n);
43
- }, t.hAHkFO = {}, t.JJVONj = !0);
44
- let o = i[0];
45
- t.SIpjlR !== o && (t.hAHkFO = {}, t.SIpjlR = o);
46
- let s = t.hAHkFO[n];
47
- return s === void 0 ? (a = t.vihKmQ(a), t.hAHkFO[n] = a) : a = s, a;
48
- }
49
- import { useEffect as n, useRef as r } from "react";
50
- function i(e, i, a) {
51
- let o = r({
10
+ })(i, 770534);
11
+ import { useEffect as e, useRef as t } from "react";
12
+ function n(n, i, a) {
13
+ let o = t({
52
14
  refs: i,
53
15
  onDismiss: a
54
16
  });
55
- n(() => {
56
- let e = t;
57
- o[e(384)] = {
17
+ e(() => {
18
+ let e = r;
19
+ o[e(502)] = {
58
20
  refs: i,
59
21
  onDismiss: a
60
22
  };
61
- }), n(() => {
62
- let n = t;
63
- if (!e) return;
64
- let r = (e) => {
65
- let n = t, { refs: r, onDismiss: i } = o[n(384)];
66
- r[n(389)]((t) => t[n(384)]?.contains(e[n(387)])) || i();
23
+ }), e(() => {
24
+ let e = r;
25
+ if (!n) return;
26
+ let t = (e) => {
27
+ let t = r, { refs: n, onDismiss: i } = o[t(502)];
28
+ n.some((n) => n[t(502)]?.[t(491)](e[t(490)])) || i();
67
29
  };
68
- return document.addEventListener("pointerdown", r), () => document[n(388)](n(379), r);
69
- }, [e]);
30
+ return document.addEventListener(e(489), t), () => document.removeEventListener(e(489), t);
31
+ }, [n]);
32
+ }
33
+ function r(e, t) {
34
+ e -= 489;
35
+ let n = i(), a = n[e];
36
+ r.Comtka === void 0 && (r.iQyETz = function(e) {
37
+ let t = "", n = "";
38
+ 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);
39
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
40
+ return decodeURIComponent(n);
41
+ }, r.Ywigfg = {}, r.Comtka = !0);
42
+ let o = n[0];
43
+ r.yWmLjt !== o && (r.Ywigfg = {}, r.yWmLjt = o);
44
+ let s = r.Ywigfg[e];
45
+ return s === void 0 ? (a = r.iQyETz(a), r.Ywigfg[e] = a) : a = s, a;
46
+ }
47
+ export { n as useDismiss };
48
+ function i() {
49
+ let e = [
50
+ "mtH5wMzbq3i",
51
+ "ntm4ndrHzfn5uhq",
52
+ "mtC1mtK2mJHkuNLHwhe",
53
+ "mJCWotfeAenOBvu",
54
+ "mZe0nJm1uuHXAu1J",
55
+ "nJjvsxr1wgW",
56
+ "y3vYCMvUDa",
57
+ "mZa5neHbse9ctW",
58
+ "nJu1mZbQrvniDeC",
59
+ "mty2mgTxvMj0Cq",
60
+ "mtfXBLLItMm",
61
+ "Cg9PBNrLCMrVD24",
62
+ "DgfYz2v0",
63
+ "y29UDgfPBNm",
64
+ "mte2otKYyuDxqMzo",
65
+ "mJyXqvnovgrx",
66
+ "otaZme1kBg9MAa",
67
+ "mZCXsNHwqMLd"
68
+ ];
69
+ return i = function() {
70
+ return e;
71
+ }, i();
70
72
  }
71
- export { i as useDismiss };
@@ -1,81 +1,81 @@
1
1
  "use client";
2
- const e = o;
2
+ function e() {
3
+ let t = [
4
+ "nZG1nZu2n0TrBMzTzq",
5
+ "z2v0vgLTzq",
6
+ "ndKZndy5mu14BhPXDG",
7
+ "ndCYnZu5svfhAgH4",
8
+ "mJG2odi2r0LIEMfl",
9
+ "y3vYCMvUDa",
10
+ "mtm1otu0odHuuLHQzKy",
11
+ "mJbcB2X5q1e",
12
+ "ndC0nti5otLdB3HRA1u",
13
+ "mtbWwgTLwNq",
14
+ "mtfHsKT2D3C",
15
+ "mZbTs3nOAwm",
16
+ "zMXVB3i",
17
+ "BNvTyMvY",
18
+ "otK1nty1D2XhB0z5",
19
+ "BM93",
20
+ "y2XLyxjuAw1LB3v0",
21
+ "Bwf4"
22
+ ];
23
+ return e = function() {
24
+ return t;
25
+ }, e();
26
+ }
27
+ const t = n;
3
28
  (function(e, t) {
4
- let n = o, r = e();
29
+ let r = n, i = e();
5
30
  for (;;) try {
6
- if (parseInt(n(249)) / 1 + parseInt(n(236)) / 2 + parseInt(n(241)) / 3 + -parseInt(n(243)) / 4 * (-parseInt(n(242)) / 5) + parseInt(n(244)) / 6 * (parseInt(n(238)) / 7) + parseInt(n(245)) / 8 + -parseInt(n(239)) / 9 == t) break;
7
- r.push(r.shift());
31
+ if (-parseInt(r(227)) / 1 * (parseInt(r(221)) / 2) + -parseInt(r(219)) / 3 + -parseInt(r(224)) / 4 * (-parseInt(r(213)) / 5) + parseInt(r(210)) / 6 * (-parseInt(r(220)) / 7) + -parseInt(r(223)) / 8 + parseInt(r(217)) / 9 + parseInt(r(226)) / 10 * (parseInt(r(225)) / 11) == t) break;
32
+ i.push(i.shift());
8
33
  } catch {
9
- r.push(r.shift());
34
+ i.push(i.shift());
10
35
  }
11
- })(c, 123202);
12
- import { useCallback as t, useEffect as n, useLayoutEffect as r, useRef as i, useState as a } from "react";
13
- function o(e, t) {
14
- e -= 233;
15
- let n = c(), r = n[e];
16
- o.YHGAdP === void 0 && (o.jyZPps = function(e) {
36
+ })(e, 922976);
37
+ function n(t, r) {
38
+ t -= 210;
39
+ let i = e(), a = i[t];
40
+ n.saMjTe === void 0 && (n.dRonSi = function(e) {
17
41
  let t = "", n = "";
18
42
  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);
19
43
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
20
44
  return decodeURIComponent(n);
21
- }, o.acbHsr = {}, o.YHGAdP = !0);
22
- let i = n[0];
23
- o.sSMDSk !== i && (o.acbHsr = {}, o.sSMDSk = i);
24
- let a = o.acbHsr[e];
25
- return a === void 0 ? (r = o.jyZPps(r), o.acbHsr[e] = r) : r = a, r;
45
+ }, n.zLtxFj = {}, n.saMjTe = !0);
46
+ let o = i[0];
47
+ n.CJnImv !== o && (n.zLtxFj = {}, n.CJnImv = o);
48
+ let s = n.zLtxFj[t];
49
+ return s === void 0 ? (a = n.dRonSi(a), n.zLtxFj[t] = a) : a = s, a;
26
50
  }
27
- var s = (t) => t instanceof Date ? t[e(240)]() : typeof t === e(237) ? t : new Date(t)[e(240)]();
28
- function c() {
29
- let e = [
30
- "ndiXodG1og5lA2Tryq",
31
- "z2v0vgLTzq",
32
- "mZa4mtG3ugnHuePK",
33
- "mtq4mhbytM9zrW",
34
- "mtm5nNzpELHKBW",
35
- "ndjAy2jev1i",
36
- "mtm0mda2nhnpr0Tcua",
37
- "zMXVB3i",
38
- "Bwf4",
39
- "y2XLyxjuAw1LB3v0",
40
- "mta1odvPAMvNDxy",
41
- "C2v0vgLTzw91Da",
42
- "y3vYCMvUDa",
43
- "BM93",
44
- "nZaWodzev2LkrMW",
45
- "BNvTyMvY",
46
- "mtCYnZK1D1zvyLPr"
47
- ];
48
- return c = function() {
49
- return e;
50
- }, c();
51
- }
52
- function l(o, { running: c = !0, endedAt: l, initial: u = 0 } = {}) {
53
- let d = e, f = o === void 0 ? void 0 : s(o), p = l === void 0 ? void 0 : s(l), m = f !== void 0 && p !== void 0, h = c && !m, [g, _] = a(Math.max(0, Math[d(246)](u))), [v, y] = a(0), b = i(Math[d(247)](0, u) * 1e3), x = i(h), S = i(!1);
54
- n(() => {
55
- let e = d;
56
- x[e(234)] = h;
57
- }), r(() => {
51
+ import { useCallback as r, useEffect as i, useLayoutEffect as a, useRef as o, useState as s } from "react";
52
+ var c = (e) => e instanceof Date ? e[t(218)]() : typeof e === t(212) ? e : new Date(e)[t(218)]();
53
+ function l(e, { running: n = !0, endedAt: l, initial: u = 0 } = {}) {
54
+ let d = t, f = e === void 0 ? void 0 : c(e), p = l === void 0 ? void 0 : c(l), m = f !== void 0 && p !== void 0, h = n && !m, [g, _] = s(Math[d(216)](0, Math[d(211)](u))), [v, y] = s(0), b = o(Math[d(216)](0, u) * 1e3), x = o(h), S = o(!1);
55
+ i(() => {
56
+ x.current = h;
57
+ }), a(() => {
58
58
  let e = d;
59
59
  if (!h) return;
60
- let t = performance[e(235)](), n = 0, r = () => f === void 0 ? b[e(234)] + performance[e(235)]() - t : Date[e(235)]() - f, i = () => {
61
- let t = e, a = Math[t(247)](0, r());
62
- _(Math.floor(a / 1e3)), n = window[t(233)](i, 1e3 - a % 1e3 + 8);
60
+ let t = performance[e(214)](), n = 0, r = () => f === void 0 ? b[e(222)] + performance[e(214)]() - t : Date[e(214)]() - f, i = () => {
61
+ let t = e, a = Math.max(0, r());
62
+ _(Math[t(211)](a / 1e3)), n = window.setTimeout(i, 1e3 - a % 1e3 + 8);
63
63
  };
64
64
  return i(), () => {
65
65
  let r = e;
66
- window[r(248)](n), f === void 0 && (S[r(234)] ? (S[r(234)] = !1, b[r(234)] = 0) : b[r(234)] += performance.now() - t);
66
+ window[r(215)](n), f === void 0 && (S.current ? (S[r(222)] = !1, b[r(222)] = 0) : b[r(222)] += performance[r(214)]() - t);
67
67
  };
68
68
  }, [
69
69
  h,
70
70
  f,
71
71
  v
72
72
  ]);
73
- let C = t(() => {
73
+ let C = r(() => {
74
74
  let e = d;
75
- x[e(234)] ? S.current = !0 : b[e(234)] = 0, _(0), y((e) => e + 1);
75
+ x[e(222)] ? S.current = !0 : b[e(222)] = 0, _(0), y((e) => e + 1);
76
76
  }, []);
77
77
  return {
78
- elapsed: m ? Math[d(247)](0, Math[d(246)]((p - f) / 1e3)) : g,
78
+ elapsed: m ? Math[d(216)](0, Math.floor((p - f) / 1e3)) : g,
79
79
  running: h,
80
80
  reset: C
81
81
  };
@@ -1,58 +1,58 @@
1
1
  "use client";
2
- function e() {
3
- let t = /* @__PURE__ */ "ntaYoteZmhbHuejqqW.mZa1ntK1qMndu2zo.CMvZAxPL.AgLKzgvU.y2vUDgvY.y3vYCMvUDa.Aw5UzxjxAwr0Aa.CMvTB3zLrxzLBNrmAxn0zw5LCG.mJu3nJKZmuXnq09VwG.mtm2mZG5mNDSzwfwza.yM90Dg9T.D2LKDgG.CMLNAhq.ywrKrxzLBNrmAxn0zw5LCG.ndi4ndmXCfrwz0PY.mZe4mZq2nxLZAxnzsW.z2v0qM91BMrPBMDdBgLLBNrszwn0.Aw5UzxjizwLNAhq.C2nYB2XS.nNzVyLnWta.mJjzCezVywG.B2zMC2v0v2LKDgG.Bwf4.mZeWmtHisgHOwNi.Dg9W.BgvMDa.ndvZEKrYBM8.BwLU.mtm2rKPzEfvX.zML4zwq".split(".");
4
- return e = function() {
5
- return t;
6
- }, e();
7
- }
8
2
  (function(e, t) {
9
3
  let n = i, r = e();
10
4
  for (;;) try {
11
- if (-parseInt(n(189)) / 1 + parseInt(n(198)) / 2 * (-parseInt(n(201)) / 3) + parseInt(n(214)) / 4 + parseInt(n(190)) / 5 + -parseInt(n(194)) / 6 * (parseInt(n(213)) / 7) + parseInt(n(203)) / 8 * (-parseInt(n(206)) / 9) + parseInt(n(205)) / 10 * (parseInt(n(195)) / 11) == t) break;
5
+ if (parseInt(n(516)) / 1 + parseInt(n(517)) / 2 + -parseInt(n(498)) / 3 * (parseInt(n(506)) / 4) + -parseInt(n(508)) / 5 * (parseInt(n(519)) / 6) + -parseInt(n(502)) / 7 + parseInt(n(515)) / 8 * (parseInt(n(523)) / 9) + parseInt(n(522)) / 10 * (parseInt(n(499)) / 11) == t) break;
12
6
  r.push(r.shift());
13
7
  } catch {
14
8
  r.push(r.shift());
15
9
  }
16
- })(e, 377058);
10
+ })(e, 976411);
11
+ function e() {
12
+ let t = /* @__PURE__ */ "mJqZntm4mgXKvhPMCa.B2zMC2v0v2LKDgG.mtjwExnfyM8.zML4zwq.BgvMDa.mJi4odK5meLOCeDXtG.mtm5otqXzNjLqKvu.ywrKrxzLBNrmAxn0zw5LCG.CMLNAhq.C3rHCNq.ndCZndLHqMDmsui.nZDQvLP3r2q.Dg9W.D2LKDgG.ote1nZu2muvWue1TCa.CMvZAxPL.AgLKzgvU.z2v0qM91BMrPBMDdBgLLBNrszwn0.mJi0B3nHwNHz.Aw5UzxjizwLNAhq.mJu2nteWnwfHver2sq.Bwf4.yM90Dg9T.zw5K.BwLU.Aw5UzxjxAwr0Aa.y2vUDgvY.nZjPDhPSBwy.mtiZndyWmeTxuNrAva".split(".");
13
+ return e = function() {
14
+ return t;
15
+ }, e();
16
+ }
17
17
  import { useLayoutEffect as t, useState as n } from "react";
18
18
  var r = 8;
19
19
  function i(t, n) {
20
- t -= 189;
20
+ t -= 497;
21
21
  let r = e(), a = r[t];
22
- i.UvKyru === void 0 && (i.NlCork = function(e) {
22
+ i.SkDMRd === void 0 && (i.NCYYDb = function(e) {
23
23
  let t = "", n = "";
24
24
  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);
25
25
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
26
26
  return decodeURIComponent(n);
27
- }, i.aDeMxk = {}, i.UvKyru = !0);
27
+ }, i.LJYYHR = {}, i.SkDMRd = !0);
28
28
  let o = r[0];
29
- i.vKnaIK !== o && (i.aDeMxk = {}, i.vKnaIK = o);
30
- let s = i.aDeMxk[t];
31
- return s === void 0 ? (a = i.NlCork(a), i.aDeMxk[t] = a) : a = s, a;
29
+ i.DZHXUr !== o && (i.LJYYHR = {}, i.DZHXUr = o);
30
+ let s = i.LJYYHR[t];
31
+ return s === void 0 ? (a = i.NCYYDb(a), i.LJYYHR[t] = a) : a = s, a;
32
32
  }
33
33
  function a(e, a, o = {}) {
34
- let s = i, { offset: c = 6, matchWidth: l = !0, maxHeight: u = 300, align: d = "start", panelRef: f } = o, [p, m] = n({
35
- position: s(204),
36
- visibility: s(208)
37
- }), [h, g] = n(s(215));
34
+ let s = i, { offset: c = 6, matchWidth: l = !0, maxHeight: u = 300, align: d = s(497), panelRef: f } = o, [p, m] = n({
35
+ position: s(520),
36
+ visibility: s(504)
37
+ }), [h, g] = n(s(510));
38
38
  return t(() => {
39
39
  let t = s;
40
40
  if (!a) return;
41
41
  let n = () => {
42
- let t = i, n = e[t(210)];
42
+ let t = i, n = e.current;
43
43
  if (!n) return;
44
- let a = n[t(191)](), o = window[t(192)] - a.bottom - c - r, s = a[t(199)] - c - r, p = o < Math.min(u, 180) && s > o, h = l ? a[t(216)] : void 0, _ = h ?? f?.[t(210)]?.[t(196)] ?? 0, v = d === "end" ? a[t(217)] - _ : d === t(209) ? a.left + (a[t(216)] - _) / 2 : a[t(200)], y = Math[t(197)](r, Math[t(202)](v, window[t(211)] - _ - r));
45
- g(t(p ? 199 : 215)), m({
46
- position: t(204),
44
+ let a = n[t(505)](), o = window[t(507)] - a[t(510)] - c - r, s = a[t(500)] - c - r, p = o < Math.min(u, 180) && s > o, h = l ? a.width : void 0, _ = h ?? f?.current?.[t(518)] ?? 0, v = d === t(511) ? a[t(525)] - _ : d === t(514) ? a[t(521)] + (a[t(501)] - _) / 2 : a.left, y = Math[t(509)](r, Math[t(512)](v, window[t(513)] - _ - r));
45
+ g(p ? t(500) : "bottom"), m({
46
+ position: t(520),
47
47
  left: y,
48
48
  width: h,
49
- maxHeight: Math[t(197)](120, Math[t(202)](u, p ? s : o)),
50
- ...p ? { bottom: window[t(192)] - a[t(199)] + c } : { top: a[t(215)] + c }
49
+ maxHeight: Math[t(509)](120, Math.min(u, p ? s : o)),
50
+ ...p ? { bottom: window[t(507)] - a[t(500)] + c } : { top: a[t(510)] + c }
51
51
  });
52
52
  };
53
- return n(), window[t(218)]("resize", n), window[t(218)](t(193), n, !0), () => {
53
+ return n(), window[t(524)](t(503), n), window.addEventListener("scroll", n, !0), () => {
54
54
  let e = t;
55
- window[e(212)](e(207), n), window[e(212)](e(193), n, !0);
55
+ window.removeEventListener(e(503), n), window.removeEventListener("scroll", n, !0);
56
56
  };
57
57
  }, [
58
58
  a,