"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5489],{43262:(e,t,r)=>{r.d(t,{N:()=>v});var n=r(53756),o=r(5008),l=r(92565),i=r(30021),s=r(38291),u=r(53101),p=r(1089),c=r(87636);function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class f extends o.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,p.s)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,r=(0,p.s)(e)&&e.offsetWidth||0,n=(0,p.s)(e)&&e.offsetHeight||0,o=getComputedStyle(t),l=this.props.sizeRef.current;l.height=parseFloat(o.height),l.width=parseFloat(o.width),l.top=t.offsetTop,l.left=t.offsetLeft,l.right=r-l.width-l.left,l.bottom=n-l.height-l.top,l.direction=o.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function d({children:e,isPresent:t,anchorX:r,anchorY:l,root:i,pop:s}){let u=(0,o.useId)(),p=(0,o.useRef)(null),h=(0,o.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:m}=(0,o.useContext)(c.Q),y=function(...e){return o.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=a(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():a(e[t],null)}}}}(...e),e)}(p,e.props?.ref??e?.ref);return(0,o.useInsertionEffect)(()=>{let{width:e,height:n,top:o,left:c,right:a,bottom:f,direction:d}=h.current;if(t||!1===s||!p.current||!e||!n)return;let y="rtl"===d,g="left"===r?y?`right: ${a}`:`left: ${c}`:y?`left: ${c}`:`right: ${a}`,E="bottom"===l?`bottom: ${f}`:`top: ${o}`;p.current.dataset.motionPopId=u;let v=document.createElement("style");m&&(v.nonce=m);let b=i??document.head;return b.appendChild(v),v.sheet&&v.sheet.insertRule(`
          [data-motion-pop-id="${u}"] {
            position: absolute !important;
            width: ${e}px !important;
            height: ${n}px !important;
            ${g}px !important;
            ${E}px !important;
          }
        `),()=>{p.current?.removeAttribute("data-motion-pop-id"),b.contains(v)&&b.removeChild(v)}},[t]),(0,n.jsx)(f,{isPresent:t,childRef:p,sizeRef:h,pop:s,children:!1===s?e:o.cloneElement(e,{ref:y})})}let h=({children:e,initial:t,isPresent:r,onExitComplete:l,custom:p,presenceAffectsLayout:c,mode:a,anchorX:f,anchorY:h,root:y})=>{let g=(0,i.M)(m),E=(0,o.useId)(),v=(0,o.useRef)(r),b=(0,o.useRef)(l);(0,s.E)(()=>{v.current=r,b.current=l});let x=!0,R=(0,o.useMemo)(()=>(x=!1,{id:E,initial:t,isPresent:r,custom:p,onExitComplete:e=>{for(let t of(g.set(e,!0),g.values()))if(!t)return;l&&l()},register:e=>(g.set(e,!1),()=>{g.delete(e),v.current||g.size||b.current?.()})}),[r,g,l]);return c&&x&&(R={...R}),(0,o.useMemo)(()=>{g.forEach((e,t)=>g.set(t,!1))},[r]),o.useEffect(()=>{r||g.size||!l||l()},[r]),e=(0,n.jsx)(d,{pop:"popLayout"===a,isPresent:r,anchorX:f,anchorY:h,root:y,children:e}),(0,n.jsx)(u.t.Provider,{value:R,children:e})};function m(){return new Map}var y=r(54194);let g=e=>e.key||"";function E(e){let t=[];return o.Children.forEach(e,e=>{(0,o.isValidElement)(e)&&t.push(e)}),t}let v=({children:e,custom:t,initial:r=!0,onExitComplete:u,presenceAffectsLayout:p=!0,mode:c="sync",propagate:a=!1,anchorX:f="left",anchorY:d="top",root:m})=>{let[v,b]=(0,y.xQ)(a),x=(0,o.useMemo)(()=>E(e),[e]),R=a&&!v?[]:x.map(g),$=(0,o.useRef)(!0),w=(0,o.useRef)(x),C=(0,i.M)(()=>new Map),S=(0,o.useRef)(new Set),[_,j]=(0,o.useState)(x),[k,P]=(0,o.useState)(x);(0,s.E)(()=>{$.current=!1,w.current=x;for(let e=0;e<k.length;e++){let t=g(k[e]);R.includes(t)?(C.delete(t),S.current.delete(t)):!0!==C.get(t)&&C.set(t,!1)}},[k,R.length,R.join("-")]);let M=[];if(x!==_){let e=[...x];for(let t=0;t<k.length;t++){let r=k[t],n=g(r);R.includes(n)||(e.splice(t,0,r),M.push(r))}return"wait"===c&&M.length&&(e=M),P(E(e)),j(x),null}let{forceRender:z}=(0,o.useContext)(l.L);return(0,n.jsx)(n.Fragment,{children:k.map(e=>{let o=g(e),l=(!a||!!v)&&(x===k||R.includes(o));return(0,n.jsx)(h,{isPresent:l,initial:(!$.current||!!r)&&void 0,custom:t,presenceAffectsLayout:p,mode:c,root:m,onExitComplete:l?void 0:()=>{if(S.current.has(o)||!C.has(o))return;S.current.add(o),C.set(o,!0);let e=!0;C.forEach(t=>{t||(e=!1)}),e&&(z?.(),P(w.current),a&&b?.(),u&&u())},anchorX:f,anchorY:d,children:e},o)})})}},74725:(e,t,r)=>{r.d(t,{DX:()=>s,TL:()=>i});var n,o=r(5008),l=r(92746);function i(e){let t=o.forwardRef((t,r)=>{var n;let i,s,{children:c,...m}=t,y=null,g=!1,E=[];a(c)&&"function"==typeof h&&(c=h(c._payload)),o.Children.forEach(c,e=>{var t;if(t=e,o.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===u){g=!0;let t="child"in e.props?e.props.child:e.props.children;a(t)&&"function"==typeof h&&(t=h(t._payload)),y=p(e,t),E.push(y?.props?.children)}else E.push(e)}),y?y=o.cloneElement(y,void 0,E):!g&&1===o.Children.count(c)&&o.isValidElement(c)&&(y=c);let v=y?(n=y,(s=(i=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in i&&i.isReactWarning)?n.ref:(s=(i=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in i&&i.isReactWarning)?n.props.ref:n.props.ref||n.ref):void 0,b=(0,l.s)(r,v);if(!y){if(c||0===c)throw Error(g?d(e):f(e));return c}let x=function(e,t){let r={...t};for(let n in t){let o=e[n],l=t[n];/^on[A-Z]/.test(n)?o&&l?r[n]=(...e)=>{let t=l(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...l}:"className"===n&&(r[n]=[o,l].filter(Boolean).join(" "))}return{...e,...r}}(m,y.props??{});return y.type!==o.Fragment&&(x.ref=r?b:v),o.cloneElement(y,x)});return t.displayName=`${e}.Slot`,t}var s=i("Slot"),u=Symbol.for("radix.slottable"),p=(e,t)=>{if("child"in e.props){let t=e.props.child;return o.isValidElement(t)?o.cloneElement(t,void 0,e.props.children(t.props.children)):null}return o.isValidElement(t)?t:null},c=Symbol.for("react.lazy");function a(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===c&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var f=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,d=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,h=(n||(n=r.t(o,2)))[" use ".trim().toString()]},87542:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(91414).A)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]])},92746:(e,t,r)=>{r.d(t,{s:()=>l});var n=r(5008);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function l(...e){return n.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=o(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():o(e[t],null)}}}}(...e),e)}}}]);