neatkit 0.4.0 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,42 +1,91 @@
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 In, 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,
9
9
  xl: 1920
10
+ }, mr = {
11
+ color: {
12
+ accent: {
13
+ default: "var(--nk-accent)",
14
+ soft: "var(--nk-accent-soft)",
15
+ subtle: "var(--nk-accent-subtle)"
16
+ },
17
+ background: "var(--nk-color-background)",
18
+ surface: "var(--nk-color-surface)",
19
+ text: {
20
+ default: "var(--nk-color-text)",
21
+ muted: "var(--nk-color-text-muted)"
22
+ },
23
+ border: "var(--nk-color-border)",
24
+ emphasis: {
25
+ fill: "var(--nk-color-emphasis-fill)",
26
+ fillForeground: "var(--nk-color-emphasis-fill-foreground)"
27
+ },
28
+ info: {
29
+ foreground: "var(--nk-color-info-foreground)",
30
+ fill: "var(--nk-color-info-fill)",
31
+ fillForeground: "var(--nk-color-info-fill-foreground)"
32
+ },
33
+ success: {
34
+ foreground: "var(--nk-color-success-foreground)",
35
+ fill: "var(--nk-color-success-fill)",
36
+ fillForeground: "var(--nk-color-success-fill-foreground)"
37
+ },
38
+ warning: {
39
+ foreground: "var(--nk-color-warning-foreground)",
40
+ fill: "var(--nk-color-warning-fill)",
41
+ fillForeground: "var(--nk-color-warning-fill-foreground)"
42
+ },
43
+ danger: {
44
+ foreground: "var(--nk-color-danger-foreground)",
45
+ fill: "var(--nk-color-danger-fill)",
46
+ fillForeground: "var(--nk-color-danger-fill-foreground)"
47
+ }
48
+ },
49
+ radius: {
50
+ small: "var(--nk-radius-small)",
51
+ medium: "var(--nk-radius-medium)",
52
+ large: "var(--nk-radius-large)"
53
+ },
54
+ shadow: {
55
+ subtle: "var(--nk-shadow-subtle)",
56
+ medium: "var(--nk-shadow-medium)",
57
+ strong: "var(--nk-shadow-strong)"
58
+ }
10
59
  };
11
60
  ({
12
61
  ...Object.fromEntries(
13
- Pn.map((n) => [`--nk-space-${n}`, `${n}px`])
62
+ Cn.map((n) => [`--nk-space-${n}`, `${n}px`])
14
63
  )
15
64
  });
