@iamfiro/design 0.3.4 → 0.3.5

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 (158) hide show
  1. package/agents/app-shell/AGENTS.md +99 -1
  2. package/lib/components/Accordion/Accordion2.js +93 -93
  3. package/lib/components/ActionBar/ActionBar2.js +44 -40
  4. package/lib/components/Alert/Alert2.js +64 -64
  5. package/lib/components/AppShell/AppShell2.js +73 -66
  6. package/lib/components/AreaChart/AreaChart.js +49 -47
  7. package/lib/components/BarChart/BarChart2.js +107 -107
  8. package/lib/components/BarList/BarList2.js +99 -99
  9. package/lib/components/Breadcrumb/Breadcrumb2.js +53 -56
  10. package/lib/components/Calendar/Calendar2.js +164 -164
  11. package/lib/components/Calendar/DatePicker2.js +76 -77
  12. package/lib/components/Calendar/date.js +49 -70
  13. package/lib/components/Card/Card2.js +104 -77
  14. package/lib/components/CardFrame/CardFrame2.js +46 -42
  15. package/lib/components/Chart/ChartParts.js +73 -73
  16. package/lib/components/Chart/chart2.js +53 -53
  17. package/lib/components/Chart/useChartInteraction.js +49 -49
  18. package/lib/components/ChatBubble/ChatBubble2.js +118 -118
  19. package/lib/components/ChatBubble/formatChatTime.js +42 -41
  20. package/lib/components/ChatComposer/ChatComposer2.js +102 -102
  21. package/lib/components/CodeBlock/CodeBlock2.js +51 -51
  22. package/lib/components/CodeBlock/highlight.js +85 -85
  23. package/lib/components/ColorPicker/ColorPicker2.js +373 -374
  24. package/lib/components/ColorPicker/color.js +94 -94
  25. package/lib/components/ColorPicker/presets.js +47 -46
  26. package/lib/components/Combobox/Combobox2.js +118 -117
  27. package/lib/components/CommandMenu/CommandMenu.js +121 -122
  28. package/lib/components/Comment/Comment2.js +56 -81
  29. package/lib/components/ContextMenu/ContextMenu2.js +91 -93
  30. package/lib/components/DataGrid/DataGrid2.js +845 -845
  31. package/lib/components/DataGrid/GridPopover.js +97 -97
  32. package/lib/components/DataGrid/anchor.js +34 -36
  33. package/lib/components/DataGrid/model.js +299 -299
  34. package/lib/components/DataGrid/panels.js +393 -393
  35. package/lib/components/DataGrid/typeMeta.js +53 -53
  36. package/lib/components/DataGrid/types.js +22 -22
  37. package/lib/components/DescriptionList/DescriptionList2.js +57 -57
  38. package/lib/components/Dialog/AlertDialog.js +56 -56
  39. package/lib/components/Dialog/Dialog2.js +68 -69
  40. package/lib/components/Dialog/modal.js +61 -57
  41. package/lib/components/Drawer/Drawer2.js +161 -161
  42. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -267
  43. package/lib/components/DropdownMenu/menuCore.js +42 -68
  44. package/lib/components/Dropzone/Dropzone2.js +81 -81
  45. package/lib/components/EmptyState/EmptyState2.js +55 -54
  46. package/lib/components/FileChip/FileChip2.js +39 -63
  47. package/lib/components/FileUpload/FileUpload.js +157 -156
  48. package/lib/components/FilterChips/FilterChips2.js +51 -51
  49. package/lib/components/FunnelChart/FunnelChart2.js +171 -171
  50. package/lib/components/FunnelChart/funnel.js +55 -57
  51. package/lib/components/Highlight/Highlight2.js +48 -48
  52. package/lib/components/HoverCard/HoverCard.js +59 -59
  53. package/lib/components/InlineDiff/InlineDiff2.js +110 -111
  54. package/lib/components/InlineDiff/diff.js +89 -89
  55. package/lib/components/InlineDiff/useDiffReview.js +63 -65
  56. package/lib/components/Kanban/Kanban2.js +424 -425
  57. package/lib/components/Kanban/KanbanCard.js +98 -73
  58. package/lib/components/Kanban/move.js +52 -49
  59. package/lib/components/LineChart/LineChart2.js +222 -222
  60. package/lib/components/List/List2.js +60 -59
  61. package/lib/components/Listbox/Listbox2.js +117 -117
  62. package/lib/components/Marker/Marker2.js +58 -59
  63. package/lib/components/Menubar/Menubar2.js +121 -123
  64. package/lib/components/MultiSelect/MultiSelect2.js +115 -115
  65. package/lib/components/NavigationMenu/NavigationMenu2.js +277 -276
  66. package/lib/components/NoticeStack/NoticeStack2.js +98 -98
  67. package/lib/components/NumberStepper/NumberStepper2.js +67 -66
  68. package/lib/components/OtpInput/OtpInput2.js +93 -93
  69. package/lib/components/Pagination/Pagination2.js +87 -87
  70. package/lib/components/Pagination/paginationRange.js +39 -37
  71. package/lib/components/PhoneInput/PhoneInput.js +78 -78
  72. package/lib/components/PieChart/PieChart2.js +117 -117
  73. package/lib/components/PieChart/arc.js +57 -58
  74. package/lib/components/PieChart/useArcTween.js +45 -40
  75. package/lib/components/Popover/Popover2.js +73 -74
  76. package/lib/components/ProgressTracker/ProgressTracker2.js +128 -128
  77. package/lib/components/Rating/Rating2.js +95 -95
  78. package/lib/components/Resizable/Resizable2.js +86 -86
  79. package/lib/components/Resizable/layout.js +73 -73
  80. package/lib/components/ScaledPreview/ScaledPreview2.js +68 -68
  81. package/lib/components/ScatterChart/ScatterChart2.js +172 -172
  82. package/lib/components/ScatterChart/scatter.js +55 -56
  83. package/lib/components/ScrollArea/ScrollArea2.js +130 -131
  84. package/lib/components/Select/Select2.js +86 -85
  85. package/lib/components/Sidebar/Sidebar2.js +92 -86
  86. package/lib/components/Sidebar/rail.js +43 -0
  87. package/lib/components/Skeleton/Skeleton2.js +60 -61
  88. package/lib/components/Slider/Slider2.js +73 -73
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +54 -55
  90. package/lib/components/SparkChart/SparkChart2.js +140 -141
  91. package/lib/components/SparkChart/spark.js +50 -48
  92. package/lib/components/Sparkbar/Sparkbar2.js +56 -56
  93. package/lib/components/SplitView/SplitView2.js +47 -46
  94. package/lib/components/Stat/Stat2.js +61 -61
  95. package/lib/components/StepList/StepList2.js +76 -76
  96. package/lib/components/Table/Table2.js +70 -70
  97. package/lib/components/Tabs/Tabs2.js +85 -85
  98. package/lib/components/TagInput/TagInput2.js +217 -218
  99. package/lib/components/TimePicker/TimePicker2.js +217 -216
  100. package/lib/components/TimePicker/time.js +60 -58
  101. package/lib/components/Timeline/Timeline2.js +181 -181
  102. package/lib/components/Timeline/scale.js +60 -65
  103. package/lib/components/Toast/Toaster.js +146 -148
  104. package/lib/components/Toast/store.js +85 -85
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
  106. package/lib/components/Toolbar/Toolbar2.js +120 -121
  107. package/lib/components/Tracker/Tracker2.js +79 -79
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +116 -116
  109. package/lib/components/TreeView/TreeView2.js +162 -163
  110. package/lib/hooks/timing.js +32 -35
  111. package/lib/hooks/useControllableState.js +35 -35
  112. package/lib/hooks/useCountdown.js +53 -52
  113. package/lib/hooks/useDigitInput.js +82 -81
  114. package/lib/hooks/useDismiss.js +48 -48
  115. package/lib/hooks/useElapsed.js +40 -43
  116. package/lib/hooks/useFloating.js +47 -47
  117. package/lib/hooks/useFocusTrap.js +45 -69
  118. package/lib/hooks/usePresence.js +49 -50
  119. package/lib/hooks/usePressToOpen.js +43 -43
  120. package/lib/hooks/useScrollLock.js +45 -43
  121. package/lib/hooks/useSelection.js +44 -46
  122. package/lib/index.js +105 -106
  123. package/lib/primitives/AspectRatio2.js +57 -56
  124. package/lib/primitives/BrandIcon.js +177 -177
  125. package/lib/primitives/ColorDot2.js +44 -48
  126. package/lib/primitives/CopyButton2.js +54 -55
  127. package/lib/primitives/CountBadge2.js +45 -48
  128. package/lib/primitives/Countdown2.js +35 -37
  129. package/lib/primitives/Delta2.js +41 -41
  130. package/lib/primitives/Elapsed.js +43 -41
  131. package/lib/primitives/FileIcon2.js +94 -94
  132. package/lib/primitives/Flag2.js +97 -97
  133. package/lib/primitives/IconStack2.js +53 -55
  134. package/lib/primitives/IconTile2.js +45 -41
  135. package/lib/primitives/Kbd2.js +57 -57
  136. package/lib/primitives/Layout2.js +66 -66
  137. package/lib/primitives/Link2.js +42 -47
  138. package/lib/primitives/MaskedText2.js +47 -69
  139. package/lib/primitives/Progress2.js +71 -71
  140. package/lib/primitives/RelativeTime.js +47 -43
  141. package/lib/primitives/SearchInput2.js +70 -66
  142. package/lib/primitives/SelectorButton2.js +70 -67
  143. package/lib/primitives/Spinner2.js +58 -59
  144. package/lib/primitives/StatusIcon2.js +70 -70
  145. package/lib/primitives/Swatch2.js +57 -55
  146. package/lib/primitives/Tooltip2.js +78 -78
  147. package/lib/primitives/Typography2.js +54 -54
  148. package/lib/primitives/formatCountdown.js +37 -38
  149. package/lib/primitives/formatElapsed.js +46 -45
  150. package/lib/primitives/formatRelativeTime.js +43 -69
  151. package/lib/primitives/hotkey.js +66 -66
  152. package/lib/primitives/index.js +152 -152
  153. package/lib/primitives/maskValue.js +30 -32
  154. package/lib/style.css +1 -1
  155. package/lib/types/components/AppShell/AppShell.d.ts +9 -2
  156. package/lib/types/components/Sidebar/rail.d.ts +4 -0
  157. package/lib/types/components/index.d.ts +1 -0
  158. package/package.json +1 -1
