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