try{let t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="31381938-2c63-4820-b6fa-cae2b584fbd0",t._sentryDebugIdIdentifier="sentry-dbid-31381938-2c63-4820-b6fa-cae2b584fbd0")}catch(t){}{let t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[new t.Error().stack]=Object.assign({},t._sentryModuleMetadata[new t.Error().stack],{"_sentryBundlerPluginAppKey:anthropic-apps":!0})}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[59597],{0x1292745:(t,e,i)=>{i.d(e,{A:()=>r});var n=i(0x13dcc0bcd);let s=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function r(t,e,i,r){return t===e&&i===r?n.l:n=>0===n||1===n?n:s(function(t,e,i,n,r){let a,o,l=0;do(a=s(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(a)>1e-7&&++l<12);return o}(n,0,1,t,i),e,r)}},0x2b0750d:(t,e,i)=>{i.d(e,{G:()=>u});var n=i(0x1f4befcd5),s=i(0x13dcc0bcd),r=i(0x18cfabf95),a=i(0x1a09ceaf0),o=i(0x16c033280),l=i(0x1d22f7b0c),h=i(0x12080fe83);function u(t,e,{clamp:i=!0,ease:d,mixer:c}={}){let p=t.length;if((0,a.V)(p===e.length,"Both input and output ranges must be the same length"),1===p)return()=>e[0];if(2===p&&e[0]===e[1])return()=>e[1];let f=t[0]===t[1];t[0]>t[p-1]&&(t=[...t].reverse(),e=[...e].reverse());let m=function(t,e,i){let a=[],o=i||n.W.mix||h.j,l=t.length-1;for(let i=0;i{if(f&&i1)for(;nx((0,l.q)(t[0],t[p-1],e)):x}},0x96354b5:(t,e,i)=>{i.d(e,{s:()=>g});var n=i(0x18cfabf95),s=i(0x1d22f7b0c),r=i(0x1f9411011),a=i(0x306f89df),o=i(0x1c117d85e),l=i(0x12080fe83),h=i(0x47eee5e1);let u=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>h.Gt.update(e,t),stop:()=>(0,h.WG)(e),now:()=>h.uv.isProcessing?h.uv.timestamp:a.k.now()}};var d=i(0x605c17d4),c=i(0xa966e128),p=i(0x120b487d8),f=i(0x16fabc2cc),m=i(0x1ca153f46),v=i(0x212415f50);let x=t=>t/100;class g extends v.q{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==a.k.now()&&this.tick(a.k.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},o.q.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;(0,m.E)(t);let{type:e=c.i,repeat:i=0,repeatDelay:s=0,repeatType:r,velocity:a=0}=t,{keyframes:o}=t,h=e||c.i;h!==c.i&&"number"!=typeof o[0]&&(this.mixKeyframes=(0,n.F)(x,(0,l.j)(o[0],o[1])),o=[0,100]);let u=h({...t,keyframes:o});"mirror"===r&&(this.mirroredGenerator=h({...t,keyframes:[...o].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=(0,p.t)(u));let{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=u}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:n,mixKeyframes:r,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:l}=this;if(null===this.startTime)return i.next(0);let{delay:h=0,keyframes:u,repeat:c,repeatType:p,repeatDelay:m,type:v,onUpdate:x,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let y=this.currentTime-h*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?y<0:y>n;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let w=this.currentTime,T=i;if(c){let t=Math.min(this.currentTime,n)/o,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/o)):"mirror"===p&&(T=a)),w=(0,s.q)(0,1,i)*o}let P=b?{done:!1,value:u[0]}:T.next(w);r&&(P.value=r(P.value));let{done:S}=P;b||null===l||(S=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let A=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return A&&v!==d.B&&(P.value=(0,f.X)(u,this.options,g,this.speed)),x&&x(P.value),A&&this.finish(),P}then(t,e){return this.finished.then(t,e)}get duration(){return(0,r.X)(this.calculatedDuration)}get time(){return(0,r.X)(this.currentTime)}set time(t){t=(0,r.f)(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(a.k.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,r.X)(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=u,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(a.k.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,o.q.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}},0xa8c265d:(t,e,i)=>{i.d(e,{O:()=>h});var n=i(0x906d2ce4),s=i(0x2192e0274);let r=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var a=i(0xd8aaa03d);let o={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},l=n.U.length;function h(t,e,i){let{style:h,vars:u,transformOrigin:d}=t,c=!1,p=!1;for(let t in e){let i=e[t];if(n.f.has(t)){c=!0;continue}if((0,s.j)(t)){u[t]=i;continue}{let e=r(i,a.W[t]);t.startsWith("origin")?(p=!0,d[t]=e):h[t]=e}}if(!e.transform&&(c||i?h.transform=function(t,e,i){let s="",h=!0;for(let u=0;u{i.d(e,{l:()=>p});var n=i(0x906d2ce4),s=i(0x14bccb24),r=i(0xcd873b40),a=i(0x22b972e2e),o=i(0x1bdddd3c0),l=i(0x19fd95f85);let h=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);var u=i(0x59575f91),d=i(0x21b594d82),c=i(0x178c2fee5);class p extends a.b{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=r.ge}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(n.f.has(e)){let t=(0,s.D)(e);return t&&t.default||0}return e=h.has(e)?e:(0,o.I)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return(0,c.x)(t,e,i)}build(t,e,i){(0,l.B)(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in(0,d.e)(t,e,void 0,n),e.attrs)t.setAttribute(h.has(i)?i:(0,o.I)(i),e.attrs[i])}mount(t){this.isSVGTag=(0,u.n)(t.tagName),super.mount(t)}}},0x12db70c5:(t,e,i)=>{i.d(e,{Z:()=>s});var n=i(0xb248f5c7);function s(t){let e=[0];return(0,n.f)(e,t.length-1),e}},0x14bccb24:(t,e,i)=>{i.d(e,{D:()=>a});var n=i(0xd7c9315a),s=i(0x1efc28985);let r={...i(0xd8aaa03d).W,color:n.y,backgroundColor:n.y,outlineColor:n.y,fill:n.y,stroke:n.y,borderColor:n.y,borderTopColor:n.y,borderRightColor:n.y,borderBottomColor:n.y,borderLeftColor:n.y,filter:s.p,WebkitFilter:s.p},a=t=>r[t]},0x18c2bb2d:(t,e,i)=>{i.d(e,{P:()=>iT});var n,s,r=i(0x25080642),a=i(0x104a60315),o=i(0x156f63430);function l(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;nPromise.all(e.map(({animation:e,options:i})=>(0,a._)(t,e,i))),i=v(),n=!0,s=e=>(i,n)=>{let s=(0,c.K)(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function m(a){let{props:m}=t,v=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;tb&&f,M=!1,k=Array.isArray(c)?c:[c],E=k.reduce(s(u),{});!1===P&&(E={});let{prevResolvedValues:D={}}=d,C={...D,...E},R=e=>{V=!0,g.has(e)&&(M=!0,g.delete(e)),d.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in C){let e=E[t],i=D[t];if(!y.hasOwnProperty(t))((0,o.p)(e)&&(0,o.p)(i)?l(e,i):e===i)?void 0!==e&&g.has(t)?R(t):d.protectedKeys[t]=!0:null!=e?R(t):g.add(t)}d.prevProp=c,d.prevResolvedValues=E,d.isActive&&(y={...y,...E}),n&&t.blockInitialAnimation&&(V=!1);let j=!(S&&A)||M;V&&j&&x.push(...k.map(t=>({animation:t,options:{type:u}})))}if(g.size){let e={};if("boolean"!=typeof m.initial){let i=(0,c.K)(t,Array.isArray(m.initial)?m.initial[0]:m.initial);i&&i.transition&&(e.transition=i.transition)}g.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),x.push({animation:e})}let P=!!x.length;return n&&(!1===m.initial||m.initial===m.animate)&&!t.manuallyAnimateOnMount&&(P=!1),n=!1,P?e(x):Promise.resolve()}return{animateChanges:m,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let s=m(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=v(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,r.N)(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?.()}}let y=0;class b extends x{constructor(){super(...arguments),this.id=y++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}var w=i(0x13dcc0bcd);let T={x:!1,y:!1};var P=i(0x9d4ae1ac),S=i(0x47eee5e1),A=i(421172e3),V=i(0x1a09ceaf0),M=i(0x1c9b246e9);function k(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let E=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function D(t){return{point:{x:t.pageX,y:t.pageY}}}function C(t,e,i,n){return k(t,e,t=>E(t)&&i(t,D(t)),n)}var R=i(0x18666c88a);function j(t){return t.max-t.min}function B(t,e,i,n=.5){t.origin=n,t.originPoint=(0,A.k)(e.min,e.max,t.origin),t.scale=j(i)/j(e),t.translate=(0,A.k)(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 L(t,e,i,n){B(t.x,e.x,i.x,n?n.originX:void 0),B(t.y,e.y,i.y,n?n.originY:void 0)}function F(t,e,i){t.min=i.min+e.min,t.max=t.min+j(e)}function O(t,e,i){t.min=e.min-i.min,t.max=t.min+j(e)}function U(t,e,i){O(t.x,e.x,i.x),O(t.y,e.y,i.y)}var I=i(0xcd873b40);function W(t){return[t("x"),t("y")]}var $=i(0x1819013cb);let N=({current:t})=>t?t.ownerDocument.defaultView:null;function q(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var G=i(0x12cc98861),X=i(0x18cfabf95),K=i(0x1f9411011);let H=(t,e)=>Math.abs(t-e);class Y{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=_(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(H(t.x,e.x)**2+H(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:s}=S.uv;this.history.push({...n,timestamp:s});let{onStart:r,onMove:a}=this.handlers;e||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=z(e,this.transformPagePoint),S.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=_("pointercancel"===t.type?this.lastMoveEventInfo:z(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!E(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let r=z(D(t),this.transformPagePoint),{point:a}=r,{timestamp:o}=S.uv;this.history=[{...a,timestamp:o}];let{onSessionStart:l}=e;l&&l(t,_(r,this.history)),this.removeListeners=(0,X.F)(C(this.contextWindow,"pointermove",this.handlePointerMove),C(this.contextWindow,"pointerup",this.handlePointerUp),C(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,S.WG)(this.updatePoint)}}function z(t,e){return e?{point:e(t.point)}:t}function Q(t,e){return{x:t.x-e.x,y:t.y-e.y}}function _({point:t},e){return{point:t,delta:Q(t,Z(e)),offset:Q(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,s=Z(t);for(;i>=0&&(n=t[i],!(s.timestamp-n.timestamp>(0,K.f)(.1)));)i--;if(!n)return{x:0,y:0};let r=(0,K.X)(s.timestamp-n.timestamp);if(0===r)return{x:0,y:0};let a={x:(s.x-n.x)/r,y:(s.y-n.y)/r};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e,.1)}}function Z(t){return t[t.length-1]}var J=i(0x16c033280),tt=i(0x1d22f7b0c);function te(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 ti(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(D(t).point)},s=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(T[t])return null;else return T[t]=!0,()=>{T[t]=!1};return T.x||T.y?null:(T.x=T.y=!0,()=>{T.x=T.y=!1})}(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),W(t=>{let e=this.getAxisMotionValue(t).get()||0;if(P.KN.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=j(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&S.Gt.postRender(()=>s(t,e)),(0,G.g)(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},r=(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=e;if(n&&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&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),r&&r(t,e)},a=(t,e)=>this.stop(t,e),o=()=>W(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play()),{dragSnapToOrigin:l}=this.getProps();this.panSession=new Y(t,{onSessionStart:n,onStart:s,onMove:r,onSessionEnd:a,resumeAnimation:o},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:N(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:s}=this.getProps();s&&S.Gt.postRender(()=>s(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!to(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&ti&&(t=n?(0,A.k)(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}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,n=this.constraints;t&&q(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:te(t.x,i,s),y:te(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:tn(t,"left","right"),y:tn(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&W(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!q(e))return!1;let n=e.current;(0,V.V)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let r=(0,$.L)(n,s.root,this.visualElement.getTransformPagePoint()),a=(t=s.layout.layoutBox,{x:ti(t.x,r.x),y:ti(t.y,r.y)});if(i){let t=i((0,R.pA)(a));this.hasMutatedConstraints=!!t,t&&(a=(0,R.FY)(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(W(a=>{if(!to(a,e,this.currentDirection))return;let l=o&&o[a]||{};r&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(a,h)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,G.g)(this.visualElement,t),i.start((0,M.f)(t,i,0,e,this.visualElement,!1))}stopAnimation(){W(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){W(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){W(e=>{let{drag:i}=this.getProps();if(!to(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e];s.set(t[e]-(0,A.k)(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!q(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};W(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=j(t),s=j(e);return s>n?i=(0,J.q)(e.min,e.max-n,t.min):n>s&&(i=(0,J.q)(t.min,t.max-s,e.min)),(0,tt.q)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),W(e=>{if(!to(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set((0,A.k)(s,r,n[e]))})}addListeners(){if(!this.visualElement.current)return;tr.set(this.visualElement,this);let t=C(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();q(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),S.Gt.read(e);let s=k(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(W(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),t(),n(),r&&r()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:a}}}function to(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class tl extends x{constructor(t){super(t),this.removeGroupControls=w.l,this.removeListeners=w.l,this.controls=new ta(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||w.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let th=t=>(e,i)=>{t&&S.Gt.postRender(()=>t(e,i))};class tu extends x{constructor(){super(...arguments),this.removePointerDownListener=w.l}onPointerDown(t){this.session=new Y(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:N(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:th(t),onStart:th(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&S.Gt.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=C(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var td=i(0x22102fd88);let{schedule:tc}=(0,i(0x1bb5981f5).I)(queueMicrotask,!1);var tp=i(0xfc89b4a4),tf=i(0x82dd8d48),tm=i(0x3da18083);let tv=(0,tp.createContext)({}),tx={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function tg(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let ty={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!P.px.test(t))return t;else t=parseFloat(t);let i=tg(t,e.target.x),n=tg(t,e.target.y);return`${i}% ${n}%`}};var tb=i(0x1f6123f69),tw=i(0x1f4506c0b);class tT extends tp.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;(0,tw.$)(tS),s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),tx.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:r}=i;return r&&(r.isPresent=s,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?r.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?r.promote():r.relegate()||S.Gt.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tc.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function tP(t){let[e,i]=(0,tf.xQ)(),n=(0,tp.useContext)(tm.L);return(0,td.jsx)(tT,{...t,layoutGroup:n,switchLayoutGroup:(0,tp.useContext)(tv),isPresent:e,safeToRemove:i})}let tS={borderRadius:{...ty,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ty,borderTopRightRadius:ty,borderBottomLeftRadius:ty,borderBottomRightRadius:ty,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tb.f.parse(t);if(n.length>5)return t;let s=tb.f.createTransformer(t),r=+("number"!=typeof n[0]),a=i.x.scale*e.x,o=i.y.scale*e.y;n[0+r]/=a,n[1+r]/=o;let l=(0,A.k)(a,o,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}};var tA=i(0x13b665ef2),tV=i(0x75080ab8),tM=i(0x2e5b02b5),tk=i(0x126d43323),tE=i(0x306f89df),tD=i(0x1c117d85e),tC=i(0x8addb808),tR=i(0x80775290),tj=i(0x23c1714f6),tB=i(0x26a02d08),tL=i(0xfa2c4b4e);let tF=(t,e)=>t.depth-e.depth;class tO{constructor(){this.children=[],this.isDirty=!1}add(t){(0,tL.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,tL.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(tF),this.isDirty=!1,this.children.forEach(t)}}var tU=i(0x1bd011104),tI=i(0x223a664e1);function tW(t){return(0,tI.S)(t)?t.get():t}var t$=i(0xe5cd140e);let tN=["TopLeft","TopRight","BottomLeft","BottomRight"],tq=tN.length,tG=t=>"string"==typeof t?parseFloat(t):t,tX=t=>"number"==typeof t||P.px.test(t);function tK(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let tH=tz(0,.5,t$.yT),tY=tz(.5,.95,w.l);function tz(t,e,i){return n=>ne?1:i((0,J.q)(t,e,n))}function tQ(t,e){t.min=e.min,t.max=e.max}function t_(t,e){tQ(t.x,e.x),tQ(t.y,e.y)}function tZ(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var tJ=i(0x106e508b5);function t0(t,e,i,n,s){return t-=e,t=(0,tJ.hq)(t,1/i,n),void 0!==s&&(t=(0,tJ.hq)(t,1/s,n)),t}function t1(t,e,[i,n,s],r,a){!function(t,e=0,i=1,n=.5,s,r=t,a=t){if(P.KN.test(e)&&(e=parseFloat(e),e=(0,A.k)(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=(0,A.k)(r.min,r.max,n);t===r&&(o-=e),t.min=t0(t.min,e,i,o,s),t.max=t0(t.max,e,i,o,s)}(t,e[i],e[n],e[s],e.scale,r,a)}let t2=["x","scaleX","originX"],t9=["y","scaleY","originY"];function t5(t,e,i,n){t1(t.x,e,t2,i?i.x:void 0,n?n.x:void 0),t1(t.y,e,t9,i?i.y:void 0,n?n.y:void 0)}function t4(t){return 0===t.translate&&1===t.scale}function t3(t){return t4(t.x)&&t4(t.y)}function t6(t,e){return t.min===e.min&&t.max===e.max}function t8(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function t7(t,e){return t8(t.x,e.x)&&t8(t.y,e.y)}function et(t){return j(t.x)/j(t.y)}function ee(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class ei{constructor(){this.members=[]}add(t){(0,tL.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,tL.Ai)(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){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var en=i(0x96b70f50);let es={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},er=["","X","Y","Z"],ea={visibility:"hidden"},eo=0;function el(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function eh({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=eo++,this.animationId=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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,tA.Q.value&&(es.nodes=es.calculatedTargetDeltas=es.calculatedProjections=0),this.nodes.forEach(ec),this.nodes.forEach(ey),this.nodes.forEach(eb),this.nodes.forEach(ep),tA.Q.addProjectionMetrics&&tA.Q.addProjectionMetrics(es)},this.resolvedRelativeTargetAt=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;tthis.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=(0,tU.c)(n,250),tx.hasAnimatedSinceResize&&(tx.hasAnimatedSinceResize=!1,this.nodes.forEach(eg))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||eV,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=s.getProps(),l=!this.targetLayout||!t7(this.targetLayout,n),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,h);let e={...(0,tk.r)(r,"layout"),onPlay:a,onComplete:o};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||eg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}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,S.WG)(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(ew),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 n=(0,tB.P)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",S.Gt,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||j(this.snapshot.measuredBox.x)||j(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{let n=e/1e3;if(eP(a.x,t.x,n),eP(a.y,t.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,c,p,f,m,v;U(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,m=o,v=n,eS(p.x,f.x,m.x,v),eS(p.y,f.y,m.y,v),i&&(h=this.relativeTarget,c=i,t6(h.x,c.x)&&t6(h.y,c.y))&&(this.isProjectionDirty=!1),i||(i=(0,I.ge)()),t_(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,n,s,r){s?(t.opacity=(0,A.k)(0,i.opacity??1,tH(n)),t.opacityExit=(0,A.k)(e.opacity??1,0,tY(n))):r&&(t.opacity=(0,A.k)(e.opacity??1,i.opacity??1,n));for(let s=0;s{tx.hasAnimatedSinceResize=!0,tD.q.layout++,this.motionValue||(this.motionValue=(0,tC.OQ)(0)),this.currentAnimation=(0,tj.z)(this.motionValue,[0,1e3],{...t,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{tD.q.layout--},onComplete:()=>{tD.q.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(!1)),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&eD(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,I.ge)();let e=j(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=j(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}t_(e,i),(0,tJ.Ww)(e,s),L(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new ei),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;return 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 n=this.getStack();n&&n.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 n={};i.z&&el("z",t,n,this.animationValues);for(let e=0;et.currentAnimation?.stop(!1)),this.root.nodes.forEach(em),this.root.sharedNodes.clear()}}}function eu(t){t.updateLayout()}function ed(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,r=e.source!==t.layout.source;"size"===s?W(t=>{let n=r?e.measuredBox[t]:e.layoutBox[t],s=j(n);n.min=i[t].min,n.max=n.min+s}):eD(s,e.layoutBox,i)&&W(n=>{let s=r?e.measuredBox[n]:e.layoutBox[n],a=j(i[n]);s.max=s.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+a)});let a=(0,I.xU)();L(a,i,e.layoutBox);let o=(0,I.xU)();r?L(o,t.applyTransform(n,!0),e.measuredBox):L(o,i,e.layoutBox);let l=!t3(a),h=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let a=(0,I.ge)();U(a,e.layoutBox,s.layoutBox);let o=(0,I.ge)();U(o,i,r.layoutBox),t7(a,o)||(h=!0),n.options.layoutRoot&&(t.relativeTarget=o,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function ec(t){tA.Q.value&&es.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 ep(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ef(t){t.clearSnapshot()}function em(t){t.clearMeasurements()}function ev(t){t.isLayoutDirty=!1}function ex(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function eg(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ey(t){t.resolveTargetDelta()}function eb(t){t.calcProjection()}function ew(t){t.resetSkewAndRotation()}function eT(t){t.removeLeadSnapshot()}function eP(t,e,i){t.translate=(0,A.k)(e.translate,0,i),t.scale=(0,A.k)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function eS(t,e,i,n){t.min=(0,A.k)(e.min,i.min,n),t.max=(0,A.k)(e.max,i.max,n)}function eA(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let eV={duration:.45,ease:[.4,0,.1,1]},eM=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ek=eM("applewebkit/")&&!eM("chrome/")?Math.round:w.l;function eE(t){t.min=ek(t.min),t.max=ek(t.max)}function eD(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(et(e)-et(i)))}function eC(t){return t!==t.root&&t.scroll?.wasRoot}let eR=eh({attachResizeListener:(t,e)=>k(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ej={current:void 0},eB=eh({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ej.current){let t=new eR({});t.mount(window),t.setOptions({layoutScroll:!0}),ej.current=t}return ej.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var eL=i(0x100c96acc);function eF(t,e){let i=(0,eL.K)(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function eO(t){return!("touch"===t.pointerType||T.x||T.y)}function eU(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&S.Gt.postRender(()=>s(e,D(e)))}class eI extends x{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=eF(t,i),a=t=>{if(!eO(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let r=t=>{eO(t)&&(n(t),i.removeEventListener("pointerleave",r))};i.addEventListener("pointerleave",r,s)};return n.forEach(t=>{t.addEventListener("pointerenter",a,s)}),r}(t,(t,e)=>(eU(this.node,e,"Start"),t=>eU(this.node,t,"End"))))}unmount(){}}class eW extends x{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)}mount(){this.unmount=(0,X.F)(k(this.node.current,"focus",()=>this.onFocus()),k(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var e$=i(0x91abc419);let eN=(t,e)=>!!e&&(t===e||eN(t,e.parentElement)),eq=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),eG=new WeakSet;function eX(t){return e=>{"Enter"===e.key&&t(e)}}function eK(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function eH(t){return E(t)&&!(T.x||T.y)}function eY(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&S.Gt.postRender(()=>s(e,D(e)))}class ez extends x{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=eF(t,i),a=t=>{let n=t.currentTarget;if(!eH(t))return;eG.add(n);let r=e(n,t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),eG.has(n)&&eG.delete(n),eH(t)&&"function"==typeof r&&r(t,{success:e})},o=t=>{a(t,n===window||n===document||i.useGlobalTarget||eN(n,t.target))},l=t=>{a(t,!1)};window.addEventListener("pointerup",o,s),window.addEventListener("pointercancel",l,s)};return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",a,s),(0,e$.s)(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=eX(()=>{if(eG.has(i))return;eK(i,"down");let t=eX(()=>{eK(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>eK(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s)),eq.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(eY(this.node,e,"Start"),(t,{success:e})=>eY(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let eQ=new WeakMap,e_=new WeakMap,eZ=t=>{let e=eQ.get(t.target);e&&e(t)},eJ=t=>{t.forEach(eZ)},e0={some:0,all:1};class e1 extends x{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:s}=t,r={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:e0[n]},a=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,s&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),r=e?i:n;r&&r(t)};var o=this.node.current;let l=function({root:t,...e}){let i=t||document;e_.has(i)||e_.set(i,{});let n=e_.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(eJ,{root:t,...e})),n[s]}(r);return eQ.set(o,a),l.observe(o),()=>{eQ.delete(o),l.unobserve(o)}}mount(){this.startObserver()}update(){if("undefined"==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(){}}let e2=(0,tp.createContext)({strict:!1});var e9=i(0x12991165e);let e5=(0,tp.createContext)({});var e4=i(0x495e45a7);function e3(t){return Array.isArray(t)?t.join(" "):t}var e6=i(0x1b50e7e52),e8=i(0x933366f4);let e7=Symbol.for("motionComponentSymbol");var it=i(0x60163b7e),ie=i(0x19ea297ff),ii=i(0x1907d0ef8),is=i(0x124f815f9),ir=i(0xa8c265d);let ia=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function io(t,e,i){for(let n in e)(0,tI.S)(e[n])||(0,is.z)(n,i)||(t[n]=e[n])}var il=i(0x19fd95f85);let ih=()=>({...ia(),attrs:{}});var iu=i(0x59575f91),id=i(0x224afcc47);let ic=["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 ip(t){if("string"!=typeof t||t.includes("-"));else if(ic.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var im=i(0x1adad6515),iv=i(0x251c06d07);let ix=t=>(e,i)=>{let n=(0,tp.useContext)(e5),s=(0,tp.useContext)(ie.t),a=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,s){return{latestValues:function(t,e,i,n){let s={},a=n(t,{});for(let t in a)s[t]=tW(a[t]);let{initial:o,animate:l}=t,h=(0,e4.e)(t),u=(0,e4.O)(t);e&&u&&!h&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===l&&(l=e.animate));let d=!!i&&!1===i.initial,c=(d=d||!1===o)?l:o;if(c&&"boolean"!=typeof c&&!(0,r.N)(c)){let e=Array.isArray(c)?c:[c];for(let i=0;it(...e),{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}((n={animation:{Feature:g},exit:{Feature:b},inView:{Feature:e1},tap:{Feature:ez},focus:{Feature:eW},hover:{Feature:eI},pan:{Feature:tu},drag:{Feature:tl,ProjectionNode:eB,MeasureLayout:tP},layout:{ProjectionNode:eB,MeasureLayout:tP}},s=(t,e)=>ip(t)?new iw.l(e):new ib.M(e,{allowProjection:t!==tp.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function(t){var e,i;let{preloadedFeatures:n,createVisualElement:s,useRender:r,useVisualState:a,Component:o}=t;function l(t,e){var i;let n,l={...(0,tp.useContext)(e9.Q),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,tp.useContext)(tm.L).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:u}=l,d=function(t){let{initial:e,animate:i}=function(t,e){if((0,e4.e)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,h.w)(e)?e:void 0,animate:(0,h.w)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,tp.useContext)(e5));return(0,tp.useMemo)(()=>({initial:e,animate:i}),[e3(e),e3(i)])}(t),c=a(t,u);if(!u&&e6.B){(0,tp.useContext)(e2).strict;let t=function(t){let{drag:e,layout:i}=e8.B;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(l);n=t.MeasureLayout,d.visualElement=function(t,e,i,n,s){let{visualElement:r}=(0,tp.useContext)(e5),a=(0,tp.useContext)(e2),o=(0,tp.useContext)(ie.t),l=(0,tp.useContext)(e9.Q).reducedMotion,h=(0,tp.useRef)(null);n=n||a.renderer,!h.current&&n&&(h.current=n(t,{visualState:e,parent:r,props:i,presenceContext:o,blockInitialAnimation:!!o&&!1===o.initial,reducedMotionConfig:l}));let u=h.current,d=(0,tp.useContext)(tv);u&&!u.projection&&s&&("html"===u.type||"svg"===u.type)&&function(t,e,i,n){let{layoutId:s,layout:r,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:h,layoutCrossfade:u}=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:s,layout:r,alwaysMeasureLayout:!!a||o&&q(o),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:l,layoutRoot:h})}(h.current,i,s,d);let c=(0,tp.useRef)(!1);(0,tp.useInsertionEffect)(()=>{u&&c.current&&u.update(i,o)});let p=i[it.n],f=(0,tp.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return(0,ii.E)(()=>{u&&(c.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),tc.render(u.render),f.current&&u.animationState&&u.animationState.animateChanges())}),(0,tp.useEffect)(()=>{u&&(!f.current&&u.animationState&&u.animationState.animateChanges(),f.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),f.current=!1))}),u}(o,c,l,s,t.ProjectionNode)}return(0,td.jsxs)(e5.Provider,{value:d,children:[n&&d.visualElement?(0,td.jsx)(n,{visualElement:d.visualElement,...l}):null,r(o,t,(i=d.visualElement,(0,tp.useCallback)(t=>{t&&c.onMount&&c.onMount(t),i&&(t?i.mount(t):i.unmount()),e&&("function"==typeof e?e(t):q(e)&&(e.current=t))},[i])),c,u,d.visualElement)]})}n&&function(t){for(let e in t)e8.B[e]={...e8.B[e],...t[e]}}(n),l.displayName="motion.".concat("string"==typeof o?o:"create(".concat(null!=(i=null!=(e=o.displayName)?e:o.name)?i:"",")"));let u=(0,tp.forwardRef)(l);return u[e7]=o,u}({...ip(t)?iy:ig,preloadedFeatures:n,useRender:function(t=!1){return(e,i,n,{latestValues:s},r)=>{let a=(ip(e)?function(t,e,i,n){let s=(0,tp.useMemo)(()=>{let i=ih();return(0,il.B)(i,e,(0,iu.n)(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};io(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return io(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,tp.useMemo)(()=>{let i=ia();return(0,ir.O)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(i,s,r,e),o=(0,id.J)(i,"string"==typeof e,t),l=e!==tp.Fragment?{...o,...a,ref:n}:{},{children:h}=i,u=(0,tp.useMemo)(()=>(0,tI.S)(h)?h.get():h,[h]);return(0,tp.createElement)(e,{...l,children:u})}}(e),createVisualElement:s,Component:t})}))},421172e3:(t,e,i)=>{i.d(e,{k:()=>n});let n=(t,e,i)=>t+(e-t)*i},0x208b374f:(t,e,i)=>{i.d(e,{D:()=>n});let n=t=>Array.isArray(t)&&"number"==typeof t[0]},0x25080642:(t,e,i)=>{i.d(e,{N:()=>n});function n(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}},0x26a02d08:(t,e,i)=>{i.d(e,{P:()=>s});var n=i(0x60163b7e);function s(t){return t.props[n.n]}},0x26cb3139:(t,e,i)=>{i.d(e,{X4:()=>r,ai:()=>s,hs:()=>a});var n=i(0x1d22f7b0c);let s={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},r={...s,transform:t=>(0,n.q)(0,1,t)},a={...s,default:1}},0x2e5b02b5:(t,e,i)=>{i.d(e,{h:()=>s});var n=i(0x75080ab8);function s(t){return(0,n.x)(t)&&"svg"===t.tagName}},0x306f89df:(t,e,i)=>{let n;i.d(e,{k:()=>o});var s=i(0x1f4befcd5),r=i(0x47eee5e1);function a(){n=void 0}let o={now:()=>(void 0===n&&o.set(r.uv.isProcessing||s.W.useManualTiming?r.uv.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(a)}}},0x3da18083:(t,e,i)=>{i.d(e,{L:()=>n});let n=(0,i(0xfc89b4a4).createContext)({})},0x47eee5e1:(t,e,i)=>{i.d(e,{Gt:()=>s,PP:()=>o,WG:()=>r,uv:()=>a});var n=i(0x13dcc0bcd);let{schedule:s,cancel:r,state:a,steps:o}=(0,i(0x1bb5981f5).I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.l,!0)},0x495e45a7:(t,e,i)=>{i.d(e,{O:()=>o,e:()=>a});var n=i(0x25080642),s=i(0x1391957c3),r=i(0x1abd7f84a);function a(t){return(0,n.N)(t.animate)||r._.some(e=>(0,s.w)(t[e]))}function o(t){return!!(a(t)||t.variants)}},0x5543ac4a:(t,e,i)=>{i.d(e,{E4:()=>o,Hr:()=>d,W9:()=>u});var n=i(0x9f29c6be),s=i(0x906d2ce4),r=i(0x26cb3139),a=i(0x9d4ae1ac);let o=t=>t===r.ai||t===a.px,l=new Set(["x","y","z"]),h=s.U.filter(t=>!l.has(t));function u(t){let e=[];return h.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}let d={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>(0,n.ry)(e,"x"),y:(t,{transform:e})=>(0,n.ry)(e,"y")};d.translateX=d.x,d.translateY=d.y},0x59575f91:(t,e,i)=>{i.d(e,{n:()=>n});let n=t=>"string"==typeof t&&"svg"===t.toLowerCase()},0x60163b7e:(t,e,i)=>{i.d(e,{n:()=>n});let n="data-"+(0,i(0x1bdddd3c0).I)("framerAppearId")},0x605c17d4:(t,e,i)=>{i.d(e,{B:()=>r});var n=i(0x957a3994),s=i(0x1d2c9d9d3);function r({keyframes:t,velocity:e=0,power:i=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:o=500,modifyTarget:l,min:h,max:u,restDelta:d=.5,restSpeed:c}){let p,f,m=t[0],v={done:!1,value:m},x=i*e,g=m+x,y=void 0===l?g:l(g);y!==g&&(x=y-m);let b=t=>-x*Math.exp(-t/r),w=t=>y+b(t),T=t=>{let e=b(t),i=w(t);v.done=Math.abs(e)<=d,v.value=v.done?y:i},P=t=>{let e;if(e=v.value,void 0!==h&&eu){var i;p=t,f=(0,n.o)({keyframes:[v.value,(i=v.value,void 0===h?u:void 0===u||Math.abs(h-i){let e=!1;return(f||void 0!==p||(e=!0,T(t),P(t)),void 0!==p&&t>=p)?f.next(t-p):(e||T(t),v)}}}},0x6333036b:(t,e,i)=>{i.d(e,{M:()=>d});var n=i(0x906d2ce4),s=i(0x9f29c6be),r=i(0x2192e0274),a=i(0x1819013cb),o=i(0x22b972e2e),l=i(0xa8c265d),h=i(0x21b594d82),u=i(0x128199244);class d extends o.b{constructor(){super(...arguments),this.type="html",this.renderInstance=h.e}readValueFromInstance(t,e){if(n.f.has(e))return this.projection?.isProjecting?(0,s.zs)(e):(0,s.Ib)(t,e);{let i=window.getComputedStyle(t),n=((0,r.j)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,a.m)(t,e)}build(t,e,i){(0,l.O)(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return(0,u.x)(t,e,i)}}},0x746ee7b8:(t,e,i)=>{i.d(e,{U:()=>a});var n=i(0x8addb808),s=i(0x156f63430),r=i(0xce36aa29);function a(t,e){let{transitionEnd:i={},transition:a={},...o}=(0,r.K)(t,e)||{};for(let e in o={...o,...i}){var l;let i=(l=o[e],(0,s.p)(l)?l[l.length-1]||0:l);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,n.OQ)(i))}}},0x75080ab8:(t,e,i)=>{i.d(e,{x:()=>s});var n=i(0x10f5352ad);function s(t){return(0,n.G)(t)&&"ownerSVGElement"in t}},0x80775290:(t,e,i)=>{i.d(e,{v:()=>s});var n=i(0xfa2c4b4e);class s{constructor(){this.subscriptions=[]}add(t){return(0,n.Kq)(this.subscriptions,t),()=>(0,n.Ai)(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let s=0;s{i.d(e,{xQ:()=>r});var n=i(0xfc89b4a4),s=i(0x19ea297ff);function r(t=!0){let e=(0,n.useContext)(s.t);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:a,register:o}=e,l=(0,n.useId)();(0,n.useEffect)(()=>{if(t)return o(l)},[t]);let h=(0,n.useCallback)(()=>t&&a&&a(l),[l,a,t]);return!i&&a?[!1,h]:[!0]}},0x8addb808:(t,e,i)=>{i.d(e,{OQ:()=>h,bt:()=>o});var n=i(0x80775290),s=i(0x194d66395),r=i(0x306f89df),a=i(0x47eee5e1);let o={current:void 0};class l{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=r.k.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty();e&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=r.k.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new n.v);let i=this.events[t].add(e);return"change"===t?()=>{i(),a.Gt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return o.current&&o.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=r.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,s.f)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function h(t,e){return new l(t,e)}},0x906d2ce4:(t,e,i)=>{i.d(e,{U:()=>n,f:()=>s});let n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],s=new Set(n)},0x91abc419:(t,e,i)=>{i.d(e,{s:()=>s});var n=i(0x10f5352ad);function s(t){return(0,n.G)(t)&&"offsetHeight"in t}},0x933366f4:(t,e,i)=>{i.d(e,{B:()=>s});let n={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={};for(let t in n)s[t]={isEnabled:e=>n[t].some(t=>!!e[t])}},0x957a3994:(t,e,i)=>{i.d(e,{o:()=>m});var n=i(0x1d22f7b0c),s=i(0x1f9411011),r=i(0xbae4716f),a=i(0x120b487d8),o=i(0xcf550e4a),l=i(0x1d2c9d9d3);let h={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};var u=i(0x1a09ceaf0);function d(t,e){return t*Math.sqrt(1-e*e)}let c=["duration","bounce"],p=["stiffness","damping","mass"];function f(t,e){return e.some(e=>void 0!==t[e])}function m(t=h.visualDuration,e=h.bounce){let i,o="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:v,restDelta:x}=o,g=o.keyframes[0],y=o.keyframes[o.keyframes.length-1],b={done:!1,value:g},{stiffness:w,damping:T,mass:P,duration:S,velocity:A,isResolvedFromDuration:V}=function(t){let e={velocity:h.velocity,stiffness:h.stiffness,damping:h.damping,mass:h.mass,isResolvedFromDuration:!1,...t};if(!f(t,p)&&f(t,c))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),s=i*i,r=2*(0,n.q)(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:h.mass,stiffness:s,damping:r}}else{let i=function({duration:t=h.duration,bounce:e=h.bounce,velocity:i=h.velocity,mass:r=h.mass}){let a,o;(0,u.$)(t<=(0,s.f)(h.maxDuration),"Spring duration must be 10 seconds or less");let l=1-e;l=(0,n.q)(h.minDamping,h.maxDamping,l),t=(0,n.q)(h.minDuration,h.maxDuration,(0,s.X)(t)),l<1?(a=e=>{let n=e*l,s=n*t;return .001-(n-i)/d(e,l)*Math.exp(-s)},o=e=>{let n=e*l*t,s=Math.pow(l,2)*Math.pow(e,2)*t,r=Math.exp(-n),o=d(Math.pow(e,2),l);return(n*i+i-s)*r*(-a(e)+.001>0?-1:1)/o}):(a=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),o=e=>t*t*(i-e)*Math.exp(-e*t));let c=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(a,o,5/t);if(t=(0,s.f)(t),isNaN(c))return{stiffness:h.stiffness,damping:h.damping,duration:t};{let e=Math.pow(c,2)*r;return{stiffness:e,damping:2*l*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...i,mass:h.mass}).isResolvedFromDuration=!0}return e}({...o,velocity:-(0,s.X)(o.velocity||0)}),M=A||0,k=T/(2*Math.sqrt(w*P)),E=y-g,D=(0,s.X)(Math.sqrt(w/P)),C=5>Math.abs(E);if(v||(v=C?h.restSpeed.granular:h.restSpeed.default),x||(x=C?h.restDelta.granular:h.restDelta.default),k<1){let t=d(D,k);i=e=>y-Math.exp(-k*D*e)*((M+k*D*E)/t*Math.sin(t*e)+E*Math.cos(t*e))}else if(1===k)i=t=>y-Math.exp(-D*t)*(E+(M+D*E)*t);else{let t=D*Math.sqrt(k*k-1);i=e=>{let i=Math.exp(-k*D*e),n=Math.min(t*e,300);return y-i*((M+k*D*E)*Math.sinh(n)+t*E*Math.cosh(n))/t}}let R={calculatedDuration:V&&S||null,next:t=>{let e=i(t);if(V)b.done=t>=S;else{let n=0===t?M:0;k<1&&(n=0===t?(0,s.f)(M):(0,l.Y)(i,t,e));let r=Math.abs(y-e)<=x;b.done=Math.abs(n)<=v&&r}return b.value=b.done?y:e,b},toString:()=>{let t=Math.min((0,a.t)(R),a.Y),e=(0,r.K)(e=>R.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return R}m.applyToOptions=t=>{let e=(0,o.X)(t,100,m);return t.ease=e.ease,t.duration=(0,s.f)(e.duration),t.type="keyframes",t}},0x96b70f50:(t,e,i)=>{function n(t){return void 0===t||1===t}function s({scale:t,scaleX:e,scaleY:i}){return!n(t)||!n(e)||!n(i)}function r(t){return s(t)||a(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function a(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}i.d(e,{HD:()=>r,vF:()=>a,vk:()=>s})},0x9d4ae1ac:(t,e,i)=>{i.d(e,{KN:()=>r,gQ:()=>h,px:()=>a,uj:()=>s,vh:()=>o,vw:()=>l});let n=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),s=n("deg"),r=n("%"),a=n("px"),o=n("vh"),l=n("vw"),h={...r,parse:t=>r.parse(t)/100,transform:t=>r.transform(100*t)}},0x9f29c6be:(t,e,i)=>{i.d(e,{Ib:()=>c,ry:()=>d,zs:()=>u});let n=t=>180*t/Math.PI,s=t=>a(n(Math.atan2(t[1],t[0]))),r={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:s,rotateZ:s,skewX:t=>n(Math.atan(t[1])),skewY:t=>n(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},a=t=>((t%=360)<0&&(t+=360),t),o=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),l=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),h={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:o,scaleY:l,scale:t=>(o(t)+l(t))/2,rotateX:t=>a(n(Math.atan2(t[6],t[5]))),rotateY:t=>a(n(Math.atan2(-t[2],t[0]))),rotateZ:s,rotate:s,skewX:t=>n(Math.atan(t[4])),skewY:t=>n(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function u(t){return+!!t.includes("scale")}function d(t,e){let i,n;if(!t||"none"===t)return u(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=h,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=r,n=e}if(!n)return u(e);let a=i[e],o=n[1].split(",").map(p);return"function"==typeof a?a(o):o[a]}let c=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return d(i,e)};function p(t){return parseFloat(t.trim())}},0xa966e128:(t,e,i)=>{i.d(e,{i:()=>g});var n=i(0x1292745);let s=(0,n.A)(.42,0,1,1),r=(0,n.A)(0,0,.58,1),a=(0,n.A)(.42,0,.58,1);var o=i(0x1ed302c27),l=i(0x1a09ceaf0),h=i(0x13dcc0bcd),u=i(0x211f0a623),d=i(0x1967e45e2),c=i(0xe5cd140e),p=i(0x208b374f);let f={linear:h.l,easeIn:s,easeInOut:a,easeOut:r,circIn:c.po,circInOut:c.tn,circOut:c.yT,backIn:d.dg,backInOut:d.ZZ,backOut:d.Sz,anticipate:u.b},m=t=>{if((0,p.D)(t)){(0,l.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,s,r]=t;return(0,n.A)(e,i,s,r)}return"string"==typeof t?((0,l.V)(void 0!==f[t],`Invalid easing type '${t}'`),f[t]):t};var v=i(0x2b0750d),x=i(0x12db70c5);function g({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var s;let r=(0,o.h)(n)?n.map(m):m(n),l={done:!1,value:e[0]},h=(s=i&&i.length===e.length?i:(0,x.Z)(e),s.map(e=>e*t)),u=(0,v.G)(h,e,{ease:Array.isArray(r)?r:e.map(()=>r||a).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(l.value=u(e),l.done=e>=t,l)}}},0xb248f5c7:(t,e,i)=>{i.d(e,{f:()=>r});var n=i(0x16c033280),s=i(421172e3);function r(t,e){let i=t[t.length-1];for(let r=1;r<=e;r++){let a=(0,n.q)(0,e,r);t.push((0,s.k)(i,1,a))}}},0xbaabb3e0:(t,e,i)=>{i.d(e,{$:()=>u});var n=i(0x126d43323),s=i(0x47eee5e1),r=i(0x1a8246293),a=i(0x746ee7b8),o=i(0x12cc98861),l=i(0x26a02d08),h=i(0x1c9b246e9);function u(t,e,{delay:i=0,transitionOverride:d,type:c}={}){let{transition:p=t.getDefaultTransition(),transitionEnd:f,...m}=e;d&&(p=d);let v=[],x=c&&t.animationState&&t.animationState.getState()[c];for(let e in m){let a=t.getValue(e,t.latestValues[e]??null),u=m[e];if(void 0===u||x&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(x,e))continue;let d={delay:i,...(0,n.r)(p||{},e)},c=a.get();if(void 0!==c&&!a.isAnimating&&!Array.isArray(u)&&u===c&&!d.velocity)continue;let f=!1;if(window.MotionHandoffAnimation){let i=(0,l.P)(t);if(i){let t=window.MotionHandoffAnimation(i,e,s.Gt);null!==t&&(d.startTime=t,f=!0)}}(0,o.g)(t,e),a.start((0,h.f)(e,a,u,t.shouldReduceMotion&&r.$.has(e)?{type:!1}:d,t,f));let g=a.animation;g&&v.push(g)}return f&&Promise.all(v).then(()=>{s.Gt.update(()=>{f&&(0,a.U)(t,f)})}),v}},0xbae4716f:(t,e,i)=>{i.d(e,{K:()=>n});let n=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e{i.d(e,{$:()=>r,q:()=>a});var n=i(0x240999ae8);let s=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,r=(t,e)=>i=>!!("string"==typeof i&&s.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),a=(t,e,i)=>s=>{if("string"!=typeof s)return s;let[r,a,o,l]=s.match(n.S);return{[t]:parseFloat(r),[e]:parseFloat(a),[i]:parseFloat(o),alpha:void 0!==l?parseFloat(l):1}}},0xcd873b40:(t,e,i)=>{i.d(e,{ge:()=>a,xU:()=>s});let n=()=>({translate:0,scale:1,origin:0,originPoint:0}),s=()=>({x:n(),y:n()}),r=()=>({min:0,max:0}),a=()=>({x:r(),y:r()})},0xce36aa29:(t,e,i)=>{i.d(e,{K:()=>s});var n=i(0x1adad6515);function s(t,e,i){let s=t.getProps();return(0,n.a)(s,e,void 0!==i?i:s.custom,t)}},0xce9bf7a7:(t,e,i)=>{i.d(e,{a:()=>n});let n=t=>Math.round(1e5*t)/1e5},0xcf550e4a:(t,e,i)=>{i.d(e,{X:()=>r});var n=i(0x1f9411011),s=i(0x120b487d8);function r(t,e=100,i){let a=i({...t,keyframes:[0,e]}),o=Math.min((0,s.t)(a),s.Y);return{type:"keyframes",ease:t=>a.next(o*t).value/e,duration:(0,n.X)(o)}}},0xd7c9315a:(t,e,i)=>{i.d(e,{y:()=>a});var n=i(0x1f3c69f65),s=i(0x1bfb11fc2),r=i(0x1936c8bde);let a={test:t=>r.B.test(t)||n.u.test(t)||s.V.test(t),parse:t=>r.B.test(t)?r.B.parse(t):s.V.test(t)?s.V.parse(t):n.u.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?r.B.transform(t):s.V.transform(t)}},0xd8aaa03d:(t,e,i)=>{i.d(e,{W:()=>o});var n=i(0x26cb3139);let s={...n.ai,transform:Math.round};var r=i(0x9d4ae1ac);let a={rotate:r.uj,rotateX:r.uj,rotateY:r.uj,rotateZ:r.uj,scale:n.hs,scaleX:n.hs,scaleY:n.hs,scaleZ:n.hs,skew:r.uj,skewX:r.uj,skewY:r.uj,distance:r.px,translateX:r.px,translateY:r.px,translateZ:r.px,x:r.px,y:r.px,z:r.px,perspective:r.px,transformPerspective:r.px,opacity:n.X4,originX:r.gQ,originY:r.gQ,originZ:r.px},o={borderWidth:r.px,borderTopWidth:r.px,borderRightWidth:r.px,borderBottomWidth:r.px,borderLeftWidth:r.px,borderRadius:r.px,radius:r.px,borderTopLeftRadius:r.px,borderTopRightRadius:r.px,borderBottomRightRadius:r.px,borderBottomLeftRadius:r.px,width:r.px,maxWidth:r.px,height:r.px,maxHeight:r.px,top:r.px,right:r.px,bottom:r.px,left:r.px,padding:r.px,paddingTop:r.px,paddingRight:r.px,paddingBottom:r.px,paddingLeft:r.px,margin:r.px,marginTop:r.px,marginRight:r.px,marginBottom:r.px,marginLeft:r.px,backgroundPositionX:r.px,backgroundPositionY:r.px,...a,zIndex:s,fillOpacity:n.X4,strokeOpacity:n.X4,numOctaves:s}},0xe5cd140e:(t,e,i)=>{i.d(e,{po:()=>r,tn:()=>o,yT:()=>a});var n=i(0x1dbec99c3),s=i(0x158bbe9c6);let r=t=>1-Math.sin(Math.acos(t)),a=(0,s.G)(r),o=(0,n.V)(r)},0xec782cea:(t,e,i)=>{i.d(e,{$:()=>n});let n=t=>/^0[^.\s]+$/u.test(t)},0xfa2c4b4e:(t,e,i)=>{function n(t,e){-1===t.indexOf(e)&&t.push(e)}function s(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function r([...t],e,i){let n=e<0?t.length+e:e;if(n>=0&&ns,Kq:()=>n,Pe:()=>r})},0x100c96acc:(t,e,i)=>{i.d(e,{K:()=>n});function n(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let s=i?.[t]??n.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t)}},0x104a60315:(t,e,i)=>{i.d(e,{_:()=>o});var n=i(0xce36aa29),s=i(0xbaabb3e0);function r(t,e,i={}){let o=(0,n.K)(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:l=t.getDefaultTransition()||{}}=o||{};i.transitionOverride&&(l=i.transitionOverride);let h=o?()=>Promise.all((0,s.$)(t,o,i)):()=>Promise.resolve(),u=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:h}=l;return function(t,e,i=0,n=0,s=1,o){let l=[],h=(t.variantChildren.size-1)*n,u=1===s?(t=0)=>t*n:(t=0)=>h-t*n;return Array.from(t.variantChildren).sort(a).forEach((t,n)=>{t.notify("AnimationStart",e),l.push(r(t,e,{...o,delay:i+u(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(l)}(t,e,s+n,o,h,i)}:()=>Promise.resolve(),{when:d}=l;if(!d)return Promise.all([h(),u(i.delay)]);{let[t,e]="beforeChildren"===d?[h,u]:[u,h];return t().then(()=>e())}}function a(t,e){return t.sortNodePosition(e)}function o(t,e,i={}){let a;if(t.notify("AnimationStart",e),Array.isArray(e))a=Promise.all(e.map(e=>r(t,e,i)));else if("string"==typeof e)a=r(t,e,i);else{let r="function"==typeof e?(0,n.K)(t,e,i.custom):e;a=Promise.all((0,s.$)(t,r,i))}return a.then(()=>{t.notify("AnimationComplete",e)})}},0x106e508b5:(t,e,i)=>{i.d(e,{OU:()=>h,Ql:()=>u,Ww:()=>c,hq:()=>r,o4:()=>l});var n=i(421172e3),s=i(0x96b70f50);function r(t,e,i){return i+e*(t-i)}function a(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function o(t,e=0,i=1,n,s){t.min=a(t.min,e,i,n,s),t.max=a(t.max,e,i,n,s)}function l(t,{x:e,y:i}){o(t.x,e.translate,e.scale,e.originPoint),o(t.y,i.translate,i.scale,i.originPoint)}function h(t,e,i,n=!1){let r,a,o=i.length;if(o){e.x=e.y=1;for(let h=0;h.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function u(t,e){t.min=t.min+e,t.max=t.max+e}function d(t,e,i,s,r=.5){let a=(0,n.k)(t.min,t.max,r);o(t,e,i,a,s)}function c(t,e){d(t.x,e.x,e.scaleX,e.scale,e.originX),d(t.y,e.y,e.scaleY,e.scale,e.originY)}},0x10f5352ad:(t,e,i)=>{i.d(e,{G:()=>n});function n(t){return"object"==typeof t&&null!==t}},0x11ffbb5a4:(t,e,i)=>{i.d(e,{T:()=>a,n:()=>o});var n=i(0x26cb3139),s=i(0x9d4ae1ac),r=i(0x14dd8b04c);let a=[n.ai,s.px,s.KN,s.uj,s.vw,s.vh,{test:t=>"auto"===t,parse:t=>t}],o=t=>a.find((0,r.w)(t))},0x12080fe83:(t,e,i)=>{i.d(e,{j:()=>S});var n=i(0x18cfabf95),s=i(0x1a09ceaf0),r=i(0x2192e0274),a=i(0xd7c9315a),o=i(0x1f6123f69),l=i(0x1f3c69f65),h=i(0x1bfb11fc2);function u(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var d=i(0x1936c8bde);function c(t,e){return i=>i>0?e:t}var p=i(421172e3);let f=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},m=[l.u,d.B,h.V];function v(t){let e=m.find(e=>e.test(t));if((0,s.$)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===h.V&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,r=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;s=u(o,n,t+1/3),r=u(o,n,t),a=u(o,n,t-1/3)}else s=r=a=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*a),alpha:n}}(i)),i}let x=(t,e)=>{let i=v(t),n=v(e);if(!i||!n)return c(t,e);let s={...i};return t=>(s.red=f(i.red,n.red,t),s.green=f(i.green,n.green,t),s.blue=f(i.blue,n.blue,t),s.alpha=(0,p.k)(i.alpha,n.alpha,t),d.B.transform(s))},g=new Set(["none","hidden"]);function y(t,e){return i=>(0,p.k)(t,e,i)}function b(t){return"number"==typeof t?y:"string"==typeof t?(0,r.p)(t)?c:a.y.test(t)?x:P:Array.isArray(t)?w:"object"==typeof t?a.y.test(t)?x:T:c}function w(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>b(t)(t,e[i]));return t=>{for(let e=0;e{for(let e in n)i[e]=n[e](t);return i}}let P=(t,e)=>{let i=o.f.createTransformer(e),r=(0,o.V)(t),a=(0,o.V)(e);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?g.has(t)&&!a.values.length||g.has(e)&&!r.values.length?function(t,e){return g.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):(0,n.F)(w(function(t,e){let i=[],n={color:0,var:0,number:0};for(let s=0;s{i.d(e,{Y:()=>n,t:()=>s});let n=2e4;function s(t){let e=0,i=t.next(e);for(;!i.done&&e=n?1/0:e}},0x124f815f9:(t,e,i)=>{i.d(e,{z:()=>r});var n=i(0x906d2ce4),s=i(0x1f4506c0b);function r(t,{layout:e,layoutId:i}){return n.f.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!s.H[t]||"opacity"===t)}},0x126d43323:(t,e,i)=>{i.d(e,{r:()=>n});function n(t,e){return t?.[e]??t?.default??t}},0x128199244:(t,e,i)=>{i.d(e,{x:()=>r});var n=i(0x223a664e1),s=i(0x124f815f9);function r(t,e,i){let{style:r}=t,a={};for(let o in r)((0,n.S)(r[o])||e.style&&(0,n.S)(e.style[o])||(0,s.z)(o,t)||i?.getValue(o)?.liveStyle!==void 0)&&(a[o]=r[o]);return a}},0x12991165e:(t,e,i)=>{i.d(e,{Q:()=>n});let n=(0,i(0xfc89b4a4).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},0x12cc98861:(t,e,i)=>{i.d(e,{g:()=>r});var n=i(0x1f4befcd5),s=i(0x223a664e1);function r(t,e){let i=t.getValue("willChange");if((0,s.S)(i)&&i.add)return i.add(e);if(!i&&n.W.WillChange){let i=new n.W.WillChange("auto");t.addValue("willChange",i),i.add(e)}}},0x1391957c3:(t,e,i)=>{i.d(e,{w:()=>n});function n(t){return"string"==typeof t||Array.isArray(t)}},0x13b665ef2:(t,e,i)=>{i.d(e,{Q:()=>n});let n={value:null,addProjectionMetrics:null}},0x13dcc0bcd:(t,e,i)=>{i.d(e,{l:()=>n});let n=t=>t},0x14b6290a5:(t,e,i)=>{i.d(e,{C:()=>n});let n=new WeakMap},0x14dd8b04c:(t,e,i)=>{i.d(e,{w:()=>n});let n=t=>e=>e.test(t)},0x156f63430:(t,e,i)=>{i.d(e,{p:()=>n});let n=t=>Array.isArray(t)},0x158bbe9c6:(t,e,i)=>{i.d(e,{G:()=>n});let n=t=>e=>1-t(1-e)},0x16c033280:(t,e,i)=>{i.d(e,{q:()=>n});let n=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n}},0x16fabc2cc:(t,e,i)=>{i.d(e,{X:()=>s});let n=t=>null!==t;function s(t,{repeat:e,repeatType:i="loop"},r,a=1){let o=t.filter(n),l=a<0||e&&"loop"!==i&&e%2==1?0:o.length-1;return l&&void 0!==r?r:o[l]}},0x171780898:(t,e,i)=>{i.d(e,{i:()=>n});let n=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)},0x178c2fee5:(t,e,i)=>{i.d(e,{x:()=>a});var n=i(0x223a664e1),s=i(0x906d2ce4),r=i(0x128199244);function a(t,e,i){let a=(0,r.x)(t,e,i);for(let i in t)((0,n.S)(t[i])||(0,n.S)(e[i]))&&(a[-1!==s.U.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return a}},0x1819013cb:(t,e,i)=>{i.d(e,{L:()=>a,m:()=>r});var n=i(0x18666c88a),s=i(0x106e508b5);function r(t,e){return(0,n.FY)((0,n.bS)(t.getBoundingClientRect(),e))}function a(t,e,i){let n=r(t,i),{scroll:a}=e;return a&&((0,s.Ql)(n.x,a.offset.x),(0,s.Ql)(n.y,a.offset.y)),n}},0x18666c88a:(t,e,i)=>{function n({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function s({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function r(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}i.d(e,{FY:()=>n,bS:()=>r,pA:()=>s})},0x18bfb9ee6:(t,e,i)=>{i.d(e,{O:()=>n,r:()=>s});let n={current:null},s={current:!1}},0x18cfabf95:(t,e,i)=>{i.d(e,{F:()=>s});let n=(t,e)=>i=>e(t(i)),s=(...t)=>t.reduce(n)},0x1907d0ef8:(t,e,i)=>{i.d(e,{E:()=>s});var n=i(0xfc89b4a4);let s=i(0x1b50e7e52).B?n.useLayoutEffect:n.useEffect},0x1936c8bde:(t,e,i)=>{i.d(e,{B:()=>l});var n=i(0x1d22f7b0c),s=i(0x26cb3139),r=i(0xce9bf7a7),a=i(0xca541e16);let o={...s.ai,transform:t=>Math.round((0,n.q)(0,255,t))},l={test:(0,a.$)("rgb","red"),parse:(0,a.q)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+o.transform(t)+", "+o.transform(e)+", "+o.transform(i)+", "+(0,r.a)(s.X4.transform(n))+")"}},0x194d66395:(t,e,i)=>{i.d(e,{f:()=>n});function n(t,e){return e?1e3/e*t:0}},0x1967e45e2:(t,e,i)=>{i.d(e,{Sz:()=>a,ZZ:()=>l,dg:()=>o});var n=i(0x1292745),s=i(0x1dbec99c3),r=i(0x158bbe9c6);let a=(0,n.A)(.33,1.53,.69,.99),o=(0,r.G)(a),l=(0,s.V)(o)},0x19ea297ff:(t,e,i)=>{i.d(e,{t:()=>n});let n=(0,i(0xfc89b4a4).createContext)(null)},0x19fd95f85:(t,e,i)=>{i.d(e,{B:()=>o});var n=i(0xa8c265d),s=i(0x9d4ae1ac);let r={offset:"stroke-dashoffset",array:"stroke-dasharray"},a={offset:"strokeDashoffset",array:"strokeDasharray"};function o(t,{attrX:e,attrY:i,attrScale:o,pathLength:l,pathSpacing:h=1,pathOffset:u=0,...d},c,p,f){if((0,n.O)(t,d,p),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:m,style:v}=t;m.transform&&(v.transform=m.transform,delete m.transform),(v.transform||m.transformOrigin)&&(v.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),v.transform&&(v.transformBox=f?.transformBox??"fill-box",delete m.transformBox),void 0!==e&&(m.x=e),void 0!==i&&(m.y=i),void 0!==o&&(m.scale=o),void 0!==l&&function(t,e,i=1,n=0,o=!0){t.pathLength=1;let l=o?r:a;t[l.offset]=s.px.transform(-n);let h=s.px.transform(e),u=s.px.transform(i);t[l.array]=`${h} ${u}`}(m,l,h,u,!1)}},0x1a09ceaf0:(t,e,i)=>{i.d(e,{$:()=>n,V:()=>s});let n=()=>{},s=()=>{}},0x1a8246293:(t,e,i)=>{i.d(e,{$:()=>n});let n=new Set(["width","height","top","left","right","bottom",...i(0x906d2ce4).U])},0x1abd7f84a:(t,e,i)=>{i.d(e,{U:()=>n,_:()=>s});let n=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],s=["initial",...n]},0x1adad6515:(t,e,i)=>{function n(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function s(t,e,i,s){if("function"==typeof e){let[r,a]=n(s);e=e(void 0!==i?i:t.custom,r,a)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,a]=n(s);e=e(void 0!==i?i:t.custom,r,a)}return e}i.d(e,{a:()=>s})},0x1b5065911:(t,e,i)=>{i.d(e,{U:()=>r});var n=i(0x1b50e7e52),s=i(0x18bfb9ee6);function r(){if(s.r.current=!0,n.B)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>s.O.current=t.matches;t.addListener(e),e()}else s.O.current=!1}},0x1b50e7e52:(t,e,i)=>{i.d(e,{B:()=>n});let n="undefined"!=typeof window},0x1bb5981f5:(t,e,i)=>{i.d(e,{I:()=>a});var n=i(0x1f4befcd5);let s=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var r=i(0x13b665ef2);function a(t,e){let i=!1,a=!0,o={delta:0,timestamp:0,isProcessing:!1},l=()=>i=!0,h=s.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,s=!1,a=!1,o=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},h=0;function u(e){o.has(e)&&(d.schedule(e),t()),h++,e(l)}let d={schedule:(t,e=!1,r=!1)=>{let a=r&&s?i:n;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(l=t,s){a=!0;return}s=!0,[i,n]=[n,i],i.forEach(u),e&&r.Q.value&&r.Q.value.frameloop[e].push(h),h=0,i.clear(),s=!1,a&&(a=!1,d.process(t))}};return d}(l,e?i:void 0),t),{}),{setup:u,read:d,resolveKeyframes:c,preUpdate:p,update:f,preRender:m,render:v,postRender:x}=h,g=()=>{let s=n.W.useManualTiming?o.timestamp:performance.now();i=!1,n.W.useManualTiming||(o.delta=a?1e3/60:Math.max(Math.min(s-o.timestamp,40),1)),o.timestamp=s,o.isProcessing=!0,u.process(o),d.process(o),c.process(o),p.process(o),f.process(o),m.process(o),v.process(o),x.process(o),o.isProcessing=!1,i&&e&&(a=!1,t(g))};return{schedule:s.reduce((e,n)=>{let s=h[n];return e[n]=(e,n=!1,r=!1)=>(!i&&(i=!0,a=!0,o.isProcessing||t(g)),s.schedule(e,n,r)),e},{}),cancel:t=>{for(let e=0;e{i.d(e,{c:()=>r});var n=i(0x306f89df),s=i(0x47eee5e1);function r(t,e){let i=n.k.now(),r=({timestamp:n})=>{let a=n-i;a>=e&&((0,s.WG)(r),t(a-e))};return s.Gt.setup(r,!0),()=>(0,s.WG)(r)}},0x1bdddd3c0:(t,e,i)=>{i.d(e,{I:()=>n});let n=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},0x1bfb11fc2:(t,e,i)=>{i.d(e,{V:()=>o});var n=i(0x26cb3139),s=i(0x9d4ae1ac),r=i(0xce9bf7a7),a=i(0xca541e16);let o={test:(0,a.$)("hsl","hue"),parse:(0,a.q)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:a=1})=>"hsla("+Math.round(t)+", "+s.KN.transform((0,r.a)(e))+", "+s.KN.transform((0,r.a)(i))+", "+(0,r.a)(n.X4.transform(a))+")"}},0x1c117d85e:(t,e,i)=>{i.d(e,{q:()=>n});let n={layout:0,mainThread:0,waapi:0}},0x1c9b246e9:(t,e,i)=>{i.d(e,{f:()=>q});var n=i(0x126d43323),s=i(0x47eee5e1),r=i(0x96354b5),a=i(0x1f4befcd5),o=i(0x13dcc0bcd),l=i(0x306f89df),h=i(0x16fabc2cc),u=i(0x1e845d7a7),d=i(0x1f9411011),c=i(0x1a09ceaf0);function p(t){let e;return()=>(void 0===e&&(e=t()),e)}let f=p(()=>void 0!==window.ScrollTimeline);var m=i(0x212415f50),v=i(0x1c117d85e),x=i(0x13b665ef2),g=i(0x208b374f);let y={},b=function(t,e){let i=p(t);return()=>y[e]??i()}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing");var w=i(0xbae4716f);let T=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,P={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:T([0,.65,.55,1]),circOut:T([.55,0,1,.45]),backIn:T([.31,.01,.66,-.59]),backOut:T([.33,1.53,.69,.99])};var S=i(0x1fb1fffbe);class A extends m.q{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,(0,c.V)("string"!=typeof t.type,'animateMini doesn\'t support "type" as a string. Did you mean to import { spring } from "motion"?');let l=function({type:t,...e}){return(0,S.W)(t)&&b()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:l}={},h){let u={[e]:i};l&&(u.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?b()?(0,w.K)(e,i):"ease-out":(0,g.D)(e)?T(e):Array.isArray(e)?e.map(e=>t(e,i)||P.easeOut):P[e]}(o,s);Array.isArray(d)&&(u.easing=d),x.Q.value&&v.q.waapi++;let c={delay:n,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};h&&(c.pseudoElement=h);let p=t.animate(u,c);return x.Q.value&&p.finished.finally(()=>{v.q.waapi--}),p}(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=(0,h.X)(n,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(t):function(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}(e,i,t),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return(0,d.X)(Number(t))}get time(){return(0,d.X)(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=(0,d.f)(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&f())?(this.animation.timeline=t,o.l):e(this)}}var V=i(0x1ca153f46),M=i(0x211f0a623),k=i(0x1967e45e2),E=i(0xe5cd140e);let D={anticipate:M.b,backInOut:k.ZZ,circInOut:E.tn};class C extends A{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in D&&(t.ease=D[t.ease])}(t),(0,V.E)(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:s,...a}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new r.s({...a,autoplay:!1}),l=(0,d.f)(this.finishedTime??this.time);e.setWithVelocity(o.sample(l-10).value,o.sample(l).value,10),o.stop()}}var R=i(0x1f6123f69);let j=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(R.f.test(t)||"0"===t)&&!t.startsWith("url("));var B=i(0x91abc419);let L=new Set(["opacity","clipPath","filter","transform"]),F=p(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class O extends m.q{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",keyframes:a,name:o,motionValue:h,element:d,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=l.k.now();let p={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,name:o,motionValue:h,element:d,...c},f=d?.KeyframeResolver||u.h;this.keyframeResolver=new f(a,(t,e,i)=>this.onKeyframesResolved(t,e,p,!i),o,h,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:s,type:u,velocity:d,delay:p,isHandoff:f,onUpdate:m}=i;this.resolvedAt=l.k.now(),!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],a=j(s,e),o=j(r,e);return(0,c.$)(a===o,`You are trying to animate ${e} from "${s}" to "${r}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${r} via the \`style\` property.`),!!a&&!!o&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},x=!f&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:a}=t;if(!(0,B.s)(e?.owner?.current))return!1;let{onUpdate:o,transformTemplate:l}=e.owner.getProps();return F()&&i&&L.has(i)&&("transform"!==i||!l)&&!o&&!n&&"mirror"!==s&&0!==r&&"inertia"!==a}(v)?new C({...v,element:v.motionValue.owner.current}):new r.s(v);x.finished.then(()=>this.notifyFinished()).catch(o.l),this.pendingTimeline&&(this.stopTimeline=x.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=x}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),(0,u.q)()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let U=t=>null!==t;var I=i(0x906d2ce4);let W={type:"spring",stiffness:500,damping:25,restSpeed:10},$={type:"keyframes",duration:.8},N={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},q=(t,e,i,o={},l,h)=>u=>{let c=(0,n.r)(o,t)||{},p=c.delay||o.delay||0,{elapsed:f=0}=o;f-=(0,d.f)(p);let m={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...c,delay:-f,onUpdate:t=>{e.set(t),c.onUpdate&&c.onUpdate(t)},onComplete:()=>{u(),c.onComplete&&c.onComplete()},name:t,motionValue:e,element:h?void 0:l};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:s,repeat:r,repeatType:a,repeatDelay:o,from:l,elapsed:h,...u}){return!!Object.keys(u).length}(c)&&Object.assign(m,((t,{keyframes:e})=>e.length>2?$:I.f.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:W:N)(t,m)),m.duration&&(m.duration=(0,d.f)(m.duration)),m.repeatDelay&&(m.repeatDelay=(0,d.f)(m.repeatDelay)),void 0!==m.from&&(m.keyframes[0]=m.from);let v=!1;if(!1!==m.type&&(0!==m.duration||m.repeatDelay)||(m.duration=0,0===m.delay&&(v=!0)),(a.W.instantAnimations||a.W.skipAnimations)&&(v=!0,m.duration=0,m.delay=0),m.allowFlatten=!c.type&&!c.ease,v&&!h&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},n){let s=t.filter(U),r=e&&"loop"!==i&&e%2==1?0:s.length-1;return s[r]}(m.keyframes,c);if(void 0!==t)return void s.Gt.update(()=>{m.onUpdate(t),m.onComplete()})}return c.isSync?new r.s(m):new O(m)}},0x1ca153f46:(t,e,i)=>{i.d(e,{E:()=>o});var n=i(0x605c17d4),s=i(0xa966e128),r=i(0x957a3994);let a={decay:n.B,inertia:n.B,tween:s.i,keyframes:s.i,spring:r.o};function o(t){"string"==typeof t.type&&(t.type=a[t.type])}},0x1d22f7b0c:(t,e,i)=>{i.d(e,{q:()=>n});let n=(t,e,i)=>i>e?e:i{i.d(e,{Y:()=>s});var n=i(0x194d66395);function s(t,e,i){let s=Math.max(e-5,0);return(0,n.f)(i-t(s),e-s)}},0x1dbec99c3:(t,e,i)=>{i.d(e,{V:()=>n});let n=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},0x1e1607c93:(t,e,i)=>{i.d(e,{J:()=>a});var n=i(0x1f6123f69),s=i(0x1efc28985),r=i(0x14bccb24);function a(t,e){let i=(0,r.D)(t);return i!==s.p&&(i=n.f),i.getAnimatableNone?i.getAnimatableNone(e):void 0}},0x1e845d7a7:(t,e,i)=>{i.d(e,{h:()=>c,q:()=>d});var n=i(0x5543ac4a),s=i(0x47eee5e1);let r=new Set,a=!1,o=!1,l=!1;function h(){if(o){let t=Array.from(r).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=(0,n.W9)(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}o=!1,a=!1,r.forEach(t=>t.complete(l)),r.clear()}function u(){r.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(o=!0)})}function d(){l=!0,u(),h(),l=!1}class c{constructor(t,e,i,n,s,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(r.add(this),a||(a=!0,s.Gt.read(u),s.Gt.resolveKeyframes(h))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let s=n?.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.set(t[0])}for(let e=1;e{i.d(e,{h:()=>n});let n=t=>Array.isArray(t)&&"number"!=typeof t[0]},0x1efc28985:(t,e,i)=>{i.d(e,{p:()=>l});var n=i(0x1f6123f69),s=i(0x240999ae8);let r=new Set(["brightness","contrast","saturate","opacity"]);function a(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(s.S)||[];if(!n)return t;let a=i.replace(n,""),o=+!!r.has(e);return n!==i&&(o*=100),e+"("+o+a+")"}let o=/\b([a-z-]*)\(.*?\)/gu,l={...n.f,getAnimatableNone:t=>{let e=t.match(o);return e?e.map(a).join(" "):t}}},0x1f3c69f65:(t,e,i)=>{i.d(e,{u:()=>s});var n=i(0x1936c8bde);let s={test:(0,i(0xca541e16).$)("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform:n.B.transform}},0x1f4506c0b:(t,e,i)=>{i.d(e,{$:()=>r,H:()=>s});var n=i(0x2192e0274);let s={};function r(t){for(let e in t)s[e]=t[e],(0,n.j)(e)&&(s[e].isCSSVariable=!0)}},0x1f4befcd5:(t,e,i)=>{i.d(e,{W:()=>n});let n={}},0x1f6123f69:(t,e,i)=>{i.d(e,{V:()=>u,f:()=>f});var n=i(0xd7c9315a);let s=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var r=i(0x240999ae8),a=i(0xce9bf7a7);let o="number",l="color",h=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function u(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},r=[],a=0,u=e.replace(h,t=>(n.y.test(t)?(s.color.push(a),r.push(l),i.push(n.y.parse(t))):t.startsWith("var(")?(s.var.push(a),r.push("var"),i.push(t)):(s.number.push(a),r.push(o),i.push(parseFloat(t))),++a,"${}")).split("${}");return{values:i,split:u,indexes:s,types:r}}function d(t){return u(t).values}function c(t){let{split:e,types:i}=u(t),s=e.length;return t=>{let r="";for(let h=0;h"number"==typeof t?0:t,f={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(r.S)?.length||0)+(t.match(s)?.length||0)>0},parse:d,createTransformer:c,getAnimatableNone:function(t){let e=d(t);return c(t)(e.map(p))}}},0x1f9411011:(t,e,i)=>{i.d(e,{X:()=>s,f:()=>n});let n=t=>1e3*t,s=t=>t/1e3},0x1fb1fffbe:(t,e,i)=>{i.d(e,{W:()=>n});function n(t){return"function"==typeof t&&"applyToOptions"in t}},0x211f0a623:(t,e,i)=>{i.d(e,{b:()=>s});var n=i(0x1967e45e2);let s=t=>(t*=2)<1?.5*(0,n.dg)(t):.5*(2-Math.pow(2,-10*(t-1)))},0x212415f50:(t,e,i)=>{i.d(e,{q:()=>n});class n{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}},0x2192e0274:(t,e,i)=>{i.d(e,{j:()=>s,p:()=>a});let n=t=>e=>"string"==typeof e&&e.startsWith(t),s=n("--"),r=n("var(--"),a=t=>!!r(t)&&o.test(t.split("/*")[0].trim()),o=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},0x21b594d82:(t,e,i)=>{i.d(e,{e:()=>n});function n(t,{style:e,vars:i},n,s){for(let r in Object.assign(t.style,e,s&&s.getProjectionStyles(n)),i)t.style.setProperty(r,i[r])}},0x223a664e1:(t,e,i)=>{i.d(e,{S:()=>n});let n=t=>!!(t&&t.getVelocity)},0x224afcc47:(t,e,i)=>{i.d(e,{J:()=>o,D:()=>a});let n=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","ignoreStrict","viewport"]);function s(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||n.has(t)}let r=t=>!s(t);function a(t){t&&(r=e=>e.startsWith("on")?!s(e):t(e))}try{a(require("@emotion/is-prop-valid").default)}catch{}function o(t,e,i){let n={};for(let a in t)("values"!==a||"object"!=typeof t.values)&&(r(a)||!0===i&&s(a)||!e&&!s(a)||t.draggable&&a.startsWith("onDrag"))&&(n[a]=t[a]);return n}},0x22b972e2e:(t,e,i)=>{i.d(e,{b:()=>g});var n=i(0x1a8246293),s=i(0x11ffbb5a4),r=i(0x1a09ceaf0),a=i(0x171780898),o=i(0x2192e0274);let l=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var h=i(0x1e845d7a7),u=i(0xec782cea),d=i(0x1f6123f69),c=i(0x1e1607c93);let p=new Set(["auto","none","0"]);var f=i(0x5543ac4a);class m extends h.h{constructor(t,e,i,n,s){super(t,e,i,n,s,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}var v=i(0x223a664e1),x=i(0x22c990ed7);class g extends x.B{constructor(){super(...arguments),this.KeyframeResolver=m}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,v.S)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}},0x22c990ed7:(t,e,i)=>{i.d(e,{B:()=>V});var n=i(0x1e845d7a7),s=i(0x306f89df),r=i(0x47eee5e1),a=i(0x223a664e1),o=i(0x906d2ce4),l=i(0x8addb808),h=i(0xd7c9315a),u=i(0x1f6123f69),d=i(0x11ffbb5a4),c=i(0x14dd8b04c);let p=[...d.T,h.y,u.f];var f=i(0x1e1607c93),m=i(0x171780898),v=i(0xec782cea),x=i(0x80775290),g=i(0x933366f4),y=i(0xcd873b40),b=i(0x1b5065911),w=i(0x18bfb9ee6),T=i(0x14b6290a5),P=i(0x495e45a7),S=i(0x1adad6515);let A=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class V{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:o,blockInitialAnimation:l,visualState:h},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=n.h,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=s.k.now();this.renderScheduledAtthis.bindToMotionValue(e,t)),w.r.current||(0,b.U)(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||w.O.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,r.WG)(this.notifyUpdate),(0,r.WG)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=o.f.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&r.Gt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),a=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),a(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in g.B){let e=g.B[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,y.ge)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;ee.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,l.OQ)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){if("string"==typeof i&&((0,m.i)(i)||(0,v.$)(i)))i=parseFloat(i);else{let n;n=i,!p.find((0,c.w)(n))&&u.f.test(e)&&(i=(0,f.J)(t,e))}this.setBaseTarget(t,(0,a.S)(i)?i.get():i)}return(0,a.S)(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=(0,S.a)(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||(0,a.S)(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new x.v),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}},0x23c1714f6:(t,e,i)=>{i.d(e,{z:()=>a});var n=i(0x223a664e1),s=i(0x8addb808),r=i(0x1c9b246e9);function a(t,e,i){let a=(0,n.S)(t)?t:(0,s.OQ)(t);return a.start((0,r.f)("",a,e,i)),a.animation}},0x240999ae8:(t,e,i)=>{i.d(e,{S:()=>n});let n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},0x251c06d07:(t,e,i)=>{i.d(e,{M:()=>s});var n=i(0xfc89b4a4);function s(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}}}]);