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