@kingsimba/nc-ui 0.1.14 → 0.1.16

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
@@ -2,7 +2,7 @@ var Je = Object.defineProperty;
2
2
  var Qe = (e, t, n) => t in e ? Je(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var _ = (e, t, n) => Qe(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { jsx as s, jsxs as y } from "react/jsx-runtime";
5
- import xe, { useState as T, useRef as H, useMemo as ge, useEffect as L, createContext as se, useContext as X, Children as Ze, isValidElement as et, forwardRef as tt, useImperativeHandle as nt, useCallback as W, Suspense as rt } from "react";
5
+ import xe, { useState as T, useRef as W, useMemo as ge, useEffect as B, createContext as se, useContext as X, Children as Ze, isValidElement as et, forwardRef as tt, useImperativeHandle as nt, useCallback as O, Suspense as rt } from "react";
6
6
  import { createPortal as pe } from "react-dom";
7
7
  import { useTranslation as J } from "react-i18next";
8
8
  import { d as Le, E as ot, R as st, T as it, g as ct, V as at, b as lt, a as dt, c as ut } from "./GeneratedIcons-HFZmBTBT.js";
@@ -37,8 +37,8 @@ function Be({
37
37
  );
38
38
  return n ? /* @__PURE__ */ s("div", { className: "nc-activity-indicator-overlay", children: o }) : o;
39
39
  }
40
- function Y({ variant: e = "default", block: t, size: n = "default", className: r, disabled: o, textSelectable: i, loading: l, onClick: a, children: d, ...f }) {
41
- const u = [
40
+ function Y({ variant: e = "default", block: t, size: n = "default", className: r, disabled: o, textSelectable: i, loading: l, onClick: a, children: d, ...p }) {
41
+ const f = [
42
42
  "nc-button",
43
43
  e !== "default" ? `nc-${e}` : "",
44
44
  t ? "nc-block" : "",
@@ -52,19 +52,19 @@ function Y({ variant: e = "default", block: t, size: n = "default", className: r
52
52
  return /* @__PURE__ */ y(
53
53
  "button",
54
54
  {
55
- className: u,
55
+ className: f,
56
56
  disabled: o || l,
57
57
  onClick: (c) => {
58
58
  if (!l) {
59
59
  if (i) {
60
- const p = window.getSelection();
61
- if (p && p.toString().length > 0)
60
+ const u = window.getSelection();
61
+ if (u && u.toString().length > 0)
62
62
  return;
63
63
  }
64
64
  a == null || a(c);
65
65
  }
66
66
  },
67
- ...f,
67
+ ...p,
68
68
  children: [
69
69
  l && /* @__PURE__ */ s(
70
70
  Be,
@@ -105,33 +105,33 @@ function In({
105
105
  const o = Math.max(0, Math.min(1, Number(e) || 0));
106
106
  let i;
107
107
  r ? o < 0.1 ? i = "var(--nc-danger)" : o < 0.2 ? i = "var(--nc-warning)" : i = "var(--nc-success)" : i = n ? "#ffffff" : "#000000";
108
- const l = n ? "rgba(255, 255, 255, 0.5)" : "rgba(0, 0, 0, 0.2)", a = 24, d = 14, f = 2, u = 0, w = 12, c = 0, p = 0, b = 0, g = a, v = d, N = v - c * 2, h = g - c * 2, k = Math.max(1, Math.min(4, v / 4)), m = o === 0 ? 0 : 0.05 + o * 0.95, A = a + f + w, E = 20, M = 0.65, z = Math.max(d, E * M), x = a + f + 1, C = (d - E * M) / 2;
108
+ const l = n ? "rgba(255, 255, 255, 0.5)" : "rgba(0, 0, 0, 0.2)", a = 24, d = 14, p = 2, f = 0, g = 12, c = 0, u = 0, w = 0, m = a, v = d, N = v - c * 2, h = m - c * 2, k = Math.max(1, Math.min(4, v / 4)), b = o === 0 ? 0 : 0.05 + o * 0.95, S = a + p + g, R = 20, I = 0.65, z = Math.max(d, R * I), x = a + p + 1, E = (d - R * I) / 2;
109
109
  return /* @__PURE__ */ y(
110
110
  "svg",
111
111
  {
112
112
  className: "nc-battery",
113
- width: A,
113
+ width: S,
114
114
  height: z,
115
- viewBox: `0 0 ${A} ${z}`,
115
+ viewBox: `0 0 ${S} ${z}`,
116
116
  role: "img",
117
117
  "aria-label": `Battery ${o === 0 ? "-" : Math.round(o * 100) + "%"} ${t}`,
118
118
  children: [
119
119
  /* @__PURE__ */ y("defs", { children: [
120
- /* @__PURE__ */ s("mask", { id: `nc-battery-fill-mask-${o}`, children: /* @__PURE__ */ s("rect", { x: "0", y: "0", width: h * m, height: N, fill: "white" }) }),
120
+ /* @__PURE__ */ s("mask", { id: `nc-battery-fill-mask-${o}`, children: /* @__PURE__ */ s("rect", { x: "0", y: "0", width: h * b, height: N, fill: "white" }) }),
121
121
  /* @__PURE__ */ y("mask", { id: `nc-battery-text-mask-${o}`, children: [
122
- /* @__PURE__ */ s("rect", { x: "0", y: "0", width: A, height: z, fill: "white" }),
123
- /* @__PURE__ */ s("text", { x: p + g / 2, y: d - 3, fontSize: 11, fontWeight: "bold", fill: "black", textAnchor: "middle", children: o === 0 ? "-" : Math.round(o * 100) })
122
+ /* @__PURE__ */ s("rect", { x: "0", y: "0", width: S, height: z, fill: "white" }),
123
+ /* @__PURE__ */ s("text", { x: u + m / 2, y: d - 3, fontSize: 11, fontWeight: "bold", fill: "black", textAnchor: "middle", children: o === 0 ? "-" : Math.round(o * 100) })
124
124
  ] })
125
125
  ] }),
126
126
  /* @__PURE__ */ y("g", { mask: `url(#nc-battery-text-mask-${o})`, children: [
127
127
  /* @__PURE__ */ s(
128
128
  "rect",
129
129
  {
130
- x: p,
131
- y: b,
130
+ x: u,
131
+ y: w,
132
132
  rx: k,
133
133
  ry: k,
134
- width: g,
134
+ width: m,
135
135
  height: v,
136
136
  fill: l
137
137
  }
@@ -139,8 +139,8 @@ function In({
139
139
  /* @__PURE__ */ s(
140
140
  "rect",
141
141
  {
142
- x: p + c,
143
- y: b + c,
142
+ x: u + c,
143
+ y: w + c,
144
144
  width: h,
145
145
  height: N,
146
146
  fill: i,
@@ -152,16 +152,16 @@ function In({
152
152
  /* @__PURE__ */ s(
153
153
  "rect",
154
154
  {
155
- x: a + u,
155
+ x: a + f,
156
156
  y: d * 0.26,
157
- width: f,
157
+ width: p,
158
158
  height: d * 0.48,
159
159
  rx: 0.8,
160
160
  ry: 0.8,
161
161
  fill: o === 1 ? i : l
162
162
  }
163
163
  ),
164
- t === "charging" ? /* @__PURE__ */ s("g", { transform: `translate(${x}, ${C}) scale(${M})`, fill: i, children: /* @__PURE__ */ s("path", { d: "M10 0 L2 11 H8 L5 20 L14 8 H8 L10 0 Z" }) }) : null
164
+ t === "charging" ? /* @__PURE__ */ s("g", { transform: `translate(${x}, ${E}) scale(${I})`, fill: i, children: /* @__PURE__ */ s("path", { d: "M10 0 L2 11 H8 L5 20 L14 8 H8 L10 0 Z" }) }) : null
165
165
  ] })
166
166
  ]
167
167
  }
@@ -205,8 +205,8 @@ function $n({ checked: e, onChange: t, disabled: n, label: r, size: o = "default
205
205
  {
206
206
  className: `nc-checkbox-label ${d ? "nc-small" : ""} ${n ? "nc-disabled" : ""} ${a}`.trim(),
207
207
  style: l,
208
- onClick: (f) => {
209
- n || (f.preventDefault(), t(!e));
208
+ onClick: (p) => {
209
+ n || (p.preventDefault(), t(!e));
210
210
  },
211
211
  children: [
212
212
  /* @__PURE__ */ s(
@@ -216,8 +216,8 @@ function $n({ checked: e, onChange: t, disabled: n, label: r, size: o = "default
216
216
  "aria-checked": e,
217
217
  tabIndex: 0,
218
218
  className: `nc-checkbox-box ${d ? "nc-small" : ""} ${e ? "nc-checked" : ""}`,
219
- onKeyDown: (f) => {
220
- n || (f.key === "Enter" || f.key === " ") && (f.preventDefault(), t(!e));
219
+ onKeyDown: (p) => {
220
+ n || (p.key === "Enter" || p.key === " ") && (p.preventDefault(), t(!e));
221
221
  },
222
222
  children: e && /* @__PURE__ */ s(ht, { size: o })
223
223
  }
@@ -228,8 +228,8 @@ function $n({ checked: e, onChange: t, disabled: n, label: r, size: o = "default
228
228
  );
229
229
  }
230
230
  function mt({ option: e, onChange: t, selected: n, highlighted: r, small: o }) {
231
- const i = H(null), { t: l } = J();
232
- return L(() => {
231
+ const i = W(null), { t: l } = J();
232
+ return B(() => {
233
233
  r && i.current && i.current.scrollIntoView({ block: "nearest" });
234
234
  }, [r]), /* @__PURE__ */ y(
235
235
  "div",
@@ -264,40 +264,40 @@ function gt({
264
264
  small: l,
265
265
  highlightedIndex: a = -1
266
266
  }) {
267
- const [d, f] = T({ top: 0, left: 0, width: 0 }), [u, w] = T(o), { t: c } = J();
268
- if (L(() => {
267
+ const [d, p] = T({ top: 0, left: 0, width: 0 }), [f, g] = T(o), { t: c } = J();
268
+ if (B(() => {
269
269
  if (e && i.current) {
270
- const b = i.current.getBoundingClientRect();
271
- let g = o;
270
+ const w = i.current.getBoundingClientRect();
271
+ let m = o;
272
272
  if (o === "bottom") {
273
- const v = window.innerHeight - b.bottom, N = b.top;
274
- v < 320 && N > v && (g = "top");
273
+ const v = window.innerHeight - w.bottom, N = w.top;
274
+ v < 320 && N > v && (m = "top");
275
275
  }
276
- w(g), f({
277
- top: g === "top" ? b.top - 4 : b.bottom + 4,
278
- left: b.left,
279
- width: b.width
276
+ g(m), p({
277
+ top: m === "top" ? w.top - 4 : w.bottom + 4,
278
+ left: w.left,
279
+ width: w.width
280
280
  });
281
281
  }
282
282
  }, [e, i, o]), !e) return null;
283
- const p = /* @__PURE__ */ s(
283
+ const u = /* @__PURE__ */ s(
284
284
  "div",
285
285
  {
286
286
  className: "nc-combo-dropdown",
287
287
  style: {
288
288
  position: "fixed",
289
- top: u === "top" ? void 0 : d.top,
290
- bottom: u === "top" ? window.innerHeight - d.top : void 0,
289
+ top: f === "top" ? void 0 : d.top,
290
+ bottom: f === "top" ? window.innerHeight - d.top : void 0,
291
291
  left: d.left,
292
292
  width: d.width,
293
293
  zIndex: 1e3,
294
294
  maxHeight: 300,
295
295
  overflowY: "auto"
296
296
  },
297
- children: t.length === 0 ? /* @__PURE__ */ s("div", { className: `nc-combo-dropdown-option nc-no-results ${l ? "nc-small" : ""}`, children: c("common.noResults") }) : t.map((b, g) => /* @__PURE__ */ s(mt, { option: b, onChange: n, selected: b.value === r, highlighted: g === a, small: l }, b.value))
297
+ children: t.length === 0 ? /* @__PURE__ */ s("div", { className: `nc-combo-dropdown-option nc-no-results ${l ? "nc-small" : ""}`, children: c("common.noResults") }) : t.map((w, m) => /* @__PURE__ */ s(mt, { option: w, onChange: n, selected: w.value === r, highlighted: m === a, small: l }, w.value))
298
298
  }
299
299
  );
300
- return pe(p, document.body);
300
+ return pe(u, document.body);
301
301
  }
302
302
  function bt({ onClick: e, small: t }) {
303
303
  return /* @__PURE__ */ s(
@@ -333,70 +333,70 @@ function Rn({
333
333
  clearable: l = !0,
334
334
  allowTyping: a = !1,
335
335
  placement: d = "bottom",
336
- size: f = "default",
337
- style: u,
338
- className: w
336
+ size: p = "default",
337
+ style: f,
338
+ className: g
339
339
  }) {
340
- const [c, p] = T(!1), [b, g] = T(""), [v, N] = T(-1), h = H(null), k = H(null), m = f === "small", { t: A } = J(), E = ge(() => {
341
- const R = b.toLowerCase();
342
- return a ? r.filter((P) => P.label.toLowerCase().includes(R)) : r;
343
- }, [r, b, a]);
344
- L(() => {
340
+ const [c, u] = T(!1), [w, m] = T(""), [v, N] = T(-1), h = W(null), k = W(null), b = p === "small", { t: S } = J(), R = ge(() => {
341
+ const $ = w.toLowerCase();
342
+ return a ? r.filter((P) => P.label.toLowerCase().includes($)) : r;
343
+ }, [r, w, a]);
344
+ B(() => {
345
345
  c && N(-1);
346
- }, [c, E]), L(() => {
346
+ }, [c, R]), B(() => {
347
347
  if (!l && !e && r.length > 0 && t) {
348
- const R = r.find((P) => P.default) || r[0];
349
- t(R.value);
348
+ const $ = r.find((P) => P.default) || r[0];
349
+ t($.value);
350
350
  }
351
- }, [l, e, r, t]), L(() => {
352
- function R(P) {
353
- var D;
354
- P.target instanceof Node && h.current && ((D = h.current.parentElement) != null && D.contains(P.target) || p(!1));
351
+ }, [l, e, r, t]), B(() => {
352
+ function $(P) {
353
+ var H;
354
+ P.target instanceof Node && h.current && ((H = h.current.parentElement) != null && H.contains(P.target) || u(!1));
355
355
  }
356
- return document.addEventListener("mousedown", R), () => document.removeEventListener("mousedown", R);
356
+ return document.addEventListener("mousedown", $), () => document.removeEventListener("mousedown", $);
357
357
  }, []);
358
- const M = r.find((R) => R.value === e), z = M && l, x = !o && !z, C = !(c && a) && !!M, I = (R, P = !1) => {
359
- var D;
360
- t == null || t(R), p(!1), g(""), P && ((D = h.current) == null || D.blur());
361
- }, S = () => {
362
- t == null || t(void 0), g(""), p(!1);
363
- }, O = (R) => {
358
+ const I = r.find(($) => $.value === e), z = I && l, x = !o && !z, E = !(c && a) && !!I, A = ($, P = !1) => {
359
+ var H;
360
+ t == null || t($), u(!1), m(""), P && ((H = h.current) == null || H.blur());
361
+ }, C = () => {
362
+ t == null || t(void 0), m(""), u(!1);
363
+ }, L = ($) => {
364
364
  if (!c) {
365
- (R.key === "ArrowDown" || R.key === "ArrowUp") && (p(!0), R.preventDefault());
365
+ ($.key === "ArrowDown" || $.key === "ArrowUp") && (u(!0), $.preventDefault());
366
366
  return;
367
367
  }
368
- switch (R.key) {
368
+ switch ($.key) {
369
369
  case "ArrowDown":
370
- R.preventDefault(), N((P) => {
371
- const D = P + 1;
372
- return D >= E.length ? 0 : D;
370
+ $.preventDefault(), N((P) => {
371
+ const H = P + 1;
372
+ return H >= R.length ? 0 : H;
373
373
  });
374
374
  break;
375
375
  case "ArrowUp":
376
- R.preventDefault(), N((P) => {
377
- const D = P - 1;
378
- return D < 0 ? E.length - 1 : D;
376
+ $.preventDefault(), N((P) => {
377
+ const H = P - 1;
378
+ return H < 0 ? R.length - 1 : H;
379
379
  });
380
380
  break;
381
381
  case "Enter":
382
- R.preventDefault(), v >= 0 && v < E.length && I(E[v].value, !0);
382
+ $.preventDefault(), v >= 0 && v < R.length && A(R[v].value, !0);
383
383
  break;
384
384
  case "Escape":
385
- R.preventDefault(), p(!1), g("");
385
+ $.preventDefault(), u(!1), m("");
386
386
  break;
387
387
  }
388
388
  };
389
- return /* @__PURE__ */ y("div", { className: `nc-combo-container ${w || ""}`.trim(), style: { position: "relative", ...u }, children: [
390
- i && /* @__PURE__ */ s("span", { className: `nc-label ${m ? "nc-small" : ""}`, children: i }),
389
+ return /* @__PURE__ */ y("div", { className: `nc-combo-container ${g || ""}`.trim(), style: { position: "relative", ...f }, children: [
390
+ i && /* @__PURE__ */ s("span", { className: `nc-label ${b ? "nc-small" : ""}`, children: i }),
391
391
  /* @__PURE__ */ y(
392
392
  "div",
393
393
  {
394
394
  ref: k,
395
395
  style: { position: "relative", display: "flex", alignItems: "center" },
396
- onMouseDown: (R) => {
397
- o || a && R.target === h.current || (p((P) => (!P && a && M && g(M.label), !P)), a && !c && setTimeout(() => {
398
- var P, D;
399
- (P = h.current) == null || P.focus(), (D = h.current) == null || D.select();
396
+ onMouseDown: ($) => {
397
+ o || a && $.target === h.current || (u((P) => (!P && a && I && m(I.label), !P)), a && !c && setTimeout(() => {
398
+ var P, H;
399
+ (P = h.current) == null || P.focus(), (H = h.current) == null || H.select();
400
400
  }, 0));
401
401
  },
402
402
  children: [
@@ -404,37 +404,37 @@ function Rn({
404
404
  "input",
405
405
  {
406
406
  ref: h,
407
- className: `nc-input ${m ? "nc-small" : ""}`,
407
+ className: `nc-input ${b ? "nc-small" : ""}`,
408
408
  placeholder: n,
409
409
  onFocus: () => {
410
- var R;
411
- !o && a && (p(!0), M && (g(M.label), setTimeout(() => {
410
+ var $;
411
+ !o && a && (u(!0), I && (m(I.label), setTimeout(() => {
412
412
  var P;
413
413
  return (P = h.current) == null ? void 0 : P.select();
414
- }, 0))), a || (R = h.current) == null || R.blur();
414
+ }, 0))), a || ($ = h.current) == null || $.blur();
415
415
  },
416
- onChange: (R) => a && g(R.target.value),
417
- onKeyDown: O,
418
- value: c && a ? b : (M == null ? void 0 : M.label) || "",
416
+ onChange: ($) => a && m($.target.value),
417
+ onKeyDown: L,
418
+ value: c && a ? w : (I == null ? void 0 : I.label) || "",
419
419
  readOnly: o || !a,
420
420
  style: {
421
421
  width: "100%",
422
- paddingRight: x || z ? m ? 32 : 44 : 12,
422
+ paddingRight: x || z ? b ? 32 : 44 : 12,
423
423
  caretColor: a ? void 0 : "transparent",
424
424
  cursor: a ? void 0 : "pointer",
425
425
  userSelect: a ? void 0 : "none",
426
- color: C ? "transparent" : "var(--nc-text)"
426
+ color: E ? "transparent" : "var(--nc-text)"
427
427
  }
428
428
  }
429
429
  ),
430
- C && /* @__PURE__ */ y(
430
+ E && /* @__PURE__ */ y(
431
431
  "div",
432
432
  {
433
433
  "aria-hidden": !0,
434
434
  style: {
435
435
  position: "absolute",
436
- left: m ? 8 : 12,
437
- right: x || z ? m ? 12 : 24 : m ? 8 : 12,
436
+ left: b ? 8 : 12,
437
+ right: x || z ? b ? 12 : 24 : b ? 8 : 12,
438
438
  top: "50%",
439
439
  transform: "translateY(-50%)",
440
440
  pointerEvents: "none",
@@ -446,21 +446,21 @@ function Rn({
446
446
  textOverflow: "ellipsis"
447
447
  },
448
448
  children: [
449
- /* @__PURE__ */ s("span", { className: `nc-combo-overlay-text ${m ? "nc-small" : ""}`, children: M == null ? void 0 : M.label }),
450
- (M == null ? void 0 : M.default) && /* @__PURE__ */ y("span", { className: `nc-combo-overlay-default ${m ? "nc-small" : ""}`, children: [
449
+ /* @__PURE__ */ s("span", { className: `nc-combo-overlay-text ${b ? "nc-small" : ""}`, children: I == null ? void 0 : I.label }),
450
+ (I == null ? void 0 : I.default) && /* @__PURE__ */ y("span", { className: `nc-combo-overlay-default ${b ? "nc-small" : ""}`, children: [
451
451
  "(",
452
- A("common.default"),
452
+ S("common.default"),
453
453
  ")"
454
454
  ] })
455
455
  ]
456
456
  }
457
457
  ),
458
- z && /* @__PURE__ */ s(bt, { onClick: S, small: m }),
459
- x && /* @__PURE__ */ s(vt, { open: c, onClick: () => p((R) => !R), small: m })
458
+ z && /* @__PURE__ */ s(bt, { onClick: C, small: b }),
459
+ x && /* @__PURE__ */ s(vt, { open: c, onClick: () => u(($) => !$), small: b })
460
460
  ]
461
461
  }
462
462
  ),
463
- /* @__PURE__ */ s(gt, { isOpen: c, options: E, onSelect: I, selectedValue: e, placement: d, anchorRef: k, small: m, highlightedIndex: v })
463
+ /* @__PURE__ */ s(gt, { isOpen: c, options: R, onSelect: A, selectedValue: e, placement: d, anchorRef: k, small: b, highlightedIndex: v })
464
464
  ] });
465
465
  }
466
466
  function En({ onClick: e, loading: t = !1, disabled: n = !1, size: r = "default", title: o, "aria-label": i }) {
@@ -541,35 +541,35 @@ function Ln({
541
541
  anchor: o,
542
542
  preferredDirection: i = "down"
543
543
  }) {
544
- const l = H(null), [a, d] = T({ top: 0, left: 0 }), f = o || (r == null ? void 0 : r.current);
545
- if (L(() => {
546
- if (!e || !f || !l.current) return;
547
- const c = f.getBoundingClientRect(), p = l.current.getBoundingClientRect(), b = window.innerHeight, g = window.innerWidth, v = c.bottom + 8, N = v + p.height <= b - 8;
544
+ const l = W(null), [a, d] = T({ top: 0, left: 0 }), p = o || (r == null ? void 0 : r.current);
545
+ if (B(() => {
546
+ if (!e || !p || !l.current) return;
547
+ const c = p.getBoundingClientRect(), u = l.current.getBoundingClientRect(), w = window.innerHeight, m = window.innerWidth, v = c.bottom + 8, N = v + u.height <= w - 8;
548
548
  let h = i;
549
549
  (!N && i === "down" || i === "up" && N) && (h = "up");
550
550
  let k;
551
- h === "down" ? k = v : k = c.top - p.height - 8;
552
- let m = c.left;
553
- m + p.width > g - 8 && (m = c.right - p.width), d({
551
+ h === "down" ? k = v : k = c.top - u.height - 8;
552
+ let b = c.left;
553
+ b + u.width > m - 8 && (b = c.right - u.width), d({
554
554
  top: Math.max(8, k),
555
555
  // Ensure minimum 8px from top
556
- left: Math.max(8, m)
556
+ left: Math.max(8, b)
557
557
  // Ensure minimum 8px from left
558
558
  });
559
- }, [e, f, i]), L(() => {
559
+ }, [e, p, i]), B(() => {
560
560
  if (!e) return;
561
- const c = (b) => {
562
- l.current && !l.current.contains(b.target) && f && !f.contains(b.target) && t();
563
- }, p = (b) => {
564
- b.key === "Escape" && t();
561
+ const c = (w) => {
562
+ l.current && !l.current.contains(w.target) && p && !p.contains(w.target) && t();
563
+ }, u = (w) => {
564
+ w.key === "Escape" && t();
565
565
  };
566
- return document.addEventListener("mousedown", c), document.addEventListener("keydown", p), () => {
567
- document.removeEventListener("mousedown", c), document.removeEventListener("keydown", p);
566
+ return document.addEventListener("mousedown", c), document.addEventListener("keydown", u), () => {
567
+ document.removeEventListener("mousedown", c), document.removeEventListener("keydown", u);
568
568
  };
569
- }, [e, t, f]), !e) return null;
570
- const u = (c) => {
569
+ }, [e, t, p]), !e) return null;
570
+ const f = (c) => {
571
571
  c.type !== "separator" && !c.disabled && c.onClick && (c.onClick(), t());
572
- }, w = n.some((c) => c.icon);
572
+ }, g = n.some((c) => c.icon);
573
573
  return pe(
574
574
  /* @__PURE__ */ s(
575
575
  "div",
@@ -593,17 +593,17 @@ function Ln({
593
593
  },
594
594
  c.id
595
595
  );
596
- const p = [
596
+ const u = [
597
597
  "nc-context-menu-item",
598
598
  c.variant && c.variant !== "default" ? `nc-${c.variant}` : "",
599
599
  c.disabled ? "nc-disabled" : "",
600
- w && !c.icon ? "nc-indented" : ""
600
+ g && !c.icon ? "nc-indented" : ""
601
601
  ].filter(Boolean).join(" ");
602
602
  return /* @__PURE__ */ y(
603
603
  "button",
604
604
  {
605
- className: p,
606
- onClick: () => u(c),
605
+ className: u,
606
+ onClick: () => f(c),
607
607
  disabled: c.disabled,
608
608
  role: "menuitem",
609
609
  children: [
@@ -642,61 +642,61 @@ function Bn({
642
642
  footer: l,
643
643
  onOk: a,
644
644
  onSave: d,
645
- onDelete: f,
646
- onCancel: u,
647
- onConnect: w,
645
+ onDelete: p,
646
+ onCancel: f,
647
+ onConnect: g,
648
648
  closeOnOverlay: c = !0,
649
- primaryDisabled: p = !1,
650
- fullScreen: b = !1,
651
- hideTitleBar: g = !1,
649
+ primaryDisabled: u = !1,
650
+ fullScreen: w = !1,
651
+ hideTitleBar: m = !1,
652
652
  className: v = "",
653
653
  onContentHeightChange: N
654
654
  }) {
655
- const h = H(null), k = H(null), { t: m } = J(), A = { close: t }, E = (x) => {
655
+ const h = W(null), k = W(null), { t: b } = J(), S = { close: t }, R = (x) => {
656
656
  c && x.target === x.currentTarget && t();
657
657
  };
658
- if (L(() => {
658
+ if (B(() => {
659
659
  e && h.current && h.current.focus();
660
- }, [e]), L(() => {
660
+ }, [e]), B(() => {
661
661
  if (!N || !k.current) return;
662
- const x = new ResizeObserver((C) => {
663
- for (const I of C) {
664
- const S = I.contentRect.height;
665
- N(S);
662
+ const x = new ResizeObserver((E) => {
663
+ for (const A of E) {
664
+ const C = A.contentRect.height;
665
+ N(C);
666
666
  }
667
667
  });
668
668
  return x.observe(k.current), () => {
669
669
  x.disconnect();
670
670
  };
671
671
  }, [N]), !e) return null;
672
- const M = () => {
672
+ const I = () => {
673
673
  switch (i) {
674
674
  case "ok":
675
- return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(Y, { variant: "primary", onClick: a ?? t, disabled: p, children: m("common.ok") }) });
675
+ return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(Y, { variant: "primary", onClick: a ?? t, disabled: u, children: b("common.ok") }) });
676
676
  case "ok-cancel":
677
677
  return /* @__PURE__ */ y("div", { className: "nc-dialog-footer", children: [
678
- /* @__PURE__ */ s(Y, { variant: "primary", onClick: a ?? t, disabled: p, children: m("common.ok") }),
679
- /* @__PURE__ */ s(ne, { onClick: u, children: m("common.cancel") })
678
+ /* @__PURE__ */ s(Y, { variant: "primary", onClick: a ?? t, disabled: u, children: b("common.ok") }),
679
+ /* @__PURE__ */ s(ne, { onClick: f, children: b("common.cancel") })
680
680
  ] });
681
681
  case "save-cancel":
682
682
  return /* @__PURE__ */ y("div", { className: "nc-dialog-footer", children: [
683
- /* @__PURE__ */ s(Y, { variant: "primary", onClick: d, disabled: p, children: m("common.save") }),
684
- /* @__PURE__ */ s(ne, { onClick: u, children: m("common.cancel") })
683
+ /* @__PURE__ */ s(Y, { variant: "primary", onClick: d, disabled: u, children: b("common.save") }),
684
+ /* @__PURE__ */ s(ne, { onClick: f, children: b("common.cancel") })
685
685
  ] });
686
686
  case "delete-cancel":
687
687
  return /* @__PURE__ */ y("div", { className: "nc-dialog-footer", children: [
688
- /* @__PURE__ */ s(Y, { variant: "danger", onClick: f, disabled: p, children: m("common.delete") }),
689
- /* @__PURE__ */ s(ne, { onClick: u, children: m("common.cancel") })
688
+ /* @__PURE__ */ s(Y, { variant: "danger", onClick: p, disabled: u, children: b("common.delete") }),
689
+ /* @__PURE__ */ s(ne, { onClick: f, children: b("common.cancel") })
690
690
  ] });
691
691
  case "connect":
692
692
  return /* @__PURE__ */ y("div", { className: "nc-dialog-footer", children: [
693
- /* @__PURE__ */ s(Y, { variant: "primary", onClick: w, disabled: p, children: m("common.connect") }),
694
- /* @__PURE__ */ s(ne, { onClick: u, children: m("common.cancel") })
693
+ /* @__PURE__ */ s(Y, { variant: "primary", onClick: g, disabled: u, children: b("common.connect") }),
694
+ /* @__PURE__ */ s(ne, { onClick: f, children: b("common.cancel") })
695
695
  ] });
696
696
  case "close":
697
697
  return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(ne, { variant: "primary" }) });
698
698
  case "gotit":
699
- return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(ne, { variant: "primary", children: m("common.gotit") }) });
699
+ return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(ne, { variant: "primary", children: b("common.gotit") }) });
700
700
  case "custom":
701
701
  return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: l });
702
702
  case "none":
@@ -704,7 +704,7 @@ function Bn({
704
704
  default:
705
705
  return null;
706
706
  }
707
- }, z = /* @__PURE__ */ s(He.Provider, { value: A, children: /* @__PURE__ */ s("div", { className: `nc-dialog-overlay${b ? " nc-fullscreen" : ""}`, onClick: E, children: /* @__PURE__ */ y(
707
+ }, z = /* @__PURE__ */ s(He.Provider, { value: S, children: /* @__PURE__ */ s("div", { className: `nc-dialog-overlay${w ? " nc-fullscreen" : ""}`, onClick: R, children: /* @__PURE__ */ y(
708
708
  "div",
709
709
  {
710
710
  ref: h,
@@ -713,18 +713,18 @@ function Bn({
713
713
  tabIndex: -1,
714
714
  role: "dialog",
715
715
  "aria-modal": "true",
716
- "aria-labelledby": g ? void 0 : "nc-dialog-title",
716
+ "aria-labelledby": m ? void 0 : "nc-dialog-title",
717
717
  children: [
718
- !g && /* @__PURE__ */ y("div", { className: "nc-dialog-header", children: [
718
+ !m && /* @__PURE__ */ y("div", { className: "nc-dialog-header", children: [
719
719
  /* @__PURE__ */ s("h3", { id: "nc-dialog-title", className: "nc-dialog-title", children: n }),
720
720
  /* @__PURE__ */ s(De, { onClick: t, "aria-label": "Close dialog" })
721
721
  ] }),
722
722
  /* @__PURE__ */ s("div", { ref: k, className: "nc-dialog-content", children: r }),
723
- M()
723
+ I()
724
724
  ]
725
725
  }
726
726
  ) }) });
727
- return b ? pe(z, document.body) : z;
727
+ return w ? pe(z, document.body) : z;
728
728
  }
729
729
  function yt({ onClick: e, size: t = "default", rightOffset: n = 4 }) {
730
730
  const r = t === "small" ? 28 : 34;
@@ -793,48 +793,48 @@ function Dn({
793
793
  disabled: l,
794
794
  label: a,
795
795
  clearable: d = !0,
796
- type: f = "text",
797
- className: u = "",
798
- size: w = "default",
796
+ type: p = "text",
797
+ className: f = "",
798
+ size: g = "default",
799
799
  style: c,
800
- showPasswordToggle: p = !1,
801
- multiline: b = !1,
802
- rows: g = 3,
800
+ showPasswordToggle: u = !1,
801
+ multiline: w = !1,
802
+ rows: m = 3,
803
803
  validator: v,
804
804
  showErrorMessage: N = !0
805
805
  }) {
806
- const h = H(null), k = H(null), [m, A] = T(!1), [E, M] = T(!1), z = e !== void 0, [x, C] = T(t), I = z ? e : x, S = v ? v(I) : null, O = !!S, R = f === "password", P = R && p && !l && !b, D = d && I && !l && E, ee = w === "small" ? 32 : 44;
806
+ const h = W(null), k = W(null), [b, S] = T(!1), [R, I] = T(!1), z = e !== void 0, [x, E] = T(t), A = z ? e : x, C = v ? v(A) : null, L = !!C, $ = p === "password", P = $ && u && !l && !w, H = d && A && !l && R, ee = g === "small" ? 32 : 44;
807
807
  let K = 12;
808
- D && P ? K = ee * 2 : (D || P) && (K = ee);
808
+ H && P ? K = ee * 2 : (H || P) && (K = ee);
809
809
  const Q = () => {
810
810
  var te, ae;
811
- z || C(""), n == null || n(""), o == null || o(), b ? (te = k.current) == null || te.focus() : (ae = h.current) == null || ae.focus();
811
+ z || E(""), n == null || n(""), o == null || o(), w ? (te = k.current) == null || te.focus() : (ae = h.current) == null || ae.focus();
812
812
  }, ce = (te) => {
813
- te.key === "Enter" && !b && (r == null || r());
813
+ te.key === "Enter" && !w && (r == null || r());
814
814
  }, F = (te) => {
815
815
  const ae = te.target.value;
816
- z || C(ae), n == null || n(ae);
816
+ z || E(ae), n == null || n(ae);
817
817
  }, Se = () => {
818
- M(!0);
818
+ I(!0);
819
819
  }, Ce = () => {
820
- M(!1);
821
- }, Ie = `nc-input ${w === "small" ? "nc-small " : ""} ${O ? "nc-error " : ""}${u}`;
820
+ I(!1);
821
+ }, Ie = `nc-input ${g === "small" ? "nc-small " : ""} ${L ? "nc-error " : ""}${f}`;
822
822
  return /* @__PURE__ */ y("div", { className: "nc-col", style: { position: "relative", flex: 1, ...c }, children: [
823
823
  a && /* @__PURE__ */ s("span", { className: "nc-label", children: a }),
824
- /* @__PURE__ */ y("div", { style: { position: "relative", display: "flex", alignItems: b ? "flex-start" : "center" }, children: [
825
- b ? /* @__PURE__ */ s(
824
+ /* @__PURE__ */ y("div", { style: { position: "relative", display: "flex", alignItems: w ? "flex-start" : "center" }, children: [
825
+ w ? /* @__PURE__ */ s(
826
826
  "textarea",
827
827
  {
828
828
  ref: k,
829
829
  className: Ie,
830
830
  placeholder: i,
831
- value: I,
831
+ value: A,
832
832
  onChange: F,
833
833
  onKeyDown: ce,
834
834
  onFocus: Se,
835
835
  onBlur: Ce,
836
836
  disabled: l,
837
- rows: g,
837
+ rows: m,
838
838
  style: {
839
839
  width: "100%",
840
840
  paddingRight: K
@@ -844,10 +844,10 @@ function Dn({
844
844
  "input",
845
845
  {
846
846
  ref: h,
847
- type: R && m ? "text" : f,
847
+ type: $ && b ? "text" : p,
848
848
  className: Ie,
849
849
  placeholder: i,
850
- value: I,
850
+ value: A,
851
851
  onChange: F,
852
852
  onKeyDown: ce,
853
853
  onFocus: Se,
@@ -859,10 +859,10 @@ function Dn({
859
859
  }
860
860
  }
861
861
  ),
862
- D && /* @__PURE__ */ s(yt, { onClick: Q, size: w, rightOffset: P ? ee + 4 : 4 }),
863
- P && /* @__PURE__ */ s(xt, { visible: m, onClick: () => A(!m), size: w })
862
+ H && /* @__PURE__ */ s(yt, { onClick: Q, size: g, rightOffset: P ? ee + 4 : 4 }),
863
+ P && /* @__PURE__ */ s(xt, { visible: b, onClick: () => S(!b), size: g })
864
864
  ] }),
865
- O && N && /* @__PURE__ */ s("span", { className: "nc-error-message", children: S })
865
+ L && N && /* @__PURE__ */ s("span", { className: "nc-error-message", children: C })
866
866
  ] });
867
867
  }
868
868
  function Hn({
@@ -879,8 +879,8 @@ function Hn({
879
879
  onClick: (d) => {
880
880
  if (t) {
881
881
  if (r) {
882
- const f = window.getSelection();
883
- if (f && f.toString().length > 0)
882
+ const p = window.getSelection();
883
+ if (p && p.toString().length > 0)
884
884
  return;
885
885
  }
886
886
  t(d);
@@ -916,31 +916,31 @@ function Wn({ title: e, titleTools: t, children: n, style: r }) {
916
916
  ] });
917
917
  }
918
918
  function On({ values: e, onChange: t, options: n, placeholder: r = "Select…", label: o }) {
919
- const [i, l] = T(!1), [a, d] = T(""), f = H(null), u = ge(() => n.filter((c) => c.label.toLowerCase().includes(a.toLowerCase())), [n, a]);
920
- L(() => {
921
- function c(p) {
922
- !(p.target instanceof Node) || !f.current || f.current.contains(p.target) || l(!1);
919
+ const [i, l] = T(!1), [a, d] = T(""), p = W(null), f = ge(() => n.filter((c) => c.label.toLowerCase().includes(a.toLowerCase())), [n, a]);
920
+ B(() => {
921
+ function c(u) {
922
+ !(u.target instanceof Node) || !p.current || p.current.contains(u.target) || l(!1);
923
923
  }
924
924
  return document.addEventListener("mousedown", c), () => document.removeEventListener("mousedown", c);
925
925
  }, []);
926
- const w = (c) => {
927
- e.includes(c) ? t(e.filter((p) => p !== c)) : t([...e, c]);
926
+ const g = (c) => {
927
+ e.includes(c) ? t(e.filter((u) => u !== c)) : t([...e, c]);
928
928
  };
929
- return /* @__PURE__ */ y("div", { ref: f, className: "nc-col", style: { position: "relative" }, children: [
929
+ return /* @__PURE__ */ y("div", { ref: p, className: "nc-col", style: { position: "relative" }, children: [
930
930
  o && /* @__PURE__ */ s("span", { className: "nc-label", children: o }),
931
931
  /* @__PURE__ */ y("div", { className: "nc-row", style: { flexWrap: "wrap", gap: 6, minHeight: 42, alignItems: "center", border: "1px solid var(--nc-button-border)", borderRadius: 8, background: "var(--nc-button-bg)", padding: "4px 8px" }, children: [
932
932
  e.length === 0 && /* @__PURE__ */ s("span", { className: "nc-label", children: r }),
933
933
  e.map((c) => {
934
- const p = n.find((b) => b.value === c);
935
- return p ? /* @__PURE__ */ y("span", { style: { padding: "4px 8px", borderRadius: 6, display: "inline-flex", alignItems: "center", gap: 4, background: "var(--nc-button-bg)", border: "1px solid var(--nc-button-border)" }, children: [
936
- p.label,
934
+ const u = n.find((w) => w.value === c);
935
+ return u ? /* @__PURE__ */ y("span", { style: { padding: "4px 8px", borderRadius: 6, display: "inline-flex", alignItems: "center", gap: 4, background: "var(--nc-button-bg)", border: "1px solid var(--nc-button-border)" }, children: [
936
+ u.label,
937
937
  /* @__PURE__ */ s(
938
938
  "button",
939
939
  {
940
940
  className: "nc-button nc-ghost",
941
941
  style: { padding: 0, minHeight: 0, height: 20, width: 20, display: "inline-flex", alignItems: "center", justifyContent: "center", border: "none" },
942
- onClick: () => w(c),
943
- "aria-label": `Remove ${p.label}`,
942
+ onClick: () => g(c),
943
+ "aria-label": `Remove ${u.label}`,
944
944
  children: "✕"
945
945
  }
946
946
  )
@@ -958,14 +958,14 @@ function On({ values: e, onChange: t, options: n, placeholder: r = "Select…",
958
958
  )
959
959
  ] }),
960
960
  i && /* @__PURE__ */ y("div", { className: "nc-combo-dropdown", style: { position: "absolute", top: "100%", left: 0, right: 0, zIndex: 10, marginTop: 4, boxShadow: "0 4px 12px var(--nc-shadow)" }, children: [
961
- u.map((c) => {
962
- const p = e.includes(c.value);
963
- return /* @__PURE__ */ y("div", { className: "nc-section nc-row", style: { justifyContent: "space-between", cursor: "pointer", padding: 12 }, onMouseDown: () => w(c.value), children: [
961
+ f.map((c) => {
962
+ const u = e.includes(c.value);
963
+ return /* @__PURE__ */ y("div", { className: "nc-section nc-row", style: { justifyContent: "space-between", cursor: "pointer", padding: 12 }, onMouseDown: () => g(c.value), children: [
964
964
  /* @__PURE__ */ s("span", { children: c.label }),
965
- /* @__PURE__ */ s("span", { children: p ? "✔️" : "" })
965
+ /* @__PURE__ */ s("span", { children: u ? "✔️" : "" })
966
966
  ] }, c.value);
967
967
  }),
968
- u.length === 0 && /* @__PURE__ */ s("div", { className: "nc-section nc-label", children: "No results" })
968
+ f.length === 0 && /* @__PURE__ */ s("div", { className: "nc-section nc-label", children: "No results" })
969
969
  ] })
970
970
  ] });
971
971
  }
@@ -1006,53 +1006,54 @@ function Fn({
1006
1006
  onChange: n,
1007
1007
  label: r,
1008
1008
  className: o = "",
1009
- disabled: i = !1
1009
+ disabled: i = !1,
1010
+ size: l = "default"
1010
1011
  }) {
1011
- const [l, a] = T(!1), [d, f] = T(""), [u, w] = T(""), [c, p] = T({ top: 0, left: 0, width: 0, right: void 0 }), b = H(null), g = H(null);
1012
- L(() => {
1013
- if (l && b.current) {
1014
- const C = b.current.getBoundingClientRect(), S = Math.max(C.width, 400);
1015
- window.innerWidth - C.left < S && C.right >= S ? p({
1016
- top: C.bottom + 4,
1012
+ const [a, d] = T(!1), [p, f] = T(""), [g, c] = T(""), [u, w] = T({ top: 0, left: 0, width: 0, right: void 0 }), m = W(null), v = W(null);
1013
+ B(() => {
1014
+ if (a && m.current) {
1015
+ const A = m.current.getBoundingClientRect(), L = Math.max(A.width, 400);
1016
+ window.innerWidth - A.left < L && A.right >= L ? w({
1017
+ top: A.bottom + 4,
1017
1018
  left: 0,
1018
1019
  // Not used but type needs it, let's just use 0
1019
- right: window.innerWidth - C.right,
1020
- width: S
1021
- }) : p({
1022
- top: C.bottom + 4,
1023
- left: C.left,
1020
+ right: window.innerWidth - A.right,
1021
+ width: L
1022
+ }) : w({
1023
+ top: A.bottom + 4,
1024
+ left: A.left,
1024
1025
  right: void 0,
1025
- width: S
1026
+ width: L
1026
1027
  });
1027
1028
  }
1028
- }, [l]), L(() => {
1029
- if (!l) return;
1030
- const C = (I) => {
1031
- b.current && !b.current.contains(I.target) && g.current && !g.current.contains(I.target) && a(!1);
1029
+ }, [a]), B(() => {
1030
+ if (!a) return;
1031
+ const A = (C) => {
1032
+ m.current && !m.current.contains(C.target) && v.current && !v.current.contains(C.target) && d(!1);
1032
1033
  };
1033
- return document.addEventListener("mousedown", C), () => document.removeEventListener("mousedown", C);
1034
- }, [l]);
1035
- const v = () => {
1036
- f(e || $e()), w(t || $e()), a(!0);
1037
- }, N = () => {
1038
- a(!1);
1034
+ return document.addEventListener("mousedown", A), () => document.removeEventListener("mousedown", A);
1035
+ }, [a]);
1036
+ const N = () => {
1037
+ f(e || $e()), c(t || $e()), d(!0);
1039
1038
  }, h = () => {
1040
- const C = fe(d), I = fe(u);
1041
- if (C || I)
1039
+ d(!1);
1040
+ }, k = () => {
1041
+ const A = fe(p), C = fe(g);
1042
+ if (A || C)
1042
1043
  return;
1043
- const S = ue(d), O = ue(u);
1044
- S && O && (n == null || n(S, O)), a(!1);
1045
- }, k = e && t ? `${Me(e)} - ${Me(t)}` : "Select month range", m = fe(d), A = fe(u), E = ue(d), M = ue(u), z = E && M && E > M, x = l ? pe(
1044
+ const L = ue(p), $ = ue(g);
1045
+ L && $ && (n == null || n(L, $)), d(!1);
1046
+ }, b = e && t ? `${Me(e)} - ${Me(t)}` : "Select month range", S = fe(p), R = fe(g), I = ue(p), z = ue(g), x = I && z && I > z, E = a ? pe(
1046
1047
  /* @__PURE__ */ s(
1047
1048
  "div",
1048
1049
  {
1049
- ref: g,
1050
+ ref: v,
1050
1051
  className: "nc-month-range-picker-popup",
1051
1052
  style: {
1052
1053
  position: "fixed",
1053
- top: c.top,
1054
- ...c.right !== void 0 ? { right: c.right } : { left: c.left },
1055
- width: c.width,
1054
+ top: u.top,
1055
+ ...u.right !== void 0 ? { right: u.right } : { left: u.left },
1056
+ width: u.width,
1056
1057
  zIndex: 1e3
1057
1058
  },
1058
1059
  children: /* @__PURE__ */ y("div", { className: "nc-month-range-picker-content", children: [
@@ -1063,13 +1064,13 @@ function Fn({
1063
1064
  "input",
1064
1065
  {
1065
1066
  type: "text",
1066
- className: `nc-month-input ${m ? "nc-error" : ""}`,
1067
- value: d,
1068
- onChange: (C) => f(C.target.value),
1067
+ className: `nc-month-input ${S ? "nc-error" : ""}`,
1068
+ value: p,
1069
+ onChange: (A) => f(A.target.value),
1069
1070
  placeholder: "YY-M(M) or YYYY-M(M)"
1070
1071
  }
1071
1072
  ),
1072
- m && /* @__PURE__ */ s("div", { className: "nc-month-error-text", children: m })
1073
+ S && /* @__PURE__ */ s("div", { className: "nc-month-error-text", children: S })
1073
1074
  ] }),
1074
1075
  /* @__PURE__ */ y("div", { className: "nc-month-range-picker-column", children: [
1075
1076
  /* @__PURE__ */ s("label", { className: "nc-label", children: "End Month" }),
@@ -1077,53 +1078,53 @@ function Fn({
1077
1078
  "input",
1078
1079
  {
1079
1080
  type: "text",
1080
- className: `nc-month-input ${A ? "nc-error" : ""}`,
1081
- value: u,
1082
- onChange: (C) => w(C.target.value),
1081
+ className: `nc-month-input ${R ? "nc-error" : ""}`,
1082
+ value: g,
1083
+ onChange: (A) => c(A.target.value),
1083
1084
  placeholder: "YY-M(M) or YYYY-M(M)"
1084
1085
  }
1085
1086
  ),
1086
- A && /* @__PURE__ */ s("div", { className: "nc-month-error-text", children: A })
1087
+ R && /* @__PURE__ */ s("div", { className: "nc-month-error-text", children: R })
1087
1088
  ] })
1088
1089
  ] }),
1089
- z && !m && !A && /* @__PURE__ */ s("div", { className: "nc-month-range-error", children: "End month must be after or equal to start month" }),
1090
+ x && !S && !R && /* @__PURE__ */ s("div", { className: "nc-month-range-error", children: "End month must be after or equal to start month" }),
1090
1091
  /* @__PURE__ */ y("div", { className: "nc-month-range-picker-footer", children: [
1091
1092
  /* @__PURE__ */ s(
1092
1093
  Y,
1093
1094
  {
1094
1095
  variant: "primary",
1095
- onClick: h,
1096
- disabled: !d || !u || !!m || !!A || !!z,
1096
+ onClick: k,
1097
+ disabled: !p || !g || !!S || !!R || !!x,
1097
1098
  children: "Apply"
1098
1099
  }
1099
1100
  ),
1100
- /* @__PURE__ */ s(Y, { variant: "ghost", onClick: N, children: "Cancel" })
1101
+ /* @__PURE__ */ s(Y, { variant: "ghost", onClick: h, children: "Cancel" })
1101
1102
  ] })
1102
1103
  ] })
1103
1104
  }
1104
1105
  ),
1105
1106
  document.body
1106
1107
  ) : null;
1107
- return /* @__PURE__ */ y("div", { className: `nc-month-range-picker ${o}`, children: [
1108
- r && /* @__PURE__ */ s("label", { className: "nc-label", children: r }),
1108
+ return /* @__PURE__ */ y("div", { className: `nc-month-range-picker ${l === "small" ? "nc-small " : ""}${o}`, children: [
1109
+ r && /* @__PURE__ */ s("label", { className: `nc-label${l === "small" ? " nc-small" : ""}`, children: r }),
1109
1110
  /* @__PURE__ */ s(
1110
1111
  "button",
1111
1112
  {
1112
- ref: b,
1113
- className: "nc-month-range-picker-input",
1114
- onClick: v,
1113
+ ref: m,
1114
+ className: `nc-month-range-picker-input${l === "small" ? " nc-small" : ""}`,
1115
+ onClick: N,
1115
1116
  disabled: i,
1116
- children: k
1117
+ children: b
1117
1118
  }
1118
1119
  ),
1119
- x
1120
+ E
1120
1121
  ] });
1121
1122
  }
1122
1123
  function Vn({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disabled: l, size: a = "default" }) {
1123
- const d = a === "small", f = () => {
1124
+ const d = a === "small", p = () => {
1124
1125
  const c = e - o;
1125
1126
  n !== void 0 && c < n || t(parseFloat(c.toFixed(10)));
1126
- }, u = () => {
1127
+ }, f = () => {
1127
1128
  const c = e + o;
1128
1129
  r !== void 0 && c > r || t(parseFloat(c.toFixed(10)));
1129
1130
  };
@@ -1137,8 +1138,8 @@ function Vn({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disa
1137
1138
  type: "number",
1138
1139
  value: e,
1139
1140
  onChange: (c) => {
1140
- const p = parseFloat(c.target.value);
1141
- isNaN(p) || n !== void 0 && p < n || r !== void 0 && p > r || t(p);
1141
+ const u = parseFloat(c.target.value);
1142
+ isNaN(u) || n !== void 0 && u < n || r !== void 0 && u > r || t(u);
1142
1143
  },
1143
1144
  min: n,
1144
1145
  max: r,
@@ -1150,7 +1151,7 @@ function Vn({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disa
1150
1151
  "button",
1151
1152
  {
1152
1153
  className: `nc-button nc-ghost nc-number-input-button ${d ? "nc-small" : ""}`,
1153
- onClick: f,
1154
+ onClick: p,
1154
1155
  disabled: l || n !== void 0 && e <= n,
1155
1156
  children: "−"
1156
1157
  }
@@ -1159,7 +1160,7 @@ function Vn({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disa
1159
1160
  "button",
1160
1161
  {
1161
1162
  className: `nc-button nc-ghost nc-number-input-button ${d ? "nc-small" : ""}`,
1162
- onClick: u,
1163
+ onClick: f,
1163
1164
  disabled: l || r !== void 0 && e >= r,
1164
1165
  children: "+"
1165
1166
  }
@@ -1176,13 +1177,13 @@ function Gn({
1176
1177
  label: i,
1177
1178
  disabled: l,
1178
1179
  showValue: a = !0,
1179
- formatValue: d = (u) => u.toString(),
1180
- width: f = 200
1180
+ formatValue: d = (f) => f.toString(),
1181
+ width: p = 200
1181
1182
  }) {
1182
- const u = (c) => {
1183
- const p = parseFloat(c.target.value);
1184
- t(p);
1185
- }, w = (e - n) / (r - n) * 100;
1183
+ const f = (c) => {
1184
+ const u = parseFloat(c.target.value);
1185
+ t(u);
1186
+ }, g = (e - n) / (r - n) * 100;
1186
1187
  return /* @__PURE__ */ y("div", { className: "nc-col", style: { gap: 6 }, children: [
1187
1188
  i && /* @__PURE__ */ s("span", { className: "nc-label", children: i }),
1188
1189
  /* @__PURE__ */ y("div", { style: { display: "flex", gap: 12, alignItems: "center" }, children: [
@@ -1192,14 +1193,14 @@ function Gn({
1192
1193
  type: "range",
1193
1194
  className: "nc-slider",
1194
1195
  value: e,
1195
- onChange: u,
1196
+ onChange: f,
1196
1197
  min: n,
1197
1198
  max: r,
1198
1199
  step: o,
1199
1200
  disabled: l,
1200
1201
  style: {
1201
- width: f,
1202
- "--nc-slider-percentage": `${w}%`
1202
+ width: p,
1203
+ "--nc-slider-percentage": `${g}%`
1203
1204
  }
1204
1205
  }
1205
1206
  ),
@@ -1244,87 +1245,87 @@ function Yn({ active: e, children: t, keepMounted: n = !1, className: r = "", st
1244
1245
  const l = i.find((a) => a.props.tab === e);
1245
1246
  return /* @__PURE__ */ s("div", { className: `nc-tab-panels ${r}`, style: o, children: l });
1246
1247
  }
1247
- function jn({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, className: i, toolbar: l, multiline: a, orientation: d = "horizontal", style: f }) {
1248
- const u = H(null), [w, c] = T(!1), [p, b] = T(!1), g = d === "verticalLeft" || d === "verticalRight", v = H(!1), N = H(0), h = H(0), k = H(!1);
1249
- L(() => {
1248
+ function jn({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, className: i, toolbar: l, multiline: a, orientation: d = "horizontal", style: p }) {
1249
+ const f = W(null), [g, c] = T(!1), [u, w] = T(!1), m = d === "verticalLeft" || d === "verticalRight", v = W(!1), N = W(0), h = W(0), k = W(!1);
1250
+ B(() => {
1250
1251
  const x = () => {
1251
- if (u.current)
1252
- if (g) {
1253
- const { scrollTop: I, scrollHeight: S, clientHeight: O } = u.current;
1254
- c(I > 1), b(I < S - O - 1);
1252
+ if (f.current)
1253
+ if (m) {
1254
+ const { scrollTop: A, scrollHeight: C, clientHeight: L } = f.current;
1255
+ c(A > 1), w(A < C - L - 1);
1255
1256
  } else {
1256
- const { scrollLeft: I, scrollWidth: S, clientWidth: O } = u.current;
1257
- c(I > 1), b(I < S - O - 1);
1257
+ const { scrollLeft: A, scrollWidth: C, clientWidth: L } = f.current;
1258
+ c(A > 1), w(A < C - L - 1);
1258
1259
  }
1259
- }, C = u.current;
1260
- if (C)
1261
- return x(), C.addEventListener("scroll", x), window.addEventListener("resize", x), () => {
1262
- C.removeEventListener("scroll", x), window.removeEventListener("resize", x);
1260
+ }, E = f.current;
1261
+ if (E)
1262
+ return x(), E.addEventListener("scroll", x), window.addEventListener("resize", x), () => {
1263
+ E.removeEventListener("scroll", x), window.removeEventListener("resize", x);
1263
1264
  };
1264
- }, [e, g]);
1265
- const m = (x) => {
1266
- u.current && (v.current = !0, k.current = !1, N.current = g ? x.clientY : x.clientX, h.current = g ? u.current.scrollTop : u.current.scrollLeft, u.current.style.cursor = "grabbing", u.current.style.userSelect = "none");
1267
- }, A = (x) => {
1268
- if (!v.current || !u.current) return;
1269
- const C = g ? x.clientY : x.clientX, I = N.current - C;
1270
- Math.abs(I) > 3 && (k.current = !0), g ? u.current.scrollTop = h.current + I : u.current.scrollLeft = h.current + I;
1271
- }, E = () => {
1272
- u.current && (v.current = !1, u.current.style.cursor = "", u.current.style.userSelect = "");
1273
- }, M = () => {
1274
- E();
1265
+ }, [e, m]);
1266
+ const b = (x) => {
1267
+ f.current && (v.current = !0, k.current = !1, N.current = m ? x.clientY : x.clientX, h.current = m ? f.current.scrollTop : f.current.scrollLeft, f.current.style.cursor = "grabbing", f.current.style.userSelect = "none");
1268
+ }, S = (x) => {
1269
+ if (!v.current || !f.current) return;
1270
+ const E = m ? x.clientY : x.clientX, A = N.current - E;
1271
+ Math.abs(A) > 3 && (k.current = !0), m ? f.current.scrollTop = h.current + A : f.current.scrollLeft = h.current + A;
1272
+ }, R = () => {
1273
+ f.current && (v.current = !1, f.current.style.cursor = "", f.current.style.userSelect = "");
1274
+ }, I = () => {
1275
+ R();
1275
1276
  };
1276
- L(() => {
1277
- const x = u.current;
1278
- if (!x || g) return;
1279
- const C = (I) => {
1280
- I.deltaY !== 0 && (I.preventDefault(), x.scrollLeft += I.deltaY * 0.3);
1277
+ B(() => {
1278
+ const x = f.current;
1279
+ if (!x || m) return;
1280
+ const E = (A) => {
1281
+ A.deltaY !== 0 && (A.preventDefault(), x.scrollLeft += A.deltaY * 0.3);
1281
1282
  };
1282
- return x.addEventListener("wheel", C, { passive: !1 }), () => {
1283
- x.removeEventListener("wheel", C);
1283
+ return x.addEventListener("wheel", E, { passive: !1 }), () => {
1284
+ x.removeEventListener("wheel", E);
1284
1285
  };
1285
- }, [g]);
1286
+ }, [m]);
1286
1287
  const z = (x) => {
1287
1288
  k.current || n(x);
1288
1289
  };
1289
- return /* @__PURE__ */ y("div", { className: `nc-tab-container ${g ? `nc-vertical nc-${d}` : ""} ${i || ""}`, style: f, children: [
1290
+ return /* @__PURE__ */ y("div", { className: `nc-tab-container ${m ? `nc-vertical nc-${d}` : ""} ${i || ""}`, style: p, children: [
1290
1291
  /* @__PURE__ */ y("div", { className: "nc-tab-scroll-wrapper", children: [
1291
- w && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${g ? "nc-top" : "nc-left"}`, children: g ? /* @__PURE__ */ s(kt, { size: 16 }) : /* @__PURE__ */ s(lt, { size: 16 }) }),
1292
+ g && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${m ? "nc-top" : "nc-left"}`, children: m ? /* @__PURE__ */ s(kt, { size: 16 }) : /* @__PURE__ */ s(lt, { size: 16 }) }),
1292
1293
  /* @__PURE__ */ s(
1293
1294
  "div",
1294
1295
  {
1295
- ref: u,
1296
+ ref: f,
1296
1297
  className: `nc-tab-scroll ${a ? "nc-multiline" : ""}`,
1297
- onMouseDown: m,
1298
- onMouseMove: A,
1299
- onMouseUp: E,
1300
- onMouseLeave: M,
1298
+ onMouseDown: b,
1299
+ onMouseMove: S,
1300
+ onMouseUp: R,
1301
+ onMouseLeave: I,
1301
1302
  style: { cursor: "grab" },
1302
1303
  children: e.map((x) => {
1303
- const C = r && !(o != null && o.includes(x));
1304
+ const E = typeof x == "string" ? x : x.id, A = typeof x == "string" ? x : x.label, C = r && !(o != null && o.includes(E));
1304
1305
  return /* @__PURE__ */ y(
1305
1306
  "div",
1306
1307
  {
1307
- className: `nc-tab-item ${t === x ? "nc-active" : ""} ${C ? "nc-closable" : ""}`,
1308
- onClick: () => z(x),
1308
+ className: `nc-tab-item ${t === E ? "nc-active" : ""} ${C ? "nc-closable" : ""}`,
1309
+ onClick: () => z(E),
1309
1310
  role: "button",
1310
1311
  tabIndex: 0,
1311
- onKeyDown: (I) => {
1312
- (I.key === "Enter" || I.key === " ") && n(x);
1312
+ onKeyDown: (L) => {
1313
+ (L.key === "Enter" || L.key === " ") && n(E);
1313
1314
  },
1314
1315
  children: [
1315
- /* @__PURE__ */ s("span", { className: "nc-tab-label", children: g ? x : x.toUpperCase() }),
1316
+ /* @__PURE__ */ s("span", { className: "nc-tab-label", children: m ? A : typeof A == "string" ? A.toUpperCase() : A }),
1316
1317
  C && /* @__PURE__ */ s(
1317
1318
  "span",
1318
1319
  {
1319
1320
  className: "nc-tab-close",
1320
1321
  role: "button",
1321
1322
  tabIndex: 0,
1322
- "aria-label": `Close ${x}`,
1323
- onClick: (I) => {
1324
- I.stopPropagation(), r(x);
1323
+ "aria-label": `Close ${typeof A == "string" ? A : E}`,
1324
+ onClick: (L) => {
1325
+ L.stopPropagation(), r(E);
1325
1326
  },
1326
- onKeyDown: (I) => {
1327
- (I.key === "Enter" || I.key === " ") && (I.stopPropagation(), r(x));
1327
+ onKeyDown: (L) => {
1328
+ (L.key === "Enter" || L.key === " ") && (L.stopPropagation(), r(E));
1328
1329
  },
1329
1330
  children: /* @__PURE__ */ y("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
1330
1331
  /* @__PURE__ */ s("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
@@ -1334,12 +1335,12 @@ function jn({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, cla
1334
1335
  )
1335
1336
  ]
1336
1337
  },
1337
- x
1338
+ E
1338
1339
  );
1339
1340
  })
1340
1341
  }
1341
1342
  ),
1342
- p && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${g ? "nc-bottom" : "nc-right"}`, children: g ? /* @__PURE__ */ s(dt, { size: 16 }) : /* @__PURE__ */ s(ut, { size: 16 }) })
1343
+ u && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${m ? "nc-bottom" : "nc-right"}`, children: m ? /* @__PURE__ */ s(dt, { size: 16 }) : /* @__PURE__ */ s(ut, { size: 16 }) })
1343
1344
  ] }),
1344
1345
  l && /* @__PURE__ */ s("div", { className: "nc-tab-toolbar", children: l })
1345
1346
  ] });
@@ -1417,13 +1418,13 @@ function St(e, t, n, r) {
1417
1418
  const o = e.split(`
1418
1419
  `), i = Math.max(1, Math.min(t, o.length));
1419
1420
  let l = 0;
1420
- for (let w = 0; w < i - 1; w++)
1421
- l += o[w].length + 1;
1422
- const d = o[i - 1].split(" "), f = Math.max(1, Math.min(n, d.length));
1423
- for (let w = 0; w < f - 1; w++)
1424
- l += d[w].length + 1;
1425
- const u = Math.max(1, Math.min(r, d[f - 1].length + 1));
1426
- return l += u - 1, l;
1421
+ for (let g = 0; g < i - 1; g++)
1422
+ l += o[g].length + 1;
1423
+ const d = o[i - 1].split(" "), p = Math.max(1, Math.min(n, d.length));
1424
+ for (let g = 0; g < p - 1; g++)
1425
+ l += d[g].length + 1;
1426
+ const f = Math.max(1, Math.min(r, d[p - 1].length + 1));
1427
+ return l += f - 1, l;
1427
1428
  }
1428
1429
  function Ct(e, t) {
1429
1430
  const n = e.split(`
@@ -1434,78 +1435,78 @@ function Ct(e, t) {
1434
1435
  return o;
1435
1436
  }
1436
1437
  const _n = tt(
1437
- function({ value: t, onChange: n, placeholder: r, className: o, style: i, showLineNumbers: l = !1, onCursorChange: a, highlightLine: d }, f) {
1438
- const u = H(null), w = H(null), c = H(null);
1439
- nt(f, () => ({
1438
+ function({ value: t, onChange: n, placeholder: r, className: o, style: i, showLineNumbers: l = !1, onCursorChange: a, highlightLine: d }, p) {
1439
+ const f = W(null), g = W(null), c = W(null);
1440
+ nt(p, () => ({
1440
1441
  goToLine(h) {
1441
- const k = u.current;
1442
+ const k = f.current;
1442
1443
  if (!k) return;
1443
- const m = Ct(t, h);
1444
- k.focus(), k.setSelectionRange(m, m);
1445
- const A = parseFloat(getComputedStyle(k).lineHeight) || 18;
1446
- k.scrollTop = (Math.max(1, h) - 1) * A, b(), p();
1444
+ const b = Ct(t, h);
1445
+ k.focus(), k.setSelectionRange(b, b);
1446
+ const S = parseFloat(getComputedStyle(k).lineHeight) || 18;
1447
+ k.scrollTop = (Math.max(1, h) - 1) * S, w(), u();
1447
1448
  },
1448
- goToPosition(h, k, m) {
1449
- const A = u.current;
1450
- if (!A) return;
1451
- const E = St(t, h, k, m);
1452
- A.focus(), A.setSelectionRange(E, E);
1453
- const M = parseFloat(getComputedStyle(A).lineHeight) || 18;
1454
- A.scrollTop = (Math.max(1, h) - 1) * M, b(), p();
1449
+ goToPosition(h, k, b) {
1450
+ const S = f.current;
1451
+ if (!S) return;
1452
+ const R = St(t, h, k, b);
1453
+ S.focus(), S.setSelectionRange(R, R);
1454
+ const I = parseFloat(getComputedStyle(S).lineHeight) || 18;
1455
+ S.scrollTop = (Math.max(1, h) - 1) * I, w(), u();
1455
1456
  }
1456
1457
  }), [t]);
1457
- const p = W(() => {
1458
- if (!a || !u.current) return;
1459
- const h = At(t, u.current.selectionStart);
1458
+ const u = O(() => {
1459
+ if (!a || !f.current) return;
1460
+ const h = At(t, f.current.selectionStart);
1460
1461
  a(h);
1461
- }, [a, t]), b = W(() => {
1462
- const h = u.current;
1463
- h && (w.current && (w.current.scrollTop = h.scrollTop, w.current.scrollLeft = h.scrollLeft), c.current && (c.current.scrollTop = h.scrollTop));
1462
+ }, [a, t]), w = O(() => {
1463
+ const h = f.current;
1464
+ h && (g.current && (g.current.scrollTop = h.scrollTop, g.current.scrollLeft = h.scrollLeft), c.current && (c.current.scrollTop = h.scrollTop));
1464
1465
  }, []);
1465
- L(() => {
1466
+ B(() => {
1466
1467
  if (d == null || d < 1) return;
1467
- const h = u.current;
1468
+ const h = f.current;
1468
1469
  if (!h) return;
1469
- const k = parseFloat(getComputedStyle(h).lineHeight) || 18, m = (d - 1) * k, A = m + k;
1470
- (m < h.scrollTop || A > h.scrollTop + h.clientHeight) && (h.scrollTop = m - h.clientHeight / 2 + k / 2), b();
1470
+ const k = parseFloat(getComputedStyle(h).lineHeight) || 18, b = (d - 1) * k, S = b + k;
1471
+ (b < h.scrollTop || S > h.scrollTop + h.clientHeight) && (h.scrollTop = b - h.clientHeight / 2 + k / 2), w();
1471
1472
  }, [d]);
1472
- const g = ge(() => t.split(`
1473
+ const m = ge(() => t.split(`
1473
1474
  `).length, [t]), v = () => {
1474
1475
  const h = [];
1475
- for (let k = 1; k <= g; k++)
1476
+ for (let k = 1; k <= m; k++)
1476
1477
  h.push(
1477
1478
  /* @__PURE__ */ s("div", { className: `nc-csv-line-number ${d === k ? "nc-csv-highlight" : ""}`, children: k }, k)
1478
1479
  );
1479
1480
  return /* @__PURE__ */ s("div", { className: "nc-csv-gutter", ref: c, children: h });
1480
1481
  }, N = (h) => h ? h.split(`
1481
- `).map((m, A) => {
1482
- const E = m.split(" ");
1483
- return /* @__PURE__ */ y("div", { className: `nc-csv-line ${d === A + 1 ? "nc-csv-highlight" : ""}`, children: [
1484
- E.map((M, z) => /* @__PURE__ */ y("span", { children: [
1482
+ `).map((b, S) => {
1483
+ const R = b.split(" ");
1484
+ return /* @__PURE__ */ y("div", { className: `nc-csv-line ${d === S + 1 ? "nc-csv-highlight" : ""}`, children: [
1485
+ R.map((I, z) => /* @__PURE__ */ y("span", { children: [
1485
1486
  z > 0 && /* @__PURE__ */ s("span", { className: "nc-csv-tab-char", children: " " }),
1486
- /* @__PURE__ */ s("span", { style: { color: Re[z % Re.length] }, children: M })
1487
+ /* @__PURE__ */ s("span", { style: { color: Re[z % Re.length] }, children: I })
1487
1488
  ] }, z)),
1488
- m === "" && `
1489
+ b === "" && `
1489
1490
  `
1490
- ] }, A);
1491
+ ] }, S);
1491
1492
  }) : null;
1492
1493
  return /* @__PURE__ */ y("div", { className: `nc-csv-textarea-container ${l ? "nc-csv-with-gutter" : ""} ${o ?? ""}`, style: i, children: [
1493
1494
  l && v(),
1494
1495
  /* @__PURE__ */ y("div", { className: "nc-csv-textarea-editor", children: [
1495
- /* @__PURE__ */ s("div", { className: "nc-csv-textarea-backdrop", ref: w, children: /* @__PURE__ */ s("pre", { className: "nc-csv-textarea-highlights", children: N(t) }) }),
1496
+ /* @__PURE__ */ s("div", { className: "nc-csv-textarea-backdrop", ref: g, children: /* @__PURE__ */ s("pre", { className: "nc-csv-textarea-highlights", children: N(t) }) }),
1496
1497
  /* @__PURE__ */ s(
1497
1498
  "textarea",
1498
1499
  {
1499
- ref: u,
1500
+ ref: f,
1500
1501
  className: "nc-csv-textarea-input",
1501
1502
  value: t,
1502
1503
  onChange: (h) => {
1503
- n(h.target.value), requestAnimationFrame(p);
1504
+ n(h.target.value), requestAnimationFrame(u);
1504
1505
  },
1505
- onScroll: b,
1506
- onSelect: p,
1507
- onKeyUp: p,
1508
- onClick: p,
1506
+ onScroll: w,
1507
+ onSelect: u,
1508
+ onKeyUp: u,
1509
+ onClick: u,
1509
1510
  placeholder: r,
1510
1511
  spellCheck: !1,
1511
1512
  autoComplete: "off",
@@ -1594,23 +1595,23 @@ function $t({ notification: e }) {
1594
1595
  );
1595
1596
  }
1596
1597
  function Un() {
1597
- const [e, t] = T([]), [n, r] = T(/* @__PURE__ */ new Map()), [o, i] = T(/* @__PURE__ */ new Set()), l = H(null), a = H([]);
1598
- return L(() => It((f) => {
1599
- const u = new Set(a.current.map((c) => c.id)), w = f.filter((c) => !u.has(c.id)).map((c) => c.id);
1600
- w.length > 0 ? (t(f), i(new Set(w)), requestAnimationFrame(() => {
1598
+ const [e, t] = T([]), [n, r] = T(/* @__PURE__ */ new Map()), [o, i] = T(/* @__PURE__ */ new Set()), l = W(null), a = W([]);
1599
+ return B(() => It((p) => {
1600
+ const f = new Set(a.current.map((c) => c.id)), g = p.filter((c) => !f.has(c.id)).map((c) => c.id);
1601
+ g.length > 0 ? (t(p), i(new Set(g)), requestAnimationFrame(() => {
1601
1602
  requestAnimationFrame(() => {
1602
1603
  i(/* @__PURE__ */ new Set());
1603
1604
  });
1604
- })) : t(f), a.current = f;
1605
- }), []), L(() => {
1605
+ })) : t(p), a.current = p;
1606
+ }), []), B(() => {
1606
1607
  if (!l.current) return;
1607
1608
  const d = /* @__PURE__ */ new Map();
1608
- let f = 0;
1609
- const u = l.current.children;
1610
- e.forEach((w, c) => {
1611
- if (d.set(w.id, f), u[c]) {
1612
- const p = u[c].offsetHeight;
1613
- w.isRemoving || (f += p + 12);
1609
+ let p = 0;
1610
+ const f = l.current.children;
1611
+ e.forEach((g, c) => {
1612
+ if (d.set(g.id, p), f[c]) {
1613
+ const u = f[c].offsetHeight;
1614
+ g.isRemoving || (p += u + 12);
1614
1615
  }
1615
1616
  }), r(d);
1616
1617
  }, [e]), /* @__PURE__ */ s(
@@ -1632,7 +1633,7 @@ function Un() {
1632
1633
  position: "relative"
1633
1634
  },
1634
1635
  children: e.map((d) => {
1635
- const f = o.has(d.id), u = d.isRemoving, w = n.get(d.id) || 0;
1636
+ const p = o.has(d.id), f = d.isRemoving, g = n.get(d.id) || 0;
1636
1637
  return /* @__PURE__ */ s(
1637
1638
  "div",
1638
1639
  {
@@ -1640,10 +1641,10 @@ function Un() {
1640
1641
  position: "absolute",
1641
1642
  top: 0,
1642
1643
  left: 0,
1643
- transform: f ? "translateY(-120px)" : `translateY(${w}px)`,
1644
+ transform: p ? "translateY(-120px)" : `translateY(${g}px)`,
1644
1645
  // Only animate transform when not leaving, animate opacity always
1645
- transition: u ? "opacity 300ms ease-out" : "transform 300ms ease-out, opacity 300ms ease-out",
1646
- opacity: u ? 0 : 1,
1646
+ transition: f ? "opacity 300ms ease-out" : "transform 300ms ease-out, opacity 300ms ease-out",
1647
+ opacity: f ? 0 : 1,
1647
1648
  width: "100%"
1648
1649
  },
1649
1650
  children: /* @__PURE__ */ s($t, { notification: d })
@@ -1969,37 +1970,37 @@ class Bt extends xe.Component {
1969
1970
  }
1970
1971
  }
1971
1972
  function Fe({ appId: e, isActive: t, onClose: n }) {
1972
- const { t: r } = J(), o = oe.get(e), [i, l] = T(""), [a, d] = T(null), [f, u] = T(null), [w, c] = T(!1), [p, b] = T(!1);
1973
+ const { t: r } = J(), o = oe.get(e), [i, l] = T(""), [a, d] = T(null), [p, f] = T(null), [g, c] = T(!1), [u, w] = T(!1);
1973
1974
  xe.useEffect(() => {
1974
1975
  o != null && o.titleKey && l(r(o.titleKey));
1975
1976
  }, [o, r]);
1976
- const g = W((x) => {
1977
+ const m = O((x) => {
1977
1978
  l(x);
1978
- }, []), v = W((x) => {
1979
+ }, []), v = O((x) => {
1979
1980
  d(() => x);
1980
- }, []), N = W(() => {
1981
+ }, []), N = O(() => {
1981
1982
  d(null);
1982
- }, []), h = W((x) => {
1983
- u(x);
1984
- }, []), k = W(() => {
1985
- u(null);
1986
- }, []), m = W((x) => {
1983
+ }, []), h = O((x) => {
1984
+ f(x);
1985
+ }, []), k = O(() => {
1986
+ f(null);
1987
+ }, []), b = O((x) => {
1987
1988
  c(x);
1988
- }, []), A = W((x) => {
1989
- b(x);
1990
- }, []), E = ge(() => ({
1991
- setTitle: g,
1989
+ }, []), S = O((x) => {
1990
+ w(x);
1991
+ }, []), R = ge(() => ({
1992
+ setTitle: m,
1992
1993
  setBackHandler: v,
1993
1994
  clearBackHandler: N,
1994
1995
  setToolbar: h,
1995
1996
  clearToolbar: k,
1996
- setHideBackButton: m,
1997
- setHideTitleBar: A,
1997
+ setHideBackButton: b,
1998
+ setHideTitleBar: S,
1998
1999
  close: n
1999
- }), [g, v, N, h, k, m, A, n]);
2000
+ }), [m, v, N, h, k, b, S, n]);
2000
2001
  if (!o)
2001
2002
  return null;
2002
- const M = o.component, z = !o.hideTitleBar && !p;
2003
+ const I = o.component, z = !o.hideTitleBar && !u;
2003
2004
  return /* @__PURE__ */ y(
2004
2005
  "div",
2005
2006
  {
@@ -2016,8 +2017,8 @@ function Fe({ appId: e, isActive: t, onClose: n }) {
2016
2017
  title: i,
2017
2018
  onClose: n,
2018
2019
  onBack: a ?? void 0,
2019
- toolbar: f,
2020
- hideBackButton: w
2020
+ toolbar: p,
2021
+ hideBackButton: g
2021
2022
  }
2022
2023
  ),
2023
2024
  /* @__PURE__ */ s(
@@ -2033,7 +2034,7 @@ function Fe({ appId: e, isActive: t, onClose: n }) {
2033
2034
  backgroundColor: "var(--nc-bg-secondary)",
2034
2035
  position: "relative"
2035
2036
  },
2036
- children: /* @__PURE__ */ s(Oe.Provider, { value: E, children: /* @__PURE__ */ s(Bt, { appId: e, children: /* @__PURE__ */ s(
2037
+ children: /* @__PURE__ */ s(Oe.Provider, { value: R, children: /* @__PURE__ */ s(Bt, { appId: e, children: /* @__PURE__ */ s(
2037
2038
  rt,
2038
2039
  {
2039
2040
  fallback: /* @__PURE__ */ s(
@@ -2048,7 +2049,7 @@ function Fe({ appId: e, isActive: t, onClose: n }) {
2048
2049
  children: /* @__PURE__ */ s(Be, {})
2049
2050
  }
2050
2051
  ),
2051
- children: /* @__PURE__ */ s(M, {})
2052
+ children: /* @__PURE__ */ s(I, {})
2052
2053
  }
2053
2054
  ) }) })
2054
2055
  }
@@ -2076,7 +2077,7 @@ function Jn({ children: e }) {
2076
2077
  height: o
2077
2078
  };
2078
2079
  });
2079
- return L(() => {
2080
+ return B(() => {
2080
2081
  const r = () => {
2081
2082
  const o = window.innerWidth, i = window.innerHeight;
2082
2083
  n({
@@ -2201,27 +2202,27 @@ const ke = "-", Dt = (e) => {
2201
2202
  experimentalParseClassName: n
2202
2203
  } = e, r = t.length === 1, o = t[0], i = t.length, l = (a) => {
2203
2204
  const d = [];
2204
- let f = 0, u = 0, w;
2205
+ let p = 0, f = 0, g;
2205
2206
  for (let v = 0; v < a.length; v++) {
2206
2207
  let N = a[v];
2207
- if (f === 0) {
2208
+ if (p === 0) {
2208
2209
  if (N === o && (r || a.slice(v, v + i) === t)) {
2209
- d.push(a.slice(u, v)), u = v + i;
2210
+ d.push(a.slice(f, v)), f = v + i;
2210
2211
  continue;
2211
2212
  }
2212
2213
  if (N === "/") {
2213
- w = v;
2214
+ g = v;
2214
2215
  continue;
2215
2216
  }
2216
2217
  }
2217
- N === "[" ? f++ : N === "]" && f--;
2218
+ N === "[" ? p++ : N === "]" && p--;
2218
2219
  }
2219
- const c = d.length === 0 ? a : a.substring(u), p = c.startsWith(Ke), b = p ? c.substring(1) : c, g = w && w > u ? w - u : void 0;
2220
+ const c = d.length === 0 ? a : a.substring(f), u = c.startsWith(Ke), w = u ? c.substring(1) : c, m = g && g > f ? g - f : void 0;
2220
2221
  return {
2221
2222
  modifiers: d,
2222
- hasImportantModifier: p,
2223
- baseClassName: b,
2224
- maybePostfixModifierPosition: g
2223
+ hasImportantModifier: u,
2224
+ baseClassName: w,
2225
+ maybePostfixModifierPosition: m
2225
2226
  };
2226
2227
  };
2227
2228
  return n ? (a) => n({
@@ -2248,34 +2249,34 @@ const ke = "-", Dt = (e) => {
2248
2249
  } = t, i = [], l = e.trim().split(Kt);
2249
2250
  let a = "";
2250
2251
  for (let d = l.length - 1; d >= 0; d -= 1) {
2251
- const f = l[d], {
2252
- modifiers: u,
2253
- hasImportantModifier: w,
2252
+ const p = l[d], {
2253
+ modifiers: f,
2254
+ hasImportantModifier: g,
2254
2255
  baseClassName: c,
2255
- maybePostfixModifierPosition: p
2256
- } = n(f);
2257
- let b = !!p, g = r(b ? c.substring(0, p) : c);
2258
- if (!g) {
2259
- if (!b) {
2260
- a = f + (a.length > 0 ? " " + a : a);
2256
+ maybePostfixModifierPosition: u
2257
+ } = n(p);
2258
+ let w = !!u, m = r(w ? c.substring(0, u) : c);
2259
+ if (!m) {
2260
+ if (!w) {
2261
+ a = p + (a.length > 0 ? " " + a : a);
2261
2262
  continue;
2262
2263
  }
2263
- if (g = r(c), !g) {
2264
- a = f + (a.length > 0 ? " " + a : a);
2264
+ if (m = r(c), !m) {
2265
+ a = p + (a.length > 0 ? " " + a : a);
2265
2266
  continue;
2266
2267
  }
2267
- b = !1;
2268
+ w = !1;
2268
2269
  }
2269
- const v = Yt(u).join(":"), N = w ? v + Ke : v, h = N + g;
2270
+ const v = Yt(f).join(":"), N = g ? v + Ke : v, h = N + m;
2270
2271
  if (i.includes(h))
2271
2272
  continue;
2272
2273
  i.push(h);
2273
- const k = o(g, b);
2274
- for (let m = 0; m < k.length; ++m) {
2275
- const A = k[m];
2276
- i.push(N + A);
2274
+ const k = o(m, w);
2275
+ for (let b = 0; b < k.length; ++b) {
2276
+ const S = k[b];
2277
+ i.push(N + S);
2277
2278
  }
2278
- a = f + (a.length > 0 ? " " + a : a);
2279
+ a = p + (a.length > 0 ? " " + a : a);
2279
2280
  }
2280
2281
  return a;
2281
2282
  };
@@ -2296,24 +2297,24 @@ const _e = (e) => {
2296
2297
  function qt(e, ...t) {
2297
2298
  let n, r, o, i = l;
2298
2299
  function l(d) {
2299
- const f = t.reduce((u, w) => w(u), e());
2300
- return n = jt(f), r = n.cache.get, o = n.cache.set, i = a, a(d);
2300
+ const p = t.reduce((f, g) => g(f), e());
2301
+ return n = jt(p), r = n.cache.get, o = n.cache.set, i = a, a(d);
2301
2302
  }
2302
2303
  function a(d) {
2303
- const f = r(d);
2304
- if (f)
2305
- return f;
2306
- const u = _t(d, n);
2307
- return o(d, u), u;
2304
+ const p = r(d);
2305
+ if (p)
2306
+ return p;
2307
+ const f = _t(d, n);
2308
+ return o(d, f), f;
2308
2309
  }
2309
2310
  return function() {
2310
2311
  return i(Ut.apply(null, arguments));
2311
2312
  };
2312
2313
  }
2313
- const B = (e) => {
2314
+ const D = (e) => {
2314
2315
  const t = (n) => n[e] || [];
2315
2316
  return t.isThemeGetter = !0, t;
2316
- }, Ue = /^\[(?:([a-z-]+):)?(.+)\]$/i, Xt = /^\d+\/\d+$/, Jt = /* @__PURE__ */ new Set(["px", "full", "screen"]), Qt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Zt = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, en = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, tn = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, nn = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, G = (e) => re(e) || Jt.has(e) || Xt.test(e), U = (e) => ie(e, "length", un), re = (e) => !!e && !Number.isNaN(Number(e)), be = (e) => ie(e, "number", re), le = (e) => !!e && Number.isInteger(Number(e)), rn = (e) => e.endsWith("%") && re(e.slice(0, -1)), $ = (e) => Ue.test(e), q = (e) => Qt.test(e), on = /* @__PURE__ */ new Set(["length", "size", "percentage"]), sn = (e) => ie(e, on, qe), cn = (e) => ie(e, "position", qe), an = /* @__PURE__ */ new Set(["image", "url"]), ln = (e) => ie(e, an, fn), dn = (e) => ie(e, "", pn), de = () => !0, ie = (e, t, n) => {
2317
+ }, Ue = /^\[(?:([a-z-]+):)?(.+)\]$/i, Xt = /^\d+\/\d+$/, Jt = /* @__PURE__ */ new Set(["px", "full", "screen"]), Qt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Zt = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, en = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, tn = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, nn = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, G = (e) => re(e) || Jt.has(e) || Xt.test(e), U = (e) => ie(e, "length", un), re = (e) => !!e && !Number.isNaN(Number(e)), be = (e) => ie(e, "number", re), le = (e) => !!e && Number.isInteger(Number(e)), rn = (e) => e.endsWith("%") && re(e.slice(0, -1)), M = (e) => Ue.test(e), q = (e) => Qt.test(e), on = /* @__PURE__ */ new Set(["length", "size", "percentage"]), sn = (e) => ie(e, on, qe), cn = (e) => ie(e, "position", qe), an = /* @__PURE__ */ new Set(["image", "url"]), ln = (e) => ie(e, an, fn), dn = (e) => ie(e, "", pn), de = () => !0, ie = (e, t, n) => {
2317
2318
  const r = Ue.exec(e);
2318
2319
  return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
2319
2320
  }, un = (e) => (
@@ -2322,36 +2323,36 @@ const B = (e) => {
2322
2323
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
2323
2324
  Zt.test(e) && !en.test(e)
2324
2325
  ), qe = () => !1, pn = (e) => tn.test(e), fn = (e) => nn.test(e), hn = () => {
2325
- const e = B("colors"), t = B("spacing"), n = B("blur"), r = B("brightness"), o = B("borderColor"), i = B("borderRadius"), l = B("borderSpacing"), a = B("borderWidth"), d = B("contrast"), f = B("grayscale"), u = B("hueRotate"), w = B("invert"), c = B("gap"), p = B("gradientColorStops"), b = B("gradientColorStopPositions"), g = B("inset"), v = B("margin"), N = B("opacity"), h = B("padding"), k = B("saturate"), m = B("scale"), A = B("sepia"), E = B("skew"), M = B("space"), z = B("translate"), x = () => ["auto", "contain", "none"], C = () => ["auto", "hidden", "clip", "visible", "scroll"], I = () => ["auto", $, t], S = () => [$, t], O = () => ["", G, U], R = () => ["auto", re, $], P = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], D = () => ["solid", "dashed", "dotted", "double", "none"], ee = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], Q = () => ["", "0", $], ce = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], F = () => [re, $];
2326
+ const e = D("colors"), t = D("spacing"), n = D("blur"), r = D("brightness"), o = D("borderColor"), i = D("borderRadius"), l = D("borderSpacing"), a = D("borderWidth"), d = D("contrast"), p = D("grayscale"), f = D("hueRotate"), g = D("invert"), c = D("gap"), u = D("gradientColorStops"), w = D("gradientColorStopPositions"), m = D("inset"), v = D("margin"), N = D("opacity"), h = D("padding"), k = D("saturate"), b = D("scale"), S = D("sepia"), R = D("skew"), I = D("space"), z = D("translate"), x = () => ["auto", "contain", "none"], E = () => ["auto", "hidden", "clip", "visible", "scroll"], A = () => ["auto", M, t], C = () => [M, t], L = () => ["", G, U], $ = () => ["auto", re, M], P = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], H = () => ["solid", "dashed", "dotted", "double", "none"], ee = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], Q = () => ["", "0", M], ce = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], F = () => [re, M];
2326
2327
  return {
2327
2328
  cacheSize: 500,
2328
2329
  separator: ":",
2329
2330
  theme: {
2330
2331
  colors: [de],
2331
2332
  spacing: [G, U],
2332
- blur: ["none", "", q, $],
2333
+ blur: ["none", "", q, M],
2333
2334
  brightness: F(),
2334
2335
  borderColor: [e],
2335
- borderRadius: ["none", "", "full", q, $],
2336
- borderSpacing: S(),
2337
- borderWidth: O(),
2336
+ borderRadius: ["none", "", "full", q, M],
2337
+ borderSpacing: C(),
2338
+ borderWidth: L(),
2338
2339
  contrast: F(),
2339
2340
  grayscale: Q(),
2340
2341
  hueRotate: F(),
2341
2342
  invert: Q(),
2342
- gap: S(),
2343
+ gap: C(),
2343
2344
  gradientColorStops: [e],
2344
2345
  gradientColorStopPositions: [rn, U],
2345
- inset: I(),
2346
- margin: I(),
2346
+ inset: A(),
2347
+ margin: A(),
2347
2348
  opacity: F(),
2348
- padding: S(),
2349
+ padding: C(),
2349
2350
  saturate: F(),
2350
2351
  scale: F(),
2351
2352
  sepia: Q(),
2352
2353
  skew: F(),
2353
- space: S(),
2354
- translate: S()
2354
+ space: C(),
2355
+ translate: C()
2355
2356
  },
2356
2357
  classGroups: {
2357
2358
  // Layout
@@ -2360,7 +2361,7 @@ const B = (e) => {
2360
2361
  * @see https://tailwindcss.com/docs/aspect-ratio
2361
2362
  */
2362
2363
  aspect: [{
2363
- aspect: ["auto", "square", "video", $]
2364
+ aspect: ["auto", "square", "video", M]
2364
2365
  }],
2365
2366
  /**
2366
2367
  * Container
@@ -2445,28 +2446,28 @@ const B = (e) => {
2445
2446
  * @see https://tailwindcss.com/docs/object-position
2446
2447
  */
2447
2448
  "object-position": [{
2448
- object: [...P(), $]
2449
+ object: [...P(), M]
2449
2450
  }],
2450
2451
  /**
2451
2452
  * Overflow
2452
2453
  * @see https://tailwindcss.com/docs/overflow
2453
2454
  */
2454
2455
  overflow: [{
2455
- overflow: C()
2456
+ overflow: E()
2456
2457
  }],
2457
2458
  /**
2458
2459
  * Overflow X
2459
2460
  * @see https://tailwindcss.com/docs/overflow
2460
2461
  */
2461
2462
  "overflow-x": [{
2462
- "overflow-x": C()
2463
+ "overflow-x": E()
2463
2464
  }],
2464
2465
  /**
2465
2466
  * Overflow Y
2466
2467
  * @see https://tailwindcss.com/docs/overflow
2467
2468
  */
2468
2469
  "overflow-y": [{
2469
- "overflow-y": C()
2470
+ "overflow-y": E()
2470
2471
  }],
2471
2472
  /**
2472
2473
  * Overscroll Behavior
@@ -2499,63 +2500,63 @@ const B = (e) => {
2499
2500
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2500
2501
  */
2501
2502
  inset: [{
2502
- inset: [g]
2503
+ inset: [m]
2503
2504
  }],
2504
2505
  /**
2505
2506
  * Right / Left
2506
2507
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2507
2508
  */
2508
2509
  "inset-x": [{
2509
- "inset-x": [g]
2510
+ "inset-x": [m]
2510
2511
  }],
2511
2512
  /**
2512
2513
  * Top / Bottom
2513
2514
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2514
2515
  */
2515
2516
  "inset-y": [{
2516
- "inset-y": [g]
2517
+ "inset-y": [m]
2517
2518
  }],
2518
2519
  /**
2519
2520
  * Start
2520
2521
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2521
2522
  */
2522
2523
  start: [{
2523
- start: [g]
2524
+ start: [m]
2524
2525
  }],
2525
2526
  /**
2526
2527
  * End
2527
2528
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2528
2529
  */
2529
2530
  end: [{
2530
- end: [g]
2531
+ end: [m]
2531
2532
  }],
2532
2533
  /**
2533
2534
  * Top
2534
2535
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2535
2536
  */
2536
2537
  top: [{
2537
- top: [g]
2538
+ top: [m]
2538
2539
  }],
2539
2540
  /**
2540
2541
  * Right
2541
2542
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2542
2543
  */
2543
2544
  right: [{
2544
- right: [g]
2545
+ right: [m]
2545
2546
  }],
2546
2547
  /**
2547
2548
  * Bottom
2548
2549
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2549
2550
  */
2550
2551
  bottom: [{
2551
- bottom: [g]
2552
+ bottom: [m]
2552
2553
  }],
2553
2554
  /**
2554
2555
  * Left
2555
2556
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2556
2557
  */
2557
2558
  left: [{
2558
- left: [g]
2559
+ left: [m]
2559
2560
  }],
2560
2561
  /**
2561
2562
  * Visibility
@@ -2567,7 +2568,7 @@ const B = (e) => {
2567
2568
  * @see https://tailwindcss.com/docs/z-index
2568
2569
  */
2569
2570
  z: [{
2570
- z: ["auto", le, $]
2571
+ z: ["auto", le, M]
2571
2572
  }],
2572
2573
  // Flexbox and Grid
2573
2574
  /**
@@ -2575,7 +2576,7 @@ const B = (e) => {
2575
2576
  * @see https://tailwindcss.com/docs/flex-basis
2576
2577
  */
2577
2578
  basis: [{
2578
- basis: I()
2579
+ basis: A()
2579
2580
  }],
2580
2581
  /**
2581
2582
  * Flex Direction
@@ -2596,7 +2597,7 @@ const B = (e) => {
2596
2597
  * @see https://tailwindcss.com/docs/flex
2597
2598
  */
2598
2599
  flex: [{
2599
- flex: ["1", "auto", "initial", "none", $]
2600
+ flex: ["1", "auto", "initial", "none", M]
2600
2601
  }],
2601
2602
  /**
2602
2603
  * Flex Grow
@@ -2617,7 +2618,7 @@ const B = (e) => {
2617
2618
  * @see https://tailwindcss.com/docs/order
2618
2619
  */
2619
2620
  order: [{
2620
- order: ["first", "last", "none", le, $]
2621
+ order: ["first", "last", "none", le, M]
2621
2622
  }],
2622
2623
  /**
2623
2624
  * Grid Template Columns
@@ -2632,22 +2633,22 @@ const B = (e) => {
2632
2633
  */
2633
2634
  "col-start-end": [{
2634
2635
  col: ["auto", {
2635
- span: ["full", le, $]
2636
- }, $]
2636
+ span: ["full", le, M]
2637
+ }, M]
2637
2638
  }],
2638
2639
  /**
2639
2640
  * Grid Column Start
2640
2641
  * @see https://tailwindcss.com/docs/grid-column
2641
2642
  */
2642
2643
  "col-start": [{
2643
- "col-start": R()
2644
+ "col-start": $()
2644
2645
  }],
2645
2646
  /**
2646
2647
  * Grid Column End
2647
2648
  * @see https://tailwindcss.com/docs/grid-column
2648
2649
  */
2649
2650
  "col-end": [{
2650
- "col-end": R()
2651
+ "col-end": $()
2651
2652
  }],
2652
2653
  /**
2653
2654
  * Grid Template Rows
@@ -2662,22 +2663,22 @@ const B = (e) => {
2662
2663
  */
2663
2664
  "row-start-end": [{
2664
2665
  row: ["auto", {
2665
- span: [le, $]
2666
- }, $]
2666
+ span: [le, M]
2667
+ }, M]
2667
2668
  }],
2668
2669
  /**
2669
2670
  * Grid Row Start
2670
2671
  * @see https://tailwindcss.com/docs/grid-row
2671
2672
  */
2672
2673
  "row-start": [{
2673
- "row-start": R()
2674
+ "row-start": $()
2674
2675
  }],
2675
2676
  /**
2676
2677
  * Grid Row End
2677
2678
  * @see https://tailwindcss.com/docs/grid-row
2678
2679
  */
2679
2680
  "row-end": [{
2680
- "row-end": R()
2681
+ "row-end": $()
2681
2682
  }],
2682
2683
  /**
2683
2684
  * Grid Auto Flow
@@ -2691,14 +2692,14 @@ const B = (e) => {
2691
2692
  * @see https://tailwindcss.com/docs/grid-auto-columns
2692
2693
  */
2693
2694
  "auto-cols": [{
2694
- "auto-cols": ["auto", "min", "max", "fr", $]
2695
+ "auto-cols": ["auto", "min", "max", "fr", M]
2695
2696
  }],
2696
2697
  /**
2697
2698
  * Grid Auto Rows
2698
2699
  * @see https://tailwindcss.com/docs/grid-auto-rows
2699
2700
  */
2700
2701
  "auto-rows": [{
2701
- "auto-rows": ["auto", "min", "max", "fr", $]
2702
+ "auto-rows": ["auto", "min", "max", "fr", M]
2702
2703
  }],
2703
2704
  /**
2704
2705
  * Gap
@@ -2916,7 +2917,7 @@ const B = (e) => {
2916
2917
  * @see https://tailwindcss.com/docs/space
2917
2918
  */
2918
2919
  "space-x": [{
2919
- "space-x": [M]
2920
+ "space-x": [I]
2920
2921
  }],
2921
2922
  /**
2922
2923
  * Space Between X Reverse
@@ -2928,7 +2929,7 @@ const B = (e) => {
2928
2929
  * @see https://tailwindcss.com/docs/space
2929
2930
  */
2930
2931
  "space-y": [{
2931
- "space-y": [M]
2932
+ "space-y": [I]
2932
2933
  }],
2933
2934
  /**
2934
2935
  * Space Between Y Reverse
@@ -2941,21 +2942,21 @@ const B = (e) => {
2941
2942
  * @see https://tailwindcss.com/docs/width
2942
2943
  */
2943
2944
  w: [{
2944
- w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", $, t]
2945
+ w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", M, t]
2945
2946
  }],
2946
2947
  /**
2947
2948
  * Min-Width
2948
2949
  * @see https://tailwindcss.com/docs/min-width
2949
2950
  */
2950
2951
  "min-w": [{
2951
- "min-w": [$, t, "min", "max", "fit"]
2952
+ "min-w": [M, t, "min", "max", "fit"]
2952
2953
  }],
2953
2954
  /**
2954
2955
  * Max-Width
2955
2956
  * @see https://tailwindcss.com/docs/max-width
2956
2957
  */
2957
2958
  "max-w": [{
2958
- "max-w": [$, t, "none", "full", "min", "max", "fit", "prose", {
2959
+ "max-w": [M, t, "none", "full", "min", "max", "fit", "prose", {
2959
2960
  screen: [q]
2960
2961
  }, q]
2961
2962
  }],
@@ -2964,28 +2965,28 @@ const B = (e) => {
2964
2965
  * @see https://tailwindcss.com/docs/height
2965
2966
  */
2966
2967
  h: [{
2967
- h: [$, t, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
2968
+ h: [M, t, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
2968
2969
  }],
2969
2970
  /**
2970
2971
  * Min-Height
2971
2972
  * @see https://tailwindcss.com/docs/min-height
2972
2973
  */
2973
2974
  "min-h": [{
2974
- "min-h": [$, t, "min", "max", "fit", "svh", "lvh", "dvh"]
2975
+ "min-h": [M, t, "min", "max", "fit", "svh", "lvh", "dvh"]
2975
2976
  }],
2976
2977
  /**
2977
2978
  * Max-Height
2978
2979
  * @see https://tailwindcss.com/docs/max-height
2979
2980
  */
2980
2981
  "max-h": [{
2981
- "max-h": [$, t, "min", "max", "fit", "svh", "lvh", "dvh"]
2982
+ "max-h": [M, t, "min", "max", "fit", "svh", "lvh", "dvh"]
2982
2983
  }],
2983
2984
  /**
2984
2985
  * Size
2985
2986
  * @see https://tailwindcss.com/docs/size
2986
2987
  */
2987
2988
  size: [{
2988
- size: [$, t, "auto", "min", "max", "fit"]
2989
+ size: [M, t, "auto", "min", "max", "fit"]
2989
2990
  }],
2990
2991
  // Typography
2991
2992
  /**
@@ -3054,7 +3055,7 @@ const B = (e) => {
3054
3055
  * @see https://tailwindcss.com/docs/letter-spacing
3055
3056
  */
3056
3057
  tracking: [{
3057
- tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", $]
3058
+ tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", M]
3058
3059
  }],
3059
3060
  /**
3060
3061
  * Line Clamp
@@ -3068,21 +3069,21 @@ const B = (e) => {
3068
3069
  * @see https://tailwindcss.com/docs/line-height
3069
3070
  */
3070
3071
  leading: [{
3071
- leading: ["none", "tight", "snug", "normal", "relaxed", "loose", G, $]
3072
+ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", G, M]
3072
3073
  }],
3073
3074
  /**
3074
3075
  * List Style Image
3075
3076
  * @see https://tailwindcss.com/docs/list-style-image
3076
3077
  */
3077
3078
  "list-image": [{
3078
- "list-image": ["none", $]
3079
+ "list-image": ["none", M]
3079
3080
  }],
3080
3081
  /**
3081
3082
  * List Style Type
3082
3083
  * @see https://tailwindcss.com/docs/list-style-type
3083
3084
  */
3084
3085
  "list-style-type": [{
3085
- list: ["none", "disc", "decimal", $]
3086
+ list: ["none", "disc", "decimal", M]
3086
3087
  }],
3087
3088
  /**
3088
3089
  * List Style Position
@@ -3137,7 +3138,7 @@ const B = (e) => {
3137
3138
  * @see https://tailwindcss.com/docs/text-decoration-style
3138
3139
  */
3139
3140
  "text-decoration-style": [{
3140
- decoration: [...D(), "wavy"]
3141
+ decoration: [...H(), "wavy"]
3141
3142
  }],
3142
3143
  /**
3143
3144
  * Text Decoration Thickness
@@ -3151,7 +3152,7 @@ const B = (e) => {
3151
3152
  * @see https://tailwindcss.com/docs/text-underline-offset
3152
3153
  */
3153
3154
  "underline-offset": [{
3154
- "underline-offset": ["auto", G, $]
3155
+ "underline-offset": ["auto", G, M]
3155
3156
  }],
3156
3157
  /**
3157
3158
  * Text Decoration Color
@@ -3182,14 +3183,14 @@ const B = (e) => {
3182
3183
  * @see https://tailwindcss.com/docs/text-indent
3183
3184
  */
3184
3185
  indent: [{
3185
- indent: S()
3186
+ indent: C()
3186
3187
  }],
3187
3188
  /**
3188
3189
  * Vertical Alignment
3189
3190
  * @see https://tailwindcss.com/docs/vertical-align
3190
3191
  */
3191
3192
  "vertical-align": [{
3192
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", $]
3193
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", M]
3193
3194
  }],
3194
3195
  /**
3195
3196
  * Whitespace
@@ -3217,7 +3218,7 @@ const B = (e) => {
3217
3218
  * @see https://tailwindcss.com/docs/content
3218
3219
  */
3219
3220
  content: [{
3220
- content: ["none", $]
3221
+ content: ["none", M]
3221
3222
  }],
3222
3223
  // Backgrounds
3223
3224
  /**
@@ -3293,42 +3294,42 @@ const B = (e) => {
3293
3294
  * @see https://tailwindcss.com/docs/gradient-color-stops
3294
3295
  */
3295
3296
  "gradient-from-pos": [{
3296
- from: [b]
3297
+ from: [w]
3297
3298
  }],
3298
3299
  /**
3299
3300
  * Gradient Color Stops Via Position
3300
3301
  * @see https://tailwindcss.com/docs/gradient-color-stops
3301
3302
  */
3302
3303
  "gradient-via-pos": [{
3303
- via: [b]
3304
+ via: [w]
3304
3305
  }],
3305
3306
  /**
3306
3307
  * Gradient Color Stops To Position
3307
3308
  * @see https://tailwindcss.com/docs/gradient-color-stops
3308
3309
  */
3309
3310
  "gradient-to-pos": [{
3310
- to: [b]
3311
+ to: [w]
3311
3312
  }],
3312
3313
  /**
3313
3314
  * Gradient Color Stops From
3314
3315
  * @see https://tailwindcss.com/docs/gradient-color-stops
3315
3316
  */
3316
3317
  "gradient-from": [{
3317
- from: [p]
3318
+ from: [u]
3318
3319
  }],
3319
3320
  /**
3320
3321
  * Gradient Color Stops Via
3321
3322
  * @see https://tailwindcss.com/docs/gradient-color-stops
3322
3323
  */
3323
3324
  "gradient-via": [{
3324
- via: [p]
3325
+ via: [u]
3325
3326
  }],
3326
3327
  /**
3327
3328
  * Gradient Color Stops To
3328
3329
  * @see https://tailwindcss.com/docs/gradient-color-stops
3329
3330
  */
3330
3331
  "gradient-to": [{
3331
- to: [p]
3332
+ to: [u]
3332
3333
  }],
3333
3334
  // Borders
3334
3335
  /**
@@ -3511,7 +3512,7 @@ const B = (e) => {
3511
3512
  * @see https://tailwindcss.com/docs/border-style
3512
3513
  */
3513
3514
  "border-style": [{
3514
- border: [...D(), "hidden"]
3515
+ border: [...H(), "hidden"]
3515
3516
  }],
3516
3517
  /**
3517
3518
  * Divide Width X
@@ -3549,7 +3550,7 @@ const B = (e) => {
3549
3550
  * @see https://tailwindcss.com/docs/divide-style
3550
3551
  */
3551
3552
  "divide-style": [{
3552
- divide: D()
3553
+ divide: H()
3553
3554
  }],
3554
3555
  /**
3555
3556
  * Border Color
@@ -3626,14 +3627,14 @@ const B = (e) => {
3626
3627
  * @see https://tailwindcss.com/docs/outline-style
3627
3628
  */
3628
3629
  "outline-style": [{
3629
- outline: ["", ...D()]
3630
+ outline: ["", ...H()]
3630
3631
  }],
3631
3632
  /**
3632
3633
  * Outline Offset
3633
3634
  * @see https://tailwindcss.com/docs/outline-offset
3634
3635
  */
3635
3636
  "outline-offset": [{
3636
- "outline-offset": [G, $]
3637
+ "outline-offset": [G, M]
3637
3638
  }],
3638
3639
  /**
3639
3640
  * Outline Width
@@ -3654,7 +3655,7 @@ const B = (e) => {
3654
3655
  * @see https://tailwindcss.com/docs/ring-width
3655
3656
  */
3656
3657
  "ring-w": [{
3657
- ring: O()
3658
+ ring: L()
3658
3659
  }],
3659
3660
  /**
3660
3661
  * Ring Width Inset
@@ -3760,28 +3761,28 @@ const B = (e) => {
3760
3761
  * @see https://tailwindcss.com/docs/drop-shadow
3761
3762
  */
3762
3763
  "drop-shadow": [{
3763
- "drop-shadow": ["", "none", q, $]
3764
+ "drop-shadow": ["", "none", q, M]
3764
3765
  }],
3765
3766
  /**
3766
3767
  * Grayscale
3767
3768
  * @see https://tailwindcss.com/docs/grayscale
3768
3769
  */
3769
3770
  grayscale: [{
3770
- grayscale: [f]
3771
+ grayscale: [p]
3771
3772
  }],
3772
3773
  /**
3773
3774
  * Hue Rotate
3774
3775
  * @see https://tailwindcss.com/docs/hue-rotate
3775
3776
  */
3776
3777
  "hue-rotate": [{
3777
- "hue-rotate": [u]
3778
+ "hue-rotate": [f]
3778
3779
  }],
3779
3780
  /**
3780
3781
  * Invert
3781
3782
  * @see https://tailwindcss.com/docs/invert
3782
3783
  */
3783
3784
  invert: [{
3784
- invert: [w]
3785
+ invert: [g]
3785
3786
  }],
3786
3787
  /**
3787
3788
  * Saturate
@@ -3795,7 +3796,7 @@ const B = (e) => {
3795
3796
  * @see https://tailwindcss.com/docs/sepia
3796
3797
  */
3797
3798
  sepia: [{
3798
- sepia: [A]
3799
+ sepia: [S]
3799
3800
  }],
3800
3801
  /**
3801
3802
  * Backdrop Filter
@@ -3831,21 +3832,21 @@ const B = (e) => {
3831
3832
  * @see https://tailwindcss.com/docs/backdrop-grayscale
3832
3833
  */
3833
3834
  "backdrop-grayscale": [{
3834
- "backdrop-grayscale": [f]
3835
+ "backdrop-grayscale": [p]
3835
3836
  }],
3836
3837
  /**
3837
3838
  * Backdrop Hue Rotate
3838
3839
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
3839
3840
  */
3840
3841
  "backdrop-hue-rotate": [{
3841
- "backdrop-hue-rotate": [u]
3842
+ "backdrop-hue-rotate": [f]
3842
3843
  }],
3843
3844
  /**
3844
3845
  * Backdrop Invert
3845
3846
  * @see https://tailwindcss.com/docs/backdrop-invert
3846
3847
  */
3847
3848
  "backdrop-invert": [{
3848
- "backdrop-invert": [w]
3849
+ "backdrop-invert": [g]
3849
3850
  }],
3850
3851
  /**
3851
3852
  * Backdrop Opacity
@@ -3866,7 +3867,7 @@ const B = (e) => {
3866
3867
  * @see https://tailwindcss.com/docs/backdrop-sepia
3867
3868
  */
3868
3869
  "backdrop-sepia": [{
3869
- "backdrop-sepia": [A]
3870
+ "backdrop-sepia": [S]
3870
3871
  }],
3871
3872
  // Tables
3872
3873
  /**
@@ -3917,7 +3918,7 @@ const B = (e) => {
3917
3918
  * @see https://tailwindcss.com/docs/transition-property
3918
3919
  */
3919
3920
  transition: [{
3920
- transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", $]
3921
+ transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", M]
3921
3922
  }],
3922
3923
  /**
3923
3924
  * Transition Duration
@@ -3931,7 +3932,7 @@ const B = (e) => {
3931
3932
  * @see https://tailwindcss.com/docs/transition-timing-function
3932
3933
  */
3933
3934
  ease: [{
3934
- ease: ["linear", "in", "out", "in-out", $]
3935
+ ease: ["linear", "in", "out", "in-out", M]
3935
3936
  }],
3936
3937
  /**
3937
3938
  * Transition Delay
@@ -3945,7 +3946,7 @@ const B = (e) => {
3945
3946
  * @see https://tailwindcss.com/docs/animation
3946
3947
  */
3947
3948
  animate: [{
3948
- animate: ["none", "spin", "ping", "pulse", "bounce", $]
3949
+ animate: ["none", "spin", "ping", "pulse", "bounce", M]
3949
3950
  }],
3950
3951
  // Transforms
3951
3952
  /**
@@ -3960,28 +3961,28 @@ const B = (e) => {
3960
3961
  * @see https://tailwindcss.com/docs/scale
3961
3962
  */
3962
3963
  scale: [{
3963
- scale: [m]
3964
+ scale: [b]
3964
3965
  }],
3965
3966
  /**
3966
3967
  * Scale X
3967
3968
  * @see https://tailwindcss.com/docs/scale
3968
3969
  */
3969
3970
  "scale-x": [{
3970
- "scale-x": [m]
3971
+ "scale-x": [b]
3971
3972
  }],
3972
3973
  /**
3973
3974
  * Scale Y
3974
3975
  * @see https://tailwindcss.com/docs/scale
3975
3976
  */
3976
3977
  "scale-y": [{
3977
- "scale-y": [m]
3978
+ "scale-y": [b]
3978
3979
  }],
3979
3980
  /**
3980
3981
  * Rotate
3981
3982
  * @see https://tailwindcss.com/docs/rotate
3982
3983
  */
3983
3984
  rotate: [{
3984
- rotate: [le, $]
3985
+ rotate: [le, M]
3985
3986
  }],
3986
3987
  /**
3987
3988
  * Translate X
@@ -4002,21 +4003,21 @@ const B = (e) => {
4002
4003
  * @see https://tailwindcss.com/docs/skew
4003
4004
  */
4004
4005
  "skew-x": [{
4005
- "skew-x": [E]
4006
+ "skew-x": [R]
4006
4007
  }],
4007
4008
  /**
4008
4009
  * Skew Y
4009
4010
  * @see https://tailwindcss.com/docs/skew
4010
4011
  */
4011
4012
  "skew-y": [{
4012
- "skew-y": [E]
4013
+ "skew-y": [R]
4013
4014
  }],
4014
4015
  /**
4015
4016
  * Transform Origin
4016
4017
  * @see https://tailwindcss.com/docs/transform-origin
4017
4018
  */
4018
4019
  "transform-origin": [{
4019
- origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", $]
4020
+ origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", M]
4020
4021
  }],
4021
4022
  // Interactivity
4022
4023
  /**
@@ -4038,7 +4039,7 @@ const B = (e) => {
4038
4039
  * @see https://tailwindcss.com/docs/cursor
4039
4040
  */
4040
4041
  cursor: [{
4041
- cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", $]
4042
+ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", M]
4042
4043
  }],
4043
4044
  /**
4044
4045
  * Caret Color
@@ -4073,126 +4074,126 @@ const B = (e) => {
4073
4074
  * @see https://tailwindcss.com/docs/scroll-margin
4074
4075
  */
4075
4076
  "scroll-m": [{
4076
- "scroll-m": S()
4077
+ "scroll-m": C()
4077
4078
  }],
4078
4079
  /**
4079
4080
  * Scroll Margin X
4080
4081
  * @see https://tailwindcss.com/docs/scroll-margin
4081
4082
  */
4082
4083
  "scroll-mx": [{
4083
- "scroll-mx": S()
4084
+ "scroll-mx": C()
4084
4085
  }],
4085
4086
  /**
4086
4087
  * Scroll Margin Y
4087
4088
  * @see https://tailwindcss.com/docs/scroll-margin
4088
4089
  */
4089
4090
  "scroll-my": [{
4090
- "scroll-my": S()
4091
+ "scroll-my": C()
4091
4092
  }],
4092
4093
  /**
4093
4094
  * Scroll Margin Start
4094
4095
  * @see https://tailwindcss.com/docs/scroll-margin
4095
4096
  */
4096
4097
  "scroll-ms": [{
4097
- "scroll-ms": S()
4098
+ "scroll-ms": C()
4098
4099
  }],
4099
4100
  /**
4100
4101
  * Scroll Margin End
4101
4102
  * @see https://tailwindcss.com/docs/scroll-margin
4102
4103
  */
4103
4104
  "scroll-me": [{
4104
- "scroll-me": S()
4105
+ "scroll-me": C()
4105
4106
  }],
4106
4107
  /**
4107
4108
  * Scroll Margin Top
4108
4109
  * @see https://tailwindcss.com/docs/scroll-margin
4109
4110
  */
4110
4111
  "scroll-mt": [{
4111
- "scroll-mt": S()
4112
+ "scroll-mt": C()
4112
4113
  }],
4113
4114
  /**
4114
4115
  * Scroll Margin Right
4115
4116
  * @see https://tailwindcss.com/docs/scroll-margin
4116
4117
  */
4117
4118
  "scroll-mr": [{
4118
- "scroll-mr": S()
4119
+ "scroll-mr": C()
4119
4120
  }],
4120
4121
  /**
4121
4122
  * Scroll Margin Bottom
4122
4123
  * @see https://tailwindcss.com/docs/scroll-margin
4123
4124
  */
4124
4125
  "scroll-mb": [{
4125
- "scroll-mb": S()
4126
+ "scroll-mb": C()
4126
4127
  }],
4127
4128
  /**
4128
4129
  * Scroll Margin Left
4129
4130
  * @see https://tailwindcss.com/docs/scroll-margin
4130
4131
  */
4131
4132
  "scroll-ml": [{
4132
- "scroll-ml": S()
4133
+ "scroll-ml": C()
4133
4134
  }],
4134
4135
  /**
4135
4136
  * Scroll Padding
4136
4137
  * @see https://tailwindcss.com/docs/scroll-padding
4137
4138
  */
4138
4139
  "scroll-p": [{
4139
- "scroll-p": S()
4140
+ "scroll-p": C()
4140
4141
  }],
4141
4142
  /**
4142
4143
  * Scroll Padding X
4143
4144
  * @see https://tailwindcss.com/docs/scroll-padding
4144
4145
  */
4145
4146
  "scroll-px": [{
4146
- "scroll-px": S()
4147
+ "scroll-px": C()
4147
4148
  }],
4148
4149
  /**
4149
4150
  * Scroll Padding Y
4150
4151
  * @see https://tailwindcss.com/docs/scroll-padding
4151
4152
  */
4152
4153
  "scroll-py": [{
4153
- "scroll-py": S()
4154
+ "scroll-py": C()
4154
4155
  }],
4155
4156
  /**
4156
4157
  * Scroll Padding Start
4157
4158
  * @see https://tailwindcss.com/docs/scroll-padding
4158
4159
  */
4159
4160
  "scroll-ps": [{
4160
- "scroll-ps": S()
4161
+ "scroll-ps": C()
4161
4162
  }],
4162
4163
  /**
4163
4164
  * Scroll Padding End
4164
4165
  * @see https://tailwindcss.com/docs/scroll-padding
4165
4166
  */
4166
4167
  "scroll-pe": [{
4167
- "scroll-pe": S()
4168
+ "scroll-pe": C()
4168
4169
  }],
4169
4170
  /**
4170
4171
  * Scroll Padding Top
4171
4172
  * @see https://tailwindcss.com/docs/scroll-padding
4172
4173
  */
4173
4174
  "scroll-pt": [{
4174
- "scroll-pt": S()
4175
+ "scroll-pt": C()
4175
4176
  }],
4176
4177
  /**
4177
4178
  * Scroll Padding Right
4178
4179
  * @see https://tailwindcss.com/docs/scroll-padding
4179
4180
  */
4180
4181
  "scroll-pr": [{
4181
- "scroll-pr": S()
4182
+ "scroll-pr": C()
4182
4183
  }],
4183
4184
  /**
4184
4185
  * Scroll Padding Bottom
4185
4186
  * @see https://tailwindcss.com/docs/scroll-padding
4186
4187
  */
4187
4188
  "scroll-pb": [{
4188
- "scroll-pb": S()
4189
+ "scroll-pb": C()
4189
4190
  }],
4190
4191
  /**
4191
4192
  * Scroll Padding Left
4192
4193
  * @see https://tailwindcss.com/docs/scroll-padding
4193
4194
  */
4194
4195
  "scroll-pl": [{
4195
- "scroll-pl": S()
4196
+ "scroll-pl": C()
4196
4197
  }],
4197
4198
  /**
4198
4199
  * Scroll Snap Align
@@ -4260,7 +4261,7 @@ const B = (e) => {
4260
4261
  * @see https://tailwindcss.com/docs/will-change
4261
4262
  */
4262
4263
  "will-change": [{
4263
- "will-change": ["auto", "scroll", "contents", "transform", $]
4264
+ "will-change": ["auto", "scroll", "contents", "transform", M]
4264
4265
  }],
4265
4266
  // SVG
4266
4267
  /**
@@ -4356,16 +4357,16 @@ function gn(...e) {
4356
4357
  }
4357
4358
  function Qn({ autoWidth: e = !0, className: t, style: n }) {
4358
4359
  const [r, o] = T(() => j.getActiveAppId()), [i, l] = T(() => V.getRunningApps()), { isMobile: a } = Ye();
4359
- L(() => {
4360
+ B(() => {
4360
4361
  const v = j.subscribe("activeAppId", (N) => {
4361
4362
  o(N);
4362
4363
  });
4363
4364
  return () => {
4364
4365
  v();
4365
4366
  };
4366
- }, []), L(() => V.subscribe(() => {
4367
+ }, []), B(() => V.subscribe(() => {
4367
4368
  l(V.getRunningApps());
4368
- }), []), L(() => {
4369
+ }), []), B(() => {
4369
4370
  if (!new URLSearchParams(window.location.search).has("app")) {
4370
4371
  const h = j.getActiveAppId();
4371
4372
  h && !V.isRunning(h) && V.launchApp(h);
@@ -4373,15 +4374,15 @@ function Qn({ autoWidth: e = !0, className: t, style: n }) {
4373
4374
  }, []);
4374
4375
  const d = (v) => {
4375
4376
  V.closeApp(v);
4376
- }, f = r ? oe.get(r) : null, w = (f == null ? void 0 : f.width) ?? 400, c = r !== null, g = { ...{
4377
+ }, p = r ? oe.get(r) : null, g = (p == null ? void 0 : p.width) ?? 400, c = r !== null, m = { ...{
4377
4378
  overflow: "hidden",
4378
4379
  display: c ? "flex" : "none",
4379
4380
  flexDirection: "column",
4380
4381
  flexShrink: 0,
4381
4382
  // Only set width if autoWidth is enabled
4382
- ...e && c ? { width: a ? "100%" : w } : {}
4383
+ ...e && c ? { width: a ? "100%" : g } : {}
4383
4384
  }, ...n };
4384
- return /* @__PURE__ */ s("div", { className: gn("nc-app-panel", t), style: g, children: i.map((v) => /* @__PURE__ */ s(
4385
+ return /* @__PURE__ */ s("div", { className: gn("nc-app-panel", t), style: m, children: i.map((v) => /* @__PURE__ */ s(
4385
4386
  Fe,
4386
4387
  {
4387
4388
  appId: v.appId,
@@ -4393,47 +4394,47 @@ function Qn({ autoWidth: e = !0, className: t, style: n }) {
4393
4394
  }
4394
4395
  function Zn({ pinnedAppIds: e, className: t = "" }) {
4395
4396
  const { isMobile: n } = Ye(), [r, o] = T(() => j.getActiveAppId()), [i, l] = T(() => V.getRunningApps());
4396
- L(() => {
4397
- const c = j.subscribe("activeAppId", (p) => {
4398
- o(p);
4397
+ B(() => {
4398
+ const c = j.subscribe("activeAppId", (u) => {
4399
+ o(u);
4399
4400
  });
4400
4401
  return () => {
4401
4402
  c();
4402
4403
  };
4403
- }, []), L(() => V.subscribe(() => {
4404
+ }, []), B(() => V.subscribe(() => {
4404
4405
  l(V.getRunningApps());
4405
4406
  }), []);
4406
4407
  const a = (c) => {
4407
4408
  r === c ? V.setActiveApp(null) : V.launchApp(c);
4408
- }, d = e.map((c) => oe.get(c)).filter((c) => !!c), f = i.filter((c) => !e.includes(c.appId)).map((c) => ({ running: c, def: oe.get(c.appId) })).filter((c) => !!c.def), u = (c) => i.some((p) => p.appId === c), w = n ? 24 : 28;
4409
+ }, d = e.map((c) => oe.get(c)).filter((c) => !!c), p = i.filter((c) => !e.includes(c.appId)).map((c) => ({ running: c, def: oe.get(c.appId) })).filter((c) => !!c.def), f = (c) => i.some((u) => u.appId === c), g = n ? 24 : 28;
4409
4410
  return /* @__PURE__ */ y("div", { className: `nc-app-taskbar ${n ? "nc-mobile" : "nc-desktop"} ${t}`, children: [
4410
4411
  d.map((c) => {
4411
- const p = c.icon, b = r === c.id, g = u(c.id);
4412
+ const u = c.icon, w = r === c.id, m = f(c.id);
4412
4413
  return /* @__PURE__ */ y(
4413
4414
  "button",
4414
4415
  {
4415
- className: `nc-app-taskbar-button ${b ? "nc-active" : ""} ${g ? "nc-running" : ""}`,
4416
+ className: `nc-app-taskbar-button ${w ? "nc-active" : ""} ${m ? "nc-running" : ""}`,
4416
4417
  onClick: () => a(c.id),
4417
4418
  title: c.titleKey || c.id,
4418
4419
  children: [
4419
- /* @__PURE__ */ s(p, { size: w }),
4420
- g && /* @__PURE__ */ s("span", { className: "nc-app-taskbar-indicator" })
4420
+ /* @__PURE__ */ s(u, { size: g }),
4421
+ m && /* @__PURE__ */ s("span", { className: "nc-app-taskbar-indicator" })
4421
4422
  ]
4422
4423
  },
4423
4424
  c.id
4424
4425
  );
4425
4426
  }),
4426
- f.length > 0 && /* @__PURE__ */ s("div", { className: "nc-app-taskbar-separator" }),
4427
- f.map(({ running: c, def: p }) => {
4428
- const b = p.icon, g = r === c.appId;
4427
+ p.length > 0 && /* @__PURE__ */ s("div", { className: "nc-app-taskbar-separator" }),
4428
+ p.map(({ running: c, def: u }) => {
4429
+ const w = u.icon, m = r === c.appId;
4429
4430
  return /* @__PURE__ */ y(
4430
4431
  "button",
4431
4432
  {
4432
- className: `nc-app-taskbar-button ${g ? "nc-active" : ""} nc-running`,
4433
+ className: `nc-app-taskbar-button ${m ? "nc-active" : ""} nc-running`,
4433
4434
  onClick: () => a(c.appId),
4434
- title: p.titleKey || p.id,
4435
+ title: u.titleKey || u.id,
4435
4436
  children: [
4436
- /* @__PURE__ */ s(b, { size: w }),
4437
+ /* @__PURE__ */ s(w, { size: g }),
4437
4438
  /* @__PURE__ */ s("span", { className: "nc-app-taskbar-indicator" })
4438
4439
  ]
4439
4440
  },
@@ -4494,44 +4495,44 @@ function nr() {
4494
4495
  }
4495
4496
  const Ae = se(null);
4496
4497
  function rr({ rootView: e, children: t }) {
4497
- const { t: n } = J(), r = zt(), [o, i] = T([e]), [l, a] = T([null]), d = W((m, A) => {
4498
- a((E) => {
4499
- const M = [...E];
4500
- return M[m] = A, M;
4498
+ const { t: n } = J(), r = zt(), [o, i] = T([e]), [l, a] = T([null]), d = O((b, S) => {
4499
+ a((R) => {
4500
+ const I = [...R];
4501
+ return I[b] = S, I;
4501
4502
  });
4502
- }, []), f = W((m) => {
4503
- a((A) => {
4504
- const E = [...A];
4505
- return E[m] = null, E;
4503
+ }, []), p = O((b) => {
4504
+ a((S) => {
4505
+ const R = [...S];
4506
+ return R[b] = null, R;
4506
4507
  });
4507
- }, []), u = W((m) => {
4508
- i((A) => [...A, m]), a((A) => [...A, null]);
4509
- }, []), w = W(() => {
4510
- i((m) => m.length <= 1 ? m : m.slice(0, -1)), a((m) => m.slice(0, -1));
4511
- }, []), c = W(() => {
4508
+ }, []), f = O((b) => {
4509
+ i((S) => [...S, b]), a((S) => [...S, null]);
4510
+ }, []), g = O(() => {
4511
+ i((b) => b.length <= 1 ? b : b.slice(0, -1)), a((b) => b.slice(0, -1));
4512
+ }, []), c = O(() => {
4512
4513
  i([e]), a([null]);
4513
- }, [e]), p = o.length, b = p > 1, g = o.length - 1, v = o[o.length - 1], N = v != null && v.titleKey ? n(v.titleKey) : (v == null ? void 0 : v.title) ?? "";
4514
- L(() => {
4514
+ }, [e]), u = o.length, w = u > 1, m = o.length - 1, v = o[o.length - 1], N = v != null && v.titleKey ? n(v.titleKey) : (v == null ? void 0 : v.title) ?? "";
4515
+ B(() => {
4515
4516
  r.setTitle(N);
4516
- }, [N, r]), L(() => {
4517
- b ? r.setBackHandler(w) : r.clearBackHandler();
4518
- }, [b, w, r]), L(() => {
4519
- const m = l[l.length - 1];
4520
- m ? r.setToolbar(m) : r.clearToolbar();
4517
+ }, [N, r]), B(() => {
4518
+ w ? r.setBackHandler(g) : r.clearBackHandler();
4519
+ }, [w, g, r]), B(() => {
4520
+ const b = l[l.length - 1];
4521
+ b ? r.setToolbar(b) : r.clearToolbar();
4521
4522
  }, [l, r]);
4522
4523
  const h = {
4523
- push: u,
4524
- pop: w,
4524
+ push: f,
4525
+ pop: g,
4525
4526
  reset: c,
4526
- depth: p,
4527
- canGoBack: b,
4527
+ depth: u,
4528
+ canGoBack: w,
4528
4529
  currentTitle: N
4529
4530
  }, k = {
4530
4531
  stack: o,
4531
4532
  toolbarStack: l,
4532
4533
  updateToolbar: d,
4533
- clearToolbarAt: f,
4534
- topIndex: g
4534
+ clearToolbarAt: p,
4535
+ topIndex: m
4535
4536
  };
4536
4537
  return /* @__PURE__ */ s(Ne.Provider, { value: h, children: /* @__PURE__ */ s(Ae.Provider, { value: k, children: t }) });
4537
4538
  }
@@ -4539,9 +4540,9 @@ function bn({ index: e, children: t }) {
4539
4540
  const n = X(Ae);
4540
4541
  if (!n)
4541
4542
  throw new Error("NavViewProvider must be used within NavStackProvider");
4542
- const { updateToolbar: r, clearToolbarAt: o, topIndex: i } = n, l = W((f) => {
4543
- e === i && r(e, f);
4544
- }, [e, i, r]), a = W(() => {
4543
+ const { updateToolbar: r, clearToolbarAt: o, topIndex: i } = n, l = O((p) => {
4544
+ e === i && r(e, p);
4545
+ }, [e, i, r]), a = O(() => {
4545
4546
  e === i && o(e);
4546
4547
  }, [e, i, o]), d = {
4547
4548
  setToolbar: l,