PageSourceSearch

https://www.prism-me.com/_next/static/chunks/5786-2945299b797d03b5.js

js prism-me.com collected 2026-09-25 18:41:43 UTC 136,131 bytes, 10 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5786],{83454:function(t,e,i){"use strict";var n,r;t.exports=(null==(n=i.g.process)?void 0:n.env)&&"object"==typeof(null==(r=i.g.process)?void 0:r.env)?i.g.process:i(77663)},38199:function(t,e){"use strict";var i,n,r,s;Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{ACTION_FAST_REFRESH:function(){return c},ACTION_NAVIGATE:function(){return a},ACTION_PREFETCH:function(){return h},ACTION_REFRESH:function(){return o},ACTION_RESTORE:function(){return l},ACTION_SERVER_ACTION:function(){return d},ACTION_SERVER_PATCH:function(){return u},PrefetchCacheEntryStatus:function(){return n},PrefetchKind:function(){return i},isThenable:function(){return p}});let o="refresh",a="navigate",l="restore",u="server-patch",h="prefetch",c="fast-refresh",d="server-action";function p(t){return t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then}(r=i||(i={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",(s=n||(n={})).fresh="fresh",s.reusable="reusable",s.expired="expired",s.stale="stale",("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)},87195:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getDomainLocale",{enumerable:!0,get:function(){return r}});let n=i(98337);function r(t,e,r,s){{let o=i(15183).normalizeLocalePath,a=i(4166).detectDomainLocale,l=e||o(t,r).detectedLocale,u=a(s,void 0,l);if(u){let e="http"+(u.http?"":"s")+"://",i=l===u.defaultLocale?"":"/"+l;return""+e+u.domain+(0,n.normalizePathTrailingSlash)(""+i+t)}return!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)},74080:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return x}});let n=i(38754),r=i(61757),s=i(85893),o=r._(i(67294)),a=n._(i(73935)),l=n._(i(23867)),u=i(35283),h=i(96594),c=i(23945);i(83179);let d=i(81928),p=n._(i(13872)),f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function m(t,e,i,n,r,s,o){let a=null==t?void 0:t.src;t&&t["data-loaded-src"]!==a&&(t["data-loaded-src"]=a,("decode"in t?t.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(t.parentElement&&t.isConnected){if("empty"!==e&&r(!0),null==i?void 0:i.current){let e=new Event("load");Object.defineProperty(e,"target",{writable:!1,value:t});let n=!1,r=!1;i.current({...e,nativeEvent:e,currentTarget:t,target:t,isDefaultPrevented:()=>n,isPropagationStopped:()=>r,persist:()=>{},preventDefault:()=>{n=!0,e.preventDefault()},stopPropagation:()=>{r=!0,e.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(t)}}))}function g(t){return o.use?{fetchPriority:t}:{fetchpriority:t}}let v=(0,o.forwardRef)((t,e)=>{let{src:i,srcSet:n,sizes:r,height:a,width:l,decoding:u,className:h,style:c,fetchPriority:d,placeholder:p,loading:f,unoptimized:v,fill:y,onLoadRef:x,onLoadingCompleteRef:b,setBlurComplete:w,setShowAltText:P,sizesInput:T,onLoad:S,onError:A,...E}=t;return(0,s.jsx)("img",{...E,...g(d),loading:f,width:l,height:a,decoding:u,"data-nimg":y?"fill":"1",className:h,style:c,sizes:r,srcSet:n,src:i,ref:(0,o.useCallback)(t=>{e&&("function"==typeof e?e(t):"object"==typeof e&&(e.current=t)),t&&(A&&(t.src=t.src),t.complete&&m(t,p,x,b,w,v,T))},[i,p,x,b,w,A,v,T,e]),onLoad:t=>{m(t.currentTarget,p,x,b,w,v,T)},onError:t=>{P(!0),"empty"!==p&&w(!0),A&&A(t)}})});function y(t){let{isAppRouter:e,imgAttributes:i}=t,n={as:"image",imageSrcSet:i.srcSet,imageSizes:i.sizes,crossOrigin:i.crossOrigin,referrerPolicy:i.referrerPolicy,...g(i.fetchPriority)};return e&&a.default.preload?(a.default.preload(i.src,n),null):(0,s.jsx)(l.default,{children:(0,s.jsx)("link",{rel:"preload",href:i.srcSet?void 0:i.src,...n},"__nimg-"+i.src+i.srcSet+i.sizes)})}let x=(0,o.forwardRef)((t,e)=>{let i=(0,o.useContext)(d.RouterContext),n=(0,o.useContext)(c.ImageConfigContext),r=(0,o.useMemo)(()=>{var t;let e=f||n||h.imageConfigDefault,i=[...e.deviceSizes,...e.imageSizes].sort((t,e)=>t-e),r=e.deviceSizes.sort((t,e)=>t-e),s=null==(t=e.qualities)?void 0:t.sort((t,e)=>t-e);return{...e,allSizes:i,deviceSizes:r,qualities:s}},[n]),{onLoad:a,onLoadingComplete:l}=t,m=(0,o.useRef)(a);(0,o.useEffect)(()=>{m.current=a},[a]);let g=(0,o.useRef)(l);(0,o.useEffect)(()=>{g.current=l},[l]);let[x,b]=(0,o.useState)(!1),[w,P]=(0,o.useState)(!1),{props:T,meta:S}=(0,u.getImgProps)(t,{defaultLoader:p.default,imgConf:r,blurComplete:x,showAltText:w});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v,{...T,unoptimized:S.unoptimized,placeholder:S.placeholder,fill:S.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:P,sizesInput:t.sizes,ref:e}),S.priority?(0,s.jsx)(y,{isAppRouter:!i,imgAttributes:T}):null]})});("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)},98342:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return b}});let n=i(38754),r=i(85893),s=n._(i(67294)),o=i(36075),a=i(53955),l=i(48041),u=i(99903),h=i(65490),c=i(81928),d=i(60257),p=i(84229),f=i(87195),m=i(89470),g=i(38199),v=new Set;function y(t,e,i,n,r,s){if(s||(0,a.isLocalURL)(e)){if(!n.bypassPrefetchedCheck){let r=e+"%"+i+"%"+(void 0!==n.locale?n.locale:"locale"in t?t.locale:void 0);if(v.has(r))return;v.add(r)}(async()=>s?t.prefetch(e,r):t.prefetch(e,i,n))().catch(t=>{})}}function x(t){return"string"==typeof t?t:(0,l.formatUrl)(t)}let b=s.default.forwardRef(function(t,e){let i,n;let{href:l,as:v,children:b,prefetch:w=null,passHref:P,replace:T,shallow:S,scroll:A,locale:E,onClick:M,onMouseEnter:C,onTouchStart:j,legacyBehavior:V=!1,...R}=t;i=b,V&&("string"==typeof i||"number"==typeof i)&&(i=(0,r.jsx)("a",{children:i}));let k=s.default.useContext(c.RouterContext),D=s.default.useContext(d.AppRouterContext),O=null!=k?k:D,L=!k,F=!1!==w,B=null===w?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:I,as:U}=s.default.useMemo(()=>{if(!k){let t=x(l);return{href:t,as:v?x(v):t}}let[t,e]=(0,o.resolveHref)(k,l,!0);return{href:t,as:v?(0,o.resolveHref)(k,v):e||t}},[k,l,v]),_=s.default.useRef(I),N=s.default.useRef(U);V&&(n=s.default.Children.only(i));let z=V?n&&"object"==typeof n&&n.ref:e,[$,W,H]=(0,p.useIntersection)({rootMargin:"200px"}),Y=s.default.useCallback(t=>{(N.current!==U||_.current!==I)&&(H(),N.current=U,_.current=I),$(t),z&&("function"==typeof z?z(t):"object"==typeof z&&(z.current=t))},[U,z,I,H,$]);s.default.useEffect(()=>{O&&W&&F&&y(O,I,U,{locale:E},{kind:B},L)},[U,I,W,E,F,null==k?void 0:k.locale,O,L,B]);let X={ref:Y,onClick(t){V||"function"!=typeof M||M(t),V&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(t),O&&!t.defaultPrevented&&function(t,e,i,n,r,o,l,u,h){let{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&(function(t){let e=t.currentTarget.getAttribute("target");return e&&"_self"!==e||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which}(t)||!h&&!(0,a.isLocalURL)(i)))return;t.preventDefault();let d=()=>{let t=null==l||l;"beforePopState"in e?e[r?"replace":"push"](i,n,{shallow:o,locale:u,scroll:t}):e[r?"replace":"push"](n||i,{scroll:t})};h?s.default.startTransition(d):d()}(t,O,I,U,T,S,A,E,L)},onMouseEnter(t){V||"function"!=typeof C||C(t),V&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(t),O&&(F||!L)&&y(O,I,U,{locale:E,priority:!0,bypassPrefetchedCheck:!0},{kind:B},L)},onTouchStart:function(t){V||"function"!=typeof j||j(t),V&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(t),O&&(F||!L)&&y(O,I,U,{locale:E,priority:!0,bypassPrefetchedCheck:!0},{kind:B},L)}};if((0,u.isAbsoluteUrl)(U))X.href=U;else if(!V||P||"a"===n.type&&!("href"in n.props)){let t=void 0!==E?E:null==k?void 0:k.locale,e=(null==k?void 0:k.isLocaleDomain)&&(0,f.getDomainLocale)(U,t,null==k?void 0:k.locales,null==k?void 0:k.domainLocales);X.href=e||(0,m.addBasePath)((0,h.addLocale)(U,t,null==k?void 0:k.defaultLocale))}return V?s.default.cloneElement(n,X):(0,r.jsx)("a",{...R,...X,children:i})});("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},15183:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});let n=(t,e)=>i(54165).normalizeLocalePath(t,e);("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)},84229:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useIntersection",{enumerable:!0,get:function(){return l}});let n=i(67294),r=i(84474),s="function"==typeof IntersectionObserver,o=new Map,a=[];function l(t){let{rootRef:e,rootMargin:i,disabled:l}
1=t,u=l||!s,[h,c]=(0,n.useState)(!1),d=(0,n.useRef)(null),p=(0,n.useCallback)(t=>{d.current=t},[]);return(0,n.useEffect)(()=>{if(s){if(u||h)return;let t=d.current;if(t&&t.tagName)return function(t,e,i){let{id:n,observer:r,elements:s}=function(t){let e;let i={root:t.root||null,margin:t.rootMargin||""},n=a.find(t=>t.root===i.root&&t.margin===i.margin);if(n&&(e=o.get(n)))return e;let r=new Map;return e={id:i,observer:new IntersectionObserver(t=>{t.forEach(t=>{let e=r.get(t.target),i=t.isIntersecting||t.intersectionRatio>0;e&&i&&e(i)})},t),elements:r},a.push(i),o.set(i,e),e}(i);return s.set(t,e),r.observe(t),function(){if(s.delete(t),r.unobserve(t),0===s.size){r.disconnect(),o.delete(n);let t=a.findIndex(t=>t.root===n.root&&t.margin===n.margin);t>-1&&a.splice(t,1)}}}(t,t=>t&&c(t),{root:null==e?void 0:e.current,rootMargin:i})}else if(!h){let t=(0,r.requestIdleCallback)(()=>c(!0));return()=>(0,r.cancelIdleCallback)(t)}},[u,i,e,h,d.current]),[p,h,(0,n.useCallback)(()=>{c(!1)},[])]}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},35283:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return a}}),i(83179);let n=i(96630),r=i(96594);function s(t){return void 0!==t.default}function o(t){return void 0===t?t:"number"==typeof t?Number.isFinite(t)?t:NaN:"string"==typeof t&&/^[0-9]+$/.test(t)?parseInt(t,10):NaN}function a(t,e){var i,a;let l,u,h,{src:c,sizes:d,unoptimized:p=!1,priority:f=!1,loading:m,className:g,quality:v,width:y,height:x,fill:b=!1,style:w,overrideSrc:P,onLoad:T,onLoadingComplete:S,placeholder:A="empty",blurDataURL:E,fetchPriority:M,decoding:C="async",layout:j,objectFit:V,objectPosition:R,lazyBoundary:k,lazyRoot:D,...O}=t,{imgConf:L,showAltText:F,blurComplete:B,defaultLoader:I}=e,U=L||r.imageConfigDefault;if("allSizes"in U)l=U;else{let t=[...U.deviceSizes,...U.imageSizes].sort((t,e)=>t-e),e=U.deviceSizes.sort((t,e)=>t-e),n=null==(i=U.qualities)?void 0:i.sort((t,e)=>t-e);l={...U,allSizes:t,deviceSizes:e,qualities:n}}if(void 0===I)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let _=O.loader||I;delete O.loader,delete O.srcSet;let N="__next_img_default"in _;if(N){if("custom"===l.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let t=_;_=e=>{let{config:i,...n}=e;return t(n)}}if(j){"fill"===j&&(b=!0);let t={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[j];t&&(w={...w,...t});let e={responsive:"100vw",fill:"100vw"}[j];e&&!d&&(d=e)}let z="",$=o(y),W=o(x);if("object"==typeof(a=c)&&(s(a)||void 0!==a.src)){let t=s(c)?c.default:c;if(!t.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(t));if(!t.height||!t.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(t));if(u=t.blurWidth,h=t.blurHeight,E=E||t.blurDataURL,z=t.src,!b){if($||W){if($&&!W){let e=$/t.width;W=Math.round(t.height*e)}else if(!$&&W){let e=W/t.height;$=Math.round(t.width*e)}}else $=t.width,W=t.height}}let H=!f&&("lazy"===m||void 0===m);(!(c="string"==typeof c?c:z)||c.startsWith("data:")||c.startsWith("blob:"))&&(p=!0,H=!1),l.unoptimized&&(p=!0),N&&c.endsWith(".svg")&&!l.dangerouslyAllowSVG&&(p=!0),f&&(M="high");let Y=o(v),X=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:V,objectPosition:R}:{},F?{}:{color:"transparent"},w),K=B||"empty"===A?null:"blur"===A?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:$,heightInt:W,blurWidth:u,blurHeight:h,blurDataURL:E||"",objectFit:X.objectFit})+'")':'url("'+A+'")',q=K?{backgroundSize:X.objectFit||"cover",backgroundPosition:X.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:K}:{},G=function(t){let{config:e,src:i,unoptimized:n,width:r,quality:s,sizes:o,loader:a}=t;if(n)return{src:i,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}
1=function(t,e,i){let{deviceSizes:n,allSizes:r}=t;if(i){let t=/(^|\s)(1?\d?\d)vw/g,e=[];for(let n;n=t.exec(i);n)e.push(parseInt(n[2]));if(e.length){let t=.01*Math.min(...e);return{widths:r.filter(e=>e>=n[0]*t),kind:"w"}}return{widths:r,kind:"w"}}return"number"!=typeof e?{widths:n,kind:"w"}:{widths:[...new Set([e,2*e].map(t=>r.find(e=>e>=t)||r[r.length-1]))],kind:"x"}}(e,r,o),h=l.length-1;return{sizes:o||"w"!==u?o:"100vw",srcSet:l.map((t,n)=>a({config:e,src:i,quality:s,width:t})+" "+("w"===u?t:n+1)+u).join(", "),src:a({config:e,src:i,quality:s,width:l[h]})}}({config:l,src:c,unoptimized:p,width:$,quality:Y,sizes:d,loader:_});return{props:{...O,loading:H?"lazy":m,fetchPriority:M,width:$,height:W,decoding:C,className:g,style:{...X,...q},sizes:G.sizes,srcSet:G.srcSet,src:P||G.src},meta:{unoptimized:p,priority:f,placeholder:A,fill:b}}}},96630:function(t,e){"use strict";function i(t){let{widthInt:e,heightInt:i,blurWidth:n,blurHeight:r,blurDataURL:s,objectFit:o}=t,a=n?40*n:e,l=r?40*r:i,u=a&&l?"viewBox='0 0 "+a+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+s+"'/%3E%3C/svg%3E"}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return i}})},76210:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{default:function(){return l},getImageProps:function(){return a}});let n=i(38754),r=i(35283),s=i(74080),o=n._(i(13872));function a(t){let{props:e}=(0,r.getImgProps)(t,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[t,i]of Object.entries(e))void 0===i&&delete e[t];return{props:e}}let l=s.Image},13872:function(t,e){"use strict";function i(t){var e;let{config:i,src:n,width:r,quality:s}=t,o=s||(null==(e=i.qualities)?void 0:e.reduce((t,e)=>Math.abs(e-75)<Math.abs(t-75)?e:t))||75;return i.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+o+"&dpl=dpl_Gq97H4q5ejNiiLpp66ur1CqbzNcz"}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}}),i.__next_img_default=!0;let n=i},77663:function(t){!function(){var e={229:function(t){var e,i,n,r=t.exports={};function s(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===s||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(i){try{return e.call(null,t,0)}catch(i){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:s}catch(t){e=s}try{i="function"==typeof clearTimeout?clearTimeout:o}catch(t){i=o}}();var l=[],u=!1,h=-1;function c(){u&&n&&(u=!1,n.length?l=n.concat(l):h=-1,l.length&&d())}function d(){if(!u){var t=a(c);u=!0;for(var e=l.length;e;){for(n=l,l=[];++h<e;)n&&n[h].run();h=-1,e=l.length}n=null,u=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function f(){}r.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];l.push(new p(t,e)),1!==l.length||u||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(t){return[]},r.binding=function(t){throw Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw Error("process.chdir is not supported")},r.umask=function(){return 0}}},i={};function n(t){var r=i[t];
1if(void 0!==r)return r.exports;var s=i[t]={exports:{}},o=!0;try{e[t](s,s.exports,n),o=!1}finally{o&&delete i[t]}return s.exports}n.ab="//";var r=n(229);t.exports=r}()},25675:function(t,e,i){t.exports=i(76210)},41664:function(t,e,i){t.exports=i(98342)},13114:function(t,e,i){"use strict";i.d(e,{M:function(){return v}});var n=i(85893),r=i(67294),s=i(25364),o=i(96681),a=i(58868),l=i(240),u=i(16014);class h extends r.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,i=t instanceof HTMLElement&&t.offsetWidth||0,n=this.props.sizeRef.current;n.height=e.offsetHeight||0,n.width=e.offsetWidth||0,n.top=e.offsetTop,n.left=e.offsetLeft,n.right=i-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function c({children:t,isPresent:e,anchorX:i}){let s=(0,r.useId)(),o=(0,r.useRef)(null),a=(0,r.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:l}=(0,r.useContext)(u._);return(0,r.useInsertionEffect)(()=>{let{width:t,height:n,top:r,left:u,right:h}=a.current;if(e||!o.current||!t||!n)return;let c="left"===i?`left: ${u}`:`right: ${h}`;o.current.dataset.motionPopId=s;let d=document.createElement("style");return l&&(d.nonce=l),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
2          [data-motion-pop-id="${s}"] {
3            position: absolute !important;
4            width: ${t}px !important;
5            height: ${n}px !important;
6            ${c}px !important;
7            top: ${r}px !important;
8          }
9        `),()=>{document.head.removeChild(d)}},[e]),(0,n.jsx)(h,{isPresent:e,childRef:o,sizeRef:a,children:r.cloneElement(t,{ref:o})})}let d=({children:t,initial:e,isPresent:i,onExitComplete:s,custom:a,presenceAffectsLayout:u,mode:h,anchorX:d})=>{let f=(0,o.h)(p),m=(0,r.useId)(),g=(0,r.useCallback)(t=>{for(let e of(f.set(t,!0),f.values()))if(!e)return;s&&s()},[f,s]),v=(0,r.useMemo)(()=>({id:m,initial:e,isPresent:i,custom:a,onExitComplete:g,register:t=>(f.set(t,!1),()=>f.delete(t))}),u?[Math.random(),g]:[i,g]);return(0,r.useMemo)(()=>{f.forEach((t,e)=>f.set(e,!1))},[i]),r.useEffect(()=>{i||f.size||!s||s()},[i]),"popLayout"===h&&(t=(0,n.jsx)(c,{isPresent:i,anchorX:d,children:t})),(0,n.jsx)(l.O.Provider,{value:v,children:t})};function p(){return new Map}var f=i(15947);let m=t=>t.key||"";function g(t){let e=[];return r.Children.forEach(t,t=>{(0,r.isValidElement)(t)&&e.push(t)}),e}let v=({children:t,custom:e,initial:i=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:h="sync",propagate:c=!1,anchorX:p="left"})=>{let[v,y]=(0,f.oO)(c),x=(0,r.useMemo)(()=>g(t),[t]),b=c&&!v?[]:x.map(m),w=(0,r.useRef)(!0),P=(0,r.useRef)(x),T=(0,o.h)(()=>new Map),[S,A]=(0,r.useState)(x),[E,M]=(0,r.useState)(x);(0,a.L)(()=>{w.current=!1,P.current=x;for(let t=0;t<E.length;t++){let e=m(E[t]);b.includes(e)?T.delete(e):!0!==T.get(e)&&T.set(e,!1)}},[E,b.length,b.join("-")]);let C=[];if(x!==S){let t=[...x];for(let e=0;e<E.length;e++){let i=E[e],n=m(i);b.includes(n)||(t.splice(e,0,i),C.push(i))}return"wait"===h&&C.length&&(t=C),M(g(t)),A(x),null}let{forceRender:j}=(0,r.useContext)(s.p);return(0,n.jsx)(n.Fragment,{children:E.map(t=>{let r=m(t),s=(!c||!!v)&&(x===E||b.includes(r));return(0,n.jsx)(d,{isPresent:s,initial:(!w.current||!!i)&&void 0,custom:e,presenceAffectsLayout:u,mode:h,onExitComplete:s?void 0:()=>{if(!T.has(r))return;T.set(r,!0);let t=!0;T.forEach(e=>{e||(t=!1)}),t&&(j?.(),M(P.current),c&&y?.(),l&&l())},anchorX:p,children:t},r)})})}},15947:function(t,e,i){"use strict";i.d(e,{oO:function(){return s}});var n=i(67294),r=i(240);function s(t=!0){let e=(0,n.useContext)(r.O);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:s,register:o}=e,a=(0,n.useId)();(0,n.useEffect)(()=>{if(t)return o(a)},[t]);let l=(0,n.useCallback)(()=>t&&s&&s(a),[a,s,t]);return!i&&s?[!1,l]:[!0]}},25364:function(t,e,i){"use strict";i.d(e,{p:function(){return n}});let n=(0,i(67294).createContext)({})},16014:function(t,e,i){"use strict";i.d(e,{_:function(){return n}});let n=(0,i(67294).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})}
9,240:function(t,e,i){"use strict";i.d(e,{O:function(){return n}});let n=(0,i(67294).createContext)(null)},11642:function(t,e,i){"use strict";let n;function r(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function s(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function o(t,e,i,n){if("function"==typeof e){let[r,o]=s(n);e=e(void 0!==i?i:t.custom,r,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,o]=s(n);e=e(void 0!==i?i:t.custom,r,o)}return e}function a(t,e,i){let n=t.getProps();return o(n,e,void 0!==i?i:n.custom,t)}function l(t,e){return t?.[e]??t?.default??t}i.d(e,{E:function(){return sj}});let u=t=>t,h={skipAnimations:!1,useManualTiming:!1},c=["read","resolveKeyframes","update","preRender","render","postRender"],d={value:null,addProjectionMetrics:null};function p(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=c.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,r=!1,s=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){o.has(e)&&(h.schedule(e),t()),l++,e(a)}let h={schedule:(t,e=!1,s=!1)=>{let a=s&&r?i:n;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(a=t,r){s=!0;return}r=!0,[i,n]=[n,i],i.forEach(u),e&&d.value&&d.value.frameloop[e].push(l),l=0,i.clear(),r=!1,s&&(s=!1,h.process(t))}};return h}(s,e?i:void 0),t),{}),{read:a,resolveKeyframes:l,update:u,preRender:p,render:f,postRender:m}=o,g=()=>{let s=h.useManualTiming?r.timestamp:performance.now();i=!1,h.useManualTiming||(r.delta=n?1e3/60:Math.max(Math.min(s-r.timestamp,40),1)),r.timestamp=s,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),p.process(r),f.process(r),m.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(g))},v=()=>{i=!0,n=!0,r.isProcessing||t(g)};return{schedule:c.reduce((t,e)=>{let n=o[e];return t[e]=(t,e=!1,r=!1)=>(i||v(),n.schedule(t,e,r)),t},{}),cancel:t=>{for(let e=0;e<c.length;e++)o[c[e]].cancel(t)},state:r,steps:o}}let{schedule:f,cancel:m,state:g,steps:v}=p("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:u,!0),y=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],x=new Set(y),b=new Set(["width","height","top","left","right","bottom",...y]);function w(t,e){-1===t.indexOf(e)&&t.push(e)}function P(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class T{constructor(){this.subscriptions=[]}add(t){return w(this.subscriptions,t),()=>P(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function S(){n=void 0}let A={now:()=>(void 0===n&&A.set(g.isProcessing||h.useManualTiming?g.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(S)}},E=t=>!isNaN(parseFloat(t)),M={current:void 0};class C{constructor(t,e={}){this.version="12.7.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=A.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=A.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=E(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new T);let i=this.events[t].add(e);return"change"===t?()=>{i(),f.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return M.current&&M.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=A.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function j(t,e){return new C(t,e)}let V=t=>Array.isArray(t),R=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),k=t=>V(t)?t[t.length-1]||0:t,D=t=>!!(t&&t.getVelocity);function O(t,e){let i=t.getValue("willChange");if(D(i)&&i.add)return i.add(e);if(!i&&h.WillChange){let i=new h.WillChange("auto");
9t.addValue("willChange",i),i.add(e)}}let L=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),F="data-"+L("framerAppearId");function B(t){let e;return()=>(void 0===e&&(e=t()),e)}let I=B(()=>void 0!==window.ScrollTimeline);class U{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t,e){let i=this.animations.map(i=>I()&&i.attachTimeline?i.attachTimeline(t):"function"==typeof e?e(i):void 0);return()=>{i.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class _ extends U{then(t,e){return this.finished.finally(t).then(()=>{})}}let N=t=>1e3*t,z=t=>t/1e3,$={current:!1};function W(t){return"function"==typeof t&&"applyToOptions"in t}let H=t=>Array.isArray(t)&&"number"==typeof t[0],Y={},X=function(t,e){let i=B(t);return()=>Y[e]??i()}(()=>{try{document.createElement("div").animate({opacity:0}
9,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),K=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,q={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:K([0,.65,.55,1]),circOut:K([.55,0,1,.45]),backIn:K([.31,.01,.66,-.59]),backOut:K([.33,1.53,.69,.99])},G={layout:0,mainThread:0,waapi:0},Z=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=t(e/(r-1))+", ";return`linear(${n.substring(0,n.length-2)})`};function J(t,e){t.timeline=e,t.onfinish=null}let Q=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function tt(t,e,i,n){if(t===e&&i===n)return u;let r=e=>(function(t,e,i,n,r){let s,o;let a=0;do(s=Q(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:Q(r(t),e,n)}let te=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ti=t=>e=>1-t(1-e),tn=tt(.33,1.53,.69,.99),tr=ti(tn),ts=te(tr),to=t=>(t*=2)<1?.5*tr(t):.5*(2-Math.pow(2,-10*(t-1))),ta=t=>1-Math.sin(Math.acos(t)),tl=ti(ta),tu=te(ta),th=t=>/^0[^.\s]+$/u.test(t),tc=(t,e,i)=>i>e?e:i<t?t:i,td={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},tp={...td,transform:t=>tc(0,1,t)},tf={...td,default:1},tm=t=>Math.round(1e5*t)/1e5,tg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tv=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ty=(t,e)=>i=>!!("string"==typeof i&&tv.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tx=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,s,o,a]=n.match(tg);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tb=t=>tc(0,255,t),tw={...td,transform:t=>Math.round(tb(t))},tP={test:ty("rgb","red"),parse:tx("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+tw.transform(t)+", "+tw.transform(e)+", "+tw.transform(i)+", "+tm(tp.transform(n))+")"},tT={test:ty("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:tP.transform},tS=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tA=tS("deg"),tE=tS("%"),tM=tS("px"),tC=tS("vh"),tj=tS("vw"),tV={...tE,parse:t=>tE.parse(t)/100,transform:t=>tE.transform(100*t)},tR={test:ty("hsl","hue"),parse:tx("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+tE.transform(tm(e))+", "+tE.transform(tm(i))+", "+tm(tp.transform(n))+")"},tk={test:t=>tP.test(t)||tT.test(t)||tR.test(t),parse:t=>tP.test(t)?tP.parse(t):tR.test(t)?tR.parse(t):tT.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tP.transform(t):tR.transform(t)},tD=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tO="number",tL="color",tF=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function tB(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,o=e.replace(tF,t=>(tk.test(t)?(n.color.push(s),r.push(tL),i.push(tk.parse(t))):t.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(t)):(n.number.push(s),r.push(tO),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function tI(t){return tB(t).values}function tU(t){let{split:e,types:i}=tB(t),n=e.length;return t=>{let r="";for(let s=0;s<n;s++)if(r+=e[s],void 0!==t[s]){let e=i[s];e===tO?r+=tm(t[s]):e===tL?r+=tk.transform(t[s]):r+=t[s]}return r}}let t_=t=>"number"==typeof t?0:t,tN={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(tg)?.length||0)+(t.match(tD)?.length||0)>0},parse:tI,createTransformer:tU,getAnimatableNone:function(t){let e=tI(t);return tU(t)(e.map(t_))}},tz=new Set(["brightness","contrast","saturate","opacity"]);function t$(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(tg)||[];if(!n)return t;let r=i.replace(n,""),s=tz.has(e)?1:0;return n!==i&&(s*=100),e+"("+s+r+")"}let tW=/\b([a-z-]*)\(.*?\)/gu,tH={...tN,getAnimatableNone:t=>{let e=t.match(tW);return e?e.map(t$).join(" "):t}},tY={...td,transform:Math.round},tX={borderWidth:tM,borderTopWidth:tM,borderRightWidth:tM,borderBottomWidth:tM,borderLeftWidth:tM,borderRadius:tM,radius:tM,borderTopLeftRadius:tM,borderTopRightRadius:tM,borderBottomRightRadius:tM,borderBottomLeftRadius:tM,width:tM,maxWidth:tM,height:tM,maxHeight:tM,top:tM,right:tM,bottom:tM,left:tM,padding:tM,paddingTop:tM,paddingRight:tM,paddingBottom:tM,paddingLeft:tM,margin:tM,marginTop:tM,marginRight:tM,marginBottom:tM,marginLeft:tM,backgroundPositionX:tM,backgroundPositionY:tM,rotate:tA,rotateX:tA,rotateY:tA,rotateZ:tA,scale:tf,scaleX:tf,scaleY:tf,scaleZ:tf,skew:tA,
9skewX:tA,skewY:tA,distance:tM,translateX:tM,translateY:tM,translateZ:tM,x:tM,y:tM,z:tM,perspective:tM,transformPerspective:tM,opacity:tp,originX:tV,originY:tV,originZ:tM,zIndex:tY,size:tM,fillOpacity:tp,strokeOpacity:tp,numOctaves:tY},tK={...tX,color:tk,backgroundColor:tk,outlineColor:tk,fill:tk,stroke:tk,borderColor:tk,borderTopColor:tk,borderRightColor:tk,borderBottomColor:tk,borderLeftColor:tk,filter:tH,WebkitFilter:tH},tq=t=>tK[t];function tG(t,e){let i=tq(t);return i!==tH&&(i=tN),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tZ=new Set(["auto","none","0"]),tJ=t=>180*t/Math.PI,tQ=t=>t1(tJ(Math.atan2(t[1],t[0]))),t0={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:tQ,rotateZ:tQ,skewX:t=>tJ(Math.atan(t[1])),skewY:t=>tJ(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},t1=t=>((t%=360)<0&&(t+=360),t),t2=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),t3=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),t5={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:t2,scaleY:t3,scale:t=>(t2(t)+t3(t))/2,rotateX:t=>t1(tJ(Math.atan2(t[6],t[5]))),rotateY:t=>t1(tJ(Math.atan2(-t[2],t[0]))),rotateZ:tQ,rotate:tQ,skewX:t=>tJ(Math.atan(t[4])),skewY:t=>tJ(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function t9(t){return t.includes("scale")?1:0}function t4(t,e){let i,n;if(!t||"none"===t)return t9(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=t5,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=t0,n=e}if(!n)return t9(e);let s=i[e],o=n[1].split(",").map(t8);return"function"==typeof s?s(o):o[s]}let t6=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return t4(i,e)};function t8(t){return parseFloat(t.trim())}let t7=t=>t===td||t===tM,et=new Set(["x","y","z"]),ee=y.filter(t=>!et.has(t)),ei={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>t4(e,"x"),y:(t,{transform:e})=>t4(e,"y")};ei.translateX=ei.x,ei.translateY=ei.y;let en=new Set,er=!1,es=!1;function eo(){if(es){let t=Array.from(en).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return ee.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}es=!1,er=!1,en.forEach(t=>t.complete()),en.clear()}function ea(){en.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(es=!0)})}
9class el{constructor(t,e,i,n,r,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(en.add(this),er||(er=!0,f.read(ea),f.resolveKeyframes(eo))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;for(let r=0;r<t.length;r++)if(null===t[r]){if(0===r){let r=n?.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}else t[r]=t[r-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),en.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,en.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let eu=()=>{},eh=()=>{},ec=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),ed=t=>e=>"string"==typeof e&&e.startsWith(t),ep=ed("--"),ef=ed("var(--"),em=t=>!!ef(t)&&eg.test(t.split("/*")[0].trim()),eg=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ev=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ey=t=>e=>e.test(t),ex=[td,tM,tE,tA,tj,tC,{test:t=>"auto"===t,parse:t=>t}],eb=t=>ex.find(ey(t));class ew extends el{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&em(n=n.trim())){let r=function t(e,i,n=1){eh(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,s]=function(t){let e=ev.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${i??n}`,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let t=o.trim();return ec(t)?parseFloat(t):t}return em(s)?t(s,i,n+1):s}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!b.has(i)||2!==t.length)return;let[n,r]=t,s=eb(n),o=eb(r);if(s!==o){if(t7(s)&&t7(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||th(n))&&i.push(e)}i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!tZ.has(e)&&tB(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=tG(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ei[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let r=i.length-1,s=i[r];i[r]=ei[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
9h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let eP=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tN.test(t)||"0"===t)&&!t.startsWith("url(")),eT=t=>null!==t;function eS(t,{repeat:e,repeatType:i="loop"},n){let r=t.filter(eT),s=e&&"loop"!==i&&e%2==1?0:r.length-1;return s&&void 0!==n?n:r[s]}class eA{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=A.now(),this.options={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(ea(),eo()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=A.now(),this.hasAttemptedResolve=!0;let{name:i,type:n,velocity:r,delay:s,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=eP(r,e),a=eP(s,e);return eu(o===a,`You are trying to animate ${e} from "${r}" to "${s}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${s} via the \`style\` property.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||W(i))&&n)}(t,i,n,r)){if($.current||!s){a&&a(eS(t,this.options,e)),o&&o(),this.resolveFinishedPromise();return}this.options.duration=0}let u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function eE(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let eM=(t,e,i)=>t+(e-t)*i;function eC(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function ej(t,e){return i=>i>0?e:t}let eV=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},eR=[tT,tP,tR],ek=t=>eR.find(e=>e.test(t));function eD(t){let e=ek(t);if(eu(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===tR&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;r=eC(a,n,t+1/3),s=eC(a,n,t),o=eC(a,n,t-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let eO=(t,e)=>{let i=eD(t),n=eD(e);if(!i||!n)return ej(t,e);let r={...i};return t=>(r.red=eV(i.red,n.red,t),r.green=eV(i.green,n.green,t),r.blue=eV(i.blue,n.blue,t),r.alpha=eM(i.alpha,n.alpha,t),tP.transform(r))},eL=(t,e)=>i=>e(t(i)),eF=(...t)=>t.reduce(eL),eB=new Set(["none","hidden"]);function eI(t,e){return i=>eM(t,e,i)}function eU(t){return"number"==typeof t?eI:"string"==typeof t?em(t)?ej:tk.test(t)?eO:ez:Array.isArray(t)?e_:"object"==typeof t?tk.test(t)?eO:eN:ej}function e_(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>eU(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function eN(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=eU(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let ez=(t,e)=>{let i=tN.createTransformer(e),n=tB(t),r=tB(e);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?eB.has(t)&&!r.values.length||eB.has(e)&&!n.values.length?eB.has(t)?i=>i<=0?t:e:i=>i>=1?e:t:eF(e_(function(t,e){let i=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let s=e.types[r],o=t.indexes[s][n[s]],a=t.values[o]??0;i[r]=a,n[s]++}return i}(n,r),r.values),i):(eu(!0,`Complex values '${t}' and '${e}
9' 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.`),ej(t,e))};function e$(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?eM(t,e,i):eU(t)(t,e)}function eW(t,e,i){var n,r;let s=Math.max(e-5,0);return n=i-t(s),(r=e-s)?1e3/r*n:0}let eH={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function eY(t,e){return t*Math.sqrt(1-e*e)}let eX=["duration","bounce"],eK=["stiffness","damping","mass"];function eq(t,e){return e.some(e=>void 0!==t[e])}function eG(t=eH.visualDuration,e=eH.bounce){let i;let n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:r,restDelta:s}=n,o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:h,mass:c,duration:d,velocity:p,isResolvedFromDuration:f}=function(t){let e={velocity:eH.velocity,stiffness:eH.stiffness,damping:eH.damping,mass:eH.mass,isResolvedFromDuration:!1,...t};if(!eq(t,eK)&&eq(t,eX)){if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*tc(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:eH.mass,stiffness:n,damping:r}}else{let i=function({duration:t=eH.duration,bounce:e=eH.bounce,velocity:i=eH.velocity,mass:n=eH.mass}){let r,s;eu(t<=N(eH.maxDuration),"Spring duration must be 10 seconds or less");let o=1-e;o=tc(eH.minDamping,eH.maxDamping,o),t=tc(eH.minDuration,eH.maxDuration,z(t)),o<1?(r=e=>{let n=e*o,r=n*t;return .001-(n-i)/eY(e,o)*Math.exp(-r)},s=e=>{let n=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=eY(Math.pow(e,2),o);return(n*i+i-s)*Math.exp(-n)*(-r(e)+.001>0?-1:1)/a}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,5/t);if(t=N(t),isNaN(a))return{stiffness:eH.stiffness,damping:eH.damping,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:eH.mass}).isResolvedFromDuration=!0}}return e}({...n,velocity:-z(n.velocity||0)}),m=p||0,g=h/(2*Math.sqrt(u*c)),v=a-o,y=z(Math.sqrt(u/c)),x=5>Math.abs(v);if(r||(r=x?eH.restSpeed.granular:eH.restSpeed.default),s||(s=x?eH.restDelta.granular:eH.restDelta.default),g<1){let t=eY(y,g);i=e=>a-Math.exp(-g*y*e)*((m+g*y*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}else if(1===g)i=t=>a-Math.exp(-y*t)*(v+(m+y*v)*t);else{let t=y*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*y*e),n=Math.min(t*e,300);return a-i*((m+g*y*v)*Math.sinh(n)+t*v*Math.cosh(n))/t}}let b={calculatedDuration:f&&d||null,next:t=>{let e=i(t);if(f)l.done=t>=d;else{let n=0;g<1&&(n=0===t?N(m):eW(i,t,e));let o=Math.abs(n)<=r,u=Math.abs(a-e)<=s;l.done=o&&u}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(eE(b),2e4),e=Z(e=>b.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return b}function eZ({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d;let p=t[0],f={done:!1,value:p},m=t=>void 0!==a&&t<a||void 0!==l&&t>l,g=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,v=i*e,y=p+v,x=void 0===o?y:o(y);x!==y&&(v=x-p);let b=t=>-v*Math.exp(-t/n),w=t=>x+b(t),P=t=>{let e=b(t),i=w(t);f.done=Math.abs(e)<=u,f.value=f.done?x:i},T=t=>{m(f.value)&&(c=t,d=eG({keyframes:[f.value,g(f.value)],velocity:eW(w,t,f.value),damping:r,stiffness:s,restDelta:u,restSpeed:h}))};return T(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,P(t),T(t)),void 0!==c&&t>=c)?d.next(t-c):(e||P(t),f)}}}eG.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),r=Math.min(eE(n),2e4);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:z(r)}}(t,100,eG);return t.ease=X()?e.ease:"easeOut",t.duration=N(e.duration),t.type="keyframes",t};let eJ=tt(.42,0,1,1),eQ=tt(0,0,.58,1),e0=tt(.42,0,.58,1),e1=t=>Array.isArray(t)&&"number"!=typeof t[0],e2={linear:u,easeIn:eJ,easeInOut:e0,easeOut:eQ,circIn:ta,circInOut:tu,circOut:tl,backIn:tr,backInOut:ts,backOut:tn,anticipate:to},e3=t=>{if(H(t)){eh(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,r]=t;return tt(e,i,n,r)}return"string"==typeof t?(eh(void 0!==e2[t],`Invalid easing type '${t}'`),e2[t]):t},e5=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};function e9({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let r=e1(n)?n.map(e3):e3(n),s={done:!1,value:e[0]},o=function(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;if(eh(s===e.length,"Both input and output ranges must be the same length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());
9let a=function(t,e,i){let n=[],r=i||e$,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=eF(Array.isArray(e)?e[i]||u:e,s)),n.push(s)}return n}(e,n,r),l=a.length,h=i=>{if(o&&i<t[0])return e[0];let n=0;if(l>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=e5(t[n],t[n+1],i);return a[n](r)};return i?e=>h(tc(t[0],t[s-1],e)):h}((i&&i.length===e.length?i:function(t){let e=[0];return function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=e5(0,e,n);t.push(eM(i,1,r))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(r)?r:e.map(()=>r||e0).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=o(e),s.done=e>=t,s)}}let e4=t=>{let e=({timestamp:e})=>t(e);return{start:()=>f.update(e,!0),stop:()=>m(e),now:()=>g.isProcessing?g.timestamp:A.now()}},e6={decay:eZ,inertia:eZ,tween:e9,keyframes:e9,spring:eG},e8=t=>t/100;class e7 extends eA{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:e,motionValue:i,element:n,keyframes:r}=this.options,s=n?.KeyframeResolver||el;this.resolver=new s(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i;let{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:o,velocity:a=0}=this.options,l=W(n)?n:e6[n]||e9;l!==e9&&"number"!=typeof t[0]&&(e=eF(e8,e$(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===o&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=eE(u));let{calculatedDuration:h}=u,c=h+s;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:h,resolvedDuration:c,totalDuration:c*(r+1)-s}}onPostResolved(){let{autoplay:t=!0}=this.options;G.mainThread++,this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:n,generator:r,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return r.next(0);let{delay:c,repeat:d,repeatType:p,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let g=this.currentTime-c*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=r;if(d){let t=Math.min(this.currentTime,u)/h,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===p?(i=1-i,f&&(i-=f/h)):"mirror"===p&&(x=s)),y=tc(0,1,i)*h}let b=v?{done:!1,value:a[0]}:x.next(y);o&&(b.value=o(b.value));let{done:w}=b;v||null===l||(w=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return P&&void 0!==n&&(b.value=eS(a,this.options,n)),m&&m(b.value),P&&this.finish(),b}get duration(){let{resolved:t}=this;return t?z(t.calculatedDuration):0}get time(){return z(this.currentTime)}set time(t){t=N(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=z(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=e4,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=i??this.calcStartTime(),"finished"===this.state&&this.updateFinishedProm
9ise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=this.currentTime??0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel(),G.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}get finished(){return this.currentFinishedPromise}}let it=new Set(["opacity","clipPath","filter","transform"]),ie=B(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ii={anticipate:to,backInOut:ts,circInOut:tu};class ir extends eA{constructor(t){super(t);let{name:e,motionValue:i,element:n,keyframes:r}=this.options;this.resolver=new ew(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}initPlayback(t,e){var i;let{duration:n=300,times:r,ease:s,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if("string"==typeof s&&X()&&s in ii&&(s=ii[s]),W((i=this.options).type)||"spring"===i.type||!function t(e){return!!("function"==typeof e&&X()||!e||"string"==typeof e&&(e in q||X())||H(e)||Array.isArray(e)&&e.every(t))}(i.ease)){let{onComplete:e,onUpdate:i,motionValue:a,element:l,...u}=this.options,h=function(t,e){let i=new e7({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:t[0]},r=[],s=0;for(;!n.done&&s<2e4;)r.push((n=i.sample(s)).value),s+=10;return{times:void 0,keyframes:r,duration:s-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),n=h.duration,r=h.times,s=h.ease,o="keyframes"}let h=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let c=function t(e,i){if(e)return"function"==typeof e&&X()?Z(e,i):H(e)?K(e):Array.isArray(e)?e.map(e=>t(e,i)||q.easeOut):q[e]}(a,r);Array.isArray(c)&&(h.easing=c),d.value&&G.waapi++;let p=t.animate(h,{delay:n,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal",pseudoElement:void 0});return d.value&&p.finished.finally(()=>{G.waapi--}),p}(a.owner.current,l,t,{...this.options,duration:n,times:r,ease:s});return h.startTime=u??this.calcStartTime(),this.pendingTimeline?(J(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{let{onComplete:i}=this.options;a.set(eS(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:n,times:r,type:o,ease:s,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return z(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return z(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=N(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}get finished(){return this.resolved.animation.finished}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return u;let{animation:i}=e;J(i,t)}else this.pendingTimeline=t;return u}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:n,type:r,ease:s,times:o}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,h=new e7({...u,keyframes:i,duration:n,type:r,ease:s,times:o,isGenerator:!0}),c=N(this.time);t.setWithVelocity(h.sample(c-10).value,h.sample(c).value,10)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}
9static supports(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return ie()&&i&&it.has(i)&&("transform"!==i||!l)&&!a&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}}let is={type:"spring",stiffness:500,damping:25,restSpeed:10},io=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),ia={type:"keyframes",duration:.8},il={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},iu=(t,{keyframes:e})=>e.length>2?ia:x.has(t)?t.startsWith("scale")?io(e[1]):is:il,ih=(t,e,i,n={},r,s)=>o=>{let a=l(n,t)||{},u=a.delay||n.delay||0,{elapsed:c=0}=n;c-=N(u);let d={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(a)&&(d={...d,...iu(t,d)}),d.duration&&(d.duration=N(d.duration)),d.repeatDelay&&(d.repeatDelay=N(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let p=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(d.duration=0,0!==d.delay||(p=!0)),($.current||h.skipAnimations)&&(p=!0,d.duration=0,d.delay=0),d.allowFlatten=!a.type&&!a.ease,p&&!s&&void 0!==e.get()){let t=eS(d.keyframes,a);if(void 0!==t)return f.update(()=>{d.onUpdate(t),d.onComplete()}),new _([])}return!s&&ir.supports(d)?new ir(d):new e7(d)};function ic(t,e,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:o,...u}=e;n&&(s=n);let h=[],c=r&&t.animationState&&t.animationState.getState()[r];for(let e in u){let n=t.getValue(e,t.latestValues[e]??null),r=u[e];if(void 0===r||c&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(c,e))continue;let o={delay:i,...l(s||{},e)},a=!1;if(window.MotionHandoffAnimation){let i=t.props[F];if(i){let t=window.MotionHandoffAnimation(i,e,f);null!==t&&(o.startTime=t,a=!0)}}O(t,e),n.start(ih(e,n,r,t.shouldReduceMotion&&b.has(e)?{type:!1}:o,t,a));let d=n.animation;d&&h.push(d)}return o&&Promise.all(h).then(()=>{f.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=a(t,e)||{};for(let e in r={...r,...i}){let i=k(r[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,j(i))}}(t,o)})}),h}function id(t,e,i={}){let n=a(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(ic(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;return function(t,e,i=0,n=0,r=1,s){let o=[],a=(t.variantChildren.size-1)*n,l=1===r?(t=0)=>t*n:(t=0)=>a-t*n;return Array.from(t.variantChildren).sort(ip).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(id(t,e,{...s,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,s+n,o,a,i)}:()=>Promise.resolve(),{when:l}=r;if(!l)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===l?[s,o]:[o,s];return t().then(()=>e())}}function ip(t,e){return t.sortNodePosition(e)}function im(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}function ig(t){return"string"==typeof t||Array.isArray(t)}let iv=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],iy=["initial",...iv],ix=iy.length,ib=[...iv].reverse(),iw=iv.length;function iP(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function iT(){return{animate:iP(!0),whileInView:iP(),whileHover:iP(),whileTap:iP(),whileDrag:iP(),whileFocus:iP(),exit:iP()}}class iS{constructor(t){this.isMounted=!1,this.node=t}update(){}}class iA extends iS{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>
9(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>id(t,e,i)));else if("string"==typeof e)n=id(t,e,i);else{let r="function"==typeof e?a(t,e,i.custom):e;n=Promise.all(ic(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=iT(),n=!0,s=e=>(i,n)=>{let r=a(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...n}=r;i={...i,...n,...e}}return i};function o(o){let{props:l}=t,u=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<ix;t++){let n=iy[t],r=e.props[n];(ig(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},h=[],c=new Set,d={},p=1/0;for(let e=0;e<iw;e++){var f;let a=ib[e],m=i[a],g=void 0!==l[a]?l[a]:u[a],v=ig(g),y=a===o?m.isActive:null;!1===y&&(p=e);let x=g===u[a]&&g!==l[a]&&v;if(x&&n&&t.manuallyAnimateOnMount&&(x=!1),m.protectedKeys={...d},!m.isActive&&null===y||!g&&!m.prevProp||r(g)||"boolean"==typeof g)continue;let b=(f=m.prevProp,"string"==typeof g?g!==f:!!Array.isArray(g)&&!im(g,f)),w=b||a===o&&m.isActive&&!x&&v||e>p&&v,P=!1,T=Array.isArray(g)?g:[g],S=T.reduce(s(a),{});!1===y&&(S={});let{prevResolvedValues:A={}}=m,E={...A,...S},M=e=>{w=!0,c.has(e)&&(P=!0,c.delete(e)),m.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in E){let e=S[t],i=A[t];if(!d.hasOwnProperty(t))(V(e)&&V(i)?im(e,i):e===i)?void 0!==e&&c.has(t)?M(t):m.protectedKeys[t]=!0:null!=e?M(t):c.add(t)}m.prevProp=g,m.prevResolvedValues=S,m.isActive&&(d={...d,...S}),n&&t.blockInitialAnimation&&(w=!1);let C=!(x&&b)||P;w&&C&&h.push(...T.map(t=>({animation:t,options:{type:a}})))}if(c.size){let e={};if("boolean"!=typeof l.initial){let i=a(t,Array.isArray(l.initial)?l.initial[0]:l.initial);i&&i.transition&&(e.transition=i.transition)}c.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=n??null}),h.push({animation:e})}let m=!!h.length;return n&&(!1===l.initial||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(m=!1),n=!1,m?e(h):Promise.resolve()}return{animateChanges:o,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let r=o(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=iT(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();r(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let iE=0;class iM extends iS{constructor(){super(...arguments),this.id=iE++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
9e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}let iC={x:!1,y:!1};function ij(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let iV=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function iR(t){return{point:{x:t.pageX,y:t.pageY}}}let ik=t=>e=>iV(e)&&t(e,iR(e));function iD(t,e,i,n){return ij(t,e,ik(i),n)}function iO({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function iL(t){return t.max-t.min}function iF(t,e,i,n=.5){t.origin=n,t.originPoint=eM(e.min,e.max,t.origin),t.scale=iL(i)/iL(e),t.translate=eM(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function iB(t,e,i,n){iF(t.x,e.x,i.x,n?n.originX:void 0),iF(t.y,e.y,i.y,n?n.originY:void 0)}function iI(t,e,i){t.min=i.min+e.min,t.max=t.min+iL(e)}function iU(t,e,i){t.min=e.min-i.min,t.max=t.min+iL(e)}function i_(t,e,i){iU(t.x,e.x,i.x),iU(t.y,e.y,i.y)}let iN=()=>({translate:0,scale:1,origin:0,originPoint:0}),iz=()=>({x:iN(),y:iN()}),i$=()=>({min:0,max:0}),iW=()=>({x:i$(),y:i$()});function iH(t){return[t("x"),t("y")]}function iY(t){return void 0===t||1===t}function iX({scale:t,scaleX:e,scaleY:i}){return!iY(t)||!iY(e)||!iY(i)}function iK(t){return iX(t)||iq(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function iq(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function iG(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function iZ(t,e=0,i=1,n,r){t.min=iG(t.min,e,i,n,r),t.max=iG(t.max,e,i,n,r)}function iJ(t,{x:e,y:i}){iZ(t.x,e.translate,e.scale,e.originPoint),iZ(t.y,i.translate,i.scale,i.originPoint)}function iQ(t,e){t.min=t.min+e,t.max=t.max+e}function i0(t,e,i,n,r=.5){let s=eM(t.min,t.max,r);iZ(t,e,i,s,n)}function i1(t,e){i0(t.x,e.x,e.scaleX,e.scale,e.originX),i0(t.y,e.y,e.scaleY,e.scale,e.originY)}function i2(t,e){return iO(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let i3=({current:t})=>t?t.ownerDocument.defaultView:null;function i5(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let i9=(t,e)=>Math.abs(t-e);class i4{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=i7(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(i9(t.x,e.x)**2+i9(t.y,e.y)**2)>=3);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=g;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=i6(e,this.transformPagePoint),f.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=i7("pointercancel"===t.type?this.lastMoveEventInfo:i6(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!iV(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let s=i6(iR(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=g;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,i7(s,this.history)),this.removeListeners=eF(iD(this.contextWindow,"pointermove",this.handlePointerMove),iD(this.contextWindow,"pointerup",this.handlePointerUp),iD(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),m(this.updatePoint)}}function i6(t,e){return e?{point:e(t.point)}:t}function i8(t,e){return{x:t.x-e.x,y:t.y-e.y}}function i7({point:t},e){return{point:t,delta:i8(t,nt(e)),offset:i8(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=nt(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>N(.1)));)i--;if(!n)return{x:0,y:0};let s=z(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s}
9;return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function nt(t){return t[t.length-1]}function ne(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function ni(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function nn(t,e,i){return{min:nr(t,e),max:nr(t,i)}}function nr(t,e){return"number"==typeof t?t:t[e]||0}let ns=new WeakMap;class no{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=iW(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new i4(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(iR(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===i||"y"===i?iC[i]?null:(iC[i]=!0,()=>{iC[i]=!1}):iC.x||iC.y?null:(iC.x=iC.y=!0,()=>{iC.x=iC.y=!1}),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iH(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tE.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=iL(n);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),r&&f.postRender(()=>r(t,e)),O(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>iH(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:i3(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:r}=this.getProps();r&&f.postRender(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!na(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?eM(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?eM(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&i5(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:ne(t.x,i,r),y:ne(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:nn(t,"left","right"),y:nn(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&iH(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!i5(e))return!1;let n=e.current;eh(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;
9let s=function(t,e,i){let n=i2(t,i),{scroll:r}=e;return r&&(iQ(n.x,r.offset.x),iQ(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o={x:ni((t=r.layout.layoutBox).x,s.x),y:ni(t.y,s.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=iO(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(iH(o=>{if(!na(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return O(this.visualElement,t),i.start(ih(t,i,0,e,this.visualElement,!1))}stopAnimation(){iH(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){iH(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){iH(e=>{let{drag:i}=this.getProps();if(!na(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e];r.set(t[e]-eM(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!i5(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};iH(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=iL(t),r=iL(e);return r>n?i=e5(e.min,e.max-n,t.min):n>r&&(i=e5(t.min,t.max-r,e.min)),tc(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),iH(e=>{if(!na(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set(eM(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;ns.set(this.visualElement,this);let t=iD(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();i5(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),f.read(e);let r=ij(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(iH(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function na(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class nl extends iS{constructor(t){super(t),this.removeGroupControls=u,this.removeListeners=u,this.controls=new no(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||u}unmount(){this.removeGroupControls(),this.removeListeners()}}let nu=t=>(e,i)=>{t&&f.postRender(()=>t(e,i))};class nh extends iS{constructor(){super(...arguments),this.removePointerDownListener=u}onPointerDown(t){this.session=new i4(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:i3(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:nu(t),onStart:nu(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&f.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=iD(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var nc,nd,np,nf=i(85893);let{schedule:nm,cancel:ng}=p(queueMicrotask,!1);var nv=i(67294),ny=i(15947),nx=i(25364);let nb=(0,nv.createContext)({}),nw={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nP(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let nT={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!tM.test(t))return t;t=parseFloat(t)}let i=nP(t,e.target.x),n=nP(t,e.target.y);return`${i}% ${n}%`}},nS={};class nA extends nv.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;!function(t){for(let e in t)nS[e]=t[e],ep(e)&&(nS[e].isCSSVariable=!0)}(nM),r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),nw.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,s=i.projection;return s&&(s.isPresent=r,n||t.layoutDependency!==e||void 0===e||t.isPresent!==r?s.willUpdate():this.safeToRemove(),t.isPresent===r||(r?s.promote():s.relegate()||f.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),nm.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nE(t){let[e,i]=(0,ny.oO)(),n=(0,nv.useContext)(nx.p);return(0,nf.jsx)(nA,{...t,layoutGroup:n,switchLayoutGroup:(0,nv.useContext)(nb),isPresent:e,safeToRemove:i})}let nM={borderRadius:{...nT,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nT,borderTopRightRadius:nT,borderBottomLeftRadius:nT,borderBottomRightRadius:nT,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tN.parse(t);if(n.length>5)return t;let r=tN.createTransformer(t),s="number"!=typeof n[0]?1:0,o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=eM(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}},nC=(t,e)=>t.depth-e.depth;class nj{constructor(){this.children=[],this.isDirty=!1}add(t){w(this.children,t),this.isDirty=!0}remove(t){P(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nC),this.isDirty=!1,this.children.forEac
9h(t)}}function nV(t){let e=D(t)?t.get():t;return R(e)?e.toValue():e}let nR=["TopLeft","TopRight","BottomLeft","BottomRight"],nk=nR.length,nD=t=>"string"==typeof t?parseFloat(t):t,nO=t=>"number"==typeof t||tM.test(t);function nL(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nF=nI(0,.5,tl),nB=nI(.5,.95,u);function nI(t,e,i){return n=>n<t?0:n>e?1:i(e5(t,e,n))}function nU(t,e){t.min=e.min,t.max=e.max}function n_(t,e){nU(t.x,e.x),nU(t.y,e.y)}function nN(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nz(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function n$(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(tE.test(e)&&(e=parseFloat(e),e=eM(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=eM(s.min,s.max,n);t===s&&(a-=e),t.min=nz(t.min,e,i,a,r),t.max=nz(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let nW=["x","scaleX","originX"],nH=["y","scaleY","originY"];function nY(t,e,i,n){n$(t.x,e,nW,i?i.x:void 0,n?n.x:void 0),n$(t.y,e,nH,i?i.y:void 0,n?n.y:void 0)}function nX(t){return 0===t.translate&&1===t.scale}function nK(t){return nX(t.x)&&nX(t.y)}function nq(t,e){return t.min===e.min&&t.max===e.max}function nG(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function nZ(t,e){return nG(t.x,e.x)&&nG(t.y,e.y)}function nJ(t){return iL(t.x)/iL(t.y)}function nQ(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class n0{constructor(){this.members=[]}add(t){w(this.members,t),t.scheduleRender()}remove(t){if(P(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let n1={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},n2=["","X","Y","Z"],n3={visibility:"hidden"},n5=0;function n9(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function n4({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=n5++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,d.value&&(n1.nodes=n1.calculatedTargetDeltas=n1.calculatedProjections=0),this.nodes.forEach(n7),this.nodes.forEach(ro),this.nodes.forEach(ra),this.nodes.forEach(rt),d.addProjectionMetrics&&d.addProjectionMetrics(n1)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new nj)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new T),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:n,layout:r,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||n)&&(this.isLayoutDirty=!0),t){let i;let n=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=A.now(),n=({timestamp:e})=>{let r=e-i;r>=250&&(m(n),t(r-250))};return f.read(n,!0),()=>m(n)}(n,0),nw.hasAnimatedSinceResize&&(nw.hasAnimatedSinceResize=!1,this.nodes.forEac
9h(rs))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&s&&(n||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||rp,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),u=!this.targetLayout||!nZ(this.targetLayout,n),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,h);let e={...l(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||rs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,m(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(rl),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[F];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",f,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ri);return}this.isUpdating||this.nodes.forEach(rn),this.isUpdating=!1,this.nodes.forEach(rr),this.nodes.forEach(n6),this.nodes.forEach(n8),this.clearAllSnapshots();let t=A.now();g.delta=tc(0,1e3/60,t-g.timestamp),g.timestamp=t,g.isProcessing=!0,v.update.process(g),v.preRender.process(g),v.render.process(g),g.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nm.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(re),this.sharedNodes.forEach(ru)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,f.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){f.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||iL(this.snapshot.measuredBox.x)||iL(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=iW(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!nK(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&(e||iK(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),rg((e=n).x),rg(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return iW();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ry))){let{scroll:t}=this.root;t&&(iQ(e.x,t.offset.x),iQ(e.y,t.offset.y))}return e}removeElementScroll(t){let e=iW();if(n_(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&n_(e,t),iQ(e.x,r.offset.x),iQ(e.y,r.offset.y))}return e}applyTransform(t,e=!1){let i=iW();n_(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&i1(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),iK(n.latestValues)&&i1(i,n.latestValues)}return iK(this.latestValues)&&i1(i,this.latestValues),i}removeTransform(t){let e=iW();n_(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!iK(i.latestValues))continue;iX(i.latestValues)&&i.updateSnapshot();let n=iW();n_(n,i.measurePageBox()),nY(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return iK(this.latestValues)&&nY(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!==g.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:r}=this.options;if(this.layout&&(n||r)){if(this.resolvedRelativeTargetAt=g.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iW(),this.relativeTargetOrigin=iW(),i_(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),n_(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=iW(),this.targetWithTransforms=iW()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var s,o,a;this.forceRelativeParentToResolveTarget(),s=this.target,o=this.relativeTarget,a=this.relativeParent.target,iI(s.x,o.x,a.x),iI(s.y,o.y,a.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):n_(this.target,this.layout.layoutBox),iJ(this.target,this.targetDelta)):n_(this.target,this.layout.layoutBox);if(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=iW(),this.relativeTargetOrigin=iW(),i_(this.relativeTargetOrigin,this.target,t.target),n_(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}d.value&&n1.calculatedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||iX(this.parent.latestValues)||iq(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
9if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===g.timestamp&&(i=!1),i)return;let{layout:n,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||r))return;n_(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,n=!1){let r,s;let o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(r=i[a]).projectionDelta;let{visualElement:o}=r.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&i1(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,iJ(t,s)),n&&iK(r.latestValues)&&i1(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=iW());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nN(this.prevProjectionDelta.x,this.projectionDelta.x),nN(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),iB(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&nQ(this.projectionDelta.x,this.prevProjectionDelta.x)&&nQ(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),d.value&&n1.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=iz(),this.projectionDelta=iz(),this.projectionDeltaWithTransform=iz()}setAnimationOrigin(t,e=!1){let i;let n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=iz();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=iW(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(rd));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(rh(o.x,t.x,n),rh(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,f;i_(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,rc(p.x,f.x,a.x,n),rc(p.y,f.y,a.y,n),i&&(u=this.relativeTarget,d=i,nq(u.x,d.x)&&nq(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=iW()),n_(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=eM(0,i.opacity??1,nF(n)),t.opacityExit=eM(e.opacity??1,0,nB(n))):s&&(t.opacity=eM(e.opacity??1,i.opacity??1,n));for(let r=0;r<nk;r++){let s=`border${nR[r]}Radius`,o=nL(e,s),a=nL(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||nO(o)===nO(a)?(t[s]=Math.max(eM(nD(o),nD(a),n),0),(tE.test(a)||tE.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=eM(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(m(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=f.update(()=>{nw.hasAnimatedSinceResize=!0,G.layout++,this.currentAnimation=function(t,e,
9i){let n=D(0)?0:j(0);return n.start(ih("",n,1e3,i)),n.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{G.layout--},onComplete:()=>{G.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&rv(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||iW();let e=iL(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=iL(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}n_(e,i),i1(e,r),iB(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new n0),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
9return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&n9("z",t,n,this.animationValues);for(let e=0;e<n2.length;e++)n9(`rotate${n2[e]}`,t,n,this.animationValues),n9(`skew${n2[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}getProjectionStyles(t){if(!this.instance||this.isSVG)return;if(!this.isVisible)return n3;let e={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.opacity="",e.pointerEvents=nV(t?.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none",e;let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=nV(t?.pointerEvents)||""),this.hasProjected&&!iK(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1),e}let r=n.animationValues||n.latestValues;this.applyTransformsToTarget(),e.transform=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=i?.z||0;if((r||s||o)&&(n=`translate3d(${r}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,r),i&&(e.transform=i(r,e.transform));let{x:s,y:o}=this.projectionDelta;for(let t in e.transformOrigin=`${100*s.origin}% ${100*o.origin}% 0`,n.animationValues?e.opacity=n===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:e.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,nS){if(void 0===r[t])continue;let{correct:i,applyTo:s,isCSSVariable:o}=nS[t],a="none"===e.transform?r[t]:i(r[t],n);if(s){let t=s.length;for(let i=0;i<t;i++)e[s[i]]=a}else o?this.options.visualElement.renderState.vars[t]=a:e[t]=a}return this.options.layoutId&&(e.pointerEvents=n===this?nV(t?.pointerEvents)||"":"none"),e}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(ri),this.root.sharedNodes.clear()}}}function n6(t){t.updateLayout()}function n8(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:r}=t.options,s=e.source!==t.layout.source;"size"===r?iH(t=>{let n=s?e.measuredBox[t]:e.layoutBox[t],r=iL(n);n.min=i[t].min,n.max=n.min+r}):rv(r,e.layoutBox,i)&&iH(n=>{let r=s?e.measuredBox[n]:e.layoutBox[n],o=iL(i[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=iz();iB(o,i,e.layoutBox);let a=iz();s?iB(a,t.applyTransform(n,!0),e.measuredBox):iB(a,i,e.layoutBox);let l=!nK(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=iW();i_(o,e.layoutBox,r.layoutBox);let a=iW();i_(a,i,s.layoutBox),nZ(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function n7(t){d.value&&n1.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
9isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function rt(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function re(t){t.clearSnapshot()}function ri(t){t.clearMeasurements()}function rn(t){t.isLayoutDirty=!1}function rr(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function rs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ro(t){t.resolveTargetDelta()}function ra(t){t.calcProjection()}function rl(t){t.resetSkewAndRotation()}function ru(t){t.removeLeadSnapshot()}function rh(t,e,i){t.translate=eM(e.translate,0,i),t.scale=eM(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function rc(t,e,i,n){t.min=eM(e.min,i.min,n),t.max=eM(e.max,i.max,n)}function rd(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let rp={duration:.45,ease:[.4,0,.1,1]},rf=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rm=rf("applewebkit/")&&!rf("chrome/")?Math.round:u;function rg(t){t.min=rm(t.min),t.max=rm(t.max)}function rv(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(nJ(e)-nJ(i)))}function ry(t){return t!==t.root&&t.scroll?.wasRoot}let rx=n4({attachResizeListener:(t,e)=>ij(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rb={current:void 0},rw=n4({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rb.current){let t=new rx({});t.mount(window),t.setOptions({layoutScroll:!0}),rb.current=t}return rb.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function rP(t,e){let i=function(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document,i=(void 0)??e.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function rT(t){return!("touch"===t.pointerType||iC.x||iC.y)}function rS(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&f.postRender(()=>r(e,iR(e)))}class rA extends iS{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=rP(t,i),o=t=>{if(!rT(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let s=t=>{rT(t)&&(n(t),i.removeEventListener("pointerleave",s))};i.addEventListener("pointerleave",s,r)};return n.forEach(t=>{t.addEventListener("pointerenter",o,r)}),s}(t,(t,e)=>(rS(this.node,e,"Start"),t=>rS(this.node,t,"End"))))}unmount(){}}class rE extends iS{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=eF(ij(this.node.current,"focus",()=>this.onFocus()),ij(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let rM=(t,e)=>!!e&&(t===e||rM(t,e.parentElement)),rC=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),rj=new WeakSet;function rV(t){return e=>{"Enter"===e.key&&t(e)}}function rR(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let rk=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=rV(()=>{if(rj.has(i))return;rR(i,"down");let t=rV(()=>{rR(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>rR(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function rD(t){return iV(t)&&!(iC.x||iC.y)}function rO(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&f.postRender(()=>r(e,iR(e)))}class rL extends iS{mount(){let{current:t}=this.node;
9t&&(this.unmount=function(t,e,i={}){let[n,r,s]=rP(t,i),o=t=>{let n=t.currentTarget;if(!rD(t)||rj.has(n))return;rj.add(n);let s=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),rD(t)&&rj.has(n)&&(rj.delete(n),"function"==typeof s&&s(t,{success:e}))},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||rM(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),t instanceof HTMLElement&&(t.addEventListener("focus",t=>rk(t,r)),rC.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(rO(this.node,e,"Start"),(t,{success:e})=>rO(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let rF=new WeakMap,rB=new WeakMap,rI=t=>{let e=rF.get(t.target);e&&e(t)},rU=t=>{t.forEach(rI)},r_={some:0,all:1};class rN extends iS{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:r_[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;rB.has(i)||rB.set(i,{});let n=rB.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(rU,{root:t,...e})),n[r]}(e);return rF.set(t,i),n.observe(t),()=>{rF.delete(t),n.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let rz=(0,nv.createContext)({strict:!1});var r$=i(16014);let rW=(0,nv.createContext)({});function rH(t){return r(t.animate)||iy.some(e=>ig(t[e]))}function rY(t){return!!(rH(t)||t.variants)}function rX(t){return Array.isArray(t)?t.join(" "):t}var rK=i(11741);let rq={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"]},rG={};for(let t in rq)rG[t]={isEnabled:e=>rq[t].some(t=>!!e[t])};let rZ=Symbol.for("motionComponentSymbol");var rJ=i(240),rQ=i(58868);function r0(t,{layout:e,layoutId:i}){return x.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!nS[t]||"opacity"===t)}let r1=(t,e)=>e&&"number"==typeof t?e.transform(t):t,r2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},r3=y.length;function r5(t,e,i){let{style:n,vars:r,transformOrigin:s}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(x.has(t)){o=!0;continue}if(ep(t)){r[t]=i;continue}{let e=r1(i,tX[t]);t.startsWith("origin")?(a=!0,s[t]=e):n[t]=e}}if(!e.transform&&(o||i?n.transform=function(t,e,i){let n="",r=!0;for(let s=0;s<r3;s++){let o=y[s],a=t[o];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===(o.startsWith("scale")?1:0):0===parseFloat(a))||i){let t=r1(a,tX[o]);if(!l){r=!1;let e=r2[o]||o;n+=`${e}(${t}) `}i&&(e[o]=t)}}return n=n.trim(),i?n=i(e,r?"":n):r&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=s;n.transformOrigin=`${t} ${e} ${i}`}}let r9=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function r4(t,e,i){for(let n in e)D(e[n])||r0(n,i)||(t[n]=e[n])}let r6=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function r8(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||r6.has(t)}let r7=t=>!r8(t);try{(nc=require("@emotion/is-prop-valid").default)&&(r7=t=>t.startsWith("on")?!r8(t):nc(t))}catch{}let st=["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 se(t){if("string"!=typeof t||t.includes("-"));else if(st.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let si={offset:"stroke-dashoffset",array:"stroke-dasharray"},sn={offset:"strokeDashoffset",array:"strokeDasharray"};function sr(t,e,i){return"string"==typeof t?t:tM.transform(e+i*t)}function ss(t,{attrX:e,attrY:i,attrScale:n,originX:r,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u}
9,h,c){if(r5(t,u,c),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:p,dimensions:f}=t;d.transform&&(f&&(p.transform=d.transform),delete d.transform),f&&(void 0!==r||void 0!==s||p.transform)&&(p.transformOrigin=function(t,e,i){let n=sr(e,t.x,t.width),r=sr(i,t.y,t.height);return`${n} ${r}`}(f,void 0!==r?r:.5,void 0!==s?s:.5)),void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==o&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?si:sn;t[s.offset]=tM.transform(-n);let o=tM.transform(e),a=tM.transform(i);t[s.array]=`${o} ${a}`}(d,o,a,l,!1)}let so=()=>({...r9(),attrs:{}}),sa=t=>"string"==typeof t&&"svg"===t.toLowerCase();var sl=i(96681);let su=t=>(e,i)=>{let n=(0,nv.useContext)(rW),s=(0,nv.useContext)(rJ.O),a=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:i},n,s,a){let l={latestValues:function(t,e,i,n){let s={},a=n(t,{});for(let t in a)s[t]=nV(a[t]);let{initial:l,animate:u}=t,h=rH(t),c=rY(t);e&&c&&!h&&!1!==t.inherit&&(void 0===l&&(l=e.initial),void 0===u&&(u=e.animate));let d=!!i&&!1===i.initial,p=(d=d||!1===l)?u:l;if(p&&"boolean"!=typeof p&&!r(p)){let e=Array.isArray(p)?p:[p];for(let i=0;i<e.length;i++){let n=o(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=d?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(n,s,a,t),renderState:e()};return i&&(l.onMount=t=>i({props:n,current:t,...l}),l.onUpdate=t=>i(t)),l})(t,e,n,s);return i?a():(0,sl.h)(a)};function sh(t,e,i){let{style:n}=t,r={};for(let s in n)(D(n[s])||e.style&&D(e.style[s])||r0(s,t)||i?.getValue(s)?.liveStyle!==void 0)&&(r[s]=n[s]);return r}let sc={useVisualState:su({scrapeMotionValuesFromProps:sh,createRenderState:r9})};function sd(t,e){try{e.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(t){e.dimensions={x:0,y:0,width:0,height:0}}}function sp(t,{style:e,vars:i},n,r){for(let s in Object.assign(t.style,e,r&&r.getProjectionStyles(n)),i)t.style.setProperty(s,i[s])}let sf=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 sm(t,e,i,n){for(let i in sp(t,e,void 0,n),e.attrs)t.setAttribute(sf.has(i)?i:L(i),e.attrs[i])}function sg(t,e,i){let n=sh(t,e,i);for(let i in t)(D(t[i])||D(e[i]))&&(n[-1!==y.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}let sv=["x","y","width","height","cx","cy","r"],sy={useVisualState:su({scrapeMotionValuesFromProps:sg,createRenderState:so,onUpdate:({props:t,prevProps:e,current:i,renderState:n,latestValues:r})=>{if(!i)return;let s=!!t.drag;if(!s){for(let t in r)if(x.has(t)){s=!0;break}}if(!s)return;let o=!e;if(e)for(let i=0;i<sv.length;i++){let n=sv[i];t[n]!==e[n]&&(o=!0)}o&&f.read(()=>{sd(i,n),f.render(()=>{ss(n,r,sa(i.tagName),t.transformTemplate),sm(i,n)})})}})},sx={current:null},sb={current:!1},sw=[...ex,tk,tN],sP=t=>sw.find(ey(t)),sT=new WeakMap,sS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sA{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:r,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=el,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=A.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,f.render(this.render,!1,!0))};let{latestValues:a,renderState:l,onUpdate:u}=s;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=rH(e),this.isVariantNode=rY
9(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:h,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in c){let e=c[t];void 0!==a[t]&&D(e)&&e.set(a[t],!1)}}mount(t){this.current=t,sT.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),sb.current||function(){if(sb.current=!0,rK.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>sx.current=t.matches;t.addListener(e),e()}else sx.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||sx.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),m(this.notifyUpdate),m(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=x.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&f.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),s(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in rG){let e=rG[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):iW()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<sS.length;e++){let i=sS[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if(D(r))t.addValue(n,r);else if(D(s))t.addValue(n,j(r,{owner:t}));else if(s!==r){if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,j(void 0!==e?e:r,{owner:t}))}}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=j(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=i&&("string"==typeof i&&(ec(i)||th(i))?i=parseFloat(i):!sP(i)&&tN.test(e)&&(i=tG(t,e)),this.setBaseTarget(t,D(i)?i.get():i)),D(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e;let{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=o(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||D(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new T),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class sE extends sA{constructor(){super(...arguments),this.KeyframeResolver=ew}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;D(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class sM extends sE{constructor(){super(...arguments),this.type="html",this.renderInstance=sp}readValueFromInstance(t,e){if(x.has(e))return t6(t,e);{let i=window.getComputedStyle(t),n=(ep(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return i2(t,e)}
9build(t,e,i){r5(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return sh(t,e,i)}}class sC extends sE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=iW,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&sd(this.current,this.renderState)}}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(x.has(e)){let t=tq(e);return t&&t.default||0}return e=sf.has(e)?e:L(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return sg(t,e,i)}onBindTransform(){this.current&&!this.renderState.dimensions&&f.postRender(this.updateDimensions)}build(t,e,i){ss(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,n){sm(t,e,i,n)}mount(t){this.isSVGTag=sa(t.tagName),super.mount(t)}}let sj=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}((nd={animation:{Feature:iA},exit:{Feature:iM},inView:{Feature:rN},tap:{Feature:rL},focus:{Feature:rE},hover:{Feature:rA},pan:{Feature:nh},drag:{Feature:nl,ProjectionNode:rw,MeasureLayout:nE},layout:{ProjectionNode:rw,MeasureLayout:nE}},np=(t,e)=>se(t)?new sC(e):new sM(e,{allowProjection:t!==nv.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:n,Component:r}){function s(t,s){var o;let a;let l={...(0,nv.useContext)(r$._),...t,layoutId:function({layoutId:t}){let e=(0,nv.useContext)(nx.p).id;return e&&void 0!==t?e+"-"+t:t}(t)},{isStatic:u}=l,h=function(t){let{initial:e,animate:i}=function(t,e){if(rH(t)){let{initial:e,animate:i}=t;return{initial:!1===e||ig(e)?e:void 0,animate:ig(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,nv.useContext)(rW));return(0,nv.useMemo)(()=>({initial:e,animate:i}),[rX(e),rX(i)])}(t),c=n(t,u);if(!u&&rK.j){(0,nv.useContext)(rz).strict;let t=function(t){let{drag:e,layout:i}=rG;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(l);a=t.MeasureLayout,h.visualElement=function(t,e,i,n,r){let{visualElement:s}=(0,nv.useContext)(rW),o=(0,nv.useContext)(rz),a=(0,nv.useContext)(rJ.O),l=(0,nv.useContext)(r$._).reducedMotion,u=(0,nv.useRef)(null);n=n||o.renderer,!u.current&&n&&(u.current=n(t,{visualState:e,parent:s,props:i,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:l}));let h=u.current,c=(0,nv.useContext)(nb);h&&!h.projection&&r&&("html"===h.type||"svg"===h.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&i5(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u})}(u.current,i,r,c);let d=(0,nv.useRef)(!1);(0,nv.useInsertionEffect)(()=>{h&&d.current&&h.update(i,a)});let p=i[F],f=(0,nv.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return(0,rQ.L)(()=>{h&&(d.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),nm.render(h.render),f.current&&h.animationState&&h.animationState.animateChanges())}),(0,nv.useEffect)(()=>{h&&(!f.current&&h.animationState&&h.animationState.animateChanges(),f.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),f.current=!1))}),h}(r,c,l,e,t.ProjectionNode)}return(0,nf.jsxs)(rW.Provider,{value:h,children:[a&&h.visualElement?(0,nf.jsx)(a,{visualElement:h.visualElement,...l}):null,i(r,t,(o=h.visualElement,(0,nv.useCallback)(t=>{t&&c.onMount&&c.onMount(t),o&&(t?o.mount(t):o.unmount()),s&&("function"==typeof s?s(t):i5(s)&&(s.current=t))},[o])),c,u,h.visualElement)]})}t&&function(t){for(let e in t)rG[e]={...rG[e],...t[e]}}(t),s.displayName=`motion.${"string"==typeof r?r:`create(${r.displayName??r.name??""})`}`;let o=(0,nv.forwardRef)(s);return o[rZ]=r,o}({...se(t)?sy:sc,preloadedFeatures:nd,useRender:function(t=!1){return(e,i,n,{latestValues:r},s)=>
9{let o=(se(e)?function(t,e,i,n){let r=(0,nv.useMemo)(()=>{let i=so();return ss(i,e,sa(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};r4(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return r4(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,nv.useMemo)(()=>{let i=r9();return r5(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(i,r,s,e),a=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(r7(r)||!0===i&&r8(r)||!e&&!r8(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(i,"string"==typeof e,t),l=e!==nv.Fragment?{...a,...o,ref:n}:{},{children:u}=i,h=(0,nv.useMemo)(()=>D(u)?u.get():u,[u]);return(0,nv.createElement)(e,{...l,children:h})}}(e),createVisualElement:np,Component:t})}))},11741:function(t,e,i){"use strict";i.d(e,{j:function(){return n}});let n="undefined"!=typeof window},96681:function(t,e,i){"use strict";i.d(e,{h:function(){return r}});var n=i(67294);function r(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},58868:function(t,e,i){"use strict";i.d(e,{L:function(){return r}});var n=i(67294);let r=i(11741).j?n.useLayoutEffect:n.useEffect},67796:function(t,e,i){"use strict";i.d(e,{w_:function(){return h}});var n=i(67294),r={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},s=n.createContext&&n.createContext(r),o=["attr","size","title"];function a(){return(a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function l(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function u(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?l(Object(i),!0).forEach(function(e){var n,r;n=e,r=i[e],(n=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function h(t){return e=>n.createElement(c,a({attr:u({},t.attr)},e),function t(e){return e&&e.map((e,i)=>n.createElement(e.tag,u({key:i},e.attr),t(e.child)))}(t.child))}function c(t){var e=e=>{var i,{attr:r,size:s,title:l}=t,h=function(t,e){if(null==t)return{};var i,n,r=function(t,e){if(null==t)return{};var i={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;i[n]=t[n]}return i}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(n=0;n<s.length;n++)i=s[n],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(r[i]=t[i])}return r}(t,o),c=s||e.size||"1em";return e.className&&(i=e.className),t.className&&(i=(i?i+" ":"")+t.className),n.createElement("svg",a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,r,h,{className:i,style:u(u({color:t.color||e.color},e.style),t.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),l&&n.createElement("title",null,l),t.children)};return void 0!==s?n.createElement(s.Consumer,null,t=>e(t)):e(r)}}}]);
10//# sourceMappingURL=5786-2945299b797d03b5.js.map

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.