1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,79196,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(81140),o=e.i(20783),i=e.i(42004),a=e.i(10772),l=e.i(87595),s=e.i(26330),u=e.i(65491),c=e.i(74606),d=e.i(96626),f=e.i(70805),p=e.i(3536),m=e.i(85369),v=e.i(86312),h=e.i(65139),y="Dialog",[g,b]=(0,i.createContextScope)(y),[E,w]=g(y),C=e=>{let{__scopeDialog:r,children:o,open:i,defaultOpen:s,onOpenChange:u,modal:c=!0}=e,d=n.useRef(null),f=n.useRef(null),[p,m]=(0,l.useControllableState)({prop:i,defaultProp:s??!1,onChange:u,caller:y});return(0,t.jsx)(E,{scope:r,triggerRef:d,contentRef:f,contentId:(0,a.useId)(),titleId:(0,a.useId)(),descriptionId:(0,a.useId)(),open:p,onOpenChange:m,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),modal:c,children:o})};C.displayName=y;var R="DialogTrigger";n.forwardRef((e,n)=>{let{__scopeDialog:i,...a}=e,l=w(R,i),s=(0,o.useComposedRefs)(n,l.triggerRef);return(0,t.jsx)(f.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":V(l.open),...a,ref:s,onClick:(0,r.composeEventHandlers)(e.onClick,l.onOpenToggle)})}).displayName=R;var x="DialogPortal",[N,S]=g(x,{forceMount:void 0}),P=e=>{let{__scopeDialog:r,forceMount:o,children:i,container:a}=e,l=w(x,r);return(0,t.jsx)(N,{scope:r,forceMount:o,children:n.Children.map(i,e=>(0,t.jsx)(d.Presence,{present:o||l.open,children:(0,t.jsx)(c.Portal,{asChild:!0,container:a,children:e})}))})};P.displayName=x;var O="DialogOverlay",D=n.forwardRef((e,n)=>{let r=S(O,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,a=w(O,e.__scopeDialog);return a.modal?(0,t.jsx)(d.Presence,{present:o||a.open,children:(0,t.jsx)(T,{...i,ref:n})}):null});D.displayName=O;var j=(0,h.createSlot)("DialogOverlay.RemoveScroll"),T=n.forwardRef((e,n)=>{let{__scopeDialog:r,...o}=e,i=w(O,r);return(0,t.jsx)(m.RemoveScroll,{as:j,allowPinchZoom:!0,shards:[i.contentRef],children:(0,t.jsx)(f.Primitive.div,{"data-state":V(i.open),...o,ref:n,style:{pointerEvents:"auto",...o.style}})})}),A="DialogContent",L=n.forwardRef((e,n)=>{let r=S(A,e.__scopeDialog),{forceMount:o=r.forceMount,...i}=e,a=w(A,e.__scopeDialog);return(0,t.jsx)(d.Presence,{present:o||a.open,children:a.modal?(0,t.jsx)(I,{...i,ref:n}):(0,t.jsx)(_,{...i,ref:n})})});L.displayName=A;var I=n.forwardRef((e,i)=>{let a=w(A,e.__scopeDialog),l=n.useRef(null),s=(0,o.useComposedRefs)(i,a.contentRef,l);return n.useEffect(()=>{let e=l.current;if(e)return(0,v.hideOthers)(e)},[]),(0,t.jsx)(M,{...e,ref:s,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,r.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),a.triggerRef.current?.focus()}),onPointerDownOutside:(0,r.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,r.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault())})}),_=n.forwardRef((e,r)=>{let o=w(A,e.__scopeDialog),i=n.useRef(!1),a=n.useRef(!1);return(0,t.jsx)(M,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||o.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));let n=t.target;o.triggerRef.current?.contains(n)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),M=n.forwardRef((e,r)=>{let{__scopeDialog:i,trapFocus:a,onOpenAutoFocus:l,onCloseAutoFocus:c,...d}=e,f=w(A,i),m=n.useRef(null),v=(0,o.useComposedRefs)(r,m);return(0,p.useFocusGuards)(),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.FocusScope,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:l,onUnmountAutoFocus:c,children:(0,t.jsx)(s.DismissableLayer,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":V(f.open),...d,ref:v,onDismiss:()=>f.onOpenChange(!1)})}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Z,{titleId:f.titleId}),(0,t.jsx)(X,{contentRef:m,descriptionId:f.descriptionId})]})]})}
1),k="DialogTitle",F=n.forwardRef((e,n)=>{let{__scopeDialog:r,...o}=e,i=w(k,r);return(0,t.jsx)(f.Primitive.h2,{id:i.titleId,...o,ref:n})});F.displayName=k;var W="DialogDescription",$=n.forwardRef((e,n)=>{let{__scopeDialog:r,...o}=e,i=w(W,r);return(0,t.jsx)(f.Primitive.p,{id:i.descriptionId,...o,ref:n})});$.displayName=W;var B="DialogClose",U=n.forwardRef((e,n)=>{let{__scopeDialog:o,...i}=e,a=w(B,o);return(0,t.jsx)(f.Primitive.button,{type:"button",...i,ref:n,onClick:(0,r.composeEventHandlers)(e.onClick,()=>a.onOpenChange(!1))})});function V(e){return e?"open":"closed"}U.displayName=B;var H="DialogTitleWarning",[K,z]=(0,i.createContext)(H,{contentName:A,titleName:k,docsSlug:"dialog"}),Z=({titleId:e})=>{let t=z(H),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 2 3If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 4 5For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return n.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},X=({contentRef:e,descriptionId:t})=>{let r=z("DialogDescriptionWarning"),o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return n.useEffect(()=>{let n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},Y=e.i(48020);let q=n.forwardRef(({className:e,...n},r)=>(0,t.jsx)(D,{ref:r,className:(0,Y.cn)("fixed inset-0 z-50 bg-black/45 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",!e&&"backdrop-blur-sm",e),...n}));q.displayName=D.displayName;let G=n.forwardRef(({className:e,overlayClassName:n,...r},o)=>(0,t.jsxs)(P,{children:[(0,t.jsx)(q,{className:n}),(0,t.jsx)(L,{ref:o,className:(0,Y.cn)("fixed left-1/2 top-1/2 z-50 w-[min(92vw,460px)] max-h-[85vh] transform-[translate(-50%,-50%)] overflow-y-auto rounded-xl border border-border/70 bg-card/95 p-6 shadow-[0_30px_60px_rgba(0,0,0,0.2)] backdrop-blur data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",e),...r})]}));G.displayName=L.displayName;let J=n.forwardRef(({className:e,...n},r)=>(0,t.jsx)(F,{ref:r,className:(0,Y.cn)("text-lg font-semibold text-foreground",e),...n}));J.displayName=F.displayName;let Q=n.forwardRef(({className:e,...n},r)=>(0,t.jsx)($,{ref:r,className:(0,Y.cn)("text-sm text-muted-foreground",e),...n}));Q.displayName=$.displayName,e.s(["Dialog",0,C,"DialogClose",0,U,"DialogContent",0,G,"DialogDescription",0,Q,"DialogFooter",0,function({className:e,...n}){return(0,t.jsx)("div",{className:(0,Y.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...n})},"DialogHeader",0,function({className:e,...n}){return(0,t.jsx)("div",{className:(0,Y.cn)("flex flex-col gap-1 text-left",e),...n})},"DialogTitle",0,J],79196)},81140,e=>{"use strict";"u">typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",0,function(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}])},42004,e=>{"use strict";var t=e.i(71645),n=e.i(43476);e.s(["createContext",0,function(e,r){let o=t.createContext(r),i=e=>{let{children:r,...i}=e,a=t.useMemo(()=>i,Object.values(i));return(0,n.jsx)(o.Provider,{value:a,children:r})};return i.displayName=e+"Provider",[i,function(n){let i=t.useContext(o);if(i)return i;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${e}\``)}]},"createContextScope",0,function(e,r=[]){let o=[],i=()=>{let n=o.map(e=>t.createContext(e));return function(r){let o=r?.[e]||n;return t.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return i.scopeName=e,[function(r,i){let a=t.createContext(i),l=o.length;o=[...o,i];let s=r=>{let{scope:o,children:i,...s}=r,u=o?.[e]?.[l]||a,c=t.useMemo(()=>s,Object.values(s));return(0,n.jsx)(u.Provider,{value:c,children:i})};return s.displayName=r+"Provider",[s,function(n,o){let s=o?.[e]?.[l]||a,u=t.useContext(s);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${r}\``)}]},function(...e){let n=e[0];if(1===e.length)return n;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return t.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}(i,...r)]}])},70805,65139,e=>{"use strict";var t=e.i(71645);e.i(74080);var n=e.i(20783),r=e.i(43476);function o(e){var o;let i,l=(o=e,(i=t.forwardRef((e,r)=>{let{children:o,...i}=e;if(t.isValidElement(o)){var a;let e,l,s=(a=o,(l=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.
5isReactWarning)?a.ref:(l=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(i,o.props);return o.type!==t.Fragment&&(u.ref=r?(0,n.composeRefs)(r,s):s),t.cloneElement(o,u)}return t.Children.count(o)>1?t.Children.only(null):null})).displayName=`${o}.SlotClone`,i),s=t.forwardRef((e,n)=>{let{children:o,...i}=e,s=t.Children.toArray(o),u=s.find(a);if(u){let e=u.props.children,o=s.map(n=>n!==u?n:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,r.jsx)(l,{...i,ref:n,children:t.isValidElement(e)?t.cloneElement(e,void 0,o):null})}return(0,r.jsx)(l,{...i,ref:n,children:o})});return s.displayName=`${e}.Slot`,s}var i=Symbol("radix.slottable");function a(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===i}e.s(["createSlot",0,o],65139);var l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{let i=o(`Primitive.${n}`),a=t.forwardRef((e,t)=>{let{asChild:o,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,r.jsx)(o?i:n,{...a,ref:t})});return a.displayName=`Primitive.${n}`,{...e,[n]:a}},{});e.s(["Primitive",0,l],70805)},26330,e=>{"use strict";var t,n=e.i(71645),r=e.i(81140),o=e.i(8112),i=e.i(20783),a=e.i(30207),l=e.i(43476),s="dismissableLayer.update",u=n.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),c=n.forwardRef((e,c)=>{let{disableOutsidePointerEvents:p=!1,onEscapeKeyDown:m,onPointerDownOutside:v,onFocusOutside:h,onInteractOutside:y,onDismiss:g,...b}=e,E=n.useContext(u),[w,C]=n.useState(null),R=w?.ownerDocument??globalThis?.document,[,x]=n.useState({}),N=(0,i.useComposedRefs)(c,e=>C(e)),S=Array.from(E.layers),[P]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),O=S.indexOf(P),D=w?S.indexOf(w):-1,j=E.layersWithOutsidePointerEventsDisabled.size>0,T=D>=O,A=function(e,t=globalThis?.document){let r=(0,a.useCallbackRef)(e),o=n.useRef(!1),i=n.useRef(()=>{});return n.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let n=function(){f("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=n,t.addEventListener("click",i.current,{once:!0})):n()}else t.removeEventListener("click",i.current);o.current=!1},n=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(n),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...E.branches].some(e=>e.contains(t));T&&!n&&(v?.(e),y?.(e),e.defaultPrevented||g?.())},R),L=function(e,t=globalThis?.document){let r=(0,a.useCallbackRef)(e),o=n.useRef(!1);return n.useEffect(()=>{let e=e=>{e.target&&!o.current&&f("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;![...E.branches].some(e=>e.contains(t))&&(h?.(e),y?.(e),e.defaultPrevented||g?.())},R);return!function(e,t=globalThis?.document){let r=(0,a.useCallbackRef)(e);n.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{D===E.layers.size-1&&(m?.(e),!e.defaultPrevented&&g&&(e.preventDefault(),g()))},R),n.useEffect(()=>{if(w)return p&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(t=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(w)),E.layers.add(w),d(),()=>{p&&1===E.layersWithOutsidePointerEventsDisabled.size&&(R.body.style.pointerEvents=t)}},[w,R,p,E]),n.useEffect(()=>()=>{w&&(E.layers.delete(w),E.layersWithOutsidePointerEventsDisabled.delete(w),d())},[w,E]),n.useEffect(()=>{let e=()=>x({});return document.addEventListener(s,e),()=>document.removeEventListener(s,e)},[]),(0,l.jsx)(o.Primitive.div,{...b,ref:N,style:{pointerEvents:j?T?"auto":"none":void 0,...e.style},onFocusCapture:(0,r.composeEventHandlers)(e.onFocusCapture,L.onFocusCapture),onBlurCapture:(0,r.composeEventHandlers)(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:(0,r.composeEventHandlers)(e.onPointerDownCapture,A.onPointerDownCapture)})});function d(){let e=new CustomEvent(s);document.dispatchEvent(e)}function f(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,o.dispatchDiscreteCustomEvent)(i,a):i.dispatchEvent(a)}c.displayName="DismissableLayer",n.forwardRef((e,t)=>
5{let r=n.useContext(u),a=n.useRef(null),s=(0,i.useComposedRefs)(t,a);return n.useEffect(()=>{let e=a.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,l.jsx)(o.Primitive.div,{...e,ref:s})}).displayName="DismissableLayerBranch",e.s(["DismissableLayer",0,c],26330)},8112,e=>{"use strict";var t=e.i(71645),n=e.i(74080),r=e.i(20783),o=e.i(43476),i=Symbol("radix.slottable");function a(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===i}var l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{var i,l;let s,u,c,d=(l=i=`Primitive.${n}`,(s=t.forwardRef((e,n)=>{let{children:o,...i}=e;if(t.isValidElement(o)){var a;let e,l,s=(a=o,(l=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(l=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(i,o.props);return o.type!==t.Fragment&&(u.ref=n?(0,r.composeRefs)(n,s):s),t.cloneElement(o,u)}return t.Children.count(o)>1?t.Children.only(null):null})).displayName=`${l}.SlotClone`,u=s,(c=t.forwardRef((e,n)=>{let{children:r,...i}=e,l=t.Children.toArray(r),s=l.find(a);if(s){let e=s.props.children,r=l.map(n=>n!==s?n:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,o.jsx)(u,{...i,ref:n,children:t.isValidElement(e)?t.cloneElement(e,void 0,r):null})}return(0,o.jsx)(u,{...i,ref:n,children:r})})).displayName=`${i}.Slot`,c),f=t.forwardRef((e,t)=>{let{asChild:r,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(r?d:n,{...i,ref:t})});return f.displayName=`Primitive.${n}`,{...e,[n]:f}},{});e.s(["Primitive",0,l,"dispatchDiscreteCustomEvent",0,function(e,t){e&&n.flushSync(()=>e.dispatchEvent(t))}],8112)},3536,e=>{"use strict";var t=e.i(71645),n=0;function r(){let e=document.createElement("span");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}e.s(["useFocusGuards",0,function(){t.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??r()),document.body.insertAdjacentElement("beforeend",e[1]??r()),n++,()=>{1===n&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),n--}},[])}])},65491,e=>{"use strict";let t;var n=e.i(71645),r=e.i(20783);e.i(74080);var o=e.i(43476),i=Symbol("radix.slottable");function a(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===i}var l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var i,l;let s,u,c,d=(l=i=`Primitive.${t}`,(s=n.forwardRef((e,t)=>{let{children:o,...i}=e;if(n.isValidElement(o)){var a;let e,l,s=(a=o,(l=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(l=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(i,o.props);return o.type!==n.Fragment&&(u.ref=t?(0,r.composeRefs)(t,s):s),n.cloneElement(o,u)}return n.Children.count(o)>1?n.Children.only(null):null})).displayName=`${l}.SlotClone`,u=s,(c=n.forwardRef((e,t)=>{let{children:r,...i}=e,l=n.Children.toArray(r),s=l.find(a);if(s){let e=s.props.children,r=l.map(t=>t!==s?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,o.jsx)(u,{...i,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,o.jsx)(u,{...i,ref:t,children:r})})).displayName=`${i}
5.Slot`,c),f=n.forwardRef((e,n)=>{let{asChild:r,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(r?d:t,{...i,ref:n})});return f.displayName=`Primitive.${t}`,{...e,[t]:f}},{}),s=e.i(30207),u="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=n.forwardRef((e,t)=>{let{loop:i=!1,trapped:a=!1,onMountAutoFocus:f,onUnmountAutoFocus:y,...g}=e,[b,E]=n.useState(null),w=(0,s.useCallbackRef)(f),C=(0,s.useCallbackRef)(y),R=n.useRef(null),x=(0,r.useComposedRefs)(t,e=>E(e)),N=n.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;n.useEffect(()=>{if(a){let e=function(e){if(N.paused||!b)return;let t=e.target;b.contains(t)?R.current=t:v(R.current,{select:!0})},t=function(e){if(N.paused||!b)return;let t=e.relatedTarget;null!==t&&(b.contains(t)||v(R.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&v(b)});return b&&n.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[a,b,N.paused]),n.useEffect(()=>{if(b){h.add(N);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(u,d);b.addEventListener(u,w),b.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(v(r,{select:t}),document.activeElement!==n)return}(p(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&v(b))}return()=>{b.removeEventListener(u,w),setTimeout(()=>{let t=new CustomEvent(c,d);b.addEventListener(c,C),b.dispatchEvent(t),t.defaultPrevented||v(e??document.body,{select:!0}),b.removeEventListener(c,C),h.remove(N)},0)}}},[b,w,C,N]);let S=n.useCallback(e=>{if(!i&&!a||N.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){var r;let t,o=e.currentTarget,[a,l]=[m(t=p(r=o),r),m(t.reverse(),r)];a&&l?e.shiftKey||n!==l?e.shiftKey&&n===a&&(e.preventDefault(),i&&v(l,{select:!0})):(e.preventDefault(),i&&v(a,{select:!0})):n===o&&e.preventDefault()}},[i,a,N.paused]);return(0,o.jsx)(l.div,{tabIndex:-1,...g,ref:x,onKeyDown:S})});function p(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function m(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function v(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}f.displayName="FocusScope";var h=(t=[],{add(e){let n=t[0];e!==n&&n?.pause(),(t=y(t,e)).unshift(e)},remove(e){t=y(t,e),t[0]?.resume()}});function y(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}e.s(["FocusScope",0,f],65491)},10772,e=>{"use strict";var t=e.i(71645),n=e.i(34620),r=t[" useId ".trim().toString()]||(()=>void 0),o=0;e.s(["useId",0,function(e){let[i,a]=t.useState(r());return(0,n.useLayoutEffect)(()=>{e||a(e=>e??String(o++))},[e]),e||(i?`radix-${i}`:"")}])},74606,e=>{"use strict";var t=e.i(71645),n=e.i(74080),r=e.i(20783),o=e.i(43476),i=Symbol("radix.slottable");function a(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===i}var l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{var i,l;let s,u,c,d=(l=i=`Primitive.${n}`,(s=t.forwardRef((e,n)=>{let{children:o,...i}=e;if(t.isValidElement(o)){var a;let e,l,s=(a=o,(l=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(l=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.
5isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(i,o.props);return o.type!==t.Fragment&&(u.ref=n?(0,r.composeRefs)(n,s):s),t.cloneElement(o,u)}return t.Children.count(o)>1?t.Children.only(null):null})).displayName=`${l}.SlotClone`,u=s,(c=t.forwardRef((e,n)=>{let{children:r,...i}=e,l=t.Children.toArray(r),s=l.find(a);if(s){let e=s.props.children,r=l.map(n=>n!==s?n:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,o.jsx)(u,{...i,ref:n,children:t.isValidElement(e)?t.cloneElement(e,void 0,r):null})}return(0,o.jsx)(u,{...i,ref:n,children:r})})).displayName=`${i}.Slot`,c),f=t.forwardRef((e,t)=>{let{asChild:r,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(r?d:n,{...i,ref:t})});return f.displayName=`Primitive.${n}`,{...e,[n]:f}},{}),s=e.i(34620),u=t.forwardRef((e,r)=>{let{container:i,...a}=e,[u,c]=t.useState(!1);(0,s.useLayoutEffect)(()=>c(!0),[]);let d=i||u&&globalThis?.document?.body;return d?n.default.createPortal((0,o.jsx)(l.div,{...a,ref:r}),d):null});u.displayName="Portal",e.s(["Portal",0,u],74606)},96626,e=>{"use strict";var t=e.i(71645),n=e.i(20783),r=e.i(34620),o=e=>{var o;let a,l,{present:s,children:u}=e,c=function(e){var n,o;let[a,l]=t.useState(),s=t.useRef(null),u=t.useRef(e),c=t.useRef("none"),[d,f]=(n=e?"mounted":"unmounted",o={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,t)=>o[e][t]??e,n));return t.useEffect(()=>{let e=i(s.current);c.current="mounted"===d?e:"none"},[d]),(0,r.useLayoutEffect)(()=>{let t=s.current,n=u.current;if(n!==e){let r=c.current,o=i(t);e?f("MOUNT"):"none"===o||t?.display==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,r.useLayoutEffect)(()=>{if(a){let e,t=a.ownerDocument.defaultView??window,n=n=>{let r=i(s.current).includes(CSS.escape(n.animationName));if(n.target===a&&r&&(f("ANIMATION_END"),!u.current)){let n=a.style.animationFillMode;a.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===a.style.animationFillMode&&(a.style.animationFillMode=n)})}},r=e=>{e.target===a&&(c.current=i(s.current))};return a.addEventListener("animationstart",r),a.addEventListener("animationcancel",n),a.addEventListener("animationend",n),()=>{t.clearTimeout(e),a.removeEventListener("animationstart",r),a.removeEventListener("animationcancel",n),a.removeEventListener("animationend",n)}}f("ANIMATION_END")},[a,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:t.useCallback(e=>{s.current=e?getComputedStyle(e):null,l(e)},[])}}(s),d="function"==typeof u?u({present:c.isPresent}):t.Children.only(u),f=(0,n.useComposedRefs)(c.ref,(o=d,(l=(a=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?o.ref:(l=(a=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?o.props.ref:o.props.ref||o.ref));return"function"==typeof u||c.isPresent?t.cloneElement(d,{ref:f}):null};function i(e){return e?.animationName||"none"}o.displayName="Presence",e.s(["Presence",0,o])},30207,e=>{"use strict";var t=e.i(71645);e.s(["useCallbackRef",0,function(e){let n=t.useRef(e);return t.useEffect(()=>{n.current=e}),t.useMemo(()=>(...e)=>n.current?.(...e),[])}])},87595,e=>{"use strict";var t=e.i(71645),n=e.i(34620);t[" useEffectEvent ".trim().toString()],t[" useInsertionEffect ".trim().toString()];var r=t[" useInsertionEffect ".trim().toString()]||n.useLayoutEffect;Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",0,function({prop:e,defaultProp:n,onChange:o=()=>{},caller:i}){let[a,l,s]=function({defaultProp:e,onChange:n}){let[o,i]=t.useState(e),a=t.useRef(o),l=t.useRef(n);return r(()=>{l.current=n},[n]),t.useEffect(()=>{a.current!==o&&(l.current?.(o),a.current=o)},[o,a]),[o,i,l]}({defaultProp:n,onChange:o}),u=void 0!==e,c=u?e:a;{let n=t.useRef(void 0!==e);t.useEffect(()=>{let e=n.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${i} is changing from ${e?"controlled":"uncontrolled"} to ${t}. 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.`)}n.current=u},[u,i])}return[c,t.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&s.current?.(n)}else l(t)},[u,e,l,s])]}],87595)},34620,e=>{"use strict";var t=e.i(71645),n=globalThis?.document?t.useLayoutEffect:()=>{};
5e.s(["useLayoutEffect",0,n])},86312,e=>{"use strict";var t=new WeakMap,n=new WeakMap,r={},o=0,i=function(e){return e&&(e.host||i(e.parentNode))},a=function(e,a,l,s){var u=(Array.isArray(e)?e:[e]).map(function(e){if(a.contains(e))return e;var t=i(e);return t&&a.contains(t)?t:(console.error("aria-hidden",e,"in not contained inside",a,". Doing nothing"),null)}).filter(function(e){return!!e});r[l]||(r[l]=new WeakMap);var c=r[l],d=[],f=new Set,p=new Set(u),m=function(e){!e||f.has(e)||(f.add(e),m(e.parentNode))};u.forEach(m);var v=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))v(e);else try{var r=e.getAttribute(s),o=null!==r&&"false"!==r,i=(t.get(e)||0)+1,a=(c.get(e)||0)+1;t.set(e,i),c.set(e,a),d.push(e),1===i&&o&&n.set(e,!0),1===a&&e.setAttribute(l,"true"),o||e.setAttribute(s,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return v(a),f.clear(),o++,function(){d.forEach(function(e){var r=t.get(e)-1,o=c.get(e)-1;t.set(e,r),c.set(e,o),r||(n.has(e)||e.removeAttribute(s),n.delete(e)),o||e.removeAttribute(l)}),--o||(t=new WeakMap,t=new WeakMap,n=new WeakMap,r={})}};e.s(["hideOthers",0,function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),a(r,o,n,"aria-hidden")):function(){return null}}])},85369,e=>{"use strict";var t,n,r,o,i,a,l,s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function u(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var c=("function"==typeof SuppressedError&&SuppressedError,e.i(71645)),d="right-scroll-bar-position",f="width-before-scroll-bar";function p(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var m="u">typeof window?c.useLayoutEffect:c.useEffect,v=new WeakMap,h=(void 0===t&&(t={}),(void 0===n&&(n=function(e){return e}),r=[],o=!1,i={read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var t=n(e,o);return r.push(t),function(){r=r.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(o=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){o=!0;var t=[];if(r.length){var n=r;r=[],n.forEach(e),t=r}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}}).options=s({async:!0,ssr:!1},t),i),y=function(){},g=c.forwardRef(function(e,t){var n,r,o,i,a=c.useRef(null),l=c.useState({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:y}),d=l[0],f=l[1],g=e.forwardProps,b=e.children,E=e.className,w=e.removeScrollBar,C=e.enabled,R=e.shards,x=e.sideCar,N=e.noRelative,S=e.noIsolation,P=e.inert,O=e.allowPinchZoom,D=e.as,j=e.gapMode,T=u(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=(n=[a,t],r=function(e){return n.forEach(function(t){return p(t,e)})},(o=(0,c.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,i=o.facade,m(function(){var e=v.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||p(e,null)}),r.forEach(function(e){t.has(e)||p(e,o)})}v.set(i,n)},[n]),i),L=s(s({},T),d);return c.createElement(c.Fragment,null,C&&c.createElement(x,{sideCar:h,removeScrollBar:w,shards:R,noRelative:N,noIsolation:S,inert:P,setCallbacks:f,allowPinchZoom:!!O,lockRef:a,gapMode:j}),g?c.cloneElement(c.Children.only(b),s(s({},L),{ref:A})):c.createElement(void 0===D?"div":D,s({},L,{className:E,ref:A}),b))});g.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},g.classNames={fullWidth:f,zeroRight:d};var b=function(e){var t=e.sideCar,n=u(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return c.createElement(r,s({},n))};
5b.isSideCarExport=!0;var E=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=l||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var r,o;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},w=function(){var e=E();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},C=function(){var e=w();return function(t){return e(t.styles,t.dynamic),null}},R={left:0,top:0,right:0,gap:0},x=function(e){return parseInt(e||"",10)||0},N=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[x(n),x(r),x(o)]},S=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return R;var t=N(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},P=C(),O="data-scroll-locked",D=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body[").concat(O,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(d," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(f," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(d," .").concat(d," {\n right: 0 ").concat(r,";\n }\n \n .").concat(f," .").concat(f," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(O,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},j=function(){var e=parseInt(document.body.getAttribute(O)||"0",10);return isFinite(e)?e:0},T=function(){c.useEffect(function(){return document.body.setAttribute(O,(j()+1).toString()),function(){var e=j()-1;e<=0?document.body.removeAttribute(O):document.body.setAttribute(O,e.toString())}},[])},A=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;T();var i=c.useMemo(function(){return S(o)},[o]);return c.createElement(P,{styles:D(i,!t,o,n?"":"!important")})},L=!1;if("u">typeof window)try{var I=Object.defineProperty({},"passive",{get:function(){return L=!0,!0}});window.addEventListener("test",I,I),window.removeEventListener("test",I,I)}catch(e){L=!1}var _=!!L&&{passive:!1},M=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},k=function(e,t){var n=t.ownerDocument,r=t;do{if("u">typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),F(e,r)){var o=W(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body)return!1},F=function(e,t){return"v"===e?M(t,"overflowY"):M(t,"overflowX")},W=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},$=function(e,t,n,r,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),l=a*r,s=n.target,u=t.contains(s),c=!1,d=l>0,f=0,p=0;do{if(!s)break;var m=W(e,s),v=m[0],h=m[1]-m[2]-a*v;(v||h)&&F(e,s)&&(f+=h,p+=v);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!u&&s!==document.body||u&&(t.contains(s)||t===s))return d&&(o&&1>Math.abs(f)||!o&&l>f)?c=!0:!d&&(o&&1>Math.abs(p)||!o&&-l>p)&&(c=!0),c},B=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},U=function(e){return[e.deltaX,e.deltaY]},V=function(e){return e&&"current"in e?e.current:e},H=0,K=[];let z=(a=function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(H++)[0],i=c.useState(C)[0],a=c.useRef(e);c.useEffect(function(){a.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}
5)([e.lockRef.current],(e.shards||[]).map(V),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=c.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=B(e),l=n.current,s="deltaX"in e?e.deltaX:l[0]-i[0],u="deltaY"in e?e.deltaY:l[1]-i[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===c||p.contains(c)))return!1;var m=k(d,c);if(!m)return!0;if(m?o=d:(o="v"===d?"h":"v",m=k(d,c)),!m)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var v=r.current||o;return $(v,t,e,"h"===v?s:u,!0)},[]),s=c.useCallback(function(e){if(K.length&&K[K.length-1]===i){var n="deltaY"in e?U(e):B(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(V).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=c.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=c.useCallback(function(e){n.current=B(e),r.current=void 0},[]),f=c.useCallback(function(t){u(t.type,U(t),t.target,l(t,e.lockRef.current))},[]),p=c.useCallback(function(t){u(t.type,B(t),t.target,l(t,e.lockRef.current))},[]);c.useEffect(function(){return K.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,_),document.addEventListener("touchmove",s,_),document.addEventListener("touchstart",d,_),function(){K=K.filter(function(e){return e!==i}),document.removeEventListener("wheel",s,_),document.removeEventListener("touchmove",s,_),document.removeEventListener("touchstart",d,_)}},[]);var m=e.removeScrollBar,v=e.inert;return c.createElement(c.Fragment,null,v?c.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?c.createElement(A,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},h.useMedium(a),b);var Z=c.forwardRef(function(e,t){return c.createElement(g,s({},e,{ref:t,sideCar:z}))});Z.classNames=g.classNames,e.s(["RemoveScroll",0,Z],85369)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.