@adamosuiteservices/ui 2.20.1 → 2.20.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/accordion-rounded.cjs +1 -1
  2. package/dist/accordion-rounded.js +1 -1
  3. package/dist/accordion.cjs +1 -1
  4. package/dist/accordion.js +1 -1
  5. package/dist/checkbox-BHStM029.cjs +24 -0
  6. package/dist/{checkbox-DPlUjwLi.js → checkbox-DX8b_6kG.js} +4 -3
  7. package/dist/checkbox.cjs +1 -1
  8. package/dist/checkbox.js +1 -1
  9. package/dist/collapsible.cjs +1 -1
  10. package/dist/collapsible.js +1 -1
  11. package/dist/{combobox-DylTjGrw.cjs → combobox-BURhN76t.cjs} +1 -1
  12. package/dist/{combobox-DG9u4g84.js → combobox-BrHVXnf2.js} +3 -3
  13. package/dist/combobox.cjs +1 -1
  14. package/dist/combobox.js +1 -1
  15. package/dist/context-menu.cjs +8 -8
  16. package/dist/context-menu.js +56 -55
  17. package/dist/date-picker-selector.cjs +1 -1
  18. package/dist/date-picker-selector.js +2 -2
  19. package/dist/dialog.cjs +3 -3
  20. package/dist/dialog.js +3 -3
  21. package/dist/dropdown-menu.cjs +9 -9
  22. package/dist/dropdown-menu.js +33 -32
  23. package/dist/full-screen-loader.cjs +4 -4
  24. package/dist/full-screen-loader.js +27 -24
  25. package/dist/hover-card.cjs +2 -2
  26. package/dist/hover-card.js +12 -11
  27. package/dist/index-1Io41IIt.cjs +1 -0
  28. package/dist/index-437EL2iq.js +52 -0
  29. package/dist/index-B695uy69.js +9 -0
  30. package/dist/index-BE-HFcQ8.cjs +1 -0
  31. package/dist/{index-BPOsnOxS.js → index-BM2A-WRV.js} +1 -1
  32. package/dist/index-BOnhen57.cjs +1 -0
  33. package/dist/{index-D_hmhfRp.js → index-BPnOqaWN.js} +9 -8
  34. package/dist/index-BqyOu62e.cjs +1 -0
  35. package/dist/index-C8aODXfJ.cjs +1 -0
  36. package/dist/index-CFB4VzSW.js +542 -0
  37. package/dist/index-CgAmFB15.cjs +1 -0
  38. package/dist/{index-B76LQ4E5.js → index-CinpJ0oP.js} +24 -23
  39. package/dist/{index-wujanfX3.js → index-Cpaqurwq.js} +191 -190
  40. package/dist/{index-B6gxHWt9.js → index-CwrPuu3I.js} +15 -14
  41. package/dist/index-D3xJARPa.cjs +1 -0
  42. package/dist/index-DSj2iNTW.js +137 -0
  43. package/dist/{index-Ce7JfyIP.js → index-DWrql5dh.js} +11 -10
  44. package/dist/{index-BIydBVaH.js → index-E5ek046p.js} +78 -76
  45. package/dist/{index-BaCYnOIG.cjs → index-L8BhH23Y.cjs} +1 -1
  46. package/dist/index-ZzRl2Lfu.cjs +5 -0
  47. package/dist/index-_TfuLupy.cjs +41 -0
  48. package/dist/index-cBJ7G45l.cjs +1 -0
  49. package/dist/popover-Dod16CM1.cjs +15 -0
  50. package/dist/{popover-DcQ18EVl.js → popover-tP2NoMYx.js} +84 -82
  51. package/dist/popover.cjs +1 -1
  52. package/dist/popover.js +1 -1
  53. package/dist/radio-group.cjs +3 -3
  54. package/dist/radio-group.js +10 -9
  55. package/dist/select.cjs +8 -8
  56. package/dist/select.js +21 -19
  57. package/dist/{sheet-Cp6JGhWC.cjs → sheet-DR1nAs9U.cjs} +1 -1
  58. package/dist/{sheet-hWerE8S1.js → sheet-UNggtdu3.js} +1 -1
  59. package/dist/sheet.cjs +1 -1
  60. package/dist/sheet.js +1 -1
  61. package/dist/sidebar.cjs +1 -1
  62. package/dist/sidebar.js +1 -1
  63. package/dist/slider.cjs +5 -5
  64. package/dist/slider.js +7 -6
  65. package/dist/styles.css +1 -1
  66. package/dist/switch.cjs +3 -3
  67. package/dist/switch.js +8 -7
  68. package/dist/tabs-underline.cjs +1 -1
  69. package/dist/tabs-underline.js +1 -1
  70. package/dist/tabs.cjs +1 -1
  71. package/dist/tabs.js +1 -1
  72. package/dist/toggle.cjs +2 -2
  73. package/dist/toggle.js +6 -5
  74. package/dist/tooltip.cjs +3 -3
  75. package/dist/tooltip.js +23 -22
  76. package/docs/components/layout/full-screen-loader.md +19 -1
  77. package/docs/components/ui/dialog.md +28 -3
  78. package/package.json +4 -2
  79. package/dist/checkbox-CIzBdqN7.cjs +0 -24
  80. package/dist/index-8iwAKZIp.cjs +0 -1
  81. package/dist/index-BWaO7kQK.cjs +0 -1
  82. package/dist/index-BnkHpTJs.cjs +0 -1
  83. package/dist/index-C0UREtMP.js +0 -59
  84. package/dist/index-C2P2kXMc.cjs +0 -41
  85. package/dist/index-CC6DBo2g.cjs +0 -1
  86. package/dist/index-CRWn-2fF.cjs +0 -1
  87. package/dist/index-Ca99LLZF.cjs +0 -5
  88. package/dist/index-e0gNU5O1.js +0 -675
  89. package/dist/index-i5lLg35-.cjs +0 -1
  90. package/dist/popover-cGp_rNLg.cjs +0 -15
