1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[8485],{36459:function(t,e,n){function r(t){if(null==t)throw new TypeError("Cannot destructure "+t)}n.d(e,{Z:function(){return r}})},83791:function(t,e,n){n.d(e,{M:function(){return b}});var r=n(93433),i=n(72791),o=n(29439),a=n(92199);function s(){var t=(0,i.useRef)(!1);return(0,a.L)((function(){return t.current=!0,function(){t.current=!1}}),[]),t}var u=n(8771);var l=n(37762),c=n(60131),h=n(29829),v=n(15671),f=n(43144),d=n(60136),p=n(27277),m=function(t){(0,d.Z)(n,t);var e=(0,p.Z)(n);function n(){return(0,v.Z)(this,n),e.apply(this,arguments)}return(0,f.Z)(n,[{key:"getSnapshotBeforeUpdate",value:function(t){var e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){var n=this.props.sizeRef.current;n.height=e.offsetHeight||0,n.width=e.offsetWidth||0,n.top=e.offsetTop,n.left=e.offsetLeft}return null}},{key:"componentDidUpdate",value:function(){}},{key:"render",value:function(){return this.props.children}}]),n}(i.Component);function y(t){var e=t.children,n=t.isPresent,r=(0,i.useId)(),o=(0,i.useRef)(null),a=(0,i.useRef)({width:0,height:0,top:0,left:0});return(0,i.useInsertionEffect)((function(){var t=a.current,e=t.width,i=t.height,s=t.top,u=t.left;if(!n&&o.current&&e&&i){o.current.dataset.motionPopId=r;var l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule('\n [data-motion-pop-id="'.concat(r,'"] {\n position: absolute !important;\n width: ').concat(e,"px !important;\n height: ").concat(i,"px !important;\n top: ").concat(s,"px !important;\n left: ").concat(u,"px !important;\n }\n ")),function(){document.head.removeChild(l)}}}),[n]),i.createElement(m,{isPresent:n,childRef:o,sizeRef:a},i.cloneElement(e,{ref:o}))}var g=function(t){var e=t.children,n=t.initial,r=t.isPresent,o=t.onExitComplete,a=t.custom,s=t.presenceAffectsLayout,u=t.mode,v=(0,h.h)(x),f=(0,i.useId)(),d=(0,i.useMemo)((function(){return{id:f,initial:n,isPresent:r,custom:a,onExitComplete:function(t){v.set(t,!0);var e,n=(0,l.Z)(v.values());try{for(n.s();!(e=n.n()).done;){if(!e.value)return}}catch(r){n.e(r)}finally{n.f()}o&&o()},register:function(t){return v.set(t,!1),function(){return v.delete(t)}}}}),s?void 0:[r]);return(0,i.useMemo)((function(){v.forEach((function(t,e){return v.set(e,!1)}))}),[r]),i.useEffect((function(){!r&&!v.size&&o&&o()}),[r]),"popLayout"===u&&(e=i.createElement(y,{isPresent:r},e)),i.createElement(c.O.Provider,{value:d},e)};function x(){return new Map}var k=n(7497);var P=n(95956),w=function(t){return t.key||""};var b=function(t){var e=t.children,n=t.custom,l=t.initial,c=void 0===l||l,h=t.onExitComplete,v=t.exitBeforeEnter,f=t.presenceAffectsLayout,d=void 0===f||f,p=t.mode,m=void 0===p?"sync":p;(0,P.k)(!v,"Replace exitBeforeEnter with mode='wait'");var y,x=(0,i.useContext)(k.p).forceRender||function(){var t=s(),e=(0,i.useState)(0),n=(0,o.Z)(e,2),r=n[0],a=n[1],l=(0,i.useCallback)((function(){t.current&&a(r+1)}),[r]);return[(0,i.useCallback)((function(){return u.Wi.postRender(l)}),[l]),r]}()[0],b=s(),T=function(t){var e=[];return i.Children.forEach(t,(function(t){(0,i.isValidElement)(t)&&e.push(t)})),e}(e),S=T,Z=(0,i.useRef)(new Map).current,E=(0,i.useRef)(S),A=(0,i.useRef)(new Map).current,C=(0,i.useRef)(!0);if((0,a.L)((function(){C.current=!1,function(t,e){t.forEach((function(t){var n=w(t);e.set(n,t)}))}(T,A),E.current=S})),y=function(){C.current=!0,A.clear(),Z.clear()},(0,i.useEffect)((function(){return function(){return y()}}),[]),C.current)return i.createElement(i.Fragment,null,S.map((function(t){return i.createElement(g,{key:w(t),isPresent:!0,initial:!!c&&void 0,presenceAffectsLayout:d,mode:m},t)})));S=(0,r.Z)(S);for(var V=E.current.map(w),M=T.map(w),D=V.length,L=0;L<D;L++){var R=V[L];-1!==M.indexOf(R)||Z.has(R)||Z.set(R,void 0)}return"wait"===m&&Z.size&&(S=[]),Z.forEach((function(t,e){if(-1===M.indexOf(e)){var r=A.get(e);if(r){var o=V.indexOf(e),a=t;if(!a){a=i.createElement(g,{key:w(r),isPresent:!1,onExitComplete:function(){Z.delete(e);var t=Array.from(A.keys()).filter((function(t){return!M.includes(t)}));if(t.forEach((function(t){return A.delete(t)})),E.current=T.filter((function(n){var r=w(n);return r===e||t.includes(r)})),!Z.size){if(!1===b.current)return;x(),h&&h()}},custom:n,presenceAffectsLayout:d,mode:m},r),Z.set(e,a)}S.splice(o,0,a)}}})),S=S.map((function(t){var e=t.key;return Z.has(e)?t:i.createElement(g,{key:w(t),isPresent:!0,presenceAffectsLayout:d,mode:m},t)})),i.createElement(i.Fragment,null,Z.size?S:S.map((function(t){return(0,i.cloneElement)(t)})))}},7497:function(t,e,n){n.d(e,{p:function(){return r}});var r=(0,n(72791).createContext)({})},60131:function(t,e,n){n.d(e,{O:function(){return r}});var r=(0,n(72791).createContext)(null)},8771:function(t,e,n){n.d(e,{Pn:function(){return c},Wi:function(){return l},w0:function(){return h},S6:function(){return v}});var r=n(83200),i=n(15671),o=n(43144),a=function(){function t(){(0,i.Z)(this,t),this.order=[],this.scheduled=new Set}return(0,o.Z)(t,[{key:"add",value:function(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}},{key:"remove",value:function(t){var e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}},{key:"clear",value:function(){this.order.length=0,this.scheduled.clear()}}]),t}();var s=["prepare","read","update","preRender","render","postRender"];var u=function(t,e){var n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},o=s.reduce((function(t,e){return t[e]=function(t){var e=new a,n=new a,r=0,i=!1,o=!1,s=new WeakSet,u={schedule:function(t){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&i,a=o?e:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&s.add(t),a.add(t)&&o&&i&&(r=e.order.length),t},cancel:function(t){n.remove(t),s.delete(t)}
1,process:function(a){if(i)o=!0;else{i=!0;var l=[n,e];if(e=l[0],(n=l[1]).clear(),r=e.order.length)for(var c=0;c<r;c++){var h=e.order[c];h(a),s.has(h)&&(u.schedule(h),t())}i=!1,o&&(o=!1,u.process(a))}}};return u}((function(){return n=!0})),t}),{}),u=function(t){return o[t].process(i)},l=function o(){var a=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(a-i.timestamp,40),1),i.timestamp=a,i.isProcessing=!0,s.forEach(u),i.isProcessing=!1,n&&e&&(r=!1,t(o))},c=s.reduce((function(e,a){var s=o[a];return e[a]=function(e){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n||(n=!0,r=!0,i.isProcessing||t(l)),s.schedule(e,o,a)},e}),{});return{schedule:c,cancel:function(t){return s.forEach((function(e){return o[e].cancel(t)}))},state:i,steps:o}}("undefined"!==typeof requestAnimationFrame?requestAnimationFrame:r.Z,!0),l=u.schedule,c=u.cancel,h=u.state,v=u.steps},86042:function(t,e,n){n.d(e,{E:function(){return Fa}});var r=n(1413),i=n(72791),o=(0,i.createContext)({transformPagePoint:function(t){return t},isStatic:!1,reducedMotion:"never"}),a=(0,i.createContext)({}),s=n(60131),u=n(92199),l=(0,i.createContext)({strict:!1}),c=function(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},h="data-"+c("framerAppearId");function v(t){return"object"===typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function f(t){return"string"===typeof t||Array.isArray(t)}function d(t){return"object"===typeof t&&"function"===typeof t.start}var p=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],m=["initial"].concat(p);function y(t){return d(t.animate)||m.some((function(e){return f(t[e])}))}function g(t){return Boolean(y(t)||t.variants)}function x(t){var e=function(t,e){if(y(t)){var n=t.initial,r=t.animate;return{initial:!1===n||f(n)?n:void 0,animate:f(r)?r:void 0}}return!1!==t.inherit?e:{}}(t,(0,i.useContext)(a)),n=e.initial,r=e.animate;return(0,i.useMemo)((function(){return{initial:n,animate:r}}),[k(n),k(r)])}function k(t){return Array.isArray(t)?t.join(" "):t}var P={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"]},w={},b=function(t){w[t]={isEnabled:function(e){return P[t].some((function(t){return!!e[t]}))}}};for(var T in P)b(T);var S=n(26219),Z=n(7497),E=(0,i.createContext)({}),A=Symbol.for("motionComponentSymbol");function C(t){var e=t.preloadedFeatures,n=t.createVisualElement,c=t.useRender,f=t.useVisualState,d=t.Component;e&&function(t){for(var e in t)w[e]=(0,r.Z)((0,r.Z)({},w[e]),t[e])}(e);var p=(0,i.forwardRef)((function(t,p){var m,y=(0,r.Z)((0,r.Z)((0,r.Z)({},(0,i.useContext)(o)),t),{},{layoutId:V(t)}),g=y.isStatic,k=x(t),P=f(t,g);if(!g&&S.j){k.visualElement=function(t,e,n,r){var c=(0,i.useContext)(a).visualElement,v=(0,i.useContext)(l),f=(0,i.useContext)(s.O),d=(0,i.useContext)(o).reducedMotion,p=(0,i.useRef)();r=r||v.renderer,!p.current&&r&&(p.current=r(t,{visualState:e,parent:c,props:n,presenceContext:f,blockInitialAnimation:!!f&&!1===f.initial,reducedMotionConfig:d}));var m=p.current;(0,i.useInsertionEffect)((function(){m&&m.update(n,f)}));var y=(0,i.useRef)(Boolean(n[h]&&!window.HandoffComplete));return(0,u.L)((function(){m&&(m.render(),y.current&&m.animationState&&m.animationState.animateChanges())})),(0,i.useEffect)((function(){m&&(m.updateFeatures(),!y.current&&m.animationState&&m.animationState.animateChanges(),y.current&&(y.current=!1,window.HandoffComplete=!0))})),m}(d,P,y,n);var w=(0,i.useContext)(E),b=(0,i.useContext)(l).strict;k.visualElement&&(m=k.visualElement.loadFeatures(y,b,e,w))}return i.createElement(a.Provider,{value:k},m&&k.visualElement?i.createElement(m,(0,r.Z)({visualElement:k.visualElement},y)):null,c(d,t,function(t,e,n){return(0,i.useCallback)((function(r){r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&("function"===typeof n?n(r):v(n)&&(n.current=r))}),[e])}(P,k.visualElement,p),P,g,k.visualElement))}));return p[A]=d,p}function V(t){var e=t.layoutId,n=(0,i.useContext)(Z.p).id;return n&&void 0!==e?n+"-"+e:e}function M(t){function e(e){return C(t(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}if("undefined"===typeof Proxy)return e;var n=new Map;return new Proxy(e,{get:function(t,r){return n.has(r)||n.set(r,e(r)),n.get(r)}})}var D=["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 L(t){return"string"===typeof t&&!t.includes("-")&&!!(D.indexOf(t)>-1||/[A-Z]/.test(t))}var R={};var j=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],B=new Set(j);function F(t,e){var n=e.layout,r=e.layoutId;return B.has(t)||t.startsWith("origin")||(n||void 0!==r)&&(!!R[t]||"opacity"===t)}var O=function(t){return Boolean(t&&t.getVelocity)},I={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},U=j.length;var W=function(t){return function(e){return"string"===typeof e&&e.startsWith(t)}},N=W("--"),H=W("var(--"),z=function(t,e){return e&&"number"===typeof t?e.transform(t):t},Y=function(t,e,n){return Math.min(Math.max(n,t),e)},X={test:function(t){return"number"===typeof t},parse:parseFloat,transform:function(t){return t}},G=(0,r.Z)((0,r.Z)({},X),{},{transform:function(t){return Y(0,1,t)}}),q=(0,r.Z)((0,r.Z)({},X),{},{default:1}),K=function(t){return Math.round(1e5*t)/1e5}
1,_=/(-)?([\d]*\.?[\d])+/g,$=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,J=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Q(t){return"string"===typeof t}var tt=function(t){return{test:function(e){return Q(e)&&e.endsWith(t)&&1===e.split(" ").length},parse:parseFloat,transform:function(e){return"".concat(e).concat(t)}}},et=tt("deg"),nt=tt("%"),rt=tt("px"),it=tt("vh"),ot=tt("vw"),at=(0,r.Z)((0,r.Z)({},nt),{},{parse:function(t){return nt.parse(t)/100},transform:function(t){return nt.transform(100*t)}}),st=(0,r.Z)((0,r.Z)({},X),{},{transform:Math.round}),ut={borderWidth:rt,borderTopWidth:rt,borderRightWidth:rt,borderBottomWidth:rt,borderLeftWidth:rt,borderRadius:rt,radius:rt,borderTopLeftRadius:rt,borderTopRightRadius:rt,borderBottomRightRadius:rt,borderBottomLeftRadius:rt,width:rt,maxWidth:rt,height:rt,maxHeight:rt,size:rt,top:rt,right:rt,bottom:rt,left:rt,padding:rt,paddingTop:rt,paddingRight:rt,paddingBottom:rt,paddingLeft:rt,margin:rt,marginTop:rt,marginRight:rt,marginBottom:rt,marginLeft:rt,rotate:et,rotateX:et,rotateY:et,rotateZ:et,scale:q,scaleX:q,scaleY:q,scaleZ:q,skew:et,skewX:et,skewY:et,distance:rt,translateX:rt,translateY:rt,translateZ:rt,x:rt,y:rt,z:rt,perspective:rt,transformPerspective:rt,opacity:G,originX:at,originY:at,originZ:rt,zIndex:st,fillOpacity:G,strokeOpacity:G,numOctaves:st};function lt(t,e,n,r){var i=t.style,o=t.vars,a=t.transform,s=t.transformOrigin,u=!1,l=!1,c=!0;for(var h in e){var v=e[h];if(N(h))o[h]=v;else{var f=ut[h],d=z(v,f);if(B.has(h)){if(u=!0,a[h]=d,!c)continue;v!==(f.default||0)&&(c=!1)}else h.startsWith("origin")?(l=!0,s[h]=d):i[h]=d}}if(e.transform||(u||r?i.transform=function(t,e,n,r){for(var i=e.enableHardwareAcceleration,o=void 0===i||i,a=e.allowTransformNone,s=void 0===a||a,u="",l=0;l<U;l++){var c=j[l];if(void 0!==t[c]){var h=I[c]||c;u+="".concat(h,"(").concat(t[c],") ")}}return o&&!t.z&&(u+="translateZ(0)"),u=u.trim(),r?u=r(t,n?"":u):s&&n&&(u="none"),u}(t.transform,n,c,r):i.transform&&(i.transform="none")),l){var p=s.originX,m=void 0===p?"50%":p,y=s.originY,g=void 0===y?"50%":y,x=s.originZ,k=void 0===x?0:x;i.transformOrigin="".concat(m," ").concat(g," ").concat(k)}}var ct=function(){return{style:{},transform:{},transformOrigin:{},vars:{}}};function ht(t,e,n){for(var r in e)O(e[r])||F(r,n)||(t[r]=e[r])}function vt(t,e,n){var r={};return ht(r,t.style||{},t),Object.assign(r,function(t,e,n){var r=t.transformTemplate;return(0,i.useMemo)((function(){var t=ct();return lt(t,e,{enableHardwareAcceleration:!n},r),Object.assign({},t.vars,t.style)}),[e])}(t,e,n)),t.transformValues?t.transformValues(r):r}function ft(t,e,n){var r={},i=vt(t,e,n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r}var dt=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function pt(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||dt.has(t)}var mt,yt=function(t){return!pt(t)};try{(mt=require("@emotion/is-prop-valid").default)&&(yt=function(t){return t.startsWith("on")?!pt(t):mt(t)})}catch(Oa){}var gt=n(45987);function xt(t,e,n){return"string"===typeof t?t:rt.transform(e+n*t)}var kt={offset:"stroke-dashoffset",array:"stroke-dasharray"},Pt={offset:"strokeDashoffset",array:"strokeDasharray"};var wt=["attrX","attrY","attrScale","originX","originY","pathLength","pathSpacing","pathOffset"];function bt(t,e,n,r,i){var o=e.attrX,a=e.attrY,s=e.attrScale,u=e.originX,l=e.originY,c=e.pathLength,h=e.pathSpacing,v=void 0===h?1:h,f=e.pathOffset,d=void 0===f?0:f;
1if(lt(t,(0,gt.Z)(e,wt),n,i),r)t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);else{t.attrs=t.style,t.style={};var p=t.attrs,m=t.style,y=t.dimensions;p.transform&&(y&&(m.transform=p.transform),delete p.transform),y&&(void 0!==u||void 0!==l||m.transform)&&(m.transformOrigin=function(t,e,n){var r=xt(e,t.x,t.width),i=xt(n,t.y,t.height);return"".concat(r," ").concat(i)}(y,void 0!==u?u:.5,void 0!==l?l:.5)),void 0!==o&&(p.x=o),void 0!==a&&(p.y=a),void 0!==s&&(p.scale=s),void 0!==c&&function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];t.pathLength=1;var o=i?kt:Pt;t[o.offset]=rt.transform(-r);var a=rt.transform(e),s=rt.transform(n);t[o.array]="".concat(a," ").concat(s)}(p,c,v,d,!1)}}var Tt=function(){return(0,r.Z)((0,r.Z)({},ct()),{},{attrs:{}})},St=function(t){return"string"===typeof t&&"svg"===t.toLowerCase()};function Zt(t,e,n,o){var a=(0,i.useMemo)((function(){var n=Tt();return bt(n,e,{enableHardwareAcceleration:!1},St(o),t.transformTemplate),(0,r.Z)((0,r.Z)({},n.attrs),{},{style:(0,r.Z)({},n.style)})}),[e]);if(t.style){var s={};ht(s,t.style,t),a.style=(0,r.Z)((0,r.Z)({},s),a.style)}return a}function Et(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,n,o,a,s){var u=a.latestValues,l=(L(e)?Zt:ft)(n,u,s,e),c=function(t,e,n){var r={};for(var i in t)"values"===i&&"object"===typeof t.values||(yt(i)||!0===n&&pt(i)||!e&&!pt(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}(n,"string"===typeof e,t),h=(0,r.Z)((0,r.Z)((0,r.Z)({},c),l),{},{ref:o}),v=n.children,f=(0,i.useMemo)((function(){return O(v)?v.get():v}),[v]);return(0,i.createElement)(e,(0,r.Z)((0,r.Z)({},h),{},{children:f}))}}function At(t,e,n,r){var i=e.style,o=e.vars;for(var a in Object.assign(t.style,i,r&&r.getProjectionStyles(n)),o)t.style.setProperty(a,o[a])}var Ct=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"]);function Vt(t,e,n,r){for(var i in At(t,e,void 0,r),e.attrs)t.setAttribute(Ct.has(i)?i:c(i),e.attrs[i])}function Mt(t,e){var n=t.style,r={};for(var i in n)(O(n[i])||e.style&&O(e.style[i])||F(i,t))&&(r[i]=n[i]);return r}function Dt(t,e){var n=Mt(t,e);for(var r in t){if(O(t[r])||O(e[r]))n[-1!==j.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]}return n}function Lt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return"function"===typeof e&&(e=e(void 0!==n?n:t.custom,r,i)),"string"===typeof e&&(e=t.variants&&t.variants[e]),"function"===typeof e&&(e=e(void 0!==n?n:t.custom,r,i)),e}var Rt=n(29829),jt=function(t){return Array.isArray(t)},Bt=function(t){return Boolean(t&&"object"===typeof t&&t.mix&&t.toValue)},Ft=function(t){return jt(t)?t[t.length-1]||0:t};function Ot(t){var e=O(t)?t.get():t;return Bt(e)?e.toValue():e}var It=["transitionEnd","transition"];var Ut=function(t){return function(e,n){var r=(0,i.useContext)(a),o=(0,i.useContext)(s.O),u=function(){return function(t,e,n,r){var i=t.scrapeMotionValuesFromProps,o=t.createRenderState,a=t.onMount,s={latestValues:Wt(e,n,r,i),renderState:o()};return a&&(s.mount=function(t){return a(e,t,s)}),s}(t,e,r,o)};return n?u():(0,Rt.h)(u)}};function Wt(t,e,n,r){var i={},o=r(t,{});for(var a in o)i[a]=Ot(o[a]);var s=t.initial,u=t.animate,l=y(t),c=g(t);e&&c&&!l&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===u&&(u=e.animate));var h=!!n&&!1===n.initial,v=(h=h||!1===s)?u:s;v&&"boolean"!==typeof v&&!d(v)&&(Array.isArray(v)?v:[v]).forEach((function(e){var n=Lt(t,e);if(n){var r=n.transitionEnd,o=(n.transition,(0,gt.Z)(n,It));for(var a in o){var s=o[a];if(Array.isArray(s))s=s[h?s.length-1:0];null!==s&&(i[a]=s)}for(var u in r)i[u]=r[u]}}));return i}var Nt=n(8771),Ht={useVisualState:Ut({scrapeMotionValuesFromProps:Dt,createRenderState:Tt,onMount:function(t,e,n){var r=n.renderState,i=n.latestValues;Nt.Wi.read((function(){try{r.dimensions="function"===typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){r.dimensions={x:0,y:0,width:0,height:0}}})),Nt.Wi.render((function(){bt(r,i,{enableHardwareAcceleration:!1},St(e.tagName),t.transformTemplate),Vt(e,r)}))}})}
1,zt={useVisualState:Ut({scrapeMotionValuesFromProps:Mt,createRenderState:ct})};var Yt=n(15671),Xt=n(43144),Gt=n(60136),qt=n(27277);function Kt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n)}}var _t=function(t){return"mouse"===t.pointerType?"number"!==typeof t.button||t.button<=0:!1!==t.isPrimary};function $t(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"page";return{point:{x:t[e+"X"],y:t[e+"Y"]}}}var Jt=function(t){return function(e){return _t(e)&&t(e,$t(e))}};function Qt(t,e,n,r){return Kt(t,e,Jt(n),r)}var te=function(t,e){return function(n){return e(t(n))}},ee=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce(te)};function ne(t){var e=null;return function(){return null===e&&(e=t,function(){e=null})}}var re=ne("dragHorizontal"),ie=ne("dragVertical");function oe(t){var e=!1;if("y"===t)e=ie();else if("x"===t)e=re();else{var n=re(),r=ie();n&&r?e=function(){n(),r()}:(n&&n(),r&&r())}return e}function ae(){var t=oe(!0);return!t||(t(),!1)}var se=function(){function t(e){(0,Yt.Z)(this,t),this.isMounted=!1,this.node=e}return(0,Xt.Z)(t,[{key:"update",value:function(){}}]),t}();function ue(t,e){var n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End");return Qt(t.current,n,(function(n,i){if("touch"!==n.type&&!ae()){var o=t.getProps();t.animationState&&o.whileHover&&t.animationState.setActive("whileHover",e),o[r]&&Nt.Wi.update((function(){return o[r](n,i)}))}}),{passive:!t.getProps()[r]})}var le=function(t){(0,Gt.Z)(n,t);var e=(0,qt.Z)(n);function n(){return(0,Yt.Z)(this,n),e.apply(this,arguments)}return(0,Xt.Z)(n,[{key:"mount",value:function(){this.unmount=ee(ue(this.node,!0),ue(this.node,!1))}},{key:"unmount",value:function(){}}]),n}(se),ce=function(t){(0,Gt.Z)(n,t);var e=(0,qt.Z)(n);function n(){var t;return(0,Yt.Z)(this,n),(t=e.apply(this,arguments)).isActive=!1,t}return(0,Xt.Z)(n,[{key:"onFocus",value:function(){var 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)}},{key:"onBlur",value:function(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}},{key:"mount",value:function(){var t=this;this.unmount=ee(Kt(this.node.current,"focus",(function(){return t.onFocus()})),Kt(this.node.current,"blur",(function(){return t.onBlur()})))}},{key:"unmount",value:function(){}}]),n}(se),he=function t(e,n){return!!n&&(e===n||t(e,n.parentElement))},ve=n(83200);function fe(t,e){if(e){var n=new PointerEvent("pointer"+t);e(n,$t(n))}}var de=function(t){(0,Gt.Z)(n,t);var e=(0,qt.Z)(n);function n(){var t;return(0,Yt.Z)(this,n),(t=e.apply(this,arguments)).removeStartListeners=ve.Z,t.removeEndListeners=ve.Z,t.removeAccessibleListeners=ve.Z,t.startPointerPress=function(e,n){if(t.removeEndListeners(),!t.isPressing){var r=t.node.getProps(),i=Qt(window,"pointerup",(function(e,n){if(t.checkPressEnd()){var r=t.node.getProps(),i=r.onTap,o=r.onTapCancel;Nt.Wi.update((function(){he(t.node.current,e.target)?i&&i(e,n):o&&o(e,n)}))}}),{passive:!(r.onTap||r.onPointerUp)}),o=Qt(window,"pointercancel",(function(e,n){return t.cancelPress(e,n)}),{passive:!(r.onTapCancel||r.onPointerCancel)});t.removeEndListeners=ee(i,o),t.startPress(e,n)}},t.startAccessiblePress=function(){var e=Kt(t.node.current,"keydown",(function(e){if("Enter"===e.key&&!t.isPressing){t.removeEndListeners(),t.removeEndListeners=Kt(t.node.current,"keyup",(function(e){"Enter"===e.key&&t.checkPressEnd()&&fe("up",(function(e,n){var r=t.node.getProps().onTap;r&&Nt.Wi.update((function(){return r(e,n)}))}))})),fe("down",(function(e,n){t.startPress(e,n)}))}})),n=Kt(t.node.current,"blur",(function(){t.isPressing&&fe("cancel",(function(e,n){return t.cancelPress(e,n)}))}));t.removeAccessibleListeners=ee(e,n)},t}return(0,Xt.Z)(n,[{key:"startPress",value:function(t,e){this.isPressing=!0;var n=this.node.getProps(),r=n.onTapStart;n.whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Nt.Wi.update((function(){return r(t,e)}))}},{key:"checkPressEnd",value:function(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ae()}},{key:"cancelPress",value:function(t,e){if(this.checkPressEnd()){var n=this.node.getProps().onTapCancel;n&&Nt.Wi.update((function(){return n(t,e)}))}}},{key:"mount",value:function(){var t=this.node.getProps(),e=Qt(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Kt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ee(e,n)}},{key:"unmount",value:function(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}]),n}(se),pe=["root"],me=new WeakMap,ye=new WeakMap,ge=function(t){var e=me.get(t.target);e&&e(t)}
1,xe=function(t){t.forEach(ge)};function ke(t,e,n){var i=function(t){var e=t.root,n=(0,gt.Z)(t,pe),i=e||document;ye.has(i)||ye.set(i,{});var o=ye.get(i),a=JSON.stringify(n);return o[a]||(o[a]=new IntersectionObserver(xe,(0,r.Z)({root:e},n))),o[a]}(e);return me.set(t,n),i.observe(t),function(){me.delete(t),i.unobserve(t)}}var Pe={some:0,all:1},we=function(t){(0,Gt.Z)(n,t);var e=(0,qt.Z)(n);function n(){var t;return(0,Yt.Z)(this,n),(t=e.apply(this,arguments)).hasEnteredView=!1,t.isInView=!1,t}return(0,Xt.Z)(n,[{key:"startObserver",value:function(){var t=this;this.unmount();var e=this.node.getProps().viewport,n=void 0===e?{}:e,r=n.root,i=n.margin,o=n.amount,a=void 0===o?"some":o,s=n.once,u={root:r?r.current:void 0,rootMargin:i,threshold:"number"===typeof a?a:Pe[a]};return ke(this.node.current,u,(function(e){var n=e.isIntersecting;if(t.isInView!==n&&(t.isInView=n,!s||n||!t.hasEnteredView)){n&&(t.hasEnteredView=!0),t.node.animationState&&t.node.animationState.setActive("whileInView",n);var r=t.node.getProps(),i=r.onViewportEnter,o=r.onViewportLeave,a=n?i:o;a&&a(e)}}))}},{key:"mount",value:function(){this.startObserver()}},{key:"update",value:function(){if("undefined"!==typeof IntersectionObserver){var t=this.node,e=t.props,n=t.prevProps,r=["amount","margin","root"].some(function(t){var e=t.viewport,n=void 0===e?{}:e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.viewport,o=void 0===i?{}:i;return function(t){return n[t]!==o[t]}}(e,n));r&&this.startObserver()}}},{key:"unmount",value:function(){}}]),n}(se);var be={inView:{Feature:we},tap:{Feature:de},focus:{Feature:ce},hover:{Feature:le}},Te=n(93433);function Se(t,e){if(!Array.isArray(e))return!1;var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Ze(t,e,n){var r=t.getProps();return Lt(r,e,void 0!==n?n:r.custom,function(t){var e={};return t.values.forEach((function(t,n){return e[n]=t.get()})),e}(t),function(t){var e={};return t.values.forEach((function(t,n){return e[n]=t.getVelocity()})),e}(t))}var Ee=n(95956),Ae=function(t){return 1e3*t},Ce=function(t){return t/1e3},Ve=!1,Me=n(4942),De=n(29439),Le=function(t){return Array.isArray(t)&&"number"===typeof t[0]};function Re(t){return Boolean(!t||"string"===typeof t&&Be[t]||Le(t)||Array.isArray(t)&&t.every(Re))}var je=function(t){var e=(0,De.Z)(t,4),n=e[0],r=e[1],i=e[2],o=e[3];return"cubic-bezier(".concat(n,", ").concat(r,", ").concat(i,", ").concat(o,")")},Be={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:je([0,.65,.55,1]),circOut:je([.55,0,1,.45]),backIn:je([.31,.01,.66,-.59]),backOut:je([.33,1.53,.69,.99])};function Fe(t){if(t)return Le(t)?je(t):Array.isArray(t)?t.map(Fe):Be[t]}var Oe=function(t,e,n){return(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t},Ie=1e-7,Ue=12;function We(t,e,n,r){if(t===e&&n===r)return ve.Z;var i=function(e){return function(t,e,n,r,i){var o,a,s=0;do{(o=Oe(a=e+(n-e)/2,r,i)-t)>0?n=a:e=a}while(Math.abs(o)>Ie&&++s<Ue);return a}(e,0,1,t,n)};return function(t){return 0===t||1===t?t:Oe(i(t),e,r)}}var Ne=We(.42,0,1,1),He=We(0,0,.58,1),ze=We(.42,0,.58,1),Ye=function(t){return Array.isArray(t)&&"number"!==typeof t[0]},Xe=function(t){return function(e){return e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2}},Ge=function(t){return function(e){return 1-t(1-e)}},qe=function(t){return 1-Math.sin(Math.acos(t))},Ke=Ge(qe),_e=Xe(qe),$e=We(.33,1.53,.69,.99),Je=Ge($e),Qe=Xe(Je),tn={linear:ve.Z,easeIn:Ne,easeInOut:ze,easeOut:He,circIn:qe,circInOut:_e,circOut:Ke,backIn:Je,backInOut:Qe,backOut:$e,anticipate:function(t){return(t*=2)<1?.5*Je(t):.5*(2-Math.pow(2,-10*(t-1)))}},en=function(t){if(Array.isArray(t)){(0,Ee.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");var e=(0,De.Z)(t,4);return We(e[0],e[1],e[2],e[3])}return"string"===typeof t?((0,Ee.k)(void 0!==tn[t],"Invalid easing type '".concat(t,"'")),tn[t]):t},nn=function(t,e){return function(n){return Boolean(Q(n)&&J.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e))}},rn=function(t,e,n){return function(r){if(!Q(r))return r;var i=r.match(_),o=(0,De.Z)(i,4),a=o[0],s=o[1],u=o[2],l=o[3];return(0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)({},t,parseFloat(a)),e,parseFloat(s)),n,parseFloat(u)),"alpha",void 0!==l?parseFloat(l):1)}},on=(0,r.Z)((0,r.Z)({},X),{},{transform:function(t){return Math.round(function(t){return Y(0,255,t)}(t))}}),an={test:nn("rgb","red"),parse:rn("red","green","blue"),transform:function(t){var e=t.red,n=t.green,r=t.blue,i=t.alpha,o=void 0===i?1:i;return"rgba("+on.transform(e)+", "+on.transform(n)+", "+on.transform(r)+", "+K(G.transform(o))+")"}};var sn={test:nn("#"),parse:function(t){var e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alph
1a:i?parseInt(i,16)/255:1}},transform:an.transform},un={test:nn("hsl","hue"),parse:rn("hue","saturation","lightness"),transform:function(t){var e=t.hue,n=t.saturation,r=t.lightness,i=t.alpha,o=void 0===i?1:i;return"hsla("+Math.round(e)+", "+nt.transform(K(n))+", "+nt.transform(K(r))+", "+K(G.transform(o))+")"}},ln={test:function(t){return an.test(t)||sn.test(t)||un.test(t)},parse:function(t){return an.test(t)?an.parse(t):un.test(t)?un.parse(t):sn.parse(t)},transform:function(t){return Q(t)?t:t.hasOwnProperty("red")?an.transform(t):un.transform(t)}},cn=function(t,e,n){return-n*t+n*e+t};function hn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var vn=function(t,e,n){var r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},fn=[sn,an,un];function dn(t){var e,n=(e=t,fn.find((function(t){return t.test(e)})));(0,Ee.k)(Boolean(n),"'".concat(t,"' is not an animatable color. Use the equivalent color code instead."));var r=n.parse(t);return n===un&&(r=function(t){var e=t.hue,n=t.saturation,r=t.lightness,i=t.alpha;e/=360,r/=100;var o=0,a=0,s=0;if(n/=100){var u=r<.5?r*(1+n):r+n-r*n,l=2*r-u;o=hn(l,u,e+1/3),a=hn(l,u,e),s=hn(l,u,e-1/3)}else o=a=s=r;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*s),alpha:i}}(r)),r}var pn=function(t,e){var n=dn(t),i=dn(e),o=(0,r.Z)({},n);return function(t){return o.red=vn(n.red,i.red,t),o.green=vn(n.green,i.green,t),o.blue=vn(n.blue,i.blue,t),o.alpha=cn(n.alpha,i.alpha,t),an.transform(o)}};
1var mn={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:ve.Z},yn={regex:$,countKey:"Colors",token:"${c}",parse:ln.parse},gn={regex:_,countKey:"Numbers",token:"${n}",parse:X.parse};function xn(t,e){var n,r=e.regex,i=e.countKey,o=e.token,a=e.parse,s=t.tokenised.match(r);s&&(t["num"+i]=s.length,t.tokenised=t.tokenised.replace(r,o),(n=t.values).push.apply(n,(0,Te.Z)(s.map(a))))}function kn(t){var e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&xn(n,mn),xn(n,yn),xn(n,gn),n}function Pn(t){return kn(t).values}function wn(t){var e=kn(t),n=e.values,r=e.numColors,i=e.numVars,o=e.tokenised,a=n.length;return function(t){for(var e=o,n=0;n<a;n++)e=n<i?e.replace(mn.token,t[n]):n<i+r?e.replace(yn.token,ln.transform(t[n])):e.replace(gn.token,K(t[n]));return e}}var bn=function(t){return"number"===typeof t?0:t};var Tn={test:function(t){var e,n;return isNaN(t)&&Q(t)&&((null===(e=t.match(_))||void 0===e?void 0:e.length)||0)+((null===(n=t.match($))||void 0===n?void 0:n.length)||0)>0},parse:Pn,createTransformer:wn,getAnimatableNone:function(t){var e=Pn(t);return wn(t)(e.map(bn))}},Sn=function(t,e){return function(n){return"".concat(n>0?e:t)}};function Zn(t,e){return"number"===typeof t?function(n){return cn(t,e,n)}:ln.test(t)?pn(t,e):t.startsWith("var(")?Sn(t,e):Cn(t,e)}var En=function(t,e){var n=(0,Te.Z)(t),r=n.length,i=t.map((function(t,n){return Zn(t,e[n])}));return function(t){for(var e=0;e<r;e++)n[e]=i[e](t);return n}},An=function(t,e){var n=(0,r.Z)((0,r.Z)({},t),e),i={};for(var o in n)void 0!==t[o]&&void 0!==e[o]&&(i[o]=Zn(t[o],e[o]));return function(t){for(var e in i)n[e]=i[e](t);return n}},Cn=function(t,e){var n=Tn.createTransformer(e),r=kn(t),i=kn(e);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?ee(En(r.values,i.values),n):((0,Ee.K)(!0,"Complex values '".concat(t,"' and '").concat(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.")),Sn(t,e))},Vn=function(t,e,n){var r=e-t;return 0===r?1:(n-t)/r},Mn=function(t,e){return function(n){return cn(t,e,n)}};function Dn(t,e,n){for(var r,i=[],o=n||("number"===typeof(r=t[0])?Mn:"string"===typeof r?ln.test(r)?pn:Cn:Array.isArray(r)?En:"object"===typeof r?An:Mn),a=t.length-1,s=0;s<a;s++){var u=o(t[s],t[s+1]);if(e){var l=Array.isArray(e)?e[s]||ve.Z:e;u=ee(l,u)}i.push(u)}return i}function Ln(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.clamp,i=void 0===r||r,o=n.ease,a=n.mixer,s=t.length;if((0,Ee.k)(s===e.length,"Both input and output ranges must be the same length"),1===s)return function(){return e[0]};t[0]>t[s-1]&&(t=(0,Te.Z)(t).reverse(),e=(0,Te.Z)(e).reverse());var u=Dn(e,o,a),l=u.length,c=function(e){var n=0;if(l>1)for(;n<t.length-2&&!(e<t[n+1]);n++);var r=Vn(t[n],t[n+1],e);return u[n](r)};return i?function(e){return c(Y(t[0],t[s-1],e))}:c}function Rn(t){var e=[0];return function(t,e){for(var n=t[t.length-1],r=1;r<=e;r++){var i=Vn(0,e,r);t.push(cn(n,1,i))}}(e,t.length-1),e}function jn(t){var e,n,r=t.duration,i=void 0===r?300:r,o=t.keyframes,a=t.times,s=t.ease,u=void 0===s?"easeInOut":s,l=Ye(u)?u.map(en):en(u),c={done:!1,value:o[0]},h=function(t,e){return t.map((function(t){return t*e}))}(a&&a.length===o.length?a:Rn(o),i),v=Ln(h,o,{ease:Array.isArray(l)?l:(e=o,n=l,e.map((function(){return n||ze})).splice(0,e.length-1))});return{calculatedDuration:i,next:function(t){return c.value=v(t),c.done=t>=i,c}}}function Bn(t,e){return e?t*(1e3/e):0}var Fn=5;function On(t,e,n){var r=Math.max(e-Fn,0);return Bn(n-t(r),e-r)}var In=.001,Un=.01,Wn=10,Nn=.05,Hn=1;function zn(t){var e,n,r=t.duration,i=void 0===r?800:r,o=t.bounce,a=void 0===o?.25:o,s=t.velocity,u=void 0===s?0:s,l=t.mass,c=void 0===l?1:l;(0,Ee.K)(i<=Ae(Wn),"Spring duration must be 10 seconds or less");var h=1-a;h=Y(Nn,Hn,h),i=Y(Un,Wn,Ce(i)),h<1?(e=function(t){var e=t*h,n=e*i,r=e-u,o=Xn(t,h),a=Math.exp(-n);return In-r/o*a},n=function(t){var n=t*h*i,r=n*u+u,o=Math.pow(h,2)*Math.pow(t,2)*i,a=Math.exp(-n),s=Xn(Math.pow(t,2),h);return(-e(t)+In>
10?-1:1)*((r-o)*a)/s}):(e=function(t){return Math.exp(-t*i)*((t-u)*i+1)-In},n=function(t){return Math.exp(-t*i)*(i*i*(u-t))});var v=function(t,e,n){for(var r=n,i=1;i<Yn;i++)r-=t(r)/e(r);return r}(e,n,5/i);if(i=Ae(i),isNaN(v))return{stiffness:100,damping:10,duration:i};var f=Math.pow(v,2)*c;return{stiffness:f,damping:2*h*Math.sqrt(c*f),duration:i}}var Yn=12;function Xn(t,e){return t*Math.sqrt(1-e*e)}var Gn=["keyframes","restDelta","restSpeed"],qn=["duration","bounce"],Kn=["stiffness","damping","mass"];function _n(t,e){return e.some((function(e){return void 0!==t[e]}))}function $n(t){var e,n=t.keyframes,i=t.restDelta,o=t.restSpeed,a=(0,gt.Z)(t,Gn),s=n[0],u=n[n.length-1],l={done:!1,value:s},c=function(t){var e=(0,r.Z)({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!_n(t,Kn)&&_n(t,qn)){var n=zn(t);(e=(0,r.Z)((0,r.Z)((0,r.Z)({},e),n),{},{mass:1})).isResolvedFromDuration=!0}return e}((0,r.Z)((0,r.Z)({},a),{},{velocity:-Ce(a.velocity||0)})),h=c.stiffness,v=c.damping,f=c.mass,d=c.duration,p=c.velocity,m=c.isResolvedFromDuration,y=p||0,g=v/(2*Math.sqrt(h*f)),x=u-s,k=Ce(Math.sqrt(h/f)),P=Math.abs(x)<5;if(o||(o=P?.01:2),i||(i=P?.005:.5),g<1){var w=Xn(k,g);e=function(t){var e=Math.exp(-g*k*t);return u-e*((y+g*k*x)/w*Math.sin(w*t)+x*Math.cos(w*t))}}else if(1===g)e=function(t){return u-Math.exp(-k*t)*(x+(y+k*x)*t)};else{var b=k*Math.sqrt(g*g-1);e=function(t){var e=Math.exp(-g*k*t),n=Math.min(b*t,300);return u-e*((y+g*k*x)*Math.sinh(n)+b*x*Math.cosh(n))/b}}return{calculatedDuration:m&&d||null,next:function(t){var n=e(t);if(m)l.done=t>=d;else{var r=y;0!==t&&(r=g<1?On(e,t,n):0);var a=Math.abs(r)<=o,s=Math.abs(u-n)<=i;l.done=a&&s}return l.value=l.done?u:n,l}}}function Jn(t){var e=t.keyframes,n=t.velocity,r=void 0===n?0:n,i=t.power,o=void 0===i?.8:i,a=t.timeConstant,s=void 0===a?325:a,u=t.bounceDamping,l=void 0===u?10:u,c=t.bounceStiffness,h=void 0===c?500:c,v=t.modifyTarget,f=t.min,d=t.max,p=t.restDelta,m=void 0===p?.5:p,y=t.restSpeed,g=e[0],x={done:!1,value:g},k=function(t){return void 0===f?d:void 0===d||Math.abs(f-t)<Math.abs(d-t)?f:d},P=o*r,w=g+P,b=void 0===v?w:v(w);b!==w&&(P=b-g);var T,S,Z=function(t){return-P*Math.exp(-t/s)},E=function(t){return b+Z(t)},A=function(t){var e=Z(t),n=E(t);x.done=Math.abs(e)<=m,x.value=x.done?b:n},C=function(t){var e;(e=x.value,void 0!==f&&e<f||void 0!==d&&e>d)&&(T=t,S=$n({keyframes:[x.value,k(x.value)],velocity:On(E,t,x.value),damping:l,stiffness:h,restDelta:m,restSpeed:y}))};return C(0),{calculatedDuration:null,next:function(t){var e=!1;return S||void 0!==T||(e=!0,A(t),C(t)),void 0!==T&&t>T?S.next(t-T):(!e&&A(t),x)}}}var Qn=function(t){var e=function(e){var n=e.timestamp;return t(n)};return{start:function(){return Nt.Wi.update(e,!0)},stop:function(){return(0,Nt.Pn)(e)},now:function(){return Nt.w0.isProcessing?Nt.w0.timestamp:performance.now()}}},tr=2e4;function er(t){for(var e=0,n=t.next(e);!n.done&&e<tr;)e+=50,n=t.next(e);return e>=tr?1/0:e}var nr=["autoplay","delay","driver","keyframes","type","repeat","repeatDelay","repeatType","onPlay","onStop","onComplete","onUpdate"],rr={decay:Jn,inertia:Jn,tween:jn,keyframes:jn,spring:$n};function ir(t){var e,n,i,o=t.autoplay,a=void 0===o||o,s=t.delay,u=void 0===s?0:s,l=t.driver,c=void 0===l?Qn:l,h=t.keyframes,v=t.type,f=void 0===v?"keyframes":v,d=t.repeat,p=void 0===d?0:d,m=t.repeatDelay,y=void 0===m?0:m,g=t.repeatType,x=void 0===g?"loop":g,k=t.onPlay,P=t.onStop,w=t.onComplete,b=t.onUpdate,T=(0,gt.Z)(t,nr),S=1,Z=!1,E=function(){n=new Promise((function(t){e=t}))};E();var A,C=rr[f]||jn;C!==jn&&"number"!==typeof h[0]&&(A=Ln([0,100],h,{clamp:!1}),h=[0,100]);var V,M=C((0,r.Z)((0,r.Z)({},T),{},{keyframes:h}));"mirror"===x&&(V=C((0,r.Z)((0,r.Z)({},T),{},{keyframes:(0,Te.Z)(h).reverse(),velocity:-(T.velocity||0)})));var D="idle",L=null,R=null,j=null;null===M.calculatedDuration&&p&&(M.calculatedDuration=er(M));var B=M.calculatedDuration,F=1/0,O=1/0;null!==B&&(O=(F=B+y)*(p+1)-y);var I=0,U=function(t){if(null!==R){S>0&&(R=Math.min(R,t)),S<0&&(R=Math.min(t-O/S,R));var e=(I=null!==L?L:Math.round(t-R)*S)-u*(S>=0?1:-1),n=S>=0?e<0:e>O;I=Math.max(e,0),"finished"===D&&null===L&&(I=O);var r=I,i=M;if(p){var o=Math.min(I,O)/F,a=Math.floor(o),s=o%1;!s&&o>=1&&(s=1),1===s&&a--,a=Math.min(a,p+1),Boolean(a%2)&&("reverse"===x?(s=1-s,y&&(s-=y/F)):"mirror"===x&&(i=V)),r=Y(0,1,s)*F}var l=n?{done:!1,value:h[0]}:i.next(r);A&&(l.value=A(l.value));var c=l.done;n||null===B||(c=S>=0?I>=O:I<=0);var v=null===L&&("finished"===D||"running"===D&&c);return b&&b(l.value),v&&H(),l}},W=function(){i&&i.stop(),i=void 0},N=function(){D="idle",W(),e(),E(),R=j=null},H=function(){D="finished",w&&w(),W(),e()},z=function(){if(!Z){i||(i=c(U));var t=i.now();k&&k(),null!==L?R=t-L:R&&"finished"!==D||(R=t),"finished"===D&&E(),j=R,L=null,D="running",i.start()}};a&&z();var X={then:function(t,e){return n.then(t,e)},get time(){return Ce(I)},set time(t){t=Ae(t),I=t,null===L&&i&&0!==S?R=i.now()-t/S:L=t},get duration(){var t=null===M.calculatedDuration?er(M):M.calculatedDuration;return Ce(t)},get speed(){return S},set speed(t){t!==S&&i&&(S=t,X.time=Ce(I))},get state(){return D},play:z,pause:function(){D="paused",L=I},stop:function(){Z=!0,"idle"!==D&&(D="idle",P&&P(),N())},cancel:function(){null!==j&&U(j),N()},complete:function(){D="finished"},sample:function(t){return R=0,U(t)}};return X}var or=["onUpdate","onComplete"],ar=function(t){var e;return function(){return void 0===e&&(e=t()),e}}((function(){return Object.hasOwnProperty.call(Element.prototype,"animate")})),sr=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function ur(t,e,n){n.onUpdate;var i=n.onComplete,o=(0,gt.Z)(n,or);if(!(ar()&&sr.has(e)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;var a,s,u=!1,l=!1,c=function(){s=new Promise((function(t){a=t}))};c();var h=o.keyframes,v=o.duration,f=void 0===v?300:v,d=o.ease,p=o.times;if(function(t,e){return"spring"===e.type||"backgroundColor"===t||!Re(e.ease)}(e,o)){for(var m=ir((0,r.Z)((0,r.Z)({},o),{},{repeat:0,delay:0})),y={done:!1,value:h[0]},g=[],x=0;!y.done&&x<2e4;)y=m.sample(x),g.push(y.value),x+=10;p=void 0,h=g,f=x-10,d="linear"}var k=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.delay,o=void 0===i?0:i,a=r.duration,s=r.repeat,u=void 0===s?0:s,l=r.repeatType,c=void 0===l?"loop":l,h=r.ease,v=r.times,f=(0,Me.Z)({},e,n);v&&(f.offset=v);var d=Fe(h);return Array.isArray(d)&&(f.easing=d),t.animate(f,{delay:o,duration:a,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:u+1,direction:"reverse"===c?"alternate":"normal"})}(t.owner.current,e,h,(0,r.Z)((0,r.Z)({},o),{},{duration:f,ease:d,times:p})),P=function(){l=!1,k.cancel()},w=function(){l=!0,Nt.Wi.update(P),a(),c()};return k.onfinish=function(){l||(t.set(function(t,e){var n=e.repeat,r=e.repeatType;return t[n&&"loop"!==(void 0===r?"loop":r)&&n%2===1?0:t.length-1]}(h,o)),i&&i(),w())},{then:function(t,e){return s.then(t,e)},attachTimeline:function(t){return k.timeline=t,k.onfinish=null,ve.Z},get time(){return Ce(k.currentTime||0)},set time(t){k.currentTime=Ae(t)},get speed(){return k.playbackRate},set speed(t){k.playbackRate=t},get duration(){return Ce(f)},play:function(){u||(k.play(),(0,Nt.Pn)(P))},pause:function(){return k.pause()},stop:function(){if(u=!0,"idle"!==k.playState){var e=k.currentTime;
1if(e){var n=ir((0,r.Z)((0,r.Z)({},o),{},{autoplay:!1}));t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}w()}},complete:function(){l||k.finish()},cancel:w}}var lr={type:"spring",stiffness:500,damping:25,restSpeed:10},cr={type:"keyframes",duration:.8},hr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},vr=function(t,e){var n=e.keyframes;return n.length>2?cr:B.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===n[1]?2*Math.sqrt(550):30,restSpeed:10}:lr:hr},fr=function(t,e){return"zIndex"!==t&&(!("number"!==typeof e&&!Array.isArray(e))||!("string"!==typeof e||!Tn.test(e)&&"0"!==e||e.startsWith("url(")))},dr=new Set(["brightness","contrast","saturate","opacity"]);function pr(t){var e=t.slice(0,-1).split("("),n=(0,De.Z)(e,2),r=n[0],i=n[1];if("drop-shadow"===r)return t;var o=i.match(_)||[],a=(0,De.Z)(o,1)[0];if(!a)return t;var s=i.replace(a,""),u=dr.has(r)?1:0;return a!==i&&(u*=100),r+"("+u+s+")"}var mr=/([a-z-]*)\(.*?\)/g,yr=(0,r.Z)((0,r.Z)({},Tn),{},{getAnimatableNone:function(t){var e=t.match(mr);return e?e.map(pr).join(" "):t}}),gr=(0,r.Z)((0,r.Z)({},ut),{},{color:ln,backgroundColor:ln,outlineColor:ln,fill:ln,stroke:ln,borderColor:ln,borderTopColor:ln,borderRightColor:ln,borderBottomColor:ln,borderLeftColor:ln,filter:yr,WebkitFilter:yr}),xr=function(t){return gr[t]};function kr(t,e){var n=xr(t);return n!==yr&&(n=Tn),n.getAnimatableNone?n.getAnimatableNone(e):void 0}var Pr=function(t){return/^0[^.\s]+$/.test(t)};function wr(t){return"number"===typeof t?0===t:null!==t?"none"===t||"0"===t||Pr(t):void 0}var br=["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"];function Tr(t,e){return t[e]||t.default||t}var Sr=!1,Zr=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return function(o){var a=Tr(i,t)||{},s=a.delay||i.delay||0,u=i.elapsed,l=void 0===u?0:u;l-=Ae(s);var c=function(t,e,n,r){var i,o=fr(e,n);i=Array.isArray(n)?(0,Te.Z)(n):[null,n];for(var a=void 0!==r.from?r.from:t.get(),s=void 0,u=[],l=0;l<i.length;l++)null===i[l]&&(i[l]=0===l?a:i[l-1]),wr(i[l])&&u.push(l),"string"===typeof i[l]&&"none"!==i[l]&&"0"!==i[l]&&(s=i[l]);if(o&&u.length&&s)for(var c=0;c<u.length;c++)i[u[c]]=kr(e,s);return i}(e,t,n,a),h=c[0],v=c[c.length-1],f=fr(t,h),d=fr(t,v);(0,Ee.K)(f===d,"You are trying to animate ".concat(t,' from "').concat(h,'" to "').concat(v,'". ').concat(h," is not an animatable value - to enable this animation set ").concat(h," to a value animatable to ").concat(v," via the `style` property."));var p=(0,r.Z)((0,r.Z)({keyframes:c,velocity:e.getVelocity(),ease:"easeOut"},a),{},{delay:-l,onUpdate:function(t){e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:function(){o(),a.onComplete&&a.onComplete()}});if(function(t){t.when,t.delay,t.delayChildren,t.staggerChildren,t.staggerDirection,t.repeat,t.repeatType,t.repeatDelay,t.from,t.elapsed;var e=(0,gt.Z)(t,br);return!!Object.keys(e).length}(a)||(p=(0,r.Z)((0,r.Z)({},p),vr(t,p))),p.duration&&(p.duration=Ae(p.duration)),p.repeatDelay&&(p.repeatDelay=Ae(p.repeatDelay)),!f||!d||Ve||!1===a.type||Sr)return function(t){var e=t.keyframes,n=t.delay,r=t.onUpdate,i=t.onComplete,o=function(){return r&&r(e[e.length-1]),i&&i(),{time:0,speed:1,duration:0,play:ve.Z,pause:ve.Z,stop:ve.Z,then:function(t){return t(),Promise.resolve()},cancel:ve.Z,complete:ve.Z}};return n?ir({keyframes:[0,1],duration:0,delay:n,onComplete:o}):o()}(Ve?(0,r.Z)((0,r.Z)({},p),{},{delay:0}):p);if(!i.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){var m=ur(e,t,p);if(m)return m}return ir(p)}};function Er(t){return Boolean(O(t)&&t.add)}var Ar=function(t){return/^\-?\d*\.?\d+$/.test(t)};function Cr(t,e){-1===t.indexOf(e)&&t.push(e)}function Vr(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Mr=function(){function t(){(0,Yt.Z)(this,t),this.subscriptions=[]}return(0,Xt.Z)(t,[{key:"add",value:function(t){var e=this;return Cr(this.subscriptions,t),function(){return Vr(e.subscriptions,t)}}},{key:"notify",value:function(t,e,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(var i=0;i<r;i++){var o=this.subscriptions[i];o&&o(t,e,n)}}},{key:"getSize",value:function(){return this.subscriptions.length}},{key:"clear",value:function(){this.subscriptions.length=0}}]),t}(),Dr={current:void 0},Lr=function(){function t(e){var n,r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,Yt.Z)(this,t),this.version="10.17.6",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];r.prev=r.current,r.current=t;var n=Nt.w0.delta,i=Nt.w0.timestamp;r.lastUpdated!==i&&(r.timeDelta=n,r.lastUpdated=i,Nt.Wi.postRender(r.scheduleVelocityCheck)),r.prev!==r.current&&r.events.change&&r.events.change.notify(r.current),r.events.velocityChange&&r.events.velocityChange.notify(r.getVelocity()),e&&r.events.renderRequest&&r.events.renderRequest.notify(r.current)},this.scheduleVelocityCheck=function(){return Nt.Wi.postRender(r.velocityCheck)},this.velocityCheck=function(t){t.timestamp!==r.lastUpdated&&(r.prev=r.current,r.events.velocityChange&&r.events.velocityChange.notify(r.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=i.owner}return(0,Xt.Z)(t,[{key:"onChange",value:function(t){return this.on("change",t)}},{key:"on",value:function(t,e){var n=this;this.events[t]||(this.events[t]=new Mr);var r=this.events[t].add(e);return"change"===t?function(){r(),Nt.Wi.read((function(){n.events.change.getSize()||n.stop()}))}:r}},{key:"clearListeners",value:function(){for(var t in this.events)this.events[t].clear()}},{key:"attach",value:function(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}},{key:"set",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}},{key:"setWithVelocity",value:function(t,e,n){this.set(e),this.prev=t,this.timeDelta=n}},{key:"jump",value:function(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}},{key:"get",value:function(){return Dr.current&&Dr.current.push(this),this.current}},{key:"getPrevious",value:function(){return this.prev}},{key:"getVelocity",value:function(){return this.canTrackVelocity?Bn(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}},{key:"start",value:function(t){var e=this;return this.stop(),new Promise((function(n){e.hasAnimated=!0,e.animation=t(n),e.events.animationStart&&e.events.animationStart.notify()})).then((function(){e.events.animationComplete&&e.events.animationComplete.notify(),e.clearAnimation()}))}},{key:"stop",value:function(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}},{key:"isAnimating",value:function(){return!!this.animation}},{key:"clearAnimation",value:function(){delete this.animation}},{key:"destroy",value:function(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}]),t}();function Rr(t,e){return new Lr(t,e)}var jr=function(t){return function(e){return e.test(t)}},Br=[X,rt,nt,et,ot,it,{test:function(t){return"auto"===t},parse:function(t){return t}}],Fr=function(t){return Br.find(jr(t))},Or=[].concat((0,Te.Z)(Br),[ln,Tn]),Ir=["transitionEnd","transition"];function Ur(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Rr(n))}function Wr(t,e){var n=Ze(t,e),i=n?t.makeTargetAnimatable(n,!1):{},o=i.transitionEnd,a=void 0===o?{}:o,s=(i.transition,(0,gt.Z)(i,Ir));for(var u in s=(0,r.Z)((0,r.Z)({},s),a)){Ur(t,u,Ft(s[u]))}}function Nr(t,e){if(e)return(e[t]||e.default||e).from}var Hr=["transition","transitionEnd"];function zr(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.delay,o=void 0===i?0:i,a=n.transitionOverride,s=n.type,u=t.makeTargetAnimatable(e),l=u.transition,c=void 0===l?t.getDefaultTransition():l,v=u.transitionEnd,f=(0,gt.Z)(u,Hr),d=t.getValue("willChange");a&&(c=a);var p=[],m=s&&t.animationState&&t.animationState.getState()[s],y=function(e){var n=t.getValue(e),i=f[e];if(!n||void 0===i||m&&function(t,e){var n=t.protectedKeys,r=t.needsAnimating,i=n.hasOwnProperty(e)&&!0!==r[e];return r[e]=!1,i}(m,e))return 0;var a=(0,r.Z)({delay:o,elapsed:0},Tr(c||{},e));if(window.HandoffAppearAnimations){var s=t.getProps()[h];if(s){var u=window.HandoffAppearAnimations(s,e,n,Nt.Wi);null!==u&&(a.elapsed=u,a.isHandoff=!0)}}
1var l=!a.isHandoff&&!function(t,e){var n=t.get();if(!Array.isArray(e))return n!==e;for(var r=0;r<e.length;r++)if(e[r]!==n)return!0}(n,i);if("spring"===a.type&&(n.getVelocity()||a.velocity)&&(l=!1),n.animation&&(l=!1),l)return 0;n.start(Zr(e,n,i,t.shouldReduceMotion&&B.has(e)?{type:!1}:a));var v=n.animation;Er(d)&&(d.add(e),v.then((function(){return d.remove(e)}))),p.push(v)};for(var g in f)y(g);return v&&Promise.all(p).then((function(){v&&Wr(t,v)})),p}function Yr(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Ze(t,e,n.custom),o=(i||{}).transition,a=void 0===o?t.getDefaultTransition()||{}:o;n.transitionOverride&&(a=n.transitionOverride);var s=i?function(){return Promise.all(zr(t,i,n))}:function(){return Promise.resolve()},u=t.variantChildren&&t.variantChildren.size?function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,o=a,s=o.delayChildren,u=void 0===s?0:s,l=o.staggerChildren,c=o.staggerDirection;return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=arguments.length>5?arguments[5]:void 0,s=[],u=(t.variantChildren.size-1)*i,l=1===o?function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*i}:function(){return u-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*i};return Array.from(t.variantChildren).sort(Xr).forEach((function(t,i){t.notify("AnimationStart",e),s.push(Yr(t,e,(0,r.Z)((0,r.Z)({},a),{},{delay:n+l(i)})).then((function(){return t.notify("AnimationComplete",e)})))})),Promise.all(s)}(t,e,u+i,l,c,n)}:function(){return Promise.resolve()},l=a.when;if(l){var c="beforeChildren"===l?[s,u]:[u,s],h=(0,De.Z)(c,2),v=h[0],f=h[1];return v().then((function(){return f()}))}return Promise.all([s(),u(n.delay)])}function Xr(t,e){return t.sortNodePosition(e)}var Gr=["transition","transitionEnd"],qr=(0,Te.Z)(p).reverse(),Kr=p.length;function _r(t){return function(e){return Promise.all(e.map((function(e){var n=e.animation,r=e.options;return function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.notify("AnimationStart",e),Array.isArray(e)){var i=e.map((function(e){return Yr(t,e,r)}));n=Promise.all(i)}else if("string"===typeof e)n=Yr(t,e,r);else{var o="function"===typeof e?Ze(t,e,r.custom):e;n=Promise.all(zr(t,o,r))}return n.then((function(){return t.notify("AnimationComplete",e)}))}(t,n,r)})))}}function $r(t){var e=_r(t),n={animate:Jr(!0),whileInView:Jr(),whileHover:Jr(),whileTap:Jr(),whileDrag:Jr(),whileFocus:Jr(),exit:Jr()},i=!0,o=function(e,n){var i=Ze(t,n);if(i){i.transition;var o=i.transitionEnd,a=(0,gt.Z)(i,Gr);e=(0,r.Z)((0,r.Z)((0,r.Z)({},e),a),o)}return e};function a(a,s){for(var u=t.getProps(),l=t.getVariantContext(!0)||{},c=[],h=new Set,v={},p=1/0,m=function(){var e=qr[y],m=n[e],g=void 0!==u[e]?u[e]:l[e],x=f(g),k=e===s?m.isActive:null;!1===k&&(p=y);var P=g===l[e]&&g!==u[e]&&x;if(P&&i&&t.manuallyAnimateOnMount&&(P=!1),m.protectedKeys=(0,r.Z)({},v),!m.isActive&&null===k||!g&&!m.prevProp||d(g)||"boolean"===typeof g)return 1;var w=function(t,e){if("string"===typeof e)return e!==t;if(Array.isArray(e))return!Se(e,t);return!1}(m.prevProp,g),b=w||e===s&&m.isActive&&!P&&x||y>p&&x,T=!1,S=Array.isArray(g)?g:[g],Z=S.reduce(o,{});!1===k&&(Z={});var E=m.prevResolvedValues,A=void 0===E?{}:E,C=(0,r.Z)((0,r.Z)({},A),Z),V=function(t){b=!0,h.has(t)&&(T=!0,h.delete(t)),m.needsAnimating[t]=!0};for(var M in C){var D=Z[M],L=A[M];if(!v.hasOwnProperty(M)){(jt(D)&&jt(L)?!Se(D,L):D!==L)?void 0!==D?V(M):h.add(M):void 0!==D&&h.has(M)?V(M):m.protectedKeys[M]=!0}}m.prevProp=g,m.prevResolvedValues=Z,m.isActive&&(v=(0,r.Z)((0,r.Z)({},v),Z)),i&&t.blockInitialAnimation&&(b=!1),!b||P&&!T||c.push.apply(c,(0,Te.Z)(S.map((function(t){return{animation:t,options:(0,r.Z)({type:e},a)}}))))},y=0;y<Kr;y++)m();if(h.size){var g={};h.forEach((function(e){var n=t.getBaseTarget(e);void 0!==n&&(g[e]=n)})),c.push({animation:g})}var x=Boolean(c.length);return!i||!1!==u.initial&&u.initial!==u.animate||t.manuallyAnimateOnMount||(x=!1),i=!1,x?e(c):Promise.resolve()}
1return{animateChanges:a,setActive:function(e,r,i){var o;if(n[e].isActive===r)return Promise.resolve();null===(o=t.variantChildren)||void 0===o||o.forEach((function(t){var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,r)})),n[e].isActive=r;var s=a(i,e);for(var u in n)n[u].protectedKeys={};return s},setAnimateFunction:function(n){e=n(t)},getState:function(){return n}}}function Jr(){return{isActive:arguments.length>0&&void 0!==arguments[0]&&arguments[0],protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Qr=function(t){(0,Gt.Z)(n,t);var e=(0,qt.Z)(n);function n(t){var r;return(0,Yt.Z)(this,n),r=e.call(this,t),t.animationState||(t.animationState=$r(t)),r}return(0,Xt.Z)(n,[{key:"updateAnimationControlsSubscription",value:function(){var t=this.node.getProps().animate;this.unmount(),d(t)&&(this.unmount=t.subscribe(this.node))}},{key:"mount",value:function(){this.updateAnimationControlsSubscription()}},{key:"update",value:function(){this.node.getProps().animate!==(this.node.prevProps||{}).animate&&this.updateAnimationControlsSubscription()}},{key:"unmount",value:function(){}}]),n}(se),ti=0,ei=function(t){(0,Gt.Z)(n,t);var e=(0,qt.Z)(n);function n(){var t;return(0,Yt.Z)(this,n),(t=e.apply(this,arguments)).id=ti++,t}return(0,Xt.Z)(n,[{key:"update",value:function(){var t=this;if(this.node.presenceContext){var e=this.node.presenceContext,n=e.isPresent,r=e.onExitComplete,i=e.custom,o=(this.node.prevPresenceContext||{}).isPresent;if(this.node.animationState&&n!==o){var a=this.node.animationState.setActive("exit",!n,{custom:null!==i&&void 0!==i?i:this.node.getProps().custom});r&&!n&&a.then((function(){return r(t.id)}))}}}},{key:"mount",value:function(){var t=(this.node.presenceContext||{}).register;t&&(this.unmount=t(this.id))}},{key:"unmount",value:function(){}}]),n}(se),ni={animation:{Feature:Qr},exit:{Feature:ei}},ri=function(t,e){return Math.abs(t-e)};var ii=function(){function t(e,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=o.transformPagePoint,s=o.contextWindow,u=o.dragSnapToOrigin,l=void 0!==u&&u;if((0,Yt.Z)(this,t),this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){var t=si(i.lastMoveEventInfo,i.history),e=null!==i.startEvent,n=function(t,e){var n=ri(t.x,e.x),r=ri(t.y,e.y);return Math.sqrt(Math.pow(n,2)+Math.pow(r,2))}(t.offset,{x:0,y:0})>=3;if(e||n){var o=t.point,a=Nt.w0.timestamp;i.history.push((0,r.Z)((0,r.Z)({},o),{},{timestamp:a}));var s=i.handlers,u=s.onStart,l=s.onMove;e||(u&&u(i.lastMoveEvent,t),i.startEvent=i.lastMoveEvent),l&&l(i.lastMoveEvent,t)}}},this.handlePointerMove=function(t,e){i.lastMoveEvent=t,i.lastMoveEventInfo=oi(e,i.transformPagePoint),Nt.Wi.update(i.updatePoint,!0)},this.handlePointerUp=function(t,e){i.end();var n=i.handlers,r=n.onEnd,o=n.onSessionEnd,a=n.resumeAnimation;if(i.dragSnapToOrigin&&a&&a(),i.lastMoveEvent&&i.lastMoveEventInfo){var s=si("pointercancel"===t.type?i.lastMoveEventInfo:oi(e,i.transformPagePoint),i.history);i.startEvent&&r&&r(t,s),o&&o(t,s)}},_t(e)){this.dragSnapToOrigin=l,this.handlers=n,this.transformPagePoint=a,this.contextWindow=s||window;var c=oi($t(e),this.transformPagePoint),h=c.point,v=Nt.w0.timestamp;this.history=[(0,r.Z)((0,r.Z)({},h),{},{timestamp:v})];var f=n.onSessionStart;f&&f(e,si(c,this.history)),this.removeListeners=ee(Qt(this.contextWindow,"pointermove",this.handlePointerMove),Qt(this.contextWindow,"pointerup",this.handlePointerUp),Qt(this.contextWindow,"pointercancel",this.handlePointerUp))}}return(0,Xt.Z)(t,[{key:"updateHandlers",value:function(t){this.handlers=t}},{key:"end",value:function(){this.removeListeners&&this.removeListeners(),(0,Nt.Pn)(this.updatePoint)}}]),t}();function oi(t,e){return e?{point:e(t.point)}:t}function ai(t,e){return{x:t.x-e.x,y:t.y-e.y}}function si(t,e){var n=t.point;return{point:n,delta:ai(n,li(e)),offset:ai(n,ui(e)),velocity:ci(e,.1)}}function ui(t){return t[0]}function li(t){return t[t.length-1]}function ci(t,e){if(t.length<2)return{x:0,y:0};for(var n=t.length-1,r=null,i=li(t);n>=0&&(r=t[n],!(i.timestamp-r.timestamp>Ae(e)));)n--;if(!r)return{x:0,y:0};var o=Ce(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};var a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function hi(t){return t.max-t.min}function vi(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.01;return Math.abs(t-e)<=n}function fi(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;t.origin=r,t.originPoint=cn(e.min,e.max,t.origin),t.scale=hi(n)/hi(e),(vi(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=cn(n.min,n.max,t.origin)-t.originPoint,(vi(t.translate)||isNaN(t.translate))&&(t.translate=0)}function di(t,e,n,r){fi(t.x,e.x,n.x,r?r.originX:void 0),fi(t.y,e.y,n.y,r?r.originY:void 0)}function pi(t,e,n){t.min=n.min+e.min,t.max=t.min+hi(e)}function mi(t,e,n){t.min=e.min-n.min,t.max=t.min+hi(e)}function yi(t,e,n){mi(t.x,e.x,n.x),mi(t.y,e.y,n.y)}function gi(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function xi(t,e){var n=e.min-t.min,r=e.max-t.max;if(e.max-e.min<t.max-t.min){var i=[r,n];n=i[0],r=i[1]}return{min:n,max:r}}var ki=.35;function Pi(t,e,n){return{min:wi(t,e),max:wi(t,n)}}function wi(t,e){return"number"===typeof t?t:t[e]||0}var bi=function(){return{x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}},Ti=function(){return{x:{min:0,max:0},y:{min:0,max:0}}};function Si(t){return[t("x"),t("y")]}function Zi(t){var e=t.top;return{x:{min:t.left,max:t.right},y:{min:e,max:t.bottom}}}function Ei(t){return void 0===t||1===t}function Ai(t){var e=t.scale,n=t.scaleX,r=t.scaleY;
1return!Ei(e)||!Ei(n)||!Ei(r)}function Ci(t){return Ai(t)||Vi(t)||t.z||t.rotate||t.rotateX||t.rotateY}function Vi(t){return Mi(t.x)||Mi(t.y)}function Mi(t){return t&&"0%"!==t}function Di(t,e,n){return n+e*(t-n)}function Li(t,e,n,r,i){return void 0!==i&&(t=Di(t,i,r)),Di(t,n,r)+e}function Ri(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;t.min=Li(t.min,e,n,r,i),t.max=Li(t.max,e,n,r,i)}function ji(t,e){var n=e.x,r=e.y;Ri(t.x,n.translate,n.scale,n.originPoint),Ri(t.y,r.translate,r.scale,r.originPoint)}function Bi(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function Fi(t,e){t.min=t.min+e,t.max=t.max+e}function Oi(t,e,n){var r=(0,De.Z)(n,3),i=r[0],o=r[1],a=r[2],s=void 0!==e[a]?e[a]:.5,u=cn(t.min,t.max,s);Ri(t,e[i],e[o],u,e.scale)}var Ii=["x","scaleX","originX"],Ui=["y","scaleY","originY"];function Wi(t,e){Oi(t.x,e,Ii),Oi(t.y,e,Ui)}function Ni(t,e){return Zi(function(t,e){if(!e)return t;var n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}var Hi=function(t){var e=t.current;return e?e.ownerDocument.defaultView:null},zi=new WeakMap,Yi=function(){function t(e){(0,Yt.Z)(this,t),this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ti(),this.visualElement=e}return(0,Xt.Z)(t,[{key:"start",value:function(t){var e=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).snapToCursor,r=void 0!==n&&n,i=this.visualElement.presenceContext;if(!i||!1!==i.isPresent){var o=this.getProps().dragSnapToOrigin;this.panSession=new ii(t,{onSessionStart:function(t){e.getProps().dragSnapToOrigin?e.pauseAnimation():e.stopAnimation(),r&&e.snapToCursor($t(t,"page").point)},onStart:function(t,n){var r=e.getProps(),i=r.drag,o=r.dragPropagation,a=r.onDragStart;if(!i||o||(e.openGlobalLock&&e.openGlobalLock(),e.openGlobalLock=oe(i),e.openGlobalLock)){e.isDragging=!0,e.currentDirection=null,e.resolveConstraints(),e.visualElement.projection&&(e.visualElement.projection.isAnimationBlocked=!0,e.visualElement.projection.target=void 0),Si((function(t){var n=e.getAxisMotionValue(t).get()||0;if(nt.test(n)){var r=e.visualElement.projection;if(r&&r.layout){var i=r.layout.layoutBox[t];if(i)n=hi(i)*(parseFloat(n)/100)}}e.originPoint[t]=n})),a&&Nt.Wi.update((function(){return a(t,n)}),!1,!0);var s=e.visualElement.animationState;s&&s.setActive("whileDrag",!0)}},onMove:function(t,n){var r=e.getProps(),i=r.dragPropagation,o=r.dragDirectionLock,a=r.onDirectionLock,s=r.onDrag;if(i||e.openGlobalLock){var u=n.offset;if(o&&null===e.currentDirection)return e.currentDirection=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(u),void(null!==e.currentDirection&&a&&a(e.currentDirection));e.updateAxis("x",n.point,u),e.updateAxis("y",n.point,u),e.visualElement.render(),s&&s(t,n)}},onSessionEnd:function(t,n){return e.stop(t,n)},resumeAnimation:function(){return Si((function(t){var n;return"paused"===e.getAnimationState(t)&&(null===(n=e.getAxisMotionValue(t).animation)||void 0===n?void 0:n.play())}))}},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:o,contextWindow:Hi(this.visualElement)})}}},{key:"stop",value:function(t,e){var n=this.isDragging;if(this.cancel(),n){var r=e.velocity;this.startAnimation(r);var i=this.getProps().onDragEnd;i&&Nt.Wi.update((function(){return i(t,e)}))}}},{key:"cancel",value:function(){this.isDragging=!1;var t=this.visualElement,e=t.projection,n=t.animationState;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}},{key:"updateAxis",value:function(t,e,n){var r=this.getProps().drag;if(n&&Xi(t,r,this.currentDirection)){var i=this.getAxisMotionValue(t),o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,e,n){var r=e.min,i=e.max;return void 0!==r&&t<r?t=n?cn(r,t,n.min):Math.max(t,r):void 0!==i&&t>i&&(t=n?cn(i,t,n.max):Math.min(t,i)),t}(o,this.constraints[t],this.elastic[t])),i.set(o)}}},{key:"resolveConstraints",value:function(){var t,e=this,n=this.getProps(),r=n.dragConstraints,i=n.dragElastic,o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,a=this.constraints;r&&v(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!r||!o)&&function(t,e){var n=e.top,r=e.left,i=e.bottom,o=e.right;return{x:gi(t.x,r,o),y:gi(t.y,n,i)}}(o.layoutBox,r),this.elastic=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ki;return!1===t?t=0:!0===t&&(t=ki),{x:Pi(t,"left","right"),y:Pi(t,"top","bottom")}}(i),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Si((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(t,e){var n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(o.layoutBox[t],e.constraints[t]))}))}},{key:"resolveRefConstraints",value:function(){var t=this.getProps(),e=t.dragConstraints,n=t.onMeasureDragConstraints;if(!e||!v(e))return!1;var r=e.current;(0,Ee.k)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var i=this.visualElement.projection;if(!i||!i.layout)return!1;var o=function(t,e,n){var r=Ni(t,n),i=e.scroll;return i&&(Fi(r.x,i.offset.x),Fi(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a=function(t,e){return{x:xi(t.x,e.x),y:xi(t.y,e.y)}}(i.layout.layoutBox,o);if(n){var s=n(function(t){var e=t.x,n=t.y;return{top:n.min,right:e.max,bottom:n.max,left:e.min}}(a));this.hasMutatedConstraints=!!s,s&&(a=Zi(s))}return a}},{key:"startAnimation",value:function(t){var e=this,n=this.getProps(),i=n.drag,o=n.dragMomentum,a=n.dragElastic,s=n.dragTransition,u=n.dragSnapToOrigin,l=n.onDragTransitionEnd,c=this.constraints||{},h=Si((function(n){if(Xi(n,i,e.currentDirection)){var l=c&&c[n]||{};u&&(l={min:0,max:0});var h=a?200:1e6,v=a?40:1e7,f=(0,r.Z)((0,r.Z)({type:"inertia",velocity:o?t[n]:0,bounceStiffness:h,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10},s),l);return e.startAxisValueAnimation(n,f)}}));return Promise.all(h).then(l)}},{key:"startAxisValueAnimation",value:function(t,e){var n=this.getAxisMotionValue(t);return n.start(Zr(t,n,0,e))}},{key:"stopAnimation",value:function(){var t=this;Si((function(e){return t.getAxisMotionValue(e).stop()}))}},{key:"pauseAnimation",value:function(){var t=this;Si((function(e){var n;return null===(n=t.getAxisMotionValue(e).animation)||void 0===n?void 0:n.pause()}))}},{key:"getAnimationState",value:function(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}},{key:"getAxisMotionValue",value:function(t){var e="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),r=n[e];return r||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}},{key:"snapToCursor",value:function(t){var e=this;Si((function(n){if(Xi(n,e.getProps().drag,e.currentDirection)){var r=e.visualElement.projection,i=e.getAxisMotionValue(n);if(r&&r.layout){var o=r.layout.layoutBox[n],a=o.min,s=o.max;i.set(t[n]-cn(a,s,.5))}}}))}},{key:"scalePositionWithinConstraints",value:function(){var t=this;if(this.visualElement.current){var e=this.getProps(),n=e.drag,r=e.dragConstraints,i=this.visualElement.projection;if(v(r)&&i&&this.constraints){this.stopAnimation();var o={x:0,y:0};Si((function(e){var n=t.getAxisMotionValue(e);if(n){var r=n.get();o[e]=function(t,e){var n=.5,r=hi(t),i=hi(e);return i>r?n=Vn(e.min,e.max-r,t.min):r>i&&(n=Vn(t.min,t.max-i,e.min)),Y(0,1,n)}({min:r,max:r},t.constraints[e])}}));var a=this.visualElement.getProps().transformTemplate;this.visualElement.current.style.transform=a?a({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Si((function(e){if(Xi(e,n,null)){var r=t.getAxisMotionValue(e),i=t.constraints[e],a=i.min,s=i.max;r.set(cn(a,s,o[e]))}}))}}}},{key:"addListeners",value:function(){var t=this;if(this.visualElement.current){zi.set(this.visualElement,this);var e=Qt(this.visualElement.current,"pointerdown",(function(e){var n=t.getProps(),r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&t.start(e)})),n=function(){v(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},r=this.visualElement.projection,i=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),n();var o=Kt(window,"resize",(function(){return t.scalePositionWithinConstraints()})),a=r.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(Si((function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))})),t.visualElement.render())}));return function(){o(),e(),i(),a&&a()}}}},{key:"getProps",value:function(){var t=this.visualElement.getProps(),e=t.drag,n=void 0!==e&&e,i=t.dragDirectionLock,o=void 0!==i&&i,a=t.dragPropagation,s=void 0!==a&&a,u=t.dragConstraints,l=void 0!==u&&u,c=t.dragElastic,h=void 0===c?ki:c,v=t.dragMomentum,f=void 0===v||v;return(0,r.Z)((0,r.Z)({},t),{},{drag:n,dragDirectionLock:o,dragPropagation:s,dragConstraints:l,dragElastic:h,dragMomentum:f})}}]),t}();function Xi(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}var Gi=function(t){(0,Gt.Z)(n,t);var e=(0,qt.Z)(n);function n(t){var r;return(0,Yt.Z)(this,n),(r=e.call(this,t)).removeGroupControls=ve.Z,r.removeListeners=ve.Z,r.controls=new Yi(t),r}return(0,Xt.Z)(n,[{key:"mount",value:function(){var t=this.node.getProps().dragControls;t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ve.Z}},{key:"unmount",value:function(){this.removeGroupControls(),this.removeListeners()}}]),n}(se),qi=function(t){return function(e,n){t&&Nt.Wi.update((function(){return t(e,n)}))}},Ki=function(t){(0,Gt.Z)(n,t);var e=(0,qt.Z)(n);function n(){var t;return(0,Yt.Z)(this,n),(t=e.apply(this,arguments)).removePointerDownListener=ve.Z,t}return(0,Xt.Z)(n,[{key:"onPointerDown",value:function(t){this.session=new ii(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Hi(this.node)})}},{key:"createPanHandlers",value:function(){var t=this,e=this.node.getProps(),n=e.onPanSessionStart,r=e.onPanStart,i=e.onPan,o=e.onPanEnd;return{onSessionStart:qi(n),onStart:qi(r),onMove:i,onEnd:function(e,n){delete t.session,o&&Nt.Wi.update((function(){return o(e,n)}))}}}},{key:"mount",value:function(){var t=this;this.removePointerDownListener=Qt(this.node.current,"pointerdown",(function(e){return t.onPointerDown(e)}))}},{key:"update",value:function(){this.session&&this.session.updateHandlers(this.createPanHandlers())}},{key:"unmount",value:function(){this.removePointerDownListener(),this.session&&this.session.end()}}]),n}(se);var _i={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function $i(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var Ji={correct:function(t,e){if(!e.target)return t;if("string"===typeof t){if(!rt.test(t))return t;t=parseFloat(t)}var n=$i(t,e.target.x),r=$i(t,e.target.y);return"".concat(n,"% ").concat(r,"%")}},Qi={correct:function(t,e){var n=e.treeScale,r=e.projectionDelta,i=t,o=Tn.parse(t);if(o.length>5)return i;var a=Tn.createTransformer(t),s="number"!==typeof o[0]?1:0,u=r.x.scale*n.x,l=r.y.scale*n.y;o[0+s]/=u,o[1+s]/=l;var c=cn(u,l,.5);return"number"===typeof o[2+s]&&(o[2+s]/=c),"number"===typeof o[3+s]&&(o[3+s]/=c),a(o)}},to=function(t){(0,Gt.Z)(n,t);var e=(0,qt.Z)(n);function n(){return(0,Yt.Z)(this,n),e.apply(this,arguments)}
1return(0,Xt.Z)(n,[{key:"componentDidMount",value:function(){var t,e=this,n=this.props,i=n.visualElement,o=n.layoutGroup,a=n.switchLayoutGroup,s=n.layoutId,u=i.projection;t=no,Object.assign(R,t),u&&(o.group&&o.group.add(u),a&&a.register&&s&&a.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",(function(){e.safeToRemove()})),u.setOptions((0,r.Z)((0,r.Z)({},u.options),{},{onExitComplete:function(){return e.safeToRemove()}}))),_i.hasEverUpdated=!0}},{key:"getSnapshotBeforeUpdate",value:function(t){var e=this,n=this.props,r=n.layoutDependency,i=n.visualElement,o=n.drag,a=n.isPresent,s=i.projection;return s?(s.isPresent=a,o||t.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||Nt.Wi.postRender((function(){var t=s.getStack();t&&t.members.length||e.safeToRemove()}))),null):null}},{key:"componentDidUpdate",value:function(){var t=this,e=this.props.visualElement.projection;e&&(e.root.didUpdate(),queueMicrotask((function(){!e.currentAnimation&&e.isLead()&&t.safeToRemove()})))}},{key:"componentWillUnmount",value:function(){var t=this.props,e=t.visualElement,n=t.layoutGroup,r=t.switchLayoutGroup,i=e.projection;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}},{key:"safeToRemove",value:function(){var t=this.props.safeToRemove;t&&t()}},{key:"render",value:function(){return null}}]),n}(i.Component);function eo(t){var e=function(){var t=(0,i.useContext)(s.O);if(null===t)return[!0,null];var e=t.isPresent,n=t.onExitComplete,r=t.register,o=(0,i.useId)();return(0,i.useEffect)((function(){return r(o)}),[]),!e&&n?[!1,function(){return n&&n(o)}]:[!0]}(),n=(0,De.Z)(e,2),o=n[0],a=n[1],u=(0,i.useContext)(Z.p);return i.createElement(to,(0,r.Z)((0,r.Z)({},t),{},{layoutGroup:u,switchLayoutGroup:(0,i.useContext)(E),isPresent:o,safeToRemove:a}))}var no={borderRadius:(0,r.Z)((0,r.Z)({},Ji),{},{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Ji,borderTopRightRadius:Ji,borderBottomLeftRadius:Ji,borderBottomRightRadius:Ji,boxShadow:Qi},ro=["TopLeft","TopRight","BottomLeft","BottomRight"],io=ro.length,oo=function(t){return"string"===typeof t?parseFloat(t):t},ao=function(t){return"number"===typeof t||rt.test(t)};function so(t,e){return void 0!==t[e]?t[e]:t.borderRadius}var uo=co(0,.5,Ke),lo=co(.5,.95,ve.Z);function co(t,e,n){return function(r){return r<t?0:r>e?1:n(Vn(t,e,r))}}function ho(t,e){t.min=e.min,t.max=e.max}function vo(t,e){ho(t.x,e.x),ho(t.y,e.y)}function fo(t,e,n,r,i){return t=Di(t-=e,1/n,r),void 0!==i&&(t=Di(t,1/i,r)),t}function po(t,e,n,r,i){var o=(0,De.Z)(n,3),a=o[0],s=o[1],u=o[2];!function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:t;if(nt.test(e)&&(e=parseFloat(e),e=cn(a.min,a.max,e/100)-a.min),"number"===typeof e){var s=cn(o.min,o.max,r);t===o&&(s-=e),t.min=fo(t.min,e,n,s,i),t.max=fo(t.max,e,n,s,i)}}(t,e[a],e[s],e[u],e.scale,r,i)}var mo=["x","scaleX","originX"],yo=["y","scaleY","originY"];function go(t,e,n,r){po(t.x,e,mo,n?n.x:void 0,r?r.x:void 0),po(t.y,e,yo,n?n.y:void 0,r?r.y:void 0)}function xo(t){return 0===t.translate&&1===t.scale}function ko(t){return xo(t.x)&&xo(t.y)}function Po(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function wo(t){return hi(t.x)/hi(t.y)}var bo=function(){function t(){(0,Yt.Z)(this,t),this.members=[]}return(0,Xt.Z)(t,[{key:"add",value:function(t){Cr(this.members,t),t.scheduleRender()}},{key:"remove",value:function(t){if(Vr(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var e=this.members[this.members.length-1];e&&this.promote(e)}}},{key:"relegate",value:function(t){var e,n=this.members.findIndex((function(e){return t===e}));if(0===n)return!1;for(var r=n;r>=0;r--){var i=this.members[r];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}},{key:"promote",value:function(t,e){var n=this.lead;t!==n&&(this.prevLead=n,this.lead=t,t.show(),n&&(n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0),!1===t.options.crossfade&&n.hide()))}},{key:"exitAnimationComplete",value:function(){this.members.forEac
1h((function(t){var e=t.options,n=t.resumingFrom;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}},{key:"scheduleRender",value:function(){this.members.forEach((function(t){t.instance&&t.scheduleRender(!1)}))}},{key:"removeLeadSnapshot",value:function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}]),t}();function To(t,e,n){var r="",i=t.x.translate/e.x,o=t.y.translate/e.y;if((i||o)&&(r="translate3d(".concat(i,"px, ").concat(o,"px, 0) ")),1===e.x&&1===e.y||(r+="scale(".concat(1/e.x,", ").concat(1/e.y,") ")),n){var a=n.rotate,s=n.rotateX,u=n.rotateY;a&&(r+="rotate(".concat(a,"deg) ")),s&&(r+="rotateX(".concat(s,"deg) ")),u&&(r+="rotateY(".concat(u,"deg) "))}var l=t.x.scale*e.x,c=t.y.scale*e.y;return 1===l&&1===c||(r+="scale(".concat(l,", ").concat(c,")")),r||"none"}var So=function(t,e){return t.depth-e.depth},Zo=function(){function t(){(0,Yt.Z)(this,t),this.children=[],this.isDirty=!1}return(0,Xt.Z)(t,[{key:"add",value:function(t){Cr(this.children,t),this.isDirty=!0}},{key:"remove",value:function(t){Vr(this.children,t),this.isDirty=!0}},{key:"forEach",value:function(t){this.isDirty&&this.children.sort(So),this.isDirty=!1,this.children.forEach(t)}}]),t}();var Eo=["","X","Y","Z"],Ao={visibility:"hidden"},Co=0,Vo={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Mo(t){var e=t.attachResizeListener,n=t.defaultParent,i=t.measureScroll,o=t.checkIsScrollRoot,a=t.resetTransform;return function(){function t(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===n||void 0===n?void 0:n();(0,Yt.Z)(this,t),this.id=Co++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=function(){e.isUpdating&&(e.isUpdating=!1,e.clearAllSnapshots())},this.updateProjection=function(){var t;e.projectionUpdateScheduled=!1,Vo.totalNodes=Vo.resolvedTargetDeltas=Vo.recalculatedProjection=0,e.nodes.forEach(Ro),e.nodes.forEach(Wo),e.nodes.forEach(No),e.nodes.forEach(jo),t=Vo,window.MotionDebug&&window.MotionDebug.record(t)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=i?i.root||i:this,this.path=i?[].concat((0,Te.Z)(i.path),[i]):[],this.parent=i,this.depth=i?i.depth+1:0;for(var o=0;o<this.path.length;o++)this.path[o].shouldResetTransform=!0;this.root===this&&(this.nodes=new Zo)}return(0,Xt.Z)(t,[{key:"addEventListener",value:function(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new Mr),this.eventHandlers.get(t).add(e)}},{key:"notifyListeners",value:function(t){for(var e=this.eventHandlers.get(t),n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e&&e.notify.apply(e,r)}},{key:"hasListeners",value:function(t){return this.eventHandlers.has(t)}},{key:"mount",value:function(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root.hasTreeAnimated;if(!this.instance){var o;this.isSVG=(o=t)instanceof SVGElement&&"svg"!==o.tagName,this.instance=t;var a=this.options,s=a.layoutId,u=a.layout,l=a.visualElement;if(l&&!l.current&&l.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(u||s)&&(this.isLayoutDirty=!0),e){var c,h=function(){return n.root.updateBlockedByResize=!1};e(t,(function(){n.root.updateBlockedByResize=!0,c&&c(),c=function(t,e){var n=performance.now(),r=function r(i){var o=i.timestamp-n;o>=e&&((0,Nt.Pn)(r),t(o-e))};return Nt.Wi.read(r,!0),function(){return(0,Nt.Pn)(r)}}(h,250),_i.hasAnimatedSinceResize&&(_i.hasAnimatedSinceResize=!1,n.nodes.forEach(Uo))}))}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&l&&(s||u)&&this.addEventListener("didUpdate",(function(t){var e=t.delta,i=t.hasLayoutChanged,o=t.hasRelativeTargetChanged,a=t.layout;if(n.isTreeAnimationBlocked())return n.target=void 0,void(n.relativeTarget=void 0);var s=n.options.transition||l.getDefaultTransition()||qo,u=l.getProps(),c=u.onLayoutAnimationStart,h=u.onLayoutAnimationComplete,v=!n.targetLayout||!Po(n.targetLayout,a)||o,f=!i&&o;if(n.options.layoutRoot||n.resumeFrom&&n.resumeFrom.instance||f||i&&(v||!n.currentAnimation)){n.resumeFrom&&(n.resumingFrom=n.resumeFrom,n.resumingFrom.resumingFrom=void 0),n.setAnimationOrigin(e,f);var d=(0,r.Z)((0,r.Z)({},Tr(s,"layout")),{},{onPlay:c,onComplete:h});(l.shouldReduceMotion||n.options.layoutRoot)&&(d.delay=0,d.type=!1),n.startAnimation(d)}else i||Uo(n),n.isLead()&&n.options.onExitComplete&&n.options.onExitComplete();n.targetLayout=a}))}}},{key:"unmount",value:function(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);var t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,Nt.Pn)(this.updateProjection)}},{key:"blockUpdate",value:function(){this.updateManuallyBlocked=!0}},{key:"unblockUpdate",value:function(){this.updateManuallyBlocked=!1}},{key:"isUpdateBlocked",value:function(){return this.updateManuallyBlocked||this.updateBlockedByResize}},{key:"isTreeAnimationBlocked",value:function(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}}
1,{key:"startUpdate",value:function(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ho),this.animationId++)}},{key:"getTransformTemplate",value:function(){var t=this.options.visualElement;return t&&t.getProps().transformTemplate}},{key:"willUpdate",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())this.options.onExitComplete&&this.options.onExitComplete();else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var e=0;e<this.path.length;e++){var n=this.path[e];n.shouldResetTransform=!0,n.updateScroll("snapshot"),n.options.layoutRoot&&n.willUpdate(!1)}var r=this.options,i=r.layoutId,o=r.layout;if(void 0!==i||o){var a=this.getTransformTemplate();this.prevTransformTemplateValue=a?a(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}}}},{key:"update",value:function(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Fo);this.isUpdating||this.nodes.forEach(Oo),this.isUpdating=!1,this.nodes.forEach(Io),this.nodes.forEach(Do),this.nodes.forEach(Lo),this.clearAllSnapshots();var t=performance.now();Nt.w0.delta=Y(0,1e3/60,t-Nt.w0.timestamp),Nt.w0.timestamp=t,Nt.w0.isProcessing=!0,Nt.S6.update.process(Nt.w0),Nt.S6.preRender.process(Nt.w0),Nt.S6.render.process(Nt.w0),Nt.w0.isProcessing=!1}},{key:"didUpdate",value:function(){var t=this;this.updateScheduled||(this.updateScheduled=!0,queueMicrotask((function(){return t.update()})))}},{key:"clearAllSnapshots",value:function(){this.nodes.forEach(Bo),this.sharedNodes.forEach(zo)}},{key:"scheduleUpdateProjection",value:function(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Nt.Wi.preRender(this.updateProjection,!1,!0))}},{key:"scheduleCheckAfterUnmount",value:function(){var t=this;Nt.Wi.postRender((function(){t.isLayoutDirty?t.root.didUpdate():t.root.checkUpdateFailed()}))}},{key:"updateSnapshot",value:function(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}},{key:"updateLayout",value:function(){if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++){this.path[t].updateScroll()}var e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ti(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);var n=this.options.visualElement;n&&n.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}}},{key:"updateScroll",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",e=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:o(this.instance),offset:i(this.instance)})}},{key:"resetTransform",value:function(){if(a){var t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!ko(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;t&&(e||Ci(this.latestValues)||i)&&(a(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}}},{key:"measure",value:function(){var t,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),$o((t=r).x),$o(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}},{key:"measurePageBox",value:function(){var t=this.options.visualElement;if(!t)return Ti();var e=t.measureViewportBox(),n=this.root.scroll;return n&&(Fi(e.x,n.offset.x),Fi(e.y,n.offset.y)),e}},{key:"removeElementScroll",value:function(t){var e=Ti();vo(e,t);for(var n=0;n<this.path.length;n++){var r=this.path[n],i=r.scroll,o=r.options;if(r!==this.root&&i&&o.layoutScroll){if(i.isRoot){vo(e,t);var a=this.root.scroll;a&&(Fi(e.x,-a.offset.x),Fi(e.y,-a.offset.y))}Fi(e.x,i.offset.x),Fi(e.y,i.offset.y)}}return e}},{key:"applyTransform",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ti();vo(n,t);for(var r=0;r<this.path.length;r++){var i=this.path[r];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Wi(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),Ci(i.latestValues)&&Wi(n,i.latestValues)}return Ci(this.latestValues)&&Wi(n,this.latestValues),n}},{key:"removeTransform",value:function(t){var e=Ti();vo(e,t);for(var n=0;n<this.path.length;n++){var r=this.path[n];if(r.instance&&Ci(r.latestValues)){Ai(r.latestValues)&&r.updateSnapshot();var i=Ti();vo(i,r.measurePageBox()),go(e,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,i)}}return Ci(this.latestValues)&&go(e,this.latestValues),e}},{key:"setTargetDelta",value:function(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}},{key:"setOptions",value:function(t){this.options=(0,r.Z)((0,r.Z)((0,r.Z)({},this.options),t),{},{crossfade:void 0===t.crossfade||t.crossfade})}},{key:"clearMeasurements",value:function(){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}},{key:"forceRelativeParentToResolveTarget",value:function(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Nt.w0.timestamp&&this.relativeParent.resolveTargetDelta(!0)}},{key:"resolveTargetDelta",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isS
1haredProjectionDirty);var r=Boolean(this.resumingFrom)||this!==n;if(!!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget)){var i=this.options,o=i.layout,a=i.layoutId;if(this.layout&&(o||a)){if(this.resolvedRelativeTargetAt=Nt.w0.timestamp,!this.targetDelta&&!this.relativeTarget){var s=this.getClosestProjectingParent();s&&s.layout&&1!==this.animationProgress?(this.relativeParent=s,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ti(),this.relativeTargetOrigin=Ti(),yi(this.relativeTargetOrigin,this.layout.layoutBox,s.layout.layoutBox),vo(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var u,l,c;if(this.target||(this.target=Ti(),this.targetWithTransforms=Ti()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),u=this.target,l=this.relativeTarget,c=this.relativeParent.target,pi(u.x,l.x,c.x),pi(u.y,l.y,c.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):vo(this.target,this.layout.layoutBox),ji(this.target,this.targetDelta)):vo(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;var h=this.getClosestProjectingParent();h&&Boolean(h.resumingFrom)===Boolean(this.resumingFrom)&&!h.options.layoutScroll&&h.target&&1!==this.animationProgress?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ti(),this.relativeTargetOrigin=Ti(),yi(this.relativeTargetOrigin,this.target,h.target),vo(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Vo.resolvedTargetDeltas++}}}}},{key:"getClosestProjectingParent",value:function(){if(this.parent&&!Ai(this.parent.latestValues)&&!Vi(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}},{key:"isProjecting",value:function(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}},{key:"calcProjection",value:function(){var t,e=this.getLead(),n=Boolean(this.resumingFrom)||this!==e,r=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===Nt.w0.timestamp&&(r=!1),!r){var i=this.options,o=i.layout,a=i.layoutId;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(o||a)){vo(this.layoutCorrected,this.layout.layoutBox);var s=this.treeScale.x,u=this.treeScale.y;!function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=n.length;if(i){var o,a;e.x=e.y=1;for(var s=0;s<i;s++){a=(o=n[s]).projectionDelta;var u=o.instance;u&&u.style&&"contents"===u.style.display||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Wi(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,ji(t,a)),r&&Ci(o.latestValues)&&Wi(t,o.latestValues))}e.x=Bi(e.x),e.y=Bi(e.y)}}(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox);var l=e.target;if(l){this.projectionDelta||(this.projectionDelta=bi(),this.projectionDeltaWithTransform=bi());var c=this.projectionTransform;di(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=To(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===s&&this.treeScale.y===u||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Vo.recalculatedProjection++}else this.projectionTransform&&(this.projectionDelta=bi(),this.projectionTransform="none",this.scheduleRender())}}}},{key:"hide",value:function(){this.isVisible=!1}},{key:"show",value:function(){this.isVisible=!0}},{key:"scheduleRender",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.options.scheduleRender&&this.options.scheduleRender(),t){var e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}},{key:"setAnimationOrigin",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.snapshot,o=i?i.latestValues:{},a=(0,r.Z)({},this.latestValues),s=bi();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!n;var u,l=Ti(),c=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),v=!h||h.members.length<=1,f=Boolean(c&&!v&&!0===this.options.crossfade&&!this.path.some(Go));this.animationProgress=0,this.mixTargetDelta=function(n){var r,i,h,d,p,m,y=n/1e3;Yo(s.x,t.x,y),Yo(s.y,t.y,y),e.setTargetDelta(s),e.relativeTarget&&e.relativeTargetOrigin&&e.layout&&e.relativeParent&&e.relativeParent.layout&&(yi(l,e.layout.layoutBox,e.relativeParent.layout.layoutBox),h=e.relativeTarget,d=e.relativeTargetOrigin,p=l,m=y,Xo(h.x,d.x,p.x,m),Xo(h.y,d.y,p.y,m),u&&(r=e.relativeTarget,i=u,r.x.min===i.x.min&&r.x.max===i.x.max&&r.y.min===i.y.min&&r.y.max===i.y.max)&&(e.isProjectionDirty=!1),u||(u=Ti()),vo(u,e.relativeTarget)),c&&(e.animationValues=a,function(t,e,n,r,i,o){i?(t.opacity=cn(0,void 0!==n.opacity?n.opacity:1,uo(r)),t.opacityExit=cn(void 0!==e.opacity?e.opacity:1,0,lo(r))):o&&(t.opacity=cn(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(var a=0;a<io;a++){var s="border".concat(ro[a],"Radius"),u=so(e,s),l=so(n,s);void 0===u&&void 0===l||(u||(u=0),l||(l=0),0===u||0===l||ao(u)===ao(l)?(t[s]=Math.max(cn(oo(u),oo(l),r),0),(nt.test(l)||nt.test(u))&&(t[s]+="%")):t[s]=l)}(e.rotate||n.rotate)&&(t.rotate=cn(e.rotate||0,n.rotate||0,r))}(a,o,e.latestValues,y,f,v)),e.root.scheduleUpdateProjection(),e.scheduleRender(),e.animationProgress=y},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}},{key:"startAnimation",value:function(t){var e=this;this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,Nt.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Nt.Wi.update((function(){_i.hasAnimatedSinceResize=!0,e.currentAnimation=function(t,e,n){var r=O(t)?t:Rr(t);return r.start(Zr("",r,e,n)),r.animation}(0,1e3,(0,r.Z)((0,r.Z)({},t),{},{onUpdate:function(n){e.mixTargetDelta(n),t.onUpdate&&t.onUpdate(n)},onComplete:function(){t.onComplete&&t.onComplete(),e.completeAnimation()}})),e.resumingFrom&&(e.resumingFrom.currentAnimation=e.currentAnimation),e.pendingAnimation=void 0}))}},{key:"completeAnimation",value:function(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);var t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}},{key:"finishAnimation",value:function(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}},{key:"applyTransformsToTarget",value:function(){var t=this.getLead(),e=t.targetWithTransforms,n=t.target,r=t.layout,i=t.latestValues;if(e&&n&&r){if(this!==t&&this.layout&&r&&Jo(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Ti();var o=hi(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+o;var a=hi(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+a}vo(e,n),Wi(e,i),di(this.projectionDeltaWithTransform,this.layoutCorrected,e,i)}}},{key:"registerSharedNode",value:function(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new bo),this.sharedNodes.get(t).add(e);var n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}},{key:"isLead",value:function(){var t=this.getStack();return!t||t.lead===this}},{key:"getLead",value:function(){var t;return this.options.layoutId&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}},{key:"getPrevLead",value:function(){var t;return this.options.layoutId?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}},{key:"getStack",value:function(){var t=this.options.layoutId;if(t)return this.root.sharedNodes.get(t)}},{key:"promote",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.needsReset,n=t.transition,r=t.preserveFollowOpacity,i=this.getStack();i&&i.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),n&&this.setOptions({transition:n})}},{key:"relegate",value:function(){var t=this.getStack();return!!t&&t.relegate(this)}},{key:"resetRotation",value:function(){var t=this.options.visualElement;if(t){var e=!1,n=t.latestValues;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),e){for(var r={},i=0;i<Eo.length;i++){var o="rotate"+Eo[i];n[o]&&(r[o]=n[o],t.setStaticValue(o,0))}for(var a in t.render(),r)t.setStaticValue(a,r[a]);t.scheduleRender()}}}},{key:"getProjectionStyles",value:function(t){var e,n;if(this.instance&&!this.isSVG){if(!this.isVisible)return Ao;var r={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Ot(null===t||void 0===t?void 0:t.pointerEvents)||"",r.transform=i?i(this.latestValues,""):"none",r;var o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){var a={};return this.options.layoutId&&(a.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,a.pointerEvents=Ot(null===t||void 0===t?void 0:t.pointerEvents)||""),this.hasProjected&&!Ci(this.latestValues)&&(a.transform=i?i({},""):"none",this.hasProjected=!1),a}var s=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=To(this.projectionDeltaWithTransform,this.treeScale,s),i&&(r.transform=i(s,r.transform));var u=this.projectionDelta,l=u.x,c=u.y;for(var h in r.transformOrigin="".concat(100*l.origin,"% ").concat(100*c.origin,"% 0"),o.animationValues?r.opacity=o===this?null!==(n=null!==(e=s.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=o===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,R)if(void 0!==s[h]){var v=R[h],f=v.correct,d=v.applyTo,p="none"===r.transform?s[h]:f(s[h],o);if(d)for(var m=d.length,y=0;y<m;y++)r[d[y]]=p;else r[h]=p}return this.options.layoutId&&(r.pointerEvents=o===this?Ot(null===t||void 0===t?void 0:t.pointerEvents)||"":"none"),r}}},{key:"clearSnapshot",value:function(){this.resumeFrom=this.snapshot=void 0}}
1,{key:"resetTree",value:function(){this.root.nodes.forEach((function(t){var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(Fo),this.root.sharedNodes.clear()}}]),t}()}function Do(t){t.updateLayout()}function Lo(t){var e,n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){var r=t.layout,i=r.layoutBox,o=r.measuredBox,a=t.options.animationType,s=n.source!==t.layout.source;"size"===a?Si((function(t){var e=s?n.measuredBox[t]:n.layoutBox[t],r=hi(e);e.min=i[t].min,e.max=e.min+r})):Jo(a,n.layoutBox,i)&&Si((function(e){var r=s?n.measuredBox[e]:n.layoutBox[e],o=hi(i[e]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[e].max=t.relativeTarget[e].min+o)}));var u=bi();di(u,i,n.layoutBox);var l=bi();s?di(l,t.applyTransform(o,!0),n.measuredBox):di(l,i,n.layoutBox);var c=!ko(u),h=!1;if(!t.resumeFrom){var v=t.getClosestProjectingParent();if(v&&!v.resumeFrom){var f=v.snapshot,d=v.layout;if(f&&d){var p=Ti();yi(p,n.layoutBox,f.layoutBox);var m=Ti();yi(m,i,d.layoutBox),Po(p,m)||(h=!0),v.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=p,t.relativeParent=v)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:l,layoutDelta:u,hasLayoutChanged:c,hasRelativeTargetChanged:h})}else if(t.isLead()){var y=t.options.onExitComplete;y&&y()}t.options.transition=void 0}function Ro(t){Vo.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function jo(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Bo(t){t.clearSnapshot()}function Fo(t){t.clearMeasurements()}function Oo(t){t.isLayoutDirty=!1}function Io(t){var e=t.options.visualElement;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Uo(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Wo(t){t.resolveTargetDelta()}function No(t){t.calcProjection()}function Ho(t){t.resetRotation()}function zo(t){t.removeLeadSnapshot()}function Yo(t,e,n){t.translate=cn(e.translate,0,n),t.scale=cn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Xo(t,e,n,r){t.min=cn(e.min,n.min,r),t.max=cn(e.max,n.max,r)}function Go(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}var qo={duration:.45,ease:[.4,0,.1,1]},Ko=function(t){return"undefined"!==typeof navigator&&navigator.userAgent.toLowerCase().includes(t)},_o=Ko("applewebkit/")&&!Ko("chrome/")?Math.round:ve.Z;function $o(t){t.min=_o(t.min),t.max=_o(t.max)}function Jo(t,e,n){return"position"===t||"preserve-aspect"===t&&!vi(wo(e),wo(n),.2)}var Qo=Mo({attachResizeListener:function(t,e){return Kt(t,"resize",e)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),ta={current:void 0},ea=Mo({measureScroll:function(t){return{x:t.scrollLeft,y:t.scrollTop}},defaultParent:function(){if(!ta.current){var t=new Qo({});t.mount(window),t.setOptions({layoutScroll:!0}),ta.current=t}return ta.current},resetTransform:function(t,e){t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:function(t){return Boolean("fixed"===window.getComputedStyle(t).position)}}),na={pan:{Feature:Ki},drag:{Feature:Gi,ProjectionNode:ea,MeasureLayout:eo}},ra=n(36459),ia=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;var oa=4;function aa(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;(0,Ee.k)(n<=oa,'Max CSS variable fallback depth detected in property "'.concat(t,'". This may indicate a circular fallback dependency.'));var r=function(t){var e=ia.exec(t);if(!e)return[,];var n=(0,De.Z)(e,3);return[n[1],n[2]]}(t),i=(0,De.Z)(r,2),o=i[0],a=i[1];if(o){var s=window.getComputedStyle(e).getPropertyValue(o);if(s){var u=s.trim();return Ar(u)?parseFloat(u):u}return H(a)?aa(a,e,n+1):a}}var sa=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),ua=function(t){return sa.has(t)},la=function(t){return t===X||t===rt},ca=function(t,e){return parseFloat(t.split(", ")[e])},ha=function(t,e){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return ca(o[1],e);var a=i.match(/^matrix\((.+)\)$/);return a?ca(a[1],t):0}},va=new Set(["x","y","z"]),fa=j.filter((function(t){return!va.has(t)}));var da={width:function(t,e){var n=t.x,r=e.paddingLeft,i=void 0===r?"0":r,o=e.paddingRight,a=void 0===o?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(a)},height:function(t,e){var n=t.y,r=e.paddingTop,i=void 0===r?"0":r,o=e.paddingBottom,a=void 0===o?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(a)},top:function(t,e){var n=e.top;return parseFloat(n)},left:function(t,e){var n=e.left;return parseFloat(n)},bottom:function(t,e){var n=t.y,r=e.top;return parseFloat(r)+(n.max-n.min)},right:function(t,e){var n=t.x,r=e.left;return parseFloat(r)+(n.max-n.min)},x:ha(4,13),y:ha(5,14)};da.translateX=da.x,da.translateY=da.y;var pa=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e=(0,r.Z)({},e),i=(0,r.Z)({},i);var o=Object.keys(e).filter(ua),a=[],s=!1,u=[];
1if(o.forEach((function(r){var o=t.getValue(r);if(t.hasValue(r)){var l,c=n[r],h=Fr(c),v=e[r];if(jt(v)){var f=v.length,d=null===v[0]?1:0;c=v[d],h=Fr(c);for(var p=d;p<f&&null!==v[p];p++)l?(0,Ee.k)(Fr(v[p])===l,"All keyframes must be of the same type"):(l=Fr(v[p]),(0,Ee.k)(l===h||la(h)&&la(l),"Keyframes must be of the same dimension as the current value"))}else l=Fr(v);if(h!==l)if(la(h)&&la(l)){var m=o.get();"string"===typeof m&&o.set(parseFloat(m)),"string"===typeof v?e[r]=parseFloat(v):Array.isArray(v)&&l===rt&&(e[r]=v.map(parseFloat))}else(null===h||void 0===h?void 0:h.transform)&&(null===l||void 0===l?void 0:l.transform)&&(0===c||0===v)?0===c?o.set(l.transform(c)):e[r]=h.transform(v):(s||(a=function(t){var e=[];return fa.forEach((function(n){var r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),s=!0),u.push(r),i[r]=void 0!==i[r]?i[r]:e[r],o.jump(v))}})),u.length){var l=u.indexOf("height")>=0?window.pageYOffset:null,c=function(t,e,n){var r=e.measureViewportBox(),i=e.current,o=getComputedStyle(i),a=o.display,s={};"none"===a&&e.setStaticValue("display",t.display||"block"),n.forEach((function(t){s[t]=da[t](r,o)})),e.render();var u=e.measureViewportBox();return n.forEach((function(n){var r=e.getValue(n);r&&r.jump(s[n]),t[n]=da[n](u,o)})),t}(e,t,u);return a.length&&a.forEach((function(e){var n=(0,De.Z)(e,2),r=n[0],i=n[1];t.getValue(r).set(i)})),t.render(),S.j&&null!==l&&window.scrollTo({top:l}),{target:c,transitionEnd:i}}return{target:e,transitionEnd:i}};function ma(t,e,n,r){return function(t){return Object.keys(t).some(ua)}(e)?pa(t,e,n,r):{target:e,transitionEnd:r}}var ya=function(t,e,n,i){var o=function(t,e,n){var i=Object.assign({},((0,ra.Z)(e),e)),o=t.current;if(!(o instanceof Element))return{target:i,transitionEnd:n};for(var a in n&&(n=(0,r.Z)({},n)),t.values.forEach((function(t){var e=t.get();if(H(e)){var n=aa(e,o);n&&t.set(n)}})),i){var s=i[a];if(H(s)){var u=aa(s,o);u&&(i[a]=u,n||(n={}),void 0===n[a]&&(n[a]=s))}}return{target:i,transitionEnd:n}}(t,e,i);return ma(t,e=o.target,n,i=o.transitionEnd)},ga={current:null},xa={current:!1};var ka=new WeakMap,Pa=["willChange"],wa=["children"],ba=Object.keys(w),Ta=ba.length,Sa=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Za=m.length,Ea=function(){function t(e){var n=this,i=e.parent,o=e.props,a=e.presenceContext,s=e.reducedMotionConfig,u=e.visualState,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,Yt.Z)(this,t),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=function(){return n.notify("Update",n.latestValues)},this.render=function(){n.current&&(n.triggerBuild(),n.renderInstance(n.current,n.renderState,n.props.style,n.projection))},this.scheduleRender=function(){return Nt.Wi.render(n.render,!1,!0)};var c=u.latestValues,h=u.renderState;this.latestValues=c,this.baseTarget=(0,r.Z)({},c),this.initialValues=o.initial?(0,r.Z)({},c):{},this.renderState=h,this.parent=i,this.props=o,this.presenceContext=a,this.depth=i?i.depth+1:0,this.reducedMotionConfig=s,this.options=l,this.isControllingVariants=y(o),this.isVariantNode=g(o),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(i&&i.current);var v=this.scrapeMotionValuesFromProps(o,{}),f=v.willChange,d=(0,gt.Z)(v,Pa);for(var p in d){var m=d[p];void 0!==c[p]&&O(m)&&(m.set(c[p],!1),Er(f)&&f.add(p))}}return(0,Xt.Z)(t,[{key:"scrapeMotionValuesFromProps",value:function(t,e){return{}}},{key:"mount",value:function(t){var e=this;this.current=t,ka.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((function(t,n){return e.bindToMotionValue(n,t)})),xa.current||function(){if(xa.current=!0,S.j)if(window.matchMedia){var t=window.matchMedia("(prefers-reduced-motion)"),e=function(){return ga.current=t.matches};t.addListener(e),e()}else ga.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||ga.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}},{key:"unmount",value:function(){for(var t in ka.delete(this.current),this.projection&&this.projection.unmount(),(0,Nt.Pn)(this.notifyUpdate),(0,Nt.Pn)(this.render),this.valueSubscriptions.forEach((function(t){return t()})),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(var e in this.features)this.features[e].unmount();this.current=null}},{key:"bindToMotionValue",value:function(t,e){var n=this,r=B.has(t),i=e.on("change",(function(e){n.latestValues[t]=e,n.props.onUpdate&&Nt.Wi.update(n.notifyUpdate,!1,!0),r&&n.projection&&(n.projection.isTransformDirty=!0)})),o=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,(function(){i(),o()}))}}
1,{key:"sortNodePosition",value:function(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}},{key:"loadFeatures",value:function(t,e,n,r){for(var i,o,a=this,s=(t.children,(0,gt.Z)(t,wa)),u=0;u<Ta;u++){var l=ba[u],c=w[l],h=c.isEnabled,f=c.Feature,d=c.ProjectionNode,p=c.MeasureLayout;d&&(i=d),h(s)&&(!this.features[l]&&f&&(this.features[l]=new f(this)),p&&(o=p))}if(!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);var m=s.layoutId,y=s.layout,g=s.drag,x=s.dragConstraints,k=s.layoutScroll,P=s.layoutRoot;this.projection.setOptions({layoutId:m,layout:y,alwaysMeasureLayout:Boolean(g)||x&&v(x),visualElement:this,scheduleRender:function(){return a.scheduleRender()},animationType:"string"===typeof y?y:"both",initialPromotionConfig:r,layoutScroll:k,layoutRoot:P})}return o}},{key:"updateFeatures",value:function(){for(var t in this.features){var e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}},{key:"triggerBuild",value:function(){this.build(this.renderState,this.latestValues,this.options,this.props)}},{key:"measureViewportBox",value:function(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ti()}},{key:"getStaticValue",value:function(t){return this.latestValues[t]}},{key:"setStaticValue",value:function(t,e){this.latestValues[t]=e}},{key:"makeTargetAnimatable",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.makeTargetAnimatableFromInstance(t,this.props,e)}},{key:"update",value:function(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(var n=0;n<Sa.length;n++){var r=Sa[n];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);var i=t["on"+r];i&&(this.propEventSubscriptions[r]=this.on(r,i))}this.prevMotionValues=function(t,e,n){var r=e.willChange;for(var i in e){var o=e[i],a=n[i];if(O(o))t.addValue(i,o),Er(r)&&r.add(i);else if(O(a))t.addValue(i,Rr(o,{owner:t})),Er(r)&&r.remove(i);else if(a!==o)if(t.hasValue(i)){var s=t.getValue(i);!s.hasAnimated&&s.set(o)}else{var u=t.getStaticValue(i);t.addValue(i,Rr(void 0!==u?u:o,{owner:t}))}}for(var l in n)void 0===e[l]&&t.removeValue(l);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}},{key:"getProps",value:function(){return this.props}},{key:"getVariant",value:function(t){return this.props.variants?this.props.variants[t]:void 0}},{key:"getDefaultTransition",value:function(){return this.props.transition}},{key:"getTransformPagePoint",value:function(){return this.props.transformPagePoint}},{key:"getClosestVariantNode",value:function(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}},{key:"getVariantContext",value:function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0])return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){var t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}for(var e={},n=0;n<Za;n++){var r=m[n],i=this.props[r];(f(i)||!1===i)&&(e[r]=i)}return e}},{key:"addVariantChild",value:function(t){var e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),function(){return e.variantChildren.delete(t)}}},{key:"addValue",value:function(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}},{key:"removeValue",value:function(t){this.values.delete(t);var e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}},{key:"hasValue",value:function(t){return this.values.has(t)}},{key:"getValue",value:function(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];var n=this.values.get(t);return void 0===n&&void 0!==e&&(n=Rr(e,{owner:this}),this.addValue(t,n)),n}},{key:"readValue",value:function(t){var e;return void 0===this.latestValues[t]&&this.current?null!==(e=this.getBaseTargetFromProps(this.props,t))&&void 0!==e?e:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}},{key:"setBaseTarget",value:function(t,e){this.baseTarget[t]=e}},{key:"getBaseTarget",value:function(t){var e,n=this.props.initial,r="string"===typeof n||"object"===typeof n?null===(e=Lt(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==r)return r;var i=this.getBaseTargetFromProps(this.props,t);return void 0===i||O(i)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:i}},{key:"on",value:function(t,e){return this.events[t]||(this.events[t]=new Mr),this.events[t].add(e)}},{key:"notify",value:function(t){if(this.events[t]){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(e=this.events[t]).notify.apply(e,r)}}}]),t}(),Aa=["transition","transitionEnd"],Ca=function(t){(0,Gt.Z)(n,t);var e=(0,qt.Z)(n);function n(){return(0,Yt.Z)(this,n),e.apply(this,arguments)}return(0,Xt.Z)(n,[{key:"sortInstanceNodePosition",value:function(t,e){return 2&t.compareDocumentPosition(e)?1:-1}},{key:"getBaseTargetFromProps",value:function(t,e){return t.style?t.style[e]:void 0}},{key:"removeValueFromRenderState",value:function(t,e){var n=e.vars,r=e.style;delete n[t],delete r[t]}},{key:"makeTargetAnimatableFromInstance",value:function(t,e,n){var i=t.transition,o=t.transitionEnd,a=(0,gt.Z)(t,Aa),s=e.transformValues,u=function(t,e,n){var r={};for(var i in t){var o=Nr(i,e);if(void 0!==o)r[i]=o;else{var a=n.getValue(i);a&&(r[i]=a.get())}}return r}(a,i||{},this);
1if(s&&(o&&(o=s(o)),a&&(a=s(a)),u&&(u=s(u))),n){!function(t,e,n){var r,i,o,a=Object.keys(e).filter((function(e){return!t.hasValue(e)})),s=a.length;if(s)for(var u=0;u<s;u++){var l=a[u],c=e[l],h=null;Array.isArray(c)&&(h=c[0]),null===h&&(h=null!==(i=null!==(r=n[l])&&void 0!==r?r:t.readValue(l))&&void 0!==i?i:e[l]),void 0!==h&&null!==h&&("string"===typeof h&&(Ar(h)||Pr(h))?h=parseFloat(h):(o=h,!Or.find(jr(o))&&Tn.test(c)&&(h=kr(l,c))),t.addValue(l,Rr(h,{owner:t})),void 0===n[l]&&(n[l]=h),null!==h&&t.setBaseTarget(l,h))}}(this,a,u);var l=ya(this,a,u,o);o=l.transitionEnd,a=l.target}return(0,r.Z)({transition:i,transitionEnd:o},a)}}]),n}(Ea);var Va=function(t){(0,Gt.Z)(n,t);var e=(0,qt.Z)(n);function n(){return(0,Yt.Z)(this,n),e.apply(this,arguments)}return(0,Xt.Z)(n,[{key:"readValueFromInstance",value:function(t,e){if(B.has(e)){var n=xr(e);return n&&n.default||0}var r,i=(r=t,window.getComputedStyle(r)),o=(N(e)?i.getPropertyValue(e):i[e])||0;return"string"===typeof o?o.trim():o}},{key:"measureInstanceViewportBox",value:function(t,e){return Ni(t,e.transformPagePoint)}},{key:"build",value:function(t,e,n,r){lt(t,e,n,r.transformTemplate)}},{key:"scrapeMotionValuesFromProps",value:function(t,e){return Mt(t,e)}},{key:"handleChildMotionValue",value:function(){var t=this;this.childSubscription&&(this.childSubscription(),delete this.childSubscription);var e=this.props.children;O(e)&&(this.childSubscription=e.on("change",(function(e){t.current&&(t.current.textContent="".concat(e))})))}},{key:"renderInstance",value:function(t,e,n,r){At(t,e,n,r)}}]),n}(Ca),Ma=n(11752),Da=n(61120),La=function(t){(0,Gt.Z)(n,t);var e=(0,qt.Z)(n);function n(){var t;return(0,Yt.Z)(this,n),(t=e.apply(this,arguments)).isSVGTag=!1,t}return(0,Xt.Z)(n,[{key:"getBaseTargetFromProps",value:function(t,e){return t[e]}},{key:"readValueFromInstance",value:function(t,e){if(B.has(e)){var n=xr(e);return n&&n.default||0}return e=Ct.has(e)?e:c(e),t.getAttribute(e)}},{key:"measureInstanceViewportBox",value:function(){return Ti()}},{key:"scrapeMotionValuesFromProps",value:function(t,e){return Dt(t,e)}},{key:"build",value:function(t,e,n,r){bt(t,e,n,this.isSVGTag,r.transformTemplate)}},{key:"renderInstance",value:function(t,e,n,r){Vt(t,e,0,r)}},{key:"mount",value:function(t){this.isSVGTag=St(t.tagName),(0,Ma.Z)((0,Da.Z)(n.prototype),"mount",this).call(this,t)}}]),n}(Ca),Ra=function(t,e){return L(t)?new La(e,{enableHardwareAcceleration:!1}):new Va(e,{enableHardwareAcceleration:!0})},ja={layout:{ProjectionNode:ea,MeasureLayout:eo}},Ba=(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},ni),be),na),ja),Fa=M((function(t,e){return function(t,e,n,i){var o=e.forwardMotionProps,a=void 0!==o&&o,s=L(t)?Ht:zt;return(0,r.Z)((0,r.Z)({},s),{},{preloadedFeatures:n,useRender:Et(a),createVisualElement:i,Component:t})}(t,e,Ba,Ra)}))},95956:function(t,e,n){n.d(e,{K:function(){return i},k:function(){return o}});var r=n(83200),i=r.Z,o=r.Z},26219:function(t,e,n){n.d(e,{j:function(){return r}});var r="undefined"!==typeof document},83200:function(t,e,n){n.d(e,{Z:function(){return r}});var r=function(t){return t}},29829:function(t,e,n){n.d(e,{h:function(){return i}});var r=n(72791);function i(t){var e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}},92199:function(t,e,n){n.d(e,{L:function(){return i}});var r=n(72791),i=n(26219).j?r.useLayoutEffect:r.useEffect}}]); 2//# sourceMappingURL=8485.68a51e97.chunk.js.map
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.