1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="23b95a14-fc4b-4f89-ab1e-095b7bfc5481",e._sentryDebugIdIdentifier="sentry-dbid-23b95a14-fc4b-4f89-ab1e-095b7bfc5481")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54737],{54737:(e,t,n)=>{let r;n.d(t,{UC:()=>oa,YJ:()=>os,q7:()=>of,JU:()=>oc,ZL:()=>ou,z6:()=>od,bL:()=>oi,wv:()=>op,Pb:()=>om,G5:()=>og,ZP:()=>oh,l9:()=>ol});var o,i=n(4329),l=n.t(i,2),u=Object.defineProperty,a=(e,t)=>u(e,"name",{value:t,configurable:!0}),s=!!("u">typeof window&&window.document&&window.document.createElement);function c(e,t,{checkForDefaultPrevented:n=!0}={}){return a(function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}function f(e){if(!s)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function d(e){return"IFRAME"===e.tagName}a(c,"composeEventHandlers"),a(function(e){if(!s)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),a(f,"getOwnerDocument"),a(function e(t,n=!1){let{activeElement:r}=f(t);if(!r?.nodeName)return null;if(d(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=f(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),a(d,"isFrame");var p=n(37725),m=Object.defineProperty,h=(e,t)=>m(e,"name",{value:t,configurable:!0});function g(e,t=[]){let n=[];function r(t,r){let o=i.createContext(r);o.displayName=t+"Context";let l=n.length;n=[...n,r];let u=h(t=>{let{scope:n,children:r,...u}=t,a=n?.[e]?.[l]||o,s=i.useMemo(()=>u,Object.values(u));return(0,p.jsx)(a.Provider,{value:s,children:r})},"Provider");function a(n,u,s={}){let{optional:c=!1}=s,f=u?.[e]?.[l]||o,d=i.useContext(f);if(d)return d;if(void 0!==r)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return u.displayName=t+"Provider",h(a,"useContext"),[u,a]}h(r,"createContext");let o=h(()=>{let t=n.map(e=>i.createContext(e));return h(function(n){let r=n?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},"useScope")},"createScope");return o.scopeName=e,[r,v(o,...t)]}function v(...e){let t=e[0];if(1===e.length)return t;let n=h(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return h(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}h(function(e,t){let n=i.createContext(t);n.displayName=e+"Context";let r=h(e=>{let{children:t,...r}=e,o=i.useMemo(()=>r,Object.values(r));return(0,p.jsx)(n.Provider,{value:o,children:t})},"Provider");function o(r,l={}){let{optional:u=!1}=l,a=i.useContext(n);if(a)return a;if(void 0!==t)return t;if(!u)throw Error(`\`${r}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",h(o,"useContext"),[r,o]},"createContext"),h(g,"createContextScope"),h(v,"composeContextScopes");var y=n(37628),b=Object.defineProperty,w=(e,t)=>b(e,"name",{value:t,configurable:!0});function x(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function C(...e){return t=>{let n=!1,r=e.map(e=>{let r=x(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():x(e[t],null)}}}}function E(...e){return i.useCallback(C(...e),e)}w(x,"setRef"),w(C,"composeRefs"),w(E,"useComposedRefs");var R=Object.defineProperty,S=(e,t)=>R(e,"name",{value:t,configurable:!0});function P(e){let t=i.forwardRef((t,n)=>{let{children:r,...o}=t,l=null,u=!1,a=[];L(r)&&"function"==typeof _&&(r=_(r._payload)),i.Children.forEach(r,e=>{if(T(e)){u=!0;let t="child"in e.props?e.props.child:e.props.children;L(t)&&"function"==typeof _&&(t=_(t._payload)),l=M(e,t),a.push(l?.props?.children)}else a.push(e)}),l?l=i.cloneElement(l,void 0,a):!u&&1===i.Children.count(r)&&i.isValidElement(r)&&(l=r);let s=l?j(l):void 0,c=E(n,s);if(!l){if(r||0===r)throw Error(u?F(e):I(e));return r}let f=A(o,l.props??{});return l.type!==i.Fragment&&(f.ref=n?c:s),i.cloneElement(l,f)});return t.displayName=`${e}.Slot`,t}S(P,"createSlot");var O=Symbol.for("radix.slottable");S(function(e){let t=S(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=O,t},"createSlottable");var M=S((e,t)=>{if("child"in e.props){let t=e.props.child;return i.isValidElement(t)?i.cloneElement(t,void 0,e.props.children(t.props.children)):null}return i.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function A(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}
1:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function j(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function T(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===O}S(A,"mergeProps"),S(j,"getElementRef"),S(T,"isSlottable");var D=Symbol.for("react.lazy");function L(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===D&&"_payload"in e&&k(e._payload)}function k(e){return"object"==typeof e&&null!==e&&"then"in e}S(L,"isLazyComponent"),S(k,"isPromiseLike");var I=S(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),F=S(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),_=l[" use ".trim().toString()],N=Object.defineProperty,W=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=P(`Primitive.${t}`),r=i.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,p.jsx)(o?n:t,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function z(e,t){e&&y.flushSync(()=>e.dispatchEvent(t))}N(z,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0});var $=Object.defineProperty,U=(e,t)=>$(e,"name",{value:t,configurable:!0});function B(e){let t=e+"CollectionProvider",[n,r]=g(t),[o,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=U(e=>{let{scope:t,children:n}=e,r=i.useRef(null),l=i.useRef(new Map).current;return(0,p.jsx)(o,{scope:t,itemMap:l,collectionRef:r,children:n})},"CollectionProvider");u.displayName=t;let a=e+"CollectionSlot",s=P(a),c=i.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=E(t,l(a,n).collectionRef);return(0,p.jsx)(s,{ref:o,children:r})});c.displayName=a;let f=e+"CollectionItemSlot",d="data-radix-collection-item",m=P(f),h=i.forwardRef((e,t)=>{let{scope:n,children:r,...o}=e,u=i.useRef(null),a=E(t,u),s=l(f,n);return i.useEffect(()=>(s.itemMap.set(u,{ref:u,...o}),()=>void s.itemMap.delete(u))),(0,p.jsx)(m,{...{[d]:""},ref:a,children:r})});function v(t){let n=l(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return h.displayName=f,U(v,"useCollection"),[{Provider:u,Slot:c,ItemSlot:h},v,r]}U(B,"createCollection");var K=new WeakMap,V=class e extends Map{static{U(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],K.set(this,!0)}set(e,t){return K.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r,o=this.has(t),i=this.#e.length,l=X(e),u=l>=0?l:i+l,a=u<0||u>=i?-1:u;if(a===this.size||o&&a===this.size-1||-1===a)return this.set(t,n),this;let s=this.size+ +!o;l<0&&u++;let c=[...this.#e],f=!1;for(let e=u;e<s;e++)if(u===e){let i=c[e];c[e]===t&&(i=c[e+1]),o&&this.delete(t),r=this.get(i),this.set(t,n)}else{f||c[e-1]!==t||(f=!0);let n=c[f?e:e-1],o=r;r=this.get(n),this.delete(n),this.set(n,o)}return this}with(t,n,r){let o=new e(this);return o.insert(t,n,r),o}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=H(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=H(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return H(this.#e,e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}
1}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],o=0;for(let e of this)Reflect.apply(t,n,[e,o,this])&&r.push(e),o++;return new e(r)}map(t,n){let r=[],o=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,o,this])]),o++;return new e(r)}reduce(...e){let[t,n]=e,r=0,o=n??this.at(0);for(let n of this)o=0===r&&1===e.length?n:Reflect.apply(t,this,[o,n,r,this]),r++;return o}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let o=this.at(n);r=n===this.size-1&&1===e.length?o:Reflect.apply(t,this,[r,o,n,this])}return r}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,o=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(o=n-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function H(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=G(e,t);return -1===n?void 0:e[n]}function G(e,t){let n=e.length,r=X(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}function X(e){return e!=e||0===e?0:Math.trunc(e)}function q(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}function Y(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function Z(e,t){return e[1].element&&t[1].element?Y(e[1].element,t[1].element)?-1:1:0}function J(e){return new MutationObserver(t=>{for(let n of t)if("childList"===n.type)return void e()})}U(H,"at"),U(G,"toSafeIndex"),U(X,"toSafeInteger"),U(function(e){let t=e+"CollectionProvider",[n,r]=g(t),[o,l]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new V,setItemMap:U(()=>void 0,"setItemMap")}),u=U(({state:e,...t})=>e?(0,p.jsx)(s,{...t,state:e}):(0,p.jsx)(a,{...t}),"CollectionProvider");u.displayName=t;let a=U(e=>{let t=y();return(0,p.jsx)(s,{...e,state:t})},"CollectionInit");a.displayName=t+"Init";let s=U(e=>{let{scope:t,children:n,state:r}=e,l=i.useRef(null),[u,a]=i.useState(null),s=E(l,a),[c,f]=r;return i.useEffect(()=>{if(!u)return;let e=J(()=>{});return e.observe(u,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[u]),(0,p.jsx)(o,{scope:t,itemMap:c,setItemMap:f,collectionRef:s,collectionRefObject:l,collectionElement:u,children:n})},"CollectionProviderImpl");s.displayName=t+"Impl";let c=e+"CollectionSlot",f=P(c),d=i.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=E(t,l(c,n).collectionRef);return(0,p.jsx)(f,{ref:o,children:r})});d.displayName=c;let m=e+"CollectionItemSlot",h=P(m),v=i.forwardRef((e,t)=>{let{scope:n,children:r,...o}=e,u=i.useRef(null),[a,s]=i.useState(null),c=E(t,u,s),{setItemMap:f}=l(m,n),d=i.useRef(o);q(d.current,o)||(d.current=o);let g=d.current;return i.useEffect(()=>(f(e=>a?e.has(a)?e.set(a,{...g,element:a}).toSorted(Z):(e.set(a,{...g,element:a}),e.toSorted(Z)):e),()=>{f(e=>a&&e.has(a)?(e.delete(a),new V(e)):e)}),[a,g,f]),(0,p.jsx)(h,{"data-radix-collection-item":"",ref:c,children:r})});function y(){return i.useState(new V)}function b(t){let{itemMap:n}=l(e+"CollectionConsumer",t);return n}return v.displayName=m,U(y,"useInitCollection"),U(b,"useCollection"),[{Provider:u,Slot:d,ItemSlot:v},{createCollectionScope:r,useCollection:b,useInitCollection:y}]},"createCollection"),U(q,"shallowEqual"),U(Y,"isElementPreceding"),U(Z,"sortByDocumentPosition"),U(J,"getChildListObserver");var Q=Object.defineProperty,ee=i.createContext(void 0);function et(e){let t=i.useContext(ee);return e||t||"ltr"}function en(e){let t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}Q(et,"name",{value:"useDirection",configurable:!0}),(0,Object.defineProperty)(en,"name",{value:"useCallbackRef",configurable:!0});var er=Object.defineProperty,eo=(e,t)=>er(e,"name",{value:t,configurable:!0}),ei="dismissableLayer.update",el=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),eu=i.forwardRef(eo(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:a,onInteractOutside:s,onDismiss:f,...d}=e,m=i.useContext(el),[h,g]=i.useState(null),v=h?.ownerDocument??globalThis?.document,[,y]=i.useState({}
1),b=E(t,g),w=Array.from(m.layers),[x]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),C=x?w.indexOf(x):-1,R=h?w.indexOf(h):-1,S=m.layersWithOutsidePointerEventsDisabled.size>0,P=R>=C,O=i.useRef(!1),M=es(e=>{u?.(e),s?.(e),e.defaultPrevented||f?.()},{ownerDocument:v,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:O,dismissableSurfaces:m.dismissableSurfaces,shouldHandlePointerDownOutside:i.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...m.branches].some(t=>t.contains(e));return P&&!t},[m.branches,P])}),A=ec(e=>{if(r&&O.current)return;let t=e.target;![...m.branches].some(e=>e.contains(t))&&(a?.(e),s?.(e),e.defaultPrevented||f?.())},v),j=!!h&&R===w.length-1,T=en(e=>{"Escape"===e.key&&(l?.(e),!e.defaultPrevented&&f&&(e.preventDefault(),f()))});return i.useEffect(()=>{if(j)return v.addEventListener("keydown",T,{capture:!0}),()=>v.removeEventListener("keydown",T,{capture:!0})},[v,j,T]),i.useEffect(()=>{if(h)return n&&(0===m.layersWithOutsidePointerEventsDisabled.size&&(o=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(h)),m.layers.add(h),ef(),()=>{n&&(m.layersWithOutsidePointerEventsDisabled.delete(h),0===m.layersWithOutsidePointerEventsDisabled.size&&(v.body.style.pointerEvents=o))}},[h,v,n,m]),i.useEffect(()=>()=>{h&&(m.layers.delete(h),m.layersWithOutsidePointerEventsDisabled.delete(h),ef())},[h,m]),i.useEffect(()=>{let e=eo(()=>y({}),"handleUpdate");return document.addEventListener(ei,e),()=>document.removeEventListener(ei,e)},[]),(0,p.jsx)(W.div,{...d,ref:b,style:{pointerEvents:S?P?"auto":"none":void 0,...e.style},onFocusCapture:c(e.onFocusCapture,A.onFocusCapture),onBlurCapture:c(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:c(e.onPointerDownCapture,M.onPointerDownCapture)})},"DismissableLayer"));eo(function(){let e=i.useContext(el),[t,n]=i.useState(null);return i.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n},"useDismissableLayerSurface");var ea=eo(()=>!0,"IS_TRUE");function es(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:l,shouldHandlePointerDownOutside:u=ea}=t,a=en(e),s=i.useRef(!1),c=i.useRef(!1),f=i.useRef(new Map),d=i.useRef(()=>{});return i.useEffect(()=>{function e(){c.current=!1,o.current=!1,f.current.clear()}function t(){return Array.from(f.current.values()).some(Boolean)}function i(e){if(!c.current)return;let t=e.target;t instanceof Node&&[...l].some(e=>e.contains(t))||f.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{c.current&&d.current()},0)}function p(e){c.current&&f.current.set(e.type,!1)}eo(e,"resetOutsideInteraction"),eo(t,"isOutsideInteractionIntercepted"),eo(i,"handleInteractionCapture"),eo(p,"handleInteractionBubble");let m=eo(i=>{if(i.target&&!s.current){let l=function(){n.removeEventListener("click",d.current);let r=t();e(),r||ed("dismissableLayer.pointerDownOutside",a,p,{discrete:!0})};if(eo(l,"handleAndDispatchPointerDownOutsideEvent"),!u(i.target)){n.removeEventListener("click",d.current),e(),s.current=!1;return}let p={originalEvent:i};c.current=!0,o.current=r&&0===i.button,f.current.clear(),r&&0===i.button?(n.removeEventListener("click",d.current),d.current=l,n.addEventListener("click",d.current,{once:!0})):l()}else n.removeEventListener("click",d.current),e();s.current=!1},"handlePointerDown"),h=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of h)n.addEventListener(e,i,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener("pointerdown",m)},0);return()=>{for(let e of(window.clearTimeout(g),n.removeEventListener("pointerdown",m),n.removeEventListener("click",d.current),h))n.removeEventListener(e,i,!0),n.removeEventListener(e,p)}},[n,a,r,o,l,u]),{onPointerDownCapture:eo(()=>s.current=!0,"onPointerDownCapture")}}function ec(e,t=globalThis?.document){let n=en(e),r=i.useRef(!1);return i.useEffect(()=>{let e=eo(e=>{e.target&&!r.current&&ed("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:eo(()=>r.current=!0,"onFocusCapture"),onBlurCapture:eo(()=>r.current=!1,"onBlurCapture")}}function ef(){let e=new CustomEvent(ei);document.dispatchEvent(e)}function ed(e,t,n,{discrete:r}){let o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?z(o,i):o.dispatchEvent(i)}eo(es,"usePointerDownOutside"),eo(ec,"useFocusOutside"),eo(ef,"dispatchUpdate"),eo(ed,"handleAndDispatchCustomEvent");var ep=Object.defineProperty,em=(e,t)=>
1ep(e,"name",{value:t,configurable:!0}),eh=0,eg=null;function ev(){i.useEffect(()=>{eg||(eg={start:ey(),end:ey()});let{start:e,end:t}=eg;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),eh++,()=>{1===eh&&(eg?.start.remove(),eg?.end.remove(),eg=null),eh=Math.max(0,eh-1)}},[])}function ey(){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}em(function(e){return ev(),e.children},"FocusGuards"),em(ev,"useFocusGuards"),em(ey,"createFocusGuard");var eb=Object.defineProperty,ew=(e,t)=>eb(e,"name",{value:t,configurable:!0}),ex="focusScope.autoFocusOnMount",eC="focusScope.autoFocusOnUnmount",eE={bubbles:!1,cancelable:!0},eR=i.forwardRef(ew(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...u}=e,[a,s]=i.useState(null),c=en(o),f=en(l),d=i.useRef(null),m=E(t,s),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let e=function(e){if(h.paused||!a)return;let t=e.target;a.contains(t)?d.current=t:eT(d.current,{select:!0})},t=function(e){if(h.paused||!a)return;let t=e.relatedTarget;null!==t&&(a.contains(t)||eT(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&eT(a)};ew(e,"handleFocusIn"),ew(t,"handleFocusOut"),ew(n,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(n);return a&&r.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,a,h.paused]),i.useEffect(()=>{if(a){eD.add(h);let e=document.activeElement;if(!a.contains(e)){let t=new CustomEvent(ex,eE);a.addEventListener(ex,c),a.dispatchEvent(t),t.defaultPrevented||(eS(eI(eO(a)),{select:!0}),document.activeElement===e&&eT(a))}return()=>{a.removeEventListener(ex,c),setTimeout(()=>{let t=new CustomEvent(eC,eE);a.addEventListener(eC,f),a.dispatchEvent(t),t.defaultPrevented||eT(e??document.body,{select:!0}),a.removeEventListener(eC,f),eD.remove(h)},0)}}},[a,c,f,h]);let g=i.useCallback(e=>{if(!n&&!r||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=eP(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&eT(i,{select:!0})):(e.preventDefault(),n&&eT(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,h.paused]);return(0,p.jsx)(W.div,{tabIndex:-1,...u,ref:m,onKeyDown:g})},"FocusScope"));function eS(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(eT(r,{select:t}),document.activeElement!==n)return}function eP(e){let t=eO(e);return[eM(t,e),eM(t.reverse(),e)]}function eO(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:ew(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},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}function eM(e,t){let n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):eA(r,{upTo:t})))return r}function eA(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}function ej(e){return e instanceof HTMLInputElement&&"select"in e}function eT(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ej(e)&&t&&e.select()}}ew(eS,"focusFirst"),ew(eP,"getTabbableEdges"),ew(eO,"getTabbableCandidates"),ew(eM,"findVisible"),ew(eA,"isHidden"),ew(ej,"isSelectableInput"),ew(eT,"focus");var eD=eL();function eL(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),(e=ek(e,t)).unshift(t)},remove(t){e=ek(e,t),e[0]?.resume()}}}function ek(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}function eI(e){return e.filter(e=>"A"!==e.tagName)}ew(eL,"createFocusScopesStack"),ew(ek,"arrayRemove"),ew(eI,"removeLinks");var eF=globalThis?.document?i.useLayoutEffect:()=>{},e_=Object.defineProperty,eN=l[" useId ".trim().toString()]||(()=>void 0),eW=0;function ez(e){let[t,n]=i.useState(eN());return eF(()=>{e||n(e=>e??String(eW++))},[e]),e||(t?`radix-${t}`:"")}e_(ez,"name",{value:"useId",configurable:!0});let e$=["top","right","bottom","left"],eU=Math.min,eB=Math.max,eK=Math.round,eV=Math.floor,eH=e=>({x:e,y:e}
vendor: 5,822 bytes, line 1
1),eG={left:"right",right:"left",bottom:"top",top:"bottom"};function eX(e,t){return"function"==typeof e?e(t):e}function eq(e){return e.split("-")[0]}function eY(e){return e.split("-")[1]}function eZ(e){return"x"===e?"y":"x"}function eJ(e){return"y"===e?"height":"width"}function eQ(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function e0(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let e1=["left","right"],e2=["right","left"],e5=["top","bottom"],e3=["bottom","top"];function e4(e){let t=eq(e);return eG[t]+e.slice(t.length)}function e7(e){var t,n,r,o;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(o=e.left)?o:0}:{top:e,right:e,bottom:e,left:e}}function e9(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function e8(e,t,n){let r,{reference:o,floating:i}=e,l=eQ(t),u=eZ(eQ(t)),a=eJ(u),s=eq(t),c=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,d=o[a]/2-i[a]/2;switch(s){case"top":r={x:c,y:o.y-i.height};break;case"bottom":r={x:c,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}let p=eY(t);return p&&(r[u]+=d*("end"===p?1:-1)*(n&&"y"===l?-1:1)),r}async function e6(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:u,strategy:a}=e,{boundary:s="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=eX(t,e),m=e7(p),h=u[d?"floating"===f?"reference":"floating":f],g=e9(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(u.floating)),boundary:s,rootBoundary:c,strategy:a})),v="floating"===f?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(u.floating)),b=await (null==i.isElement?void 0:i.isElement(y))&&await (null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=e9(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:v,offsetParent:y,strategy:a}):v);return{top:(g.top-w.top+m.top)/b.y,bottom:(w.bottom-g.bottom+m.bottom)/b.y,left:(g.left-w.left+m.left)/b.x,right:(w.right-g.right+m.right)/b.x}}let te=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,u=l.detectOverflow?l:{...l,detectOverflow:e6},a=await (null==l.isRTL?void 0:l.isRTL(t)),s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=e8(s,r,a),d=r,p=0,m={};for(let n=0;n<i.length;n++){let h=i[n];if(!h)continue;let{name:g,fn:v}=h,{x:y,y:b,data:w,reset:x}=await v({x:c,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:m,rects:s,platform:u,elements:{reference:e,floating:t}});c=null!=y?y:c,f=null!=b?b:f,m[g]={...m[g],...w},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(s=!0===x.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:c,y:f}=e8(s,d,a)),n=-1)}return{x:c,y:f,placement:d,strategy:o,middlewareData:m}};function tt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tn(e){return e$.some(t=>e[t]>=0)}let tr=new Set(["left","top"]);async function to(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=eq(n),u=eY(n),a="y"===eQ(n),s=tr.has(l)?-1:1,c=i&&a?-1:1,f=eX(t,e),{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return u&&"number"==typeof m&&(p="end"===u?-1*m:m),a?{x:p*c,y:d*s}:{x:d*s,y:p*c}}function ti(){return"u">typeof window}function tl(e){return ts(e)?(e.nodeName||"").toLowerCase():"#document"}function tu(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ta(e){var t;return null==(t=(ts(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ts(e){return!!ti()&&(e instanceof Node||e instanceof tu(e).Node)}function tc(e){return!!ti()&&(e instanceof Element||e instanceof tu(e).Element)}function tf(e){return!!ti()&&(e instanceof HTMLElement||e instanceof tu(e).HTMLElement)}function td(e){return!(!ti()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof tu(e).ShadowRoot)}function tp(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=tx(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function tm(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let th=/transform|translate|scale|rotate|perspective|filter/,tg=/paint|layout|strict|content/,tv=e=>!!e&&"none"!==e;function ty(e){let t=tc(e)?tx(e):e;return tv(t.transform)||tv(t.translate)||tv(t.scale)||tv(t.rotate)||tv(t.perspective)||!tb()&&(tv(t.backdropFilter)||tv(t.filter))||th.test(t.willChange||"")||tg.test(t.contain||"")}function tb(){return null==r&&(r="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function tw(e){return/^(html|body|#document)$/.test(tl(e))}function tx(e){return tu(e).getComputedStyle(e)}function tC(e){return tc(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function tE(e){if("html"===tl(e))return e;let t=e.assignedSlot||e.parentNode||td(e)&&e.host||ta(e);return td(t)?t.host:t}function tR(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=tE(t);return tw(n)?(t.ownerDocument||t).body:tf(n)&&tp(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=tu(o);if(!i)return t.concat(o,tR(o,[],n));{let e=tS(l);
1return t.concat(l,l.visualViewport||[],tp(o)?o:[],e&&n?tR(e):[])}}function tS(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function tP(e){let t=tx(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=tf(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,u=eK(n)!==i||eK(r)!==l;return u&&(n=i,r=l),{width:n,height:r,$:u}}function tO(e){return tc(e)?e:e.contextElement}function tM(e){let t=tO(e);if(!tf(t))return eH(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=tP(t),l=(i?eK(n.width):n.width)/r,u=(i?eK(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),u&&Number.isFinite(u)||(u=1),{x:l,y:u}}let tA=eH(0);function tj(e){let t=tu(e);return tb()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:tA}function tT(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=tO(e),u=eH(1);t&&(r?tc(r)&&(u=tM(r)):u=tM(e));let a=(void 0===(o=n)&&(o=!1),r&&o&&r===tu(l))?tj(l):eH(0),s=(i.left+a.x)/u.x,c=(i.top+a.y)/u.y,f=i.width/u.x,d=i.height/u.y;if(l&&r){let e=tu(l),t=tc(r)?tu(r):r,n=e,o=tS(n);for(;o&&t!==n;){let e=tM(o),t=o.getBoundingClientRect(),r=tx(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,f*=e.x,d*=e.y,s+=i,c+=l,o=tS(n=tu(o))}}return e9({width:f,height:d,x:s,y:c})}function tD(e,t){let n=tC(e).scrollLeft;return t?t.left+n:tT(ta(e)).left+n}function tL(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-tD(e,n),y:n.top+t.scrollTop}}function tk(e,t,n){var r;let o;if("viewport"===t||"layoutViewport"===t)o=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,o=tu(e),i=ta(e),l=o.visualViewport,u=i.clientWidth,a=i.clientHeight,s=0,c=0;if(l){let e=!tb()||"fixed"===t;r?e||(s=-l.offsetLeft,c=-l.offsetTop):(u=l.width,a=l.height,e&&(s=l.offsetLeft,c=l.offsetTop))}if(0>=tD(i)){let e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-r),l="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;l<=25&&(u-=l)}return{width:u,height:a,x:s,y:c}}(e,n,t);else if("document"===t){let t,n,i,l,u,a;t=tC(r=ta(e)),n=r.ownerDocument.body,i=eB(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),l=eB(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight),u=-t.scrollLeft+tD(r),a=-t.scrollTop,"rtl"===tx(n).direction&&(u+=eB(r.clientWidth,n.clientWidth)-i),o={width:i,height:l,x:u,y:a}}else if(tc(t)){let e,r,i,l,u,a;r=(e=tT(t,!0,"fixed"===n)).top+t.clientTop,i=e.left+t.clientLeft,l=tM(t),u=t.clientWidth*l.x,a=t.clientHeight*l.y,o={width:u,height:a,x:i*l.x,y:r*l.y}}else{let n=tj(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return e9(o)}function tI(e){return"static"===tx(e).position}function tF(e,t){if(!tf(e)||"fixed"===tx(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ta(e)===n&&(n=n.ownerDocument.body),n}function t_(e,t){var n;let r=tu(e);if(tm(e))return r;if(!tf(e)){let t=tE(e);for(;t&&!tw(t);){if(tc(t)&&!tI(t))return t;t=tE(t)}return r}let o=tF(e,t);for(;o&&(n=o,/^(table|td|th)$/.test(tl(n)))&&tI(o);)o=tF(o,t);return o&&tw(o)&&tI(o)&&!ty(o)?r:o||function(e){let t=tE(e);for(;tf(t)&&!tw(t);){if(ty(t))return t;if(tm(t))break;t=tE(t)}return null}(e)||r}let tN=async function(e){let t=this.getOffsetParent||t_,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=tf(t),o=ta(t),i="fixed"===n,l=tT(e,!0,i,t),u={scrollLeft:0,scrollTop:0},a=eH(0);if((r||!i)&&(("body"!==tl(t)||tp(o))&&(u=tC(t)),r)){let e=tT(t,!0,i,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}!r&&o&&(a.x=tD(o));let s=!o||r||i?eH(0):tL(o,u);return{x:l.left+u.scrollLeft-a.x-s.x,y:l.top+u.scrollTop-a.y-s.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},tW={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=ta(r),u=!!t&&tm(t.floating);if(r===l||u&&i)return n;let a={scrollLeft:0,scrollTop:0},s=eH(1),c=eH(0),f=tf(r);if((f||!i)&&(("body"!==tl(r)||tp(l))&&(a=tC(r)),f)){let e=tT(r);s=tM(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let d=!l||f||i?eH(0):tL(l,a);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-a.scrollLeft*s.x+c.x+d.x,y:n.y*s.y-a.scrollTop*s.y+c.y+d.y}},getDocumentElement:ta,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?tm(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=tR(e,[],!1).filter(e=>tc(e)&&"body"!==tl(e)),o=null,i="fixed"===tx(e).position,l=i?tE(e):e;for(;tc(l)&&!tw(l);){let e=tx(l),t=ty(l),n=o?o.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?o=e:r=r.filter(e=>e!==l),l=tE(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=tk(t,i[0],o),u=l.top,a=l.right,s=l.bottom,c=l.left;for(let e=1;e<i.length;e++){let n=tk(t,i[e],o);u=eB(n.top,u),a=eU(n.right,a),s=eU(n.bottom,s),c=eB(n.left,c)}return{width:a-c,height:s-u,x:c,y:u}},getOffsetParent:t_,getElementRects:tN,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=tP(e);return{width:t,height:n}},getScale:tM,isElement:tc,isRTL:function(e){return"rtl"===tx(e).direction}};function tz(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let t$=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:l,elements:u,middlewareData:a}=t,{element:s,padding:c=0}=eX(e,t)||{};if(null==s)return{};let f=e7(c),d={x:n,y:r},p=eZ(eQ(o)),m=eJ(p),h=await l.getDimensions(s),g="y"===p,v=g?"clientHeight":"clientWidth",y=i.reference[m]+i.reference[p]-d[p]-i.floating[m],b=d[p
1]-i.reference[p],w=await (null==l.getOffsetParent?void 0:l.getOffsetParent(s)),x=w?w[v]:0;x&&await (null==l.isElement?void 0:l.isElement(w))||(x=u.floating[v]||i.floating[m]);let C=x/2-h[m]/2-1,E=eU(f[g?"top":"left"],C),R=eU(f[g?"bottom":"right"],C),S=x-h[m]-R,P=x/2-h[m]/2+(y/2-b/2),O=eB(E,eU(P,S)),M=!a.arrow&&null!=eY(o)&&P!==O&&i.reference[m]/2-(P<E?E:R)-h[m]/2<0,A=M?P<E?P-E:P-S:0;return{[p]:d[p]+A,data:{[p]:O,centerOffset:P-O-A,...M&&{alignmentOffset:A}},reset:M}}});var tU="u">typeof document?i.useLayoutEffect:function(){};function tB(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!tB(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!tB(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function tK(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function tV(e,t){let n=tK(e);return Math.round(t*n)/n}function tH(e){let t=i.useRef(e);return tU(()=>{t.current=e}),t}function tG(e){let[t,n]=i.useState(void 0);return eF(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(0,Object.defineProperty)(tG,"name",{value:"useSize",configurable:!0});var tX=Object.defineProperty,tq=(e,t)=>tX(e,"name",{value:t,configurable:!0}),tY="Popper",[tZ,tJ]=g(tY),[tQ,t0]=tZ(tY),t1=tq(e=>{let{__scopePopper:t,children:n}=e,[r,o]=i.useState(null),[l,u]=i.useState(void 0);return(0,p.jsx)(tQ,{scope:t,anchor:r,onAnchorChange:o,placementState:l,setPlacementState:u,children:n})},"Popper"),t2=i.forwardRef(tq(function(e,t){let{__scopePopper:n,virtualRef:r,...o}=e,l=t0("PopperAnchor",n),u=i.useRef(null),a=l.onAnchorChange,s=E(t,i.useCallback(e=>{u.current=e,e&&a(e)},[a])),c=i.useRef(null);i.useEffect(()=>{if(!r)return;let e=c.current;c.current=r.current,e!==c.current&&a(c.current)});let f=l.placementState&&t6(l.placementState),d=f?.[0],m=f?.[1];return r?null:(0,p.jsx)(W.div,{"data-radix-popper-side":d,"data-radix-popper-align":m,...o,ref:s})},"PopperAnchor")),t5="PopperContent",[t3,t4]=tZ(t5),t7=i.forwardRef(tq(function(e,t){var n,r,o,l,u,a,s,c,f,d,m,h,g;let v,b,w,x,C,R,{__scopePopper:S,side:P="bottom",sideOffset:O=0,align:M="center",alignOffset:A=0,arrowPadding:j=0,avoidCollisions:T=!0,collisionBoundary:D=[],collisionPadding:L=0,sticky:k="partial",hideWhenDetached:I=!1,updatePositionStrategy:F="optimized",onPlaced:_,...N}=e,z=t0(t5,S),[$,U]=i.useState(null),B=E(t,U),[K,V]=i.useState(null),H=tG(K),G=H?.width??0,X=H?.height??0,q="number"==typeof L?L:{top:0,right:0,bottom:0,left:0,...L},Y=Array.isArray(D)?D:[D],Z=Y.length>0,J={padding:q,boundary:Y.filter(t9),altBoundary:Z},{refs:Q,floatingStyles:ee,placement:et,isPositioned:er,middlewareData:eo}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:u}={},transform:a=!0,whileElementsMounted:s,open:c}=e,[f,d]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=i.useState(r);tB(p,r)||m(r);let[h,g]=i.useState(null),[v,b]=i.useState(null),w=i.useCallback(e=>{e!==R.current&&(R.current=e,g(e))},[]),x=i.useCallback(e=>{e!==S.current&&(S.current=e,b(e))},[]),C=l||h,E=u||v,R=i.useRef(null),S=i.useRef(null),P=i.useRef(f),O=null!=s,M=tH(s),A=tH(o),j=tH(c),T=i.useCallback(()=>{var e,r;let o,i,l;if(!R.current||!S.current)return;let u={placement:t,strategy:n,middleware:p};A.current&&(u.platform=A.current),(e=R.current,r=S.current,o=new Map,i=null!=u?u:{},l={...tW,...i.platform,_c:o},te(e,r,{...i,platform:l})).then(e=>{let t={...e,isPositioned:!1!==j.current};D.current&&!tB(P.current,t)&&(P.current=t,y.flushSync(()=>{d(t)}))})},[p,t,n,A,j]);tU(()=>{!1===c&&P.current.isPositioned&&(P.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let D=i.useRef(!1);tU(()=>(D.current=!0,()=>{D.current=!1}),[]),tU(()=>
1{if(C&&(R.current=C),E&&(S.current=E),C&&E){if(M.current)return M.current(C,E,T);T()}},[C,E,T,M,O]);let L=i.useMemo(()=>({reference:R,floating:S,setReference:w,setFloating:x}),[w,x]),k=i.useMemo(()=>({reference:C,floating:E}),[C,E]),I=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!k.floating)return e;let t=tV(k.floating,f.x),r=tV(k.floating,f.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...tK(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,k.floating,f.x,f.y]);return i.useMemo(()=>({...f,update:T,refs:L,elements:k,floatingStyles:I}),[f,T,L,k,I])}({strategy:"fixed",placement:P+("center"!==M?"-"+M:""),whileElementsMounted:tq((...e)=>(function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=tO(e),f=i||l?[...c?tR(c):[],...t?tR(t):[]]:[];f.forEach(e=>{i&&e.addEventListener("scroll",n),l&&e.addEventListener("resize",n)});let d=c&&a?function(e,t,n){let r,o=null,i=ta(e);function l(){var e;clearTimeout(r),null==(e=o)||e.disconnect(),o=null}function u(n,a){void 0===n&&(n=!1),void 0===a&&(a=1),l();let s=e.getBoundingClientRect(),{left:c,top:f,width:d,height:p}=s;if(n||t(),!d||!p)return;let m={rootMargin:-eV(f)+"px "+-eV(i.clientWidth-(c+d))+"px "+-eV(i.clientHeight-(f+p))+"px "+-eV(c)+"px",threshold:eB(0,eU(1,a))||1},h=!0;function g(t){let n=t[0].intersectionRatio;if(!tz(s,e.getBoundingClientRect()))return u();if(n!==a){if(!h)return u();n?u(!1,n):r=setTimeout(()=>{u(!1,1e-7)},1e3)}h=!1}try{o=new IntersectionObserver(g,{...m,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(g,m)}o.observe(e)}let a=tu(e),s=()=>u(n);return a.addEventListener("resize",s),u(!0),()=>{a.removeEventListener("resize",s),l()}}(c,n,l):null,p=-1,m=null;u&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!s&&m.observe(c),t&&m.observe(t));let h=s?tT(e):null;return s&&function t(){let r=tT(e);h&&!tz(h,r)&&n(),h=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;f.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=m)||e.disconnect(),m=null,s&&cancelAnimationFrame(o)}})(...e,{animationFrame:"always"===F}),"whileElementsMounted"),elements:{reference:z.anchor},middleware:[{name:(v={name:"offset",options:r=n={mainAxis:O+X,alignmentAxis:A},async fn(e){var t,n;let{x:o,y:i,placement:l,middlewareData:u}=e,a=await to(e,r);return l===(null==(t=u.offset)?void 0:t.placement)&&null!=(n=u.arrow)&&n.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:l}}}}).name,fn:v.fn,options:[n,void 0]},T&&{name:(b={name:"shift",options:u=l={mainAxis:!0,crossAxis:!1,limiter:"partial"===k?{fn:(o=void 0,{options:o={},fn(e){var t,n,r,i;let{x:l,y:u,placement:a,rects:s,middlewareData:c}=e,{offset:f=0,mainAxis:d=!0,crossAxis:p=!0}=eX(o,e),m={x:l,y:u},h=eQ(a),g=eZ(h),v=m[g],y=m[h],b=eX(f,e),w="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:null!=(t=b.mainAxis)?t:0,crossAxis:null!=(n=b.crossAxis)?n:0};if(d){let e="y"===g?"height":"width",t=s.reference[g]-s.floating[e]+w.mainAxis,n=s.reference[g]+s.reference[e]-w.mainAxis;v<t?v=t:v>n&&(v=n)}if(p){let e="y"===g?"width":"height",t=tr.has(eq(a)),n=s.reference[h]-s.floating[e]+(t&&(null==(r=c.offset)?void 0:r[h])||0)+(t?0:w.crossAxis),o=s.reference[h]+s.reference[e]+(t?0:(null==(i=c.offset)?void 0:i[h])||0)-(t?w.crossAxis:0);y<n?y=n:y>o&&(y=o)}return{[g]:v,[h]:y}}}).fn,options:[void 0,void 0]}:void 0,...J},async fn(e){let{x:t,y:n,placement:r,platform:o}=e,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=eX(u,e),c={x:t,y:n},f=await o.detectOverflow(e,s),d=eQ(r),p=eZ(d),m=c[p],h=c[d],g=(e,t)=>eB(t+f["y"===e?"top":"left"],eU(t,t-f["y"===e?"bottom":"right"]));i&&(m=g(p,m)),l&&(h=g(d,h));let v=a.fn({...e,[p]:m,[d]:h});return{...v,data:{x:v.x-t,y:v.y-n,enabled:{[p]:i,[d]:l}}}}}).name,fn:b.fn,options:[l,void 0]},T&&{name:(w={name:"flip",options:s=a={...J},async fn(e){var t,n,r,o,i,l,u,a;let c,f,d,{placement:p,middlewareData:m,rects:h,initialPlacement:g,platform:v,elements:y}=e,{mainAxis:b=!0,crossAxis:w=!0,fallbackPlacements:x,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:R=!0,...S}=eX(s,e);if(null!=(t=m.arrow)&&t.alignmentOffset)return{};let P=eq(p),O=eQ(g),M=eq(g)===g,A=await (null==v.isRTL?void 0:v.isRTL(y.floating)),j=x||(M||!R?[e4(g)]:(c=e4(g),[e0(g),c,e0(c)])),T="none"!==E;!x&&T&&j.push(...(f=eY(g),d=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?e2:e1;return t?e1:e2;case"left":case"right":return t?e5:e3;default:return[]}}(eq(g),"start"===E,A),f&&(d=d.map(e=>e+"-"+f),R&&(d=d.concat(d.map(e0)))),d));let D=[g,...j],L=await v.detectOverflow(e,S),k=[],I=(null==(n=m.flip)?void 0:n.overflows)||[];if(b&&k.push(L[P]),w){let e,t,n,r,o=(l=p,u=h,void 0===(a=A)&&(a=!1),e=eY(l),n=eJ(t=eZ(eQ(l))),r="x"===t?e===(a?"end":"start")?"right":"left":"start"===e?"bottom":"top",u.reference[n]>u.floating[n]&&(r=e4(r)),[r,e4(r)]);k.push(L[o[0]],L[o[1]])}if(I=[...I,{placement:p,overflows:k}],!k.every(e=>e<=0)){let e=((null==(r=m.flip)?void 0:r.index)||0)+1,t=D[e];if(t&&("alignment"!==w||O===eQ(t)||I.every(e=>eQ(e.placement)!==O||e.overflows[0]>0)))return{data:{index:e,overflows:I},reset:{placement:t}};let n=null==(o=I.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(C){case"bestFit":{let e=null==(i=I.filter(e=>{if(T){let t=eQ(e.placement);return t===O||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:i[0];e&&(n=e);break}case"initialPlacement":n=g}if(p!==n)return{reset:{placement:n}}}return{}}}).name,fn:w.fn,options:[a,void 0]},{name:(x={name:"size",options:f=c={...J,apply:tq(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:i}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${o}px`),l.setProperty("--radix-popper-anchor-height",`${i}px`)},"apply")},async fn(e){let t,n,{placement:r,rects:o,platform:i,elements:l}=e,{apply:u=()=>{},...a}=eX(f,e),s=await i.detectOverflow(e,a),c=eq(r),d=eY(r),p="y"===eQ(r),{width:m,height:h}=o.floating;"top"===c||"bottom"===c?(t=c,n=d===(await (null==i.isRTL?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(n=c,t="end"===d?"top":"bottom");let g=h-s.top-s.bottom,v=m-s.left-s.right,y=eU(h-s[t],g),b=eU(m-s[n],v),w=e.middlewareData.shift,x=!w,C=y,E=b;null!=w&&w.enabled.x&&(E=v),null!=w&&w.enabled.y&&(C=g),x&&!d&&(p?E=m-2*eB(s.left,s.right):C=h-2*eB(s.top,s.bottom)),await u({...e,availableWidth:E,availableHeight:C});let R=await i.getDimensions(l.floating);return m!==R.width||h!==R.height?{reset:{rects:!0}}:{}}}).name,fn:x.fn,options:[c,void 0]},K&&{name:(C={name:"arrow",options:m=d={element:K,padding:j},fn(e){let{element:t,padding:n}="function"==typeof m?m(e):m;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?t$({element:t.current,padding:n}).fn(e):{}:t?t$({element:t,padding:n}).fn(e):{}}}).name,fn:C.fn,options:[d,void 0]},t8({arrowWidth:G,arrowHeight:X}),I&&{name:(R={name:"hide",options:g=h={strategy:"referenceHidden",...J,boundary:Z?J.boundary:void 0},async fn(e){let{rects:t,platform:n}=e,{strategy:r="referenceHidden",...o}=eX(g,e);switch(r){case"referenceHidden":{let r=tt(await n.detectOverflow(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:tn(r)}}}case"escaped":{let r=tt(await n.detectOverflow(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:tn(r)}}}default:return{}}}}).name,fn:R.fn,options:[h,void 0]}]}),ei=z.setPlacementState;eF(()=>(ei(et),()=>{ei(void 0)}),[et,ei]);let[el,eu]=t6(et),ea=en(_);eF(()=>{er&&ea?.()},[er,ea]);let es=eo.arrow?.x,ec=eo.arrow?.y,ef=eo.arrow?.centerOffset!==0,[ed,ep]=i.useState();return eF(()=>{$&&ep(window.getComputedStyle($).zIndex)},[$]),(0,p.jsx)("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...ee,transform:er?ee.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ed,"--radix-popper-transform-origin":[eo.transformOrigin?.x,eo.transformOrigin?.y].join(" "),...eo.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,p.jsx)(t3,{scope:S,placedSide:el,placedAlign:eu,onArrowChange:V,arrowX:es,arrowY:ec,shouldHideArrow:ef,children:(0,p.jsx)(W.div,{"data-side":el,"data-align":eu,...N,ref:B,style:{...N.style,animation:er?N.style?.animation:"none"}})})})},"PopperContent"));function t9(e){return null!==e}tq(t9,"isNotNull");var t8=tq(e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,u=i?0:e.arrowHeight,[a,s]=t6(n),c={start:"0%",center:"50%",end:"100%"}[s],f=(o.arrow?.x??0)+l/2,d=(o.arrow?.y??0)+u/2,p="",m="";return"bottom"===a?(p=i?c:`${f}px`,m=`${-u}px`):"top"===a?(p=i?c:`${f}px`,m=`${r.floating.height+u}px`):"right"===a?(p=`${-u}px`,m=i?c:`${d}px`):"left"===a&&(p=`${r.floating.width+u}px`,m=i?c:`${d}px`),{data:{x:p,y:m}}}}),"transformOrigin");function t6(e){let[t,n="center"]=e.split("-");return[t,n]}tq(t6,"getSideAndAlignFromPlacement");var ne=Object.defineProperty,nt=i.forwardRef(ne(function(e,t){let{container:n,...r}=e,[o,l]=i.useState(!1);eF(()=>l(!0),[]);let u=n||o&&globalThis?.document?.body;return u?y.createPortal((0,p.jsx)(W.div,{...r,ref:t}),u):null},"name",{value:"Portal",configurable:!0})),nn=Object.defineProperty,nr=(e,t)=>
1nn(e,"name",{value:t,configurable:!0});function no(e,t){return i.useReducer((e,n)=>t[e][n]??e,e)}nr(no,"useStateMachine");var ni=nr(e=>{let{present:t,children:n}=e,r=nl(t),o="function"==typeof n?n({present:r.isPresent}):i.Children.only(n),l=na(r.ref,nc(o));return"function"==typeof n||r.isPresent?i.cloneElement(o,{ref:l}):null},"Presence");function nl(e){let[t,n]=i.useState(),r=i.useRef(null),o=i.useRef(e),l=i.useRef("none"),u=i.useRef(void 0),[a,s]=no(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{"mounted"===a?(l.current=u.current??ns(r.current),u.current=void 0):l.current="none"},[a]),eF(()=>{let t=r.current,n=o.current;if(n!==e){let r=l.current,i=ns(t);e?(u.current=i,s("MOUNT")):"none"===i||t?.display==="none"?s("UNMOUNT"):n&&r!==i?s("ANIMATION_OUT"):s("UNMOUNT"),o.current=e}},[e,s]),eF(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,i=nr(i=>{let l=ns(r.current).includes(CSS.escape(i.animationName));if(i.target===t&&l&&(s("ANIMATION_END"),!o.current)){let r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},"handleAnimationEnd"),u=nr(e=>{e.target===t&&(l.current=ns(r.current))},"handleAnimationStart");return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:i.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,u.current=ns(t)}else r.current=null;n(e)},[])}}function nu(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function na(...e){let t=i.useRef(e);return t.current=e,i.useCallback(e=>{let n=t.current,r=!1,o=n.map(t=>{let n=nu(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e<o.length;e++){let t=o[e];"function"==typeof t?t():nu(n[e],null)}}},[])}function ns(e){return e?.animationName||"none"}function nc(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}nr(nl,"usePresence"),nr(nu,"setRef"),nr(na,"useStableComposedRefs"),nr(ns,"getAnimationName"),nr(nc,"getElementRef");var nf=Object.defineProperty,nd=l[" useEffectEvent ".trim().toString()],np=l[" useInsertionEffect ".trim().toString()];function nm(e){if("function"==typeof nd)return nd(e);let t=i.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof np?np(()=>{t.current=e}):eF(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}nf(nm,"name",{value:"useEffectEvent",configurable:!0});var nh=Object.defineProperty,ng=(e,t)=>nh(e,"name",{value:t,configurable:!0}),nv=l[" useInsertionEffect ".trim().toString()]||eF;function ny({prop:e,defaultProp:t,onChange:n=ng(()=>{},"onChange"),caller:r}){let[o,l,u]=nb({defaultProp:t,onChange:n}),a=void 0!==e,s=a?e:o;return[s,i.useCallback(t=>{if(a){let n=nw(t)?t(e):t;n!==e&&u.current?.(n)}else l(t)},[a,e,l,u])]}function nb({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),o=i.useRef(n),l=i.useRef(t);return nv(()=>{l.current=t},[t]),i.useEffect(()=>{o.current!==n&&(l.current?.(n),o.current=n)},[n,o]),[n,r,l]}function nw(e){return"function"==typeof e}ng(ny,"useControllableState"),ng(nb,"useUncontrolledState"),ng(nw,"isFunction");var nx=Symbol("RADIX:SYNC_STATE");ng(function(e,t,n,r){let{prop:o,defaultProp:l,onChange:u,caller:a}=t,s=void 0!==o,c=nm(u),f=[{...n,state:l}];r&&f.push(r);let[d,p]=i.useReducer((t,n)=>{if(n.type===nx)return{...t,state:n.state};let r=e(t,n);return s&&!Object.is(r.state,t.state)&&c(r.state),r},...f),m=d.state,h=i.useRef(m);i.useEffect(()=>{h.current!==m&&(h.current=m,s||c(m))},[m,h,s]);let g=i.useMemo(()=>void 0!==o?{...d,state:o}:d,[d,o]);return i.useEffect(()=>{s&&!Object.is(o,d.state)&&p({type:nx,state:o})},[o,d.state,s]),[g,p]},"useControllableStateReducer");var nC=Object.defineProperty,nE=(e,t)=>nC(e,"name",{value:t,configurable:!0}),nR=!1;function nS(){let[e,t]=i.useState(nR);return i.useEffect(()=>{nR||(nR=!0,t(!0))},[]),e}nE(nS,"useIsHydrated");var nP=l[" useSyncExternalStore ".trim().toString()];function nO(){return()=>{}}function nM(){return nP(nO,()=>!0,()=>!1)}nE(nO,"subscribe"),nE(nM,"useIsHydratedModern");var nA="function"==typeof nP?nM:nS,nj=Object.defineProperty,nT=(e,t)=>nj(e,"name",{value:t,configurable:!0}),nD="rovingFocusGroup.onEntryFocus",nL={bubbles:!1,cancelable:!0},nk="RovingFocusGroup",[nI,nF,n_]=B(nk),[nN,nW]=g(nk,[n_]),[nz,n$]=nN(nk),nU=i.forwardRef(nT(function(e,t){return(0,p.jsx)(nI.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(nI.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(nB,{...e,ref:t})})})},"RovingFocusGroup")),nB=i.forwardRef(nT(function(e,t){let{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:l,currentTabStopId:u,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:s,onEntryFocus:f,preventScrollOnEntryFocus:d=!1,...m}=e,h=i.useRef(null),g=E(t,h),v=et(l),[y,b]=ny({prop:u,defaultProp:a??null,onChange:s,caller:nk}),[w,x]=i.useState(!1),C=en(f),R=nF(n),S=i.useRef(!1),[P,O]=i.useState(0);return i.useEffect(()=>{let e=h.current;if(e)return e.addEventListener(nD,C),()=>e.removeEventListener(nD,C)},[C]),(0,p.jsx)(nz,{scope:n,orientation:r,dir:v,loop:o,currentTabStopId:y,onItemFocus:i.useCallback(e=>b(e),[b]),onItemShiftTab:i.useCallback(()=>x(!0),[]),onFocusableItemAdd:i.useCallback(()=>O(e=>e+1),[]),onFocusableItemRemove:i.useCallback(()=>O(e=>e-1),[]),children:(0,p.jsx)(W.div,{tabIndex:w||0===P?-1:0,"data-orientation":r,...m,ref:g,style:{outline:"none",...e.style},onMouseDown:c(e.onMouseDown,()=>{S.current=!0}),onFocus:c(e.onFocus,e=>{let t=!S.current;if(e.target===e.currentTarget&&t&&!w){let t=new CustomEvent(nD,nL);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=R().filter(e=>
1e.focusable);nX([e.find(e=>e.active),e.find(e=>e.id===y),...e].filter(Boolean).map(e=>e.ref.current),d)}}S.current=!1}),onBlur:c(e.onBlur,()=>x(!1))})})},"RovingFocusGroupImpl")),nK=i.forwardRef(nT(function(e,t){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:l,children:u,...a}=e,s=ez(),f=l||s,d=n$("RovingFocusGroupItem",n),m=d.currentTabStopId===f,h=nF(n),{onFocusableItemAdd:g,onFocusableItemRemove:v,currentTabStopId:y}=d,b=nA();return eF(()=>{if(b&&r)return g(),()=>v()},[b,r,g,v]),i.useEffect(()=>{if(!b&&r)return g(),()=>v()},[b,r,g,v]),(0,p.jsx)(nI.ItemSlot,{scope:n,id:f,focusable:r,active:o,children:(0,p.jsx)(W.span,{tabIndex:m?0:-1,"data-orientation":d.orientation,...a,ref:t,onMouseDown:c(e.onMouseDown,e=>{r?d.onItemFocus(f):e.preventDefault()}),onFocus:c(e.onFocus,()=>d.onItemFocus(f)),onKeyDown:c(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void d.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=nG(e,d.orientation,d.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=d.loop?nq(n,r+1):n.slice(r+1)}setTimeout(()=>nX(n))}}),children:"function"==typeof u?u({isCurrentTabStop:m,hasTabStop:null!=y}):u})})},"RovingFocusGroupItem")),nV={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function nH(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function nG(e,t,n){let r=nH(e.key,n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return nV[r]}function nX(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function nq(e,t){return e.map((n,r)=>e[(t+r)%e.length])}nT(nH,"getDirectionAwareKey"),nT(nG,"getFocusIntent"),nT(nX,"focusFirst"),nT(nq,"wrapArray");var nY=n(34858),nZ=n(30235),nJ=Object.defineProperty,nQ=(e,t)=>nJ(e,"name",{value:t,configurable:!0}),n0=["Enter"," "],n1=["ArrowUp","PageDown","End"],n2=["ArrowDown","PageUp","Home",...n1],n5={ltr:[...n0,"ArrowRight"],rtl:[...n0,"ArrowLeft"]},n3={ltr:["ArrowLeft"],rtl:["ArrowRight"]},n4="Menu",[n7,n9,n8]=B(n4),[n6,re]=g(n4,[n8,tJ,nW]),rt=tJ(),rn=nW(),[rr,ro]=n6(n4),[ri,rl]=n6(n4),ru=nQ(e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:l,modal:u=!0}=e,a=rt(t),[s,c]=i.useState(null),f=i.useRef(!1),d=en(l),m=et(o);return i.useEffect(()=>{let e=nQ(()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},"handleKeyDown"),t=nQ(()=>f.current=!1,"handlePointer");return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),i.useEffect(()=>{if(!n)return;let e=nQ(()=>d(!1),"handleBlur");return window.addEventListener("blur",e),()=>window.removeEventListener("blur",e)},[n,d]),(0,p.jsx)(t1,{...a,children:(0,p.jsx)(rr,{scope:t,open:n,onOpenChange:d,content:s,onContentChange:c,children:(0,p.jsx)(ri,{scope:t,onClose:i.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:m,modal:u,children:r})})})},"Menu"),ra=i.forwardRef(nQ(function(e,t){let{__scopeMenu:n,...r}=e,o=rt(n);return(0,p.jsx)(t2,{...o,...r,ref:t})},"MenuAnchor")),rs="MenuPortal",[rc,rf]=n6(rs,{forceMount:void 0}),rd=nQ(e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=ro(rs,t);return(0,p.jsx)(rc,{scope:t,forceMount:n,children:(0,p.jsx)(ni,{present:n||i.open,children:(0,p.jsx)(nt,{asChild:!0,container:o,children:r})})})},"MenuPortal"),rp="MenuContent",[rm,rh]=n6(rp),rg=i.forwardRef(nQ(function(e,t){let n=rf(rp,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=ro(rp,e.__scopeMenu),l=rl(rp,e.__scopeMenu);return(0,p.jsx)(n7.Provider,{scope:e.__scopeMenu,children:(0,p.jsx)(ni,{present:r||i.open,children:(0,p.jsx)(n7.Slot,{scope:e.__scopeMenu,children:l.modal?(0,p.jsx)(rv,{...o,ref:t}):(0,p.jsx)(ry,{...o,ref:t})})})})},"MenuContent")),rv=i.forwardRef(nQ(function(e,t){let n=ro(rp,e.__scopeMenu),r=i.useRef(null),o=E(t,r);return i.useEffect(()=>{let e=r.current;if(e)return(0,nY.Eq)(e)},[]),(0,p.jsx)(rw,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:c(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})},"MenuRootContentModal")),ry=i.forwardRef(nQ(function(e,t){let n=ro(rp,e.__scopeMenu);return(0,p.jsx)(rw,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},"MenuRootContentNonModal")),rb=P("MenuContent.ScrollLock"),rw=i.forwardRef(nQ(function(e,t){let{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:l,onCloseAutoFocus:u,disableOutsidePointerEvents:a,onEntryFocus:s,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:m,onInteractOutside:h,onDismiss:g,disableOutsideScroll:v,...y}=e,b=ro(rp,n),w=rl(rp,n),x=rt(n),C=rn(n),R=n9(n),[S,P]=i.useState(null),O=i.useRef(null),M=E(t,O,b.onContentChange),A=i.useRef(0),j=i.useRef(""),T=i.useRef(0),D=i.useRef(null),L=i.useRef("right"),k=i.useRef(0),I=v?nZ.A:i.Fragment,F=nQ(e=>{let t=j.current+e,n=R().filter(e=>!e.disabled),r=document.activeElement,o=n.find(e=>e.ref.current===r)?.textValue,i=rK(n.map(e=>e.textValue),t,o),l=n.find(e=>e.textValue===i)?.ref.current;l&&setTimeout(()=>l.focus())},"handleTypeaheadSearch");i.useEffect(()=>()=>window.clearTimeout(A.current),[]),ev();let _=i.useCallback(e=>L.current===D.current?.side&&rH(e,D.current?.area),[]);return(0,p.jsx)(rm,{scope:n,searchRef:j,onItemEnter:i.useCallback(e=>{_(e)&&e.preventDefault()},[_]),onItemLeave:i.useCallback(e=>{_(e)||(O.current?.focus(),P(null))},[_]),onTriggerLeave:i.useCallback(e=>{_(e)&&e.preventDefault()},[_]),pointerGraceTimerRef:T,onPointerGraceIntentChange:i.useCallback(e=>{D.current=e},[]),children:(0,p.jsx)(I,{...v?{as:rb,allowPinchZoom:!0}:void 0,children:(0,p.jsx)(eR,{asChild:!0,trapped:o,onMountAutoFocus:c(l,e=>{e.preventDefault(),O.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:(0,p.jsx)(eu,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:m,onInteractOutside:h,onDismiss:g,children:(0,p.jsx)(nU,{asChild:!0,...C,dir:w.dir,orientation:"vertical",loop:r,currentTabStopId:S,onCurrentTabStopIdChange:P,onEntryFocus:c(s,e=>{w.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,p.jsx)(t7,{role:"menu","aria-orientation":"vertical","data-state":rz(b.open),"data-radix-menu-content":"",dir:w.dir,...x,...y,ref:M,style:{outline:"none",...y.style},onKeyDown:c(y.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.ke
1y.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&F(e.key));let o=O.current;if(e.target!==o||!n2.includes(e.key))return;e.preventDefault();let i=R().filter(e=>!e.disabled).map(e=>e.ref.current);n1.includes(e.key)&&i.reverse(),rU(i)}),onBlur:c(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(A.current),j.current="")}),onPointerMove:c(e.onPointerMove,rG(e=>{let t=e.target,n=k.current!==e.clientX;e.currentTarget.contains(t)&&n&&(L.current=e.clientX>k.current?"right":"left",k.current=e.clientX)}))})})})})})})},"MenuContentImpl")),rx=i.forwardRef(nQ(function(e,t){let{__scopeMenu:n,...r}=e;return(0,p.jsx)(W.div,{role:"group",...r,ref:t})},"MenuGroup")),rC=i.forwardRef(nQ(function(e,t){let{__scopeMenu:n,...r}=e;return(0,p.jsx)(W.div,{...r,ref:t})},"MenuLabel")),rE="MenuItem",rR="menu.itemSelect",rS=i.forwardRef(nQ(function(e,t){let{disabled:n=!1,onSelect:r,...o}=e,l=i.useRef(null),u=rl(rE,e.__scopeMenu),a=rh(rE,e.__scopeMenu),s=E(t,l),f=i.useRef(!1),d=nQ(()=>{let e=l.current;if(!n&&e){let t=new CustomEvent(rR,{bubbles:!0,cancelable:!0});e.addEventListener(rR,e=>r?.(e),{once:!0}),z(e,t),t.defaultPrevented?f.current=!1:u.onClose()}},"handleSelect");return(0,p.jsx)(rP,{...o,ref:s,disabled:n,onClick:c(e.onClick,d),onPointerDown:t=>{e.onPointerDown?.(t),f.current=!0},onPointerUp:c(e.onPointerUp,e=>{f.current||e.currentTarget?.click()}),onKeyDown:c(e.onKeyDown,e=>{n||e.target!==e.currentTarget||(""===a.searchRef.current||" "!==e.key)&&n0.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},"MenuItem")),rP=i.forwardRef(nQ(function(e,t){let{__scopeMenu:n,disabled:r=!1,textValue:o,...l}=e,u=rh(rE,n),a=rn(n),s=i.useRef(null),f=E(t,s),[d,m]=i.useState(!1),[h,g]=i.useState("");return i.useEffect(()=>{let e=s.current;e&&g((e.textContent??"").trim())},[l.children]),(0,p.jsx)(n7.ItemSlot,{scope:n,disabled:r,textValue:o??h,children:(0,p.jsx)(nK,{asChild:!0,...a,focusable:!r,children:(0,p.jsx)(W.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...l,ref:f,onPointerMove:c(e.onPointerMove,rG(e=>{r?u.onItemLeave(e):(u.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:c(e.onPointerLeave,rG(e=>u.onItemLeave(e))),onFocus:c(e.onFocus,()=>m(!0)),onBlur:c(e.onBlur,()=>m(!1))})})})},"MenuItemImpl")),[rO,rM]=n6("MenuRadioGroup",{value:void 0,onValueChange:nQ(()=>{},"onValueChange")}),rA=i.forwardRef(nQ(function(e,t){let{value:n,onValueChange:r,...o}=e,i=en(r);return(0,p.jsx)(rO,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,p.jsx)(rx,{...o,ref:t})})},"MenuRadioGroup")),[rj,rT]=n6("MenuItemIndicator",{checked:!1}),rD=i.forwardRef(nQ(function(e,t){let{__scopeMenu:n,...r}=e;return(0,p.jsx)(W.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})},"MenuSeparator")),rL="MenuSub",[rk,rI]=n6(rL),rF=nQ(e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,l=ro(rL,t),u=rt(t),[a,s]=i.useState(null),[c,f]=i.useState(null),d=en(o);return i.useEffect(()=>(!1===l.open&&d(!1),()=>d(!1)),[l.open,d]),(0,p.jsx)(t1,{...u,children:(0,p.jsx)(rr,{scope:t,open:r,onOpenChange:d,content:c,onContentChange:f,children:(0,p.jsx)(rk,{scope:t,contentId:ez(),triggerId:ez(),trigger:a,onTriggerChange:s,children:n})})})},"MenuSub"),r_="MenuSubTrigger",rN=i.forwardRef(nQ(function(e,t){let n=ro(r_,e.__scopeMenu),r=rl(r_,e.__scopeMenu),o=rI(r_,e.__scopeMenu),l=rh(r_,e.__scopeMenu),u=i.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:s}=l,f={__scopeMenu:e.__scopeMenu},d=i.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);i.useEffect(()=>d,[d]),i.useEffect(()=>{let e=a.current;return()=>{window.clearTimeout(e),s(null)}},[a,s]);let m=E(t,o.onTriggerChange);return(0,p.jsx)(ra,{asChild:!0,...f,children:(0,p.jsx)(rP,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":n.open?o.contentId:void 0,"data-state":rz(n.open),...e,ref:m,onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:c(e.onPointerMove,rG(t=>{l.onItemEnter(t),!t.defaultPrevented&&(e.disabled||n.open||u.current||(l.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100)))})),onPointerLeave:c(e.onPointerLeave,rG(e=>{d();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,o="right"===r,i=t[o?"left":"right"],u=t[o?"right":"left"];l.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:i,y:t.top},{x:u,y:t.top},{x:u,y:t.bottom},{x:i,y:t.bottom}],side:r}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:c(e.onKeyDown,t=>{e.disabled||t.target!==t.currentTarget||(""===l.searchRef.current||" "!==t.key)&&n5[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})},"MenuSubTrigger")),rW=i.forwardRef(nQ(function(e,t){let n=rf(rp,e.__scopeMenu),{forceMount:r=n.forceMount,align:o="start",...l}=e,u=ro(rp,e.__scopeMenu),a=rl(rp,e.__scopeMenu),s=rI("MenuSubContent",e.__scopeMenu),f=i.useRef(null),d=E(t,f);return(0,p.jsx)(n7.Provider,{scope:e.__scopeMenu,children:(0,p.jsx)(ni,{present:r||u.open,children:(0,p.jsx)(n7.Slot,{scope:e.__scopeMenu,children:(0,p.jsx)(rw,{id:s.contentId,"aria-labelledby":s.triggerId,...l,ref:d,align:o,side:"rtl"===a.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{a.isUsingKeyboardRef.current&&f.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:c(e.onFocusOutside,e=>{e.target!==s.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:c(e.onEscapeKeyDown,e=>{a.onClose(),e.preventDefault()}),onKeyDown:c(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=n3[a.dir].includes(e.ke
1y);t&&n&&(u.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())})})})})})},"MenuSubContent"));function rz(e){return e?"open":"closed"}function r$(e){return"indeterminate"===e}function rU(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function rB(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function rK(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1,i=rB(e,Math.max(o,0));1===r.length&&(i=i.filter(e=>e!==n));let l=i.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function rV(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let l=t[e],u=t[i],a=l.x,s=l.y,c=u.x,f=u.y;s>r!=f>r&&n<(c-a)*(r-s)/(f-s)+a&&(o=!o)}return o}function rH(e,t){return!!t&&rV({x:e.clientX,y:e.clientY},t)}function rG(e){return t=>"mouse"===t.pointerType?e(t):void 0}nQ(rz,"getOpenState"),nQ(r$,"isIndeterminate"),nQ(function(e){return r$(e)?"indeterminate":e?"checked":"unchecked"},"getCheckedState"),nQ(rU,"focusFirst"),nQ(rB,"wrapArray"),nQ(rK,"getNextMatch"),nQ(rV,"isPointInPolygon"),nQ(rH,"isPointerInGraceArea"),nQ(rG,"whenMouse");var rX=Object.defineProperty,rq=(e,t)=>rX(e,"name",{value:t,configurable:!0}),rY="ContextMenu",[rZ,rJ]=g(rY,[re]),rQ=re(),[r0,r1]=rZ(rY),r2=rq(e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:o,dir:l,modal:u=!0}=e,a=i.useRef(!1),[s,c]=ny({prop:o,defaultProp:!1,onChange:r,caller:rY}),f=rQ(t);return(0,p.jsx)(r0,{scope:t,open:s,onOpenChange:c,modal:u,hasInteractedRef:a,children:(0,p.jsx)(ru,{...f,dir:l,open:s,onOpenChange:c,modal:u,children:n})})},"ContextMenu"),r5=i.forwardRef(rq(function(e,t){let{__scopeContextMenu:n,disabled:r=!1,...o}=e,l=r1("ContextMenuTrigger",n),u=rQ(n),[a,s]=i.useState({x:0,y:0}),f=i.useMemo(()=>({current:{getBoundingClientRect:rq(()=>DOMRect.fromRect({width:0,height:0,...a}),"getBoundingClientRect")}}),[a]),d=i.useRef(0),m=i.useCallback(()=>window.clearTimeout(d.current),[]),h=rq(e=>{l.hasInteractedRef.current=!0,s({x:e.clientX,y:e.clientY}),l.onOpenChange(!0)},"handleOpen");return i.useEffect(()=>m,[m]),i.useEffect(()=>void(r&&m()),[r,m]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(ra,{...u,virtualRef:f}),(0,p.jsx)(W.span,{"data-state":l.open?"open":"closed","data-disabled":r?"":void 0,...o,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:r?e.onContextMenu:c(e.onContextMenu,e=>{m(),h(e),e.preventDefault()}),onPointerDown:r?e.onPointerDown:c(e.onPointerDown,oo(e=>{m(),l.open&&l.onOpenChange(!1),d.current=window.setTimeout(()=>h(e),700)})),onPointerMove:r?e.onPointerMove:c(e.onPointerMove,oo(m)),onPointerCancel:r?e.onPointerCancel:c(e.onPointerCancel,oo(m)),onPointerUp:r?e.onPointerUp:c(e.onPointerUp,oo(m))})]})},"ContextMenuTrigger")),r3=rq(e=>{let{__scopeContextMenu:t,...n}=e,r=rQ(t);return(0,p.jsx)(rd,{...r,...n})},"ContextMenuPortal"),r4=i.forwardRef(rq(function(e,t){let{__scopeContextMenu:n,...r}=e,o=r1("ContextMenuContent",n),l=rQ(n),u=i.useRef(!1);return(0,p.jsx)(rg,{...l,...r,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),!t.defaultPrevented&&u.current&&t.preventDefault(),u.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||o.modal||(u.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"ContextMenuContent")),r7=i.forwardRef(rq(function(e,t){let{__scopeContextMenu:n,...r}=e,o=rQ(n);return(0,p.jsx)(rx,{...o,...r,ref:t})},"ContextMenuGroup")),r9=i.forwardRef(rq(function(e,t){let{__scopeContextMenu:n,...r}=e,o=rQ(n);return(0,p.jsx)(rC,{...o,...r,ref:t})},"ContextMenuLabel")),r8=i.forwardRef(rq(function(e,t){let{__scopeContextMenu:n,...r}=e,o=rQ(n);return(0,p.jsx)(rS,{...o,...r,ref:t})},"ContextMenuItem")),r6=i.forwardRef(rq(function(e,t){let{__scopeContextMenu:n,...r}=e,o=rQ(n);return(0,p.jsx)(rA,{...o,...r,ref:t})},"ContextMenuRadioGroup")),oe=i.forwardRef(rq(function(e,t){let{__scopeContextMenu:n,...r}=e,o=rQ(n);return(0,p.jsx)(rD,{...o,...r,ref:t})},"ContextMenuSeparator")),ot=rq(e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:o,defaultOpen:i}=e,l=rQ(t),[u,a]=ny({prop:o,defaultProp:i??!1,onChange:r,caller:"ContextMenuSub"});return(0,p.jsx)(rF,{...l,open:u,onOpenChange:a,children:n})},"ContextMenuSub"),on=i.forwardRef(rq(function(e,t){let{__scopeContextMenu:n,...r}=e,o=rQ(n);return(0,p.jsx)(rN,{...o,...r,ref:t})},"ContextMenuSubTrigger")),or=i.forwardRef(rq(function(e,t){let{__scopeContextMenu:n,...r}=e,o=rQ(n);return(0,p.jsx)(rW,{...o,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"ContextMenuSubContent"));function oo(e){return t=>
1"mouse"!==t.pointerType?e(t):void 0}rq(oo,"whenTouchOrPen");var oi=r2,ol=r5,ou=r3,oa=r4,os=r7,oc=r9,of=r8,od=r6,op=oe,om=ot,oh=on,og=or}}]);
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.