"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[226],{7977:function(t,e,i){i.d(e,{Z:function(){return l}});var n=i(4090);/**
 * @license lucide-react v0.447.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),s=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return e.filter((t,e,i)=>!!t&&i.indexOf(t)===e).join(" ")};/**
 * @license lucide-react v0.447.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.447.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let a=(0,n.forwardRef)((t,e)=>{let{color:i="currentColor",size:r=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:u="",children:h,iconNode:c,...d}=t;return(0,n.createElement)("svg",{ref:e,...o,width:r,height:r,stroke:i,strokeWidth:l?24*Number(a)/Number(r):a,className:s("lucide",u),...d},[...c.map(t=>{let[e,i]=t;return(0,n.createElement)(e,i)}),...Array.isArray(h)?h:[h]])}),l=(t,e)=>{let i=(0,n.forwardRef)((i,o)=>{let{className:l,...u}=i;return(0,n.createElement)(a,{ref:o,iconNode:e,className:s("lucide-".concat(r(t)),l),...u})});return i.displayName="".concat(t),i}},1348:function(t,e,i){i.d(e,{M:function(){return g}});var n=i(4090),r=i(5526);function s(){let t=(0,n.useRef)(!1);return(0,r.L)(()=>(t.current=!0,()=>{t.current=!1}),[]),t}var o=i(4205),a=i(4561),l=i(2435);class u extends n.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function h(t){let{children:e,isPresent:i}=t,r=(0,n.useId)(),s=(0,n.useRef)(null),o=(0,n.useRef)({width:0,height:0,top:0,left:0});return(0,n.useInsertionEffect)(()=>{let{width:t,height:e,top:n,left:a}=o.current;if(i||!s.current||!t||!e)return;s.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(t,"px !important;\n            height: ").concat(e,"px !important;\n            top: ").concat(n,"px !important;\n            left: ").concat(a,"px !important;\n          }\n        ")),()=>{document.head.removeChild(l)}},[i]),n.createElement(u,{isPresent:i,childRef:s,sizeRef:o},n.cloneElement(e,{ref:s}))}let c=t=>{let{children:e,initial:i,isPresent:r,onExitComplete:s,custom:o,presenceAffectsLayout:u,mode:c}=t,p=(0,l.h)(d),m=(0,n.useId)(),f=(0,n.useMemo)(()=>({id:m,initial:i,isPresent:r,custom:o,onExitComplete:t=>{for(let e of(p.set(t,!0),p.values()))if(!e)return;s&&s()},register:t=>(p.set(t,!1),()=>p.delete(t))}),u?void 0:[r]);return(0,n.useMemo)(()=>{p.forEach((t,e)=>p.set(e,!1))},[r]),n.useEffect(()=>{r||p.size||!s||s()},[r]),"popLayout"===c&&(e=n.createElement(h,{isPresent:r},e)),n.createElement(a.O.Provider,{value:f},e)};function d(){return new Map}var p=i(3856),m=i(9908);let f=t=>t.key||"",g=t=>{var e;let{children:i,custom:a,initial:l=!0,onExitComplete:u,exitBeforeEnter:h,presenceAffectsLayout:d=!0,mode:g="sync"}=t;(0,m.k)(!h,"Replace exitBeforeEnter with mode='wait'");let v=(0,n.useContext)(p.p).forceRender||function(){let t=s(),[e,i]=(0,n.useState)(0),r=(0,n.useCallback)(()=>{t.current&&i(e+1)},[e]);return[(0,n.useCallback)(()=>o.Wi.postRender(r),[r]),e]}()[0],y=s(),x=function(t){let e=[];return n.Children.forEach(t,t=>{(0,n.isValidElement)(t)&&e.push(t)}),e}(i),P=x,b=(0,n.useRef)(new Map).current,w=(0,n.useRef)(P),A=(0,n.useRef)(new Map).current,T=(0,n.useRef)(!0);if((0,r.L)(()=>{T.current=!1,function(t,e){t.forEach(t=>{let i=f(t);e.set(i,t)})}(x,A),w.current=P}),e=()=>{T.current=!0,A.clear(),b.clear()},(0,n.useEffect)(()=>()=>e(),[]),T.current)return n.createElement(n.Fragment,null,P.map(t=>n.createElement(c,{key:f(t),isPresent:!0,initial:!!l&&void 0,presenceAffectsLayout:d,mode:g},t)));P=[...P];let S=w.current.map(f),E=x.map(f),V=S.length;for(let t=0;t<V;t++){let e=S[t];-1!==E.indexOf(e)||b.has(e)||b.set(e,void 0)}return"wait"===g&&b.size&&(P=[]),b.forEach((t,e)=>{if(-1!==E.indexOf(e))return;let i=A.get(e);if(!i)return;let r=S.indexOf(e),s=t;s||(s=n.createElement(c,{key:f(i),isPresent:!1,onExitComplete:()=>{b.delete(e);let t=Array.from(A.keys()).filter(t=>!E.includes(t));if(t.forEach(t=>A.delete(t)),w.current=x.filter(i=>{let n=f(i);return n===e||t.includes(n)}),!b.size){if(!1===y.current)return;v(),u&&u()}},custom:a,presenceAffectsLayout:d,mode:g},i),b.set(e,s)),P.splice(r,0,s)}),P=P.map(t=>{let e=t.key;return b.has(e)?t:n.createElement(c,{key:f(t),isPresent:!0,presenceAffectsLayout:d,mode:g},t)}),n.createElement(n.Fragment,null,b.size?P:P.map(t=>(0,n.cloneElement)(t)))}},3856:function(t,e,i){i.d(e,{p:function(){return n}});let n=(0,i(4090).createContext)({})},4561:function(t,e,i){i.d(e,{O:function(){return n}});let n=(0,i(4090).createContext)(null)},7839:function(t,e,i){i.d(e,{Z:function(){return o}});var n=i(6832);class r{add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){let e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}constructor(){this.order=[],this.scheduled=new Set}}let s=["prepare","read","update","preRender","render","postRender"];function o(t,e){let i=!1,o=!0,a={delta:0,timestamp:0,isProcessing:!1},l=s.reduce((t,e)=>(t[e]=function(t){let e=new r,i=new r,n=0,s=!1,o=!1,a=new WeakSet,l={schedule:function(t){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=o&&s,u=l?e:i;return r&&a.add(t),u.add(t)&&l&&s&&(n=e.order.length),t},cancel:t=>{i.remove(t),a.delete(t)},process:r=>{if(s){o=!0;return}if(s=!0,[e,i]=[i,e],i.clear(),n=e.order.length)for(let i=0;i<n;i++){let n=e.order[i];a.has(n)&&(l.schedule(n),t()),n(r)}s=!1,o&&(o=!1,l.process(r))}};return l}(()=>i=!0),t),{}),u=t=>{l[t].process(a)},h=()=>{let r=n.c.useManualTiming?a.timestamp:performance.now();i=!1,a.delta=o?1e3/60:Math.max(Math.min(r-a.timestamp,40),1),a.timestamp=r,a.isProcessing=!0,s.forEach(u),a.isProcessing=!1,i&&e&&(o=!1,t(h))},c=()=>{i=!0,o=!0,a.isProcessing||t(h)};return{schedule:s.reduce((t,e)=>{let n=l[e];return t[e]=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return i||c(),n.schedule(t,e,r)},t},{}),cancel:t=>s.forEach(e=>l[e].cancel(t)),state:a,steps:l}}},4205:function(t,e,i){i.d(e,{Pn:function(){return s},S6:function(){return a},Wi:function(){return r},frameData:function(){return o}});var n=i(3393);let{schedule:r,cancel:s,state:o,steps:a}=(0,i(7839).Z)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.Z,!0)},1840:function(t,e,i){let n,r;i.d(e,{E:function(){return r$}});var s,o,a=i(4090);let l=(0,a.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),u=(0,a.createContext)({});var h=i(4561),c=i(5526);let d=(0,a.createContext)({strict:!1}),p=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),m="data-"+p("framerAppearId"),{schedule:f,cancel:g}=(0,i(7839).Z)(queueMicrotask,!1);function v(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function y(t){return"string"==typeof t||Array.isArray(t)}function x(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}let P=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],b=["initial",...P];function w(t){return x(t.animate)||b.some(e=>y(t[e]))}function A(t){return!!(w(t)||t.variants)}function T(t){return Array.isArray(t)?t.join(" "):t}let S={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"]},E={};for(let t in S)E[t]={isEnabled:e=>S[t].some(t=>!!e[t])};var V=i(1702),C=i(3856);let M=(0,a.createContext)({}),k=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 R(t){if("string"!=typeof t||t.includes("-"));else if(D.indexOf(t)>-1||/[A-Z]/.test(t))return!0;return!1}let L={},j=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],F=new Set(j);function B(t,e){let{layout:i,layoutId:n}=e;return F.has(t)||t.startsWith("origin")||(i||void 0!==n)&&(!!L[t]||"opacity"===t)}let O=t=>!!(t&&t.getVelocity),I={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},W=j.length,U=t=>e=>"string"==typeof e&&e.startsWith(t),N=U("--"),Z=U("var(--"),z=(t,e)=>e&&"number"==typeof t?e.transform(t):t,H=(t,e,i)=>Math.min(Math.max(i,t),e),Y={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},X={...Y,transform:t=>H(0,1,t)},G={...Y,default:1},q=t=>Math.round(1e5*t)/1e5,K=/(-)?([\d]*\.?[\d])+/g,$=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,_=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function J(t){return"string"==typeof t}let Q=t=>({test:e=>J(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>"".concat(e).concat(t)}),tt=Q("deg"),te=Q("%"),ti=Q("px"),tn=Q("vh"),tr=Q("vw"),ts={...te,parse:t=>te.parse(t)/100,transform:t=>te.transform(100*t)},to={...Y,transform:Math.round},ta={borderWidth:ti,borderTopWidth:ti,borderRightWidth:ti,borderBottomWidth:ti,borderLeftWidth:ti,borderRadius:ti,radius:ti,borderTopLeftRadius:ti,borderTopRightRadius:ti,borderBottomRightRadius:ti,borderBottomLeftRadius:ti,width:ti,maxWidth:ti,height:ti,maxHeight:ti,size:ti,top:ti,right:ti,bottom:ti,left:ti,padding:ti,paddingTop:ti,paddingRight:ti,paddingBottom:ti,paddingLeft:ti,margin:ti,marginTop:ti,marginRight:ti,marginBottom:ti,marginLeft:ti,rotate:tt,rotateX:tt,rotateY:tt,rotateZ:tt,scale:G,scaleX:G,scaleY:G,scaleZ:G,skew:tt,skewX:tt,skewY:tt,distance:ti,translateX:ti,translateY:ti,translateZ:ti,x:ti,y:ti,z:ti,perspective:ti,transformPerspective:ti,opacity:X,originX:ts,originY:ts,originZ:ti,zIndex:to,fillOpacity:X,strokeOpacity:X,numOctaves:to};function tl(t,e,i,n){let{style:r,vars:s,transform:o,transformOrigin:a}=t,l=!1,u=!1,h=!0;for(let t in e){let i=e[t];if(N(t)){s[t]=i;continue}let n=ta[t],c=z(i,n);if(F.has(t)){if(l=!0,o[t]=c,!h)continue;i!==(n.default||0)&&(h=!1)}else t.startsWith("origin")?(u=!0,a[t]=c):r[t]=c}if(!e.transform&&(l||n?r.transform=function(t,e,i,n){let{enableHardwareAcceleration:r=!0,allowTransformNone:s=!0}=e,o="";for(let e=0;e<W;e++){let i=j[e];if(void 0!==t[i]){let e=I[i]||i;o+="".concat(e,"(").concat(t[i],") ")}}return r&&!t.z&&(o+="translateZ(0)"),o=o.trim(),n?o=n(t,i?"":o):s&&i&&(o="none"),o}(t.transform,i,h,n):r.transform&&(r.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=a;r.transformOrigin="".concat(t," ").concat(e," ").concat(i)}}let tu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function th(t,e,i){for(let n in e)O(e[n])||B(n,i)||(t[n]=e[n])}let tc=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function td(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||tc.has(t)}let tp=t=>!td(t);try{(s=require("@emotion/is-prop-valid").default)&&(tp=t=>t.startsWith("on")?!td(t):s(t))}catch(t){}function tm(t,e,i){return"string"==typeof t?t:ti.transform(e+i*t)}let tf={offset:"stroke-dashoffset",array:"stroke-dasharray"},tg={offset:"strokeDashoffset",array:"strokeDasharray"};function tv(t,e,i,n,r){let{attrX:s,attrY:o,attrScale:a,originX:l,originY:u,pathLength:h,pathSpacing:c=1,pathOffset:d=0,...p}=e;if(tl(t,p,i,r),n){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:m,style:f,dimensions:g}=t;m.transform&&(g&&(f.transform=m.transform),delete m.transform),g&&(void 0!==l||void 0!==u||f.transform)&&(f.transformOrigin=function(t,e,i){let n=tm(e,t.x,t.width),r=tm(i,t.y,t.height);return"".concat(n," ").concat(r)}(g,void 0!==l?l:.5,void 0!==u?u:.5)),void 0!==s&&(m.x=s),void 0!==o&&(m.y=o),void 0!==a&&(m.scale=a),void 0!==h&&function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=!(arguments.length>4)||void 0===arguments[4]||arguments[4];t.pathLength=1;let s=r?tf:tg;t[s.offset]=ti.transform(-n);let o=ti.transform(e),a=ti.transform(i);t[s.array]="".concat(o," ").concat(a)}(m,h,c,d,!1)}let ty=()=>({...tu(),attrs:{}}),tx=t=>"string"==typeof t&&"svg"===t.toLowerCase();function tP(t,e,i,n){let{style:r,vars:s}=e;for(let e in Object.assign(t.style,r,n&&n.getProjectionStyles(i)),s)t.style.setProperty(e,s[e])}let tb=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 tw(t,e,i,n){for(let i in tP(t,e,void 0,n),e.attrs)t.setAttribute(tb.has(i)?i:p(i),e.attrs[i])}function tA(t,e){let{style:i}=t,n={};for(let r in i)(O(i[r])||e.style&&O(e.style[r])||B(r,t))&&(n[r]=i[r]);return n}function tT(t,e){let i=tA(t,e);for(let n in t)(O(t[n])||O(e[n]))&&(i[-1!==j.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=t[n]);return i}function tS(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return"function"==typeof e&&(e=e(void 0!==i?i:t.custom,n,r)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==i?i:t.custom,n,r)),e}var tE=i(2435);let tV=t=>Array.isArray(t),tC=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),tM=t=>tV(t)?t[t.length-1]||0:t;function tk(t){let e=O(t)?t.get():t;return tC(e)?e.toValue():e}let tD=t=>(e,i)=>{let n=(0,a.useContext)(u),r=(0,a.useContext)(h.O),s=()=>(function(t,e,i,n){let{scrapeMotionValuesFromProps:r,createRenderState:s,onMount:o}=t,a={latestValues:function(t,e,i,n){let r={},s=n(t,{});for(let t in s)r[t]=tk(s[t]);let{initial:o,animate:a}=t,l=w(t),u=A(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===o)?a:o;return c&&"boolean"!=typeof c&&!x(c)&&(Array.isArray(c)?c:[c]).forEach(e=>{let i=tS(t,e);if(!i)return;let{transitionEnd:n,transition:s,...o}=i;for(let t in o){let e=o[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let t in n)r[t]=n[t]}),r}(e,i,n,r),renderState:s()};return o&&(a.mount=t=>o(e,t,a)),a})(t,e,n,r);return i?s():(0,tE.h)(s)};var tR=i(4205);let tL={useVisualState:tD({scrapeMotionValuesFromProps:tT,createRenderState:ty,onMount:(t,e,i)=>{let{renderState:n,latestValues:r}=i;tR.Wi.read(()=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}}),tR.Wi.render(()=>{tv(n,r,{enableHardwareAcceleration:!1},tx(e.tagName),t.transformTemplate),tw(e,n)})}})},tj={useVisualState:tD({scrapeMotionValuesFromProps:tA,createRenderState:tu})};function tF(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let tB=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tO(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"page";return{point:{x:t[e+"X"],y:t[e+"Y"]}}}let tI=t=>e=>tB(e)&&t(e,tO(e));function tW(t,e,i,n){return tF(t,e,tI(i),n)}let tU=(t,e)=>i=>e(t(i)),tN=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return e.reduce(tU)};function tZ(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let tz=tZ("dragHorizontal"),tH=tZ("dragVertical");function tY(t){let e=!1;if("y"===t)e=tH();else if("x"===t)e=tz();else{let t=tz(),i=tH();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function tX(){let t=tY(!0);return!t||(t(),!1)}class tG{update(){}constructor(t){this.isMounted=!1,this.node=t}}function tq(t,e){let i="onHover"+(e?"Start":"End");return tW(t.current,"pointer"+(e?"enter":"leave"),(n,r)=>{if("touch"===n.pointerType||tX())return;let s=t.getProps();t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",e),s[i]&&tR.Wi.update(()=>s[i](n,r))},{passive:!t.getProps()[i]})}class tK extends tG{mount(){this.unmount=tN(tq(this.node,!0),tq(this.node,!1))}unmount(){}}class t$ extends tG{onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tN(tF(this.node.current,"focus",()=>this.onFocus()),tF(this.node.current,"blur",()=>this.onBlur()))}unmount(){}constructor(){super(...arguments),this.isActive=!1}}let t_=(t,e)=>!!e&&(t===e||t_(t,e.parentElement));var tJ=i(3393);function tQ(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,tO(i))}class t0 extends tG{startPress(t,e){this.isPressing=!0;let{onTapStart:i,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&tR.Wi.update(()=>i(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!tX()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&tR.Wi.update(()=>i(t,e))}mount(){let t=this.node.getProps(),e=tW(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=tF(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=tN(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}constructor(){super(...arguments),this.removeStartListeners=tJ.Z,this.removeEndListeners=tJ.Z,this.removeAccessibleListeners=tJ.Z,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),n=tW(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:n,globalTapTarget:r}=this.node.getProps();tR.Wi.update(()=>{r||t_(this.node.current,t.target)?i&&i(t,e):n&&n(t,e)})},{passive:!(i.onTap||i.onPointerUp)}),r=tW(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=tN(n,r),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=tF(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=tF(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&tQ("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&tR.Wi.update(()=>i(t,e))})}),tQ("down",(t,e)=>{this.startPress(t,e)}))}),e=tF(this.node.current,"blur",()=>{this.isPressing&&tQ("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=tN(t,e)}}}let t1=new WeakMap,t2=new WeakMap,t3=t=>{let e=t1.get(t.target);e&&e(t)},t5=t=>{t.forEach(t3)},t4={some:0,all:1};class t9 extends tG{startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:t4[n]};return function(t,e,i){let n=function(t){let{root:e,...i}=t,n=e||document;t2.has(n)||t2.set(n,{});let r=t2.get(n),s=JSON.stringify(i);return r[s]||(r[s]=new IntersectionObserver(t5,{root:e,...i})),r[s]}(e);return t1.set(t,i),n.observe(t),()=>{t1.delete(t),n.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function(t){let{viewport:e={}}=t,{viewport:i={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=>e[t]!==i[t]}(t,e))&&this.startObserver()}unmount(){}constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}}function t6(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}function t8(t,e,i){let n=t.getProps();return tS(n,e,void 0!==i?i:n.custom,function(t){let e={};return t.values.forEach((t,i)=>e[i]=t.get()),e}(t),function(t){let e={};return t.values.forEach((t,i)=>e[i]=t.getVelocity()),e}(t))}var t7=i(9908);let et=t=>1e3*t,ee=t=>t/1e3,ei={current:!1},en=t=>Array.isArray(t)&&"number"==typeof t[0],er=t=>{let[e,i,n,r]=t;return"cubic-bezier(".concat(e,", ").concat(i,", ").concat(n,", ").concat(r,")")},es={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:er([0,.65,.55,1]),circOut:er([.55,0,1,.45]),backIn:er([.31,.01,.66,-.59]),backOut:er([.33,1.53,.69,.99])},eo=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function ea(t,e,i,n){if(t===e&&i===n)return tJ.Z;let r=e=>(function(t,e,i,n,r){let s,o;let a=0;do(s=eo(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:eo(r(t),e,n)}let el=ea(.42,0,1,1),eu=ea(0,0,.58,1),eh=ea(.42,0,.58,1),ec=t=>Array.isArray(t)&&"number"!=typeof t[0],ed=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ep=t=>e=>1-t(1-e),em=t=>1-Math.sin(Math.acos(t)),ef=ep(em),eg=ed(em),ev=ea(.33,1.53,.69,.99),ey=ep(ev),ex=ed(ey),eP={linear:tJ.Z,easeIn:el,easeInOut:eh,easeOut:eu,circIn:em,circInOut:eg,circOut:ef,backIn:ey,backInOut:ex,backOut:ev,anticipate:t=>(t*=2)<1?.5*ey(t):.5*(2-Math.pow(2,-10*(t-1)))},eb=t=>{if(Array.isArray(t)){(0,t7.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,r]=t;return ea(e,i,n,r)}return"string"==typeof t?((0,t7.k)(void 0!==eP[t],"Invalid easing type '".concat(t,"'")),eP[t]):t},ew=(t,e)=>i=>!!(J(i)&&_.test(i)&&i.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(i,e)),eA=(t,e,i)=>n=>{if(!J(n))return n;let[r,s,o,a]=n.match(K);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},eT=t=>H(0,255,t),eS={...Y,transform:t=>Math.round(eT(t))},eE={test:ew("rgb","red"),parse:eA("red","green","blue"),transform:t=>{let{red:e,green:i,blue:n,alpha:r=1}=t;return"rgba("+eS.transform(e)+", "+eS.transform(i)+", "+eS.transform(n)+", "+q(X.transform(r))+")"}},eV={test:ew("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:eE.transform},eC={test:ew("hsl","hue"),parse:eA("hue","saturation","lightness"),transform:t=>{let{hue:e,saturation:i,lightness:n,alpha:r=1}=t;return"hsla("+Math.round(e)+", "+te.transform(q(i))+", "+te.transform(q(n))+", "+q(X.transform(r))+")"}},eM={test:t=>eE.test(t)||eV.test(t)||eC.test(t),parse:t=>eE.test(t)?eE.parse(t):eC.test(t)?eC.parse(t):eV.parse(t),transform:t=>J(t)?t:t.hasOwnProperty("red")?eE.transform(t):eC.transform(t)},ek=(t,e,i)=>-i*t+i*e+t;function eD(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}let eR=(t,e,i)=>{let n=t*t;return Math.sqrt(Math.max(0,i*(e*e-n)+n))},eL=[eV,eE,eC],ej=t=>eL.find(e=>e.test(t));function eF(t){let e=ej(t);(0,t7.k)(!!e,"'".concat(t,"' is not an animatable color. Use the equivalent color code instead."));let i=e.parse(t);return e===eC&&(i=function(t){let{hue:e,saturation:i,lightness:n,alpha:r}=t;e/=360,n/=100;let s=0,o=0,a=0;if(i/=100){let t=n<.5?n*(1+i):n+i-n*i,r=2*n-t;s=eD(r,t,e+1/3),o=eD(r,t,e),a=eD(r,t,e-1/3)}else s=o=a=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(i)),i}let eB=(t,e)=>{let i=eF(t),n=eF(e),r={...i};return t=>(r.red=eR(i.red,n.red,t),r.green=eR(i.green,n.green,t),r.blue=eR(i.blue,n.blue,t),r.alpha=ek(i.alpha,n.alpha,t),eE.transform(r))},eO={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:tJ.Z},eI={regex:$,countKey:"Colors",token:"${c}",parse:eM.parse},eW={regex:K,countKey:"Numbers",token:"${n}",parse:Y.parse};function eU(t,e){let{regex:i,countKey:n,token:r,parse:s}=e,o=t.tokenised.match(i);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(i,r),t.values.push(...o.map(s)))}function eN(t){let e=t.toString(),i={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return i.value.includes("var(--")&&eU(i,eO),eU(i,eI),eU(i,eW),i}function eZ(t){return eN(t).values}function ez(t){let{values:e,numColors:i,numVars:n,tokenised:r}=eN(t),s=e.length;return t=>{let e=r;for(let r=0;r<s;r++)e=r<n?e.replace(eO.token,t[r]):r<n+i?e.replace(eI.token,eM.transform(t[r])):e.replace(eW.token,q(t[r]));return e}}let eH=t=>"number"==typeof t?0:t,eY={test:function(t){var e,i;return isNaN(t)&&J(t)&&((null===(e=t.match(K))||void 0===e?void 0:e.length)||0)+((null===(i=t.match($))||void 0===i?void 0:i.length)||0)>0},parse:eZ,createTransformer:ez,getAnimatableNone:function(t){let e=eZ(t);return ez(t)(e.map(eH))}},eX=(t,e)=>i=>"".concat(i>0?e:t);function eG(t,e){return"number"==typeof t?i=>ek(t,e,i):eM.test(t)?eB(t,e):t.startsWith("var(")?eX(t,e):e$(t,e)}let eq=(t,e)=>{let i=[...t],n=i.length,r=t.map((t,i)=>eG(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}},eK=(t,e)=>{let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=eG(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}},e$=(t,e)=>{let i=eY.createTransformer(e),n=eN(t),r=eN(e);return n.numVars===r.numVars&&n.numColors===r.numColors&&n.numNumbers>=r.numNumbers?tN(eq(n.values,r.values),i):((0,t7.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.")),eX(t,e))},e_=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n},eJ=(t,e)=>i=>ek(t,e,i);function eQ(t,e){let{clamp:i=!0,ease:n,mixer:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=t.length;if((0,t7.k)(s===e.length,"Both input and output ranges must be the same length"),1===s)return()=>e[0];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let n=[],r=i||function(t){if("number"==typeof t);else if("string"==typeof t)return eM.test(t)?eB:e$;else if(Array.isArray(t))return eq;else if("object"==typeof t)return eK;return eJ}(t[0]),s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=tN(Array.isArray(e)?e[i]||tJ.Z:e,s)),n.push(s)}return n}(e,n,r),a=o.length,l=e=>{let i=0;if(a>1)for(;i<t.length-2&&!(e<t[i+1]);i++);let n=e_(t[i],t[i+1],e);return o[i](n)};return i?e=>l(H(t[0],t[s-1],e)):l}function e0(t){let{duration:e=300,keyframes:i,times:n,ease:r="easeInOut"}=t,s=ec(r)?r.map(eb):eb(r),o={done:!1,value:i[0]},a=eQ((n&&n.length===i.length?n:function(t){let e=[0];return function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=e_(0,e,n);t.push(ek(i,1,r))}}(e,t.length-1),e}(i)).map(t=>t*e),i,{ease:Array.isArray(s)?s:i.map(()=>s||eh).splice(0,i.length-1)});return{calculatedDuration:e,next:t=>(o.value=a(t),o.done=t>=e,o)}}function e1(t,e,i){var n,r;let s=Math.max(e-5,0);return n=i-t(s),(r=e-s)?1e3/r*n:0}function e2(t,e){return t*Math.sqrt(1-e*e)}let e3=["duration","bounce"],e5=["stiffness","damping","mass"];function e4(t,e){return e.some(e=>void 0!==t[e])}function e9(t){let e,{keyframes:i,restDelta:n,restSpeed:r,...s}=t,o=i[0],a=i[i.length-1],l={done:!1,value:o},{stiffness:u,damping:h,mass:c,duration:d,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!e4(t,e5)&&e4(t,e3)){let i=function(t){let e,i,{duration:n=800,bounce:r=.25,velocity:s=0,mass:o=1}=t;(0,t7.K)(n<=et(10),"Spring duration must be 10 seconds or less");let a=1-r;a=H(.05,1,a),n=H(.01,10,ee(n)),a<1?(e=t=>{let e=t*a,i=e*n;return .001-(e-s)/e2(t,a)*Math.exp(-i)},i=t=>{let i=t*a*n,r=Math.pow(a,2)*Math.pow(t,2)*n,o=e2(Math.pow(t,2),a);return(i*s+s-r)*Math.exp(-i)*(-e(t)+.001>0?-1:1)/o}):(e=t=>-.001+Math.exp(-t*n)*((t-s)*n+1),i=t=>n*n*(s-t)*Math.exp(-t*n));let l=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(e,i,5/n);if(n=et(n),isNaN(l))return{stiffness:100,damping:10,duration:n};{let t=Math.pow(l,2)*o;return{stiffness:t,damping:2*a*Math.sqrt(o*t),duration:n}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...s,velocity:-ee(s.velocity||0)}),f=p||0,g=h/(2*Math.sqrt(u*c)),v=a-o,y=ee(Math.sqrt(u/c)),x=5>Math.abs(v);if(r||(r=x?.01:2),n||(n=x?.005:.5),g<1){let t=e2(y,g);e=e=>a-Math.exp(-g*y*e)*((f+g*y*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}else if(1===g)e=t=>a-Math.exp(-y*t)*(v+(f+y*v)*t);else{let t=y*Math.sqrt(g*g-1);e=e=>{let i=Math.exp(-g*y*e),n=Math.min(t*e,300);return a-i*((f+g*y*v)*Math.sinh(n)+t*v*Math.cosh(n))/t}}return{calculatedDuration:m&&d||null,next:t=>{let i=e(t);if(m)l.done=t>=d;else{let s=f;0!==t&&(s=g<1?e1(e,t,i):0);let o=Math.abs(s)<=r,u=Math.abs(a-i)<=n;l.done=o&&u}return l.value=l.done?a:i,l}}}function e6(t){let e,i,{keyframes:n,velocity:r=0,power:s=.8,timeConstant:o=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:u,min:h,max:c,restDelta:d=.5,restSpeed:p}=t,m=n[0],f={done:!1,value:m},g=t=>void 0!==h&&t<h||void 0!==c&&t>c,v=t=>void 0===h?c:void 0===c?h:Math.abs(h-t)<Math.abs(c-t)?h:c,y=s*r,x=m+y,P=void 0===u?x:u(x);P!==x&&(y=P-m);let b=t=>-y*Math.exp(-t/o),w=t=>P+b(t),A=t=>{let e=b(t),i=w(t);f.done=Math.abs(e)<=d,f.value=f.done?P:i},T=t=>{g(f.value)&&(e=t,i=e9({keyframes:[f.value,v(f.value)],velocity:e1(w,t,f.value),damping:a,stiffness:l,restDelta:d,restSpeed:p}))};return T(0),{calculatedDuration:null,next:t=>{let n=!1;return(i||void 0!==e||(n=!0,A(t),T(t)),void 0!==e&&t>e)?i.next(t-e):(n||A(t),f)}}}var e8=i(6832);function e7(){n=void 0}let it={now:()=>(void 0===n&&it.set(tR.frameData.isProcessing||e8.c.useManualTiming?tR.frameData.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(e7)}},ie=t=>{let e=e=>{let{timestamp:i}=e;return t(i)};return{start:()=>tR.Wi.update(e,!0),stop:()=>(0,tR.Pn)(e),now:()=>tR.frameData.isProcessing?tR.frameData.timestamp:it.now()}};function ii(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let ir={decay:e6,inertia:e6,tween:e0,keyframes:e0,spring:e9};function is(t){let e,i,n,r,s,{autoplay:o=!0,delay:a=0,driver:l=ie,keyframes:u,type:h="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:p="loop",onPlay:m,onStop:f,onComplete:g,onUpdate:v,...y}=t,x=1,P=!1,b=()=>{i=new Promise(t=>{e=t})};b();let w=ir[h]||e0;w!==e0&&"number"!=typeof u[0]&&(r=eQ([0,100],u,{clamp:!1}),u=[0,100]);let A=w({...y,keyframes:u});"mirror"===p&&(s=w({...y,keyframes:[...u].reverse(),velocity:-(y.velocity||0)}));let T="idle",S=null,E=null,V=null;null===A.calculatedDuration&&c&&(A.calculatedDuration=ii(A));let{calculatedDuration:C}=A,M=1/0,k=1/0;null!==C&&(k=(M=C+d)*(c+1)-d);let D=0,R=t=>{if(null===E)return;x>0&&(E=Math.min(E,t)),x<0&&(E=Math.min(t-k/x,E));let e=(D=null!==S?S:Math.round(t-E)*x)-a*(x>=0?1:-1),i=x>=0?e<0:e>k;D=Math.max(e,0),"finished"===T&&null===S&&(D=k);let n=D,o=A;if(c){let t=Math.min(D,k)/M,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===p?(i=1-i,d&&(i-=d/M)):"mirror"===p&&(o=s)),n=H(0,1,i)*M}let l=i?{done:!1,value:u[0]}:o.next(n);r&&(l.value=r(l.value));let{done:h}=l;i||null===C||(h=x>=0?D>=k:D<=0);let m=null===S&&("finished"===T||"running"===T&&h);return v&&v(l.value),m&&F(),l},L=()=>{n&&n.stop(),n=void 0},j=()=>{T="idle",L(),e(),b(),E=V=null},F=()=>{T="finished",g&&g(),L(),e()},B=()=>{if(P)return;n||(n=l(R));let t=n.now();m&&m(),null!==S?E=t-S:E&&"finished"!==T||(E=t),"finished"===T&&b(),V=E,S=null,T="running",n.start()};o&&B();let O={then:(t,e)=>i.then(t,e),get time(){return ee(D)},set time(newTime){D=newTime=et(newTime),null===S&&n&&0!==x?E=n.now()-newTime/x:S=newTime},get duration(){return ee(null===A.calculatedDuration?ii(A):A.calculatedDuration)},get speed(){return x},set speed(newSpeed){if(newSpeed===x||!n)return;x=newSpeed,O.time=ee(D)},get state(){return T},play:B,pause:()=>{T="paused",S=D},stop:()=>{P=!0,"idle"!==T&&(T="idle",f&&f(),j())},cancel:()=>{null!==V&&R(V),j()},complete:()=>{T="finished"},sample:t=>(E=0,R(t))};return O}let io=(o=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===r&&(r=o()),r)),ia=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),il=(t,e)=>"spring"===e.type||"backgroundColor"===t||!function t(e){return!!(!e||"string"==typeof e&&es[e]||en(e)||Array.isArray(e)&&e.every(t))}(e.ease),iu={type:"spring",stiffness:500,damping:25,restSpeed:10},ih=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),ic={type:"keyframes",duration:.8},id={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ip=(t,e)=>{let{keyframes:i}=e;return i.length>2?ic:F.has(t)?t.startsWith("scale")?ih(i[1]):iu:id},im=(t,e)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eY.test(e)||"0"===e)&&!e.startsWith("url(")),ig=new Set(["brightness","contrast","saturate","opacity"]);function iv(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(K)||[];if(!n)return t;let r=i.replace(n,""),s=ig.has(e)?1:0;return n!==i&&(s*=100),e+"("+s+r+")"}let iy=/([a-z-]*)\(.*?\)/g,ix={...eY,getAnimatableNone:t=>{let e=t.match(iy);return e?e.map(iv).join(" "):t}},iP={...ta,color:eM,backgroundColor:eM,outlineColor:eM,fill:eM,stroke:eM,borderColor:eM,borderTopColor:eM,borderRightColor:eM,borderBottomColor:eM,borderLeftColor:eM,filter:ix,WebkitFilter:ix},ib=t=>iP[t];function iw(t,e){let i=ib(t);return i!==ix&&(i=eY),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let iA=t=>/^0[^.\s]+$/.test(t);function iT(t,e){return t[e]||t.default||t}let iS=function(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return r=>{let s=iT(n,t)||{},o=s.delay||n.delay||0,{elapsed:a=0}=n;a-=et(o);let l=function(t,e,i,n){let r,s;let o=im(e,i);r=Array.isArray(i)?[...i]:[null,i];let a=void 0!==n.from?n.from:t.get(),l=[];for(let t=0;t<r.length;t++){var u;null===r[t]&&(r[t]=0===t?a:r[t-1]),("number"==typeof(u=r[t])?0===u:null!==u?"none"===u||"0"===u||iA(u):void 0)&&l.push(t),"string"==typeof r[t]&&"none"!==r[t]&&"0"!==r[t]&&(s=r[t])}if(o&&l.length&&s)for(let t=0;t<l.length;t++)r[l[t]]=iw(e,s);return r}(e,t,i,s),u=l[0],h=l[l.length-1],c=im(t,u),d=im(t,h);(0,t7.K)(c===d,"You are trying to animate ".concat(t,' from "').concat(u,'" to "').concat(h,'". ').concat(u," is not an animatable value - to enable this animation set ").concat(u," to a value animatable to ").concat(h," via the `style` property."));let p={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...s,delay:-a,onUpdate:t=>{e.set(t),s.onUpdate&&s.onUpdate(t)},onComplete:()=>{r(),s.onComplete&&s.onComplete()}};if(!function(t){let{when:e,delay:i,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:a,repeatDelay:l,from:u,elapsed:h,...c}=t;return!!Object.keys(c).length}(s)&&(p={...p,...ip(t,p)}),p.duration&&(p.duration=et(p.duration)),p.repeatDelay&&(p.repeatDelay=et(p.repeatDelay)),!c||!d||ei.current||!1===s.type||e8.c.skipAnimations)return function(t){let{keyframes:e,delay:i,onUpdate:n,onComplete:r}=t,s=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:tJ.Z,pause:tJ.Z,stop:tJ.Z,then:t=>(t(),Promise.resolve()),cancel:tJ.Z,complete:tJ.Z});return i?is({keyframes:[0,1],duration:0,delay:i,onComplete:s}):s()}(ei.current?{...p,delay:0}:p);if(!n.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){let i=function(t,e,i){let n,r,{onUpdate:s,onComplete:o,...a}=i;if(!(io()&&ia.has(e)&&!a.repeatDelay&&"mirror"!==a.repeatType&&0!==a.damping&&"inertia"!==a.type))return!1;let l=!1,u=!1,h=()=>{r=new Promise(t=>{n=t})};h();let{keyframes:c,duration:d=300,ease:p,times:m}=a;if(il(e,a)){let t=is({...a,repeat:0,delay:0}),e={done:!1,value:c[0]},i=[],n=0;for(;!e.done&&n<2e4;)e=t.sample(n),i.push(e.value),n+=10;m=void 0,c=i,d=n-10,p="linear"}let f=function(t,e,i){let{delay:n=0,duration:r,repeat:s=0,repeatType:o="loop",ease:a,times:l}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u={[e]:i};l&&(u.offset=l);let h=function t(e){if(e)return en(e)?er(e):Array.isArray(e)?e.map(t):es[e]}(a);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:n,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"})}(t.owner.current,e,c,{...a,duration:d,ease:p,times:m}),g=()=>{u=!1,f.cancel()},v=()=>{u=!0,tR.Wi.update(g),n(),h()};return f.onfinish=()=>{u||(t.set(function(t,e){let{repeat:i,repeatType:n="loop"}=e,r=i&&"loop"!==n&&i%2==1?0:t.length-1;return t[r]}(c,a)),o&&o(),v())},{then:(t,e)=>r.then(t,e),attachTimeline:t=>(f.timeline=t,f.onfinish=null,tJ.Z),get time(){return ee(f.currentTime||0)},set time(newTime){f.currentTime=et(newTime)},get speed(){return f.playbackRate},set speed(newSpeed){f.playbackRate=newSpeed},get duration(){return ee(d)},play:()=>{l||(f.play(),(0,tR.Pn)(g))},pause:()=>f.pause(),stop:()=>{if(l=!0,"idle"===f.playState)return;let{currentTime:e}=f;if(e){let i=is({...a,autoplay:!1});t.setWithVelocity(i.sample(e-10).value,i.sample(e).value,10)}v()},complete:()=>{u||f.finish()},cancel:v}}(e,t,p);if(i)return i}return is(p)}};function iE(t){return!!(O(t)&&t.add)}let iV=t=>/^\-?\d*\.?\d+$/.test(t);function iC(t,e){-1===t.indexOf(e)&&t.push(e)}function iM(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class ik{add(t){return iC(this.subscriptions,t),()=>iM(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}constructor(){this.subscriptions=[]}}let iD=t=>!isNaN(parseFloat(t)),iR={current:void 0};class iL{setCurrent(t){this.current=t,this.updatedAt=it.now()}setPrevFrameValue(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.current;this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new ik);let i=this.events[t].add(e);return"change"===t?()=>{i(),tR.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return iR.current&&iR.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=it.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}constructor(t,e={}){var i=this;this.version="11.0.3",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=function(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=it.now();i.updatedAt!==n&&i.setPrevFrameValue(),i.prev=i.current,i.setCurrent(t),i.current!==i.prev&&i.events.change&&i.events.change.notify(i.current),e&&i.events.renderRequest&&i.events.renderRequest.notify(i.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=iD(this.current),this.owner=e.owner}}function ij(t,e){return new iL(t,e)}let iF=t=>e=>e.test(t),iB=[Y,ti,te,tt,tr,tn,{test:t=>"auto"===t,parse:t=>t}],iO=t=>iB.find(iF(t)),iI=[...iB,eM,eY],iW=t=>iI.find(iF(t));function iU(t,e){let{delay:i=0,transitionOverride:n,type:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{transition:s=t.getDefaultTransition(),transitionEnd:o,...a}=t.makeTargetAnimatable(e),l=t.getValue("willChange");n&&(s=n);let u=[],h=r&&t.animationState&&t.animationState.getState()[r];for(let e in a){let n=t.getValue(e),r=a[e];if(!n||void 0===r||h&&function(t,e){let{protectedKeys:i,needsAnimating:n}=t,r=i.hasOwnProperty(e)&&!0!==n[e];return n[e]=!1,r}(h,e))continue;let o={delay:i,elapsed:0,...iT(s||{},e)};if(window.HandoffAppearAnimations){let i=t.getProps()[m];if(i){let t=window.HandoffAppearAnimations(i,e,n,tR.Wi);null!==t&&(o.elapsed=t,o.isHandoff=!0)}}let c=!o.isHandoff&&!function(t,e){let i=t.get();if(!Array.isArray(e))return i!==e;for(let t=0;t<e.length;t++)if(e[t]!==i)return!0}(n,r);if("spring"===o.type&&(n.getVelocity()||o.velocity)&&(c=!1),n.animation&&(c=!1),c)continue;n.start(iS(e,n,r,t.shouldReduceMotion&&F.has(e)?{type:!1}:o));let d=n.animation;iE(l)&&(l.add(e),d.then(()=>l.remove(e))),u.push(d)}return o&&Promise.all(u).then(()=>{o&&function(t,e){let i=t8(t,e),{transitionEnd:n={},transition:r={},...s}=i?t.makeTargetAnimatable(i,!1):{};for(let e in s={...s,...n}){let i=tM(s[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,ij(i))}}(t,o)}),u}function iN(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=t8(t,e,i.custom),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(iU(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;return function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=arguments.length>5?arguments[5]:void 0,o=[],a=(t.variantChildren.size-1)*n,l=1===r?function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t*n}:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return a-t*n};return Array.from(t.variantChildren).sort(iZ).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(iN(t,e,{...s,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,s+n,o,a,i)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}function iZ(t,e){return t.sortNodePosition(e)}let iz=[...P].reverse(),iH=P.length;function iY(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class iX extends tG{updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),x(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(e=>{let{animation:i,options:n}=e;return function(t,e){let i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.notify("AnimationStart",e),Array.isArray(e))i=Promise.all(e.map(e=>iN(t,e,n)));else if("string"==typeof e)i=iN(t,e,n);else{let r="function"==typeof e?t8(t,e,n.custom):e;i=Promise.all(iU(t,r,n))}return i.then(()=>t.notify("AnimationComplete",e))}(t,i,n)})),i={animate:iY(!0),whileInView:iY(),whileHover:iY(),whileTap:iY(),whileDrag:iY(),whileFocus:iY(),exit:iY()},n=!0,r=(e,i)=>{let n=t8(t,i);if(n){let{transition:t,transitionEnd:i,...r}=n;e={...e,...r,...i}}return e};function s(s,o){let a=t.getProps(),l=t.getVariantContext(!0)||{},u=[],h=new Set,c={},d=1/0;for(let e=0;e<iH;e++){var p;let m=iz[e],f=i[m],g=void 0!==a[m]?a[m]:l[m],v=y(g),P=m===o?f.isActive:null;!1===P&&(d=e);let b=g===l[m]&&g!==a[m]&&v;if(b&&n&&t.manuallyAnimateOnMount&&(b=!1),f.protectedKeys={...c},!f.isActive&&null===P||!g&&!f.prevProp||x(g)||"boolean"==typeof g)continue;let w=(p=f.prevProp,("string"==typeof g?g!==p:!!Array.isArray(g)&&!t6(g,p))||m===o&&f.isActive&&!b&&v||e>d&&v),A=!1,T=Array.isArray(g)?g:[g],S=T.reduce(r,{});!1===P&&(S={});let{prevResolvedValues:E={}}=f,V={...E,...S},C=t=>{w=!0,h.has(t)&&(A=!0,h.delete(t)),f.needsAnimating[t]=!0};for(let t in V){let e=S[t],i=E[t];if(!c.hasOwnProperty(t))(tV(e)&&tV(i)?t6(e,i):e===i)?void 0!==e&&h.has(t)?C(t):f.protectedKeys[t]=!0:void 0!==e?C(t):h.add(t)}f.prevProp=g,f.prevResolvedValues=S,f.isActive&&(c={...c,...S}),n&&t.blockInitialAnimation&&(w=!1),w&&(!b||A)&&u.push(...T.map(t=>({animation:t,options:{type:m,...s}})))}if(h.size){let e={};h.forEach(i=>{let n=t.getBaseTarget(i);void 0!==n&&(e[i]=n)}),u.push({animation:e})}let m=!!u.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(m=!1),n=!1,m?e(u):Promise.resolve()}return{animateChanges:s,setActive:function(e,n,r){var o;if(i[e].isActive===n)return Promise.resolve();null===(o=t.variantChildren)||void 0===o||o.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,n)}),i[e].isActive=n;let a=s(r,e);for(let t in i)i[t].protectedKeys={};return a},setAnimateFunction:function(i){e=i(t)},getState:()=>i}}(t))}}let iG=0;class iq extends tG{update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e,custom:i}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;let r=this.node.animationState.setActive("exit",!t,{custom:null!=i?i:this.node.getProps().custom});e&&!t&&r.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}constructor(){super(...arguments),this.id=iG++}}let iK=(t,e)=>Math.abs(t-e);class i${updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,tR.Pn)(this.updatePoint)}constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=iQ(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(iK(t.x,e.x)**2+iK(t.y,e.y)**2)>=3);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=tR.frameData;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=i_(e,this.transformPagePoint),tR.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=iQ("pointercancel"===t.type?this.lastMoveEventInfo:i_(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!tB(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let s=i_(tO(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=tR.frameData;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,iQ(s,this.history)),this.removeListeners=tN(tW(this.contextWindow,"pointermove",this.handlePointerMove),tW(this.contextWindow,"pointerup",this.handlePointerUp),tW(this.contextWindow,"pointercancel",this.handlePointerUp))}}function i_(t,e){return e?{point:e(t.point)}:t}function iJ(t,e){return{x:t.x-e.x,y:t.y-e.y}}function iQ(t,e){let{point:i}=t;return{point:i,delta:iJ(i,i0(e)),offset:iJ(i,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=i0(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>et(.1)));)i--;if(!n)return{x:0,y:0};let s=ee(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function i0(t){return t[t.length-1]}function i1(t){return t.max-t.min}function i2(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.01;return Math.abs(t-e)<=i}function i3(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;t.origin=n,t.originPoint=ek(e.min,e.max,t.origin),t.scale=i1(i)/i1(e),(i2(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=ek(i.min,i.max,t.origin)-t.originPoint,(i2(t.translate)||isNaN(t.translate))&&(t.translate=0)}function i5(t,e,i,n){i3(t.x,e.x,i.x,n?n.originX:void 0),i3(t.y,e.y,i.y,n?n.originY:void 0)}function i4(t,e,i){t.min=i.min+e.min,t.max=t.min+i1(e)}function i9(t,e,i){t.min=e.min-i.min,t.max=t.min+i1(e)}function i6(t,e,i){i9(t.x,e.x,i.x),i9(t.y,e.y,i.y)}function i8(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function i7(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function nt(t,e,i){return{min:ne(t,e),max:ne(t,i)}}function ne(t,e){return"number"==typeof t?t:t[e]||0}let ni=()=>({translate:0,scale:1,origin:0,originPoint:0}),nn=()=>({x:ni(),y:ni()}),nr=()=>({min:0,max:0}),ns=()=>({x:nr(),y:nr()});function no(t){return[t("x"),t("y")]}function na(t){let{top:e,left:i,right:n,bottom:r}=t;return{x:{min:i,max:n},y:{min:e,max:r}}}function nl(t){return void 0===t||1===t}function nu(t){let{scale:e,scaleX:i,scaleY:n}=t;return!nl(e)||!nl(i)||!nl(n)}function nh(t){return nu(t)||nc(t)||t.z||t.rotate||t.rotateX||t.rotateY}function nc(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function nd(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function np(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;t.min=nd(t.min,e,i,n,r),t.max=nd(t.max,e,i,n,r)}function nm(t,e){let{x:i,y:n}=e;np(t.x,i.translate,i.scale,i.originPoint),np(t.y,n.translate,n.scale,n.originPoint)}function nf(t){return Number.isInteger(t)?t:t>1.0000000000001||t<.999999999999?t:1}function ng(t,e){t.min=t.min+e,t.max=t.max+e}function nv(t,e,i){let[n,r,s]=i,o=void 0!==e[s]?e[s]:.5,a=ek(t.min,t.max,o);np(t,e[n],e[r],a,e.scale)}let ny=["x","scaleX","originX"],nx=["y","scaleY","originY"];function nP(t,e){nv(t.x,e,ny),nv(t.y,e,nx)}function nb(t,e){return na(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let nw=t=>{let{current:e}=t;return e?e.ownerDocument.defaultView:null},nA=new WeakMap;class nT{start(t){let{snapToCursor:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new i$(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(tO(t,"page").point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=tY(i),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),no(t=>{let e=this.getAxisMotionValue(t).get()||0;if(te.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=i1(n);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),r&&tR.Wi.update(()=>r(t,e),!1,!0);let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openGlobalLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>no(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:nw(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:r}=this.getProps();r&&tR.Wi.update(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!nS(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,e,i){let{min:n,max:r}=e;return void 0!==n&&t<n?t=i?ek(n,t,i.min):Math.max(t,n):void 0!==r&&t>r&&(t=i?ek(r,t,i.max):Math.min(t,r)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,r=this.constraints;e&&v(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,e){let{top:i,left:n,bottom:r,right:s}=e;return{x:i8(t.x,n,s),y:i8(t.y,i,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.35;return!1===t?t=0:!0===t&&(t=.35),{x:nt(t,"left","right"),y:nt(t,"top","bottom")}}(i),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&no(t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!v(e))return!1;let n=e.current;(0,t7.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let s=function(t,e,i){let n=nb(t,i),{scroll:r}=e;return r&&(ng(n.x,r.offset.x),ng(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o={x:i7((t=r.layout.layoutBox).x,s.x),y:i7(t.y,s.y)};if(i){let t=i(function(t){let{x:e,y:i}=t;return{top:i.min,right:e.max,bottom:i.max,left:e.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=na(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(no(o=>{if(!nS(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return i.start(iS(t,i,0,e))}stopAnimation(){no(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){no(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e="_drag"+t.toUpperCase(),i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){no(e=>{let{drag:i}=this.getProps();if(!nS(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e];r.set(t[e]-ek(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!v(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};no(t=>{let e=this.getAxisMotionValue(t);if(e){let i=e.get();n[t]=function(t,e){let i=.5,n=i1(t),r=i1(e);return r>n?i=e_(e.min,e.max-n,t.min):n>r&&(i=e_(t.min,t.max-r,e.min)),H(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),no(e=>{if(!nS(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set(ek(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;nA.set(this.visualElement,this);let t=tW(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();v(t)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),e();let r=tF(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:i}=t;this.isDragging&&i&&(no(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ns(),this.visualElement=t}}function nS(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class nE extends tG{mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tJ.Z}unmount(){this.removeGroupControls(),this.removeListeners()}constructor(t){super(t),this.removeGroupControls=tJ.Z,this.removeListeners=tJ.Z,this.controls=new nT(t)}}let nV=t=>(e,i)=>{t&&tR.Wi.update(()=>t(e,i))};class nC extends tG{onPointerDown(t){this.session=new i$(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nw(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:nV(t),onStart:nV(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&tR.Wi.update(()=>n(t,e))}}}mount(){this.removePointerDownListener=tW(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}constructor(){super(...arguments),this.removePointerDownListener=tJ.Z}}let nM={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nk(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let nD={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!ti.test(t))return t;t=parseFloat(t)}let i=nk(t,e.target.x),n=nk(t,e.target.y);return"".concat(i,"% ").concat(n,"%")}};class nR extends a.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;Object.assign(L,nj),r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),nM.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,s=i.projection;return s&&(s.isPresent=r,n||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent===r||(r?s.promote():s.relegate()||tR.Wi.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),f.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nL(t){let[e,i]=function(){let t=(0,a.useContext)(h.O);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:n}=t,r=(0,a.useId)();return(0,a.useEffect)(()=>n(r),[]),!e&&i?[!1,()=>i&&i(r)]:[!0]}(),n=(0,a.useContext)(C.p);return a.createElement(nR,{...t,layoutGroup:n,switchLayoutGroup:(0,a.useContext)(M),isPresent:e,safeToRemove:i})}let nj={borderRadius:{...nD,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nD,borderTopRightRadius:nD,borderBottomLeftRadius:nD,borderBottomRightRadius:nD,boxShadow:{correct:(t,e)=>{let{treeScale:i,projectionDelta:n}=e,r=eY.parse(t);if(r.length>5)return t;let s=eY.createTransformer(t),o="number"!=typeof r[0]?1:0,a=n.x.scale*i.x,l=n.y.scale*i.y;r[0+o]/=a,r[1+o]/=l;let u=ek(a,l,.5);return"number"==typeof r[2+o]&&(r[2+o]/=u),"number"==typeof r[3+o]&&(r[3+o]/=u),s(r)}}},nF=["TopLeft","TopRight","BottomLeft","BottomRight"],nB=nF.length,nO=t=>"string"==typeof t?parseFloat(t):t,nI=t=>"number"==typeof t||ti.test(t);function nW(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nU=nZ(0,.5,ef),nN=nZ(.5,.95,tJ.Z);function nZ(t,e,i){return n=>n<t?0:n>e?1:i(e_(t,e,n))}function nz(t,e){t.min=e.min,t.max=e.max}function nH(t,e){nz(t.x,e.x),nz(t.y,e.y)}function nY(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function nX(t,e,i,n,r){let[s,o,a]=i;!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,r=arguments.length>4?arguments[4]:void 0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:t;if(te.test(e)&&(e=parseFloat(e),e=ek(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=ek(s.min,s.max,n);t===s&&(a-=e),t.min=nY(t.min,e,i,a,r),t.max=nY(t.max,e,i,a,r)}(t,e[s],e[o],e[a],e.scale,n,r)}let nG=["x","scaleX","originX"],nq=["y","scaleY","originY"];function nK(t,e,i,n){nX(t.x,e,nG,i?i.x:void 0,n?n.x:void 0),nX(t.y,e,nq,i?i.y:void 0,n?n.y:void 0)}function n$(t){return 0===t.translate&&1===t.scale}function n_(t){return n$(t.x)&&n$(t.y)}function nJ(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 nQ(t){return i1(t.x)/i1(t.y)}class n0{add(t){iC(this.members,t),t.scheduleRender()}remove(t){if(iM(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}constructor(){this.members=[]}}function n1(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y;if((r||s)&&(n="translate3d(".concat(r,"px, ").concat(s,"px, 0) ")),(1!==e.x||1!==e.y)&&(n+="scale(".concat(1/e.x,", ").concat(1/e.y,") ")),i){let{rotate:t,rotateX:e,rotateY:r}=i;t&&(n+="rotate(".concat(t,"deg) ")),e&&(n+="rotateX(".concat(e,"deg) ")),r&&(n+="rotateY(".concat(r,"deg) "))}let o=t.x.scale*e.x,a=t.y.scale*e.y;return(1!==o||1!==a)&&(n+="scale(".concat(o,", ").concat(a,")")),n||"none"}let n2=(t,e)=>t.depth-e.depth;class n3{add(t){iC(this.children,t),this.isDirty=!0}remove(t){iM(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(n2),this.isDirty=!1,this.children.forEach(t)}constructor(){this.children=[],this.isDirty=!1}}let n5=["","X","Y","Z"],n4={visibility:"hidden"},n9=0,n6={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function n8(t){let{attachResizeListener:e,defaultParent:i,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}=t;return class{addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new ik),this.eventHandlers.get(t).add(e)}notifyListeners(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];let r=this.eventHandlers.get(t);r&&r.notify(...i)}hasListeners(t){return this.eventHandlers.has(t)}mount(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root.hasTreeAnimated;if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:n,layout:r,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||n)&&(this.isLayoutDirty=!0),e){let i;let n=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=it.now(),n=r=>{let{timestamp:s}=r,o=s-i;o>=e&&((0,tR.Pn)(n),t(o-e))};return tR.Wi.read(n,!0),()=>(0,tR.Pn)(n)}(n,250),nM.hasAnimatedSinceResize&&(nM.hasAnimatedSinceResize=!1,this.nodes.forEach(ra))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&s&&(n||r)&&this.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:i,hasRelativeTargetChanged:n,layout:r}=t;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||s.getDefaultTransition()||rf,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=s.getProps(),u=!this.targetLayout||!nJ(this.targetLayout,r)||n,h=!i&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||i&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,h);let t={...iT(o,"layout"),onPlay:a,onComplete:l};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else i||ra(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,tR.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(rh),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rr);return}this.isUpdating||this.nodes.forEach(rs),this.isUpdating=!1,this.nodes.forEach(ro),this.nodes.forEach(n7),this.nodes.forEach(rt),this.clearAllSnapshots();let t=it.now();tR.frameData.delta=H(0,1e3/60,t-tR.frameData.timestamp),tR.frameData.timestamp=t,tR.frameData.isProcessing=!0,tR.S6.update.process(tR.frameData),tR.S6.preRender.process(tR.frameData),tR.S6.render.process(tR.frameData),tR.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,f.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(rn),this.sharedNodes.forEach(rc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tR.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tR.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ns(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",e=!!(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:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!n_(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&(e||nh(this.latestValues)||r)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(){var t;let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],i=this.measurePageBox(),n=this.removeElementScroll(i);return e&&(n=this.removeTransform(n)),ry((t=n).x),ry(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return ns();let e=t.measureViewportBox(),{scroll:i}=this.root;return i&&(ng(e.x,i.offset.x),ng(e.y,i.offset.y)),e}removeElementScroll(t){let e=ns();nH(e,t);for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;if(n!==this.root&&r&&s.layoutScroll){if(r.isRoot){nH(e,t);let{scroll:i}=this.root;i&&(ng(e.x,-i.offset.x),ng(e.y,-i.offset.y))}ng(e.x,r.offset.x),ng(e.y,r.offset.y)}}return e}applyTransform(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=ns();nH(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&nP(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),nh(n.latestValues)&&nP(i,n.latestValues)}return nh(this.latestValues)&&nP(i,this.latestValues),i}removeTransform(t){let e=ns();nH(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!nh(i.latestValues))continue;nu(i.latestValues)&&i.updateSnapshot();let n=ns();nH(n,i.measurePageBox()),nK(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return nh(this.latestValues)&&nK(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tR.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(){var t,e,i,n;let r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);let o=!!this.resumingFrom||this!==s;if(!(r||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=tR.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ns(),this.relativeTargetOrigin=ns(),i6(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),nH(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=ns(),this.targetWithTransforms=ns()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),e=this.target,i=this.relativeTarget,n=this.relativeParent.target,i4(e.x,i.x,n.x),i4(e.y,i.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nH(this.target,this.layout.layoutBox),nm(this.target,this.targetDelta)):nH(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ns(),this.relativeTargetOrigin=ns(),i6(this.relativeTargetOrigin,this.target,t.target),nH(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}n6.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||nu(this.parent.latestValues)||nc(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(n=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===tR.frameData.timestamp&&(n=!1),n)return;let{layout:r,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||s))return;nH(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,i){let n,r,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){r=(n=i[a]).projectionDelta;let o=n.instance;(!o||!o.style||"contents"!==o.style.display)&&(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&nP(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,nm(t,r)),s&&nh(n.latestValues)&&nP(t,n.latestValues))}e.x=nf(e.x),e.y=nf(e.y)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=ns());let{target:l}=e;if(!l){this.projectionTransform&&(this.projectionDelta=nn(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=nn(),this.projectionDeltaWithTransform=nn());let u=this.projectionTransform;i5(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=n1(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==o||this.treeScale.y!==a)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),n6.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(this.options.scheduleRender&&this.options.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t){let e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=nn();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let a=ns(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(rm));this.animationProgress=0,this.mixTargetDelta=i=>{let n=i/1e3;if(rd(o.x,t.x,n),rd(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,m;i6(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,rp(p.x,m.x,a.x,n),rp(p.y,m.y,a.y,n),e&&(u=this.relativeTarget,d=e,u.x.min===d.x.min&&u.x.max===d.x.max&&u.y.min===d.y.min&&u.y.max===d.y.max)&&(this.isProjectionDirty=!1),e||(e=ns()),nH(e,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=ek(0,void 0!==i.opacity?i.opacity:1,nU(n)),t.opacityExit=ek(void 0!==e.opacity?e.opacity:1,0,nN(n))):s&&(t.opacity=ek(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let r=0;r<nB;r++){let s="border".concat(nF[r],"Radius"),o=nW(e,s),a=nW(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||nI(o)===nI(a)?(t[s]=Math.max(ek(nO(o),nO(a),n),0),(te.test(a)||te.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=ek(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,tR.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tR.Wi.update(()=>{nM.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,i){let n=O(t)?t:ij(t);return n.start(iS("",n,1e3,i)),n.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&rx(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||ns();let e=i1(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=i1(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}nH(e,i),nP(e,r),i5(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new n0),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote(){let{needsReset:t,transition:e,preserveFollowOpacity:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.rotate||i.rotateX||i.rotateY||i.rotateZ)&&(e=!0),!e)return;let n={};for(let e=0;e<n5.length;e++){let r="rotate"+n5[e];i[r]&&(n[r]=i[r],t.setStaticValue(r,0))}for(let e in t.render(),n)t.setStaticValue(e,n[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return n4;let n={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=tk(null==t?void 0:t.pointerEvents)||"",n.transform=r?r(this.latestValues,""):"none",n;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=tk(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!nh(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let o=s.animationValues||s.latestValues;this.applyTransformsToTarget(),n.transform=n1(this.projectionDeltaWithTransform,this.treeScale,o),r&&(n.transform=r(o,n.transform));let{x:a,y:l}=this.projectionDelta;for(let t in n.transformOrigin="".concat(100*a.origin,"% ").concat(100*l.origin,"% 0"),s.animationValues?n.opacity=s===this?null!==(i=null!==(e=o.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:n.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,L){if(void 0===o[t])continue;let{correct:e,applyTo:i}=L[t],r="none"===n.transform?o[t]:e(o[t],s);if(i){let t=i.length;for(let e=0;e<t;e++)n[i[e]]=r}else n[t]=r}return this.options.layoutId&&(n.pointerEvents=s===this?tk(null==t?void 0:t.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(rr),this.root.sharedNodes.clear()}constructor(t={},e=null==i?void 0:i()){this.id=n9++,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=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,n6.totalNodes=n6.resolvedTargetDeltas=n6.recalculatedProjection=0,this.nodes.forEach(re),this.nodes.forEach(rl),this.nodes.forEach(ru),this.nodes.forEach(ri),window.MotionDebug&&window.MotionDebug.record(n6)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=e?e.root||e:this,this.path=e?[...e.path,e]:[],this.parent=e,this.depth=e?e.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new n3)}}}function n7(t){t.updateLayout()}function rt(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:r}=t.options,s=i.source!==t.layout.source;"size"===r?no(t=>{let n=s?i.measuredBox[t]:i.layoutBox[t],r=i1(n);n.min=e[t].min,n.max=n.min+r}):rx(r,i.layoutBox,e)&&no(n=>{let r=s?i.measuredBox[n]:i.layoutBox[n],o=i1(e[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=nn();i5(o,e,i.layoutBox);let a=nn();s?i5(a,t.applyTransform(n,!0),i.measuredBox):i5(a,e,i.layoutBox);let l=!n_(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=ns();i6(o,i.layoutBox,r.layoutBox);let a=ns();i6(a,e,s.layoutBox),nJ(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function re(t){n6.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ri(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function rn(t){t.clearSnapshot()}function rr(t){t.clearMeasurements()}function rs(t){t.isLayoutDirty=!1}function ro(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ra(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function rl(t){t.resolveTargetDelta()}function ru(t){t.calcProjection()}function rh(t){t.resetRotation()}function rc(t){t.removeLeadSnapshot()}function rd(t,e,i){t.translate=ek(e.translate,0,i),t.scale=ek(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function rp(t,e,i,n){t.min=ek(e.min,i.min,n),t.max=ek(e.max,i.max,n)}function rm(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let rf={duration:.45,ease:[.4,0,.1,1]},rg=t=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(t),rv=rg("applewebkit/")&&!rg("chrome/")?Math.round:tJ.Z;function ry(t){t.min=rv(t.min),t.max=rv(t.max)}function rx(t,e,i){return"position"===t||"preserve-aspect"===t&&!i2(nQ(e),nQ(i),.2)}let rP=n8({attachResizeListener:(t,e)=>tF(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rb={current:void 0},rw=n8({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rb.current){let t=new rP({});t.mount(window),t.setOptions({layoutScroll:!0}),rb.current=t}return rb.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),rA=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function rT(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;(0,t7.k)(i<=4,'Max CSS variable fallback depth detected in property "'.concat(t,'". This may indicate a circular fallback dependency.'));let[n,r]=function(t){let e=rA.exec(t);if(!e)return[,];let[,i,n]=e;return[i,n]}(t);if(!n)return;let s=window.getComputedStyle(e).getPropertyValue(n);if(s){let t=s.trim();return iV(t)?parseFloat(t):t}return Z(r)?rT(r,e,i+1):r}let rS=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),rE=t=>rS.has(t),rV=t=>Object.keys(t).some(rE),rC=t=>t===Y||t===ti,rM=(t,e)=>parseFloat(t.split(", ")[e]),rk=(t,e)=>(i,n)=>{let{transform:r}=n;if("none"===r||!r)return 0;let s=r.match(/^matrix3d\((.+)\)$/);if(s)return rM(s[1],e);{let e=r.match(/^matrix\((.+)\)$/);return e?rM(e[1],t):0}},rD=new Set(["x","y","z"]),rR=j.filter(t=>!rD.has(t)),rL={width:(t,e)=>{let{x:i}=t,{paddingLeft:n="0",paddingRight:r="0"}=e;return i.max-i.min-parseFloat(n)-parseFloat(r)},height:(t,e)=>{let{y:i}=t,{paddingTop:n="0",paddingBottom:r="0"}=e;return i.max-i.min-parseFloat(n)-parseFloat(r)},top:(t,e)=>{let{top:i}=e;return parseFloat(i)},left:(t,e)=>{let{left:i}=e;return parseFloat(i)},bottom:(t,e)=>{let{y:i}=t,{top:n}=e;return parseFloat(n)+(i.max-i.min)},right:(t,e)=>{let{x:i}=t,{left:n}=e;return parseFloat(n)+(i.max-i.min)},x:rk(4,13),y:rk(5,14)};rL.translateX=rL.x,rL.translateY=rL.y;let rj=(t,e,i)=>{let n=e.measureViewportBox(),r=e.current,s=getComputedStyle(r),{display:o}=s,a={};"none"===o&&e.setStaticValue("display",t.display||"block"),i.forEach(t=>{a[t]=rL[t](n,s)}),e.render();let l=e.measureViewportBox();return i.forEach(i=>{let n=e.getValue(i);n&&n.jump(a[i]),t[i]=rL[i](l,s)}),t},rF=function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e={...e},n={...n};let r=Object.keys(e).filter(rE),s=[],o=!1,a=[];if(r.forEach(r=>{let l;let u=t.getValue(r);if(!t.hasValue(r))return;let h=i[r],c=iO(h),d=e[r];if(tV(d)){let t=d.length,e=null===d[0]?1:0;c=iO(h=d[e]);for(let i=e;i<t&&null!==d[i];i++)l?(0,t7.k)(iO(d[i])===l,"All keyframes must be of the same type"):(l=iO(d[i]),(0,t7.k)(l===c||rC(c)&&rC(l),"Keyframes must be of the same dimension as the current value"))}else l=iO(d);if(c!==l){if(rC(c)&&rC(l)){let t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof d?e[r]=parseFloat(d):Array.isArray(d)&&l===ti&&(e[r]=d.map(parseFloat))}else(null==c?void 0:c.transform)&&(null==l?void 0:l.transform)&&(0===h||0===d)?0===h?u.set(l.transform(h)):e[r]=c.transform(d):(o||(s=function(t){let e=[];return rR.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e.length&&t.render(),e}(t),o=!0),a.push(r),n[r]=void 0!==n[r]?n[r]:e[r],u.jump(d))}}),!a.length)return{target:e,transitionEnd:n};{let i=a.indexOf("height")>=0?window.pageYOffset:null,r=rj(e,t,a);return s.length&&s.forEach(e=>{let[i,n]=e;t.getValue(i).set(n)}),t.render(),V.j&&null!==i&&window.scrollTo({top:i}),{target:r,transitionEnd:n}}},rB=(t,e,i,n)=>{var r,s;let o=function(t,e,i){let{...n}=e,r=t.current;if(!(r instanceof Element))return{target:n,transitionEnd:i};for(let e in i&&(i={...i}),t.values.forEach(t=>{let e=t.get();if(!Z(e))return;let i=rT(e,r);i&&t.set(i)}),n){let t=n[e];if(!Z(t))continue;let s=rT(t,r);s&&(n[e]=s,i||(i={}),void 0===i[e]&&(i[e]=t))}return{target:n,transitionEnd:i}}(t,e,n);return e=o.target,n=o.transitionEnd,r=e,s=n,rV(r)?rF(t,r,i,s):{target:r,transitionEnd:s}},rO={current:null},rI={current:!1},rW=new WeakMap,rU=Object.keys(E),rN=rU.length,rZ=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],rz=b.length;class rH{scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,rW.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),rI.current||function(){if(rI.current=!0,V.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>rO.current=t.matches;t.addListener(e),e()}else rO.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rO.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in rW.delete(this.current),this.projection&&this.projection.unmount(),(0,tR.Pn)(this.notifyUpdate),(0,tR.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){let i=F.has(t),n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tR.Wi.update(this.notifyUpdate,!1,!0),i&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{n(),r()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures(t,e,i,n){let r,s,{children:o,...a}=t;for(let t=0;t<rN;t++){let e=rU[t],{isEnabled:i,Feature:n,ProjectionNode:o,MeasureLayout:l}=E[e];o&&(r=o),i(a)&&(!this.features[e]&&n&&(this.features[e]=new n(this)),l&&(s=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&r){this.projection=new r(this.latestValues,this.parent&&this.parent.projection);let{layoutId:t,layout:e,drag:i,dragConstraints:s,layoutScroll:o,layoutRoot:l}=a;this.projection.setOptions({layoutId:t,layout:e,alwaysMeasureLayout:!!i||s&&v(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof e?e:"both",initialPromotionConfig:n,layoutScroll:o,layoutRoot:l})}return s}updateFeatures(){for(let t in this.features){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ns()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return this.makeTargetAnimatableFromInstance(t,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<rZ.length;e++){let i=rZ[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){let{willChange:n}=e;for(let r in e){let s=e[r],o=i[r];if(O(s))t.addValue(r,s),iE(n)&&n.add(r);else if(O(o))t.addValue(r,ij(s,{owner:t})),iE(n)&&n.remove(r);else if(o!==s){if(t.hasValue(r)){let e=t.getValue(r);e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(r);t.addValue(r,ij(void 0!==e?e:s,{owner:t}))}}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}let e={};for(let t=0;t<rz;t++){let i=b[t],n=this.props[i];(y(n)||!1===n)&&(e[i]=n)}return e}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=ij(e,{owner:this}),this.addValue(t,i)),i}readValue(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]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let{initial:i}=this.props,n="string"==typeof i||"object"==typeof i?null===(e=tS(this.props,i))||void 0===e?void 0:e[t]:void 0;if(i&&void 0!==n)return n;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||O(r)?void 0!==this.initialValues[t]&&void 0===n?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new ik),this.events[t].add(e)}notify(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];this.events[t]&&this.events[t].notify(...i)}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,visualState:r},s={}){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=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>tR.Wi.render(this.render,!1,!0);let{latestValues:o,renderState:a}=r;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=a,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=s,this.isControllingVariants=w(e),this.isVariantNode=A(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(e,{});for(let t in u){let e=u[t];void 0!==o[t]&&O(e)&&(e.set(o[t],!1),iE(l)&&l.add(t))}}}class rY extends rH{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,e){let{vars:i,style:n}=e;delete i[t],delete n[t]}makeTargetAnimatableFromInstance(t,e){let{transition:i,transitionEnd:n,...r}=t,s=function(t,e,i){let n={};for(let r in t){let t=function(t,e){if(e)return(e[t]||e.default||e).from}(r,e);if(void 0!==t)n[r]=t;else{let t=i.getValue(r);t&&(n[r]=t.get())}}return n}(r,i||{},this);if(e){!function(t,e,i){var n,r;let s=Object.keys(e).filter(e=>!t.hasValue(e)),o=s.length;if(o)for(let a=0;a<o;a++){let o=s[a],l=e[o],u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(r=null!==(n=i[o])&&void 0!==n?n:t.readValue(o))&&void 0!==r?r:e[o]),null!=u&&("string"==typeof u&&(iV(u)||iA(u))?u=parseFloat(u):!iW(u)&&eY.test(l)&&(u=iw(o,l)),t.addValue(o,ij(u,{owner:t})),void 0===i[o]&&(i[o]=u),null!==u&&t.setBaseTarget(o,u))}}(this,r,s);let t=rB(this,r,s,n);n=t.transitionEnd,r=t.target}return{transition:i,transitionEnd:n,...r}}}class rX extends rY{readValueFromInstance(t,e){if(F.has(e)){let t=ib(e);return t&&t.default||0}{let i=window.getComputedStyle(t),n=(N(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,e){let{transformPagePoint:i}=e;return nb(t,i)}build(t,e,i,n){tl(t,e,i,n.transformTemplate)}scrapeMotionValuesFromProps(t,e){return tA(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;O(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent="".concat(t))}))}renderInstance(t,e,i,n){tP(t,e,i,n)}constructor(){super(...arguments),this.type="html"}}class rG extends rY{getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(F.has(e)){let t=ib(e);return t&&t.default||0}return e=tb.has(e)?e:p(e),t.getAttribute(e)}measureInstanceViewportBox(){return ns()}scrapeMotionValuesFromProps(t,e){return tT(t,e)}build(t,e,i,n){tv(t,e,i,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,i,n){tw(t,e,i,n)}mount(t){this.isSVGTag=tx(t.tagName),super.mount(t)}constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}}let rq=(t,e)=>R(t)?new rG(e,{enableHardwareAcceleration:!1}):new rX(e,{enableHardwareAcceleration:!0}),rK={animation:{Feature:iX},exit:{Feature:iq},inView:{Feature:t9},tap:{Feature:t0},focus:{Feature:t$},hover:{Feature:tK},pan:{Feature:nC},drag:{Feature:nE,ProjectionNode:rw,MeasureLayout:nL},layout:{ProjectionNode:rw,MeasureLayout:nL}},r$=function(t){function e(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(t){let{preloadedFeatures:e,createVisualElement:i,useRender:n,useVisualState:r,Component:s}=t;e&&function(t){for(let e in t)E[e]={...E[e],...t[e]}}(e);let o=(0,a.forwardRef)(function(t,o){var p;let g;let x={...(0,a.useContext)(l),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,a.useContext)(C.p).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:P}=x,b=function(t){let{initial:e,animate:i}=function(t,e){if(w(t)){let{initial:e,animate:i}=t;return{initial:!1===e||y(e)?e:void 0,animate:y(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,a.useContext)(u));return(0,a.useMemo)(()=>({initial:e,animate:i}),[T(e),T(i)])}(t),A=r(t,P);if(!P&&V.j){b.visualElement=function(t,e,i,n){let{visualElement:r}=(0,a.useContext)(u),s=(0,a.useContext)(d),o=(0,a.useContext)(h.O),p=(0,a.useContext)(l).reducedMotion,g=(0,a.useRef)();n=n||s.renderer,!g.current&&n&&(g.current=n(t,{visualState:e,parent:r,props:i,presenceContext:o,blockInitialAnimation:!!o&&!1===o.initial,reducedMotionConfig:p}));let v=g.current;(0,a.useInsertionEffect)(()=>{v&&v.update(i,o)});let y=(0,a.useRef)(!!(i[m]&&!window.HandoffComplete));return(0,c.L)(()=>{v&&(f.postRender(v.render),y.current&&v.animationState&&v.animationState.animateChanges())}),(0,a.useEffect)(()=>{v&&(v.updateFeatures(),!y.current&&v.animationState&&v.animationState.animateChanges(),y.current&&(y.current=!1,window.HandoffComplete=!0))}),v}(s,A,x,i);let t=(0,a.useContext)(M),n=(0,a.useContext)(d).strict;b.visualElement&&(g=b.visualElement.loadFeatures(x,n,e,t))}return a.createElement(u.Provider,{value:b},g&&b.visualElement?a.createElement(g,{visualElement:b.visualElement,...x}):null,n(s,t,(p=b.visualElement,(0,a.useCallback)(t=>{t&&A.mount&&A.mount(t),p&&(t?p.mount(t):p.unmount()),o&&("function"==typeof o?o(t):v(o)&&(o.current=t))},[p])),A,P,b.visualElement))});return o[k]=s,o}(t(e,i))}if("undefined"==typeof Proxy)return e;let i=new Map;return new Proxy(e,{get:(t,n)=>(i.has(n)||i.set(n,e(n)),i.get(n))})}((t,e)=>(function(t,e,i,n){let{forwardMotionProps:r=!1}=e;return{...R(t)?tL:tj,preloadedFeatures:i,useRender:function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(e,i,n,r,s)=>{let{latestValues:o}=r,l=(R(e)?function(t,e,i,n){let r=(0,a.useMemo)(()=>{let i=ty();return tv(i,e,{enableHardwareAcceleration:!1},tx(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};th(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e,i){let n={},r=function(t,e,i){let n=t.style||{},r={};return th(r,n,t),Object.assign(r,function(t,e,i){let{transformTemplate:n}=t;return(0,a.useMemo)(()=>{let t=tu();return tl(t,e,{enableHardwareAcceleration:!i},n),Object.assign({},t.vars,t.style)},[e])}(t,e,i)),r}(t,e,i);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n})(i,o,s,e),u={...function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(tp(r)||!0===i&&td(r)||!e&&!td(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(i,"string"==typeof e,t),...l,ref:n},{children:h}=i,c=(0,a.useMemo)(()=>O(h)?h.get():h,[h]);return(0,a.createElement)(e,{...u,children:c})}}(r),createVisualElement:n,Component:t}})(t,e,rK,rq))},6832:function(t,e,i){i.d(e,{c:function(){return n}});let n={skipAnimations:!1,useManualTiming:!1}},9908:function(t,e,i){i.d(e,{K:function(){return r},k:function(){return s}});var n=i(3393);let r=n.Z,s=n.Z},1702:function(t,e,i){i.d(e,{j:function(){return n}});let n="undefined"!=typeof document},3393:function(t,e,i){i.d(e,{Z:function(){return n}});let n=t=>t},2435:function(t,e,i){i.d(e,{h:function(){return r}});var n=i(4090);function r(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},5526:function(t,e,i){i.d(e,{L:function(){return r}});var n=i(4090);let r=i(1702).j?n.useLayoutEffect:n.useEffect}}]);