"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2545],{44462:(e,t,n)=>{n.d(t,{ie:()=>m,we:()=>M});var l,r=n(12115),o=n(65527),u=n(95155),s=n(75640);n(47650);var i=n(96932);let a={...l||(l=n.t(r,2))},f=!1,c=0,d=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+c++,g=a.useId||function(){let[e,t]=r.useState(()=>f?d():void 0);return(0,o.OS)(()=>{null==e&&t(d())},[]),r.useEffect(()=>{f=!0},[]),e},m=r.forwardRef(function(e,t){let{context:{placement:n,elements:{floating:l},middlewareData:{arrow:i,shift:a}},width:f=14,height:c=7,tipRadius:d=0,strokeWidth:m=0,staticOffset:h,stroke:p,d:v,style:{transform:x,...C}={},...R}=e,w=g(),[M,k]=r.useState(!1);if((0,o.OS)(()=>{l&&"rtl"===(0,s.L9)(l).direction&&k(!0)},[l]),!l)return null;let[S,b]=n.split("-"),E="top"===S||"bottom"===S,j=h;(E&&null!=a&&a.x||!E&&null!=a&&a.y)&&(j=null);let y=2*m,O=y/2,q=f/2*(-(d/8)+1),W=c/2*d/4,_=!!v,B=j&&"end"===b?"bottom":"top",N=j&&"end"===b?"right":"left";j&&M&&(N="end"===b?"left":"right");let L=(null==i?void 0:i.x)!=null?j||i.x:"",P=(null==i?void 0:i.y)!=null?j||i.y:"",D=v||"M0,0 H"+f+" L"+(f-q)+","+(c-W)+(" Q"+f/2+","+c+" ")+q+","+(c-W)+" Z",H={top:_?"rotate(180deg)":"",left:_?"rotate(90deg)":"rotate(-90deg)",bottom:_?"":"rotate(180deg)",right:_?"rotate(-90deg)":"rotate(90deg)"}[S];return(0,u.jsxs)("svg",{...R,"aria-hidden":!0,ref:t,width:_?f:f+y,height:f,viewBox:"0 0 "+f+" "+(c>f?c:f),style:{position:"absolute",pointerEvents:"none",[N]:L,[B]:P,[S]:E||_?"100%":"calc(100% - "+y/2+"px)",transform:[H,x].filter(e=>!!e).join(" "),...C},children:[y>0&&(0,u.jsx)("path",{clipPath:"url(#"+w+")",fill:"none",stroke:p,strokeWidth:y+(v?0:1),d:D}),(0,u.jsx)("path",{stroke:y&&!v?R.fill:"none",d:D}),(0,u.jsx)("clipPath",{id:w,children:(0,u.jsx)("rect",{x:-O,y:O*(_?-1:1),width:f+y,height:f})})]})}),h=r.createContext(null),p=r.createContext(null),v=()=>{var e;return(null==(e=r.useContext(h))?void 0:e.id)||null},x=()=>r.useContext(p),C=()=>{},R={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap},w=e=>e&&(e.host||w(e.parentNode));function M(e){void 0===e&&(e={});let{nodeId:t}=e,n=function(e){let{open:t=!1,onOpenChange:n,elements:l}=e,u=g(),s=r.useRef({}),[i]=r.useState(()=>(function(){let e=new Map;return{emit(t,n){var l;null==(l=e.get(t))||l.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var l;null==(l=e.get(t))||l.delete(n)}}})()),a=null!=v(),[f,c]=r.useState(l.reference),d=(0,o.Jt)((e,t,l)=>{s.current.openEvent=e?t:void 0,i.emit("openchange",{open:e,event:t,reason:l,nested:a}),null==n||n(e,t,l)}),m=r.useMemo(()=>({setPositionReference:c}),[]),h=r.useMemo(()=>({reference:f||l.reference||null,floating:l.floating||null,domReference:l.reference}),[f,l.reference,l.floating]);return r.useMemo(()=>({dataRef:s,open:t,onOpenChange:d,elements:h,events:i,floatingId:u,refs:m}),[t,d,h,i,u,m])}({...e,elements:{reference:null,floating:null,...e.elements}}),l=e.rootContext||n,u=l.elements,[a,f]=r.useState(null),[c,d]=r.useState(null),m=(null==u?void 0:u.domReference)||a,h=r.useRef(null),p=x();(0,o.OS)(()=>{m&&(h.current=m)},[m]);let C=(0,i.we)({...e,elements:{...u,...c&&{reference:c}}}),R=r.useCallback(e=>{let t=(0,s.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;d(t),C.refs.setReference(t)},[C.refs]),w=r.useCallback(e=>{((0,s.vq)(e)||null===e)&&(h.current=e,f(e)),((0,s.vq)(C.refs.reference.current)||null===C.refs.reference.current||null!==e&&!(0,s.vq)(e))&&C.refs.setReference(e)},[C.refs]),M=r.useMemo(()=>({...C.refs,setReference:w,setPositionReference:R,domReference:h}),[C.refs,w,R]),k=r.useMemo(()=>({...C.elements,domReference:m}),[C.elements,m]),S=r.useMemo(()=>({...C,...l,refs:M,elements:k,nodeId:t}),[C,M,k,t,l]);return(0,o.OS)(()=>{l.dataRef.current.floatingContext=S;let e=null==p?void 0:p.nodesRef.current.find(e=>e.id===t);e&&(e.context=S)}),r.useMemo(()=>({...C,context:S,refs:M,elements:k}),[C,M,k,S])}}}]);