@humain/ui 2.2.2 → 2.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/dist/components/templates/AppShell/AppShell.d.ts +5 -3
  2. package/dist/components/templates/AppShell/index.d.ts +1 -1
  3. package/dist/components/templates/AppSidebar/AppSidebar.constants.d.ts +4 -0
  4. package/dist/components/templates/AppSidebar/AppSidebar.d.ts +1 -0
  5. package/dist/index.js +19 -18
  6. package/dist/index152.js +1 -1
  7. package/dist/index152.js.map +1 -1
  8. package/dist/index173.js +1 -1
  9. package/dist/index173.js.map +1 -1
  10. package/dist/index184.js +1 -1
  11. package/dist/index184.js.map +1 -1
  12. package/dist/index217.js +6 -24
  13. package/dist/index217.js.map +1 -1
  14. package/dist/index218.js +20 -23
  15. package/dist/index218.js.map +1 -1
  16. package/dist/index219.js +20 -95
  17. package/dist/index219.js.map +1 -1
  18. package/dist/index220.js +92 -88
  19. package/dist/index220.js.map +1 -1
  20. package/dist/index221.js +97 -29
  21. package/dist/index221.js.map +1 -1
  22. package/dist/index222.js +24 -470
  23. package/dist/index222.js.map +1 -1
  24. package/dist/index223.js +450 -196
  25. package/dist/index223.js.map +1 -1
  26. package/dist/index224.js +199 -754
  27. package/dist/index224.js.map +1 -1
  28. package/dist/index225.js +777 -61
  29. package/dist/index225.js.map +1 -1
  30. package/dist/index226.js +58 -181
  31. package/dist/index226.js.map +1 -1
  32. package/dist/index227.js +175 -259
  33. package/dist/index227.js.map +1 -1
  34. package/dist/index228.js +246 -172
  35. package/dist/index228.js.map +1 -1
  36. package/dist/index229.js +195 -32
  37. package/dist/index229.js.map +1 -1
  38. package/dist/index230.js +12 -40
  39. package/dist/index230.js.map +1 -1
  40. package/dist/index231.js +23 -26
  41. package/dist/index231.js.map +1 -1
  42. package/dist/index232.js +45 -22
  43. package/dist/index232.js.map +1 -1
  44. package/dist/index233.js +27 -48
  45. package/dist/index233.js.map +1 -1
  46. package/dist/index234.js +52 -26
  47. package/dist/index234.js.map +1 -1
  48. package/dist/index235.js +40 -225
  49. package/dist/index235.js.map +1 -1
  50. package/dist/index236.js +217 -39
  51. package/dist/index236.js.map +1 -1
  52. package/dist/index237.js +50 -0
  53. package/dist/index237.js.map +1 -0
  54. package/dist/styles.css +1 -1
  55. package/dist/wc/AISource.js +46 -46
  56. package/dist/wc/AISource.js.map +1 -1
  57. package/dist/wc/AIToolCall.js +9 -9
  58. package/dist/wc/AIToolCall.js.map +1 -1
  59. package/dist/wc/{sidebar.js → AppSidebar.constants.js} +80 -78
  60. package/dist/wc/AppSidebar.constants.js.map +1 -0
  61. package/dist/wc/hf-app-shell.js +346 -343
  62. package/dist/wc/hf-app-shell.js.map +1 -1
  63. package/dist/wc/hf-app-sidebar.js +68 -65
  64. package/dist/wc/hf-app-sidebar.js.map +1 -1
  65. package/dist/wc/markdown-renderer.js +1 -1
  66. package/dist/wc/markdown-renderer.js.map +1 -1
  67. package/dist/wc-react/AISource.js +8 -8
  68. package/dist/wc-react/AISource.js.map +1 -1
  69. package/dist/wc-react/AIToolCall.js +42 -42
  70. package/dist/wc-react/AIToolCall.js.map +1 -1
  71. package/dist/wc-react/{sidebar.js → AppSidebar.constants.js} +89 -87
  72. package/dist/wc-react/AppSidebar.constants.js.map +1 -0
  73. package/dist/wc-react/hf-app-shell.js +383 -380
  74. package/dist/wc-react/hf-app-shell.js.map +1 -1
  75. package/dist/wc-react/hf-app-sidebar.js +72 -69
  76. package/dist/wc-react/hf-app-sidebar.js.map +1 -1
  77. package/dist/wc-react/markdown-renderer.js +1 -1
  78. package/dist/wc-react/markdown-renderer.js.map +1 -1
  79. package/package.json +1 -1
  80. package/skills/humain-ui/SKILL.md +1 -1
  81. package/skills/humain-ui-wc/SKILL.md +1 -1
  82. package/skills/humain-ui-wc.skill +0 -0
  83. package/skills/humain-ui.skill +0 -0
  84. package/dist/wc/sidebar.js.map +0 -1
  85. package/dist/wc-react/sidebar.js.map +0 -1
@@ -1,17 +1,17 @@
1
- import { f as X, i as Ln, l as ht, o as Rn, t as En, u as kn } from "./_shared.js";
2
- import { t as $t } from "./createLucideIcon.js";
3
- import { _ as Mn, i as Dn, v as In, y as Nn } from "./sidebar.js";
4
- import { a as Bt, i as An, n as vt, r as Tn, t as On } from "./AppShellContent.js";
1
+ import { f as Y, i as En, l as ht, o as Rn, t as kn, u as Mn } from "./_shared.js";
2
+ import { t as Bt } from "./createLucideIcon.js";
3
+ import { b as Dn, n as In, o as An, t as vt, x as Nn, y as Tn } from "./AppSidebar.constants.js";
4
+ import { a as _t, i as On, n as bt, r as Fn, t as $n } from "./AppShellContent.js";
5
5
  import * as w from "react";
6
- import Fn, { createContext as $n, useCallback as jt, useContext as Bn, useEffect as Te, useId as jn, useImperativeHandle as _t, useLayoutEffect as _n, useMemo as Gn, useRef as Z, useState as Ne, useSyncExternalStore as Wn } from "react";
6
+ import Bn, { createContext as _n, useCallback as jt, useContext as jn, useEffect as Te, useId as Wn, useImperativeHandle as Wt, useLayoutEffect as Gn, useMemo as Hn, useRef as Z, useState as Ae, useSyncExternalStore as Vn } from "react";
7
7
  import { jsx as P, jsxs as le } from "react/jsx-runtime";