@@ -1,70 +1,71 @@
1
1
  "use client";
2
- function e(n, r) {
3
- n -= 454;
4
- let i = t(), a = i[n];
5
- e.Wpenel === void 0 && (e.yTJdld = function(e) {
2
+ (function(e, n) {
3
+ let r = t, i = e();
4
+ for (;;) try {
5
+ if (-parseInt(r(330)) / 1 * (-parseInt(r(323)) / 2) + parseInt(r(326)) / 3 + -parseInt(r(319)) / 4 * (-parseInt(r(325)) / 5) + parseInt(r(324)) / 6 * (parseInt(r(322)) / 7) + parseInt(r(329)) / 8 + -parseInt(r(328)) / 9 + parseInt(r(327)) / 10 == n) break;
6
+ i.push(i.shift());
7
+ } catch {
8
+ i.push(i.shift());
9
+ }
10
+ })(e, 257175);
11
+ function e() {
12
+ let t = [
13
+ "y3vYCMvUDa",
14
+ "mZK4nZjey25Rvwu",
15
+ "mJjirNDuBvm",
16
+ "ndjsCfzbyM4",
17
+ "mtu2ntC1ze1vwKDz",
18
+ "otm3mdm1v3PgAwfY",
19
+ "mJm4mteWCMXps3PK",
20
+ "mZy1mtiZn2j1y3zOAa",
21
+ "mtmXntu3nMTjvfzKra",
22
+ "ntqZm29ZzNz1wq",
23
+ "BM93",
24
+ "y2XLyxjjBNrLCNzHBa",
25
+ "y2vPBa",
26
+ "ogzQywzRvG",
27
+ "Bwf4"
28
+ ];
29
+ return e = function() {
30
+ return t;
31
+ }, e();
32
+ }
33
+ function t(n, r) {
34
+ n -= 318;
35
+ let i = e(), a = i[n];
36
+ t.aZMlXg === void 0 && (t.RaqbnB = function(e) {
6
37
  let t = "", n = "";
7
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);
8
39
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
9
40
  return decodeURIComponent(n);
10
- }, e.pFCGFn = {}, e.Wpenel = !0);
41
+ }, t.UTTfVq = {}, t.aZMlXg = !0);
11
42
  let o = i[0];
12
- e.OKupYM !== o && (e.pFCGFn = {}, e.OKupYM = o);
13
- let s = e.pFCGFn[n];
14
- return s === void 0 ? (a = e.yTJdld(a), e.pFCGFn[n] = a) : a = s, a;
43
+ t.qunzlL !== o && (t.UTTfVq = {}, t.qunzlL = o);
44
+ let s = t.UTTfVq[n];
45
+ return s === void 0 ? (a = t.RaqbnB(a), t.UTTfVq[n] = a) : a = s, a;
15
46
  }
