react-resizable-panels 4.5.5 → 4.5.7

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.
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as Q } from "react/jsx-runtime";
3
- import { useState as ee, useCallback as Z, useId as nt, useLayoutEffect as Te, useEffect as Oe, useRef as k, createContext as ot, useImperativeHandle as Ae, useMemo as _e, useSyncExternalStore as it, useContext as rt } from "react";
4
- function b(e, t = "Assertion error") {
3
+ import { useState as ee, useCallback as Z, useId as ot, useLayoutEffect as Oe, useEffect as Ae, useRef as G, createContext as it, useImperativeHandle as _e, useMemo as Ne, useSyncExternalStore as rt, useContext as st } from "react";
4
+ function z(e, t = "Assertion error") {
5
5
  if (!e)
6
6
  throw Error(t);
7
7
  }
@@ -13,21 +13,21 @@ function K({
13
13
  }
14
14
  function de(e, t) {
15
15
  return Array.from(t).sort(
16
- e === "horizontal" ? st : at
16
+ e === "horizontal" ? at : lt
17
17
  );
18
18
  }
19
- function st(e, t) {
19
+ function at(e, t) {
20
20
  const n = e.element.offsetLeft - t.element.offsetLeft;
21
21
  return n !== 0 ? n : e.element.offsetWidth - t.element.offsetWidth;
22
22
  }
23
- function at(e, t) {
23
+ function lt(e, t) {
24
24
  const n = e.element.offsetTop - t.element.offsetTop;
25
25
  return n !== 0 ? n : e.element.offsetHeight - t.element.offsetHeight;
26
26
  }
27
- function Ne(e) {
27
+ function Fe(e) {
28
28
  return e !== null && typeof e == "object" && "nodeType" in e && e.nodeType === Node.ELEMENT_NODE;
29
29
  }
30
- function Fe(e, t) {
30
+ function $e(e, t) {
31
31
  return {
32
32
  x: e.x >= t.left && e.x <= t.right ? 0 : Math.min(
33
33
  Math.abs(e.x - t.left),
@@ -39,7 +39,7 @@ function Fe(e, t) {
39
39
  )
40
40
  };
41
41
  }
42
- function lt({
42
+ function ut({
43
43
  orientation: e,
44
44
  rects: t,
45
45
  targetRect: n
@@ -50,37 +50,37 @@ function lt({
50
50
  };
51
51
  let i, r = Number.MAX_VALUE;
52
52
  for (const l of t) {
53
- const { x: s, y: a } = Fe(o, l), u = e === "horizontal" ? s : a;
53
+ const { x: s, y: a } = $e(o, l), u = e === "horizontal" ? s : a;
54
54
  u < r && (r = u, i = l);
55
55
  }
56
- return b(i, "No rect found"), i;
56
+ return z(i, "No rect found"), i;
57
57
  }
58
58
  let ie;
59
- function ut() {
59
+ function ct() {
60
60
  return ie === void 0 && (typeof matchMedia == "function" ? ie = !!matchMedia("(pointer:coarse)").matches : ie = !1), ie;
61
61
  }
62
- function $e(e) {
62
+ function He(e) {
63
63
  const { element: t, orientation: n, panels: o, separators: i } = e, r = de(
64
64
  n,
65
- Array.from(t.children).filter(Ne).map((c) => ({ element: c }))
65
+ Array.from(t.children).filter(Fe).map((c) => ({ element: c }))
66
66
  ).map(({ element: c }) => c), l = [];
67
67
  let s = !1, a, u = [];
68
68
  for (const c of r)
69
69
  if (c.hasAttribute("data-panel")) {
70
- const h = o.find(
71
- (S) => S.element === c
70
+ const m = o.find(
71
+ (y) => y.element === c
72
72
  );
73
- if (h) {
73
+ if (m) {
74
74
  if (a) {
75
- const S = a.element.getBoundingClientRect(), m = c.getBoundingClientRect();
75
+ const y = a.element.getBoundingClientRect(), h = c.getBoundingClientRect();
76
76
  let f;
77
77
  if (s) {
78
- const d = n === "horizontal" ? new DOMRect(S.right, S.top, 0, S.height) : new DOMRect(
79
- S.left,
80
- S.bottom,
81
- S.width,
78
+ const d = n === "horizontal" ? new DOMRect(y.right, y.top, 0, y.height) : new DOMRect(
79
+ y.left,
80
+ y.bottom,
81
+ y.width,
82
82
  0
83
- ), p = n === "horizontal" ? new DOMRect(m.left, m.top, 0, m.height) : new DOMRect(m.left, m.top, m.width, 0);
83
+ ), p = n === "horizontal" ? new DOMRect(h.left, h.top, 0, h.height) : new DOMRect(h.left, h.top, h.width, 0);
84
84
  switch (u.length) {
85
85
  case 0: {
86
86
  f = [
@@ -90,14 +90,14 @@ function $e(e) {
90
90
  break;
91
91
  }
92
92
  case 1: {
93
- const g = u[0], v = lt({
93
+ const g = u[0], v = ut({
94
94
  orientation: n,
95
- rects: [S, m],
95
+ rects: [y, h],
96
96
  targetRect: g.element.getBoundingClientRect()
97
97
  });
98
98
  f = [
99
99
  g,
100
- v === S ? p : d
100
+ v === y ? p : d
101
101
  ];
102
102
  break;
103
103
  }
@@ -109,20 +109,20 @@ function $e(e) {
109
109
  } else
110
110
  u.length ? f = u : f = [
111
111
  n === "horizontal" ? new DOMRect(
112
- S.right,
113
- m.top,
114
- m.left - S.right,
115
- m.height
112
+ y.right,
113
+ h.top,
114
+ h.left - y.right,
115
+ h.height
116
116
  ) : new DOMRect(
117
- m.left,
118
- S.bottom,
119
- m.width,
120
- m.top - S.bottom
117
+ h.left,
118
+ y.bottom,
119
+ h.width,
120
+ h.top - y.bottom
121
121
  )
122
122
  ];
123
123
  for (const d of f) {
124
124
  let p = "width" in d ? d : d.element.getBoundingClientRect();
125
- const g = ut() ? e.resizeTargetMinimumSize.coarse : e.resizeTargetMinimumSize.fine;
125
+ const g = ct() ? e.resizeTargetMinimumSize.coarse : e.resizeTargetMinimumSize.fine;
126
126
  if (p.width < g) {
127
127
  const v = g - p.width;
128
128
  p = new DOMRect(
@@ -144,38 +144,38 @@ function $e(e) {
144
144
  l.push({
145
145
  group: e,
146
146
  groupSize: K({ group: e }),
147
- panels: [a, h],
147
+ panels: [a, m],
148
148
  separator: "width" in d ? void 0 : d,
149
149
  rect: p
150
150
  });
151
151
  }
152
152
  }
153
- s = !1, a = h, u = [];
153
+ s = !1, a = m, u = [];
154
154
  }
155
155
  } else if (c.hasAttribute("data-separator")) {
156
- const h = i.find(
157
- (S) => S.element === c
156
+ const m = i.find(
157
+ (y) => y.element === c
158
158
  );
159
- h ? u.push(h) : (a = void 0, u = []);
159
+ m ? u.push(m) : (a = void 0, u = []);
160
160
  } else
161
161
  s = !0;
162
162
  return l;
163
163
  }
164
- function ct(e, t) {
164
+ function ft(e, t) {
165
165
  const n = getComputedStyle(e), o = parseFloat(n.fontSize);
166
166
  return t * o;
167
167
  }
168
- function ft(e, t) {
168
+ function dt(e, t) {
169
169
  const n = getComputedStyle(e.ownerDocument.body), o = parseFloat(n.fontSize);
170
170
  return t * o;
171
171
  }
172
- function dt(e) {
172
+ function pt(e) {
173
173
  return e / 100 * window.innerHeight;
174
174
  }
175
- function pt(e) {
175
+ function ht(e) {
176
176
  return e / 100 * window.innerWidth;
177
177
  }
178
- function ht(e) {
178
+ function mt(e) {
179
179
  switch (typeof e) {
180
180
  case "number":
181
181
  return [e, "px"];
@@ -191,7 +191,7 @@ function re({
191
191
  styleProp: n
192
192
  }) {
193
193
  let o;
194
- const [i, r] = ht(n);
194
+ const [i, r] = mt(n);
195
195
  switch (r) {
196
196
  case "%": {
197
197
  o = i / 100 * e;
@@ -202,25 +202,25 @@ function re({
202
202
  break;
203
203
  }
204
204
  case "rem": {
205
- o = ft(t, i);
205
+ o = dt(t, i);
206
206
  break;
207
207
  }
208
208
  case "em": {
209
- o = ct(t, i);
209
+ o = ft(t, i);
210
210
  break;
211
211
  }
212
212
  case "vh": {
213
- o = dt(i);
213
+ o = pt(i);
214
214
  break;
215
215
  }
216
216
  case "vw": {
217
- o = pt(i);
217
+ o = ht(i);
218
218
  break;
219
219
  }
220
220
  }
221
221
  return o;
222
222
  }
223
- function T(e) {
223
+ function D(e) {
224
224
  return parseFloat(e.toFixed(3));
225
225
  }
226
226
  function ve(e) {
@@ -241,7 +241,7 @@ function ve(e) {
241
241
  panelElement: i,
242
242
  styleProp: r.collapsedSize
243
243
  });
244
- l = T(c / n * 100);
244
+ l = D(c / n * 100);
245
245
  }
246
246
  let s;
247
247
  if (r.defaultSize !== void 0) {
@@ -250,7 +250,7 @@ function ve(e) {
250
250
  panelElement: i,
251
251
  styleProp: r.defaultSize
252
252
  });
253
- s = T(c / n * 100);
253
+ s = D(c / n * 100);
254
254
  }
255
255
  let a = 0;
256
256
  if (r.minSize !== void 0) {
@@ -259,7 +259,7 @@ function ve(e) {
259
259
  panelElement: i,
260
260
  styleProp: r.minSize
261
261
  });
262
- a = T(c / n * 100);
262
+ a = D(c / n * 100);
263
263
  }
264
264
  let u = 100;
265
265
  if (r.maxSize !== void 0) {
@@ -268,7 +268,7 @@ function ve(e) {
268
268
  panelElement: i,
269
269
  styleProp: r.maxSize
270
270
  });
271
- u = T(c / n * 100);
271
+ u = D(c / n * 100);
272
272
  }
273
273
  return {
274
274
  collapsedSize: l,
@@ -280,7 +280,7 @@ function ve(e) {
280
280
  };
281
281
  });
282
282
  }
283
- class mt {
283
+ class gt {
284
284
  #e = {};
285
285
  addListener(t, n) {
286
286
  const o = this.#e[t];
@@ -320,7 +320,7 @@ class mt {
320
320
  }
321
321
  }
322
322
  function R(e, t, n = 0) {
323
- return Math.abs(T(e) - T(t)) <= n;
323
+ return Math.abs(D(e) - D(t)) <= n;
324
324
  }
325
325
  let I = {
326
326
  cursorFlags: 0,
@@ -329,8 +329,8 @@ let I = {
329
329
  },
330
330
  mountedGroups: /* @__PURE__ */ new Map()
331
331
  };
332
- const F = new mt();
333
- function G() {
332
+ const F = new gt();
333
+ function E() {
334
334
  return I;
335
335
  }
336
336
  function M(e) {
@@ -359,13 +359,13 @@ function M(e) {
359
359
  });
360
360
  }), F.emit("mountedGroupsChange", I.mountedGroups)), I;
361
361
  }
362
- function gt(e, t, n) {
362
+ function yt(e, t, n) {
363
363
  let o, i = {
364
364
  x: 1 / 0,
365
365
  y: 1 / 0
366
366
  };
367
367
  for (const r of t) {
368
- const l = Fe(n, r.rect);
368
+ const l = $e(n, r.rect);
369
369
  switch (e) {
370
370
  case "horizontal": {
371
371
  l.x <= i.x && (o = r, i = l);
@@ -382,10 +382,10 @@ function gt(e, t, n) {
382
382
  hitRegion: o
383
383
  } : void 0;
384
384
  }
385
- function yt(e) {
385
+ function St(e) {
386
386
  return e !== null && typeof e == "object" && "nodeType" in e && e.nodeType === Node.DOCUMENT_FRAGMENT_NODE;
387
387
  }
388
- function St(e, t) {
388
+ function vt(e, t) {
389
389
  if (e === t) throw new Error("Cannot compare node with itself");
390
390
  const n = {
391
391
  a: be(e),
@@ -394,7 +394,7 @@ function St(e, t) {
394
394
  let o;
395
395
  for (; n.a.at(-1) === n.b.at(-1); )
396
396
  o = n.a.pop(), n.b.pop();
397
- b(
397
+ z(
398
398
  o,
399
399
  "Stacking order can only be calculated for elements with a common ancestor"
400
400
  );
@@ -416,20 +416,20 @@ function St(e, t) {
416
416
  }
417
417
  return Math.sign(i.a - i.b);
418
418
  }
419
- const vt = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
420
- function xt(e) {
421
- const t = getComputedStyle(He(e) ?? e).display;
419
+ const xt = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
420
+ function zt(e) {
421
+ const t = getComputedStyle(je(e) ?? e).display;
422
422
  return t === "flex" || t === "inline-flex";
423
423
  }
424
- function zt(e) {
424
+ function bt(e) {
425
425
  const t = getComputedStyle(e);
426
- return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" || xt(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" || vt.test(t.willChange) || t.webkitOverflowScrolling === "touch");
426
+ return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" || zt(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" || xt.test(t.willChange) || t.webkitOverflowScrolling === "touch");
427
427
  }
428
428
  function xe(e) {
429
429
  let t = e.length;
430
430
  for (; t--; ) {
431
431
  const n = e[t];
432
- if (b(n, "Missing node"), zt(n)) return n;
432
+ if (z(n, "Missing node"), bt(n)) return n;
433
433
  }
434
434
  return null;
435
435
  }
@@ -439,29 +439,29 @@ function ze(e) {
439
439
  function be(e) {
440
440
  const t = [];
441
441
  for (; e; )
442
- t.push(e), e = He(e);
442
+ t.push(e), e = je(e);
443
443
  return t;
444
444
  }
445
- function He(e) {
445
+ function je(e) {
446
446
  const { parentNode: t } = e;
447
- return yt(t) ? t.host : t;
447
+ return St(t) ? t.host : t;
448
448
  }
449
- function bt(e, t) {
449
+ function wt(e, t) {
450
450
  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;
451
451
  }
452
- function wt({
452
+ function Lt({
453
453
  groupElement: e,
454
454
  hitRegion: t,
455
455
  pointerEventTarget: n
456
456
  }) {
457
- if (!Ne(n) || n.contains(e) || e.contains(n))
457
+ if (!Fe(n) || n.contains(e) || e.contains(n))
458
458
  return !0;
459
- if (St(n, e) > 0) {
459
+ if (vt(n, e) > 0) {
460
460
  let o = n;
461
461
  for (; o; ) {
462
462
  if (o.contains(e))
463
463
  return !0;
464
- if (bt(o.getBoundingClientRect(), t))
464
+ if (wt(o.getBoundingClientRect(), t))
465
465
  return !1;
466
466
  o = o.parentElement;
467
467
  }
@@ -473,18 +473,18 @@ function pe(e, t) {
473
473
  return t.forEach((o, i) => {
474
474
  if (i.disabled)
475
475
  return;
476
- const r = $e(i), l = gt(i.orientation, r, {
476
+ const r = He(i), l = yt(i.orientation, r, {
477
477
  x: e.clientX,
478
478
  y: e.clientY
479
479
  });
480
- l && l.distance.x <= 0 && l.distance.y <= 0 && wt({
480
+ l && l.distance.x <= 0 && l.distance.y <= 0 && Lt({
481
481
  groupElement: i.element,
482
482
  hitRegion: l.hitRegion.rect,
483
483
  pointerEventTarget: e.target
484
484
  }) && n.push(l.hitRegion);
485
485
  }), n;
486
486
  }
487
- function Lt(e, t) {
487
+ function Ct(e, t) {
488
488
  if (e.length !== t.length)
489
489
  return !1;
490
490
  for (let n = 0; n < e.length; n++)
@@ -492,7 +492,7 @@ function Lt(e, t) {
492
492
  return !1;
493
493
  return !0;
494
494
  }
495
- function D(e, t) {
495
+ function O(e, t) {
496
496
  return R(e, t) ? 0 : e > t ? 1 : -1;
497
497
  }
498
498
  function B({
@@ -505,13 +505,13 @@ function B({
505
505
  maxSize: i = 100,
506
506
  minSize: r = 0
507
507
  } = e;
508
- if (D(t, r) < 0)
508
+ if (O(t, r) < 0)
509
509
  if (o) {
510
510
  const l = (n + r) / 2;
511
- D(t, l) < 0 ? t = n : t = r;
511
+ O(t, l) < 0 ? t = n : t = r;
512
512
  } else
513
513
  t = r;
514
- return t = Math.min(i, t), t = T(t), t;
514
+ return t = Math.min(i, t), t = D(t), t;
515
515
  }
516
516
  function te({
517
517
  delta: e,
@@ -524,13 +524,13 @@ function te({
524
524
  if (R(e, 0))
525
525
  return t;
526
526
  const l = Object.values(t), s = Object.values(i), a = [...l], [u, c] = o;
527
- b(u != null, "Invalid first pivot index"), b(c != null, "Invalid second pivot index");
528
- let h = 0;
527
+ z(u != null, "Invalid first pivot index"), z(c != null, "Invalid second pivot index");
528
+ let m = 0;
529
529
  switch (r) {
530
530
  case "keyboard": {
531
531
  {
532
532
  const f = e < 0 ? c : u, d = n[f];
533
- b(
533
+ z(
534
534
  d,
535
535
  `Panel constraints not found for index ${f}`
536
536
  );
@@ -541,18 +541,18 @@ function te({
541
541
  } = d;
542
542
  if (g) {
543
543
  const x = l[f];
544
- if (b(
544
+ if (z(
545
545
  x != null,
546
546
  `Previous layout not found for panel index ${f}`
547
547
  ), R(x, p)) {
548
- const y = v - x;
549
- D(y, Math.abs(e)) > 0 && (e = e < 0 ? 0 - y : y);
548
+ const S = v - x;
549
+ O(S, Math.abs(e)) > 0 && (e = e < 0 ? 0 - S : S);
550
550
  }
551
551
  }
552
552
  }
553
553
  {
554
554
  const f = e < 0 ? u : c, d = n[f];
555
- b(
555
+ z(
556
556
  d,
557
557
  `No panel constraints found for index ${f}`
558
558
  );
@@ -563,12 +563,12 @@ function te({
563
563
  } = d;
564
564
  if (g) {
565
565
  const x = l[f];
566
- if (b(
566
+ if (z(
567
567
  x != null,
568
568
  `Previous layout not found for panel index ${f}`
569
569
  ), R(x, v)) {
570
- const y = x - p;
571
- D(y, Math.abs(e)) > 0 && (e = e < 0 ? 0 - y : y);
570
+ const S = x - p;
571
+ O(S, Math.abs(e)) > 0 && (e = e < 0 ? 0 - S : S);
572
572
  }
573
573
  }
574
574
  }
@@ -576,21 +576,19 @@ function te({
576
576
  }
577
577
  default: {
578
578
  const f = e < 0 ? c : u, d = n[f];
579
- b(
579
+ z(
580
580
  d,
581
581
  `Panel constraints not found for index ${f}`
582
582
  );
583
583
  const { collapsible: p, collapsedSize: g, minSize: v } = d;
584
- if (p) {
585
- const x = f === c;
584
+ if (p)
586
585
  if (e > 0) {
587
- const y = v - g, z = y / 2;
588
- D(e, v) < 0 && (e = D(e, z) <= 0 ? 0 : y);
586
+ const x = v - g, S = x / 2;
587
+ O(e, x) < 0 && (e = O(e, S) <= 0 ? 0 : x);
589
588
  } else {
590
- const y = v - g, z = 100 - y / 2;
591
- x ? D(Math.abs(e), v) < 0 && (e = D(100 + e, z) > 0 ? 0 : -y) : D(100 + e, v) < 0 && (e = D(100 + e, z) > 0 ? 0 : -y);
589
+ const x = v - g, S = 100 - x / 2;
590
+ O(Math.abs(e), x) < 0 && (e = O(100 + e, S) > 0 ? 0 : -x);
592
591
  }
593
- }
594
592
  break;
595
593
  }
596
594
  }
@@ -599,15 +597,15 @@ function te({
599
597
  let d = e < 0 ? c : u, p = 0;
600
598
  for (; ; ) {
601
599
  const v = l[d];
602
- b(
600
+ z(
603
601
  v != null,
604
602
  `Previous layout not found for panel index ${d}`
605
603
  );
606
- const y = B({
604
+ const S = B({
607
605
  panelConstraints: n[d],
608
606
  size: 100
609
607
  }) - v;
610
- if (p += y, d += f, d < 0 || d >= n.length)
608
+ if (p += S, d += f, d < 0 || d >= n.length)
611
609
  break;
612
610
  }
613
611
  const g = Math.min(Math.abs(e), Math.abs(p));
@@ -616,8 +614,8 @@ function te({
616
614
  {
617
615
  let d = e < 0 ? u : c;
618
616
  for (; d >= 0 && d < n.length; ) {
619
- const p = Math.abs(e) - Math.abs(h), g = l[d];
620
- b(
617
+ const p = Math.abs(e) - Math.abs(m), g = l[d];
618
+ z(
621
619
  g != null,
622
620
  `Previous layout not found for panel index ${d}`
623
621
  );
@@ -625,57 +623,57 @@ function te({
625
623
  panelConstraints: n[d],
626
624
  size: v
627
625
  });
628
- if (!R(g, x) && (h += g - x, a[d] = x, h.toFixed(3).localeCompare(Math.abs(e).toFixed(3), void 0, {
626
+ if (!R(g, x) && (m += g - x, a[d] = x, m.toFixed(3).localeCompare(Math.abs(e).toFixed(3), void 0, {
629
627
  numeric: !0
630
628
  }) >= 0))
631
629
  break;
632
630
  e < 0 ? d-- : d++;
633
631
  }
634
632
  }
635
- if (Lt(s, a))
633
+ if (Ct(s, a))
636
634
  return i;
637
635
  {
638
636
  const f = e < 0 ? c : u, d = l[f];
639
- b(
637
+ z(
640
638
  d != null,
641
639
  `Previous layout not found for panel index ${f}`
642
640
  );
643
- const p = d + h, g = B({
641
+ const p = d + m, g = B({
644
642
  panelConstraints: n[f],
645
643
  size: p
646
644
  });
647
645
  if (a[f] = g, !R(g, p)) {
648
- let v = p - g, y = e < 0 ? c : u;
649
- for (; y >= 0 && y < n.length; ) {
650
- const z = a[y];
651
- b(
652
- z != null,
653
- `Previous layout not found for panel index ${y}`
646
+ let v = p - g, S = e < 0 ? c : u;
647
+ for (; S >= 0 && S < n.length; ) {
648
+ const w = a[S];
649
+ z(
650
+ w != null,
651
+ `Previous layout not found for panel index ${S}`
654
652
  );
655
- const C = z + v, P = B({
656
- panelConstraints: n[y],
653
+ const C = w + v, P = B({
654
+ panelConstraints: n[S],
657
655
  size: C
658
656
  });
659
- if (R(z, P) || (v -= P - z, a[y] = P), R(v, 0))
657
+ if (R(w, P) || (v -= P - w, a[S] = P), R(v, 0))
660
658
  break;
661
- e > 0 ? y-- : y++;
659
+ e > 0 ? S-- : S++;
662
660
  }
663
661
  }
664
662
  }
665
- const S = Object.values(a).reduce(
663
+ const y = Object.values(a).reduce(
666
664
  (f, d) => d + f,
667
665
  0
668
666
  );
669
- if (!R(S, 100, 0.1))
667
+ if (!R(y, 100, 0.1))
670
668
  return i;
671
- const m = Object.keys(i);
672
- return a.reduce((f, d, p) => (f[m[p]] = d, f), {});
669
+ const h = Object.keys(i);
670
+ return a.reduce((f, d, p) => (f[h[p]] = d, f), {});
673
671
  }
674
672
  function $(e, t) {
675
673
  if (Object.keys(e).length !== Object.keys(t).length)
676
674
  return !1;
677
675
  for (const n in e)
678
- if (t[n] === void 0 || D(e[n], t[n]) !== 0)
676
+ if (t[n] === void 0 || O(e[n], t[n]) !== 0)
679
677
  return !1;
680
678
  return !0;
681
679
  }
@@ -694,14 +692,14 @@ function H({
694
692
  if (!R(i, 100) && o.length > 0)
695
693
  for (let s = 0; s < t.length; s++) {
696
694
  const a = o[s];
697
- b(a != null, `No layout data found for index ${s}`);
695
+ z(a != null, `No layout data found for index ${s}`);
698
696
  const u = 100 / i * a;
699
697
  o[s] = u;
700
698
  }
701
699
  let r = 0;
702
700
  for (let s = 0; s < t.length; s++) {
703
701
  const a = o[s];
704
- b(a != null, `No layout data found for index ${s}`);
702
+ z(a != null, `No layout data found for index ${s}`);
705
703
  const u = B({
706
704
  panelConstraints: t[s],
707
705
  size: a
@@ -711,7 +709,7 @@ function H({
711
709
  if (!R(r, 0))
712
710
  for (let s = 0; s < t.length; s++) {
713
711
  const a = o[s];
714
- b(a != null, `No layout data found for index ${s}`);
712
+ z(a != null, `No layout data found for index ${s}`);
715
713
  const u = a + r, c = B({
716
714
  panelConstraints: t[s],
717
715
  size: u
@@ -722,19 +720,19 @@ function H({
722
720
  const l = Object.keys(e);
723
721
  return o.reduce((s, a, u) => (s[l[u]] = a, s), {});
724
722
  }
725
- function je({
723
+ function Ve({
726
724
  groupId: e,
727
725
  panelId: t
728
726
  }) {
729
727
  const n = () => {
730
- const { mountedGroups: s } = G();
728
+ const { mountedGroups: s } = E();
731
729
  for (const [
732
730
  a,
733
731
  {
734
732
  defaultLayoutDeferred: u,
735
733
  derivedPanelConstraints: c,
736
- layout: h,
737
- separatorToPanels: S
734
+ layout: m,
735
+ separatorToPanels: y
738
736
  }
739
737
  ] of s)
740
738
  if (a.id === e)
@@ -742,8 +740,8 @@ function je({
742
740
  defaultLayoutDeferred: u,
743
741
  derivedPanelConstraints: c,
744
742
  group: a,
745
- layout: h,
746
- separatorToPanels: S
743
+ layout: m,
744
+ separatorToPanels: y
747
745
  };
748
746
  throw Error(`Group ${e} not found`);
749
747
  }, o = () => {
@@ -770,26 +768,26 @@ function je({
770
768
  const {
771
769
  defaultLayoutDeferred: u,
772
770
  derivedPanelConstraints: c,
773
- group: h,
774
- layout: S,
775
- separatorToPanels: m
776
- } = n(), f = h.panels.findIndex((v) => v.id === t), d = f === h.panels.length - 1, p = te({
771
+ group: m,
772
+ layout: y,
773
+ separatorToPanels: h
774
+ } = n(), f = m.panels.findIndex((v) => v.id === t), d = f === m.panels.length - 1, p = te({
777
775
  delta: d ? a - s : s - a,
778
- initialLayout: S,
776
+ initialLayout: y,
779
777
  panelConstraints: c,
780
778
  pivotIndices: d ? [f - 1, f] : [f, f + 1],
781
- prevLayout: S,
779
+ prevLayout: y,
782
780
  trigger: "imperative-api"
783
781
  }), g = H({
784
782
  layout: p,
785
783
  panelConstraints: c
786
784
  });
787
- $(S, g) || M((v) => ({
788
- mountedGroups: new Map(v.mountedGroups).set(h, {
785
+ $(y, g) || M((v) => ({
786
+ mountedGroups: new Map(v.mountedGroups).set(m, {
789
787
  defaultLayoutDeferred: u,
790
788
  derivedPanelConstraints: c,
791
789
  layout: g,
792
- separatorToPanels: m
790
+ separatorToPanels: h
793
791
  })
794
792
  }));
795
793
  };
@@ -799,10 +797,10 @@ function je({
799
797
  s && c !== a && (u.expandToSize = c, l(a));
800
798
  },
801
799
  expand: () => {
802
- const { collapsible: s, collapsedSize: a, minSize: u } = o(), { mutableValues: c } = i(), h = r();
803
- if (s && h === a) {
804
- let S = c.expandToSize ?? u;
805
- S === 0 && (S = 1), l(S);
800
+ const { collapsible: s, collapsedSize: a, minSize: u } = o(), { mutableValues: c } = i(), m = r();
801
+ if (s && m === a) {
802
+ let y = c.expandToSize ?? u;
803
+ y === 0 && (y = 1), l(y);
806
804
  }
807
805
  },
808
806
  getSize: () => {
@@ -821,8 +819,8 @@ function je({
821
819
  let u;
822
820
  switch (typeof s) {
823
821
  case "number": {
824
- const { group: c } = n(), h = K({ group: c });
825
- u = T(s / h * 100);
822
+ const { group: c } = n(), m = K({ group: c });
823
+ u = D(s / m * 100);
826
824
  break;
827
825
  }
828
826
  case "string": {
@@ -838,14 +836,14 @@ function je({
838
836
  function we(e) {
839
837
  if (e.defaultPrevented)
840
838
  return;
841
- const { mountedGroups: t } = G();
839
+ const { mountedGroups: t } = E();
842
840
  pe(e, t).forEach((o) => {
843
841
  if (o.separator) {
844
842
  const i = o.panels.find(
845
843
  (r) => r.panelConstraints.defaultSize !== void 0
846
844
  );
847
845
  if (i) {
848
- const r = i.panelConstraints.defaultSize, l = je({
846
+ const r = i.panelConstraints.defaultSize, l = Ve({
849
847
  groupId: o.group.id,
850
848
  panelId: i.id
851
849
  });
@@ -855,7 +853,7 @@ function we(e) {
855
853
  });
856
854
  }
857
855
  function ae(e) {
858
- const { mountedGroups: t } = G();
856
+ const { mountedGroups: t } = E();
859
857
  for (const [n] of t)
860
858
  if (n.separators.some(
861
859
  (o) => o.element === e
@@ -863,11 +861,11 @@ function ae(e) {
863
861
  return n;
864
862
  throw Error("Could not find parent Group for separator element");
865
863
  }
866
- function Ve({
864
+ function Ue({
867
865
  groupId: e
868
866
  }) {
869
867
  const t = () => {
870
- const { mountedGroups: n } = G();
868
+ const { mountedGroups: n } = E();
871
869
  for (const [o, i] of n)
872
870
  if (o.id === e)
873
871
  return { group: o, ...i };
@@ -900,18 +898,18 @@ function Ve({
900
898
  }
901
899
  };
902
900
  }
903
- function Ue(e) {
904
- const { mountedGroups: t } = G(), n = t.get(e);
905
- return b(n, `Mounted Group ${e.id} not found`), n;
901
+ function We(e) {
902
+ const { mountedGroups: t } = E(), n = t.get(e);
903
+ return z(n, `Mounted Group ${e.id} not found`), n;
906
904
  }
907
905
  function N(e, t) {
908
- const n = ae(e), o = Ue(n), i = n.separators.find(
909
- (h) => h.element === e
906
+ const n = ae(e), o = We(n), i = n.separators.find(
907
+ (m) => m.element === e
910
908
  );
911
- b(i, "Matching separator not found");
909
+ z(i, "Matching separator not found");
912
910
  const r = o.separatorToPanels.get(i);
913
- b(r, "Matching panels not found");
914
- const l = r.map((h) => n.panels.indexOf(h)), a = Ve({ groupId: n.id }).getLayout(), u = te({
911
+ z(r, "Matching panels not found");
912
+ const l = r.map((m) => n.panels.indexOf(m)), a = Ue({ groupId: n.id }).getLayout(), u = te({
915
913
  delta: t,
916
914
  initialLayout: a,
917
915
  panelConstraints: o.derivedPanelConstraints,
@@ -922,8 +920,8 @@ function N(e, t) {
922
920
  layout: u,
923
921
  panelConstraints: o.derivedPanelConstraints
924
922
  });
925
- $(a, c) || M((h) => ({
926
- mountedGroups: new Map(h.mountedGroups).set(n, {
923
+ $(a, c) || M((m) => ({
924
+ mountedGroups: new Map(m.mountedGroups).set(n, {
927
925
  defaultLayoutDeferred: o.defaultLayoutDeferred,
928
926
  derivedPanelConstraints: o.derivedPanelConstraints,
929
927
  layout: c,
@@ -959,18 +957,18 @@ function Le(e) {
959
957
  }
960
958
  case "Enter": {
961
959
  e.preventDefault();
962
- const o = ae(t), { derivedPanelConstraints: i, layout: r, separatorToPanels: l } = Ue(o), s = o.separators.find(
963
- (h) => h.element === t
960
+ const o = ae(t), { derivedPanelConstraints: i, layout: r, separatorToPanels: l } = We(o), s = o.separators.find(
961
+ (m) => m.element === t
964
962
  );
965
- b(s, "Matching separator not found");
963
+ z(s, "Matching separator not found");
966
964
  const a = l.get(s);
967
- b(a, "Matching panels not found");
965
+ z(a, "Matching panels not found");
968
966
  const u = a[0], c = i.find(
969
- (h) => h.panelId === u.id
967
+ (m) => m.panelId === u.id
970
968
  );
971
- if (b(c, "Panel metadata not found"), c.collapsible) {
972
- const h = r[u.id], S = c.collapsedSize === h ? o.inMemoryLastExpandedPanelSizes[u.id] ?? c.minSize : c.collapsedSize;
973
- N(t, S - h);
969
+ if (z(c, "Panel metadata not found"), c.collapsible) {
970
+ const m = r[u.id], y = c.collapsedSize === m ? o.inMemoryLastExpandedPanelSizes[u.id] ?? c.minSize : c.collapsedSize;
971
+ N(t, y - m);
974
972
  }
975
973
  break;
976
974
  }
@@ -981,7 +979,7 @@ function Le(e) {
981
979
  ), r = Array.from(i).findIndex(
982
980
  (a) => a === e.currentTarget
983
981
  );
984
- b(r !== null, "Index not found");
982
+ z(r !== null, "Index not found");
985
983
  const l = e.shiftKey ? r > 0 ? r - 1 : i.length - 1 : r + 1 < i.length ? r + 1 : 0;
986
984
  i[l].focus();
987
985
  break;
@@ -997,7 +995,7 @@ function Ce(e) {
997
995
  return;
998
996
  if (e.pointerType === "mouse" && e.button > 0)
999
997
  return;
1000
- const { mountedGroups: t } = G(), n = pe(e, t), o = /* @__PURE__ */ new Map();
998
+ const { mountedGroups: t } = E(), n = pe(e, t), o = /* @__PURE__ */ new Map();
1001
999
  let i = !1;
1002
1000
  n.forEach((r) => {
1003
1001
  r.separator && (i || (i = !0, r.separator.element.focus()));
@@ -1012,13 +1010,13 @@ function Ce(e) {
1012
1010
  }
1013
1011
  }), n.length && e.preventDefault();
1014
1012
  }
1015
- const Ct = (e) => e, ce = () => {
1016
- }, We = 1, Be = 2, Ke = 4, Xe = 8, Pe = 3, Re = 12;
1013
+ const Pt = (e) => e, ce = () => {
1014
+ }, Be = 1, Ke = 2, Xe = 4, qe = 8, Pe = 3, Re = 12;
1017
1015
  let se;
1018
1016
  function Me() {
1019
1017
  return se === void 0 && (se = !1, typeof window < "u" && (window.navigator.userAgent.includes("Chrome") || window.navigator.userAgent.includes("Firefox")) && (se = !0)), se;
1020
1018
  }
1021
- function Pt({
1019
+ function Rt({
1022
1020
  cursorFlags: e,
1023
1021
  groups: t,
1024
1022
  state: n
@@ -1046,7 +1044,7 @@ function Pt({
1046
1044
  switch (n) {
1047
1045
  case "active": {
1048
1046
  if (e && Me()) {
1049
- const r = (e & We) !== 0, l = (e & Be) !== 0, s = (e & Ke) !== 0, a = (e & Xe) !== 0;
1047
+ const r = (e & Be) !== 0, l = (e & Ke) !== 0, s = (e & Xe) !== 0, a = (e & qe) !== 0;
1050
1048
  if (r)
1051
1049
  return s ? "se-resize" : a ? "ne-resize" : "e-resize";
1052
1050
  if (l)
@@ -1067,11 +1065,11 @@ function he(e) {
1067
1065
  return;
1068
1066
  let { prevStyle: t, styleSheet: n } = Ee.get(e) ?? {};
1069
1067
  n === void 0 && (n = new e.defaultView.CSSStyleSheet(), e.adoptedStyleSheets.push(n));
1070
- const { cursorFlags: o, interactionState: i } = G();
1068
+ const { cursorFlags: o, interactionState: i } = E();
1071
1069
  switch (i.state) {
1072
1070
  case "active":
1073
1071
  case "hover": {
1074
- const r = Pt({
1072
+ const r = Rt({
1075
1073
  cursorFlags: o,
1076
1074
  groups: i.hitRegions.map((s) => s.group),
1077
1075
  state: i.state
@@ -1091,7 +1089,7 @@ function he(e) {
1091
1089
  styleSheet: n
1092
1090
  });
1093
1091
  }
1094
- function qe({
1092
+ function Ye({
1095
1093
  document: e,
1096
1094
  event: t,
1097
1095
  hitRegions: n,
@@ -1103,33 +1101,33 @@ function qe({
1103
1101
  let s = 0;
1104
1102
  const a = new Map(i);
1105
1103
  n.forEach((c) => {
1106
- const { group: h, groupSize: S } = c, { disableCursor: m, orientation: f, panels: d } = h;
1104
+ const { group: m, groupSize: y } = c, { disableCursor: h, orientation: f, panels: d } = m;
1107
1105
  let p = 0;
1108
- r ? f === "horizontal" ? p = (t.clientX - r.x) / S * 100 : p = (t.clientY - r.y) / S * 100 : f === "horizontal" ? p = t.clientX < 0 ? -100 : 100 : p = t.clientY < 0 ? -100 : 100;
1109
- const g = o.get(h), {
1106
+ r ? f === "horizontal" ? p = (t.clientX - r.x) / y * 100 : p = (t.clientY - r.y) / y * 100 : f === "horizontal" ? p = t.clientX < 0 ? -100 : 100 : p = t.clientY < 0 ? -100 : 100;
1107
+ const g = o.get(m), {
1110
1108
  defaultLayoutDeferred: v,
1111
1109
  derivedPanelConstraints: x,
1112
- layout: y,
1113
- separatorToPanels: z
1114
- } = i.get(h) ?? { defaultLayoutDeferred: !1 };
1115
- if (x && g && y && z) {
1110
+ layout: S,
1111
+ separatorToPanels: w
1112
+ } = i.get(m) ?? { defaultLayoutDeferred: !1 };
1113
+ if (x && g && S && w) {
1116
1114
  const C = te({
1117
1115
  delta: p,
1118
1116
  initialLayout: g,
1119
1117
  panelConstraints: x,
1120
1118
  pivotIndices: c.panels.map((P) => d.indexOf(P)),
1121
- prevLayout: y,
1119
+ prevLayout: S,
1122
1120
  trigger: "mouse-or-touch"
1123
1121
  });
1124
- if ($(C, y)) {
1125
- if (p !== 0 && !m)
1122
+ if ($(C, S)) {
1123
+ if (p !== 0 && !h)
1126
1124
  switch (f) {
1127
1125
  case "horizontal": {
1128
- s |= p < 0 ? We : Be;
1126
+ s |= p < 0 ? Be : Ke;
1129
1127
  break;
1130
1128
  }
1131
1129
  case "vertical": {
1132
- s |= p < 0 ? Ke : Xe;
1130
+ s |= p < 0 ? Xe : qe;
1133
1131
  break;
1134
1132
  }
1135
1133
  }
@@ -1138,9 +1136,9 @@ function qe({
1138
1136
  defaultLayoutDeferred: v,
1139
1137
  derivedPanelConstraints: x,
1140
1138
  layout: C,
1141
- separatorToPanels: z
1139
+ separatorToPanels: w
1142
1140
  });
1143
- const P = c.group.panels.map(({ id: O }) => O).join(",");
1141
+ const P = c.group.panels.map(({ id: T }) => T).join(",");
1144
1142
  c.group.inMemoryLayouts[P] = C;
1145
1143
  }
1146
1144
  }
@@ -1152,10 +1150,10 @@ function qe({
1152
1150
  }), he(e);
1153
1151
  }
1154
1152
  function ke(e) {
1155
- const { cursorFlags: t, interactionState: n, mountedGroups: o } = G();
1153
+ const { cursorFlags: t, interactionState: n, mountedGroups: o } = E();
1156
1154
  switch (n.state) {
1157
1155
  case "active":
1158
- qe({
1156
+ Ye({
1159
1157
  document: e.currentTarget,
1160
1158
  event: e,
1161
1159
  hitRegions: n.hitRegions,
@@ -1168,7 +1166,7 @@ function ke(e) {
1168
1166
  function Ge(e) {
1169
1167
  if (e.defaultPrevented)
1170
1168
  return;
1171
- const { cursorFlags: t, interactionState: n, mountedGroups: o } = G();
1169
+ const { cursorFlags: t, interactionState: n, mountedGroups: o } = E();
1172
1170
  switch (n.state) {
1173
1171
  case "active": {
1174
1172
  if (
@@ -1185,7 +1183,7 @@ function Ge(e) {
1185
1183
  }));
1186
1184
  return;
1187
1185
  }
1188
- qe({
1186
+ Ye({
1189
1187
  document: e.currentTarget,
1190
1188
  event: e,
1191
1189
  hitRegions: n.hitRegions,
@@ -1213,11 +1211,24 @@ function Ge(e) {
1213
1211
  }
1214
1212
  }
1215
1213
  function Ie(e) {
1214
+ if (e.relatedTarget instanceof HTMLIFrameElement) {
1215
+ const { interactionState: t } = E();
1216
+ switch (t.state) {
1217
+ case "hover":
1218
+ M({
1219
+ interactionState: {
1220
+ state: "inactive"
1221
+ }
1222
+ });
1223
+ }
1224
+ }
1225
+ }
1226
+ function De(e) {
1216
1227
  if (e.defaultPrevented)
1217
1228
  return;
1218
1229
  if (e.pointerType === "mouse" && e.button > 0)
1219
1230
  return;
1220
- const { interactionState: t } = G();
1231
+ const { interactionState: t } = E();
1221
1232
  switch (t.state) {
1222
1233
  case "active":
1223
1234
  M({
@@ -1230,37 +1241,37 @@ function Ie(e) {
1230
1241
  })), e.preventDefault());
1231
1242
  }
1232
1243
  }
1233
- function De(e) {
1244
+ function Te(e) {
1234
1245
  let t = 0, n = 0;
1235
1246
  const o = {};
1236
1247
  for (const r of e)
1237
1248
  if (r.defaultSize !== void 0) {
1238
1249
  t++;
1239
- const l = T(r.defaultSize);
1250
+ const l = D(r.defaultSize);
1240
1251
  n += l, o[r.panelId] = l;
1241
1252
  } else
1242
1253
  o[r.panelId] = void 0;
1243
1254
  const i = e.length - t;
1244
1255
  if (i !== 0) {
1245
- const r = T((100 - n) / i);
1256
+ const r = D((100 - n) / i);
1246
1257
  for (const l of e)
1247
1258
  l.defaultSize === void 0 && (o[l.panelId] = r);
1248
1259
  }
1249
1260
  return o;
1250
1261
  }
1251
- function Rt(e, t, n) {
1262
+ function Mt(e, t, n) {
1252
1263
  if (!n[0])
1253
1264
  return;
1254
1265
  const i = e.panels.find((u) => u.element === t);
1255
1266
  if (!i || !i.onResize)
1256
1267
  return;
1257
1268
  const r = K({ group: e }), l = e.orientation === "horizontal" ? i.element.offsetWidth : i.element.offsetHeight, s = i.mutableValues.prevSize, a = {
1258
- asPercentage: T(l / r * 100),
1269
+ asPercentage: D(l / r * 100),
1259
1270
  inPixels: l
1260
1271
  };
1261
1272
  i.mutableValues.prevSize = a, i.onResize(a, i.id, s);
1262
1273
  }
1263
- function Mt(e, t) {
1274
+ function Et(e, t) {
1264
1275
  if (Object.keys(e).length !== Object.keys(t).length)
1265
1276
  return !1;
1266
1277
  for (const o in e)
@@ -1268,7 +1279,7 @@ function Mt(e, t) {
1268
1279
  return !1;
1269
1280
  return !0;
1270
1281
  }
1271
- function Et(e, t) {
1282
+ function kt(e, t) {
1272
1283
  const n = e.map((i) => i.id), o = Object.keys(t);
1273
1284
  if (n.length !== o.length)
1274
1285
  return !1;
@@ -1278,9 +1289,9 @@ function Et(e, t) {
1278
1289
  return !0;
1279
1290
  }
1280
1291
  const W = /* @__PURE__ */ new Map();
1281
- function kt(e) {
1292
+ function Gt(e) {
1282
1293
  let t = !0;
1283
- b(
1294
+ z(
1284
1295
  e.element.ownerDocument.defaultView,
1285
1296
  "Cannot register an unmounted Group"
1286
1297
  );
@@ -1292,21 +1303,21 @@ function kt(e) {
1292
1303
  if (K({ group: e }) === 0)
1293
1304
  return;
1294
1305
  M((x) => {
1295
- const y = x.mountedGroups.get(e);
1296
- if (y) {
1297
- const z = ve(e), C = y.defaultLayoutDeferred ? De(z) : y.layout, P = H({
1306
+ const S = x.mountedGroups.get(e);
1307
+ if (S) {
1308
+ const w = ve(e), C = S.defaultLayoutDeferred ? Te(w) : S.layout, P = H({
1298
1309
  layout: C,
1299
- panelConstraints: z
1310
+ panelConstraints: w
1300
1311
  });
1301
- return !y.defaultLayoutDeferred && $(C, P) && Mt(
1302
- y.derivedPanelConstraints,
1303
- z
1312
+ return !S.defaultLayoutDeferred && $(C, P) && Et(
1313
+ S.derivedPanelConstraints,
1314
+ w
1304
1315
  ) ? x : {
1305
1316
  mountedGroups: new Map(x.mountedGroups).set(e, {
1306
1317
  defaultLayoutDeferred: !1,
1307
- derivedPanelConstraints: z,
1318
+ derivedPanelConstraints: w,
1308
1319
  layout: P,
1309
- separatorToPanels: y.separatorToPanels
1320
+ separatorToPanels: S.separatorToPanels
1310
1321
  })
1311
1322
  };
1312
1323
  }
@@ -1314,73 +1325,73 @@ function kt(e) {
1314
1325
  });
1315
1326
  }
1316
1327
  } else
1317
- Rt(e, g, p);
1328
+ Mt(e, g, p);
1318
1329
  }
1319
1330
  });
1320
1331
  r.observe(e.element), e.panels.forEach((f) => {
1321
- b(
1332
+ z(
1322
1333
  !o.has(f.id),
1323
1334
  `Panel ids must be unique; id "${f.id}" was used more than once`
1324
1335
  ), o.add(f.id), f.onResize && r.observe(f.element);
1325
1336
  });
1326
1337
  const l = K({ group: e }), s = ve(e), a = e.panels.map(({ id: f }) => f).join(",");
1327
1338
  let u = e.defaultLayout;
1328
- u && (Et(e.panels, u) || (u = void 0));
1329
- const c = e.inMemoryLayouts[a] ?? u ?? De(s), h = H({
1339
+ u && (kt(e.panels, u) || (u = void 0));
1340
+ const c = e.inMemoryLayouts[a] ?? u ?? Te(s), m = H({
1330
1341
  layout: c,
1331
1342
  panelConstraints: s
1332
- }), S = $e(e), m = e.element.ownerDocument;
1343
+ }), y = He(e), h = e.element.ownerDocument;
1333
1344
  return M((f) => {
1334
1345
  const d = /* @__PURE__ */ new Map();
1335
1346
  return W.set(
1336
- m,
1337
- (W.get(m) ?? 0) + 1
1338
- ), S.forEach((p) => {
1347
+ h,
1348
+ (W.get(h) ?? 0) + 1
1349
+ ), y.forEach((p) => {
1339
1350
  p.separator && d.set(p.separator, p.panels);
1340
1351
  }), {
1341
1352
  mountedGroups: new Map(f.mountedGroups).set(e, {
1342
1353
  defaultLayoutDeferred: l === 0,
1343
1354
  derivedPanelConstraints: s,
1344
- layout: h,
1355
+ layout: m,
1345
1356
  separatorToPanels: d
1346
1357
  })
1347
1358
  };
1348
1359
  }), e.separators.forEach((f) => {
1349
- b(
1360
+ z(
1350
1361
  !i.has(f.id),
1351
1362
  `Separator ids must be unique; id "${f.id}" was used more than once`
1352
1363
  ), i.add(f.id), f.element.addEventListener("keydown", Le);
1353
- }), W.get(m) === 1 && (m.addEventListener("dblclick", we, !0), m.addEventListener("pointerdown", Ce, !0), m.addEventListener("pointerleave", ke), m.addEventListener("pointermove", Ge), m.addEventListener("pointerup", Ie, !0)), function() {
1364
+ }), W.get(h) === 1 && (h.addEventListener("dblclick", we, !0), h.addEventListener("pointerdown", Ce, !0), h.addEventListener("pointerleave", ke), h.addEventListener("pointermove", Ge), h.addEventListener("pointerout", Ie), h.addEventListener("pointerup", De, !0)), function() {
1354
1365
  t = !1, W.set(
1355
- m,
1356
- Math.max(0, (W.get(m) ?? 0) - 1)
1366
+ h,
1367
+ Math.max(0, (W.get(h) ?? 0) - 1)
1357
1368
  ), M((d) => {
1358
1369
  const p = new Map(d.mountedGroups);
1359
1370
  return p.delete(e), { mountedGroups: p };
1360
1371
  }), e.separators.forEach((d) => {
1361
1372
  d.element.removeEventListener("keydown", Le);
1362
- }), W.get(m) || (m.removeEventListener(
1373
+ }), W.get(h) || (h.removeEventListener(
1363
1374
  "dblclick",
1364
1375
  we,
1365
1376
  !0
1366
- ), m.removeEventListener(
1377
+ ), h.removeEventListener(
1367
1378
  "pointerdown",
1368
1379
  Ce,
1369
1380
  !0
1370
- ), m.removeEventListener("pointerleave", ke), m.removeEventListener("pointermove", Ge), m.removeEventListener("pointerup", Ie, !0)), r.disconnect();
1381
+ ), h.removeEventListener("pointerleave", ke), h.removeEventListener("pointermove", Ge), h.removeEventListener("pointerout", Ie), h.removeEventListener("pointerup", De, !0)), r.disconnect();
1371
1382
  };
1372
1383
  }
1373
- function Ye() {
1384
+ function Ze() {
1374
1385
  const [e, t] = ee({}), n = Z(() => t({}), []);
1375
1386
  return [e, n];
1376
1387
  }
1377
1388
  function me(e) {
1378
- const t = nt();
1389
+ const t = ot();
1379
1390
  return `${e ?? t}`;
1380
1391
  }
1381
- const j = typeof window < "u" ? Te : Oe;
1392
+ const j = typeof window < "u" ? Oe : Ae;
1382
1393
  function J(e) {
1383
- const t = k(e);
1394
+ const t = G(e);
1384
1395
  return j(() => {
1385
1396
  t.current = e;
1386
1397
  }, [e]), Z(
@@ -1405,27 +1416,27 @@ function ge(...e) {
1405
1416
  });
1406
1417
  });
1407
1418
  }
1408
- function Gt(e) {
1409
- const t = k({ ...e });
1419
+ function It(e) {
1420
+ const t = G({ ...e });
1410
1421
  return j(() => {
1411
1422
  for (const n in e)
1412
1423
  t.current[n] = e[n];
1413
1424
  }, [e]), t.current;
1414
1425
  }
1415
- const Ze = ot(null);
1416
- function It(e, t) {
1417
- const n = k({
1426
+ const Je = it(null);
1427
+ function Dt(e, t) {
1428
+ const n = G({
1418
1429
  getLayout: () => ({}),
1419
- setLayout: Ct
1430
+ setLayout: Pt
1420
1431
  });
1421
- Ae(t, () => n.current, []), j(() => {
1432
+ _e(t, () => n.current, []), j(() => {
1422
1433
  Object.assign(
1423
1434
  n.current,
1424
- Ve({ groupId: e })
1435
+ Ue({ groupId: e })
1425
1436
  );
1426
1437
  });
1427
1438
  }
1428
- function Dt({
1439
+ function Tt({
1429
1440
  children: e,
1430
1441
  className: t,
1431
1442
  defaultLayout: n,
@@ -1437,39 +1448,39 @@ function Dt({
1437
1448
  onLayoutChange: a,
1438
1449
  onLayoutChanged: u,
1439
1450
  orientation: c = "horizontal",
1440
- resizeTargetMinimumSize: h = {
1451
+ resizeTargetMinimumSize: m = {
1441
1452
  coarse: 20,
1442
1453
  fine: 10
1443
1454
  },
1444
- style: S,
1445
- ...m
1455
+ style: y,
1456
+ ...h
1446
1457
  }) {
1447
- const f = k({
1458
+ const f = G({
1448
1459
  onLayoutChange: {},
1449
1460
  onLayoutChanged: {}
1450
- }), d = J((w) => {
1451
- $(f.current.onLayoutChange, w) || (f.current.onLayoutChange = w, a?.(w));
1452
- }), p = J((w) => {
1453
- $(f.current.onLayoutChanged, w) || (f.current.onLayoutChanged = w, u?.(w));
1454
- }), g = me(s), v = k(null), [x, y] = Ye(), z = k({
1461
+ }), d = J((b) => {
1462
+ $(f.current.onLayoutChange, b) || (f.current.onLayoutChange = b, a?.(b));
1463
+ }), p = J((b) => {
1464
+ $(f.current.onLayoutChanged, b) || (f.current.onLayoutChanged = b, u?.(b));
1465
+ }), g = me(s), v = G(null), [x, S] = Ze(), w = G({
1455
1466
  lastExpandedPanelSizes: {},
1456
1467
  layouts: {},
1457
1468
  panels: [],
1458
- resizeTargetMinimumSize: h,
1469
+ resizeTargetMinimumSize: m,
1459
1470
  separators: []
1460
1471
  }), C = ge(v, r);
1461
- It(g, l);
1472
+ Dt(g, l);
1462
1473
  const P = J(
1463
- (w, L) => {
1464
- const { interactionState: E, mountedGroups: ne } = G();
1474
+ (b, L) => {
1475
+ const { interactionState: k, mountedGroups: ne } = E();
1465
1476
  for (const oe of ne.keys())
1466
- if (oe.id === w) {
1477
+ if (oe.id === b) {
1467
1478
  const X = ne.get(oe);
1468
1479
  if (X) {
1469
1480
  let q = !1;
1470
- switch (E.state) {
1481
+ switch (k.state) {
1471
1482
  case "active": {
1472
- q = E.hitRegions.some(
1483
+ q = k.hitRegions.some(
1473
1484
  (le) => le.group === oe
1474
1485
  );
1475
1486
  break;
@@ -1485,58 +1496,58 @@ function Dt({
1485
1496
  flexGrow: n?.[L] ?? 1
1486
1497
  };
1487
1498
  }
1488
- ), O = _e(
1499
+ ), T = Ne(
1489
1500
  () => ({
1490
1501
  getPanelStyles: P,
1491
1502
  id: g,
1492
1503
  orientation: c,
1493
- registerPanel: (w) => {
1494
- const L = z.current;
1504
+ registerPanel: (b) => {
1505
+ const L = w.current;
1495
1506
  return L.panels = de(c, [
1496
1507
  ...L.panels,
1497
- w
1498
- ]), y(), () => {
1508
+ b
1509
+ ]), S(), () => {
1499
1510
  L.panels = L.panels.filter(
1500
- (E) => E !== w
1501
- ), y();
1511
+ (k) => k !== b
1512
+ ), S();
1502
1513
  };
1503
1514
  },
1504
- registerSeparator: (w) => {
1505
- const L = z.current;
1515
+ registerSeparator: (b) => {
1516
+ const L = w.current;
1506
1517
  return L.separators = de(c, [
1507
1518
  ...L.separators,
1508
- w
1509
- ]), y(), () => {
1519
+ b
1520
+ ]), S(), () => {
1510
1521
  L.separators = L.separators.filter(
1511
- (E) => E !== w
1512
- ), y();
1522
+ (k) => k !== b
1523
+ ), S();
1513
1524
  };
1514
1525
  }
1515
1526
  }),
1516
- [P, g, y, c]
1517
- ), V = Gt({
1527
+ [P, g, S, c]
1528
+ ), V = It({
1518
1529
  defaultLayout: n,
1519
1530
  disableCursor: o
1520
- }), A = k(null);
1531
+ }), A = G(null);
1521
1532
  return j(() => {
1522
- const w = v.current;
1523
- if (w === null)
1533
+ const b = v.current;
1534
+ if (b === null)
1524
1535
  return;
1525
- const L = z.current, E = {
1536
+ const L = w.current, k = {
1526
1537
  defaultLayout: V.defaultLayout,
1527
1538
  disableCursor: !!V.disableCursor,
1528
1539
  disabled: !!i,
1529
- element: w,
1540
+ element: b,
1530
1541
  id: g,
1531
- inMemoryLastExpandedPanelSizes: z.current.lastExpandedPanelSizes,
1532
- inMemoryLayouts: z.current.layouts,
1542
+ inMemoryLastExpandedPanelSizes: w.current.lastExpandedPanelSizes,
1543
+ inMemoryLayouts: w.current.layouts,
1533
1544
  orientation: c,
1534
1545
  panels: L.panels,
1535
1546
  resizeTargetMinimumSize: L.resizeTargetMinimumSize,
1536
1547
  separators: L.separators
1537
1548
  };
1538
- A.current = E;
1539
- const ne = kt(E), X = G().mountedGroups.get(E);
1549
+ A.current = k;
1550
+ const ne = Gt(k), X = E().mountedGroups.get(k);
1540
1551
  if (X) {
1541
1552
  const { defaultLayoutDeferred: Y, derivedPanelConstraints: _, layout: U } = X;
1542
1553
  !Y && _.length > 0 && (d(U), p(U), L.panels.forEach((ue) => {
@@ -1552,23 +1563,23 @@ function Dt({
1552
1563
  U.scheduleUpdate();
1553
1564
  }));
1554
1565
  }
1555
- ), Je = F.addListener(
1566
+ ), Qe = F.addListener(
1556
1567
  "mountedGroupsChange",
1557
1568
  (Y) => {
1558
- const _ = Y.get(E);
1569
+ const _ = Y.get(k);
1559
1570
  if (_) {
1560
1571
  const { defaultLayoutDeferred: U, derivedPanelConstraints: ue, layout: Se } = _;
1561
1572
  if (U || ue.length === 0)
1562
1573
  return;
1563
- const { interactionState: Qe } = G(), et = Qe.state !== "active";
1564
- d(Se), et && p(Se), L.panels.forEach((tt) => {
1565
- tt.scheduleUpdate();
1574
+ const { interactionState: et } = E(), tt = et.state !== "active";
1575
+ d(Se), tt && p(Se), L.panels.forEach((nt) => {
1576
+ nt.scheduleUpdate();
1566
1577
  });
1567
1578
  }
1568
1579
  }
1569
1580
  );
1570
1581
  return () => {
1571
- A.current = null, ne(), le(), Je();
1582
+ A.current = null, ne(), le(), Qe();
1572
1583
  };
1573
1584
  }, [
1574
1585
  i,
@@ -1578,13 +1589,13 @@ function Dt({
1578
1589
  c,
1579
1590
  x,
1580
1591
  V
1581
- ]), Oe(() => {
1582
- const w = A.current;
1583
- w && (w.defaultLayout = n, w.disableCursor = !!o);
1584
- }), /* @__PURE__ */ Q(Ze.Provider, { value: O, children: /* @__PURE__ */ Q(
1592
+ ]), Ae(() => {
1593
+ const b = A.current;
1594
+ b && (b.defaultLayout = n, b.disableCursor = !!o);
1595
+ }), /* @__PURE__ */ Q(Je.Provider, { value: T, children: /* @__PURE__ */ Q(
1585
1596
  "div",
1586
1597
  {
1587
- ...m,
1598
+ ...h,
1588
1599
  className: t,
1589
1600
  "data-group": !0,
1590
1601
  "data-testid": g,
@@ -1594,7 +1605,7 @@ function Dt({
1594
1605
  height: "100%",
1595
1606
  width: "100%",
1596
1607
  overflow: "hidden",
1597
- ...S,
1608
+ ...y,
1598
1609
  display: "flex",
1599
1610
  flexDirection: c === "horizontal" ? "row" : "column",
1600
1611
  flexWrap: "nowrap"
@@ -1603,49 +1614,49 @@ function Dt({
1603
1614
  }
1604
1615
  ) });
1605
1616
  }
1606
- Dt.displayName = "Group";
1617
+ Tt.displayName = "Group";
1607
1618
  function fe(e, t) {
1608
1619
  return `react-resizable-panels:${[e, ...t].join(":")}`;
1609
1620
  }
1610
- function jt({
1621
+ function Vt({
1611
1622
  debounceSaveMs: e = 100,
1612
1623
  panelIds: t,
1613
1624
  storage: n = localStorage,
1614
1625
  ...o
1615
1626
  }) {
1616
- const i = t !== void 0, r = "id" in o ? o.id : o.groupId, l = fe(r, t ?? []), s = it(
1617
- Tt,
1627
+ const i = t !== void 0, r = "id" in o ? o.id : o.groupId, l = fe(r, t ?? []), s = rt(
1628
+ Ot,
1618
1629
  () => n.getItem(l),
1619
1630
  () => n.getItem(l)
1620
- ), a = _e(
1631
+ ), a = Ne(
1621
1632
  () => s ? JSON.parse(s) : void 0,
1622
1633
  [s]
1623
- ), u = k(null), c = Z(() => {
1624
- const m = u.current;
1625
- m && (u.current = null, clearTimeout(m));
1634
+ ), u = G(null), c = Z(() => {
1635
+ const h = u.current;
1636
+ h && (u.current = null, clearTimeout(h));
1626
1637
  }, []);
1627
- Te(() => () => {
1638
+ Oe(() => () => {
1628
1639
  c();
1629
1640
  }, [c]);
1630
- const h = Z(
1631
- (m) => {
1641
+ const m = Z(
1642
+ (h) => {
1632
1643
  c();
1633
1644
  let f;
1634
- i ? f = fe(r, Object.keys(m)) : f = fe(r, []);
1645
+ i ? f = fe(r, Object.keys(h)) : f = fe(r, []);
1635
1646
  try {
1636
- n.setItem(f, JSON.stringify(m));
1647
+ n.setItem(f, JSON.stringify(h));
1637
1648
  } catch (d) {
1638
1649
  console.error(d);
1639
1650
  }
1640
1651
  },
1641
1652
  [c, i, r, n]
1642
- ), S = Z(
1643
- (m) => {
1644
- c(), e === 0 ? h(m) : u.current = setTimeout(() => {
1645
- h(m);
1653
+ ), y = Z(
1654
+ (h) => {
1655
+ c(), e === 0 ? m(h) : u.current = setTimeout(() => {
1656
+ m(h);
1646
1657
  }, e);
1647
1658
  },
1648
- [c, e, h]
1659
+ [c, e, m]
1649
1660
  );
1650
1661
  return {
1651
1662
  /**
@@ -1657,32 +1668,32 @@ function jt({
1657
1668
  *
1658
1669
  * @deprecated Use the {@link onLayoutChanged} prop instead.
1659
1670
  */
1660
- onLayoutChange: S,
1671
+ onLayoutChange: y,
1661
1672
  /**
1662
1673
  * Attach this callback on the `Group` as the `onLayoutChanged` prop.
1663
1674
  */
1664
- onLayoutChanged: h
1675
+ onLayoutChanged: m
1665
1676
  };
1666
1677
  }
1667
- function Tt() {
1678
+ function Ot() {
1668
1679
  return function() {
1669
1680
  };
1670
1681
  }
1671
- function Vt() {
1682
+ function Ut() {
1672
1683
  return ee(null);
1673
1684
  }
1674
- function Ut() {
1675
- return k(null);
1685
+ function Wt() {
1686
+ return G(null);
1676
1687
  }
1677
1688
  function ye() {
1678
- const e = rt(Ze);
1679
- return b(
1689
+ const e = st(Je);
1690
+ return z(
1680
1691
  e,
1681
1692
  "Group Context not found; did you render a Panel or Separator outside of a Group?"
1682
1693
  ), e;
1683
1694
  }
1684
- function Ot(e, t) {
1685
- const { id: n } = ye(), o = k({
1695
+ function At(e, t) {
1696
+ const { id: n } = ye(), o = G({
1686
1697
  collapse: ce,
1687
1698
  expand: ce,
1688
1699
  getSize: () => ({
@@ -1692,14 +1703,14 @@ function Ot(e, t) {
1692
1703
  isCollapsed: () => !1,
1693
1704
  resize: ce
1694
1705
  });
1695
- Ae(t, () => o.current, []), j(() => {
1706
+ _e(t, () => o.current, []), j(() => {
1696
1707
  Object.assign(
1697
1708
  o.current,
1698
- je({ groupId: n, panelId: e })
1709
+ Ve({ groupId: n, panelId: e })
1699
1710
  );
1700
1711
  });
1701
1712
  }
1702
- function At({
1713
+ function _t({
1703
1714
  children: e,
1704
1715
  className: t,
1705
1716
  collapsedSize: n = "0%",
@@ -1711,26 +1722,26 @@ function At({
1711
1722
  minSize: a = "0%",
1712
1723
  onResize: u,
1713
1724
  panelRef: c,
1714
- style: h,
1715
- ...S
1725
+ style: m,
1726
+ ...y
1716
1727
  }) {
1717
- const m = !!l, f = me(l), d = k(null), p = ge(d, r), [, g] = Ye(), { getPanelStyles: v, id: x, registerPanel: y } = ye(), z = u !== null, C = J(
1718
- (O, V, A) => {
1719
- u?.(O, l, A);
1728
+ const h = !!l, f = me(l), d = G(null), p = ge(d, r), [, g] = Ze(), { getPanelStyles: v, id: x, registerPanel: S } = ye(), w = u !== null, C = J(
1729
+ (T, V, A) => {
1730
+ u?.(T, l, A);
1720
1731
  }
1721
1732
  );
1722
1733
  j(() => {
1723
- const O = d.current;
1724
- if (O !== null)
1725
- return y({
1726
- element: O,
1734
+ const T = d.current;
1735
+ if (T !== null)
1736
+ return S({
1737
+ element: T,
1727
1738
  id: f,
1728
- idIsStable: m,
1739
+ idIsStable: h,
1729
1740
  mutableValues: {
1730
1741
  expandToSize: void 0,
1731
1742
  prevSize: void 0
1732
1743
  },
1733
- onResize: z ? C : void 0,
1744
+ onResize: w ? C : void 0,
1734
1745
  panelConstraints: {
1735
1746
  collapsedSize: n,
1736
1747
  collapsible: o,
@@ -1745,25 +1756,25 @@ function At({
1745
1756
  o,
1746
1757
  i,
1747
1758
  g,
1748
- z,
1759
+ w,
1749
1760
  f,
1750
- m,
1761
+ h,
1751
1762
  s,
1752
1763
  a,
1753
1764
  C,
1754
- y
1755
- ]), Ot(f, c);
1765
+ S
1766
+ ]), At(f, c);
1756
1767
  const P = v(x, f);
1757
1768
  return /* @__PURE__ */ Q(
1758
1769
  "div",
1759
1770
  {
1760
- ...S,
1771
+ ...y,
1761
1772
  "data-panel": !0,
1762
1773
  "data-testid": f,
1763
1774
  id: f,
1764
1775
  ref: p,
1765
1776
  style: {
1766
- ..._t,
1777
+ ...Nt,
1767
1778
  display: "flex",
1768
1779
  flexBasis: 0,
1769
1780
  flexShrink: 1,
@@ -1779,7 +1790,7 @@ function At({
1779
1790
  maxHeight: "100%",
1780
1791
  maxWidth: "100%",
1781
1792
  flexGrow: 1,
1782
- ...h
1793
+ ...m
1783
1794
  },
1784
1795
  children: e
1785
1796
  }
@@ -1787,8 +1798,8 @@ function At({
1787
1798
  }
1788
1799
  );
1789
1800
  }
1790
- At.displayName = "Panel";
1791
- const _t = {
1801
+ _t.displayName = "Panel";
1802
+ const Nt = {
1792
1803
  minHeight: 0,
1793
1804
  maxHeight: "100%",
1794
1805
  height: "auto",
@@ -1800,13 +1811,13 @@ const _t = {
1800
1811
  padding: 0,
1801
1812
  margin: 0
1802
1813
  };
1803
- function Wt() {
1814
+ function Bt() {
1804
1815
  return ee(null);
1805
1816
  }
1806
- function Bt() {
1807
- return k(null);
1817
+ function Kt() {
1818
+ return G(null);
1808
1819
  }
1809
- function Nt({
1820
+ function Ft({
1810
1821
  layout: e,
1811
1822
  panelConstraints: t,
1812
1823
  panelId: n,
@@ -1845,7 +1856,7 @@ function Nt({
1845
1856
  valueNow: l
1846
1857
  };
1847
1858
  }
1848
- function Ft({
1859
+ function $t({
1849
1860
  children: e,
1850
1861
  className: t,
1851
1862
  elementRef: n,
@@ -1853,18 +1864,18 @@ function Ft({
1853
1864
  style: i,
1854
1865
  ...r
1855
1866
  }) {
1856
- const l = me(o), [s, a] = ee({}), [u, c] = ee("inactive"), h = k(null), S = ge(h, n), {
1857
- id: m,
1867
+ const l = me(o), [s, a] = ee({}), [u, c] = ee("inactive"), m = G(null), y = ge(m, n), {
1868
+ id: h,
1858
1869
  orientation: f,
1859
1870
  registerSeparator: d
1860
1871
  } = ye(), p = f === "horizontal" ? "vertical" : "horizontal";
1861
1872
  return j(() => {
1862
- const g = h.current;
1873
+ const g = m.current;
1863
1874
  if (g !== null) {
1864
1875
  const v = {
1865
1876
  element: g,
1866
1877
  id: l
1867
- }, x = d(v), y = F.addListener(
1878
+ }, x = d(v), S = F.addListener(
1868
1879
  "interactionStateChange",
1869
1880
  (C) => {
1870
1881
  c(
@@ -1873,21 +1884,21 @@ function Ft({
1873
1884
  ) ? C.state : "inactive"
1874
1885
  );
1875
1886
  }
1876
- ), z = F.addListener(
1887
+ ), w = F.addListener(
1877
1888
  "mountedGroupsChange",
1878
1889
  (C) => {
1879
1890
  C.forEach(
1880
- ({ derivedPanelConstraints: P, layout: O, separatorToPanels: V }, A) => {
1881
- if (A.id === m) {
1882
- const w = V.get(v);
1883
- if (w) {
1884
- const L = w[0], E = A.panels.indexOf(L);
1891
+ ({ derivedPanelConstraints: P, layout: T, separatorToPanels: V }, A) => {
1892
+ if (A.id === h) {
1893
+ const b = V.get(v);
1894
+ if (b) {
1895
+ const L = b[0], k = A.panels.indexOf(L);
1885
1896
  a(
1886
- Nt({
1887
- layout: O,
1897
+ Ft({
1898
+ layout: T,
1888
1899
  panelConstraints: P,
1889
1900
  panelId: L.id,
1890
- panelIndex: E
1901
+ panelIndex: k
1891
1902
  })
1892
1903
  );
1893
1904
  }
@@ -1897,10 +1908,10 @@ function Ft({
1897
1908
  }
1898
1909
  );
1899
1910
  return () => {
1900
- y(), z(), x();
1911
+ S(), w(), x();
1901
1912
  };
1902
1913
  }
1903
- }, [m, l, d]), /* @__PURE__ */ Q(
1914
+ }, [h, l, d]), /* @__PURE__ */ Q(
1904
1915
  "div",
1905
1916
  {
1906
1917
  ...r,
@@ -1914,7 +1925,7 @@ function Ft({
1914
1925
  "data-separator": u,
1915
1926
  "data-testid": l,
1916
1927
  id: l,
1917
- ref: S,
1928
+ ref: y,
1918
1929
  role: "separator",
1919
1930
  style: {
1920
1931
  flexBasis: "auto",
@@ -1926,16 +1937,16 @@ function Ft({
1926
1937
  }
1927
1938
  );
1928
1939
  }
1929
- Ft.displayName = "Separator";
1940
+ $t.displayName = "Separator";
1930
1941
  export {
1931
- Dt as Group,
1932
- At as Panel,
1933
- Ft as Separator,
1934
- ut as isCoarsePointer,
1935
- jt as useDefaultLayout,
1936
- Vt as useGroupCallbackRef,
1937
- Ut as useGroupRef,
1938
- Wt as usePanelCallbackRef,
1939
- Bt as usePanelRef
1942
+ Tt as Group,
1943
+ _t as Panel,
1944
+ $t as Separator,
1945
+ ct as isCoarsePointer,
1946
+ Vt as useDefaultLayout,
1947
+ Ut as useGroupCallbackRef,
1948
+ Wt as useGroupRef,
1949
+ Bt as usePanelCallbackRef,
1950
+ Kt as usePanelRef
1940
1951
  };
1941
1952
  //# sourceMappingURL=react-resizable-panels.js.map