8
- var Hn = [["path", {
8
+ var Un = [["path", {
9
9
  d: "m9 7-5 5 5 5",
10
10
  key: "j5w590"
11
11
  }], ["path", {
12
12
  d: "m15 7 5 5-5 5",
13
13
  key: "1bl6da"
14
- }]], Vn = $t("chevrons-left-right", Hn), Un = [
14
+ }]], qn = Bt("chevrons-left-right", Un), Xn = [
15
15
  ["path", {
16
16
  d: "M4 5h16",
17
17
  key: "1tepv9"
@@ -24,22 +24,22 @@ var Hn = [["path", {
24
24
  d: "M4 19h16",
25
25
  key: "1djgab"
26
26
  }]
27
- ], qn = $t("menu", Un);
28
- function Yn(e, t) {
27
+ ], Yn = Bt("menu", Xn);
28
+ function Kn(e, t) {
29
29
  const n = getComputedStyle(e);
30
30
  return t * parseFloat(n.fontSize);
31
31
  }
32
- function Xn(e, t) {
32
+ function Jn(e, t) {
33
33
  const n = getComputedStyle(e.ownerDocument.documentElement);
34
34
  return t * parseFloat(n.fontSize);
35
35
  }
36
- function Kn(e) {
36
+ function Zn(e) {
37
37
  return e / 100 * window.innerHeight;
38
38
  }
39
- function Jn(e) {
39
+ function Qn(e) {
40
40
  return e / 100 * window.innerWidth;
41
41
  }
42
- function Zn(e) {
42
+ function er(e) {
43
43
  switch (typeof e) {
44
44
  case "number":
45
45
  return [e, "px"];
@@ -51,7 +51,7 @@ function Zn(e) {
51
51
  }
52
52
  function we({ groupSize: e, panelElement: t, styleProp: n }) {
53
53
  let r;
54
- const [a, o] = Zn(n);
54
+ const [a, o] = er(n);
55
55
  switch (o) {
56
56
  case "%":
57
57
  r = a / 100 * e;
@@ -60,28 +60,28 @@ function we({ groupSize: e, panelElement: t, styleProp: n }) {
60
60
  r = a;
61
61
  break;
62
62
  case "rem":
63
- r = Xn(t, a);
63
+ r = Jn(t, a);
64
64
  break;
65
65
  case "em":
66
- r = Yn(t, a);
66
+ r = Kn(t, a);
67
67
  break;
68
68
  case "vh":
69
- r = Kn(a);
69
+ r = Zn(a);
70
70
  break;
71
71
  case "vw":
72
- r = Jn(a);
72
+ r = Qn(a);
73
73
  break;
74
74
  }
75
75
  return r;
76
76
  }
77
- function _(e) {
77
+ function j(e) {
78
78
  return parseFloat(e.toFixed(3));
79
79
  }
80
80
  function ye({ group: e }) {
81
81
  const { orientation: t, panels: n } = e;
82
82
  return n.reduce((r, a) => (r += t === "horizontal" ? a.element.offsetWidth : a.element.offsetHeight, r), 0);
83
83
  }
84
- function je(e) {
84
+ function _e(e) {
85
85
  const { panels: t } = e, n = ye({ group: e });
86
86
  return n === 0 ? t.map((r) => ({
87
87
  groupResizeBehavior: r.panelConstraints.groupResizeBehavior,
@@ -95,25 +95,25 @@ function je(e) {
95
95
  })) : t.map((r) => {
96
96
  const { element: a, panelConstraints: o } = r;
97
97
  let c = 0;
98
- o.collapsedSize !== void 0 && (c = _(we({
98
+ o.collapsedSize !== void 0 && (c = j(we({
99
99
  groupSize: n,
100
100
  panelElement: a,
101
101
  styleProp: o.collapsedSize
102
102
  }) / n * 100));
103
103
  let i;
104
- o.defaultSize !== void 0 && (i = _(we({
104
+ o.defaultSize !== void 0 && (i = j(we({
105
105
  groupSize: n,
106
106
  panelElement: a,
107
107
  styleProp: o.defaultSize
108
108
  }) / n * 100));
109
109
  let s = 0;
110
- o.minSize !== void 0 && (s = _(we({
110
+ o.minSize !== void 0 && (s = j(we({
111
111
  groupSize: n,
112
112
  panelElement: a,
113
113
  styleProp: o.minSize
114
114
  }) / n * 100));
115
115
  let d = 100;
116
- return o.maxSize !== void 0 && (d = _(we({
116
+ return o.maxSize !== void 0 && (d = j(we({
117
117
  groupSize: n,
118
118
  panelElement: a,
119
119
  styleProp: o.maxSize
@@ -132,44 +132,44 @@ function je(e) {
132
132
  function D(e, t = "Assertion error") {
133
133
  if (!e) throw Error(t);
134
134
  }
135
- function _e(e, t) {
136
- return Array.from(t).sort(e === "horizontal" ? Qn : er);
135
+ function je(e, t) {
136
+ return Array.from(t).sort(e === "horizontal" ? tr : nr);
137
137
  }
138
- function Qn(e, t) {
138
+ function tr(e, t) {
139
139
  const n = e.element.offsetLeft - t.element.offsetLeft;
140
140
  return n !== 0 ? n : e.element.offsetWidth - t.element.offsetWidth;
141
141
  }
142
- function er(e, t) {
142
+ function nr(e, t) {
143
143
  const n = e.element.offsetTop - t.element.offsetTop;
144
144
  return n !== 0 ? n : e.element.offsetHeight - t.element.offsetHeight;
145
145
  }
146
146
  function Gt(e) {
147
147
  return e !== null && typeof e == "object" && "nodeType" in e && e.nodeType === Node.ELEMENT_NODE;
148
148
  }
149
- function Wt(e, t) {
149
+ function Ht(e, t) {
150
150
  return {
151
151
  x: e.x >= t.left && e.x <= t.right ? 0 : Math.min(Math.abs(e.x - t.left), Math.abs(e.x - t.right)),
152
152
  y: e.y >= t.top && e.y <= t.bottom ? 0 : Math.min(Math.abs(e.y - t.top), Math.abs(e.y - t.bottom))
153
153
  };
154
154
  }
155
- function tr({ orientation: e, rects: t, targetRect: n }) {
155
+ function rr({ orientation: e, rects: t, targetRect: n }) {
156
156
  const r = {
157
157
  x: n.x + n.width / 2,
158
158
  y: n.y + n.height / 2
159
159
  };
160
160
  let a, o = Number.MAX_VALUE;
161
161
  for (const c of t) {
162
- const { x: i, y: s } = Wt(r, c), d = e === "horizontal" ? i : s;
162
+ const { x: i, y: s } = Ht(r, c), d = e === "horizontal" ? i : s;
163
163
  d < o && (o = d, a = c);
164
164
  }
165
165
  return D(a, "No rect found"), a;
166
166
  }
167
167
  var De;
168
- function nr() {
168
+ function ar() {
169
169
  return De === void 0 && (typeof matchMedia == "function" ? De = !!matchMedia("(pointer:coarse)").matches : De = !1), De;
170
170
  }
171
- function Ht(e) {
172
- const { element: t, orientation: n, panels: r, separators: a } = e, o = _e(n, Array.from(t.children).filter(Gt).map((h) => ({ element: h }))).map(({ element: h }) => h), c = [];
171
+ function Vt(e) {
172
+ const { element: t, orientation: n, panels: r, separators: a } = e, o = je(n, Array.from(t.children).filter(Gt).map((h) => ({ element: h }))).map(({ element: h }) => h), c = [];
173
173
  let i = !1, s = !1, d = -1, l = -1, u = 0, g, f = [];
174
174
  {
175
175
  let h = -1;
@@ -192,7 +192,7 @@ function Ht(e) {
192
192
  break;
193
193
  case 1: {
194
194
  const k = f[0];
195
- z = [k, tr({
195
+ z = [k, rr({
196
196
  orientation: n,
197
197
  rects: [b, m],
198
198
  targetRect: k.element.getBoundingClientRect()
@@ -206,14 +206,14 @@ function Ht(e) {
206
206
  } else f.length ? z = f : z = [n === "horizontal" ? new DOMRect(b.right, m.top, m.left - b.right, m.height) : new DOMRect(m.left, b.bottom, m.width, m.top - b.bottom)];
207
207
  for (const x of z) {
208
208
  let S = "width" in x ? x : x.element.getBoundingClientRect();
209
- const k = nr() ? e.resizeTargetMinimumSize.coarse : e.resizeTargetMinimumSize.fine;
209
+ const k = ar() ? e.resizeTargetMinimumSize.coarse : e.resizeTargetMinimumSize.fine;
210
210
  if (S.width < k) {
211
- const A = k - S.width;
212
- S = new DOMRect(S.x - A / 2, S.y, S.width + A, S.height);
211
+ const N = k - S.width;
212
+ S = new DOMRect(S.x - N / 2, S.y, S.width + N, S.height);
213
213
  }
214
214
  if (S.height < k) {
215
- const A = k - S.height;
216
- S = new DOMRect(S.x, S.y - A / 2, S.width, S.height + A);
215
+ const N = k - S.height;
216
+ S = new DOMRect(S.x, S.y - N / 2, S.width, S.height + N);
217
217
  }
218
218
  !i && !(h <= d || h > l) && c.push({
219
219
  group: e,
@@ -234,7 +234,7 @@ function Ht(e) {
234
234
  }
235
235
  return c;
236
236
  }
237
- var Vt = class {
237
+ var Ut = class {
238
238
  #e = {};
239
239
  addListener(e, t) {
240
240
  const n = this.#e[e];
@@ -272,14 +272,14 @@ var Vt = class {
272
272
  }, ge = {
273
273
  cursorFlags: 0,
274
274
  state: "inactive"
275
- }, qe = new Vt();
275
+ }, qe = new Ut();
276
276
  function ue() {
277
277
  return ge;
278
278
  }
279
- function rr(e) {
279
+ function or(e) {
280
280
  return qe.addListener("change", e);
281
281
  }
282
- function ar(e) {
282
+ function ir(e) {
283
283
  const t = ge, n = { ...ge };
284
284
  n.cursorFlags = e, ge = n, qe.emit("change", {
285
285
  prev: t,
@@ -293,12 +293,12 @@ function me(e) {
293
293
  next: e
294
294
  });
295
295
  }
296
- var or = (e) => e, $e = () => {
297
- }, Ut = 1, qt = 2, Yt = 4, Xt = 8, bt = 3, gt = 12, Ie;
298
- function mt() {
296
+ var sr = (e) => e, $e = () => {
297
+ }, qt = 1, Xt = 2, Yt = 4, Kt = 8, gt = 3, mt = 12, Ie;
298
+ function yt() {
299
299
  return Ie === void 0 && (Ie = !1, typeof window < "u" && (window.navigator.userAgent.includes("Chrome") || window.navigator.userAgent.includes("Firefox")) && (Ie = !0)), Ie;
300
300
  }
301
- function ir({ cursorFlags: e, groups: t, state: n }) {
301
+ function lr({ cursorFlags: e, groups: t, state: n }) {
302
302
  let r = 0, a = 0;
303
303
  switch (n) {
304
304
  case "active":
@@ -317,8 +317,8 @@ function ir({ cursorFlags: e, groups: t, state: n }) {
317
317
  if (!(r === 0 && a === 0)) {
318
318
  switch (n) {
319
319
  case "active":
320
- if (e && mt()) {
321
- const o = (e & Ut) !== 0, c = (e & qt) !== 0, i = (e & Yt) !== 0, s = (e & Xt) !== 0;
320
+ if (e && yt()) {
321
+ const o = (e & qt) !== 0, c = (e & Xt) !== 0, i = (e & Yt) !== 0, s = (e & Kt) !== 0;
322
322
  if (o) return i ? "se-resize" : s ? "ne-resize" : "e-resize";
323
323
  if (c) return i ? "sw-resize" : s ? "nw-resize" : "w-resize";
324
324
  if (i) return "s-resize";
@@ -326,19 +326,19 @@ function ir({ cursorFlags: e, groups: t, state: n }) {
326
326
  }
327
327
  break;
328
328
  }
329
- return mt() ? r > 0 && a > 0 ? "move" : r > 0 ? "ew-resize" : "ns-resize" : r > 0 && a > 0 ? "grab" : r > 0 ? "col-resize" : "row-resize";
329
+ return yt() ? r > 0 && a > 0 ? "move" : r > 0 ? "ew-resize" : "ns-resize" : r > 0 && a > 0 ? "grab" : r > 0 ? "col-resize" : "row-resize";
330
330
  }
331
331
  }
332
- var yt = /* @__PURE__ */ new WeakMap();
333
- function Ye(e) {
332
+ var St = /* @__PURE__ */ new WeakMap();
333
+ function Xe(e) {
334
334
  if (e.defaultView === null || e.defaultView === void 0) return;
335
- let { prevStyle: t, styleSheet: n } = yt.get(e) ?? {};
335
+ let { prevStyle: t, styleSheet: n } = St.get(e) ?? {};
336
336
  n === void 0 && (n = new e.defaultView.CSSStyleSheet(), e.adoptedStyleSheets && (Object.isExtensible(e.adoptedStyleSheets) ? e.adoptedStyleSheets.push(n) : e.adoptedStyleSheets = [...e.adoptedStyleSheets, n]));
337
337
  const r = ue();
338
338
  switch (r.state) {
339
339
  case "active":
340
340
  case "hover": {
341
- const a = ir({
341
+ const a = lr({
342
342
  cursorFlags: r.cursorFlags,
343
343
  groups: r.hitRegions.map((c) => c.group),
344
344
  state: r.state
@@ -351,16 +351,16 @@ function Ye(e) {
351
351
  t = void 0, n.cssRules.length === 1 && n.deleteRule(0);
352
352
  break;
353
353
  }
354
- yt.set(e, {
354
+ St.set(e, {
355
355
  prevStyle: t,
356
356
  styleSheet: n
357
357
  });
358
358
  }
359
- var Q = /* @__PURE__ */ new Map(), Kt = new Vt();
360
- function sr(e) {
359
+ var Q = /* @__PURE__ */ new Map(), Jt = new Ut();
360
+ function ur(e) {
361
361
  Q = new Map(Q), Q.delete(e);
362
362
  }
363
- function St(e, t) {
363
+ function zt(e, t) {
364
364
  for (const [n] of Q) if (n.id === e) return n;
365
365
  }
366
366
  function oe(e, t) {
@@ -370,41 +370,41 @@ function oe(e, t) {
370
370
  function pe() {
371
371
  return Q;
372
372
  }
373
- function Xe(e, t) {
374
- return Kt.addListener("groupChange", (n) => {
373
+ function Ye(e, t) {
374
+ return Jt.addListener("groupChange", (n) => {
375
375
  n.group.id === e && t(n);
376
376
  });
377
377
  }
378
378
  function re(e, t, n) {
379
379
  const r = Q.get(e);
380
- Q = new Map(Q), Q.set(e, t), Kt.emit("groupChange", {
380
+ Q = new Map(Q), Q.set(e, t), Jt.emit("groupChange", {
381
381
  group: e,
382
382
  isUserInteraction: n?.isUserInteraction === !0,
383
383
  prev: r,
384
384
  next: t
385
385
  });
386
386
  }
387
- function Jt(e) {
387
+ function Zt(e) {
388
388
  const t = ue();
389
389
  let n = !1;
390
390
  return t.state === "active" && (me({
391
391
  cursorFlags: 0,
392
392
  state: "inactive"
393
- }), t.hitRegions.length > 0 && (Ye(e), n = !0, t.hitRegions.forEach((r) => {
393
+ }), t.hitRegions.length > 0 && (Xe(e), n = !0, t.hitRegions.forEach((r) => {
394
394
  const a = oe(r.group.id, !0);
395
395
  re(r.group, a, { isUserInteraction: !0 });
396
396
  }))), n;
397
397
  }
398
- function zt(e) {
399
- e.defaultPrevented || Jt(e.currentTarget);
398
+ function xt(e) {
399
+ e.defaultPrevented || Zt(e.currentTarget);
400
400
  }
401
- function lr(e, t, n) {
401
+ function dr(e, t, n) {
402
402
  let r, a = {
403
403
  x: 1 / 0,
404
404
  y: 1 / 0
405
405
  };
406
406
  for (const o of t) {
407
- const c = Wt(n, o.rect);
407
+ const c = Ht(n, o.rect);
408
408
  switch (e) {
409
409
  case "horizontal":
410
410
  c.x <= a.x && (r = o, a = c);
@@ -419,21 +419,21 @@ function lr(e, t, n) {
419
419
  hitRegion: r
420
420
  } : void 0;
421
421
  }
422
- function ur(e) {
422
+ function cr(e) {
423
423
  return e !== null && typeof e == "object" && "nodeType" in e && e.nodeType === Node.DOCUMENT_FRAGMENT_NODE;
424
424
  }
425
- function dr(e, t) {
425
+ function pr(e, t) {
426
426
  if (e === t) throw new Error("Cannot compare node with itself");
427
427
  const n = {
428
- a: Ct(e),
429
- b: Ct(t)
428
+ a: Pt(e),
429
+ b: Pt(t)
430
430
  };
431
431
  let r;
432
432
  for (; n.a.at(-1) === n.b.at(-1); ) r = n.a.pop(), n.b.pop();
433
433
  D(r, "Stacking order can only be calculated for elements with a common ancestor");
434
434
  const a = {
435
- a: wt(xt(n.a)),
436
- b: wt(xt(n.b))
435
+ a: Ct(wt(n.a)),
436
+ b: Ct(wt(n.b))
437
437
  };
438
438
  if (a.a === a.b) {
439
439
  const o = r.childNodes, c = {
@@ -449,45 +449,45 @@ function dr(e, t) {
449
449
  }
450
450
  return Math.sign(a.a - a.b);
451
451
  }
452
- var cr = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
453
- function pr(e) {
454
- const t = getComputedStyle(Zt(e) ?? e).display;
452
+ var fr = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
453
+ function hr(e) {
454
+ const t = getComputedStyle(Qt(e) ?? e).display;
455
455
  return t === "flex" || t === "inline-flex";
456
456
  }
457
- function fr(e) {
457
+ function vr(e) {
458
458
  const t = getComputedStyle(e);
459
- return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" || pr(e)) || +t.opacity < 1 || "transform" in t && t.transform !== "none" || "webkitTransform" in t && t.webkitTransform !== "none" || "mixBlendMode" in t && t.mixBlendMode !== "normal" || "filter" in t && t.filter !== "none" || "webkitFilter" in t && t.webkitFilter !== "none" || "isolation" in t && t.isolation === "isolate" || cr.test(t.willChange) || t.webkitOverflowScrolling === "touch");
459
+ return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" || hr(e)) || +t.opacity < 1 || "transform" in t && t.transform !== "none" || "webkitTransform" in t && t.webkitTransform !== "none" || "mixBlendMode" in t && t.mixBlendMode !== "normal" || "filter" in t && t.filter !== "none" || "webkitFilter" in t && t.webkitFilter !== "none" || "isolation" in t && t.isolation === "isolate" || fr.test(t.willChange) || t.webkitOverflowScrolling === "touch");
460
460
  }
461
- function xt(e) {
461
+ function wt(e) {
462
462
  let t = e.length;
463
463
  for (; t--; ) {
464
464
  const n = e[t];
465
- if (D(n, "Missing node"), fr(n)) return n;
465
+ if (D(n, "Missing node"), vr(n)) return n;
466
466
  }
467
467
  return null;
468
468
  }
469
- function wt(e) {
469
+ function Ct(e) {
470
470
  return e && Number(getComputedStyle(e).zIndex) || 0;
471
471
  }
472
- function Ct(e) {
472
+ function Pt(e) {
473
473
  const t = [];
474
- for (; e; ) t.push(e), e = Zt(e);
474
+ for (; e; ) t.push(e), e = Qt(e);
475
475
  return t;
476
476
  }
477
- function Zt(e) {
477
+ function Qt(e) {
478
478
  const { parentNode: t } = e;
479
- return ur(t) ? t.host : t;
479
+ return cr(t) ? t.host : t;
480
480
  }
481
- function hr(e, t) {
481
+ function br(e, t) {
482
482
  return e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y;
483
483
  }
484
- function vr({ groupElement: e, hitRegion: t, pointerEventTarget: n }) {
484
+ function gr({ groupElement: e, hitRegion: t, pointerEventTarget: n }) {
485
485
  if (!Gt(n) || n.contains(e) || e.contains(n)) return !0;
486
- if (dr(n, e) > 0) {
486
+ if (pr(n, e) > 0) {
487
487
  let r = n;
488
488
  for (; r; ) {
489
489
  if (r.contains(e)) return !0;
490
- if (hr(r.getBoundingClientRect(), t)) return !1;
490
+ if (br(r.getBoundingClientRect(), t)) return !1;
491
491
  r = r.parentElement;
492
492
  }
493
493
  }
@@ -497,24 +497,24 @@ function Ke(e, t) {
497
497
  const n = [];
498
498
  return t.forEach((r, a) => {
499
499
  if (a.disabled) return;
500
- const o = Ht(a), c = lr(a.orientation, o, {
500
+ const o = Vt(a), c = dr(a.orientation, o, {
501
501
  x: e.clientX,
502
502
  y: e.clientY
503
503
  });
504
- c && c.distance.x <= 0 && c.distance.y <= 0 && vr({
504
+ c && c.distance.x <= 0 && c.distance.y <= 0 && gr({
505
505
  groupElement: a.element,
506
506
  hitRegion: c.hitRegion.rect,
507
507
  pointerEventTarget: e.target
508
508
  }) && n.push(c.hitRegion);
509
509
  }), n;
510
510
  }
511
- function br(e, t) {
511
+ function mr(e, t) {
512
512
  if (e.length !== t.length) return !1;
513
513
  for (let n = 0; n < e.length; n++) if (e[n] != t[n]) return !1;
514
514
  return !0;
515
515
  }
516
516
  function $(e, t, n = 0) {
517
- return Math.abs(_(e) - _(t)) <= n;
517
+ return Math.abs(j(e) - j(t)) <= n;
518
518
  }
519
519
  function J(e, t) {
520
520
  return $(e, t) ? 0 : e > t ? 1 : -1;
@@ -526,7 +526,7 @@ function be({ overrideDisabledPanels: e, panelConstraints: t, prevSize: n, size:
526
526
  const d = (a + s) / 2;
527
527
  J(r, d) < 0 ? r = a : r = s;
528
528
  } else r = s;
529
- return r = Math.min(i, r), r = _(r), r;
529
+ return r = Math.min(i, r), r = j(r), r;
530
530
  }
531
531
  function Pe({ delta: e, initialLayout: t, panelConstraints: n, pivotIndices: r, prevLayout: a, trigger: o }) {
532
532
  if ($(e, 0)) return t;
@@ -606,7 +606,7 @@ function Pe({ delta: e, initialLayout: t, panelConstraints: n, pivotIndices: r,
606
606
  e < 0 ? h-- : h++;
607
607
  }
608
608
  }
609
- if (br(s, d)) return a;
609
+ if (mr(s, d)) return a;
610
610
  {
611
611
  const h = e < 0 ? u : l, p = i[h];
612
612
  D(p != null, `Previous layout not found for panel index ${h}`);
@@ -676,7 +676,7 @@ function ce({ layout: e, panelConstraints: t }) {
676
676
  const c = Object.keys(e);
677
677
  return r.reduce((i, s, d) => (i[c[d]] = s, i), {});
678
678
  }
679
- function Qt({ groupId: e, panelId: t }) {
679
+ function en({ groupId: e, panelId: t }) {
680
680
  const n = () => {
681
681
  const s = pe();
682
682
  for (const [d, { defaultLayoutDeferred: l, derivedPanelConstraints: u, layout: g, groupSize: f, separatorToPanels: h }] of s) if (d.id === e) return {
@@ -709,7 +709,7 @@ function Qt({ groupId: e, panelId: t }) {
709
709
  const v = d.slice(0, f).reduce((b, m) => b + l[m.id], 0);
710
710
  return {
711
711
  ...l,
712
- [t]: _(100 - v)
712
+ [t]: j(100 - v)
713
713
  };
714
714
  }
715
715
  return Pe({
@@ -763,7 +763,7 @@ function Qt({ groupId: e, panelId: t }) {
763
763
  return s && $(d, l);
764
764
  },
765
765
  resize: (s) => {
766
- const { group: d } = n(), { element: l } = a(), u = ye({ group: d }), g = _(we({
766
+ const { group: d } = n(), { element: l } = a(), u = ye({ group: d }), g = j(we({
767
767
  groupSize: u,
768
768
  panelElement: l,
769
769
  styleProp: s
@@ -772,12 +772,12 @@ function Qt({ groupId: e, panelId: t }) {
772
772
  }
773
773
  };
774
774
  }
775
- function Pt(e) {
775
+ function Lt(e) {
776
776
  e.defaultPrevented || Ke(e, pe()).forEach((t) => {
777
777
  if (t.separator && !t.separator.disableDoubleClick) {
778
778
  const n = t.panels.find((r) => r.panelConstraints.defaultSize !== void 0);
779
779
  if (n) {
780
- const r = n.panelConstraints.defaultSize, a = Qt({
780
+ const r = n.panelConstraints.defaultSize, a = en({
781
781
  groupId: t.group.id,
782
782
  panelId: n.id
783
783
  });
@@ -786,12 +786,12 @@ function Pt(e) {
786
786
  }
787
787
  });
788
788
  }
789
- function Ae(e) {
789
+ function Ne(e) {
790
790
  const t = pe();
791
791
  for (const [n] of t) if (n.separators.some((r) => r.element === e)) return n;
792
792
  throw Error("Could not find parent Group for separator element");
793
793
  }
794
- function en({ groupId: e }) {
794
+ function tn({ groupId: e }) {
795
795
  const t = () => {
796
796
  const n = pe();
797
797
  for (const [r, a] of n) if (r.id === e) return {
@@ -821,11 +821,11 @@ function en({ groupId: e }) {
821
821
  };
822
822
  }
823
823
  function se(e, t) {
824
- const n = Ae(e), r = oe(n.id, !0), a = n.separators.find((d) => d.element === e);
824
+ const n = Ne(e), r = oe(n.id, !0), a = n.separators.find((d) => d.element === e);
825
825
  D(a, "Matching separator not found");
826
826
  const o = r.separatorToPanels.get(a);
827
827
  D(o, "Matching panels not found");
828
- const c = o.map((d) => n.panels.indexOf(d)), i = en({ groupId: n.id }).getLayout(), s = ce({
828
+ const c = o.map((d) => n.panels.indexOf(d)), i = tn({ groupId: n.id }).getLayout(), s = ce({
829
829
  layout: Pe({
830
830
  delta: t,
831
831
  initialLayout: i,
@@ -844,9 +844,9 @@ function se(e, t) {
844
844
  separatorToPanels: r.separatorToPanels
845
845
  }, { isUserInteraction: !0 });
846
846
  }
847
- function Lt(e) {
847
+ function Et(e) {
848
848
  if (e.defaultPrevented) return;
849
- const t = e.currentTarget, n = Ae(t);
849
+ const t = e.currentTarget, n = Ne(t);
850
850
  if (!n.disabled) switch (e.key) {
851
851
  case "ArrowDown":
852
852
  e.preventDefault(), n.orientation === "vertical" && se(t, 5);
@@ -865,7 +865,7 @@ function Lt(e) {
865
865
  break;
866
866
  case "Enter": {
867
867
  e.preventDefault();
868
- const r = Ae(t), { derivedPanelConstraints: a, layout: o, separatorToPanels: c } = oe(r.id, !0), i = r.separators.find((u) => u.element === t);
868
+ const r = Ne(t), { derivedPanelConstraints: a, layout: o, separatorToPanels: c } = oe(r.id, !0), i = r.separators.find((u) => u.element === t);
869
869
  D(i, "Matching separator not found");
870
870
  const s = c.get(i);
871
871
  D(s, "Matching panels not found");
@@ -878,7 +878,7 @@ function Lt(e) {
878
878
  }
879
879
  case "F6": {
880
880
  e.preventDefault();
881
- const r = Ae(t).separators.map((o) => o.element), a = Array.from(r).findIndex((o) => o === e.currentTarget);
881
+ const r = Ne(t).separators.map((o) => o.element), a = Array.from(r).findIndex((o) => o === e.currentTarget);
882
882
  D(a !== null, "Index not found"), r[e.shiftKey ? a > 0 ? a - 1 : r.length - 1 : a + 1 < r.length ? a + 1 : 0].focus({ preventScroll: !0 });
883
883
  break;
884
884
  }
@@ -909,7 +909,7 @@ function Rt(e) {
909
909
  state: "active"
910
910
  }), n.length && e.preventDefault();
911
911
  }
912
- function tn({ document: e, event: t, hitRegions: n, initialLayoutMap: r, mountedGroups: a, pointerDownAtPoint: o, prevCursorFlags: c }) {
912
+ function nn({ document: e, event: t, hitRegions: n, initialLayoutMap: r, mountedGroups: a, pointerDownAtPoint: o, prevCursorFlags: c }) {
913
913
  let i = 0;
914
914
  n.forEach((d) => {
915
915
  const { group: l, groupSize: u } = d, { orientation: g, panels: f } = l, { disableCursor: h } = l.mutableState;
@@ -919,7 +919,7 @@ function tn({ document: e, event: t, hitRegions: n, initialLayoutMap: r, mounted
919
919
  if (!v || !b) return;
920
920
  const { defaultLayoutDeferred: m, derivedPanelConstraints: z, groupSize: x, layout: S, separatorToPanels: k } = b;
921
921
  if (z && S && k) {
922
- const A = Pe({
922
+ const N = Pe({
923
923
  delta: p,
924
924
  initialLayout: v,
925
925
  panelConstraints: z,
@@ -927,30 +927,30 @@ function tn({ document: e, event: t, hitRegions: n, initialLayoutMap: r, mounted
927
927
  prevLayout: S,
928
928
  trigger: "mouse-or-touch"
929
929
  });
930
- if (de(A, S)) {
930
+ if (de(N, S)) {
931
931
  if (p !== 0 && !h) switch (g) {
932
932
  case "horizontal":
933
- i |= p < 0 ? Ut : qt;
933
+ i |= p < 0 ? qt : Xt;
934
934
  break;
935
935
  case "vertical":
936
- i |= p < 0 ? Yt : Xt;
936
+ i |= p < 0 ? Yt : Kt;
937
937
  break;
938
938
  }
939
939
  } else re(d.group, {
940
940
  defaultLayoutDeferred: m,
941
941
  derivedPanelConstraints: z,
942
942
  groupSize: x,
943
- layout: A,
943
+ layout: N,
944
944
  separatorToPanels: k
945
945
  });
946
946
  }
947
947
  });
948
948
  let s = 0;
949
- t.movementX === 0 ? s |= c & bt : s |= i & bt, t.movementY === 0 ? s |= c & gt : s |= i & gt, ar(s), Ye(e);
949
+ t.movementX === 0 ? s |= c & gt : s |= i & gt, t.movementY === 0 ? s |= c & mt : s |= i & mt, ir(s), Xe(e);
950
950
  }
951
- function Et(e) {
951
+ function kt(e) {
952
952
  const t = pe(), n = ue();
953
- n.state === "active" && tn({
953
+ n.state === "active" && nn({
954
954
  document: e.currentTarget,
955
955
  event: e,
956
956
  hitRegions: n.hitRegions,
@@ -959,7 +959,7 @@ function Et(e) {
959
959
  prevCursorFlags: n.cursorFlags
960
960
  });
961
961
  }
962
- function kt(e) {
962
+ function Mt(e) {
963
963
  if (e.defaultPrevented) return;
964
964
  const t = ue(), n = pe();
965
965
  switch (t.state) {
@@ -978,7 +978,7 @@ function kt(e) {
978
978
  const { element: a } = r.separator;
979
979
  a.hasPointerCapture?.(e.pointerId) || a.setPointerCapture?.(e.pointerId);
980
980
  }
981
- tn({
981
+ nn({
982
982
  document: e.currentTarget,
983
983
  event: e,
984
984
  hitRegions: t.hitRegions,
@@ -997,51 +997,51 @@ function kt(e) {
997
997
  cursorFlags: 0,
998
998
  hitRegions: r,
999
999
  state: "hover"
1000
- }), Ye(e.currentTarget);
1000
+ }), Xe(e.currentTarget);
1001
1001
  break;
1002
1002
  }
1003
1003
  }
1004
1004
  }
1005
- function Mt(e) {
1005
+ function Dt(e) {
1006
1006
  e.relatedTarget instanceof HTMLIFrameElement && ue().state === "hover" && me({
1007
1007
  cursorFlags: 0,
1008
1008
  state: "inactive"
1009
1009
  });
1010
1010
  }
1011
- function Dt(e) {
1012
- e.defaultPrevented || e.pointerType === "mouse" && e.button > 0 || Jt(e.currentTarget) && e.preventDefault();
1013
- }
1014
1011
  function It(e) {
1012
+ e.defaultPrevented || e.pointerType === "mouse" && e.button > 0 || Zt(e.currentTarget) && e.preventDefault();
1013
+ }
1014
+ function At(e) {
1015
1015
  let t = 0, n = 0;
1016
1016
  const r = {};
1017
1017
  for (const o of e) if (o.defaultSize !== void 0) {
1018
1018
  t++;
1019
- const c = _(o.defaultSize);
1019
+ const c = j(o.defaultSize);
1020
1020
  n += c, r[o.panelId] = c;
1021
1021
  } else r[o.panelId] = void 0;
1022
1022
  const a = e.length - t;
1023
1023
  if (a !== 0) {
1024
- const o = _((100 - n) / a);
1024
+ const o = j((100 - n) / a);
1025
1025
  for (const c of e) c.defaultSize === void 0 && (r[c.panelId] = o);
1026
1026
  }
1027
1027
  return r;
1028
1028
  }
1029
- function gr(e, t, n) {
1029
+ function yr(e, t, n) {
1030
1030
  if (!n[0]) return;
1031
1031
  const r = e.panels.find((s) => s.element === t);
1032
1032
  if (!r || !r.onResize) return;
1033
1033
  const a = ye({ group: e }), o = e.orientation === "horizontal" ? r.element.offsetWidth : r.element.offsetHeight, c = r.mutableValues.prevSize, i = {
1034
- asPercentage: _(o / a * 100),
1034
+ asPercentage: j(o / a * 100),
1035
1035
  inPixels: o
1036
1036
  };
1037
1037
  r.mutableValues.prevSize = i, r.onResize(i, r.id, c);
1038
1038
  }
1039
- function mr(e, t) {
1039
+ function Sr(e, t) {
1040
1040
  if (Object.keys(e).length !== Object.keys(t).length) return !1;
1041
1041
  for (const n in e) if (e[n] !== t[n]) return !1;
1042
1042
  return !0;
1043
1043
  }
1044
- function yr({ group: e, nextGroupSize: t, prevGroupSize: n, prevLayout: r }) {
1044
+ function zr({ group: e, nextGroupSize: t, prevGroupSize: n, prevLayout: r }) {
1045
1045
  if (n <= 0 || t <= 0 || n === t) return r;
1046
1046
  let a = 0, o = 0, c = !1;
1047
1047
  const i = /* @__PURE__ */ new Map(), s = [];
@@ -1049,7 +1049,7 @@ function yr({ group: e, nextGroupSize: t, prevGroupSize: n, prevLayout: r }) {
1049
1049
  const g = r[u.id] ?? 0;
1050
1050
  if (u.panelConstraints.groupResizeBehavior === "preserve-pixel-size") {
1051
1051
  c = !0;
1052
- const f = _(g / 100 * n / t * 100);
1052
+ const f = j(g / 100 * n / t * 100);
1053
1053
  i.set(u.id, f), a += f;
1054
1054
  } else
1055
1055
  s.push(u.id), o += g;
@@ -1058,21 +1058,21 @@ function yr({ group: e, nextGroupSize: t, prevGroupSize: n, prevLayout: r }) {
1058
1058
  const d = 100 - a, l = { ...r };
1059
1059
  if (i.forEach((u, g) => {
1060
1060
  l[g] = u;
1061
- }), o > 0) for (const u of s) l[u] = _((r[u] ?? 0) / o * d);
1061
+ }), o > 0) for (const u of s) l[u] = j((r[u] ?? 0) / o * d);
1062
1062
  else {
1063
- const u = _(d / s.length);
1063
+ const u = j(d / s.length);
1064
1064
  for (const g of s) l[g] = u;
1065
1065
  }
1066
1066
  return l;
1067
1067
  }
1068
- function Sr(e, t) {
1068
+ function xr(e, t) {
1069
1069
  const n = e.map((a) => a.id), r = Object.keys(t);
1070
1070
  if (n.length !== r.length) return !1;
1071
1071
  for (const a of n) if (!r.includes(a)) return !1;
1072
1072
  return !0;
1073
1073
  }
1074
1074
  var ve = /* @__PURE__ */ new Map();
1075
- function zr(e) {
1075
+ function wr(e) {
1076
1076
  let t = !0;
1077
1077
  D(e.element.ownerDocument.defaultView, "Cannot register an unmounted Group");
1078
1078
  const n = e.element.ownerDocument.defaultView.ResizeObserver, r = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set(), o = new n((f) => {
@@ -1084,8 +1084,8 @@ function zr(e) {
1084
1084
  if (b === 0) return;
1085
1085
  const m = oe(e.id);
1086
1086
  if (!m) return;
1087
- const z = je(e), x = m.defaultLayoutDeferred ? It(z) : m.layout, S = ce({
1088
- layout: yr({
1087
+ const z = _e(e), x = m.defaultLayoutDeferred ? At(z) : m.layout, S = ce({
1088
+ layout: zr({
1089
1089
  group: e,
1090
1090
  nextGroupSize: b,
1091
1091
  prevGroupSize: m.groupSize,
@@ -1093,7 +1093,7 @@ function zr(e) {
1093
1093
  }),
1094
1094
  panelConstraints: z
1095
1095
  });
1096
- if (!m.defaultLayoutDeferred && de(m.layout, S) && mr(m.derivedPanelConstraints, z) && m.groupSize === b) return;
1096
+ if (!m.defaultLayoutDeferred && de(m.layout, S) && Sr(m.derivedPanelConstraints, z) && m.groupSize === b) return;
1097
1097
  re(e, {
1098
1098
  defaultLayoutDeferred: !1,
1099
1099
  derivedPanelConstraints: z,
@@ -1102,22 +1102,22 @@ function zr(e) {
1102
1102
  separatorToPanels: m.separatorToPanels
1103
1103
  });
1104
1104
  }
1105
- } else gr(e, v, p);
1105
+ } else yr(e, v, p);
1106
1106
  }
1107
1107
  });
1108
1108
  o.observe(e.element), e.panels.forEach((f) => {
1109
1109
  D(!r.has(f.id), `Panel ids must be unique; id "${f.id}" was used more than once`), r.add(f.id), f.onResize && o.observe(f.element);
1110
1110
  });
1111
- const c = ye({ group: e }), i = je(e), s = e.panels.map(({ id: f }) => f).join(",");
1111
+ const c = ye({ group: e }), i = _e(e), s = e.panels.map(({ id: f }) => f).join(",");
1112
1112
  let d = e.mutableState.defaultLayout;
1113
- d && (Sr(e.panels, d) || (d = void 0));
1113
+ d && (xr(e.panels, d) || (d = void 0));
1114
1114
  const l = ce({
1115
- layout: e.mutableState.layouts[s] ?? d ?? It(i),
1115
+ layout: e.mutableState.layouts[s] ?? d ?? At(i),
1116
1116
  panelConstraints: i
1117
1117
  }), u = e.element.ownerDocument;
1118
1118
  ve.set(u, (ve.get(u) ?? 0) + 1);
1119
1119
  const g = /* @__PURE__ */ new Map();
1120
- return Ht(e).forEach((f) => {
1120
+ return Vt(e).forEach((f) => {
1121
1121
  f.separator && g.set(f.separator, f.panels);
1122
1122
  }), re(e, {
1123
1123
  defaultLayoutDeferred: c === 0,
@@ -1126,22 +1126,22 @@ function zr(e) {
1126
1126
  layout: l,
1127
1127
  separatorToPanels: g
1128
1128
  }), e.separators.forEach((f) => {
1129
- D(!a.has(f.id), `Separator ids must be unique; id "${f.id}" was used more than once`), a.add(f.id), f.element.addEventListener("keydown", Lt);
1130
- }), ve.get(u) === 1 && (u.addEventListener("contextmenu", zt, !0), u.addEventListener("dblclick", Pt, !0), u.addEventListener("pointerdown", Rt, !0), u.addEventListener("pointerleave", Et), u.addEventListener("pointermove", kt), u.addEventListener("pointerout", Mt), u.addEventListener("pointerup", Dt, !0)), function() {
1131
- t = !1, ve.set(u, Math.max(0, (ve.get(u) ?? 0) - 1)), sr(e), e.separators.forEach((f) => {
1132
- f.element.removeEventListener("keydown", Lt);
1133
- }), ve.get(u) || (u.removeEventListener("contextmenu", zt, !0), u.removeEventListener("dblclick", Pt, !0), u.removeEventListener("pointerdown", Rt, !0), u.removeEventListener("pointerleave", Et), u.removeEventListener("pointermove", kt), u.removeEventListener("pointerout", Mt), u.removeEventListener("pointerup", Dt, !0)), o.disconnect();
1129
+ D(!a.has(f.id), `Separator ids must be unique; id "${f.id}" was used more than once`), a.add(f.id), f.element.addEventListener("keydown", Et);
1130
+ }), ve.get(u) === 1 && (u.addEventListener("contextmenu", xt, !0), u.addEventListener("dblclick", Lt, !0), u.addEventListener("pointerdown", Rt, !0), u.addEventListener("pointerleave", kt), u.addEventListener("pointermove", Mt), u.addEventListener("pointerout", Dt), u.addEventListener("pointerup", It, !0)), function() {
1131
+ t = !1, ve.set(u, Math.max(0, (ve.get(u) ?? 0) - 1)), ur(e), e.separators.forEach((f) => {
1132
+ f.element.removeEventListener("keydown", Et);
1133
+ }), ve.get(u) || (u.removeEventListener("contextmenu", xt, !0), u.removeEventListener("dblclick", Lt, !0), u.removeEventListener("pointerdown", Rt, !0), u.removeEventListener("pointerleave", kt), u.removeEventListener("pointermove", Mt), u.removeEventListener("pointerout", Dt), u.removeEventListener("pointerup", It, !0)), o.disconnect();
1134
1134
  };
1135
1135
  }
1136
- function xr() {
1137
- const [e, t] = Ne({});
1136
+ function Cr() {
1137
+ const [e, t] = Ae({});
1138
1138
  return [e, jt(() => t({}), [])];
1139
1139
  }
1140
1140
  function Je(e) {
1141
- const t = jn();
1141
+ const t = Wn();
1142
1142
  return `${e ?? t}`;
1143
1143
  }
1144
- var fe = typeof window < "u" ? _n : Te;
1144
+ var fe = typeof window < "u" ? Gn : Te;
1145
1145
  function Ce(e) {
1146
1146
  const t = Z(e);
1147
1147
  return fe(() => {
@@ -1168,17 +1168,17 @@ function Qe(e) {
1168
1168
  for (const n in e) t.current[n] = e[n];
1169
1169
  }, [e]), t.current;
1170
1170
  }
1171
- var nn = $n(null);
1172
- function wr(e, t) {
1171
+ var rn = _n(null);
1172
+ function Pr(e, t) {
1173
1173
  const n = Z({
1174
1174
  getLayout: () => ({}),
1175
- setLayout: or
1175
+ setLayout: sr
1176
1176
  });
1177
- _t(t, () => n.current, []), fe(() => {
1178
- Object.assign(n.current, en({ groupId: e }));
1177
+ Wt(t, () => n.current, []), fe(() => {
1178
+ Object.assign(n.current, tn({ groupId: e }));
1179
1179
  });
1180
1180
  }
1181
- function rn({ children: e, className: t, defaultLayout: n, disableCursor: r, disabled: a, elementRef: o, groupRef: c, id: i, onLayoutChange: s, onLayoutChanged: d, orientation: l = "horizontal", resizeTargetMinimumSize: u = {
1181
+ function an({ children: e, className: t, defaultLayout: n, disableCursor: r, disabled: a, elementRef: o, groupRef: c, id: i, onLayoutChange: s, onLayoutChanged: d, orientation: l = "horizontal", resizeTargetMinimumSize: u = {
1182
1182
  coarse: 20,
1183
1183
  fine: 10
1184
1184
  }, style: g, ...f }) {
@@ -1189,20 +1189,20 @@ function rn({ children: e, className: t, defaultLayout: n, disableCursor: r, dis
1189
1189
  de(h.current.onLayoutChange, C) || (h.current.onLayoutChange = C, s?.(C));
1190
1190
  }), v = Ce((C, L) => {
1191
1191
  de(h.current.onLayoutChanged, C) || (h.current.onLayoutChanged = C, d?.(C, { isUserInteraction: L }));
1192
- }), b = Je(i), m = Z(null), [z, x] = xr(), S = Z({
1192
+ }), b = Je(i), m = Z(null), [z, x] = Cr(), S = Z({
1193
1193
  lastExpandedPanelSizes: {},
1194
1194
  layouts: {},
1195
1195
  panels: [],
1196
1196
  resizeTargetMinimumSize: u,
1197
1197
  separators: []
1198
1198
  }), k = Ze(m, o);
1199
- wr(b, c);
1200
- const A = Ce((C, L) => {
1201
- const I = ue(), R = St(C), N = oe(C);
1202
- if (N) {
1199
+ Pr(b, c);
1200
+ const N = Ce((C, L) => {
1201
+ const I = ue(), E = zt(C), A = oe(C);
1202
+ if (A) {
1203
1203
  let B = !1;
1204
- return I.state === "active" && (B = I.hitRegions.some((ie) => ie.group === R)), {
1205
- flexGrow: N.layout[L] ?? 1,
1204
+ return I.state === "active" && (B = I.hitRegions.some((ie) => ie.group === E)), {
1205
+ flexGrow: A.layout[L] ?? 1,
1206
1206
  pointerEvents: B ? "none" : void 0
1207
1207
  };
1208
1208
  }
@@ -1210,40 +1210,40 @@ function rn({ children: e, className: t, defaultLayout: n, disableCursor: r, dis
1210
1210
  }), T = Qe({
1211
1211
  defaultLayout: n,
1212
1212
  disableCursor: r
1213
- }), G = Gn(() => ({
1213
+ }), W = Hn(() => ({
1214
1214
  get disableCursor() {
1215
1215
  return !!T.disableCursor;
1216
1216
  },
1217
- getPanelStyles: A,
1217
+ getPanelStyles: N,
1218
1218
  id: b,
1219
1219
  orientation: l,
1220
1220
  registerPanel: (C) => {
1221
1221
  const L = S.current;
1222
- return L.panels = _e(l, [...L.panels, C]), x(), () => {
1222
+ return L.panels = je(l, [...L.panels, C]), x(), () => {
1223
1223
  L.panels = L.panels.filter((I) => I !== C), x();
1224
1224
  };
1225
1225
  },
1226
1226
  registerSeparator: (C) => {
1227
1227
  const L = S.current;
1228
- return L.separators = _e(l, [...L.separators, C]), x(), () => {
1228
+ return L.separators = je(l, [...L.separators, C]), x(), () => {
1229
1229
  L.separators = L.separators.filter((I) => I !== C), x();
1230
1230
  };
1231
1231
  },
1232
1232
  updatePanelProps: (C, { disabled: L }) => {
1233
1233
  const I = S.current.panels.find((B) => B.id === C);
1234
1234
  I && (I.panelConstraints.disabled = L);
1235
- const R = St(b), N = oe(b);
1236
- R && N && re(R, {
1237
- ...N,
1238
- derivedPanelConstraints: je(R)
1235
+ const E = zt(b), A = oe(b);
1236
+ E && A && re(E, {
1237
+ ...A,
1238
+ derivedPanelConstraints: _e(E)
1239
1239
  });
1240
1240
  },
1241
1241
  updateSeparatorProps: (C, { disabled: L, disableDoubleClick: I }) => {
1242
- const R = S.current.separators.find((N) => N.id === C);
1243
- R && (R.disabled = L, R.disableDoubleClick = I);
1242
+ const E = S.current.separators.find((A) => A.id === C);
1243
+ E && (E.disabled = L, E.disableDoubleClick = I);
1244
1244
  }
1245
1245
  }), [
1246
- A,
1246
+ N,
1247
1247
  b,
1248
1248
  x,
1249
1249
  l,
@@ -1261,7 +1261,7 @@ function rn({ children: e, className: t, defaultLayout: n, disableCursor: r, dis
1261
1261
  V !== void 0 && (I[O.id] = V);
1262
1262
  }
1263
1263
  }
1264
- const R = {
1264
+ const E = {
1265
1265
  disabled: !!a,
1266
1266
  element: C,
1267
1267
  id: b,
@@ -1276,19 +1276,19 @@ function rn({ children: e, className: t, defaultLayout: n, disableCursor: r, dis
1276
1276
  resizeTargetMinimumSize: L.resizeTargetMinimumSize,
1277
1277
  separators: L.separators
1278
1278
  };
1279
- H.current = R;
1280
- const N = zr(R), { defaultLayoutDeferred: B, derivedPanelConstraints: ie, layout: he } = oe(R.id, !0);
1279
+ H.current = E;
1280
+ const A = wr(E), { defaultLayoutDeferred: B, derivedPanelConstraints: ie, layout: he } = oe(E.id, !0);
1281
1281
  !B && ie.length > 0 && (p(he), v(he, !1));
1282
- const ee = Xe(b, (O) => {
1282
+ const ee = Ye(b, (O) => {
1283
1283
  const { defaultLayoutDeferred: V, derivedPanelConstraints: U, layout: te } = O.next;
1284
1284
  if (V || U.length === 0) return;
1285
- const K = R.panels.map(({ id: q }) => q).join(",");
1286
- R.mutableState.layouts[K] = te, U.forEach((q) => {
1285
+ const K = E.panels.map(({ id: q }) => q).join(",");
1286
+ E.mutableState.layouts[K] = te, U.forEach((q) => {
1287
1287
  if (q.collapsible) {
1288
1288
  const { layout: ne } = O.prev ?? {};
1289
1289
  if (ne) {
1290
- const ae = $(q.collapsedSize, te[q.panelId]), j = $(q.collapsedSize, ne[q.panelId]);
1291
- ae && !j && (R.mutableState.expandedPanelSizes[q.panelId] = ne[q.panelId]);
1290
+ const ae = $(q.collapsedSize, te[q.panelId]), _ = $(q.collapsedSize, ne[q.panelId]);
1291
+ ae && !_ && (E.mutableState.expandedPanelSizes[q.panelId] = ne[q.panelId]);
1292
1292
  }
1293
1293
  }
1294
1294
  });
@@ -1296,7 +1296,7 @@ function rn({ children: e, className: t, defaultLayout: n, disableCursor: r, dis
1296
1296
  p(te), Oe && v(te, O.isUserInteraction);
1297
1297
  });
1298
1298
  return () => {
1299
- H.current = null, N(), ee();
1299
+ H.current = null, A(), ee();
1300
1300
  };
1301
1301
  }, [
1302
1302
  a,
@@ -1309,8 +1309,8 @@ function rn({ children: e, className: t, defaultLayout: n, disableCursor: r, dis
1309
1309
  ]), Te(() => {
1310
1310
  const C = H.current;
1311
1311
  C && (C.mutableState.defaultLayout = n, C.mutableState.disableCursor = !!r);
1312
- }), /* @__PURE__ */ P(nn.Provider, {
1313
- value: G,
1312
+ }), /* @__PURE__ */ P(rn.Provider, {
1313
+ value: W,
1314
1314
  children: /* @__PURE__ */ P("div", {
1315
1315
  ...f,
1316
1316
  className: t,
@@ -1332,12 +1332,12 @@ function rn({ children: e, className: t, defaultLayout: n, disableCursor: r, dis
1332
1332
  })
1333
1333
  });
1334
1334
  }
1335
- rn.displayName = "Group";
1335
+ an.displayName = "Group";
1336
1336
  function et() {
1337
- const e = Bn(nn);
1337
+ const e = jn(rn);
1338
1338
  return D(e, "Group Context not found; did you render a Panel or Separator outside of a Group?"), e;
1339
1339
  }
1340
- function Cr(e, t) {
1340
+ function Lr(e, t) {
1341
1341
  const { id: n } = et(), r = Z({
1342
1342
  collapse: $e,
1343
1343
  expand: $e,
@@ -1348,29 +1348,29 @@ function Cr(e, t) {
1348
1348
  isCollapsed: () => !1,
1349
1349
  resize: $e
1350
1350
  });
1351
- _t(t, () => r.current, []), fe(() => {
1352
- Object.assign(r.current, Qt({
1351
+ Wt(t, () => r.current, []), fe(() => {
1352
+ Object.assign(r.current, en({
1353
1353
  groupId: n,
1354
1354
  panelId: e
1355
1355
  }));
1356
1356
  });
1357
1357
  }
1358
- function an({ children: e, className: t, collapsedSize: n = "0%", collapsible: r = !1, defaultSize: a, disabled: o, elementRef: c, groupResizeBehavior: i = "preserve-relative-size", id: s, maxSize: d = "100%", minSize: l = "0%", onResize: u, panelRef: g, style: f, ...h }) {
1359
- const p = !!s, v = Je(s), b = Qe({ disabled: o }), m = Z(null), z = Ze(m, c), { getPanelStyles: x, id: S, orientation: k, registerPanel: A, updatePanelProps: T } = et(), G = u !== null, H = Ce((R, N, B) => {
1360
- u?.(R, s, B);
1358
+ function on({ children: e, className: t, collapsedSize: n = "0%", collapsible: r = !1, defaultSize: a, disabled: o, elementRef: c, groupResizeBehavior: i = "preserve-relative-size", id: s, maxSize: d = "100%", minSize: l = "0%", onResize: u, panelRef: g, style: f, ...h }) {
1359
+ const p = !!s, v = Je(s), b = Qe({ disabled: o }), m = Z(null), z = Ze(m, c), { getPanelStyles: x, id: S, orientation: k, registerPanel: N, updatePanelProps: T } = et(), W = u !== null, H = Ce((E, A, B) => {
1360
+ u?.(E, s, B);
1361
1361
  });
1362
1362
  fe(() => {
1363
- const R = m.current;
1364
- if (R !== null) {
1365
- const N = {
1366
- element: R,
1363
+ const E = m.current;
1364
+ if (E !== null) {
1365
+ const A = {
1366
+ element: E,
1367
1367
  id: v,
1368
1368
  idIsStable: p,
1369
1369
  mutableValues: {
1370
1370
  expandToSize: void 0,
1371
1371
  prevSize: void 0
1372
1372
  },
1373
- onResize: G ? H : void 0,
1373
+ onResize: W ? H : void 0,
1374
1374
  panelConstraints: {
1375
1375
  groupResizeBehavior: i,
1376
1376
  collapsedSize: n,
@@ -1381,20 +1381,20 @@ function an({ children: e, className: t, collapsedSize: n = "0%", collapsible: r
1381
1381
  minSize: l
1382
1382
  }
1383
1383
  };
1384
- return A(N);
1384
+ return N(A);
1385
1385
  }
1386
1386
  }, [
1387
1387
  i,
1388
1388
  n,
1389
1389
  r,
1390
1390
  a,
1391
- G,
1391
+ W,
1392
1392
  v,
1393
1393
  p,
1394
1394
  d,
1395
1395
  l,
1396
1396
  H,
1397
- A,
1397
+ N,
1398
1398
  b
1399
1399
  ]), Te(() => {
1400
1400
  T(v, { disabled: o });
@@ -1402,11 +1402,11 @@ function an({ children: e, className: t, collapsedSize: n = "0%", collapsible: r
1402
1402
  o,
1403
1403
  v,
1404
1404
  T
1405
- ]), Cr(v, g);
1405
+ ]), Lr(v, g);
1406
1406
  const C = () => {
1407
- const R = x(S, v);
1408
- if (R) return JSON.stringify(R);
1409
- }, L = Wn((R) => Xe(S, R), C, C);
1407
+ const E = x(S, v);
1408
+ if (E) return JSON.stringify(E);
1409
+ }, L = Vn((E) => Ye(S, E), C, C);
1410
1410
  let I;
1411
1411
  return L ? I = JSON.parse(L) : a !== void 0 ? I = {
1412
1412
  flexGrow: void 0,
@@ -1420,7 +1420,7 @@ function an({ children: e, className: t, collapsedSize: n = "0%", collapsible: r
1420
1420
  id: v,
1421
1421
  ref: z,
1422
1422
  style: {
1423
- ...Pr,
1423
+ ...Er,
1424
1424
  display: "flex",
1425
1425
  flexBasis: 0,
1426
1426
  flexShrink: 1,
@@ -1441,8 +1441,8 @@ function an({ children: e, className: t, collapsedSize: n = "0%", collapsible: r
1441
1441
  })
1442
1442
  });
1443
1443
  }
1444
- an.displayName = "Panel";
1445
- var Pr = {
1444
+ on.displayName = "Panel";
1445
+ var Er = {
1446
1446
  minHeight: 0,
1447
1447
  maxHeight: "100%",
1448
1448
  height: "auto",
@@ -1454,7 +1454,7 @@ var Pr = {
1454
1454
  padding: 0,
1455
1455
  margin: 0
1456
1456
  };
1457
- function Lr({ layout: e, panelConstraints: t, panelId: n, panelIndex: r }) {
1457
+ function Rr({ layout: e, panelConstraints: t, panelId: n, panelIndex: r }) {
1458
1458
  let a, o;
1459
1459
  const c = e[n], i = t.find((s) => s.panelId === n);
1460
1460
  if (i) {
@@ -1486,11 +1486,11 @@ function Lr({ layout: e, panelConstraints: t, panelId: n, panelIndex: r }) {
1486
1486
  valueNow: c
1487
1487
  };
1488
1488
  }
1489
- function on({ children: e, className: t, disabled: n, disableDoubleClick: r, elementRef: a, id: o, style: c, ...i }) {
1489
+ function sn({ children: e, className: t, disabled: n, disableDoubleClick: r, elementRef: a, id: o, style: c, ...i }) {
1490
1490
  const s = Je(o), d = Qe({
1491
1491
  disabled: n,
1492
1492
  disableDoubleClick: r
1493
- }), [l, u] = Ne({}), [g, f] = Ne("inactive"), [h, p] = Ne(!1), v = Z(null), b = Ze(v, a), { disableCursor: m, id: z, orientation: x, registerSeparator: S, updateSeparatorProps: k } = et(), A = x === "horizontal" ? "vertical" : "horizontal";
1493
+ }), [l, u] = Ae({}), [g, f] = Ae("inactive"), [h, p] = Ae(!1), v = Z(null), b = Ze(v, a), { disableCursor: m, id: z, orientation: x, registerSeparator: S, updateSeparatorProps: k } = et(), N = x === "horizontal" ? "vertical" : "horizontal";
1494
1494
  fe(() => {
1495
1495
  const H = v.current;
1496
1496
  if (H !== null) {
@@ -1499,13 +1499,13 @@ function on({ children: e, className: t, disabled: n, disableDoubleClick: r, ele
1499
1499
  disableDoubleClick: d.disableDoubleClick,
1500
1500
  element: H,
1501
1501
  id: s
1502
- }, L = S(C), I = rr((N) => {
1503
- f(N.next.state !== "inactive" && N.next.hitRegions.some((B) => B.separator === C) ? N.next.state : "inactive");
1504
- }), R = Xe(z, (N) => {
1505
- const { derivedPanelConstraints: B, layout: ie, separatorToPanels: he } = N.next, ee = he.get(C);
1502
+ }, L = S(C), I = or((A) => {
1503
+ f(A.next.state !== "inactive" && A.next.hitRegions.some((B) => B.separator === C) ? A.next.state : "inactive");
1504
+ }), E = Ye(z, (A) => {
1505
+ const { derivedPanelConstraints: B, layout: ie, separatorToPanels: he } = A.next, ee = he.get(C);
1506
1506
  if (ee) {
1507
1507
  const O = ee[0], V = ee.indexOf(O);
1508
- u(Lr({
1508
+ u(Rr({
1509
1509
  layout: ie,
1510
1510
  panelConstraints: B,
1511
1511
  panelId: O.id,
@@ -1514,7 +1514,7 @@ function on({ children: e, className: t, disabled: n, disableDoubleClick: r, ele
1514
1514
  }
1515
1515
  });
1516
1516
  return () => {
1517
- I(), R(), L();
1517
+ I(), E(), L();
1518
1518
  };
1519
1519
  }
1520
1520
  }, [
@@ -1535,18 +1535,18 @@ function on({ children: e, className: t, disabled: n, disableDoubleClick: r, ele
1535
1535
  ]);
1536
1536
  let T;
1537
1537
  n && !m && (T = "not-allowed");
1538
- let G;
1539
- return n ? G = "disabled" : g === "active" ? G = "active" : h ? G = "focus" : G = g, /* @__PURE__ */ P("div", {
1538
+ let W;
1539
+ return n ? W = "disabled" : g === "active" ? W = "active" : h ? W = "focus" : W = g, /* @__PURE__ */ P("div", {
1540
1540
  ...i,
1541
1541
  "aria-controls": l.valueControls,
1542
1542
  "aria-disabled": n || void 0,
1543
- "aria-orientation": A,
1543
+ "aria-orientation": N,
1544
1544
  "aria-valuemax": l.valueMax,
1545
1545
  "aria-valuemin": l.valueMin,
1546
1546
  "aria-valuenow": l.valueNow,
1547
1547
  children: e,
1548
1548
  className: t,
1549
- "data-separator": G,
1549
+ "data-separator": W,
1550
1550
  "data-testid": s,
1551
1551
  id: s,
1552
1552
  onBlur: () => p(!1),
@@ -1564,39 +1564,39 @@ function on({ children: e, className: t, disabled: n, disableDoubleClick: r, ele
1564
1564
  tabIndex: n ? void 0 : 0
1565
1565
  });
1566
1566
  }
1567
- on.displayName = "Separator";
1568
- function sn({ className: e, ...t }) {
1569
- return /* @__PURE__ */ P(rn, {
1567
+ sn.displayName = "Separator";
1568
+ function ln({ className: e, ...t }) {
1569
+ return /* @__PURE__ */ P(an, {
1570
1570
  "data-slot": "resizable-panel-group",
1571
- className: X("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", e),
1571
+ className: Y("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", e),
1572
1572
  ...t
1573
1573
  });
1574
1574
  }
1575
- function Ge({ ...e }) {
1576
- return /* @__PURE__ */ P(an, {
1575
+ function We({ ...e }) {
1576
+ return /* @__PURE__ */ P(on, {
1577
1577
  "data-slot": "resizable-panel",
1578
1578
  ...e
1579
1579
  });
1580
1580
  }
1581
- function ln({ withHandle: e, className: t, ...n }) {
1582
- return /* @__PURE__ */ P(on, {
1581
+ function un({ withHandle: e, className: t, ...n }) {
1582
+ return /* @__PURE__ */ P(sn, {
1583
1583
  "data-slot": "resizable-handle",
1584
1584
  "aria-label": "Resize panels",
1585
- className: X("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden motion-reduce:after:transition-none data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90 hover:bg-border/80 transition-colors motion-reduce:transition-none", t),
1585
+ className: Y("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden motion-reduce:after:transition-none data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90 hover:bg-border/80 transition-colors motion-reduce:transition-none", t),
1586
1586
  ...n,
1587
1587
  children: e && /* @__PURE__ */ P("div", {
1588
1588
  className: "z-10 flex shrink-0 items-center justify-center rounded-3xl border border-border bg-muted px-0.5 py-5 transition-all motion-reduce:transition-none hover:bg-accent hover:border-accent-foreground/20",
1589
- children: /* @__PURE__ */ P(Vn, {
1589
+ children: /* @__PURE__ */ P(qn, {
1590
1590
  size: 20,
1591
1591
  className: "text-secondary-foreground transition-colors motion-reduce:transition-none hover:text-accent-foreground"
1592
1592
  })
1593
1593
  })
1594
1594
  });
1595
1595
  }
1596
- sn.displayName = "ResizablePanelGroup";
1597
- Ge.displayName = "ResizablePanel";
1598
- ln.displayName = "ResizableHandle";
1599
- var We = w.forwardRef(({ background: e, height: t, padding: n, mobilePadding: r, gap: a, connected: o, className: c, style: i, children: s, ...d }, l) => {
1596
+ ln.displayName = "ResizablePanelGroup";
1597
+ We.displayName = "ResizablePanel";
1598
+ un.displayName = "ResizableHandle";
1599
+ var Ge = w.forwardRef(({ background: e, height: t, padding: n, mobilePadding: r, gap: a, connected: o, className: c, style: i, children: s, ...d }, l) => {
1600
1600
  const u = {};
1601
1601
  return e !== void 0 && (u["--app-shell-background"] = e), t !== void 0 && (u["--app-shell-height"] = t), n !== void 0 && (u["--app-shell-padding"] = typeof n == "number" ? `${n}px` : n), r !== void 0 && (u["--app-shell-mobile-padding"] = typeof r == "number" ? `${r}px` : r), a !== void 0 && (u["--app-shell-gap"] = typeof a == "number" ? `${a}px` : a), /* @__PURE__ */ P("div", {
1602
1602
  ref: l,
@@ -1606,16 +1606,16 @@ var We = w.forwardRef(({ background: e, height: t, padding: n, mobilePadding: r,
1606
1606
  ...u,
1607
1607
  ...i
1608
1608
  },
1609
- className: X("flex h-[var(--app-shell-height,100dvh)] w-full", "gap-[var(--app-shell-gap,0px)]", "p-[var(--app-shell-mobile-padding,0.5rem)] md:p-[var(--app-shell-padding,1rem)]", "bg-app-shell", "transition-[gap] duration-300 ease-[cubic-bezier(0.16,1,0.3,1)] motion-reduce:transition-none", c),
1609
+ className: Y("flex h-[var(--app-shell-height,100dvh)] w-full", "gap-[var(--app-shell-gap,0px)]", "p-[var(--app-shell-mobile-padding,0.5rem)] md:p-[var(--app-shell-padding,1rem)]", "bg-app-shell", "transition-[gap] duration-300 ease-[cubic-bezier(0.16,1,0.3,1)] motion-reduce:transition-none", c),
1610
1610
  ...d,
1611
1611
  children: s
1612
1612
  });
1613
1613
  });
1614
- We.displayName = "AppShell";
1615
- function Rr(e, t) {
1614
+ Ge.displayName = "AppShell";
1615
+ function kr(e, t) {
1616
1616
  return e.key ?? e.label ?? t;
1617
1617
  }
1618
- function un({ panels: e, activeIndex: t, onActiveChange: n, onSidebarOpen: r, baseId: a }) {
1618
+ function dn({ panels: e, activeIndex: t, onActiveChange: n, onSidebarOpen: r, baseId: a }) {
1619
1619
  const o = w.useRef(null), c = w.useCallback((l) => {
1620
1620
  let u = null;
1621
1621
  switch (l.key) {
@@ -1656,9 +1656,9 @@ function un({ panels: e, activeIndex: t, onActiveChange: n, onSidebarOpen: r, ba
1656
1656
  const d = r ? /* @__PURE__ */ P("button", {
1657
1657
  type: "button",
1658
1658
  onClick: r,
1659
- className: X("flex min-h-11 min-w-11 items-center justify-center rounded-lg", "text-secondary-foreground hover:bg-accent", "active:scale-[0.95]", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", "transition-colors motion-reduce:transition-none"),
1659
+ className: Y("flex min-h-11 min-w-11 items-center justify-center rounded-lg", "text-secondary-foreground hover:bg-accent", "active:scale-[0.95]", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", "transition-colors motion-reduce:transition-none"),
1660
1660
  "aria-label": "Open sidebar",
1661
- children: /* @__PURE__ */ P(qn, { className: "size-5" })
1661
+ children: /* @__PURE__ */ P(Yn, { className: "size-5" })
1662
1662
  }) : null;
1663
1663
  return e.length <= 1 ? d ? /* @__PURE__ */ P("div", {
1664
1664
  "data-slot": "app-shell-mobile-tab-bar",
@@ -1673,7 +1673,7 @@ function un({ panels: e, activeIndex: t, onActiveChange: n, onSidebarOpen: r, ba
1673
1673
  className: "relative flex gap-1",
1674
1674
  onKeyDown: c,
1675
1675
  children: [i && /* @__PURE__ */ P("div", {
1676
- className: X("absolute top-1/2 -translate-y-1/2 h-9 rounded-lg bg-accent", "transition-[left,width] duration-200 ease-[cubic-bezier(0.16,1,0.3,1)]", "motion-reduce:transition-none"),
1676
+ className: Y("absolute top-1/2 -translate-y-1/2 h-9 rounded-lg bg-accent", "transition-[left,width] duration-200 ease-[cubic-bezier(0.16,1,0.3,1)]", "motion-reduce:transition-none"),
1677
1677
  style: {
1678
1678
  left: i.left,
1679
1679
  width: i.width
@@ -1689,17 +1689,17 @@ function un({ panels: e, activeIndex: t, onActiveChange: n, onSidebarOpen: r, ba
1689
1689
  "aria-controls": a ? `${a}-tabpanel-${u}` : void 0,
1690
1690
  tabIndex: f ? 0 : -1,
1691
1691
  onClick: () => n(u),
1692
- className: X("relative z-10 rounded-lg px-3 min-h-9 text-sm font-medium", "transition-colors duration-150 motion-reduce:transition-none", "active:scale-[0.97]", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", f ? "text-foreground" : "text-secondary-foreground hover:text-foreground"),
1692
+ className: Y("relative z-10 rounded-lg px-3 min-h-9 text-sm font-medium", "transition-colors duration-150 motion-reduce:transition-none", "active:scale-[0.97]", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", f ? "text-foreground" : "text-secondary-foreground hover:text-foreground"),
1693
1693
  children: g
1694
- }, Rr(l, g));
1694
+ }, kr(l, g));
1695
1695
  })]
1696
1696
  })]
1697
1697
  });
1698
1698
  }
1699
- un.displayName = "AppShellMobileTabBar";
1700
- var Er = "AppShell.Panel";
1701
- function kr({ width: e, flex: t, minWidth: n, expanded: r = !1, onExpandedChange: a, label: o, className: c, style: i, children: s, ...d }) {
1702
- const l = w.useContext(Bt), u = l.expanded ?? r, g = l.onExpandedChange ?? a, f = w.useMemo(() => ({
1699
+ dn.displayName = "AppShellMobileTabBar";
1700
+ var Mr = "AppShell.Panel";
1701
+ function Dr({ width: e, flex: t, minWidth: n, expanded: r = !1, onExpandedChange: a, label: o, className: c, style: i, children: s, ...d }) {
1702
+ const l = w.useContext(_t), u = l.expanded ?? r, g = l.onExpandedChange ?? a, f = w.useMemo(() => ({
1703
1703
  expanded: u,
1704
1704
  onExpandedChange: g
1705
1705
  }), [u, g]), h = w.useMemo(() => {
@@ -1743,7 +1743,7 @@ function kr({ width: e, flex: t, minWidth: n, expanded: r = !1, onExpandedChange
1743
1743
  n,
1744
1744
  i
1745
1745
  ]), p = !l.visible && !l.isMobile;
1746
- return /* @__PURE__ */ P(Tn.Provider, {
1746
+ return /* @__PURE__ */ P(Fn.Provider, {
1747
1747
  value: f,
1748
1748
  children: /* @__PURE__ */ P("div", {
1749
1749
  "data-slot": "app-shell-panel",
@@ -1755,49 +1755,49 @@ function kr({ width: e, flex: t, minWidth: n, expanded: r = !1, onExpandedChange
1755
1755
  id: l.panelId,
1756
1756
  "aria-labelledby": l.tabId
1757
1757
  } : {},
1758
- className: X("flex h-full min-w-0 flex-col", p && "overflow-clip", e !== void 0 && !u && !p && !l.isMobile && !l.sizeManagedByRoot && "shrink-0", l.isMobile && "animate-[delight-fade-in_150ms_ease-out_both]", l.isMobile && "motion-reduce:animate-none", "transition-[flex,width,opacity] duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]", "motion-reduce:transition-none", c),
1758
+ className: Y("flex h-full min-w-0 flex-col", p && "overflow-clip", e !== void 0 && !u && !p && !l.isMobile && !l.sizeManagedByRoot && "shrink-0", l.isMobile && "animate-[delight-fade-in_150ms_ease-out_both]", l.isMobile && "motion-reduce:animate-none", "transition-[flex,width,opacity] duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]", "motion-reduce:transition-none", c),
1759
1759
  style: h,
1760
1760
  ...d,
1761
1761
  children: s
1762
1762
  })
1763
1763
  });
1764
1764
  }
1765
- var Mr = Object.assign(kr, {
1765
+ var Ir = Object.assign(Dr, {
1766
1766
  displayName: "AppShell.Panel",
1767
- __appShellType: Er
1767
+ __appShellType: Mr
1768
1768
  }), Nt = [35, 65];
1769
- function At(e) {
1769
+ function Tt(e) {
1770
1770
  return Number.isFinite(e) && e > 0;
1771
1771
  }
1772
1772
  function He(e) {
1773
1773
  if (!e) return Nt;
1774
1774
  const [t, n] = e;
1775
- if (!At(t) || !At(n)) return Nt;
1775
+ if (!Tt(t) || !Tt(n)) return Nt;
1776
1776
  const r = t + n;
1777
1777
  return [Number((t / r * 100).toFixed(4)), Number((n / r * 100).toFixed(4))];
1778
1778
  }
1779
- function Tt(e) {
1779
+ function Ot(e) {
1780
1780
  return String(e);
1781
1781
  }
1782
- function Ot(e) {
1782
+ function Ft(e) {
1783
1783
  if (e !== void 0)
1784
1784
  return typeof e == "number" ? `${e}px` : e;
1785
1785
  }
1786
- function Ft(e) {
1786
+ function $t(e) {
1787
1787
  return He([e.panel0, e.panel1]);
1788
1788
  }
1789
- function Dr(e, t = 85) {
1789
+ function Ar(e, t = 85) {
1790
1790
  const n = e.panel0, r = e.panel1;
1791
1791
  return n >= t ? 0 : r >= t ? 1 : null;
1792
1792
  }
1793
- var dn = "var(--app-background)";
1794
- function Ir(e) {
1793
+ var cn = "var(--app-background)";
1794
+ function Nr(e) {
1795
1795
  return typeof e == "function" && e.__appShellType === "AppShell.Panel";
1796
1796
  }
1797
- function Nr(e) {
1798
- return w.isValidElement(e) && Ir(e.type);
1797
+ function Tr(e) {
1798
+ return w.isValidElement(e) && Nr(e.type);
1799
1799
  }
1800
- function Ar(e, t, n) {
1800
+ function Or(e, t, n) {
1801
1801
  return e.key ?? e.props.label ?? `${t}-panel-${n}`;
1802
1802
  }
1803
1803
  function Be({ panel: e, visible: t, index: n, overrides: r = {}, isMobile: a, activePanel: o, hasExpanded: c, hasTabBar: i, ariaBaseId: s, rootExpansionActive: d, firstExpandedIndex: l, onExpandedPanelChange: u }) {
@@ -1812,53 +1812,53 @@ function Be({ panel: e, visible: t, index: n, overrides: r = {}, isMobile: a, ac
1812
1812
  onExpandedChange: d ? (f) => u(f ? n : null) : void 0,
1813
1813
  ...r
1814
1814
  };
1815
- return /* @__PURE__ */ P(An.Provider, {
1815
+ return /* @__PURE__ */ P(On.Provider, {
1816
1816
  value: n,
1817
- children: /* @__PURE__ */ P(Bt.Provider, {
1817
+ children: /* @__PURE__ */ P(_t.Provider, {
1818
1818
  value: g,
1819
1819
  children: e
1820
1820
  })
1821
1821
  });
1822
1822
  }
1823
- function Ve({ background: e = dn, height: t = "100dvh", padding: n = 16, mobilePadding: r, gap: a = 12, connected: o = !1, skipToId: c, activePanel: i, onActivePanelChange: s, defaultActivePanel: d = 0, expandedPanel: l, defaultExpandedPanel: u, onExpandedPanelChange: g, resizablePanels: f, defaultPanelSizes: h, panelSizes: p, onPanelSizesChange: v, expandThreshold: b = 85, className: m, children: z, ...x }) {
1824
- const S = Mn(), k = w.useId(), [A, T] = w.useState(d), [G, H] = w.useState(u ?? null), [C, L] = w.useState(() => He(h)), [I, R] = w.useState(!1), [N, B] = w.useState(!1), [ie, he] = w.useState(!1), ee = w.useRef(null), O = w.useRef(null), V = w.useRef(!1), U = w.useRef(!1), te = w.useRef(!1), K = i ?? A, Oe = w.useCallback((y) => {
1825
- i === void 0 && T((E) => E === y ? E : y), s?.(y);
1826
- }, [i, s]), q = l !== void 0 || u !== void 0 || g !== void 0, ne = l !== void 0 ? l : G, ae = w.useCallback((y) => {
1823
+ function Ve({ background: e = cn, height: t = "100dvh", padding: n = 16, mobilePadding: r, gap: a = 12, connected: o = !1, skipToId: c, activePanel: i, onActivePanelChange: s, defaultActivePanel: d = 0, expandedPanel: l, defaultExpandedPanel: u, onExpandedPanelChange: g, resizablePanels: f, defaultPanelSizes: h, panelSizes: p, onPanelSizesChange: v, expandThreshold: b = 85, className: m, children: z, ...x }) {
1824
+ const S = Tn(), k = w.useId(), [N, T] = w.useState(d), [W, H] = w.useState(u ?? null), [C, L] = w.useState(() => He(h)), [I, E] = w.useState(!1), [A, B] = w.useState(!1), [ie, he] = w.useState(!1), ee = w.useRef(null), O = w.useRef(null), V = w.useRef(!1), U = w.useRef(!1), te = w.useRef(!1), K = i ?? N, Oe = w.useCallback((y) => {
1825
+ i === void 0 && T((R) => R === y ? R : y), s?.(y);
1826
+ }, [i, s]), q = l !== void 0 || u !== void 0 || g !== void 0, ne = l !== void 0 ? l : W, ae = w.useCallback((y) => {
1827
1827
  l === void 0 && H(y), g?.(y);
1828
- }, [l, g]), { panels: j, panelInfos: Fe, sidebarChild: Le, otherChildren: nt } = w.useMemo(() => {
1829
- const y = [], E = [];
1830
- let W = null;
1828
+ }, [l, g]), { panels: _, panelInfos: Fe, sidebarChild: Le, otherChildren: nt } = w.useMemo(() => {
1829
+ const y = [], R = [];
1830
+ let G = null;
1831
1831
  const Me = [];
1832
- return w.Children.forEach(z, (Y) => {
1833
- if (Nr(Y)) {
1834
- E.push({
1835
- key: Y.key ?? Y.props.label,
1836
- label: Y.props.label
1837
- }), y.push(Y);
1832
+ return w.Children.forEach(z, (X) => {
1833
+ if (Tr(X)) {
1834
+ R.push({
1835
+ key: X.key ?? X.props.label,
1836
+ label: X.props.label
1837
+ }), y.push(X);
1838
1838
  return;
1839
1839
  }
1840
- w.isValidElement(Y) && (Y.type === tt ? W = Y : Me.push(Y));
1840
+ w.isValidElement(X) && (X.type === tt ? G = X : Me.push(X));
1841
1841
  }), {
1842
1842
  panels: y,
1843
- panelInfos: E,
1844
- sidebarChild: W,
1843
+ panelInfos: R,
1844
+ sidebarChild: G,
1845
1845
  otherChildren: Me
1846
1846
  };
1847
- }, [z]), fn = f ?? !0, hn = j.findIndex((y) => y.props.expanded), vn = j.some((y) => y.props.expanded !== void 0 || y.props.onExpandedChange !== void 0), rt = fn && !o && !S && j.length === 2 && (f !== void 0 || !vn), Se = q || rt, bn = typeof ne == "number" && Number.isInteger(ne) && ne >= 0 && ne < j.length ? ne : null;
1848
- let F = hn;
1849
- Se && (F = bn);
1850
- const M = F !== -1 && F !== null, Re = M ? 1 : Math.min(j.length, 2), ze = rt, at = w.useMemo(() => He(p ?? C), [p, C]), Ee = w.useMemo(() => M && F === 0 ? [100, 0] : M && F === 1 ? [0, 100] : at, [
1847
+ }, [z]), hn = f ?? !0, vn = _.findIndex((y) => y.props.expanded), bn = _.some((y) => y.props.expanded !== void 0 || y.props.onExpandedChange !== void 0), rt = hn && !o && !S && _.length === 2 && (f !== void 0 || !bn), Se = q || rt, gn = typeof ne == "number" && Number.isInteger(ne) && ne >= 0 && ne < _.length ? ne : null;
1848
+ let F = vn;
1849
+ Se && (F = gn);
1850
+ const M = F !== -1 && F !== null, Ee = M ? 1 : Math.min(_.length, 2), ze = rt, at = w.useMemo(() => He(p ?? C), [p, C]), Re = w.useMemo(() => M && F === 0 ? [100, 0] : M && F === 1 ? [0, 100] : at, [
1851
1851
  F,
1852
1852
  M,
1853
1853
  at
1854
- ]), ot = M || N || !M && te.current, gn = w.useCallback((y) => {
1855
- M || U.current || p === void 0 && L(Ft(y));
1856
- }, [M, p]), mn = w.useCallback((y) => {
1854
+ ]), ot = M || A || !M && te.current, mn = w.useCallback((y) => {
1855
+ M || U.current || p === void 0 && L($t(y));
1856
+ }, [M, p]), yn = w.useCallback((y) => {
1857
1857
  if (M || !V.current || U.current) return;
1858
- const E = Ft(y);
1859
- p === void 0 && L(E), v?.(E);
1860
- const W = Dr(y, b);
1861
- W !== null && ae(W);
1858
+ const R = $t(y);
1859
+ p === void 0 && L(R), v?.(R);
1860
+ const G = Ar(y, b);
1861
+ G !== null && ae(G);
1862
1862
  }, [
1863
1863
  b,
1864
1864
  ae,
@@ -1873,103 +1873,103 @@ function Ve({ background: e = dn, height: t = "100dvh", padding: n = 16, mobileP
1873
1873
  }
1874
1874
  const y = O.current?.ownerDocument.defaultView;
1875
1875
  if (!y) return;
1876
- const E = te.current;
1877
- if (te.current = M, !(M || E || p !== void 0)) {
1876
+ const R = te.current;
1877
+ if (te.current = M, !(M || R || p !== void 0)) {
1878
1878
  U.current = !1;
1879
1879
  return;
1880
1880
  }
1881
- let W;
1882
- const [Me, Y] = Ee;
1883
- E && !M && (W = y.requestAnimationFrame(() => {
1881
+ let G;
1882
+ const [Me, X] = Re;
1883
+ R && !M && (G = y.requestAnimationFrame(() => {
1884
1884
  B(!0);
1885
1885
  })), U.current = !0;
1886
1886
  const ft = {
1887
1887
  panel0: Me,
1888
- panel1: Y
1888
+ panel1: X
1889
1889
  };
1890
1890
  ee.current?.setLayout(ft);
1891
- const Cn = y.requestAnimationFrame(() => {
1891
+ const Pn = y.requestAnimationFrame(() => {
1892
1892
  ee.current?.setLayout(ft);
1893
- }), Pn = y.setTimeout(() => {
1893
+ }), Ln = y.setTimeout(() => {
1894
1894
  U.current = !1;
1895
1895
  }, 350);
1896
1896
  return () => {
1897
- W !== void 0 && y.cancelAnimationFrame(W), y.cancelAnimationFrame(Cn), y.clearTimeout(Pn), U.current = !1;
1897
+ G !== void 0 && y.cancelAnimationFrame(G), y.cancelAnimationFrame(Pn), y.clearTimeout(Ln), U.current = !1;
1898
1898
  };
1899
1899
  }, [
1900
1900
  ze,
1901
1901
  M,
1902
1902
  p,
1903
- Ee
1903
+ Re
1904
1904
  ]), w.useEffect(() => {
1905
- if (!N) return;
1905
+ if (!A) return;
1906
1906
  const y = O.current?.ownerDocument.defaultView;
1907
1907
  if (!y) return;
1908
- const E = y.setTimeout(() => {
1908
+ const R = y.setTimeout(() => {
1909
1909
  B(!1);
1910
1910
  }, 350);
1911
- return () => y.clearTimeout(E);
1912
- }, [N]), w.useEffect(() => {
1911
+ return () => y.clearTimeout(R);
1912
+ }, [A]), w.useEffect(() => {
1913
1913
  if (!ze) {
1914
1914
  V.current = !1, U.current = !1;
1915
1915
  return;
1916
1916
  }
1917
1917
  const y = O.current?.ownerDocument.defaultView;
1918
1918
  if (!y) return;
1919
- const E = y.requestAnimationFrame(() => {
1919
+ const R = y.requestAnimationFrame(() => {
1920
1920
  V.current = !0;
1921
1921
  });
1922
1922
  return () => {
1923
- y.cancelAnimationFrame(E), V.current = !1;
1923
+ y.cancelAnimationFrame(R), V.current = !1;
1924
1924
  };
1925
1925
  }, [ze]), w.useEffect(() => {
1926
1926
  if (!I) return;
1927
1927
  const y = O.current?.ownerDocument.defaultView;
1928
1928
  if (!y) return;
1929
- const E = () => R(!1);
1930
- return y.addEventListener("pointerup", E), y.addEventListener("pointercancel", E), () => {
1931
- y.removeEventListener("pointerup", E), y.removeEventListener("pointercancel", E);
1929
+ const R = () => E(!1);
1930
+ return y.addEventListener("pointerup", R), y.addEventListener("pointercancel", R), () => {
1931
+ y.removeEventListener("pointerup", R), y.removeEventListener("pointercancel", R);
1932
1932
  };
1933
1933
  }, [I]);
1934
- const yn = w.useCallback((y) => {
1935
- const E = y.target;
1936
- E instanceof Element && E.closest('[data-slot="resizable-handle"]') && R(!0);
1937
- }, []), it = w.useMemo(() => M ? j.map((y, E) => ({
1934
+ const Sn = w.useCallback((y) => {
1935
+ const R = y.target;
1936
+ R instanceof Element && R.closest('[data-slot="resizable-handle"]') && E(!0);
1937
+ }, []), it = w.useMemo(() => M ? _.map((y, R) => ({
1938
1938
  panel: y,
1939
- visible: E === F,
1940
- index: E
1941
- })) : j.map((y, E) => ({
1939
+ visible: R === F,
1940
+ index: R
1941
+ })) : _.map((y, R) => ({
1942
1942
  panel: y,
1943
- visible: E < 2,
1944
- index: E
1943
+ visible: R < 2,
1944
+ index: R
1945
1945
  })), [
1946
- j,
1946
+ _,
1947
1947
  M,
1948
1948
  F
1949
- ]), xe = S && j.length > 1, st = w.useCallback((y) => Re === 1 ? "only" : M ? y === F ? "only" : "last" : y === 0 ? "first" : "last", [
1950
- Re,
1949
+ ]), xe = S && _.length > 1, st = w.useCallback((y) => Ee === 1 ? "only" : M ? y === F ? "only" : "last" : y === 0 ? "first" : "last", [
1950
+ Ee,
1951
1951
  M,
1952
1952
  F
1953
1953
  ]), lt = w.useMemo(() => ({
1954
1954
  connected: o,
1955
- panelCount: Re,
1955
+ panelCount: Ee,
1956
1956
  getPanelPosition: st
1957
1957
  }), [
1958
1958
  o,
1959
- Re,
1959
+ Ee,
1960
1960
  st
1961
- ]), ut = w.useContext(Dn), Sn = ut?.openMobile ?? ie, ke = ut?.setOpenMobile ?? he, zn = w.useCallback(() => {
1961
+ ]), ut = w.useContext(An), zn = ut?.openMobile ?? ie, ke = ut?.setOpenMobile ?? he, xn = w.useCallback(() => {
1962
1962
  ke(!0);
1963
- }, [ke]), xn = w.useCallback((y) => {
1963
+ }, [ke]), wn = w.useCallback((y) => {
1964
1964
  ke(y);
1965
1965
  }, [ke]), dt = c ? /* @__PURE__ */ P("a", {
1966
1966
  href: `#${c}`,
1967
1967
  className: "sr-only focus:not-sr-only focus:fixed focus:left-4 focus:top-4 focus:z-50 focus:rounded-md focus:bg-background focus:px-4 focus:py-2 focus:text-sm focus:font-medium focus:text-foreground focus:shadow-sm focus:ring-2 focus:ring-ring",
1968
1968
  children: "Skip to content"
1969
- }) : null, ct = w.useMemo(() => it.map(({ panel: y, visible: E, index: W }) => /* @__PURE__ */ P(Be, {
1969
+ }) : null, ct = w.useMemo(() => it.map(({ panel: y, visible: R, index: G }) => /* @__PURE__ */ P(Be, {
1970
1970
  panel: y,
1971
- visible: E,
1972
- index: W,
1971
+ visible: R,
1972
+ index: G,
1973
1973
  isMobile: S,
1974
1974
  activePanel: K,
1975
1975
  hasExpanded: M,
@@ -1978,7 +1978,7 @@ function Ve({ background: e = dn, height: t = "100dvh", padding: n = 16, mobileP
1978
1978
  rootExpansionActive: Se,
1979
1979
  firstExpandedIndex: F,
1980
1980
  onExpandedPanelChange: ae
1981
- }, Ar(y, k, W))), [
1981
+ }, Or(y, k, G))), [
1982
1982
  it,
1983
1983
  k,
1984
1984
  S,
@@ -1988,21 +1988,21 @@ function Ve({ background: e = dn, height: t = "100dvh", padding: n = 16, mobileP
1988
1988
  Se,
1989
1989
  F,
1990
1990
  ae
1991
- ]), wn = ze ? /* @__PURE__ */ le(sn, {
1991
+ ]), Cn = ze ? /* @__PURE__ */ le(ln, {
1992
1992
  orientation: "horizontal",
1993
1993
  disabled: M,
1994
1994
  groupRef: ee,
1995
- onLayoutChange: gn,
1996
- onLayoutChanged: mn,
1997
- onPointerDownCapture: yn,
1998
- className: X("min-h-0 min-w-0 flex-1", !I && "[&>[data-slot=resizable-panel]]:transition-[flex-grow] [&>[data-slot=resizable-panel]]:duration-300 [&>[data-slot=resizable-panel]]:ease-[cubic-bezier(0.16,1,0.3,1)] motion-reduce:[&>[data-slot=resizable-panel]]:transition-none"),
1995
+ onLayoutChange: mn,
1996
+ onLayoutChanged: yn,
1997
+ onPointerDownCapture: Sn,
1998
+ className: Y("min-h-0 min-w-0 flex-1", !I && "[&>[data-slot=resizable-panel]]:transition-[flex-grow] [&>[data-slot=resizable-panel]]:duration-300 [&>[data-slot=resizable-panel]]:ease-[cubic-bezier(0.16,1,0.3,1)] motion-reduce:[&>[data-slot=resizable-panel]]:transition-none"),
1999
1999
  children: [
2000
- /* @__PURE__ */ P(Ge, {
2000
+ /* @__PURE__ */ P(We, {
2001
2001
  id: "panel0",
2002
- defaultSize: Tt(Ee[0]),
2003
- minSize: ot ? 0 : Ot(j[0].props.minWidth),
2002
+ defaultSize: Ot(Re[0]),
2003
+ minSize: ot ? 0 : Ft(_[0].props.minWidth),
2004
2004
  children: /* @__PURE__ */ P(Be, {
2005
- panel: j[0],
2005
+ panel: _[0],
2006
2006
  visible: !M || F === 0,
2007
2007
  index: 0,
2008
2008
  overrides: { sizeManagedByRoot: !0 },
@@ -2016,16 +2016,16 @@ function Ve({ background: e = dn, height: t = "100dvh", padding: n = 16, mobileP
2016
2016
  onExpandedPanelChange: ae
2017
2017
  })
2018
2018
  }),
2019
- /* @__PURE__ */ P(ln, {
2019
+ /* @__PURE__ */ P(un, {
2020
2020
  disabled: M,
2021
- className: X("z-10 min-w-2 shrink-0 cursor-col-resize w-[var(--app-shell-gap,0px)] bg-transparent after:w-2 hover:bg-transparent", "transition-[width,min-width,opacity,background-color] duration-300 ease-[cubic-bezier(0.16,1,0.3,1)] motion-reduce:transition-none", M && "min-w-0 w-0 opacity-0 after:w-0 pointer-events-none")
2021
+ className: Y("z-10 min-w-2 shrink-0 cursor-col-resize w-[var(--app-shell-gap,0px)] bg-transparent after:w-2 hover:bg-transparent", "transition-[width,min-width,opacity,background-color] duration-300 ease-[cubic-bezier(0.16,1,0.3,1)] motion-reduce:transition-none", M && "min-w-0 w-0 opacity-0 after:w-0 pointer-events-none")
2022
2022
  }),
2023
- /* @__PURE__ */ P(Ge, {
2023
+ /* @__PURE__ */ P(We, {
2024
2024
  id: "panel1",
2025
- defaultSize: Tt(Ee[1]),
2026
- minSize: ot ? 0 : Ot(j[1].props.minWidth),
2025
+ defaultSize: Ot(Re[1]),
2026
+ minSize: ot ? 0 : Ft(_[1].props.minWidth),
2027
2027
  children: /* @__PURE__ */ P(Be, {
2028
- panel: j[1],
2028
+ panel: _[1],
2029
2029
  visible: !M || F === 1,
2030
2030
  index: 1,
2031
2031
  overrides: { sizeManagedByRoot: !0 },
@@ -2041,9 +2041,9 @@ function Ve({ background: e = dn, height: t = "100dvh", padding: n = 16, mobileP
2041
2041
  })
2042
2042
  ]
2043
2043
  }) : null, pt = xe && Fe[K] ? Fe[K].label || `Panel ${K + 1}` : null;
2044
- return S ? /* @__PURE__ */ P(vt, {
2044
+ return S ? /* @__PURE__ */ P(bt, {
2045
2045
  value: lt,
2046
- children: /* @__PURE__ */ le(We, {
2046
+ children: /* @__PURE__ */ le(Ge, {
2047
2047
  ref: O,
2048
2048
  background: e,
2049
2049
  height: t,
@@ -2056,9 +2056,9 @@ function Ve({ background: e = dn, height: t = "100dvh", padding: n = 16, mobileP
2056
2056
  children: [
2057
2057
  dt,
2058
2058
  Le && /* @__PURE__ */ P(Nn, {
2059
- open: Sn,
2060
- onOpenChange: xn,
2061
- children: /* @__PURE__ */ P(In, {
2059
+ open: zn,
2060
+ onOpenChange: wn,
2061
+ children: /* @__PURE__ */ P(Dn, {
2062
2062
  side: "left",
2063
2063
  showCloseButton: !1,
2064
2064
  className: "w-[280px] p-0",
@@ -2068,11 +2068,11 @@ function Ve({ background: e = dn, height: t = "100dvh", padding: n = 16, mobileP
2068
2068
  }),
2069
2069
  /* @__PURE__ */ le("div", {
2070
2070
  className: "flex h-full min-w-0 flex-1 flex-col overflow-clip",
2071
- children: [/* @__PURE__ */ P(un, {
2071
+ children: [/* @__PURE__ */ P(dn, {
2072
2072
  panels: Fe,
2073
2073
  activeIndex: K,
2074
2074
  onActiveChange: Oe,
2075
- onSidebarOpen: Le ? zn : void 0,
2075
+ onSidebarOpen: Le ? xn : void 0,
2076
2076
  baseId: k
2077
2077
  }), /* @__PURE__ */ P("div", {
2078
2078
  className: "flex min-h-0 flex-1",
@@ -2088,9 +2088,9 @@ function Ve({ background: e = dn, height: t = "100dvh", padding: n = 16, mobileP
2088
2088
  nt
2089
2089
  ]
2090
2090
  })
2091
- }) : /* @__PURE__ */ P(vt, {
2091
+ }) : /* @__PURE__ */ P(bt, {
2092
2092
  value: lt,
2093
- children: /* @__PURE__ */ le(We, {
2093
+ children: /* @__PURE__ */ le(Ge, {
2094
2094
  ref: O,
2095
2095
  background: e,
2096
2096
  height: t,
@@ -2103,54 +2103,57 @@ function Ve({ background: e = dn, height: t = "100dvh", padding: n = 16, mobileP
2103
2103
  children: [
2104
2104
  dt,
2105
2105
  Le,
2106
- wn ?? ct,
2106
+ Cn ?? ct,
2107
2107
  nt
2108
2108
  ]
2109
2109
  })
2110
2110
  });
2111
2111
  }
2112
2112
  Ve.displayName = "AppShell";
2113
- function tt({ width: e, expandedWidth: t = "280px", collapsedWidth: n = "116px", className: r, style: a, children: o, ...c }) {
2114
- const i = !e;
2113
+ function tt({ width: e, expandedWidth: t = In, collapsedWidth: n = vt, className: r, style: a, children: o, ...c }) {
2114
+ const i = e === void 0;
2115
2115
  return /* @__PURE__ */ P("div", {
2116
2116
  "data-slot": "app-shell-sidebar",
2117
2117
  style: {
2118
2118
  ...i ? {
2119
2119
  "--app-shell-sidebar-collapsed": n,
2120
2120
  "--app-shell-sidebar-expanded": t
2121
- } : { "--app-shell-sidebar-width": e },
2121
+ } : {
2122
+ "--app-shell-sidebar-width": e,
2123
+ minWidth: vt
2124
+ },
2122
2125
  ...a
2123
2126
  },
2124
- className: X("flex h-full shrink-0 flex-col overflow-clip", "transition-[width] duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]", "motion-reduce:transition-none", i ? ["w-[var(--app-shell-sidebar-collapsed,116px)]", "[&:has([data-state=expanded])]:w-[var(--app-shell-sidebar-expanded,280px)]"] : "w-[var(--app-shell-sidebar-width,116px)]", r),
2127
+ className: Y("flex h-full shrink-0 flex-col overflow-clip", "transition-[width] duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]", "motion-reduce:transition-none", i ? ["w-[var(--app-shell-sidebar-collapsed)]", "[&:has([data-state=expanded])]:w-[var(--app-shell-sidebar-expanded)]"] : "w-[var(--app-shell-sidebar-width)]", r),
2125
2128
  ...c,
2126
2129
  children: o
2127
2130
  });
2128
2131
  }
2129
2132
  tt.displayName = "AppShell.Sidebar";
2130
- function cn({ className: e, children: t, ...n }) {
2133
+ function pn({ className: e, children: t, ...n }) {
2131
2134
  return /* @__PURE__ */ P("div", {
2132
2135
  "data-slot": "app-shell-header",
2133
- className: X("shrink-0", e),
2136
+ className: Y("shrink-0", e),
2134
2137
  ...n,
2135
2138
  children: t
2136
2139
  });
2137
2140
  }
2138
- cn.displayName = "AppShell.Header";
2139
- var Tr = {
2141
+ pn.displayName = "AppShell.Header";
2142
+ var Fr = {
2140
2143
  transparent: "transparent",
2141
- appBg: dn,
2144
+ appBg: cn,
2142
2145
  neutral: "var(--muted)",
2143
2146
  brandSubtle: "linear-gradient(135deg, var(--air-50) 0%, var(--air-100) 100%)",
2144
2147
  brand: "linear-gradient(135deg, var(--air-400) 0%, var(--primary) 100%)",
2145
2148
  brandDeep: "linear-gradient(135deg, var(--primary) 0%, var(--air-900) 100%)",
2146
2149
  desertMidnight: "linear-gradient(135deg, var(--slate-500) 0%, var(--slate-700) 100%)",
2147
2150
  aqua: "linear-gradient(135deg, var(--air-400) 0%, var(--air-600) 100%)"
2148
- }, Or = Object.assign(Ve, {
2151
+ }, $r = Object.assign(Ve, {
2149
2152
  Root: Ve,
2150
2153
  Sidebar: tt,
2151
- Header: cn,
2152
- Panel: Mr,
2153
- Content: On
2154
+ Header: pn,
2155
+ Panel: Ir,
2156
+ Content: $n
2154
2157
  }), Ue = {
2155
2158
  background: "string",
2156
2159
  height: "string",
@@ -2158,12 +2161,12 @@ var Tr = {
2158
2161
  mobilePadding: "string",
2159
2162
  gap: "string",
2160
2163
  connected: "boolean"
2161
- }, pn = class extends En {
2164
+ }, fn = class extends kn {
2162
2165
  get propDefs() {
2163
2166
  return Ue;
2164
2167
  }
2165
2168
  static get observedAttributes() {
2166
- return Object.keys(Ue).map(Ln);
2169
+ return Object.keys(Ue).map(En);
2167
2170
  }
2168
2171
  _renderReact() {
2169
2172
  const e = this._readAllProps(), t = this._getSlot("sidebar"), n = this._getSlot("content") || this._getDefaultSlot(), r = [];
@@ -2177,8 +2180,8 @@ var Tr = {
2177
2180
  }
2178
2181
  }
2179
2182
  };
2180
- return Fn.createElement(Or, {
2181
- background: e.background || Tr.appBg,
2183
+ return Bn.createElement($r, {
2184
+ background: e.background || Fr.appBg,
2182
2185
  height: e.height || "100vh",
2183
2186
  padding: a(e.padding) ?? 16,
2184
2187
  mobilePadding: a(e.mobilePadding),
@@ -2187,11 +2190,11 @@ var Tr = {
2187
2190
  }, ...r);
2188
2191
  }
2189
2192
  };
2190
- Rn(pn, Ue);
2191
- kn("hf-app-shell", pn);
2193
+ Rn(fn, Ue);
2194
+ Mn("hf-app-shell", fn);
2192
2195
  export {
2193
- pn as AppShellWC,
2194
- pn as default
2196
+ fn as AppShellWC,
2197
+ fn as default
2195
2198
  };
2196
2199
 
2197
2200
  //# sourceMappingURL=hf-app-shell.js.map