PageSourceSearch

https://blakcede.com.au/_next/static/chunks/514-6576fdda16571fbc.js

js blakcede.com.au collected 2026-10-08 19:30:41 UTC 122,646 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[514],{7648:function(t,e,n){n.d(e,{default:function(){return i.a}});var r=n(2972),i=n.n(r)},5449:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return r}}),n(8521);let r=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];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)},6958:function(t,e,n){function r(t,e,n,r){return!1}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(8521),("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)},2972:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return P}});let r=n(7043),i=n(7437),s=r._(n(2265)),o=n(5246),a=n(3552),l=n(7497),u=n(3987),h=n(5449),c=n(5523),d=n(1956),p=n(6081),f=n(6958),m=n(1634),g=n(4673),y=new Set;function v(t,e,n,r,i,s){if("undefined"!=typeof window&&(s||(0,a.isLocalURL)(e))){if(!r.bypassPrefetchedCheck){let i=e+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in t?t.locale:void 0);if(y.has(i))return;y.add(i)}(async()=>s?t.prefetch(e,i):t.prefetch(e,n,r))().catch(t=>{})}}function x(t){return"string"==typeof t?t:(0,l.formatUrl)(t)}let P=s.default.forwardRef(function(t,e){let n,r;let{href:l,as:y,children:P,prefetch:b=null,passHref:E,replace:S,shallow:A,scroll:T,locale:R,onClick:w,onMouseEnter:C,onTouchStart:_,legacyBehavior:M=!1,...V}=t;n=P,M&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let O=s.default.useContext(c.RouterContext),j=s.default.useContext(d.AppRouterContext),D=null!=O?O:j,L=!O,k=!1!==b,I=null===b?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:N,as:F}=s.default.useMemo(()=>{if(!O){let t=x(l);return{href:t,as:y?x(y):t}}let[t,e]=(0,o.resolveHref)(O,l,!0);return{href:t,as:y?(0,o.resolveHref)(O,y):e||t}},[O,l,y]),B=s.default.useRef(N),U=s.default.useRef(F);M&&(r=s.default.Children.only(n));let W=M?r&&"object"==typeof r&&r.ref:e,[$,H,X]=(0,p.useIntersection)({rootMargin:"200px"}),G=s.default.useCallback(t=>{(U.current!==F||B.current!==N)&&(X(),U.current=F,B.current=N),$(t),W&&("function"==typeof W?W(t):"object"==typeof W&&(W.current=t))},[F,W,N,X,$]);s.default.useEffect(()=>{D&&H&&k&&v(D,N,F,{locale:R},{kind:I},L)},[F,N,H,R,k,null==O?void 0:O.locale,D,L,I]);let Y={ref:G,onClick(t){M||"function"!=typeof w||w(t),M&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(t),D&&!t.defaultPrevented&&function(t,e,n,r,i,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)(n)))return;t.preventDefault();let d=()=>{let t=null==l||l;"beforePopState"in e?e[i?"replace":"push"](n,r,{shallow:o,locale:u,scroll:t}):e[i?"replace":"push"](r||n,{scroll:t})};h?s.default.startTransition(d):d()}(t,D,N,F,S,A,T,R,L)},onMouseEnter(t){M||"function"!=typeof C||C(t),M&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(t),D&&(k||!L)&&v(D,N,F,{locale:R,priority:!0,bypassPrefetchedCheck:!0},{kind:I},L)},onTouchStart:function(t){M||"function"!=typeof _||_(t),M&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(t),D&&(k||!L)&&v(D,N,F,{locale:R,priority:!0,bypassPrefetchedCheck:!0},{kind:I},L)}};if((0,u.isAbsoluteUrl)(F))Y.href=F;else if(!M||E||"a"===r.type&&!("href"in r.props)){let t=void 0!==R?R:null==O?void 0:O.locale,e=(null==O?void 0:O.isLocaleDomain)&&(0,f.getDomainLocale)(F,t,null==O?void 0:O.locales,null==O?void 0:O.domainLocales);Y.href=e||(0,m.addBasePath)((0,h.addLocale)(F,t,null==O?void 0:O.defaultLocale))}return M?s.default.cloneElement(r,Y):(0,i.jsx)("a",{...V,...Y,children:n})});("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esMo
1dule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},3515:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});let n="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)},r="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)},5246:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"resolveHref",{enumerable:!0,get:function(){return c}});let r=n(8637),i=n(7497),s=n(7053),o=n(3987),a=n(8521),l=n(3552),u=n(6279),h=n(7205);function c(t,e,n){let c;let d="string"==typeof e?e:(0,i.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 n?[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&&n){let n=(0,r.searchParamsToUrlQuery)(t.searchParams),{result:o,params:a}=(0,h.interpolateAs)(t.pathname,t.pathname,n);o&&(e=(0,i.formatWithValidation)({pathname:o,hash:t.hash,query:(0,s.omit)(n,a)}))}let o=t.origin===c.origin?t.href.slice(t.origin.length):t.href;return n?[o,e||o]:o}catch(t){return n?[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)},6081:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(2265),i=n(3515),s="function"==typeof IntersectionObserver,o=new Map,a=[];function l(t){let{rootRef:e,rootMargin:n,disabled:l}=t,u=l||!s,[h,c]=(0,r.useState)(!1),d=(0,r.useRef)(null),p=(0,r.useCallback)(t=>{d.current=t},[]);return(0,r.useEffect)(()=>{if(s){if(u||h)return;let t=d.current;if(t&&t.tagName)return function(t,e,n){let{id:r,observer:i,elements:s}=function(t){let e;let n={root:t.root||null,margin:t.rootMargin||""},r=a.find(t=>t.root===n.root&&t.margin===n.margin);if(r&&(e=o.get(r)))return e;let i=new Map;return e={id:n,observer:new IntersectionObserver(t=>{t.forEach(t=>{let e=i.get(t.target),n=t.isIntersecting||t.intersectionRatio>0;e&&n&&e(n)})},t),elements:i},a.push(n),o.set(n,e),e}(n);return s.set(t,e),i.observe(t),function(){if(s.delete(t),i.unobserve(t),0===s.size){i.disconnect(),o.delete(r);let t=a.findIndex(t=>t.root===r.root&&t.margin===r.margin);t>-1&&a.splice(t,1)}}}(t,t=>t&&c(t),{root:null==e?void 0:e.current,rootMargin:n})}else if(!h){let t=(0,i.requestIdleCallback)(()=>c(!0));return()=>(0,i.cancelIdleCallback)(t)}},[u,n,e,h,d.current]),[p,h,(0,r.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)},9259:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{ACTION_SUFFIX:function(){return l},APP_DIR_ALIAS:function(){return w},CACHE_ONE_YEAR:function(){return P},DOT_NEXT_ALIAS:function(){return T},ESLINT_DEFAULT_DIRS:function(){return X},GSP_NO_RETURNED_VALUE:function(){return F},GSSP_COMPONENT_MEMBER_ERROR:function(){return W},GSSP_NO_RETURNED_VALUE:function(){return B},INSTRUMENTATION_HOOK_FILENAME:function(){return S},MIDDLEWARE_FILENAME:function(){return b},MIDDLEWARE_LOCATION_REGEXP:function(){return E},NEXT_BODY_SUFFIX:function(){return c},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return x},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return f},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return m},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return p},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return v},NEXT_CACHE_TAGS_HEADER:function(){return d},NEXT_CACHE_TAG_MAX_ITEMS:function(){return g},NEXT_CACHE_TAG_MAX_LENGTH:function(){return y},NEXT_DATA_SUFFIX:function(){return u},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return r}
1,NEXT_META_SUFFIX:function(){return h},NEXT_QUERY_PARAM_PREFIX:function(){return n},NON_STANDARD_NODE_ENV:function(){return $},PAGES_DIR_ALIAS:function(){return A},PRERENDER_REVALIDATE_HEADER:function(){return i},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return s},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return j},ROOT_DIR_ALIAS:function(){return R},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return O},RSC_ACTION_ENCRYPTION_ALIAS:function(){return V},RSC_ACTION_PROXY_ALIAS:function(){return M},RSC_ACTION_VALIDATE_ALIAS:function(){return _},RSC_MOD_REF_PROXY_ALIAS:function(){return C},RSC_PREFETCH_SUFFIX:function(){return o},RSC_SUFFIX:function(){return a},SERVER_PROPS_EXPORT_ERROR:function(){return N},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return L},SERVER_PROPS_SSG_CONFLICT:function(){return k},SERVER_RUNTIME:function(){return G},SSG_FALLBACK_EXPORT_ERROR:function(){return H},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return D},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return I},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return U},WEBPACK_LAYERS:function(){return z},WEBPACK_RESOURCE_QUERIES:function(){return q}});let n="nxtP",r="nxtI",i="x-prerender-revalidate",s="x-prerender-revalidate-if-generated",o=".prefetch.rsc",a=".rsc",l=".action",u=".json",h=".meta",c=".body",d="x-next-cache-tags",p="x-next-cache-soft-tags",f="x-next-revalidated-tags",m="x-next-revalidate-tag-token",g=128,y=256,v=1024,x="_N_T_",P=31536e3,b="middleware",E=`(?:src/)?${b}`,S="instrumentation",A="private-next-pages",T="private-dot-next",R="private-next-root-dir",w="private-next-app-dir",C="private-next-rsc-mod-ref-proxy",_="private-next-rsc-action-validate",M="private-next-rsc-server-reference",V="private-next-rsc-action-encryption",O="private-next-rsc-action-client-wrapper",j="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",D="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",L="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",k="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",I="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",N="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",F="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",B="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",U="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",W="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",$='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',H="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",X=["app","pages","components","lib","src"],G={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},Y={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",appMetadataRoute:"app-metadata-route",appRouteHandler:"app-route-handler"},z={...Y,GROUP:{serverOnly:[Y.reactServerComponents,Y.actionBrowser,Y.appMetadataRoute,Y.appRouteHandler,Y.instrument],clientOnly:[Y.serverSideRendering,Y.appPagesBrowser],nonClientServerTarget:[Y.middleware,Y.api],app:[Y.reactServerComponents,Y.actionBrowser,Y.appMetadataRoute,Y.appRouteHandler,Y.serverSideRendering,Y.appPagesBrowser,Y.shared,Y.instrument]}},q={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}}
1,42:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return i}});let n=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function i(t){return n.test(t)?t.replace(r,"\\$&"):t}},5523:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return r}});let r=n(7043)._(n(2265)).default.createContext(null)},7497:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{formatUrl:function(){return s},formatWithValidation:function(){return a},urlObjectKeys:function(){return o}});let r=n(3099)._(n(8637)),i=/https?|ftp|gopher|file/;function s(t){let{auth:e,hostname:n}=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:n&&(u=e+(~n.indexOf(":")?"["+n+"]":n),t.port&&(u+=":"+t.port)),l&&"object"==typeof l&&(l=String(r.urlQueryToSearchParams(l)));let h=t.search||l&&"?"+l||"";return s&&!s.endsWith(":")&&(s+=":"),t.slashes||(!s||i.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)}},6279:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return i.isDynamicRoute}});let r=n(4777),i=n(8104)},7205:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return s}});let r=n(4199),i=n(9964);function s(t,e,n){let s="",o=(0,i.getRouteRegex)(t),a=o.groups,l=(e!==t?(0,r.getRouteMatcher)(o)(e):"")||n;s=t;let u=Object.keys(a);return u.every(t=>{let e=l[t]||"",{repeat:n,optional:r}=a[t],i="["+(n?"...":"")+t+"]";return r&&(i=(e?"":"/")+"["+i+"]"),n&&!Array.isArray(e)&&(e=[e]),(r||t in l)&&(s=s.replace(i,n?e.map(t=>encodeURIComponent(t)).join("/"):encodeURIComponent(e))||"/")})||(s=""),{params:u,result:s}}},8104:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return s}});let r=n(1182),i=/\/\[[^/]+?\](?=\/|$)/;function s(t){return(0,r.isInterceptionRouteAppPath)(t)&&(t=(0,r.extractInterceptionRouteInformation)(t).interceptedRoute),i.test(t)}},3552:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return s}});let r=n(3987),i=n(1283);function s(t){if(!(0,r.isAbsoluteUrl)(t))return!0;try{let e=(0,r.getLocationOrigin)(),n=new URL(t,e);return n.origin===e&&(0,i.hasBasePath)(n.pathname)}catch(t){return!1}}},7053:function(t,e){function n(t,e){let n={};return Object.keys(t).forEach(r=>{e.includes(r)||(n[r]=t[r])}),n}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return n}})},8637:function(t,e){function n(t){let e={};return t.forEach((t,n)=>{void 0===e[n]?e[n]=t:Array.isArray(e[n])?e[n].push(t):e[n]=[e[n],t]}),e}function r(t){return"string"!=typeof t&&("number"!=typeof t||isNaN(t))&&"boolean"!=typeof t?"":String(t)}function i(t){let e=new URLSearchParams;return Object.entries(t).forEach(t=>{let[n,i]=t;Array.isArray(i)?i.forEach(t=>e.append(n,r(t))):e.set(n,r(i))}),e}function s(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.forEach(e=>{Array.from(e.keys()).forEach(e=>t.delete(e)),e.forEach((e,n)=>t.append(n,e))}),t}Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{assign:function(){return s},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return i}})}
1,4199:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return i}});let r=n(3987);function i(t){let{re:e,groups:n}=t;return t=>{let i=e.exec(t);if(!i)return!1;let s=t=>{try{return decodeURIComponent(t)}catch(t){throw new r.DecodeError("failed to decode param")}},o={};return Object.keys(n).forEach(t=>{let e=n[t],r=i[e.pos];void 0!==r&&(o[t]=~r.indexOf("/")?r.split("/").map(t=>s(t)):e.repeat?[s(r)]:s(r))}),o}}},9964:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{getNamedMiddlewareRegex:function(){return p},getNamedRouteRegex:function(){return d},getRouteRegex:function(){return u},parseParameter:function(){return a}});let r=n(9259),i=n(1182),s=n(42),o=n(6674);function a(t){let e=t.startsWith("[")&&t.endsWith("]");e&&(t=t.slice(1,-1));let n=t.startsWith("...");return n&&(t=t.slice(3)),{key:t,repeat:n,optional:e}}function l(t){let e=(0,o.removeTrailingSlash)(t).slice(1).split("/"),n={},r=1;return{parameterizedRoute:e.map(t=>{let e=i.INTERCEPTION_ROUTE_MARKERS.find(e=>t.startsWith(e)),o=t.match(/\[((?:\[.*\])|.+)\]/);if(e&&o){let{key:t,optional:i,repeat:l}=a(o[1]);return n[t]={pos:r++,repeat:l,optional:i},"/"+(0,s.escapeStringRegexp)(e)+"([^/]+?)"}if(!o)return"/"+(0,s.escapeStringRegexp)(t);{let{key:t,repeat:e,optional:i}=a(o[1]);return n[t]={pos:r++,repeat:e,optional:i},e?i?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function u(t){let{parameterizedRoute:e,groups:n}=l(t);return{re:RegExp("^"+e+"(?:/)?$"),groups:n}}function h(t){let{interceptionMarker:e,getSafeRouteKey:n,segment:r,routeKeys:i,keyPrefix:o}=t,{key:l,optional:u,repeat:h}=a(r),c=l.replace(/\W/g,"");o&&(c=""+o+c);let d=!1;(0===c.length||c.length>30)&&(d=!0),isNaN(parseInt(c.slice(0,1)))||(d=!0),d&&(c=n()),o?i[c]=""+o+l:i[c]=l;let p=e?(0,s.escapeStringRegexp)(e):"";return h?u?"(?:/"+p+"(?<"+c+">.+?))?":"/"+p+"(?<"+c+">.+?)":"/"+p+"(?<"+c+">[^/]+?)"}function c(t,e){let n;let a=(0,o.removeTrailingSlash)(t).slice(1).split("/"),l=(n=0,()=>{let t="",e=++n;for(;e>0;)t+=String.fromCharCode(97+(e-1)%26),e=Math.floor((e-1)/26);return t}),u={};return{namedParameterizedRoute:a.map(t=>{let n=i.INTERCEPTION_ROUTE_MARKERS.some(e=>
1t.startsWith(e)),o=t.match(/\[((?:\[.*\])|.+)\]/);if(n&&o){let[n]=t.split(o[0]);return h({getSafeRouteKey:l,interceptionMarker:n,segment:o[1],routeKeys:u,keyPrefix:e?r.NEXT_INTERCEPTION_MARKER_PREFIX:void 0})}return o?h({getSafeRouteKey:l,segment:o[1],routeKeys:u,keyPrefix:e?r.NEXT_QUERY_PARAM_PREFIX:void 0}):"/"+(0,s.escapeStringRegexp)(t)}).join(""),routeKeys:u}}function d(t,e){let n=c(t,e);return{...u(t),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function p(t,e){let{parameterizedRoute:n}=l(t),{catchAll:r=!0}=e;if("/"===n)return{namedRegex:"^/"+(r?".*":"")+"$"};let{namedParameterizedRoute:i}=c(t,!1);return{namedRegex:"^"+i+(r?"(?:(/.*)?)":"")+"$"}}},4777:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class n{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 n=e.map(e=>this.children.get(e)._smoosh(""+t+e+"/")).reduce((t,e)=>[...t,...e],[]);if(null!==this.slugName&&n.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+']]").');n.unshift(e)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(t+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(t+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(t,e,r){if(0===t.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let i=t[0];if(i.startsWith("[")&&i.endsWith("]")){let n=i.slice(1,-1),o=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),o=!0),n.startsWith("...")&&(n=n.substring(3),r=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function s(t,n){if(null!==t&&t!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+t+"' !== '"+n+"').");e.forEach(t=>{if(t===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(t.replace(/\W/g,"")===i.replace(/\W/g,""))throw Error('You cannot have the slug names "'+t+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),e.push(n)}if(r){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,n),this.optionalRestSlugName=n,i="[[...]]"}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,n),this.restSlugName=n,i="[...]"}}else{if(o)throw Error('Optional route parameters are not yet supported ("'+t[0]+'").');s(this.slugName,n),this.slugName=n,i="[]"}}this.children.has(i)||this.children.set(i,new n),this.children.get(i)._insert(t.slice(1),e,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(t){let e=new n;return t.forEach(t=>e.insert(t)),e.smoosh()}},3987:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{DecodeError:function(){return f},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return y},NormalizeError:function(){return m},PageNotFoundError:function(){return g},SP:function(){return d},ST:function(){return p},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return l},getLocationOrigin:function(){return o},getURL:function(){return a},isAbsoluteUrl:function(){return s},isResSent:function(){return u},loadGetInitialProps:function(){return c}
1,normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return x}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(t){let e,n=!1;return function(){for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];return n||(n=!0,e=t(...i)),e}}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=t=>i.test(t);function o(){let{protocol:t,hostname:e,port:n}=window.location;return t+"//"+e+(n?":"+n:"")}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 n=e.res||e.ctx&&e.ctx.res;if(!t.getInitialProps)return e.ctx&&e.Component?{pageProps:await c(e.Component,e.ctx)}:{};let r=await t.getInitialProps(e);if(n&&u(n))return r;if(!r)throw Error('"'+l(t)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.');return r}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 y extends Error{constructor(t,e){super(),this.message="Failed to load static file for page: "+t+" "+e}}class v 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})}},2504:function(t,e,n){let r;n.d(e,{E:function(){return iY}});var i,s,o=n(2265);let a=(0,o.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),l=(0,o.createContext)({}),u=(0,o.createContext)(null),h="undefined"!=typeof document,c=h?o.useLayoutEffect:o.useEffect,d=(0,o.createContext)({strict:!1});function p(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function f(t){return"string"==typeof t||Array.isArray(t)}function m(t){return"object"==typeof t&&"function"==typeof t.start}let g=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],y=["initial",...g];function v(t){return m(t.animate)||y.some(e=>f(t[e]))}function x(t){return!!(v(t)||t.variants)}function P(t){return Array.isArray(t)?t.join(" "):t}let b={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"]},E={};for(let t in b)E[t]={isEnabled:e=>b[t].some(t=>!!e[t])};let S=(0,o.createContext)({}),A=(0,o.createContext)({}),T=Symbol.for("motionComponentSymbol"),R=["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 w(t){if("string"!=typeof t||t.includes("-"));else if(R.indexOf(t)>-1||/[A-Z]/.test(t))return!0;return!1}let C={},_=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],M=new Set(_);function V(t,{layout:e,layoutId:n}){return M.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!C[t]||"opacity"===t)}let O=t=>!!(t&&t.getVelocity),j={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},D=_.length,L=t=>e=>"string"==typeof e&&e.startsWith(t),k=L("--"),I=L("var(--"),N=(t,e)=>e&&"number"==typeof t?e.transform(t):t,F=(t,e,n)=>Math.min(Math.max(n,t),e),B={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},U={...B,transform:t=>F(0,1,t)},W={...B,default:1},$=t=>Math.round(1e5*t)/1e5,H=/(-)?([\d]*\.?[\d])+/g,X=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,G=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Y(t){return"string"==typeof t}let z=t=>({test:e=>Y(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}
1),q=z("deg"),K=z("%"),Z=z("px"),Q=z("vh"),J=z("vw"),tt={...K,parse:t=>K.parse(t)/100,transform:t=>K.transform(100*t)},te={...B,transform:Math.round},tn={borderWidth:Z,borderTopWidth:Z,borderRightWidth:Z,borderBottomWidth:Z,borderLeftWidth:Z,borderRadius:Z,radius:Z,borderTopLeftRadius:Z,borderTopRightRadius:Z,borderBottomRightRadius:Z,borderBottomLeftRadius:Z,width:Z,maxWidth:Z,height:Z,maxHeight:Z,size:Z,top:Z,right:Z,bottom:Z,left:Z,padding:Z,paddingTop:Z,paddingRight:Z,paddingBottom:Z,paddingLeft:Z,margin:Z,marginTop:Z,marginRight:Z,marginBottom:Z,marginLeft:Z,rotate:q,rotateX:q,rotateY:q,rotateZ:q,scale:W,scaleX:W,scaleY:W,scaleZ:W,skew:q,skewX:q,skewY:q,distance:Z,translateX:Z,translateY:Z,translateZ:Z,x:Z,y:Z,z:Z,perspective:Z,transformPerspective:Z,opacity:U,originX:tt,originY:tt,originZ:Z,zIndex:te,fillOpacity:U,strokeOpacity:U,numOctaves:te};function tr(t,e,n,r){let{style:i,vars:s,transform:o,transformOrigin:a}=t,l=!1,u=!1,h=!0;for(let t in e){let n=e[t];if(k(t)){s[t]=n;continue}let r=tn[t],c=N(n,r);if(M.has(t)){if(l=!0,o[t]=c,!h)continue;n!==(r.default||0)&&(h=!1)}else t.startsWith("origin")?(u=!0,a[t]=c):i[t]=c}if(!e.transform&&(l||r?i.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,i){let s="";for(let e=0;e<D;e++){let n=_[e];if(void 0!==t[n]){let e=j[n]||n;s+=`${e}(${t[n]}) `}}return e&&!t.z&&(s+="translateZ(0)"),s=s.trim(),i?s=i(t,r?"":s):n&&r&&(s="none"),s}(t.transform,n,h,r):i.transform&&(i.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:n=0}=a;i.transformOrigin=`${t} ${e} ${n}`}}let ti=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ts(t,e,n){for(let r in e)O(e[r])||V(r,n)||(t[r]=e[r])}let to=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function ta(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||to.has(t)}let tl=t=>!ta(t);try{(i=require("@emotion/is-prop-valid").default)&&(tl=t=>t.startsWith("on")?!ta(t):i(t))}catch(t){}function tu(t,e,n){return"string"==typeof t?t:Z.transform(e+n*t)}let th={offset:"stroke-dashoffset",array:"stroke-dasharray"},tc={offset:"strokeDashoffset",array:"strokeDasharray"};function td(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},h,c,d){if(tr(t,u,h,d),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:p,style:f,dimensions:m}=t;p.transform&&(m&&(f.transform=p.transform),delete p.transform),m&&(void 0!==i||void 0!==s||f.transform)&&(f.transformOrigin=function(t,e,n){let r=tu(e,t.x,t.width),i=tu(n,t.y,t.height);return`${r} ${i}`}(m,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==e&&(p.x=e),void 0!==n&&(p.y=n),void 0!==r&&(p.scale=r),void 0!==o&&function(t,e,n=1,r=0,i=!0){t.pathLength=1;let s=i?th:tc;t[s.offset]=Z.transform(-r);let o=Z.transform(e),a=Z.transform(n);t[s.array]=`${o} ${a}`}(p,o,a,l,!1)}let tp=()=>({...ti(),attrs:{}}),tf=t=>"string"==typeof t&&"svg"===t.toLowerCase(),tm=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function tg(t,{style:e,vars:n},r,i){for(let s in Object.assign(t.style,e,i&&i.getProjectionStyles(r)),n)t.style.setProperty(s,n[s])}let ty=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 tv(t,e,n,r){for(let n in tg(t,e,void 0,r),e.attrs)t.setAttribute(ty.has(n)?n:tm(n),e.attrs[n])}function tx(t,e){let{style:n}=t,r={};for(let i in n)(O(n[i])||e.style&&O(e.style[i])||V(i,t))&&(r[i]=n[i]);return r}function tP(t,e){let n=tx(t,e);for(let r in t)(O(t[r])||O(e[r]))&&(n[-1!==_.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]);return n}function tb(t,e,n,r={},i={}
1){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,i)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,i)),e}let tE=t=>Array.isArray(t),tS=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),tA=t=>tE(t)?t[t.length-1]||0:t;function tT(t){let e=O(t)?t.get():t;return tS(e)?e.toValue():e}let tR=t=>(e,n)=>{let r=(0,o.useContext)(l),i=(0,o.useContext)(u),s=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,i,s){let o={latestValues:function(t,e,n,r){let i={},s=r(t,{});for(let t in s)i[t]=tT(s[t]);let{initial:o,animate:a}=t,l=v(t),u=x(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!n&&!1===n.initial,c=(h=h||!1===o)?a:o;return c&&"boolean"!=typeof c&&!m(c)&&(Array.isArray(c)?c:[c]).forEach(e=>{let n=tb(t,e);if(!n)return;let{transitionEnd:r,transition:s,...o}=n;for(let t in o){let e=o[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(i[t]=e)}for(let t in r)i[t]=r[t]}),i}(r,i,s,t),renderState:e()};return n&&(o.mount=t=>n(r,t,o)),o})(t,e,r,i);return n?s():function(t){let e=(0,o.useRef)(null);return null===e.current&&(e.current=t()),e.current}(s)},tw=t=>t;class tC{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){let e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}let t_=["prepare","read","update","preRender","render","postRender"],{schedule:tM,cancel:tV,state:tO,steps:tj}=function(t,e){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},s=t_.reduce((t,e)=>(t[e]=function(t){let e=new tC,n=new tC,r=0,i=!1,s=!1,o=new WeakSet,a={schedule:(t,s=!1,a=!1)=>{let l=a&&i,u=l?e:n;return s&&o.add(t),u.add(t)&&l&&i&&(r=e.order.length),t},cancel:t=>{n.remove(t),o.delete(t)},process:l=>{if(i){s=!0;return}if(i=!0,[e,n]=[n,e],n.clear(),r=e.order.length)for(let n=0;n<r;n++){let r=e.order[n];r(l),o.has(r)&&(a.schedule(r),t())}i=!1,s&&(s=!1,a.process(l))}};return a}(()=>n=!0),t),{}),o=t=>s[t].process(i),a=()=>{let s=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(s-i.timestamp,40),1),i.timestamp=s,i.isProcessing=!0,t_.forEach(o),i.isProcessing=!1,n&&e&&(r=!1,t(a))},l=()=>{n=!0,r=!0,i.isProcessing||t(a)};return{schedule:t_.reduce((t,e)=>{let r=s[e];return t[e]=(t,e=!1,i=!1)=>(n||l(),r.schedule(t,e,i)),t},{}),cancel:t=>t_.forEach(e=>s[e].cancel(t)),state:i,steps:s}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:tw,!0),tD={useVisualState:tR({scrapeMotionValuesFromProps:tP,createRenderState:tp,onMount:(t,e,{renderState:n,latestValues:r})=>{tM.read(()=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}}),tM.render(()=>{td(n,r,{enableHardwareAcceleration:!1},tf(e.tagName),t.transformTemplate),tv(e,n)})}})},tL={useVisualState:tR({scrapeMotionValuesFromProps:tx,createRenderState:ti})};function tk(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}let tI=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tN(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}let tF=t=>e=>tI(e)&&t(e,tN(e));function tB(t,e,n,r){return tk(t,e,tF(n),r)}let tU=(t,e)=>n=>e(t(n)),tW=(...t)=>t.reduce(tU);function t$(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let tH=t$("dragHorizontal"),tX=t$("dragVertical");function tG(t){let e=!1;if("y"===t)e=tX();else if("x"===t)e=tH();else{let t=tH(),n=tX();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function tY(){let t=tG(!0);return!t||(t(),!1)}class tz{constructor(t){this.isMounted=!1,this.node=t}update(){}}function tq(t,e){let n="onHover"+(e?"Start":"End");return tB(t.current,"pointer"+(e?"enter":"leave"),(r,i)=>{if("touch"===r.type||tY())return;let s=t.getProps();t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",e),s[n]&&tM.update(()=>s[n](r,i))},{passive:!t.getProps()[n]})}class tK extends tz{mount(){this.unmount=tW(tq(this.node,!0),tq(this.node,!1))}unmount(){}}class tZ extends tz{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=tW(tk(this.node.current,"focus",()=>this.onFocus()),tk(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let tQ=(t,e)=>!!e&&(t===e||tQ(t,e.parentElement));function tJ(t,e){if(!e)return;let n=new PointerEvent("pointer"+t);e(n,tN(n))}class t0 extends tz{constructor(){super(...arguments),this.removeStartListeners=tw,this.removeEndListeners=tw,this.removeAccessibleListeners=tw,this.startPointerPress=(t,e)=>{if(this.removeEndListeners(),this.isPressing)return;let n=this.node.getProps(),r=tB(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:r}=this.node.getProps();tM.update(()=>{tQ(this.node.current,t.target)?n&&n(t,e):r&&r(t,e)})},{passive:!(n.onTap||n.onPointerUp)}),i=tB(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=tW(r,i),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=tk(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=tk(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&tJ("up",(t,e)=>{let{onTap:n}=this.node.getProps();n&&tM.update(()=>n(t,e))})}),tJ("down",(t,e)=>{this.startPress(t,e)}))}),e=tk(this.node.current,"blur",()=>{this.isPressing&&tJ("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=tW(t,e)}}startPress(t,e){this.isPressing=!0;let{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&tM.update(()=>n(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!tY()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&tM.update(()=>n(t,e))}mount(){let t=this.node.getProps(),e=tB(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=tk(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=tW(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let t1=new WeakMap,t5=new WeakMap,t2=t=>{let e=t1.get(t.target);e&&e(t)}
1,t3=t=>{t.forEach(t2)},t9={some:0,all:1};class t4 extends tz{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:r="some",once:i}=t,s={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:t9[r]};return function(t,e,n){let r=function({root:t,...e}){let n=t||document;t5.has(n)||t5.set(n,{});let r=t5.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(t3,{root:t,...e})),r[i]}(e);return t1.set(t,n),r.observe(t),()=>{t1.delete(t),r.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,i&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),s=e?n:r;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 n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}function t6(t,e){if(!Array.isArray(e))return!1;let n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function t7(t,e,n){let r=t.getProps();return tb(r,e,void 0!==n?n:r.custom,function(t){let e={};return t.values.forEach((t,n)=>e[n]=t.get()),e}(t),function(t){let e={};return t.values.forEach((t,n)=>e[n]=t.getVelocity()),e}(t))}let t8="data-"+tm("framerAppearId"),et=t=>1e3*t,ee=t=>t/1e3,en={current:!1},er=t=>Array.isArray(t)&&"number"==typeof t[0],ei=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,es={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ei([0,.65,.55,1]),circOut:ei([.55,0,1,.45]),backIn:ei([.31,.01,.66,-.59]),backOut:ei([.33,1.53,.69,.99])},eo=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function ea(t,e,n,r){if(t===e&&n===r)return tw;let i=e=>(function(t,e,n,r,i){let s,o;let a=0;do(s=eo(o=e+(n-e)/2,r,i)-t)>0?n=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,n);return t=>0===t||1===t?t:eo(i(t),e,r)}let el=ea(.42,0,1,1),eu=ea(0,0,.58,1),eh=ea(.42,0,.58,1),ec=t=>Array.isArray(t)&&"number"!=typeof t[0],ed=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ep=t=>e=>1-t(1-e),ef=t=>1-Math.sin(Math.acos(t)),em=ep(ef),eg=ed(em),ey=ea(.33,1.53,.69,.99),ev=ep(ey),ex=ed(ev),eP={linear:tw,easeIn:el,easeInOut:eh,easeOut:eu,circIn:ef,circInOut:eg,circOut:em,backIn:ev,backInOut:ex,backOut:ey,anticipate:t=>(t*=2)<1?.5*ev(t):.5*(2-Math.pow(2,-10*(t-1)))},eb=t=>{if(Array.isArray(t)){tw(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,n,r,i]=t;return ea(e,n,r,i)}return"string"==typeof t?(tw(void 0!==eP[t],`Invalid easing type '${t}'`),eP[t]):t},eE=(t,e)=>n=>!!(Y(n)&&G.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),eS=(t,e,n)=>r=>{if(!Y(r))return r;let[i,s,o,a]=r.match(H);return{[t]:parseFloat(i),[e]:parseFloat(s),[n]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},eA=t=>F(0,255,t),eT={...B,transform:t=>Math.round(eA(t))},eR={test:eE("rgb","red"),parse:eS("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+eT.transform(t)+", "+eT.transform(e)+", "+eT.transform(n)+", "+$(U.transform(r))+")"},ew={test:eE("#"),parse:function(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:eR.transform},eC={test:eE("hsl","hue"),parse:eS("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+K.transform($(e))+", "+K.transform($(n))+", "+$(U.transform(r))+")"},e_={test:t=>eR.test(t)||ew.test(t)||eC.test(t),parse:t=>eR.test(t)?eR.parse(t):eC.test(t)?eC.parse(t):ew.parse(t),transform:t=>Y(t)?t:t.hasOwnProperty("red")?eR.transform(t):eC.transform(t)},eM=(t,e,n)=>-n*t+n*e+t;function eV(t,e,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}let eO=(t,e,n)=>{let r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},ej=[ew,eR,eC],eD=t=>ej.find(e=>e.test(t));function eL(t){let e=eD(t);tw(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let n=e.parse(t);return e===eC&&(n=function({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let i=0,s=0,o=0;if(e/=100){let r=n<.5?n*(1+e):n+e-n*e,a=2*n-r;i=eV(a,r,t+1/3),s=eV(a,r,t),o=eV(a,r,t-1/3)}else i=s=o=n;return{red:Math.round(255*i),green:Math.round(255*s),blue:Math.round(255*o),alpha:r}}(n)),n}let ek=(t,e)=>{let n=eL(t),r=eL(e),i={...n};return t=>(i.red=eO(n.red,r.red,t),i.green=eO(n.green,r.green,t),i.blue=eO(n.blue,r.blue,t),i.alpha=eM(n.alpha,r.alpha,t),eR.transform(i))}
1,eI={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:tw},eN={regex:X,countKey:"Colors",token:"${c}",parse:e_.parse},eF={regex:H,countKey:"Numbers",token:"${n}",parse:B.parse};function eB(t,{regex:e,countKey:n,token:r,parse:i}){let s=t.tokenised.match(e);s&&(t["num"+n]=s.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...s.map(i)))}function eU(t){let e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&eB(n,eI),eB(n,eN),eB(n,eF),n}function eW(t){return eU(t).values}function e$(t){let{values:e,numColors:n,numVars:r,tokenised:i}=eU(t),s=e.length;return t=>{let e=i;for(let i=0;i<s;i++)e=i<r?e.replace(eI.token,t[i]):i<r+n?e.replace(eN.token,e_.transform(t[i])):e.replace(eF.token,$(t[i]));return e}}let eH=t=>"number"==typeof t?0:t,eX={test:function(t){var e,n;return isNaN(t)&&Y(t)&&((null===(e=t.match(H))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(X))||void 0===n?void 0:n.length)||0)>0},parse:eW,createTransformer:e$,getAnimatableNone:function(t){let e=eW(t);return e$(t)(e.map(eH))}},eG=(t,e)=>n=>`${n>0?e:t}`;function eY(t,e){return"number"==typeof t?n=>eM(t,e,n):e_.test(t)?ek(t,e):t.startsWith("var(")?eG(t,e):eK(t,e)}let ez=(t,e)=>{let n=[...t],r=n.length,i=t.map((t,n)=>eY(t,e[n]));return t=>{for(let e=0;e<r;e++)n[e]=i[e](t);return n}},eq=(t,e)=>{let n={...t,...e},r={};for(let i in n)void 0!==t[i]&&void 0!==e[i]&&(r[i]=eY(t[i],e[i]));return t=>{for(let e in r)n[e]=r[e](t);return n}},eK=(t,e)=>{let n=eX.createTransformer(e),r=eU(t),i=eU(e);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?tW(ez(r.values,i.values),n):(tw(!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.`),eG(t,e))},eZ=(t,e,n)=>{let r=e-t;return 0===r?1:(n-t)/r},eQ=(t,e)=>n=>eM(t,e,n);function eJ(t,e,{clamp:n=!0,ease:r,mixer:i}={}){let s=t.length;if(tw(s===e.length,"Both input and output ranges must be the same length"),1===s)return()=>e[0];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,n){let r=[],i=n||function(t){if("number"==typeof t);else if("string"==typeof t)return e_.test(t)?ek:eK;else if(Array.isArray(t))return ez;else if("object"==typeof t)return eq;return eQ}(t[0]),s=t.length-1;for(let n=0;n<s;n++){let s=i(t[n],t[n+1]);e&&(s=tW(Array.isArray(e)?e[n]||tw:e,s)),r.push(s)}return r}(e,r,i),a=o.length,l=e=>{let n=0;if(a>1)for(;n<t.length-2&&!(e<t[n+1]);n++);let r=eZ(t[n],t[n+1],e);return o[n](r)};return n?e=>l(F(t[0],t[s-1],e)):l}function e0({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){let i=ec(r)?r.map(eb):eb(r),s={done:!1,value:e[0]},o=eJ((n&&n.length===e.length?n:function(t){let e=[0];return function(t,e){let n=t[t.length-1];for(let r=1;r<=e;r++){let i=eZ(0,e,r);t.push(eM(n,1,i))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(i)?i:e.map(()=>i||eh).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=o(e),s.done=e>=t,s)}}function e1(t,e,n){var r,i;let s=Math.max(e-5,0);return r=n-t(s),(i=e-s)?1e3/i*r:0}function e5(t,e){return t*Math.sqrt(1-e*e)}let e2=["duration","bounce"],e3=["stiffness","damping","mass"];function e9(t,e){return e.some(e=>void 0!==t[e])}function e4({keyframes:t,restDelta:e,restSpeed:n,...r}){let i;let s=t[0],o=t[t.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:h,velocity:c,duration:d,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!e9(t,e3)&&e9(t,e2)){let n=function({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,s;tw(t<=et(10),"Spring duration must be 10 seconds or less");let o=1-e;o=F(.05,1,o),t=F(.01,10,ee(t)),o<1?(i=e=>{let r=e*o,i=r*t;return .001-(r-n)/e5(e,o)*Math.exp(-i)},s=e=>{let r=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=e5(Math.pow(e,2),o);return(r*n+n-s)*Math.exp(-r)*(-i(e)+.001>0?-1:1)/a}):(i=e=>-.001+Math.exp(-e*t)*((e-n)*t+1),s=e=>t*t*(n-e)*Math.exp(-e*t));let a=function(t,e,n){let r=n;for(let n=1;n<12;n++)r-=t(r)/e(r);return r}(i,s,5/t);if(t=et(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*r;return{stiffness:e,damping:2*o*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...n,velocity:0,mass:1}).isResolvedFromDuration=!0}return e}
1(r),f=c?-ee(c):0,m=u/(2*Math.sqrt(l*h)),g=o-s,y=ee(Math.sqrt(l/h)),v=5>Math.abs(g);if(n||(n=v?.01:2),e||(e=v?.005:.5),m<1){let t=e5(y,m);i=e=>o-Math.exp(-m*y*e)*((f+m*y*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}else if(1===m)i=t=>o-Math.exp(-y*t)*(g+(f+y*g)*t);else{let t=y*Math.sqrt(m*m-1);i=e=>{let n=Math.exp(-m*y*e),r=Math.min(t*e,300);return o-n*((f+m*y*g)*Math.sinh(r)+t*g*Math.cosh(r))/t}}return{calculatedDuration:p&&d||null,next:t=>{let r=i(t);if(p)a.done=t>=d;else{let s=f;0!==t&&(s=m<1?e1(i,t,r):0);let l=Math.abs(s)<=n,u=Math.abs(o-r)<=e;a.done=l&&u}return a.value=a.done?o:r,a}}}function e6({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=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,y=n*e,v=p+y,x=void 0===o?v:o(v);x!==v&&(y=x-p);let P=t=>-y*Math.exp(-t/r),b=t=>x+P(t),E=t=>{let e=P(t),n=b(t);f.done=Math.abs(e)<=u,f.value=f.done?x:n},S=t=>{m(f.value)&&(c=t,d=e4({keyframes:[f.value,g(f.value)],velocity:e1(b,t,f.value),damping:i,stiffness:s,restDelta:u,restSpeed:h}))};return S(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,E(t),S(t)),void 0!==c&&t>c)?d.next(t-c):(e||E(t),f)}}}let e7=t=>{let e=({timestamp:e})=>t(e);return{start:()=>tM.update(e,!0),stop:()=>tV(e),now:()=>tO.isProcessing?tO.timestamp:performance.now()}};function e8(t){let e=0,n=t.next(e);for(;!n.done&&e<2e4;)e+=50,n=t.next(e);return e>=2e4?1/0:e}let nt={decay:e6,inertia:e6,tween:e0,keyframes:e0,spring:e4};function ne({autoplay:t=!0,delay:e=0,driver:n=e7,keyframes:r,type:i="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:h,onUpdate:c,...d}){let p,f,m,g,y,v=1,x=!1,P=()=>{f=new Promise(t=>{p=t})};P();let b=nt[i]||e0;b!==e0&&"number"!=typeof r[0]&&(g=eJ([0,100],r,{clamp:!1}),r=[0,100]);let E=b({...d,keyframes:r});"mirror"===a&&(y=b({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let S="idle",A=null,T=null,R=null;null===E.calculatedDuration&&s&&(E.calculatedDuration=e8(E));let{calculatedDuration:w}=E,C=1/0,_=1/0;null!==w&&(_=(C=w+o)*(s+1)-o);let M=0,V=t=>{if(null===T)return;v>0&&(T=Math.min(T,t)),v<0&&(T=Math.min(t-_/v,T));let n=(M=null!==A?A:Math.round(t-T)*v)-e*(v>=0?1:-1),i=v>=0?n<0:n>_;M=Math.max(n,0),"finished"===S&&null===A&&(M=_);let l=M,u=E;if(s){let t=M/C,e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--;let r=!!((e=Math.min(e,s+1))%2);r&&("reverse"===a?(n=1-n,o&&(n-=o/C)):"mirror"===a&&(u=y));let i=F(0,1,n);M>_&&(i="reverse"===a&&r?1:0),l=i*C}let h=i?{done:!1,value:r[0]}:u.next(l);g&&(h.value=g(h.value));let{done:d}=h;i||null===w||(d=v>=0?M>=_:M<=0);let p=null===A&&("finished"===S||"running"===S&&d);return c&&c(h.value),p&&D(),h},O=()=>{m&&m.stop(),m=void 0},j=()=>{S="idle",O(),p(),P(),T=R=null},D=()=>{S="finished",h&&h(),O(),p()},L=()=>
1{if(x)return;m||(m=n(V));let t=m.now();l&&l(),null!==A?T=t-A:T&&"finished"!==S||(T=t),"finished"===S&&P(),R=T,A=null,S="running",m.start()};t&&L();let k={then:(t,e)=>f.then(t,e),get time(){return ee(M)},set time(newTime){M=newTime=et(newTime),null===A&&m&&0!==v?T=m.now()-newTime/v:A=newTime},get duration(){return ee(null===E.calculatedDuration?e8(E):E.calculatedDuration)},get speed(){return v},set speed(newSpeed){if(newSpeed===v||!m)return;v=newSpeed,k.time=ee(M)},get state(){return S},play:L,pause:()=>{S="paused",A=M},stop:()=>{x=!0,"idle"!==S&&(S="idle",u&&u(),j())},cancel:()=>{null!==R&&V(R),j()},complete:()=>{S="finished"},sample:t=>(T=0,V(t))};return k}let nn=(s=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===r&&(r=s()),r)),nr=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ni=(t,e)=>"spring"===e.type||"backgroundColor"===t||!function t(e){return!!(!e||"string"==typeof e&&es[e]||er(e)||Array.isArray(e)&&e.every(t))}(e.ease),ns={type:"spring",stiffness:500,damping:25,restSpeed:10},no=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),na={type:"keyframes",duration:.8},nl={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nu=(t,{keyframes:e})=>e.length>2?na:M.has(t)?t.startsWith("scale")?no(e[1]):ns:nl,nh=(t,e)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eX.test(e)||"0"===e)&&!e.startsWith("url(")),nc=new Set(["brightness","contrast","saturate","opacity"]);function nd(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=n.match(H)||[];if(!r)return t;let i=n.replace(r,""),s=nc.has(e)?1:0;return r!==n&&(s*=100),e+"("+s+i+")"}let np=/([a-z-]*)\(.*?\)/g,nf={...eX,getAnimatableNone:t=>{let e=t.match(np);return e?e.map(nd).join(" "):t}},nm={...tn,color:e_,backgroundColor:e_,outlineColor:e_,fill:e_,stroke:e_,borderColor:e_,borderTopColor:e_,borderRightColor:e_,borderBottomColor:e_,borderLeftColor:e_,filter:nf,WebkitFilter:nf},ng=t=>nm[t];function ny(t,e){let n=ng(t);return n!==nf&&(n=eX),n.getAnimatableNone?n.getAnimatableNone(e):void 0}let nv=t=>/^0[^.\s]+$/.test(t);function nx(t,e){return t[e]||t.default||t}let nP=(t,e,n,r={})=>i=>{let s=nx(r,t)||{},o=s.delay||r.delay||0,{elapsed:a=0}=r;a-=et(o);let l=function(t,e,n,r){let i,s;let o=nh(e,n);i=Array.isArray(n)?[...n]:[null,n];let a=void 0!==r.from?r.from:t.get(),l=[];for(let t=0;t<i.length;t++){var u;null===i[t]&&(i[t]=0===t?a:i[t-1]),("number"==typeof(u=i[t])?0===u:null!==u?"none"===u||"0"===u||nv(u):void 0)&&l.push(t),"string"==typeof i[t]&&"none"!==i[t]&&"0"!==i[t]&&(s=i[t])}if(o&&l.length&&s)for(let t=0;t<l.length;t++)i[l[t]]=ny(e,s);return i}(e,t,n,s),u=l[0],h=l[l.length-1],c=nh(t,u),d=nh(t,h);tw(c===d,`You are trying to animate ${t} from "${u}" to "${h}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${h} via the \`style\` property.`);let p={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...s,delay:-a,onUpdate:t=>{e.set(t),s.onUpdate&&s.onUpdate(t)},onComplete:()=>{i(),s.onComplete&&s.onComplete()}};if(!function({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(s)&&(p={...p,...nu(t,p)}),p.duration&&(p.duration=et(p.duration)),p.repeatDelay&&(p.repeatDelay=et(p.repeatDelay)),!c||!d||en.current||!1===s.type)return function({keyframes:t,delay:e,onUpdate:n,onComplete:r}){let i=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:tw,pause:tw,stop:tw,then:t=>(t(),Promise.resolve()),cancel:tw,complete:tw});return e?ne({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}(en.current?{...p,delay:0}:p);if(e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){let n=function(t,e,{onUpdate:n,onComplete:r,...i}){let s,o;if(!(nn()&&nr.has(e)&&!i.repeatDelay&&"mirror"!==i.repeatType&&0!==i.damping&&"inertia"!==i.type))return!1;let a=!1,l=()=>{o=new Promise(t=>{s=t})};l();let{keyframes:u,duration:h=300,ease:c,times:d}=i;if(ni(e,i)){let t=ne({...i,repeat:0,delay:0}),e={done:!1,value:u[0]},n=[],r=0;for(;!e.done&&r<2e4;)e=t.sample(r),n.push(e.value),r+=10;d=void 0,u=n,h=r-10,c="linear"}let p=function(t,e,n,{delay:r=0,duration:i,repeat:s=0,repeatType:
1o="loop",ease:a,times:l}={}){let u={[e]:n};l&&(u.offset=l);let h=function t(e){if(e)return er(e)?ei(e):Array.isArray(e)?e.map(t):es[e]}(a);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"})}(t.owner.current,e,u,{...i,duration:h,ease:c,times:d});i.syncStart&&(p.startTime=tO.isProcessing?tO.timestamp:document.timeline?document.timeline.currentTime:performance.now());let f=()=>p.cancel(),m=()=>{tM.update(f),s(),l()};return p.onfinish=()=>{t.set(function(t,{repeat:e,repeatType:n="loop"}){let r=e&&"loop"!==n&&e%2==1?0:t.length-1;return t[r]}(u,i)),r&&r(),m()},{then:(t,e)=>o.then(t,e),attachTimeline:t=>(p.timeline=t,p.onfinish=null,tw),get time(){return ee(p.currentTime||0)},set time(newTime){p.currentTime=et(newTime)},get speed(){return p.playbackRate},set speed(newSpeed){p.playbackRate=newSpeed},get duration(){return ee(h)},play:()=>{a||(p.play(),tV(f))},pause:()=>p.pause(),stop:()=>{if(a=!0,"idle"===p.playState)return;let{currentTime:e}=p;if(e){let n=ne({...i,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}m()},complete:()=>p.finish(),cancel:m}}(e,t,p);if(n)return n}return ne(p)};function nb(t){return!!(O(t)&&t.add)}let nE=t=>/^\-?\d*\.?\d+$/.test(t);function nS(t,e){-1===t.indexOf(e)&&t.push(e)}function nA(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}class nT{constructor(){this.subscriptions=[]}add(t){return nS(this.subscriptions,t),()=>nA(this.subscriptions,t)}notify(t,e,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](t,e,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(t,e,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let nR=t=>!isNaN(parseFloat(t)),nw={current:void 0};class nC{constructor(t,e={}){this.version="10.16.9",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;let{delta:n,timestamp:r}=tO;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,tM.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>tM.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=nR(this.current),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new nT);let n=this.events[t].add(e);return"change"===t?()=>{n(),tM.read(()=>{this.events.change.getSize()||this.stop()})}:n}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,n){this.set(e),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return nw.current&&nw.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t,e;return this.canTrackVelocity?(t=parseFloat(this.current)-parseFloat(this.prev),(e=this.timeDelta)?1e3/e*t:0):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 n_(t,e){return new nC(t,e)}let nM=t=>e=>e.test(t),nV=[B,Z,K,q,J,Q,{test:t=>"auto"===t,parse:t=>t}],nO=t=>nV.find(nM(t)),nj=[...nV,e_,eX],nD=t=>nj.find(nM(t));function nL(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:o,...a}=t.makeTargetAnimatable(e),l=t.getValue("willChange");r&&(s=r);let u=[],h=i&&t.animationState&&t.animationState.getState()[i];for(let e in a){let r=t.getValue(e),i=a[e];if(!r||void 0===i||h&&function({protectedKeys:t,needsAnimating:e},n){let r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}(h,e))continue;let o={delay:n,elapsed:0,...nx(s||{},e)},c=!0;if(window.HandoffAppearAnimations&&!r.hasAnimated){let n=t.getProps()[t8];n&&(c=!1,o.elapsed=window.HandoffAppearAnimations(n,e,r,tM),o.syncStart=!0)}let d=c&&i===r.get();if("spring"===o.type&&(r.getVelocity()||o.velocity)&&(d=!1),d||c&&i===r.get()&&("spring"!==o.type||!r.getVelocity()&&!o.velocity))continue;r.start(nP(e,r,i,t.shouldReduceMotion&&M.has(e)?{type:!1}:o));let p=r.animation;nb(l)&&(l.add(e),p.then(()=>l.remove(e))),u.push(p)}return o&&Promise.all(u).then(()=>{o&&function(t,e){let n=t7(t,e),{transitionEnd:r={},transition:i={},...s}=n?t.makeTargetAnimatable(n,!1):{};for(let e in s={...s,...r}){let n=tA(s[e]);t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,n_(n))}}(t,o)}),u}function nk(t,e,n={}){let r=t7(t,e,n.custom),{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let s=r?()=>Promise.all(nL(t,r,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=i;return function(t,e,n=0,r=0,i=1,s){let o=[],a=(t.variantChildren.size-1)*r,l=1===i?(t=0)=>t*r:(t=0)=>a-t*r;
1return Array.from(t.variantChildren).sort(nI).forEach((t,r)=>{t.notify("AnimationStart",e),o.push(nk(t,e,{...s,delay:n+l(r)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,s+r,o,a,n)}:()=>Promise.resolve(),{when:a}=i;if(!a)return Promise.all([s(),o(n.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}function nI(t,e){return t.sortNodePosition(e)}let nN=[...g].reverse(),nF=g.length;function nB(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class nU extends tz{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:n})=>(function(t,e,n={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>nk(t,e,n)));else if("string"==typeof e)r=nk(t,e,n);else{let i="function"==typeof e?t7(t,e,n.custom):e;r=Promise.all(nL(t,i,n))}return r.then(()=>t.notify("AnimationComplete",e))})(t,e,n))),n={animate:nB(!0),whileInView:nB(),whileHover:nB(),whileTap:nB(),whileDrag:nB(),whileFocus:nB(),exit:nB()},r=!0,i=(e,n)=>{let r=t7(t,n);if(r){let{transition:t,transitionEnd:n,...i}=r;e={...e,...i,...n}}return e};function s(s,o){let a=t.getProps(),l=t.getVariantContext(!0)||{},u=[],h=new Set,c={},d=1/0;for(let e=0;e<nF;e++){var p;let g=nN[e],y=n[g],v=void 0!==a[g]?a[g]:l[g],x=f(v),P=g===o?y.isActive:null;!1===P&&(d=e);let b=v===l[g]&&v!==a[g]&&x;if(b&&r&&t.manuallyAnimateOnMount&&(b=!1),y.protectedKeys={...c},!y.isActive&&null===P||!v&&!y.prevProp||m(v)||"boolean"==typeof v)continue;let E=(p=y.prevProp,"string"==typeof v?v!==p:!!Array.isArray(v)&&!t6(v,p)),S=E||g===o&&y.isActive&&!b&&x||e>d&&x,A=Array.isArray(v)?v:[v],T=A.reduce(i,{});!1===P&&(T={});let{prevResolvedValues:R={}}=y,w={...R,...T},C=t=>{S=!0,h.delete(t),y.needsAnimating[t]=!0};for(let t in w){let e=T[t],n=R[t];c.hasOwnProperty(t)||(e!==n?tE(e)&&tE(n)?!t6(e,n)||E?C(t):y.protectedKeys[t]=!0:void 0!==e?C(t):h.add(t):void 0!==e&&h.has(t)?C(t):y.protectedKeys[t]=!0)}y.prevProp=v,y.prevResolvedValues=T,y.isActive&&(c={...c,...T}),r&&t.blockInitialAnimation&&(S=!1),S&&!b&&u.push(...A.map(t=>({animation:t,options:{type:g,...s}})))}if(h.size){let e={};h.forEach(n=>{let r=t.getBaseTarget(n);void 0!==r&&(e[n]=r)}),u.push({animation:e})}let g=!!u.length;return r&&!1===a.initial&&!t.manuallyAnimateOnMount&&(g=!1),r=!1,g?e(u):Promise.resolve()}return{animateChanges:s,setActive:function(e,r,i){var o;if(n[e].isActive===r)return Promise.resolve();null===(o=t.variantChildren)||void 0===o||o.forEach(t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,r)}),n[e].isActive=r;let a=s(i,e);for(let t in n)n[t].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),m(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}let nW=0;class n$ extends tz{constructor(){super(...arguments),this.id=nW++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;let i=this.node.animationState.setActive("exit",!t,{custom:null!=n?n:this.node.getProps().custom});e&&!t&&i.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}let nH=(t,e)=>Math.abs(t-e);class nX{constructor(t,e,{transformPagePoint:n,contextWindow:r}={}){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 n=nz(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(t=n.offset,e={x:0,y:0},Math.sqrt(nH(t.x,e.x)**2+nH(t.y,e.y)**2)>=3);if(!r&&!i)return;let{point:s}=n,{timestamp:o}=tO;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;r||(a&&a(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=nG(e,this.transformPagePoint),tM.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let{onEnd:n,onSessionEnd:r}=this.handlers,i=nz("pointercancel"===t.type?this.lastMoveEventInfo:nG(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,i),r&&r(t,i)},!tI(t))return;this.handlers=e,this.transformPagePoint=n,this.contextWindow=r||window;let i=nG(tN(t),this.transformPagePoint),{point:s}=i,{timestamp:o}=tO;this.history=[{...s,timestamp:o}];let{onSessionStart:a}=e;a&&a(t,nz(i,this.history)),this.removeListeners=tW(tB(this.contextWindow,"pointermove",this.handlePointerMove),tB(this.contextWindow,"pointerup",this.handlePointerUp),tB(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),tV(this.updatePoint)}}function nG(t,e){return e?{point:e(t.point)}:t}function nY(t,e){return{x:t.x-e.x,y:t.y-e.y}}function nz({point:t},e){return{point:t,delta:nY(t,nq(e)),offset:nY(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null,i=nq(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>et(.1)));)n--;if(!r)return{x:0,y:0};let s=ee(i.timestamp-r.timestamp);if(0===s)return{x:0,y:0};let o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function nq(t){return t[t.length-1]}function nK(t){return t.max-t.min}function nZ(t,e=0,n=.01){return Math.abs(t-e)<=n}function nQ(t,e,n,r=.5){t.origin=r,t.originPoint=eM(e.min,e.max,t.origin),t.scale=nK(n)/nK(e),(nZ(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=eM(n.min,n.max,t.origin)-t.originPoint,(nZ(t.translate)||isNaN(t.translate))&&(t.translate=0)}function nJ(t,e,n,r){nQ(t.x,e.x,n.x,r?r.originX:void 0),nQ(t.y,e.y,n.y,r?r.originY:void 0)}function n0(t,e,n){t.min=n.min+e.min,t.max=t.min+nK(e)}function n1(t,e,n){t.min=e.min-n.min,t.max=t.min+nK(e)}function n5(t,e,n){n1(t.x,e.x,n.x),n1(t.y,e.y,n.y)}function n2(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function n3(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function n9(t,e,n){return{min:n4(t,e),max:n4(t,n)}}function n4(t,e){return"number"==typeof t?t:t[e]||0}let n6=()=>({translate:0,scale:1,origin:0,originPoint:0}),n7=()=>({x:n6(),y:n6()}),n8=()=>({min:0,max:0}),rt=()=>({x:n8(),y:n8()});function re(t){return[t("x"),t("y")]}function rn({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function rr(t){return void 0===t||1===t}function ri({scale:t,scaleX:e,scaleY:n}){return!rr(t)||!rr(e)||!rr(n)}function rs(t){return ri(t)||ro(t)||t.z||t.rotate||t.rotateX||t.rotateY}function ro(t){var e,n;return(e=t.x)&&"0%"!==e||(n=t.y)&&"0%"!==n}function ra(t,e,n,r,i){return void 0!==i&&(t=r+i*(t-r)),r+n*(t-r)+e}function rl(t,e=0,n=1,r,i){t.min=ra(t.min,e,n,r,i),t.max=ra(t.max,e,n,r,i)}function ru(t,{x:e,y:n}){rl(t.x,e.translate,e.scale,e.originPoint),rl(t.y,n.translate,n.scale,n.originPoint)}function rh(t){return Number.isInteger(t)?t:t>1.0000000000001||t<.999999999999?t:1}function rc(t,e){t.min=t.min+e,t.max=t.max+e}function rd(t,e,[n,r,i]){let s=void 0!==e[i]?e[i]:.5,o=eM(t.min,t.max,s);rl(t,e[n],e[r],o,e.scale)}let rp=["x","scaleX","originX"],rf=["y","scaleY","originY"];function rm(t,e){rd(t.x,e,rp),rd(t.y,e,rf)}function rg(t,e){return rn(function(t,e){if(!e)return t;let n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}let ry=({current:t})=>t?t.ownerDocument.defaultView:null,rv=new WeakMap;class rx{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=rt(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:n}=this.visualElement;n&&!1===n.isPresent||(this.panSession=new nX(t,{onSessionStart:t=>{this.stopAnimation(),e&&this.snapToCursor(tN(t,"page").point)},onStart:(t,e)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=tG(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),re(t=>{let e=this.getAxisMotionValue(t).get()||0;if(K.test(e)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[t];if(r){let t=nK(r);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),i&&tM.update(()=>i(t,e),!1,!0);let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:s}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:o}=e;if(r&&null===this.currentDirection){this.currentDirection=function(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}(o),null!==this.currentDirection&&i&&i(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)},{transformPagePoint:this.visualElement.getTransformPagePoint(),contextWindow:ry(this.visualElement)}))}stop(t,e){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=e;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&tM.update(()=>i(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:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){let{drag:r}=this.getProps();if(!n||!rP(t,r,this.currentDirection))return;let i=this.getAxisMotionValue(t),s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:n},r){return void 0!==e&&t<e?t=r?eM(e,t,r.min):Math.max(t,e):void 0!==n&&t>n&&(t=r?eM(n,t,r.max):Math.min(t,n)),t}(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,i=this.constraints;e&&p(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(t,{top:e,left:n,bottom:r,right:i}){return{x:n2(t.x,n,i),y:n2(t.y,e,r)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:n9(t,"left","right"),y:n9(t,"top","bottom")}}(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&re(t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(r.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!p(e))return!1;let r=e.current;tw(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let s=function(t,e,n){let r=rg(t,n),{scroll:i}=e;return i&&(rc(r.x,i.offset.x),rc(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),o={x:n3((t=i.layout.layoutBox).x,s.x),y:n3(t.y,s.y)};if(n){let t=n(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=rn(t))}return o}startAnimation(t){let{drag:e,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(re(o=>{if(!rP(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:n?t[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let n=this.getAxisMotionValue(t);return n.start(nP(t,n,0,e))}stopAnimation(){re(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e="_drag"+t.toUpperCase(),n=this.visualElement.getProps();return n[e]||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){re(e=>{let{drag:n}=this.getProps();if(!rP(e,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(e);if(r&&r.layout){let{min:n,max:s}=r.layout.layoutBox[e];i.set(t[e]-eM(n,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;
1if(!p(e)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};re(t=>{let e=this.getAxisMotionValue(t);if(e){let n=e.get();r[t]=function(t,e){let n=.5,r=nK(t),i=nK(e);return i>r?n=eZ(e.min,e.max-r,t.min):r>i&&(n=eZ(t.min,t.max-i,e.min)),F(0,1,n)}({min:n,max:n},this.constraints[t])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),re(e=>{if(!rP(e,t,null))return;let n=this.getAxisMotionValue(e),{min:i,max:s}=this.constraints[e];n.set(eM(i,s,r[e]))})}addListeners(){if(!this.visualElement.current)return;rv.set(this.visualElement,this);let t=tB(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();p(t)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),e();let i=tk(window,"resize",()=>this.scalePositionWithinConstraints()),s=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(re(e=>{let n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{i(),t(),r(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:s,dragMomentum:o}}}function rP(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}class rb extends tz{constructor(t){super(t),this.removeGroupControls=tw,this.removeListeners=tw,this.controls=new rx(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tw}unmount(){this.removeGroupControls(),this.removeListeners()}}let rE=t=>(e,n)=>{t&&tM.update(()=>t(e,n))};class rS extends tz{constructor(){super(...arguments),this.removePointerDownListener=tw}onPointerDown(t){this.session=new nX(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ry(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:rE(t),onStart:rE(e),onMove:n,onEnd:(t,e)=>{delete this.session,r&&tM.update(()=>r(t,e))}}}mount(){this.removePointerDownListener=tB(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let rA={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rT(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let rR={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!Z.test(t))return t;t=parseFloat(t)}let n=rT(t,e.target.x),r=rT(t,e.target.y);return`${n}% ${r}%`}};class rw extends o.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=t;Object.assign(C,r_),i&&(e.group&&e.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),rA.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:n,drag:r,isPresent:i}=this.props,s=n.projection;return s&&(s.isPresent=i,r||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent===i||(i?s.promote():s.relegate()||tM.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function rC(t){let[e,n]=function(){let t=(0,o.useContext)(u);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:n,register:r}=t,i=(0,o.useId)();return(0,o.useEffect)(()=>r(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}(),r=(0,o.useContext)(S);return o.createElement(rw,{...t,layoutGroup:r,switchLayoutGroup:(0,o.useContext)(A),isPresent:e,safeToRemove:n})}let r_={borderRadius:{...rR,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rR,borderTopRightRadius:rR,borderBottomLeftRadius:rR,borderBottomRightRadius:rR,boxShadow:{correct:(t,{treeScale:e,projectionDelta:n})=>{let r=eX.parse(t);if(r.length>5)return t;let i=eX.createTransformer(t),s="number"!=typeof r[0]?1:0,o=n.x.scale*e.x,a=n.y.scale*e.y;r[0+s]/=o,r[1+s]/=a;let l=eM(o,a,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),i(r)}}},rM=["TopLeft","TopRight","BottomLeft","BottomRight"],rV=rM.length,rO=t=>"string"==typeof t?parseFloat(t):t,rj=t=>"number"==typeof t||Z.test(t);function rD(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rL=rI(0,.5,em),rk=rI(.5,.95,tw);function rI(t,e,n){return r=>r<t?0:r>e?1:n(eZ(t,e,r))}function rN(t,e){t.min=e.min,t.max=e.max}function rF(t,e){rN(t.x,e.x),rN(t.y,e.y)}function rB(t,e,n,r,i){return t-=e,t=r+1/n*(t-r),void 0!==i&&(t=r+1/i*(t-r)),t}function rU(t,e,[n,r,i],s,o){!function(t,e=0,n=1,r=.5,i,s=t,o=t){if(K.test(e)&&(e=parseFloat(e),e=eM(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=eM(s.min,s.max,r);t===s&&(a-=e),t.min=rB(t.min,e,n,a,i),t.max=rB(t.max,e,n,a,i)}(t,e[n],e[r],e[i],e.scale,s,o)}let rW=["x","scaleX","originX"],r$=["y","scaleY","originY"];function rH(t,e,n,r){rU(t.x,e,rW,n?n.x:void 0,r?r.x:void 0),rU(t.y,e,r$,n?n.y:void 0,r?r.y:void 0)}function rX(t){return 0===t.translate&&1===t.scale}function rG(t){return rX(t.x)&&rX(t.y)}function rY(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function rz(t){return nK(t.x)/nK(t.y)}class rq{constructor(){this.members=[]}add(t){nS(this.members,t),t.scheduleRender()}remove(t){if(nA(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)}
1}relegate(t){let e;let n=this.members.findIndex(e=>t===e);if(0===n)return!1;for(let t=n;t>=0;t--){let n=this.members[t];if(!1!==n.isPresent){e=n;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:r}=t.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function rK(t,e,n){let r="",i=t.x.translate/e.x,s=t.y.translate/e.y;if((i||s)&&(r=`translate3d(${i}px, ${s}px, 0) `),(1!==e.x||1!==e.y)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){let{rotate:t,rotateX:e,rotateY:i}=n;t&&(r+=`rotate(${t}deg) `),e&&(r+=`rotateX(${e}deg) `),i&&(r+=`rotateY(${i}deg) `)}let o=t.x.scale*e.x,a=t.y.scale*e.y;return(1!==o||1!==a)&&(r+=`scale(${o}, ${a})`),r||"none"}let rZ=(t,e)=>t.depth-e.depth;class rQ{constructor(){this.children=[],this.isDirty=!1}add(t){nS(this.children,t),this.isDirty=!0}remove(t){nA(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rZ),this.isDirty=!1,this.children.forEach(t)}}let rJ=["","X","Y","Z"],r0={visibility:"hidden"},r1=0,r5={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function r2({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(t={},n=null==e?void 0:e()){this.id=r1++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,r5.totalNodes=r5.resolvedTargetDeltas=r5.recalculatedProjection=0,this.nodes.forEach(r4),this.nodes.forEach(ii),this.nodes.forEach(is),this.nodes.forEach(r6),window.MotionDebug&&window.MotionDebug.record(r5)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new rQ)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new nT),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,n=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:r,layout:i,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||r)&&(this.isLayoutDirty=!0),t){let n;let r=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){let n=performance.now(),r=({timestamp:e})=>{let i=e-n;i>=250&&(tV(r),t(i-250))};return tM.read(r,!0),()=>tV(r)}(r,0),rA.hasAnimatedSinceResize&&(rA.hasAnimatedSinceResize=!1,this.nodes.forEach(ir))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&s&&(r||i)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||s.getDefaultTransition()||ic,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!rY(this.targetLayout,r)||n,u=!e&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...nx(i,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||ir(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}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,tV(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.forEac
1h(io),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(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:n}=this.options;if(void 0===e&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(r8);return}this.isUpdating||this.nodes.forEach(it),this.isUpdating=!1,this.nodes.forEach(ie),this.nodes.forEach(r3),this.nodes.forEach(r9),this.clearAllSnapshots();let t=performance.now();tO.delta=F(0,1e3/60,t-tO.timestamp),tO.timestamp=t,tO.isProcessing=!0,tj.update.process(tO),tj.preRender.process(tO),tj.render.process(tO),tO.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(r7),this.sharedNodes.forEach(ia)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tM.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tM.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=rt(),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);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;let t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!rG(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;t&&(e||rs(this.latestValues)||s)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let n=this.measurePageBox(),r=this.removeElementScroll(n);return t&&(r=this.removeTransform(r)),im((e=r).x),im(e.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return rt();let e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(rc(e.x,n.offset.x),rc(e.y,n.offset.y)),e}removeElementScroll(t){let e=rt();rF(e,t);for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:s}=r;if(r!==this.root&&i&&s.layoutScroll){if(i.isRoot){rF(e,t);let{scroll:n}=this.root;n&&(rc(e.x,-n.offset.x),rc(e.y,-n.offset.y))}rc(e.x,i.offset.x),rc(e.y,i.offset.y)}}return e}applyTransform(t,e=!1){let n=rt();rF(n,t);for(let t=0;t<this.path.length;t++){let r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&rm(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),rs(r.latestValues)&&rm(n,r.latestValues)}return rs(this.latestValues)&&rm(n,this.latestValues),n}removeTransform(t){let e=rt();rF(e,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];if(!n.instance||!rs(n.latestValues))continue;ri(n.latestValues)&&n.updateSnapshot();let r=rt();rF(r,n.measurePageBox()),rH(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return rs(this.latestValues)&&rH(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!==tO.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,n,r,i;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isS
1haredProjectionDirty);let o=!!this.resumingFrom||this!==s;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=tO.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rt(),this.relativeTargetOrigin=rt(),n5(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),rF(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=rt(),this.targetWithTransforms=rt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),n=this.target,r=this.relativeTarget,i=this.relativeParent.target,n0(n.x,r.x,i.x),n0(n.y,r.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rF(this.target,this.layout.layoutBox),ru(this.target,this.targetDelta)):rF(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=rt(),this.relativeTargetOrigin=rt(),n5(this.relativeTargetOrigin,this.target,t.target),rF(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}r5.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||ri(this.parent.latestValues)||ro(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(),n=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===tO.timestamp&&(r=!1),r)return;let{layout:i,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||!(i||s))return;rF(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,n,r=!1){let i,s;let o=n.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(i=n[a]).projectionDelta;let o=i.instance;(!o||!o.style||"contents"!==o.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&rm(t,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,ru(t,s)),r&&rs(i.latestValues)&&rm(t,i.latestValues))}e.x=rh(e.x),e.y=rh(e.y)}}(this.layoutCorrected,this.treeScale,this.path,n),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox);let{target:l}=e;if(!l){this.projectionTransform&&(this.projectionDelta=n7(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=n7(),this.projectionDeltaWithTransform=n7());let u=this.projectionTransform;nJ(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=rK(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==o||this.treeScale.y!==a)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),r5.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){let n;let r=this.snapshot,i=r?r.latestValues:{},s={...this.latestValues},o=n7();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=rt(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&
1!0===this.options.crossfade&&!this.path.some(ih));this.animationProgress=0,this.mixTargetDelta=e=>{let r=e/1e3;if(il(o.x,t.x,r),il(o.y,t.y,r),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,f;n5(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,iu(p.x,f.x,a.x,r),iu(p.y,f.y,a.y,r),n&&(u=this.relativeTarget,d=n,u.x.min===d.x.min&&u.x.max===d.x.max&&u.y.min===d.y.min&&u.y.max===d.y.max)&&(this.isProjectionDirty=!1),n||(n=rt()),rF(n,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,n,r,i,s){i?(t.opacity=eM(0,void 0!==n.opacity?n.opacity:1,rL(r)),t.opacityExit=eM(void 0!==e.opacity?e.opacity:1,0,rk(r))):s&&(t.opacity=eM(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let i=0;i<rV;i++){let s=`border${rM[i]}Radius`,o=rD(e,s),a=rD(n,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||rj(o)===rj(a)?(t[s]=Math.max(eM(rO(o),rO(a),r),0),(K.test(a)||K.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||n.rotate)&&(t.rotate=eM(e.rotate||0,n.rotate||0,r))}(s,i,this.latestValues,r,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},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&&(tV(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tM.update(()=>{rA.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){let r=O(0)?0:n_(0);return r.start(nP("",r,1e3,n)),r.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:n,layout:r,latestValues:i}=t;if(e&&n&&r){if(this!==t&&this.layout&&r&&ig(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||rt();let e=nK(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;let r=nK(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+r}rF(e,n),rm(e,i),nJ(this.projectionDeltaWithTransform,this.layoutCorrected,e,i)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rq),this.sharedNodes.get(t).add(e);let n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.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:n}={}){let r=this.getStack();r&&r.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;let r={};for(let e=0;e<rJ.length;e++){let i="rotate"+rJ[e];n[i]&&(r[i]=n[i],t.setStaticValue(i,0))}for(let e in t.render(),r)t.setStaticValue(e,r[e]);t.scheduleRender()}getProjectionStyles(t){var e,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return r0;let r={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=tT(null==t?void 0:t.pointerEvents)||"",r.transform=i?i(this.latestValues,""):"none",r;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=tT(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!rs(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1),e}let o=s.animationValues||s.latestValues;this.applyTransformsToTarget(),r.transform=rK(this.projectionDeltaWithTransform,this.treeScale,o),i&&(r.transform=i(o,r.transform));let{x:a,y:l}=this.projectionDelta;for(let t in r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?r.opacity=s===this?null!==(n=null!==(e=o.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:r.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,C){if(void 0===o[t])continue;let{correct:e,applyTo:n}=C[t],i="none"===r.transform?o[t]:e(o[t],s);if(n){let t=n.length;for(let e=0;e<t;e++)r[n[e]]=i}else r[t]=i}return this.options.layoutId&&(r.pointerEvents=s===this?tT(null==t?void 0:t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
1resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(r8),this.root.sharedNodes.clear()}}}function r3(t){t.updateLayout()}function r9(t){var e;let n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:r}=t.layout,{animationType:i}=t.options,s=n.source!==t.layout.source;"size"===i?re(t=>{let r=s?n.measuredBox[t]:n.layoutBox[t],i=nK(r);r.min=e[t].min,r.max=r.min+i}):ig(i,n.layoutBox,e)&&re(r=>{let i=s?n.measuredBox[r]:n.layoutBox[r],o=nK(e[r]);i.max=i.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+o)});let o=n7();nJ(o,e,n.layoutBox);let a=n7();s?nJ(a,t.applyTransform(r,!0),n.measuredBox):nJ(a,e,n.layoutBox);let l=!rG(o),u=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:s}=r;if(i&&s){let o=rt();n5(o,n.layoutBox,i.layoutBox);let a=rt();n5(a,e,s.layoutBox),rY(o,a)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,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 r4(t){r5.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 r6(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function r7(t){t.clearSnapshot()}function r8(t){t.clearMeasurements()}function it(t){t.isLayoutDirty=!1}function ie(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ir(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ii(t){t.resolveTargetDelta()}function is(t){t.calcProjection()}function io(t){t.resetRotation()}function ia(t){t.removeLeadSnapshot()}function il(t,e,n){t.translate=eM(e.translate,0,n),t.scale=eM(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function iu(t,e,n,r){t.min=eM(e.min,n.min,r),t.max=eM(e.max,n.max,r)}function ih(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ic={duration:.45,ease:[.4,0,.1,1]},id=t=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(t),ip=id("applewebkit/")&&!id("chrome/")?Math.round:tw;function im(t){t.min=ip(t.min),t.max=ip(t.max)}function ig(t,e,n){return"position"===t||"preserve-aspect"===t&&!nZ(rz(e),rz(n),.2)}let iy=r2({attachResizeListener:(t,e)=>tk(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),iv={current:void 0},ix=r2({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!iv.current){let t=new iy({});t.mount(window),t.setOptions({layoutScroll:!0}),iv.current=t}return iv.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),iP=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function ib(t,e,n=1){tw(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[r,i]=function(t){let e=iP.exec(t);if(!e)return[,];let[,n,r]=e;return[n,r]}(t);if(!r)return;let s=window.getComputedStyle(e).getPropertyValue(r);if(s){let t=s.trim();return nE(t)?parseFloat(t):t}return I(i)?ib(i,e,n+1):i}let iE=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),iS=t=>iE.has(t),iA=t=>Object.keys(t).some(iS),iT=t=>t===B||t===Z,iR=(t,e)=>parseFloat(t.split(", ")[e]),iw=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return iR(i[1],e);{let e=r.match(/^matrix\((.+)\)$/);return e?iR(e[1],t):0}},iC=new Set(["x","y","z"]),i_=_.filter(t=>!iC.has(t)),iM={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:iw(4,13),y:iw(5,14)};iM.translateX=iM.x,iM.translateY=iM.y;let iV=(t,e,n)=>{let r=e.measureViewportBox(),i=getComputedStyle(e.current),{display:s}=i,o={};"none"===s&&e.setStaticValue("display",t.display||"block"),n.forEac
1h(t=>{o[t]=iM[t](r,i)}),e.render();let a=e.measureViewportBox();return n.forEach(n=>{let r=e.getValue(n);r&&r.jump(o[n]),t[n]=iM[n](a,i)}),t},iO=(t,e,n={},r={})=>{e={...e},r={...r};let i=Object.keys(e).filter(iS),s=[],o=!1,a=[];if(i.forEach(i=>{let l;let u=t.getValue(i);if(!t.hasValue(i))return;let h=n[i],c=nO(h),d=e[i];if(tE(d)){let t=d.length,e=null===d[0]?1:0;c=nO(h=d[e]);for(let n=e;n<t&&null!==d[n];n++)l?tw(nO(d[n])===l,"All keyframes must be of the same type"):tw((l=nO(d[n]))===c||iT(c)&&iT(l),"Keyframes must be of the same dimension as the current value")}else l=nO(d);if(c!==l){if(iT(c)&&iT(l)){let t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof d?e[i]=parseFloat(d):Array.isArray(d)&&l===Z&&(e[i]=d.map(parseFloat))}else(null==c?void 0:c.transform)&&(null==l?void 0:l.transform)&&(0===h||0===d)?0===h?u.set(l.transform(h)):e[i]=c.transform(d):(o||(s=function(t){let e=[];return i_.forEach(n=>{let r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}(t),o=!0),a.push(i),r[i]=void 0!==r[i]?r[i]:e[i],u.jump(d))}}),!a.length)return{target:e,transitionEnd:r};{let n=a.indexOf("height")>=0?window.pageYOffset:null,i=iV(e,t,a);return s.length&&s.forEach(([e,n])=>{t.getValue(e).set(n)}),t.render(),h&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},ij=(t,e,n,r)=>{var i,s;let o=function(t,{...e},n){let r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};for(let i in n&&(n={...n}),t.values.forEach(t=>{let e=t.get();if(!I(e))return;let n=ib(e,r);n&&t.set(n)}),e){let t=e[i];if(!I(t))continue;let s=ib(t,r);s&&(e[i]=s,n||(n={}),void 0===n[i]&&(n[i]=t))}return{target:e,transitionEnd:n}}(t,e,r);return e=o.target,r=o.transitionEnd,i=e,s=r,iA(i)?iO(t,i,n,s):{target:i,transitionEnd:s}},iD={current:null},iL={current:!1},ik=new WeakMap,iI=Object.keys(E),iN=iI.length,iF=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],iB=y.length;class iU{constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:r,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>tM.render(this.render,!1,!0);let{latestValues:o,renderState:a}=i;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=a,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=s,this.isControllingVariants=v(e),this.isVariantNode=x(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(e,{});for(let t in u){let e=u[t];void 0!==o[t]&&O(e)&&(e.set(o[t],!1),nb(l)&&l.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,ik.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)),iL.current||function(){if(iL.current=!0,h){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>iD.current=t.matches;t.addListener(e),e()}else iD.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||iD.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in ik.delete(this.current),this.projection&&this.projection.unmount(),tV(this.notifyUpdate),tV(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){let n=M.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tM.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{r(),i()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},n,r,i){let s,o;for(let t=0;t<iN;t++){let n=iI[t],{isEnabled:r,Feature:i,ProjectionNode:a,MeasureLayout:l}=E[n];a&&(s=a),r(e)&&(!this.features[n]&&i&&(this.features[n]=new i(this)),l&&(o=l))}if(!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);let{layoutId:t,layout:n,drag:r,dragConstraints:o,layoutScroll:a,layoutRoot:l}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:!!r||o&&p(o),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:a,layoutRoot:l})}return o}updateFeatures(){for(let t in this.features){let e=this.features[t];
1e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<iF.length;e++){let n=iF[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=t["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(t,e,n){let{willChange:r}=e;for(let i in e){let s=e[i],o=n[i];if(O(s))t.addValue(i,s),nb(r)&&r.add(i);else if(O(o))t.addValue(i,n_(s,{owner:t})),nb(r)&&r.remove(i);else if(o!==s){if(t.hasValue(i)){let e=t.getValue(i);e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(i);t.addValue(i,n_(void 0!==e?e:s,{owner:t}))}}}for(let r in n)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}let e={};for(let t=0;t<iB;t++){let n=y[t],r=this.props[n];(f(r)||!1===r)&&(e[n]=r)}return e}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);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 n=this.values.get(t);return void 0===n&&void 0!==e&&(n=n_(e,{owner:this}),this.addValue(t,n)),n}readValue(t){var e;return void 0===this.latestValues[t]&&this.current?null!==(e=this.getBaseTargetFromProps(this.props,t))&&void 0!==e?e:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(e=tb(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,t);return void 0===i||O(i)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new nT),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class iW extends iU{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:r},i){let s=function(t,e,n){let r={};for(let i in t){let t=function(t,e){if(e)return(e[t]||e.default||e).from}(i,e);if(void 0!==t)r[i]=t;else{let t=n.getValue(i);t&&(r[i]=t.get())}}return r}(n,t||{},this);if(r&&(e&&(e=r(e)),n&&(n=r(n)),s&&(s=r(s))),i){!function(t,e,n){var r,i;let s=Object.keys(e).filter(e=>!t.hasValue(e)),o=s.length;if(o)for(let a=0;a<o;a++){let o=s[a],l=e[o],u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(i=null!==(r=n[o]
1)&&void 0!==r?r:t.readValue(o))&&void 0!==i?i:e[o]),null!=u&&("string"==typeof u&&(nE(u)||nv(u))?u=parseFloat(u):!nD(u)&&eX.test(l)&&(u=ny(o,l)),t.addValue(o,n_(u,{owner:t})),void 0===n[o]&&(n[o]=u),null!==u&&t.setBaseTarget(o,u))}}(this,n,s);let t=ij(this,n,s,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class i$ extends iW{readValueFromInstance(t,e){if(M.has(e)){let t=ng(e);return t&&t.default||0}{let n=window.getComputedStyle(t),r=(k(e)?n.getPropertyValue(e):n[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return rg(t,e)}build(t,e,n,r){tr(t,e,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return tx(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;O(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(t,e,n,r){tg(t,e,n,r)}}class iH extends iW{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(M.has(e)){let t=ng(e);return t&&t.default||0}return e=ty.has(e)?e:tm(e),t.getAttribute(e)}measureInstanceViewportBox(){return rt()}scrapeMotionValuesFromProps(t,e){return tP(t,e)}build(t,e,n,r){td(t,e,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,n,r){tv(t,e,n,r)}mount(t){this.isSVGTag=tf(t.tagName),super.mount(t)}}let iX=(t,e)=>w(t)?new iH(e,{enableHardwareAcceleration:!1}):new i$(e,{enableHardwareAcceleration:!0}),iG={animation:{Feature:nU},exit:{Feature:n$},inView:{Feature:t4},tap:{Feature:t0},focus:{Feature:tZ},hover:{Feature:tK},pan:{Feature:rS},drag:{Feature:rb,ProjectionNode:ix,MeasureLayout:rC},layout:{ProjectionNode:ix,MeasureLayout:rC}},iY=function(t){function e(e,n={}){return function({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){t&&function(t){for(let e in t)E[e]={...E[e],...t[e]}}(t);let s=(0,o.forwardRef)(function(s,m){var g;let y;let x={...(0,o.useContext)(a),...s,layoutId:function({layoutId:t}){let e=(0,o.useContext)(S).id;return e&&void 0!==t?e+"-"+t:t}(s)},{isStatic:b}=x,E=function(t){let{initial:e,animate:n}=function(t,e){if(v(t)){let{initial:e,animate:n}=t;return{initial:!1===e||f(e)?e:void 0,animate:f(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,o.useContext)(l));return(0,o.useMemo)(()=>({initial:e,animate:n}),[P(e),P(n)])}(s),T=r(s,b);if(!b&&h){E.visualElement=function(t,e,n,r){let{visualElement:i}=(0,o.useContext)(l),s=(0,o.useContext)(d),h=(0,o.useContext)(u),p=(0,o.useContext)(a).reducedMotion,f=(0,o.useRef)();r=r||s.renderer,!f.current&&r&&(f.current=r(t,{visualState:e,parent:i,props:n,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:p}));let m=f.current;(0,o.useInsertionEffect)(()=>{m&&m.update(n,h)});let g=(0,o.useRef)(!!window.HandoffAppearAnimations);return c(()=>{m&&(m.render(),g.current&&m.animationState&&m.animationState.animateChanges())}),(0,o.useEffect)(()=>{m&&(m.updateFeatures(),!g.current&&m.animationState&&m.animationState.animateChanges(),window.HandoffAppearAnimations=!1,g.current=!1)}),m}(i,T,x,e);let n=(0,o.useContext)(A),r=(0,o.useContext)(d).strict;E.visualElement&&(y=E.visualElement.loadFeatures(x,r,t,n))}return o.createElement(l.Provider,{value:E},y&&E.visualElement?o.createElement(y,{visualElement:E.visualElement,...x}):null,n(i,s,(g=E.visualElement,(0,o.useCallback)(t=>{t&&T.mount&&T.mount(t),g&&(t?g.mount(t):g.unmount()),m&&("function"==typeof m?m(t):p(m)&&(m.current=t))},[g])),T,b,E.visualElement))});return s[T]=i,s}(t(e,n))}if("undefined"==typeof Proxy)return e;let n=new Map;return new Proxy(e,{get:(t,r)=>(n.has(r)||n.set(r,e(r)),n.get(r))})}((t,e)=>(function(t,{forwardMotionProps:e=!1},n,r){return{...w(t)?tD:tL,preloadedFeatures:n,useRender:function(t=!1){return(e,n,r,{latestValues:i},s)=>{let a=(w(e)?function(t,e,n,r){let i=(0,o.useMemo)(()=>{let n=tp();return td(n,e,{enableHardwareAcceleration:!1},tf(r),t.transformTemplate),{...n.attrs,style:{...n.style}}},[e]);if(t.style){let e={};ts(e,t.style,t),i.style={...e,...i.style}}return i}:function(t,e,n){let r={},i=function(t,e,n){let r=t.style||{},i={};return ts(i,r,t),Object.assign(i,function({transformTemplate:t},e,n){return(0,o.useMemo)(()=>{let r=ti();return tr(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)}
1,[e])}(t,e,n)),t.transformValues?t.transformValues(i):i}(t,e,n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r})(n,i,s,e),l={...function(t,e,n){let r={};for(let i in t)("values"!==i||"object"!=typeof t.values)&&(tl(i)||!0===n&&ta(i)||!e&&!ta(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}(n,"string"==typeof e,t),...a,ref:r},{children:u}=n,h=(0,o.useMemo)(()=>O(u)?u.get():u,[u]);return(0,o.createElement)(e,{...l,children:h})}}(e),createVisualElement:r,Component:t}})(t,e,iG,iX))}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.