@kingsimba/nc-ui 0.1.30 → 0.1.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
- var lt = Object.defineProperty;
2
- var dt = (e, t, n) => t in e ? lt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var Z = (e, t, n) => dt(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { jsx as s, jsxs as k, Fragment as ut } from "react/jsx-runtime";
5
- import { d as Ce, E as pt, R as ft, T as ht, g as mt, V as gt, b as bt, a as vt, c as wt } from "./GeneratedIcons-HFZmBTBT.js";
6
- import $e, { useState as R, useRef as V, useMemo as we, useEffect as B, createContext as ce, useContext as te, Children as yt, isValidElement as xt, forwardRef as kt, useImperativeHandle as Nt, useCallback as O, Suspense as At } from "react";
1
+ var dt = Object.defineProperty;
2
+ var ut = (e, t, n) => t in e ? dt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var Q = (e, t, n) => ut(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { jsx as s, jsxs as N, Fragment as pt } from "react/jsx-runtime";
5
+ import { d as $e, E as ft, R as ht, T as mt, g as gt, V as bt, b as vt, a as wt, c as yt } from "./GeneratedIcons-HFZmBTBT.js";
6
+ import Me, { useState as E, useRef as H, useMemo as we, useEffect as z, createContext as ce, useContext as ne, Children as xt, isValidElement as kt, forwardRef as Nt, useImperativeHandle as At, useCallback as V, Suspense as St } from "react";
7
7
  import { createPortal as pe } from "react-dom";
8
- import { useTranslation as X } from "react-i18next";
9
- import St from "i18next";
10
- import { c as Ct } from "./clsx-OuTLNxxd.js";
11
- function Ke({
8
+ import { useTranslation as J } from "react-i18next";
9
+ import Ct from "i18next";
10
+ import { c as $t } from "./clsx-OuTLNxxd.js";
11
+ function _e({
12
12
  size: e = "default",
13
13
  color: t,
14
14
  overlay: n = !1,
@@ -37,7 +37,7 @@ function Ke({
37
37
  );
38
38
  return n ? /* @__PURE__ */ s("div", { className: "nc-activity-indicator-overlay", children: o }) : o;
39
39
  }
40
- function U({ variant: e = "default", block: t, size: n = "default", appearance: r = "default", className: o, disabled: i, textSelectable: c, loading: a, onClick: l, children: u, ...f }) {
40
+ function q({ variant: e = "default", block: t, size: n = "default", appearance: r = "default", className: o, disabled: i, textSelectable: a, loading: c, onClick: l, children: u, ...f }) {
41
41
  const v = [
42
42
  "nc-button",
43
43
  e !== "default" ? `nc-${e}` : "",
@@ -45,21 +45,21 @@ function U({ variant: e = "default", block: t, size: n = "default", appearance:
45
45
  n === "small" ? "nc-small" : "",
46
46
  n === "large" ? "nc-large" : "",
47
47
  r === "transparent" ? "nc-transparent" : "",
48
- i || a ? "nc-disabled" : "",
49
- c ? "nc-text-selectable" : "",
50
- a ? "nc-loading" : "",
48
+ i || c ? "nc-disabled" : "",
49
+ a ? "nc-text-selectable" : "",
50
+ c ? "nc-loading" : "",
51
51
  o ?? ""
52
52
  ].filter(Boolean).join(" ");
53
- return /* @__PURE__ */ k(
53
+ return /* @__PURE__ */ N(
54
54
  "button",
55
55
  {
56
56
  className: v,
57
- disabled: i || a,
57
+ disabled: i || c,
58
58
  onClick: (m) => {
59
- if (!a) {
60
- if (c) {
61
- const w = window.getSelection();
62
- if (w && w.toString().length > 0)
59
+ if (!c) {
60
+ if (a) {
61
+ const y = window.getSelection();
62
+ if (y && y.toString().length > 0)
63
63
  return;
64
64
  }
65
65
  l == null || l(m);
@@ -67,8 +67,8 @@ function U({ variant: e = "default", block: t, size: n = "default", appearance:
67
67
  },
68
68
  ...f,
69
69
  children: [
70
- a && /* @__PURE__ */ s(
71
- Ke,
70
+ c && /* @__PURE__ */ s(
71
+ _e,
72
72
  {
73
73
  size: "small",
74
74
  className: "nc-button-spinner",
@@ -80,64 +80,64 @@ function U({ variant: e = "default", block: t, size: n = "default", appearance:
80
80
  }
81
81
  );
82
82
  }
83
- const $t = {
83
+ const Mt = {
84
84
  info: "primary",
85
85
  success: "success",
86
86
  warning: "warning",
87
87
  error: "danger",
88
88
  danger: "danger"
89
89
  };
90
- function jn({
90
+ function Gn({
91
91
  code: e,
92
92
  text: t,
93
93
  type: n,
94
94
  button: r,
95
95
  onAction: o,
96
96
  children: i,
97
- onClose: c,
98
- className: a = "",
97
+ onClose: a,
98
+ className: c = "",
99
99
  style: l
100
100
  }) {
101
- const u = i ?? /* @__PURE__ */ k(ut, { children: [
101
+ const u = i ?? /* @__PURE__ */ N(pt, { children: [
102
102
  e !== void 0 && /* @__PURE__ */ s("span", { className: "nc-alert-code", children: e }),
103
103
  t
104
104
  ] });
105
- return /* @__PURE__ */ k("div", { className: `nc-alert nc-${n} ${a}`.trim(), style: l, children: [
106
- /* @__PURE__ */ k("div", { className: "nc-alert-main", children: [
105
+ return /* @__PURE__ */ N("div", { className: `nc-alert nc-${n} ${c}`.trim(), style: l, children: [
106
+ /* @__PURE__ */ N("div", { className: "nc-alert-main", children: [
107
107
  /* @__PURE__ */ s("div", { className: `nc-alert-message nc-${n}`, children: u }),
108
- c && /* @__PURE__ */ s(
108
+ a && /* @__PURE__ */ s(
109
109
  "button",
110
110
  {
111
111
  type: "button",
112
112
  className: "nc-alert-close",
113
113
  "aria-label": "Close alert",
114
- onClick: c,
115
- children: /* @__PURE__ */ s(Ce, { size: 16 })
114
+ onClick: a,
115
+ children: /* @__PURE__ */ s($e, { size: 16 })
116
116
  }
117
117
  )
118
118
  ] }),
119
119
  r && /* @__PURE__ */ s("span", { className: "nc-alert-action", children: /* @__PURE__ */ s(
120
- U,
120
+ q,
121
121
  {
122
122
  size: "small",
123
- variant: r.variant ?? $t[n],
123
+ variant: r.variant ?? Mt[n],
124
124
  onClick: o,
125
125
  children: r.text
126
126
  }
127
127
  ) })
128
128
  ] });
129
129
  }
130
- function Gn({
130
+ function Yn({
131
131
  percentage: e = 0.5,
132
132
  status: t = "discharging",
133
133
  darkMode: n = !1,
134
134
  colored: r = !1
135
135
  }) {
136
136
  const o = Math.max(0, Math.min(1, Number(e) || 0)), i = o === 0 ? "-" : String(Math.round(o * 100));
137
- let c;
138
- r ? o < 0.1 ? c = "var(--nc-danger)" : o < 0.2 ? c = "var(--nc-warning)" : c = "var(--nc-success)" : c = n ? "#ffffff" : "#000000";
139
- const a = "var(--nc-battery-shell-bg)", l = 24, u = 14, f = 2, v = 0, d = 12, m = 0, w = 0, y = 0, g = l, N = u, b = N - m * 2, p = g - m * 2, h = Math.max(1, Math.min(4, N / 4)), A = o === 0 ? 0 : 0.05 + o * 0.95, C = l + f + d, T = 20, L = 0.65, x = Math.max(u, T * L), I = l + f + 1, S = (u - T * L) / 2;
140
- return /* @__PURE__ */ k(
137
+ let a;
138
+ r ? o < 0.1 ? a = "var(--nc-danger)" : o < 0.2 ? a = "var(--nc-warning)" : a = "var(--nc-success)" : a = n ? "#ffffff" : "#000000";
139
+ const c = "var(--nc-battery-shell-bg)", l = 24, u = 14, f = 2, v = 0, d = 12, m = 0, y = 0, b = 0, w = l, k = u, g = k - m * 2, p = w - m * 2, h = Math.max(1, Math.min(4, k / 4)), A = o === 0 ? 0 : 0.05 + o * 0.95, C = l + f + d, T = 20, P = 0.65, x = Math.max(u, T * P), I = l + f + 1, S = (u - T * P) / 2;
140
+ return /* @__PURE__ */ N(
141
141
  "svg",
142
142
  {
143
143
  className: "nc-battery",
@@ -147,27 +147,27 @@ function Gn({
147
147
  role: "img",
148
148
  "aria-label": `Battery ${i === "-" ? "-" : `${i}%`} ${t}`,
149
149
  children: [
150
- /* @__PURE__ */ s("defs", { children: /* @__PURE__ */ s("mask", { id: `nc-battery-fill-mask-${o}`, children: /* @__PURE__ */ s("rect", { x: "0", y: "0", width: p * A, height: b, fill: "white" }) }) }),
150
+ /* @__PURE__ */ s("defs", { children: /* @__PURE__ */ s("mask", { id: `nc-battery-fill-mask-${o}`, children: /* @__PURE__ */ s("rect", { x: "0", y: "0", width: p * A, height: g, fill: "white" }) }) }),
151
151
  /* @__PURE__ */ s(
152
152
  "rect",
153
153
  {
154
- x: w,
155
- y,
154
+ x: y,
155
+ y: b,
156
156
  rx: h,
157
157
  ry: h,
158
- width: g,
159
- height: N,
160
- fill: a
158
+ width: w,
159
+ height: k,
160
+ fill: c
161
161
  }
162
162
  ),
163
163
  /* @__PURE__ */ s(
164
164
  "rect",
165
165
  {
166
- x: w + m,
167
- y: y + m,
166
+ x: y + m,
167
+ y: b + m,
168
168
  width: p,
169
- height: b,
170
- fill: c,
169
+ height: g,
170
+ fill: a,
171
171
  rx: h,
172
172
  ry: h,
173
173
  mask: `url(#nc-battery-fill-mask-${o})`
@@ -176,7 +176,7 @@ function Gn({
176
176
  /* @__PURE__ */ s(
177
177
  "text",
178
178
  {
179
- x: w + g / 2,
179
+ x: y + w / 2,
180
180
  y: u - 3,
181
181
  fontSize: 11,
182
182
  fontWeight: "bold",
@@ -194,15 +194,15 @@ function Gn({
194
194
  height: u * 0.48,
195
195
  rx: 0.8,
196
196
  ry: 0.8,
197
- fill: o === 1 ? c : a
197
+ fill: o === 1 ? a : c
198
198
  }
199
199
  ),
200
- t === "charging" ? /* @__PURE__ */ s("g", { transform: `translate(${I}, ${S}) scale(${L})`, fill: c, children: /* @__PURE__ */ s("path", { d: "M10 0 L2 11 H8 L5 20 L14 8 H8 L10 0 Z" }) }) : null
200
+ t === "charging" ? /* @__PURE__ */ s("g", { transform: `translate(${I}, ${S}) scale(${P})`, fill: a, children: /* @__PURE__ */ s("path", { d: "M10 0 L2 11 H8 L5 20 L14 8 H8 L10 0 Z" }) }) : null
201
201
  ]
202
202
  }
203
203
  );
204
204
  }
205
- function Yn({
205
+ function Kn({
206
206
  value: e,
207
207
  onChange: t,
208
208
  options: n,
@@ -210,21 +210,21 @@ function Yn({
210
210
  size: o = "default"
211
211
  }) {
212
212
  return /* @__PURE__ */ s("div", { className: `nc-button-group ${o === "small" ? "nc-small" : ""}`, children: n.map((i) => {
213
- const c = r || !!i.disabled;
213
+ const a = r || !!i.disabled;
214
214
  return /* @__PURE__ */ s(
215
215
  "button",
216
216
  {
217
217
  type: "button",
218
218
  className: `nc-button-group-item ${e === i.key ? "nc-active" : ""}`,
219
- onClick: () => !c && t(i.key),
220
- disabled: c,
219
+ onClick: () => !a && t(i.key),
220
+ disabled: a,
221
221
  children: i.label
222
222
  },
223
223
  i.key
224
224
  );
225
225
  }) });
226
226
  }
227
- function Mt({ size: e }) {
227
+ function It({ size: e }) {
228
228
  return /* @__PURE__ */ s("svg", { className: `nc-checkbox-icon ${e === "small" ? "nc-small" : ""}`, viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ s(
229
229
  "path",
230
230
  {
@@ -236,13 +236,13 @@ function Mt({ size: e }) {
236
236
  }
237
237
  ) });
238
238
  }
239
- function Kn({ checked: e, onChange: t, disabled: n, label: r, size: o = "default", labelColor: i, style: c, className: a = "" }) {
239
+ function _n({ checked: e, onChange: t, disabled: n, label: r, size: o = "default", labelColor: i, style: a, className: c = "" }) {
240
240
  const l = o === "small";
241
- return /* @__PURE__ */ k(
241
+ return /* @__PURE__ */ N(
242
242
  "label",
243
243
  {
244
- className: `nc-checkbox-label ${l ? "nc-small" : ""} ${n ? "nc-disabled" : ""} ${a}`.trim(),
245
- style: c,
244
+ className: `nc-checkbox-label ${l ? "nc-small" : ""} ${n ? "nc-disabled" : ""} ${c}`.trim(),
245
+ style: a,
246
246
  onClick: (u) => {
247
247
  n || (u.preventDefault(), t(!e));
248
248
  },
@@ -257,7 +257,7 @@ function Kn({ checked: e, onChange: t, disabled: n, label: r, size: o = "default
257
257
  onKeyDown: (u) => {
258
258
  n || (u.key === "Enter" || u.key === " ") && (u.preventDefault(), t(!e));
259
259
  },
260
- children: e && /* @__PURE__ */ s(Mt, { size: o })
260
+ children: e && /* @__PURE__ */ s(It, { size: o })
261
261
  }
262
262
  ),
263
263
  r && /* @__PURE__ */ s("span", { className: "nc-checkbox-text", style: i ? { color: i } : void 0, children: r })
@@ -265,11 +265,11 @@ function Kn({ checked: e, onChange: t, disabled: n, label: r, size: o = "default
265
265
  }
266
266
  );
267
267
  }
268
- function It({ option: e, onChange: t, selected: n, highlighted: r, small: o }) {
269
- const i = V(null), { t: c } = X();
270
- return B(() => {
268
+ function Rt({ option: e, onChange: t, selected: n, highlighted: r, small: o }) {
269
+ const i = H(null), { t: a } = J();
270
+ return z(() => {
271
271
  r && i.current && i.current.scrollIntoView({ block: "nearest" });
272
- }, [r]), /* @__PURE__ */ k(
272
+ }, [r]), /* @__PURE__ */ N(
273
273
  "div",
274
274
  {
275
275
  ref: i,
@@ -283,38 +283,38 @@ function It({ option: e, onChange: t, selected: n, highlighted: r, small: o }) {
283
283
  },
284
284
  children: [
285
285
  e.label,
286
- e.default && /* @__PURE__ */ k("span", { style: { fontSize: "0.85em", color: "var(--nc-text-weak)", marginLeft: 6 }, children: [
286
+ e.default && /* @__PURE__ */ N("span", { style: { fontSize: "0.85em", color: "var(--nc-text-weak)", marginLeft: 6 }, children: [
287
287
  "(",
288
- c("common.default"),
288
+ a("common.default"),
289
289
  ")"
290
290
  ] })
291
291
  ]
292
292
  }
293
293
  );
294
294
  }
295
- function Rt({
295
+ function Et({
296
296
  isOpen: e,
297
297
  options: t,
298
298
  onSelect: n,
299
299
  selectedValue: r,
300
300
  placement: o = "bottom",
301
301
  anchorRef: i,
302
- small: c,
303
- highlightedIndex: a = -1
302
+ small: a,
303
+ highlightedIndex: c = -1
304
304
  }) {
305
- const [l, u] = R({ top: 0, left: 0, width: 0 }), [f, v] = R(o), { t: d } = X();
306
- if (B(() => {
305
+ const [l, u] = E({ top: 0, left: 0, width: 0 }), [f, v] = E(o), { t: d } = J();
306
+ if (z(() => {
307
307
  if (e && i.current) {
308
- const w = i.current.getBoundingClientRect();
309
- let y = o;
308
+ const y = i.current.getBoundingClientRect();
309
+ let b = o;
310
310
  if (o === "bottom") {
311
- const g = window.innerHeight - w.bottom, N = w.top;
312
- g < 320 && N > g && (y = "top");
311
+ const w = window.innerHeight - y.bottom, k = y.top;
312
+ w < 320 && k > w && (b = "top");
313
313
  }
314
- v(y), u({
315
- top: y === "top" ? w.top - 4 : w.bottom + 4,
316
- left: w.left,
317
- width: w.width
314
+ v(b), u({
315
+ top: b === "top" ? y.top - 4 : y.bottom + 4,
316
+ left: y.left,
317
+ width: y.width
318
318
  });
319
319
  }
320
320
  }, [e, i, o]), !e) return null;
@@ -332,12 +332,12 @@ function Rt({
332
332
  maxHeight: 300,
333
333
  overflowY: "auto"
334
334
  },
335
- children: t.length === 0 ? /* @__PURE__ */ s("div", { className: `nc-combo-dropdown-option nc-no-results ${c ? "nc-small" : ""}`, children: d("common.noResults") }) : t.map((w, y) => /* @__PURE__ */ s(It, { option: w, onChange: n, selected: w.value === r, highlighted: y === a, small: c }, w.value))
335
+ children: t.length === 0 ? /* @__PURE__ */ s("div", { className: `nc-combo-dropdown-option nc-no-results ${a ? "nc-small" : ""}`, children: d("common.noResults") }) : t.map((y, b) => /* @__PURE__ */ s(Rt, { option: y, onChange: n, selected: y.value === r, highlighted: b === c, small: a }, y.value))
336
336
  }
337
337
  );
338
338
  return pe(m, document.body);
339
339
  }
340
- function Et({ onClick: e, small: t }) {
340
+ function Tt({ onClick: e, small: t }) {
341
341
  return /* @__PURE__ */ s(
342
342
  "span",
343
343
  {
@@ -356,7 +356,7 @@ function Et({ onClick: e, small: t }) {
356
356
  }
357
357
  );
358
358
  }
359
- function Tt({ open: e, small: t }) {
359
+ function Pt({ open: e, small: t }) {
360
360
  return /* @__PURE__ */ s(
361
361
  "span",
362
362
  {
@@ -366,15 +366,15 @@ function Tt({ open: e, small: t }) {
366
366
  }
367
367
  );
368
368
  }
369
- function _n({
369
+ function Un({
370
370
  value: e,
371
371
  onChange: t,
372
372
  placeholder: n = "Select…",
373
373
  options: r,
374
374
  disabled: o,
375
375
  label: i,
376
- clearable: c = !0,
377
- allowTyping: a = !1,
376
+ clearable: a = !0,
377
+ allowTyping: c = !1,
378
378
  placement: l = "bottom",
379
379
  size: u = "default",
380
380
  appearance: f = "default",
@@ -382,66 +382,66 @@ function _n({
382
382
  style: d,
383
383
  className: m
384
384
  }) {
385
- const [w, y] = R(!1), [g, N] = R(""), [b, p] = R(-1), h = V(null), A = V(null), C = u === "small", { t: T } = X(), L = we(() => {
386
- const E = g.toLowerCase();
387
- return a ? r.filter((D) => D.label.toLowerCase().includes(E)) : r;
388
- }, [r, g, a]);
389
- B(() => {
390
- w && p(-1);
391
- }, [w, L]), B(() => {
392
- if (!c && !e && r.length > 0 && t) {
393
- const E = r.find((D) => D.default) || r[0];
394
- t(E.value);
385
+ const [y, b] = E(!1), [w, k] = E(""), [g, p] = E(-1), h = H(null), A = H(null), C = u === "small", { t: T } = J(), P = we(() => {
386
+ const R = w.toLowerCase();
387
+ return c ? r.filter((B) => B.label.toLowerCase().includes(R)) : r;
388
+ }, [r, w, c]);
389
+ z(() => {
390
+ y && p(-1);
391
+ }, [y, P]), z(() => {
392
+ if (!a && !e && r.length > 0 && t) {
393
+ const R = r.find((B) => B.default) || r[0];
394
+ t(R.value);
395
395
  }
396
- }, [c, e, r, t]), B(() => {
397
- function E(D) {
398
- var P;
399
- D.target instanceof Node && h.current && ((P = h.current.parentElement) != null && P.contains(D.target) || y(!1));
396
+ }, [a, e, r, t]), z(() => {
397
+ function R(B) {
398
+ var W;
399
+ B.target instanceof Node && h.current && ((W = h.current.parentElement) != null && W.contains(B.target) || b(!1));
400
400
  }
401
- return document.addEventListener("mousedown", E), () => document.removeEventListener("mousedown", E);
401
+ return document.addEventListener("mousedown", R), () => document.removeEventListener("mousedown", R);
402
402
  }, []);
403
- const x = r.find((E) => E.value === e), I = x && c, S = !o && !I, $ = `nc-align-${v}`, z = !(w && a) && !!x, H = (E, D = !1) => {
404
- var P;
405
- t == null || t(E), y(!1), N(""), D && ((P = h.current) == null || P.blur());
406
- }, K = () => {
407
- t == null || t(void 0), N(""), y(!1);
408
- }, j = (E) => {
409
- if (!w) {
410
- (E.key === "ArrowDown" || E.key === "ArrowUp") && (y(!0), E.preventDefault());
403
+ const x = r.find((R) => R.value === e), I = x && a, S = !o && !I, $ = `nc-align-${v}`, L = !(y && c) && !!x, O = (R, B = !1) => {
404
+ var W;
405
+ t == null || t(R), b(!1), k(""), B && ((W = h.current) == null || W.blur());
406
+ }, F = () => {
407
+ t == null || t(void 0), k(""), b(!1);
408
+ }, j = (R) => {
409
+ if (!y) {
410
+ (R.key === "ArrowDown" || R.key === "ArrowUp") && (b(!0), R.preventDefault());
411
411
  return;
412
412
  }
413
- switch (E.key) {
413
+ switch (R.key) {
414
414
  case "ArrowDown":
415
- E.preventDefault(), p((D) => {
416
- const P = D + 1;
417
- return P >= L.length ? 0 : P;
415
+ R.preventDefault(), p((B) => {
416
+ const W = B + 1;
417
+ return W >= P.length ? 0 : W;
418
418
  });
419
419
  break;
420
420
  case "ArrowUp":
421
- E.preventDefault(), p((D) => {
422
- const P = D - 1;
423
- return P < 0 ? L.length - 1 : P;
421
+ R.preventDefault(), p((B) => {
422
+ const W = B - 1;
423
+ return W < 0 ? P.length - 1 : W;
424
424
  });
425
425
  break;
426
426
  case "Enter":
427
- E.preventDefault(), b >= 0 && b < L.length && H(L[b].value, !0);
427
+ R.preventDefault(), g >= 0 && g < P.length && O(P[g].value, !0);
428
428
  break;
429
429
  case "Escape":
430
- E.preventDefault(), y(!1), N("");
430
+ R.preventDefault(), b(!1), k("");
431
431
  break;
432
432
  }
433
433
  };
434
- return /* @__PURE__ */ k("div", { className: `nc-combo-container ${f === "transparent" ? "nc-transparent" : ""} ${f === "plain" ? "nc-plain" : ""} ${w ? "nc-open" : ""} ${$} ${m || ""}`.trim(), style: { position: "relative", ...d }, children: [
434
+ return /* @__PURE__ */ N("div", { className: `nc-combo-container ${f === "transparent" ? "nc-transparent" : ""} ${f === "plain" ? "nc-plain" : ""} ${y ? "nc-open" : ""} ${$} ${m || ""}`.trim(), style: { position: "relative", ...d }, children: [
435
435
  i && /* @__PURE__ */ s("span", { className: `nc-label ${C ? "nc-small" : ""}`, children: i }),
436
- /* @__PURE__ */ k(
436
+ /* @__PURE__ */ N(
437
437
  "div",
438
438
  {
439
439
  ref: A,
440
440
  style: { position: "relative", display: "flex", alignItems: "center" },
441
- onMouseDown: (E) => {
442
- o || a && E.target === h.current || (y((D) => (!D && a && x && N(x.label), !D)), a && !w && setTimeout(() => {
443
- var D, P;
444
- (D = h.current) == null || D.focus(), (P = h.current) == null || P.select();
441
+ onMouseDown: (R) => {
442
+ o || c && R.target === h.current || (b((B) => (!B && c && x && k(x.label), !B)), c && !y && setTimeout(() => {
443
+ var B, W;
444
+ (B = h.current) == null || B.focus(), (W = h.current) == null || W.select();
445
445
  }, 0));
446
446
  },
447
447
  children: [
@@ -452,26 +452,26 @@ function _n({
452
452
  className: `nc-input ${C ? "nc-small" : ""}`,
453
453
  placeholder: n,
454
454
  onFocus: () => {
455
- !o && a && (y(!0), x && (N(x.label), setTimeout(() => {
456
- var E;
457
- return (E = h.current) == null ? void 0 : E.select();
455
+ !o && c && (b(!0), x && (k(x.label), setTimeout(() => {
456
+ var R;
457
+ return (R = h.current) == null ? void 0 : R.select();
458
458
  }, 0)));
459
459
  },
460
- onChange: (E) => a && N(E.target.value),
460
+ onChange: (R) => c && k(R.target.value),
461
461
  onKeyDown: j,
462
- value: w && a ? g : (x == null ? void 0 : x.label) || "",
463
- readOnly: o || !a,
462
+ value: y && c ? w : (x == null ? void 0 : x.label) || "",
463
+ readOnly: o || !c,
464
464
  style: {
465
465
  width: "100%",
466
466
  paddingRight: S || I ? C ? 32 : 44 : 12,
467
- caretColor: a ? void 0 : "transparent",
468
- cursor: a ? void 0 : "pointer",
469
- userSelect: a ? void 0 : "none",
470
- color: z ? "transparent" : "var(--nc-text)"
467
+ caretColor: c ? void 0 : "transparent",
468
+ cursor: c ? void 0 : "pointer",
469
+ userSelect: c ? void 0 : "none",
470
+ color: L ? "transparent" : "var(--nc-text)"
471
471
  }
472
472
  }
473
473
  ),
474
- z && /* @__PURE__ */ k(
474
+ L && /* @__PURE__ */ N(
475
475
  "div",
476
476
  {
477
477
  "aria-hidden": !0,
@@ -486,7 +486,7 @@ function _n({
486
486
  },
487
487
  children: [
488
488
  /* @__PURE__ */ s("span", { className: `nc-combo-overlay-text ${C ? "nc-small" : ""}`, children: x == null ? void 0 : x.label }),
489
- (x == null ? void 0 : x.default) && /* @__PURE__ */ k("span", { className: `nc-combo-overlay-default ${C ? "nc-small" : ""}`, children: [
489
+ (x == null ? void 0 : x.default) && /* @__PURE__ */ N("span", { className: `nc-combo-overlay-default ${C ? "nc-small" : ""}`, children: [
490
490
  "(",
491
491
  T("common.default"),
492
492
  ")"
@@ -494,15 +494,15 @@ function _n({
494
494
  ]
495
495
  }
496
496
  ),
497
- I && /* @__PURE__ */ s(Et, { onClick: K, small: C }),
498
- S && /* @__PURE__ */ s(Tt, { open: w, small: C })
497
+ I && /* @__PURE__ */ s(Tt, { onClick: F, small: C }),
498
+ S && /* @__PURE__ */ s(Pt, { open: y, small: C })
499
499
  ]
500
500
  }
501
501
  ),
502
- /* @__PURE__ */ s(Rt, { isOpen: w, options: L, onSelect: H, selectedValue: e, placement: l, anchorRef: A, small: C, highlightedIndex: b })
502
+ /* @__PURE__ */ s(Et, { isOpen: y, options: P, onSelect: O, selectedValue: e, placement: l, anchorRef: A, small: C, highlightedIndex: g })
503
503
  ] });
504
504
  }
505
- function Un({ onClick: e, loading: t = !1, disabled: n = !1, size: r = "default", title: o, "aria-label": i }) {
505
+ function qn({ onClick: e, loading: t = !1, disabled: n = !1, size: r = "default", title: o, "aria-label": i }) {
506
506
  return /* @__PURE__ */ s(
507
507
  "button",
508
508
  {
@@ -512,11 +512,11 @@ function Un({ onClick: e, loading: t = !1, disabled: n = !1, size: r = "default"
512
512
  title: o ?? (t ? "Refreshing..." : "Refresh"),
513
513
  "aria-label": i ?? (t ? "Refreshing" : "Refresh"),
514
514
  "data-size": r,
515
- children: /* @__PURE__ */ s(ft, { size: r === "small" ? 14 : r === "large" ? 20 : 18, className: t ? "nc-spinning" : "" })
515
+ children: /* @__PURE__ */ s(ht, { size: r === "small" ? 14 : r === "large" ? 20 : 18, className: t ? "nc-spinning" : "" })
516
516
  }
517
517
  );
518
518
  }
519
- function _e({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Close", "aria-label": o = "Close" }) {
519
+ function Ue({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Close", "aria-label": o = "Close" }) {
520
520
  return /* @__PURE__ */ s(
521
521
  "button",
522
522
  {
@@ -526,11 +526,11 @@ function _e({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Clo
526
526
  title: r,
527
527
  "aria-label": o,
528
528
  "data-size": n,
529
- children: /* @__PURE__ */ s(Ce, { size: n === "small" ? 14 : n === "large" ? 20 : 18 })
529
+ children: /* @__PURE__ */ s($e, { size: n === "small" ? 14 : n === "large" ? 20 : 18 })
530
530
  }
531
531
  );
532
532
  }
533
- function qn({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Edit", "aria-label": o = "Edit" }) {
533
+ function Xn({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Edit", "aria-label": o = "Edit" }) {
534
534
  return /* @__PURE__ */ s(
535
535
  "button",
536
536
  {
@@ -540,11 +540,11 @@ function qn({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Edi
540
540
  title: r,
541
541
  "aria-label": o,
542
542
  "data-size": n,
543
- children: /* @__PURE__ */ s(pt, { size: n === "small" ? 14 : n === "large" ? 20 : 18 })
543
+ children: /* @__PURE__ */ s(ft, { size: n === "small" ? 14 : n === "large" ? 20 : 18 })
544
544
  }
545
545
  );
546
546
  }
547
- function Xn({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Delete", "aria-label": o = "Delete" }) {
547
+ function Jn({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Delete", "aria-label": o = "Delete" }) {
548
548
  return /* @__PURE__ */ s(
549
549
  "button",
550
550
  {
@@ -554,11 +554,11 @@ function Xn({ onClick: e, disabled: t = !1, size: n = "default", title: r = "Del
554
554
  title: r,
555
555
  "aria-label": o,
556
556
  "data-size": n,
557
- children: /* @__PURE__ */ s(ht, { size: n === "small" ? 14 : n === "large" ? 20 : 18 })
557
+ children: /* @__PURE__ */ s(mt, { size: n === "small" ? 14 : n === "large" ? 20 : 18 })
558
558
  }
559
559
  );
560
560
  }
561
- function Jn({ onClick: e, disabled: t = !1, children: n, title: r, "aria-label": o, size: i = "default" }) {
561
+ function Zn({ onClick: e, disabled: t = !1, children: n, title: r, "aria-label": o, size: i = "default" }) {
562
562
  return /* @__PURE__ */ s(
563
563
  "button",
564
564
  {
@@ -572,7 +572,7 @@ function Jn({ onClick: e, disabled: t = !1, children: n, title: r, "aria-label":
572
572
  }
573
573
  );
574
574
  }
575
- function Zn({
575
+ function Qn({
576
576
  open: e,
577
577
  onClose: t,
578
578
  options: n,
@@ -580,27 +580,27 @@ function Zn({
580
580
  anchor: o,
581
581
  preferredDirection: i = "down"
582
582
  }) {
583
- const c = V(null), [a, l] = R({ top: 0, left: 0 }), u = o || (r == null ? void 0 : r.current);
584
- if (B(() => {
585
- if (!e || !u || !c.current) return;
586
- const d = u.getBoundingClientRect(), m = c.current.getBoundingClientRect(), w = window.innerHeight, y = window.innerWidth, g = d.bottom + 8, N = g + m.height <= w - 8;
587
- let b = i;
588
- (!N && i === "down" || i === "up" && N) && (b = "up");
583
+ const a = H(null), [c, l] = E({ top: 0, left: 0 }), u = o || (r == null ? void 0 : r.current);
584
+ if (z(() => {
585
+ if (!e || !u || !a.current) return;
586
+ const d = u.getBoundingClientRect(), m = a.current.getBoundingClientRect(), y = window.innerHeight, b = window.innerWidth, w = d.bottom + 8, k = w + m.height <= y - 8;
587
+ let g = i;
588
+ (!k && i === "down" || i === "up" && k) && (g = "up");
589
589
  let p;
590
- b === "down" ? p = g : p = d.top - m.height - 8;
590
+ g === "down" ? p = w : p = d.top - m.height - 8;
591
591
  let h = d.left;
592
- h + m.width > y - 8 && (h = d.right - m.width), l({
592
+ h + m.width > b - 8 && (h = d.right - m.width), l({
593
593
  top: Math.max(8, p),
594
594
  // Ensure minimum 8px from top
595
595
  left: Math.max(8, h)
596
596
  // Ensure minimum 8px from left
597
597
  });
598
- }, [e, u, i]), B(() => {
598
+ }, [e, u, i]), z(() => {
599
599
  if (!e) return;
600
- const d = (w) => {
601
- c.current && !c.current.contains(w.target) && u && !u.contains(w.target) && t();
602
- }, m = (w) => {
603
- w.key === "Escape" && t();
600
+ const d = (y) => {
601
+ a.current && !a.current.contains(y.target) && u && !u.contains(y.target) && t();
602
+ }, m = (y) => {
603
+ y.key === "Escape" && t();
604
604
  };
605
605
  return document.addEventListener("mousedown", d), document.addEventListener("keydown", m), () => {
606
606
  document.removeEventListener("mousedown", d), document.removeEventListener("keydown", m);
@@ -613,12 +613,12 @@ function Zn({
613
613
  /* @__PURE__ */ s(
614
614
  "div",
615
615
  {
616
- ref: c,
616
+ ref: a,
617
617
  className: "nc-context-menu",
618
618
  style: {
619
619
  position: "fixed",
620
- top: `${a.top}px`,
621
- left: `${a.left}px`,
620
+ top: `${c.top}px`,
621
+ left: `${c.left}px`,
622
622
  zIndex: 1e4
623
623
  },
624
624
  role: "menu",
@@ -638,7 +638,7 @@ function Zn({
638
638
  d.disabled ? "nc-disabled" : "",
639
639
  v && !d.icon ? "nc-indented" : ""
640
640
  ].filter(Boolean).join(" ");
641
- return /* @__PURE__ */ k(
641
+ return /* @__PURE__ */ N(
642
642
  "button",
643
643
  {
644
644
  className: m,
@@ -658,114 +658,114 @@ function Zn({
658
658
  document.body
659
659
  );
660
660
  }
661
- const Ue = ce(null);
662
- function Pt() {
663
- const e = te(Ue);
661
+ const qe = ce(null);
662
+ function Lt() {
663
+ const e = ne(qe);
664
664
  if (!e)
665
665
  throw new Error("useDialog must be used inside a Dialog component");
666
666
  return e;
667
667
  }
668
668
  function oe({ children: e, onClick: t, ...n }) {
669
- const { close: r } = Pt(), { t: o } = X();
670
- return /* @__PURE__ */ s(U, { onClick: (c) => {
671
- t == null || t(c), r();
669
+ const { close: r } = Lt(), { t: o } = J();
670
+ return /* @__PURE__ */ s(q, { onClick: (a) => {
671
+ t == null || t(a), r();
672
672
  }, ...n, children: e ?? o("common.close") });
673
673
  }
674
- function Qn({
674
+ function er({
675
675
  open: e,
676
676
  onClose: t,
677
677
  title: n,
678
678
  children: r,
679
679
  style: o,
680
680
  footerType: i = "ok-cancel",
681
- footer: c,
682
- onOk: a,
681
+ footer: a,
682
+ onOk: c,
683
683
  onSave: l,
684
684
  onDelete: u,
685
685
  onCancel: f,
686
686
  onConnect: v,
687
687
  closeOnOverlay: d = !0,
688
688
  primaryDisabled: m = !1,
689
- fullScreen: w = !1,
690
- hideTitleBar: y = !1,
691
- className: g = "",
692
- onContentHeightChange: N
689
+ fullScreen: y = !1,
690
+ hideTitleBar: b = !1,
691
+ className: w = "",
692
+ onContentHeightChange: k
693
693
  }) {
694
- const b = V(null), p = V(null), { t: h } = X(), A = { close: t }, C = (x) => {
694
+ const g = H(null), p = H(null), { t: h } = J(), A = { close: t }, C = (x) => {
695
695
  d && x.target === x.currentTarget && t();
696
696
  };
697
- if (B(() => {
698
- e && b.current && b.current.focus();
699
- }, [e]), B(() => {
700
- if (!N || !p.current) return;
697
+ if (z(() => {
698
+ e && g.current && g.current.focus();
699
+ }, [e]), z(() => {
700
+ if (!k || !p.current) return;
701
701
  const x = new ResizeObserver((I) => {
702
702
  for (const S of I) {
703
703
  const $ = S.contentRect.height;
704
- N($);
704
+ k($);
705
705
  }
706
706
  });
707
707
  return x.observe(p.current), () => {
708
708
  x.disconnect();
709
709
  };
710
- }, [N]), !e) return null;
710
+ }, [k]), !e) return null;
711
711
  const T = () => {
712
712
  switch (i) {
713
713
  case "ok":
714
- return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(U, { variant: "primary", onClick: a ?? t, disabled: m, children: h("common.ok") }) });
714
+ return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(q, { variant: "primary", onClick: c ?? t, disabled: m, children: h("common.ok") }) });
715
715
  case "ok-cancel":
716
- return /* @__PURE__ */ k("div", { className: "nc-dialog-footer", children: [
716
+ return /* @__PURE__ */ N("div", { className: "nc-dialog-footer", children: [
717
717
  /* @__PURE__ */ s(oe, { onClick: f, children: h("common.cancel") }),
718
- /* @__PURE__ */ s(U, { variant: "primary", onClick: a ?? t, disabled: m, children: h("common.ok") })
718
+ /* @__PURE__ */ s(q, { variant: "primary", onClick: c ?? t, disabled: m, children: h("common.ok") })
719
719
  ] });
720
720
  case "save-cancel":
721
- return /* @__PURE__ */ k("div", { className: "nc-dialog-footer", children: [
721
+ return /* @__PURE__ */ N("div", { className: "nc-dialog-footer", children: [
722
722
  /* @__PURE__ */ s(oe, { onClick: f, children: h("common.cancel") }),
723
- /* @__PURE__ */ s(U, { variant: "primary", onClick: l, disabled: m, children: h("common.save") })
723
+ /* @__PURE__ */ s(q, { variant: "primary", onClick: l, disabled: m, children: h("common.save") })
724
724
  ] });
725
725
  case "delete-cancel":
726
- return /* @__PURE__ */ k("div", { className: "nc-dialog-footer", children: [
726
+ return /* @__PURE__ */ N("div", { className: "nc-dialog-footer", children: [
727
727
  /* @__PURE__ */ s(oe, { onClick: f, children: h("common.cancel") }),
728
- /* @__PURE__ */ s(U, { variant: "danger", onClick: u, disabled: m, children: h("common.delete") })
728
+ /* @__PURE__ */ s(q, { variant: "danger", onClick: u, disabled: m, children: h("common.delete") })
729
729
  ] });
730
730
  case "connect":
731
- return /* @__PURE__ */ k("div", { className: "nc-dialog-footer", children: [
731
+ return /* @__PURE__ */ N("div", { className: "nc-dialog-footer", children: [
732
732
  /* @__PURE__ */ s(oe, { onClick: f, children: h("common.cancel") }),
733
- /* @__PURE__ */ s(U, { variant: "primary", onClick: v, disabled: m, children: h("common.connect") })
733
+ /* @__PURE__ */ s(q, { variant: "primary", onClick: v, disabled: m, children: h("common.connect") })
734
734
  ] });
735
735
  case "close":
736
736
  return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(oe, { variant: "primary" }) });
737
737
  case "gotit":
738
738
  return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(oe, { variant: "primary", children: h("common.gotit") }) });
739
739
  case "custom":
740
- return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: c });
740
+ return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: a });
741
741
  case "none":
742
742
  return null;
743
743
  default:
744
744
  return null;
745
745
  }
746
- }, L = /* @__PURE__ */ s(Ue.Provider, { value: A, children: /* @__PURE__ */ s("div", { className: `nc-dialog-overlay${w ? " nc-fullscreen" : ""}`, onClick: C, children: /* @__PURE__ */ k(
746
+ }, P = /* @__PURE__ */ s(qe.Provider, { value: A, children: /* @__PURE__ */ s("div", { className: `nc-dialog-overlay${y ? " nc-fullscreen" : ""}`, onClick: C, children: /* @__PURE__ */ N(
747
747
  "div",
748
748
  {
749
- ref: b,
750
- className: `nc-dialog-container ${g}`,
749
+ ref: g,
750
+ className: `nc-dialog-container ${w}`,
751
751
  style: o,
752
752
  tabIndex: -1,
753
753
  role: "dialog",
754
754
  "aria-modal": "true",
755
- "aria-labelledby": y ? void 0 : "nc-dialog-title",
755
+ "aria-labelledby": b ? void 0 : "nc-dialog-title",
756
756
  children: [
757
- !y && /* @__PURE__ */ k("div", { className: "nc-dialog-header", children: [
757
+ !b && /* @__PURE__ */ N("div", { className: "nc-dialog-header", children: [
758
758
  /* @__PURE__ */ s("h3", { id: "nc-dialog-title", className: "nc-dialog-title", children: n }),
759
- /* @__PURE__ */ s(_e, { onClick: t, "aria-label": "Close dialog" })
759
+ /* @__PURE__ */ s(Ue, { onClick: t, "aria-label": "Close dialog" })
760
760
  ] }),
761
761
  /* @__PURE__ */ s("div", { ref: p, className: "nc-dialog-content", children: r }),
762
762
  T()
763
763
  ]
764
764
  }
765
765
  ) }) });
766
- return w ? pe(L, document.body) : L;
766
+ return y ? pe(P, document.body) : P;
767
767
  }
768
- function Lt({ onClick: e, size: t = "default", rightOffset: n = 4 }) {
768
+ function zt({ onClick: e, size: t = "default", rightOffset: n = 4 }) {
769
769
  const r = t === "small" ? 28 : 34;
770
770
  return /* @__PURE__ */ s(
771
771
  "button",
@@ -794,7 +794,7 @@ function Lt({ onClick: e, size: t = "default", rightOffset: n = 4 }) {
794
794
  }
795
795
  );
796
796
  }
797
- function zt({ visible: e, onClick: t, size: n = "default" }) {
797
+ function Bt({ visible: e, onClick: t, size: n = "default" }) {
798
798
  const r = n === "small" ? 28 : 34, o = n === "small" ? 16 : 18;
799
799
  return /* @__PURE__ */ s(
800
800
  "button",
@@ -818,92 +818,98 @@ function zt({ visible: e, onClick: t, size: n = "default" }) {
818
818
  alignItems: "center",
819
819
  justifyContent: "center"
820
820
  },
821
- children: e ? /* @__PURE__ */ s(mt, { size: o }) : /* @__PURE__ */ s(gt, { size: o })
821
+ children: e ? /* @__PURE__ */ s(gt, { size: o }) : /* @__PURE__ */ s(bt, { size: o })
822
822
  }
823
823
  );
824
824
  }
825
- function er({
825
+ function tr({
826
826
  value: e,
827
827
  defaultValue: t = "",
828
828
  onChange: n,
829
- onEnter: r,
830
- onClear: o,
831
- placeholder: i,
829
+ onChangeConfirmed: r,
830
+ onEnter: o,
831
+ onClear: i,
832
+ placeholder: a,
832
833
  disabled: c,
833
- label: a,
834
- clearable: l = !0,
835
- type: u = "text",
836
- className: f = "",
837
- size: v = "default",
838
- appearance: d = "default",
839
- style: m,
840
- leadingIcon: w,
841
- showPasswordToggle: y = !1,
842
- multiline: g = !1,
843
- rows: N = 3,
844
- validator: b,
845
- showErrorMessage: p = !0
834
+ label: l,
835
+ clearable: u = !0,
836
+ type: f = "text",
837
+ className: v = "",
838
+ size: d = "default",
839
+ appearance: m = "default",
840
+ style: y,
841
+ leadingIcon: b,
842
+ showPasswordToggle: w = !1,
843
+ multiline: k = !1,
844
+ rows: g = 3,
845
+ validator: p,
846
+ showErrorMessage: h = !0
846
847
  }) {
847
- const h = V(null), A = V(null), C = V(!1), [T, L] = R(!1), [x, I] = R(!1), S = e !== void 0, [$, z] = R(t), H = S ? e : $, [K, j] = R(H), E = b ? b(H) : null, D = !!E, P = !g && d === "plain", re = P && x, F = re ? K : H;
848
- B(() => {
849
- re || j(H);
850
- }, [H, re]);
851
- const Ee = u === "password", fe = Ee && y && !c && !g, ye = l && F && !c && x, xe = v === "small" ? 32 : 44;
848
+ const A = H(null), C = H(null), T = H(!1), [P, x] = E(!1), [I, S] = E(!1), $ = e !== void 0, [L, O] = E(t), F = $ ? e : L, [j, R] = E(F), B = p ? p(F) : null, W = !!B, G = !k && m === "plain", Y = G && I, ye = Y ? j : F;
849
+ z(() => {
850
+ Y || R(F);
851
+ }, [F, Y]);
852
+ const Te = f === "password", fe = Te && w && !c && !k, xe = u && ye && !c && I, ke = d === "small" ? 32 : 44;
852
853
  let he = 12;
853
- ye && fe ? he = xe * 2 : (ye || fe) && (he = xe);
854
- const me = w ? v === "small" ? 28 : 34 : void 0, Te = () => P ? (S || z(K), K !== H && (n == null || n(K)), K) : H, ct = () => {
855
- j(H);
854
+ xe && fe ? he = ke * 2 : (xe || fe) && (he = ke);
855
+ const me = b ? d === "small" ? 28 : 34 : void 0, Pe = () => {
856
+ if (!G)
857
+ return F;
858
+ const K = j !== F;
859
+ return $ || O(j), K && (n == null || n(j), r == null || r(j)), j;
856
860
  }, at = () => {
857
- var G, J, We;
858
- if (P) {
859
- j(""), o == null || o(), (G = h.current) == null || G.focus();
861
+ R(F);
862
+ }, lt = () => {
863
+ var K, Z, He;
864
+ if (G) {
865
+ R(""), i == null || i(), (K = A.current) == null || K.focus();
860
866
  return;
861
867
  }
862
- S || z(""), n == null || n(""), o == null || o(), g ? (J = A.current) == null || J.focus() : (We = h.current) == null || We.focus();
863
- }, Pe = (G) => {
864
- if (P && G.key === "Escape") {
865
- G.preventDefault(), C.current = !0, ct(), G.currentTarget.blur();
868
+ $ || O(""), n == null || n(""), i == null || i(), k ? (Z = C.current) == null || Z.focus() : (He = A.current) == null || He.focus();
869
+ }, Le = (K) => {
870
+ if (G && K.key === "Escape") {
871
+ K.preventDefault(), T.current = !0, at(), K.currentTarget.blur();
866
872
  return;
867
873
  }
868
- if (G.key === "Enter" && !g) {
869
- const J = P ? Te() : H;
870
- P && (G.preventDefault(), C.current = !0, G.currentTarget.blur()), r == null || r(J);
874
+ if (K.key === "Enter" && !k) {
875
+ const Z = G ? Pe() : F;
876
+ G && (K.preventDefault(), T.current = !0, K.currentTarget.blur()), o == null || o(Z);
871
877
  }
872
- }, Le = (G) => {
873
- const J = G.target.value;
874
- if (P) {
875
- j(J);
878
+ }, ze = (K) => {
879
+ const Z = K.target.value;
880
+ if (G) {
881
+ R(Z);
876
882
  return;
877
883
  }
878
- S || z(J), n == null || n(J);
879
- }, ze = () => {
880
- I(!0), P && j(H);
884
+ $ || O(Z), n == null || n(Z);
881
885
  }, Be = () => {
882
- if (P && C.current) {
883
- C.current = !1, I(!1);
886
+ S(!0), G && R(F);
887
+ }, De = () => {
888
+ if (G && T.current) {
889
+ T.current = !1, S(!1);
884
890
  return;
885
891
  }
886
- P && Te(), I(!1);
887
- }, De = `nc-input ${v === "small" ? "nc-small " : ""}${!g && d === "plain" ? "nc-plain " : ""}${D ? "nc-error " : ""}${f}`;
888
- return /* @__PURE__ */ k("div", { className: "nc-col", style: { position: "relative", flex: 1, ...m }, children: [
889
- a && /* @__PURE__ */ s("span", { className: "nc-label", children: a }),
890
- /* @__PURE__ */ k("div", { style: { position: "relative", display: "flex", alignItems: g ? "flex-start" : "center" }, children: [
891
- w && /* @__PURE__ */ s("span", { className: "nc-input-leading-icon", style: { height: g ? void 0 : "100%", top: g ? 10 : void 0 }, children: w }),
892
- g ? /* @__PURE__ */ s(
892
+ G && Pe(), S(!1);
893
+ }, We = `nc-input ${d === "small" ? "nc-small " : ""}${!k && m === "plain" ? "nc-plain " : ""}${W ? "nc-error " : ""}${v}`;
894
+ return /* @__PURE__ */ N("div", { className: "nc-col", style: { position: "relative", flex: 1, ...y }, children: [
895
+ l && /* @__PURE__ */ s("span", { className: "nc-label", children: l }),
896
+ /* @__PURE__ */ N("div", { style: { position: "relative", display: "flex", alignItems: k ? "flex-start" : "center" }, children: [
897
+ b && /* @__PURE__ */ s("span", { className: "nc-input-leading-icon", style: { height: k ? void 0 : "100%", top: k ? 10 : void 0 }, children: b }),
898
+ k ? /* @__PURE__ */ s(
893
899
  "textarea",
894
900
  {
895
- ref: A,
896
- className: De,
897
- placeholder: i,
898
- value: F,
899
- onChange: Le,
900
- onKeyDown: Pe,
901
- onFocus: ze,
902
- onBlur: Be,
901
+ ref: C,
902
+ className: We,
903
+ placeholder: a,
904
+ value: ye,
905
+ onChange: ze,
906
+ onKeyDown: Le,
907
+ onFocus: Be,
908
+ onBlur: De,
903
909
  readOnly: c,
904
910
  "aria-disabled": c,
905
911
  tabIndex: c ? -1 : void 0,
906
- rows: N,
912
+ rows: g,
907
913
  style: {
908
914
  width: "100%",
909
915
  paddingRight: he,
@@ -913,15 +919,15 @@ function er({
913
919
  ) : /* @__PURE__ */ s(
914
920
  "input",
915
921
  {
916
- ref: h,
917
- type: Ee && T ? "text" : u,
918
- className: De,
919
- placeholder: i,
920
- value: F,
921
- onChange: Le,
922
- onKeyDown: Pe,
923
- onFocus: ze,
924
- onBlur: Be,
922
+ ref: A,
923
+ type: Te && P ? "text" : f,
924
+ className: We,
925
+ placeholder: a,
926
+ value: ye,
927
+ onChange: ze,
928
+ onKeyDown: Le,
929
+ onFocus: Be,
930
+ onBlur: De,
925
931
  readOnly: c,
926
932
  "aria-disabled": c,
927
933
  tabIndex: c ? -1 : void 0,
@@ -932,20 +938,20 @@ function er({
932
938
  }
933
939
  }
934
940
  ),
935
- ye && /* @__PURE__ */ s(Lt, { onClick: at, size: v, rightOffset: fe ? xe + 4 : 4 }),
936
- fe && /* @__PURE__ */ s(zt, { visible: T, onClick: () => L(!T), size: v })
941
+ xe && /* @__PURE__ */ s(zt, { onClick: lt, size: d, rightOffset: fe ? ke + 4 : 4 }),
942
+ fe && /* @__PURE__ */ s(Bt, { visible: P, onClick: () => x(!P), size: d })
937
943
  ] }),
938
- D && p && /* @__PURE__ */ s("span", { className: "nc-error-message", children: E })
944
+ W && h && /* @__PURE__ */ s("span", { className: "nc-error-message", children: B })
939
945
  ] });
940
946
  }
941
- function tr({
947
+ function nr({
942
948
  children: e,
943
949
  onClick: t,
944
950
  showBorder: n = !0,
945
951
  selectable: r = !1,
946
952
  style: o
947
953
  }) {
948
- const [i, c] = $e.useState(!1);
954
+ const [i, a] = Me.useState(!1);
949
955
  return /* @__PURE__ */ s(
950
956
  "div",
951
957
  {
@@ -959,9 +965,9 @@ function tr({
959
965
  t(l);
960
966
  }
961
967
  },
962
- onMouseDown: () => t && c(!0),
963
- onMouseUp: () => c(!1),
964
- onMouseLeave: () => c(!1),
968
+ onMouseDown: () => t && a(!0),
969
+ onMouseUp: () => a(!1),
970
+ onMouseLeave: () => a(!1),
965
971
  style: {
966
972
  cursor: t ? "pointer" : "default",
967
973
  userSelect: r ? "text" : void 0,
@@ -973,9 +979,9 @@ function tr({
973
979
  }
974
980
  );
975
981
  }
976
- function nr({ title: e, titleTools: t, children: n, style: r }) {
977
- return /* @__PURE__ */ k("div", { className: "nc-list-group", style: r, children: [
978
- (e || t) && /* @__PURE__ */ k("div", { className: "nc-list-group-title", children: [
982
+ function rr({ title: e, titleTools: t, children: n, style: r }) {
983
+ return /* @__PURE__ */ N("div", { className: "nc-list-group", style: r, children: [
984
+ (e || t) && /* @__PURE__ */ N("div", { className: "nc-list-group-title", children: [
979
985
  /* @__PURE__ */ s("div", { children: e }),
980
986
  t && /* @__PURE__ */ s("div", { className: "nc-list-group-title-tools", children: t })
981
987
  ] }),
@@ -988,24 +994,24 @@ function nr({ title: e, titleTools: t, children: n, style: r }) {
988
994
  )
989
995
  ] });
990
996
  }
991
- function rr({ values: e, onChange: t, options: n, placeholder: r = "Select…", label: o }) {
992
- const [i, c] = R(!1), [a, l] = R(""), u = V(null), f = we(() => n.filter((d) => d.label.toLowerCase().includes(a.toLowerCase())), [n, a]);
993
- B(() => {
997
+ function or({ values: e, onChange: t, options: n, placeholder: r = "Select…", label: o }) {
998
+ const [i, a] = E(!1), [c, l] = E(""), u = H(null), f = we(() => n.filter((d) => d.label.toLowerCase().includes(c.toLowerCase())), [n, c]);
999
+ z(() => {
994
1000
  function d(m) {
995
- !(m.target instanceof Node) || !u.current || u.current.contains(m.target) || c(!1);
1001
+ !(m.target instanceof Node) || !u.current || u.current.contains(m.target) || a(!1);
996
1002
  }
997
1003
  return document.addEventListener("mousedown", d), () => document.removeEventListener("mousedown", d);
998
1004
  }, []);
999
1005
  const v = (d) => {
1000
1006
  e.includes(d) ? t(e.filter((m) => m !== d)) : t([...e, d]);
1001
1007
  };
1002
- return /* @__PURE__ */ k("div", { ref: u, className: "nc-col", style: { position: "relative" }, children: [
1008
+ return /* @__PURE__ */ N("div", { ref: u, className: "nc-col", style: { position: "relative" }, children: [
1003
1009
  o && /* @__PURE__ */ s("span", { className: "nc-label", children: o }),
1004
- /* @__PURE__ */ k("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: [
1010
+ /* @__PURE__ */ N("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: [
1005
1011
  e.length === 0 && /* @__PURE__ */ s("span", { className: "nc-label", children: r }),
1006
1012
  e.map((d) => {
1007
- const m = n.find((w) => w.value === d);
1008
- return m ? /* @__PURE__ */ k("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: [
1013
+ const m = n.find((y) => y.value === d);
1014
+ return m ? /* @__PURE__ */ N("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: [
1009
1015
  m.label,
1010
1016
  /* @__PURE__ */ s(
1011
1017
  "button",
@@ -1023,17 +1029,17 @@ function rr({ values: e, onChange: t, options: n, placeholder: r = "Select…",
1023
1029
  "input",
1024
1030
  {
1025
1031
  className: "nc-input",
1026
- value: a,
1032
+ value: c,
1027
1033
  onChange: (d) => l(d.target.value),
1028
- onFocus: () => c(!0),
1034
+ onFocus: () => a(!0),
1029
1035
  style: { minWidth: 50, border: "none", background: "transparent", padding: 4, minHeight: 32, flex: 1 }
1030
1036
  }
1031
1037
  )
1032
1038
  ] }),
1033
- i && /* @__PURE__ */ k("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: [
1039
+ i && /* @__PURE__ */ N("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: [
1034
1040
  f.map((d) => {
1035
1041
  const m = e.includes(d.value);
1036
- return /* @__PURE__ */ k("div", { className: "nc-section nc-row", style: { justifyContent: "space-between", cursor: "pointer", padding: 12 }, onMouseDown: () => v(d.value), children: [
1042
+ return /* @__PURE__ */ N("div", { className: "nc-section nc-row", style: { justifyContent: "space-between", cursor: "pointer", padding: 12 }, onMouseDown: () => v(d.value), children: [
1037
1043
  /* @__PURE__ */ s("span", { children: d.label }),
1038
1044
  /* @__PURE__ */ s("span", { children: m ? "✔️" : "" })
1039
1045
  ] }, d.value);
@@ -1062,65 +1068,65 @@ function ue(e) {
1062
1068
  }
1063
1069
  return `${n}-${r}`;
1064
1070
  }
1065
- function He(e) {
1071
+ function Ve(e) {
1066
1072
  if (!e) return "";
1067
1073
  const t = ue(e);
1068
1074
  if (!/^\d{4}-\d{2}$/.test(t)) return e;
1069
1075
  const [n, r] = t.split("-");
1070
1076
  return `${n}/${r}`;
1071
1077
  }
1072
- function Ve() {
1078
+ function Oe() {
1073
1079
  const e = /* @__PURE__ */ new Date(), t = e.getFullYear(), n = String(e.getMonth() + 1).padStart(2, "0");
1074
1080
  return `${t}-${n}`;
1075
1081
  }
1076
- function or({
1082
+ function sr({
1077
1083
  startMonth: e,
1078
1084
  endMonth: t,
1079
1085
  onChange: n,
1080
1086
  label: r,
1081
1087
  className: o = "",
1082
1088
  disabled: i = !1,
1083
- size: c = "default"
1089
+ size: a = "default"
1084
1090
  }) {
1085
- const [a, l] = R(!1), [u, f] = R(""), [v, d] = R(""), [m, w] = R({ top: 0, left: 0, width: 0, right: void 0 }), y = V(null), g = V(null);
1086
- B(() => {
1087
- if (a && y.current) {
1088
- const S = y.current.getBoundingClientRect(), z = Math.max(S.width, 400);
1089
- window.innerWidth - S.left < z && S.right >= z ? w({
1091
+ const [c, l] = E(!1), [u, f] = E(""), [v, d] = E(""), [m, y] = E({ top: 0, left: 0, width: 0, right: void 0 }), b = H(null), w = H(null);
1092
+ z(() => {
1093
+ if (c && b.current) {
1094
+ const S = b.current.getBoundingClientRect(), L = Math.max(S.width, 400);
1095
+ window.innerWidth - S.left < L && S.right >= L ? y({
1090
1096
  top: S.bottom + 4,
1091
1097
  left: 0,
1092
1098
  // Not used but type needs it, let's just use 0
1093
1099
  right: window.innerWidth - S.right,
1094
- width: z
1095
- }) : w({
1100
+ width: L
1101
+ }) : y({
1096
1102
  top: S.bottom + 4,
1097
1103
  left: S.left,
1098
1104
  right: void 0,
1099
- width: z
1105
+ width: L
1100
1106
  });
1101
1107
  }
1102
- }, [a]), B(() => {
1103
- if (!a) return;
1108
+ }, [c]), z(() => {
1109
+ if (!c) return;
1104
1110
  const S = ($) => {
1105
- y.current && !y.current.contains($.target) && g.current && !g.current.contains($.target) && l(!1);
1111
+ b.current && !b.current.contains($.target) && w.current && !w.current.contains($.target) && l(!1);
1106
1112
  };
1107
1113
  return document.addEventListener("mousedown", S), () => document.removeEventListener("mousedown", S);
1108
- }, [a]);
1109
- const N = () => {
1110
- f(e || Ve()), d(t || Ve()), l(!0);
1111
- }, b = () => {
1114
+ }, [c]);
1115
+ const k = () => {
1116
+ f(e || Oe()), d(t || Oe()), l(!0);
1117
+ }, g = () => {
1112
1118
  l(!1);
1113
1119
  }, p = () => {
1114
1120
  const S = ge(u), $ = ge(v);
1115
1121
  if (S || $)
1116
1122
  return;
1117
- const z = ue(u), H = ue(v);
1118
- z && H && (n == null || n(z, H)), l(!1);
1119
- }, h = e && t ? `${He(e)} - ${He(t)}` : "Select month range", A = ge(u), C = ge(v), T = ue(u), L = ue(v), x = T && L && T > L, I = a ? pe(
1123
+ const L = ue(u), O = ue(v);
1124
+ L && O && (n == null || n(L, O)), l(!1);
1125
+ }, h = e && t ? `${Ve(e)} - ${Ve(t)}` : "Select month range", A = ge(u), C = ge(v), T = ue(u), P = ue(v), x = T && P && T > P, I = c ? pe(
1120
1126
  /* @__PURE__ */ s(
1121
1127
  "div",
1122
1128
  {
1123
- ref: g,
1129
+ ref: w,
1124
1130
  className: "nc-month-range-picker-popup",
1125
1131
  style: {
1126
1132
  position: "fixed",
@@ -1129,9 +1135,9 @@ function or({
1129
1135
  width: m.width,
1130
1136
  zIndex: 1e3
1131
1137
  },
1132
- children: /* @__PURE__ */ k("div", { className: "nc-month-range-picker-content", children: [
1133
- /* @__PURE__ */ k("div", { className: "nc-month-range-picker-row", children: [
1134
- /* @__PURE__ */ k("div", { className: "nc-month-range-picker-column", children: [
1138
+ children: /* @__PURE__ */ N("div", { className: "nc-month-range-picker-content", children: [
1139
+ /* @__PURE__ */ N("div", { className: "nc-month-range-picker-row", children: [
1140
+ /* @__PURE__ */ N("div", { className: "nc-month-range-picker-column", children: [
1135
1141
  /* @__PURE__ */ s("label", { className: "nc-label", children: "Start Month" }),
1136
1142
  /* @__PURE__ */ s(
1137
1143
  "input",
@@ -1145,7 +1151,7 @@ function or({
1145
1151
  ),
1146
1152
  A && /* @__PURE__ */ s("div", { className: "nc-month-error-text", children: A })
1147
1153
  ] }),
1148
- /* @__PURE__ */ k("div", { className: "nc-month-range-picker-column", children: [
1154
+ /* @__PURE__ */ N("div", { className: "nc-month-range-picker-column", children: [
1149
1155
  /* @__PURE__ */ s("label", { className: "nc-label", children: "End Month" }),
1150
1156
  /* @__PURE__ */ s(
1151
1157
  "input",
@@ -1161,9 +1167,9 @@ function or({
1161
1167
  ] })
1162
1168
  ] }),
1163
1169
  x && !A && !C && /* @__PURE__ */ s("div", { className: "nc-month-range-error", children: "End month must be after or equal to start month" }),
1164
- /* @__PURE__ */ k("div", { className: "nc-month-range-picker-footer", children: [
1170
+ /* @__PURE__ */ N("div", { className: "nc-month-range-picker-footer", children: [
1165
1171
  /* @__PURE__ */ s(
1166
- U,
1172
+ q,
1167
1173
  {
1168
1174
  variant: "primary",
1169
1175
  onClick: p,
@@ -1171,21 +1177,21 @@ function or({
1171
1177
  children: "Apply"
1172
1178
  }
1173
1179
  ),
1174
- /* @__PURE__ */ s(U, { variant: "ghost", onClick: b, children: "Cancel" })
1180
+ /* @__PURE__ */ s(q, { variant: "ghost", onClick: g, children: "Cancel" })
1175
1181
  ] })
1176
1182
  ] })
1177
1183
  }
1178
1184
  ),
1179
1185
  document.body
1180
1186
  ) : null;
1181
- return /* @__PURE__ */ k("div", { className: `nc-month-range-picker ${c === "small" ? "nc-small " : ""}${o}`, children: [
1182
- r && /* @__PURE__ */ s("label", { className: `nc-label${c === "small" ? " nc-small" : ""}`, children: r }),
1187
+ return /* @__PURE__ */ N("div", { className: `nc-month-range-picker ${a === "small" ? "nc-small " : ""}${o}`, children: [
1188
+ r && /* @__PURE__ */ s("label", { className: `nc-label${a === "small" ? " nc-small" : ""}`, children: r }),
1183
1189
  /* @__PURE__ */ s(
1184
1190
  "button",
1185
1191
  {
1186
- ref: y,
1187
- className: `nc-month-range-picker-input${c === "small" ? " nc-small" : ""}`,
1188
- onClick: N,
1192
+ ref: b,
1193
+ className: `nc-month-range-picker-input${a === "small" ? " nc-small" : ""}`,
1194
+ onClick: k,
1189
1195
  disabled: i,
1190
1196
  children: h
1191
1197
  }
@@ -1193,17 +1199,17 @@ function or({
1193
1199
  I
1194
1200
  ] });
1195
1201
  }
1196
- function sr({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disabled: c, size: a = "default" }) {
1197
- const l = a === "small", u = () => {
1202
+ function ir({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disabled: a, size: c = "default" }) {
1203
+ const l = c === "small", u = () => {
1198
1204
  const d = e - o;
1199
1205
  n !== void 0 && d < n || t(parseFloat(d.toFixed(10)));
1200
1206
  }, f = () => {
1201
1207
  const d = e + o;
1202
1208
  r !== void 0 && d > r || t(parseFloat(d.toFixed(10)));
1203
1209
  };
1204
- return /* @__PURE__ */ k("div", { className: `nc-col nc-number-input-col ${l ? "nc-small" : ""}`, children: [
1210
+ return /* @__PURE__ */ N("div", { className: `nc-col nc-number-input-col ${l ? "nc-small" : ""}`, children: [
1205
1211
  i && /* @__PURE__ */ s("span", { className: `nc-label ${l ? "nc-small" : ""}`, children: i }),
1206
- /* @__PURE__ */ k("div", { className: `nc-number-input-container ${l ? "nc-small" : ""}`, children: [
1212
+ /* @__PURE__ */ N("div", { className: `nc-number-input-container ${l ? "nc-small" : ""}`, children: [
1207
1213
  /* @__PURE__ */ s(
1208
1214
  "input",
1209
1215
  {
@@ -1217,7 +1223,7 @@ function sr({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disa
1217
1223
  min: n,
1218
1224
  max: r,
1219
1225
  step: o,
1220
- disabled: c
1226
+ disabled: a
1221
1227
  }
1222
1228
  ),
1223
1229
  /* @__PURE__ */ s(
@@ -1225,7 +1231,7 @@ function sr({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disa
1225
1231
  {
1226
1232
  className: `nc-button nc-ghost nc-number-input-button ${l ? "nc-small" : ""}`,
1227
1233
  onClick: u,
1228
- disabled: c || n !== void 0 && e <= n,
1234
+ disabled: a || n !== void 0 && e <= n,
1229
1235
  children: "−"
1230
1236
  }
1231
1237
  ),
@@ -1234,22 +1240,22 @@ function sr({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disa
1234
1240
  {
1235
1241
  className: `nc-button nc-ghost nc-number-input-button ${l ? "nc-small" : ""}`,
1236
1242
  onClick: f,
1237
- disabled: c || r !== void 0 && e >= r,
1243
+ disabled: a || r !== void 0 && e >= r,
1238
1244
  children: "+"
1239
1245
  }
1240
1246
  )
1241
1247
  ] })
1242
1248
  ] });
1243
1249
  }
1244
- function ir({
1250
+ function cr({
1245
1251
  value: e,
1246
1252
  onChange: t,
1247
1253
  min: n = 0,
1248
1254
  max: r = 100,
1249
1255
  step: o = 1,
1250
1256
  label: i,
1251
- disabled: c,
1252
- showValue: a = !0,
1257
+ disabled: a,
1258
+ showValue: c = !0,
1253
1259
  formatValue: l = (f) => f.toString(),
1254
1260
  width: u = 200
1255
1261
  }) {
@@ -1257,9 +1263,9 @@ function ir({
1257
1263
  const m = parseFloat(d.target.value);
1258
1264
  t(m);
1259
1265
  }, v = (e - n) / (r - n) * 100;
1260
- return /* @__PURE__ */ k("div", { className: "nc-col", style: { gap: 6 }, children: [
1266
+ return /* @__PURE__ */ N("div", { className: "nc-col", style: { gap: 6 }, children: [
1261
1267
  i && /* @__PURE__ */ s("span", { className: "nc-label", children: i }),
1262
- /* @__PURE__ */ k("div", { style: { display: "flex", gap: 12, alignItems: "center" }, children: [
1268
+ /* @__PURE__ */ N("div", { style: { display: "flex", gap: 12, alignItems: "center" }, children: [
1263
1269
  /* @__PURE__ */ s(
1264
1270
  "input",
1265
1271
  {
@@ -1270,14 +1276,14 @@ function ir({
1270
1276
  min: n,
1271
1277
  max: r,
1272
1278
  step: o,
1273
- disabled: c,
1279
+ disabled: a,
1274
1280
  style: {
1275
1281
  width: u,
1276
1282
  "--nc-slider-percentage": `${v}%`
1277
1283
  }
1278
1284
  }
1279
1285
  ),
1280
- a && /* @__PURE__ */ s(
1286
+ c && /* @__PURE__ */ s(
1281
1287
  "span",
1282
1288
  {
1283
1289
  style: {
@@ -1293,81 +1299,81 @@ function ir({
1293
1299
  ] })
1294
1300
  ] });
1295
1301
  }
1296
- const Bt = ({ size: e = 24, className: t, style: n }) => /* @__PURE__ */ s("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", className: t, style: n, children: /* @__PURE__ */ s("polyline", { points: "18 15 12 9 6 15" }) });
1297
- function Dt({ children: e, className: t = "", style: n }) {
1302
+ const Dt = ({ size: e = 24, className: t, style: n }) => /* @__PURE__ */ s("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", className: t, style: n, children: /* @__PURE__ */ s("polyline", { points: "18 15 12 9 6 15" }) });
1303
+ function Wt({ children: e, className: t = "", style: n }) {
1298
1304
  return /* @__PURE__ */ s("div", { className: `nc-tab-panel ${t}`, style: n, children: e });
1299
1305
  }
1300
- function cr({ active: e, children: t, keepMounted: n = !1, className: r = "", style: o }) {
1301
- const i = yt.toArray(t).filter(
1302
- (a) => xt(a) && (a.type === Dt || a.type.displayName === "TabPanel")
1306
+ function ar({ active: e, children: t, keepMounted: n = !1, className: r = "", style: o }) {
1307
+ const i = xt.toArray(t).filter(
1308
+ (c) => kt(c) && (c.type === Wt || c.type.displayName === "TabPanel")
1303
1309
  );
1304
1310
  if (n)
1305
- return /* @__PURE__ */ s("div", { className: `nc-tab-panels ${r}`, style: o, children: i.map((a) => {
1306
- const l = a.props.tab === e;
1311
+ return /* @__PURE__ */ s("div", { className: `nc-tab-panels ${r}`, style: o, children: i.map((c) => {
1312
+ const l = c.props.tab === e;
1307
1313
  return /* @__PURE__ */ s(
1308
1314
  "div",
1309
1315
  {
1310
1316
  className: `nc-tab-panel-wrapper ${l ? "nc-active" : ""}`,
1311
1317
  style: { display: l ? void 0 : "none" },
1312
1318
  "aria-hidden": !l,
1313
- children: a
1319
+ children: c
1314
1320
  },
1315
- a.props.tab
1321
+ c.props.tab
1316
1322
  );
1317
1323
  }) });
1318
- const c = i.find((a) => a.props.tab === e);
1319
- return /* @__PURE__ */ s("div", { className: `nc-tab-panels ${r}`, style: o, children: c });
1324
+ const a = i.find((c) => c.props.tab === e);
1325
+ return /* @__PURE__ */ s("div", { className: `nc-tab-panels ${r}`, style: o, children: a });
1320
1326
  }
1321
- function ar({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, className: i, toolbar: c, multiline: a, orientation: l = "horizontal", style: u }) {
1322
- const f = V(null), [v, d] = R(!1), [m, w] = R(!1), y = l === "verticalLeft" || l === "verticalRight", g = V(!1), N = V(0), b = V(0), p = V(!1);
1323
- B(() => {
1327
+ function lr({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, className: i, toolbar: a, multiline: c, orientation: l = "horizontal", style: u }) {
1328
+ const f = H(null), [v, d] = E(!1), [m, y] = E(!1), b = l === "verticalLeft" || l === "verticalRight", w = H(!1), k = H(0), g = H(0), p = H(!1);
1329
+ z(() => {
1324
1330
  const x = () => {
1325
1331
  if (f.current)
1326
- if (y) {
1327
- const { scrollTop: S, scrollHeight: $, clientHeight: z } = f.current;
1328
- d(S > 1), w(S < $ - z - 1);
1332
+ if (b) {
1333
+ const { scrollTop: S, scrollHeight: $, clientHeight: L } = f.current;
1334
+ d(S > 1), y(S < $ - L - 1);
1329
1335
  } else {
1330
- const { scrollLeft: S, scrollWidth: $, clientWidth: z } = f.current;
1331
- d(S > 1), w(S < $ - z - 1);
1336
+ const { scrollLeft: S, scrollWidth: $, clientWidth: L } = f.current;
1337
+ d(S > 1), y(S < $ - L - 1);
1332
1338
  }
1333
1339
  }, I = f.current;
1334
1340
  if (I)
1335
1341
  return x(), I.addEventListener("scroll", x), window.addEventListener("resize", x), () => {
1336
1342
  I.removeEventListener("scroll", x), window.removeEventListener("resize", x);
1337
1343
  };
1338
- }, [e, y]);
1344
+ }, [e, b]);
1339
1345
  const h = (x) => {
1340
- f.current && (g.current = !0, p.current = !1, N.current = y ? x.clientY : x.clientX, b.current = y ? f.current.scrollTop : f.current.scrollLeft, f.current.style.cursor = "grabbing", f.current.style.userSelect = "none");
1346
+ f.current && (w.current = !0, p.current = !1, k.current = b ? x.clientY : x.clientX, g.current = b ? f.current.scrollTop : f.current.scrollLeft, f.current.style.cursor = "grabbing", f.current.style.userSelect = "none");
1341
1347
  }, A = (x) => {
1342
- if (!g.current || !f.current) return;
1343
- const I = y ? x.clientY : x.clientX, S = N.current - I;
1344
- Math.abs(S) > 3 && (p.current = !0), y ? f.current.scrollTop = b.current + S : f.current.scrollLeft = b.current + S;
1348
+ if (!w.current || !f.current) return;
1349
+ const I = b ? x.clientY : x.clientX, S = k.current - I;
1350
+ Math.abs(S) > 3 && (p.current = !0), b ? f.current.scrollTop = g.current + S : f.current.scrollLeft = g.current + S;
1345
1351
  }, C = () => {
1346
- f.current && (g.current = !1, f.current.style.cursor = "", f.current.style.userSelect = "");
1352
+ f.current && (w.current = !1, f.current.style.cursor = "", f.current.style.userSelect = "");
1347
1353
  }, T = () => {
1348
1354
  C();
1349
1355
  };
1350
- B(() => {
1356
+ z(() => {
1351
1357
  const x = f.current;
1352
- if (!x || y) return;
1358
+ if (!x || b) return;
1353
1359
  const I = (S) => {
1354
1360
  S.deltaY !== 0 && (S.preventDefault(), x.scrollLeft += S.deltaY * 0.3);
1355
1361
  };
1356
1362
  return x.addEventListener("wheel", I, { passive: !1 }), () => {
1357
1363
  x.removeEventListener("wheel", I);
1358
1364
  };
1359
- }, [y]);
1360
- const L = (x) => {
1365
+ }, [b]);
1366
+ const P = (x) => {
1361
1367
  p.current || n(x);
1362
1368
  };
1363
- return /* @__PURE__ */ k("div", { className: `nc-tab-container ${y ? `nc-vertical nc-${l}` : ""} ${i || ""}`, style: u, children: [
1364
- /* @__PURE__ */ k("div", { className: "nc-tab-scroll-wrapper", children: [
1365
- v && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${y ? "nc-top" : "nc-left"}`, children: y ? /* @__PURE__ */ s(Bt, { size: 16 }) : /* @__PURE__ */ s(bt, { size: 16 }) }),
1369
+ return /* @__PURE__ */ N("div", { className: `nc-tab-container ${b ? `nc-vertical nc-${l}` : ""} ${i || ""}`, style: u, children: [
1370
+ /* @__PURE__ */ N("div", { className: "nc-tab-scroll-wrapper", children: [
1371
+ v && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${b ? "nc-top" : "nc-left"}`, children: b ? /* @__PURE__ */ s(Dt, { size: 16 }) : /* @__PURE__ */ s(vt, { size: 16 }) }),
1366
1372
  /* @__PURE__ */ s(
1367
1373
  "div",
1368
1374
  {
1369
1375
  ref: f,
1370
- className: `nc-tab-scroll ${a ? "nc-multiline" : ""}`,
1376
+ className: `nc-tab-scroll ${c ? "nc-multiline" : ""}`,
1371
1377
  onMouseDown: h,
1372
1378
  onMouseMove: A,
1373
1379
  onMouseUp: C,
@@ -1375,18 +1381,18 @@ function ar({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, cla
1375
1381
  style: { cursor: "grab" },
1376
1382
  children: e.map((x) => {
1377
1383
  const I = typeof x == "string" ? x : x.id, S = typeof x == "string" ? x : x.label, $ = r && !(o != null && o.includes(I));
1378
- return /* @__PURE__ */ k(
1384
+ return /* @__PURE__ */ N(
1379
1385
  "div",
1380
1386
  {
1381
1387
  className: `nc-tab-item ${t === I ? "nc-active" : ""} ${$ ? "nc-closable" : ""}`,
1382
- onClick: () => L(I),
1388
+ onClick: () => P(I),
1383
1389
  role: "button",
1384
1390
  tabIndex: 0,
1385
- onKeyDown: (z) => {
1386
- (z.key === "Enter" || z.key === " ") && n(I);
1391
+ onKeyDown: (L) => {
1392
+ (L.key === "Enter" || L.key === " ") && n(I);
1387
1393
  },
1388
1394
  children: [
1389
- /* @__PURE__ */ s("span", { className: "nc-tab-label", children: y ? S : typeof S == "string" ? S.toUpperCase() : S }),
1395
+ /* @__PURE__ */ s("span", { className: "nc-tab-label", children: b ? S : typeof S == "string" ? S.toUpperCase() : S }),
1390
1396
  $ && /* @__PURE__ */ s(
1391
1397
  "span",
1392
1398
  {
@@ -1394,13 +1400,13 @@ function ar({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, cla
1394
1400
  role: "button",
1395
1401
  tabIndex: 0,
1396
1402
  "aria-label": `Close ${typeof S == "string" ? S : I}`,
1397
- onClick: (z) => {
1398
- z.stopPropagation(), r(I);
1403
+ onClick: (L) => {
1404
+ L.stopPropagation(), r(I);
1399
1405
  },
1400
- onKeyDown: (z) => {
1401
- (z.key === "Enter" || z.key === " ") && (z.stopPropagation(), r(I));
1406
+ onKeyDown: (L) => {
1407
+ (L.key === "Enter" || L.key === " ") && (L.stopPropagation(), r(I));
1402
1408
  },
1403
- children: /* @__PURE__ */ k("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
1409
+ children: /* @__PURE__ */ N("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
1404
1410
  /* @__PURE__ */ s("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
1405
1411
  /* @__PURE__ */ s("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
1406
1412
  ] })
@@ -1413,13 +1419,13 @@ function ar({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, cla
1413
1419
  })
1414
1420
  }
1415
1421
  ),
1416
- m && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${y ? "nc-bottom" : "nc-right"}`, children: y ? /* @__PURE__ */ s(vt, { size: 16 }) : /* @__PURE__ */ s(wt, { size: 16 }) })
1422
+ m && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${b ? "nc-bottom" : "nc-right"}`, children: b ? /* @__PURE__ */ s(wt, { size: 16 }) : /* @__PURE__ */ s(yt, { size: 16 }) })
1417
1423
  ] }),
1418
- c && /* @__PURE__ */ s("div", { className: "nc-tab-toolbar", children: c })
1424
+ a && /* @__PURE__ */ s("div", { className: "nc-tab-toolbar", children: a })
1419
1425
  ] });
1420
1426
  }
1421
- function lr({ checked: e, onChange: t, disabled: n, label: r }) {
1422
- return /* @__PURE__ */ k(
1427
+ function dr({ checked: e, onChange: t, disabled: n, label: r }) {
1428
+ return /* @__PURE__ */ N(
1423
1429
  "label",
1424
1430
  {
1425
1431
  className: "nc-row",
@@ -1470,7 +1476,7 @@ function lr({ checked: e, onChange: t, disabled: n, label: r }) {
1470
1476
  }
1471
1477
  );
1472
1478
  }
1473
- const Oe = [
1479
+ const Fe = [
1474
1480
  "var(--nc-csv-col-0)",
1475
1481
  "var(--nc-csv-col-1)",
1476
1482
  "var(--nc-csv-col-2)",
@@ -1482,24 +1488,24 @@ const Oe = [
1482
1488
  "var(--nc-csv-col-8)",
1483
1489
  "var(--nc-csv-col-9)"
1484
1490
  ];
1485
- function Wt(e, t) {
1491
+ function Ht(e, t) {
1486
1492
  const r = e.slice(0, t).split(`
1487
- `), o = r.length, c = r[o - 1].split(" "), a = c.length, l = c[a - 1].length + 1;
1488
- return { line: o, column: a, character: l, offset: t };
1493
+ `), o = r.length, a = r[o - 1].split(" "), c = a.length, l = a[c - 1].length + 1;
1494
+ return { line: o, column: c, character: l, offset: t };
1489
1495
  }
1490
- function Ht(e, t, n, r) {
1496
+ function Vt(e, t, n, r) {
1491
1497
  const o = e.split(`
1492
1498
  `), i = Math.max(1, Math.min(t, o.length));
1493
- let c = 0;
1499
+ let a = 0;
1494
1500
  for (let v = 0; v < i - 1; v++)
1495
- c += o[v].length + 1;
1501
+ a += o[v].length + 1;
1496
1502
  const l = o[i - 1].split(" "), u = Math.max(1, Math.min(n, l.length));
1497
1503
  for (let v = 0; v < u - 1; v++)
1498
- c += l[v].length + 1;
1504
+ a += l[v].length + 1;
1499
1505
  const f = Math.max(1, Math.min(r, l[u - 1].length + 1));
1500
- return c += f - 1, c;
1506
+ return a += f - 1, a;
1501
1507
  }
1502
- function Vt(e, t) {
1508
+ function Ot(e, t) {
1503
1509
  const n = e.split(`
1504
1510
  `), r = Math.max(1, Math.min(t, n.length));
1505
1511
  let o = 0;
@@ -1507,76 +1513,76 @@ function Vt(e, t) {
1507
1513
  o += n[i].length + 1;
1508
1514
  return o;
1509
1515
  }
1510
- const dr = kt(
1511
- function({ value: t, onChange: n, placeholder: r, className: o, style: i, showLineNumbers: c = !1, onCursorChange: a, highlightLine: l }, u) {
1512
- const f = V(null), v = V(null), d = V(null);
1513
- Nt(u, () => ({
1514
- goToLine(b) {
1516
+ const ur = Nt(
1517
+ function({ value: t, onChange: n, placeholder: r, className: o, style: i, showLineNumbers: a = !1, onCursorChange: c, highlightLine: l }, u) {
1518
+ const f = H(null), v = H(null), d = H(null);
1519
+ At(u, () => ({
1520
+ goToLine(g) {
1515
1521
  const p = f.current;
1516
1522
  if (!p) return;
1517
- const h = Vt(t, b);
1523
+ const h = Ot(t, g);
1518
1524
  p.focus(), p.setSelectionRange(h, h);
1519
1525
  const A = parseFloat(getComputedStyle(p).lineHeight) || 18;
1520
- p.scrollTop = (Math.max(1, b) - 1) * A, w(), m();
1526
+ p.scrollTop = (Math.max(1, g) - 1) * A, y(), m();
1521
1527
  },
1522
- goToPosition(b, p, h) {
1528
+ goToPosition(g, p, h) {
1523
1529
  const A = f.current;
1524
1530
  if (!A) return;
1525
- const C = Ht(t, b, p, h);
1531
+ const C = Vt(t, g, p, h);
1526
1532
  A.focus(), A.setSelectionRange(C, C);
1527
1533
  const T = parseFloat(getComputedStyle(A).lineHeight) || 18;
1528
- A.scrollTop = (Math.max(1, b) - 1) * T, w(), m();
1534
+ A.scrollTop = (Math.max(1, g) - 1) * T, y(), m();
1529
1535
  }
1530
1536
  }), [t]);
1531
- const m = O(() => {
1532
- if (!a || !f.current) return;
1533
- const b = Wt(t, f.current.selectionStart);
1534
- a(b);
1535
- }, [a, t]), w = O(() => {
1536
- const b = f.current;
1537
- b && (v.current && (v.current.scrollTop = b.scrollTop, v.current.scrollLeft = b.scrollLeft), d.current && (d.current.scrollTop = b.scrollTop));
1537
+ const m = V(() => {
1538
+ if (!c || !f.current) return;
1539
+ const g = Ht(t, f.current.selectionStart);
1540
+ c(g);
1541
+ }, [c, t]), y = V(() => {
1542
+ const g = f.current;
1543
+ g && (v.current && (v.current.scrollTop = g.scrollTop, v.current.scrollLeft = g.scrollLeft), d.current && (d.current.scrollTop = g.scrollTop));
1538
1544
  }, []);
1539
- B(() => {
1545
+ z(() => {
1540
1546
  if (l == null || l < 1) return;
1541
- const b = f.current;
1542
- if (!b) return;
1543
- const p = parseFloat(getComputedStyle(b).lineHeight) || 18, h = (l - 1) * p, A = h + p;
1544
- (h < b.scrollTop || A > b.scrollTop + b.clientHeight) && (b.scrollTop = h - b.clientHeight / 2 + p / 2), w();
1547
+ const g = f.current;
1548
+ if (!g) return;
1549
+ const p = parseFloat(getComputedStyle(g).lineHeight) || 18, h = (l - 1) * p, A = h + p;
1550
+ (h < g.scrollTop || A > g.scrollTop + g.clientHeight) && (g.scrollTop = h - g.clientHeight / 2 + p / 2), y();
1545
1551
  }, [l]);
1546
- const y = we(() => t.split(`
1547
- `).length, [t]), g = () => {
1548
- const b = [];
1549
- for (let p = 1; p <= y; p++)
1550
- b.push(
1552
+ const b = we(() => t.split(`
1553
+ `).length, [t]), w = () => {
1554
+ const g = [];
1555
+ for (let p = 1; p <= b; p++)
1556
+ g.push(
1551
1557
  /* @__PURE__ */ s("div", { className: `nc-csv-line-number ${l === p ? "nc-csv-highlight" : ""}`, children: p }, p)
1552
1558
  );
1553
- return /* @__PURE__ */ s("div", { className: "nc-csv-gutter", ref: d, children: b });
1554
- }, N = (b) => b ? b.split(`
1559
+ return /* @__PURE__ */ s("div", { className: "nc-csv-gutter", ref: d, children: g });
1560
+ }, k = (g) => g ? g.split(`
1555
1561
  `).map((h, A) => {
1556
1562
  const C = h.split(" ");
1557
- return /* @__PURE__ */ k("div", { className: `nc-csv-line ${l === A + 1 ? "nc-csv-highlight" : ""}`, children: [
1558
- C.map((T, L) => /* @__PURE__ */ k("span", { children: [
1559
- L > 0 && /* @__PURE__ */ s("span", { className: "nc-csv-tab-char", children: " " }),
1560
- /* @__PURE__ */ s("span", { style: { color: Oe[L % Oe.length] }, children: T })
1561
- ] }, L)),
1563
+ return /* @__PURE__ */ N("div", { className: `nc-csv-line ${l === A + 1 ? "nc-csv-highlight" : ""}`, children: [
1564
+ C.map((T, P) => /* @__PURE__ */ N("span", { children: [
1565
+ P > 0 && /* @__PURE__ */ s("span", { className: "nc-csv-tab-char", children: " " }),
1566
+ /* @__PURE__ */ s("span", { style: { color: Fe[P % Fe.length] }, children: T })
1567
+ ] }, P)),
1562
1568
  h === "" && `
1563
1569
  `
1564
1570
  ] }, A);
1565
1571
  }) : null;
1566
- return /* @__PURE__ */ k("div", { className: `nc-csv-textarea-container ${c ? "nc-csv-with-gutter" : ""} ${o ?? ""}`, style: i, children: [
1567
- c && g(),
1568
- /* @__PURE__ */ k("div", { className: "nc-csv-textarea-editor", children: [
1569
- /* @__PURE__ */ s("div", { className: "nc-csv-textarea-backdrop", ref: v, children: /* @__PURE__ */ s("pre", { className: "nc-csv-textarea-highlights", children: N(t) }) }),
1572
+ return /* @__PURE__ */ N("div", { className: `nc-csv-textarea-container ${a ? "nc-csv-with-gutter" : ""} ${o ?? ""}`, style: i, children: [
1573
+ a && w(),
1574
+ /* @__PURE__ */ N("div", { className: "nc-csv-textarea-editor", children: [
1575
+ /* @__PURE__ */ s("div", { className: "nc-csv-textarea-backdrop", ref: v, children: /* @__PURE__ */ s("pre", { className: "nc-csv-textarea-highlights", children: k(t) }) }),
1570
1576
  /* @__PURE__ */ s(
1571
1577
  "textarea",
1572
1578
  {
1573
1579
  ref: f,
1574
1580
  className: "nc-csv-textarea-input",
1575
1581
  value: t,
1576
- onChange: (b) => {
1577
- n(b.target.value), requestAnimationFrame(m);
1582
+ onChange: (g) => {
1583
+ n(g.target.value), requestAnimationFrame(m);
1578
1584
  },
1579
- onScroll: w,
1585
+ onScroll: y,
1580
1586
  onSelect: m,
1581
1587
  onKeyUp: m,
1582
1588
  onClick: m,
@@ -1590,27 +1596,27 @@ const dr = kt(
1590
1596
  ] });
1591
1597
  }
1592
1598
  );
1593
- let ne = { notifications: [] };
1594
- const Ne = /* @__PURE__ */ new Set(), Fe = /* @__PURE__ */ new Map();
1595
- function Ae() {
1596
- const e = ne.notifications.slice();
1597
- for (const t of Array.from(Ne))
1599
+ let re = { notifications: [] };
1600
+ const Ae = /* @__PURE__ */ new Set(), je = /* @__PURE__ */ new Map();
1601
+ function Se() {
1602
+ const e = re.notifications.slice();
1603
+ for (const t of Array.from(Ae))
1598
1604
  try {
1599
1605
  t(e);
1600
1606
  } catch {
1601
1607
  }
1602
1608
  }
1603
- function Ot(e) {
1604
- Ne.add(e);
1609
+ function Ft(e) {
1610
+ Ae.add(e);
1605
1611
  try {
1606
- e(ne.notifications.slice());
1612
+ e(re.notifications.slice());
1607
1613
  } catch {
1608
1614
  }
1609
1615
  return () => {
1610
- Ne.delete(e);
1616
+ Ae.delete(e);
1611
1617
  };
1612
1618
  }
1613
- function Ft(e) {
1619
+ function jt(e) {
1614
1620
  const t = `notification-${Date.now()}-${Math.random()}`, { duration: n, type: r, ...o } = e, i = {
1615
1621
  id: t,
1616
1622
  dismissible: !0,
@@ -1618,20 +1624,20 @@ function Ft(e) {
1618
1624
  type: r === "error" ? "danger" : r ?? "info",
1619
1625
  duration: n ?? 5e3
1620
1626
  };
1621
- return ne.notifications = [i, ...ne.notifications], Ae(), i.duration && i.duration > 0 && setTimeout(() => {
1622
- qe(t);
1627
+ return re.notifications = [i, ...re.notifications], Se(), i.duration && i.duration > 0 && setTimeout(() => {
1628
+ Xe(t);
1623
1629
  }, i.duration), t;
1624
1630
  }
1625
- function qe(e) {
1626
- const t = ne.notifications.find((r) => r.id === e);
1631
+ function Xe(e) {
1632
+ const t = re.notifications.find((r) => r.id === e);
1627
1633
  if (!t) return;
1628
- t.isRemoving = !0, Ae();
1634
+ t.isRemoving = !0, Se();
1629
1635
  const n = window.setTimeout(() => {
1630
- ne.notifications = ne.notifications.filter((r) => r.id !== e), Ae(), Fe.delete(e);
1636
+ re.notifications = re.notifications.filter((r) => r.id !== e), Se(), je.delete(e);
1631
1637
  }, 300);
1632
- Fe.set(e, n);
1638
+ je.set(e, n);
1633
1639
  }
1634
- function jt({ type: e }) {
1640
+ function Gt({ type: e }) {
1635
1641
  switch (e) {
1636
1642
  case "success":
1637
1643
  return /* @__PURE__ */ s("svg", { viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ s(
@@ -1645,13 +1651,13 @@ function jt({ type: e }) {
1645
1651
  }
1646
1652
  ) });
1647
1653
  case "danger":
1648
- return /* @__PURE__ */ k("svg", { viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
1654
+ return /* @__PURE__ */ N("svg", { viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
1649
1655
  /* @__PURE__ */ s("circle", { cx: "10", cy: "10", r: "7", stroke: "currentColor", strokeWidth: "2" }),
1650
1656
  /* @__PURE__ */ s("path", { d: "M10 6.5v4.25", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }),
1651
1657
  /* @__PURE__ */ s("circle", { cx: "10", cy: "13.75", r: "1", fill: "currentColor" })
1652
1658
  ] });
1653
1659
  case "warning":
1654
- return /* @__PURE__ */ k("svg", { viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
1660
+ return /* @__PURE__ */ N("svg", { viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
1655
1661
  /* @__PURE__ */ s(
1656
1662
  "path",
1657
1663
  {
@@ -1665,15 +1671,15 @@ function jt({ type: e }) {
1665
1671
  /* @__PURE__ */ s("circle", { cx: "10", cy: "13.25", r: "1", fill: "currentColor" })
1666
1672
  ] });
1667
1673
  default:
1668
- return /* @__PURE__ */ k("svg", { viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
1674
+ return /* @__PURE__ */ N("svg", { viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
1669
1675
  /* @__PURE__ */ s("circle", { cx: "10", cy: "10", r: "7", stroke: "currentColor", strokeWidth: "2" }),
1670
1676
  /* @__PURE__ */ s("path", { d: "M10 9v4", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }),
1671
1677
  /* @__PURE__ */ s("circle", { cx: "10", cy: "6.5", r: "1", fill: "currentColor" })
1672
1678
  ] });
1673
1679
  }
1674
1680
  }
1675
- function Gt({ notification: e }) {
1676
- const { t } = X(), n = e.type || "info", r = () => {
1681
+ function Yt({ notification: e }) {
1682
+ const { t } = J(), n = e.type || "info", r = () => {
1677
1683
  if (e.title) return e.title;
1678
1684
  switch (n) {
1679
1685
  case "success":
@@ -1686,15 +1692,15 @@ function Gt({ notification: e }) {
1686
1692
  return t("common.info");
1687
1693
  }
1688
1694
  }, o = () => {
1689
- qe(e.id);
1695
+ Xe(e.id);
1690
1696
  };
1691
1697
  return /* @__PURE__ */ s(
1692
1698
  "div",
1693
1699
  {
1694
1700
  className: `nc-notification nc-notification-${n}`,
1695
- children: /* @__PURE__ */ k("div", { className: "nc-notification-content", children: [
1696
- /* @__PURE__ */ s("div", { className: `nc-notification-icon nc-notification-icon-${n}`, children: /* @__PURE__ */ s(jt, { type: n }) }),
1697
- /* @__PURE__ */ k("div", { className: "nc-notification-body", children: [
1701
+ children: /* @__PURE__ */ N("div", { className: "nc-notification-content", children: [
1702
+ /* @__PURE__ */ s("div", { className: `nc-notification-icon nc-notification-icon-${n}`, children: /* @__PURE__ */ s(Gt, { type: n }) }),
1703
+ /* @__PURE__ */ N("div", { className: "nc-notification-body", children: [
1698
1704
  /* @__PURE__ */ s("div", { className: "nc-notification-title", children: r() }),
1699
1705
  /* @__PURE__ */ s("div", { className: "nc-notification-message", children: e.message })
1700
1706
  ] }),
@@ -1704,27 +1710,27 @@ function Gt({ notification: e }) {
1704
1710
  className: "nc-notification-dismiss",
1705
1711
  onClick: o,
1706
1712
  "aria-label": t("common.close"),
1707
- children: /* @__PURE__ */ s(Ce, { size: 16 })
1713
+ children: /* @__PURE__ */ s($e, { size: 16 })
1708
1714
  }
1709
1715
  )
1710
1716
  ] })
1711
1717
  }
1712
1718
  );
1713
1719
  }
1714
- function ur() {
1715
- const [e, t] = R([]), [n, r] = R(/* @__PURE__ */ new Map()), [o, i] = R(/* @__PURE__ */ new Set()), c = V(null), a = V([]);
1716
- return B(() => Ot((u) => {
1717
- const f = new Set(a.current.map((d) => d.id)), v = u.filter((d) => !f.has(d.id)).map((d) => d.id);
1720
+ function pr() {
1721
+ const [e, t] = E([]), [n, r] = E(/* @__PURE__ */ new Map()), [o, i] = E(/* @__PURE__ */ new Set()), a = H(null), c = H([]);
1722
+ return z(() => Ft((u) => {
1723
+ const f = new Set(c.current.map((d) => d.id)), v = u.filter((d) => !f.has(d.id)).map((d) => d.id);
1718
1724
  v.length > 0 ? (t(u), i(new Set(v)), requestAnimationFrame(() => {
1719
1725
  requestAnimationFrame(() => {
1720
1726
  i(/* @__PURE__ */ new Set());
1721
1727
  });
1722
- })) : t(u), a.current = u;
1723
- }), []), B(() => {
1724
- if (!c.current) return;
1728
+ })) : t(u), c.current = u;
1729
+ }), []), z(() => {
1730
+ if (!a.current) return;
1725
1731
  const l = /* @__PURE__ */ new Map();
1726
1732
  let u = 0;
1727
- const f = c.current.children;
1733
+ const f = a.current.children;
1728
1734
  e.forEach((v, d) => {
1729
1735
  if (l.set(v.id, u), f[d]) {
1730
1736
  const m = f[d].offsetHeight;
@@ -1745,7 +1751,7 @@ function ur() {
1745
1751
  children: /* @__PURE__ */ s(
1746
1752
  "div",
1747
1753
  {
1748
- ref: c,
1754
+ ref: a,
1749
1755
  style: {
1750
1756
  pointerEvents: "auto",
1751
1757
  position: "relative",
@@ -1766,7 +1772,7 @@ function ur() {
1766
1772
  opacity: f ? 0 : 1,
1767
1773
  width: "100%"
1768
1774
  },
1769
- children: /* @__PURE__ */ s(Gt, { notification: l })
1775
+ children: /* @__PURE__ */ s(Yt, { notification: l })
1770
1776
  },
1771
1777
  l.id
1772
1778
  );
@@ -1776,14 +1782,14 @@ function ur() {
1776
1782
  }
1777
1783
  );
1778
1784
  }
1779
- function Yt(e) {
1780
- return Ft(e);
1785
+ function Kt(e) {
1786
+ return jt(e);
1781
1787
  }
1782
- const pr = {
1783
- show: (e) => Yt(e)
1788
+ const fr = {
1789
+ show: (e) => Kt(e)
1784
1790
  };
1785
- function fr(e) {
1786
- const t = St.createInstance(), n = {};
1791
+ function hr(e) {
1792
+ const t = Ct.createInstance(), n = {};
1787
1793
  for (const o in e)
1788
1794
  n[o] = { translation: e[o] };
1789
1795
  const r = typeof document < "u" && document.documentElement.lang || "en";
@@ -1796,16 +1802,16 @@ function fr(e) {
1796
1802
  // React already escapes by default
1797
1803
  }
1798
1804
  }), typeof MutationObserver < "u" && typeof document < "u" && new MutationObserver((i) => {
1799
- for (const c of i)
1800
- if (c.type === "attributes" && c.attributeName === "lang") {
1801
- const a = document.documentElement.lang || "en";
1802
- t.changeLanguage(a);
1805
+ for (const a of i)
1806
+ if (a.type === "attributes" && a.attributeName === "lang") {
1807
+ const c = document.documentElement.lang || "en";
1808
+ t.changeLanguage(c);
1803
1809
  }
1804
1810
  }).observe(document.documentElement, { attributes: !0 }), t;
1805
1811
  }
1806
- class Kt {
1812
+ class _t {
1807
1813
  constructor() {
1808
- Z(this, "apps", /* @__PURE__ */ new Map());
1814
+ Q(this, "apps", /* @__PURE__ */ new Map());
1809
1815
  }
1810
1816
  /**
1811
1817
  * Register an app definition.
@@ -1843,16 +1849,16 @@ class Kt {
1843
1849
  return this.apps.has(t);
1844
1850
  }
1845
1851
  }
1846
- const ie = new Kt(), je = "nc-ui-app-state";
1847
- class _t {
1852
+ const ie = new _t(), Ge = "nc-ui-app-state";
1853
+ class Ut {
1848
1854
  constructor() {
1849
- Z(this, "state");
1850
- Z(this, "listeners", /* @__PURE__ */ new Map());
1855
+ Q(this, "state");
1856
+ Q(this, "listeners", /* @__PURE__ */ new Map());
1851
1857
  this.state = this.loadState();
1852
1858
  }
1853
1859
  loadState() {
1854
1860
  try {
1855
- const t = localStorage.getItem(je);
1861
+ const t = localStorage.getItem(Ge);
1856
1862
  if (t)
1857
1863
  return JSON.parse(t);
1858
1864
  } catch {
@@ -1861,7 +1867,7 @@ class _t {
1861
1867
  }
1862
1868
  saveState() {
1863
1869
  try {
1864
- localStorage.setItem(je, JSON.stringify(this.state));
1870
+ localStorage.setItem(Ge, JSON.stringify(this.state));
1865
1871
  } catch {
1866
1872
  }
1867
1873
  }
@@ -1891,13 +1897,13 @@ class _t {
1891
1897
  (r = this.listeners.get(t)) == null || r.forEach((o) => o(n));
1892
1898
  }
1893
1899
  }
1894
- const q = new _t();
1895
- class Ut {
1900
+ const X = new Ut();
1901
+ class qt {
1896
1902
  constructor() {
1897
- Z(this, "apps", []);
1898
- Z(this, "activeAppId", null);
1899
- Z(this, "listeners", /* @__PURE__ */ new Set());
1900
- Z(this, "refReadyResolvers", /* @__PURE__ */ new Map());
1903
+ Q(this, "apps", []);
1904
+ Q(this, "activeAppId", null);
1905
+ Q(this, "listeners", /* @__PURE__ */ new Set());
1906
+ Q(this, "refReadyResolvers", /* @__PURE__ */ new Map());
1901
1907
  }
1902
1908
  /**
1903
1909
  * Launch an app and wait for it to be ready (ref populated).
@@ -1911,14 +1917,14 @@ class Ut {
1911
1917
  const { launchInBackground: r = !1 } = n || {};
1912
1918
  if (!ie.has(t))
1913
1919
  return console.error(`Cannot launch app "${t}": not registered`), null;
1914
- const o = this.apps.find((c) => c.appId === t);
1920
+ const o = this.apps.find((a) => a.appId === t);
1915
1921
  if (o)
1916
- return r || (this.setActiveApp(t), q._setActiveAppId(t)), o.ref ? o : this.waitForRef(t);
1922
+ return r || (this.setActiveApp(t), X._setActiveAppId(t)), o.ref ? o : this.waitForRef(t);
1917
1923
  const i = {
1918
1924
  appId: t,
1919
1925
  launchedAt: Date.now()
1920
1926
  };
1921
- return this.apps.push(i), r || (this.activeAppId = t, q._setActiveAppId(t)), this.notify(), this.waitForRef(t);
1927
+ return this.apps.push(i), r || (this.activeAppId = t, X._setActiveAppId(t)), this.notify(), this.waitForRef(t);
1922
1928
  }
1923
1929
  waitForRef(t) {
1924
1930
  return new Promise((n) => {
@@ -1955,7 +1961,7 @@ class Ut {
1955
1961
  const r = this.apps[n];
1956
1962
  if (r.ref && (r.ref = void 0), this.apps.splice(n, 1), this.activeAppId === t) {
1957
1963
  const o = window.innerWidth >= 768;
1958
- this.activeAppId = o && this.apps.length > 0 ? this.apps[this.apps.length - 1].appId : null, q._setActiveAppId(this.activeAppId);
1964
+ this.activeAppId = o && this.apps.length > 0 ? this.apps[this.apps.length - 1].appId : null, X._setActiveAppId(this.activeAppId);
1959
1965
  }
1960
1966
  this.notify();
1961
1967
  }
@@ -1967,7 +1973,7 @@ class Ut {
1967
1973
  console.warn(`Cannot activate app "${t}": not running`);
1968
1974
  return;
1969
1975
  }
1970
- this.activeAppId !== t && (this.activeAppId = t, this.notify(), q._setActiveAppId(t));
1976
+ this.activeAppId !== t && (this.activeAppId = t, this.notify(), X._setActiveAppId(t));
1971
1977
  }
1972
1978
  /**
1973
1979
  * Toggle an app: if active, deactivate; if inactive, activate.
@@ -2011,15 +2017,15 @@ class Ut {
2011
2017
  this.listeners.forEach((t) => t());
2012
2018
  }
2013
2019
  }
2014
- const Y = new Ut(), Xe = ce(null);
2015
- function qt() {
2016
- const e = te(Xe);
2020
+ const _ = new qt(), Je = ce(null);
2021
+ function Xt() {
2022
+ const e = ne(Je);
2017
2023
  if (!e)
2018
2024
  throw new Error("useApp must be used inside an App");
2019
2025
  return e;
2020
2026
  }
2021
- function Xt({ size: e = 16 }) {
2022
- return /* @__PURE__ */ k(
2027
+ function Jt({ size: e = 16 }) {
2028
+ return /* @__PURE__ */ N(
2023
2029
  "svg",
2024
2030
  {
2025
2031
  width: e,
@@ -2037,9 +2043,9 @@ function Xt({ size: e = 16 }) {
2037
2043
  }
2038
2044
  );
2039
2045
  }
2040
- function Jt({ title: e, onClose: t, onBack: n, toolbar: r, hideBackButton: o }) {
2041
- return /* @__PURE__ */ k("div", { className: "nc-app-title-bar", children: [
2042
- /* @__PURE__ */ k("div", { className: "nc-app-title-bar-left", children: [
2046
+ function Zt({ title: e, onClose: t, onBack: n, toolbar: r, hideBackButton: o }) {
2047
+ return /* @__PURE__ */ N("div", { className: "nc-app-title-bar", children: [
2048
+ /* @__PURE__ */ N("div", { className: "nc-app-title-bar-left", children: [
2043
2049
  n && !o && /* @__PURE__ */ s(
2044
2050
  "button",
2045
2051
  {
@@ -2047,18 +2053,18 @@ function Jt({ title: e, onClose: t, onBack: n, toolbar: r, hideBackButton: o })
2047
2053
  onClick: n,
2048
2054
  title: "Back",
2049
2055
  "aria-label": "Go back",
2050
- children: /* @__PURE__ */ s(Xt, { size: 16 })
2056
+ children: /* @__PURE__ */ s(Jt, { size: 16 })
2051
2057
  }
2052
2058
  ),
2053
2059
  /* @__PURE__ */ s("span", { className: "nc-app-title-bar-title", children: e })
2054
2060
  ] }),
2055
- /* @__PURE__ */ k("div", { className: "nc-app-title-bar-right", children: [
2061
+ /* @__PURE__ */ N("div", { className: "nc-app-title-bar-right", children: [
2056
2062
  r && /* @__PURE__ */ s("div", { className: "nc-app-title-bar-toolbar", children: r }),
2057
- /* @__PURE__ */ s(_e, { onClick: t, "aria-label": "Close application" })
2063
+ /* @__PURE__ */ s(Ue, { onClick: t, "aria-label": "Close application" })
2058
2064
  ] })
2059
2065
  ] });
2060
2066
  }
2061
- class Zt extends $e.Component {
2067
+ class Qt extends Me.Component {
2062
2068
  constructor(t) {
2063
2069
  super(t), this.state = { hasError: !1 };
2064
2070
  }
@@ -2069,7 +2075,7 @@ class Zt extends $e.Component {
2069
2075
  console.error(`Error loading app ${this.props.appId}:`, t, n);
2070
2076
  }
2071
2077
  render() {
2072
- return this.state.hasError ? /* @__PURE__ */ k(
2078
+ return this.state.hasError ? /* @__PURE__ */ N(
2073
2079
  "div",
2074
2080
  {
2075
2081
  style: {
@@ -2091,39 +2097,39 @@ class Zt extends $e.Component {
2091
2097
  ) : this.props.children;
2092
2098
  }
2093
2099
  }
2094
- function Je({ appId: e, isActive: t, onClose: n }) {
2095
- const { t: r } = X(), o = ie.get(e), [i, c] = R(""), [a, l] = R(null), [u, f] = R(null), [v, d] = R(!1), [m, w] = R(!1);
2096
- $e.useEffect(() => {
2097
- o != null && o.titleKey && c(r(o.titleKey));
2100
+ function Ze({ appId: e, isActive: t, onClose: n }) {
2101
+ const { t: r } = J(), o = ie.get(e), [i, a] = E(""), [c, l] = E(null), [u, f] = E(null), [v, d] = E(!1), [m, y] = E(!1);
2102
+ Me.useEffect(() => {
2103
+ o != null && o.titleKey && a(r(o.titleKey));
2098
2104
  }, [o, r]);
2099
- const y = O((x) => {
2100
- c(x);
2101
- }, []), g = O((x) => {
2105
+ const b = V((x) => {
2106
+ a(x);
2107
+ }, []), w = V((x) => {
2102
2108
  l(() => x);
2103
- }, []), N = O(() => {
2109
+ }, []), k = V(() => {
2104
2110
  l(null);
2105
- }, []), b = O((x) => {
2111
+ }, []), g = V((x) => {
2106
2112
  f(x);
2107
- }, []), p = O(() => {
2113
+ }, []), p = V(() => {
2108
2114
  f(null);
2109
- }, []), h = O((x) => {
2115
+ }, []), h = V((x) => {
2110
2116
  d(x);
2111
- }, []), A = O((x) => {
2112
- w(x);
2117
+ }, []), A = V((x) => {
2118
+ y(x);
2113
2119
  }, []), C = we(() => ({
2114
- setTitle: y,
2115
- setBackHandler: g,
2116
- clearBackHandler: N,
2117
- setToolbar: b,
2120
+ setTitle: b,
2121
+ setBackHandler: w,
2122
+ clearBackHandler: k,
2123
+ setToolbar: g,
2118
2124
  clearToolbar: p,
2119
2125
  setHideBackButton: h,
2120
2126
  setHideTitleBar: A,
2121
2127
  close: n
2122
- }), [y, g, N, b, p, h, A, n]);
2128
+ }), [b, w, k, g, p, h, A, n]);
2123
2129
  if (!o)
2124
2130
  return null;
2125
- const T = o.component, L = !o.hideTitleBar && !m;
2126
- return /* @__PURE__ */ k(
2131
+ const T = o.component, P = !o.hideTitleBar && !m;
2132
+ return /* @__PURE__ */ N(
2127
2133
  "div",
2128
2134
  {
2129
2135
  style: {
@@ -2133,12 +2139,12 @@ function Je({ appId: e, isActive: t, onClose: n }) {
2133
2139
  minHeight: 0
2134
2140
  },
2135
2141
  children: [
2136
- L && /* @__PURE__ */ s(
2137
- Jt,
2142
+ P && /* @__PURE__ */ s(
2143
+ Zt,
2138
2144
  {
2139
2145
  title: i,
2140
2146
  onClose: n,
2141
- onBack: a ?? void 0,
2147
+ onBack: c ?? void 0,
2142
2148
  toolbar: u,
2143
2149
  hideBackButton: v
2144
2150
  }
@@ -2146,7 +2152,7 @@ function Je({ appId: e, isActive: t, onClose: n }) {
2146
2152
  /* @__PURE__ */ s(
2147
2153
  "div",
2148
2154
  {
2149
- className: L ? "nc-app-content-wrapper" : "",
2155
+ className: P ? "nc-app-content-wrapper" : "",
2150
2156
  style: {
2151
2157
  padding: o.padding,
2152
2158
  flex: 1,
@@ -2156,8 +2162,8 @@ function Je({ appId: e, isActive: t, onClose: n }) {
2156
2162
  backgroundColor: "var(--nc-bg-tertiary)",
2157
2163
  position: "relative"
2158
2164
  },
2159
- children: /* @__PURE__ */ s(Xe.Provider, { value: C, children: /* @__PURE__ */ s(Zt, { appId: e, children: /* @__PURE__ */ s(
2160
- At,
2165
+ children: /* @__PURE__ */ s(Je.Provider, { value: C, children: /* @__PURE__ */ s(Qt, { appId: e, children: /* @__PURE__ */ s(
2166
+ St,
2161
2167
  {
2162
2168
  fallback: /* @__PURE__ */ s(
2163
2169
  "div",
@@ -2168,7 +2174,7 @@ function Je({ appId: e, isActive: t, onClose: n }) {
2168
2174
  justifyContent: "center",
2169
2175
  flex: 1
2170
2176
  },
2171
- children: /* @__PURE__ */ s(Ke, {})
2177
+ children: /* @__PURE__ */ s(_e, {})
2172
2178
  }
2173
2179
  ),
2174
2180
  children: /* @__PURE__ */ s(T, {})
@@ -2180,16 +2186,16 @@ function Je({ appId: e, isActive: t, onClose: n }) {
2180
2186
  }
2181
2187
  );
2182
2188
  }
2183
- const be = 768, ve = 1024, Ze = {
2189
+ const be = 768, ve = 1024, Qe = {
2184
2190
  isMobile: !1,
2185
2191
  isTablet: !1,
2186
2192
  isDesktop: !0,
2187
2193
  width: typeof window < "u" ? window.innerWidth : 1024,
2188
2194
  height: typeof window < "u" ? window.innerHeight : 768
2189
- }, Qe = ce(Ze);
2190
- function hr({ children: e }) {
2191
- const [t, n] = R(() => {
2192
- if (typeof window > "u") return Ze;
2195
+ }, et = ce(Qe);
2196
+ function mr({ children: e }) {
2197
+ const [t, n] = E(() => {
2198
+ if (typeof window > "u") return Qe;
2193
2199
  const r = window.innerWidth, o = window.innerHeight;
2194
2200
  return {
2195
2201
  isMobile: r < be,
@@ -2199,7 +2205,7 @@ function hr({ children: e }) {
2199
2205
  height: o
2200
2206
  };
2201
2207
  });
2202
- return B(() => {
2208
+ return z(() => {
2203
2209
  const r = () => {
2204
2210
  const o = window.innerWidth, i = window.innerHeight;
2205
2211
  n({
@@ -2211,46 +2217,46 @@ function hr({ children: e }) {
2211
2217
  });
2212
2218
  };
2213
2219
  return window.addEventListener("resize", r), () => window.removeEventListener("resize", r);
2214
- }, []), /* @__PURE__ */ s(Qe.Provider, { value: t, children: e });
2220
+ }, []), /* @__PURE__ */ s(et.Provider, { value: t, children: e });
2215
2221
  }
2216
- function et() {
2217
- return te(Qe);
2222
+ function tt() {
2223
+ return ne(et);
2218
2224
  }
2219
- const Me = "-", Qt = (e) => {
2220
- const t = tn(e), {
2225
+ const Ie = "-", en = (e) => {
2226
+ const t = nn(e), {
2221
2227
  conflictingClassGroups: n,
2222
2228
  conflictingClassGroupModifiers: r
2223
2229
  } = e;
2224
2230
  return {
2225
- getClassGroupId: (c) => {
2226
- const a = c.split(Me);
2227
- return a[0] === "" && a.length !== 1 && a.shift(), tt(a, t) || en(c);
2231
+ getClassGroupId: (a) => {
2232
+ const c = a.split(Ie);
2233
+ return c[0] === "" && c.length !== 1 && c.shift(), nt(c, t) || tn(a);
2228
2234
  },
2229
- getConflictingClassGroupIds: (c, a) => {
2230
- const l = n[c] || [];
2231
- return a && r[c] ? [...l, ...r[c]] : l;
2235
+ getConflictingClassGroupIds: (a, c) => {
2236
+ const l = n[a] || [];
2237
+ return c && r[a] ? [...l, ...r[a]] : l;
2232
2238
  }
2233
2239
  };
2234
- }, tt = (e, t) => {
2235
- var c;
2240
+ }, nt = (e, t) => {
2241
+ var a;
2236
2242
  if (e.length === 0)
2237
2243
  return t.classGroupId;
2238
- const n = e[0], r = t.nextPart.get(n), o = r ? tt(e.slice(1), r) : void 0;
2244
+ const n = e[0], r = t.nextPart.get(n), o = r ? nt(e.slice(1), r) : void 0;
2239
2245
  if (o)
2240
2246
  return o;
2241
2247
  if (t.validators.length === 0)
2242
2248
  return;
2243
- const i = e.join(Me);
2244
- return (c = t.validators.find(({
2245
- validator: a
2246
- }) => a(i))) == null ? void 0 : c.classGroupId;
2247
- }, Ge = /^\[(.+)\]$/, en = (e) => {
2248
- if (Ge.test(e)) {
2249
- const t = Ge.exec(e)[1], n = t == null ? void 0 : t.substring(0, t.indexOf(":"));
2249
+ const i = e.join(Ie);
2250
+ return (a = t.validators.find(({
2251
+ validator: c
2252
+ }) => c(i))) == null ? void 0 : a.classGroupId;
2253
+ }, Ye = /^\[(.+)\]$/, tn = (e) => {
2254
+ if (Ye.test(e)) {
2255
+ const t = Ye.exec(e)[1], n = t == null ? void 0 : t.substring(0, t.indexOf(":"));
2250
2256
  if (n)
2251
2257
  return "arbitrary.." + n;
2252
2258
  }
2253
- }, tn = (e) => {
2259
+ }, nn = (e) => {
2254
2260
  const {
2255
2261
  theme: t,
2256
2262
  prefix: n
@@ -2258,19 +2264,19 @@ const Me = "-", Qt = (e) => {
2258
2264
  nextPart: /* @__PURE__ */ new Map(),
2259
2265
  validators: []
2260
2266
  };
2261
- return rn(Object.entries(e.classGroups), n).forEach(([i, c]) => {
2262
- Se(c, r, i, t);
2267
+ return on(Object.entries(e.classGroups), n).forEach(([i, a]) => {
2268
+ Ce(a, r, i, t);
2263
2269
  }), r;
2264
- }, Se = (e, t, n, r) => {
2270
+ }, Ce = (e, t, n, r) => {
2265
2271
  e.forEach((o) => {
2266
2272
  if (typeof o == "string") {
2267
- const i = o === "" ? t : Ye(t, o);
2273
+ const i = o === "" ? t : Ke(t, o);
2268
2274
  i.classGroupId = n;
2269
2275
  return;
2270
2276
  }
2271
2277
  if (typeof o == "function") {
2272
- if (nn(o)) {
2273
- Se(o(r), t, n, r);
2278
+ if (rn(o)) {
2279
+ Ce(o(r), t, n, r);
2274
2280
  return;
2275
2281
  }
2276
2282
  t.validators.push({
@@ -2279,22 +2285,22 @@ const Me = "-", Qt = (e) => {
2279
2285
  });
2280
2286
  return;
2281
2287
  }
2282
- Object.entries(o).forEach(([i, c]) => {
2283
- Se(c, Ye(t, i), n, r);
2288
+ Object.entries(o).forEach(([i, a]) => {
2289
+ Ce(a, Ke(t, i), n, r);
2284
2290
  });
2285
2291
  });
2286
- }, Ye = (e, t) => {
2292
+ }, Ke = (e, t) => {
2287
2293
  let n = e;
2288
- return t.split(Me).forEach((r) => {
2294
+ return t.split(Ie).forEach((r) => {
2289
2295
  n.nextPart.has(r) || n.nextPart.set(r, {
2290
2296
  nextPart: /* @__PURE__ */ new Map(),
2291
2297
  validators: []
2292
2298
  }), n = n.nextPart.get(r);
2293
2299
  }), n;
2294
- }, nn = (e) => e.isThemeGetter, rn = (e, t) => t ? e.map(([n, r]) => {
2295
- const o = r.map((i) => typeof i == "string" ? t + i : typeof i == "object" ? Object.fromEntries(Object.entries(i).map(([c, a]) => [t + c, a])) : i);
2300
+ }, rn = (e) => e.isThemeGetter, on = (e, t) => t ? e.map(([n, r]) => {
2301
+ const o = r.map((i) => typeof i == "string" ? t + i : typeof i == "object" ? Object.fromEntries(Object.entries(i).map(([a, c]) => [t + a, c])) : i);
2296
2302
  return [n, o];
2297
- }) : e, on = (e) => {
2303
+ }) : e, sn = (e) => {
2298
2304
  if (e < 1)
2299
2305
  return {
2300
2306
  get: () => {
@@ -2303,55 +2309,55 @@ const Me = "-", Qt = (e) => {
2303
2309
  }
2304
2310
  };
2305
2311
  let t = 0, n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
2306
- const o = (i, c) => {
2307
- n.set(i, c), t++, t > e && (t = 0, r = n, n = /* @__PURE__ */ new Map());
2312
+ const o = (i, a) => {
2313
+ n.set(i, a), t++, t > e && (t = 0, r = n, n = /* @__PURE__ */ new Map());
2308
2314
  };
2309
2315
  return {
2310
2316
  get(i) {
2311
- let c = n.get(i);
2312
- if (c !== void 0)
2313
- return c;
2314
- if ((c = r.get(i)) !== void 0)
2315
- return o(i, c), c;
2317
+ let a = n.get(i);
2318
+ if (a !== void 0)
2319
+ return a;
2320
+ if ((a = r.get(i)) !== void 0)
2321
+ return o(i, a), a;
2316
2322
  },
2317
- set(i, c) {
2318
- n.has(i) ? n.set(i, c) : o(i, c);
2323
+ set(i, a) {
2324
+ n.has(i) ? n.set(i, a) : o(i, a);
2319
2325
  }
2320
2326
  };
2321
- }, nt = "!", sn = (e) => {
2327
+ }, rt = "!", cn = (e) => {
2322
2328
  const {
2323
2329
  separator: t,
2324
2330
  experimentalParseClassName: n
2325
- } = e, r = t.length === 1, o = t[0], i = t.length, c = (a) => {
2331
+ } = e, r = t.length === 1, o = t[0], i = t.length, a = (c) => {
2326
2332
  const l = [];
2327
2333
  let u = 0, f = 0, v;
2328
- for (let g = 0; g < a.length; g++) {
2329
- let N = a[g];
2334
+ for (let w = 0; w < c.length; w++) {
2335
+ let k = c[w];
2330
2336
  if (u === 0) {
2331
- if (N === o && (r || a.slice(g, g + i) === t)) {
2332
- l.push(a.slice(f, g)), f = g + i;
2337
+ if (k === o && (r || c.slice(w, w + i) === t)) {
2338
+ l.push(c.slice(f, w)), f = w + i;
2333
2339
  continue;
2334
2340
  }
2335
- if (N === "/") {
2336
- v = g;
2341
+ if (k === "/") {
2342
+ v = w;
2337
2343
  continue;
2338
2344
  }
2339
2345
  }
2340
- N === "[" ? u++ : N === "]" && u--;
2346
+ k === "[" ? u++ : k === "]" && u--;
2341
2347
  }
2342
- const d = l.length === 0 ? a : a.substring(f), m = d.startsWith(nt), w = m ? d.substring(1) : d, y = v && v > f ? v - f : void 0;
2348
+ const d = l.length === 0 ? c : c.substring(f), m = d.startsWith(rt), y = m ? d.substring(1) : d, b = v && v > f ? v - f : void 0;
2343
2349
  return {
2344
2350
  modifiers: l,
2345
2351
  hasImportantModifier: m,
2346
- baseClassName: w,
2347
- maybePostfixModifierPosition: y
2352
+ baseClassName: y,
2353
+ maybePostfixModifierPosition: b
2348
2354
  };
2349
2355
  };
2350
- return n ? (a) => n({
2351
- className: a,
2352
- parseClassName: c
2353
- }) : c;
2354
- }, cn = (e) => {
2356
+ return n ? (c) => n({
2357
+ className: c,
2358
+ parseClassName: a
2359
+ }) : a;
2360
+ }, an = (e) => {
2355
2361
  if (e.length <= 1)
2356
2362
  return e;
2357
2363
  const t = [];
@@ -2359,120 +2365,120 @@ const Me = "-", Qt = (e) => {
2359
2365
  return e.forEach((r) => {
2360
2366
  r[0] === "[" ? (t.push(...n.sort(), r), n = []) : n.push(r);
2361
2367
  }), t.push(...n.sort()), t;
2362
- }, an = (e) => ({
2363
- cache: on(e.cacheSize),
2364
- parseClassName: sn(e),
2365
- ...Qt(e)
2366
- }), ln = /\s+/, dn = (e, t) => {
2368
+ }, ln = (e) => ({
2369
+ cache: sn(e.cacheSize),
2370
+ parseClassName: cn(e),
2371
+ ...en(e)
2372
+ }), dn = /\s+/, un = (e, t) => {
2367
2373
  const {
2368
2374
  parseClassName: n,
2369
2375
  getClassGroupId: r,
2370
2376
  getConflictingClassGroupIds: o
2371
- } = t, i = [], c = e.trim().split(ln);
2372
- let a = "";
2373
- for (let l = c.length - 1; l >= 0; l -= 1) {
2374
- const u = c[l], {
2377
+ } = t, i = [], a = e.trim().split(dn);
2378
+ let c = "";
2379
+ for (let l = a.length - 1; l >= 0; l -= 1) {
2380
+ const u = a[l], {
2375
2381
  modifiers: f,
2376
2382
  hasImportantModifier: v,
2377
2383
  baseClassName: d,
2378
2384
  maybePostfixModifierPosition: m
2379
2385
  } = n(u);
2380
- let w = !!m, y = r(w ? d.substring(0, m) : d);
2381
- if (!y) {
2382
- if (!w) {
2383
- a = u + (a.length > 0 ? " " + a : a);
2386
+ let y = !!m, b = r(y ? d.substring(0, m) : d);
2387
+ if (!b) {
2388
+ if (!y) {
2389
+ c = u + (c.length > 0 ? " " + c : c);
2384
2390
  continue;
2385
2391
  }
2386
- if (y = r(d), !y) {
2387
- a = u + (a.length > 0 ? " " + a : a);
2392
+ if (b = r(d), !b) {
2393
+ c = u + (c.length > 0 ? " " + c : c);
2388
2394
  continue;
2389
2395
  }
2390
- w = !1;
2396
+ y = !1;
2391
2397
  }
2392
- const g = cn(f).join(":"), N = v ? g + nt : g, b = N + y;
2393
- if (i.includes(b))
2398
+ const w = an(f).join(":"), k = v ? w + rt : w, g = k + b;
2399
+ if (i.includes(g))
2394
2400
  continue;
2395
- i.push(b);
2396
- const p = o(y, w);
2401
+ i.push(g);
2402
+ const p = o(b, y);
2397
2403
  for (let h = 0; h < p.length; ++h) {
2398
2404
  const A = p[h];
2399
- i.push(N + A);
2405
+ i.push(k + A);
2400
2406
  }
2401
- a = u + (a.length > 0 ? " " + a : a);
2407
+ c = u + (c.length > 0 ? " " + c : c);
2402
2408
  }
2403
- return a;
2409
+ return c;
2404
2410
  };
2405
- function un() {
2411
+ function pn() {
2406
2412
  let e = 0, t, n, r = "";
2407
2413
  for (; e < arguments.length; )
2408
- (t = arguments[e++]) && (n = rt(t)) && (r && (r += " "), r += n);
2414
+ (t = arguments[e++]) && (n = ot(t)) && (r && (r += " "), r += n);
2409
2415
  return r;
2410
2416
  }
2411
- const rt = (e) => {
2417
+ const ot = (e) => {
2412
2418
  if (typeof e == "string")
2413
2419
  return e;
2414
2420
  let t, n = "";
2415
2421
  for (let r = 0; r < e.length; r++)
2416
- e[r] && (t = rt(e[r])) && (n && (n += " "), n += t);
2422
+ e[r] && (t = ot(e[r])) && (n && (n += " "), n += t);
2417
2423
  return n;
2418
2424
  };
2419
- function pn(e, ...t) {
2420
- let n, r, o, i = c;
2421
- function c(l) {
2425
+ function fn(e, ...t) {
2426
+ let n, r, o, i = a;
2427
+ function a(l) {
2422
2428
  const u = t.reduce((f, v) => v(f), e());
2423
- return n = an(u), r = n.cache.get, o = n.cache.set, i = a, a(l);
2429
+ return n = ln(u), r = n.cache.get, o = n.cache.set, i = c, c(l);
2424
2430
  }
2425
- function a(l) {
2431
+ function c(l) {
2426
2432
  const u = r(l);
2427
2433
  if (u)
2428
2434
  return u;
2429
- const f = dn(l, n);
2435
+ const f = un(l, n);
2430
2436
  return o(l, f), f;
2431
2437
  }
2432
2438
  return function() {
2433
- return i(un.apply(null, arguments));
2439
+ return i(pn.apply(null, arguments));
2434
2440
  };
2435
2441
  }
2436
- const W = (e) => {
2442
+ const D = (e) => {
2437
2443
  const t = (n) => n[e] || [];
2438
2444
  return t.isThemeGetter = !0, t;
2439
- }, ot = /^\[(?:([a-z-]+):)?(.+)\]$/i, fn = /^\d+\/\d+$/, hn = /* @__PURE__ */ new Set(["px", "full", "screen"]), mn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, gn = /\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$/, bn = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, vn = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, wn = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, _ = (e) => se(e) || hn.has(e) || fn.test(e), Q = (e) => ae(e, "length", $n), se = (e) => !!e && !Number.isNaN(Number(e)), ke = (e) => ae(e, "number", se), le = (e) => !!e && Number.isInteger(Number(e)), yn = (e) => e.endsWith("%") && se(e.slice(0, -1)), M = (e) => ot.test(e), ee = (e) => mn.test(e), xn = /* @__PURE__ */ new Set(["length", "size", "percentage"]), kn = (e) => ae(e, xn, st), Nn = (e) => ae(e, "position", st), An = /* @__PURE__ */ new Set(["image", "url"]), Sn = (e) => ae(e, An, In), Cn = (e) => ae(e, "", Mn), de = () => !0, ae = (e, t, n) => {
2440
- const r = ot.exec(e);
2445
+ }, st = /^\[(?:([a-z-]+):)?(.+)\]$/i, hn = /^\d+\/\d+$/, mn = /* @__PURE__ */ new Set(["px", "full", "screen"]), gn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, bn = /\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$/, vn = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, wn = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, yn = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, U = (e) => se(e) || mn.has(e) || hn.test(e), ee = (e) => ae(e, "length", Mn), se = (e) => !!e && !Number.isNaN(Number(e)), Ne = (e) => ae(e, "number", se), le = (e) => !!e && Number.isInteger(Number(e)), xn = (e) => e.endsWith("%") && se(e.slice(0, -1)), M = (e) => st.test(e), te = (e) => gn.test(e), kn = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Nn = (e) => ae(e, kn, it), An = (e) => ae(e, "position", it), Sn = /* @__PURE__ */ new Set(["image", "url"]), Cn = (e) => ae(e, Sn, Rn), $n = (e) => ae(e, "", In), de = () => !0, ae = (e, t, n) => {
2446
+ const r = st.exec(e);
2441
2447
  return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
2442
- }, $n = (e) => (
2448
+ }, Mn = (e) => (
2443
2449
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
2444
2450
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
2445
2451
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
2446
- gn.test(e) && !bn.test(e)
2447
- ), st = () => !1, Mn = (e) => vn.test(e), In = (e) => wn.test(e), Rn = () => {
2448
- const e = W("colors"), t = W("spacing"), n = W("blur"), r = W("brightness"), o = W("borderColor"), i = W("borderRadius"), c = W("borderSpacing"), a = W("borderWidth"), l = W("contrast"), u = W("grayscale"), f = W("hueRotate"), v = W("invert"), d = W("gap"), m = W("gradientColorStops"), w = W("gradientColorStopPositions"), y = W("inset"), g = W("margin"), N = W("opacity"), b = W("padding"), p = W("saturate"), h = W("scale"), A = W("sepia"), C = W("skew"), T = W("space"), L = W("translate"), x = () => ["auto", "contain", "none"], I = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", M, t], $ = () => [M, t], z = () => ["", _, Q], H = () => ["auto", se, M], K = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], j = () => ["solid", "dashed", "dotted", "double", "none"], E = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], D = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], P = () => ["", "0", M], re = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], F = () => [se, M];
2452
+ bn.test(e) && !vn.test(e)
2453
+ ), it = () => !1, In = (e) => wn.test(e), Rn = (e) => yn.test(e), En = () => {
2454
+ const e = D("colors"), t = D("spacing"), n = D("blur"), r = D("brightness"), o = D("borderColor"), i = D("borderRadius"), a = D("borderSpacing"), c = D("borderWidth"), l = D("contrast"), u = D("grayscale"), f = D("hueRotate"), v = D("invert"), d = D("gap"), m = D("gradientColorStops"), y = D("gradientColorStopPositions"), b = D("inset"), w = D("margin"), k = D("opacity"), g = D("padding"), p = D("saturate"), h = D("scale"), A = D("sepia"), C = D("skew"), T = D("space"), P = D("translate"), x = () => ["auto", "contain", "none"], I = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", M, t], $ = () => [M, t], L = () => ["", U, ee], O = () => ["auto", se, M], F = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], j = () => ["solid", "dashed", "dotted", "double", "none"], R = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], B = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], W = () => ["", "0", M], G = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], Y = () => [se, M];
2449
2455
  return {
2450
2456
  cacheSize: 500,
2451
2457
  separator: ":",
2452
2458
  theme: {
2453
2459
  colors: [de],
2454
- spacing: [_, Q],
2455
- blur: ["none", "", ee, M],
2456
- brightness: F(),
2460
+ spacing: [U, ee],
2461
+ blur: ["none", "", te, M],
2462
+ brightness: Y(),
2457
2463
  borderColor: [e],
2458
- borderRadius: ["none", "", "full", ee, M],
2464
+ borderRadius: ["none", "", "full", te, M],
2459
2465
  borderSpacing: $(),
2460
- borderWidth: z(),
2461
- contrast: F(),
2462
- grayscale: P(),
2463
- hueRotate: F(),
2464
- invert: P(),
2466
+ borderWidth: L(),
2467
+ contrast: Y(),
2468
+ grayscale: W(),
2469
+ hueRotate: Y(),
2470
+ invert: W(),
2465
2471
  gap: $(),
2466
2472
  gradientColorStops: [e],
2467
- gradientColorStopPositions: [yn, Q],
2473
+ gradientColorStopPositions: [xn, ee],
2468
2474
  inset: S(),
2469
2475
  margin: S(),
2470
- opacity: F(),
2476
+ opacity: Y(),
2471
2477
  padding: $(),
2472
- saturate: F(),
2473
- scale: F(),
2474
- sepia: P(),
2475
- skew: F(),
2478
+ saturate: Y(),
2479
+ scale: Y(),
2480
+ sepia: W(),
2481
+ skew: Y(),
2476
2482
  space: $(),
2477
2483
  translate: $()
2478
2484
  },
@@ -2495,21 +2501,21 @@ const W = (e) => {
2495
2501
  * @see https://tailwindcss.com/docs/columns
2496
2502
  */
2497
2503
  columns: [{
2498
- columns: [ee]
2504
+ columns: [te]
2499
2505
  }],
2500
2506
  /**
2501
2507
  * Break After
2502
2508
  * @see https://tailwindcss.com/docs/break-after
2503
2509
  */
2504
2510
  "break-after": [{
2505
- "break-after": re()
2511
+ "break-after": G()
2506
2512
  }],
2507
2513
  /**
2508
2514
  * Break Before
2509
2515
  * @see https://tailwindcss.com/docs/break-before
2510
2516
  */
2511
2517
  "break-before": [{
2512
- "break-before": re()
2518
+ "break-before": G()
2513
2519
  }],
2514
2520
  /**
2515
2521
  * Break Inside
@@ -2568,7 +2574,7 @@ const W = (e) => {
2568
2574
  * @see https://tailwindcss.com/docs/object-position
2569
2575
  */
2570
2576
  "object-position": [{
2571
- object: [...K(), M]
2577
+ object: [...F(), M]
2572
2578
  }],
2573
2579
  /**
2574
2580
  * Overflow
@@ -2622,63 +2628,63 @@ const W = (e) => {
2622
2628
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2623
2629
  */
2624
2630
  inset: [{
2625
- inset: [y]
2631
+ inset: [b]
2626
2632
  }],
2627
2633
  /**
2628
2634
  * Right / Left
2629
2635
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2630
2636
  */
2631
2637
  "inset-x": [{
2632
- "inset-x": [y]
2638
+ "inset-x": [b]
2633
2639
  }],
2634
2640
  /**
2635
2641
  * Top / Bottom
2636
2642
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2637
2643
  */
2638
2644
  "inset-y": [{
2639
- "inset-y": [y]
2645
+ "inset-y": [b]
2640
2646
  }],
2641
2647
  /**
2642
2648
  * Start
2643
2649
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2644
2650
  */
2645
2651
  start: [{
2646
- start: [y]
2652
+ start: [b]
2647
2653
  }],
2648
2654
  /**
2649
2655
  * End
2650
2656
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2651
2657
  */
2652
2658
  end: [{
2653
- end: [y]
2659
+ end: [b]
2654
2660
  }],
2655
2661
  /**
2656
2662
  * Top
2657
2663
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2658
2664
  */
2659
2665
  top: [{
2660
- top: [y]
2666
+ top: [b]
2661
2667
  }],
2662
2668
  /**
2663
2669
  * Right
2664
2670
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2665
2671
  */
2666
2672
  right: [{
2667
- right: [y]
2673
+ right: [b]
2668
2674
  }],
2669
2675
  /**
2670
2676
  * Bottom
2671
2677
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2672
2678
  */
2673
2679
  bottom: [{
2674
- bottom: [y]
2680
+ bottom: [b]
2675
2681
  }],
2676
2682
  /**
2677
2683
  * Left
2678
2684
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2679
2685
  */
2680
2686
  left: [{
2681
- left: [y]
2687
+ left: [b]
2682
2688
  }],
2683
2689
  /**
2684
2690
  * Visibility
@@ -2726,14 +2732,14 @@ const W = (e) => {
2726
2732
  * @see https://tailwindcss.com/docs/flex-grow
2727
2733
  */
2728
2734
  grow: [{
2729
- grow: P()
2735
+ grow: W()
2730
2736
  }],
2731
2737
  /**
2732
2738
  * Flex Shrink
2733
2739
  * @see https://tailwindcss.com/docs/flex-shrink
2734
2740
  */
2735
2741
  shrink: [{
2736
- shrink: P()
2742
+ shrink: W()
2737
2743
  }],
2738
2744
  /**
2739
2745
  * Order
@@ -2763,14 +2769,14 @@ const W = (e) => {
2763
2769
  * @see https://tailwindcss.com/docs/grid-column
2764
2770
  */
2765
2771
  "col-start": [{
2766
- "col-start": H()
2772
+ "col-start": O()
2767
2773
  }],
2768
2774
  /**
2769
2775
  * Grid Column End
2770
2776
  * @see https://tailwindcss.com/docs/grid-column
2771
2777
  */
2772
2778
  "col-end": [{
2773
- "col-end": H()
2779
+ "col-end": O()
2774
2780
  }],
2775
2781
  /**
2776
2782
  * Grid Template Rows
@@ -2793,14 +2799,14 @@ const W = (e) => {
2793
2799
  * @see https://tailwindcss.com/docs/grid-row
2794
2800
  */
2795
2801
  "row-start": [{
2796
- "row-start": H()
2802
+ "row-start": O()
2797
2803
  }],
2798
2804
  /**
2799
2805
  * Grid Row End
2800
2806
  * @see https://tailwindcss.com/docs/grid-row
2801
2807
  */
2802
2808
  "row-end": [{
2803
- "row-end": H()
2809
+ "row-end": O()
2804
2810
  }],
2805
2811
  /**
2806
2812
  * Grid Auto Flow
@@ -2849,7 +2855,7 @@ const W = (e) => {
2849
2855
  * @see https://tailwindcss.com/docs/justify-content
2850
2856
  */
2851
2857
  "justify-content": [{
2852
- justify: ["normal", ...D()]
2858
+ justify: ["normal", ...B()]
2853
2859
  }],
2854
2860
  /**
2855
2861
  * Justify Items
@@ -2870,7 +2876,7 @@ const W = (e) => {
2870
2876
  * @see https://tailwindcss.com/docs/align-content
2871
2877
  */
2872
2878
  "align-content": [{
2873
- content: ["normal", ...D(), "baseline"]
2879
+ content: ["normal", ...B(), "baseline"]
2874
2880
  }],
2875
2881
  /**
2876
2882
  * Align Items
@@ -2891,7 +2897,7 @@ const W = (e) => {
2891
2897
  * @see https://tailwindcss.com/docs/place-content
2892
2898
  */
2893
2899
  "place-content": [{
2894
- "place-content": [...D(), "baseline"]
2900
+ "place-content": [...B(), "baseline"]
2895
2901
  }],
2896
2902
  /**
2897
2903
  * Place Items
@@ -2913,126 +2919,126 @@ const W = (e) => {
2913
2919
  * @see https://tailwindcss.com/docs/padding
2914
2920
  */
2915
2921
  p: [{
2916
- p: [b]
2922
+ p: [g]
2917
2923
  }],
2918
2924
  /**
2919
2925
  * Padding X
2920
2926
  * @see https://tailwindcss.com/docs/padding
2921
2927
  */
2922
2928
  px: [{
2923
- px: [b]
2929
+ px: [g]
2924
2930
  }],
2925
2931
  /**
2926
2932
  * Padding Y
2927
2933
  * @see https://tailwindcss.com/docs/padding
2928
2934
  */
2929
2935
  py: [{
2930
- py: [b]
2936
+ py: [g]
2931
2937
  }],
2932
2938
  /**
2933
2939
  * Padding Start
2934
2940
  * @see https://tailwindcss.com/docs/padding
2935
2941
  */
2936
2942
  ps: [{
2937
- ps: [b]
2943
+ ps: [g]
2938
2944
  }],
2939
2945
  /**
2940
2946
  * Padding End
2941
2947
  * @see https://tailwindcss.com/docs/padding
2942
2948
  */
2943
2949
  pe: [{
2944
- pe: [b]
2950
+ pe: [g]
2945
2951
  }],
2946
2952
  /**
2947
2953
  * Padding Top
2948
2954
  * @see https://tailwindcss.com/docs/padding
2949
2955
  */
2950
2956
  pt: [{
2951
- pt: [b]
2957
+ pt: [g]
2952
2958
  }],
2953
2959
  /**
2954
2960
  * Padding Right
2955
2961
  * @see https://tailwindcss.com/docs/padding
2956
2962
  */
2957
2963
  pr: [{
2958
- pr: [b]
2964
+ pr: [g]
2959
2965
  }],
2960
2966
  /**
2961
2967
  * Padding Bottom
2962
2968
  * @see https://tailwindcss.com/docs/padding
2963
2969
  */
2964
2970
  pb: [{
2965
- pb: [b]
2971
+ pb: [g]
2966
2972
  }],
2967
2973
  /**
2968
2974
  * Padding Left
2969
2975
  * @see https://tailwindcss.com/docs/padding
2970
2976
  */
2971
2977
  pl: [{
2972
- pl: [b]
2978
+ pl: [g]
2973
2979
  }],
2974
2980
  /**
2975
2981
  * Margin
2976
2982
  * @see https://tailwindcss.com/docs/margin
2977
2983
  */
2978
2984
  m: [{
2979
- m: [g]
2985
+ m: [w]
2980
2986
  }],
2981
2987
  /**
2982
2988
  * Margin X
2983
2989
  * @see https://tailwindcss.com/docs/margin
2984
2990
  */
2985
2991
  mx: [{
2986
- mx: [g]
2992
+ mx: [w]
2987
2993
  }],
2988
2994
  /**
2989
2995
  * Margin Y
2990
2996
  * @see https://tailwindcss.com/docs/margin
2991
2997
  */
2992
2998
  my: [{
2993
- my: [g]
2999
+ my: [w]
2994
3000
  }],
2995
3001
  /**
2996
3002
  * Margin Start
2997
3003
  * @see https://tailwindcss.com/docs/margin
2998
3004
  */
2999
3005
  ms: [{
3000
- ms: [g]
3006
+ ms: [w]
3001
3007
  }],
3002
3008
  /**
3003
3009
  * Margin End
3004
3010
  * @see https://tailwindcss.com/docs/margin
3005
3011
  */
3006
3012
  me: [{
3007
- me: [g]
3013
+ me: [w]
3008
3014
  }],
3009
3015
  /**
3010
3016
  * Margin Top
3011
3017
  * @see https://tailwindcss.com/docs/margin
3012
3018
  */
3013
3019
  mt: [{
3014
- mt: [g]
3020
+ mt: [w]
3015
3021
  }],
3016
3022
  /**
3017
3023
  * Margin Right
3018
3024
  * @see https://tailwindcss.com/docs/margin
3019
3025
  */
3020
3026
  mr: [{
3021
- mr: [g]
3027
+ mr: [w]
3022
3028
  }],
3023
3029
  /**
3024
3030
  * Margin Bottom
3025
3031
  * @see https://tailwindcss.com/docs/margin
3026
3032
  */
3027
3033
  mb: [{
3028
- mb: [g]
3034
+ mb: [w]
3029
3035
  }],
3030
3036
  /**
3031
3037
  * Margin Left
3032
3038
  * @see https://tailwindcss.com/docs/margin
3033
3039
  */
3034
3040
  ml: [{
3035
- ml: [g]
3041
+ ml: [w]
3036
3042
  }],
3037
3043
  /**
3038
3044
  * Space Between X
@@ -3079,8 +3085,8 @@ const W = (e) => {
3079
3085
  */
3080
3086
  "max-w": [{
3081
3087
  "max-w": [M, t, "none", "full", "min", "max", "fit", "prose", {
3082
- screen: [ee]
3083
- }, ee]
3088
+ screen: [te]
3089
+ }, te]
3084
3090
  }],
3085
3091
  /**
3086
3092
  * Height
@@ -3116,7 +3122,7 @@ const W = (e) => {
3116
3122
  * @see https://tailwindcss.com/docs/font-size
3117
3123
  */
3118
3124
  "font-size": [{
3119
- text: ["base", ee, Q]
3125
+ text: ["base", te, ee]
3120
3126
  }],
3121
3127
  /**
3122
3128
  * Font Smoothing
@@ -3133,7 +3139,7 @@ const W = (e) => {
3133
3139
  * @see https://tailwindcss.com/docs/font-weight
3134
3140
  */
3135
3141
  "font-weight": [{
3136
- font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", ke]
3142
+ font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", Ne]
3137
3143
  }],
3138
3144
  /**
3139
3145
  * Font Family
@@ -3184,14 +3190,14 @@ const W = (e) => {
3184
3190
  * @see https://tailwindcss.com/docs/line-clamp
3185
3191
  */
3186
3192
  "line-clamp": [{
3187
- "line-clamp": ["none", se, ke]
3193
+ "line-clamp": ["none", se, Ne]
3188
3194
  }],
3189
3195
  /**
3190
3196
  * Line Height
3191
3197
  * @see https://tailwindcss.com/docs/line-height
3192
3198
  */
3193
3199
  leading: [{
3194
- leading: ["none", "tight", "snug", "normal", "relaxed", "loose", _, M]
3200
+ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", U, M]
3195
3201
  }],
3196
3202
  /**
3197
3203
  * List Style Image
@@ -3227,7 +3233,7 @@ const W = (e) => {
3227
3233
  * @see https://tailwindcss.com/docs/placeholder-opacity
3228
3234
  */
3229
3235
  "placeholder-opacity": [{
3230
- "placeholder-opacity": [N]
3236
+ "placeholder-opacity": [k]
3231
3237
  }],
3232
3238
  /**
3233
3239
  * Text Alignment
@@ -3248,7 +3254,7 @@ const W = (e) => {
3248
3254
  * @see https://tailwindcss.com/docs/text-opacity
3249
3255
  */
3250
3256
  "text-opacity": [{
3251
- "text-opacity": [N]
3257
+ "text-opacity": [k]
3252
3258
  }],
3253
3259
  /**
3254
3260
  * Text Decoration
@@ -3267,14 +3273,14 @@ const W = (e) => {
3267
3273
  * @see https://tailwindcss.com/docs/text-decoration-thickness
3268
3274
  */
3269
3275
  "text-decoration-thickness": [{
3270
- decoration: ["auto", "from-font", _, Q]
3276
+ decoration: ["auto", "from-font", U, ee]
3271
3277
  }],
3272
3278
  /**
3273
3279
  * Text Underline Offset
3274
3280
  * @see https://tailwindcss.com/docs/text-underline-offset
3275
3281
  */
3276
3282
  "underline-offset": [{
3277
- "underline-offset": ["auto", _, M]
3283
+ "underline-offset": ["auto", U, M]
3278
3284
  }],
3279
3285
  /**
3280
3286
  * Text Decoration Color
@@ -3363,7 +3369,7 @@ const W = (e) => {
3363
3369
  * @see https://tailwindcss.com/docs/background-opacity
3364
3370
  */
3365
3371
  "bg-opacity": [{
3366
- "bg-opacity": [N]
3372
+ "bg-opacity": [k]
3367
3373
  }],
3368
3374
  /**
3369
3375
  * Background Origin
@@ -3377,7 +3383,7 @@ const W = (e) => {
3377
3383
  * @see https://tailwindcss.com/docs/background-position
3378
3384
  */
3379
3385
  "bg-position": [{
3380
- bg: [...K(), Nn]
3386
+ bg: [...F(), An]
3381
3387
  }],
3382
3388
  /**
3383
3389
  * Background Repeat
@@ -3393,7 +3399,7 @@ const W = (e) => {
3393
3399
  * @see https://tailwindcss.com/docs/background-size
3394
3400
  */
3395
3401
  "bg-size": [{
3396
- bg: ["auto", "cover", "contain", kn]
3402
+ bg: ["auto", "cover", "contain", Nn]
3397
3403
  }],
3398
3404
  /**
3399
3405
  * Background Image
@@ -3402,7 +3408,7 @@ const W = (e) => {
3402
3408
  "bg-image": [{
3403
3409
  bg: ["none", {
3404
3410
  "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
3405
- }, Sn]
3411
+ }, Cn]
3406
3412
  }],
3407
3413
  /**
3408
3414
  * Background Color
@@ -3416,21 +3422,21 @@ const W = (e) => {
3416
3422
  * @see https://tailwindcss.com/docs/gradient-color-stops
3417
3423
  */
3418
3424
  "gradient-from-pos": [{
3419
- from: [w]
3425
+ from: [y]
3420
3426
  }],
3421
3427
  /**
3422
3428
  * Gradient Color Stops Via Position
3423
3429
  * @see https://tailwindcss.com/docs/gradient-color-stops
3424
3430
  */
3425
3431
  "gradient-via-pos": [{
3426
- via: [w]
3432
+ via: [y]
3427
3433
  }],
3428
3434
  /**
3429
3435
  * Gradient Color Stops To Position
3430
3436
  * @see https://tailwindcss.com/docs/gradient-color-stops
3431
3437
  */
3432
3438
  "gradient-to-pos": [{
3433
- to: [w]
3439
+ to: [y]
3434
3440
  }],
3435
3441
  /**
3436
3442
  * Gradient Color Stops From
@@ -3564,70 +3570,70 @@ const W = (e) => {
3564
3570
  * @see https://tailwindcss.com/docs/border-width
3565
3571
  */
3566
3572
  "border-w": [{
3567
- border: [a]
3573
+ border: [c]
3568
3574
  }],
3569
3575
  /**
3570
3576
  * Border Width X
3571
3577
  * @see https://tailwindcss.com/docs/border-width
3572
3578
  */
3573
3579
  "border-w-x": [{
3574
- "border-x": [a]
3580
+ "border-x": [c]
3575
3581
  }],
3576
3582
  /**
3577
3583
  * Border Width Y
3578
3584
  * @see https://tailwindcss.com/docs/border-width
3579
3585
  */
3580
3586
  "border-w-y": [{
3581
- "border-y": [a]
3587
+ "border-y": [c]
3582
3588
  }],
3583
3589
  /**
3584
3590
  * Border Width Start
3585
3591
  * @see https://tailwindcss.com/docs/border-width
3586
3592
  */
3587
3593
  "border-w-s": [{
3588
- "border-s": [a]
3594
+ "border-s": [c]
3589
3595
  }],
3590
3596
  /**
3591
3597
  * Border Width End
3592
3598
  * @see https://tailwindcss.com/docs/border-width
3593
3599
  */
3594
3600
  "border-w-e": [{
3595
- "border-e": [a]
3601
+ "border-e": [c]
3596
3602
  }],
3597
3603
  /**
3598
3604
  * Border Width Top
3599
3605
  * @see https://tailwindcss.com/docs/border-width
3600
3606
  */
3601
3607
  "border-w-t": [{
3602
- "border-t": [a]
3608
+ "border-t": [c]
3603
3609
  }],
3604
3610
  /**
3605
3611
  * Border Width Right
3606
3612
  * @see https://tailwindcss.com/docs/border-width
3607
3613
  */
3608
3614
  "border-w-r": [{
3609
- "border-r": [a]
3615
+ "border-r": [c]
3610
3616
  }],
3611
3617
  /**
3612
3618
  * Border Width Bottom
3613
3619
  * @see https://tailwindcss.com/docs/border-width
3614
3620
  */
3615
3621
  "border-w-b": [{
3616
- "border-b": [a]
3622
+ "border-b": [c]
3617
3623
  }],
3618
3624
  /**
3619
3625
  * Border Width Left
3620
3626
  * @see https://tailwindcss.com/docs/border-width
3621
3627
  */
3622
3628
  "border-w-l": [{
3623
- "border-l": [a]
3629
+ "border-l": [c]
3624
3630
  }],
3625
3631
  /**
3626
3632
  * Border Opacity
3627
3633
  * @see https://tailwindcss.com/docs/border-opacity
3628
3634
  */
3629
3635
  "border-opacity": [{
3630
- "border-opacity": [N]
3636
+ "border-opacity": [k]
3631
3637
  }],
3632
3638
  /**
3633
3639
  * Border Style
@@ -3641,7 +3647,7 @@ const W = (e) => {
3641
3647
  * @see https://tailwindcss.com/docs/divide-width
3642
3648
  */
3643
3649
  "divide-x": [{
3644
- "divide-x": [a]
3650
+ "divide-x": [c]
3645
3651
  }],
3646
3652
  /**
3647
3653
  * Divide Width X Reverse
@@ -3653,7 +3659,7 @@ const W = (e) => {
3653
3659
  * @see https://tailwindcss.com/docs/divide-width
3654
3660
  */
3655
3661
  "divide-y": [{
3656
- "divide-y": [a]
3662
+ "divide-y": [c]
3657
3663
  }],
3658
3664
  /**
3659
3665
  * Divide Width Y Reverse
@@ -3665,7 +3671,7 @@ const W = (e) => {
3665
3671
  * @see https://tailwindcss.com/docs/divide-opacity
3666
3672
  */
3667
3673
  "divide-opacity": [{
3668
- "divide-opacity": [N]
3674
+ "divide-opacity": [k]
3669
3675
  }],
3670
3676
  /**
3671
3677
  * Divide Style
@@ -3756,14 +3762,14 @@ const W = (e) => {
3756
3762
  * @see https://tailwindcss.com/docs/outline-offset
3757
3763
  */
3758
3764
  "outline-offset": [{
3759
- "outline-offset": [_, M]
3765
+ "outline-offset": [U, M]
3760
3766
  }],
3761
3767
  /**
3762
3768
  * Outline Width
3763
3769
  * @see https://tailwindcss.com/docs/outline-width
3764
3770
  */
3765
3771
  "outline-w": [{
3766
- outline: [_, Q]
3772
+ outline: [U, ee]
3767
3773
  }],
3768
3774
  /**
3769
3775
  * Outline Color
@@ -3777,7 +3783,7 @@ const W = (e) => {
3777
3783
  * @see https://tailwindcss.com/docs/ring-width
3778
3784
  */
3779
3785
  "ring-w": [{
3780
- ring: z()
3786
+ ring: L()
3781
3787
  }],
3782
3788
  /**
3783
3789
  * Ring Width Inset
@@ -3796,14 +3802,14 @@ const W = (e) => {
3796
3802
  * @see https://tailwindcss.com/docs/ring-opacity
3797
3803
  */
3798
3804
  "ring-opacity": [{
3799
- "ring-opacity": [N]
3805
+ "ring-opacity": [k]
3800
3806
  }],
3801
3807
  /**
3802
3808
  * Ring Offset Width
3803
3809
  * @see https://tailwindcss.com/docs/ring-offset-width
3804
3810
  */
3805
3811
  "ring-offset-w": [{
3806
- "ring-offset": [_, Q]
3812
+ "ring-offset": [U, ee]
3807
3813
  }],
3808
3814
  /**
3809
3815
  * Ring Offset Color
@@ -3818,7 +3824,7 @@ const W = (e) => {
3818
3824
  * @see https://tailwindcss.com/docs/box-shadow
3819
3825
  */
3820
3826
  shadow: [{
3821
- shadow: ["", "inner", "none", ee, Cn]
3827
+ shadow: ["", "inner", "none", te, $n]
3822
3828
  }],
3823
3829
  /**
3824
3830
  * Box Shadow Color
@@ -3832,21 +3838,21 @@ const W = (e) => {
3832
3838
  * @see https://tailwindcss.com/docs/opacity
3833
3839
  */
3834
3840
  opacity: [{
3835
- opacity: [N]
3841
+ opacity: [k]
3836
3842
  }],
3837
3843
  /**
3838
3844
  * Mix Blend Mode
3839
3845
  * @see https://tailwindcss.com/docs/mix-blend-mode
3840
3846
  */
3841
3847
  "mix-blend": [{
3842
- "mix-blend": [...E(), "plus-lighter", "plus-darker"]
3848
+ "mix-blend": [...R(), "plus-lighter", "plus-darker"]
3843
3849
  }],
3844
3850
  /**
3845
3851
  * Background Blend Mode
3846
3852
  * @see https://tailwindcss.com/docs/background-blend-mode
3847
3853
  */
3848
3854
  "bg-blend": [{
3849
- "bg-blend": E()
3855
+ "bg-blend": R()
3850
3856
  }],
3851
3857
  // Filters
3852
3858
  /**
@@ -3883,7 +3889,7 @@ const W = (e) => {
3883
3889
  * @see https://tailwindcss.com/docs/drop-shadow
3884
3890
  */
3885
3891
  "drop-shadow": [{
3886
- "drop-shadow": ["", "none", ee, M]
3892
+ "drop-shadow": ["", "none", te, M]
3887
3893
  }],
3888
3894
  /**
3889
3895
  * Grayscale
@@ -3975,7 +3981,7 @@ const W = (e) => {
3975
3981
  * @see https://tailwindcss.com/docs/backdrop-opacity
3976
3982
  */
3977
3983
  "backdrop-opacity": [{
3978
- "backdrop-opacity": [N]
3984
+ "backdrop-opacity": [k]
3979
3985
  }],
3980
3986
  /**
3981
3987
  * Backdrop Saturate
@@ -4004,21 +4010,21 @@ const W = (e) => {
4004
4010
  * @see https://tailwindcss.com/docs/border-spacing
4005
4011
  */
4006
4012
  "border-spacing": [{
4007
- "border-spacing": [c]
4013
+ "border-spacing": [a]
4008
4014
  }],
4009
4015
  /**
4010
4016
  * Border Spacing X
4011
4017
  * @see https://tailwindcss.com/docs/border-spacing
4012
4018
  */
4013
4019
  "border-spacing-x": [{
4014
- "border-spacing-x": [c]
4020
+ "border-spacing-x": [a]
4015
4021
  }],
4016
4022
  /**
4017
4023
  * Border Spacing Y
4018
4024
  * @see https://tailwindcss.com/docs/border-spacing
4019
4025
  */
4020
4026
  "border-spacing-y": [{
4021
- "border-spacing-y": [c]
4027
+ "border-spacing-y": [a]
4022
4028
  }],
4023
4029
  /**
4024
4030
  * Table Layout
@@ -4047,7 +4053,7 @@ const W = (e) => {
4047
4053
  * @see https://tailwindcss.com/docs/transition-duration
4048
4054
  */
4049
4055
  duration: [{
4050
- duration: F()
4056
+ duration: Y()
4051
4057
  }],
4052
4058
  /**
4053
4059
  * Transition Timing Function
@@ -4061,7 +4067,7 @@ const W = (e) => {
4061
4067
  * @see https://tailwindcss.com/docs/transition-delay
4062
4068
  */
4063
4069
  delay: [{
4064
- delay: F()
4070
+ delay: Y()
4065
4071
  }],
4066
4072
  /**
4067
4073
  * Animation
@@ -4111,14 +4117,14 @@ const W = (e) => {
4111
4117
  * @see https://tailwindcss.com/docs/translate
4112
4118
  */
4113
4119
  "translate-x": [{
4114
- "translate-x": [L]
4120
+ "translate-x": [P]
4115
4121
  }],
4116
4122
  /**
4117
4123
  * Translate Y
4118
4124
  * @see https://tailwindcss.com/docs/translate
4119
4125
  */
4120
4126
  "translate-y": [{
4121
- "translate-y": [L]
4127
+ "translate-y": [P]
4122
4128
  }],
4123
4129
  /**
4124
4130
  * Skew X
@@ -4398,7 +4404,7 @@ const W = (e) => {
4398
4404
  * @see https://tailwindcss.com/docs/stroke-width
4399
4405
  */
4400
4406
  "stroke-w": [{
4401
- stroke: [_, Q, ke]
4407
+ stroke: [U, ee, Ne]
4402
4408
  }],
4403
4409
  /**
4404
4410
  * Stroke
@@ -4473,90 +4479,90 @@ const W = (e) => {
4473
4479
  "font-size": ["leading"]
4474
4480
  }
4475
4481
  };
4476
- }, En = /* @__PURE__ */ pn(Rn);
4477
- function Tn(...e) {
4478
- return En(Ct(e));
4482
+ }, Tn = /* @__PURE__ */ fn(En);
4483
+ function Pn(...e) {
4484
+ return Tn($t(e));
4479
4485
  }
4480
- function mr({ autoWidth: e = !0, className: t, style: n }) {
4481
- const [r, o] = R(() => q.getActiveAppId()), [i, c] = R(() => Y.getRunningApps()), { isMobile: a } = et();
4482
- B(() => {
4483
- const g = q.subscribe("activeAppId", (N) => {
4484
- o(N);
4486
+ function gr({ autoWidth: e = !0, className: t, style: n }) {
4487
+ const [r, o] = E(() => X.getActiveAppId()), [i, a] = E(() => _.getRunningApps()), { isMobile: c } = tt();
4488
+ z(() => {
4489
+ const w = X.subscribe("activeAppId", (k) => {
4490
+ o(k);
4485
4491
  });
4486
4492
  return () => {
4487
- g();
4493
+ w();
4488
4494
  };
4489
- }, []), B(() => Y.subscribe(() => {
4490
- c(Y.getRunningApps());
4491
- }), []), B(() => {
4495
+ }, []), z(() => _.subscribe(() => {
4496
+ a(_.getRunningApps());
4497
+ }), []), z(() => {
4492
4498
  if (!new URLSearchParams(window.location.search).has("app")) {
4493
- const b = q.getActiveAppId();
4494
- b && !Y.isRunning(b) && Y.launchApp(b);
4499
+ const g = X.getActiveAppId();
4500
+ g && !_.isRunning(g) && _.launchApp(g);
4495
4501
  }
4496
4502
  }, []);
4497
- const l = (g) => {
4498
- Y.closeApp(g);
4499
- }, u = r ? ie.get(r) : null, v = (u == null ? void 0 : u.width) ?? 400, d = r !== null, y = { ...{
4503
+ const l = (w) => {
4504
+ _.closeApp(w);
4505
+ }, u = r ? ie.get(r) : null, v = (u == null ? void 0 : u.width) ?? 400, d = r !== null, b = { ...{
4500
4506
  overflow: "hidden",
4501
4507
  display: d ? "flex" : "none",
4502
4508
  flexDirection: "column",
4503
4509
  flexShrink: 0,
4504
4510
  // Only set width if autoWidth is enabled
4505
- ...e && d ? { width: a ? "100%" : v } : {}
4511
+ ...e && d ? { width: c ? "100%" : v } : {}
4506
4512
  }, ...n };
4507
- return /* @__PURE__ */ s("div", { className: Tn("nc-app-panel", t), style: y, children: i.map((g) => /* @__PURE__ */ s(
4508
- Je,
4513
+ return /* @__PURE__ */ s("div", { className: Pn("nc-app-panel", t), style: b, children: i.map((w) => /* @__PURE__ */ s(
4514
+ Ze,
4509
4515
  {
4510
- appId: g.appId,
4511
- isActive: r === g.appId,
4512
- onClose: () => l(g.appId)
4516
+ appId: w.appId,
4517
+ isActive: r === w.appId,
4518
+ onClose: () => l(w.appId)
4513
4519
  },
4514
- g.appId
4520
+ w.appId
4515
4521
  )) });
4516
4522
  }
4517
- function gr({
4523
+ function br({
4518
4524
  pinnedAppIds: e,
4519
4525
  className: t = "",
4520
4526
  showIndicators: n = !0,
4521
4527
  side: r = "left",
4522
4528
  getBadge: o
4523
4529
  }) {
4524
- const { t: i } = X(), { isMobile: c } = et(), [a, l] = R(() => q.getActiveAppId()), [u, f] = R(() => Y.getRunningApps());
4525
- B(() => {
4526
- const p = q.subscribe("activeAppId", (h) => {
4530
+ const { t: i } = J(), { isMobile: a } = tt(), [c, l] = E(() => X.getActiveAppId()), [u, f] = E(() => _.getRunningApps());
4531
+ z(() => {
4532
+ const p = X.subscribe("activeAppId", (h) => {
4527
4533
  l(h);
4528
4534
  });
4529
4535
  return () => {
4530
4536
  p();
4531
4537
  };
4532
- }, []), B(() => Y.subscribe(() => {
4533
- f(Y.getRunningApps());
4538
+ }, []), z(() => _.subscribe(() => {
4539
+ f(_.getRunningApps());
4534
4540
  }), []);
4535
4541
  const v = (p) => {
4536
- a === p ? Y.setActiveApp(null) : Y.launchApp(p);
4537
- }, d = e.map((p) => ie.get(p)).filter((p) => !!p), m = u.filter((p) => !e.includes(p.appId)).map((p) => ({ running: p, def: ie.get(p.appId) })).filter((p) => !!p.def), w = (p) => u.some((h) => h.appId === p), y = (p) => p.titleKey ? String(i(p.titleKey)) : p.id, g = (p) => typeof p == "number" && p > 99 ? "99+" : p, N = (p, h) => {
4542
+ c === p ? _.setActiveApp(null) : _.launchApp(p);
4543
+ }, d = e.map((p) => ie.get(p)).filter((p) => !!p), m = u.filter((p) => !e.includes(p.appId)).map((p) => ({ running: p, def: ie.get(p.appId) })).filter((p) => !!p.def), y = (p) => u.some((h) => h.appId === p), b = (p) => p.titleKey ? String(i(p.titleKey)) : p.id, w = (p) => typeof p == "number" && p > 99 ? "99+" : p, k = (p, h) => {
4538
4544
  const A = o == null ? void 0 : o(p, h);
4539
4545
  return A ? /* @__PURE__ */ s(
4540
4546
  "span",
4541
4547
  {
4542
4548
  className: `nc-app-taskbar-badge nc-${A.tone ?? "default"}`,
4543
4549
  "aria-label": A.ariaLabel,
4544
- children: g(A.content)
4550
+ children: w(A.content)
4545
4551
  }
4546
4552
  ) : null;
4547
- }, b = c ? 24 : 28;
4548
- return /* @__PURE__ */ k("div", { className: `nc-app-taskbar ${c ? "nc-mobile" : "nc-desktop"} nc-${r} ${t}`, children: [
4553
+ }, g = a ? 24 : 28;
4554
+ return /* @__PURE__ */ N("div", { className: `nc-app-taskbar ${a ? "nc-mobile" : "nc-desktop"} nc-${r} ${t}`, children: [
4549
4555
  d.map((p) => {
4550
- const h = p.icon, A = a === p.id, C = w(p.id), T = { isActive: A, isRunning: C, isPinned: !0 };
4551
- return /* @__PURE__ */ k(
4556
+ const h = p.icon, A = c === p.id, C = y(p.id), T = { isActive: A, isRunning: C, isPinned: !0 };
4557
+ return /* @__PURE__ */ N(
4552
4558
  "button",
4553
4559
  {
4554
4560
  className: `nc-app-taskbar-button ${A ? "nc-active" : ""} ${C ? "nc-running" : ""}`,
4555
4561
  onClick: () => v(p.id),
4556
- title: y(p),
4562
+ title: b(p),
4557
4563
  children: [
4558
- /* @__PURE__ */ s(h, { size: b }),
4559
- N(p, T),
4564
+ /* @__PURE__ */ s(h, { size: g }),
4565
+ k(p, T),
4560
4566
  n && C && /* @__PURE__ */ s("span", { className: "nc-app-taskbar-indicator" })
4561
4567
  ]
4562
4568
  },
@@ -4565,16 +4571,16 @@ function gr({
4565
4571
  }),
4566
4572
  m.length > 0 && /* @__PURE__ */ s("div", { className: "nc-app-taskbar-separator" }),
4567
4573
  m.map(({ running: p, def: h }) => {
4568
- const A = h.icon, C = a === p.appId, T = { isActive: C, isRunning: !0, isPinned: !1 };
4569
- return /* @__PURE__ */ k(
4574
+ const A = h.icon, C = c === p.appId, T = { isActive: C, isRunning: !0, isPinned: !1 };
4575
+ return /* @__PURE__ */ N(
4570
4576
  "button",
4571
4577
  {
4572
4578
  className: `nc-app-taskbar-button ${C ? "nc-active" : ""} nc-running`,
4573
4579
  onClick: () => v(p.appId),
4574
- title: y(h),
4580
+ title: b(h),
4575
4581
  children: [
4576
- /* @__PURE__ */ s(A, { size: b }),
4577
- N(h, T),
4582
+ /* @__PURE__ */ s(A, { size: g }),
4583
+ k(h, T),
4578
4584
  n && /* @__PURE__ */ s("span", { className: "nc-app-taskbar-indicator" })
4579
4585
  ]
4580
4586
  },
@@ -4583,7 +4589,7 @@ function gr({
4583
4589
  })
4584
4590
  ] });
4585
4591
  }
4586
- function br({
4592
+ function vr({
4587
4593
  appId: e,
4588
4594
  open: t,
4589
4595
  onClose: n,
@@ -4591,15 +4597,15 @@ function br({
4591
4597
  className: o = "",
4592
4598
  style: i
4593
4599
  }) {
4594
- const c = (l) => {
4600
+ const a = (l) => {
4595
4601
  r && l.target === l.currentTarget && n();
4596
4602
  };
4597
4603
  if (!t) return null;
4598
- const a = /* @__PURE__ */ s(
4604
+ const c = /* @__PURE__ */ s(
4599
4605
  "div",
4600
4606
  {
4601
4607
  className: "nc-dialog-overlay nc-fullscreen",
4602
- onClick: c,
4608
+ onClick: a,
4603
4609
  children: /* @__PURE__ */ s(
4604
4610
  "div",
4605
4611
  {
@@ -4607,7 +4613,7 @@ function br({
4607
4613
  style: i,
4608
4614
  onClick: (l) => l.stopPropagation(),
4609
4615
  children: /* @__PURE__ */ s(
4610
- Je,
4616
+ Ze,
4611
4617
  {
4612
4618
  appId: e,
4613
4619
  isActive: !0,
@@ -4618,86 +4624,86 @@ function br({
4618
4624
  )
4619
4625
  }
4620
4626
  );
4621
- return pe(a, document.body);
4627
+ return pe(c, document.body);
4622
4628
  }
4623
- const Ie = ce(null), it = ce(null);
4624
- function vr() {
4625
- const e = te(Ie);
4629
+ const Re = ce(null), ct = ce(null);
4630
+ function wr() {
4631
+ const e = ne(Re);
4626
4632
  if (!e)
4627
4633
  throw new Error("useNavStack must be used within a NavStackProvider");
4628
4634
  return e;
4629
4635
  }
4630
- function wr() {
4631
- const e = te(it);
4636
+ function yr() {
4637
+ const e = ne(ct);
4632
4638
  if (!e)
4633
4639
  throw new Error("useNavView must be used within NavStack");
4634
4640
  return e;
4635
4641
  }
4636
- const Re = ce(null);
4637
- function yr({ rootView: e, children: t }) {
4638
- const { t: n } = X(), r = qt(), [o, i] = R([e]), [c, a] = R([null]), l = O((h, A) => {
4639
- a((C) => {
4642
+ const Ee = ce(null);
4643
+ function xr({ rootView: e, children: t }) {
4644
+ const { t: n } = J(), r = Xt(), [o, i] = E([e]), [a, c] = E([null]), l = V((h, A) => {
4645
+ c((C) => {
4640
4646
  const T = [...C];
4641
4647
  return T[h] = A, T;
4642
4648
  });
4643
- }, []), u = O((h) => {
4644
- a((A) => {
4649
+ }, []), u = V((h) => {
4650
+ c((A) => {
4645
4651
  const C = [...A];
4646
4652
  return C[h] = null, C;
4647
4653
  });
4648
- }, []), f = O((h) => {
4649
- i((A) => [...A, h]), a((A) => [...A, null]);
4650
- }, []), v = O(() => {
4651
- i((h) => h.length <= 1 ? h : h.slice(0, -1)), a((h) => h.slice(0, -1));
4652
- }, []), d = O(() => {
4653
- i([e]), a([null]);
4654
- }, [e]), m = o.length, w = m > 1, y = o.length - 1, g = o[o.length - 1], N = g != null && g.titleKey ? n(g.titleKey) : (g == null ? void 0 : g.title) ?? "";
4655
- B(() => {
4656
- r.setTitle(N);
4657
- }, [N, r]), B(() => {
4658
- w ? r.setBackHandler(v) : r.clearBackHandler();
4659
- }, [w, v, r]), B(() => {
4660
- const h = c[c.length - 1];
4654
+ }, []), f = V((h) => {
4655
+ i((A) => [...A, h]), c((A) => [...A, null]);
4656
+ }, []), v = V(() => {
4657
+ i((h) => h.length <= 1 ? h : h.slice(0, -1)), c((h) => h.slice(0, -1));
4658
+ }, []), d = V(() => {
4659
+ i([e]), c([null]);
4660
+ }, [e]), m = o.length, y = m > 1, b = o.length - 1, w = o[o.length - 1], k = w != null && w.titleKey ? n(w.titleKey) : (w == null ? void 0 : w.title) ?? "";
4661
+ z(() => {
4662
+ r.setTitle(k);
4663
+ }, [k, r]), z(() => {
4664
+ y ? r.setBackHandler(v) : r.clearBackHandler();
4665
+ }, [y, v, r]), z(() => {
4666
+ const h = a[a.length - 1];
4661
4667
  h ? r.setToolbar(h) : r.clearToolbar();
4662
- }, [c, r]);
4663
- const b = {
4668
+ }, [a, r]);
4669
+ const g = {
4664
4670
  push: f,
4665
4671
  pop: v,
4666
4672
  reset: d,
4667
4673
  depth: m,
4668
- canGoBack: w,
4669
- currentTitle: N
4674
+ canGoBack: y,
4675
+ currentTitle: k
4670
4676
  }, p = {
4671
4677
  stack: o,
4672
- toolbarStack: c,
4678
+ toolbarStack: a,
4673
4679
  updateToolbar: l,
4674
4680
  clearToolbarAt: u,
4675
- topIndex: y
4681
+ topIndex: b
4676
4682
  };
4677
- return /* @__PURE__ */ s(Ie.Provider, { value: b, children: /* @__PURE__ */ s(Re.Provider, { value: p, children: t }) });
4683
+ return /* @__PURE__ */ s(Re.Provider, { value: g, children: /* @__PURE__ */ s(Ee.Provider, { value: p, children: t }) });
4678
4684
  }
4679
- function Pn({ index: e, children: t }) {
4680
- const n = te(Re);
4685
+ function Ln({ index: e, children: t }) {
4686
+ const n = ne(Ee);
4681
4687
  if (!n)
4682
4688
  throw new Error("NavViewProvider must be used within NavStackProvider");
4683
- const { updateToolbar: r, clearToolbarAt: o, topIndex: i } = n, c = O((u) => {
4689
+ const { updateToolbar: r, clearToolbarAt: o, topIndex: i } = n, a = V((u) => {
4684
4690
  e === i && r(e, u);
4685
- }, [e, i, r]), a = O(() => {
4691
+ }, [e, i, r]), c = V(() => {
4686
4692
  e === i && o(e);
4687
4693
  }, [e, i, o]), l = {
4688
- setToolbar: c,
4689
- clearToolbar: a
4694
+ setToolbar: a,
4695
+ clearToolbar: c
4690
4696
  };
4691
- return /* @__PURE__ */ s(it.Provider, { value: l, children: t });
4697
+ return /* @__PURE__ */ s(ct.Provider, { value: l, children: t });
4692
4698
  }
4693
- function xr() {
4694
- const e = te(Ie), t = te(Re);
4699
+ function kr() {
4700
+ const e = ne(Re), t = ne(Ee);
4695
4701
  if (!e || !t)
4696
4702
  throw new Error("NavStackContainer must be used within a NavStackProvider");
4697
4703
  const { stack: n } = t;
4698
4704
  return /* @__PURE__ */ s("div", { className: "nav-stack-container", children: /* @__PURE__ */ s("div", { className: "nav-stack-content", children: n.map((r, o) => {
4699
4705
  const i = o === n.length - 1;
4700
- return /* @__PURE__ */ s(Pn, { index: o, children: /* @__PURE__ */ s(
4706
+ return /* @__PURE__ */ s(Ln, { index: o, children: /* @__PURE__ */ s(
4701
4707
  "div",
4702
4708
  {
4703
4709
  style: { display: i ? "flex" : "none", flexDirection: "column", height: "100%" },
@@ -4707,55 +4713,55 @@ function xr() {
4707
4713
  }) }) });
4708
4714
  }
4709
4715
  export {
4710
- Ke as ActivityIndicator,
4711
- jn as Alert,
4712
- Je as AppContainer,
4713
- Xe as AppContext,
4714
- br as AppDialog,
4715
- mr as AppPanel,
4716
- gr as AppTaskbar,
4717
- Jt as AppTitleBar,
4718
- Gn as Battery,
4719
- U as Button,
4720
- Yn as ButtonGroup,
4721
- Kn as Checkbox,
4722
- _e as CloseButton,
4723
- _n as ComboBox,
4724
- Zn as ContextMenu,
4725
- dr as CsvTextArea,
4726
- Qn as Dialog,
4716
+ _e as ActivityIndicator,
4717
+ Gn as Alert,
4718
+ Ze as AppContainer,
4719
+ Je as AppContext,
4720
+ vr as AppDialog,
4721
+ gr as AppPanel,
4722
+ br as AppTaskbar,
4723
+ Zt as AppTitleBar,
4724
+ Yn as Battery,
4725
+ q as Button,
4726
+ Kn as ButtonGroup,
4727
+ _n as Checkbox,
4728
+ Ue as CloseButton,
4729
+ Un as ComboBox,
4730
+ Qn as ContextMenu,
4731
+ ur as CsvTextArea,
4732
+ er as Dialog,
4727
4733
  oe as DialogClose,
4728
- qn as EditButton,
4729
- Jn as Hyperlink,
4730
- er as Input,
4731
- nr as ListGroup,
4732
- tr as ListGroupItem,
4733
- or as MonthRangePicker,
4734
- rr as MultiSelect,
4735
- xr as NavStackContainer,
4736
- yr as NavStackProvider,
4737
- Gt as Notification,
4738
- ur as NotificationContainer,
4739
- sr as NumberInput,
4740
- Un as RefreshButton,
4741
- ir as Slider,
4742
- Dt as TabPanel,
4743
- cr as TabPanels,
4744
- ar as Tabs,
4745
- lr as Toggle,
4746
- Xn as TrashButton,
4747
- hr as ViewportProvider,
4734
+ Xn as EditButton,
4735
+ Zn as Hyperlink,
4736
+ tr as Input,
4737
+ rr as ListGroup,
4738
+ nr as ListGroupItem,
4739
+ sr as MonthRangePicker,
4740
+ or as MultiSelect,
4741
+ kr as NavStackContainer,
4742
+ xr as NavStackProvider,
4743
+ Yt as Notification,
4744
+ pr as NotificationContainer,
4745
+ ir as NumberInput,
4746
+ qn as RefreshButton,
4747
+ cr as Slider,
4748
+ Wt as TabPanel,
4749
+ ar as TabPanels,
4750
+ lr as Tabs,
4751
+ dr as Toggle,
4752
+ Jn as TrashButton,
4753
+ mr as ViewportProvider,
4748
4754
  ie as appRegistry,
4749
- q as appStateStore,
4750
- Tn as cn,
4751
- fr as createAppI18nFactory,
4752
- pr as notificationManager,
4753
- Y as runningAppsStore,
4754
- Yt as showNotification,
4755
- qt as useApp,
4756
- Pt as useDialog,
4757
- vr as useNavStack,
4758
- wr as useNavView,
4759
- et as useViewport
4755
+ X as appStateStore,
4756
+ Pn as cn,
4757
+ hr as createAppI18nFactory,
4758
+ fr as notificationManager,
4759
+ _ as runningAppsStore,
4760
+ Kt as showNotification,
4761
+ Xt as useApp,
4762
+ Lt as useDialog,
4763
+ wr as useNavStack,
4764
+ yr as useNavView,
4765
+ tt as useViewport
4760
4766
  };
4761
4767
  //# sourceMappingURL=index.js.map