"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5480],{oefH:function(t,n,e){e.d(n,{j:function(){return animate}});var o=e("qEY6"),r=e("I/x6"),i=e("58k6");function animate(t,n,e){void 0===e&&(e={});var a=(0,r.i)(t)?t:(0,o.B)(t);return(0,i.b8)("",a,n,e),{stop:function(){return a.stop()},isAnimating:function(){return a.isAnimating()}}}},IRIy:function(t,n,e){e.d(n,{H:function(){return isAnimationControls}});function isAnimationControls(t){return"object"==typeof t&&"function"==typeof t.start}},tgaT:function(t,n,e){e.d(n,{C:function(){return isKeyframesTarget}});var isKeyframesTarget=function(t){return Array.isArray(t)}},"58k6":function(t,n,e){e.d(n,{ev:function(){return getValueTransition},b8:function(){return startAnimation}});var o=e("Istr"),r=e("GHbL"),i=e("UoJ7"),a=e("Vqt4"),s=e("82gj"),u=e("dtBG"),l=e("I4l+"),c={linear:u.GE,easeIn:u.YQ,easeInOut:u.mZ,easeOut:u.Vv,circIn:u.Z7,circInOut:u.X7,circOut:u.Bn,backIn:u.G2,backInOut:u.XL,backOut:u.CG,anticipate:u.LU,bounceIn:u.h9,bounceInOut:u.yD,bounceOut:u.gJ},easingDefinitionToFunction=function(t){if(Array.isArray(t)){(0,s.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");var n=(0,o.CR)(t,4),e=n[0],r=n[1],i=n[2],a=n[3];return(0,l._)(e,r,i,a)}return"string"==typeof t?((0,s.k)(void 0!==c[t],"Invalid easing type '".concat(t,"'")),c[t]):t},p=e("uX0q"),isAnimatable=function(t,n){return"zIndex"!==t&&!!("number"==typeof n||Array.isArray(n)||"string"==typeof n&&p.P.test(n)&&!n.startsWith("url("))},d=e("tgaT"),underDampedSpring=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},criticallyDampedSpring=function(t){return{type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}},linearTween=function(){return{type:"keyframes",ease:"linear",duration:.3}},keyframes=function(t){return{type:"keyframes",duration:.8,values:t}},f={x:underDampedSpring,y:underDampedSpring,z:underDampedSpring,rotate:underDampedSpring,rotateX:underDampedSpring,rotateY:underDampedSpring,rotateZ:underDampedSpring,scaleX:criticallyDampedSpring,scaleY:criticallyDampedSpring,scale:criticallyDampedSpring,opacity:linearTween,backgroundColor:linearTween,color:linearTween,default:criticallyDampedSpring},getDefaultTransition=function(t,n){var e;return e=(0,d.C)(n)?keyframes:f[t]||f.default,(0,o.pi)({to:n},e(n))},v=e("LEzq"),m=e("rl+x"),g=e("18S3"),h=!1;function isZero(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function getZeroUnit(t){return"number"==typeof t?0:(0,v.T)("",t)}function getValueTransition(t,n){return t[n]||t.default||t}function startAnimation(t,n,e,u){return void 0===u&&(u={}),m.c.current&&(u={type:!1}),n.start(function(l){var c,p,d,f,m,y,E,C,P,x,w,D=(f=e,E=null!==(m=(y=getValueTransition(u,t)).from)&&void 0!==m?m:n.get(),C=isAnimatable(t,f),"none"===E&&C&&"string"==typeof f?E=(0,v.T)(t,f):isZero(E)&&"string"==typeof f?E=getZeroUnit(f):!Array.isArray(f)&&isZero(f)&&"string"==typeof E&&(f=getZeroUnit(E)),P=isAnimatable(t,E),(0,s.K)(P===C,"You are trying to animate ".concat(t,' from "').concat(E,'" to "').concat(f,'". ').concat(E," is not an animatable value - to enable this animation set ").concat(E," to a value animatable to ").concat(f," via the `style` property.")),P&&C&&!1!==y.type?function(){var e,u,c,p,d,v,m,g,C,P,x,w,D,S={from:E,to:f,velocity:n.getVelocity(),onComplete:l,onUpdate:function(t){return n.set(t)}};return"inertia"===y.type||"decay"===y.type?(0,r.I)((0,o.pi)((0,o.pi)({},S),y)):(0,i.j)((0,o.pi)((0,o.pi)({},(e=y,u=S,c=t,Array.isArray(u.to)&&(null!==(p=e.duration)&&void 0!==p||(e.duration=.8)),Array.isArray(u.to)&&null===u.to[0]&&(u.to=(0,o.ev)([],(0,o.CR)(u.to),!1),u.to[0]=u.from),(d=e).when,d.delay,d.delayChildren,d.staggerChildren,d.staggerDirection,d.repeat,d.repeatType,d.repeatDelay,d.from,Object.keys((0,o._T)(d,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"])).length||(e=(0,o.pi)((0,o.pi)({},e),getDefaultTransition(c,u.to))),(0,o.pi)((0,o.pi)({},u),(m=(v=e).ease,g=v.times,C=v.yoyo,P=v.flip,x=v.loop,w=(0,o._T)(v,["ease","times","yoyo","flip","loop"]),D=(0,o.pi)({},w),g&&(D.offset=g),w.duration&&(D.duration=(0,a.w)(w.duration)),w.repeatDelay&&(D.repeatDelay=(0,a.w)(w.repeatDelay)),m&&(D.ease=Array.isArray(m)&&"number"!=typeof m[0]?m.map(easingDefinitionToFunction):easingDefinitionToFunction(m)),"tween"===w.type&&(D.type="keyframes"),(C||x||P)&&((0,s.K)(!h,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),h=!0,C?D.repeatType="reverse":x?D.repeatType="loop":P&&(D.repeatType="mirror"),D.repeat=x||C||P||w.repeat),"spring"!==w.type&&(D.type="keyframes"),D)))),{onUpdate:function(t){var n;S.onUpdate(t),null===(n=y.onUpdate)||void 0===n||n.call(y,t)},onComplete:function(){var t;S.onComplete(),null===(t=y.onComplete)||void 0===t||t.call(y)}}))}:function(){var t,e,o=(0,g.Y)(f);return n.set(o),l(),null===(t=null==y?void 0:y.onUpdate)||void 0===t||t.call(y,o),null===(e=null==y?void 0:y.onComplete)||void 0===e||e.call(y),{stop:function(){}}}),S=null!==(d=null!==(p=(getValueTransition(c=u,t)||{}).delay)&&void 0!==p?p:c.delay)&&void 0!==d?d:0,start=function(){return w=D()};return S?x=window.setTimeout(start,(0,a.w)(S)):start(),function(){clearTimeout(x),null==w||w.stop()}})}},MpNG:function(t,n,e){e.d(n,{M:function(){return AnimatePresence}});var o=e("Istr"),r=e("q1tI"),i=e("Fqgy"),a=e("Cv8v"),s=e("zTC3"),u=e("eKYY"),l=e("XnbI"),c=e("DRjg"),PresenceChild=function(t){var n=t.children,e=t.initial,i=t.isPresent,a=t.onExitComplete,s=t.custom,p=t.presenceAffectsLayout,d=(0,l.h)(newChildrenMap),f=(0,c.M)(),v=(0,r.useMemo)(function(){return{id:f,initial:e,isPresent:i,custom:s,onExitComplete:function(t){var n,e;d.set(t,!0);try{for(var r=(0,o.XA)(d.values()),i=r.next();!i.done;i=r.next())if(!i.value)return}catch(t){n={error:t}}finally{try{i&&!i.done&&(e=r.return)&&e.call(r)}finally{if(n)throw n.error}}null==a||a()},register:function(t){return d.set(t,!1),function(){return d.delete(t)}}}},p?void 0:[i]);return(0,r.useMemo)(function(){d.forEach(function(t,n){return d.set(n,!1)})},[i]),r.useEffect(function(){i||d.size||null==a||a()},[i]),r.createElement(u.O.Provider,{value:v},n)};function newChildrenMap(){return new Map}var p=e("lOFD"),d=e("BayG"),f=e("JDy8"),getChildKey=function(t){return t.key||""},AnimatePresence=function(t){var n,e=t.children,u=t.custom,l=t.initial,c=void 0===l||l,v=t.onExitComplete,m=t.exitBeforeEnter,g=t.presenceAffectsLayout,h=void 0===g||g,y=(0,o.CR)((0,a.N)(),1)[0],E=(0,r.useContext)(p.p).forceRender;E&&(y=E);var C=(0,s.t)(),P=(n=[],r.Children.forEach(e,function(t){(0,r.isValidElement)(t)&&n.push(t)}),n),x=P,w=new Set,D=(0,r.useRef)(x),S=(0,r.useRef)(new Map).current,b=(0,r.useRef)(!0);if((0,d.L)(function(){b.current=!1,function(t,n){t.forEach(function(t){var e=getChildKey(t);n.set(e,t)})}(P,S),D.current=x}),(0,f.z)(function(){b.current=!0,S.clear(),w.clear()}),b.current)return r.createElement(r.Fragment,null,x.map(function(t){return r.createElement(PresenceChild,{key:getChildKey(t),isPresent:!0,initial:!!c&&void 0,presenceAffectsLayout:h},t)}));x=(0,o.ev)([],(0,o.CR)(x),!1);for(var A=D.current.map(getChildKey),V=P.map(getChildKey),I=A.length,L=0;L1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),r.createElement(r.Fragment,null,w.size?x:x.map(function(t){return(0,r.cloneElement)(t)}))}},kWtK:function(t,n,e){e.d(n,{oO:function(){return usePresence}});var o=e("q1tI"),r=e("eKYY"),i=e("DRjg");function usePresence(){var t=(0,o.useContext)(r.O);if(null===t)return[!0,null];var n=t.isPresent,e=t.onExitComplete,a=t.register,s=(0,i.M)();return(0,o.useEffect)(function(){return a(s)},[]),!n&&e?[!1,function(){return null==e?void 0:e(s)}]:[!0]}},lOFD:function(t,n,e){e.d(n,{p:function(){return o}});var o=(0,e("q1tI").createContext)({})},xXgg:function(t,n,e){e.d(n,{_:function(){return o}});var o=(0,e("q1tI").createContext)({transformPagePoint:function(t){return t},isStatic:!1,reducedMotion:"never"})},KmVa:function(t,n,e){e.d(n,{B:function(){return useVisualElementContext},v:function(){return r}});var o=e("q1tI"),r=(0,o.createContext)({});function useVisualElementContext(){return(0,o.useContext)(r).visualElement}},eKYY:function(t,n,e){e.d(n,{O:function(){return o}});var o=(0,e("q1tI").createContext)(null)},Uh5s:function(t,n,e){e.d(n,{g:function(){return o}});var o=(0,e("q1tI").createContext)({})},oWPw:function(t,n,e){e.d(n,{Q:function(){return extractEventInfo},q:function(){return wrapHandler}});var o=e("cfUB"),r={pageX:0,pageY:0};function extractEventInfo(t,n){var e,i,a;return void 0===n&&(n="page"),{point:(0,o.z)(t)?(void 0===(e=n)&&(e="page"),{x:(i=t.touches[0]||t.changedTouches[0]||r)[e+"X"],y:i[e+"Y"]}):(void 0===(a=n)&&(a="page"),{x:t[a+"X"],y:t[a+"Y"]})}}var wrapHandler=function(t,n){void 0===n&&(n=!1);var listener=function(n){return t(n,extractEventInfo(n))};return n?function(t){var n=t instanceof MouseEvent;(!n||n&&0===t.button)&&listener(t)}:listener}},SRr1:function(t,n,e){e.d(n,{E:function(){return addDomEvent},p:function(){return useDomEvent}});var o=e("q1tI");function addDomEvent(t,n,e,o){return void 0===o&&(o={passive:!0}),t.addEventListener(n,e,o),function(){return t.removeEventListener(n,e)}}function useDomEvent(t,n,e,r){(0,o.useEffect)(function(){var o=t.current;if(e&&o)return addDomEvent(o,n,e,r)},[t,n,e,r])}},eYJs:function(t,n,e){e.d(n,{a:function(){return addPointerEvent},m:function(){return usePointerEvent}});var o=e("SRr1"),r=e("oWPw"),i=e("xhag"),a={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},s={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function getPointerEventName(t){if(i.j&&null===window.onpointerdown);else if(i.j&&null===window.ontouchstart)return s[t];else if(i.j&&null===window.onmousedown)return a[t];return t}function addPointerEvent(t,n,e,i){return(0,o.E)(t,getPointerEventName(n),(0,r.q)(e,"pointerdown"===n),i)}function usePointerEvent(t,n,e,i){return(0,o.p)(t,getPointerEventName(n),e&&(0,r.q)(e,"pointerdown"===n),i)}},KcJG:function(t,n,e){function createLock(t){var n=null;return function(){return null===n&&(n=t,function(){n=null})}}e.d(n,{fJ:function(){return getGlobalLock},gD:function(){return isDragActive}});var o=createLock("dragHorizontal"),r=createLock("dragVertical");function getGlobalLock(t){var n=!1;if("y"===t)n=r();else if("x"===t)n=o();else{var e=o(),i=r();e&&i?n=function(){e(),i()}:(e&&e(),i&&i())}return n}function isDragActive(){var t=getGlobalLock(!0);return!t||(t(),!1)}},cfUB:function(t,n,e){function isMouseEvent(t){return"undefined"!=typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function isTouchEvent(t){return!!t.touches}e.d(n,{N:function(){return isMouseEvent},z:function(){return isTouchEvent}})},m1Kd:function(t,n,e){e.d(n,{s:function(){return p}});var o=e("Istr"),r=e("q1tI"),i=e("IRIy"),a=e("kWtK"),s=e("eKYY"),u=e("2CfJ"),l=e("nnHd"),c=e("S2ib"),p={animation:(0,c.x)(function(t){var n=t.visualElement,e=t.animate;n.animationState||(n.animationState=(0,u.MS)(n)),(0,i.H)(e)&&(0,r.useEffect)(function(){return e.subscribe(n)},[e])}),exit:(0,c.x)(function(t){var n=t.custom,e=t.visualElement,i=(0,o.CR)((0,a.oO)(),2),u=i[0],c=i[1],p=(0,r.useContext)(s.O);(0,r.useEffect)(function(){e.isPresent=u;var t,o,r=null===(t=e.animationState)||void 0===t?void 0:t.setActive(l.r.Exit,!u,{custom:null!==(o=null==p?void 0:p.custom)&&void 0!==o?o:n});u||null==r||r.then(c)},[u])})}},pp5w:function(t,n,e){e.d(n,{o:function(){return R}});var o=e("q1tI"),r=e("Istr"),i=e("82gj"),a=e("cfUB"),s=e("oWPw"),u=e("S41x"),l=e("Vqt4"),c=e("eYJs"),p=e("GPpE"),d=e("jGS1"),f=function(){function PanSession(t,n,e){var o=this,i=(void 0===e?{}:e).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(o.lastMoveEvent&&o.lastMoveEventInfo){var t=getPanInfo(o.lastMoveEventInfo,o.history),n=null!==o.startEvent,e=(0,p.T)(t.offset,{x:0,y:0})>=3;if(n||e){var i=t.point,a=(0,u.$B)().timestamp;o.history.push((0,r.pi)((0,r.pi)({},i),{timestamp:a}));var s=o.handlers,l=s.onStart,c=s.onMove;n||(l&&l(o.lastMoveEvent,t),o.startEvent=o.lastMoveEvent),c&&c(o.lastMoveEvent,t)}}},this.handlePointerMove=function(t,n){if(o.lastMoveEvent=t,o.lastMoveEventInfo=transformPoint(n,o.transformPagePoint),(0,a.N)(t)&&0===t.buttons){o.handlePointerUp(t,n);return}u.ZP.update(o.updatePoint,!0)},this.handlePointerUp=function(t,n){o.end();var e=o.handlers,r=e.onEnd,i=e.onSessionEnd,a=getPanInfo(transformPoint(n,o.transformPagePoint),o.history);o.startEvent&&r&&r(t,a),i&&i(t,a)},!(0,a.z)(t)||!(t.touches.length>1)){this.handlers=n,this.transformPagePoint=i;var l=transformPoint((0,s.Q)(t),this.transformPagePoint),f=l.point,v=(0,u.$B)().timestamp;this.history=[(0,r.pi)((0,r.pi)({},f),{timestamp:v})];var m=n.onSessionStart;m&&m(t,getPanInfo(l,this.history)),this.removeListeners=(0,d.z)((0,c.a)(window,"pointermove",this.handlePointerMove),(0,c.a)(window,"pointerup",this.handlePointerUp),(0,c.a)(window,"pointercancel",this.handlePointerUp))}}return PanSession.prototype.updateHandlers=function(t){this.handlers=t},PanSession.prototype.end=function(){this.removeListeners&&this.removeListeners(),u.qY.update(this.updatePoint)},PanSession}();function transformPoint(t,n){return n?{point:n(t.point)}:t}function subtractPoint(t,n){return{x:t.x-n.x,y:t.y-n.y}}function getPanInfo(t,n){var e=t.point;return{point:e,delta:subtractPoint(e,lastDevicePoint(n)),offset:subtractPoint(e,n[0]),velocity:function(t,n){if(t.length<2)return{x:0,y:0};for(var e=t.length-1,o=null,r=lastDevicePoint(t);e>=0&&(o=t[e],!(r.timestamp-o.timestamp>(0,l.w)(.1)));)e--;if(!o)return{x:0,y:0};var i=(r.timestamp-o.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(r.x-o.x)/i,y:(r.y-o.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(n,0)}}function lastDevicePoint(t){return t[t.length-1]}var v=e("KcJG"),m=e("+wKZ"),g=e("QlcQ"),h=e("JeBA"),y=e("eZKA"),E=e("Vxjt");function calcRelativeAxisConstraints(t,n,e){return{min:void 0!==n?t.min+n:void 0,max:void 0!==e?t.max+e-(t.max-t.min):void 0}}function calcViewportAxisConstraints(t,n){var e,o=n.min-t.min,i=n.max-t.max;return n.max-n.minu?l="y":Math.abs(c.x)>u&&(l="x"),l),null!==e.currentDirection&&(null==a||a(e.currentDirection));return}e.updateAxis("x",n.point,c),e.updateAxis("y",n.point,c),e.visualElement.syncRender(),null==s||s(t,n)}},onSessionEnd:function(t,n){return e.stop(t,n)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},VisualElementDragControls.prototype.stop=function(t,n){var e=this.isDragging;if(this.cancel(),e){var o=n.velocity;this.startAnimation(o);var r=this.getProps().onDragEnd;null==r||r(t,n)}},VisualElementDragControls.prototype.cancel=function(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(t=this.panSession)||void 0===t||t.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(C.r.Drag,!1)},VisualElementDragControls.prototype.updateAxis=function(t,n,e){var o=this.getProps().drag;if(e&&shouldDrag(t,o,this.currentDirection)){var r,i,a,s,u,l=this.getAxisMotionValue(t),c=this.originPoint[t]+e[t];this.constraints&&this.constraints[t]&&(r=c,i=this.constraints[t],a=this.elastic[t],s=i.min,u=i.max,void 0!==s&&ru&&(r=a?(0,g.C)(u,r,a.max):Math.min(r,u)),c=r),l.set(c)}},VisualElementDragControls.prototype.resolveConstraints=function(){var t,n,e,o,r,i,a=this,s=this.getProps(),u=s.dragConstraints,l=s.dragElastic,c=(this.visualElement.projection||{}).layout,p=this.constraints;u&&(0,m.I)(u)?this.constraints||(this.constraints=this.resolveRefConstraints()):u&&c?this.constraints=(t=c.actual,n=u.top,e=u.left,o=u.bottom,r=u.right,{x:calcRelativeAxisConstraints(t.x,e,r),y:calcRelativeAxisConstraints(t.y,n,o)}):this.constraints=!1,this.elastic=(void 0===(i=l)&&(i=.35),!1===i?i=0:!0===i&&(i=.35),{x:resolveAxisElastic(i,"left","right"),y:resolveAxisElastic(i,"top","bottom")}),p!==this.constraints&&c&&this.constraints&&!this.hasMutatedConstraints&&(0,x.U)(function(t){if(a.getAxisMotionValue(t)){var n,e,o;a.constraints[t]=(n=c.actual[t],e=a.constraints[t],o={},void 0!==e.min&&(o.min=e.min-n.min),void 0!==e.max&&(o.max=e.max-n.min),o)}})},VisualElementDragControls.prototype.resolveRefConstraints=function(){var t,n=this.getProps(),e=n.dragConstraints,o=n.onMeasureDragConstraints;if(!e||!(0,m.I)(e))return!1;var r=e.current;(0,i.k)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var a=this.visualElement.projection;if(!a||!a.layout)return!1;var s=(0,w.z)(r,a.root,this.visualElement.getTransformPagePoint()),u={x:calcViewportAxisConstraints((t=a.layout.actual).x,s.x),y:calcViewportAxisConstraints(t.y,s.y)};if(o){var l=o((0,S.z2)(u));this.hasMutatedConstraints=!!l,l&&(u=(0,S.i8)(l))}return u},VisualElementDragControls.prototype.startAnimation=function(t){var n=this,e=this.getProps(),o=e.drag,i=e.dragMomentum,a=e.dragElastic,s=e.dragTransition,u=e.dragSnapToOrigin,l=e.onDragTransitionEnd,c=this.constraints||{};return Promise.all((0,x.U)(function(e){if(shouldDrag(e,o,n.currentDirection)){var l,p=null!==(l=null==c?void 0:c[e])&&void 0!==l?l:{};u&&(p={min:0,max:0});var d=(0,r.pi)((0,r.pi)({type:"inertia",velocity:i?t[e]:0,bounceStiffness:a?200:1e6,bounceDamping:a?40:1e7,timeConstant:750,restDelta:1,restSpeed:10},s),p);return n.startAxisValueAnimation(e,d)}})).then(l)},VisualElementDragControls.prototype.startAxisValueAnimation=function(t,n){var e=this.getAxisMotionValue(t);return(0,D.b8)(t,e,0,n)},VisualElementDragControls.prototype.stopAnimation=function(){var t=this;(0,x.U)(function(n){return t.getAxisMotionValue(n).stop()})},VisualElementDragControls.prototype.getAxisMotionValue=function(t){var n,e,o="_drag"+t.toUpperCase();return this.visualElement.getProps()[o]||this.visualElement.getValue(t,null!==(e=null===(n=this.visualElement.getProps().initial)||void 0===n?void 0:n[t])&&void 0!==e?e:0)},VisualElementDragControls.prototype.snapToCursor=function(t){var n=this;(0,x.U)(function(e){if(shouldDrag(e,n.getProps().drag,n.currentDirection)){var o=n.visualElement.projection,r=n.getAxisMotionValue(e);if(o&&o.layout){var i=o.layout.actual[e],a=i.min,s=i.max;r.set(t[e]-(0,g.C)(a,s,.5))}}})},VisualElementDragControls.prototype.scalePositionWithinConstraints=function(){var t,n=this,e=this.getProps(),o=e.drag,r=e.dragConstraints,i=this.visualElement.projection;if((0,m.I)(r)&&i&&this.constraints){this.stopAnimation();var a={x:0,y:0};(0,x.U)(function(t){var e=n.getAxisMotionValue(t);if(e){var o,r,i,s,u,l=e.get();a[t]=(o={min:l,max:l},r=n.constraints[t],i=.5,s=(0,E.JO)(o),(u=(0,E.JO)(r))>s?i=(0,h.Y)(r.min,r.max-s,o.min):s>u&&(i=(0,h.Y)(o.min,o.max-u,r.min)),(0,y.u)(0,1,i))}});var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(t=i.root)||void 0===t||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),(0,x.U)(function(t){if(shouldDrag(t,o,null)){var e=n.getAxisMotionValue(t),r=n.constraints[t],i=r.min,s=r.max;e.set((0,g.C)(i,s,a[t]))}})}},VisualElementDragControls.prototype.addListeners=function(){var t,n=this;V.set(this.visualElement,this);var e=this.visualElement.getInstance(),o=(0,c.a)(e,"pointerdown",function(t){var e=n.getProps(),o=e.drag,r=e.dragListener;o&&(void 0===r||r)&&n.start(t)}),measureDragConstraints=function(){var t=n.getProps().dragConstraints;(0,m.I)(t)&&(n.constraints=n.resolveRefConstraints())},r=this.visualElement.projection,i=r.addEventListener("measure",measureDragConstraints);r&&!r.layout&&(null===(t=r.root)||void 0===t||t.updateScroll(),r.updateLayout()),measureDragConstraints();var a=(0,b.E)(window,"resize",function(){return n.scalePositionWithinConstraints()});return r.addEventListener("didUpdate",function(t){var e=t.delta,o=t.hasLayoutChanged;n.isDragging&&o&&((0,x.U)(function(t){var o=n.getAxisMotionValue(t);o&&(n.originPoint[t]+=e[t].translate,o.set(o.get()+e[t].translate))}),n.visualElement.syncRender())}),function(){a(),o(),i()}},VisualElementDragControls.prototype.getProps=function(){var t=this.visualElement.getProps(),n=t.drag,e=t.dragDirectionLock,o=t.dragPropagation,i=t.dragConstraints,a=t.dragElastic,s=t.dragMomentum;return(0,r.pi)((0,r.pi)({},t),{drag:void 0!==n&&n,dragDirectionLock:void 0!==e&&e,dragPropagation:void 0!==o&&o,dragConstraints:void 0!==i&&i,dragElastic:void 0===a?.35:a,dragMomentum:void 0===s||s})},VisualElementDragControls}();function shouldDrag(t,n,e){return(!0===n||n===t)&&(null===e||e===t)}var L=e("XnbI"),M=e("xXgg"),T=e("JDy8"),k=e("S2ib"),R={pan:(0,k.x)(function(t){var n=t.onPan,e=t.onPanStart,r=t.onPanEnd,i=t.onPanSessionStart,a=t.visualElement,s=n||e||r||i,u=(0,o.useRef)(null),l=(0,o.useContext)(M._).transformPagePoint,p={onSessionStart:i,onStart:e,onMove:n,onEnd:function(t,n){u.current=null,r&&r(t,n)}};(0,o.useEffect)(function(){null!==u.current&&u.current.updateHandlers(p)}),(0,c.m)(a,"pointerdown",s&&function(t){u.current=new f(t,p,{transformPagePoint:l})}),(0,T.z)(function(){return u.current&&u.current.end()})}),drag:(0,k.x)(function(t){var n=t.dragControls,e=t.visualElement,r=(0,L.h)(function(){return new I(e)});(0,o.useEffect)(function(){return n&&n.subscribe(r)},[r,n]),(0,o.useEffect)(function(){return r.addListeners()},[r])})}},vy4j:function(t,n,e){e.d(n,{E:function(){return y}});var o=e("nnHd"),r=e("SRr1"),i=e("cfUB"),a=e("eYJs"),s=e("KcJG");function createHoverEvent(t,n,e){return function(r,a){var u;!(0,i.N)(r)||(0,s.gD)()||(null===(u=t.animationState)||void 0===u||u.setActive(o.r.Hover,n),null==e||e(r,a))}}var u=e("q1tI"),isNodeOrChild=function(t,n){return!!n&&(t===n||isNodeOrChild(t,n.parentElement))},l=e("JDy8"),c=e("jGS1"),p=e("Fqgy"),d=e("EW/E"),f=e("Istr"),v=new WeakMap,m=new WeakMap,fireObserverCallback=function(t){var n;null===(n=v.get(t.target))||void 0===n||n(t)},fireAllObserverCallbacks=function(t){t.forEach(fireObserverCallback)},g={some:0,all:1},h=e("S2ib"),y={inView:(0,h.x)(function(t){var n=t.visualElement,e=t.whileInView,r=t.onViewportEnter,i=t.onViewportLeave,a=t.viewport,s=void 0===a?{}:a,l=(0,u.useRef)({hasEnteredView:!1,isInView:!1}),c=!!(e||r||i);s.once&&l.current.hasEnteredView&&(c=!1),("undefined"==typeof IntersectionObserver?function(t,n,e,r){var i=r.fallback,a=void 0===i||i;(0,u.useEffect)(function(){t&&a&&("production"!==p.O&&(0,d.O)(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){n.hasEnteredView=!0;var t,r=e.getProps().onViewportEnter;null==r||r(null),null===(t=e.animationState)||void 0===t||t.setActive(o.r.InView,!0)}))},[t])}:function(t,n,e,r){var i=r.root,a=r.margin,s=r.amount,l=void 0===s?"some":s,c=r.once;(0,u.useEffect)(function(){if(t){var r,s,u,p,d,h,y,E={root:null==i?void 0:i.current,rootMargin:a,threshold:"number"==typeof l?l:g[l]};return r=e.getInstance(),s=E.root,u=(0,f._T)(E,["root"]),p=s||document,m.has(p)||m.set(p,{}),(d=m.get(p))[h=JSON.stringify(u)]||(d[h]=new IntersectionObserver(fireAllObserverCallbacks,(0,f.pi)({root:s},u))),y=d[h],v.set(r,function(t){var r,i=t.isIntersecting;if(n.isInView!==i){if(n.isInView=i,c&&!i&&n.hasEnteredView)return;i&&(n.hasEnteredView=!0),null===(r=e.animationState)||void 0===r||r.setActive(o.r.InView,i);var a=e.getProps(),s=i?a.onViewportEnter:a.onViewportLeave;null==s||s(t)}}),y.observe(r),function(){v.delete(r),y.unobserve(r)}}},[t,i,a,l])})(c,l.current,n,s)}),tap:(0,h.x)(function(t){var n=t.onTap,e=t.onTapStart,r=t.onTapCancel,i=t.whileTap,p=t.visualElement,d=n||e||r||i,f=(0,u.useRef)(!1),v=(0,u.useRef)(null),m={passive:!(e||n||r||onPointerDown)};function removePointerEndListener(){var t;null===(t=v.current)||void 0===t||t.call(v),v.current=null}function checkPointerEnd(){var t;return removePointerEndListener(),f.current=!1,null===(t=p.animationState)||void 0===t||t.setActive(o.r.Tap,!1),!(0,s.gD)()}function onPointerUp(t,e){checkPointerEnd()&&(isNodeOrChild(p.getInstance(),t.target)?null==n||n(t,e):null==r||r(t,e))}function onPointerCancel(t,n){checkPointerEnd()&&(null==r||r(t,n))}function onPointerDown(t,n){var r;removePointerEndListener(),f.current||(f.current=!0,v.current=(0,c.z)((0,a.a)(window,"pointerup",onPointerUp,m),(0,a.a)(window,"pointercancel",onPointerCancel,m)),null===(r=p.animationState)||void 0===r||r.setActive(o.r.Tap,!0),null==e||e(t,n))}(0,a.m)(p,"pointerdown",d?onPointerDown:void 0,m),(0,l.z)(removePointerEndListener)}),focus:(0,h.x)(function(t){var n=t.whileFocus,e=t.visualElement;(0,r.p)(e,"focus",n?function(){var t;null===(t=e.animationState)||void 0===t||t.setActive(o.r.Focus,!0)}:void 0),(0,r.p)(e,"blur",n?function(){var t;null===(t=e.animationState)||void 0===t||t.setActive(o.r.Focus,!1)}:void 0)}),hover:(0,h.x)(function(t){var n=t.onHoverStart,e=t.onHoverEnd,o=t.whileHover,r=t.visualElement;(0,a.m)(r,"pointerenter",n||o?createHoverEvent(r,!0,n):void 0,{passive:!n}),(0,a.m)(r,"pointerleave",e||o?createHoverEvent(r,!1,e):void 0,{passive:!e})})}},jhxu:function(t,n,e){e.d(n,{U:function(){return m}});var o=e("Istr"),r=e("S41x"),i=e("q1tI"),a=e("kWtK"),s=e("lOFD"),u=e("Uh5s"),l=e("BRx8"),c=e("ObmD"),p=e("4gfs"),d=e("ZCzJ"),f=function(t){function MeasureLayoutWithContext(){return null!==t&&t.apply(this,arguments)||this}return(0,o.ZT)(MeasureLayoutWithContext,t),MeasureLayoutWithContext.prototype.componentDidMount=function(){var t=this,n=this.props,e=n.visualElement,r=n.layoutGroup,i=n.switchLayoutGroup,a=n.layoutId,s=e.projection;(0,d.B)(v),s&&((null==r?void 0:r.group)&&r.group.add(s),(null==i?void 0:i.register)&&a&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",function(){t.safeToRemove()}),s.setOptions((0,o.pi)((0,o.pi)({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),l.V.hasEverUpdated=!0},MeasureLayoutWithContext.prototype.getSnapshotBeforeUpdate=function(t){var n=this,e=this.props,o=e.layoutDependency,i=e.visualElement,a=e.drag,s=e.isPresent,u=i.projection;return u&&(u.isPresent=s,a||t.layoutDependency!==o||void 0===o?u.willUpdate():this.safeToRemove(),t.isPresent===s||(s?u.promote():u.relegate()||r.ZP.postRender(function(){var t;(null===(t=u.getStack())||void 0===t?void 0:t.members.length)||n.safeToRemove()}))),null},MeasureLayoutWithContext.prototype.componentDidUpdate=function(){var t=this.props.visualElement.projection;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())},MeasureLayoutWithContext.prototype.componentWillUnmount=function(){var t=this.props,n=t.visualElement,e=t.layoutGroup,o=t.switchLayoutGroup,r=n.projection;r&&(r.scheduleCheckAfterUnmount(),(null==e?void 0:e.group)&&e.group.remove(r),(null==o?void 0:o.deregister)&&o.deregister(r))},MeasureLayoutWithContext.prototype.safeToRemove=function(){var t=this.props.safeToRemove;null==t||t()},MeasureLayoutWithContext.prototype.render=function(){return null},MeasureLayoutWithContext}(i.Component),v={borderRadius:(0,o.pi)((0,o.pi)({},c.J),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:c.J,borderTopRightRadius:c.J,borderBottomLeftRadius:c.J,borderBottomRightRadius:c.J,boxShadow:p.M},m={measureLayout:function(t){var n=(0,o.CR)((0,a.oO)(),2),e=n[0],r=n[1],l=(0,i.useContext)(s.p);return i.createElement(f,(0,o.pi)({},t,{layoutGroup:l,switchLayoutGroup:(0,i.useContext)(u.g),isPresent:e,safeToRemove:r}))}}},aNKL:function(t,n,e){e.d(n,{F:function(){return createMotionComponent}});var o=e("Istr"),r=e("q1tI"),i=e("Fqgy"),createDefinition=function(t){return{isEnabled:function(n){return t.some(function(t){return!!n[t]})}}},a={measureLayout:createDefinition(["layout","layoutId","drag"]),animation:createDefinition(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:createDefinition(["exit"]),drag:createDefinition(["drag","dragControls"]),focus:createDefinition(["whileFocus"]),hover:createDefinition(["whileHover","onHoverStart","onHoverEnd"]),tap:createDefinition(["whileTap","onTap","onTapStart","onTapCancel"]),pan:createDefinition(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:createDefinition(["whileInView","onViewportEnter","onViewportLeave"])},s=e("82gj"),u=(0,r.createContext)({strict:!1}),l=Object.keys(a),c=l.length,p=e("xXgg"),d=e("KmVa"),f=e("eKYY"),v=e("BayG"),m=e("NhxK"),g=e("+wKZ"),h=e("E8ZN");function variantLabelsAsDependency(t){return Array.isArray(t)?t.join(" "):t}var y=e("xhag"),E=e("gaOy"),C=e("lOFD"),P=e("Uh5s"),x=function(t){function VisualElementHandler(){return null!==t&&t.apply(this,arguments)||this}return(0,o.ZT)(VisualElementHandler,t),VisualElementHandler.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},VisualElementHandler.prototype.componentDidUpdate=function(){},VisualElementHandler.prototype.updateProps=function(){var t=this.props,n=t.visualElement,e=t.props;n&&n.setProps(e)},VisualElementHandler.prototype.render=function(){return this.props.children},VisualElementHandler}(r.Component);function createMotionComponent(t){var n=t.preloadedFeatures,e=t.createVisualElement,w=t.projectionNodeConstructor,D=t.useRender,S=t.useVisualState,b=t.Component;return n&&function(t){for(var n in t)null!==t[n]&&("projectionNodeConstructor"===n?a.projectionNodeConstructor=t[n]:a[n].Component=t[n])}(n),(0,r.forwardRef)(function(t,A){var V,I,L,M,T,k,R,O,U,j,H,G,K,Y,q,F,B,J,z,W,N,Z,X,_,Q,$=(G=t.layoutId,(K=null===(H=(0,r.useContext)(C.p))||void 0===H?void 0:H.id)&&void 0!==G?K+"-"+G:G);t=(0,o.pi)((0,o.pi)({},t),{layoutId:$});var tt=(0,r.useContext)(p._),tn=null,te=(q=(Y=function(t,n){if((0,h.O6)(t)){var e=t.initial,o=t.animate;return{initial:!1===e||(0,h.$L)(e)?e:void 0,animate:(0,h.$L)(o)?o:void 0}}return!1!==t.inherit?n:{}}(t,(0,r.useContext)(d.v))).initial,F=Y.animate,(0,r.useMemo)(function(){return{initial:q,animate:F}},[variantLabelsAsDependency(q),variantLabelsAsDependency(F)])),to=tt.isStatic?void 0:(0,E._)(),tr=S(t,tt.isStatic);return!tt.isStatic&&y.j&&(te.visualElement=(B=(0,o.pi)((0,o.pi)({},tt),t),J=e,z=(0,r.useContext)(u),W=(0,d.B)(),N=(0,r.useContext)(f.O),Z=(0,m.h)(),X=(0,r.useRef)(void 0),J||(J=z.renderer),!X.current&&J&&(X.current=J(b,{visualState:tr,parent:W,props:B,presenceId:null==N?void 0:N.id,blockInitialAnimation:(null==N?void 0:N.initial)===!1,shouldReduceMotion:Z})),_=X.current,(0,v.L)(function(){null==_||_.syncRender()}),(0,r.useEffect)(function(){var t;null===(t=null==_?void 0:_.animationState)||void 0===t||t.animateChanges()}),(0,v.L)(function(){return function(){return null==_?void 0:_.notifyUnmount()}},[]),_),V=t,I=te.visualElement,L=w||a.projectionNodeConstructor,T=V.layoutId,k=V.layout,R=V.drag,O=V.dragConstraints,U=V.layoutScroll,j=(0,r.useContext)(P.g),!L||!I||(null==I?void 0:I.projection)||(I.projection=new L(to,I.getLatestValues(),null===(M=I.parent)||void 0===M?void 0:M.projection),I.projection.setOptions({layoutId:T,layout:k,alwaysMeasureLayout:!!R||O&&(0,g.I)(O),visualElement:I,scheduleRender:function(){return I.scheduleRender()},animationType:"string"==typeof k?k:"both",initialPromotionConfig:j,layoutScroll:U})),tn=function(t,n,e){var p=[],d=(0,r.useContext)(u);if(!n)return null;"production"!==i.O&&e&&d.strict&&(0,s.k)(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var f=0;f