vendor: 4,423 bytes, line 1
1import{r as c,R as Dn,a as _n,b as de,c as Eo}from"./react-vendor-BM5Vs4gt.js";var ht={exports:{}},De={};var nn;function Ro(){if(nn)return De;nn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,i){var s=null;if(i!==void 0&&(s=""+i),o.key!==void 0&&(s=""+o.key),"key"in o){i={};for(var a in o)a!=="key"&&(i[a]=o[a])}else i=o;return o=i.ref,{$$typeof:e,type:r,key:s,ref:o!==void 0?o:null,props:i}}return De.Fragment=t,De.jsx=n,De.jsxs=n,De}var rn;function So(){return rn||(rn=1,ht.exports=Ro()),ht.exports}var w=So();function on(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function it(...e){return t=>{let n=!1;const r=e.map(o=>{const i=on(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():on(e[o],null)}}}}function U(...e){return c.useCallback(it(...e),e)}function O(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function Mo(e,t){const n=c.createContext(t),r=i=>{const{children:s,...a}=i,d=c.useMemo(()=>a,Object.values(a));return w.jsx(n.Provider,{value:d,children:s})};r.displayName=e+"Provider";function o(i){const s=c.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function Re(e,t=[]){let n=[];function r(i,s){const a=c.createContext(s),d=n.length;n=[...n,s];const f=u=>{const{scope:m,children:h,...g}=u,p=m?.[e]?.[d]||a,v=c.useMemo(()=>g,Object.values(g));return w.jsx(p.Provider,{value:v,children:h})};f.displayName=i+"Provider";function l(u,m){const h=m?.[e]?.[d]||a,g=c.useContext(h);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${u}\` must be used within \`${i}\``)}return[f,l]}const o=()=>{const i=n.map(s=>c.createContext(s));return function(a){const d=a?.[e]||i;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:d}}),[a,d])}};return o.scopeName=e,[r,Ao(o,...t)]}function Ao(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:d,scopeName:f})=>{const u=d(i)[`__scope${f}`];return{...a,...u}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var se=globalThis?.document?c.useLayoutEffect:()=>{},Po=Dn[" useInsertionEffect ".trim().toString()]||se;function It({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=Oo({defaultProp:t,onChange:n}),a=e!==void 0,d=a?e:o;{const l=c.useRef(e!==void 0);c.useEffect(()=>{const u=l.current;u!==a&&console.warn(`${r} is changing from ${u?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),l.current=a},[a,r])}const f=c.useCallback(l=>{if(a){const u=Do(l)?l(e):l;u!==e&&s.current?.(u)}else i(l)},[a,e,i,s]);return[d,f]}function Oo({defaultProp:e,onChange:t}){const[n,r]=c.useState(e),o=c.useRef(n),i=c.useRef(t);return Po(()=>{i.current=t},[t]),c.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function Do(e){return typeof e=="function"}function Te(e){const t=_o(e),n=c.forwardRef((r,o)=>{const{children:i,...s}=r,a=c.Children.toArray(i),d=a.find(To);if(d){const f=d.props.children,l=a.map(u=>u===d?c.Children.count(f)>1?c.Children.only(null):c.isValidElement(f)?f.props.children:null:u);return w.jsx(t,{...s,ref:o,children:c.isValidElement(f)?c.cloneElement(f,void 0,l):null})}return w.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function _o(e){const t=c.forwardRef((n,r)=>{const{children:o,...i}=n;if(c.isValidElement(o)){const s=No(o),a=Io(i,o.props);return o.type!==c.Fragment&&(a.ref=r?it(r,s):s),c.cloneElement(o,a)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Tn=Symbol("radix.slottable");function Kc(e){const t=({children:n})=>w.jsx(w.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Tn,t}function To(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Tn}function Io(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const d=i(...a);return o(...a),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}
vendor: 9,575 bytes, line 1
1:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function No(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Fo=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],j=Fo.reduce((e,t)=>{const n=Te(`Primitive.${t}`),r=c.forwardRef((o,i)=>{const{asChild:s,...a}=o,d=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(d,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function In(e,t){e&&_n.flushSync(()=>e.dispatchEvent(t))}function Nn(e){const t=e+"CollectionProvider",[n,r]=Re(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=p=>{const{scope:v,children:y}=p,C=de.useRef(null),x=de.useRef(new Map).current;return w.jsx(o,{scope:v,itemMap:x,collectionRef:C,children:y})};s.displayName=t;const a=e+"CollectionSlot",d=Te(a),f=de.forwardRef((p,v)=>{const{scope:y,children:C}=p,x=i(a,y),b=U(v,x.collectionRef);return w.jsx(d,{ref:b,children:C})});f.displayName=a;const l=e+"CollectionItemSlot",u="data-radix-collection-item",m=Te(l),h=de.forwardRef((p,v)=>{const{scope:y,children:C,...x}=p,b=de.useRef(null),E=U(v,b),M=i(l,y);return de.useEffect(()=>(M.itemMap.set(b,{ref:b,...x}),()=>void M.itemMap.delete(b))),w.jsx(m,{[u]:"",ref:E,children:C})});h.displayName=l;function g(p){const v=i(e+"CollectionConsumer",p);return de.useCallback(()=>{const C=v.collectionRef.current;if(!C)return[];const x=Array.from(C.querySelectorAll(`[${u}]`));return Array.from(v.itemMap.values()).sort((M,R)=>x.indexOf(M.ref.current)-x.indexOf(R.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:f,ItemSlot:h},g,r]}var Lo=c.createContext(void 0);function Fn(e){const t=c.useContext(Lo);return e||t||"ltr"}function ne(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>t.current?.(...n),[])}function ko(e,t=globalThis?.document){const n=ne(e);c.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var jo="DismissableLayer",Mt="dismissableLayer.update",$o="dismissableLayer.pointerDownOutside",Wo="dismissableLayer.focusOutside",sn,Ln=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Nt=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...d}=e,f=c.useContext(Ln),[l,u]=c.useState(null),m=l?.ownerDocument??globalThis?.document,[,h]=c.useState({}),g=U(t,R=>u(R)),p=Array.from(f.layers),[v]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(v),C=l?p.indexOf(l):-1,x=f.layersWithOutsidePointerEventsDisabled.size>0,b=C>=y,E=Go(R=>{const A=R.target,T=[...f.branches].some(D=>D.contains(A));!b||T||(o?.(R),s?.(R),R.defaultPrevented||a?.())},m),M=Ho(R=>{const A=R.target;[...f.branches].some(D=>D.contains(A))||(i?.(R),s?.(R),R.defaultPrevented||a?.())},m);return ko(R=>{C===f.layers.size-1&&(r?.(R),!R.defaultPrevented&&a&&(R.preventDefault(),a()))},m),c.useEffect(()=>{if(l)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(sn=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(l)),f.layers.add(l),an(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=sn)}},[l,m,n,f]),c.useEffect(()=>()=>{l&&(f.layers.delete(l),f.layersWithOutsidePointerEventsDisabled.delete(l),an())},[l,f]),c.useEffect(()=>{const R=()=>h({});return document.addEventListener(Mt,R),()=>document.removeEventListener(Mt,R)},[]),w.jsx(j.div,{...d,ref:g,style:{pointerEvents:x?b?"auto":"none":void 0,...e.style},onFocusCapture:O(e.onFocusCapture,M.onFocusCapture),onBlurCapture:O(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:O(e.onPointerDownCapture,E.onPointerDownCapture)})});Nt.displayName=jo;var Bo="DismissableLayerBranch",Uo=c.forwardRef((e,t)=>{const n=c.useContext(Ln),r=c.useRef(null),o=U(t,r);return c.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),w.jsx(j.div,{...e,ref:o})});Uo.displayName=Bo;function Go(e,t=globalThis?.document){const n=ne(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let d=function(){kn($o,n,f,{discrete:!0})};const f={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ho(e,t=globalThis?.document){const n=ne(e),r=c.useRef(!1);return c.useEffect(()=>{const o=i=>{i.target&&!r.current&&kn(Wo,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function an(){const e=new CustomEvent(Mt);document.dispatchEvent(e)}function kn(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?In(o,i):o.dispatchEvent(i)}var vt=0;function jn(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??cn()),document.body.insertAdjacentElement("beforeend",e[1]??cn()),vt++,()=>{vt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),vt--}},[])}function cn(){const 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}var gt="focusScope.autoFocusOnMount",wt="focusScope.autoFocusOnUnmount",ln={bubbles:!1,cancelable:!0},Ko="FocusScope",Ft=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,d]=c.useState(null),f=ne(o),l=ne(i),u=c.useRef(null),m=U(t,p=>d(p)),h=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let p=function(x){if(h.paused||!a)return;const b=x.target;a.contains(b)?u.current=b:ie(u.current,{select:!0})},v=function(x){if(h.paused||!a)return;const b=x.relatedTarget;b!==null&&(a.contains(b)||ie(u.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const E of x)E.removedNodes.length>0&&ie(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",v);const C=new MutationObserver(y);return a&&C.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),C.disconnect()}}},[r,a,h.paused]),c.useEffect(()=>{if(a){fn.add(h);const p=document.activeElement;if(!a.contains(p)){const y=new CustomEvent(gt,ln);a.addEventListener(gt,f),a.dispatchEvent(y),y.defaultPrevented||(Vo(Zo($n(a)),{select:!0}),document.activeElement===p&&ie(a))}return()=>{a.removeEventListener(gt,f),setTimeout(()=>{const y=new CustomEvent(wt,ln);a.addEventListener(wt,l),a.dispatchEvent(y),y.defaultPrevented||ie(p??document.body,{select:!0}),a.removeEventListener(wt,l),fn.remove(h)},0)}}},[a,f,l,h]);const g=c.useCallback(p=>{if(!n&&!r||h.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(v&&y){const C=p.currentTarget,[x,b]=zo(C);x&&b?!p.shiftKey&&y===b?(p.preventDefault(),n&&ie(x,{select:!0})):p.shiftKey&&y===x&&(p.preventDefault(),n&&ie(b,{select:!0})):y===C&&p.preventDefault()}},[n,r,h.paused]);return w.jsx(j.div,{tabIndex:-1,...s,ref:m,onKeyDown:g})});Ft.displayName=Ko;function Vo(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ie(r,{select:t}),document.activeElement!==n)return}function zo(e){const t=$n(e),n=un(t,e),r=un(t.reverse(),e);return[n,r]}function $n(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function un(e,t){for(const n of e)if(!Yo(n,{upTo:t}))return n}function Yo(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Xo(e){return e instanceof HTMLInputElement&&"select"in e}function ie(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Xo(e)&&t&&e.select()}}var fn=qo();function qo(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=dn(e,t),e.unshift(t)},remove(t){e=dn(e,t),e[0]?.resume()}}}function dn(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Zo(e){return e.filter(t=>t.tagName!=="A")}var Jo=Dn[" useId ".trim().toString()]||(()=>{}),Qo=0;function xe(e){const[t,n]=c.useState(Jo());return se(()=>{n(r=>r??String(Qo++))},[e]),e||(t?`radix-${t}`:"")}const ei=["top","right","bottom","left"],ae=Math.min,H=Math.max,Je=Math.round,Ge=Math.floor,Q=e=>({x:e,y:e}
vendor: 14,399 bytes, line 1
1),ti={left:"right",right:"left",bottom:"top",top:"bottom"},ni={start:"end",end:"start"};function At(e,t,n){return H(e,ae(t,n))}function re(e,t){return typeof e=="function"?e(t):e}function oe(e){return e.split("-")[0]}function Se(e){return e.split("-")[1]}function Lt(e){return e==="x"?"y":"x"}function kt(e){return e==="y"?"height":"width"}const ri=new Set(["top","bottom"]);function J(e){return ri.has(oe(e))?"y":"x"}function jt(e){return Lt(J(e))}function oi(e,t,n){n===void 0&&(n=!1);const r=Se(e),o=jt(e),i=kt(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Qe(s)),[s,Qe(s)]}function ii(e){const t=Qe(e);return[Pt(e),t,Pt(t)]}function Pt(e){return e.replace(/start|end/g,t=>ni[t])}const pn=["left","right"],mn=["right","left"],si=["top","bottom"],ai=["bottom","top"];function ci(e,t,n){switch(e){case"top":case"bottom":return n?t?mn:pn:t?pn:mn;case"left":case"right":return t?si:ai;default:return[]}}function li(e,t,n,r){const o=Se(e);let i=ci(oe(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Pt)))),i}function Qe(e){return e.replace(/left|right|bottom|top/g,t=>ti[t])}function ui(e){return{top:0,right:0,bottom:0,left:0,...e}}function Wn(e){return typeof e!="number"?ui(e):{top:e,right:e,bottom:e,left:e}}function et(e){const{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 hn(e,t,n){let{reference:r,floating:o}=e;const i=J(t),s=jt(t),a=kt(s),d=oe(t),f=i==="y",l=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,m=r[a]/2-o[a]/2;let h;switch(d){case"top":h={x:l,y:r.y-o.height};break;case"bottom":h={x:l,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:u};break;case"left":h={x:r.x-o.width,y:u};break;default:h={x:r.x,y:r.y}}switch(Se(t)){case"start":h[s]-=m*(n&&f?-1:1);break;case"end":h[s]+=m*(n&&f?-1:1);break}return h}const fi=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:u}=hn(f,r,d),m=r,h={},g=0;for(let p=0;p<a.length;p++){const{name:v,fn:y}=a[p],{x:C,y:x,data:b,reset:E}=await y({x:l,y:u,initialPlacement:r,placement:m,strategy:o,middlewareData:h,rects:f,platform:s,elements:{reference:e,floating:t}});l=C??l,u=x??u,h={...h,[v]:{...h[v],...b}},E&&g<=50&&(g++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(f=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:l,y:u}=hn(f,m,d)),p=-1)}return{x:l,y:u,placement:m,strategy:o,middlewareData:h}};async function Ie(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:d}=e,{boundary:f="clippingAncestors",rootBoundary:l="viewport",elementContext:u="floating",altBoundary:m=!1,padding:h=0}=re(t,e),g=Wn(h),v=a[m?u==="floating"?"reference":"floating":u],y=et(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:f,rootBoundary:l,strategy:d})),C=u==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),b=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},E=et(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:C,offsetParent:x,strategy:d}):C);return{top:(y.top-E.top+g.top)/b.y,bottom:(E.bottom-y.bottom+g.bottom)/b.y,left:(y.left-E.left+g.left)/b.x,right:(E.right-y.right+g.right)/b.x}}const di=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:d}=t,{element:f,padding:l=0}=re(e,t)||{};if(f==null)return{};const u=Wn(l),m={x:n,y:r},h=jt(o),g=kt(h),p=await s.getDimensions(f),v=h==="y",y=v?"top":"left",C=v?"bottom":"right",x=v?"clientHeight":"clientWidth",b=i.reference[g]+i.reference[h]-m[h]-i.floating[g],E=m[h]-i.reference[h],M=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let R=M?M[x]:0;(!R||!await(s.isElement==null?void 0:s.isElement(M)))&&(R=a.floating[x]||i.floating[g]);const A=b/2-E/2,T=R/2-p[g]/2-1,D=ae(u[y],T),I=ae(u[C],T),F=D,L=R-p[g]-I,N=R/2-p[g]/2+A,W=At(F,N,L),_=!d.arrow&&Se(o)!=null&&N!==W&&i.reference[g]/2-(N<F?D:I)-p[g]/2<0,k=_?N<F?N-F:N-L:0;return{[h]:m[h]+k,data:{[h]:W,centerOffset:N-W-k,..._&&{alignmentOffset:k}},reset:_}}}),pi=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:d,elements:f}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...v}=re(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=oe(o),C=J(a),x=oe(a)===a,b=await(d.isRTL==null?void 0:d.isRTL(f.floating)),E=m||(x||!p?[Qe(a)]:ii(a)),M=g!=="none";!m&&M&&E.push(...li(a,p,g,b));const R=[a,...E],A=await Ie(t,v),T=[];let D=((r=i.flip)==null?void 0:r.overflows)||[];if(l&&T.push(A[y]),u){const N=oi(o,s,b);T.push(A[N[0]],A[N[1]])}if(D=[...D,{placement:o,overflows:T}],!T.every(N=>N<=0)){var I,F;const N=(((I=i.flip)==null?void 0:I.index)||0)+1,W=R[N];if(W&&(!(u==="alignment"?C!==J(W):!1)||D.every(P=>J(P.placement)===C?P.overflows[0]>0:!0)))return{data:{index:N,overflows:D},reset:{placement:W}};let _=(F=D.filter(k=>k.overflows[0]<=0).sort((k,P)=>k.overflows[1]-P.overflows[1])[0])==null?void 0:F.placement;if(!_)switch(h){case"bestFit":{var L;const k=(L=D.filter(P=>{if(M){const S=J(P.placement);return S===C||S==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(S=>S>0).reduce((S,B)=>S+B,0)]).sort((P,S)=>P[1]-S[1])[0])==null?void 0:L[0];k&&(_=k);break}case"initialPlacement":_=a;break}if(o!==_)return{reset:{placement:_}}}return{}}}};function vn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function gn(e){return ei.some(t=>e[t]>=0)}const mi=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=re(e,t);switch(r){case"referenceHidden":{const i=await Ie(t,{...o,elementContext:"reference"}),s=vn(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:gn(s)}}}case"escaped":{const i=await Ie(t,{...o,altBoundary:!0}),s=vn(i,n.floating);return{data:{escapedOffsets:s,escaped:gn(s)}}}default:return{}}}}},Bn=new Set(["left","top"]);async function hi(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=oe(n),a=Se(n),d=J(n)==="y",f=Bn.has(s)?-1:1,l=i&&d?-1:1,u=re(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&typeof g=="number"&&(h=a==="end"?g*-1:g),d?{x:h*l,y:m*f}:{x:m*f,y:h*l}}const vi=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,d=await hi(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:i+d.y,data:{...d,placement:s}}}}},gi=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:y,y:C}=v;return{x:y,y:C}}},...d}=re(e,t),f={x:n,y:r},l=await Ie(t,d),u=J(oe(o)),m=Lt(u);let h=f[m],g=f[u];if(i){const v=m==="y"?"top":"left",y=m==="y"?"bottom":"right",C=h+l[v],x=h-l[y];h=At(C,h,x)}if(s){const v=u==="y"?"top":"left",y=u==="y"?"bottom":"right",C=g+l[v],x=g-l[y];g=At(C,g,x)}const p=a.fn({...t,[m]:h,[u]:g});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[m]:i,[u]:s}}}}}},wi=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:d=!0,crossAxis:f=!0}=re(e,t),l={x:n,y:r},u=J(o),m=Lt(u);let h=l[m],g=l[u];const p=re(a,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(d){const x=m==="y"?"height":"width",b=i.reference[m]-i.floating[x]+v.mainAxis,E=i.reference[m]+i.reference[x]-v.mainAxis;h<b?h=b:h>E&&(h=E)}if(f){var y,C;const x=m==="y"?"width":"height",b=Bn.has(oe(o)),E=i.reference[u]-i.floating[x]+(b&&((y=s.offset)==null?void 0:y[u])||0)+(b?0:v.crossAxis),M=i.reference[u]+i.reference[x]+(b?0:((C=s.offset)==null?void 0:C[u])||0)-(b?v.crossAxis:0);g<E?g=E:g>M&&(g=M)}return{[m]:h,[u]:g}}}},yi=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:d=()=>{},...f}=re(e,t),l=await Ie(t,f),u=oe(o),m=Se(o),h=J(o)==="y",{width:g,height:p}=i.floating;let v,y;u==="top"||u==="bottom"?(v=u,y=m===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=u,v=m==="end"?"top":"bottom");const C=p-l.top-l.bottom,x=g-l.left-l.right,b=ae(p-l[v],C),E=ae(g-l[y],x),M=!t.middlewareData.shift;let R=b,A=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=C),M&&!m){const D=H(l.left,0),I=H(l.right,0),F=H(l.top,0),L=H(l.bottom,0);h?A=g-2*(D!==0||I!==0?D+I:H(l.left,l.right)):R=p-2*(F!==0||L!==0?F+L:H(l.top,l.bottom))}await d({...t,availableWidth:A,availableHeight:R});const T=await s.getDimensions(a.floating);return g!==T.width||p!==T.height?{reset:{rects:!0}}:{}}}};function st(){return typeof window<"u"}function Me(e){return Un(e)?(e.nodeName||"").toLowerCase():"#document"}function K(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function te(e){var t;return(t=(Un(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Un(e){return st()?e instanceof Node||e instanceof K(e).Node:!1}function z(e){return st()?e instanceof Element||e instanceof K(e).Element:!1}function ee(e){return st()?e instanceof HTMLElement||e instanceof K(e).HTMLElement:!1}function wn(e){return!st()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof K(e).ShadowRoot}const xi=new Set(["inline","contents"]);function ke(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!xi.has(o)}const bi=new Set(["table","td","th"]);function Ci(e){return bi.has(Me(e))}const Ei=[":popover-open",":modal"];function at(e){return Ei.some(t=>{try{return e.matches(t)}catch{return!1}})}const Ri=["transform","translate","scale","rotate","perspective"],Si=["transform","translate","scale","rotate","perspective","filter"],Mi=["paint","layout","strict","content"];function $t(e){const t=Wt(),n=z(e)?Y(e):e;return Ri.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Si.some(r=>(n.willChange||"").includes(r))||Mi.some(r=>(n.contain||"").includes(r))}function Ai(e){let t=ce(e);for(;ee(t)&&!Ee(t);){if($t(t))return t;if(at(t))return null;t=ce(t)}return null}function Wt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Pi=new Set(["html","body","#document"]);function Ee(e){return Pi.has(Me(e))}function Y(e){return K(e).getComputedStyle(e)}function ct(e){return z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ce(e){if(Me(e)==="html")return e;const t=e.assignedSlot||e.parentNode||wn(e)&&e.host||te(e);return wn(t)?t.host:t}function Gn(e){const t=ce(e);return Ee(t)?e.ownerDocument?e.ownerDocument.body:e.body:ee(t)&&ke(t)?t:Gn(t)}function Ne(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Gn(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=K(o);if(i){const a=Ot(s);return t.concat(s,s.visualViewport||[],ke(o)?o:[],a&&n?Ne(a):[])}return t.concat(o,Ne(o,[],n))}function Ot(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Hn(e){const t=Y(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ee(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Je(n)!==i||Je(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Bt(e){return z(e)?e:e.contextElement}function be(e){const t=Bt(e);if(!ee(t))return Q(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Hn(t);let s=(i?Je(n.width):n.width)/r,a=(i?Je(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Oi=Q(0);function Kn(e){const t=K(e);return!Wt()||!t.visualViewport?Oi:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Di(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==K(e)?!1:t}function pe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Bt(e);let s=Q(1);t&&(r?z(r)&&(s=be(r)):s=be(e));const a=Di(i,n,r)?Kn(i):Q(0);let d=(o.left+a.x)/s.x,f=(o.top+a.y)/s.y,l=o.width/s.x,u=o.height/s.y;if(i){const m=K(i),h=r&&z(r)?K(r):r;let g=m,p=Ot(g);for(;p&&r&&h!==g;){const v=be(p),y=p.getBoundingClientRect(),C=Y(p),x=y.left+(p.clientLeft+parseFloat(C.paddingLeft))*v.x,b=y.top+(p.clientTop+parseFloat(C.paddingTop))*v.y;d*=v.x,f*=v.y,l*=v.x,u*=v.y,d+=x,f+=b,g=K(p),p=Ot(g)}}return et({width:l,height:u,x:d,y:f})}function lt(e,t){const n=ct(e).scrollLeft;return t?t.left+n:pe(te(e)).left+n}function Vn(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-lt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function _i(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=te(r),a=t?at(t.floating):!1;if(r===s||a&&i)return n;let d={scrollLeft:0,scrollTop:0},f=Q(1);const l=Q(0),u=ee(r);if((u||!u&&!i)&&((Me(r)!=="body"||ke(s))&&(d=ct(r)),ee(r))){const h=pe(r);f=be(r),l.x=h.x+r.clientLeft,l.y=h.y+r.clientTop}const m=s&&!u&&!i?Vn(s,d):Q(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-d.scrollLeft*f.x+l.x+m.x,y:n.y*f.y-d.scrollTop*f.y+l.y+m.y}}function Ti(e){return Array.from(e.getClientRects())}function Ii(e){const t=te(e),n=ct(e),r=e.ownerDocument.body,o=H(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=H(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+lt(e);const a=-n.scrollTop;return Y(r).direction==="rtl"&&(s+=H(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const yn=25;
vendor: 19,199 bytes, line 1
1function Ni(e,t){const n=K(e),r=te(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,d=0;if(o){i=o.width,s=o.height;const l=Wt();(!l||l&&t==="fixed")&&(a=o.offsetLeft,d=o.offsetTop)}const f=lt(r);if(f<=0){const l=r.ownerDocument,u=l.body,m=getComputedStyle(u),h=l.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,g=Math.abs(r.clientWidth-u.clientWidth-h);g<=yn&&(i-=g)}else f<=yn&&(i+=f);return{width:i,height:s,x:a,y:d}}const Fi=new Set(["absolute","fixed"]);function Li(e,t){const n=pe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ee(e)?be(e):Q(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,d=o*i.x,f=r*i.y;return{width:s,height:a,x:d,y:f}}function xn(e,t,n){let r;if(t==="viewport")r=Ni(e,n);else if(t==="document")r=Ii(te(e));else if(z(t))r=Li(t,n);else{const o=Kn(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return et(r)}function zn(e,t){const n=ce(e);return n===t||!z(n)||Ee(n)?!1:Y(n).position==="fixed"||zn(n,t)}function ki(e,t){const n=t.get(e);if(n)return n;let r=Ne(e,[],!1).filter(a=>z(a)&&Me(a)!=="body"),o=null;const i=Y(e).position==="fixed";let s=i?ce(e):e;for(;z(s)&&!Ee(s);){const a=Y(s),d=$t(s);!d&&a.position==="fixed"&&(o=null),(i?!d&&!o:!d&&a.position==="static"&&!!o&&Fi.has(o.position)||ke(s)&&!d&&zn(e,s))?r=r.filter(l=>l!==s):o=a,s=ce(s)}return t.set(e,r),r}function ji(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?at(t)?[]:ki(t,this._c):[].concat(n),r],a=s[0],d=s.reduce((f,l)=>{const u=xn(t,l,o);return f.top=H(u.top,f.top),f.right=ae(u.right,f.right),f.bottom=ae(u.bottom,f.bottom),f.left=H(u.left,f.left),f},xn(t,a,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function $i(e){const{width:t,height:n}=Hn(e);return{width:t,height:n}}function Wi(e,t,n){const r=ee(t),o=te(t),i=n==="fixed",s=pe(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const d=Q(0);function f(){d.x=lt(o)}if(r||!r&&!i)if((Me(t)!=="body"||ke(o))&&(a=ct(t)),r){const h=pe(t,!0,i,t);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else o&&f();i&&!r&&o&&f();const l=o&&!r&&!i?Vn(o,a):Q(0),u=s.left+a.scrollLeft-d.x-l.x,m=s.top+a.scrollTop-d.y-l.y;return{x:u,y:m,width:s.width,height:s.height}}function yt(e){return Y(e).position==="static"}function bn(e,t){if(!ee(e)||Y(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return te(e)===n&&(n=n.ownerDocument.body),n}function Yn(e,t){const n=K(e);if(at(e))return n;if(!ee(e)){let o=ce(e);for(;o&&!Ee(o);){if(z(o)&&!yt(o))return o;o=ce(o)}return n}let r=bn(e,t);for(;r&&Ci(r)&&yt(r);)r=bn(r,t);return r&&Ee(r)&&yt(r)&&!$t(r)?n:r||Ai(e)||n}const Bi=async function(e){const t=this.getOffsetParent||Yn,n=this.getDimensions,r=await n(e.floating);return{reference:Wi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ui(e){return Y(e).direction==="rtl"}const Gi={convertOffsetParentRelativeRectToViewportRelativeRect:_i,getDocumentElement:te,getClippingRect:ji,getOffsetParent:Yn,getElementRects:Bi,getClientRects:Ti,getDimensions:$i,getScale:be,isElement:z,isRTL:Ui};function Xn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Hi(e,t){let n=null,r;const o=te(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,d){a===void 0&&(a=!1),d===void 0&&(d=1),i();const f=e.getBoundingClientRect(),{left:l,top:u,width:m,height:h}=f;if(a||t(),!m||!h)return;const g=Ge(u),p=Ge(o.clientWidth-(l+m)),v=Ge(o.clientHeight-(u+h)),y=Ge(l),x={rootMargin:-g+"px "+-p+"px "+-v+"px "+-y+"px",threshold:H(0,ae(1,d))||1};let b=!0;function E(M){const R=M[0].intersectionRatio;if(R!==d){if(!b)return s();R?s(!1,R):r=setTimeout(()=>{s(!1,1e-7)},1e3)}R===1&&!Xn(f,e.getBoundingClientRect())&&s(),b=!1}try{n=new IntersectionObserver(E,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,x)}n.observe(e)}return s(!0),i}function Ki(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,f=Bt(e),l=o||i?[...f?Ne(f):[],...Ne(t)]:[];l.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const u=f&&a?Hi(f,n):null;let m=-1,h=null;s&&(h=new ResizeObserver(y=>{let[C]=y;C&&C.target===f&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),f&&!d&&h.observe(f),h.observe(t));let g,p=d?pe(e):null;d&&v();function v(){const y=pe(e);p&&!Xn(p,y)&&n(),p=y,g=requestAnimationFrame(v)}return n(),()=>{var y;l.forEach(C=>{o&&C.removeEventListener("scroll",n),i&&C.removeEventListener("resize",n)}),u?.(),(y=h)==null||y.disconnect(),h=null,d&&cancelAnimationFrame(g)}}const Vi=vi,zi=gi,Yi=pi,Xi=yi,qi=mi,Cn=di,Zi=wi,Ji=(e,t,n)=>{const r=new Map,o={platform:Gi,...n},i={...o.platform,_c:r};return fi(e,t,{...o,platform:i})};var Qi=typeof document<"u",es=function(){},Xe=Qi?c.useLayoutEffect:es;function tt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!tt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!tt(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function qn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function En(e,t){const n=qn(e);return Math.round(t*n)/n}function xt(e){const t=c.useRef(e);return Xe(()=>{t.current=e}),t}function ts(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:d,open:f}=e,[l,u]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=c.useState(r);tt(m,r)||h(r);const[g,p]=c.useState(null),[v,y]=c.useState(null),C=c.useCallback(P=>{P!==M.current&&(M.current=P,p(P))},[]),x=c.useCallback(P=>{P!==R.current&&(R.current=P,y(P))},[]),b=i||g,E=s||v,M=c.useRef(null),R=c.useRef(null),A=c.useRef(l),T=d!=null,D=xt(d),I=xt(o),F=xt(f),L=c.useCallback(()=>{if(!M.current||!R.current)return;const P={placement:t,strategy:n,middleware:m};I.current&&(P.platform=I.current),Ji(M.current,R.current,P).then(S=>{const B={...S,isPositioned:F.current!==!1};N.current&&!tt(A.current,B)&&(A.current=B,_n.flushSync(()=>{u(B)}))})},[m,t,n,I,F]);Xe(()=>{f===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,u(P=>({...P,isPositioned:!1})))},[f]);const N=c.useRef(!1);Xe(()=>(N.current=!0,()=>{N.current=!1}),[]),Xe(()=>{if(b&&(M.current=b),E&&(R.current=E),b&&E){if(D.current)return D.current(b,E,L);L()}},[b,E,L,D,T]);const W=c.useMemo(()=>({reference:M,floating:R,setReference:C,setFloating:x}),[C,x]),_=c.useMemo(()=>({reference:b,floating:E}),[b,E]),k=c.useMemo(()=>{const P={position:n,left:0,top:0};if(!_.floating)return P;const S=En(_.floating,l.x),B=En(_.floating,l.y);return a?{...P,transform:"translate("+S+"px, "+B+"px)",...qn(_.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:S,top:B}},[n,a,_.floating,l.x,l.y]);return c.useMemo(()=>({...l,update:L,refs:W,elements:_,floatingStyles:k}),[l,L,W,_,k])}const ns=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Cn({element:r.current,padding:o}).fn(n):{}:r?Cn({element:r,padding:o}).fn(n):{}}}},rs=(e,t)=>({...Vi(e),options:[e,t]}),os=(e,t)=>({...zi(e),options:[e,t]}),is=(e,t)=>({...Zi(e),options:[e,t]}),ss=(e,t)=>({...Yi(e),options:[e,t]}),as=(e,t)=>({...Xi(e),options:[e,t]}),cs=(e,t)=>({...qi(e),options:[e,t]}),ls=(e,t)=>({...ns(e),options:[e,t]});var us="Arrow",Zn=c.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return w.jsx(j.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:w.jsx("polygon",{points:"0,0 30,0 15,10"})})});Zn.displayName=us;var fs=Zn;function ds(e){const[t,n]=c.useState(void 0);return se(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const d=i.borderBoxSize,f=Array.isArray(d)?d[0]:d;s=f.inlineSize,a=f.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ut="Popper",[Jn,Qn]=Re(Ut),[ps,er]=Jn(Ut),tr=e=>{const{__scopePopper:t,children:n}=e,[r,o]=c.useState(null);return w.jsx(ps,{scope:t,anchor:r,onAnchorChange:o,children:n})};tr.displayName=Ut;var nr="PopperAnchor",rr=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=er(nr,n),s=c.useRef(null),a=U(t,s),d=c.useRef(null);return c.useEffect(()=>{const f=d.current;d.current=r?.current||s.current,f!==d.current&&i.onAnchorChange(d.current)}),r?null:w.jsx(j.div,{...o,ref:a})});rr.displayName=nr;var Gt="PopperContent",[ms,hs]=Jn(Gt),or=c.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:l=0,sticky:u="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:g,...p}=e,v=er(Gt,n),[y,C]=c.useState(null),x=U(t,$=>C($)),[b,E]=c.useState(null),M=ds(b),R=M?.width??0,A=M?.height??0,T=r+(i!=="center"?"-"+i:""),D=typeof l=="number"?l:{top:0,right:0,bottom:0,left:0,...l},I=Array.isArray(f)?f:[f],F=I.length>0,L={padding:D,boundary:I.filter(gs),altBoundary:F},{refs:N,floatingStyles:W,placement:_,isPositioned:k,middlewareData:P}=ts({strategy:"fixed",placement:T,whileElementsMounted:(...$)=>Ki(...$,{animationFrame:h==="always"}),elements:{reference:v.anchor},middleware:[rs({mainAxis:o+A,alignmentAxis:s}),d&&os({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?is():void 0,...L}),d&&ss({...L}),as({...L,apply:({elements:$,rects:Oe,availableWidth:yo,availableHeight:xo})=>{const{width:bo,height:Co}=Oe.reference,Ue=$.floating.style;Ue.setProperty("--radix-popper-available-width",`${yo}px`),Ue.setProperty("--radix-popper-available-height",`${xo}px`),Ue.setProperty("--radix-popper-anchor-width",`${bo}px`),Ue.setProperty("--radix-popper-anchor-height",`${Co}px`)}}),b&&ls({element:b,padding:a}),ws({arrowWidth:R,arrowHeight:A}),m&&cs({strategy:"referenceHidden",...L})]}),[S,B]=ar(_),q=ne(g);se(()=>{k&&q?.()},[k,q]);const ue=P.arrow?.x,Ae=P.arrow?.y,Pe=P.arrow?.centerOffset!==0,[Be,fe]=c.useState();return se(()=>{y&&fe(window.getComputedStyle(y).zIndex)},[y]),w.jsx("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:k?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Be,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(" "),...P.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:w.jsx(ms,{scope:n,placedSide:S,onArrowChange:E,arrowX:ue,arrowY:Ae,shouldHideArrow:Pe,children:w.jsx(j.div,{"data-side":S,"data-align":B,...p,ref:x,style:{...p.style,animation:k?void 0:"none"}})})})});or.displayName=Gt;var ir="PopperArrow",vs={top:"bottom",right:"left",bottom:"top",left:"right"},sr=c.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=hs(ir,r),s=vs[i.placedSide];return w.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:w.jsx(fs,{...o,ref:n,style:{...o.style,display:"block"}})})});sr.displayName=ir;function gs(e){return e!==null}var ws=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[f,l]=ar(n),u={start:"0%",center:"50%",end:"100%"}[l],m=(o.arrow?.x??0)+a/2,h=(o.arrow?.y??0)+d/2;let g="",p="";return f==="bottom"?(g=s?u:`${m}px`,p=`${-d}px`):f==="top"?(g=s?u:`${m}px`,p=`${r.floating.height+d}px`):f==="right"?(g=`${-d}px`,p=s?u:`${h}px`):f==="left"&&(g=`${r.floating.width+d}px`,p=s?u:`${h}px`),{data:{x:g,y:p}}}});function ar(e){const[t,n="center"]=e.split("-");return[t,n]}var ys=tr,xs=rr,bs=or,Cs=sr,Es="Portal",Ht=c.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=c.useState(!1);se(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?Eo.createPortal(w.jsx(j.div,{...r,ref:t}),s):null});Ht.displayName=Es;function Rs(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}var le=e=>{const{present:t,children:n}=e,r=Ss(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),i=U(r.ref,Ms(o));return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:i}):null};le.displayName="Presence";function Ss(e){const[t,n]=c.useState(),r=c.useRef(null),o=c.useRef(e),i=c.useRef("none"),s=e?"mounted":"unmounted",[a,d]=Rs(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const f=He(r.current);i.current=a==="mounted"?f:"none"},[a]),se(()=>{const f=r.current,l=o.current;if(l!==e){const m=i.current,h=He(f);e?d("MOUNT"):h==="none"||f?.display==="none"?d("UNMOUNT"):d(l&&m!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),se(()=>{if(t){let f;const l=t.ownerDocument.defaultView??window,u=h=>{const p=He(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&p&&(d("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",f=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},m=h=>{h.target===t&&(i.current=He(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{l.clearTimeout(f),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:c.useCallback(f=>{r.current=f?getComputedStyle(f):null,n(f)},[])}}function He(e){return e?.animationName||"none"}function Ms(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var bt="rovingFocusGroup.onEntryFocus",As={bubbles:!1,cancelable:!0},je="RovingFocusGroup",[Dt,cr,Ps]=Nn(je),[Os,lr]=Re(je,[Ps]),[Ds,_s]=Os(je),ur=c.forwardRef((e,t)=>w.jsx(Dt.Provider,{scope:e.__scopeRovingFocusGroup,children:w.jsx(Dt.Slot,{scope:e.__scopeRovingFocusGroup,children:w.jsx(Ts,{...e,ref:t})})}));ur.displayName=je;var Ts=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:d,onEntryFocus:f,preventScrollOnEntryFocus:l=!1,...u}=e,m=c.useRef(null),h=U(t,m),g=Fn(i),[p,v]=It({prop:s,defaultProp:a??null,onChange:d,caller:je}),[y,C]=c.useState(!1),x=ne(f),b=cr(n),E=c.useRef(!1),[M,R]=c.useState(0);return c.useEffect(()=>{const A=m.current;if(A)return A.addEventListener(bt,x),()=>A.removeEventListener(bt,x)},[x]),w.jsx(Ds,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:p,onItemFocus:c.useCallback(A=>v(A),[v]),onItemShiftTab:c.useCallback(()=>C(!0),[]),onFocusableItemAdd:c.useCallback(()=>R(A=>A+1),[]),onFocusableItemRemove:c.useCallback(()=>R(A=>A-1),[]),children:w.jsx(j.div,{tabIndex:y||M===0?-1:0,"data-orientation":r,...u,ref:h,style:{outline:"none",...e.style},onMouseDown:O(e.onMouseDown,()=>{E.current=!0}),onFocus:O(e.onFocus,A=>{const T=!E.current;if(A.target===A.currentTarget&&T&&!y){const D=new CustomEvent(bt,As);if(A.currentTarget.dispatchEvent(D),!D.defaultPrevented){const I=b().filter(_=>_.focusable),F=I.find(_=>_.active),L=I.find(_=>_.id===p),W=[F,L,...I].filter(Boolean).map(_=>_.ref.current);pr(W,l)}}E.current=!1}),onBlur:O(e.onBlur,()=>C(!1))})})}),fr="RovingFocusGroupItem",dr=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:s,...a}=e,d=xe(),f=i||d,l=_s(fr,n),u=l.currentTabStopId===f,m=cr(n),{onFocusableItemAdd:h,onFocusableItemRemove:g,currentTabStopId:p}=l;return c.useEffect(()=>{if(r)return h(),()=>g()},[r,h,g]),w.jsx(Dt.ItemSlot,{scope:n,id:f,focusable:r,active:o,children:w.jsx(j.span,{tabIndex:u?0:-1,"data-orientation":l.orientation,...a,ref:t,onMouseDown:O(e.onMouseDown,v=>{r?l.onItemFocus(f):v.preventDefault()}),onFocus:O(e.onFocus,()=>l.onItemFocus(f)),onKeyDown:O(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){l.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const y=Fs(v,l.orientation,l.dir);if(y!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let x=m().filter(b=>b.focusable).map(b=>b.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();const b=x.indexOf(v.currentTarget);x=l.loop?Ls(x,b+1):x.slice(b+1)}setTimeout(()=>pr(x))}}),children:typeof s=="function"?s({isCurrentTabStop:u,hasTabStop:p!=null}):s})})});dr.displayName=fr;var Is={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ns(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Fs(e,t,n){const r=Ns(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Is[r]}function pr(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Ls(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ks=ur,js=dr,$s=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ge=new WeakMap,Ke=new WeakMap,Ve={},Ct=0,mr=function(e){return e&&(e.host||mr(e.parentNode))},Ws=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=mr(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Bs=function(e,t,n,r){var o=Ws(t,Array.isArray(e)?e:[e]);Ve[n]||(Ve[n]=new WeakMap);var i=Ve[n],s=[],a=new Set,d=new Set(o),f=function(u){!u||a.has(u)||(a.add(u),f(u.parentNode))};o.forEach(f);var l=function(u){!u||d.has(u)||Array.prototype.forEach.call(u.children,function(m){if(a.has(m))l(m);else try{var h=m.getAttribute(r),g=h!==null&&h!=="false",p=(ge.get(m)||0)+1,v=(i.get(m)||0)+1;ge.set(m,p),i.set(m,v),s.push(m),p===1&&g&&Ke.set(m,!0),v===1&&m.setAttribute(n,"true"),g||m.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};
vendor: 5,481 bytes, line 1
1return l(t),a.clear(),Ct++,function(){s.forEach(function(u){var m=ge.get(u)-1,h=i.get(u)-1;ge.set(u,m),i.set(u,h),m||(Ke.has(u)||u.removeAttribute(r),Ke.delete(u)),h||u.removeAttribute(n)}),Ct--,Ct||(ge=new WeakMap,ge=new WeakMap,Ke=new WeakMap,Ve={})}},hr=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=$s(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Bs(r,o,n,"aria-hidden")):function(){return null}},Z=function(){return Z=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Z.apply(this,arguments)};function vr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Vc(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{f(r.next(l))}catch(u){s(u)}}function d(l){try{f(r.throw(l))}catch(u){s(u)}}function f(l){l.done?i(l.value):o(l.value).then(a,d)}f((r=r.apply(e,t||[])).next())})}function Us(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var qe="right-scroll-bar-position",Ze="width-before-scroll-bar",Gs="with-scroll-bars-hidden",Hs="--removed-body-scroll-bar-size";function Et(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ks(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Vs=typeof window<"u"?c.useLayoutEffect:c.useEffect,Rn=new WeakMap;function zs(e,t){var n=Ks(null,function(r){return e.forEach(function(o){return Et(o,r)})});return Vs(function(){var r=Rn.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||Et(a,null)}),i.forEach(function(a){o.has(a)||Et(a,s)})}Rn.set(n,e)},[e]),n}function Ys(e){return e}function Xs(e,t){t===void 0&&(t=Ys);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var d=function(){var l=s;s=[],l.forEach(i)},f=function(){return Promise.resolve().then(d)};f(),n={push:function(l){s.push(l),f()},filter:function(l){return s=s.filter(l),n}}}};return o}function qs(e){e===void 0&&(e={});var t=Xs(null);return t.options=Z({async:!0,ssr:!1},e),t}var gr=function(e){var t=e.sideCar,n=vr(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,Z({},n))};gr.isSideCarExport=!0;function Zs(e,t){return e.useMedium(t),gr}var wr=qs(),Rt=function(){},ut=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:Rt,onWheelCapture:Rt,onTouchMoveCapture:Rt}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,d=e.className,f=e.removeScrollBar,l=e.enabled,u=e.shards,m=e.sideCar,h=e.noRelative,g=e.noIsolation,p=e.inert,v=e.allowPinchZoom,y=e.as,C=y===void 0?"div":y,x=e.gapMode,b=vr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=m,M=zs([n,t]),R=Z(Z({},b),o);return c.createElement(c.Fragment,null,l&&c.createElement(E,{sideCar:wr,removeScrollBar:f,shards:u,noRelative:h,noIsolation:g,inert:p,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:x}),s?c.cloneElement(c.Children.only(a),Z(Z({},R),{ref:M})):c.createElement(C,Z({},R,{className:d,ref:M}),a))});ut.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ut.classNames={fullWidth:Ze,zeroRight:qe};var Js=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Qs(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Js();return t&&e.setAttribute("nonce",t),e}function ea(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ta(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var na=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Qs())&&(ea(t,n),ta(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ra=function(){var e=na();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},yr=function(){var e=ra(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},oa={left:0,top:0,right:0,gap:0},St=function(e){return parseInt(e||"",10)||0},ia=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];
vendor: 4,224 bytes, lines 1-41
1return[St(n),St(r),St(o)]},sa=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return oa;var t=ia(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])}},aa=yr(),Ce="data-scroll-locked",ca=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),` 2 .`.concat(Gs,` { 3 overflow: hidden `).concat(r,`; 4 padding-right: `).concat(a,"px ").concat(r,`; 5 } 6 body[`).concat(Ce,`] { 7 overflow: hidden `).concat(r,`; 8 overscroll-behavior: contain; 9 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 10 padding-left: `.concat(o,`px; 11 padding-top: `).concat(i,`px; 12 padding-right: `).concat(s,`px; 13 margin-left:0; 14 margin-top:0; 15 margin-right: `).concat(a,"px ").concat(r,`; 16 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` 17 } 18 19 .`).concat(qe,` { 20 right: `).concat(a,"px ").concat(r,`; 21 } 22 23 .`).concat(Ze,` { 24 margin-right: `).concat(a,"px ").concat(r,`; 25 } 26 27 .`).concat(qe," .").concat(qe,` { 28 right: 0 `).concat(r,`; 29 } 30 31 .`).concat(Ze," .").concat(Ze,` { 32 margin-right: 0 `).concat(r,`; 33 } 34 35 body[`).concat(Ce,`] { 36 `).concat(Hs,": ").concat(a,`px; 37 } 38`)},Sn=function(){var e=parseInt(document.body.getAttribute(Ce)||"0",10);return isFinite(e)?e:0},la=function(){c.useEffect(function(){return document.body.setAttribute(Ce,(Sn()+1).toString()),function(){var e=Sn()-1;e<=0?document.body.removeAttribute(Ce):document.body.setAttribute(Ce,e.toString())}},[])},ua=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;la();var i=c.useMemo(function(){return sa(o)},[o]);return c.createElement(aa,{styles:ca(i,!t,o,n?"":"!important")})},_t=!1;if(typeof window<"u")try{var ze=Object.defineProperty({},"passive",{get:function(){return _t=!0,!0}});window.addEventListener("test",ze,ze),window.removeEventListener("test",ze,ze)}catch{_t=!1}var we=_t?{passive:!1}:!1,fa=function(e){return e.tagName==="TEXTAREA"},xr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!fa(e)&&n[t]==="visible")},da=function(e){return xr(e,"overflowY")},pa=function(e){return xr(e,"overflowX")},Mn=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=br(e,r);if(o){var i=Cr(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ma=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ha=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},br=function(e,t){return e==="v"?da(t):pa(t)},Cr=function(e,t){return e==="v"?ma(t):ha(t)},va=function(e,t){return e==="h"&&t==="rtl"?-1:1},ga=function(e,t,n,r,o){var i=va(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,d=t.contains(a),f=!1,l=s>0,u=0,m=0;do{if(!a)break;var h=Cr(e,a),g=h[0],p=h[1],v=h[2],y=p-v-i*g;(g||y)&&br(e,a)&&(u+=y,m+=g);var C=a.parentNode;a=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!d&&a!==document.body||d&&(t.contains(a)||t===a));return(l&&Math.abs(u)<1||!l&&Math.abs(m)<1)&&(f=!0),f},Ye=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},An=function(e){return[e.deltaX,e.deltaY]},Pn=function(e){return e&&"current"in e?e.current:e},wa=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ya=function(e){return` 39 .block-interactivity-`.concat(e,` {pointer-events: none;} 40 .allow-interactivity-`).concat(e,` {pointer-events: all;} 41`)},xa=0,ye=[];function ba(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(xa++)[0],i=c.useState(yr)[0],s=c.useRef(e);c.useEffect(function(){s.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=Us([e.lockRef.current],(e.shards||[]).map(Pn),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}}
vendor: 16,992 bytes, line 41
41,[e.inert,e.lockRef.current,e.shards]);var a=c.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!s.current.allowPinchZoom;var y=Ye(p),C=n.current,x="deltaX"in p?p.deltaX:C[0]-y[0],b="deltaY"in p?p.deltaY:C[1]-y[1],E,M=p.target,R=Math.abs(x)>Math.abs(b)?"h":"v";if("touches"in p&&R==="h"&&M.type==="range")return!1;var A=window.getSelection(),T=A&&A.anchorNode,D=T?T===M||T.contains(M):!1;if(D)return!1;var I=Mn(R,M);if(!I)return!0;if(I?E=R:(E=R==="v"?"h":"v",I=Mn(R,M)),!I)return!1;if(!r.current&&"changedTouches"in p&&(x||b)&&(r.current=E),!E)return!0;var F=r.current||E;return ga(F,v,p,F==="h"?x:b)},[]),d=c.useCallback(function(p){var v=p;if(!(!ye.length||ye[ye.length-1]!==i)){var y="deltaY"in v?An(v):Ye(v),C=t.current.filter(function(E){return E.name===v.type&&(E.target===v.target||v.target===E.shadowParent)&&wa(E.delta,y)})[0];if(C&&C.should){v.cancelable&&v.preventDefault();return}if(!C){var x=(s.current.shards||[]).map(Pn).filter(Boolean).filter(function(E){return E.contains(v.target)}),b=x.length>0?a(v,x[0]):!s.current.noIsolation;b&&v.cancelable&&v.preventDefault()}}},[]),f=c.useCallback(function(p,v,y,C){var x={name:p,delta:v,target:y,should:C,shadowParent:Ca(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(b){return b!==x})},1)},[]),l=c.useCallback(function(p){n.current=Ye(p),r.current=void 0},[]),u=c.useCallback(function(p){f(p.type,An(p),p.target,a(p,e.lockRef.current))},[]),m=c.useCallback(function(p){f(p.type,Ye(p),p.target,a(p,e.lockRef.current))},[]);c.useEffect(function(){return ye.push(i),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:m}),document.addEventListener("wheel",d,we),document.addEventListener("touchmove",d,we),document.addEventListener("touchstart",l,we),function(){ye=ye.filter(function(p){return p!==i}),document.removeEventListener("wheel",d,we),document.removeEventListener("touchmove",d,we),document.removeEventListener("touchstart",l,we)}},[]);var h=e.removeScrollBar,g=e.inert;return c.createElement(c.Fragment,null,g?c.createElement(i,{styles:ya(o)}):null,h?c.createElement(ua,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ca(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ea=Zs(wr,ba);var Kt=c.forwardRef(function(e,t){return c.createElement(ut,Z({},e,{ref:t,sideCar:Ea}))});Kt.classNames=ut.classNames;var Tt=["Enter"," "],Ra=["ArrowDown","PageUp","Home"],Er=["ArrowUp","PageDown","End"],Sa=[...Ra,...Er],Ma={ltr:[...Tt,"ArrowRight"],rtl:[...Tt,"ArrowLeft"]},Aa={ltr:["ArrowLeft"],rtl:["ArrowRight"]},$e="Menu",[Fe,Pa,Oa]=Nn($e),[he,Rr]=Re($e,[Oa,Qn,lr]),ft=Qn(),Sr=lr(),[Da,ve]=he($e),[_a,We]=he($e),Mr=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:s=!0}=e,a=ft(t),[d,f]=c.useState(null),l=c.useRef(!1),u=ne(i),m=Fn(o);return c.useEffect(()=>{const h=()=>{l.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>l.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),w.jsx(ys,{...a,children:w.jsx(Da,{scope:t,open:n,onOpenChange:u,content:d,onContentChange:f,children:w.jsx(_a,{scope:t,onClose:c.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:l,dir:m,modal:s,children:r})})})};Mr.displayName=$e;var Ta="MenuAnchor",Vt=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=ft(n);return w.jsx(xs,{...o,...r,ref:t})});Vt.displayName=Ta;var zt="MenuPortal",[Ia,Ar]=he(zt,{forceMount:void 0}),Pr=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=ve(zt,t);return w.jsx(Ia,{scope:t,forceMount:n,children:w.jsx(le,{present:n||i.open,children:w.jsx(Ht,{asChild:!0,container:o,children:r})})})};Pr.displayName=zt;var V="MenuContent",[Na,Yt]=he(V),Or=c.forwardRef((e,t)=>{const n=Ar(V,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=ve(V,e.__scopeMenu),s=We(V,e.__scopeMenu);return w.jsx(Fe.Provider,{scope:e.__scopeMenu,children:w.jsx(le,{present:r||i.open,children:w.jsx(Fe.Slot,{scope:e.__scopeMenu,children:s.modal?w.jsx(Fa,{...o,ref:t}):w.jsx(La,{...o,ref:t})})})})}),Fa=c.forwardRef((e,t)=>{const n=ve(V,e.__scopeMenu),r=c.useRef(null),o=U(t,r);return c.useEffect(()=>{const i=r.current;if(i)return hr(i)},[]),w.jsx(Xt,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:O(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),La=c.forwardRef((e,t)=>{const n=ve(V,e.__scopeMenu);return w.jsx(Xt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),ka=Te("MenuContent.ScrollLock"),Xt=c.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEntryFocus:d,onEscapeKeyDown:f,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:m,onDismiss:h,disableOutsideScroll:g,...p}=e,v=ve(V,n),y=We(V,n),C=ft(n),x=Sr(n),b=Pa(n),[E,M]=c.useState(null),R=c.useRef(null),A=U(t,R,v.onContentChange),T=c.useRef(0),D=c.useRef(""),I=c.useRef(0),F=c.useRef(null),L=c.useRef("right"),N=c.useRef(0),W=g?Kt:c.Fragment,_=g?{as:ka,allowPinchZoom:!0}:void 0,k=S=>{const B=D.current+S,q=b().filter($=>!$.disabled),ue=document.activeElement,Ae=q.find($=>$.ref.current===ue)?.textValue,Pe=q.map($=>$.textValue),Be=Xa(Pe,B,Ae),fe=q.find($=>$.textValue===Be)?.ref.current;(function $(Oe){D.current=Oe,window.clearTimeout(T.current),Oe!==""&&(T.current=window.setTimeout(()=>$(""),1e3))})(B),fe&&setTimeout(()=>fe.focus())};c.useEffect(()=>()=>window.clearTimeout(T.current),[]),jn();const P=c.useCallback(S=>L.current===F.current?.side&&Za(S,F.current?.area),[]);return w.jsx(Na,{scope:n,searchRef:D,onItemEnter:c.useCallback(S=>{P(S)&&S.preventDefault()},[P]),onItemLeave:c.useCallback(S=>{P(S)||(R.current?.focus(),M(null))},[P]),onTriggerLeave:c.useCallback(S=>{P(S)&&S.preventDefault()},[P]),pointerGraceTimerRef:I,onPointerGraceIntentChange:c.useCallback(S=>{F.current=S},[]),children:w.jsx(W,{..._,children:w.jsx(Ft,{asChild:!0,trapped:o,onMountAutoFocus:O(i,S=>{S.preventDefault(),R.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:w.jsx(Nt,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:f,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:m,onDismiss:h,children:w.jsx(ks,{asChild:!0,...x,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:M,onEntryFocus:O(d,S=>{y.isUsingKeyboardRef.current||S.preventDefault()}),preventScrollOnEntryFocus:!0,children:w.jsx(bs,{role:"menu","aria-orientation":"vertical","data-state":Kr(v.open),"data-radix-menu-content":"",dir:y.dir,...C,...p,ref:A,style:{outline:"none",...p.style},onKeyDown:O(p.onKeyDown,S=>{const q=S.target.closest("[data-radix-menu-content]")===S.currentTarget,ue=S.ctrlKey||S.altKey||S.metaKey,Ae=S.key.length===1;q&&(S.key==="Tab"&&S.preventDefault(),!ue&&Ae&&k(S.key));const Pe=R.current;if(S.target!==Pe||!Sa.includes(S.key))return;S.preventDefault();const fe=b().filter($=>!$.disabled).map($=>$.ref.current);Er.includes(S.key)&&fe.reverse(),za(fe)}),onBlur:O(e.onBlur,S=>{S.currentTarget.contains(S.target)||(window.clearTimeout(T.current),D.current="")}),onPointerMove:O(e.onPointerMove,Le(S=>{const B=S.target,q=N.current!==S.clientX;if(S.currentTarget.contains(B)&&q){const ue=S.clientX>N.current?"right":"left";L.current=ue,N.current=S.clientX}}))})})})})})})});Or.displayName=V;var ja="MenuGroup",qt=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return w.jsx(j.div,{role:"group",...r,ref:t})});qt.displayName=ja;var $a="MenuLabel",Dr=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return w.jsx(j.div,{...r,ref:t})});Dr.displayName=$a;var nt="MenuItem",On="menu.itemSelect",dt=c.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=c.useRef(null),s=We(nt,e.__scopeMenu),a=Yt(nt,e.__scopeMenu),d=U(t,i),f=c.useRef(!1),l=()=>{const u=i.current;if(!n&&u){const m=new CustomEvent(On,{bubbles:!0,cancelable:!0});u.addEventListener(On,h=>r?.(h),{once:!0}),In(u,m),m.defaultPrevented?f.current=!1:s.onClose()}};return w.jsx(_r,{...o,ref:d,disabled:n,onClick:O(e.onClick,l),onPointerDown:u=>{e.onPointerDown?.(u),f.current=!0},onPointerUp:O(e.onPointerUp,u=>{f.current||u.currentTarget?.click()}),onKeyDown:O(e.onKeyDown,u=>{const m=a.searchRef.current!=="";n||m&&u.key===" "||Tt.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})});dt.displayName=nt;var _r=c.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,s=Yt(nt,n),a=Sr(n),d=c.useRef(null),f=U(t,d),[l,u]=c.useState(!1),[m,h]=c.useState("");return c.useEffect(()=>{const g=d.current;g&&h((g.textContent??"").trim())},[i.children]),w.jsx(Fe.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:w.jsx(js,{asChild:!0,...a,focusable:!r,children:w.jsx(j.div,{role:"menuitem","data-highlighted":l?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:f,onPointerMove:O(e.onPointerMove,Le(g=>{r?s.onItemLeave(g):(s.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:O(e.onPointerLeave,Le(g=>s.onItemLeave(g))),onFocus:O(e.onFocus,()=>u(!0)),onBlur:O(e.onBlur,()=>u(!1))})})})}),Wa="MenuCheckboxItem",Tr=c.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return w.jsx(kr,{scope:e.__scopeMenu,checked:n,children:w.jsx(dt,{role:"menuitemcheckbox","aria-checked":rt(n)?"mixed":n,...o,ref:t,"data-state":Jt(n),onSelect:O(o.onSelect,()=>r?.(rt(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Tr.displayName=Wa;var Ir="MenuRadioGroup",[Ba,Ua]=he(Ir,{value:void 0,onValueChange:()=>{}}),Nr=c.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=ne(r);return w.jsx(Ba,{scope:e.__scopeMenu,value:n,onValueChange:i,children:w.jsx(qt,{...o,ref:t})})});Nr.displayName=Ir;var Fr="MenuRadioItem",Lr=c.forwardRef((e,t)=>{const{value:n,...r}=e,o=Ua(Fr,e.__scopeMenu),i=n===o.value;return w.jsx(kr,{scope:e.__scopeMenu,checked:i,children:w.jsx(dt,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":Jt(i),onSelect:O(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Lr.displayName=Fr;var Zt="MenuItemIndicator",[kr,Ga]=he(Zt,{checked:!1}),jr=c.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=Ga(Zt,n);return w.jsx(le,{present:r||rt(i.checked)||i.checked===!0,children:w.jsx(j.span,{...o,ref:t,"data-state":Jt(i.checked)})})});jr.displayName=Zt;var Ha="MenuSeparator",$r=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return w.jsx(j.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});$r.displayName=Ha;var Ka="MenuArrow",Wr=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=ft(n);return w.jsx(Cs,{...o,...r,ref:t})});Wr.displayName=Ka;var Va="MenuSub",[zc,Br]=he(Va),_e="MenuSubTrigger",Ur=c.forwardRef((e,t)=>{const n=ve(_e,e.__scopeMenu),r=We(_e,e.__scopeMenu),o=Br(_e,e.__scopeMenu),i=Yt(_e,e.__scopeMenu),s=c.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:d}=i,f={__scopeMenu:e.__scopeMenu},l=c.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return c.useEffect(()=>l,[l]),c.useEffect(()=>{const u=a.current;return()=>{window.clearTimeout(u),d(null)}},[a,d]),w.jsx(Vt,{asChild:!0,...f,children:w.jsx(_r,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Kr(n.open),...e,ref:it(t,o.onTriggerChange),onClick:u=>{e.onClick?.(u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:O(e.onPointerMove,Le(u=>{i.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(i.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),l()},100))})),onPointerLeave:O(e.onPointerLeave,Le(u=>{l();const m=n.content?.getBoundingClientRect();if(m){const h=n.content?.dataset.side,g=h==="right",p=g?-5:5,v=m[g?"left":"right"],y=m[g?"right":"left"];i.onPointerGraceIntentChange({area:[{x:u.clientX+p,y:u.clientY},{x:v,y:m.top},{x:y,y:m.top},{x:y,y:m.bottom},{x:v,y:m.bottom}],side:h}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(u),u.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:O(e.onKeyDown,u=>{const m=i.searchRef.current!=="";e.disabled||m&&u.key===" "||Ma[r.dir].includes(u.key)&&(n.onOpenChange(!0),n.content?.focus(),u.preventDefault())})})})});Ur.displayName=_e;var Gr="MenuSubContent",Hr=c.forwardRef((e,t)=>{const n=Ar(V,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=ve(V,e.__scopeMenu),s=We(V,e.__scopeMenu),a=Br(Gr,e.__scopeMenu),d=c.useRef(null),f=U(t,d);return w.jsx(Fe.Provider,{scope:e.__scopeMenu,children:w.jsx(le,{present:r||i.open,children:w.jsx(Fe.Slot,{scope:e.__scopeMenu,children:w.jsx(Xt,{id:a.contentId,"aria-labelledby":a.triggerId,...o,ref:f,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:l=>{s.isUsingKeyboardRef.current&&d.current?.focus(),l.preventDefault()},onCloseAutoFocus:l=>l.preventDefault(),onFocusOutside:O(e.onFocusOutside,l=>{l.target!==a.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:O(e.onEscapeKeyDown,l=>{s.onClose(),l.preventDefault()}),onKeyDown:O(e.onKeyDown,l=>{const u=l.currentTarget.contains(l.target),m=Aa[s.dir].includes(l.key);u&&m&&(i.onOpenChange(!1),a.trigger?.focus(),l.preventDefault())})})})})})});Hr.displayName=Gr;function Kr(e){return e?"open":"closed"}function rt(e){return e==="indeterminate"}function Jt(e){return rt(e)?"indeterminate":e?"checked":"unchecked"}function za(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Ya(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Xa(e,t,n){const o=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=Ya(e,Math.max(i,0));o.length===1&&(s=s.filter(f=>f!==n));const d=s.find(f=>f.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function qa(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i],d=t[s],f=a.x,l=a.y,u=d.x,m=d.y;l>r!=m>r&&n<(u-f)*(r-l)/(m-l)+f&&(o=!o)}return o}function Za(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return qa(n,t)}function Le(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Ja=Mr,Qa=Vt,ec=Pr,tc=Or,nc=qt,rc=Dr,oc=dt,ic=Tr,sc=Nr,ac=Lr,cc=jr,lc=$r,uc=Wr,fc=Ur,dc=Hr,pt="DropdownMenu",[pc]=Re(pt,[Rr]),G=Rr(),[mc,Vr]=pc(pt),zr=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:s,modal:a=!0}=e,d=G(t),f=c.useRef(null),[l,u]=It({prop:o,defaultProp:i??!1,onChange:s,caller:pt});return w.jsx(mc,{scope:t,triggerId:xe(),triggerRef:f,contentId:xe(),open:l,onOpenChange:u,onOpenToggle:c.useCallback(()=>u(m=>!m),[u]),modal:a,children:w.jsx(Ja,{...d,open:l,onOpenChange:u,dir:r,modal:a,children:n})})};zr.displayName=pt;var Yr="DropdownMenuTrigger",Xr=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=Vr(Yr,n),s=G(n);return w.jsx(Qa,{asChild:!0,...s,children:w.jsx(j.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:it(t,i.triggerRef),onPointerDown:O(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(i.onOpenToggle(),i.open||a.preventDefault())}),onKeyDown:O(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&i.onOpenToggle(),a.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});Xr.displayName=Yr;var hc="DropdownMenuPortal",qr=e=>{const{__scopeDropdownMenu:t,...n}=e,r=G(t);return w.jsx(ec,{...r,...n})};qr.displayName=hc;var Zr="DropdownMenuContent",Jr=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Vr(Zr,n),i=G(n),s=c.useRef(!1);return w.jsx(tc,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:O(e.onCloseAutoFocus,a=>{s.current||o.triggerRef.current?.focus(),s.current=!1,a.preventDefault()}),onInteractOutside:O(e.onInteractOutside,a=>{const d=a.detail.originalEvent,f=d.button===0&&d.ctrlKey===!0,l=d.button===2||f;(!o.modal||l)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Jr.displayName=Zr;var vc="DropdownMenuGroup",gc=c.forwardRef((e,t)=>
vendor: 7,476 bytes, lines 41-46
41{const{__scopeDropdownMenu:n,...r}=e,o=G(n);return w.jsx(nc,{...o,...r,ref:t})});gc.displayName=vc;var wc="DropdownMenuLabel",Qr=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=G(n);return w.jsx(rc,{...o,...r,ref:t})});Qr.displayName=wc;var yc="DropdownMenuItem",eo=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=G(n);return w.jsx(oc,{...o,...r,ref:t})});eo.displayName=yc;var xc="DropdownMenuCheckboxItem",bc=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=G(n);return w.jsx(ic,{...o,...r,ref:t})});bc.displayName=xc;var Cc="DropdownMenuRadioGroup",Ec=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=G(n);return w.jsx(sc,{...o,...r,ref:t})});Ec.displayName=Cc;var Rc="DropdownMenuRadioItem",Sc=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=G(n);return w.jsx(ac,{...o,...r,ref:t})});Sc.displayName=Rc;var Mc="DropdownMenuItemIndicator",Ac=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=G(n);return w.jsx(cc,{...o,...r,ref:t})});Ac.displayName=Mc;var Pc="DropdownMenuSeparator",to=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=G(n);return w.jsx(lc,{...o,...r,ref:t})});to.displayName=Pc;var Oc="DropdownMenuArrow",Dc=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=G(n);return w.jsx(uc,{...o,...r,ref:t})});Dc.displayName=Oc;var _c="DropdownMenuSubTrigger",Tc=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=G(n);return w.jsx(fc,{...o,...r,ref:t})});Tc.displayName=_c;var Ic="DropdownMenuSubContent",Nc=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=G(n);return w.jsx(dc,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Nc.displayName=Ic;var Yc=zr,Xc=Xr,qc=qr,Zc=Jr,Jc=Qr,Qc=eo,el=to,mt="Dialog",[no,tl]=Re(mt),[Fc,X]=no(mt),ro=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=c.useRef(null),d=c.useRef(null),[f,l]=It({prop:r,defaultProp:o??!1,onChange:i,caller:mt});return w.jsx(Fc,{scope:t,triggerRef:a,contentRef:d,contentId:xe(),titleId:xe(),descriptionId:xe(),open:f,onOpenChange:l,onOpenToggle:c.useCallback(()=>l(u=>!u),[l]),modal:s,children:n})};ro.displayName=mt;var oo="DialogTrigger",io=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=X(oo,n),i=U(t,o.triggerRef);return w.jsx(j.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":tn(o.open),...r,ref:i,onClick:O(e.onClick,o.onOpenToggle)})});io.displayName=oo;var Qt="DialogPortal",[Lc,so]=no(Qt,{forceMount:void 0}),ao=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=X(Qt,t);return w.jsx(Lc,{scope:t,forceMount:n,children:c.Children.map(r,s=>w.jsx(le,{present:n||i.open,children:w.jsx(Ht,{asChild:!0,container:o,children:s})}))})};ao.displayName=Qt;var ot="DialogOverlay",co=c.forwardRef((e,t)=>{const n=so(ot,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=X(ot,e.__scopeDialog);return i.modal?w.jsx(le,{present:r||i.open,children:w.jsx(jc,{...o,ref:t})}):null});co.displayName=ot;var kc=Te("DialogOverlay.RemoveScroll"),jc=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=X(ot,n);return w.jsx(Kt,{as:kc,allowPinchZoom:!0,shards:[o.contentRef],children:w.jsx(j.div,{"data-state":tn(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),me="DialogContent",lo=c.forwardRef((e,t)=>{const n=so(me,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=X(me,e.__scopeDialog);return w.jsx(le,{present:r||i.open,children:i.modal?w.jsx($c,{...o,ref:t}):w.jsx(Wc,{...o,ref:t})})});lo.displayName=me;var $c=c.forwardRef((e,t)=>{const n=X(me,e.__scopeDialog),r=c.useRef(null),o=U(t,n.contentRef,r);return c.useEffect(()=>{const i=r.current;if(i)return hr(i)},[]),w.jsx(uo,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:O(e.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:O(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:O(e.onFocusOutside,i=>i.preventDefault())})}),Wc=c.forwardRef((e,t)=>{const n=X(me,e.__scopeDialog),r=c.useRef(!1),o=c.useRef(!1);return w.jsx(uo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;n.triggerRef.current?.contains(s)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),uo=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=X(me,n),d=c.useRef(null),f=U(t,d);return jn(),w.jsxs(w.Fragment,{children:[w.jsx(Ft,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:w.jsx(Nt,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":tn(a.open),...s,ref:f,onDismiss:()=>a.onOpenChange(!1)})}),w.jsxs(w.Fragment,{children:[w.jsx(Bc,{titleId:a.titleId}),w.jsx(Gc,{contentRef:d,descriptionId:a.descriptionId})]})]})}),en="DialogTitle",fo=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=X(en,n);return w.jsx(j.h2,{id:o.titleId,...r,ref:t})});fo.displayName=en;var po="DialogDescription",mo=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=X(po,n);return w.jsx(j.p,{id:o.descriptionId,...r,ref:t})});mo.displayName=po;var ho="DialogClose",vo=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=X(ho,n);return w.jsx(j.button,{type:"button",...r,ref:t,onClick:O(e.onClick,()=>o.onOpenChange(!1))})});vo.displayName=ho;function tn(e){return e?"open":"closed"}var go="DialogTitleWarning",[nl,wo]=Mo(go,{contentName:me,titleName:en,docsSlug:"dialog"}),Bc=({titleId:e})=>{const t=wo(go),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 42 43If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 44 45For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Uc="DialogDescriptionWarning",Gc=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${wo(Uc).contentName}}.`;return c.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},rl=ro,ol=io,il=ao,sl=co,al=lo,cl=fo,ll=mo,ul=vo;export{xs as A,ol as B,Zc as C,Nt as D,ul as E,Ft as F,cl as G,ll as H,Qc as I,ne as J,se as K,Jc as L,Kc as M,Nn as N,sl as O,qc as P,tl as Q,Yc as R,el as S,Xc as T,nl as W,Vc as _,lr as a,It as b,it as c,Re as d,ks as e,j as f,U as g,js as h,O as i,w as j,le as k,ds as l,Qn as m,ys as n,xe as o,Ht as p,hr as q,Kt as r,Te as s,jn as t,Fn as u,bs as v,Cs as w,rl as x,il as y,al as z}; 46//# sourceMappingURL=ui-vendor-lDWPXbVk.js.map
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.