PageSourceSearch

https://weaver-woad.vercel.app/_next/static/chunks/603-17f42d44778e78ed.js

js weaver-woad.vercel.app collected 2026-10-03 08:02:04 UTC 152,195 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[603],{9349:(t,e,i)=>{"use strict";i.d(e,{A:()=>tE});var n=i(12115),r=i(85407),s=i(85268),o=i(25514),a=i(98566),l=i(85625),u=i(97299),h=i(31701),c=i(52106),d=i(1568),p=i(21855),f=i(64406);let m={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};var g=i(38619),v=i(4617),y=i.n(v);let S={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(t){return n.createElement("ul",{style:{display:"block"}},t)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(t){return n.createElement("button",null,t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null};function x(t,e,i){return Math.max(e,Math.min(t,i))}var w=function(t){["onTouchStart","onTouchMove","onWheel"].includes(t._reactName)||t.preventDefault()},b=function(t){for(var e=[],i=A(t),n=T(t),r=i;r<n;r++)0>t.lazyLoadedList.indexOf(r)&&e.push(r);return e},A=function(t){return t.currentSlide-k(t)},T=function(t){return t.currentSlide+P(t)},k=function(t){return t.centerMode?Math.floor(t.slidesToShow/2)+(parseInt(t.centerPadding)>0?1:0):0},P=function(t){return t.centerMode?Math.floor((t.slidesToShow-1)/2)+1+(parseInt(t.centerPadding)>0?1:0):t.slidesToShow},E=function(t){return t&&t.offsetWidth||0},M=function(t){return t&&t.offsetHeight||0},C=function(t){var e,i,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(e=t.startX-t.curX,(i=Math.round(180*Math.atan2(t.startY-t.curY,e)/Math.PI))<0&&(i=360-Math.abs(i)),i<=45&&i>=0||i<=360&&i>=315)?"left":i>=135&&i<=225?"right":!0===n?i>=35&&i<=135?"up":"down":"vertical"},L=function(t){var e=!0;return!t.infinite&&(t.centerMode&&t.currentSlide>=t.slideCount-1?e=!1:(t.slideCount<=t.slidesToShow||t.currentSlide>=t.slideCount-t.slidesToShow)&&(e=!1)),e},R=function(t,e){var i={};return e.forEach(function(e){return i[e]=t[e]}),i},D=function(t){var e,i=n.Children.count(t.children),r=t.listRef,o=Math.ceil(E(r)),a=Math.ceil(E(t.trackRef&&t.trackRef.node));if(t.vertical)e=o;else{var l=t.centerMode&&2*parseInt(t.centerPadding);"string"==typeof t.centerPadding&&"%"===t.centerPadding.slice(-1)&&(l*=o/100),e=Math.ceil((o-l)/t.slidesToShow)}var u=r&&M(r.querySelector('[data-index="0"]')),h=u*t.slidesToShow,c=void 0===t.currentSlide?t.initialSlide:t.currentSlide;t.rtl&&void 0===t.currentSlide&&(c=i-1-t.initialSlide);var d=t.lazyLoadedList||[],p=b((0,s.A)((0,s.A)({},t),{},{currentSlide:c,lazyLoadedList:d})),f={slideCount:i,slideWidth:e,listWidth:o,trackWidth:a,currentSlide:c,slideHeight:u,listHeight:h,lazyLoadedList:d=d.concat(p)};return null===t.autoplaying&&t.autoplay&&(f.autoplaying="playing"),f},V=function(t){var e=t.waitForAnimate,i=t.animating,n=t.fade,r=t.infinite,o=t.index,a=t.slideCount,l=t.lazyLoad,u=t.currentSlide,h=t.centerMode,c=t.slidesToScroll,d=t.slidesToShow,p=t.useCSS,f=t.lazyLoadedList;if(e&&i)return{};var m,g,v,y=o,S={},w={},A=r?o:x(o,0,a-1);if(n){if(!r&&(o<0||o>=a))return{};o<0?y=o+a:o>=a&&(y=o-a),l&&0>f.indexOf(y)&&(f=f.concat(y)),S={animating:!0,currentSlide:y,lazyLoadedList:f,targetSlide:y},w={animating:!1,targetSlide:y}}else m=y,y<0?(m=y+a,r?a%c!=0&&(m=a-a%c):m=0):!L(t)&&y>u?y=m=u:h&&y>=a?(y=r?a:a-1,m=r?0:a-1):y>=a&&(m=y-a,r?a%c!=0&&(m=0):m=a-d),!r&&y+d>=a&&(m=a-d),g=U((0,s.A)((0,s.A)({},t),{},{slideIndex:y})),v=U((0,s.A)((0,s.A)({},t),{},{slideIndex:m})),r||(g===v&&(y=m),g=v),l&&(f=f.concat(b((0,s.A)((0,s.A)({},t),{},{currentSlide:y})))),p?(S={animating:!0,currentSlide:m,trackStyle:H((0,s.A)((0,s.A)({},t),{},{left:g})),lazyLoadedList:f,targetSlide:A},w={animating:!1,currentSlide:m,trackStyle:N((0,s.A)((0,s.A)({},t),{},{left:v})),swipeLeft:null,targetSlide:A}):S={currentSlide:m,trackStyle:N((0,s.A)((0,s.A)({},t),{},{left:v})),lazyLoadedList:f,targetSlide:A};return{state:S,nextState:w}},O=function(t,e){var i,n,r,o,a=t.slidesToScroll,l=t.slidesToShow,u=t.slideCount,h=t.currentSlide,c=t.targetSlide,d=t.lazyLoad,p=t.infinite;if(i=u%a!=0?0:(u-h)%a,"previous"===e.message)o=h-(r=0===i?a:l-i),d&&!p&&(o=-1==(n=h-r)?u-1:n),p||(o=c-a);else if("next"===e.message)o=h+(r=0===i?a:i),d&&!p&&(o=(h+a)%u+i),p||(o=c+a);else if("dots"===e.message)o=e.index*e.slidesToScroll;else if("children"===e.message){if(o=e.index,p){var f=q((0,s.A)((0,s.A)({},t),{},{targetSlide:o}));o>e.currentSlide&&"left"===f?o-=u:o<e.currentSlide&&"right"===f&&(o+=u)}}else"index"===e.message&&(o=Number(e.index));return o},j=function(t,e){var i=e.scrolling,n=e.animating,r=e.vertical,o=e.swipeToSlide,a=e.verticalSwiping,l=e.rtl,u=e.currentSlide,h=e.edgeFriction,c=e.edgeDragged,d=e.onEdge,p=e.swiped,f=e.swiping,m=e.slideCount,g=e.slidesToScroll,v=e.infinite,y=e.touchObject,S=e.swipeEvent,x=e.listHeight,b=e.listWidth;if(!i){if(n)return w(t);r&&o&&a&&w(t);var A,T={},k=U(e);y.curX=t.touches?t.touches[0].pageX:t.clientX,y.curY=t.touches?t.touches[0].pageY:t.clientY,y.swipeLength=Math.round(Math.sqrt(Math.pow(y.curX-y.startX,2)));var P=Math.round(Math.sqrt(Math.pow(y.curY-y.startY,2)));if(!a&&!f&&P>10)return{scrolling:!0};a&&(y.swipeLength=P);
1var E=(l?-1:1)*(y.curX>y.startX?1:-1);a&&(E=y.curY>y.startY?1:-1);var M=Math.ceil(m/g),R=C(e.touchObject,a),D=y.swipeLength;return!v&&(0===u&&("right"===R||"down"===R)||u+1>=M&&("left"===R||"up"===R)||!L(e)&&("left"===R||"up"===R))&&(D=y.swipeLength*h,!1===c&&d&&(d(R),T.edgeDragged=!0)),!p&&S&&(S(R),T.swiped=!0),A=r?k+x/b*D*E:l?k-D*E:k+D*E,a&&(A=k+D*E),T=(0,s.A)((0,s.A)({},T),{},{touchObject:y,swipeLeft:A,trackStyle:N((0,s.A)((0,s.A)({},e),{},{left:A}))}),Math.abs(y.curX-y.startX)<.8*Math.abs(y.curY-y.startY)||y.swipeLength>10&&(T.swiping=!0,w(t)),T}},I=function(t,e){var i=e.dragging,n=e.swipe,r=e.touchObject,o=e.listWidth,a=e.touchThreshold,l=e.verticalSwiping,u=e.listHeight,h=e.swipeToSlide,c=e.scrolling,d=e.onSwipe,p=e.targetSlide,f=e.currentSlide,m=e.infinite;if(!i)return n&&w(t),{};var g=l?u/a:o/a,v=C(r,l),y={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(c||!r.swipeLength)return y;if(r.swipeLength>g){w(t),d&&d(v);var S,x,b=m?f:p;switch(v){case"left":case"up":x=b+B(e),S=h?W(e,x):x,y.currentDirection=0;break;case"right":case"down":x=b-B(e),S=h?W(e,x):x,y.currentDirection=1;break;default:S=b}y.triggerSlideHandler=S}else{var A=U(e);y.trackStyle=H((0,s.A)((0,s.A)({},e),{},{left:A}))}return y},F=function(t){for(var e=t.infinite?2*t.slideCount:t.slideCount,i=t.infinite?-1*t.slidesToShow:0,n=t.infinite?-1*t.slidesToShow:0,r=[];i<e;)r.push(i),i=n+t.slidesToScroll,n+=Math.min(t.slidesToScroll,t.slidesToShow);return r},W=function(t,e){var i=F(t),n=0;if(e>i[i.length-1])e=i[i.length-1];else for(var r in i){if(e<i[r]){e=n;break}n=i[r]}return e},B=function(t){var e=t.centerMode?t.slideWidth*Math.floor(t.slidesToShow/2):0;if(!t.swipeToSlide)return t.slidesToScroll;var i,n=t.listRef;if(Array.from(n.querySelectorAll&&n.querySelectorAll(".slick-slide")||[]).every(function(n){if(t.vertical){if(n.offsetTop+M(n)/2>-1*t.swipeLeft)return i=n,!1}else if(n.offsetLeft-e+E(n)/2>-1*t.swipeLeft)return i=n,!1;return!0}),!i)return 0;var r=!0===t.rtl?t.slideCount-t.currentSlide:t.currentSlide;return Math.abs(i.dataset.index-r)||1},z=function(t,e){return e.reduce(function(e,i){return e&&t.hasOwnProperty(i)},!0)?null:console.error("Keys Missing:",t)},N=function(t){if(z(t,["left","variableWidth","slideCount","slidesToShow","slideWidth"]),t.vertical){var e,i;i=(t.unslick?t.slideCount:t.slideCount+2*t.slidesToShow)*t.slideHeight}else e=X(t)*t.slideWidth;var n={opacity:1,transition:"",WebkitTransition:""};if(t.useTransform){var r=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",o=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",a=t.vertical?"translateY("+t.left+"px)":"translateX("+t.left+"px)";n=(0,s.A)((0,s.A)({},n),{},{WebkitTransform:r,transform:o,msTransform:a})}else t.vertical?n.top=t.left:n.left=t.left;return t.fade&&(n={opacity:1}),e&&(n.width=e),i&&(n.height=i),window&&!window.addEventListener&&window.attachEvent&&(t.vertical?n.marginTop=t.left+"px":n.marginLeft=t.left+"px"),n},H=function(t){z(t,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var e=N(t);return t.useTransform?(e.WebkitTransition="-webkit-transform "+t.speed+"ms "+t.cssEase,e.transition="transform "+t.speed+"ms "+t.cssEase):t.vertical?e.transition="top "+t.speed+"ms "+t.cssEase:e.transition="left "+t.speed+"ms "+t.cssEase,e},U=function(t){if(t.unslick)return 0;z(t,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var e=t.slideIndex,i=t.trackRef,n=t.infinite,r=t.centerMode,s=t.slideCount,o=t.slidesToShow,a=t.slidesToScroll,l=t.slideWidth,u=t.listWidth,h=t.variableWidth,c=t.slideHeight,d=t.fade,p=t.vertical,f=0,m=0;if(d||1===t.slideCount)return 0;var g=0;if(n?(g=-$(t),s%a!=0&&e+a>s&&(g=-(e>s?o-(e-s):s%a)),r&&(g+=parseInt(o/2))):(s%a!=0&&e+a>s&&(g=o-s%a),r&&(g=parseInt(o/2))),f=g*l,m=g*c,v=p?-(e*c*1)+m:-(e*l*1)+f,!0===h){var v,y,S,x=i&&i.node;if(S=e+$(t),v=(y=x&&x.childNodes[S])?-1*y.offsetLeft:0,!0===r){S=n?e+$(t):e,y=x&&x.children[S],v=0;for(var w=0;w<S;w++)v-=x&&x.children[w]&&x.children[w].offsetWidth;v-=parseInt(t.centerPadding),v+=y&&(u-y.offsetWidth)/2}}return v},$=function(t){return t.unslick||!t.infinite?0:t.variableWidth?t.slideCount:t.slidesToShow+(t.centerMode?1:0)},Y=function(t){return t.unslick||!t.infinite?0:t.slideCount},X=function(t){return 1===t.slideCount?1:$(t)+t.slideCount+Y(t)},q=function(t){return t.targetSlide>t.currentSlide?t.targetSlide>t.currentSlide+K(t)?"left":"right":t.targetSlide<t.currentSlide-G(t)?"right":"left"},K=function(t){var e=t.slidesToShow,i=t.centerMode,n=t.rtl,r=t.centerPadding;if(i){var s=(e-1)/2+1;return parseInt(r)>0&&(s+=1),n&&e%2==0&&(s+=1),s}return n?0:e-1},G=function(t){var e=t.slidesToShow,i=t.centerMode,n=t.rtl,r=t.centerPadding;if(i){var s=(e-1)/2+1;return parseInt(r)>0&&(s+=1),n||e%2!=0||(s+=1),s}return n?e-1:0},_=function(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)},Z=Object.keys(S),J=function(t){var e,i,n,r,s;return n=(s=t.rtl?t.slideCount-1-t.index:t.index)<0||s>=t.slideCount,t.centerMode?(r=Math.floor(t.slidesToShow/2),i=(s-t.currentSlide)%t.slideCount==0,s>t.currentSlide-r-1&&s<=t.currentSlide+r&&(e=!0)):e=t.currentSlide<=s&&s<t.currentSlide+t.slidesToShow,{"slick-slide":!0,"slick-active":e,"slick-center":i,"slick-cloned":n,"slick-current":s===(t.targetSlide<0?t.targetSlide+t.slideCount:t.targetSlide>=t.slideCount?t.targetSlide-t.slideCount:t.targetSlide)}},Q=function(t){var e={};return(void 0===t.variableWidth||!1===t.variableWidth)&&(e.width=t.slideWidth),t.fade&&(e.position="relative",t.vertical&&t.slideHeight?e.top=-t.index*parseInt(t.slideHeight):e.left=-t.index*parseInt(t.slideWidth),e.opacity=t.currentSlide===t.index?1:0,e.zIndex=t.currentSlide===t.index?999:998,t.useCSS&&(e.transition="opacity "+t.speed+"ms "+t.cssEase+", visibility "+t.speed+"ms "+t.cssEase)),e},tt=function(t,e){return t.key+"-"+e},te=function(t){var e,i=[],r=[],o=[],a=n.Children.count(t.children),l=A(t),u=T(t);
1return(n.Children.forEach(t.children,function(h,c){var d,p={message:"children",index:c,slidesToScroll:t.slidesToScroll,currentSlide:t.currentSlide};d=!t.lazyLoad||t.lazyLoad&&t.lazyLoadedList.indexOf(c)>=0?h:n.createElement("div",null);var f=Q((0,s.A)((0,s.A)({},t),{},{index:c})),m=d.props.className||"",g=J((0,s.A)((0,s.A)({},t),{},{index:c}));if(i.push(n.cloneElement(d,{key:"original"+tt(d,c),"data-index":c,className:y()(g,m),tabIndex:"-1","aria-hidden":!g["slick-active"],style:(0,s.A)((0,s.A)({outline:"none"},d.props.style||{}),f),onClick:function(e){d.props&&d.props.onClick&&d.props.onClick(e),t.focusOnSelect&&t.focusOnSelect(p)}})),t.infinite&&a>1&&!1===t.fade&&!t.unslick){var v=a-c;v<=$(t)&&((e=-v)>=l&&(d=h),g=J((0,s.A)((0,s.A)({},t),{},{index:e})),r.push(n.cloneElement(d,{key:"precloned"+tt(d,e),"data-index":e,tabIndex:"-1",className:y()(g,m),"aria-hidden":!g["slick-active"],style:(0,s.A)((0,s.A)({},d.props.style||{}),f),onClick:function(e){d.props&&d.props.onClick&&d.props.onClick(e),t.focusOnSelect&&t.focusOnSelect(p)}}))),(e=a+c)<u&&(d=h),g=J((0,s.A)((0,s.A)({},t),{},{index:e})),o.push(n.cloneElement(d,{key:"postcloned"+tt(d,e),"data-index":e,tabIndex:"-1",className:y()(g,m),"aria-hidden":!g["slick-active"],style:(0,s.A)((0,s.A)({},d.props.style||{}),f),onClick:function(e){d.props&&d.props.onClick&&d.props.onClick(e),t.focusOnSelect&&t.focusOnSelect(p)}}))}}),t.rtl)?r.concat(i,o).reverse():r.concat(i,o)},ti=function(t){function e(){(0,o.A)(this,e);for(var t,i,n,r=arguments.length,s=Array(r),a=0;a<r;a++)s[a]=arguments[a];return i=e,n=[].concat(s),i=(0,h.A)(i),t=(0,l.A)(this,(0,u.A)()?Reflect.construct(i,n||[],(0,h.A)(this).constructor):i.apply(this,n)),(0,d.A)(t,"node",null),(0,d.A)(t,"handleRef",function(e){t.node=e}),t}return(0,c.A)(e,t),(0,a.A)(e,[{key:"render",value:function(){var t=te(this.props),e=this.props,i=e.onMouseEnter,s=e.onMouseOver,o=e.onMouseLeave;return n.createElement("div",(0,r.A)({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},{onMouseEnter:i,onMouseOver:s,onMouseLeave:o}),t)}}])}(n.PureComponent),tn=function(t){function e(){var t,i;return(0,o.A)(this,e),t=e,i=arguments,t=(0,h.A)(t),(0,l.A)(this,(0,u.A)()?Reflect.construct(t,i||[],(0,h.A)(this).constructor):t.apply(this,i))}return(0,c.A)(e,t),(0,a.A)(e,[{key:"clickHandler",value:function(t,e){e.preventDefault(),this.props.clickHandler(t)}},{key:"render",value:function(){for(var t,e=this.props,i=e.onMouseEnter,r=e.onMouseOver,o=e.onMouseLeave,a=e.infinite,l=e.slidesToScroll,u=e.slidesToShow,h=e.slideCount,c=e.currentSlide,d=(t={slideCount:h,slidesToScroll:l,slidesToShow:u,infinite:a}).infinite?Math.ceil(t.slideCount/t.slidesToScroll):Math.ceil((t.slideCount-t.slidesToShow)/t.slidesToScroll)+1,p=[],f=0;f<d;f++){var m=(f+1)*l-1,g=a?m:x(m,0,h-1),v=g-(l-1),S=a?v:x(v,0,h-1),w=y()({"slick-active":a?c>=S&&c<=g:c===S}),b={message:"dots",index:f,slidesToScroll:l,currentSlide:c},A=this.clickHandler.bind(this,b);p=p.concat(n.createElement("li",{key:f,className:w},n.cloneElement(this.props.customPaging(f),{onClick:A})))}return n.cloneElement(this.props.appendDots(p),(0,s.A)({className:this.props.dotsClass},{onMouseEnter:i,onMouseOver:r,onMouseLeave:o}))}}])}(n.PureComponent);function tr(t,e,i){return e=(0,h.A)(e),(0,l.A)(t,(0,u.A)()?Reflect.construct(e,i||[],(0,h.A)(t).constructor):e.apply(t,i))}var ts=function(t){function e(){return(0,o.A)(this,e),tr(this,e,arguments)}return(0,c.A)(e,t),(0,a.A)(e,[{key:"clickHandler",value:function(t,e){e&&e.preventDefault(),this.props.clickHandler(t,e)}},{key:"render",value:function(){var t={"slick-arrow":!0,"slick-prev":!0},e=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(t["slick-disabled"]=!0,e=null);var i={key:"0","data-role":"none",className:y()(t),style:{display:"block"},onClick:e},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?n.cloneElement(this.props.prevArrow,(0,s.A)((0,s.A)({},i),o)):n.createElement("button",(0,r.A)({key:"0",type:"button"},i)," ","Previous")}}])}(n.PureComponent),to=function(t){function e(){return(0,o.A)(this,e),tr(this,e,arguments)}return(0,c.A)(e,t),(0,a.A)(e,[{key:"clickHandler",value:function(t,e){e&&e.preventDefault(),this.props.clickHandler(t,e)}},{key:"render",value:function(){var t={"slick-arrow":!0,"slick-next":!0},e=this.clickHandler.bind(this,{message:"next"});L(this.props)||(t["slick-disabled"]=!0,e=null);var i={key:"1","data-role":"none",className:y()(t),style:{display:"block"},onClick:e},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?n.cloneElement(this.props.nextArrow,(0,s.A)((0,s.A)({},i),o)):n.createElement("button",(0,r.A)({key:"1",type:"button"},i)," ","Next")}}])}(n.PureComponent),ta=i(5973),tl=["animating"],tu=function(t){function e(t){(0,o.A)(this,e),i=e,a=[t],i=(0,h.A)(i),c=(0,l.A)(this,(0,u.A)()?Reflect.construct(i,a||[],(0,h.A)(this).constructor):i.apply(this,a)),(0,d.A)(c,"listRefHandler",function(t){return c.list=t}),(0,d.A)(c,"trackRefHandler",function(t){return c.track=t}),(0,d.A)(c,"adaptHeight",function(){if(c.props.adaptiveHeight&&c.list){var t=c.list.querySelector('[data-index="'.concat(c.state.currentSlide,'"]'));c.list.style.height=M(t)+"px"}}),(0,d.A)(c,"componentDidMount",function(){if(c.props.onInit&&c.props.onInit(),c.props.lazyLoad){var t=b((0,s.A)((0,s.A)({},c.props),c.state));t.length>0&&(c.setState(function(e){return{lazyLoadedList:e.lazyLoadedList.concat(t)}}),c.props.onLazyLoad&&c.props.onLazyLoad(t))}var e=(0,s.A)({listRef:c.list,trackRef:c.track},c.props);c.updateState(e,!0,function(){c.adaptHeight(),c.props.autoplay&&c.autoPlay("playing")}),"progressive"===c.props.lazyLoad&&(c.lazyLoadTimer=setInterval(c.progressiveLazyLoad,1e3)),c.ro=new ta.A(function(){c.state.animating?(c.onWindowResized(!1),c.callbackTimers.push(setTimeout(function(){return c.onWindowResized()},c.props.speed))):c.onWindowResized()}),c.ro.observe(c.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(t){t.onfocus=c.props.pauseOnFocus?c.onSlideFocus:null,t.onblur=c.props.pauseOnFocus?c.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",c.onWindowResized):window.attachEvent("onresize",c.onWindowResized)}),(0,d.A)(c,"componentWillUnmount",function(){c.animationEndCallback&&clearTimeout(c.animationEndCallback),c.lazyLoadTimer&&clearInterval(c.lazyLoadTimer),c.c
1allbackTimers.length&&(c.callbackTimers.forEach(function(t){return clearTimeout(t)}),c.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",c.onWindowResized):window.detachEvent("onresize",c.onWindowResized),c.autoplayTimer&&clearInterval(c.autoplayTimer),c.ro.disconnect()}),(0,d.A)(c,"componentDidUpdate",function(t){if(c.checkImagesLoad(),c.props.onReInit&&c.props.onReInit(),c.props.lazyLoad){var e=b((0,s.A)((0,s.A)({},c.props),c.state));e.length>0&&(c.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),c.props.onLazyLoad&&c.props.onLazyLoad(e))}c.adaptHeight();var i=(0,s.A)((0,s.A)({listRef:c.list,trackRef:c.track},c.props),c.state),r=c.didPropsChange(t);r&&c.updateState(i,r,function(){c.state.currentSlide>=n.Children.count(c.props.children)&&c.changeSlide({message:"index",index:n.Children.count(c.props.children)-c.props.slidesToShow,currentSlide:c.state.currentSlide}),(t.autoplay!==c.props.autoplay||t.autoplaySpeed!==c.props.autoplaySpeed)&&(!t.autoplay&&c.props.autoplay?c.autoPlay("playing"):c.props.autoplay?c.autoPlay("update"):c.pause("paused"))})}),(0,d.A)(c,"onWindowResized",function(t){c.debouncedResize&&c.debouncedResize.cancel(),c.debouncedResize=(0,g.s)(50,function(){return c.resizeWindow(t)}),c.debouncedResize()}),(0,d.A)(c,"resizeWindow",function(){var t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(c.track&&c.track.node){var e=(0,s.A)((0,s.A)({listRef:c.list,trackRef:c.track},c.props),c.state);c.updateState(e,t,function(){c.props.autoplay?c.autoPlay("update"):c.pause("paused")}),c.setState({animating:!1}),clearTimeout(c.animationEndCallback),delete c.animationEndCallback}}),(0,d.A)(c,"updateState",function(t,e,i){var r=D(t),o=U(t=(0,s.A)((0,s.A)((0,s.A)({},t),r),{},{slideIndex:r.currentSlide})),a=N(t=(0,s.A)((0,s.A)({},t),{},{left:o}));(e||n.Children.count(c.props.children)!==n.Children.count(t.children))&&(r.trackStyle=a),c.setState(r,i)}),(0,d.A)(c,"ssrInit",function(){if(c.props.variableWidth){var t=0,e=0,i=[],r=$((0,s.A)((0,s.A)((0,s.A)({},c.props),c.state),{},{slideCount:c.props.children.length})),o=Y((0,s.A)((0,s.A)((0,s.A)({},c.props),c.state),{},{slideCount:c.props.children.length}));c.props.children.forEach(function(e){i.push(e.props.style.width),t+=e.props.style.width});for(var a=0;a<r;a++)e+=i[i.length-1-a],t+=i[i.length-1-a];for(var l=0;l<o;l++)t+=i[l];for(var u=0;u<c.state.currentSlide;u++)e+=i[u];var h={width:t+"px",left:-e+"px"};if(c.props.centerMode){var d="".concat(i[c.state.currentSlide],"px");h.left="calc(".concat(h.left," + (100% - ").concat(d,") / 2 ) ")}return{trackStyle:h}}var p=n.Children.count(c.props.children),f=(0,s.A)((0,s.A)((0,s.A)({},c.props),c.state),{},{slideCount:p}),m=$(f)+Y(f)+p,g=100/c.props.slidesToShow*m,v=100/m,y=-v*($(f)+c.state.currentSlide)*g/100;return c.props.centerMode&&(y+=(100-v*g/100)/2),{slideWidth:v+"%",trackStyle:{width:g+"%",left:y+"%"}}}),(0,d.A)(c,"checkImagesLoad",function(){var t=c.list&&c.list.querySelectorAll&&c.list.querySelectorAll(".slick-slide img")||[],e=t.length,i=0;Array.prototype.forEach.call(t,function(t){var n=function(){return++i&&i>=e&&c.onWindowResized()};if(t.onclick){var r=t.onclick;t.onclick=function(e){r(e),t.parentNode.focus()}}else t.onclick=function(){return t.parentNode.focus()};t.onload||(c.props.lazyLoad?t.onload=function(){c.adaptHeight(),c.callbackTimers.push(setTimeout(c.onWindowResized,c.props.speed))}:(t.onload=n,t.onerror=function(){n(),c.props.onLazyLoadError&&c.props.onLazyLoadError()}))})}),(0,d.A)(c,"progressiveLazyLoad",function(){for(var t=[],e=(0,s.A)((0,s.A)({},c.props),c.state),i=c.state.currentSlide;i<c.state.slideCount+Y(e);i++)if(0>c.state.lazyLoadedList.indexOf(i)){t.push(i);break}for(var n=c.state.currentSlide-1;n>=-$(e);n--)if(0>c.state.lazyLoadedList.indexOf(n)){t.push(n);break}t.length>0?(c.setState(function(e){return{lazyLoadedList:e.lazyLoadedList.concat(t)}}),c.props.onLazyLoad&&c.props.onLazyLoad(t)):c.lazyLoadTimer&&(clearInterval(c.lazyLoadTimer),delete c.lazyLoadTimer)}),(0,d.A)(c,"slideHandler",function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=c.props,n=i.asNavFor,r=i.beforeChange,o=i.onLazyLoad,a=i.speed,l=i.afterChange,u=c.state.currentSlide,h=V((0,s.A)((0,s.A)((0,s.A)({index:t},c.props),c.state),{},{trackRef:c.track,useCSS:c.props.useCSS&&!e})),d=h.state,p=h.nextState;if(d){r&&r(u,d.currentSlide);var m=d.lazyLoadedList.filter(function(t){return 0>c.state.lazyLoadedList.indexOf(t)});o&&m.length>
10&&o(m),!c.props.waitForAnimate&&c.animationEndCallback&&(clearTimeout(c.animationEndCallback),l&&l(u),delete c.animationEndCallback),c.setState(d,function(){n&&c.asNavForIndex!==t&&(c.asNavForIndex=t,n.innerSlider.slideHandler(t)),p&&(c.animationEndCallback=setTimeout(function(){var t=p.animating,e=(0,f.A)(p,tl);c.setState(e,function(){c.callbackTimers.push(setTimeout(function(){return c.setState({animating:t})},10)),l&&l(d.currentSlide),delete c.animationEndCallback})},a))})}}),(0,d.A)(c,"changeSlide",function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=O((0,s.A)((0,s.A)({},c.props),c.state),t);if((0===i||i)&&(!0===e?c.slideHandler(i,e):c.slideHandler(i),c.props.autoplay&&c.autoPlay("update"),c.props.focusOnSelect)){var n=c.list.querySelectorAll(".slick-current");n[0]&&n[0].focus()}}),(0,d.A)(c,"clickHandler",function(t){!1===c.clickable&&(t.stopPropagation(),t.preventDefault()),c.clickable=!0}),(0,d.A)(c,"keyHandler",function(t){var e,i,n=(e=c.props.accessibility,i=c.props.rtl,t.target.tagName.match("TEXTAREA|INPUT|SELECT")||!e?"":37===t.keyCode?i?"next":"previous":39===t.keyCode?i?"previous":"next":"");""!==n&&c.changeSlide({message:n})}),(0,d.A)(c,"selectHandler",function(t){c.changeSlide(t)}),(0,d.A)(c,"disableBodyScroll",function(){window.ontouchmove=function(t){(t=t||window.event).preventDefault&&t.preventDefault(),t.returnValue=!1}}),(0,d.A)(c,"enableBodyScroll",function(){window.ontouchmove=null}),(0,d.A)(c,"swipeStart",function(t){c.props.verticalSwiping&&c.disableBodyScroll();var e,i,n=(e=c.props.swipe,i=c.props.draggable,("IMG"===t.target.tagName&&w(t),e&&(i||-1===t.type.indexOf("mouse")))?{dragging:!0,touchObject:{startX:t.touches?t.touches[0].pageX:t.clientX,startY:t.touches?t.touches[0].pageY:t.clientY,curX:t.touches?t.touches[0].pageX:t.clientX,curY:t.touches?t.touches[0].pageY:t.clientY}}:"");""!==n&&c.setState(n)}),(0,d.A)(c,"swipeMove",function(t){var e=j(t,(0,s.A)((0,s.A)((0,s.A)({},c.props),c.state),{},{trackRef:c.track,listRef:c.list,slideIndex:c.state.currentSlide}));e&&(e.swiping&&(c.clickable=!1),c.setState(e))}),(0,d.A)(c,"swipeEnd",function(t){var e=I(t,(0,s.A)((0,s.A)((0,s.A)({},c.props),c.state),{},{trackRef:c.track,listRef:c.list,slideIndex:c.state.currentSlide}));if(e){var i=e.triggerSlideHandler;delete e.triggerSlideHandler,c.setState(e),void 0!==i&&(c.slideHandler(i),c.props.verticalSwiping&&c.enableBodyScroll())}}),(0,d.A)(c,"touchEnd",function(t){c.swipeEnd(t),c.clickable=!0}),(0,d.A)(c,"slickPrev",function(){c.callbackTimers.push(setTimeout(function(){return c.changeSlide({message:"previous"})},0))}),(0,d.A)(c,"slickNext",function(){c.callbackTimers.push(setTimeout(function(){return c.changeSlide({message:"next"})},0))}),(0,d.A)(c,"slickGoTo",function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(isNaN(t=Number(t)))return"";c.callbackTimers.push(setTimeout(function(){return c.changeSlide({message:"index",index:t,currentSlide:c.state.currentSlide},e)},0))}),(0,d.A)(c,"play",function(){var t;if(c.props.rtl)t=c.state.currentSlide-c.props.slidesToScroll;else{if(!L((0,s.A)((0,s.A)({},c.props),c.state)))return!1;t=c.state.currentSlide+c.props.slidesToScroll}c.slideHandler(t)}),(0,d.A)(c,"autoPlay",function(t){c.autoplayTimer&&clearInterval(c.autoplayTimer);var e=c.state.autoplaying;if("update"===t){if("hovered"===e||"focused"===e||"paused"===e)return}else if("leave"===t){if("paused"===e||"focused"===e)return}else if("blur"===t&&("paused"===e||"hovered"===e))return;c.autoplayTimer=setInterval(c.play,c.props.autoplaySpeed+50),c.setState({autoplaying:"playing"})}),(0,d.A)(c,"pause",function(t){c.autoplayTimer&&(clearInterval(c.autoplayTimer),c.autoplayTimer=null);var e=c.state.autoplaying;"paused"===t?c.setState({autoplaying:"paused"}):"focused"===t?("hovered"===e||"playing"===e)&&c.setState({autoplaying:"focused"}):"playing"===e&&c.setState({autoplaying:"hovered"})}),(0,d.A)(c,"onDotsOver",function(){return c.props.autoplay&&c.pause("hovered")}),(0,d.A)(c,"onDotsLeave",function(){return c.props.autoplay&&"hovered"===c.state.autoplaying&&c.autoPlay("leave")}),(0,d.A)(c,"onTrackOver",function(){return c.props.autoplay&&c.pause("hovered")}),(0,d.A)(c,"onTrackLeave",function(){return c.props.autoplay&&"hovered"===c.state.autoplaying&&c.autoPlay("leave")}),(0,d.A)(c,"onSlideFocus",function(){return c.props.autoplay&&c.pause("focused")}),(0,d.A)(c,"onSlideBlur",function(){return c.props.autoplay&&"focu
1sed"===c.state.autoplaying&&c.autoPlay("blur")}),(0,d.A)(c,"render",function(){var t,e,i,o=y()("slick-slider",c.props.className,{"slick-vertical":c.props.vertical,"slick-initialized":!0}),a=(0,s.A)((0,s.A)({},c.props),c.state),l=R(a,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),u=c.props.pauseOnHover;if(l=(0,s.A)((0,s.A)({},l),{},{onMouseEnter:u?c.onTrackOver:null,onMouseLeave:u?c.onTrackLeave:null,onMouseOver:u?c.onTrackOver:null,focusOnSelect:c.props.focusOnSelect&&c.clickable?c.selectHandler:null}),!0===c.props.dots&&c.state.slideCount>=c.props.slidesToShow){var h=R(a,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),d=c.props.pauseOnDotsHover;h=(0,s.A)((0,s.A)({},h),{},{clickHandler:c.changeSlide,onMouseEnter:d?c.onDotsLeave:null,onMouseOver:d?c.onDotsOver:null,onMouseLeave:d?c.onDotsLeave:null}),t=n.createElement(tn,h)}var p=R(a,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);p.clickHandler=c.changeSlide,c.props.arrows&&(e=n.createElement(ts,p),i=n.createElement(to,p));var f=null;c.props.vertical&&(f={height:c.state.listHeight});var m=null;!1===c.props.vertical?!0===c.props.centerMode&&(m={padding:"0px "+c.props.centerPadding}):!0===c.props.centerMode&&(m={padding:c.props.centerPadding+" 0px"});var g=(0,s.A)((0,s.A)({},f),m),v=c.props.touchMove,S={className:"slick-list",style:g,onClick:c.clickHandler,onMouseDown:v?c.swipeStart:null,onMouseMove:c.state.dragging&&v?c.swipeMove:null,onMouseUp:v?c.swipeEnd:null,onMouseLeave:c.state.dragging&&v?c.swipeEnd:null,onTouchStart:v?c.swipeStart:null,onTouchMove:c.state.dragging&&v?c.swipeMove:null,onTouchEnd:v?c.touchEnd:null,onTouchCancel:c.state.dragging&&v?c.swipeEnd:null,onKeyDown:c.props.accessibility?c.keyHandler:null},x={className:o,dir:"ltr",style:c.props.style};return c.props.unslick&&(S={className:"slick-list"},x={className:o,style:c.props.style}),n.createElement("div",x,c.props.unslick?"":e,n.createElement("div",(0,r.A)({ref:c.listRefHandler},S),n.createElement(ti,(0,r.A)({ref:c.trackRefHandler},l),c.props.children)),c.props.unslick?"":i,c.props.unslick?"":t)}),c.list=null,c.track=null,c.state=(0,s.A)((0,s.A)({},m),{},{currentSlide:c.props.initialSlide,targetSlide:c.props.initialSlide?c.props.initialSlide:0,slideCount:n.Children.count(c.props.children)}),c.callbackTimers=[],c.clickable=!0,c.debouncedResize=null;var i,a,c,p=c.ssrInit();return c.state=(0,s.A)((0,s.A)({},c.state),p),c}return(0,c.A)(e,t),(0,a.A)(e,[{key:"didPropsChange",value:function(t){for(var e=!1,i=0,r=Object.keys(this.props);i<r.length;i++){var s=r[i];if(!t.hasOwnProperty(s)||!("object"===(0,p.A)(t[s])||"function"==typeof t[s]||isNaN(t[s]))&&t[s]!==this.props[s]){e=!0;break}}return e||n.Children.count(this.props.children)!==n.Children.count(t.children)}}])}(n.Component),th=i(92303),tc=i.n(th),td=function(t){function e(t){var i,n,r;return(0,o.A)(this,e),n=e,r=[t],n=(0,h.A)(n),i=(0,l.A)(this,(0,u.A)()?Reflect.construct(n,r||[],(0,h.A)(this).constructor):n.apply(this,r)),(0,d.A)(i,"innerSliderRefHandler",function(t){return i.innerSlider=t}),(0,d.A)(i,"slickPrev",function(){return i.innerSlider.slickPrev()}),(0,d.A)(i,"slickNext",function(){return i.innerSlider.slickNext()}),(0,d.A)(i,"slickGoTo",function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return i.innerSlider.slickGoTo(t,e)}),(0,d.A)(i,"slickPause",function(){return i.innerSlider.pause("paused")}),(0,d.A)(i,"slickPlay",function(){return i.innerSlider.autoPlay("play")}),i.state={breakpoint:null},i._responsiveMediaHandlers=[],i}return(0,c.A)(e,t),(0,a.A)(e,[{key:"media",value:function(t,e){var i=window.matchMedia(t),n=function(t){t.matches&&e()};i.addListener(n),n(i),this._responsiveMediaHandlers.push({mql:i,query:t,listener:n})}},{key:"componentDidMount",value:function(){var t=this;if(this.props.responsive){var e=this.props.responsive.map(function(t){return t.breakpoint});e.sort(function(t,e){return t-e}),e.forEach(function(i,n){var r;r=0===n?tc()({minWidth:0,maxWidth:i}):tc()({minWidth:e[n-1]+1,maxWidth:i}),_()&&t.media(r,function(){t.setState({breakpoint:i})})});var i=tc()({minWidth:e.slice(-1)[0]});_()&&this.media(i,function(){t.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEac
1h(function(t){t.mql.removeListener(t.listener)})}},{key:"render",value:function(){var t,e,i=this;(t=this.state.breakpoint?"unslick"===(e=this.props.responsive.filter(function(t){return t.breakpoint===i.state.breakpoint}))[0].settings?"unslick":(0,s.A)((0,s.A)((0,s.A)({},S),this.props),e[0].settings):(0,s.A)((0,s.A)({},S),this.props)).centerMode&&(t.slidesToScroll,t.slidesToScroll=1),t.fade&&(t.slidesToShow,t.slidesToScroll,t.slidesToShow=1,t.slidesToScroll=1);var o=n.Children.toArray(this.props.children);o=o.filter(function(t){return"string"==typeof t?!!t.trim():!!t}),t.variableWidth&&(t.rows>1||t.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),t.variableWidth=!1);for(var a=[],l=null,u=0;u<o.length;u+=t.rows*t.slidesPerRow){for(var h=[],c=u;c<u+t.rows*t.slidesPerRow;c+=t.slidesPerRow){for(var d=[],p=c;p<c+t.slidesPerRow&&(t.variableWidth&&o[p].props.style&&(l=o[p].props.style.width),!(p>=o.length));p+=1)d.push(n.cloneElement(o[p],{key:100*u+10*c+p,tabIndex:-1,style:{width:"".concat(100/t.slidesPerRow,"%"),display:"inline-block"}}));h.push(n.createElement("div",{key:10*u+c},d))}t.variableWidth?a.push(n.createElement("div",{key:u,style:{width:l}},h)):a.push(n.createElement("div",{key:u},h))}if("unslick"===t){var f="regular slider "+(this.props.className||"");return n.createElement("div",{className:f},o)}return a.length<=t.slidesToShow&&!t.infinite&&(t.unslick=!0),n.createElement(tu,(0,r.A)({style:this.props.style,ref:this.innerSliderRefHandler},Z.reduce(function(e,i){return t.hasOwnProperty(i)&&(e[i]=t[i]),e},{})),a)}}])}(n.Component),tp=i(31049),tf=i(67548),tm=i(70695),tg=i(1086);let tv="--dot-duration",ty=t=>{let{componentCls:e,antCls:i}=t;return{[e]:Object.assign(Object.assign({},(0,tm.dF)(t)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",["input".concat(i,"-radio-input, input").concat(i,"-checkbox-input")]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",["input".concat(i,"-radio-input, input").concat(i,"-checkbox-input")]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"}})}},tS=t=>{let{componentCls:e,motionDurationSlow:i,arrowSize:n,arrowOffset:r}=t,s=t.calc(n).div(Math.SQRT2).equal();return{[e]:{".slick-prev, .slick-next":{position:"absolute",top:"50%",width:n,height:n,transform:"translateY(-50%)",color:"#fff",opacity:.4,background:"transparent",padding:0,lineHeight:0,border:0,outline:"none",cursor:"pointer",zIndex:1,transition:"opacity ".concat(i),"&:hover, &:focus":{opacity:1},"&.slick-disabled":{pointerEvents:"none",opacity:0},"&::after":{boxSizing:"border-box",position:"absolute",top:t.calc(n).sub(s).div(2).equal(),insetInlineStart:t.calc(n).sub(s).div(2).equal(),display:"inline-block",width:s,height:s,border:"0 solid currentcolor",borderInlineStartWidth:2,borderBlockStartWidth:2,borderRadius:1,content:'""'}},".slick-prev":{insetInlineStart:r,"&::after":{transform:"rotate(-45deg)"}},".slick-next":{insetInlineEnd:r,"&::after":{transform:"rotate(135deg)"}}}}},tx=t=>{let{componentCls:e,dotOffset:i,dotWidth:n,dotHeight:r,dotGap:s,colorBgContainer:o,motionDurationSlow:a}=t;return{[e]:{".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:i},"&-top":{top:i,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:n,height:r,marginInline:s,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:"all ".concat(a),borderRadius:r,overflow:"hidden","&::after":{display:"block",position:"absolute",top:0,insetInlineStart:0,width:"100%",height:r,content:'""',background:o,borderRadius:r,opacity:1,outline:"none",cursor:"pointer",overflow:"hidden",transform:"translate3d(-100%, 0, 0)"},button:{position:"relative",display:"block",width:"100%",height:r,padding:0,color:"transparent",fontSize:0,background:o,border:0,borderRadius:r,outline:"none",cursor:"pointer",opacity:.2,transition:"all ".concat(a),overflow:"hidden","&:hover":{opacity:.75},"&::after":{position:"absolute",inset:t.calc(s).mul(-1).equal(),content:'""'}},"&.slick-active":{width:t.dotActiveWidth,position:"relative","&:hover":{opacity:1},"&::after":{transform:"translate3d(0, 0, 0)",transition:"transform var(".concat(tv,") ease-out")}}}}}}},tw=t=>{let{componentCls:e,dotOffset:i,arrowOffset:n,marginXXS:r}=t,s={width:t.dotHeight,height:t.dotWidth};return{["".concat(e,"-vertical")]:{".slick-prev, .slick-next":{insetInlineStart:"50%",marginBlockStart:"unset",transform:"translateX(-50%)"},".slick-prev":{insetBlockStart:n,insetInlineStart:"50%","&::after":{transform:"rotate(45deg)"}},".slick-next":{insetBlockStart:"auto",insetBlockEnd:n,"&::after":{transform:"rotate(-135deg)"}},".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:t.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:i},"&-right":{insetInlineEnd:i,insetInlineStart:"auto"},li:Object.assign(Object.assign({},s),{margin:"".concat((0,tf.zA)(r)," 0"),verticalAlign:"baseline",button:s,"&::after":Object.assign(Object.assign({},s),{height:0}),"&.slick-active":Object.assign(Object.assign({},s),{button:s,"&::after":Object.assign(Object.assign({},s),{transition:"height var(".concat(tv,") ease-out")})})})}}}},tb=t=>{let{componentCls:e}=t;return[{["".concat(e,"-rtl")]:{direction:"rtl",".slick-dots":{["".concat(e,"-rtl&")]:{flexDirection:"row-reverse"}}}},{["".concat(e,"-vertical")]:{".slick-dots":{["".concat(e,"-rtl&")]:{flexDirection:"column"}}}}]},tA=(0,tg.OF)("Carousel",t=>[ty(t),tS(t),tx(t),tw(t),tb(t)],t=>({arrowSize:16,arrowOffset:t.marginXS,dotWidth:16,dotHeight:3,dotGap:t.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24}),{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]});var tT=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(t);r<n.length;r++)0>e.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]]);return i};let tk="slick-dots",tP=t=>{var{currentSlide:e,slideCount:i}=t,r=tT(t,["currentSlide","slideCount"]);return n.createElement("button",Object.assign({type:"button"},r))},tE=n.forwardRef((t,e)=>{let{dots:i=!0,arrows:r=!1,prevArrow:s=n.createElement(tP,{"aria-label":"prev"}),nextArrow:o=n.createElement(tP,{"aria-label":"next"}),draggable:a=!1,waitForAnimate:l=!1,dotPosition:u="bottom",vertical:h="left"===u||"right"===u,rootClassName:c,className:d,style:p,id:f,autoplay:m=!1,autoplaySpeed:g=3e3}
1=t,v=tT(t,["dots","arrows","prevArrow","nextArrow","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id","autoplay","autoplaySpeed"]),{getPrefixCls:S,direction:x,className:w,style:b}=(0,tp.TP)("carousel"),A=n.useRef(null),T=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];A.current.slickGoTo(t,e)};n.useImperativeHandle(e,()=>({goTo:T,autoPlay:A.current.innerSlider.autoPlay,innerSlider:A.current.innerSlider,prev:A.current.slickPrev,next:A.current.slickNext}),[A.current]);let k=n.useRef(n.Children.count(t.children));n.useEffect(()=>{k.current!==n.Children.count(t.children)&&(T(t.initialSlide||0,!1),k.current=n.Children.count(t.children))},[t.children]);let P=Object.assign({vertical:h,className:y()(d,w),style:Object.assign(Object.assign({},b),p),autoplay:!!m},v);"fade"===P.effect&&(P.fade=!0);let E=S("carousel",P.prefixCls),M=!!i,C=y()(tk,"".concat(tk,"-").concat(u),"boolean"!=typeof i&&(null==i?void 0:i.className)),[L,R,D]=tA(E),V=y()(E,{["".concat(E,"-rtl")]:"rtl"===x,["".concat(E,"-vertical")]:P.vertical},R,D,c),O=m&&"object"==typeof m&&m.dotDuration?{[tv]:"".concat(g,"ms")}:{};return L(n.createElement("div",{className:V,id:f,style:O},n.createElement(td,Object.assign({ref:A},P,{dots:M,dotsClass:C,arrows:r,prevArrow:s,nextArrow:o,draggable:a,verticalSwiping:h,autoplaySpeed:g,waitForAnimate:l}))))})},92303:(t,e,i)=>{var n=i(78794),r=function(t){var e="",i=Object.keys(t);return i.forEach(function(r,s){var o,a=t[r];o=r=n(r),/[height|width]$/.test(o)&&"number"==typeof a&&(a+="px"),!0===a?e+=r:!1===a?e+="not "+r:e+="("+r+": "+a+")",s<i.length-1&&(e+=" and ")}),e};t.exports=function(t){var e="";return"string"==typeof t?t:t instanceof Array?(t.forEach(function(i,n){e+=r(i),n<t.length-1&&(e+=", ")}),e):r(t)}},82092:(t,e,i)=>{"use strict";i.d(e,{A:()=>l});var n=i(12115);let r=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),s=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return e.filter((t,e,i)=>!!t&&""!==t.trim()&&i.indexOf(t)===e).join(" ").trim()};var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,n.forwardRef)((t,e)=>{let{color:i="currentColor",size:r=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:u="",children:h,iconNode:c,...d}=t;return(0,n.createElement)("svg",{ref:e,...o,width:r,height:r,stroke:i,strokeWidth:l?24*Number(a)/Number(r):a,className:s("lucide",u),...d},[...c.map(t=>{let[e,i]=t;return(0,n.createElement)(e,i)}),...Array.isArray(h)?h:[h]])}),l=((t,e)=>{let i=(0,n.forwardRef)((i,o)=>{let{className:l,...u}=i;return(0,n.createElement)(a,{ref:o,iconNode:e,className:s("lucide-".concat(r(t)),l),...u})});return i.displayName="".concat(t),i})("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},78794:t=>{t.exports=function(t){return t.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()}).toLowerCase()}},91996:()=>{},89569:()=>{},83379:(t,e,i)=>{"use strict";let n;function r(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function s(t,e,i,n){if("function"==typeof e||("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e)){let[r,s]=function(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}(n);e=e(void 0!==i?i:t.custom,r,s)}return e}function o(t,e,i){let n=t.getProps();return s(n,e,void 0!==i?i:n.custom,t)}function a(t,e){return t?.[e]??t?.default??t}i.d(e,{P:()=>sw});let l=t=>t,u={},h=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],c={value:null,addProjectionMetrics:null};function d(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=h.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,r=!1,s=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){o.has(e)&&(h.schedule(e),t()),l++,e(a)}let h={schedule:(t,e=!1,s=!1)=>{let a=s&&r?i:n;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(a=t,r){s=!0;return}
1r=!0,[i,n]=[n,i],i.forEach(u),e&&c.value&&c.value.frameloop[e].push(l),l=0,i.clear(),r=!1,s&&(s=!1,h.process(t))}};return h}(s,e?i:void 0),t),{}),{setup:a,read:l,resolveKeyframes:d,preUpdate:p,update:f,preRender:m,render:g,postRender:v}=o,y=()=>{let s=u.useManualTiming?r.timestamp:performance.now();i=!1,u.useManualTiming||(r.delta=n?1e3/60:Math.max(Math.min(s-r.timestamp,40),1)),r.timestamp=s,r.isProcessing=!0,a.process(r),l.process(r),d.process(r),p.process(r),f.process(r),m.process(r),g.process(r),v.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(y))},S=()=>{i=!0,n=!0,r.isProcessing||t(y)};return{schedule:h.reduce((t,e)=>{let n=o[e];return t[e]=(t,e=!1,r=!1)=>(i||S(),n.schedule(t,e,r)),t},{}),cancel:t=>{for(let e=0;e<h.length;e++)o[h[e]].cancel(t)},state:r,steps:o}}let{schedule:p,cancel:f,state:m,steps:g}=d("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:l,!0),v=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],y=new Set(v),S=new Set(["width","height","top","left","right","bottom",...v]);function x(t,e){-1===t.indexOf(e)&&t.push(e)}function w(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class b{constructor(){this.subscriptions=[]}add(t){return x(this.subscriptions,t),()=>w(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function A(){n=void 0}let T={now:()=>(void 0===n&&T.set(m.isProcessing||u.useManualTiming?m.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(A)}},k=t=>!isNaN(parseFloat(t)),P={current:void 0};class E{constructor(t,e={}){this.version="12.8.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=T.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=T.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=k(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 b);let i=this.events[t].add(e);return"change"===t?()=>{i(),p.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return P.current&&P.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=T.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.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function M(t,e){return new E(t,e)}let C=t=>Array.isArray(t),L=t=>!!(t&&t.getVelocity);function R(t,e){let i=t.getValue("willChange");if(L(i)&&i.add)return i.add(e);if(!i&&u.WillChange){let i=new u.WillChange("auto");
1t.addValue("willChange",i),i.add(e)}}let D=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),V="data-"+D("framerAppearId"),O=(t,e)=>i=>e(t(i)),j=(...t)=>t.reduce(O),I=(t,e,i)=>i>e?e:i<t?t:i,F=t=>1e3*t,W=t=>t/1e3,B={layout:0,mainThread:0,waapi:0},z=()=>{},N=()=>{},H=t=>e=>"string"==typeof e&&e.startsWith(t),U=H("--"),$=H("var(--"),Y=t=>!!$(t)&&X.test(t.split("/*")[0].trim()),X=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,q={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},K={...q,transform:t=>I(0,1,t)},G={...q,default:1},_=t=>Math.round(1e5*t)/1e5,Z=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,J=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Q=(t,e)=>i=>!!("string"==typeof i&&J.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tt=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,s,o,a]=n.match(Z);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},te=t=>I(0,255,t),ti={...q,transform:t=>Math.round(te(t))},tn={test:Q("rgb","red"),parse:tt("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+ti.transform(t)+", "+ti.transform(e)+", "+ti.transform(i)+", "+_(K.transform(n))+")"},tr={test:Q("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:tn.transform},ts=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),to=ts("deg"),ta=ts("%"),tl=ts("px"),tu=ts("vh"),th=ts("vw"),tc={...ta,parse:t=>ta.parse(t)/100,transform:t=>ta.transform(100*t)},td={test:Q("hsl","hue"),parse:tt("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+ta.transform(_(e))+", "+ta.transform(_(i))+", "+_(K.transform(n))+")"},tp={test:t=>tn.test(t)||tr.test(t)||td.test(t),parse:t=>tn.test(t)?tn.parse(t):td.test(t)?td.parse(t):tr.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tn.transform(t):td.transform(t)},tf=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tm="number",tg="color",tv=/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 ty(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,o=e.replace(tv,t=>(tp.test(t)?(n.color.push(s),r.push(tg),i.push(tp.parse(t))):t.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(t)):(n.number.push(s),r.push(tm),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function tS(t){return ty(t).values}function tx(t){let{split:e,types:i}=ty(t),n=e.length;return t=>{let r="";for(let s=0;s<n;s++)if(r+=e[s],void 0!==t[s]){let e=i[s];e===tm?r+=_(t[s]):e===tg?r+=tp.transform(t[s]):r+=t[s]}return r}}let tw=t=>"number"==typeof t?0:t,tb={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(Z)?.length||0)+(t.match(tf)?.length||0)>0},parse:tS,createTransformer:tx,getAnimatableNone:function(t){let e=tS(t);return tx(t)(e.map(tw))}};function tA(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 tT(t,e){return i=>i>0?e:t}let tk=(t,e,i)=>t+(e-t)*i,tP=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},tE=[tr,tn,td],tM=t=>tE.find(e=>e.test(t));function tC(t){let e=tM(t);if(z(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===td&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;
1r=tA(a,n,t+1/3),s=tA(a,n,t),o=tA(a,n,t-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let tL=(t,e)=>{let i=tC(t),n=tC(e);if(!i||!n)return tT(t,e);let r={...i};return t=>(r.red=tP(i.red,n.red,t),r.green=tP(i.green,n.green,t),r.blue=tP(i.blue,n.blue,t),r.alpha=tk(i.alpha,n.alpha,t),tn.transform(r))},tR=new Set(["none","hidden"]);function tD(t,e){return i=>tk(t,e,i)}function tV(t){return"number"==typeof t?tD:"string"==typeof t?Y(t)?tT:tp.test(t)?tL:tI:Array.isArray(t)?tO:"object"==typeof t?tp.test(t)?tL:tj:tT}function tO(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>tV(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function tj(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=tV(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let tI=(t,e)=>{let i=tb.createTransformer(e),n=ty(t),r=ty(e);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?tR.has(t)&&!r.values.length||tR.has(e)&&!n.values.length?function(t,e){return tR.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):j(tO(function(t,e){let i=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let s=e.types[r],o=t.indexes[s][n[s]],a=t.values[o]??0;i[r]=a,n[s]++}return i}(n,r),r.values),i):(z(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),tT(t,e))};function tF(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?tk(t,e,i):tV(t)(t,e)}let tW=t=>{let e=({timestamp:e})=>t(e);return{start:()=>p.update(e,!0),stop:()=>f(e),now:()=>m.isProcessing?m.timestamp:T.now()}},tB=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=t(e/(r-1))+", ";return`linear(${n.substring(0,n.length-2)})`};function tz(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}function tN(t,e,i){var n,r;let s=Math.max(e-5,0);return n=i-t(s),(r=e-s)?1e3/r*n:0}let tH={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 tU(t,e){return t*Math.sqrt(1-e*e)}let t$=["duration","bounce"],tY=["stiffness","damping","mass"];function tX(t,e){return e.some(e=>void 0!==t[e])}function tq(t=tH.visualDuration,e=tH.bounce){let i;let n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:r,restDelta:s}=n,o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:h,mass:c,duration:d,velocity:p,isResolvedFromDuration:f}=function(t){let e={velocity:tH.velocity,stiffness:tH.stiffness,damping:tH.damping,mass:tH.mass,isResolvedFromDuration:!1,...t};if(!tX(t,tY)&&tX(t,t$)){if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*I(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:tH.mass,stiffness:n,damping:r}}else{let i=function({duration:t=tH.duration,bounce:e=tH.bounce,velocity:i=tH.velocity,mass:n=tH.mass}){let r,s;z(t<=F(tH.maxDuration),"Spring duration must be 10 seconds or less");let o=1-e;o=I(tH.minDamping,tH.maxDamping,o),t=I(tH.minDuration,tH.maxDuration,W(t)),o<1?(r=e=>{let n=e*o,r=n*t;return .001-(n-i)/tU(e,o)*Math.exp(-r)},s=e=>{let n=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-n),l=tU(Math.pow(e,2),o);return(n*i+i-s)*a*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,5/t);if(t=F(t),isNaN(a))return{stiffness:tH.stiffness,damping:tH.damping,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:tH.mass}).isResolvedFromDuration=!0}}return e}({...n,velocity:-W(n.velocity||0)}),m=p||0,g=h/(2*Math.sqrt(u*c)),v=a-o,y=W(Math.sqrt(u/c)),S=5>Math.abs(v);if(r||(r=S?tH.restSpeed.granular:tH.restSpeed.default),s||(s=S?tH.restDelta.granular:tH.restDelta.default),g<1){let t=tU(y,g);i=e=>a-Math.exp(-g*y*e)*((m+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+(m+y*v)*t);else{let t=y*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*y*e),n=Math.min(t*e,300);return a-i*((m+g*y*v)*Math.sinh(n)+t*v*Math.cosh(n))/t}}
1let x={calculatedDuration:f&&d||null,next:t=>{let e=i(t);if(f)l.done=t>=d;else{let n=0===t?m:0;g<1&&(n=0===t?F(m):tN(i,t,e));let o=Math.abs(n)<=r,u=Math.abs(a-e)<=s;l.done=o&&u}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(tz(x),2e4),e=tB(e=>x.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return x}function tK({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d;let p=t[0],f={done:!1,value:p},m=t=>void 0!==a&&t<a||void 0!==l&&t>l,g=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,v=i*e,y=p+v,S=void 0===o?y:o(y);S!==y&&(v=S-p);let x=t=>-v*Math.exp(-t/n),w=t=>S+x(t),b=t=>{let e=x(t),i=w(t);f.done=Math.abs(e)<=u,f.value=f.done?S:i},A=t=>{m(f.value)&&(c=t,d=tq({keyframes:[f.value,g(f.value)],velocity:tN(w,t,f.value),damping:r,stiffness:s,restDelta:u,restSpeed:h}))};return A(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,b(t),A(t)),void 0!==c&&t>=c)?d.next(t-c):(e||b(t),f)}}}tq.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),r=Math.min(tz(n),2e4);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:W(r)}}(t,100,tq);return t.ease=e.ease,t.duration=F(e.duration),t.type="keyframes",t};let tG=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function t_(t,e,i,n){if(t===e&&i===n)return l;let r=e=>(function(t,e,i,n,r){let s,o;let a=0;do(s=tG(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:tG(r(t),e,n)}let tZ=t_(.42,0,1,1),tJ=t_(0,0,.58,1),tQ=t_(.42,0,.58,1),t0=t=>Array.isArray(t)&&"number"!=typeof t[0],t1=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,t2=t=>e=>1-t(1-e),t5=t_(.33,1.53,.69,.99),t3=t2(t5),t9=t1(t3),t4=t=>(t*=2)<1?.5*t3(t):.5*(2-Math.pow(2,-10*(t-1))),t6=t=>1-Math.sin(Math.acos(t)),t8=t2(t6),t7=t1(t6),et=t=>Array.isArray(t)&&"number"==typeof t[0],ee={linear:l,easeIn:tZ,easeInOut:tQ,easeOut:tJ,circIn:t6,circInOut:t7,circOut:t8,backIn:t3,backInOut:t9,backOut:t5,anticipate:t4},ei=t=>"string"==typeof t,en=t=>{if(et(t)){N(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,r]=t;return t_(e,i,n,r)}return ei(t)?(N(void 0!==ee[t],`Invalid easing type '${t}'`),ee[t]):t},er=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};function es({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let r=t0(n)?n.map(en):en(n),s={done:!1,value:e[0]},o=function(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;if(N(s===e.length,"Both input and output ranges must be the same length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let n=[],r=i||u.mix||tF,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=j(Array.isArray(e)?e[i]||l:e,s)),n.push(s)}return n}(e,n,r),h=a.length,c=i=>{if(o&&i<t[0])return e[0];let n=0;if(h>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=er(t[n],t[n+1],i);return a[n](r)};return i?e=>c(I(t[0],t[s-1],e)):c}((i&&i.length===e.length?i:function(t){let e=[0];return function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=er(0,e,n);t.push(tk(i,1,r))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(r)?r:e.map(()=>r||tQ).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=o(e),s.done=e>=t,s)}}let eo=t=>null!==t;function ea(t,{repeat:e,repeatType:i="loop"},n,r=1){let s=t.filter(eo),o=r<0||e&&"loop"!==i&&e%2==1?0:s.length-1;return o&&void 0!==n?n:s[o]}let el={decay:tK,inertia:tK,tween:es,keyframes:es,spring:tq};function eu(t){"string"==typeof t.type&&(t.type=el[t.type])}class eh{constructor(){this.count=0,this.updateFinished()}get finished(){return this._finished}updateFinished(){this.count++,this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let ec=t=>t/100;class ed extends eh{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;if(t&&t.updatedAt!==T.now()&&this.tick(T.now()),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()},B.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;eu(t);let{type:e=es,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=t,{keyframes:o}=t,a=e||es;a!==es&&"number"!=typeof o[0]&&(this.mixKeyframes=j(ec,tF(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===r&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=tz(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,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:n,mixKeyframes:r,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:a}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:u,repeat:h,repeatType:c,repeatDelay:d,type:p,onUpdate:f,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>n;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let y=this.currentTime,S=i;
1if(h){let t=Math.min(this.currentTime,n)/o,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,h+1))%2&&("reverse"===c?(i=1-i,d&&(i-=d/o)):"mirror"===c&&(S=s)),y=I(0,1,i)*o}let x=v?{done:!1,value:u[0]}:S.next(y);r&&(x.value=r(x.value));let{done:w}=x;v||null===a||(w=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let b=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return b&&p!==tK&&(x.value=ea(u,this.options,m,this.speed)),f&&f(x.value),b&&this.finish(),x}then(t,e){return this.finished.then(t,e)}get duration(){return W(this.calculatedDuration)}get time(){return W(this.currentTime)}set time(t){t=F(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(T.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=W(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=tW,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:"finished"===this.state?(this.updateFinished(),this.startTime=n):this.startTime||(this.startTime=i??n),"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(T.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";let{onComplete:t}=this.options;t&&t()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,B.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()),t.observe(this)}}let ep=t=>180*t/Math.PI,ef=t=>eg(ep(Math.atan2(t[1],t[0]))),em={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:ef,rotateZ:ef,skewX:t=>ep(Math.atan(t[1])),skewY:t=>ep(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},eg=t=>((t%=360)<0&&(t+=360),t),ev=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),ey=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),eS={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ev,scaleY:ey,scale:t=>(ev(t)+ey(t))/2,rotateX:t=>eg(ep(Math.atan2(t[6],t[5]))),rotateY:t=>eg(ep(Math.atan2(-t[2],t[0]))),rotateZ:ef,rotate:ef,skewX:t=>ep(Math.atan(t[4])),skewY:t=>ep(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function ex(t){return t.includes("scale")?1:0}function ew(t,e){let i,n;if(!t||"none"===t)return ex(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=eS,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=em,n=e}if(!n)return ex(e);let s=i[e],o=n[1].split(",").map(eA);return"function"==typeof s?s(o):o[s]}let eb=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return ew(i,e)};function eA(t){return parseFloat(t.trim())}let eT=t=>t===q||t===tl,ek=new Set(["x","y","z"]),eP=v.filter(t=>!ek.has(t)),eE={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})=>ew(e,"x"),y:(t,{transform:e})=>ew(e,"y")};eE.translateX=eE.x,eE.translateY=eE.y;let eM=new Set,eC=!1,eL=!1,eR=!1;function eD(){if(eL){let t=Array.from(eM).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return eP.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),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)})}eL=!1,eC=!1,eM.forEach(t=>t.complete(eR)),eM.clear()}function eV(){eM.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(eL=!0)})}class eO{constructor(t,e,i,n,r,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(eM.add(this),eC||(eC=!0,p.read(eV),p.resolveKeyframes(eD))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let r=n?.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}!function(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),eM.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,eM.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let ej=t=>t.startsWith("--");function eI(t){let e;return()=>(void 0===e&&(e=t()),e)}let eF=eI(()=>void 0!==window.ScrollTimeline),eW={},eB=function(t,e){let i=eI(t);return()=>eW[e]??i()}(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),ez=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,eN={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ez([0,.65,.55,1]),circOut:ez([.55,0,1,.45]),backIn:ez([.31,.01,.66,-.59]),backOut:ez([.33,1.53,.69,.99])};function eH(t){return"function"==typeof t&&"applyToOptions"in t}class eU extends eh{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:o}=t;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=t,N("string"!=typeof t.type,'animateMini doesn\'t support "type" as a string. Did you mean to import { spring } from "motion"?');let a=function({type:t,...e}){return eH(t)&&eB()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?eB()?tB(e,i):"ease-out":et(e)?ez(e):Array.isArray(e)?e.map(e=>t(e,i)||eN.easeOut):eN[e]}(a,r);Array.isArray(d)&&(h.easing=d),c.value&&B.waapi++;let p={delay:n,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};u&&(p.pseudoElement=u);let f=t.animate(h,p);return c.value&&f.finished.finally(()=>{B.waapi--}),f}(e,i,n,a,r),!1===a.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=ea(n,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(t):function(t,e,i){ej(e)?t.style.setProperty(e,i):t.style[e]=i}(e,i,t),this.animation.cancel()}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 W(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get time(){return W(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=F(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&eF())?(this.animation.timeline=t,l):e(this)}}let e$={anticipate:t4,backInOut:t9,circInOut:t7};class eY extends eU{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in e$&&(t.ease=e$[t.ease])}(t),eu(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!e)return;if(void 0!==t){e.set(t);return}let o=new ed({...s,autoplay:!1}),a=F(this.finishedTime??this.time);e.setWithVelocity(o.sample(a-10).value,o.sample(a).value,10),o.stop()}}let eX=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tb.test(t)||"0"===t)&&!t.startsWith("url(")),eq=new Set(["opacity","clipPath","filter","transform"]),eK=eI(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class eG extends eh{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:o,name:a,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation?(this._animation.stop(),this.stopTimeline?.()):this.keyframeResolver?.cancel()},this.createdAt=T.now();let c={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,name:a,motionValue:l,element:u,...h},d=u?.KeyframeResolver||eO;this.keyframeResolver=new d(o,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:r,type:s,velocity:o,delay:a,isHandoff:h,onUpdate:c,onComplete:d}=i;
1this.resolvedAt=T.now(),!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=eX(r,e),a=eX(s,e);return z(o===a,`You are trying to animate ${e} from "${r}" to "${s}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${s} via the \`style\` property.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||eH(i))&&n)}(t,r,s,o)&&((u.instantAnimations||!a)&&c?.(ea(t,i,e)),t[0]=t[t.length-1],i.duration=0,i.repeat=0);let p={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},f=!h&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return eK()&&i&&eq.has(i)&&("transform"!==i||!l)&&!a&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}(p)?new eY({...p,element:p.motionValue.owner.current}):new ed(p);f.finished.then(()=>{d?.(),this.notifyFinished()}).catch(l),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(eR=!0,eV(),eD(),eR=!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.cancel()}}let e_=t=>null!==t,eZ={type:"spring",stiffness:500,damping:25,restSpeed:10},eJ=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),eQ={type:"keyframes",duration:.8},e0={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},e1=(t,{keyframes:e})=>e.length>2?eQ:y.has(t)?t.startsWith("scale")?eJ(e[1]):eZ:e0,e2=(t,e,i,n={},r,s)=>o=>{let l=a(n,t)||{},h=l.delay||n.delay||0,{elapsed:c=0}=n;c-=F(h);let d={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-c,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:s?void 0:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(l)&&Object.assign(d,e1(t,d)),d.duration&&(d.duration=F(d.duration)),d.repeatDelay&&(d.repeatDelay=F(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let f=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(d.duration=0,0!==d.delay||(f=!0)),(u.instantAnimations||u.skipAnimations)&&(f=!0,d.duration=0,d.delay=0),d.allowFlatten=!l.type&&!l.ease,f&&!s&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},n){let r=t.filter(e_),s=e&&"loop"!==i&&e%2==1?0:r.length-1;return r[s]}(d.keyframes,l);if(void 0!==t){p.update(()=>{d.onUpdate(t),d.onComplete()});return}}return new eG(d)};function e5(t,e,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:l,...u}=e;n&&(s=n);let h=[],c=r&&t.animationState&&t.animationState.getState()[r];for(let e in u){let n=t.getValue(e,t.latestValues[e]??null),r=u[e];if(void 0===r||c&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(c,e))continue;let o={delay:i,...a(s||{},e)},l=!1;if(window.MotionHandoffAnimation){let i=t.props[V];if(i){let t=window.MotionHandoffAnimation(i,e,p);null!==t&&(o.startTime=t,l=!0)}}R(t,e),n.start(e2(e,n,r,t.shouldReduceMotion&&S.has(e)?{type:!1}:o,t,l));let d=n.animation;d&&h.push(d)}return l&&Promise.all(h).then(()=>{p.update(()=>{l&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=o(t,e)||{};for(let e in r={...r,...i}){var s;let i=C(s=r[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,M(i))}}(t,l)})}),h}function e3(t,e,i={}){let n=o(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(e5(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;
1return function(t,e,i=0,n=0,r=1,s){let o=[],a=(t.variantChildren.size-1)*n,l=1===r?(t=0)=>t*n:(t=0)=>a-t*n;return Array.from(t.variantChildren).sort(e9).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(e3(t,e,{...s,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,s+n,o,a,i)}:()=>Promise.resolve(),{when:l}=r;if(!l)return Promise.all([s(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[s,a]:[a,s];return t().then(()=>e())}}function e9(t,e){return t.sortNodePosition(e)}function e4(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}function e6(t){return"string"==typeof t||Array.isArray(t)}let e8=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],e7=["initial",...e8],it=e7.length,ie=[...e8].reverse(),ii=e8.length;function ir(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function is(){return{animate:ir(!0),whileInView:ir(),whileHover:ir(),whileTap:ir(),whileDrag:ir(),whileFocus:ir(),exit:ir()}}class io{constructor(t){this.isMounted=!1,this.node=t}update(){}}class ia extends io{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>e3(t,e,i)));else if("string"==typeof e)n=e3(t,e,i);else{let r="function"==typeof e?o(t,e,i.custom):e;n=Promise.all(e5(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=is(),n=!0,s=e=>(i,n)=>{let r=o(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...n}=r;i={...i,...n,...e}}return i};function a(a){let{props:l}=t,u=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<it;t++){let n=e7[t],r=e.props[n];(e6(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},h=[],c=new Set,d={},p=1/0;for(let e=0;e<ii;e++){var f;let o=ie[e],m=i[o],g=void 0!==l[o]?l[o]:u[o],v=e6(g),y=o===a?m.isActive:null;!1===y&&(p=e);let S=g===u[o]&&g!==l[o]&&v;if(S&&n&&t.manuallyAnimateOnMount&&(S=!1),m.protectedKeys={...d},!m.isActive&&null===y||!g&&!m.prevProp||r(g)||"boolean"==typeof g)continue;let x=(f=m.prevProp,"string"==typeof g?g!==f:!!Array.isArray(g)&&!e4(g,f)),w=x||o===a&&m.isActive&&!S&&v||e>p&&v,b=!1,A=Array.isArray(g)?g:[g],T=A.reduce(s(o),{});!1===y&&(T={});let{prevResolvedValues:k={}}=m,P={...k,...T},E=e=>{w=!0,c.has(e)&&(b=!0,c.delete(e)),m.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in P){let e=T[t],i=k[t];if(!d.hasOwnProperty(t))(C(e)&&C(i)?e4(e,i):e===i)?void 0!==e&&c.has(t)?E(t):m.protectedKeys[t]=!0:null!=e?E(t):c.add(t)}m.prevProp=g,m.prevResolvedValues=T,m.isActive&&(d={...d,...T}),n&&t.blockInitialAnimation&&(w=!1);let M=!(S&&x)||b;w&&M&&h.push(...A.map(t=>({animation:t,options:{type:o}})))}if(c.size){let e={};if("boolean"!=typeof l.initial){let i=o(t,Array.isArray(l.initial)?l.initial[0]:l.initial);i&&i.transition&&(e.transition=i.transition)}c.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=n??null}),h.push({animation:e})}let m=!!h.length;return n&&(!1===l.initial||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(m=!1),n=!1,m?e(h):Promise.resolve()}return{animateChanges:a,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let r=a(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=is(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();r(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 il=0;class iu extends io{constructor(){super(...arguments),this.id=il++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>
1{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}let ih={x:!1,y:!1};function ic(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let id=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function ip(t){return{point:{x:t.pageX,y:t.pageY}}}let im=t=>e=>id(e)&&t(e,ip(e));function ig(t,e,i,n){return ic(t,e,im(i),n)}function iv({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function iy(t){return t.max-t.min}function iS(t,e,i,n=.5){t.origin=n,t.originPoint=tk(e.min,e.max,t.origin),t.scale=iy(i)/iy(e),t.translate=tk(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 ix(t,e,i,n){iS(t.x,e.x,i.x,n?n.originX:void 0),iS(t.y,e.y,i.y,n?n.originY:void 0)}function iw(t,e,i){t.min=i.min+e.min,t.max=t.min+iy(e)}function ib(t,e,i){t.min=e.min-i.min,t.max=t.min+iy(e)}function iA(t,e,i){ib(t.x,e.x,i.x),ib(t.y,e.y,i.y)}let iT=()=>({translate:0,scale:1,origin:0,originPoint:0}),ik=()=>({x:iT(),y:iT()}),iP=()=>({min:0,max:0}),iE=()=>({x:iP(),y:iP()});function iM(t){return[t("x"),t("y")]}function iC(t){return void 0===t||1===t}function iL({scale:t,scaleX:e,scaleY:i}){return!iC(t)||!iC(e)||!iC(i)}function iR(t){return iL(t)||iD(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function iD(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function iV(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function iO(t,e=0,i=1,n,r){t.min=iV(t.min,e,i,n,r),t.max=iV(t.max,e,i,n,r)}function ij(t,{x:e,y:i}){iO(t.x,e.translate,e.scale,e.originPoint),iO(t.y,i.translate,i.scale,i.originPoint)}function iI(t,e){t.min=t.min+e,t.max=t.max+e}function iF(t,e,i,n,r=.5){let s=tk(t.min,t.max,r);iO(t,e,i,s,n)}function iW(t,e){iF(t.x,e.x,e.scaleX,e.scale,e.originX),iF(t.y,e.y,e.scaleY,e.scale,e.originY)}function iB(t,e){return iv(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let iz=({current:t})=>t?t.ownerDocument.defaultView:null;function iN(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let iH=(t,e)=>Math.abs(t-e);class iU{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=iX(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(iH(t.x,e.x)**2+iH(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:r}=m;this.history.push({...n,timestamp:r});let{onStart:s,onMove:o}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=i$(e,this.transformPagePoint),p.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=iX("pointercancel"===t.type?this.lastMoveEventInfo:i$(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!id(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let s=i$(ip(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=m;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,iX(s,this.history)),this.removeListeners=j(ig(this.contextWindow,"pointermove",this.handlePointerMove),ig(this.contextWindow,"pointerup",this.handlePointerUp),ig(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),f(this.updatePoint)}}function i$(t,e){return e?{point:e(t.point)}:t}function iY(t,e){return{x:t.x-e.x,y:t.y-e.y}}function iX({point:t},e){return{point:t,delta:iY(t,iq(e)),offset:iY(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=iq(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>F(.1)));)i--;if(!n)return{x:0,y:0};let s=W(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s}
1;return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function iq(t){return t[t.length-1]}function iK(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 iG(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function i_(t,e,i){return{min:iZ(t,e),max:iZ(t,i)}}function iZ(t,e){return"number"==typeof t?t:t[e]||0}let iJ=new WeakMap;class iQ{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=iE(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new iU(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(ip(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===i||"y"===i?ih[i]?null:(ih[i]=!0,()=>{ih[i]=!1}):ih.x||ih.y?null:(ih.x=ih.y=!0,()=>{ih.x=ih.y=!1}),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iM(t=>{let e=this.getAxisMotionValue(t).get()||0;if(ta.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=iy(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&p.postRender(()=>r(t,e)),R(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>iM(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:iz(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:r}=this.getProps();r&&p.postRender(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!i0(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?tk(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?tk(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&iN(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:iK(t.x,i,r),y:iK(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:i_(t,"left","right"),y:i_(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&iM(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||!iN(e))return!1;let n=e.current;N(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;
1let s=function(t,e,i){let n=iB(t,i),{scroll:r}=e;return r&&(iI(n.x,r.offset.x),iI(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o={x:iG((t=r.layout.layoutBox).x,s.x),y:iG(t.y,s.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=iv(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(iM(o=>{if(!i0(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return R(this.visualElement,t),i.start(e2(t,i,0,e,this.visualElement,!1))}stopAnimation(){iM(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){iM(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){iM(e=>{let{drag:i}=this.getProps();if(!i0(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e];r.set(t[e]-tk(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iN(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};iM(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=iy(t),r=iy(e);return r>n?i=er(e.min,e.max-n,t.min):n>r&&(i=er(t.min,t.max-r,e.min)),I(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),iM(e=>{if(!i0(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set(tk(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;iJ.set(this.visualElement,this);let t=ig(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();iN(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),p.read(e);let r=ic(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(iM(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function i0(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class i1 extends io{constructor(t){super(t),this.removeGroupControls=l,this.removeListeners=l,this.controls=new iQ(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||l}unmount(){this.removeGroupControls(),this.removeListeners()}}let i2=t=>(e,i)=>{t&&p.postRender(()=>t(e,i))};class i5 extends io{constructor(){super(...arguments),this.removePointerDownListener=l}onPointerDown(t){this.session=new iU(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iz(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:i2(t),onStart:i2(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&p.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=ig(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 i3,i9,i4=i(95155);let{schedule:i6}=d(queueMicrotask,!1);var i8=i(12115);let i7=(0,i8.createContext)(null),nt=(0,i8.createContext)({}),ne=(0,i8.createContext)({}),ni={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let nr={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!tl.test(t))return t;t=parseFloat(t)}let i=nn(t,e.target.x),n=nn(t,e.target.y);return`${i}% ${n}%`}},ns={};class no extends i8.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;!function(t){for(let e in t)ns[e]=t[e],U(e)&&(ns[e].isCSSVariable=!0)}(nl),r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),ni.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,s=i.projection;return s&&(s.isPresent=r,n||t.layoutDependency!==e||void 0===e||t.isPresent!==r?s.willUpdate():this.safeToRemove(),t.isPresent===r||(r?s.promote():s.relegate()||p.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),i6.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function na(t){let[e,i]=function(t=!0){let e=(0,i8.useContext)(i7);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:r}=e,s=(0,i8.useId)();(0,i8.useEffect)(()=>
1{if(t)return r(s)},[t]);let o=(0,i8.useCallback)(()=>t&&n&&n(s),[s,n,t]);return!i&&n?[!1,o]:[!0]}(),n=(0,i8.useContext)(nt);return(0,i4.jsx)(no,{...t,layoutGroup:n,switchLayoutGroup:(0,i8.useContext)(ne),isPresent:e,safeToRemove:i})}let nl={borderRadius:{...nr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nr,borderTopRightRadius:nr,borderBottomLeftRadius:nr,borderBottomRightRadius:nr,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tb.parse(t);if(n.length>5)return t;let r=tb.createTransformer(t),s="number"!=typeof n[0]?1:0,o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=tk(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}},nu=(t,e)=>t.depth-e.depth;class nh{constructor(){this.children=[],this.isDirty=!1}add(t){x(this.children,t),this.isDirty=!0}remove(t){w(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nu),this.isDirty=!1,this.children.forEac
1h(t)}}function nc(t){return L(t)?t.get():t}let nd=["TopLeft","TopRight","BottomLeft","BottomRight"],np=nd.length,nf=t=>"string"==typeof t?parseFloat(t):t,nm=t=>"number"==typeof t||tl.test(t);function ng(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nv=nS(0,.5,t8),ny=nS(.5,.95,l);function nS(t,e,i){return n=>n<t?0:n>e?1:i(er(t,e,n))}function nx(t,e){t.min=e.min,t.max=e.max}function nw(t,e){nx(t.x,e.x),nx(t.y,e.y)}function nb(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nA(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function nT(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(ta.test(e)&&(e=parseFloat(e),e=tk(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=tk(s.min,s.max,n);t===s&&(a-=e),t.min=nA(t.min,e,i,a,r),t.max=nA(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let nk=["x","scaleX","originX"],nP=["y","scaleY","originY"];function nE(t,e,i,n){nT(t.x,e,nk,i?i.x:void 0,n?n.x:void 0),nT(t.y,e,nP,i?i.y:void 0,n?n.y:void 0)}function nM(t){return 0===t.translate&&1===t.scale}function nC(t){return nM(t.x)&&nM(t.y)}function nL(t,e){return t.min===e.min&&t.max===e.max}function nR(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function nD(t,e){return nR(t.x,e.x)&&nR(t.y,e.y)}function nV(t){return iy(t.x)/iy(t.y)}function nO(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class nj{constructor(){this.members=[]}add(t){x(this.members,t),t.scheduleRender()}remove(t){if(w(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;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let nI={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},nF=["","X","Y","Z"],nW={visibility:"hidden"},nB=0;function nz(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function nN({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=nB++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,c.value&&(nI.nodes=nI.calculatedTargetDeltas=nI.calculatedProjections=0),this.nodes.forEach(n$),this.nodes.forEach(nZ),this.nodes.forEach(nJ),this.nodes.forEach(nY),c.addProjectionMetrics&&c.addProjectionMetrics(nI)},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;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new nh)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new b),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:n,layout:r,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||n)&&(this.isLayoutDirty=!0),t){let i;let n=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=T.now(),n=({timestamp:e})=>{let r=e-i;r>=250&&(f(n),t(r-250))};return p.setup(n,!0),()=>f(n)}(n,250),ni.hasAnimatedSinceResize&&(ni.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(n_))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&s&&(n||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||n3,{onLayoutAnimationStart:o,onLayoutAnimationComplete:l}=s.getProps(),u=!this.targetLayout||!nD(this.targetLayout,n),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,h);let e={...a(r,"layout"),onPlay:o,onComplete:l};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||n_(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,f(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(nQ),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[V];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",p,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(nq);return}this.isUpdating||this.nodes.forEach(nK),this.isUpdating=!1,this.nodes.forEach(nG),this.nodes.forEach(nH),this.nodes.forEach(nU),this.clearAllSnapshots();let t=T.now();m.delta=I(0,1e3/60,t-m.timestamp),m.timestamp=t,m.isProcessing=!0,g.update.process(m),g.preRender.process(m),g.render.process(m),m.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,i6.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nX),this.sharedNodes.forEach(n0)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,p.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){p.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||iy(this.snapshot.measuredBox.x)||iy(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=iE(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!nC(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&(e||iR(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),n6((e=n).x),n6(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return iE();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(n7))){let{scroll:t}=this.root;t&&(iI(e.x,t.offset.x),iI(e.y,t.offset.y))}return e}removeElementScroll(t){let e=iE();if(nw(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&nw(e,t),iI(e.x,r.offset.x),iI(e.y,r.offset.y))}return e}applyTransform(t,e=!1){let i=iE();nw(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&iW(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),iR(n.latestValues)&&iW(i,n.latestValues)}return iR(this.latestValues)&&iW(i,this.latestValues),i}removeTransform(t){let e=iE();nw(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!iR(i.latestValues))continue;iL(i.latestValues)&&i.updateSnapshot();let n=iE();nw(n,i.measurePageBox()),nE(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return iR(this.latestValues)&&nE(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==m.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:r}=this.options;if(this.layout&&(n||r)){if(this.resolvedRelativeTargetAt=m.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iE(),this.relativeTargetOrigin=iE(),iA(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),nw(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=iE(),this.targetWithTransforms=iE()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var s,o,a;this.forceRelativeParentToResolveTarget(),s=this.target,o=this.relativeTarget,a=this.relativeParent.target,iw(s.x,o.x,a.x),iw(s.y,o.y,a.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nw(this.target,this.layout.layoutBox),ij(this.target,this.targetDelta)):nw(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iE(),this.relativeTargetOrigin=iE(),iA(this.relativeTargetOrigin,this.target,t.target),nw(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}
1c.value&&nI.calculatedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||iL(this.parent.latestValues)||iD(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===m.timestamp&&(i=!1),i)return;let{layout:n,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||r))return;nw(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,n=!1){let r,s;let o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(r=i[a]).projectionDelta;let{visualElement:o}=r.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&iW(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,ij(t,s)),n&&iR(r.latestValues)&&iW(t,r.latestValues))}e.x<1.0000000000001&&e.x>.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=iE());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nb(this.prevProjectionDelta.x,this.projectionDelta.x),nb(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),ix(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&nO(this.projectionDelta.x,this.prevProjectionDelta.x)&&nO(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),c.value&&nI.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=ik(),this.projectionDelta=ik(),this.projectionDeltaWithTransform=ik()}setAnimationOrigin(t,e=!1){let i;let n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=ik();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=iE(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(n5));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(n1(o.x,t.x,n),n1(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,f;iA(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,n2(p.x,f.x,a.x,n),n2(p.y,f.y,a.y,n),i&&(u=this.relativeTarget,d=i,nL(u.x,d.x)&&nL(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=iE()),nw(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=tk(0,i.opacity??1,nv(n)),t.opacityExit=tk(e.opacity??1,0,ny(n))):s&&(t.opacity=tk(e.opacity??1,i.opacity??1,n));for(let r=0;r<np;r++){let s=`border${nd[r]}Radius`,o=ng(e,s),a=ng(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||nm(o)===nm(a)?(t[s]=Math.max(tk(nf(o),nf(a),n),0),(ta.test(a)||ta.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=tk(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(f(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=p.update(()=>{ni.hasAnimatedSinceResize=!0,B.layout++,this.currentAnimation=function(t,e,
1i){let n=L(0)?0:M(0);return n.start(e2("",n,1e3,i)),n.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{B.layout--},onComplete:()=>{B.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:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&n8(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||iE();let e=iy(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=iy(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}nw(e,i),iW(e,r),ix(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new nj),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&nz("z",t,n,this.animationValues);for(let e=0;e<nF.length;e++)nz(`rotate${nF[e]}`,t,n,this.animationValues),nz(`skew${nF[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}getProjectionStyles(t){if(!this.instance||this.isSVG)return;if(!this.isVisible)return nW;let e={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.opacity="",e.pointerEvents=nc(t?.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none",e;let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=nc(t?.pointerEvents)||""),this.hasProjected&&!iR(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1),e}let r=n.animationValues||n.latestValues;this.applyTransformsToTarget(),e.transform=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=i?.z||0;if((r||s||o)&&(n=`translate3d(${r}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,r),i&&(e.transform=i(r,e.transform));let{x:s,y:o}=this.projectionDelta;for(let t in e.transformOrigin=`${100*s.origin}% ${100*o.origin}% 0`,n.animationValues?e.opacity=n===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:e.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,ns){if(void 0===r[t])continue;let{correct:i,applyTo:s,isCSSVariable:o}=ns[t],a="none"===e.transform?r[t]:i(r[t],n);if(s){let t=s.length;for(let i=0;i<t;i++)e[s[i]]=a}else o?this.options.visualElement.renderState.vars[t]=a:e[t]=a}return this.options.layoutId&&(e.pointerEvents=n===this?nc(t?.pointerEvents)||"":"none"),e}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(nq),this.root.sharedNodes.clear()}}}function nH(t){t.updateLayout()}function nU(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:r}=t.options,s=e.source!==t.layout.source;"size"===r?iM(t=>{let n=s?e.measuredBox[t]:e.layoutBox[t],r=iy(n);n.min=i[t].min,n.max=n.min+r}):n8(r,e.layoutBox,i)&&iM(n=>{let r=s?e.measuredBox[n]:e.layoutBox[n],o=iy(i[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=ik();ix(o,i,e.layoutBox);let a=ik();s?ix(a,t.applyTransform(n,!0),e.measuredBox):ix(a,i,e.layoutBox);let l=!nC(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=iE();iA(o,e.layoutBox,r.layoutBox);let a=iE();iA(a,i,s.layoutBox),nD(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}
1function n$(t){c.value&&nI.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 nY(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function nX(t){t.clearSnapshot()}function nq(t){t.clearMeasurements()}function nK(t){t.isLayoutDirty=!1}function nG(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function n_(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function nZ(t){t.resolveTargetDelta()}function nJ(t){t.calcProjection()}function nQ(t){t.resetSkewAndRotation()}function n0(t){t.removeLeadSnapshot()}function n1(t,e,i){t.translate=tk(e.translate,0,i),t.scale=tk(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function n2(t,e,i,n){t.min=tk(e.min,i.min,n),t.max=tk(e.max,i.max,n)}function n5(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let n3={duration:.45,ease:[.4,0,.1,1]},n9=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),n4=n9("applewebkit/")&&!n9("chrome/")?Math.round:l;function n6(t){t.min=n4(t.min),t.max=n4(t.max)}function n8(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(nV(e)-nV(i)))}function n7(t){return t!==t.root&&t.scroll?.wasRoot}let rt=nN({attachResizeListener:(t,e)=>ic(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),re={current:void 0},ri=nN({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!re.current){let t=new rt({});t.mount(window),t.setOptions({layoutScroll:!0}),re.current=t}return re.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function rn(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),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function rr(t){return!("touch"===t.pointerType||ih.x||ih.y)}function rs(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&p.postRender(()=>r(e,ip(e)))}class ro extends io{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=rn(t,i),o=t=>{if(!rr(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let s=t=>{rr(t)&&(n(t),i.removeEventListener("pointerleave",s))};i.addEventListener("pointerleave",s,r)};return n.forEach(t=>{t.addEventListener("pointerenter",o,r)}),s}(t,(t,e)=>(rs(this.node,e,"Start"),t=>rs(this.node,t,"End"))))}unmount(){}}class ra extends io{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=j(ic(this.node.current,"focus",()=>this.onFocus()),ic(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let rl=(t,e)=>!!e&&(t===e||rl(t,e.parentElement)),ru=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),rh=new WeakSet;function rc(t){return e=>{"Enter"===e.key&&t(e)}}function rd(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let rp=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=rc(()=>{if(rh.has(i))return;rd(i,"down");let t=rc(()=>{rd(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>rd(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function rf(t){return id(t)&&!(ih.x||ih.y)}function rm(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&p.postRender(()=>r(e,ip(e)))}class rg extends io{mount(){let{current:t}=this.node;
1t&&(this.unmount=function(t,e,i={}){let[n,r,s]=rn(t,i),o=t=>{let n=t.currentTarget;if(!rf(t)||rh.has(n))return;rh.add(n);let s=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),rf(t)&&rh.has(n)&&(rh.delete(n),"function"==typeof s&&s(t,{success:e}))},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||rl(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),t instanceof HTMLElement&&(t.addEventListener("focus",t=>rp(t,r)),ru.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(rm(this.node,e,"Start"),(t,{success:e})=>rm(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let rv=new WeakMap,ry=new WeakMap,rS=t=>{let e=rv.get(t.target);e&&e(t)},rx=t=>{t.forEach(rS)},rw={some:0,all:1};class rb extends io{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:rw[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;ry.has(i)||ry.set(i,{});let n=ry.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(rx,{root:t,...e})),n[r]}(e);return rv.set(t,i),n.observe(t),()=>{rv.delete(t),n.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)})}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 rA=(0,i8.createContext)({strict:!1}),rT=(0,i8.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),rk=(0,i8.createContext)({});function rP(t){return r(t.animate)||e7.some(e=>e6(t[e]))}function rE(t){return!!(rP(t)||t.variants)}function rM(t){return Array.isArray(t)?t.join(" "):t}let rC="undefined"!=typeof window,rL={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"]},rR={};for(let t in rL)rR[t]={isEnabled:e=>rL[t].some(t=>!!e[t])};let rD=Symbol.for("motionComponentSymbol"),rV=rC?i8.useLayoutEffect:i8.useEffect;function rO(t,{layout:e,layoutId:i}){return y.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!ns[t]||"opacity"===t)}let rj=(t,e)=>e&&"number"==typeof t?e.transform(t):t,rI={...q,transform:Math.round},rF={borderWidth:tl,borderTopWidth:tl,borderRightWidth:tl,borderBottomWidth:tl,borderLeftWidth:tl,borderRadius:tl,radius:tl,borderTopLeftRadius:tl,borderTopRightRadius:tl,borderBottomRightRadius:tl,borderBottomLeftRadius:tl,width:tl,maxWidth:tl,height:tl,maxHeight:tl,top:tl,right:tl,bottom:tl,left:tl,padding:tl,paddingTop:tl,paddingRight:tl,paddingBottom:tl,paddingLeft:tl,margin:tl,marginTop:tl,marginRight:tl,marginBottom:tl,marginLeft:tl,backgroundPositionX:tl,backgroundPositionY:tl,rotate:to,rotateX:to,rotateY:to,rotateZ:to,scale:G,scaleX:G,scaleY:G,scaleZ:G,skew:to,skewX:to,skewY:to,distance:tl,translateX:tl,translateY:tl,translateZ:tl,x:tl,y:tl,z:tl,perspective:tl,transformPerspective:tl,opacity:K,originX:tc,originY:tc,originZ:tl,zIndex:rI,fillOpacity:K,strokeOpacity:K,numOctaves:rI},rW={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rB=v.length;function rz(t,e,i){let{style:n,vars:r,transformOrigin:s}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(y.has(t)){o=!0;continue}if(U(t)){r[t]=i;continue}{let e=rj(i,rF[t]);t.startsWith("origin")?(a=!0,s[t]=e):n[t]=e}}
1if(!e.transform&&(o||i?n.transform=function(t,e,i){let n="",r=!0;for(let s=0;s<rB;s++){let o=v[s],a=t[o];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===(o.startsWith("scale")?1:0):0===parseFloat(a))||i){let t=rj(a,rF[o]);if(!l){r=!1;let e=rW[o]||o;n+=`${e}(${t}) `}i&&(e[o]=t)}}return n=n.trim(),i?n=i(e,r?"":n):r&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=s;n.transformOrigin=`${t} ${e} ${i}`}}let rN=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function rH(t,e,i){for(let n in e)L(e[n])||rO(n,i)||(t[n]=e[n])}let rU=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 r$(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||rU.has(t)}let rY=t=>!r$(t);try{!function(t){t&&(rY=e=>e.startsWith("on")?!r$(e):t(e))}(require("@emotion/is-prop-valid").default)}catch{}let rX=["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 rq(t){if("string"!=typeof t||t.includes("-"));else if(rX.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let rK={offset:"stroke-dashoffset",array:"stroke-dasharray"},rG={offset:"strokeDashoffset",array:"strokeDasharray"};function r_(t,{attrX:e,attrY:i,attrScale:n,pathLength:r,pathSpacing:s=1,pathOffset:o=0,...a},l,u){if(rz(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:h,style:c}=t;h.transform&&(c.transform=h.transform,delete h.transform),(c.transform||h.transformOrigin)&&(c.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),c.transform&&(c.transformBox="fill-box",delete h.transformBox),void 0!==e&&(h.x=e),void 0!==i&&(h.y=i),void 0!==n&&(h.scale=n),void 0!==r&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?rK:rG;t[s.offset]=tl.transform(-n);let o=tl.transform(e),a=tl.transform(i);t[s.array]=`${o} ${a}`}(h,r,s,o,!1)}let rZ=()=>({...rN(),attrs:{}}),rJ=t=>"string"==typeof t&&"svg"===t.toLowerCase(),rQ=t=>(e,i)=>{let n=(0,i8.useContext)(rk),o=(0,i8.useContext)(i7),a=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,o){return{latestValues:function(t,e,i,n){let o={},a=n(t,{});for(let t in a)o[t]=nc(a[t]);let{initial:l,animate:u}=t,h=rP(t),c=rE(t);e&&c&&!h&&!1!==t.inherit&&(void 0===l&&(l=e.initial),void 0===u&&(u=e.animate));let d=!!i&&!1===i.initial,p=(d=d||!1===l)?u:l;if(p&&"boolean"!=typeof p&&!r(p)){let e=Array.isArray(p)?p:[p];for(let i=0;i<e.length;i++){let n=s(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=d?e.length-1:0;e=e[t]}null!==e&&(o[t]=e)}for(let e in t)o[e]=t[e]}}}return o}(i,n,o,t),renderState:e()}})(t,e,n,o);return i?a():function(t){let e=(0,i8.useRef)(null);return null===e.current&&(e.current=t()),e.current}(a)};function r0(t,e,i){let{style:n}=t,r={};for(let s in n)(L(n[s])||e.style&&L(e.style[s])||rO(s,t)||i?.getValue(s)?.liveStyle!==void 0)&&(r[s]=n[s]);return r}let r1={useVisualState:rQ({scrapeMotionValuesFromProps:r0,createRenderState:rN})};function r2(t,e,i){let n=r0(t,e,i);for(let i in t)(L(t[i])||L(e[i]))&&(n[-1!==v.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}let r5={useVisualState:rQ({scrapeMotionValuesFromProps:r2,createRenderState:rZ})},r3=t=>e=>e.test(t),r9=[q,tl,ta,to,th,tu,{test:t=>"auto"===t,parse:t=>t}],r4=t=>r9.find(r3(t)),r6=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),r8=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,r7=t=>
1/^0[^.\s]+$/u.test(t),st=new Set(["brightness","contrast","saturate","opacity"]);function se(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(Z)||[];if(!n)return t;let r=i.replace(n,""),s=st.has(e)?1:0;return n!==i&&(s*=100),e+"("+s+r+")"}let si=/\b([a-z-]*)\(.*?\)/gu,sn={...tb,getAnimatableNone:t=>{let e=t.match(si);return e?e.map(se).join(" "):t}},sr={...rF,color:tp,backgroundColor:tp,outlineColor:tp,fill:tp,stroke:tp,borderColor:tp,borderTopColor:tp,borderRightColor:tp,borderBottomColor:tp,borderLeftColor:tp,filter:sn,WebkitFilter:sn},ss=t=>sr[t];function so(t,e){let i=ss(t);return i!==sn&&(i=tb),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let sa=new Set(["auto","none","0"]);class sl extends eO{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&Y(n=n.trim())){let r=function t(e,i,n=1){N(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,s]=function(t){let e=r8.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${i??n}`,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let t=o.trim();return r6(t)?parseFloat(t):t}return Y(s)?t(s,i,n+1):s}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!S.has(i)||2!==t.length)return;let[n,r]=t,s=r4(n),o=r4(r);if(s!==o){if(eT(s)&&eT(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;(null===t[e]||("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||r7(n)))&&i.push(e)}i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!sa.has(e)&&ty(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=so(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eE[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let r=i.length-1,s=i[r];i[r]=eE[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let su=[...r9,tp,tb],sh=t=>su.find(r3(t)),sc={current:null},sd={current:!1},sp=new WeakMap,sf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sm{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:r,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=eO,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=T.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,p.render(this.render,!1,!0))};let{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=rP(e),this.isVariantNode=rE(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:u,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in h){let e=h[t];void 0!==a[t]&&L(e)&&e.set(a[t],!1)}}mount(t){this.current=t,sp.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),sd.current||function(){if(sd.current=!0,rC){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>sc.current=t.matches;t.addListener(e),e()}else sc.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||sc.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),f(this.notifyUpdate),f(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=y.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&p.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),s(),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 rR){let e=rR[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):iE()}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;e<sf.length;e++){let i=sf[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}
1this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if(L(r))t.addValue(n,r);else if(L(s))t.addValue(n,M(r,{owner:t}));else if(s!==r){if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,M(void 0!==e?e:r,{owner:t}))}}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.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=M(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];return null!=i&&("string"==typeof i&&(r6(i)||r7(i))?i=parseFloat(i):!sh(i)&&tb.test(e)&&(i=so(t,e)),this.setBaseTarget(t,L(i)?i.get():i)),L(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e;let{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=s(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||L(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new b),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class sg extends sm{constructor(){super(...arguments),this.KeyframeResolver=sl}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;L(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function sv(t,{style:e,vars:i},n,r){for(let s in Object.assign(t.style,e,r&&r.getProjectionStyles(n)),i)t.style.setProperty(s,i[s])}class sy extends sg{constructor(){super(...arguments),this.type="html",this.renderInstance=sv}readValueFromInstance(t,e){if(y.has(e))return eb(t,e);{let i=window.getComputedStyle(t),n=(U(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return iB(t,e)}build(t,e,i){rz(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return r0(t,e,i)}}let sS=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"]);class sx extends sg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=iE}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(y.has(e)){let t=ss(e);return t&&t.default||0}return e=sS.has(e)?e:D(e),t.getAttribute(e)}
1scrapeMotionValuesFromProps(t,e,i){return r2(t,e,i)}build(t,e,i){r_(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,n){!function(t,e,i,n){for(let i in sv(t,e,void 0,n),e.attrs)t.setAttribute(sS.has(i)?i:D(i),e.attrs[i])}(t,e,0,n)}mount(t){this.isSVGTag=rJ(t.tagName),super.mount(t)}}let sw=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}((i3={animation:{Feature:ia},exit:{Feature:iu},inView:{Feature:rb},tap:{Feature:rg},focus:{Feature:ra},hover:{Feature:ro},pan:{Feature:i5},drag:{Feature:i1,ProjectionNode:ri,MeasureLayout:na},layout:{ProjectionNode:ri,MeasureLayout:na}},i9=(t,e)=>rq(t)?new sx(e):new sy(e,{allowProjection:t!==i8.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function(t){var e,i;let{preloadedFeatures:n,createVisualElement:r,useRender:s,useVisualState:o,Component:a}=t;function l(t,e){var i;let n;let l={...(0,i8.useContext)(rT),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,i8.useContext)(nt).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:u}=l,h=function(t){let{initial:e,animate:i}=function(t,e){if(rP(t)){let{initial:e,animate:i}=t;return{initial:!1===e||e6(e)?e:void 0,animate:e6(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,i8.useContext)(rk));return(0,i8.useMemo)(()=>({initial:e,animate:i}),[rM(e),rM(i)])}(t),c=o(t,u);if(!u&&rC){(0,i8.useContext)(rA).strict;let t=function(t){let{drag:e,layout:i}=rR;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(l);n=t.MeasureLayout,h.visualElement=function(t,e,i,n,r){let{visualElement:s}=(0,i8.useContext)(rk),o=(0,i8.useContext)(rA),a=(0,i8.useContext)(i7),l=(0,i8.useContext)(rT).reducedMotion,u=(0,i8.useRef)(null);n=n||o.renderer,!u.current&&n&&(u.current=n(t,{visualState:e,parent:s,props:i,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:l}));let h=u.current,c=(0,i8.useContext)(ne);h&&!h.projection&&r&&("html"===h.type||"svg"===h.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=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:r,layout:s,alwaysMeasureLayout:!!o||a&&iN(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u})}(u.current,i,r,c);let d=(0,i8.useRef)(!1);(0,i8.useInsertionEffect)(()=>{h&&d.current&&h.update(i,a)});let p=i[V],f=(0,i8.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return rV(()=>{h&&(d.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),i6.render(h.render),f.current&&h.animationState&&h.animationState.animateChanges())}),(0,i8.useEffect)(()=>{h&&(!f.current&&h.animationState&&h.animationState.animateChanges(),f.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),f.current=!1))}),h}(a,c,l,r,t.ProjectionNode)}return(0,i4.jsxs)(rk.Provider,{value:h,children:[n&&h.visualElement?(0,i4.jsx)(n,{visualElement:h.visualElement,...l}):null,s(a,t,(i=h.visualElement,(0,i8.useCallback)(t=>{t&&c.onMount&&c.onMount(t),i&&(t?i.mount(t):i.unmount()),e&&("function"==typeof e?e(t):iN(e)&&(e.current=t))},[i])),c,u,h.visualElement)]})}n&&function(t){for(let e in t)rR[e]={...rR[e],...t[e]}}(n),l.displayName="motion.".concat("string"==typeof a?a:"create(".concat(null!==(i=null!==(e=a.displayName)&&void 0!==e?e:a.name)&&void 0!==i?i:"",")"));let u=(0,i8.forwardRef)(l);return u[rD]=a,u}({...rq(t)?r5:r1,preloadedFeatures:i3,useRender:function(t=!1){return(e,i,n,{latestValues:r},s)=>{let o=(rq(e)?function(t,e,i,n){let r=(0,i8.useMemo)(()=>{let i=rZ();return r_(i,e,rJ(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};rH(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return rH(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,i8.useMemo)(()=>{let i=rN();return rz(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i}
1)(i,r,s,e),a=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(rY(r)||!0===i&&r$(r)||!e&&!r$(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(i,"string"==typeof e,t),l=e!==i8.Fragment?{...a,...o,ref:n}:{},{children:u}=i,h=(0,i8.useMemo)(()=>L(u)?u.get():u,[u]);return(0,i8.createElement)(e,{...l,children:h})}}(e),createVisualElement:i9,Component:t})}))},99827:(t,e,i)=>{"use strict";i.d(e,{v:()=>l});var n=i(12115);let r=t=>{let e;let i=new Set,n=(t,n)=>{let r="function"==typeof t?t(e):t;if(!Object.is(r,e)){let t=e;e=(null!=n?n:"object"!=typeof r||null===r)?r:Object.assign({},e,r),i.forEach(i=>i(e,t))}},r=()=>e,s={setState:n,getState:r,getInitialState:()=>o,subscribe:t=>(i.add(t),()=>i.delete(t))},o=e=t(n,r,s);return s},s=t=>t?r(t):r,o=t=>t,a=t=>{let e=s(t),i=t=>(function(t,e=o){let i=n.useSyncExternalStore(t.subscribe,()=>e(t.getState()),()=>e(t.getInitialState()));return n.useDebugValue(i),i})(e,t);return Object.assign(i,e),i},l=t=>t?a(t):a}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.