vendor: 4,308 bytes, line 1
1function Nr(t,e){for(var n=0;n<e.length;n++){const s=e[n];if(typeof s!="string"&&!Array.isArray(s)){for(const i in s)if(i!=="default"&&!(i in t)){const o=Object.getOwnPropertyDescriptor(s,i);o&&Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:()=>s[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}function Ur(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ge={exports:{}},Lt={};var Bn;function $r(){if(Bn)return Lt;Bn=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(s,i,o){var r=null;if(o!==void 0&&(r=""+o),i.key!==void 0&&(r=""+i.key),"key"in i){o={};for(var a in i)a!=="key"&&(o[a]=i[a])}else o=i;return i=o.ref,{$$typeof:t,type:s,key:r,ref:i!==void 0?i:null,props:o}}return Lt.Fragment=e,Lt.jsx=n,Lt.jsxs=n,Lt}var On;function Wr(){return On||(On=1,ge.exports=$r()),ge.exports}var st=Wr(),ve={exports:{}},V={};var _n;function Hr(){if(_n)return V;_n=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),r=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),l=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),h=Symbol.iterator;function p(d){return d===null||typeof d!="object"?null:(d=h&&d[h]||d["@@iterator"],typeof d=="function"?d:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,P={};function T(d,y,M){this.props=d,this.context=y,this.refs=P,this.updater=M||m}T.prototype.isReactComponent={},T.prototype.setState=function(d,y){if(typeof d!="object"&&typeof d!="function"&&d!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,d,y,"setState")},T.prototype.forceUpdate=function(d){this.updater.enqueueForceUpdate(this,d,"forceUpdate")};function w(){}w.prototype=T.prototype;function x(d,y,M){this.props=d,this.context=y,this.refs=P,this.updater=M||m}var b=x.prototype=new w;b.constructor=x,v(b,T.prototype),b.isPureReactComponent=!0;var A=Array.isArray;function L(){}var E={H:null,A:null,T:null,S:null},C=Object.prototype.hasOwnProperty;function D(d,y,M){var R=M.ref;return{$$typeof:t,type:d,key:y,ref:R!==void 0?R:null,props:M}}function N(d,y){return D(d.type,y,d.props)}function Y(d){return typeof d=="object"&&d!==null&&d.$$typeof===t}function pt(d){var y={"=":"=0",":":"=2"};return"$"+d.replace(/[=:]/g,function(M){return y[M]})}var Pt=/\/+/g;function St(d,y){return typeof d=="object"&&d!==null&&d.key!=null?pt(""+d.key):y.toString(36)}function qt(d){switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:switch(typeof d.status=="string"?d.then(L,L):(d.status="pending",d.then(function(y){d.status==="pending"&&(d.status="fulfilled",d.value=y)},function(y){d.status==="pending"&&(d.status="rejected",d.reason=y)})),d.status){case"fulfilled":return d.value;case"rejected":throw d.reason}}throw d}function mt(d,y,M,R,k){var I=typeof d;(I==="undefined"||I==="boolean")&&(d=null);var F=!1;if(d===null)F=!0;else switch(I){case"bigint":case"string":case"number":F=!0;break;case"object":switch(d.$$typeof){case t:case e:F=!0;break;case l:return F=d._init,mt(F(d._payload),y,M,R,k)}}if(F)return k=k(d),F=R===""?"."+St(d,0):R,A(k)?(M="",F!=null&&(M=F.replace(Pt,"$&/")+"/"),mt(k,y,M,"",function(_r){return _r})):k!=null&&(Y(k)&&(k=N(k,M+(k.key==null||d&&d.key===k.key?"":(""+k.key).replace(Pt,"$&/")+"/")+F)),y.push(k)),1;F=0;var nt=R===""?".":R+":";if(A(d))for(var X=0;X<d.length;X++)R=d[X],I=nt+St(R,X),F+=mt(R,y,M,I,k);else if(X=p(d),typeof X=="function")for(d=X.call(d),X=0;!(R=d.next()).done;)R=R.value,I=nt+St(R,X++),F+=mt(R,y,M,I,k);else if(I==="object"){if(typeof d.then=="function")return mt(qt(d),y,M,R,k);throw y=String(d),Error("Objects are not valid as a React child (found: "+(y==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":y)+"). If you meant to render a collection of children, use an array instead.")}return F}function O(d,y,M){if(d==null)return d;var R=[],k=0;
vendor: 31,909 bytes, line 1
1return mt(d,R,"","",function(I){return y.call(M,I,k++)}),R}function z(d){if(d._status===-1){var y=d._result;y=y(),y.then(function(M){(d._status===0||d._status===-1)&&(d._status=1,d._result=M)},function(M){(d._status===0||d._status===-1)&&(d._status=2,d._result=M)}),d._status===-1&&(d._status=0,d._result=y)}if(d._status===1)return d._result.default;throw d._result}var et=typeof reportError=="function"?reportError:function(d){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d),error:d});if(!window.dispatchEvent(y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",d);return}console.error(d)},ut={map:O,forEach:function(d,y,M){O(d,function(){y.apply(this,arguments)},M)},count:function(d){var y=0;return O(d,function(){y++}),y},toArray:function(d){return O(d,function(y){return y})||[]},only:function(d){if(!Y(d))throw Error("React.Children.only expected to receive a single React element child.");return d}};return V.Activity=f,V.Children=ut,V.Component=T,V.Fragment=n,V.Profiler=i,V.PureComponent=x,V.StrictMode=s,V.Suspense=u,V.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=E,V.__COMPILER_RUNTIME={__proto__:null,c:function(d){return E.H.useMemoCache(d)}},V.cache=function(d){return function(){return d.apply(null,arguments)}},V.cacheSignal=function(){return null},V.cloneElement=function(d,y,M){if(d==null)throw Error("The argument must be a React element, but you passed "+d+".");var R=v({},d.props),k=d.key;if(y!=null)for(I in y.key!==void 0&&(k=""+y.key),y)!C.call(y,I)||I==="key"||I==="__self"||I==="__source"||I==="ref"&&y.ref===void 0||(R[I]=y[I]);var I=arguments.length-2;if(I===1)R.children=M;else if(1<I){for(var F=Array(I),nt=0;nt<I;nt++)F[nt]=arguments[nt+2];R.children=F}return D(d.type,k,R)},V.createContext=function(d){return d={$$typeof:r,_currentValue:d,_currentValue2:d,_threadCount:0,Provider:null,Consumer:null},d.Provider=d,d.Consumer={$$typeof:o,_context:d},d},V.createElement=function(d,y,M){var R,k={},I=null;if(y!=null)for(R in y.key!==void 0&&(I=""+y.key),y)C.call(y,R)&&R!=="key"&&R!=="__self"&&R!=="__source"&&(k[R]=y[R]);var F=arguments.length-2;if(F===1)k.children=M;else if(1<F){for(var nt=Array(F),X=0;X<F;X++)nt[X]=arguments[X+2];k.children=nt}if(d&&d.defaultProps)for(R in F=d.defaultProps,F)k[R]===void 0&&(k[R]=F[R]);return D(d,I,k)},V.createRef=function(){return{current:null}},V.forwardRef=function(d){return{$$typeof:a,render:d}},V.isValidElement=Y,V.lazy=function(d){return{$$typeof:l,_payload:{_status:-1,_result:d},_init:z}},V.memo=function(d,y){return{$$typeof:c,type:d,compare:y===void 0?null:y}},V.startTransition=function(d){var y=E.T,M={};E.T=M;try{var R=d(),k=E.S;k!==null&&k(M,R),typeof R=="object"&&R!==null&&typeof R.then=="function"&&R.then(L,et)}catch(I){et(I)}finally{y!==null&&M.types!==null&&(y.types=M.types),E.T=y}},V.unstable_useCacheRefresh=function(){return E.H.useCacheRefresh()},V.use=function(d){return E.H.use(d)},V.useActionState=function(d,y,M){return E.H.useActionState(d,y,M)},V.useCallback=function(d,y){return E.H.useCallback(d,y)},V.useContext=function(d){return E.H.useContext(d)},V.useDebugValue=function(){},V.useDeferredValue=function(d,y){return E.H.useDeferredValue(d,y)},V.useEffect=function(d,y){return E.H.useEffect(d,y)},V.useEffectEvent=function(d){return E.H.useEffectEvent(d)},V.useId=function(){return E.H.useId()},V.useImperativeHandle=function(d,y,M){return E.H.useImperativeHandle(d,y,M)},V.useInsertionEffect=function(d,y){return E.H.useInsertionEffect(d,y)},V.useLayoutEffect=function(d,y){return E.H.useLayoutEffect(d,y)},V.useMemo=function(d,y){return E.H.useMemo(d,y)},V.useOptimistic=function(d,y){return E.H.useOptimistic(d,y)},V.useReducer=function(d,y,M){return E.H.useReducer(d,y,M)},V.useRef=function(d){return E.H.useRef(d)},V.useState=function(d){return E.H.useState(d)},V.useSyncExternalStore=function(d,y,M){return E.H.useSyncExternalStore(d,y,M)},V.useTransition=function(){return E.H.useTransition()},V.version="19.2.3",V}var Nn;function Kr(){return Nn||(Nn=1,ve.exports=Hr()),ve.exports}var g=Kr();const Gr=Ur(g),kc=Nr({__proto__:null,default:Gr},[g]),Nt=g.createContext({});function sn(t){const e=g.useRef(null);return e.current===null&&(e.current=t()),e.current}const si=typeof window<"u",rn=si?g.useLayoutEffect:g.useEffect,de=g.createContext(null);function on(t,e){t.indexOf(e)===-1&&t.push(e)}function an(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const rt=(t,e,n)=>n>e?e:n<t?t:n;let un=()=>{};const at={},ii=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function ri(t){return typeof t=="object"&&t!==null}const oi=t=>/^0[^.\s]+$/u.test(t);function ln(t){let e;return()=>(e===void 0&&(e=t()),e)}const J=t=>t,Yr=(t,e)=>n=>e(t(n)),Gt=(...t)=>t.reduce(Yr),Ut=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class cn{constructor(){this.subscriptions=[]}add(e){return on(this.subscriptions,e),()=>an(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ot=t=>t*1e3,Z=t=>t/1e3;function ai(t,e){return e?t*(1e3/e):0}const ui=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,zr=1e-7,Xr=12;function qr(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=ui(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>zr&&++a<Xr);return r}function Yt(t,e,n,s){if(t===e&&n===s)return J;const i=o=>qr(o,0,1,t,n);return o=>o===0||o===1?o:ui(i(o),e,s)}const li=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ci=t=>e=>1-t(1-e),fi=Yt(.33,1.53,.69,.99),fn=ci(fi),hi=li(fn),di=t=>(t*=2)<1?.5*fn(t):.5*(2-Math.pow(2,-10*(t-1))),hn=t=>1-Math.sin(Math.acos(t)),pi=ci(hn),mi=li(hn),Zr=Yt(.42,0,1,1),Jr=Yt(0,0,.58,1),yi=Yt(.42,0,.58,1),Qr=t=>Array.isArray(t)&&typeof t[0]!="number",gi=t=>Array.isArray(t)&&typeof t[0]=="number",to={linear:J,easeIn:Zr,easeInOut:yi,easeOut:Jr,circIn:hn,circInOut:mi,circOut:pi,backIn:fn,backInOut:hi,backOut:fi,anticipate:di},eo=t=>typeof t=="string",Un=t=>{if(gi(t)){un(t.length===4);const[e,n,s,i]=t;return Yt(e,n,s,i)}else if(eo(t))return to[t];return t},Zt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function no(t,e){let n=new Set,s=new Set,i=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(l){r.has(l)&&(c.schedule(l),t()),l(a)}const c={schedule:(l,f=!1,h=!1)=>{const m=h&&i?n:s;return f&&r.add(l),m.has(l)||m.add(l),l},cancel:l=>{s.delete(l),r.delete(l)},process:l=>{if(a=l,i){o=!0;return}i=!0,[n,s]=[s,n],n.forEach(u),n.clear(),i=!1,o&&(o=!1,c.process(l))}};return c}const so=40;function vi(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=Zt.reduce((x,b)=>(x[b]=no(o),x),{}),{setup:a,read:u,resolveKeyframes:c,preUpdate:l,update:f,preRender:h,render:p,postRender:m}=r,v=()=>{const x=at.useManualTiming?i.timestamp:performance.now();n=!1,at.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(x-i.timestamp,so),1)),i.timestamp=x,i.isProcessing=!0,a.process(i),u.process(i),c.process(i),l.process(i),f.process(i),h.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(v))},P=()=>{n=!0,s=!0,i.isProcessing||t(v)};return{schedule:Zt.reduce((x,b)=>{const A=r[b];return x[b]=(L,E=!1,C=!1)=>(n||P(),A.schedule(L,E,C)),x},{}),cancel:x=>{for(let b=0;b<Zt.length;b++)r[Zt[b]].cancel(x)},state:i,steps:r}}const{schedule:j,cancel:ft,state:W,steps:Te}=vi(typeof requestAnimationFrame<"u"?requestAnimationFrame:J,!0);let ee;function io(){ee=void 0}const K={now:()=>(ee===void 0&&K.set(W.isProcessing||at.useManualTiming?W.timestamp:performance.now()),ee),set:t=>{ee=t,queueMicrotask(io)}},Ti=t=>e=>typeof e=="string"&&e.startsWith(t),xi=Ti("--"),ro=Ti("var(--"),dn=t=>ro(t)?oo.test(t.split("/*")[0].trim()):!1,oo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function $n(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const Rt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},$t={...Rt,transform:t=>rt(0,1,t)},Jt={...Rt,default:1},Ft=t=>Math.round(t*1e5)/1e5,pn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ao(t){return t==null}const uo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,mn=(t,e)=>n=>!!(typeof n=="string"&&uo.test(n)&&n.startsWith(t)||e&&!ao(n)&&Object.prototype.hasOwnProperty.call(n,e)),Pi=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(pn);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},lo=t=>rt(0,255,t),xe={...Rt,transform:t=>Math.round(lo(t))},vt={test:mn("rgb","red"),parse:Pi("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+xe.transform(t)+", "+xe.transform(e)+", "+xe.transform(n)+", "+Ft($t.transform(s))+")"};function co(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const je={test:mn("#"),parse:co,transform:vt.transform},zt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),lt=zt("deg"),it=zt("%"),S=zt("px"),fo=zt("vh"),ho=zt("vw"),Wn={...it,parse:t=>it.parse(t)/100,transform:t=>it.transform(t*100)},wt={test:mn("hsl","hue"),parse:Pi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+it.transform(Ft(e))+", "+it.transform(Ft(n))+", "+Ft($t.transform(s))+")"},U={test:t=>vt.test(t)||je.test(t)||wt.test(t),parse:t=>vt.test(t)?vt.parse(t):wt.test(t)?wt.parse(t):je.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?vt.transform(t):wt.transform(t),getAnimatableNone:t=>{const e=U.parse(t);return e.alpha=0,U.transform(e)}},po=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function mo(t){return isNaN(t)&&typeof t=="string"&&(t.match(pn)?.length||0)+(t.match(po)?.length||0)>0}const Si="number",wi="color",yo="var",go="var(",Hn="${}",vo=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Wt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(vo,u=>(U.test(u)?(s.color.push(o),i.push(wi),n.push(U.parse(u))):u.startsWith(go)?(s.var.push(o),i.push(yo),n.push(u)):(s.number.push(o),i.push(Si),n.push(parseFloat(u))),++o,Hn)).split(Hn);return{values:n,split:a,indexes:s,types:i}}function Ai(t){return Wt(t).values}function Ci(t){const{split:e,types:n}=Wt(t),s=e.length;return i=>{let o="";for(let r=0;r<s;r++)if(o+=e[r],i[r]!==void 0){const a=n[r];a===Si?o+=Ft(i[r]):a===wi?o+=U.transform(i[r]):o+=i[r]}return o}}const To=t=>typeof t=="number"?0:U.test(t)?U.getAnimatableNone(t):t;function xo(t){const e=Ai(t);return Ci(t)(e.map(To))}const ht={test:mo,parse:Ai,createTransformer:Ci,getAnimatableNone:xo};function Pe(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Po({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,u=2*n-a;i=Pe(u,a,t+1/3),o=Pe(u,a,t),r=Pe(u,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function re(t,e){return n=>n>0?e:t}const B=(t,e,n)=>t+(e-t)*n,Se=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},So=[je,vt,wt],wo=t=>So.find(e=>e.test(t));function Kn(t){const e=wo(t);if(!e)return!1;let n=e.parse(t);return e===wt&&(n=Po(n)),n}const Gn=(t,e)=>{const n=Kn(t),s=Kn(e);if(!n||!s)return re(t,e);const i={...n};return o=>(i.red=Se(n.red,s.red,o),i.green=Se(n.green,s.green,o),i.blue=Se(n.blue,s.blue,o),i.alpha=B(n.alpha,s.alpha,o),vt.transform(i))},Fe=new Set(["none","hidden"]);function Ao(t,e){return Fe.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Co(t,e){return n=>B(t,e,n)}function yn(t){return typeof t=="number"?Co:typeof t=="string"?dn(t)?re:U.test(t)?Gn:Vo:Array.isArray(t)?bi:typeof t=="object"?U.test(t)?Gn:bo:re}function bi(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>yn(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function bo(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=yn(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function Eo(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const o=e.types[i],r=t.indexes[o][s[o]],a=t.values[r]??0;n[i]=a,s[o]++}return n}const Vo=(t,e)=>{const n=ht.createTransformer(e),s=Wt(t),i=Wt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Fe.has(t)&&!i.values.length||Fe.has(e)&&!s.values.length?Ao(t,e):Gt(bi(Eo(s,i),i.values),n):re(t,e)};function Ei(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?B(t,e,n):yn(t)(t,e)}const Ro=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>j.update(e,n),stop:()=>ft(e),now:()=>W.isProcessing?W.timestamp:K.now()}},Vi=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)s+=Math.round(t(o/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},oe=2e4;function gn(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<oe;)e+=n,s=t.next(e);return e>=oe?1/0:e}function Mo(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(gn(s),oe);return{type:"keyframes",ease:o=>s.next(i*o).value/e,duration:Z(i)}}const Do=5;function Ri(t,e,n){const s=Math.max(e-Do,0);return ai(n-t(s),e-s)}const _={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},we=.001;function Lo({duration:t=_.duration,bounce:e=_.bounce,velocity:n=_.velocity,mass:s=_.mass}){let i,o,r=1-e;r=rt(_.minDamping,_.maxDamping,r),t=rt(_.minDuration,_.maxDuration,Z(t)),r<1?(i=c=>{const l=c*r,f=l*t,h=l-n,p=Be(c,r),m=Math.exp(-f);return we-h/p*m},o=c=>{const f=c*r*t,h=f*n+n,p=Math.pow(r,2)*Math.pow(c,2)*t,m=Math.exp(-f),v=Be(Math.pow(c,2),r);return(-i(c)+we>0?-1:1)*((h-p)*m)/v}):(i=c=>{const l=Math.exp(-c*t),f=(c-n)*t+1;return-we+l*f},o=c=>{const l=Math.exp(-c*t),f=(n-c)*(t*t);return l*f});const a=5/t,u=Io(i,o,a);if(t=ot(t),isNaN(u))return{stiffness:_.stiffness,damping:_.damping,duration:t};{const c=Math.pow(u,2)*s;return{stiffness:c,damping:r*2*Math.sqrt(s*c),duration:t}}}const ko=12;function Io(t,e,n){let s=n;for(let i=1;i<ko;i++)s=s-t(s)/e(s);return s}function Be(t,e){return t*Math.sqrt(1-e*e)}const jo=["duration","bounce"],Fo=["stiffness","damping","mass"];function Yn(t,e){return e.some(n=>t[n]!==void 0)}function Bo(t){let e={velocity:_.velocity,stiffness:_.stiffness,damping:_.damping,mass:_.mass,isResolvedFromDuration:!1,...t};if(!Yn(t,Fo)&&Yn(t,jo))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*rt(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:_.mass,stiffness:i,damping:o}}else{const n=Lo(t);e={...e,...n,mass:_.mass},e.isResolvedFromDuration=!0}return e}function ae(t=_.visualDuration,e=_.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:u,damping:c,mass:l,duration:f,velocity:h,isResolvedFromDuration:p}=Bo({...n,velocity:-Z(n.velocity||0)}),m=h||0,v=c/(2*Math.sqrt(u*l)),P=r-o,T=Z(Math.sqrt(u/l)),w=Math.abs(P)<5;s||(s=w?_.restSpeed.granular:_.restSpeed.default),i||(i=w?_.restDelta.granular:_.restDelta.default);let x;if(v<1){const A=Be(T,v);x=L=>{const E=Math.exp(-v*T*L);return r-E*((m+v*T*P)/A*Math.sin(A*L)+P*Math.cos(A*L))}}else if(v===1)x=A=>r-Math.exp(-T*A)*(P+(m+T*P)*A);else{const A=T*Math.sqrt(v*v-1);x=L=>{const E=Math.exp(-v*T*L),C=Math.min(A*L,300);return r-E*((m+v*T*P)*Math.sinh(C)+A*P*Math.cosh(C))/A}}const b={calculatedDuration:p&&f||null,next:A=>{const L=x(A);if(p)a.done=A>=f;else{let E=A===0?m:0;v<1&&(E=A===0?ot(m):Ri(x,A,L));const C=Math.abs(E)<=s,D=Math.abs(r-L)<=i;a.done=C&&D}return a.value=a.done?r:L,a},toString:()=>{const A=Math.min(gn(b),oe),L=Vi(E=>b.next(A*E).value,A,30);return A+"ms "+L},toTransition:()=>{}};return b}ae.applyToOptions=t=>{const e=Mo(t,100,ae);return t.ease=e.ease,t.duration=ot(e.duration),t.type="keyframes",t};function Oe({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:u,restDelta:c=.5,restSpeed:l}){const f=t[0],h={done:!1,value:f},p=C=>a!==void 0&&C<a||u!==void 0&&C>u,m=C=>a===void 0?u:u===void 0||Math.abs(a-C)<Math.abs(u-C)?a:u;let v=n*e;const P=f+v,T=r===void 0?P:r(P);T!==P&&(v=T-f);const w=C=>-v*Math.exp(-C/s),x=C=>T+w(C),b=C=>{const D=w(C),N=x(C);h.done=Math.abs(D)<=c,h.value=h.done?T:N};let A,L;const E=C=>{p(h.value)&&(A=C,L=ae({keyframes:[h.value,m(h.value)],velocity:Ri(x,C,h.value),damping:i,stiffness:o,restDelta:c,restSpeed:l}))};return E(0),{calculatedDuration:null,next:C=>{let D=!1;return!L&&A===void 0&&(D=!0,b(C),E(C)),A!==void 0&&C>=A?L.next(C-A):(!D&&b(C),h)}}}function Oo(t,e,n){const s=[],i=n||at.mix||Ei,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const u=Array.isArray(e)?e[r]||J:e;a=Gt(u,a)}s.push(a)}return s}function _o(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(un(o===e.length),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Oo(e,s,i),u=a.length,c=l=>{if(r&&l<t[0])return e[0];let f=0;if(u>1)for(;f<t.length-2&&!(l<t[f+1]);f++);const h=Ut(t[f],t[f+1],l);return a[f](h)};return n?l=>c(rt(t[0],t[o-1],l)):c}function No(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Ut(0,e,s);t.push(B(n,1,i))}}function Uo(t){const e=[0];return No(e,t.length-1),e}function $o(t,e){return t.map(n=>n*e)}function Wo(t,e){return t.map(()=>e||yi).splice(0,t.length-1)}function Bt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Qr(s)?s.map(Un):Un(s),o={done:!1,value:e[0]},r=$o(n&&n.length===e.length?n:Uo(e),t),a=_o(r,e,{ease:Array.isArray(i)?i:Wo(e,i)});return{calculatedDuration:t,next:u=>(o.value=a(u),o.done=u>=t,o)}}const Ho=t=>t!==null;function vn(t,{repeat:e,repeatType:n="loop"},s,i=1){const o=t.filter(Ho),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const Ko={decay:Oe,inertia:Oe,tween:Bt,keyframes:Bt,spring:ae};function Mi(t){typeof t.type=="string"&&(t.type=Ko[t.type])}class Tn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const Go=t=>t/100;class xn extends Tn{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==K.now()&&this.tick(K.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Mi(e);const{type:n=Bt,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const u=n||Bt;u!==Bt&&typeof a[0]!="number"&&(this.mixKeyframes=Gt(Go,Ei(a[0],a[1])),a=[0,100]);const c=u({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=u({...e,keyframes:[...a].reverse(),velocity:-r})),c.calculatedDuration===null&&(c.calculatedDuration=gn(c));const{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=c}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:u}=this;if(this.startTime===null)return s.next(0);const{delay:c=0,keyframes:l,repeat:f,repeatType:h,repeatDelay:p,type:m,onUpdate:v,finalKeyframe:P}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const T=this.currentTime-c*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?T<0:T>i;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let x=this.currentTime,b=s;if(f){const C=Math.min(this.currentTime,i)/a;let D=Math.floor(C),N=C%1;!N&&C>=1&&(N=1),N===1&&D--,D=Math.min(D,f+1),D%2&&(h==="reverse"?(N=1-N,p&&(N-=p/a)):h==="mirror"&&(b=r)),x=rt(0,1,N)*a}const A=w?{done:!1,value:l[0]}:b.next(x);o&&(A.value=o(A.value));let{done:L}=A;!w&&u!==null&&(L=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return E&&m!==Oe&&(A.value=vn(l,this.options,P,this.speed)),v&&v(A.value),E&&this.finish(),A}then(e,n){return this.finished.then(e,n)}get duration(){return Z(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Z(e)}get time(){return Z(this.currentTime)}set time(e){e=ot(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(K.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Z(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Ro,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(K.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function Yo(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const Tt=t=>t*180/Math.PI,_e=t=>{const e=Tt(Math.atan2(t[1],t[0]));return Ne(e)},zo={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:_e,rotateZ:_e,skewX:t=>Tt(Math.atan(t[1])),skewY:t=>Tt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Ne=t=>(t=t%360,t<0&&(t+=360),t),zn=_e,Xn=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),qn=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Xo={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Xn,scaleY:qn,scale:t=>(Xn(t)+qn(t))/2,rotateX:t=>Ne(Tt(Math.atan2(t[6],t[5]))),rotateY:t=>Ne(Tt(Math.atan2(-t[2],t[0]))),rotateZ:zn,rotate:zn,skewX:t=>Tt(Math.atan(t[4])),skewY:t=>Tt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Ue(t){return t.includes("scale")?1:0}function $e(t,e){if(!t||t==="none")return Ue(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=Xo,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=zo,i=a}if(!i)return Ue(e);const o=s[e],r=i[1].split(",").map(Zo);return typeof o=="function"?o(r):r[o]}const qo=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return $e(n,e)};function Zo(t){return parseFloat(t.trim())}const Mt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Dt=new Set(Mt),Zn=t=>t===Rt||t===S,Jo=new Set(["x","y","z"]),Qo=Mt.filter(t=>!Jo.has(t));function ta(t){const e=[];return Qo.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const ct={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>$e(e,"x"),y:(t,{transform:e})=>$e(e,"y")};ct.translateX=ct.x;ct.translateY=ct.y;const xt=new Set;let We=!1,He=!1,Ke=!1;function Di(){if(He){const t=Array.from(xt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=ta(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{s.getValue(o)?.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}He=!1,We=!1,xt.forEach(t=>t.complete(Ke)),xt.clear()}function Li(){xt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(He=!0)})}function ea(){Ke=!0,Li(),Di(),Ke=!1}class Pn{constructor(e,n,s,i,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(xt.add(this),We||(We=!0,j.read(Li),j.resolveKeyframes(Di))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const o=i?.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const a=s.readValue(n,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),i&&o===void 0&&i.set(e[0])}Yo(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),xt.delete(this)}cancel(){this.state==="scheduled"&&(xt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const na=t=>t.startsWith("--");function sa(t,e,n){na(e)?t.style.setProperty(e,n):t.style[e]=n}const ia=ln(()=>window.ScrollTimeline!==void 0),ra={};function oa(t,e){const n=ln(t);return()=>ra[e]??n()}const ki=oa(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),It=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Jn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:It([0,.65,.55,1]),circOut:It([.55,0,1,.45]),backIn:It([.31,.01,.66,-.59]),backOut:It([.33,1.53,.69,.99])};function Ii(t,e){if(t)return typeof t=="function"?ki()?Vi(t,e):"ease-out":gi(t)?It(t):Array.isArray(t)?t.map(n=>Ii(n,e)||Jn.easeOut):Jn[t]}function aa(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:u}={},c=void 0){const l={[e]:n};u&&(l.offset=u);const f=Ii(a,i);Array.isArray(f)&&(l.easing=f);const h={delay:s,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),t.animate(l,h)}function ji(t){return typeof t=="function"&&"applyToOptions"in t}function ua({type:t,...e}){return ji(t)&&ki()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class la extends Tn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:u}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,un(typeof e.type!="string");const c=ua(e);this.animation=aa(n,s,i,c,o),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const l=vn(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(l):sa(n,s,l),this.animation.cancel()}u?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return Z(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Z(e)}get time(){return Z(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ot(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&ia()?(this.animation.timeline=e,J):n(this)}}const Fi={anticipate:di,backInOut:hi,circInOut:mi};function ca(t){return t in Fi}function fa(t){typeof t.ease=="string"&&ca(t.ease)&&(t.ease=Fi[t.ease])}const Ae=10;class ha extends la{constructor(e){fa(e),Mi(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:o,...r}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new xn({...r,autoplay:!1}),u=Math.max(Ae,K.now()-this.startTime),c=rt(0,Ae,u-Ae);n.setWithVelocity(a.sample(Math.max(0,u-c)).value,a.sample(u).value,c),a.stop()}}const Qn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(ht.test(t)||t==="0")&&!t.startsWith("url("));function da(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function pa(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=Qn(i,e),a=Qn(o,e);return!r||!a?!1:da(t)||(n==="spring"||ji(n))&&s}function Ge(t){t.duration=0,t.type="keyframes"}const ma=new Set(["opacity","clipPath","filter","transform"]),ya=ln(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function ga(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:o,type:r}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:c}=e.owner.getProps();return ya()&&n&&ma.has(n)&&(n!=="transform"||!c)&&!u&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const va=40;class Ta extends Tn{constructor({autoplay:e=!0,delay:n=0,type:s="
1keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:u,motionValue:c,element:l,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=K.now();const h={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,name:u,motionValue:c,element:l,...f},p=l?.KeyframeResolver||Pn;this.keyframeResolver=new p(a,(m,v,P)=>this.onKeyframesResolved(m,v,h,!P),u,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:u,isHandoff:c,onUpdate:l}=s;this.resolvedAt=K.now(),pa(e,o,r,a)||((at.instantAnimations||!u)&&l?.(vn(e,s,n)),e[0]=e[e.length-1],Ge(s),s.repeat=0);const h={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>va?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},p=!c&&ga(h),m=h.motionValue?.owner?.current,v=p?new ha({...h,element:m}):new xn(h);v.finished.then(()=>{this.notifyFinished()}).catch(J),this.pendingTimeline&&(this.stopTimeline=v.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=v}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ea()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Bi(t,e,n,s=0,i=1){const o=Array.from(t).sort((c,l)=>c.sortNodePosition(l)).indexOf(e),r=t.size,a=(r-1)*s;return typeof n=="function"?n(o,r):i===1?o*s:a-o*s}const xa=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Pa(t){const e=xa.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function Oi(t,e,n=1){const[s,i]=Pa(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return ii(r)?parseFloat(r):r}return dn(i)?Oi(i,e,n+1):i}const Sa={type:"spring",stiffness:500,damping:25,restSpeed:10},wa=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Aa={type:"keyframes",duration:.8},Ca={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ba=(t,{keyframes:e})=>e.length>2?Aa:Dt.has(t)?t.startsWith("scale")?wa(e[1]):Sa:Ca,Ea=t=>t!==null;function Va(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(Ea),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[o]}function Sn(t,e){return t?.[e]??t?.default??t}function Ra({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:u,elapsed:c,...l}){return!!Object.keys(l).length}const wn=(t,e,n,s={},i,o)=>r=>{const a=Sn(s,t)||{},u=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-ot(u);const l={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:h=>{e.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};Ra(a)||Object.assign(l,ba(t,l)),l.duration&&(l.duration=ot(l.duration)),l.repeatDelay&&(l.repeatDelay=ot(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let f=!1;if((l.type===!1||l.duration===0&&!l.repeatDelay)&&(Ge(l),l.delay===0&&(f=!0)),(at.instantAnimations||at.skipAnimations)&&(f=!0,Ge(l),l.delay=0),l.allowFlatten=!a.type&&!a.ease,f&&!o&&e.get()!==void 0){const h=Va(l.keyframes,a);if(h!==void 0){j.update(()=>{l.onUpdate(h),l.onComplete()});return}}return a.isSync?new xn(l):new Ta(l)};function ts(t){const e=[{},{}];
vendor: 86,759 bytes, lines 1-9
1return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function An(t,e,n,s){if(typeof e=="function"){const[i,o]=ts(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=ts(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function Et(t,e,n){const s=t.getProps();return An(s,e,n!==void 0?n:s.custom,t)}const _i=new Set(["width","height","top","left","right","bottom",...Mt]),es=30,Ma=t=>!isNaN(parseFloat(t));class Da{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=K.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=K.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ma(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new cn);const s=this.events[e].add(n);return e==="change"?()=>{s(),j.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=K.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>es)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,es);return ai(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Vt(t,e){return new Da(t,e)}const Ye=t=>Array.isArray(t);function La(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Vt(n))}function ka(t){return Ye(t)?t[t.length-1]||0:t}function Ia(t,e){const n=Et(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=ka(o[r]);La(t,r,a)}}const H=t=>!!(t&&t.getVelocity);function ja(t){return!!(H(t)&&t.add)}function ze(t,e){const n=t.getValue("willChange");if(ja(n))return n.add(e);if(!n&&at.WillChange){const s=new at.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function Cn(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const Fa="framerAppearId",Ni="data-"+Cn(Fa);function Ui(t){return t.props[Ni]}function Ba({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function $i(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:r,...a}=e;s&&(o=s);const u=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const l in a){const f=t.getValue(l,t.latestValues[l]??null),h=a[l];if(h===void 0||c&&Ba(c,l))continue;const p={delay:n,...Sn(o||{},l)},m=f.get();if(m!==void 0&&!f.isAnimating&&!Array.isArray(h)&&h===m&&!p.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const T=Ui(t);if(T){const w=window.MotionHandoffAnimation(T,l,j);w!==null&&(p.startTime=w,v=!0)}}ze(t,l),f.start(wn(l,f,h,t.shouldReduceMotion&&_i.has(l)?{type:!1}:p,t,v));const P=f.animation;P&&u.push(P)}return r&&Promise.all(u).then(()=>{j.update(()=>{r&&Ia(t,r)})}),u}function Xe(t,e,n={}){const s=Et(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all($i(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:l,staggerDirection:f}=i;return Oa(t,e,u,c,l,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,c]=a==="beforeChildren"?[o,r]:[r,o];return u().then(()=>c())}else return Promise.all([o(),r(n.delay)])}function Oa(t,e,n=0,s=0,i=0,o=1,r){const a=[];for(const u of t.variantChildren)u.notify("AnimationStart",e),a.push(Xe(u,e,{...r,delay:n+(typeof s=="function"?0:s)+Bi(t.variantChildren,u,s,i,o)}).then(()=>u.notify("AnimationComplete",e)));return Promise.all(a)}function _a(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>Xe(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=Xe(t,e,n);else{const i=typeof e=="function"?Et(t,e,n.custom):e;s=Promise.all($i(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Na={test:t=>t==="auto",parse:t=>t},Wi=t=>e=>e.test(t),Hi=[Rt,S,it,lt,ho,fo,Na],ns=t=>Hi.find(Wi(t));function Ua(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||oi(t):!0}const $a=new Set(["brightness","contrast","saturate","opacity"]);function Wa(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(pn)||[];if(!s)return t;const i=n.replace(s,"");let o=$a.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const Ha=/\b([a-z-]*)\(.*?\)/gu,qe={...ht,getAnimatableNone:t=>{const e=t.match(Ha);return e?e.map(Wa).join(" "):t}},ss={...Rt,transform:Math.round},Ka={rotate:lt,rotateX:lt,rotateY:lt,rotateZ:lt,scale:Jt,scaleX:Jt,scaleY:Jt,scaleZ:Jt,skew:lt,skewX:lt,skewY:lt,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:$t,originX:Wn,originY:Wn,originZ:S},bn={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,inset:S,insetBlock:S,insetBlockStart:S,insetBlockEnd:S,insetInline:S,insetInlineStart:S,insetInlineEnd:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,paddingBlock:S,paddingBlockStart:S,paddingBlockEnd:S,paddingInline:S,paddingInlineStart:S,paddingInlineEnd:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,marginBlock:S,marginBlockStart:S,marginBlockEnd:S,marginInline:S,marginInlineStart:S,marginInlineEnd:S,fontSize:S,backgroundPositionX:S,backgroundPositionY:S,...Ka,zIndex:ss,fillOpacity:$t,strokeOpacity:$t,numOctaves:ss},Ga={...bn,color:U,backgroundColor:U,outlineColor:U,fill:U,stroke:U,borderColor:U,borderTopColor:U,borderRightColor:U,borderBottomColor:U,borderLeftColor:U,filter:qe,WebkitFilter:qe},Ki=t=>Ga[t];function Gi(t,e){let n=Ki(t);return n!==qe&&(n=ht),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Ya=new Set(["auto","none","0"]);function za(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!Ya.has(o)&&Wt(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=Gi(n,i)}class Xa extends Pn{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let f=e[l];if(typeof f=="string"&&(f=f.trim(),dn(f))){const h=Oi(f,n.current);h!==void 0&&(e[l]=h),l===e.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!_i.has(s)||e.length!==2)return;const[i,o]=e,r=ns(i),a=ns(o),u=$n(i),c=$n(o);if(u!==c&&ct[s]){this.needsMeasurement=!0;return}if(r!==a)if(Zn(r)&&Zn(a))for(let l=0;l<e.length;l++){const f=e[l];typeof f=="string"&&(e[l]=parseFloat(f))}else ct[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||Ua(e[i]))&&s.push(i);s.length&&za(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ct[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,r=s[o];s[o]=ct[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,u])=>{e.getValue(a).set(u)}),this.resolveNoneKeyframes()}}function qa(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=n?.[t]??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(s=>s!=null)}const Yi=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Ze(t){return ri(t)&&"offsetHeight"in t}const{schedule:En}=vi(queueMicrotask,!1),tt={x:!1,y:!1};function zi(){return tt.x||tt.y}function Za(t){return t==="x"||t==="y"?tt[t]?null:(tt[t]=!0,()=>{tt[t]=!1}):tt.x||tt.y?null:(tt.x=tt.y=!0,()=>{tt.x=tt.y=!1})}function Xi(t,e){const n=qa(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function is(t){return!(t.pointerType==="touch"||zi())}function Ja(t,e,n={}){const[s,i,o]=Xi(t,n),r=a=>{if(!is(a))return;const{target:u}=a,c=e(u,a);if(typeof c!="function"||!u)return;const l=f=>{is(f)&&(c(f),u.removeEventListener("pointerleave",l))};u.addEventListener("pointerleave",l,i)};return s.forEach(a=>{a.addEventListener("pointerenter",r,i)}),o}const qi=(t,e)=>e?t===e?!0:qi(t,e.parentElement):!1,Vn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Qa=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Zi(t){return Qa.has(t.tagName)||t.isContentEditable===!0}const ne=new WeakSet;function rs(t){return e=>{e.key==="Enter"&&t(e)}}function Ce(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const tu=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=rs(()=>{if(ne.has(n))return;Ce(n,"down");const i=rs(()=>{Ce(n,"up")}),o=()=>Ce(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function os(t){return Vn(t)&&!zi()}function eu(t,e,n={}){const[s,i,o]=Xi(t,n),r=a=>{const u=a.currentTarget;if(!os(a))return;ne.add(u);const c=e(u,a),l=(p,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),ne.has(u)&&ne.delete(u),os(p)&&typeof c=="function"&&c(p,{success:m})},f=p=>{l(p,u===window||u===document||n.useGlobalTarget||qi(u,p.target))},h=p=>{l(p,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",h,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),Ze(a)&&(a.addEventListener("focus",c=>tu(c,i)),!Zi(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function Ji(t){return ri(t)&&"ownerSVGElement"in t}function nu(t){return Ji(t)&&t.tagName==="svg"}const su=[...Hi,U,ht],iu=t=>su.find(Wi(t)),as=()=>({translate:0,scale:1,origin:0,originPoint:0}),At=()=>({x:as(),y:as()}),us=()=>({min:0,max:0}),$=()=>({x:us(),y:us()}),ue={current:null},Rn={current:!1},ru=typeof window<"u";function Qi(){if(Rn.current=!0,!!ru)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ue.current=t.matches;t.addEventListener("change",e),e()}else ue.current=!1}const ou=new WeakMap;function pe(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Ht(t){return typeof t=="string"||Array.isArray(t)}const Mn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Dn=["initial",...Mn];function me(t){return pe(t.animate)||Dn.some(e=>Ht(t[e]))}function tr(t){return!!(me(t)||t.variants)}function au(t,e,n){for(const s in e){const i=e[s],o=n[s];if(H(i))t.addValue(s,i);else if(H(o))t.addValue(s,Vt(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,Vt(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const ls=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let le={};function er(t){le=t}function uu(){return le}class lu{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:o,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Pn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=K.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,j.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=r;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=me(n),this.isVariantNode=tr(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:l,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const p=f[h];u[h]!==void 0&&H(p)&&p.set(u[h])}}mount(e){this.current=e,ou.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Rn.current||Qi(),this.shouldReduceMotion=ue.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),ft(this.notifyUpdate),ft(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=Dt.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&j.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in le){const n=le[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<ls.length;s++){const i=ls[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=au(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=Vt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(ii(s)||oi(s))?s=parseFloat(s):!iu(s)&&ht.test(n)&&(s=Gi(e,n)),this.setBaseTarget(e,H(s)?s.get():s)),H(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const o=An(this.props,n,this.presenceContext?.custom);o&&(s=o[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!H(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new cn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){En.render(this.render)}}class nr extends lu{constructor(){super(...arguments),this.KeyframeResolver=Xa}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const s=e.style;return s?s[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;H(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class dt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function sr({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function cu({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function fu(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function be(t){return t===void 0||t===1}function Je({scale:t,scaleX:e,scaleY:n}){return!be(t)||!be(e)||!be(n)}function gt(t){return Je(t)||ir(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ir(t){return cs(t.x)||cs(t.y)}function cs(t){return t&&t!=="0%"}function ce(t,e,n){const s=t-n,i=e*s;return n+i}function fs(t,e,n,s,i){return i!==void 0&&(t=ce(t,i,s)),ce(t,n,s)+e}function Qe(t,e=0,n=1,s,i){t.min=fs(t.min,e,n,s,i),t.max=fs(t.max,e,n,s,i)}function rr(t,{x:e,y:n}){Qe(t.x,e.translate,e.scale,e.originPoint),Qe(t.y,n.translate,n.scale,n.originPoint)}const hs=.999999999999,ds=1.0000000000001;function hu(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&bt(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,rr(t,r)),s&>(o.latestValues)&&bt(t,o.latestValues))}e.x<ds&&e.x>hs&&(e.x=1),e.y<ds&&e.y>hs&&(e.y=1)}function Ct(t,e){t.min=t.min+e,t.max=t.max+e}function ps(t,e,n,s,i=.5){const o=B(t.min,t.max,i);Qe(t,e,n,o,s)}function bt(t,e){ps(t.x,e.x,e.scaleX,e.scale,e.originX),ps(t.y,e.y,e.scaleY,e.scale,e.originY)}function or(t,e){return sr(fu(t.getBoundingClientRect(),e))}function du(t,e,n){const s=or(t,n),{scroll:i}=e;return i&&(Ct(s.x,i.offset.x),Ct(s.y,i.offset.y)),s}const pu={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},mu=Mt.length;function yu(t,e,n){let s="",i=!0;for(let o=0;o<mu;o++){const r=Mt[o],a=t[r];if(a===void 0)continue;let u=!0;if(typeof a=="number")u=a===(r.startsWith("scale")?1:0);else{const c=parseFloat(a);u=r.startsWith("scale")?c===1:c===0}if(!u||n){const c=Yi(a,bn[r]);if(!u){i=!1;const l=pu[r]||r;s+=`${l}(${c}) `}n&&(e[r]=c)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function Ln(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const u in e){const c=e[u];if(Dt.has(u)){r=!0;continue}else if(xi(u)){i[u]=c;continue}else{const l=Yi(c,bn[u]);u.startsWith("origin")?(a=!0,o[u]=l):s[u]=l}}if(e.transform||(r||n?s.transform=yu(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:u="50%",originY:c="50%",originZ:l=0}=o;s.transformOrigin=`${u} ${c} ${l}`}}function ar(t,{style:e,vars:n},s,i){const o=t.style;let r;for(r in e)o[r]=e[r];i?.applyProjectionStyles(o,s);for(r in n)o.setProperty(r,n[r])}function ms(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const kt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(S.test(t))t=parseFloat(t);else return t;const n=ms(t,e.target.x),s=ms(t,e.target.y);return`${n}% ${s}%`}},gu={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=ht.parse(t);if(i.length>5)return s;const o=ht.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,u=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=u;const c=B(a,u,.5);return typeof i[2+r]=="number"&&(i[2+r]/=c),typeof i[3+r]=="number"&&(i[3+r]/=c),o(i)}},tn={borderRadius:{...kt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:kt,borderTopRightRadius:kt,borderBottomLeftRadius:kt,borderBottomRightRadius:kt,boxShadow:gu};function ur(t,{layout:e,layoutId:n}){return Dt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!tn[t]||t==="opacity")}function kn(t,e,n){const s=t.style,i=e?.style,o={};if(!s)return o;for(const r in s)(H(s[r])||i&&H(i[r])||ur(r,t)||n?.getValue(r)?.liveStyle!==void 0)&&(o[r]=s[r]);return o}function vu(t){return window.getComputedStyle(t)}class Tu extends nr{constructor(){super(...arguments),this.type="html",this.renderInstance=ar}readValueFromInstance(e,n){if(Dt.has(n))return this.projection?.isProjecting?Ue(n):qo(e,n);{const s=vu(e),i=(xi(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return or(e,n)}build(e,n,s){Ln(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return kn(e,n,s)}}const xu={offset:"stroke-dashoffset",array:"stroke-dasharray"},Pu={offset:"strokeDashoffset",array:"strokeDasharray"};function Su(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?xu:Pu;t[o.offset]=`${-s}`,t[o.array]=`${e} ${n}`}const wu=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function lr(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:r=0,...a},u,c,l){if(Ln(t,a,c),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:h}=t;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=l?.transformBox??"fill-box",delete f.transformBox);for(const p of wu)f[p]!==void 0&&(h[p]=f[p],delete f[p]);e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),s!==void 0&&(f.scale=s),i!==void 0&&Su(f,i,o,r,!1)}const cr=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),fr=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Au(t,e,n,s){ar(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(cr.has(i)?i:Cn(i),e.attrs[i])}function hr(t,e,n){const s=kn(t,e,n);for(const i in t)if(H(t[i])||H(e[i])){const o=Mt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}class Cu extends nr{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Dt.has(n)){const s=Ki(n);return s&&s.default||0}return n=cr.has(n)?n:Cn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return hr(e,n,s)}build(e,n,s){lr(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){Au(e,n,s,i)}mount(e){this.isSVGTag=fr(e.tagName),super.mount(e)}}const bu=Dn.length;function dr(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?dr(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<bu;n++){const s=Dn[n],i=t.props[s];(Ht(i)||i===!1)&&(e[s]=i)}return e}function pr(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const Eu=[...Mn].reverse(),Vu=Mn.length;function Ru(t){return e=>Promise.all(e.map(({animation:n,options:s})=>_a(t,n,s)))}function Mu(t){let e=Ru(t),n=ys(),s=!0;const i=u=>(c,l)=>{const f=Et(t,l,u==="exit"?t.presenceContext?.custom:void 0);if(f){const{transition:h,transitionEnd:p,...m}=f;c={...c,...m,...p}}return c};function o(u){e=u(t)}function r(u){const{props:c}=t,l=dr(t.parent)||{},f=[],h=new Set;let p={},m=1/0;for(let P=0;P<Vu;P++){const T=Eu[P],w=n[T],x=c[T]!==void 0?c[T]:l[T],b=Ht(x),A=T===u?w.isActive:null;A===!1&&(m=P);let L=x===l[T]&&x!==c[T]&&b;if(L&&s&&t.manuallyAnimateOnMount&&(L=!1),w.protectedKeys={...p},!w.isActive&&A===null||!x&&!w.prevProp||pe(x)||typeof x=="boolean")continue;const E=Du(w.prevProp,x);let C=E||T===u&&w.isActive&&!L&&b||P>m&&b,D=!1;const N=Array.isArray(x)?x:[x];let Y=N.reduce(i(T),{});A===!1&&(Y={});const{prevResolvedValues:pt={}}=w,Pt={...pt,...Y},St=O=>{C=!0,h.has(O)&&(D=!0,h.delete(O)),w.needsAnimating[O]=!0;const z=t.getValue(O);z&&(z.liveStyle=!1)};for(const O in Pt){const z=Y[O],et=pt[O];if(p.hasOwnProperty(O))continue;let ut=!1;Ye(z)&&Ye(et)?ut=!pr(z,et):ut=z!==et,ut?z!=null?St(O):h.add(O):z!==void 0&&h.has(O)?St(O):w.protectedKeys[O]=!0}w.prevProp=x,w.prevResolvedValues=Y,w.isActive&&(p={...p,...Y}),s&&t.blockInitialAnimation&&(C=!1);const qt=L&&E;C&&(!qt||D)&&f.push(...N.map(O=>{const z={type:T};if(typeof O=="string"&&s&&!qt&&t.manuallyAnimateOnMount&&t.parent){const{parent:et}=t,ut=Et(et,O);if(et.enteringChildren&&ut){const{delayChildren:d}=ut.transition||{};z.delay=Bi(et.enteringChildren,t,d)}}return{animation:O,options:z}}))}if(h.size){const P={};if(typeof c.initial!="boolean"){const T=Et(t,Array.isArray(c.initial)?c.initial[0]:c.initial);T&&T.transition&&(P.transition=T.transition)}h.forEach(T=>{const w=t.getBaseTarget(T),x=t.getValue(T);x&&(x.liveStyle=!0),P[T]=w??null}),f.push({animation:P})}let v=!!f.length;return s&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(v=!1),s=!1,v?e(f):Promise.resolve()}function a(u,c){if(n[u].isActive===c)return Promise.resolve();t.variantChildren?.forEach(f=>f.animationState?.setActive(u,c)),n[u].isActive=c;const l=r(u);for(const f in n)n[f].protectedKeys={};return l}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=ys()}}}function Du(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!pr(e,t):!1}function yt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ys(){return{animate:yt(!0),whileInView:yt(),whileHover:yt(),whileTap:yt(),whileDrag:yt(),whileFocus:yt(),exit:yt()}}function gs(t,e){t.min=e.min,t.max=e.max}function Q(t,e){gs(t.x,e.x),gs(t.y,e.y)}function vs(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const mr=1e-4,Lu=1-mr,ku=1+mr,yr=.01,Iu=0-yr,ju=0+yr;function G(t){return t.max-t.min}function Fu(t,e,n){return Math.abs(t-e)<=n}function Ts(t,e,n,s=.5){t.origin=s,t.originPoint=B(e.min,e.max,t.origin),t.scale=G(n)/G(e),t.translate=B(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Lu&&t.scale<=ku||isNaN(t.scale))&&(t.scale=1),(t.translate>=Iu&&t.translate<=ju||isNaN(t.translate))&&(t.translate=0)}function Ot(t,e,n,s){Ts(t.x,e.x,n.x,s?s.originX:void 0),Ts(t.y,e.y,n.y,s?s.originY:void 0)}function xs(t,e,n){t.min=n.min+e.min,t.max=t.min+G(e)}function Bu(t,e,n){xs(t.x,e.x,n.x),xs(t.y,e.y,n.y)}function Ps(t,e,n){t.min=e.min-n.min,t.max=t.min+G(e)}function fe(t,e,n){Ps(t.x,e.x,n.x),Ps(t.y,e.y,n.y)}function Ss(t,e,n,s,i){return t-=e,t=ce(t,1/n,s),i!==void 0&&(t=ce(t,1/i,s)),t}function Ou(t,e=0,n=1,s=.5,i,o=t,r=t){if(it.test(e)&&(e=parseFloat(e),e=B(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=B(o.min,o.max,s);t===o&&(a-=e),t.min=Ss(t.min,e,n,a,i),t.max=Ss(t.max,e,n,a,i)}function ws(t,e,[n,s,i],o,r){Ou(t,e[n],e[s],e[i],e.scale,o,r)}const _u=["x","scaleX","originX"],Nu=["y","scaleY","originY"];function As(t,e,n,s){ws(t.x,e,_u,n?n.x:void 0,s?s.x:void 0),ws(t.y,e,Nu,n?n.y:void 0,s?s.y:void 0)}function Cs(t){return t.translate===0&&t.scale===1}function gr(t){return Cs(t.x)&&Cs(t.y)}function bs(t,e){return t.min===e.min&&t.max===e.max}function Uu(t,e){return bs(t.x,e.x)&&bs(t.y,e.y)}function Es(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function vr(t,e){return Es(t.x,e.x)&&Es(t.y,e.y)}function Vs(t){return G(t.x)/G(t.y)}function Rs(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function q(t){return[t("x"),t("y")]}function $u(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=n?.z||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:l,rotateX:f,rotateY:h,skewX:p,skewY:m}=n;c&&(s=`perspective(${c}px) ${s}`),l&&(s+=`rotate(${l}deg) `),f&&(s+=`rotateX(${f}deg) `),h&&(s+=`rotateY(${h}deg) `),p&&(s+=`skewX(${p}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,u=t.y.scale*e.y;return(a!==1||u!==1)&&(s+=`scale(${a}, ${u})`),s||"none"}const Tr=["TopLeft","TopRight","BottomLeft","BottomRight"],Wu=Tr.length,Ms=t=>typeof t=="string"?parseFloat(t):t,Ds=t=>typeof t=="number"||S.test(t);function Hu(t,e,n,s,i,o){i?(t.opacity=B(0,n.opacity??1,Ku(s)),t.opacityExit=B(e.opacity??1,0,Gu(s))):o&&(t.opacity=B(e.opacity??1,n.opacity??1,s));for(let r=0;r<Wu;r++){const a=`border${Tr[r]}Radius`;let u=Ls(e,a),c=Ls(n,a);if(u===void 0&&c===void 0)continue;u||(u=0),c||(c=0),u===0||c===0||Ds(u)===Ds(c)?(t[a]=Math.max(B(Ms(u),Ms(c),s),0),(it.test(c)||it.test(u))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=B(e.rotate||0,n.rotate||0,s))}function Ls(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Ku=xr(0,.5,pi),Gu=xr(.5,.95,J);function xr(t,e,n){return s=>s<t?0:s>e?1:n(Ut(t,e,s))}function Yu(t,e,n){const s=H(t)?t:Vt(t);return s.start(wn("",s,e,n)),s.animation}function Kt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const zu=(t,e)=>t.depth-e.depth;class Xu{constructor(){this.children=[],this.isDirty=!1}add(e){on(this.children,e),this.isDirty=!0}remove(e){an(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(zu),this.isDirty=!1,this.children.forEach(e)}}function qu(t,e){const n=K.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(ft(s),t(o-e))};return j.setup(s,!0),()=>ft(s)}function se(t){return H(t)?t.get():t}class Zu{constructor(){this.members=[]}add(e){on(this.members,e),e.scheduleRender()}remove(e){if(an(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){s=o;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender();const i=s.options.layoutDependency,o=e.options.layoutDependency;i!==void 0&&o!==void 0&&i===o||(e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0));const{crossfade:a}=e.options;a===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const ie={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ee=["","X","Y","Z"],Ju=1e3;let Qu=0;function Ve(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Pr(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Ui(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",j,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Pr(s)}function Sr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e?.()){this.id=Qu++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(nl),this.nodes.forEach(ol),this.nodes.forEach(al),this.nodes.forEach(sl)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new Xu)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new cn),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const u=this.eventHandlers.get(r);u&&u.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=Ji(r)&&!nu(r),this.instance=r;const{layoutId:a,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||a)&&(this.isLayoutDirty=!0),t){let l,f=0;const h=()=>this.root.updateBlockedByResize=!1;j.read(()=>{f=window.innerWidth}),t(r,()=>{const p=window.innerWidth;p!==f&&(f=p,this.root.updateBlockedByResize=!0,l&&l(),l=qu(h,250),ie.hasAnimatedSinceResize&&(ie.hasAnimatedSinceResize=!1,this.nodes.forEach(js)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||u)&&this.addEventListener("didUpdate",({delta:l,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||hl,{onLayoutAnimationStart:v,onLayoutAnimationComplete:P}=c.getProps(),T=!this.targetLayout||!vr(this.targetLayout,p),w=!f&&h;if(this.options.layoutRoot||this.resumeFrom||w||f&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...Sn(m,"layout"),onPlay:v,onComplete:P};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(l,w)}else f||js(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ft(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ul),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Pr(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let l=0;l<this.path.length;l++){const f=this.path[l];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:u}=this.options;if(a===void 0&&!u)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ks);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Is);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(rl),this.nodes.forEach(tl),this.nodes.forEach(el)):this.nodes.forEach(Is),this.clearAllSnapshots();const a=K.now();W.delta=rt(0,1e3/60,a-W.timestamp),W.timestamp=a,W.isProcessing=!0,Te.update.process(W),Te.preRender.process(W),Te.render.process(W),W.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,En.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(il),this.sharedNodes.forEach(ll)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,j.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){j.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!G(this.snapshot.measuredBox.x)&&!G(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=$(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const u=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!gr(this.projectionDelta),u=this.getTransformTemplate(),c=u?u(this.latestValues,""):void 0,l=c!==this.prevTransformTemplateValue;r&&this.instance&&(a||gt(this.latestValues)||l)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let u=this.removeElementScroll(a);return r&&(u=this.removeTransform(u)),dl(u),{animationId:this.root.animationId,measuredBox:a,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return $();const a=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(pl))){const{scroll:c}=this.root;c&&(Ct(a.x,c.offset.x),Ct(a.y,c.offset.y))}return a}removeElementScroll(r){const a=$();if(Q(a,r),this.scroll?.wasRoot)return a;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:l,options:f}=c;c!==this.root&&l&&f.layoutScroll&&(l.wasRoot&&Q(a,r),Ct(a.x,l.offset.x),Ct(a.y,l.offset.y))}return a}applyTransform(r,a=!1){const u=$();Q(u,r);for(let c=0;c<this.path.length;c++){const l=this.path[c];!a&&l.options.layoutScroll&&l.scroll&&l!==l.root&&bt(u,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),gt(l.latestValues)&&bt(u,l.latestValues)}return gt(this.latestValues)&&bt(u,this.latestValues),u}removeTransform(r){const a=$();Q(a,r);for(let u=0;u<this.path.length;u++){const c=this.path[u];if(!c.instance||!gt(c.latestValues))continue;Je(c.latestValues)&&c.updateSnapshot();const l=$(),f=c.measurePageBox();Q(l,f),As(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,l)}return gt(this.latestValues)&&As(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==W.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==a;if(!(r||u&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:l,layoutId:f}=this.options;if(!this.layout||!(l||f))return;this.resolvedRelativeTargetAt=W.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=$(),this.targetWithTransforms=$()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Bu(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Q(this.target,this.layout.layoutBox),rr(this.target,this.targetDelta)):Q(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Je(this.parent.latestValues)||ir(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,a,u){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$(),this.relativeTargetOrigin=$(),fe(this.relativeTargetOrigin,a,u),Q(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const r=this.getLead(),a=!!this.resumingFrom||this!==r;let u=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(u=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===W.timestamp&&(u=!1),u)return;const{layout:c,layoutId:l}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||l))return;Q(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;hu(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=$());const{target:p}=r;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(vs(this.prevProjectionDelta.x,this.projectionDelta.x),vs(this.prevProjectionDelta.y,this.projectionDelta.y)),Ot(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!Rs(this.projectionDelta.x,this.prevProjectionDelta.x)||!Rs(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=At(),this.projectionDelta=At(),this.projectionDeltaWithTransform=At()}setAnimationOrigin(r,a=!1){const u=this.snapshot,c=u?u.latestValues:{},l={...this.latestValues},f=At();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=$(),p=u?u.source:void 0,m=this.layout?this.layout.source:void 0,v=p!==m,P=this.getStack(),T=!P||P.members.length<=1,w=!!(v&&!T&&this.options.crossfade===!0&&!this.path.some(fl));this.animationProgress=0;let x;this.mixTargetDelta=b=>{const A=b/1e3;Fs(f.x,r.x,A),Fs(f.y,r.y,A),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fe(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),cl(this.relativeTarget,this.relativeTargetOrigin,h,A),x&&Uu(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=$()),Q(x,this.relativeTarget)),v&&(this.animationValues=l,Hu(l,c,this.latestValues,A,w,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ft(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=j.update(()=>{ie.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Vt(0)),this.currentAnimation=Yu(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ju),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:u,layout:c,latestValues:l}=r;if(!(!a||!u||!c)){if(this!==r&&this.layout&&c&&wr(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||$();const f=G(this.layout.layoutBox.x);u.x.min=r.target.x.min,u.x.max=u.x.min+f;const h=G(this.layout.layoutBox.y);u.y.min=r.target.y.min,u.y.max=u.y.min+h}Q(a,u),bt(a,l),Ot(this.projectionDeltaWithTransform,this.layoutCorrected,a,l)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new Zu),this.sharedNodes.get(r).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:u}={}){const c=this.getStack();c&&c.promote(this,u),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:u}=r;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(a=!0),!a)return;const c={};u.z&&Ve("z",r,c,this.animationValues);for(let l=0;l<Ee.length;l++)Ve(`rotate${Ee[l]}`,r,c,this.animationValues),Ve(`skew${Ee[l]}`,r,c,this.animationValues);r.render();for(const l in c)r.setStaticValue(l,c[l]),this.animationValues&&(this.animationValues[l]=c[l]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=se(a?.pointerEvents)||"",r.transform=u?u(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=se(a?.pointerEvents)||""),this.hasProjected&&!gt(this.latestValues)&&(r.transform=u?u({},""):"none",this.hasProjected=!1);return}r.visibility="";const l=c.animationValues||c.latestValues;this.applyTransformsToTarget();let f=$u(this.projectionDeltaWithTransform,this.treeScale,l);u&&(f=u(l,f)),r.transform=f;const{x:h,y:p}=this.projectionDelta;r.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,c.animationValues?r.opacity=c===this?l.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:l.opacityExit:r.opacity=c===this?l.opacity!==void 0?l.opacity:"":l.opacityExit!==void 0?l.opacityExit:0;for(const m in tn){if(l[m]===void 0)continue;const{correct:v,applyTo:P,isCSSVariable:T}=tn[m],w=f==="none"?l[m]:v(l[m],c);if(P){const x=P.length;for(let b=0;b<x;b++)r[P[b]]=w}else T?this.options.visualElement.renderState.vars[m]=w:r[m]=w}this.options.layoutId&&(r.pointerEvents=c===this?se(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(ks),this.root.sharedNodes.clear()}}}function tl(t){t.updateLayout()}function el(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,o=e.source!==t.layout.source;i==="size"?q(l=>{const f=o?e.measuredBox[l]:e.layoutBox[l],h=G(f);f.min=n[l].min,f.max=f.min+h}):wr(i,e.layoutBox,n)&&q(l=>{const f=o?e.measuredBox[l]:e.layoutBox[l],h=G(n[l]);f.max=f.min+h,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[l].max=t.relativeTarget[l].min+h)});const r=At();Ot(r,n,e.layoutBox);const a=At();o?Ot(a,t.applyTransform(s,!0),e.measuredBox):Ot(a,n,e.layoutBox);const u=!gr(r);let c=!1;if(!t.resumeFrom){const l=t.getClosestProjectingParent();if(l&&!l.resumeFrom){const{snapshot:f,layout:h}=l;if(f&&h){const p=$();fe(p,e.layoutBox,f.layoutBox);const m=$();fe(m,n,h.layoutBox),vr(p,m)||(c=!0),l.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=p,t.relativeParent=l)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function nl(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function sl(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function il(t){t.clearSnapshot()}function ks(t){t.clearMeasurements()}function Is(t){t.isLayoutDirty=!1}function rl(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function js(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ol(t){t.resolveTargetDelta()}function al(t){t.calcProjection()}function ul(t){t.resetSkewAndRotation()}function ll(t){t.removeLeadSnapshot()}function Fs(t,e,n){t.translate=B(e.translate,0,n),t.scale=B(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Bs(t,e,n,s){t.min=B(e.min,n.min,s),t.max=B(e.max,n.max,s)}function cl(t,e,n,s){Bs(t.x,e.x,n.x,s),Bs(t.y,e.y,n.y,s)}function fl(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const hl={duration:.45,ease:[.4,0,.1,1]},Os=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),_s=Os("applewebkit/")&&!Os("chrome/")?Math.round:J;function Ns(t){t.min=_s(t.min),t.max=_s(t.max)}function dl(t){Ns(t.x),Ns(t.y)}function wr(t,e,n){return t==="position"||t==="preserve-aspect"&&!Fu(Vs(e),Vs(n),.2)}function pl(t){return t!==t.root&&t.scroll?.wasRoot}const ml=Sr({attachResizeListener:(t,e)=>Kt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),yl=t=>!t.isLayoutDirty&&t.willUpdate(!1);function Us(){const t=new Set,e=new WeakMap,n=()=>t.forEach(yl);return{add:s=>{t.add(s),e.set(s,s.addEventListener("willUpdate",n))},remove:s=>{t.delete(s);const i=e.get(s);i&&(i(),e.delete(s)),n()},dirty:n}}const Re={current:void 0},Ar=Sr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Re.current){const t=new ml({});t.mount(window),t.setOptions({layoutScroll:!0}),Re.current=t}return Re.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),In=g.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function $s(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function gl(...t){return e=>{let n=!1;const s=t.map(i=>{const o=$s(i,e);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<s.length;i++){const o=s[i];typeof o=="function"?o():$s(t[i],null)}}}}function vl(...t){return g.useCallback(gl(...t),t)}class Tl extends g.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const s=n.offsetParent,i=Ze(s)&&s.offsetWidth||0,o=Ze(s)&&s.offsetHeight||0,r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft,r.right=i-r.width-r.left,r.bottom=o-r.height-r.top}return null}componentDidUpdate(){}render(){return this.props.children}}function xl({children:t,isPresent:e,anchorX:n,anchorY:s,root:i}){const o=g.useId(),r=g.useRef(null),a=g.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:u}=g.useContext(In),c=t.props?.ref??t?.ref,l=vl(r,c);return g.useInsertionEffect(()=>{const{width:f,height:h,top:p,left:m,right:v,bottom:P}=a.current;if(e||!r.current||!f||!h)return;const T=n==="left"?`left: ${m}`:`right: ${v}`,w=s==="bottom"?`bottom: ${P}`:`top: ${p}`;r.current.dataset.motionPopId=o;const x=document.createElement("style");u&&(x.nonce=u);const b=i??document.head;return b.appendChild(x),x.sheet&&x.sheet.insertRule(` 2 [data-motion-pop-id="${o}"] { 3 position: absolute !important; 4 width: ${f}px !important; 5 height: ${h}px !important; 6 ${T}px !important; 7 ${w}px !important; 8 } 9 `),()=>{b.contains(x)&&b.removeChild(x)}},[e]),st.jsx(Tl,{isPresent:e,childRef:r,sizeRef:a,children:g.cloneElement(t,{ref:l})})}const Pl=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:o,mode:r,anchorX:a,anchorY:u,root:c})=>{const l=sn(Sl),f=g.useId();let h=!0,p=g.useMemo(()=>(h=!1,{id:f,initial:e,isPresent:n,custom:i,onExitComplete:m=>{l.set(m,!0);for(const v of l.values())if(!v)return;s&&s()},register:m=>(l.set(m,!1),()=>l.delete(m))}),[n,l,s]);return o&&h&&(p={...p}),g.useMemo(()=>{l.forEach((m,v)=>l.set(v,!1))},[n]),g.useEffect(()=>{!n&&!l.size&&s&&s()},[n]),r==="popLayout"&&(t=st.jsx(xl,{isPresent:n,anchorX:a,anchorY:u,root:c,children:t})),st.jsx(de.Provider,{value:p,children:t})};function Sl(){return new Map}function Cr(t=!0){const e=g.useContext(de);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=g.useId();g.useEffect(()=>{if(t)return i(o)},[t]);const r=g.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const Qt=t=>t.key||"";function Ws(t){const e=[];return g.Children.forEach(t,n=>{g.isValidElement(n)&&e.push(n)}),e}const jc=({children:t,custom:e,initial:n=!0,onExitComplete:s,presenceAffectsLayout:i=!0,mode:o="sync",propagate:r=!1,anchorX:a="left",anchorY:u="top",root:c})=>{const[l,f]=Cr(r),h=g.useMemo(()=>Ws(t),[t]),p=r&&!l?[]:h.map(Qt),m=g.useRef(!0),v=g.useRef(h),P=sn(()=>new Map),T=g.useRef(new Set),[w,x]=g.useState(h),[b,A]=g.useState(h);rn(()=>{m.current=!1,v.current=h;for(let C=0;C<b.length;C++){const D=Qt(b[C]);p.includes(D)?(P.delete(D),T.current.delete(D)):P.get(D)!==!0&&P.set(D,!1)}},[b,p.length,p.join("-")]);const L=[];if(h!==w){let C=[...h];for(let D=0;D<b.length;D++){const N=b[D],Y=Qt(N);p.includes(Y)||(C.splice(D,0,N),L.push(N))}return o==="wait"&&L.length&&(C=L),A(Ws(C)),x(h),null}const{forceRender:E}=g.useContext(Nt);return st.jsx(st.Fragment,{children:b.map(C=>{const D=Qt(C),N=r&&!l?!1:h===b||p.includes(D),Y=()=>{if(T.current.has(D))return;if(T.current.add(D),P.has(D))P.set(D,!0);else return;let pt=!0;P.forEach(Pt=>{Pt||(pt=!1)}),pt&&(E?.(),A(v.current),r&&f?.(),s&&s())};return st.jsx(Pl,{isPresent:N,initial:!m.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:o,root:c,onExitComplete:N?void 0:Y,anchorX:a,anchorY:u,children:C},D)})})},wl=g.createContext(null);function Al(){const t=g.useRef(!1);return rn(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function Cl(){const t=Al(),[e,n]=g.useState(0),s=g.useCallback(()=>{t.current&&n(e+1)},[e]);return[g.useCallback(()=>j.postRender(s),[s]),e]}const br=t=>t===!0,bl=t=>br(t===!0)||t==="id",Fc=({children:t,id:e,inherit:n=!0})=>{const s=g.useContext(Nt),i=g.useContext(wl),[o,r]=Cl(),a=g.useRef(null),u=s.id||i;a.current===null&&(bl(n)&&u&&(e=e?u+"-"+e:u),a.current={id:e,group:br(n)&&s.group||Us()});const c=g.useMemo(()=>({...a.current,forceRender:o}),[r]);return st.jsx(Nt.Provider,{value:c,children:t})},Er=g.createContext({strict:!1}),Hs={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Ks=!1;function El(){if(Ks)return;const t={};for(const e in Hs)t[e]={isEnabled:n=>Hs[e].some(s=>!!n[s])};er(t),Ks=!0}function Vr(){return El(),uu()}function Vl(t){const e=Vr();for(const n in t)e[n]={...e[n],...t[n]};er(e)}const Rl=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function he(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Rl.has(t)}let Rr=t=>!he(t);function Ml(t){typeof t=="function"&&(Rr=e=>e.startsWith("on")?!he(e):t(e))}try{Ml(require("@emotion/is-prop-valid").default)}catch{}function Dl(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(Rr(i)||n===!0&&he(i)||!e&&!he(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const ye=g.createContext({});function Ll(t,e){if(me(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Ht(n)?n:void 0,animate:Ht(s)?s:void 0}}return t.inherit!==!1?e:{}}function kl(t){const{initial:e,animate:n}=Ll(t,g.useContext(ye));return g.useMemo(()=>({initial:e,animate:n}),[Gs(e),Gs(n)])}function Gs(t){return Array.isArray(t)?t.join(" "):t}const jn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Mr(t,e,n){for(const s in e)!H(e[s])&&!ur(s,n)&&(t[s]=e[s])}function Il({transformTemplate:t},e){return g.useMemo(()=>{const n=jn();return Ln(n,e,t),Object.assign({},n.vars,n.style)},[e])}function jl(t,e){const n=t.style||{},s={};return Mr(s,n,t),Object.assign(s,Il(t,e)),s}function Fl(t,e){const n={},s=jl(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const Dr=()=>({...jn(),attrs:{}});function Bl(t,e,n,s){const i=g.useMemo(()=>{const o=Dr();return lr(o,e,fr(s),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Mr(o,t.style,t),i.style={...o,...i.style}}return i}const Ol=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Fn(t){return typeof t!="string"||t.includes("-")?!1:!!(Ol.indexOf(t)>-1||/[A-Z]/u.test(t))}function _l(t,e,n,{latestValues:s},i,o=!1,r){const u=(r??Fn(t)?Bl:Fl)(e,s,i,t),c=Dl(e,typeof t=="string",o),l=t!==g.Fragment?{...c,...u,ref:n}:{},{children:f}=e,h=g.useMemo(()=>H(f)?f.get():f,[f]);return g.createElement(t,{...l,children:h})}function Nl({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:Ul(n,s,i,t),renderState:e()}}function Ul(t,e,n,s){const i={},o=s(t,{});for(const h in o)i[h]=se(o[h]);let{initial:r,animate:a}=t;const u=me(t),c=tr(t);e&&c&&!u&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let l=n?n.initial===!1:!1;l=l||r===!1;const f=l?a:r;if(f&&typeof f!="boolean"&&!pe(f)){const h=Array.isArray(f)?f:[f];for(let p=0;p<h.length;p++){const m=An(t,h[p]);if(m){const{transitionEnd:v,transition:P,...T}=m;for(const w in T){let x=T[w];if(Array.isArray(x)){const b=l?x.length-1:0;x=x[b]}x!==null&&(i[w]=x)}for(const w in v)i[w]=v[w]}}}return i}const Lr=t=>(e,n)=>{const s=g.useContext(ye),i=g.useContext(de),o=()=>Nl(t,e,s,i);return n?o():sn(o)},$l=Lr({scrapeMotionValuesFromProps:kn,createRenderState:jn}),Wl=Lr({scrapeMotionValuesFromProps:hr,createRenderState:Dr}),Hl=Symbol.for("motionComponentSymbol");function Kl(t,e,n){const s=g.useRef(n);g.useInsertionEffect(()=>{s.current=n});const i=g.useRef(null);return g.useCallback(o=>{o&&t.onMount?.(o),e&&(o?e.mount(o):e.unmount());const r=s.current;if(typeof r=="function")if(o){const a=r(o);typeof a=="function"&&(i.current=a)}else i.current?(i.current(),i.current=null):r(o);else r&&(r.current=o)},[e])}const kr=g.createContext({});function jt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Gl(t,e,n,s,i,o){const{visualElement:r}=g.useContext(ye),a=g.useContext(Er),u=g.useContext(de),c=g.useContext(In).reducedMotion,l=g.useRef(null),f=g.useRef(!1);s=s||a.renderer,!l.current&&s&&(l.current=s(t,{visualState:e,parent:r,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c,isSVG:o}),f.current&&l.current&&(l.current.manuallyAnimateOnMount=!0));const h=l.current,p=g.useContext(kr);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&Yl(l.current,n,i,p);const m=g.useRef(!1);g.useInsertionEffect(()=>{h&&m.current&&h.update(n,u)});const v=n[Ni],P=g.useRef(!!v&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return rn(()=>{f.current=!0,h&&(m.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),P.current&&h.animationState&&h.animationState.animateChanges())}),g.useEffect(()=>{h&&(!P.current&&h.animationState&&h.animationState.animateChanges(),P.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),P.current=!1),h.enteringChildren=void 0)}),h}function Yl(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:u,layoutRoot:c,layoutCrossfade:l}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Ir(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&jt(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,crossfade:l,layoutScroll:u,layoutRoot:c})}function Ir(t){if(t)return t.options.allowProjection!==!1?t.projection:Ir(t.parent)}function Me(t,{forwardMotionProps:e=!1,type:n}={},s,i){s&&Vl(s);const o=n?n==="svg":Fn(t),r=o?Wl:$l;function a(c,l){let f;const h={...g.useContext(In),...c,layoutId:zl(c)},{isStatic:p}=h,m=kl(c),v=r(c,p);if(!p&&si){Xl();const P=ql(h);f=P.MeasureLayout,m.visualElement=Gl(t,v,h,i,P.ProjectionNode,o)}return st.jsxs(ye.Provider,{value:m,children:[f&&m.visualElement?st.jsx(f,{visualElement:m.visualElement,...h}):null,_l(t,c,Kl(v,m.visualElement,l),v,p,e,o)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const u=g.forwardRef(a);return u[Hl]=t,u}function zl({layoutId:t}){const e=g.useContext(Nt).id;return e&&t!==void 0?e+"-"+t:t}function Xl(t,e){g.useContext(Er).strict}function ql(t){const e=Vr(),{drag:n,layout:s}=e;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n?.isEnabled(t)||s?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function Zl(t,e){if(typeof Proxy>"u")return Me;const n=new Map,s=(o,r)=>Me(o,r,t,e),i=(o,r)=>s(o,r);return new Proxy(i,{get:(o,r)=>r==="create"?s:(n.has(r)||n.set(r,Me(r,void 0,t,e)),n.get(r))})}const Jl=(t,e)=>e.isSVG??Fn(t)?new Cu(e):new Tu(e,{allowProjection:t!==g.Fragment});class Ql extends dt{constructor(e){super(e),e.animationState||(e.animationState=Mu(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();pe(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let tc=0;class ec extends dt{constructor(){super(...arguments),this.id=tc++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const nc={animation:{Feature:Ql},exit:{Feature:ec}};function Xt(t){return{point:{x:t.pageX,y:t.pageY}}}const sc=t=>e=>Vn(e)&&t(e,Xt(e));function _t(t,e,n,s){return Kt(t,e,sc(n),s)}const jr=({current:t})=>t?t.ownerDocument.defaultView:null,Ys=(t,e)=>Math.abs(t-e);function ic(t,e){const n=Ys(t.x,e.x),s=Ys(t.y,e.y);return Math.sqrt(n**2+s**2)}const zs=new Set(["auto","scroll"]);class Fr{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=Le(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,v=ic(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!v)return;const{point:P}=p,{timestamp:T}=W;this.history.push({...P,timestamp:T});const{onStart:w,onMove:x}=this.handlers;m||(w&&w(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,p)},this.handlePointerMove=(p,m)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=De(m,this.transformPagePoint),j.update(this.updatePoint,!0)},this.handlePointerUp=(p,m)=>{this.end();const{onEnd:v,onSessionEnd:P,resumeAnimation:T}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&T&&T(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Le(p.type==="pointercancel"?this.lastMoveEventInfo:De(m,this.transformPagePoint),this.history);this.startEvent&&v&&v(p,w),P&&P(p,w)},!Vn(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=i||window;const u=Xt(e),c=De(u,this.transformPagePoint),{point:l}=c,{timestamp:f}=W;this.history=[{...l,timestamp:f}];const{onSessionStart:h}=n;h&&h(e,Le(c,this.history)),this.removeListeners=Gt(_t(this.contextWindow,"pointermove",this.handlePointerMove),_t(this.contextWindow,"pointerup",this.handlePointerUp),_t(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(zs.has(s.overflowX)||zs.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const s=e===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},o={x:i.x-n.x,y:i.y-n.y};o.x===0&&o.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(e,i),j.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ft(this.updatePoint)}}function De(t,e){return e?{point:e(t.point)}:t}function Xs(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Le({point:t},e){return{point:t,delta:Xs(t,Br(e)),offset:Xs(t,rc(e)),velocity:oc(e,.1)}}function rc(t){return t[0]}function Br(t){return t[t.length-1]}function oc(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Br(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>ot(e)));)n--;if(!s)return{x:0,y:0};const o=Z(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function ac(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?B(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?B(n,t,s.max):Math.min(t,n)),t}function qs(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function uc(t,{top:e,left:n,bottom:s,right:i}){return{x:qs(t.x,n,i),y:qs(t.y,e,s)}}function Zs(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function lc(t,e){return{x:Zs(t.x,e.x),y:Zs(t.y,e.y)}}function cc(t,e){let n=.5;const s=G(t),i=G(e);return i>s?n=Ut(e.min,e.max-s,t.min):s>i&&(n=Ut(t.min,t.max-i,e.min)),rt(0,1,n)}function fc(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const en=.35;function hc(t=en){return t===!1?t=0:t===!0&&(t=en),{x:Js(t,"left","right"),y:Js(t,"top","bottom")}}function Js(t,e,n){return{min:Qs(t,e),max:Qs(t,n)}}function Qs(t,e){return typeof t=="number"?t:t[e]||0}const dc=new WeakMap;class pc{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=f=>{n?(this.stopAnimation(),this.snapToCursor(Xt(f).point)):this.pauseAnimation()},r=(f,h)=>{this.stopAnimation();const{drag:p,dragPropagation:m,onDragStart:v}=this.getProps();if(p&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Za(p),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),q(T=>{let w=this.getAxisMotionValue(T).get()||0;if(it.test(w)){const{projection:x}=this.visualElement;if(x&&x.layout){const b=x.layout.layoutBox[T];b&&(w=G(b)*(parseFloat(w)/100))}}this.originPoint[T]=w}),v&&j.postRender(()=>v(f,h)),ze(this.visualElement,"transform");const{animationState:P}=this.visualElement;P&&P.setActive("whileDrag",!0)},a=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:p,dragDirectionLock:m,onDirectionLock:v,onDrag:P}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:T}=h;if(m&&this.currentDirection===null){this.currentDirection=mc(T),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",h.point,T),this.updateAxis("y",h.point,T),this.visualElement.render(),P&&P(f,h)},u=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>q(f=>this.getAnimationState(f)==="paused"&&this.getAxisMotionValue(f).animation?.play()),{dragSnapToOrigin:l}=this.getProps();this.panSession=new Fr(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:s,contextWindow:jr(this.visualElement),element:this.visualElement.current})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!s)return;const{velocity:r}=i;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&j.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!te(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=ac(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&jt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=uc(s.layoutBox,e):this.constraints=!1,this.elastic=hc(n),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&q(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=fc(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!jt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=du(s,i.root,this.visualElement.getTransformPagePoint());let r=lc(i.layout.layoutBox,o);if(n){const a=n(cu(r));this.hasMutatedConstraints=!!a,a&&(r=sr(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),u=this.constraints||{},c=q(l=>{if(!te(l,n,this.currentDirection))return;let f=u&&u[l]||{};r&&(f={min:0,max:0});const h=i?200:1e6,p=i?40:1e7,m={type:"inertia",velocity:s?e[l]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(l,m)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return ze(this.visualElement,e),s.start(wn(e,s,0,n,this.visualElement,!1))}stopAnimation(){q(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){q(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){q(n=>{const{drag:s}=this.getProps();if(!te(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n],u=o.get()||0;o.set(e[n]-B(r,a,.5)+u)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!jt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};q(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const u=a.get();i[r]=cc({min:u,max:u},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),q(r=>{if(!te(r,e,null))return;const a=this.getAxisMotionValue(r),{min:u,max:c}=this.constraints[r];a.set(B(u,c,i[r]))})}addListeners(){if(!this.visualElement.current)return;dc.set(this.visualElement,this);const e=this.visualElement.current,n=_t(e,"pointerdown",u=>{const{drag:c,dragListener:l=!0}=this.getProps(),f=u.target,h=f!==e&&Zi(f);c&&l&&!h&&this.start(u)}),s=()=>{const{dragConstraints:u}=this.getProps();jt(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),j.read(s);const r=Kt(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(q(l=>{const f=this.getAxisMotionValue(l);f&&(this.originPoint[l]+=u[l].translate,f.set(f.get()+u[l].translate))}),this.visualElement.render())}));return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=en,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function te(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function mc(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class yc extends dt{constructor(e){super(e),this.removeGroupControls=J,this.removeListeners=J,this.controls=new pc(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||J}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const ti=t=>(e,n)=>{t&&j.postRender(()=>t(e,n))};class gc extends dt{constructor(){super(...arguments),this.removePointerDownListener=J}onPointerDown(e){this.session=new Fr(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:jr(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:ti(e),onStart:ti(n),onMove:s,onEnd:(o,r)=>{delete this.session,i&&j.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=_t(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ke=!1;class vc extends g.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),ke&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ie.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,{projection:r}=s;return r&&(r.isPresent=o,e.layoutDependency!==n&&r.setOptions({...r.options,layoutDependency:n}),ke=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||j.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),En.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;ke=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Or(t){const[e,n]=Cr(),s=g.useContext(Nt);return st.jsx(vc,{...t,layoutGroup:s,switchLayoutGroup:g.useContext(kr),isPresent:e,safeToRemove:n})}const Tc={pan:{Feature:gc},drag:{Feature:yc,ProjectionNode:Ar,MeasureLayout:Or}};function ei(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&j.postRender(()=>o(e,Xt(e)))}class xc extends dt{mount(){const{current:e}=this.node;e&&(this.unmount=Ja(e,(n,s)=>(ei(this.node,s,"Start"),i=>ei(this.node,i,"End"))))}unmount(){}}class Pc extends dt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Gt(Kt(this.node.current,"focus",()=>this.onFocus()),Kt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ni(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&j.postRender(()=>o(e,Xt(e)))}class Sc extends dt{mount(){const{current:e}=this.node;e&&(this.unmount=eu(e,(n,s)=>(ni(this.node,s,"Start"),(i,{success:o})=>ni(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}
vendor: 1,620 bytes, line 9
9))}unmount(){}}const nn=new WeakMap,Ie=new WeakMap,wc=t=>{const e=nn.get(t.target);e&&e(t)},Ac=t=>{t.forEach(wc)};function Cc({root:t,...e}){const n=t||document;Ie.has(n)||Ie.set(n,{});const s=Ie.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Ac,{root:t,...e})),s[i]}function bc(t,e,n){const s=Cc(e);return nn.set(t,n),s.observe(t),()=>{nn.delete(t),s.unobserve(t)}}const Ec={some:0,all:1};class Vc extends dt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Ec[i]},a=u=>{const{isIntersecting:c}=u;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:l,onViewportLeave:f}=this.node.getProps(),h=c?l:f;h&&h(u)};return bc(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Rc(e,n))&&this.startObserver()}unmount(){}}function Rc({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Mc={inView:{Feature:Vc},tap:{Feature:Sc},focus:{Feature:Pc},hover:{Feature:xc}},Dc={layout:{ProjectionNode:Ar,MeasureLayout:Or}},Lc={...nc,...Mc,...Tc,...Dc},Bc=Zl(Lc,Jl);function Oc(){!Rn.current&&Qi();const[t]=g.useState(ue.current);return t}export{jc as A,Fc as L,kc as R,g as a,Gr as b,st as j,Bc as m,Kr as r,Oc as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.