1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95187,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={callServer:function(){return s.callServer},createServerReference:function(){return o.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let s=t.r(32120),a=t.r(92245),o=t.r(35326)},68943,t=>{"use strict";var e=t.i(43476),i=t.i(71645),n=t.i(95187);let r=(0,n.createServerReference)("0054924d641222629c9aae262a1a41544709af6163",n.callServer,void 0,n.findSourceMapURL,"createCart"),s=(0,n.createServerReference)("40e86fe219b173fdbb539b11385202eff43376e866",n.callServer,void 0,n.findSourceMapURL,"getCart"),a=(0,n.createServerReference)("705779ec4f3ccc5a34528bfd5b3f5d03ef85bda9bb",n.callServer,void 0,n.findSourceMapURL,"addToCart"),o=(0,n.createServerReference)("6081c164e394ee4a24e3e8794a091cb63c9865c4ce",n.callServer,void 0,n.findSourceMapURL,"removeFromCart"),l=(0,n.createServerReference)("7095c481e61a03354f8988808d8c95f9bb30b30cd8",n.callServer,void 0,n.findSourceMapURL,"updateCartItem"),u="shopify_cart_id",h=(0,i.createContext)(null);function c(){let t=(0,i.useContext)(h);if(!t)throw Error("useCart must be used within a CartProvider");return t}function d(t,e){if(!t)return t;switch(e.type){case"add":{let i=t.lines.findIndex(t=>t.merchandise.id===e.line.merchandise.id);if(i>=0){let n=[...t.lines];return n[i]={...n[i],quantity:n[i].quantity+e.line.quantity},{...t,lines:n,totalQuantity:t.totalQuantity+e.line.quantity}}return{...t,lines:[...t.lines,e.line],totalQuantity:t.totalQuantity+e.line.quantity}}case"remove":{let i=t.lines.find(t=>t.id===e.lineId);if(!i)return t;return{...t,lines:t.lines.filter(t=>t.id!==e.lineId),totalQuantity:t.totalQuantity-i.quantity}}case"update":{let i=t.lines.findIndex(t=>t.id===e.lineId);if(i<0)return t;let n=t.lines[i].quantity,r=[...t.lines];return r[i]={...r[i],quantity:e.quantity},{...t,lines:r,totalQuantity:t.totalQuantity-n+e.quantity}}default:return t}}function p({children:t}){let[n,c]=(0,i.useState)(null),[p,m]=(0,i.useState)(!1),[f,y]=(0,i.useState)(!0),[g,v]=(0,i.useTransition)(),x=(0,i.useRef)(null),w=(0,i.useRef)(Promise.resolve());(0,i.useLayoutEffect)(()=>{x.current=n},[n]);let[T,b]=(0,i.useOptimistic)(n,d);(0,i.useEffect)(()=>{!async function(){let t=localStorage.getItem(u);if(t){let e=await s(t);if(e){c(e),y(!1);return}}let e=await r();e&&(localStorage.setItem(u,e.id),c(e)),y(!1)}()},[]);let S=(0,i.useCallback)(()=>m(!0),[]),P=(0,i.useCallback)(()=>m(!1),[]),M=(0,i.useCallback)((t,e,i=1)=>{let n=x.current;if(!n)return Promise.resolve();let r=e.maxPerCustomer;if(null!==r){let t=r-n.lines.filter(t=>t.merchandise.product.id===e.id).reduce((t,e)=>t+e.quantity,0);if(t<=0)return Promise.resolve();i=Math.min(i,t)}let o={id:`temp-${Date.now()}-${Math.random()}`,quantity:i,merchandise:{id:t.id,title:t.title,price:t.price,selectedOptions:t.selectedOptions,product:{id:e.id,title:e.title,handle:e.handle,featuredImage:e.featuredImage,maxPerCustomer:e.maxPerCustomer}}},l=new Promise(n=>{v(async()=>{b({type:"add",line:o}),await w.current;try{let n=await a(x.current.id,t.id,i);if(n)c(n),window.klaviyo?.push(["track","Added to Cart",{$value:parseFloat(t.price.amount)*i,ProductName:e.title,ProductID:e.id,SKU:t.id,ImageURL:e.featuredImage?.url,Quantity:i}]);else{let n=await s(x.current.id);n&&(c(n),window.klaviyo?.push(["track","Added to Cart",{$value:parseFloat(t.price.amount)*i,ProductName:e.title,ProductID:e.id,SKU:t.id,ImageURL:e.featuredImage?.url,Quantity:i}]))}}finally{n()}})});return w.current=l,l},[b]),C=(0,i.useCallback)(t=>{if(!x.current)return Promise.resolve();let e=new Promise(e=>{v(async()=>{b({type:"remove",lineId:t}),await w.current;try{let e=await o(x.current.id,[t]);if(e)c(e);else{let t=await s(x.current.id);t&&c(t)}}finally{e()}})});return w.current=e,e},[b]),A=(0,i.useCallback)((t,e)=>{let i=x.current;if(!i)return Promise.resolve();let n=i.lines.find(e=>e.id===t);if(n){let r=n.merchandise.product.maxPerCustomer;if(null!==r){let s=i.lines.filter(e=>e.merchandise.product.id===n.merchandise.product.id&&e.id!==t).reduce((t,e)=>t+e.quantity,0);e=Math.min(e,r-s)}}if(e<=0){let e=new Promise(e=>{v(async()=>{b({type:"remove",lineId:t}),await w.current;try{let e=await o(x.current.id,[t]);if(e)c(e);else{let t=await s(x.current.id);t&&c(t)}}finally{e()}})});return w.current=e,e}let r=new Promise(i=>{v(async()=>{b({type:"update",lineId:t,quantity:e}),await w.current;try{let i=await l(x.current.id,t,e);if(i)c(i);else{let t=await s(x.current.id);t&&c(t)}}finally{i()}})});return w.current=r,r},[b]);return(0,e.jsx)(h.Provider,{value:{cart:n,optimisticCart:T,isCartOpen:p,isLoading:f,isPending:g,openCart:S,closeCart:P,addToCart:M,removeFromCart:C,updateQuantity:A},children:t})}t.s(["CartProvider",()=>p,"useCart",()=>c],68943)},31178,t=>{"use strict";let e=(0,t.i(71645).createContext)({});t.s(["LayoutGroupContext",()=>e])},47414,t=>{"use strict";var e=t.i(71645);function i(t){let i=(0,e.useRef)(null);return null===i.current&&(i.current=t()),i.current}t.s(["useConstant",()=>i])},74008,92936,t=>{"use strict";var e=t.i(71645);let i="u">typeof window;t.s(["isBrowser",()=>i],92936);let n=i?e.useLayoutEffect:e.useEffect;t.s(["useIsomorphicLayoutEffect",()=>n],74008)},88653,21476,42824,72846,37806,64978,57788,76959,66820,63011,65091,22660,79444,69577,8792,34929,3973,30162,83411,64440,84061,77942,65566,72590,19928,84015,11485,81296,44493,t=>{"use strict";var e=t.i(47167),i=t.i(43476),n=t.i(71645),r=t.i(31178),s=t.i(47414),a=t.i(
174008);let o=(0,n.createContext)(null);function l(t){return"object"==typeof t&&null!==t}function u(t){return l(t)&&"offsetHeight"in t}t.s(["PresenceContext",()=>o],21476),t.s(["isObject",()=>l],42824),t.s(["isHTMLElement",()=>u],72846);var h=n;let c=(0,n.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function d(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}t.s(["MotionConfigContext",()=>c],37806);class p extends h.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,i=u(t)&&t.offsetWidth||0,n=u(t)&&t.offsetHeight||0,r=this.props.sizeRef.current;r.height=e.offsetHeight||0,r.width=e.offsetWidth||0,r.top=e.offsetTop,r.left=e.offsetLeft,r.right=i-r.width-r.left,r.bottom=n-r.height-r.top}return null}componentDidUpdate(){}render(){return this.props.children}}function m({children:t,isPresent:e,anchorX:r,anchorY:s,root:a}){let o=(0,h.useId)(),l=(0,h.useRef)(null),u=(0,h.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:m}=(0,h.useContext)(c),f=function(...t){return n.useCallback(function(...t){return e=>{let i=!1,n=t.map(t=>{let n=d(t,e);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let e=0;e<n.length;e++){let i=n[e];"function"==typeof i?i():d(t[e],null)}}}}(...t),t)}(l,t.props?.ref??t?.ref);return(0,h.useInsertionEffect)(()=>{let{width:t,height:i,top:n,left:h,right:c,bottom:d}=u.current;if(e||!l.current||!t||!i)return;let p="left"===r?`left: ${h}`:`right: ${c}`,f="bottom"===s?`bottom: ${d}`:`top: ${n}`;l.current.dataset.motionPopId=o;let y=document.createElement("style");m&&(y.nonce=m);let g=a??document.head;return g.appendChild(y),y.sheet&&y.sheet.insertRule(` 2 [data-motion-pop-id="${o}"] { 3 position: absolute !important; 4 width: ${t}px !important; 5 height: ${i}px !important; 6 ${p}px !important; 7 ${f}px !important; 8 } 9 `),()=>{g.contains(y)&&g.removeChild(y)}},[e]),(0,i.jsx)(p,{isPresent:e,childRef:l,sizeRef:u,children:h.cloneElement(t,{ref:f})})}let f=({children:t,initial:e,isPresent:r,onExitComplete:a,custom:l,presenceAffectsLayout:u,mode:h,anchorX:c,anchorY:d,root:p})=>{let f=(0,s.useConstant)(y),g=(0,n.useId)(),v=!0,x=(0,n.useMemo)(()=>(v=!1,{id:g,initial:e,isPresent:r,custom:l,onExitComplete:t=>{for(let e of(f.set(t,!0),f.values()))if(!e)return;a&&a()},register:t=>(f.set(t,!1),()=>f.delete(t))}),[r,f,a]);return u&&v&&(x={...x}),(0,n.useMemo)(()=>{f.forEach((t,e)=>f.set(e,!1))},[r]),n.useEffect(()=>{r||f.size||!a||a()},[r]),"popLayout"===h&&(t=(0,i.jsx)(m,{isPresent:r,anchorX:c,anchorY:d,root:p,children:t})),(0,i.jsx)(o.Provider,{value:x,children:t})};function y(){return new Map}function g(t=!0){let e=(0,n.useContext)(o);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:r,register:s}=e,a=(0,n.useId)();(0,n.useEffect)(()=>{if(t)return s(a)},[t]);let l=(0,n.useCallback)(()=>t&&r&&r(a),[a,r,t]);return!i&&r?[!1,l]:[!0]}t.s(["usePresence",()=>g],64978);let v=t=>t.key||"";function x(t){let e=[];return n.Children.forEach(t,t=>{(0,n.isValidElement)(t)&&e.push(t)}),e}let w=({children:t,custom:e,initial:o=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:h="sync",propagate:c=!1,anchorX:d="left",anchorY:p="top",root:m})=>{let[y,w]=g(c),T=(0,n.useMemo)(()=>x(t),[t]),b=c&&!y?[]:T.map(v),S=(0,n.useRef)(!0),P=(0,n.useRef)(T),M=(0,s.useConstant)(()=>new Map),C=(0,n.useRef)(new Set),[A,V]=(0,n.useState)(T),[E,k]=(0,n.useState)(T);(0,a.useIsomorphicLayoutEffect)(()=>{S.current=!1,P.current=T;for(let t=0;t<E.length;t++){let e=v(E[t]);b.includes(e)?(M.delete(e),C.current.delete(e)):!0!==M.get(e)&&M.set(e,!1)}},[E,b.length,b.join("-")]);let D=[];if(T!==A){let t=[...T];for(let e=0;e<E.length;e++){let i=E[e],n=v(i);b.includes(n)||(t.splice(e,0,i),D.push(i))}return"wait"===h&&D.length&&(t=D),k(x(t)),V(T),null}let{forceRender:R}=(0,n.useContext)(r.LayoutGroupContext);return(0,i.jsx)(i.Fragment,{children:E.map(t=>{let n=v(t),r=(!c||!!y)&&(T===E||b.includes(n));return(0,i.jsx)(f,{isPresent:r,initial:(!S.current||!!o)&&void 0,custom:e,presenceAffectsLayout:u,mode:h,root:m,onExitComplete:r?void 0:()=>
9{if(C.current.has(n)||(C.current.add(n),!M.has(n)))return;M.set(n,!0);let t=!0;M.forEach(e=>{e||(t=!1)}),t&&(R?.(),k(P.current),c&&w?.(),l&&l())},anchorX:d,anchorY:p,children:t},n)})})};t.s(["AnimatePresence",()=>w],88653);let T=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],b=new Set(T);t.s(["transformPropOrder",()=>T,"transformProps",()=>b],57788);let S=(t,e,i)=>i>e?e:i<t?t:i;t.s(["clamp",()=>S],76959);let P={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},M={...P,transform:t=>S(0,1,t)},C={...P,default:1},A=t=>Math.round(1e5*t)/1e5,V=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,E=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,k=(t,e)=>i=>!!("string"==typeof i&&E.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),D=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,s,a,o]=n.match(V);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},R={...P,transform:t=>Math.round(S(0,255,t))},L={test:k("rgb","red"),parse:D("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+R.transform(t)+", "+R.transform(e)+", "+R.transform(i)+", "+A(M.transform(n))+")"};t.s(["rgba",()=>L],66820);let B={test:k("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:L.transform};t.s(["hex",()=>B],63011);let j=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),F=j("deg"),I=j("%"),O=j("px"),U=j("vh"),N=j("vw"),$={...I,parse:t=>I.parse(t)/100,transform:t=>I.transform(100*t)};t.s(["degrees",()=>F,"percent",()=>I,"progressPercentage",()=>$,"px",()=>O,"vh",()=>U,"vw",()=>N],65091);let W={test:k("hsl","hue"),parse:D("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+I.transform(A(e))+", "+I.transform(A(i))+", "+A(M.transform(n))+")"};t.s(["hsla",()=>W],22660);let H={test:t=>L.test(t)||B.test(t)||W.test(t),parse:t=>L.test(t)?L.parse(t):W.test(t)?W.parse(t):B.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?L.transform(t):W.transform(t),getAnimatableNone:t=>{let e=H.parse(t);return e.alpha=0,H.transform(e)}};t.s(["color",()=>H],79444);let z=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Y="number",X="color",q=/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 G(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,a=e.replace(q,t=>(H.test(t)?(n.color.push(s),r.push(X),i.push(H.parse(t))):t.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(t)):(n.number.push(s),r.push(Y),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:a,indexes:n,types:r}}function K(t){return G(t).values}function _(t){let{split:e,types:i}=G(t),n=e.length;return t=>{let r="";for(let s=0;s<n;s++)if(r+=e[s],void 0!==t[s]){let e=i[s];e===Y?r+=A(t[s]):e===X?r+=H.transform(t[s]):r+=t[s]}return r}}let Z=t=>"number"==typeof t?0:H.test(t)?H.getAnimatableNone(t):t,Q={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(V)?.length||0)+(t.match(z)?.length||0)>0},parse:K,createTransformer:_,getAnimatableNone:function(t){let e=K(t);return _(t)(e.map(Z))}};t.s(["analyseComplexValue",()=>G,"complex",()=>Q],69577);let J=new Set(["brightness","contrast","saturate","opacity"]);function tt(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(V)||[];if(!n)return t;let r=i.replace(n,""),s=+!!J.has(e);return n!==i&&(s*=100),e+"("+s+r+")"}let te=/\b([a-z-]*)\(.*?\)/gu,ti={...Q,getAnimatableNone:t=>{let e=t.match(te);return e?e.map(tt).join(" "):t}};t.s(["filter",()=>ti],8792);let tn={...P,transform:Math.round},tr={borderWidth:O,borderTopWidth:O,borderRightWidth:O,borderBottomWidth:O,borderLeftWidth:O,borderRadius:O,borderTopLeftRadius:O,borderTopRightRadius:O,borderBottomRightRadius:O,borderBottomLeftRadius:O,width:O,maxWidth:O,height:O,maxHeight:O,top:O,right:O,bottom:O,left:O,inset:O,insetBlock:O,insetBlockStart:O,insetBlockEnd:O,insetInline:O,insetInlineStart:O,insetInlineEnd:O,padding:O,paddingTop:O,paddingRight:O,paddingBottom:O,paddingLeft:O,paddingBlock:O,paddingBlockStart:O,paddingBlockEnd:O,paddingInline:O,paddingInlineStart:O,paddingInlineEnd:O,margin:O,marginTop:O,marginRight:O,marginBottom:O,marginLeft:O,marginBlock:O,marginBlockStart:O,marginBlockEnd:O,marginInline:O,marginInlineStart:O,marginInlineEnd:O,fontSize:O,backgroundPositionX:O,backgroundPositionY:O,rotate:F,rotateX:F,rotateY:F,rotateZ:F,scale:C,scaleX:C,scaleY:C,scaleZ:C,skew:
9F,skewX:F,skewY:F,distance:O,translateX:O,translateY:O,translateZ:O,x:O,y:O,z:O,perspective:O,transformPerspective:O,opacity:M,originX:$,originY:$,originZ:O,zIndex:tn,fillOpacity:M,strokeOpacity:M,numOctaves:tn};t.s(["numberValueTypes",()=>tr],34929);let ts={...tr,color:H,backgroundColor:H,outlineColor:H,fill:H,stroke:H,borderColor:H,borderTopColor:H,borderRightColor:H,borderBottomColor:H,borderLeftColor:H,filter:ti,WebkitFilter:ti},ta=t=>ts[t];t.s(["getDefaultValueType",()=>ta],3973);let to=()=>({translate:0,scale:1,origin:0,originPoint:0}),tl=()=>({x:to(),y:to()}),tu=()=>({min:0,max:0}),th=()=>({x:tu(),y:tu()});t.s(["createBox",()=>th,"createDelta",()=>tl],30162);let tc=t=>!!(t&&t.getVelocity);t.s(["isMotionValue",()=>tc],83411);let td=new Set(["width","height","top","left","right","bottom",...T]);t.s(["positionalKeys",()=>td],64440);let tp=t=>e=>e.test(t);t.s(["testValueType",()=>tp],84061);let tm=[P,O,I,F,N,U,{test:t=>"auto"===t,parse:t=>t}],tf=t=>tm.find(tp(t));t.s(["dimensionValueTypes",()=>tm,"findDimensionValueType",()=>tf],77942);let ty=()=>{},tg=()=>{};e.default,t.s(["invariant",()=>tg,"warning",()=>ty],65566);let tv=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);t.s(["isNumericalString",()=>tv],72590);let tx=t=>e=>"string"==typeof e&&e.startsWith(t),tw=tx("--"),tT=tx("var(--"),tb=t=>!!tT(t)&&tS.test(t.split("/*")[0].trim()),tS=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tP(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}t.s(["containsCSSVariable",()=>tP,"isCSSVariableName",()=>tw,"isCSSVariableToken",()=>tb],19928);let tM=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function tC(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}t.s(["getVariableValue",()=>function t(e,i,n=1){tg(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,s]=function(t){let e=tM.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${i??n}`,r]}(e);if(!r)return;let a=window.getComputedStyle(i).getPropertyValue(r);if(a){let t=a.trim();return tv(t)?parseFloat(t):t}return tb(s)?t(s,i,n+1):s}],84015),t.s(["fillWildcards",()=>tC],11485);let tA=t=>180*t/Math.PI,tV=t=>tk(tA(Math.atan2(t[1],t[0]))),tE={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:tV,rotateZ:tV,skewX:t=>tA(Math.atan(t[1])),skewY:t=>tA(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tk=t=>((t%=360)<0&&(t+=360),t),tD=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tR=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tL={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tD,scaleY:tR,scale:t=>(tD(t)+tR(t))/2,rotateX:t=>tk(tA(Math.atan2(t[6],t[5]))),rotateY:t=>tk(tA(Math.atan2(-t[2],t[0]))),rotateZ:tV,rotate:tV,skewX:t=>tA(Math.atan(t[4])),skewY:t=>tA(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tB(t){return+!!t.includes("scale")}function tj(t,e){let i,n;if(!t||"none"===t)return tB(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=tL,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tE,n=e}if(!n)return tB(e);let s=i[e],a=n[1].split(",").map(tI);return"function"==typeof s?s(a):a[s]}let tF=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tj(i,e)};function tI(t){return parseFloat(t.trim())}t.s(["defaultTransformValue",()=>tB,"parseValueFromTransform",()=>tj,"readTransformValue",()=>tF],81296);let tO=t=>t===P||t===O,tU=new Set(["x","y","z"]),tN=T.filter(t=>!tU.has(t));function t$(t){let e=[];return tN.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}let tW={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>tj(e,"x"),y:(t,{transform:e})=>tj(e,"y")};tW.translateX=tW.x,tW.translateY=tW.y,t.s(["isNumOrPxType",()=>tO,"positionalValues",()=>tW,"removeNonTranslationalTransform",()=>t$],44493)},87022,60830,46791,80248,51571,t=>{"use strict";let e=t=>t;t.s(["noop",()=>e],60830);let i={};t.s(["MotionGlobalConfig",()=>i],46791);let n=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],r={value:null,addProjectionMetrics:null};function s(t,e){let s=!1,a=!0,o={delta:0,timestamp:0,isProcessing:!1},l=()=>s=!0,u=n.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,s=!1,a=!1,o=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},u=0;function h(e){o.has(e)&&(c.schedule(e),t()),u++,e(l)}let c={schedule:(t,e=!1,r=!1)=>{let a=r&&s?i:n;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(l=t,s){a=!0;return}
9s=!0,[i,n]=[n,i],i.forEach(h),e&&r.value&&r.value.frameloop[e].push(u),u=0,i.clear(),s=!1,a&&(a=!1,c.process(t))}};return c}(l,e?i:void 0),t),{}),{setup:h,read:c,resolveKeyframes:d,preUpdate:p,update:m,preRender:f,render:y,postRender:g}=u,v=()=>{let n=i.useManualTiming?o.timestamp:performance.now();s=!1,i.useManualTiming||(o.delta=a?1e3/60:Math.max(Math.min(n-o.timestamp,40),1)),o.timestamp=n,o.isProcessing=!0,h.process(o),c.process(o),d.process(o),p.process(o),m.process(o),f.process(o),y.process(o),g.process(o),o.isProcessing=!1,s&&e&&(a=!1,t(v))};return{schedule:n.reduce((e,i)=>{let n=u[i];return e[i]=(e,i=!1,r=!1)=>(!s&&(s=!0,a=!0,o.isProcessing||t(v)),n.schedule(e,i,r)),e},{}),cancel:t=>{for(let e=0;e<n.length;e++)u[n[e]].cancel(t)},state:o,steps:u}}t.s(["statsBuffer",()=>r],80248),t.s(["createRenderBatcher",()=>s],51571);let{schedule:a,cancel:o,state:l,steps:u}=s("u">typeof requestAnimationFrame?requestAnimationFrame:e,!0);t.s(["cancelFrame",()=>o,"frame",()=>a,"frameData",()=>l,"frameSteps",()=>u],87022)},34537,t=>{"use strict";var e,i,n=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,r=(e=function(t){return n.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&91>t.charCodeAt(2)},i=Object.create(null),function(t){return void 0===i[t]&&(i[t]=e(t)),i[t]});t.s(["default",()=>r],34537)},46932,33887,86427,72094,17218,706,75737,86783,63074,21748,73431,93544,83920,15932,15923,97307,72323,68705,89026,36331,49652,t=>{"use strict";let e,i,n;var r,s=t.i(57788),a=t.i(3973),o=t.i(30162),l=t.i(83411),u=t.i(64440),h=t.i(77942),c=t.i(84015),d=t.i(19928),p=t.i(11485),m=t.i(44493),f=t.i(87022);let y=new Set,g=!1,v=!1,x=!1;function w(){if(v){let t=Array.from(y).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=(0,m.removeNonTranslationalTransform)(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}
9v=!1,g=!1,y.forEach(t=>t.complete(x)),y.clear()}function T(){y.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(v=!0)})}class b{constructor(t,e,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(y.add(this),g||(g=!0,f.frame.read(T),f.frame.resolveKeyframes(w))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let r=n?.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}(0,p.fillWildcards)(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),y.delete(this)}cancel(){"scheduled"===this.state&&(y.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}var S=t.i(69577),P=t.i(8792);function M(t,e){let i=(0,a.getDefaultValueType)(t);return i!==P.filter&&(i=S.complex),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let C=new Set(["auto","none","0"]);class A extends b{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&(n=n.trim(),(0,d.isCSSVariableToken)(n))){let r=(0,c.getVariableValue)(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!u.positionalKeys.has(i)||2!==t.length)return;let[n,r]=t,s=(0,h.findDimensionValueType)(n),a=(0,h.findDimensionValueType)(r);if((0,d.containsCSSVariable)(n)!==(0,d.containsCSSVariable)(r)&&m.positionalValues[i]){this.needsMeasurement=!0;return}if(s!==a)if((0,m.isNumOrPxType)(s)&&(0,m.isNumOrPxType)(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else m.positionalValues[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&&!C.has(e)&&(0,S.analyseComplexValue)(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=M(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=m.positionalValues[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let r=i.length-1,s=i[r];i[r]=m.positionalValues[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
9h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}t.i(47167);var V=t.i(72590);function E(t,e){-1===t.indexOf(e)&&t.push(e)}function k(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}t.s(["addUniqueItem",()=>E,"removeItem",()=>k],33887);class D{constructor(){this.subscriptions=[]}add(t){return E(this.subscriptions,t),()=>k(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let{schedule:R}=(0,t.i(51571).createRenderBatcher)(queueMicrotask,!1);var L=t.i(46791);function B(){e=void 0}let j={now:()=>(void 0===e&&j.set(f.frameData.isProcessing||L.MotionGlobalConfig.useManualTiming?f.frameData.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(B)}};class F{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=j.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=j.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 D);let i=this.events[t].add(e);return"change"===t?()=>{i(),f.frame.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 n&&n.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=j.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function I(t,e){return new F(t,e)}t.s(["motionValue",()=>I],86427);var O=t.i(79444),U=t.i(84061);let N=[...h.dimensionValueTypes,O.color,S.complex],$={current:null},W={current:!1},H="u">typeof window,z=new WeakMap;function Y(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function X(t){return"string"==typeof t||Array.isArray(t)}t.s(["visualElementStore",()=>z],72094);let q=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],G=["initial",...q];function K(t){return Y(t.animate)||G.some(e=>X(t[e]))}function _(t){return!!(K(t)||t.variants)}function Z(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function Q(t,e,i,n){if("function"==typeof e){let[r,s]=Z(n);e=e(void 0!==i?i:t.custom,r,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,s]=Z(n);e=e(void 0!==i?i:t.custom,r,s)}return e}let J=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tt={};function te(t){tt=t}function ti(){return tt}
9class tn{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:r,blockInitialAnimation:s,visualState:a},o={}){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=b,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=j.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,f.frame.render(this.render,!1,!0))};const{latestValues:u,renderState:h}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=e.initial?{...u}:{},this.renderState=h,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=r,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=K(e),this.isVariantNode=_(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in d){const e=d[t];void 0!==u[t]&&(0,l.isMotionValue)(e)&&e.set(u[t])}}mount(t){this.current=t,z.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:(W.current||function(){if(W.current=!0,H)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>$.current=t.matches;t.addEventListener("change",e),e()}else $.current=!1}(),this.shouldReduceMotion=$.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,f.cancelFrame)(this.notifyUpdate),(0,f.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 i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=s.transformProps.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&f.frame.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in tt){let e=tt[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,o.createBox)()}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<J.length;e++){let i=J[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}
9this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if((0,l.isMotionValue)(r))t.addValue(n,r);else if((0,l.isMotionValue)(s))t.addValue(n,I(r,{owner:t}));else if(s!==r)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,I(void 0!==e?e:r,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=I(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;if("string"==typeof i&&((0,V.isNumericalString)(i)||(n=i,/^0[^.\s]+$/u.test(n))))i=parseFloat(i);else{let n;n=i,!N.find((0,U.testValueType)(n))&&S.complex.test(e)&&(i=M(t,e))}this.setBaseTarget(t,(0,l.isMotionValue)(i)?i.get():i)}return(0,l.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=Q(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,l.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 D),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){R.render(this.render)}}t.s(["VisualElement",()=>tn,"getFeatureDefinitions",()=>ti,"setFeatureDefinitions",()=>te],17218);class tr extends tn{constructor(){super(...arguments),this.KeyframeResolver=A}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,l.isMotionValue)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function ts(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let ta=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var to=t.i(34929);let tl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tu=s.transformPropOrder.length;function th(t,e,i){let{style:n,vars:r,transformOrigin:a}=t,o=!1,l=!1;for(let t in e){let i=e[t];if(s.transformProps.has(t)){o=!0;continue}if((0,d.isCSSVariableName)(t)){r[t]=i;continue}{let e=ta(i,to.numberValueTypes[t]);t.startsWith("origin")?(l=!0,a[t]=e):n[t]=e}}if(!e.transform&&(o||i?n.transform=function(t,e,i){let n="",r=!0;for(let a=0;a<tu;a++){let o=s.transformPropOrder[a],l=t[o];if(void 0===l)continue;let u=!0;if("number"==typeof l)u=l===+!!o.startsWith("scale");else{let t=parseFloat(l);u=o.startsWith("scale")?1===t:0===t}if(!u||i){let t=ta(l,to.numberValueTypes[o]);if(!u){r=!1;let e=tl[o]||o;n+=`${e}(${t}) `}i&&(e[o]=t)}}return n=n.trim(),i?n=i(e,r?"":n):r&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),l){let{originX:t="50%",originY:e="50%",originZ:i=0}=a;n.transformOrigin=`${t} ${e} ${i}`}}let tc={offset:"stroke-dashoffset",array:"stroke-dasharray"},td={offset:"strokeDashoffset",array:"strokeDasharray"},tp=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tm(t,{attrX:e,attrY:i,attrScale:n,pathLength:r,pathSpacing:s=1,pathOffset:a=0,...o}
9,l,u,h){if(th(t,o,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),tp))void 0!==c[t]&&(d[t]=c[t],delete c[t]);void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==n&&(c.scale=n),void 0!==r&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?tc:td;t[s.offset]=`${-n}`,t[s.array]=`${e} ${i}`}(c,r,s,a,!1)}let tf=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"]),ty=t=>"string"==typeof t&&"svg"===t.toLowerCase();function tg(t,{style:e,vars:i},n,r){let s,a=t.style;for(s in e)a[s]=e[s];for(s in r?.applyProjectionStyles(a,n),i)a.setProperty(s,i[s])}var tv=t.i(65091);function tx(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let tw={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!tv.px.test(t))return t;else t=parseFloat(t);let i=tx(t,e.target.x),n=tx(t,e.target.y);return`${i}% ${n}%`}},tT=(t,e,i)=>t+(e-t)*i;t.s(["mixNumber",()=>tT],706);let tb={borderRadius:{...tw,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tw,borderTopRightRadius:tw,borderBottomLeftRadius:tw,borderBottomRightRadius:tw,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),s=+("number"!=typeof n[0]),a=i.x.scale*e.x,o=i.y.scale*e.y;n[0+s]/=a,n[1+s]/=o;let l=tT(a,o,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};function tS(t,{layout:e,layoutId:i}){return s.transformProps.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!tb[t]||"opacity"===t)}function tP(t,e,i){let n=t.style,r=e?.style,s={};if(!n)return s;for(let e in n)((0,l.isMotionValue)(n[e])||r&&(0,l.isMotionValue)(r[e])||tS(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(s[e]=n[e]);return s}function tM(t,e,i){let n=tP(t,e,i);for(let i in t)((0,l.isMotionValue)(t[i])||(0,l.isMotionValue)(e[i]))&&(n[-1!==s.transformPropOrder.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class tC extends tr{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=o.createBox}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(s.transformProps.has(e)){let t=(0,a.getDefaultValueType)(e);return t&&t.default||0}return e=tf.has(e)?e:ts(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return tM(t,e,i)}build(t,e,i){tm(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in tg(t,e,void 0,n),e.attrs)t.setAttribute(tf.has(i)?i:ts(i),e.attrs[i])}mount(t){this.isSVGTag=ty(t.tagName),super.mount(t)}}t.s(["SVGVisualElement",()=>tC],75737);var tA=t.i(81296);function tV({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function tE(t){return void 0===t||1===t}function tk({scale:t,scaleX:e,scaleY:i}){return!tE(t)||!tE(e)||!tE(i)}function tD(t){return tk(t)||tR(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function tR(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function tL(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function tB(t,e=0,i=1,n,r){t.min=tL(t.min,e,i,n,r),t.max=tL(t.max,e,i,n,r)}function tj(t,{x:e,y:i}){tB(t.x,e.translate,e.scale,e.originPoint),tB(t.y,i.translate,i.scale,i.originPoint)}function tF(t,e){t.min=t.min+e,t.max=t.max+e}function tI(t,e,i,n,r=.5){let s=tT(t.min,t.max,r);tB(t,e,i,s,n)}function tO(t,e){tI(t.x,e.x,e.scaleX,e.scale,e.originX),tI(t.y,e.y,e.scaleY,e.scale,e.originY)}function tU(t,e){return tV(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}class tN extends tr{constructor(){super(...arguments),this.type="html",this.renderInstance=tg}readValueFromInstance(t,e){if(s.transformProps.has(e))return this.projection?.isProjecting?(0,tA.defaultTransformValue)(e):(0,tA.readTransformValue)(t,e);{let i=window.getComputedStyle(t),n=((0,d.isCSSVariableName)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return tU(t,e)}
9build(t,e,i){th(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return tP(t,e,i)}}t.s(["HTMLVisualElement",()=>tN],86783);var t$=t.i(71645);let tW=["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 tH(t){if("string"!=typeof t||t.includes("-"));else if(tW.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var tz=t.i(43476),tY=t.i(31178);let tX=(0,t$.createContext)({strict:!1});var tq=t.i(37806);let tG=(0,t$.createContext)({});function tK(t){return Array.isArray(t)?t.join(" "):t}let t_=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tZ(t,e,i){for(let n in e)(0,l.isMotionValue)(e[n])||tS(n,i)||(t[n]=e[n])}let tQ=()=>({...t_(),attrs:{}}),tJ=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 t0(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||tJ.has(t)}let t1=t=>!t0(t);try{r=t.r(34537).default,"function"==typeof r&&(t1=t=>t.startsWith("on")?!t0(t):r(t))}catch{}function t2(t){return(0,l.isMotionValue)(t)?t.get():t}var t3=t.i(21476),t4=t.i(47414);let t5=t=>(e,i)=>{let n=(0,t$.useContext)(tG),r=(0,t$.useContext)(t3.PresenceContext),s=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,r){return{latestValues:function(t,e,i,n){let r={},s=n(t,{});for(let t in s)r[t]=t2(s[t]);let{initial:a,animate:o}=t,l=K(t),u=_(t);e&&u&&!l&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===o&&(o=e.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===a)?o:a;if(c&&"boolean"!=typeof c&&!Y(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let n=Q(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(i,n,r,t),renderState:e()}})(t,e,n,r);return i?s():(0,t4.useConstant)(s)},t7=t5({scrapeMotionValuesFromProps:tP,createRenderState:t_}),t6=t5({scrapeMotionValuesFromProps:tM,createRenderState:tQ});var t9=t.i(92936);let t8={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"]},et=!1;function ee(){return!function(){if(et)return;let t={};for(let e in t8)t[e]={isEnabled:t=>t8[e].some(e=>!!t[e])};tt=t,et=!0}(),tt}let ei=Symbol.for("motionComponentSymbol"),en="data-"+ts("framerAppearId"),er=(0,t$.createContext)({});function es(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var ea=t.i(74008);function eo(t,{forwardMotionProps:e=!1,type:i}={},n,r){n&&function(t){let e=ee();for(let i in t)e[i]={...e[i],...t[i]};tt=e}(n);let s=i?"svg"===i:tH(t),a=s?t6:t7;function o(i,n){var o;let u,h,c,d={...(0,t$.useContext)(tq.MotionConfigContext),...i,layoutId:function({layoutId:t}){let e=(0,t$.useContext)(tY.LayoutGroupContext).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:p}=d,m=function(t){let{initial:e,animate:i}=function(t,e){if(K(t)){let{initial:e,animate:i}=t;return{initial:!1===e||X(e)?e:void 0,animate:X(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,t$.useContext)(tG));return(0,t$.useMemo)(()=>({initial:e,animate:i}),[tK(e),tK(i)])}(i),f=a(i,p);if(!p&&t9.isBrowser){(0,t$.useContext)(tX).strict;let e=function(t){let{drag:e,layout:i}=ee();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
9(d);u=e.MeasureLayout,m.visualElement=function(t,e,i,n,r,s){let{visualElement:a}=(0,t$.useContext)(tG),o=(0,t$.useContext)(tX),l=(0,t$.useContext)(t3.PresenceContext),u=(0,t$.useContext)(tq.MotionConfigContext),h=u.reducedMotion,c=u.skipAnimations,d=(0,t$.useRef)(null),p=(0,t$.useRef)(!1);n=n||o.renderer,!d.current&&n&&(d.current=n(t,{visualState:e,parent:a,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:h,skipAnimations:c,isSVG:s}),p.current&&d.current&&(d.current.manuallyAnimateOnMount=!0));let m=d.current,f=(0,t$.useContext)(er);m&&!m.projection&&r&&("html"===m.type||"svg"===m.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!a||o&&es(o),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u})}(d.current,i,r,f);let y=(0,t$.useRef)(!1);(0,t$.useInsertionEffect)(()=>{m&&y.current&&m.update(i,l)});let g=i[en],v=(0,t$.useRef)(!!g&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return(0,ea.useIsomorphicLayoutEffect)(()=>{p.current=!0,m&&(y.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,t$.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),v.current=!1),m.enteringChildren=void 0)}),m}(t,f,d,r,e.ProjectionNode,s)}return(0,tz.jsxs)(tG.Provider,{value:m,children:[u&&m.visualElement?(0,tz.jsx)(u,{visualElement:m.visualElement,...d}):null,function(t,e,i,{latestValues:n},r,s=!1,a){let o=(a??tH(t)?function(t,e,i,n){let r=(0,t$.useMemo)(()=>{let i=tQ();return tm(i,e,ty(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};tZ(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i,n,r={},s=(i=t.style||{},tZ(n={},i,t),Object.assign(n,function({transformTemplate:t},e){return(0,t$.useMemo)(()=>{let i=t_();return th(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=s,r})(e,n,r,t),u=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(t1(r)||!0===i&&t0(r)||!e&&!t0(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(e,"string"==typeof t,s),h=t!==t$.Fragment?{...u,...o,ref:i}:{},{children:c}=e,d=(0,t$.useMemo)(()=>(0,l.isMotionValue)(c)?c.get():c,[c]);return(0,t$.createElement)(t,{...h,children:d})}(t,i,(o=m.visualElement,h=(0,t$.useRef)(n),(0,t$.useInsertionEffect)(()=>{h.current=n}),c=(0,t$.useRef)(null),(0,t$.useCallback)(t=>{t&&f.onMount?.(t),o&&(t?o.mount(t):o.unmount());let e=h.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(c.current=i)}else c.current?(c.current(),c.current=null):e(t);else e&&(e.current=t)},[o])),f,p,e,s)]})}o.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let u=(0,t$.forwardRef)(o);return u[ei]=t,u}class el{constructor(t){this.isMounted=!1,this.node=t}update(){}}function eu(t,e,i){let n=t.getProps();return Q(n,e,void 0!==i?i:n.custom,t)}function eh(t,e){return t?.[e]??t?.default??t}let ec=t=>Array.isArray(t);function ed(t,e){let i=t.getValue("willChange");if((0,l.isMotionValue)(i)&&i.add)return i.add(e);if(!i&&L.MotionGlobalConfig.WillChange){let i=new L.MotionGlobalConfig.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let ep=t=>1e3*t,em=t=>t/1e3;t.s(["millisecondsToSeconds",()=>em,"secondsToMilliseconds",()=>ep],63074);var ef=t.i(60830);let ey=(t,e)=>i=>e(t(i)),eg=(...t)=>t.reduce(ey);var ev=t.i(76959);let ex={layout:0,mainThread:0,waapi:0};var ew=t.i(65566),eT=t.i(63011),eb=t.i(22660);function eS(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 eP=t.i(66820);function eM(t,e){return i=>i>0?e:t}
9let eC=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},eA=[eT.hex,eP.rgba,eb.hsla];function eV(t){let e=eA.find(e=>e.test(t));if((0,ew.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===eb.hsla&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;r=eS(o,n,t+1/3),s=eS(o,n,t),a=eS(o,n,t-1/3)}else r=s=a=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*a),alpha:n}}(i)),i}let eE=(t,e)=>{let i=eV(t),n=eV(e);if(!i||!n)return eM(t,e);let r={...i};return t=>(r.red=eC(i.red,n.red,t),r.green=eC(i.green,n.green,t),r.blue=eC(i.blue,n.blue,t),r.alpha=tT(i.alpha,n.alpha,t),eP.rgba.transform(r))},ek=new Set(["none","hidden"]);function eD(t,e){return i=>tT(t,e,i)}function eR(t){return"number"==typeof t?eD:"string"==typeof t?(0,d.isCSSVariableToken)(t)?eM:O.color.test(t)?eE:ej:Array.isArray(t)?eL:"object"==typeof t?O.color.test(t)?eE:eB:eM}function eL(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>eR(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function eB(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=eR(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let ej=(t,e)=>{let i=S.complex.createTransformer(e),n=(0,S.analyseComplexValue)(t),r=(0,S.analyseComplexValue)(e);if(!(n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length))return(0,ew.warning)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),eM(t,e);if(ek.has(t)&&!r.values.length||ek.has(e)&&!n.values.length)return ek.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return eg(eL(function(t,e){let i=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let s=e.types[r],a=t.indexes[s][n[s]],o=t.values[a]??0;i[r]=o,n[s]++}return i}(n,r),r.values),i)};function eF(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?tT(t,e,i):eR(t)(t,e)}let eI=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>f.frame.update(e,t),stop:()=>(0,f.cancelFrame)(e),now:()=>f.frameData.isProcessing?f.frameData.timestamp:j.now()}},eO=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};function eU(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}function eN(t,e=100,i){let n=i({...t,keyframes:[0,e]}),r=Math.min(eU(n),2e4);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:em(r)}}function e$(t,e,i){var n,r;let s=Math.max(e-5,0);return n=i-t(s),(r=e-s)?1e3/r*n:0}t.s(["createGeneratorEasing",()=>eN],21748);let eW=.01,eH=2,ez=.005,eY=.5;function eX(t,e){return t*Math.sqrt(1-e*e)}let eq=["duration","bounce"],eG=["stiffness","damping","mass"];function eK(t,e){return e.some(e=>void 0!==t[e])}function e_(t=.3,e=.3){let i,n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:r,restDelta:s}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:a},{stiffness:u,damping:h,mass:c,duration:d,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!eK(t,eG)&&eK(t,eq))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*(0,ev.clamp)(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:1,stiffness:n,damping:r}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:n=1}){let r,s;(0,ew.warning)(t<=ep(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-e;a=(0,ev.clamp)(.05,1,a),t=(0,ev.clamp)(.01,10,em(t)),a<1?(r=e=>{let n=e*a,r=n*t;return .001-(n-i)/eX(e,a)*Math.exp(-r)},s=e=>{let n=e*a*t,s=Math.pow(a,2)*Math.pow(e,2)*t,o=Math.exp(-n),l=eX(Math.pow(e,2),a);return(n*i+i-s)*o*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));
9let o=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,5/t);if(t=ep(t),isNaN(o))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(o,2)*n;return{stiffness:e,damping:2*a*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...n,velocity:-em(n.velocity||0)}),f=p||0,y=h/(2*Math.sqrt(u*c)),g=o-a,v=em(Math.sqrt(u/c)),x=5>Math.abs(g);if(r||(r=x?eW:eH),s||(s=x?ez:eY),y<1){let t=eX(v,y);i=e=>o-Math.exp(-y*v*e)*((f+y*v*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}else if(1===y)i=t=>o-Math.exp(-v*t)*(g+(f+v*g)*t);else{let t=v*Math.sqrt(y*y-1);i=e=>{let i=Math.exp(-y*v*e),n=Math.min(t*e,300);return o-i*((f+y*v*g)*Math.sinh(n)+t*g*Math.cosh(n))/t}}let w={calculatedDuration:m&&d||null,next:t=>{let e=i(t);if(m)l.done=t>=d;else{let n=0===t?f:0;y<1&&(n=0===t?ep(f):e$(i,t,e));let a=Math.abs(o-e)<=s;l.done=Math.abs(n)<=r&&a}return l.value=l.done?o:e,l},toString:()=>{let t=Math.min(eU(w),2e4),e=eO(e=>w.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return w}function eZ({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:h}){let c,d,p=t[0],m={done:!1,value:p},f=i*e,y=p+f,g=void 0===a?y:a(y);g!==y&&(f=g-p);let v=t=>-f*Math.exp(-t/n),x=t=>g+v(t),w=t=>{let e=v(t),i=x(t);m.done=Math.abs(e)<=u,m.value=m.done?g:i},T=t=>{let e;if(e=m.value,void 0!==o&&e<o||void 0!==l&&e>l){var i;c=t,d=e_({keyframes:[m.value,(i=m.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:e$(x,t,m.value),damping:r,stiffness:s,restDelta:u,restSpeed:h})}};return T(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,w(t),T(t)),void 0!==c&&t>=c)?d.next(t-c):(e||w(t),m)}}}e_.applyToOptions=t=>{let e=eN(t,100,e_);return t.ease=e.ease,t.duration=ep(e.duration),t.type="keyframes",t},t.s(["spring",()=>e_],73431);let eQ=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function eJ(t,e,i,n){return t===e&&i===n?ef.noop:r=>0===r||1===r?r:eQ(function(t,e,i,n,r){let s,a,o=0;do(s=eQ(a=e+(i-e)/2,n,r)-t)>0?i=a:e=a;while(Math.abs(s)>1e-7&&++o<12)return a}(r,0,1,t,i),e,n)}let e0=eJ(.42,0,1,1),e1=eJ(0,0,.58,1),e2=eJ(.42,0,.58,1),e3=t=>Array.isArray(t)&&"number"!=typeof t[0];t.s(["isEasingArray",()=>e3],93544);let e4=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,e5=t=>e=>1-t(1-e),e7=eJ(.33,1.53,.69,.99),e6=e5(e7),e9=e4(e6),e8=t=>(t*=2)<1?.5*e6(t):.5*(2-Math.pow(2,-10*(t-1))),it=t=>1-Math.sin(Math.acos(t)),ie=e5(it),ii=e4(it),ir=t=>Array.isArray(t)&&"number"==typeof t[0],is={linear:ef.noop,easeIn:e0,easeInOut:e2,easeOut:e1,circIn:it,circInOut:ii,circOut:ie,backIn:e6,backInOut:e9,backOut:e7,anticipate:e8},ia=t=>{if(ir(t)){(0,ew.invariant)(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,r]=t;return eJ(e,i,n,r)}return"string"==typeof t?((0,ew.invariant)(void 0!==is[t],`Invalid easing type '${t}'`,"invalid-easing-type"),is[t]):t},io=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};function il(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=io(0,e,n);t.push(tT(i,1,r))}}function iu(t){let e=[0];return il(e,t.length-1),e}function ih({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var r;let s=e3(n)?n.map(ia):ia(n),a={done:!1,value:e[0]},o=function(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;if((0,ew.invariant)(s===e.length,"Both input and output ranges must be the same length","range-length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let n=[],r=i||L.MotionGlobalConfig.mix||eF,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=eg(Array.isArray(e)?e[i]||ef.noop:e,s)),n.push(s)}return n}(e,n,r),l=o.length,u=i=>{if(a&&i<t[0])return e[0];let n=0;if(l>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=io(t[n],t[n+1],i);return o[n](r)};return i?e=>u((0,ev.clamp)(t[0],t[s-1],e)):u}((r=i&&i.length===e.length?i:iu(e),r.map(e=>e*t)),e,{ease:Array.isArray(s)?s:e.map(()=>s||e2).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=o(e),a.done=e>=t,a)}}t.s(["progress",()=>
9io],83920),t.s(["fillOffset",()=>il],15932),t.s(["defaultOffset",()=>iu],15923);let ic=t=>null!==t;function id(t,{repeat:e,repeatType:i="loop"},n,r=1){let s=t.filter(ic),a=r<0||e&&"loop"!==i&&e%2==1?0:s.length-1;return a&&void 0!==n?n:s[a]}let ip={decay:eZ,inertia:eZ,tween:ih,keyframes:ih,spring:e_};function im(t){"string"==typeof t.type&&(t.type=ip[t.type])}class iy{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let ig=t=>t/100;class iv extends iy{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==j.now()&&this.tick(j.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},ex.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;im(t);let{type:e=ih,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=t,{keyframes:a}=t,o=e||ih;o!==ih&&"number"!=typeof a[0]&&(this.mixKeyframes=eg(ig,eF(a[0],a[1])),a=[0,100]);let l=o({...t,keyframes:a});"mirror"===r&&(this.mirroredGenerator=o({...t,keyframes:[...a].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=eU(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:n,mixKeyframes:r,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:o}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:u,repeat:h,repeatType:c,repeatDelay:d,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let y=this.currentTime-l*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?y<0:y>n;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let v=this.currentTime,x=i;if(h){let t=Math.min(this.currentTime,n)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,h+1))%2&&("reverse"===c?(i=1-i,d&&(i-=d/a)):"mirror"===c&&(x=s)),v=(0,ev.clamp)(0,1,i)*a}let w=g?{done:!1,value:u[0]}:x.next(v);r&&(w.value=r(w.value));let{done:T}=w;g||null===o||(T=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let b=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return b&&p!==eZ&&(w.value=id(u,this.options,f,this.speed)),m&&m(w.value),b&&this.finish(),w}then(t,e){return this.finished.then(t,e)}get duration(){return em(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+em(t)}get time(){return em(this.currentTime)}set time(t){t=ep(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?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(j.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=em(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=eI,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(j.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,ex.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)}}function ix(t){let e;return()=>(void 0===e&&(e=t()),e)}let iw=ix(()=>void 0!==window.ScrollTimeline);var iT=t.i(80248);let ib={},iS=(i=ix(()=>{try{document.createElement("div").animate({opacity:0}
9,{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),()=>ib.linearEasing??i()),iP=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,iM={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:iP([0,.65,.55,1]),circOut:iP([.55,0,1,.45]),backIn:iP([.31,.01,.66,-.59]),backOut:iP([.33,1.53,.69,.99])};function iC(t){return"function"==typeof t&&"applyToOptions"in t}t.s(["isGenerator",()=>iC],97307);class iA extends iy{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=t,(0,ew.invariant)("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return iC(t)&&iS()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:a="loop",ease:o="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?iS()?eO(e,i):"ease-out":ir(e)?iP(e):Array.isArray(e)?e.map(e=>t(e,i)||iM.easeOut):iM[e]}(o,r);Array.isArray(c)&&(h.easing=c),iT.statsBuffer.value&&ex.waapi++;let d={delay:n,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===a?"alternate":"normal"};u&&(d.pseudoElement=u);let p=t.animate(h,d);return iT.statsBuffer.value&&p.finished.finally(()=>{ex.waapi--}),p}(e,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=id(n,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(t):i.startsWith("--")?e.style.setProperty(i,t):e.style[i]=t,this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return em(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+em(t)}get time(){return em(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ep(t)}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,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&iw())?(this.animation.timeline=t,ef.noop):e(this)}}let iV={anticipate:e8,backInOut:e9,circInOut:ii};class iE extends iA{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in iV&&(t.ease=iV[t.ease])}(t),im(t),super(t),void 0!==t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let a=new iv({...s,autoplay:!1}),o=Math.max(10,j.now()-this.startTime),l=(0,ev.clamp)(0,10,o-10);e.setWithVelocity(a.sample(Math.max(0,o-l)).value,a.sample(o).value,l),a.stop()}}let ik=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(S.complex.test(t)||"0"===t)&&!t.startsWith("url("));function iD(t){t.duration=0,t.type="keyframes"}let iR=new Set(["opacity","clipPath","filter","transform"]),iL=ix(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class iB extends iy{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:a,name:o,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=j.now();const c={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,name:o,motionValue:l,element:u,...h},d=u?.KeyframeResolver||b;this.keyframeResolver=new d(a,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:r,type:s,velocity:a,delay:o,isHandoff:l,onUpdate:u}=i;
9this.resolvedAt=j.now(),!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],a=ik(r,e),o=ik(s,e);return(0,ew.warning)(a===o,`You are trying to animate ${e} from "${r}" to "${s}". "${a?s:r}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(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||iC(i))&&n)}(t,r,s,a)&&((L.MotionGlobalConfig.instantAnimations||!o)&&u?.(id(t,i,e)),t[0]=t[t.length-1],iD(i),i.repeat=0);let h={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},c=!l&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:o,transformTemplate:l}=e.owner.getProps();return iL()&&i&&iR.has(i)&&("transform"!==i||!l)&&!o&&!n&&"mirror"!==r&&0!==s&&"inertia"!==a}(h),d=h.motionValue?.owner?.current,p=c?new iE({...h,element:d}):new iv(h);p.finished.then(()=>{this.notifyFinished()}).catch(ef.noop),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),x=!0,T(),w(),x=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let ij={type:"spring",stiffness:500,damping:25,restSpeed:10},iF={type:"keyframes",duration:.8},iI={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},iO=t=>null!==t,iU=(t,e,i,n={},r,a)=>o=>{let l=eh(n,t)||{},u=l.delay||n.delay||0,{elapsed:h=0}=n;h-=ep(u);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-h,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:a?void 0:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(l)&&Object.assign(c,((t,{keyframes:e})=>e.length>2?iF:s.transformProps.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:ij:iI)(t,c)),c.duration&&(c.duration=ep(c.duration)),c.repeatDelay&&(c.repeatDelay=ep(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(iD(c),0===c.delay&&(d=!0)),(L.MotionGlobalConfig.instantAnimations||L.MotionGlobalConfig.skipAnimations||r?.shouldSkipAnimations)&&(d=!0,iD(c),c.delay=0),c.allowFlatten=!l.type&&!l.ease,d&&!a&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},n){let r=t.filter(iO),s=e&&"loop"!==i&&e%2==1?0:r.length-1;return r[s]}(c.keyframes,l);if(void 0!==t)return void f.frame.update(()=>{c.onUpdate(t),c.onComplete()})}return l.isSync?new iv(c):new iB(c)};function iN(t,e,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:a,...o}=e,l=s?.reduceMotion;n&&(s=n);let h=[],c=r&&t.animationState&&t.animationState.getState()[r];for(let e in o){let n=t.getValue(e,t.latestValues[e]??null),r=o[e];if(void 0===r||c&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(c,e))continue;let a={delay:i,...eh(s||{},e)},d=n.get();if(void 0!==d&&!n.isAnimating&&!Array.isArray(r)&&r===d&&!a.velocity)continue;let p=!1;if(window.MotionHandoffAnimation){let i=t.props[en];if(i){let t=window.MotionHandoffAnimation(i,e,f.frame);null!==t&&(a.startTime=t,p=!0)}}ed(t,e);let m=l??t.shouldReduceMotion;n.start(iU(e,n,r,m&&u.positionalKeys.has(e)?{type:!1}:a,t,p));let y=n.animation;y&&h.push(y)}return a&&Promise.all(h).then(()=>{f.frame.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=eu(t,e)||{};for(let e in r={...r,...i}){var s;let i=ec(s=r[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,I(i))}}(t,a)})}),h}function i$(t,e,i,n=0,r=1){let s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,o=(a-1)*n;return"function"==typeof i?i(s,a):1===r?s*n:o-s*n}function iW(t,e,i={}){let n=eu(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(iN(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:a,staggerDirection:o}=r;
9return function(t,e,i=0,n=0,r=0,s=1,a){let o=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),o.push(iW(l,e,{...a,delay:i+("function"==typeof n?0:n)+i$(t.variantChildren,l,n,r,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}(t,e,n,s,a,o,i)}:()=>Promise.resolve(),{when:o}=r;if(!o)return Promise.all([s(),a(i.delay)]);{let[t,e]="beforeChildren"===o?[s,a]:[a,s];return t().then(()=>e())}}t.s(["animateTarget",()=>iN],72323);let iH=G.length;function iz(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 iY=[...q].reverse(),iX=q.length;function iq(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function iG(){return{animate:iq(!0),whileInView:iq(),whileHover:iq(),whileTap:iq(),whileDrag:iq(),whileFocus:iq(),exit:iq()}}let iK=0;function i_(t){return[t("x"),t("y")]}let iZ=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function iQ(t){return iZ.has(t.tagName)||!0===t.isContentEditable}function iJ(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let i0={x:!1,y:!1};function i1(t){return t.max-t.min}function i2(t,e,i,n=.5){t.origin=n,t.originPoint=tT(e.min,e.max,t.origin),t.scale=i1(i)/i1(e),t.translate=tT(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 i3(t,e,i,n){i2(t.x,e.x,i.x,n?n.originX:void 0),i2(t.y,e.y,i.y,n?n.originY:void 0)}function i4(t,e,i){t.min=i.min+e.min,t.max=t.min+i1(e)}function i5(t,e,i){t.min=e.min-i.min,t.max=t.min+i1(e)}function i7(t,e,i){i5(t.x,e.x,i.x),i5(t.y,e.y,i.y)}let i6=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function i9(t){return{point:{x:t.pageX,y:t.pageY}}}function i8(t,e,i,n){return iJ(t,e,t=>i6(t)&&i(t,i9(t)),n)}let nt=({current:t})=>t?t.ownerDocument.defaultView:null,ne=(t,e)=>Math.abs(t-e),ni=new Set(["auto","scroll"]);class nn{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3,element:a}={}){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=na(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(ne(t.x,e.x)**2+ne(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!r)return;let{point:s}=i,{timestamp:a}=f.frameData;this.history.push({...s,timestamp:a});let{onStart:o,onMove:l}=this.handlers;n||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=nr(e,this.transformPagePoint),f.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=na("pointercancel"===t.type?this.lastMoveEventInfo:nr(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!i6(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;const o=nr(i9(t),this.transformPagePoint),{point:l}=o,{timestamp:u}=f.frameData;this.history=[{...l,timestamp:u}];const{onSessionStart:h}=e;h&&h(t,na(o,this.history)),this.removeListeners=eg(i8(this.contextWindow,"pointermove",this.handlePointerMove),i8(this.contextWindow,"pointerup",this.handlePointerUp),i8(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(ni.has(t.overflowX)||ni.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},r={x:n.x-e.x,y:n.y-e.y};(0!==r.x||0!==r.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(t,n),f.frame.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,f.cancelFrame)(this.updatePoint)}}function nr(t,e){return e?{point:e(t.point)}:t}function ns(t,e){return{x:t.x-e.x,y:t.y-e.y}}function na({point:t},e){return{point:t,delta:ns(t,no(e)),offset:ns(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=no(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>ep(.1)));)i--;if(!n)return{x:0,y:0};let s=em(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let a={x:(r.x-n.x)/s,y:(r.y-n.y)/s}
9;return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e,.1)}}function no(t){return t[t.length-1]}function nl(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 nu(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 nh(t,e,i){return{min:nc(t,e),max:nc(t,i)}}function nc(t,e){return"number"==typeof t?t:t[e]||0}let nd=new WeakMap;class np{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,o.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 r=t=>{e?(this.stopAnimation(),this.snapToCursor(i9(t).point)):this.pauseAnimation()},s=(t,e)=>{this.stopAnimation();let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(i0[t])return null;else return i0[t]=!0,()=>{i0[t]=!1};return i0.x||i0.y?null:(i0.x=i0.y=!0,()=>{i0.x=i0.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),i_(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tv.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=i1(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&f.frame.postRender(()=>r(t,e)),ed(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=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}(a),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),s&&s(t,e)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>i_(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new nn(t,{onSessionStart:r,onStart:s,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:nt(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!n||!i)return;let{velocity:s}=n;this.startAnimation(s);let{onDragEnd:a}=this.getProps();a&&f.frame.postRender(()=>a(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||!nm(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?tT(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?tT(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&es(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:nl(t.x,i,r),y:nl(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:nh(t,"left","right"),y:nh(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&i_(t=>{var e,n;let r;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],n=this.constraints[t],r={},void 0!==n.min&&(r.min=n.min-e.min),void 0!==n.max&&(r.max=n.max-e.min),r))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!es(e))return!1;let n=e.current;(0,ew.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:r}=this.visualElement;if(!r||!r.layout)return!1;
9let s=function(t,e,i){let n=tU(t,i),{scroll:r}=e;return r&&(tF(n.x,r.offset.x),tF(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),a=(t=r.layout.layoutBox,{x:nu(t.x,s.x),y:nu(t.y,s.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(a));this.hasMutatedConstraints=!!t,t&&(a=tV(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(i_(a=>{if(!nm(a,e,this.currentDirection))return;let l=o&&o[a]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return ed(this.visualElement,t),i.start(iU(t,i,0,e,this.visualElement,!1))}stopAnimation(){i_(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){i_(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){i_(e=>{let{drag:i}=this.getProps();if(!nm(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e],a=r.get()||0;r.set(t[e]-tT(i,s,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!es(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};i_(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,r;let s,a,o,l=e.get();n[t]=(i={min:l,max:l},r=this.constraints[t],s=.5,a=i1(i),(o=i1(r))>a?s=io(r.min,r.max-a,i.min):a>o&&(s=io(i.min,i.max-o,r.min)),(0,ev.clamp)(0,1,s))}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),i_(e=>{if(!nm(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set(tT(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;nd.set(this.visualElement,this);let t=this.visualElement.current,e=i8(t,"pointerdown",e=>{let{drag:i,dragListener:n=!0}=this.getProps(),r=e.target,s=r!==t&&iQ(r);i&&n&&!s&&this.start(e)}),i=()=>{let{dragConstraints:t}=this.getProps();es(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",i);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),f.frame.read(i);let s=iJ(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(i_(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),e(),r(),a&&a()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:a}}}function nm(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let nf=t=>(e,i)=>{t&&f.frame.postRender(()=>t(e,i))},ny={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var ng=t$,nv=t.i(64978);let nx=!1;class nw extends ng.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),nx&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ny.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,t.layoutDependency!==e&&s.setOptions({...s.options,layoutDependency:e}),nx=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==r?s.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?s.promote():s.relegate()||f.frame.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),R.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;nx=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nT(t){let[e,i]=(0,nv.usePresence)(),n=(0,ng.useContext)(tY.LayoutGroupContext);return(0,tz.jsx)(nw,{...t,layoutGroup:n,switchLayoutGroup:(0,ng.useContext)(er),isPresent:e,safeToRemove:i})}function nb(t,e,i){let n=(0,l.isMotionValue)(t)?t:I(t);return n.start(iU("",n,e,i)),n.animation}t.s(["animateSingleValue",()=>nb],68705);var nS=t.i(42824);function nP(t){return(0,nS.isObject)(t)&&"ownerSVGElement"in t}function nM(t){return nP(t)&&"svg"===t.tagName}t.s(["isSVGElement",()=>nP],89026),t.s(["isSVGSVGElement",()=>nM],36331);let nC=["TopLeft","TopRight","BottomLeft","BottomRight"],nA=nC.length,nV=t=>"string"==typeof t?parseFloat(t):t,nE=t=>"number"==typeof t||tv.px.test(t);function nk(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nD=nL(0,.5,ie),nR=nL(.5,.95,ef.noop);
9function nL(t,e,i){return n=>n<t?0:n>e?1:i(io(t,e,n))}function nB(t,e){t.min=e.min,t.max=e.max}function nj(t,e){nB(t.x,e.x),nB(t.y,e.y)}function nF(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nI(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function nO(t,e,[i,n,r],s,a){!function(t,e=0,i=1,n=.5,r,s=t,a=t){if(tv.percent.test(e)&&(e=parseFloat(e),e=tT(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=tT(s.min,s.max,n);t===s&&(o-=e),t.min=nI(t.min,e,i,o,r),t.max=nI(t.max,e,i,o,r)}(t,e[i],e[n],e[r],e.scale,s,a)}let nU=["x","scaleX","originX"],nN=["y","scaleY","originY"];function n$(t,e,i,n){nO(t.x,e,nU,i?i.x:void 0,n?n.x:void 0),nO(t.y,e,nN,i?i.y:void 0,n?n.y:void 0)}function nW(t){return 0===t.translate&&1===t.scale}function nH(t){return nW(t.x)&&nW(t.y)}function nz(t,e){return t.min===e.min&&t.max===e.max}function nY(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function nX(t,e){return nY(t.x,e.x)&&nY(t.y,e.y)}function nq(t){return i1(t.x)/i1(t.y)}function nG(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class nK{constructor(){this.members=[]}add(t){E(this.members,t),t.scheduleRender()}remove(t){if(k(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender();let n=i.options.layoutDependency,r=t.options.layoutDependency;(void 0===n||void 0===r||n!==r)&&(t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0));let{crossfade:s}=t.options;!1===s&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let n_=(t,e)=>t.depth-e.depth;class nZ{constructor(){this.children=[],this.isDirty=!1}add(t){E(this.children,t),this.isDirty=!0}remove(t){k(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(n_),this.isDirty=!1,this.children.forEach(t)}}let nQ={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},nJ=["","X","Y","Z"],n0=0;function n1(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function n2({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=n0++,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,iT.statsBuffer.value&&(nQ.nodes=nQ.calculatedTargetDeltas=nQ.calculatedProjections=0),this.nodes.forEach(n5),this.nodes.forEach(ri),this.nodes.forEach(rn),this.nodes.forEach(n7),iT.statsBuffer.addProjectionMetrics&&iT.statsBuffer.addProjectionMetrics(nQ)},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 nZ)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new D),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=nP(e)&&!nM(e),this.instance=e;let{layoutId:i,layout:n,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,r=()=>this.root.updateBlockedByResize=!1;f.frame.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==n){let e,s;n=t,this.root.updateBlockedByResize=!0,i&&i(),e=j.now(),s=({timestamp:t})=>{let i=t-e;i>=250&&((0,f.cancelFrame)(s),r(i-250))},f.frame.setup(s,!0),i=()=>(0,f.cancelFrame)(s),ny.hasAnimatedSinceResize&&(ny.hasAnimatedSinceResize=!1,this.nodes.forEac
9h(re))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||ru,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=r.getProps(),l=!this.targetLayout||!nX(this.targetLayout,n),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...eh(s,"layout"),onPlay:a,onComplete:o};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||re(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,f.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.forEach(rr),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[en];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",f.frame,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(n9);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(n8);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(rt),this.nodes.forEach(n3),this.nodes.forEach(n4)):this.nodes.forEach(n8),this.clearAllSnapshots();let t=j.now();f.frameData.delta=(0,ev.clamp)(0,1e3/60,t-f.frameData.timestamp),f.frameData.timestamp=t,f.frameData.isProcessing=!0,f.frameSteps.update.process(f.frameData),f.frameSteps.preRender.process(f.frameData),f.frameSteps.render.process(f.frameData),f.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,R.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(n6),this.sharedNodes.forEach(rs)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,f.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){f.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||i1(this.snapshot.measuredBox.x)||i1(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=(0,o.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(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!nH(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||tD(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),rd((e=n).x),rd(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,o.createBox)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rm))){let{scroll:t}=this.root;t&&(tF(e.x,t.offset.x),tF(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,o.createBox)();if(nj(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&nj(e,t),tF(e.x,r.offset.x),tF(e.y,r.offset.y))}return e}applyTransform(t,e=!1){let i=(0,o.createBox)();nj(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&tO(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),tD(n.latestValues)&&tO(i,n.latestValues)}return tD(this.latestValues)&&tO(i,this.latestValues),i}removeTransform(t){let e=(0,o.createBox)();nj(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!tD(i.latestValues))continue;tk(i.latestValues)&&i.updateSnapshot();let n=(0,o.createBox)();nj(n,i.measurePageBox()),n$(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return tD(this.latestValues)&&n$(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!==f.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:r}=this.options;if(!this.layout||!(n||r))return;this.resolvedRelativeTargetAt=f.frameData.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,o.createBox)(),this.targetWithTransforms=(0,o.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,l,u;this.forceRelativeParentToResolveTarget(),a=this.target,l=this.relativeTarget,u=this.relativeParent.target,i4(a.x,l.x,u.x),i4(a.y,l.y,u.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nj(this.target,this.layout.layoutBox),tj(this.target,this.targetDelta)):nj(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,s&&!!s.resumingFrom==!!this.resumingFrom&&!s.options.layoutScroll&&s.target&&1!==this.animationProgress?this.createRelativeTarget(s,this.target,s.target):this.relativeParent=this.relativeTarget=void 0),iT.statsBuffer.value&&nQ.calculatedTargetDeltas++}}getClosestProjectingParent(){if(!(!this.parent||tk(this.parent.latestValues)||tR(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,o.createBox)(),this.relativeTargetOrigin=(0,o.createBox)(),i7(this.relativeTargetOrigin,e,i),nj(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
9if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===f.frameData.timestamp&&(i=!1),i)return;let{layout:n,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||r))return;nj(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,n=!1){let r,s,a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){s=(r=i[o]).projectionDelta;let{visualElement:a}=r.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&tO(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,tj(t,s)),n&&tD(r.latestValues)&&tO(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=(0,o.createBox)());let{target:l}=t;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nF(this.prevProjectionDelta.x,this.projectionDelta.x),nF(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),i3(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&nG(this.projectionDelta.x,this.prevProjectionDelta.x)&&nG(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),iT.statsBuffer.value&&nQ.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,o.createDelta)(),this.projectionDelta=(0,o.createDelta)(),this.projectionDeltaWithTransform=(0,o.createDelta)()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},a=(0,o.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=(0,o.createBox)(),u=(n?n.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(rl));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(ra(a.x,t.x,n),ra(a.y,t.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,p,m,f,y,g;i7(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,f=this.relativeTargetOrigin,y=l,g=n,ro(m.x,f.x,y.x,g),ro(m.y,f.y,y.y,g),i&&(h=this.relativeTarget,p=i,nz(h.x,p.x)&&nz(h.y,p.y))&&(this.isProjectionDirty=!1),i||(i=(0,o.createBox)()),nj(i,this.relativeTarget)}u&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=tT(0,i.opacity??1,nD(n)),t.opacityExit=tT(e.opacity??1,0,nR(n))):s&&(t.opacity=tT(e.opacity??1,i.opacity??1,n));for(let r=0;r<nA;r++){let s=`border${nC[r]}Radius`,a=nk(e,s),o=nk(i,s);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||nE(a)===nE(o)?(t[s]=Math.max(tT(nV(a),nV(o),n),0),(tv.percent.test(o)||tv.percent.test(a))&&(t[s]+="%")):t[s]=o)}(e.rotate||i.rotate)&&(t.rotate=tT(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,f.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=f.frame.update(()=>{ny.hasAnimatedSinceResize=!0,ex.layout++,this.motionValue||(this.motionValue=I(0)),this.currentAnimation=nb(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{ex.layout--},onComplete:()=>{ex.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&rp(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,o.createBox)();let e=i1(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=i1(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}nj(e,i),tO(e,r),i3(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new nK),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
9return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&n1("z",t,n,this.animationValues);for(let e=0;e<nJ.length;e++)n1(`rotate${nJ[e]}`,t,n,this.animationValues),n1(`skew${nJ[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=t2(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=t2(e?.pointerEvents)||""),this.hasProjected&&!tD(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let r=n.animationValues||n.latestValues;this.applyTransformsToTarget();let s=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,a=i?.z||0;if((r||s||a)&&(n=`translate3d(${r}px, ${s}px, ${a}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:a,skewY:o}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),a&&(n+=`skewX(${a}deg) `),o&&(n+=`skewY(${o}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(n+=`scale(${o}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);i&&(s=i(r,s)),t.transform=s;let{x:a,y:o}=this.projectionDelta;for(let e in t.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,n.animationValues?t.opacity=n===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,tb){if(void 0===r[e])continue;let{correct:i,applyTo:a,isCSSVariable:o}=tb[e],l="none"===s?r[e]:i(r[e],n);if(a){let e=a.length;for(let i=0;i<e;i++)t[a[i]]=l}else o?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?t2(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(n9),this.root.sharedNodes.clear()}}}function n3(t){t.updateLayout()}function n4(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:r}=t.options,s=e.source!==t.layout.source;"size"===r?i_(t=>{let n=s?e.measuredBox[t]:e.layoutBox[t],r=i1(n);n.min=i[t].min,n.max=n.min+r}):rp(r,e.layoutBox,i)&&i_(n=>{let r=s?e.measuredBox[n]:e.layoutBox[n],a=i1(i[n]);r.max=r.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+a)});let a=(0,o.createDelta)();i3(a,i,e.layoutBox);let l=(0,o.createDelta)();s?i3(l,t.applyTransform(n,!0),e.measuredBox):i3(l,i,e.layoutBox);let u=!nH(a),h=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let a=(0,o.createBox)();i7(a,e.layoutBox,r.layoutBox);let l=(0,o.createBox)();i7(l,i,s.layoutBox),nX(a,l)||(h=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function n5(t){iT.statsBuffer.value&&nQ.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
9isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function n7(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function n6(t){t.clearSnapshot()}function n9(t){t.clearMeasurements()}function n8(t){t.isLayoutDirty=!1}function rt(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function re(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ri(t){t.resolveTargetDelta()}function rn(t){t.calcProjection()}function rr(t){t.resetSkewAndRotation()}function rs(t){t.removeLeadSnapshot()}function ra(t,e,i){t.translate=tT(e.translate,0,i),t.scale=tT(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function ro(t,e,i,n){t.min=tT(e.min,i.min,n),t.max=tT(e.max,i.max,n)}function rl(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ru={duration:.45,ease:[.4,0,.1,1]},rh=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rc=rh("applewebkit/")&&!rh("chrome/")?Math.round:ef.noop;function rd(t){t.min=rc(t.min),t.max=rc(t.max)}function rp(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(nq(e)-nq(i)))}function rm(t){return t!==t.root&&t.scroll?.wasRoot}let rf=n2({attachResizeListener:(t,e)=>iJ(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ry={current:void 0},rg=n2({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ry.current){let t=new rf({});t.mount(window),t.setOptions({layoutScroll:!0}),ry.current=t}return ry.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function rv(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let r=i?.[t]??n.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t).filter(t=>null!=t)}function rx(t,e){let i=rv(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function rw(t){return!("touch"===t.pointerType||i0.x||i0.y)}function rT(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&f.frame.postRender(()=>r(e,i9(e)))}t.s(["resolveElements",()=>rv],49652);var rb=t.i(72846);let rS=(t,e)=>!!e&&(t===e||rS(t,e.parentElement)),rP=new WeakSet;function rM(t){return e=>{"Enter"===e.key&&t(e)}}function rC(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function rA(t){return i6(t)&&!(i0.x||i0.y)}function rV(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&f.frame.postRender(()=>r(e,i9(e)))}let rE=new WeakMap,rk=new WeakMap,rD=t=>{let e=rE.get(t.target);e&&e(t)},rR=t=>{t.forEach(rD)},rL={some:0,all:1},rB=function(t,e){if("u"<typeof Proxy)return eo;let i=new Map,n=(i,n)=>eo(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(r,s)=>"create"===s?n:(i.has(s)||i.set(s,eo(s,void 0,t,e)),i.get(s))})}({animation:{Feature:class extends el{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>iW(t,e,i)));else if("string"==typeof e)n=iW(t,e,i);else{let r="function"==typeof e?eu(t,e,i.custom):e;n=Promise.all(iN(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=iG(),n=!0,r=e=>(i,n)=>{let r=eu(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...n}=r;i={...i,...n,...e}}return i};function s(s){let{props:a}=t,o=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<iH;t++){let n=G[t],r=e.props[n];(X(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},l=[],u=new Set,h={},c=1/0;for(let e=0;e<iX;e++){var d,p;let m=iY[e],f=i[m],y=void 0!==a[m]?a[m]:o[m],g=X(y),v=m===s?f.isActive:null;!1===v&&(c=e);let x=y===o[m]&&y!==a[m]&&g;if(x&&n&&t.manuallyAnimateOnMount&&(x=!1),f.protectedKeys={...h},!f.isActive&&null===v||!y&&!f.prevProp||Y(y)||"boolean"==typeof y)continue;let w=(d=f.prevProp,"string"==typeof(p=y)?p!==d:!!Array.isArray(p)&&!iz(p,d)),T=w||m===s&&f.isActive&&!x&&g||e>c&&g,b=!1,S=Array.isArray(y)?y:[y],P=S.reduce(r(m),{});!1===v&&(P={});let{prevResolvedValues:M={}}=f,C={...M,...P},A=e=>{T=!0,u.has(e)&&(b=!0,u.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);
9i&&(i.liveStyle=!1)};for(let t in C){let e=P[t],i=M[t];if(!h.hasOwnProperty(t))(ec(e)&&ec(i)?iz(e,i):e===i)?void 0!==e&&u.has(t)?A(t):f.protectedKeys[t]=!0:null!=e?A(t):u.add(t)}f.prevProp=y,f.prevResolvedValues=P,f.isActive&&(h={...h,...P}),n&&t.blockInitialAnimation&&(T=!1);let V=x&&w,E=!V||b;T&&E&&l.push(...S.map(e=>{let i={type:m};if("string"==typeof e&&n&&!V&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,r=eu(n,e);if(n.enteringChildren&&r){let{delayChildren:e}=r.transition||{};i.delay=i$(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof a.initial){let i=eu(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=n??null}),l.push({animation:e})}let m=!!l.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(m=!1),n=!1,m?e(l):Promise.resolve()}return{animateChanges:s,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let r=s(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=iG()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();Y(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 el{constructor(){super(...arguments),this.id=iK++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
9e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends el{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:r,amount:s="some",once:a}=i,o={root:n?n.current:void 0,rootMargin:r,threshold:"number"==typeof s?s:rL[s]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,a&&!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(),r=e?i:n;r&&r(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;rk.has(i)||rk.set(i,{});let n=rk.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(rR,{root:t,...e})),n[r]}(o),rE.set(t,l),e.observe(t),()=>{rE.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends el{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=rx(t,i),a=t=>{let n=t.currentTarget;if(!rA(t))return;rP.add(n);let s=e(n,t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),rP.has(n)&&rP.delete(n),rA(t)&&"function"==typeof s&&s(t,{success:e})},o=t=>{a(t,n===window||n===document||i.useGlobalTarget||rS(n,t.target))},l=t=>{a(t,!1)};window.addEventListener("pointerup",o,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",a,r),(0,rb.isHTMLElement)(t)&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=rM(()=>{if(rP.has(i))return;rC(i,"down");let t=rM(()=>{rC(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>rC(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,r)),iQ(t)||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(rV(this.node,e,"Start"),(t,{success:e})=>rV(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends el{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=eg(iJ(this.node.current,"focus",()=>this.onFocus()),iJ(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends el{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=rx(t,i),a=t=>{if(!rw(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let s=t=>{rw(t)&&(n(t),i.removeEventListener("pointerleave",s))};i.addEventListener("pointerleave",s,r)};return n.forEach(t=>{t.addEventListener("pointerenter",a,r)}),s}(t,(t,e)=>(rT(this.node,e,"Start"),t=>rT(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends el{constructor(){super(...arguments),this.removePointerDownListener=ef.noop}onPointerDown(t){this.session=new nn(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nt(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:nf(t),onStart:nf(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&f.frame.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=i8(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends el{constructor(t){super(t),this.removeGroupControls=ef.n
9oop,this.removeListeners=ef.noop,this.controls=new np(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ef.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()}},ProjectionNode:rg,MeasureLayout:nT},layout:{ProjectionNode:rg,MeasureLayout:nT}},(t,e)=>e.isSVG??tH(t)?new tC(e):new tN(e,{allowProjection:t!==t$.Fragment}));t.s(["motion",()=>rB],46932)},19565,t=>{"use strict";var e=t.i(71645);function i(t){(0,e.useEffect)(()=>(t?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden",document.body.style.overscrollBehavior="none"):(document.documentElement.style.overflow="",document.body.style.overflow="",document.body.style.overscrollBehavior=""),()=>{document.documentElement.style.overflow="",document.body.style.overflow="",document.body.style.overscrollBehavior=""}),[t])}t.s(["useScrollLock",()=>i])},95545,t=>{"use strict";var e=t.i(43476);function i(){return(0,e.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",className:"cursor-pointer opacity-70 transition-opacity duration-200 hover:opacity-100",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,e.jsx)("circle",{cx:"9.77778",cy:"1.22222",r:"1.22222",transform:"rotate(90 9.77778 1.22222)",fill:"white"}),(0,e.jsx)("circle",{cx:"7.33344",cy:"3.66656",r:"1.22222",transform:"rotate(90 7.33344 3.66656)",fill:"white"}),(0,e.jsx)("circle",{cx:"3.66645",cy:"7.33355",r:"1.22222",transform:"rotate(90 3.66645 7.33355)",fill:"white"}),(0,e.jsx)("circle",{cx:"1.22211",cy:"9.77789",r:"1.22222",transform:"rotate(90 1.22211 9.77789)",fill:"white"}),(0,e.jsx)("circle",{cx:"9.77778",cy:"9.77778",r:"1.22222",transform:"rotate(-180 9.77778 9.77778)",fill:"white"}),(0,e.jsx)("circle",{cx:"7.33344",cy:"7.33344",r:"1.22222",transform:"rotate(-180 7.33344 7.33344)",fill:"white"}),(0,e.jsx)("circle",{cx:"3.66645",cy:"3.66645",r:"1.22222",transform:"rotate(-180 3.66645 3.66645)",fill:"white"}),(0,e.jsx)("circle",{cx:"1.22211",cy:"1.22211",r:"1.22222",transform:"rotate(-180 1.22211 1.22211)",fill:"white"})]})}t.s(["default",()=>i])}]);
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.