1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22173,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={assign:function(){return l},searchParamsToUrlQuery:function(){return s},urlQueryToSearchParams:function(){return a}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});function s(t){let e={};for(let[i,r]of t.entries()){let t=e[i];void 0===t?e[i]=r:Array.isArray(t)?t.push(r):e[i]=[t,r]}return e}function o(t){return"string"==typeof t?t:("number"!=typeof t||isNaN(t))&&"boolean"!=typeof t?"":String(t)}function a(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,o(t));else e.set(i,o(r));return e}function l(t,...e){for(let i of e){for(let e of i.keys())t.delete(e);for(let[e,r]of i.entries())t.append(e,r)}return t}},48077,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={formatUrl:function(){return a},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});let s=t.r(44066)._(t.r(22173)),o=/https?|ftp|gopher|file/;function a(t){let{auth:e,hostname:i}=t,r=t.protocol||"",n=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(s.urlQueryToSearchParams(l)));let h=t.search||l&&`?${l}`||"";return r&&!r.endsWith(":")&&(r+=":"),t.slashes||(!r||o.test(r))&&!1!==u?(u="//"+(u||""),n&&"/"!==n[0]&&(n="/"+n)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),h&&"?"!==h[0]&&(h="?"+h),n=n.replace(/[?#]/g,encodeURIComponent),h=h.replace("#","%23"),`${r}${u}${n}${h}${a}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(t){return a(t)}},36770,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"useMergedRef",{enumerable:!0,get:function(){return n}});let r=t.r(44440);function n(t,e){let i=(0,r.useRef)(null),n=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let t=i.current;t&&(i.current=null,t());let e=n.current;e&&(n.current=null,e())}else t&&(i.current=s(t,r)),e&&(n.current=s(e,r))},[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 i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},98334,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={DecodeError:function(){return v},MiddlewareNotFoundError:function(){return P},MissingStaticPage:function(){return b},NormalizeError:function(){return y},PageNotFoundError:function(){return x},SP:function(){return f},ST:function(){return g},WEB_VITALS:function(){return s},execOnce:function(){return o},getDisplayName:function(){return c},getLocationOrigin:function(){return u},getURL:function(){return h},isAbsoluteUrl:function(){return l},isResSent:function(){return d},loadGetInitialProps:function(){return m},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return w}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});let s=["CLS","FCP","FID","INP","LCP","TTFB"];function o(t){let e,i=!1;return(...r)=>(i||(i=!0,e=t(...r)),e)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=t=>a.test(t);function u(){let{protocol:t,hostname:e,port:i}=window.location;return`${t}//${e}${i?":"+i:""}`}function h(){let{href:t}=window.location,e=u();return t.substring(e.length)}function c(t){return"string"==typeof t?t:t.displayName||t.name||"Unknown"}function d(t){return t.finished||t.headersSent}function p(t){let e=t.split("?");return e[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(e[1]?`?${e.slice(1).join("?")}`:"")}async function m(t,e){let i=e.res||e.ctx&&e.ctx.res;if(!t.getInitialProps)return e.ctx&&e.Component?{pageProps:await m(e.Component,e.ctx)}:{};let r=await t.getInitialProps(e);if(i&&d(i))return r;if(!r)throw Object.defineProperty(Error(`"${c(t)}.getInitialProps()" should resolve to an object. But found "${r}
1" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return r}let f="u">typeof performance,g=f&&["mark","measure","getEntriesByName"].every(t=>"function"==typeof performance[t]);class v extends Error{}class y extends Error{}class x extends Error{constructor(t){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${t}`}}class b extends Error{constructor(t,e){super(),this.message=`Failed to load static file for page: ${t} ${e}`}}class P extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(t){return JSON.stringify({message:t.message,stack:t.stack})}},32192,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"isLocalURL",{enumerable:!0,get:function(){return s}});let r=t.r(98334),n=t.r(32957);function s(t){if(!(0,r.isAbsoluteUrl)(t))return!0;try{let e=(0,r.getLocationOrigin)(),i=new URL(t,e);return i.origin===e&&(0,n.hasBasePath)(i.pathname)}catch(t){return!1}}},92364,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"errorOnce",{enumerable:!0,get:function(){return r}});let r=t=>{}},70065,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={default:function(){return v},useLinkStatus:function(){return x}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});let s=t.r(44066),o=t.r(87433),a=s._(t.r(44440)),l=t.r(48077),u=t.r(31270),h=t.r(36770),c=t.r(98334),d=t.r(39468);t.r(45694);let p=t.r(49629),m=t.r(32192),f=t.r(95130);function g(t){return"string"==typeof t?t:(0,l.formatUrl)(t)}function v(e){var i;let r,n,s,[l,v]=(0,a.useOptimistic)(p.IDLE_LINK_STATUS),x=(0,a.useRef)(null),{href:b,as:P,children:w,prefetch:T=null,passHref:S,replace:A,shallow:E,scroll:M,onClick:C,onMouseEnter:V,onTouchStart:k,legacyBehavior:j=!1,onNavigate:R,ref:D,unstable_dynamicOnHover:L,...F}=e;r=w,j&&("string"==typeof r||"number"==typeof r)&&(r=(0,o.jsx)("a",{children:r}));let O=a.default.useContext(u.AppRouterContext),B=!1!==T,N=!1!==T?null===(i=T)||"auto"===i?f.FetchStrategy.PPR:f.FetchStrategy.Full:f.FetchStrategy.PPR,{href:U,as:I}=a.default.useMemo(()=>{let t=g(b);return{href:t,as:P?g(P):t}},[b,P]);if(j){if(r?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});n=a.default.Children.only(r)}let $=j?n&&"object"==typeof n&&n.ref:D,W=a.default.useCallback(t=>(null!==O&&(x.current=(0,p.mountLinkInstance)(t,U,O,N,B,v)),()=>{x.current&&((0,p.unmountLinkForCurrentNavigation)(x.current),x.current=null),(0,p.unmountPrefetchableInstance)(t)}),[B,U,O,N,v]),_={ref:(0,h.useMergedRef)(W,$),onClick(e){j||"function"!=typeof C||C(e),j&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),!O||e.defaultPrevented||function(e,i,r,n,s,o,l){if("u">typeof window){let u,{nodeName:h}=e.currentTarget;if("A"===h.toUpperCase()&&((u=e.currentTarget.getAttribute("target"))&&"_self"!==u||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)||e.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(i)){s&&(e.preventDefault(),location.replace(i));return}if(e.preventDefault(),l){let t=!1;if(l({preventDefault:()=>{t=!0}}),t)return}let{dispatchNavigateAction:c}=t.r(70701);a.default.startTransition(()=>{c(r||i,s?"replace":"push",o??!0,n.current)})}}(e,U,I,x,A,M,R)},onMouseEnter(t){j||"function"!=typeof V||V(t),j&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(t),O&&B&&(0,p.onNavigationIntent)(t.currentTarget,!0===L)},onTouchStart:function(t){j||"function"!=typeof k||k(t),j&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(t),O&&B&&(0,p.onNavigationIntent)(t.currentTarget,!0===L)}};return(0,c.isAbsoluteUrl)(I)?_.href=I:j&&!S&&("a"!==n.type||"href"in n.props)||(_.href=(0,d.addBasePath)(I)),s=j?a.default.cloneElement(n,_):(0,o.jsx)("a",{...F,..._,children:r}),(0,o.jsx)(y.Provider,{value:l,children:s})}t.r(92364);let y=(0,a.createContext)(p.IDLE_LINK_STATUS),x=()=>(0,a.useContext)(y);("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esMo
1dule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},31763,t=>{"use strict";var e=t.i(44440);let i=(...t)=>t.filter((t,e,i)=>!!t&&""!==t.trim()&&i.indexOf(t)===e).join(" ").trim(),r=t=>{let e=t.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,e,i)=>i?i.toUpperCase():e.toLowerCase());return e.charAt(0).toUpperCase()+e.slice(1)};var n={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=(0,e.forwardRef)(({color:t="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:a="",children:l,iconNode:u,...h},c)=>(0,e.createElement)("svg",{ref:c,...n,width:r,height:r,stroke:t,strokeWidth:o?24*Number(s)/Number(r):s,className:i("lucide",a),...!l&&!(t=>{for(let e in t)if(e.startsWith("aria-")||"role"===e||"title"===e)return!0;return!1})(h)&&{"aria-hidden":"true"},...h},[...u.map(([t,i])=>(0,e.createElement)(t,i)),...Array.isArray(l)?l:[l]])),o=(t,n)=>{let o=(0,e.forwardRef)(({className:o,...a},l)=>(0,e.createElement)(s,{ref:l,iconNode:n,className:i(`lucide-${r(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${t}`,o),...a}));return o.displayName=r(t),o};t.s(["default",()=>o],31763)},13293,t=>{"use strict";var e=t.i(87433),i=t.i(44440),r=t.i(70065),n=t.i(31763);let s=(0,n.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]),o=(0,n.default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),a=[{name:"Platform",href:"/#platform"},{name:"For Talent",href:"/#talent"},{name:"Compliance",href:"/#compliance"},{name:"Testimonials",href:"/#testimonials"},{name:"Press",href:"/press"},{name:"Safety",href:"/safety"},{name:"About",href:"/about"}];function l(){let[t,n]=(0,i.useState)(!1);return(0,e.jsxs)("header",{className:"fixed top-0 left-0 right-0 z-50 bg-background/80 backdrop-blur-md border-b border-border",children:[(0,e.jsxs)("nav",{className:"mx-auto flex max-w-7xl items-center justify-between px-6 py-4 lg:px-8",children:[(0,e.jsx)("div",{className:"flex lg:flex-1",children:(0,e.jsx)(r.default,{href:"/",className:"-m-1.5 p-1.5",children:(0,e.jsxs)("span",{className:"text-2xl font-semibold tracking-tight text-foreground",children:["Talk2MeTwins",(0,e.jsx)("sup",{className:"text-sm",children:"â¢"}),(0,e.jsx)("span",{className:"text-accent",children:"."})]})})}),(0,e.jsxs)("div",{className:"flex items-center gap-2 lg:hidden",children:[(0,e.jsx)("a",{href:"https://talk2mebuttons.com",target:"_blank",rel:"noopener noreferrer",className:"rounded-full bg-accent px-3 py-1.5 text-xs font-semibold text-accent-foreground shadow-md hover:opacity-90 transition-opacity sm:px-4 sm:py-2 sm:text-sm",children:"Get your own Talk2Me button"}),(0,e.jsxs)("button",{type:"button",className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-foreground",onClick:()=>n(!t),children:[(0,e.jsx)("span",{className:"sr-only",children:t?"Close menu":"Open main menu"}),t?(0,e.jsx)(o,{className:"h-6 w-6","aria-hidden":"true"}):(0,e.jsx)(s,{className:"h-6 w-6","aria-hidden":"true"})]})]}),(0,e.jsxs)("div",{className:"hidden lg:flex lg:items-center lg:gap-x-10",children:[a.map(t=>(0,e.jsx)(r.default,{href:t.href,className:"text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",children:t.name},t.name)),(0,e.jsx)("a",{href:"https://talk2mebuttons.com",target:"_blank",rel:"noopener noreferrer",className:"rounded-full bg-accent px-5 py-2 text-sm font-semibold text-accent-foreground shadow-md hover:opacity-90 transition-opacity",children:"Get your own Talk2Me button"})]})]}),(0,e.jsx)("div",{className:`lg:hidden absolute top-full right-6 w-48 bg-background border border-border rounded-lg shadow-lg transform transition-all duration-300 ease-in-out origin-top-right ${t?"scale-100 opacity-100":"scale-95 opacity-0 pointer-events-none"}`,children:(0,e.jsx)("div",{className:"py-2",children:a.map(t=>(0,e.jsx)(r.default,{href:t.href,className:"block px-4 py-2 text-sm font-medium text-foreground hover:bg-secondary transition-colors",onClick:()=>n(!1),children:t.name}
1,t.name))})}),t&&(0,e.jsx)("div",{className:"lg:hidden fixed inset-0 bg-black/20 z-[-1]",onClick:()=>n(!1)})]})}t.s(["Header",()=>l],13293)},94986,t=>{"use strict";let e,i,r;function n(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}t.i(17141);let s=t=>Array.isArray(t);function o(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let r=0;r<i;r++)if(e[r]!==t[r])return!1;return!0}function a(t){return"string"==typeof t||Array.isArray(t)}function l(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function u(t,e,i,r){if("function"==typeof e){let[n,s]=l(r);e=e(void 0!==i?i:t.custom,n,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[n,s]=l(r);e=e(void 0!==i?i:t.custom,n,s)}return e}function h(t,e,i){let r=t.getProps();return u(r,e,void 0!==i?i:r.custom,t)}let c=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],d=["initial",...c],p=t=>t;function m(t){let e;return()=>(void 0===e&&(e=t()),e)}let f=(t,e,i)=>{let r=e-t;return 0===r?1:(i-t)/r},g=t=>1e3*t,v=m(()=>void 0!==window.ScrollTimeline);class y{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t,e){let i=this.animations.map(i=>v()&&i.attachTimeline?i.attachTimeline(t):"function"==typeof e?e(i):void 0);return()=>{i.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class x extends y{then(t,e){return Promise.all(this.animations).then(t).catch(e)}}function b(t,e){return t?t[e]||t.default||t:void 0}function P(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}function w(t){return"function"==typeof t}function T(t,e){t.timeline=e,t.onfinish=null}let S=t=>Array.isArray(t)&&"number"==typeof t[0],A,E=(i=m(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),()=>{var t;return null!=(t=A)?t:i()}),M=(t,e,i=10)=>{let r="",n=Math.max(Math.round(e/i),2);for(let e=0;e<n;e++)r+=t(f(0,n-1,e))+", ";return`linear(${r.substring(0,r.length-2)})`},C=([t,e,i,r])=>`cubic-bezier(${t}, ${e}, ${i}, ${r})`,V={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:C([0,.65,.55,1]),circOut:C([.55,0,1,.45]),backIn:C([.31,.01,.66,-.59]),backOut:C([.33,1.53,.69,.99])},k={x:!1,y:!1};function j(t,e){let i=function(t,e,i){if(t instanceof Element)return[t];if("string"==typeof t){let e=document.querySelectorAll(t);return e?Array.from(e):[]}return Array.from(t)}(t),r=new AbortController;return[i,{passive:!0,...e,signal:r.signal},()=>r.abort()]}function R(t){return e=>{"touch"===e.pointerType||k.x||k.y||t(e)}}let D=(t,e)=>!!e&&(t===e||D(t,e.parentElement)),L=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,F=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),O=new WeakSet;function B(t){return e=>{"Enter"===e.key&&t(e)}}function N(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function U(t){return L(t)&&!(k.x||k.y)}let I=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],$=new Set(I),W=new Set(["width","height","top","left","right","bottom",...I]),_=t=>s(t)?t[t.length-1]||0:t,z=["read","resolveKeyframes","update","preRender","render","postRender"];function K(t,e){let i=!1,r=!0,n={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=z.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,r=!1,n=!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,n=!1,o=!1)=>{let a=o&&r?e:i;return n&&s.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),s.delete(t)},process:t=>{if(o=t,r){n=!0;return}r=!0,[e,i]=[i,e],e.forEach(a),e.clear(),r=!1,n&&(n=!1,l.process(t))}};return l}(s),t),{}),{read:a,resolveKeyframes:l,update:u,preRender:h,render:c,postRender:d}=o,p=()=>{let s=performance.now();i=!1,n.delta=r?1e3/60:Math.max(Math.min(s-n.timestamp,40),1),n.timestamp=s,n.isProcessing=!0,a.process(n),l.process(n),u.process(n),h.process(n),c.process(n),d.process(n),n.isProcessing=!1,i&&e&&(r=!1,t(p))};return{schedule:z.reduce((e,s)=>{let a=o[s];return e[s]=(e,s=!1,o=!1)=>(!i&&(i=!0,r=!0,n.isProcessing||t(p)),a.schedule(e,s,o)),e},{}),cancel:t=>{for(let e=0;e<z.length;e++)o[z[e]].cancel(t)},state:n,steps:o}}let{schedule:H,cancel:Y,state:X,steps:q}=K("u">typeof requestAnimationFrame?requestAnimationFrame:p,!0);function G(){e=void 0}let Z={now:()=>(void 0===e&&Z.set(X.isProcessing?X.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(G)}};function J(t,e){-1===t.indexOf(e)&&t.push(e)}function Q(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class tt{constructor(){this.subscriptions=[]}add(t){return J(this.subscriptions,t),()=>Q(this.subscriptions,t)}notify(t,e,i){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,i);else for(let n=0;n<r;n++){let r=this.subscriptions[n];r&&r(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class te{constructor(t,e={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=Z.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=Z.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 tt);let i=this.events[t].add(e);return"change"===t?()=>{i(),H.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return r&&r.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=Z.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ti(t,e){return new te(t,e)}let tr=t=>!!(t&&t.getVelocity);function tn(t,e){let i=t.getValue("willChange");if(tr(i)&&i.add)return i.add(e)}let ts=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),to="data-"+ts("framerAppearId"),ta=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function tl(t,e,i,r){return t===e&&i===r?p:n=>
10===n||1===n?n:ta(function(t,e,i,r,n){let s,o,a=0;do(s=ta(o=e+(i-e)/2,r,n)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12)return o}(n,0,1,t,i),e,r)}let tu=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,th=t=>e=>1-t(1-e),tc=tl(.33,1.53,.69,.99),td=th(tc),tp=tu(td),tm=t=>(t*=2)<1?.5*td(t):.5*(2-Math.pow(2,-10*(t-1))),tf=t=>1-Math.sin(Math.acos(t)),tg=th(tf),tv=tu(tf),ty=(t,e,i)=>i>e?e:i<t?t:i,tx={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},tb={...tx,transform:t=>ty(0,1,t)},tP={...tx,default:1},tw=t=>Math.round(1e5*t)/1e5,tT=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tS=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tA=(t,e)=>i=>!!("string"==typeof i&&tS.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tE=(t,e,i)=>r=>{if("string"!=typeof r)return r;let[n,s,o,a]=r.match(tT);return{[t]:parseFloat(n),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tM={...tx,transform:t=>Math.round(ty(0,255,t))},tC={test:tA("rgb","red"),parse:tE("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:r=1})=>"rgba("+tM.transform(t)+", "+tM.transform(e)+", "+tM.transform(i)+", "+tw(tb.transform(r))+")"},tV={test:tA("#"),parse:function(t){let e="",i="",r="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),r=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),r=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,r+=r,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(r,16),alpha:n?parseInt(n,16)/255:1}},transform:tC.transform},tk=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tj=tk("deg"),tR=tk("%"),tD=tk("px"),tL=tk("vh"),tF=tk("vw"),tO={...tR,parse:t=>tR.parse(t)/100,transform:t=>tR.transform(100*t)},tB={test:tA("hsl","hue"),parse:tE("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:r=1})=>"hsla("+Math.round(t)+", "+tR.transform(tw(e))+", "+tR.transform(tw(i))+", "+tw(tb.transform(r))+")"},tN={test:t=>tC.test(t)||tV.test(t)||tB.test(t),parse:t=>tC.test(t)?tC.parse(t):tB.test(t)?tB.parse(t):tV.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tC.transform(t):tB.transform(t)},tU=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tI="number",t$="color",tW=/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 t_(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]},n=[],s=0,o=e.replace(tW,t=>(tN.test(t)?(r.color.push(s),n.push(t$),i.push(tN.parse(t))):t.startsWith("var(")?(r.var.push(s),n.push("var"),i.push(t)):(r.number.push(s),n.push(tI),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:r,types:n}}function tz(t){return t_(t).values}function tK(t){let{split:e,types:i}=t_(t),r=e.length;return t=>{let n="";for(let s=0;s<r;s++)if(n+=e[s],void 0!==t[s]){let e=i[s];e===tI?n+=tw(t[s]):e===t$?n+=tN.transform(t[s]):n+=t[s]}return n}}let tH=t=>"number"==typeof t?0:t,tY={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null==(e=t.match(tT))?void 0:e.length)||0)+((null==(i=t.match(tU))?void 0:i.length)||0)>0},parse:tz,createTransformer:tK,getAnimatableNone:function(t){let e=tz(t);return tK(t)(e.map(tH))}},tX=new Set(["brightness","contrast","saturate","opacity"]);function tq(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=i.match(tT)||[];if(!r)return t;let n=i.replace(r,""),s=+!!tX.has(e);return r!==i&&(s*=100),e+"("+s+n+")"}let tG=/\b([a-z-]*)\(.*?\)/gu,tZ={...tY,getAnimatableNone:t=>{let e=t.match(tG);return e?e.map(tq).join(" "):t}},tJ={...tx,transform:Math.round},tQ={borderWidth:tD,borderTopWidth:tD,borderRightWidth:tD,borderBottomWidth:tD,borderLeftWidth:tD,borderRadius:tD,radius:tD,borderTopLeftRadius:tD,borderTopRightRadius:tD,borderBottomRightRadius:tD,borderBottomLeftRadius:tD,width:tD,maxWidth:tD,height:tD,maxHeight:tD,top:tD,right:tD,bottom:tD,left:tD,padding:tD,paddingTop:tD,paddingRight:tD,paddingBottom:tD,paddingLeft:tD,margin:tD,marginTop:tD,marginRight:tD,marginBottom:tD,marginLeft:tD,backgroundPositionX:tD,backgroundPositionY:tD,rotate:tj,rotateX:tj,rotateY:tj,rotateZ:tj,scale:tP,scaleX:tP,scaleY:tP,scaleZ:tP,skew:tj,skewX:tj,skewY:tj,distance:tD,translateX:tD,translateY:tD,translateZ:tD,x:tD,y:tD,z:tD,perspective:tD,transformPerspective:tD,opacity:tb,originX:tO,originY:tO,originZ:tD,zIndex:tJ,size:tD,fillOpacity:tb,strokeOpacity:tb,numOctaves:tJ},t0={...tQ,color:tN,backgroundColor:tN,outlineColor:tN,fill:tN,stroke:tN,borderColor:tN,borderTopColor:tN,borderRightColor:tN,borderBottomColor:tN,borderLeftColor:tN,filter:tZ,WebkitFilter:tZ},t1=t=>t0[t];function t2(t,e){let i=t1(t);return i!==tZ&&(i=tY),i.getAnimatableNone?i.getAnimatableNone(e):void 0}
1let t3=new Set(["auto","none","0"]),t5=t=>t===tx||t===tD,t4=(t,e)=>parseFloat(t.split(", ")[e]),t9=(t,e)=>(i,{transform:r})=>{if("none"===r||!r)return 0;let n=r.match(/^matrix3d\((.+)\)$/u);if(n)return t4(n[1],e);{let e=r.match(/^matrix\((.+)\)$/u);return e?t4(e[1],t):0}},t6=new Set(["x","y","z"]),t7=I.filter(t=>!t6.has(t)),t8={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:t9(4,13),y:t9(5,14)};t8.translateX=t8.x,t8.translateY=t8.y;let et=new Set,ee=!1,ei=!1;function er(){if(ei){let t=Array.from(et).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,r=(e=[],t7.forEach(i=>{let r=t.getValue(i);void 0!==r&&(e.push([i,r.get()]),r.set(+!!i.startsWith("scale")))}),e);r.length&&(i.set(t,r),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var r;null==(r=t.getValue(e))||r.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}ei=!1,ee=!1,et.forEach(t=>t.complete()),et.clear()}function en(){et.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ei=!0)})}class es{constructor(t,e,i,r,n,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=r,this.element=n,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(et.add(this),ee||(ee=!0,H.read(en),H.resolveKeyframes(er))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:r}=this;for(let n=0;n<t.length;n++)if(null===t[n])if(0===n){let n=null==r?void 0:r.get(),s=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){let r=i.readValue(e,s);null!=r&&(t[0]=r)}void 0===t[0]&&(t[0]=s),r&&void 0===n&&r.set(t[0])}else t[n]=t[n-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),et.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,et.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let eo=t=>e=>"string"==typeof e&&e.startsWith(t),ea=eo("--"),el=eo("var(--"),eu=t=>!!el(t)&&eh.test(t.split("/*")[0].trim()),eh=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ec=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ed=t=>e=>e.test(t),ep=[tx,tD,tR,tj,tF,tL,{test:t=>"auto"===t,parse:t=>t}],em=t=>ep.find(ed(t));class ef extends es{constructor(t,e,i,r,n){super(t,e,i,r,n,!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 r=t[i];if("string"==typeof r&&eu(r=r.trim())){let n=function t(e,i,r=1){p(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,s]=function(t){let e=ec.exec(t);if(!e)return[,];let[,i,r,n]=e;return[`--${null!=i?i:r}`,n]}(e);if(!n)return;let o=window.getComputedStyle(i).getPropertyValue(n);if(o){let t=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return eu(s)?t(s,i,r+1):s}(r,e.current);void 0!==n&&(t[i]=n),i===t.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!W.has(i)||2!==t.length)return;let[r,n]=t,s=em(r),o=em(n);if(s!==o)if(t5(s)&&t5(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)})(t[e])&&i.push(e);i.length&&function(t,e,i){let r,n=0;for(;n<t.length&&!r;){let e=t[n];"string"==typeof e&&!t3.has(e)&&t_(e).values.length&&(r=t[n]),n++}if(r&&i)for(let n of e)t[n]=t2(i,r)}(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=t8[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let r=e[e.length-1];void 0!==r&&t.getValue(i,r).jump(r,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:r}=this;if(!e||!e.current)return;let n=e.getValue(i);n&&n.jump(this.measuredOrigin,!1);let s=r.length-1,o=r[s];r[s]=t8[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null==(t=this.removedTransforms)?void 0:t.length)&&this.removedTransforms.forEac
1h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let eg=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tY.test(t)||"0"===t)&&!t.startsWith("url(")),ev=t=>null!==t;function ey(t,{repeat:e,repeatType:i="loop"},r){let n=t.filter(ev),s=e&&"loop"!==i&&e%2==1?0:n.length-1;return s&&void 0!==r?r:n[s]}class ex{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Z.now(),this.options={autoplay:t,delay:e,type:i,repeat:r,repeatDelay:n,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(en(),er()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=Z.now(),this.hasAttemptedResolve=!0;let{name:i,type:r,velocity:n,delay:s,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,i,r){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=eg(n,e),a=eg(s,e);return p(o===a,`You are trying to animate ${e} from "${n}" to "${s}". ${n} is not an animatable value - to enable this animation set ${n} to a value animatable to ${s} via the \`style\` property.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||w(i))&&r)}(t,i,r,n))if(s)this.options.duration=0;else{a&&a(ey(t,this.options,e)),o&&o(),this.resolveFinishedPromise();return}let u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}let eb=(t,e,i)=>t+(e-t)*i;function eP(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function ew(t,e){return i=>i>0?e:t}let eT=(t,e,i)=>{let r=t*t,n=i*(e*e-r)+r;return n<0?0:Math.sqrt(n)},eS=[tV,tC,tB];function eA(t){let e=eS.find(e=>e.test(t));if(p(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===tB&&(i=function({hue:t,saturation:e,lightness:i,alpha:r}){t/=360,i/=100;let n=0,s=0,o=0;if(e/=100){let r=i<.5?i*(1+e):i+e-i*e,a=2*i-r;n=eP(a,r,t+1/3),s=eP(a,r,t),o=eP(a,r,t-1/3)}else n=s=o=i;return{red:Math.round(255*n),green:Math.round(255*s),blue:Math.round(255*o),alpha:r}}(i)),i}let eE=(t,e)=>{let i=eA(t),r=eA(e);if(!i||!r)return ew(t,e);let n={...i};return t=>(n.red=eT(i.red,r.red,t),n.green=eT(i.green,r.green,t),n.blue=eT(i.blue,r.blue,t),n.alpha=eb(i.alpha,r.alpha,t),tC.transform(n))},eM=(t,e)=>i=>e(t(i)),eC=(...t)=>t.reduce(eM),eV=new Set(["none","hidden"]);function ek(t,e){return i=>eb(t,e,i)}function ej(t){return"number"==typeof t?ek:"string"==typeof t?eu(t)?ew:tN.test(t)?eE:eL:Array.isArray(t)?eR:"object"==typeof t?tN.test(t)?eE:eD:ew}function eR(t,e){let i=[...t],r=i.length,n=t.map((t,i)=>ej(t)(t,e[i]));return t=>{for(let e=0;e<r;e++)i[e]=n[e](t);return i}}function eD(t,e){let i={...t,...e},r={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(r[n]=ej(t[n])(t[n],e[n]));return t=>{for(let e in r)i[e]=r[e](t);return i}}let eL=(t,e)=>{let i=tY.createTransformer(e),r=t_(t),n=t_(e);if(!(r.indexes.var.length===n.indexes.var.length&&r.indexes.color.length===n.indexes.color.length&&r.indexes.number.length>=n.indexes.number.length))return p(!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.`),ew(t,e);if(eV.has(t)&&!n.values.length||eV.has(e)&&!r.values.length)return eV.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return eC(eR(function(t,e){var i;let r=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let o=e.types[s],a=t.indexes[o][n[o]],l=null!=(i=t.values[a])?i:0;r[s]=l,n[o]++}return r}(r,n),n.values),i)};function eF(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?eb(t,e,i):ej(t)(t,e)}function eO(t,e,i){var r,n;let s=Math.max(e-5,0);return r=i-t(s),(n=e-s)?1e3/n*r:0}let eB=.01,eN=2,eU=.005,eI=.5;function e$(t,e){return t*Math.sqrt(1-e*e)}let eW=["duration","bounce"],e_=["stiffness","damping","mass"];function ez(t,e){return e.some(e=>void 0!==t[e])}function eK(t=.3,e=.3){let i,r="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:n,restDelta:s}=r,o=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:h,mass:c,duration:d,velocity:m,isResolvedFromDuration:f}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!ez(t,e_)&&ez(t,eW))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),r=i*i,n=2*ty(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:1,stiffness:r,damping:n}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:r=1}){let n,s;p(t<=g(10),"Spring duration must be 10 seconds or less");let o=1-e;o=ty(.05,1,o),t=ty(.01,10,t/1e3),o<1?(n=e=>{let r=e*o,n=r*t;return .001-(r-i)/e$(e,o)*Math.exp(-n)},s=e=>{let r=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-r),l=e$(Math.pow(e,2),o);return(r*i+i-s)*a*(-n(e)+.001>0?-1:1)/l}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));
1let a=function(t,e,i){let r=i;for(let i=1;i<12;i++)r-=t(r)/e(r);return r}(n,s,5/t);if(t=g(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*r;return{stiffness:e,damping:2*o*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...r,velocity:-((r.velocity||0)/1e3)}),v=m||0,y=h/(2*Math.sqrt(u*c)),x=a-o,b=Math.sqrt(u/c)/1e3,w=5>Math.abs(x);if(n||(n=w?eB:eN),s||(s=w?eU:eI),y<1){let t=e$(b,y);i=e=>a-Math.exp(-y*b*e)*((v+y*b*x)/t*Math.sin(t*e)+x*Math.cos(t*e))}else if(1===y)i=t=>a-Math.exp(-b*t)*(x+(v+b*x)*t);else{let t=b*Math.sqrt(y*y-1);i=e=>{let i=Math.exp(-y*b*e),r=Math.min(t*e,300);return a-i*((v+y*b*x)*Math.sinh(r)+t*x*Math.cosh(r))/t}}let T={calculatedDuration:f&&d||null,next:t=>{let e=i(t);if(f)l.done=t>=d;else{let r=0;y<1&&(r=0===t?g(v):eO(i,t,e));let o=Math.abs(a-e)<=s;l.done=Math.abs(r)<=n&&o}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(P(T),2e4),e=M(e=>T.next(t*e).value,t,30);return t+"ms "+e}};return T}function eH({keyframes:t,velocity:e=0,power:i=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,v=void 0===o?g:o(g);v!==g&&(f=v-p);let y=t=>-f*Math.exp(-t/r),x=t=>v+y(t),b=t=>{let e=y(t),i=x(t);m.done=Math.abs(e)<=u,m.value=m.done?v:i},P=t=>{let e;if(e=m.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;c=t,d=eK({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:eO(x,t,m.value),damping:n,stiffness:s,restDelta:u,restSpeed:h})}};return P(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,b(t),P(t)),void 0!==c&&t>=c)?d.next(t-c):(e||b(t),m)}}}let eY=tl(.42,0,1,1),eX=tl(0,0,.58,1),eq=tl(.42,0,.58,1),eG={linear:p,easeIn:eY,easeInOut:eq,easeOut:eX,circIn:tf,circInOut:tv,circOut:tg,backIn:td,backInOut:tp,backOut:tc,anticipate:tm},eZ=t=>{if(S(t)){p(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,r,n]=t;return tl(e,i,r,n)}return"string"==typeof t?(p(void 0!==eG[t],`Invalid easing type '${t}'`),eG[t]):t};function eJ({duration:t=300,keyframes:e,times:i,ease:r="easeInOut"}){var n;let s,o=Array.isArray(r)&&"number"!=typeof r[0]?r.map(eZ):eZ(r),a={done:!1,value:e[0]},l=function(t,e,{clamp:i=!0,ease:r,mixer:n}={}){let s=t.length;if(p(s===e.length,"Both input and output ranges must be the same length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let r=[],n=i||eF,s=t.length-1;for(let i=0;i<s;i++){let s=n(t[i],t[i+1]);e&&(s=eC(Array.isArray(e)?e[i]||p:e,s)),r.push(s)}return r}(e,r,n),l=a.length,u=i=>{if(o&&i<t[0])return e[0];let r=0;if(l>1)for(;r<t.length-2&&!(i<t[r+1]);r++);let n=f(t[r],t[r+1],i);return a[r](n)};return i?e=>u(ty(t[0],t[s-1],e)):u}((n=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let r=1;r<=e;r++){let n=f(0,e,r);t.push(eb(i,1,n))}}(s=[0],e.length-1),s),n.map(e=>e*t)),e,{ease:Array.isArray(o)?o:e.map(()=>o||eq).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=l(e),a.done=e>=t,a)}}let eQ=t=>{let e=({timestamp:e})=>t(e);return{start:()=>H.update(e,!0),stop:()=>Y(e),now:()=>X.isProcessing?X.timestamp:Z.now()}},e0={decay:eH,inertia:eH,tween:eJ,keyframes:eJ,spring:eK},e1=t=>t/100;class e2 extends ex{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};const{name:e,motionValue:i,element:r,keyframes:n}=this.options,s=(null==r?void 0:r.KeyframeResolver)||es,o=(t,e)=>this.onKeyframesResolved(t,e);this.resolver=new s(n,o,e,i,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i,{type:r="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:
1o,velocity:a=0}=this.options,l=w(r)?r:e0[r]||eJ;l!==eJ&&"number"!=typeof t[0]&&(e=eC(e1,eF(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===o&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=P(u));let{calculatedDuration:h}=u,c=h+s;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:h,resolvedDuration:c,totalDuration:c*(n+1)-s}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:r,generator:n,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return n.next(0);let{delay:c,repeat:d,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let g=this.currentTime-c*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=n;if(d){let t=Math.min(this.currentTime,u)/h,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/h)):"mirror"===p&&(x=s)),y=ty(0,1,i)*h}let b=v?{done:!1,value:a[0]}:x.next(y);o&&(b.value=o(b.value));let{done:P}=b;v||null===l||(P=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return w&&void 0!==r&&(b.value=ey(a,this.options,r)),f&&f(b.value),w&&this.finish(),b}get duration(){let{resolved:t}=this;return t?t.calculatedDuration/1e3:0}get time(){return this.currentTime/1e3}set time(t){t=g(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=this.currentTime/1e3)}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=eQ,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!=(t=this.currentTime)?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let e3=new Set(["opacity","clipPath","filter","transform"]),e5=m(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),e4={anticipate:tm,backInOut:tp,circInOut:tv};class e9 extends ex{constructor(t){super(t);const{name:e,motionValue:i,element:r,keyframes:n}=this.options;this.resolver=new ef(n,(t,e)=>this.onKeyframesResolved(t,e),e,i,r),this.resolver.scheduleResolve()}initPlayback(t,e){var i;let{duration:r=300,times:n,ease:s,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if("string"==typeof s&&E()&&s in e4&&(s=e4[s]),w((i=this.options).type)||"spring"===i.type||!function t(e){return!!("function"==typeof e&&E()||!e||"string"==typeof e&&(e in V||E())||S(e)||Array.isArray(e)&&e.every(t))}(i.ease)){let{onComplete:e,onUpdate:i,motionValue:a,element:l,...u}=this.options,h=function(t,e){let i=new e2({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:t[0]},n=[],s=0;for(;!r.done&&s<2e4;)n.push((r=i.sample(s)).value),s+=10;return{times:void 0,keyframes:n,duration:s-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),r=h.duration,n=h.times,s=h.ease,o="keyframes"}
1let h=function(t,e,i,{delay:r=0,duration:n=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=function t(e,i){if(e)return"function"==typeof e&&E()?M(e,i):S(e)?C(e):Array.isArray(e)?e.map(e=>t(e,i)||V.easeOut):V[e]}(a,n);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:r,duration:n,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"})}(a.owner.current,l,t,{...this.options,duration:r,times:n,ease:s});return h.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(T(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{let{onComplete:i}=this.options;a.set(ey(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:n,type:o,ease:s,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return e/1e3}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(e.currentTime||0)/1e3}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=g(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return p;let{animation:i}=e;T(i,t)}else this.pendingTimeline=t;return p}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:r,type:n,ease:s,times:o}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,h=new e2({...u,keyframes:i,duration:r,type:n,ease:s,times:o,isGenerator:!0}),c=g(this.time);t.setWithVelocity(h.sample(c-10).value,h.sample(c).value,10)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:i,repeatDelay:r,repeatType:n,damping:s,type:o}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return e5()&&i&&e3.has(i)&&!a&&!l&&!r&&"mirror"!==n&&0!==s&&"inertia"!==o}}let e6={type:"spring",stiffness:500,damping:25,restSpeed:10},e7={type:"keyframes",duration:.8},e8={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},it=(t,e,i,r={},n,s)=>o=>{let a=b(r,t)||{},l=a.delay||r.delay||0,{elapsed:u=0}=r;u-=g(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:n};!function({when:t,delay:e,delayChildren:i,staggerChildren:r,staggerDirection:n,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(a)&&(h={...h,...((t,{keyframes:e})=>e.length>2?e7:$.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:e6:e8)(t,h)}),h.duration&&(h.duration=g(h.duration)),h.repeatDelay&&(h.repeatDelay=g(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(h.duration=0,0===h.delay&&(c=!0)),c&&!s&&void 0!==e.get()){let t=ey(h.keyframes,a);if(void 0!==t)return H.update(()=>{h.onUpdate(t),h.onComplete()}),new x([])}return!s&&e9.supports(h)?new e9(h):new e2(h)};function ie(t,e,{delay:i=0,transitionOverride:r,type:n}={}){var s;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;r&&(o=r);let u=[],c=n&&t.animationState&&t.animationState.getState()[n];for(let e in l){let r=t.getValue(e,null!=(s=t.latestValues[e])?s:null),n=l[e];
1if(void 0===n||c&&function({protectedKeys:t,needsAnimating:e},i){let r=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,r}(c,e))continue;let a={delay:i,...b(o||{},e)},h=!1;if(window.MotionHandoffAnimation){let i=t.props[to];if(i){let t=window.MotionHandoffAnimation(i,e,H);null!==t&&(a.startTime=t,h=!0)}}tn(t,e),r.start(it(e,r,n,t.shouldReduceMotion&&W.has(e)?{type:!1}:a,t,h));let d=r.animation;d&&u.push(d)}return a&&Promise.all(u).then(()=>{H.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:r={},...n}=h(t,e)||{};for(let e in n={...n,...i}){let i=_(n[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,ti(i))}}(t,a)})}),u}function ii(t,e,i={}){var r;let n=h(t,e,"exit"===i.type?null==(r=t.presenceContext)?void 0:r.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let o=n?()=>Promise.all(ie(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:n=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,i=0,r=0,n=1,s){let o=[],a=(t.variantChildren.size-1)*r,l=1===n?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(ir).forEach((t,r)=>{t.notify("AnimationStart",e),o.push(ii(t,e,{...s,delay:i+l(r)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,n+r,o,a,i)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}function ir(t,e){return t.sortNodePosition(e)}let is=d.length,io=[...c].reverse(),ia=c.length;function il(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function iu(){return{animate:il(!0),whileInView:il(),whileHover:il(),whileTap:il(),whileDrag:il(),whileFocus:il(),exit:il()}}class ih{constructor(t){this.isMounted=!1,this.node=t}update(){}}let ic=0;function id(t,e,i,r={passive:!0}){return t.addEventListener(e,i,r),()=>t.removeEventListener(e,i)}function ip(t){return{point:{x:t.pageX,y:t.pageY}}}function im(t,e,i,r){return id(t,e,t=>L(t)&&i(t,ip(t)),r)}let ig=(t,e)=>Math.abs(t-e);class iv{constructor(t,e,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=ib(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(ig(t.x,e.x)**2+ig(t.y,e.y)**2)>=3);if(!r&&!n)return;let{point:s}=i,{timestamp:o}=X;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;r||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=iy(e,this.transformPagePoint),H.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:r,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=ib("pointercancel"===t.type?this.lastMoveEventInfo:iy(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),r&&r(t,s)},!L(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.contextWindow=r||window;const s=iy(ip(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=X;this.history=[{...o,timestamp:a}];const{onSessionStart:l}=e;l&&l(t,ib(s,this.history)),this.removeListeners=eC(im(this.contextWindow,"pointermove",this.handlePointerMove),im(this.contextWindow,"pointerup",this.handlePointerUp),im(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Y(this.updatePoint)}}function iy(t,e){return e?{point:e(t.point)}:t}function ix(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ib({point:t},e){return{point:t,delta:ix(t,iP(e)),offset:ix(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,r=null,n=iP(t);for(;i>=0&&(r=t[i],!(n.timestamp-r.timestamp>g(.1)));)i--;if(!r)return{x:0,y:0};let s=(n.timestamp-r.timestamp)/1e3;if(0===s)return{x:0,y:0};let o={x:(n.x-r.x)/s,y:(n.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function iP(t){return t[t.length-1]}function iw(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function iT(t){return t.max-t.min}function iS(t,e,i,r=.5){t.origin=r,t.originPoint=eb(e.min,e.max,t.origin),t.scale=iT(i)/iT(e),t.translate=eb(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 iA(t,e,i,r){iS(t.x,e.x,i.x,r?r.originX:void 0),iS(t.y,e.y,i.y,r?r.originY:void 0)}
1function iE(t,e,i){t.min=i.min+e.min,t.max=t.min+iT(e)}function iM(t,e,i){t.min=e.min-i.min,t.max=t.min+iT(e)}function iC(t,e,i){iM(t.x,e.x,i.x),iM(t.y,e.y,i.y)}function iV(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 ik(t,e){let i=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,r]=[r,i]),{min:i,max:r}}function ij(t,e,i){return{min:iR(t,e),max:iR(t,i)}}function iR(t,e){return"number"==typeof t?t:t[e]||0}let iD=()=>({translate:0,scale:1,origin:0,originPoint:0}),iL=()=>({x:iD(),y:iD()}),iF=()=>({min:0,max:0}),iO=()=>({x:iF(),y:iF()});function iB(t){return[t("x"),t("y")]}function iN({top:t,left:e,right:i,bottom:r}){return{x:{min:e,max:i},y:{min:t,max:r}}}function iU(t){return void 0===t||1===t}function iI({scale:t,scaleX:e,scaleY:i}){return!iU(t)||!iU(e)||!iU(i)}function i$(t){return iI(t)||iW(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function iW(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function i_(t,e,i,r,n){return void 0!==n&&(t=r+n*(t-r)),r+i*(t-r)+e}function iz(t,e=0,i=1,r,n){t.min=i_(t.min,e,i,r,n),t.max=i_(t.max,e,i,r,n)}function iK(t,{x:e,y:i}){iz(t.x,e.translate,e.scale,e.originPoint),iz(t.y,i.translate,i.scale,i.originPoint)}function iH(t,e){t.min=t.min+e,t.max=t.max+e}function iY(t,e,i,r,n=.5){let s=eb(t.min,t.max,n);iz(t,e,i,s,r)}function iX(t,e){iY(t.x,e.x,e.scaleX,e.scale,e.originX),iY(t.y,e.y,e.scaleY,e.scale,e.originY)}function iq(t,e){return iN(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}let iG=({current:t})=>t?t.ownerDocument.defaultView:null,iZ=new WeakMap;class iJ{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=iO(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let r=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(ip(t).point)},n=(t,e)=>{let{drag:i,dragPropagation:r,onDragStart:n}=this.getProps();if(i&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(k[t])return null;else return k[t]=!0,()=>{k[t]=!1};return k.x||k.y?null:(k.x=k.y=!0,()=>{k.x=k.y=!1})}(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iB(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tR.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[t];r&&(e=iT(r)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&H.postRender(()=>n(t,e)),tn(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},s=(t,e)=>{let{dragPropagation:i,dragDirectionLock:r,onDirectionLock:n,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(r&&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&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},o=(t,e)=>this.stop(t,e),a=()=>iB(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new iv(t,{onSessionStart:r,onStart:n,onMove:s,onSessionEnd:o,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:iG(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:r}=e;this.startAnimation(r);let{onDragEnd:n}=this.getProps();n&&H.postRender(()=>n(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:r}=this.getProps();if(!i||!iQ(t,r,this.currentDirection))return;let n=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},r){return void 0!==e&&t<e?t=r?eb(e,t,r.min):Math.max(t,e):void 0!==i&&t>i&&(t=r?eb(i,t,r.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),n.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,n=this.constraints;e&&iw(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(t,{top:e,left:i,bottom:r,right:n}){return{x:iV(t.x,i,n),y:iV(t.y,e,r)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:ij(t,"left","right"),y:ij(t,"top","bottom")}}(i),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&iB(t=>{var e,i;let n;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=r.layoutBox[t],i=this.constraints[t],n={},void 0!==i.min&&(n.min=i.min-e.min),void 0!==i.max&&(n.max=i.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iw(e))return!1;let r=e.current;p(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;
1let s=function(t,e,i){let r=iq(t,i),{scroll:n}=e;return n&&(iH(r.x,n.offset.x),iH(r.y,n.offset.y)),r}(r,n.root,this.visualElement.getTransformPagePoint()),o=(t=n.layout.layoutBox,{x:ik(t.x,s.x),y:ik(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=iN(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:r,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(iB(o=>{if(!iQ(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return tn(this.visualElement,t),i.start(it(t,i,0,e,this.visualElement,!1))}stopAnimation(){iB(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){iB(t=>{var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.pause()})}getAnimationState(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){iB(e=>{let{drag:i}=this.getProps();if(!iQ(e,i,this.currentDirection))return;let{projection:r}=this.visualElement,n=this.getAxisMotionValue(e);if(r&&r.layout){let{min:i,max:s}=r.layout.layoutBox[e];n.set(t[e]-eb(i,s,.5))}})}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 r={x:0,y:0};iB(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,n;let s,o,a,l=e.get();r[t]=(i={min:l,max:l},n=this.constraints[t],s=.5,o=iT(i),(a=iT(n))>o?s=f(n.min,n.max-o,i.min):o>a&&(s=f(i.min,i.max-a,n.min)),ty(0,1,s))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),iB(e=>{if(!iQ(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:s}=this.constraints[e];i.set(eb(n,s,r[e]))})}addListeners(){if(!this.visualElement.current)return;iZ.set(this.visualElement,this);let t=im(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();iw(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),H.read(e);let n=id(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(iB(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{n(),t(),r(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:r,dragConstraints:n,dragElastic:s,dragMomentum:o}}}function iQ(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let i0=t=>(e,i)=>{t&&H.postRender(()=>t(e,i))};var i1,i2,i3,i5=t.i(87433),i4=t.i(44440);let i9=(0,i4.createContext)(null),i6=(0,i4.createContext)({}),i7=(0,i4.createContext)({}),i8={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rt(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let re={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!tD.test(t))return t;else t=parseFloat(t);let i=rt(t,e.target.x),r=rt(t,e.target.y);return`${i}% ${r}%`}},ri={},{schedule:rr,cancel:rn}=K(queueMicrotask,!1);class rs extends i4.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:r}=this.props,{projection:n}=t;Object.assign(ri,ra),n&&(e.group&&e.group.add(n),i&&i.register&&r&&i.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),i8.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:r,isPresent:n}=this.props,s=i.projection;return s&&(s.isPresent=n,r||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?s.promote():s.relegate()||H.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),rr.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ro(t){let[e,i]=function(t=!0){let e=(0,i4.useContext)(i9);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:r,register:n}=e,s=(0,i4.useId)();(0,i4.useEffect)(()=>{t&&n(s)},[t]);let o=(0,i4.useCallback)(()=>t&&r&&r(s),[s,r,t]);return!i&&r?[!1,o]:[!0]}(),r=(0,i4.useContext)(i6);return(0,i5.jsx)(rs,{...t,layoutGroup:r,switchLayoutGroup:(0,i4.useContext)(i7),isPresent:e,safeToRemove:i})}let ra={borderRadius:{...re,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:re,borderTopRightRadius:re,borderBottomLeftRadius:re,borderBottomRightRadius:re,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let r=tY.parse(t);if(r.length>5)return t;let n=tY.createTransformer(t),s=+("number"!=typeof r[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;r[0+s]/=o,r[1+s]/=a;let l=eb(o,a,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),n(r)}}},rl=(t,e)=>t.depth-e.depth;class ru{constructor(){this.children=[],this.isDirty=!1}add(t){J(this.children,t),this.isDirty=!0}remove(t){Q(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rl),this.isDirty=!1,this.children.forEac
1h(t)}}function rh(t){let e=tr(t)?t.get():t;return e&&"object"==typeof e&&e.mix&&e.toValue?e.toValue():e}let rc=["TopLeft","TopRight","BottomLeft","BottomRight"],rd=rc.length,rp=t=>"string"==typeof t?parseFloat(t):t,rm=t=>"number"==typeof t||tD.test(t);function rf(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rg=ry(0,.5,tg),rv=ry(.5,.95,p);function ry(t,e,i){return r=>r<t?0:r>e?1:i(f(t,e,r))}function rx(t,e){t.min=e.min,t.max=e.max}function rb(t,e){rx(t.x,e.x),rx(t.y,e.y)}function rP(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function rw(t,e,i,r,n){return t-=e,t=r+1/i*(t-r),void 0!==n&&(t=r+1/n*(t-r)),t}function rT(t,e,[i,r,n],s,o){!function(t,e=0,i=1,r=.5,n,s=t,o=t){if(tR.test(e)&&(e=parseFloat(e),e=eb(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=eb(s.min,s.max,r);t===s&&(a-=e),t.min=rw(t.min,e,i,a,n),t.max=rw(t.max,e,i,a,n)}(t,e[i],e[r],e[n],e.scale,s,o)}let rS=["x","scaleX","originX"],rA=["y","scaleY","originY"];function rE(t,e,i,r){rT(t.x,e,rS,i?i.x:void 0,r?r.x:void 0),rT(t.y,e,rA,i?i.y:void 0,r?r.y:void 0)}function rM(t){return 0===t.translate&&1===t.scale}function rC(t){return rM(t.x)&&rM(t.y)}function rV(t,e){return t.min===e.min&&t.max===e.max}function rk(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rj(t,e){return rk(t.x,e.x)&&rk(t.y,e.y)}function rR(t){return iT(t.x)/iT(t.y)}function rD(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class rL{constructor(){this.members=[]}add(t){J(this.members,t),t.scheduleRender()}remove(t){if(Q(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:r}=t.options;!1===r&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let rF={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},rO="u">typeof window&&void 0!==window.MotionDebug,rB=["","X","Y","Z"],rN={visibility:"hidden"},rU=0;function rI(t,e,i,r){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),r&&(r[t]=0))}function r$({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(t={},i=null==e?void 0:e()){this.id=rU++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,rO&&(rF.totalNodes=rF.resolvedTargetDeltas=rF.recalculatedProjection=0),this.nodes.forEach(rz),this.nodes.forEach(rZ),this.nodes.forEach(rJ),this.nodes.forEach(rK),rO&&window.MotionDebug.record(rF)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new ru)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tt),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:r,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(n||r)&&(this.isLayoutDirty=!0),t){let i,r=()=>this.root.updateBlockedByResize=!1;t(e,()=>{let t,e;this.root.updateBlockedByResize=!0,i&&i(),t=Z.now(),e=({timestamp:i})=>{let n=i-t;n>=250&&(Y(e),r(n-250))},H.read(e,!0),i=()=>Y(e),i8.hasAnimatedSinceResize&&(i8.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(rG))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&s&&(r||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||s.getDefaultTransition()||r5,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!rj(this.targetLayout,r)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...b(n,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||rG(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Y(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(rQ),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 r=i.props[to];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",H,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rY);return}this.isUpdating||this.nodes.forEach(rX),this.isUpdating=!1,this.nodes.forEach(rq),this.nodes.forEach(rW),this.nodes.forEach(r_),this.clearAllSnapshots();let t=Z.now();X.delta=ty(0,1e3/60,t-X.timestamp),X.timestamp=t,X.isProcessing=!0,q.update.process(X),q.preRender.process(X),q.render.process(X),X.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,rr.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rH),this.sharedNodes.forEach(r0)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,H.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){H.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=iO(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=r(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(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!rC(this.projectionDelta),i=this.getTransformTemplate(),r=i?i(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;t&&(e||i$(this.latestValues)||s)&&(n(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),r=this.removeElementScroll(i);return t&&(r=this.removeTransform(r)),r6((e=r).x),r6(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return iO();let i=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(r8))){let{scroll:t}=this.root;t&&(iH(i.x,t.offset.x),iH(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=iO();if(rb(i,t),null==(e=this.scroll)?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let r=this.path[e],{scroll:n,options:s}=r;r!==this.root&&n&&s.layoutScroll&&(n.wasRoot&&rb(i,t),iH(i.x,n.offset.x),iH(i.y,n.offset.y))}return i}applyTransform(t,e=!1){let i=iO();rb(i,t);for(let t=0;t<this.path.length;t++){let r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&iX(i,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),i$(r.latestValues)&&iX(i,r.latestValues)}return i$(this.latestValues)&&iX(i,this.latestValues),i}removeTransform(t){let e=iO();rb(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!i$(i.latestValues))continue;iI(i.latestValues)&&i.updateSnapshot();let r=iO();rb(r,i.measurePageBox()),rE(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,r)}return i$(this.latestValues)&&rE(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!==X.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,r,n;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isS
1haredProjectionDirty);let o=!!this.resumingFrom||this!==s;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=X.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iO(),this.relativeTargetOrigin=iO(),iC(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),rb(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=iO(),this.targetWithTransforms=iO()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,r=this.relativeTarget,n=this.relativeParent.target,iE(i.x,r.x,n.x),iE(i.y,r.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rb(this.target,this.layout.layoutBox),iK(this.target,this.targetDelta)):rb(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iO(),this.relativeTargetOrigin=iO(),iC(this.relativeTargetOrigin,this.target,t.target),rb(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}rO&&rF.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||iI(this.parent.latestValues)||iW(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(r=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===X.timestamp&&(r=!1),r)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;rb(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,r=!1){let n,s,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(n=i[a]).projectionDelta;let{visualElement:o}=n.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&iX(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,iK(t,s)),r&&i$(n.latestValues)&&iX(t,n.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=iO());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rP(this.prevProjectionDelta.x,this.projectionDelta.x),rP(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),iA(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&rD(this.projectionDelta.x,this.prevProjectionDelta.x)&&rD(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),rO&&rF.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null==(e=this.options.visualElement)||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=iL(),this.projectionDelta=iL(),this.projectionDeltaWithTransform=iL()}setAnimationOrigin(t,e=!1){let i,r=this.snapshot,n=r?r.latestValues:{},s={...this.latestValues},o=iL();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=iO(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&
1!0===this.options.crossfade&&!this.path.some(r3));this.animationProgress=0,this.mixTargetDelta=e=>{let r=e/1e3;if(r1(o.x,t.x,r),r1(o.y,t.y,r),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,m,f,g;iC(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,g=r,r2(p.x,m.x,f.x,g),r2(p.y,m.y,f.y,g),i&&(u=this.relativeTarget,d=i,rV(u.x,d.x)&&rV(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=iO()),rb(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,r,n,s){n?(t.opacity=eb(0,void 0!==i.opacity?i.opacity:1,rg(r)),t.opacityExit=eb(void 0!==e.opacity?e.opacity:1,0,rv(r))):s&&(t.opacity=eb(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,r));for(let n=0;n<rd;n++){let s=`border${rc[n]}Radius`,o=rf(e,s),a=rf(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||rm(o)===rm(a)?(t[s]=Math.max(eb(rp(o),rp(a),r),0),(tR.test(a)||tR.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=eb(e.rotate||0,i.rotate||0,r))}(s,n,this.latestValues,r,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Y(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=H.update(()=>{var e;let i;i8.hasAnimatedSinceResize=!0,this.currentAnimation=(e={...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}},(i=tr(0)?0:ti(0)).start(it("",i,1e3,e)),i.animation),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:r,latestValues:n}=t;if(e&&i&&r){if(this!==t&&this.layout&&r&&r7(this.options.animationType,this.layout.layoutBox,r.layoutBox)){i=this.target||iO();let e=iT(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let r=iT(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+r}rb(e,i),iX(e,n),iA(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rL),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let r=this.getStack();r&&r.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 r={};i.z&&rI("z",t,r,this.animationValues);for(let e=0;e<rB.length;e++)rI(`rotate${rB[e]}`,t,r,this.animationValues),rI(`skew${rB[e]}`,t,r,this.animationValues);for(let e in t.render(),r)t.setStaticValue(e,r[e]),this.animationValues&&(this.animationValues[e]=r[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return rN;let r={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=rh(null==t?void 0:t.pointerEvents)||"",r.transform=n?n(this.latestValues,""):"none",r;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=rh(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!i$(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1),e}let o=s.animationValues||s.latestValues;
1this.applyTransformsToTarget(),r.transform=function(t,e,i){let r="",n=t.x.translate/e.x,s=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((n||s||o)&&(r=`translate3d(${n}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:n,rotateY:s,skewX:o,skewY:a}=i;t&&(r=`perspective(${t}px) ${r}`),e&&(r+=`rotate(${e}deg) `),n&&(r+=`rotateX(${n}deg) `),s&&(r+=`rotateY(${s}deg) `),o&&(r+=`skewX(${o}deg) `),a&&(r+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),n&&(r.transform=n(o,r.transform));let{x:a,y:l}=this.projectionDelta;for(let t in r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?r.opacity=s===this?null!=(i=null!=(e=o.opacity)?e:this.latestValues.opacity)?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:r.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,ri){if(void 0===o[t])continue;let{correct:e,applyTo:i}=ri[t],n="none"===r.transform?o[t]:e(o[t],s);if(i){let t=i.length;for(let e=0;e<t;e++)r[i[e]]=n}else r[t]=n}return this.options.layoutId&&(r.pointerEvents=s===this?rh(null==t?void 0:t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(rY),this.root.sharedNodes.clear()}}}function rW(t){t.updateLayout()}function r_(t){var e;let i=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:r}=t.layout,{animationType:n}=t.options,s=i.source!==t.layout.source;"size"===n?iB(t=>{let r=s?i.measuredBox[t]:i.layoutBox[t],n=iT(r);r.min=e[t].min,r.max=r.min+n}):r7(n,i.layoutBox,e)&&iB(r=>{let n=s?i.measuredBox[r]:i.layoutBox[r],o=iT(e[r]);n.max=n.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+o)});let o=iL();iA(o,e,i.layoutBox);let a=iL();s?iA(a,t.applyTransform(r,!0),i.measuredBox):iA(a,e,i.layoutBox);let l=!rC(o),u=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:n,layout:s}=r;if(n&&s){let o=iO();iC(o,i.layoutBox,n.layoutBox);let a=iO();iC(a,e,s.layoutBox),rj(o,a)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function rz(t){rO&&rF.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function rK(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function rH(t){t.clearSnapshot()}function rY(t){t.clearMeasurements()}function rX(t){t.isLayoutDirty=!1}function rq(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function rG(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function rZ(t){t.resolveTargetDelta()}function rJ(t){t.calcProjection()}function rQ(t){t.resetSkewAndRotation()}function r0(t){t.removeLeadSnapshot()}function r1(t,e,i){t.translate=eb(e.translate,0,i),t.scale=eb(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function r2(t,e,i,r){t.min=eb(e.min,i.min,r),t.max=eb(e.max,i.max,r)}function r3(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let r5={duration:.45,ease:[.4,0,.1,1]},r4=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),r9=r4("applewebkit/")&&!r4("chrome/")?Math.round:p;function r6(t){t.min=r9(t.min),t.max=r9(t.max)}function r7(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(rR(e)-rR(i)))}function r8(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}let nt=r$({attachResizeListener:(t,e)=>id(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ne={current:void 0},ni=r$({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ne.current){let t=new nt({});t.mount(window),t.setOptions({layoutScroll:!0}),ne.current=t}return ne.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function nr(t,e,i){let{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=r["onHover"+i];n&&H.postRender(()=>n(e,ip(e)))}
1function nn(t,e,i){let{props:r}=t;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=r["onTap"+("End"===i?"":i)];n&&H.postRender(()=>n(e,ip(e)))}let ns=new WeakMap,no=new WeakMap,na=t=>{let e=ns.get(t.target);e&&e(t)},nl=t=>{t.forEach(na)},nu={some:0,all:1},nh=(0,i4.createContext)({strict:!1}),nc=(0,i4.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),nd=(0,i4.createContext)({});function np(t){return n(t.animate)||d.some(e=>a(t[e]))}function nm(t){return!!(np(t)||t.variants)}function nf(t){return Array.isArray(t)?t.join(" "):t}let ng="u">typeof window,nv={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"]},ny={};for(let t in nv)ny[t]={isEnabled:e=>nv[t].some(t=>!!e[t])};let nx=Symbol.for("motionComponentSymbol"),nb=ng?i4.useLayoutEffect:i4.useEffect,nP=["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 nw(t){if("string"!=typeof t||t.includes("-"));else if(nP.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let nT=t=>(e,i)=>{let r,s=(0,i4.useContext)(nd),o=(0,i4.useContext)(i9),a=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:i},r,s,o){let a={latestValues:function(t,e,i,r){let s={},o=r(t,{});for(let t in o)s[t]=rh(o[t]);let{initial:a,animate:l}=t,h=np(t),c=nm(t);e&&c&&!h&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));let d=!!i&&!1===i.initial,p=(d=d||!1===a)?l:a;if(p&&"boolean"!=typeof p&&!n(p)){let e=Array.isArray(p)?p:[p];for(let i=0;i<e.length;i++){let r=u(t,e[i]);if(r){let{transitionEnd:t,transition:e,...i}=r;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=d?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(r,s,o,t),renderState:e()};return i&&(a.onMount=t=>i({props:r,current:t,...a}),a.onUpdate=t=>i(t)),a})(t,e,s,o);return i?a():(null===(r=(0,i4.useRef)(null)).current&&(r.current=a()),r.current)},nS=(t,e)=>e&&"number"==typeof t?e.transform(t):t,nA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nE=I.length;function nM(t,e,i){let{style:r,vars:n,transformOrigin:s}=t,o=!1,a=!1;for(let t in e){let i=e[t];if($.has(t)){o=!0;continue}if(ea(t)){n[t]=i;continue}{let e=nS(i,tQ[t]);t.startsWith("origin")?(a=!0,s[t]=e):r[t]=e}}if(!e.transform&&(o||i?r.transform=function(t,e,i){let r="",n=!0;for(let s=0;s<nE;s++){let o=I[s],a=t[o];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===+!!o.startsWith("scale"):0===parseFloat(a))||i){let t=nS(a,tQ[o]);if(!l){n=!1;let e=nA[o]||o;r+=`${e}(${t}) `}i&&(e[o]=t)}}return r=r.trim(),i?r=i(e,n?"":r):n&&(r="none"),r}(e,t.transform,i):r.transform&&(r.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=s;r.transformOrigin=`${t} ${e} ${i}`}}let nC={offset:"stroke-dashoffset",array:"stroke-dasharray"},nV={offset:"strokeDashoffset",array:"strokeDasharray"};function nk(t,e,i){return"string"==typeof t?t:tD.transform(e+i*t)}function nj(t,{attrX:e,attrY:i,attrScale:r,originX:n,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},h,c){let d,p;if(nM(t,u,c),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:m,style:f,dimensions:g}=t;m.transform&&(g&&(f.transform=m.transform),delete m.transform),g&&(void 0!==n||void 0!==s||f.transform)&&(d=nk(void 0!==n?n:.5,g.x,g.width),p=nk(void 0!==s?s:.5,g.y,g.height),f.transformOrigin=`${d} ${p}`),void 0!==e&&(m.x=e),void 0!==i&&(m.y=i),void 0!==r&&(m.scale=r),void 0!==o&&function(t,e,i=1,r=0,n=!0){t.pathLength=1;let s=n?nC:nV;t[s.offset]=tD.transform(-r);let o=tD.transform(e),a=tD.transform(i);t[s.array]=`${o} ${a}`}(m,o,a,l,!1)}let nR=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),nD=()=>({...nR(),attrs:{}}),nL=t=>"string"==typeof t&&"svg"===t.toLowerCase();function nF(t,{style:e,vars:i},r,n){for(let s in Object.assign(t.style,e,n&&n.getProjectionStyles(r)),i)t.style.setProperty(s,i[s])}let nO=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function nB(t,e,i,r){for(let i in nF(t,e,void 0,r),e.attrs)t.setAttribute(nO.has(i)?i:ts(i),e.attrs[i])}function nN(t,{layout:e,layoutId:i}){return $.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!ri[t]||"opacity"===t)}function nU(t,e,i){var r;let{style:n}=t,s={};for(let o in n)(tr(n[o])||e.style&&tr(e.style[o])||nN(o,t)||(null==(r=null==i?void 0:i.getValue(o))?void 0:r.liveStyle)!==void 0)&&(s[o]=n[o]);return s}function nI(t,e,i){let r=nU(t,e,i);for(let i in t)(tr(t[i])||tr(e[i]))&&(r[-1!==I.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return r}let n$=["x","y","width","height","cx","cy","r"],nW={useVisualState:nT({scrapeMotionValuesFromProps:nI,createRenderState:nD,onUpdate:({props:t,prevProps:e,current:i,renderState:r,latestValues:n})=>{if(!i)return;let s=!!t.drag;if(!s){for(let t in n)if($.has(t)){s=!0;break}}if(!s)return;let o=!e;if(e)for(let i=0;i<n$.length;i++){let r=n$[i];t[r]!==e[r]&&(o=!0)}o&&H.read(()=>{try{r.dimensions="function"==typeof i.getBBox?i.getBBox():i.getBoundingClientRect()}catch(t){r.dimensions={x:0,y:0,width:0,height:0}}H.render(()=>{nj(r,n,nL(i.tagName),t.transformTemplate),nB(i,r)})})}})},n_={useVisualState:nT({scrapeMotionValuesFromProps:nU,createRenderState:nR})};function nz(t,e,i){for(let r in e)tr(e[r])||nN(r,i)||(t[r]=e[r])}let nK=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function nH(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||nK.has(t)}let nY=t=>!nH(t);try{(i1=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default)&&(nY=t=>t.startsWith("on")?!nH(t):i1(t))}catch(t){}let nX={current:null},nq={current:!1},nG=[...ep,tN,tY],nZ=new WeakMap,nJ=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];
1class nQ{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:n,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=es,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=Z.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,H.render(this.render,!1,!0))};const{latestValues:a,renderState:l,onUpdate:u}=s;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=!!n,this.isControllingVariants=np(e),this.isVariantNode=nm(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in c){const e=c[t];void 0!==a[t]&&tr(e)&&e.set(a[t],!1)}}mount(t){this.current=t,nZ.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)),nq.current||function(){if(nq.current=!0,ng)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>nX.current=t.matches;t.addListener(e),e()}else nX.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||nX.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in nZ.delete(this.current),this.projection&&this.projection.unmount(),Y(this.notifyUpdate),Y(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let r=$.has(t),n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&H.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),s(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in ny){let e=ny[t];if(!e)continue;let{isEnabled:i,Feature:r}=e;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(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):iO()}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<nJ.length;e++){let i=nJ[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let r=t["on"+i];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=function(t,e,i){for(let r in e){let n=e[r],s=i[r];if(tr(n))t.addValue(r,n);else if(tr(s))t.addValue(r,ti(n,{owner:t}));else if(s!==n)if(t.hasValue(r)){let e=t.getValue(r);!0===e.liveStyle?e.jump(n):e.hasAnimated||e.set(n)}else{let e=t.getStaticValue(r);t.addValue(r,ti(void 0!==e?e:n,{owner:t}))}}for(let r in i)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
1addVariantChild(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=ti(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let r=void 0===this.latestValues[t]&&this.current?null!=(i=this.getBaseTargetFromProps(this.props,t))?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=r){let i,n;if("string"==typeof r&&(i=r,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i)||(n=r,/^0[^.\s]+$/u.test(n))))r=parseFloat(r);else{let i;i=r,!nG.find(ed(i))&&tY.test(e)&&(r=t2(t,e))}this.setBaseTarget(t,tr(r)?r.get():r)}return tr(r)?r.get():r}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let n=u(this.props,r,null==(e=this.presenceContext)?void 0:e.custom);n&&(i=n[t])}if(r&&void 0!==i)return i;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||tr(n)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new tt),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class n0 extends nQ{constructor(){super(...arguments),this.KeyframeResolver=ef}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;tr(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class n1 extends n0{constructor(){super(...arguments),this.type="html",this.renderInstance=nF}readValueFromInstance(t,e){if($.has(e)){let t=t1(e);return t&&t.default||0}{let i=window.getComputedStyle(t),r=(ea(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return iq(t,e)}build(t,e,i){nM(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return nU(t,e,i)}}class n2 extends n0{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=iO}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if($.has(e)){let t=t1(e);return t&&t.default||0}return e=nO.has(e)?e:ts(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return nI(t,e,i)}build(t,e,i){nj(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,r){nB(t,e,i,r)}mount(t){this.isSVGTag=nL(t.tagName),super.mount(t)}}let n3=function(t){if("u"<typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,r)=>"create"===r?t:(e.has(r)||e.set(r,t(r)),e.get(r))})}((i2={animation:{Feature:class extends ih{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 r;if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>ii(t,e,i)));else if("string"==typeof e)r=ii(t,e,i);else{let n="function"==typeof e?h(t,e,i.custom):e;r=Promise.all(ie(t,n,i))}return r.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=iu(),r=!0,l=e=>(i,r)=>{var n;let s=h(t,r,"exit"===e?null==(n=t.presenceContext)?void 0:n.custom:void 0);if(s){let{transition:t,transitionEnd:e,...r}=s;i={...i,...r,...e}}return i};function u(u){let{props:h}=t,c=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<is;t++){let r=d[t],n=e.props[r];(a(n)||!1===n)&&(i[r]=n)}return i}(t.parent)||{},p=[],m=new Set,f={},g=1/0;for(let e=0;e<ia;e++){var v,y;let d=io[e],x=i[d],b=void 0!==h[d]?h[d]:c[d],P=a(b),w=d===u?x.isActive:null;!1===w&&(g=e);let T=b===c[d]&&b!==h[d]&&P;if(T&&r&&t.manuallyAnimateOnMount&&(T=!1),x.protectedKeys={...f},!x.isActive&&null===w||!b&&!x.prevProp||n(b)||"boolean"==typeof b)continue;let S=(v=x.prevProp,"string"==typeof(y=b)?y!==v:!!Array.isArray(y)&&!o(y,v)),A=S||d===u&&x.isActive&&!T&&P||e>g&&P,E=!1,M=Array.isArray(b)?b:[b],C=M.reduce(l(d),{});!1===w&&(C={});let{prevResolvedValues:V={}}=x,k={...V,...C},j=e=>{A=!0,m.has(e)&&(E=!0,m.delete(e)),x.needsAnimating[e]=!0;let i=t.getValue(e);
1i&&(i.liveStyle=!1)};for(let t in k){let e=C[t],i=V[t];if(!f.hasOwnProperty(t))(s(e)&&s(i)?o(e,i):e===i)?void 0!==e&&m.has(t)?j(t):x.protectedKeys[t]=!0:null!=e?j(t):m.add(t)}x.prevProp=b,x.prevResolvedValues=C,x.isActive&&(f={...f,...C}),r&&t.blockInitialAnimation&&(A=!1);let R=!(T&&S)||E;A&&R&&p.push(...M.map(t=>({animation:t,options:{type:d}})))}if(m.size){let e={};m.forEach(i=>{let r=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=null!=r?r:null}),p.push({animation:e})}let x=!!p.length;return r&&(!1===h.initial||h.initial===h.animate)&&!t.manuallyAnimateOnMount&&(x=!1),r=!1,x?e(p):Promise.resolve()}return{animateChanges:u,setActive:function(e,r){var n;if(i[e].isActive===r)return Promise.resolve();null==(n=t.variantChildren)||n.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,r)}),i[e].isActive=r;let s=u(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=iu(),r=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();n(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}}},exit:{Feature:class extends ih{constructor(){super(...arguments),this.id=ic++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let r=this.node.animationState.setActive("exit",!t);e&&!t&&r.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends ih{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:r,margin:n,amount:s="some",once:o}=i,a={root:r?r.current:void 0,rootMargin:n,threshold:"number"==typeof s?s:nu[s]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:r}=this.node.getProps(),n=e?i:r;n&&n(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;no.has(i)||no.set(i,{});let r=no.get(i),n=JSON.stringify(e);return r[n]||(r[n]=new IntersectionObserver(nl,{root:t,...e})),r[n]}(a),ns.set(t,l),e.observe(t),()=>{ns.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("u"<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(){}}},tap:{Feature:class extends ih{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[r,n,s]=j(t,i),o=t=>{let r=t.currentTarget;if(!U(t)||O.has(r))return;O.add(r);let s=e(t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),U(t)&&O.has(r)&&(O.delete(r),"function"==typeof s&&s(t,{success:e}))},a=t=>{o(t,i.useGlobalTarget||D(r,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",l,n)};return r.forEach(t=>{F.has(t.tagName)||-1!==t.tabIndex||null!==t.getAttribute("tabindex")||(t.tabIndex=0),(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,n),t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let r=B(()=>{if(O.has(i))return;N(i,"down");let t=B(()=>{N(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>N(i,"cancel"),e)});i.addEventListener("keydown",r,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",r),e)})(t,n),n)}),s}(t,t=>(nn(this.node,t,"Start"),(t,{success:e})=>nn(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends ih{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=eC(id(this.node.current,"focus",()=>this.onFocus()),id(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends ih{mount(){let{current:t}=this.node;
1t&&(this.unmount=function(t,e,i={}){let[r,n,s]=j(t,i),o=R(t=>{let{target:i}=t,r=e(t);if("function"!=typeof r||!i)return;let s=R(t=>{r(t),i.removeEventListener("pointerleave",s)});i.addEventListener("pointerleave",s,n)});return r.forEach(t=>{t.addEventListener("pointerenter",o,n)}),s}(t,t=>(nr(this.node,t,"Start"),t=>nr(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends ih{constructor(){super(...arguments),this.removePointerDownListener=p}onPointerDown(t){this.session=new iv(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iG(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:i0(t),onStart:i0(e),onMove:i,onEnd:(t,e)=>{delete this.session,r&&H.postRender(()=>r(t,e))}}}mount(){this.removePointerDownListener=im(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends ih{constructor(t){super(t),this.removeGroupControls=p,this.removeListeners=p,this.controls=new iJ(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||p}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:ni,MeasureLayout:ro},layout:{ProjectionNode:ni,MeasureLayout:ro}},i3=(t,e)=>nw(t)?new n2(e):new n1(e,{allowProjection:t!==i4.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:r,Component:n}){var s,o;function l(t,s){var o;let l,u={...(0,i4.useContext)(nc),...t,layoutId:function({layoutId:t}){let e=(0,i4.useContext)(i6).id;return e&&void 0!==t?e+"-"+t:t}(t)},{isStatic:h}=u,c=function(t){let{initial:e,animate:i}=function(t,e){if(np(t)){let{initial:e,animate:i}=t;return{initial:!1===e||a(e)?e:void 0,animate:a(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,i4.useContext)(nd));return(0,i4.useMemo)(()=>({initial:e,animate:i}),[nf(e),nf(i)])}(t),d=r(t,h);if(!h&&ng){(0,i4.useContext)(nh).strict;let t=function(t){let{drag:e,layout:i}=ny;if(!e&&!i)return{};let r={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(u);l=t.MeasureLayout,c.visualElement=function(t,e,i,r,n){var s,o;let{visualElement:a}=(0,i4.useContext)(nd),l=(0,i4.useContext)(nh),u=(0,i4.useContext)(i9),h=(0,i4.useContext)(nc).reducedMotion,c=(0,i4.useRef)(null);r=r||l.renderer,!c.current&&r&&(c.current=r(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h}));let d=c.current,p=(0,i4.useContext)(i7);d&&!d.projection&&n&&("html"===d.type||"svg"===d.type)&&function(t,e,i,r){let{layoutId:n,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:n,layout:s,alwaysMeasureLayout:!!o||a&&iw(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}(c.current,i,n,p);let m=(0,i4.useRef)(!1);(0,i4.useInsertionEffect)(()=>{d&&m.current&&d.update(i,u)});let f=i[to],g=(0,i4.useRef)(!!f&&!(null==(s=window.MotionHandoffIsComplete)?void 0:s.call(window,f))&&(null==(o=window.MotionHasOptimisedAnimation)?void 0:o.call(window,f)));return nb(()=>{d&&(m.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),rr.render(d.render),g.current&&d.animationState&&d.animationState.animateChanges())}),(0,i4.useEffect)(()=>{d&&(!g.current&&d.animationState&&d.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var t;null==(t=window.MotionHandoffMarkAsComplete)||t.call(window,f)}),g.current=!1))}),d}(n,d,u,e,t.ProjectionNode)}return(0,i5.jsxs)(nd.Provider,{value:c,children:[l&&c.visualElement?(0,i5.jsx)(l,{visualElement:c.visualElement,...u}):null,i(n,t,(o=c.visualElement,(0,i4.useCallback)(t=>{t&&d.onMount&&d.onMount(t),o&&(t?o.mount(t):o.unmount()),s&&("function"==typeof s?s(t):iw(s)&&(s.current=t))},[o])),d,h,c.visualElement)]})}t&&function(t){for(let e in t)ny[e]={...ny[e],...t[e]}}(t),l.displayName=`motion.${"string"==typeof n?n:`create(${null!=(o=null!=(s=n.displayName)?s:n.name)?o:""})`}`;let u=(0,i4.forwardRef)(l);return u[nx]=n,u}({...nw(t)?nW:n_,preloadedFeatures:i2,useRender:function(t=!1){return(e,i,r,{latestValues:n},s)=>
1{let o=(nw(e)?function(t,e,i,r){let n=(0,i4.useMemo)(()=>{let i=nD();return nj(i,e,nL(r),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};nz(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e){let i,r,n={},s=(i=t.style||{},nz(r={},i,t),Object.assign(r,function({transformTemplate:t},e){return(0,i4.useMemo)(()=>{let i=nR();return nM(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),r);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n})(i,n,s,e),a=function(t,e,i){let r={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(nY(n)||!0===i&&nH(n)||!e&&!nH(n)||t.draggable&&n.startsWith("onDrag"))&&(r[n]=t[n]);return r}(i,"string"==typeof e,t),l=e!==i4.Fragment?{...a,...o,ref:r}:{},{children:u}=i,h=(0,i4.useMemo)(()=>tr(u)?u.get():u,[u]);return(0,i4.createElement)(e,{...l,children:h})}}(e),createVisualElement:i3,Component:t})}));t.s(["motion",()=>n3],94986)}]);
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.