!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="aba2e254-3775-49c3-9b9a-ba1a7eea98cb",e._sentryDebugIdIdentifier="sentry-dbid-aba2e254-3775-49c3-9b9a-ba1a7eea98cb")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[812],{84709:function(e,t,n){let r;n.d(t,{Af:function(){return e0},H7:function(){return rk},M_:function(){return eQ},X:function(){return e1},m:function(){return eY}});var i,a,s,o,l=n(27983),u=n(52322);function c(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var h=(0,l.vd)({"../../../node_modules/.pnpm/@emotion+memoize@0.7.4/node_modules/@emotion/memoize/dist/memoize.esm.js"(){a=c}}),d={};(0,l.r2)(d,{default:()=>o});var p=(0,l.vd)({"../../../node_modules/.pnpm/@emotion+is-prop-valid@0.8.8/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.esm.js"(){h(),s=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o=a(function(e){return s.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)})}}),f=(0,u.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),m=(0,u.createContext)({}),g=(0,u.createContext)(null),v="undefined"!=typeof document,y=v?u.useLayoutEffect:u.useEffect,b=(0,u.createContext)({strict:!1}),w=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),x="data-"+w("framerAppearId");function A(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function k(e){return"string"==typeof e||Array.isArray(e)}function C(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}var P=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],V=["initial",...P];function S(e){return C(e.animate)||V.some(t=>k(e[t]))}function M(e){return!!(S(e)||e.variants)}function E(e){return Array.isArray(e)?e.join(" "):e}var T={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"]},F={};for(let e in T)F[e]={isEnabled:t=>T[e].some(e=>!!t[e])};function R(e){for(let t in e)F[t]={...F[t],...e[t]}}var O=(0,u.createContext)({}),I=(0,u.createContext)({}),L=Symbol.for("motionComponentSymbol"),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 B(e){if("string"!=typeof e||e.includes("-"));else if(D.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}var j={},N=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],z=new Set(N);function H(e,t){let{layout:n,layoutId:r}=t;return z.has(e)||e.startsWith("origin")||(n||void 0!==r)&&(!!j[e]||"opacity"===e)}var W=e=>!!(e&&e.getVelocity),U={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},X=N.length,q=e=>t=>"string"==typeof t&&t.startsWith(e),Y=q("--"),_=q("var(--"),Z=(e,t)=>t&&"number"==typeof e?t.transform(e):e,$=(e,t,n)=>Math.min(Math.max(n,e),t),K={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},G={...K,transform:e=>$(0,1,e)},J={...K,default:1},Q=e=>Math.round(1e5*e)/1e5,ee=/(-)?([\d]*\.?[\d])+/g,et=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,en=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function er(e){return"string"==typeof e}var ei=e=>({test:t=>er(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>"".concat(t).concat(e)}),ea=ei("deg"),es=ei("%"),eo=ei("px"),el=ei("vh"),eu=ei("vw"),ec={...es,parse:e=>es.parse(e)/100,transform:e=>es.transform(100*e)},eh={...K,transform:Math.round},ed={borderWidth:eo,borderTopWidth:eo,borderRightWidth:eo,borderBottomWidth:eo,borderLeftWidth:eo,borderRadius:eo,radius:eo,borderTopLeftRadius:eo,borderTopRightRadius:eo,borderBottomRightRadius:eo,borderBottomLeftRadius:eo,width:eo,maxWidth:eo,height:eo,maxHeight:eo,size:eo,top:eo,right:eo,bottom:eo,left:eo,padding:eo,paddingTop:eo,paddingRight:eo,paddingBottom:eo,paddingLeft:eo,margin:eo,marginTop:eo,marginRight:eo,marginBottom:eo,marginLeft:eo,rotate:ea,rotateX:ea,rotateY:ea,rotateZ:ea,scale:J,scaleX:J,scaleY:J,scaleZ:J,skew:ea,skewX:ea,skewY:ea,distance:eo,translateX:eo,translateY:eo,translateZ:eo,x:eo,y:eo,z:eo,perspective:eo,transformPerspective:eo,opacity:G,originX:ec,originY:ec,originZ:eo,zIndex:eh,fillOpacity:G,strokeOpacity:G,numOctaves:eh};function ep(e,t,n,r){let{style:i,vars:a,transform:s,transformOrigin:o}=e,l=!1,u=!1,c=!0;for(let e in t){let n=t[e];if(Y(e)){a[e]=n;continue}let r=ed[e],h=Z(n,r);if(z.has(e)){if(l=!0,s[e]=h,!c)continue;n!==(r.default||0)&&(c=!1)}else e.startsWith("origin")?(u=!0,o[e]=h):i[e]=h}if(!t.transform&&(l||r?i.transform=function(e,t,n,r){let{enableHardwareAcceleration:i=!0,allowTransformNone:a=!0}=t,s="";for(let t=0;t({style:{},transform:{},transformOrigin:{},vars:{}});function em(e,t,n){for(let r in t)W(t[r])||H(r,n)||(e[r]=t[r])}var eg=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ev(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||eg.has(e)}var ey=e=>!ev(e);function eb(e){e&&(ey=t=>t.startsWith("on")?!ev(t):e(t))}try{eb((p(),(0,l.lS)(d)).default)}catch(e){}function ew(e,t,n){return"string"==typeof e?e:eo.transform(t+n*e)}var ex={offset:"stroke-dashoffset",array:"stroke-dasharray"},eA={offset:"strokeDashoffset",array:"strokeDasharray"};function ek(e,t,n,r,i){let{attrX:a,attrY:s,attrScale:o,originX:l,originY:u,pathLength:c,pathSpacing:h=1,pathOffset:d=0,...p}=t;if(ep(e,p,n,i),r){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:f,style:m,dimensions:g}=e;f.transform&&(g&&(m.transform=f.transform),delete f.transform),g&&(void 0!==l||void 0!==u||m.transform)&&(m.transformOrigin=function(e,t,n){let r=ew(t,e.x,e.width),i=ew(n,e.y,e.height);return"".concat(r," ").concat(i)}(g,void 0!==l?l:.5,void 0!==u?u:.5)),void 0!==a&&(f.x=a),void 0!==s&&(f.y=s),void 0!==o&&(f.scale=o),void 0!==c&&function(e,t){let 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];e.pathLength=1;let a=i?ex:eA;e[a.offset]=eo.transform(-r);let s=eo.transform(t),o=eo.transform(n);e[a.array]="".concat(s," ").concat(o)}(f,c,h,d,!1)}var eC=()=>({...ef(),attrs:{}}),eP=e=>"string"==typeof e&&"svg"===e.toLowerCase();function eV(e,t,n,r){let{style:i,vars:a}=t;for(let t in Object.assign(e.style,i,r&&r.getProjectionStyles(n)),a)e.style.setProperty(t,a[t])}var eS=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 eM(e,t,n,r){for(let n in eV(e,t,void 0,r),t.attrs)e.setAttribute(eS.has(n)?n:w(n),t.attrs[n])}function eE(e,t){let{style:n}=e,r={};for(let i in n)(W(n[i])||t.style&&W(t.style[i])||H(i,e))&&(r[i]=n[i]);return r}function eT(e,t){let n=eE(e,t);for(let r in e)(W(e[r])||W(t[r]))&&(n[-1!==N.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}function eF(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),t}function eR(e){let t=(0,u.useRef)(null);return null===t.current&&(t.current=e()),t.current}var eO=e=>Array.isArray(e),eI=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),eL=e=>eO(e)?e[e.length-1]||0:e,eD=e=>(t,n)=>{let r=(0,u.useContext)(m),i=(0,u.useContext)(g),a=()=>(function(e,t,n,r){let{scrapeMotionValuesFromProps:i,createRenderState:a,onMount:s}=e,o={latestValues:function(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=function(e){let t=W(e)?e.get():e;return eI(t)?t.toValue():t}(a[e]);let{initial:s,animate:o}=e,l=S(e),u=M(e);t&&u&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===o&&(o=t.animate));let c=!!n&&!1===n.initial,h=(c=c||!1===s)?o:s;return h&&"boolean"!=typeof h&&!C(h)&&(Array.isArray(h)?h:[h]).forEach(t=>{let n=eF(e,t);if(!n)return;let{transitionEnd:r,transition:a,...s}=n;for(let e in s){let t=s[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in r)i[e]=r[e]}),i}(t,n,r,i),renderState:a()};return s&&(o.mount=e=>s(t,e,o)),o})(e,t,r,i);return n?a():eR(a)},eB=e=>e,ej=class{add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){let t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}constructor(){this.order=[],this.scheduled=new Set}},eN=["prepare","read","update","preRender","render","postRender"],{schedule:ez,cancel:eH,state:eW,steps:eU}=function(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=eN.reduce((e,t)=>(e[t]=function(e){let t=new ej,n=new ej,r=0,i=!1,a=!1,s=new WeakSet,o={schedule:function(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=o&&i,u=l?t:n;return a&&s.add(e),u.add(e)&&l&&i&&(r=t.order.length),e},cancel:e=>{n.remove(e),s.delete(e)},process:l=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length)for(let n=0;nn=!0),e),{}),s=e=>a[e].process(i),o=()=>{let 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,eN.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(o))},l=()=>{n=!0,r=!0,i.isProcessing||e(o)};return{schedule:eN.reduce((e,t)=>{let r=a[t];return e[t]=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n||l(),r.schedule(e,t,i)},e},{}),cancel:e=>eN.forEach(t=>a[t].cancel(e)),state:i,steps:a}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:eB,!0),eX={useVisualState:eD({scrapeMotionValuesFromProps:eT,createRenderState:eC,onMount:(e,t,n)=>{let{renderState:r,latestValues:i}=n;ez.read(()=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}}),ez.render(()=>{ek(r,i,{enableHardwareAcceleration:!1},eP(t.tagName),e.transformTemplate),eM(t,r)})}})},eq={useVisualState:eD({scrapeMotionValuesFromProps:eE,createRenderState:ef})},eY=function(e){function t(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e){let{preloadedFeatures:t,createVisualElement:n,useRender:r,useVisualState:i,Component:a}=e;t&&R(t);let s=(0,u.forwardRef)(function(e,s){var o;let l;let c={...(0,u.useContext)(f),...e,layoutId:function(e){let{layoutId:t}=e,n=(0,u.useContext)(O).id;return n&&void 0!==t?n+"-"+t:t}(e)},{isStatic:h}=c,d=function(e){let{initial:t,animate:n}=function(e,t){if(S(e)){let{initial:t,animate:n}=e;return{initial:!1===t||k(t)?t:void 0,animate:k(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,u.useContext)(m));return(0,u.useMemo)(()=>({initial:t,animate:n}),[E(t),E(n)])}(e),p=i(e,h);if(!h&&v){d.visualElement=function(e,t,n,r){let{visualElement:i}=(0,u.useContext)(m),a=(0,u.useContext)(b),s=(0,u.useContext)(g),o=(0,u.useContext)(f).reducedMotion,l=(0,u.useRef)();r=r||a.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:o}));let c=l.current;(0,u.useInsertionEffect)(()=>{c&&c.update(n,s)});let h=(0,u.useRef)(!!(n[x]&&!window.HandoffComplete));return y(()=>{c&&(c.render(),h.current&&c.animationState&&c.animationState.animateChanges())}),(0,u.useEffect)(()=>{c&&(c.updateFeatures(),!h.current&&c.animationState&&c.animationState.animateChanges(),h.current&&(h.current=!1,window.HandoffComplete=!0))}),c}(a,p,c,n);let e=(0,u.useContext)(I),r=(0,u.useContext)(b).strict;d.visualElement&&(l=d.visualElement.loadFeatures(c,r,t,e))}return u.createElement(m.Provider,{value:d},l&&d.visualElement?u.createElement(l,{visualElement:d.visualElement,...c}):null,r(a,e,(o=d.visualElement,(0,u.useCallback)(e=>{e&&p.mount&&p.mount(e),o&&(e?o.mount(e):o.unmount()),s&&("function"==typeof s?s(e):A(s)&&(s.current=e))},[o])),p,h,d.visualElement))});return s[L]=a,s}(e(t,n))}if("undefined"==typeof Proxy)return t;let n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}(function(e,t,n,r){let{forwardMotionProps:i=!1}=t;return{...B(e)?eX:eq,preloadedFeatures:n,useRender:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(t,n,r,i,a)=>{let{latestValues:s}=i,o=(B(t)?function(e,t,n,r){let i=(0,u.useMemo)(()=>{let n=eC();return ek(n,t,{enableHardwareAcceleration:!1},eP(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};em(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t,n){let r={},i=function(e,t,n){let r=e.style||{},i={};return em(i,r,e),Object.assign(i,function(e,t,n){let{transformTemplate:r}=e;return(0,u.useMemo)(()=>{let e=ef();return ep(e,t,{enableHardwareAcceleration:!n},r),Object.assign({},e.vars,e.style)},[t])}(e,t,n)),e.transformValues?e.transformValues(i):i}(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r})(n,s,a,t),l={...function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(ey(i)||!0===n&&ev(i)||!t&&!ev(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),...o,ref:r},{children:c}=n,h=(0,u.useMemo)(()=>W(c)?c.get():c,[c]);return(0,u.createElement)(t,{...l,children:h})}}(i),createVisualElement:r,Component:e}});function e_(){let e=(0,u.useRef)(!1);return y(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var eZ=class extends u.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}};function e$(e){let{children:t,isPresent:n}=e,r=(0,u.useId)(),i=(0,u.useRef)(null),a=(0,u.useRef)({width:0,height:0,top:0,left:0});return(0,u.useInsertionEffect)(()=>{let{width:e,height:t,top:s,left:o}=a.current;if(n||!i.current||!e||!t)return;i.current.dataset.motionPopId=r;let 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(t,"px !important;\n top: ").concat(s,"px !important;\n left: ").concat(o,"px !important;\n }\n ")),()=>{document.head.removeChild(l)}},[n]),u.createElement(eZ,{isPresent:n,childRef:i,sizeRef:a},u.cloneElement(t,{ref:i}))}var eK=e=>{let{children:t,initial:n,isPresent:r,onExitComplete:i,custom:a,presenceAffectsLayout:s,mode:o}=e,l=eR(eG),c=(0,u.useId)(),h=(0,u.useMemo)(()=>({id:c,initial:n,isPresent:r,custom:a,onExitComplete:e=>{for(let t of(l.set(e,!0),l.values()))if(!t)return;i&&i()},register:e=>(l.set(e,!1),()=>l.delete(e))}),s?void 0:[r]);return(0,u.useMemo)(()=>{l.forEach((e,t)=>l.set(t,!1))},[r]),u.useEffect(()=>{r||l.size||!i||i()},[r]),"popLayout"===o&&(t=u.createElement(e$,{isPresent:r},t)),u.createElement(g.Provider,{value:h},t)};function eG(){return new Map}var eJ=e=>e.key||"",eQ=e=>{var t;let{children:n,custom:r,initial:i=!0,onExitComplete:a,exitBeforeEnter:s,presenceAffectsLayout:o=!0,mode:l="sync"}=e;eB(!s,"Replace exitBeforeEnter with mode='wait'");let c=(0,u.useContext)(O).forceRender||function(){let e=e_(),[t,n]=(0,u.useState)(0),r=(0,u.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,u.useCallback)(()=>ez.postRender(r),[r]),t]}()[0],h=e_(),d=function(e){let t=[];return u.Children.forEach(e,e=>{(0,u.isValidElement)(e)&&t.push(e)}),t}(n),p=d,f=(0,u.useRef)(new Map).current,m=(0,u.useRef)(p),g=(0,u.useRef)(new Map).current,v=(0,u.useRef)(!0);if(y(()=>{v.current=!1,function(e,t){e.forEach(e=>{let n=eJ(e);t.set(n,e)})}(d,g),m.current=p}),t=()=>{v.current=!0,g.clear(),f.clear()},(0,u.useEffect)(()=>()=>t(),[]),v.current)return u.createElement(u.Fragment,null,p.map(e=>u.createElement(eK,{key:eJ(e),isPresent:!0,initial:!!i&&void 0,presenceAffectsLayout:o,mode:l},e)));p=[...p];let b=m.current.map(eJ),w=d.map(eJ),x=b.length;for(let e=0;e{if(-1!==w.indexOf(t))return;let n=g.get(t);if(!n)return;let i=b.indexOf(t),s=e;s||(s=u.createElement(eK,{key:eJ(n),isPresent:!1,onExitComplete:()=>{f.delete(t);let e=Array.from(g.keys()).filter(e=>!w.includes(e));if(e.forEach(e=>g.delete(e)),m.current=d.filter(n=>{let r=eJ(n);return r===t||e.includes(r)}),!f.size){if(!1===h.current)return;c(),a&&a()}},custom:r,presenceAffectsLayout:o,mode:l},n),f.set(t,s)),p.splice(i,0,s)}),p=p.map(e=>{let t=e.key;return f.has(t)?e:u.createElement(eK,{key:eJ(e),isPresent:!0,presenceAffectsLayout:o,mode:l},e)}),u.createElement(u.Fragment,null,f.size?p:p.map(e=>(0,u.cloneElement)(e)))};function e0(e){let{children:t,isValidProp:n,...r}=e;n&&eb(n),(r={...(0,u.useContext)(f),...r}).isStatic=eR(()=>r.isStatic);let i=(0,u.useMemo)(()=>r,[JSON.stringify(r.transition),r.transformPagePoint,r.reducedMotion]);return u.createElement(f.Provider,{value:i},t)}function e1(e){let{children:t,features:n,strict:r=!1}=e,[,i]=(0,u.useState)(!e2(n)),a=(0,u.useRef)(void 0);if(!e2(n)){let{renderer:e,...t}=n;a.current=e,R(t)}return(0,u.useEffect)(()=>{e2(n)&&n().then(e=>{let{renderer:t,...n}=e;R(n),a.current=t,i(!0)})},[]),u.createElement(b.Provider,{value:{renderer:a.current,strict:r}},t)}function e2(e){return"function"==typeof e}function e3(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;rt[n]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}var e4=e=>1e3*e,e9=e=>e/1e3,e6={current:!1},e8=e=>Array.isArray(e)&&"number"==typeof e[0],e7=e=>{let[t,n,r,i]=e;return"cubic-bezier(".concat(t,", ").concat(n,", ").concat(r,", ").concat(i,")")},te={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:e7([0,.65,.55,1]),circOut:e7([.55,0,1,.45]),backIn:e7([.31,.01,.66,-.59]),backOut:e7([.33,1.53,.69,.99])},tt=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function tn(e,t,n,r){if(e===t&&n===r)return eB;let i=t=>(function(e,t,n,r,i){let a,s;let o=0;do(a=tt(s=t+(n-t)/2,r,i)-e)>0?n=s:t=s;while(Math.abs(a)>1e-7&&++o<12);return s})(t,0,1,e,n);return e=>0===e||1===e?e:tt(i(e),t,r)}var tr=tn(.42,0,1,1),ti=tn(0,0,.58,1),ta=tn(.42,0,.58,1),ts=e=>Array.isArray(e)&&"number"!=typeof e[0],to=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tl=e=>t=>1-e(1-t),tu=e=>1-Math.sin(Math.acos(e)),tc=tl(tu),th=to(tu),td=tn(.33,1.53,.69,.99),tp=tl(td),tf=to(tp),tm={linear:eB,easeIn:tr,easeInOut:ta,easeOut:ti,circIn:tu,circInOut:th,circOut:tc,backIn:tp,backInOut:tf,backOut:td,anticipate:e=>(e*=2)<1?.5*tp(e):.5*(2-Math.pow(2,-10*(e-1)))},tg=e=>{if(Array.isArray(e)){eB(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,i]=e;return tn(t,n,r,i)}return"string"==typeof e?(eB(void 0!==tm[e],"Invalid easing type '".concat(e,"'")),tm[e]):e},tv=(e,t)=>n=>!!(er(n)&&en.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),ty=(e,t,n)=>r=>{if(!er(r))return r;let[i,a,s,o]=r.match(ee);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:void 0!==o?parseFloat(o):1}},tb=e=>$(0,255,e),tw={...K,transform:e=>Math.round(tb(e))},tx={test:tv("rgb","red"),parse:ty("red","green","blue"),transform:e=>{let{red:t,green:n,blue:r,alpha:i=1}=e;return"rgba("+tw.transform(t)+", "+tw.transform(n)+", "+tw.transform(r)+", "+Q(G.transform(i))+")"}},tA={test:tv("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:tx.transform},tk={test:tv("hsl","hue"),parse:ty("hue","saturation","lightness"),transform:e=>{let{hue:t,saturation:n,lightness:r,alpha:i=1}=e;return"hsla("+Math.round(t)+", "+es.transform(Q(n))+", "+es.transform(Q(r))+", "+Q(G.transform(i))+")"}},tC={test:e=>tx.test(e)||tA.test(e)||tk.test(e),parse:e=>tx.test(e)?tx.parse(e):tk.test(e)?tk.parse(e):tA.parse(e),transform:e=>er(e)?e:e.hasOwnProperty("red")?tx.transform(e):tk.transform(e)},tP=(e,t,n)=>-n*e+n*t+e;function tV(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var tS=(e,t,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},tM=[tA,tx,tk],tE=e=>tM.find(t=>t.test(e));function tT(e){let t=tE(e);eB(!!t,"'".concat(e,"' is not an animatable color. Use the equivalent color code instead."));let n=t.parse(e);return t===tk&&(n=function(e){let{hue:t,saturation:n,lightness:r,alpha:i}=e;t/=360,r/=100;let a=0,s=0,o=0;if(n/=100){let e=r<.5?r*(1+n):r+n-r*n,i=2*r-e;a=tV(i,e,t+1/3),s=tV(i,e,t),o=tV(i,e,t-1/3)}else a=s=o=r;return{red:Math.round(255*a),green:Math.round(255*s),blue:Math.round(255*o),alpha:i}}(n)),n}var tF=(e,t)=>{let n=tT(e),r=tT(t),i={...n};return e=>(i.red=tS(n.red,r.red,e),i.green=tS(n.green,r.green,e),i.blue=tS(n.blue,r.blue,e),i.alpha=tP(n.alpha,r.alpha,e),tx.transform(i))},tR=(e,t)=>n=>t(e(n)),tO=function(){for(var e=arguments.length,t=Array(e),n=0;n{let t=i;for(let i=0;i"number"==typeof e?0:e,tW={test:function(e){var t,n;return isNaN(e)&&er(e)&&((null===(t=e.match(ee))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(et))||void 0===n?void 0:n.length)||0)>0},parse:tN,createTransformer:tz,getAnimatableNone:function(e){let t=tN(e);return tz(e)(t.map(tH))}},tU=(e,t)=>n=>"".concat(n>0?t:e);function tX(e,t){return"number"==typeof e?n=>tP(e,t,n):tC.test(e)?tF(e,t):e.startsWith("var(")?tU(e,t):t_(e,t)}var tq=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>tX(e,t[n]));return e=>{for(let t=0;t{let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=tX(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}},t_=(e,t)=>{let n=tW.createTransformer(t),r=tj(e),i=tj(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?tO(tq(r.values,i.values),n):(eB(!0,"Complex values '".concat(e,"' and '").concat(t,"' 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.")),tU(e,t))},tZ=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},t$=(e,t)=>n=>tP(e,t,n);function tK(e,t){let{clamp:n=!0,ease:r,mixer:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=e.length;if(eB(a===t.length,"Both input and output ranges must be the same length"),1===a)return()=>t[0];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,n){let r=[],i=n||function(e){if("number"==typeof e);else if("string"==typeof e)return tC.test(e)?tF:t_;else if(Array.isArray(e))return tq;else if("object"==typeof e)return tY;return t$}(e[0]),a=e.length-1;for(let n=0;n{let n=0;if(o>1)for(;nl($(e[0],e[a-1],t)):l}function tG(e){let{duration:t=300,keyframes:n,times:r,ease:i="easeInOut"}=e,a=ts(i)?i.map(tg):tg(i),s={done:!1,value:n[0]},o=tK((r&&r.length===n.length?r:function(e){let t=[0];return function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=tZ(0,t,r);e.push(tP(n,1,i))}}(t,e.length-1),t}(n)).map(e=>e*t),n,{ease:Array.isArray(a)?a:n.map(()=>a||ta).splice(0,n.length-1)});return{calculatedDuration:t,next:e=>(s.value=o(e),s.done=e>=t,s)}}function tJ(e,t,n){var r,i;let a=Math.max(t-5,0);return r=n-e(a),(i=t-a)?1e3/i*r:0}function tQ(e,t){return e*Math.sqrt(1-t*t)}var t0=["duration","bounce"],t1=["stiffness","damping","mass"];function t2(e,t){return t.some(t=>void 0!==e[t])}function t3(e){let t,{keyframes:n,restDelta:r,restSpeed:i,...a}=e,s=n[0],o=n[n.length-1],l={done:!1,value:s},{stiffness:u,damping:c,mass:h,duration:d,velocity:p,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!t2(e,t1)&&t2(e,t0)){let n=function(e){let t,n,{duration:r=800,bounce:i=.25,velocity:a=0,mass:s=1}=e;eB(r<=e4(10),"Spring duration must be 10 seconds or less");let o=1-i;o=$(.05,1,o),r=$(.01,10,e9(r)),o<1?(t=e=>{let t=e*o,n=t*r;return .001-(t-a)/tQ(e,o)*Math.exp(-n)},n=e=>{let n=e*o*r,i=Math.pow(o,2)*Math.pow(e,2)*r,s=tQ(Math.pow(e,2),o);return(n*a+a-i)*Math.exp(-n)*(-t(e)+.001>0?-1:1)/s}):(t=e=>-.001+Math.exp(-e*r)*((e-a)*r+1),n=e=>r*r*(a-e)*Math.exp(-e*r));let l=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(t,n,5/r);if(r=e4(r),isNaN(l))return{stiffness:100,damping:10,duration:r};{let e=Math.pow(l,2)*s;return{stiffness:e,damping:2*o*Math.sqrt(s*e),duration:r}}}(e);(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...a,velocity:-e9(a.velocity||0)}),m=p||0,g=c/(2*Math.sqrt(u*h)),v=o-s,y=e9(Math.sqrt(u/h)),b=5>Math.abs(v);if(i||(i=b?.01:2),r||(r=b?.005:.5),g<1){let e=tQ(y,g);t=t=>o-Math.exp(-g*y*t)*((m+g*y*v)/e*Math.sin(e*t)+v*Math.cos(e*t))}else if(1===g)t=e=>o-Math.exp(-y*e)*(v+(m+y*v)*e);else{let e=y*Math.sqrt(g*g-1);t=t=>{let n=Math.exp(-g*y*t),r=Math.min(e*t,300);return o-n*((m+g*y*v)*Math.sinh(r)+e*v*Math.cosh(r))/e}}return{calculatedDuration:f&&d||null,next:e=>{let n=t(e);if(f)l.done=e>=d;else{let a=m;0!==e&&(a=g<1?tJ(t,e,n):0);let s=Math.abs(a)<=i,u=Math.abs(o-n)<=r;l.done=s&&u}return l.value=l.done?o:n,l}}}function t5(e){let t,n,{keyframes:r,velocity:i=0,power:a=.8,timeConstant:s=325,bounceDamping:o=10,bounceStiffness:l=500,modifyTarget:u,min:c,max:h,restDelta:d=.5,restSpeed:p}=e,f=r[0],m={done:!1,value:f},g=e=>void 0!==c&&eh,v=e=>void 0===c?h:void 0===h?c:Math.abs(c-e)-y*Math.exp(-e/s),A=e=>w+x(e),k=e=>{let t=x(e),n=A(e);m.done=Math.abs(t)<=d,m.value=m.done?w:n},C=e=>{g(m.value)&&(t=e,n=t3({keyframes:[m.value,v(m.value)],velocity:tJ(A,e,m.value),damping:o,stiffness:l,restDelta:d,restSpeed:p}))};return C(0),{calculatedDuration:null,next:e=>{let r=!1;return(n||void 0!==t||(r=!0,k(e),C(e)),void 0!==t&&e>t)?n.next(e-t):(r||k(e),m)}}}var t4=e=>{let t=t=>{let{timestamp:n}=t;return e(n)};return{start:()=>ez.update(t,!0),stop:()=>eH(t),now:()=>eW.isProcessing?eW.timestamp:performance.now()}};function t9(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}var t6={decay:t5,inertia:t5,tween:tG,keyframes:tG,spring:t3};function t8(e){let t,n,r,i,a,{autoplay:s=!0,delay:o=0,driver:l=t4,keyframes:u,type:c="keyframes",repeat:h=0,repeatDelay:d=0,repeatType:p="loop",onPlay:f,onStop:m,onComplete:g,onUpdate:v,...y}=e,b=1,w=!1,x=()=>{n=new Promise(e=>{t=e})};x();let A=t6[c]||tG;A!==tG&&"number"!=typeof u[0]&&(i=tK([0,100],u,{clamp:!1}),u=[0,100]);let k=A({...y,keyframes:u});"mirror"===p&&(a=A({...y,keyframes:[...u].reverse(),velocity:-(y.velocity||0)}));let C="idle",P=null,V=null,S=null;null===k.calculatedDuration&&h&&(k.calculatedDuration=t9(k));let{calculatedDuration:M}=k,E=1/0,T=1/0;null!==M&&(T=(E=M+d)*(h+1)-d);let F=0,R=e=>{if(null===V)return;b>0&&(V=Math.min(V,e)),b<0&&(V=Math.min(e-T/b,V));let t=(F=null!==P?P:Math.round(e-V)*b)-o*(b>=0?1:-1),n=b>=0?t<0:t>T;F=Math.max(t,0),"finished"===C&&null===P&&(F=T);let r=F,s=k;if(h){let e=Math.min(F,T)/E,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,h+1))%2&&("reverse"===p?(n=1-n,d&&(n-=d/E)):"mirror"===p&&(s=a)),r=$(0,1,n)*E}let l=n?{done:!1,value:u[0]}:s.next(r);i&&(l.value=i(l.value));let{done:c}=l;n||null===M||(c=b>=0?F>=T:F<=0);let f=null===P&&("finished"===C||"running"===C&&c);return v&&v(l.value),f&&L(),l},O=()=>{r&&r.stop(),r=void 0},I=()=>{C="idle",O(),t(),x(),V=S=null},L=()=>{C="finished",g&&g(),O(),t()},D=()=>{if(w)return;r||(r=l(R));let e=r.now();f&&f(),null!==P?V=e-P:V&&"finished"!==C||(V=e),"finished"===C&&x(),S=V,P=null,C="running",r.start()};s&&D();let B={then:(e,t)=>n.then(e,t),get time(){return e9(F)},set time(newTime){F=newTime=e4(newTime),null===P&&r&&0!==b?V=r.now()-newTime/b:P=newTime},get duration(){return e9(null===k.calculatedDuration?t9(k):k.calculatedDuration)},get speed(){return b},set speed(newSpeed){if(newSpeed===b||!r)return;b=newSpeed,B.time=e9(F)},get state(){return C},play:D,pause:()=>{C="paused",P=F},stop:()=>{w=!0,"idle"!==C&&(C="idle",m&&m(),I())},cancel:()=>{null!==S&&R(S),I()},complete:()=>{C="finished"},sample:e=>(V=0,R(e))};return B}var t7=(i=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===r&&(r=i()),r)),ne=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),nt=(e,t)=>"spring"===t.type||"backgroundColor"===e||!function e(t){return!!(!t||"string"==typeof t&&te[t]||e8(t)||Array.isArray(t)&&t.every(e))}(t.ease),nn={type:"spring",stiffness:500,damping:25,restSpeed:10},nr=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),ni={type:"keyframes",duration:.8},na={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ns=(e,t)=>{let{keyframes:n}=t;return n.length>2?ni:z.has(e)?e.startsWith("scale")?nr(n[1]):nn:na},no=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tW.test(t)||"0"===t)&&!t.startsWith("url(")),nl=new Set(["brightness","contrast","saturate","opacity"]);function nu(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(ee)||[];if(!r)return e;let i=n.replace(r,""),a=nl.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}var nc=/([a-z-]*)\(.*?\)/g,nh={...tW,getAnimatableNone:e=>{let t=e.match(nc);return t?t.map(nu).join(" "):e}},nd={...ed,color:tC,backgroundColor:tC,outlineColor:tC,fill:tC,stroke:tC,borderColor:tC,borderTopColor:tC,borderRightColor:tC,borderBottomColor:tC,borderLeftColor:tC,filter:nh,WebkitFilter:nh},np=e=>nd[e];function nf(e,t){let n=np(e);return n!==nh&&(n=tW),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var nm=e=>/^0[^.\s]+$/.test(e);function ng(e,t){return e[t]||e.default||e}var nv={skipAnimations:!1},ny=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return i=>{let a=ng(r,e)||{},s=a.delay||r.delay||0,{elapsed:o=0}=r;o-=e4(s);let l=function(e,t,n,r){let i,a;let s=no(t,n);i=Array.isArray(n)?[...n]:[null,n];let o=void 0!==r.from?r.from:e.get(),l=[];for(let e=0;e{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{i(),a.onComplete&&a.onComplete()}};if(!function(e){let{when:t,delay:n,delayChildren:r,staggerChildren:i,staggerDirection:a,repeat:s,repeatType:o,repeatDelay:l,from:u,elapsed:c,...h}=e;return!!Object.keys(h).length}(a)&&(p={...p,...ns(e,p)}),p.duration&&(p.duration=e4(p.duration)),p.repeatDelay&&(p.repeatDelay=e4(p.repeatDelay)),!h||!d||e6.current||!1===a.type||nv.skipAnimations)return function(e){let{keyframes:t,delay:n,onUpdate:r,onComplete:i}=e,a=()=>(r&&r(t[t.length-1]),i&&i(),{time:0,speed:1,duration:0,play:eB,pause:eB,stop:eB,then:e=>(e(),Promise.resolve()),cancel:eB,complete:eB});return n?t8({keyframes:[0,1],duration:0,delay:n,onComplete:a}):a()}(e6.current?{...p,delay:0}:p);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){let n=function(e,t,n){let r,i,{onUpdate:a,onComplete:s,...o}=n;if(!(t7()&&ne.has(t)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let l=!1,u=!1,c=()=>{i=new Promise(e=>{r=e})};c();let{keyframes:h,duration:d=300,ease:p,times:f}=o;if(nt(t,o)){let e=t8({...o,repeat:0,delay:0}),t={done:!1,value:h[0]},n=[],r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;f=void 0,h=n,d=r-10,p="linear"}let m=function(e,t,n){let{delay:r=0,duration:i,repeat:a=0,repeatType:s="loop",ease:o,times:l}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u={[t]:n};l&&(u.offset=l);let c=function e(t){if(t)return e8(t)?e7(t):Array.isArray(t)?t.map(e):te[t]}(o);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:a+1,direction:"reverse"===s?"alternate":"normal"})}(e.owner.current,t,h,{...o,duration:d,ease:p,times:f}),g=()=>{u=!1,m.cancel()},v=()=>{u=!0,ez.update(g),r(),c()};return m.onfinish=()=>{u||(e.set(function(e,t){let{repeat:n,repeatType:r="loop"}=t,i=n&&"loop"!==r&&n%2==1?0:e.length-1;return e[i]}(h,o)),s&&s(),v())},{then:(e,t)=>i.then(e,t),attachTimeline:e=>(m.timeline=e,m.onfinish=null,eB),get time(){return e9(m.currentTime||0)},set time(newTime){m.currentTime=e4(newTime)},get speed(){return m.playbackRate},set speed(newSpeed){m.playbackRate=newSpeed},get duration(){return e9(d)},play:()=>{l||(m.play(),eH(g))},pause:()=>m.pause(),stop:()=>{if(l=!0,"idle"===m.playState)return;let{currentTime:t}=m;if(t){let n=t8({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}v()},complete:()=>{u||m.finish()},cancel:v}}(t,e,p);if(n)return n}return t8(p)}};function nb(e){return!!(W(e)&&e.add)}var nw=e=>/^\-?\d*\.?\d+$/.test(e),nx=class{add(e){var t;return -1===(t=this.subscriptions).indexOf(e)&&t.push(e),()=>(function(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)})(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i!isNaN(parseFloat(e)),nk={current:void 0},nC=class{onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new nx);let n=this.events[e].add(t);return"change"===e?()=>{n(),ez.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return nk.current&&nk.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?1e3/t*e:0):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}constructor(e,t={}){var n=this;this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];n.prev=n.current,n.current=e;let{delta:r,timestamp:i}=eW;n.lastUpdated!==i&&(n.timeDelta=r,n.lastUpdated=i,ez.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.events.change&&n.events.change.notify(n.current),n.events.velocityChange&&n.events.velocityChange.notify(n.getVelocity()),t&&n.events.renderRequest&&n.events.renderRequest.notify(n.current)},this.scheduleVelocityCheck=()=>ez.postRender(this.velocityCheck),this.velocityCheck=e=>{let{timestamp:t}=e;t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=nA(this.current),this.owner=t.owner}};function nP(e,t){return new nC(e,t)}var nV=e=>t=>t.test(e),nS=[K,eo,es,ea,eu,el,{test:e=>"auto"===e,parse:e=>e}],nM=e=>nS.find(nV(e)),nE=[...nS,tC,tW],nT=e=>nE.find(nV(e));function nF(e,t){let{delay:n=0,transitionOverride:r,type:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{transition:a=e.getDefaultTransition(),transitionEnd:s,...o}=e.makeTargetAnimatable(t),l=e.getValue("willChange");r&&(a=r);let u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(let t in o){let r=e.getValue(t),i=o[t];if(!r||void 0===i||c&&function(e,t){let{protectedKeys:n,needsAnimating:r}=e,i=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,i}(c,t))continue;let s={delay:n,elapsed:0,...ng(a||{},t)};if(window.HandoffAppearAnimations){let n=e.getProps()[x];if(n){let e=window.HandoffAppearAnimations(n,t,r,ez);null!==e&&(s.elapsed=e,s.isHandoff=!0)}}let h=!s.isHandoff&&!function(e,t){let n=e.get();if(!Array.isArray(t))return n!==t;for(let e=0;el.remove(t))),u.push(d)}return s&&Promise.all(u).then(()=>{s&&function(e,t){let n=e5(e,t),{transitionEnd:r={},transition:i={},...a}=n?e.makeTargetAnimatable(n,!1):{};for(let t in a={...a,...r}){let n=eL(a[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,nP(n))}}(e,s)}),u}function nR(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e5(e,t,n.custom),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(nF(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{delayChildren:a=0,staggerChildren:s,staggerDirection:o}=i;return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=arguments.length>5?arguments[5]:void 0,s=[],o=(e.variantChildren.size-1)*r,l=1===i?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e*r}:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return o-e*r};return Array.from(e.variantChildren).sort(nO).forEach((e,r)=>{e.notify("AnimationStart",t),s.push(nR(e,t,{...a,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,a+r,s,o,n)}:()=>Promise.resolve(),{when:o}=i;if(!o)return Promise.all([a(),s(n.delay)]);{let[e,t]="beforeChildren"===o?[a,s]:[s,a];return e().then(()=>t())}}function nO(e,t){return e.sortNodePosition(t)}var nI=[...P].reverse(),nL=P.length;function nD(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var nB=class{update(){}constructor(e){this.isMounted=!1,this.node=e}},nj=class extends nB{updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),C(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(t=>{let{animation:n,options:r}=t;return function(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>nR(e,t,r)));else if("string"==typeof t)n=nR(e,t,r);else{let i="function"==typeof t?e5(e,t,r.custom):t;n=Promise.all(nF(e,i,r))}return n.then(()=>e.notify("AnimationComplete",t))}(e,n,r)})),n={animate:nD(!0),whileInView:nD(),whileHover:nD(),whileTap:nD(),whileDrag:nD(),whileFocus:nD(),exit:nD()},r=!0,i=(t,n)=>{let r=e5(e,n);if(r){let{transition:e,transitionEnd:n,...i}=r;t={...t,...i,...n}}return t};function a(a,s){let o=e.getProps(),l=e.getVariantContext(!0)||{},u=[],c=new Set,h={},d=1/0;for(let t=0;td&&v),x=!1,A=Array.isArray(g)?g:[g],P=A.reduce(i,{});!1===y&&(P={});let{prevResolvedValues:V={}}=m,S={...V,...P},M=e=>{w=!0,c.has(e)&&(x=!0,c.delete(e)),m.needsAnimating[e]=!0};for(let e in S){let t=P[e],n=V[e];if(!h.hasOwnProperty(e))(eO(t)&&eO(n)?e3(t,n):t===n)?void 0!==t&&c.has(e)?M(e):m.protectedKeys[e]=!0:void 0!==t?M(e):c.add(e)}m.prevProp=g,m.prevResolvedValues=P,m.isActive&&(h={...h,...P}),r&&e.blockInitialAnimation&&(w=!1),w&&(!b||x)&&u.push(...A.map(e=>({animation:e,options:{type:f,...a}})))}if(c.size){let t={};c.forEach(n=>{let r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),u.push({animation:t})}let f=!!u.length;return r&&(!1===o.initial||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?t(u):Promise.resolve()}return{animateChanges:a,setActive:function(t,r,i){var s;if(n[t].isActive===r)return Promise.resolve();null===(s=e.variantChildren)||void 0===s||s.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;let o=a(i,t);for(let e in n)n[e].protectedKeys={};return o},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}(e))}},nN=0,nz=class extends nB{update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;let i=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&i.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}constructor(){super(...arguments),this.id=nN++}};function nH(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var nW=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function nU(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"page";return{point:{x:e[t+"X"],y:e[t+"Y"]}}}var nX=e=>t=>nW(t)&&e(t,nU(t));function nq(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}var nY=nq("dragHorizontal"),n_=nq("dragVertical");function nZ(){let e=function(e){let t=!1;if("y"===e)t=n_();else if("x"===e)t=nY();else{let e=nY(),n=n_();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}(!0);return!e||(e(),!1)}function n$(e,t){var n,r,i;let a="pointer"+(t?"enter":"leave"),s="onHover"+(t?"Start":"End");return n=e.current,r=(n,r)=>{if("touch"===n.pointerType||nZ())return;let i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[s]&&ez.update(()=>i[s](n,r))},i={passive:!e.getProps()[s]},nH(n,a,nX(r),i)}var nK=class extends nB{onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tO(nH(this.node.current,"focus",()=>this.onFocus()),nH(this.node.current,"blur",()=>this.onBlur()))}unmount(){}constructor(){super(...arguments),this.isActive=!1}},nG=(e,t)=>!!t&&(e===t||nG(e,t.parentElement));function nJ(e,t){if(!t)return;let n=new PointerEvent("pointer"+e);t(n,nU(n))}var nQ=class extends nB{startPress(e,t){this.isPressing=!0;let{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&ez.update(()=>n(e,t))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!nZ()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&ez.update(()=>n(e,t))}mount(){var e,t,n,r;let i=this.node.getProps(),a=(e=i.globalTapTarget?window:this.node.current,t="pointerdown",n=this.startPointerPress,r={passive:!(i.onTapStart||i.onPointerStart)},nH(e,t,nX(n),r)),s=nH(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=tO(a,s)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}constructor(){super(...arguments),this.removeStartListeners=eB,this.removeEndListeners=eB,this.removeAccessibleListeners=eB,this.startPointerPress=(e,t)=>{var n,r,i,a,s,o,l,u;if(this.isPressing)return;this.removeEndListeners();let c=this.node.getProps(),h=(n=window,r="pointerup",i=(e,t)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:r,globalTapTarget:i}=this.node.getProps();ez.update(()=>{i||nG(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)})},a={passive:!(c.onTap||c.onPointerUp)},nH(n,r,nX(i),a)),d=(s=window,o="pointercancel",l=(e,t)=>this.cancelPress(e,t),u={passive:!(c.onTapCancel||c.onPointerCancel)},nH(s,o,nX(l),u));this.removeEndListeners=tO(h,d),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=nH(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=nH(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&nJ("up",(e,t)=>{let{onTap:n}=this.node.getProps();n&&ez.update(()=>n(e,t))})}),nJ("down",(e,t)=>{this.startPress(e,t)}))}),t=nH(this.node.current,"blur",()=>{this.isPressing&&nJ("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=tO(e,t)}}},n0=new WeakMap,n1=new WeakMap,n2=e=>{let t=n0.get(e.target);t&&t(e)},n3=e=>{e.forEach(n2)},n5={some:0,all:1},n4=class extends nB{startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:n5[r]};return function(e,t,n){let r=function(e){let{root:t,...n}=e,r=t||document;n1.has(r)||n1.set(r,{});let i=n1.get(r),a=JSON.stringify(n);return i[a]||(i[a]=new IntersectionObserver(n3,{root:t,...n})),i[a]}(t);return n0.set(e,n),r.observe(e),()=>{n0.delete(e),r.unobserve(e)}}(this.node.current,a,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function(e){let{viewport:t={}}=e,{viewport:n={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=>t[e]!==n[e]}(e,t))&&this.startObserver()}unmount(){}constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}},n9=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function n6(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;eB(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));let[r,i]=function(e){let t=n9.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]}(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return nw(e)?parseFloat(e):e}return _(i)?n6(i,t,n+1):i}var n8=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),n7=e=>n8.has(e),re=e=>Object.keys(e).some(n7),rt=e=>e===K||e===eo,rn=(e,t)=>parseFloat(e.split(", ")[t]),rr=(e,t)=>(n,r)=>{let{transform:i}=r;if("none"===i||!i)return 0;let a=i.match(/^matrix3d\((.+)\)$/);if(a)return rn(a[1],t);{let t=i.match(/^matrix\((.+)\)$/);return t?rn(t[1],e):0}},ri=new Set(["x","y","z"]),ra=N.filter(e=>!ri.has(e)),rs={width:(e,t)=>{let{x:n}=e,{paddingLeft:r="0",paddingRight:i="0"}=t;return n.max-n.min-parseFloat(r)-parseFloat(i)},height:(e,t)=>{let{y:n}=e,{paddingTop:r="0",paddingBottom:i="0"}=t;return n.max-n.min-parseFloat(r)-parseFloat(i)},top:(e,t)=>{let{top:n}=t;return parseFloat(n)},left:(e,t)=>{let{left:n}=t;return parseFloat(n)},bottom:(e,t)=>{let{y:n}=e,{top:r}=t;return parseFloat(r)+(n.max-n.min)},right:(e,t)=>{let{x:n}=e,{left:r}=t;return parseFloat(r)+(n.max-n.min)},x:rr(4,13),y:rr(5,14)};rs.translateX=rs.x,rs.translateY=rs.y;var ro=(e,t,n)=>{let r=t.measureViewportBox(),i=getComputedStyle(t.current),{display:a}=i,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{s[e]=rs[e](r,i)}),t.render();let o=t.measureViewportBox();return n.forEach(n=>{let r=t.getValue(n);r&&r.jump(s[n]),e[n]=rs[n](o,i)}),e},rl=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t={...t},r={...r};let i=Object.keys(t).filter(n7),a=[],s=!1,o=[];if(i.forEach(i=>{let l;let u=e.getValue(i);if(!e.hasValue(i))return;let c=n[i],h=nM(c),d=t[i];if(eO(d)){let e=d.length,t=null===d[0]?1:0;h=nM(c=d[t]);for(let n=t;n{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),s=!0),o.push(i),r[i]=void 0!==r[i]?r[i]:t[i],u.jump(d))}}),!o.length)return{target:t,transitionEnd:r};{let n=o.indexOf("height")>=0?window.pageYOffset:null,i=ro(t,e,o);return a.length&&a.forEach(t=>{let[n,r]=t;e.getValue(n).set(r)}),e.render(),v&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},ru=(e,t,n,r)=>{var i,a;let s=function(e,t,n){let{...r}=t,i=e.current;if(!(i instanceof Element))return{target:r,transitionEnd:n};for(let t in n&&(n={...n}),e.values.forEach(e=>{let t=e.get();if(!_(t))return;let n=n6(t,i);n&&e.set(n)}),r){let e=r[t];if(!_(e))continue;let a=n6(e,i);a&&(r[t]=a,n||(n={}),void 0===n[t]&&(n[t]=e))}return{target:r,transitionEnd:n}}(e,t,r);return t=s.target,r=s.transitionEnd,i=t,a=r,re(i)?rl(e,i,n,a):{target:i,transitionEnd:a}},rc=()=>({min:0,max:0}),rh=()=>({x:rc(),y:rc()}),rd={current:null},rp={current:!1},rf=new WeakMap,rm=Object.keys(F),rg=rm.length,rv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ry=V.length,rb=class{scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,rf.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),rp.current||function(){if(rp.current=!0,v){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>rd.current=e.matches;e.addListener(t),t()}else rd.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rd.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in rf.delete(this.current),this.projection&&this.projection.unmount(),eH(this.notifyUpdate),eH(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){let n=z.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&ez.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),i()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures(e,t,n,r){let i,a,{children:s,...o}=e;for(let e=0;ethis.scheduleRender(),animationType:"string"==typeof t?t:"both",initialPromotionConfig:r,layoutScroll:s,layoutRoot:l})}return a}updateFeatures(){for(let e in this.features){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rh()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t0&&void 0!==arguments[0]&&arguments[0];if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}let t={};for(let e=0;et.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=nP(t,{owner:this}),this.addValue(e,n)),n}readValue(e){var t;return void 0===this.latestValues[e]&&this.current?null!==(t=this.getBaseTargetFromProps(this.props,e))&&void 0!==t?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=eF(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||W(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new nx),this.events[e].add(t)}notify(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;rthis.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>ez.render(this.render,!1,!0);let{latestValues:s,renderState:o}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=o,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.isControllingVariants=S(t),this.isVariantNode=M(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(t,{});for(let e in u){let t=u[e];void 0!==s[e]&&W(t)&&(t.set(s[e],!1),nb(l)&&l.add(e))}}},rw=class extends rb{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,t){let{vars:n,style:r}=t;delete n[e],delete r[e]}makeTargetAnimatableFromInstance(e,t,n){let{transition:r,transitionEnd:i,...a}=e,{transformValues:s}=t,o=function(e,t,n){let r={};for(let i in e){let e=function(e,t){if(t)return(t[e]||t.default||t).from}(i,t);if(void 0!==e)r[i]=e;else{let e=n.getValue(i);e&&(r[i]=e.get())}}return r}(a,r||{},this);if(s&&(i&&(i=s(i)),a&&(a=s(a)),o&&(o=s(o))),n){!function(e,t,n){var r,i;let a=Object.keys(t).filter(t=>!e.hasValue(t)),s=a.length;if(s)for(let o=0;o{this.current&&(this.current.textContent="".concat(e))}))}renderInstance(e,t,n,r){eV(e,t,n,r)}constructor(){super(...arguments),this.type="html"}},rA=class extends rw{getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(z.has(t)){let e=np(t);return e&&e.default||0}return t=eS.has(t)?t:w(t),e.getAttribute(t)}measureInstanceViewportBox(){return rh()}scrapeMotionValuesFromProps(e,t){return eT(e,t)}build(e,t,n,r){ek(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){eM(e,t,n,r)}mount(e){this.isSVGTag=eP(e.tagName),super.mount(e)}constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}},rk={renderer:(e,t)=>B(e)?new rA(t,{enableHardwareAcceleration:!1}):new rx(t,{enableHardwareAcceleration:!0}),animation:{Feature:nj},exit:{Feature:nz},inView:{Feature:n4},tap:{Feature:nQ},focus:{Feature:nK},hover:{Feature:class extends nB{mount(){this.unmount=tO(n$(this.node,!0),n$(this.node,!1))}unmount(){}}}}}}]);