neatkit 0.4.0 → 0.4.1

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.
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsx as a, jsxs as O, Fragment as je } from "react/jsx-runtime";
3
- import { forwardRef as g, useState as $, createElement as Oe, isValidElement as Ze, Fragment as _e, createContext as qe, useContext as Ne, useRef as D, useCallback as W, useEffect as q, Children as an, useLayoutEffect as ln, useId as Le, cloneElement as Pe, useReducer as Cn, useMemo as Me, version as Zn } from "react";
4
- import { createPortal as qn } from "react-dom";
5
- const $n = 36, Pn = [2, 4, 8, 12, 16, 24, 32, 48], un = {
3
+ import { forwardRef as g, useState as $, createElement as Ae, isValidElement as Ze, Fragment as _e, createContext as qe, useContext as Ne, useRef as D, useCallback as W, useEffect as q, Children as ln, useLayoutEffect as $e, useId as Le, cloneElement as Pe, useReducer as xn, useMemo as Me, version as jn } from "react";
4
+ import { createPortal as Zn } from "react-dom";
5
+ const qn = 36, Cn = [2, 4, 8, 12, 16, 24, 32, 48], dn = {
6
6
  sm: 768,
7
7
  md: 960,
8
8
  lg: 1440,
@@ -10,33 +10,33 @@ const $n = 36, Pn = [2, 4, 8, 12, 16, 24, 32, 48], un = {
10
10
  };
11
11
  ({
12
12
  ...Object.fromEntries(
13
- Pn.map((n) => [`--nk-space-${n}`, `${n}px`])
13
+ Cn.map((n) => [`--nk-space-${n}`, `${n}px`])
14
14
  )
15
15
  });
16
16
  function mr(n) {
17
17
  if (typeof n != "number" || !Number.isFinite(n))
18
18
  throw new RangeError("Cell amount must be a finite number.");
19
- const t = n * $n;
19
+ const t = n * qn;
20
20
  if (!Number.isFinite(t))
21
21
  throw new RangeError("Calculated cell value must be finite.");
22
22
  return t;
23
23
  }
24
24
  function gr(n) {
25
- if (!Pn.some((t) => t === n))
25
+ if (!Cn.some((t) => t === n))
26
26
  throw new RangeError(`Unsupported spacing size: ${String(n)}.`);
27
27
  return n;
28
28
  }
29
29
  function Ce(n) {
30
- if (!Object.prototype.hasOwnProperty.call(un, n))
30
+ if (!Object.prototype.hasOwnProperty.call(dn, n))
31
31
  throw new RangeError(`Unsupported breakpoint: ${String(n)}.`);
32
- return un[n];
32
+ return dn[n];
33
33
  }
34
34
  function wr(n) {
35
35
  if (typeof n != "number" || !Number.isFinite(n))
36
36
  throw new RangeError("Pixel value must be a finite number.");
37
37
  return `${n}px`;
38
38
  }
39
- const Fe = g(function(t, e) {
39
+ const He = g(function(t, e) {
40
40
  const { children: o, className: i, ...r } = t;
41
41
  return /* @__PURE__ */ a(
42
42
  "div",
@@ -56,7 +56,7 @@ const Fe = g(function(t, e) {
56
56
  ...s
57
57
  } = t;
58
58
  return /* @__PURE__ */ O(
59
- Fe,
59
+ He,
60
60
  {
61
61
  ...s,
62
62
  ref: e,
@@ -70,10 +70,10 @@ const Fe = g(function(t, e) {
70
70
  }
71
71
  );
72
72
  });
73
- function Gn(n) {
73
+ function $n(n) {
74
74
  return (Array.from((n == null ? void 0 : n.trim()) ?? "")[0] ?? "?").trim().toUpperCase() || "?";
75
75
  }
76
- function Kn(n) {
76
+ function Gn(n) {
77
77
  if (n === "?") return "neutral";
78
78
  const t = Array.from(n)[0] ?? "";
79
79
  if ("AJO".includes(t)) return "1";
@@ -93,7 +93,7 @@ const yr = g(function(t, e) {
93
93
  size: l = 32,
94
94
  style: s,
95
95
  ...u
96
- } = t, [f, d] = $(), c = !!r && r !== f, p = (o == null ? void 0 : o.trim()) ?? "", v = Gn(p), m = typeof l == "number" ? `${l}px` : l, x = p ? { "aria-label": p, role: "img" } : { "aria-hidden": !0, role: void 0 };
96
+ } = t, [f, d] = $(), c = !!r && r !== f, p = (o == null ? void 0 : o.trim()) ?? "", v = $n(p), m = typeof l == "number" ? `${l}px` : l, x = p ? { "aria-label": p, role: "img" } : { "aria-hidden": !0, role: void 0 };
97
97
  function b() {
98
98
  d(r);
99
99
  }
@@ -104,7 +104,7 @@ const yr = g(function(t, e) {
104
104
  ...c ? void 0 : x,
105
105
  ref: e,
106
106
  className: ["nk-avatar", i].filter(Boolean).join(" "),
107
- "data-palette": Kn(v),
107
+ "data-palette": Gn(v),
108
108
  "data-state": c ? "image" : "fallback",
109
109
  style: { ...s, "--nk-avatar-size": m },
110
110
  children: c ? /* @__PURE__ */ a(
@@ -137,7 +137,7 @@ const yr = g(function(t, e) {
137
137
  children: o
138
138
  }
139
139
  );
140
- }), Un = g(function(t, e) {
140
+ }), Kn = g(function(t, e) {
141
141
  const { height: o = 14, width: i = 14, ...r } = t;
142
142
  return /* @__PURE__ */ a(
143
143
  "svg",
@@ -160,7 +160,7 @@ const yr = g(function(t, e) {
160
160
  )
161
161
  }
162
162
  );
163
- }), Yn = g(function(t, e) {
163
+ }), Un = g(function(t, e) {
164
164
  const { height: o = 14, width: i = 14, ...r } = t;
165
165
  return /* @__PURE__ */ a(
166
166
  "svg",
@@ -184,7 +184,7 @@ const yr = g(function(t, e) {
184
184
  )
185
185
  }
186
186
  );
187
- }), Xn = g(function(t, e) {
187
+ }), Yn = g(function(t, e) {
188
188
  const { height: o = 14, width: i = 14, ...r } = t;
189
189
  return /* @__PURE__ */ a(
190
190
  "svg",
@@ -208,7 +208,7 @@ const yr = g(function(t, e) {
208
208
  )
209
209
  }
210
210
  );
211
- }), Qn = g(function(t, e) {
211
+ }), Xn = g(function(t, e) {
212
212
  const { height: o = 14, width: i = 14, ...r } = t;
213
213
  return /* @__PURE__ */ O(
214
214
  "svg",
@@ -254,7 +254,7 @@ const yr = g(function(t, e) {
254
254
  ]
255
255
  }
256
256
  );
257
- }), Jn = g(function(t, e) {
257
+ }), Qn = g(function(t, e) {
258
258
  const { height: o = 14, width: i = 14, ...r } = t;
259
259
  return /* @__PURE__ */ a(
260
260
  "svg",
@@ -269,7 +269,7 @@ const yr = g(function(t, e) {
269
269
  children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M13 2.229c0-.413-.112-.818-.324-1.17a2.2 2.2 0 0 0-.88-.822A2.15 2.15 0 0 0 9.51.441c-.325.246-.577.58-.726.964a2.27 2.27 0 0 0 .4 2.303c.27.308.618.534 1.006.652v.095c0 .507-.197.992-.548 1.35a1.86 1.86 0 0 1-1.325.559H5.82c-.675.007-1.33.23-1.874.636V4.36a2.2 2.2 0 0 0 1.218-.936A2.26 2.26 0 0 0 4.751.542 2.16 2.16 0 0 0 3.322 0c-.525 0-1.032.193-1.43.542a2.26 2.26 0 0 0-.413 2.882c.283.451.716.783 1.219.936v5.28a2.2 2.2 0 0 0-1.218.936 2.26 2.26 0 0 0 .413 2.882c.397.35.904.542 1.43.542.524 0 1.031-.193 1.428-.542a2.26 2.26 0 0 0 .413-2.882 2.2 2.2 0 0 0-1.218-.936v-.095c0-.507.198-.992.55-1.35a1.86 1.86 0 0 1 1.324-.559h2.497c.828 0 1.622-.335 2.208-.931a3.2 3.2 0 0 0 .914-2.25V4.36c.45-.137.846-.418 1.127-.802S13 2.708 13 2.229" })
270
270
  }
271
271
  );
272
- }), et = g(function(t, e) {
272
+ }), Jn = g(function(t, e) {
273
273
  const { height: o = 14, width: i = 14, ...r } = t;
274
274
  return /* @__PURE__ */ O(
275
275
  "svg",
@@ -288,7 +288,7 @@ const yr = g(function(t, e) {
288
288
  ]
289
289
  }
290
290
  );
291
- }), nt = g(function(t, e) {
291
+ }), et = g(function(t, e) {
292
292
  const { height: o = 14, width: i = 14, ...r } = t;
293
293
  return /* @__PURE__ */ O(
294
294
  "svg",
@@ -320,7 +320,7 @@ const yr = g(function(t, e) {
320
320
  ]
321
321
  }
322
322
  );
323
- }), tt = g(function(t, e) {
323
+ }), nt = g(function(t, e) {
324
324
  const { height: o = 14, width: i = 14, ...r } = t;
325
325
  return /* @__PURE__ */ a(
326
326
  "svg",
@@ -341,7 +341,7 @@ const yr = g(function(t, e) {
341
341
  )
342
342
  }
343
343
  );
344
- }), ot = g(function(t, e) {
344
+ }), tt = g(function(t, e) {
345
345
  const { height: o = 14, width: i = 14, ...r } = t;
346
346
  return /* @__PURE__ */ a(
347
347
  "svg",
@@ -364,7 +364,7 @@ const yr = g(function(t, e) {
364
364
  )
365
365
  }
366
366
  );
367
- }), rt = g(function(t, e) {
367
+ }), ot = g(function(t, e) {
368
368
  const { height: o = 14, width: i = 14, ...r } = t;
369
369
  return /* @__PURE__ */ a(
370
370
  "svg",
@@ -388,7 +388,7 @@ const yr = g(function(t, e) {
388
388
  )
389
389
  }
390
390
  );
391
- }), it = g(function(t, e) {
391
+ }), rt = g(function(t, e) {
392
392
  const { height: o = 14, width: i = 14, ...r } = t;
393
393
  return /* @__PURE__ */ a(
394
394
  "svg",
@@ -412,7 +412,7 @@ const yr = g(function(t, e) {
412
412
  )
413
413
  }
414
414
  );
415
- }), at = g(function(t, e) {
415
+ }), it = g(function(t, e) {
416
416
  const { height: o = 14, width: i = 14, ...r } = t;
417
417
  return /* @__PURE__ */ a(
418
418
  "svg",
@@ -436,7 +436,7 @@ const yr = g(function(t, e) {
436
436
  )
437
437
  }
438
438
  );
439
- }), lt = g(function(t, e) {
439
+ }), at = g(function(t, e) {
440
440
  const { height: o = 14, width: i = 14, ...r } = t;
441
441
  return /* @__PURE__ */ a(
442
442
  "svg",
@@ -460,7 +460,7 @@ const yr = g(function(t, e) {
460
460
  )
461
461
  }
462
462
  );
463
- }), st = g(function(t, e) {
463
+ }), lt = g(function(t, e) {
464
464
  const { height: o = 14, width: i = 14, ...r } = t;
465
465
  return /* @__PURE__ */ a(
466
466
  "svg",
@@ -475,7 +475,7 @@ const yr = g(function(t, e) {
475
475
  children: /* @__PURE__ */ a("path", { fill: "currentColor", fillRule: "evenodd", d: "M10.391 7.868a3.501 3.501 0 0 1-6.782 0 1 1 0 0 1-.109.007H.875a.875.875 0 1 1 0-1.75H3.5q.055 0 .109.007a3.501 3.501 0 0 1 6.782 0 1 1 0 0 1 .109-.007h2.625a.875.875 0 1 1 0 1.75H10.5a1 1 0 0 1-.109-.007M7 8.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5", clipRule: "evenodd" })
476
476
  }
477
477
  );
478
- }), ct = g(function(t, e) {
478
+ }), st = g(function(t, e) {
479
479
  const { height: o = 14, width: i = 14, ...r } = t;
480
480
  return /* @__PURE__ */ a(
481
481
  "svg",
@@ -498,7 +498,7 @@ const yr = g(function(t, e) {
498
498
  )
499
499
  }
500
500
  );
501
- }), dt = g(function(t, e) {
501
+ }), ct = g(function(t, e) {
502
502
  const { height: o = 14, width: i = 14, ...r } = t;
503
503
  return /* @__PURE__ */ a(
504
504
  "svg",
@@ -522,7 +522,7 @@ const yr = g(function(t, e) {
522
522
  )
523
523
  }
524
524
  );
525
- }), ut = g(function(t, e) {
525
+ }), dt = g(function(t, e) {
526
526
  const { height: o = 14, width: i = 14, ...r } = t;
527
527
  return /* @__PURE__ */ a(
528
528
  "svg",
@@ -543,7 +543,7 @@ const yr = g(function(t, e) {
543
543
  )
544
544
  }
545
545
  );
546
- }), ft = g(function(t, e) {
546
+ }), ut = g(function(t, e) {
547
547
  const { height: o = 14, width: i = 14, ...r } = t;
548
548
  return /* @__PURE__ */ O(
549
549
  "svg",
@@ -577,7 +577,7 @@ const yr = g(function(t, e) {
577
577
  ]
578
578
  }
579
579
  );
580
- }), ht = g(function(t, e) {
580
+ }), ft = g(function(t, e) {
581
581
  const { height: o = 14, width: i = 14, ...r } = t;
582
582
  return /* @__PURE__ */ O(
583
583
  "svg",
@@ -607,7 +607,7 @@ const yr = g(function(t, e) {
607
607
  ]
608
608
  }
609
609
  );
610
- }), pt = g(function(t, e) {
610
+ }), ht = g(function(t, e) {
611
611
  const { height: o = 14, width: i = 14, ...r } = t;
612
612
  return /* @__PURE__ */ a(
613
613
  "svg",
@@ -631,7 +631,7 @@ const yr = g(function(t, e) {
631
631
  )
632
632
  }
633
633
  );
634
- }), vt = g(function(t, e) {
634
+ }), pt = g(function(t, e) {
635
635
  const { height: o = 14, width: i = 14, ...r } = t;
636
636
  return /* @__PURE__ */ a(
637
637
  "svg",
@@ -646,7 +646,7 @@ const yr = g(function(t, e) {
646
646
  children: /* @__PURE__ */ a("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M12 5.5v4.867c0 .746 0 1.12-.14 1.405a1.3 1.3 0 0 1-.562.583c-.275.145-.635.145-1.355.145H4.557c-.72 0-1.08 0-1.355-.145a1.3 1.3 0 0 1-.562-.583c-.14-.285-.14-.659-.14-1.405V3.633c0-.746 0-1.12.14-1.405.123-.25.32-.455.562-.583.275-.145.635-.145 1.355-.145h3.586M12 5.5l-3.857-4M12 5.5H8.786a.655.655 0 0 1-.643-.667V1.5" })
647
647
  }
648
648
  );
649
- }), mt = g(function(t, e) {
649
+ }), vt = g(function(t, e) {
650
650
  const { height: o = 14, width: i = 14, ...r } = t;
651
651
  return /* @__PURE__ */ a(
652
652
  "svg",
@@ -661,7 +661,7 @@ const yr = g(function(t, e) {
661
661
  children: /* @__PURE__ */ a("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M2.49 2.25H5.19c.413 0 .508.004.588.021q.133.03.243.093c.064.036.128.088.421.358l.098.09c.244.224.45.42.7.56q.232.13.486.205l.17.044c.278.061.564.058.912.058h2.702c.447 0 .74 0 .966.017.217.017.307.045.356.068a.75.75 0 0 1 .342.308c.013.024.04.084.056.27.018.198.019.459.019.872v5c0 .413-.001.675-.019.872-.016.186-.043.246-.056.27a.75.75 0 0 1-.342.309c-.049.023-.139.051-.356.067-.225.017-.52.018-.966.018H2.489c-.447 0-.74 0-.966-.018-.217-.016-.307-.044-.356-.067a.75.75 0 0 1-.342-.309c-.013-.024-.04-.084-.056-.27a11 11 0 0 1-.019-.872V3.786c0-.413.001-.675.019-.872.016-.186.043-.246.056-.27a.75.75 0 0 1 .342-.309c.049-.023.139-.051.356-.067.225-.017.52-.018.966-.018" })
662
662
  }
663
663
  );
664
- }), gt = g(function(t, e) {
664
+ }), mt = g(function(t, e) {
665
665
  const { height: o = 14, width: i = 14, ...r } = t;
666
666
  return /* @__PURE__ */ a(
667
667
  "svg",
@@ -682,7 +682,7 @@ const yr = g(function(t, e) {
682
682
  )
683
683
  }
684
684
  );
685
- }), wt = g(function(t, e) {
685
+ }), gt = g(function(t, e) {
686
686
  const { height: o = 14, width: i = 14, ...r } = t;
687
687
  return /* @__PURE__ */ a(
688
688
  "svg",
@@ -705,7 +705,7 @@ const yr = g(function(t, e) {
705
705
  )
706
706
  }
707
707
  );
708
- }), bt = g(function(t, e) {
708
+ }), wt = g(function(t, e) {
709
709
  const { height: o = 14, width: i = 14, ...r } = t;
710
710
  return /* @__PURE__ */ a(
711
711
  "svg",
@@ -728,7 +728,7 @@ const yr = g(function(t, e) {
728
728
  )
729
729
  }
730
730
  );
731
- }), yt = g(function(t, e) {
731
+ }), bt = g(function(t, e) {
732
732
  const { height: o = 14, width: i = 14, ...r } = t;
733
733
  return /* @__PURE__ */ a(
734
734
  "svg",
@@ -749,7 +749,7 @@ const yr = g(function(t, e) {
749
749
  )
750
750
  }
751
751
  );
752
- }), kt = g(function(t, e) {
752
+ }), yt = g(function(t, e) {
753
753
  const { height: o = 14, width: i = 14, ...r } = t;
754
754
  return /* @__PURE__ */ a(
755
755
  "svg",
@@ -770,7 +770,7 @@ const yr = g(function(t, e) {
770
770
  )
771
771
  }
772
772
  );
773
- }), It = g(function(t, e) {
773
+ }), kt = g(function(t, e) {
774
774
  const { height: o = 14, width: i = 14, ...r } = t;
775
775
  return /* @__PURE__ */ O(
776
776
  "svg",
@@ -797,7 +797,7 @@ const yr = g(function(t, e) {
797
797
  ]
798
798
  }
799
799
  );
800
- }), xt = g(function(t, e) {
800
+ }), It = g(function(t, e) {
801
801
  const { height: o = 14, width: i = 14, ...r } = t;
802
802
  return /* @__PURE__ */ a(
803
803
  "svg",
@@ -820,7 +820,7 @@ const yr = g(function(t, e) {
820
820
  )
821
821
  }
822
822
  );
823
- }), Ct = g(function(t, e) {
823
+ }), xt = g(function(t, e) {
824
824
  const { height: o = 14, width: i = 14, ...r } = t;
825
825
  return /* @__PURE__ */ a(
826
826
  "svg",
@@ -843,7 +843,7 @@ const yr = g(function(t, e) {
843
843
  )
844
844
  }
845
845
  );
846
- }), Pt = g(function(t, e) {
846
+ }), Ct = g(function(t, e) {
847
847
  const { height: o = 14, width: i = 14, ...r } = t;
848
848
  return /* @__PURE__ */ O(
849
849
  "svg",
@@ -879,7 +879,7 @@ const yr = g(function(t, e) {
879
879
  ]
880
880
  }
881
881
  );
882
- }), _t = g(function(t, e) {
882
+ }), Pt = g(function(t, e) {
883
883
  const { height: o = 14, width: i = 14, ...r } = t;
884
884
  return /* @__PURE__ */ a(
885
885
  "svg",
@@ -902,7 +902,7 @@ const yr = g(function(t, e) {
902
902
  )
903
903
  }
904
904
  );
905
- }), Nt = g(function(t, e) {
905
+ }), _t = g(function(t, e) {
906
906
  const { height: o = 14, width: i = 14, ...r } = t;
907
907
  return /* @__PURE__ */ a(
908
908
  "svg",
@@ -923,7 +923,7 @@ const yr = g(function(t, e) {
923
923
  )
924
924
  }
925
925
  );
926
- }), Lt = g(function(t, e) {
926
+ }), Nt = g(function(t, e) {
927
927
  const { height: o = 14, width: i = 14, ...r } = t;
928
928
  return /* @__PURE__ */ a(
929
929
  "svg",
@@ -946,7 +946,7 @@ const yr = g(function(t, e) {
946
946
  )
947
947
  }
948
948
  );
949
- }), Mt = g(function(t, e) {
949
+ }), Lt = g(function(t, e) {
950
950
  const { height: o = 14, width: i = 14, ...r } = t;
951
951
  return /* @__PURE__ */ O(
952
952
  "svg",
@@ -966,7 +966,7 @@ const yr = g(function(t, e) {
966
966
  ]
967
967
  }
968
968
  );
969
- }), Et = g(function(t, e) {
969
+ }), Mt = g(function(t, e) {
970
970
  const { height: o = 14, width: i = 14, ...r } = t;
971
971
  return /* @__PURE__ */ a(
972
972
  "svg",
@@ -984,7 +984,7 @@ const yr = g(function(t, e) {
984
984
  ] })
985
985
  }
986
986
  );
987
- }), St = g(function(t, e) {
987
+ }), Et = g(function(t, e) {
988
988
  const { height: o = 14, width: i = 14, ...r } = t;
989
989
  return /* @__PURE__ */ a(
990
990
  "svg",
@@ -1007,7 +1007,7 @@ const yr = g(function(t, e) {
1007
1007
  )
1008
1008
  }
1009
1009
  );
1010
- }), Rt = g(function(t, e) {
1010
+ }), St = g(function(t, e) {
1011
1011
  const { height: o = 14, width: i = 14, ...r } = t;
1012
1012
  return /* @__PURE__ */ O(
1013
1013
  "svg",
@@ -1025,7 +1025,7 @@ const yr = g(function(t, e) {
1025
1025
  ]
1026
1026
  }
1027
1027
  );
1028
- }), Tt = g(function(t, e) {
1028
+ }), Rt = g(function(t, e) {
1029
1029
  const { height: o = 14, width: i = 14, ...r } = t;
1030
1030
  return /* @__PURE__ */ a(
1031
1031
  "svg",
@@ -1046,7 +1046,7 @@ const yr = g(function(t, e) {
1046
1046
  )
1047
1047
  }
1048
1048
  );
1049
- }), Vt = g(function(t, e) {
1049
+ }), Tt = g(function(t, e) {
1050
1050
  const { height: o = 14, width: i = 14, ...r } = t;
1051
1051
  return /* @__PURE__ */ O(
1052
1052
  "svg",
@@ -1070,7 +1070,7 @@ const yr = g(function(t, e) {
1070
1070
  ]
1071
1071
  }
1072
1072
  );
1073
- }), At = g(function(t, e) {
1073
+ }), Vt = g(function(t, e) {
1074
1074
  const { height: o = 14, width: i = 14, ...r } = t;
1075
1075
  return /* @__PURE__ */ a(
1076
1076
  "svg",
@@ -1085,7 +1085,7 @@ const yr = g(function(t, e) {
1085
1085
  children: /* @__PURE__ */ a("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M4.031 4.031h.006M6.195 1.5H4.5c-1.05 0-1.575 0-1.976.204-.353.18-.64.467-.82.82-.204.4-.204.926-.204 1.976v1.695c0 .458 0 .688.052.904.046.19.121.374.224.542.116.189.278.35.603.675l2.937 2.938c.743.742 1.114 1.114 1.542 1.253.377.122.782.122 1.159 0 .428-.14.8-.51 1.542-1.253l1.695-1.695c.742-.743 1.114-1.114 1.253-1.542a1.88 1.88 0 0 0 0-1.159c-.14-.428-.51-.8-1.253-1.542L8.316 2.38c-.324-.325-.486-.487-.675-.603a1.9 1.9 0 0 0-.542-.224C6.883 1.5 6.653 1.5 6.195 1.5M4.344 4.031a.312.312 0 1 1-.625 0 .312.312 0 0 1 .625 0" })
1086
1086
  }
1087
1087
  );
1088
- }), Ot = g(function(t, e) {
1088
+ }), At = g(function(t, e) {
1089
1089
  const { height: o = 14, width: i = 14, ...r } = t;
1090
1090
  return /* @__PURE__ */ a(
1091
1091
  "svg",
@@ -1106,7 +1106,7 @@ const yr = g(function(t, e) {
1106
1106
  )
1107
1107
  }
1108
1108
  );
1109
- }), Bt = g(function(t, e) {
1109
+ }), Ot = g(function(t, e) {
1110
1110
  const { height: o = 14, width: i = 14, ...r } = t;
1111
1111
  return /* @__PURE__ */ O(
1112
1112
  "svg",
@@ -1141,7 +1141,7 @@ const yr = g(function(t, e) {
1141
1141
  ]
1142
1142
  }
1143
1143
  );
1144
- }), Dt = g(function(t, e) {
1144
+ }), Bt = g(function(t, e) {
1145
1145
  const { height: o = 14, width: i = 14, ...r } = t;
1146
1146
  return /* @__PURE__ */ a(
1147
1147
  "svg",
@@ -1162,51 +1162,51 @@ const yr = g(function(t, e) {
1162
1162
  )
1163
1163
  }
1164
1164
  );
1165
- }), Ht = {
1166
- projects: Mt,
1167
- chat: tt,
1168
- articles: Un,
1169
- mail: Pt,
1170
- github: wt,
1171
- globe: bt,
1172
- linkedin: Ct,
1173
- reddit: St,
1174
- exit: pt,
1175
- camera: nt,
1176
- "qr-code": Et,
1177
- download: dt,
1178
- save: Tt,
1179
- pencil: Nt,
1180
- "arrow-left": Yn,
1181
- "arrow-right": Xn,
1182
- cross: ct,
1183
- checkmark: ot,
1184
- plus: Lt,
1185
- minus: _t,
1186
- window: Dt,
1187
- user: Ot,
1188
- duplicate: ut,
1189
- eye: ft,
1190
- "eye-off": ht,
1191
- signal: Vt,
1192
- audio: Qn,
1193
- hardware: yt,
1194
- burger: et,
1195
- repository: Rt,
1196
- "chevron-down": rt,
1197
- "chevron-up": lt,
1198
- "chevron-left": it,
1199
- "chevron-right": at,
1200
- branch: Jn,
1201
- commit: st,
1202
- folder: mt,
1203
- file: vt,
1204
- tag: At,
1205
- key: xt,
1206
- git: gt,
1207
- home: kt,
1208
- info: It,
1209
- warning: Bt
1165
+ }), Dt = {
1166
+ projects: Lt,
1167
+ chat: nt,
1168
+ articles: Kn,
1169
+ mail: Ct,
1170
+ github: gt,
1171
+ globe: wt,
1172
+ linkedin: xt,
1173
+ reddit: Et,
1174
+ exit: ht,
1175
+ camera: et,
1176
+ "qr-code": Mt,
1177
+ download: ct,
1178
+ save: Rt,
1179
+ pencil: _t,
1180
+ "arrow-left": Un,
1181
+ "arrow-right": Yn,
1182
+ cross: st,
1183
+ checkmark: tt,
1184
+ plus: Nt,
1185
+ minus: Pt,
1186
+ window: Bt,
1187
+ user: At,
1188
+ duplicate: dt,
1189
+ eye: ut,
1190
+ "eye-off": ft,
1191
+ signal: Tt,
1192
+ audio: Xn,
1193
+ hardware: bt,
1194
+ burger: Jn,
1195
+ repository: St,
1196
+ "chevron-down": ot,
1197
+ "chevron-up": at,
1198
+ "chevron-left": rt,
1199
+ "chevron-right": it,
1200
+ branch: Qn,
1201
+ commit: lt,
1202
+ folder: vt,
1203
+ file: pt,
1204
+ tag: Vt,
1205
+ key: It,
1206
+ git: mt,
1207
+ home: yt,
1208
+ info: kt,
1209
+ warning: Ot
1210
1210
  }, me = g(function(t, e) {
1211
1211
  const {
1212
1212
  "aria-hidden": o,
@@ -1218,11 +1218,11 @@ const yr = g(function(t, e) {
1218
1218
  style: f,
1219
1219
  type: d,
1220
1220
  ...c
1221
- } = t, p = Ht[d];
1221
+ } = t, p = Dt[d];
1222
1222
  if (!p)
1223
1223
  return console.warn(`Icon type "${d}" not found`), null;
1224
1224
  const v = i !== void 0 || r !== void 0;
1225
- return Oe(p, {
1225
+ return Ae(p, {
1226
1226
  ...c,
1227
1227
  "aria-hidden": o ?? (v ? void 0 : !0),
1228
1228
  "aria-label": i,
@@ -1237,7 +1237,7 @@ const yr = g(function(t, e) {
1237
1237
  },
1238
1238
  width: u
1239
1239
  });
1240
- }), _n = g(function(t, e) {
1240
+ }), Pn = g(function(t, e) {
1241
1241
  const { className: o = "", color: i, size: r = 48, style: l, ...s } = t, u = typeof r == "number" ? `${r}px` : r;
1242
1242
  return /* @__PURE__ */ a(
1243
1243
  "div",
@@ -1257,10 +1257,10 @@ const yr = g(function(t, e) {
1257
1257
  }
1258
1258
  );
1259
1259
  });
1260
- function on(n) {
1261
- return n == null || typeof n == "boolean" || typeof n == "string" && !n.trim() ? !1 : Array.isArray(n) ? n.some(on) : Ze(n) && n.type === _e ? on(n.props.children) : !0;
1260
+ function rn(n) {
1261
+ return n == null || typeof n == "boolean" || typeof n == "string" && !n.trim() ? !1 : Array.isArray(n) ? n.some(rn) : Ze(n) && n.type === _e ? rn(n.props.children) : !0;
1262
1262
  }
1263
- function Ft(n, t) {
1263
+ function Ht(n, t) {
1264
1264
  const e = n.getBoundingClientRect(), o = t.clientX - e.left, i = t.clientY - e.top;
1265
1265
  n.style.setProperty("--nk-button-glow-x", `${o}px`), n.style.setProperty("--nk-button-glow-y", `${i}px`);
1266
1266
  }
@@ -1284,7 +1284,7 @@ const ze = g(function(t, e) {
1284
1284
  tone: M,
1285
1285
  variant: _ = "primary",
1286
1286
  ...R
1287
- } = t, k = o ?? "button", C = l || d, I = !!u && !on(i), N = k === "a" && "href" in R && typeof R.href == "string", T = typeof k == "string" && k !== "button" && !N, z = (P) => {
1287
+ } = t, k = o ?? "button", C = l || d, I = !!u && !rn(i), N = k === "a" && "href" in R && typeof R.href == "string", T = typeof k == "string" && k !== "button" && !N, z = (P) => {
1288
1288
  if (C) {
1289
1289
  P.preventDefault(), P.stopPropagation();
1290
1290
  return;
@@ -1292,7 +1292,7 @@ const ze = g(function(t, e) {
1292
1292
  const A = c;
1293
1293
  A == null || A(P);
1294
1294
  }, Z = (P) => {
1295
- Ft(P.currentTarget, P);
1295
+ Ht(P.currentTarget, P);
1296
1296
  const A = v;
1297
1297
  A == null || A(P);
1298
1298
  }, H = (P) => {
@@ -1302,7 +1302,7 @@ const ze = g(function(t, e) {
1302
1302
  disabled: C,
1303
1303
  type: R.type ?? "button"
1304
1304
  } : { "aria-disabled": C || void 0 }, U = N && C ? { href: void 0 } : void 0, S = N && C ? m ?? "link" : T ? m ?? "button" : m, y = k === "button" ? b : N && C ? void 0 : C ? -1 : T ? b ?? 0 : b;
1305
- return Oe(
1305
+ return Ae(
1306
1306
  k,
1307
1307
  {
1308
1308
  ...R,
@@ -1336,7 +1336,7 @@ const ze = g(function(t, e) {
1336
1336
  }
1337
1337
  ),
1338
1338
  d ? /* @__PURE__ */ a(
1339
- _n,
1339
+ Pn,
1340
1340
  {
1341
1341
  "aria-hidden": "true",
1342
1342
  "aria-label": void 0,
@@ -1357,7 +1357,7 @@ const ze = g(function(t, e) {
1357
1357
  weight: u,
1358
1358
  ...f
1359
1359
  } = t;
1360
- return Oe(i ?? "p", {
1360
+ return Ae(i ?? "p", {
1361
1361
  ...f,
1362
1362
  ref: e,
1363
1363
  className: ["nk-text", r].filter(Boolean).join(" "),
@@ -1375,7 +1375,7 @@ const ze = g(function(t, e) {
1375
1375
  ...s
1376
1376
  } = t;
1377
1377
  return /* @__PURE__ */ O(
1378
- Fe,
1378
+ He,
1379
1379
  {
1380
1380
  ...s,
1381
1381
  ref: e,
@@ -1399,11 +1399,11 @@ function he(n) {
1399
1399
  function ge(n, t) {
1400
1400
  return n ? !0 : t;
1401
1401
  }
1402
- const Nn = qe(void 0);
1403
- function Wt() {
1404
- return Ne(Nn);
1402
+ const _n = qe(void 0);
1403
+ function Ft() {
1404
+ return Ne(_n);
1405
1405
  }
1406
- const zt = g(function(t, e) {
1406
+ const Wt = g(function(t, e) {
1407
1407
  var I;
1408
1408
  const {
1409
1409
  "aria-invalid": o,
@@ -1419,7 +1419,7 @@ const zt = g(function(t, e) {
1419
1419
  style: v,
1420
1420
  value: m = "on",
1421
1421
  ...x
1422
- } = t, b = Wt(), w = String(m), M = (b == null ? void 0 : b.value) !== void 0, _ = u || !!(b != null && b.disabled), R = !!(b != null && b.required && !b.hasSelection && b.validationValue === w), k = f || he(o);
1422
+ } = t, b = Ft(), w = String(m), M = (b == null ? void 0 : b.value) !== void 0, _ = u || !!(b != null && b.disabled), R = !!(b != null && b.required && !b.hasSelection && b.validationValue === w), k = f || he(o);
1423
1423
  function C(N) {
1424
1424
  c == null || c(N), N.defaultPrevented || b == null || b.handleChange(N);
1425
1425
  }
@@ -1456,21 +1456,21 @@ const zt = g(function(t, e) {
1456
1456
  ]
1457
1457
  }
1458
1458
  );
1459
- }), Ln = Symbol("nk-field-control-metadata");
1460
- function Mn(n) {
1459
+ }), Nn = Symbol("nk-field-control-metadata");
1460
+ function Ln(n) {
1461
1461
  if (typeof n != "function" && typeof n != "object" || n === null)
1462
1462
  return;
1463
- const t = n, e = t[Ln];
1464
- return e || (t.type !== void 0 && t.type !== n ? Mn(t.type) : void 0);
1463
+ const t = n, e = t[Nn];
1464
+ return e || (t.type !== void 0 && t.type !== n ? Ln(t.type) : void 0);
1465
1465
  }
1466
- function En(n, t) {
1466
+ function Mn(n, t) {
1467
1467
  Object.assign(n, {
1468
- [Ln]: { requiredCommunication: t }
1468
+ [Nn]: { requiredCommunication: t }
1469
1469
  });
1470
1470
  }
1471
- const jt = Object.freeze([]);
1472
- function Sn(n, t) {
1473
- an.forEach(n, (e) => {
1471
+ const zt = Object.freeze([]);
1472
+ function En(n, t) {
1473
+ ln.forEach(n, (e) => {
1474
1474
  if (e == null || typeof e == "boolean")
1475
1475
  return;
1476
1476
  if (!Ze(e))
@@ -1478,10 +1478,10 @@ function Sn(n, t) {
1478
1478
  "CheckboxGroup children must be direct Checkbox elements or fragments"
1479
1479
  );
1480
1480
  if (e.type === _e) {
1481
- Sn(e.props.children, t);
1481
+ En(e.props.children, t);
1482
1482
  return;
1483
1483
  }
1484
- if (e.type !== zt)
1484
+ if (e.type !== Wt)
1485
1485
  throw new Error(
1486
1486
  "CheckboxGroup children must be direct Checkbox elements or fragments"
1487
1487
  );
@@ -1493,9 +1493,9 @@ function Sn(n, t) {
1493
1493
  });
1494
1494
  });
1495
1495
  }
1496
- function Zt(n) {
1496
+ function jt(n) {
1497
1497
  const t = [];
1498
- Sn(n, t);
1498
+ En(n, t);
1499
1499
  const e = /* @__PURE__ */ new Set();
1500
1500
  return t.forEach((o) => {
1501
1501
  if (e.has(o.value))
@@ -1503,16 +1503,16 @@ function Zt(n) {
1503
1503
  e.add(o.value);
1504
1504
  }), t;
1505
1505
  }
1506
- function qt(n, t, e) {
1506
+ function Zt(n, t, e) {
1507
1507
  t.current = n, typeof e == "function" ? e(n) : e && (e.current = n);
1508
1508
  }
1509
- const $t = g(
1509
+ const qt = g(
1510
1510
  function(t, e) {
1511
1511
  const {
1512
1512
  "aria-invalid": o,
1513
1513
  children: i,
1514
1514
  className: r,
1515
- defaultValue: l = jt,
1515
+ defaultValue: l = zt,
1516
1516
  disabled: s = !1,
1517
1517
  invalid: u = !1,
1518
1518
  name: f,
@@ -1521,14 +1521,14 @@ const $t = g(
1521
1521
  required: p = !1,
1522
1522
  value: v,
1523
1523
  ...m
1524
- } = t, x = D(null), [b, w] = $(l), M = v !== void 0, _ = M ? v : b, R = u || he(o), k = Zt(i), C = s ? [] : k.filter((y) => !y.disabled).map((y) => y.value), I = new Set(C), N = _.some(
1524
+ } = t, x = D(null), [b, w] = $(l), M = v !== void 0, _ = M ? v : b, R = u || he(o), k = jt(i), C = s ? [] : k.filter((y) => !y.disabled).map((y) => y.value), I = new Set(C), N = _.some(
1525
1525
  (y) => I.has(y)
1526
1526
  ), T = C[0], z = k.find(
1527
1527
  (y) => !y.disabled && y.value === T
1528
1528
  ), Z = l.some(
1529
1529
  (y) => I.has(y)
1530
1530
  ), H = !!(z != null && z.required), E = W(
1531
- (y) => qt(
1531
+ (y) => Zt(
1532
1532
  y,
1533
1533
  x,
1534
1534
  e
@@ -1582,7 +1582,7 @@ const $t = g(
1582
1582
  value: v,
1583
1583
  validationValue: T
1584
1584
  };
1585
- return /* @__PURE__ */ a(Nn.Provider, { value: S, children: /* @__PURE__ */ a(
1585
+ return /* @__PURE__ */ a(_n.Provider, { value: S, children: /* @__PURE__ */ a(
1586
1586
  "div",
1587
1587
  {
1588
1588
  ...m,
@@ -1602,8 +1602,8 @@ const $t = g(
1602
1602
  ) });
1603
1603
  }
1604
1604
  );
1605
- En($t, "label");
1606
- const Gt = [
1605
+ Mn(qt, "label");
1606
+ const $t = [
1607
1607
  {
1608
1608
  minWidth: Ce("xl"),
1609
1609
  marginPercent: 32,
@@ -1624,36 +1624,36 @@ const Gt = [
1624
1624
  marginPercent: 8,
1625
1625
  preferredWidth: 650
1626
1626
  }
1627
- ], Kt = 16;
1628
- function Ut(n) {
1629
- for (const t of Gt)
1627
+ ], Gt = 16;
1628
+ function Kt(n) {
1629
+ for (const t of $t)
1630
1630
  if (n >= t.minWidth) return t;
1631
1631
  }
1632
- function Yt(n, t) {
1632
+ function Ut(n, t) {
1633
1633
  if (!Number.isFinite(n) || !Number.isFinite(t) || n < Ce("sm") || t <= 0)
1634
1634
  return;
1635
- const e = Ut(n);
1635
+ const e = Kt(n);
1636
1636
  if (!e) return;
1637
1637
  const o = n * e.marginPercent / 100, i = n - o * 2, r = Math.min(
1638
1638
  e.preferredWidth,
1639
- n - Kt
1639
+ n - Gt
1640
1640
  ), l = Math.max(i, r);
1641
1641
  let s = Math.floor(l / t);
1642
1642
  return s % 2 === 0 && (s -= 1), s = Math.max(s, 1), Math.min((s - 1) * t, n);
1643
1643
  }
1644
- const Xt = typeof window > "u" ? q : ln;
1645
- function Qt(n, t) {
1644
+ const Yt = typeof window > "u" ? q : $e;
1645
+ function Xt(n, t) {
1646
1646
  if (typeof n == "function") {
1647
1647
  n(t);
1648
1648
  return;
1649
1649
  }
1650
1650
  n && (n.current = t);
1651
1651
  }
1652
- function Jt(n) {
1652
+ function Qt(n) {
1653
1653
  const t = window.getComputedStyle(n), e = Number.parseFloat(t.paddingLeft) + Number.parseFloat(t.paddingRight);
1654
1654
  return Math.max(n.clientWidth - e, 0);
1655
1655
  }
1656
- function eo(n) {
1656
+ function Jt(n) {
1657
1657
  const e = window.getComputedStyle(n).getPropertyValue("--nk-cell").trim().match(
1658
1658
  /^([+]?(?:\d+\.?\d*|\.\d+))px$/i
1659
1659
  );
@@ -1661,14 +1661,14 @@ function eo(n) {
1661
1661
  const o = Number.parseFloat(e[1]);
1662
1662
  return Number.isFinite(o) && o > 0 ? o : void 0;
1663
1663
  }
1664
- function no(n, t) {
1664
+ function eo(n, t) {
1665
1665
  const e = D(null), o = D(null), i = D(void 0), [r, l] = $(void 0), s = W((d) => {
1666
1666
  if (!t) {
1667
1667
  if (i.current === void 0) return;
1668
1668
  i.current = void 0, l(void 0);
1669
1669
  return;
1670
1670
  }
1671
- const c = Jt(d), p = eo(d), v = p === void 0 ? void 0 : Yt(c, p);
1671
+ const c = Qt(d), p = Jt(d), v = p === void 0 ? void 0 : Ut(c, p);
1672
1672
  i.current !== v && (i.current = v, l(v));
1673
1673
  }, [t]), u = W(
1674
1674
  (d) => {
@@ -1683,7 +1683,7 @@ function no(n, t) {
1683
1683
  ), f = W(
1684
1684
  (d) => {
1685
1685
  var c;
1686
- (c = o.current) == null || c.disconnect(), o.current = null, e.current = d, Qt(n, d), !(!d || typeof window > "u" || !t) && (s(d), u(d));
1686
+ (c = o.current) == null || c.disconnect(), o.current = null, e.current = d, Xt(n, d), !(!d || typeof window > "u" || !t) && (s(d), u(d));
1687
1687
  },
1688
1688
  [
1689
1689
  u,
@@ -1692,7 +1692,7 @@ function no(n, t) {
1692
1692
  s
1693
1693
  ]
1694
1694
  );
1695
- return Xt(() => {
1695
+ return Yt(() => {
1696
1696
  e.current && s(e.current);
1697
1697
  }), q(() => (e.current && t && u(e.current), () => {
1698
1698
  var d;
@@ -1713,11 +1713,11 @@ const xr = g(
1713
1713
  style: c,
1714
1714
  theme: p = "light",
1715
1715
  ...v
1716
- } = t, { rootReference: m, innerWidth: x } = no(
1716
+ } = t, { rootReference: m, innerWidth: x } = eo(
1717
1717
  e,
1718
1718
  s
1719
1719
  ), b = i ?? "div", w = o !== void 0 ? { ...c, "--nk-accent": o } : c;
1720
- return Oe(
1720
+ return Ae(
1721
1721
  b,
1722
1722
  {
1723
1723
  ...v,
@@ -1730,7 +1730,7 @@ const xr = g(
1730
1730
  "data-theme": p,
1731
1731
  style: w
1732
1732
  },
1733
- Oe(
1733
+ Ae(
1734
1734
  "div",
1735
1735
  {
1736
1736
  className: "nk-content__inner",
@@ -1777,10 +1777,10 @@ const xr = g(
1777
1777
  }
1778
1778
  );
1779
1779
  });
1780
- function Qe(n) {
1780
+ function Je(n) {
1781
1781
  return typeof n == "string" ? n.trim().length > 0 : n != null && n !== !1 && n !== !0;
1782
1782
  }
1783
- function fn(...n) {
1783
+ function un(...n) {
1784
1784
  const t = n.flatMap(
1785
1785
  (o) => (o == null ? void 0 : o.split(/\s+/).filter(Boolean)) ?? []
1786
1786
  ), e = [...new Set(t)];
@@ -1797,11 +1797,11 @@ const Pr = g(function(t, e) {
1797
1797
  orientation: f = "vertical",
1798
1798
  required: d = !1,
1799
1799
  ...c
1800
- } = t, p = Le(), v = o.props.id ?? `${p}-control`, m = `${p}-label`, x = `${p}-description`, b = `${p}-error`, w = Qe(u), M = Qe(r), _ = Qe(s), R = Mn(o.type), k = R !== void 0, C = l || !!o.props.disabled, I = d || !!o.props.required, N = I && (R == null ? void 0 : R.requiredCommunication) === "label", T = fn(
1800
+ } = t, p = Le(), v = o.props.id ?? `${p}-control`, m = `${p}-label`, x = `${p}-description`, b = `${p}-error`, w = Je(u), M = Je(r), _ = Je(s), R = Ln(o.type), k = R !== void 0, C = l || !!o.props.disabled, I = d || !!o.props.required, N = I && (R == null ? void 0 : R.requiredCommunication) === "label", T = un(
1801
1801
  o.props["aria-describedby"],
1802
1802
  M ? x : void 0,
1803
1803
  _ ? b : void 0
1804
- ), z = fn(
1804
+ ), z = un(
1805
1805
  w ? m : void 0,
1806
1806
  o.props["aria-labelledby"]
1807
1807
  ), Z = I ? /* @__PURE__ */ a("span", { "aria-hidden": "true", className: "nk-field__required", children: "*" }) : null, H = N ? /* @__PURE__ */ a("span", { className: "nk-field__required-text", children: ", select at least one" }) : null, E = Pe(o, {
@@ -1884,16 +1884,16 @@ const Pr = g(function(t, e) {
1884
1884
  }
1885
1885
  );
1886
1886
  });
1887
- function Je(n) {
1887
+ function en(n) {
1888
1888
  return Array.isArray(n) ? n.length > 0 : n != null && String(n).length > 0;
1889
1889
  }
1890
- function to(n, t, e) {
1890
+ function no(n, t, e) {
1891
1891
  t.current = n, typeof e == "function" ? e(n) : e && (e.current = n);
1892
1892
  }
1893
- function hn(n) {
1893
+ function fn(n) {
1894
1894
  return n != null && n !== !1 && n !== !0 && n !== "";
1895
1895
  }
1896
- function oo(n) {
1896
+ function to(n) {
1897
1897
  var e;
1898
1898
  const t = (e = Object.getOwnPropertyDescriptor(
1899
1899
  Object.getPrototypeOf(n),
@@ -1921,25 +1921,25 @@ const _r = g(function(t, e) {
1921
1921
  value: M,
1922
1922
  ..._
1923
1923
  } = t, R = Le(), k = D(null), [C, I] = $(
1924
- Je(s)
1924
+ en(s)
1925
1925
  ), [N, T] = $(!1);
1926
1926
  q(() => {
1927
1927
  w !== "password" && T(!1);
1928
1928
  }, [w]);
1929
1929
  const z = W(
1930
- (K) => to(
1930
+ (K) => no(
1931
1931
  K,
1932
1932
  k,
1933
1933
  e
1934
1934
  ),
1935
1935
  [e]
1936
- ), Z = f ?? `${R}-control`, H = u || p, E = d || he(i), U = M !== void 0 ? Je(M) : C, S = w === "password" && N ? "text" : w, y = ge(d, i), P = l && U && !m && !H, A = w === "password" && !p, B = P || A, V = hn(c), j = hn(b) || B;
1936
+ ), Z = f ?? `${R}-control`, H = u || p, E = d || he(i), U = M !== void 0 ? en(M) : C, S = w === "password" && N ? "text" : w, y = ge(d, i), P = l && U && !m && !H, A = w === "password" && !p, B = P || A, V = fn(c), j = fn(b) || B;
1937
1937
  function te(K) {
1938
- M === void 0 && I(Je(K.currentTarget.value)), v == null || v(K);
1938
+ M === void 0 && I(en(K.currentTarget.value)), v == null || v(K);
1939
1939
  }
1940
1940
  function ee() {
1941
1941
  const K = k.current;
1942
- K && (oo(K), K.dispatchEvent(new Event("input", { bubbles: !0 })), K.focus());
1942
+ K && (to(K), K.dispatchEvent(new Event("input", { bubbles: !0 })), K.focus());
1943
1943
  }
1944
1944
  function X() {
1945
1945
  T((K) => !K);
@@ -2008,7 +2008,7 @@ const _r = g(function(t, e) {
2008
2008
  ) : null
2009
2009
  ] }) : null,
2010
2010
  p ? /* @__PURE__ */ a(
2011
- _n,
2011
+ Pn,
2012
2012
  {
2013
2013
  "aria-hidden": "true",
2014
2014
  "aria-label": void 0,
@@ -2020,8 +2020,8 @@ const _r = g(function(t, e) {
2020
2020
  ]
2021
2021
  }
2022
2022
  );
2023
- }), Be = qe(void 0), pn = typeof window > "u" ? q : ln;
2024
- function vn(n, t) {
2023
+ }), Oe = qe(void 0), hn = typeof window > "u" ? q : $e;
2024
+ function pn(n, t) {
2025
2025
  const e = n.ownerDocument.defaultView;
2026
2026
  if (!e) return;
2027
2027
  const o = e.getComputedStyle(n);
@@ -2036,21 +2036,21 @@ function vn(n, t) {
2036
2036
  );
2037
2037
  }
2038
2038
  }
2039
- function ro(n) {
2040
- const { children: t, source: e } = n, o = D(null), i = Ne(Be), [r, l] = $(null);
2041
- return pn(() => {
2039
+ function oo(n) {
2040
+ const { children: t, source: e } = n, o = D(null), i = Ne(Oe), [r, l] = $(null);
2041
+ return hn(() => {
2042
2042
  const s = o.current;
2043
2043
  if (!(!s || !i))
2044
2044
  return i.registerBranch(s);
2045
- }, [i]), pn(() => {
2045
+ }, [i]), hn(() => {
2046
2046
  var p;
2047
2047
  const s = o.current;
2048
2048
  if (!s) return;
2049
- vn(e, s), l(e);
2049
+ pn(e, s), l(e);
2050
2050
  const f = e.closest(".nk-content") ?? e, d = (p = e.ownerDocument.defaultView) == null ? void 0 : p.MutationObserver;
2051
2051
  if (!d) return;
2052
2052
  const c = new d(() => {
2053
- vn(e, s);
2053
+ pn(e, s);
2054
2054
  });
2055
2055
  return c.observe(f, {
2056
2056
  attributeFilter: ["class", "data-theme", "style"],
@@ -2066,7 +2066,7 @@ function ro(n) {
2066
2066
  }
2067
2067
  );
2068
2068
  }
2069
- function $e(n) {
2069
+ function Ge(n) {
2070
2070
  const { children: t, container: e, inheritFrom: o } = n, i = D(null), [r, l] = $(!1);
2071
2071
  q(() => {
2072
2072
  l(!0);
@@ -2074,60 +2074,60 @@ function $e(n) {
2074
2074
  const s = o ?? i.current, u = (s == null ? void 0 : s.ownerDocument) ?? (typeof document > "u" ? null : document), f = e ?? (u == null ? void 0 : u.body) ?? null;
2075
2075
  return /* @__PURE__ */ O(je, { children: [
2076
2076
  o ? null : /* @__PURE__ */ a("span", { "aria-hidden": "true", hidden: !0, ref: i }),
2077
- r && s && f ? qn(
2078
- /* @__PURE__ */ a(ro, { source: s, children: t }),
2077
+ r && s && f ? Zn(
2078
+ /* @__PURE__ */ a(oo, { source: s, children: t }),
2079
2079
  f
2080
2080
  ) : null
2081
2081
  ] });
2082
2082
  }
2083
- const io = 1e3, ao = 10, mn = /* @__PURE__ */ new WeakMap();
2084
- function De(n) {
2085
- const t = mn.get(n);
2083
+ const ro = 1e3, io = 10, vn = /* @__PURE__ */ new WeakMap();
2084
+ function Be(n) {
2085
+ const t = vn.get(n);
2086
2086
  if (t) return t;
2087
2087
  const e = {
2088
2088
  focusLayers: /* @__PURE__ */ new Set(),
2089
2089
  layers: [],
2090
2090
  listeners: /* @__PURE__ */ new Set()
2091
2091
  };
2092
- return mn.set(n, e), e;
2092
+ return vn.set(n, e), e;
2093
2093
  }
2094
- function gn(n) {
2094
+ function mn(n) {
2095
2095
  n.listeners.forEach((t) => t());
2096
2096
  }
2097
- function Ge(n, t) {
2098
- const e = D(Symbol("nk-overlay-layer")), [, o] = Cn((s) => s + 1, 0);
2097
+ function Ke(n, t) {
2098
+ const e = D(Symbol("nk-overlay-layer")), [, o] = xn((s) => s + 1, 0);
2099
2099
  q(() => {
2100
2100
  if (!n || !t) return;
2101
- const s = De(t), u = () => o();
2102
- return s.listeners.add(u), s.layers.push(e.current), gn(s), () => {
2101
+ const s = Be(t), u = () => o();
2102
+ return s.listeners.add(u), s.layers.push(e.current), mn(s), () => {
2103
2103
  s.listeners.delete(u);
2104
2104
  const f = s.layers.indexOf(e.current);
2105
- f >= 0 && s.layers.splice(f, 1), gn(s);
2105
+ f >= 0 && s.layers.splice(f, 1), mn(s);
2106
2106
  };
2107
2107
  }, [n, t]);
2108
- const i = t ? De(t) : null, r = (i == null ? void 0 : i.layers.indexOf(
2108
+ const i = t ? Be(t) : null, r = (i == null ? void 0 : i.layers.indexOf(
2109
2109
  e.current
2110
2110
  )) ?? -1, l = r >= 0 ? r : (i == null ? void 0 : i.layers.length) ?? 0;
2111
2111
  return {
2112
2112
  id: e.current,
2113
- zIndex: io + l * ao
2113
+ zIndex: ro + l * io
2114
2114
  };
2115
2115
  }
2116
- function wn(n, t) {
2117
- const e = De(n).layers;
2116
+ function gn(n, t) {
2117
+ const e = Be(n).layers;
2118
2118
  return e.length > 0 && e[e.length - 1] === t;
2119
2119
  }
2120
- function lo(n, t, e) {
2120
+ function ao(n, t, e) {
2121
2121
  q(() => {
2122
2122
  if (!n || !t) return;
2123
- const o = De(t);
2123
+ const o = Be(t);
2124
2124
  return o.focusLayers.add(e), () => {
2125
2125
  o.focusLayers.delete(e);
2126
2126
  };
2127
2127
  }, [n, e, t]);
2128
2128
  }
2129
- function bn(n, t) {
2130
- const e = De(n);
2129
+ function wn(n, t) {
2130
+ const e = Be(n);
2131
2131
  for (let o = e.layers.length - 1; o >= 0; o -= 1) {
2132
2132
  const i = e.layers[o];
2133
2133
  if (e.focusLayers.has(i))
@@ -2135,7 +2135,7 @@ function bn(n, t) {
2135
2135
  }
2136
2136
  return !1;
2137
2137
  }
2138
- function so(n, t) {
2138
+ function lo(n, t) {
2139
2139
  const e = n.composedPath();
2140
2140
  return t.some((o) => {
2141
2141
  var l;
@@ -2146,7 +2146,7 @@ function so(n, t) {
2146
2146
  return r && n.target instanceof r ? i.contains(n.target) : !1;
2147
2147
  });
2148
2148
  }
2149
- function Ke(n) {
2149
+ function Ue(n) {
2150
2150
  const {
2151
2151
  active: t,
2152
2152
  boundaries: e,
@@ -2162,10 +2162,10 @@ function Ke(n) {
2162
2162
  q(() => {
2163
2163
  if (!t || !d) return;
2164
2164
  function c(v) {
2165
- v.key !== "Escape" || !o || !wn(d, r) || (s == null || s(v), !v.defaultPrevented && (v.preventDefault(), l == null || l()));
2165
+ v.key !== "Escape" || !o || !gn(d, r) || (s == null || s(v), !v.defaultPrevented && (v.preventDefault(), l == null || l()));
2166
2166
  }
2167
2167
  function p(v) {
2168
- !i || !wn(d, r) || so(v, e) || (u == null || u(v), !v.defaultPrevented && (f == null || f()));
2168
+ !i || !gn(d, r) || lo(v, e) || (u == null || u(v), !v.defaultPrevented && (f == null || f()));
2169
2169
  }
2170
2170
  return d.addEventListener("keydown", c, !0), d.addEventListener("pointerdown", p, !0), () => {
2171
2171
  d.removeEventListener("keydown", c, !0), d.removeEventListener("pointerdown", p, !0);
@@ -2183,19 +2183,19 @@ function Ke(n) {
2183
2183
  d
2184
2184
  ]);
2185
2185
  }
2186
- const rn = /* @__PURE__ */ new WeakSet();
2187
- function co(n) {
2188
- rn.add(n);
2186
+ const an = /* @__PURE__ */ new WeakSet();
2187
+ function so(n) {
2188
+ an.add(n);
2189
2189
  try {
2190
2190
  n.focus({ preventScroll: !0 });
2191
2191
  } finally {
2192
- rn.delete(n);
2192
+ an.delete(n);
2193
2193
  }
2194
2194
  }
2195
- function uo(n) {
2196
- return rn.has(n);
2195
+ function co(n) {
2196
+ return an.has(n);
2197
2197
  }
2198
- const fo = [
2198
+ const uo = [
2199
2199
  "a[href]",
2200
2200
  "area[href]",
2201
2201
  "button",
@@ -2206,7 +2206,7 @@ const fo = [
2206
2206
  "[contenteditable]:not([contenteditable='false'])",
2207
2207
  "[tabindex]"
2208
2208
  ].join(",");
2209
- function ho(n, t) {
2209
+ function fo(n, t) {
2210
2210
  let e = n;
2211
2211
  for (; e; ) {
2212
2212
  if (e.hidden || e.inert || e.getAttribute("aria-hidden") === "true")
@@ -2219,7 +2219,7 @@ function ho(n, t) {
2219
2219
  }
2220
2220
  return !1;
2221
2221
  }
2222
- function po(n, t) {
2222
+ function ho(n, t) {
2223
2223
  var r;
2224
2224
  const e = (r = n.ownerDocument.defaultView) == null ? void 0 : r.HTMLInputElement;
2225
2225
  if (!e || !(n instanceof e) || n.type !== "radio" || !n.name)
@@ -2229,19 +2229,19 @@ function po(n, t) {
2229
2229
  ), i = o.find((l) => l.checked);
2230
2230
  return i ? i === n : o[0] === n;
2231
2231
  }
2232
- function vo(n) {
2232
+ function po(n) {
2233
2233
  const t = Array.from(
2234
- n.querySelectorAll(fo)
2235
- ).filter((e) => !e.matches(":disabled") && e.tabIndex >= 0 && !ho(e, n));
2234
+ n.querySelectorAll(uo)
2235
+ ).filter((e) => !e.matches(":disabled") && e.tabIndex >= 0 && !fo(e, n));
2236
2236
  return t.filter(
2237
- (e) => po(e, t)
2237
+ (e) => ho(e, t)
2238
2238
  );
2239
2239
  }
2240
- function yn(n, t) {
2240
+ function bn(n, t) {
2241
2241
  const e = [n, ...t];
2242
2242
  return [...new Set(
2243
2243
  e.flatMap(
2244
- (i) => vo(i)
2244
+ (i) => po(i)
2245
2245
  )
2246
2246
  )].sort((i, r) => {
2247
2247
  var u;
@@ -2250,10 +2250,10 @@ function yn(n, t) {
2250
2250
  return l & s ? -1 : 1;
2251
2251
  });
2252
2252
  }
2253
- function en(n, t, e) {
2253
+ function nn(n, t, e) {
2254
2254
  return e ? n.contains(e) || [...t].some((o) => o.contains(e)) : !1;
2255
2255
  }
2256
- function Rn(n) {
2256
+ function Sn(n) {
2257
2257
  const {
2258
2258
  active: t,
2259
2259
  autoFocus: e = !0,
@@ -2262,26 +2262,26 @@ function Rn(n) {
2262
2262
  layerId: r,
2263
2263
  restoreFocus: l = !0
2264
2264
  } = n, s = (o == null ? void 0 : o.ownerDocument) ?? null, u = D(/* @__PURE__ */ new Set()), f = W((c) => (u.current.add(c), () => u.current.delete(c)), []), d = Me(() => ({ registerBranch: f }), [f]);
2265
- return lo(t && !!o, s, r), q(() => {
2265
+ return ao(t && !!o, s, r), q(() => {
2266
2266
  var _, R;
2267
2267
  if (!t || !o) return;
2268
2268
  const c = o.ownerDocument, p = (_ = c.defaultView) == null ? void 0 : _.HTMLElement, v = (R = c.defaultView) == null ? void 0 : R.Node, m = p && c.activeElement instanceof p ? c.activeElement : null;
2269
2269
  let x = !0;
2270
2270
  function b() {
2271
2271
  const k = i == null ? void 0 : i.current;
2272
- (k && en(
2272
+ (k && nn(
2273
2273
  o,
2274
2274
  u.current,
2275
2275
  k
2276
- ) ? k : yn(
2276
+ ) ? k : bn(
2277
2277
  o,
2278
2278
  u.current
2279
2279
  )[0] ?? o).focus({ preventScroll: !0 });
2280
2280
  }
2281
2281
  function w(k) {
2282
- if (k.key !== "Tab" || !bn(c, r))
2282
+ if (k.key !== "Tab" || !wn(c, r))
2283
2283
  return;
2284
- const C = yn(
2284
+ const C = bn(
2285
2285
  o,
2286
2286
  u.current
2287
2287
  );
@@ -2289,7 +2289,7 @@ function Rn(n) {
2289
2289
  k.preventDefault(), o == null || o.focus({ preventScroll: !0 });
2290
2290
  return;
2291
2291
  }
2292
- const I = C[0], N = C[C.length - 1], T = c.activeElement, z = en(
2292
+ const I = C[0], N = C[C.length - 1], T = c.activeElement, z = nn(
2293
2293
  o,
2294
2294
  u.current,
2295
2295
  T
@@ -2303,7 +2303,7 @@ function Rn(n) {
2303
2303
  k.shiftKey && T === I ? (k.preventDefault(), N.focus()) : !k.shiftKey && T === N && (k.preventDefault(), I.focus());
2304
2304
  }
2305
2305
  function M(k) {
2306
- bn(c, r) && v && k.target instanceof v && !en(
2306
+ wn(c, r) && v && k.target instanceof v && !nn(
2307
2307
  o,
2308
2308
  u.current,
2309
2309
  k.target
@@ -2312,7 +2312,7 @@ function Rn(n) {
2312
2312
  return c.addEventListener("keydown", w, !0), c.addEventListener("focusin", M, !0), e && Promise.resolve().then(() => {
2313
2313
  x && b();
2314
2314
  }), () => {
2315
- x = !1, c.removeEventListener("keydown", w, !0), c.removeEventListener("focusin", M, !0), l && (m != null && m.isConnected) && co(m);
2315
+ x = !1, c.removeEventListener("keydown", w, !0), c.removeEventListener("focusin", M, !0), l && (m != null && m.isConnected) && so(m);
2316
2316
  };
2317
2317
  }, [
2318
2318
  t,
@@ -2323,7 +2323,7 @@ function Rn(n) {
2323
2323
  l
2324
2324
  ]), d;
2325
2325
  }
2326
- function mo() {
2326
+ function vo() {
2327
2327
  const [n, t] = $(!1);
2328
2328
  return q(() => {
2329
2329
  const e = typeof window > "u" ? null : window;
@@ -2336,8 +2336,8 @@ function mo() {
2336
2336
  return i(), o.addEventListener("change", i), () => o.removeEventListener("change", i);
2337
2337
  }, []), n;
2338
2338
  }
2339
- function Ue(n, t = 200) {
2340
- const e = mo(), [o, i] = $(n);
2339
+ function Ye(n, t = 200) {
2340
+ const e = vo(), [o, i] = $(n);
2341
2341
  return q(() => {
2342
2342
  if (n) {
2343
2343
  i(!0);
@@ -2358,7 +2358,7 @@ function Ue(n, t = 200) {
2358
2358
  };
2359
2359
  }
2360
2360
  const We = /* @__PURE__ */ new WeakMap();
2361
- function go(n, t) {
2361
+ function mo(n, t) {
2362
2362
  q(() => {
2363
2363
  if (!n || !t) return;
2364
2364
  const e = We.get(t);
@@ -2383,10 +2383,10 @@ function go(n, t) {
2383
2383
  };
2384
2384
  }, [n, t]);
2385
2385
  }
2386
- function wo(n, t, e) {
2386
+ function go(n, t, e) {
2387
2387
  t.current = n, typeof e == "function" ? e(n) : e && (e.current = n);
2388
2388
  }
2389
- function bo(n) {
2389
+ function wo(n) {
2390
2390
  const {
2391
2391
  "aria-label": t,
2392
2392
  "aria-labelledby": e,
@@ -2407,13 +2407,13 @@ function bo(n) {
2407
2407
  title: w,
2408
2408
  trapFocus: M = !0,
2409
2409
  ..._
2410
- } = n, R = D(null), k = D(null), C = Ne(Be), I = `${Le()}-title`, [N, T] = $(null), z = Ge(!0, p), Z = Me(() => [R], []), H = !!(w != null && w.trim()), E = u ?? (H ? k : void 0), U = e ?? (t === void 0 && H ? I : void 0), S = W(
2410
+ } = n, R = D(null), k = D(null), C = Ne(Oe), I = `${Le()}-title`, [N, T] = $(null), z = Ke(!0, p), Z = Me(() => [R], []), H = !!(w != null && w.trim()), E = u ?? (H ? k : void 0), U = e ?? (t === void 0 && H ? I : void 0), S = W(
2411
2411
  (V) => {
2412
- wo(V, R, s), T(V);
2412
+ go(V, R, s), T(V);
2413
2413
  },
2414
2414
  [s]
2415
2415
  );
2416
- ln(() => {
2416
+ $e(() => {
2417
2417
  N && (N.inert = !c);
2418
2418
  }, [N, c]);
2419
2419
  const y = W(() => {
@@ -2421,7 +2421,7 @@ function bo(n) {
2421
2421
  }, [d]), P = W(() => {
2422
2422
  d == null || d("outside");
2423
2423
  }, [d]);
2424
- Ke({
2424
+ Ue({
2425
2425
  active: c,
2426
2426
  boundaries: Z,
2427
2427
  dismissOnEscape: l,
@@ -2431,14 +2431,14 @@ function bo(n) {
2431
2431
  onPointerDownOutsideDismiss: P,
2432
2432
  ownerDocument: p
2433
2433
  });
2434
- const A = Rn({
2434
+ const A = Sn({
2435
2435
  active: c && M,
2436
2436
  container: N,
2437
2437
  initialFocusReference: E,
2438
2438
  layerId: z.id,
2439
2439
  restoreFocus: m
2440
2440
  });
2441
- go(f, p);
2441
+ mo(f, p);
2442
2442
  const B = l ? /* @__PURE__ */ a(
2443
2443
  ze,
2444
2444
  {
@@ -2452,7 +2452,7 @@ function bo(n) {
2452
2452
  }
2453
2453
  ) : null;
2454
2454
  return /* @__PURE__ */ a(
2455
- Be.Provider,
2455
+ Oe.Provider,
2456
2456
  {
2457
2457
  value: c && M ? A : C,
2458
2458
  children: /* @__PURE__ */ a(
@@ -2463,7 +2463,7 @@ function bo(n) {
2463
2463
  role: "presentation",
2464
2464
  style: { zIndex: z.zIndex },
2465
2465
  children: /* @__PURE__ */ O(
2466
- Fe,
2466
+ He,
2467
2467
  {
2468
2468
  ..._,
2469
2469
  ref: S,
@@ -2505,9 +2505,9 @@ function bo(n) {
2505
2505
  const Nr = g(function(t, e) {
2506
2506
  const { open: o } = t, i = D(t);
2507
2507
  o && (i.current = t);
2508
- const r = o ? t : i.current, { portalContainer: l } = r, s = Ue(o), u = (l == null ? void 0 : l.ownerDocument) ?? (typeof document > "u" ? null : document);
2509
- return s.present ? /* @__PURE__ */ a($e, { container: l, children: /* @__PURE__ */ a(
2510
- bo,
2508
+ const r = o ? t : i.current, { portalContainer: l } = r, s = Ye(o), u = (l == null ? void 0 : l.ownerDocument) ?? (typeof document > "u" ? null : document);
2509
+ return s.present ? /* @__PURE__ */ a(Ge, { container: l, children: /* @__PURE__ */ a(
2510
+ wo,
2511
2511
  {
2512
2512
  ...r,
2513
2513
  forwardedReference: e,
@@ -2516,36 +2516,36 @@ const Nr = g(function(t, e) {
2516
2516
  presenceState: s.state === "closing" ? "closing" : "open"
2517
2517
  }
2518
2518
  ) }) : null;
2519
- }), yo = Number.parseInt(Zn, 10);
2520
- function Tn(n) {
2521
- return yo >= 19 ? n.props.ref : n.ref;
2519
+ }), bo = Number.parseInt(jn, 10);
2520
+ function Rn(n) {
2521
+ return bo >= 19 ? n.props.ref : n.ref;
2522
2522
  }
2523
- function He(n, t) {
2523
+ function De(n, t) {
2524
2524
  typeof n == "function" ? n(t) : n && (n.current = t);
2525
2525
  }
2526
- const ko = 12, Io = {
2526
+ const yo = 12, ko = {
2527
2527
  bottom: "top",
2528
2528
  left: "right",
2529
2529
  right: "left",
2530
2530
  top: "bottom"
2531
2531
  };
2532
- function kn(n, t) {
2533
- const e = Math.min(ko, t / 2);
2532
+ function yn(n, t) {
2533
+ const e = Math.min(yo, t / 2);
2534
2534
  return Math.min(Math.max(e, n), t - e);
2535
2535
  }
2536
- function xo(n) {
2537
- return Io[n];
2536
+ function Io(n) {
2537
+ return ko[n];
2538
2538
  }
2539
- function Co(n, t) {
2539
+ function xo(n, t) {
2540
2540
  return t === "left" || t === "right" ? n.width : n.height;
2541
2541
  }
2542
- function Po(n, t, e, o, i, r) {
2542
+ function Co(n, t, e, o, i, r) {
2543
2543
  const l = {
2544
2544
  bottom: r - e.bottom - t * 2,
2545
2545
  left: e.left - t * 2,
2546
2546
  right: i - e.right - t * 2,
2547
2547
  top: e.top - t * 2
2548
- }, s = xo(n), u = Co(o, n), f = l[n] < u && l[s] > l[n] ? s : n;
2548
+ }, s = Io(n), u = xo(o, n), f = l[n] < u && l[s] > l[n] ? s : n;
2549
2549
  let d = e.left + (e.width - o.width) / 2, c = e.top + (e.height - o.height) / 2;
2550
2550
  return f === "top" ? c = e.top - o.height - t : f === "bottom" ? c = e.bottom + t : f === "left" ? d = e.left - o.width - t : d = e.right + t, d = Math.min(
2551
2551
  Math.max(t, d),
@@ -2553,16 +2553,16 @@ function Po(n, t, e, o, i, r) {
2553
2553
  ), c = Math.min(
2554
2554
  Math.max(t, c),
2555
2555
  Math.max(t, r - t - o.height)
2556
- ), { arrowOffset: f === "top" || f === "bottom" ? kn(
2556
+ ), { arrowOffset: f === "top" || f === "bottom" ? yn(
2557
2557
  e.left + e.width / 2 - d,
2558
2558
  o.width
2559
- ) : kn(
2559
+ ) : yn(
2560
2560
  e.top + e.height / 2 - c,
2561
2561
  o.height
2562
2562
  ), left: d, placement: f, top: c };
2563
2563
  }
2564
- const _o = 8;
2565
- function Vn(n, t, e, o) {
2564
+ const Po = 8;
2565
+ function Tn(n, t, e, o) {
2566
2566
  const [i, r] = $(null);
2567
2567
  return q(() => {
2568
2568
  if (!n || !e || !o) {
@@ -2573,10 +2573,10 @@ function Vn(n, t, e, o) {
2573
2573
  if (!l) return;
2574
2574
  const s = l, u = s.getComputedStyle(e), f = Number.parseFloat(
2575
2575
  u.getPropertyValue("--nk-space-8")
2576
- ), d = Number.isFinite(f) ? f : _o;
2576
+ ), d = Number.isFinite(f) ? f : Po;
2577
2577
  function c() {
2578
2578
  const m = e == null ? void 0 : e.getBoundingClientRect(), x = o == null ? void 0 : o.getBoundingClientRect();
2579
- !m || !x || r(Po(
2579
+ !m || !x || r(Co(
2580
2580
  t,
2581
2581
  d,
2582
2582
  m,
@@ -2592,11 +2592,17 @@ function Vn(n, t, e, o) {
2592
2592
  };
2593
2593
  }, [n, o, t, e]), i;
2594
2594
  }
2595
+ function _o(n) {
2596
+ const { inert: t, panelElement: e } = n;
2597
+ return $e(() => {
2598
+ e && (e.inert = t);
2599
+ }, [t, e]), null;
2600
+ }
2595
2601
  function No(n, t, e) {
2596
- t.current = n, He(e, n);
2602
+ t.current = n, De(e, n);
2597
2603
  }
2598
2604
  function Lo(n, t, e) {
2599
- t.current = n, He(e, n);
2605
+ t.current = n, De(e, n);
2600
2606
  }
2601
2607
  function Mo(n, t) {
2602
2608
  const e = (n == null ? void 0 : n.split(/\s+/).filter(Boolean)) ?? [];
@@ -2637,18 +2643,18 @@ const Lr = g(function(t, e) {
2637
2643
  } = t;
2638
2644
  if (N.type === _e)
2639
2645
  throw new Error("Popover requires a single non-Fragment trigger");
2640
- const z = Le(), Z = Ne(Be), H = `${z}-popover`, E = N.props, U = Tn(N), S = E.id ?? `${z}-trigger`, y = c || E.disabled === !0 || E["aria-disabled"] === !0 || E["aria-disabled"] === "true", P = b !== void 0, [A, B] = $(d), V = P ? b : A, j = Ue(V), te = D(null), ee = D(null), X = D("programmatic"), K = D(null), de = D(V), pe = D(null), [we, Ee] = Cn(
2646
+ const z = Le(), Z = Ne(Oe), H = `${z}-popover`, E = N.props, U = Rn(N), S = E.id ?? `${z}-trigger`, y = c || E.disabled === !0 || E["aria-disabled"] === !0 || E["aria-disabled"] === "true", P = b !== void 0, [A, B] = $(d), V = P ? b : A, j = Ye(V), te = D(null), ee = D(null), X = D("programmatic"), K = D(null), ce = D(V), pe = D(null), [be, Ee] = xn(
2641
2647
  (F) => F + 1,
2642
2648
  0
2643
- ), [G, ne] = $(null), [ae, oe] = $(null), Y = (M == null ? void 0 : M.ownerDocument) ?? (G == null ? void 0 : G.ownerDocument) ?? (typeof document > "u" ? null : document), ve = Ge(j.present, Y), re = Me(
2649
+ ), [G, ne] = $(null), [le, re] = $(null), Y = (M == null ? void 0 : M.ownerDocument) ?? (G == null ? void 0 : G.ownerDocument) ?? (typeof document > "u" ? null : document), ve = Ke(j.present, Y), ie = Me(
2644
2650
  () => [te, ee],
2645
2651
  []
2646
- ), le = Vn(
2652
+ ), se = Tn(
2647
2653
  j.present,
2648
2654
  w,
2649
2655
  G,
2650
- ae
2651
- ), be = V ? {} : { inert: "" }, Se = W(
2656
+ le
2657
+ ), ye = W(
2652
2658
  (F) => {
2653
2659
  Lo(
2654
2660
  F,
@@ -2657,75 +2663,75 @@ const Lr = g(function(t, e) {
2657
2663
  ), ne(F);
2658
2664
  },
2659
2665
  [U]
2660
- ), Re = W(
2666
+ ), Se = W(
2661
2667
  (F) => {
2662
2668
  No(
2663
2669
  F,
2664
2670
  ee,
2665
2671
  e
2666
- ), oe(F);
2672
+ ), re(F);
2667
2673
  },
2668
2674
  [e]
2669
- ), ue = W((F, J) => {
2675
+ ), de = W((F, J) => {
2670
2676
  V !== F && (P ? (K.current = {
2671
2677
  open: F,
2672
2678
  reason: J
2673
2679
  }, Ee()) : (X.current = J, B(F)), m == null || m(F, J));
2674
- }, [P, m, V]), Te = W(() => {
2675
- ue(!1, "escape");
2676
- }, [ue]), ye = W(() => {
2677
- ue(!1, "outside");
2678
- }, [ue]), h = W((F) => {
2679
- var Ae;
2680
+ }, [P, m, V]), Re = W(() => {
2681
+ de(!1, "escape");
2682
+ }, [de]), Te = W(() => {
2683
+ de(!1, "outside");
2684
+ }, [de]), ke = W((F) => {
2685
+ var Ve;
2680
2686
  if (x == null || x(F), F.defaultPrevented) return;
2681
- const J = (Ae = Y == null ? void 0 : Y.defaultView) == null ? void 0 : Ae.HTMLElement;
2687
+ const J = (Ve = Y == null ? void 0 : Y.defaultView) == null ? void 0 : Ve.HTMLElement;
2682
2688
  pe.current = J ? F.composedPath().find(
2683
2689
  (Ie) => Ie instanceof J && Ie.tabIndex >= 0
2684
2690
  ) ?? F.target : F.target;
2685
2691
  }, [x, Y]);
2686
- Ke({
2692
+ Ue({
2687
2693
  active: V,
2688
- boundaries: re,
2694
+ boundaries: ie,
2689
2695
  dismissOnEscape: u,
2690
2696
  dismissOnPointerDownOutside: f,
2691
2697
  layerId: ve.id,
2692
- onEscapeDismiss: Te,
2698
+ onEscapeDismiss: Re,
2693
2699
  onEscapeKeyDown: v,
2694
- onPointerDownOutside: h,
2695
- onPointerDownOutsideDismiss: ye,
2700
+ onPointerDownOutside: ke,
2701
+ onPointerDownOutsideDismiss: Te,
2696
2702
  ownerDocument: Y
2697
2703
  });
2698
- const L = Rn({
2704
+ const h = Sn({
2699
2705
  active: V && I,
2700
2706
  autoFocus: r,
2701
- container: ae,
2707
+ container: le,
2702
2708
  initialFocusReference: p,
2703
2709
  layerId: ve.id,
2704
2710
  restoreFocus: _
2705
2711
  });
2706
2712
  q(() => {
2707
- if (!V || I || !r || !ae) return;
2713
+ if (!V || I || !r || !le) return;
2708
2714
  let F = !0;
2709
2715
  return Promise.resolve().then(() => {
2710
2716
  if (!F) return;
2711
2717
  const J = p == null ? void 0 : p.current;
2712
- (J && ae.contains(J) ? J : ae).focus({ preventScroll: !0 });
2718
+ (J && le.contains(J) ? J : le).focus({ preventScroll: !0 });
2713
2719
  }), () => {
2714
2720
  F = !1;
2715
2721
  };
2716
- }, [r, p, V, ae, I]), q(() => {
2717
- var dn;
2718
- const F = de.current;
2719
- de.current = V;
2720
- const J = K.current, Ae = P ? F !== V && (J == null ? void 0 : J.open) === V ? J.reason : "programmatic" : X.current;
2722
+ }, [r, p, V, le, I]), q(() => {
2723
+ var cn;
2724
+ const F = ce.current;
2725
+ ce.current = V;
2726
+ const J = K.current, Ve = P ? F !== V && (J == null ? void 0 : J.open) === V ? J.reason : "programmatic" : X.current;
2721
2727
  if (K.current = null, V) {
2722
2728
  X.current = "programmatic", pe.current = null;
2723
2729
  return;
2724
2730
  }
2725
- const Ie = Y == null ? void 0 : Y.activeElement, Ye = pe.current, Xe = (dn = Y == null ? void 0 : Y.defaultView) == null ? void 0 : dn.HTMLElement, jn = Ae === "outside" && Xe && Ye instanceof Xe && Ie instanceof Xe && (Ye === Ie || Ye.contains(Ie));
2726
- F && !I && _ && !jn && (G == null || G.focus({ preventScroll: !0 })), pe.current = null;
2731
+ const Ie = Y == null ? void 0 : Y.activeElement, Xe = pe.current, Qe = (cn = Y == null ? void 0 : Y.defaultView) == null ? void 0 : cn.HTMLElement, zn = Ve === "outside" && Qe && Xe instanceof Qe && Ie instanceof Qe && (Xe === Ie || Xe.contains(Ie));
2732
+ F && !I && _ && !zn && (G == null || G.focus({ preventScroll: !0 })), pe.current = null;
2727
2733
  }, [
2728
- we,
2734
+ be,
2729
2735
  P,
2730
2736
  V,
2731
2737
  Y,
@@ -2733,22 +2739,22 @@ const Lr = g(function(t, e) {
2733
2739
  I,
2734
2740
  G
2735
2741
  ]), q(() => {
2736
- c && V && ue(!1, "programmatic");
2737
- }, [c, V, ue]);
2738
- function Q(F) {
2742
+ c && V && de(!1, "programmatic");
2743
+ }, [c, V, de]);
2744
+ function L(F) {
2739
2745
  var J;
2740
2746
  if (y) {
2741
2747
  F.preventDefault(), F.stopPropagation();
2742
2748
  return;
2743
2749
  }
2744
- (J = E.onClick) == null || J.call(E, F), !F.defaultPrevented && ue(!V, "trigger");
2750
+ (J = E.onClick) == null || J.call(E, F), !F.defaultPrevented && de(!V, "trigger");
2745
2751
  }
2746
- function ie(F) {
2752
+ function Q(F) {
2747
2753
  var J;
2748
2754
  (J = E.onKeyDown) == null || J.call(E, F), !(F.defaultPrevented || y || Eo(F.currentTarget) || F.key !== "Enter" && F.key !== " ") && (F.preventDefault(), F.currentTarget.click());
2749
2755
  }
2750
2756
  if (c) return N;
2751
- const se = typeof N.type == "string", ce = se ? N.type : null, ke = ce === "a" && typeof E.href == "string", sn = se && !(ce === "button" || ce === "input" || ce === "select" || ce === "summary" || ce === "textarea" || ke), cn = ke && y, zn = Pe(
2757
+ const oe = typeof N.type == "string", ae = oe ? N.type : null, ue = ae === "a" && typeof E.href == "string", we = oe && !(ae === "button" || ae === "input" || ae === "select" || ae === "summary" || ae === "textarea" || ue), sn = ue && y, Wn = Pe(
2752
2758
  N,
2753
2759
  {
2754
2760
  "aria-controls": V ? Mo(E["aria-controls"], H) : E["aria-controls"],
@@ -2756,40 +2762,39 @@ const Lr = g(function(t, e) {
2756
2762
  "aria-haspopup": E["aria-haspopup"] ?? So(R),
2757
2763
  "aria-disabled": y ? !0 : E["aria-disabled"],
2758
2764
  className: [E.className, "nk-popover__trigger"].filter(Boolean).join(" "),
2759
- href: cn ? void 0 : E.href,
2765
+ href: sn ? void 0 : E.href,
2760
2766
  id: S,
2761
- onClick: Q,
2762
- onKeyDown: se ? ie : E.onKeyDown,
2763
- ref: Se,
2764
- role: E.role ?? (cn ? "link" : sn ? "button" : void 0),
2765
- tabIndex: y ? -1 : E.tabIndex ?? (sn ? 0 : void 0)
2767
+ onClick: L,
2768
+ onKeyDown: oe ? Q : E.onKeyDown,
2769
+ ref: ye,
2770
+ role: E.role ?? (sn ? "link" : we ? "button" : void 0),
2771
+ tabIndex: y ? -1 : E.tabIndex ?? (we ? 0 : void 0)
2766
2772
  }
2767
2773
  );
2768
2774
  return /* @__PURE__ */ O(je, { children: [
2769
- zn,
2775
+ Wn,
2770
2776
  /* @__PURE__ */ a(
2771
- Be.Provider,
2777
+ Oe.Provider,
2772
2778
  {
2773
- value: V && I ? L : Z,
2774
- children: j.present && Y ? /* @__PURE__ */ a($e, { container: M, inheritFrom: G, children: /* @__PURE__ */ O(
2775
- Fe,
2779
+ value: V && I ? h : Z,
2780
+ children: j.present && Y ? /* @__PURE__ */ a(Ge, { container: M, inheritFrom: G, children: /* @__PURE__ */ O(
2781
+ He,
2776
2782
  {
2777
2783
  ...T,
2778
- ...be,
2779
- ref: Re,
2784
+ ref: Se,
2780
2785
  "aria-hidden": V ? void 0 : !0,
2781
2786
  "aria-label": V ? o : void 0,
2782
2787
  "aria-labelledby": V ? i ?? (o === void 0 ? S : void 0) : void 0,
2783
2788
  className: ["nk-popover", s].filter(Boolean).join(" "),
2784
- "data-placement": (le == null ? void 0 : le.placement) ?? w,
2789
+ "data-placement": (se == null ? void 0 : se.placement) ?? w,
2785
2790
  "data-state": j.state === "closing" ? "closing" : "open",
2786
2791
  id: H,
2787
2792
  role: V ? R : void 0,
2788
- style: le ? {
2793
+ style: se ? {
2789
2794
  ...k,
2790
- "--nk-popover-arrow-offset": `${le.arrowOffset}px`,
2791
- left: le.left,
2792
- top: le.top,
2795
+ "--nk-popover-arrow-offset": `${se.arrowOffset}px`,
2796
+ left: se.left,
2797
+ top: se.top,
2793
2798
  zIndex: ve.zIndex
2794
2799
  } : {
2795
2800
  ...k,
@@ -2798,6 +2803,13 @@ const Lr = g(function(t, e) {
2798
2803
  },
2799
2804
  tabIndex: C ?? -1,
2800
2805
  children: [
2806
+ /* @__PURE__ */ a(
2807
+ _o,
2808
+ {
2809
+ inert: !V,
2810
+ panelElement: le
2811
+ }
2812
+ ),
2801
2813
  /* @__PURE__ */ a("span", { "aria-hidden": "true", className: "nk-popover__arrow" }),
2802
2814
  /* @__PURE__ */ a("div", { className: "nk-popover__content", children: l })
2803
2815
  ]
@@ -2806,12 +2818,12 @@ const Lr = g(function(t, e) {
2806
2818
  }
2807
2819
  )
2808
2820
  ] });
2809
- }), Ro = 3, To = 10, An = 4;
2821
+ }), Ro = 3, To = 10, Vn = 4;
2810
2822
  function Vo(n) {
2811
2823
  return Number.isFinite(n) ? Math.min(
2812
2824
  To,
2813
2825
  Math.max(Ro, Math.trunc(n))
2814
- ) : An;
2826
+ ) : Vn;
2815
2827
  }
2816
2828
  function xe(n, t, e) {
2817
2829
  return (t === "numeric" ? n.replace(/[^0-9]/g, "") : n.replace(/[^0-9a-z]/gi, "").toUpperCase()).slice(0, e);
@@ -2827,7 +2839,7 @@ function Oo(n, t) {
2827
2839
  )) == null ? void 0 : o.set;
2828
2840
  e ? e.call(n, t) : n.value = t;
2829
2841
  }
2830
- function nn(n, t, e) {
2842
+ function tn(n, t, e) {
2831
2843
  const o = Math.min(e - 1, Math.max(0, t)), i = Math.min(o + 1, n.value.length);
2832
2844
  n.focus(), n.setSelectionRange(o, i);
2833
2845
  }
@@ -2916,12 +2928,12 @@ function Bo(n) {
2916
2928
  m - 1,
2917
2929
  Math.max(0, N(S.currentTarget) + y)
2918
2930
  );
2919
- R(P), nn(S.currentTarget, P, m);
2931
+ R(P), tn(S.currentTarget, P, m);
2920
2932
  }
2921
2933
  function H(S) {
2922
2934
  u == null || u(S);
2923
2935
  const y = Math.min(m - 1, C.length);
2924
- R(y), nn(S.currentTarget, y, m);
2936
+ R(y), tn(S.currentTarget, y, m);
2925
2937
  }
2926
2938
  function E(S) {
2927
2939
  c == null || c(S), R(N(S.currentTarget));
@@ -2929,7 +2941,7 @@ function Bo(n) {
2929
2941
  function U(S, y) {
2930
2942
  if (S.preventDefault(), e) return;
2931
2943
  const P = b.current;
2932
- P && (R(y), nn(P, y, m));
2944
+ P && (R(y), tn(P, y, m));
2933
2945
  }
2934
2946
  return {
2935
2947
  activeIndex: _,
@@ -2954,7 +2966,7 @@ const Mr = g(function(t, e) {
2954
2966
  defaultValue: u = "",
2955
2967
  disabled: f = !1,
2956
2968
  invalid: d = !1,
2957
- length: c = An,
2969
+ length: c = Vn,
2958
2970
  mode: p = "numeric",
2959
2971
  onChange: v,
2960
2972
  onComplete: m,
@@ -3046,9 +3058,9 @@ const Mr = g(function(t, e) {
3046
3058
  ]
3047
3059
  }
3048
3060
  );
3049
- }), On = qe(void 0);
3061
+ }), An = qe(void 0);
3050
3062
  function Do() {
3051
- const n = Ne(On);
3063
+ const n = Ne(An);
3052
3064
  if (!n)
3053
3065
  throw new Error("Radio must be rendered within RadioGroup");
3054
3066
  return n;
@@ -3126,7 +3138,7 @@ const Er = g(function(t, e) {
3126
3138
  required: p,
3127
3139
  value: v
3128
3140
  };
3129
- return /* @__PURE__ */ a(On.Provider, { value: b, children: /* @__PURE__ */ a(
3141
+ return /* @__PURE__ */ a(An.Provider, { value: b, children: /* @__PURE__ */ a(
3130
3142
  "div",
3131
3143
  {
3132
3144
  ...m,
@@ -3144,8 +3156,8 @@ const Er = g(function(t, e) {
3144
3156
  ) });
3145
3157
  }
3146
3158
  );
3147
- En(Fo, "group");
3148
- function tn(n, t, e) {
3159
+ Mn(Fo, "group");
3160
+ function on(n, t, e) {
3149
3161
  if (n.length === 0) return -1;
3150
3162
  for (let o = 1; o <= n.length; o += 1) {
3151
3163
  const i = (t + e * o + n.length) % n.length;
@@ -3282,7 +3294,7 @@ function $o(n) {
3282
3294
  selectedValue: b,
3283
3295
  state: w,
3284
3296
  triggerReference: M
3285
- } = n, _ = D(null), R = Ge(!0, m), k = Me(
3297
+ } = n, _ = D(null), R = Ke(!0, m), k = Me(
3286
3298
  () => [M, _],
3287
3299
  [M]
3288
3300
  ), C = W(
@@ -3291,7 +3303,7 @@ function $o(n) {
3291
3303
  },
3292
3304
  [l]
3293
3305
  );
3294
- return Ke({
3306
+ return Ue({
3295
3307
  active: t,
3296
3308
  boundaries: k,
3297
3309
  dismissOnEscape: e,
@@ -3347,7 +3359,7 @@ function $o(n) {
3347
3359
  );
3348
3360
  }
3349
3361
  function Go(n) {
3350
- var ye;
3362
+ var ke;
3351
3363
  const {
3352
3364
  "aria-invalid": t,
3353
3365
  className: e,
@@ -3377,13 +3389,13 @@ function Go(n) {
3377
3389
  ...z
3378
3390
  } = n;
3379
3391
  zo(_);
3380
- const Z = Le(), H = d ?? Z, E = D(null), U = D(null), S = D(null), y = D(""), [P, A] = $(null), [B, V] = $(!1), [j, te] = $(-1), [ee, X] = $(r), K = N !== void 0, de = K ? N : ee, pe = _.find(
3381
- (h) => h.value === de
3382
- ), we = c || he(t), Ee = ge(c, t), G = Ue(B), ne = (k == null ? void 0 : k.ownerDocument) ?? ((ye = E.current) == null ? void 0 : ye.ownerDocument) ?? (typeof document > "u" ? null : document), ae = qo(
3392
+ const Z = Le(), H = d ?? Z, E = D(null), U = D(null), S = D(null), y = D(""), [P, A] = $(null), [B, V] = $(!1), [j, te] = $(-1), [ee, X] = $(r), K = N !== void 0, ce = K ? N : ee, pe = _.find(
3393
+ (h) => h.value === ce
3394
+ ), be = c || he(t), Ee = ge(c, t), G = Ye(B), ne = (k == null ? void 0 : k.ownerDocument) ?? ((ke = E.current) == null ? void 0 : ke.ownerDocument) ?? (typeof document > "u" ? null : document), le = qo(
3383
3395
  G.present,
3384
3396
  E.current,
3385
3397
  P
3386
- ), oe = T === void 0 ? I : { ...I, width: T }, Y = s ?? pe, ve = W(
3398
+ ), re = T === void 0 ? I : { ...I, width: T }, Y = s ?? pe, ve = W(
3387
3399
  (h) => {
3388
3400
  jo(
3389
3401
  h,
@@ -3392,26 +3404,26 @@ function Go(n) {
3392
3404
  );
3393
3405
  },
3394
3406
  [f]
3395
- ), re = W((h) => {
3407
+ ), ie = W((h) => {
3396
3408
  B !== h && (V(h), w == null || w(h));
3397
- }, [w, B]), le = W((h = 1) => {
3409
+ }, [w, B]), se = W((h = 1) => {
3398
3410
  const L = _.findIndex(
3399
- (ie) => ie.value === de && !ie.disabled
3411
+ (oe) => oe.value === ce && !oe.disabled
3400
3412
  ), Q = h === 1 ? -1 : _.length;
3401
3413
  te(
3402
- L >= 0 ? L : tn(_, Q, h)
3403
- ), re(!0);
3404
- }, [_, de, re]), be = W((h) => {
3414
+ L >= 0 ? L : on(_, Q, h)
3415
+ ), ie(!0);
3416
+ }, [_, ce, ie]), ye = W((h) => {
3405
3417
  var L;
3406
- h.disabled || (K || X(h.value), re(!1), (L = E.current) == null || L.focus(), v == null || v(h.value));
3407
- }, [K, v, re]), Se = W(() => {
3418
+ h.disabled || (K || X(h.value), ie(!1), (L = E.current) == null || L.focus(), v == null || v(h.value));
3419
+ }, [K, v, ie]), Se = W(() => {
3408
3420
  var h;
3409
- re(!1), (h = E.current) == null || h.focus();
3410
- }, [re]), Re = W(() => {
3411
- re(!1);
3412
- }, [re]);
3413
- function ue(h) {
3414
- m == null || m(h), !(h.defaultPrevented || l) && (B ? re(!1) : le());
3421
+ ie(!1), (h = E.current) == null || h.focus();
3422
+ }, [ie]), de = W(() => {
3423
+ ie(!1);
3424
+ }, [ie]);
3425
+ function Re(h) {
3426
+ m == null || m(h), !(h.defaultPrevented || l) && (B ? ie(!1) : se());
3415
3427
  }
3416
3428
  function Te(h) {
3417
3429
  if (b == null || b(h), !(h.defaultPrevented || l)) {
@@ -3419,16 +3431,16 @@ function Go(n) {
3419
3431
  h.preventDefault();
3420
3432
  const L = h.key === "ArrowDown" ? 1 : -1;
3421
3433
  B ? te(
3422
- (Q) => tn(_, Q, L)
3423
- ) : le(L);
3434
+ (Q) => on(_, Q, L)
3435
+ ) : se(L);
3424
3436
  return;
3425
3437
  }
3426
3438
  if (h.key === "Home" || h.key === "End") {
3427
- if (h.preventDefault(), !B) le(h.key === "Home" ? 1 : -1);
3439
+ if (h.preventDefault(), !B) se(h.key === "Home" ? 1 : -1);
3428
3440
  else {
3429
3441
  const L = h.key === "Home" ? 1 : -1, Q = L === 1 ? -1 : _.length;
3430
3442
  te(
3431
- tn(_, Q, L)
3443
+ on(_, Q, L)
3432
3444
  );
3433
3445
  }
3434
3446
  return;
@@ -3436,26 +3448,26 @@ function Go(n) {
3436
3448
  if (h.key === "Enter" || h.key === " ") {
3437
3449
  h.preventDefault();
3438
3450
  const L = _[j];
3439
- B && L ? be(L) : B || le();
3451
+ B && L ? ye(L) : B || se();
3440
3452
  return;
3441
3453
  }
3442
3454
  if (h.key === "Tab") {
3443
- re(!1);
3455
+ ie(!1);
3444
3456
  return;
3445
3457
  }
3446
3458
  if (h.key.length === 1 && !h.altKey && !h.ctrlKey && !h.metaKey) {
3447
3459
  const L = h.currentTarget.ownerDocument.defaultView;
3448
3460
  if (!L) return;
3449
- const Q = h.key.toLocaleLowerCase(), ie = y.current + Q, se = Array.from(ie).every((ke) => ke === Q);
3450
- y.current = se ? Q : ie, S.current !== null && L.clearTimeout(S.current), S.current = L.setTimeout(() => {
3461
+ const Q = h.key.toLocaleLowerCase(), oe = y.current + Q, ae = Array.from(oe).every((Fe) => Fe === Q);
3462
+ y.current = ae ? Q : oe, S.current !== null && L.clearTimeout(S.current), S.current = L.setTimeout(() => {
3451
3463
  y.current = "", S.current = null;
3452
3464
  }, 500);
3453
- const ce = Wo(
3465
+ const ue = Wo(
3454
3466
  _,
3455
3467
  y.current,
3456
3468
  j
3457
3469
  );
3458
- ce >= 0 && (h.preventDefault(), B || re(!0), te(ce));
3470
+ ue >= 0 && (h.preventDefault(), B || ie(!0), te(ue));
3459
3471
  }
3460
3472
  }
3461
3473
  }
@@ -3472,19 +3484,19 @@ function Go(n) {
3472
3484
  const h = (Q = E.current) == null ? void 0 : Q.form;
3473
3485
  if (!h) return;
3474
3486
  function L() {
3475
- const ie = U.current, se = K ? de : r;
3476
- if (ie) {
3477
- const ce = Array.from(ie.options), ke = ce.find(
3478
- (Ve) => Ve.value === se
3479
- ) ?? ce[0];
3480
- ce.forEach((Ve) => {
3481
- Ve.defaultSelected = Ve === ke;
3487
+ const oe = U.current, ae = K ? ce : r;
3488
+ if (oe) {
3489
+ const ue = Array.from(oe.options), Fe = ue.find(
3490
+ (we) => we.value === ae
3491
+ ) ?? ue[0];
3492
+ ue.forEach((we) => {
3493
+ we.defaultSelected = we === Fe;
3482
3494
  });
3483
3495
  }
3484
- K || X(r), re(!1);
3496
+ K || X(r), ie(!1);
3485
3497
  }
3486
3498
  return h.addEventListener("reset", L), () => h.removeEventListener("reset", L);
3487
- }, [r, u, K, de, re]), q(() => () => {
3499
+ }, [r, u, K, ce, ie]), q(() => () => {
3488
3500
  var L;
3489
3501
  const h = (L = E.current) == null ? void 0 : L.ownerDocument.defaultView;
3490
3502
  h && S.current !== null && h.clearTimeout(S.current);
@@ -3493,10 +3505,10 @@ function Go(n) {
3493
3505
  {
3494
3506
  className: ["nk-select", e].filter(Boolean).join(" "),
3495
3507
  "data-disabled": l || void 0,
3496
- "data-invalid": we || void 0,
3508
+ "data-invalid": be || void 0,
3497
3509
  "data-mode": "custom",
3498
3510
  "data-open": B || void 0,
3499
- style: oe,
3511
+ style: re,
3500
3512
  children: [
3501
3513
  /* @__PURE__ */ O(
3502
3514
  "button",
@@ -3514,7 +3526,7 @@ function Go(n) {
3514
3526
  disabled: l,
3515
3527
  form: u,
3516
3528
  id: H,
3517
- onClick: ue,
3529
+ onClick: Re,
3518
3530
  onKeyDown: Te,
3519
3531
  role: "combobox",
3520
3532
  type: "button",
@@ -3544,7 +3556,7 @@ function Go(n) {
3544
3556
  },
3545
3557
  required: C,
3546
3558
  tabIndex: -1,
3547
- value: de,
3559
+ value: ce,
3548
3560
  children: [
3549
3561
  /* @__PURE__ */ a("option", { value: "" }),
3550
3562
  _.map((h) => /* @__PURE__ */ a(
@@ -3560,7 +3572,7 @@ function Go(n) {
3560
3572
  }
3561
3573
  ) : null,
3562
3574
  G.present && ne ? /* @__PURE__ */ a(
3563
- $e,
3575
+ Ge,
3564
3576
  {
3565
3577
  container: k,
3566
3578
  inheritFrom: E.current,
@@ -3576,13 +3588,13 @@ function Go(n) {
3576
3588
  onEscapeDismiss: Se,
3577
3589
  onEscapeKeyDown: x,
3578
3590
  onHighlight: te,
3579
- onOutsideDismiss: Re,
3591
+ onOutsideDismiss: de,
3580
3592
  onPointerDownOutside: M,
3581
- onSelect: be,
3593
+ onSelect: ye,
3582
3594
  options: _,
3583
3595
  ownerDocument: ne,
3584
- position: ae,
3585
- selectedValue: de,
3596
+ position: le,
3597
+ selectedValue: ce,
3586
3598
  state: G.state === "closing" ? "closing" : "open",
3587
3599
  triggerReference: E
3588
3600
  }
@@ -3661,19 +3673,19 @@ const Sr = g(function(t, e) {
3661
3673
  ]
3662
3674
  }
3663
3675
  );
3664
- }), Ko = 500, Bn = qe(null);
3676
+ }), Ko = 500, On = qe(null);
3665
3677
  function Vr(n) {
3666
3678
  const { children: t, delay: e = Ko } = n, o = Me(() => ({
3667
3679
  delay: e
3668
3680
  }), [e]);
3669
- return /* @__PURE__ */ a(Bn.Provider, { value: o, children: t });
3681
+ return /* @__PURE__ */ a(On.Provider, { value: o, children: t });
3670
3682
  }
3671
- const Dn = 500, In = 100;
3683
+ const Bn = 500, kn = 100;
3672
3684
  function Uo(n, t, e, o) {
3673
- t.current = n, He(e, n), He(o, n);
3685
+ t.current = n, De(e, n), De(o, n);
3674
3686
  }
3675
3687
  function Yo(n) {
3676
- return Number.isFinite(n) ? Math.max(0, n) : Dn;
3688
+ return Number.isFinite(n) ? Math.max(0, n) : Bn;
3677
3689
  }
3678
3690
  function Xo(n, t) {
3679
3691
  const e = (n == null ? void 0 : n.split(/\s+/).filter(Boolean)) ?? [];
@@ -3697,11 +3709,11 @@ const Qo = g(function(t, e) {
3697
3709
  throw new Error("Tooltip content must not be empty");
3698
3710
  if (o.type === _e)
3699
3711
  throw new Error("Tooltip requires a single non-Fragment trigger");
3700
- const x = `${Le()}-tooltip`, b = Ne(Bn), w = o.props, M = Tn(o), _ = D(null), R = D(null), k = D(f), C = D(!1), I = D(null), N = D(null), T = D(null), z = D(!1), Z = D(!1), H = D(!1), E = D(!1), [U, S] = $(null), [y, P] = $(null), [A, B] = $(!1);
3712
+ const x = `${Le()}-tooltip`, b = Ne(On), w = o.props, M = Rn(o), _ = D(null), R = D(null), k = D(f), C = D(!1), I = D(null), N = D(null), T = D(null), z = D(!1), Z = D(!1), H = D(!1), E = D(!1), [U, S] = $(null), [y, P] = $(null), [A, B] = $(!1);
3701
3713
  k.current = f;
3702
3714
  const V = Yo(
3703
- u ?? (b == null ? void 0 : b.delay) ?? Dn
3704
- ), j = Ue(A), te = (p == null ? void 0 : p.ownerDocument) ?? (U == null ? void 0 : U.ownerDocument) ?? (typeof document > "u" ? null : document), ee = Ge(j.present, te), X = Vn(
3715
+ u ?? (b == null ? void 0 : b.delay) ?? Bn
3716
+ ), j = Ye(A), te = (p == null ? void 0 : p.ownerDocument) ?? (U == null ? void 0 : U.ownerDocument) ?? (typeof document > "u" ? null : document), ee = Ke(j.present, te), X = Tn(
3705
3717
  j.present,
3706
3718
  c,
3707
3719
  U,
@@ -3709,10 +3721,10 @@ const Qo = g(function(t, e) {
3709
3721
  ), K = Me(
3710
3722
  () => [_, R],
3711
3723
  []
3712
- ), de = Xo(
3724
+ ), ce = Xo(
3713
3725
  w["aria-describedby"],
3714
3726
  x
3715
- ), pe = A && j.present ? de : w["aria-describedby"], we = W(
3727
+ ), pe = A && j.present ? ce : w["aria-describedby"], be = W(
3716
3728
  (h) => {
3717
3729
  Uo(
3718
3730
  h,
@@ -3733,127 +3745,127 @@ const Qo = g(function(t, e) {
3733
3745
  }, []), ne = W(() => {
3734
3746
  const h = N.current;
3735
3747
  h && h.ownerWindow.clearTimeout(h.timerId), N.current = null;
3736
- }, []), ae = W(() => {
3748
+ }, []), le = W(() => {
3737
3749
  const h = T.current;
3738
3750
  h && h.ownerWindow.clearTimeout(h.timerId), T.current = null;
3739
- }, []), oe = W((h) => {
3751
+ }, []), re = W((h) => {
3740
3752
  C.current !== h && (h || (E.current = !1), C.current = h, B(h), d == null || d(h));
3741
3753
  }, [d]), Y = W((h) => {
3742
- var ie, se;
3754
+ var oe, ae;
3743
3755
  if (ne(), Z.current || H.current || E.current)
3744
3756
  return;
3745
3757
  if (h === 0) {
3746
- oe(!1);
3758
+ re(!1);
3747
3759
  return;
3748
3760
  }
3749
- const L = ((ie = _.current) == null ? void 0 : ie.ownerDocument.defaultView) ?? ((se = R.current) == null ? void 0 : se.ownerDocument.defaultView);
3761
+ const L = ((oe = _.current) == null ? void 0 : oe.ownerDocument.defaultView) ?? ((ae = R.current) == null ? void 0 : ae.ownerDocument.defaultView);
3750
3762
  if (!L) {
3751
- oe(!1);
3763
+ re(!1);
3752
3764
  return;
3753
3765
  }
3754
3766
  const Q = L.setTimeout(() => {
3755
- N.current = null, !Z.current && !H.current && !E.current && oe(!1);
3767
+ N.current = null, !Z.current && !H.current && !E.current && re(!1);
3756
3768
  }, h);
3757
3769
  N.current = {
3758
3770
  ownerWindow: L,
3759
3771
  timerId: Q
3760
3772
  };
3761
- }, [ne, oe]), ve = W(() => {
3773
+ }, [ne, re]), ve = W(() => {
3762
3774
  var Q;
3763
3775
  if (G(), ne(), V === 0) {
3764
- oe(!0);
3776
+ re(!0);
3765
3777
  return;
3766
3778
  }
3767
3779
  const h = (Q = _.current) == null ? void 0 : Q.ownerDocument.defaultView;
3768
3780
  if (!h) return;
3769
3781
  const L = h.setTimeout(() => {
3770
- I.current = null, k.current || oe(!0);
3782
+ I.current = null, k.current || re(!0);
3771
3783
  }, V);
3772
3784
  I.current = { ownerWindow: h, timerId: L };
3773
- }, [ne, G, V, oe]);
3774
- function re(h) {
3785
+ }, [ne, G, V, re]);
3786
+ function ie(h) {
3775
3787
  var L;
3776
- if ((L = w.onFocus) == null || L.call(w, h), Z.current = !0, ne(), z.current || uo(h.currentTarget)) {
3788
+ if ((L = w.onFocus) == null || L.call(w, h), Z.current = !0, ne(), z.current || co(h.currentTarget)) {
3777
3789
  G();
3778
3790
  return;
3779
3791
  }
3780
- G(), oe(!0);
3792
+ G(), re(!0);
3781
3793
  }
3782
- function le(h) {
3794
+ function se(h) {
3783
3795
  var L;
3784
3796
  (L = w.onBlur) == null || L.call(w, h), !h.currentTarget.contains(h.relatedTarget) && (Z.current = !1, G(), Y(0));
3785
3797
  }
3786
- function be(h) {
3798
+ function ye(h) {
3787
3799
  var L;
3788
3800
  (L = w.onMouseEnter) == null || L.call(w, h), H.current = !0, ve();
3789
3801
  }
3790
3802
  function Se(h) {
3791
3803
  var L;
3792
- (L = w.onMouseLeave) == null || L.call(w, h), H.current = !1, G(), Y(In);
3804
+ (L = w.onMouseLeave) == null || L.call(w, h), H.current = !1, G(), Y(kn);
3793
3805
  }
3794
- function Re() {
3806
+ function de() {
3795
3807
  E.current = !0, ne();
3796
3808
  }
3797
- function ue() {
3798
- E.current = !1, Y(In);
3809
+ function Re() {
3810
+ E.current = !1, Y(kn);
3799
3811
  }
3800
3812
  function Te(h) {
3801
- var ie, se;
3802
- (ie = w.onPointerDown) == null || ie.call(w, h), G(), ne(), oe(!1);
3803
- const L = (se = _.current) == null ? void 0 : se.ownerDocument.defaultView;
3813
+ var oe, ae;
3814
+ (oe = w.onPointerDown) == null || oe.call(w, h), G(), ne(), re(!1);
3815
+ const L = (ae = _.current) == null ? void 0 : ae.ownerDocument.defaultView;
3804
3816
  if (!L) return;
3805
- z.current = !0, ae();
3817
+ z.current = !0, le();
3806
3818
  const Q = L.setTimeout(() => {
3807
3819
  z.current = !1, T.current = null;
3808
3820
  }, 0);
3809
3821
  T.current = { ownerWindow: L, timerId: Q };
3810
3822
  }
3811
- if (Ke({
3823
+ if (Ue({
3812
3824
  active: A,
3813
3825
  boundaries: K,
3814
3826
  dismissOnPointerDownOutside: !0,
3815
3827
  layerId: ee.id,
3816
- onEscapeDismiss: () => oe(!1),
3817
- onPointerDownOutsideDismiss: () => oe(!1),
3828
+ onEscapeDismiss: () => re(!1),
3829
+ onPointerDownOutsideDismiss: () => re(!1),
3818
3830
  ownerDocument: te
3819
3831
  }), q(() => {
3820
- f && (G(), ne(), ae(), z.current = !1, Z.current = !1, H.current = !1, E.current = !1, C.current && oe(!1));
3832
+ f && (G(), ne(), le(), z.current = !1, Z.current = !1, H.current = !1, E.current = !1, C.current && re(!1));
3821
3833
  }, [
3822
3834
  ne,
3823
3835
  G,
3824
- ae,
3836
+ le,
3825
3837
  f,
3826
- oe
3838
+ re
3827
3839
  ]), q(() => () => {
3828
- G(), ne(), ae();
3829
- }, [ne, G, ae]), f)
3840
+ G(), ne(), le();
3841
+ }, [ne, G, le]), f)
3830
3842
  return Pe(
3831
3843
  o,
3832
- { ref: we }
3844
+ { ref: be }
3833
3845
  );
3834
- const ye = Pe(
3846
+ const ke = Pe(
3835
3847
  o,
3836
3848
  {
3837
3849
  "aria-describedby": pe,
3838
3850
  className: [w.className, "nk-tooltip__trigger", i].filter(Boolean).join(" "),
3839
- onBlur: le,
3840
- onFocus: re,
3841
- onMouseEnter: be,
3851
+ onBlur: se,
3852
+ onFocus: ie,
3853
+ onMouseEnter: ye,
3842
3854
  onMouseLeave: Se,
3843
3855
  onPointerDown: Te,
3844
- ref: we,
3856
+ ref: be,
3845
3857
  style: { ...w.style, ...v }
3846
3858
  }
3847
3859
  );
3848
3860
  return /* @__PURE__ */ O(je, { children: [
3849
- ye,
3861
+ ke,
3850
3862
  j.present && te ? /* @__PURE__ */ a(
3851
- $e,
3863
+ Ge,
3852
3864
  {
3853
3865
  container: p,
3854
3866
  inheritFrom: U,
3855
3867
  children: /* @__PURE__ */ O(
3856
- Fe,
3868
+ He,
3857
3869
  {
3858
3870
  ref: Ee,
3859
3871
  "aria-hidden": A ? void 0 : !0,
@@ -3861,8 +3873,8 @@ const Qo = g(function(t, e) {
3861
3873
  "data-placement": (X == null ? void 0 : X.placement) ?? c,
3862
3874
  "data-state": j.state === "closing" ? "closing" : "open",
3863
3875
  id: x,
3864
- onMouseEnter: Re,
3865
- onMouseLeave: ue,
3876
+ onMouseEnter: de,
3877
+ onMouseLeave: Re,
3866
3878
  role: "tooltip",
3867
3879
  style: X ? {
3868
3880
  ...s,
@@ -3940,10 +3952,10 @@ function or(n) {
3940
3952
  if (typeof n == "number" || typeof n == "string")
3941
3953
  return String(n);
3942
3954
  }
3943
- function Hn(n) {
3944
- for (const t of an.toArray(n)) {
3955
+ function Dn(n) {
3956
+ for (const t of ln.toArray(n)) {
3945
3957
  if (Ze(t) && t.type === _e) {
3946
- if (Hn(t.props.children)) return !0;
3958
+ if (Dn(t.props.children)) return !0;
3947
3959
  continue;
3948
3960
  }
3949
3961
  return !0;
@@ -3953,13 +3965,13 @@ function Hn(n) {
3953
3965
  function rr(n, t) {
3954
3966
  let e = !1;
3955
3967
  function o(r) {
3956
- return an.map(r, (l) => Ze(l) ? l.type === _e ? Pe(
3968
+ return ln.map(r, (l) => Ze(l) ? l.type === _e ? Pe(
3957
3969
  l,
3958
3970
  void 0,
3959
3971
  o(
3960
3972
  l.props.children
3961
3973
  )
3962
- ) : !e && l.type === Wn ? (e = !0, Pe(
3974
+ ) : !e && l.type === Fn ? (e = !0, Pe(
3963
3975
  l,
3964
3976
  { rowTrigger: t }
3965
3977
  )) : l : l);
@@ -3988,7 +4000,7 @@ const ir = g(
3988
4000
  emptyColumnCount: r = 1,
3989
4001
  emptyMessage: l,
3990
4002
  ...s
3991
- } = t, u = !Hn(o), f = Number.isFinite(r) ? Math.max(1, Math.floor(r)) : 1;
4003
+ } = t, u = !Dn(o), f = Number.isFinite(r) ? Math.max(1, Math.floor(r)) : 1;
3992
4004
  return /* @__PURE__ */ a(
3993
4005
  "tbody",
3994
4006
  {
@@ -4091,7 +4103,7 @@ const ir = g(
4091
4103
  }
4092
4104
  );
4093
4105
  }
4094
- ), Fn = g(function(t, e) {
4106
+ ), Hn = g(function(t, e) {
4095
4107
  const {
4096
4108
  align: o = "left",
4097
4109
  children: i,
@@ -4115,7 +4127,7 @@ const ir = g(
4115
4127
  }), cr = g(function(t, e) {
4116
4128
  const { children: o, className: i, ...r } = t;
4117
4129
  return /* @__PURE__ */ a(
4118
- Fn,
4130
+ Hn,
4119
4131
  {
4120
4132
  ...r,
4121
4133
  ref: e,
@@ -4124,7 +4136,7 @@ const ir = g(
4124
4136
  children: o ?? /* @__PURE__ */ a("span", { className: "nk-table__visually-hidden", children: "Row actions" })
4125
4137
  }
4126
4138
  );
4127
- }), Wn = g(
4139
+ }), Fn = g(
4128
4140
  function(t, e) {
4129
4141
  const {
4130
4142
  align: o = "left",
@@ -4222,7 +4234,7 @@ const ir = g(
4222
4234
  ...u
4223
4235
  } = t, f = D(null), d = D(null), [c, p] = $(!1), [v, m] = $(!1), x = s ?? (o ? `${o} scroll area` : "Scrollable table"), b = W(
4224
4236
  (M) => {
4225
- d.current = M, He(e, M);
4237
+ d.current = M, De(e, M);
4226
4238
  },
4227
4239
  [e]
4228
4240
  );
@@ -4272,13 +4284,13 @@ const ir = g(
4272
4284
  ActionCell: ur,
4273
4285
  ActionHeaderCell: cr,
4274
4286
  Body: ar,
4275
- Cell: Wn,
4287
+ Cell: Fn,
4276
4288
  Foot: lr,
4277
- HeaderCell: Fn,
4289
+ HeaderCell: Hn,
4278
4290
  Head: ir,
4279
4291
  Row: sr
4280
4292
  });
4281
- function xn(n) {
4293
+ function In(n) {
4282
4294
  return Number.isFinite(n) ? Math.max(1, Math.floor(n)) : 1;
4283
4295
  }
4284
4296
  const Or = g(
@@ -4294,7 +4306,7 @@ const Or = g(
4294
4306
  rows: d,
4295
4307
  style: c,
4296
4308
  ...p
4297
- } = t, v = xn(d ?? s ?? 3), x = `calc(${xn(s ?? d ?? 3) * 1.25}em + var(--nk-text-area-padding) * 2 + var(--nk-text-area-border-width) * 2)`, b = {
4309
+ } = t, v = In(d ?? s ?? 3), x = `calc(${In(s ?? d ?? 3) * 1.25}em + var(--nk-text-area-padding) * 2 + var(--nk-text-area-border-width) * 2)`, b = {
4298
4310
  ...c,
4299
4311
  "--nk-text-area-min-height": x
4300
4312
  };
@@ -4321,8 +4333,8 @@ export {
4321
4333
  kr as Badge,
4322
4334
  ze as Button,
4323
4335
  Ir as Card,
4324
- zt as Checkbox,
4325
- $t as CheckboxGroup,
4336
+ Wt as Checkbox,
4337
+ qt as CheckboxGroup,
4326
4338
  xr as Content,
4327
4339
  Cr as Divider,
4328
4340
  Pr as Field,
@@ -4335,7 +4347,7 @@ export {
4335
4347
  Fo as RadioGroup,
4336
4348
  Sr as Select,
4337
4349
  Rr as Skeleton,
4338
- _n as Spinner,
4350
+ Pn as Spinner,
4339
4351
  Tr as Switch,
4340
4352
  Ar as Table,
4341
4353
  fe as Text,