"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[571],{1581:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}}),i(6351);let n=function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return t};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},343:function(t,e,i){function n(t,e,i,n){return!1}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getDomainLocale",{enumerable:!0,get:function(){return n}}),i(6351),("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},2452:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return P}});let n=i(6338),r=i(1433),s=n._(i(3744)),o=i(5661),a=i(4563),l=i(6576),u=i(5765),h=i(1581),c=i(4218),d=i(5012),p=i(7532),f=i(343),m=i(1181),g=i(110),v=new Set;function y(t,e,i,n,r,s){if("undefined"!=typeof window&&(s||(0,a.isLocalURL)(e))){if(!n.bypassPrefetchedCheck){let r=e+"%"+i+"%"+(void 0!==n.locale?n.locale:"locale"in t?t.locale:void 0);if(v.has(r))return;v.add(r)}(async()=>s?t.prefetch(e,r):t.prefetch(e,i,n))().catch(t=>{})}}function x(t){return"string"==typeof t?t:(0,l.formatUrl)(t)}let P=s.default.forwardRef(function(t,e){let i,n;let{href:l,as:v,children:P,prefetch:b=null,passHref:w,replace:S,shallow:T,scroll:A,locale:E,onClick:M,onMouseEnter:R,onTouchStart:C,legacyBehavior:V=!1,...j}=t;i=P,V&&("string"==typeof i||"number"==typeof i)&&(i=(0,r.jsx)("a",{children:i}));let k=s.default.useContext(c.RouterContext),D=s.default.useContext(d.AppRouterContext),O=null!=k?k:D,L=!k,F=!1!==b,B=null===b?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:I,as:U}=s.default.useMemo(()=>{if(!k){let t=x(l);return{href:t,as:v?x(v):t}}let[t,e]=(0,o.resolveHref)(k,l,!0);return{href:t,as:v?(0,o.resolveHref)(k,v):e||t}},[k,l,v]),N=s.default.useRef(I),_=s.default.useRef(U);V&&(n=s.default.Children.only(i));let W=V?n&&"object"==typeof n&&n.ref:e,[$,z,K]=(0,p.useIntersection)({rootMargin:"200px"}),Y=s.default.useCallback(t=>{(_.current!==U||N.current!==I)&&(K(),_.current=U,N.current=I),$(t),W&&("function"==typeof W?W(t):"object"==typeof W&&(W.current=t))},[U,W,I,K,$]);s.default.useEffect(()=>{O&&z&&F&&y(O,I,U,{locale:E},{kind:B},L)},[U,I,z,E,F,null==k?void 0:k.locale,O,L,B]);let H={ref:Y,onClick(t){V||"function"!=typeof M||M(t),V&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(t),O&&!t.defaultPrevented&&function(t,e,i,n,r,o,l,u,h){let{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&(function(t){let e=t.currentTarget.getAttribute("target");return e&&"_self"!==e||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which}(t)||!h&&!(0,a.isLocalURL)(i)))return;t.preventDefault();let d=()=>{let t=null==l||l;"beforePopState"in e?e[r?"replace":"push"](i,n,{shallow:o,locale:u,scroll:t}):e[r?"replace":"push"](n||i,{scroll:t})};h?s.default.startTransition(d):d()}(t,O,I,U,S,T,A,E,L)},onMouseEnter(t){V||"function"!=typeof R||R(t),V&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(t),O&&(F||!L)&&y(O,I,U,{locale:E,priority:!0,bypassPrefetchedCheck:!0},{kind:B},L)},onTouchStart:function(t){V||"function"!=typeof C||C(t),V&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(t),O&&(F||!L)&&y(O,I,U,{locale:E,priority:!0,bypassPrefetchedCheck:!0},{kind:B},L)}};if((0,u.isAbsoluteUrl)(U))H.href=U;else if(!V||w||"a"===n.type&&!("href"in n.props)){let t=void 0!==E?E:null==k?void 0:k.locale,e=(null==k?void 0:k.isLocaleDomain)&&(0,f.getDomainLocale)(U,t,null==k?void 0:k.locales,null==k?void 0:k.domainLocales);H.href=e||(0,m.addBasePath)((0,h.addLocale)(U,t,null==k?void 0:k.defaultLocale))}return V?s.default.cloneElement(n,H):(0,r.jsx)("a",{...j,...H,children:i})});("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},367:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return i}});let i="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(t){let e=Date.now();return self.setTimeout(function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(t){return clearTimeout(t)};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},5661:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"resolveHref",{enumerable:!0,get:function(){return c}});let n=i(2019),r=i(6576),s=i(2438),o=i(5765),a=i(6351),l=i(4563),u=i(5817),h=i(9555);function c(t,e,i){let c;let d="string"==typeof e?e:(0,r.formatWithValidation)(e),p=d.match(/^[a-zA-Z]{1,}:\/\//),f=p?d.slice(p[0].length):d;if((f.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+t.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let e=(0,o.normalizeRepeatedSlashes)(f);d=(p?p[0]:"")+e}if(!(0,l.isLocalURL)(d))return i?[d]:d;try{c=new URL(d.startsWith("#")?t.asPath:t.pathname,"http://n")}catch(t){c=new URL("/","http://n")}try{let t=new URL(d,c);t.pathname=(0,a.normalizePathTrailingSlash)(t.pathname);let e="";if((0,u.isDynamicRoute)(t.pathname)&&t.searchParams&&i){let i=(0,n.searchParamsToUrlQuery)(t.searchParams),{result:o,params:a}=(0,h.interpolateAs)(t.pathname,t.pathname,i);o&&(e=(0,r.formatWithValidation)({pathname:o,hash:t.hash,query:(0,s.omit)(i,a)}))}let o=t.origin===c.origin?t.href.slice(t.origin.length):t.href;return i?[o,e||o]:o}catch(t){return i?[d]:d}}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},7532:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useIntersection",{enumerable:!0,get:function(){return l}});let n=i(3744),r=i(367),s="function"==typeof IntersectionObserver,o=new Map,a=[];function l(t){let{rootRef:e,rootMargin:i,disabled:l}=t,u=l||!s,[h,c]=(0,n.useState)(!1),d=(0,n.useRef)(null),p=(0,n.useCallback)(t=>{d.current=t},[]);return(0,n.useEffect)(()=>{if(s){if(u||h)return;let t=d.current;if(t&&t.tagName)return function(t,e,i){let{id:n,observer:r,elements:s}=function(t){let e;let i={root:t.root||null,margin:t.rootMargin||""},n=a.find(t=>t.root===i.root&&t.margin===i.margin);if(n&&(e=o.get(n)))return e;let r=new Map;return e={id:i,observer:new IntersectionObserver(t=>{t.forEach(t=>{let e=r.get(t.target),i=t.isIntersecting||t.intersectionRatio>0;e&&i&&e(i)})},t),elements:r},a.push(i),o.set(i,e),e}(i);return s.set(t,e),r.observe(t),function(){if(s.delete(t),r.unobserve(t),0===s.size){r.disconnect(),o.delete(n);let t=a.findIndex(t=>t.root===n.root&&t.margin===n.margin);t>-1&&a.splice(t,1)}}}(t,t=>t&&c(t),{root:null==e?void 0:e.current,rootMargin:i})}else if(!h){let t=(0,r.requestIdleCallback)(()=>c(!0));return()=>(0,r.cancelIdleCallback)(t)}},[u,i,e,h,d.current]),[p,h,(0,n.useCallback)(()=>{c(!1)},[])]}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},9703:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return r}});let i=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function r(t){return i.test(t)?t.replace(n,"\\$&"):t}},4218:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});let n=i(6338)._(i(3744)).default.createContext(null)},6576:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{formatUrl:function(){return s},formatWithValidation:function(){return a},urlObjectKeys:function(){return o}});let n=i(3921)._(i(2019)),r=/https?|ftp|gopher|file/;function s(t){let{auth:e,hostname:i}=t,s=t.protocol||"",o=t.pathname||"",a=t.hash||"",l=t.query||"",u=!1;e=e?encodeURIComponent(e).replace(/%3A/i,":")+"@":"",t.host?u=e+t.host:i&&(u=e+(~i.indexOf(":")?"["+i+"]":i),t.port&&(u+=":"+t.port)),l&&"object"==typeof l&&(l=String(n.urlQueryToSearchParams(l)));let h=t.search||l&&"?"+l||"";return s&&!s.endsWith(":")&&(s+=":"),t.slashes||(!s||r.test(s))&&!1!==u?(u="//"+(u||""),o&&"/"!==o[0]&&(o="/"+o)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),h&&"?"!==h[0]&&(h="?"+h),""+s+u+(o=o.replace(/[?#]/g,encodeURIComponent))+(h=h.replace("#","%23"))+a}let o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function a(t){return s(t)}},5817:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return r.isDynamicRoute}});let n=i(3558),r=i(9926)},9555:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return s}});let n=i(1985),r=i(8991);function s(t,e,i){let s="",o=(0,r.getRouteRegex)(t),a=o.groups,l=(e!==t?(0,n.getRouteMatcher)(o)(e):"")||i;s=t;let u=Object.keys(a);return u.every(t=>{let e=l[t]||"",{repeat:i,optional:n}=a[t],r="["+(i?"...":"")+t+"]";return n&&(r=(e?"":"/")+"["+r+"]"),i&&!Array.isArray(e)&&(e=[e]),(n||t in l)&&(s=s.replace(r,i?e.map(t=>encodeURIComponent(t)).join("/"):encodeURIComponent(e))||"/")})||(s=""),{params:u,result:s}}},9926:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return s}});let n=i(4014),r=/\/\[[^/]+?\](?=\/|$)/;function s(t){return(0,n.isInterceptionRouteAppPath)(t)&&(t=(0,n.extractInterceptionRouteInformation)(t).interceptedRoute),r.test(t)}},4563:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return s}});let n=i(5765),r=i(8198);function s(t){if(!(0,n.isAbsoluteUrl)(t))return!0;try{let e=(0,n.getLocationOrigin)(),i=new URL(t,e);return i.origin===e&&(0,r.hasBasePath)(i.pathname)}catch(t){return!1}}},2438:function(t,e){function i(t,e){let i={};return Object.keys(t).forEach(n=>{e.includes(n)||(i[n]=t[n])}),i}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return i}})},2019:function(t,e){function i(t){let e={};return t.forEach((t,i)=>{void 0===e[i]?e[i]=t:Array.isArray(e[i])?e[i].push(t):e[i]=[e[i],t]}),e}function n(t){return"string"!=typeof t&&("number"!=typeof t||isNaN(t))&&"boolean"!=typeof t?"":String(t)}function r(t){let e=new URLSearchParams;return Object.entries(t).forEach(t=>{let[i,r]=t;Array.isArray(r)?r.forEach(t=>e.append(i,n(t))):e.set(i,n(r))}),e}function s(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return i.forEach(e=>{Array.from(e.keys()).forEach(e=>t.delete(e)),e.forEach((e,i)=>t.append(i,e))}),t}Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{assign:function(){return s},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return r}})},1985:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});let n=i(5765);function r(t){let{re:e,groups:i}=t;return t=>{let r=e.exec(t);if(!r)return!1;let s=t=>{try{return decodeURIComponent(t)}catch(t){throw new n.DecodeError("failed to decode param")}},o={};return Object.keys(i).forEach(t=>{let e=i[t],n=r[e.pos];void 0!==n&&(o[t]=~n.indexOf("/")?n.split("/").map(t=>s(t)):e.repeat?[s(n)]:s(n))}),o}}},8991:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{getNamedMiddlewareRegex:function(){return d},getNamedRouteRegex:function(){return c},getRouteRegex:function(){return l},parseParameter:function(){return o}});let n=i(4014),r=i(9703),s=i(3785);function o(t){let e=t.startsWith("[")&&t.endsWith("]");e&&(t=t.slice(1,-1));let i=t.startsWith("...");return i&&(t=t.slice(3)),{key:t,repeat:i,optional:e}}function a(t){let e=(0,s.removeTrailingSlash)(t).slice(1).split("/"),i={},a=1;return{parameterizedRoute:e.map(t=>{let e=n.INTERCEPTION_ROUTE_MARKERS.find(e=>t.startsWith(e)),s=t.match(/\[((?:\[.*\])|.+)\]/);if(e&&s){let{key:t,optional:n,repeat:l}=o(s[1]);return i[t]={pos:a++,repeat:l,optional:n},"/"+(0,r.escapeStringRegexp)(e)+"([^/]+?)"}if(!s)return"/"+(0,r.escapeStringRegexp)(t);{let{key:t,repeat:e,optional:n}=o(s[1]);return i[t]={pos:a++,repeat:e,optional:n},e?n?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:i}}function l(t){let{parameterizedRoute:e,groups:i}=a(t);return{re:RegExp("^"+e+"(?:/)?$"),groups:i}}function u(t){let{interceptionMarker:e,getSafeRouteKey:i,segment:n,routeKeys:s,keyPrefix:a}=t,{key:l,optional:u,repeat:h}=o(n),c=l.replace(/\W/g,"");a&&(c=""+a+c);let d=!1;(0===c.length||c.length>30)&&(d=!0),isNaN(parseInt(c.slice(0,1)))||(d=!0),d&&(c=i()),a?s[c]=""+a+l:s[c]=l;let p=e?(0,r.escapeStringRegexp)(e):"";return h?u?"(?:/"+p+"(?<"+c+">.+?))?":"/"+p+"(?<"+c+">.+?)":"/"+p+"(?<"+c+">[^/]+?)"}function h(t,e){let i;let o=(0,s.removeTrailingSlash)(t).slice(1).split("/"),a=(i=0,()=>{let t="",e=++i;for(;e>0;)t+=String.fromCharCode(97+(e-1)%26),e=Math.floor((e-1)/26);return t}),l={};return{namedParameterizedRoute:o.map(t=>{let i=n.INTERCEPTION_ROUTE_MARKERS.some(e=>t.startsWith(e)),s=t.match(/\[((?:\[.*\])|.+)\]/);if(i&&s){let[i]=t.split(s[0]);return u({getSafeRouteKey:a,interceptionMarker:i,segment:s[1],routeKeys:l,keyPrefix:e?"nxtI":void 0})}return s?u({getSafeRouteKey:a,segment:s[1],routeKeys:l,keyPrefix:e?"nxtP":void 0}):"/"+(0,r.escapeStringRegexp)(t)}).join(""),routeKeys:l}}function c(t,e){let i=h(t,e);return{...l(t),namedRegex:"^"+i.namedParameterizedRoute+"(?:/)?$",routeKeys:i.routeKeys}}function d(t,e){let{parameterizedRoute:i}=a(t),{catchAll:n=!0}=e;if("/"===i)return{namedRegex:"^/"+(n?".*":"")+"$"};let{namedParameterizedRoute:r}=h(t,!1);return{namedRegex:"^"+r+(n?"(?:(/.*)?)":"")+"$"}}},3558:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return n}});class i{insert(t){this._insert(t.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(t){void 0===t&&(t="/");let e=[...this.children.keys()].sort();null!==this.slugName&&e.splice(e.indexOf("[]"),1),null!==this.restSlugName&&e.splice(e.indexOf("[...]"),1),null!==this.optionalRestSlugName&&e.splice(e.indexOf("[[...]]"),1);let i=e.map(e=>this.children.get(e)._smoosh(""+t+e+"/")).reduce((t,e)=>[...t,...e],[]);if(null!==this.slugName&&i.push(...this.children.get("[]")._smoosh(t+"["+this.slugName+"]/")),!this.placeholder){let e="/"===t?"/":t.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+e+'" and "'+e+"[[..."+this.optionalRestSlugName+']]").');i.unshift(e)}return null!==this.restSlugName&&i.push(...this.children.get("[...]")._smoosh(t+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&i.push(...this.children.get("[[...]]")._smoosh(t+"[[..."+this.optionalRestSlugName+"]]/")),i}_insert(t,e,n){if(0===t.length){this.placeholder=!1;return}if(n)throw Error("Catch-all must be the last part of the URL.");let r=t[0];if(r.startsWith("[")&&r.endsWith("]")){let i=r.slice(1,-1),o=!1;if(i.startsWith("[")&&i.endsWith("]")&&(i=i.slice(1,-1),o=!0),i.startsWith("...")&&(i=i.substring(3),n=!0),i.startsWith("[")||i.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+i+"').");if(i.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+i+"').");function s(t,i){if(null!==t&&t!==i)throw Error("You cannot use different slug names for the same dynamic path ('"+t+"' !== '"+i+"').");e.forEach(t=>{if(t===i)throw Error('You cannot have the same slug name "'+i+'" repeat within a single dynamic path');if(t.replace(/\W/g,"")===r.replace(/\W/g,""))throw Error('You cannot have the slug names "'+t+'" and "'+i+'" differ only by non-word symbols within a single dynamic path')}),e.push(i)}if(n){if(o){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+t[0]+'" ).');s(this.optionalRestSlugName,i),this.optionalRestSlugName=i,r="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+t[0]+'").');s(this.restSlugName,i),this.restSlugName=i,r="[...]"}}else{if(o)throw Error('Optional route parameters are not yet supported ("'+t[0]+'").');s(this.slugName,i),this.slugName=i,r="[]"}}this.children.has(r)||this.children.set(r,new i),this.children.get(r)._insert(t.slice(1),e,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(t){let e=new i;return t.forEach(t=>e.insert(t)),e.smoosh()}},5765:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{DecodeError:function(){return f},MiddlewareNotFoundError:function(){return y},MissingStaticPage:function(){return v},NormalizeError:function(){return m},PageNotFoundError:function(){return g},SP:function(){return d},ST:function(){return p},WEB_VITALS:function(){return i},execOnce:function(){return n},getDisplayName:function(){return l},getLocationOrigin:function(){return o},getURL:function(){return a},isAbsoluteUrl:function(){return s},isResSent:function(){return u},loadGetInitialProps:function(){return c},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return x}});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function n(t){let e,i=!1;return function(){for(var n=arguments.length,r=Array(n),s=0;s<n;s++)r[s]=arguments[s];return i||(i=!0,e=t(...r)),e}}let r=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=t=>r.test(t);function o(){let{protocol:t,hostname:e,port:i}=window.location;return t+"//"+e+(i?":"+i:"")}function a(){let{href:t}=window.location,e=o();return t.substring(e.length)}function l(t){return"string"==typeof t?t:t.displayName||t.name||"Unknown"}function u(t){return t.finished||t.headersSent}function h(t){let e=t.split("?");return e[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(e[1]?"?"+e.slice(1).join("?"):"")}async function c(t,e){let i=e.res||e.ctx&&e.ctx.res;if(!t.getInitialProps)return e.ctx&&e.Component?{pageProps:await c(e.Component,e.ctx)}:{};let n=await t.getInitialProps(e);if(i&&u(i))return n;if(!n)throw Error('"'+l(t)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.');return n}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(t=>"function"==typeof performance[t]);class f extends Error{}class m extends Error{}class g extends Error{constructor(t){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+t}}class v extends Error{constructor(t,e){super(),this.message="Failed to load static file for page: "+t+" "+e}}class y extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function x(t){return JSON.stringify({message:t.message,stack:t.stack})}},4765:function(t,e,i){i.d(e,{p:function(){return n}});let n=(0,i(3744).createContext)({})},402:function(t,e,i){i.d(e,{_:function(){return n}});let n=(0,i(3744).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},2217:function(t,e,i){i.d(e,{O:function(){return n}});let n=(0,i(3744).createContext)(null)},6571:function(t,e,i){let n;function r(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}i.d(e,{E:function(){return sl}});let s=t=>Array.isArray(t);function o(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 a(t){return"string"==typeof t||Array.isArray(t)}function l(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function u(t,e,i,n){if("function"==typeof e){let[r,s]=l(n);e=e(void 0!==i?i:t.custom,r,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,s]=l(n);e=e(void 0!==i?i:t.custom,r,s)}return e}function h(t,e,i){let n=t.getProps();return u(n,e,void 0!==i?i:n.custom,t)}let c=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],d=["initial",...c],p=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],f=new Set(p),m=t=>1e3*t,g=t=>t/1e3,v={type:"spring",stiffness:500,damping:25,restSpeed:10},y=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),x={type:"keyframes",duration:.8},P={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},b=(t,{keyframes:e})=>e.length>2?x:f.has(t)?t.startsWith("scale")?y(e[1]):v:P;function w(t,e){return t?t[e]||t.default||t:void 0}let S={skipAnimations:!1,useManualTiming:!1},T={current:!1},A=t=>null!==t;function E(t,{repeat:e,repeatType:i="loop"},n){let r=t.filter(A),s=e&&"loop"!==i&&e%2==1?0:r.length-1;return s&&void 0!==n?n:r[s]}var M,R,C,V=i(3768);let j=["read","resolveKeyframes","update","preRender","render","postRender"];function k(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=j.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,n=!1,r=!1,s=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){s.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,r=!1,o=!1)=>{let a=o&&n?e:i;return r&&s.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),s.delete(t)},process:t=>{if(o=t,n){r=!0;return}n=!0,[e,i]=[i,e],i.clear(),e.forEach(a),n=!1,r&&(r=!1,l.process(t))}};return l}(s),t),{}),{read:a,resolveKeyframes:l,update:u,preRender:h,render:c,postRender:d}=o,p=()=>{let s=S.useManualTiming?r.timestamp:performance.now();i=!1,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),c.process(r),d.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(p))},f=()=>{i=!0,n=!0,r.isProcessing||t(p)};return{schedule:j.reduce((t,e)=>{let n=o[e];return t[e]=(t,e=!1,r=!1)=>(i||f(),n.schedule(t,e,r)),t},{}),cancel:t=>{for(let e=0;e<j.length;e++)o[j[e]].cancel(t)},state:r,steps:o}}let{schedule:D,cancel:O,state:L,steps:F}=k("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:V.Z,!0),B=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function I(t,e,i,n){if(t===e&&i===n)return V.Z;let r=e=>(function(t,e,i,n,r){let s,o;let a=0;do(s=B(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:B(r(t),e,n)}let U=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,N=t=>e=>1-t(1-e),_=I(.33,1.53,.69,.99),W=N(_),$=U(W),z=t=>(t*=2)<1?.5*W(t):.5*(2-Math.pow(2,-10*(t-1))),K=t=>1-Math.sin(Math.acos(t)),Y=N(K),H=U(K),Z=t=>/^0[^.\s]+$/u.test(t);var q=i(2360);let X=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),G=t=>e=>"string"==typeof e&&e.startsWith(t),Q=G("--"),J=G("var(--"),tt=t=>!!J(t)&&te.test(t.split("/*")[0].trim()),te=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ti=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tn=(t,e,i)=>i>e?e:i<t?t:i,tr={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},ts={...tr,transform:t=>tn(0,1,t)},to={...tr,default:1},ta=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tl=ta("deg"),tu=ta("%"),th=ta("px"),tc=ta("vh"),td=ta("vw"),tp={...tu,parse:t=>tu.parse(t)/100,transform:t=>tu.transform(100*t)},tf=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),tm=t=>t===tr||t===th,tg=(t,e)=>parseFloat(t.split(", ")[e]),tv=(t,e)=>(i,{transform:n})=>{if("none"===n||!n)return 0;let r=n.match(/^matrix3d\((.+)\)$/u);if(r)return tg(r[1],e);{let e=n.match(/^matrix\((.+)\)$/u);return e?tg(e[1],t):0}},ty=new Set(["x","y","z"]),tx=p.filter(t=>!ty.has(t)),tP={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:tv(4,13),y:tv(5,14)};tP.translateX=tP.x,tP.translateY=tP.y;let tb=t=>e=>e.test(t),tw=[tr,th,tu,tl,td,tc,{test:t=>"auto"===t,parse:t=>t}],tS=t=>tw.find(tb(t)),tT=new Set,tA=!1,tE=!1;function tM(){if(tE){let t=Array.from(tT).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 tx.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),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)})}tE=!1,tA=!1,tT.forEach(t=>t.complete()),tT.clear()}function tR(){tT.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tE=!0)})}class tC{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?(tT.add(this),tA||(tA=!0,D.read(tR),D.resolveKeyframes(tM))):(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),tT.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,tT.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let tV=t=>Math.round(1e5*t)/1e5,tj=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tk=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tD=(t,e)=>i=>!!("string"==typeof i&&tk.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tO=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,s,o,a]=n.match(tj);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tL=t=>tn(0,255,t),tF={...tr,transform:t=>Math.round(tL(t))},tB={test:tD("rgb","red"),parse:tO("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+tF.transform(t)+", "+tF.transform(e)+", "+tF.transform(i)+", "+tV(ts.transform(n))+")"},tI={test:tD("#"),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},tU={test:tD("hsl","hue"),parse:tO("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+tu.transform(tV(e))+", "+tu.transform(tV(i))+", "+tV(ts.transform(n))+")"},tN={test:t=>tB.test(t)||tI.test(t)||tU.test(t),parse:t=>tB.test(t)?tB.parse(t):tU.test(t)?tU.parse(t):tI.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tB.transform(t):tU.transform(t)},t_=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tW="number",t$="color",tz=/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 tK(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,o=e.replace(tz,t=>(tN.test(t)?(n.color.push(s),r.push(t$),i.push(tN.parse(t))):t.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(t)):(n.number.push(s),r.push(tW),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function tY(t){return tK(t).values}function tH(t){let{split:e,types:i}=tK(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===tW?r+=tV(t[s]):e===t$?r+=tN.transform(t[s]):r+=t[s]}return r}}let tZ=t=>"number"==typeof t?0:t,tq={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(tj))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(t_))||void 0===i?void 0:i.length)||0)>0},parse:tY,createTransformer:tH,getAnimatableNone:function(t){let e=tY(t);return tH(t)(e.map(tZ))}},tX=new Set(["brightness","contrast","saturate","opacity"]);function tG(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(tj)||[];if(!n)return t;let r=i.replace(n,""),s=tX.has(e)?1:0;return n!==i&&(s*=100),e+"("+s+r+")"}let tQ=/\b([a-z-]*)\(.*?\)/gu,tJ={...tq,getAnimatableNone:t=>{let e=t.match(tQ);return e?e.map(tG).join(" "):t}},t0={...tr,transform:Math.round},t1={borderWidth:th,borderTopWidth:th,borderRightWidth:th,borderBottomWidth:th,borderLeftWidth:th,borderRadius:th,radius:th,borderTopLeftRadius:th,borderTopRightRadius:th,borderBottomRightRadius:th,borderBottomLeftRadius:th,width:th,maxWidth:th,height:th,maxHeight:th,top:th,right:th,bottom:th,left:th,padding:th,paddingTop:th,paddingRight:th,paddingBottom:th,paddingLeft:th,margin:th,marginTop:th,marginRight:th,marginBottom:th,marginLeft:th,backgroundPositionX:th,backgroundPositionY:th,rotate:tl,rotateX:tl,rotateY:tl,rotateZ:tl,scale:to,scaleX:to,scaleY:to,scaleZ:to,skew:tl,skewX:tl,skewY:tl,distance:th,translateX:th,translateY:th,translateZ:th,x:th,y:th,z:th,perspective:th,transformPerspective:th,opacity:ts,originX:tp,originY:tp,originZ:th,zIndex:t0,size:th,fillOpacity:ts,strokeOpacity:ts,numOctaves:t0},t5={...t1,color:tN,backgroundColor:tN,outlineColor:tN,fill:tN,stroke:tN,borderColor:tN,borderTopColor:tN,borderRightColor:tN,borderBottomColor:tN,borderLeftColor:tN,filter:tJ,WebkitFilter:tJ},t3=t=>t5[t];function t2(t,e){let i=t3(t);return i!==tJ&&(i=tq),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let t4=new Set(["auto","none","0"]);class t9 extends tC{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&&tt(n=n.trim())){let r=function t(e,i,n=1){(0,q.k)(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=ti.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 X(t)?parseFloat(t):t}return tt(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(),!tf.has(i)||2!==t.length)return;let[n,r]=t,s=tS(n),o=tS(r);if(s!==o){if(tm(s)&&tm(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||Z(n))&&i.push(e)}i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!t4.has(e)&&tK(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=t2(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tP[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]=tP[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.forEach(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}function t6(t){return"function"==typeof t}function t7(){n=void 0}let t8={now:()=>(void 0===n&&t8.set(L.isProcessing||S.useManualTiming?L.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(t7)}},et=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tq.test(t)||"0"===t)&&!t.startsWith("url("));class ee{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=t8.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||(tR(),tM()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=t8.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=et(r,e),a=et(s,e);return(0,q.K)(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||t6(i))&&n)}(t,i,n,r)){if(T.current||!s){null==a||a(E(t,this.options,e)),null==o||o(),this.resolveFinishedPromise();return}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)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function ei(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}function en(t,e){return t*Math.sqrt(1-e*e)}let er=["duration","bounce"],es=["stiffness","damping","mass"];function eo(t,e){return e.some(e=>void 0!==t[e])}function ea({keyframes:t,restDelta:e,restSpeed:i,...n}){let r;let s=t[0],o=t[t.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:h,duration:c,velocity:d,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!eo(t,es)&&eo(t,er)){let i=function({duration:t=800,bounce:e=.25,velocity:i=0,mass:n=1}){let r,s;(0,q.K)(t<=m(10),"Spring duration must be 10 seconds or less");let o=1-e;o=tn(.05,1,o),t=tn(.01,10,g(t)),o<1?(r=e=>{let n=e*o,r=n*t;return .001-(n-i)/en(e,o)*Math.exp(-r)},s=e=>{let n=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=en(Math.pow(e,2),o);return(n*i+i-s)*Math.exp(-n)*(-r(e)+.001>0?-1:1)/a}):(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=m(t),isNaN(a))return{stiffness:100,damping:10,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:1}).isResolvedFromDuration=!0}return e}({...n,velocity:-g(n.velocity||0)}),f=d||0,v=u/(2*Math.sqrt(l*h)),y=o-s,x=g(Math.sqrt(l/h)),P=5>Math.abs(y);if(i||(i=P?.01:2),e||(e=P?.005:.5),v<1){let t=en(x,v);r=e=>o-Math.exp(-v*x*e)*((f+v*x*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===v)r=t=>o-Math.exp(-x*t)*(y+(f+x*y)*t);else{let t=x*Math.sqrt(v*v-1);r=e=>{let i=Math.exp(-v*x*e),n=Math.min(t*e,300);return o-i*((f+v*x*y)*Math.sinh(n)+t*y*Math.cosh(n))/t}}return{calculatedDuration:p&&c||null,next:t=>{let n=r(t);if(p)a.done=t>=c;else{let s=0;v<1&&(s=0===t?m(f):ei(r,t,n));let l=Math.abs(s)<=i,u=Math.abs(o-n)<=e;a.done=l&&u}return a.value=a.done?o:n,a}}}function el({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 c,d;let p=t[0],f={done:!1,value:p},m=t=>void 0!==a&&t<a||void 0!==l&&t>l,g=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,v=i*e,y=p+v,x=void 0===o?y:o(y);x!==y&&(v=x-p);let P=t=>-v*Math.exp(-t/n),b=t=>x+P(t),w=t=>{let e=P(t),i=b(t);f.done=Math.abs(e)<=u,f.value=f.done?x:i},S=t=>{m(f.value)&&(c=t,d=ea({keyframes:[f.value,g(f.value)],velocity:ei(b,t,f.value),damping:r,stiffness:s,restDelta:u,restSpeed:h}))};return S(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,w(t),S(t)),void 0!==c&&t>=c)?d.next(t-c):(e||w(t),f)}}}let eu=I(.42,0,1,1),eh=I(0,0,.58,1),ec=I(.42,0,.58,1),ed=t=>Array.isArray(t)&&"number"!=typeof t[0],ep=t=>Array.isArray(t)&&"number"==typeof t[0],ef={linear:V.Z,easeIn:eu,easeInOut:ec,easeOut:eh,circIn:K,circInOut:H,circOut:Y,backIn:W,backInOut:$,backOut:_,anticipate:z},em=t=>{if(ep(t)){(0,q.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,r]=t;return I(e,i,n,r)}return"string"==typeof t?((0,q.k)(void 0!==ef[t],`Invalid easing type '${t}'`),ef[t]):t},eg=(t,e)=>i=>e(t(i)),ev=(...t)=>t.reduce(eg),ey=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n},ex=(t,e,i)=>t+(e-t)*i;function eP(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 eb(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)},eS=[tI,tB,tU],eT=t=>eS.find(e=>e.test(t));function eA(t){let e=eT(t);if((0,q.K)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===tU&&(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=eP(a,n,t+1/3),s=eP(a,n,t),o=eP(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 eE=(t,e)=>{let i=eA(t),n=eA(e);if(!i||!n)return eb(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=ex(i.alpha,n.alpha,t),tB.transform(r))},eM=new Set(["none","hidden"]);function eR(t,e){return i=>ex(t,e,i)}function eC(t){return"number"==typeof t?eR:"string"==typeof t?tt(t)?eb:tN.test(t)?eE:ek:Array.isArray(t)?eV:"object"==typeof t?tN.test(t)?eE:ej:eb}function eV(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>eC(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function ej(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=eC(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=tq.createTransformer(e),n=tK(t),r=tK(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?eM.has(t)&&!r.values.length||eM.has(e)&&!n.values.length?eM.has(t)?i=>i<=0?t:e:i=>i>=1?e:t:ev(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):((0,q.K)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),eb(t,e))};function eD(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?ex(t,e,i):eC(t)(t,e)}function eO({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let r=ed(n)?n.map(em):em(n),s={done:!1,value:e[0]},o=function(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;if((0,q.k)(s===e.length,"Both input and output ranges must be the same length"),1===s)return()=>e[0];if(2===s&&t[0]===t[1])return()=>e[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let n=[],r=i||eD,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=ev(Array.isArray(e)?e[i]||V.Z:e,s)),n.push(s)}return n}(e,n,r),a=o.length,l=e=>{let i=0;if(a>1)for(;i<t.length-2&&!(e<t[i+1]);i++);let n=ey(t[i],t[i+1],e);return o[i](n)};return i?e=>l(tn(t[0],t[s-1],e)):l}((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=ey(0,e,n);t.push(ex(i,1,r))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(r)?r:e.map(()=>r||ec).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=o(e),s.done=e>=t,s)}}let eL=t=>{let e=({timestamp:e})=>t(e);return{start:()=>D.update(e,!0),stop:()=>O(e),now:()=>L.isProcessing?L.timestamp:t8.now()}},eF={decay:el,inertia:el,tween:eO,keyframes:eO,spring:ea},eB=t=>t/100;class eI extends ee{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)||tC;this.resolver=new s(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}initPlayback(t){let e,i;let{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:o,velocity:a=0}=this.options,l=t6(n)?n:eF[n]||eO;l!==eO&&"number"!=typeof t[0]&&(e=ev(eB,eD(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=function(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}(u));let{calculatedDuration:h}=u,c=h+s;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:h,resolvedDuration:c,totalDuration:c*(r+1)-s}}onPostResolved(){let{autoplay:t=!0}=this.options;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:c,repeat:d,repeatType:p,repeatDelay:f,onUpdate:m}=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 g=this.currentTime-c*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=r;if(d){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,d+1))%2&&("reverse"===p?(i=1-i,f&&(i-=f/h)):"mirror"===p&&(x=s)),y=tn(0,1,i)*h}let P=v?{done:!1,value:a[0]}:x.next(y);o&&(P.value=o(P.value));let{done:b}=P;v||null===l||(b=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return w&&void 0!==n&&(P.value=E(a,this.options,n)),m&&m(P.value),w&&this.finish(),P}get duration(){let{resolved:t}=this;return t?g(t.calculatedDuration):0}get time(){return g(this.currentTime)}set time(t){t=m(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=g(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=eL,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.updateFinishedPromise(),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()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let eU=new Set(["opacity","clipPath","filter","transform"]),eN=(t,e)=>{let i="",n=Math.max(Math.round(e/10),2);for(let e=0;e<n;e++)i+=t(ey(0,n-1,e))+", ";return`linear(${i.substring(0,i.length-2)})`};function e_(t){let e;return()=>(void 0===e&&(e=t()),e)}let eW={linearEasing:void 0},e$=function(t,e){let i=e_(t);return()=>{var t;return null!==(t=eW[e])&&void 0!==t?t:i()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),ez=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,eK={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ez([0,.65,.55,1]),circOut:ez([.55,0,1,.45]),backIn:ez([.31,.01,.66,-.59]),backOut:ez([.33,1.53,.69,.99])};function eY(t,e){t.timeline=e,t.onfinish=null}let eH=e_(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),eZ={anticipate:z,backInOut:$,circInOut:H};class eq extends ee{constructor(t){super(t);let{name:e,motionValue:i,element:n,keyframes:r}=this.options;this.resolver=new t9(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}initPlayback(t,e){var i,n;let{duration:r=300,times:s,ease:o,type:a,motionValue:l,name:u,startTime:h}=this.options;if(!(null===(i=l.owner)||void 0===i?void 0:i.current))return!1;if("string"==typeof o&&e$()&&o in eZ&&(o=eZ[o]),t6((n=this.options).type)||"spring"===n.type||!function t(e){return!!("function"==typeof e&&e$()||!e||"string"==typeof e&&(e in eK||e$())||ep(e)||Array.isArray(e)&&e.every(t))}(n.ease)){let{onComplete:e,onUpdate:i,motionValue:n,element:l,...u}=this.options,h=function(t,e){let i=new eI({...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]),r=h.duration,s=h.times,o=h.ease,a="keyframes"}let c=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=function t(e,i){if(e)return"function"==typeof e&&e$()?eN(e,i):ep(e)?ez(e):Array.isArray(e)?e.map(e=>t(e,i)||eK.easeOut):eK[e]}(a,r);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:n,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"})}(l.owner.current,u,t,{...this.options,duration:r,times:s,ease:o});return c.startTime=null!=h?h:this.calcStartTime(),this.pendingTimeline?(eY(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:i}=this.options;l.set(E(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:s,type:a,ease:o,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return g(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return g(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=m(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.Z;let{animation:i}=e;eY(i,t)}else this.pendingTimeline=t;return V.Z}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 eI({...u,keyframes:i,duration:n,type:r,ease:s,times:o,isGenerator:!0}),c=m(this.time);t.setWithVelocity(h.sample(c-10).value,h.sample(c).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()}static supports(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o}=t;return eH()&&i&&eU.has(i)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}}let eX=e_(()=>void 0!==window.ScrollTimeline);class eG{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,e){return Promise.all(this.animations).then(t).catch(e)}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=>eX()&&i.attachTimeline?i.attachTimeline(t):e(i));return()=>{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]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}let eQ=(t,e,i,n={},r,s)=>o=>{let a=w(n,t)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=m(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,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)&&(h={...h,...b(t,h)}),h.duration&&(h.duration=m(h.duration)),h.repeatDelay&&(h.repeatDelay=m(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(h.duration=0,0!==h.delay||(c=!0)),(T.current||S.skipAnimations)&&(c=!0,h.duration=0,h.delay=0),c&&!s&&void 0!==e.get()){let t=E(h.keyframes,a);if(void 0!==t)return D.update(()=>{h.onUpdate(t),h.onComplete()}),new eG([])}return!s&&eq.supports(h)?new eq(h):new eI(h)},eJ=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),e0=t=>s(t)?t[t.length-1]||0:t;function e1(t,e){-1===t.indexOf(e)&&t.push(e)}function e5(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class e3{constructor(){this.subscriptions=[]}add(t){return e1(this.subscriptions,t),()=>e5(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 e2=t=>!isNaN(parseFloat(t)),e4={current:void 0};class e9{constructor(t,e={}){this.version="11.11.10",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=t8.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=t8.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=e2(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 e3);let i=this.events[t].add(e);return"change"===t?()=>{i(),D.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 e4.current&&e4.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=t8.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 e6(t,e){return new e9(t,e)}let e7=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),e8="data-"+e7("framerAppearId"),it=t=>!!(t&&t.getVelocity);function ie(t,e){let i=t.getValue("willChange");if(it(i)&&i.add)return i.add(e)}function ii(t,e,{delay:i=0,transitionOverride:n,type:r}={}){var s;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;n&&(o=n);let u=[],c=r&&t.animationState&&t.animationState.getState()[r];for(let e in l){let n=t.getValue(e,null!==(s=t.latestValues[e])&&void 0!==s?s:null),r=l[e];if(void 0===r||c&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(c,e))continue;let a={delay:i,...w(o||{},e)},h=!1;if(window.MotionHandoffAnimation){let i=t.props[e8];if(i){let t=window.MotionHandoffAnimation(i,e,D);null!==t&&(a.startTime=t,h=!0)}}ie(t,e),n.start(eQ(e,n,r,t.shouldReduceMotion&&f.has(e)?{type:!1}:a,t,h));let d=n.animation;d&&u.push(d)}return a&&Promise.all(u).then(()=>{D.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=h(t,e)||{};for(let e in r={...r,...i}){let i=e0(r[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,e6(i))}}(t,a)})}),u}function ir(t,e,i={}){var n;let r=h(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(ii(t,r,i)):()=>Promise.resolve(),a=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(is).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(ir(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:l}=s;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}function is(t,e){return t.sortNodePosition(e)}let io=d.length,ia=[...c].reverse(),il=c.length;function iu(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ih(){return{animate:iu(!0),whileInView:iu(),whileHover:iu(),whileTap:iu(),whileDrag:iu(),whileFocus:iu(),exit:iu()}}class ic{constructor(t){this.isMounted=!1,this.node=t}update(){}}class id extends ic{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>ir(t,e,i)));else if("string"==typeof e)n=ir(t,e,i);else{let r="function"==typeof e?h(t,e,i.custom):e;n=Promise.all(ii(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=ih(),n=!0,l=e=>(i,n)=>{var r;let s=h(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 u(u){let{props:h}=t,c=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<io;t++){let n=d[t],r=e.props[n];(a(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},p=[],f=new Set,m={},g=1/0;for(let e=0;e<il;e++){var v;let d=ia[e],y=i[d],x=void 0!==h[d]?h[d]:c[d],P=a(x),b=d===u?y.isActive:null;!1===b&&(g=e);let w=x===c[d]&&x!==h[d]&&P;if(w&&n&&t.manuallyAnimateOnMount&&(w=!1),y.protectedKeys={...m},!y.isActive&&null===b||!x&&!y.prevProp||r(x)||"boolean"==typeof x)continue;let S=(v=y.prevProp,"string"==typeof x?x!==v:!!Array.isArray(x)&&!o(x,v)),T=S||d===u&&y.isActive&&!w&&P||e>g&&P,A=!1,E=Array.isArray(x)?x:[x],M=E.reduce(l(d),{});!1===b&&(M={});let{prevResolvedValues:R={}}=y,C={...R,...M},V=e=>{T=!0,f.has(e)&&(A=!0,f.delete(e)),y.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in C){let e=M[t],i=R[t];if(!m.hasOwnProperty(t))(s(e)&&s(i)?o(e,i):e===i)?void 0!==e&&f.has(t)?V(t):y.protectedKeys[t]=!0:null!=e?V(t):f.add(t)}y.prevProp=x,y.prevResolvedValues=M,y.isActive&&(m={...m,...M}),n&&t.blockInitialAnimation&&(T=!1);let j=!(w&&S)||A;T&&j&&p.push(...E.map(t=>({animation:t,options:{type:d}})))}if(f.size){let e={};f.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=null!=n?n:null}),p.push({animation:e})}let y=!!p.length;return n&&(!1===h.initial||h.initial===h.animate)&&!t.manuallyAnimateOnMount&&(y=!1),n=!1,y?e(p):Promise.resolve()}return{animateChanges:u,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=u(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=ih(),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 ip=0;class im extends ic{constructor(){super(...arguments),this.id=ip++}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}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}let ig=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function iv(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}let iy=t=>e=>ig(e)&&t(e,iv(e));function ix(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}function iP(t,e,i,n){return ix(t,e,iy(i),n)}let ib=(t,e)=>Math.abs(t-e);class iw{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=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=iA(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(ib(t.x,e.x)**2+ib(t.y,e.y)**2)>=3);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=L;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=iS(e,this.transformPagePoint),D.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=iA("pointercancel"===t.type?this.lastMoveEventInfo:iS(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!ig(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let s=iS(iv(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=L;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,iA(s,this.history)),this.removeListeners=ev(iP(this.contextWindow,"pointermove",this.handlePointerMove),iP(this.contextWindow,"pointerup",this.handlePointerUp),iP(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),O(this.updatePoint)}}function iS(t,e){return e?{point:e(t.point)}:t}function iT(t,e){return{x:t.x-e.x,y:t.y-e.y}}function iA({point:t},e){return{point:t,delta:iT(t,iE(e)),offset:iT(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=iE(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>m(.1)));)i--;if(!n)return{x:0,y:0};let s=g(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,0)}}function iE(t){return t[t.length-1]}function iM(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let iR=iM("dragHorizontal"),iC=iM("dragVertical");function iV(t){let e=!1;if("y"===t)e=iC();else if("x"===t)e=iR();else{let t=iR(),i=iC();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function ij(){let t=iV(!0);return!t||(t(),!1)}function ik(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function iD(t){return t.max-t.min}function iO(t,e,i,n=.5){t.origin=n,t.originPoint=ex(e.min,e.max,t.origin),t.scale=iD(i)/iD(e),t.translate=ex(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 iL(t,e,i,n){iO(t.x,e.x,i.x,n?n.originX:void 0),iO(t.y,e.y,i.y,n?n.originY:void 0)}function iF(t,e,i){t.min=i.min+e.min,t.max=t.min+iD(e)}function iB(t,e,i){t.min=e.min-i.min,t.max=t.min+iD(e)}function iI(t,e,i){iB(t.x,e.x,i.x),iB(t.y,e.y,i.y)}function iU(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 iN(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 i_(t,e,i){return{min:iW(t,e),max:iW(t,i)}}function iW(t,e){return"number"==typeof t?t:t[e]||0}let i$=()=>({translate:0,scale:1,origin:0,originPoint:0}),iz=()=>({x:i$(),y:i$()}),iK=()=>({min:0,max:0}),iY=()=>({x:iK(),y:iK()});function iH(t){return[t("x"),t("y")]}function iZ({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function iq(t){return void 0===t||1===t}function iX({scale:t,scaleX:e,scaleY:i}){return!iq(t)||!iq(e)||!iq(i)}function iG(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 iJ(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function i0(t,e=0,i=1,n,r){t.min=iJ(t.min,e,i,n,r),t.max=iJ(t.max,e,i,n,r)}function i1(t,{x:e,y:i}){i0(t.x,e.translate,e.scale,e.originPoint),i0(t.y,i.translate,i.scale,i.originPoint)}function i5(t,e){t.min=t.min+e,t.max=t.max+e}function i3(t,e,i,n,r=.5){let s=ex(t.min,t.max,r);i0(t,e,i,s,n)}function i2(t,e){i3(t.x,e.x,e.scaleX,e.scale,e.originX),i3(t.y,e.y,e.scaleY,e.scale,e.originY)}function i4(t,e){return iZ(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 i9=({current:t})=>t?t.ownerDocument.defaultView:null,i6=new WeakMap;class i7{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=iY(),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 iw(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(iv(t,"page").point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=iV(i),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iH(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tu.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=iD(n);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),r&&D.postRender(()=>r(t,e)),ie(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.openGlobalLock)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:i9(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&&D.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.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!i8(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?ex(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?ex(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&&ik(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:iU(t.x,i,r),y:iU(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:i_(t,"left","right"),y:i_(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||!ik(e))return!1;let n=e.current;(0,q.k)(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=i4(t,i),{scroll:r}=e;return r&&(i5(n.x,r.offset.x),i5(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o={x:iN((t=r.layout.layoutBox).x,s.x),y:iN(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=iZ(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(!i8(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 ie(this.visualElement,t),i.start(eQ(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(!i8(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]-ex(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!ik(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=iD(t),r=iD(e);return r>n?i=ey(e.min,e.max-n,t.min):n>r&&(i=ey(t.min,t.max-r,e.min)),tn(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(!i8(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set(ex(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;i6.set(this.visualElement,this);let t=iP(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();ik(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()),D.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);i&&(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 i8(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class nt extends ic{constructor(t){super(t),this.removeGroupControls=V.Z,this.removeListeners=V.Z,this.controls=new i7(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||V.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let ne=t=>(e,i)=>{t&&D.postRender(()=>t(e,i))};class ni extends ic{constructor(){super(...arguments),this.removePointerDownListener=V.Z}onPointerDown(t){this.session=new iw(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:i9(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:ne(t),onStart:ne(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&D.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=iP(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 nn=i(1433),nr=i(3744),ns=i(2217),no=i(4765);let na=(0,nr.createContext)({}),nl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nu(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let nh={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!th.test(t))return t;t=parseFloat(t)}let i=nu(t,e.target.x),n=nu(t,e.target.y);return`${i}% ${n}%`}},nc={},{schedule:nd,cancel:np}=k(queueMicrotask,!1);class nf extends nr.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;Object.assign(nc,ng),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()})),nl.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()||D.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]=function(){let t=(0,nr.useContext)(ns.O);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:n}=t,r=(0,nr.useId)();(0,nr.useEffect)(()=>n(r),[]);let s=(0,nr.useCallback)(()=>i&&i(r),[r,i]);return!e&&i?[!1,s]:[!0]}(),n=(0,nr.useContext)(no.p);return(0,nn.jsx)(nf,{...t,layoutGroup:n,switchLayoutGroup:(0,nr.useContext)(na),isPresent:e,safeToRemove:i})}let ng={borderRadius:{...nh,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nh,borderTopRightRadius:nh,borderBottomLeftRadius:nh,borderBottomRightRadius:nh,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tq.parse(t);if(n.length>5)return t;let r=tq.createTransformer(t),s="number"!=typeof n[0]?1:0,o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=ex(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=["TopLeft","TopRight","BottomLeft","BottomRight"],ny=nv.length,nx=t=>"string"==typeof t?parseFloat(t):t,nP=t=>"number"==typeof t||th.test(t);function nb(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nw=nT(0,.5,Y),nS=nT(.5,.95,V.Z);function nT(t,e,i){return n=>n<t?0:n>e?1:i(ey(t,e,n))}function nA(t,e){t.min=e.min,t.max=e.max}function nE(t,e){nA(t.x,e.x),nA(t.y,e.y)}function nM(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nR(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 nC(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(tu.test(e)&&(e=parseFloat(e),e=ex(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=ex(s.min,s.max,n);t===s&&(a-=e),t.min=nR(t.min,e,i,a,r),t.max=nR(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let nV=["x","scaleX","originX"],nj=["y","scaleY","originY"];function nk(t,e,i,n){nC(t.x,e,nV,i?i.x:void 0,n?n.x:void 0),nC(t.y,e,nj,i?i.y:void 0,n?n.y:void 0)}function nD(t){return 0===t.translate&&1===t.scale}function nO(t){return nD(t.x)&&nD(t.y)}function nL(t,e){return t.min===e.min&&t.max===e.max}function nF(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function nB(t,e){return nF(t.x,e.x)&&nF(t.y,e.y)}function nI(t){return iD(t.x)/iD(t.y)}function nU(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class nN{constructor(){this.members=[]}add(t){e1(this.members,t),t.scheduleRender()}remove(t){if(e5(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;let 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 n_=(t,e)=>t.depth-e.depth;class nW{constructor(){this.children=[],this.isDirty=!1}add(t){e1(this.children,t),this.isDirty=!0}remove(t){e5(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(n_),this.isDirty=!1,this.children.forEach(t)}}function n$(t){let e=it(t)?t.get():t;return eJ(e)?e.toValue():e}let nz={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},nK="undefined"!=typeof window&&void 0!==window.MotionDebug,nY=["","X","Y","Z"],nH={visibility:"hidden"},nZ=0;function nq(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function nX({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=nZ++,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,nK&&(nz.totalNodes=nz.resolvedTargetDeltas=nz.recalculatedProjection=0),this.nodes.forEach(nJ),this.nodes.forEach(n9),this.nodes.forEach(n6),this.nodes.forEach(n0),nK&&window.MotionDebug.record(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 nW)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new e3),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;let n=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=t8.now(),n=({timestamp:e})=>{let r=e-i;r>=250&&(O(n),t(r-250))};return D.read(n,!0),()=>O(n)}(n,0),nl.hasAnimatedSinceResize&&(nl.hasAnimatedSinceResize=!1,this.nodes.forEach(n4))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&s&&(n||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||rn,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!nB(this.targetLayout,n)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...w(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||n4(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,O(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(n7),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[e8];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",D,!(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(n5);return}this.isUpdating||this.nodes.forEach(n3),this.isUpdating=!1,this.nodes.forEach(n2),this.nodes.forEach(nG),this.nodes.forEach(nQ),this.clearAllSnapshots();let t=t8.now();L.delta=tn(0,1e3/60,t-L.timestamp),L.timestamp=t,L.isProcessing=!0,F.update.process(L),F.preRender.process(L),F.render.process(L),L.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nd.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(n1),this.sharedNodes.forEach(n8)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,D.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){D.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}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=iY(),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&&!nO(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&(e||iG(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)),ro((e=n).x),ro(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 iY();let i=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(rl))){let{scroll:t}=this.root;t&&(i5(i.x,t.offset.x),i5(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=iY();if(nE(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&&nE(i,t),i5(i.x,r.offset.x),i5(i.y,r.offset.y))}return i}applyTransform(t,e=!1){let i=iY();nE(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&&i2(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),iG(n.latestValues)&&i2(i,n.latestValues)}return iG(this.latestValues)&&i2(i,this.latestValues),i}removeTransform(t){let e=iY();nE(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!iG(i.latestValues))continue;iX(i.latestValues)&&i.updateSnapshot();let n=iY();nE(n,i.measurePageBox()),nk(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return iG(this.latestValues)&&nk(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!==L.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.isSharedProjectionDirty);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=L.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iY(),this.relativeTargetOrigin=iY(),iI(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),nE(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=iY(),this.targetWithTransforms=iY()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,n=this.relativeTarget,r=this.relativeParent.target,iF(i.x,n.x,r.x),iF(i.y,n.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nE(this.target,this.layout.layoutBox),i1(this.target,this.targetDelta)):nE(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=iY(),this.relativeTargetOrigin=iY(),iI(this.relativeTargetOrigin,this.target,t.target),nE(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}nK&&nz.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||iX(this.parent.latestValues)||iQ(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent: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===L.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;nE(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,n=!1){let r,s;let 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&&i2(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,i1(t,s)),n&&iG(r.latestValues)&&i2(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=iY());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nM(this.prevProjectionDelta.x,this.projectionDelta.x),nM(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),iL(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&nU(this.projectionDelta.x,this.prevProjectionDelta.x)&&nU(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),nK&&nz.recalculatedProjection++}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=iz(),this.projectionDelta=iz(),this.projectionDeltaWithTransform=iz()}setAnimationOrigin(t,e=!1){let i;let n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=iz();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=iY(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(ri));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(rt(o.x,t.x,n),rt(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,f;iI(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,re(p.x,f.x,a.x,n),re(p.y,f.y,a.y,n),i&&(u=this.relativeTarget,d=i,nL(u.x,d.x)&&nL(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=iY()),nE(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=ex(0,void 0!==i.opacity?i.opacity:1,nw(n)),t.opacityExit=ex(void 0!==e.opacity?e.opacity:1,0,nS(n))):s&&(t.opacity=ex(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let r=0;r<ny;r++){let s=`border${nv[r]}Radius`,o=nb(e,s),a=nb(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||nP(o)===nP(a)?(t[s]=Math.max(ex(nx(o),nx(a),n),0),(tu.test(a)||tu.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=ex(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(O(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=D.update(()=>{nl.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,i){let n=it(0)?0:e6(0);return n.start(eQ("",n,1e3,i)),n.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);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&&ra(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||iY();let e=iD(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=iD(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}nE(e,i),i2(e,r),iL(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new nN),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&&nq("z",t,n,this.animationValues);for(let e=0;e<nY.length;e++)nq(`rotate${nY[e]}`,t,n,this.animationValues),nq(`skew${nY[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 nH;let n={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=n$(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=n$(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!iG(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let o=s.animationValues||s.latestValues;this.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,nc){if(void 0===o[t])continue;let{correct:e,applyTo:i}=nc[t],r="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]]=r}else n[t]=r}return this.options.layoutId&&(n.pointerEvents=s===this?n$(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(n5),this.root.sharedNodes.clear()}}}function nG(t){t.updateLayout()}function nQ(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=iD(n);n.min=e[t].min,n.max=n.min+r}):ra(r,i.layoutBox,e)&&iH(n=>{let r=s?i.measuredBox[n]:i.layoutBox[n],o=iD(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=iz();iL(o,e,i.layoutBox);let a=iz();s?iL(a,t.applyTransform(n,!0),i.measuredBox):iL(a,e,i.layoutBox);let l=!nO(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=iY();iI(o,i.layoutBox,r.layoutBox);let a=iY();iI(a,e,s.layoutBox),nB(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,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function nJ(t){nK&&nz.totalNodes++,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 n0(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function n1(t){t.clearSnapshot()}function n5(t){t.clearMeasurements()}function n3(t){t.isLayoutDirty=!1}function n2(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function n4(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function n9(t){t.resolveTargetDelta()}function n6(t){t.calcProjection()}function n7(t){t.resetSkewAndRotation()}function n8(t){t.removeLeadSnapshot()}function rt(t,e,i){t.translate=ex(e.translate,0,i),t.scale=ex(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function re(t,e,i,n){t.min=ex(e.min,i.min,n),t.max=ex(e.max,i.max,n)}function ri(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let rn={duration:.45,ease:[.4,0,.1,1]},rr=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rs=rr("applewebkit/")&&!rr("chrome/")?Math.round:V.Z;function ro(t){t.min=rs(t.min),t.max=rs(t.max)}function ra(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(nI(e)-nI(i)))}function rl(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}let ru=nX({attachResizeListener:(t,e)=>ix(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rh={current:void 0},rc=nX({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rh.current){let t=new ru({});t.mount(window),t.setOptions({layoutScroll:!0}),rh.current=t}return rh.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function rd(t,e){let i=e?"onHoverStart":"onHoverEnd";return iP(t.current,e?"pointerenter":"pointerleave",(n,r)=>{if("touch"===n.pointerType||ij())return;let s=t.getProps();t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",e);let o=s[i];o&&D.postRender(()=>o(n,r))},{passive:!t.getProps()[i]})}class rp extends ic{mount(){this.unmount=ev(rd(this.node,!0),rd(this.node,!1))}unmount(){}}class rf 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=ev(ix(this.node.current,"focus",()=>this.onFocus()),ix(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let rm=(t,e)=>!!e&&(t===e||rm(t,e.parentElement));function rg(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,iv(i))}class rv extends ic{constructor(){super(...arguments),this.removeStartListeners=V.Z,this.removeEndListeners=V.Z,this.removeAccessibleListeners=V.Z,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),n=iP(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:n,globalTapTarget:r}=this.node.getProps(),s=r||rm(this.node.current,t.target)?i:n;s&&D.update(()=>s(t,e))},{passive:!(i.onTap||i.onPointerUp)}),r=iP(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=ev(n,r),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=ix(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=ix(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&rg("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&D.postRender(()=>i(t,e))})}),rg("down",(t,e)=>{this.startPress(t,e)}))}),e=ix(this.node.current,"blur",()=>{this.isPressing&&rg("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=ev(t,e)}}startPress(t,e){this.isPressing=!0;let{onTapStart:i,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&D.postRender(()=>i(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ij()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&D.postRender(()=>i(t,e))}mount(){let t=this.node.getProps(),e=iP(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=ix(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ev(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let ry=new WeakMap,rx=new WeakMap,rP=t=>{let e=ry.get(t.target);e&&e(t)},rb=t=>{t.forEach(rP)},rw={some:0,all:1};class rS 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:rw[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;rx.has(i)||rx.set(i,{});let n=rx.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(rb,{root:t,...e})),n[r]}(e);return ry.set(t,i),n.observe(t),()=>{ry.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(){}}var rT=i(402);let rA=(0,nr.createContext)({});var rE=i(8187);let rM=(0,nr.createContext)({strict:!1});function rR(t){return r(t.animate)||d.some(e=>a(t[e]))}function rC(t){return!!(rR(t)||t.variants)}function rV(t){return Array.isArray(t)?t.join(" "):t}let rj={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"]},rk={};for(let t in rj)rk[t]={isEnabled:e=>rj[t].some(t=>!!e[t])};var rD=i(4773);let rO=Symbol.for("motionComponentSymbol"),rL=["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 rF(t){if("string"!=typeof t||t.includes("-"));else if(rL.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}function rB(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 rI=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function rU(t,e,i,n){for(let i in rB(t,e,void 0,n),e.attrs)t.setAttribute(rI.has(i)?i:e7(i),e.attrs[i])}function rN(t,{layout:e,layoutId:i}){return f.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!nc[t]||"opacity"===t)}function r_(t,e,i){var n;let{style:r}=t,s={};for(let o in r)(it(r[o])||e.style&&it(e.style[o])||rN(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}function rW(t,e,i){let n=r_(t,e,i);for(let i in t)(it(t[i])||it(e[i]))&&(n[-1!==p.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}var r$=i(7724);let rz=t=>(e,i)=>{let n=(0,nr.useContext)(rA),s=(0,nr.useContext)(ns.O),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:i},n,s,o){let a={latestValues:function(t,e,i,n){let s={},o=n(t,{});for(let t in o)s[t]=n$(o[t]);let{initial:a,animate:l}=t,h=rR(t),c=rC(t);e&&c&&!h&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));let d=!!i&&!1===i.initial,p=(d=d||!1===a)?l:a;if(p&&"boolean"!=typeof p&&!r(p)){let e=Array.isArray(p)?p:[p];for(let i=0;i<e.length;i++){let n=u(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=d?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,o,t),renderState:e()};return i&&(a.mount=t=>i(n,t,a)),a})(t,e,n,s);return i?o():(0,r$.h)(o)},rK=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),rY=()=>({...rK(),attrs:{}}),rH=(t,e)=>e&&"number"==typeof t?e.transform(t):t,rZ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rq=p.length;function rX(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(f.has(t)){o=!0;continue}if(Q(t)){r[t]=i;continue}{let e=rH(i,t1[t]);t.startsWith("origin")?(a=!0,s[t]=e):n[t]=e}}if(!e.transform&&(o||i?n.transform=function(t,e,i){let n="",r=!0;for(let s=0;s<rq;s++){let o=p[s],a=t[o];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===(o.startsWith("scale")?1:0):0===parseFloat(a))||i){let t=rH(a,t1[o]);if(!l){r=!1;let e=rZ[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}`}}function rG(t,e,i){return"string"==typeof t?t:th.transform(e+i*t)}let rQ={offset:"stroke-dashoffset",array:"stroke-dasharray"},rJ={offset:"strokeDashoffset",array:"strokeDasharray"};function r0(t,{attrX:e,attrY:i,attrScale:n,originX:r,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},h,c){if(rX(t,u,c),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:p,dimensions:f}=t;d.transform&&(f&&(p.transform=d.transform),delete d.transform),f&&(void 0!==r||void 0!==s||p.transform)&&(p.transformOrigin=function(t,e,i){let n=rG(e,t.x,t.width),r=rG(i,t.y,t.height);return`${n} ${r}`}(f,void 0!==r?r:.5,void 0!==s?s:.5)),void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==o&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?rQ:rJ;t[s.offset]=th.transform(-n);let o=th.transform(e),a=th.transform(i);t[s.array]=`${o} ${a}`}(d,o,a,l,!1)}let r1=t=>"string"==typeof t&&"svg"===t.toLowerCase(),r5={useVisualState:rz({scrapeMotionValuesFromProps:rW,createRenderState:rY,onMount:(t,e,{renderState:i,latestValues:n})=>{D.read(()=>{try{i.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}}),D.render(()=>{r0(i,n,r1(e.tagName),t.transformTemplate),rU(e,i)})}})},r3={useVisualState:rz({scrapeMotionValuesFromProps:r_,createRenderState:rK})};function r2(t,e,i){for(let n in e)it(e[n])||rN(n,i)||(t[n]=e[n])}let r4=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 r9(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||r4.has(t)}let r6=t=>!r9(t);try{(M=require("@emotion/is-prop-valid").default)&&(r6=t=>t.startsWith("on")?!r9(t):M(t))}catch(t){}let r7={current:null},r8={current:!1},st=new WeakMap,se=[...tw,tN,tq],si=t=>se.find(tb(t)),sn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sr{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=tC,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=t8.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,D.render(this.render,!1,!0))};let{latestValues:a,renderState:l}=s;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=rR(e),this.isVariantNode=rC(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:u,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in h){let e=h[t];void 0!==a[t]&&it(e)&&e.set(a[t],!1)}}mount(t){this.current=t,st.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)),r8.current||function(){if(r8.current=!0,rD.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>r7.current=t.matches;t.addListener(e),e()}else r7.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||r7.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in st.delete(this.current),this.projection&&this.projection.unmount(),O(this.notifyUpdate),O(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=f.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&D.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 rk){let e=rk[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];e.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):iY()}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<sn.length;e++){let i=sn[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(it(r))t.addValue(n,r);else if(it(s))t.addValue(n,e6(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,e6(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()}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=e6(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&&(X(n)||Z(n))?n=parseFloat(n):!si(n)&&tq.test(e)&&(n=t2(t,e)),this.setBaseTarget(t,it(n)?n.get():n)),it(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i;let{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=u(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||it(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 e3),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class ss extends sr{constructor(){super(...arguments),this.KeyframeResolver=t9}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]}}class so extends ss{constructor(){super(...arguments),this.type="html",this.renderInstance=rB}readValueFromInstance(t,e){if(f.has(e)){let t=t3(e);return t&&t.default||0}{let i=window.getComputedStyle(t),n=(Q(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return i4(t,e)}build(t,e,i){rX(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return r_(t,e,i)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;it(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class sa extends ss{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=iY}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(f.has(e)){let t=t3(e);return t&&t.default||0}return e=rI.has(e)?e:e7(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return rW(t,e,i)}build(t,e,i){r0(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,n){rU(t,e,i,n)}mount(t){this.isSVGTag=r1(t.tagName),super.mount(t)}}let sl=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))})}((R={animation:{Feature:id},exit:{Feature:im},inView:{Feature:rS},tap:{Feature:rv},focus:{Feature:rf},hover:{Feature:rp},pan:{Feature:ni},drag:{Feature:nt,ProjectionNode:rc,MeasureLayout:nm},layout:{ProjectionNode:rc,MeasureLayout:nm}},C=(t,e)=>rF(t)?new sa(e):new so(e,{allowProjection:t!==nr.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function(t){let{preloadedFeatures:e,createVisualElement:i,useRender:n,useVisualState:r,Component:s}=t;e&&function(t){for(let e in t)rk[e]={...rk[e],...t[e]}}(e);let o=(0,nr.forwardRef)(function(t,e){var o;let l;let u={...(0,nr.useContext)(rT._),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,nr.useContext)(no.p).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:h}=u,c=function(t){let{initial:e,animate:i}=function(t,e){if(rR(t)){let{initial:e,animate:i}=t;return{initial:!1===e||a(e)?e:void 0,animate:a(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,nr.useContext)(rA));return(0,nr.useMemo)(()=>({initial:e,animate:i}),[rV(e),rV(i)])}(t),d=r(t,h);if(!h&&rD.j){(0,nr.useContext)(rM).strict;let t=function(t){let{drag:e,layout:i}=rk;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}}(u);l=t.MeasureLayout,c.visualElement=function(t,e,i,n,r){var s,o;let{visualElement:a}=(0,nr.useContext)(rA),l=(0,nr.useContext)(rM),u=(0,nr.useContext)(ns.O),h=(0,nr.useContext)(rT._).reducedMotion,c=(0,nr.useRef)();n=n||l.renderer,!c.current&&n&&(c.current=n(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h}));let d=c.current,p=(0,nr.useContext)(na);d&&!d.projection&&r&&("html"===d.type||"svg"===d.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&&ik(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(c.current,i,r,p),(0,nr.useInsertionEffect)(()=>{d&&d.update(i,u)});let f=i[e8],m=(0,nr.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,rE.L)(()=>{d&&(window.MotionIsMounted=!0,d.updateFeatures(),nd.render(d.render),m.current&&d.animationState&&d.animationState.animateChanges())}),(0,nr.useEffect)(()=>{d&&(!m.current&&d.animationState&&d.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,f)}),m.current=!1))}),d}(s,d,u,i,t.ProjectionNode)}return(0,nn.jsxs)(rA.Provider,{value:c,children:[l&&c.visualElement?(0,nn.jsx)(l,{visualElement:c.visualElement,...u}):null,n(s,t,(o=c.visualElement,(0,nr.useCallback)(t=>{t&&d.mount&&d.mount(t),o&&(t?o.mount(t):o.unmount()),e&&("function"==typeof e?e(t):ik(e)&&(e.current=t))},[o])),d,h,c.visualElement)]})});return o[rO]=s,o}({...rF(t)?r5:r3,preloadedFeatures:R,useRender:function(t=!1){return(e,i,n,{latestValues:r},s)=>{let o=(rF(e)?function(t,e,i,n){let r=(0,nr.useMemo)(()=>{let i=rY();return r0(i,e,r1(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};r2(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 r2(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,nr.useMemo)(()=>{let i=rK();return rX(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)&&(r6(r)||!0===i&&r9(r)||!e&&!r9(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(i,"string"==typeof e,t),l=e!==nr.Fragment?{...a,...o,ref:n}:{},{children:u}=i,h=(0,nr.useMemo)(()=>it(u)?u.get():u,[u]);return(0,nr.createElement)(e,{...l,children:h})}}(e),createVisualElement:C,Component:t})}))},2360:function(t,e,i){i.d(e,{K:function(){return r},k:function(){return s}});var n=i(3768);let r=n.Z,s=n.Z},4773:function(t,e,i){i.d(e,{j:function(){return n}});let n="undefined"!=typeof window},3768:function(t,e,i){i.d(e,{Z:function(){return n}});let n=t=>t},7724:function(t,e,i){i.d(e,{h:function(){return r}});var n=i(3744);function r(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},8187:function(t,e,i){i.d(e,{L:function(){return r}});var n=i(3744);let r=i(4773).j?n.useLayoutEffect:n.useEffect}}]);