PageSourceSearch

https://www.thelotus.io/_next/static/chunks/7184-d10d7ed03e10d418.js

js thelotus.io collected 2026-10-09 03:03:05 UTC 106,060 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7184],{24394:function(t,e,n){n.d(e,{K:function(){return o},k:function(){return i}});var o=function(){},i=function(){}},6612:function(t,e,n){n.d(e,{jt:function(){return B}});var o=n(90415),i=n(75129);const r=t=>t*t,s=(0,i.M)(r),a=(0,o.o)(r);var l=n(64606),u=n(24394),c=n(81662);const h=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function d(t,e,n,o){if(t===e&&n===o)return c.Z;const i=e=>function(t,e,n,o,i){let r,s,a=0;do{s=e+(n-e)/2,r=h(s,o,i)-t,r>0?n=s:e=s}while(Math.abs(r)>1e-7&&++a<12);return s}(e,0,1,t,n);return t=>0===t||1===t?t:h(i(t),e,o)}var p=n(27255);const f=d(.33,1.53,.69,.99),m=(0,i.M)(f),v=(0,o.o)(m),g={linear:c.Z,easeIn:r,easeInOut:a,easeOut:s,circIn:p.Z7,circInOut:p.X7,circOut:p.Bn,backIn:m,backInOut:v,backOut:f,anticipate:t=>(t*=2)<1?.5*m(t):.5*(2-Math.pow(2,-10*(t-1)))},y=t=>{if(Array.isArray(t)){(0,u.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,o,i]=t;return d(e,n,o,i)}return"string"===typeof t?((0,u.k)(void 0!==g[t],`Invalid easing type '${t}'`),g[t]):t};function x({keyframes:t,ease:e=a,times:n,duration:o=300}){t=[...t];const i=x[0],r=(t=>Array.isArray(t)&&"number"!==typeof t[0])(e)?e.map(y):y(e),s={done:!1,value:i},u=function(t,e){return t.map((t=>t*e))}(n&&n.length===x.length?n:function(t){const e=t.length;return t.map(((t,n)=>0!==n?n/(e-1):0))}(t),o);function c(){return(0,l.s)(u,t,{ease:Array.isArray(r)?r:(e=t,n=r,e.map((()=>n||a)).splice(0,e.length-1))});var e,n}let h=c();return{next:t=>(s.value=h(t),s.done=t>=o,s),flipTarget:()=>{t.reverse(),h=c()}}}var w=n(24169);const b=.001;function E({duration:t=800,bounce:e=.25,velocity:n=0,mass:o=1}){let i,r;(0,u.K)(t<=1e4,"Spring duration must be 10 seconds or less");let s=1-e;s=(0,w.u)(.05,1,s),t=(0,w.u)(.01,10,t/1e3),s<1?(i=e=>{const o=e*s,i=o*t,r=o-n,a=P(e,s),l=Math.exp(-i);return b-r/a*l},r=e=>{const o=e*s*t,r=o*n+n,a=Math.pow(s,2)*Math.pow(e,2)*t,l=Math.exp(-o),u=P(Math.pow(e,2),s);return(-i(e)+b>0?-1:1)*((r-a)*l)/u}):(i=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,r=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let o=n;for(let i=1;i<12;i++)o-=t(o)/e(o);return o}(i,r,5/t);if(t*=1e3,isNaN(a))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(a,2)*o;return{stiffness:e,damping:2*s*Math.sqrt(o*e),duration:t}}}function P(t,e){return t*Math.sqrt(1-e*e)}var A=n(3038);const T=["duration","bounce"],V=["stiffness","damping","mass"];function S(t,e){return e.some((e=>void 0!==t[e]))}function C({keyframes:t,restSpeed:e=2,restDelta:n=.01,...o}){let i=t[0],r=t[t.length-1];const s={done:!1,value:i},{stiffness:a,damping:l,mass:u,velocity:c,duration:h,isResolvedFromDuration:d}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!S(t,V)&&S(t,T)){const n=E(t);e={...e,...n,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}(o);let p=M,f=c?-c/1e3:0;const m=l/(2*Math.sqrt(a*u));function v(){const t=r-i,e=Math.sqrt(a/u)/1e3;if(void 0===n&&(n=Math.min(Math.abs(r-i)/100,.4)),m<1){const n=P(e,m);p=o=>{const i=Math.exp(-m*e*o);return r-i*((f+m*e*t)/n*Math.sin(n*o)+t*Math.cos(n*o))}}else if(1===m)p=n=>r-Math.exp(-e*n)*(t+(f+e*t)*n);else{const n=e*Math.sqrt(m*m-1);p=o=>{const i=Math.exp(-m*e*o),s=Math.min(n*o,300);return r-i*((f+m*e*t)*Math.sinh(s)+n*t*Math.cosh(s))/n}}}return v(),{next:t=>{const o=p(t);if(d)s.done=t>=h;else{let i=f;if(0!==t)if(m<1){const e=Math.max(0,t-5);i=(0,A.R)(o-p(e),t-e)}else i=0;const a=Math.abs(i)<=e,l=Math.abs(r-o)<=n;s.done=a&&l}return s.value=s.done?r:o,s},flipTarget:()=>{f=-f,[i,r]=[r,i],v()}}}C.needsInterpolation=(t,e)=>"string"===typeof t||"string"===typeof e;const M=t=>0;var L=n(30404);const k={decay:function({keyframes:t=[0],velocity:e=0,power:n=.8,timeConstant:o=350,restDelta:i=.5,modifyTarget:r}){const s=t[0],a={done:!1,value:s};let l=n*e;const u=s+l,c=void 0===r?u:r(u);return c!==u&&(l=c-s),{next:t=>{const e=-l*Math.exp(-t/o);return a.done=!(e>i||e<-i),a.value=a.done?c:c+e,a},flipTarget:()=>{}}},keyframes:x,tween:x,spring:C};function R(t,e,n=0){return t-e-n}const D=t=>{const e=({delta:e})=>t(e);return{start:()=>L.Z_.update(e,!0),stop:()=>L.qY.update(e)}};function B({duration:t,driver:e=D,elapsed:n=0,repeat:o=0,repeatType:i="loop",repeatDelay:r=0,keyframes:s,autoplay:a=!0,onPlay:u,onStop:c,onComplete:h,onRepeat:d,onUp
1date:p,type:f="keyframes",...m}){var v,g;let y,x,w,b=0,E=t,P=!1,A=!0;const T=k[s.length>2?"keyframes":f],V=s[0],S=s[s.length-1];(null===(g=(v=T).needsInterpolation)||void 0===g?void 0:g.call(v,V,S))&&(w=(0,l.s)([0,100],[V,S],{clamp:!1}),s=[0,100]);const C=T({...m,duration:t,keyframes:s});function M(){b++,"reverse"===i?(A=b%2===0,n=function(t,e=0,n=0,o=!0){return o?R(e+-t,e,n):e-(t-e)+n}(n,E,r,A)):(n=R(n,E,r),"mirror"===i&&C.flipTarget()),P=!1,d&&d()}function L(t){if(A||(t=-t),n+=t,!P){const t=C.next(Math.max(0,n));x=t.value,w&&(x=w(x)),P=A?t.done:n<=0}p&&p(x),P&&(0===b&&(E=void 0!==E?E:n),b<o?function(t,e,n,o){return o?t>=e+n:t<=-n}(n,E,r,A)&&M():(y.stop(),h&&h()))}return a&&(u&&u(),y=e(L),y.start()),{stop:()=>{c&&c(),y.stop()},sample:t=>C.next(Math.max(0,t))}}},16014:function(t,e,n){n.d(e,{_:function(){return o}});const o=(0,n(67294).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},27255:function(t,e,n){n.d(e,{Bn:function(){return s},X7:function(){return a},Z7:function(){return r}});var o=n(90415),i=n(75129);const r=t=>1-Math.sin(Math.acos(t)),s=(0,i.M)(r),a=(0,o.o)(s)},90415:function(t,e,n){n.d(e,{o:function(){return o}});const o=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},75129:function(t,e,n){n.d(e,{M:function(){return o}});const o=t=>e=>1-t(1-e)},37367:function(t,e,n){n.d(e,{w:function(){return o}});const o={delta:0,timestamp:0}},30404:function(t,e,n){n.d(e,{qY:function(){return p},iW:function(){return f},Z_:function(){return d}});const o=1/60*1e3,i="undefined"!==typeof performance?()=>performance.now():()=>Date.now(),r="undefined"!==typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(i())),o);var s=n(37367);let a=!0,l=!1,u=!1;const c=["read","update","preRender","render","postRender"],h=c.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],o=0,i=!1,r=!1;const s=new WeakSet,a={schedule:(t,r=!1,a=!1)=>{const l=a&&i,u=l?e:n;return r&&s.add(t),-1===u.indexOf(t)&&(u.push(t),l&&i&&(o=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),s.delete(t)},process:l=>{if(i)r=!0;else{if(i=!0,[e,n]=[n,e],n.length=0,o=e.length,o)for(let n=0;n<o;n++){const o=e[n];o(l),s.has(o)&&(a.schedule(o),t())}i=!1,r&&(r=!1,a.process(l))}}};return a}((()=>l=!0)),t)),{}),d=c.reduce(((t,e)=>{const n=h[e];return t[e]=(t,e=!1,o=!1)=>(l||g(),n.schedule(t,e,o)),t}),{}),p=c.reduce(((t,e)=>(t[e]=h[e].cancel,t)),{}),f=c.reduce(((t,e)=>(t[e]=()=>h[e].process(s.w),t)),{}),m=t=>h[t].process(s.w),v=t=>{l=!1,s.w.delta=a?o:Math.max(Math.min(t-s.w.timestamp,40),1),s.w.timestamp=t,u=!0,c.forEach(m),u=!1,l&&(a=!1,r(v))},g=()=>{l=!0,a=!0,u||r(v)}},49291:function(t,e,n){n.d(e,{E:function(){return Wi}});var o=n(67294),i=n(16014);const r=(0,o.createContext)({});const s=(0,o.createContext)(null);var a=n(58868);const l=(0,o.createContext)({strict:!1});function u(t,e,n,u){const c=(0,o.useContext)(r).visualElement,h=(0,o.useContext)(l),d=(0,o.useContext)(s),p=(0,o.useContext)(i._).reducedMotion,f=(0,o.useRef)();u=u||h.renderer,!f.current&&u&&(f.current=u(t,{visualState:e,parent:c,props:n,presenceId:d?d.id:void 0,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:p}));const m=f.current;return(0,a.L)((()=>{m&&m.render()})),(0,a.L)((()=>{m&&m.animationState&&m.animationState.animateChanges()})),(0,a.L)((()=>()=>m&&m.notify("Unmount")),[]),m}function c(t){return"object"===typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function h(t){return"string"===typeof t||Array.isArray(t)}function d(t){return"object"===typeof t&&"function"===typeof t.start}const p=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function f(t){return d(t.animate)||p.some((e=>h(t[e])))}function m(t){return Boolean(f(t)||t.variants)}function v(t){const{initial:e,animate:n}=function(t,e){if(f(t)){const{initial:e,animate:n}=t;return{initial:!1===e||h(e)?e:void 0,animate:h(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,o.useContext)(r));return(0,o.useMemo)((()=>({initial:e,animate:n})),[g(e),g(n)])}function g(t){return Array.isArray(t)?t.join(" "):t}const y=t=>({isEnabled:e=>t.some((t=>!!e[t]))}),x={measureLayout:y(["layout","layoutId","drag"]),animation:y(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:y(["exit"]),drag:y(["drag","dragControls"]),focus:y(["whileFocus"]),hover:y(["whileHover","onHoverStart","onHoverEnd"]),tap:y(["whileTap","onTap","onTapStart","onTapCancel"]),pan:y(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:y(["whileInView","onViewportEnter","onViewportLeave"])};
1var w=n(11741),b=n(96681);const E={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let P=1;const A=(0,o.createContext)({});class T extends o.Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:e}=this.props;return t&&t.setProps(e),null}componentDidUpdate(){}render(){return this.props.children}}const V=(0,o.createContext)({}),S=Symbol.for("motionComponentSymbol");function C({preloadedFeatures:t,createVisualElement:e,projectionNodeConstructor:n,useRender:s,useVisualState:a,Component:h}){t&&function(t){for(const e in t)"projectionNodeConstructor"===e?x.projectionNodeConstructor=t[e]:x[e].Component=t[e]}(t);const d=(0,o.forwardRef)((function(d,p){const f={...(0,o.useContext)(i._),...d,layoutId:M(d)},{isStatic:m}=f;let g=null;const y=v(d),A=m?void 0:(0,b.h)((()=>{if(E.hasEverUpdated)return P++})),S=a(d,m);if(!m&&w.j){y.visualElement=u(h,S,f,e);const i=(0,o.useContext)(l).strict,r=(0,o.useContext)(V);y.visualElement&&(g=y.visualElement.loadFeatures(f,i,t,A,n||x.projectionNodeConstructor,r))}return o.createElement(T,{visualElement:y.visualElement,props:f},g,o.createElement(r.Provider,{value:y},s(h,d,A,function(t,e,n){return(0,o.useCallback)((o=>{o&&t.mount&&t.mount(o),e&&(o?e.mount(o):e.unmount()),n&&("function"===typeof n?n(o):c(n)&&(n.current=o))}),[e])}(S,y.visualElement,p),S,m,y.visualElement)))}));return d[S]=h,d}function M({layoutId:t}){const e=(0,o.useContext)(A).id;return e&&void 0!==t?e+"-"+t:t}function L(t){function e(e,n={}){return C(t(e,n))}if("undefined"===typeof Proxy)return e;const n=new Map;return new Proxy(e,{get:(t,o)=>(n.has(o)||n.set(o,e(o)),n.get(o))})}const k=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function R(t){return"string"===typeof t&&!t.includes("-")&&!!(k.indexOf(t)>-1||/[A-Z]/.test(t))}const D={};const B=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],j=new Set(B);function F(t,{layout:e,layoutId:n}){return j.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!D[t]||"opacity"===t)}var O=n(40406);const I={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},U=(t,e)=>B.indexOf(t)-B.indexOf(e);function $(t){return t.startsWith("--")}const N=(t,e)=>e&&"number"===typeof t?e.transform(t):t;var W=n(61649),z=n(96190);const 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 X(t,e,n,o){const{style:i,vars:r,transform:s,transformKeys:a,transformOrigin:l}=t;a.length=0;let u=!1,c=!1,h=!0;for(const d in e){const t=e[d];if($(d)){r[d]=t;continue}const n=H[d],o=N(t,n);if(j.has(d)){if(u=!0,s[d]=o,a.push(d),!h)continue;t!==(n.default||0)&&(h=!1)}else d.startsWith("origin")?(c=!0,l[d]=o):i[d]=o}if(e.transform||(u||o?i.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:o=!0},i,r){let s="";e.sort(U);for(const a of e)s+=`${I[a]||a}(${t[a]}) `;return n&&!t.z&&(s+="translateZ(0)"),s=s.trim(),r?s=r(t,i?"":s):o&&i&&(s="none"),s}(t,n,h,o):i.transform&&(i.transform="none")),c){const{originX:t="50%",originY:e="50%",originZ:n=0}=l;i.transformOrigin=`${t} ${e} ${n}`}}const q=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function Z(t,e,n){for(const o in e)(0,O.i)(e[o])||F(o,n)||(t[o]=e[o])}function _(t,e,n){const i={};return Z(i,t.style||{},t),Object.assign(i,function({transformTemplate:t},e,n){return(0,o.useMemo)((()=>{const o={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};return X(o,e,{enableHardwareAcceleration:!n},t),Object.assign({},o.vars,o.style)}),[e])}(t,e,n)),t.transformValues?t.transformValues(i):i}function G(t,e,n){const o={},i=_(t,e,n);return t.drag&&!1!==t.dragListener&&(o.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),o.style=i,o}const K=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 J(t){return K.has(t)}let Q=t=>!J(t);try{(tt=require("@emotion/is-prop-valid").default)&&(Q=t=>t.startsWith("on")?!J(t):tt(t))}catch(zi){}var tt;function et(t,e,n){return"string"===typeof t?t:z.px.transform(e+n*t)}const nt={offset:"stroke-dashoffset",array:"stroke-dasharray"},ot={offset:"strokeDashoffset",array:"strokeDasharray"};function it(t,{attrX:e,attrY:n,originX:o,originY:i,pathLength:r,pathSpacing:s=1,pathOffset:a=0,...l},u,c,h){if(X(t,l,u,h),c)return void(t.style.viewBox&&(t.attrs.viewB
1ox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:d,style:p,dimensions:f}=t;d.transform&&(f&&(p.transform=d.transform),delete d.transform),f&&(void 0!==o||void 0!==i||p.transform)&&(p.transformOrigin=function(t,e,n){return`${et(e,t.x,t.width)} ${et(n,t.y,t.height)}`}(f,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==r&&function(t,e,n=1,o=0,i=!0){t.pathLength=1;const r=i?nt:ot;t[r.offset]=z.px.transform(-o);const s=z.px.transform(e),a=z.px.transform(n);t[r.array]=`${s} ${a}`}(d,r,s,a,!1)}const rt=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{},attrs:{}}),st=t=>"string"===typeof t&&"svg"===t.toLowerCase();function at(t,e,n,i){const r=(0,o.useMemo)((()=>{const n={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{},attrs:{}};return it(n,e,{enableHardwareAcceleration:!1},st(i),t.transformTemplate),{...n.attrs,style:{...n.style}}}),[e]);if(t.style){const e={};Z(e,t.style,t),r.style={...e,...r.style}}return r}function lt(t=!1){return(e,n,i,r,{latestValues:s},a)=>{const l=(R(e)?at:G)(n,s,a,e),u=function(t,e,n){const o={};for(const i in t)(Q(i)||!0===n&&J(i)||!e&&!J(i)||t.draggable&&i.startsWith("onDrag"))&&(o[i]=t[i]);return o}(n,"string"===typeof e,t),c={...u,...l,ref:r};return i&&(c["data-projection-id"]=i),(0,o.createElement)(e,c)}}const ut=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function ct(t,{style:e,vars:n},o,i){Object.assign(t.style,e,i&&i.getProjectionStyles(o));for(const r in n)t.style.setProperty(r,n[r])}const ht=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 dt(t,e,n,o){ct(t,e,void 0,o);for(const i in e.attrs)t.setAttribute(ht.has(i)?i:ut(i),e.attrs[i])}function pt(t){const{style:e}=t,n={};for(const o in e)((0,O.i)(e[o])||F(o,t))&&(n[o]=e[o]);return n}function ft(t){const e=pt(t);for(const n in t)if((0,O.i)(t[n])){e["x"===n||"y"===n?"attr"+n.toUpperCase():n]=t[n]}return e}function mt(t,e,n,o={},i={}){return"function"===typeof e&&(e=e(void 0!==n?n:t.custom,o,i)),"string"===typeof e&&(e=t.variants&&t.variants[e]),"function"===typeof e&&(e=e(void 0!==n?n:t.custom,o,i)),e}const vt=t=>Array.isArray(t);function gt(t){const e=(0,O.i)(t)?t.get():t;return n=e,Boolean(n&&"object"===typeof n&&n.mix&&n.toValue)?e.toValue():e;var n}const yt=t=>(e,n)=>{const i=(0,o.useContext)(r),a=(0,o.useContext)(s),l=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},o,i,r){const s={latestValues:xt(o,i,r,t),renderState:e()};return n&&(s.mount=t=>n(o,t,s)),s}(t,e,i,a);return n?l():(0,b.h)(l)};function xt(t,e,n,o){const i={},r=o(t);for(const d in r)i[d]=gt(r[d]);let{initial:s,animate:a}=t;const l=f(t),u=m(t);e&&u&&!l&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===a&&(a=e.animate));let c=!!n&&!1===n.initial;c=c||!1===s;const h=c?a:s;if(h&&"boolean"!==typeof h&&!d(h)){(Array.isArray(h)?h:[h]).forEach((e=>{const n=mt(t,e);if(!n)return;const{transitionEnd:o,transition:r,...s}=n;for(const t in s){let e=s[t];if(Array.isArray(e)){e=e[c?e.length-1:0]}null!==e&&(i[t]=e)}for(const t in o)i[t]=o[t]}))}return i}const wt={useVisualState:yt({scrapeMotionValuesFromProps:ft,createRenderState:rt,onMount:(t,e,{renderState:n,latestValues:o})=>{try{n.dimensions="function"===typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(i){n.dimensions={x:0,y:0,width:0,height:0}}it(n,o,{enableHardwareAcceleration:!1},st(e.tagName),t.transformTemplate),dt(e,n)}})},bt={useVisualState:yt({scrapeMotionValuesFromProps:pt,createRenderState:q})};var Et;function Pt(t,e,n,o={passive:!0}){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n)}function At(t,e,n,i){(0,o.useEffect)((()=>{const o=t.current;if(n&&o)return Pt(o,e,n,i)}),[t,e,n,i])}function Tt(t){return"undefined"!==typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function Vt(t){return!!t.touches}!function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"}(Et||(Et={}));const St={pageX:0,pageY:0};function Ct(t,e="page"){const n=t.touches[0]||t.changedTouches[0]||St;return{x:n[e+"X"],y:n[e+"Y"]}}function Mt(t,e="page"){return{x:t[e+"X"],y:t[e+"Y"]}}function Lt(t,e="page"){return{point:Vt(t)?Ct(t,e):Mt(t,e)}}const kt=(t,e=!1)=>{const n=e=>t(e,Lt(e));return e?(o=n,t=>{const e=t instanceof MouseEvent;(!e||e&&0===t.button)&&o(t)}):n;var o}
1,Rt={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Dt={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Bt(t){return w.j&&null===window.onpointerdown?t:w.j&&null===window.ontouchstart?Dt[t]:w.j&&null===window.onmousedown?Rt[t]:t}function jt(t,e,n,o){return Pt(t,Bt(e),kt(n,"pointerdown"===e),o)}function Ft(t,e,n,o){return At(t,Bt(e),n&&kt(n,"pointerdown"===e),o)}function Ot(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}const It=Ot("dragHorizontal"),Ut=Ot("dragVertical");function $t(t){let e=!1;if("y"===t)e=Ut();else if("x"===t)e=It();else{const t=It(),n=Ut();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function Nt(){const t=$t(!0);return!t||(t(),!1)}function Wt(t,e,n){return(o,i)=>{Tt(o)&&!Nt()&&(t.animationState&&t.animationState.setActive(Et.Hover,e),n&&n(o,i))}}const zt=(t,e)=>!!e&&(t===e||zt(t,e.parentElement));function Yt(t){return(0,o.useEffect)((()=>()=>t()),[])}var Ht=n(83624);var Xt=n(34155);const qt=("undefined"===typeof Xt||Xt.env,"production"),Zt=new Set;const _t=new WeakMap,Gt=new WeakMap,Kt=t=>{const e=_t.get(t.target);e&&e(t)},Jt=t=>{t.forEach(Kt)};function Qt(t,e,n){const o=function({root:t,...e}){const n=t||document;Gt.has(n)||Gt.set(n,{});const o=Gt.get(n),i=JSON.stringify(e);return o[i]||(o[i]=new IntersectionObserver(Jt,{root:t,...e})),o[i]}(e);return _t.set(t,n),o.observe(t),()=>{_t.delete(t),o.unobserve(t)}}const te={some:0,all:1};function ee(t,e,n,{root:i,margin:r,amount:s="some",once:a}){(0,o.useEffect)((()=>{if(!t||!n.current)return;const o={root:null===i||void 0===i?void 0:i.current,rootMargin:r,threshold:"number"===typeof s?s:te[s]};return Qt(n.current,o,(t=>{const{isIntersecting:o}=t;if(e.isInView===o)return;if(e.isInView=o,a&&!o&&e.hasEnteredView)return;o&&(e.hasEnteredView=!0),n.animationState&&n.animationState.setActive(Et.InView,o);const i=n.getProps(),r=o?i.onViewportEnter:i.onViewportLeave;r&&r(t)}))}),[t,i,r,s])}function ne(t,e,n,{fallback:i=!0}){(0,o.useEffect)((()=>{var o,r;t&&i&&("production"!==qt&&(o="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",!1||Zt.has(o)||(console.warn(o),r&&console.warn(r),Zt.add(o))),requestAnimationFrame((()=>{e.hasEnteredView=!0;const{onViewportEnter:t}=n.getProps();t&&t(null),n.animationState&&n.animationState.setActive(Et.InView,!0)})))}),[t])}const oe=t=>e=>(t(e),null),ie={inView:oe((function({visualElement:t,whileInView:e,onViewportEnter:n,onViewportLeave:i,viewport:r={}}){const s=(0,o.useRef)({hasEnteredView:!1,isInView:!1});let a=Boolean(e||n||i);r.once&&s.current.hasEnteredView&&(a=!1),("undefined"===typeof IntersectionObserver?ne:ee)(a,s.current,t,r)})),tap:oe((function({onTap:t,onTapStart:e,onTapCancel:n,whileTap:i,visualElement:r}){const s=t||e||n||i,a=(0,o.useRef)(!1),l=(0,o.useRef)(null),u={passive:!(e||t||n||f)};function c(){l.current&&l.current(),l.current=null}function h(){return c(),a.current=!1,r.animationState&&r.animationState.setActive(Et.Tap,!1),!Nt()}function d(e,o){h()&&(zt(r.current,e.target)?t&&t(e,o):n&&n(e,o))}function p(t,e){h()&&n&&n(t,e)}function f(t,n){c(),a.current||(a.current=!0,l.current=(0,Ht.z)(jt(window,"pointerup",d,u),jt(window,"pointercancel",p,u)),r.animationState&&r.animationState.setActive(Et.Tap,!0),e&&e(t,n))}Ft(r,"pointerdown",s?f:void 0,u),Yt(c)})),focus:oe((function({whileFocus:t,visualElement:e}){const{animationState:n}=e;At(e,"focus",t?()=>{n&&n.setActive(Et.Focus,!0)}:void 0),At(e,"blur",t?()=>{n&&n.setActive(Et.Focus,!1)}:void 0)})),hover:oe((function({onHoverStart:t,onHoverEnd:e,whileHover:n,visualElement:o}){Ft(o,"pointerenter",t||n?Wt(o,!0,t):void 0,{passive:!t}),Ft(o,"pointerleave",e||n?Wt(o,!1,e):void 0,{passive:!e})}))};function re(){const t=(0,o.useContext)(s);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:i}=t,r=(0,o.useId)();(0,o.useEffect)((()=>i(r)),[]);return!e&&n?[!1,()=>n&&n(r)]:[!0]}function se(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let o=0;o<n;o++)if(e[o]!==t[o])return!1;return!0}const ae=t=>/^0[^.\s]+$/.test(t);var le=n(33234),ue=n(51550),ce=n(36430);const he=new Set(["brightness","contrast","saturate","opacity"]);function de(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[o]=n.match(ce.KP)||[];if(!o)return t;const i=n.replace(o,"");let r=he.has(e)?1:0;return o!==n&&(r*=100),e+"("+r+i+")"}const pe=/([a-z-]*)\(.*?\)/g,fe={...ue.P,getAnimatableNone:t=>{const e=t.match(pe);return e?e.map(de).join(" "):t}};var me=n(85385);const ve={...H,color:me.$,backgroundColor:me.$,outlineColor:me.$,fill:me.$,stroke:me.$,borderColor:me.$,borderTopColor:me.$,borderRightColor:me.$,borderBottomColor:me.$,borderLeftColor:me.$,filter:fe,WebkitFilter:fe},ge=t=>ve[t];function ye(t,e){var n;let o=ge(t);return o!==fe&&(o=ue.P),null===(n=o.getAnimatableNone)||void 0===n?void 0:n.call(o,e)}const xe=t=>e=>e.test(t),we=[W.Rx,z.px,z.aQ,z.RW,z.vw,z.vh,{test:t=>"auto"===t,parse:t=>t}],be=t=>we.find(xe(t)),Ee=[...we,me.$,ue.P],Pe=t=>Ee.find(xe(t));function Ae(t,e,n){const o=t.getProps();return mt(o,e,void 0!==n?n:o.custom,function(t){const e={};
1return t.values.forEach(((t,n)=>e[n]=t.get())),e}(t),function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.getVelocity())),e}(t))}function Te(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,le.B)(n))}function Ve(t,e){const n=Ae(t,e);let{transitionEnd:o={},transition:i={},...r}=n?t.makeTargetAnimatable(n,!1):{};r={...r,...o};for(const a in r){Te(t,a,(s=r[a],vt(s)?s[s.length-1]||0:s))}var s}function Se(t,e){if(!e)return;return(e[t]||e.default||e).from}function Ce(t){return Boolean((0,O.i)(t)&&t.add)}var Me=n(30404);function Le(t,e){const{MotionAppearAnimations:n}=window,o=((t,e)=>`${t}: ${e}`)(t,j.has(e)?"transform":e),i=n&&n.get(o);return i?(Me.Z_.render((()=>{try{i.cancel(),n.delete(o)}catch(t){}})),i.currentTime||0):0}const ke="data-"+ut("framerAppearId");var Re=n(24394);const De=t=>1e3*t,Be=!1;var je=n(6612);const Fe=([t,e,n,o])=>`cubic-bezier(${t}, ${e}, ${n}, ${o})`,Oe={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Fe([0,.65,.55,1]),circOut:Fe([.55,0,1,.45]),backIn:Fe([.31,.01,.66,-.59]),backOut:Fe([.33,1.53,.69,.99])};function Ie(t){if(t)return Array.isArray(t)?Fe(t):Oe[t]}function Ue(t,e,{onUpdate:n,onComplete:o,...i}){let{keyframes:r,duration:s=.3,elapsed:a=0,ease:l}=i;if("spring"===i.type||!(!(u=i.ease)||Array.isArray(u)||"string"===typeof u&&Oe[u])){const t=(0,je.jt)(i);let e={done:!1,value:r[0]};const n=[];let o=0;for(;!e.done;)e=t.sample(o),n.push(e.value),o+=10;r=n,s=o-10,l="linear"}var u;const c=function(t,e,n,{delay:o=0,duration:i,repeat:r=0,repeatType:s="loop",ease:a,times:l}={}){return t.animate({[e]:n,offset:l},{delay:o,duration:i,easing:Ie(a),fill:"both",iterations:r+1,direction:"reverse"===s?"alternate":"normal"})}(t.owner.current,e,r,{...i,delay:-a,duration:s,ease:l});return c.onfinish=()=>{t.set(r[r.length-1]),o&&o()},()=>{const{currentTime:e}=c;if(e){const n=(0,je.jt)(i);t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}Me.Z_.update((()=>c.cancel()))}}function $e(t,e){const n=performance.now(),o=({timestamp:i})=>{const r=i-n;r>=e&&(Me.qY.read(o),t(r-e))};return Me.Z_.read(o,!0),()=>Me.qY.read(o)}function Ne({keyframes:t,elapsed:e,onUpdate:n,onComplete:o}){const i=()=>(n&&n(t[t.length-1]),o&&o(),()=>{});return e?$e(i,-e):i()}var We=n(3038),ze=n(37367);const Ye=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),He=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),Xe=()=>({type:"keyframes",ease:"linear",duration:.3}),qe={type:"keyframes",duration:.8},Ze={x:Ye,y:Ye,z:Ye,rotate:Ye,rotateX:Ye,rotateY:Ye,rotateZ:Ye,scaleX:He,scaleY:He,scale:He,opacity:Xe,backgroundColor:Xe,color:Xe,default:He},_e=(t,{keyframes:e})=>{if(e.length>2)return qe;return(Ze[t]||Ze.default)(e[1])},Ge=(t,e)=>"zIndex"!==t&&(!("number"!==typeof e&&!Array.isArray(e))||!("string"!==typeof e||!ue.P.test(e)||e.startsWith("url(")));function Ke(t){return 0===t||"string"===typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function Je(t){return"number"===typeof t?0:ye("",t)}function Qe(t,e){return t[e]||t.default||t}const tn={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},en={},nn={};for(const Yi in tn)nn[Yi]=()=>(void 0===en[Yi]&&(en[Yi]=tn[Yi]()),en[Yi]);const on=new Set(["opacity"]),rn=(t,e,n,o={})=>i=>{const r=Qe(o,t)||{},s=r.delay||o.delay||0;let{elapsed:a=0}=o;a-=De(s);const l=function(t,e,n,o){const i=Ge(e,n);let r=void 0!==o.from?o.from:t.get();return"none"===r&&i&&"string"===typeof n?r=ye(e,n):Ke(r)&&"string"===typeof n?r=Je(n):!Array.isArray(n)&&Ke(n)&&"string"===typeof r&&(n=Je(r)),Array.isArray(n)?(null===n[0]&&(n[0]=r),n):[r,n]}(e,t,n,r),u=l[0],c=l[l.length-1],h=Ge(t,u),d=Ge(t,c);(0,Re.K)(h===d,`You are trying to animate ${t} from "${u}" to "${c}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${c} via the \`style\` property.`);let p={keyframes:l,velocity:e.getVelocity(),...r,elapsed:a,onUpdate:t=>{e.set(t),r.onUpdate&&r.onUpdate(t)},onComplete:()=>{i(),r.onComplete&&r.onComplete()}};if(!h||!d||Be||!1===r.type)return Ne(p);if("inertia"===r.type){const t=function({keyframes:t,velocity:e=0,min:n,max:o,power:i=.8,timeConstant:r=750,bounceStiffness:s=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:h,onComplete:d,onStop:p}){const f=t[0];let m;function v(t){return void 0!==n&&t<n||void 0!==o&&t>o}function g(t){return void 0===n?o:void 0===o||Math.abs(n-t)<Math.abs(o-t)?n:o}function y(t){null===m||void 0===m||m.stop(),m=(0,je.jt)({keyframes:[0,1],velocity:0,...t,driver:c,onUpdate:e=>{var n;null===h||void 0===h||h(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:d,onStop:p})}function x(t){y({type:"spring",stiffness:s,damping:a,restDelta:l,...t})}if(v(f))x({velocity:e,keyframes:[f,g(f)]});else{let t=i*e+f;"undefined"!==typeof u&&(t=u(t));const o=g(t),s=o===n?-1:1;let a,c;const h=t=>{a=c,c=t,e=(0,We.R)(t-a,ze.w.delta),(1===s&&t>o||-1===s&&t<o)&&x({keyframes:[t,o],velocity:e})};y({type:"decay",keyframes:[f,0],velocity:e,timeConstant:r,power:i,restDelta:l,modifyTarget:u,onUpdate:v(t)?h:void 0})}return{stop:()=>null===m||void 0===m?void 0:m.stop()}}(p);return()=>t.stop()}(function({when:t,delay:e,delayChildren:n,staggerChildren:o,staggerDirection:i,repeat:r,repeatType:s,repeatDelay:a,from:l,...u}){return!!Object.keys(u).length})(r)||(p={...p,..._e(t,p)}),p.duration&&(p.duration=De(p.duration)),p.repeatDelay&&(p.repeatDelay=De(p.repeatDelay));const f=e.owner,m=f&&f.current;if(nn.waapi()&&on.has(t)&&!p.repeatDelay&&"mirror"!==p.repeatType&&0!==
1p.damping&&f&&m instanceof HTMLElement&&!f.getProps().onUpdate)return Ue(e,t,p);{const t=(0,je.jt)(p);return()=>t.stop()}};function sn(t,e,n={}){var o;const i=Ae(t,e,n.custom);let{transition:r=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);const s=i?()=>an(t,i,n):()=>Promise.resolve(),a=(null===(o=t.variantChildren)||void 0===o?void 0:o.size)?(o=0)=>{const{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=r;return function(t,e,n=0,o=0,i=1,r){const s=[],a=(t.variantChildren.size-1)*o,l=1===i?(t=0)=>t*o:(t=0)=>a-t*o;return Array.from(t.variantChildren).sort(ln).forEach(((t,o)=>{s.push(sn(t,e,{...r,delay:n+l(o)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(s)}(t,e,i+o,s,a,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[t,e]="beforeChildren"===l?[s,a]:[a,s];return t().then(e)}return Promise.all([s(),a(n.delay)])}function an(t,e,{delay:n=0,transitionOverride:o,type:i}={}){var r;let{transition:s=t.getDefaultTransition(),transitionEnd:a,...l}=t.makeTargetAnimatable(e);const u=t.getValue("willChange");o&&(s=o);const c=[],h=i&&(null===(r=t.animationState)||void 0===r?void 0:r.getState()[i]);for(const d in l){const e=t.getValue(d),o=l[d];if(!e||void 0===o||h&&un(h,d))continue;let i={delay:n,elapsed:0,...s};if(t.shouldReduceMotion&&j.has(d)&&(i={...i,type:!1,delay:0}),!e.hasAnimated){const e=t.getProps()[ke];e&&(i.elapsed=Le(e,d))}let r=e.start(rn(d,e,o,i));Ce(u)&&(u.add(d),r=r.then((()=>u.remove(d)))),c.push(r)}return Promise.all(c).then((()=>{a&&Ve(t,a)}))}function ln(t,e){return t.sortNodePosition(e)}function un({protectedKeys:t,needsAnimating:e},n){const o=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,o}const cn=[Et.Animate,Et.InView,Et.Focus,Et.Hover,Et.Tap,Et.Drag,Et.Exit],hn=[...cn].reverse(),dn=cn.length;function pn(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let o;if(t.notify("AnimationStart",e),Array.isArray(e)){const i=e.map((e=>sn(t,e,n)));o=Promise.all(i)}else if("string"===typeof e)o=sn(t,e,n);else{const i="function"===typeof e?Ae(t,e,n.custom):e;o=an(t,i,n)}return o.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function fn(t){let e=pn(t);const n={[Et.Animate]:vn(!0),[Et.InView]:vn(),[Et.Hover]:vn(),[Et.Tap]:vn(),[Et.Drag]:vn(),[Et.Focus]:vn(),[Et.Exit]:vn()};let o=!0;const i=(e,n)=>{const o=Ae(t,n);if(o){const{transition:t,transitionEnd:n,...i}=o;e={...e,...i,...n}}return e};function r(r,s){const a=t.getProps(),l=t.getVariantContext(!0)||{},u=[],c=new Set;let p={},f=1/0;for(let e=0;e<dn;e++){const m=hn[e],v=n[m],g=void 0!==a[m]?a[m]:l[m],y=h(g),x=m===s?v.isActive:null;!1===x&&(f=e);let w=g===l[m]&&g!==a[m]&&y;if(w&&o&&t.manuallyAnimateOnMount&&(w=!1),v.protectedKeys={...p},!v.isActive&&null===x||!g&&!v.prevProp||d(g)||"boolean"===typeof g)continue;const b=mn(v.prevProp,g);let E=b||m===s&&v.isActive&&!w&&y||e>f&&y;const P=Array.isArray(g)?g:[g];let A=P.reduce(i,{});!1===x&&(A={});const{prevResolvedValues:T={}}=v,V={...T,...A},S=t=>{E=!0,c.delete(t),v.needsAnimating[t]=!0};for(const t in V){const e=A[t],n=T[t];p.hasOwnProperty(t)||(e!==n?vt(e)&&vt(n)?!se(e,n)||b?S(t):v.protectedKeys[t]=!0:void 0!==e?S(t):c.add(t):void 0!==e&&c.has(t)?S(t):v.protectedKeys[t]=!0)}v.prevProp=g,v.prevResolvedValues=A,v.isActive&&(p={...p,...A}),o&&t.blockInitialAnimation&&(E=!1),E&&!w&&u.push(...P.map((t=>({animation:t,options:{type:m,...r}}))))}if(c.size){const e={};
1c.forEach((n=>{const o=t.getBaseTarget(n);void 0!==o&&(e[n]=o)})),u.push({animation:e})}let m=Boolean(u.length);return o&&!1===a.initial&&!t.manuallyAnimateOnMount&&(m=!1),o=!1,m?e(u):Promise.resolve()}return{animateChanges:r,setActive:function(e,o,i){var s;if(n[e].isActive===o)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,o)})),n[e].isActive=o;const a=r(i,e);for(const t in n)n[t].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function mn(t,e){return"string"===typeof e?e!==t:!!Array.isArray(e)&&!se(e,t)}function vn(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}const gn={animation:oe((({visualElement:t,animate:e})=>{t.animationState||(t.animationState=fn(t)),d(e)&&(0,o.useEffect)((()=>e.subscribe(t)),[e])})),exit:oe((t=>{const{custom:e,visualElement:n}=t,[i,r]=re(),a=(0,o.useContext)(s);(0,o.useEffect)((()=>{n.isPresent=i;const t=n.animationState&&n.animationState.setActive(Et.Exit,!i,{custom:a&&a.custom||e});t&&!i&&t.then(r)}),[i])}))},yn=(t,e)=>Math.abs(t-e);class xn{constructor(t,e,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=En(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=yn(t.x,e.x),o=yn(t.y,e.y);return Math.sqrt(n**2+o**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:o}=t,{timestamp:i}=ze.w;this.history.push({...o,timestamp:i});const{onStart:r,onMove:s}=this.handlers;e||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=wn(e,this.transformPagePoint),Tt(t)&&0===t.buttons?this.handlePointerUp(t,e):Me.Z_.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:o}=this.handlers,i=En(wn(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,i),o&&o(t,i)},Vt(t)&&t.touches.length>1)return;this.handlers=e,this.transformPagePoint=n;const o=wn(Lt(t),this.transformPagePoint),{point:i}=o,{timestamp:r}=ze.w;this.history=[{...i,timestamp:r}];const{onSessionStart:s}=e;s&&s(t,En(o,this.history)),this.removeListeners=(0,Ht.z)(jt(window,"pointermove",this.handlePointerMove),jt(window,"pointerup",this.handlePointerUp),jt(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Me.qY.update(this.updatePoint)}}function wn(t,e){return e?{point:e(t.point)}:t}function bn(t,e){return{x:t.x-e.x,y:t.y-e.y}}function En({point:t},e){return{point:t,delta:bn(t,An(e)),offset:bn(t,Pn(e)),velocity:Tn(e,.1)}}function Pn(t){return t[0]}function An(t){return t[t.length-1]}function Tn(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,o=null;const i=An(t);for(;n>=0&&(o=t[n],!(i.timestamp-o.timestamp>De(e)));)n--;if(!o)return{x:0,y:0};const r=(i.timestamp-o.timestamp)/1e3;if(0===r)return{x:0,y:0};const s={x:(i.x-o.x)/r,y:(i.y-o.y)/r};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}var Vn=n(23967),Sn=n(80022);function Cn(t){return t.max-t.min}function Mn(t,e=0,n=.01){return Math.abs(t-e)<=n}function Ln(t,e,n,o=.5){t.origin=o,t.originPoint=(0,Sn.C)(e.min,e.max,t.origin),t.scale=Cn(n)/Cn(e),(Mn(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=(0,Sn.C)(n.min,n.max,t.origin)-t.originPoint,(Mn(t.translate)||isNaN(t.translate))&&(t.translate=0)}function kn(t,e,n,o){Ln(t.x,e.x,n.x,null===o||void 0===o?void 0:o.originX),Ln(t.y,e.y,n.y,null===o||void 0===o?void 0:o.originY)}function Rn(t,e,n){t.min=n.min+e.min,t.max=t.min+Cn(e)}function Dn(t,e,n){t.min=e.min-n.min,t.max=t.min+Cn(e)}function Bn(t,e,n){Dn(t.x,e.x,n.x),Dn(t.y,e.y,n.y)}var jn=n(24169);function Fn(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function On(t,e){let n=e.min-t.min,o=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,o]=[o,n]),{min:n,max:o}}const In=.35;function Un(t,e,n){return{min:$n(t,e),max:$n(t,n)}}function $n(t,e){return"number"===typeof t?t:t[e]||0}function Nn(t){return[t("x"),t("y")]}function Wn({top:t,left:e,right:n,bottom:o}){return{x:{min:e,max:n},y:{min:t,max:o}}}function zn(t){return void 0===t||1===t}function Yn({scale:t,scaleX:e,scaleY:n}){return!zn(t)||!zn(e)||!zn(n)}function Hn(t){return Yn(t)||Xn(t)||t.z||t.rotate||t.rotateX||t.rotateY}function Xn(t){return qn(t.x)||qn(t.y)}function qn(t){return t&&"0%"!==t}function Zn(t,e,n){return n+e*(t-n)}function _n(t,e,n,o,i){return void 0!==i&&(t=Zn(t,i,o)),Zn(t,n,o)+e}function Gn(t,e=0,n=1,o,i){t.min=_n(t.min,e,n,o,i),t.max=_n(t.max,e,n,o,i)}function Kn(t,{x:e,y:n}){Gn(t.x,e.translate,e.scale,e.originPoint),Gn(t.y,n.translate,n.scale,n.originPoint)}function Jn(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function Qn(t,e){t.min=t.min+e,t.max=t.max+e}function to(t,e,[n,o,i]){const r=void 0!==e[i]?e[i]:.5,s=(0,Sn.C)(t.min,t.max,r);Gn(t,e[n],e[o],s,e.scale)}const eo=["x","scaleX","originX"],no=["y","scaleY","originY"];function oo(t,e){to(t.x,e,eo),to(t.y,e,no)}function io(t,e){return Wn(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),o=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}(t.getBoundingClientRect(),e))}const ro=new WeakMap;class so{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={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=t}start(t,{snapToCursor:e=!1}={}){if(!1===this.visualElement.isPresent)return;this.panSession=new xn(t,{onSessionStart:t=>{this.stopAnimation(),e&&this.snapToCursor(Lt(t,"page").point)},onStart:(t,e)=>{var n;const{drag:o,dragPropagation:i,onDragStart:r}=this.getProps();(!o||i||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=$t(o),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Nn((t=>{var e,n;let o=this.getAxisMotionValue(t).get()||0;if(z.aQ.test(o)){const i=null===(n=null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout)||void 0===n?void 0:n.layoutBox[t];if(i){o=Cn(i)*(parseFloat(o)/100)}}this.originPoint[t]=o})),null===r||void 0===r||r(t,e),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(Et.Drag,!0))},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:o,onDirectionLock:i,onDrag:r}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:s}=e;if(o&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(s),void(null!==this.currentDirection&&(null===i||void 0===i||i(this.currentDirection)));this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),null===r||void 0===r||r(t,e)},onSessionEnd:(t,e)=>this.stop(t,e)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=e;this.startAnimation(o);const{onDragEnd:i}=this.getProps();null===i||void 0===i||i(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;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(e=this.visualElement.animationState)||void 0===e||e.setActive(Et.Drag,!1)}updateAxis(t,e,n){const{drag:o}=this.getProps();if(!n||!ao(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let r=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:n},o){return void 0!==e&&t<e?t=o?(0,Sn.C)(e,t,o.min):Math.max(t,e):void 0!==n&&t>n&&(t=o?(0,Sn.C)(n,t,o.max):Math.min(t,n)),t}(r,this.constraints[t],this.elastic[t])),i.set(r)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:n}=this.visualElement.projection||{},o=this.constraints;t&&c(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(t,{top:e,left:n,bottom:o,right:i}){return{x:Fn(t.x,n,i),y:Fn(t.y,e,o)}}(n.layoutBox,t),this.elastic=function(t=In){return!1===t?t=0:!0===t&&(t=In),{x:Un(t,"left","right"),y:Un(t,"top","bottom")}}(e),o!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Nn((t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!c(t))return!1;const n=t.current;(0,Re.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=function(t,e,n){const o=io(t,n),{scroll:i}=e;return i&&(Qn(o.x,i.offset.x),Qn(o.y,i.offset.y)),o}(n,o.root,this.visualElement.getTransformPagePoint());let r=function(t,e){return{x:On(t.x,e.x),y:On(t.y,e.y)}}(o.layout.layoutBox,i);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(r));this.hasMutatedConstraints=!!t,t&&(r=Wn(t))}return r}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:r,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=Nn((s=>{if(!ao(s,e,this.currentDirection))return;let l=(null===a||void 0===a?void 0:a[s])||{};r&&(l={min:0,max:0});const u=o?200:1e6,c=o?40:1e7,h={type:"inertia",velocity:n?t[s]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,h)}));return Promise.all(l).then(s)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return n.start(rn(t,n,0,e))}stopAnimation(){Nn((t=>this.getAxisMotionValue(t).stop()))}getAxisMotionValue(t){var e;const n="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[n];return o||this.visualElement.getValue(t,(null===(e=this.visualElement.getProps().initial)||void 0===e?void 0:e[t])||0)}snapToCursor(t){Nn((e=>{const{drag:n}=this.getProps();if(!ao(e,n,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(e);if(o&&o.layout){const{min:n,max:r}=o.layout.layoutBox[e];i.set(t[e]-(0,Sn.C)(n,r,.5))}}))}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!c(n)||!o||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Nn((t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();i[t]=function(t,e){let n=.5;const o=Cn(t),i=Cn(e);return i>o?n=(0,Vn.Y)(e.min,e.max-o,t.min):o>i&&(n=(0,Vn.Y)(t.min,t.max-i,e.min)),(0,jn.u)(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",null===(t=o.root)||void 0===t||t.updateScroll(),o.updateLayout(),this.resolveConstraints(),Nn((t=>{if(!ao(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:r}=this.constraints[t];n.set((0,Sn.C)(o,r,i[t]))}))}addListeners(){var t;if(!this.visualElement.current)return;ro.set(this.visualElement,this);const e=jt(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}
1=this.getProps();e&&n&&this.start(t)})),n=()=>{const{dragConstraints:t}=this.getProps();c(t)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",n);o&&!o.layout&&(null===(t=o.root)||void 0===t||t.updateScroll(),o.updateLayout()),n();const r=Pt(window,"resize",(()=>this.scalePositionWithinConstraints())),s=o.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(Nn((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{r(),e(),i(),null===s||void 0===s||s()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:r=In,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:r,dragMomentum:s}}}function ao(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}const lo={pan:oe((function({onPan:t,onPanStart:e,onPanEnd:n,onPanSessionStart:r,visualElement:s}){const a=t||e||n||r,l=(0,o.useRef)(null),{transformPagePoint:u}=(0,o.useContext)(i._),c={onSessionStart:r,onStart:e,onMove:t,onEnd:(t,e)=>{l.current=null,n&&n(t,e)}};(0,o.useEffect)((()=>{null!==l.current&&l.current.updateHandlers(c)})),Ft(s,"pointerdown",a&&function(t){l.current=new xn(t,c,{transformPagePoint:u})}),Yt((()=>l.current&&l.current.end()))})),drag:oe((function(t){const{dragControls:e,visualElement:n}=t,i=(0,b.h)((()=>new so(n)));(0,o.useEffect)((()=>e&&e.subscribe(i)),[i,e]),(0,o.useEffect)((()=>i.addListeners()),[i])}))};function uo(t){return"string"===typeof t&&t.startsWith("var(--")}const co=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function ho(t,e,n=1){(0,Re.k)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[o,i]=function(t){const e=co.exec(t);if(!e)return[,];const[,n,o]=e;return[n,o]}(t);if(!o)return;const r=window.getComputedStyle(e).getPropertyValue(o);return r?r.trim():uo(i)?ho(i,e,n+1):i}const po=new Set(["width","height","top","left","right","bottom","x","y"]),fo=t=>po.has(t),mo=(t,e)=>{t.set(e,!1),t.set(e)},vo=t=>t===W.Rx||t===z.px;var go;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(go||(go={}));const yo=(t,e)=>parseFloat(t.split(", ")[e]),xo=(t,e)=>(n,{transform:o})=>{if("none"===o||!o)return 0;const i=o.match(/^matrix3d\((.+)\)$/);if(i)return yo(i[1],e);{const e=o.match(/^matrix\((.+)\)$/);return e?yo(e[1],t):0}},wo=new Set(["x","y","z"]),bo=B.filter((t=>!wo.has(t)));const Eo={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),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:xo(4,13),y:xo(5,14)},Po=(t,e,n={},o={})=>{e={...e},o={...o};const i=Object.keys(e).filter(fo);let r=[],s=!1;const a=[];if(i.forEach((i=>{const l=t.getValue(i);if(!t.hasValue(i))return;let u=n[i],c=be(u);const h=e[i];let d;if(vt(h)){const t=h.length,e=null===h[0]?1:0;u=h[e],c=be(u);for(let n=e;n<t;n++)d?(0,Re.k)(be(h[n])===d,"All keyframes must be of the same type"):(d=be(h[n]),(0,Re.k)(d===c||vo(c)&&vo(d),"Keyframes must be of the same dimension as the current value"))}else d=be(h);if(c!==d)if(vo(c)&&vo(d)){const t=l.get();"string"===typeof t&&l.set(parseFloat(t)),"string"===typeof h?e[i]=parseFloat(h):Array.isArray(h)&&d===z.px&&(e[i]=h.map(parseFloat))}else(null===c||void 0===c?void 0:c.transform)&&(null===d||void 0===d?void 0:d.transform)&&(0===u||0===h)?0===u?l.set(d.transform(u)):e[i]=c.transform(h):(s||(r=function(t){const e=[];return bo.forEach((n=>{const o=t.getValue(n);void 0!==o&&(e.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),s=!0),a.push(i),o[i]=void 0!==o[i]?o[i]:e[i],mo(l,h))})),a.length){const n=a.indexOf("height")>=0?window.pageYOffset:null,i=((t,e,n)=>{const o=e.measureViewportBox(),i=e.current,r=getComputedStyle(i),{display:s}=r,a={};"none"===s&&e.setStaticValue("display",t.display||"block"),n.forEac
1h((t=>{a[t]=Eo[t](o,r)})),e.render();const l=e.measureViewportBox();return n.forEach((n=>{const o=e.getValue(n);mo(o,a[n]),t[n]=Eo[n](l,r)})),t})(e,t,a);return r.length&&r.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),w.j&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:o}}return{target:e,transitionEnd:o}};function Ao(t,e,n,o){return(t=>Object.keys(t).some(fo))(e)?Po(t,e,n,o):{target:e,transitionEnd:o}}const To=(t,e,n,o)=>{const i=function(t,{...e},n){const o=t.current;if(!(o instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach((t=>{const e=t.get();if(!uo(e))return;const n=ho(e,o);n&&t.set(n)}));for(const i in e){const t=e[i];if(!uo(t))continue;const r=ho(t,o);r&&(e[i]=r,n&&void 0===n[i]&&(n[i]=t))}return{target:e,transitionEnd:n}}(t,e,o);return Ao(t,e=i.target,n,o=i.transitionEnd)};var Vo=n(20270),So=n(89609),Co=n(21560);const Mo=Object.keys(x),Lo=Mo.length,ko=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];const Ro=["initial",...cn],Do=Ro.length;class Bo extends class{constructor({parent:t,props:e,reducedMotionConfig:n,visualState:o},i={}){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=()=>Me.Z_.render(this.render,!1,!0);
1const{latestValues:r,renderState:s}=o;this.latestValues=r,this.baseTarget={...r},this.initialValues=e.initial?{...r}:{},this.renderState=s,this.parent=t,this.props=e,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=i,this.isControllingVariants=f(e),this.isVariantNode=m(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:a,...l}=this.scrapeMotionValuesFromProps(e);for(const u in l){const t=l[u];void 0!==r[u]&&(0,O.i)(t)&&(t.set(r[u],!1),Ce(a)&&a.add(u))}}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))),So.O.current||(0,Vo.A)(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||So.n.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,e,n;null===(t=this.projection)||void 0===t||t.unmount(),Me.qY.update(this.notifyUpdate),Me.qY.render(this.render),this.valueSubscriptions.forEach((t=>t())),null===(e=this.removeFromVariantTree)||void 0===e||e.call(this),null===(n=this.parent)||void 0===n||n.children.delete(this);for(const o in this.events)this.events[o].clear();this.current=null}bindToMotionValue(t,e){const n=j.has(t),o=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&Me.Z_.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),i=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,(()=>{o(),i()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures(t,e,n,i,r,s){const a=[];"production"!==qt&&n&&e&&(0,Re.k)(!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 l=0;l<Lo;l++){const e=Mo[l],{isEnabled:n,Component:i}=x[e];n(t)&&i&&a.push((0,o.createElement)(i,{key:e,...t,visualElement:this}))}if(!this.projection&&r){this.projection=new r(i,this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:o,dragConstraints:a,layoutScroll:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(o)||a&&c(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"===typeof n?n:"both",initialPromotionConfig:s,layoutScroll:l})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}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<ko.length;e++){const n=ko[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const o=t["on"+n];o&&(this.propEventSubscriptions[n]=this.on(n,o))}this.prevMotionValues=function(t,e,n){const{willChange:o}=e;for(const i in e){const r=e[i],s=n[i];if((0,O.i)(r))t.addValue(i,r),Ce(o)&&o.add(i);else if((0,O.i)(s))t.addValue(i,(0,le.B)(r,{owner:t})),Ce(o)&&o.remove(i);else if(s!==r)if(t.hasValue(i)){const e=t.getValue(i);!e.hasAnimated&&e.set(r)}else{const e=t.getStaticValue(i);t.addValue(i,(0,le.B)(void 0!==e?e:r))}}for(const i in n)void 0===e[i]&&t.removeValue(i);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,n;if(t)return null===(e=this.parent)||void 0===e?void 0:e.getVariantContext();if(!this.isControllingVariants){const t=(null===(n=this.parent)||void 0===n?void 0:n.getVariantContext())||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const o={};for(let i=0;i<Do;i++){const t=Ro[i],e=this.props[t];(h(e)||!1===e)&&(o[t]=e)}return o}addVariantChild(t){var e;const n=this.getClosestVariantNode();if(n)return null===(e=n.variantChildren)||void 0===e||e.add(t),()=>n.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 n=this.values.get(t);return void 0===n&&void 0!==e&&(n=(0,le.B)(e,{owner:this}),this.addValue(t,n)),n}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;const{initial:n}=this.props,o="string"===typeof n||"object"===typeof n?null===(e=mt(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==o)return o;const i=this.getBaseTargetFromProps(this.props,t);return void 0===i||(0,O.i)(i)?void 0!==this.initialValues[t]&&void 0===o?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new Co.L),this.events[t].add(e)}notify(t,...e){var n;null===(n=this.events[t])||void 0===n||n.notify(...e)}}{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){var n;return null===(n=t.style)||void 0===n?void 0:n[e]}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:o},i){let r=function(t,e,n){var o;const i={};for(const r in t){const t=Se(r,e);i[r]=void 0!==t?t:null===(o=n.getValue(r))||void 0===o?void 0:o.get()}return i}(n,t||{},this);if(o&&(e&&(e=o(e)),n&&(n=o(n)),r&&(r=o(r))),i){!function(t,e,n){var o,i;const r=Object.keys(e).filter((e=>!t.hasValue(e))),s=r.length;if(s)for(let a=0;a<s;a++){const s=r[a],l=e[s];let u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(i=null!==(o=n[s])&&void 0!==o?o:t.readValue(s))&&void 0!==i?i:e[s]),void 0!==u&&null!==u&&("string"===typeof u&&(/^\-?\d*\.?\d+$/.test(u)||ae(u))?u=parseFloat(u):!Pe(u)&&ue.P.test(l)&&(u=ye(s,l)),t.addValue(s,(0,le.B)(u,{owner:t})),void 0===n[s]&&(n[s]=u),null!==u&&t.setBaseTarget(s,u))}}(this,n,r);const t=To(this,n,r,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class jo extends Bo{readValueFromInstance(t,e){if(j.has(e)){const t=ge(e);return t&&t.default||0}{const o=(n=t,window.getComputedStyle(n)),i=($(e)?o.getPropertyValue(e):o[e])||0;return"string"===typeof i?i.trim():i}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return io(t,e)}build(t,e,n,o){X(t,e,n,o.transformTemplate)}scrapeMotionValuesFromProps(t){return pt(t)}renderInstance(t,e,n,o){ct(t,e,n,o)}}class Fo extends Bo{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){var n;return j.has(e)?(null===(n=ge(e))||void 0===n?void 0:n.default)||0:(e=ht.has(e)?e:ut(e),t.getAttribute(e))}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(t){return ft(t)}build(t,e,n,o){it(t,e,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,e,n,o){dt(t,e,0,o)}mount(t){this.isSVGTag=st(t.tagName),super.mount(t)}}const Oo=(t,e)=>R(t)?new Fo(e,{enableHardwareAcceleration:!1}):new jo(e,{enableHardwareAcceleration:!0});function Io(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Uo={correct:(t,e)=>{if(!e.target)return t;if("string"===typeof t){if(!z.px.test(t))return t;t=parseFloat(t)}return`${Io(t,e.target.x)}% ${Io(t,e.target.y)}%`}},$o="_$css",No={correct:(t,{treeScale:e,projectionDelta:n})=>{const o=t,i=t.includes("var("),r=[];i&&(t=t.replace(co,(t=>(r.push(t),$o))));const s=ue.P.parse(t);if(s.length>5)return o;const a=ue.P.createTransformer(t),l="number"!==typeof s[0]?1:0,u=n.x.scale*e.x,c=n.y.scale*e.y;
1s[0+l]/=u,s[1+l]/=c;const h=(0,Sn.C)(u,c,.5);"number"===typeof s[2+l]&&(s[2+l]/=h),"number"===typeof s[3+l]&&(s[3+l]/=h);let d=a(s);if(i){let t=0;d=d.replace($o,(()=>{const e=r[t];return t++,e}))}return d}};class Wo extends o.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;var r;r=zo,Object.assign(D,r),i&&(e.group&&e.group.add(i),n&&n.register&&o&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",(()=>{this.safeToRemove()})),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),E.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:o,isPresent:i}=this.props,r=n.projection;return r?(r.isPresent=i,o||t.layoutDependency!==e||void 0===e?r.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?r.promote():r.relegate()||Me.Z_.postRender((()=>{var t;(null===(t=r.getStack())||void 0===t?void 0:t.members.length)||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),(null===e||void 0===e?void 0:e.group)&&e.group.remove(o),(null===n||void 0===n?void 0:n.deregister)&&n.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;null===t||void 0===t||t()}render(){return null}}const zo={borderRadius:{...Uo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Uo,borderTopRightRadius:Uo,borderBottomLeftRadius:Uo,borderBottomRightRadius:Uo,boxShadow:No},Yo={measureLayout:function(t){const[e,n]=re(),i=(0,o.useContext)(A);return o.createElement(Wo,{...t,layoutGroup:i,switchLayoutGroup:(0,o.useContext)(V),isPresent:e,safeToRemove:n})}};var Ho=n(27255),Xo=n(81662);const qo=["TopLeft","TopRight","BottomLeft","BottomRight"],Zo=qo.length,_o=t=>"string"===typeof t?parseFloat(t):t,Go=t=>"number"===typeof t||z.px.test(t);function Ko(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const Jo=ti(0,.5,Ho.Bn),Qo=ti(.5,.95,Xo.Z);function ti(t,e,n){return o=>o<t?0:o>e?1:n((0,Vn.Y)(t,e,o))}function ei(t,e){t.min=e.min,t.max=e.max}function ni(t,e){ei(t.x,e.x),ei(t.y,e.y)}function oi(t,e,n,o,i){return t=Zn(t-=e,1/n,o),void 0!==i&&(t=Zn(t,1/i,o)),t}function ii(t,e,[n,o,i],r,s){!function(t,e=0,n=1,o=.5,i,r=t,s=t){z.aQ.test(e)&&(e=parseFloat(e),e=(0,Sn.C)(s.min,s.max,e/100)-s.min);if("number"!==typeof e)return;let a=(0,Sn.C)(r.min,r.max,o);t===r&&(a-=e),t.min=oi(t.min,e,n,a,i),t.max=oi(t.max,e,n,a,i)}(t,e[n],e[o],e[i],e.scale,r,s)}const ri=["x","scaleX","originX"],si=["y","scaleY","originY"];function ai(t,e,n,o){ii(t.x,e,ri,null===n||void 0===n?void 0:n.x,null===o||void 0===o?void 0:o.x),ii(t.y,e,si,null===n||void 0===n?void 0:n.y,null===o||void 0===o?void 0:o.y)}function li(t){return 0===t.translate&&1===t.scale}function ui(t){return li(t.x)&&li(t.y)}function ci(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 hi(t){return Cn(t.x)/Cn(t.y)}var di=n(10010);class pi{constructor(){this.members=[]}add(t){(0,di.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,di.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let o=e;o>=0;o--){const t=this.members[o];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(t,e){var n;const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,e&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),(null===(n=t.root)||void 0===n?void 0:n.isUpdating)&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;!1===i&&o.hide()}}exitAnimationComplete(){this.members.forEach((t=>{var e,n,o,i,r;null===(n=(e=t.options).onExitComplete)||void 0===n||n.call(e),null===(r=null===(o=t.resumingFrom)||void 0===o?void 0:(i=o.options).onExitComplete)||void 0===r||r.call(i)}))}
1scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function fi(t,e,n){let o="";const i=t.x.translate/e.x,r=t.y.translate/e.y;if((i||r)&&(o=`translate3d(${i}px, ${r}px, 0) `),1===e.x&&1===e.y||(o+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:t,rotateX:e,rotateY:i}=n;t&&(o+=`rotate(${t}deg) `),e&&(o+=`rotateX(${e}deg) `),i&&(o+=`rotateY(${i}deg) `)}const s=t.x.scale*e.x,a=t.y.scale*e.y;return 1===s&&1===a||(o+=`scale(${s}, ${a})`),o||"none"}const mi=(t,e)=>t.depth-e.depth;class vi{constructor(){this.children=[],this.isDirty=!1}add(t){(0,di.y4)(this.children,t),this.isDirty=!0}remove(t){(0,di.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(mi),this.isDirty=!1,this.children.forEach(t)}}const gi=["","X","Y","Z"];let yi=0;function xi({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:o,resetTransform:i}){return class{constructor(t,n={},o=(null===e||void 0===e?void 0:e())){this.id=yi++,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(Ei),this.nodes.forEach(Si),this.nodes.forEach(Ci)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=t,this.latestValues=n,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new vi)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new Co.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);null===n||void 0===n||n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}registerPotentialNode(t,e){this.potentialNodes.set(t,e)}mount(e,n=!1){var o;if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;const{layoutId:i,layout:r,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),null===(o=this.parent)||void 0===o||o.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(r||i)&&(this.isLayoutDirty=!0),t){let n;const o=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=$e(o,250),E.hasAnimatedSinceResize&&(E.hasAnimatedSinceResize=!1,this.nodes.forEach(Vi))}))}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||r)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:o})=>{var i,r,a,l,u;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const c=null!==(r=null!==(i=this.options.transition)&&void 0!==i?i:s.getDefaultTransition())&&void 0!==r?r:Bi,{onLayoutAnimationStart:h,onLayoutAnimationComplete:d}=s.getProps(),p=!this.targetLayout||!ci(this.targetLayout,o)||n,f=!e&&n;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);const e={...Qe(c,"layout"),onPlay:h,onComplete:d};s.shouldReduceMotion&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||0!==this.animationProgress||Vi(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=o}))}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,Me.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(Mi),this.animationId++)}willUpdate(t=!0){var e,n,o;if(this.root.isUpdateBlocked())return void(null===(n=(e=this.options).onExitComplete)||void 0===n||n.call(e));
1if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let a=0;a<this.path.length;a++){const t=this.path[a];t.shouldResetTransform=!0,t.updateScroll("snapshot")}const{layoutId:i,layout:r}=this.options;if(void 0===i&&!r)return;const s=null===(o=this.options.visualElement)||void 0===o?void 0:o.getProps().transformTemplate;this.prevTransformTemplateValue=null===s||void 0===s?void 0:s(this.latestValues,""),this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Ai);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(ji),this.potentialNodes.clear()),this.nodes.forEach(Ti),this.nodes.forEach(wi),this.nodes.forEach(bi),this.clearAllSnapshots(),Me.iW.update(),Me.iW.preRender(),Me.iW.render())}clearAllSnapshots(){this.nodes.forEach(Pi),this.sharedNodes.forEach(Li)}scheduleUpdateProjection(){Me.Z_.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Me.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)return;if(this.updateScroll(),(!this.options.alwaysMeasureLayout||!this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},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?void 0:e.layoutBox)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:o(this.instance),offset:n(this.instance)})}resetTransform(){var t;if(!i)return;const e=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!ui(this.projectionDelta),o=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate,r=null===o||void 0===o?void 0:o(this.latestValues,""),s=r!==this.prevTransformTemplateValue;e&&(n||Hn(this.latestValues)||s)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var o;return t&&(n=this.removeTransform(n)),Fi((o=n).x),Fi(o.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(Qn(e.x,n.offset.x),Qn(e.y,n.offset.y)),e}removeElementScroll(t){const e={x:{min:0,max:0},y:{min:0,max:0}};ni(e,t);for(let n=0;n<this.path.length;n++){const o=this.path[n],{scroll:i,options:r}=o;if(o!==this.root&&i&&r.layoutScroll){if(i.isRoot){ni(e,t);const{scroll:n}=this.root;n&&(Qn(e.x,-n.offset.x),Qn(e.y,-n.offset.y))}Qn(e.x,i.offset.x),Qn(e.y,i.offset.y)}}return e}applyTransform(t,e=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};ni(n,t);for(let o=0;o<this.path.length;o++){const t=this.path[o];!e&&t.options.layoutScroll&&t.scroll&&t!==t.root&&oo(n,{x:-t.scroll.offset.x,y:-t.scroll.offset.y}),Hn(t.latestValues)&&oo(n,t.latestValues)}return Hn(this.latestValues)&&oo(n,this.latestValues),n}removeTransform(t){var e;const n={x:{min:0,max:0},y:{min:0,max:0}};ni(n,t);for(let o=0;o<this.path.length;o++){const t=this.path[o];if(!t.instance)continue;if(!Hn(t.latestValues))continue;Yn(t.latestValues)&&t.updateSnapshot();const i={x:{min:0,max:0},y:{min:0,max:0}};ni(i,t.measurePageBox()),ai(n,t.latestValues,null===(e=t.snapshot)||void 0===e?void 0:e.layoutBox,i)}return Hn(this.latestValues)&&ai(n,this.latestValues),n}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;const e=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;const{layout:n,layoutId:o}=this.options;
1if(this.layout&&(n||o)){if(!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout?(this.relativeParent=t,this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Bn(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),ni(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var i,r,s;if(this.relativeTarget||this.targetDelta)if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(t=this.relativeParent)||void 0===t?void 0:t.target)?(i=this.target,r=this.relativeTarget,s=this.relativeParent.target,Rn(i.x,r.x,s.x),Rn(i.y,r.y,s.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):ni(this.target,this.layout.layoutBox),Kn(this.target,this.targetDelta)):ni(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target?(this.relativeParent=t,this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Bn(this.relativeTargetOrigin,this.target,t.target),ni(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!Yn(this.parent.latestValues)&&!Xn(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var t;const{isProjectionDirty:e,isTransformDirty:n}=this;this.isProjectionDirty=this.isTransformDirty=!1;const o=this.getLead(),i=Boolean(this.resumingFrom)||this!==o;let r=!0;if(e&&(r=!1),i&&n&&(r=!1),r)return;const{layout:s,layoutId:a}=this.options;if(this.isTreeAnimating=Boolean((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;ni(this.layoutCorrected,this.layout.layoutBox),function(t,e,n,o=!1){var i,r;const s=n.length;if(!s)return;let a,l;e.x=e.y=1;for(let u=0;u<s;u++)a=n[u],l=a.projectionDelta,"contents"!==(null===(r=null===(i=a.instance)||void 0===i?void 0:i.style)||void 0===r?void 0:r.display)&&(o&&a.options.layoutScroll&&a.scroll&&a!==a.root&&oo(t,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),l&&(e.x*=l.x.scale,e.y*=l.y.scale,Kn(t,l)),o&&Hn(a.latestValues)&&oo(t,a.latestValues));e.x=Jn(e.x),e.y=Jn(e.y)}(this.layoutCorrected,this.treeScale,this.path,i);const{target:l}=o;if(!l)return;this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});const u=this.treeScale.x,c=this.treeScale.y,h=this.projectionTransform;kn(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=fi(this.projectionDelta,this.treeScale),this.projectionTransform===h&&this.treeScale.x===u&&this.treeScale.y===c||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e,n,o;null===(n=(e=this.options).scheduleRender)||void 0===n||n.call(e),t&&(null===(o=this.getStack())||void 0===o||o.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){var n,o;const i=this.snapshot,r=(null===i||void 0===i?void 0:i.latestValues)||{},s={...this.latestValues},a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!e;const l={x:{min:0,max:0},y:{min:0,max:0}},u=(null===i||void 0===i?void 0:i.source)!==(null===(n=this.layout)||void 0===n?void 0:n.source),c=((null===(o=this.getStack())||void 0===o?void 0:o.members.length)||0)<=1,h=Boolean(u&&!c&&!0===this.options.crossfade&&!this.path.some(Di));this.animationProgress=0,this.mixTargetDelta=e=>{var n;const o=e/1e3;var i,d,p,f;ki(a.x,t.x,o),ki(a.y,t.y,o),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(Bn(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),i=this.relativeTarget,d=this.relativeTargetOrigin,p=l,f=o,Ri(i.x,d.x,p.x,f),Ri(i.y,d.y,p.y,f)),u&&(this.animationValues=s,function(t,e,n,o,i,r){i?(t.opacity=(0,Sn.C)(0,void 0!==n.opacity?n.opacity:1,Jo(o)),t.opacityExit=(0,Sn.C)(void 0!==e.opacity?e.opacity:1,0,Qo(o))):r&&(t.opacity=(0,Sn.C)(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,o));for(let s=0;s<Zo;s++){const i=`border${qo[s]}Radius`;let r=Ko(e,i),a=Ko(n,i);void 0===r&&void 0===a||(r||(r=0),a||(a=0),0===r||0===a||Go(r)===Go(a)?(t[i]=Math.max((0,Sn.C)(_o(r),_o(a),o),0),(z.aQ.test(a)||z.aQ.test(r))&&(t[i]+="%")):t[i]=a)}(e.rotate||n.rotate)&&(t.rotate=(0,Sn.C)(e.rotate||0,n.rotate||0,o))}(s,r,this.latestValues,o,h,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=o},this.mixTargetDelta(0)}startAnimation(t){var e,n;this.notifyListeners("animationStart"),null===(e=this.currentAnimation)||void 0===e||e.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(Me.qY.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Me.Z_.update((()=>{E.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n={}){const o=(0,O.i)(t)?t:(0,le.B)(t);return o.start(rn("",o,e,n)),{stop:()=>o.stop(),isAnimating:()=>
vendor: 4,234 bytes, line 1
1o.isAnimating()}}(0,1e3,{...t,onUpdate:e=>{var n;this.mixTargetDelta(e),null===(n=t.onUpdate)||void 0===n||n.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(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:o,latestValues:i}=t;if(e&&n&&o){if(this!==t&&this.layout&&o&&Oi(this.options.animationType,this.layout.layoutBox,o.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=Cn(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const o=Cn(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+o}ni(e,n),oo(e,i),kn(this.projectionDeltaWithTransform,this.layoutCorrected,e,i)}}registerSharedNode(t,e){var n,o,i;this.sharedNodes.has(t)||this.sharedNodes.set(t,new pi);this.sharedNodes.get(t).add(e),e.promote({transition:null===(n=e.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(o=e.options.initialPromotionConfig)||void 0===o?void 0:o.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(o,e)})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const o=this.getStack();o&&o.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;const o={};for(let i=0;i<gi.length;i++){const e="rotate"+gi[i];n[e]&&(o[e]=n[e],t.setStaticValue(e,0))}null===t||void 0===t||t.render();for(const i in o)t.setStaticValue(i,o[i]);t.scheduleRender()}getProjectionStyles(t={}){var e,n,o;const i={};if(!this.instance||this.isSVG)return i;if(!this.isVisible)return{visibility:"hidden"};i.visibility="";const r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=gt(t.pointerEvents)||"",i.transform=r?r(this.latestValues,""):"none",i;const s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=gt(t.pointerEvents)||""),this.hasProjected&&!Hn(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}const a=s.animationValues||s.latestValues;this.applyTransformsToTarget(),i.transform=fi(this.projectionDeltaWithTransform,this.treeScale,a),r&&(i.transform=r(a,i.transform));const{x:l,y:u}=this.projectionDelta;i.transformOrigin=`${100*l.origin}% ${100*u.origin}% 0`,s.animationValues?i.opacity=s===this?null!==(o=null!==(n=a.opacity)&&void 0!==n?n:this.latestValues.opacity)&&void 0!==o?o:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:i.opacity=s===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const c in D){if(void 0===a[c])continue;const{correct:t,applyTo:e}=D[c],n=t(a[c],s);if(e){const t=e.length;for(let o=0;o<t;o++)i[e[o]]=n}else i[c]=n}return this.options.layoutId&&(i.pointerEvents=s===this?gt(t.pointerEvents)||"":"none"),i}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(Ai),this.root.sharedNodes.clear()}}}function wi(t){t.updateLayout()}function bi(t){var e,n,o;const i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:n}=t.layout,{animationType:o}=t.options,r=i.source!==t.layout.source;"size"===o?Nn((t=>{const n=r?i.measuredBox[t]:i.layoutBox[t],o=Cn(n);n.min=e[t].min,n.max=n.min+o})):Oi(o,i.layoutBox,e)&&Nn((t=>{const n=r?i.measuredBox[t]:i.layoutBox[t],o=Cn(e[t]);n.max=n.min+o}));const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};kn(s,e,i.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};r?kn(a,t.applyTransform(n,!0),i.measuredBox):kn(a,e,i.layoutBox);const l=!ui(s);let u=!1;if(!t.resumeFrom){const n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:t,layout:o}=n;if(t&&o){const n={x:{min:0,max:0},y:{min:0,max:0}};Bn(n,i.layoutBox,t.layoutBox);const r={x:{min:0,max:0},y:{min:0,max:0}};Bn(r,e,o.layoutBox),ci(n,r)||(u=!0)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else t.isLead()&&(null===(o=(n=t.options).onExitComplete)||void 0===o||o.call(n));t.options.transition=void 0}function Ei(t){t.isProjectionDirty||(t.isProjectionDirty=Boolean(t.parent&&t.parent.isProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=Boolean(t.parent&&t.parent.isTransformDirty))}function Pi(t){t.clearSnapshot()}function Ai(t){t.clearMeasurements()}function Ti(t){const{visualElement:e}=t.options;(null===e||void 0===e?void 0:e.getProps().onBeforeLayoutMeasure)&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Vi(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function Si(t){t.resolveTargetDelta()}function Ci(t){t.calcProjection()}function Mi(t){t.resetRotation()}function Li(t){t.removeLeadSnapshot()}function ki(t,e,n){t.translate=(0,Sn.C)(e.translate,0,n),t.scale=(0,Sn.C)(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ri(t,e,n,o){t.min=(0,Sn.C)(e.min,n.min,o),t.max=(0,Sn.C)(e.max,n.max,o)}function Di(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const Bi={duration:.45,ease:[.4,0,.1,1]};function ji(t,e){let n=t.root;for(let i=t.path.length-1;i>=0;i--)if(Boolean(t.path[i].instance)){n=t.path[i];break}const o=(n&&n!==t.root?n.instance:document).querySelector(`[data-
1projection-id="${e}"]`);o&&t.mount(o,!0)}function Fi(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function Oi(t,e,n){return"position"===t||"preserve-aspect"===t&&!Mn(hi(e),hi(n),.2)}const Ii=xi({attachResizeListener:(t,e)=>Pt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ui={current:void 0},$i=xi({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ui.current){const t=new Ii(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),Ui.current=t}return Ui.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),Ni={...gn,...ie,...lo,...Yo},Wi=L(((t,e)=>function(t,{forwardMotionProps:e=!1},n,o,i){return{...R(t)?wt:bt,preloadedFeatures:n,useRender:lt(e),createVisualElement:o,projectionNodeConstructor:i,Component:t}}(t,e,Ni,Oo,$i)))},10010:function(t,e,n){function o(t,e){-1===t.indexOf(e)&&t.push(e)}function i(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{cl:function(){return i},y4:function(){return o}})},24169:function(t,e,n){n.d(e,{u:function(){return o}});const o=(t,e,n)=>Math.min(Math.max(n,t),e)},64606:function(t,e,n){n.d(e,{s:function(){return A}});var o=n(24394),i=n(85385),r=n(24169),s=n(80022);function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var l=n(26382),u=n(40819),c=n(93184);const h=(t,e,n)=>{const o=t*t;return Math.sqrt(Math.max(0,n*(e*e-o)+o))},d=[l.$,u.m,c.J];function p(t){const e=(n=t,d.find((t=>t.test(n))));var n;(0,o.k)(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let i=e.parse(t);return e===c.J&&(i=function({hue:t,saturation:e,lightness:n,alpha:o}){t/=360,n/=100;let i=0,r=0,s=0;if(e/=100){const o=n<.5?n*(1+e):n+e-n*e,l=2*n-o;i=a(l,o,t+1/3),r=a(l,o,t),s=a(l,o,t-1/3)}else i=r=s=n;return{red:Math.round(255*i),green:Math.round(255*r),blue:Math.round(255*s),alpha:o}}(i)),i}const f=(t,e)=>{const n=p(t),o=p(e),i={...n};return t=>(i.red=h(n.red,o.red,t),i.green=h(n.green,o.green,t),i.blue=h(n.blue,o.blue,t),i.alpha=(0,s.C)(n.alpha,o.alpha,t),u.m.transform(i))};var m=n(83624),v=n(51550);function g(t,e){return"number"===typeof t?n=>(0,s.C)(t,e,n):i.$.test(t)?f(t,e):w(t,e)}const y=(t,e)=>{const n=[...t],o=n.length,i=t.map(((t,n)=>g(t,e[n])));return t=>{for(let e=0;e<o;e++)n[e]=i[e](t);return n}},x=(t,e)=>{const n={...t,...e},o={};for(const i in n)void 0!==t[i]&&void 0!==e[i]&&(o[i]=g(t[i],e[i]));return t=>{for(const e in o)n[e]=o[e](t);return n}},w=(t,e)=>{const n=v.P.createTransformer(e),i=(0,v.V)(t),r=(0,v.V)(e);return i.numColors===r.numColors&&i.numNumbers>=r.numNumbers?(0,m.z)(y(i.values,r.values),n):((0,o.K)(!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.`),n=>`${n>0?e:t}`)};var b=n(23967);const E=(t,e)=>n=>(0,s.C)(t,e,n);function P(t,e,n){const o=[],r=n||("number"===typeof(s=t[0])?E:"string"===typeof s?i.$.test(s)?f:w:Array.isArray(s)?y:"object"===typeof s?x:E);var s;const a=t.length-1;for(let i=0;i<a;i++){let n=r(t[i],t[i+1]);if(e){const t=Array.isArray(e)?e[i]:e;n=(0,m.z)(t,n)}o.push(n)}return o}function A(t,e,{clamp:n=!0,ease:i,mixer:s}={}){const a=t.length;(0,o.k)(a===e.length,"Both input and output ranges must be the same length"),(0,o.k)(!i||!Array.isArray(i)||i.length===a-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[a-1]&&(t=[...t].reverse(),e=[...e].reverse());const l=P(e,i,s),u=l.length,c=e=>{let n=0;if(u>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const o=(0,b.Y)(t[n],t[n+1],e);return l[n](o)};return n?e=>c((0,r.u)(t[0],t[a-1],e)):c}},11741:function(t,e,n){n.d(e,{j:function(){return o}});const o="undefined"!==typeof document},80022:function(t,e,n){n.d(e,{C:function(){return o}});const o=(t,e,n)=>-n*t+n*e+t},81662:function(t,e,n){n.d(e,{Z:function(){return o}});const o=t=>t},83624:function(t,e,n){n.d(e,{z:function(){return i}});const o=(t,e)=>n=>e(t(n)),i=(...t)=>t.reduce(o)},23967:function(t,e,n){n.d(e,{Y:function(){return o}});const o=(t,e,n)=>{const o=e-t;return 0===o?1:(n-t)/o}},20270:function(t,e,n){n.d(e,{A:function(){return r}});
1var o=n(11741),i=n(89609);function r(){if(i.O.current=!0,o.j)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>i.n.current=t.matches;t.addListener(e),e()}else i.n.current=!1}},89609:function(t,e,n){n.d(e,{O:function(){return i},n:function(){return o}});const o={current:null},i={current:!1}},21560:function(t,e,n){n.d(e,{L:function(){return i}});var o=n(10010);class i{constructor(){this.subscriptions=[]}add(t){return(0,o.y4)(this.subscriptions,t),()=>(0,o.cl)(this.subscriptions,t)}notify(t,e,n){const o=this.subscriptions.length;if(o)if(1===o)this.subscriptions[0](t,e,n);else for(let i=0;i<o;i++){const o=this.subscriptions[i];o&&o(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},24368:function(t,e,n){n.d(e,{v:function(){return i}});var o=n(64606);function i(...t){const e=!Array.isArray(t[0]),n=e?0:-1,i=t[0+n],r=t[1+n],s=t[2+n],a=t[3+n],l=(0,o.s)(r,s,{mixer:(u=s[0],(t=>"object"===typeof t&&t.mix)(u)?u.mix:void 0),...a});var u;return e?l(i):l}},96681:function(t,e,n){n.d(e,{h:function(){return i}});var o=n(67294);function i(t){const e=(0,o.useRef)(null);return null===e.current&&(e.current=t()),e.current}},58868:function(t,e,n){n.d(e,{L:function(){return i}});var o=n(67294);const i=n(11741).j?o.useLayoutEffect:o.useEffect},3038:function(t,e,n){function o(t,e){return e?t*(1e3/e):0}n.d(e,{R:function(){return o}})},33234:function(t,e,n){n.d(e,{B:function(){return l}});var o=n(37367),i=n(30404),r=n(21560),s=n(3038);class a{constructor(t,e={}){var n;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;const{delta:n,timestamp:r}=o.w;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,i.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=()=>i.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=(n=this.current,!isNaN(parseFloat(n))),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){return this.events[t]||(this.events[t]=new r.L),this.events[t].add(e)}clearListeners(){for(const 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,n){this.set(e),this.prev=t,this.timeDelta=n}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 l(t,e){return new a(t,e)}},26382:function(t,e,n){n.d(e,{$:function(){return i}});var o=n(40819);const i={test:(0,n(98834).i)("#"),parse:function(t){let e="",n="",o="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),o=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),o=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,o+=o,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:i?parseInt(i,16)/255:1}},transform:o.m.transform}},93184:function(t,e,n){n.d(e,{J:function(){return a}});var o=n(61649),i=n(96190),r=n(36430),s=n(98834);const a={test:(0,s.i)("hsl","hue"),parse:(0,s.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+i.aQ.transform((0,r.Nw)(e))+", "+i.aQ.transform((0,r.Nw)(n))+", "+(0,r.Nw)(o.Fq.transform(s))+")"}},85385:function(t,e,n){n.d(e,{$:function(){return a}});var o=n(36430),i=n(26382),r=n(93184),s=n(40819);const a={test:t=>s.m.test(t)||i.$.test(t)||r.J.test(t),parse:t=>s.m.test(t)?s.m.parse(t):r.J.test(t)?r.J.parse(t):i.$.parse(t),transform:t=>(0,o.HD)(t)?t:t.hasOwnProperty("red")?s.m.transform(t):r.J.transform(t)}},40819:function(t,e,n){n.d(e,{m:function(){return l}});var o=n(24169),i=n(61649),r=n(36430),s=n(98834);const a={...i.Rx,transform:t=>Math.round((t=>(0,o.u)(0,255,t))(t))},l={test:(0,s.i)("rgb","red"),parse:(0,s.d)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:o=1})=>"rgba("+a.transform(t)+", "+a.transform(e)+", "+a.transform(n)+", "+(0,r.Nw)(i.Fq.transform(o))+")"}},98834:function(t,e,n){n.d(e,{d:function(){return r},i:function(){return i}});var o=n(36430);const i=(t,e)=>n=>Boolean((0,o.HD)(n)&&o.mj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),r=(t,e,n)=>i=>{if(!(0,o.HD)(i))return i;const[r,s,a,l]=i.match(o.KP);return{[t]:parseFloat(r),[e]:parseFloat(s),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},51550:function(t,e,n){n.d(e,{P:function(){return d},V:function(){return l}});var o=n(85385),i=n(61649),r=n(36430);const s="${c}",a="${n}";function l(t){"number"===typeof t&&(t=`${t}`);const e=[];let n=0,l=0;const u=t.match(r.dA);u&&(n=u.length,t=t.replace(r.dA,s),e.push(...u.map(o.$.parse)));const c=t.match(r.KP);return c&&(l=c.length,t=t.replace(r.KP,a),e.push(...c.map(i.Rx.parse))),{values:e,numColors:n,numNumbers:l,tokenised:t}}function u(t){return l(t).values}function c(t){const{values:e,numColors:n,tokenised:i}=l(t),u=e.length;return t=>{let e=i;for(let i=0;i<u;i++)e=e.replace(i<n?s:a,i<n?o.$.transform(t[i]):(0,r.Nw)(t[i]));return e}}const h=t=>"number"===typeof t?0:t;const d={test:function(t){var e,n;return isNaN(t)&&(0,r.HD)(t)&&((null===(e=t.match(r.KP))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(r.dA))||void 0===n?void 0:n.length)||0)>0},parse:u,createTransformer:c,getAnimatableNone:function(t){const e=u(t);return c(t)(e.map(h))}}},61649:function(t,e,n){n.d(e,{Fq:function(){return r},Rx:function(){return i},bA:function(){return s}});var o=n(24169);const i={test:t=>"number"===typeof t,parse:parseFloat,transform:t=>t},r={...i,transform:t=>(0,o.u)(0,1,t)},s={...i,default:1}},96190:function(t,e,n){n.d(e,{$C:function(){return c},RW:function(){return r},aQ:function(){return s},px:function(){return a},vh:function(){return l},vw:function(){return u}});var o=n(36430);const i=t=>({test:e=>(0,o.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),r=i("deg"),s=i("%"),a=i("px"),l=i("vh"),u=i("vw"),c={...s,parse:t=>s.parse(t)/100,transform:t=>s.transform(100*t)}},36430:function(t,e,n){n.d(e,{HD:function(){return a},KP:function(){return i},Nw:function(){return o},dA:function(){return r},mj:function(){return s}});const o=t=>
1Math.round(1e5*t)/1e5,i=/(-)?([\d]*\.?[\d])+/g,r=/(#[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}},98185:function(t,e,n){n.d(e,{v:function(){return z}});function o(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]])}return n}Object.create;Object.create;"function"===typeof SuppressedError&&SuppressedError;const i=new WeakMap;let r;function s({target:t,contentRect:e,borderBoxSize:n}){var o;null===(o=i.get(t))||void 0===o||o.forEach((o=>{o({target:t,contentSize:e,get size(){return function(t,e){if(e){const{inlineSize:t,blockSize:n}=e[0];return{width:t,height:n}}return t instanceof SVGElement&&"getBBox"in t?t.getBBox():{width:t.offsetWidth,height:t.offsetHeight}}(t,n)}})}))}function a(t){t.forEach(s)}function l(t,e){r||"undefined"!==typeof ResizeObserver&&(r=new ResizeObserver(a));const n=function(t,e){var n;return"string"===typeof t?e?(null!==(n=e[t])&&void 0!==n||(e[t]=document.querySelectorAll(t)),t=e[t]):t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t||[])}(t);return n.forEach((t=>{let n=i.get(t);n||(n=new Set,i.set(t,n)),n.add(e),null===r||void 0===r||r.observe(t)})),()=>{n.forEach((t=>{const n=i.get(t);null===n||void 0===n||n.delete(e),(null===n||void 0===n?void 0:n.size)||null===r||void 0===r||r.unobserve(t)}))}}const u=new Set;let c;function h(t){return u.add(t),c||(c=()=>{const t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};u.forEach((t=>t(e)))},window.addEventListener("resize",c)),()=>{u.delete(t),!u.size&&c&&(c=void 0)}}const d=t=>"function"===typeof t;const p=(t,e,n)=>e-t===0?1:(n-t)/(e-t);const f={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function m(t,e,n,o){const i=n[e],{length:r,position:s}=f[e],a=i.current,l=n.time;i.current=t["scroll"+s],i.scrollLength=t["scroll"+r]-t["client"+r],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=p(0,i.scrollLength,i.current);const u=o-l;var c,h;i.velocity=u>50?0:(c=i.current-a,(h=u)?c*(1e3/h):0)}const v=t=>t,g=(t,e,n)=>-n*t+n*e+t;function y(t,e){const n=t[t.length-1];for(let o=1;o<=e;o++){const i=p(0,e,o);t.push(g(n,1,i))}}function x(t){const e=[0];return y(e,t-1),e}const w=t=>"number"===typeof t;function b(t,e){return(t=>Array.isArray(t)&&!w(t[0]))(t)?t[((t,e,n)=>{const o=e-t;return((n-t)%o+o)%o+t})(0,t.length,e)]:t}function E(t,e=x(t.length),n=v){const o=t.length,i=o-e.length;return i>0&&y(e,i),i=>{let r=0;for(;r<o-2&&!(i<e[r+1]);r++);let s=(a=0,l=1,u=p(e[r],e[r+1],i),Math.min(Math.max(u,a),l));var a,l,u;return s=b(n,r)(s),g(t[r],t[r+1],s)}}const P={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},A=t=>"string"===typeof t,T={start:0,center:.5,end:1};function V(t,e,n=0){let o=0;if(void 0!==T[t]&&(t=T[t]),A(t)){const e=parseFloat(t);t.endsWith("px")?o=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?o=e/100*document.documentElement.clientWidth:t.endsWith("vh")?o=e/100*document.documentElement.clientHeight:t=e}return w(t)&&(o=e*t),n+o}const S=[0,0];function C(t,e,n,o){let i=Array.isArray(t)?t:S,r=0,s=0;return w(t)?i=[t,t]:A(t)&&(i=(t=t.trim()).includes(" ")?t.split(" "):[t,T[t]?t:"0"]),r=V(i[0],n,o),s=V(i[1],e),r-s}const M={x:0,y:0};function L(t,e,n){let{offset:o=P.All}=n;const{target:i=t,axis:r="y"}=n,s="y"===r?"height":"width",a=i!==t?function(t,e){let n={x:0,y:0},o=t;for(;o&&o!==e;)if(o instanceof HTMLElement)n.x+=o.offsetLeft,n.y+=o.offsetTop,o=o.offsetParent;else if(o instanceof SVGGraphicsElement&&"getBBox"in o){const{top:t,left:e}=o.getBBox();for(n.x+=e,n.y+=t;o&&"svg"!==o.tagName;)o=o.parentNode}return n}(i,t):M,l=i===t?{width:t.scrollWidth,height:t.scrollHeight}:{width:i.clientWidth,height:i.clientHeight}
1,u={width:t.clientWidth,height:t.clientHeight};e[r].offset.length=0;let c=!e[r].interpolate;const h=o.length;for(let d=0;d<h;d++){const t=C(o[d],u[s],l[s],a[r]);c||t===e[r].interpolatorOffsets[d]||(c=!0),e[r].offset[d]=t}c&&(e[r].interpolate=E(x(h),e[r].offset),e[r].interpolatorOffsets=[...e[r].offset]),e[r].progress=e[r].interpolate(e[r].current)}function k(t,e,n,o={}){const i=o.axis||"y";return{measure:()=>function(t,e=t,n){if(n.x.targetOffset=0,n.y.targetOffset=0,e!==t){let o=e;for(;o&&o!=t;)n.x.targetOffset+=o.offsetLeft,n.y.targetOffset+=o.offsetTop,o=o.offsetParent}n.x.targetLength=e===t?e.scrollWidth:e.clientWidth,n.y.targetLength=e===t?e.scrollHeight:e.clientHeight,n.x.containerLength=t.clientWidth,n.y.containerLength=t.clientHeight}(t,o.target,n),update:e=>{!function(t,e,n){m(t,"x",e,n),m(t,"y",e,n),e.time=n}(t,n,e),(o.offset||o.target)&&L(t,n,o)},notify:d(e)?()=>e(n):R(e,n[i])}}function R(t,e){return t.pause(),t.forEachNative(((t,{easing:e})=>{var n,o;if(t.updateDuration)e||(t.easing=v),t.updateDuration(1);else{const i={duration:1e3};e||(i.easing="linear"),null===(o=null===(n=t.effect)||void 0===n?void 0:n.updateTiming)||void 0===o||o.call(n,i)}})),()=>{t.currentTime=e.progress}}const D=new WeakMap,B=new WeakMap,j=new WeakMap,F=t=>t===document.documentElement?window:t;function O(t,e={}){var{container:n=document.documentElement}=e,i=o(e,["container"]);let r=j.get(n);r||(r=new Set,j.set(n,r));const s=k(n,t,{time:0,x:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0},y:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}},i);if(r.add(s),!D.has(n)){const t=()=>{const t=performance.now();for(const e of r)e.measure();for(const e of r)e.update(t);for(const e of r)e.notify()};D.set(n,t);const e=F(n);window.addEventListener("resize",t,{passive:!0}),n!==document.documentElement&&B.set(n,(u=t,d(a=n)?h(a):l(a,u))),e.addEventListener("scroll",t,{passive:!0})}var a,u;const c=D.get(n),p=requestAnimationFrame(c);return()=>{var e;"function"!==typeof t&&t.stop(),cancelAnimationFrame(p);const o=j.get(n);if(!o)return;if(o.delete(s),o.size)return;const i=D.get(n);D.delete(n),i&&(F(n).removeEventListener("scroll",i),null===(e=B.get(n))||void 0===e||e(),window.removeEventListener("resize",i))}}var I=n(33234),U=n(96681),$=n(67294),N=n(58868);const W=()=>({scrollX:(0,I.B)(0),scrollY:(0,I.B)(0),scrollXProgress:(0,I.B)(0),scrollYProgress:(0,I.B)(0)});function z({container:t,target:e,layoutEffect:n=!0,...o}={}){const i=(0,U.h)(W);return(n?N.L:$.useEffect)((()=>O((({x:t,y:e})=>{i.scrollX.set(t.current),i.scrollXProgress.set(t.progress),i.scrollY.set(e.current),i.scrollYProgress.set(e.progress)}),{...o,container:(null===t||void 0===t?void 0:t.current)||void 0,target:(null===e||void 0===e?void 0:e.current)||void 0})),[]),i}},40406:function(t,e,n){n.d(e,{i:function(){return o}});const o=t=>!!(null===t||void 0===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.