16
- function t() {
17
- let e = [
18
- "BM93",
19
- "mZbcuxPithe",
20
- "mtu3ne1RD1rYva",
21
- "mtqXDgfADw5m",
22
- "nJq0ntG0vuL1uw9W",
23
- "y2XLyxjjBNrLCNzHBa",
24
- "y3vYCMvUDa",
25
- "mJuZnZiZrKzdC0vg",
26
- "mJG4mJu1z3H4CxrT",
27
- "nJiXnJqWvNrku21y",
28
- "ntzdr2n6yKK",
29
- "mJG5nJy3ru1hs29t",
30
- "mJqXndq3nxHqv3rKsG",
31
- "y291BNrKB3DUvgLJAW"
32
- ];
33
- return t = function() {
34
- return e;
35
- }, t();
36
- }
37
- (function(t, n) {
38
- let r = e, i = t();
39
- for (;;) try {
40
- if (-parseInt(r(459)) / 1 + -parseInt(r(454)) / 2 * (-parseInt(r(455)) / 3) + parseInt(r(456)) / 4 + parseInt(r(460)) / 5 * (parseInt(r(467)) / 6) + -parseInt(r(463)) / 7 * (parseInt(r(462)) / 8) + parseInt(r(464)) / 9 + -parseInt(r(461)) / 10 == n) break;
41
- i.push(i.shift());
42
- } catch {
43
- i.push(i.shift());
44
- }
45
- })(t, 149111);
46
47
  import { TIMING as n } from "./timing.js";
