1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1746],{4477:(t,e,i)=>{i.d(e,{L:()=>n});let n=(0,i(38425).createContext)({})},4941:(t,e,i)=>{i.d(e,{M:()=>r});var n=i(38425);function r(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},5395:(t,e,i)=>{i.d(e,{A:()=>r});var n=i(93657);function r(t,e,i,r){if(!t||r===i||null==r||!e)return;let s=(0,n.DT)(e),{name:o,...a}=t;a.path||(a.path=""!==s?s:"/");let l=`${o}=${r};`;for(let[t,e]of Object.entries(a))l+=`${"maxAge"===t?"max-age":t}`,"boolean"!=typeof e&&(l+="="+e),l+=";";document.cookie=l}},7512:(t,e,i)=>{i.d(e,{jH:()=>s});var n=i(38425);i(62573);var r=n.createContext(void 0);function s(t){let e=n.useContext(r);return t||e||"ltr"}},11444:(t,e,i)=>{i.d(e,{UC:()=>X,Y9:()=>Y,bL:()=>z,l9:()=>_,q7:()=>H});var n=i(38425),r=i(41811),s=i(55883),o=i(69935),a=i(89437),l=i(27902),u=i(75032),h=i(60556),d=i(25050),c=i(7512),p=i(62573),m="Accordion",f=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[v,g,y]=(0,s.N)(m),[x,w]=(0,r.A)(m,[y,h.z3]),P=(0,h.z3)(),b=n.forwardRef((t,e)=>{let{type:i,...n}=t;return(0,p.jsx)(v.Provider,{scope:t.__scopeAccordion,children:"multiple"===i?(0,p.jsx)(M,{...n,ref:e}):(0,p.jsx)(C,{...n,ref:e})})});b.displayName=m;var[T,A]=x(m),[S,E]=x(m,{collapsible:!1}),C=n.forwardRef((t,e)=>{let{value:i,defaultValue:r,onValueChange:s=()=>{},collapsible:o=!1,...a}=t,[u,h]=(0,l.i)({prop:i,defaultProp:r,onChange:s});return(0,p.jsx)(T,{scope:t.__scopeAccordion,value:u?[u]:[],onItemOpen:h,onItemClose:n.useCallback(()=>o&&h(""),[o,h]),children:(0,p.jsx)(S,{scope:t.__scopeAccordion,collapsible:o,children:(0,p.jsx)(D,{...a,ref:e})})})}),M=n.forwardRef((t,e)=>{let{value:i,defaultValue:r,onValueChange:s=()=>{},...o}=t,[a=[],u]=(0,l.i)({prop:i,defaultProp:r,onChange:s}),h=n.useCallback(t=>u(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...e,t]}),[u]),d=n.useCallback(t=>u(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.filter(e=>e!==t)}),[u]);return(0,p.jsx)(T,{scope:t.__scopeAccordion,value:a,onItemOpen:h,onItemClose:d,children:(0,p.jsx)(S,{scope:t.__scopeAccordion,collapsible:!0,children:(0,p.jsx)(D,{...o,ref:e})})})}),[R,V]=x(m),D=n.forwardRef((t,e)=>{let{__scopeAccordion:i,disabled:r,dir:s,orientation:l="vertical",...h}=t,d=n.useRef(null),m=(0,o.s)(d,e),y=g(i),x="ltr"===(0,c.jH)(s),w=(0,a.m)(t.onKeyDown,t=>{var e;if(!f.includes(t.key))return;let i=t.target,n=y().filter(t=>{var e;return!(null===(e=t.ref.current)||void 0===e?void 0:e.disabled)}),r=n.findIndex(t=>t.ref.current===i),s=n.length;if(-1===r)return;t.preventDefault();let o=r,a=s-1,u=()=>{(o=r+1)>a&&(o=0)},h=()=>{(o=r-1)<0&&(o=a)};switch(t.key){case"Home":o=0;break;case"End":o=a;break;case"ArrowRight":"horizontal"===l&&(x?u():h());break;case"ArrowDown":"vertical"===l&&u();break;case"ArrowLeft":"horizontal"===l&&(x?h():u());break;case"ArrowUp":"vertical"===l&&h()}null===(e=n[o%s].ref.current)||void 0===e||e.focus()});return(0,p.jsx)(R,{scope:i,disabled:r,direction:s,orientation:l,children:(0,p.jsx)(v.Slot,{scope:i,children:(0,p.jsx)(u.sG.div,{...h,"data-orientation":l,ref:m,onKeyDown:r?void 0:w})})})}),k="AccordionItem",[j,L]=x(k),F=n.forwardRef((t,e)=>{let{__scopeAccordion:i,value:n,...r}=t,s=V(k,i),o=A(k,i),a=P(i),l=(0,d.B)(),u=n&&o.value.includes(n)||!1,c=s.disabled||t.disabled;return(0,p.jsx)(j,{scope:i,open:u,disabled:c,triggerId:l,children:(0,p.jsx)(h.bL,{"data-orientation":s.orientation,"data-state":W(u),...a,...r,ref:e,disabled:c,open:u,onOpenChange:t=>{t?o.onItemOpen(n):o.onItemClose(n)}})})});F.displayName=k;var B="AccordionHeader",I=n.forwardRef((t,e)=>{let{__scopeAccordion:i,...n}=t,r=V(m,i),s=L(B,i);return(0,p.jsx)(u.sG.h3,{"data-orientation":r.orientation,"data-state":W(s.open),"data-disabled":s.disabled?"":void 0,...n,ref:e})});I.displayName=B;var O="AccordionTrigger",U=n.forwardRef((t,e)=>{let{__scopeAccordion:i,...n}=t,r=V(m,i),s=L(O,i),o=E(O,i),a=P(i);return(0,p.jsx)(v.ItemSlot,{scope:i,children:(0,p.jsx)(h.l9,{"aria-disabled":s.open&&!o.collapsible||void 0,"data-orientation":r.orientation,id:s.triggerId,...a,...n,ref:e})})});U.displayName=O;var N="AccordionContent",$=n.forwardRef((t,e)=>{let{__scopeAccordion:i,...n}=t,r=V(m,i),s=L(N,i),o=P(i);return(0,p.jsx)(h.UC,{role:"region","aria-labelledby":s.triggerId,"data-orientation":r.orientation,...o,...n,ref:e,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...t.style}})});function W(t){return t?"open":"closed"}$.displayName=N;var z=b,H=F,Y=I,_=U,X=$},13596:(t,e,i)=>{i.d(e,{N:()=>g});var n=i(62573),r=i(38425),s=i(4477),o=i(4941),a=i(19381),l=i(89580);class u extends r.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;
1if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,i=t instanceof HTMLElement&&t.offsetWidth||0,n=this.props.sizeRef.current;n.height=e.offsetHeight||0,n.width=e.offsetWidth||0,n.top=e.offsetTop,n.left=e.offsetLeft,n.right=i-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function h(t){let{children:e,isPresent:i,anchorX:s}=t,o=(0,r.useId)(),a=(0,r.useRef)(null),h=(0,r.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:d}=(0,r.useContext)(l.Q);return(0,r.useInsertionEffect)(()=>{let{width:t,height:e,top:n,left:r,right:l}=h.current;if(i||!a.current||!t||!e)return;a.current.dataset.motionPopId=o;let u=document.createElement("style");return d&&(u.nonce=d),document.head.appendChild(u),u.sheet&&u.sheet.insertRule('\n [data-motion-pop-id="'.concat(o,'"] {\n position: absolute !important;\n width: ').concat(t,"px !important;\n height: ").concat(e,"px !important;\n ").concat("left"===s?"left: ".concat(r):"right: ".concat(l),"px !important;\n top: ").concat(n,"px !important;\n }\n ")),()=>{document.head.removeChild(u)}},[i]),(0,n.jsx)(u,{isPresent:i,childRef:a,sizeRef:h,children:r.cloneElement(e,{ref:a})})}let d=t=>{let{children:e,initial:i,isPresent:s,onExitComplete:l,custom:u,presenceAffectsLayout:d,mode:p,anchorX:m}=t,f=(0,o.M)(c),v=(0,r.useId)(),g=(0,r.useCallback)(t=>{for(let e of(f.set(t,!0),f.values()))if(!e)return;l&&l()},[f,l]),y=(0,r.useMemo)(()=>({id:v,initial:i,isPresent:s,custom:u,onExitComplete:g,register:t=>(f.set(t,!1),()=>f.delete(t))}),d?[Math.random(),g]:[s,g]);return(0,r.useMemo)(()=>{f.forEach((t,e)=>f.set(e,!1))},[s]),r.useEffect(()=>{s||f.size||!l||l()},[s]),"popLayout"===p&&(e=(0,n.jsx)(h,{isPresent:s,anchorX:m,children:e})),(0,n.jsx)(a.t.Provider,{value:y,children:e})};function c(){return new Map}var p=i(43786);let m=t=>t.key||"";function f(t){let e=[];return r.Children.forEach(t,t=>{(0,r.isValidElement)(t)&&e.push(t)}),e}var v=i(66670);let g=t=>{let{children:e,custom:i,initial:a=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:h="sync",propagate:c=!1,anchorX:g="left"}=t,[y,x]=(0,p.xQ)(c),w=(0,r.useMemo)(()=>f(e),[e]),P=c&&!y?[]:w.map(m),b=(0,r.useRef)(!0),T=(0,r.useRef)(w),A=(0,o.M)(()=>new Map),[S,E]=(0,r.useState)(w),[C,M]=(0,r.useState)(w);(0,v.E)(()=>{b.current=!1,T.current=w;for(let t=0;t<C.length;t++){let e=m(C[t]);P.includes(e)?A.delete(e):!0!==A.get(e)&&A.set(e,!1)}},[C,P.length,P.join("-")]);let R=[];if(w!==S){let t=[...w];for(let e=0;e<C.length;e++){let i=C[e],n=m(i);P.includes(n)||(t.splice(e,0,i),R.push(i))}return"wait"===h&&R.length&&(t=R),M(f(t)),E(w),null}let{forceRender:V}=(0,r.useContext)(s.L);return(0,n.jsx)(n.Fragment,{children:C.map(t=>{let e=m(t),r=(!c||!!y)&&(w===C||P.includes(e));return(0,n.jsx)(d,{isPresent:r,initial:(!b.current||!!a)&&void 0,custom:i,presenceAffectsLayout:u,mode:h,onExitComplete:r?void 0:()=>{if(!A.has(e))return;A.set(e,!0);let t=!0;A.forEach(e=>{e||(t=!1)}),t&&(null==V||V(),M(T.current),c&&(null==x||x()),l&&l())},anchorX:g,children:t},e)})})}},19381:(t,e,i)=>{i.d(e,{t:()=>n});let n=(0,i(38425).createContext)(null)},22461:(t,e,i)=>{i.d(e,{default:()=>u});var n=i(57074),r=i(45047),s=i(38425),o=i(20035),a=i(5395),l=i(62573),u=(0,s.forwardRef)(function(t,e){let{href:i,locale:s,localeCookie:u,onClick:h,prefetch:d,...c}=t,p=(0,o.Ym)(),m=null!=s&&s!==p,f=(0,r.usePathname)();return m&&(d=!1),(0,l.jsx)(n,{ref:e,href:i,hrefLang:m?s:void 0,onClick:function(t){(0,a.A)(u,f,p,s),h&&h(t)},prefetch:d,...c})})},30080:(t,e,i)=>{let n;function r(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function s(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function o(t,e,i,n){if("function"==typeof e){let[r,o]=s(n);e=e(void 0!==i?i:t.custom,r,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,o]=s(n);e=e(void 0!==i?i:t.custom,r,o)}return e}function a(t,e,i){let n=t.getProps();return o(n,e,void 0!==i?i:n.custom,t)}function l(t,e){return t?t[e]||t.default||t:void 0}i.d(e,{P:()=>sg});let u=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],h=new Set(u),d=new Set(["width","height","top","left","right","bottom",...u]),c=t=>Array.isArray(t),p=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),m=t=>c(t)?t[t.length-1]||0:t,f={skipAnimations:!1,useManualTiming:!1},v=t=>t,g=["read","resolveKeyframes","update","preRender","render","postRender"],y={value:null,addProjectionMetrics:null};function x(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=g.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,r=!1,s=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){o.has(e)&&(h.schedule(e),t()),l++,e(a)}let h={schedule:(t,e=!1,s=!1)=>{let a=s&&r?i:n;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(a=t,r){s=!0;return}
1r=!0,[i,n]=[n,i],i.forEach(u),e&&y.value&&y.value.frameloop[e].push(l),l=0,i.clear(),r=!1,s&&(s=!1,h.process(t))}};return h}(s,e?i:void 0),t),{}),{read:a,resolveKeyframes:l,update:u,preRender:h,render:d,postRender:c}=o,p=()=>{let s=f.useManualTiming?r.timestamp:performance.now();i=!1,f.useManualTiming||(r.delta=n?1e3/60:Math.max(Math.min(s-r.timestamp,40),1)),r.timestamp=s,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),h.process(r),d.process(r),c.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(p))},m=()=>{i=!0,n=!0,r.isProcessing||t(p)};return{schedule:g.reduce((t,e)=>{let n=o[e];return t[e]=(t,e=!1,r=!1)=>(i||m(),n.schedule(t,e,r)),t},{}),cancel:t=>{for(let e=0;e<g.length;e++)o[g[e]].cancel(t)},state:r,steps:o}}let{schedule:w,cancel:P,state:b,steps:T}=x("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:v,!0);function A(){n=void 0}let S={now:()=>(void 0===n&&S.set(b.isProcessing||f.useManualTiming?b.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(A)}};function E(t,e){-1===t.indexOf(e)&&t.push(e)}function C(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class M{constructor(){this.subscriptions=[]}add(t){return E(this.subscriptions,t),()=>C(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let R=t=>!isNaN(parseFloat(t)),V={current:void 0};class D{constructor(t,e={}){this.version="12.4.3",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=S.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=S.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=R(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new M);let i=this.events[t].add(e);return"change"===t?()=>{i(),w.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return V.current&&V.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=S.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function k(t,e){return new D(t,e)}let j=t=>!!(t&&t.getVelocity);function L(t,e){let i=t.getValue("willChange");if(j(i)&&i.add)return i.add(e)}let F=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),B="data-"+F("framerAppearId");function I(t){let e;return()=>(void 0===e&&(e=t()),e)}let O=I(()=>void 0!==window.ScrollTimeline);class U{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t,e){let i=this.animations.map(i=>O()&&i.attachTimeline?i.attachTimeline(t):"function"==typeof e?e(i):void 0);return()=>
1{i.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class N extends U{then(t,e){return Promise.all(this.animations).then(t).catch(e)}}let $=t=>1e3*t,W=t=>t/1e3,z={current:!1};function H(t){return"function"==typeof t}function Y(t,e){t.timeline=e,t.onfinish=null}let _=t=>Array.isArray(t)&&"number"==typeof t[0],X={linearEasing:void 0},K=function(t,e){let i=I(t);return()=>{var t;return null!==(t=X[e])&&void 0!==t?t:i()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),q=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n},G=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=t(q(0,r-1,e))+", ";return`linear(${n.substring(0,n.length-2)})`},Z=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,Q={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Z([0,.65,.55,1]),circOut:Z([.55,0,1,.45]),backIn:Z([.31,.01,.66,-.59]),backOut:Z([.33,1.53,.69,.99])},J=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function tt(t,e,i,n){if(t===e&&i===n)return v;let r=e=>(function(t,e,i,n,r){let s,o,a=0;do(s=J(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:J(r(t),e,n)}let te=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ti=t=>e=>1-t(1-e),tn=tt(.33,1.53,.69,.99),tr=ti(tn),ts=te(tr),to=t=>(t*=2)<1?.5*tr(t):.5*(2-Math.pow(2,-10*(t-1))),ta=t=>1-Math.sin(Math.acos(t)),tl=ti(ta),tu=te(ta),th=t=>/^0[^.\s]+$/u.test(t),td=(t,e,i)=>i>e?e:i<t?t:i,tc={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},tp={...tc,transform:t=>td(0,1,t)},tm={...tc,default:1},tf=t=>Math.round(1e5*t)/1e5,tv=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tg=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ty=(t,e)=>i=>!!("string"==typeof i&&tg.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tx=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,s,o,a]=n.match(tv);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tw=t=>td(0,255,t),tP={...tc,transform:t=>Math.round(tw(t))},tb={test:ty("rgb","red"),parse:tx("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+tP.transform(t)+", "+tP.transform(e)+", "+tP.transform(i)+", "+tf(tp.transform(n))+")"},tT={test:ty("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:tb.transform},tA=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tS=tA("deg"),tE=tA("%"),tC=tA("px"),tM=tA("vh"),tR=tA("vw"),tV={...tE,parse:t=>tE.parse(t)/100,transform:t=>tE.transform(100*t)},tD={test:ty("hsl","hue"),parse:tx("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+tE.transform(tf(e))+", "+tE.transform(tf(i))+", "+tf(tp.transform(n))+")"},tk={test:t=>tb.test(t)||tT.test(t)||tD.test(t),parse:t=>tb.test(t)?tb.parse(t):tD.test(t)?tD.parse(t):tT.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tb.transform(t):tD.transform(t)},tj=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tL="number",tF="color",tB=/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 tI(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,o=e.replace(tB,t=>(tk.test(t)?(n.color.push(s),r.push(tF),i.push(tk.parse(t))):t.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(t)):(n.number.push(s),r.push(tL),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function tO(t){return tI(t).values}function tU(t){let{split:e,types:i}=tI(t),n=e.length;return t=>{let r="";for(let s=0;s<n;s++)if(r+=e[s],void 0!==t[s]){let e=i[s];e===tL?r+=tf(t[s]):e===tF?r+=tk.transform(t[s]):r+=t[s]}return r}}let tN=t=>"number"==typeof t?0:t,t$={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(tv))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(tj))||void 0===i?void 0:i.length)||0)>0},parse:tO,createTransformer:tU,getAnimatableNone:function(t){let e=tO(t);return tU(t)(e.map(tN))}},tW=new Set(["brightness","contrast","saturate","opacity"]);function tz(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(tv)||[];if(!n)return t;let r=i.replace(n,""),s=+!!tW.has(e);return n!==i&&(s*=100),e+"("+s+r+")"}let tH=/\b([a-z-]*)\(.*?\)/gu,tY={...t$,getAnimatableNone:t=>{let e=t.match(tH);return e?e.map(tz).join(" "):t}},t_={...tc,transform:Math.round},tX={borderWidth:tC,borderTopWidth:tC,borderRightWidth:tC,borderBottomWidth:tC,borderLeftWidth:tC,borderRadius:tC,radius:tC,borderTopLeftRadius:tC,borderTopRightRadius:tC,borderBottomRightRadius:tC,borderBottomLeftRadius:tC,width:tC,maxWidth:tC,height:tC,maxHeight:tC,top:tC,right:tC,bottom:tC,left:tC,padding:tC,paddingTop:tC,paddingRight:tC,paddingBottom:tC,paddingLeft:tC,margin:tC,marginTop:tC,marginRight:tC,marginBottom:tC,marginLeft:tC,backgroundPositionX:tC,backgroundPositionY:tC,rotate:tS,rotateX:tS,rotateY:tS,rotateZ:tS,scale:tm,scaleX:tm,scaleY:tm,scaleZ:tm,skew:tS,skewX:tS,skewY:tS,distance:tC,translateX:tC,translateY:tC,translateZ:tC,x:tC,y:tC,z:tC,perspective:tC,transformPerspective:tC,opacity:tp,originX:tV,originY:tV,originZ:tC,zIndex:t_,size:tC,fillOpacity:tp,strokeOpacity:tp,numOctaves:t_},tK={...tX,color:tk,backgroundColor:tk,outlineColor:tk,fill:tk,stroke:tk,borderColor:tk,borderTopColor:tk,borderRightColor:tk,borderBottomColor:tk,borderLeftColor:tk,filter:tY,WebkitFilter:tY},tq=t=>tK[t];function tG(t,e){let i=tq(t);return i!==tY&&(i=t$),i.getAnimatableNone?i.getAnimatableNone(e):void 0}
1let tZ=new Set(["auto","none","0"]),tQ=t=>t===tc||t===tC,tJ=(t,e)=>parseFloat(t.split(", ")[e]),t0=(t,e)=>(i,{transform:n})=>{if("none"===n||!n)return 0;let r=n.match(/^matrix3d\((.+)\)$/u);if(r)return tJ(r[1],e);{let e=n.match(/^matrix\((.+)\)$/u);return e?tJ(e[1],t):0}},t1=new Set(["x","y","z"]),t5=u.filter(t=>!t1.has(t)),t3={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:t0(4,13),y:t0(5,14)};t3.translateX=t3.x,t3.translateY=t3.y;let t2=new Set,t4=!1,t9=!1;function t6(){if(t9){let t=Array.from(t2).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return t5.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var n;null===(n=t.getValue(e))||void 0===n||n.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}t9=!1,t4=!1,t2.forEach(t=>t.complete()),t2.clear()}function t8(){t2.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(t9=!0)})}class t7{constructor(t,e,i,n,r,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(t2.add(this),t4||(t4=!0,w.read(t8),w.resolveKeyframes(t6))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;for(let r=0;r<t.length;r++)if(null===t[r])if(0===r){let r=null==n?void 0:n.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}else t[r]=t[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),t2.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,t2.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let et=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),ee=t=>e=>"string"==typeof e&&e.startsWith(t),ei=ee("--"),en=ee("var(--"),er=t=>!!en(t)&&es.test(t.split("/*")[0].trim()),es=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,eo=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ea=t=>e=>e.test(t),el=[tc,tC,tE,tS,tR,tM,{test:t=>"auto"===t,parse:t=>t}],eu=t=>el.find(ea(t));class eh extends t7{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&er(n=n.trim())){let r=function t(e,i,n=1){v(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,s]=function(t){let e=eo.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${null!=i?i:n}`,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let t=o.trim();return et(t)?parseFloat(t):t}return er(s)?t(s,i,n+1):s}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!d.has(i)||2!==t.length)return;let[n,r]=t,s=eu(n),o=eu(r);if(s!==o)if(tQ(s)&&tQ(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||th(n))&&i.push(e)}if(i.length){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!tZ.has(e)&&tI(e).values.length&&(n=t[r]),r++}if(n&&e)for(let r of i)t[r]=tG(e,n)}}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=t3[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(i);r&&r.jump(this.measuredOrigin,!1);let s=n.length-1,o=n[s];n[s]=t3[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEac
1h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let ed=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(t$.test(t)||"0"===t)&&!t.startsWith("url(")),ec=t=>null!==t;function ep(t,{repeat:e,repeatType:i="loop"},n){let r=t.filter(ec),s=e&&"loop"!==i&&e%2==1?0:r.length-1;return s&&void 0!==n?n:r[s]}class em{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=S.now(),this.options={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(t8(),t6()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=S.now(),this.hasAttemptedResolve=!0;let{name:i,type:n,velocity:r,delay:s,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=ed(r,e),a=ed(s,e);return v(o===a,`You are trying to animate ${e} from "${r}" to "${s}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${s} via the \`style\` property.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||H(i))&&n)}(t,i,n,r))if(z.current||!s){a&&a(ep(t,this.options,e)),o&&o(),this.resolveFinishedPromise();return}else this.options.duration=0;let u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function ef(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let ev={layout:0,mainThread:0,waapi:0},eg=(t,e,i)=>t+(e-t)*i;function ey(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function ex(t,e){return i=>i>0?e:t}let ew=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},eP=[tT,tb,tD],eb=t=>eP.find(e=>e.test(t));function eT(t){let e=eb(t);if(v(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===tD&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;r=ey(a,n,t+1/3),s=ey(a,n,t),o=ey(a,n,t-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let eA=(t,e)=>{let i=eT(t),n=eT(e);if(!i||!n)return ex(t,e);let r={...i};return t=>(r.red=ew(i.red,n.red,t),r.green=ew(i.green,n.green,t),r.blue=ew(i.blue,n.blue,t),r.alpha=eg(i.alpha,n.alpha,t),tb.transform(r))},eS=(t,e)=>i=>e(t(i)),eE=(...t)=>t.reduce(eS),eC=new Set(["none","hidden"]);function eM(t,e){return i=>eg(t,e,i)}function eR(t){return"number"==typeof t?eM:"string"==typeof t?er(t)?ex:tk.test(t)?eA:ek:Array.isArray(t)?eV:"object"==typeof t?tk.test(t)?eA:eD:ex}function eV(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>eR(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function eD(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=eR(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let ek=(t,e)=>{let i=t$.createTransformer(e),n=tI(t),r=tI(e);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?eC.has(t)&&!r.values.length||eC.has(e)&&!n.values.length?function(t,e){return eC.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):eE(eV(function(t,e){var i;let n=[],r={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let o=e.types[s],a=t.indexes[o][r[o]],l=null!==(i=t.values[a])&&void 0!==i?i:0;n[s]=l,r[o]++}return n}(n,r),r.values),i):(v(!0,`Complex values '${t}' and '${e}
1' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),ex(t,e))};function ej(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?eg(t,e,i):eR(t)(t,e)}function eL(t,e,i){var n,r;let s=Math.max(e-5,0);return n=i-t(s),(r=e-s)?1e3/r*n:0}let eF={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};function eB(t,e){return t*Math.sqrt(1-e*e)}let eI=["duration","bounce"],eO=["stiffness","damping","mass"];function eU(t,e){return e.some(e=>void 0!==t[e])}function eN(t=eF.visualDuration,e=eF.bounce){let i,n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:r,restDelta:s}=n,o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:h,mass:d,duration:c,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:eF.velocity,stiffness:eF.stiffness,damping:eF.damping,mass:eF.mass,isResolvedFromDuration:!1,...t};if(!eU(t,eO)&&eU(t,eI))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*td(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:eF.mass,stiffness:n,damping:r}}else{let i=function({duration:t=eF.duration,bounce:e=eF.bounce,velocity:i=eF.velocity,mass:n=eF.mass}){let r,s;v(t<=$(eF.maxDuration),"Spring duration must be 10 seconds or less");let o=1-e;o=td(eF.minDamping,eF.maxDamping,o),t=td(eF.minDuration,eF.maxDuration,W(t)),o<1?(r=e=>{let n=e*o,r=n*t;return .001-(n-i)/eB(e,o)*Math.exp(-r)},s=e=>{let n=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-n),l=eB(Math.pow(e,2),o);return(n*i+i-s)*a*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,5/t);if(t=$(t),isNaN(a))return{stiffness:eF.stiffness,damping:eF.damping,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:eF.mass}).isResolvedFromDuration=!0}return e}({...n,velocity:-W(n.velocity||0)}),f=p||0,g=h/(2*Math.sqrt(u*d)),y=a-o,x=W(Math.sqrt(u/d)),w=5>Math.abs(y);if(r||(r=w?eF.restSpeed.granular:eF.restSpeed.default),s||(s=w?eF.restDelta.granular:eF.restDelta.default),g<1){let t=eB(x,g);i=e=>a-Math.exp(-g*x*e)*((f+g*x*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===g)i=t=>a-Math.exp(-x*t)*(y+(f+x*y)*t);else{let t=x*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*x*e),n=Math.min(t*e,300);return a-i*((f+g*x*y)*Math.sinh(n)+t*y*Math.cosh(n))/t}}let P={calculatedDuration:m&&c||null,next:t=>{let e=i(t);if(m)l.done=t>=c;else{let n=0;g<1&&(n=0===t?$(f):eL(i,t,e));let o=Math.abs(a-e)<=s;l.done=Math.abs(n)<=r&&o}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(ef(P),2e4),e=G(e=>P.next(t*e).value,t,30);return t+"ms "+e}};return P}function e$({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let d,c,p=t[0],m={done:!1,value:p},f=t=>void 0!==a&&t<a||void 0!==l&&t>l,v=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,g=i*e,y=p+g,x=void 0===o?y:o(y);x!==y&&(g=x-p);let w=t=>-g*Math.exp(-t/n),P=t=>x+w(t),b=t=>{let e=w(t),i=P(t);m.done=Math.abs(e)<=u,m.value=m.done?x:i},T=t=>{f(m.value)&&(d=t,c=eN({keyframes:[m.value,v(m.value)],velocity:eL(P,t,m.value),damping:r,stiffness:s,restDelta:u,restSpeed:h}))};return T(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,b(t),T(t)),void 0!==d&&t>=d)?c.next(t-d):(e||b(t),m)}}}let eW=tt(.42,0,1,1),ez=tt(0,0,.58,1),eH=tt(.42,0,.58,1),eY=t=>Array.isArray(t)&&"number"!=typeof t[0],e_={linear:v,easeIn:eW,easeInOut:eH,easeOut:ez,circIn:ta,circInOut:tu,circOut:tl,backIn:tr,backInOut:ts,backOut:tn,anticipate:to},eX=t=>{if(_(t)){v(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,r]=t;return tt(e,i,n,r)}return"string"==typeof t?(v(void 0!==e_[t],`Invalid easing type '${t}'`),e_[t]):t};function eK({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let r=eY(n)?n.map(eX):eX(n),s={done:!1,value:e[0]},o=function(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;if(v(s===e.length,"Both input and output ranges must be the same length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());
1let a=function(t,e,i){let n=[],r=i||ej,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=eE(Array.isArray(e)?e[i]||v:e,s)),n.push(s)}return n}(e,n,r),l=a.length,u=i=>{if(o&&i<t[0])return e[0];let n=0;if(l>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=q(t[n],t[n+1],i);return a[n](r)};return i?e=>u(td(t[0],t[s-1],e)):u}((i&&i.length===e.length?i:function(t){let e=[0];return function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=q(0,e,n);t.push(eg(i,1,r))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(r)?r:e.map(()=>r||eH).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=o(e),s.done=e>=t,s)}}let eq=t=>{let e=({timestamp:e})=>t(e);return{start:()=>w.update(e,!0),stop:()=>P(e),now:()=>b.isProcessing?b.timestamp:S.now()}},eG={decay:e$,inertia:e$,tween:eK,keyframes:eK,spring:eN},eZ=t=>t/100;class eQ extends em{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:e,motionValue:i,element:n,keyframes:r}=this.options,s=(null==n?void 0:n.KeyframeResolver)||t7;this.resolver=new s(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i,{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:o,velocity:a=0}=this.options,l=H(n)?n:eG[n]||eK;l!==eK&&"number"!=typeof t[0]&&(e=eE(eZ,ej(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===o&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=ef(u));let{calculatedDuration:h}=u,d=h+s;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:h,resolvedDuration:d,totalDuration:d*(r+1)-s}}onPostResolved(){let{autoplay:t=!0}=this.options;ev.mainThread++,this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:n,generator:r,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return r.next(0);let{delay:d,repeat:c,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let v=this.currentTime-d*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=r;if(c){let t=Math.min(this.currentTime,u)/h,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/h)):"mirror"===p&&(x=s)),y=td(0,1,i)*h}let w=g?{done:!1,value:a[0]}:x.next(y);o&&(w.value=o(w.value));let{done:P}=w;g||null===l||(P=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let b=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return b&&void 0!==n&&(w.value=ep(a,this.options,n)),f&&f(w.value),b&&this.finish(),w}get duration(){let{resolved:t}=this;return t?W(t.calculatedDuration):0}get time(){return W(this.currentTime)}set time(t){t=$(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=W(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=eq,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedProm
1ise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel(),ev.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let eJ=new Set(["opacity","clipPath","filter","transform"]),e0=I(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),e1={anticipate:to,backInOut:ts,circInOut:tu};class e5 extends em{constructor(t){super(t);let{name:e,motionValue:i,element:n,keyframes:r}=this.options;this.resolver=new eh(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}initPlayback(t,e){var i;let{duration:n=300,times:r,ease:s,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if("string"==typeof s&&K()&&s in e1&&(s=e1[s]),H((i=this.options).type)||"spring"===i.type||!function t(e){return!!("function"==typeof e&&K()||!e||"string"==typeof e&&(e in Q||K())||_(e)||Array.isArray(e)&&e.every(t))}(i.ease)){let{onComplete:e,onUpdate:i,motionValue:a,element:l,...u}=this.options,h=function(t,e){let i=new eQ({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:t[0]},r=[],s=0;for(;!n.done&&s<2e4;)r.push((n=i.sample(s)).value),s+=10;return{times:void 0,keyframes:r,duration:s-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),n=h.duration,r=h.times,s=h.ease,o="keyframes"}let h=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=function t(e,i){if(e)return"function"==typeof e&&K()?G(e,i):_(e)?Z(e):Array.isArray(e)?e.map(e=>t(e,i)||Q.easeOut):Q[e]}(a,r);Array.isArray(h)&&(u.easing=h),y.value&&ev.waapi++;let d=t.animate(u,{delay:n,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"});return y.value&&d.finished.finally(()=>{ev.waapi--}),d}(a.owner.current,l,t,{...this.options,duration:n,times:r,ease:s});return h.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(Y(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{let{onComplete:i}=this.options;a.set(ep(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:n,times:r,type:o,ease:s,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return W(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return W(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=$(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return v;let{animation:i}=e;Y(i,t)}else this.pendingTimeline=t;return v}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:n,type:r,ease:s,times:o}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,h=new eQ({...u,keyframes:i,duration:n,type:r,ease:s,times:o,isGenerator:!0}),d=$(this.time);t.setWithVelocity(h.sample(d-10).value,h.sample(d).value,10)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}
1static supports(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return e0()&&i&&eJ.has(i)&&!a&&!l&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}}let e3={type:"spring",stiffness:500,damping:25,restSpeed:10},e2=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),e4={type:"keyframes",duration:.8},e9={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},e6=(t,{keyframes:e})=>e.length>2?e4:h.has(t)?t.startsWith("scale")?e2(e[1]):e3:e9,e8=(t,e,i,n={},r,s)=>o=>{let a=l(n,t)||{},u=a.delay||n.delay||0,{elapsed:h=0}=n;h-=$(u);let d={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-h,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(a)&&(d={...d,...e6(t,d)}),d.duration&&(d.duration=$(d.duration)),d.repeatDelay&&(d.repeatDelay=$(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let c=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(d.duration=0,0!==d.delay||(c=!0)),(z.current||f.skipAnimations)&&(c=!0,d.duration=0,d.delay=0),c&&!s&&void 0!==e.get()){let t=ep(d.keyframes,a);if(void 0!==t)return w.update(()=>{d.onUpdate(t),d.onComplete()}),new N([])}return!s&&e5.supports(d)?new e5(d):new eQ(d)};function e7(t,e,{delay:i=0,transitionOverride:n,type:r}={}){var s;let{transition:o=t.getDefaultTransition(),transitionEnd:u,...h}=e;n&&(o=n);let c=[],p=r&&t.animationState&&t.animationState.getState()[r];for(let e in h){let n=t.getValue(e,null!==(s=t.latestValues[e])&&void 0!==s?s:null),r=h[e];if(void 0===r||p&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(p,e))continue;let a={delay:i,...l(o||{},e)},u=!1;if(window.MotionHandoffAnimation){let i=t.props[B];if(i){let t=window.MotionHandoffAnimation(i,e,w);null!==t&&(a.startTime=t,u=!0)}}L(t,e),n.start(e8(e,n,r,t.shouldReduceMotion&&d.has(e)?{type:!1}:a,t,u));let m=n.animation;m&&c.push(m)}return u&&Promise.all(c).then(()=>{w.update(()=>{u&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=a(t,e)||{};for(let e in r={...r,...i}){let i=m(r[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,k(i))}}(t,u)})}),c}function it(t,e,i={}){var n;let r=a(t,e,"exit"===i.type?null===(n=t.presenceContext)||void 0===n?void 0:n.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(s=i.transitionOverride);let o=r?()=>Promise.all(e7(t,r,i)):()=>Promise.resolve(),l=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,i=0,n=0,r=1,s){let o=[],a=(t.variantChildren.size-1)*n,l=1===r?(t=0)=>t*n:(t=0)=>a-t*n;return Array.from(t.variantChildren).sort(ie).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(it(t,e,{...s,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,r+n,o,a,i)}:()=>Promise.resolve(),{when:u}=s;if(!u)return Promise.all([o(),l(i.delay)]);{let[t,e]="beforeChildren"===u?[o,l]:[l,o];return t().then(()=>e())}}function ie(t,e){return t.sortNodePosition(e)}function ii(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}function ir(t){return"string"==typeof t||Array.isArray(t)}let is=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],io=["initial",...is],ia=io.length,il=[...is].reverse(),iu=is.length;function ih(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function id(){return{animate:ih(!0),whileInView:ih(),whileHover:ih(),whileTap:ih(),whileDrag:ih(),whileFocus:ih(),exit:ih()}}class ic{constructor(t){this.isMounted=!1,this.node=t}update(){}}class ip extends ic{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>
1(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>it(t,e,i)));else if("string"==typeof e)n=it(t,e,i);else{let r="function"==typeof e?a(t,e,i.custom):e;n=Promise.all(e7(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=id(),n=!0,s=e=>(i,n)=>{var r;let s=a(t,n,"exit"===e?null===(r=t.presenceContext)||void 0===r?void 0:r.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function o(o){let{props:l}=t,u=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<ia;t++){let n=io[t],r=e.props[n];(ir(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},h=[],d=new Set,p={},m=1/0;for(let e=0;e<iu;e++){var f,v;let a=il[e],g=i[a],y=void 0!==l[a]?l[a]:u[a],x=ir(y),w=a===o?g.isActive:null;!1===w&&(m=e);let P=y===u[a]&&y!==l[a]&&x;if(P&&n&&t.manuallyAnimateOnMount&&(P=!1),g.protectedKeys={...p},!g.isActive&&null===w||!y&&!g.prevProp||r(y)||"boolean"==typeof y)continue;let b=(f=g.prevProp,"string"==typeof(v=y)?v!==f:!!Array.isArray(v)&&!ii(v,f)),T=b||a===o&&g.isActive&&!P&&x||e>m&&x,A=!1,S=Array.isArray(y)?y:[y],E=S.reduce(s(a),{});!1===w&&(E={});let{prevResolvedValues:C={}}=g,M={...C,...E},R=e=>{T=!0,d.has(e)&&(A=!0,d.delete(e)),g.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in M){let e=E[t],i=C[t];if(p.hasOwnProperty(t))continue;let n=!1;(c(e)&&c(i)?ii(e,i):e===i)?void 0!==e&&d.has(t)?R(t):g.protectedKeys[t]=!0:null!=e?R(t):d.add(t)}g.prevProp=y,g.prevResolvedValues=E,g.isActive&&(p={...p,...E}),n&&t.blockInitialAnimation&&(T=!1);let V=!(P&&b)||A;T&&V&&h.push(...S.map(t=>({animation:t,options:{type:a}})))}if(d.size){let e={};if("boolean"!=typeof l.initial){let i=a(t,Array.isArray(l.initial)?l.initial[0]:l.initial);i&&i.transition&&(e.transition=i.transition)}d.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=null!=n?n:null}),h.push({animation:e})}let g=!!h.length;return n&&(!1===l.initial||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(g=!1),n=!1,g?e(h):Promise.resolve()}return{animateChanges:o,setActive:function(e,n){var r;if(i[e].isActive===n)return Promise.resolve();null===(r=t.variantChildren)||void 0===r||r.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,n)}),i[e].isActive=n;let s=o(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=id(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();r(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}let im=0;class iv extends ic{constructor(){super(...arguments),this.id=im++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}let ig={x:!1,y:!1},iy=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function ix(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}function iw(t){return{point:{x:t.pageX,y:t.pageY}}}let iP=t=>e=>iy(e)&&t(e,iw(e));function ib(t,e,i,n){return ix(t,e,iP(i),n)}let iT=(t,e)=>Math.abs(t-e);class iA{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=iC(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(iT(t.x,e.x)**2+iT(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:r}=b;this.history.push({...n,timestamp:r});let{onStart:s,onMove:o}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=iS(e,this.transformPagePoint),w.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=iC("pointercancel"===t.type?this.lastMoveEventInfo:iS(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!iy(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let s=iS(iw(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=b;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,iC(s,this.history)),this.removeListeners=eE(ib(this.contextWindow,"pointermove",this.handlePointerMove),ib(this.contextWindow,"pointerup",this.handlePointerUp),ib(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),P(this.updatePoint)}}function iS(t,e){return e?{point:e(t.point)}:t}function iE(t,e){return{x:t.x-e.x,y:t.y-e.y}}function iC({point:t},e){return{point:t,delta:iE(t,iM(e)),offset:iE(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=iM(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>$(.1)));)i--;if(!n)return{x:0,y:0};let s=W(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function iM(t){return t[t.length-1]}function iR(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function iV(t){return t.max-t.min}function iD(t,e,i,n=.5){t.origin=n,t.originPoint=eg(e.min,e.max,t.origin),t.scale=iV(i)/iV(e),t.translate=eg(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function ik(t,e,i,n){iD(t.x,e.x,i.x,n?n.originX:void 0),iD(t.y,e.y,i.y,n?n.originY:void 0)}function ij(t,e,i){t.min=i.min+e.min,t.max=t.min+iV(e)}function iL(t,e,i){t.min=e.min-i.min,t.max=t.min+iV(e)}function iF(t,e,i){iL(t.x,e.x,i.x),iL(t.y,e.y,i.y)}function iB(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function iI(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function iO(t,e,i){return{min:iU(t,e),max:iU(t,i)}}function iU(t,e){return"number"==typeof t?t:t[e]||0}let iN=()=>({translate:0,scale:1,origin:0,originPoint:0}),i$=()=>({x:iN(),y:iN()}),iW=()=>({min:0,max:0}),iz=()=>({x:iW(),y:iW()});function iH(t){return[t("x"),t("y")]}function iY({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function i_(t){return void 0===t||1===t}function iX({scale:t,scaleX:e,scaleY:i}){return!i_(t)||!i_(e)||!i_(i)}function iK(t){return iX(t)||iq(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function iq(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function iG(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function iZ(t,e=0,i=1,n,r){t.min=iG(t.min,e,i,n,r),t.max=iG(t.max,e,i,n,r)}function iQ(t,{x:e,y:i}){iZ(t.x,e.translate,e.scale,e.originPoint),iZ(t.y,i.translate,i.scale,i.originPoint)}function iJ(t,e){t.min=t.min+e,t.max=t.max+e}function i0(t,e,i,n,r=.5){let s=eg(t.min,t.max,r);iZ(t,e,i,s,n)}function i1(t,e){i0(t.x,e.x,e.scaleX,e.scale,e.originX),i0(t.y,e.y,e.scaleY,e.scale,e.originY)}function i5(t,e){return iY(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let i3=({current:t})=>t?t.ownerDocument.defaultView:null,i2=new WeakMap;class i4{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=iz(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new iA(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(iw(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(ig[t])return null;else return ig[t]=!0,()=>{ig[t]=!1};return ig.x||ig.y?null:(ig.x=ig.y=!0,()=>{ig.x=ig.y=!1})}(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iH(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tE.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];
1n&&(e=iV(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&w.postRender(()=>r(t,e)),L(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>iH(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:i3(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:r}=this.getProps();r&&w.postRender(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!i9(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?eg(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?eg(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,r=this.constraints;e&&iR(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:iB(t.x,i,r),y:iB(t.y,e,n)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:iO(t,"left","right"),y:iO(t,"top","bottom")}}(i),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&iH(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iR(e))return!1;let n=e.current;v(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let s=function(t,e,i){let n=i5(t,i),{scroll:r}=e;return r&&(iJ(n.x,r.offset.x),iJ(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o={x:iI((t=r.layout.layoutBox).x,s.x),y:iI(t.y,s.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=iY(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(iH(o=>{if(!i9(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return L(this.visualElement,t),i.start(e8(t,i,0,e,this.visualElement,!1))}stopAnimation(){iH(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){iH(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){iH(e=>{let{drag:i}=this.getProps();if(!i9(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e];r.set(t[e]-eg(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iR(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};iH(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=iV(t),r=iV(e);return r>n?i=q(e.min,e.max-n,t.min):n>r&&(i=q(t.min,t.max-r,e.min)),td(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),iH(e=>{if(!i9(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set(eg(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;i2.set(this.visualElement,this);let t=ib(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();iR(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),w.read(e);let r=ix(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(iH(e=>{let i=this.getAxisMotionValue(e);
1i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function i9(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class i6 extends ic{constructor(t){super(t),this.removeGroupControls=v,this.removeListeners=v,this.controls=new i4(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||v}unmount(){this.removeGroupControls(),this.removeListeners()}}let i8=t=>(e,i)=>{t&&w.postRender(()=>t(e,i))};class i7 extends ic{constructor(){super(...arguments),this.removePointerDownListener=v}onPointerDown(t){this.session=new iA(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:i3(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:i8(t),onStart:i8(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&w.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=ib(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var nt,ne,ni=i(62573),nn=i(38425),nr=i(43786),ns=i(4477);let no=(0,nn.createContext)({}),na={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nl(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let nu={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!tC.test(t))return t;else t=parseFloat(t);let i=nl(t,e.target.x),n=nl(t,e.target.y);return`${i}% ${n}%`}},nh={},{schedule:nd,cancel:nc}=x(queueMicrotask,!1);class np extends nn.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;for(let t in nf)nh[t]=nf[t],ei(t)&&(nh[t].isCSSVariable=!0);r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),na.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,s=i.projection;return s&&(s.isPresent=r,n||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent===r||(r?s.promote():s.relegate()||w.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),nd.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nm(t){let[e,i]=(0,nr.xQ)(),n=(0,nn.useContext)(ns.L);return(0,ni.jsx)(np,{...t,layoutGroup:n,switchLayoutGroup:(0,nn.useContext)(no),isPresent:e,safeToRemove:i})}let nf={borderRadius:{...nu,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nu,borderTopRightRadius:nu,borderBottomLeftRadius:nu,borderBottomRightRadius:nu,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=t$.parse(t);if(n.length>5)return t;let r=t$.createTransformer(t),s=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=eg(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}},nv=(t,e)=>t.depth-e.depth;class ng{constructor(){this.children=[],this.isDirty=!1}add(t){E(this.children,t),this.isDirty=!0}remove(t){C(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nv),this.isDirty=!1,this.children.forEac
1h(t)}}function ny(t){let e=j(t)?t.get():t;return p(e)?e.toValue():e}let nx=["TopLeft","TopRight","BottomLeft","BottomRight"],nw=nx.length,nP=t=>"string"==typeof t?parseFloat(t):t,nb=t=>"number"==typeof t||tC.test(t);function nT(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nA=nE(0,.5,tl),nS=nE(.5,.95,v);function nE(t,e,i){return n=>n<t?0:n>e?1:i(q(t,e,n))}function nC(t,e){t.min=e.min,t.max=e.max}function nM(t,e){nC(t.x,e.x),nC(t.y,e.y)}function nR(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nV(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function nD(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(tE.test(e)&&(e=parseFloat(e),e=eg(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=eg(s.min,s.max,n);t===s&&(a-=e),t.min=nV(t.min,e,i,a,r),t.max=nV(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let nk=["x","scaleX","originX"],nj=["y","scaleY","originY"];function nL(t,e,i,n){nD(t.x,e,nk,i?i.x:void 0,n?n.x:void 0),nD(t.y,e,nj,i?i.y:void 0,n?n.y:void 0)}function nF(t){return 0===t.translate&&1===t.scale}function nB(t){return nF(t.x)&&nF(t.y)}function nI(t,e){return t.min===e.min&&t.max===e.max}function nO(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function nU(t,e){return nO(t.x,e.x)&&nO(t.y,e.y)}function nN(t){return iV(t.x)/iV(t.y)}function n$(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class nW{constructor(){this.members=[]}add(t){E(this.members,t),t.scheduleRender()}remove(t){if(C(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let nz={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},nH=["","X","Y","Z"],nY={visibility:"hidden"},n_=0;function nX(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function nK({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=n_++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,y.value&&(nz.nodes=nz.calculatedTargetDeltas=nz.calculatedProjections=0),this.nodes.forEach(nZ),this.nodes.forEach(n2),this.nodes.forEach(n4),this.nodes.forEach(nQ),y.addProjectionMetrics&&y.addProjectionMetrics(nz)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new ng)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new M),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:n,layout:r,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||n)&&(this.isLayoutDirty=!0),t){let i,n=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=S.now(),n=({timestamp:r})=>{let s=r-i;s>=250&&(P(n),t(s-e))};return w.read(n,!0),()=>P(n)}(n,250),na.hasAnimatedSinceResize&&(na.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(n3))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&s&&(n||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||re,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),u=!this.targetLayout||!nU(this.targetLayout,n),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,h);let e={...l(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||n3(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,P(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(n9),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[B];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",w,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(n0);return}this.isUpdating||this.nodes.forEach(n1),this.isUpdating=!1,this.nodes.forEach(n5),this.nodes.forEach(nq),this.nodes.forEach(nG),this.clearAllSnapshots();let t=S.now();b.delta=td(0,1e3/60,t-b.timestamp),b.timestamp=t,b.isProcessing=!0,T.update.process(b),T.preRender.process(b),T.render.process(b),b.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nd.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nJ),this.sharedNodes.forEach(n6)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,w.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){w.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||iV(this.snapshot.measuredBox.x)||iV(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 t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=iz(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!nB(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&(e||iK(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),rr((e=n).x),rr(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return iz();let i=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(ro))){let{scroll:t}=this.root;t&&(iJ(i.x,t.offset.x),iJ(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=iz();if(nM(i,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let n=this.path[e],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&nM(i,t),iJ(i.x,r.offset.x),iJ(i.y,r.offset.y))}return i}applyTransform(t,e=!1){let i=iz();nM(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&i1(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),iK(n.latestValues)&&i1(i,n.latestValues)}return iK(this.latestValues)&&i1(i,this.latestValues),i}removeTransform(t){let e=iz();nM(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!iK(i.latestValues))continue;iX(i.latestValues)&&i.updateSnapshot();let n=iz();nM(n,i.measurePageBox()),nL(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return iK(this.latestValues)&&nL(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==b.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,n,r;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isS
1haredProjectionDirty);let o=!!this.resumingFrom||this!==s;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=b.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iz(),this.relativeTargetOrigin=iz(),iF(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),nM(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=iz(),this.targetWithTransforms=iz()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,n=this.relativeTarget,r=this.relativeParent.target,ij(i.x,n.x,r.x),ij(i.y,n.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nM(this.target,this.layout.layoutBox),iQ(this.target,this.targetDelta)):nM(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iz(),this.relativeTargetOrigin=iz(),iF(this.relativeTargetOrigin,this.target,t.target),nM(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}y.value&&nz.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||iX(this.parent.latestValues)||iq(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(n=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===b.timestamp&&(n=!1),n)return;let{layout:r,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||s))return;nM(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,n=!1){let r,s,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(r=i[a]).projectionDelta;let{visualElement:o}=r.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&i1(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,iQ(t,s)),n&&iK(r.latestValues)&&i1(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=iz());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nR(this.prevProjectionDelta.x,this.projectionDelta.x),nR(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),ik(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&n$(this.projectionDelta.x,this.prevProjectionDelta.x)&&n$(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),y.value&&nz.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=i$(),this.projectionDelta=i$(),this.projectionDeltaWithTransform=i$()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=i$();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=iz(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(l&&!h&&
1!0===this.options.crossfade&&!this.path.some(rt));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(n8(o.x,t.x,n),n8(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,m,f,v;if(iF(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,v=n,n7(p.x,m.x,f.x,v),n7(p.y,m.y,f.y,v),i&&(u=this.relativeTarget,c=i,nI(u.x,c.x)&&nI(u.y,c.y)))this.isProjectionDirty=!1;i||(i=iz()),nM(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=eg(0,void 0!==i.opacity?i.opacity:1,nA(n)),t.opacityExit=eg(void 0!==e.opacity?e.opacity:1,0,nS(n))):s&&(t.opacity=eg(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let r=0;r<nw;r++){let s=`border${nx[r]}Radius`,o=nT(e,s),a=nT(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||nb(o)===nb(a)?(t[s]=Math.max(eg(nP(o),nP(a),n),0),(tE.test(a)||tE.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=eg(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,d,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(P(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=w.update(()=>{na.hasAnimatedSinceResize=!0,ev.layout++,this.currentAnimation=function(t,e,i){let n=j(0)?0:k(t);return n.start(e8("",n,1e3,i)),n.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{ev.layout--},onComplete:()=>{ev.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&rs(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||iz();let e=iV(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=iV(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}nM(e,i),i1(e,r),ik(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new nW),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&nX("z",t,n,this.animationValues);for(let e=0;e<nH.length;e++)nX(`rotate${nH[e]}`,t,n,this.animationValues),nX(`skew${nH[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return nY;let n={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=ny(null==t?void 0:t.pointerEvents)||"",n.transform=r?r(this.latestValues,""):"none",n;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=ny(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!iK(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let o=s.animationValues||s.latestValues;
1this.applyTransformsToTarget(),n.transform=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((r||s||o)&&(n=`translate3d(${r}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),r&&(n.transform=r(o,n.transform));let{x:a,y:l}=this.projectionDelta;for(let t in n.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?n.opacity=s===this?null!==(i=null!==(e=o.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:n.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,nh){if(void 0===o[t])continue;let{correct:e,applyTo:i,isCSSVariable:r}=nh[t],a="none"===n.transform?o[t]:e(o[t],s);if(i){let t=i.length;for(let e=0;e<t;e++)n[i[e]]=a}else r?this.options.visualElement.renderState.vars[t]=a:n[t]=a}return this.options.layoutId&&(n.pointerEvents=s===this?ny(null==t?void 0:t.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(n0),this.root.sharedNodes.clear()}}}function nq(t){t.updateLayout()}function nG(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:r}=t.options,s=i.source!==t.layout.source;"size"===r?iH(t=>{let n=s?i.measuredBox[t]:i.layoutBox[t],r=iV(n);n.min=e[t].min,n.max=n.min+r}):rs(r,i.layoutBox,e)&&iH(n=>{let r=s?i.measuredBox[n]:i.layoutBox[n],o=iV(e[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=i$();ik(o,e,i.layoutBox);let a=i$();s?ik(a,t.applyTransform(n,!0),i.measuredBox):ik(a,e,i.layoutBox);let l=!nB(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=iz();iF(o,i.layoutBox,r.layoutBox);let a=iz();iF(a,e,s.layoutBox),nU(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function nZ(t){y.value&&nz.nodes++,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 nQ(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function nJ(t){t.clearSnapshot()}function n0(t){t.clearMeasurements()}function n1(t){t.isLayoutDirty=!1}function n5(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function n3(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function n2(t){t.resolveTargetDelta()}function n4(t){t.calcProjection()}function n9(t){t.resetSkewAndRotation()}function n6(t){t.removeLeadSnapshot()}function n8(t,e,i){t.translate=eg(e.translate,0,i),t.scale=eg(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function n7(t,e,i,n){t.min=eg(e.min,i.min,n),t.max=eg(e.max,i.max,n)}function rt(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let re={duration:.45,ease:[.4,0,.1,1]},ri=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rn=ri("applewebkit/")&&!ri("chrome/")?Math.round:v;function rr(t){t.min=rn(t.min),t.max=rn(t.max)}function rs(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(nN(e)-nN(i)))}function ro(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}let ra=nK({attachResizeListener:(t,e)=>ix(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rl={current:void 0},ru=nK({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rl.current){let t=new ra({});t.mount(window),t.setOptions({layoutScroll:!0}),rl.current=t}return rl.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});
1function rh(t,e){let i=function(t,e,i){var n;if(t instanceof Element)return[t];if("string"==typeof t){let e=document,i=(n=void 0,e.querySelectorAll(t));return i?Array.from(i):[]}return Array.from(t)}(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function rd(t){return!("touch"===t.pointerType||ig.x||ig.y)}function rc(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&w.postRender(()=>r(e,iw(e)))}class rp extends ic{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=rh(t,i),o=t=>{if(!rd(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let s=t=>{rd(t)&&(n(t),i.removeEventListener("pointerleave",s))};i.addEventListener("pointerleave",s,r)};return n.forEach(t=>{t.addEventListener("pointerenter",o,r)}),s}(t,(t,e)=>(rc(this.node,e,"Start"),t=>rc(this.node,t,"End"))))}unmount(){}}class rm extends ic{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=eE(ix(this.node.current,"focus",()=>this.onFocus()),ix(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let rf=(t,e)=>!!e&&(t===e||rf(t,e.parentElement)),rv=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),rg=new WeakSet;function ry(t){return e=>{"Enter"===e.key&&t(e)}}function rx(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let rw=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=ry(()=>{if(rg.has(i))return;rx(i,"down");let t=ry(()=>{rx(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>rx(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function rP(t){return iy(t)&&!(ig.x||ig.y)}function rb(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&w.postRender(()=>r(e,iw(e)))}class rT extends ic{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=rh(t,i),o=t=>{let n=t.currentTarget;if(!rP(t)||rg.has(n))return;rg.add(n);let s=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),rP(t)&&rg.has(n)&&(rg.delete(n),"function"==typeof s&&s(t,{success:e}))},a=t=>{o(t,i.useGlobalTarget||rf(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{!rv.has(t.tagName)&&-1===t.tabIndex&&null===t.getAttribute("tabindex")&&(t.tabIndex=0),(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),t.addEventListener("focus",t=>rw(t,r),r)}),s}(t,(t,e)=>(rb(this.node,e,"Start"),(t,{success:e})=>rb(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let rA=new WeakMap,rS=new WeakMap,rE=t=>{let e=rA.get(t.target);e&&e(t)},rC=t=>{t.forEach(rE)},rM={some:0,all:1};class rR extends ic{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:rM[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;rS.has(i)||rS.set(i,{});let n=rS.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(rC,{root:t,...e})),n[r]}(e);return rA.set(t,i),n.observe(t),()=>{rA.delete(t),n.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let rV=(0,nn.createContext)({strict:!1});var rD=i(89580);let rk=(0,nn.createContext)({});function rj(t){return r(t.animate)||io.some(e=>ir(t[e]))}function rL(t){return!!(rj(t)||t.variants)}function rF(t){return Array.isArray(t)?t.join(" "):t}var rB=i(81828);let rI={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"]},rO={};for(let t in rI)rO[t]={isEnabled:e=>rI[t].some(t=>!!e[t])};let rU=Symbol.for("motionComponentSymbol");var rN=i(19381),r$=i(66670);function rW(t,{layout:e,layoutId:i}){return h.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!nh[t]||"opacity"===t)}let rz=(t,e)=>e&&"number"==typeof t?e.transform(t):t,rH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rY=u.length;function r_(t,e,i){let{style:n,vars:r,transformOrigin:s}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(h.has(t)){o=!0;continue}if(ei(t)){r[t]=i;continue}{let e=rz(i,tX[t]);t.startsWith("origin")?(a=!0,s[t]=e):n[t]=e}}
1if(!e.transform&&(o||i?n.transform=function(t,e,i){let n="",r=!0;for(let s=0;s<rY;s++){let o=u[s],a=t[o];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===+!!o.startsWith("scale"):0===parseFloat(a))||i){let t=rz(a,tX[o]);if(!l){r=!1;let e=rH[o]||o;n+=`${e}(${t}) `}i&&(e[o]=t)}}return n=n.trim(),i?n=i(e,r?"":n):r&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=s;n.transformOrigin=`${t} ${e} ${i}`}}let rX=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function rK(t,e,i){for(let n in e)j(e[n])||rW(n,i)||(t[n]=e[n])}let rq=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 rG(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||rq.has(t)}let rZ=t=>!rG(t);try{!function(t){t&&(rZ=e=>e.startsWith("on")?!rG(e):t(e))}(require("@emotion/is-prop-valid").default)}catch(t){}let rQ=["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 rJ(t){if("string"!=typeof t||t.includes("-"));else if(rQ.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let r0={offset:"stroke-dashoffset",array:"stroke-dasharray"},r1={offset:"strokeDashoffset",array:"strokeDasharray"};function r5(t,e,i){return"string"==typeof t?t:tC.transform(e+i*t)}function r3(t,{attrX:e,attrY:i,attrScale:n,originX:r,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},h,d){if(r_(t,u,d),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:p,dimensions:m}=t;c.transform&&(m&&(p.transform=c.transform),delete c.transform),m&&(void 0!==r||void 0!==s||p.transform)&&(p.transformOrigin=function(t,e,i){let n=r5(e,t.x,t.width),r=r5(i,t.y,t.height);return`${n} ${r}`}(m,void 0!==r?r:.5,void 0!==s?s:.5)),void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==n&&(c.scale=n),void 0!==o&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?r0:r1;t[s.offset]=tC.transform(-n);let o=tC.transform(e),a=tC.transform(i);t[s.array]=`${o} ${a}`}(c,o,a,l,!1)}let r2=()=>({...rX(),attrs:{}}),r4=t=>"string"==typeof t&&"svg"===t.toLowerCase();var r9=i(4941);let r6=t=>(e,i)=>{let n=(0,nn.useContext)(rk),s=(0,nn.useContext)(rN.t),a=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:i},n,s,a){let l={latestValues:function(t,e,i,n){let s={},a=n(t,{});for(let t in a)s[t]=ny(a[t]);let{initial:l,animate:u}=t,h=rj(t),d=rL(t);e&&d&&!h&&!1!==t.inherit&&(void 0===l&&(l=e.initial),void 0===u&&(u=e.animate));let c=!!i&&!1===i.initial,p=(c=c||!1===l)?u:l;if(p&&"boolean"!=typeof p&&!r(p)){let e=Array.isArray(p)?p:[p];for(let i=0;i<e.length;i++){let n=o(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(n,s,a,t),renderState:e()};return i&&(l.onMount=t=>i({props:n,current:t,...l}),l.onUpdate=t=>i(t)),l})(t,e,n,s);return i?a():(0,r9.M)(a)};function r8(t,e,i){var n;let{style:r}=t,s={};for(let o in r)(j(r[o])||e.style&&j(e.style[o])||rW(o,t)||(null===(n=null==i?void 0:i.getValue(o))||void 0===n?void 0:n.liveStyle)!==void 0)&&(s[o]=r[o]);return s}let r7={useVisualState:r6({scrapeMotionValuesFromProps:r8,createRenderState:rX})};function st(t,e){try{e.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(t){e.dimensions={x:0,y:0,width:0,height:0}}}function se(t,{style:e,vars:i},n,r){for(let s in Object.assign(t.style,e,r&&r.getProjectionStyles(n)),i)t.style.setProperty(s,i[s])}let si=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"]);
1function sn(t,e,i,n){for(let i in se(t,e,void 0,n),e.attrs)t.setAttribute(si.has(i)?i:F(i),e.attrs[i])}function sr(t,e,i){let n=r8(t,e,i);for(let i in t)(j(t[i])||j(e[i]))&&(n[-1!==u.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}let ss=["x","y","width","height","cx","cy","r"],so={useVisualState:r6({scrapeMotionValuesFromProps:sr,createRenderState:r2,onUpdate:({props:t,prevProps:e,current:i,renderState:n,latestValues:r})=>{if(!i)return;let s=!!t.drag;if(!s){for(let t in r)if(h.has(t)){s=!0;break}}if(!s)return;let o=!e;if(e)for(let i=0;i<ss.length;i++){let n=ss[i];t[n]!==e[n]&&(o=!0)}o&&w.read(()=>{st(i,n),w.render(()=>{r3(n,r,r4(i.tagName),t.transformTemplate),sn(i,n)})})}})},sa={current:null},sl={current:!1},su=[...el,tk,t$],sh=t=>su.find(ea(t)),sd=new WeakMap,sc=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sp{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:r,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=t7,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=()=>{let t=S.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,w.render(this.render,!1,!0))};let{latestValues:a,renderState:l,onUpdate:u}=s;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=rj(e),this.isVariantNode=rL(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:h,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in d){let e=d[t];void 0!==a[t]&&j(e)&&e.set(a[t],!1)}}mount(t){if(this.current=t,sd.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),!sl.current&&(sl.current=!0,rB.B))if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>sa.current=t.matches;t.addListener(e),e()}else sa.current=!1;this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||sa.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),P(this.notifyUpdate),P(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=h.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&w.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),s(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in rO){let e=rO[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];
1e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):iz()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<sc.length;e++){let i=sc[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if(j(r))t.addValue(n,r);else if(j(s))t.addValue(n,k(r,{owner:t}));else if(s!==r)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,k(void 0!==e?e:r,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=k(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let n=void 0===this.latestValues[t]&&this.current?null!==(i=this.getBaseTargetFromProps(this.props,t))&&void 0!==i?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=n&&("string"==typeof n&&(et(n)||th(n))?n=parseFloat(n):!sh(n)&&t$.test(e)&&(n=tG(t,e)),this.setBaseTarget(t,j(n)?n.get():n)),j(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=o(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);r&&(i=r[t])}if(n&&void 0!==i)return i;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||j(r)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new M),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class sm extends sp{constructor(){super(...arguments),this.KeyframeResolver=eh}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;j(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class sf extends sm{constructor(){super(...arguments),this.type="html",this.renderInstance=se}readValueFromInstance(t,e){if(h.has(e)){let t=tq(e);return t&&t.default||0}{let i=window.getComputedStyle(t),n=(ei(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return i5(t,e)}build(t,e,i){r_(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return r8(t,e,i)}}class sv extends sm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=iz,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&st(this.current,this.renderState)}}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(h.has(e)){let t=tq(e);return t&&t.default||0}return e=si.has(e)?e:F(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return sr(t,e,i)}onBindTransform(){this.current&&!this.renderState.dimensions&&w.postRender(this.updateDimensions)}build(t,e,i){r3(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,n){sn(t,e,i,n)}mount(t){this.isSVGTag=r4(t.tagName),super.mount(t)}}let sg=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}((nt={animation:{Feature:ip},exit:{Feature:iv},inView:{Feature:rR},tap:{Feature:rT},focus:{Feature:rm},hover:{Feature:rp},pan:{Feature:i7},drag:{Feature:i6,ProjectionNode:ru,MeasureLayout:nm},layout:{ProjectionNode:ru,MeasureLayout:nm}},ne=(t,e)=>rJ(t)?new sv(e):new sf(e,{allowProjection:t!==nn.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function(t){var e,i;let{preloadedFeatures:n,createVisualElement:r,useRender:s,useVisualState:o,Component:a}=t;function l(t,e){var i,n,l;let u,h={...(0,nn.useContext)(rD.Q),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,nn.useContext)(ns.L).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:d}=h,c=function(t){let{initial:e,animate:i}=function(t,e){if(rj(t)){let{initial:e,animate:i}=t;return{initial:!1===e||ir(e)?e:void 0,animate:ir(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,nn.useContext)(rk));return(0,nn.useMemo)(()=>({initial:e,animate:i}),[rF(e),rF(i)])}(t),p=o(t,d);if(!d&&rB.B){n=0,l=0,(0,nn.useContext)(rV).strict;let t=function(t){let{drag:e,layout:i}=rO;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(h);u=t.MeasureLayout,c.visualElement=function(t,e,i,n,r){var s,o;let{visualElement:a}=(0,nn.useContext)(rk),l=(0,nn.useContext)(rV),u=(0,nn.useContext)(rN.t),h=(0,nn.useContext)(rD.Q).reducedMotion,d=(0,nn.useRef)(null);n=n||l.renderer,!d.current&&n&&(d.current=n(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h}));let c=d.current,p=(0,nn.useContext)(no);c&&!c.projection&&r&&("html"===c.type||"svg"===c.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&iR(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(d.current,i,r,p);let m=(0,nn.useRef)(!1);(0,nn.useInsertionEffect)(()=>{c&&m.current&&c.update(i,u)});let f=i[B],v=(0,nn.useRef)(!!f&&!(null===(s=window.MotionHandoffIsComplete)||void 0===s?void 0:s.call(window,f))&&(null===(o=window.MotionHasOptimisedAnimation)||void 0===o?void 0:o.call(window,f)));return(0,r$.E)(()=>{c&&(m.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),nd.render(c.render),v.current&&c.animationState&&c.animationState.animateChanges())}),(0,nn.useEffect)(()=>{c&&(!v.current&&c.animationState&&c.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,f)}),v.current=!1))}),c}(a,p,h,r,t.ProjectionNode)}return(0,ni.jsxs)(rk.Provider,{value:c,children:[u&&c.visualElement?(0,ni.jsx)(u,{visualElement:c.visualElement,...h}):null,s(a,t,(i=c.visualElement,(0,nn.useCallback)(t=>{t&&p.onMount&&p.onMount(t),i&&(t?i.mount(t):i.unmount()),e&&("function"==typeof e?e(t):iR(e)&&(e.current=t))},[i])),p,d,c.visualElement)]})}n&&function(t){for(let e in t)rO[e]={...rO[e],...t[e]}}(n),l.displayName="motion.".concat("string"==typeof a?a:"create(".concat(null!==(i=null!==(e=a.displayName)&&void 0!==e?e:a.name)&&void 0!==i?i:"",")"));let u=(0,nn.forwardRef)(l);return u[rU]=a,u}({...rJ(t)?so:r7,preloadedFeatures:nt,useRender:function(t=!1){return(e,i,n,{latestValues:r},s)=>
1{let o=(rJ(e)?function(t,e,i,n){let r=(0,nn.useMemo)(()=>{let i=r2();return r3(i,e,r4(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};rK(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return rK(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,nn.useMemo)(()=>{let i=rX();return r_(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(i,r,s,e),a=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(rZ(r)||!0===i&&rG(r)||!e&&!rG(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(i,"string"==typeof e,t),l=e!==nn.Fragment?{...a,...o,ref:n}:{},{children:u}=i,h=(0,nn.useMemo)(()=>j(u)?u.get():u,[u]);return(0,nn.createElement)(e,{...l,children:h})}}(e),createVisualElement:ne,Component:t})}))},40944:(t,e,i)=>{i.d(e,{FD:()=>g,MY:()=>s,PJ:()=>o,Wl:()=>l,XP:()=>d,_x:()=>r,bL:()=>c,po:()=>u,ql:()=>h,wO:()=>a,yL:()=>y});var n=i(81853);function r(t){return("object"==typeof t?null==t.host&&null==t.hostname:!/^[a-z]+:/i.test(t))&&!function(t){let e="object"==typeof t?t.pathname:t;return null!=e&&!e.startsWith("/")}(t)}function s(t,e){return t.replace(RegExp(`^${e}`),"")||"/"}function o(t,e){let i=t;return/^\/(\?.*)?$/.test(e)&&(e=e.slice(1)),i+=e}function a(t,e){return e===t||e.startsWith(`${t}/`)}function l(t,e,i){return"string"==typeof t?t:t[e]||i}function u(t){let e=function(){try{return"true"===n.env._next_intl_trailing_slash}catch{return!1}}();if("/"!==t){let i=t.endsWith("/");e&&!i?t+="/":!e&&i&&(t=t.slice(0,-1))}return t}function h(t,e){let i=u(t),n=u(e);return(function(t){let e=t.replace(/\[\[(\.\.\.[^\]]+)\]\]/g,"?(.*)").replace(/\[(\.\.\.[^\]]+)\]/g,"(.+)").replace(/\[([^\]]+)\]/g,"([^/]+)");return RegExp(`^${e}$`)})(i).test(n)}function d(t,e){return"never"!==e.mode&&e.prefixes?.[t]||c(t)}function c(t){return"/"+t}function p(t){return t.includes("[[...")}function m(t){return t.includes("[...")}function f(t){return t.includes("[")}function v(t,e){let i=t.split("/"),n=e.split("/"),r=Math.max(i.length,n.length);for(let t=0;t<r;t++){let e=i[t],r=n[t];if(!e&&r)return -1;if(e&&!r)return 1;if(e||r){if(!f(e)&&f(r))return -1;if(f(e)&&!f(r))return 1;if(!m(e)&&m(r))return -1;if(m(e)&&!m(r))return 1;if(!p(e)&&p(r))return -1;if(p(e)&&!p(r))return 1}}return 0}function g(t){return t.sort(v)}function y(t){return"function"==typeof t.then}},43786:(t,e,i)=>{i.d(e,{xQ:()=>s});var n=i(38425),r=i(19381);function s(t=!0){let e=(0,n.useContext)(r.t);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:o,register:a}=e,l=(0,n.useId)();(0,n.useEffect)(()=>{t&&a(l)},[t]);let u=(0,n.useCallback)(()=>t&&o&&o(l),[l,o,t]);return!i&&o?[!1,u]:[!0]}},55883:(t,e,i)=>{i.d(e,{N:()=>l});var n=i(38425),r=i(41811),s=i(69935),o=i(24762),a=i(62573);function l(t){let e=t+"CollectionProvider",[i,l]=(0,r.A)(e),[u,h]=i(e,{collectionRef:{current:null},itemMap:new Map}),d=t=>{let{scope:e,children:i}=t,r=n.useRef(null),s=n.useRef(new Map).current;return(0,a.jsx)(u,{scope:e,itemMap:s,collectionRef:r,children:i})};d.displayName=e;let c=t+"CollectionSlot",p=n.forwardRef((t,e)=>{let{scope:i,children:n}=t,r=h(c,i),l=(0,s.s)(e,r.collectionRef);return(0,a.jsx)(o.DX,{ref:l,children:n})});p.displayName=c;let m=t+"CollectionItemSlot",f="data-radix-collection-item",v=n.forwardRef((t,e)=>{let{scope:i,children:r,...l}=t,u=n.useRef(null),d=(0,s.s)(e,u),c=h(m,i);return n.useEffect(()=>(c.itemMap.set(u,{ref:u,...l}),()=>void c.itemMap.delete(u))),(0,a.jsx)(o.DX,{[f]:"",ref:d,children:r})});return v.displayName=m,[{Provider:d,Slot:p,ItemSlot:v},function(e){let i=h(t+"CollectionConsumer",e);return n.useCallback(()=>{let t=i.collectionRef.current;if(!t)return[];let e=Array.from(t.querySelectorAll("[".concat(f,"]")));return Array.from(i.itemMap.values()).sort((t,i)=>e.indexOf(t.ref.current)-e.indexOf(i.ref.current))},[i.collectionRef,i.itemMap])},l]}},60556:(t,e,i)=>{i.d(e,{Ke:()=>b,R6:()=>w,UC:()=>C,bL:()=>S,l9:()=>E,z3:()=>f});var n=i(38425),r=i(89437),s=i(41811),o=i(27902),a=i(45816),l=i(69935),u=i(75032),h=i(63873),d=i(25050),c=i(62573),p="Collapsible",[m,f]=(0,s.A)(p
1),[v,g]=m(p),y=n.forwardRef((t,e)=>{let{__scopeCollapsible:i,open:r,defaultOpen:s,disabled:a,onOpenChange:l,...h}=t,[p=!1,m]=(0,o.i)({prop:r,defaultProp:s,onChange:l});return(0,c.jsx)(v,{scope:i,disabled:a,contentId:(0,d.B)(),open:p,onOpenToggle:n.useCallback(()=>m(t=>!t),[m]),children:(0,c.jsx)(u.sG.div,{"data-state":A(p),"data-disabled":a?"":void 0,...h,ref:e})})});y.displayName=p;var x="CollapsibleTrigger",w=n.forwardRef((t,e)=>{let{__scopeCollapsible:i,...n}=t,s=g(x,i);return(0,c.jsx)(u.sG.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":A(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...n,ref:e,onClick:(0,r.m)(t.onClick,s.onOpenToggle)})});w.displayName=x;var P="CollapsibleContent",b=n.forwardRef((t,e)=>{let{forceMount:i,...n}=t,r=g(P,t.__scopeCollapsible);return(0,c.jsx)(h.C,{present:i||r.open,children:t=>{let{present:i}=t;return(0,c.jsx)(T,{...n,ref:e,present:i})}})});b.displayName=P;var T=n.forwardRef((t,e)=>{let{__scopeCollapsible:i,present:r,children:s,...o}=t,h=g(P,i),[d,p]=n.useState(r),m=n.useRef(null),f=(0,l.s)(e,m),v=n.useRef(0),y=v.current,x=n.useRef(0),w=x.current,b=h.open||d,T=n.useRef(b),S=n.useRef(void 0);return n.useEffect(()=>{let t=requestAnimationFrame(()=>T.current=!1);return()=>cancelAnimationFrame(t)},[]),(0,a.N)(()=>{let t=m.current;if(t){S.current=S.current||{transitionDuration:t.style.transitionDuration,animationName:t.style.animationName},t.style.transitionDuration="0s",t.style.animationName="none";let e=t.getBoundingClientRect();v.current=e.height,x.current=e.width,T.current||(t.style.transitionDuration=S.current.transitionDuration,t.style.animationName=S.current.animationName),p(r)}},[h.open,r]),(0,c.jsx)(u.sG.div,{"data-state":A(h.open),"data-disabled":h.disabled?"":void 0,id:h.contentId,hidden:!b,...o,ref:f,style:{"--radix-collapsible-content-height":y?"".concat(y,"px"):void 0,"--radix-collapsible-content-width":w?"".concat(w,"px"):void 0,...t.style},children:b&&s})});function A(t){return t?"open":"closed"}var S=y,E=w,C=b},62625:(t,e,i)=>{i.d(e,{c3:()=>s});var n=i(20035);function r(t,e){return(...t)=>{try{return e(...t)}catch{throw Error(void 0)}}}let s=r(0,n.c3);r(0,n.kc)},64068:(t,e,i)=>{i.d(e,{H4:()=>P,_V:()=>w,bL:()=>x});var n=i(38425),r=i(41811),s=i(95746),o=i(45816),a=i(75032),l=i(62573),u="Avatar",[h,d]=(0,r.A)(u),[c,p]=h(u),m=n.forwardRef((t,e)=>{let{__scopeAvatar:i,...r}=t,[s,o]=n.useState("idle");return(0,l.jsx)(c,{scope:i,imageLoadingStatus:s,onImageLoadingStatusChange:o,children:(0,l.jsx)(a.sG.span,{...r,ref:e})})});m.displayName=u;var f="AvatarImage",v=n.forwardRef((t,e)=>{let{__scopeAvatar:i,src:r,onLoadingStatusChange:u=()=>{},...h}=t,d=p(f,i),c=function(t,e){let[i,r]=n.useState("idle");return(0,o.N)(()=>{if(!t){r("error");return}let i=!0,n=new window.Image,s=t=>()=>{i&&r(t)};return r("loading"),n.onload=s("loaded"),n.onerror=s("error"),n.src=t,e&&(n.referrerPolicy=e),()=>{i=!1}},[t,e]),i}(r,h.referrerPolicy),m=(0,s.c)(t=>{u(t),d.onImageLoadingStatusChange(t)});return(0,o.N)(()=>{"idle"!==c&&m(c)},[c,m]),"loaded"===c?(0,l.jsx)(a.sG.img,{...h,ref:e,src:r}):null});v.displayName=f;var g="AvatarFallback",y=n.forwardRef((t,e)=>{let{__scopeAvatar:i,delayMs:r,...s}=t,o=p(g,i),[u,h]=n.useState(void 0===r);return n.useEffect(()=>{if(void 0!==r){let t=window.setTimeout(()=>h(!0),r);return()=>window.clearTimeout(t)}},[r]),u&&"loaded"!==o.imageLoadingStatus?(0,l.jsx)(a.sG.span,{...s,ref:e}):null});y.displayName=g;var x=m,w=v,P=y},66534:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(59017).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},66670:(t,e,i)=>{i.d(e,{E:()=>r});var n=i(38425);let r=i(81828).B?n.useLayoutEffect:n.useEffect},80599:(t,e,i)=>{i.d(e,{default:()=>s});var n=i(20035),r=i(62573);function s(t){let{locale:e,...i}=t;if(!e)throw Error(void 0);return(0,r.jsx)(n.Dk,{locale:e,...i})}},81828:(t,e,i)=>{i.d(e,{B:()=>n});let n="undefined"!=typeof window},89580:(t,e,i)=>{i.d(e,{Q:()=>n});let n=(0,i(38425).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},93657:(t,e,i)=>{i.d(e,{DT:()=>l,FP:()=>o,TK:()=>r,Zn:()=>s,aM:()=>a,x3:()=>u});var n=i(40944);function r(t){return"string"==typeof t?{pathname:t}:t}function s(t){let e=new URLSearchParams;
1for(let[i,n]of Object.entries(t))Array.isArray(n)?n.forEach(t=>{e.append(i,String(t))}):e.set(i,String(n));return"?"+e.toString()}function o({pathname:t,locale:e,params:i,pathnames:r,query:o}){function a(t){let e=r[t];return e||(e=t),e}function l(t,r){let a=(0,n.Wl)(t,e,r);return i&&Object.entries(i).forEach(([t,e])=>{let i,n;Array.isArray(e)?(i=`(\\[)?\\[...${t}\\](\\])?`,n=e.map(t=>String(t)).join("/")):(i=`\\[${t}\\]`,n=String(e)),a=a.replace(RegExp(i,"g"),n)}),a=a.replace(/\[\[\.\.\..+\]\]/g,""),a=(0,n.po)(a),o&&(a+=s(o)),a}if("string"==typeof t)return l(a(t),t);{let{pathname:e,...i}=t;return{...i,pathname:l(a(e),e)}}}function a(t,e,i){let r=(0,n.FD)(Object.keys(i)),s=decodeURI(e);for(let e of r){let r=i[e];if("string"==typeof r){if((0,n.ql)(r,s))return e}else if((0,n.ql)((0,n.Wl)(r,t,e),s))return e}return e}function l(t,e=window.location.pathname){return"/"===t?e:e.replace(t,"")}function u(t,e,i,r){let s,{mode:o}=i.localePrefix;return void 0!==r?s=r:(0,n._x)(t)&&("always"===o?s=!0:"as-needed"===o&&(s=i.domains?!i.domains.some(t=>t.defaultLocale===e):e!==i.defaultLocale)),s?(0,n.PJ)((0,n.XP)(e,i.localePrefix),t):t}}}]);
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.