1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,126309,t=>{"use strict";var e=t.i(74544),i=t.i(343777);t.s(["useIsPresent",0,function(){var t;return null===(t=(0,e.useContext)(i.PresenceContext))||t.isPresent},"usePresence",0,function(t=!0){let s=(0,e.useContext)(i.PresenceContext);if(null===s)return[!0,null];let{isPresent:n,onExitComplete:o,register:r}=s,a=(0,e.useId)();(0,e.useEffect)(()=>{if(t)return r(a)},[t]);let l=(0,e.useCallback)(()=>t&&o&&o(a),[a,o,t]);return!n&&o?[!1,l]:[!0]}])},3379,t=>{"use strict";let e=(0,t.i(74544).createContext)({});t.s(["LayoutGroupContext",0,e])},529087,t=>{"use strict";let e=(0,t.i(74544).createContext)({strict:!1});t.s(["LazyContext",0,e])},451347,t=>{"use strict";let e=(0,t.i(74544).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",0,e])},685432,498412,425265,166901,750692,972889,t=>{"use strict";var e,i=t.i(74544);let s=(0,i.createContext)({});t.s(["MotionContext",0,s],685432);var n=t.i(186645),o=t.i(643646);function r(t){return Array.isArray(t)?t.join(" "):t}t.s(["useCreateMotionContext",0,function(t){let{initial:e,animate:a}=function(t,e){if((0,n.isControllingVariants)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,o.isVariantLabel)(e)?e:void 0,animate:(0,o.isVariantLabel)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,i.useContext)(s));return(0,i.useMemo)(()=>({initial:e,animate:a}),[r(e),r(a)])}],498412);var a=t.i(350764),l=t.i(97225),h=t.i(6778);let u=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function c(t,e,i){for(let s in e)(0,a.isMotionValue)(e[s])||(0,l.isForcedMotionValue)(s,i)||(t[s]=e[s])}t.s(["createHtmlRenderState",0,u],425265);var d=t.i(533186),m=t.i(140109);let p=()=>({...u(),attrs:{}});t.s(["createSvgRenderState",0,p],166901);let f=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function v(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||f.has(t)}let y=t=>!v(t);try{e=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof e&&(y=t=>t.startsWith("on")?!v(t):e(t))}catch{}var g=t.i(797002);t.s(["useRender",0,function(t,e,s,{latestValues:n},o,r=!1,l){let f=(l??(0,g.isSVGComponent)(t)?function(t,e,s,n){let o=(0,i.useMemo)(()=>{let i=p();return(0,d.buildSVGAttrs)(i,e,(0,m.isSVGTag)(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};c(e,t.style,t),o.style={...e,...o.style}}return o}:function(t,e){let s,n,o={},r=(s=t.style||{},c(n={},s,t),Object.assign(n,function({transformTemplate:t},e){return(0,i.useMemo)(()=>{let i=u();return(0,h.buildHTMLStyles)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(o.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(o.tabIndex=0),o.style=r,o})(e,n,o,t),x=function(t,e,i){let s={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&!(0,a.isMotionValue)(t[n])&&(y(n)||!0===i&&v(n)||!e&&!v(n)||t.draggable&&n.startsWith("onDrag"))&&(s[n]=t[n]);return s}(e,"string"==typeof t,r),P=t!==i.Fragment?{...x,...f,ref:s}:{},{children:E}=e,T=(0,i.useMemo)(()=>(0,a.isMotionValue)(E)?E.get():E,[E]);return(0,i.createElement)(t,{...P,children:T})}],750692);var x=t.i(570110);t.s(["scrapeHTMLMotionValuesFromProps",()=>x.scrapeMotionValuesFromProps],972889)},343777,t=>{"use strict";let e=(0,t.i(74544).createContext)(null);t.s(["PresenceContext",0,e])},455243,t=>{"use strict";let e=(0,t.i(74544).createContext)({});t.s(["SwitchLayoutGroupContext",0,e])},509302,701272,584047,t=>{"use strict";var e=t.i(838976),i=t.i(120194),s=t.i(686968),n=t.i(907953),o=t.i(587935),r=t.i(609846),a=t.i(805020),l=t.i(923301),h=t.i(490350),u=t.i(341330),c=t.i(508821),d=t.i(166532),m=t.i(813968),p=t.i(710401),f=t.i(862337),v=t.i(996584),y=t.i(725542),g=t.i(831890),x=t.i(136725),P=t.i(321752),E=t.i(494447),T=t.i(658904),w=t.i(815645),S=t.i(633836);let A=(t,e)=>Math.abs(t-e),D=new Set(["auto","scroll"]);class C{constructor(t,e,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:o=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=L(this.lastRawMoveEventInfo,this.transformPagePoint));let i=b(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,o=(t=i.offset,e={x:0,y:0},Math.sqrt(A(t.x,e.x)**2+A(t.y,e.y)**2)>=this.distanceThreshold);if(!s&&!o)return;let{point:r}=i,{timestamp:a}=n.frameData;this.history.push({...r,timestamp:a});let{onStart:l,onMove:h}=this.handlers;s||(l&&l(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=L(e,this.transformPagePoint),n.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=b("pointercancel"===t.type?this.lastMoveEventInfo:L(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,o),s&&s(t,o)},!(0,T.isPrimaryPointer)(t))return;this.dragSnapToOrigin=o,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=s||window;const l=L((0,x.extractEventInfo)(t),this.transformPagePoint),{point:h}=l,{timestamp:u}=n.frameData;this.history=[{...h,timestamp:u}];const{onSessionStart:c}=e;c&&c(t,b(l,this.history)),this.removeListeners=(0,w.pipe)((0,g.addPointerEvent)(this.contextWindow,"pointermove",this.handlePointerMove),(0,g.addPointerEvent)(this.contextWindow,"pointerup",this.handlePointerUp),(0,g.addPointerEvent)(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(D.has(t.overflowX)||D.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},o={x:s.x-e.x,y:s.y-e.y};(0!==o.x||0!==o.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(t,s),n.frame.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,n.cancelFrame)(this.updatePoint)}}function L(t,e){return e?{point:e(t.point)}:t}function V(t,e){return{x:t.x-e.x,y:t.y-e.y}}function b({point:t},e){return{point:t,delta:V(t,R(e)),offset:V(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,s=R(t);for(;e>=0&&(i=t[e],!(s.timestamp-i.timestamp>(0,S.secondsToMilliseconds)(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&s.timestamp-i.timestamp>
12*(0,S.secondsToMilliseconds)(.1)&&(i=t[1]);let n=(0,S.millisecondsToSeconds)(s.timestamp-i.timestamp);if(0===n)return{x:0,y:0};let o={x:(s.x-i.x)/n,y:(s.y-i.y)/n};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e)}}function R(t){return t[t.length-1]}var M=t.i(470934),B=t.i(508983);function j(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function k(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function F(t,e,i){return{min:I(t,e),max:I(t,i)}}function I(t,e){return"number"==typeof t?t:t[e]||0}let O=new WeakMap;class U{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,s.createBox)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:s}=this.visualElement;if(s&&!1===s.isPresent)return;let r=t=>{e&&this.snapToCursor((0,x.extractEventInfo)(t).point),this.stopAnimation()},a=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:r}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,d.setDragLock)(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),(0,o.eachAxis)(t=>{let e=this.getAxisMotionValue(t).get()||0;if(m.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=(0,p.calcLength)(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&n.frame.update(()=>r(t,e),!1,!0),(0,l.addValueToWillChange)(this.visualElement,"transform");let{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},h=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:o,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=e;if(s&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(a),null!==this.currentDirection&&o&&o(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),r&&n.frame.update(()=>r(t,e),!1,!0)},u=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:f}=this.getProps();this.panSession=new C(t,{onSessionStart:r,onStart:a,onMove:h,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,distanceThreshold:i,contextWindow:(0,P.getContextWindow)(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,s=e||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!s||!i)return;let{velocity:r}=s;this.startAnimation(r);let{onDragEnd:a}=this.getProps();a&&n.frame.postRender(()=>a(i,s))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!W(t,s,this.currentDirection))return;let n=this.getAxisMotionValue(t),o=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?(0,u.mixNumber)(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?(0,u.mixNumber)(i,t,s.max):Math.min(t,i)),t}(o,this.constraints[t],this.elastic[t])),n.set(o)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;t&&(0,E.isRefObject)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:s,right:n}){return{x:j(t.x,i,n),y:j(t.y,e,s)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:F(t,"left","right"),y:F(t,"top","bottom")}}(e),s!==this.constraints&&!(0,E.isRefObject)(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&(0,o.eachAxis)(t=>{var e,s;let n;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],s=this.constraints[t],n={},void 0!==s.min&&(n.min=s.min-e.min),void 0!==s.max&&(n.max=s.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,E.isRefObject)(e))return!1;let s=e.current;(0,y.invariant)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;n.root&&(n.root.scroll=void 0,n.root.updateScroll());let o=(0,r.measurePageBox)(s,n.root,this.visualElement.getTransformPagePoint()),l=(t=n.layout.layoutBox,{x:k(t.x,o.x),y:k(t.y,o.y)});if(i){let t=i((0,a.convertBoxToBoundingBox)(l));this.hasMutatedConstraints=!!t,t&&(l=(0,a.convertBoundingBoxToBox)(t))}return l}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{};return Promise.all((0,o.eachAxis)(o=>{if(!W(o,e,this.currentDirection))return;let a=l&&l[o]||{};(!0===r||r===o)&&(a={min:0,max:0});let h={type:"inertia",velocity:i?t[o]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...a};return this.startAxisValueAnimation(o,h)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,l.addValueToWillChange)(this.visualElement,t),i.start((0,h.animateMotionValue)(t,i,0,e,this.visualElement,!1))}stopAnimation(){(0,o.eachAxis)(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`;return this.visualElement.getProps()[e]||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){(0,o.eachAxis)(e=>{let{drag:i}=this.getProps();if(!W(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,n=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:o}=s.layout.layoutBox[e],r=n.get()||0;n.set(t[e]-(0,u.mixNumber)(i,o,.5)+r)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,E.isRefObject)(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};(0,o.eachAxis)(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,n;let o,r,a,l=e.get();s[t]=(i={min:l,max:l},n=this.constraints[t],o=.5,r=(0,p.calcLength)(i),(a=(0,p.calcLength)(n))>r?o=(0,M.progress)(n.min,n.max-r,i.min):r>a&&(o=(0,M.progress)(i.min,i.max-a,n.min)),(0,B.clamp)(0,1,o))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),(0,o.eachAxis)(e=>{if(!W(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:o}=this.constraints[e];i.set((0,u.mixNumber)(n,o,s[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;O.set(this.visualElement,this);let e=this.visualElement.current,i=(0,g.addPointerEvent)(e,"pointerdown",t=>{let{drag:i,dragListener:s=!0}
1=this.getProps(),n=t.target,o=n!==e&&(0,v.isElementTextInput)(n);i&&s&&!o&&this.start(t)}),s=()=>{var i,s,n;let o,r,{dragConstraints:a}=this.getProps();(0,E.isRefObject)(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,s=a.current,n=()=>this.scalePositionWithinConstraints(),o=(0,f.resize)(i,N(n)),r=(0,f.resize)(s,N(n)),t=()=>{o(),r()}))},{projection:r}=this.visualElement,a=r.addEventListener("measure",s);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),n.frame.read(s);let l=(0,c.addDomEvent)(window,"resize",()=>this.scalePositionWithinConstraints()),h=r.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&((0,o.eachAxis)(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{l(),i(),a(),h&&h(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:o=.35,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:o,dragMomentum:r}}}function N(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function W(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class H extends e.Feature{constructor(t){super(t),this.removeGroupControls=i.no
1op,this.removeListeners=i.noop,this.controls=new U(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||i.noop}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}t.s(["DragGesture",0,H],509302);var G=e;let z=t=>(e,i)=>{t&&n.frame.update(()=>t(e,i),!1,!0)};class $ extends G.Feature{constructor(){super(...arguments),this.removePointerDownListener=i.noop}onPointerDown(t){this.session=new C(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:(0,P.getContextWindow)(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:z(t),onStart:z(e),onMove:z(i),onEnd:(t,e)=>{delete this.session,s&&n.frame.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=(0,g.addPointerEvent)(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}t.s(["PanGesture",0,$],701272),t.s(["globalProjectionState",0,{hasAnimatedSinceResize:!0,hasEverUpdated:!1}],584047)},42777,t=>{"use strict";var e=t.i(838976),i=t.i(660391),s=t.i(900332);function n(t,e,i,s=0,o=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,l=(a-1)*s;return"function"==typeof i?i(r,a):1===o?r*s:l-r*s}function o(t,e,r={}){let a=(0,i.resolveVariant)(t,e,"exit"===r.type?t.presenceContext?.custom:void 0),{transition:l=t.getDefaultTransition()||{}}=a||{};r.transitionOverride&&(l=r.transitionOverride);let h=a?()=>Promise.all((0,s.animateTarget)(t,a,r)):()=>Promise.resolve(),u=t.variantChildren&&t.variantChildren.size?(i=0)=>{let{delayChildren:s=0,staggerChildren:a,staggerDirection:h}=l;return function(t,e,i=0,s=0,r=0,a=1,l){let h=[];for(let u of t.variantChildren)u.notify("AnimationStart",e),h.push(o(u,e,{...l,delay:i+("function"==typeof s?0:s)+n(t.variantChildren,u,s,r,a)}).then(()=>u.notify("AnimationComplete",e)));return Promise.all(h)}(t,e,i,s,a,h,r)}:()=>Promise.resolve(),{when:c}=l;if(!c)return Promise.all([h(),u(r.delay)]);{let[t,e]="beforeChildren"===c?[h,u]:[u,h];return t().then(()=>e())}}var r=t.i(643646),a=t.i(661749);let l=a.variantProps.length;var h=t.i(508578),u=t.i(130350);function c(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}let d=[...a.variantPriorityOrder].reverse(),m=a.variantPriorityOrder.length;function p(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function f(){return{animate:p(!0),whileInView:p(),whileHover:p(),whileTap:p(),whileDrag:p(),whileFocus:p(),exit:p()}}class v extends e.Feature{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:n})=>(function(t,e,n={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>o(t,e,n)));else if("string"==typeof e)r=o(t,e,n);else{let o="function"==typeof e?(0,i.resolveVariant)(t,e,n.custom):e;r=Promise.all((0,s.animateTarget)(t,o,n))}return r.then(()=>{t.notify("AnimationComplete",e)})})(t,e,n))),p=f(),v=!0,y=!1,g=e=>(s,n)=>{let o=(0,i.resolveVariant)(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(o){let{transition:t,transitionEnd:e,...i}=o;s={...s,...i,...e}}return s};function x(s){let{props:o}=t,f=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<l;t++){let s=a.variantProps[t],n=e.props[s];((0,r.isVariantLabel)(n)||!1===n)&&(i[s]=n)}return i}(t.parent)||{},x=[],P=new Set,E={},T=1/0;for(let e=0;e<m;e++){var w,S;let a=d[e],l=p[a],m=void 0!==o[a]?o[a]:f[a],A=(0,r.isVariantLabel)(m),D=a===s?l.isActive:null;!1===D&&(T=e);let C=m===f[a]&&m!==o[a]&&A;if(C&&(v||y)&&t.manuallyAnimateOnMount&&(C=!1),l.protectedKeys={...E},!l.isActive&&null===D||!m&&!l.prevProp||(0,h.isAnimationControls)(m)||"boolean"==typeof m)continue;if("exit"===a&&l.isActive&&!0!==D){l.prevResolvedValues&&(E={...E,...l.prevResolvedValues});continue}let L=(w=l.prevProp,"string"==typeof(S=m)?S!==w:!!Array.isArray(S)&&!c(S,w)),V=L||a===s&&l.isActive&&!C&&A||e>T&&A,b=!1,R=Array.isArray(m)?m:[m],M=R.reduce(g(a),{});!1===D&&(M={});let{prevResolvedValues:B={}}=l,j={...B,...M},k=e=>{V=!0,P.has(e)&&(b=!0,P.delete(e)),l.needsAnimating[e]=!0;let i=t.getValue(e);
1i&&(i.liveStyle=!1)};for(let t in j){let e=M[t],i=B[t];if(!E.hasOwnProperty(t))((0,u.isKeyframesTarget)(e)&&(0,u.isKeyframesTarget)(i)?!c(e,i)||L:e!==i)?null!=e?k(t):P.add(t):void 0!==e&&P.has(t)?k(t):l.protectedKeys[t]=!0}l.prevProp=m,l.prevResolvedValues=M,l.isActive&&(E={...E,...M}),(v||y)&&t.blockInitialAnimation&&(V=!1);let F=C&&L,I=!F||b;V&&I&&x.push(...R.map(e=>{let s={type:a};if("string"==typeof e&&(v||y)&&!F&&t.manuallyAnimateOnMount&&t.parent){let{parent:o}=t,r=(0,i.resolveVariant)(o,e);if(o.enteringChildren&&r){let{delayChildren:e}=r.transition||{};s.delay=n(o.enteringChildren,t,e)}}return{animation:e,options:s}}))}if(P.size){let e={};if("boolean"!=typeof o.initial){let s=(0,i.resolveVariant)(t,Array.isArray(o.initial)?o.initial[0]:o.initial);s&&s.transition&&(e.transition=s.transition)}P.forEach(i=>{let s=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=s??null}),x.push({animation:e})}let A=!!x.length;return v&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(A=!1),v=!1,y=!1,A?e(x):Promise.resolve()}return{animateChanges:x,setActive:function(e,i){if(p[e].isActive===i)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,i)),p[e].isActive=i;let s=x(e);for(let t in p)p[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>p,reset:()=>{p=f(),y=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,h.isAnimationControls)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}var y=e;let g=0;class x extends y.Feature{constructor(){super(...arguments),this.id=g++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;if(t&&!1===s){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)){let s=(0,i.resolveVariant)(this.node,t,e);if(s){let{transition:t,transitionEnd:e,...i}=s;for(let t in i)this.node.getValue(t)?.jump(i[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}t.s(["animations",0,{animation:{Feature:v},exit:{Feature:x}}],42777)},420947,515990,t=>{"use strict";var e=t.i(509302),i=t.i(701272),s=t.i(373642),n=t.i(810246),o=t.i(508983),r=t.i(120194),a=t.i(659367),l=t.i(274794),h=t.i(233278),u=t.i(354012),c=t.i(720802),d=t.i(575342),m=t.i(906470),p=t.i(187067),f=t.i(927048),v=t.i(170899),y=t.i(359569),g=t.i(341330),x=t.i(964355),P=t.i(474032),E=t.i(813968),T=t.i(470934),w=t.i(509);let S=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],A=S.length,D=t=>"string"==typeof t?parseFloat(t):t,C=t=>"number"==typeof t||E.px.test(t);function L(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let V=R(0,.5,w.circOut),b=R(.5,.95,r.noop);function R(t,e,i){return s=>s<t?0:s>e?1:i((0,T.progress)(t,e,s))}function M(t,e){t.min=e.min,t.max=e.max}function B(t,e){M(t.x,e.x),M(t.y,e.y)}function j(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var k=t.i(174302),F=t.i(710401);function I(t,e,i,s,n){return t-=e,t=(0,k.scalePoint)(t,1/i,s),void 0!==n&&(t=(0,k.scalePoint)(t,1/n,s)),t}function O(t,e,[i,s,n],o,r){!function(t,e=0,i=1,s=.5,n,o=t,r=t){if(E.percent.test(e)&&(e=parseFloat(e),e=(0,g.mixNumber)(r.min,r.max,e/100)-r.min),"number"!=typeof e)return;let a=(0,g.mixNumber)(o.min,o.max,s);t===o&&(a-=e),t.min=I(t.min,e,i,a,n),t.max=I(t.max,e,i,a,n)}(t,e[i],e[s],e[n],e.scale,o,r)}let U=["x","scaleX","originX"],N=["y","scaleY","originY"];function W(t,e,i,s){O(t.x,e,U,i?i.x:void 0,s?s.x:void 0),O(t.y,e,N,i?i.y:void 0,s?s.y:void 0)}var H=t.i(686968);function G(t){return 0===t.translate&&1===t.scale}function z(t){return G(t.x)&&G(t.y)}function $(t,e){return t.min===e.min&&t.max===e.max}function X(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Y(t,e){return X(t.x,e.x)&&X(t.y,e.y)}function K(t){return(0,F.calcLength)(t.x)/(0,F.calcLength)(t.y)}function _(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var q=t.i(926935);class Z{constructor(){this.members=[]}add(t){(0,q.addUniqueItem)(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let s=i.instance;s&&!1!==s.isConnected||i.snapshot||((0,q.removeItem)(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if((0,q.removeItem)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:s}=i.options,{layoutDependency:n}=t.options;(void 0===s||s!==n)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}var J=t.i(587935);let Q=(t,e)=>t.depth-e.depth;class tt{constructor(){this.children=[],this.isDirty=!1}add(t){(0,q.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,q.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Q),this.isDirty=!1,this.children.forEach(t)}}var te=t.i(767052),ti=t.i(584047),ts=t.i(907953);let tn={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},to=["","X","Y","Z"],tr=0;function ta(t,e,i,s){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function tl({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=tr++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,p.statsBuffer.value&&(tn.nodes=tn.calculatedTargetDeltas=tn.calculatedProjections=0),this.nodes.forEac
1h(tc),this.nodes.forEach(tP),this.nodes.forEach(tE),this.nodes.forEach(td),p.statsBuffer.addProjectionMetrics&&p.statsBuffer.addProjectionMetrics(tn)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new tt)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new n.SubscriptionManager),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=(0,v.isSVGElement)(e)&&!(0,y.isSVGSVGElement)(e),this.instance=e;let{layoutId:i,layout:s,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),t){let i,s=0,n=()=>this.root.updateBlockedByResize=!1;ts.frame.read(()=>{s=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==s&&(s=t,this.root.updateBlockedByResize=!0,i&&i(),i=(0,f.delay)(n,250),ti.globalProjectionState.hasAnimatedSinceResize&&(ti.globalProjectionState.hasAnimatedSinceResize=!1,this.nodes.forEach(tx)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||n.getDefaultTransition()||tC,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!Y(this.targetLayout,s),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...(0,h.getValueTransition)(o,"layout"),onPlay:r,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u,e.path)}else e||tx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,ts.cancelFrame)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(tT),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let s=(0,l.getOptimisedAppearId)(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",ts.frame,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEac
1h(tf),this.nodes.forEach(tp);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(tv);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ty),this.nodes.forEach(tg),this.nodes.forEach(th),this.nodes.forEach(tu)):this.nodes.forEach(tv),this.clearAllSnapshots();let t=c.time.now();ts.frameData.delta=(0,o.clamp)(0,1e3/60,t-ts.frameData.timestamp),ts.frameData.timestamp=t,ts.frameData.isProcessing=!0,ts.frameSteps.update.process(ts.frameData),ts.frameSteps.preRender.process(ts.frameData),ts.frameSteps.render.process(ts.frameData),ts.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,u.microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tm),this.sharedNodes.forEach(tw)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ts.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ts.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||(0,F.calcLength)(this.snapshot.measuredBox.x)||(0,F.calcLength)(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=(0,H.createBox)()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=s(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!z(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,n=s!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,te.hasTransform)(this.latestValues)||n)&&(r(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),tb((e=s).x),tb(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,H.createBox)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(tM))){let{scroll:t}=this.root;t&&((0,k.translateAxis)(e.x,t.offset.x),(0,k.translateAxis)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,H.createBox)();if(B(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:n,options:o}=s;s!==this.root&&n&&o.layoutScroll&&(n.wasRoot&&B(e,t),(0,k.translateAxis)(e.x,n.offset.x),(0,k.translateAxis)(e.y,n.offset.y))}return e}applyTransform(t,e=!1,i){let s=i||(0,H.createBox)();B(s,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&((0,k.translateAxis)(s.x,-i.scroll.offset.x),(0,k.translateAxis)(s.y,-i.scroll.offset.y)),(0,te.hasTransform)(i.latestValues)&&(0,k.transformBox)(s,i.latestValues,i.layout?.layoutBox)}return(0,te.hasTransform)(this.latestValues)&&(0,k.transformBox)(s,this.latestValues,this.layout?.layoutBox),s}removeTransform(t){let e=(0,H.createBox)();B(e,t);for(let t=0;t<this.path.length;t++){let i,s=this.path[t];(0,te.hasTransform)(s.latestValues)&&(s.instance&&((0,te.hasScale)(s.latestValues)&&s.updateSnapshot(),B(i=(0,H.createBox)(),s.measurePageBox())),W(e,s.latestValues,s.snapshot?.layoutBox,i))}return(0,te.hasTransform)(this.latestValues)&&W(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ts.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:n}=this.options;if(!this.layout||!(s||n))return;this.resolvedRelativeTargetAt=ts.frameData.timestamp;let o=this.getClosestProjectingParent();o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=(0,H.createBox)(),this.targetWithTransforms=(0,H.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),(0,F.calcRelativeBox)(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):B(this.target,this.layout.layoutBox),(0,k.applyBoxDelta)(this.target,this.targetDelta)):B(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0),p.statsBuffer.value&&tn.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||(0,te.hasScale)(this.parent.latestValues)||(0,te.has2DTranslate)(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,H.createBox)(),this.relativeTargetOrigin=(0,H.createBox)(),(0,F.calcRelativePosition)(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),B(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===ts.frameData.timestamp&&(i=!1),i)return;let{layout:s,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||n))return;B(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,r=this.treeScale.y;(0,k.applyTreeDeltas)(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=(0,H.createBox)());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(j(this.prevProjectionDelta.x,this.projectionDelta.x),j(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),(0,F.calcBoxDelta)(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===o&&this.treeScale.y===r&&_(this.projectionDelta.x,this.prevProjectionDelta.x)&&_(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),p.statsBuffer.value&&tn.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,H.createDelta)(),this.projectionDelta=(0,H.createDelta)(),this.projectionDeltaWithTransform=(0,H.createDelta)()}setAnimationOrigin(t,e=!1,i){let s,n=this.snapshot,o=n?n.latestValues:{},r={...this.latestValues},a=(0,H.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=(0,H.createBox)(),h=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(h&&!c&&!0===this.options.crossfade&&!this.path.some(tD));this.animationProgress=0;let m=i?.interpolateProjection(t);this.mixTargetDelta=e=>{let i=e/1e3,n=m?.(i);if(n?(a.x.translate=n.x,a.x.scale=(0,g.mixNumber)(t.x.scale,1,i),a.x.origin=t.x.origin,a.x.originPoint=t.x.originPoint,a.y.translate=n.y,a.y.scale=(0,g.mixNumber)(t.y.scale,1,i),a.y.origin=t.y.origin,a.y.originPoint=t.y.originPoint):(tS(a.x,t.x,i),tS(a.y,t.y,i)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,p,f,v,y,x;(0,F.calcRelativePosition)(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,v=this.relativeTargetOrigin,y=l,x=i,tA(f.x,v.x,y.x,x),tA(f.y,v.y,y.y,x),s&&(u=this.relativeTarget,p=s,$(u.x,p.x)&&$(u.y,p.y))&&(this.isProjectionDirty=!1),s||(s=(0,H.createBox)()),B(s,this.relativeTarget)}h&&(this.animationValues=r,function(t,e,i,s,n,o){n?(t.opacity=(0,g.mixNumber)(0,i.opacity??1,V(s)),t.opacityExit=(0,g.mixNumber)(e.opacity??1,0,b(s))):o&&(t.opacity=(0,g.mixNumber)(e.opacity??1,i.opacity??1,s));for(let n=0;n<A;n++){let o=S[n],r=L(e,o),a=L(i,o);(void 0!==r||void 0!==a)&&(r||(r=0),a||(a=0),0===r||0===a||C(r)===C(a)?(t[o]=Math.max((0,g.mixNumber)(D(r),D(a),s),0),(E.percent.test(a)||E.percent.test(r))&&(t[o]+="%")):t[o]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,g.mixNumber)(e.rotate||0,i.rotate||0,s))}(r,o,this.latestValues,i,d,c)),n&&void 0!==n.rotate&&(this.animationValues||(this.animationValues=r),this.animationValues.pathRotation=n.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,ts.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ts.frame.update(()=>{ti.globalProjectionState.hasAnimatedSinceResize=!0,m.activeAnimations.layout++,this.motionValue||(this.motionValue=(0,x.motionValue)(0)),this.motionValue.jump(0,!1),this.currentAnimation=(0,a.animateSingleValue)(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{m.activeAnimations.layout--},onComplete:()=>{m.activeAnimations.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:s,latestValues:n}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&tR(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,H.createBox)();let e=(0,F.calcLength)(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=(0,F.calcLength)(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}B(e,i),(0,k.transformBox)(e,n),(0,F.calcBoxDelta)(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Z),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let s={};i.z&&ta("z",t,s,this.animationValues);for(let e=0;e<to.length;e++)ta(`rotate${to[e]}`,t,s,this.animationValues),ta(`skew${to[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=(0,P.resolveMotionValue)(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=(0,P.resolveMotionValue)(e?.pointerEvents)||""),this.hasProjected&&!(0,te.hasTransform)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let n=s.animationValues||s.latestValues;this.applyTransformsToTarget();let o=function(t,e,i){let s="",n=t.x.translate/e.x,o=t.y.translate/e.y,r=i?.z||0;if((n||o||r)&&(s=`translate3d(${n}px, ${o}px, ${r}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,pathRotation:n,rotateX:o,rotateY:r,skewX:a,skewY:l}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),n&&(s+=`rotate(${n}deg) `),o&&(s+=`rotateX(${o}deg) `),r&&(s+=`rotateY(${r}deg) `),a&&(s+=`skewX(${a}deg) `),l&&(s+=`skewY(${l}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(s+=`scale(${a}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(o=i(n,o)),t.transform=o;let{x:r,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*r.origin}% ${100*a.origin}% 0`,s.animationValues?t.opacity=s===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:t.opacity=s===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,d.scaleCorrectors){if
1(void 0===n[e])continue;let{correct:i,applyTo:r,isCSSVariable:a}=d.scaleCorrectors[e],l="none"===o?n[e]:i(n[e],s);if(r){let e=r.length;for(let i=0;i<e;i++)t[r[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=s===this?(0,P.resolveMotionValue)(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(tp),this.root.sharedNodes.clear()}}}function th(t){t.updateLayout()}function tu(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=t.layout,{animationType:n}=t.options,o=e.source!==t.layout.source;if("size"===n)(0,J.eachAxis)(t=>{let s=o?e.measuredBox[t]:e.layoutBox[t],n=(0,F.calcLength)(s);s.min=i[t].min,s.max=s.min+n});else if("x"===n||"y"===n){let t="x"===n?"y":"x";M(o?e.measuredBox[t]:e.layoutBox[t],i[t])}else tR(n,e.layoutBox,i)&&(0,J.eachAxis)(s=>{let n=o?e.measuredBox[s]:e.layoutBox[s],r=(0,F.calcLength)(i[s]);n.max=n.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+r)});let r=(0,H.createDelta)();(0,F.calcBoxDelta)(r,i,e.layoutBox);let a=(0,H.createDelta)();o?(0,F.calcBoxDelta)(a,t.applyTransform(s,!0),e.measuredBox):(0,F.calcBoxDelta)(a,i,e.layoutBox);let l=!z(r),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:o}=s;if(n&&o){let r=t.options.layoutAnchor||void 0,a=(0,H.createBox)();(0,F.calcRelativePosition)(a,e.layoutBox,n.layoutBox,r);let l=(0,H.createBox)();(0,F.calcRelativePosition)(l,i,o.layoutBox,r),Y(a,l)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function tc(t){p.statsBuffer.value&&tn.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function td(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function tm(t){t.clearSnapshot()}function tp(t){t.clearMeasurements()}function tf(t){t.isLayoutDirty=!0,t.updateLayout()}function tv(t){t.isLayoutDirty=!1}function ty(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function tg(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function tx(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function tP(t){t.resolveTargetDelta()}function tE(t){t.calcProjection()}function tT(t){t.resetSkewAndRotation()}function tw(t){t.removeLeadSnapshot()}function tS(t,e,i){t.translate=(0,g.mixNumber)(e.translate,0,i),t.scale=(0,g.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function tA(t,e,i,s){t.min=(0,g.mixNumber)(e.min,i.min,s),t.max=(0,g.mixNumber)(e.max,i.max,s)}function tD(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let tC={duration:.45,ease:[.4,0,.1,1]},tL=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),tV=tL("applewebkit/")&&!tL("chrome/")?Math.round:r.noop;function tb(t){t.min=tV(t.min),t.max=tV(t.max)}function tR(t,e,i){return"position"===t||"preserve-aspect"===t&&!(0,F.isNear)(K(e),K(i),.2)}function tM(t){return t!==t.root&&t.scroll?.wasRoot}var tB=t.i(508821);let tj=tl({attachResizeListener:(t,e)=>(0,tB.addDomEvent)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),tk={current:void 0},tF=tl({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!tk.current){let t=new tj({});t.mount(window),t.setOptions({layoutScroll:!0}),tk.current=t}return tk.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});t.s(["HTMLProjectionNode",0,tF],515990);let tI={pan:{Feature:i.PanGesture},drag:{Feature:e.DragGesture,ProjectionNode:tF,MeasureLayout:s.MeasureLayout}};t.s(["drag",0,tI],420947)},682868,t=>{"use strict";var e=t.i(838976),i=t.i(610927),s=t.i(488133);function n(t,e){let i=(0,s.resolveElements)(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}var o=t.i(907953),r=t.i(136725);function a(t,e,i){let{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=s["onHover"+i];n&&o.frame.postRender(()=>n(e,(0,r.extractEventInfo)(e)))}class l extends e.Feature{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,s={}){let[o,r,a]=n(t,s);return o.forEach(t=>{let s,n=!1,o=!1,a=e=>{s&&(s(e),s=void 0),t.removeEventListener("pointerleave",h)},l=t=>{n=!1,window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",l),o&&(o=!1,a(t))},h=t=>{if("touch"!==t.pointerType){if(n){o=!0;return}a(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||(0,i.isDragActive)())return;o=!1;let a=e(t,n);"function"==typeof a&&(s=a,t.addEventListener("pointerleave",h,r))},r),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",l,r),window.addEventListener("pointercancel",l,r)},r)}),a}(t,(t,e)=>(a(this.node,e,"Start"),t=>a(this.node,t,"End"))))}unmount(){}}var h=e,u=t.i(508821),c=t.i(815645);class d extends h.Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}
1mount(){this.unmount=(0,c.pipe)((0,u.addDomEvent)(this.node.current,"focus",()=>this.onFocus()),(0,u.addDomEvent)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var m=e,p=t.i(261427);let f=(t,e)=>!!e&&(t===e||f(t,e.parentElement));var v=t.i(658904),y=t.i(996584);let g=new WeakSet;function x(t){return e=>{"Enter"===e.key&&t(e)}}function P(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function E(t){return(0,v.isPrimaryPointer)(t)&&!(0,i.isDragActive)()}let T=new WeakSet;function w(t,e,i){let{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=s["onTap"+("End"===i?"":i)];n&&o.frame.postRender(()=>n(e,(0,r.extractEventInfo)(e)))}class S extends m.Feature{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[s,o,r]=n(t,i),a=t=>{let s=t.currentTarget;if(!E(t)||T.has(t))return;g.add(s),i.stopPropagation&&T.add(t);let n=e(s,t),r=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),g.has(s)&&g.delete(s),E(t)&&"function"==typeof n&&n(t,{success:e})},a=t=>{r(t,s===window||s===document||i.useGlobalTarget||f(s,t.target))},l=t=>{r(t,!1)};window.addEventListener("pointerup",a,o),window.addEventListener("pointercancel",l,o)};return s.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",a,o),(0,p.isHTMLElement)(t)&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let s=x(()=>{if(g.has(i))return;P(i,"down");let t=x(()=>{P(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>P(i,"cancel"),e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)})(t,o)),(0,y.isElementKeyboardAccessible)(t)||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(w(this.node,e,"Start"),(t,{success:e})=>w(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}var A=e;let D=new WeakMap,C=new WeakMap,L=t=>{let e=D.get(t.target);e&&e(t)},V=t=>{t.forEach(L)},b={some:0,all:1};class R extends A.Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:s,margin:n,amount:o="some",once:r}=i,a={root:s?s.current:void 0,rootMargin:n,threshold:"number"==typeof o?o:b[o]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),n=e?i:s;n&&n(t)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let i=t||document;C.has(i)||C.set(i,{});let s=C.get(i),n=JSON.stringify(e);return s[n]||(s[n]=new IntersectionObserver(V,{root:t,...e})),s[n]}(a),D.set(t,l),e.observe(t),()=>{D.delete(t),e.unobserve(t)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}t.s(["gestureAnimations",0,{inView:{Feature:R},tap:{Feature:S},focus:{Feature:d},hover:{Feature:l}}],682868)},763743,t=>{"use strict";var e=t.i(515990),i=t.i(373642);let s={layout:{ProjectionNode:e.HTMLProjectionNode,MeasureLayout:i.MeasureLayout}};t.s(["layout",0,s])},373642,927048,t=>{"use strict";var e=t.i(266201),i=t.i(584047),s=t.i(907953),n=t.i(354012),o=t.i(74544),r=t.i(126309),a=t.i(3379),l=t.i(455243);let h=!1;class u extends o.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:s,layoutId:n}=this.props,{projection:o}=t;o&&(e.group&&e.group.add(o),s&&s.register&&n&&s.register(o),h&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),i.globalProjectionState.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:o}=this.props,{projection:r}=i;return r&&(r.isPresent=o,t.layoutDependency!==e&&r.setOptions({...r.options,layoutDependency:e}),h=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==o?r.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?r.promote():r.relegate()||s.frame.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),n.microtask.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;h=!0,s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}t.s(["MeasureLayout",0,function(t){let[i,s]=(0,r.usePresence)(),n=(0,o.useContext)(a.LayoutGroupContext);return(0,e.jsx)(u,{...t,layoutGroup:n,switchLayoutGroup:(0,o.useContext)(l.SwitchLayoutGroupContext),isPresent:i,safeToRemove:s})}],373642);var c=t.i(720802);t.i(633836),t.s(["delay",0,function(t,e){let i=c.time.now(),n=({timestamp:o})=>{let r=o-i;r>=e&&((0,s.cancelFrame)(n),t(r-e))};return s.frame.setup(n,!0),()=>(0,s.cancelFrame)(n)}],927048)},99639,829663,t=>{"use strict";var e=t.i(481103);let i={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},s=!1;function n(){return!function(){if(s)return;let t={};for(let e in i)t[e]={isEnabled:t=>i[e].some(e=>!!t[e])};(0,e.setFeatureDefinitions)(t),s=!0}(),(0,e.getFeatureDefinitions)()}t.s(["getInitializedFeatureDefinitions",0,n],829663),t.s(["loadFeatures",0,function(t){let i=n();for(let e in t)i[e]={...i[e],...t[e]};(0,e.setFeatureDefinitions)(i)}],99639)},993722,t=>{"use strict";var e=t.i(266201),i=t.i(74544),s=t.i(3379),n=t.i(529087),o=t.i(451347),r=t.i(685432),a=t.i(498412),l=t.i(750692),h=t.i(797002),u=t.i(648257
1),c=t.i(851148),d=t.i(829663),m=t.i(99639),p=t.i(582307),f=t.i(305863),v=t.i(554653),y=t.i(343777),g=t.i(455243),x=t.i(494447),P=t.i(478146);t.s(["createMotionComponent",0,function(t,{forwardMotionProps:E=!1,type:T}={},w,S){w&&(0,m.loadFeatures)(w);let A=T?"svg"===T:(0,h.isSVGComponent)(t),D=A?c.useSVGVisualState:u.useHTMLVisualState;function C(h,u){let c,m={...(0,i.useContext)(o.MotionConfigContext),...h,layoutId:function({layoutId:t}){let e=(0,i.useContext)(s.LayoutGroupContext).id;return e&&void 0!==t?e+"-"+t:t}(h)},{isStatic:p}=m,T=(0,a.useCreateMotionContext)(h),w=D(h,p);if(!p&&"u">typeof window){(0,i.useContext)(n.LazyContext).strict;let e=function(t){let{drag:e,layout:i}=(0,d.getInitializedFeatureDefinitions)();if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(m);c=e.MeasureLayout,T.visualElement=function(t,e,s,a,l,h){let{visualElement:u}=(0,i.useContext)(r.MotionContext),c=(0,i.useContext)(n.LazyContext),d=(0,i.useContext)(y.PresenceContext),m=(0,i.useContext)(o.MotionConfigContext),p=m.reducedMotion,f=m.skipAnimations,E=(0,i.useRef)(null),T=(0,i.useRef)(!1);a=a||c.renderer,!E.current&&a&&(E.current=a(t,{visualState:e,parent:u,props:s,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:p,skipAnimations:f,isSVG:h}),T.current&&E.current&&(E.current.manuallyAnimateOnMount=!0));let w=E.current,S=(0,i.useContext)(g.SwitchLayoutGroupContext);w&&!w.projection&&l&&("html"===w.type||"svg"===w.type)&&function(t,e,i,s){let{layoutId:n,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:h,layoutAnchor:u,layoutCrossfade:c}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:n,layout:o,alwaysMeasureLayout:!!r||a&&(0,x.isRefObject)(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:s,crossfade:c,layoutScroll:l,layoutRoot:h,layoutAnchor:u})}(E.current,s,l,S);let A=(0,i.useRef)(!1);(0,i.useInsertionEffect)(()=>{w&&A.current&&w.update(s,d)});let D=s[v.optimizedAppearDataAttribute],C=(0,i.useRef)(!!D&&"u">typeof window&&!window.MotionHandoffIsComplete?.(D)&&window.MotionHasOptimisedAnimation?.(D));return(0,P.useIsomorphicLayoutEffect)(()=>{T.current=!0,w&&(A.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),w.scheduleRenderMicrotask(),C.current&&w.animationState&&w.animationState.animateChanges())}),(0,i.useEffect)(()=>{w&&(!C.current&&w.animationState&&w.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(D)}),C.current=!1),w.enteringChildren=void 0)}),w}(t,w,m,S,e.ProjectionNode,A)}return(0,e.jsxs)(r.MotionContext.Provider,{value:T,children:[c&&T.visualElement?(0,e.jsx)(c,{visualElement:T.visualElement,...m}):null,(0,l.useRender)(t,h,(0,f.useMotionRef)(w,T.visualElement,u),w,p,E,A)]})}C.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let L=(0,i.forwardRef)(C);return L[p.motionComponentSymbol]=t,L}],993722)},582307,305863,t=>{"use strict";let e=Symbol.for("motionComponentSymbol");t.s(["motionComponentSymbol",0,e],582307);var i=t.i(74544);t.s(["useMotionRef",0,function(t,e,s){let n=(0,i.useRef)(s);(0,i.useInsertionEffect)(()=>{n.current=s});let o=(0,i.useRef)(null);return(0,i.useCallback)(i=>{i&&t.onMount?.(i),e&&(i?e.mount(i):e.unmount());let s=n.current;if("function"==typeof s)if(i){let t=s(i);"function"==typeof t&&(o.current=t)}else o.current?(o.current(),o.current=null):s(i);else s&&(s.current=i)},[e])}],305863)},950564,797002,t=>{"use strict";var e=t.i(488257),i=t.i(882979),s=t.i(74544);let n=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function o(t){if("string"!=typeof t||t.includes("-"));else if(n.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}t.s(["isSVGComponent",0,o],797002),t.s(["createDomVisualElement",0,(t,n)=>n.isSVG??o(t)?new e.SVGVisualElement(n):new i.HTMLVisualElement(n,{allowProjection:t!==s.Fragment})],950564)},648257,851148,t=>{"use strict";var e=t.i(972889),i=t.i(474032),s=t.i(186645),n=t.i(508578),o=t.i(155458),r=t.i(74544),a=t.i(685432),l=t.i(343777),h=t.i(900893);let u=t=>(e,u)=>{let c=(0,r.useContext)(a.MotionContext),d=(0,r.useContext)(l.PresenceContext),m=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},r,a,l){return{latestValues:function(t,e,r,a){let l={},h=a(t,{});for(let t in h)l[t]=(0,i.resolveMotionValue)(h[t]);let{initial:u,animate:c}=t,d=(0,s.isControllingVariants)(t),m=(0,s.isVariantNode)(t);e&&m&&!d&&!1!==t.inherit&&(void 0===u&&(u=e.initial),void 0===c&&(c=e.animate));let p=!!r&&!1===r.initial,f=(p=p||!1===u)?c:u;if(f&&"boolean"!=typeof f&&!(0,n.isAnimationControls)(f)){let e=Array.isArray(f)?f:[f];for(let i=0;i<e.length;i++){let s=(0,o.resolveVariantFromProps)(t,e[i]);if(s){let{transitionEnd:t,transition:e,...i}=s;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=p?e.length-1:0;e=e[t]}null!==e&&(l[t]=e)}for(let e in t)l[e]=t[e]}}}return l}(r,a,l,t),renderState:e()}})(t,e,c,d);return u?m():(0,h.useConstant)(m)};var c=t.i(425265);let d=u({scrapeMotionValuesFromProps:e.scrapeHTMLMotionValuesFromProps,createRenderState:c.createHtmlRenderState});t.s(["useHTMLVisualState",0,d],648257);var m=t.i(639190),m=m,p=t.i(166901);let f=u({scrapeMotionValuesFromProps:m.scrapeMotionValuesFromProps,createRenderState:p.createSvgRenderState});t.s(["useSVGVisualState",0,f],851148)},494447,t=>{"use strict";t.s(["isRefObject",0,function(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}])},900893,t=>{"use strict";var e=t.i(74544);t.s(["useConstant",0,function(t){let i=(0,e.useRef)(null);return null===i.current&&(i.current=t()),i.current}])},478146,t=>{"use strict";var e=t.i(74544);let i="u">typeof window?e.useLayoutEffect:e.useEffect;t.s(["useIsomorphicLayoutEffect",0,i],478146)},587935,508821,610927,166532,710401,996584,658904,136725,831890,321752,t=>{"use strict";function e(t,i,s,n={passive:!0}){return t.addEventListener(i,s,n),()=>t.removeEventListener(i,s)}t.s(["eachAxis",0,function(t){return[t("x"),t("y")]}],587935),t.s(["addDomEvent",0,e],508821);let i={x:!1,y:!1};t.s(["isDragActive",0,function(){return i.x||i.y},"isDragging",0,i],610927),t.s(["setDragLock",0,function(t){if("x"===t||"y"===t)if(i[t])return null;else return i[t]=!0,()=>{i[t]=!1};return i.x||i.y?null:(i.x=i.y=!0,()=>{i.x=i.y=!1})}],166532);var s=t.i(341330);function n(t){return t.max-t.min}function o(t,e,i,r=.5){t.origin=r,t.originPoint=(0,s.mixNumber)(e.min,e.max,t.origin),t.scale=n(i)/n(e),t.translate=(0,s.mixNumber)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function r(t,e,i,o=0){t.min=(o?(0,s.mixNumber)(i.min,i.max,o):i.min)+e.min,t.max=t.min+n(e)}function a(t,e,i,o=0){let r=o?(0,s.mixNumber)(i.min,i.max,o):i.min;t.min=e.min-r,t.max=t.min+n(e)}
1t.s(["calcBoxDelta",0,function(t,e,i,s){o(t.x,e.x,i.x,s?s.originX:void 0),o(t.y,e.y,i.y,s?s.originY:void 0)},"calcLength",0,n,"calcRelativeBox",0,function(t,e,i,s){r(t.x,e.x,i.x,s?.x),r(t.y,e.y,i.y,s?.y)},"calcRelativePosition",0,function(t,e,i,s){a(t.x,e.x,i.x,s?.x),a(t.y,e.y,i.y,s?.y)},"isNear",0,function(t,e,i){return Math.abs(t-e)<=i}],710401);let l=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),h=new Set(["INPUT","SELECT","TEXTAREA"]);t.s(["isElementKeyboardAccessible",0,function(t){return l.has(t.tagName)||!0===t.isContentEditable},"isElementTextInput",0,function(t){return h.has(t.tagName)||!0===t.isContentEditable}],996584);let u=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function c(t){return{point:{x:t.pageX,y:t.pageY}}}t.s(["isPrimaryPointer",0,u],658904);let d=t=>e=>u(e)&&t(e,c(e));t.s(["addPointerInfo",0,d,"extractEventInfo",0,c],136725),t.s(["addPointerEvent",0,function(t,i,s,n){return e(t,i,d(s),n)}],831890),t.s(["getContextWindow",0,({current:t})=>t?t.ownerDocument.defaultView:null],321752)},838976,t=>{"use strict";t.s(["Feature",0,class{constructor(t){this.isMounted=!1,this.node=t}update(){}}])},474032,t=>{"use strict";var e=t.i(350764);t.s(["resolveMotionValue",0,function(t){return(0,e.isMotionValue)(t)?t.get():t}])}]);
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.