@@ -0,0 +1,52 @@
1
+ import * as t from "react";
2
+ import { u as m } from "./index-CCKe-Mpx.js";
3
+ var v = t[" useInsertionEffect ".trim().toString()] || m;
4
+ function w({
5
+ prop: e,
6
+ defaultProp: s,
7
+ onChange: o = () => {
8
+ },
9
+ caller: f
10
+ }) {
11
+ const [u, c, i] = R({
12
+ defaultProp: s,
13
+ onChange: o
14
+ }), n = e !== void 0, a = n ? e : u;
15
+ {
16
+ const r = t.useRef(e !== void 0);
17
+ t.useEffect(() => {
18
+ const l = r.current;
19
+ l !== n && console.warn(
20
+ `${f} is changing from ${l ? "controlled" : "uncontrolled"} to ${n ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
21
+ ), r.current = n;
22
+ }, [n, f]);
23
+ }
24
+ const d = t.useCallback(
25
+ (r) => {
26
+ if (n) {
27
+ const l = C(r) ? r(e) : r;
28
+ l !== e && i.current?.(l);
29
+ } else
30
+ c(r);
31
+ },
32
+ [n, e, c, i]
33
+ );
34
+ return [a, d];
35
+ }
36
+ function R({
37
+ defaultProp: e,
38
+ onChange: s
39
+ }) {
40
+ const [o, f] = t.useState(e), u = t.useRef(o), c = t.useRef(s);
41
+ return v(() => {
42
+ c.current = s;
43
+ }, [s]), t.useEffect(() => {
44
+ u.current !== o && (c.current?.(o), u.current = o);
45
+ }, [o, u]), [o, f, c];
46
+ }
47
+ function C(e) {
48
+ return typeof e == "function";
49
+ }
50
+ export {
51
+ w as u
52
+ };
@@ -0,0 +1,9 @@
1
+ function a(n, r, { checkForDefaultPrevented: t = !0 } = {}) {
2
+ return function(e) {
3
+ if (n?.(e), t === !1 || !e.defaultPrevented)
4
+ return r?.(e);
5
+ };
6
+ }
7
+ export {
8
+ a as c
9
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";const S=require("react"),w=require("./index-BqyOu62e.cjs"),$=require("./index-cwZN7ZY3.cjs"),A=require("./index-C8aODXfJ.cjs"),I=require("./index-MQ0c3ZX_.cjs"),D=require("./index-_XxjJPRD.cjs"),m=require("./index-CocSS1YK.cjs"),M=require("./index-DE3jjVoC.cjs"),k=require("./index-WIv2ndLu.cjs"),c=require("./jsx-runtime-BB_1_6y_.cjs");function L(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return i.default=e,Object.freeze(i)}const r=L(S);var f="Collapsible",[F,B]=$.createContextScope(f),[G,g]=F(f),q=r.forwardRef((e,i)=>{const{__scopeCollapsible:t,open:n,defaultOpen:o,disabled:l,onOpenChange:a,...b}=e,[u,d]=A.useControllableState({prop:n,defaultProp:o??!1,onChange:a,caller:f});return c.jsxRuntimeExports.jsx(G,{scope:t,disabled:l,contentId:k.useId(),open:u,onOpenToggle:r.useCallback(()=>d(x=>!x),[d]),children:c.jsxRuntimeExports.jsx(m.Primitive.div,{"data-state":j(u),"data-disabled":l?"":void 0,...b,ref:i})})});q.displayName=f;var T="CollapsibleTrigger",R=r.forwardRef((e,i)=>{const{__scopeCollapsible:t,...n}=e,o=g(T,t);return c.jsxRuntimeExports.jsx(m.Primitive.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":j(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:i,onClick:w.composeEventHandlers(e.onClick,o.onOpenToggle)})});R.displayName=T;var v="CollapsibleContent",h=r.forwardRef((e,i)=>{const{forceMount:t,...n}=e,o=g(v,e.__scopeCollapsible);return c.jsxRuntimeExports.jsx(M.Presence,{present:t||o.open,children:({present:l})=>c.jsxRuntimeExports.jsx(z,{...n,ref:i,present:l})})});h.displayName=v;var z=r.forwardRef((e,i)=>{const{__scopeCollapsible:t,present:n,children:o,...l}=e,a=g(v,t),[b,u]=r.useState(n),d=r.useRef(null),x=D.useComposedRefs(i,d),y=r.useRef(0),P=y.current,E=r.useRef(0),N=E.current,C=a.open||b,_=r.useRef(C),p=r.useRef(void 0);return r.useEffect(()=>{const s=requestAnimationFrame(()=>_.current=!1);return()=>cancelAnimationFrame(s)},[]),I.useLayoutEffect2(()=>{const s=d.current;if(s){p.current=p.current||{transitionDuration:s.style.transitionDuration,animationName:s.style.animationName},s.style.transitionDuration="0s",s.style.animationName="none";const O=s.getBoundingClientRect();y.current=O.height,E.current=O.width,_.current||(s.style.transitionDuration=p.current.transitionDuration,s.style.animationName=p.current.animationName),u(n)}},[a.open,n]),c.jsxRuntimeExports.jsx(m.Primitive.div,{"data-state":j(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!C,...l,ref:x,style:{"--radix-collapsible-content-height":P?`${P}px`:void 0,"--radix-collapsible-content-width":N?`${N}px`:void 0,...e.style},children:C&&o})});function j(e){return e?"open":"closed"}var H=q,J=R,K=h;exports.CollapsibleContent=h;exports.CollapsibleTrigger=R;exports.Content=K;exports.Root=H;exports.Trigger=J;exports.createCollapsibleScope=B;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import * as i from "react";
3
- import { c as h } from "./index-C0UREtMP.js";
3
+ import { c as h } from "./index-B695uy69.js";
4
4
  import { P as g, d as _ } from "./index-BMWt1NBG.js";
5
5
  import { u as R } from "./index-DLcqcWxM.js";
6
6
  import { u as m } from "./index-0ioNhtNM.js";
@@ -0,0 +1 @@
1
+ "use client";"use strict";const A=require("react"),g=require("./index-BqyOu62e.cjs"),q=require("./index-cwZN7ZY3.cjs"),x=require("./index-D3xJARPa.cjs"),M=require("./index-DE3jjVoC.cjs"),f=require("./index-CocSS1YK.cjs"),N=require("./index-Da298sEl.cjs"),$=require("./index-C8aODXfJ.cjs"),F=require("./index-WIv2ndLu.cjs"),d=require("./jsx-runtime-BB_1_6y_.cjs");function w(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const t=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,t.get?t:{enumerable:!0,get:()=>e[o]})}}return n.default=e,Object.freeze(n)}const v=w(A);var m="Tabs",[D]=q.createContextScope(m,[x.createRovingFocusGroupScope]),R=x.createRovingFocusGroupScope(),[G,T]=D(m),j=v.forwardRef((e,n)=>{const{__scopeTabs:o,value:t,onValueChange:i,defaultValue:c,orientation:r="horizontal",dir:u,activationMode:p="automatic",...b}=e,s=N.useDirection(u),[a,l]=$.useControllableState({prop:t,onChange:i,defaultProp:c??"",caller:m});return d.jsxRuntimeExports.jsx(G,{scope:o,baseId:F.useId(),value:a,onValueChange:l,orientation:r,dir:s,activationMode:p,children:d.jsxRuntimeExports.jsx(f.Primitive.div,{dir:s,"data-orientation":r,...b,ref:n})})});j.displayName=m;var E="TabsList",C=v.forwardRef((e,n)=>{const{__scopeTabs:o,loop:t=!0,...i}=e,c=T(E,o),r=R(o);return d.jsxRuntimeExports.jsx(x.Root,{asChild:!0,...r,orientation:c.orientation,dir:c.dir,loop:t,children:d.jsxRuntimeExports.jsx(f.Primitive.div,{role:"tablist","aria-orientation":c.orientation,...i,ref:n})})});C.displayName=E;var h="TabsTrigger",I=v.forwardRef((e,n)=>{const{__scopeTabs:o,value:t,disabled:i=!1,...c}=e,r=T(h,o),u=R(o),p=P(r.baseId,t),b=S(r.baseId,t),s=t===r.value;return d.jsxRuntimeExports.jsx(x.Item,{asChild:!0,...u,focusable:!i,active:s,children:d.jsxRuntimeExports.jsx(f.Primitive.button,{type:"button",role:"tab","aria-selected":s,"aria-controls":b,"data-state":s?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:p,...c,ref:n,onMouseDown:g.composeEventHandlers(e.onMouseDown,a=>{!i&&a.button===0&&a.ctrlKey===!1?r.onValueChange(t):a.preventDefault()}),onKeyDown:g.composeEventHandlers(e.onKeyDown,a=>{[" ","Enter"].includes(a.key)&&r.onValueChange(t)}),onFocus:g.composeEventHandlers(e.onFocus,()=>{const a=r.activationMode!=="manual";!s&&!i&&a&&r.onValueChange(t)})})})});I.displayName=h;var _="TabsContent",y=v.forwardRef((e,n)=>{const{__scopeTabs:o,value:t,forceMount:i,children:c,...r}=e,u=T(_,o),p=P(u.baseId,t),b=S(u.baseId,t),s=t===u.value,a=v.useRef(s);return v.useEffect(()=>{const l=requestAnimationFrame(()=>a.current=!1);return()=>cancelAnimationFrame(l)},[]),d.jsxRuntimeExports.jsx(M.Presence,{present:i||s,children:({present:l})=>d.jsxRuntimeExports.jsx(f.Primitive.div,{"data-state":s?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":p,hidden:!l,id:b,tabIndex:0,...r,ref:n,style:{...e.style,animationDuration:a.current?"0s":void 0},children:l&&c})})});y.displayName=_;function P(e,n){return`${e}-trigger-${n}`}function S(e,n){return`${e}-content-${n}`}var V=j,O=C,L=I,k=y;exports.Content=k;exports.List=O;exports.Root2=V;exports.Trigger=L;
@@ -3,9 +3,10 @@ import l from "react";
3
3
  import { c as Q } from "./index-FxyLF8MY.js";
4
4
  import { c as W, u as X } from "./index-CmWhhuj7.js";
5
5
  import { u as Z } from "./index-DLcqcWxM.js";
6
- import { u as D, c as $ } from "./index-C0UREtMP.js";
6
+ import { c as $ } from "./index-B695uy69.js";
7
+ import { u as D } from "./index-437EL2iq.js";
7
8
  import { P as T } from "./index-BMWt1NBG.js";
8
- import { c as O, R as ee, T as oe, C as re } from "./index-Ce7JfyIP.js";
9
+ import { c as O, R as ee, T as oe, C as re } from "./index-DWrql5dh.js";
9
10
  import { u as te } from "./index-Cv867SGx.js";
10
11
  import { j as n } from "./jsx-runtime-BzflLqGi.js";
11
12
  var d = "Accordion", ne = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [N, ce, ae] = W(d), [g] = Q(d, [
@@ -219,11 +220,11 @@ q.displayName = Y;
219
220
  function B(o) {
220
221
  return o ? "open" : "closed";
221
222
  }
222
- var he = M, _e = L, Re = G, we = U, Pe = q;
223
+ var _e = M, Re = L, we = G, Pe = U, je = q;
223
224
  export {
224
- Pe as C,
225
- Re as H,
226
- _e as I,
227
- he as R,
228
- we as T
225
+ je as C,
226
+ we as H,
227
+ Re as I,
228
+ _e as R,
229
+ Pe as T
229
230
  };
@@ -0,0 +1 @@
1
+ "use strict";function s(n,t,{checkForDefaultPrevented:r=!0}={}){return function(e){if(n?.(e),r===!1||!e.defaultPrevented)return t?.(e)}}exports.composeEventHandlers=s;
@@ -0,0 +1 @@
1
+ "use strict";const m=require("react"),v=require("./index-MQ0c3ZX_.cjs");function b(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const n=b(m);var g=n[" useInsertionEffect ".trim().toString()]||v.useLayoutEffect2;function R({prop:e,defaultProp:o,onChange:t=()=>{},caller:r}){const[l,u,i]=C({defaultProp:o,onChange:t}),c=e!==void 0,a=c?e:l;{const s=n.useRef(e!==void 0);n.useEffect(()=>{const f=s.current;f!==c&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),s.current=c},[c,r])}const d=n.useCallback(s=>{if(c){const f=S(s)?s(e):s;f!==e&&i.current?.(f)}else u(s)},[c,e,u,i]);return[a,d]}function C({defaultProp:e,onChange:o}){const[t,r]=n.useState(e),l=n.useRef(t),u=n.useRef(o);return g(()=>{u.current=o},[o]),n.useEffect(()=>{l.current!==t&&(u.current?.(t),l.current=t)},[t,l]),[t,r,u]}function S(e){return typeof e=="function"}exports.useControllableState=R;
@@ -0,0 +1,542 @@
1
+ "use client";
2
+ import * as u from "react";
3
+ import { useState as oe } from "react";
4
+ var j = 0;
5
+ function qe() {
6
+ u.useEffect(() => {
7
+ const e = document.querySelectorAll("[data-radix-focus-guard]");
8
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? z()), document.body.insertAdjacentElement("beforeend", e[1] ?? z()), j++, () => {
9
+ j === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), j--;
10
+ };
11
+ }, []);
12
+ }
13
+ function z() {
14
+ const e = document.createElement("span");
15
+ return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
16
+ }
17
+ var E = function() {
18
+ return E = Object.assign || function(t) {
19
+ for (var r, n = 1, a = arguments.length; n < a; n++) {
20
+ r = arguments[n];
21
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
22
+ }
23
+ return t;
24
+ }, E.apply(this, arguments);
25
+ };
26
+ function U(e, t) {
27
+ var r = {};
28
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
29
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
30
+ for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++)
31
+ t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
32
+ return r;
33
+ }
34
+ function ce(e, t, r) {
35
+ if (r || arguments.length === 2) for (var n = 0, a = t.length, o; n < a; n++)
36
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
37
+ return e.concat(o || Array.prototype.slice.call(t));
38
+ }
39
+ var O = "right-scroll-bar-position", I = "width-before-scroll-bar", ie = "with-scroll-bars-hidden", ue = "--removed-body-scroll-bar-size";
40
+ function X(e, t) {
41
+ return typeof e == "function" ? e(t) : e && (e.current = t), e;
42
+ }
43
+ function le(e, t) {
44
+ var r = oe(function() {
45
+ return {
46
+ // value
47
+ value: e,
48
+ // last callback
49
+ callback: t,
50
+ // "memoized" public interface
51
+ facade: {
52
+ get current() {
53
+ return r.value;
54
+ },
55
+ set current(n) {
56
+ var a = r.value;
57
+ a !== n && (r.value = n, r.callback(n, a));
58
+ }
59
+ }
60
+ };
61
+ })[0];
62
+ return r.callback = t, r.facade;
63
+ }
64
+ var se = typeof window < "u" ? u.useLayoutEffect : u.useEffect, Z = /* @__PURE__ */ new WeakMap();
65
+ function fe(e, t) {
66
+ var r = le(null, function(n) {
67
+ return e.forEach(function(a) {
68
+ return X(a, n);
69
+ });
70
+ });
71
+ return se(function() {
72
+ var n = Z.get(r);
73
+ if (n) {
74
+ var a = new Set(n), o = new Set(e), l = r.current;
75
+ a.forEach(function(c) {
76
+ o.has(c) || X(c, null);
77
+ }), o.forEach(function(c) {
78
+ a.has(c) || X(c, l);
79
+ });
80
+ }
81
+ Z.set(r, e);
82
+ }, [e]), r;
83
+ }
84
+ function de(e) {
85
+ return e;
86
+ }
87
+ function ve(e, t) {
88
+ t === void 0 && (t = de);
89
+ var r = [], n = !1, a = {
90
+ read: function() {
91
+ if (n)
92
+ throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
93
+ return r.length ? r[r.length - 1] : e;
94
+ },
95
+ useMedium: function(o) {
96
+ var l = t(o, n);
97
+ return r.push(l), function() {
98
+ r = r.filter(function(c) {
99
+ return c !== l;
100
+ });
101
+ };
102
+ },
103
+ assignSyncMedium: function(o) {
104
+ for (n = !0; r.length; ) {
105
+ var l = r;
106
+ r = [], l.forEach(o);
107
+ }
108
+ r = {
109
+ push: function(c) {
110
+ return o(c);
111
+ },
112
+ filter: function() {
113
+ return r;
114
+ }
115
+ };
116
+ },
117
+ assignMedium: function(o) {
118
+ n = !0;
119
+ var l = [];
120
+ if (r.length) {
121
+ var c = r;
122
+ r = [], c.forEach(o), l = r;
123
+ }
124
+ var p = function() {
125
+ var v = l;
126
+ l = [], v.forEach(o);
127
+ }, g = function() {
128
+ return Promise.resolve().then(p);
129
+ };
130
+ g(), r = {
131
+ push: function(v) {
132
+ l.push(v), g();
133
+ },
134
+ filter: function(v) {
135
+ return l = l.filter(v), r;
136
+ }
137
+ };
138
+ }
139
+ };
140
+ return a;
141
+ }
142
+ function he(e) {
143
+ e === void 0 && (e = {});
144
+ var t = ve(null);
145
+ return t.options = E({ async: !0, ssr: !1 }, e), t;
146
+ }
147
+ var $ = function(e) {
148
+ var t = e.sideCar, r = U(e, ["sideCar"]);
149
+ if (!t)
150
+ throw new Error("Sidecar: please provide `sideCar` property to import the right car");
151
+ var n = t.read();
152
+ if (!n)
153
+ throw new Error("Sidecar medium not found");
154
+ return u.createElement(n, E({}, r));
155
+ };
156
+ $.isSideCarExport = !0;
157
+ function me(e, t) {
158
+ return e.useMedium(t), $;
159
+ }
160
+ var J = he(), Y = function() {
161
+ }, D = u.forwardRef(function(e, t) {
162
+ var r = u.useRef(null), n = u.useState({
163
+ onScrollCapture: Y,
164
+ onWheelCapture: Y,
165
+ onTouchMoveCapture: Y
166
+ }), a = n[0], o = n[1], l = e.forwardProps, c = e.children, p = e.className, g = e.removeScrollBar, v = e.enabled, f = e.shards, d = e.sideCar, b = e.noRelative, w = e.noIsolation, i = e.inert, s = e.allowPinchZoom, h = e.as, m = h === void 0 ? "div" : h, S = e.gapMode, C = U(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), y = d, k = fe([r, t]), R = E(E({}, C), a);
167
+ return u.createElement(
168
+ u.Fragment,
169
+ null,
170
+ v && u.createElement(y, { sideCar: J, removeScrollBar: g, shards: f, noRelative: b, noIsolation: w, inert: i, setCallbacks: o, allowPinchZoom: !!s, lockRef: r, gapMode: S }),
171
+ l ? u.cloneElement(u.Children.only(c), E(E({}, R), { ref: k })) : u.createElement(m, E({}, R, { className: p, ref: k }), c)
172
+ );
173
+ });
174
+ D.defaultProps = {
175
+ enabled: !0,
176
+ removeScrollBar: !0,
177
+ inert: !1
178
+ };
179
+ D.classNames = {
180
+ fullWidth: I,
181
+ zeroRight: O
182
+ };
183
+ var ge = function() {
184
+ if (typeof __webpack_nonce__ < "u")
185
+ return __webpack_nonce__;
186
+ };
187
+ function ye() {
188
+ if (!document)
189
+ return null;
190
+ var e = document.createElement("style");
191
+ e.type = "text/css";
192
+ var t = ge();
193
+ return t && e.setAttribute("nonce", t), e;
194
+ }
195
+ function pe(e, t) {
196
+ e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
197
+ }
198
+ function be(e) {
199
+ var t = document.head || document.getElementsByTagName("head")[0];
200
+ t.appendChild(e);
201
+ }
202
+ var Se = function() {
203
+ var e = 0, t = null;
204
+ return {
205
+ add: function(r) {
206
+ e == 0 && (t = ye()) && (pe(t, r), be(t)), e++;
207
+ },
208
+ remove: function() {
209
+ e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
210
+ }
211
+ };
212
+ }, we = function() {
213
+ var e = Se();
214
+ return function(t, r) {
215
+ u.useEffect(function() {
216
+ return e.add(t), function() {
217
+ e.remove();
218
+ };
219
+ }, [t && r]);
220
+ };
221
+ }, ee = function() {
222
+ var e = we(), t = function(r) {
223
+ var n = r.styles, a = r.dynamic;
224
+ return e(n, a), null;
225
+ };
226
+ return t;
227
+ }, Ee = {
228
+ left: 0,
229
+ top: 0,
230
+ right: 0,
231
+ gap: 0
232
+ }, V = function(e) {
233
+ return parseInt(e || "", 10) || 0;
234
+ }, Ce = function(e) {
235
+ var t = window.getComputedStyle(document.body), r = t[e === "padding" ? "paddingLeft" : "marginLeft"], n = t[e === "padding" ? "paddingTop" : "marginTop"], a = t[e === "padding" ? "paddingRight" : "marginRight"];
236
+ return [V(r), V(n), V(a)];
237
+ }, Re = function(e) {
238
+ if (e === void 0 && (e = "margin"), typeof window > "u")
239
+ return Ee;
240
+ var t = Ce(e), r = document.documentElement.clientWidth, n = window.innerWidth;
241
+ return {
242
+ left: t[0],
243
+ top: t[1],
244
+ right: t[2],
245
+ gap: Math.max(0, n - r + t[2] - t[0])
246
+ };
247
+ }, ke = ee(), x = "data-scroll-locked", Ae = function(e, t, r, n) {
248
+ var a = e.left, o = e.top, l = e.right, c = e.gap;
249
+ return r === void 0 && (r = "margin"), `
250
+ .`.concat(ie, ` {
251
+ overflow: hidden `).concat(n, `;
252
+ padding-right: `).concat(c, "px ").concat(n, `;
253
+ }
254
+ body[`).concat(x, `] {
255
+ overflow: hidden `).concat(n, `;
256
+ overscroll-behavior: contain;
257
+ `).concat([
258
+ t && "position: relative ".concat(n, ";"),
259
+ r === "margin" && `
260
+ padding-left: `.concat(a, `px;
261
+ padding-top: `).concat(o, `px;
262
+ padding-right: `).concat(l, `px;
263
+ margin-left:0;
264
+ margin-top:0;
265
+ margin-right: `).concat(c, "px ").concat(n, `;
266
+ `),
267
+ r === "padding" && "padding-right: ".concat(c, "px ").concat(n, ";")
268
+ ].filter(Boolean).join(""), `
269
+ }
270
+
271
+ .`).concat(O, ` {
272
+ right: `).concat(c, "px ").concat(n, `;
273
+ }
274
+
275
+ .`).concat(I, ` {
276
+ margin-right: `).concat(c, "px ").concat(n, `;
277
+ }
278
+
279
+ .`).concat(O, " .").concat(O, ` {
280
+ right: 0 `).concat(n, `;
281
+ }
282
+
283
+ .`).concat(I, " .").concat(I, ` {
284
+ margin-right: 0 `).concat(n, `;
285
+ }
286
+
287
+ body[`).concat(x, `] {
288
+ `).concat(ue, ": ").concat(c, `px;
289
+ }
290
+ `);
291
+ }, q = function() {
292
+ var e = parseInt(document.body.getAttribute(x) || "0", 10);
293
+ return isFinite(e) ? e : 0;
294
+ }, Me = function() {
295
+ u.useEffect(function() {
296
+ return document.body.setAttribute(x, (q() + 1).toString()), function() {
297
+ var e = q() - 1;
298
+ e <= 0 ? document.body.removeAttribute(x) : document.body.setAttribute(x, e.toString());
299
+ };
300
+ }, []);
301
+ }, Pe = function(e) {
302
+ var t = e.noRelative, r = e.noImportant, n = e.gapMode, a = n === void 0 ? "margin" : n;
303
+ Me();
304
+ var o = u.useMemo(function() {
305
+ return Re(a);
306
+ }, [a]);
307
+ return u.createElement(ke, { styles: Ae(o, !t, a, r ? "" : "!important") });
308
+ }, H = !1;
309
+ if (typeof window < "u")
310
+ try {
311
+ var N = Object.defineProperty({}, "passive", {
312
+ get: function() {
313
+ return H = !0, !0;
314
+ }
315
+ });
316
+ window.addEventListener("test", N, N), window.removeEventListener("test", N, N);
317
+ } catch {
318
+ H = !1;
319
+ }
320
+ var A = H ? { passive: !1 } : !1, xe = function(e) {
321
+ return e.tagName === "TEXTAREA";
322
+ }, te = function(e, t) {
323
+ if (!(e instanceof Element))
324
+ return !1;
325
+ var r = window.getComputedStyle(e);
326
+ return (
327
+ // not-not-scrollable
328
+ r[t] !== "hidden" && // contains scroll inside self
329
+ !(r.overflowY === r.overflowX && !xe(e) && r[t] === "visible")
330
+ );
331
+ }, Te = function(e) {
332
+ return te(e, "overflowY");
333
+ }, Ne = function(e) {
334
+ return te(e, "overflowX");
335
+ }, Q = function(e, t) {
336
+ var r = t.ownerDocument, n = t;
337
+ do {
338
+ typeof ShadowRoot < "u" && n instanceof ShadowRoot && (n = n.host);
339
+ var a = re(e, n);
340
+ if (a) {
341
+ var o = ne(e, n), l = o[1], c = o[2];
342
+ if (l > c)
343
+ return !0;
344
+ }
345
+ n = n.parentNode;
346
+ } while (n && n !== r.body);
347
+ return !1;
348
+ }, We = function(e) {
349
+ var t = e.scrollTop, r = e.scrollHeight, n = e.clientHeight;
350
+ return [
351
+ t,
352
+ r,
353
+ n
354
+ ];
355
+ }, Be = function(e) {
356
+ var t = e.scrollLeft, r = e.scrollWidth, n = e.clientWidth;
357
+ return [
358
+ t,
359
+ r,
360
+ n
361
+ ];
362
+ }, re = function(e, t) {
363
+ return e === "v" ? Te(t) : Ne(t);
364
+ }, ne = function(e, t) {
365
+ return e === "v" ? We(t) : Be(t);
366
+ }, Le = function(e, t) {
367
+ return e === "h" && t === "rtl" ? -1 : 1;
368
+ }, Oe = function(e, t, r, n, a) {
369
+ var o = Le(e, window.getComputedStyle(t).direction), l = o * n, c = r.target, p = t.contains(c), g = !1, v = l > 0, f = 0, d = 0;
370
+ do {
371
+ if (!c)
372
+ break;
373
+ var b = ne(e, c), w = b[0], i = b[1], s = b[2], h = i - s - o * w;
374
+ (w || h) && re(e, c) && (f += h, d += w);
375
+ var m = c.parentNode;
376
+ c = m && m.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? m.host : m;
377
+ } while (
378
+ // portaled content
379
+ !p && c !== document.body || // self content
380
+ p && (t.contains(c) || t === c)
381
+ );
382
+ return (v && Math.abs(f) < 1 || !v && Math.abs(d) < 1) && (g = !0), g;
383
+ }, W = function(e) {
384
+ return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
385
+ }, _ = function(e) {
386
+ return [e.deltaX, e.deltaY];
387
+ }, K = function(e) {
388
+ return e && "current" in e ? e.current : e;
389
+ }, Ie = function(e, t) {
390
+ return e[0] === t[0] && e[1] === t[1];
391
+ }, De = function(e) {
392
+ return `
393
+ .block-interactivity-`.concat(e, ` {pointer-events: none;}
394
+ .allow-interactivity-`).concat(e, ` {pointer-events: all;}
395
+ `);
396
+ }, je = 0, M = [];
397
+ function Xe(e) {
398
+ var t = u.useRef([]), r = u.useRef([0, 0]), n = u.useRef(), a = u.useState(je++)[0], o = u.useState(ee)[0], l = u.useRef(e);
399
+ u.useEffect(function() {
400
+ l.current = e;
401
+ }, [e]), u.useEffect(function() {
402
+ if (e.inert) {
403
+ document.body.classList.add("block-interactivity-".concat(a));
404
+ var i = ce([e.lockRef.current], (e.shards || []).map(K), !0).filter(Boolean);
405
+ return i.forEach(function(s) {
406
+ return s.classList.add("allow-interactivity-".concat(a));
407
+ }), function() {
408
+ document.body.classList.remove("block-interactivity-".concat(a)), i.forEach(function(s) {
409
+ return s.classList.remove("allow-interactivity-".concat(a));
410
+ });
411
+ };
412
+ }
413
+ }, [e.inert, e.lockRef.current, e.shards]);
414
+ var c = u.useCallback(function(i, s) {
415
+ if ("touches" in i && i.touches.length === 2 || i.type === "wheel" && i.ctrlKey)
416
+ return !l.current.allowPinchZoom;
417
+ var h = W(i), m = r.current, S = "deltaX" in i ? i.deltaX : m[0] - h[0], C = "deltaY" in i ? i.deltaY : m[1] - h[1], y, k = i.target, R = Math.abs(S) > Math.abs(C) ? "h" : "v";
418
+ if ("touches" in i && R === "h" && k.type === "range")
419
+ return !1;
420
+ var T = Q(R, k);
421
+ if (!T)
422
+ return !0;
423
+ if (T ? y = R : (y = R === "v" ? "h" : "v", T = Q(R, k)), !T)
424
+ return !1;
425
+ if (!n.current && "changedTouches" in i && (S || C) && (n.current = y), !y)
426
+ return !0;
427
+ var G = n.current || y;
428
+ return Oe(G, s, i, G === "h" ? S : C);
429
+ }, []), p = u.useCallback(function(i) {
430
+ var s = i;
431
+ if (!(!M.length || M[M.length - 1] !== o)) {
432
+ var h = "deltaY" in s ? _(s) : W(s), m = t.current.filter(function(y) {
433
+ return y.name === s.type && (y.target === s.target || s.target === y.shadowParent) && Ie(y.delta, h);
434
+ })[0];
435
+ if (m && m.should) {
436
+ s.cancelable && s.preventDefault();
437
+ return;
438
+ }
439
+ if (!m) {
440
+ var S = (l.current.shards || []).map(K).filter(Boolean).filter(function(y) {
441
+ return y.contains(s.target);
442
+ }), C = S.length > 0 ? c(s, S[0]) : !l.current.noIsolation;
443
+ C && s.cancelable && s.preventDefault();
444
+ }
445
+ }
446
+ }, []), g = u.useCallback(function(i, s, h, m) {
447
+ var S = { name: i, delta: s, target: h, should: m, shadowParent: Ye(h) };
448
+ t.current.push(S), setTimeout(function() {
449
+ t.current = t.current.filter(function(C) {
450
+ return C !== S;
451
+ });
452
+ }, 1);
453
+ }, []), v = u.useCallback(function(i) {
454
+ r.current = W(i), n.current = void 0;
455
+ }, []), f = u.useCallback(function(i) {
456
+ g(i.type, _(i), i.target, c(i, e.lockRef.current));
457
+ }, []), d = u.useCallback(function(i) {
458
+ g(i.type, W(i), i.target, c(i, e.lockRef.current));
459
+ }, []);
460
+ u.useEffect(function() {
461
+ return M.push(o), e.setCallbacks({
462
+ onScrollCapture: f,
463
+ onWheelCapture: f,
464
+ onTouchMoveCapture: d
465
+ }), document.addEventListener("wheel", p, A), document.addEventListener("touchmove", p, A), document.addEventListener("touchstart", v, A), function() {
466
+ M = M.filter(function(i) {
467
+ return i !== o;
468
+ }), document.removeEventListener("wheel", p, A), document.removeEventListener("touchmove", p, A), document.removeEventListener("touchstart", v, A);
469
+ };
470
+ }, []);
471
+ var b = e.removeScrollBar, w = e.inert;
472
+ return u.createElement(
473
+ u.Fragment,
474
+ null,
475
+ w ? u.createElement(o, { styles: De(a) }) : null,
476
+ b ? u.createElement(Pe, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
477
+ );
478
+ }
479
+ function Ye(e) {
480
+ for (var t = null; e !== null; )
481
+ e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
482
+ return t;
483
+ }
484
+ const Ve = me(J, Xe);
485
+ var Fe = u.forwardRef(function(e, t) {
486
+ return u.createElement(D, E({}, e, { ref: t, sideCar: Ve }));
487
+ });
488
+ Fe.classNames = D.classNames;
489
+ var He = function(e) {
490
+ if (typeof document > "u")
491
+ return null;
492
+ var t = Array.isArray(e) ? e[0] : e;
493
+ return t.ownerDocument.body;
494
+ }, P = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), L = {}, F = 0, ae = function(e) {
495
+ return e && (e.host || ae(e.parentNode));
496
+ }, Ge = function(e, t) {
497
+ return t.map(function(r) {
498
+ if (e.contains(r))
499
+ return r;
500
+ var n = ae(r);
501
+ return n && e.contains(n) ? n : (console.error("aria-hidden", r, "in not contained inside", e, ". Doing nothing"), null);
502
+ }).filter(function(r) {
503
+ return !!r;
504
+ });
505
+ }, ze = function(e, t, r, n) {
506
+ var a = Ge(t, Array.isArray(e) ? e : [e]);
507
+ L[r] || (L[r] = /* @__PURE__ */ new WeakMap());
508
+ var o = L[r], l = [], c = /* @__PURE__ */ new Set(), p = new Set(a), g = function(f) {
509
+ !f || c.has(f) || (c.add(f), g(f.parentNode));
510
+ };
511
+ a.forEach(g);
512
+ var v = function(f) {
513
+ !f || p.has(f) || Array.prototype.forEach.call(f.children, function(d) {
514
+ if (c.has(d))
515
+ v(d);
516
+ else
517
+ try {
518
+ var b = d.getAttribute(n), w = b !== null && b !== "false", i = (P.get(d) || 0) + 1, s = (o.get(d) || 0) + 1;
519
+ P.set(d, i), o.set(d, s), l.push(d), i === 1 && w && B.set(d, !0), s === 1 && d.setAttribute(r, "true"), w || d.setAttribute(n, "true");
520
+ } catch (h) {
521
+ console.error("aria-hidden: cannot operate on ", d, h);
522
+ }
523
+ });
524
+ };
525
+ return v(t), c.clear(), F++, function() {
526
+ l.forEach(function(f) {
527
+ var d = P.get(f) - 1, b = o.get(f) - 1;
528
+ P.set(f, d), o.set(f, b), d || (B.has(f) || f.removeAttribute(n), B.delete(f)), b || f.removeAttribute(r);
529
+ }), F--, F || (P = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), L = {});
530
+ };
531
+ }, Qe = function(e, t, r) {
532
+ r === void 0 && (r = "data-aria-hidden");
533
+ var n = Array.from(Array.isArray(e) ? e : [e]), a = He(e);
534
+ return a ? (n.push.apply(n, Array.from(a.querySelectorAll("[aria-live], script"))), ze(n, a, r, "aria-hidden")) : function() {
535
+ return null;
536
+ };
537
+ };
538
+ export {
539
+ Fe as R,
540
+ Qe as h,
541
+ qe as u
542
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";const x=require("react"),A=require("./index-_XxjJPRD.cjs"),M=require("./index-CocSS1YK.cjs"),O=require("./index-CzY-WZXL.cjs"),k=require("./jsx-runtime-BB_1_6y_.cjs");function w(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const d=w(x);var F="focusScope.autoFocusOnMount",y="focusScope.autoFocusOnUnmount",S={bubbles:!1,cancelable:!0},K="FocusScope",C=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:s=!1,onMountAutoFocus:p,onUnmountAutoFocus:I,...L}=e,[o,P]=d.useState(null),E=O.useCallbackRef(p),v=O.useCallbackRef(I),b=d.useRef(null),_=A.useComposedRefs(t,u=>P(u)),a=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(s){let u=function(i){if(a.paused||!o)return;const r=i.target;o.contains(r)?b.current=r:f(b.current,{select:!0})},l=function(i){if(a.paused||!o)return;const r=i.relatedTarget;r!==null&&(o.contains(r)||f(b.current,{select:!0}))},c=function(i){if(document.activeElement===document.body)for(const T of i)T.removedNodes.length>0&&f(o)};document.addEventListener("focusin",u),document.addEventListener("focusout",l);const m=new MutationObserver(c);return o&&m.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",l),m.disconnect()}}},[s,o,a.paused]),d.useEffect(()=>{if(o){N.add(a);const u=document.activeElement;if(!o.contains(u)){const c=new CustomEvent(F,S);o.addEventListener(F,E),o.dispatchEvent(c),c.defaultPrevented||(j(W(R(o)),{select:!0}),document.activeElement===u&&f(o))}return()=>{o.removeEventListener(F,E),setTimeout(()=>{const c=new CustomEvent(y,S);o.addEventListener(y,v),o.dispatchEvent(c),c.defaultPrevented||f(u??document.body,{select:!0}),o.removeEventListener(y,v),N.remove(a)},0)}}},[o,E,v,a]);const U=d.useCallback(u=>{if(!n&&!s||a.paused)return;const l=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,c=document.activeElement;if(l&&c){const m=u.currentTarget,[i,r]=D(m);i&&r?!u.shiftKey&&c===r?(u.preventDefault(),n&&f(i,{select:!0})):u.shiftKey&&c===i&&(u.preventDefault(),n&&f(r,{select:!0})):c===m&&u.preventDefault()}},[n,s,a.paused]);return k.jsxRuntimeExports.jsx(M.Primitive.div,{tabIndex:-1,...L,ref:_,onKeyDown:U})});C.displayName=K;function j(e,{select:t=!1}={}){const n=document.activeElement;for(const s of e)if(f(s,{select:t}),document.activeElement!==n)return}function D(e){const t=R(e),n=h(t,e),s=h(t.reverse(),e);return[n,s]}function R(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const p=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||p?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function h(e,t){for(const n of e)if(!q(n,{upTo:t}))return n}function q(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function H(e){return e instanceof HTMLInputElement&&"select"in e}function f(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&H(e)&&t&&e.select()}}var N=V();function V(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=g(e,t),e.unshift(t)},remove(t){e=g(e,t),e[0]?.resume()}}}function g(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}function W(e){return e.filter(t=>t.tagName!=="A")}exports.FocusScope=C;