1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,32964,17787,t=>{"use strict";t.s(["default",0,{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}],32964),t.s(["hasA11yProp",0,t=>{for(let e in t)if(e.startsWith("aria-")||"role"===e||"title"===e)return!0;return!1}],17787)},94837,t=>{"use strict";t.s(["mergeClasses",0,(...t)=>t.filter((t,e,i)=>!!t&&""!==t.trim()&&i.indexOf(t)===e).join(" ").trim()])},57754,t=>{"use strict";var e=t.i(15638),i=t.i(32964),n=t.i(17787),s=t.i(94837);let r=(0,e.createContext)({}),o=(0,e.forwardRef)(({color:t,size:o,strokeWidth:a,absoluteStrokeWidth:l,className:u="",children:h,iconNode:c,...d},p)=>{let{size:m=24,strokeWidth:f=2,absoluteStrokeWidth:v=!1,color:g="currentColor",className:y=""}=(0,e.useContext)(r)??{},x=l??v?24*Number(a??f)/Number(o??m):a??f;return(0,e.createElement)("svg",{ref:p,...i.default,width:o??m??i.default.width,height:o??m??i.default.height,stroke:t??g,strokeWidth:x,className:(0,s.mergeClasses)("lucide",y,u),...!h&&!(0,n.hasA11yProp)(d)&&{"aria-hidden":"true"},...d},[...c.map(([t,i])=>(0,e.createElement)(t,i)),...Array.isArray(h)?h:[h]])});t.s(["default",0,o],57754)},94237,t=>{"use strict";var e=t.i(7284);let i=t=>"boolean"==typeof t?`${t}`:0===t?"0":t,n=e.clsx;t.s(["cva",0,(t,e)=>s=>{var r;if((null==e?void 0:e.variants)==null)return n(t,null==s?void 0:s.class,null==s?void 0:s.className);let{variants:o,defaultVariants:a}=e,l=Object.keys(o).map(t=>{let e=null==s?void 0:s[t],n=null==a?void 0:a[t];if(null===e)return null;let r=i(e)||i(n);return o[t][r]}),u=s&&Object.entries(s).reduce((t,e)=>{let[i,n]=e;return void 0===n||(t[i]=n),t},{});return n(t,l,null==e||null==(r=e.compoundVariants)?void 0:r.reduce((t,e)=>{let{class:i,className:n,...s}=e;return Object.entries(s).every(t=>{let[e,i]=t;return Array.isArray(i)?i.includes({...a,...u}[e]):({...a,...u})[e]===i})?[...t,i,n]:t},[]),null==s?void 0:s.class,null==s?void 0:s.className)}])},19455,70363,t=>{"use strict";var e=t.i(10126),i=t.i(94237),n=t.i(74581);t.s(["Slot",0,n],70363);var n=n,s=t.i(75157);let r=(0,i.cva)("group/button focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:ring-3 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:ring-3 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50 shadow-xs",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5",lg:"h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-9","icon-xs":"size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});t.s(["Button",0,function({className:t,variant:i="default",size:o="default",asChild:a=!1,...l}){let u=a?n.Root:"button";return(0,e.jsx)(u,{"data-slot":"button","data-variant":i,"data-size":o,className:(0,s.cn)(r({variant:i,size:o,className:t})),...l})}],19455)},61596,t=>{"use strict";let e=(0,t.i(15638).createContext)({});t.s(["LayoutGroupContext",0,e])},70950,12103,40561,t=>{"use strict";var e=t.i(15638);t.s(["useConstant",0,function(t){let i=(0,e.useRef)(null);return null===i.current&&(i.current=t()),i.current}],70950);let i="u">typeof window;t.s(["isBrowser",0,i],12103);let n=i?e.useLayoutEffect:e.useEffect;t.s(["useIsomorphicLayoutEffect",0,n],40561)},570,t=>{"use strict";let e=(0,t.i(15638).createContext)(null);t.s(["PresenceContext",0,e])},25465,t=>{"use strict";t.s(["isObject",0,t=>"object"==typeof t&&null!==t])},61427,t=>{"use strict";var e=t.i(25465);t.s(["isHTMLElement",0,function(t){return(0,e.isObject)(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}])},12769,t=>{"use strict";let e=(0,t.i(15638).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",0,e])},82426,t=>{"use strict";var e=t.i(15638),i=t.i(570);t.s(["usePresence",0,function(t=!0){let n=(0,e.useContext)(i.PresenceContext);if(null===n)return[!0,null];let{isPresent:s,onExitComplete:r,register:o}=n,a=(0,e.useId)();(0,e.useEffect)(()=>
1{if(t)return o(a)},[t]);let l=(0,e.useCallback)(()=>t&&r&&r(a),[a,r,t]);return!s&&r?[!1,l]:[!0]}])},70080,8983,54022,68301,28076,34771,13968,8027,49997,50764,25542,12200,20194,19372,87067,40415,7953,33836,26935,10246,12126,47553,6470,10514,50252,20802,98361,64355,41330,t=>{"use strict";let e,i=(t,e,i)=>i>e?e:i<t?t:i;t.s(["clamp",0,i],8983);let n={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s={...n,transform:t=>i(0,1,t)},r={...n,default:1};t.s(["alpha",0,s,"number",0,n,"scale",0,r],54022);let o=t=>Math.round(1e5*t)/1e5,a=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;t.s(["floatRegex",0,a],68301);let l=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,u=(t,e)=>i=>!!("string"==typeof i&&l.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),h=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[s,r,o,l]=n.match(a);return{[t]:parseFloat(s),[e]:parseFloat(r),[i]:parseFloat(o),alpha:void 0!==l?parseFloat(l):1}},c={...n,transform:t=>Math.round(i(0,255,t))},d={test:u("rgb","red"),parse:h("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+c.transform(t)+", "+c.transform(e)+", "+c.transform(i)+", "+o(s.transform(n))+")"};t.s(["rgba",0,d],28076);let p={test:u("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform:d.transform};t.s(["hex",0,p],34771);let m=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),f=m("deg"),v=m("%"),g=m("px"),y=m("vh"),x=m("vw"),b={...v,parse:t=>v.parse(t)/100,transform:t=>v.transform(100*t)};t.s(["degrees",0,f,"percent",0,v,"progressPercentage",0,b,"px",0,g,"vh",0,y,"vw",0,x],13968);let T={test:u("hsl","hue"),parse:h("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+v.transform(o(e))+", "+v.transform(o(i))+", "+o(s.transform(n))+")"};t.s(["hsla",0,T],8027);let w={test:t=>d.test(t)||p.test(t)||T.test(t),parse:t=>d.test(t)?d.parse(t):T.test(t)?T.parse(t):p.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?d.transform(t):T.transform(t),getAnimatableNone:t=>{let e=w.parse(t);return e.alpha=0,w.transform(e)}};t.s(["color",0,w],70080);let S=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,P="number",M="color",V=/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 A(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[],r=0,o=e.replace(V,t=>(w.test(t)?(n.color.push(r),s.push(M),i.push(w.parse(t))):t.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(t)):(n.number.push(r),s.push(P),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:o,indexes:n,types:s}}function C({split:t,types:e}){let i=t.length;return n=>{let s="";for(let r=0;r<i;r++)if(s+=t[r],void 0!==n[r]){let t=e[r];t===P?s+=o(n[r]):t===M?s+=w.transform(n[r]):s+=n[r]}return s}}t.s(["analyseComplexValue",0,A,"complex",0,{test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(a)?.length||0)+(t.match(S)?.length||0)>0},parse:function(t){return A(t).values},createTransformer:function(t){return C(A(t))},getAnimatableNone:function(t){let e=A(t);return C(e)(e.values.map((t,i)=>((t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof t?0:w.test(t)?w.getAnimatableNone(t):t)(t,e.split[i])))}}],49997),t.s(["isMotionValue",0,t=>!!(t&&t.getVelocity)],50764),t.i(38938).default,t.s(["invariant",0,()=>{},"warning",0,()=>{}],25542);let E=t=>e=>"string"==typeof e&&e.startsWith(t),D=E("--"),k=E("var(--"),R=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;t.s(["containsCSSVariable",0,function(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")},"isCSSVariableName",0,D,"isCSSVariableToken",0,t=>!!k(t)&&R.test(t.split("/*")[0].trim())],12200);let L=t=>t;t.s(["noop",0,L],20194);let B={};t.s(["MotionGlobalConfig",0,B],19372);let F=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],j={value:null,addProjectionMetrics:null};function I(t,e){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,o=F.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,s=!1,r=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){o.has(e)&&(h.schedule(e),t()),l++,e(a)}let h={schedule:(t,e=!1,r=!1)=>{let a=r&&s?i:n;return e&&o.add(t),a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(a=t,s){r=!0;return}s=!0;let o=i;
1i=n,n=o,i.forEach(u),e&&j.value&&j.value.frameloop[e].push(l),l=0,i.clear(),s=!1,r&&(r=!1,h.process(t))}};return h}(r,e?i:void 0),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:h,update:c,preRender:d,render:p,postRender:m}=o,f=()=>{let r=B.useManualTiming,o=r?s.timestamp:performance.now();i=!1,r||(s.delta=n?1e3/60:Math.max(Math.min(o-s.timestamp,40),1)),s.timestamp=o,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),h.process(s),c.process(s),d.process(s),p.process(s),m.process(s),s.isProcessing=!1,i&&e&&(n=!1,t(f))};return{schedule:F.reduce((e,r)=>{let a=o[r];return e[r]=(e,r=!1,o=!1)=>(!i&&(i=!0,n=!0,s.isProcessing||t(f)),a.schedule(e,r,o)),e},{}),cancel:t=>{for(let e=0;e<F.length;e++)o[F[e]].cancel(t)},state:s,steps:o}}t.s(["statsBuffer",0,j],87067),t.s(["createRenderBatcher",0,I],40415);let{schedule:O,cancel:N,state:U,steps:W}=I("u">typeof requestAnimationFrame?requestAnimationFrame:L,!0);function $(t,e){-1===t.indexOf(e)&&t.push(e)}function z(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}t.s(["cancelFrame",0,N,"frame",0,O,"frameData",0,U,"frameSteps",0,W],7953),t.s(["millisecondsToSeconds",0,t=>t/1e3,"secondsToMilliseconds",0,t=>1e3*t],33836),t.s(["addUniqueItem",0,$,"removeItem",0,z],26935);class G{constructor(){this.subscriptions=[]}add(t){return $(this.subscriptions,t),()=>z(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 s=0;s<n;s++){let n=this.subscriptions[s];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}t.s(["SubscriptionManager",0,G],10246);let H=t=>null!==t;function Y(){e=void 0}t.s(["getFinalKeyframe",0,function(t,{repeat:e,repeatType:i="loop"},n,s=1){let r=t.filter(H),o=s<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return o&&void 0!==n?n:r[o]}],12126),t.s(["WithPromise",0,class{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)}}],47553),t.s(["activeAnimations",0,{layout:0,mainThread:0,waapi:0}],6470),t.s(["isBezierDefinition",0,t=>Array.isArray(t)&&"number"==typeof t[0]],10514),t.s(["generateLinearEasing",0,(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)n+=Math.round(1e4*t(e/(s-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`}],50252);let K={now:()=>(void 0===e&&K.set(U.isProcessing||B.useManualTiming?U.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(Y)}};t.s(["time",0,K],20802);let X=(t,e)=>e?1e3/e*t:0;t.s(["velocityPerSecond",0,X],98361);let q={current:void 0};class _{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=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=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 G);let i=this.events[t].add(e);return"change"===t?()=>{i(),O.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 q.current&&q.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=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 X(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()}}t.s(["collectMotionValues",0,q,"motionValue",0,function(t,e){return new _(t,e)}],64355),t.s(["mixNumber",0,(t,e,i)=>t+(e-t)*i],41330)},60144,59778,86968,70826,20986,71929,61866,75796,30142,91662,37259,54012,8578,43646,61749,86645,55458,81103,44473,6778,33186,40109,75342,97225,70110,39190,5020,67052,74302,9846,63412,t=>{"use strict";let e=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],i=new Set([...e,"pathRotation"]);t.s(["transformPropOrder",0,e,"transformProps",0,i],59778);var n=t.i(70080),s=t.i(49997),r=t.i(68301);let o=new Set(["brightness","contrast","saturate","opacity"]);function a(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(r.floatRegex)||[];
1if(!n)return t;let s=i.replace(n,""),a=+!!o.has(e);return n!==i&&(a*=100),e+"("+a+s+")"}let l=/\b([a-z-]*)\(.*?\)/gu,u={...s.complex,getAnimatableNone:t=>{let e=t.match(l);return e?e.map(a).join(" "):t}},h={...s.complex,getAnimatableNone:t=>{let e=s.complex.parse(t);return s.complex.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}};var c=t.i(54022);let d={...c.number,transform:Math.round};var p=t.i(13968);let m={rotate:p.degrees,pathRotation:p.degrees,rotateX:p.degrees,rotateY:p.degrees,rotateZ:p.degrees,scale:c.scale,scaleX:c.scale,scaleY:c.scale,scaleZ:c.scale,skew:p.degrees,skewX:p.degrees,skewY:p.degrees,distance:p.px,translateX:p.px,translateY:p.px,translateZ:p.px,x:p.px,y:p.px,z:p.px,perspective:p.px,transformPerspective:p.px,opacity:c.alpha,originX:p.progressPercentage,originY:p.progressPercentage,originZ:p.px},f={borderWidth:p.px,borderTopWidth:p.px,borderRightWidth:p.px,borderBottomWidth:p.px,borderLeftWidth:p.px,borderRadius:p.px,borderTopLeftRadius:p.px,borderTopRightRadius:p.px,borderBottomRightRadius:p.px,borderBottomLeftRadius:p.px,width:p.px,maxWidth:p.px,height:p.px,maxHeight:p.px,top:p.px,right:p.px,bottom:p.px,left:p.px,inset:p.px,insetBlock:p.px,insetBlockStart:p.px,insetBlockEnd:p.px,insetInline:p.px,insetInlineStart:p.px,insetInlineEnd:p.px,padding:p.px,paddingTop:p.px,paddingRight:p.px,paddingBottom:p.px,paddingLeft:p.px,paddingBlock:p.px,paddingBlockStart:p.px,paddingBlockEnd:p.px,paddingInline:p.px,paddingInlineStart:p.px,paddingInlineEnd:p.px,margin:p.px,marginTop:p.px,marginRight:p.px,marginBottom:p.px,marginLeft:p.px,marginBlock:p.px,marginBlockStart:p.px,marginBlockEnd:p.px,marginInline:p.px,marginInlineStart:p.px,marginInlineEnd:p.px,fontSize:p.px,backgroundPositionX:p.px,backgroundPositionY:p.px,...m,zIndex:d,fillOpacity:c.alpha,strokeOpacity:c.alpha,numOctaves:d},v={...f,color:n.color,backgroundColor:n.color,outlineColor:n.color,fill:n.color,stroke:n.color,borderColor:n.color,borderTopColor:n.color,borderRightColor:n.color,borderBottomColor:n.color,borderLeftColor:n.color,filter:u,WebkitFilter:u,mask:h,WebkitMask:h},g=t=>v[t],y=()=>({translate:0,scale:1,origin:0,originPoint:0}),x=()=>({min:0,max:0}),b=()=>({x:x(),y:x()});t.s(["createBox",0,b,"createDelta",0,()=>({x:y(),y:y()})],86968);var T=t.i(50764);let w=new Set(["width","height","top","left","right","bottom",...e]);t.s(["positionalKeys",0,w],70826);let S=t=>e=>e.test(t),P=[c.number,p.px,p.percent,p.degrees,p.vw,p.vh,{test:t=>"auto"===t,parse:t=>t}],M=t=>P.find(S(t));var V=t.i(25542),A=t.i(12200);let C=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,E=t=>180*t/Math.PI,D=t=>R(E(Math.atan2(t[1],t[0]))),k={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:D,rotateZ:D,skewX:t=>E(Math.atan(t[1])),skewY:t=>E(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},R=t=>((t%=360)<0&&(t+=360),t),L=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),B=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),F={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:L,scaleY:B,scale:t=>(L(t)+B(t))/2,rotateX:t=>R(E(Math.atan2(t[6],t[5]))),rotateY:t=>R(E(Math.atan2(-t[2],t[0]))),rotateZ:D,rotate:D,skewX:t=>E(Math.atan(t[4])),skewY:t=>E(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function j(t){return+!!t.includes("scale")}function I(t,e){let i,n;if(!t||"none"===t)return j(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=F,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=k,n=e}if(!n)return j(e);let r=i[e],o=n[1].split(",").map(O);return"function"==typeof r?r(o):o[r]}function O(t){return parseFloat(t.trim())}let N=t=>t===c.number||t===p.px,U=new Set(["x","y","z"]),W=e.filter(t=>!U.has(t)),$={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:n})=>{let s=t.max-t.min;return"border-box"===n?s:s-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:n})=>{let s=t.max-t.min;return"border-box"===n?s:s-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})=>I(e,"x"),y:(t,{transform:e})=>I(e,"y")};$.translateX=$.x,$.translateY=$.y;var z=t.i(7953);let G=new Set,H=!1,Y=!1,K=!1;function X(){if(Y){let t=Array.from(G).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,n=(e=[],W.forEach(i=>
1{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e);n.length&&(i.set(t,n),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)})}Y=!1,H=!1,G.forEach(t=>t.complete(K)),G.clear()}function q(){G.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Y=!0)})}class _{constructor(t,e,i,n,s,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(G.add(this),H||(H=!0,z.frame.read(q),z.frame.resolveKeyframes(X))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let s=n?.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&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),G.delete(this)}cancel(){"scheduled"===this.state&&(G.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}t.s(["KeyframeResolver",0,_,"flushKeyframeResolvers",0,function(){K=!0,q(),X(),K=!1}],20986);let Z=new Set([u,h]);function J(t,e){let i=g(t);return Z.has(i)||(i=s.complex),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let Q=new Set(["auto","none","0"]);class tt extends _{constructor(t,e,i,n,s){super(t,e,i,n,s,!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&&(n=n.trim(),(0,A.isCSSVariableToken)(n))){let s=function t(e,i,n=1){(0,V.invariant)(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[s,r]=function(t){let e=C.exec(t);if(!e)return[,];let[,i,n,s]=e;return[`--${i??n}`,s]}(e);if(!s)return;let o=window.getComputedStyle(i).getPropertyValue(s);if(o){let t=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return(0,A.isCSSVariableToken)(r)?t(r,i,n+1):r}(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!w.has(i)||2!==t.length)return;let[n,s]=t,r=M(n),o=M(s);if((0,A.containsCSSVariable)(n)!==(0,A.containsCSSVariable)(s)&&$[i]){this.needsMeasurement=!0;return}if(r!==o)if(N(r)&&N(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else $[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!Q.has(e)&&(0,s.analyseComplexValue)(e).values.length&&(n=t[r]),r++}if(n&&i)for(let s of e)t[s]=J(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=$[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 s=i.length-1,r=i[s];i[s]=$[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}t.i(38938);var te=t.i(33836),ti=t.i(10246),tn=t.i(20194);function ts(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}function tr(t){let e;return()=>(void 0===e&&(e=t()),e)}t.s(["setStyle",0,ts],71929),t.s(["memo",0,tr],61866);let to={};function ta(t,e){let i=tr(t);return()=>to[e]??i()}let tl=ta(()=>void 0!==window.ScrollTimeline,"scrollTimeline");t.s(["supportsScrollTimeline",0,tl],75796);var tu=t.i(12126),th=t.i(47553),tc=t.i(6470),td=t.i(87067),tp=t.i(10514);let tm=ta(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing");var tf=t.i(50252);let tv=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,tg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tv([0,.65,.55,1]),circOut:tv([.55,0,1,.45]),backIn:tv([.31,.01,.66,-.59]),backOut:tv([.33,1.53,.69,.99])};function ty(t){return"function"==typeof t&&"applyToOptions"in t}t.s(["isGenerator",0,ty],30142);class tx extends th.WithPromise{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,(0,V.invariant)("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return ty(t)&&tm()?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:s=300,repeat:r=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?tm()?(0,tf.generateLinearEasing)(e,i):"ease-out":(0,tp.isBezierDefinition)(e)?tv(e):Array.isArray(e)?e.map(e=>t(e,i)||tg.easeOut):tg[e]}(a,s);Array.isArray(c)&&(h.easing=c),td.statsBuffer.value&&tc.activeAnimations.waapi++;let d={delay:n,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"};u&&(d.pseudoElement=u);let p=t.animate(h,d);return td.statsBuffer.value&&p.finished.finally(()=>{tc.activeAnimations.waapi--}),p}(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=(0,tu.getFinalKeyframe)(n,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(t),ts(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(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return(0,te.millisecondsToSeconds)(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+(0,te.millisecondsToSeconds)(t)}get time(){return(0,te.millisecondsToSeconds)(Number(this.animation.currentTime)||0)}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=(0,te.secondsToMilliseconds)(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&&tl())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),tn.noop):n(this)}}t.s(["NativeAnimation",0,tx],91662);let tb=new Set(["opacity","clipPath","filter","transform"]);t.s(["acceleratedValues",0,tb],37259);let{schedule:tT}=(0,t.i(40415).createRenderBatcher)(queueMicrotask,!1);t.s(["microtask",0,tT],54012);var tw=t.i(20802),tS=t.i(64355);let tP=[...P,n.color,s.complex],tM=new WeakMap;function tV(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function tA(t){return"string"==typeof t||Array.isArray(t)}t.s(["isAnimationControls",0,tV],8578),t.s(["isVariantLabel",0,tA],43646);let tC=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tE=["initial",...tC];function tD(t){return tV(t.animate)||tE.some(e=>tA(t[e]))}function tk(t){return!!(tD(t)||t.variants)}t.s(["variantPriorityOrder",0,tC,"variantProps",0,tE],61749),t.s(["isControllingVariants",0,tD,"isVariantNode",0,tk],86645);let tR={current:null},tL={current:!1},tB="u">typeof window;function tF(t){let e=[{},{}];
1return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function tj(t,e,i,n){if("function"==typeof e){let[s,r]=tF(n);e=e(void 0!==i?i:t.custom,s,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,r]=tF(n);e=e(void 0!==i?i:t.custom,s,r)}return e}t.s(["resolveVariantFromProps",0,tj],55458);let tI=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tO={};class tN{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:s,blockInitialAnimation:r,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=_,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=tw.time.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,z.frame.render(this.render,!1,!0))};const{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=s,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=tD(e),this.isVariantNode=tk(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in c){const e=c[t];void 0!==l[t]&&(0,T.isMotionValue)(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,tM.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:(tL.current||function(){if(tL.current=!0,tB)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>tR.current=t.matches;t.addEventListener("change",e),e()}else tR.current=!1}(),this.shouldReduceMotion=tR.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,z.cancelFrame)(this.notifyUpdate),(0,z.cancelFrame)(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 n;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&tb.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:s,ease:r,duration:o}=e.accelerate,a=new tx({element:this.current,name:t,keyframes:n,times:s,ease:r,duration:(0,te.secondsToMilliseconds)(o)}),l=i(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let s=i.has(t);s&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&z.frame.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),n&&n()})}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 tO){let e=tO[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):b()}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<tI.length;e++){let i=tI[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 s=e[n],r=i[n];if((0,T.isMotionValue)(s))t.addValue(n,s);else if((0,T.isMotionValue)(r))t.addValue(n,(0,tS.motionValue)(s,{owner:t}));else if(r!==s)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,(0,tS.motionValue)(void 0!==e?e:s,{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,tS.motionValue)(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){let n,r;if("string"==typeof i&&(n=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(r=i,/^0[^.\s]+$/u.test(r))))i=parseFloat(i);else{let n;n=i,!tP.find(S(n))&&s.complex.test(e)&&(i=J(t,e))}this.setBaseTarget(t,(0,T.isMotionValue)(i)?i.get():i)}return(0,T.isMotionValue)(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=tj(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||(0,T.isMotionValue)(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 ti.SubscriptionManager),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){tT.render(this.render)}}t.s(["VisualElement",0,tN,"getFeatureDefinitions",0,function(){return tO},"setFeatureDefinitions",0,function(t){tO=t}],81103);class tU extends tN{constructor(){super(...arguments),this.KeyframeResolver=tt}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,T.isMotionValue)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function tW(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}t.s(["camelToDash",0,tW],44473);let t$=(t,e)=>e&&"number"==typeof t?e.transform(t):t,tz={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tG=e.length;function tH(t,n,s){let{style:r,vars:o,transformOrigin:a}=t,l=!1,u=!1;for(let t in n){let e=n[t];if(i.has(t)){l=!0;continue}if((0,A.isCSSVariableName)(t)){o[t]=e;continue}{let i=t$(e,f[t]);t.startsWith("origin")?(u=!0,a[t]=i):r[t]=i}}if(!n.transform&&(l||s?r.transform=function(t,i,n){let s="",r=!0;for(let o=0;o<tG;o++){let a=e[o],l=t[a];if(void 0===l)continue;let u=!0;
1if("number"==typeof l)u=l===+!!a.startsWith("scale");else{let t=parseFloat(l);u=a.startsWith("scale")?1===t:0===t}if(!u||n){let t=t$(l,f[a]);if(!u){r=!1;let e=tz[a]||a;s+=`${e}(${t}) `}n&&(i[a]=t)}}let o=t.pathRotation;return o&&(r=!1,s+=`rotate(${t$(o,f.pathRotation)}) `),s=s.trim(),n?s=n(i,r?"":s):r&&(s="none"),s}(n,t.transform,s):r.transform&&(r.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=a;r.transformOrigin=`${t} ${e} ${i}`}}t.s(["buildHTMLStyles",0,tH],6778);let tY={offset:"stroke-dashoffset",array:"stroke-dasharray"},tK={offset:"strokeDashoffset",array:"strokeDasharray"},tX=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tq(t,{attrX:e,attrY:i,attrScale:n,pathLength:s,pathSpacing:r=1,pathOffset:o=0,...a},l,u,h){if(tH(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),tX))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!==s&&function(t,e,i=1,n=0,s=!0){t.pathLength=1;let r=s?tY:tK;t[r.offset]=`${-n}`,t[r.array]=`${e} ${i}`}(c,s,r,o,!1)}t.s(["buildSVGAttrs",0,tq],33186);let t_=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"]),tZ=t=>"string"==typeof t&&"svg"===t.toLowerCase();function tJ(t,{style:e,vars:i},n,s){let r,o=t.style;for(r in e)o[r]=e[r];for(r in s?.applyProjectionStyles(o,n),i)o.setProperty(r,i[r])}function tQ(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}t.s(["isSVGTag",0,tZ],40109);let t0={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!p.px.test(t))return t;else t=parseFloat(t);let i=tQ(t,e.target.x),n=tQ(t,e.target.y);return`${i}% ${n}%`}};var t1=t.i(41330);let t5={borderRadius:{...t0,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:t0,borderTopRightRadius:t0,borderBottomLeftRadius:t0,borderBottomRightRadius:t0,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=s.complex.parse(t);if(n.length>5)return t;let r=s.complex.createTransformer(t),o=+("number"!=typeof n[0]),a=i.x.scale*e.x,l=i.y.scale*e.y;n[0+o]/=a,n[1+o]/=l;let u=(0,t1.mixNumber)(a,l,.5);return"number"==typeof n[2+o]&&(n[2+o]/=u),"number"==typeof n[3+o]&&(n[3+o]/=u),r(n)}}};function t2(t,{layout:e,layoutId:n}){return i.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!t5[t]||"opacity"===t)}function t3(t,e,i){let n=t.style,s=e?.style,r={};if(!n)return r;for(let e in n)((0,T.isMotionValue)(n[e])||s&&(0,T.isMotionValue)(s[e])||t2(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(r[e]=n[e]);return r}function t9(t,i,n){let s=t3(t,i,n);for(let n in t)((0,T.isMotionValue)(t[n])||(0,T.isMotionValue)(i[n]))&&(s[-1!==e.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=t[n]);return s}t.s(["scaleCorrectors",0,t5],75342),t.s(["isForcedMotionValue",0,t2],97225),t.s(["scrapeMotionValuesFromProps",0,t3],70110),t.s(["scrapeMotionValuesFromProps",0,t9],39190);class t4 extends tU{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=b}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(i.has(e)){let t=g(e);return t&&t.default||0}return e=t_.has(e)?e:tW(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return t9(t,e,i)}build(t,e,i){tq(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in tJ(t,e,void 0,n),e.attrs)t.setAttribute(t_.has(i)?i:tW(i),e.attrs[i])}mount(t){this.isSVGTag=tZ(t.tagName),super.mount(t)}}function t7({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function t6(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}}function t8(t){return void 0===t||1===t}function et({scale:t,scaleX:e,scaleY:i}){return!t8(t)||!t8(e)||!t8(i)}function ee(t){return et(t)||ei(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ei(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}t.s(["convertBoundingBoxToBox",0,t7,"convertBoxToBoundingBox",0,function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}},"transformBoxPoints",0,t6],5020);function en(t,e,i){return i+e*(t-i)}function es(t,e,i,n,s){return void 0!==s&&(t=en(t,s,n)),en(t,i,n)+e}function er(t,e=0,i=1,n,s){t.min=es(t.min,e,i,n,s),t.max=es(t.max,e,i,n,s)}function eo(t,{x:e,y:i}){er(t.x,e.translate,e.scale,e.originPoint),er(t.y,i.translate,i.scale,i.originPoint)}function ea(t,e){t.min+=e,t.max+=e}function el(t,e,i,n,s=.5){let r=(0,t1.mixNumber)(t.min,t.max,s);er(t,e,i,r,n)}function eu(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function eh(t,e,i){let n=i??t;el(t.x,eu(e.x,n.x),e.scaleX,e.scale,e.originX),el(t.y,eu(e.y,n.y),e.scaleY,e.scale,e.originY)}function ec(t,e){return t7(t6(t.getBoundingClientRect(),e))}t.s(["has2DTranslate",0,ei,"hasScale",0,et,"hasTransform",0,ee],67052),t.s(["applyBoxDelta",0,eo,"applyTreeDeltas",0,function(t,e,
1i,n=!1){let s,r,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){r=(s=i[a]).projectionDelta;let{visualElement:o}=s.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(ea(t.x,-s.scroll.offset.x),ea(t.y,-s.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,eo(t,r)),n&&ee(s.latestValues)&&eh(t,s.latestValues,s.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}},"scalePoint",0,en,"transformBox",0,eh,"translateAxis",0,ea],74302),t.s(["measurePageBox",0,function(t,e,i){let n=ec(t,i),{scroll:s}=e;return s&&(ea(n.x,s.offset.x),ea(n.y,s.offset.y)),n},"measureViewportBox",0,ec],9846);class ed extends tU{constructor(){super(...arguments),this.type="html",this.renderInstance=tJ}readValueFromInstance(t,e){if(i.has(e))return this.projection?.isProjecting?j(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return I(i,e)})(t,e);{let i=window.getComputedStyle(t),n=((0,A.isCSSVariableName)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return ec(t,e)}build(t,e,i){tH(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return t3(t,e,i)}}var ep=t.i(15638);let em=["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 ef(t){if("string"!=typeof t||t.includes("-"));else if(em.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}t.s(["isSVGComponent",0,ef],63412),t.s(["createDomVisualElement",0,(t,e)=>e.isSVG??ef(t)?new t4(e):new ed(e,{allowProjection:t!==ep.Fragment})],60144)},34772,90879,93237,19573,96607,5939,72889,74032,t=>{"use strict";var e,i=t.i(15638);let n=(0,i.createContext)({strict:!1});t.s(["LazyContext",0,n],34772);let s=(0,i.createContext)({});t.s(["MotionContext",0,s],90879);var r=t.i(86645),o=t.i(43646);function a(t){return Array.isArray(t)?t.join(" "):t}t.s(["useCreateMotionContext",0,function(t){let{initial:e,animate:n}=function(t,e){if((0,r.isControllingVariants)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,o.isVariantLabel)(e)?e:void 0,animate:(0,o.isVariantLabel)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,i.useContext)(s));return(0,i.useMemo)(()=>({initial:e,animate:n}),[a(e),a(n)])}],93237);var l=t.i(50764),u=t.i(97225),h=t.i(6778);let c=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function d(t,e,i){for(let n in e)(0,l.isMotionValue)(e[n])||(0,u.isForcedMotionValue)(n,i)||(t[n]=e[n])}t.s(["createHtmlRenderState",0,c],19573);var p=t.i(33186),m=t.i(40109);let f=()=>({...c(),attrs:{}});t.s(["createSvgRenderState",0,f],96607);let v=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function g(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||v.has(t)}let y=t=>!g(t);try{e=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof e&&(y=t=>t.startsWith("on")?!g(t):e(t))}catch{}var x=t.i(63412);t.s(["useRender",0,function(t,e,n,{latestValues:s},r,o=!1,a){let u=(a??(0,x.isSVGComponent)(t)?function(t,e,n,s){let r=(0,i.useMemo)(()=>{let i=f();return(0,p.buildSVGAttrs)(i,e,(0,m.isSVGTag)(s),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};d(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let n,s,r={},o=(n=t.style||{},d(s={},n,t),Object.assign(s,function({transformTemplate:t},e){return(0,i.useMemo)(()=>{let i=c();return(0,h.buildHTMLStyles)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),s);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=o,r}
1)(e,s,r,t),v=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&(y(s)||!0===i&&g(s)||!e&&!g(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(e,"string"==typeof t,o),b=t!==i.Fragment?{...v,...u,ref:n}:{},{children:T}=e,w=(0,i.useMemo)(()=>(0,l.isMotionValue)(T)?T.get():T,[T]);return(0,i.createElement)(t,{...b,children:w})}],5939);var b=t.i(70110);t.s(["scrapeHTMLMotionValuesFromProps",()=>b.scrapeMotionValuesFromProps],72889),t.s(["resolveMotionValue",0,function(t){return(0,l.isMotionValue)(t)?t.get():t}],74032)},32512,59340,38976,33278,98577,74794,90350,59452,41076,87935,96584,8821,10927,10401,58904,93850,45459,60602,84047,t=>{"use strict";t.i(38938);var e=t.i(10126),i=t.i(15638),n=t.i(61596),s=t.i(34772),r=t.i(12769),o=t.i(90879),a=t.i(93237),l=t.i(5939),u=t.i(63412),h=t.i(72889),c=t.i(74032),d=t.i(86645),p=t.i(8578),m=t.i(55458),f=t.i(570),v=t.i(70950);let g=t=>(e,n)=>{let s=(0,i.useContext)(o.MotionContext),r=(0,i.useContext)(f.PresenceContext),a=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,s){return{latestValues:function(t,e,i,n){let s={},r=n(t,{});for(let t in r)s[t]=(0,c.resolveMotionValue)(r[t]);let{initial:o,animate:a}=t,l=(0,d.isControllingVariants)(t),u=(0,d.isVariantNode)(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,f=(h=h||!1===o)?a:o;if(f&&"boolean"!=typeof f&&!(0,p.isAnimationControls)(f)){let e=Array.isArray(f)?f:[f];for(let i=0;i<e.length;i++){let n=(0,m.resolveVariantFromProps)(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&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(i,n,s,t),renderState:e()}})(t,e,s,r);return n?a():(0,v.useConstant)(a)};var y=t.i(19573);let x=g({scrapeMotionValuesFromProps:h.scrapeHTMLMotionValuesFromProps,createRenderState:y.createHtmlRenderState});var b=t.i(39190),b=b,T=t.i(96607);let w=g({scrapeMotionValuesFromProps:b.scrapeMotionValuesFromProps,createRenderState:T.createSvgRenderState});var S=t.i(12103),P=t.i(81103);let M={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"]},V=!1;function A(){return!function(){if(V)return;let t={};for(let e in M)t[e]={isEnabled:t=>M[e].some(e=>!!t[e])};(0,P.setFeatureDefinitions)(t),V=!0}(),(0,P.getFeatureDefinitions)()}let C=Symbol.for("motionComponentSymbol"),E="data-"+(0,t.i(44473).camelToDash)("framerAppearId"),D=(0,i.createContext)({});function k(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}t.s(["SwitchLayoutGroupContext",0,D],59340);var R=t.i(40561);function L(t,{forwardMotionProps:h=!1,type:c}={},d,p){d&&function(t){let e=A();for(let i in t)e[i]={...e[i],...t[i]};(0,P.setFeatureDefinitions)(e)}(d);let m=c?"svg"===c:(0,u.isSVGComponent)(t),v=m?w:x;function g(u,c){var d;let g,y,x,b={...(0,i.useContext)(r.MotionConfigContext),...u,layoutId:function({layoutId:t}){let e=(0,i.useContext)(n.LayoutGroupContext).id;return e&&void 0!==t?e+"-"+t:t}(u)},{isStatic:T}=b,w=(0,a.useCreateMotionContext)(u),P=v(u,T);if(!T&&S.isBrowser){(0,i.useContext)(s.LazyContext).strict;let e=function(t){let{drag:e,layout:i}=A();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(b);g=e.MeasureLayout,w.visualElement=function(t,e,n,a,l,u){let{visualElement:h}=(0,i.useContext)(o.MotionContext),c=(0,i.useContext)(s.LazyContext),d=(0,i.useContext)(f.PresenceContext),p=(0,i.useContext)(r.MotionConfigContext).reducedMotion,m=(0,i.useRef)(null),v=(0,i.useRef)(!1);a=a||c.renderer,!m.current&&a&&(m.current=a(t,{visualState:e,parent:h,props:n,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:p,isSVG:u}),v.current&&m.current&&(m.current.manuallyAnimateOnMount=!0));let g=m.current,y=(0,i.useContext)(D);g&&!g.projection&&l&&("html"===g.type||"svg"===g.type)&&function(t,e,
1i,n){let{layoutId:s,layout:r,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:s,layout:r,alwaysMeasureLayout:!!o||a&&k(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u})}(m.current,n,l,y);let x=(0,i.useRef)(!1);(0,i.useInsertionEffect)(()=>{g&&x.current&&g.update(n,d)});let b=n[E],T=(0,i.useRef)(!!b&&!window.MotionHandoffIsComplete?.(b)&&window.MotionHasOptimisedAnimation?.(b));return(0,R.useIsomorphicLayoutEffect)(()=>{v.current=!0,g&&(x.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),T.current&&g.animationState&&g.animationState.animateChanges())}),(0,i.useEffect)(()=>{g&&(!T.current&&g.animationState&&g.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(b)}),T.current=!1),g.enteringChildren=void 0)}),g}(t,P,b,p,e.ProjectionNode,m)}return(0,e.jsxs)(o.MotionContext.Provider,{value:w,children:[g&&w.visualElement?(0,e.jsx)(g,{visualElement:w.visualElement,...b}):null,(0,l.useRender)(t,u,(d=w.visualElement,y=(0,i.useRef)(c),(0,i.useInsertionEffect)(()=>{y.current=c}),x=(0,i.useRef)(null),(0,i.useCallback)(t=>{t&&P.onMount?.(t),d&&(t?d.mount(t):d.unmount());let e=y.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(x.current=i)}else x.current?(x.current(),x.current=null):e(t);else e&&(e.current=t)},[d])),P,T,h,m)]})}g.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let y=(0,i.forwardRef)(g);return y[C]=t,y}t.s(["createMotionProxy",0,function(t,e){if("u"<typeof Proxy)return L;let i=new Map,n=(i,n)=>L(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(s,r)=>"create"===r?n:(i.has(r)||i.set(r,L(r,void 0,t,e)),i.get(r))})}],32512);class B{constructor(t){this.isMounted=!1,this.node=t}update(){}}function F(t,e,i){let n=t.getProps();return(0,m.resolveVariantFromProps)(n,e,void 0!==i?i:n.custom,t)}function j(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}function I(t,e){let i=t?.[e]??t?.default??t;return i!==t?j(i,t):i}t.s(["Feature",0,B],38976),t.s(["getValueTransition",0,I],33278);var O=t.i(70826),N=t.i(64355);let U=t=>Array.isArray(t);function W(t,e){let{transitionEnd:i={},transition:n={},...s}=F(t,e)||{};for(let e in s={...s,...i}){var r;let i=U(r=s[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,N.motionValue)(i))}}t.s(["setTarget",0,W],98577);var $=t.i(19372),z=t.i(50764);function G(t,e){let i=t.getValue("willChange");if((0,z.isMotionValue)(i)&&i.add)return i.add(e);if(!i&&$.MotionGlobalConfig.WillChange){let i=new $.MotionGlobalConfig.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function H(t){return t.props[E]}t.s(["getOptimisedAppearId",0,H],74794);var Y=t.i(33836),K=t.i(20194),X=t.i(20802),q=t.i(4282),_=t.i(12126),Z=t.i(20986),J=t.i(8983),Q=t.i(71929),tt=t.i(91662),te=t.i(32277),ti=t.i(509),tn=t.i(23016);let ts={anticipate:t.i(3981).anticipate,backInOut:tn.backInOut,circInOut:ti.circInOut};class tr extends tt.NativeAnimation{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in ts&&(t.ease=ts[t.ease])}(t),(0,te.replaceTransitionType)(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:s,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new q.JSAnimation({...r,autoplay:!1}),a=Math.max(10,X.time.now()-this.startTime),l=(0,J.clamp)(0,10,a-10),u=o.sample(a).value,{name:h}=this.options;s&&h&&(0,Q.setStyle)(s,h,u),e.setWithVelocity(o.sample(Math.max(0,a-l)).value,u,l),o.stop()}}var to=t.i(25542),ta=t.i(30142),tl=t.i(49997);let tu=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tl.complex.test(t)||"0"===t)&&!t.startsWith("url("));function th(t){t.duration=0,t.type="keyframes"}var tc=t.i(47553),td=t.i(61866),tp=t.i(37259);let tm=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,tf=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),tv=(0,td.memo)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class tg extends tc.WithPromise{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="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=X.time.now();const c={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,name:a,motionValue:l,element:u,...h},d=u?.KeyframeResolver||Z.KeyframeResolver;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){let s;this.keyframeResolver=void 0;let{name:r,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:h}=i;this.resolvedAt=X.time.now();let c=!0;
1!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],o=tu(s,e),a=tu(r,e);return(0,to.warning)(o===a,`You are trying to animate ${e} from "${s}" to "${r}". "${o?r:s}" 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||(0,ta.isGenerator)(i))&&n)}(t,r,o,a)&&(c=!1,($.MotionGlobalConfig.instantAnimations||!l)&&h?.((0,_.getFinalKeyframe)(t,i,e)),t[0]=t[t.length-1],th(i),i.repeat=0);let d={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},p=c&&!u&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:o,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=e.owner.getProps();return tv()&&i&&(tp.acceleratedValues.has(i)||tf.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&tm.test(t[e]))return!0;return!1}(a))&&("transform"!==i||!u)&&!l&&!n&&"mirror"!==s&&0!==r&&"inertia"!==o}(d),m=d.motionValue?.owner?.current;if(p)try{s=new tr({...d,element:m})}catch{s=new q.JSAnimation(d)}else s=new q.JSAnimation(d);s.finished.then(()=>{this.notifyFinished()}).catch(K.noop),this.pendingTimeline&&(this.stopTimeline=s.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=s}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(),(0,Z.flushKeyframeResolvers)()),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()}}var ty=t.i(59778);let tx={type:"spring",stiffness:500,damping:25,restSpeed:10},tb={type:"keyframes",duration:.8},tT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tw=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);var tS=t.i(7953);let tP=(t,e,i,n={},s,r)=>o=>{let a=I(n,t)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=(0,Y.secondsToMilliseconds)(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:s};!function(t){for(let e in t)if(!tw.has(e))return!0;return!1}(a)&&Object.assign(h,((t,{keyframes:e})=>e.length>2?tb:ty.transformProps.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:tx:tT)(t,h)),h.duration&&(h.duration=(0,Y.secondsToMilliseconds)(h.duration)),h.repeatDelay&&(h.repeatDelay=(0,Y.secondsToMilliseconds)(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(th(h),0===h.delay&&(c=!0)),($.MotionGlobalConfig.instantAnimations||$.MotionGlobalConfig.skipAnimations||s?.shouldSkipAnimations||a.skipAnimations)&&(c=!0,th(h),h.delay=0),h.allowFlatten=!a.type&&!a.ease,c&&!r&&void 0!==e.get()){let t=(0,_.getFinalKeyframe)(h.keyframes,a);if(void 0!==t)return void tS.frame.update(()=>{h.onUpdate(t),h.onComplete()})}return a.isSync?new q.JSAnimation(h):new tg(h)};function tM(t,e,{delay:i=0,transitionOverride:n,type:s}={}){let{transition:r,transitionEnd:o,...a}=e,l=t.getDefaultTransition();r=r?j(r,l):l;let u=r?.reduceMotion,h=r?.skipAnimations;n&&(r=n);let c=[],d=s&&t.animationState&&t.animationState.getState()[s],p=r?.path;for(let e in p&&p.animateVisualElement(t,a,r,i,c),a){let n=t.getValue(e,t.latestValues[e]??null),s=a[e];if(void 0===s||d&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(d,e))continue;let o={delay:i,...I(r||{},e)};h&&(o.skipAnimations=!0);let l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(s)&&s===l&&!o.velocity){tS.frame.update(()=>n.set(s));continue}let p=!1;if(window.MotionHandoffAnimation){let i=H(t);if(i){let t=window.MotionHandoffAnimation(i,e,tS.frame);null!==t&&(o.startTime=t,p=!0)}}G(t,e);let m=u??t.shouldReduceMotion;n.start(tP(e,n,s,m&&O.positionalKeys.has(e)?{type:!1}:o,t,p));let f=n.animation;f&&c.push(f)}if(o){let e=()=>tS.frame.update(()=>{o&&W(t,o)});c.length?Promise.all(c).then(e):e()}return c}function tV(t,e,i,n=0,s=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(r,o):1===s?r*n:a-r*n}function tA(t,e,i={}){let n=F(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let r=n?()=>Promise.all(tM(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;
1return function(t,e,i=0,n=0,s=0,r=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(tA(l,e,{...o,delay:i+("function"==typeof n?0:n)+tV(t.variantChildren,l,n,s,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,n,r,o,a,i)}:()=>Promise.resolve(),{when:a}=s;if(!a)return Promise.all([r(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[r,o]:[o,r];return t().then(()=>e())}}function tC(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>tA(t,e,i)));else if("string"==typeof e)n=tA(t,e,i);else{let s="function"==typeof e?F(t,e,i.custom):e;n=Promise.all(tM(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})}t.s(["animateMotionValue",0,tP],90350),t.s(["animateVisualElement",0,tC],59452);var tE=t.i(43646),tD=t.i(61749);let tk=tD.variantProps.length;function tR(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 tL=[...tD.variantPriorityOrder].reverse(),tB=tD.variantPriorityOrder.length;function tF(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function tj(){return{animate:tF(!0),whileInView:tF(),whileHover:tF(),whileTap:tF(),whileDrag:tF(),whileFocus:tF(),exit:tF()}}let tI=0;t.s(["animations",0,{animation:{Feature:class extends B{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>tC(t,e,i))),i=tj(),n=!0,s=!1,r=e=>(i,n)=>{let s=F(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;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<tk;t++){let n=tD.variantProps[t],s=e.props[n];((0,tE.isVariantLabel)(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},u=[],h=new Set,c={},d=1/0;for(let e=0;e<tB;e++){var m,f;let v=tL[e],g=i[v],y=void 0!==a[v]?a[v]:l[v],x=(0,tE.isVariantLabel)(y),b=v===o?g.isActive:null;!1===b&&(d=e);let T=y===l[v]&&y!==a[v]&&x;if(T&&(n||s)&&t.manuallyAnimateOnMount&&(T=!1),g.protectedKeys={...c},!g.isActive&&null===b||!y&&!g.prevProp||(0,p.isAnimationControls)(y)||"boolean"==typeof y)continue;if("exit"===v&&g.isActive&&!0!==b){g.prevResolvedValues&&(c={...c,...g.prevResolvedValues});continue}let w=(m=g.prevProp,"string"==typeof(f=y)?f!==m:!!Array.isArray(f)&&!tR(f,m)),S=w||v===o&&g.isActive&&!T&&x||e>d&&x,P=!1,M=Array.isArray(y)?y:[y],V=M.reduce(r(v),{});!1===b&&(V={});let{prevResolvedValues:A={}}=g,C={...A,...V},E=e=>{S=!0,h.has(e)&&(P=!0,h.delete(e)),g.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in C){let e=V[t],i=A[t];if(!c.hasOwnProperty(t))(U(e)&&U(i)?!tR(e,i)||w:e!==i)?null!=e?E(t):h.add(t):void 0!==e&&h.has(t)?E(t):g.protectedKeys[t]=!0}g.prevProp=y,g.prevResolvedValues=V,g.isActive&&(c={...c,...V}),(n||s)&&t.blockInitialAnimation&&(S=!1);let D=T&&w,k=!D||P;S&&k&&u.push(...M.map(e=>{let i={type:v};if("string"==typeof e&&(n||s)&&!D&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=F(n,e);if(n.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=tV(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof a.initial){let i=F(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),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),u.push({animation:e})}let v=!!u.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(v=!1),n=!1,s=!1,v?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 s=o(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=tj(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,p.isAnimationControls)(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?.()}}},exit:{Feature:class extends B{constructor(){super(...arguments),this.id=tI++}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(){}}}}],41076);var tO=t.i(86968);function tN(t){return[t("x"),t("y")]}t.s(["eachAxis",0,tN],87935);var tU=t.i(9846),tW=t.i(5020),t$=t.i(41330);let tz=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function tG(t){return tz.has(t.tagName)||!0===t.isContentEditable}function tH(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}t.s(["isElementKeyboardAccessible",0,tG],96584),t.s(["addDomEvent",0,tH],8821);let tY={x:!1,y:!1};t.s(["isDragActive",0,function(){return tY.x||tY.y},"isDragging",0,tY],10927);var tK=t.i(13968);function tX(t){return t.max-t.min}function tq(t,e,i,n=.5){t.origin=n,t.originPoint=(0,t$.mixNumber)(e.min,e.max,t.origin),t.scale=tX(i)/tX(e),t.translate=(0,t$.mixNumber)(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 t_(t,e,i,n=0){t.min=(n?(0,t$.mixNumber)(i.min,i.max,n):i.min)+e.min,t.max=t.min+tX(e)}function tZ(t,e,i,n=0){let s=n?(0,t$.mixNumber)(i.min,i.max,n):i.min;t.min=e.min-s,t.max=t.min+tX(e)}t.s(["calcBoxDelta",0,function(t,e,i,n){tq(t.x,e.x,i.x,n?n.originX:void 0),tq(t.y,e.y,i.y,n?n.originY:void 0)},"calcLength",0,tX,"calcRelativeBox",0,function(t,e,i,n){t_(t.x,e.x,i.x,n?.x),t_(t.y,e.y,i.y,n?.y)},"calcRelativePosition",0,function(t,e,i,n){tZ(t.x,e.x,i.x,n?.x),tZ(t.y,e.y,i.y,n?.y)},"isNear",0,function(t,e,i){return Math.abs(t-e)<=i}],10401);let tJ=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tQ(t){return{point:{x:t.pageX,y:t.pageY}}}t.s(["isPrimaryPointer",0,tJ],58904);let t0=t=>e=>tJ(e)&&t(e,tQ(e));function t1(t,e,i,n){return tH(t,e,t0(i),n)}t.s(["addPointerInfo",0,t0,"extractEventInfo",0,tQ],93850);let t5=({current:t})=>t?t.ownerDocument.defaultView:null;var t2=t.i(15645);let t3=(t,e)=>Math.abs(t-e),t9=new Set(["auto","scroll"]);class t4{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:r=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=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=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=t8(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,s=(t=i.offset,e={x:0,y:0},Math.sqrt(t3(t.x,e.x)**2+t3(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!s)return;let{point:r}=i,{timestamp:o}=tS.frameData;this.history.push({...r,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=t7(e,this.transformPagePoint),tS.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=t8("pointercancel"===t.type?this.lastMoveEventInfo:t7(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!tJ(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=n||window;const a=t7(tQ(t),this.transformPagePoint),{point:l}=a,{timestamp:u}=tS.frameData;this.history=[{...l,timestamp:u}];const{onSessionStart:h}=e;h&&h(t,t8(a,this.history)),this.removeListeners=(0,t2.pipe)(t1(this.contextWindow,"pointermove",this.handlePointerMove),t1(this.contextWindow,"pointerup",this.handlePointerUp),t1(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(t9.has(t.overflowX)||t9.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,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),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},s={x:n.x-e.x,y:n.y-e.y};(0!==s.x||0!==s.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,n),tS.frame.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,tS.cancelFrame)(this.updatePoint)}}function t7(t,e){return e?{point:e(t.point)}:t}function t6(t,e){return{x:t.x-e.x,y:t.y-e.y}}function t8({point:t},e){return{point:t,delta:t6(t,et(e)),offset:t6(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,n=et(t);for(;e>=0&&(i=t[e],!(n.timestamp-i.timestamp>(0,Y.secondsToMilliseconds)(.1)));)e--;if(!i)return{x:0,y:0};let s=(0,Y.millisecondsToSeconds)(n.timestamp-i.timestamp);if(0===s)return{x:0,y:0};let r={x:(n.x-i.x)/s,y:(n.y-i.y)/s}
1;return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e)}}function et(t){return t[t.length-1]}var ee=t.i(70934);function ei(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 en(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 es(t,e,i){return{min:er(t,e),max:er(t,i)}}function er(t,e){return"number"==typeof t?t:t[e]||0}let eo=new WeakMap;class ea{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=(0,tO.createBox)(),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 s=t=>{e?(this.stopAnimation(),this.snapToCursor(tQ(t).point)):this.pauseAnimation()},r=(t,e)=>{this.stopAnimation();let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(tY[t])return null;else return tY[t]=!0,()=>{tY[t]=!1};return tY.x||tY.y?null:(tY.x=tY.y=!0,()=>{tY.x=tY.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),tN(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tK.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=tX(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&tS.frame.postRender(()=>s(t,e)),G(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=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&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&&r(t,e)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>tN(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new t4(t,{onSessionStart:s,onStart:r,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:t5(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!n||!i)return;let{velocity:r}=n;this.startAnimation(r);let{onDragEnd:o}=this.getProps();o&&tS.frame.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||!el(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?(0,t$.mixNumber)(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?(0,t$.mixNumber)(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}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&&k(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:ei(t.x,i,s),y:ei(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:es(t,"left","right"),y:es(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&tN(t=>{var e,n;let s;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],n=this.constraints[t],s={},void 0!==n.min&&(s.min=n.min-e.min),void 0!==n.max&&(s.max=n.max-e.min),s))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!k(e))return!1;let n=e.current;(0,to.invariant)(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:s}=this.visualElement;if(!s||!s.layout)return!1;let r=(0,tU.measurePageBox)(n,s.root,this.visualElement.getTransformPagePoint()),o=(t=s.layout.layoutBox,{x:en(t.x,r.x),y:en(t.y,r.y)});if(i){let t=i((0,tW.convertBoxToBoundingBox)(o));this.hasMutatedConstraints=!!t,t&&(o=(0,tW.convertBoundingBoxToBox)(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(tN(o=>{if(!el(o,e,this.currentDirection))return;let l=a&&a[o]||{};r&&(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,...s,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return G(this.visualElement,t),i.start(tP(t,i,0,e,this.visualElement,!1))}stopAnimation(){tN(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){tN(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){tN(e=>{let{drag:i}=this.getProps();if(!el(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e],o=s.get()||0;s.set(t[e]-(0,t$.mixNumber)(i,r,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!k(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};tN(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,s;let r,o,a,l=e.get();n[t]=(i={min:l,max:l},s=this.constraints[t],r=.5,o=tX(i),(a=tX(s))>o?r=(0,ee.progress)(s.min,s.max-o,i.min):o>a&&(r=(0,ee.progress)(i.min,i.max-a,s.min)),(0,J.clamp)(0,1,r))}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),tN(e=>{if(!el(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set((0,t$.mixNumber)(s,r,n[e]))})}addListeners(){if(!this.visualElement.current)return;eo.set(this.visualElement,this);let t=this.visualElement.current,e=t1(t,"pointerdown",e=>{let{drag:i,dragListener:n=!0}
1=this.getProps(),s=e.target,r=s!==t&&tG(s);i&&n&&!r&&this.start(e)}),i=()=>{let{dragConstraints:t}=this.getProps();k(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,s=n.addEventListener("measure",i);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),tS.frame.read(i);let r=tH(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(tN(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),e(),s(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:o}}}function el(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}t.s(["DragGesture",0,class extends B{constructor(t){super(t),this.removeGroupControls=K.noop,this.removeListeners=K.noop,this.controls=new ea(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||K.noop}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()}}],45459);let eu=t=>(e,i)=>{t&&tS.frame.postRender(()=>t(e,i))};t.s(["PanGesture",0,class extends B{constructor(){super(...arguments),this.removePointerDownListener=K.noop}onPointerDown(t){this.session=new t4(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:t5(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:eu(t),onStart:eu(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&tS.frame.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=t1(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}],60602),t.s(["globalProjectionState",0,{hasAnimatedSinceResize:!0,hasEverUpdated:!1}],84047)},24005,59367,27048,t=>{"use strict";var e=t.i(10126),i=t.i(84047),n=t.i(7953),s=t.i(54012),r=t.i(15638),o=t.i(82426),a=t.i(61596),l=t.i(59340);let u=!1;class h extends r.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:s}=this.props,{projection:r}=t;r&&(e.group&&e.group.add(r),n&&n.register&&s&&n.register(r),u&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),i.globalProjectionState.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:r}=this.props,{projection:o}=i;return o&&(o.isPresent=r,t.layoutDependency!==e&&o.setOptions({...o.options,layoutDependency:e}),u=!0,s||t.layoutDependency!==e||void 0===e||t.isPresent!==r?o.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?o.promote():o.relegate()||n.frame.postRender(()=>{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),s.microtask.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;u=!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}}t.s(["MeasureLayout",0,function(t){let[i,n]=(0,o.usePresence)(),s=(0,r.useContext)(a.LayoutGroupContext);return(0,e.jsx)(h,{...t,layoutGroup:s,switchLayoutGroup:(0,r.useContext)(l.SwitchLayoutGroupContext),isPresent:i,safeToRemove:n})}],24005);var c=t.i(90350),d=t.i(64355),p=t.i(50764);
1t.s(["animateSingleValue",0,function(t,e,i){let n=(0,p.isMotionValue)(t)?t:(0,d.motionValue)(t);return n.start((0,c.animateMotionValue)("",n,e,i)),n.animation}],59367);var m=t.i(20802);t.i(33836),t.s(["delay",0,function(t,e){let i=m.time.now(),s=({timestamp:r})=>{let o=r-i;o>=e&&((0,n.cancelFrame)(s),t(o-e))};return n.frame.setup(s,!0),()=>(0,n.cancelFrame)(s)}],27048)},4282,15645,23016,3981,509,70934,62667,31224,32277,88133,t=>{"use strict";t.i(38938);let e=(...t)=>t.reduce((t,e)=>i=>e(t(i)));t.s(["pipe",0,e],15645);var i=t.i(8983),n=t.i(33836),s=t.i(20802),r=t.i(6470),o=t.i(25542),a=t.i(12200),l=t.i(70080),u=t.i(49997),h=t.i(34771),c=t.i(8027);function d(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}var p=t.i(28076);function m(t,e){return i=>i>0?e:t}var f=t.i(41330);let v=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},g=[h.hex,p.rgba,c.hsla];function y(t){let e=g.find(e=>e.test(t));if((0,o.warning)(!!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===c.hsla&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,r=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;s=d(a,n,t+1/3),r=d(a,n,t),o=d(a,n,t-1/3)}else s=r=o=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*o),alpha:n}}(i)),i}let x=(t,e)=>{let i=y(t),n=y(e);if(!i||!n)return m(t,e);let s={...i};return t=>(s.red=v(i.red,n.red,t),s.green=v(i.green,n.green,t),s.blue=v(i.blue,n.blue,t),s.alpha=(0,f.mixNumber)(i.alpha,n.alpha,t),p.rgba.transform(s))},b=new Set(["none","hidden"]);function T(t,e){return i=>(0,f.mixNumber)(t,e,i)}function w(t){return"number"==typeof t?T:"string"==typeof t?(0,a.isCSSVariableToken)(t)?m:l.color.test(t)?x:M:Array.isArray(t)?S:"object"==typeof t?l.color.test(t)?x:P:m}function S(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>w(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=s[e](t);return i}}function P(t,e){let i={...t,...e},n={};for(let s in i)void 0!==t[s]&&void 0!==e[s]&&(n[s]=w(t[s])(t[s],e[s]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let M=(t,i)=>{let n=u.complex.createTransformer(i),s=(0,u.analyseComplexValue)(t),r=(0,u.analyseComplexValue)(i);if(!(s.indexes.var.length===r.indexes.var.length&&s.indexes.color.length===r.indexes.color.length&&s.indexes.number.length>=r.indexes.number.length))return(0,o.warning)(!0,`Complex values '${t}' and '${i}' 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"),m(t,i);if(b.has(t)&&!r.values.length||b.has(i)&&!s.values.length)return b.has(t)?e=>e<=0?t:i:e=>e>=1?i:t;return e(S(function(t,e){let i=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let r=e.types[s],o=t.indexes[r][n[r]],a=t.values[o]??0;i[s]=a,n[r]++}return i}(s,r),r.values),n)};function V(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,f.mixNumber)(t,e,i):w(t)(t,e)}var A=t.i(7953);let C=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>A.frame.update(e,t),stop:()=>(0,A.cancelFrame)(e),now:()=>A.frameData.isProcessing?A.frameData.timestamp:s.time.now()}};var E=t.i(50252);function D(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 k=.01,R=2,L=.005,B=.5;function F(t,e){return t*Math.sqrt(1-e*e)}let j=["duration","bounce"],I=["stiffness","damping","mass"];function O(t,e){return e.some(e=>void 0!==t[e])}function N(t=.3,e=.3){let s,r,a,l,u,h,c="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:d,restDelta:p}=c,m=c.keyframes[0],f=c.keyframes[c.keyframes.length-1],v={done:!1,value:m},{stiffness:g,damping:y,mass:x,duration:b,velocity:T,isResolvedFromDuration:w}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!O(t,I)&&O(t,j))if(e.velocity=0,t.visualDuration){let n=2*Math.PI/(1.2*t.visualDuration),s=n*n,r=2*(0,i.clamp)(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:1,stiffness:s,damping:r}}else{let s=function({duration:t=800,bounce:e=.3,velocity:s=0,mass:r=1}){let a,l;(0,o.warning)(t<=(0,n.secondsToMilliseconds)(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let u=1-e;u=(0,i.clamp)(.05,1,u),t=(0,i.clamp)(.01,10,(0,n.millisecondsToSeconds)(t)),u<1?(a=e=>{let i=e*u,n=i*t;return .001-(i-s)/F(e,u)*Math.exp(-n)},l=e=>{let i=e*u*t,n=Math.pow(u,2)*Math.pow(e,2)*t,r=Math.exp(-i),o=F(Math.pow(e,2),u);return(i*s+s-n)*r*(-a(e)+.001>0?-1:1)/o}):(a=e=>-.001+Math.exp(-e*t)*((e-s)*t+1),l=e=>t*t*(s-e)*Math.exp(-e*t));
1let h=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(a,l,5/t);if(t=(0,n.secondsToMilliseconds)(t),isNaN(h))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(h,2)*r;return{stiffness:e,damping:2*u*Math.sqrt(r*e),duration:t}}}({...t,velocity:0});(e={...e,...s,mass:1}).isResolvedFromDuration=!0}return e}({...c,velocity:-(0,n.millisecondsToSeconds)(c.velocity||0)}),S=T||0,P=y/(2*Math.sqrt(g*x)),M=f-m,V=(0,n.millisecondsToSeconds)(Math.sqrt(g/x)),A=5>Math.abs(M);if(d||(d=A?k:R),p||(p=A?L:B),P<1)a=F(V,P),l=(S+P*V*M)/a,s=t=>f-Math.exp(-P*V*t)*(l*Math.sin(a*t)+M*Math.cos(a*t)),u=P*V*l+M*a,h=P*V*M-l*a,r=t=>Math.exp(-P*V*t)*(u*Math.sin(a*t)+h*Math.cos(a*t));else if(1===P){s=t=>f-Math.exp(-V*t)*(M+(S+V*M)*t);let t=S+V*M;r=e=>Math.exp(-V*e)*(V*t*e-S)}else{let t=V*Math.sqrt(P*P-1);s=e=>{let i=Math.exp(-P*V*e),n=Math.min(t*e,300);return f-i*((S+P*V*M)*Math.sinh(n)+t*M*Math.cosh(n))/t};let e=(S+P*V*M)/t,i=P*V*e-M*t,n=P*V*M-e*t;r=e=>{let s=Math.exp(-P*V*e),r=Math.min(t*e,300);return s*(i*Math.sinh(r)+n*Math.cosh(r))}}let C={calculatedDuration:w&&b||null,velocity:t=>(0,n.secondsToMilliseconds)(r(t)),next:t=>{if(!w&&P<1){let e=Math.exp(-P*V*t),i=Math.sin(a*t),s=Math.cos(a*t),r=f-e*(l*i+M*s);return v.done=Math.abs((0,n.secondsToMilliseconds)(e*(u*i+h*s)))<=d&&Math.abs(f-r)<=p,v.value=v.done?f:r,v}let e=s(t);return w?v.done=t>=b:v.done=Math.abs((0,n.secondsToMilliseconds)(r(t)))<=d&&Math.abs(f-e)<=p,v.value=v.done?f:e,v},toString:()=>{let t=Math.min(D(C),2e4),e=(0,E.generateLinearEasing)(e=>C.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return C}N.applyToOptions=t=>{let e=function(t,e=100,i){let s=i({...t,keyframes:[0,e]}),r=Math.min(D(s),2e4);return{type:"keyframes",ease:t=>s.next(r*t).value/e,duration:(0,n.millisecondsToSeconds)(r)}}(t,100,N);return t.ease=e.ease,t.duration=(0,n.secondsToMilliseconds)(e.duration),t.type="keyframes",t};var U=t.i(98361);function W(t,e,i){let n=Math.max(e-5,0);return(0,U.velocityPerSecond)(i-t(n),e-n)}function $({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=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,v=p+f,g=void 0===o?v:o(v);g!==v&&(f=g-p);let y=t=>-f*Math.exp(-t/n),x=t=>g+y(t),b=t=>{let e=y(t),i=x(t);m.done=Math.abs(e)<=u,m.value=m.done?g:i},T=t=>{let e;if(e=m.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;c=t,d=N({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:W(x,t,m.value),damping:s,stiffness:r,restDelta:u,restSpeed:h})}};return T(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,b(t),T(t)),void 0!==c&&t>=c)?d.next(t-c):(e||b(t),m)}}}var z=t.i(20194);let G=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function H(t,e,i,n){return t===e&&i===n?z.noop:s=>0===s||1===s?s:G(function(t,e,i,n,s){let r,o,a=0;do(r=G(o=e+(i-e)/2,n,s)-t)>0?i=o:e=o;while(Math.abs(r)>1e-7&&++a<12)return o}(s,0,1,t,i),e,n)}let Y=H(.42,0,1,1),K=H(0,0,.58,1),X=H(.42,0,.58,1),q=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,_=t=>e=>1-t(1-e),Z=H(.33,1.53,.69,.99),J=_(Z),Q=q(J);t.s(["backIn",0,J,"backInOut",0,Q,"backOut",0,Z],23016);let tt=t=>t>=1?1:(t*=2)<1?.5*J(t):.5*(2-Math.pow(2,-10*(t-1)));t.s(["anticipate",0,tt],3981);let te=t=>1-Math.sin(Math.acos(t)),ti=_(te),tn=q(te);t.s(["circIn",0,te,"circInOut",0,tn,"circOut",0,ti],509);var ts=t.i(10514);let tr={linear:z.noop,easeIn:Y,easeInOut:X,easeOut:K,circIn:te,circInOut:tn,circOut:ti,backIn:J,backInOut:Q,backOut:Z,anticipate:tt},to=t=>{if((0,ts.isBezierDefinition)(t)){(0,o.invariant)(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,s]=t;return H(e,i,n,s)}return"string"==typeof t?((0,o.invariant)(void 0!==tr[t],`Invalid easing type '${t}'`,"invalid-easing-type"),tr[t]):t};var ta=t.i(19372);let tl=(t,e,i)=>{let n=e-t;return n?(i-t)/n:1};function tu(t,n,{clamp:s=!0,ease:r,mixer:a}={}){let l=t.length;if((0,o.invariant)(l===n.length,"Both input and output ranges must be the same length","range-length"),1===l)return()=>n[0];if(2===l&&n[0]===n[1])return()=>n[1];let u=t[0]===t[1];t[0]>t[l-1]&&(t=[...t].reverse(),n=[...n].reverse());let h=function(t,i,n){let s=[],r=n||ta.MotionGlobalConfig.mix||V,o=t.length-1;for(let n=0;n<o;
1n++){let o=r(t[n],t[n+1]);i&&(o=e(Array.isArray(i)?i[n]||z.noop:i,o)),s.push(o)}return s}(n,r,a),c=h.length,d=e=>{if(u&&e<t[0])return n[0];let i=0;if(c>1)for(;i<t.length-2&&!(e<t[i+1]);i++);let s=tl(t[i],t[i+1],e);return h[i](s)};return s?e=>d((0,i.clamp)(t[0],t[l-1],e)):d}function th(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let s=tl(0,e,n);t.push((0,f.mixNumber)(i,1,s))}}(e,t.length-1),e}function tc({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var s;let r=Array.isArray(n)&&"number"!=typeof n[0]?n.map(to):to(n),o={done:!1,value:e[0]},a=tu((s=i&&i.length===e.length?i:th(e),s.map(e=>e*t)),e,{ease:Array.isArray(r)?r:e.map(()=>r||X).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}t.s(["progress",0,tl],70934),t.s(["interpolate",0,tu],62667),t.s(["defaultOffset",0,th],31224);var td=t.i(12126);let tp={decay:$,inertia:$,tween:tc,keyframes:tc,spring:N};function tm(t){"string"==typeof t.type&&(t.type=tp[t.type])}t.s(["replaceTransitionType",0,tm],32277);var tf=t.i(47553);let tv=t=>t/100;class tg extends tf.WithPromise{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==s.time.now()&&this.tick(s.time.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},r.activeAnimations.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;tm(t);let{type:i=tc,repeat:n=0,repeatDelay:s=0,repeatType:r,velocity:o=0}=t,{keyframes:a}=t,l=i||tc;l!==tc&&"number"!=typeof a[0]&&(this.mixKeyframes=e(tv,V(a[0],a[1])),a=[0,100]);let u=l({...t,keyframes:a});"mirror"===r&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),null===u.calculatedDuration&&(u.calculatedDuration=D(u));let{calculatedDuration:h}=u;this.calculatedDuration=h,this.resolvedDuration=h+s,this.totalDuration=this.resolvedDuration*(n+1)-s,this.generator=u}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 n,{generator:s,totalDuration:r,mixKeyframes:o,mirroredGenerator:a,resolvedDuration:l,calculatedDuration:u}=this;if(null===this.startTime)return s.next(0);let{delay:h=0,keyframes:c,repeat:d,repeatType:p,repeatDelay:m,type:f,onUpdate:v,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let y=this.currentTime-h*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?y<0:y>r;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let b=this.currentTime,T=s;if(d){let t=Math.min(this.currentTime,r)/l,e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,(e=Math.min(e,d+1))%2&&("reverse"===p?(n=1-n,m&&(n-=m/l)):"mirror"===p&&(T=a)),b=(0,i.clamp)(0,1,n)*l}x?(this.delayState.value=c[0],n=this.delayState):n=T.next(b),o&&!x&&(n.value=o(n.value));let{done:w}=n;x||null===u||(w=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return S&&f!==$&&(n.value=(0,td.getFinalKeyframe)(c,this.options,g,this.speed)),v&&v(n.value),S&&this.finish(),n}then(t,e){return this.finished.then(t,e)}get duration(){return(0,n.millisecondsToSeconds)(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+(0,n.millisecondsToSeconds)(t)}get time(){return(0,n.millisecondsToSeconds)(this.currentTime)}set time(t){t=(0,n.secondsToMilliseconds)(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;
1if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return W(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(s.time.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=(0,n.millisecondsToSeconds)(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=C,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(s.time.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,r.activeAnimations.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)}}t.s(["JSAnimation",0,tg],4282),t.s(["resolveElements",0,function(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 s=i?.[t]??n.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(t=>null!=t)}],88133)},95259,70899,15990,67454,29599,532,t=>{"use strict";var e=t.i(45459),i=t.i(60602),n=t.i(24005),s=t.i(10246),r=t.i(8983),o=t.i(20194),a=t.i(59367),l=t.i(74794),u=t.i(33278),h=t.i(54012),c=t.i(20802),d=t.i(75342),p=t.i(6470),m=t.i(87067),f=t.i(27048),v=t.i(25465);function g(t){return(0,v.isObject)(t)&&"ownerSVGElement"in t}t.s(["isSVGElement",0,g],70899);var y=t.i(41330),x=t.i(64355),b=t.i(74032),T=t.i(13968),w=t.i(70934),S=t.i(509);let P=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],M=P.length,V=t=>"string"==typeof t?parseFloat(t):t,A=t=>"number"==typeof t||T.px.test(t);function C(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let E=k(0,.5,S.circOut),D=k(.5,.95,o.noop);function k(t,e,i){return n=>n<t?0:n>e?1:i((0,w.progress)(t,e,n))}function R(t,e){t.min=e.min,t.max=e.max}function L(t,e){R(t.x,e.x),R(t.y,e.y)}function B(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var F=t.i(74302),j=t.i(10401);function I(t,e,i,n,s){return t-=e,t=(0,F.scalePoint)(t,1/i,n),void 0!==s&&(t=(0,F.scalePoint)(t,1/s,n)),t}function O(t,e,[i,n,s],r,o){!function(t,e=0,i=1,n=.5,s,r=t,o=t){if(T.percent.test(e)&&(e=parseFloat(e),e=(0,y.mixNumber)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,y.mixNumber)(r.min,r.max,n);t===r&&(a-=e),t.min=I(t.min,e,i,a,s),t.max=I(t.max,e,i,a,s)}(t,e[i],e[n],e[s],e.scale,r,o)}let N=["x","scaleX","originX"],U=["y","scaleY","originY"];function W(t,e,i,n){O(t.x,e,N,i?i.x:void 0,n?n.x:void 0),O(t.y,e,U,i?i.y:void 0,n?n.y:void 0)}var $=t.i(86968);function z(t){return 0===t.translate&&1===t.scale}function G(t){return z(t.x)&&z(t.y)}function H(t,e){return t.min===e.min&&t.max===e.max}function Y(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function K(t,e){return Y(t.x,e.x)&&Y(t.y,e.y)}function X(t){return(0,j.calcLength)(t.x)/(0,j.calcLength)(t.y)}function q(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var _=t.i(26935);class Z{constructor(){this.members=[]}add(t){(0,_.addUniqueItem)(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,_.removeItem)(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if((0,_.removeItem)(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:s}=t.options;(void 0===n||n!==s)&&(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)}}var J=t.i(87935);let Q=(t,e)=>t.depth-e.depth;class tt{constructor(){this.children=[],this.isDirty=!1}add(t){(0,_.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,_.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Q),this.isDirty=!1,this.children.forEach(t)}}var te=t.i(67052),ti=t.i(84047),tn=t.i(7953);let ts={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},tr=["","X","Y","Z"],to=0;function ta(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function tl({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(t={},i=e?.()){this.id=to++,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,m.statsBuffer.value&&(ts.nodes=ts.calculatedTargetDeltas=ts.calculatedProjections=0),this.nodes.forEach(tc),this.nodes.forEach(tb),this.nodes.forEach(tT),this.nodes.forEach(td),m.statsBuffer.addProjectionMetrics&&m.statsBuffer.addProjectionMetrics(ts)},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 tt)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new s.SubscriptionManager),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=g(e)&&!(g(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,s=()=>this.root.updateBlockedByResize=!1;tn.frame.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==n&&(n=t,this.root.updateBlockedByResize=!0,i&&i(),i=(0,f.delay)(s,250),ti.globalProjectionState.hasAnimatedSinceResize&&(ti.globalProjectionState.hasAnimatedSinceResize=!1,this.nodes.forEach(tx)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(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 r=this.options.transition||s.getDefaultTransition()||tA,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!K(this.targetLayout,n),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...(0,u.getValueTransition)(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h,e.path)}else e||tx(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,tn.cancelFrame)(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(tw),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=(0,l.getOptimisedAppearId)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tn.frame,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(tf),this.nodes.forEach(tm);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(tv);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(tg),this.nodes.forEach(ty),this.nodes.forEach(tu),this.nodes.forEach(th)):this.nodes.forEach(tv),this.clearAllSnapshots();let t=c.time.now();tn.frameData.delta=(0,r.clamp)(0,1e3/60,t-tn.frameData.timestamp),tn.frameData.timestamp=t,tn.frameData.isProcessing=!0,tn.frameSteps.update.process(tn.frameData),tn.frameSteps.preRender.process(tn.frameData),tn.frameSteps.render.process(tn.frameData),tn.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,h.microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tp),this.sharedNodes.forEach(tS)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tn.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tn.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||(0,j.calcLength)(this.snapshot.measuredBox.x)||(0,j.calcLength)(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=(0,$.createBox)()),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(!o)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!G(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,te.hasTransform)(this.latestValues)||s)&&(o(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)),tD((e=n).x),tD(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,$.createBox)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(tR))){let{scroll:t}=this.root;t&&((0,F.translateAxis)(e.x,t.offset.x),(0,F.translateAxis)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,$.createBox)();if(L(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&L(e,t),(0,F.translateAxis)(e.x,s.offset.x),(0,F.translateAxis)(e.y,s.offset.y))}return e}applyTransform(t,e=!1,i){let n=i||(0,$.createBox)();L(n,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&((0,F.translateAxis)(n.x,-i.scroll.offset.x),(0,F.translateAxis)(n.y,-i.scroll.offset.y)),(0,te.hasTransform)(i.latestValues)&&(0,F.transformBox)(n,i.latestValues,i.layout?.layoutBox)}return(0,te.hasTransform)(this.latestValues)&&(0,F.transformBox)(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(t){let e=(0,$.createBox)();L(e,t);for(let t=0;t<this.path.length;t++){let i,n=this.path[t];(0,te.hasTransform)(n.latestValues)&&(n.instance&&((0,te.hasScale)(n.latestValues)&&n.updateSnapshot(),L(i=(0,$.createBox)(),n.measurePageBox())),W(e,n.latestValues,n.snapshot?.layoutBox,i))}return(0,te.hasTransform)(this.latestValues)&&W(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!==tn.frameData.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:s}=this.options;if(!this.layout||!(n||s))return;this.resolvedRelativeTargetAt=tn.frameData.timestamp;let r=this.getClosestProjectingParent();r&&this.linkedParentVersion!==r.layoutVersion&&!r.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&r&&r.layout?this.createRelativeTarget(r,this.layout.layoutBox,r.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=(0,$.createBox)(),this.targetWithTransforms=(0,$.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),(0,j.calcRelativeBox)(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):L(this.target,this.layout.layoutBox),(0,F.applyBoxDelta)(this.target,this.targetDelta)):L(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&r&&!!r.resumingFrom==!!this.resumingFrom&&!r.options.layoutScroll&&r.target&&1!==this.animationProgress?this.createRelativeTarget(r,this.target,r.target):this.relativeParent=this.relativeTarget=void 0),m.statsBuffer.value&&ts.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||(0,te.hasScale)(this.parent.latestValues)||(0,te.has2DTranslate)(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=(0,$.createBox)(),this.relativeTargetOrigin=(0,$.createBox)(),(0,j.calcRelativePosition)(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),L(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tn.frameData.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;L(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,o=this.treeScale.y;(0,F.applyTreeDeltas)(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=(0,$.createBox)());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(B(this.prevProjectionDelta.x,this.projectionDelta.x),B(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),(0,j.calcBoxDelta)(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===r&&this.treeScale.y===o&&q(this.projectionDelta.x,this.prevProjectionDelta.x)&&q(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),m.statsBuffer.value&&ts.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=(0,$.createDelta)(),this.projectionDelta=(0,$.createDelta)(),this.projectionDeltaWithTransform=(0,$.createDelta)()}setAnimationOrigin(t,e=!1,i){let n,s=this.snapshot,r=s?s.latestValues:{},o={...this.latestValues},a=(0,$.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=(0,$.createBox)(),u=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),c=!h||h.members.length<=1,d=!!(u&&!c&&!0===this.options.crossfade&&!this.path.some(tV));this.animationProgress=0;let p=i?.interpolateProjection(t);this.mixTargetDelta=e=>{let i=e/1e3,s=p?.(i);if(s?(a.x.translate=s.x,a.x.scale=(0,y.mixNumber)(t.x.scale,1,i),a.x.origin=t.x.origin,a.x.originPoint=t.x.originPoint,a.y.translate=s.y,a.y.scale=(0,y.mixNumber)(t.y.scale,1,i),a.y.origin=t.y.origin,a.y.originPoint=t.y.originPoint):(tP(a.x,t.x,i),tP(a.y,t.y,i)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,m,f,v,g,x;(0,j.calcRelativePosition)(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,v=this.relativeTargetOrigin,g=l,x=i,tM(f.x,v.x,g.x,x),tM(f.y,v.y,g.y,x),n&&(h=this.relativeTarget,m=n,H(h.x,m.x)&&H(h.y,m.y))&&(this.isProjectionDirty=!1),n||(n=(0,$.createBox)()),L(n,this.relativeTarget)}u&&(this.animationValues=o,function(t,e,i,n,s,r){s?(t.opacity=(0,y.mixNumber)(0,i.opacity??1,E(n)),t.opacityExit=(0,y.mixNumber)(e.opacity??1,0,D(n))):r&&(t.opacity=(0,y.mixNumber)(e.opacity??1,i.opacity??1,n));for(let s=0;s<M;s++){let r=P[s],o=C(e,r),a=C(i,r);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||A(o)===A(a)?(t[r]=Math.max((0,y.mixNumber)(V(o),V(a),n),0),(T.percent.test(a)||T.percent.test(o))&&(t[r]+="%")):t[r]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,y.mixNumber)(e.rotate||0,i.rotate||0,n))}(o,r,this.latestValues,i,d,c)),s&&void 0!==s.rotate&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=s.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,tn.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tn.frame.update(()=>{ti.globalProjectionState.hasAnimatedSinceResize=!0,p.activeAnimations.layout++,this.motionValue||(this.motionValue=(0,x.motionValue)(0)),this.motionValue.jump(0,!1),this.currentAnimation=(0,a.animateSingleValue)(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{p.activeAnimations.layout--},onComplete:()=>{p.activeAnimations.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:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&tk(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,$.createBox)();let e=(0,j.calcLength)(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=(0,j.calcLength)(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}
1L(e,i),(0,F.transformBox)(e,s),(0,j.calcBoxDelta)(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Z),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;return 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&&ta("z",t,n,this.animationValues);for(let e=0;e<tr.length;e++)ta(`rotate${tr[e]}`,t,n,this.animationValues),ta(`skew${tr[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=(0,b.resolveMotionValue)(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=(0,b.resolveMotionValue)(e?.pointerEvents)||""),this.hasProjected&&!(0,te.hasTransform)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let s=n.animationValues||n.latestValues;this.applyTransformsToTarget();let r=function(t,e,i){let n="",s=t.x.translate/e.x,r=t.y.translate/e.y,o=i?.z||0;if((s||r||o)&&(n=`translate3d(${s}px, ${r}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,pathRotation:s,rotateX:r,rotateY:o,skewX:a,skewY:l}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotate(${s}deg) `),r&&(n+=`rotateX(${r}deg) `),o&&(n+=`rotateY(${o}deg) `),a&&(n+=`skewX(${a}deg) `),l&&(n+=`skewY(${l}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s);i&&(r=i(s,r)),t.transform=r;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?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,d.scaleCorrectors){if
1(void 0===s[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=d.scaleCorrectors[e],l="none"===r?s[e]:i(s[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?(0,b.resolveMotionValue)(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(tm),this.root.sharedNodes.clear()}}}function tu(t){t.updateLayout()}function th(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:s}=t.options,r=e.source!==t.layout.source;if("size"===s)(0,J.eachAxis)(t=>{let n=r?e.measuredBox[t]:e.layoutBox[t],s=(0,j.calcLength)(n);n.min=i[t].min,n.max=n.min+s});else if("x"===s||"y"===s){let t="x"===s?"y":"x";R(r?e.measuredBox[t]:e.layoutBox[t],i[t])}else tk(s,e.layoutBox,i)&&(0,J.eachAxis)(n=>{let s=r?e.measuredBox[n]:e.layoutBox[n],o=(0,j.calcLength)(i[n]);s.max=s.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=(0,$.createDelta)();(0,j.calcBoxDelta)(o,i,e.layoutBox);let a=(0,$.createDelta)();r?(0,j.calcBoxDelta)(a,t.applyTransform(n,!0),e.measuredBox):(0,j.calcBoxDelta)(a,i,e.layoutBox);let l=!G(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let o=t.options.layoutAnchor||void 0,a=(0,$.createBox)();(0,j.calcRelativePosition)(a,e.layoutBox,s.layoutBox,o);let l=(0,$.createBox)();(0,j.calcRelativePosition)(l,i,r.layoutBox,o),K(a,l)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function tc(t){m.statsBuffer.value&&ts.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function td(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function tp(t){t.clearSnapshot()}function tm(t){t.clearMeasurements()}function tf(t){t.isLayoutDirty=!0,t.updateLayout()}function tv(t){t.isLayoutDirty=!1}function tg(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function ty(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function tx(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function tb(t){t.resolveTargetDelta()}function tT(t){t.calcProjection()}function tw(t){t.resetSkewAndRotation()}function tS(t){t.removeLeadSnapshot()}function tP(t,e,i){t.translate=(0,y.mixNumber)(e.translate,0,i),t.scale=(0,y.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function tM(t,e,i,n){t.min=(0,y.mixNumber)(e.min,i.min,n),t.max=(0,y.mixNumber)(e.max,i.max,n)}function tV(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let tA={duration:.45,ease:[.4,0,.1,1]},tC=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),tE=tC("applewebkit/")&&!tC("chrome/")?Math.round:o.noop;function tD(t){t.min=tE(t.min),t.max=tE(t.max)}function tk(t,e,i){return"position"===t||"preserve-aspect"===t&&!(0,j.isNear)(X(e),X(i),.2)}function tR(t){return t!==t.root&&t.scroll?.wasRoot}var tL=t.i(8821);let tB=tl({attachResizeListener:(t,e)=>(0,tL.addDomEvent)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),tF={current:void 0},tj=tl({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!tF.current){let t=new tB({});t.mount(window),t.setOptions({layoutScroll:!0}),tF.current=t}return tF.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});t.s(["HTMLProjectionNode",0,tj],15990);let tI={pan:{Feature:i.PanGesture},drag:{Feature:e.DragGesture,ProjectionNode:tj,MeasureLayout:n.MeasureLayout}};t.s(["drag",0,tI],95259);
1var tO=t.i(38976),tN=t.i(10927),tU=t.i(88133);function tW(t,e){let i=(0,tU.resolveElements)(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}t.s(["setupGesture",0,tW],67454);var t$=t.i(93850);function tz(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&tn.frame.postRender(()=>s(e,(0,t$.extractEventInfo)(e)))}class tG extends tO.Feature{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=tW(t,i);return n.forEach(t=>{let i,n=!1,r=!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),r&&(r=!1,o(t))},l=t=>{if("touch"!==t.pointerType){if(n){r=!0;return}o(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||(0,tN.isDragActive)())return;r=!1;let o=e(t,n);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",l,s))},s),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",a,s)},s)}),r}(t,(t,e)=>(tz(this.node,e,"Start"),t=>tz(this.node,t,"End"))))}unmount(){}}t.s(["HoverGesture",0,tG],29599);var tH=tO,tY=t.i(15645);class tK extends tH.Feature{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=(0,tY.pipe)((0,tL.addDomEvent)(this.node.current,"focus",()=>this.onFocus()),(0,tL.addDomEvent)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}t.s(["FocusGesture",0,tK],532)},83795,t=>{"use strict";var e=t.i(60144),i=t.i(32512),n=t.i(41076),s=t.i(95259),r=t.i(29599),o=t.i(532),a=t.i(38976),l=t.i(61427),u=t.i(10927);let h=(t,e)=>!!e&&(t===e||h(t,e.parentElement));var c=t.i(58904),d=t.i(67454),p=t.i(96584);let m=new WeakSet;function f(t){return e=>{"Enter"===e.key&&t(e)}}function v(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function g(t){return(0,c.isPrimaryPointer)(t)&&!(0,u.isDragActive)()}let y=new WeakSet;var x=t.i(7953),b=t.i(93850);function T(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 s=n["onTap"+("End"===i?"":i)];s&&x.frame.postRender(()=>s(e,(0,b.extractEventInfo)(e)))}class w extends a.Feature{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=(0,d.setupGesture)(t,i),o=t=>{let n=t.currentTarget;if(!g(t)||y.has(t))return;m.add(n),i.stopPropagation&&y.add(t);let r=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),m.has(n)&&m.delete(n),g(t)&&"function"==typeof r&&r(t,{success:e})},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||h(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,s),(0,l.isHTMLElement)(t)&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=f(()=>{if(m.has(i))return;v(i,"down");let t=f(()=>{v(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>v(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s)),(0,p.isElementKeyboardAccessible)(t)||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(T(this.node,e,"Start"),(t,{success:e})=>T(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}var S=a;let P=new WeakMap,M=new WeakMap,V=t=>{let e=P.get(t.target);e&&e(t)},A=t=>{t.forEach(V)},C={some:0,all:1};class E extends S.Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:o}=i,a={root:n?n.current:void 0,rootMargin:s,threshold:"number"==typeof r?r:C[r]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;M.has(i)||M.set(i,{});let n=M.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(A,{root:t,...e})),n[s]}(a),P.set(t,l),e.observe(t),()=>{P.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let D={inView:{Feature:E},tap:{Feature:w},focus:{Feature:o.FocusGesture},hover:{Feature:r.HoverGesture}};var k=t.i(15990),R=t.i(24005);let L={layout:{ProjectionNode:k.HTMLProjectionNode,MeasureLayout:R.MeasureLayout}},B={...n.animations,...D,...s.drag,...L},F=(0,i.createMotionProxy)(B,e.createDomVisualElement);t.s(["motion",0,F],83795)},53445,t=>{"use strict";var e=t.i(15638),i=t.i(88133);let n={some:0,all:1};t.s(["useInView",0,function(t,{root:s,margin:r,amount:o,once:a=!1,initial:l=!1}={}){let[u,h]=(0,e.useState)(l);return(0,e.useEffect)(()=>
1{if(!t.current||a&&u)return;let e={root:s&&s.current||void 0,margin:r,amount:o};return function(t,e,{root:s,margin:r,amount:o="some"}={}){let a=(0,i.resolveElements)(t),l=new WeakMap,u=new IntersectionObserver(t=>{t.forEach(t=>{let i=l.get(t.target);if(!!i!==t.isIntersecting)if(t.isIntersecting){let i=e(t.target,t);"function"==typeof i?l.set(t.target,i):u.unobserve(t.target)}else"function"==typeof i&&(i(t),l.delete(t.target))})},{root:s,rootMargin:r,threshold:"number"==typeof o?o:n[o]});return a.forEach(t=>u.observe(t)),()=>u.disconnect()}(t.current,()=>(h(!0),a?void 0:()=>h(!1)),e)},[s,t,r,a,o]),u}],53445)},99897,t=>{"use strict";var e=t.i(10126),i=t.i(15638);t.i(38938);var n=t.i(61596),s=t.i(70950),r=t.i(40561),o=t.i(570),a=t.i(61427),l=i,u=t.i(12769);function h(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class c extends l.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,i=(0,a.isHTMLElement)(t)&&t.offsetWidth||0,n=(0,a.isHTMLElement)(t)&&t.offsetHeight||0,s=this.props.sizeRef.current;s.height=e.offsetHeight||0,s.width=e.offsetWidth||0,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 d({children:t,isPresent:n,anchorX:s,anchorY:r,root:o}){let a=(0,l.useId)(),p=(0,l.useRef)(null),m=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:f}=(0,l.useContext)(u.MotionConfigContext),v=function(...t){return i.useCallback(function(...t){return e=>{let i=!1,n=t.map(t=>{let n=h(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():h(t[e],null)}}}}(...t),t)}(p,t.props?.ref??t?.ref);return(0,l.useInsertionEffect)(()=>{let{width:t,height:e,top:i,left:l,right:u,bottom:h}=m.current;if(n||!p.current||!t||!e)return;let c="left"===s?`left: ${l}`:`right: ${u}`,d="bottom"===r?`bottom: ${h}`:`top: ${i}`;p.current.dataset.motionPopId=a;let v=document.createElement("style");f&&(v.nonce=f);let g=o??document.head;return g.appendChild(v),v.sheet&&v.sheet.insertRule(` 2 [data-motion-pop-id="${a}"] { 3 position: absolute !important; 4 width: ${t}px !important; 5 height: ${e}px !important; 6 ${c}px !important; 7 ${d}px !important; 8 } 9 `),()=>{g.contains(v)&&g.removeChild(v)}},[n]),(0,e.jsx)(c,{isPresent:n,childRef:p,sizeRef:m,children:l.cloneElement(t,{ref:v})})}let p=({children:t,initial:n,isPresent:r,onExitComplete:a,custom:l,presenceAffectsLayout:u,mode:h,anchorX:c,anchorY:p,root:f})=>{let v=(0,s.useConstant)(m),g=(0,i.useId)(),y=!0,x=(0,i.useMemo)(()=>(y=!1,{id:g,initial:n,isPresent:r,custom:l,onExitComplete:t=>
9{for(let e of(v.set(t,!0),v.values()))if(!e)return;a&&a()},register:t=>(v.set(t,!1),()=>v.delete(t))}),[r,v,a]);return u&&y&&(x={...x}),(0,i.useMemo)(()=>{v.forEach((t,e)=>v.set(e,!1))},[r]),i.useEffect(()=>{r||v.size||!a||a()},[r]),"popLayout"===h&&(t=(0,e.jsx)(d,{isPresent:r,anchorX:c,anchorY:p,root:f,children:t})),(0,e.jsx)(o.PresenceContext.Provider,{value:x,children:t})};function m(){return new Map}var f=t.i(82426);let v=t=>t.key||"";function g(t){let e=[];return i.Children.forEach(t,t=>{(0,i.isValidElement)(t)&&e.push(t)}),e}let y=({children:t,custom:o,initial:a=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:h="sync",propagate:c=!1,anchorX:d="left",anchorY:m="top",root:y})=>{let[x,b]=(0,f.usePresence)(c),T=(0,i.useMemo)(()=>g(t),[t]),w=c&&!x?[]:T.map(v),S=(0,i.useRef)(!0),P=(0,i.useRef)(T),M=(0,s.useConstant)(()=>new Map),V=(0,i.useRef)(new Set),[A,C]=(0,i.useState)(T),[E,D]=(0,i.useState)(T);(0,r.useIsomorphicLayoutEffect)(()=>{S.current=!1,P.current=T;for(let t=0;t<E.length;t++){let e=v(E[t]);w.includes(e)?(M.delete(e),V.current.delete(e)):!0!==M.get(e)&&M.set(e,!1)}},[E,w.length,w.join("-")]);let k=[];if(T!==A){let t=[...T];for(let e=0;e<E.length;e++){let i=E[e],n=v(i);w.includes(n)||(t.splice(e,0,i),k.push(i))}return"wait"===h&&k.length&&(t=k),D(g(t)),C(T),null}let{forceRender:R}=(0,i.useContext)(n.LayoutGroupContext);return(0,e.jsx)(e.Fragment,{children:E.map(t=>{let i=v(t),n=(!c||!!x)&&(T===E||w.includes(i));return(0,e.jsx)(p,{isPresent:n,initial:(!S.current||!!a)&&void 0,custom:o,presenceAffectsLayout:u,mode:h,root:y,onExitComplete:n?void 0:()=>{if(V.current.has(i)||(V.current.add(i),!M.has(i)))return;M.set(i,!0);let t=!0;M.forEach(e=>{e||(t=!1)}),t&&(R?.(),D(P.current),c&&b?.(),l&&l())},anchorX:d,anchorY:m,children:t},i)})})};var x=t.i(83795),b=t.i(53445);let T=x.motion;t.s(["MotionPreset",0,function({ref:t,children:n,className:s,component:r="div",transition:o={type:"spring",stiffness:200,damping:20},delay:a=0,inView:l=!0,inViewMargin:u="0px",inViewOnce:h=!0,blur:c=!1,slide:d=!1,fade:p=!1,zoom:m=!1,motionProps:f={}}){let v=i.useRef(null);i.useImperativeHandle(t,()=>v.current);let g=(0,b.useInView)(v,{once:h,margin:u}),w={},S={};if(c&&(w.filter=!0===c?"blur(10px)":`blur(${c})`,S.filter="blur(0px)"),d){let t=!0===d?100:d.offset??100,e=!0===d?"left":d.direction??"left",i="up"===e||"down"===e?"y":"x";w[i]="left"===e||"up"===e?-t:t,S[i]=0}p&&(w.opacity=!0===p?0:p.initialOpacity??0,S.opacity=!0===p?1:p.opacity??1),m&&(w.scale=!0===m?.5:m.initialScale??.5,S.scale=!0===m?1:m.scale??1);let P=T[r]||x.motion.div;return(0,e.jsx)(y,{children:(0,e.jsx)(P,{ref:v,initial:"hidden",animate:!l||g?"visible":"hidden",exit:"hidden",variants:{hidden:w,visible:S},transition:{...o,delay:(o?.delay??0)+a},className:s,...f,children:n})})}],99897)}]);
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.