@sps-woodland/focused-task 8.17.1 → 8.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.es.js CHANGED
@@ -1,24 +1,24 @@
1
- import { Metadata as Ne, cl as G, combineEventHandlers as ve, useChildTestIdAttrBuilder as Je, selectChildren as Xe, contentOf as be } from "@sps-woodland/core";
1
+ import { Metadata as Se, cl as G, combineEventHandlers as ve, useChildTestIdAttrBuilder as Je, selectChildren as Xe, contentOf as be } from "@sps-woodland/core";
2
2
  import { Button as Ye } from "@sps-woodland/buttons";
3
3
  import * as d from "react";
4
- import h, { useRef as y, useCallback as S, useState as K, useContext as A, useEffect as P, useMemo as R, createContext as Qe } from "react";
4
+ import h, { useRef as y, useCallback as k, useState as V, useContext as D, useEffect as F, useMemo as I, createContext as Qe } from "react";
5
5
  import Ze from "react-dom";
6
6
  import { code as me } from "@spscommerce/utils";
7
- const E = typeof document < "u" ? h.useLayoutEffect : () => {
7
+ const g = typeof document < "u" ? h.useLayoutEffect : () => {
8
8
  };
9
- function V(e) {
9
+ function H(e) {
10
10
  const t = y(null);
11
- return E(() => {
11
+ return g(() => {
12
12
  t.current = e;
13
13
  }, [
14
14
  e
15
- ]), S((...n) => {
15
+ ]), k((...n) => {
16
16
  const r = t.current;
17
17
  return r == null ? void 0 : r(...n);
18
18
  }, []);
19
19
  }
20
20
  function et(e) {
21
- let [t, n] = K(e), r = y(null), o = V(() => {
21
+ let [t, n] = V(e), r = y(null), o = H(() => {
22
22
  if (!r.current) return;
23
23
  let a = r.current.next();
24
24
  if (a.done) {
@@ -27,10 +27,10 @@ function et(e) {
27
27
  }
28
28
  t === a.value ? o() : n(a.value);
29
29
  });
30
- E(() => {
30
+ g(() => {
31
31
  r.current && o();
32
32
  });
33
- let i = V((a) => {
33
+ let i = H((a) => {
34
34
  r.current = a(t), o();
35
35
  });
36
36
  return [
@@ -41,10 +41,10 @@ function et(e) {
41
41
  const U = {
42
42
  prefix: String(Math.round(Math.random() * 1e10)),
43
43
  current: 0
44
- }, Fe = /* @__PURE__ */ h.createContext(U), tt = /* @__PURE__ */ h.createContext(!1);
44
+ }, Ne = /* @__PURE__ */ h.createContext(U), tt = /* @__PURE__ */ h.createContext(!1);
45
45
  let nt = !!(typeof window < "u" && window.document && window.document.createElement), re = /* @__PURE__ */ new WeakMap();
46
46
  function rt(e = !1) {
47
- let t = A(Fe), n = y(null);
47
+ let t = D(Ne), n = y(null);
48
48
  if (n.current === null && !e) {
49
49
  var r, o;
50
50
  let i = (o = h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || o === void 0 || (r = o.ReactCurrentOwner) === null || r === void 0 ? void 0 : r.current;
@@ -60,13 +60,13 @@ function rt(e = !1) {
60
60
  return n.current;
61
61
  }
62
62
  function ot(e) {
63
- let t = A(Fe);
63
+ let t = D(Ne);
64
64
  t === U && !nt && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
65
65
  let n = rt(!!e), r = t === U && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${t.prefix}`;
66
66
  return e || `${r}-${n}`;
67
67
  }
68
68
  function at(e) {
69
- let t = h.useId(), [n] = K(Pe()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${U.prefix}`;
69
+ let t = h.useId(), [n] = V(Fe()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${U.prefix}`;
70
70
  return e || `${r}-${t}`;
71
71
  }
72
72
  const it = typeof h.useId == "function" ? at : ot;
@@ -80,22 +80,22 @@ function ct(e) {
80
80
  return () => {
81
81
  };
82
82
  }
83
- function Pe() {
84
- return typeof h.useSyncExternalStore == "function" ? h.useSyncExternalStore(ct, lt, st) : A(tt);
83
+ function Fe() {
84
+ return typeof h.useSyncExternalStore == "function" ? h.useSyncExternalStore(ct, lt, st) : D(tt);
85
85
  }
86
86
  let ut = !!(typeof window < "u" && window.document && window.document.createElement), J = /* @__PURE__ */ new Map();
87
- function ke(e) {
88
- let [t, n] = K(e), r = y(null), o = it(t), i = S((a) => {
87
+ function Pe(e) {
88
+ let [t, n] = V(e), r = y(null), o = it(t), i = k((a) => {
89
89
  r.current = a;
90
90
  }, []);
91
- return ut && J.set(o, i), E(() => {
91
+ return ut && J.set(o, i), g(() => {
92
92
  let a = o;
93
93
  return () => {
94
94
  J.delete(a);
95
95
  };
96
96
  }, [
97
97
  o
98
- ]), P(() => {
98
+ ]), F(() => {
99
99
  let a = r.current;
100
100
  a && (r.current = null, n(a));
101
101
  }), o;
@@ -109,7 +109,7 @@ function dt(e, t) {
109
109
  return r ? (r(e), e) : t;
110
110
  }
111
111
  function ft(e = []) {
112
- let t = ke(), [n, r] = et(t), o = S(() => {
112
+ let t = Pe(), [n, r] = et(t), o = k(() => {
113
113
  r(function* () {
114
114
  yield t, yield document.getElementById(t) ? t : void 0;
115
115
  });
@@ -117,7 +117,7 @@ function ft(e = []) {
117
117
  t,
118
118
  r
119
119
  ]);
120
- return E(o, [
120
+ return g(o, [
121
121
  t,
122
122
  o,
123
123
  ...e
@@ -128,10 +128,10 @@ function X(...e) {
128
128
  for (let n of e) typeof n == "function" && n(...t);
129
129
  };
130
130
  }
131
- const g = (e) => {
131
+ const E = (e) => {
132
132
  var t;
133
133
  return (t = e == null ? void 0 : e.ownerDocument) !== null && t !== void 0 ? t : document;
134
- }, Y = (e) => e && "window" in e && e.window === e ? e : g(e).defaultView || window;
134
+ }, Y = (e) => e && "window" in e && e.window === e ? e : E(e).defaultView || window;
135
135
  function Le(e) {
136
136
  var t, n, r = "";
137
137
  if (typeof e == "string" || typeof e == "number") r += e;
@@ -177,13 +177,13 @@ const bt = /* @__PURE__ */ new Set([
177
177
  "ping",
178
178
  "referrerPolicy"
179
179
  ]), ht = /^(data-.*)$/;
180
- function Et(e, t = {}) {
180
+ function gt(e, t = {}) {
181
181
  let { labelable: n, isLink: r, propNames: o } = t, i = {};
182
182
  for (const a in e) Object.prototype.hasOwnProperty.call(e, a) && (bt.has(a) || n && mt.has(a) || r && $t.has(a) || o != null && o.has(a) || ht.test(a)) && (i[a] = e[a]);
183
183
  return i;
184
184
  }
185
185
  function $e(e) {
186
- if (gt()) e.focus({
186
+ if (Et()) e.focus({
187
187
  preventScroll: !0
188
188
  });
189
189
  else {
@@ -191,20 +191,20 @@ function $e(e) {
191
191
  e.focus(), yt(t);
192
192
  }
193
193
  }
194
- let q = null;
195
- function gt() {
196
- if (q == null) {
197
- q = !1;
194
+ let j = null;
195
+ function Et() {
196
+ if (j == null) {
197
+ j = !1;
198
198
  try {
199
199
  document.createElement("div").focus({
200
200
  get preventScroll() {
201
- return q = !0, !0;
201
+ return j = !0, !0;
202
202
  }
203
203
  });
204
204
  } catch {
205
205
  }
206
206
  }
207
- return q;
207
+ return j;
208
208
  }
209
209
  function wt(e) {
210
210
  let t = e.parentNode, n = [], r = document.scrollingElement || document.documentElement;
@@ -238,17 +238,17 @@ function Ce() {
238
238
  function xt() {
239
239
  return ue(/^iPhone/i);
240
240
  }
241
- function St() {
241
+ function kt() {
242
242
  return ue(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
243
243
  Ce() && navigator.maxTouchPoints > 1;
244
244
  }
245
- function Nt() {
246
- return xt() || St();
245
+ function St() {
246
+ return xt() || kt();
247
247
  }
248
- function Ft() {
248
+ function Nt() {
249
249
  return Tt(/Android/i);
250
250
  }
251
- let M = /* @__PURE__ */ new Map(), ie = /* @__PURE__ */ new Set();
251
+ let O = /* @__PURE__ */ new Map(), ie = /* @__PURE__ */ new Set();
252
252
  function he() {
253
253
  if (typeof window > "u") return;
254
254
  function e(r) {
@@ -256,14 +256,14 @@ function he() {
256
256
  }
257
257
  let t = (r) => {
258
258
  if (!e(r) || !r.target) return;
259
- let o = M.get(r.target);
260
- o || (o = /* @__PURE__ */ new Set(), M.set(r.target, o), r.target.addEventListener("transitioncancel", n, {
259
+ let o = O.get(r.target);
260
+ o || (o = /* @__PURE__ */ new Set(), O.set(r.target, o), r.target.addEventListener("transitioncancel", n, {
261
261
  once: !0
262
262
  })), o.add(r.propertyName);
263
263
  }, n = (r) => {
264
264
  if (!e(r) || !r.target) return;
265
- let o = M.get(r.target);
266
- if (o && (o.delete(r.propertyName), o.size === 0 && (r.target.removeEventListener("transitioncancel", n), M.delete(r.target)), M.size === 0)) {
265
+ let o = O.get(r.target);
266
+ if (o && (o.delete(r.propertyName), o.size === 0 && (r.target.removeEventListener("transitioncancel", n), O.delete(r.target)), O.size === 0)) {
267
267
  for (let i of ie) i();
268
268
  ie.clear();
269
269
  }
@@ -271,38 +271,38 @@ function he() {
271
271
  document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", n);
272
272
  }
273
273
  typeof document < "u" && (document.readyState !== "loading" ? he() : document.addEventListener("DOMContentLoaded", he));
274
- function Pt(e) {
274
+ function Ft(e) {
275
275
  requestAnimationFrame(() => {
276
- M.size === 0 ? e() : ie.add(e);
276
+ O.size === 0 ? e() : ie.add(e);
277
277
  });
278
278
  }
279
- function Ee(e, t) {
279
+ function ge(e, t) {
280
280
  let n = window.getComputedStyle(e), r = /(auto|scroll)/.test(n.overflow + n.overflowX + n.overflowY);
281
281
  return r && t && (r = e.scrollHeight !== e.clientHeight || e.scrollWidth !== e.clientWidth), r;
282
282
  }
283
- function Oe(e, t) {
283
+ function _e(e, t) {
284
284
  let n = e;
285
- for (Ee(n, t) && (n = n.parentElement); n && !Ee(n, t); ) n = n.parentElement;
285
+ for (ge(n, t) && (n = n.parentElement); n && !ge(n, t); ) n = n.parentElement;
286
286
  return n || document.scrollingElement || document.documentElement;
287
287
  }
288
- function kt(e) {
289
- return e.mozInputSource === 0 && e.isTrusted ? !0 : Ft() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
288
+ function Pt(e) {
289
+ return e.mozInputSource === 0 && e.isTrusted ? !0 : Nt() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
290
290
  }
291
291
  function Lt(e, t, n) {
292
- let [r, o] = K(e || t), i = y(e !== void 0), a = e !== void 0;
293
- P(() => {
292
+ let [r, o] = V(e || t), i = y(e !== void 0), a = e !== void 0;
293
+ F(() => {
294
294
  let l = i.current;
295
295
  l !== a && console.warn(`WARN: A component changed from ${l ? "controlled" : "uncontrolled"} to ${a ? "controlled" : "uncontrolled"}.`), i.current = a;
296
296
  }, [
297
297
  a
298
298
  ]);
299
- let c = a ? e : r, u = S((l, ...s) => {
299
+ let c = a ? e : r, u = k((l, ...s) => {
300
300
  let f = (p, ...b) => {
301
301
  n && (Object.is(c, p) || n(p, ...b)), a || (c = p);
302
302
  };
303
303
  typeof l == "function" ? (console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), o((b, ...v) => {
304
- let k = l(a ? c : b, ...v);
305
- return f(k, ...s), a ? b : k;
304
+ let P = l(a ? c : b, ...v);
305
+ return f(P, ...s), a ? b : P;
306
306
  })) : (a || o(l), f(l, ...s));
307
307
  }, [
308
308
  a,
@@ -314,21 +314,21 @@ function Lt(e, t, n) {
314
314
  u
315
315
  ];
316
316
  }
317
- const Me = h.createContext({
317
+ const Oe = h.createContext({
318
318
  register: () => {
319
319
  }
320
320
  });
321
- Me.displayName = "PressResponderContext";
321
+ Oe.displayName = "PressResponderContext";
322
322
  function Ct({ children: e }) {
323
- let t = R(() => ({
323
+ let t = I(() => ({
324
324
  register: () => {
325
325
  }
326
326
  }), []);
327
- return /* @__PURE__ */ h.createElement(Me.Provider, {
327
+ return /* @__PURE__ */ h.createElement(Oe.Provider, {
328
328
  value: t
329
329
  }, e);
330
330
  }
331
- class Ot {
331
+ class _t {
332
332
  isDefaultPrevented() {
333
333
  return this.nativeEvent.defaultPrevented;
334
334
  }
@@ -347,25 +347,25 @@ class Ot {
347
347
  this.nativeEvent = n, this.target = n.target, this.currentTarget = n.currentTarget, this.relatedTarget = n.relatedTarget, this.bubbles = n.bubbles, this.cancelable = n.cancelable, this.defaultPrevented = n.defaultPrevented, this.eventPhase = n.eventPhase, this.isTrusted = n.isTrusted, this.timeStamp = n.timeStamp, this.type = t;
348
348
  }
349
349
  }
350
- function Mt(e) {
350
+ function Ot(e) {
351
351
  let t = y({
352
352
  isFocused: !1,
353
353
  observer: null
354
354
  });
355
- E(() => {
355
+ g(() => {
356
356
  const r = t.current;
357
357
  return () => {
358
358
  r.observer && (r.observer.disconnect(), r.observer = null);
359
359
  };
360
360
  }, []);
361
- let n = V((r) => {
361
+ let n = H((r) => {
362
362
  e == null || e(r);
363
363
  });
364
- return S((r) => {
364
+ return k((r) => {
365
365
  if (r.target instanceof HTMLButtonElement || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement || r.target instanceof HTMLSelectElement) {
366
366
  t.current.isFocused = !0;
367
367
  let o = r.target, i = (a) => {
368
- t.current.isFocused = !1, o.disabled && n(new Ot("blur", a)), t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
368
+ t.current.isFocused = !1, o.disabled && n(new _t("blur", a)), t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
369
369
  };
370
370
  o.addEventListener("focusout", i, {
371
371
  once: !0
@@ -392,67 +392,67 @@ function Mt(e) {
392
392
  n
393
393
  ]);
394
394
  }
395
- let j = null, Dt = /* @__PURE__ */ new Set(), H = /* @__PURE__ */ new Map(), O = !1, le = !1;
395
+ let K = null, Mt = /* @__PURE__ */ new Set(), R = /* @__PURE__ */ new Map(), _ = !1, le = !1;
396
396
  function de(e, t) {
397
- for (let n of Dt) n(e, t);
397
+ for (let n of Mt) n(e, t);
398
398
  }
399
- function At(e) {
399
+ function Dt(e) {
400
400
  return !(e.metaKey || !Ce() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
401
401
  }
402
402
  function Q(e) {
403
- O = !0, At(e) && (j = "keyboard", de("keyboard", e));
403
+ _ = !0, Dt(e) && (K = "keyboard", de("keyboard", e));
404
404
  }
405
405
  function x(e) {
406
- j = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (O = !0, de("pointer", e));
406
+ K = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (_ = !0, de("pointer", e));
407
407
  }
408
- function De(e) {
409
- kt(e) && (O = !0, j = "virtual");
408
+ function Me(e) {
409
+ Pt(e) && (_ = !0, K = "virtual");
410
410
  }
411
- function Ae(e) {
412
- e.target === window || e.target === document || (!O && !le && (j = "virtual", de("virtual", e)), O = !1, le = !1);
411
+ function De(e) {
412
+ e.target === window || e.target === document || (!_ && !le && (K = "virtual", de("virtual", e)), _ = !1, le = !1);
413
413
  }
414
- function We() {
415
- O = !1, le = !0;
414
+ function Ae() {
415
+ _ = !1, le = !0;
416
416
  }
417
- function ge(e) {
418
- if (typeof window > "u" || H.get(Y(e))) return;
419
- const t = Y(e), n = g(e);
417
+ function Ee(e) {
418
+ if (typeof window > "u" || R.get(Y(e))) return;
419
+ const t = Y(e), n = E(e);
420
420
  let r = t.HTMLElement.prototype.focus;
421
421
  t.HTMLElement.prototype.focus = function() {
422
- O = !0, r.apply(this, arguments);
423
- }, n.addEventListener("keydown", Q, !0), n.addEventListener("keyup", Q, !0), n.addEventListener("click", De, !0), t.addEventListener("focus", Ae, !0), t.addEventListener("blur", We, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", x, !0), n.addEventListener("pointermove", x, !0), n.addEventListener("pointerup", x, !0)) : (n.addEventListener("mousedown", x, !0), n.addEventListener("mousemove", x, !0), n.addEventListener("mouseup", x, !0)), t.addEventListener("beforeunload", () => {
424
- Be(e);
422
+ _ = !0, r.apply(this, arguments);
423
+ }, n.addEventListener("keydown", Q, !0), n.addEventListener("keyup", Q, !0), n.addEventListener("click", Me, !0), t.addEventListener("focus", De, !0), t.addEventListener("blur", Ae, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", x, !0), n.addEventListener("pointermove", x, !0), n.addEventListener("pointerup", x, !0)) : (n.addEventListener("mousedown", x, !0), n.addEventListener("mousemove", x, !0), n.addEventListener("mouseup", x, !0)), t.addEventListener("beforeunload", () => {
424
+ We(e);
425
425
  }, {
426
426
  once: !0
427
- }), H.set(t, {
427
+ }), R.set(t, {
428
428
  focus: r
429
429
  });
430
430
  }
431
- const Be = (e, t) => {
432
- const n = Y(e), r = g(e);
433
- t && r.removeEventListener("DOMContentLoaded", t), H.has(n) && (n.HTMLElement.prototype.focus = H.get(n).focus, r.removeEventListener("keydown", Q, !0), r.removeEventListener("keyup", Q, !0), r.removeEventListener("click", De, !0), n.removeEventListener("focus", Ae, !0), n.removeEventListener("blur", We, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", x, !0), r.removeEventListener("pointermove", x, !0), r.removeEventListener("pointerup", x, !0)) : (r.removeEventListener("mousedown", x, !0), r.removeEventListener("mousemove", x, !0), r.removeEventListener("mouseup", x, !0)), H.delete(n));
431
+ const We = (e, t) => {
432
+ const n = Y(e), r = E(e);
433
+ t && r.removeEventListener("DOMContentLoaded", t), R.has(n) && (n.HTMLElement.prototype.focus = R.get(n).focus, r.removeEventListener("keydown", Q, !0), r.removeEventListener("keyup", Q, !0), r.removeEventListener("click", Me, !0), n.removeEventListener("focus", De, !0), n.removeEventListener("blur", Ae, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", x, !0), r.removeEventListener("pointermove", x, !0), r.removeEventListener("pointerup", x, !0)) : (r.removeEventListener("mousedown", x, !0), r.removeEventListener("mousemove", x, !0), r.removeEventListener("mouseup", x, !0)), R.delete(n));
434
434
  };
435
- function Wt(e) {
436
- const t = g(e);
435
+ function At(e) {
436
+ const t = E(e);
437
437
  let n;
438
- return t.readyState !== "loading" ? ge(e) : (n = () => {
439
- ge(e);
440
- }, t.addEventListener("DOMContentLoaded", n)), () => Be(e, n);
438
+ return t.readyState !== "loading" ? Ee(e) : (n = () => {
439
+ Ee(e);
440
+ }, t.addEventListener("DOMContentLoaded", n)), () => We(e, n);
441
441
  }
442
- typeof document < "u" && Wt();
443
- function Bt() {
444
- return j;
442
+ typeof document < "u" && At();
443
+ function Wt() {
444
+ return K;
445
445
  }
446
- function It(e) {
446
+ function Bt(e) {
447
447
  let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: o } = e, i = y({
448
448
  isFocusWithin: !1
449
- }), a = S((l) => {
449
+ }), a = k((l) => {
450
450
  i.current.isFocusWithin && !l.currentTarget.contains(l.relatedTarget) && (i.current.isFocusWithin = !1, n && n(l), o && o(!1));
451
451
  }, [
452
452
  n,
453
453
  o,
454
454
  i
455
- ]), c = Mt(a), u = S((l) => {
455
+ ]), c = Ot(a), u = k((l) => {
456
456
  !i.current.isFocusWithin && document.activeElement === l.target && (r && r(l), o && o(!0), i.current.isFocusWithin = !0, c(l));
457
457
  }, [
458
458
  r,
@@ -472,31 +472,31 @@ function It(e) {
472
472
  }
473
473
  };
474
474
  }
475
- function Rt(e) {
475
+ function It(e) {
476
476
  let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: o } = e, i = y({
477
477
  isPointerDown: !1,
478
478
  ignoreEmulatedMouseEvents: !1
479
- }), a = V((u) => {
480
- n && z(u, t) && (o && o(u), i.current.isPointerDown = !0);
481
- }), c = V((u) => {
479
+ }), a = H((u) => {
480
+ n && q(u, t) && (o && o(u), i.current.isPointerDown = !0);
481
+ }), c = H((u) => {
482
482
  n && n(u);
483
483
  });
484
- P(() => {
484
+ F(() => {
485
485
  let u = i.current;
486
486
  if (r) return;
487
- const l = t.current, s = g(l);
487
+ const l = t.current, s = E(l);
488
488
  if (typeof PointerEvent < "u") {
489
489
  let f = (p) => {
490
- u.isPointerDown && z(p, t) && c(p), u.isPointerDown = !1;
490
+ u.isPointerDown && q(p, t) && c(p), u.isPointerDown = !1;
491
491
  };
492
492
  return s.addEventListener("pointerdown", a, !0), s.addEventListener("pointerup", f, !0), () => {
493
493
  s.removeEventListener("pointerdown", a, !0), s.removeEventListener("pointerup", f, !0);
494
494
  };
495
495
  } else {
496
496
  let f = (b) => {
497
- u.ignoreEmulatedMouseEvents ? u.ignoreEmulatedMouseEvents = !1 : u.isPointerDown && z(b, t) && c(b), u.isPointerDown = !1;
497
+ u.ignoreEmulatedMouseEvents ? u.ignoreEmulatedMouseEvents = !1 : u.isPointerDown && q(b, t) && c(b), u.isPointerDown = !1;
498
498
  }, p = (b) => {
499
- u.ignoreEmulatedMouseEvents = !0, u.isPointerDown && z(b, t) && c(b), u.isPointerDown = !1;
499
+ u.ignoreEmulatedMouseEvents = !0, u.isPointerDown && q(b, t) && c(b), u.isPointerDown = !1;
500
500
  };
501
501
  return s.addEventListener("mousedown", a, !0), s.addEventListener("mouseup", f, !0), s.addEventListener("touchstart", a, !0), s.addEventListener("touchend", p, !0), () => {
502
502
  s.removeEventListener("mousedown", a, !0), s.removeEventListener("mouseup", f, !0), s.removeEventListener("touchstart", a, !0), s.removeEventListener("touchend", p, !0);
@@ -509,7 +509,7 @@ function Rt(e) {
509
509
  c
510
510
  ]);
511
511
  }
512
- function z(e, t) {
512
+ function q(e, t) {
513
513
  if (e.button > 0) return !1;
514
514
  if (e.target) {
515
515
  const n = e.target.ownerDocument;
@@ -518,15 +518,15 @@ function z(e, t) {
518
518
  return t.current && !t.current.contains(e.target);
519
519
  }
520
520
  function se(e) {
521
- const t = g(e);
522
- if (Bt() === "virtual") {
521
+ const t = E(e);
522
+ if (Wt() === "virtual") {
523
523
  let n = t.activeElement;
524
- Pt(() => {
524
+ Ft(() => {
525
525
  t.activeElement === n && e.isConnected && $e(e);
526
526
  });
527
527
  } else $e(e);
528
528
  }
529
- function Ht(e) {
529
+ function Rt(e) {
530
530
  const t = Y(e);
531
531
  if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
532
532
  let { display: n, visibility: r } = e.style, o = n !== "none" && r !== "hidden" && r !== "collapse";
@@ -537,22 +537,22 @@ function Ht(e) {
537
537
  }
538
538
  return o;
539
539
  }
540
- function Vt(e, t) {
540
+ function Ht(e, t) {
541
541
  return !e.hasAttribute("hidden") && // Ignore HiddenSelect when tree walking.
542
542
  !e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
543
543
  }
544
- function Ie(e, t) {
545
- return e.nodeName !== "#comment" && Ht(e) && Vt(e, t) && (!e.parentElement || Ie(e.parentElement, e));
544
+ function Be(e, t) {
545
+ return e.nodeName !== "#comment" && Rt(e) && Ht(e, t) && (!e.parentElement || Be(e.parentElement, e));
546
546
  }
547
547
  const we = /* @__PURE__ */ h.createContext(null);
548
548
  let m = null;
549
- function Kt(e) {
550
- let { children: t, contain: n, restoreFocus: r, autoFocus: o } = e, i = y(null), a = y(null), c = y([]), { parentNode: u } = A(we) || {}, l = R(() => new ce({
549
+ function Vt(e) {
550
+ let { children: t, contain: n, restoreFocus: r, autoFocus: o } = e, i = y(null), a = y(null), c = y([]), { parentNode: u } = D(we) || {}, l = I(() => new ce({
551
551
  scopeRef: c
552
552
  }), [
553
553
  c
554
554
  ]);
555
- E(() => {
555
+ g(() => {
556
556
  let p = u || $.root;
557
557
  if ($.getTreeNode(p.scopeRef) && m && !ee(m, p.scopeRef)) {
558
558
  let b = $.getTreeNode(m);
@@ -562,12 +562,12 @@ function Kt(e) {
562
562
  }, [
563
563
  l,
564
564
  u
565
- ]), E(() => {
565
+ ]), g(() => {
566
566
  let p = $.getTreeNode(c);
567
567
  p && (p.contain = !!n);
568
568
  }, [
569
569
  n
570
- ]), E(() => {
570
+ ]), g(() => {
571
571
  var p;
572
572
  let b = (p = i.current) === null || p === void 0 ? void 0 : p.nextSibling, v = [];
573
573
  for (; b && b !== a.current; )
@@ -575,8 +575,8 @@ function Kt(e) {
575
575
  c.current = v;
576
576
  }, [
577
577
  t
578
- ]), Jt(c, r, n), _t(c, n), Yt(c, r, n), Ut(c, o), P(() => {
579
- const p = g(c.current ? c.current[0] : void 0).activeElement;
578
+ ]), Jt(c, r, n), zt(c, n), Yt(c, r, n), Ut(c, o), F(() => {
579
+ const p = E(c.current ? c.current[0] : void 0).activeElement;
580
580
  let b = null;
581
581
  if (w(p, c.current)) {
582
582
  for (let v of $.traverse()) v.scopeRef && w(p, v.scopeRef.current) && (b = v);
@@ -584,14 +584,14 @@ function Kt(e) {
584
584
  }
585
585
  }, [
586
586
  c
587
- ]), E(() => () => {
587
+ ]), g(() => () => {
588
588
  var p, b, v;
589
- let k = (v = (b = $.getTreeNode(c)) === null || b === void 0 || (p = b.parent) === null || p === void 0 ? void 0 : p.scopeRef) !== null && v !== void 0 ? v : null;
590
- (c === m || ee(c, m)) && (!k || $.getTreeNode(k)) && (m = k), $.removeTreeNode(c);
589
+ let P = (v = (b = $.getTreeNode(c)) === null || b === void 0 || (p = b.parent) === null || p === void 0 ? void 0 : p.scopeRef) !== null && v !== void 0 ? v : null;
590
+ (c === m || ee(c, m)) && (!P || $.getTreeNode(P)) && (m = P), $.removeTreeNode(c);
591
591
  }, [
592
592
  c
593
593
  ]);
594
- let s = R(() => jt(c), []), f = R(() => ({
594
+ let s = I(() => Kt(c), []), f = I(() => ({
595
595
  focusManager: s,
596
596
  parentNode: l
597
597
  }), [
@@ -610,25 +610,25 @@ function Kt(e) {
610
610
  ref: a
611
611
  }));
612
612
  }
613
- function jt(e) {
613
+ function Kt(e) {
614
614
  return {
615
615
  focusNext(t = {}) {
616
- let n = e.current, { from: r, tabbable: o, wrap: i, accept: a } = t, c = r || g(n[0]).activeElement, u = n[0].previousElementSibling, l = C(n), s = L(l, {
616
+ let n = e.current, { from: r, tabbable: o, wrap: i, accept: a } = t, c = r || E(n[0]).activeElement, u = n[0].previousElementSibling, l = C(n), s = L(l, {
617
617
  tabbable: o,
618
618
  accept: a
619
619
  }, n);
620
620
  s.currentNode = w(c, n) ? c : u;
621
621
  let f = s.nextNode();
622
- return !f && i && (s.currentNode = u, f = s.nextNode()), f && F(f, !0), f;
622
+ return !f && i && (s.currentNode = u, f = s.nextNode()), f && N(f, !0), f;
623
623
  },
624
624
  focusPrevious(t = {}) {
625
- let n = e.current, { from: r, tabbable: o, wrap: i, accept: a } = t, c = r || g(n[0]).activeElement, u = n[n.length - 1].nextElementSibling, l = C(n), s = L(l, {
625
+ let n = e.current, { from: r, tabbable: o, wrap: i, accept: a } = t, c = r || E(n[0]).activeElement, u = n[n.length - 1].nextElementSibling, l = C(n), s = L(l, {
626
626
  tabbable: o,
627
627
  accept: a
628
628
  }, n);
629
629
  s.currentNode = w(c, n) ? c : u;
630
630
  let f = s.previousNode();
631
- return !f && i && (s.currentNode = u, f = s.previousNode()), f && F(f, !0), f;
631
+ return !f && i && (s.currentNode = u, f = s.previousNode()), f && N(f, !0), f;
632
632
  },
633
633
  focusFirst(t = {}) {
634
634
  let n = e.current, { tabbable: r, accept: o } = t, i = C(n), a = L(i, {
@@ -637,7 +637,7 @@ function jt(e) {
637
637
  }, n);
638
638
  a.currentNode = n[0].previousElementSibling;
639
639
  let c = a.nextNode();
640
- return c && F(c, !0), c;
640
+ return c && N(c, !0), c;
641
641
  },
642
642
  focusLast(t = {}) {
643
643
  let n = e.current, { tabbable: r, accept: o } = t, i = C(n), a = L(i, {
@@ -646,7 +646,7 @@ function jt(e) {
646
646
  }, n);
647
647
  a.currentNode = n[n.length - 1].nextElementSibling;
648
648
  let c = a.previousNode();
649
- return c && F(c, !0), c;
649
+ return c && N(c, !0), c;
650
650
  }
651
651
  };
652
652
  }
@@ -664,13 +664,13 @@ const fe = [
664
664
  "audio[controls]",
665
665
  "video[controls]",
666
666
  "[contenteditable]"
667
- ], qt = fe.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
667
+ ], jt = fe.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
668
668
  fe.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
669
- const zt = fe.join(':not([hidden]):not([tabindex="-1"]),');
669
+ const qt = fe.join(':not([hidden]):not([tabindex="-1"]),');
670
670
  function C(e) {
671
671
  return e[0].parentElement;
672
672
  }
673
- function I(e) {
673
+ function B(e) {
674
674
  let t = $.getTreeNode(m);
675
675
  for (; t && t.scopeRef !== e; ) {
676
676
  if (t.contain) return !1;
@@ -678,17 +678,17 @@ function I(e) {
678
678
  }
679
679
  return !0;
680
680
  }
681
- function _t(e, t) {
681
+ function zt(e, t) {
682
682
  let n = y(), r = y();
683
- E(() => {
683
+ g(() => {
684
684
  let o = e.current;
685
685
  if (!t) {
686
686
  r.current && (cancelAnimationFrame(r.current), r.current = void 0);
687
687
  return;
688
688
  }
689
- const i = g(o ? o[0] : void 0);
689
+ const i = E(o ? o[0] : void 0);
690
690
  let a = (l) => {
691
- if (l.key !== "Tab" || l.altKey || l.ctrlKey || l.metaKey || !I(e) || l.isComposing) return;
691
+ if (l.key !== "Tab" || l.altKey || l.ctrlKey || l.metaKey || !B(e) || l.isComposing) return;
692
692
  let s = i.activeElement, f = e.current;
693
693
  if (!f || !w(s, f)) return;
694
694
  let p = C(f), b = L(p, {
@@ -697,12 +697,12 @@ function _t(e, t) {
697
697
  if (!s) return;
698
698
  b.currentNode = s;
699
699
  let v = l.shiftKey ? b.previousNode() : b.nextNode();
700
- v || (b.currentNode = l.shiftKey ? f[f.length - 1].nextElementSibling : f[0].previousElementSibling, v = l.shiftKey ? b.previousNode() : b.nextNode()), l.preventDefault(), v && F(v, !0);
700
+ v || (b.currentNode = l.shiftKey ? f[f.length - 1].nextElementSibling : f[0].previousElementSibling, v = l.shiftKey ? b.previousNode() : b.nextNode()), l.preventDefault(), v && N(v, !0);
701
701
  }, c = (l) => {
702
- (!m || ee(m, e)) && w(l.target, e.current) ? (m = e, n.current = l.target) : I(e) && !Z(l.target, e) ? n.current ? n.current.focus() : m && m.current && te(m.current) : I(e) && (n.current = l.target);
702
+ (!m || ee(m, e)) && w(l.target, e.current) ? (m = e, n.current = l.target) : B(e) && !Z(l.target, e) ? n.current ? n.current.focus() : m && m.current && te(m.current) : B(e) && (n.current = l.target);
703
703
  }, u = (l) => {
704
704
  r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
705
- if (i.activeElement && I(e) && !Z(i.activeElement, e))
705
+ if (i.activeElement && B(e) && !Z(i.activeElement, e))
706
706
  if (m = e, i.body.contains(l.target)) {
707
707
  var s;
708
708
  n.current = l.target, (s = n.current) === null || s === void 0 || s.focus();
@@ -715,13 +715,13 @@ function _t(e, t) {
715
715
  }, [
716
716
  e,
717
717
  t
718
- ]), E(() => () => {
718
+ ]), g(() => () => {
719
719
  r.current && cancelAnimationFrame(r.current);
720
720
  }, [
721
721
  r
722
722
  ]);
723
723
  }
724
- function Re(e) {
724
+ function Ie(e) {
725
725
  return Z(e);
726
726
  }
727
727
  function w(e, t) {
@@ -745,7 +745,7 @@ function ee(e, t) {
745
745
  }
746
746
  return !1;
747
747
  }
748
- function F(e, t = !1) {
748
+ function N(e, t = !1) {
749
749
  if (e != null && !t) try {
750
750
  se(e);
751
751
  } catch {
@@ -763,14 +763,14 @@ function te(e, t = !0) {
763
763
  let i = o.nextNode();
764
764
  t && !i && (r = C(e), o = L(r, {
765
765
  tabbable: !1
766
- }, e), o.currentNode = n, i = o.nextNode()), F(i);
766
+ }, e), o.currentNode = n, i = o.nextNode()), N(i);
767
767
  }
768
768
  function Ut(e, t) {
769
769
  const n = h.useRef(t);
770
- P(() => {
770
+ F(() => {
771
771
  if (n.current) {
772
772
  m = e;
773
- const r = g(e.current ? e.current[0] : void 0);
773
+ const r = E(e.current ? e.current[0] : void 0);
774
774
  !w(r.activeElement, m.current) && e.current && te(e.current);
775
775
  }
776
776
  n.current = !1;
@@ -779,13 +779,13 @@ function Ut(e, t) {
779
779
  ]);
780
780
  }
781
781
  function Jt(e, t, n) {
782
- E(() => {
782
+ g(() => {
783
783
  if (t || n) return;
784
784
  let r = e.current;
785
- const o = g(r ? r[0] : void 0);
785
+ const o = E(r ? r[0] : void 0);
786
786
  let i = (a) => {
787
787
  let c = a.target;
788
- w(c, e.current) ? m = e : Re(c) || (m = null);
788
+ w(c, e.current) ? m = e : Ie(c) || (m = null);
789
789
  };
790
790
  return o.addEventListener("focusin", i, !1), r == null || r.forEach((a) => a.addEventListener("focusin", i, !1)), () => {
791
791
  o.removeEventListener("focusin", i, !1), r == null || r.forEach((a) => a.removeEventListener("focusin", i, !1));
@@ -805,10 +805,10 @@ function Xt(e) {
805
805
  return (t == null ? void 0 : t.scopeRef) === e;
806
806
  }
807
807
  function Yt(e, t, n) {
808
- const r = y(typeof document < "u" ? g(e.current ? e.current[0] : void 0).activeElement : null);
809
- E(() => {
808
+ const r = y(typeof document < "u" ? E(e.current ? e.current[0] : void 0).activeElement : null);
809
+ g(() => {
810
810
  let o = e.current;
811
- const i = g(o ? o[0] : void 0);
811
+ const i = E(o ? o[0] : void 0);
812
812
  if (!t || n) return;
813
813
  let a = () => {
814
814
  (!m || ee(m, e)) && w(i.activeElement, e.current) && (m = e);
@@ -819,11 +819,11 @@ function Yt(e, t, n) {
819
819
  }, [
820
820
  e,
821
821
  n
822
- ]), E(() => {
823
- const o = g(e.current ? e.current[0] : void 0);
822
+ ]), g(() => {
823
+ const o = E(e.current ? e.current[0] : void 0);
824
824
  if (!t) return;
825
825
  let i = (a) => {
826
- if (a.key !== "Tab" || a.altKey || a.ctrlKey || a.metaKey || !I(e) || a.isComposing) return;
826
+ if (a.key !== "Tab" || a.altKey || a.ctrlKey || a.metaKey || !B(e) || a.isComposing) return;
827
827
  let c = o.activeElement;
828
828
  if (!w(c, e.current)) return;
829
829
  let u = $.getTreeNode(e);
@@ -838,7 +838,7 @@ function Yt(e, t, n) {
838
838
  do
839
839
  f = a.shiftKey ? s.previousNode() : s.nextNode();
840
840
  while (w(f, e.current));
841
- a.preventDefault(), a.stopPropagation(), f ? F(f, !0) : Re(l) ? F(l, !0) : c.blur();
841
+ a.preventDefault(), a.stopPropagation(), f ? N(f, !0) : Ie(l) ? N(l, !0) : c.blur();
842
842
  }
843
843
  };
844
844
  return n || o.addEventListener("keydown", i, !0), () => {
@@ -848,8 +848,8 @@ function Yt(e, t, n) {
848
848
  e,
849
849
  t,
850
850
  n
851
- ]), E(() => {
852
- const o = g(e.current ? e.current[0] : void 0);
851
+ ]), g(() => {
852
+ const o = E(e.current ? e.current[0] : void 0);
853
853
  if (!t) return;
854
854
  let i = $.getTreeNode(e);
855
855
  if (i) {
@@ -866,7 +866,7 @@ function Yt(e, t, n) {
866
866
  let s = l.getTreeNode(e);
867
867
  for (; s; ) {
868
868
  if (s.nodeToRestore && s.nodeToRestore.isConnected) {
869
- F(s.nodeToRestore);
869
+ N(s.nodeToRestore);
870
870
  return;
871
871
  }
872
872
  s = s.parent;
@@ -889,10 +889,10 @@ function Yt(e, t, n) {
889
889
  ]);
890
890
  }
891
891
  function L(e, t, n) {
892
- let r = t != null && t.tabbable ? zt : qt, o = g(e).createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
892
+ let r = t != null && t.tabbable ? qt : jt, o = E(e).createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
893
893
  acceptNode(i) {
894
894
  var a;
895
- return !(t == null || (a = t.from) === null || a === void 0) && a.contains(i) ? NodeFilter.FILTER_REJECT : i.matches(r) && Ie(i) && (!n || w(i, n)) && (!(t != null && t.accept) || t.accept(i)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
895
+ return !(t == null || (a = t.from) === null || a === void 0) && a.contains(i) ? NodeFilter.FILTER_REJECT : i.matches(r) && Be(i) && (!n || w(i, n)) && (!(t != null && t.accept) || t.accept(i)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
896
896
  }
897
897
  });
898
898
  return t != null && t.from && (o.currentNode = t.from), o;
@@ -953,31 +953,31 @@ class ce {
953
953
  }
954
954
  }
955
955
  let $ = new pe();
956
- const Qt = /* @__PURE__ */ new WeakMap(), N = [];
956
+ const Qt = /* @__PURE__ */ new WeakMap(), S = [];
957
957
  function Zt(e, t) {
958
958
  let { onClose: n, shouldCloseOnBlur: r, isOpen: o, isDismissable: i = !1, isKeyboardDismissDisabled: a = !1, shouldCloseOnInteractOutside: c } = e;
959
- P(() => (o && N.push(t), () => {
960
- let v = N.indexOf(t);
961
- v >= 0 && N.splice(v, 1);
959
+ F(() => (o && S.push(t), () => {
960
+ let v = S.indexOf(t);
961
+ v >= 0 && S.splice(v, 1);
962
962
  }), [
963
963
  o,
964
964
  t
965
965
  ]);
966
966
  let u = () => {
967
- N[N.length - 1] === t && n && n();
967
+ S[S.length - 1] === t && n && n();
968
968
  }, l = (v) => {
969
- (!c || c(v.target)) && N[N.length - 1] === t && (v.stopPropagation(), v.preventDefault());
969
+ (!c || c(v.target)) && S[S.length - 1] === t && (v.stopPropagation(), v.preventDefault());
970
970
  }, s = (v) => {
971
- (!c || c(v.target)) && (N[N.length - 1] === t && (v.stopPropagation(), v.preventDefault()), u());
971
+ (!c || c(v.target)) && (S[S.length - 1] === t && (v.stopPropagation(), v.preventDefault()), u());
972
972
  }, f = (v) => {
973
973
  v.key === "Escape" && !a && !v.nativeEvent.isComposing && (v.stopPropagation(), v.preventDefault(), u());
974
974
  };
975
- Rt({
975
+ It({
976
976
  ref: t,
977
977
  onInteractOutside: i && o ? s : null,
978
978
  onInteractOutsideStart: l
979
979
  });
980
- let { focusWithinProps: p } = It({
980
+ let { focusWithinProps: p } = Bt({
981
981
  isDisabled: !r,
982
982
  onBlurWithin: (v) => {
983
983
  !v.relatedTarget || Gt(v.relatedTarget) || (!c || c(v.relatedTarget)) && n();
@@ -997,12 +997,12 @@ function Zt(e, t) {
997
997
  }
998
998
  function en(e, t, n) {
999
999
  let { type: r } = e, { isOpen: o } = t;
1000
- P(() => {
1000
+ F(() => {
1001
1001
  n && n.current && Qt.set(n.current, t.close);
1002
1002
  });
1003
1003
  let i;
1004
1004
  r === "menu" ? i = !0 : r === "listbox" && (i = "listbox");
1005
- let a = ke();
1005
+ let a = Pe();
1006
1006
  return {
1007
1007
  triggerProps: {
1008
1008
  "aria-haspopup": i,
@@ -1026,24 +1026,24 @@ const oe = typeof document < "u" && window.visualViewport, tn = /* @__PURE__ */
1026
1026
  "submit",
1027
1027
  "reset"
1028
1028
  ]);
1029
- let _ = 0, ae;
1029
+ let z = 0, ae;
1030
1030
  function nn(e = {}) {
1031
1031
  let { isDisabled: t } = e;
1032
- E(() => {
1032
+ g(() => {
1033
1033
  if (!t)
1034
- return _++, _ === 1 && (Nt() ? ae = on() : ae = rn()), () => {
1035
- _--, _ === 0 && ae();
1034
+ return z++, z === 1 && (St() ? ae = on() : ae = rn()), () => {
1035
+ z--, z === 0 && ae();
1036
1036
  };
1037
1037
  }, [
1038
1038
  t
1039
1039
  ]);
1040
1040
  }
1041
1041
  function rn() {
1042
- return X(D(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), D(document.documentElement, "overflow", "hidden"));
1042
+ return X(M(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), M(document.documentElement, "overflow", "hidden"));
1043
1043
  }
1044
1044
  function on() {
1045
1045
  let e, t, n = (l) => {
1046
- e = Oe(l.target, !0), !(e === document.documentElement && e === document.body) && e instanceof HTMLElement && window.getComputedStyle(e).overscrollBehavior === "auto" && (t = D(e, "overscrollBehavior", "contain"));
1046
+ e = _e(l.target, !0), !(e === document.documentElement && e === document.body) && e instanceof HTMLElement && window.getComputedStyle(e).overscrollBehavior === "auto" && (t = M(e, "overscrollBehavior", "contain"));
1047
1047
  }, r = (l) => {
1048
1048
  if (!e || e === document.documentElement || e === document.body) {
1049
1049
  l.preventDefault();
@@ -1069,30 +1069,30 @@ function on() {
1069
1069
  let l = () => {
1070
1070
  window.scrollTo(0, 0);
1071
1071
  }, s = window.pageXOffset, f = window.pageYOffset;
1072
- a = X(W(window, "scroll", l), D(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), D(document.documentElement, "overflow", "hidden"), D(document.body, "marginTop", `-${f}px`), () => {
1072
+ a = X(A(window, "scroll", l), M(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), M(document.documentElement, "overflow", "hidden"), M(document.body, "marginTop", `-${f}px`), () => {
1073
1073
  window.scrollTo(s, f);
1074
1074
  }), window.scrollTo(0, 0);
1075
- }, u = X(W(document, "touchstart", n, {
1075
+ }, u = X(A(document, "touchstart", n, {
1076
1076
  passive: !1,
1077
1077
  capture: !0
1078
- }), W(document, "touchmove", r, {
1078
+ }), A(document, "touchmove", r, {
1079
1079
  passive: !1,
1080
1080
  capture: !0
1081
- }), W(document, "touchend", o, {
1081
+ }), A(document, "touchend", o, {
1082
1082
  passive: !1,
1083
1083
  capture: !0
1084
- }), W(document, "focus", i, !0));
1084
+ }), A(document, "focus", i, !0));
1085
1085
  return () => {
1086
1086
  t == null || t(), a == null || a(), u();
1087
1087
  };
1088
1088
  }
1089
- function D(e, t, n) {
1089
+ function M(e, t, n) {
1090
1090
  let r = e.style[t];
1091
1091
  return e.style[t] = n, () => {
1092
1092
  e.style[t] = r;
1093
1093
  };
1094
1094
  }
1095
- function W(e, t, n, r) {
1095
+ function A(e, t, n, r) {
1096
1096
  return e.addEventListener(t, n, r), () => {
1097
1097
  e.removeEventListener(t, n, r);
1098
1098
  };
@@ -1100,7 +1100,7 @@ function W(e, t, n, r) {
1100
1100
  function ye(e) {
1101
1101
  let t = document.scrollingElement || document.documentElement;
1102
1102
  for (; e && e !== t; ) {
1103
- let n = Oe(e);
1103
+ let n = _e(e);
1104
1104
  if (n !== document.documentElement && n !== document.body && n !== e) {
1105
1105
  let r = n.getBoundingClientRect().top, o = e.getBoundingClientRect().top;
1106
1106
  o > r + e.clientHeight && (n.scrollTop += o - r);
@@ -1111,7 +1111,7 @@ function ye(e) {
1111
1111
  function Te(e) {
1112
1112
  return e instanceof HTMLInputElement && !tn.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
1113
1113
  }
1114
- let B = /* @__PURE__ */ new WeakMap(), T = [];
1114
+ let W = /* @__PURE__ */ new WeakMap(), T = [];
1115
1115
  function an(e, t = document.body) {
1116
1116
  let n = new Set(e), r = /* @__PURE__ */ new Set(), o = (u) => {
1117
1117
  for (let p of u.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) n.add(p);
@@ -1130,8 +1130,8 @@ function an(e, t = document.body) {
1130
1130
  }
1131
1131
  }, i = (u) => {
1132
1132
  var l;
1133
- let s = (l = B.get(u)) !== null && l !== void 0 ? l : 0;
1134
- u.getAttribute("aria-hidden") === "true" && s === 0 || (s === 0 && u.setAttribute("aria-hidden", "true"), r.add(u), B.set(u, s + 1));
1133
+ let s = (l = W.get(u)) !== null && l !== void 0 ? l : 0;
1134
+ u.getAttribute("aria-hidden") === "true" && s === 0 || (s === 0 && u.setAttribute("aria-hidden", "true"), r.add(u), W.set(u, s + 1));
1135
1135
  };
1136
1136
  T.length && T[T.length - 1].disconnect(), o(t);
1137
1137
  let a = new MutationObserver((u) => {
@@ -1163,8 +1163,8 @@ function an(e, t = document.body) {
1163
1163
  return T.push(c), () => {
1164
1164
  a.disconnect();
1165
1165
  for (let u of r) {
1166
- let l = B.get(u);
1167
- l === 1 ? (u.removeAttribute("aria-hidden"), B.delete(u)) : B.set(u, l - 1);
1166
+ let l = W.get(u);
1167
+ l === 1 ? (u.removeAttribute("aria-hidden"), W.delete(u)) : W.set(u, l - 1);
1168
1168
  }
1169
1169
  c === T[T.length - 1] ? (T.pop(), T.length && T[T.length - 1].observe()) : T.splice(T.indexOf(c), 1);
1170
1170
  };
@@ -1172,11 +1172,11 @@ function an(e, t = document.body) {
1172
1172
  const ln = /* @__PURE__ */ Qe({});
1173
1173
  function sn() {
1174
1174
  var e;
1175
- return (e = A(ln)) !== null && e !== void 0 ? e : {};
1175
+ return (e = D(ln)) !== null && e !== void 0 ? e : {};
1176
1176
  }
1177
- const He = /* @__PURE__ */ h.createContext(null);
1177
+ const Re = /* @__PURE__ */ h.createContext(null);
1178
1178
  function cn(e) {
1179
- let t = Pe(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [o, i] = K(!1), a = R(() => ({
1179
+ let t = Fe(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [o, i] = V(!1), a = I(() => ({
1180
1180
  contain: o,
1181
1181
  setContain: i
1182
1182
  }), [
@@ -1185,16 +1185,16 @@ function cn(e) {
1185
1185
  ]), { getContainer: c } = sn();
1186
1186
  if (!e.portalContainer && c && (n = c()), !n) return null;
1187
1187
  let u = e.children;
1188
- return e.disableFocusManagement || (u = /* @__PURE__ */ h.createElement(Kt, {
1188
+ return e.disableFocusManagement || (u = /* @__PURE__ */ h.createElement(Vt, {
1189
1189
  restoreFocus: !0,
1190
1190
  contain: o && !r
1191
- }, u)), u = /* @__PURE__ */ h.createElement(He.Provider, {
1191
+ }, u)), u = /* @__PURE__ */ h.createElement(Re.Provider, {
1192
1192
  value: a
1193
1193
  }, /* @__PURE__ */ h.createElement(Ct, null, u)), /* @__PURE__ */ Ze.createPortal(u, n);
1194
1194
  }
1195
- function Ve() {
1196
- let e = A(He), t = e == null ? void 0 : e.setContain;
1197
- E(() => {
1195
+ function He() {
1196
+ let e = D(Re), t = e == null ? void 0 : e.setContain;
1197
+ g(() => {
1198
1198
  t == null || t(!0);
1199
1199
  }, [
1200
1200
  t
@@ -1208,7 +1208,7 @@ function un(e, t, n) {
1208
1208
  }, n);
1209
1209
  return nn({
1210
1210
  isDisabled: !t.isOpen
1211
- }), Ve(), P(() => {
1211
+ }), He(), F(() => {
1212
1212
  if (t.isOpen) return an([
1213
1213
  n.current
1214
1214
  ]);
@@ -1224,7 +1224,7 @@ function dn(e, t) {
1224
1224
  let { role: n = "dialog" } = e, r = ft();
1225
1225
  r = e["aria-label"] ? void 0 : r;
1226
1226
  let o = y(!1);
1227
- return P(() => {
1227
+ return F(() => {
1228
1228
  if (t.current && !t.current.contains(document.activeElement)) {
1229
1229
  se(t.current);
1230
1230
  let i = setTimeout(() => {
@@ -1236,9 +1236,9 @@ function dn(e, t) {
1236
1236
  }
1237
1237
  }, [
1238
1238
  t
1239
- ]), Ve(), {
1239
+ ]), He(), {
1240
1240
  dialogProps: {
1241
- ...Et(e, {
1241
+ ...gt(e, {
1242
1242
  labelable: !0
1243
1243
  }),
1244
1244
  role: n,
@@ -1274,7 +1274,7 @@ function xe(e, t) {
1274
1274
  }
1275
1275
  return n;
1276
1276
  }
1277
- function Se(e) {
1277
+ function ke(e) {
1278
1278
  for (var t = 1; t < arguments.length; t++) {
1279
1279
  var n = arguments[t] != null ? arguments[t] : {};
1280
1280
  t % 2 ? xe(Object(n), !0).forEach(function(r) {
@@ -1293,7 +1293,7 @@ var pn = (e, t, n) => {
1293
1293
  }
1294
1294
  return !0;
1295
1295
  }, vn = (e) => (t) => {
1296
- var n = e.defaultClassName, r = Se(Se({}, e.defaultVariants), t);
1296
+ var n = e.defaultClassName, r = ke(ke({}, e.defaultVariants), t);
1297
1297
  for (var o in r) {
1298
1298
  var i, a = (i = r[o]) !== null && i !== void 0 ? i : e.defaultVariants[o];
1299
1299
  if (a != null) {
@@ -1309,15 +1309,15 @@ var pn = (e, t, n) => {
1309
1309
  for (var [l, s] of e.compoundVariants)
1310
1310
  pn(l, r, e.defaultVariants) && (n += " " + s);
1311
1311
  return n;
1312
- }, bn = vn({ defaultClassName: "_1io4psq1", variantClassNames: { fullWidth: { true: "_1io4psq2", false: "_1io4psq3" } }, defaultVariants: {}, compoundVariants: [] }), mn = "_1io4psq5", $n = "_1io4psq0", hn = "_1io4psq9", En = "_1io4psqa", gn = "_1io4psq8", wn = "_1io4psq4", yn = "_1io4psq7";
1313
- function Ke({
1312
+ }, bn = vn({ defaultClassName: "pkg_sps-woodland_focused-task__version_8_17_2__hash_1io4psq1", variantClassNames: { fullWidth: { true: "pkg_sps-woodland_focused-task__version_8_17_2__hash_1io4psq2", false: "pkg_sps-woodland_focused-task__version_8_17_2__hash_1io4psq3" } }, defaultVariants: {}, compoundVariants: [] }), mn = "pkg_sps-woodland_focused-task__version_8_17_2__hash_1io4psq5", $n = "pkg_sps-woodland_focused-task__version_8_17_2__hash_1io4psq0", hn = "pkg_sps-woodland_focused-task__version_8_17_2__hash_1io4psq9", gn = "pkg_sps-woodland_focused-task__version_8_17_2__hash_1io4psqa", En = "pkg_sps-woodland_focused-task__version_8_17_2__hash_1io4psq8", wn = "pkg_sps-woodland_focused-task__version_8_17_2__hash_1io4psq4", yn = "pkg_sps-woodland_focused-task__version_8_17_2__hash_1io4psq7";
1313
+ function Ve({
1314
1314
  children: e,
1315
1315
  className: t = "",
1316
1316
  ...n
1317
1317
  }) {
1318
- return /* @__PURE__ */ d.createElement("div", { className: G(gn, t), ...n }, /* @__PURE__ */ d.createElement("div", { className: G(hn) }, /* @__PURE__ */ d.createElement("div", { className: G(En) }, e)));
1318
+ return /* @__PURE__ */ d.createElement("div", { className: G(En, t), ...n }, /* @__PURE__ */ d.createElement("div", { className: G(hn) }, /* @__PURE__ */ d.createElement("div", { className: G(gn) }, e)));
1319
1319
  }
1320
- Ne.set(Ke, { name: "FocusedTaskActions" });
1320
+ Se.set(Ve, { name: "FocusedTaskActions" });
1321
1321
  function Tn({
1322
1322
  children: e,
1323
1323
  className: t,
@@ -1334,7 +1334,7 @@ function Tn({
1334
1334
  { ...l },
1335
1335
  a,
1336
1336
  s
1337
- ), { dialogProps: b, titleProps: v } = dn(l, s), k = ve(f.onFocus, b.onFocus, o), qe = ve(f.onBlur, b.onBlur, r), ze = Je({ "data-testid": n }), [ne, _e] = Xe(e, [{ type: Ke }]);
1337
+ ), { dialogProps: b, titleProps: v } = dn(l, s), P = ve(f.onFocus, b.onFocus, o), je = ve(f.onBlur, b.onBlur, r), qe = Je({ "data-testid": n }), [ne, ze] = Xe(e, [{ type: Ve }]);
1338
1338
  function Ge() {
1339
1339
  c && typeof c == "function" && c(), a.close();
1340
1340
  }
@@ -1354,21 +1354,21 @@ function Tn({
1354
1354
  ...f,
1355
1355
  ...b,
1356
1356
  ...i,
1357
- onFocus: k,
1358
- onBlur: qe,
1359
- ...ze("dialog"),
1357
+ onFocus: P,
1358
+ onBlur: je,
1359
+ ...qe("dialog"),
1360
1360
  ref: s,
1361
1361
  className: G($n, t)
1362
1362
  },
1363
1363
  /* @__PURE__ */ d.createElement("div", { ...v, className: wn }, Ue),
1364
- /* @__PURE__ */ d.createElement("div", { className: bn({ fullWidth: u }) }, be(_e, a.close)),
1364
+ /* @__PURE__ */ d.createElement("div", { className: bn({ fullWidth: u }) }, be(ze, a.close)),
1365
1365
  ne && ne.length > 0 && /* @__PURE__ */ d.createElement(d.Fragment, null, be(ne, a.close))
1366
1366
  )));
1367
1367
  }
1368
- function je(e) {
1368
+ function Ke(e) {
1369
1369
  return e.state.isOpen ? /* @__PURE__ */ d.createElement(Tn, { ...e }, e.children) : /* @__PURE__ */ d.createElement(d.Fragment, null);
1370
1370
  }
1371
- Ne.set(je, {
1371
+ Se.set(Ke, {
1372
1372
  name: "FocusedTask",
1373
1373
  props: {
1374
1374
  fullWidth: { type: "boolean", default: "false" },
@@ -1379,15 +1379,15 @@ Ne.set(je, {
1379
1379
  });
1380
1380
  function xn(e) {
1381
1381
  let [t, n] = Lt(e.isOpen, e.defaultOpen || !1, e.onOpenChange);
1382
- const r = S(() => {
1382
+ const r = k(() => {
1383
1383
  n(!0);
1384
1384
  }, [
1385
1385
  n
1386
- ]), o = S(() => {
1386
+ ]), o = k(() => {
1387
1387
  n(!1);
1388
1388
  }, [
1389
1389
  n
1390
- ]), i = S(() => {
1390
+ ]), i = k(() => {
1391
1391
  n(!t);
1392
1392
  }, [
1393
1393
  n,
@@ -1413,8 +1413,8 @@ function Cn(e = {}) {
1413
1413
  focusedTaskProps: { overlayProps: o, state: t }
1414
1414
  };
1415
1415
  }
1416
- const Sn = {
1417
- components: [je],
1416
+ const kn = {
1417
+ components: [Ke],
1418
1418
  examples: {
1419
1419
  hooks: {
1420
1420
  label: "Using the Hook",
@@ -1514,12 +1514,12 @@ const Sn = {
1514
1514
  }
1515
1515
  }
1516
1516
  }
1517
- }, On = {
1518
- "Focused Task": Sn
1517
+ }, _n = {
1518
+ "Focused Task": kn
1519
1519
  };
1520
1520
  export {
1521
- je as FocusedTask,
1522
- Ke as FocusedTaskActions,
1523
- On as MANIFEST,
1521
+ Ke as FocusedTask,
1522
+ Ve as FocusedTaskActions,
1523
+ _n as MANIFEST,
1524
1524
  Cn as useFocusedTask
1525
1525
  };