import{r as m,R as we}from"./vendor.38e754a4.js";/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Ae=function(t,e){return Ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Ae(t,e)};function _r(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ae(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var g=function(){return g=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},g.apply(this,arguments)};function U(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}function Ri(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function R(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,a=[],i;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)a.push(o.value)}catch(s){i={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return a}function K(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t}var Q=function(t){return{isEnabled:function(e){return t.some(function(r){return!!e[r]})}}},Rt={measureLayout:Q(["layout","layoutId","drag"]),animation:Q(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Q(["exit"]),drag:Q(["drag","dragControls"]),focus:Q(["whileFocus"]),hover:Q(["whileHover","onHoverStart","onHoverEnd"]),tap:Q(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Q(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Q(["whileInView","onViewportEnter","onViewportLeave"])};function Me(t){for(var e in t)t[e]!==null&&(e==="projectionNodeConstructor"?Rt.projectionNodeConstructor=t[e]:Rt[e].Component=t[e])}var Oi=function(){},Jt=function(){},Re=m.exports.createContext({strict:!1}),Ur=Object.keys(Rt),Li=Ur.length;function Di(t,e,r){var n=[];if(m.exports.useContext(Re),!e)return null;for(var o=0;o<Li;o++){var a=Ur[o],i=Rt[a],s=i.isEnabled,u=i.Component;s(t)&&u&&n.push(m.exports.createElement(u,g({key:a},t,{visualElement:e})))}return n}var gt=m.exports.createContext({transformPagePoint:function(t){return t},isStatic:!1}),Qt=m.exports.createContext({});function Nr(){return m.exports.useContext(Qt).visualElement}var yt=m.exports.createContext(null),Ot=typeof window!="undefined",te=Ot?m.exports.useLayoutEffect:m.exports.useEffect;function Ii(t,e,r,n){var o=m.exports.useContext(Re),a=Nr(),i=m.exports.useContext(yt),s=m.exports.useRef(void 0);n||(n=o.renderer),!s.current&&n&&(s.current=n(t,{visualState:e,parent:a,props:r,presenceId:i==null?void 0:i.id,blockInitialAnimation:(i==null?void 0:i.initial)===!1}));var u=s.current;return te(function(){u==null||u.syncRender()}),m.exports.useEffect(function(){var l;(l=u==null?void 0:u.animationState)===null||l===void 0||l.animateChanges()}),te(function(){return function(){return u==null?void 0:u.notifyUnmount()}},[]),u}function xt(t){return typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Fi(t,e,r){return m.exports.useCallback(function(n){var o;n&&((o=t.mount)===null||o===void 0||o.call(t,n)),e&&(n?e.mount(n):e.unmount()),r&&(typeof r=="function"?r(n):xt(r)&&(r.current=n))},[e])}function Hr(t){return Array.isArray(t)}function X(t){return typeof t=="string"||Hr(t)}function ji(t){var e={};return t.forEachValue(function(r,n){return e[n]=r.get()}),e}function Bi(t){var e={};return t.forEachValue(function(r,n){return e[n]=r.getVelocity()}),e}function zr(t,e,r,n,o){var a;return n===void 0&&(n={}),o===void 0&&(o={}),typeof e=="function"&&(e=e(r!=null?r:t.custom,n,o)),typeof e=="string"&&(e=(a=t.variants)===null||a===void 0?void 0:a[e]),typeof e=="function"&&(e=e(r!=null?r:t.custom,n,o)),e}function ee(t,e,r){var n=t.getProps();return zr(n,e,r!=null?r:n.custom,ji(t),Bi(t))}function re(t){var e;return typeof((e=t.animate)===null||e===void 0?void 0:e.start)=="function"||X(t.initial)||X(t.animate)||X(t.whileHover)||X(t.whileDrag)||X(t.whileTap)||X(t.whileFocus)||X(t.exit)}function Gr(t){return Boolean(re(t)||t.variants)}function _i(t,e){if(re(t)){var r=t.initial,n=t.animate;return{initial:r===!1||X(r)?r:void 0,animate:X(n)?n:void 0}}return t.inherit!==!1?e:{}}function Ui(t){var e=_i(t,m.exports.useContext(Qt)),r=e.initial,n=e.animate;return m.exports.useMemo(function(){return{initial:r,animate:n}},[kr(r),kr(n)])}function kr(t){return Array.isArray(t)?t.join(" "):t}function j(t){var e=m.exports.useRef(null);return e.current===null&&(e.current=t()),e.current}const Kr=1/60*1e3,Ni=typeof performance!="undefined"?()=>performance.now():()=>Date.now(),Yr=typeof window!="undefined"?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(Ni()),Kr);function Hi(t){let e=[],r=[],n=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(u,l=!1,c=!1)=>{const v=c&&o,d=v?e:r;return l&&i.add(u),d.indexOf(u)===-1&&(d.push(u),v&&o&&(n=e.length)),u},cancel:u=>{const l=r.indexOf(u);l!==-1&&r.splice(l,1),i.delete(u)},process:u=>{if(o){a=!0;return}if(o=!0,[e,r]=[r,e],r.length=0,n=e.length,n)for(let l=0;l<n;l++){const c=e[l];c(u),i.has(c)&&(s.schedule(c),t())}o=!1,a&&(a=!1,s.process(u))}};return s}const zi=40;let Oe=!0,Lt=!1,Le=!1;const bt={delta:0,timestamp:0},Dt=["read","update","preRender","render","postRender"],ne=Dt.reduce((t,e)=>(t[e]=Hi(()=>Lt=!0),t),{}),$=Dt.reduce((t,e)=>{const r=ne[e];return t[e]=(n,o=!1,a=!1)=>(Lt||ki(),r.schedule(n,o,a)),t},{}),St=Dt.reduce((t,e)=>(t[e]=ne[e].cancel,t),{}),De=Dt.reduce((t,e)=>(t[e]=()=>ne[e].process(bt),t),{}),Gi=t=>ne[t].process(bt),Wr=t=>{Lt=!1,bt.delta=Oe?Kr:Math.max(Math.min(t-bt.timestamp,zi),1),bt.timestamp=t,Le=!0,Dt.forEach(Gi),Le=!1,Lt&&(Oe=!1,Yr(Wr))},ki=()=>{Lt=!0,Oe=!0,Le||Yr(Wr)},oe=()=>bt;/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function Xr(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}const ie=(t,e,r)=>Math.min(Math.max(r,t),e),Ie=.001,Ki=.01,$r=10,Yi=.05,Wi=1;function Xi({duration:t=800,bounce:e=.25,velocity:r=0,mass:n=1}){let o,a;Oi(t<=$r*1e3);let i=1-e;i=ie(Yi,Wi,i),t=ie(Ki,$r,t/1e3),i<1?(o=l=>{const c=l*i,v=c*t,d=c-r,f=Fe(l,i),p=Math.exp(-v);return Ie-d/f*p},a=l=>{const v=l*i*t,d=v*r+r,f=Math.pow(i,2)*Math.pow(l,2)*t,p=Math.exp(-v),h=Fe(Math.pow(l,2),i);return(-o(l)+Ie>0?-1:1)*((d-f)*p)/h}):(o=l=>{const c=Math.exp(-l*t),v=(l-r)*t+1;return-Ie+c*v},a=l=>{const c=Math.exp(-l*t),v=(r-l)*(t*t);return c*v});const s=5/t,u=Zi(o,a,s);if(t=t*1e3,isNaN(u))return{stiffness:100,damping:10,duration:t};{const l=Math.pow(u,2)*n;return{stiffness:l,damping:i*2*Math.sqrt(n*l),duration:t}}}const $i=12;function Zi(t,e,r){let n=r;for(let o=1;o<$i;o++)n=n-t(n)/e(n);return n}function Fe(t,e){return t*Math.sqrt(1-e*e)}const qi=["duration","bounce"],Ji=["stiffness","damping","mass"];function Zr(t,e){return e.some(r=>t[r]!==void 0)}function Qi(t){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!Zr(t,Ji)&&Zr(t,qi)){const r=Xi(t);e=Object.assign(Object.assign(Object.assign({},e),r),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}function je(t){var{from:e=0,to:r=1,restSpeed:n=2,restDelta:o}=t,a=Xr(t,["from","to","restSpeed","restDelta"]);const i={done:!1,value:e};let{stiffness:s,damping:u,mass:l,velocity:c,duration:v,isResolvedFromDuration:d}=Qi(a),f=qr,p=qr;function h(){const x=c?-(c/1e3):0,y=r-e,b=u/(2*Math.sqrt(s*l)),S=Math.sqrt(s/l)/1e3;if(o!=null||(o=Math.abs(r-e)<=1?.01:.4),b<1){const P=Fe(S,b);f=V=>{const A=Math.exp(-b*S*V);return r-A*((x+b*S*y)/P*Math.sin(P*V)+y*Math.cos(P*V))},p=V=>{const A=Math.exp(-b*S*V);return b*S*A*(Math.sin(P*V)*(x+b*S*y)/P+y*Math.cos(P*V))-A*(Math.cos(P*V)*(x+b*S*y)-P*y*Math.sin(P*V))}}else if(b===1)f=P=>r-Math.exp(-S*P)*(y+(x+S*y)*P);else{const P=S*Math.sqrt(b*b-1);f=V=>{const A=Math.exp(-b*S*V),O=Math.min(P*V,300);return r-A*((x+b*S*y)*Math.sinh(O)+P*y*Math.cosh(O))/P}}}return h(),{next:x=>{const y=f(x);if(d)i.done=x>=v;else{const b=p(x)*1e3,S=Math.abs(b)<=n,P=Math.abs(r-y)<=o;i.done=S&&P}return i.value=i.done?r:y,i},flipTarget:()=>{c=-c,[e,r]=[r,e],h()}}}je.needsInterpolation=(t,e)=>typeof t=="string"||typeof e=="string";const qr=t=>0,It=(t,e,r)=>{const n=e-t;return n===0?1:(r-t)/n},I=(t,e,r)=>-r*t+r*e+t,Jr=(t,e)=>r=>Math.max(Math.min(r,e),t),Ft=t=>t%1?Number(t.toFixed(5)):t,jt=/(-)?([\d]*\.?[\d])+/g,Be=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,ta=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Bt(t){return typeof t=="string"}const lt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},_t=Object.assign(Object.assign({},lt),{transform:Jr(0,1)}),ae=Object.assign(Object.assign({},lt),{default:1}),Ut=t=>({test:e=>Bt(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),nt=Ut("deg"),ot=Ut("%"),C=Ut("px"),ea=Ut("vh"),ra=Ut("vw"),Qr=Object.assign(Object.assign({},ot),{parse:t=>ot.parse(t)/100,transform:t=>ot.transform(t*100)}),_e=(t,e)=>r=>Boolean(Bt(r)&&ta.test(r)&&r.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(r,e)),tn=(t,e,r)=>n=>{if(!Bt(n))return n;const[o,a,i,s]=n.match(jt);return{[t]:parseFloat(o),[e]:parseFloat(a),[r]:parseFloat(i),alpha:s!==void 0?parseFloat(s):1}},ct={test:_e("hsl","hue"),parse:tn("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+ot.transform(Ft(e))+", "+ot.transform(Ft(r))+", "+Ft(_t.transform(n))+")"},na=Jr(0,255),Ue=Object.assign(Object.assign({},lt),{transform:t=>Math.round(na(t))}),it={test:_e("rgb","red"),parse:tn("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+Ue.transform(t)+", "+Ue.transform(e)+", "+Ue.transform(r)+", "+Ft(_t.transform(n))+")"};function oa(t){let e="",r="",n="",o="";return t.length>5?(e=t.substr(1,2),r=t.substr(3,2),n=t.substr(5,2),o=t.substr(7,2)):(e=t.substr(1,1),r=t.substr(2,1),n=t.substr(3,1),o=t.substr(4,1),e+=e,r+=r,n+=n,o+=o),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const Ne={test:_e("#"),parse:oa,transform:it.transform},H={test:t=>it.test(t)||Ne.test(t)||ct.test(t),parse:t=>it.test(t)?it.parse(t):ct.test(t)?ct.parse(t):Ne.parse(t),transform:t=>Bt(t)?t:t.hasOwnProperty("red")?it.transform(t):ct.transform(t)},en="${c}",rn="${n}";function ia(t){var e,r,n,o;return isNaN(t)&&Bt(t)&&((r=(e=t.match(jt))===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0)+((o=(n=t.match(Be))===null||n===void 0?void 0:n.length)!==null&&o!==void 0?o:0)>0}function nn(t){typeof t=="number"&&(t=`${t}`);const e=[];let r=0;const n=t.match(Be);n&&(r=n.length,t=t.replace(Be,en),e.push(...n.map(H.parse)));const o=t.match(jt);return o&&(t=t.replace(jt,rn),e.push(...o.map(lt.parse))),{values:e,numColors:r,tokenised:t}}function on(t){return nn(t).values}function an(t){const{values:e,numColors:r,tokenised:n}=nn(t),o=e.length;return a=>{let i=n;for(let s=0;s<o;s++)i=i.replace(s<r?en:rn,s<r?H.transform(a[s]):Ft(a[s]));return i}}const aa=t=>typeof t=="number"?0:t;function sa(t){const e=on(t);return an(t)(e.map(aa))}const tt={test:ia,parse:on,createTransformer:an,getAnimatableNone:sa},ua=new Set(["brightness","contrast","saturate","opacity"]);function la(t){let[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[n]=r.match(jt)||[];if(!n)return t;const o=r.replace(n,"");let a=ua.has(e)?1:0;return n!==r&&(a*=100),e+"("+a+o+")"}const ca=/([a-z-]*)\(.*?\)/g,He=Object.assign(Object.assign({},tt),{getAnimatableNone:t=>{const e=t.match(ca);return e?e.map(la).join(" "):t}});function ze(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function sn({hue:t,saturation:e,lightness:r,alpha:n}){t/=360,e/=100,r/=100;let o=0,a=0,i=0;if(!e)o=a=i=r;else{const s=r<.5?r*(1+e):r+e-r*e,u=2*r-s;o=ze(u,s,t+1/3),a=ze(u,s,t),i=ze(u,s,t-1/3)}return{red:Math.round(o*255),green:Math.round(a*255),blue:Math.round(i*255),alpha:n}}const fa=(t,e,r)=>{const n=t*t,o=e*e;return Math.sqrt(Math.max(0,r*(o-n)+n))},da=[Ne,it,ct],un=t=>da.find(e=>e.test(t)),ln=(t,e)=>{let r=un(t),n=un(e),o=r.parse(t),a=n.parse(e);r===ct&&(o=sn(o),r=it),n===ct&&(a=sn(a),n=it);const i=Object.assign({},o);return s=>{for(const u in i)u!=="alpha"&&(i[u]=fa(o[u],a[u],s));return i.alpha=I(o.alpha,a.alpha,s),r.transform(i)}},Ge=t=>typeof t=="number",va=(t,e)=>r=>e(t(r)),se=(...t)=>t.reduce(va);function cn(t,e){return Ge(t)?r=>I(t,e,r):H.test(t)?ln(t,e):vn(t,e)}const fn=(t,e)=>{const r=[...t],n=r.length,o=t.map((a,i)=>cn(a,e[i]));return a=>{for(let i=0;i<n;i++)r[i]=o[i](a);return r}},pa=(t,e)=>{const r=Object.assign(Object.assign({},t),e),n={};for(const o in r)t[o]!==void 0&&e[o]!==void 0&&(n[o]=cn(t[o],e[o]));return o=>{for(const a in n)r[a]=n[a](o);return r}};function dn(t){const e=tt.parse(t),r=e.length;let n=0,o=0,a=0;for(let i=0;i<r;i++)n||typeof e[i]=="number"?n++:e[i].hue!==void 0?a++:o++;return{parsed:e,numNumbers:n,numRGB:o,numHSL:a}}const vn=(t,e)=>{const r=tt.createTransformer(e),n=dn(t),o=dn(e);return n.numHSL===o.numHSL&&n.numRGB===o.numRGB&&n.numNumbers>=o.numNumbers?se(fn(n.parsed,o.parsed),r):i=>`${i>0?e:t}`},ha=(t,e)=>r=>I(t,e,r);function ma(t){if(typeof t=="number")return ha;if(typeof t=="string")return H.test(t)?ln:vn;if(Array.isArray(t))return fn;if(typeof t=="object")return pa}function ga(t,e,r){const n=[],o=r||ma(t[0]),a=t.length-1;for(let i=0;i<a;i++){let s=o(t[i],t[i+1]);if(e){const u=Array.isArray(e)?e[i]:e;s=se(u,s)}n.push(s)}return n}function ya([t,e],[r]){return n=>r(It(t,e,n))}function xa(t,e){const r=t.length,n=r-1;return o=>{let a=0,i=!1;if(o<=t[0]?i=!0:o>=t[n]&&(a=n-1,i=!0),!i){let u=1;for(;u<r&&!(t[u]>o||u===n);u++);a=u-1}const s=It(t[a],t[a+1],o);return e[a](s)}}function ke(t,e,{clamp:r=!0,ease:n,mixer:o}={}){const a=t.length;Jt(a===e.length),Jt(!n||!Array.isArray(n)||n.length===a-1),t[0]>t[a-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());const i=ga(e,n,o),s=a===2?ya(t,i):xa(t,i);return r?u=>s(ie(t[0],t[a-1],u)):s}const ue=t=>e=>1-t(1-e),Ke=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ba=t=>e=>Math.pow(e,t),pn=t=>e=>e*e*((t+1)*e-t),Sa=t=>{const e=pn(t);return r=>(r*=2)<1?.5*e(r):.5*(2-Math.pow(2,-10*(r-1)))},hn=1.525,Pa=4/11,Ta=8/11,Va=9/10,Ye=t=>t,We=ba(2),Ca=ue(We),mn=Ke(We),gn=t=>1-Math.sin(Math.acos(t)),Xe=ue(gn),Ea=Ke(Xe),$e=pn(hn),wa=ue($e),Aa=Ke($e),Ma=Sa(hn),Ra=4356/361,Oa=35442/1805,La=16061/1805,le=t=>{if(t===1||t===0)return t;const e=t*t;return t<Pa?7.5625*e:t<Ta?9.075*e-9.9*t+3.4:t<Va?Ra*e-Oa*t+La:10.8*t*t-20.52*t+10.72},Da=ue(le),Ia=t=>t<.5?.5*(1-le(1-t*2)):.5*le(t*2-1)+.5;function Fa(t,e){return t.map(()=>e||mn).splice(0,t.length-1)}function ja(t){const e=t.length;return t.map((r,n)=>n!==0?n/(e-1):0)}function Ba(t,e){return t.map(r=>r*e)}function ce({from:t=0,to:e=1,ease:r,offset:n,duration:o=300}){const a={done:!1,value:t},i=Array.isArray(e)?e:[t,e],s=Ba(n&&n.length===i.length?n:ja(i),o);function u(){return ke(s,i,{ease:Array.isArray(r)?r:Fa(i,r)})}let l=u();return{next:c=>(a.value=l(c),a.done=c>=o,a),flipTarget:()=>{i.reverse(),l=u()}}}function _a({velocity:t=0,from:e=0,power:r=.8,timeConstant:n=350,restDelta:o=.5,modifyTarget:a}){const i={done:!1,value:e};let s=r*t;const u=e+s,l=a===void 0?u:a(u);return l!==u&&(s=l-e),{next:c=>{const v=-s*Math.exp(-c/n);return i.done=!(v>o||v<-o),i.value=i.done?l:l+v,i},flipTarget:()=>{}}}const yn={keyframes:ce,spring:je,decay:_a};function Ua(t){if(Array.isArray(t.to))return ce;if(yn[t.type])return yn[t.type];const e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?ce:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?je:ce}function xn(t,e,r=0){return t-e-r}function Na(t,e,r=0,n=!0){return n?xn(e+-t,e,r):e-(t-e)+r}function Ha(t,e,r,n){return n?t>=e+r:t<=-r}const za=t=>{const e=({delta:r})=>t(r);return{start:()=>$.update(e,!0),stop:()=>St.update(e)}};function Ze(t){var e,r,{from:n,autoplay:o=!0,driver:a=za,elapsed:i=0,repeat:s=0,repeatType:u="loop",repeatDelay:l=0,onPlay:c,onStop:v,onComplete:d,onRepeat:f,onUpdate:p}=t,h=Xr(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:x}=h,y,b=0,S=h.duration,P,V=!1,A=!0,O;const w=Ua(h);((r=(e=w).needsInterpolation)===null||r===void 0?void 0:r.call(e,n,x))&&(O=ke([0,100],[n,x],{clamp:!1}),n=0,x=100);const M=w(Object.assign(Object.assign({},h),{from:n,to:x}));function F(){b++,u==="reverse"?(A=b%2==0,i=Na(i,S,l,A)):(i=xn(i,S,l),u==="mirror"&&M.flipTarget()),V=!1,f&&f()}function _(){y.stop(),d&&d()}function z(Z){if(A||(Z=-Z),i+=Z,!V){const rt=M.next(Math.max(0,i));P=rt.value,O&&(P=O(P)),V=A?rt.done:i<=0}p==null||p(P),V&&(b===0&&(S!=null||(S=i)),b<s?Ha(i,S,l,A)&&F():_())}function N(){c==null||c(),y=a(z),y.start()}return o&&N(),{stop:()=>{v==null||v(),y.stop()}}}function bn(t,e){return e?t*(1e3/e):0}function Ga({from:t=0,velocity:e=0,min:r,max:n,power:o=.8,timeConstant:a=750,bounceStiffness:i=500,bounceDamping:s=10,restDelta:u=1,modifyTarget:l,driver:c,onUpdate:v,onComplete:d,onStop:f}){let p;function h(S){return r!==void 0&&S<r||n!==void 0&&S>n}function x(S){return r===void 0?n:n===void 0||Math.abs(r-S)<Math.abs(n-S)?r:n}function y(S){p==null||p.stop(),p=Ze(Object.assign(Object.assign({},S),{driver:c,onUpdate:P=>{var V;v==null||v(P),(V=S.onUpdate)===null||V===void 0||V.call(S,P)},onComplete:d,onStop:f}))}function b(S){y(Object.assign({type:"spring",stiffness:i,damping:s,restDelta:u},S))}if(h(t))b({from:t,velocity:e,to:x(t)});else{let S=o*e+t;typeof l!="undefined"&&(S=l(S));const P=x(S),V=P===r?-1:1;let A,O;const w=M=>{A=O,O=M,e=bn(M-A,oe().delta),(V===1&&M>P||V===-1&&M<P)&&b({from:M,to:P,velocity:e})};y({type:"decay",from:t,velocity:e,timeConstant:a,power:o,restDelta:u,modifyTarget:l,onUpdate:h(S)?w:void 0})}return{stop:()=>p==null?void 0:p.stop()}}const qe=t=>t.hasOwnProperty("x")&&t.hasOwnProperty("y"),Sn=t=>qe(t)&&t.hasOwnProperty("z"),fe=(t,e)=>Math.abs(t-e);function Pn(t,e){if(Ge(t)&&Ge(e))return fe(t,e);if(qe(t)&&qe(e)){const r=fe(t.x,e.x),n=fe(t.y,e.y),o=Sn(t)&&Sn(e)?fe(t.z,e.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(o,2))}}const ka=(t,e,r)=>{const n=e-t;return((r-t)%n+n)%n+t},Tn=(t,e)=>1-3*e+3*t,Vn=(t,e)=>3*e-6*t,Cn=t=>3*t,de=(t,e,r)=>((Tn(e,r)*t+Vn(e,r))*t+Cn(e))*t,En=(t,e,r)=>3*Tn(e,r)*t*t+2*Vn(e,r)*t+Cn(e),Ka=1e-7,Ya=10;function Wa(t,e,r,n,o){let a,i,s=0;do i=e+(r-e)/2,a=de(i,n,o)-t,a>0?r=i:e=i;while(Math.abs(a)>Ka&&++s<Ya);return i}const Xa=8,$a=.001;function Za(t,e,r,n){for(let o=0;o<Xa;++o){const a=En(e,r,n);if(a===0)return e;e-=(de(e,r,n)-t)/a}return e}const ve=11,pe=1/(ve-1);function qa(t,e,r,n){if(t===e&&r===n)return Ye;const o=new Float32Array(ve);for(let i=0;i<ve;++i)o[i]=de(i*pe,t,r);function a(i){let s=0,u=1;const l=ve-1;for(;u!==l&&o[u]<=i;++u)s+=pe;--u;const c=(i-o[u])/(o[u+1]-o[u]),v=s+c*pe,d=En(v,t,r);return d>=$a?Za(i,v,t,r):d===0?v:Wa(i,s,s+pe,t,r)}return i=>i===0||i===1?i:de(a(i),e,n)}function Je(t,e){t.indexOf(e)===-1&&t.push(e)}function Qe(t,e){var r=t.indexOf(e);r>-1&&t.splice(r,1)}function Ja(t,e,r){var n=R(t),o=n.slice(0),a=e<0?o.length+e:e;if(a>=0&&a<o.length){var i=r<0?o.length+r:r,s=R(o.splice(e,1),1),u=s[0];o.splice(i,0,u)}return o}var Nt=function(){function t(){this.subscriptions=[]}return t.prototype.add=function(e){var r=this;return Je(this.subscriptions,e),function(){return Qe(r.subscriptions,e)}},t.prototype.notify=function(e,r,n){var o=this.subscriptions.length;if(!!o)if(o===1)this.subscriptions[0](e,r,n);else for(var a=0;a<o;a++){var i=this.subscriptions[a];i&&i(e,r,n)}},t.prototype.getSize=function(){return this.subscriptions.length},t.prototype.clear=function(){this.subscriptions.length=0},t}(),Qa=function(t){return!isNaN(parseFloat(t))},ts=function(){function t(e){var r=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Nt,this.velocityUpdateSubscribers=new Nt,this.renderSubscribers=new Nt,this.canTrackVelocity=!1,this.updateAndNotify=function(n,o){o===void 0&&(o=!0),r.prev=r.current,r.current=n;var a=oe(),i=a.delta,s=a.timestamp;r.lastUpdated!==s&&(r.timeDelta=i,r.lastUpdated=s,$.postRender(r.scheduleVelocityCheck)),r.prev!==r.current&&r.updateSubscribers.notify(r.current),r.velocityUpdateSubscribers.getSize()&&r.velocityUpdateSubscribers.notify(r.getVelocity()),o&&r.renderSubscribers.notify(r.current)},this.scheduleVelocityCheck=function(){return $.postRender(r.velocityCheck)},this.velocityCheck=function(n){var o=n.timestamp;o!==r.lastUpdated&&(r.prev=r.current,r.velocityUpdateSubscribers.notify(r.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=Qa(this.current)}return t.prototype.onChange=function(e){return this.updateSubscribers.add(e)},t.prototype.clearListeners=function(){this.updateSubscribers.clear()},t.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},t.prototype.attach=function(e){this.passiveEffect=e},t.prototype.set=function(e,r){r===void 0&&(r=!0),!r||!this.passiveEffect?this.updateAndNotify(e,r):this.passiveEffect(e,this.updateAndNotify)},t.prototype.get=function(){return this.current},t.prototype.getPrevious=function(){return this.prev},t.prototype.getVelocity=function(){return this.canTrackVelocity?bn(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},t.prototype.start=function(e){var r=this;return this.stop(),new Promise(function(n){r.hasAnimated=!0,r.stopAnimation=e(n)}).then(function(){return r.clearAnimation()})},t.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},t.prototype.isAnimating=function(){return!!this.stopAnimation},t.prototype.clearAnimation=function(){this.stopAnimation=null},t.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},t}();function Y(t){return new ts(t)}var W=function(t){return t!==null&&typeof t=="object"&&t.getVelocity},he=function(t){return t*1e3},es={linear:Ye,easeIn:We,easeInOut:mn,easeOut:Ca,circIn:gn,circInOut:Ea,circOut:Xe,backIn:$e,backInOut:Aa,backOut:wa,anticipate:Ma,bounceIn:Da,bounceInOut:Ia,bounceOut:le},wn=function(t){if(Array.isArray(t)){Jt(t.length===4);var e=R(t,4),r=e[0],n=e[1],o=e[2],a=e[3];return qa(r,n,o,a)}else if(typeof t=="string")return es[t];return t},rs=function(t){return Array.isArray(t)&&typeof t[0]!="number"},An=function(t,e){return t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&tt.test(e)&&!e.startsWith("url("))},Ht=function(t){return Array.isArray(t)},ft=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},me=function(t){return{type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},tr=function(){return{type:"keyframes",ease:"linear",duration:.3}},ns=function(t){return{type:"keyframes",duration:.8,values:t}},Mn={x:ft,y:ft,z:ft,rotate:ft,rotateX:ft,rotateY:ft,rotateZ:ft,scaleX:me,scaleY:me,scale:me,opacity:tr,backgroundColor:tr,color:tr,default:me},os=function(t,e){var r;return Ht(e)?r=ns:r=Mn[t]||Mn.default,g({to:e},r(e))},Rn=g(g({},lt),{transform:Math.round}),On={borderWidth:C,borderTopWidth:C,borderRightWidth:C,borderBottomWidth:C,borderLeftWidth:C,borderRadius:C,radius:C,borderTopLeftRadius:C,borderTopRightRadius:C,borderBottomRightRadius:C,borderBottomLeftRadius:C,width:C,maxWidth:C,height:C,maxHeight:C,size:C,top:C,right:C,bottom:C,left:C,padding:C,paddingTop:C,paddingRight:C,paddingBottom:C,paddingLeft:C,margin:C,marginTop:C,marginRight:C,marginBottom:C,marginLeft:C,rotate:nt,rotateX:nt,rotateY:nt,rotateZ:nt,scale:ae,scaleX:ae,scaleY:ae,scaleZ:ae,skew:nt,skewX:nt,skewY:nt,distance:C,translateX:C,translateY:C,translateZ:C,x:C,y:C,z:C,perspective:C,transformPerspective:C,opacity:_t,originX:Qr,originY:Qr,originZ:C,zIndex:Rn,fillOpacity:_t,strokeOpacity:_t,numOctaves:Rn},is=g(g({},On),{color:H,backgroundColor:H,outlineColor:H,fill:H,stroke:H,borderColor:H,borderTopColor:H,borderRightColor:H,borderBottomColor:H,borderLeftColor:H,filter:He,WebkitFilter:He}),er=function(t){return is[t]};function rr(t,e){var r,n=er(t);return n!==He&&(n=tt),(r=n.getAnimatableNone)===null||r===void 0?void 0:r.call(n,e)}function as(t){t.when,t.delay,t.delayChildren,t.staggerChildren,t.staggerDirection,t.repeat,t.repeatType,t.repeatDelay,t.from;var e=U(t,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(e).length}function ss(t){var e=t.ease,r=t.times,n=t.yoyo,o=t.flip,a=t.loop,i=U(t,["ease","times","yoyo","flip","loop"]),s=g({},i);return r&&(s.offset=r),i.duration&&(s.duration=he(i.duration)),i.repeatDelay&&(s.repeatDelay=he(i.repeatDelay)),e&&(s.ease=rs(e)?e.map(wn):wn(e)),i.type==="tween"&&(s.type="keyframes"),(n||a||o)&&(n?s.repeatType="reverse":a?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=a||n||o||i.repeat),i.type!=="spring"&&(s.type="keyframes"),s}function us(t,e){var r,n,o=nr(t,e)||{};return(n=(r=o.delay)!==null&&r!==void 0?r:t.delay)!==null&&n!==void 0?n:0}function ls(t){return Array.isArray(t.to)&&t.to[0]===null&&(t.to=K([],R(t.to)),t.to[0]=t.from),t}function cs(t,e,r){var n;return Array.isArray(e.to)&&((n=t.duration)!==null&&n!==void 0||(t.duration=.8)),ls(e),as(t)||(t=g(g({},t),os(r,e.to))),g(g({},e),ss(t))}function fs(t,e,r,n,o){var a,i=nr(n,t),s=(a=i.from)!==null&&a!==void 0?a:e.get(),u=An(t,r);s==="none"&&u&&typeof r=="string"?s=rr(t,r):Ln(s)&&typeof r=="string"?s=Dn(r):!Array.isArray(r)&&Ln(r)&&typeof s=="string"&&(r=Dn(s));var l=An(t,s);function c(){var d={from:s,to:r,velocity:e.getVelocity(),onComplete:o,onUpdate:function(f){return e.set(f)}};return i.type==="inertia"||i.type==="decay"?Ga(g(g({},d),i)):Ze(g(g({},cs(i,d,t)),{onUpdate:function(f){var p;d.onUpdate(f),(p=i.onUpdate)===null||p===void 0||p.call(i,f)},onComplete:function(){var f;d.onComplete(),(f=i.onComplete)===null||f===void 0||f.call(i)}}))}function v(){var d,f;return e.set(r),o(),(d=i==null?void 0:i.onUpdate)===null||d===void 0||d.call(i,r),(f=i==null?void 0:i.onComplete)===null||f===void 0||f.call(i),{stop:function(){}}}return!l||!u||i.type===!1?v:c}function Ln(t){return t===0||typeof t=="string"&&parseFloat(t)===0&&t.indexOf(" ")===-1}function Dn(t){return typeof t=="number"?0:rr("",t)}function nr(t,e){return t[e]||t.default||t}function or(t,e,r,n){return n===void 0&&(n={}),e.start(function(o){var a,i,s=fs(t,e,r,n,o),u=us(n,t),l=function(){return i=s()};return u?a=setTimeout(l,he(u)):l(),function(){clearTimeout(a),i==null||i.stop()}})}function ds(t,e,r){r===void 0&&(r={});var n=W(t)?t:Y(t);return or("",n,e,r),{stop:function(){return n.stop()},isAnimating:function(){return n.isAnimating()}}}var In=["TopLeft","TopRight","BottomLeft","BottomRight"],vs=In.length;function ps(t,e,r,n,o,a){var i,s,u,l;o?(t.opacity=I(0,(i=r.opacity)!==null&&i!==void 0?i:1,hs(n)),t.opacityExit=I((s=e.opacity)!==null&&s!==void 0?s:1,0,ms(n))):a&&(t.opacity=I((u=e.opacity)!==null&&u!==void 0?u:1,(l=r.opacity)!==null&&l!==void 0?l:1,n));for(var c=0;c<vs;c++){var v="border"+In[c]+"Radius",d=Fn(e,v),f=Fn(r,v);if(!(d===void 0&&f===void 0)&&(d||(d=0),f||(f=0),typeof d=="number"&&typeof f=="number")){var p=Math.max(I(d,f,n),0);t[v]=p}}(e.rotate||r.rotate)&&(t.rotate=I(e.rotate||0,r.rotate||0,n))}function Fn(t,e){var r;return(r=t[e])!==null&&r!==void 0?r:t.borderRadius}var hs=jn(0,.5,Xe),ms=jn(.5,.95,Ye);function jn(t,e,r){return function(n){return n<t?0:n>e?1:r(It(t,e,n))}}function Bn(t,e){t.min=e.min,t.max=e.max}function q(t,e){Bn(t.x,e.x),Bn(t.y,e.y)}function ir(t){return t===void 0||t===1}function _n(t){var e=t.scale,r=t.scaleX,n=t.scaleY;return!ir(e)||!ir(r)||!ir(n)}function at(t){return _n(t)||Un(t.x)||Un(t.y)||t.z||t.rotate||t.rotateX||t.rotateY}function Un(t){return t&&t!=="0%"}function ge(t,e,r){var n=t-r,o=e*n;return r+o}function Nn(t,e,r,n,o){return o!==void 0&&(t=ge(t,o,n)),ge(t,r,n)+e}function ar(t,e,r,n,o){e===void 0&&(e=0),r===void 0&&(r=1),t.min=Nn(t.min,e,r,n,o),t.max=Nn(t.max,e,r,n,o)}function Hn(t,e){var r=e.x,n=e.y;ar(t.x,r.translate,r.scale,r.originPoint),ar(t.y,n.translate,n.scale,n.originPoint)}function gs(t,e,r,n){var o,a;n===void 0&&(n=!1);var i=r.length;if(!!i){e.x=e.y=1;for(var s,u,l=0;l<i;l++)s=r[l],u=s.projectionDelta,((a=(o=s.instance)===null||o===void 0?void 0:o.style)===null||a===void 0?void 0:a.display)!=="contents"&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Tt(t,{x:-s.scroll.x,y:-s.scroll.y}),u&&(e.x*=u.x.scale,e.y*=u.y.scale,Hn(t,u)),n&&at(s.latestValues)&&Tt(t,s.latestValues))}}function Pt(t,e){t.min=t.min+e,t.max=t.max+e}function zn(t,e,r){var n=R(r,3),o=n[0],a=n[1],i=n[2],s=e[i]!==void 0?e[i]:.5,u=I(t.min,t.max,s);ar(t,e[o],e[a],u,e.scale)}var ys=["x","scaleX","originX"],xs=["y","scaleY","originY"];function Tt(t,e){zn(t.x,e,ys),zn(t.y,e,xs)}function et(t){return t.max-t.min}function Gn(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=.01),Pn(t,e)<r}function kn(t,e,r,n){n===void 0&&(n=.5),t.origin=n,t.originPoint=I(e.min,e.max,t.origin),t.scale=et(r)/et(e),(Gn(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=I(r.min,r.max,t.origin)-t.originPoint,(Gn(t.translate)||isNaN(t.translate))&&(t.translate=0)}function zt(t,e,r,n){kn(t.x,e.x,r.x,n==null?void 0:n.originX),kn(t.y,e.y,r.y,n==null?void 0:n.originY)}function Kn(t,e,r){t.min=r.min+e.min,t.max=t.min+et(e)}function bs(t,e,r){Kn(t.x,e.x,r.x),Kn(t.y,e.y,r.y)}function Yn(t,e,r){t.min=e.min-r.min,t.max=t.min+et(e)}function Gt(t,e,r){Yn(t.x,e.x,r.x),Yn(t.y,e.y,r.y)}function Wn(t,e,r,n,o){return t-=e,t=ge(t,1/r,n),o!==void 0&&(t=ge(t,1/o,n)),t}function Ss(t,e,r,n,o,a,i){if(e===void 0&&(e=0),r===void 0&&(r=1),n===void 0&&(n=.5),a===void 0&&(a=t),i===void 0&&(i=t),ot.test(e)){e=parseFloat(e);var s=I(i.min,i.max,e/100);e=s-i.min}if(typeof e=="number"){var u=I(a.min,a.max,n);t===a&&(u-=e),t.min=Wn(t.min,e,r,u,o),t.max=Wn(t.max,e,r,u,o)}}function Xn(t,e,r,n,o){var a=R(r,3),i=a[0],s=a[1],u=a[2];Ss(t,e[i],e[s],e[u],e.scale,n,o)}var Ps=["x","scaleX","originX"],Ts=["y","scaleY","originY"];function $n(t,e,r,n){Xn(t.x,e,Ps,r==null?void 0:r.x,n==null?void 0:n.x),Xn(t.y,e,Ts,r==null?void 0:r.y,n==null?void 0:n.y)}var Zn=function(){return{translate:0,scale:1,origin:0,originPoint:0}},kt=function(){return{x:Zn(),y:Zn()}},qn=function(){return{min:0,max:0}},B=function(){return{x:qn(),y:qn()}};function Jn(t){return t.translate===0&&t.scale===1}function Qn(t){return Jn(t.x)&&Jn(t.y)}function to(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}var Vs=function(){function t(){this.members=[]}return t.prototype.add=function(e){Je(this.members,e),e.scheduleRender()},t.prototype.remove=function(e){if(Qe(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var r=this.members[this.members.length-1];r&&this.promote(r)}},t.prototype.relegate=function(e){var r=this.members.findIndex(function(i){return e===i});if(r===0)return!1;for(var n,o=r;o>=0;o--){var a=this.members[o];if(a.isPresent!==!1){n=a;break}}return n?(this.promote(n),!0):!1},t.prototype.promote=function(e,r){var n,o=this.lead;if(e!==o&&(this.prevLead=o,this.lead=e,e.show(),o)){o.instance&&o.scheduleRender(),e.scheduleRender(),e.resumeFrom=o,r&&(e.resumeFrom.preserveOpacity=!0),o.snapshot&&(e.snapshot=o.snapshot,e.snapshot.latestValues=o.animationValues||o.latestValues,e.snapshot.isShared=!0),((n=e.root)===null||n===void 0?void 0:n.isUpdating)&&(e.isLayoutDirty=!0);var a=e.options.crossfade;a===!1&&o.hide()}},t.prototype.exitAnimationComplete=function(){this.members.forEach(function(e){var r,n,o,a,i;(n=(r=e.options).onExitComplete)===null||n===void 0||n.call(r),(i=(o=e.resumingFrom)===null||o===void 0?void 0:(a=o.options).onExitComplete)===null||i===void 0||i.call(a)})},t.prototype.scheduleRender=function(){this.members.forEach(function(e){e.instance&&e.scheduleRender(!1)})},t.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},t}(),ye={};function Cs(t){Object.assign(ye,t)}var Es="translate3d(0px, 0px, 0) scale(1, 1)";function eo(t,e,r){var n=t.x.translate/e.x,o=t.y.translate/e.y,a="translate3d("+n+"px, "+o+"px, 0) ";if(r){var i=r.rotate,s=r.rotateX,u=r.rotateY;i&&(a+="rotate("+i+"deg) "),s&&(a+="rotateX("+s+"deg) "),u&&(a+="rotateY("+u+"deg) ")}return a+="scale("+t.x.scale+", "+t.y.scale+")",a===Es?"none":a}function J(t){return[t("x"),t("y")]}var sr=["","X","Y","Z"],ws=["translate","scale","rotate","skew"],Kt=["transformPerspective","x","y","z"];ws.forEach(function(t){return sr.forEach(function(e){return Kt.push(t+e)})});function As(t,e){return Kt.indexOf(t)-Kt.indexOf(e)}var Ms=new Set(Kt);function xe(t){return Ms.has(t)}var Rs=new Set(["originX","originY","originZ"]);function ro(t){return Rs.has(t)}var Os=function(t,e){return t.depth-e.depth},Ls=function(){function t(){this.children=[],this.isDirty=!1}return t.prototype.add=function(e){Je(this.children,e),this.isDirty=!0},t.prototype.remove=function(e){Qe(this.children,e),this.isDirty=!0},t.prototype.forEach=function(e){this.isDirty&&this.children.sort(Os),this.isDirty=!1,this.children.forEach(e)},t}(),Ds=function(t){return Boolean(t&&typeof t=="object"&&t.mix&&t.toValue)},Is=function(t){return Ht(t)?t[t.length-1]||0:t};function be(t){var e=W(t)?t.get():t;return Ds(e)?e.toValue():e}var no=1e3,Yt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function oo(t){var e=t.attachResizeListener,r=t.defaultParent,n=t.measureScroll,o=t.resetTransform;return function(){function a(i,s,u){var l=this;s===void 0&&(s={}),u===void 0&&(u=r==null?void 0:r()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){l.isUpdating&&(l.isUpdating=!1,l.clearAllSnapshots())},this.updateProjection=function(){l.nodes.forEach(Ns),l.nodes.forEach(Hs)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=i,this.latestValues=s,this.root=u?u.root||u:this,this.path=u?K(K([],R(u.path),!1),[u]):[],this.parent=u,this.depth=u?u.depth+1:0,i&&this.root.registerPotentialNode(i,this);for(var c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ls)}return a.prototype.addEventListener=function(i,s){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new Nt),this.eventHandlers.get(i).add(s)},a.prototype.notifyListeners=function(i){for(var s=[],u=1;u<arguments.length;u++)s[u-1]=arguments[u];var l=this.eventHandlers.get(i);l==null||l.notify.apply(l,K([],R(s)))},a.prototype.hasListeners=function(i){return this.eventHandlers.has(i)},a.prototype.registerPotentialNode=function(i,s){this.potentialNodes.set(i,s)},a.prototype.mount=function(i,s){var u=this,l;if(s===void 0&&(s=!1),!this.instance){this.isSVG=i instanceof SVGElement&&i.tagName!=="svg",this.instance=i;var c=this.options,v=c.layoutId,d=c.layout,f=c.visualElement;if(f&&!f.getInstance()&&f.mount(i),this.root.nodes.add(this),(l=this.parent)===null||l===void 0||l.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),s&&(d||v)&&(this.isLayoutDirty=!0),e){var p,h=function(){return u.root.updateBlockedByResize=!1};e(i,function(){u.root.updateBlockedByResize=!0,clearTimeout(p),p=setTimeout(h,250),Yt.hasAnimatedSinceResize&&(Yt.hasAnimatedSinceResize=!1,u.nodes.forEach(Us))})}v&&this.root.registerSharedNode(v,this),this.options.animate!==!1&&f&&(v||d)&&this.addEventListener("didUpdate",function(x){var y,b,S,P,V,A=x.delta,O=x.hasLayoutChanged,w=x.hasRelativeTargetChanged,M=x.layout;if(u.isTreeAnimationBlocked()){u.target=void 0,u.relativeTarget=void 0;return}var F=(b=(y=u.options.transition)!==null&&y!==void 0?y:f.getDefaultTransition())!==null&&b!==void 0?b:Ys,_=f.getProps().onLayoutAnimationComplete,z=!u.targetLayout||!to(u.targetLayout,M)||w,N=!O&&w;((S=u.resumeFrom)===null||S===void 0?void 0:S.instance)||N||O&&(z||!u.currentAnimation)?(u.resumeFrom&&(u.resumingFrom=u.resumeFrom,u.resumingFrom.resumingFrom=void 0),u.setAnimationOrigin(A,N),u.startAnimation(g(g({},nr(F,"layout")),{onComplete:_}))):u.isLead()&&((V=(P=u.options).onExitComplete)===null||V===void 0||V.call(P)),u.targetLayout=M})}},a.prototype.unmount=function(){var i,s;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(i=this.getStack())===null||i===void 0||i.remove(this),(s=this.parent)===null||s===void 0||s.children.delete(this),this.instance=void 0,St.preRender(this.updateProjection)},a.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},a.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},a.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},a.prototype.isTreeAnimationBlocked=function(){var i;return this.isAnimationBlocked||((i=this.parent)===null||i===void 0?void 0:i.isTreeAnimationBlocked())||!1},a.prototype.startUpdate=function(){var i;this.isUpdateBlocked()||(this.isUpdating=!0,(i=this.nodes)===null||i===void 0||i.forEach(zs))},a.prototype.willUpdate=function(i){var s,u,l;if(i===void 0&&(i=!0),this.root.isUpdateBlocked()){(u=(s=this.options).onExitComplete)===null||u===void 0||u.call(s);return}if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var c=0;c<this.path.length;c++){var v=this.path[c];v.shouldResetTransform=!0,v.updateScroll()}var d=this.options,f=d.layoutId,p=d.layout;if(!(f===void 0&&!p)){var h=(l=this.options.visualElement)===null||l===void 0?void 0:l.getProps().transformTemplate;this.prevTransformTemplateValue=h==null?void 0:h(this.latestValues,""),this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}}},a.prototype.didUpdate=function(){var i=this.isUpdateBlocked();if(i){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(io);return}!this.isUpdating||(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Ws),this.potentialNodes.clear()),this.nodes.forEach(_s),this.nodes.forEach(Fs),this.nodes.forEach(js),this.clearAllSnapshots(),De.update(),De.preRender(),De.render())},a.prototype.clearAllSnapshots=function(){this.nodes.forEach(Bs),this.sharedNodes.forEach(Gs)},a.prototype.scheduleUpdateProjection=function(){$.preRender(this.updateProjection,!1,!0)},a.prototype.scheduleCheckAfterUnmount=function(){var i=this;$.postRender(function(){i.isLayoutDirty?i.root.didUpdate():i.root.checkUpdateFailed()})},a.prototype.updateSnapshot=function(){if(!(this.snapshot||!this.instance)){var i=this.measure(),s=this.removeTransform(this.removeElementScroll(i));lo(s),this.snapshot={measured:i,layout:s,latestValues:{}}}},a.prototype.updateLayout=function(){var i;if(!!this.instance&&(this.updateScroll(),!(!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))){if(this.resumeFrom&&!this.resumeFrom.instance)for(var s=0;s<this.path.length;s++){var u=this.path[s];u.updateScroll()}var l=this.measure();lo(l);var c=this.layout;this.layout={measured:l,actual:this.removeElementScroll(l)},this.layoutCorrected=B(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure"),(i=this.options.visualElement)===null||i===void 0||i.notifyLayoutMeasure(this.layout.actual,c==null?void 0:c.actual)}},a.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.scroll=n(this.instance))},a.prototype.resetTransform=function(){var i;if(!!o){var s=this.isLayoutDirty||this.shouldResetTransform,u=this.projectionDelta&&!Qn(this.projectionDelta),l=(i=this.options.visualElement)===null||i===void 0?void 0:i.getProps().transformTemplate,c=l==null?void 0:l(this.latestValues,""),v=c!==this.prevTransformTemplateValue;s&&(u||at(this.latestValues)||v)&&(o(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}},a.prototype.measure=function(){var i=this.options.visualElement;if(!i)return B();var s=i.measureViewportBox(),u=this.root.scroll;return u&&(Pt(s.x,u.x),Pt(s.y,u.y)),s},a.prototype.removeElementScroll=function(i){var s=B();q(s,i);for(var u=0;u<this.path.length;u++){var l=this.path[u],c=l.scroll,v=l.options;l!==this.root&&c&&v.layoutScroll&&(Pt(s.x,c.x),Pt(s.y,c.y))}return s},a.prototype.applyTransform=function(i,s){s===void 0&&(s=!1);var u=B();q(u,i);for(var l=0;l<this.path.length;l++){var c=this.path[l];!s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Tt(u,{x:-c.scroll.x,y:-c.scroll.y}),!!at(c.latestValues)&&Tt(u,c.latestValues)}return at(this.latestValues)&&Tt(u,this.latestValues),u},a.prototype.removeTransform=function(i){var s,u=B();q(u,i);for(var l=0;l<this.path.length;l++){var c=this.path[l];if(!!c.instance&&!!at(c.latestValues)){_n(c.latestValues)&&c.updateSnapshot();var v=B(),d=c.measure();q(v,d),$n(u,c.latestValues,(s=c.snapshot)===null||s===void 0?void 0:s.layout,v)}}return at(this.latestValues)&&$n(u,this.latestValues),u},a.prototype.setTargetDelta=function(i){this.targetDelta=i,this.root.scheduleUpdateProjection()},a.prototype.setOptions=function(i){var s;this.options=g(g(g({},this.options),i),{crossfade:(s=i.crossfade)!==null&&s!==void 0?s:!0})},a.prototype.clearMeasurements=function(){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},a.prototype.resolveTargetDelta=function(){var i,s=this.options,u=s.layout,l=s.layoutId;!this.layout||!(u||l)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=B(),this.relativeTargetOrigin=B(),Gt(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),q(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=B(),this.targetWithTransforms=B()),this.relativeTarget&&this.relativeTargetOrigin&&((i=this.relativeParent)===null||i===void 0?void 0:i.target)?bs(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):q(this.target,this.layout.actual),Hn(this.target,this.targetDelta)):q(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=B(),this.relativeTargetOrigin=B(),Gt(this.relativeTargetOrigin,this.target,this.relativeParent.target),q(this.relativeTarget,this.relativeTargetOrigin)))))},a.prototype.getClosestProjectingParent=function(){if(!(!this.parent||at(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},a.prototype.calcProjection=function(){var i,s=this.options,u=s.layout,l=s.layoutId;if(this.isTreeAnimating=Boolean(((i=this.parent)===null||i===void 0?void 0:i.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!(!this.layout||!(u||l))){var c=this.getLead();q(this.layoutCorrected,this.layout.actual),gs(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==c);var v=c.target;if(!!v){this.projectionDelta||(this.projectionDelta=kt(),this.projectionDeltaWithTransform=kt());var d=this.treeScale.x,f=this.treeScale.y,p=this.projectionTransform;zt(this.projectionDelta,this.layoutCorrected,v,this.latestValues),this.projectionTransform=eo(this.projectionDelta,this.treeScale),(this.projectionTransform!==p||this.treeScale.x!==d||this.treeScale.y!==f)&&(this.hasProjected=!0,this.scheduleRender())}}},a.prototype.hide=function(){this.isVisible=!1},a.prototype.show=function(){this.isVisible=!0},a.prototype.scheduleRender=function(i){var s,u,l;i===void 0&&(i=!0),(u=(s=this.options).scheduleRender)===null||u===void 0||u.call(s),i&&((l=this.getStack())===null||l===void 0||l.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},a.prototype.setAnimationOrigin=function(i,s){var u=this,l;s===void 0&&(s=!1);var c=this.snapshot,v=(c==null?void 0:c.latestValues)||{},d=g({},this.latestValues),f=kt();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!s;var p=B(),h=c==null?void 0:c.isShared,x=(((l=this.getStack())===null||l===void 0?void 0:l.members.length)||0)<=1,y=Boolean(h&&!x&&this.options.crossfade===!0&&!this.path.some(Ks));this.mixTargetDelta=function(b){var S,P=b/1e3;ao(f.x,i.x,P),ao(f.y,i.y,P),u.setTargetDelta(f),u.relativeTarget&&u.relativeTargetOrigin&&u.layout&&((S=u.relativeParent)===null||S===void 0?void 0:S.layout)&&(Gt(p,u.layout.actual,u.relativeParent.layout.actual),ks(u.relativeTarget,u.relativeTargetOrigin,p,P)),h&&(u.animationValues=d,ps(d,v,u.latestValues,P,y,x)),u.root.scheduleUpdateProjection(),u.scheduleRender()},this.mixTargetDelta(0)},a.prototype.startAnimation=function(i){var s=this,u,l;(u=this.currentAnimation)===null||u===void 0||u.stop(),this.resumingFrom&&((l=this.resumingFrom.currentAnimation)===null||l===void 0||l.stop()),this.pendingAnimation&&(St.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=$.update(function(){Yt.hasAnimatedSinceResize=!0,s.currentAnimation=ds(0,no,g(g({},i),{onUpdate:function(c){var v;s.mixTargetDelta(c),(v=i.onUpdate)===null||v===void 0||v.call(i,c)},onComplete:function(){var c;(c=i.onComplete)===null||c===void 0||c.call(i),s.completeAnimation()}})),s.resumingFrom&&(s.resumingFrom.currentAnimation=s.currentAnimation),s.pendingAnimation=void 0})},a.prototype.completeAnimation=function(){var i;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(i=this.getStack())===null||i===void 0||i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0},a.prototype.finishAnimation=function(){var i;this.currentAnimation&&((i=this.mixTargetDelta)===null||i===void 0||i.call(this,no),this.currentAnimation.stop()),this.completeAnimation()},a.prototype.applyTransformsToTarget=function(){var i=this.getLead(),s=i.targetWithTransforms,u=i.target,l=i.layout,c=i.latestValues;!s||!u||!l||(q(s,u),Tt(s,c),zt(this.projectionDeltaWithTransform,this.layoutCorrected,s,c))},a.prototype.registerSharedNode=function(i,s){var u,l,c;this.sharedNodes.has(i)||this.sharedNodes.set(i,new Vs);var v=this.sharedNodes.get(i);v.add(s),s.promote({transition:(u=s.options.initialPromotionConfig)===null||u===void 0?void 0:u.transition,preserveFollowOpacity:(c=(l=s.options.initialPromotionConfig)===null||l===void 0?void 0:l.shouldPreserveFollowOpacity)===null||c===void 0?void 0:c.call(l,s)})},a.prototype.isLead=function(){var i=this.getStack();return i?i.lead===this:!0},a.prototype.getLead=function(){var i,s=this.options.layoutId;return s?((i=this.getStack())===null||i===void 0?void 0:i.lead)||this:this},a.prototype.getPrevLead=function(){var i,s=this.options.layoutId;return s?(i=this.getStack())===null||i===void 0?void 0:i.prevLead:void 0},a.prototype.getStack=function(){var i=this.options.layoutId;if(i)return this.root.sharedNodes.get(i)},a.prototype.promote=function(i){var s=i===void 0?{}:i,u=s.needsReset,l=s.transition,c=s.preserveFollowOpacity,v=this.getStack();v&&v.promote(this,c),u&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})},a.prototype.relegate=function(){var i=this.getStack();return i?i.relegate(this):!1},a.prototype.resetRotation=function(){var i=this.options.visualElement;if(!!i){for(var s=!1,u={},l=0;l<sr.length;l++){var c=sr[l],v="rotate"+c;!i.getStaticValue(v)||(s=!0,u[v]=i.getStaticValue(v),i.setStaticValue(v,0))}if(!!s){i==null||i.syncRender();for(var v in u)i.setStaticValue(v,u[v]);i.scheduleRender()}}},a.prototype.getProjectionStyles=function(i){var s,u,l,c,v,d;i===void 0&&(i={});var f={};if(!this.instance||this.isSVG)return f;if(this.isVisible)f.visibility="";else return{visibility:"hidden"};var p=(s=this.options.visualElement)===null||s===void 0?void 0:s.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,f.opacity="",f.pointerEvents=be(i.pointerEvents)||"",f.transform=p?p(this.latestValues,""):"none",f;var h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){var x={};return this.options.layoutId&&(x.opacity=(u=this.latestValues.opacity)!==null&&u!==void 0?u:1,x.pointerEvents=be(i.pointerEvents)||""),this.hasProjected&&!at(this.latestValues)&&(x.transform=p?p({},""):"none",this.hasProjected=!1),x}var y=h.animationValues||h.latestValues;this.applyTransformsToTarget(),f.transform=eo(this.projectionDeltaWithTransform,this.treeScale,y),p&&(f.transform=p(y,f.transform));var b=this.projectionDelta,S=b.x,P=b.y;f.transformOrigin=S.origin*100+"% "+P.origin*100+"% 0",h.animationValues?f.opacity=h===this?(c=(l=y.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:f.opacity=h===this?(v=y.opacity)!==null&&v!==void 0?v:"":(d=y.opacityExit)!==null&&d!==void 0?d:0;for(var V in ye)if(y[V]!==void 0){var A=ye[V],O=A.correct,w=A.applyTo,M=O(y[V],h);if(w)for(var F=w.length,_=0;_<F;_++)f[w[_]]=M;else f[V]=M}return this.options.layoutId&&(f.pointerEvents=h===this?be(i.pointerEvents)||"":"none"),f},a.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},a.prototype.resetTree=function(){this.root.nodes.forEach(function(i){var s;return(s=i.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(io),this.root.sharedNodes.clear()},a}()}function Fs(t){t.updateLayout()}function js(t){var e,r,n,o,a=(r=(e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)!==null&&r!==void 0?r:t.snapshot;if(t.isLead()&&t.layout&&a&&t.hasListeners("didUpdate")){var i=t.layout,s=i.actual,u=i.measured;t.options.animationType==="size"?J(function(b){var S=a.isShared?a.measured[b]:a.layout[b],P=et(S);S.min=s[b].min,S.max=S.min+P}):t.options.animationType==="position"&&J(function(b){var S=a.isShared?a.measured[b]:a.layout[b],P=et(s[b]);S.max=S.min+P});var l=kt();zt(l,s,a.layout);var c=kt();a.isShared?zt(c,t.applyTransform(u,!0),a.measured):zt(c,s,a.layout);var v=!Qn(l),d=!1;if(!t.resumeFrom&&(t.relativeParent=t.getClosestProjectingParent(),t.relativeParent&&!t.relativeParent.resumeFrom)){var f=t.relativeParent,p=f.snapshot,h=f.layout;if(p&&h){var x=B();Gt(x,a.layout,p.layout);var y=B();Gt(y,s,h.actual),to(x,y)||(d=!0)}}t.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:c,layoutDelta:l,hasLayoutChanged:v,hasRelativeTargetChanged:d})}else t.isLead()&&((o=(n=t.options).onExitComplete)===null||o===void 0||o.call(n));t.options.transition=void 0}function Bs(t){t.clearSnapshot()}function io(t){t.clearMeasurements()}function _s(t){t.resetTransform()}function Us(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function Ns(t){t.resolveTargetDelta()}function Hs(t){t.calcProjection()}function zs(t){t.resetRotation()}function Gs(t){t.removeLeadSnapshot()}function ao(t,e,r){t.translate=I(e.translate,0,r),t.scale=I(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function so(t,e,r,n){t.min=I(e.min,r.min,n),t.max=I(e.max,r.max,n)}function ks(t,e,r,n){so(t.x,e.x,r.x,n),so(t.y,e.y,r.y,n)}function Ks(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}var Ys={duration:.45,ease:[.4,0,.1,1]};function Ws(t,e){for(var r=t.root,n=t.path.length-1;n>=0;n--)if(Boolean(t.path[n].instance)){r=t.path[n];break}var o=r&&r!==t.root?r.instance:document,a=o.querySelector('[data-projection-id="'+e+'"]');a&&t.mount(a,!0)}function uo(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function lo(t){uo(t.x),uo(t.y)}var Xs=1;function $s(){return j(function(){if(Yt.hasEverUpdated)return Xs++})}var Wt=m.exports.createContext({}),co=m.exports.createContext({});function Zs(t,e,r,n){var o,a=e.layoutId,i=e.layout,s=e.drag,u=e.dragConstraints,l=e.layoutScroll,c=m.exports.useContext(co);!n||!r||(r==null?void 0:r.projection)||(r.projection=new n(t,r.getLatestValues(),(o=r.parent)===null||o===void 0?void 0:o.projection),r.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:Boolean(s)||u&&xt(u),visualElement:r,scheduleRender:function(){return r.scheduleRender()},animationType:typeof i=="string"?i:"both",initialPromotionConfig:c,layoutScroll:l}))}var qs=function(t){_r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},e.prototype.componentDidUpdate=function(){},e.prototype.updateProps=function(){var r=this.props,n=r.visualElement,o=r.props;n&&n.setProps(o)},e.prototype.render=function(){return this.props.children},e}(we.Component);function fo(t){var e=t.preloadedFeatures,r=t.createVisualElement,n=t.projectionNodeConstructor,o=t.useRender,a=t.useVisualState,i=t.Component;e&&Me(e);function s(u,l){var c=Js(u);u=g(g({},u),{layoutId:c});var v=m.exports.useContext(gt),d=null,f=Ui(u),p=$s(),h=a(u,v.isStatic);return!v.isStatic&&Ot&&(f.visualElement=Ii(i,h,g(g({},v),u),r),Zs(p,u,f.visualElement,n||Rt.projectionNodeConstructor),d=Di(u,f.visualElement)),m.exports.createElement(qs,{visualElement:f.visualElement,props:g(g({},v),u)},d,m.exports.createElement(Qt.Provider,{value:f},o(i,u,p,Fi(h,f.visualElement,l),h,v.isStatic)))}return m.exports.forwardRef(s)}function Js(t){var e,r=t.layoutId,n=(e=m.exports.useContext(Wt))===null||e===void 0?void 0:e.id;return n&&r!==void 0?n+"-"+r:r}function vo(t){function e(n,o){return o===void 0&&(o={}),fo(t(n,o))}var r=new Map;return new Proxy(e,{get:function(n,o){return r.has(o)||r.set(o,e(o)),r.get(o)}})}var Qs=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function ur(t){return typeof t!="string"||t.includes("-")?!1:!!(Qs.indexOf(t)>-1||/[A-Z]/.test(t))}function po(t,e){var r=e.layout,n=e.layoutId;return xe(t)||ro(t)||(r||n!==void 0)&&(!!ye[t]||t==="opacity")}var tu={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function eu(t,e,r,n){var o=t.transform,a=t.transformKeys,i=e.enableHardwareAcceleration,s=i===void 0?!0:i,u=e.allowTransformNone,l=u===void 0?!0:u,c="";a.sort(As);for(var v=!1,d=a.length,f=0;f<d;f++){var p=a[f];c+=(tu[p]||p)+"("+o[p]+") ",p==="z"&&(v=!0)}return!v&&s?c+="translateZ(0)":c=c.trim(),n?c=n(o,r?"":c):l&&r&&(c="none"),c}function ru(t){var e=t.originX,r=e===void 0?"50%":e,n=t.originY,o=n===void 0?"50%":n,a=t.originZ,i=a===void 0?0:a;return r+" "+o+" "+i}function ho(t){return t.startsWith("--")}var nu=function(t,e){return e&&typeof t=="number"?e.transform(t):t};function lr(t,e,r,n){var o,a=t.style,i=t.vars,s=t.transform,u=t.transformKeys,l=t.transformOrigin;u.length=0;var c=!1,v=!1,d=!0;for(var f in e){var p=e[f];if(ho(f)){i[f]=p;continue}var h=On[f],x=nu(p,h);if(xe(f)){if(c=!0,s[f]=x,u.push(f),!d)continue;p!==((o=h.default)!==null&&o!==void 0?o:0)&&(d=!1)}else ro(f)?(l[f]=x,v=!0):a[f]=x}c?a.transform=eu(t,r,d,n):n&&(a.transform=n({},"")),v&&(a.transformOrigin=ru(l))}var cr=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function mo(t,e,r){for(var n in e)!W(e[n])&&!po(n,r)&&(t[n]=e[n])}function ou(t,e,r){var n=t.transformTemplate;return m.exports.useMemo(function(){var o=cr();lr(o,e,{enableHardwareAcceleration:!r},n);var a=o.vars,i=o.style;return g(g({},a),i)},[e])}function iu(t,e,r){var n=t.style||{},o={};return mo(o,n,t),Object.assign(o,ou(t,e,r)),t.transformValues&&(o=t.transformValues(o)),o}function au(t,e,r){var n={},o=iu(t,e,r);return Boolean(t.drag)&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=t.drag===!0?"none":"pan-"+(t.drag==="x"?"y":"x")),n.style=o,n}var su=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function Se(t){return su.has(t)}var go=function(t){return!Se(t)};try{var uu=require("@emotion/is-prop-valid").default;go=function(t){return t.startsWith("on")?!Se(t):uu(t)}}catch{}function lu(t,e,r){var n={};for(var o in t)(go(o)||r===!0&&Se(o)||!e&&!Se(o))&&(n[o]=t[o]);return n}function yo(t,e,r){return typeof t=="string"?t:C.transform(e+r*t)}function cu(t,e,r){var n=yo(e,t.x,t.width),o=yo(r,t.y,t.height);return n+" "+o}var fu={offset:"stroke-dashoffset",array:"stroke-dasharray"},du={offset:"strokeDashoffset",array:"strokeDasharray"};function vu(t,e,r,n,o){r===void 0&&(r=1),n===void 0&&(n=0),o===void 0&&(o=!0),t.pathLength=1;var a=o?fu:du;t[a.offset]=C.transform(-n);var i=C.transform(e),s=C.transform(r);t[a.array]=i+" "+s}function fr(t,e,r,n){var o=e.attrX,a=e.attrY,i=e.originX,s=e.originY,u=e.pathLength,l=e.pathSpacing,c=l===void 0?1:l,v=e.pathOffset,d=v===void 0?0:v,f=U(e,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);lr(t,f,r,n),t.attrs=t.style,t.style={};var p=t.attrs,h=t.style,x=t.dimensions;p.transform&&(x&&(h.transform=p.transform),delete p.transform),x&&(i!==void 0||s!==void 0||h.transform)&&(h.transformOrigin=cu(x,i!==void 0?i:.5,s!==void 0?s:.5)),o!==void 0&&(p.x=o),a!==void 0&&(p.y=a),u!==void 0&&vu(p,u,c,d,!1)}var xo=function(){return g(g({},cr()),{attrs:{}})};function pu(t,e){var r=m.exports.useMemo(function(){var o=xo();return fr(o,e,{enableHardwareAcceleration:!1},t.transformTemplate),g(g({},o.attrs),{style:g({},o.style)})},[e]);if(t.style){var n={};mo(n,t.style,t),r.style=g(g({},n),r.style)}return r}function hu(t){t===void 0&&(t=!1);var e=function(r,n,o,a,i,s){var u=i.latestValues,l=ur(r)?pu:au,c=l(n,u,s),v=lu(n,typeof r=="string",t),d=g(g(g({},v),c),{ref:a});return o&&(d["data-projection-id"]=o),m.exports.createElement(r,d)};return e}var mu=/([a-z])([A-Z])/g,gu="$1-$2",bo=function(t){return t.replace(mu,gu).toLowerCase()};function So(t,e,r,n){var o=e.style,a=e.vars;Object.assign(t.style,o,n&&n.getProjectionStyles(r));for(var i in a)t.style.setProperty(i,a[i])}var Po=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function To(t,e){So(t,e);for(var r in e.attrs)t.setAttribute(Po.has(r)?r:bo(r),e.attrs[r])}function dr(t){var e=t.style,r={};for(var n in e)(W(e[n])||po(n,t))&&(r[n]=e[n]);return r}function Vo(t){var e=dr(t);for(var r in t)if(W(t[r])){var n=r==="x"||r==="y"?"attr"+r.toUpperCase():r;e[n]=t[r]}return e}function vr(t){return typeof t=="object"&&typeof t.start=="function"}function Co(t,e,r,n){var o=t.scrapeMotionValuesFromProps,a=t.createRenderState,i=t.onMount,s={latestValues:yu(e,r,n,o),renderState:a()};return i&&(s.mount=function(u){return i(e,u,s)}),s}var pr=function(t){return function(e,r){var n=m.exports.useContext(Qt),o=m.exports.useContext(yt);return r?Co(t,e,n,o):j(function(){return Co(t,e,n,o)})}};function yu(t,e,r,n){var o={},a=(r==null?void 0:r.initial)===!1,i=n(t);for(var s in i)o[s]=be(i[s]);var u=t.initial,l=t.animate,c=re(t),v=Gr(t);e&&v&&!c&&t.inherit!==!1&&(u!=null||(u=e.initial),l!=null||(l=e.animate));var d=a||u===!1?l:u;if(d&&typeof d!="boolean"&&!vr(d)){var f=Array.isArray(d)?d:[d];f.forEach(function(p){var h=zr(t,p);if(!!h){var x=h.transitionEnd;h.transition;var y=U(h,["transitionEnd","transition"]);for(var b in y)o[b]=y[b];for(var b in x)o[b]=x[b]}})}return o}var xu={useVisualState:pr({scrapeMotionValuesFromProps:Vo,createRenderState:xo,onMount:function(t,e,r){var n=r.renderState,o=r.latestValues;try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}fr(n,o,{enableHardwareAcceleration:!1},t.transformTemplate),To(e,n)}})},bu={useVisualState:pr({scrapeMotionValuesFromProps:dr,createRenderState:cr})};function hr(t,e,r,n,o){var a=e.forwardMotionProps,i=a===void 0?!1:a,s=ur(t)?xu:bu;return g(g({},s),{preloadedFeatures:r,useRender:hu(i),createVisualElement:n,projectionNodeConstructor:o,Component:t})}var D;(function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"})(D||(D={}));function dt(t,e,r,n){return t.addEventListener(e,r,n),function(){return t.removeEventListener(e,r,n)}}function mr(t,e,r,n){m.exports.useEffect(function(){var o=t.current;if(r&&o)return dt(o,e,r,n)},[t,e,r,n])}function Su(t){var e=t.whileFocus,r=t.visualElement,n=function(){var a;(a=r.animationState)===null||a===void 0||a.setActive(D.Focus,!0)},o=function(){var a;(a=r.animationState)===null||a===void 0||a.setActive(D.Focus,!1)};mr(r,"focus",e?n:void 0),mr(r,"blur",e?o:void 0)}function Eo(t){return typeof PointerEvent!="undefined"&&t instanceof PointerEvent?t.pointerType==="mouse":t instanceof MouseEvent}function wo(t){var e=!!t.touches;return e}function Pu(t){return function(e){var r=e instanceof MouseEvent,n=!r||r&&e.button===0;n&&t(e)}}var Tu={pageX:0,pageY:0};function Vu(t,e){e===void 0&&(e="page");var r=t.touches[0]||t.changedTouches[0],n=r||Tu;return{x:n[e+"X"],y:n[e+"Y"]}}function Cu(t,e){return e===void 0&&(e="page"),{x:t[e+"X"],y:t[e+"Y"]}}function gr(t,e){return e===void 0&&(e="page"),{point:wo(t)?Vu(t,e):Cu(t,e)}}var Ao=function(t,e){e===void 0&&(e=!1);var r=function(n){return t(n,gr(n))};return e?Pu(r):r},Eu=function(){return Ot&&window.onpointerdown===null},wu=function(){return Ot&&window.ontouchstart===null},Au=function(){return Ot&&window.onmousedown===null},Mu={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Ru={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Mo(t){return Eu()?t:wu()?Ru[t]:Au()?Mu[t]:t}function Vt(t,e,r,n){return dt(t,Mo(e),Ao(r,e==="pointerdown"),n)}function Pe(t,e,r,n){return mr(t,Mo(e),r&&Ao(r,e==="pointerdown"),n)}function Ro(t){var e=null;return function(){var r=function(){e=null};return e===null?(e=t,r):!1}}var Oo=Ro("dragHorizontal"),Lo=Ro("dragVertical");function Do(t){var e=!1;if(t==="y")e=Lo();else if(t==="x")e=Oo();else{var r=Oo(),n=Lo();r&&n?e=function(){r(),n()}:(r&&r(),n&&n())}return e}function Io(){var t=Do(!0);return t?(t(),!1):!0}function Fo(t,e,r){return function(n,o){var a;!Eo(n)||Io()||(r==null||r(n,o),(a=t.animationState)===null||a===void 0||a.setActive(D.Hover,e))}}function Ou(t){var e=t.onHoverStart,r=t.onHoverEnd,n=t.whileHover,o=t.visualElement;Pe(o,"pointerenter",e||n?Fo(o,!0,e):void 0),Pe(o,"pointerleave",r||n?Fo(o,!1,r):void 0)}var jo=function(t,e){return e?t===e?!0:jo(t,e.parentElement):!1};function yr(t){return m.exports.useEffect(function(){return function(){return t()}},[])}function Lu(t){var e=t.onTap,r=t.onTapStart,n=t.onTapCancel,o=t.whileTap,a=t.visualElement,i=e||r||n||o,s=m.exports.useRef(!1),u=m.exports.useRef(null);function l(){var p;(p=u.current)===null||p===void 0||p.call(u),u.current=null}function c(){var p;return l(),s.current=!1,(p=a.animationState)===null||p===void 0||p.setActive(D.Tap,!1),!Io()}function v(p,h){!c()||(jo(a.getInstance(),p.target)?e==null||e(p,h):n==null||n(p,h))}function d(p,h){!c()||n==null||n(p,h)}function f(p,h){var x;l(),!s.current&&(s.current=!0,u.current=se(Vt(window,"pointerup",v),Vt(window,"pointercancel",d)),r==null||r(p,h),(x=a.animationState)===null||x===void 0||x.setActive(D.Tap,!0))}Pe(a,"pointerdown",i?f:void 0),yr(l)}var xr=new WeakMap,br=new WeakMap,Du=function(t){var e;(e=xr.get(t.target))===null||e===void 0||e(t)},Iu=function(t){t.forEach(Du)};function Fu(t){var e=t.root,r=U(t,["root"]),n=e||document;br.has(n)||br.set(n,{});var o=br.get(n),a=JSON.stringify(r);return o[a]||(o[a]=new IntersectionObserver(Iu,g({root:e},r))),o[a]}function ju(t,e,r){var n=Fu(e);return xr.set(t,r),n.observe(t),function(){xr.delete(t),n.unobserve(t)}}function Bu(t){var e=t.visualElement,r=t.whileInView,n=t.onViewportEnter,o=t.onViewportLeave,a=t.viewport,i=a===void 0?{}:a,s=m.exports.useRef({hasEnteredView:!1,isInView:!1}),u=Boolean(r||n||o);i.once&&s.current.hasEnteredView&&(u=!1);var l=typeof IntersectionObserver=="undefined"?Nu:Uu;l(u,s.current,e,i)}var _u={some:0,all:1};function Uu(t,e,r,n){var o=n.root,a=n.margin,i=n.amount,s=i===void 0?"some":i,u=n.once;m.exports.useEffect(function(){if(!!t){var l={root:o==null?void 0:o.current,rootMargin:a,threshold:typeof s=="number"?s:_u[s]},c=function(v){var d,f=v.isIntersecting;if(e.isInView!==f&&(e.isInView=f,!(u&&!f&&e.hasEnteredView))){f&&(e.hasEnteredView=!0),(d=r.animationState)===null||d===void 0||d.setActive(D.InView,f);var p=r.getProps(),h=f?p.onViewportEnter:p.onViewportLeave;h==null||h()}};return ju(r.getInstance(),l,c)}},[t,o,a,s])}function Nu(t,e,r){m.exports.useEffect(function(){!t||requestAnimationFrame(function(){var n;e.hasEnteredView=!0;var o=r.getProps().onViewportEnter;o==null||o(),(n=r.animationState)===null||n===void 0||n.setActive(D.InView,!0)})},[t])}var st=function(t){return function(e){return t(e),null}},Bo={inView:st(Bu),tap:st(Lu),focus:st(Su),hover:st(Ou)};function _o(){var t=m.exports.useContext(yt);if(t===null)return[!0,null];var e=t.isPresent,r=t.onExitComplete,n=t.register,o=ku();m.exports.useEffect(function(){return n(o)},[]);var a=function(){return r==null?void 0:r(o)};return!e&&r?[!1,a]:[!0]}function Cc(){return Hu(m.exports.useContext(yt))}function Hu(t){return t===null?!0:t.isPresent}var zu=0,Gu=function(){return zu++},ku=function(){return j(Gu)};function Uo(t,e){if(!Array.isArray(e))return!1;var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}var Ku=function(t){return/^\-?\d*\.?\d+$/.test(t)},Yu=function(t){return/^0[^.\s]+$/.test(t)},No=function(t){return function(e){return e.test(t)}},Wu={test:function(t){return t==="auto"},parse:function(t){return t}},Ho=[lt,C,ot,nt,ra,ea,Wu],Xt=function(t){return Ho.find(No(t))},Xu=K(K([],R(Ho),!1),[H,tt]),$u=function(t){return Xu.find(No(t))};function Zu(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,Y(r))}function Sr(t,e){var r=ee(t,e),n=r?t.makeTargetAnimatable(r,!1):{},o=n.transitionEnd,a=o===void 0?{}:o;n.transition;var i=U(n,["transitionEnd","transition"]);i=g(g({},i),a);for(var s in i){var u=Is(i[s]);Zu(t,s,u)}}function Pr(t,e){var r=K([],R(e)).reverse();r.forEach(function(n){var o,a=t.getVariant(n);a&&Sr(t,a),(o=t.variantChildren)===null||o===void 0||o.forEach(function(i){Pr(i,e)})})}function qu(t,e){if(Array.isArray(e))return Pr(t,e);if(typeof e=="string")return Pr(t,[e]);Sr(t,e)}function zo(t,e,r){var n,o,a,i,s=Object.keys(e).filter(function(f){return!t.hasValue(f)}),u=s.length;if(!!u)for(var l=0;l<u;l++){var c=s[l],v=e[c],d=null;Array.isArray(v)&&(d=v[0]),d===null&&(d=(o=(n=r[c])!==null&&n!==void 0?n:t.readValue(c))!==null&&o!==void 0?o:e[c]),d!=null&&(typeof d=="string"&&(Ku(d)||Yu(d))?d=parseFloat(d):!$u(d)&&tt.test(v)&&(d=rr(c,v)),t.addValue(c,Y(d)),(a=(i=r)[c])!==null&&a!==void 0||(i[c]=d),t.setBaseTarget(c,d))}}function Ju(t,e){if(!!e){var r=e[t]||e.default||e;return r.from}}function Go(t,e,r){var n,o,a={};for(var i in t)a[i]=(n=Ju(i,e))!==null&&n!==void 0?n:(o=r.getValue(i))===null||o===void 0?void 0:o.get();return a}function Tr(t,e,r){r===void 0&&(r={}),t.notifyAnimationStart(e);var n;if(Array.isArray(e)){var o=e.map(function(i){return Vr(t,i,r)});n=Promise.all(o)}else if(typeof e=="string")n=Vr(t,e,r);else{var a=typeof e=="function"?ee(t,e,r.custom):e;n=ko(t,a,r)}return n.then(function(){return t.notifyAnimationComplete(e)})}function Vr(t,e,r){var n;r===void 0&&(r={});var o=ee(t,e,r.custom),a=(o||{}).transition,i=a===void 0?t.getDefaultTransition()||{}:a;r.transitionOverride&&(i=r.transitionOverride);var s=o?function(){return ko(t,o,r)}:function(){return Promise.resolve()},u=((n=t.variantChildren)===null||n===void 0?void 0:n.size)?function(f){f===void 0&&(f=0);var p=i.delayChildren,h=p===void 0?0:p,x=i.staggerChildren,y=i.staggerDirection;return Qu(t,e,h+f,x,y,r)}:function(){return Promise.resolve()},l=i.when;if(l){var c=R(l==="beforeChildren"?[s,u]:[u,s],2),v=c[0],d=c[1];return v().then(d)}else return Promise.all([s(),u(r.delay)])}function ko(t,e,r){var n,o=r===void 0?{}:r,a=o.delay,i=a===void 0?0:a,s=o.transitionOverride,u=o.type,l=t.makeTargetAnimatable(e),c=l.transition,v=c===void 0?t.getDefaultTransition():c,d=l.transitionEnd,f=U(l,["transition","transitionEnd"]);s&&(v=s);var p=[],h=u&&((n=t.animationState)===null||n===void 0?void 0:n.getState()[u]);for(var x in f){var y=t.getValue(x),b=f[x];if(!(!y||b===void 0||h&&rl(h,x))){var S=or(x,y,b,g({delay:i},v));p.push(S)}}return Promise.all(p).then(function(){d&&Sr(t,d)})}function Qu(t,e,r,n,o,a){r===void 0&&(r=0),n===void 0&&(n=0),o===void 0&&(o=1);var i=[],s=(t.variantChildren.size-1)*n,u=o===1?function(l){return l===void 0&&(l=0),l*n}:function(l){return l===void 0&&(l=0),s-l*n};return Array.from(t.variantChildren).sort(el).forEach(function(l,c){i.push(Vr(l,e,g(g({},a),{delay:r+u(c)})).then(function(){return l.notifyAnimationComplete(e)}))}),Promise.all(i)}function tl(t){t.forEachValue(function(e){return e.stop()})}function el(t,e){return t.sortNodePosition(e)}function rl(t,e){var r=t.protectedKeys,n=t.needsAnimating,o=r.hasOwnProperty(e)&&n[e]!==!0;return n[e]=!1,o}var Cr=[D.Animate,D.InView,D.Focus,D.Hover,D.Tap,D.Drag,D.Exit],nl=K([],R(Cr)).reverse(),ol=Cr.length;function il(t){return function(e){return Promise.all(e.map(function(r){var n=r.animation,o=r.options;return Tr(t,n,o)}))}}function al(t){var e=il(t),r=ul(),n={},o=!0,a=function(c,v){var d=ee(t,v);if(d){d.transition;var f=d.transitionEnd,p=U(d,["transition","transitionEnd"]);c=g(g(g({},c),p),f)}return c};function i(c){return n[c]!==void 0}function s(c){e=c(t)}function u(c,v){for(var d,f=t.getProps(),p=t.getVariantContext(!0)||{},h=[],x=new Set,y={},b=1/0,S=function(O){var w=nl[O],M=r[w],F=(d=f[w])!==null&&d!==void 0?d:p[w],_=X(F),z=w===v?M.isActive:null;z===!1&&(b=O);var N=F===p[w]&&F!==f[w]&&_;if(N&&o&&t.manuallyAnimateOnMount&&(N=!1),M.protectedKeys=g({},y),!M.isActive&&z===null||!F&&!M.prevProp||vr(F)||typeof F=="boolean")return"continue";var Z=sl(M.prevProp,F)||w===v&&M.isActive&&!N&&_||O>b&&_,rt=Array.isArray(F)?F:[F],ut=rt.reduce(a,{});z===!1&&(ut={});var At=M.prevResolvedValues,ht=At===void 0?{}:At,Zt=g(g({},ht),ut),mt=function(E){Z=!0,x.delete(E),M.needsAnimating[E]=!0};for(var G in Zt){var L=ut[G],T=ht[G];y.hasOwnProperty(G)||(L!==T?Ht(L)&&Ht(T)?Uo(L,T)?M.protectedKeys[G]=!0:mt(G):L!==void 0?mt(G):x.add(G):L!==void 0&&x.has(G)?mt(G):M.protectedKeys[G]=!0)}M.prevProp=F,M.prevResolvedValues=ut,M.isActive&&(y=g(g({},y),ut)),o&&t.blockInitialAnimation&&(Z=!1),Z&&!N&&h.push.apply(h,K([],R(rt.map(function(E){return{animation:E,options:g({type:w},c)}}))))},P=0;P<ol;P++)S(P);if(n=g({},y),x.size){var V={};x.forEach(function(O){var w=t.getBaseTarget(O);w!==void 0&&(V[O]=w)}),h.push({animation:V})}var A=Boolean(h.length);return o&&f.initial===!1&&!t.manuallyAnimateOnMount&&(A=!1),o=!1,A?e(h):Promise.resolve()}function l(c,v,d){var f;return r[c].isActive===v?Promise.resolve():((f=t.variantChildren)===null||f===void 0||f.forEach(function(p){var h;return(h=p.animationState)===null||h===void 0?void 0:h.setActive(c,v)}),r[c].isActive=v,u(d,c))}return{isAnimated:i,animateChanges:u,setActive:l,setAnimateFunction:s,getState:function(){return r}}}function sl(t,e){return typeof e=="string"?e!==t:Hr(e)?!Uo(e,t):!1}function vt(t){return t===void 0&&(t=!1),{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ul(){var t;return t={},t[D.Animate]=vt(!0),t[D.InView]=vt(),t[D.Hover]=vt(),t[D.Tap]=vt(),t[D.Drag]=vt(),t[D.Focus]=vt(),t[D.Exit]=vt(),t}var Ko={animation:st(function(t){var e=t.visualElement,r=t.animate;e.animationState||(e.animationState=al(e)),vr(r)&&m.exports.useEffect(function(){return r.subscribe(e)},[r])}),exit:st(function(t){var e=t.custom,r=t.visualElement,n=R(_o(),2),o=n[0],a=n[1],i=m.exports.useContext(yt);m.exports.useEffect(function(){var s,u;r.isPresent=o;var l=(s=r.animationState)===null||s===void 0?void 0:s.setActive(D.Exit,!o,{custom:(u=i==null?void 0:i.custom)!==null&&u!==void 0?u:e});!o&&(l==null||l.then(a))},[o])})},Yo=function(){function t(e,r,n){var o=this,a=n===void 0?{}:n,i=a.transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(!!(o.lastMoveEvent&&o.lastMoveEventInfo)){var d=wr(o.lastMoveEventInfo,o.history),f=o.startEvent!==null,p=Pn(d.offset,{x:0,y:0})>=3;if(!(!f&&!p)){var h=d.point,x=oe().timestamp;o.history.push(g(g({},h),{timestamp:x}));var y=o.handlers,b=y.onStart,S=y.onMove;f||(b&&b(o.lastMoveEvent,d),o.startEvent=o.lastMoveEvent),S&&S(o.lastMoveEvent,d)}}},this.handlePointerMove=function(d,f){if(o.lastMoveEvent=d,o.lastMoveEventInfo=Er(f,o.transformPagePoint),Eo(d)&&d.buttons===0){o.handlePointerUp(d,f);return}$.update(o.updatePoint,!0)},this.handlePointerUp=function(d,f){o.end();var p=o.handlers,h=p.onEnd,x=p.onSessionEnd,y=wr(Er(f,o.transformPagePoint),o.history);o.startEvent&&h&&h(d,y),x&&x(d,y)},!(wo(e)&&e.touches.length>1)){this.handlers=r,this.transformPagePoint=i;var s=gr(e),u=Er(s,this.transformPagePoint),l=u.point,c=oe().timestamp;this.history=[g(g({},l),{timestamp:c})];var v=r.onSessionStart;v&&v(e,wr(u,this.history)),this.removeListeners=se(Vt(window,"pointermove",this.handlePointerMove),Vt(window,"pointerup",this.handlePointerUp),Vt(window,"pointercancel",this.handlePointerUp))}}return t.prototype.updateHandlers=function(e){this.handlers=e},t.prototype.end=function(){this.removeListeners&&this.removeListeners(),St.update(this.updatePoint)},t}();function Er(t,e){return e?{point:e(t.point)}:t}function Wo(t,e){return{x:t.x-e.x,y:t.y-e.y}}function wr(t,e){var r=t.point;return{point:r,delta:Wo(r,Xo(e)),offset:Wo(r,ll(e)),velocity:cl(e,.1)}}function ll(t){return t[0]}function Xo(t){return t[t.length-1]}function cl(t,e){if(t.length<2)return{x:0,y:0};for(var r=t.length-1,n=null,o=Xo(t);r>=0&&(n=t[r],!(o.timestamp-n.timestamp>he(e)));)r--;if(!n)return{x:0,y:0};var a=(o.timestamp-n.timestamp)/1e3;if(a===0)return{x:0,y:0};var i={x:(o.x-n.x)/a,y:(o.y-n.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function fl(t,e,r){var n=e.min,o=e.max;return n!==void 0&&t<n?t=r?I(n,t,r.min):Math.max(t,n):o!==void 0&&t>o&&(t=r?I(o,t,r.max):Math.min(t,o)),t}function $o(t,e,r){return{min:e!==void 0?t.min+e:void 0,max:r!==void 0?t.max+r-(t.max-t.min):void 0}}function dl(t,e){var r=e.top,n=e.left,o=e.bottom,a=e.right;return{x:$o(t.x,n,a),y:$o(t.y,r,o)}}function Zo(t,e){var r,n=e.min-t.min,o=e.max-t.max;return e.max-e.min<t.max-t.min&&(r=R([o,n],2),n=r[0],o=r[1]),{min:n,max:o}}function vl(t,e){return{x:Zo(t.x,e.x),y:Zo(t.y,e.y)}}function pl(t,e){var r=.5,n=et(t),o=et(e);return o>n?r=It(e.min,e.max-n,t.min):n>o&&(r=It(t.min,t.max-o,e.min)),ie(0,1,r)}function hl(t,e){var r={};return e.min!==void 0&&(r.min=e.min-t.min),e.max!==void 0&&(r.max=e.max-t.min),r}var Ar=.35;function ml(t){return t===void 0&&(t=Ar),t===!1?t=0:t===!0&&(t=Ar),{x:qo(t,"left","right"),y:qo(t,"top","bottom")}}function qo(t,e,r){return{min:Jo(t,e),max:Jo(t,r)}}function Jo(t,e){var r;return typeof t=="number"?t:(r=t[e])!==null&&r!==void 0?r:0}function Qo(t){var e=t.top,r=t.left,n=t.right,o=t.bottom;return{x:{min:r,max:n},y:{min:e,max:o}}}function gl(t){var e=t.x,r=t.y;return{top:r.min,right:e.max,bottom:r.max,left:e.min}}function yl(t,e){if(!e)return t;var r=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function ti(t,e){return Qo(yl(t.getBoundingClientRect(),e))}function xl(t,e,r){var n=ti(t,r),o=e.scroll;return o&&(Pt(n.x,o.x),Pt(n.y,o.y)),n}var bl=new WeakMap,Sl=function(){function t(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=B(),this.visualElement=e}return t.prototype.start=function(e,r){var n=this,o=r===void 0?{}:r,a=o.snapToCursor,i=a===void 0?!1:a;if(this.visualElement.isPresent!==!1){var s=function(v){n.stopAnimation(),i&&n.snapToCursor(gr(v,"page").point)},u=function(v,d){var f,p=n.getProps(),h=p.drag,x=p.dragPropagation,y=p.onDragStart;h&&!x&&(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Do(h),!n.openGlobalLock)||(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),J(function(b){var S,P,V=n.getAxisMotionValue(b).get()||0;if(ot.test(V)){var A=(P=(S=n.visualElement.projection)===null||S===void 0?void 0:S.layout)===null||P===void 0?void 0:P.actual[b];if(A){var O=et(A);V=O*(parseFloat(V)/100)}}n.originPoint[b]=V}),y==null||y(v,d),(f=n.visualElement.animationState)===null||f===void 0||f.setActive(D.Drag,!0))},l=function(v,d){var f=n.getProps(),p=f.dragPropagation,h=f.dragDirectionLock,x=f.onDirectionLock,y=f.onDrag;if(!(!p&&!n.openGlobalLock)){var b=d.offset;if(h&&n.currentDirection===null){n.currentDirection=Pl(b),n.currentDirection!==null&&(x==null||x(n.currentDirection));return}n.updateAxis("x",d.point,b),n.updateAxis("y",d.point,b),n.visualElement.syncRender(),y==null||y(v,d)}},c=function(v,d){return n.stop(v,d)};this.panSession=new Yo(e,{onSessionStart:s,onStart:u,onMove:l,onSessionEnd:c},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},t.prototype.stop=function(e,r){var n=this.isDragging;if(this.cancel(),!!n){var o=r.velocity;this.startAnimation(o);var a=this.getProps().onDragEnd;a==null||a(e,r)}},t.prototype.cancel=function(){var e,r;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(e=this.panSession)===null||e===void 0||e.end(),this.panSession=void 0;var n=this.getProps().dragPropagation;!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(r=this.visualElement.animationState)===null||r===void 0||r.setActive(D.Drag,!1)},t.prototype.updateAxis=function(e,r,n){var o=this.getProps().drag;if(!(!n||!Te(e,o,this.currentDirection))){var a=this.getAxisMotionValue(e),i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=fl(i,this.constraints[e],this.elastic[e])),a.set(i)}},t.prototype.resolveConstraints=function(){var e=this,r=this.getProps(),n=r.dragConstraints,o=r.dragElastic,a=(this.visualElement.projection||{}).layout,i=this.constraints;n&&xt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&a?this.constraints=dl(a.actual,n):this.constraints=!1,this.elastic=ml(o),i!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&J(function(s){e.getAxisMotionValue(s)&&(e.constraints[s]=hl(a.actual[s],e.constraints[s]))})},t.prototype.resolveRefConstraints=function(){var e=this.getProps(),r=e.dragConstraints,n=e.onMeasureDragConstraints;if(!r||!xt(r))return!1;var o=r.current,a=this.visualElement.projection;if(!a||!a.layout)return!1;var i=xl(o,a.root,this.visualElement.getTransformPagePoint()),s=vl(a.layout.actual,i);if(n){var u=n(gl(s));this.hasMutatedConstraints=!!u,u&&(s=Qo(u))}return s},t.prototype.startAnimation=function(e){var r=this,n=this.getProps(),o=n.drag,a=n.dragMomentum,i=n.dragElastic,s=n.dragTransition,u=n.dragSnapToOrigin,l=n.onDragTransitionEnd,c=this.constraints||{},v=J(function(d){var f;if(!!Te(d,o,r.currentDirection)){var p=(f=c==null?void 0:c[d])!==null&&f!==void 0?f:{};u&&(p={min:0,max:0});var h=i?200:1e6,x=i?40:1e7,y=g(g({type:"inertia",velocity:a?e[d]:0,bounceStiffness:h,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10},s),p);return r.startAxisValueAnimation(d,y)}});return Promise.all(v).then(l)},t.prototype.startAxisValueAnimation=function(e,r){var n=this.getAxisMotionValue(e);return or(e,n,0,r)},t.prototype.stopAnimation=function(){var e=this;J(function(r){return e.getAxisMotionValue(r).stop()})},t.prototype.getAxisMotionValue=function(e){var r,n,o="_drag"+e.toUpperCase(),a=this.visualElement.getProps()[o];return a||this.visualElement.getValue(e,(n=(r=this.visualElement.getProps().initial)===null||r===void 0?void 0:r[e])!==null&&n!==void 0?n:0)},t.prototype.snapToCursor=function(e){var r=this;J(function(n){var o=r.getProps().drag;if(!!Te(n,o,r.currentDirection)){var a=r.visualElement.projection,i=r.getAxisMotionValue(n);if(a&&a.layout){var s=a.layout.actual[n],u=s.min,l=s.max;i.set(e[n]-I(u,l,.5))}}})},t.prototype.scalePositionWithinConstraints=function(){var e=this,r,n=this.getProps(),o=n.drag,a=n.dragConstraints,i=this.visualElement.projection;if(!(!xt(a)||!i||!this.constraints)){this.stopAnimation();var s={x:0,y:0};J(function(l){var c=e.getAxisMotionValue(l);if(c){var v=c.get();s[l]=pl({min:v,max:v},e.constraints[l])}});var u=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=u?u({},""):"none",(r=i.root)===null||r===void 0||r.updateScroll(),i.updateLayout(),this.resolveConstraints(),J(function(l){if(!!Te(l,o,null)){var c=e.getAxisMotionValue(l),v=e.constraints[l],d=v.min,f=v.max;c.set(I(d,f,s[l]))}})}},t.prototype.addListeners=function(){var e=this,r;bl.set(this.visualElement,this);var n=this.visualElement.getInstance(),o=Vt(n,"pointerdown",function(l){var c=e.getProps(),v=c.drag,d=c.dragListener,f=d===void 0?!0:d;v&&f&&e.start(l)}),a=function(){var l=e.getProps().dragConstraints;xt(l)&&(e.constraints=e.resolveRefConstraints())},i=this.visualElement.projection,s=i.addEventListener("measure",a);i&&!i.layout&&((r=i.root)===null||r===void 0||r.updateScroll(),i.updateLayout()),a();var u=dt(window,"resize",function(){e.scalePositionWithinConstraints()});return i.addEventListener("didUpdate",function(l){var c=l.delta,v=l.hasLayoutChanged;e.isDragging&&v&&(J(function(d){var f=e.getAxisMotionValue(d);!f||(e.originPoint[d]+=c[d].translate,f.set(f.get()+c[d].translate))}),e.visualElement.syncRender())}),function(){u(),o(),s()}},t.prototype.getProps=function(){var e=this.visualElement.getProps(),r=e.drag,n=r===void 0?!1:r,o=e.dragDirectionLock,a=o===void 0?!1:o,i=e.dragPropagation,s=i===void 0?!1:i,u=e.dragConstraints,l=u===void 0?!1:u,c=e.dragElastic,v=c===void 0?Ar:c,d=e.dragMomentum,f=d===void 0?!0:d;return g(g({},e),{drag:n,dragDirectionLock:a,dragPropagation:s,dragConstraints:l,dragElastic:v,dragMomentum:f})},t}();function Te(t,e,r){return(e===!0||e===t)&&(r===null||r===t)}function Pl(t,e){e===void 0&&(e=10);var r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}function Tl(t){var e=t.dragControls,r=t.visualElement,n=j(function(){return new Sl(r)});m.exports.useEffect(function(){return e&&e.subscribe(n)},[n,e]),m.exports.useEffect(function(){return n.addListeners()},[n])}function Vl(t){var e=t.onPan,r=t.onPanStart,n=t.onPanEnd,o=t.onPanSessionStart,a=t.visualElement,i=e||r||n||o,s=m.exports.useRef(null),u=m.exports.useContext(gt).transformPagePoint,l={onSessionStart:o,onStart:r,onMove:e,onEnd:function(v,d){s.current=null,n&&n(v,d)}};m.exports.useEffect(function(){s.current!==null&&s.current.updateHandlers(l)});function c(v){s.current=new Yo(v,l,{transformPagePoint:u})}Pe(a,"pointerdown",i&&c),yr(function(){return s.current&&s.current.end()})}var ei={pan:st(Vl),drag:st(Tl)},Ve=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];function Cl(){var t=Ve.map(function(){return new Nt}),e={},r={clearAllListeners:function(){return t.forEach(function(n){return n.clear()})},updatePropListeners:function(n){Ve.forEach(function(o){var a,i="on"+o,s=n[i];(a=e[o])===null||a===void 0||a.call(e),s&&(e[o]=r[i](s))})}};return t.forEach(function(n,o){r["on"+Ve[o]]=function(a){return n.add(a)},r["notify"+Ve[o]]=function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];n.notify.apply(n,K([],R(a)))}}),r}function El(t,e,r){var n;for(var o in e){var a=e[o],i=r[o];if(W(a))t.addValue(o,a);else if(W(i))t.addValue(o,Y(a));else if(i!==a)if(t.hasValue(o)){var s=t.getValue(o);!s.hasAnimated&&s.set(a)}else t.addValue(o,Y((n=t.getStaticValue(o))!==null&&n!==void 0?n:a))}for(var o in r)e[o]===void 0&&t.removeValue(o);return e}var Mr=function(t){var e=t.treeType,r=e===void 0?"":e,n=t.build,o=t.getBaseTarget,a=t.makeTargetAnimatable,i=t.measureViewportBox,s=t.render,u=t.readValueFromInstance,l=t.removeValueFromRenderState,c=t.sortNodePosition,v=t.scrapeMotionValuesFromProps;return function(d,f){var p=d.parent,h=d.props,x=d.presenceId,y=d.blockInitialAnimation,b=d.visualState;f===void 0&&(f={});var S=!1,P=b.latestValues,V=b.renderState,A,O=Cl(),w=new Map,M=new Map,F={},_=g({},P),z;function N(){!A||!S||(Z(),s(A,V,h.style,L.projection))}function Z(){n(L,V,P,f,h)}function rt(){O.notifyUpdate(P)}function ut(T,E){var k=E.onChange(function(qt){P[T]=qt,h.onUpdate&&$.update(rt,!1,!0)}),Mt=E.onRenderRequest(L.scheduleRender);M.set(T,function(){k(),Mt()})}var At=v(h);for(var ht in At){var Zt=At[ht];P[ht]!==void 0&&W(Zt)&&Zt.set(P[ht],!1)}var mt=re(h),G=Gr(h),L=g(g({treeType:r,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,presenceId:x,variantChildren:G?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(p==null?void 0:p.isMounted()),blockInitialAnimation:y,isMounted:function(){return Boolean(A)},mount:function(T){S=!0,A=L.current=T,L.projection&&L.projection.mount(T),G&&p&&!mt&&(z=p==null?void 0:p.addVariantChild(L)),p==null||p.children.add(L),L.setProps(h)},unmount:function(){var T;(T=L.projection)===null||T===void 0||T.unmount(),St.update(rt),St.render(N),M.forEach(function(E){return E()}),z==null||z(),p==null||p.children.delete(L),O.clearAllListeners(),A=void 0,S=!1},addVariantChild:function(T){var E,k=L.getClosestVariantNode();if(k)return(E=k.variantChildren)===null||E===void 0||E.add(T),function(){return k.variantChildren.delete(T)}},sortNodePosition:function(T){return!c||r!==T.treeType?0:c(L.getInstance(),T.getInstance())},getClosestVariantNode:function(){return G?L:p==null?void 0:p.getClosestVariantNode()},getLayoutId:function(){return h.layoutId},getInstance:function(){return A},getStaticValue:function(T){return P[T]},setStaticValue:function(T,E){return P[T]=E},getLatestValues:function(){return P},setVisibility:function(T){L.isVisible!==T&&(L.isVisible=T,L.scheduleRender())},makeTargetAnimatable:function(T,E){return E===void 0&&(E=!0),a(L,T,h,E)},measureViewportBox:function(){return i(A,h)},addValue:function(T,E){L.hasValue(T)&&L.removeValue(T),w.set(T,E),P[T]=E.get(),ut(T,E)},removeValue:function(T){var E;w.delete(T),(E=M.get(T))===null||E===void 0||E(),M.delete(T),delete P[T],l(T,V)},hasValue:function(T){return w.has(T)},getValue:function(T,E){var k=w.get(T);return k===void 0&&E!==void 0&&(k=Y(E),L.addValue(T,k)),k},forEachValue:function(T){return w.forEach(T)},readValue:function(T){var E;return(E=P[T])!==null&&E!==void 0?E:u(A,T,f)},setBaseTarget:function(T,E){_[T]=E},getBaseTarget:function(T){if(o){var E=o(h,T);if(E!==void 0&&!W(E))return E}return _[T]}},O),{build:function(){return Z(),V},scheduleRender:function(){$.render(N,!1,!0)},syncRender:N,setProps:function(T){h=T,O.updatePropListeners(T),F=El(L,v(h),F)},getProps:function(){return h},getVariant:function(T){var E;return(E=h.variants)===null||E===void 0?void 0:E[T]},getDefaultTransition:function(){return h.transition},getTransformPagePoint:function(){return h.transformPagePoint},getVariantContext:function(T){if(T===void 0&&(T=!1),T)return p==null?void 0:p.getVariantContext();if(!mt){var E=(p==null?void 0:p.getVariantContext())||{};return h.initial!==void 0&&(E.initial=h.initial),E}for(var k={},Mt=0;Mt<wl;Mt++){var qt=ri[Mt],Ee=h[qt];(X(Ee)||Ee===!1)&&(k[qt]=Ee)}return k}});return L}},ri=K(["initial"],R(Cr)),wl=ri.length;function Rr(t){return typeof t=="string"&&t.startsWith("var(--")}var ni=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Al(t){var e=ni.exec(t);if(!e)return[,];var r=R(e,3),n=r[1],o=r[2];return[n,o]}function Or(t,e,r){var n=R(Al(t),2),o=n[0],a=n[1];if(!!o){var i=window.getComputedStyle(e).getPropertyValue(o);return i?i.trim():Rr(a)?Or(a,e):a}}function Ml(t,e,r){var n,o=U(e,[]),a=t.getInstance();if(!(a instanceof HTMLElement))return{target:o,transitionEnd:r};r&&(r=g({},r)),t.forEachValue(function(l){var c=l.get();if(!!Rr(c)){var v=Or(c,a);v&&l.set(v)}});for(var i in o){var s=o[i];if(!!Rr(s)){var u=Or(s,a);!u||(o[i]=u,r&&((n=r[i])!==null&&n!==void 0||(r[i]=s)))}}return{target:o,transitionEnd:r}}var Rl=new Set(["width","height","top","left","right","bottom","x","y"]),oi=function(t){return Rl.has(t)},Ol=function(t){return Object.keys(t).some(oi)},ii=function(t,e){t.set(e,!1),t.set(e)},ai=function(t){return t===lt||t===C},si;(function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"})(si||(si={}));var ui=function(t,e){return parseFloat(t.split(", ")[e])},li=function(t,e){return function(r,n){var o=n.transform;if(o==="none"||!o)return 0;var a=o.match(/^matrix3d\((.+)\)$/);if(a)return ui(a[1],e);var i=o.match(/^matrix\((.+)\)$/);return i?ui(i[1],t):0}},Ll=new Set(["x","y","z"]),Dl=Kt.filter(function(t){return!Ll.has(t)});function Il(t){var e=[];return Dl.forEach(function(r){var n=t.getValue(r);n!==void 0&&(e.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),e.length&&t.syncRender(),e}var ci={width:function(t,e){var r=t.x,n=e.paddingLeft,o=n===void 0?"0":n,a=e.paddingRight,i=a===void 0?"0":a;return r.max-r.min-parseFloat(o)-parseFloat(i)},height:function(t,e){var r=t.y,n=e.paddingTop,o=n===void 0?"0":n,a=e.paddingBottom,i=a===void 0?"0":a;return r.max-r.min-parseFloat(o)-parseFloat(i)},top:function(t,e){var r=e.top;return parseFloat(r)},left:function(t,e){var r=e.left;return parseFloat(r)},bottom:function(t,e){var r=t.y,n=e.top;return parseFloat(n)+(r.max-r.min)},right:function(t,e){var r=t.x,n=e.left;return parseFloat(n)+(r.max-r.min)},x:li(4,13),y:li(5,14)},Fl=function(t,e,r){var n=e.measureViewportBox(),o=e.getInstance(),a=getComputedStyle(o),i=a.display,s={};i==="none"&&e.setStaticValue("display",t.display||"block"),r.forEach(function(l){s[l]=ci[l](n,a)}),e.syncRender();var u=e.measureViewportBox();return r.forEach(function(l){var c=e.getValue(l);ii(c,s[l]),t[l]=ci[l](u,a)}),t},jl=function(t,e,r,n){r===void 0&&(r={}),n===void 0&&(n={}),e=g({},e),n=g({},n);var o=Object.keys(e).filter(oi),a=[],i=!1,s=[];if(o.forEach(function(l){var c=t.getValue(l);if(!!t.hasValue(l)){var v=r[l],d=Xt(v),f=e[l],p;if(Ht(f)){var h=f.length,x=f[0]===null?1:0;v=f[x],d=Xt(v);for(var y=x;y<h;y++)p?Jt(Xt(f[y])===p):p=Xt(f[y])}else p=Xt(f);if(d!==p)if(ai(d)&&ai(p)){var b=c.get();typeof b=="string"&&c.set(parseFloat(b)),typeof f=="string"?e[l]=parseFloat(f):Array.isArray(f)&&p===C&&(e[l]=f.map(parseFloat))}else(d==null?void 0:d.transform)&&(p==null?void 0:p.transform)&&(v===0||f===0)?v===0?c.set(p.transform(v)):e[l]=d.transform(f):(i||(a=Il(t),i=!0),s.push(l),n[l]=n[l]!==void 0?n[l]:e[l],ii(c,f))}}),s.length){var u=Fl(e,t,s);return a.length&&a.forEach(function(l){var c=R(l,2),v=c[0],d=c[1];t.getValue(v).set(d)}),t.syncRender(),{target:u,transitionEnd:n}}else return{target:e,transitionEnd:n}};function Bl(t,e,r,n){return Ol(e)?jl(t,e,r,n):{target:e,transitionEnd:n}}var _l=function(t,e,r,n){var o=Ml(t,e,n);return e=o.target,n=o.transitionEnd,Bl(t,e,r,n)};function Ul(t){return window.getComputedStyle(t)}var fi={treeType:"dom",readValueFromInstance:function(t,e){if(xe(e)){var r=er(e);return r&&r.default||0}else{var n=Ul(t);return(ho(e)?n.getPropertyValue(e):n[e])||0}},sortNodePosition:function(t,e){return t.compareDocumentPosition(e)&2?1:-1},getBaseTarget:function(t,e){var r;return(r=t.style)===null||r===void 0?void 0:r[e]},measureViewportBox:function(t,e){var r=e.transformPagePoint;return ti(t,r)},resetTransform:function(t,e,r){var n=r.transformTemplate;e.style.transform=n?n({},""):"none",t.scheduleRender()},restoreTransform:function(t,e){t.style.transform=e.style.transform},removeValueFromRenderState:function(t,e){var r=e.vars,n=e.style;delete r[t],delete n[t]},makeTargetAnimatable:function(t,e,r,n){var o=r.transformValues;n===void 0&&(n=!0);var a=e.transition,i=e.transitionEnd,s=U(e,["transition","transitionEnd"]),u=Go(s,a||{},t);if(o&&(i&&(i=o(i)),s&&(s=o(s)),u&&(u=o(u))),n){zo(t,s,u);var l=_l(t,s,u,i);i=l.transitionEnd,s=l.target}return g({transition:a,transitionEnd:i},s)},scrapeMotionValuesFromProps:dr,build:function(t,e,r,n,o){t.isVisible!==void 0&&(e.style.visibility=t.isVisible?"visible":"hidden"),lr(e,r,n,o.transformTemplate)},render:So},Nl=Mr(fi),Hl=Mr(g(g({},fi),{getBaseTarget:function(t,e){return t[e]},readValueFromInstance:function(t,e){var r;return xe(e)?((r=er(e))===null||r===void 0?void 0:r.default)||0:(e=Po.has(e)?e:bo(e),t.getAttribute(e))},scrapeMotionValuesFromProps:Vo,build:function(t,e,r,n,o){fr(e,r,n,o.transformTemplate)},render:To})),Lr=function(t,e){return ur(t)?Hl(e,{enableHardwareAcceleration:!1}):Nl(e,{enableHardwareAcceleration:!0})};function di(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var $t={correct:function(t,e){if(!e.target)return t;if(typeof t=="string")if(C.test(t))t=parseFloat(t);else return t;var r=di(t,e.target.x),n=di(t,e.target.y);return r+"% "+n+"%"}},vi="_$css",zl={correct:function(t,e){var r=e.treeScale,n=e.projectionDelta,o=t,a=t.includes("var("),i=[];a&&(t=t.replace(ni,function(h){return i.push(h),vi}));var s=tt.parse(t);if(s.length>5)return o;var u=tt.createTransformer(t),l=typeof s[0]!="number"?1:0,c=n.x.scale*r.x,v=n.y.scale*r.y;s[0+l]/=c,s[1+l]/=v;var d=I(c,v,.5);typeof s[2+l]=="number"&&(s[2+l]/=d),typeof s[3+l]=="number"&&(s[3+l]/=d);var f=u(s);if(a){var p=0;f=f.replace(vi,function(){var h=i[p];return p++,h})}return f}},Gl=function(t){_r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.componentDidMount=function(){var r=this,n=this.props,o=n.visualElement,a=n.layoutGroup,i=n.switchLayoutGroup,s=n.layoutId,u=o.projection;Cs(Kl),u&&((a==null?void 0:a.group)&&a.group.add(u),(i==null?void 0:i.register)&&s&&i.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",function(){r.safeToRemove()}),u.setOptions(g(g({},u.options),{onExitComplete:function(){return r.safeToRemove()}}))),Yt.hasEverUpdated=!0},e.prototype.getSnapshotBeforeUpdate=function(r){var n=this,o=this.props,a=o.layoutDependency,i=o.visualElement,s=o.drag,u=o.isPresent,l=i.projection;return l&&(l.isPresent=u,s||r.layoutDependency!==a||a===void 0?l.willUpdate():this.safeToRemove(),r.isPresent!==u&&(u?l.promote():l.relegate()||$.postRender(function(){var c;((c=l.getStack())===null||c===void 0?void 0:c.members.length)||n.safeToRemove()}))),null},e.prototype.componentDidUpdate=function(){var r=this.props.visualElement.projection;r&&(r.root.didUpdate(),!r.currentAnimation&&r.isLead()&&this.safeToRemove())},e.prototype.componentWillUnmount=function(){var r=this.props,n=r.visualElement,o=r.layoutGroup,a=r.switchLayoutGroup,i=n.projection;i&&(i.scheduleCheckAfterUnmount(),(o==null?void 0:o.group)&&o.group.remove(i),(a==null?void 0:a.deregister)&&a.deregister(i))},e.prototype.safeToRemove=function(){var r=this.props.safeToRemove;r==null||r()},e.prototype.render=function(){return null},e}(we.Component);function kl(t){var e=R(_o(),2),r=e[0],n=e[1],o=m.exports.useContext(Wt);return we.createElement(Gl,g({},t,{layoutGroup:o,switchLayoutGroup:m.exports.useContext(co),isPresent:r,safeToRemove:n}))}var Kl={borderRadius:g(g({},$t),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:$t,borderTopRightRadius:$t,borderBottomLeftRadius:$t,borderBottomRightRadius:$t,boxShadow:zl},pi={measureLayout:kl},Yl=oo({attachResizeListener:function(t,e){return t.addEventListener("resize",e,{passive:!0}),function(){return t.removeEventListener("resize",e)}},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}}}),pt={current:void 0},Dr=oo({measureScroll:function(t){return{x:t.scrollLeft,y:t.scrollTop}},defaultParent:function(){if(!pt.current){var t=new Yl(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),pt.current=t}return pt.current},resetTransform:function(t,e){t.style.transform=e!=null?e:"none"}}),hi=g(g(g(g({},Ko),Bo),ei),pi),mi=vo(function(t,e){return hr(t,e,hi,Lr,Dr)});function Ec(t){return fo(hr(t,{forwardMotionProps:!1},hi,Lr,Dr))}var wc=vo(hr);function gi(){var t=m.exports.useRef(!1),e=R(m.exports.useState(0),2),r=e[0],n=e[1];return yr(function(){return t.current=!0}),[m.exports.useCallback(function(){!t.current&&n(r+1)},[r]),r]}var yi=0;function Wl(){var t=yi;return yi++,t}var Ir=function(t){var e=t.children,r=t.initial,n=t.isPresent,o=t.onExitComplete,a=t.custom,i=t.presenceAffectsLayout,s=j(Xl),u=j(Wl),l=m.exports.useMemo(function(){return{id:u,initial:r,isPresent:n,custom:a,onExitComplete:function(c){var v,d;s.set(c,!0);try{for(var f=Ri(s.values()),p=f.next();!p.done;p=f.next()){var h=p.value;if(!h)return}}catch(x){v={error:x}}finally{try{p&&!p.done&&(d=f.return)&&d.call(f)}finally{if(v)throw v.error}}o==null||o()},register:function(c){return s.set(c,!1),function(){return s.delete(c)}}}},i?void 0:[n]);return m.exports.useMemo(function(){s.forEach(function(c,v){return s.set(v,!1)})},[n]),m.exports.useEffect(function(){!n&&!s.size&&(o==null||o())},[n]),m.exports.createElement(yt.Provider,{value:l},e)};function Xl(){return new Map}function Ct(t){return t.key||""}function $l(t,e){t.forEach(function(r){var n=Ct(r);e.set(n,r)})}function Zl(t){var e=[];return m.exports.Children.forEach(t,function(r){m.exports.isValidElement(r)&&e.push(r)}),e}var Ac=function(t){var e=t.children,r=t.custom,n=t.initial,o=n===void 0?!0:n,a=t.onExitComplete,i=t.exitBeforeEnter,s=t.presenceAffectsLayout,u=s===void 0?!0:s,l=R(gi(),1),c=l[0],v=m.exports.useContext(Wt).forceRender;v&&(c=v);var d=m.exports.useRef(!0),f=m.exports.useRef(!0);m.exports.useEffect(function(){return function(){f.current=!1}},[]);var p=Zl(e),h=m.exports.useRef(p),x=m.exports.useRef(new Map).current,y=m.exports.useRef(new Set).current;if($l(p,x),d.current)return d.current=!1,m.exports.createElement(m.exports.Fragment,null,p.map(function(w){return m.exports.createElement(Ir,{key:Ct(w),isPresent:!0,initial:o?void 0:!1,presenceAffectsLayout:u},w)}));for(var b=K([],R(p)),S=h.current.map(Ct),P=p.map(Ct),V=S.length,A=0;A<V;A++){var O=S[A];P.indexOf(O)===-1?y.add(O):y.delete(O)}return i&&y.size&&(b=[]),y.forEach(function(w){if(P.indexOf(w)===-1){var M=x.get(w);if(!!M){var F=S.indexOf(w),_=function(){x.delete(w),y.delete(w);var z=h.current.findIndex(function(N){return N.key===w});if(h.current.splice(z,1),!y.size){if(h.current=p,f.current===!1)return;c(),a&&a()}};b.splice(F,0,m.exports.createElement(Ir,{key:Ct(M),isPresent:!1,onExitComplete:_,custom:r,presenceAffectsLayout:u},M))}}}),b=b.map(function(w){var M=w.key;return y.has(M)?w:m.exports.createElement(Ir,{key:Ct(w),isPresent:!0,presenceAffectsLayout:u},w)}),h.current=b,m.exports.createElement(m.exports.Fragment,null,y.size?b:b.map(function(w){return m.exports.cloneElement(w)}))},ql=m.exports.createContext(null),Jl=function(t){return!t.isLayoutDirty&&t.willUpdate(!1)};function xi(){var t=new Set,e=new WeakMap,r=function(){return t.forEach(Jl)};return{add:function(n){t.add(n),e.set(n,n.addEventListener("willUpdate",r))},remove:function(n){var o;t.delete(n),(o=e.get(n))===null||o===void 0||o(),e.delete(n),r()},dirty:r}}var Ql=function(t){var e,r,n=t.children,o=t.id,a=t.inheritId,i=a===void 0?!0:a,s=m.exports.useContext(Wt),u=m.exports.useContext(ql),l=R(gi(),2),c=l[0],v=l[1],d=m.exports.useRef(null),f=(e=s.id)!==null&&e!==void 0?e:u;d.current===null&&(i&&f&&(o=o?f+"-"+o:f),d.current={id:o,group:i&&(r=s==null?void 0:s.group)!==null&&r!==void 0?r:xi()});var p=m.exports.useMemo(function(){return g(g({},d.current),{forceRender:c})},[v]);return m.exports.createElement(Wt.Provider,{value:p},n)},tc=0,Mc=function(t){var e=t.children;return m.exports.createElement(Ql,{id:j(function(){return"asl-"+tc++})},e)};function Rc(t){var e=t.children,r=U(t,["children"]);r=g(g({},m.exports.useContext(gt)),r),r.isStatic=j(function(){return r.isStatic});var n=typeof r.transition=="object"?r.transition.toString():"",o=m.exports.useMemo(function(){return r},[n,r.transformPagePoint]);return m.exports.createElement(gt.Provider,{value:o},e)}function Oc(t){var e=t.children,r=t.features,n=t.strict,o=n===void 0?!1:n,a=R(m.exports.useState(!Fr(r)),2),i=a[1],s=m.exports.useRef(void 0);if(!Fr(r)){var u=r.renderer,l=U(r,["renderer"]);s.current=u,Me(l)}return m.exports.useEffect(function(){Fr(r)&&r().then(function(c){var v=c.renderer,d=U(c,["renderer"]);Me(d),s.current=v,i(!0)})},[]),m.exports.createElement(Re.Provider,{value:{renderer:s.current,strict:o}},e)}function Fr(t){return typeof t=="function"}var bi=m.exports.createContext(null);function ec(t,e,r,n){if(!n)return t;var o=t.findIndex(function(c){return c.value===e});if(o===-1)return t;var a=n>0?1:-1,i=t[o+a];if(!i)return t;var s=t[o],u=i.layout,l=I(u.min,u.max,.5);return a===1&&s.layout.max+r>l||a===-1&&s.layout.min+r<l?Ja(t,o,o+a):t}function rc(t,e){var r=t.children,n=t.as,o=n===void 0?"ul":n,a=t.axis,i=a===void 0?"y":a,s=t.onReorder,u=t.values,l=U(t,["children","as","axis","onReorder","values"]),c=j(function(){return mi(o)}),v=[],d=m.exports.useRef(!1),f={axis:i,registerItem:function(p,h){h&&v.findIndex(function(x){return p===x.value})===-1&&(v.push({value:p,layout:h[i]}),v.sort(ic))},updateOrder:function(p,h,x){if(!d.current){var y=ec(v,p,h,x);v!==y&&(d.current=!0,s(y.map(oc).filter(function(b){return u.indexOf(b)!==-1})))}}};return m.exports.useEffect(function(){d.current=!1}),m.exports.createElement(c,g({},l,{ref:e}),m.exports.createElement(bi.Provider,{value:f},r))}var nc=m.exports.forwardRef(rc);function oc(t){return t.value}function ic(t,e){return t.layout.min-e.layout.min}function Et(t){var e=j(function(){return Y(t)}),r=m.exports.useContext(gt).isStatic;if(r){var n=R(m.exports.useState(t),2),o=n[1];m.exports.useEffect(function(){return e.onChange(o)},[])}return e}var ac=function(t){return typeof t=="object"&&t.mix},sc=function(t){return ac(t)?t.mix:void 0};function uc(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=!Array.isArray(t[0]),n=r?0:-1,o=t[0+n],a=t[1+n],i=t[2+n],s=t[3+n],u=ke(a,i,g({mixer:sc(i[0])},s));return r?u(o):u}function Si(t,e){m.exports.useEffect(function(){if(W(t))return t.onChange(e)},[e])}function lc(t,e){m.exports.useEffect(function(){var r=t.map(function(n){return n.onChange(e)});return function(){return r.forEach(function(n){return n()})}})}function Pi(t,e){var r=Et(e()),n=function(){return r.set(e())};return n(),lc(t,function(){return $.update(n,!1,!0)}),r}function jr(t,e,r,n){var o=typeof e=="function"?e:uc(e,r,n);return Array.isArray(t)?Ti(t,o):Ti([t],function(a){var i=R(a,1),s=i[0];return o(s)})}function Ti(t,e){var r=j(function(){return[]});return Pi(t,function(){r.length=0;for(var n=t.length,o=0;o<n;o++)r[o]=t[o].get();return e(r)})}function Vi(t,e){return e===void 0&&(e=0),W(t)?t:Et(e)}function cc(t,e){var r=t.children,n=t.style,o=t.value,a=t.as,i=a===void 0?"li":a,s=U(t,["children","style","value","as"]),u=j(function(){return mi(i)}),l=m.exports.useContext(bi),c={x:Vi(n==null?void 0:n.x),y:Vi(n==null?void 0:n.y)},v=jr([c.x,c.y],function(y){var b=R(y,2),S=b[0],P=b[1];return S||P?1:0}),d=m.exports.useRef(null),f=l,p=f.axis,h=f.registerItem,x=f.updateOrder;return m.exports.useEffect(function(){h(o,d.current)},[l]),m.exports.createElement(u,g({drag:p},s,{dragSnapToOrigin:!0,style:g(g({},n),{x:c.x,y:c.y,zIndex:v}),layout:!0,onDrag:function(y,b){var S=b.velocity;S[p]&&x(o,c[p].get(),S[p])},onLayoutMeasure:function(y){d.current=y},ref:e}),r)}var fc=m.exports.forwardRef(cc),Lc={Group:nc,Item:fc},dc=g(g({renderer:Lr},Ko),Bo),Dc=g(g(g(g({},dc),ei),pi),{projectionNodeConstructor:Dr});function Ic(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=t.length;function o(){for(var a="",i=0;i<n;i++){a+=t[i];var s=e[i];s&&(a+=e[i].get())}return a}return Pi(e,o)}function Fc(t,e){e===void 0&&(e={});var r=m.exports.useContext(gt).isStatic,n=m.exports.useRef(null),o=Et(W(t)?t.get():t);return m.exports.useMemo(function(){return o.attach(function(a,i){return r?i(a):(n.current&&n.current.stop(),n.current=Ze(g(g({from:o.get(),to:a,velocity:o.getVelocity()},e),{onUpdate:i})),o.get())})},Object.values(e)),Si(t,function(a){return o.set(parseFloat(a))}),o}function jc(t){var e=Et(t.getVelocity());return m.exports.useEffect(function(){return t.velocityUpdateSubscribers.add(function(r){e.set(r)})},[t]),e}function Ci(){return{scrollX:Y(0),scrollY:Y(0),scrollXProgress:Y(0),scrollYProgress:Y(0)}}function Ei(t,e,r){r.set(!t||!e?0:t/e)}function wi(t,e){var r=function(){var n=e(),o=n.xOffset,a=n.yOffset,i=n.xMaxOffset,s=n.yMaxOffset;t.scrollX.set(o),t.scrollY.set(a),Ei(o,i,t.scrollXProgress),Ei(a,s,t.scrollYProgress)};return r(),r}var vc=function(t){return function(){return{xOffset:t.scrollLeft,yOffset:t.scrollTop,xMaxOffset:t.scrollWidth-t.offsetWidth,yMaxOffset:t.scrollHeight-t.offsetHeight}}};function Bc(t){var e=j(Ci);return te(function(){var r=t.current;if(!!r){var n=wi(e,vc(r)),o=dt(r,"scroll",n,{passive:!0}),a=dt(r,"resize",n);return function(){o&&o(),a&&a()}}},[]),e}var Ce;function pc(){return{xOffset:window.pageXOffset,yOffset:window.pageYOffset,xMaxOffset:document.body.clientWidth-window.innerWidth,yMaxOffset:document.body.clientHeight-window.innerHeight}}var Ai=!1;function hc(){if(Ai=!0,typeof window!="undefined"){var t=wi(Ce,pc);dt(window,"scroll",t,{passive:!0}),dt(window,"resize",t)}}function _c(){return Ce||(Ce=Ci()),te(function(){!Ai&&hc()},[]),Ce}var wt;function mc(){if(wt=Y(null),typeof window!="undefined")if(window.matchMedia){var t=window.matchMedia("(prefers-reduced-motion)"),e=function(){return wt.set(t.matches)};t.addListener(e),e()}else wt.set(!1)}function Uc(){!wt&&mc();var t=R(m.exports.useState(wt.get()),2),e=t[0],r=t[1];return Si(wt,r),e}function gc(){var t=!1,e=[],r=new Set,n={subscribe:function(o){return r.add(o),function(){return void r.delete(o)}},start:function(o,a){if(t){var i=[];return r.forEach(function(s){i.push(Tr(s,o,{transitionOverride:a}))}),Promise.all(i)}else return new Promise(function(s){e.push({animation:[o,a],resolve:s})})},set:function(o){return r.forEach(function(a){qu(a,o)})},stop:function(){r.forEach(function(o){tl(o)})},mount:function(){return t=!0,e.forEach(function(o){var a=o.animation,i=o.resolve;n.start.apply(n,K([],R(a))).then(i)}),function(){t=!1,n.stop()}}};return n}function Nc(){var t=j(gc);return m.exports.useEffect(t.mount,[]),t}function Hc(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=m.exports.useRef(0),n=R(m.exports.useState(t[r.current]),2),o=n[0],a=n[1];return[o,function(i){r.current=typeof i!="number"?ka(0,t.length,r.current+1):i,a(t[r.current])}]}var yc=function(){function t(){this.componentControls=new Set}return t.prototype.subscribe=function(e){var r=this;return this.componentControls.add(e),function(){return r.componentControls.delete(e)}},t.prototype.start=function(e,r){this.componentControls.forEach(function(n){n.start(e.nativeEvent||e,r)})},t}(),xc=function(){return new yc};function zc(){return j(xc)}function Gc(){return bc}function bc(t){!pt.current||(pt.current.isUpdating=!1,pt.current.blockUpdate(),t==null||t())}function kc(){var t=m.exports.useCallback(function(){var e=pt.current;!e||e.resetTree()},[]);return t}var Br=function(){return{}},Sc=Mr({build:function(){},measureViewportBox:B,resetTransform:function(){},restoreTransform:function(){},removeValueFromRenderState:function(){},render:function(){},scrapeMotionValuesFromProps:Br,readValueFromInstance:function(t,e,r){return r.initialState[e]||0},makeTargetAnimatable:function(t,e){var r=e.transition,n=e.transitionEnd,o=U(e,["transition","transitionEnd"]),a=Go(o,r||{},t);return zo(t,o,a),g({transition:r,transitionEnd:n},o)}}),Pc=pr({scrapeMotionValuesFromProps:Br,createRenderState:Br});function Kc(t){var e=R(m.exports.useState(t),2),r=e[0],n=e[1],o=Pc({},!1),a=j(function(){return Sc({props:{},visualState:o},{initialState:t})});m.exports.useEffect(function(){return a.mount({}),a.unmount()},[]),m.exports.useEffect(function(){a.setProps({onUpdate:function(s){return n(g({},s))}})});var i=j(function(){return function(s){return Tr(a,s)}});return[r,i]}var Tc=1e5,Mi=function(t){return t>.001?1/t:Tc};function Yc(t){var e=Et(1),r=Et(1),n=Nr();t?(e=t.scaleX||e,r=t.scaleY||r):n&&(e=n.getValue("scaleX",1),r=n.getValue("scaleY",1));var o=jr(e,Mi),a=jr(r,Mi);return{scaleX:o,scaleY:a}}export{Ac as AnimatePresence,Mc as AnimateSharedLayout,ql as DeprecatedLayoutGroupContext,yc as DragControls,Ls as FlatTree,Ql as LayoutGroup,Wt as LayoutGroupContext,Oc as LazyMotion,Rc as MotionConfig,gt as MotionConfigContext,ts as MotionValue,yt as PresenceContext,Lc as Reorder,co as SwitchLayoutGroupContext,Cs as addScaleCorrector,ds as animate,Tr as animateVisualElement,gc as animationControls,Ec as createDomMotionComponent,fo as createMotionComponent,dc as domAnimation,Dc as domMax,Se as isValidMotionProp,wc as m,mi as motion,Y as motionValue,be as resolveMotionValue,uc as transform,Nc as useAnimation,Hc as useCycle,Kc as useDeprecatedAnimatedState,Yc as useDeprecatedInvertedScale,mr as useDomEvent,zc as useDragControls,Bc as useElementScroll,Gc as useInstantLayoutTransition,Cc as useIsPresent,Ic as useMotionTemplate,Et as useMotionValue,_o as usePresence,Uc as useReducedMotion,kc as useResetProjection,Fc as useSpring,jr as useTransform,jc as useVelocity,_c as useViewportScroll,Mr as visualElement};