47
48
  import { useCallback as r, useEffect as i, useRef as a, useState as o } from "react";
48
- function s(t, { running: s = !0, onComplete: c } = {}) {
49
- let [l, u] = o(t), [d, f] = o(0), [p, m] = o(t);
50
- t !== p && (m(t), u(t), f((e) => e + 1));
49
+ function s(e, { running: s = !0, onComplete: c } = {}) {
50
+ let [l, u] = o(e), [d, f] = o(0), [p, m] = o(e);
51
+ e !== p && (m(e), u(e), f((e) => e + 1));
51
52
  let h = a(l), g = a(c);
52
53
  i(() => {
53
- let t = e;
54
- h.current = l, g[t(458)] = c;
54
+ let e = t;
55
+ h[e(321)] = l, g[e(321)] = c;
55
56
  }), i(() => {
56
- let t = e, r = h[t(458)];
57
+ let e = t, r = h[e(321)];
57
58
  if (!s || r <= 0) return;
58
- let i = performance[t(466)]() + r * 1e3, a = window.setInterval(() => {
59
- let e = t, n = Math.max(0, Math.ceil((i - performance[e(466)]()) / 1e3));
60
- h[e(458)] = n, u(n), n <= 0 && (window[e(457)](a), g[e(458)]?.());
61
- }, n[t(465)]);
62
- return () => window[t(457)](a);
59
+ let i = performance.now() + r * 1e3, a = window.setInterval(() => {
60
+ let t = e, n = Math[t(320)](0, Math[t(318)]((i - performance[t(331)]()) / 1e3));
61
+ h[t(321)] = n, u(n), n <= 0 && (window[t(332)](a), g[t(321)]?.());
62
+ }, n.countdownTick);
63
+ return () => window.clearInterval(a);
63
64
  }, [s, d]);
64
- let _ = r((e) => {
65
- let n = e ?? t;
65
+ let _ = r((t) => {
66
+ let n = t ?? e;
66
67
  h.current = n, u(n), f((e) => e + 1);
67
- }, [t]);
68
+ }, [e]);
68
69
  return {
69
70
  remaining: l,
70
71
  done: l <= 0,
@@ -1,104 +1,105 @@
1
1
  "use client";
2
- const e = i;
3
- (function(e, t) {
4
- let n = i, r = e();
5
- for (;;) try {
6
- if (parseInt(n(490)) / 1 + parseInt(n(502)) / 2 + -parseInt(n(500)) / 3 + parseInt(n(504)) / 4 + parseInt(n(491)) / 5 * (parseInt(n(486)) / 6) + parseInt(n(488)) / 7 + -parseInt(n(495)) / 8 * (-parseInt(n(497)) / 9) == t) break;
7
- r.push(r.shift());
8
- } catch {
9
- r.push(r.shift());
10
- }
11
- })(s, 365975);
12
- import { useLayoutEffect as t, useRef as n } from "react";
13
- var r = (t) => t[e(499)](/\D/g, "");
14
- function i(e, t) {
15
- e -= 486;
16
- let n = s(), r = n[e];
17
- i.hSlCDF === void 0 && (i.KKbcSc = function(e) {
2
+ const e = n;
3
+ function t() {
4
+ let e = [
5
+ "mta2neDSB2XjtW",
6
+ "A2v5",
7
+ "mta0nZuZoxHNs2DMEq",
8
+ "y3vYCMvUDa",
9
+ "CMvWBgfJzq",
10
+ "nta2mdi0mgfYvNbfBq",
11
+ "DMfSDwu",
12
+ "odi0odaWCNHItgDO",
13
+ "qMfJA3nWywnL",
14
+ "C2vSzwn0Aw9Uu3rHCNq",
15
+ "B2zM",
16
+ "C2v0u2vSzwn0Aw9UuMfUz2u",
17
+ "mJeXmZa4zLLYwhH5",
18
+ "rgvSzxrL",
19
+ "DgvZDa",
20
+ "y3vYCMvUDfrHCMDLDa",
21
+ "mLHlC1rSyG",
22
+ "mJiWCKXOzhDk",
23
+ "ndqWmJaYnKjlrMfuCW",
24
+ "mta2mZaYodDIAMfWyMC",
25
+ "DgfYz2v0",
26
+ "BNvTzxjPyW",
27
+ "BgvUz3rO",
28
+ "BwLU",
29
+ "nZq3mLbKB3vYDW"
30
+ ];
31
+ return t = function() {
32
+ return e;
33
+ }, t();
34
+ }
35
+ function n(e, r) {
36
+ e -= 479;
37
+ let i = t(), a = i[e];
38
+ n.hLEaJO === void 0 && (n.HFAewI = function(e) {
18
39
  let t = "", n = "";
19
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);
20
41
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
21
42
  return decodeURIComponent(n);
22
- }, i.ltpicC = {}, i.hSlCDF = !0);
23
- let a = n[0];
24
- i.vwmPsN !== a && (i.ltpicC = {}, i.vwmPsN = a);
25
- let o = i.ltpicC[e];
26
- return o === void 0 ? (r = i.KKbcSc(r), i.ltpicC[e] = r) : r = o, r;
43
+ }, n.gUnlsN = {}, n.hLEaJO = !0);
44
+ let o = i[0];
45
+ n.AOEdYW !== o && (n.gUnlsN = {}, n.AOEdYW = o);
46
+ let s = n.gUnlsN[e];
47
+ return s === void 0 ? (a = n.HFAewI(a), n.gUnlsN[e] = a) : a = s, a;
27
48
  }
28
- function a(t, n) {
49
+ (function(e, t) {
50
+ let r = n, i = e();
51
+ for (;;) try {
52
+ if (-parseInt(r(490)) / 1 * (-parseInt(r(479)) / 2) + parseInt(r(481)) / 3 + parseInt(r(493)) / 4 + parseInt(r(480)) / 5 * (-parseInt(r(500)) / 6) + -parseInt(r(488)) / 7 * (parseInt(r(487)) / 8) + -parseInt(r(482)) / 9 + -parseInt(r(495)) / 10 == t) break;
53
+ i.push(i.shift());
54
+ } catch {
55
+ i.push(i.shift());
56
+ }
57
+ })(t, 824758);
58
+ import { useLayoutEffect as r, useRef as i } from "react";
59
+ var a = (t) => t[e(492)](/\D/g, "");
60
+ function o(t, n) {
29
61
  let r = e;
30
62
  if (n === 0) return 0;
31
63
  let i = 0;
32
- for (let e = 0; e < t[r(508)]; e++) if (/\d/[r(507)](t[e]) && ++i === n) return e + 1;
64
+ for (let e = 0; e < t[r(485)]; e++) if (/\d/[r(502)](t[e]) && ++i === n) return e + 1;
33
65
  return t.length;
34
66
  }
35
- function o({ digits: o, onDigitsChange: s, format: c = (e) => e, maxDigits: l }) {
36
- let u = e, d = n(null), f = n(null), p = c(o);
37
- return t(() => {
38
- let e = i, t = d[e(494)], n = f[e(494)];
39
- if (!t || n === null || document[e(498)] !== t) return;
40
- f[e(494)] = null;
41
- let r = a(t[e(506)], n);
42
- t[e(501)](r, r);
67
+ function s({ digits: t, onDigitsChange: s, format: c = (e) => e, maxDigits: l }) {
68
+ let u = e, d = i(null), f = i(null), p = c(t);
69
+ return r(() => {
70
+ let e = n, t = d.current, r = f[e(491)];
71
+ if (!t || r === null || document.activeElement !== t) return;
72
+ f.current = null;
73
+ let i = o(t.value, r);
74
+ t[e(499)](i, i);
43
75
  }), {
44
76
  ref: d,
45
77
  value: p,
46
78
  onChange: (e) => {
47
- let t = i, n = e[t(492)][t(506)], c = r(n.slice(0, e[t(492)][t(503)] ?? n[t(508)])).length, u = r(n)[t(493)](0, l);
48
- if (f[t(494)] = Math[t(487)](c, u[t(508)]), u !== o) s(u);
49
- else if (n !== p) {
50
- e[t(492)][t(506)] = p;
51
- let n = a(p, f[t(494)]);
52
- f.current = null, e[t(492)][t(501)](n, n);
79
+ let r = n, i = e[r(483)][r(494)], c = a(i.slice(0, e[r(483)][r(497)] ?? i[r(485)])).length, u = a(i).slice(0, l);
80
+ if (f[r(491)] = Math[r(486)](c, u[r(485)]), u !== t) s(u);
81
+ else if (i !== p) {
82
+ e.target[r(494)] = p;
83
+ let t = o(p, f[r(491)]);
84
+ f[r(491)] = null, e[r(483)][r(499)](t, t);
53
85
  }
54
86
  },
55
87
  onKeyDown: (e) => {
56
- let t = i, n = e[t(496)], { selectionStart: r, selectionEnd: a } = n;
57
- if (r !== null && r === a) {
58
- if (e.key === t(489)) {
59
- let e = r;
60
- for (; e > 0 && !/\d/.test(n[t(506)][e - 1]);) e--;
61
- e !== r && n[t(501)](e, e);
62
- } else if (e[t(505)] === "Delete") {
63
- let e = r;
64
- for (; e < n[t(506)][t(508)] && !/\d/[t(507)](n[t(506)][e]);) e++;
65
- e !== r && n[t(501)](e, e);
88
+ let t = n, r = e[t(503)], { selectionStart: i, selectionEnd: a } = r;
89
+ if (i !== null && i === a) {
90
+ if (e[t(489)] === t(496)) {
91
+ let e = i;
92
+ for (; e > 0 && !/\d/.test(r[t(494)][e - 1]);) e--;
93
+ e !== i && r[t(499)](e, e);
94
+ } else if (e[t(489)] === t(501)) {
95
+ let e = i;
96
+ for (; e < r.value[t(485)] && !/\d/[t(502)](r[t(494)][e]);) e++;
97
+ e !== i && r[t(499)](e, e);
66
98
  }
67
99
  }
68
100
  },
69
- inputMode: u(509),
70
- autoComplete: "off"
101
+ inputMode: u(484),
102
+ autoComplete: u(498)
71
103
  };
72
104
  }
73
- function s() {
74
- let e = [
75
- "mJaZodm1whzxyMTM",
76
- "mJe2otvuuKH4Auu",
77
- "DgfYz2v0",
78
- "C2XPy2u",
79
- "y3vYCMvUDa",
80
- "ogDsAgHjtG",
81
- "y3vYCMvUDfrHCMDLDa",
82
- "mZm5ntK2mvv5A0jVEG",
83
- "ywn0AxzLrwXLBwvUDa",
84
- "CMvWBgfJzq",
85
- "mtKZnJG0mMXPseX3BW",
86
- "C2v0u2vSzwn0Aw9UuMfUz2u",
87
- "mtKXnZG0wvfmv214",
88
- "C2vSzwn0Aw9Uu3rHCNq",
89
- "ntq1mdCYuMrLAu1K",
90
- "A2v5",
91
- "DMfSDwu",
92
- "DgvZDa",
93
- "BgvUz3rO",
94
- "BNvTzxjPyW",
95
- "mZbmzgf1tey",
96
- "BwLU",
97
- "mtiZntK5mfHTEePozW",
98
- "qMfJA3nWywnL"
99
- ];
100
- return s = function() {
101
- return e;
102
- }, s();
103
- }
104
- export { o as useDigitInput };
105
+ export { s as useDigitInput };
@@ -1,69 +1,69 @@
1
1
  "use client";
2
+ (function(e, t) {
3
+ let n = i, r = e();
4
+ for (;;) try {
5
+ if (parseInt(n(500)) / 1 + -parseInt(n(502)) / 2 * (parseInt(n(495)) / 3) + -parseInt(n(506)) / 4 + -parseInt(n(503)) / 5 + parseInt(n(496)) / 6 * (-parseInt(n(493)) / 7) + -parseInt(n(499)) / 8 * (-parseInt(n(498)) / 9) + parseInt(n(505)) / 10 == t) break;
6
+ r.push(r.shift());
7
+ } catch {
8
+ r.push(r.shift());
9
+ }
10
+ })(e, 108150);
2
11
  function e() {
3
12
  let t = [
4
- "nJzsC2jJrhi",
5
13
  "Cg9PBNrLCMrVD24",
6
- "nZmZnJa3nxHdzvLwDW",
7
- "mtG3mJyZCuvovvrp",
14
+ "mteWturbuhvx",
15
+ "mta2ndaXnuXHzhzXBa",
8
16
  "y3vYCMvUDa",
17
+ "nda2mZmYmgjzrKv6qq",
18
+ "nZaXmJrMwfDAvgG",
9
19
  "DgfYz2v0",
10
- "mZi0ntC5nNzpvMLXua",
20
+ "ywrKrxzLBNrmAxn0zw5LCG",
21
+ "nZK5ote4BM9cz3vd",
11
22
  "CMvTB3zLrxzLBNrmAxn0zw5LCG",
12
- "C29Tzq",
13
- "mti3mdC0ovbYvxneqW",
14
- "mta4nZu0mgLtwwH4wG",
15
- "mZuZodG2nMr5r1z5qG",
16
- "mJy0rfvnA2jN",
23
+ "odiWnw1ov2P6CG",
24
+ "nNzlvNz0qW",
17
25
  "y29UDgfPBNm",
18
- "otq3oda3EfbTrKHi"
26
+ "oxjrtvjJAG",
27
+ "mtiXnti1nKz1DKDxEa",
28
+ "ndq5ndrMv2zerNC"
19
29
  ];
20
30
  return e = function() {
21
31
  return t;
22
32
  }, e();
23
33
  }
24
- function t(n, r) {
25
- n -= 215;
26
- let i = e(), a = i[n];
27
- t.IgxarD === void 0 && (t.wezatp = function(e) {
28
- let t = "", n = "";
29
- 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);
30
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
31
- return decodeURIComponent(n);
32
- }, t.wjNtqZ = {}, t.IgxarD = !0);
33
- let o = i[0];
34
- t.PMgjLO !== o && (t.wjNtqZ = {}, t.PMgjLO = o);
35
- let s = t.wjNtqZ[n];
36
- return s === void 0 ? (a = t.wezatp(a), t.wjNtqZ[n] = a) : a = s, a;
37
- }
38
- (function(e, n) {
39
- let r = t, i = e();
40
- for (;;) try {
41
- if (-parseInt(r(221)) / 1 + -parseInt(r(222)) / 2 + parseInt(r(223)) / 3 + parseInt(r(218)) / 4 + parseInt(r(229)) / 5 + -parseInt(r(227)) / 6 * (parseInt(r(226)) / 7) + parseInt(r(224)) / 8 * (parseInt(r(215)) / 9) == n) break;
42
- i.push(i.shift());
43
- } catch {
44
- i.push(i.shift());
45
- }
46
- })(e, 840987);
47
- import { useEffect as n, useRef as r } from "react";
48
- function i(e, i, a) {
49
- let o = r({
50
- refs: i,
34
+ import { useEffect as t, useRef as n } from "react";
35
+ function r(e, r, a) {
36
+ let o = n({
37
+ refs: r,
51
38
  onDismiss: a
52
39
  });
53
- n(() => {
54
- let e = t;
55
- o[e(216)] = {
56
- refs: i,
40
+ t(() => {
41
+ o.current = {
42
+ refs: r,
57
43
  onDismiss: a
58
44
  };
59
- }), n(() => {
60
- let n = t;
45
+ }), t(() => {
46
+ let t = i;
61
47
  if (!e) return;
62
- let r = (e) => {
63
- let n = t, { refs: r, onDismiss: i } = o[n(216)];
64
- r[n(220)]((t) => t.current?.[n(225)](e[n(217)])) || i();
48
+ let n = (e) => {
49
+ let t = i, { refs: n, onDismiss: r } = o.current;
50
+ n.some((n) => n[t(504)]?.[t(497)](e[t(491)])) || r();
65
51
  };
66
- return document.addEventListener(n(228), r), () => document[n(219)](n(228), r);
52
+ return document[t(492)](t(501), n), () => document[t(494)](t(501), n);
67
53
  }, [e]);
68
54
  }
69
- export { i as useDismiss };
55
+ function i(t, n) {
56
+ t -= 491;
57
+ let r = e(), a = r[t];
58
+ i.eaIyiE === void 0 && (i.UrxRMx = function(e) {
59
+ let t = "", n = "";
60
+ 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);
61
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
62
+ return decodeURIComponent(n);
63
+ }, i.iMGyDy = {}, i.eaIyiE = !0);
64
+ let o = r[0];
65
+ i.HsyYsy !== o && (i.iMGyDy = {}, i.HsyYsy = o);
66
+ let s = i.iMGyDy[t];
67
+ return s === void 0 ? (a = i.UrxRMx(a), i.iMGyDy[t] = a) : a = s, a;
68
+ }
69
+ export { r as useDismiss };
@@ -1,83 +1,80 @@
1
1
  "use client";
2
- function e(t, n) {
3
- t -= 240;
4
- let r = c(), i = r[t];
5
- e.HClEap === void 0 && (e.bssYAr = function(e) {
2
+ function e(t, r) {
3
+ t -= 288;
4
+ let i = n(), a = i[t];
5
+ e.sGTHHP === void 0 && (e.cJwqTw = function(e) {
6
6
  let t = "", n = "";
7
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
8
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
9
9
  return decodeURIComponent(n);
10
- }, e.PGlQsR = {}, e.HClEap = !0);
11
- let a = r[0];
12
- e.yVYeiO !== a && (e.PGlQsR = {}, e.yVYeiO = a);
13
- let o = e.PGlQsR[t];
14
- return o === void 0 ? (i = e.bssYAr(i), e.PGlQsR[t] = i) : i = o, i;
10
+ }, e.GKHWQv = {}, e.sGTHHP = !0);
11
+ let o = i[0];
12
+ e.qANyDJ !== o && (e.GKHWQv = {}, e.qANyDJ = o);
13
+ let s = e.GKHWQv[t];
14
+ return s === void 0 ? (a = e.cJwqTw(a), e.GKHWQv[t] = a) : a = s, a;
15
15
  }
16
16
  const t = e;
17
17
  (function(t, n) {
18
18
  let r = e, i = t();
19
19
  for (;;) try {
20
- if (parseInt(r(259)) / 1 + -parseInt(r(243)) / 2 * (-parseInt(r(248)) / 3) + -parseInt(r(253)) / 4 * (parseInt(r(256)) / 5) + parseInt(r(252)) / 6 * (-parseInt(r(249)) / 7) + parseInt(r(247)) / 8 * (parseInt(r(257)) / 9) + parseInt(r(251)) / 10 * (-parseInt(r(245)) / 11) + parseInt(r(246)) / 12 * (parseInt(r(250)) / 13) == n) break;
20
+ if (-parseInt(r(291)) / 1 * (-parseInt(r(290)) / 2) + parseInt(r(288)) / 3 + -parseInt(r(293)) / 4 + parseInt(r(297)) / 5 + -parseInt(r(295)) / 6 * (parseInt(r(298)) / 7) + -parseInt(r(299)) / 8 * (-parseInt(r(303)) / 9) + -parseInt(r(294)) / 10 == n) break;
21
21
  i.push(i.shift());
22
22
  } catch {
23
23
  i.push(i.shift());
24
24
  }
25
- })(c, 402428);
26
- import { useCallback as n, useEffect as r, useLayoutEffect as i, useRef as a, useState as o } from "react";
27
- var s = (e) => e instanceof Date ? e[t(254)]() : typeof e === t(241) ? e : new Date(e)[t(254)]();
28
- function c() {
25
+ })(n, 539428);
26
+ function n() {
29
27
  let e = [
30
- "nNfPD0HPra",
31
- "otCYyM5wtvDk",
32
- "z2v0vgLTzq",
28
+ "mJy4ndyXmhbvuKzKCa",
33
29
  "y3vYCMvUDa",
34
- "mti5ntvhEfbNyNy",
35
- "ndu4otaXmgz1u01XzW",
30
+ "mZjICgnKBwy",
31
+ "nty4mJrJuhvsDKu",
36
32
  "zMXVB3i",
37
- "ntG5nJzZrLzYEfy",
33
+ "ody3ndi0uvPsEMnw",
34
+ "mty2mtGZntbRBNjlrw0",
35
+ "mte1ogjYBg9cyW",
36
+ "Bwf4",
37
+ "mJK1mJuWnxLhu29ezq",
38
+ "nZe1nfLABuTKyW",
39
+ "ogjty2jHtG",
40
+ "y2XLyxjuAw1LB3v0",
38
41
  "BM93",
39
42
  "BNvTyMvY",
40
- "Bwf4",
41
- "mKXowu9XqG",
42
- "C2v0vgLTzw91Da",
43
- "nZDkzKXUD3K",
44
- "mtm5odiWngjiAgL5ua",
45
- "ohnrBvfXvW",
46
- "mtaYodKZmwD3wMTHua",
47
- "mta2mJCXoxjHBvDbta",
48
- "nZHOBxnluuu",
49
- "nJeWmteWDLb2wgLS"
43
+ "mtK4nZi5mePjqKjWAq",
44
+ "z2v0vgLTzq"
50
45
  ];
51
- return c = function() {
46
+ return n = function() {
52
47
  return e;
53
- }, c();
48
+ }, n();
54
49
  }
55
- function l(e, { running: c = !0, endedAt: l, initial: u = 0 } = {}) {
56
- let d = t, f = e === void 0 ? void 0 : s(e), p = l === void 0 ? void 0 : s(l), m = f !== void 0 && p !== void 0, h = c && !m, [g, _] = o(Math.max(0, Math[d(258)](u))), [v, y] = o(0), b = a(Math[d(242)](0, u) * 1e3), x = a(h), S = a(!1);
57
- r(() => {
50
+ import { useCallback as r, useEffect as i, useLayoutEffect as a, useRef as o, useState as s } from "react";
51
+ var c = (e) => e instanceof Date ? e.getTime() : typeof e === t(302) ? e : new Date(e)[t(304)]();
52
+ function l(e, { running: n = !0, endedAt: l, initial: u = 0 } = {}) {
53
+ 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(296)](0, Math[d(292)](u))), [v, y] = s(0), b = o(Math.max(0, u) * 1e3), x = o(h), S = o(!1);
54
+ i(() => {
58
55
  x.current = h;
59
- }), i(() => {
56
+ }), a(() => {
60
57
  let e = d;
61
58
  if (!h) return;
62
- let t = performance.now(), n = 0, r = () => f === void 0 ? b[e(255)] + performance.now() - t : Date[e(240)]() - f, i = () => {
63
- let t = e, a = Math[t(242)](0, r());
64
- _(Math[t(258)](a / 1e3)), n = window[t(244)](i, 1e3 - a % 1e3 + 8);
59
+ let t = performance[e(301)](), n = 0, r = () => f === void 0 ? b[e(289)] + performance.now() - t : Date.now() - f, i = () => {
60
+ let t = e, a = Math.max(0, r());
61
+ _(Math[t(292)](a / 1e3)), n = window.setTimeout(i, 1e3 - a % 1e3 + 8);
65
62
  };
66
63
  return i(), () => {
67
64
  let r = e;
68
- window.clearTimeout(n), f === void 0 && (S[r(255)] ? (S[r(255)] = !1, b[r(255)] = 0) : b[r(255)] += performance[r(240)]() - t);
65
+ window[r(300)](n), f === void 0 && (S[r(289)] ? (S[r(289)] = !1, b[r(289)] = 0) : b.current += performance[r(301)]() - t);
69
66
  };
70
67
  }, [
71
68
  h,
72
69
  f,
73
70
  v
74
71
  ]);
75
- let C = n(() => {
72
+ let C = r(() => {
76
73
  let e = d;
77
- x[e(255)] ? S.current = !0 : b[e(255)] = 0, _(0), y((e) => e + 1);
74
+ x[e(289)] ? S.current = !0 : b[e(289)] = 0, _(0), y((e) => e + 1);
78
75
  }, []);
79
76
  return {
80
- elapsed: m ? Math[d(242)](0, Math[d(258)]((p - f) / 1e3)) : g,
77
+ elapsed: m ? Math.max(0, Math[d(292)]((p - f) / 1e3)) : g,
81
78
  running: h,
82
79
  reset: C
83
80
  };