16
- function mr(n) {
65
+ function gr(n) {
17
66
  if (typeof n != "number" || !Number.isFinite(n))
18
67
  throw new RangeError("Cell amount must be a finite number.");
19
- const t = n * $n;
68
+ const t = n * qn;
20
69
  if (!Number.isFinite(t))
21
70
  throw new RangeError("Calculated cell value must be finite.");
22
71
  return t;
23
72
  }
24
- function gr(n) {
25
- if (!Pn.some((t) => t === n))
73
+ function wr(n) {
74
+ if (!Cn.some((t) => t === n))
26
75
  throw new RangeError(`Unsupported spacing size: ${String(n)}.`);
27
76
  return n;
28
77
  }
29
78
  function Ce(n) {
30
- if (!Object.prototype.hasOwnProperty.call(un, n))
79
+ if (!Object.prototype.hasOwnProperty.call(dn, n))
31
80
  throw new RangeError(`Unsupported breakpoint: ${String(n)}.`);
32
- return un[n];
81
+ return dn[n];
33
82
  }
34
- function wr(n) {
83
+ function br(n) {
35
84
  if (typeof n != "number" || !Number.isFinite(n))
36
85
  throw new RangeError("Pixel value must be a finite number.");
37
86
  return `${n}px`;
38
87
  }
39
- const Fe = g(function(t, e) {
88
+ const He = g(function(t, e) {
40
89
  const { children: o, className: i, ...r } = t;
41
90
  return /* @__PURE__ */ a(
42
91
  "div",
@@ -47,7 +96,7 @@ const Fe = g(function(t, e) {
47
96
  children: o
48
97
  }
49
98
  );
50
- }), br = g(function(t, e) {
99
+ }), kr = g(function(t, e) {
51
100
  const {
52
101
  children: o,
53
102
  className: i,
@@ -56,7 +105,7 @@ const Fe = g(function(t, e) {
56
105
  ...s
57
106
  } = t;
58
107
  return /* @__PURE__ */ O(
59
- Fe,
108
+ He,
60
109
  {
61
110
  ...s,
62
111
  ref: e,
@@ -70,10 +119,10 @@ const Fe = g(function(t, e) {
70
119
  }
71
120
  );
72
121
  });
73
- function Gn(n) {
122
+ function $n(n) {
74
123
  return (Array.from((n == null ? void 0 : n.trim()) ?? "")[0] ?? "?").trim().toUpperCase() || "?";
75
124
  }
76
- function Kn(n) {
125
+ function Gn(n) {
77
126
  if (n === "?") return "neutral";
78
127
  const t = Array.from(n)[0] ?? "";
79
128
  if ("AJO".includes(t)) return "1";
@@ -93,7 +142,7 @@ const yr = g(function(t, e) {
93
142
  size: l = 32,
94
143
  style: s,
95
144
  ...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 };
145
+ } = t, [f, d] = $(), c = !!r && r !== f, p = (o == null ? void 0 : o.trim()) ?? "", v = $n(p), m = typeof l == "number" ? `${l}px` : l, I = p ? { "aria-label": p, role: "img" } : { "aria-hidden": !0, role: void 0 };
97
146
  function b() {
98
147
  d(r);
99
148
  }
@@ -101,10 +150,10 @@ const yr = g(function(t, e) {
101
150
  "div",
102
151
  {
103
152
  ...u,
104
- ...c ? void 0 : x,
153
+ ...c ? void 0 : I,
105
154
  ref: e,
106
155
  className: ["nk-avatar", i].filter(Boolean).join(" "),
107
- "data-palette": Kn(v),
156
+ "data-palette": Gn(v),
108
157
  "data-state": c ? "image" : "fallback",
109
158
  style: { ...s, "--nk-avatar-size": m },
110
159
  children: c ? /* @__PURE__ */ a(
@@ -118,7 +167,7 @@ const yr = g(function(t, e) {
118
167
  ) : /* @__PURE__ */ a("span", { "aria-hidden": "true", className: "nk-avatar__initial", children: v })
119
168
  }
120
169
  );
121
- }), kr = g(function(t, e) {
170
+ }), xr = g(function(t, e) {
122
171
  const {
123
172
  children: o,
124
173
  className: i,
@@ -137,7 +186,7 @@ const yr = g(function(t, e) {
137
186
  children: o
138
187
  }
139
188
  );
140
- }), Un = g(function(t, e) {
189
+ }), Kn = g(function(t, e) {
141
190
  const { height: o = 14, width: i = 14, ...r } = t;
142
191
  return /* @__PURE__ */ a(
143
192
  "svg",
@@ -160,7 +209,7 @@ const yr = g(function(t, e) {
160
209
  )
161
210
  }
162
211
  );
163
- }), Yn = g(function(t, e) {
212
+ }), Un = g(function(t, e) {
164
213
  const { height: o = 14, width: i = 14, ...r } = t;
165
214
  return /* @__PURE__ */ a(
166
215
  "svg",
@@ -184,7 +233,7 @@ const yr = g(function(t, e) {
184
233
  )
185
234
  }
186
235
  );
187
- }), Xn = g(function(t, e) {
236
+ }), Yn = g(function(t, e) {
188
237
  const { height: o = 14, width: i = 14, ...r } = t;
189
238
  return /* @__PURE__ */ a(
190
239
  "svg",
@@ -208,7 +257,7 @@ const yr = g(function(t, e) {
208
257
  )
209
258
  }
210
259
  );
211
- }), Qn = g(function(t, e) {
260
+ }), Xn = g(function(t, e) {
212
261
  const { height: o = 14, width: i = 14, ...r } = t;
213
262
  return /* @__PURE__ */ O(
214
263
  "svg",
@@ -254,7 +303,7 @@ const yr = g(function(t, e) {
254
303
  ]
255
304
  }
256
305
  );
257
- }), Jn = g(function(t, e) {
306
+ }), Qn = g(function(t, e) {
258
307
  const { height: o = 14, width: i = 14, ...r } = t;
259
308
  return /* @__PURE__ */ a(
260
309
  "svg",
@@ -269,7 +318,7 @@ const yr = g(function(t, e) {
269
318
  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
319
  }
271
320
  );
272
- }), et = g(function(t, e) {
321
+ }), Jn = g(function(t, e) {
273
322
  const { height: o = 14, width: i = 14, ...r } = t;
274
323
  return /* @__PURE__ */ O(
275
324
  "svg",
@@ -288,7 +337,7 @@ const yr = g(function(t, e) {
288
337
  ]
289
338
  }
290
339
  );
291
- }), nt = g(function(t, e) {
340
+ }), et = g(function(t, e) {
292
341
  const { height: o = 14, width: i = 14, ...r } = t;
293
342
  return /* @__PURE__ */ O(
294
343
  "svg",
@@ -320,7 +369,7 @@ const yr = g(function(t, e) {
320
369
  ]
321
370
  }
322
371
  );
323
- }), tt = g(function(t, e) {
372
+ }), nt = g(function(t, e) {
324
373
  const { height: o = 14, width: i = 14, ...r } = t;
325
374
  return /* @__PURE__ */ a(
326
375
  "svg",
@@ -341,7 +390,7 @@ const yr = g(function(t, e) {
341
390
  )
342
391
  }
343
392
  );
344
- }), ot = g(function(t, e) {
393
+ }), tt = g(function(t, e) {
345
394
  const { height: o = 14, width: i = 14, ...r } = t;
346
395
  return /* @__PURE__ */ a(
347
396
  "svg",
@@ -364,7 +413,7 @@ const yr = g(function(t, e) {
364
413
  )
365
414
  }
366
415
  );
367
- }), rt = g(function(t, e) {
416
+ }), ot = g(function(t, e) {
368
417
  const { height: o = 14, width: i = 14, ...r } = t;
369
418
  return /* @__PURE__ */ a(
370
419
  "svg",
@@ -388,7 +437,7 @@ const yr = g(function(t, e) {
388
437
  )
389
438
  }
390
439
  );
391
- }), it = g(function(t, e) {
440
+ }), rt = g(function(t, e) {
392
441
  const { height: o = 14, width: i = 14, ...r } = t;
393
442
  return /* @__PURE__ */ a(
394
443
  "svg",
@@ -412,7 +461,7 @@ const yr = g(function(t, e) {
412
461
  )
413
462
  }
414
463
  );
415
- }), at = g(function(t, e) {
464
+ }), it = g(function(t, e) {
416
465
  const { height: o = 14, width: i = 14, ...r } = t;
417
466
  return /* @__PURE__ */ a(
418
467
  "svg",
@@ -436,7 +485,7 @@ const yr = g(function(t, e) {
436
485
  )
437
486
  }
438
487
  );
439
- }), lt = g(function(t, e) {
488
+ }), at = g(function(t, e) {
440
489
  const { height: o = 14, width: i = 14, ...r } = t;
441
490
  return /* @__PURE__ */ a(
442
491
  "svg",
@@ -460,7 +509,7 @@ const yr = g(function(t, e) {
460
509
  )
461
510
  }
462
511
  );
463
- }), st = g(function(t, e) {
512
+ }), lt = g(function(t, e) {
464
513
  const { height: o = 14, width: i = 14, ...r } = t;
465
514
  return /* @__PURE__ */ a(
466
515
  "svg",
@@ -475,7 +524,7 @@ const yr = g(function(t, e) {
475
524
  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
525
  }
477
526
  );
478
- }), ct = g(function(t, e) {
527
+ }), st = g(function(t, e) {
479
528
  const { height: o = 14, width: i = 14, ...r } = t;
480
529
  return /* @__PURE__ */ a(
481
530
  "svg",
@@ -498,7 +547,7 @@ const yr = g(function(t, e) {
498
547
  )
499
548
  }
500
549
  );
501
- }), dt = g(function(t, e) {
550
+ }), ct = g(function(t, e) {
502
551
  const { height: o = 14, width: i = 14, ...r } = t;
503
552
  return /* @__PURE__ */ a(
504
553
  "svg",
@@ -522,7 +571,7 @@ const yr = g(function(t, e) {
522
571
  )
523
572
  }
524
573
  );
525
- }), ut = g(function(t, e) {
574
+ }), dt = g(function(t, e) {
526
575
  const { height: o = 14, width: i = 14, ...r } = t;
527
576
  return /* @__PURE__ */ a(
528
577
  "svg",
@@ -543,7 +592,7 @@ const yr = g(function(t, e) {
543
592
  )
544
593
  }
545
594
  );
546
- }), ft = g(function(t, e) {
595
+ }), ut = g(function(t, e) {
547
596
  const { height: o = 14, width: i = 14, ...r } = t;
548
597
  return /* @__PURE__ */ O(
549
598
  "svg",
@@ -577,7 +626,7 @@ const yr = g(function(t, e) {
577
626
  ]
578
627
  }
579
628
  );
580
- }), ht = g(function(t, e) {
629
+ }), ft = g(function(t, e) {
581
630
  const { height: o = 14, width: i = 14, ...r } = t;
582
631
  return /* @__PURE__ */ O(
583
632
  "svg",
@@ -607,7 +656,7 @@ const yr = g(function(t, e) {
607
656
  ]
608
657
  }
609
658
  );
610
- }), pt = g(function(t, e) {
659
+ }), ht = g(function(t, e) {
611
660
  const { height: o = 14, width: i = 14, ...r } = t;
612
661
  return /* @__PURE__ */ a(
613
662
  "svg",
@@ -631,7 +680,7 @@ const yr = g(function(t, e) {
631
680
  )
632
681
  }
633
682
  );
634
- }), vt = g(function(t, e) {
683
+ }), pt = g(function(t, e) {
635
684
  const { height: o = 14, width: i = 14, ...r } = t;
636
685
  return /* @__PURE__ */ a(
637
686
  "svg",
@@ -646,7 +695,7 @@ const yr = g(function(t, e) {
646
695
  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
696
  }
648
697
  );
649
- }), mt = g(function(t, e) {
698
+ }), vt = g(function(t, e) {
650
699
  const { height: o = 14, width: i = 14, ...r } = t;
651
700
  return /* @__PURE__ */ a(
652
701
  "svg",
@@ -661,7 +710,7 @@ const yr = g(function(t, e) {
661
710
  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
711
  }
663
712
  );
664
- }), gt = g(function(t, e) {
713
+ }), mt = g(function(t, e) {
665
714
  const { height: o = 14, width: i = 14, ...r } = t;
666
715
  return /* @__PURE__ */ a(
667
716
  "svg",
@@ -682,7 +731,7 @@ const yr = g(function(t, e) {
682
731
  )
683
732
  }
684
733
  );
685
- }), wt = g(function(t, e) {
734
+ }), gt = g(function(t, e) {
686
735
  const { height: o = 14, width: i = 14, ...r } = t;
687
736
  return /* @__PURE__ */ a(
688
737
  "svg",
@@ -705,7 +754,7 @@ const yr = g(function(t, e) {
705
754
  )
706
755
  }
707
756
  );
708
- }), bt = g(function(t, e) {
757
+ }), wt = g(function(t, e) {
709
758
  const { height: o = 14, width: i = 14, ...r } = t;
710
759
  return /* @__PURE__ */ a(
711
760
  "svg",
@@ -728,7 +777,7 @@ const yr = g(function(t, e) {
728
777
  )
729
778
  }
730
779
  );
731
- }), yt = g(function(t, e) {
780
+ }), bt = g(function(t, e) {
732
781
  const { height: o = 14, width: i = 14, ...r } = t;
733
782
  return /* @__PURE__ */ a(
734
783
  "svg",
@@ -770,7 +819,7 @@ const yr = g(function(t, e) {
770
819
  )
771
820
  }
772
821
  );
773
- }), It = g(function(t, e) {
822
+ }), yt = g(function(t, e) {
774
823
  const { height: o = 14, width: i = 14, ...r } = t;
775
824
  return /* @__PURE__ */ O(
776
825
  "svg",
@@ -820,7 +869,7 @@ const yr = g(function(t, e) {
820
869
  )
821
870
  }
822
871
  );
823
- }), Ct = g(function(t, e) {
872
+ }), It = g(function(t, e) {
824
873
  const { height: o = 14, width: i = 14, ...r } = t;
825
874
  return /* @__PURE__ */ a(
826
875
  "svg",
@@ -843,7 +892,7 @@ const yr = g(function(t, e) {
843
892
  )
844
893
  }
845
894
  );
846
- }), Pt = g(function(t, e) {
895
+ }), Ct = g(function(t, e) {
847
896
  const { height: o = 14, width: i = 14, ...r } = t;
848
897
  return /* @__PURE__ */ O(
849
898
  "svg",
@@ -879,7 +928,7 @@ const yr = g(function(t, e) {
879
928
  ]
880
929
  }
881
930
  );
882
- }), _t = g(function(t, e) {
931
+ }), Pt = g(function(t, e) {
883
932
  const { height: o = 14, width: i = 14, ...r } = t;
884
933
  return /* @__PURE__ */ a(
885
934
  "svg",
@@ -902,7 +951,7 @@ const yr = g(function(t, e) {
902
951
  )
903
952
  }
904
953
  );
905
- }), Nt = g(function(t, e) {
954
+ }), _t = g(function(t, e) {
906
955
  const { height: o = 14, width: i = 14, ...r } = t;
907
956
  return /* @__PURE__ */ a(
908
957
  "svg",
@@ -923,7 +972,7 @@ const yr = g(function(t, e) {
923
972
  )
924
973
  }
925
974
  );
926
- }), Lt = g(function(t, e) {
975
+ }), Nt = g(function(t, e) {
927
976
  const { height: o = 14, width: i = 14, ...r } = t;
928
977
  return /* @__PURE__ */ a(
929
978
  "svg",
@@ -946,7 +995,7 @@ const yr = g(function(t, e) {
946
995
  )
947
996
  }
948
997
  );
949
- }), Mt = g(function(t, e) {
998
+ }), Lt = g(function(t, e) {
950
999
  const { height: o = 14, width: i = 14, ...r } = t;
951
1000
  return /* @__PURE__ */ O(
952
1001
  "svg",
@@ -966,7 +1015,7 @@ const yr = g(function(t, e) {
966
1015
  ]
967
1016
  }
968
1017
  );
969
- }), Et = g(function(t, e) {
1018
+ }), Mt = g(function(t, e) {
970
1019
  const { height: o = 14, width: i = 14, ...r } = t;
971
1020
  return /* @__PURE__ */ a(
972
1021
  "svg",
@@ -984,7 +1033,7 @@ const yr = g(function(t, e) {
984
1033
  ] })
985
1034
  }
986
1035
  );
987
- }), St = g(function(t, e) {
1036
+ }), Et = g(function(t, e) {
988
1037
  const { height: o = 14, width: i = 14, ...r } = t;
989
1038
  return /* @__PURE__ */ a(
990
1039
  "svg",
@@ -1007,7 +1056,7 @@ const yr = g(function(t, e) {
1007
1056
  )
1008
1057
  }
1009
1058
  );
1010
- }), Rt = g(function(t, e) {
1059
+ }), St = g(function(t, e) {
1011
1060
  const { height: o = 14, width: i = 14, ...r } = t;
1012
1061
  return /* @__PURE__ */ O(
1013
1062
  "svg",
@@ -1025,7 +1074,7 @@ const yr = g(function(t, e) {
1025
1074
  ]
1026
1075
  }
1027
1076
  );
1028
- }), Tt = g(function(t, e) {
1077
+ }), Rt = g(function(t, e) {
1029
1078
  const { height: o = 14, width: i = 14, ...r } = t;
1030
1079
  return /* @__PURE__ */ a(
1031
1080
  "svg",
@@ -1046,7 +1095,7 @@ const yr = g(function(t, e) {
1046
1095
  )
1047
1096
  }
1048
1097
  );
1049
- }), Vt = g(function(t, e) {
1098
+ }), Tt = g(function(t, e) {
1050
1099
  const { height: o = 14, width: i = 14, ...r } = t;
1051
1100
  return /* @__PURE__ */ O(
1052
1101
  "svg",
@@ -1070,7 +1119,7 @@ const yr = g(function(t, e) {
1070
1119
  ]
1071
1120
  }
1072
1121
  );
1073
- }), At = g(function(t, e) {
1122
+ }), Vt = g(function(t, e) {
1074
1123
  const { height: o = 14, width: i = 14, ...r } = t;
1075
1124
  return /* @__PURE__ */ a(
1076
1125
  "svg",
@@ -1085,7 +1134,7 @@ const yr = g(function(t, e) {
1085
1134
  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
1135
  }
1087
1136
  );
1088
- }), Ot = g(function(t, e) {
1137
+ }), At = g(function(t, e) {
1089
1138
  const { height: o = 14, width: i = 14, ...r } = t;
1090
1139
  return /* @__PURE__ */ a(
1091
1140
  "svg",
@@ -1106,7 +1155,7 @@ const yr = g(function(t, e) {
1106
1155
  )
1107
1156
  }
1108
1157
  );
1109
- }), Bt = g(function(t, e) {
1158
+ }), Ot = g(function(t, e) {
1110
1159
  const { height: o = 14, width: i = 14, ...r } = t;
1111
1160
  return /* @__PURE__ */ O(
1112
1161
  "svg",
@@ -1141,7 +1190,7 @@ const yr = g(function(t, e) {
1141
1190
  ]
1142
1191
  }
1143
1192
  );
1144
- }), Dt = g(function(t, e) {
1193
+ }), Bt = g(function(t, e) {
1145
1194
  const { height: o = 14, width: i = 14, ...r } = t;
1146
1195
  return /* @__PURE__ */ a(
1147
1196
  "svg",
@@ -1162,51 +1211,51 @@ const yr = g(function(t, e) {
1162
1211
  )
1163
1212
  }
1164
1213
  );
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,
1214
+ }), Dt = {
1215
+ projects: Lt,
1216
+ chat: nt,
1217
+ articles: Kn,
1218
+ mail: Ct,
1219
+ github: gt,
1220
+ globe: wt,
1221
+ linkedin: It,
1222
+ reddit: Et,
1223
+ exit: ht,
1224
+ camera: et,
1225
+ "qr-code": Mt,
1226
+ download: ct,
1227
+ save: Rt,
1228
+ pencil: _t,
1229
+ "arrow-left": Un,
1230
+ "arrow-right": Yn,
1231
+ cross: st,
1232
+ checkmark: tt,
1233
+ plus: Nt,
1234
+ minus: Pt,
1235
+ window: Bt,
1236
+ user: At,
1237
+ duplicate: dt,
1238
+ eye: ut,
1239
+ "eye-off": ft,
1240
+ signal: Tt,
1241
+ audio: Xn,
1242
+ hardware: bt,
1243
+ burger: Jn,
1244
+ repository: St,
1245
+ "chevron-down": ot,
1246
+ "chevron-up": at,
1247
+ "chevron-left": rt,
1248
+ "chevron-right": it,
1249
+ branch: Qn,
1250
+ commit: lt,
1251
+ folder: vt,
1252
+ file: pt,
1253
+ tag: Vt,
1205
1254
  key: xt,
1206
- git: gt,
1255
+ git: mt,
1207
1256
  home: kt,
1208
- info: It,
1209
- warning: Bt
1257
+ info: yt,
1258
+ warning: Ot
1210
1259
  }, me = g(function(t, e) {
1211
1260
  const {
1212
1261
  "aria-hidden": o,
@@ -1218,11 +1267,11 @@ const yr = g(function(t, e) {
1218
1267
  style: f,
1219
1268
  type: d,
1220
1269
  ...c
1221
- } = t, p = Ht[d];
1270
+ } = t, p = Dt[d];
1222
1271
  if (!p)
1223
1272
  return console.warn(`Icon type "${d}" not found`), null;
1224
1273
  const v = i !== void 0 || r !== void 0;
1225
- return Oe(p, {
1274
+ return Ae(p, {
1226
1275
  ...c,
1227
1276
  "aria-hidden": o ?? (v ? void 0 : !0),
1228
1277
  "aria-label": i,
@@ -1237,7 +1286,7 @@ const yr = g(function(t, e) {
1237
1286
  },
1238
1287
  width: u
1239
1288
  });
1240
- }), _n = g(function(t, e) {
1289
+ }), Pn = g(function(t, e) {
1241
1290
  const { className: o = "", color: i, size: r = 48, style: l, ...s } = t, u = typeof r == "number" ? `${r}px` : r;
1242
1291
  return /* @__PURE__ */ a(
1243
1292
  "div",
@@ -1257,10 +1306,10 @@ const yr = g(function(t, e) {
1257
1306
  }
1258
1307
  );
1259
1308
  });
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;
1309
+ function rn(n) {
1310
+ 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
1311
  }
1263
- function Ft(n, t) {
1312
+ function Ht(n, t) {
1264
1313
  const e = n.getBoundingClientRect(), o = t.clientX - e.left, i = t.clientY - e.top;
1265
1314
  n.style.setProperty("--nk-button-glow-x", `${o}px`), n.style.setProperty("--nk-button-glow-y", `${i}px`);
1266
1315
  }
@@ -1278,13 +1327,13 @@ const ze = g(function(t, e) {
1278
1327
  onKeyDown: p,
1279
1328
  onMouseMove: v,
1280
1329
  role: m,
1281
- shape: x,
1330
+ shape: I,
1282
1331
  tabIndex: b,
1283
1332
  textAlignment: w = "center",
1284
1333
  tone: M,
1285
1334
  variant: _ = "primary",
1286
1335
  ...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) => {
1336
+ } = t, y = o ?? "button", C = l || d, x = !!u && !rn(i), N = y === "a" && "href" in R && typeof R.href == "string", T = typeof y == "string" && y !== "button" && !N, z = (P) => {
1288
1337
  if (C) {
1289
1338
  P.preventDefault(), P.stopPropagation();
1290
1339
  return;
@@ -1292,18 +1341,18 @@ const ze = g(function(t, e) {
1292
1341
  const A = c;
1293
1342
  A == null || A(P);
1294
1343
  }, Z = (P) => {
1295
- Ft(P.currentTarget, P);
1344
+ Ht(P.currentTarget, P);
1296
1345
  const A = v;
1297
1346
  A == null || A(P);
1298
1347
  }, H = (P) => {
1299
1348
  const A = p;
1300
1349
  A == null || A(P), !(P.defaultPrevented || C || !T || P.key !== "Enter" && P.key !== " ") && (P.preventDefault(), P.currentTarget.click());
1301
- }, E = k === "button" ? {
1350
+ }, E = y === "button" ? {
1302
1351
  disabled: C,
1303
1352
  type: R.type ?? "button"
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(
1306
- k,
1353
+ } : { "aria-disabled": C || void 0 }, U = N && C ? { href: void 0 } : void 0, S = N && C ? m ?? "link" : T ? m ?? "button" : m, k = y === "button" ? b : N && C ? void 0 : C ? -1 : T ? b ?? 0 : b;
1354
+ return Ae(
1355
+ y,
1307
1356
  {
1308
1357
  ...R,
1309
1358
  ...E,
@@ -1312,15 +1361,15 @@ const ze = g(function(t, e) {
1312
1361
  "aria-busy": d || void 0,
1313
1362
  className: ["nk-button", r].filter(Boolean).join(" "),
1314
1363
  "data-full-width": s || void 0,
1315
- "data-icon-only": I || void 0,
1316
- "data-shape": x,
1364
+ "data-icon-only": x || void 0,
1365
+ "data-shape": I,
1317
1366
  "data-tone": M,
1318
1367
  "data-variant": _,
1319
1368
  onClick: z,
1320
1369
  onKeyDown: T ? H : p,
1321
1370
  onMouseMove: Z,
1322
1371
  role: S,
1323
- tabIndex: y
1372
+ tabIndex: k
1324
1373
  },
1325
1374
  /* @__PURE__ */ O(je, { children: [
1326
1375
  /* @__PURE__ */ O(
@@ -1336,7 +1385,7 @@ const ze = g(function(t, e) {
1336
1385
  }
1337
1386
  ),
1338
1387
  d ? /* @__PURE__ */ a(
1339
- _n,
1388
+ Pn,
1340
1389
  {
1341
1390
  "aria-hidden": "true",
1342
1391
  "aria-label": void 0,
@@ -1357,7 +1406,7 @@ const ze = g(function(t, e) {
1357
1406
  weight: u,
1358
1407
  ...f
1359
1408
  } = t;
1360
- return Oe(i ?? "p", {
1409
+ return Ae(i ?? "p", {
1361
1410
  ...f,
1362
1411
  ref: e,
1363
1412
  className: ["nk-text", r].filter(Boolean).join(" "),
@@ -1375,7 +1424,7 @@ const ze = g(function(t, e) {
1375
1424
  ...s
1376
1425
  } = t;
1377
1426
  return /* @__PURE__ */ O(
1378
- Fe,
1427
+ He,
1379
1428
  {
1380
1429
  ...s,
1381
1430
  ref: e,
@@ -1399,12 +1448,12 @@ function he(n) {
1399
1448
  function ge(n, t) {
1400
1449
  return n ? !0 : t;
1401
1450
  }
1402
- const Nn = qe(void 0);
1403
- function Wt() {
1404
- return Ne(Nn);
1451
+ const _n = qe(void 0);
1452
+ function Ft() {
1453
+ return Ne(_n);
1405
1454
  }
1406
- const zt = g(function(t, e) {
1407
- var I;
1455
+ const Wt = g(function(t, e) {
1456
+ var x;
1408
1457
  const {
1409
1458
  "aria-invalid": o,
1410
1459
  checked: i,
@@ -1418,8 +1467,8 @@ const zt = g(function(t, e) {
1418
1467
  required: p = !1,
1419
1468
  style: v,
1420
1469
  value: m = "on",
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);
1470
+ ...I
1471
+ } = 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), y = f || he(o);
1423
1472
  function C(N) {
1424
1473
  c == null || c(N), N.defaultPrevented || b == null || b.handleChange(N);
1425
1474
  }
@@ -1428,16 +1477,16 @@ const zt = g(function(t, e) {
1428
1477
  {
1429
1478
  className: ["nk-checkbox", l].filter(Boolean).join(" "),
1430
1479
  "data-disabled": _ || void 0,
1431
- "data-invalid": k || void 0,
1480
+ "data-invalid": y || void 0,
1432
1481
  style: v,
1433
1482
  children: [
1434
1483
  /* @__PURE__ */ a(
1435
1484
  "input",
1436
1485
  {
1437
- ...x,
1486
+ ...I,
1438
1487
  ref: e,
1439
1488
  "aria-invalid": ge(f, o),
1440
- checked: b ? M ? (I = b.value) == null ? void 0 : I.includes(w) : void 0 : i,
1489
+ checked: b ? M ? (x = b.value) == null ? void 0 : x.includes(w) : void 0 : i,
1441
1490
  className: "nk-checkbox__control",
1442
1491
  defaultChecked: b && !M ? b.defaultValue.includes(w) : s,
1443
1492
  disabled: _,
@@ -1456,21 +1505,21 @@ const zt = g(function(t, e) {
1456
1505
  ]
1457
1506
  }
1458
1507
  );
1459
- }), Ln = Symbol("nk-field-control-metadata");
1460
- function Mn(n) {
1508
+ }), Nn = Symbol("nk-field-control-metadata");
1509
+ function Ln(n) {
1461
1510
  if (typeof n != "function" && typeof n != "object" || n === null)
1462
1511
  return;
1463
- const t = n, e = t[Ln];
1464
- return e || (t.type !== void 0 && t.type !== n ? Mn(t.type) : void 0);
1512
+ const t = n, e = t[Nn];
1513
+ return e || (t.type !== void 0 && t.type !== n ? Ln(t.type) : void 0);
1465
1514
  }
1466
- function En(n, t) {
1515
+ function Mn(n, t) {
1467
1516
  Object.assign(n, {
1468
- [Ln]: { requiredCommunication: t }
1517
+ [Nn]: { requiredCommunication: t }
1469
1518
  });
1470
1519
  }
1471
- const jt = Object.freeze([]);
1472
- function Sn(n, t) {
1473
- an.forEach(n, (e) => {
1520
+ const zt = Object.freeze([]);
1521
+ function En(n, t) {
1522
+ ln.forEach(n, (e) => {
1474
1523
  if (e == null || typeof e == "boolean")
1475
1524
  return;
1476
1525
  if (!Ze(e))
@@ -1478,10 +1527,10 @@ function Sn(n, t) {
1478
1527
  "CheckboxGroup children must be direct Checkbox elements or fragments"
1479
1528
  );
1480
1529
  if (e.type === _e) {
1481
- Sn(e.props.children, t);
1530
+ En(e.props.children, t);
1482
1531
  return;
1483
1532
  }
1484
- if (e.type !== zt)
1533
+ if (e.type !== Wt)
1485
1534
  throw new Error(
1486
1535
  "CheckboxGroup children must be direct Checkbox elements or fragments"
1487
1536
  );
@@ -1493,9 +1542,9 @@ function Sn(n, t) {
1493
1542
  });
1494
1543
  });
1495
1544
  }
1496
- function Zt(n) {
1545
+ function jt(n) {
1497
1546
  const t = [];
1498
- Sn(n, t);
1547
+ En(n, t);
1499
1548
  const e = /* @__PURE__ */ new Set();
1500
1549
  return t.forEach((o) => {
1501
1550
  if (e.has(o.value))
@@ -1503,16 +1552,16 @@ function Zt(n) {
1503
1552
  e.add(o.value);
1504
1553
  }), t;
1505
1554
  }
1506
- function qt(n, t, e) {
1555
+ function Zt(n, t, e) {
1507
1556
  t.current = n, typeof e == "function" ? e(n) : e && (e.current = n);
1508
1557
  }
1509
- const $t = g(
1558
+ const qt = g(
1510
1559
  function(t, e) {
1511
1560
  const {
1512
1561
  "aria-invalid": o,
1513
1562
  children: i,
1514
1563
  className: r,
1515
- defaultValue: l = jt,
1564
+ defaultValue: l = zt,
1516
1565
  disabled: s = !1,
1517
1566
  invalid: u = !1,
1518
1567
  name: f,
@@ -1521,16 +1570,16 @@ const $t = g(
1521
1570
  required: p = !1,
1522
1571
  value: v,
1523
1572
  ...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(
1525
- (y) => I.has(y)
1526
- ), T = C[0], z = k.find(
1527
- (y) => !y.disabled && y.value === T
1573
+ } = t, I = D(null), [b, w] = $(l), M = v !== void 0, _ = M ? v : b, R = u || he(o), y = jt(i), C = s ? [] : y.filter((k) => !k.disabled).map((k) => k.value), x = new Set(C), N = _.some(
1574
+ (k) => x.has(k)
1575
+ ), T = C[0], z = y.find(
1576
+ (k) => !k.disabled && k.value === T
1528
1577
  ), Z = l.some(
1529
- (y) => I.has(y)
1578
+ (k) => x.has(k)
1530
1579
  ), H = !!(z != null && z.required), E = W(
1531
- (y) => qt(
1532
- y,
1533
- x,
1580
+ (k) => Zt(
1581
+ k,
1582
+ I,
1534
1583
  e
1535
1584
  ),
1536
1585
  [e]
@@ -1538,16 +1587,16 @@ const $t = g(
1538
1587
  q(() => {
1539
1588
  var V;
1540
1589
  if (M) return;
1541
- const y = (V = x.current) == null ? void 0 : V.querySelector(
1590
+ const k = (V = I.current) == null ? void 0 : V.querySelector(
1542
1591
  'input[type="checkbox"]'
1543
- ), P = y instanceof HTMLInputElement ? y.form : null;
1592
+ ), P = k instanceof HTMLInputElement ? k.form : null;
1544
1593
  if (!P) return;
1545
1594
  const A = P.getRootNode();
1546
1595
  function B(j) {
1547
1596
  var ee;
1548
1597
  if (j.target !== P || j.defaultPrevented) return;
1549
1598
  const te = Array.from(
1550
- ((ee = x.current) == null ? void 0 : ee.querySelectorAll(
1599
+ ((ee = I.current) == null ? void 0 : ee.querySelectorAll(
1551
1600
  'input[type="checkbox"]'
1552
1601
  )) ?? []
1553
1602
  ).find(
@@ -1565,12 +1614,12 @@ const $t = g(
1565
1614
  H,
1566
1615
  T
1567
1616
  ]);
1568
- function U(y) {
1617
+ function U(k) {
1569
1618
  if (!M) {
1570
- const P = y.currentTarget.value, A = y.currentTarget.checked;
1619
+ const P = k.currentTarget.value, A = k.currentTarget.checked;
1571
1620
  w((B) => A ? [.../* @__PURE__ */ new Set([...B, P])] : B.filter((V) => V !== P));
1572
1621
  }
1573
- d == null || d(y);
1622
+ d == null || d(k);
1574
1623
  }
1575
1624
  const S = {
1576
1625
  defaultValue: l,
@@ -1582,7 +1631,7 @@ const $t = g(
1582
1631
  value: v,
1583
1632
  validationValue: T
1584
1633
  };
1585
- return /* @__PURE__ */ a(Nn.Provider, { value: S, children: /* @__PURE__ */ a(
1634
+ return /* @__PURE__ */ a(_n.Provider, { value: S, children: /* @__PURE__ */ a(
1586
1635
  "div",
1587
1636
  {
1588
1637
  ...m,
@@ -1602,8 +1651,8 @@ const $t = g(
1602
1651
  ) });
1603
1652
  }
1604
1653
  );
1605
- En($t, "label");
1606
- const Gt = [
1654
+ Mn(qt, "label");
1655
+ const $t = [
1607
1656
  {
1608
1657
  minWidth: Ce("xl"),
1609
1658
  marginPercent: 32,
@@ -1624,36 +1673,36 @@ const Gt = [
1624
1673
  marginPercent: 8,
1625
1674
  preferredWidth: 650
1626
1675
  }
1627
- ], Kt = 16;
1628
- function Ut(n) {
1629
- for (const t of Gt)
1676
+ ], Gt = 16;
1677
+ function Kt(n) {
1678
+ for (const t of $t)
1630
1679
  if (n >= t.minWidth) return t;
1631
1680
  }
1632
- function Yt(n, t) {
1681
+ function Ut(n, t) {
1633
1682
  if (!Number.isFinite(n) || !Number.isFinite(t) || n < Ce("sm") || t <= 0)
1634
1683
  return;
1635
- const e = Ut(n);
1684
+ const e = Kt(n);
1636
1685
  if (!e) return;
1637
1686
  const o = n * e.marginPercent / 100, i = n - o * 2, r = Math.min(
1638
1687
  e.preferredWidth,
1639
- n - Kt
1688
+ n - Gt
1640
1689
  ), l = Math.max(i, r);
1641
1690
  let s = Math.floor(l / t);
1642
1691
  return s % 2 === 0 && (s -= 1), s = Math.max(s, 1), Math.min((s - 1) * t, n);
1643
1692
  }
1644
- const Xt = typeof window > "u" ? q : ln;
1645
- function Qt(n, t) {
1693
+ const Yt = typeof window > "u" ? q : $e;
1694
+ function Xt(n, t) {
1646
1695
  if (typeof n == "function") {
1647
1696
  n(t);
1648
1697
  return;
1649
1698
  }
1650
1699
  n && (n.current = t);
1651
1700
  }
1652
- function Jt(n) {
1701
+ function Qt(n) {
1653
1702
  const t = window.getComputedStyle(n), e = Number.parseFloat(t.paddingLeft) + Number.parseFloat(t.paddingRight);
1654
1703
  return Math.max(n.clientWidth - e, 0);
1655
1704
  }
1656
- function eo(n) {
1705
+ function Jt(n) {
1657
1706
  const e = window.getComputedStyle(n).getPropertyValue("--nk-cell").trim().match(
1658
1707
  /^([+]?(?:\d+\.?\d*|\.\d+))px$/i
1659
1708
  );
@@ -1661,14 +1710,14 @@ function eo(n) {
1661
1710
  const o = Number.parseFloat(e[1]);
1662
1711
  return Number.isFinite(o) && o > 0 ? o : void 0;
1663
1712
  }
1664
- function no(n, t) {
1713
+ function eo(n, t) {
1665
1714
  const e = D(null), o = D(null), i = D(void 0), [r, l] = $(void 0), s = W((d) => {
1666
1715
  if (!t) {
1667
1716
  if (i.current === void 0) return;
1668
1717
  i.current = void 0, l(void 0);
1669
1718
  return;
1670
1719
  }
1671
- const c = Jt(d), p = eo(d), v = p === void 0 ? void 0 : Yt(c, p);
1720
+ const c = Qt(d), p = Jt(d), v = p === void 0 ? void 0 : Ut(c, p);
1672
1721
  i.current !== v && (i.current = v, l(v));
1673
1722
  }, [t]), u = W(
1674
1723
  (d) => {
@@ -1683,7 +1732,7 @@ function no(n, t) {
1683
1732
  ), f = W(
1684
1733
  (d) => {
1685
1734
  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));
1735
+ (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
1736
  },
1688
1737
  [
1689
1738
  u,
@@ -1692,14 +1741,14 @@ function no(n, t) {
1692
1741
  s
1693
1742
  ]
1694
1743
  );
1695
- return Xt(() => {
1744
+ return Yt(() => {
1696
1745
  e.current && s(e.current);
1697
1746
  }), q(() => (e.current && t && u(e.current), () => {
1698
1747
  var d;
1699
1748
  (d = o.current) == null || d.disconnect(), o.current = null;
1700
1749
  }), [u, t]), { rootReference: f, innerWidth: r };
1701
1750
  }
1702
- const xr = g(
1751
+ const Cr = g(
1703
1752
  function(t, e) {
1704
1753
  const {
1705
1754
  accent: o,
@@ -1713,11 +1762,11 @@ const xr = g(
1713
1762
  style: c,
1714
1763
  theme: p = "light",
1715
1764
  ...v
1716
- } = t, { rootReference: m, innerWidth: x } = no(
1765
+ } = t, { rootReference: m, innerWidth: I } = eo(
1717
1766
  e,
1718
1767
  s
1719
1768
  ), b = i ?? "div", w = o !== void 0 ? { ...c, "--nk-accent": o } : c;
1720
- return Oe(
1769
+ return Ae(
1721
1770
  b,
1722
1771
  {
1723
1772
  ...v,
@@ -1730,17 +1779,17 @@ const xr = g(
1730
1779
  "data-theme": p,
1731
1780
  style: w
1732
1781
  },
1733
- Oe(
1782
+ Ae(
1734
1783
  "div",
1735
1784
  {
1736
1785
  className: "nk-content__inner",
1737
- style: x === void 0 ? void 0 : { width: `${x}px` }
1786
+ style: I === void 0 ? void 0 : { width: `${I}px` }
1738
1787
  },
1739
1788
  r
1740
1789
  )
1741
1790
  );
1742
1791
  }
1743
- ), Cr = g(function(t, e) {
1792
+ ), Pr = g(function(t, e) {
1744
1793
  const {
1745
1794
  "aria-hidden": o,
1746
1795
  "aria-label": i,
@@ -1777,16 +1826,16 @@ const xr = g(
1777
1826
  }
1778
1827
  );
1779
1828
  });
1780
- function Qe(n) {
1829
+ function Je(n) {
1781
1830
  return typeof n == "string" ? n.trim().length > 0 : n != null && n !== !1 && n !== !0;
1782
1831
  }
1783
- function fn(...n) {
1832
+ function un(...n) {
1784
1833
  const t = n.flatMap(
1785
1834
  (o) => (o == null ? void 0 : o.split(/\s+/).filter(Boolean)) ?? []
1786
1835
  ), e = [...new Set(t)];
1787
1836
  return e.length > 0 ? e.join(" ") : void 0;
1788
1837
  }
1789
- const Pr = g(function(t, e) {
1838
+ const _r = g(function(t, e) {
1790
1839
  const {
1791
1840
  children: o,
1792
1841
  className: i,
@@ -1797,20 +1846,20 @@ const Pr = g(function(t, e) {
1797
1846
  orientation: f = "vertical",
1798
1847
  required: d = !1,
1799
1848
  ...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(
1849
+ } = t, p = Le(), v = o.props.id ?? `${p}-control`, m = `${p}-label`, I = `${p}-description`, b = `${p}-error`, w = Je(u), M = Je(r), _ = Je(s), R = Ln(o.type), y = R !== void 0, C = l || !!o.props.disabled, x = d || !!o.props.required, N = x && (R == null ? void 0 : R.requiredCommunication) === "label", T = un(
1801
1850
  o.props["aria-describedby"],
1802
- M ? x : void 0,
1851
+ M ? I : void 0,
1803
1852
  _ ? b : void 0
1804
- ), z = fn(
1853
+ ), z = un(
1805
1854
  w ? m : void 0,
1806
1855
  o.props["aria-labelledby"]
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, {
1856
+ ), Z = x ? /* @__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, {
1808
1857
  "aria-describedby": T,
1809
1858
  "aria-invalid": _ ? !0 : o.props["aria-invalid"],
1810
1859
  "aria-labelledby": z,
1811
1860
  disabled: C || void 0,
1812
1861
  id: v,
1813
- required: I || void 0
1862
+ required: x || void 0
1814
1863
  });
1815
1864
  return /* @__PURE__ */ O(
1816
1865
  "div",
@@ -1822,9 +1871,9 @@ const Pr = g(function(t, e) {
1822
1871
  "data-has-label": w || void 0,
1823
1872
  "data-invalid": _ || void 0,
1824
1873
  "data-orientation": f,
1825
- "data-required": I || void 0,
1874
+ "data-required": x || void 0,
1826
1875
  children: [
1827
- w && k ? /* @__PURE__ */ O(
1876
+ w && y ? /* @__PURE__ */ O(
1828
1877
  fe,
1829
1878
  {
1830
1879
  as: "span",
@@ -1839,7 +1888,7 @@ const Pr = g(function(t, e) {
1839
1888
  ]
1840
1889
  }
1841
1890
  ) : null,
1842
- w && !k ? /* @__PURE__ */ O(
1891
+ w && !y ? /* @__PURE__ */ O(
1843
1892
  fe,
1844
1893
  {
1845
1894
  as: "label",
@@ -1861,7 +1910,7 @@ const Pr = g(function(t, e) {
1861
1910
  {
1862
1911
  as: "p",
1863
1912
  className: "nk-field__description",
1864
- id: x,
1913
+ id: I,
1865
1914
  size: "caption",
1866
1915
  tone: "muted",
1867
1916
  children: r
@@ -1884,16 +1933,16 @@ const Pr = g(function(t, e) {
1884
1933
  }
1885
1934
  );
1886
1935
  });
1887
- function Je(n) {
1936
+ function en(n) {
1888
1937
  return Array.isArray(n) ? n.length > 0 : n != null && String(n).length > 0;
1889
1938
  }
1890
- function to(n, t, e) {
1939
+ function no(n, t, e) {
1891
1940
  t.current = n, typeof e == "function" ? e(n) : e && (e.current = n);
1892
1941
  }
1893
- function hn(n) {
1942
+ function fn(n) {
1894
1943
  return n != null && n !== !1 && n !== !0 && n !== "";
1895
1944
  }
1896
- function oo(n) {
1945
+ function to(n) {
1897
1946
  var e;
1898
1947
  const t = (e = Object.getOwnPropertyDescriptor(
1899
1948
  Object.getPrototypeOf(n),
@@ -1901,7 +1950,7 @@ function oo(n) {
1901
1950
  )) == null ? void 0 : e.set;
1902
1951
  t ? t.call(n, "") : n.value = "";
1903
1952
  }
1904
- const _r = g(function(t, e) {
1953
+ const Nr = g(function(t, e) {
1905
1954
  const {
1906
1955
  "aria-busy": o,
1907
1956
  "aria-invalid": i,
@@ -1915,31 +1964,31 @@ const _r = g(function(t, e) {
1915
1964
  loading: p = !1,
1916
1965
  onChange: v,
1917
1966
  readOnly: m = !1,
1918
- style: x,
1967
+ style: I,
1919
1968
  trailing: b,
1920
1969
  type: w = "text",
1921
1970
  value: M,
1922
1971
  ..._
1923
- } = t, R = Le(), k = D(null), [C, I] = $(
1924
- Je(s)
1972
+ } = t, R = Le(), y = D(null), [C, x] = $(
1973
+ en(s)
1925
1974
  ), [N, T] = $(!1);
1926
1975
  q(() => {
1927
1976
  w !== "password" && T(!1);
1928
1977
  }, [w]);
1929
1978
  const z = W(
1930
- (K) => to(
1979
+ (K) => no(
1931
1980
  K,
1932
- k,
1981
+ y,
1933
1982
  e
1934
1983
  ),
1935
1984
  [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;
1985
+ ), Z = f ?? `${R}-control`, H = u || p, E = d || he(i), U = M !== void 0 ? en(M) : C, S = w === "password" && N ? "text" : w, k = ge(d, i), P = l && U && !m && !H, A = w === "password" && !p, B = P || A, V = fn(c), j = fn(b) || B;
1937
1986
  function te(K) {
1938
- M === void 0 && I(Je(K.currentTarget.value)), v == null || v(K);
1987
+ M === void 0 && x(en(K.currentTarget.value)), v == null || v(K);
1939
1988
  }
1940
1989
  function ee() {
1941
- const K = k.current;
1942
- K && (oo(K), K.dispatchEvent(new Event("input", { bubbles: !0 })), K.focus());
1990
+ const K = y.current;
1991
+ K && (to(K), K.dispatchEvent(new Event("input", { bubbles: !0 })), K.focus());
1943
1992
  }
1944
1993
  function X() {
1945
1994
  T((K) => !K);
@@ -1956,7 +2005,7 @@ const _r = g(function(t, e) {
1956
2005
  "data-read-only": m || void 0,
1957
2006
  "data-has-trailing-action": B || void 0,
1958
2007
  "data-trailing": j || void 0,
1959
- style: x,
2008
+ style: I,
1960
2009
  children: [
1961
2010
  V ? /* @__PURE__ */ a("span", { className: "nk-input__leading", children: c }) : null,
1962
2011
  /* @__PURE__ */ a(
@@ -1965,7 +2014,7 @@ const _r = g(function(t, e) {
1965
2014
  ..._,
1966
2015
  ref: z,
1967
2016
  "aria-busy": p ? !0 : o,
1968
- "aria-invalid": y,
2017
+ "aria-invalid": k,
1969
2018
  className: "nk-input__control",
1970
2019
  defaultValue: s,
1971
2020
  disabled: H,
@@ -2008,7 +2057,7 @@ const _r = g(function(t, e) {
2008
2057
  ) : null
2009
2058
  ] }) : null,
2010
2059
  p ? /* @__PURE__ */ a(
2011
- _n,
2060
+ Pn,
2012
2061
  {
2013
2062
  "aria-hidden": "true",
2014
2063
  "aria-label": void 0,
@@ -2020,8 +2069,8 @@ const _r = g(function(t, e) {
2020
2069
  ]
2021
2070
  }
2022
2071
  );
2023
- }), Be = qe(void 0), pn = typeof window > "u" ? q : ln;
2024
- function vn(n, t) {
2072
+ }), Oe = qe(void 0), hn = typeof window > "u" ? q : $e;
2073
+ function pn(n, t) {
2025
2074
  const e = n.ownerDocument.defaultView;
2026
2075
  if (!e) return;
2027
2076
  const o = e.getComputedStyle(n);
@@ -2036,21 +2085,21 @@ function vn(n, t) {
2036
2085
  );
2037
2086
  }
2038
2087
  }
2039
- function ro(n) {
2040
- const { children: t, source: e } = n, o = D(null), i = Ne(Be), [r, l] = $(null);
2041
- return pn(() => {
2088
+ function oo(n) {
2089
+ const { children: t, source: e } = n, o = D(null), i = Ne(Oe), [r, l] = $(null);
2090
+ return hn(() => {
2042
2091
  const s = o.current;
2043
2092
  if (!(!s || !i))
2044
2093
  return i.registerBranch(s);
2045
- }, [i]), pn(() => {
2094
+ }, [i]), hn(() => {
2046
2095
  var p;
2047
2096
  const s = o.current;
2048
2097
  if (!s) return;
2049
- vn(e, s), l(e);
2098
+ pn(e, s), l(e);
2050
2099
  const f = e.closest(".nk-content") ?? e, d = (p = e.ownerDocument.defaultView) == null ? void 0 : p.MutationObserver;
2051
2100
  if (!d) return;
2052
2101
  const c = new d(() => {
2053
- vn(e, s);
2102
+ pn(e, s);
2054
2103
  });
2055
2104
  return c.observe(f, {
2056
2105
  attributeFilter: ["class", "data-theme", "style"],
@@ -2066,7 +2115,7 @@ function ro(n) {
2066
2115
  }
2067
2116
  );
2068
2117
  }
2069
- function $e(n) {
2118
+ function Ge(n) {
2070
2119
  const { children: t, container: e, inheritFrom: o } = n, i = D(null), [r, l] = $(!1);
2071
2120
  q(() => {
2072
2121
  l(!0);
@@ -2074,60 +2123,60 @@ function $e(n) {
2074
2123
  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
2124
  return /* @__PURE__ */ O(je, { children: [
2076
2125
  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 }),
2126
+ r && s && f ? Zn(
2127
+ /* @__PURE__ */ a(oo, { source: s, children: t }),
2079
2128
  f
2080
2129
  ) : null
2081
2130
  ] });
2082
2131
  }
2083
- const io = 1e3, ao = 10, mn = /* @__PURE__ */ new WeakMap();
2084
- function De(n) {
2085
- const t = mn.get(n);
2132
+ const ro = 1e3, io = 10, vn = /* @__PURE__ */ new WeakMap();
2133
+ function Be(n) {
2134
+ const t = vn.get(n);
2086
2135
  if (t) return t;
2087
2136
  const e = {
2088
2137
  focusLayers: /* @__PURE__ */ new Set(),
2089
2138
  layers: [],
2090
2139
  listeners: /* @__PURE__ */ new Set()
2091
2140
  };
2092
- return mn.set(n, e), e;
2141
+ return vn.set(n, e), e;
2093
2142
  }
2094
- function gn(n) {
2143
+ function mn(n) {
2095
2144
  n.listeners.forEach((t) => t());
2096
2145
  }
2097
- function Ge(n, t) {
2098
- const e = D(Symbol("nk-overlay-layer")), [, o] = Cn((s) => s + 1, 0);
2146
+ function Ke(n, t) {
2147
+ const e = D(Symbol("nk-overlay-layer")), [, o] = In((s) => s + 1, 0);
2099
2148
  q(() => {
2100
2149
  if (!n || !t) return;
2101
- const s = De(t), u = () => o();
2102
- return s.listeners.add(u), s.layers.push(e.current), gn(s), () => {
2150
+ const s = Be(t), u = () => o();
2151
+ return s.listeners.add(u), s.layers.push(e.current), mn(s), () => {
2103
2152
  s.listeners.delete(u);
2104
2153
  const f = s.layers.indexOf(e.current);
2105
- f >= 0 && s.layers.splice(f, 1), gn(s);
2154
+ f >= 0 && s.layers.splice(f, 1), mn(s);
2106
2155
  };
2107
2156
  }, [n, t]);
2108
- const i = t ? De(t) : null, r = (i == null ? void 0 : i.layers.indexOf(
2157
+ const i = t ? Be(t) : null, r = (i == null ? void 0 : i.layers.indexOf(
2109
2158
  e.current
2110
2159
  )) ?? -1, l = r >= 0 ? r : (i == null ? void 0 : i.layers.length) ?? 0;
2111
2160
  return {
2112
2161
  id: e.current,
2113
- zIndex: io + l * ao
2162
+ zIndex: ro + l * io
2114
2163
  };
2115
2164
  }
2116
- function wn(n, t) {
2117
- const e = De(n).layers;
2165
+ function gn(n, t) {
2166
+ const e = Be(n).layers;
2118
2167
  return e.length > 0 && e[e.length - 1] === t;
2119
2168
  }
2120
- function lo(n, t, e) {
2169
+ function ao(n, t, e) {
2121
2170
  q(() => {
2122
2171
  if (!n || !t) return;
2123
- const o = De(t);
2172
+ const o = Be(t);
2124
2173
  return o.focusLayers.add(e), () => {
2125
2174
  o.focusLayers.delete(e);
2126
2175
  };
2127
2176
  }, [n, e, t]);
2128
2177
  }
2129
- function bn(n, t) {
2130
- const e = De(n);
2178
+ function wn(n, t) {
2179
+ const e = Be(n);
2131
2180
  for (let o = e.layers.length - 1; o >= 0; o -= 1) {
2132
2181
  const i = e.layers[o];
2133
2182
  if (e.focusLayers.has(i))
@@ -2135,7 +2184,7 @@ function bn(n, t) {
2135
2184
  }
2136
2185
  return !1;
2137
2186
  }
2138
- function so(n, t) {
2187
+ function lo(n, t) {
2139
2188
  const e = n.composedPath();
2140
2189
  return t.some((o) => {
2141
2190
  var l;
@@ -2146,7 +2195,7 @@ function so(n, t) {
2146
2195
  return r && n.target instanceof r ? i.contains(n.target) : !1;
2147
2196
  });
2148
2197
  }
2149
- function Ke(n) {
2198
+ function Ue(n) {
2150
2199
  const {
2151
2200
  active: t,
2152
2201
  boundaries: e,
@@ -2162,10 +2211,10 @@ function Ke(n) {
2162
2211
  q(() => {
2163
2212
  if (!t || !d) return;
2164
2213
  function c(v) {
2165
- v.key !== "Escape" || !o || !wn(d, r) || (s == null || s(v), !v.defaultPrevented && (v.preventDefault(), l == null || l()));
2214
+ v.key !== "Escape" || !o || !gn(d, r) || (s == null || s(v), !v.defaultPrevented && (v.preventDefault(), l == null || l()));
2166
2215
  }
2167
2216
  function p(v) {
2168
- !i || !wn(d, r) || so(v, e) || (u == null || u(v), !v.defaultPrevented && (f == null || f()));
2217
+ !i || !gn(d, r) || lo(v, e) || (u == null || u(v), !v.defaultPrevented && (f == null || f()));
2169
2218
  }
2170
2219
  return d.addEventListener("keydown", c, !0), d.addEventListener("pointerdown", p, !0), () => {
2171
2220
  d.removeEventListener("keydown", c, !0), d.removeEventListener("pointerdown", p, !0);
@@ -2183,19 +2232,19 @@ function Ke(n) {
2183
2232
  d
2184
2233
  ]);
2185
2234
  }
2186
- const rn = /* @__PURE__ */ new WeakSet();
2187
- function co(n) {
2188
- rn.add(n);
2235
+ const an = /* @__PURE__ */ new WeakSet();
2236
+ function so(n) {
2237
+ an.add(n);
2189
2238
  try {
2190
2239
  n.focus({ preventScroll: !0 });
2191
2240
  } finally {
2192
- rn.delete(n);
2241
+ an.delete(n);
2193
2242
  }
2194
2243
  }
2195
- function uo(n) {
2196
- return rn.has(n);
2244
+ function co(n) {
2245
+ return an.has(n);
2197
2246
  }
2198
- const fo = [
2247
+ const uo = [
2199
2248
  "a[href]",
2200
2249
  "area[href]",
2201
2250
  "button",
@@ -2206,7 +2255,7 @@ const fo = [
2206
2255
  "[contenteditable]:not([contenteditable='false'])",
2207
2256
  "[tabindex]"
2208
2257
  ].join(",");
2209
- function ho(n, t) {
2258
+ function fo(n, t) {
2210
2259
  let e = n;
2211
2260
  for (; e; ) {
2212
2261
  if (e.hidden || e.inert || e.getAttribute("aria-hidden") === "true")
@@ -2219,7 +2268,7 @@ function ho(n, t) {
2219
2268
  }
2220
2269
  return !1;
2221
2270
  }
2222
- function po(n, t) {
2271
+ function ho(n, t) {
2223
2272
  var r;
2224
2273
  const e = (r = n.ownerDocument.defaultView) == null ? void 0 : r.HTMLInputElement;
2225
2274
  if (!e || !(n instanceof e) || n.type !== "radio" || !n.name)
@@ -2229,19 +2278,19 @@ function po(n, t) {
2229
2278
  ), i = o.find((l) => l.checked);
2230
2279
  return i ? i === n : o[0] === n;
2231
2280
  }
2232
- function vo(n) {
2281
+ function po(n) {
2233
2282
  const t = Array.from(
2234
- n.querySelectorAll(fo)
2235
- ).filter((e) => !e.matches(":disabled") && e.tabIndex >= 0 && !ho(e, n));
2283
+ n.querySelectorAll(uo)
2284
+ ).filter((e) => !e.matches(":disabled") && e.tabIndex >= 0 && !fo(e, n));
2236
2285
  return t.filter(
2237
- (e) => po(e, t)
2286
+ (e) => ho(e, t)
2238
2287
  );
2239
2288
  }
2240
- function yn(n, t) {
2289
+ function bn(n, t) {
2241
2290
  const e = [n, ...t];
2242
2291
  return [...new Set(
2243
2292
  e.flatMap(
2244
- (i) => vo(i)
2293
+ (i) => po(i)
2245
2294
  )
2246
2295
  )].sort((i, r) => {
2247
2296
  var u;
@@ -2250,10 +2299,10 @@ function yn(n, t) {
2250
2299
  return l & s ? -1 : 1;
2251
2300
  });
2252
2301
  }
2253
- function en(n, t, e) {
2302
+ function nn(n, t, e) {
2254
2303
  return e ? n.contains(e) || [...t].some((o) => o.contains(e)) : !1;
2255
2304
  }
2256
- function Rn(n) {
2305
+ function Sn(n) {
2257
2306
  const {
2258
2307
  active: t,
2259
2308
  autoFocus: e = !0,
@@ -2262,34 +2311,34 @@ function Rn(n) {
2262
2311
  layerId: r,
2263
2312
  restoreFocus: l = !0
2264
2313
  } = 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(() => {
2314
+ return ao(t && !!o, s, r), q(() => {
2266
2315
  var _, R;
2267
2316
  if (!t || !o) return;
2268
2317
  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
- let x = !0;
2318
+ let I = !0;
2270
2319
  function b() {
2271
- const k = i == null ? void 0 : i.current;
2272
- (k && en(
2320
+ const y = i == null ? void 0 : i.current;
2321
+ (y && nn(
2273
2322
  o,
2274
2323
  u.current,
2275
- k
2276
- ) ? k : yn(
2324
+ y
2325
+ ) ? y : bn(
2277
2326
  o,
2278
2327
  u.current
2279
2328
  )[0] ?? o).focus({ preventScroll: !0 });
2280
2329
  }
2281
- function w(k) {
2282
- if (k.key !== "Tab" || !bn(c, r))
2330
+ function w(y) {
2331
+ if (y.key !== "Tab" || !wn(c, r))
2283
2332
  return;
2284
- const C = yn(
2333
+ const C = bn(
2285
2334
  o,
2286
2335
  u.current
2287
2336
  );
2288
2337
  if (C.length === 0) {
2289
- k.preventDefault(), o == null || o.focus({ preventScroll: !0 });
2338
+ y.preventDefault(), o == null || o.focus({ preventScroll: !0 });
2290
2339
  return;
2291
2340
  }
2292
- const I = C[0], N = C[C.length - 1], T = c.activeElement, z = en(
2341
+ const x = C[0], N = C[C.length - 1], T = c.activeElement, z = nn(
2293
2342
  o,
2294
2343
  u.current,
2295
2344
  T
@@ -2297,22 +2346,22 @@ function Rn(n) {
2297
2346
  (E) => E === T
2298
2347
  ) && (T === o || T === (i == null ? void 0 : i.current));
2299
2348
  if (!z || H) {
2300
- k.preventDefault(), (k.shiftKey ? N : I).focus();
2349
+ y.preventDefault(), (y.shiftKey ? N : x).focus();
2301
2350
  return;
2302
2351
  }
2303
- k.shiftKey && T === I ? (k.preventDefault(), N.focus()) : !k.shiftKey && T === N && (k.preventDefault(), I.focus());
2352
+ y.shiftKey && T === x ? (y.preventDefault(), N.focus()) : !y.shiftKey && T === N && (y.preventDefault(), x.focus());
2304
2353
  }
2305
- function M(k) {
2306
- bn(c, r) && v && k.target instanceof v && !en(
2354
+ function M(y) {
2355
+ wn(c, r) && v && y.target instanceof v && !nn(
2307
2356
  o,
2308
2357
  u.current,
2309
- k.target
2358
+ y.target
2310
2359
  ) && b();
2311
2360
  }
2312
2361
  return c.addEventListener("keydown", w, !0), c.addEventListener("focusin", M, !0), e && Promise.resolve().then(() => {
2313
- x && b();
2362
+ I && b();
2314
2363
  }), () => {
2315
- x = !1, c.removeEventListener("keydown", w, !0), c.removeEventListener("focusin", M, !0), l && (m != null && m.isConnected) && co(m);
2364
+ I = !1, c.removeEventListener("keydown", w, !0), c.removeEventListener("focusin", M, !0), l && (m != null && m.isConnected) && so(m);
2316
2365
  };
2317
2366
  }, [
2318
2367
  t,
@@ -2323,7 +2372,7 @@ function Rn(n) {
2323
2372
  l
2324
2373
  ]), d;
2325
2374
  }
2326
- function mo() {
2375
+ function vo() {
2327
2376
  const [n, t] = $(!1);
2328
2377
  return q(() => {
2329
2378
  const e = typeof window > "u" ? null : window;
@@ -2336,8 +2385,8 @@ function mo() {
2336
2385
  return i(), o.addEventListener("change", i), () => o.removeEventListener("change", i);
2337
2386
  }, []), n;
2338
2387
  }
2339
- function Ue(n, t = 200) {
2340
- const e = mo(), [o, i] = $(n);
2388
+ function Ye(n, t = 200) {
2389
+ const e = vo(), [o, i] = $(n);
2341
2390
  return q(() => {
2342
2391
  if (n) {
2343
2392
  i(!0);
@@ -2358,7 +2407,7 @@ function Ue(n, t = 200) {
2358
2407
  };
2359
2408
  }
2360
2409
  const We = /* @__PURE__ */ new WeakMap();
2361
- function go(n, t) {
2410
+ function mo(n, t) {
2362
2411
  q(() => {
2363
2412
  if (!n || !t) return;
2364
2413
  const e = We.get(t);
@@ -2383,10 +2432,10 @@ function go(n, t) {
2383
2432
  };
2384
2433
  }, [n, t]);
2385
2434
  }
2386
- function wo(n, t, e) {
2435
+ function go(n, t, e) {
2387
2436
  t.current = n, typeof e == "function" ? e(n) : e && (e.current = n);
2388
2437
  }
2389
- function bo(n) {
2438
+ function wo(n) {
2390
2439
  const {
2391
2440
  "aria-label": t,
2392
2441
  "aria-labelledby": e,
@@ -2402,43 +2451,43 @@ function bo(n) {
2402
2451
  ownerDocument: p,
2403
2452
  presenceState: v,
2404
2453
  restoreFocus: m = !0,
2405
- role: x = "dialog",
2454
+ role: I = "dialog",
2406
2455
  style: b,
2407
2456
  title: w,
2408
2457
  trapFocus: M = !0,
2409
2458
  ..._
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(
2459
+ } = n, R = D(null), y = D(null), C = Ne(Oe), x = `${Le()}-title`, [N, T] = $(null), z = Ke(!0, p), Z = Me(() => [R], []), H = !!(w != null && w.trim()), E = u ?? (H ? y : void 0), U = e ?? (t === void 0 && H ? x : void 0), S = W(
2411
2460
  (V) => {
2412
- wo(V, R, s), T(V);
2461
+ go(V, R, s), T(V);
2413
2462
  },
2414
2463
  [s]
2415
2464
  );
2416
- ln(() => {
2465
+ $e(() => {
2417
2466
  N && (N.inert = !c);
2418
2467
  }, [N, c]);
2419
- const y = W(() => {
2468
+ const k = W(() => {
2420
2469
  d == null || d("escape");
2421
2470
  }, [d]), P = W(() => {
2422
2471
  d == null || d("outside");
2423
2472
  }, [d]);
2424
- Ke({
2473
+ Ue({
2425
2474
  active: c,
2426
2475
  boundaries: Z,
2427
2476
  dismissOnEscape: l,
2428
2477
  dismissOnPointerDownOutside: l,
2429
2478
  layerId: z.id,
2430
- onEscapeDismiss: y,
2479
+ onEscapeDismiss: k,
2431
2480
  onPointerDownOutsideDismiss: P,
2432
2481
  ownerDocument: p
2433
2482
  });
2434
- const A = Rn({
2483
+ const A = Sn({
2435
2484
  active: c && M,
2436
2485
  container: N,
2437
2486
  initialFocusReference: E,
2438
2487
  layerId: z.id,
2439
2488
  restoreFocus: m
2440
2489
  });
2441
- go(f, p);
2490
+ mo(f, p);
2442
2491
  const B = l ? /* @__PURE__ */ a(
2443
2492
  ze,
2444
2493
  {
@@ -2452,7 +2501,7 @@ function bo(n) {
2452
2501
  }
2453
2502
  ) : null;
2454
2503
  return /* @__PURE__ */ a(
2455
- Be.Provider,
2504
+ Oe.Provider,
2456
2505
  {
2457
2506
  value: c && M ? A : C,
2458
2507
  children: /* @__PURE__ */ a(
@@ -2463,7 +2512,7 @@ function bo(n) {
2463
2512
  role: "presentation",
2464
2513
  style: { zIndex: z.zIndex },
2465
2514
  children: /* @__PURE__ */ O(
2466
- Fe,
2515
+ He,
2467
2516
  {
2468
2517
  ..._,
2469
2518
  ref: S,
@@ -2473,7 +2522,7 @@ function bo(n) {
2473
2522
  "aria-modal": c ? "true" : void 0,
2474
2523
  className: ["nk-modal", i].filter(Boolean).join(" "),
2475
2524
  "data-state": v,
2476
- role: c ? x : void 0,
2525
+ role: c ? I : void 0,
2477
2526
  style: b,
2478
2527
  tabIndex: -1,
2479
2528
  children: [
@@ -2483,8 +2532,8 @@ function bo(n) {
2483
2532
  {
2484
2533
  as: "h2",
2485
2534
  className: "nk-modal__title",
2486
- id: I,
2487
- ref: k,
2535
+ id: x,
2536
+ ref: y,
2488
2537
  size: "subtitle",
2489
2538
  tabIndex: -1,
2490
2539
  weight: "semibold",
@@ -2502,12 +2551,12 @@ function bo(n) {
2502
2551
  }
2503
2552
  );
2504
2553
  }
2505
- const Nr = g(function(t, e) {
2554
+ const Lr = g(function(t, e) {
2506
2555
  const { open: o } = t, i = D(t);
2507
2556
  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,
2557
+ const r = o ? t : i.current, { portalContainer: l } = r, s = Ye(o), u = (l == null ? void 0 : l.ownerDocument) ?? (typeof document > "u" ? null : document);
2558
+ return s.present ? /* @__PURE__ */ a(Ge, { container: l, children: /* @__PURE__ */ a(
2559
+ wo,
2511
2560
  {
2512
2561
  ...r,
2513
2562
  forwardedReference: e,
@@ -2516,14 +2565,14 @@ const Nr = g(function(t, e) {
2516
2565
  presenceState: s.state === "closing" ? "closing" : "open"
2517
2566
  }
2518
2567
  ) }) : null;
2519
- }), yo = Number.parseInt(Zn, 10);
2520
- function Tn(n) {
2521
- return yo >= 19 ? n.props.ref : n.ref;
2568
+ }), bo = Number.parseInt(jn, 10);
2569
+ function Rn(n) {
2570
+ return bo >= 19 ? n.props.ref : n.ref;
2522
2571
  }
2523
- function He(n, t) {
2572
+ function De(n, t) {
2524
2573
  typeof n == "function" ? n(t) : n && (n.current = t);
2525
2574
  }
2526
- const ko = 12, Io = {
2575
+ const ko = 12, yo = {
2527
2576
  bottom: "top",
2528
2577
  left: "right",
2529
2578
  right: "left",
@@ -2534,18 +2583,18 @@ function kn(n, t) {
2534
2583
  return Math.min(Math.max(e, n), t - e);
2535
2584
  }
2536
2585
  function xo(n) {
2537
- return Io[n];
2586
+ return yo[n];
2538
2587
  }
2539
- function Co(n, t) {
2588
+ function Io(n, t) {
2540
2589
  return t === "left" || t === "right" ? n.width : n.height;
2541
2590
  }
2542
- function Po(n, t, e, o, i, r) {
2591
+ function Co(n, t, e, o, i, r) {
2543
2592
  const l = {
2544
2593
  bottom: r - e.bottom - t * 2,
2545
2594
  left: e.left - t * 2,
2546
2595
  right: i - e.right - t * 2,
2547
2596
  top: e.top - t * 2
2548
- }, s = xo(n), u = Co(o, n), f = l[n] < u && l[s] > l[n] ? s : n;
2597
+ }, s = xo(n), u = Io(o, n), f = l[n] < u && l[s] > l[n] ? s : n;
2549
2598
  let d = e.left + (e.width - o.width) / 2, c = e.top + (e.height - o.height) / 2;
2550
2599
  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
2600
  Math.max(t, d),
@@ -2561,8 +2610,8 @@ function Po(n, t, e, o, i, r) {
2561
2610
  o.height
2562
2611
  ), left: d, placement: f, top: c };
2563
2612
  }
2564
- const _o = 8;
2565
- function Vn(n, t, e, o) {
2613
+ const Po = 8;
2614
+ function Tn(n, t, e, o) {
2566
2615
  const [i, r] = $(null);
2567
2616
  return q(() => {
2568
2617
  if (!n || !e || !o) {
@@ -2573,14 +2622,14 @@ function Vn(n, t, e, o) {
2573
2622
  if (!l) return;
2574
2623
  const s = l, u = s.getComputedStyle(e), f = Number.parseFloat(
2575
2624
  u.getPropertyValue("--nk-space-8")
2576
- ), d = Number.isFinite(f) ? f : _o;
2625
+ ), d = Number.isFinite(f) ? f : Po;
2577
2626
  function c() {
2578
- const m = e == null ? void 0 : e.getBoundingClientRect(), x = o == null ? void 0 : o.getBoundingClientRect();
2579
- !m || !x || r(Po(
2627
+ const m = e == null ? void 0 : e.getBoundingClientRect(), I = o == null ? void 0 : o.getBoundingClientRect();
2628
+ !m || !I || r(Co(
2580
2629
  t,
2581
2630
  d,
2582
2631
  m,
2583
- x,
2632
+ I,
2584
2633
  s.innerWidth,
2585
2634
  s.innerHeight
2586
2635
  ));
@@ -2592,11 +2641,17 @@ function Vn(n, t, e, o) {
2592
2641
  };
2593
2642
  }, [n, o, t, e]), i;
2594
2643
  }
2644
+ function _o(n) {
2645
+ const { inert: t, panelElement: e } = n;
2646
+ return $e(() => {
2647
+ e && (e.inert = t);
2648
+ }, [t, e]), null;
2649
+ }
2595
2650
  function No(n, t, e) {
2596
- t.current = n, He(e, n);
2651
+ t.current = n, De(e, n);
2597
2652
  }
2598
2653
  function Lo(n, t, e) {
2599
- t.current = n, He(e, n);
2654
+ t.current = n, De(e, n);
2600
2655
  }
2601
2656
  function Mo(n, t) {
2602
2657
  const e = (n == null ? void 0 : n.split(/\s+/).filter(Boolean)) ?? [];
@@ -2609,7 +2664,7 @@ function Eo(n) {
2609
2664
  function So(n) {
2610
2665
  return n === "grid" || n === "listbox" || n === "menu" || n === "tree" ? n : "dialog";
2611
2666
  }
2612
- const Lr = g(function(t, e) {
2667
+ const Mr = g(function(t, e) {
2613
2668
  const {
2614
2669
  "aria-label": o,
2615
2670
  "aria-labelledby": i,
@@ -2623,32 +2678,32 @@ const Lr = g(function(t, e) {
2623
2678
  initialFocusReference: p,
2624
2679
  onEscapeKeyDown: v,
2625
2680
  onOpenChange: m,
2626
- onPointerDownOutside: x,
2681
+ onPointerDownOutside: I,
2627
2682
  open: b,
2628
2683
  placement: w = "bottom",
2629
2684
  portalContainer: M,
2630
2685
  restoreFocus: _ = !0,
2631
2686
  role: R = "dialog",
2632
- style: k,
2687
+ style: y,
2633
2688
  tabIndex: C,
2634
- trapFocus: I = !1,
2689
+ trapFocus: x = !1,
2635
2690
  trigger: N,
2636
2691
  ...T
2637
2692
  } = t;
2638
2693
  if (N.type === _e)
2639
2694
  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(
2695
+ const z = Le(), Z = Ne(Oe), H = `${z}-popover`, E = N.props, U = Rn(N), S = E.id ?? `${z}-trigger`, k = 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] = In(
2641
2696
  (F) => F + 1,
2642
2697
  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(
2698
+ ), [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
2699
  () => [te, ee],
2645
2700
  []
2646
- ), le = Vn(
2701
+ ), se = Tn(
2647
2702
  j.present,
2648
2703
  w,
2649
2704
  G,
2650
- ae
2651
- ), be = V ? {} : { inert: "" }, Se = W(
2705
+ le
2706
+ ), ke = W(
2652
2707
  (F) => {
2653
2708
  Lo(
2654
2709
  F,
@@ -2657,147 +2712,153 @@ const Lr = g(function(t, e) {
2657
2712
  ), ne(F);
2658
2713
  },
2659
2714
  [U]
2660
- ), Re = W(
2715
+ ), Se = W(
2661
2716
  (F) => {
2662
2717
  No(
2663
2718
  F,
2664
2719
  ee,
2665
2720
  e
2666
- ), oe(F);
2721
+ ), re(F);
2667
2722
  },
2668
2723
  [e]
2669
- ), ue = W((F, J) => {
2724
+ ), de = W((F, J) => {
2670
2725
  V !== F && (P ? (K.current = {
2671
2726
  open: F,
2672
2727
  reason: J
2673
2728
  }, 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
- if (x == null || x(F), F.defaultPrevented) return;
2681
- const J = (Ae = Y == null ? void 0 : Y.defaultView) == null ? void 0 : Ae.HTMLElement;
2729
+ }, [P, m, V]), Re = W(() => {
2730
+ de(!1, "escape");
2731
+ }, [de]), Te = W(() => {
2732
+ de(!1, "outside");
2733
+ }, [de]), ye = W((F) => {
2734
+ var Ve;
2735
+ if (I == null || I(F), F.defaultPrevented) return;
2736
+ const J = (Ve = Y == null ? void 0 : Y.defaultView) == null ? void 0 : Ve.HTMLElement;
2682
2737
  pe.current = J ? F.composedPath().find(
2683
- (Ie) => Ie instanceof J && Ie.tabIndex >= 0
2738
+ (xe) => xe instanceof J && xe.tabIndex >= 0
2684
2739
  ) ?? F.target : F.target;
2685
- }, [x, Y]);
2686
- Ke({
2740
+ }, [I, Y]);
2741
+ Ue({
2687
2742
  active: V,
2688
- boundaries: re,
2743
+ boundaries: ie,
2689
2744
  dismissOnEscape: u,
2690
2745
  dismissOnPointerDownOutside: f,
2691
2746
  layerId: ve.id,
2692
- onEscapeDismiss: Te,
2747
+ onEscapeDismiss: Re,
2693
2748
  onEscapeKeyDown: v,
2694
- onPointerDownOutside: h,
2695
- onPointerDownOutsideDismiss: ye,
2749
+ onPointerDownOutside: ye,
2750
+ onPointerDownOutsideDismiss: Te,
2696
2751
  ownerDocument: Y
2697
2752
  });
2698
- const L = Rn({
2699
- active: V && I,
2753
+ const h = Sn({
2754
+ active: V && x,
2700
2755
  autoFocus: r,
2701
- container: ae,
2756
+ container: le,
2702
2757
  initialFocusReference: p,
2703
2758
  layerId: ve.id,
2704
2759
  restoreFocus: _
2705
2760
  });
2706
2761
  q(() => {
2707
- if (!V || I || !r || !ae) return;
2762
+ if (!V || x || !r || !le) return;
2708
2763
  let F = !0;
2709
2764
  return Promise.resolve().then(() => {
2710
2765
  if (!F) return;
2711
2766
  const J = p == null ? void 0 : p.current;
2712
- (J && ae.contains(J) ? J : ae).focus({ preventScroll: !0 });
2767
+ (J && le.contains(J) ? J : le).focus({ preventScroll: !0 });
2713
2768
  }), () => {
2714
2769
  F = !1;
2715
2770
  };
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;
2771
+ }, [r, p, V, le, x]), q(() => {
2772
+ var cn;
2773
+ const F = ce.current;
2774
+ ce.current = V;
2775
+ const J = K.current, Ve = P ? F !== V && (J == null ? void 0 : J.open) === V ? J.reason : "programmatic" : X.current;
2721
2776
  if (K.current = null, V) {
2722
2777
  X.current = "programmatic", pe.current = null;
2723
2778
  return;
2724
2779
  }
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;
2780
+ const xe = 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 && xe instanceof Qe && (Xe === xe || Xe.contains(xe));
2781
+ F && !x && _ && !zn && (G == null || G.focus({ preventScroll: !0 })), pe.current = null;
2727
2782
  }, [
2728
- we,
2783
+ be,
2729
2784
  P,
2730
2785
  V,
2731
2786
  Y,
2732
2787
  _,
2733
- I,
2788
+ x,
2734
2789
  G
2735
2790
  ]), q(() => {
2736
- c && V && ue(!1, "programmatic");
2737
- }, [c, V, ue]);
2738
- function Q(F) {
2791
+ c && V && de(!1, "programmatic");
2792
+ }, [c, V, de]);
2793
+ function L(F) {
2739
2794
  var J;
2740
- if (y) {
2795
+ if (k) {
2741
2796
  F.preventDefault(), F.stopPropagation();
2742
2797
  return;
2743
2798
  }
2744
- (J = E.onClick) == null || J.call(E, F), !F.defaultPrevented && ue(!V, "trigger");
2799
+ (J = E.onClick) == null || J.call(E, F), !F.defaultPrevented && de(!V, "trigger");
2745
2800
  }
2746
- function ie(F) {
2801
+ function Q(F) {
2747
2802
  var J;
2748
- (J = E.onKeyDown) == null || J.call(E, F), !(F.defaultPrevented || y || Eo(F.currentTarget) || F.key !== "Enter" && F.key !== " ") && (F.preventDefault(), F.currentTarget.click());
2803
+ (J = E.onKeyDown) == null || J.call(E, F), !(F.defaultPrevented || k || Eo(F.currentTarget) || F.key !== "Enter" && F.key !== " ") && (F.preventDefault(), F.currentTarget.click());
2749
2804
  }
2750
2805
  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(
2806
+ 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 && k, Wn = Pe(
2752
2807
  N,
2753
2808
  {
2754
2809
  "aria-controls": V ? Mo(E["aria-controls"], H) : E["aria-controls"],
2755
2810
  "aria-expanded": V,
2756
2811
  "aria-haspopup": E["aria-haspopup"] ?? So(R),
2757
- "aria-disabled": y ? !0 : E["aria-disabled"],
2812
+ "aria-disabled": k ? !0 : E["aria-disabled"],
2758
2813
  className: [E.className, "nk-popover__trigger"].filter(Boolean).join(" "),
2759
- href: cn ? void 0 : E.href,
2814
+ href: sn ? void 0 : E.href,
2760
2815
  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)
2816
+ onClick: L,
2817
+ onKeyDown: oe ? Q : E.onKeyDown,
2818
+ ref: ke,
2819
+ role: E.role ?? (sn ? "link" : we ? "button" : void 0),
2820
+ tabIndex: k ? -1 : E.tabIndex ?? (we ? 0 : void 0)
2766
2821
  }
2767
2822
  );
2768
2823
  return /* @__PURE__ */ O(je, { children: [
2769
- zn,
2824
+ Wn,
2770
2825
  /* @__PURE__ */ a(
2771
- Be.Provider,
2826
+ Oe.Provider,
2772
2827
  {
2773
- value: V && I ? L : Z,
2774
- children: j.present && Y ? /* @__PURE__ */ a($e, { container: M, inheritFrom: G, children: /* @__PURE__ */ O(
2775
- Fe,
2828
+ value: V && x ? h : Z,
2829
+ children: j.present && Y ? /* @__PURE__ */ a(Ge, { container: M, inheritFrom: G, children: /* @__PURE__ */ O(
2830
+ He,
2776
2831
  {
2777
2832
  ...T,
2778
- ...be,
2779
- ref: Re,
2833
+ ref: Se,
2780
2834
  "aria-hidden": V ? void 0 : !0,
2781
2835
  "aria-label": V ? o : void 0,
2782
2836
  "aria-labelledby": V ? i ?? (o === void 0 ? S : void 0) : void 0,
2783
2837
  className: ["nk-popover", s].filter(Boolean).join(" "),
2784
- "data-placement": (le == null ? void 0 : le.placement) ?? w,
2838
+ "data-placement": (se == null ? void 0 : se.placement) ?? w,
2785
2839
  "data-state": j.state === "closing" ? "closing" : "open",
2786
2840
  id: H,
2787
2841
  role: V ? R : void 0,
2788
- style: le ? {
2789
- ...k,
2790
- "--nk-popover-arrow-offset": `${le.arrowOffset}px`,
2791
- left: le.left,
2792
- top: le.top,
2842
+ style: se ? {
2843
+ ...y,
2844
+ "--nk-popover-arrow-offset": `${se.arrowOffset}px`,
2845
+ left: se.left,
2846
+ top: se.top,
2793
2847
  zIndex: ve.zIndex
2794
2848
  } : {
2795
- ...k,
2849
+ ...y,
2796
2850
  visibility: "hidden",
2797
2851
  zIndex: ve.zIndex
2798
2852
  },
2799
2853
  tabIndex: C ?? -1,
2800
2854
  children: [
2855
+ /* @__PURE__ */ a(
2856
+ _o,
2857
+ {
2858
+ inert: !V,
2859
+ panelElement: le
2860
+ }
2861
+ ),
2801
2862
  /* @__PURE__ */ a("span", { "aria-hidden": "true", className: "nk-popover__arrow" }),
2802
2863
  /* @__PURE__ */ a("div", { className: "nk-popover__content", children: l })
2803
2864
  ]
@@ -2806,14 +2867,14 @@ const Lr = g(function(t, e) {
2806
2867
  }
2807
2868
  )
2808
2869
  ] });
2809
- }), Ro = 3, To = 10, An = 4;
2870
+ }), Ro = 3, To = 10, Vn = 4;
2810
2871
  function Vo(n) {
2811
2872
  return Number.isFinite(n) ? Math.min(
2812
2873
  To,
2813
2874
  Math.max(Ro, Math.trunc(n))
2814
- ) : An;
2875
+ ) : Vn;
2815
2876
  }
2816
- function xe(n, t, e) {
2877
+ function Ie(n, t, e) {
2817
2878
  return (t === "numeric" ? n.replace(/[^0-9]/g, "") : n.replace(/[^0-9a-z]/gi, "").toUpperCase()).slice(0, e);
2818
2879
  }
2819
2880
  function Ao(n, t, e) {
@@ -2827,7 +2888,7 @@ function Oo(n, t) {
2827
2888
  )) == null ? void 0 : o.set;
2828
2889
  e ? e.call(n, t) : n.value = t;
2829
2890
  }
2830
- function nn(n, t, e) {
2891
+ function tn(n, t, e) {
2831
2892
  const o = Math.min(e - 1, Math.max(0, t)), i = Math.min(o + 1, n.value.length);
2832
2893
  n.focus(), n.setSelectionRange(o, i);
2833
2894
  }
@@ -2846,17 +2907,17 @@ function Bo(n) {
2846
2907
  onSelect: c,
2847
2908
  readOnly: p,
2848
2909
  value: v
2849
- } = n, m = Vo(i), x = xe(
2910
+ } = n, m = Vo(i), I = Ie(
2850
2911
  t,
2851
2912
  r,
2852
2913
  m
2853
2914
  ), b = D(null), [w, M] = $(
2854
- x
2855
- ), [_, R] = $(0), k = v !== void 0, C = xe(
2856
- k ? v : w,
2915
+ I
2916
+ ), [_, R] = $(0), y = v !== void 0, C = Ie(
2917
+ y ? v : w,
2857
2918
  r,
2858
2919
  m
2859
- ), I = W(
2920
+ ), x = W(
2860
2921
  (S) => Ao(
2861
2922
  S,
2862
2923
  b,
@@ -2865,71 +2926,71 @@ function Bo(n) {
2865
2926
  [o]
2866
2927
  );
2867
2928
  q(() => {
2868
- !k && w !== C && M(C);
2869
- }, [k, C, w]), q(() => {
2929
+ !y && w !== C && M(C);
2930
+ }, [y, C, w]), q(() => {
2870
2931
  var A;
2871
- if (k) return;
2932
+ if (y) return;
2872
2933
  const S = (A = b.current) == null ? void 0 : A.form;
2873
2934
  if (!S) return;
2874
- const y = S.getRootNode();
2935
+ const k = S.getRootNode();
2875
2936
  function P(B) {
2876
- B.target !== S || B.defaultPrevented || (M(x), R(0));
2937
+ B.target !== S || B.defaultPrevented || (M(I), R(0));
2877
2938
  }
2878
- return y.addEventListener("reset", P), () => y.removeEventListener("reset", P);
2879
- }, [k, x]);
2939
+ return k.addEventListener("reset", P), () => k.removeEventListener("reset", P);
2940
+ }, [y, I]);
2880
2941
  function N(S) {
2881
- const y = S.selectionStart ?? C.length;
2882
- return Math.min(m - 1, Math.max(0, y));
2942
+ const k = S.selectionStart ?? C.length;
2943
+ return Math.min(m - 1, Math.max(0, k));
2883
2944
  }
2884
2945
  function T(S) {
2885
- const y = S.currentTarget, P = y.selectionStart ?? y.value.length, A = xe(y.value, r, m), B = xe(
2886
- y.value.slice(0, P),
2946
+ const k = S.currentTarget, P = k.selectionStart ?? k.value.length, A = Ie(k.value, r, m), B = Ie(
2947
+ k.value.slice(0, P),
2887
2948
  r,
2888
2949
  m
2889
2950
  ).length;
2890
- y.value = A, k || M(A), l == null || l(S), A.length === m && A !== C && (s == null || s(A));
2951
+ k.value = A, y || M(A), l == null || l(S), A.length === m && A !== C && (s == null || s(A));
2891
2952
  const V = Math.min(m - 1, B);
2892
- R(V), y.setSelectionRange(
2953
+ R(V), k.setSelectionRange(
2893
2954
  V,
2894
2955
  Math.min(V + 1, A.length)
2895
2956
  );
2896
2957
  }
2897
2958
  function z(S) {
2898
2959
  if (d == null || d(S), S.defaultPrevented || e || p) return;
2899
- const y = xe(
2960
+ const k = Ie(
2900
2961
  S.clipboardData.getData("text"),
2901
2962
  r,
2902
2963
  m
2903
2964
  );
2904
- if (S.preventDefault(), y.length === 0) return;
2905
- const P = S.currentTarget, A = P.selectionStart ?? C.length, B = P.selectionEnd ?? A, V = y.length === m ? y : xe(
2906
- C.slice(0, A) + y + C.slice(B),
2965
+ if (S.preventDefault(), k.length === 0) return;
2966
+ const P = S.currentTarget, A = P.selectionStart ?? C.length, B = P.selectionEnd ?? A, V = k.length === m ? k : Ie(
2967
+ C.slice(0, A) + k + C.slice(B),
2907
2968
  r,
2908
2969
  m
2909
- ), j = y.length === m ? m : Math.min(m, A + y.length);
2970
+ ), j = k.length === m ? m : Math.min(m, A + k.length);
2910
2971
  Oo(P, V), P.setSelectionRange(j, j), P.dispatchEvent(new Event("input", { bubbles: !0 }));
2911
2972
  }
2912
2973
  function Z(S) {
2913
2974
  if (f == null || f(S), S.defaultPrevented || S.key !== "ArrowLeft" && S.key !== "ArrowRight") return;
2914
2975
  S.preventDefault();
2915
- const y = S.key === "ArrowLeft" ? -1 : 1, P = Math.min(
2976
+ const k = S.key === "ArrowLeft" ? -1 : 1, P = Math.min(
2916
2977
  m - 1,
2917
- Math.max(0, N(S.currentTarget) + y)
2978
+ Math.max(0, N(S.currentTarget) + k)
2918
2979
  );
2919
- R(P), nn(S.currentTarget, P, m);
2980
+ R(P), tn(S.currentTarget, P, m);
2920
2981
  }
2921
2982
  function H(S) {
2922
2983
  u == null || u(S);
2923
- const y = Math.min(m - 1, C.length);
2924
- R(y), nn(S.currentTarget, y, m);
2984
+ const k = Math.min(m - 1, C.length);
2985
+ R(k), tn(S.currentTarget, k, m);
2925
2986
  }
2926
2987
  function E(S) {
2927
2988
  c == null || c(S), R(N(S.currentTarget));
2928
2989
  }
2929
- function U(S, y) {
2990
+ function U(S, k) {
2930
2991
  if (S.preventDefault(), e) return;
2931
2992
  const P = b.current;
2932
- P && (R(y), nn(P, y, m));
2993
+ P && (R(k), tn(P, k, m));
2933
2994
  }
2934
2995
  return {
2935
2996
  activeIndex: _,
@@ -2939,12 +3000,12 @@ function Bo(n) {
2939
3000
  handlePaste: z,
2940
3001
  handleSelect: E,
2941
3002
  handleSlotPointerDown: U,
2942
- inputCallbackReference: I,
3003
+ inputCallbackReference: x,
2943
3004
  length: m,
2944
3005
  renderedValue: C
2945
3006
  };
2946
3007
  }
2947
- const Mr = g(function(t, e) {
3008
+ const Er = g(function(t, e) {
2948
3009
  const {
2949
3010
  "aria-invalid": o,
2950
3011
  autoCapitalize: i,
@@ -2954,19 +3015,19 @@ const Mr = g(function(t, e) {
2954
3015
  defaultValue: u = "",
2955
3016
  disabled: f = !1,
2956
3017
  invalid: d = !1,
2957
- length: c = An,
3018
+ length: c = Vn,
2958
3019
  mode: p = "numeric",
2959
3020
  onChange: v,
2960
3021
  onComplete: m,
2961
- onFocus: x,
3022
+ onFocus: I,
2962
3023
  onKeyDown: b,
2963
3024
  onPaste: w,
2964
3025
  onSelect: M,
2965
3026
  readOnly: _ = !1,
2966
3027
  style: R,
2967
- value: k,
3028
+ value: y,
2968
3029
  wrap: C = !1,
2969
- ...I
3030
+ ...x
2970
3031
  } = t, {
2971
3032
  activeIndex: N,
2972
3033
  handleChange: T,
@@ -2976,7 +3037,7 @@ const Mr = g(function(t, e) {
2976
3037
  handleSelect: E,
2977
3038
  handleSlotPointerDown: U,
2978
3039
  inputCallbackReference: S,
2979
- length: y,
3040
+ length: k,
2980
3041
  renderedValue: P
2981
3042
  } = Bo({
2982
3043
  defaultValue: u,
@@ -2986,15 +3047,15 @@ const Mr = g(function(t, e) {
2986
3047
  mode: p,
2987
3048
  onChange: v,
2988
3049
  onComplete: m,
2989
- onFocus: x,
3050
+ onFocus: I,
2990
3051
  onKeyDown: b,
2991
3052
  onPaste: w,
2992
3053
  onSelect: M,
2993
3054
  readOnly: _,
2994
- value: k
2995
- }), A = d || he(o), B = !C && y >= 6 && y % 2 === 0, V = y / 2, j = {
3055
+ value: y
3056
+ }), A = d || he(o), B = !C && k >= 6 && k % 2 === 0, V = k / 2, j = {
2996
3057
  ...R,
2997
- "--nk-pin-input-columns": Math.ceil(y / 2)
3058
+ "--nk-pin-input-columns": Math.ceil(k / 2)
2998
3059
  };
2999
3060
  return /* @__PURE__ */ O(
3000
3061
  "span",
@@ -3009,7 +3070,7 @@ const Mr = g(function(t, e) {
3009
3070
  /* @__PURE__ */ a(
3010
3071
  "input",
3011
3072
  {
3012
- ...I,
3073
+ ...x,
3013
3074
  ref: S,
3014
3075
  "aria-invalid": ge(d, o),
3015
3076
  autoCapitalize: i ?? (p === "alphanumeric" ? "characters" : "off"),
@@ -3017,21 +3078,21 @@ const Mr = g(function(t, e) {
3017
3078
  className: "nk-pin-input__control",
3018
3079
  disabled: f,
3019
3080
  inputMode: p === "numeric" ? "numeric" : "text",
3020
- maxLength: y,
3021
- minLength: y,
3081
+ maxLength: k,
3082
+ minLength: k,
3022
3083
  onChange: T,
3023
3084
  onFocus: z,
3024
3085
  onKeyDown: Z,
3025
3086
  onPaste: H,
3026
3087
  onSelect: E,
3027
- pattern: p === "numeric" ? `[0-9]{${y}}` : `[0-9A-Za-z]{${y}}`,
3088
+ pattern: p === "numeric" ? `[0-9]{${k}}` : `[0-9A-Za-z]{${k}}`,
3028
3089
  readOnly: _,
3029
3090
  spellCheck: !1,
3030
3091
  type: "text",
3031
3092
  value: P
3032
3093
  }
3033
3094
  ),
3034
- /* @__PURE__ */ a("span", { "aria-hidden": "true", className: "nk-pin-input__slots", children: Array.from({ length: y }, (te, ee) => /* @__PURE__ */ O("span", { className: "nk-pin-input__slot-group", children: [
3095
+ /* @__PURE__ */ a("span", { "aria-hidden": "true", className: "nk-pin-input__slots", children: Array.from({ length: k }, (te, ee) => /* @__PURE__ */ O("span", { className: "nk-pin-input__slot-group", children: [
3035
3096
  B && ee === V ? /* @__PURE__ */ a("span", { className: "nk-pin-input__separator", children: "-" }) : null,
3036
3097
  /* @__PURE__ */ a(
3037
3098
  "span",
@@ -3046,9 +3107,9 @@ const Mr = g(function(t, e) {
3046
3107
  ]
3047
3108
  }
3048
3109
  );
3049
- }), On = qe(void 0);
3110
+ }), An = qe(void 0);
3050
3111
  function Do() {
3051
- const n = Ne(On);
3112
+ const n = Ne(An);
3052
3113
  if (!n)
3053
3114
  throw new Error("Radio must be rendered within RadioGroup");
3054
3115
  return n;
@@ -3056,7 +3117,7 @@ function Do() {
3056
3117
  function Ho(n, t, e) {
3057
3118
  t.current = n, typeof e == "function" ? e(n) : e && (e.current = n);
3058
3119
  }
3059
- const Er = g(function(t, e) {
3120
+ const Sr = g(function(t, e) {
3060
3121
  const {
3061
3122
  children: o,
3062
3123
  className: i,
@@ -3065,16 +3126,16 @@ const Er = g(function(t, e) {
3065
3126
  value: s,
3066
3127
  ...u
3067
3128
  } = t, f = Do(), d = D(null), c = f.disabled || r, p = f.value !== void 0, v = f.value === s, m = W(
3068
- (x) => Ho(
3069
- x,
3129
+ (I) => Ho(
3130
+ I,
3070
3131
  d,
3071
3132
  e
3072
3133
  ),
3073
3134
  [e]
3074
3135
  );
3075
3136
  return q(() => {
3076
- var x;
3077
- !p && c && ((x = d.current) != null && x.checked) && (d.current.checked = !1);
3137
+ var I;
3138
+ !p && c && ((I = d.current) != null && I.checked) && (d.current.checked = !1);
3078
3139
  }, [p, c]), /* @__PURE__ */ O(
3079
3140
  "label",
3080
3141
  {
@@ -3118,7 +3179,7 @@ const Er = g(function(t, e) {
3118
3179
  required: p = !1,
3119
3180
  value: v,
3120
3181
  ...m
3121
- } = t, x = u || he(o), b = {
3182
+ } = t, I = u || he(o), b = {
3122
3183
  defaultValue: l,
3123
3184
  disabled: s,
3124
3185
  name: f,
@@ -3126,7 +3187,7 @@ const Er = g(function(t, e) {
3126
3187
  required: p,
3127
3188
  value: v
3128
3189
  };
3129
- return /* @__PURE__ */ a(On.Provider, { value: b, children: /* @__PURE__ */ a(
3190
+ return /* @__PURE__ */ a(An.Provider, { value: b, children: /* @__PURE__ */ a(
3130
3191
  "div",
3131
3192
  {
3132
3193
  ...m,
@@ -3136,7 +3197,7 @@ const Er = g(function(t, e) {
3136
3197
  "aria-required": p || void 0,
3137
3198
  className: ["nk-radio-group", r].filter(Boolean).join(" "),
3138
3199
  "data-disabled": s || void 0,
3139
- "data-invalid": x || void 0,
3200
+ "data-invalid": I || void 0,
3140
3201
  "data-orientation": c,
3141
3202
  role: "radiogroup",
3142
3203
  children: i
@@ -3144,8 +3205,8 @@ const Er = g(function(t, e) {
3144
3205
  ) });
3145
3206
  }
3146
3207
  );
3147
- En(Fo, "group");
3148
- function tn(n, t, e) {
3208
+ Mn(Fo, "group");
3209
+ function on(n, t, e) {
3149
3210
  if (n.length === 0) return -1;
3150
3211
  for (let o = 1; o <= n.length; o += 1) {
3151
3212
  const i = (t + e * o + n.length) % n.length;
@@ -3229,9 +3290,9 @@ function qo(n, t, e) {
3229
3290
  function s() {
3230
3291
  const d = t == null ? void 0 : t.getBoundingClientRect();
3231
3292
  if (!d) return;
3232
- const c = 8, p = 4, v = l.innerHeight - d.bottom - p - c, m = d.top - p - c, x = v < 160 && m > v, b = Math.max(
3293
+ const c = 8, p = 4, v = l.innerHeight - d.bottom - p - c, m = d.top - p - c, I = v < 160 && m > v, b = Math.max(
3233
3294
  72,
3234
- x ? m : v
3295
+ I ? m : v
3235
3296
  ), w = e == null ? void 0 : e.getBoundingClientRect(), M = Math.max(
3236
3297
  d.width,
3237
3298
  (w == null ? void 0 : w.width) ?? d.width
@@ -3241,7 +3302,7 @@ function qo(n, t, e) {
3241
3302
  c,
3242
3303
  l.innerWidth - c - M
3243
3304
  )
3244
- ), R = x ? Math.max(
3305
+ ), R = I ? Math.max(
3245
3306
  c,
3246
3307
  d.top - p - Math.min(
3247
3308
  (w == null ? void 0 : w.height) ?? b,
@@ -3278,22 +3339,22 @@ function $o(n) {
3278
3339
  onSelect: p,
3279
3340
  options: v,
3280
3341
  ownerDocument: m,
3281
- position: x,
3342
+ position: I,
3282
3343
  selectedValue: b,
3283
3344
  state: w,
3284
3345
  triggerReference: M
3285
- } = n, _ = D(null), R = Ge(!0, m), k = Me(
3346
+ } = n, _ = D(null), R = Ke(!0, m), y = Me(
3286
3347
  () => [M, _],
3287
3348
  [M]
3288
3349
  ), C = W(
3289
- (I) => {
3290
- _.current = I, l(I);
3350
+ (x) => {
3351
+ _.current = x, l(x);
3291
3352
  },
3292
3353
  [l]
3293
3354
  );
3294
- return Ke({
3355
+ return Ue({
3295
3356
  active: t,
3296
- boundaries: k,
3357
+ boundaries: y,
3297
3358
  dismissOnEscape: e,
3298
3359
  dismissOnPointerDownOutside: o,
3299
3360
  layerId: R.id,
@@ -3312,36 +3373,36 @@ function $o(n) {
3312
3373
  id: `${r}-listbox`,
3313
3374
  ref: C,
3314
3375
  role: "listbox",
3315
- style: x ? {
3316
- left: x.left,
3317
- maxHeight: x.maxHeight,
3318
- minWidth: x.minWidth,
3319
- top: x.top,
3376
+ style: I ? {
3377
+ left: I.left,
3378
+ maxHeight: I.maxHeight,
3379
+ minWidth: I.minWidth,
3380
+ top: I.top,
3320
3381
  zIndex: R.zIndex
3321
3382
  } : { visibility: "hidden", zIndex: R.zIndex },
3322
- children: v.map((I, N) => /* @__PURE__ */ O(
3383
+ children: v.map((x, N) => /* @__PURE__ */ O(
3323
3384
  "div",
3324
3385
  {
3325
- "aria-disabled": I.disabled || void 0,
3326
- "aria-selected": I.value === b,
3386
+ "aria-disabled": x.disabled || void 0,
3387
+ "aria-selected": x.value === b,
3327
3388
  className: "nk-select__option",
3328
3389
  "data-highlighted": N === i || void 0,
3329
- "data-selected": I.value === b || void 0,
3390
+ "data-selected": x.value === b || void 0,
3330
3391
  id: `${r}-option-${N}`,
3331
3392
  onPointerDown: (T) => {
3332
- T.preventDefault(), I.disabled || p(I);
3393
+ T.preventDefault(), x.disabled || p(x);
3333
3394
  },
3334
3395
  onPointerMove: () => {
3335
- I.disabled || f(N);
3396
+ x.disabled || f(N);
3336
3397
  },
3337
3398
  role: "option",
3338
3399
  children: [
3339
- I.icon ? /* @__PURE__ */ a(me, { type: I.icon }) : null,
3340
- /* @__PURE__ */ a("span", { className: "nk-select__option-label", children: I.label }),
3341
- I.value === b ? /* @__PURE__ */ a(me, { className: "nk-select__check", type: "checkmark" }) : null
3400
+ x.icon ? /* @__PURE__ */ a(me, { type: x.icon }) : null,
3401
+ /* @__PURE__ */ a("span", { className: "nk-select__option-label", children: x.label }),
3402
+ x.value === b ? /* @__PURE__ */ a(me, { className: "nk-select__check", type: "checkmark" }) : null
3342
3403
  ]
3343
3404
  },
3344
- I.value
3405
+ x.value
3345
3406
  ))
3346
3407
  }
3347
3408
  );
@@ -3363,27 +3424,27 @@ function Go(n) {
3363
3424
  name: p,
3364
3425
  onChange: v,
3365
3426
  onClick: m,
3366
- onEscapeKeyDown: x,
3427
+ onEscapeKeyDown: I,
3367
3428
  onKeyDown: b,
3368
3429
  onOpenChange: w,
3369
3430
  onPointerDownOutside: M,
3370
3431
  options: _,
3371
3432
  placeholder: R,
3372
- portalContainer: k,
3433
+ portalContainer: y,
3373
3434
  required: C = !1,
3374
- style: I,
3435
+ style: x,
3375
3436
  value: N,
3376
3437
  width: T,
3377
3438
  ...z
3378
3439
  } = n;
3379
3440
  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(
3441
+ const Z = Le(), H = d ?? Z, E = D(null), U = D(null), S = D(null), k = D(""), [P, A] = $(null), [B, V] = $(!1), [j, te] = $(-1), [ee, X] = $(r), K = N !== void 0, ce = K ? N : ee, pe = _.find(
3442
+ (h) => h.value === ce
3443
+ ), be = c || he(t), Ee = ge(c, t), G = Ye(B), ne = (y == null ? void 0 : y.ownerDocument) ?? ((ye = E.current) == null ? void 0 : ye.ownerDocument) ?? (typeof document > "u" ? null : document), le = qo(
3383
3444
  G.present,
3384
3445
  E.current,
3385
3446
  P
3386
- ), oe = T === void 0 ? I : { ...I, width: T }, Y = s ?? pe, ve = W(
3447
+ ), re = T === void 0 ? x : { ...x, width: T }, Y = s ?? pe, ve = W(
3387
3448
  (h) => {
3388
3449
  jo(
3389
3450
  h,
@@ -3392,26 +3453,26 @@ function Go(n) {
3392
3453
  );
3393
3454
  },
3394
3455
  [f]
3395
- ), re = W((h) => {
3456
+ ), ie = W((h) => {
3396
3457
  B !== h && (V(h), w == null || w(h));
3397
- }, [w, B]), le = W((h = 1) => {
3458
+ }, [w, B]), se = W((h = 1) => {
3398
3459
  const L = _.findIndex(
3399
- (ie) => ie.value === de && !ie.disabled
3460
+ (oe) => oe.value === ce && !oe.disabled
3400
3461
  ), Q = h === 1 ? -1 : _.length;
3401
3462
  te(
3402
- L >= 0 ? L : tn(_, Q, h)
3403
- ), re(!0);
3404
- }, [_, de, re]), be = W((h) => {
3463
+ L >= 0 ? L : on(_, Q, h)
3464
+ ), ie(!0);
3465
+ }, [_, ce, ie]), ke = W((h) => {
3405
3466
  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(() => {
3467
+ h.disabled || (K || X(h.value), ie(!1), (L = E.current) == null || L.focus(), v == null || v(h.value));
3468
+ }, [K, v, ie]), Se = W(() => {
3408
3469
  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());
3470
+ ie(!1), (h = E.current) == null || h.focus();
3471
+ }, [ie]), de = W(() => {
3472
+ ie(!1);
3473
+ }, [ie]);
3474
+ function Re(h) {
3475
+ m == null || m(h), !(h.defaultPrevented || l) && (B ? ie(!1) : se());
3415
3476
  }
3416
3477
  function Te(h) {
3417
3478
  if (b == null || b(h), !(h.defaultPrevented || l)) {
@@ -3419,16 +3480,16 @@ function Go(n) {
3419
3480
  h.preventDefault();
3420
3481
  const L = h.key === "ArrowDown" ? 1 : -1;
3421
3482
  B ? te(
3422
- (Q) => tn(_, Q, L)
3423
- ) : le(L);
3483
+ (Q) => on(_, Q, L)
3484
+ ) : se(L);
3424
3485
  return;
3425
3486
  }
3426
3487
  if (h.key === "Home" || h.key === "End") {
3427
- if (h.preventDefault(), !B) le(h.key === "Home" ? 1 : -1);
3488
+ if (h.preventDefault(), !B) se(h.key === "Home" ? 1 : -1);
3428
3489
  else {
3429
3490
  const L = h.key === "Home" ? 1 : -1, Q = L === 1 ? -1 : _.length;
3430
3491
  te(
3431
- tn(_, Q, L)
3492
+ on(_, Q, L)
3432
3493
  );
3433
3494
  }
3434
3495
  return;
@@ -3436,26 +3497,26 @@ function Go(n) {
3436
3497
  if (h.key === "Enter" || h.key === " ") {
3437
3498
  h.preventDefault();
3438
3499
  const L = _[j];
3439
- B && L ? be(L) : B || le();
3500
+ B && L ? ke(L) : B || se();
3440
3501
  return;
3441
3502
  }
3442
3503
  if (h.key === "Tab") {
3443
- re(!1);
3504
+ ie(!1);
3444
3505
  return;
3445
3506
  }
3446
3507
  if (h.key.length === 1 && !h.altKey && !h.ctrlKey && !h.metaKey) {
3447
3508
  const L = h.currentTarget.ownerDocument.defaultView;
3448
3509
  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(() => {
3451
- y.current = "", S.current = null;
3510
+ const Q = h.key.toLocaleLowerCase(), oe = k.current + Q, ae = Array.from(oe).every((Fe) => Fe === Q);
3511
+ k.current = ae ? Q : oe, S.current !== null && L.clearTimeout(S.current), S.current = L.setTimeout(() => {
3512
+ k.current = "", S.current = null;
3452
3513
  }, 500);
3453
- const ce = Wo(
3514
+ const ue = Wo(
3454
3515
  _,
3455
- y.current,
3516
+ k.current,
3456
3517
  j
3457
3518
  );
3458
- ce >= 0 && (h.preventDefault(), B || re(!0), te(ce));
3519
+ ue >= 0 && (h.preventDefault(), B || ie(!0), te(ue));
3459
3520
  }
3460
3521
  }
3461
3522
  }
@@ -3472,19 +3533,19 @@ function Go(n) {
3472
3533
  const h = (Q = E.current) == null ? void 0 : Q.form;
3473
3534
  if (!h) return;
3474
3535
  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;
3536
+ const oe = U.current, ae = K ? ce : r;
3537
+ if (oe) {
3538
+ const ue = Array.from(oe.options), Fe = ue.find(
3539
+ (we) => we.value === ae
3540
+ ) ?? ue[0];
3541
+ ue.forEach((we) => {
3542
+ we.defaultSelected = we === Fe;
3482
3543
  });
3483
3544
  }
3484
- K || X(r), re(!1);
3545
+ K || X(r), ie(!1);
3485
3546
  }
3486
3547
  return h.addEventListener("reset", L), () => h.removeEventListener("reset", L);
3487
- }, [r, u, K, de, re]), q(() => () => {
3548
+ }, [r, u, K, ce, ie]), q(() => () => {
3488
3549
  var L;
3489
3550
  const h = (L = E.current) == null ? void 0 : L.ownerDocument.defaultView;
3490
3551
  h && S.current !== null && h.clearTimeout(S.current);
@@ -3493,10 +3554,10 @@ function Go(n) {
3493
3554
  {
3494
3555
  className: ["nk-select", e].filter(Boolean).join(" "),
3495
3556
  "data-disabled": l || void 0,
3496
- "data-invalid": we || void 0,
3557
+ "data-invalid": be || void 0,
3497
3558
  "data-mode": "custom",
3498
3559
  "data-open": B || void 0,
3499
- style: oe,
3560
+ style: re,
3500
3561
  children: [
3501
3562
  /* @__PURE__ */ O(
3502
3563
  "button",
@@ -3514,7 +3575,7 @@ function Go(n) {
3514
3575
  disabled: l,
3515
3576
  form: u,
3516
3577
  id: H,
3517
- onClick: ue,
3578
+ onClick: Re,
3518
3579
  onKeyDown: Te,
3519
3580
  role: "combobox",
3520
3581
  type: "button",
@@ -3544,7 +3605,7 @@ function Go(n) {
3544
3605
  },
3545
3606
  required: C,
3546
3607
  tabIndex: -1,
3547
- value: de,
3608
+ value: ce,
3548
3609
  children: [
3549
3610
  /* @__PURE__ */ a("option", { value: "" }),
3550
3611
  _.map((h) => /* @__PURE__ */ a(
@@ -3560,9 +3621,9 @@ function Go(n) {
3560
3621
  }
3561
3622
  ) : null,
3562
3623
  G.present && ne ? /* @__PURE__ */ a(
3563
- $e,
3624
+ Ge,
3564
3625
  {
3565
- container: k,
3626
+ container: y,
3566
3627
  inheritFrom: E.current,
3567
3628
  children: /* @__PURE__ */ a(
3568
3629
  $o,
@@ -3574,15 +3635,15 @@ function Go(n) {
3574
3635
  id: H,
3575
3636
  listboxReference: A,
3576
3637
  onEscapeDismiss: Se,
3577
- onEscapeKeyDown: x,
3638
+ onEscapeKeyDown: I,
3578
3639
  onHighlight: te,
3579
- onOutsideDismiss: Re,
3640
+ onOutsideDismiss: de,
3580
3641
  onPointerDownOutside: M,
3581
- onSelect: be,
3642
+ onSelect: ke,
3582
3643
  options: _,
3583
3644
  ownerDocument: ne,
3584
- position: ae,
3585
- selectedValue: de,
3645
+ position: le,
3646
+ selectedValue: ce,
3586
3647
  state: G.state === "closing" ? "closing" : "open",
3587
3648
  triggerReference: E
3588
3649
  }
@@ -3593,7 +3654,7 @@ function Go(n) {
3593
3654
  }
3594
3655
  );
3595
3656
  }
3596
- const Sr = g(function(t, e) {
3657
+ const Rr = g(function(t, e) {
3597
3658
  const { options: o } = t;
3598
3659
  return o !== void 0 ? /* @__PURE__ */ a(
3599
3660
  Go,
@@ -3608,7 +3669,7 @@ const Sr = g(function(t, e) {
3608
3669
  forwardedReference: e
3609
3670
  }
3610
3671
  );
3611
- }), Rr = g(function(t, e) {
3672
+ }), Tr = g(function(t, e) {
3612
3673
  const {
3613
3674
  "aria-hidden": o = !0,
3614
3675
  className: i,
@@ -3629,7 +3690,7 @@ const Sr = g(function(t, e) {
3629
3690
  style: { ...s, width: u, height: r }
3630
3691
  }
3631
3692
  );
3632
- }), Tr = g(function(t, e) {
3693
+ }), Vr = g(function(t, e) {
3633
3694
  const {
3634
3695
  "aria-invalid": o,
3635
3696
  className: i,
@@ -3661,19 +3722,19 @@ const Sr = g(function(t, e) {
3661
3722
  ]
3662
3723
  }
3663
3724
  );
3664
- }), Ko = 500, Bn = qe(null);
3665
- function Vr(n) {
3725
+ }), Ko = 500, On = qe(null);
3726
+ function Ar(n) {
3666
3727
  const { children: t, delay: e = Ko } = n, o = Me(() => ({
3667
3728
  delay: e
3668
3729
  }), [e]);
3669
- return /* @__PURE__ */ a(Bn.Provider, { value: o, children: t });
3730
+ return /* @__PURE__ */ a(On.Provider, { value: o, children: t });
3670
3731
  }
3671
- const Dn = 500, In = 100;
3732
+ const Bn = 500, yn = 100;
3672
3733
  function Uo(n, t, e, o) {
3673
- t.current = n, He(e, n), He(o, n);
3734
+ t.current = n, De(e, n), De(o, n);
3674
3735
  }
3675
3736
  function Yo(n) {
3676
- return Number.isFinite(n) ? Math.max(0, n) : Dn;
3737
+ return Number.isFinite(n) ? Math.max(0, n) : Bn;
3677
3738
  }
3678
3739
  function Xo(n, t) {
3679
3740
  const e = (n == null ? void 0 : n.split(/\s+/).filter(Boolean)) ?? [];
@@ -3697,22 +3758,22 @@ const Qo = g(function(t, e) {
3697
3758
  throw new Error("Tooltip content must not be empty");
3698
3759
  if (o.type === _e)
3699
3760
  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);
3701
- k.current = f;
3761
+ const I = `${Le()}-tooltip`, b = Ne(On), w = o.props, M = Rn(o), _ = D(null), R = D(null), y = D(f), C = D(!1), x = D(null), N = D(null), T = D(null), z = D(!1), Z = D(!1), H = D(!1), E = D(!1), [U, S] = $(null), [k, P] = $(null), [A, B] = $(!1);
3762
+ y.current = f;
3702
3763
  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(
3764
+ u ?? (b == null ? void 0 : b.delay) ?? Bn
3765
+ ), 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
3766
  j.present,
3706
3767
  c,
3707
3768
  U,
3708
- y
3769
+ k
3709
3770
  ), K = Me(
3710
3771
  () => [_, R],
3711
3772
  []
3712
- ), de = Xo(
3773
+ ), ce = Xo(
3713
3774
  w["aria-describedby"],
3714
- x
3715
- ), pe = A && j.present ? de : w["aria-describedby"], we = W(
3775
+ I
3776
+ ), pe = A && j.present ? ce : w["aria-describedby"], be = W(
3716
3777
  (h) => {
3717
3778
  Uo(
3718
3779
  h,
@@ -3728,141 +3789,141 @@ const Qo = g(function(t, e) {
3728
3789
  },
3729
3790
  []
3730
3791
  ), G = W(() => {
3731
- const h = I.current;
3732
- h && h.ownerWindow.clearTimeout(h.timerId), I.current = null;
3792
+ const h = x.current;
3793
+ h && h.ownerWindow.clearTimeout(h.timerId), x.current = null;
3733
3794
  }, []), ne = W(() => {
3734
3795
  const h = N.current;
3735
3796
  h && h.ownerWindow.clearTimeout(h.timerId), N.current = null;
3736
- }, []), ae = W(() => {
3797
+ }, []), le = W(() => {
3737
3798
  const h = T.current;
3738
3799
  h && h.ownerWindow.clearTimeout(h.timerId), T.current = null;
3739
- }, []), oe = W((h) => {
3800
+ }, []), re = W((h) => {
3740
3801
  C.current !== h && (h || (E.current = !1), C.current = h, B(h), d == null || d(h));
3741
3802
  }, [d]), Y = W((h) => {
3742
- var ie, se;
3803
+ var oe, ae;
3743
3804
  if (ne(), Z.current || H.current || E.current)
3744
3805
  return;
3745
3806
  if (h === 0) {
3746
- oe(!1);
3807
+ re(!1);
3747
3808
  return;
3748
3809
  }
3749
- const L = ((ie = _.current) == null ? void 0 : ie.ownerDocument.defaultView) ?? ((se = R.current) == null ? void 0 : se.ownerDocument.defaultView);
3810
+ const L = ((oe = _.current) == null ? void 0 : oe.ownerDocument.defaultView) ?? ((ae = R.current) == null ? void 0 : ae.ownerDocument.defaultView);
3750
3811
  if (!L) {
3751
- oe(!1);
3812
+ re(!1);
3752
3813
  return;
3753
3814
  }
3754
3815
  const Q = L.setTimeout(() => {
3755
- N.current = null, !Z.current && !H.current && !E.current && oe(!1);
3816
+ N.current = null, !Z.current && !H.current && !E.current && re(!1);
3756
3817
  }, h);
3757
3818
  N.current = {
3758
3819
  ownerWindow: L,
3759
3820
  timerId: Q
3760
3821
  };
3761
- }, [ne, oe]), ve = W(() => {
3822
+ }, [ne, re]), ve = W(() => {
3762
3823
  var Q;
3763
3824
  if (G(), ne(), V === 0) {
3764
- oe(!0);
3825
+ re(!0);
3765
3826
  return;
3766
3827
  }
3767
3828
  const h = (Q = _.current) == null ? void 0 : Q.ownerDocument.defaultView;
3768
3829
  if (!h) return;
3769
3830
  const L = h.setTimeout(() => {
3770
- I.current = null, k.current || oe(!0);
3831
+ x.current = null, y.current || re(!0);
3771
3832
  }, V);
3772
- I.current = { ownerWindow: h, timerId: L };
3773
- }, [ne, G, V, oe]);
3774
- function re(h) {
3833
+ x.current = { ownerWindow: h, timerId: L };
3834
+ }, [ne, G, V, re]);
3835
+ function ie(h) {
3775
3836
  var L;
3776
- if ((L = w.onFocus) == null || L.call(w, h), Z.current = !0, ne(), z.current || uo(h.currentTarget)) {
3837
+ if ((L = w.onFocus) == null || L.call(w, h), Z.current = !0, ne(), z.current || co(h.currentTarget)) {
3777
3838
  G();
3778
3839
  return;
3779
3840
  }
3780
- G(), oe(!0);
3841
+ G(), re(!0);
3781
3842
  }
3782
- function le(h) {
3843
+ function se(h) {
3783
3844
  var L;
3784
3845
  (L = w.onBlur) == null || L.call(w, h), !h.currentTarget.contains(h.relatedTarget) && (Z.current = !1, G(), Y(0));
3785
3846
  }
3786
- function be(h) {
3847
+ function ke(h) {
3787
3848
  var L;
3788
3849
  (L = w.onMouseEnter) == null || L.call(w, h), H.current = !0, ve();
3789
3850
  }
3790
3851
  function Se(h) {
3791
3852
  var L;
3792
- (L = w.onMouseLeave) == null || L.call(w, h), H.current = !1, G(), Y(In);
3853
+ (L = w.onMouseLeave) == null || L.call(w, h), H.current = !1, G(), Y(yn);
3793
3854
  }
3794
- function Re() {
3855
+ function de() {
3795
3856
  E.current = !0, ne();
3796
3857
  }
3797
- function ue() {
3798
- E.current = !1, Y(In);
3858
+ function Re() {
3859
+ E.current = !1, Y(yn);
3799
3860
  }
3800
3861
  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;
3862
+ var oe, ae;
3863
+ (oe = w.onPointerDown) == null || oe.call(w, h), G(), ne(), re(!1);
3864
+ const L = (ae = _.current) == null ? void 0 : ae.ownerDocument.defaultView;
3804
3865
  if (!L) return;
3805
- z.current = !0, ae();
3866
+ z.current = !0, le();
3806
3867
  const Q = L.setTimeout(() => {
3807
3868
  z.current = !1, T.current = null;
3808
3869
  }, 0);
3809
3870
  T.current = { ownerWindow: L, timerId: Q };
3810
3871
  }
3811
- if (Ke({
3872
+ if (Ue({
3812
3873
  active: A,
3813
3874
  boundaries: K,
3814
3875
  dismissOnPointerDownOutside: !0,
3815
3876
  layerId: ee.id,
3816
- onEscapeDismiss: () => oe(!1),
3817
- onPointerDownOutsideDismiss: () => oe(!1),
3877
+ onEscapeDismiss: () => re(!1),
3878
+ onPointerDownOutsideDismiss: () => re(!1),
3818
3879
  ownerDocument: te
3819
3880
  }), q(() => {
3820
- f && (G(), ne(), ae(), z.current = !1, Z.current = !1, H.current = !1, E.current = !1, C.current && oe(!1));
3881
+ f && (G(), ne(), le(), z.current = !1, Z.current = !1, H.current = !1, E.current = !1, C.current && re(!1));
3821
3882
  }, [
3822
3883
  ne,
3823
3884
  G,
3824
- ae,
3885
+ le,
3825
3886
  f,
3826
- oe
3887
+ re
3827
3888
  ]), q(() => () => {
3828
- G(), ne(), ae();
3829
- }, [ne, G, ae]), f)
3889
+ G(), ne(), le();
3890
+ }, [ne, G, le]), f)
3830
3891
  return Pe(
3831
3892
  o,
3832
- { ref: we }
3893
+ { ref: be }
3833
3894
  );
3834
3895
  const ye = Pe(
3835
3896
  o,
3836
3897
  {
3837
3898
  "aria-describedby": pe,
3838
3899
  className: [w.className, "nk-tooltip__trigger", i].filter(Boolean).join(" "),
3839
- onBlur: le,
3840
- onFocus: re,
3841
- onMouseEnter: be,
3900
+ onBlur: se,
3901
+ onFocus: ie,
3902
+ onMouseEnter: ke,
3842
3903
  onMouseLeave: Se,
3843
3904
  onPointerDown: Te,
3844
- ref: we,
3905
+ ref: be,
3845
3906
  style: { ...w.style, ...v }
3846
3907
  }
3847
3908
  );
3848
3909
  return /* @__PURE__ */ O(je, { children: [
3849
3910
  ye,
3850
3911
  j.present && te ? /* @__PURE__ */ a(
3851
- $e,
3912
+ Ge,
3852
3913
  {
3853
3914
  container: p,
3854
3915
  inheritFrom: U,
3855
3916
  children: /* @__PURE__ */ O(
3856
- Fe,
3917
+ He,
3857
3918
  {
3858
3919
  ref: Ee,
3859
3920
  "aria-hidden": A ? void 0 : !0,
3860
3921
  className: ["nk-tooltip", l].filter(Boolean).join(" "),
3861
3922
  "data-placement": (X == null ? void 0 : X.placement) ?? c,
3862
3923
  "data-state": j.state === "closing" ? "closing" : "open",
3863
- id: x,
3864
- onMouseEnter: Re,
3865
- onMouseLeave: ue,
3924
+ id: I,
3925
+ onMouseEnter: de,
3926
+ onMouseLeave: Re,
3866
3927
  role: "tooltip",
3867
3928
  style: X ? {
3868
3929
  ...s,
@@ -3940,10 +4001,10 @@ function or(n) {
3940
4001
  if (typeof n == "number" || typeof n == "string")
3941
4002
  return String(n);
3942
4003
  }
3943
- function Hn(n) {
3944
- for (const t of an.toArray(n)) {
4004
+ function Dn(n) {
4005
+ for (const t of ln.toArray(n)) {
3945
4006
  if (Ze(t) && t.type === _e) {
3946
- if (Hn(t.props.children)) return !0;
4007
+ if (Dn(t.props.children)) return !0;
3947
4008
  continue;
3948
4009
  }
3949
4010
  return !0;
@@ -3953,13 +4014,13 @@ function Hn(n) {
3953
4014
  function rr(n, t) {
3954
4015
  let e = !1;
3955
4016
  function o(r) {
3956
- return an.map(r, (l) => Ze(l) ? l.type === _e ? Pe(
4017
+ return ln.map(r, (l) => Ze(l) ? l.type === _e ? Pe(
3957
4018
  l,
3958
4019
  void 0,
3959
4020
  o(
3960
4021
  l.props.children
3961
4022
  )
3962
- ) : !e && l.type === Wn ? (e = !0, Pe(
4023
+ ) : !e && l.type === Fn ? (e = !0, Pe(
3963
4024
  l,
3964
4025
  { rowTrigger: t }
3965
4026
  )) : l : l);
@@ -3988,7 +4049,7 @@ const ir = g(
3988
4049
  emptyColumnCount: r = 1,
3989
4050
  emptyMessage: l,
3990
4051
  ...s
3991
- } = t, u = !Hn(o), f = Number.isFinite(r) ? Math.max(1, Math.floor(r)) : 1;
4052
+ } = t, u = !Dn(o), f = Number.isFinite(r) ? Math.max(1, Math.floor(r)) : 1;
3992
4053
  return /* @__PURE__ */ a(
3993
4054
  "tbody",
3994
4055
  {
@@ -4033,9 +4094,9 @@ const ir = g(
4033
4094
  rel: c,
4034
4095
  target: p,
4035
4096
  ...v
4036
- } = t, m = D(null), x = l !== void 0 || f !== void 0, b = (u == null ? void 0 : u.trim()) || (l !== void 0 ? "Open row" : "Activate row");
4037
- function w(k) {
4038
- m.current = k;
4097
+ } = t, m = D(null), I = l !== void 0 || f !== void 0, b = (u == null ? void 0 : u.trim()) || (l !== void 0 ? "Open row" : "Activate row");
4098
+ function w(y) {
4099
+ m.current = y;
4039
4100
  }
4040
4101
  const M = l !== void 0 ? {
4041
4102
  kind: "link",
@@ -4055,28 +4116,28 @@ const ir = g(
4055
4116
  onClick: f,
4056
4117
  reference: w
4057
4118
  } : void 0, _ = M ? rr(o, M) : { content: o };
4058
- function R(k) {
4059
- if (k.defaultPrevented) return;
4060
- const C = k.target;
4061
- if (!(C instanceof Element) || nr(C, k.currentTarget)) return;
4062
- const I = m.current;
4063
- if (!I) return;
4064
- const N = I.ownerDocument.defaultView;
4119
+ function R(y) {
4120
+ if (y.defaultPrevented) return;
4121
+ const C = y.target;
4122
+ if (!(C instanceof Element) || nr(C, y.currentTarget)) return;
4123
+ const x = m.current;
4124
+ if (!x) return;
4125
+ const N = x.ownerDocument.defaultView;
4065
4126
  if (!N) {
4066
- I.click();
4127
+ x.click();
4067
4128
  return;
4068
4129
  }
4069
- I.dispatchEvent(new N.MouseEvent("click", {
4070
- altKey: k.altKey,
4130
+ x.dispatchEvent(new N.MouseEvent("click", {
4131
+ altKey: y.altKey,
4071
4132
  bubbles: !0,
4072
- button: k.button,
4073
- buttons: k.buttons,
4133
+ button: y.button,
4134
+ buttons: y.buttons,
4074
4135
  cancelable: !0,
4075
- clientX: k.clientX,
4076
- clientY: k.clientY,
4077
- ctrlKey: k.ctrlKey,
4078
- metaKey: k.metaKey,
4079
- shiftKey: k.shiftKey
4136
+ clientX: y.clientX,
4137
+ clientY: y.clientY,
4138
+ ctrlKey: y.ctrlKey,
4139
+ metaKey: y.metaKey,
4140
+ shiftKey: y.shiftKey
4080
4141
  }));
4081
4142
  }
4082
4143
  return /* @__PURE__ */ a(
@@ -4085,13 +4146,13 @@ const ir = g(
4085
4146
  ...v,
4086
4147
  ref: e,
4087
4148
  className: ["nk-table__row", i].filter(Boolean).join(" "),
4088
- "data-interactive": x || void 0,
4089
- onClick: x ? R : void 0,
4149
+ "data-interactive": I || void 0,
4150
+ onClick: I ? R : void 0,
4090
4151
  children: _.content
4091
4152
  }
4092
4153
  );
4093
4154
  }
4094
- ), Fn = g(function(t, e) {
4155
+ ), Hn = g(function(t, e) {
4095
4156
  const {
4096
4157
  align: o = "left",
4097
4158
  children: i,
@@ -4115,7 +4176,7 @@ const ir = g(
4115
4176
  }), cr = g(function(t, e) {
4116
4177
  const { children: o, className: i, ...r } = t;
4117
4178
  return /* @__PURE__ */ a(
4118
- Fn,
4179
+ Hn,
4119
4180
  {
4120
4181
  ...r,
4121
4182
  ref: e,
@@ -4124,7 +4185,7 @@ const ir = g(
4124
4185
  children: o ?? /* @__PURE__ */ a("span", { className: "nk-table__visually-hidden", children: "Row actions" })
4125
4186
  }
4126
4187
  );
4127
- }), Wn = g(
4188
+ }), Fn = g(
4128
4189
  function(t, e) {
4129
4190
  const {
4130
4191
  align: o = "left",
@@ -4135,7 +4196,7 @@ const ir = g(
4135
4196
  truncate: u,
4136
4197
  value: f,
4137
4198
  ...d
4138
- } = t, { rowTrigger: c, ...p } = d, v = tr(f, i, l), m = u === void 0 ? void 0 : { maxWidth: u }, x = s ?? (u === void 0 ? void 0 : or(v));
4199
+ } = t, { rowTrigger: c, ...p } = d, v = tr(f, i, l), m = u === void 0 ? void 0 : { maxWidth: u }, I = s ?? (u === void 0 ? void 0 : or(v));
4139
4200
  return /* @__PURE__ */ O(
4140
4201
  "td",
4141
4202
  {
@@ -4143,7 +4204,7 @@ const ir = g(
4143
4204
  ref: e,
4144
4205
  className: ["nk-table__cell", r].filter(Boolean).join(" "),
4145
4206
  "data-align": o,
4146
- title: x,
4207
+ title: I,
4147
4208
  children: [
4148
4209
  (c == null ? void 0 : c.kind) === "link" && c.linkProperties ? /* @__PURE__ */ a(
4149
4210
  "a",
@@ -4220,26 +4281,26 @@ const ir = g(
4220
4281
  containerClassName: l,
4221
4282
  scrollContainerLabel: s,
4222
4283
  ...u
4223
- } = t, f = D(null), d = D(null), [c, p] = $(!1), [v, m] = $(!1), x = s ?? (o ? `${o} scroll area` : "Scrollable table"), b = W(
4284
+ } = t, f = D(null), d = D(null), [c, p] = $(!1), [v, m] = $(!1), I = s ?? (o ? `${o} scroll area` : "Scrollable table"), b = W(
4224
4285
  (M) => {
4225
- d.current = M, He(e, M);
4286
+ d.current = M, De(e, M);
4226
4287
  },
4227
4288
  [e]
4228
4289
  );
4229
4290
  q(() => {
4230
4291
  const M = f.current, _ = d.current;
4231
4292
  if (!M || !_) return;
4232
- const R = M, k = _;
4293
+ const R = M, y = _;
4233
4294
  function C() {
4234
4295
  const z = R.scrollWidth > R.clientWidth;
4235
4296
  p(z), z || m(!1);
4236
4297
  }
4237
4298
  C();
4238
- const I = R.ownerDocument.defaultView;
4239
- I == null || I.addEventListener("resize", C);
4240
- const N = I == null ? void 0 : I.ResizeObserver, T = N ? new N(C) : void 0;
4241
- return T == null || T.observe(R), T == null || T.observe(k), () => {
4242
- I == null || I.removeEventListener("resize", C), T == null || T.disconnect();
4299
+ const x = R.ownerDocument.defaultView;
4300
+ x == null || x.addEventListener("resize", C);
4301
+ const N = x == null ? void 0 : x.ResizeObserver, T = N ? new N(C) : void 0;
4302
+ return T == null || T.observe(R), T == null || T.observe(y), () => {
4303
+ x == null || x.removeEventListener("resize", C), T == null || T.disconnect();
4243
4304
  };
4244
4305
  }, []);
4245
4306
  function w(M) {
@@ -4249,7 +4310,7 @@ const ir = g(
4249
4310
  "div",
4250
4311
  {
4251
4312
  ref: f,
4252
- "aria-label": c ? x : void 0,
4313
+ "aria-label": c ? I : void 0,
4253
4314
  className: ["nk-table__container", l].filter(Boolean).join(" "),
4254
4315
  "data-scrolled": v || void 0,
4255
4316
  onScroll: w,
@@ -4267,21 +4328,21 @@ const ir = g(
4267
4328
  )
4268
4329
  }
4269
4330
  );
4270
- }), Ar = Object.assign(fr, {
4331
+ }), Or = Object.assign(fr, {
4271
4332
  Action: dr,
4272
4333
  ActionCell: ur,
4273
4334
  ActionHeaderCell: cr,
4274
4335
  Body: ar,
4275
- Cell: Wn,
4336
+ Cell: Fn,
4276
4337
  Foot: lr,
4277
- HeaderCell: Fn,
4338
+ HeaderCell: Hn,
4278
4339
  Head: ir,
4279
4340
  Row: sr
4280
4341
  });
4281
4342
  function xn(n) {
4282
4343
  return Number.isFinite(n) ? Math.max(1, Math.floor(n)) : 1;
4283
4344
  }
4284
- const Or = g(
4345
+ const Br = g(
4285
4346
  function(t, e) {
4286
4347
  const {
4287
4348
  "aria-invalid": o,
@@ -4294,9 +4355,9 @@ const Or = g(
4294
4355
  rows: d,
4295
4356
  style: c,
4296
4357
  ...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 = {
4358
+ } = t, v = xn(d ?? s ?? 3), I = `calc(${xn(s ?? d ?? 3) * 1.25}em + var(--nk-text-area-padding) * 2 + var(--nk-text-area-border-width) * 2)`, b = {
4298
4359
  ...c,
4299
- "--nk-text-area-min-height": x
4360
+ "--nk-text-area-min-height": I
4300
4361
  };
4301
4362
  return /* @__PURE__ */ a(
4302
4363
  "textarea",
@@ -4316,34 +4377,35 @@ const Or = g(
4316
4377
  }
4317
4378
  );
4318
4379
  export {
4319
- br as Alert,
4380
+ kr as Alert,
4320
4381
  yr as Avatar,
4321
- kr as Badge,
4382
+ xr as Badge,
4322
4383
  ze as Button,
4323
4384
  Ir as Card,
4324
- zt as Checkbox,
4325
- $t as CheckboxGroup,
4326
- xr as Content,
4327
- Cr as Divider,
4328
- Pr as Field,
4385
+ Wt as Checkbox,
4386
+ qt as CheckboxGroup,
4387
+ Cr as Content,
4388
+ Pr as Divider,
4389
+ _r as Field,
4329
4390
  me as Icon,
4330
- _r as Input,
4331
- Nr as Modal,
4332
- Mr as PinInput,
4333
- Lr as Popover,
4334
- Er as Radio,
4391
+ Nr as Input,
4392
+ Lr as Modal,
4393
+ Er as PinInput,
4394
+ Mr as Popover,
4395
+ Sr as Radio,
4335
4396
  Fo as RadioGroup,
4336
- Sr as Select,
4337
- Rr as Skeleton,
4338
- _n as Spinner,
4339
- Tr as Switch,
4340
- Ar as Table,
4397
+ Rr as Select,
4398
+ Tr as Skeleton,
4399
+ Pn as Spinner,
4400
+ Vr as Switch,
4401
+ Or as Table,
4341
4402
  fe as Text,
4342
- Or as TextArea,
4403
+ Br as TextArea,
4343
4404
  Qo as Tooltip,
4344
- Vr as TooltipProvider,
4405
+ Ar as TooltipProvider,
4345
4406
  Ce as breakpoint,
4346
- mr as cell,
4347
- wr as px,
4348
- gr as space
4407
+ gr as cell,
4408
+ br as px,
4409
+ wr as space,
4410
+ mr as tokens
4349
4411
  };