(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[566],{343:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var s=i(2115);let n=s.forwardRef(function(t,e){let{title:i,titleId:n,...r}=t;return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":n},r),i?s.createElement("title",{id:n},i):null,s.createElement("path",{fillRule:"evenodd",d:"M3 6.75A.75.75 0 0 1 3.75 6h16.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 6.75ZM3 12a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 12Zm0 5.25a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75a.75.75 0 0 1-.75-.75Z",clipRule:"evenodd"}))})},760:(t,e,i)=>{"use strict";i.d(e,{N:()=>y});var s=i(5155),n=i(2115),r=i(869),o=i(2885),a=i(7494),l=i(845),h=i(7351),u=i(1508);class c extends n.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,i=(0,h.s)(t)&&t.offsetWidth||0,s=this.props.sizeRef.current;s.height=e.offsetHeight||0,s.width=e.offsetWidth||0,s.top=e.offsetTop,s.left=e.offsetLeft,s.right=i-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function d(t){let{children:e,isPresent:i,anchorX:r,root:o}=t,a=(0,n.useId)(),l=(0,n.useRef)(null),h=(0,n.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:d}=(0,n.useContext)(u.Q);return(0,n.useInsertionEffect)(()=>{let{width:t,height:e,top:s,left:n,right:u}=h.current;if(i||!l.current||!t||!e)return;l.current.dataset.motionPopId=a;let c=document.createElement("style");d&&(c.nonce=d);let p=null!=o?o:document.head;return p.appendChild(c),c.sheet&&c.sheet.insertRule('\n [data-motion-pop-id="'.concat(a,'"] {\n position: absolute !important;\n width: ').concat(t,"px !important;\n height: ").concat(e,"px !important;\n ").concat("left"===r?"left: ".concat(n):"right: ".concat(u),"px !important;\n top: ").concat(s,"px !important;\n }\n ")),()=>{p.contains(c)&&p.removeChild(c)}},[i]),(0,s.jsx)(c,{isPresent:i,childRef:l,sizeRef:h,children:n.cloneElement(e,{ref:l})})}let p=t=>{let{children:e,initial:i,isPresent:r,onExitComplete:a,custom:h,presenceAffectsLayout:u,mode:c,anchorX:p,root:f}=t,g=(0,o.M)(m),v=(0,n.useId)(),y=!0,w=(0,n.useMemo)(()=>(y=!1,{id:v,initial:i,isPresent:r,custom:h,onExitComplete:t=>{for(let e of(g.set(t,!0),g.values()))if(!e)return;a&&a()},register:t=>(g.set(t,!1),()=>g.delete(t))}),[r,g,a]);return u&&y&&(w={...w}),(0,n.useMemo)(()=>{g.forEach((t,e)=>g.set(e,!1))},[r]),n.useEffect(()=>{r||g.size||!a||a()},[r]),"popLayout"===c&&(e=(0,s.jsx)(d,{isPresent:r,anchorX:p,root:f,children:e})),(0,s.jsx)(l.t.Provider,{value:w,children:e})};function m(){return new Map}var f=i(2082);let g=t=>t.key||"";function v(t){let e=[];return n.Children.forEach(t,t=>{(0,n.isValidElement)(t)&&e.push(t)}),e}let y=t=>{let{children:e,custom:i,initial:l=!0,onExitComplete:h,presenceAffectsLayout:u=!0,mode:c="sync",propagate:d=!1,anchorX:m="left",root:y}=t,[w,x]=(0,f.xQ)(d),S=(0,n.useMemo)(()=>v(e),[e]),b=d&&!w?[]:S.map(g),T=(0,n.useRef)(!0),P=(0,n.useRef)(S),E=(0,o.M)(()=>new Map),[M,A]=(0,n.useState)(S),[C,V]=(0,n.useState)(S);(0,a.E)(()=>{T.current=!1,P.current=S;for(let t=0;t{let e=g(t),n=(!d||!!w)&&(S===C||b.includes(e));return(0,s.jsx)(p,{isPresent:n,initial:(!T.current||!!l)&&void 0,custom:i,presenceAffectsLayout:u,mode:c,root:y,onExitComplete:n?void 0:()=>{if(!E.has(e))return;E.set(e,!0);let t=!0;E.forEach(e=>{e||(t=!1)}),t&&(null==R||R(),V(P.current),d&&(null==x||x()),h&&h())},anchorX:m,children:t},e)})})}},845:(t,e,i)=>{"use strict";i.d(e,{t:()=>s});let s=(0,i(2115).createContext)(null)},869:(t,e,i)=>{"use strict";i.d(e,{L:()=>s});let s=(0,i(2115).createContext)({})},1508:(t,e,i)=>{"use strict";i.d(e,{Q:()=>s});let s=(0,i(2115).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},1580:t=>{t.exports={style:{fontFamily:"'Geist Mono', 'Geist Mono Fallback'",fontStyle:"normal"},className:"__className_9a8899",variable:"__variable_9a8899"}},2082:(t,e,i)=>{"use strict";i.d(e,{xQ:()=>r});var s=i(2115),n=i(845);function r(t=!0){let e=(0,s.useContext)(n.t);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:o,register:a}=e,l=(0,s.useId)();(0,s.useEffect)(()=>{if(t)return a(l)},[t]);let h=(0,s.useCallback)(()=>t&&o&&o(l),[l,o,t]);return!i&&o?[!1,h]:[!0]}},2238:t=>{t.exports={style:{fontFamily:"'Geist', 'Geist Fallback'",fontStyle:"normal"},className:"__className_188709",variable:"__variable_188709"}},2374:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),!function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{cancelIdleCallback:function(){return s},requestIdleCallback:function(){return i}});let i="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(t){let e=Date.now();return self.setTimeout(function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})},1)},s="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(t){return clearTimeout(t)};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},2714:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"setAttributesFromProps",{enumerable:!0,get:function(){return r}});let i={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},s=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function n(t){return["async","defer","noModule"].includes(t)}function r(t,e){for(let[r,o]of Object.entries(e)){if(!e.hasOwnProperty(r)||s.includes(r)||void 0===o)continue;let a=i[r]||r.toLowerCase();"SCRIPT"===t.tagName&&n(a)?t[a]=!!o:t.setAttribute(a,String(o)),(!1===o||"SCRIPT"===t.tagName&&n(a)&&(!o||"false"===o))&&(t.setAttribute(a,""),t.removeAttribute(a))}}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},2885:(t,e,i)=>{"use strict";i.d(e,{M:()=>n});var s=i(2115);function n(t){let e=(0,s.useRef)(null);return null===e.current&&(e.current=t()),e.current}},3465:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var s=i(2115);let n=s.forwardRef(function(t,e){let{title:i,titleId:n,...r}=t;return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":n},r),i?s.createElement("title",{id:n},i):null,s.createElement("path",{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))})},3554:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>n.a});var s=i(9243),n=i.n(s),r={};for(let t in s)"default"!==t&&(r[t]=()=>s[t]);i.d(e,r)},5841:(t,e,i)=>{"use strict";function s(t,e,i){return Math.max(t,Math.min(e,i))}i.d(e,{ReactLenis:()=>g});var n=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(t){if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=t;let i=s(0,this.currentTime/this.duration,1),n=(e=i>=1)?1:this.easing(i);this.value=this.from+(this.to-this.from)*n}else if(this.lerp){var i,n,r,o;this.value=(i=this.value,n=this.to,r=60*this.lerp,(1-(o=1-Math.exp(-r*t)))*i+o*n),Math.round(this.value)===this.to&&(this.value=this.to,e=!0)}else this.value=this.to,e=!0;e&&this.stop(),this.onUpdate?.(this.value,e)}stop(){this.isRunning=!1}fromTo(t,e,{lerp:i,duration:s,easing:n,onStart:r,onUpdate:o}){this.from=this.value=t,this.to=e,this.lerp=i,this.duration=s,this.easing=n,this.currentTime=0,this.isRunning=!0,r?.(),this.onUpdate=o}},r=class{constructor(t,e,{autoResize:i=!0,debounce:s=250}={}){this.wrapper=t,this.content=e,i&&(this.debouncedResize=function(t,e){let i;return function(...s){let n=this;clearTimeout(i),i=setTimeout(()=>{i=void 0,t.apply(n,s)},e)}}(this.resize,s),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};onContentResize=()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},o=class{events={};emit(t,...e){let i=this.events[t]||[];for(let t=0,s=i.length;t{this.events[t]=this.events[t]?.filter(t=>e!==t)}}off(t,e){this.events[t]=this.events[t]?.filter(t=>e!==t)}destroy(){this.events={}}},a=100/6,l={passive:!1},h=class{constructor(t,e={wheelMultiplier:1,touchMultiplier:1}){this.element=t,this.options=e,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,l),this.element.addEventListener("touchstart",this.onTouchStart,l),this.element.addEventListener("touchmove",this.onTouchMove,l),this.element.addEventListener("touchend",this.onTouchEnd,l)}touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new o;on(t,e){return this.emitter.on(t,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,l),this.element.removeEventListener("touchstart",this.onTouchStart,l),this.element.removeEventListener("touchmove",this.onTouchMove,l),this.element.removeEventListener("touchend",this.onTouchEnd,l)}onTouchStart=t=>{let{clientX:e,clientY:i}=t.targetTouches?t.targetTouches[0]:t;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:t})};onTouchMove=t=>{let{clientX:e,clientY:i}=t.targetTouches?t.targetTouches[0]:t,s=-(e-this.touchStart.x)*this.options.touchMultiplier,n=-(i-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:s,y:n},this.emitter.emit("scroll",{deltaX:s,deltaY:n,event:t})};onTouchEnd=t=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:t})};onWheel=t=>{let{deltaX:e,deltaY:i,deltaMode:s}=t,n=1===s?a:2===s?this.window.width:1,r=1===s?a:2===s?this.window.height:1;e*=n,i*=r,e*=this.options.wheelMultiplier,i*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:i,event:t})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}},u=t=>Math.min(1,1.001-Math.pow(2,-10*t)),c=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;__rafID=null;isTouching;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new n;emitter=new o;dimensions;virtualScroll;constructor({wrapper:t=window,content:e=document.documentElement,eventsTarget:i=t,smoothWheel:s=!0,syncTouch:n=!1,syncTouchLerp:o=.075,touchInertiaExponent:a=1.7,duration:l,easing:c,lerp:d=.1,infinite:p=!1,orientation:m="vertical",gestureOrientation:f="horizontal"===m?"both":"vertical",touchMultiplier:g=1,wheelMultiplier:v=1,autoResize:y=!0,prevent:w,virtualScroll:x,overscroll:S=!0,autoRaf:b=!1,anchors:T=!1,autoToggle:P=!1,allowNestedScroll:E=!1,__experimental__naiveDimensions:M=!1}={}){window.lenisVersion="1.3.10",t&&t!==document.documentElement||(t=window),"number"==typeof l&&"function"!=typeof c?c=u:"function"==typeof c&&"number"!=typeof l&&(l=1),this.options={wrapper:t,content:e,eventsTarget:i,smoothWheel:s,syncTouch:n,syncTouchLerp:o,touchInertiaExponent:a,duration:l,easing:c,lerp:d,infinite:p,gestureOrientation:f,orientation:m,touchMultiplier:g,wheelMultiplier:v,autoResize:y,prevent:w,virtualScroll:x,overscroll:S,autoRaf:b,anchors:T,autoToggle:P,allowNestedScroll:E,__experimental__naiveDimensions:M},this.dimensions=new r(t,e,{autoResize:y}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new h(i,{touchMultiplier:g,wheelMultiplier:v}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&this.rootElement.addEventListener("transitionend",this.onTransitionEnd,{passive:!0}),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this.__rafID&&cancelAnimationFrame(this.__rafID)}on(t,e){return this.emitter.on(t,e)}off(t,e){return this.emitter.off(t,e)}onScrollEnd=t=>{t instanceof CustomEvent||"smooth"!==this.isScrolling&&!1!==this.isScrolling||t.stopPropagation()};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};onTransitionEnd=t=>{if(t.propertyName.includes("overflow")){let t=this.isHorizontal?"overflow-x":"overflow-y";["hidden","clip"].includes(getComputedStyle(this.rootElement)[t])?this.internalStop():this.internalStart()}};setScroll(t){this.isHorizontal?this.options.wrapper.scrollTo({left:t,behavior:"instant"}):this.options.wrapper.scrollTo({top:t,behavior:"instant"})}onClick=t=>{let e=t.composedPath().find(t=>t instanceof HTMLAnchorElement&&(t.getAttribute("href")?.startsWith("#")||t.getAttribute("href")?.startsWith("/#")||t.getAttribute("href")?.startsWith("./#")));if(e){let t=e.getAttribute("href");if(t){let e="object"==typeof this.options.anchors&&this.options.anchors?this.options.anchors:void 0,i=`#${t.split("#")[1]}`;["#","/#","./#","#top","/#top","./#top"].includes(t)&&(i=0),this.scrollTo(i,e)}}};onPointerDown=t=>{1===t.button&&this.reset()};onVirtualScroll=t=>{if("function"==typeof this.options.virtualScroll&&!1===this.options.virtualScroll(t))return;let{deltaX:e,deltaY:i,event:s}=t;if(this.emitter.emit("virtual-scroll",{deltaX:e,deltaY:i,event:s}),s.ctrlKey||s.lenisStopPropagation)return;let n=s.type.includes("touch"),r=s.type.includes("wheel");this.isTouching="touchstart"===s.type||"touchmove"===s.type;let o=0===e&&0===i;if(this.options.syncTouch&&n&&"touchstart"===s.type&&o&&!this.isStopped&&!this.isLocked)return void this.reset();let a="vertical"===this.options.gestureOrientation&&0===i||"horizontal"===this.options.gestureOrientation&&0===e;if(o||a)return;let l=s.composedPath();l=l.slice(0,l.indexOf(this.rootElement));let h=this.options.prevent;if(l.find(t=>t instanceof HTMLElement&&("function"==typeof h&&h?.(t)||t.hasAttribute?.("data-lenis-prevent")||n&&t.hasAttribute?.("data-lenis-prevent-touch")||r&&t.hasAttribute?.("data-lenis-prevent-wheel")||this.options.allowNestedScroll&&this.checkNestedScroll(t,{deltaX:e,deltaY:i}))))return;if(this.isStopped||this.isLocked){s.cancelable&&s.preventDefault();return}if(!(this.options.syncTouch&&n||this.options.smoothWheel&&r)){this.isScrolling="native",this.animate.stop(),s.lenisStopPropagation=!0;return}let u=i;"both"===this.options.gestureOrientation?u=Math.abs(i)>Math.abs(e)?i:e:"horizontal"===this.options.gestureOrientation&&(u=e),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&(this.animatedScroll>0&&this.animatedScroll0||this.animatedScroll===this.limit&&i<0))&&(s.lenisStopPropagation=!0),s.cancelable&&s.preventDefault();let c=n&&this.options.syncTouch,d=n&&"touchend"===s.type;d&&(u=Math.sign(this.velocity)*Math.pow(Math.abs(this.velocity),this.options.touchInertiaExponent)),this.scrollTo(this.targetScroll+u,{programmatic:!1,...c?{lerp:d?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}onNativeScroll=()=>{if(null!==this._resetVelocityTimeout&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(!1===this.isScrolling||"native"===this.isScrolling){let t=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-t,this.direction=Math.sign(this.animatedScroll-t),this.isStopped||(this.isScrolling="native"),this.emit(),0!==this.velocity&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}};reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle)return void this.rootElement.style.removeProperty("overflow");this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle)return void this.rootElement.style.setProperty("overflow","clip");this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}raf=t=>{let e=t-(this.time||t);this.time=t,this.animate.advance(.001*e),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))};scrollTo(t,{offset:e=0,immediate:i=!1,lock:n=!1,duration:r=this.options.duration,easing:o=this.options.easing,lerp:a=this.options.lerp,onStart:l,onComplete:h,force:c=!1,programmatic:d=!0,userData:p}={}){if(!this.isStopped&&!this.isLocked||c){if("string"==typeof t&&["top","left","start"].includes(t))t=0;else if("string"==typeof t&&["bottom","right","end"].includes(t))t=this.limit;else{let i;if("string"==typeof t?i=document.querySelector(t):t instanceof HTMLElement&&t?.nodeType&&(i=t),i){if(this.options.wrapper!==window){let t=this.rootElement.getBoundingClientRect();e-=this.isHorizontal?t.left:t.top}let s=i.getBoundingClientRect();t=(this.isHorizontal?s.left:s.top)+this.animatedScroll}}if("number"==typeof t){if(t+=e,t=Math.round(t),this.options.infinite){if(d){this.targetScroll=this.animatedScroll=this.scroll;let e=t-this.animatedScroll;e>this.limit/2?t-=this.limit:e<-this.limit/2&&(t+=this.limit)}}else t=s(0,t,this.limit);if(t===this.targetScroll){l?.(this),h?.(this);return}if(this.userData=p??{},i){this.animatedScroll=this.targetScroll=t,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),h?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}d||(this.targetScroll=t),"number"==typeof r&&"function"!=typeof o?o=u:"function"==typeof o&&"number"!=typeof r&&(r=1),this.animate.fromTo(this.animatedScroll,t,{duration:r,easing:o,lerp:a,onStart:()=>{n&&(this.isLocked=!0),this.isScrolling="smooth",l?.(this)},onUpdate:(t,e)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=t-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=t,this.setScroll(this.scroll),d&&(this.targetScroll=t),e||this.emit(),e&&(this.reset(),this.emit(),h?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}checkNestedScroll(t,{deltaX:e,deltaY:i}){let s,n,r,o,a,l,h,u,c,d,p,m,f,g,v=Date.now(),y=t._lenis??={},w=this.options.gestureOrientation;if(v-(y.time??0)>2e3){y.time=Date.now();let e=window.getComputedStyle(t);y.computedStyle=e;let i=e.overflowX,c=e.overflowY;if(s=["auto","overlay","scroll"].includes(i),n=["auto","overlay","scroll"].includes(c),y.hasOverflowX=s,y.hasOverflowY=n,!s&&!n||"vertical"===w&&!n||"horizontal"===w&&!s)return!1;a=t.scrollWidth,l=t.scrollHeight,h=t.clientWidth,u=t.clientHeight,r=a>h,o=l>u,y.isScrollableX=r,y.isScrollableY=o,y.scrollWidth=a,y.scrollHeight=l,y.clientWidth=h,y.clientHeight=u}else r=y.isScrollableX,o=y.isScrollableY,s=y.hasOverflowX,n=y.hasOverflowY,a=y.scrollWidth,l=y.scrollHeight,h=y.clientWidth,u=y.clientHeight;if(!s&&!n||!r&&!o||"vertical"===w&&(!n||!o)||"horizontal"===w&&(!s||!r)||("horizontal"===w?c="x":"vertical"===w?c="y":(0!==e&&s&&r&&(c="x"),0!==i&&n&&o&&(c="y")),!c))return!1;if("x"===c)d=t.scrollLeft,p=a-h,m=e,f=s,g=r;else{if("y"!==c)return!1;d=t.scrollTop,p=l-u,m=i,f=n,g=o}return(m>0?d0)&&f&&g}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.__experimental__naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return"horizontal"===this.options.orientation}get actualScroll(){let t=this.options.wrapper;return this.isHorizontal?t.scrollX??t.scrollLeft:t.scrollY??t.scrollTop}get scroll(){var t;return this.options.infinite?(this.animatedScroll%(t=this.limit)+t)%t:this.animatedScroll}get progress(){return 0===this.limit?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(t){this._isScrolling!==t&&(this._isScrolling=t,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(t){this._isStopped!==t&&(this._isStopped=t,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(t){this._isLocked!==t&&(this._isLocked=t,this.updateClassName())}get isSmooth(){return"smooth"===this.isScrolling}get className(){let t="lenis";return this.options.autoToggle&&(t+=" lenis-autoToggle"),this.isStopped&&(t+=" lenis-stopped"),this.isLocked&&(t+=" lenis-locked"),this.isScrolling&&(t+=" lenis-scrolling"),"smooth"===this.isScrolling&&(t+=" lenis-smooth"),t}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}},d=i(2115),p=i(5155),m=(0,d.createContext)(null),f=new class{set(t){for(let e of(this.state=t,this.listeners))e(this.state)}subscribe(t){return this.listeners=[...this.listeners,t],()=>{this.listeners=this.listeners.filter(e=>e!==t)}}get(){return this.state}constructor(t){this.listeners=[],this.state=t}}(null),g=(0,d.forwardRef)((t,e)=>{let{children:i,root:s=!1,options:n={},autoRaf:r=!0,...o}=t,a=(0,d.useRef)(null),l=(0,d.useRef)(null),[h,u]=(0,d.useState)(void 0);(0,d.useImperativeHandle)(e,()=>({wrapper:a.current,content:l.current,lenis:h}),[h]),(0,d.useEffect)(()=>{var t;let e=new c({...n,...a.current&&l.current&&{wrapper:a.current,content:l.current},autoRaf:null!=(t=null==n?void 0:n.autoRaf)?t:r});return u(e),()=>{e.destroy(),u(void 0)}},[s,JSON.stringify({...n,wrapper:null,content:null})]);let g=(0,d.useRef)([]),v=(0,d.useCallback)((t,e)=>{g.current.push({callback:t,priority:e}),g.current.sort((t,e)=>t.priority-e.priority)},[]),y=(0,d.useCallback)(t=>{g.current=g.current.filter(e=>e.callback!==t)},[]);return((0,d.useEffect)(()=>{if(s&&h)return f.set({lenis:h,addCallback:v,removeCallback:y}),()=>f.set(null)},[s,h,v,y]),(0,d.useEffect)(()=>{if(!h)return;let t=t=>{for(let i=0;i{h.off("scroll",t)}},[h]),i)?(0,p.jsx)(m.Provider,{value:{lenis:h,addCallback:v,removeCallback:y},children:s&&"asChild"!==s?i:(0,p.jsx)("div",{ref:a,...o,children:(0,p.jsx)("div",{ref:l,children:i})})}):null})},6063:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sendGTMEvent=void 0,e.GoogleTagManager=function(t){let{gtmId:e,gtmScriptUrl:i,dataLayerName:a="dataLayer",auth:l,preview:h,dataLayer:u,nonce:c}=t;o=a;let d=new URL(i||"https://www.googletagmanager.com/gtm.js");return e&&d.searchParams.set("id",e),"dataLayer"!==a&&d.searchParams.set("l",a),l&&d.searchParams.set("gtm_auth",l),h&&(d.searchParams.set("gtm_preview",h),d.searchParams.set("gtm_cookies_win","x")),(0,n.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:"\n (function(w,l){\n w[l]=w[l]||[];\n w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});\n ".concat(u?"w[l].push(".concat(JSON.stringify(u),")"):"","\n })(window,'").concat(a,"');")},nonce:c}),(0,s.jsx)(r.default,{id:"_next-gtm","data-ntpc":"GTM",src:d.href,nonce:c})]})};let s=i(5155),n=i(2115),r=function(t){return t&&t.__esModule?t:{default:t}}(i(3554)),o="dataLayer";e.sendGTMEvent=(t,e)=>{let i=e||o;window[i]=window[i]||[],window[i].push(t)}},6259:(t,e,i)=>{"use strict";let s;Object.defineProperty(e,"__esModule",{value:!0}),e.GoogleAnalytics=function(t){let{gaId:e,debugMode:i,dataLayerName:a="dataLayer",nonce:l}=t;return void 0===s&&(s=a),(0,r.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:"\n window['".concat(a,"'] = window['").concat(a,"'] || [];\n function gtag(){window['").concat(a,"'].push(arguments);}\n gtag('js', new Date());\n\n gtag('config', '").concat(e,"' ").concat(i?",{ 'debug_mode': true }":"",");")},nonce:l}),(0,n.jsx)(o.default,{id:"_next-ga",src:"https://www.googletagmanager.com/gtag/js?id=".concat(e),nonce:l})]})},e.sendGAEvent=function(){for(var t=arguments.length,e=Array(t),i=0;i{"use strict";function s(t){return"object"==typeof t&&null!==t}i.d(e,{G:()=>s})},7351:(t,e,i)=>{"use strict";i.d(e,{s:()=>n});var s=i(6983);function n(t){return(0,s.G)(t)&&"offsetHeight"in t}},7494:(t,e,i)=>{"use strict";i.d(e,{E:()=>n});var s=i(2115);let n=i(8972).B?s.useLayoutEffect:s.useEffect},8274:(t,e,i)=>{"use strict";let s;i.d(e,{P:()=>rm});var n=i(2115);let r=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],o=new Set(r),a=t=>180*t/Math.PI,l=t=>u(a(Math.atan2(t[1],t[0]))),h={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:l,rotateZ:l,skewX:t=>a(Math.atan(t[1])),skewY:t=>a(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},u=t=>((t%=360)<0&&(t+=360),t),c=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),d=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),p={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:c,scaleY:d,scale:t=>(c(t)+d(t))/2,rotateX:t=>u(a(Math.atan2(t[6],t[5]))),rotateY:t=>u(a(Math.atan2(-t[2],t[0]))),rotateZ:l,rotate:l,skewX:t=>a(Math.atan(t[4])),skewY:t=>a(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function m(t){return+!!t.includes("scale")}function f(t,e){let i,s;if(!t||"none"===t)return m(e);let n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)i=p,s=n;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=h,s=e}if(!s)return m(e);let r=i[e],o=s[1].split(",").map(g);return"function"==typeof r?r(o):o[r]}function g(t){return parseFloat(t.trim())}let v=t=>e=>"string"==typeof e&&e.startsWith(t),y=v("--"),w=v("var(--"),x=t=>!!w(t)&&S.test(t.split("/*")[0].trim()),S=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function b({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}let T=(t,e,i)=>t+(e-t)*i;function P(t){return void 0===t||1===t}function E({scale:t,scaleX:e,scaleY:i}){return!P(t)||!P(e)||!P(i)}function M(t){return E(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}function C(t,e,i,s,n){return void 0!==n&&(t=s+n*(t-s)),s+i*(t-s)+e}function V(t,e=0,i=1,s,n){t.min=C(t.min,e,i,s,n),t.max=C(t.max,e,i,s,n)}function k(t,{x:e,y:i}){V(t.x,e.translate,e.scale,e.originPoint),V(t.y,i.translate,i.scale,i.originPoint)}function R(t,e){t.min=t.min+e,t.max=t.max+e}function D(t,e,i,s,n=.5){let r=T(t.min,t.max,n);V(t,e,i,r,s)}function L(t,e){D(t.x,e.x,e.scaleX,e.scale,e.originX),D(t.y,e.y,e.scaleY,e.scale,e.originY)}function j(t,e){return b(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}let O=new Set(["width","height","top","left","right","bottom",...r]),F=(t,e,i)=>i>e?e:i"number"==typeof t,parse:parseFloat,transform:t=>t},I={..._,transform:t=>F(0,1,t)},B={..._,default:1},N=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),z=N("deg"),W=N("%"),U=N("px"),H=N("vh"),$=N("vw"),Y={...W,parse:t=>W.parse(t)/100,transform:t=>W.transform(100*t)},X=t=>e=>e.test(t),q=[_,U,W,z,$,H,{test:t=>"auto"===t,parse:t=>t}],G=t=>q.find(X(t)),K=()=>{},Z=()=>{},Q=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),J=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tt=t=>t===_||t===U,te=new Set(["x","y","z"]),ti=r.filter(t=>!te.has(t)),ts={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})=>f(e,"x"),y:(t,{transform:e})=>f(e,"y")};ts.translateX=ts.x,ts.translateY=ts.y;let tn=t=>t,tr={},to=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],ta={value:null,addProjectionMetrics:null};function tl(t,e){let i=!1,s=!0,n={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,o=to.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,s=new Set,n=!1,r=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function h(e){o.has(e)&&(u.schedule(e),t()),l++,e(a)}let u={schedule:(t,e=!1,r=!1)=>{let a=r&&n?i:s;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{s.delete(t),o.delete(t)},process:t=>{if(a=t,n){r=!0;return}n=!0,[i,s]=[s,i],i.forEach(h),e&&ta.value&&ta.value.frameloop[e].push(l),l=0,i.clear(),n=!1,r&&(r=!1,u.process(t))}};return u}(r,e?i:void 0),t),{}),{setup:a,read:l,resolveKeyframes:h,preUpdate:u,update:c,preRender:d,render:p,postRender:m}=o,f=()=>{let r=tr.useManualTiming?n.timestamp:performance.now();i=!1,tr.useManualTiming||(n.delta=s?1e3/60:Math.max(Math.min(r-n.timestamp,40),1)),n.timestamp=r,n.isProcessing=!0,a.process(n),l.process(n),h.process(n),u.process(n),c.process(n),d.process(n),p.process(n),m.process(n),n.isProcessing=!1,i&&e&&(s=!1,t(f))};return{schedule:to.reduce((e,r)=>{let a=o[r];return e[r]=(e,r=!1,o=!1)=>(!i&&(i=!0,s=!0,n.isProcessing||t(f)),a.schedule(e,r,o)),e},{}),cancel:t=>{for(let e=0;et.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return ti.forEach(i=>{let s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(+!!i.startsWith("scale")))}),e}(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)})}tf=!1,tm=!1,tp.forEach(t=>t.complete(tg)),tp.clear()}function ty(){tp.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tf=!0)})}class tw{constructor(t,e,i,s,n,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=n,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(tp.add(this),tm||(tm=!0,th.read(ty),th.resolveKeyframes(tv))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;if(null===t[0]){let n=s?.get(),r=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){let s=i.readValue(e,r);null!=s&&(t[0]=s)}void 0===t[0]&&(t[0]=r),s&&void 0===n&&s.set(t[0])}for(let e=1;e/^0[^.\s]+$/u.test(t),tS=t=>Math.round(1e5*t)/1e5,tb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tT=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tP=(t,e)=>i=>!!("string"==typeof i&&tT.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tE=(t,e,i)=>s=>{if("string"!=typeof s)return s;let[n,r,o,a]=s.match(tb);return{[t]:parseFloat(n),[e]:parseFloat(r),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tM={..._,transform:t=>Math.round(F(0,255,t))},tA={test:tP("rgb","red"),parse:tE("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+tM.transform(t)+", "+tM.transform(e)+", "+tM.transform(i)+", "+tS(I.transform(s))+")"},tC={test:tP("#"),parse:function(t){let e="",i="",s="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,s+=s,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:n?parseInt(n,16)/255:1}},transform:tA.transform},tV={test:tP("hsl","hue"),parse:tE("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+W.transform(tS(e))+", "+W.transform(tS(i))+", "+tS(I.transform(s))+")"},tk={test:t=>tA.test(t)||tC.test(t)||tV.test(t),parse:t=>tA.test(t)?tA.parse(t):tV.test(t)?tV.parse(t):tC.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tA.transform(t):tV.transform(t),getAnimatableNone:t=>{let e=tk.parse(t);return e.alpha=0,tk.transform(e)}},tR=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tD="number",tL="color",tj=/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 tO(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},n=[],r=0,o=e.replace(tj,t=>(tk.test(t)?(s.color.push(r),n.push(tL),i.push(tk.parse(t))):t.startsWith("var(")?(s.var.push(r),n.push("var"),i.push(t)):(s.number.push(r),n.push(tD),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:o,indexes:s,types:n}}function tF(t){return tO(t).values}function t_(t){let{split:e,types:i}=tO(t),s=e.length;return t=>{let n="";for(let r=0;r"number"==typeof t?0:tk.test(t)?tk.getAnimatableNone(t):t,tB={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(tb)?.length||0)+(t.match(tR)?.length||0)>0},parse:tF,createTransformer:t_,getAnimatableNone:function(t){let e=tF(t);return t_(t)(e.map(tI))}},tN=new Set(["brightness","contrast","saturate","opacity"]);function tz(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match(tb)||[];if(!s)return t;let n=i.replace(s,""),r=+!!tN.has(e);return s!==i&&(r*=100),e+"("+r+n+")"}let tW=/\b([a-z-]*)\(.*?\)/gu,tU={...tB,getAnimatableNone:t=>{let e=t.match(tW);return e?e.map(tz).join(" "):t}},tH={..._,transform:Math.round},t$={borderWidth:U,borderTopWidth:U,borderRightWidth:U,borderBottomWidth:U,borderLeftWidth:U,borderRadius:U,radius:U,borderTopLeftRadius:U,borderTopRightRadius:U,borderBottomRightRadius:U,borderBottomLeftRadius:U,width:U,maxWidth:U,height:U,maxHeight:U,top:U,right:U,bottom:U,left:U,padding:U,paddingTop:U,paddingRight:U,paddingBottom:U,paddingLeft:U,margin:U,marginTop:U,marginRight:U,marginBottom:U,marginLeft:U,backgroundPositionX:U,backgroundPositionY:U,rotate:z,rotateX:z,rotateY:z,rotateZ:z,scale:B,scaleX:B,scaleY:B,scaleZ:B,skew:z,skewX:z,skewY:z,distance:U,translateX:U,translateY:U,translateZ:U,x:U,y:U,z:U,perspective:U,transformPerspective:U,opacity:I,originX:Y,originY:Y,originZ:U,zIndex:tH,fillOpacity:I,strokeOpacity:I,numOctaves:tH},tY={...t$,color:tk,backgroundColor:tk,outlineColor:tk,fill:tk,stroke:tk,borderColor:tk,borderTopColor:tk,borderRightColor:tk,borderBottomColor:tk,borderLeftColor:tk,filter:tU,WebkitFilter:tU},tX=t=>tY[t];function tq(t,e){let i=tX(t);return i!==tU&&(i=tB),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tG=new Set(["auto","none","0"]);class tK extends tw{constructor(t,e,i,s,n){super(t,e,i,s,n,!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()}}let tZ=t=>!!(t&&t.getVelocity);function tQ(){s=void 0}let tJ={now:()=>(void 0===s&&tJ.set(tc.isProcessing||tr.useManualTiming?tc.timestamp:performance.now()),s),set:t=>{s=t,queueMicrotask(tQ)}};function t0(t,e){-1===t.indexOf(e)&&t.push(e)}function t1(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class t5{constructor(){this.subscriptions=[]}add(t){return t0(this.subscriptions,t),()=>t1(this.subscriptions,t)}notify(t,e,i){let s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](t,e,i);else for(let n=0;n{let e=tJ.now();if(this.updatedAt!==e&&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()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=tJ.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 t5);let i=this.events[t].add(e);return"change"===t?()=>{i(),th.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){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}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 t2.current&&t2.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=tJ.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}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 t7(t,e){return new t3(t,e)}let t4=[...q,tk,tB],{schedule:t9}=tl(queueMicrotask,!1),t6={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"]},t8={};for(let t in t6)t8[t]={isEnabled:e=>t6[t].some(t=>!!e[t])};let et=()=>({translate:0,scale:1,origin:0,originPoint:0}),ee=()=>({x:et(),y:et()}),ei=()=>({min:0,max:0}),es=()=>({x:ei(),y:ei()});var en=i(8972);let er={current:null},eo={current:!1},ea=new WeakMap;function el(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function eh(t){return"string"==typeof t||Array.isArray(t)}let eu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ec=["initial",...eu];function ed(t){return el(t.animate)||ec.some(e=>eh(t[e]))}function ep(t){return!!(ed(t)||t.variants)}function em(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function ef(t,e,i,s){if("function"==typeof e){let[n,r]=em(s);e=e(void 0!==i?i:t.custom,n,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[n,r]=em(s);e=e(void 0!==i?i:t.custom,n,r)}return e}let eg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ev{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:n,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tw,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=tJ.now();this.renderScheduledAtthis.bindToMotionValue(e,t)),eo.current||function(){if(eo.current=!0,en.B)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>er.current=t.matches;t.addEventListener("change",e),e()}else er.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||er.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),tu(this.notifyUpdate),tu(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(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}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let s=o.has(t);s&&this.onBindTransform&&this.onBindTransform();let n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&th.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),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 t8){let e=t8[t];if(!e)continue;let{isEnabled:i,Feature:s}=e;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(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):es()}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=t7(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&&(Q(i)||tx(i)))i=parseFloat(i);else{let s;s=i,!t4.find(X(s))&&tB.test(e)&&(i=tq(t,e))}this.setBaseTarget(t,tZ(i)?i.get():i)}return tZ(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 s=ef(this.props,i,this.presenceContext?.custom);s&&(e=s[t])}if(i&&void 0!==e)return e;let s=this.getBaseTargetFromProps(this.props,t);return void 0===s||tZ(s)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new t5),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){t9.render(this.render)}}class ey extends ev{constructor(){super(...arguments),this.KeyframeResolver=tK}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;tZ(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}let ew=(t,e)=>e&&"number"==typeof t?e.transform(t):t,ex={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eS=r.length;function eb(t,e,i){let{style:s,vars:n,transformOrigin:a}=t,l=!1,h=!1;for(let t in e){let i=e[t];if(o.has(t)){l=!0;continue}if(y(t)){n[t]=i;continue}{let e=ew(i,t$[t]);t.startsWith("origin")?(h=!0,a[t]=e):s[t]=e}}if(!e.transform&&(l||i?s.transform=function(t,e,i){let s="",n=!0;for(let o=0;o{let{transform:i="none"}=getComputedStyle(t);return f(i,e)})(t,e);{let i=window.getComputedStyle(t),s=(y(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return j(t,e)}build(t,e,i){eb(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return eM(t,e,i)}}let eC=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),eV={offset:"stroke-dashoffset",array:"stroke-dasharray"},ek={offset:"strokeDashoffset",array:"strokeDasharray"};function eR(t,{attrX:e,attrY:i,attrScale:s,pathLength:n,pathSpacing:r=1,pathOffset:o=0,...a},l,h,u){if(eb(t,a,h),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:d}=t;c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=u?.transformBox??"fill-box",delete c.transformBox),void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==s&&(c.scale=s),void 0!==n&&function(t,e,i=1,s=0,n=!0){t.pathLength=1;let r=n?eV:ek;t[r.offset]=U.transform(-s);let o=U.transform(e),a=U.transform(i);t[r.array]=`${o} ${a}`}(c,n,r,o,!1)}let eD=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"]),eL=t=>"string"==typeof t&&"svg"===t.toLowerCase();function ej(t,e,i){let s=eM(t,e,i);for(let i in t)(tZ(t[i])||tZ(e[i]))&&(s[-1!==r.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return s}class eO extends ey{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=es}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(o.has(e)){let t=tX(e);return t&&t.default||0}return e=eD.has(e)?e:eC(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return ej(t,e,i)}build(t,e,i){eR(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,s){for(let i in eT(t,e,void 0,s),e.attrs)t.setAttribute(eD.has(i)?i:eC(i),e.attrs[i])}mount(t){this.isSVGTag=eL(t.tagName),super.mount(t)}}let eF=["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 e_(t){if("string"!=typeof t||t.includes("-"));else if(eF.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var eI=i(5155),eB=i(869);let eN=(0,n.createContext)({strict:!1});var ez=i(1508);let eW=(0,n.createContext)({});function eU(t){return Array.isArray(t)?t.join(" "):t}let eH=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function e$(t,e,i){for(let s in e)tZ(e[s])||eE(s,i)||(t[s]=e[s])}let eY=()=>({...eH(),attrs:{}}),eX=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 eq(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||eX.has(t)}let eG=t=>!eq(t);try{!function(t){"function"==typeof t&&(eG=e=>e.startsWith("on")?!eq(e):t(e))}(require("@emotion/is-prop-valid").default)}catch{}var eK=i(845),eZ=i(2885);function eQ(t){return tZ(t)?t.get():t}let eJ=t=>(e,i)=>{let s=(0,n.useContext)(eW),r=(0,n.useContext)(eK.t),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,s,n){return{latestValues:function(t,e,i,s){let n={},r=s(t,{});for(let t in r)n[t]=eQ(r[t]);let{initial:o,animate:a}=t,l=ed(t),h=ep(t);e&&h&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let u=!!i&&!1===i.initial,c=(u=u||!1===o)?a:o;if(c&&"boolean"!=typeof c&&!el(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;r&&function(t){for(let e in t)t8[e]={...t8[e],...t[e]}}(r);let a=e_(t)?e1:e0;function l(e,i){var r;let l,h={...(0,n.useContext)(ez.Q),...e,layoutId:function(t){let{layoutId:e}=t,i=(0,n.useContext)(eB.L).id;return i&&void 0!==e?i+"-"+e:e}(e)},{isStatic:u}=h,c=function(t){let{initial:e,animate:i}=function(t,e){if(ed(t)){let{initial:e,animate:i}=t;return{initial:!1===e||eh(e)?e:void 0,animate:eh(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,n.useContext)(eW));return(0,n.useMemo)(()=>({initial:e,animate:i}),[eU(e),eU(i)])}(e),d=a(e,u);if(!u&&en.B){(0,n.useContext)(eN).strict;let e=function(t){let{drag:e,layout:i}=t8;if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(h);l=e.MeasureLayout,c.visualElement=function(t,e,i,s,r){let{visualElement:o}=(0,n.useContext)(eW),a=(0,n.useContext)(eN),l=(0,n.useContext)(eK.t),h=(0,n.useContext)(ez.Q).reducedMotion,u=(0,n.useRef)(null);s=s||a.renderer,!u.current&&s&&(u.current=s(t,{visualState:e,parent:o,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:h}));let c=u.current,d=(0,n.useContext)(e7);c&&!c.projection&&r&&("html"===c.type||"svg"===c.type)&&function(t,e,i,s){let{layoutId:n,layout:r,drag:o,dragConstraints:a,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:n,layout:r,alwaysMeasureLayout:!!o||a&&e2(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:s,crossfade:u,layoutScroll:l,layoutRoot:h})}(u.current,i,r,d);let p=(0,n.useRef)(!1);(0,n.useInsertionEffect)(()=>{c&&p.current&&c.update(i,l)});let m=i[e3],f=(0,n.useRef)(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return(0,e4.E)(()=>{c&&(p.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),f.current&&c.animationState&&c.animationState.animateChanges())}),(0,n.useEffect)(()=>{c&&(!f.current&&c.animationState&&c.animationState.animateChanges(),f.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),f.current=!1),c.enteringChildren=void 0)}),c}(t,d,h,o,e.ProjectionNode)}return(0,eI.jsxs)(eW.Provider,{value:c,children:[l&&c.visualElement?(0,eI.jsx)(l,{visualElement:c.visualElement,...h}):null,function(t,e,i,{latestValues:s},r,o=!1){let a=(e_(t)?function(t,e,i,s){let r=(0,n.useMemo)(()=>{let i=eY();return eR(i,e,eL(s),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};e$(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},s=function(t,e){let i=t.style||{},s={};return e$(s,i,t),Object.assign(s,function({transformTemplate:t},e){return(0,n.useMemo)(()=>{let i=eH();return eb(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),s}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.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=s,i})(e,s,r,t),l=function(t,e,i){let s={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(eG(n)||!0===i&&eq(n)||!e&&!eq(n)||t.draggable&&n.startsWith("onDrag"))&&(s[n]=t[n]);return s}(e,"string"==typeof t,o),h=t!==n.Fragment?{...l,...a,ref:i}:{},{children:u}=e,c=(0,n.useMemo)(()=>tZ(u)?u.get():u,[u]);return(0,n.createElement)(t,{...h,children:c})}(t,e,(r=c.visualElement,(0,n.useCallback)(t=>{t&&d.onMount&&d.onMount(t),r&&(t?r.mount(t):r.unmount()),i&&("function"==typeof i?i(t):e2(i)&&(i.current=t))},[r])),d,u,s)]})}l.displayName="motion.".concat("string"==typeof t?t:"create(".concat(null!=(i=null!=(e=t.displayName)?e:t.name)?i:"",")"));let h=(0,n.forwardRef)(l);return h[e5]=t,h}function e6(t,e,i){let s=t.getProps();return ef(s,e,void 0!==i?i:s.custom,t)}function e8(t,e){return t?.[e]??t?.default??t}let it=t=>Array.isArray(t);function ie(t,e){let i=t.getValue("willChange");if(tZ(i)&&i.add)return i.add(e);if(!i&&tr.WillChange){let i=new tr.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function ii(t){t.duration=0,t.type}let is=(t,e)=>i=>e(t(i)),ir=(...t)=>t.reduce(is),io=t=>1e3*t,ia={layout:0,mainThread:0,waapi:0};function il(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}function ih(t,e){return i=>i>0?e:t}let iu=(t,e,i)=>{let s=t*t,n=i*(e*e-s)+s;return n<0?0:Math.sqrt(n)},ic=[tC,tA,tV];function id(t){let e=ic.find(e=>e.test(t));if(K(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===tV&&(i=function({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,i/=100;let n=0,r=0,o=0;if(e/=100){let s=i<.5?i*(1+e):i+e-i*e,a=2*i-s;n=il(a,s,t+1/3),r=il(a,s,t),o=il(a,s,t-1/3)}else n=r=o=i;return{red:Math.round(255*n),green:Math.round(255*r),blue:Math.round(255*o),alpha:s}}(i)),i}let ip=(t,e)=>{let i=id(t),s=id(e);if(!i||!s)return ih(t,e);let n={...i};return t=>(n.red=iu(i.red,s.red,t),n.green=iu(i.green,s.green,t),n.blue=iu(i.blue,s.blue,t),n.alpha=T(i.alpha,s.alpha,t),tA.transform(n))},im=new Set(["none","hidden"]);function ig(t,e){return i=>T(t,e,i)}function iv(t){return"number"==typeof t?ig:"string"==typeof t?x(t)?ih:tk.test(t)?ip:ix:Array.isArray(t)?iy:"object"==typeof t?tk.test(t)?ip:iw:ih}function iy(t,e){let i=[...t],s=i.length,n=t.map((t,i)=>iv(t)(t,e[i]));return t=>{for(let e=0;e{for(let e in s)i[e]=s[e](t);return i}}let ix=(t,e)=>{let i=tB.createTransformer(e),s=tO(t),n=tO(e);return s.indexes.var.length===n.indexes.var.length&&s.indexes.color.length===n.indexes.color.length&&s.indexes.number.length>=n.indexes.number.length?im.has(t)&&!n.values.length||im.has(e)&&!s.values.length?function(t,e){return im.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):ir(iy(function(t,e){let i=[],s={color:0,var:0,number:0};for(let n=0;n{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>th.update(e,t),stop:()=>tu(e),now:()=>tc.isProcessing?tc.timestamp:tJ.now()}},iT=(t,e,i=10)=>{let s="",n=Math.max(Math.round(e/i),2);for(let e=0;e=2e4?1/0:e}function iE(t,e,i){var s,n;let r=Math.max(e-5,0);return s=i-t(r),(n=e-r)?1e3/n*s:0}let iM={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};function iA(t,e){return t*Math.sqrt(1-e*e)}let iC=["duration","bounce"],iV=["stiffness","damping","mass"];function ik(t,e){return e.some(e=>void 0!==t[e])}function iR(t=iM.visualDuration,e=iM.bounce){let i,s="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:n,restDelta:r}=s,o=s.keyframes[0],a=s.keyframes[s.keyframes.length-1],l={done:!1,value:o},{stiffness:h,damping:u,mass:c,duration:d,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:iM.velocity,stiffness:iM.stiffness,damping:iM.damping,mass:iM.mass,isResolvedFromDuration:!1,...t};if(!ik(t,iV)&&ik(t,iC))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),s=i*i,n=2*F(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:iM.mass,stiffness:s,damping:n}}else{let i=function({duration:t=iM.duration,bounce:e=iM.bounce,velocity:i=iM.velocity,mass:s=iM.mass}){let n,r;K(t<=io(iM.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=F(iM.minDamping,iM.maxDamping,o),t=F(iM.minDuration,iM.maxDuration,t/1e3),o<1?(n=e=>{let s=e*o,n=s*t;return .001-(s-i)/iA(e,o)*Math.exp(-n)},r=e=>{let s=e*o*t,r=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-s),l=iA(Math.pow(e,2),o);return(s*i+i-r)*a*(-n(e)+.001>0?-1:1)/l}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}(n,r,5/t);if(t=io(t),isNaN(a))return{stiffness:iM.stiffness,damping:iM.damping,duration:t};{let e=Math.pow(a,2)*s;return{stiffness:e,damping:2*o*Math.sqrt(s*e),duration:t}}}(t);(e={...e,...i,mass:iM.mass}).isResolvedFromDuration=!0}return e}({...s,velocity:-((s.velocity||0)/1e3)}),f=p||0,g=u/(2*Math.sqrt(h*c)),v=a-o,y=Math.sqrt(h/c)/1e3,w=5>Math.abs(v);if(n||(n=w?iM.restSpeed.granular:iM.restSpeed.default),r||(r=w?iM.restDelta.granular:iM.restDelta.default),g<1){let t=iA(y,g);i=e=>a-Math.exp(-g*y*e)*((f+g*y*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}else if(1===g)i=t=>a-Math.exp(-y*t)*(v+(f+y*v)*t);else{let t=y*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*y*e),s=Math.min(t*e,300);return a-i*((f+g*y*v)*Math.sinh(s)+t*v*Math.cosh(s))/t}}let x={calculatedDuration:m&&d||null,next:t=>{let e=i(t);if(m)l.done=t>=d;else{let s=0===t?f:0;g<1&&(s=0===t?io(f):iE(i,t,e));let o=Math.abs(a-e)<=r;l.done=Math.abs(s)<=n&&o}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(iP(x),2e4),e=iT(e=>x.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return x}function iD({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:n=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:h=.5,restSpeed:u}){let c,d,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,v=void 0===o?g:o(g);v!==g&&(f=v-p);let y=t=>-f*Math.exp(-t/s),w=t=>v+y(t),x=t=>{let e=y(t),i=w(t);m.done=Math.abs(e)<=h,m.value=m.done?v:i},S=t=>{let e;if(e=m.value,void 0!==a&&el){var i;c=t,d=iR({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i){let e=!1;return(d||void 0!==c||(e=!0,x(t),S(t)),void 0!==c&&t>=c)?d.next(t-c):(e||x(t),m)}}}iR.applyToOptions=t=>{let e=function(t,e=100,i){let s=i({...t,keyframes:[0,e]}),n=Math.min(iP(s),2e4);return{type:"keyframes",ease:t=>s.next(n*t).value/e,duration:n/1e3}}(t,100,iR);return t.ease=e.ease,t.duration=io(e.duration),t.type="keyframes",t};let iL=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function ij(t,e,i,s){return t===e&&i===s?tn:n=>0===n||1===n?n:iL(function(t,e,i,s,n){let r,o,a=0;do(r=iL(o=e+(i-e)/2,s,n)-t)>0?i=o:e=o;while(Math.abs(r)>1e-7&&++a<12);return o}(n,0,1,t,i),e,s)}let iO=ij(.42,0,1,1),iF=ij(0,0,.58,1),i_=ij(.42,0,.58,1),iI=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,iB=t=>e=>1-t(1-e),iN=ij(.33,1.53,.69,.99),iz=iB(iN),iW=iI(iz),iU=t=>(t*=2)<1?.5*iz(t):.5*(2-Math.pow(2,-10*(t-1))),iH=t=>1-Math.sin(Math.acos(t)),i$=iB(iH),iY=iI(iH),iX=t=>Array.isArray(t)&&"number"==typeof t[0],iq={linear:tn,easeIn:iO,easeInOut:i_,easeOut:iF,circIn:iH,circInOut:iY,circOut:i$,backIn:iz,backInOut:iW,backOut:iN,anticipate:iU},iG=t=>{if(iX(t)){Z(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,s,n]=t;return ij(e,i,s,n)}return"string"==typeof t?(Z(void 0!==iq[t],`Invalid easing type '${t}'`,"invalid-easing-type"),iq[t]):t},iK=(t,e,i)=>{let s=e-t;return 0===s?1:(i-t)/s};function iZ({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){var n;let r=Array.isArray(s)&&"number"!=typeof s[0]?s.map(iG):iG(s),o={done:!1,value:e[0]},a=function(t,e,{clamp:i=!0,ease:s,mixer:n}={}){let r=t.length;if(Z(r===e.length,"Both input and output ranges must be the same length","range-length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let s=[],n=i||tr.mix||iS,r=t.length-1;for(let i=0;i{if(o&&i1)for(;sh(F(t[0],t[r-1],e)):h}((n=i&&i.length===e.length?i:function(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let n=iK(0,e,s);t.push(T(i,1,n))}}(e,t.length-1),e}(e),n.map(e=>e*t)),e,{ease:Array.isArray(r)?r:e.map(()=>r||i_).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}let iQ=t=>null!==t;function iJ(t,{repeat:e,repeatType:i="loop"},s,n=1){let r=t.filter(iQ),o=n<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return o&&void 0!==s?s:r[o]}let i0={decay:iD,inertia:iD,tween:iZ,keyframes:iZ,spring:iR};function i1(t){"string"==typeof t.type&&(t.type=i0[t.type])}class i5{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)}}let i2=t=>t/100;class i3 extends i5{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!==tJ.now()&&this.tick(tJ.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},ia.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;i1(t);let{type:e=iZ,repeat:i=0,repeatDelay:s=0,repeatType:n,velocity:r=0}=t,{keyframes:o}=t,a=e||iZ;a!==iZ&&"number"!=typeof o[0]&&(this.mixKeyframes=ir(i2,iS(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===n&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=iP(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=l}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:s,mixKeyframes:n,mirroredGenerator:r,resolvedDuration:o,calculatedDuration:a}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:h,repeat:u,repeatType:c,repeatDelay:d,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>s;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=s);let y=this.currentTime,w=i;if(u){let t=Math.min(this.currentTime,s)/o,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,u+1))%2&&("reverse"===c?(i=1-i,d&&(i-=d/o)):"mirror"===c&&(w=r)),y=F(0,1,i)*o}let x=v?{done:!1,value:h[0]}:w.next(y);n&&(x.value=n(x.value));let{done:S}=x;v||null===a||(S=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);let b=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return b&&p!==iD&&(x.value=iJ(h,this.options,f,this.speed)),m&&m(x.value),b&&this.finish(),x}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get time(){return this.currentTime/1e3}set time(t){t=io(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(tJ.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=ib,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(tJ.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,ia.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)}}function i7(t){let e;return()=>(void 0===e&&(e=t()),e)}let i4=i7(()=>void 0!==window.ScrollTimeline),i9={},i6=function(t,e){let i=i7(t);return()=>i9[e]??i()}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),i8=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,st={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:i8([0,.65,.55,1]),circOut:i8([.55,0,1,.45]),backIn:i8([.31,.01,.66,-.59]),backOut:i8([.33,1.53,.69,.99])};function se(t){return"function"==typeof t&&"applyToOptions"in t}class si extends i5{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:e,name:i,keyframes:s,pseudoElement:n,allowFlatten:r=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!n,this.allowFlatten=r,this.options=t,Z("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:t,...e}){return se(t)&&i6()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:s=0,duration:n=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},h){let u={[e]:i};l&&(u.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?i6()?iT(e,i):"ease-out":iX(e)?i8(e):Array.isArray(e)?e.map(e=>t(e,i)||st.easeOut):st[e]}(a,n);Array.isArray(c)&&(u.easing=c),ta.value&&ia.waapi++;let d={delay:s,duration:n,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"};h&&(d.pseudoElement=h);let p=t.animate(u,d);return ta.value&&p.finished.finally(()=>{ia.waapi--}),p}(e,i,s,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let t=iJ(s,this.options,o,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()}a?.(),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(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){this.finishedTime=null,this.animation.currentTime=io(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&&i4())?(this.animation.timeline=t,tn):e(this)}}let ss={anticipate:iU,backInOut:iW,circInOut:iY};class sn extends si{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in ss&&(t.ease=ss[t.ease])}(t),i1(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:s,element:n,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new i3({...r,autoplay:!1}),a=io(this.finishedTime??this.time);e.setWithVelocity(o.sample(a-10).value,o.sample(a).value,10),o.stop()}}let sr=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tB.test(t)||"0"===t)&&!t.startsWith("url(")),so=new Set(["opacity","clipPath","filter","transform"]),sa=i7(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class sl extends i5{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:n=0,repeatType:r="loop",keyframes:o,name:a,motionValue:l,element:h,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tJ.now();let c={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:n,repeatType:r,name:a,motionValue:l,element:h,...u},d=h?.KeyframeResolver||tw;this.keyframeResolver=new d(o,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),a,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,s){this.keyframeResolver=void 0;let{name:n,type:r,velocity:o,delay:a,isHandoff:l,onUpdate:h}=i;this.resolvedAt=tJ.now(),!function(t,e,i,s){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],o=sr(n,e),a=sr(r,e);return K(o===a,`You are trying to animate ${e} from "${n}" to "${r}". "${o?r:n}" is not an animatable value.`,"value-not-animatable"),!!o&&!!a&&(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},c=!l&&function(t){let{motionValue:e,name:i,repeatDelay:s,repeatType:n,damping:r,type:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return sa()&&i&&so.has(i)&&("transform"!==i||!l)&&!a&&!s&&"mirror"!==n&&0!==r&&"inertia"!==o}(u)?new sn({...u,element:u.motionValue.owner.current}):new i3(u);c.finished.then(()=>this.notifyFinished()).catch(tn),this.pendingTimeline&&(this.stopTimeline=c.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=c}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(),tg=!0,ty(),tv(),tg=!1),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 sh=t=>null!==t,su={type:"spring",stiffness:500,damping:25,restSpeed:10},sc={type:"keyframes",duration:.8},sd={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sp=(t,e,i,s={},n,r)=>a=>{let l=e8(s,t)||{},h=l.delay||s.delay||0,{elapsed:u=0}=s;u-=io(h);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-u,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:r?void 0:n};!function({when:t,delay:e,delayChildren:i,staggerChildren:s,staggerDirection:n,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:h,...u}){return!!Object.keys(u).length}(l)&&Object.assign(c,((t,{keyframes:e})=>e.length>2?sc:o.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:su:sd)(t,c)),c.duration&&(c.duration=io(c.duration)),c.repeatDelay&&(c.repeatDelay=io(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(ii(c),0===c.delay&&(d=!0)),(tr.instantAnimations||tr.skipAnimations)&&(d=!0,ii(c),c.delay=0),c.allowFlatten=!l.type&&!l.ease,d&&!r&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},s){let n=t.filter(sh),r=e&&"loop"!==i&&e%2==1?0:n.length-1;return n[r]}(c.keyframes,l);if(void 0!==t)return void th.update(()=>{c.onUpdate(t),c.onComplete()})}return l.isSync?new i3(c):new sl(c)};function sm(t,e,{delay:i=0,transitionOverride:s,type:n}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:o,...a}=e;s&&(r=s);let l=[],h=n&&t.animationState&&t.animationState.getState()[n];for(let e in a){let s=t.getValue(e,t.latestValues[e]??null),n=a[e];if(void 0===n||h&&function({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}(h,e))continue;let o={delay:i,...e8(r||{},e)},u=s.get();if(void 0!==u&&!s.isAnimating&&!Array.isArray(n)&&n===u&&!o.velocity)continue;let c=!1;if(window.MotionHandoffAnimation){let i=t.props[e3];if(i){let t=window.MotionHandoffAnimation(i,e,th);null!==t&&(o.startTime=t,c=!0)}}ie(t,e),s.start(sp(e,s,n,t.shouldReduceMotion&&O.has(e)?{type:!1}:o,t,c));let d=s.animation;d&&l.push(d)}return o&&Promise.all(l).then(()=>{th.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:s={},...n}=e6(t,e)||{};for(let e in n={...n,...i}){var r;let i=it(r=n[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,t7(i))}}(t,o)})}),l}function sf(t,e,i,s=0,n=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*s;return"function"==typeof i?i(r,o):1===n?r*s:a-r*s}function sg(t,e,i={}){let s=e6(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(n=i.transitionOverride);let r=s?()=>Promise.all(sm(t,s,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=n;return function(t,e,i=0,s=0,n=0,r=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(sg(l,e,{...o,delay:i+("function"==typeof s?0:s)+sf(t.variantChildren,l,s,n,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,s,r,o,a,i)}:()=>Promise.resolve(),{when:a}=n;if(!a)return Promise.all([r(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[r,o]:[o,r];return t().then(()=>e())}}function sv(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;sPromise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let s;if(t.notify("AnimationStart",e),Array.isArray(e))s=Promise.all(e.map(e=>sg(t,e,i)));else if("string"==typeof e)s=sg(t,e,i);else{let n="function"==typeof e?e6(t,e,i.custom):e;s=Promise.all(sm(t,n,i))}return s.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=sb(),s=!0,n=e=>(i,s)=>{let n=e6(t,s,"exit"===e?t.presenceContext?.custom:void 0);if(n){let{transition:t,transitionEnd:e,...s}=n;i={...i,...s,...e}}return i};function r(r){let{props:o}=t,a=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;tc&&v,b=!1,T=Array.isArray(g)?g:[g],P=T.reduce(n(m),{});!1===y&&(P={});let{prevResolvedValues:E={}}=f,M={...E,...P},A=e=>{S=!0,h.has(e)&&(b=!0,h.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in M){let e=P[t],i=E[t];if(!u.hasOwnProperty(t))(it(e)&&it(i)?sv(e,i):e===i)?void 0!==e&&h.has(t)?A(t):f.protectedKeys[t]=!0:null!=e?A(t):h.add(t)}f.prevProp=g,f.prevResolvedValues=P,f.isActive&&(u={...u,...P}),s&&t.blockInitialAnimation&&(S=!1);let C=w&&x,V=!C||b;S&&V&&l.push(...T.map(e=>{let i={type:m};if("string"==typeof e&&s&&!C&&t.manuallyAnimateOnMount&&t.parent){let{parent:s}=t,n=e6(s,e);if(s.enteringChildren&&n){let{delayChildren:e}=n.transition||{};i.delay=sf(s.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof o.initial){let i=e6(t,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(e.transition=i.transition)}h.forEach(i=>{let s=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=s??null}),l.push({animation:e})}let m=!!l.length;return s&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(m=!1),s=!1,m?e(l):Promise.resolve()}return{animateChanges:r,setActive:function(e,s){if(i[e].isActive===s)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,s)),i[e].isActive=s;let n=r(e);for(let t in i)i[t].protectedKeys={};return n},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=sb(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();el(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 sE=0;class sM extends sT{constructor(){super(...arguments),this.id=sE++}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 s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}let sA={x:!1,y:!1};function sC(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}let sV=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function sk(t){return{point:{x:t.pageX,y:t.pageY}}}function sR(t,e,i,s){return sC(t,e,t=>sV(t)&&i(t,sk(t)),s)}function sD(t){return t.max-t.min}function sL(t,e,i,s=.5){t.origin=s,t.originPoint=T(e.min,e.max,t.origin),t.scale=sD(i)/sD(e),t.translate=T(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 sj(t,e,i,s){sL(t.x,e.x,i.x,s?s.originX:void 0),sL(t.y,e.y,i.y,s?s.originY:void 0)}function sO(t,e,i){t.min=i.min+e.min,t.max=t.min+sD(e)}function sF(t,e,i){t.min=e.min-i.min,t.max=t.min+sD(e)}function s_(t,e,i){sF(t.x,e.x,i.x),sF(t.y,e.y,i.y)}function sI(t){return[t("x"),t("y")]}let sB=({current:t})=>t?t.ownerDocument.defaultView:null,sN=(t,e)=>Math.abs(t-e);class sz{constructor(t,e,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:n=!1,distanceThreshold:r=3}={}){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=sH(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(sN(t.x,e.x)**2+sN(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!i)return;let{point:s}=t,{timestamp:n}=tc;this.history.push({...s,timestamp:n});let{onStart:r,onMove:o}=this.handlers;e||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=sW(e,this.transformPagePoint),th.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=sH("pointercancel"===t.type?this.lastMoveEventInfo:sW(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),s&&s(t,r)},!sV(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=s||window;let o=sW(sk(t),this.transformPagePoint),{point:a}=o,{timestamp:l}=tc;this.history=[{...a,timestamp:l}];let{onSessionStart:h}=e;h&&h(t,sH(o,this.history)),this.removeListeners=ir(sR(this.contextWindow,"pointermove",this.handlePointerMove),sR(this.contextWindow,"pointerup",this.handlePointerUp),sR(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),tu(this.updatePoint)}}function sW(t,e){return e?{point:e(t.point)}:t}function sU(t,e){return{x:t.x-e.x,y:t.y-e.y}}function sH({point:t},e){return{point:t,delta:sU(t,s$(e)),offset:sU(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,n=s$(t);for(;i>=0&&(s=t[i],!(n.timestamp-s.timestamp>io(.1)));)i--;if(!s)return{x:0,y:0};let r=(n.timestamp-s.timestamp)/1e3;if(0===r)return{x:0,y:0};let o={x:(n.x-s.x)/r,y:(n.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function s$(t){return t[t.length-1]}function sY(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 sX(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(sk(t).point)},r=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:n}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(sA[t])return null;else return sA[t]=!0,()=>{sA[t]=!1};return sA.x||sA.y?null:(sA.x=sA.y=!0,()=>{sA.x=sA.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),sI(t=>{let e=this.getAxisMotionValue(t).get()||0;if(W.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=sD(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&th.postRender(()=>n(t,e)),ie(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:n,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(s&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&&r(t,e)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>sI(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play()),{dragSnapToOrigin:h}=this.getProps();this.panSession=new sz(t,{onSessionStart:n,onStart:r,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:sB(this.visualElement)})}stop(t,e){let i=t||this.latestPointerEvent,s=e||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!s||!i)return;let{velocity:r}=s;this.startAnimation(r);let{onDragEnd:o}=this.getProps();o&&th.postRender(()=>o(i,s))}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:s}=this.getProps();if(!i||!sQ(t,s,this.currentDirection))return;let n=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},s){return void 0!==e&&ti&&(t=s?T(i,t,s.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),n.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,s=this.constraints;t&&e2(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:s,right:n}){return{x:sY(t.x,i,n),y:sY(t.y,e,s)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:sq(t,"left","right"),y:sq(t,"top","bottom")}}(e),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&sI(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||!e2(e))return!1;let s=e.current;Z(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let r=function(t,e,i){let s=j(t,i),{scroll:n}=e;return n&&(R(s.x,n.offset.x),R(s.y,n.offset.y)),s}(s,n.root,this.visualElement.getTransformPagePoint()),o=(t=n.layout.layoutBox,{x:sX(t.x,r.x),y:sX(t.y,r.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=b(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(sI(o=>{if(!sQ(o,e,this.currentDirection))return;let l=a&&a[o]||{};r&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[o]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(o,h)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return ie(this.visualElement,t),i.start(sp(t,i,0,e,this.visualElement,!1))}stopAnimation(){sI(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){sI(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){sI(e=>{let{drag:i}=this.getProps();if(!sQ(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,n=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:r}=s.layout.layoutBox[e];n.set(t[e]-T(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!e2(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};sI(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();s[t]=function(t,e){let i=.5,s=sD(t),n=sD(e);return n>s?i=iK(e.min,e.max-s,t.min):s>n&&(i=iK(t.min,t.max-n,e.min)),F(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),sI(e=>{if(!sQ(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:r}=this.constraints[e];i.set(T(n,r,s[e]))})}addListeners(){if(!this.visualElement.current)return;sK.set(this.visualElement,this);let t=sR(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();e2(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),th.read(e);let n=sC(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(sI(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{n(),t(),s(),r&&r()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:r,dragMomentum:o}}}function sQ(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class sJ extends sT{constructor(t){super(t),this.removeGroupControls=tn,this.removeListeners=tn,this.controls=new sZ(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tn}unmount(){this.removeGroupControls(),this.removeListeners()}}let s0=t=>(e,i)=>{t&&th.postRender(()=>t(e,i))};class s1 extends sT{constructor(){super(...arguments),this.removePointerDownListener=tn}onPointerDown(t){this.session=new sz(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sB(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:s0(t),onStart:s0(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&th.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=sR(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 s5=i(2082);let s2={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function s3(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let s7={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!U.test(t))return t;else t=parseFloat(t);let i=s3(t,e.target.x),s=s3(t,e.target.y);return`${i}% ${s}%`}},s4=!1;class s9 extends n.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=t;for(let t in s8)eP[t]=s8[t],y(t)&&(eP[t].isCSSVariable=!0);n&&(e.group&&e.group.add(n),i&&i.register&&s&&i.register(n),s4&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),s2.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:n}=this.props,{projection:r}=i;return r&&(r.isPresent=n,s4=!0,s||t.layoutDependency!==e||void 0===e||t.isPresent!==n?r.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?r.promote():r.relegate()||th.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),t9.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;s4=!0,s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function s6(t){let[e,i]=(0,s5.xQ)(),s=(0,n.useContext)(eB.L);return(0,eI.jsx)(s9,{...t,layoutGroup:s,switchLayoutGroup:(0,n.useContext)(e7),isPresent:e,safeToRemove:i})}let s8={borderRadius:{...s7,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:s7,borderTopRightRadius:s7,borderBottomLeftRadius:s7,borderBottomRightRadius:s7,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=tB.parse(t);if(s.length>5)return t;let n=tB.createTransformer(t),r=+("number"!=typeof s[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;s[0+r]/=o,s[1+r]/=a;let l=T(o,a,.5);return"number"==typeof s[2+r]&&(s[2+r]/=l),"number"==typeof s[3+r]&&(s[3+r]/=l),n(s)}}};var nt=i(6983);function ne(t){return(0,nt.G)(t)&&"ownerSVGElement"in t}let ni=(t,e)=>t.depth-e.depth;class ns{constructor(){this.children=[],this.isDirty=!1}add(t){t0(this.children,t),this.isDirty=!0}remove(t){t1(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ni),this.isDirty=!1,this.children.forEach(t)}}let nn=["TopLeft","TopRight","BottomLeft","BottomRight"],nr=nn.length,no=t=>"string"==typeof t?parseFloat(t):t,na=t=>"number"==typeof t||U.test(t);function nl(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nh=nc(0,.5,i$),nu=nc(.5,.95,tn);function nc(t,e,i){return s=>se?1:i(iK(t,e,s))}function nd(t,e){t.min=e.min,t.max=e.max}function np(t,e){nd(t.x,e.x),nd(t.y,e.y)}function nm(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nf(t,e,i,s,n){return t-=e,t=s+1/i*(t-s),void 0!==n&&(t=s+1/n*(t-s)),t}function ng(t,e,[i,s,n],r,o){!function(t,e=0,i=1,s=.5,n,r=t,o=t){if(W.test(e)&&(e=parseFloat(e),e=T(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=T(r.min,r.max,s);t===r&&(a-=e),t.min=nf(t.min,e,i,a,n),t.max=nf(t.max,e,i,a,n)}(t,e[i],e[s],e[n],e.scale,r,o)}let nv=["x","scaleX","originX"],ny=["y","scaleY","originY"];function nw(t,e,i,s){ng(t.x,e,nv,i?i.x:void 0,s?s.x:void 0),ng(t.y,e,ny,i?i.y:void 0,s?s.y:void 0)}function nx(t){return 0===t.translate&&1===t.scale}function nS(t){return nx(t.x)&&nx(t.y)}function nb(t,e){return t.min===e.min&&t.max===e.max}function nT(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function nP(t,e){return nT(t.x,e.x)&&nT(t.y,e.y)}function nE(t){return sD(t.x)/sD(t.y)}function nM(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class nA{constructor(){this.members=[]}add(t){t0(this.members,t),t.scheduleRender()}remove(t){if(t1(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:s}=t.options;!1===s&&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)}}let nC={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},nV=["","X","Y","Z"],nk=0;function nR(t,e,i,s){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function nD({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(t={},i=e?.()){this.id=nk++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ta.value&&(nC.nodes=nC.calculatedTargetDeltas=nC.calculatedProjections=0),this.nodes.forEach(nO),this.nodes.forEach(nW),this.nodes.forEach(nU),this.nodes.forEach(nF),ta.addProjectionMetrics&&ta.addProjectionMetrics(nC)},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;th.read(()=>{s=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==s&&(s=t,this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=tJ.now(),s=({timestamp:e})=>{let n=e-i;n>=250&&(tu(s),t(n-250))};return th.setup(s,!0),()=>tu(s)}(n,250),s2.hasAnimatedSinceResize&&(s2.hasAnimatedSinceResize=!1,this.nodes.forEach(nz)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||n.getDefaultTransition()||nG,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!nP(this.targetLayout,s),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);let e={...e8(r,"layout"),onPlay:o,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||nz(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tu(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(nH),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let s=i.props[e3];if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",th,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||sD(this.snapshot.measuredBox.x)||sD(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.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=es());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nm(this.prevProjectionDelta.x,this.projectionDelta.x),nm(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),sj(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===r&&this.treeScale.y===o&&nM(this.projectionDelta.x,this.prevProjectionDelta.x)&&nM(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),ta.value&&nC.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ee(),this.projectionDelta=ee(),this.projectionDeltaWithTransform=ee()}setAnimationOrigin(t,e=!1){let i,s=this.snapshot,n=s?s.latestValues:{},r={...this.latestValues},o=ee();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=es(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(nq));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(nY(o.x,t.x,s),nY(o.y,t.y,s),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,d,p,m,f,g;s_(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,g=s,nX(p.x,m.x,f.x,g),nX(p.y,m.y,f.y,g),i&&(h=this.relativeTarget,d=i,nb(h.x,d.x)&&nb(h.y,d.y))&&(this.isProjectionDirty=!1),i||(i=es()),np(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,s,n,r){n?(t.opacity=T(0,i.opacity??1,nh(s)),t.opacityExit=T(e.opacity??1,0,nu(s))):r&&(t.opacity=T(e.opacity??1,i.opacity??1,s));for(let n=0;n{s2.hasAnimatedSinceResize=!0,ia.layout++,this.motionValue||(this.motionValue=t7(0)),this.currentAnimation=function(t,e,i){let s=tZ(t)?t:t7(t);return s.start(sp("",s,e,i)),s.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{ia.layout--},onComplete:()=>{ia.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:s,latestValues:n}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&nJ(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||es();let e=sD(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=sD(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}np(e,i),L(e,n),sj(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new nA),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 s=this.getStack();s&&s.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let s={};i.z&&nR("z",t,s,this.animationValues);for(let e=0;et.currentAnimation?.stop()),this.root.nodes.forEach(nI),this.root.sharedNodes.clear()}}}function nL(t){t.updateLayout()}function nj(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=t.layout,{animationType:n}=t.options,r=e.source!==t.layout.source;"size"===n?sI(t=>{let s=r?e.measuredBox[t]:e.layoutBox[t],n=sD(s);s.min=i[t].min,s.max=s.min+n}):nJ(n,e.layoutBox,i)&&sI(s=>{let n=r?e.measuredBox[s]:e.layoutBox[s],o=sD(i[s]);n.max=n.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+o)});let o=ee();sj(o,i,e.layoutBox);let a=ee();r?sj(a,t.applyTransform(s,!0),e.measuredBox):sj(a,i,e.layoutBox);let l=!nS(o),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:r}=s;if(n&&r){let o=es();s_(o,e.layoutBox,n.layoutBox);let a=es();s_(a,i,r.layoutBox),nP(o,a)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function nO(t){ta.value&&nC.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 nF(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function n_(t){t.clearSnapshot()}function nI(t){t.clearMeasurements()}function nB(t){t.isLayoutDirty=!1}function nN(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function nz(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function nW(t){t.resolveTargetDelta()}function nU(t){t.calcProjection()}function nH(t){t.resetSkewAndRotation()}function n$(t){t.removeLeadSnapshot()}function nY(t,e,i){t.translate=T(e.translate,0,i),t.scale=T(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function nX(t,e,i,s){t.min=T(e.min,i.min,s),t.max=T(e.max,i.max,s)}function nq(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let nG={duration:.45,ease:[.4,0,.1,1]},nK=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),nZ=nK("applewebkit/")&&!nK("chrome/")?Math.round:tn;function nQ(t){t.min=nZ(t.min),t.max=nZ(t.max)}function nJ(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(nE(e)-nE(i)))}function n0(t){return t!==t.root&&t.scroll?.wasRoot}let n1=nD({attachResizeListener:(t,e)=>sC(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),n5={current:void 0},n2=nD({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!n5.current){let t=new n1({});t.mount(window),t.setOptions({layoutScroll:!0}),n5.current=t}return n5.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function n3(t,e){let i=function(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document,i=(void 0)??e.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}(t),s=new AbortController;return[i,{passive:!0,...e,signal:s.signal},()=>s.abort()]}function n7(t){return!("touch"===t.pointerType||sA.x||sA.y)}function n4(t,e,i){let{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=s["onHover"+i];n&&th.postRender(()=>n(e,sk(e)))}class n9 extends sT{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[s,n,r]=n3(t,i),o=t=>{if(!n7(t))return;let{target:i}=t,s=e(i,t);if("function"!=typeof s||!i)return;let r=t=>{n7(t)&&(s(t),i.removeEventListener("pointerleave",r))};i.addEventListener("pointerleave",r,n)};return s.forEach(t=>{t.addEventListener("pointerenter",o,n)}),r}(t,(t,e)=>(n4(this.node,e,"Start"),t=>n4(this.node,t,"End"))))}unmount(){}}class n6 extends sT{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=ir(sC(this.node.current,"focus",()=>this.onFocus()),sC(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var n8=i(7351);let rt=(t,e)=>!!e&&(t===e||rt(t,e.parentElement)),re=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),ri=new WeakSet;function rs(t){return e=>{"Enter"===e.key&&t(e)}}function rn(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function rr(t){return sV(t)&&!(sA.x||sA.y)}function ro(t,e,i){let{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=s["onTap"+("End"===i?"":i)];n&&th.postRender(()=>n(e,sk(e)))}class ra extends sT{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[s,n,r]=n3(t,i),o=t=>{let s=t.currentTarget;if(!rr(t))return;ri.add(s);let r=e(s,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),ri.has(s)&&ri.delete(s),rr(t)&&"function"==typeof r&&r(t,{success:e})},a=t=>{o(t,s===window||s===document||i.useGlobalTarget||rt(s,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",l,n)};return s.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,n),(0,n8.s)(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let s=rs(()=>{if(ri.has(i))return;rn(i,"down");let t=rs(()=>{rn(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>rn(i,"cancel"),e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)})(t,n)),re.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(ro(this.node,e,"Start"),(t,{success:e})=>ro(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let rl=new WeakMap,rh=new WeakMap,ru=t=>{let e=rl.get(t.target);e&&e(t)},rc=t=>{t.forEach(ru)},rd={some:0,all:1};class rp extends sT{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:s="some",once:n}=t,r={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof s?s:rd[s]},o=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,n&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),r=e?i:s;r&&r(t)};var a=this.node.current;let l=function({root:t,...e}){let i=t||document;rh.has(i)||rh.set(i,{});let s=rh.get(i),n=JSON.stringify(e);return s[n]||(s[n]=new IntersectionObserver(rc,{root:t,...e})),s[n]}(r);return rl.set(a,o),l.observe(a),()=>{rl.delete(a),l.unobserve(a)}}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 rm=function(t,e){if("undefined"==typeof Proxy)return e9;let i=new Map,s=(i,s)=>e9(i,s,t,e);return new Proxy((t,e)=>s(t,e),{get:(n,r)=>"create"===r?s:(i.has(r)||i.set(r,e9(r,void 0,t,e)),i.get(r))})}({animation:{Feature:sP},exit:{Feature:sM},inView:{Feature:rp},tap:{Feature:ra},focus:{Feature:n6},hover:{Feature:n9},pan:{Feature:s1},drag:{Feature:sJ,ProjectionNode:n2,MeasureLayout:s6},layout:{ProjectionNode:n2,MeasureLayout:s6}},(t,e)=>e_(t)?new eO(e):new eA(e,{allowProjection:t!==n.Fragment}))},8555:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var s=i(2115);let n=s.forwardRef(function(t,e){let{title:i,titleId:n,...r}=t;return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":n},r),i?s.createElement("title",{id:n},i):null,s.createElement("path",{fillRule:"evenodd",d:"M10.5 3.75a6.75 6.75 0 1 0 0 13.5 6.75 6.75 0 0 0 0-13.5ZM2.25 10.5a8.25 8.25 0 1 1 14.59 5.28l4.69 4.69a.75.75 0 1 1-1.06 1.06l-4.69-4.69A8.25 8.25 0 0 1 2.25 10.5Z",clipRule:"evenodd"}))})},8930:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){let{html:e,height:i=null,width:r=null,children:o,dataNtpc:a=""}=t;return(0,n.useEffect)(()=>{a&&performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-".concat(a)}})},[a]),(0,s.jsxs)(s.Fragment,{children:[o,e?(0,s.jsx)("div",{style:{height:null!=i?"".concat(i,"px"):"auto",width:null!=r?"".concat(r,"px"):"auto"},"data-ntpc":a,dangerouslySetInnerHTML:{__html:e}}):null]})};let s=i(5155),n=i(2115)},8972:(t,e,i)=>{"use strict";i.d(e,{B:()=>s});let s="undefined"!=typeof window},9243:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),!function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{default:function(){return v},handleClientScriptLoad:function(){return m},initScriptLoader:function(){return f}});let s=i(8229),n=i(6966),r=i(5155),o=s._(i(7650)),a=n._(i(2115)),l=i(2830),h=i(2714),u=i(2374),c=new Map,d=new Set,p=t=>{let{src:e,id:i,onLoad:s=()=>{},onReady:n=null,dangerouslySetInnerHTML:r,children:a="",strategy:l="afterInteractive",onError:u,stylesheets:p}=t,m=i||e;if(m&&d.has(m))return;if(c.has(e)){d.add(m),c.get(e).then(s,u);return}let f=()=>{n&&n(),d.add(m)},g=document.createElement("script"),v=new Promise((t,e)=>{g.addEventListener("load",function(e){t(),s&&s.call(this,e),f()}),g.addEventListener("error",function(t){e(t)})}).catch(function(t){u&&u(t)});r?(g.innerHTML=r.__html||"",f()):a?(g.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",f()):e&&(g.src=e,c.set(e,v)),(0,h.setAttributesFromProps)(g,t),"worker"===l&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",l),p&&(t=>{if(o.default.preinit)return t.forEach(t=>{o.default.preinit(t,{as:"style"})});{let e=document.head;t.forEach(t=>{let i=document.createElement("link");i.type="text/css",i.rel="stylesheet",i.href=t,e.appendChild(i)})}})(p),document.body.appendChild(g)};function m(t){let{strategy:e="afterInteractive"}=t;"lazyOnload"===e?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>p(t))}):p(t)}function f(t){t.forEach(m),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(t=>{let e=t.id||t.getAttribute("src");d.add(e)})}function g(t){let{id:e,src:i="",onLoad:s=()=>{},onReady:n=null,strategy:h="afterInteractive",onError:c,stylesheets:m,...f}=t,{updateScripts:g,scripts:v,getIsSsr:y,appDir:w,nonce:x}=(0,a.useContext)(l.HeadManagerContext);x=f.nonce||x;let S=(0,a.useRef)(!1);(0,a.useEffect)(()=>{let t=e||i;S.current||(n&&t&&d.has(t)&&n(),S.current=!0)},[n,e,i]);let b=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{if(!b.current){if("afterInteractive"===h)p(t);else"lazyOnload"===h&&("complete"===document.readyState?(0,u.requestIdleCallback)(()=>p(t)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>p(t))}));b.current=!0}},[t,h]),("beforeInteractive"===h||"worker"===h)&&(g?(v[h]=(v[h]||[]).concat([{id:e,src:i,onLoad:s,onReady:n,onError:c,...f,nonce:x}]),g(v)):y&&y()?d.add(e||i):y&&!y()&&p({...t,nonce:x})),w){if(m&&m.forEach(t=>{o.default.preinit(t,{as:"style"})}),"beforeInteractive"===h)if(!i)return f.dangerouslySetInnerHTML&&(f.children=f.dangerouslySetInnerHTML.__html,delete f.dangerouslySetInnerHTML),(0,r.jsx)("script",{nonce:x,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...f,id:e}])+")"}});else return o.default.preload(i,f.integrity?{as:"script",integrity:f.integrity,nonce:x,crossOrigin:f.crossOrigin}:{as:"script",nonce:x,crossOrigin:f.crossOrigin}),(0,r.jsx)("script",{nonce:x,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([i,{...f,id:e}])+")"}});"afterInteractive"===h&&i&&o.default.preload(i,f.integrity?{as:"script",integrity:f.integrity,nonce:x,crossOrigin:f.crossOrigin}:{as:"script",nonce:x,crossOrigin:f.crossOrigin})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let v=g;("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}}]);