"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2371],{4436:(e,t,r)=>{r.d(t,{k5:()=>a});var n=r(2115),o={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},l=n.createContext&&n.createContext(o),i=["attr","size","title"];function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;tn.createElement(f,c({attr:s({},e.attr)},t),function e(t){return t&&t.map((t,r)=>n.createElement(t.tag,s({key:r},t.attr),e(t.child)))}(e.child))}function f(e){var t=t=>{var r,{attr:o,size:l,title:u}=e,a=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;nt(e)):t(o)}},9114:(e,t,r)=>{r.d(t,{N:()=>y});var n=r(5155),o=r(2115),l=r(869),i=r(2885),c=r(3249),u=r(845),s=r(7351),a=r(1508);function f(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class p extends o.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,s.s)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,r=(0,s.s)(e)&&e.offsetWidth||0,n=(0,s.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 h(e){var t,r;let{children:l,isPresent:i,anchorX:c,anchorY:u,root:s,pop:h}=e,d=(0,o.useId)(),m=(0,o.useRef)(null),v=(0,o.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:g}=(0,o.useContext)(a.Q),b=function(...e){return o.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=f(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t{let{width:e,height:t,top:r,left:n,right:o,bottom:l,direction:a}=v.current;if(i||!1===h||!m.current||!e||!t)return;let f="rtl"===a;m.current.dataset.motionPopId=d;let p=document.createElement("style");g&&(p.nonce=g);let b=null!=s?s:document.head;return b.appendChild(p),p.sheet&&p.sheet.insertRule('\n [data-motion-pop-id="'.concat(d,'"] {\n position: absolute !important;\n width: ').concat(e,"px !important;\n height: ").concat(t,"px !important;\n ").concat("left"===c?f?"right: ".concat(o):"left: ".concat(n):f?"left: ".concat(n):"right: ".concat(o),"px !important;\n ").concat("bottom"===u?"bottom: ".concat(l):"top: ".concat(r),"px !important;\n }\n ")),()=>{var e;null==(e=m.current)||e.removeAttribute("data-motion-pop-id"),b.contains(p)&&b.removeChild(p)}},[i]),(0,n.jsx)(p,{isPresent:i,childRef:m,sizeRef:v,pop:h,children:!1===h?l:o.cloneElement(l,{ref:b})})}let d=e=>{let{children:t,initial:r,isPresent:l,onExitComplete:s,custom:a,presenceAffectsLayout:f,mode:p,anchorX:d,anchorY:v,root:g}=e,b=(0,i.M)(m),y=(0,o.useId)(),w=(0,o.useRef)(l),O=(0,o.useRef)(s);(0,c.E)(()=>{w.current=l,O.current=s});let j=!0,E=(0,o.useMemo)(()=>(j=!1,{id:y,initial:r,isPresent:l,custom:a,onExitComplete:e=>{for(let t of(b.set(e,!0),b.values()))if(!t)return;s&&s()},register:e=>(b.set(e,!1),()=>{var t;b.delete(e),w.current||b.size||null==(t=O.current)||t.call(O)})}),[l,b,s]);return f&&j&&(E={...E}),(0,o.useMemo)(()=>{b.forEach((e,t)=>b.set(t,!1))},[l]),o.useEffect(()=>{l||b.size||!s||s()},[l]),t=(0,n.jsx)(h,{pop:"popLayout"===p,isPresent:l,anchorX:d,anchorY:v,root:g,children:t}),(0,n.jsx)(u.t.Provider,{value:E,children:t})};function m(){return new Map}var v=r(2082);let g=e=>e.key||"";function b(e){let t=[];return o.Children.forEach(e,e=>{(0,o.isValidElement)(e)&&t.push(e)}),t}let y=e=>{let{children:t,custom:r,initial:u=!0,onExitComplete:s,presenceAffectsLayout:a=!0,mode:f="sync",propagate:p=!1,anchorX:h="left",anchorY:m="top",root:y}=e,[w,O]=(0,v.xQ)(p),j=(0,o.useMemo)(()=>b(t),[t]),E=p&&!w?[]:j.map(g),P=(0,o.useRef)(!0),x=(0,o.useRef)(j),C=(0,i.M)(()=>new Map),R=(0,o.useRef)(new Set),[k,S]=(0,o.useState)(j),[N,z]=(0,o.useState)(j);(0,c.E)(()=>{P.current=!1,x.current=j;for(let e=0;e{let t=g(e),o=(!p||!!w)&&(j===N||E.includes(t));return(0,n.jsx)(d,{isPresent:o,initial:(!P.current||!!u)&&void 0,custom:r,presenceAffectsLayout:a,mode:f,root:y,onExitComplete:o?void 0:()=>{if(R.current.has(t)||!C.has(t))return;R.current.add(t),C.set(t,!0);let e=!0;C.forEach(t=>{t||(e=!1)}),e&&(null==D||D(),z(x.current),p&&(null==O||O()),s&&s())},anchorX:h,anchorY:m,children:e},t)})})}}}]);