1try{let t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="af878f84-3c43-4d93-9811-1f7e89d67937",t._sentryDebugIdIdentifier="sentry-dbid-af878f84-3c43-4d93-9811-1f7e89d67937")}catch(t){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3053],{43014:function(t,e,i){i.r(e),i.d(e,{invariant:function(){return r},warning:function(){return n}});var n=function(){},r=function(){}},50728:function(t,e,i){i.d(e,{p:function(){return n}});let n=(0,i(7653).createContext)({})},11668:function(t,e,i){i.d(e,{_:function(){return n}});let n=(0,i(7653).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},14:function(t,e,i){i.d(e,{O:function(){return n}});let n=(0,i(7653).createContext)(null)},24642:function(t,e,i){i.d(e,{frameData:function(){return n}});let n={delta:0,timestamp:0}},12737:function(t,e,i){i.d(e,{qY:function(){return p},iW:function(){return f},Z_:function(){return d}});let n=1/60*1e3,r="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),o="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(r()),n);var s=i(24642);let a=!0,l=!1,u=!1,h=["read","update","preRender","render","postRender"],c=h.reduce((t,e)=>(t[e]=function(t){let e=[],i=[],n=0,r=!1,o=!1,s=new WeakSet,a={schedule:(t,o=!1,a=!1)=>{let l=a&&r,u=l?e:i;return o&&s.add(t),-1===u.indexOf(t)&&(u.push(t),l&&r&&(n=e.length)),t},cancel:t=>{let e=i.indexOf(t);-1!==e&&i.splice(e,1),s.delete(t)},process:l=>{if(r){o=!0;return}if(r=!0,[e,i]=[i,e],i.length=0,n=e.length)for(let i=0;i<n;i++){let n=e[i];n(l),s.has(n)&&(a.schedule(n),t())}r=!1,o&&(o=!1,a.process(l))}};return a}(()=>l=!0),t),{}),d=h.reduce((t,e)=>{let i=c[e];return t[e]=(t,e=!1,n=!1)=>(l||g(),i.schedule(t,e,n)),t},{}),p=h.reduce((t,e)=>(t[e]=c[e].cancel,t),{}),f=h.reduce((t,e)=>(t[e]=()=>c[e].process(s.frameData),t),{}),m=t=>c[t].process(s.frameData),v=t=>{l=!1,s.frameData.delta=a?n:Math.max(Math.min(t-s.frameData.timestamp,40),1),s.frameData.timestamp=t,u=!0,h.forEach(m),u=!1,l&&(a=!1,o(v))},g=()=>{l=!0,a=!0,u||o(v)}},3053:function(t,e,i){i.d(e,{E:function(){return ru}});var n,r,o,s,a,l=i(7653),u=i(11668);let h=(0,l.createContext)({});var c=i(14),d=i(98739);let p=(0,l.createContext)({strict:!1});function f(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function m(t){return"string"==typeof t||Array.isArray(t)}function v(t){return"object"==typeof t&&"function"==typeof t.start}let g=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function y(t){return v(t.animate)||g.some(e=>m(t[e]))}function x(t){return!!(y(t)||t.variants)}function b(t){return Array.isArray(t)?t.join(" "):t}let w=t=>({isEnabled:e=>t.some(t=>!!e[t])}),V={measureLayout:w(["layout","layoutId","drag"]),animation:w(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:w(["exit"]),drag:w(["drag","dragControls"]),focus:w(["whileFocus"]),hover:w(["whileHover","onHoverStart","onHoverEnd"]),tap:w(["whileTap","onTap","onTapStart","onTapCancel"]),pan:w(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:w(["whileInView","onViewportEnter","onViewportLeave"])};var A=i(80226),P=i(2415);let T={hasAnimatedSinceResize:!0,hasEverUpdated:!1},E=1;var C=i(50728);class S extends l.Component{getSnapshotBeforeUpdate(){let{visualElement:t,props:e}=this.props;return t&&t.setProps(e),null}componentDidUpdate(){}render(){return this.props.children}}let M=(0,l.createContext)({}),D=Symbol.for("motionComponentSymbol"),R=["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 k(t){if("string"!=typeof t||t.includes("-"));else if(R.indexOf(t)>-1||/[A-Z]/.test(t))return!0;return!1}let L={},B=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],F=new Set(B);function j(t,{layout:e,layoutId:i}){return F.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!L[t]||"opacity"===t)}var O=i(21826);let I={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},$=(t,e)=>B.indexOf(t)-B.indexOf(e);function U(t){return t.startsWith("--")}let N=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var W=i(37822),z=i(31150);let Y={...W.Rx,transform:Math.round},H={borderWidth:z.px,borderTopWidth:z.px,borderRightWidth:z.px,borderBottomWidth:z.px,borderLeftWidth:z.px,borderRadius:z.px,radius:z.px,borderTopLeftRadius:z.px,borderTopRightRadius:z.px,borderBottomRightRadius:z.px,borderBottomLeftRadius:z.px,width:z.px,maxWidth:z.px,height:z.px,maxHeight:z.px,size:z.px,top:z.px,right:z.px,bottom:z.px,left:z.px,padding:z.px,paddingTop:z.px,paddingRight:z.px,paddingBottom:z.px,paddingLeft:z.px,margin:z.px,marginTop:z.px,marginRight:z.px,marginBottom:z.px,marginLeft:z.px,rotate:z.RW,rotateX:z.RW,rotateY:z.RW,rotateZ:z.RW,scale:W.bA,scaleX:W.bA,scaleY:W.bA,scaleZ:W.bA,skew:z.RW,skewX:z.RW,skewY:z.RW,distance:z.px,translateX:z.px,translateY:z.px,translateZ:z.px,x:z.px,y:z.px,z:z.px,perspective:z.px,transformPerspective:z.px,opacity:W.Fq,originX:z.$C,originY:z.$C,originZ:z.px,zIndex:Y,fillOpacity:W.Fq,strokeOpacity:W.Fq,numOctaves:Y};function q(t,e,i,n){let{style:r,vars:o,transform:s,transformKeys:a,transformOrigin:l}=t;a.length=0;let u=!1,h=!1,c=!0;for(let t in e){let i=e[t];if(U(t)){o[t]=i;continue}let n=H[t],d=N(i,n);if(F.has(t)){if(u=!0,s[t]=d,a.push(t),!c)continue;i!==(n.default||0)&&(c=!1)}else t.startsWith("origin")?(h=!0,l[t]=d):r[t]=d}if(!e.transform&&(u||n?r.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:i=!0,allowTransformNone:n=!0},r,o){let s="";for(let i of(e.sort($),e))s+=`${I[i]||i}(${t[i]}) `;return i&&!t.z&&(s+="translateZ(0)"),s=s.trim(),o?s=o(t,r?"":s):n&&r&&(s="none"),s}(t,i,c,n):r.transform&&(r.transform="none")),h){let{originX:t="50%",originY:e="50%",originZ:i=0}=l;r.transformOrigin=`${t} ${e} ${i}`}}let _=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});
1function Z(t,e,i){for(let n in e)(0,O.i)(e[n])||j(n,i)||(t[n]=e[n])}let X=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function G(t){return X.has(t)}let K=t=>!G(t);try{(n=require("@emotion/is-prop-valid").default)&&(K=t=>t.startsWith("on")?!G(t):n(t))}catch(t){}function J(t,e,i){return"string"==typeof t?t:z.px.transform(e+i*t)}let Q={offset:"stroke-dashoffset",array:"stroke-dasharray"},tt={offset:"strokeDashoffset",array:"strokeDasharray"};function te(t,{attrX:e,attrY:i,originX:n,originY:r,pathLength:o,pathSpacing:s=1,pathOffset:a=0,...l},u,h,c){if(q(t,l,u,c),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:p,dimensions:f}=t;d.transform&&(f&&(p.transform=d.transform),delete d.transform),f&&(void 0!==n||void 0!==r||p.transform)&&(p.transformOrigin=function(t,e,i){let n=J(e,t.x,t.width),r=J(i,t.y,t.height);return`${n} ${r}`}(f,void 0!==n?n:.5,void 0!==r?r:.5)),void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==o&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let o=r?Q:tt;t[o.offset]=z.px.transform(-n);let s=z.px.transform(e),a=z.px.transform(i);t[o.array]=`${s} ${a}`}(d,o,s,a,!1)}let ti=()=>({..._(),attrs:{}}),tn=t=>"string"==typeof t&&"svg"===t.toLowerCase(),tr=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function to(t,{style:e,vars:i},n,r){for(let o in Object.assign(t.style,e,r&&r.getProjectionStyles(n)),i)t.style.setProperty(o,i[o])}let ts=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 ta(t,e,i,n){for(let i in to(t,e,void 0,n),e.attrs)t.setAttribute(ts.has(i)?i:tr(i),e.attrs[i])}function tl(t){let{style:e}=t,i={};for(let n in e)((0,O.i)(e[n])||j(n,t))&&(i[n]=e[n]);return i}function tu(t){let e=tl(t);for(let i in t)(0,O.i)(t[i])&&(e["x"===i||"y"===i?"attr"+i.toUpperCase():i]=t[i]);return e}function th(t,e,i,n={},r={}){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}let tc=t=>Array.isArray(t),td=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),tp=t=>tc(t)?t[t.length-1]||0:t;function tf(t){let e=(0,O.i)(t)?t.get():t;return td(e)?e.toValue():e}let tm=t=>(e,i)=>{let n=(0,l.useContext)(h),r=(0,l.useContext)(c.O),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:i},n,r,o){let s={latestValues:function(t,e,i,n){let r={},o=n(t);for(let t in o)r[t]=tf(o[t]);let{initial:s,animate:a}=t,l=y(t),u=x(t);e&&u&&!l&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===s)?a:s;return c&&"boolean"!=typeof c&&!v(c)&&(Array.isArray(c)?c:[c]).forEach(e=>{let i=th(t,e);if(!i)return;let{transitionEnd:n,transition:o,...s}=i;for(let t in s){let e=s[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}(n,r,o,t),renderState:e()};return i&&(s.mount=t=>i(n,t,s)),s})(t,e,n,r);return i?o():(0,P.h)(o)},tv={useVisualState:tm({scrapeMotionValuesFromProps:tu,createRenderState:ti,onMount:(t,e,{renderState:i,latestValues:n})=>{try{i.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}te(i,n,{enableHardwareAcceleration:!1},tn(e.tagName),t.transformTemplate),ta(e,i)}})},tg={useVisualState:tm({scrapeMotionValuesFromProps:tl,createRenderState:_})};function ty(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}function tx(t,e,i,n){(0,l.useEffect)(()=>{let r=t.current;if(i&&r)return ty(r,e,i,n)},[t,e,i,n])}function tb(t){return"undefined"!=typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}(r=s||(s={})).Animate="animate",r.Hover="whileHover",r.Tap="whileTap",r.Drag="whileDrag",r.Focus="whileFocus",r.InView="whileInView",r.Exit="exit";let tw={pageX:0,pageY:0};function tV(t,e="page"){return{point:t.touches?function(t,e="page"){let i=t.touches[0]||t.changedTouches[0]||tw;return{x:i[e+"X"],y:i[e+"Y"]}}(t,e):function(t,e="page"){return{x:t[e+"X"],y:t[e+"Y"]}}(t,e)}}let tA=(t,e=!1)=>{let i=e=>t(e,tV(e));return e?t=>{let e=t instanceof MouseEvent;(!e||e&&0===t.button)&&i(t)}:i},tP=()=>A.j&&null===window.onpointerdown,tT=()=>A.j&&null===window.ontouchstart,tE=()=>A.j&&null===window.onmousedown,tC={pointerdown:"mousedown",pointermove:"mou
1semove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},tS={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function tM(t){if(tP());else if(tT())return tS[t];else if(tE())return tC[t];return t}function tD(t,e,i,n){return ty(t,tM(e),tA(i,"pointerdown"===e),n)}function tR(t,e,i,n){return tx(t,tM(e),i&&tA(i,"pointerdown"===e),n)}function tk(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let tL=tk("dragHorizontal"),tB=tk("dragVertical");function tF(t){let e=!1;if("y"===t)e=tB();else if("x"===t)e=tL();else{let t=tL(),i=tB();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function tj(){let t=tF(!0);return!t||(t(),!1)}function tO(t,e,i){return(n,r)=>{!(!tb(n)||tj())&&(t.animationState&&t.animationState.setActive(s.Hover,e),i&&i(n,r))}}let tI=(t,e)=>!!e&&(t===e||tI(t,e.parentElement));var t$=i(81536),tU=i(50970),tN=i(91334),tW=i(12884);let tz=new WeakMap,tY=new WeakMap,tH=t=>{let e=tz.get(t.target);e&&e(t)},tq=t=>{t.forEach(tH)},t_={some:0,all:1},tZ=t=>e=>(t(e),null),tX={inView:tZ(function({visualElement:t,whileInView:e,onViewportEnter:i,onViewportLeave:n,viewport:r={}}){let o=(0,l.useRef)({hasEnteredView:!1,isInView:!1}),a=!!(e||i||n);r.once&&o.current.hasEnteredView&&(a=!1),("undefined"==typeof IntersectionObserver?function(t,e,i,{fallback:n=!0}){(0,l.useEffect)(()=>{t&&n&&("production"!==tN.O&&(0,tW.O)(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{e.hasEnteredView=!0;let{onViewportEnter:t}=i.getProps();t&&t(null),i.animationState&&i.animationState.setActive(s.InView,!0)}))},[t])}:function(t,e,i,{root:n,margin:r,amount:o="some",once:a}){(0,l.useEffect)(()=>{if(!t||!i.current)return;let l={root:null==n?void 0:n.current,rootMargin:r,threshold:"number"==typeof o?o:t_[o]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;tY.has(i)||tY.set(i,{});let n=tY.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(tq,{root:t,...e})),n[r]}(e);return tz.set(t,i),n.observe(t),()=>{tz.delete(t),n.unobserve(t)}}(i.current,l,t=>{let{isIntersecting:n}=t;if(e.isInView===n||(e.isInView=n,a&&!n&&e.hasEnteredView))return;n&&(e.hasEnteredView=!0),i.animationState&&i.animationState.setActive(s.InView,n);let r=i.getProps(),o=n?r.onViewportEnter:r.onViewportLeave;o&&o(t)})},[t,n,r,o])})(a,o.current,t,r)}),tap:tZ(function({onTap:t,onTapStart:e,onTapCancel:i,whileTap:n,visualElement:r}){let o=t||e||i||n,a=(0,l.useRef)(!1),u=(0,l.useRef)(null),h={passive:!(e||t||i||m)};function c(){u.current&&u.current(),u.current=null}function d(){return c(),a.current=!1,r.animationState&&r.animationState.setActive(s.Tap,!1),!tj()}function p(e,n){d()&&(tI(r.current,e.target)?t&&t(e,n):i&&i(e,n))}function f(t,e){d()&&i&&i(t,e)}function m(t,i){c(),!a.current&&(a.current=!0,u.current=(0,tU.z)(tD(window,"pointerup",p,h),tD(window,"pointercancel",f,h)),r.animationState&&r.animationState.setActive(s.Tap,!0),e&&e(t,i))}tR(r,"pointerdown",o?m:void 0,h),(0,t$.z)(c)}),focus:tZ(function({whileFocus:t,visualElement:e}){let{animationState:i}=e;tx(e,"focus",t?()=>{i&&i.setActive(s.Focus,!0)}:void 0),tx(e,"blur",t?()=>{i&&i.setActive(s.Focus,!1)}:void 0)}),hover:tZ(function({onHoverStart:t,onHoverEnd:e,whileHover:i,visualElement:n}){tR(n,"pointerenter",t||i?tO(n,!0,t):void 0,{passive:!t}),tR(n,"pointerleave",e||i?tO(n,!1,e):void 0,{passive:!e})})};function tG(){let t=(0,l.useContext)(c.O);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:n}=t,r=(0,l.useId)();return(0,l.useEffect)(()=>n(r),[]),!e&&i?[!1,()=>i&&i(r)]:[!0]}function tK(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}let tJ=t=>/^\-?\d*\.?\d+$/.test(t),tQ=t=>/^0[^.\s]+$/.test(t);var t0=i(90039),t1=i(75301),t3=i(79680);let t2=new Set(["brightness","contrast","saturate","opacity"]);function t5(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(t3.KP)||[];if(!n)return t;let r=i.replace(n,""),o=t2.has(e)?1:0;return n!==i&&(o*=100),e+"("+o+r+")"}let t9=/([a-z-]*)\(.*?\)/g,t7={...t1.P,getAnimatableNone:t=>{let e=t.match(t9);return e?e.map(t5).join(" "):t}};var t6=i(38180);let t8={...H,color:t6.$,backgroundColor:t6.$,outlineColor:t6.$,fill:t6.$,stroke:t6.$,borderColor:t6.$,borderTopColor:t6.$,borderRightColor:t6.$,borderBottomColor:t6.$,borderLeftColor:t6.$,filter:t7,WebkitFilter:t7},t4=t=>t8[t];function et(t,e){var i;let n=t4(t);return n!==t7&&(n=t1.P),null===(i=n.getAnimatableNone)||void 0===i?void 0:i.call(n,e)}let ee=t=>e=>e.test(t),ei=[W.Rx,z.px,z.aQ,z.RW,z.vw,z.vh,{test:t=>"auto"===t,parse:t=>t}],en=t=>ei.find(ee(t)),er=[...ei,t6.$,t1.P],eo=t=>er.find(ee(t));function es(t,e,i){let n=t.getProps();return th(n,e,void 0!==i?i:n.custom,function(t){let e={};
1return 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))}function ea(t){return!!((0,O.i)(t)&&t.add)}var el=i(12737);let eu=(t,e)=>`${t}: ${e}`,eh="data-"+tr("framerAppearId");var ec=i(43014);let ed=t=>1e3*t,ep={current:!1},ef=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,em=t=>e=>1-t(1-e),ev=t=>t*t,eg=em(ev),ey=ef(ev);var ex=i(39017);let eb=t=>t,ew=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function eV(t,e,i,n){if(t===e&&i===n)return eb;let r=e=>(function(t,e,i,n,r){let o,s;let a=0;do(o=ew(s=e+(i-e)/2,n,r)-t)>0?i=s:e=s;while(Math.abs(o)>1e-7&&++a<12);return s})(e,0,1,t,i);return t=>0===t||1===t?t:ew(r(t),e,n)}let eA=t=>1-Math.sin(Math.acos(t)),eP=em(eA),eT=ef(eP),eE=eV(.33,1.53,.69,.99),eC=em(eE),eS=ef(eC),eM={linear:eb,easeIn:ev,easeInOut:ey,easeOut:eg,circIn:eA,circInOut:eT,circOut:eP,backIn:eC,backInOut:eS,backOut:eE,anticipate:t=>(t*=2)<1?.5*eC(t):.5*(2-Math.pow(2,-10*(t-1)))},eD=t=>{if(Array.isArray(t)){(0,ec.invariant)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,r]=t;return eV(e,i,n,r)}return"string"==typeof t?((0,ec.invariant)(void 0!==eM[t],`Invalid easing type '${t}'`),eM[t]):t},eR=t=>Array.isArray(t)&&"number"!=typeof t[0];function ek({keyframes:t,ease:e=ey,times:i,duration:n=300}){t=[...t];let r=ek[0],o=eR(e)?e.map(eD):eD(e),s={done:!1,value:r},a=(i&&i.length===ek.length?i:function(t){let e=t.length;return t.map((t,i)=>0!==i?i/(e-1):0)}(t)).map(t=>t*n);function l(){var e;return(0,ex.s)(a,t,{ease:Array.isArray(o)?o:(e=t).map(()=>o||ey).splice(0,e.length-1)})}let u=l();return{next:t=>(s.value=u(t),s.done=t>=n,s),flipTarget:()=>{t.reverse(),u=l()}}}var eL=i(3983);function eB(t,e){return t*Math.sqrt(1-e*e)}var eF=i(2365);let ej=["duration","bounce"],eO=["stiffness","damping","mass"];function eI(t,e){return e.some(e=>void 0!==t[e])}function e$({keyframes:t,restSpeed:e=2,restDelta:i=.01,...n}){let r=t[0],o=t[t.length-1],s={done:!1,value:r},{stiffness:a,damping:l,mass:u,velocity:h,duration:c,isResolvedFromDuration:d}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!eI(t,eO)&&eI(t,ej)){let i=function({duration:t=800,bounce:e=.25,velocity:i=0,mass:n=1}){let r,o;(0,ec.warning)(t<=1e4,"Spring duration must be 10 seconds or less");let s=1-e;s=(0,eL.u)(.05,1,s),t=(0,eL.u)(.01,10,t/1e3),s<1?(r=e=>{let n=e*s,r=n*t;return .001-(n-i)/eB(e,s)*Math.exp(-r)},o=e=>{let n=e*s*t,o=Math.pow(s,2)*Math.pow(e,2)*t,a=eB(Math.pow(e,2),s);return(n*i+i-o)*Math.exp(-n)*(-r(e)+.001>0?-1:1)/a}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),o=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,o,5/t);if(t*=1e3,isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*s*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,velocity:0,mass:1}).isResolvedFromDuration=!0}return e}
1(n),p=eU,f=h?-(h/1e3):0,m=l/(2*Math.sqrt(a*u));function v(){let t=o-r,e=Math.sqrt(a/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(o-r)/100,.4)),m<1){let i=eB(e,m);p=n=>o-Math.exp(-m*e*n)*((f+m*e*t)/i*Math.sin(i*n)+t*Math.cos(i*n))}else if(1===m)p=i=>o-Math.exp(-e*i)*(t+(f+e*t)*i);else{let i=e*Math.sqrt(m*m-1);p=n=>{let r=Math.exp(-m*e*n),s=Math.min(i*n,300);return o-r*((f+m*e*t)*Math.sinh(s)+i*t*Math.cosh(s))/i}}}return v(),{next:t=>{let n=p(t);if(d)s.done=t>=c;else{let r=f;if(0!==t){if(m<1){let e=Math.max(0,t-5);r=(0,eF.R)(n-p(e),t-e)}else r=0}let a=Math.abs(r)<=e,l=Math.abs(o-n)<=i;s.done=a&&l}return s.value=s.done?o:n,s},flipTarget:()=>{f=-f,[r,o]=[o,r],v()}}}e$.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;let eU=t=>0,eN={decay:function({keyframes:t=[0],velocity:e=0,power:i=.8,timeConstant:n=350,restDelta:r=.5,modifyTarget:o}){let s=t[0],a={done:!1,value:s},l=i*e,u=s+l,h=void 0===o?u:o(u);return h!==u&&(l=h-s),{next:t=>{let e=-l*Math.exp(-t/n);return a.done=!(e>r||e<-r),a.value=a.done?h:h+e,a},flipTarget:()=>{}}},keyframes:ek,tween:ek,spring:e$};function eW(t,e,i=0){return t-e-i}let ez=t=>{let e=({delta:e})=>t(e);return{start:()=>el.Z_.update(e,!0),stop:()=>el.qY.update(e)}};function eY({duration:t,driver:e=ez,elapsed:i=0,repeat:n=0,repeatType:r="loop",repeatDelay:o=0,keyframes:s,autoplay:a=!0,onPlay:l,onStop:u,onComplete:h,onRepeat:c,onUpdate:d,type:p="keyframes",...f}){var m;let v,g,y;let x=0,b=t,w=!1,V=!0,A=eN[s.length>2?"keyframes":p],P=s[0],T=s[s.length-1];(null===(m=A.needsInterpolation)||void 0===m?void 0:m.call(A,P,T))&&(y=(0,ex.s)([0,100],[P,T],{clamp:!1}),s=[0,100]);let E=A({...f,duration:t,keyframes:s});return a&&(l&&l(),(v=e(function(t){if(V||(t=-t),i+=t,!w){let t=E.next(Math.max(0,i));g=t.value,y&&(g=y(g)),w=V?t.done:i<=0}if(d&&d(g),w){if(0===x&&(b=void 0!==b?b:i),x<n){var e,s;e=i,s=b,(V?e>=s+o:e<=-o)&&(x++,"reverse"===r?i=function(t,e=0,i=0,n=!0){return n?eW(e+-t,e,i):e-(t-e)+i}(i,b,o,V=x%2==0):(i=eW(i,b,o),"mirror"===r&&E.flipTarget()),w=!1,c&&c())}else v.stop(),h&&h()}})).start()),{stop:()=>{u&&u(),v.stop()},sample:t=>E.next(Math.max(0,t))}}let eH=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,eq={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:eH([0,.65,.55,1]),circOut:eH([.55,0,1,.45]),backIn:eH([.31,.01,.66,-.59]),backOut:eH([.33,1.53,.69,.99])};function e_(t,e){let i=performance.now(),n=({timestamp:r})=>{let o=r-i;o>=e&&(el.qY.read(n),t(o-e))};return el.Z_.read(n,!0),()=>el.qY.read(n)}var eZ=i(24642);let eX=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),eG=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),eK=()=>({type:"keyframes",ease:"linear",duration:.3}),eJ={type:"keyframes",duration:.8},eQ={x:eX,y:eX,z:eX,rotate:eX,rotateX:eX,rotateY:eX,rotateZ:eX,scaleX:eG,scaleY:eG,scale:eG,opacity:eK,backgroundColor:eK,color:eK,default:eG},e0=(t,{keyframes:e})=>e.length>2?eJ:(eQ[t]||eQ.default)(e[1]),e1=(t,e)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&t1.P.test(e)&&!e.startsWith("url("));function e3(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function e2(t){return"number"==typeof t?0:et("",t)}function e5(t,e){return t[e]||t.default||t}let e9={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},e7={},e6={};for(let t in e9)e6[t]=()=>(void 0===e7[t]&&(e7[t]=e9[t]()),e7[t]);let e8=new Set(["opacity"]),e4=(t,e,i,n={})=>r=>{let o=e5(n,t)||{},s=o.delay||n.delay||0,{elapsed:a=0}=n;a-=ed(s);let l=function(t,e,i,n){let r=e1(e,i),o=void 0!==n.from?n.from:t.get();return("none"===o&&r&&"string"==typeof i?o=et(e,i):e3(o)&&"string"==typeof i?o=e2(i):!Array.isArray(i)&&e3(i)&&"string"==typeof o&&(i=e2(o)),Array.isArray(i))?(null===i[0]&&(i[0]=o),i):[o,i]}(e,t,i,o),u=l[0],h=l[l.length-1],c=e1(t,u),d=e1(t,h);(0,ec.warning)(c===d,`You are trying to animate ${t} from "${u}" to "${h}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${h} via the \`style\` property.`);let p={keyframes:l,velocity:e.getVelocity(),...o,elapsed:a,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{r(),o.onComplete&&o.onComplete()}};if(!c||!d||ep.current||!1===o.type)return function({keyframes:t,elapsed:e,onUpdate:i,onComplete:n}){let r=()=>(i&&i(t[t.length-1]),n&&n(),()=>{});return e?e_(r,-e):r()}(p);if("inertia"===o.type){let t=function({keyframes:t,velocity:e=0,min:i,max:n,power:r=.8,timeConstant:o=750,bounceStiffness:s=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:u,driver:h,onUpdate:c,onComplete:d,onStop:p}){let f;let m=t[0];function v(t){return void 0!==i&&t<i||void 0!==n&&t>n}function g(t){return void 0===i?n:void 0===n?i:Math.abs(i-t)<Math.abs(n-t)?i:n}function y(t){null==f||f.stop(),f=eY({keyframes:[0,1],velocity:0,...t,driver:h,onUpdate:e=>{var i;null==c||c(e),null===(i=t.onUpdate)||void 0===i||i.call(t,e)},onComplete:d,onStop:p})}function x(t){y({type:"spring",stiffness:s,damping:a,restDelta:l,...t})}if(v(m))x({velocity:e,keyframes:[m,g(m)]});else{let t,n,s=r*e+m;void 0!==u&&(s=u(s));let a=g(s),h=a===i?-1:1;y({type:"decay",keyframes:[m,0],velocity:e,timeConstant:o,power:r,restDelta:l,modifyTarget:u,onUpdate:v(s)?i=>{t=n,n=i,e=(0,eF.R)(i-t,eZ.frameData.delta),(1===h&&i>a||-1===h&&i<a)&&x({keyframes:[i,a],velocity:e})}:void 0})}return{stop:()=>null==f?void 0:f.stop()}}(p);return()=>t.stop()}!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:o,repeatType:s,repeatDelay:a,from:l,...u}){return!!Object.keys(u).length}(o)&&(p={...p,...e0(t,p)}),p.duration&&(p.duration=ed(p.duration)),p.repeatDelay&&(p.repeatDelay=ed(p.repeatDelay));let f=e.owner,m=f&&f.current;if(e6.waapi()&&e8.has(t)&&!p.repeatDelay&&"mirror"!==p.repeatType&&0!==
1p.damping&&f&&m instanceof HTMLElement&&!f.getProps().onUpdate)return function(t,e,{onUpdate:i,onComplete:n,...r}){var o;let{keyframes:s,duration:a=.3,elapsed:l=0,ease:u}=r;if("spring"===r.type||!(!(o=r.ease)||Array.isArray(o)||"string"==typeof o&&eq[o])){let t=eY(r),e={done:!1,value:s[0]},i=[],n=0;for(;!e.done;)e=t.sample(n),i.push(e.value),n+=10;s=i,a=n-10,u="linear"}let h=function(t,e,i,{delay:n=0,duration:r,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){return t.animate({[e]:i,offset:l},{delay:n,duration:r,easing:function(t){if(t)return Array.isArray(t)?eH(t):eq[t]}(a),fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(t.owner.current,e,s,{...r,delay:-l,duration:a,ease:u});return h.onfinish=()=>{t.set(s[s.length-1]),n&&n()},()=>{let{currentTime:e}=h;if(e){let i=eY(r);t.setWithVelocity(i.sample(e-10).value,i.sample(e).value,10)}el.Z_.update(()=>h.cancel())}}(e,t,p);{let t=eY(p);return()=>t.stop()}};function it(t,e,i={}){var n;let r=es(t,e,i.custom),{transition:o=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(o=i.transitionOverride);let s=r?()=>ie(t,r,i):()=>Promise.resolve(),a=(null===(n=t.variantChildren)||void 0===n?void 0:n.size)?(n=0)=>{let{delayChildren:r=0,staggerChildren:s,staggerDirection:a}=o;return function(t,e,i=0,n=0,r=1,o){let s=[],a=(t.variantChildren.size-1)*n,l=1===r?(t=0)=>t*n:(t=0)=>a-t*n;return Array.from(t.variantChildren).sort(ii).forEach((t,n)=>{s.push(it(t,e,{...o,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(s)}(t,e,r+n,s,a,i)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([s(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[s,a]:[a,s];return t().then(e)}}function ie(t,e,{delay:i=0,transitionOverride:n,type:r}={}){var o;let{transition:s=t.getDefaultTransition(),transitionEnd:a,...l}=t.makeTargetAnimatable(e),u=t.getValue("willChange");n&&(s=n);let h=[],c=r&&(null===(o=t.animationState)||void 0===o?void 0:o.getState()[r]);for(let e in l){let n=t.getValue(e),r=l[e];if(!n||void 0===r||c&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(c,e))continue;let o={delay:i,elapsed:0,...s};if(t.shouldReduceMotion&&F.has(e)&&(o={...o,type:!1,delay:0}),!n.hasAnimated){let i=t.getProps()[eh];i&&(o.elapsed=function(t,e){let{MotionAppearAnimations:i}=window,n=eu(t,F.has(e)?"transform":e),r=i&&i.get(n);return r?(el.Z_.render(()=>{try{r.cancel(),i.delete(n)}catch(t){}}),r.currentTime||0):0}(i,e))}let a=n.start(e4(e,n,r,o));ea(u)&&(u.add(e),a=a.then(()=>u.remove(e))),h.push(a)}return Promise.all(h).then(()=>{a&&function(t,e){let i=es(t,e),{transitionEnd:n={},transition:r={},...o}=i?t.makeTargetAnimatable(i,!1):{};for(let e in o={...o,...n}){let i=tp(o[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,t0.B)(i))}}(t,a)})}function ii(t,e){return t.sortNodePosition(e)}let ir=[s.Animate,s.InView,s.Focus,s.Hover,s.Tap,s.Drag,s.Exit],io=[...ir].reverse(),is=ir.length;function ia(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let il={animation:tZ(({visualElement:t,animate:e})=>{t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>it(t,e,i)));else if("string"==typeof e)n=it(t,e,i);else{let r="function"==typeof e?es(t,e,i.custom):e;n=ie(t,r,i)}return n.then(()=>t.notify("AnimationComplete",e))})(t,e,i))),i={[s.Animate]:ia(!0),[s.InView]:ia(),[s.Hover]:ia(),[s.Tap]:ia(),[s.Drag]:ia(),[s.Focus]:ia(),[s.Exit]:ia()},n=!0,r=(e,i)=>{let n=es(t,i);if(n){let{transition:t,transitionEnd:i,...r}=n;e={...e,...r,...i}}return e};function o(o,s){let a=t.getProps(),l=t.getVariantContext(!0)||{},u=[],h=new Set,c={},d=1/0;for(let e=0;e<is;e++){var p;let f=io[e],g=i[f],y=void 0!==a[f]?a[f]:l[f],x=m(y),b=f===s?g.isActive:null;!1===b&&(d=e);let w=y===l[f]&&y!==a[f]&&x;if(w&&n&&t.manuallyAnimateOnMount&&(w=!1),g.protectedKeys={...c},!g.isActive&&null===b||!y&&!g.prevProp||v(y)||"boolean"==typeof y)continue;let V=(p=g.prevProp,"string"==typeof y?y!==p:!!Array.isArray(y)&&!tK(y,p)),A=V||f===s&&g.isActive&&!w&&x||e>d&&x,P=Array.isArray(y)?y:[y],T=P.reduce(r,{});!1===b&&(T={});let{prevResolvedValues:E={}}=g,C={...E,...T},S=t=>{A=!0,h.delete(t),g.needsAnimating[t]=!0}
1;for(let t in C){let e=T[t],i=E[t];c.hasOwnProperty(t)||(e!==i?tc(e)&&tc(i)?!tK(e,i)||V?S(t):g.protectedKeys[t]=!0:void 0!==e?S(t):h.add(t):void 0!==e&&h.has(t)?S(t):g.protectedKeys[t]=!0)}g.prevProp=y,g.prevResolvedValues=T,g.isActive&&(c={...c,...T}),n&&t.blockInitialAnimation&&(A=!1),A&&!w&&u.push(...P.map(t=>({animation:t,options:{type:f,...o}})))}if(h.size){let e={};h.forEach(i=>{let n=t.getBaseTarget(i);void 0!==n&&(e[i]=n)}),u.push({animation:e})}let f=!!u.length;return n&&!1===a.initial&&!t.manuallyAnimateOnMount&&(f=!1),n=!1,f?e(u):Promise.resolve()}return{animateChanges:o,setActive:function(e,n,r){var s;if(i[e].isActive===n)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,n)}),i[e].isActive=n;let a=o(r,e);for(let t in i)i[t].protectedKeys={};return a},setAnimateFunction:function(i){e=i(t)},getState:()=>i}}(t)),v(e)&&(0,l.useEffect)(()=>e.subscribe(t),[e])}),exit:tZ(t=>{let{custom:e,visualElement:i}=t,[n,r]=tG(),o=(0,l.useContext)(c.O);(0,l.useEffect)(()=>{i.isPresent=n;let t=i.animationState&&i.animationState.setActive(s.Exit,!n,{custom:o&&o.custom||e});t&&!n&&t.then(r)},[n])})},iu=(t,e)=>Math.abs(t-e);class ih{constructor(t,e,{transformPagePoint:i}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=ip(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(iu(t.x,e.x)**2+iu(t.y,e.y)**2)>=3);if(!n&&!r)return;let{point:o}=i,{timestamp:s}=eZ.frameData;this.history.push({...o,timestamp:s});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)=>{if(this.lastMoveEvent=t,this.lastMoveEventInfo=ic(e,this.transformPagePoint),tb(t)&&0===t.buttons){this.handlePointerUp(t,e);return}el.Z_.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n}=this.handlers,r=ip(ic(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},t.touches&&t.touches.length>1)return;this.handlers=e,this.transformPagePoint=i;let n=ic(tV(t),this.transformPagePoint),{point:r}=n,{timestamp:o}=eZ.frameData;this.history=[{...r,timestamp:o}];let{onSessionStart:s}=e;s&&s(t,ip(n,this.history)),this.removeListeners=(0,tU.z)(tD(window,"pointermove",this.handlePointerMove),tD(window,"pointerup",this.handlePointerUp),tD(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),el.qY.update(this.updatePoint)}}function ic(t,e){return e?{point:e(t.point)}:t}function id(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ip({point:t},e){return{point:t,delta:id(t,im(e)),offset:id(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=im(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>ed(.1)));)i--;if(!n)return{x:0,y:0};let o=(r.timestamp-n.timestamp)/1e3;if(0===o)return{x:0,y:0};let s={x:(r.x-n.x)/o,y:(r.y-n.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e,0)}}function im(t){return t[t.length-1]}var iv=i(99075),ig=i(43640);function iy(t){return t.max-t.min}function ix(t,e=0,i=.01){return Math.abs(t-e)<=i}function ib(t,e,i,n=.5){t.origin=n,t.originPoint=(0,ig.C)(e.min,e.max,t.origin),t.scale=iy(i)/iy(e),(ix(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=(0,ig.C)(i.min,i.max,t.origin)-t.originPoint,(ix(t.translate)||isNaN(t.translate))&&(t.translate=0)}function iw(t,e,i,n){ib(t.x,e.x,i.x,null==n?void 0:n.originX),ib(t.y,e.y,i.y,null==n?void 0:n.originY)}function iV(t,e,i){t.min=i.min+e.min,t.max=t.min+iy(e)}function iA(t,e,i){t.min=e.min-i.min,t.max=t.min+iy(e)}function iP(t,e,i){iA(t.x,e.x,i.x),iA(t.y,e.y,i.y)}function iT(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 iE(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 iC(t,e,i){return{min:iS(t,e),max:iS(t,i)}}function iS(t,e){return"number"==typeof t?t:t[e]||0}let iM=()=>({translate:0,scale:1,origin:0,originPoint:0}),iD=()=>({x:iM(),y:iM()}),iR=()=>({min:0,max:0}),ik=()=>({x:iR(),y:iR()});function iL(t){return[t("x"),t("y")]}function iB({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function iF(t){return void 0===t||1===t}function ij({scale:t,scaleX:e,scaleY:i}){return!iF(t)||!iF(e)||!iF(i)}function iO(t){return ij(t)||iI(t)||t.z||t.rotate||t.rotateX||t.rotateY}function iI(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function i$(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function iU(t,e=0,i=1,n,r){t.min=i$(t.min,e,i,n,r),t.max=i$(t.max,e,i,n,r)}function iN(t,{x:e,y:i}){iU(t.x,e.translate,e.scale,e.originPoint),iU(t.y,i.translate,i.scale,i.originPoint)}function iW(t){return Number.isInteger(t)?t:t>1.0000000000001||t<.999999999999?t:1}function iz(t,e){t.min=t.min+e,t.max=t.max+e}function iY(t,e,[i,n,r]){let o=void 0!==e[r]?e[r]:.5,s=(0,ig.C)(t.min,t.max,o);iU(t,e[i],e[n],s,e.scale)}let iH=["x","scaleX","originX"],iq=["y","scaleY","originY"];function i_(t,e){iY(t.x,e,iH),iY(t.y,e,iq)}function iZ(t,e){return iB(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 iX=new WeakMap;class iG{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=ik(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){!1!==this.visualElement.isPresent&&(this.panSession=new ih(t,{onSessionStart:t=>{this.stopAnimation(),e&&this.snapToCursor(tV(t,"page").point)},onStart:(t,e)=>{var i;let{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();(!n||r||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=tF(n),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iL(t=>{var e,i;let n=this.getAxisMotionValue(t).get()||0;if(z.aQ.test(n)){let r=null===(i=null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout)||void 0===i?void 0:i.layoutBox[t];if(r){let t=iy(r);n=parseFloat(n)/100*t}}this.originPoint[t]=n}),null==o||o(t,e),null===(i=this.visualElement.animationState)||void 0===i||i.setActive(s.Drag,!0))},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:o}=this.getProps();if(!i&&!this.openGlobalLock)return;let{offset:s}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(s),null!==this.currentDirection&&(null==r||r(this.currentDirection));return}this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),null==o||o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:r}=this.getProps();null==r||r(t,e)}cancel(){var t,e;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(t=this.panSession)||void 0===t||t.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(e=this.visualElement.animationState)||void 0===e||e.setActive(s.Drag,!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!iK(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),o=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?(0,ig.C)(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?(0,ig.C)(i,t,n.max):Math.min(t,i)),t}(o,this.constraints[t],this.elastic[t])),r.set(o)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:i}=this.visualElement.projection||{},n=this.constraints;t&&f(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:iT(t.x,i,r),y:iT(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:iC(t,"left","right"),y:iC(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&iL(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}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!f(e))return!1;let n=e.current;(0,ec.invariant)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;
1let o=function(t,e,i){let n=iZ(t,i),{scroll:r}=e;return r&&(iz(n.x,r.offset.x),iz(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),s={x:iE((t=r.layout.layoutBox).x,o.x),y:iE(t.y,o.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(s));this.hasMutatedConstraints=!!t,t&&(s=iB(t))}return s}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(iL(s=>{if(!iK(s,e,this.currentDirection))return;let l=(null==a?void 0:a[s])||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[s]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return i.start(e4(t,i,0,e))}stopAnimation(){iL(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var e;let i="_drag"+t.toUpperCase();return this.visualElement.getProps()[i]||this.visualElement.getValue(t,(null===(e=this.visualElement.getProps().initial)||void 0===e?void 0:e[t])||0)}snapToCursor(t){iL(e=>{let{drag:i}=this.getProps();if(!iK(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:o}=n.layout.layoutBox[e];r.set(t[e]-(0,ig.C)(i,o,.5))}})}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;let{drag:e,dragConstraints:i}=this.getProps(),{projection:n}=this.visualElement;if(!f(i)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};iL(t=>{let e=this.getAxisMotionValue(t);if(e){let i=e.get();r[t]=function(t,e){let i=.5,n=iy(t),r=iy(e);return r>n?i=(0,iv.Y)(e.min,e.max-n,t.min):n>r&&(i=(0,iv.Y)(t.min,t.max-r,e.min)),(0,eL.u)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",null===(t=n.root)||void 0===t||t.updateScroll(),n.updateLayout(),this.resolveConstraints(),iL(t=>{if(!iK(t,e,null))return;let i=this.getAxisMotionValue(t),{min:n,max:o}=this.constraints[t];i.set((0,ig.C)(n,o,r[t]))})}addListeners(){var t;if(!this.visualElement.current)return;iX.set(this.visualElement,this);let e=tD(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),i=()=>{let{dragConstraints:t}=this.getProps();f(t)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",i);n&&!n.layout&&(null===(t=n.root)||void 0===t||t.updateScroll(),n.updateLayout()),i();let o=ty(window,"resize",()=>this.scalePositionWithinConstraints()),s=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(iL(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),e(),r(),null==s||s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:o=.35,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:o,dragMomentum:s}}}function iK(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let iJ={pan:tZ(function({onPan:t,onPanStart:e,onPanEnd:i,onPanSessionStart:n,visualElement:r}){let o=(0,l.useRef)(null),{transformPagePoint:s}=(0,l.useContext)(u._),a={onSessionStart:n,onStart:e,onMove:t,onEnd:(t,e)=>{o.current=null,i&&i(t,e)}};(0,l.useEffect)(()=>{null!==o.current&&o.current.updateHandlers(a)}),tR(r,"pointerdown",(t||e||i||n)&&function(t){o.current=new ih(t,a,{transformPagePoint:s})}),(0,t$.z)(()=>o.current&&o.current.end())}),drag:tZ(function(t){let{dragControls:e,visualElement:i}=t,n=(0,P.h)(()=>new iG(i));(0,l.useEffect)(()=>e&&e.subscribe(n),[n,e]),(0,l.useEffect)(()=>n.addListeners(),[n])})};function iQ(t){return"string"==typeof t&&t.startsWith("var(--")}let i0=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function i1(t,e,i=1){(0,ec.invariant)(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[n,r]=function(t){let e=i0.exec(t);if(!e)return[,];let[,i,n]=e;return[i,n]}(t);if(!n)return;let o=window.getComputedStyle(e).getPropertyValue(n);return o?o.trim():iQ(r)?i1(r,e,i+1):r}let i3=new Set(["width","height","top","left","right","bottom","x","y"]),i2=t=>i3.has(t),i5=t=>Object.keys(t).some(i2),i9=(t,e)=>{t.set(e,!1),t.set(e)},i7=t=>t===W.Rx||t===z.px;(o=a||(a={})).width="width",o.height="height",o.left="left",o.right="right",o.top="top",o.bottom="bottom";let i6=(t,e)=>parseFloat(t.split(", ")[e]),i8=(t,e)=>(i,{transform:n})=>{if("none"===n||!n)return 0;let r=n.match(/^matrix3d\((.+)\)$/);if(r)return i6(r[1],e);{let e=n.match(/^matrix\((.+)\)$/);return e?i6(e[1],t):0}},i4=new Set(["x","y","z"]),nt=B.filter(t=>!i4.has(t)),ne={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:i8(4,13),y:i8(5,14)},ni=(t,e,i)=>{let n=e.measureViewportBox(),r=getComputedStyle(e.current),{display:o}=r,s={};"none"===o&&e.setStaticValue("display",t.display||"block"),i.forEac
1h(t=>{s[t]=ne[t](n,r)}),e.render();let a=e.measureViewportBox();return i.forEach(i=>{i9(e.getValue(i),s[i]),t[i]=ne[i](a,r)}),t},nn=(t,e,i={},n={})=>{e={...e},n={...n};let r=Object.keys(e).filter(i2),o=[],s=!1,a=[];if(r.forEach(r=>{let l;let u=t.getValue(r);if(!t.hasValue(r))return;let h=i[r],c=en(h),d=e[r];if(tc(d)){let t=d.length,e=null===d[0]?1:0;c=en(h=d[e]);for(let i=e;i<t;i++)l?(0,ec.invariant)(en(d[i])===l,"All keyframes must be of the same type"):(l=en(d[i]),(0,ec.invariant)(l===c||i7(c)&&i7(l),"Keyframes must be of the same dimension as the current value"))}else l=en(d);if(c!==l){if(i7(c)&&i7(l)){let t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof d?e[r]=parseFloat(d):Array.isArray(d)&&l===z.px&&(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):(s||(o=function(t){let e=[];return nt.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),s=!0),a.push(r),n[r]=void 0!==n[r]?n[r]:e[r],i9(u,d))}}),!a.length)return{target:e,transitionEnd:n};{let i=a.indexOf("height")>=0?window.pageYOffset:null,r=ni(e,t,a);return o.length&&o.forEach(([e,i])=>{t.getValue(e).set(i)}),t.render(),A.j&&null!==i&&window.scrollTo({top:i}),{target:r,transitionEnd:n}}},nr=(t,e,i,n)=>{var r,o;let s=function(t,{...e},i){let n=t.current;if(!(n instanceof Element))return{target:e,transitionEnd:i};for(let r in i&&(i={...i}),t.values.forEach(t=>{let e=t.get();if(!iQ(e))return;let i=i1(e,n);i&&t.set(i)}),e){let t=e[r];if(!iQ(t))continue;let o=i1(t,n);o&&(e[r]=o,i&&void 0===i[r]&&(i[r]=t))}return{target:e,transitionEnd:i}}(t,e,n);return e=s.target,n=s.transitionEnd,r=e,o=n,i5(r)?nn(t,r,i,o):{target:r,transitionEnd:o}},no={current:null},ns={current:!1};var na=i(39311);let nl=Object.keys(V),nu=nl.length,nh=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class nc{constructor({parent:t,props:e,reducedMotionConfig:i,visualState:n},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,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=()=>el.Z_.render(this.render,!1,!0);let{latestValues:o,renderState:s}=n;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=s,this.parent=t,this.props=e,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=r,this.isControllingVariants=y(e),this.isVariantNode=x(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:a,...l}=this.scrapeMotionValuesFromProps(e);for(let t in l){let e=l[t];void 0!==o[t]&&(0,O.i)(e)&&(e.set(o[t],!1),ea(a)&&a.add(t))}}scrapeMotionValuesFromProps(t){return{}}mount(t){var e;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(e=this.parent)||void 0===e?void 0:e.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),ns.current||function(){if(ns.current=!0,A.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>no.current=t.matches;t.addListener(e),e()}else no.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||no.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,e,i;for(let n in null===(t=this.projection)||void 0===t||t.unmount(),el.qY.update(this.notifyUpdate),el.qY.render(this.render),this.valueSubscriptions.forEach(t=>t()),null===(e=this.removeFromVariantTree)||void 0===e||e.call(this),null===(i=this.parent)||void 0===i||i.children.delete(this),this.events)this.events[n].clear();this.current=null}bindToMotionValue(t,e){let i=F.has(t),n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&el.Z_.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,r,o){let s=[];"production"!==tN.O&&i&&e&&(0,ec.invariant)(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let e=0;e<nu;e++){let i=nl[e],{isEnabled:n,Component:r}=V[i];n(t)&&r&&s.push((0,l.createElement)(r,{key:i,...t,visualElement:this}))}if(!this.projection&&r){this.projection=new r(n,this.latestValues,this.parent&&this.parent.projection);let{layoutId:e,layout:i,drag:s,dragConstraints:a,layoutScroll:l}=t;this.projection.setOptions({layoutId:e,layout:i,alwaysMeasureLayout:!!s||a&&f(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof i?i:"both",initialPromotionConfig:o,layoutScroll:l})}return s}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ik()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=t;for(let e=0;e<nh.length;e++){let i=nh[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}
1this.prevMotionValues=function(t,e,i){let{willChange:n}=e;for(let r in e){let o=e[r],s=i[r];if((0,O.i)(o))t.addValue(r,o),ea(n)&&n.add(r);else if((0,O.i)(s))t.addValue(r,(0,t0.B)(o,{owner:t})),ea(n)&&n.remove(r);else if(s!==o){if(t.hasValue(r)){let e=t.getValue(r);e.hasAnimated||e.set(o)}else{let e=t.getStaticValue(r);t.addValue(r,(0,t0.B)(void 0!==e?e:o))}}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t),this.prevMotionValues)}getProps(){return this.props}getVariant(t){var e;return null===(e=this.props.variants)||void 0===e?void 0:e[t]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var t;return this.isVariantNode?this:null===(t=this.parent)||void 0===t?void 0:t.getClosestVariantNode()}getVariantContext(t=!1){var e,i;if(t)return null===(e=this.parent)||void 0===e?void 0:e.getVariantContext();if(!this.isControllingVariants){let t=(null===(i=this.parent)||void 0===i?void 0:i.getVariantContext())||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}let n={};for(let t=0;t<np;t++){let e=nd[t],i=this.props[e];(m(i)||!1===i)&&(n[e]=i)}return n}addVariantChild(t){var e;let i=this.getClosestVariantNode();if(i)return null===(e=i.variantChildren)||void 0===e||e.add(t),()=>i.variantChildren.delete(t)}addValue(t,e){this.hasValue(t)&&this.removeValue(t),this.values.set(t,e),this.latestValues[t]=e.get(),this.bindToMotionValue(t,e)}removeValue(t){var e;this.values.delete(t),null===(e=this.valueSubscriptions.get(t))||void 0===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=(0,t0.B)(e,{owner:this}),this.addValue(t,i)),i}readValue(t){return void 0===this.latestValues[t]&&this.current?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=th(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||(0,O.i)(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 na.L),this.events[t].add(e)}notify(t,...e){var i;null===(i=this.events[t])||void 0===i||i.notify(...e)}}let nd=["initial",...ir],np=nd.length;class nf extends nc{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){var i;return null===(i=t.style)||void 0===i?void 0:i[e]}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...i},{transformValues:n},r){let o=function(t,e,i){var n;let r={};for(let o in t){let t=function(t,e){if(e)return(e[t]||e.default||e).from}(o,e);r[o]=void 0!==t?t:null===(n=i.getValue(o))||void 0===n?void 0:n.get()}return r}(i,t||{},this);if(n&&(e&&(e=n(e)),i&&(i=n(i)),o&&(o=n(o))),r){!function(t,e,i){var n,r;let o=Object.keys(e).filter(e=>!t.hasValue(e)),s=o.length;if(s)for(let a=0;a<s;a++){let s=o[a],l=e[s],u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(r=null!==(n=i[s])&&void 0!==n?n:t.readValue(s))&&void 0!==r?r:e[s]),null!=u&&("string"==typeof u&&(tJ(u)||tQ(u))?u=parseFloat(u):!eo(u)&&t1.P.test(l)&&(u=et(s,l)),t.addValue(s,(0,t0.B)(u,{owner:t})),void 0===i[s]&&(i[s]=u),null!==u&&t.setBaseTarget(s,u))}}(this,i,o);let t=nr(this,i,o,e);e=t.transitionEnd,i=t.target}return{transition:t,transitionEnd:e,...i}}}class nm extends nf{readValueFromInstance(t,e){if(F.has(e)){let t=t4(e);return t&&t.default||0}{let i=window.getComputedStyle(t),n=(U(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return iZ(t,e)}build(t,e,i,n){q(t,e,i,n.transformTemplate)}scrapeMotionValuesFromProps(t){return tl(t)}renderInstance(t,e,i,n){to(t,e,i,n)}}class nv extends nf{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){var i;return F.has(e)?(null===(i=t4(e))||void 0===i?void 0:i.default)||0:(e=ts.has(e)?e:tr(e),t.getAttribute(e))}measureInstanceViewportBox(){return ik()}scrapeMotionValuesFromProps(t){return tu(t)}
1build(t,e,i,n){te(t,e,i,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,i,n){ta(t,e,i,n)}mount(t){this.isSVGTag=tn(t.tagName),super.mount(t)}}let ng=(t,e)=>k(t)?new nv(e,{enableHardwareAcceleration:!1}):new nm(e,{enableHardwareAcceleration:!0});function ny(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let nx={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!z.px.test(t))return t;t=parseFloat(t)}let i=ny(t,e.target.x),n=ny(t,e.target.y);return`${i}% ${n}%`}},nb="_$css",nw={correct:(t,{treeScale:e,projectionDelta:i})=>{let n=t,r=t.includes("var("),o=[];r&&(t=t.replace(i0,t=>(o.push(t),nb)));let s=t1.P.parse(t);if(s.length>5)return n;let a=t1.P.createTransformer(t),l="number"!=typeof s[0]?1:0,u=i.x.scale*e.x,h=i.y.scale*e.y;s[0+l]/=u,s[1+l]/=h;let c=(0,ig.C)(u,h,.5);"number"==typeof s[2+l]&&(s[2+l]/=c),"number"==typeof s[3+l]&&(s[3+l]/=c);let d=a(s);if(r){let t=0;d=d.replace(nb,()=>{let e=o[t];return t++,e})}return d}};class nV extends l.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;Object.assign(L,nA),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()})),T.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,o=i.projection;return o&&(o.isPresent=r,n||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent===r||(r?o.promote():o.relegate()||el.Z_.postRender(()=>{var t;(null===(t=o.getStack())||void 0===t?void 0:t.members.length)||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),(null==e?void 0:e.group)&&e.group.remove(n),(null==i?void 0:i.deregister)&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;null==t||t()}render(){return null}}let nA={borderRadius:{...nx,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nx,borderTopRightRadius:nx,borderBottomLeftRadius:nx,borderBottomRightRadius:nx,boxShadow:nw},nP=["TopLeft","TopRight","BottomLeft","BottomRight"],nT=nP.length,nE=t=>"string"==typeof t?parseFloat(t):t,nC=t=>"number"==typeof t||z.px.test(t);function nS(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nM=nR(0,.5,eP),nD=nR(.5,.95,eb);function nR(t,e,i){return n=>n<t?0:n>e?1:i((0,iv.Y)(t,e,n))}function nk(t,e){t.min=e.min,t.max=e.max}function nL(t,e){nk(t.x,e.x),nk(t.y,e.y)}function nB(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 nF(t,e,[i,n,r],o,s){!function(t,e=0,i=1,n=.5,r,o=t,s=t){if(z.aQ.test(e)&&(e=parseFloat(e),e=(0,ig.C)(s.min,s.max,e/100)-s.min),"number"!=typeof e)return;let a=(0,ig.C)(o.min,o.max,n);t===o&&(a-=e),t.min=nB(t.min,e,i,a,r),t.max=nB(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,o,s)}let nj=["x","scaleX","originX"],nO=["y","scaleY","originY"];function nI(t,e,i,n){nF(t.x,e,nj,null==i?void 0:i.x,null==n?void 0:n.x),nF(t.y,e,nO,null==i?void 0:i.y,null==n?void 0:n.y)}function n$(t){return 0===t.translate&&1===t.scale}function nU(t){return n$(t.x)&&n$(t.y)}function nN(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function nW(t){return iy(t.x)/iy(t.y)}var nz=i(3779);class nY{constructor(){this.members=[]}add(t){(0,nz.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,nz.cl)(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){var i;let n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),(null===(i=t.root)||void 0===i?void 0:i.isUpdating)&&(t.isLayoutDirty=!0);let{crossfade:r}=t.options;!1===r&&n.hide()}}
1exitAnimationComplete(){this.members.forEach(t=>{var e,i,n,r,o;null===(i=(e=t.options).onExitComplete)||void 0===i||i.call(e),null===(o=null===(n=t.resumingFrom)||void 0===n?void 0:(r=n.options).onExitComplete)||void 0===o||o.call(r)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function nH(t,e,i){let n="",r=t.x.translate/e.x,o=t.y.translate/e.y;if((r||o)&&(n=`translate3d(${r}px, ${o}px, 0) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{rotate:t,rotateX:e,rotateY:r}=i;t&&(n+=`rotate(${t}deg) `),e&&(n+=`rotateX(${e}deg) `),r&&(n+=`rotateY(${r}deg) `)}let s=t.x.scale*e.x,a=t.y.scale*e.y;return(1!==s||1!==a)&&(n+=`scale(${s}, ${a})`),n||"none"}let nq=(t,e)=>t.depth-e.depth;class n_{constructor(){this.children=[],this.isDirty=!1}add(t){(0,nz.y4)(this.children,t),this.isDirty=!0}remove(t){(0,nz.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nq),this.isDirty=!1,this.children.forEach(t)}}let nZ=["","X","Y","Z"],nX=0;function nG({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t,i={},n=null==e?void 0:e()){this.id=nX++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!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.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(nQ),this.nodes.forEach(n5),this.nodes.forEach(n9)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=t,this.latestValues=i,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new n_)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new na.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);null==i||i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}registerPotentialNode(t,e){this.potentialNodes.set(t,e)}mount(e,i=!1){var n;if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:r,layout:o,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),null===(n=this.parent)||void 0===n||n.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),i&&(o||r)&&(this.isLayoutDirty=!0),t){let i;let n=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=e_(n,250),T.hasAnimatedSinceResize&&(T.hasAnimatedSinceResize=!1,this.nodes.forEach(n2))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&s&&(r||o)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:n})=>{var r,o,a,l,u;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let h=null!==(o=null!==(r=this.options.transition)&&void 0!==r?r:s.getDefaultTransition())&&void 0!==o?o:re,{onLayoutAnimationStart:c,onLayoutAnimationComplete:d}=s.getProps(),p=!this.targetLayout||!nN(this.targetLayout,n)||i,f=!e&&i;if((null===(a=this.resumeFrom)||void 0===a?void 0:a.instance)||f||e&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,f);let e={...e5(h,"layout"),onPlay:c,onComplete:d};s.shouldReduceMotion&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||0!==this.animationProgress||n2(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=n})}unmount(){var t,e;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(t=this.getStack())||void 0===t||t.remove(this),null===(e=this.parent)||void 0===e||e.children.delete(this),this.instance=void 0,el.qY.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var t;return this.isAnimationBlocked||(null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimationBlocked())||!1}startUpdate(){var t;!this.isUpdateBlocked()&&(this.isUpdating=!0,null===(t=this.nodes)||void 0===t||t.forEach(n7),this.animationId++)}willUpdate(t=!0){var e,i,n;if(this.root.isUpdateBlocked()){null===(i=(e=this.options).onExitComplete)||void 0===i||i.call(e);return}
1if(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")}let{layoutId:r,layout:o}=this.options;if(void 0===r&&!o)return;let s=null===(n=this.options.visualElement)||void 0===n?void 0:n.getProps().transformTemplate;this.prevTransformTemplateValue=null==s?void 0:s(this.latestValues,""),this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(n1);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(ri),this.potentialNodes.clear()),this.nodes.forEach(n3),this.nodes.forEach(nK),this.nodes.forEach(nJ),this.clearAllSnapshots(),el.iW.update(),el.iW.preRender(),el.iW.render())}clearAllSnapshots(){this.nodes.forEach(n0),this.sharedNodes.forEach(n6)}scheduleUpdateProjection(){el.Z_.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){el.Z_.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){var t;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 e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ik(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),null===(t=this.options.visualElement)||void 0===t||t.notify("LayoutMeasure",this.layout.layoutBox,null==e?void 0:e.layoutBox)}updateScroll(t="measure"){let 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:n(this.instance),offset:i(this.instance)})}resetTransform(){var t;if(!r)return;let e=this.isLayoutDirty||this.shouldResetTransform,i=this.projectionDelta&&!nU(this.projectionDelta),n=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate,o=null==n?void 0:n(this.latestValues,""),s=o!==this.prevTransformTemplateValue;e&&(i||iO(this.latestValues)||s)&&(r(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),rn((e=n).x),rn(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return ik();let e=t.measureViewportBox(),{scroll:i}=this.root;return i&&(iz(e.x,i.offset.x),iz(e.y,i.offset.y)),e}removeElementScroll(t){let e=ik();nL(e,t);for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:o}=n;if(n!==this.root&&r&&o.layoutScroll){if(r.isRoot){nL(e,t);let{scroll:i}=this.root;i&&(iz(e.x,-i.offset.x),iz(e.y,-i.offset.y))}iz(e.x,r.offset.x),iz(e.y,r.offset.y)}}return e}applyTransform(t,e=!1){let i=ik();nL(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&&i_(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),iO(n.latestValues)&&i_(i,n.latestValues)}return iO(this.latestValues)&&i_(i,this.latestValues),i}removeTransform(t){var e;let i=ik();nL(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];if(!n.instance||!iO(n.latestValues))continue;ij(n.latestValues)&&n.updateSnapshot();let r=ik();nL(r,n.measurePageBox()),nI(i,n.latestValues,null===(e=n.snapshot)||void 0===e?void 0:e.layoutBox,r)}return iO(this.latestValues)&&nI(i,this.latestValues),i}setTargetDelta(t){this.targetDelta=t,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}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}resolveTargetDelta(){var t,e,i,n;let r=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=r.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=r.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;let{layout:o,layoutId:s}=this.options;if(this.layout&&(o||s)){if(!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout?(this.relativeParent=t,this.relativeTarget=ik(),this.relativeTargetOrigin=ik(),iP(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),nL(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if((this.relativeTarget||this.targetDelta)&&((this.target||(this.target=ik(),this.targetWithTransforms=ik()),this.relativeTarget&&this.relativeTargetOrigin&&(null===(t=this.relativeParent)||void 0===t?void 0:t.target))?(e=this.target,i=this.relativeTarget,n=this.relativeParent.target,iV(e.x,i.x,n.x),iV(e.y,i.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nL(this.target,this.layout.layoutBox),iN(this.target,this.targetDelta)):nL(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target?(this.relativeParent=t,this.relativeTarget=ik(),this.relativeTargetOrigin=ik(),iP(this.relativeTargetOrigin,this.target,t.target),nL(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||ij(this.parent.latestValues)||iI(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var t;let{isProjectionDirty:e,isTransformDirty:i}=this;this.isProjectionDirty=this.isTransformDirty=!1;let n=this.getLead(),r=!!this.resumingFrom||this!==n,o=!0;if(e&&(o=!1),r&&i&&(o=!1),o)return;let{layout:s,layoutId:a}=this.options;if(this.isTreeAnimating=!!((null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||a))return;
1nL(this.layoutCorrected,this.layout.layoutBox),function(t,e,i,n=!1){var r,o;let s,a;let l=i.length;if(l){e.x=e.y=1;for(let u=0;u<l;u++)a=(s=i[u]).projectionDelta,(null===(o=null===(r=s.instance)||void 0===r?void 0:r.style)||void 0===o?void 0:o.display)!=="contents"&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&i_(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,iN(t,a)),n&&iO(s.latestValues)&&i_(t,s.latestValues));e.x=iW(e.x),e.y=iW(e.y)}}(this.layoutCorrected,this.treeScale,this.path,r);let{target:l}=n;if(!l)return;this.projectionDelta||(this.projectionDelta=iD(),this.projectionDeltaWithTransform=iD());let u=this.treeScale.x,h=this.treeScale.y,c=this.projectionTransform;iw(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=nH(this.projectionDelta,this.treeScale),(this.projectionTransform!==c||this.treeScale.x!==u||this.treeScale.y!==h)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e,i,n;null===(i=(e=this.options).scheduleRender)||void 0===i||i.call(e),t&&(null===(n=this.getStack())||void 0===n||n.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){var i,n;let r=this.snapshot,o=(null==r?void 0:r.latestValues)||{},s={...this.latestValues},a=iD();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!e;let l=ik(),u=(null==r?void 0:r.source)!==(null===(i=this.layout)||void 0===i?void 0:i.source),h=1>=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0),c=!!(u&&!h&&!0===this.options.crossfade&&!this.path.some(rt));this.animationProgress=0,this.mixTargetDelta=e=>{var i,n,r;let d=e/1e3;n8(a.x,t.x,d),n8(a.y,t.y,d),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(i=this.relativeParent)||void 0===i?void 0:i.layout)&&(iP(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),n=this.relativeTarget,r=this.relativeTargetOrigin,n4(n.x,r.x,l.x,d),n4(n.y,r.y,l.y,d)),u&&(this.animationValues=s,function(t,e,i,n,r,o){r?(t.opacity=(0,ig.C)(0,void 0!==i.opacity?i.opacity:1,nM(n)),t.opacityExit=(0,ig.C)(void 0!==e.opacity?e.opacity:1,0,nD(n))):o&&(t.opacity=(0,ig.C)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let r=0;r<nT;r++){let o=`border${nP[r]}Radius`,s=nS(e,o),a=nS(i,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||nC(s)===nC(a)?(t[o]=Math.max((0,ig.C)(nE(s),nE(a),n),0),(z.aQ.test(a)||z.aQ.test(s))&&(t[o]+="%")):t[o]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,ig.C)(e.rotate||0,i.rotate||0,n))}(s,o,this.latestValues,d,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=d},this.mixTargetDelta(0)}startAnimation(t){var e,i;this.notifyListeners("animationStart"),null===(e=this.currentAnimation)||void 0===e||e.stop(),this.resumingFrom&&(null===(i=this.resumingFrom.currentAnimation)||void 0===i||i.stop()),this.pendingAnimation&&(el.qY.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=el.Z_.update(()=>{T.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,i={}){let n=(0,O.i)(0)?0:(0,t0.B)(0);return n.start(e4("",n,1e3,i)),{stop:()=>n.stop(),isAnimating:()=>n.isAnimating()}}(0,0,{...t,onUpdate:e=>{var i;this.mixTargetDelta(e),null===(i=t.onUpdate)||void 0===i||i.call(t,e)},onComplete:()=>{var e;null===(e=t.onComplete)||void 0===e||e.call(t),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var t;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(t=this.getStack())||void 0===t||t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var t;this.currentAnimation&&(null===(t=this.mixTargetDelta)||void 0===t||t.call(this,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&&rr(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||ik();let e=iy(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=iy(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}nL(e,i),i_(e,r),iw(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){var i,n,r;this.sharedNodes.has(t)||this.sharedNodes.set(t,new nY),this.sharedNodes.get(t).add(e),e.promote({transition:null===(i=e.options.initialPromotionConfig)||void 0===i?void 0:i.transition,preserveFollowOpacity:null===(r=null===(n=e.options.initialPromotionConfig)||void 0===n?void 0:n.shouldPreserveFollowOpacity)||void 0===r?void 0:r.call(n,e)})}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({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}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<nZ.length;e++){let r="rotate"+nZ[e];i[r]&&(n[r]=i[r],t.setStaticValue(r,0))}for(let e in null==t||t.render(),n)t.setStaticValue(e,n[e]);t.scheduleRender()}getProjectionStyles(t={}){var e,i,n;let r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";let o=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=tf(t.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;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=tf(t.pointerEvents)||""),this.hasProjected&&!iO(this.latestValues)&&(e.transform=o?o({},""):"none",this.hasProjected=!1),e}let a=s.animationValues||s.latestValues;this.applyTransformsToTarget(),r.transform=nH(this.projectionDeltaWithTransform,this.treeScale,a),o&&(r.transform=o(a,r.transform));let{x:l,y:u}=this.projectionDelta;for(let t in r.transformOrigin=`${100*l.origin}% ${100*u.origin}% 0`,s.animationValues?r.opacity=s===this?null!==(n=null!==(i=a.opacity)&&void 0!==i?i:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=s===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,L){if(void 0===a[t])continue;let{correct:e,applyTo:i}=L[t],n=e(a[t],s);if(i){let t=i.length;for(let e=0;e<t;e++)r[i[e]]=n}else r[t]=n}return this.options.layoutId&&(r.pointerEvents=s===this?tf(t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
1resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(n1),this.root.sharedNodes.clear()}}}function nK(t){t.updateLayout()}function nJ(t){var e,i,n;let r=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&r&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:i}=t.layout,{animationType:n}=t.options,o=r.source!==t.layout.source;"size"===n?iL(t=>{let i=o?r.measuredBox[t]:r.layoutBox[t],n=iy(i);i.min=e[t].min,i.max=i.min+n}):rr(n,r.layoutBox,e)&&iL(t=>{let i=o?r.measuredBox[t]:r.layoutBox[t],n=iy(e[t]);i.max=i.min+n});let s=iD();iw(s,e,r.layoutBox);let a=iD();o?iw(a,t.applyTransform(i,!0),r.measuredBox):iw(a,e,r.layoutBox);let l=!nU(s),u=!1;if(!t.resumeFrom){let i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:t,layout:n}=i;if(t&&n){let i=ik();iP(i,r.layoutBox,t.layoutBox);let o=ik();iP(o,e,n.layoutBox),nN(i,o)||(u=!0)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:r,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else t.isLead()&&(null===(n=(i=t.options).onExitComplete)||void 0===n||n.call(i));t.options.transition=void 0}function nQ(t){t.isProjectionDirty||(t.isProjectionDirty=!!(t.parent&&t.parent.isProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=!!(t.parent&&t.parent.isTransformDirty))}function n0(t){t.clearSnapshot()}function n1(t){t.clearMeasurements()}function n3(t){let{visualElement:e}=t.options;(null==e?void 0:e.getProps().onBeforeLayoutMeasure)&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function n2(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function n5(t){t.resolveTargetDelta()}function n9(t){t.calcProjection()}function n7(t){t.resetRotation()}function n6(t){t.removeLeadSnapshot()}function n8(t,e,i){t.translate=(0,ig.C)(e.translate,0,i),t.scale=(0,ig.C)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function n4(t,e,i,n){t.min=(0,ig.C)(e.min,i.min,n),t.max=(0,ig.C)(e.max,i.max,n)}function rt(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let re={duration:.45,ease:[.4,0,.1,1]};function ri(t,e){let i=t.root;for(let e=t.path.length-1;e>=0;e--)if(t.path[e].instance){i=t.path[e];break}
1let n=(i&&i!==t.root?i.instance:document).querySelector(`[data-projection-id="${e}"]`);n&&t.mount(n,!0)}function rn(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function rr(t,e,i){return"position"===t||"preserve-aspect"===t&&!ix(nW(e),nW(i),.2)}let ro=nG({attachResizeListener:(t,e)=>ty(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rs={current:void 0},ra=nG({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rs.current){let t=new ro(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),rs.current=t}return rs.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),rl={...il,...tX,...iJ,measureLayout:function(t){let[e,i]=tG(),n=(0,l.useContext)(C.p);return l.createElement(nV,{...t,layoutGroup:n,switchLayoutGroup:(0,l.useContext)(M),isPresent:e,safeToRemove:i})}},ru=function(t){function e(e,i={}){return function({preloadedFeatures:t,createVisualElement:e,projectionNodeConstructor:i,useRender:n,useVisualState:r,Component:o}){t&&function(t){for(let e in t)"projectionNodeConstructor"===e?V.projectionNodeConstructor=t[e]:V[e].Component=t[e]}(t);let s=(0,l.forwardRef)(function(s,a){var v;let g={...(0,l.useContext)(u._),...s,layoutId:function({layoutId:t}){let e=(0,l.useContext)(C.p).id;return e&&void 0!==t?e+"-"+t:t}(s)},{isStatic:x}=g,w=null,D=function(t){let{initial:e,animate:i}=function(t,e){if(y(t)){let{initial:e,animate:i}=t;return{initial:!1===e||m(e)?e:void 0,animate:m(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,l.useContext)(h));return(0,l.useMemo)(()=>({initial:e,animate:i}),[b(e),b(i)])}(s),R=x?void 0:(0,P.h)(()=>{if(T.hasEverUpdated)return E++}),k=r(s,x);if(!x&&A.j){D.visualElement=function(t,e,i,n){let r=(0,l.useContext)(h).visualElement,o=(0,l.useContext)(p),s=(0,l.useContext)(c.O),a=(0,l.useContext)(u._).reducedMotion,f=(0,l.useRef)();n=n||o.renderer,!f.current&&n&&(f.current=n(t,{visualState:e,parent:r,props:i,presenceId:s?s.id:void 0,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:a}));let m=f.current;return(0,d.L)(()=>{m&&m.render()}),(0,d.L)(()=>{m&&m.animationState&&m.animationState.animateChanges()}),(0,d.L)(()=>()=>m&&m.notify("Unmount"),[]),m}(o,k,g,e);let n=(0,l.useContext)(p).strict,r=(0,l.useContext)(M);D.visualElement&&(w=D.visualElement.loadFeatures(g,n,t,R,i||V.projectionNodeConstructor,r))}return l.createElement(S,{visualElement:D.visualElement,props:g},w,l.createElement(h.Provider,{value:D},n(o,s,R,(v=D.visualElement,(0,l.useCallback)(t=>{t&&k.mount&&k.mount(t),v&&(t?v.mount(t):v.unmount()),a&&("function"==typeof a?a(t):f(a)&&(a.current=t))},[v])),k,x,D.visualElement)))});return s[D]=o,s}(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,{forwardMotionProps:e=!1},i,n,r){return{...k(t)?tv:tg,preloadedFeatures:i,useRender:function(t=!1){return(e,i,n,r,{latestValues:o},s)=>{let a=(k(e)?function(t,e,i,n){let r=(0,l.useMemo)(()=>{let i=ti();return te(i,e,{enableHardwareAcceleration:!1},tn(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};Z(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 Z(r,n,t),Object.assign(r,function({transformTemplate:t},e,i){return(0,l.useMemo)(()=>{let n=_();return q(n,e,{enableHardwareAcceleration:!i},t),Object.assign({},n.vars,n.style)},[e])}(t,e,i)),t.transformValues?t.transformValues(r):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-${"x"===t.drag?"y":"x"}`),n.style=r,n})(i,o,s,e),u={...function(t,e,i){let n={};for(let r in t)(K(r)||!0===i&&G(r)||!e&&!G(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(i,"string"==typeof e,t),...a,ref:r};return n&&(u["data-projection-id"]=n),(0,l.createElement)(e,u)}}(e),createVisualElement:n,projectionNodeConstructor:r,Component:t}})(t,e,rl,ng,ra))}
1,3779:function(t,e,i){function n(t,e){-1===t.indexOf(e)&&t.push(e)}function r(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function o([...t],e,i){let n=e<0?t.length+e:e;if(n>=0&&n<t.length){let n=i<0?t.length+i:i,[r]=t.splice(e,1);t.splice(n,0,r)}return t}i.d(e,{cl:function(){return r},uo:function(){return o},y4:function(){return n}})},3983:function(t,e,i){i.d(e,{u:function(){return n}});let n=(t,e,i)=>Math.min(Math.max(i,t),e)},39017:function(t,e,i){i.d(e,{s:function(){return P}});var n=i(43014),r=i(38180),o=i(3983),s=i(43640);function a(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}var l=i(63822),u=i(70326),h=i(4520);let c=(t,e,i)=>{let n=t*t;return Math.sqrt(Math.max(0,i*(e*e-n)+n))},d=[l.$,u.m,h.J],p=t=>d.find(e=>e.test(t));function f(t){let e=p(t);(0,n.invariant)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let i=e.parse(t);return e===h.J&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,o=0,s=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,l=2*i-n;r=a(l,n,t+1/3),o=a(l,n,t),s=a(l,n,t-1/3)}else r=o=s=i;return{red:Math.round(255*r),green:Math.round(255*o),blue:Math.round(255*s),alpha:n}}(i)),i}let m=(t,e)=>{let i=f(t),n=f(e),r={...i};return t=>(r.red=c(i.red,n.red,t),r.green=c(i.green,n.green,t),r.blue=c(i.blue,n.blue,t),r.alpha=(0,s.C)(i.alpha,n.alpha,t),u.m.transform(r))};var v=i(50970),g=i(75301);function y(t,e){return"number"==typeof t?i=>(0,s.C)(t,e,i):r.$.test(t)?m(t,e):w(t,e)}let x=(t,e)=>{let i=[...t],n=i.length,r=t.map((t,i)=>y(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}},b=(t,e)=>{let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=y(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}},w=(t,e)=>{let i=g.P.createTransformer(e),r=(0,g.V)(t),o=(0,g.V)(e);return r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?(0,v.z)(x(r.values,o.values),i):((0,n.warning)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),i=>`${i>0?e:t}`)};var V=i(99075);let A=(t,e)=>i=>(0,s.C)(t,e,i);function P(t,e,{clamp:i=!0,ease:s,mixer:a}={}){let l=t.length;(0,n.invariant)(l===e.length,"Both input and output ranges must be the same length"),(0,n.invariant)(!s||!Array.isArray(s)||s.length===l-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[l-1]&&(t=[...t].reverse(),e=[...e].reverse());let u=function(t,e,i){let n=[],o=i||function(t){if("number"==typeof t);else if("string"==typeof t)return r.$.test(t)?m:w;else if(Array.isArray(t))return x;else if("object"==typeof t)return b;return A}(t[0]),s=t.length-1;for(let i=0;i<s;i++){let r=o(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]:e;r=(0,v.z)(t,r)}n.push(r)}return n}(e,s,a),h=u.length,c=e=>{let i=0;if(h>1)for(;i<t.length-2&&!(e<t[i+1]);i++);let n=(0,V.Y)(t[i],t[i+1],e);return u[i](n)};return i?e=>c((0,o.u)(t[0],t[l-1],e)):c}},80226:function(t,e,i){i.d(e,{j:function(){return n}});let n="undefined"!=typeof document},43640:function(t,e,i){i.d(e,{C:function(){return n}});let n=(t,e,i)=>-i*t+i*e+t},50970:function(t,e,i){i.d(e,{z:function(){return r}});let n=(t,e)=>i=>e(t(i)),r=(...t)=>t.reduce(n)},91334:function(t,e,i){i.d(e,{O:function(){return r}});var n=i(74859);let r=(void 0===n||n.env,"production")},99075:function(t,e,i){i.d(e,{Y:function(){return n}});let n=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n}},39311:function(t,e,i){i.d(e,{L:function(){return r}});var n=i(3779);class r{constructor(){this.subscriptions=[]}add(t){return(0,n.y4)(this.subscriptions,t),()=>(0,n.cl)(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}}},2415:function(t,e,i){i.d(e,{h:function(){return r}});var n=i(7653);function r(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}}
1,98739:function(t,e,i){i.d(e,{L:function(){return r}});var n=i(7653);let r=i(80226).j?n.useLayoutEffect:n.useEffect},81536:function(t,e,i){i.d(e,{z:function(){return r}});var n=i(7653);function r(t){return(0,n.useEffect)(()=>()=>t(),[])}},2365:function(t,e,i){i.d(e,{R:function(){return n}});function n(t,e){return e?1e3/e*t:0}},12884:function(t,e,i){i.d(e,{O:function(){return r}});let n=new Set;function r(t,e,i){t||n.has(e)||(console.warn(e),i&&console.warn(i),n.add(e))}},90039:function(t,e,i){i.d(e,{B:function(){return u}});var n=i(24642),r=i(12737),o=i(39311),s=i(2365);let a=t=>!isNaN(parseFloat(t));class l{constructor(t,e={}){this.version="7.10.3",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;let{delta:i,timestamp:o}=n.frameData;this.lastUpdated!==o&&(this.timeDelta=i,this.lastUpdated=o,r.Z_.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>r.Z_.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=a(this.current),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){return this.events[t]||(this.events[t]=new o.L),this.events[t].add(e)}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t){this.passiveEffect=t}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=t,this.timeDelta=i}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,s.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.stopAnimation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.stopAnimation&&(this.stopAnimation(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.clearListeners(),this.stop()}}function u(t,e){return new l(t,e)}},63822:function(t,e,i){i.d(e,{$:function(){return r}});var n=i(70326);let r={test:(0,i(63335).i)("#"),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:n.m.transform}},4520:function(t,e,i){i.d(e,{J:function(){return a}});var n=i(37822),r=i(31150),o=i(79680),s=i(63335);let a={test:(0,s.i)("hsl","hue"),parse:(0,s.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+r.aQ.transform((0,o.Nw)(e))+", "+r.aQ.transform((0,o.Nw)(i))+", "+(0,o.Nw)(n.Fq.transform(s))+")"}},38180:function(t,e,i){i.d(e,{$:function(){return a}});var n=i(79680),r=i(63822),o=i(4520),s=i(70326);let a={test:t=>s.m.test(t)||r.$.test(t)||o.J.test(t),parse:t=>s.m.test(t)?s.m.parse(t):o.J.test(t)?o.J.parse(t):r.$.parse(t),transform:t=>(0,n.HD)(t)?t:t.hasOwnProperty("red")?s.m.transform(t):o.J.transform(t)}},70326:function(t,e,i){i.d(e,{m:function(){return u}});var n=i(3983),r=i(37822),o=i(79680),s=i(63335);let a=t=>(0,n.u)(0,255,t),l={...r.Rx,transform:t=>Math.round(a(t))},u={test:(0,s.i)("rgb","red"),parse:(0,s.d)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+l.transform(t)+", "+l.transform(e)+", "+l.transform(i)+", "+(0,o.Nw)(r.Fq.transform(n))+")"}}
1,63335:function(t,e,i){i.d(e,{d:function(){return o},i:function(){return r}});var n=i(79680);let r=(t,e)=>i=>!!((0,n.HD)(i)&&n.mj.test(i)&&i.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(i,e)),o=(t,e,i)=>r=>{if(!(0,n.HD)(r))return r;let[o,s,a,l]=r.match(n.KP);return{[t]:parseFloat(o),[e]:parseFloat(s),[i]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},75301:function(t,e,i){i.d(e,{P:function(){return d},V:function(){return l}});var n=i(38180),r=i(37822),o=i(79680);let s="${c}",a="${n}";function l(t){"number"==typeof t&&(t=`${t}`);let e=[],i=0,l=0,u=t.match(o.dA);u&&(i=u.length,t=t.replace(o.dA,s),e.push(...u.map(n.$.parse)));let h=t.match(o.KP);return h&&(l=h.length,t=t.replace(o.KP,a),e.push(...h.map(r.Rx.parse))),{values:e,numColors:i,numNumbers:l,tokenised:t}}function u(t){return l(t).values}function h(t){let{values:e,numColors:i,tokenised:r}=l(t),u=e.length;return t=>{let e=r;for(let r=0;r<u;r++)e=e.replace(r<i?s:a,r<i?n.$.transform(t[r]):(0,o.Nw)(t[r]));return e}}let c=t=>"number"==typeof t?0:t,d={test:function(t){var e,i;return isNaN(t)&&(0,o.HD)(t)&&((null===(e=t.match(o.KP))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(o.dA))||void 0===i?void 0:i.length)||0)>0},parse:u,createTransformer:h,getAnimatableNone:function(t){let e=u(t);return h(t)(e.map(c))}}},37822:function(t,e,i){i.d(e,{Fq:function(){return o},Rx:function(){return r},bA:function(){return s}});var n=i(3983);let r={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},o={...r,transform:t=>(0,n.u)(0,1,t)},s={...r,default:1}},31150:function(t,e,i){i.d(e,{$C:function(){return h},RW:function(){return o},aQ:function(){return s},px:function(){return a},vh:function(){return l},vw:function(){return u}});var n=i(79680);let r=t=>({test:e=>(0,n.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),o=r("deg"),s=r("%"),a=r("px"),l=r("vh"),u=r("vw"),h={...s,parse:t=>s.parse(t)/100,transform:t=>s.transform(100*t)}},79680:function(t,e,i){i.d(e,{HD:function(){return a},KP:function(){return r},Nw:function(){return n},dA:function(){return o},mj:function(){return s}});let n=t=>Math.round(1e5*t)/1e5,r=/(-)?([\d]*\.?[\d])+/g,o=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,s=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function a(t){return"string"==typeof t}},21826:function(t,e,i){i.d(e,{i:function(){return n}});let n=t=>!!(null==t?void 0:t.getVelocity)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.