@pstdio/ui 0.39.0 → 0.40.0

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.
@@ -46,23 +46,23 @@ var R = 72, z = 160, B = 72, V = (e, t, n) => Math.min(Math.max(e, t), n), H = {
46
46
  panelFirst: !1
47
47
  }
48
48
  }, U = (e) => H[e], W = (e) => {
49
- let t = e.rootSize > 0 ? e.rootSize : e.fallbackRootSize, n = Math.max(0, t - e.contentMinSize), r = e.maxSize ?? n, i = Math.max(0, Math.min(r, n));
49
+ let t = e.rootSize > 0 ? e.rootSize : e.fallbackRootSize, n = Math.max(0, t - e.separatorSize - e.contentMinSize), r = e.maxSize ?? n, i = Math.max(0, Math.min(r, n));
50
50
  return {
51
51
  minSize: Math.min(e.minSize, i),
52
52
  maxSize: i
53
53
  };
54
- }, G = (e, t) => e === "top" || e === "bottom" ? B : V(t / 2, R, z), K = (e) => {
54
+ }, G = (e, t) => e === "top" || e === "bottom" ? B : V(t / 2, R, z), ee = (e) => {
55
55
  let t = U(e.side), n = e.startSize + e.pointerDelta * t.deltaDirection, r = e.collapsible && n <= G(e.side, e.minSize);
56
56
  return {
57
57
  rawSize: n,
58
58
  size: r ? 0 : V(n, e.minSize, e.maxSize),
59
59
  collapsed: r
60
60
  };
61
- }, ee = 250, q = [
61
+ }, te = 250, K = [
62
62
  0,
63
63
  1,
64
64
  2
65
- ], te = (e, t) => e ? {
65
+ ], ne = (e, t) => e ? {
66
66
  w: t,
67
67
  h: "full",
68
68
  hitArea: {
@@ -94,9 +94,9 @@ var R = 72, z = 160, B = 72, V = (e, t, n) => Math.min(Math.max(e, t), n), H = {
94
94
  h: "0.5",
95
95
  transform: "translateY(-50%)"
96
96
  }
97
- }, ne = (e) => {
97
+ }, re = (e) => {
98
98
  let t = f(4), { active: n, layout: r } = e, a = r.gripDirection, o = +!n, s;
99
- t[0] === Symbol.for("react.memo_cache_sentinel") ? (s = q.map(ae), t[0] = s) : s = t[0];
99
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (s = K.map(ae), t[0] = s) : s = t[0];
100
100
  let c;
101
101
  return t[1] !== r.gripDirection || t[2] !== o ? (c = /* @__PURE__ */ m(i, {
102
102
  "data-part": "grip",
@@ -106,7 +106,7 @@ var R = 72, z = 160, B = 72, V = (e, t, n) => Math.min(Math.max(e, t), n), H = {
106
106
  transition: "opacity 120ms ease",
107
107
  children: s
108
108
  }), t[1] = r.gripDirection, t[2] = o, t[3] = c) : c = t[3], c;
109
- }, re = (e) => {
109
+ }, ie = (e) => {
110
110
  let t = f(3), { active: n, layout: i } = e, a = +!!n, o;
111
111
  return t[0] !== i.bar || t[1] !== a ? (o = /* @__PURE__ */ m(r, {
112
112
  "data-part": "bar",
@@ -118,83 +118,84 @@ var R = 72, z = 160, B = 72, V = (e, t, n) => Math.min(Math.max(e, t), n), H = {
118
118
  pointerEvents: "none",
119
119
  ...i.bar
120
120
  }), t[0] = i.bar, t[1] = a, t[2] = o) : o = t[2], o;
121
- }, ie = (e) => {
122
- let t = f(46), { css: n, axis: i, bounds: a, collapsed: o, collapsible: s, contentPanelId: c, dragging: l, resizablePanelId: u, resizeLabel: d, resolvedPanelSize: p, separator: g, onCollapse: _, onResizeKeyDown: v, onResizeStart: b } = e, C = g === "line", w = i.separatorOrientation === "vertical", T = C ? "1px" : "panel-gap", E;
123
- t[0] !== w || t[1] !== T ? (E = te(w, T), t[0] = w, t[1] = T, t[2] = E) : E = t[2];
124
- let D = E, [O, k] = S(!1), A = x(0), j = O || l, M;
125
- t[3] === o ? M = t[4] : (M = o ? {
121
+ }, q = (e) => {
122
+ let t = f(47), { css: n, axis: i, bounds: a, collapsed: o, collapsible: s, contentPanelId: c, dragging: l, resizablePanelId: u, resizeLabel: d, resolvedPanelSize: p, separator: g, separatorRef: _, onCollapse: v, onResizeKeyDown: b, onResizeStart: C } = e, w = g === "line", T = i.separatorOrientation === "vertical", E = w ? "1px" : "panel-gap", D;
123
+ t[0] !== T || t[1] !== E ? (D = ne(T, E), t[0] = T, t[1] = E, t[2] = D) : D = t[2];
124
+ let O = D, [k, A] = S(!1), j = x(0), M = k || l, N;
125
+ t[3] === o ? N = t[4] : (N = o ? {
126
126
  "aria-hidden": !0,
127
127
  tabIndex: -1
128
- } : { tabIndex: 0 }, t[3] = o, t[4] = M);
129
- let N = M, P, F;
130
- t[5] === Symbol.for("react.memo_cache_sentinel") ? (P = () => () => window.clearTimeout(A.current), F = [], t[5] = P, t[6] = F) : (P = t[5], F = t[6]), y(P, F);
131
- let I;
132
- t[7] === Symbol.for("react.memo_cache_sentinel") ? (I = () => {
133
- A.current = window.setTimeout(() => k(!0), ee);
134
- }, t[7] = I) : I = t[7];
135
- let L = I, R;
136
- t[8] === Symbol.for("react.memo_cache_sentinel") ? (R = () => {
137
- window.clearTimeout(A.current), k(!1);
138
- }, t[8] = R) : R = t[8];
139
- let z = R, B = i.separatorOrientation, V = `${u} ${c}`, H;
140
- t[9] !== a.minSize || t[10] !== s ? (H = s ? 0 : Math.round(a.minSize), t[9] = a.minSize, t[10] = s, t[11] = H) : H = t[11];
141
- let U;
142
- t[12] === a.maxSize ? U = t[13] : (U = Math.round(a.maxSize), t[12] = a.maxSize, t[13] = U);
128
+ } : { tabIndex: 0 }, t[3] = o, t[4] = N);
129
+ let P = N, F, I;
130
+ t[5] === Symbol.for("react.memo_cache_sentinel") ? (F = () => () => window.clearTimeout(j.current), I = [], t[5] = F, t[6] = I) : (F = t[5], I = t[6]), y(F, I);
131
+ let L;
132
+ t[7] === Symbol.for("react.memo_cache_sentinel") ? (L = () => {
133
+ j.current = window.setTimeout(() => A(!0), te);
134
+ }, t[7] = L) : L = t[7];
135
+ let R = L, z;
136
+ t[8] === Symbol.for("react.memo_cache_sentinel") ? (z = () => {
137
+ window.clearTimeout(j.current), A(!1);
138
+ }, t[8] = z) : z = t[8];
139
+ let B = z, V = i.separatorOrientation, H = `${u} ${c}`, U;
140
+ t[9] !== a.minSize || t[10] !== s ? (U = s ? 0 : Math.round(a.minSize), t[9] = a.minSize, t[10] = s, t[11] = U) : U = t[11];
143
141
  let W;
144
- t[14] === p ? W = t[15] : (W = Math.round(p), t[14] = p, t[15] = W);
145
- let G = C ? "border.subtle" : void 0, K;
146
- t[16] === D.hitArea ? K = t[17] : (K = {
142
+ t[12] === a.maxSize ? W = t[13] : (W = Math.round(a.maxSize), t[12] = a.maxSize, t[13] = W);
143
+ let G;
144
+ t[14] === p ? G = t[15] : (G = Math.round(p), t[14] = p, t[15] = G);
145
+ let ee = w ? "border.subtle" : void 0, K;
146
+ t[16] === O.hitArea ? K = t[17] : (K = {
147
147
  content: "\"\"",
148
148
  position: "absolute",
149
- ...D.hitArea
150
- }, t[16] = D.hitArea, t[17] = K);
149
+ ...O.hitArea
150
+ }, t[16] = O.hitArea, t[17] = K);
151
151
  let q;
152
152
  t[18] === Symbol.for("react.memo_cache_sentinel") ? (q = {
153
153
  "& [data-part=bar]": { opacity: 1 },
154
154
  "& [data-part=grip]": { opacity: 0 }
155
155
  }, t[18] = q) : q = t[18];
156
- let ie = s ? _ : void 0, ae;
157
- t[19] !== j || t[20] !== D || t[21] !== C ? (ae = C ? null : /* @__PURE__ */ m(ne, {
158
- active: j,
159
- layout: D
160
- }), t[19] = j, t[20] = D, t[21] = C, t[22] = ae) : ae = t[22];
161
- let oe;
162
- t[23] !== j || t[24] !== D ? (oe = /* @__PURE__ */ m(re, {
163
- active: j,
164
- layout: D
165
- }), t[23] = j, t[24] = D, t[25] = oe) : oe = t[25];
156
+ let ae = s ? v : void 0, oe;
157
+ t[19] !== M || t[20] !== O || t[21] !== w ? (oe = w ? null : /* @__PURE__ */ m(re, {
158
+ active: M,
159
+ layout: O
160
+ }), t[19] = M, t[20] = O, t[21] = w, t[22] = oe) : oe = t[22];
166
161
  let se;
167
- return t[26] !== i.cursor || t[27] !== i.separatorOrientation || t[28] !== o || t[29] !== n || t[30] !== D.h || t[31] !== D.w || t[32] !== v || t[33] !== b || t[34] !== d || t[35] !== H || t[36] !== U || t[37] !== W || t[38] !== G || t[39] !== K || t[40] !== ie || t[41] !== ae || t[42] !== oe || t[43] !== V || t[44] !== N ? (se = /* @__PURE__ */ h(r, {
162
+ t[23] !== M || t[24] !== O ? (se = /* @__PURE__ */ m(ie, {
163
+ active: M,
164
+ layout: O
165
+ }), t[23] = M, t[24] = O, t[25] = se) : se = t[25];
166
+ let ce;
167
+ return t[26] !== i.cursor || t[27] !== i.separatorOrientation || t[28] !== o || t[29] !== n || t[30] !== O.h || t[31] !== O.w || t[32] !== b || t[33] !== C || t[34] !== d || t[35] !== _ || t[36] !== U || t[37] !== W || t[38] !== G || t[39] !== ee || t[40] !== K || t[41] !== ae || t[42] !== oe || t[43] !== se || t[44] !== H || t[45] !== P ? (ce = /* @__PURE__ */ h(r, {
168
168
  css: n,
169
+ ref: _,
169
170
  "data-collapsed": o,
170
171
  role: "separator",
171
172
  "aria-label": d,
172
- "aria-orientation": B,
173
- "aria-controls": V,
174
- "aria-valuemin": H,
175
- "aria-valuemax": U,
176
- "aria-valuenow": W,
177
- ...N,
173
+ "aria-orientation": V,
174
+ "aria-controls": H,
175
+ "aria-valuemin": U,
176
+ "aria-valuemax": W,
177
+ "aria-valuenow": G,
178
+ ...P,
178
179
  position: "relative",
179
180
  zIndex: "docked",
180
181
  alignItems: "center",
181
182
  justifyContent: "center",
182
183
  flexShrink: 0,
183
- w: D.w,
184
- h: D.h,
185
- bg: G,
184
+ w: O.w,
185
+ h: O.h,
186
+ bg: ee,
186
187
  cursor: i.cursor,
187
188
  touchAction: "none",
188
189
  outline: "none",
189
190
  _before: K,
190
191
  _focusVisible: q,
191
- onPointerEnter: L,
192
- onPointerLeave: z,
193
- onPointerDown: b,
194
- onDoubleClick: ie,
195
- onKeyDown: v,
196
- children: [ae, oe]
197
- }), t[26] = i.cursor, t[27] = i.separatorOrientation, t[28] = o, t[29] = n, t[30] = D.h, t[31] = D.w, t[32] = v, t[33] = b, t[34] = d, t[35] = H, t[36] = U, t[37] = W, t[38] = G, t[39] = K, t[40] = ie, t[41] = ae, t[42] = oe, t[43] = V, t[44] = N, t[45] = se) : se = t[45], se;
192
+ onPointerEnter: R,
193
+ onPointerLeave: B,
194
+ onPointerDown: C,
195
+ onDoubleClick: ae,
196
+ onKeyDown: b,
197
+ children: [oe, se]
198
+ }), t[26] = i.cursor, t[27] = i.separatorOrientation, t[28] = o, t[29] = n, t[30] = O.h, t[31] = O.w, t[32] = b, t[33] = C, t[34] = d, t[35] = _, t[36] = U, t[37] = W, t[38] = G, t[39] = ee, t[40] = K, t[41] = ae, t[42] = oe, t[43] = se, t[44] = H, t[45] = P, t[46] = ce) : ce = t[46], ce;
198
199
  };
199
200
  function ae(e) {
200
201
  return /* @__PURE__ */ m(r, {
@@ -206,24 +207,24 @@ function ae(e) {
206
207
  //#endregion
207
208
  //#region src/components/layout/resizable-split-layout.panels.tsx
208
209
  var oe = (e) => {
209
- let t = f(35), { styles: n, axis: i, bounds: a, collapsed: o, collapsible: s, contentPanel: c, contentPanelId: l, contentPanelRef: u, resizablePanel: d, resizablePanelId: g, resizablePanelRef: _, dragging: v, resizeLabel: y, resolvedPanelSize: b, separator: x, onCollapse: S, onResizeKeyDown: C, onResizeStart: w } = e, T = o ? !0 : void 0, E;
210
- t[0] !== o || t[1] !== d || t[2] !== g || t[3] !== _ || t[4] !== n.resizablePanel || t[5] !== T ? (E = /* @__PURE__ */ m(r, {
210
+ let t = f(36), { styles: n, axis: i, bounds: a, collapsed: o, collapsible: s, contentPanel: c, contentPanelId: l, contentPanelRef: u, resizablePanel: d, resizablePanelId: g, resizablePanelRef: _, dragging: v, resizeLabel: y, resolvedPanelSize: b, separator: x, separatorRef: S, onCollapse: C, onResizeKeyDown: w, onResizeStart: T } = e, E = o ? !0 : void 0, D;
211
+ t[0] !== o || t[1] !== d || t[2] !== g || t[3] !== _ || t[4] !== n.resizablePanel || t[5] !== E ? (D = /* @__PURE__ */ m(r, {
211
212
  id: g,
212
213
  ref: _,
213
214
  css: n.resizablePanel,
214
215
  "data-collapsed": o,
215
- "aria-hidden": T,
216
+ "aria-hidden": E,
216
217
  children: d
217
- }, "resizable-panel"), t[0] = o, t[1] = d, t[2] = g, t[3] = _, t[4] = n.resizablePanel, t[5] = T, t[6] = E) : E = t[6];
218
- let D = E, O;
219
- t[7] !== c || t[8] !== l || t[9] !== u || t[10] !== n.contentPanel ? (O = /* @__PURE__ */ m(r, {
218
+ }, "resizable-panel"), t[0] = o, t[1] = d, t[2] = g, t[3] = _, t[4] = n.resizablePanel, t[5] = E, t[6] = D) : D = t[6];
219
+ let O = D, k;
220
+ t[7] !== c || t[8] !== l || t[9] !== u || t[10] !== n.contentPanel ? (k = /* @__PURE__ */ m(r, {
220
221
  id: l,
221
222
  ref: u,
222
223
  css: n.contentPanel,
223
224
  children: c
224
- }, "content-panel"), t[7] = c, t[8] = l, t[9] = u, t[10] = n.contentPanel, t[11] = O) : O = t[11];
225
- let k = O, A;
226
- t[12] !== i || t[13] !== a || t[14] !== o || t[15] !== s || t[16] !== l || t[17] !== v || t[18] !== S || t[19] !== C || t[20] !== w || t[21] !== g || t[22] !== y || t[23] !== b || t[24] !== x || t[25] !== n.separator ? (A = /* @__PURE__ */ m(ie, {
225
+ }, "content-panel"), t[7] = c, t[8] = l, t[9] = u, t[10] = n.contentPanel, t[11] = k) : k = t[11];
226
+ let A = k, j;
227
+ t[12] !== i || t[13] !== a || t[14] !== o || t[15] !== s || t[16] !== l || t[17] !== v || t[18] !== C || t[19] !== w || t[20] !== T || t[21] !== g || t[22] !== y || t[23] !== b || t[24] !== x || t[25] !== S || t[26] !== n.separator ? (j = /* @__PURE__ */ m(q, {
227
228
  css: n.separator,
228
229
  axis: i,
229
230
  bounds: a,
@@ -235,44 +236,57 @@ var oe = (e) => {
235
236
  resizeLabel: y,
236
237
  resolvedPanelSize: b,
237
238
  separator: x,
238
- onCollapse: S,
239
- onResizeKeyDown: C,
240
- onResizeStart: w
241
- }, "resize-handle"), t[12] = i, t[13] = a, t[14] = o, t[15] = s, t[16] = l, t[17] = v, t[18] = S, t[19] = C, t[20] = w, t[21] = g, t[22] = y, t[23] = b, t[24] = x, t[25] = n.separator, t[26] = A) : A = t[26];
242
- let j = A;
239
+ separatorRef: S,
240
+ onCollapse: C,
241
+ onResizeKeyDown: w,
242
+ onResizeStart: T
243
+ }, "resize-handle"), t[12] = i, t[13] = a, t[14] = o, t[15] = s, t[16] = l, t[17] = v, t[18] = C, t[19] = w, t[20] = T, t[21] = g, t[22] = y, t[23] = b, t[24] = x, t[25] = S, t[26] = n.separator, t[27] = j) : j = t[27];
244
+ let M = j;
243
245
  if (i.panelFirst) {
244
246
  let e;
245
- return t[27] !== k || t[28] !== D || t[29] !== j ? (e = /* @__PURE__ */ h(p, { children: [
246
- D,
247
- j,
248
- k
249
- ] }), t[27] = k, t[28] = D, t[29] = j, t[30] = e) : e = t[30], e;
247
+ return t[28] !== A || t[29] !== O || t[30] !== M ? (e = /* @__PURE__ */ h(p, { children: [
248
+ O,
249
+ M,
250
+ A
251
+ ] }), t[28] = A, t[29] = O, t[30] = M, t[31] = e) : e = t[31], e;
250
252
  }
251
- let M;
252
- return t[31] !== k || t[32] !== D || t[33] !== j ? (M = /* @__PURE__ */ h(p, { children: [
253
- k,
254
- j,
255
- D
256
- ] }), t[31] = k, t[32] = D, t[33] = j, t[34] = M) : M = t[34], M;
257
- }, se = (e, t) => {
258
- let n = f(4), [r, i] = S(0), a, o;
259
- return n[0] !== t || n[1] !== e ? (a = () => {
260
- let n = e.current;
261
- if (!n) return;
262
- let r = () => {
263
- i(n.getBoundingClientRect()[t]);
253
+ let N;
254
+ return t[32] !== A || t[33] !== O || t[34] !== M ? (N = /* @__PURE__ */ h(p, { children: [
255
+ A,
256
+ M,
257
+ O
258
+ ] }), t[32] = A, t[33] = O, t[34] = M, t[35] = N) : N = t[35], N;
259
+ }, se = (e, t, n) => {
260
+ let r = f(6), i;
261
+ r[0] === Symbol.for("react.memo_cache_sentinel") ? (i = {
262
+ rootSize: 0,
263
+ separatorSize: 0
264
+ }, r[0] = i) : i = r[0];
265
+ let [a, o] = S(i), s, c;
266
+ return r[1] !== n || r[2] !== e || r[3] !== t ? (s = () => {
267
+ let r = e.current;
268
+ if (!r) return;
269
+ let i = () => {
270
+ o({
271
+ rootSize: r.getBoundingClientRect()[n],
272
+ separatorSize: t.current?.getBoundingClientRect()[n] ?? 0
273
+ });
264
274
  };
265
- if (r(), typeof ResizeObserver > "u") return;
266
- let a = new ResizeObserver(r);
267
- return a.observe(n), () => {
275
+ if (i(), typeof ResizeObserver > "u") return;
276
+ let a = new ResizeObserver(i);
277
+ return a.observe(r), t.current && a.observe(t.current), () => {
268
278
  a.disconnect();
269
279
  };
270
- }, o = [e, t], n[0] = t, n[1] = e, n[2] = a, n[3] = o) : (a = n[2], o = n[3]), y(a, o), r;
280
+ }, c = [
281
+ e,
282
+ t,
283
+ n
284
+ ], r[1] = n, r[2] = e, r[3] = t, r[4] = s, r[5] = c) : (s = r[4], c = r[5]), y(s, c), a;
271
285
  }, ce = {
272
286
  width: 1200,
273
287
  height: 720
274
288
  }, le = 24, ue = (e, t, n) => Math.min(Math.max(e, t), n), de = (e, t) => e?.getBoundingClientRect()[t] ?? 0, fe = (e) => {
275
- let t = f(95), n, r, a, o, s, c, l, u, p, h, g, _, v, C, w;
289
+ let t = f(96), n, r, a, o, s, c, l, u, p, h, g, _, v, C, w;
276
290
  t[0] === e ? (n = t[1], r = t[2], a = t[3], o = t[4], s = t[5], c = t[6], l = t[7], u = t[8], p = t[9], h = t[10], g = t[11], _ = t[12], v = t[13], C = t[14], w = t[15]) : ({resizablePanel: c, contentPanel: n, resizableSide: u, defaultSizePx: p, minSizePx: h, maxSizePx: a, contentMinSizePx: g, collapsed: r, collapsible: _, resizeLabel: v, separator: C, layout: w, onSizeChange: s, onCollapsedChange: o, ...l} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = a, t[4] = o, t[5] = s, t[6] = c, t[7] = l, t[8] = u, t[9] = p, t[10] = h, t[11] = g, t[12] = _, t[13] = v, t[14] = C, t[15] = w);
277
291
  let T = u === void 0 ? "left" : u, E = p === void 0 ? 240 : p, D = h === void 0 ? 200 : h, O = g === void 0 ? 0 : g, k = _ === void 0 || _, A = v === void 0 ? "Resize panel" : v, j = C === void 0 ? "gap" : C, M = w === void 0 ? "split" : w, N;
278
292
  t[16] === T ? N = t[17] : (N = U(T), t[16] = T, t[17] = N);
@@ -283,62 +297,65 @@ var oe = (e) => {
283
297
  orientation: L,
284
298
  layout: M
285
299
  }), t[19] = M, t[20] = I, t[21] = L, t[22] = R) : R = t[22];
286
- let z = R, B = b(), V = x(null), H = x(null), G = x(null), ee = x(pe), q = se(V, P.dimension), te = x(E), [ne, re] = S(E), [ie, ae] = S(!1), [fe, he] = S(!1), J = r ?? ie, Y, ge;
287
- t[23] !== P.dimension || t[24] !== J || t[25] !== O || t[26] !== a || t[27] !== D || t[28] !== ne || t[29] !== q ? (Y = W({
288
- rootSize: q,
300
+ let z = R, B = b(), V = x(null), H = x(null), G = x(null), te = x(null), K = x(pe), { rootSize: ne, separatorSize: re } = se(V, te, P.dimension), ie = x(E), [q, ae] = S(E), [fe, he] = S(!1), [ge, _e] = S(!1), J = r ?? fe, Y, ve;
301
+ t[23] !== P.dimension || t[24] !== J || t[25] !== O || t[26] !== a || t[27] !== D || t[28] !== q || t[29] !== ne || t[30] !== re ? (Y = W({
302
+ rootSize: ne,
289
303
  fallbackRootSize: ce[P.dimension],
290
304
  minSize: D,
291
305
  maxSize: a,
292
- contentMinSize: O
293
- }), ge = J ? 0 : ue(ne, Y.minSize, Y.maxSize), t[23] = P.dimension, t[24] = J, t[25] = O, t[26] = a, t[27] = D, t[28] = ne, t[29] = q, t[30] = Y, t[31] = ge) : (Y = t[30], ge = t[31]);
294
- let _e = ge, ve = `${B}-content`, ye = `${B}-resizable`, be = `${_e}px`, X;
295
- t[32] !== l.style || t[33] !== be ? (X = {
306
+ contentMinSize: O,
307
+ separatorSize: re
308
+ }), ve = J ? 0 : ue(q, Y.minSize, Y.maxSize), t[23] = P.dimension, t[24] = J, t[25] = O, t[26] = a, t[27] = D, t[28] = q, t[29] = ne, t[30] = re, t[31] = Y, t[32] = ve) : (Y = t[31], ve = t[32]);
309
+ let ye = ve, be = `${B}-content`, X = `${B}-resizable`, xe = `${ye}px`, Se;
310
+ t[33] !== l.style || t[34] !== xe ? (Se = {
296
311
  ...l.style,
297
- "--split-size": be
298
- }, t[32] = l.style, t[33] = be, t[34] = X) : X = t[34];
299
- let xe = X, Se, Ce;
300
- t[35] === E ? (Se = t[36], Ce = t[37]) : (Se = () => {
301
- te.current = E, re(E);
302
- }, Ce = [E], t[35] = E, t[36] = Se, t[37] = Ce), y(Se, Ce);
303
- let we, Te;
304
- t[38] === Symbol.for("react.memo_cache_sentinel") ? (we = () => () => ee.current(), Te = [], t[38] = we, t[39] = Te) : (we = t[38], Te = t[39]), y(we, Te);
305
- let Ee;
306
- t[40] === Symbol.for("react.memo_cache_sentinel") ? (Ee = (e) => {
312
+ "--split-size": xe
313
+ }, t[33] = l.style, t[34] = xe, t[35] = Se) : Se = t[35];
314
+ let Ce = Se, we, Te;
315
+ t[36] === E ? (we = t[37], Te = t[38]) : (we = () => {
316
+ ie.current = E, ae(E);
317
+ }, Te = [E], t[36] = E, t[37] = we, t[38] = Te), y(we, Te);
318
+ let Ee, De;
319
+ t[39] === Symbol.for("react.memo_cache_sentinel") ? (Ee = () => () => K.current(), De = [], t[39] = Ee, t[40] = De) : (Ee = t[39], De = t[40]), y(Ee, De);
320
+ let Oe;
321
+ t[41] === Symbol.for("react.memo_cache_sentinel") ? (Oe = (e) => {
307
322
  V.current?.style.setProperty("--split-size", `${e}px`);
308
- }, t[40] = Ee) : Ee = t[40];
309
- let De = Ee, Oe;
310
- t[41] !== P.dimension || t[42] !== O || t[43] !== a || t[44] !== D || t[45] !== s ? (Oe = (e) => {
323
+ }, t[41] = Oe) : Oe = t[41];
324
+ let ke = Oe, Ae;
325
+ t[42] !== P.dimension || t[43] !== O || t[44] !== a || t[45] !== D || t[46] !== s ? (Ae = (e) => {
311
326
  let t = W({
312
327
  rootSize: de(V.current, P.dimension),
313
328
  fallbackRootSize: ce[P.dimension],
314
329
  minSize: D,
315
330
  maxSize: a,
316
- contentMinSize: O
331
+ contentMinSize: O,
332
+ separatorSize: de(te.current, P.dimension)
317
333
  }), n = ue(e, t.minSize, t.maxSize);
318
- te.current = n, re(n), De(n), s?.(n);
319
- }, t[41] = P.dimension, t[42] = O, t[43] = a, t[44] = D, t[45] = s, t[46] = Oe) : Oe = t[46];
320
- let Z = Oe, ke;
321
- t[47] !== r || t[48] !== o ? (ke = (e) => {
322
- r === void 0 && ae(e), o?.(e);
323
- }, t[47] = r, t[48] = o, t[49] = ke) : ke = t[49];
324
- let Q = ke, Ae;
325
- t[50] !== P.cursor || t[51] !== P.dimension || t[52] !== P.pointerCoordinate || t[53] !== J || t[54] !== k || t[55] !== Z || t[56] !== O || t[57] !== a || t[58] !== D || t[59] !== T || t[60] !== Q ? (Ae = (e) => {
334
+ ie.current = n, ae(n), ke(n), s?.(n);
335
+ }, t[42] = P.dimension, t[43] = O, t[44] = a, t[45] = D, t[46] = s, t[47] = Ae) : Ae = t[47];
336
+ let Z = Ae, je;
337
+ t[48] !== r || t[49] !== o ? (je = (e) => {
338
+ r === void 0 && he(e), o?.(e);
339
+ }, t[48] = r, t[49] = o, t[50] = je) : je = t[50];
340
+ let Q = je, Me;
341
+ t[51] !== P.cursor || t[52] !== P.dimension || t[53] !== P.pointerCoordinate || t[54] !== J || t[55] !== k || t[56] !== Z || t[57] !== O || t[58] !== a || t[59] !== D || t[60] !== T || t[61] !== Q ? (Me = (e) => {
326
342
  if (e.button !== 0 || J && !k) return;
327
- e.preventDefault(), ee.current();
343
+ e.preventDefault(), K.current();
328
344
  let t = e.currentTarget, n = W({
329
345
  rootSize: de(V.current, P.dimension),
330
346
  fallbackRootSize: ce[P.dimension],
331
347
  minSize: D,
332
348
  maxSize: a,
333
- contentMinSize: O
334
- }), r = e[P.pointerCoordinate], i = J ? 0 : de(H.current, P.dimension) || te.current, o = document.body.style.cursor, s = document.body.style.userSelect, c = i === 0 ? 0 : ue(i, n.minSize, n.maxSize), l = J, u = 0, d = (e) => {
349
+ contentMinSize: O,
350
+ separatorSize: de(te.current, P.dimension)
351
+ }), r = e[P.pointerCoordinate], i = J ? 0 : de(H.current, P.dimension) || ie.current, o = document.body.style.cursor, s = document.body.style.userSelect, c = i === 0 ? 0 : ue(i, n.minSize, n.maxSize), l = J, u = 0, d = (e) => {
335
352
  H.current && (H.current.style.pointerEvents = e), G.current && (G.current.style.pointerEvents = e);
336
353
  }, f = () => {
337
354
  u ||= window.requestAnimationFrame(() => {
338
- u = 0, De(c);
355
+ u = 0, ke(c);
339
356
  });
340
357
  }, p = (e) => {
341
- let t = K({
358
+ let t = ee({
342
359
  side: T,
343
360
  startSize: i,
344
361
  pointerDelta: e[P.pointerCoordinate] - r,
@@ -348,48 +365,49 @@ var oe = (e) => {
348
365
  });
349
366
  l = t.collapsed, c = t.size, f();
350
367
  }, m = () => {
351
- window.removeEventListener("pointermove", p), window.removeEventListener("pointerup", m), window.removeEventListener("pointercancel", m), window.removeEventListener("blur", m), document.body.style.cursor = o, document.body.style.userSelect = s, t.hasPointerCapture(e.pointerId) && t.releasePointerCapture(e.pointerId), d(""), he(!1), u &&= (window.cancelAnimationFrame(u), 0), ee.current = me, l ? (De(0), Q(!0)) : (Q(!1), Z(c));
368
+ window.removeEventListener("pointermove", p), window.removeEventListener("pointerup", m), window.removeEventListener("pointercancel", m), window.removeEventListener("blur", m), document.body.style.cursor = o, document.body.style.userSelect = s, t.hasPointerCapture(e.pointerId) && t.releasePointerCapture(e.pointerId), d(""), _e(!1), u &&= (window.cancelAnimationFrame(u), 0), K.current = me, l ? (ke(0), Q(!0)) : (Q(!1), Z(c));
352
369
  };
353
- ee.current = m, t.setPointerCapture(e.pointerId), document.body.style.cursor = P.cursor, document.body.style.userSelect = "none", d("none"), he(!0), window.addEventListener("pointermove", p), window.addEventListener("pointerup", m, { once: !0 }), window.addEventListener("pointercancel", m, { once: !0 }), window.addEventListener("blur", m, { once: !0 });
354
- }, t[50] = P.cursor, t[51] = P.dimension, t[52] = P.pointerCoordinate, t[53] = J, t[54] = k, t[55] = Z, t[56] = O, t[57] = a, t[58] = D, t[59] = T, t[60] = Q, t[61] = Ae) : Ae = t[61];
355
- let je = Ae, Me;
356
- t[62] !== k || t[63] !== Q ? (Me = () => {
357
- k && Q(!0);
358
- }, t[62] = k, t[63] = Q, t[64] = Me) : Me = t[64];
370
+ K.current = m, t.setPointerCapture(e.pointerId), document.body.style.cursor = P.cursor, document.body.style.userSelect = "none", d("none"), _e(!0), window.addEventListener("pointermove", p), window.addEventListener("pointerup", m, { once: !0 }), window.addEventListener("pointercancel", m, { once: !0 }), window.addEventListener("blur", m, { once: !0 });
371
+ }, t[51] = P.cursor, t[52] = P.dimension, t[53] = P.pointerCoordinate, t[54] = J, t[55] = k, t[56] = Z, t[57] = O, t[58] = a, t[59] = D, t[60] = T, t[61] = Q, t[62] = Me) : Me = t[62];
359
372
  let Ne = Me, Pe;
360
- t[65] !== P.deltaDirection || t[66] !== P.dimension || t[67] !== Y || t[68] !== J || t[69] !== k || t[70] !== Z || t[71] !== Q ? (Pe = (e) => {
361
- let t = P.dimension === "width" ? "ArrowLeft" : "ArrowUp", n = P.dimension === "width" ? "ArrowRight" : "ArrowDown", r = te.current;
362
- J && (e.key === t || e.key === n || e.key === "End") ? (e.preventDefault(), Q(!1), Z(r)) : e.key === t ? (e.preventDefault(), Z(r - le * P.deltaDirection)) : e.key === n ? (e.preventDefault(), Z(r + le * P.deltaDirection)) : e.key === "Home" ? (e.preventDefault(), k ? Q(!0) : Z(Y.minSize)) : e.key === "End" && (e.preventDefault(), Z(Y.maxSize));
363
- }, t[65] = P.deltaDirection, t[66] = P.dimension, t[67] = Y, t[68] = J, t[69] = k, t[70] = Z, t[71] = Q, t[72] = Pe) : Pe = t[72];
373
+ t[63] !== k || t[64] !== Q ? (Pe = () => {
374
+ k && Q(!0);
375
+ }, t[63] = k, t[64] = Q, t[65] = Pe) : Pe = t[65];
364
376
  let Fe = Pe, Ie;
365
- t[73] !== P || t[74] !== Y || t[75] !== J || t[76] !== k || t[77] !== n || t[78] !== ve || t[79] !== fe || t[80] !== Ne || t[81] !== Fe || t[82] !== je || t[83] !== c || t[84] !== ye || t[85] !== A || t[86] !== _e || t[87] !== j || t[88] !== z ? (Ie = /* @__PURE__ */ m(oe, {
377
+ t[66] !== P.deltaDirection || t[67] !== P.dimension || t[68] !== Y || t[69] !== J || t[70] !== k || t[71] !== Z || t[72] !== Q ? (Ie = (e) => {
378
+ let t = P.dimension === "width" ? "ArrowLeft" : "ArrowUp", n = P.dimension === "width" ? "ArrowRight" : "ArrowDown", r = ie.current;
379
+ J && (e.key === t || e.key === n || e.key === "End") ? (e.preventDefault(), Q(!1), Z(r)) : e.key === t ? (e.preventDefault(), Z(r - le * P.deltaDirection)) : e.key === n ? (e.preventDefault(), Z(r + le * P.deltaDirection)) : e.key === "Home" ? (e.preventDefault(), k ? Q(!0) : Z(Y.minSize)) : e.key === "End" && (e.preventDefault(), Z(Y.maxSize));
380
+ }, t[66] = P.deltaDirection, t[67] = P.dimension, t[68] = Y, t[69] = J, t[70] = k, t[71] = Z, t[72] = Q, t[73] = Ie) : Ie = t[73];
381
+ let Le = Ie, $;
382
+ t[74] !== P || t[75] !== Y || t[76] !== J || t[77] !== k || t[78] !== n || t[79] !== be || t[80] !== ge || t[81] !== Fe || t[82] !== Le || t[83] !== Ne || t[84] !== c || t[85] !== X || t[86] !== A || t[87] !== ye || t[88] !== j || t[89] !== z ? ($ = /* @__PURE__ */ m(oe, {
366
383
  styles: z,
367
384
  axis: P,
368
385
  bounds: Y,
369
386
  collapsed: J,
370
387
  collapsible: k,
371
388
  contentPanel: n,
372
- contentPanelId: ve,
389
+ contentPanelId: be,
373
390
  contentPanelRef: G,
374
391
  resizablePanel: c,
375
- resizablePanelId: ye,
392
+ resizablePanelId: X,
376
393
  resizablePanelRef: H,
377
- dragging: fe,
394
+ dragging: ge,
378
395
  resizeLabel: A,
379
- resolvedPanelSize: _e,
396
+ resolvedPanelSize: ye,
380
397
  separator: j,
381
- onCollapse: Ne,
382
- onResizeKeyDown: Fe,
383
- onResizeStart: je
384
- }), t[73] = P, t[74] = Y, t[75] = J, t[76] = k, t[77] = n, t[78] = ve, t[79] = fe, t[80] = Ne, t[81] = Fe, t[82] = je, t[83] = c, t[84] = ye, t[85] = A, t[86] = _e, t[87] = j, t[88] = z, t[89] = Ie) : Ie = t[89];
385
- let $;
386
- return t[90] !== l || t[91] !== xe || t[92] !== z.root || t[93] !== Ie ? ($ = /* @__PURE__ */ m(i, {
398
+ separatorRef: te,
399
+ onCollapse: Fe,
400
+ onResizeKeyDown: Le,
401
+ onResizeStart: Ne
402
+ }), t[74] = P, t[75] = Y, t[76] = J, t[77] = k, t[78] = n, t[79] = be, t[80] = ge, t[81] = Fe, t[82] = Le, t[83] = Ne, t[84] = c, t[85] = X, t[86] = A, t[87] = ye, t[88] = j, t[89] = z, t[90] = $) : $ = t[90];
403
+ let Re;
404
+ return t[91] !== l || t[92] !== Ce || t[93] !== z.root || t[94] !== $ ? (Re = /* @__PURE__ */ m(i, {
387
405
  ref: V,
388
406
  css: z.root,
389
407
  ...l,
390
- style: xe,
391
- children: Ie
392
- }), t[90] = l, t[91] = xe, t[92] = z.root, t[93] = Ie, t[94] = $) : $ = t[94], $;
408
+ style: Ce,
409
+ children: $
410
+ }), t[91] = l, t[92] = Ce, t[93] = z.root, t[94] = $, t[95] = Re) : Re = t[95], Re;
393
411
  };
394
412
  function pe() {}
395
413
  function me() {}
@@ -429,7 +447,7 @@ var he = (t) => {
429
447
  maxW: "full",
430
448
  children: [s, c]
431
449
  }), n[5] = s, n[6] = c, n[7] = l) : l = n[7], l;
432
- }, J = (e, t) => t.includes(e), Y = (e, t) => Array.isArray(t) ? t.includes(e) : t === e, ge = (e) => e.isNavigable || e.navigationIntent !== void 0, _e = (e) => e.children ?? [], ve = (e) => _e(e).length > 0 || e.isContainer === !0, ye = (e) => {
450
+ }, ge = (e, t) => t.includes(e), _e = (e, t) => Array.isArray(t) ? t.includes(e) : t === e, J = (e) => e.isNavigable || e.navigationIntent !== void 0, Y = (e) => e.children ?? [], ve = (e) => Y(e).length > 0 || e.isContainer === !0, ye = (e) => {
433
451
  let { rows: t, sectionId: n, nodes: r, expandedNodeIds: i, level: a, parentNodeId: o } = e;
434
452
  for (let e of r) {
435
453
  t.push({
@@ -440,8 +458,8 @@ var he = (t) => {
440
458
  level: a,
441
459
  parentNodeId: o
442
460
  });
443
- let r = _e(e);
444
- r.length !== 0 && J(e.id, i) && ye({
461
+ let r = Y(e);
462
+ r.length !== 0 && ge(e.id, i) && ye({
445
463
  rows: t,
446
464
  sectionId: n,
447
465
  nodes: r,
@@ -453,7 +471,7 @@ var he = (t) => {
453
471
  }, be = (e, t, n) => {
454
472
  let r = [];
455
473
  for (let i of e) {
456
- let e = i.collapsible !== !1 && i.label !== void 0, a = !e || J(i.id, t);
474
+ let e = i.collapsible !== !1 && i.label !== void 0, a = !e || ge(i.id, t);
457
475
  if (i.label && r.push({
458
476
  kind: "section-header",
459
477
  key: `header:${i.id}`,
@@ -510,7 +528,7 @@ var he = (t) => {
510
528
  sectionId: t.sectionId
511
529
  } : null;
512
530
  }, Te = (e) => {
513
- let { row: t, focusableRows: n, currentIndex: r, expandedNodeIds: i, key: a } = e, o = J(t.node.id, i), s = ve(t.node);
531
+ let { row: t, focusableRows: n, currentIndex: r, expandedNodeIds: i, key: a } = e, o = ge(t.node.id, i), s = ve(t.node);
514
532
  if (a === "ArrowRight") {
515
533
  if (!s) return null;
516
534
  if (!o) return {
@@ -560,7 +578,7 @@ var he = (t) => {
560
578
  });
561
579
  }, De = "application/x-pstdio-tree-node", Oe = (e, t) => {
562
580
  e.setData(De, t);
563
- }, Z = (e) => e.getData(De) || void 0, ke = (e) => {
581
+ }, ke = (e) => e.getData(De) || void 0, Ae = (e) => {
564
582
  let t = f(8), { children: n, onMoveNode: i } = e, a;
565
583
  t[0] === i ? a = t[1] : (a = (e) => {
566
584
  i && (e.preventDefault(), e.dataTransfer.dropEffect = "move");
@@ -569,7 +587,7 @@ var he = (t) => {
569
587
  t[2] === i ? s = t[3] : (s = (e) => {
570
588
  if (!i) return;
571
589
  e.preventDefault();
572
- let t = Z(e.dataTransfer);
590
+ let t = ke(e.dataTransfer);
573
591
  t && i(t);
574
592
  }, t[2] = i, t[3] = s);
575
593
  let c = s, l;
@@ -584,7 +602,7 @@ var he = (t) => {
584
602
  onDrop: c,
585
603
  children: n
586
604
  }), t[4] = n, t[5] = o, t[6] = c, t[7] = l) : l = t[7], l;
587
- }, Q = (e) => e <= 0 ? "sm" : `calc(var(--chakra-spacing-1) + ${e} * 12px)`, Ae = (e) => {
605
+ }, Z = (e) => e <= 0 ? "sm" : `calc(var(--chakra-spacing-1) + ${e} * 12px)`, je = (e) => {
588
606
  let { input: t, icon: n, level: a } = e, [o, c] = S(t.defaultValue ?? ""), [l, u] = S(), d = x(null), f = x(!1), p = async () => {
589
607
  if (!f.current) {
590
608
  f.current = !0, u(void 0);
@@ -604,7 +622,7 @@ var he = (t) => {
604
622
  alignItems: "center",
605
623
  gap: "1",
606
624
  pr: "sm",
607
- pl: Q(a),
625
+ pl: Z(a),
608
626
  onMouseDown: (e) => e.stopPropagation(),
609
627
  children: [n ? /* @__PURE__ */ m(r, {
610
628
  boxSize: "16px",
@@ -636,11 +654,11 @@ var he = (t) => {
636
654
  }
637
655
  })]
638
656
  });
639
- }, je = (e) => {
657
+ }, Q = (e) => {
640
658
  let t = f(69), { sectionId: r, node: i, level: a, expandedNodeIds: o, activeNodeId: s, rowVariant: c, nodeGap: u, linkComponent: d, tabIndex: p, onFocus: h, onNavigate: g, onToggleNode: _, onMoveNode: v } = e;
641
659
  if (i.inlineInput) {
642
660
  let e;
643
- return t[0] !== a || t[1] !== i.icon || t[2] !== i.inlineInput ? (e = /* @__PURE__ */ m(Ae, {
661
+ return t[0] !== a || t[1] !== i.icon || t[2] !== i.inlineInput ? (e = /* @__PURE__ */ m(je, {
644
662
  input: i.inlineInput,
645
663
  icon: i.icon,
646
664
  level: a
@@ -649,11 +667,11 @@ var he = (t) => {
649
667
  let y;
650
668
  t[4] === i ? y = t[5] : (y = ve(i), t[4] = i, t[5] = y);
651
669
  let b = y, x;
652
- t[6] !== o || t[7] !== b || t[8] !== i.id ? (x = b && J(i.id, o), t[6] = o, t[7] = b, t[8] = i.id, t[9] = x) : x = t[9];
670
+ t[6] !== o || t[7] !== b || t[8] !== i.id ? (x = b && ge(i.id, o), t[6] = o, t[7] = b, t[8] = i.id, t[9] = x) : x = t[9];
653
671
  let S = x, C;
654
- t[10] !== s || t[11] !== i.id ? (C = Y(i.id, s), t[10] = s, t[11] = i.id, t[12] = C) : C = t[12];
672
+ t[10] !== s || t[11] !== i.id ? (C = _e(i.id, s), t[10] = s, t[11] = i.id, t[12] = C) : C = t[12];
655
673
  let w = C, T = i.disabled === !0, E;
656
- t[13] === i ? E = t[14] : (E = ge(i), t[13] = i, t[14] = E);
674
+ t[13] === i ? E = t[14] : (E = J(i), t[13] = i, t[14] = E);
657
675
  let D = E, O = !!(d && i.href && D && !b && !T), k;
658
676
  t[15] !== b || t[16] !== T || t[17] !== D || t[18] !== i || t[19] !== g || t[20] !== _ || t[21] !== r ? (k = () => {
659
677
  if (!T) {
@@ -685,7 +703,7 @@ var he = (t) => {
685
703
  t[28] !== i.canDrop || t[29] !== i.id || t[30] !== v ? (F = (e) => {
686
704
  if (!v || (e.stopPropagation(), !i.canDrop)) return;
687
705
  e.preventDefault();
688
- let t = Z(e.dataTransfer);
706
+ let t = ke(e.dataTransfer);
689
707
  t && t !== i.id && v(t, i.id);
690
708
  }, t[28] = i.canDrop, t[29] = i.id, t[30] = v, t[31] = F) : F = t[31];
691
709
  let I = F, L;
@@ -724,26 +742,26 @@ var he = (t) => {
724
742
  onActivate: A,
725
743
  onToggleExpand: U
726
744
  }, t[43] = S, t[44] = A, t[45] = b, t[46] = w, t[47] = a, t[48] = R, t[49] = i.id, t[50] = h, t[51] = V, t[52] = H, t[53] = U, t[54] = B, t[55] = p, t[56] = W) : W = t[56];
727
- let G = W, K;
728
- t[57] !== d || t[58] !== O || t[59] !== i.href || t[60] !== G ? (K = O && d && i.href ? /* @__PURE__ */ m(d, {
745
+ let G = W, ee;
746
+ t[57] !== d || t[58] !== O || t[59] !== i.href || t[60] !== G ? (ee = O && d && i.href ? /* @__PURE__ */ m(d, {
729
747
  to: i.href,
730
748
  children: /* @__PURE__ */ m(n, {
731
749
  ...G,
732
750
  asChild: !0
733
751
  })
734
- }) : /* @__PURE__ */ m(n, { ...G }), t[57] = d, t[58] = O, t[59] = i.href, t[60] = G, t[61] = K) : K = t[61];
735
- let ee = K, q = !!(v && i.canDrag), te = i.canDrag ? M : void 0, ne = v ? P : void 0, re = v ? I : void 0, ie;
736
- return t[62] !== u || t[63] !== ee || t[64] !== q || t[65] !== te || t[66] !== ne || t[67] !== re ? (ie = /* @__PURE__ */ m(l, {
752
+ }) : /* @__PURE__ */ m(n, { ...G }), t[57] = d, t[58] = O, t[59] = i.href, t[60] = G, t[61] = ee) : ee = t[61];
753
+ let te = ee, K = !!(v && i.canDrag), ne = i.canDrag ? M : void 0, re = v ? P : void 0, ie = v ? I : void 0, q;
754
+ return t[62] !== u || t[63] !== te || t[64] !== K || t[65] !== ne || t[66] !== re || t[67] !== ie ? (q = /* @__PURE__ */ m(l, {
737
755
  gap: u,
738
756
  w: "full",
739
757
  minW: "0",
740
758
  maxW: "full",
741
- draggable: q,
742
- onDragStart: te,
743
- onDragOver: ne,
744
- onDrop: re,
745
- children: ee
746
- }), t[62] = u, t[63] = ee, t[64] = q, t[65] = te, t[66] = ne, t[67] = re, t[68] = ie) : ie = t[68], ie;
759
+ draggable: K,
760
+ onDragStart: ne,
761
+ onDragOver: re,
762
+ onDrop: ie,
763
+ children: te
764
+ }), t[62] = u, t[63] = te, t[64] = K, t[65] = ne, t[66] = re, t[67] = ie, t[68] = q) : q = t[68], q;
747
765
  }, Me = (e) => {
748
766
  let n = f(9), { sectionId: r, actions: i } = e;
749
767
  if (i.length === 0) return null;
@@ -871,8 +889,8 @@ function Fe(e) {
871
889
  }
872
890
  //#endregion
873
891
  //#region src/components/tree-list/tree-list-reorder.ts
874
- var Ie = "section:", $ = (e) => `${Ie}${e}`, Le = (e) => e.startsWith(Ie), Re = (e) => e.slice(8), ze = "after-section:", Be = (e) => `${ze}${e}`, Ve = (e) => e.startsWith(ze), He = (e) => e.slice(14), Ue = (e) => {
875
- if (Le(e)) return Re(e);
892
+ var Ie = "section:", Le = (e) => `${Ie}${e}`, $ = (e) => e.startsWith(Ie), Re = (e) => e.slice(8), ze = "after-section:", Be = (e) => `${ze}${e}`, Ve = (e) => e.startsWith(ze), He = (e) => e.slice(14), Ue = (e) => {
893
+ if ($(e)) return Re(e);
876
894
  if (Ve(e)) return He(e);
877
895
  }, We = (e, t) => {
878
896
  for (let n of e) {
@@ -886,7 +904,7 @@ var Ie = "section:", $ = (e) => `${Ie}${e}`, Le = (e) => e.startsWith(Ie), Re =
886
904
  }, Ge = (e, t) => t?.(e) ?? !0, Ke = (e, t, n, r) => {
887
905
  if (t === n) return !0;
888
906
  let i = Ue(n);
889
- if (Le(t)) {
907
+ if ($(t)) {
890
908
  if (i === void 0) return !1;
891
909
  let n = e.find((e) => e.id === Re(t)), a = e.find((e) => e.id === i);
892
910
  return !n || !a || n.canReorder === !1 || a.canReorder === !1 ? !1 : Ge({
@@ -944,18 +962,18 @@ var Ie = "section:", $ = (e) => `${Ie}${e}`, Le = (e) => e.startsWith(Ie), Re =
944
962
  id: He(t),
945
963
  edge: "after",
946
964
  nextSectionId: r
947
- } : Le(t) ? {
965
+ } : $(t) ? {
948
966
  kind: "section",
949
967
  id: Re(t),
950
- edge: Le(e) ? i : "inside"
951
- } : Le(e) ? null : {
968
+ edge: $(e) ? i : "inside"
969
+ } : $(e) ? null : {
952
970
  kind: "node",
953
971
  id: t,
954
972
  edge: i
955
973
  };
956
974
  }, Ye = (e, t, n, r) => {
957
975
  let i = Re(t);
958
- if (n.kind !== "section" || n.edge === "inside" || n.id === i || !Ke(e, t, $(n.id), r)) return null;
976
+ if (n.kind !== "section" || n.edge === "inside" || n.id === i || !Ke(e, t, Le(n.id), r)) return null;
959
977
  let a = e.map((e) => e.id), o = a.filter((e) => e !== i);
960
978
  return o.splice(o.indexOf(n.id) + +(n.edge === "after"), 0, i), o.every((e, t) => e === a[t]) ? null : {
961
979
  kind: "section",
@@ -976,12 +994,12 @@ var Ie = "section:", $ = (e) => `${Ie}${e}`, Le = (e) => e.startsWith(Ie), Re =
976
994
  index: i.nodes.length
977
995
  };
978
996
  let a = e.find((e) => e.id === n.nextSectionId);
979
- return a && !a.label && a.canReorder !== !1 && Ke(e, t, $(a.id), r) ? {
997
+ return a && !a.label && a.canReorder !== !1 && Ke(e, t, Le(a.id), r) ? {
980
998
  sectionId: a.id,
981
999
  index: 0
982
1000
  } : void 0;
983
1001
  }, Ze = (e, t, n, r, i) => {
984
- if (Le(t)) return Ye(e, t, n, r);
1002
+ if ($(t)) return Ye(e, t, n, r);
985
1003
  let a = We(e, t);
986
1004
  if (!a || a.node.canReorder === !1 || !Ke(e, t, n.kind === "node" ? n.id : Be(n.id), r)) return null;
987
1005
  let o = Xe(e, t, n, r);
@@ -1018,7 +1036,7 @@ var Ie = "section:", $ = (e) => `${Ie}${e}`, Le = (e) => e.startsWith(Ie), Re =
1018
1036
  [o.sectionId]: c
1019
1037
  }
1020
1038
  };
1021
- }, Qe = (e) => Le(e) ? 2 : +!!Ve(e), $e = (e, t) => (n) => {
1039
+ }, Qe = (e) => $(e) ? 2 : +!!Ve(e), $e = (e, t) => (n) => {
1022
1040
  let r = String(n.active.id), i = (n) => Ke(e, r, String(n.id), t), a = n.pointerCoordinates && {
1023
1041
  x: n.collisionRect.left + n.collisionRect.width / 2,
1024
1042
  y: n.pointerCoordinates.y
@@ -1079,7 +1097,7 @@ var Ie = "section:", $ = (e) => `${Ie}${e}`, Le = (e) => e.startsWith(Ie), Re =
1079
1097
  if (t.edge === "inside") {
1080
1098
  let e = n.nodes.at(-1);
1081
1099
  return {
1082
- lineId: e ? e.id : $(n.id),
1100
+ lineId: e ? e.id : Le(n.id),
1083
1101
  edge: "after",
1084
1102
  groupId: ot(n)
1085
1103
  };
@@ -1088,7 +1106,7 @@ var Ie = "section:", $ = (e) => `${Ie}${e}`, Le = (e) => e.startsWith(Ie), Re =
1088
1106
  lineId: Be(n.id),
1089
1107
  edge: "middle"
1090
1108
  } : {
1091
- lineId: $(n.id),
1109
+ lineId: Le(n.id),
1092
1110
  edge: "before"
1093
1111
  };
1094
1112
  }, ct = {
@@ -1154,7 +1172,7 @@ var Ie = "section:", $ = (e) => `${Ie}${e}`, Le = (e) => e.startsWith(Ie), Re =
1154
1172
  let S = x, C, w;
1155
1173
  t[2] === i ? (C = t[3], w = t[4]) : (C = i.filter(vt), w = C.filter(yt).map(bt), t[2] = i, t[3] = C, t[4] = w);
1156
1174
  let T = w, E;
1157
- t[5] === n.id ? E = t[6] : (E = $(n.id), t[5] = n.id, t[6] = E);
1175
+ t[5] === n.id ? E = t[6] : (E = Le(n.id), t[5] = n.id, t[6] = E);
1158
1176
  let D = n.canReorder === !1, O = y?.groupId === n.id, k;
1159
1177
  t[7] !== o || t[8] !== b || t[9] !== a || t[10] !== S || t[11] !== y || t[12] !== u || t[13] !== c || t[14] !== C || t[15] !== d || t[16] !== v || t[17] !== _ || t[18] !== g || t[19] !== s || t[20] !== T ? (k = (e) => /* @__PURE__ */ h(p, { children: [
1160
1178
  S && S.kind === "section-header" ? /* @__PURE__ */ m(r, {
@@ -1204,7 +1222,7 @@ var Ie = "section:", $ = (e) => `${Ie}${e}`, Le = (e) => e.startsWith(Ie), Re =
1204
1222
  highlighted: O,
1205
1223
  children: k
1206
1224
  }), t[22] = y, t[23] = E, t[24] = D, t[25] = O, t[26] = k, t[27] = A) : A = t[27], A;
1207
- }, pt = (e) => /* @__PURE__ */ m(je, {
1225
+ }, pt = (e) => /* @__PURE__ */ m(Q, {
1208
1226
  sectionId: e.sectionId,
1209
1227
  node: e.node,
1210
1228
  level: e.level,
@@ -1357,7 +1375,7 @@ function bt(e) {
1357
1375
  }
1358
1376
  function xt() {}
1359
1377
  function St(e) {
1360
- return $(e.id);
1378
+ return Le(e.id);
1361
1379
  }
1362
1380
  //#endregion
1363
1381
  //#region src/components/tree-list/use-tree-list-keyboard-navigation.ts
@@ -1440,7 +1458,7 @@ var Ct = (e, t) => e ? [...e.querySelectorAll("[data-tree-list-focus-id]")].find
1440
1458
  onFocus: () => c(t.key),
1441
1459
  onToggle: () => u?.(t.sectionId),
1442
1460
  onContextMenu: f
1443
- }) : t.kind === "section-empty" ? t.emptyState ?? null : /* @__PURE__ */ m(je, {
1461
+ }) : t.kind === "section-empty" ? t.emptyState ?? null : /* @__PURE__ */ m(Q, {
1444
1462
  sectionId: t.sectionId,
1445
1463
  node: t.node,
1446
1464
  level: t.level,
@@ -1580,7 +1598,7 @@ var Ct = (e, t) => e ? [...e.querySelectorAll("[data-tree-list-focus-id]")].find
1580
1598
  canMove: e.canMove
1581
1599
  }) : /* @__PURE__ */ m(Mt, { ...e }), t[0] = e, t[1] = n);
1582
1600
  let r = n, i;
1583
- t[2] !== r || t[3] !== e.onMoveNode ? (i = /* @__PURE__ */ m(ke, {
1601
+ t[2] !== r || t[3] !== e.onMoveNode ? (i = /* @__PURE__ */ m(Ae, {
1584
1602
  onMoveNode: e.onMoveNode,
1585
1603
  children: r
1586
1604
  }), t[2] = r, t[3] = e.onMoveNode, t[4] = i) : i = t[4];
@@ -1595,4 +1613,4 @@ var Ct = (e, t) => e ? [...e.querySelectorAll("[data-tree-list-focus-id]")].find
1595
1613
  //#endregion
1596
1614
  export { at as n, fe as r, Nt as t };
1597
1615
 
1598
- //# sourceMappingURL=tree-list-WhISG-cz.js.map
1616
+ //# sourceMappingURL=tree-list-BNZwjQZA.js.map