PageSourceSearch

https://www.dros.ai/_next/static/chunks/3282-12fec135dabd0270.js?dpl=dpl_EKKbMZc6g8cZGD1ALFTZma2i2MaR

js dros.ai collected 2026-10-05 11:57:21 UTC 137,447 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3282],{31:(t,e,i)=>{i.d(e,{O:()=>n,r:()=>r});let n={current:null},r={current:!1}},63:(t,e,i)=>{var n=i(7260);i.o(n,"usePathname")&&i.d(e,{usePathname:function(){return n.usePathname}}),i.o(n,"useRouter")&&i.d(e,{useRouter:function(){return n.useRouter}}),i.o(n,"useSearchParams")&&i.d(e,{useSearchParams:function(){return n.useSearchParams}})},296:(t,e,i)=>{i.d(e,{L:()=>n});let n=(0,i(2115).createContext)({})},1118:(t,e,i)=>{i.d(e,{K:()=>n});function n(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}},1402:(t,e,i)=>{i.d(e,{s:()=>r});var n=i(3142);function r(t){return(0,n.G)(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}},1407:(t,e,i)=>{i.d(e,{I:()=>o});var n=i(31),r=i(5824),s=i(2115);function o(){n.r.current||(0,r.Uu)();let[t]=(0,s.useState)(n.O.current);return t}},2296:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),!function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{DecodeError:function(){return m},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return g},NormalizeError:function(){return f},PageNotFoundError:function(){return y},SP:function(){return c},ST:function(){return p},WEB_VITALS:function(){return i},execOnce:function(){return n},getDisplayName:function(){return l},getLocationOrigin:function(){return o},getURL:function(){return a},isAbsoluteUrl:function(){return s},isResSent:function(){return u},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return x}});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function n(t){let e,i=!1;return function(){for(var n=arguments.length,r=Array(n),s=0;s<n;s++)r[s]=arguments[s];return i||(i=!0,e=t(...r)),e}}let r=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=t=>r.test(t);function o(){let{protocol:t,hostname:e,port:i}=window.location;return t+"//"+e+(i?":"+i:"")}function a(){let{href:t}=window.location,e=o();return t.substring(e.length)}function l(t){return"string"==typeof t?t:t.displayName||t.name||"Unknown"}function u(t){return t.finished||t.headersSent}function h(t){let e=t.split("?");return e[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(e[1]?"?"+e.slice(1).join("?"):"")}async function d(t,e){let i=e.res||e.ctx&&e.ctx.res;if(!t.getInitialProps)return e.ctx&&e.Component?{pageProps:await d(e.Component,e.ctx)}:{};let n=await t.getInitialProps(e);if(i&&u(i))return n;if(!n)throw Object.defineProperty(Error('"'+l(t)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let c="undefined"!=typeof performance,p=c&&["mark","measure","getEntriesByName"].every(t=>"function"==typeof performance[t]);class m extends Error{}class f extends Error{}class y extends Error{constructor(t){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+t}}class g extends Error{constructor(t,e){super(),this.message="Failed to load static file for page: "+t+" "+e}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function x(t){return JSON.stringify({message:t.message,stack:t.stack})}},2619:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),!function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{default:function(){return y},useLinkStatus:function(){return v}});let n=i(9417),r=i(5155),s=n._(i(2115)),o=i(7670),a=i(6752),l=i(3011),u=i(2296),h=i(6058);i(4781);let d=i(3499),c=i(8607),p=i(1807);i(7045);let m=i(6048);function f(t){return"string"==typeof t?t:(0,o.formatUrl)(t)}function y(t){var e;let i,n,o,[y,v]=(0,s.useOptimistic)(d.IDLE_LINK_STATUS),x=(0,s.useRef)(null),{href:w,as:b,children:P,prefetch:S=null,passHref:T,replace:A,shallow:E,scroll:M,onClick:C,onMouseEnter:k,onTouchStart:V,legacyBehavior:R=!1,onNavigate:D,ref:L,unstable_dynamicOnHover:j,...B}=t;i=P,R&&("string"==typeof i||"number"==typeof i)&&(i=(0,r.jsx)("a",{children:i}));let F=s.default.useContext(a.AppRouterContext),O=!1!==S,I=!1!==S?null===(e=S)||"auto"===e?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,{href:U,as:N}=s.default.useMemo(()=>{let t=f(w);return{href:t,as:b?f(b):t}},[w,b]);R&&(n=s.default.Children.only(i));let W=R?n&&"object"==typeof n&&n.ref:L,$=s.default.useCallback(t=>(null!==F&&(x.current=(0,d.mountLinkInstance)(t,U,F,I,O,v)),()=>{x.current&&((0,d.unmountLinkForCurrentNavigation)(x.current),x.current=null),(0,d.unmountPrefetchableInstance)(t)}),[O,U,F,I,v]),z={ref:(0,l.useMergedRef)($,W),onClick(t){R||"function"!=typeof C||C(t),R&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(t),F&&(t.defaultPrevented||function(t,e,
1i,n,r,o,a){let{nodeName:l}=t.currentTarget;if(!("A"===l.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)||t.currentTarget.hasAttribute("download"))){if(!(0,c.isLocalURL)(e)){r&&(t.preventDefault(),location.replace(e));return}if(t.preventDefault(),a){let t=!1;if(a({preventDefault:()=>{t=!0}}),t)return}s.default.startTransition(()=>{(0,p.dispatchNavigateAction)(i||e,r?"replace":"push",null==o||o,n.current)})}}(t,U,N,x,A,M,D))},onMouseEnter(t){R||"function"!=typeof k||k(t),R&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(t),F&&O&&(0,d.onNavigationIntent)(t.currentTarget,!0===j)},onTouchStart:function(t){R||"function"!=typeof V||V(t),R&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(t),F&&O&&(0,d.onNavigationIntent)(t.currentTarget,!0===j)}};return(0,u.isAbsoluteUrl)(N)?z.href=N:R&&!T&&("a"!==n.type||"href"in n.props)||(z.href=(0,h.addBasePath)(N)),o=R?s.default.cloneElement(n,z):(0,r.jsx)("a",{...B,...z,children:i}),(0,r.jsx)(g.Provider,{value:y,children:o})}let g=(0,s.createContext)(d.IDLE_LINK_STATUS),v=()=>(0,s.useContext)(g);("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)},2987:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5105).A)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},3011:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useMergedRef",{enumerable:!0,get:function(){return r}});let n=i(2115);function r(t,e){let i=(0,n.useRef)(null),r=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let t=i.current;t&&(i.current=null,t());let e=r.current;e&&(r.current=null,e())}else t&&(i.current=s(t,n)),e&&(r.current=s(e,n))},[t,e])}function s(t,e){if("function"!=typeof t)return t.current=e,()=>{t.current=null};{let i=t(e);return"function"==typeof i?i:()=>t(null)}}("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)},3078:(t,e)=>{function i(t){let e={};for(let[i,n]of t.entries()){let t=e[i];void 0===t?e[i]=n:Array.isArray(t)?t.push(n):e[i]=[t,n]}return e}function n(t){return"string"==typeof t?t:("number"!=typeof t||isNaN(t))&&"boolean"!=typeof t?"":String(t)}function r(t){let e=new URLSearchParams;for(let[i,r]of Object.entries(t))if(Array.isArray(r))for(let t of r)e.append(i,n(t));else e.set(i,n(r));return e}function s(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];for(let e of i){for(let i of e.keys())t.delete(i);for(let[i,n]of e.entries())t.append(i,n)}return t}Object.defineProperty(e,"__esModule",{value:!0}),!function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{assign:function(){return s},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return r}})},3127:(t,e,i)=>{i.d(e,{Q:()=>n});let n=(0,i(2115).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},3142:(t,e,i)=>{i.d(e,{G:()=>n});let n=t=>"object"==typeof t&&null!==t},3182:(t,e,i)=>{i.d(e,{S:()=>n});let n=t=>!!(t&&t.getVelocity)},4033:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5105).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},4416:(t,e,i)=>{i.d(e,{M:()=>r});var n=i(2115);function r(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},5105:(t,e,i)=>{i.d(e,{A:()=>s});var n=i(2115),r={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=(t,e)=>{let i=(0,n.forwardRef)((i,s)=>{let{color:o="currentColor",size:a=24,strokeWidth:l=2,absoluteStrokeWidth:u,className:h="",children:d,...c}=i;return(0,n.createElement)("svg",{ref:s,...r,width:a,height:a,stroke:o,strokeWidth:u?24*Number(l)/Number(a):l,className:["lucide","lucide-".concat(t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim()),h].join(" "),...c},[...e.map(t=>{let[e,i]=t;return(0,n.createElement)(e,i)}),...Array.isArray(d)?d:[d]])});return i.displayName="".concat(t),i}},5229:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5105).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
1],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},5601:(t,e,i)=>{i.d(e,{xQ:()=>s});var n=i(2115),r=i(9686);function s(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,n.useContext)(r.t);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]}},5740:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5105).A)("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]])},5824:(t,e,i)=>{i.d(e,{Uu:()=>s});var n=i(31);let r="undefined"!=typeof window;function s(){if(n.r.current=!0,r)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>n.O.current=t.matches;t.addEventListener("change",e),e()}else n.O.current=!1}},6436:(t,e,i)=>{i.d(e,{E:()=>r});var n=i(2115);let r="undefined"!=typeof window?n.useLayoutEffect:n.useEffect},6497:(t,e,i)=>{i.d(e,{N:()=>x});var n=i(5155),r=i(2115),s=i(296),o=i(4416),a=i(6436),l=i(9686),u=i(1402),h=i(3127);function d(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class c extends r.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if((0,u.s)(e)&&t.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let t=e.offsetParent,i=(0,u.s)(t)&&t.offsetWidth||0,n=(0,u.s)(t)&&t.offsetHeight||0,r=getComputedStyle(e),s=this.props.sizeRef.current;s.height=parseFloat(r.height),s.width=parseFloat(r.width),s.top=e.offsetTop,s.left=e.offsetLeft,s.right=i-s.width-s.left,s.bottom=n-s.height-s.top,s.direction=r.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function p(t){var e,i;let{children:s,isPresent:o,anchorX:a,anchorY:l,root:u,pop:p}=t,m=(0,r.useId)(),f=(0,r.useRef)(null),y=(0,r.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:g}=(0,r.useContext)(h.Q),v=function(...t){return r.useCallback(function(...t){return e=>{let i=!1,n=t.map(t=>{let n=d(t,e);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let e=0;e<n.length;e++){let i=n[e];"function"==typeof i?i():d(t[e],null)}}}}(...t),t)}(f,null!=(i=null==(e=s.props)?void 0:e.ref)?i:null==s?void 0:s.ref);return(0,r.useInsertionEffect)(()=>{let{width:t,height:e,top:i,left:n,right:r,bottom:s,direction:h}=y.current;if(o||!1===p||!f.current||!t||!e)return;let d="rtl"===h;f.current.dataset.motionPopId=m;let c=document.createElement("style");g&&(c.nonce=g);let v=null!=u?u:document.head;return v.appendChild(c),c.sheet&&c.sheet.insertRule('\n          [data-motion-pop-id="'.concat(m,'"] {\n            position: absolute !important;\n            width: ').concat(t,"px !important;\n            height: ").concat(e,"px !important;\n            ").concat("left"===a?d?"right: ".concat(r):"left: ".concat(n):d?"left: ".concat(n):"right: ".concat(r),"px !important;\n            ").concat("bottom"===l?"bottom: ".concat(s):"top: ".concat(i),"px !important;\n          }\n        ")),()=>{var t;null==(t=f.current)||t.removeAttribute("data-motion-pop-id"),v.contains(c)&&v.removeChild(c)}},[o]),(0,n.jsx)(c,{isPresent:o,childRef:f,sizeRef:y,pop:p,children:!1===p?s:r.cloneElement(s,{ref:v})})}let m=t=>{let{children:e,initial:i,isPresent:s,onExitComplete:u,custom:h,presenceAffectsLayout:d,mode:c,anchorX:m,anchorY:y,root:g}=t,v=(0,o.M)(f),x=(0,r.useId)(),w=(0,r.useRef)(s),b=(0,r.useRef)(u);(0,a.E)(()=>{w.current=s,b.current=u});let P=!0,S=(0,r.useMemo)(()=>(P=!1,{id:x,initial:i,isPresent:s,custom:h,onExitComplete:t=>
1{for(let e of(v.set(t,!0),v.values()))if(!e)return;u&&u()},register:t=>(v.set(t,!1),()=>{var e;v.delete(t),w.current||v.size||null==(e=b.current)||e.call(b)})}),[s,v,u]);return d&&P&&(S={...S}),(0,r.useMemo)(()=>{v.forEach((t,e)=>v.set(e,!1))},[s]),r.useEffect(()=>{s||v.size||!u||u()},[s]),e=(0,n.jsx)(p,{pop:"popLayout"===c,isPresent:s,anchorX:m,anchorY:y,root:g,children:e}),(0,n.jsx)(l.t.Provider,{value:S,children:e})};function f(){return new Map}var y=i(5601);let g=t=>t.key||"";function v(t){let e=[];return r.Children.forEach(t,t=>{(0,r.isValidElement)(t)&&e.push(t)}),e}let x=t=>{let{children:e,custom:i,initial:l=!0,onExitComplete:u,presenceAffectsLayout:h=!0,mode:d="sync",propagate:c=!1,anchorX:p="left",anchorY:f="top",root:x}=t,[w,b]=(0,y.xQ)(c),P=(0,r.useMemo)(()=>v(e),[e]),S=c&&!w?[]:P.map(g),T=(0,r.useRef)(!0),A=(0,r.useRef)(P),E=(0,o.M)(()=>new Map),M=(0,r.useRef)(new Set),[C,k]=(0,r.useState)(P),[V,R]=(0,r.useState)(P);(0,a.E)(()=>{T.current=!1,A.current=P;for(let t=0;t<V.length;t++){let e=g(V[t]);S.includes(e)?(E.delete(e),M.current.delete(e)):!0!==E.get(e)&&E.set(e,!1)}},[V,S.length,S.join("-")]);let D=[];if(P!==C){let t=[...P];for(let e=0;e<V.length;e++){let i=V[e],n=g(i);S.includes(n)||(t.splice(e,0,i),D.push(i))}return"wait"===d&&D.length&&(t=D),R(v(t)),k(P),null}let{forceRender:L}=(0,r.useContext)(s.L);return(0,n.jsx)(n.Fragment,{children:V.map(t=>{let e=g(t),r=(!c||!!w)&&(P===V||S.includes(e));return(0,n.jsx)(m,{isPresent:r,initial:(!T.current||!!l)&&void 0,custom:i,presenceAffectsLayout:h,mode:d,root:x,onExitComplete:r?void 0:()=>{if(M.current.has(e)||!E.has(e))return;M.current.add(e),E.set(e,!0);let t=!0;E.forEach(e=>{e||(t=!1)}),t&&(null==L||L(),R(A.current),c&&(null==b||b()),u&&u())},anchorX:p,anchorY:f,children:t},e)})})}},7013:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5105).A)("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]])},7045:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"errorOnce",{enumerable:!0,get:function(){return i}});let i=t=>{}},7670:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),!function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{formatUrl:function(){return s},formatWithValidation:function(){return a},urlObjectKeys:function(){return o}});let n=i(9417)._(i(3078)),r=/https?|ftp|gopher|file/;function s(t){let{auth:e,hostname:i}=t,s=t.protocol||"",o=t.pathname||"",a=t.hash||"",l=t.query||"",u=!1;e=e?encodeURIComponent(e).replace(/%3A/i,":")+"@":"",t.host?u=e+t.host:i&&(u=e+(~i.indexOf(":")?"["+i+"]":i),t.port&&(u+=":"+t.port)),l&&"object"==typeof l&&(l=String(n.urlQueryToSearchParams(l)));let h=t.search||l&&"?"+l||"";return s&&!s.endsWith(":")&&(s+=":"),t.slashes||(!s||r.test(s))&&!1!==u?(u="//"+(u||""),o&&"/"!==o[0]&&(o="/"+o)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),h&&"?"!==h[0]&&(h="?"+h),""+s+u+(o=o.replace(/[?#]/g,encodeURIComponent))+(h=h.replace("#","%23"))+a}let o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function a(t){return s(t)}},8561:(t,e,i)=>{i.d(e,{K:()=>n});function n(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let r=i?.[t]??n.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t).filter(t=>null!=t)}},8607:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return s}});let n=i(2296),r=i(2929);function s(t){if(!(0,n.isAbsoluteUrl)(t))return!0;try{let e=(0,n.getLocationOrigin)(),i=new URL(t,e);return i.origin===e&&(0,r.hasBasePath)(i.pathname)}catch(t){return!1}}},8616:(t,e,i)=>{let n,r,s;i.d(e,{P:()=>sB});let o=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],a=new Set([...o,"pathRotation"]),l=(t,e,i)=>i>e?e:i<t?t:i,u={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},h={...u,transform:t=>l(0,1,t)},d={...u,default:1},c=t=>Math.round(1e5*t)/1e5,p=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,m=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,f=(t,e)=>i=>!!("string"==typeof i&&m.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),y=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,s,o,a]=n.match(p);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},g={...u,transform:t=>Math.round(l(0,255,t))},v={test:f("rgb","red"),parse:y("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+g.transform(t)+", "+g.transform(e)+", "+g.transform(i)+", "+c(h.transform(n))+")"},x={test:f("#"),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),alph
1a:r?parseInt(r,16)/255:1}},transform:v.transform},w=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),b=w("deg"),P=w("%"),S=w("px"),T=w("vh"),A=w("vw"),E={...P,parse:t=>P.parse(t)/100,transform:t=>P.transform(100*t)},M={test:f("hsl","hue"),parse:y("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+P.transform(c(e))+", "+P.transform(c(i))+", "+c(h.transform(n))+")"},C={test:t=>v.test(t)||x.test(t)||M.test(t),parse:t=>v.test(t)?v.parse(t):M.test(t)?M.parse(t):x.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?v.transform(t):M.transform(t),getAnimatableNone:t=>{let e=C.parse(t);return e.alpha=0,C.transform(e)}},k=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,V="number",R="color",D=/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 L(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,o=e.replace(D,t=>(C.test(t)?(n.color.push(s),r.push(R),i.push(C.parse(t))):t.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(t)):(n.number.push(s),r.push(V),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function j({split:t,types:e}){let i=t.length;return n=>{let r="";for(let s=0;s<i;s++)if(r+=t[s],void 0!==n[s]){let t=e[s];t===V?r+=c(n[s]):t===R?r+=C.transform(n[s]):r+=n[s]}return r}}let B={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(p)?.length||0)+(t.match(k)?.length||0)>0},parse:function(t){return L(t).values},createTransformer:function(t){return j(L(t))},getAnimatableNone:function(t){let e=L(t);return j(e)(e.values.map((t,i)=>{var n;let r;return n=e.split[i],"number"==typeof t?n?.trim().endsWith("/")?t:0:"number"==typeof(r=t)?0:C.test(r)?C.getAnimatableNone(r):r}))}},F=new Set(["brightness","contrast","saturate","opacity"]);function O(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(p)||[];if(!n)return t;let r=i.replace(n,""),s=+!!F.has(e);return n!==i&&(s*=100),e+"("+s+r+")"}let I=/\b([a-z-]*)\(.*?\)/gu,U={...B,getAnimatableNone:t=>{let e=t.match(I);return e?e.map(O).join(" "):t}},N={...B,getAnimatableNone:t=>{let e=B.parse(t);return B.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},W={...u,transform:Math.round},$={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,inset:S,insetBlock:S,insetBlockStart:S,insetBlockEnd:S,insetInline:S,insetInlineStart:S,insetInlineEnd:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,paddingBlock:S,paddingBlockStart:S,paddingBlockEnd:S,paddingInline:S,paddingInlineStart:S,paddingInlineEnd:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,marginBlock:S,marginBlockStart:S,marginBlockEnd:S,marginInline:S,marginInlineStart:S,marginInlineEnd:S,fontSize:S,backgroundPositionX:S,backgroundPositionY:S,rotate:b,pathRotation:b,rotateX:b,rotateY:b,rotateZ:b,scale:d,scaleX:d,scaleY:d,scaleZ:d,skew:b,skewX:b,skewY:b,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:h,originX:E,originY:E,originZ:S,zIndex:W,fillOpacity:h,strokeOpacity:h,numOctaves:W},z={...$,color:C,backgroundColor:C,outlineColor:C,fill:C,stroke:C,borderColor:C,borderTopColor:C,borderRightColor:C,borderBottomColor:C,borderLeftColor:C,filter:U,WebkitFilter:U,mask:N,WebkitMask:N},_=t=>z[t],Y=()=>({translate:0,scale:1,origin:0,originPoint:0}),X=()=>({x:Y(),y:Y()}),K=()=>({min:0,max:0}),H=()=>({x:K(),y:K()});var G=i(3182);let q=new Set(["width","height","top","left","right","bottom",...o]),Z=t=>e=>e.test(t),Q=[u,S,P,b,A,T,{test:t=>"auto"===t,parse:t=>t}],J=t=>Q.find(Z(t));i(5704);let tt=()=>{},te=()=>{},ti=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),tn=t=>e=>"string"==typeof e&&e.startsWith(t),tr=tn("--"),ts=tn("var(--"),to=t=>!!ts(t)&&ta.test(t.split("/*")[0].trim()),ta=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tl(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let tu=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,th=t=>180*t/Math.PI,td=t=>tp(th(Math.atan2(t[1],t[0]))),tc={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:td,rotateZ:td,skewX:t=>th(Math.atan(t[1])),skewY:t=>th(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tp=t=>((t%=360)<0&&(t+=360),t),tm=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tf=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),ty={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tm,scaleY:tf,scale:t=>(tm(t)+tf(t))/2,rotateX:t=>tp(th(Math.atan2(t[6],t[5]))),rotateY:t=>tp(th(Math.atan2(-t[2],t[0]))),rotateZ:td,rotate:td,skewX:t=>th(Math.atan(t[4])),skewY:t=>th(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tg(t){return+!!t.includes("scale")}function tv(t,e){let i,n;if(!t||"none"===t)return tg(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=ty,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tc,n=e}if(!n)return tg(e);let s=i[e],o=n[1].split(",").map(tx);return"function"==typeof s?s(o):o[s]}function tx(t){return parseFloat(t.trim())}let tw=t=>t===u||t===S,tb=new Set(["x","y","z"]),tP=o.filter(t=>!tb.has(t)),tS={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:n})=>{let r=t.max-t.min;return"border-box"===n?r:r-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:n})=>{let r=t.max-t.min;return"border-box"===n?r:r-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})=>tv(e,"x"),y:(t,{transform:e})=>tv(e,"y")};tS.translateX=tS.x,tS.translateY=tS.y;let tT=t=>t,tA={},tE=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tM(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=tE.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,n=!1,r=!1,s=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){s.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,r=!1,o=!1)=>{let a=o&&n?e:i;return r&&s.add(t),a.add(t),t},cancel:t=>{i.delete(t),s.delete(t)},process:t=>{if(o=t,n){r=!0;return}n=!0;let s=e;e=i,i=s,e.forEach(a),e.clear(),n=!1,r&&(r=!1,l.process(t))}};return l}(s),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:h,update:d,preRender:c,render:p,postRender:m}=o,f=()=>{let s=tA.useManualTiming,o=s?r.timestamp:performance.now();i=!1,s||(r.delta=n?1e3/60:Math.max(Math.min(o-r.timestamp,40),1)),r.timestamp=o,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),h.process(r),d.process(r),c.process(r),p.process(r),m.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(f))};return{schedule:tE.reduce((e,s)=>{let a=o[s];return e[s]=(e,s=!1,o=!1)=>(!i&&(i=!0,n=!0,r.isProcessing||t(f)),a.schedule(e,s,o)),e},{}),cancel:t=>{for(let e=0;e<tE.length;
1e++)o[tE[e]].cancel(t)},state:r,steps:o}}let{schedule:tC,cancel:tk,state:tV,steps:tR}=tM("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:tT,!0),tD=new Set,tL=!1,tj=!1,tB=!1;function tF(){if(tj){let t=Array.from(tD).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 tP.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tj=!1,tL=!1,tD.forEach(t=>t.complete(tB)),tD.clear()}function tO(){tD.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tj=!0)})}class tI{constructor(t,e,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(tD.add(this),tL||(tL=!0,tC.read(tO),tC.resolveKeyframes(tF))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){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])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tD.delete(this)}cancel(){"scheduled"===this.state&&(tD.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tU=t=>/^0[^.\s]+$/u.test(t),tN=new Set([U,N]);function tW(t,e){let i=_(t);return tN.has(i)||(i=B),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let t$=new Set(["auto","none","0"]);class tz extends tI{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&&to(n=n.trim())){let r=function t(e,i,n=1){te(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,s]=function(t){let e=tu.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 ti(t)?parseFloat(t):t}return to(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(),!q.has(i)||2!==t.length)return;let[n,r]=t,s=J(n),o=J(r);if(tl(n)!==tl(r)&&tS[i]){this.needsMeasurement=!0;return}if(s!==o)if(tw(s)&&tw(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tS[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;(null===t[e]||("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||tU(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&&!t$.has(e)&&L(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=tW(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=tS[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]=tS[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let t_=t=>1e3*t;function tY(t,e){-1===t.indexOf(e)&&t.push(e)}function tX(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class tK{constructor(){this.subscriptions=[]}add(t){return tY(this.subscriptions,t),()=>tX(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 tH(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}function tG(t){let e;return()=>(void 0===e&&(e=t()),e)}let tq={};function tZ(t,e){let i=tG(t);return()=>tq[e]??i()}let tQ=tZ(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),tJ=t=>null!==t;function t0(t,{repeat:e,repeatType:i="loop"},n,r=1){let s=t.filter(tJ),o=r<0||e&&"loop"!==i&&e%2==1?0:s.length-1;return o&&void 0!==n?n:s[o]}class t1{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let t2=t=>Array.isArray(t)&&"number"==typeof t[0],t5=tZ(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),t3=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},t6=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,t4={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t6([0,.65,.55,1]),circOut:t6([.55,0,1,.45]),backIn:t6([.31,.01,.66,-.59]),backOut:t6([.33,1.53,.69,.99])};function t9(t){return"function"==typeof t&&"applyToOptions"in t}class t7 extends t1{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=t,te("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:t,...e}){return t9(t)&&t5()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?t5()?t3(e,i):"ease-out":t2(e)?t6(e):Array.isArray(e)?e.map(e=>t(e,i)||t4.easeOut):t4[e]}(a,r);Array.isArray(d)&&(h.easing=d);let c={delay:n,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};return u&&(c.pseudoElement=u),t.animate(h,c)}(e,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=t0(n,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(t),tH(e,i,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=t_(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:i,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&tQ())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),tT):n(this)}}let t8=new Set(["opacity","clipPath","filter","transform"]),{schedule:et}=tM(queueMicrotask,!1);function ee(){n=void 0}let ei={now:()=>(void 0===n&&ei.set(tV.isProcessing||tA.useManualTiming?tV.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(ee)}},en=(t,e)=>e?1e3/e*t:0,er={current:void 0};class es{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=ei.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=ei.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(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 tK);let i=this.events[t].add(e);return"change"===t?()=>{i(),tC.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){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}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()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return er.current&&er.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=ei.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return en(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function eo(t,e){return new es(t,e)}let ea=[...Q,C,B],el=new WeakMap;function eu(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function eh(t){return"string"==typeof t||Array.isArray(t)}let ed=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ec=["initial",...ed];function ep(t){return eu(t.animate)||ec.some(e=>eh(t[e]))}function em(t){return!!(ep(t)||t.variants)}var ef=i(5824);function ey(t){let e=[{},{}];
1return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function eg(t,e,i,n){if("function"==typeof e){let[r,s]=ey(n);e=e(void 0!==i?i:t.custom,r,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,s]=ey(n);e=e(void 0!==i?i:t.custom,r,s)}return e}var ev=i(31);let ex=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ew={};class eb{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:r,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=tI,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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=ei.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tC.render(this.render,!1,!0))};let{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=r,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=ep(e),this.isVariantNode=em(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:h,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in d){let e=d[t];void 0!==l[t]&&(0,G.S)(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,el.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)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(ev.r.current||(0,ef.Uu)(),this.shouldReduceMotion=ev.O.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),tk(this.notifyUpdate),tk(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(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}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&t8.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:r,ease:s,duration:o}=e.accelerate,a=new t7({element:this.current,name:t,keyframes:n,times:r,ease:s,duration:t_(o)}),l=i(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let n=a.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tC.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"undefined"!=typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),i&&i()})}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 ew){let e=ew[t];
1if(!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):H()}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<ex.length;e++){let i=ex[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((0,G.S)(r))t.addValue(n,r);else if((0,G.S)(s))t.addValue(n,eo(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,eo(void 0!==e?e:r,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=eo(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];if(null!=i){if("string"==typeof i&&(ti(i)||tU(i)))i=parseFloat(i);else{let n;n=i,!ea.find(Z(n))&&B.test(e)&&(i=tW(t,e))}this.setBaseTarget(t,(0,G.S)(i)?i.get():i)}return(0,G.S)(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=eg(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||(0,G.S)(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 tK),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){et.render(this.render)}}class eP extends eb{constructor(){super(...arguments),this.KeyframeResolver=tz}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[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;(0,G.S)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function eS(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let eT=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eE=o.length;function eM(t,e,i){let{style:n,vars:r,transformOrigin:s}=t,l=!1,u=!1;for(let t in e){let i=e[t];if(a.has(t)){l=!0;continue}if(tr(t)){r[t]=i;continue}{let e=eT(i,$[t]);t.startsWith("origin")?(u=!0,s[t]=e):n[t]=e}}
1if(!e.transform&&(l||i?n.transform=function(t,e,i){let n="",r=!0;for(let s=0;s<eE;s++){let a=o[s],l=t[a];if(void 0===l)continue;let u=!0;if("number"==typeof l)u=l===+!!a.startsWith("scale");else{let t=parseFloat(l);u=a.startsWith("scale")?1===t:0===t}if(!u||i){let t=eT(l,$[a]);if(!u){r=!1;let e=eA[a]||a;n+=`${e}(${t}) `}i&&(e[a]=t)}}let s=t.pathRotation;return s&&(r=!1,n+=`rotate(${eT(s,$.pathRotation)}) `),n=n.trim(),i?n=i(e,r?"":n):r&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=s;n.transformOrigin=`${t} ${e} ${i}`}}let eC={offset:"stroke-dashoffset",array:"stroke-dasharray"},ek={offset:"strokeDashoffset",array:"strokeDasharray"},eV=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eR(t,{attrX:e,attrY:i,attrScale:n,pathLength:r,pathSpacing:s=1,pathOffset:o=0,...a},l,u,h){if(eM(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:c}=t;for(let t of(d.transform&&(c.transform=d.transform,delete d.transform),(c.transform||d.transformOrigin)&&(c.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),c.transform&&(c.transformBox=h?.transformBox??"fill-box",delete d.transformBox),eV))void 0!==d[t]&&(c[t]=d[t],delete d[t]);void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==r&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?eC:ek;t[s.offset]=`${-n}`,t[s.array]=`${e} ${i}`}(d,r,s,o,!1)}let eD=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"]),eL=t=>"string"==typeof t&&"svg"===t.toLowerCase();function ej(t,{style:e,vars:i},n,r){let s,o=t.style;for(s in e)o[s]=e[s];for(s in r?.applyProjectionStyles(o,n),i)o.setProperty(s,i[s])}function eB(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let eF={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!S.test(t))return t;else t=parseFloat(t);let i=eB(t,e.target.x),n=eB(t,e.target.y);return`${i}% ${n}%`}},eO=(t,e,i)=>t+(e-t)*i,eI={borderRadius:{...eF,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eF,borderTopRightRadius:eF,borderBottomLeftRadius:eF,borderBottomRightRadius:eF,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=B.parse(t);if(n.length>5)return t;let r=B.createTransformer(t),s=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=eO(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};function eU(t,{layout:e,layoutId:i}){return a.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!eI[t]||"opacity"===t)}function eN(t,e,i){let n=t.style,r=e?.style,s={};if(!n)return s;for(let e in n)((0,G.S)(n[e])||r&&(0,G.S)(r[e])||eU(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(s[e]=n[e]);return s}function eW(t,e,i){let n=eN(t,e,i);for(let i in t)((0,G.S)(t[i])||(0,G.S)(e[i]))&&(n[-1!==o.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class e$ extends eP{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=H}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(a.has(e)){let t=_(e);return t&&t.default||0}return e=eD.has(e)?e:eS(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return eW(t,e,i)}build(t,e,i){eR(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in ej(t,e,void 0,n),e.attrs)t.setAttribute(eD.has(i)?i:eS(i),e.attrs[i])}mount(t){this.isSVGTag=eL(t.tagName),super.mount(t)}}function ez({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function e_(t){return void 0===t||1===t}function eY({scale:t,scaleX:e,scaleY:i}){return!e_(t)||!e_(e)||!e_(i)}function eX(t){return eY(t)||eK(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function eK(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function eH(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function eG(t,e=0,i=1,n,r){t.min=eH(t.min,e,i,n,r),t.max=eH(t.max,e,i,n,r)}function eq(t,{x:e,y:i}){eG(t.x,e.translate,e.scale,e.originPoint),eG(t.y,i.translate,i.scale,i.originPoint)}function eZ(t,e){t.min+=e,t.max+=e}function eQ(t,e,i,n,r=.5){let s=eO(t.min,t.max,r);eG(t,e,i,s,n)}function eJ(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function e0(t,e,i){let n=i??t;eQ(t.x,eJ(e.x,n.x),e.scaleX,e.scale,e.originX),eQ(t.y,eJ(e.y,n.y),e.scaleY,e.scale,e.originY)}function e1(t,e){return ez(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))}class e2 extends eP{constructor(){super(...arguments),this.type="html",this.renderInstance=ej}readValueFromInstance(t,e){if(a.has(e))return this.projection?.isProjecting?tg(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tv(i,e)})(t,e);{let i=window.getComputedStyle(t),n=(tr(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return e1(t,e)}build(t,e,i){eM(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return eN(t,e,i)}}var e5=i(2115);let e3=["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 e6(t){if("string"!=typeof t||t.includes("-"));else if(e3.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var e4=i(5155),e9=i(296);let e7=(0,e5.createContext)({strict:!1});var e8=i(3127);let it=(0,e5.createContext)({});function ie(t){return Array.isArray(t)?t.join(" "):t}let ii=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ir(t,e,i){for(let n in e)(0,G.S)(e[n])||eU(n,i)||(t[n]=e[n])}let is=()=>({...ii(),attrs:{}});var io=i(9132);function ia(t){return(0,G.S)(t)?t.get():t}var il=i(9686),iu=i(4416);let ih=t=>(e,i)=>{let n=(0,e5.useContext)(it),r=(0,e5.useContext)(il.t),s=()=>(function(t,e,i,n){let{scrapeMotionValuesFromProps:r,createRenderState:s}=t;return{latestValues:function(t,e,i,n){let r={},s=n(t,{});for(let t in s)r[t]=ia(s[t]);let{initial:o,animate:a}=t,l=ep(t),u=em(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,d=(h=h||!1===o)?a:o;if(d&&"boolean"!=typeof d&&!eu(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let n=eg(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=h?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(e,i,n,r),renderState:s()}})(t,e,n,r);return i?s():(0,iu.M)(s)},id=ih({scrapeMotionValuesFromProps:eN,createRenderState:ii}),ic=ih({scrapeMotionValuesFromProps:eW,createRenderState:is}),ip={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"]},im=!1;function iy(){return!function(){if(im)return;let t={};for(let e in ip)t[e]={isEnabled:t=>ip[e].some(e=>!!t[e])};ew=t,im=!0}(),ew}let ig=Symbol.for("motionComponentSymbol"),iv="data-"+eS("framerAppearId"),ix=(0,e5.createContext)({});function iw(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var ib=i(6436);function iP(t){var e,i;let{forwardMotionProps:n=!1,type:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;s&&function(t){let e=iy();for(let i in t)e[i]={...e[i],...t[i]};ew=e}(s);let a=r?"svg"===r:e6(t),l=a?ic:id;function u(e,i){let r,s={...(0,e5.useContext)(e8.Q),...e,layoutId:function(t){let{layoutId:e}=t,i=(0,e5.useContext)(e9.L).id;return i&&void 0!==e?i+"-"+e:e}(e)},{isStatic:u}=s,h=function(t){let{initial:e,animate:i}=function(t,e){if(ep(t)){let{initial:e,animate:i}=t;return{initial:!1===e||eh(e)?e:void 0,animate:eh(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,e5.useContext)(it));return(0,e5.useMemo)(()=>({initial:e,animate:i}),[ie(e),ie(i)])}(e),d=l(e,u);if(!u&&"undefined"!=typeof window){(0,e5.useContext)(e7).strict;let e=function(t){let{drag:e,layout:i}=iy();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(s);r=e.MeasureLayout,h.visualElement=function(t,e,i,n,r,s){var o,a,l,u;let{visualElement:h}=(0,e5.useContext)(it),d=(0,e5.useContext)(e7),c=(0,e5.useContext)(il.t),p=(0,e5.useContext)(e8.Q),m=p.reducedMotion,f=p.skipAnimations,y=(0,e5.useRef)(null),g=(0,e5.useRef)(!1);n=n||d.renderer,!y.current&&n&&(y.current=n(t,{visualState:e,parent:h,props:i,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:m,skipAnimations:f,isSVG:s}),g.current&&y.current&&(y.current.manuallyAnimateOnMount=!0));let v=y.current,x=(0,e5.useContext)(ix);v&&!v.projection&&r&&("html"===v.type||"svg"===v.type)&&function(t,e,
1i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:h,layoutCrossfade:d}=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&&iw(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:h})}(y.current,i,r,x);let w=(0,e5.useRef)(!1);(0,e5.useInsertionEffect)(()=>{v&&w.current&&v.update(i,c)});let b=i[iv],P=(0,e5.useRef)(!!b&&"undefined"!=typeof window&&!(null==(o=(a=window).MotionHandoffIsComplete)?void 0:o.call(a,b))&&(null==(l=(u=window).MotionHasOptimisedAnimation)?void 0:l.call(u,b)));return(0,ib.E)(()=>{g.current=!0,v&&(w.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),P.current&&v.animationState&&v.animationState.animateChanges())}),(0,e5.useEffect)(()=>{v&&(!P.current&&v.animationState&&v.animationState.animateChanges(),P.current&&(queueMicrotask(()=>{var t,e;null==(t=(e=window).MotionHandoffMarkAsComplete)||t.call(e,b)}),P.current=!1),v.enteringChildren=void 0)}),v}(t,d,s,o,e.ProjectionNode,a)}return(0,e4.jsxs)(it.Provider,{value:h,children:[r&&h.visualElement?(0,e4.jsx)(r,{visualElement:h.visualElement,...s}):null,function(t,e,i,n,r){let{latestValues:s}=n,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,l=((null!=a?a:e6(t))?function(t,e,i,n){let r=(0,e5.useMemo)(()=>{let i=is();return eR(i,e,eL(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};ir(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 ir(n,i,t),Object.assign(n,function(t,e){let{transformTemplate:i}=t;return(0,e5.useMemo)(()=>{let t=ii();return eM(t,e,i),Object.assign({},t.vars,t.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-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(e,s,r,t),u=(0,io.J)(e,"string"==typeof t,o),h=t!==e5.Fragment?{...u,...l,ref:i}:{},{children:d}=e,c=(0,e5.useMemo)(()=>(0,G.S)(d)?d.get():d,[d]);return(0,e5.createElement)(t,{...h,children:c})}(t,e,function(t,e,i){let n=(0,e5.useRef)(i);(0,e5.useInsertionEffect)(()=>{n.current=i});let r=(0,e5.useRef)(null);return(0,e5.useCallback)(i=>{if(i){var s;null==(s=t.onMount)||s.call(t,i)}e&&(i?e.mount(i):e.unmount());let o=n.current;if("function"==typeof o)if(i){let t=o(i);"function"==typeof t&&(r.current=t)}else r.current?(r.current(),r.current=null):o(i);else o&&(o.current=i)},[e])}(d,h.visualElement,i),d,u,n,a)]})}u.displayName="motion.".concat("string"==typeof t?t:"create(".concat(null!=(i=null!=(e=t.displayName)?e:t.name)?i:"",")"));let h=(0,e5.forwardRef)(u);return h[ig]=t,h}class iS{constructor(t){this.isMounted=!1,this.node=t}update(){}}function iT(t,e,i){let n=t.getProps();return eg(n,e,void 0!==i?i:n.custom,t)}var iA=i(1118);function iE(t,e){let i=t?.[e]??t?.default??t;return i!==t?(0,iA.K)(i,t):i}let iM=t=>Array.isArray(t);function iC(t,e){let i=t.getValue("willChange");if((0,G.S)(i)&&i.add)return i.add(e);if(!i&&tA.WillChange){let i=new tA.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let ik=(...t)=>t.reduce((t,e)=>i=>e(t(i)));function iV(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 iR(t,e){return i=>i>0?e:t}let iD=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},iL=[x,v,M];function ij(t){let e=iL.find(e=>e.test(t));if(tt(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===M&&(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=iV(a,n,t+1/3),s=iV(a,n,t),o=iV(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 iB=(t,e)=>{let i=ij(t),n=ij(e);if(!i||!n)return iR(t,e);let r={...i};return t=>(r.red=iD(i.red,n.red,t),r.green=iD(i.green,n.green,t),r.blue=iD(i.blue,n.blue,t),r.alpha=eO(i.alpha,n.alpha,t),v.transform(r))},iF=new Set(["none","hidden"]);function iO(t,e){return i=>eO(t,e,i)}function iI(t){return"number"==typeof t?iO:"string"==typeof t?to(t)?iR:C.test(t)?iB:iW:Array.isArray(t)?iU:"object"==typeof t?C.test(t)?iB:iN:iR}function iU(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>iI(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function iN(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=iI(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let iW=(t,e)=>{let i=B.createTransformer(e),n=L(t),r=L(e);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>
1=r.indexes.number.length?iF.has(t)&&!r.values.length||iF.has(e)&&!n.values.length?function(t,e){return iF.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):ik(iU(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):(tt(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),iR(t,e))};function i$(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?eO(t,e,i):iI(t)(t,e)}let iz=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tC.update(e,t),stop:()=>tk(e),now:()=>tV.isProcessing?tV.timestamp:ei.now()}};function i_(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 iY={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 iX(t,e){return t*Math.sqrt(1-e*e)}let iK=["duration","bounce"],iH=["stiffness","damping","mass"];function iG(t,e){return e.some(e=>void 0!==t[e])}function iq(t=iY.visualDuration,e=iY.bounce){let i,n,r,s,o,a,u="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:h,restDelta:d}=u,c=u.keyframes[0],p=u.keyframes[u.keyframes.length-1],m={done:!1,value:c},{stiffness:f,damping:y,mass:g,duration:v,velocity:x,isResolvedFromDuration:w}=function(t){let e={velocity:iY.velocity,stiffness:iY.stiffness,damping:iY.damping,mass:iY.mass,isResolvedFromDuration:!1,...t};if(!iG(t,iH)&&iG(t,iK))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*l(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:iY.mass,stiffness:n,damping:r}}else{let i=function({duration:t=iY.duration,bounce:e=iY.bounce,velocity:i=iY.velocity,mass:n=iY.mass}){let r,s;tt(t<=t_(iY.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=l(iY.minDamping,iY.maxDamping,o),t=l(iY.minDuration,iY.maxDuration,t/1e3),o<1?(r=e=>{let n=e*o,r=n*t;return .001-(n-i)/iX(e,o)*Math.exp(-r)},s=e=>{let n=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-n),l=iX(Math.pow(e,2),o);return(n*i+i-s)*a*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,5/t);if(t=t_(t),isNaN(a))return{stiffness:iY.stiffness,damping:iY.damping,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:iY.mass}).isResolvedFromDuration=!0}return e}({...u,velocity:-((u.velocity||0)/1e3)}),b=x||0,P=y/(2*Math.sqrt(f*g)),S=p-c,T=Math.sqrt(f/g)/1e3,A=5>Math.abs(S);if(h||(h=A?iY.restSpeed.granular:iY.restSpeed.default),d||(d=A?iY.restDelta.granular:iY.restDelta.default),P<1)r=iX(T,P),s=(b+P*T*S)/r,i=t=>p-Math.exp(-P*T*t)*(s*Math.sin(r*t)+S*Math.cos(r*t)),o=P*T*s+S*r,a=P*T*S-s*r,n=t=>Math.exp(-P*T*t)*(o*Math.sin(r*t)+a*Math.cos(r*t));else if(1===P){i=t=>p-Math.exp(-T*t)*(S+(b+T*S)*t);let t=b+T*S;n=e=>Math.exp(-T*e)*(T*t*e-b)}else{let t=T*Math.sqrt(P*P-1);i=e=>{let i=Math.exp(-P*T*e),n=Math.min(t*e,300);return p-i*((b+P*T*S)*Math.sinh(n)+t*S*Math.cosh(n))/t};let e=(b+P*T*S)/t,r=P*T*e-S*t,s=P*T*S-e*t;n=e=>{let i=Math.exp(-P*T*e),n=Math.min(t*e,300);return i*(r*Math.sinh(n)+s*Math.cosh(n))}}let E={calculatedDuration:w&&v||null,velocity:t=>t_(n(t)),next:t=>{if(!w&&P<1){let e=Math.exp(-P*T*t),i=Math.sin(r*t),n=Math.cos(r*t),l=p-e*(s*i+S*n);return m.done=Math.abs(t_(e*(o*i+a*n)))<=h&&Math.abs(p-l)<=d,m.value=m.done?p:l,m}let e=i(t);return w?m.done=t>=v:m.done=Math.abs(t_(n(t)))<=h&&Math.abs(p-e)<=d,m.value=m.done?p:e,m},toString:()=>{let t=Math.min(i_(E),2e4),e=t3(e=>E.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return E}function iZ(t,e,i){let n=Math.max(e-5,0);return en(i-t(n),e-n)}function iQ({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let d,c,p=t[0],m={done:!1,value:p},f=i*e,y=p+f,g=void 0===o?y:o(y);g!==y&&(f=g-p);let v=t=>-f*Math.exp(-t/n),x=t=>g+v(t),w=t=>{let e=v(t),i=x(t);m.done=Math.abs(e)<=u,m.value=m.done?g:i},b=t=>{let e;if(e=m.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;d=t,c=iq({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:iZ(x,t,m.value),damping:r,stiffness:s,restDelta:u,restSpeed:h})}};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,w(t),b(t)),void 0!==d&&t>=d)?c.next(t-d):(e||w(t),m)}}}iq.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),r=Math.min(i_(n),2e4);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:r/1e3}}(t,100,iq);return t.ease=e.ease,t.duration=t_(e.duration),t.type="keyframes",t};let iJ=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function i0(t,e,i,n){return t===e&&i===n?tT:r=>
10===r||1===r?r:iJ(function(t,e,i,n,r){let s,o,a=0;do(s=iJ(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o}(r,0,1,t,i),e,n)}let i1=i0(.42,0,1,1),i2=i0(0,0,.58,1),i5=i0(.42,0,.58,1),i3=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,i6=t=>e=>1-t(1-e),i4=i0(.33,1.53,.69,.99),i9=i6(i4),i7=i3(i9),i8=t=>t>=1?1:(t*=2)<1?.5*i9(t):.5*(2-Math.pow(2,-10*(t-1))),nt=t=>1-Math.sin(Math.acos(t)),ne=i6(nt),ni=i3(nt),nn={linear:tT,easeIn:i1,easeInOut:i5,easeOut:i2,circIn:nt,circInOut:ni,circOut:ne,backIn:i9,backInOut:i7,backOut:i4,anticipate:i8},nr=t=>{if(t2(t)){te(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,r]=t;return i0(e,i,n,r)}return"string"==typeof t?(te(void 0!==nn[t],`Invalid easing type '${t}'`,"invalid-easing-type"),nn[t]):t},ns=(t,e,i)=>{let n=e-t;return n?(i-t)/n:1};function no({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var r;let s=Array.isArray(n)&&"number"!=typeof n[0]?n.map(nr):nr(n),o={done:!1,value:e[0]},a=function(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;if(te(s===e.length,"Both input and output ranges must be the same length","range-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());let a=function(t,e,i){let n=[],r=i||tA.mix||i$,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=ik(Array.isArray(e)?e[i]||tT:e,s)),n.push(s)}return n}(e,n,r),u=a.length,h=i=>{if(o&&i<t[0])return e[0];let n=0;if(u>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=ns(t[n],t[n+1],i);return a[n](r)};return i?e=>h(l(t[0],t[s-1],e)):h}((r=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=ns(0,e,n);t.push(eO(i,1,r))}}(e,t.length-1),e}(e),r.map(e=>e*t)),e,{ease:Array.isArray(s)?s:e.map(()=>s||i5).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}let na={decay:iQ,inertia:iQ,tween:no,keyframes:no,spring:iq};function nl(t){"string"==typeof t.type&&(t.type=na[t.type])}let nu=t=>t/100;class nh extends t1{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==ei.now()&&this.tick(ei.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;nl(t);let{type:e=no,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=t,{keyframes:o}=t,a=e||no;a!==no&&"number"!=typeof o[0]&&(this.mixKeyframes=ik(nu,i$(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===r&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=i_(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let i,{generator:n,totalDuration:r,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:u}=this;if(null===this.startTime)return n.next(0);let{delay:h=0,keyframes:d,repeat:c,repeatType:p,repeatDelay:m,type:f,onUpdate:y,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let v=this.currentTime-h*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?v<0:v>r;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let w=this.currentTime,b=n;if(c){let t=Math.min(this.currentTime,r)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/a)):"mirror"===p&&(b=o)),w=l(0,1,i)*a}x?(this.delayState.value=d[0],i=this.delayState):i=b.next(w),s&&!x&&(i.value=s(i.value));let{done:P}=i;x||null===u||(P=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return S&&f!==iQ&&(i.value=t0(d,this.options,g,this.speed)),y&&y(i.value),S&&this.finish(),i}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=t_(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;
1if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return iZ(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(ei.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=iz,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ei.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let nd={anticipate:i8,backInOut:i7,circInOut:ni};
1class nc extends t7{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in nd&&(t.ease=nd[t.ease])}(t),nl(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new nh({...s,autoplay:!1}),a=Math.max(10,ei.now()-this.startTime),u=l(0,10,a-10),h=o.sample(a).value,{name:d}=this.options;r&&d&&tH(r,d,h),e.setWithVelocity(o.sample(Math.max(0,a-u)).value,h,u),o.stop()}}let np=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(B.test(t)||"0"===t)&&!t.startsWith("url("));function nm(t){t.duration=0,t.type="keyframes"}let nf=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,ny=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),ng=tG(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nv extends t1{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:o,name:a,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ei.now();let d={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,name:a,motionValue:l,element:u,...h},c=u?.KeyframeResolver||tI;this.keyframeResolver=new c(o,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){let r;this.keyframeResolver=void 0;let{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:h}=i;this.resolvedAt=ei.now();let d=!0;!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=np(r,e),a=np(s,e);return tt(o===a,`You are trying to animate ${e} from "${r}" to "${s}". "${o?s:r}" is not an animatable value.`,"value-not-animatable"),!!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||t9(i))&&n)}(t,s,o,a)&&(d=!1,(tA.instantAnimations||!l)&&h?.(t0(t,i,e)),t[0]=t[t.length-1],nm(i),i.repeat=0);let c={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},p=d&&!u&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=e.owner.getProps();return ng()&&i&&(t8.has(i)||ny.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&nf.test(t[e]))return!0;return!1}(a))&&("transform"!==i||!u)&&!l&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}(c),m=c.motionValue?.owner?.current;if(p)try{r=new nc({...c,element:m})}catch{r=new nh(c)}else r=new nh(c);r.finished.then(()=>{this.notifyFinished()}).catch(tT),this.pendingTimeline&&(this.stopTimeline=r.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=r}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tB=!0,tO(),tF(),tB=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let nx={type:"spring",stiffness:500,damping:25,restSpeed:10},nw={type:"keyframes",duration:.8},nb={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nP=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),nS=(t,e,i,n={},r,s)=>o=>{let l=iE(n,t)||{}
1,u=l.delay||n.delay||0,{elapsed:h=0}=n;h-=t_(u);let d={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-h,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:s?void 0:r};!function(t){for(let e in t)if(!nP.has(e))return!0;return!1}(l)&&Object.assign(d,((t,{keyframes:e})=>e.length>2?nw:a.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:nx:nb)(t,d)),d.duration&&(d.duration=t_(d.duration)),d.repeatDelay&&(d.repeatDelay=t_(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let c=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(nm(d),0===d.delay&&(c=!0)),(tA.instantAnimations||tA.skipAnimations||r?.shouldSkipAnimations||l.skipAnimations)&&(c=!0,nm(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,c&&!s&&void 0!==e.get()){let t=t0(d.keyframes,l);if(void 0!==t)return void tC.update(()=>{d.onUpdate(t),d.onComplete()})}return l.isSync?new nh(d):new nv(d)};function nT(t,e,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s,transitionEnd:o,...a}=e,l=t.getDefaultTransition();s=s?(0,iA.K)(s,l):l;let u=s?.reduceMotion,h=s?.skipAnimations;n&&(s=n);let d=[],c=r&&t.animationState&&t.animationState.getState()[r],p=s?.path;for(let e in p&&p.animateVisualElement(t,a,s,i,d),a){let n=t.getValue(e,t.latestValues[e]??null),r=a[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,...iE(s||{},e)};h&&(o.skipAnimations=!0);let l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(r)&&r===l&&!o.velocity){tC.update(()=>n.set(r));continue}let p=!1;if(window.MotionHandoffAnimation){let i=t.props[iv];if(i){let t=window.MotionHandoffAnimation(i,e,tC);null!==t&&(o.startTime=t,p=!0)}}iC(t,e);let m=u??t.shouldReduceMotion;n.start(nS(e,n,r,m&&q.has(e)?{type:!1}:o,t,p));let f=n.animation;f&&d.push(f)}if(o){let e=()=>tC.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=iT(t,e)||{};for(let e in r={...r,...i}){var s;let i=iM(s=r[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,eo(i))}}(t,o)});d.length?Promise.all(d).then(e):e()}return d}function nA(t,e,i,n=0,r=1){let s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(s,o):1===r?s*n:a-s*n}function nE(t,e,i={}){let n=iT(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(nT(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=0,s=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(nE(l,e,{...o,delay:i+("function"==typeof n?0:n)+nA(t.variantChildren,l,n,r,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,n,s,o,a,i)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}let nM=ec.length;function nC(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}let nk=[...ed].reverse(),nV=ed.length;function nR(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nD(){return{animate:nR(!0),whileInView:nR(),whileHover:nR(),whileTap:nR(),whileDrag:nR(),whileFocus:nR(),exit:nR()}}class nL extends iS{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>nE(t,e,i)));else if("string"==typeof e)n=nE(t,e,i);else{let r="function"==typeof e?iT(t,e,i.custom):e;n=Promise.all(nT(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=nD(),n=!0,r=!1,s=e=>(i,n)=>{let r=iT(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:a}=t,l=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<nM;t++){let n=ec[t],r=e.props[n];(eh(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},u=[],h=new Set,d={},c=1/0;for(let e=0;e<nV;e++){var p,m;
1let f=nk[e],y=i[f],g=void 0!==a[f]?a[f]:l[f],v=eh(g),x=f===o?y.isActive:null;!1===x&&(c=e);let w=g===l[f]&&g!==a[f]&&v;if(w&&(n||r)&&t.manuallyAnimateOnMount&&(w=!1),y.protectedKeys={...d},!y.isActive&&null===x||!g&&!y.prevProp||eu(g)||"boolean"==typeof g)continue;if("exit"===f&&y.isActive&&!0!==x){y.prevResolvedValues&&(d={...d,...y.prevResolvedValues});continue}let b=(p=y.prevProp,"string"==typeof(m=g)?m!==p:!!Array.isArray(m)&&!nC(m,p)),P=b||f===o&&y.isActive&&!w&&v||e>c&&v,S=!1,T=Array.isArray(g)?g:[g],A=T.reduce(s(f),{});!1===x&&(A={});let{prevResolvedValues:E={}}=y,M={...E,...A},C=e=>{P=!0,h.has(e)&&(S=!0,h.delete(e)),y.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in M){let e=A[t],i=E[t];if(!d.hasOwnProperty(t))(iM(e)&&iM(i)?!nC(e,i)||b:e!==i)?null!=e?C(t):h.add(t):void 0!==e&&h.has(t)?C(t):y.protectedKeys[t]=!0}y.prevProp=g,y.prevResolvedValues=A,y.isActive&&(d={...d,...A}),(n||r)&&t.blockInitialAnimation&&(P=!1);let k=w&&b,V=!k||S;P&&V&&u.push(...T.map(e=>{let i={type:f};if("string"==typeof e&&(n||r)&&!k&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,r=iT(n,e);if(n.enteringChildren&&r){let{delayChildren:e}=r.transition||{};i.delay=nA(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof a.initial){let i=iT(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}h.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=n??null}),u.push({animation:e})}let f=!!u.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(f=!1),n=!1,r=!1,f?e(u):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=nD(),r=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();eu(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 nj=0;class nB extends iS{constructor(){super(...arguments),this.id=nj++,this.isExitComplete=!1}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;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)){let i=iT(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...n}=i;for(let t in n)this.node.getValue(t)?.jump(n[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}let nF={x:!1,y:!1};function nO(t){return[t("x"),t("y")]}function nI(t){return t.max-t.min}function nU(t,e,i,n=.5){t.origin=n,t.originPoint=eO(e.min,e.max,t.origin),t.scale=nI(i)/nI(e),t.translate=eO(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 nN(t,e,i,n){nU(t.x,e.x,i.x,n?n.originX:void 0),nU(t.y,e.y,i.y,n?n.originY:void 0)}function nW(t,e,i,n=0){t.min=(n?eO(i.min,i.max,n):i.min)+e.min,t.max=t.min+nI(e)}function n$(t,e,i,n=0){let r=n?eO(i.min,i.max,n):i.min;t.min=e.min-r,t.max=t.min+nI(e)}function nz(t,e,i,n){n$(t.x,e.x,i.x,n?.x),n$(t.y,e.y,i.y,n?.y)}let n_=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),nY=new Set(["INPUT","SELECT","TEXTAREA"]);function nX(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}var nK=i(3142);function nH(t){return(0,nK.G)(t)&&"ownerSVGElement"in t}var nG=i(8561);let nq=new WeakMap,nZ=(t,e,i)=>(n,r)=>r&&r[0]?r[0][t+"Size"]:nH(n)&&"getBBox"in n?n.getBBox()[e]:n[i],nQ=nZ("inline","width","offsetWidth"),nJ=nZ("block","height","offsetHeight");function n0({target:t,borderBoxSize:e}){nq.get(t)?.forEach(i=>{i(t,{get width(){return nQ(t,e)},get height(){return nJ(t,e)}})})}function n1(t){t.forEach(n0)}let n2=new Set;function n5(t,e){return"function"==typeof t?(n2.add(t),s||(s=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};n2.forEach(e=>e(t))},window.addEventListener("resize",s)),()=>{n2.delete(t),n2.size||"function"!=typeof s||(window.removeEventListener("resize",s),s=void 0)}):function(t,e){r||"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(n1));let i=(0,nG.K)(t);return i.forEach(t=>{let i=nq.get(t);i||(i=new Set,nq.set(t,i)),i.add(e),r?.observe(t)}),()=>{i.forEach(t=>{let i=nq.get(t);i?.delete(e),i?.size||r?.unobserve(t)})}}(t,e)}let n3=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function n6(t){return{point:{x:t.pageX,y:t.pageY}}}function n4(t,e,i,n){return nX(t,e,t=>n3(t)&&i(t,n6(t)),n)}let n9=({current:t})=>t?t.ownerDocument.defaultView:null,n7=(t,e)=>Math.abs(t-e),n8=new Set(["auto","scroll"]);class rt{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=re(this.lastRawMoveEventInfo,this.transformPagePoint));let t=rn(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(n7(t.x,e.x)**2+n7(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!i)return;let{point:n}=t,{timestamp:r}=tV;this.history.push({...n,timestamp:r});let{onStart:s,onMove:o}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=re(e,this.transformPagePoint),tC.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=rn("pointercancel"===t.type?this.lastMoveEventInfo:re(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!n3(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;let a=re(n6(t),this.transformPagePoint),{point:l}=a,{timestamp:u}=tV;this.history=[{...l,timestamp:u}];let{onSessionStart:h}=e;h&&h(t,rn(a,this.history));let d={passive:!0,capture:!0};this.removeListeners=ik(n4(this.contextWindow,"pointermove",this.handlePointerMove,d),n4(this.contextWindow,"pointerup",this.handlePointerUp,d),n4(this.contextWindow,"pointercancel",this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(n8.has(t.overflowX)||n8.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},r={x:n.x-e.x,y:n.y-e.y};(0!==r.x||0!==r.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(t,n),tC.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tk(this.updatePoint)}}function re(t,e){return e?{point:e(t.point)}:t}function ri(t,e){return{x:t.x-e.x,y:t.y-e.y}}function rn({point:t},e){return{point:t,delta:ri(t,rr(e)),offset:ri(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=rr(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>t_(.1)));)i--;if(!n)return{x:0,y:0};n===t[0]&&t.length>2&&r.timestamp-n.timestamp>2*t_(e)&&(n=t[1]);let s=(r.timestamp-n.timestamp)/1e3;if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s}
1;return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function rr(t){return t[t.length-1]}function rs(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 ro(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 ra(t,e,i){return{min:rl(t,e),max:rl(t,i)}}function rl(t,e){return"number"==typeof t?t:t[e]||0}let ru=new WeakMap;class rh{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=H(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let r=t=>{e&&this.snapToCursor(n6(t).point),this.stopAnimation()},s=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(nF[t])return null;else return nF[t]=!0,()=>{nF[t]=!1};return nF.x||nF.y?null:(nF.x=nF.y=!0,()=>{nF.x=nF.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nO(t=>{let e=this.getAxisMotionValue(t).get()||0;if(P.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=nI(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&tC.update(()=>r(t,e),!1,!0),iC(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=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&&tC.update(()=>s(t,e),!1,!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new rt(t,{onSessionStart:r,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:n9(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!n||!i)return;let{velocity:s}=n;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&tC.postRender(()=>o(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!rc(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?eO(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?eO(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&&iw(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:rs(t.x,i,r),y:rs(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:ra(t,"left","right"),y:ra(t,"top","bottom")}}(e),n!==this.constraints&&!iw(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&nO(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||!iw(e))return!1;let n=e.current;te(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());
1let s=function(t,e,i){let n=e1(t,i),{scroll:r}=e;return r&&(eZ(n.x,r.offset.x),eZ(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o=(t=r.layout.layoutBox,{x:ro(t.x,s.x),y:ro(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=ez(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(nO(o=>{if(!rc(o,e,this.currentDirection))return;let l=a&&a[o]||{};(!0===s||s===o)&&(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 iC(this.visualElement,t),i.start(nS(t,i,0,e,this.visualElement,!1))}stopAnimation(){nO(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`;return this.visualElement.getProps()[e]||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){nO(e=>{let{drag:i}=this.getProps();if(!rc(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],o=r.get()||0;r.set(t[e]-eO(i,s,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iw(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};nO(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=nI(t),r=nI(e);return r>n?i=ns(e.min,e.max-n,t.min):n>r&&(i=ns(t.min,t.max-r,e.min)),l(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.constraints=!1,this.resolveConstraints(),nO(e=>{if(!rc(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set(eO(r,s,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;ru.set(this.visualElement,this);let e=this.visualElement.current,i=n4(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}=this.getProps(),r=t.target,s=r!==e&&(nY.has(r.tagName)||!0===r.isContentEditable);i&&n&&!s&&this.start(t)}),n=()=>{let{dragConstraints:i}=this.getProps();iw(i)&&i.current&&(this.constraints=this.resolveRefConstraints(),t||(t=function(t,e,i){let n=n5(t,rd(i)),r=n5(e,rd(i));return()=>{n(),r()}}(e,i.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,s=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),tC.read(n);let o=nX(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(nO(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),i(),s(),a&&a(),t&&t()}}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 rd(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function rc(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class rp extends iS{constructor(t){super(t),this.removeGroupControls=tT,this.removeListeners=tT,this.controls=new rh(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tT}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let rm=t=>(e,i)=>{t&&tC.update(()=>t(e,i),!1,!0)};class rf extends iS{constructor(){super(...arguments),this.removePointerDownListener=tT}onPointerDown(t){this.session=new rt(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:n9(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:rm(t),onStart:rm(e),onMove:rm(i),onEnd:(t,e)=>{delete this.session,n&&tC.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=n4(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ry={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var rg=i(5601);let rv=!1;class rx extends e5.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),rv&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ry.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,t.layoutDependency!==e&&s.setOptions({...s.options,layoutDependency:e}),rv=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==r?s.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?s.promote():s.relegate()||tC.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),et.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;rv=!0,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 rw(t){let[e,i]=(0,rg.xQ)(),n=(0,e5.useContext)(e9.L);return(0,e4.jsx)(rx,{...t,layoutGroup:n,switchLayoutGroup:(0,e5.useContext)(ix),isPresent:e,safeToRemove:i})}let rb={value:null,addProjectionMetrics:null},rP=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],rS=rP.length,rT=t=>"string"==typeof t?parseFloat(t):t,rA=t=>"number"==typeof t||S.test(t);function rE(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rM=rk(0,.5,ne),rC=rk(.5,.95,tT);function rk(t,e,i){return n=>n<t?0:n>e?1:i(ns(t,e,n))}function rV(t,e){t.min=e.min,t.max=e.max}function rR(t,e){rV(t.x,e.x),rV(t.y,e.y)}function rD(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function rL(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 rj(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(P.test(e)&&(e=parseFloat(e),e=eO(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=eO(s.min,s.max,n);t===s&&(a-=e),t.min=rL(t.min,e,i,a,r),t.max=rL(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let rB=["x","scaleX","originX"],rF=["y","scaleY","originY"];function rO(t,e,i,n){rj(t.x,e,rB,i?i.x:void 0,n?n.x:void 0),rj(t.y,e,rF,i?i.y:void 0,n?n.y:void 0)}function rI(t){return 0===t.translate&&1===t.scale}function rU(t){return rI(t.x)&&rI(t.y)}function rN(t,e){return t.min===e.min&&t.max===e.max}function rW(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function r$(t,e){return rW(t.x,e.x)&&rW(t.y,e.y)}function rz(t){return nI(t.x)/nI(t.y)}function r_(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class rY{constructor(){this.members=[]}add(t){tY(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1!==n.isConnected||i.snapshot||(tX(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(tX(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}
1}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:r}=t.options;(void 0===n||n!==r)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let rX=(t,e)=>t.depth-e.depth;class rK{constructor(){this.children=[],this.isDirty=!1}add(t){tY(this.children,t),this.isDirty=!0}remove(t){tX(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rX),this.isDirty=!1,this.children.forEach(t)}}let rH={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},rG=["","X","Y","Z"],rq=0;function rZ(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function rQ({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=rq++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,rb.value&&(rH.nodes=rH.calculatedTargetDeltas=rH.calculatedProjections=0),this.nodes.forEach(r1),this.nodes.forEach(st),this.nodes.forEach(se),this.nodes.forEach(r2),rb.addProjectionMetrics&&rb.addProjectionMetrics(rH)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=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 rK)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tK),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){if(this.instance)return;this.isSVG=nH(e)&&!(nH(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,r=()=>this.root.updateBlockedByResize=!1;tC.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==n&&(n=t,this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=ei.now(),n=({timestamp:e})=>{let r=e-i;r>=250&&(tk(n),t(r-250))};return tC.setup(n,!0),()=>tk(n)}(r,250),ry.hasAnimatedSinceResize&&(ry.hasAnimatedSinceResize=!1,this.nodes.forEach(r8)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||sa,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!r$(this.targetLayout,n),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...iE(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u,e.path)}else e||r8(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,this.eventHandlers.clear(),tk(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(si),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[iv];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tC,!(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,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!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()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(r6),this.nodes.forEach(r3);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(r4);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(r9),this.nodes.forEach(r7),this.nodes.forEach(rJ),this.nodes.forEach(r0)):this.nodes.forEach(r4),this.clearAllSnapshots();let t=ei.now();tV.delta=l(0,1e3/60,t-tV.timestamp),tV.timestamp=t,tV.isProcessing=!0,tR.update.process(tV),tR.preRender.process(tV),tR.render.process(tV),tV.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,et.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(r5),this.sharedNodes.forEach(sn)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tC.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tC.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nI(this.snapshot.measuredBox.x)||nI(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.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=H()),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&&this.instance){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&&!rU(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||eX(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)),sh((e=n).x),sh(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return H();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sc))){let{scroll:t}=this.root;t&&(eZ(e.x,t.offset.x),eZ(e.y,t.offset.y))}return e}removeElementScroll(t){let e=H();if(rR(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&&rR(e,t),eZ(e.x,r.offset.x),eZ(e.y,r.offset.y))}return e}applyTransform(t,e=!1,i){let n=i||H();rR(n,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(eZ(n.x,-i.scroll.offset.x),eZ(n.y,-i.scroll.offset.y)),eX(i.latestValues)&&e0(n,i.latestValues,i.layout?.layoutBox)}return eX(this.latestValues)&&e0(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(t){let e=H();rR(e,t);for(let t=0;t<this.path.length;t++){let i,n=this.path[t];eX(n.latestValues)&&(n.instance&&(eY(n.latestValues)&&n.updateSnapshot(),rR(i=H(),n.measurePageBox())),rO(e,n.latestValues,n.snapshot?.layoutBox,i))}return eX(this.latestValues)&&rO(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!==tV.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))return;this.resolvedRelativeTargetAt=tV.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=H(),this.targetWithTransforms=H()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l,u;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,nW(o.x,a.x,l.x,u?.x),nW(o.y,a.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):rR(this.target,this.layout.layoutBox),eq(this.target,this.targetDelta)):rR(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&s&&!!s.resumingFrom==!!this.resumingFrom&&!s.options.layoutScroll&&s.target&&1!==this.animationProgress?this.createRelativeTarget(s,this.target,s.target):this.relativeParent=this.relativeTarget=void 0),rb.value&&rH.calculatedTargetDeltas++}}getClosestProjectingParent(){if(!(!this.parent||eY(this.parent.latestValues)||eK(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=H(),this.relativeTargetOrigin=H(),nz(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),rR(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tV.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;rR(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,n=!1){let r,s,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(r=i[a]).projectionDelta;let{visualElement:o}=r.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(eZ(t.x,-r.scroll.offset.x),eZ(t.y,-r.scroll.offset.y)),s&&(e.x*=s.x.scale,e.y*=s.y.scale,eq(t,s)),n&&eX(r.latestValues)&&e0(t,r.latestValues,r.layout?.layoutBox))}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=H());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rD(this.prevProjectionDelta.x,this.projectionDelta.x),rD(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nN(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&r_(this.projectionDelta.x,this.prevProjectionDelta.x)&&r_(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),rb.value&&rH.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=X(),this.projectionDelta=X(),this.projectionDeltaWithTransform=X()}setAnimationOrigin(t,e=!1,i){let n,r=this.snapshot,s=r?r.latestValues:{},o={...this.latestValues},a=X();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=H(),u=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),d=!h||h.members.length<=1,c=!!(u&&!d&&!0===this.options.crossfade&&!this.path.some(so));this.animationProgress=0;let p=i?.interpolateProjection(t);this.mixTargetDelta=e=>{let i=e/1e3,r=p?.(i);if(r?(a.x.translate=r.x,a.x.scale=eO(t.x.scale,1,i),a.x.origin=t.x.origin,a.x.originPoint=t.x.originPoint,a.y.translate=r.y,a.y.scale=eO(t.y.scale,1,i),a.y.origin=t.y.origin,a.y.originPoint=t.y.originPoint):(sr(a.x,t.x,i),sr(a.y,t.y,i)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,m,f,y,g,v;nz(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,y=this.relativeTargetOrigin,g=l,v=i,ss(f.x,y.x,g.x,v),ss(f.y,y.y,g.y,v),n&&(h=this.relativeTarget,m=n,rN(h.x,m.x)&&rN(h.y,m.y))&&(this.isProjectionDirty=!1),n||(n=H()),rR(n,this.relativeTarget)}u&&(this.animationValues=o,function(t,e,i,n,r,s){r?(t.opacity=eO(0,i.opacity??1,rM(n)),t.opacityExit=eO(e.opacity??1,0,rC(n))):s&&(t.opacity=eO(e.opacity??1,i.opacity??1,n));for(let r=0;r<rS;r++){let s=rP[r],o=rE(e,s),a=rE(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||rA(o)===rA(a)?(t[s]=Math.max(eO(rT(o),rT(a),n),0),(P.test(a)||P.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=eO(e.rotate||0,i.rotate||0,n))}(o,s,this.latestValues,i,c,d)),r&&void 0!==r.rotate&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tk(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tC.update(()=>{ry.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=eo(0)),this.motionValue.jump(0,!1),this.currentAnimation=function(t,e,
1i){let n=(0,G.S)(t)?t:eo(t);return n.start(nS("",n,e,i)),n.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&sd(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||H();let e=nI(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=nI(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}rR(e,i),e0(e,r),nN(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rY),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;
1return 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&&rZ("z",t,n,this.animationValues);for(let e=0;e<rG.length;e++)rZ(`rotate${rG[e]}`,t,n,this.animationValues),rZ(`skew${rG[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()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=ia(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=ia(e?.pointerEvents)||""),this.hasProjected&&!eX(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let r=n.animationValues||n.latestValues;this.applyTransformsToTarget();let s=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,pathRotation:r,rotateX:s,rotateY:o,skewX:a,skewY:l}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotate(${r}deg) `),s&&(n+=`rotateX(${s}deg) `),o&&(n+=`rotateY(${o}deg) `),a&&(n+=`skewX(${a}deg) `),l&&(n+=`skewY(${l}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&&(s=i(r,s)),t.transform=s;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,n.animationValues?t.opacity=n===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,eI){if(void 0===r[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=eI[e],l="none"===s?r[e]:i(r[e],n);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?ia(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(r3),this.root.sharedNodes.clear()}}}function rJ(t){t.updateLayout()}function r0(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;if("size"===r)nO(t=>{let n=s?e.measuredBox[t]:e.layoutBox[t],r=nI(n);n.min=i[t].min,n.max=n.min+r});else if("x"===r||"y"===r){let t="x"===r?"y":"x";rV(s?e.measuredBox[t]:e.layoutBox[t],i[t])}else sd(r,e.layoutBox,i)&&nO(n=>{let r=s?e.measuredBox[n]:e.layoutBox[n],o=nI(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=X();nN(o,i,e.layoutBox);let a=X();s?nN(a,t.applyTransform(n,!0),e.measuredBox):nN(a,i,e.layoutBox);let l=!rU(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=t.options.layoutAnchor||void 0,a=H();nz(a,e.layoutBox,r.layoutBox,o);let l=H();nz(l,i,s.layoutBox,o),r$(a,l)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,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 r1(t){rb.value&&rH.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function r2(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function r5(t){t.clearSnapshot()}function r3(t){t.clearMeasurements()}function r6(t){t.isLayoutDirty=!0,t.updateLayout()}function r4(t){t.isLayoutDirty=!1}function r9(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function r7(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function r8(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function st(t){t.resolveTargetDelta()}function se(t){t.calcProjection()}function si(t){t.resetSkewAndRotation()}function sn(t){t.removeLeadSnapshot()}function sr(t,e,i){t.translate=eO(e.translate,0,i),t.scale=eO(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function ss(t,e,i,n){t.min=eO(e.min,i.min,n),t.max=eO(e.max,i.max,n)}function so(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let sa={duration:.45,ease:[.4,0,.1,1]},sl=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),su=sl("applewebkit/")&&!sl("chrome/")?Math.round:tT;function sh(t){t.min=su(t.min),t.max=su(t.max)}function sd(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(rz(e)-rz(i)))}function sc(t){return t!==t.root&&t.scroll?.wasRoot}let sp=rQ({attachResizeListener:(t,e)=>nX(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),sm={current:void 0},sf=rQ({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!sm.current){let t=new sp({});t.mount(window),t.setOptions({layoutScroll:!0}),sm.current=t}return sm.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function sy(t,e){let i=(0,nG.K)(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function sg(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&tC.postRender(()=>r(e,n6(e)))}class sv extends iS{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=sy(t,i);return n.forEach(t=>{let i,n=!1,s=!1,o=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},a=t=>{n=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),s&&(s=!1,o(t))},l=t=>{if("touch"!==t.pointerType){if(n){s=!0;return}o(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||nF.x||nF.y)return;s=!1;let o=e(t,n);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",l,r))},r),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",a,r)},r)}),s}(t,(t,e)=>(sg(this.node,e,"Start"),t=>sg(this.node,t,"End"))))}unmount(){}}class sx 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=ik(nX(this.node.current,"focus",()=>this.onFocus()),nX(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var sw=i(1402);let sb=(t,e)=>!!e&&(t===e||sb(t,e.parentElement)),sP=new WeakSet;function sS(t){return e=>{"Enter"===e.key&&t(e)}}function sT(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function sA(t){return n3(t)&&!(nF.x||nF.y)}let sE=new WeakSet;function sM(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&&tC.postRender(()=>r(e,n6(e)))}class sC extends iS{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;
1this.unmount=function(t,e,i={}){let[n,r,s]=sy(t,i),o=t=>{let n=t.currentTarget;if(!sA(t)||sE.has(t))return;sP.add(n),i.stopPropagation&&sE.add(t);let s=e(n,t),o={...r,capture:!0},a=(t,e)=>{window.removeEventListener("pointerup",l,o),window.removeEventListener("pointercancel",u,o),sP.has(n)&&sP.delete(n),sA(t)&&"function"==typeof s&&s(t,{success:e})},l=t=>{a(t,n===window||n===document||i.useGlobalTarget||sb(n,t.target))},u=t=>{a(t,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",u,o)};return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),(0,sw.s)(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=sS(()=>{if(sP.has(i))return;sT(i,"down");let t=sS(()=>{sT(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>sT(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,r)),n_.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(sM(this.node,e,"Start"),(t,{success:e})=>sM(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}let sk=new WeakMap,sV=new WeakMap,sR=t=>{let e=sk.get(t.target);e&&e(t)},sD=t=>{t.forEach(sR)},sL={some:0,all:1};class sj extends iS{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();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:sL[n]},o=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)};this.stopObserver=function(t,e,i){let n=function({root:t,...e}){let i=t||document;sV.has(i)||sV.set(i,{});let n=sV.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(sD,{root:t,...e})),n[r]}(e);return sk.set(t,i),n.observe(t),()=>{sk.delete(t),n.unobserve(t)}}(this.node.current,s,o)}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(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}let sB=function(t,e){if("undefined"==typeof Proxy)return iP;let i=new Map,n=(i,n)=>iP(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(r,s)=>"create"===s?n:(i.has(s)||i.set(s,iP(s,void 0,t,e)),i.get(s))})}({animation:{Feature:nL},exit:{Feature:nB},inView:{Feature:sj},tap:{Feature:sC},focus:{Feature:sx},hover:{Feature:sv},pan:{Feature:rf},drag:{Feature:rp,ProjectionNode:sf,MeasureLayout:rw},layout:{ProjectionNode:sf,MeasureLayout:rw}},(t,e)=>e.isSVG??e6(t)?new e$(e):new e2(e,{allowProjection:t!==e5.Fragment}))},9132:(t,e,i)=>{i.d(e,{J:()=>l,D:()=>a});var n=i(3182);let r=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","propagate","ignoreStrict","viewport"]);function s(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||r.has(t)}let o=t=>!s(t);function a(t){"function"==typeof t&&(o=e=>e.startsWith("on")?!s(e):t(e))}try{a(require("@emotion/is-prop-valid").default)}catch{}function l(t,e,i){let r={};for(let a in t)("values"!==a||"object"!=typeof t.values)&&!(0,n.S)(t[a])&&(o(a)||!0===i&&s(a)||!e&&!s(a)||t.draggable&&a.startsWith("onDrag"))&&(r[a]=t[a]);return r}},9686:(t,e,i)=>{i.d(e,{t:()=>n});let n=(0,i(2115).createContext)(null)}}]);

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.