PageSourceSearch

https://www.poper.ai/_next/static/chunks/0lj05xj0d2nq7.js

js poper.ai collected 2026-09-24 17:09:16 UTC 95,440 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,50897,t=>{"use strict";let e=(0,t.i(409113).createContext)(null);t.s(["PresenceContext",0,e])},690247,t=>{"use strict";let e=(0,t.i(409113).createContext)({});t.s(["LayoutGroupContext",0,e])},6617,764319,t=>{"use strict";var e=t.i(409113);let i=(0,e.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",0,i],6617);let r=(0,e.createContext)({});t.s(["MotionContext",0,r],764319)},705282,206519,543927,838791,28343,20292,262171,432933,486201,581994,285879,261573,808014,t=>{"use strict";var e=t.i(409113),i=t.i(50897),r=t.i(764319),n=t.i(393269);let s=(0,e.createContext)({strict:!1});t.s(["LazyContext",0,s],206519);var o=t.i(6617);let a=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();t.s(["camelToDash",0,a],543927);let l="data-"+a("framerAppearId");function u(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function h(t){return"string"==typeof t||Array.isArray(t)}function c(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}t.s(["optimizedAppearDataAttribute",0,l],838791),t.s(["useVisualElement",0,function(t,a,u,h){let{visualElement:c}=(0,e.useContext)(r.MotionContext),d=(0,e.useContext)(s),p=(0,e.useContext)(i.PresenceContext),m=(0,e.useContext)(o.MotionConfigContext).reducedMotion,f=(0,e.useRef)();h=h||d.renderer,!f.current&&h&&(f.current=h(t,{visualState:a,parent:c,props:u,presenceContext:p,blockInitialAnimation:!!p&&!1===p.initial,reducedMotionConfig:m}));let g=f.current;(0,e.useInsertionEffect)(()=>{g&&g.update(u,p)});let y=(0,e.useRef)(!!(u[l]&&!window.HandoffComplete));return(0,n.useIsomorphicLayoutEffect)(()=>{g&&(g.render(),y.current&&g.animationState&&g.animationState.animateChanges())}),(0,e.useEffect)(()=>{g&&(g.updateFeatures(),!y.current&&g.animationState&&g.animationState.animateChanges(),y.current&&(y.current=!1,window.HandoffComplete=!0))}),g}],705282),t.s(["isRefObject",0,u],28343),t.s(["useMotionRef",0,function(t,i,r){return(0,e.useCallback)(e=>{e&&t.mount&&t.mount(e),i&&(e?i.mount(e):i.unmount()),r&&("function"==typeof r?r(e):u(r)&&(r.current=e))},[i])}],20292),t.s(["isVariantLabel",0,h],262171),t.s(["isAnimationControls",0,c],432933);let d=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],p=["initial",...d];function m(t){return c(t.animate)||p.some(e=>h(t[e]))}function f(t){return Array.isArray(t)?t.join(" "):t}t.s(["variantPriorityOrder",0,d,"variantProps",0,p],486201),t.s(["isControllingVariants",0,m,"isVariantNode",0,function(t){return!!(m(t)||t.variants)}],581994),t.s(["useCreateMotionContext",0,function(t){let{initial:i,animate:n}=function(t,e){if(m(t)){let{initial:e,animate:i}=t;return{initial:!1===e||h(e)?e:void 0,animate:h(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,e.useContext)(r.MotionContext));return(0,e.useMemo)(()=>({initial:i,animate:n}),[f(i),f(n)])}],285879);let g={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"]},y={};for(let t in g)y[t]={isEnabled:e=>g[t].some(t=>!!e[t])};t.s(["featureDefinitions",0,y],261573),t.s(["loadFeatures",0,function(t){for(let e in t)y[e]={...y[e],...t[e]}}],808014)},442511,t=>{"use strict";var e,i,r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|download|draggable|encType|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|playsInl
1ine|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|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)-.*))$/,n=(e=function(t){return r.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&91>t.charCodeAt(2)},i={},function(t){return void 0===i[t]&&(i[t]=e(t)),i[t]});t.s(["default",0,n],442511)},676278,572001,650203,t=>{"use strict";let e;var i,r,n=t.i(409113),s=t.i(6617),o=t.i(764319),a=t.i(705282),l=t.i(20292),u=t.i(285879),h=t.i(808014),c=t.i(23268),d=t.i(690247),p=t.i(206519);let m=(0,n.createContext)({}),f=Symbol.for("motionComponentSymbol"),g=["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 y(t){if("string"!=typeof t||t.includes("-"));else if(g.indexOf(t)>-1||/[A-Z]/.test(t))return!0;return!1}let v={},x=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],P=new Set(x);function b(t,{layout:e,layoutId:i}){return P.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!v[t]||"opacity"===t)}let T=t=>!!(t&&t.getVelocity),w={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},A=x.length;var S=t.i(77790);let V=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var C=t.i(177727),M=t.i(337386);let E={...C.number,transform:Math.round},D={borderWidth:M.px,borderTopWidth:M.px,borderRightWidth:M.px,borderBottomWidth:M.px,borderLeftWidth:M.px,borderRadius:M.px,radius:M.px,borderTopLeftRadius:M.px,borderTopRightRadius:M.px,borderBottomRightRadius:M.px,borderBottomLeftRadius:M.px,width:M.px,maxWidth:M.px,height:M.px,maxHeight:M.px,size:M.px,top:M.px,right:M.px,bottom:M.px,left:M.px,padding:M.px,paddingTop:M.px,paddingRight:M.px,paddingBottom:M.px,paddingLeft:M.px,margin:M.px,marginTop:M.px,marginRight:M.px,marginBottom:M.px,marginLeft:M.px,rotate:M.degrees,rotateX:M.degrees,rotateY:M.degrees,rotateZ:M.degrees,scale:C.scale,scaleX:C.scale,scaleY:C.scale,scaleZ:C.scale,skew:M.degrees,skewX:M.degrees,skewY:M.degrees,distance:M.px,translateX:M.px,translateY:M.px,translateZ:M.px,x:M.px,y:M.px,z:M.px,perspective:M.px,transformPerspective:M.px,opacity:C.alpha,originX:M.progressPercentage,originY:M.progressPercentage,originZ:M.px,zIndex:E,fillOpacity:C.alpha,strokeOpacity:C.alpha,numOctaves:E};function k(t,e,i,r){let{style:n,vars:s,transform:o,transformOrigin:a}=t,l=!1,u=!1,h=!0;for(let t in e){let i=e[t];if((0,S.isCSSVariableName)(t)){s[t]=i;continue}let r=D[t],c=V(i,r);if(P.has(t)){if(l=!0,o[t]=c,!h)continue;i!==(r.default||0)&&(h=!1)}else t.startsWith("origin")?(u=!0,a[t]=c):n[t]=c}if(!e.transform&&(l||r?n.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:i=!0}
1,r,n){let s="";for(let e=0;e<A;e++){let i=x[e];if(void 0!==t[i]){let e=w[i]||i;s+=`${e}(${t[i]}) `}}return e&&!t.z&&(s+="translateZ(0)"),s=s.trim(),n?s=n(t,r?"":s):i&&r&&(s="none"),s}(t.transform,i,h,r):n.transform&&(n.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=a;n.transformOrigin=`${t} ${e} ${i}`}}let R=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function L(t,e,i){for(let r in e)T(e[r])||b(r,i)||(t[r]=e[r])}let j=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function F(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||j.has(t)}let B=t=>!F(t);try{(i=t.r(442511).default)&&(B=t=>t.startsWith("on")?!F(t):i(t))}catch(t){}function O(t,e,i){return"string"==typeof t?t:M.px.transform(e+i*t)}let I={offset:"stroke-dashoffset",array:"stroke-dasharray"},U={offset:"strokeDashoffset",array:"strokeDasharray"};function N(t,{attrX:e,attrY:i,attrScale:r,originX:n,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},h,c,d){let p,m;if(k(t,u,h,d),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:f,style:g,dimensions:y}=t;f.transform&&(y&&(g.transform=f.transform),delete f.transform),y&&(void 0!==n||void 0!==s||g.transform)&&(p=O(void 0!==n?n:.5,y.x,y.width),m=O(void 0!==s?s:.5,y.y,y.height),g.transformOrigin=`${p} ${m}`),void 0!==e&&(f.x=e),void 0!==i&&(f.y=i),void 0!==r&&(f.scale=r),void 0!==o&&function(t,e,i=1,r=0,n=!0){t.pathLength=1;let s=n?I:U;t[s.offset]=M.px.transform(-r);let o=M.px.transform(e),a=M.px.transform(i);t[s.array]=`${o} ${a}`}(f,o,a,l,!1)}let H=()=>({...R(),attrs:{}}),W=t=>"string"==typeof t&&"svg"===t.toLowerCase();var z=t.i(543927);function $(t,{style:e,vars:i},r,n){for(let s in Object.assign(t.style,e,n&&n.getProjectionStyles(r)),i)t.style.setProperty(s,i[s])}let X=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Y(t,e,i,r){for(let i in $(t,e,void 0,r),e.attrs)t.setAttribute(X.has(i)?i:(0,z.camelToDash)(i),e.attrs[i])}function G(t,e){let{style:i}=t,r={};for(let n in i)(T(i[n])||e.style&&T(e.style[n])||b(n,t))&&(r[n]=i[n]);return r}function q(t,e){let i=G(t,e);for(let r in t)(T(t[r])||T(e[r]))&&(i[-1!==x.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]);return i}var Z=t.i(432933),K=t.i(50897);function _(t,e,i,r={},n={}){return"function"==typeof e&&(e=e(void 0!==i?i:t.custom,r,n)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==i?i:t.custom,r,n)),e}var J=t.i(628886);let Q=t=>Array.isArray(t),tt=t=>Q(t)?t[t.length-1]||0:t;function te(t){let e=T(t)?t.get():t;return e&&"object"==typeof e&&e.mix&&e.toValue?e.toValue():e}var ti=t.i(581994);let tr=t=>(e,i)=>{let r=(0,n.useContext)(o.MotionContext),s=(0,n.useContext)(K.PresenceContext),a=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:i},r,n,s){let o={latestValues:function(t,e,i,r){let n={},s=r(t,{});for(let t in s)n[t]=te(s[t]);let{initial:o,animate:a}=t,l=(0,ti.isControllingVariants)(t),u=(0,ti.isVariantNode)(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===o)?a:o;return c&&"boolean"!=typeof c&&!(0,Z.isAnimationControls)(c)&&(Array.isArray(c)?c:[c]).forEach(e=>{let i=_(t,e);if(!i)return;let{transitionEnd:r,transition:s,...o}=i;for(let t in o){let e=o[t];
1if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(n[t]=e)}for(let t in r)n[t]=r[t]}),n}(r,n,s,t),renderState:e()};return i&&(o.mount=t=>i(r,t,o)),o})(t,e,r,s);return i?a():(0,J.useConstant)(a)};var tn=t.i(782727);let ts={useVisualState:tr({scrapeMotionValuesFromProps:q,createRenderState:H,onMount:(t,e,{renderState:i,latestValues:r})=>{tn.frame.read(()=>{try{i.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}}),tn.frame.render(()=>{N(i,r,{enableHardwareAcceleration:!1},W(e.tagName),t.transformTemplate),Y(e,i)})}})},to={useVisualState:tr({scrapeMotionValuesFromProps:G,createRenderState:R})};function ta(t,e,i,r={passive:!0}){return t.addEventListener(e,i,r),()=>t.removeEventListener(e,i)}let tl=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tu(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}function th(t,e,i,r){return ta(t,e,t=>tl(t)&&i(t,tu(t)),r)}var tc=t.i(326669);function td(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let tp=td("dragHorizontal"),tm=td("dragVertical");function tf(t){let e=!1;if("y"===t)e=tm();else if("x"===t)e=tp();else{let t=tp(),i=tm();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function tg(){let t=tf(!0);return!t||(t(),!1)}class ty{constructor(t){this.isMounted=!1,this.node=t}update(){}}function tv(t,e){let i="onHover"+(e?"Start":"End");return th(t.current,"pointer"+(e?"enter":"leave"),(r,n)=>{if("touch"===r.pointerType||tg())return;let s=t.getProps();t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",e),s[i]&&tn.frame.update(()=>s[i](r,n))},{passive:!t.getProps()[i]})}let tx=(t,e)=>!!e&&(t===e||tx(t,e.parentElement));var tP=t.i(706347);function tb(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,tu(i))}let tT=new WeakMap,tw=new WeakMap,tA=t=>{let e=tT.get(t.target);e&&e(t)},tS=t=>{t.forEach(tA)},tV={some:0,all:1};function tC(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let r=0;r<i;r++)if(e[r]!==t[r])return!1;return!0}var tM=t.i(262171);function tE(t,e,i){let r,n,s=t.getProps();return _(s,e,void 0!==i?i:s.custom,(r={},t.values.forEach((t,e)=>r[e]=t.get()),r),(n={},t.values.forEach((t,e)=>n[e]=t.getVelocity()),n))}var tD=t.i(486201),tk=t.i(838791),tR=t.i(594148);let tL=t=>1e3*t,tj=t=>Array.isArray(t)&&"number"==typeof t[0],tF=([t,e,i,r])=>`cubic-bezier(${t}, ${e}, ${i}, ${r})`,tB={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tF([0,.65,.55,1]),circOut:tF([.55,0,1,.45]),backIn:tF([.31,.01,.66,-.59]),backOut:tF([.33,1.53,.69,.99])};t.i(758915);let tO=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function tI(t,e,i,r){return t===e&&i===r?tP.noop:n=>0===n||1===n?n:tO(function(t,e,i,r,n){let s,o,a=0;do(s=tO(o=e+(i-e)/2,r,n)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12)return o}(n,0,1,t,i),e,r)}let tU=tI(.42,0,1,1),tN=tI(0,0,.58,1),tH=tI(.42,0,.58,1),tW=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,tz=t=>e=>1-t(1-e),t$=t=>1-Math.sin(Math.acos(t)),tX=tz(t$),tY=tW(t$),tG=tI(.33,1.53,.69,.99),tq=tz(tG),tZ=tW(tq),tK={linear:tP.noop,easeIn:tU,easeInOut:tH,easeOut:tN,circIn:t$,circInOut:tY,circOut:tX,backIn:tq,backInOut:tZ,backOut:tG,anticipate:t=>(t*=2)<1?.5*tq(t):.5*(2-Math.pow(2,-10*(t-1)))},t_=t=>{if(Array.isArray(t)){(0,tR.invariant)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,r,n]=t;return tI(e,i,r,n)}return"string"==typeof t?((0,tR.invariant)(void 0!==tK[t],`Invalid easing type '${t}'`),tK[t]):t};var tJ=t.i(271270),tQ=t.i(181461);function t0({duration:t=300,keyframes:e,times:i,ease:r="easeInOut"}){var n;let s=Array.isArray(r)&&"number"!=typeof r[0]?r.map(t_):t_(r),o={done:!1,value:e[0]},a=(n=i&&i.length===e.length?i:(0,tQ.defaultOffset)(e),n.map(e=>e*t)),l=(0,tJ.interpolate)(a,e,{ease:Array.isArray(s)?s:e.map(()=>s||tH).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=l(e),o.done=e>=t,o)}}var t1=t.i(696373);function t2(t,e,i){let r=Math.max(e-5,0);return(0,t1.velocityPerSecond)(i-t(r),e-r)}var t3=t.i(88684);function t5(t,e){return t*Math.sqrt(1-e*e)}let t9=["duration","bounce"],t7=["stiffness","damping","mass"];function t6(t,e){return e.some(e=>void 0!==t[e])}function t4({keyframes:t,restDelta:e,restSpeed:i,...r}){let n,s=t[0],o=t[t.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:h,duration:c,velocity:d,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!t6(t,t7)&&t6(t,t9)){let i=function({duration:t=800,bounce:e=.25,velocity:i=0,mass:r=1}){let n,s;(0,tR.warning)(t<=tL(10),"Spring duration must be 10 seconds or less");let o=1-e;o=(0,t3.clamp)(.05,1,o),t=(0,t3.clamp)(.01,10,t/1e3),o<1?(n=e=>{let r=e*o,n=r*t;return .001-(r-i)/t5(e,o)*Math.exp(-n)},s=e=>{let r=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-r),l=t5(Math.pow(e,2),o);return(r*i+i-s)*a*(-n(e)+.001>0?-1:1)/l}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));
1let a=function(t,e,i){let r=i;for(let i=1;i<12;i++)r-=t(r)/e(r);return r}(n,s,5/t);if(t=tL(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*r;return{stiffness:e,damping:2*o*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...r,velocity:-((r.velocity||0)/1e3)}),m=d||0,f=u/(2*Math.sqrt(l*h)),g=o-s,y=Math.sqrt(l/h)/1e3,v=5>Math.abs(g);if(i||(i=v?.01:2),e||(e=v?.005:.5),f<1){let t=t5(y,f);n=e=>o-Math.exp(-f*y*e)*((m+f*y*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}else if(1===f)n=t=>o-Math.exp(-y*t)*(g+(m+y*g)*t);else{let t=y*Math.sqrt(f*f-1);n=e=>{let i=Math.exp(-f*y*e),r=Math.min(t*e,300);return o-i*((m+f*y*g)*Math.sinh(r)+t*g*Math.cosh(r))/t}}return{calculatedDuration:p&&c||null,next:t=>{let r=n(t);if(p)a.done=t>=c;else{let s=m;0!==t&&(s=f<1?t2(n,t,r):0);let l=Math.abs(o-r)<=e;a.done=Math.abs(s)<=i&&l}return a.value=a.done?o:r,a}}}function t8({keyframes:t,velocity:e=0,power:i=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,y=void 0===o?g:o(g);y!==g&&(f=y-p);let v=t=>-f*Math.exp(-t/r),x=t=>y+v(t),P=t=>{let e=v(t),i=x(t);m.done=Math.abs(e)<=u,m.value=m.done?y:i},b=t=>{let e;if(e=m.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;c=t,d=t4({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:t2(x,t,m.value),damping:n,stiffness:s,restDelta:u,restSpeed:h})}};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,P(t),b(t)),void 0!==c&&t>c)?d.next(t-c):(e||P(t),m)}}}let et=t=>{let e=({timestamp:e})=>t(e);return{start:()=>tn.frame.update(e,!0),stop:()=>(0,tn.cancelFrame)(e),now:()=>tn.frameData.isProcessing?tn.frameData.timestamp:performance.now()}};function ee(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let ei={decay:t8,inertia:t8,tween:t0,keyframes:t0,spring:t4};function er({autoplay:t=!0,delay:e=0,driver:i=et,keyframes:r,type:n="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:h,onUpdate:c,...d}){let p,m,f,g,y,v=1,x=!1,P=()=>{m=new Promise(t=>{p=t})};P();let b=ei[n]||t0;b!==t0&&"number"!=typeof r[0]&&(g=(0,tJ.interpolate)([0,100],r,{clamp:!1}),r=[0,100]);let T=b({...d,keyframes:r});"mirror"===a&&(y=b({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let w="idle",A=null,S=null,V=null;null===T.calculatedDuration&&s&&(T.calculatedDuration=ee(T));let{calculatedDuration:C}=T,M=1/0,E=1/0;null!==C&&(E=(M=C+o)*(s+1)-o);let D=0,k=t=>{if(null===S)return;v>0&&(S=Math.min(S,t)),v<0&&(S=Math.min(t-E/v,S));let i=(D=null!==A?A:Math.round(t-S)*v)-e*(v>=0?1:-1),n=v>=0?i<0:i>E;D=Math.max(i,0),"finished"===w&&null===A&&(D=E);let l=D,u=T;if(s){let t=Math.min(D,E)/M,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,s+1))%2&&("reverse"===a?(i=1-i,o&&(i-=o/M)):"mirror"===a&&(u=y)),l=(0,t3.clamp)(0,1,i)*M}let h=n?{done:!1,value:r[0]}:u.next(l);g&&(h.value=g(h.value));let{done:d}=h;n||null===C||(d=v>=0?D>=E:D<=0);let p=null===A&&("finished"===w||"running"===w&&d);return c&&c(h.value),p&&j(),h},R=()=>{f&&f.stop(),f=void 0},L=()=>{w="idle",R(),p(),P(),S=V=null},j=()=>{w="finished",h&&h(),R(),p()},F=()=>{if(x)return;f||(f=i(k));let t=f.now();l&&l(),null!==A?S=t-A:S&&"finished"!==w||(S=t),"finished"===w&&P(),V=S,A=null,w="running",f.start()};t&&F();let B={then:(t,e)=>m.then(t,e),get time(){return D/1e3},set time(newTime){D=newTime=tL(newTime),null===A&&f&&0!==v?S=f.now()-newTime/v:A=newTime},get duration(){return(null===T.calculatedDuration?ee(T):T.calculatedDuration)/1e3},get speed(){return v},set speed(newSpeed){if(newSpeed===v||!f)return;v=newSpeed,B.time=D/1e3},get state(){return w},play:F,pause:()=>{w="paused",A=D},stop:()=>{x=!0,"idle"!==w&&(w="idle",u&&u(),L())},cancel:()=>{null!==V&&k(V),L()},complete:()=>{w="finished"},sample:t=>(S=0,k(t))};return B}let en=(r=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===e&&(e=r()),e)),es=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),eo={type:"spring",stiffness:500,damping:25,restSpeed:10},ea={type:"keyframes",duration:.8},el={type:"keyframes",ease:[.25,.1,.35,1],duration:.3};var eu=t.i(183996);let eh=(t,e)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eu.complex.test(e)||"0"===e)&&!e.startsWith("url("));var ec=t.i(930695);let ed=new Set(["brightness","contrast","saturate","opacity"]);function ep(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=i.match(ec.floatRegex)||[];
1if(!r)return t;let n=i.replace(r,""),s=+!!ed.has(e);return r!==i&&(s*=100),e+"("+s+n+")"}let em=/([a-z-]*)\(.*?\)/g,ef={...eu.complex,getAnimatableNone:t=>{let e=t.match(em);return e?e.map(ep).join(" "):t}};var eg=t.i(973573);let ey={...D,color:eg.color,backgroundColor:eg.color,outlineColor:eg.color,fill:eg.color,stroke:eg.color,borderColor:eg.color,borderTopColor:eg.color,borderRightColor:eg.color,borderBottomColor:eg.color,borderLeftColor:eg.color,filter:ef,WebkitFilter:ef},ev=t=>ey[t];function ex(t,e){let i=ev(t);return i!==ef&&(i=eu.complex),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let eP=t=>/^0[^.\s]+$/.test(t);function eb(t,e){return t[e]||t.default||t}let eT=(t,e,i,r={})=>n=>{let s=eb(r,t)||{},o=s.delay||r.delay||0,{elapsed:a=0}=r;a-=tL(o);let l=function(t,e,i,r){let n,s,o=eh(e,i);n=Array.isArray(i)?[...i]:[null,i];let a=void 0!==r.from?r.from:t.get(),l=[];for(let t=0;t<n.length;t++){var u;null===n[t]&&(n[t]=0===t?a:n[t-1]),("number"==typeof(u=n[t])?0===u:null!==u?"none"===u||"0"===u||eP(u):void 0)&&l.push(t),"string"==typeof n[t]&&"none"!==n[t]&&"0"!==n[t]&&(s=n[t])}if(o&&l.length&&s)for(let t=0;t<l.length;t++)n[l[t]]=ex(e,s);return n}(e,t,i,s),u=l[0],h=l[l.length-1],c=eh(t,u),d=eh(t,h);(0,tR.warning)(c===d,`You are trying to animate ${t} from "${u}" to "${h}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${h} via the \`style\` property.`);let p={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...s,delay:-a,onUpdate:t=>{e.set(t),s.onUpdate&&s.onUpdate(t)},onComplete:()=>{n(),s.onComplete&&s.onComplete()}};if(!function({when:t,delay:e,delayChildren:i,staggerChildren:r,staggerDirection:n,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(s)&&(p={...p,...((t,{keyframes:e})=>e.length>2?ea:P.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:eo:el)(t,p)}),p.duration&&(p.duration=tL(p.duration)),p.repeatDelay&&(p.repeatDelay=tL(p.repeatDelay)),!c||!d||!1===s.type)return function({keyframes:t,delay:e,onUpdate:i,onComplete:r}){let n=()=>(i&&i(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:tP.noop,pause:tP.noop,stop:tP.noop,then:t=>(t(),Promise.resolve()),cancel:tP.noop,complete:tP.noop});return e?er({keyframes:[0,1],duration:0,delay:e,onComplete:n}):n()}(p);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){let i=function(t,e,{onUpdate:i,onComplete:r,...n}){let s,o;if(!(en()&&es.has(e)&&!n.repeatDelay&&"mirror"!==n.repeatType&&0!==n.damping&&"inertia"!==n.type))return!1;let a=!1,l=!1,u=()=>{o=new Promise(t=>{s=t})};u();let{keyframes:h,duration:c=300,ease:d,times:p}=n;if("spring"===n.type||"backgroundColor"===e||!function t(e){return!!(!e||"string"==typeof e&&tB[e]||tj(e)||Array.isArray(e)&&e.every(t))}(n.ease)){let t=er({...n,repeat:0,delay:0}),e={done:!1,value:h[0]},i=[],r=0;for(;!e.done&&r<2e4;)e=t.sample(r),i.push(e.value),r+=10;p=void 0,h=i,c=r-10,d="linear"}let m=function(t,e,i,{delay:r=0,duration:n,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=function t(e){if(e)return tj(e)?tF(e):Array.isArray(e)?e.map(t):tB[e]}(a);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:r,duration:n,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"})}(t.owner.current,e,h,{...n,duration:c,ease:d,times:p}),f=()=>{l=!1,m.cancel()},g=()=>{l=!0,tn.frame.update(f),s(),u()};return m.onfinish=()=>{l||(t.set(function(t,{repeat:e,repeatType:i="loop"}){let r=e&&"loop"!==i&&e%2==1?0:t.length-1;return t[r]}(h,n)),r&&r(),g())},{then:(t,e)=>o.then(t,e),attachTimeline:t=>(m.timeline=t,m.onfinish=null,tP.noop),get time(){return(m.currentTime||0)/1e3},set time(newTime){m.currentTime=tL(newTime)},get speed(){return m.playbackRate},set speed(newSpeed){m.playbackRate=newSpeed},get duration(){return c/1e3},play:()=>{a||(m.play(),(0,tn.cancelFrame)(f))},pause:()=>m.pause(),stop:()=>{if(a=!0,"idle"===m.playState)return;let{currentTime:e}=m;if(e){let i=er({...n,autoplay:!1});t.setWithVelocity(i.sample(e-10).value,i.sample(e).value,10)}g()},complete:()=>{l||m.finish()},cancel:g}}(e,t,p);if(i)return i}return er(p)};function ew(t){return!!(T(t)&&t.add)}let eA=t=>
1/^\-?\d*\.?\d+$/.test(t);var eS=t.i(701481);let eV=t=>e=>e.test(t),eC=[C.number,M.px,M.percent,M.degrees,M.vw,M.vh,{test:t=>"auto"===t,parse:t=>t}],eM=t=>eC.find(eV(t)),eE=[...eC,eg.color,eu.complex],eD=t=>eE.find(eV(t));function ek(t,e){let i=tE(t,e),{transitionEnd:r={},transition:n={},...s}=i?t.makeTargetAnimatable(i,!1):{};for(let e in s={...s,...r}){let i=tt(s[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,eS.motionValue)(i))}}function eR(t,e){[...e].reverse().forEach(i=>{let r=t.getVariant(i);r&&ek(t,r),t.variantChildren&&t.variantChildren.forEach(t=>{eR(t,e)})})}function eL(t,e,i){var r,n;let s=Object.keys(e).filter(e=>!t.hasValue(e)),o=s.length;if(o)for(let a=0;a<o;a++){let o=s[a],l=e[o],u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!=(n=null!=(r=i[o])?r:t.readValue(o))?n:e[o]),null!=u&&("string"==typeof u&&(eA(u)||eP(u))?u=parseFloat(u):!eD(u)&&eu.complex.test(l)&&(u=ex(o,l)),t.addValue(o,(0,eS.motionValue)(u,{owner:t})),void 0===i[o]&&(i[o]=u),null!==u&&t.setBaseTarget(o,u))}}function ej(t,e,i){let r={};for(let n in t){let t=function(t,e){if(e)return(e[t]||e.default||e).from}(n,e);if(void 0!==t)r[n]=t;else{let t=i.getValue(n);t&&(r[n]=t.get())}}return r}function eF(t,e,{delay:i=0,transitionOverride:r,type:n}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:o,...a}=t.makeTargetAnimatable(e),l=t.getValue("willChange");r&&(s=r);let u=[],h=n&&t.animationState&&t.animationState.getState()[n];for(let e in a){let r=t.getValue(e),n=a[e];if(!r||void 0===n||h&&function({protectedKeys:t,needsAnimating:e},i){let r=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,r}(h,e))continue;let o={delay:i,elapsed:0,...eb(s||{},e)};if(window.HandoffAppearAnimations){let i=t.getProps()[tk.optimizedAppearDataAttribute];if(i){let t=window.HandoffAppearAnimations(i,e,r,tn.frame);null!==t&&(o.elapsed=t,o.isHandoff=!0)}}let c=!o.isHandoff&&!function(t,e){let i=t.get();if(!Array.isArray(e))return i!==e;for(let t=0;t<e.length;t++)if(e[t]!==i)return!0}(r,n);if("spring"===o.type&&(r.getVelocity()||o.velocity)&&(c=!1),r.animation&&(c=!1),c)continue;r.start(eT(e,r,n,t.shouldReduceMotion&&P.has(e)?{type:!1}:o));let d=r.animation;ew(l)&&(l.add(e),d.then(()=>l.remove(e))),u.push(d)}return o&&Promise.all(u).then(()=>{o&&ek(t,o)}),u}function eB(t,e,i={}){let r=tE(t,e,i.custom),{transition:n=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(n=i.transitionOverride);let s=r?()=>Promise.all(eF(t,r,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=n;return function(t,e,i=0,r=0,n=1,s){let o=[],a=(t.variantChildren.size-1)*r,l=1===n?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(eO).forEach((t,r)=>{t.notify("AnimationStart",e),o.push(eB(t,e,{...s,delay:i+l(r)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,s+r,o,a,i)}:()=>Promise.resolve(),{when:a}=n;if(!a)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}function eO(t,e){return t.sortNodePosition(e)}function eI(t,e,i={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>eB(t,e,i)));else if("string"==typeof e)r=eB(t,e,i);else{let n="function"==typeof e?tE(t,e,i.custom):e;r=Promise.all(eF(t,n,i))}return r.then(()=>t.notify("AnimationComplete",e))}t.s(["checkTargetForNewValues",0,eL,"getOrigin",0,ej,"setTarget",0,ek,"setValues",0,function(t,e){return Array.isArray(e)?eR(t,e):"string"==typeof e?eR(t,[e]):void ek(t,e)}],572001),t.s(["animateVisualElement",0,eI],650203);let eU=[...tD.variantPriorityOrder].reverse(),eN=tD.variantPriorityOrder.length;function eH(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let eW=0,ez=(t,e)=>Math.abs(t-e);class e${constructor(t,e,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=eG(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(ez(t.x,e.x)**2+ez(t.y,e.y)**2)>=3);if(!r&&!n)return;let{point:s}=i,{timestamp:o}=tn.frameData;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;r||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=eX(e,this.transformPagePoint),tn.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:r,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=eG("pointercancel"===t.type?this.lastMoveEventInfo:eX(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),r&&r(t,s)},!tl(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.contextWindow=r||window;const s=eX(tu(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=tn.frameData;this.history=[{...o,timestamp:a}];const{onSessionStart:l}=e;l&&l(t,eG(s,this.history)),this.removeListeners=(0,tc.pipe)(th(this.contextWindow,"pointermove",this.handlePointerMove),th(this.contextWindow,"pointerup",this.handlePointerUp),th(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,tn.cancelFrame)(this.updatePoint)}}function eX(t,e){return e?{point:e(t.point)}:t}function eY(t,e){return{x:t.x-e.x,y:t.y-e.y}}function eG({point:t},e){return{point:t,delta:eY(t,eq(e)),offset:eY(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,r=eq(t);for(;e>=0&&(i=t[e],!(r.timestamp-i.timestamp>tL(.1)));)e--;if(!i)return{x:0,y:0};let n=(r.timestamp-i.timestamp)/1e3;if(0===n)return{x:0,y:0};let s={x:(r.x-i.x)/n,y:(r.y-i.y)/n};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e)}}function eq(t){return t[t.length-1]}var eZ=t.i(28343),eK=t.i(775),e_=t.i(795388);function eJ(t){return t.max-t.min}function eQ(t,e=0,i=.01){return Math.abs(t-e)<=i}function e0(t,e,i,r=.5){t.origin=r,t.originPoint=(0,e_.mix)(e.min,e.max,t.origin),t.scale=eJ(i)/eJ(e),(eQ(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=(0,e_.mix)(i.min,i.max,t.origin)-t.originPoint,(eQ(t.translate)||isNaN(t.translate))&&(t.translate=0)}function e1(t,e,i,r){e0(t.x,e.x,i.x,r?r.originX:void 0),e0(t.y,e.y,i.y,r?r.originY:void 0)}function e2(t,e,i){t.min=i.min+e.min,t.max=t.min+eJ(e)}function e3(t,e,i){t.min=e.min-i.min,t.max=t.min+eJ(e)}function e5(t,e,i){e3(t.x,e.x,i.x),e3(t.y,e.y,i.y)}function e9(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 e7(t,e){let i=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,r]=[r,i]),{min:i,max:r}}function e6(t,e,i){return{min:e4(t,e),max:e4(t,i)}}function e4(t,e){return"number"==typeof t?t:t[e]||0}let e8=()=>({translate:0,scale:1,origin:0,originPoint:0}),it=()=>({x:e8(),y:e8()}),ie=()=>({min:0,max:0}),ii=()=>({x:ie(),y:ie()});function ir(t){return[t("x"),t("y")]}function is({top:t,left:e,right:i,bottom:r}){return{x:{min:e,max:i},y:{min:t,max:r}}}function io(t){return void 0===t||1===t}function ia({scale:t,scaleX:e,scaleY:i}){return!io(t)||!io(e)||!io(i)}function il(t){return ia(t)||iu(t)||t.z||t.rotate||t.rotateX||t.rotateY}function iu(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function ih(t,e,i,r,n){return void 0!==n&&(t=r+n*(t-r)),r+i*(t-r)+e}function ic(t,e=0,i=1,r,n){t.min=ih(t.min,e,i,r,n),t.max=ih(t.max,e,i,r,n)}function id(t,{x:e,y:i}){ic(t.x,e.translate,e.scale,e.originPoint),ic(t.y,i.translate,i.scale,i.originPoint)}function ip(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function im(t,e){t.min=t.min+e,t.max=t.max+e}function ig(t,e,[i,r,n]){let s=void 0!==e[n]?e[n]:.5,o=(0,e_.mix)(t.min,t.max,s);ic(t,e[i],e[r],o,e.scale)}let iy=["x","scaleX","originX"],iv=["y","scaleY","originY"];function ix(t,e){ig(t.x,e,iy),ig(t.y,e,iv)}function iP(t,e){return is(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}let ib=({current:t})=>t?t.ownerDocument.defaultView:null,iT=new WeakMap;class iw{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ii(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let r=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(tu(t,"page").point)},n=(t,e)=>{let{drag:i,dragPropagation:r,onDragStart:n}=this.getProps();if(i&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=tf(i),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ir(t=>{let e=this.getAxisMotionValue(t).get()||0;if(M.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[t];r&&(e=eJ(r)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&tn.frame.update(()=>n(t,e),!1,!0);let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},s=(t,e)=>{let{dragPropagation:i,dragDirectionLock:r,onDirectionLock:n,onDrag:s}=this.getProps();if(!i&&!this.openGlobalLock)return;let{offset:o}=e;if(r&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},o=(t,e)=>this.stop(t,e),a=()=>ir(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new e$(t,{onSessionStart:r,onStart:n,onMove:s,onSessionEnd:o,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:ib(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:r}=e;this.startAnimation(r);let{onDragEnd:n}=this.getProps();n&&tn.frame.update(()=>n(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:r}=this.getProps();if(!i||!iA(t,r,this.currentDirection))return;let n=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},r){return void 0!==e&&t<e?t=r?(0,e_.mix)(e,t,r.min):Math.max(t,e):void 0!==i&&t>i&&(t=r?(0,e_.mix)(i,t,r.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),n.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,n=this.constraints;e&&(0,eZ.isRefObject)(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(t,{top:e,left:i,bottom:r,right:n}){return{x:e9(t.x,i,n),y:e9(t.y,e,r)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:e6(t,"left","right"),y:e6(t,"top","bottom")}}(i),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ir(t=>{var e,i;let n;this.getAxisMotionValue(t)&&(this.constraints[t]=(e=r.layoutBox[t],i=this.constraints[t],n={},void 0!==i.min&&(n.min=i.min-e.min),void 0!==i.max&&(n.max=i.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,eZ.isRefObject)(e))return!1;let r=e.current;(0,tR.invariant)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;
1let s=function(t,e,i){let r=iP(t,i),{scroll:n}=e;return n&&(im(r.x,n.offset.x),im(r.y,n.offset.y)),r}(r,n.root,this.visualElement.getTransformPagePoint()),o=(t=n.layout.layoutBox,{x:e7(t.x,s.x),y:e7(t.y,s.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=is(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:r,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(ir(o=>{if(!iA(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return i.start(eT(t,i,0,e))}stopAnimation(){ir(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ir(t=>{var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.pause()})}getAnimationState(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}getAxisMotionValue(t){let e="_drag"+t.toUpperCase(),i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){ir(e=>{let{drag:i}=this.getProps();if(!iA(e,i,this.currentDirection))return;let{projection:r}=this.visualElement,n=this.getAxisMotionValue(e);if(r&&r.layout){let{min:i,max:s}=r.layout.layoutBox[e];n.set(t[e]-(0,e_.mix)(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,eZ.isRefObject)(e)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};ir(t=>{let e=this.getAxisMotionValue(t);if(e){var i,n;let s,o,a,l=e.get();r[t]=(i={min:l,max:l},n=this.constraints[t],s=.5,o=eJ(i),(a=eJ(n))>o?s=(0,eK.progress)(n.min,n.max-o,i.min):o>a&&(s=(0,eK.progress)(i.min,i.max-a,n.min)),(0,t3.clamp)(0,1,s))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),ir(e=>{if(!iA(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:s}=this.constraints[e];i.set((0,e_.mix)(n,s,r[e]))})}addListeners(){if(!this.visualElement.current)return;iT.set(this.visualElement,this);let t=th(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();(0,eZ.isRefObject)(t)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),e();let n=ta(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(ir(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{n(),t(),r(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:r,dragConstraints:n,dragElastic:s,dragMomentum:o}}}function iA(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let iS=t=>(e,i)=>{t&&tn.frame.update(()=>t(e,i))};var iV=n;let iC={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function iM(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let iE={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!M.px.test(t))return t;else t=parseFloat(t);let i=iM(t,e.target.x),r=iM(t,e.target.y);return`${i}% ${r}%`}};class iD extends iV.default.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:r}=this.props,{projection:n}=t;Object.assign(v,iR),n&&(e.group&&e.group.add(n),i&&i.register&&r&&i.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),iC.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:r,isPresent:n}=this.props,s=i.projection;return s&&(s.isPresent=n,r||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?s.promote():s.relegate()||tn.frame.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ik(t){let[e,i]=function(){let t=(0,n.useContext)(K.PresenceContext);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:r}=t,s=(0,n.useId)();return(0,n.useEffect)(()=>r(s),[]),!e&&i?[!1,()=>i&&i(s)]:[!0]}(),r=(0,iV.useContext)(d.LayoutGroupContext);return iV.default.createElement(iD,{...t,layoutGroup:r,switchLayoutGroup:(0,iV.useContext)(m),isPresent:e,safeToRemove:i})}let iR={borderRadius:{...iE,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:iE,borderTopRightRadius:iE,borderBottomLeftRadius:iE,borderBottomRightRadius:iE,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let r=eu.complex.parse(t);if(r.length>5)return t;let n=eu.complex.createTransformer(t),s=+("number"!=typeof r[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;r[0+s]/=o,r[1+s]/=a;let l=(0,e_.mix)(o,a,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),n(r)}}};var iL=t.i(623903);let ij=["TopLeft","TopRight","BottomLeft","BottomRight"],iF=ij.length,iB=t=>"string"==typeof t?parseFloat(t):t,iO=t=>"number"==typeof t||M.px.test(t);function iI(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let iU=iH(0,.5,tX),iN=iH(.5,.95,tP.noop);function iH(t,e,i){return r=>r<t?0:r>e?1:i((0,eK.progress)(t,e,r))}function iW(t,e){t.min=e.min,t.max=e.max}function iz(t,e){iW(t.x,e.x),iW(t.y,e.y)}function i$(t,e,i,r,n){return t-=e,t=r+1/i*(t-r),void 0!==n&&(t=r+1/n*(t-r)),t}function iX(t,e,[i,r,n],s,o){!function(t,e=0,i=1,r=.5,n,s=t,o=t){if(M.percent.test(e)&&(e=parseFloat(e),e=(0,e_.mix)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,e_.mix)(s.min,s.max,r);t===s&&(a-=e),t.min=i$(t.min,e,i,a,n),t.max=i$(t.max,e,i,a,n)}(t,e[i],e[r],e[n],e.scale,s,o)}let iY=["x","scaleX","originX"],iG=["y","scaleY","originY"];function iq(t,e,i,r){iX(t.x,e,iY,i?i.x:void 0,r?r.x:void 0),iX(t.y,e,iG,i?i.y:void 0,r?r.y:void 0)}function iZ(t){return 0===t.translate&&1===t.scale}function iK(t){return iZ(t.x)&&iZ(t.y)}function i_(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function iJ(t){return eJ(t.x)/eJ(t.y)}
1var iQ=t.i(259296);class i0{constructor(){this.members=[]}add(t){(0,iQ.addUniqueItem)(this.members,t),t.scheduleRender()}remove(t){if((0,iQ.removeItem)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:r}=t.options;!1===r&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function i1(t,e,i){let r="",n=t.x.translate/e.x,s=t.y.translate/e.y;if((n||s)&&(r=`translate3d(${n}px, ${s}px, 0) `),(1!==e.x||1!==e.y)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),i){let{rotate:t,rotateX:e,rotateY:n}=i;t&&(r+=`rotate(${t}deg) `),e&&(r+=`rotateX(${e}deg) `),n&&(r+=`rotateY(${n}deg) `)}let o=t.x.scale*e.x,a=t.y.scale*e.y;return(1!==o||1!==a)&&(r+=`scale(${o}, ${a})`),r||"none"}let i2=(t,e)=>t.depth-e.depth;class i3{constructor(){this.children=[],this.isDirty=!1}add(t){(0,iQ.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,iQ.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(i2),this.isDirty=!1,this.children.forEach(t)}}let i5=["","X","Y","Z"],i9={visibility:"hidden"},i7=0,i6={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function i4({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(t={},i=null==e?void 0:e()){this.id=i7++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,i6.totalNodes=i6.resolvedTargetDeltas=i6.recalculatedProjection=0,this.nodes.forEach(re),this.nodes.forEach(rl),this.nodes.forEach(ru),this.nodes.forEach(ri),window.MotionDebug&&window.MotionDebug.record(i6)},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 i3)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new iL.SubscriptionManager),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:r,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(n||r)&&(this.isLayoutDirty=!0),t){let i,r=()=>this.root.updateBlockedByResize=!1;t(e,()=>{let t,e;this.root.updateBlockedByResize=!0,i&&i(),t=performance.now(),e=({timestamp:i})=>{let n=i-t;n>=250&&((0,tn.cancelFrame)(e),r(n-250))},tn.frame.read(e,!0),i=()=>(0,tn.cancelFrame)(e),iC.hasAnimatedSinceResize&&(iC.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(ra))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&s&&(r||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||s.getDefaultTransition()||rf,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!i_(this.targetLayout,r)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...eb(n,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||ra(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,tn.cancelFrame)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(rh),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(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rn);return}this.isUpdating||this.nodes.forEach(rs),this.isUpdating=!1,this.nodes.forEach(ro),this.nodes.forEach(i8),this.nodes.forEach(rt),this.clearAllSnapshots();let t=performance.now();tn.frameData.delta=(0,t3.clamp)(0,1e3/60,t-tn.frameData.timestamp),tn.frameData.timestamp=t,tn.frameData.isProcessing=!0,tn.steps.update.process(tn.frameData),tn.steps.preRender.process(tn.frameData),tn.steps.render.process(tn.frameData),tn.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(rr),this.sharedNodes.forEach(rc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tn.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tn.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ii(),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);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:r(this.instance),offset:i(this.instance)})}resetTransform(){if(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!iK(this.projectionDelta),i=this.getTransformTemplate(),r=i?i(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;t&&(e||il(this.latestValues)||s)&&(n(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),r=this.removeElementScroll(i);
1return t&&(r=this.removeTransform(r)),rv((e=r).x),rv(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return ii();let e=t.measureViewportBox(),{scroll:i}=this.root;return i&&(im(e.x,i.offset.x),im(e.y,i.offset.y)),e}removeElementScroll(t){let e=ii();iz(e,t);for(let i=0;i<this.path.length;i++){let r=this.path[i],{scroll:n,options:s}=r;if(r!==this.root&&n&&s.layoutScroll){if(n.isRoot){iz(e,t);let{scroll:i}=this.root;i&&(im(e.x,-i.offset.x),im(e.y,-i.offset.y))}im(e.x,n.offset.x),im(e.y,n.offset.y)}}return e}applyTransform(t,e=!1){let i=ii();iz(i,t);for(let t=0;t<this.path.length;t++){let r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&ix(i,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),il(r.latestValues)&&ix(i,r.latestValues)}return il(this.latestValues)&&ix(i,this.latestValues),i}removeTransform(t){let e=ii();iz(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!il(i.latestValues))continue;ia(i.latestValues)&&i.updateSnapshot();let r=ii();iz(r,i.measurePageBox()),iq(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,r)}return il(this.latestValues)&&iq(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tn.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,r,n;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);let o=!!this.resumingFrom||this!==s;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=tn.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ii(),this.relativeTargetOrigin=ii(),e5(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),iz(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=ii(),this.targetWithTransforms=ii()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,r=this.relativeTarget,n=this.relativeParent.target,e2(i.x,r.x,n.x),e2(i.y,r.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):iz(this.target,this.layout.layoutBox),id(this.target,this.targetDelta)):iz(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ii(),this.relativeTargetOrigin=ii(),e5(this.relativeTargetOrigin,this.target,t.target),iz(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}i6.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||ia(this.parent.latestValues)||iu(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(r=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===tn.frameData.timestamp&&(r=!1),r)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;iz(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;
1!function(t,e,i,r=!1){let n,s,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(n=i[a]).projectionDelta;let o=n.instance;(!o||!o.style||"contents"!==o.style.display)&&(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&ix(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,id(t,s)),r&&il(n.latestValues)&&ix(t,n.latestValues))}e.x=ip(e.x),e.y=ip(e.y)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox);let{target:l}=e;if(!l){this.projectionTransform&&(this.projectionDelta=it(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=it(),this.projectionDeltaWithTransform=it());let u=this.projectionTransform;e1(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=i1(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==o||this.treeScale.y!==a)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),i6.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){let i,r=this.snapshot,n=r?r.latestValues:{},s={...this.latestValues},o=it();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=ii(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(rm));this.animationProgress=0,this.mixTargetDelta=e=>{let r=e/1e3;if(rd(o.x,t.x,r),rd(o.y,t.y,r),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,m,f,g;e5(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,g=r,rp(p.x,m.x,f.x,g),rp(p.y,m.y,f.y,g),i&&(u=this.relativeTarget,d=i,u.x.min===d.x.min&&u.x.max===d.x.max&&u.y.min===d.y.min&&u.y.max===d.y.max)&&(this.isProjectionDirty=!1),i||(i=ii()),iz(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,r,n,s){n?(t.opacity=(0,e_.mix)(0,void 0!==i.opacity?i.opacity:1,iU(r)),t.opacityExit=(0,e_.mix)(void 0!==e.opacity?e.opacity:1,0,iN(r))):s&&(t.opacity=(0,e_.mix)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,r));for(let n=0;n<iF;n++){let s=`border${ij[n]}Radius`,o=iI(e,s),a=iI(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||iO(o)===iO(a)?(t[s]=Math.max((0,e_.mix)(iB(o),iB(a),r),0),(M.percent.test(a)||M.percent.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,e_.mix)(e.rotate||0,i.rotate||0,r))}(s,n,this.latestValues,r,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,tn.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tn.frame.update(()=>{var e;let i;iC.hasAnimatedSinceResize=!0,this.currentAnimation=(e={...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}},(i=T(0)?0:(0,eS.motionValue)(0)).start(eT("",i,1e3,e)),i.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:r,latestValues:n}=t;if(e&&i&&r){if(this!==t&&this.layout&&r&&rx(this.options.animationType,this.layout.layoutBox,r.layoutBox)){i=this.target||ii();let e=eJ(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let r=eJ(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+r}
1iz(e,i),ix(e,n),e1(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new i0),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let r=this.getStack();r&&r.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.rotate||i.rotateX||i.rotateY||i.rotateZ)&&(e=!0),!e)return;let r={};for(let e=0;e<i5.length;e++){let n="rotate"+i5[e];i[n]&&(r[n]=i[n],t.setStaticValue(n,0))}for(let e in t.render(),r)t.setStaticValue(e,r[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return i9;let r={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=te(null==t?void 0:t.pointerEvents)||"",r.transform=n?n(this.latestValues,""):"none",r;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=te(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!il(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1),e}let o=s.animationValues||s.latestValues;this.applyTransformsToTarget(),r.transform=i1(this.projectionDeltaWithTransform,this.treeScale,o),n&&(r.transform=n(o,r.transform));let{x:a,y:l}=this.projectionDelta;for(let t in r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?r.opacity=s===this?null!=(i=null!=(e=o.opacity)?e:this.latestValues.opacity)?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:r.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,v){if(void 0===o[t])continue;let{correct:e,applyTo:i}=v[t],n="none"===r.transform?o[t]:e(o[t],s);if(i){let t=i.length;for(let e=0;e<t;e++)r[i[e]]=n}else r[t]=n}return this.options.layoutId&&(r.pointerEvents=s===this?te(null==t?void 0:t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(rn),this.root.sharedNodes.clear()}}}function i8(t){t.updateLayout()}function rt(t){var e;let i=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:r}=t.layout,{animationType:n}=t.options,s=i.source!==t.layout.source;"size"===n?ir(t=>{let r=s?i.measuredBox[t]:i.layoutBox[t],n=eJ(r);r.min=e[t].min,r.max=r.min+n}):rx(n,i.layoutBox,e)&&ir(r=>{let n=s?i.measuredBox[r]:i.layoutBox[r],o=eJ(e[r]);n.max=n.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+o)});let o=it();e1(o,e,i.layoutBox);let a=it();s?e1(a,t.applyTransform(r,!0),i.measuredBox):e1(a,e,i.layoutBox);let l=!iK(o),u=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:n,layout:s}=r;if(n&&s){let o=ii();e5(o,i.layoutBox,n.layoutBox);let a=ii();e5(a,e,s.layoutBox),i_(o,a)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function re(t){i6.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ri(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function rr(t){t.clearSnapshot()}function rn(t){t.clearMeasurements()}function rs(t){t.isLayoutDirty=!1}function ro(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ra(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function rl(t){t.resolveTargetDelta()}function ru(t){t.calcProjection()}function rh(t){t.resetRotation()}function rc(t){t.removeLeadSnapshot()}function rd(t,e,i){t.translate=(0,e_.mix)(e.translate,0,i),t.scale=(0,e_.mix)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function rp(t,e,i,r){t.min=(0,e_.mix)(e.min,i.min,r),t.max=(0,e_.mix)(e.max,i.max,r)}function rm(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let rf={duration:.45,ease:[.4,0,.1,1]},rg=t=>"u">typeof navigator&&navigator.userAgent.toLowerCase().includes(t),ry=rg("applewebkit/")&&!rg("chrome/")?Math.round:tP.noop;function rv(t){t.min=ry(t.min),t.max=ry(t.max)}function rx(t,e,i){return"position"===t||"preserve-aspect"===t&&!eQ(iJ(e),iJ(i),.2)}let rP=i4({attachResizeListener:(t,e)=>ta(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rb={current:void 0},rT=i4({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rb.current){let t=new rP({});t.mount(window),t.setOptions({layoutScroll:!0}),rb.current=t}return rb.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),rw=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function rA(t,e,i=1){(0,tR.invariant)(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[r,n]=function(t){let e=rw.exec(t);if(!e)return[,];let[,i,r]=e;return[i,r]}(t);if(!r)return;let s=window.getComputedStyle(e).getPropertyValue(r);if(s){let t=s.trim();return eA(t)?parseFloat(t):t}return(0,S.isCSSVariableToken)(n)?rA(n,e,i+1):n}let rS=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),rV=t=>rS.has(t),rC=t=>t===C.number||t===M.px,rM=(t,e)=>parseFloat(t.split(", ")[e]),rE=(t,e)=>(i,{transform:r})=>{if("none"===r||!r)return 0;let n=r.match(/^matrix3d\((.+)\)$/);if(n)return rM(n[1],e);{let e=r.match(/^matrix\((.+)\)$/);return e?rM(e[1],t):0}},rD=new Set(["x","y","z"]),rk=x.filter(t=>!rD.has(t)),rR={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:rE(4,13),y:rE(5,14)};rR.translateX=rR.x,rR.translateY=rR.y;let rL={current:null},rj={current:!1};var rF=t.i(261573);let rB=new WeakMap,rO=Object.keys(rF.featureDefinitions),rI=rO.length,rU=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],rN=tD.variantProps.length;class rH{constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:r,visualState:n},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>tn.frame.render(this.render,!1,!0);const{latestValues:o,renderState:a}=n;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=a,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=s,this.isControllingVariants=(0,ti.isControllingVariants)(e),this.isVariantNode=(0,ti.isVariantNode)(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:l,...u}=this.scrapeMotionValuesFromProps(e,{});for(const t in u){const e=u[t];void 0!==o[t]&&T(e)&&(e.set(o[t],!1),ew(l)&&l.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,rB.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.forEac
1h((t,e)=>this.bindToMotionValue(e,t)),rj.current||function(){if(rj.current=!0,c.isBrowser)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>rL.current=t.matches;t.addListener(e),e()}else rL.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rL.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in rB.delete(this.current),this.projection&&this.projection.unmount(),(0,tn.cancelFrame)(this.notifyUpdate),(0,tn.cancelFrame)(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){let i=P.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tn.frame.update(this.notifyUpdate,!1,!0),i&&this.projection&&(this.projection.isTransformDirty=!0)}),n=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{r(),n()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},i,r,n){let s,o;for(let t=0;t<rI;t++){let i=rO[t],{isEnabled:r,Feature:n,ProjectionNode:a,MeasureLayout:l}=rF.featureDefinitions[i];a&&(s=a),r(e)&&(!this.features[i]&&n&&(this.features[i]=new n(this)),l&&(o=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);let{layoutId:t,layout:i,drag:r,dragConstraints:o,layoutScroll:a,layoutRoot:l}=e;this.projection.setOptions({layoutId:t,layout:i,alwaysMeasureLayout:!!r||o&&(0,eZ.isRefObject)(o),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof i?i:"both",initialPromotionConfig:n,layoutScroll:a,layoutRoot:l})}return o}updateFeatures(){for(let t in this.features){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ii()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,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<rU.length;e++){let i=rU[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let r=t["on"+i];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=function(t,e,i){let{willChange:r}=e;for(let n in e){let s=e[n],o=i[n];if(T(s))t.addValue(n,s),ew(r)&&r.add(n);else if(T(o))t.addValue(n,(0,eS.motionValue)(s,{owner:t})),ew(r)&&r.remove(n);else if(o!==s)if(t.hasValue(n)){let e=t.getValue(n);e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,(0,eS.motionValue)(void 0!==e?e:s,{owner:t}))}}for(let r in i)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),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}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}let e={};for(let t=0;t<rN;t++){let i=tD.variantProps[t],r=this.props[i];((0,tM.isVariantLabel)(r)||!1===r)&&(e[i]=r)}return e}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,eS.motionValue)(e,{owner:this}),this.addValue(t,i)),i}readValue(t){var e;return void 0===this.latestValues[t]&&this.current?null!=(e=this.getBaseTargetFromProps(this.props,t))?e:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let{initial:i}=this.props,r="string"==typeof i||"object"==typeof i?null==(e=_(this.props,i))?void 0:e[t]:void 0;if(i&&void 0!==r)return r;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||T(n)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new iL.SubscriptionManager),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class rW extends rH{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...i},{transformValues:r},n){let s=ej(i,t||{},this);if(r&&(e&&(e=r(e)),i&&(i=r(i)),s&&(s=r(s))),n){var o,a,l,u,h;let t;eL(this,i,s);let r=(o=i,a=s,o=(t=function(t,{...e},i){let r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:i};for(let n in i&&(i={...i}
1),t.values.forEach(t=>{let e=t.get();if(!(0,S.isCSSVariableToken)(e))return;let i=rA(e,r);i&&t.set(i)}),e){let t=e[n];if(!(0,S.isCSSVariableToken)(t))continue;let s=rA(t,r);s&&(e[n]=s,i||(i={}),void 0===i[n]&&(i[n]=t))}return{target:e,transitionEnd:i}}(this,o,l=e)).target,l=t.transitionEnd,u=o,h=l,Object.keys(u).some(rV)?((t,e,i={},r={})=>{e={...e},r={...r};let n=Object.keys(e).filter(rV),s=[],o=!1,a=[];if(n.forEach(n=>{let l,u=t.getValue(n);if(!t.hasValue(n))return;let h=i[n],c=eM(h),d=e[n];if(Q(d)){let t=d.length,e=+(null===d[0]);c=eM(h=d[e]);for(let i=e;i<t&&null!==d[i];i++)l?(0,tR.invariant)(eM(d[i])===l,"All keyframes must be of the same type"):(l=eM(d[i]),(0,tR.invariant)(l===c||rC(c)&&rC(l),"Keyframes must be of the same dimension as the current value"))}else l=eM(d);if(c!==l)if(rC(c)&&rC(l)){let t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof d?e[n]=parseFloat(d):Array.isArray(d)&&l===M.px&&(e[n]=d.map(parseFloat))}else if((null==c?void 0:c.transform)&&(null==l?void 0:l.transform)&&(0===h||0===d))0===h?u.set(l.transform(h)):e[n]=c.transform(d);else{if(!o){let e;e=[],rk.forEach(i=>{let r=t.getValue(i);void 0!==r&&(e.push([i,r.get()]),r.set(+!!i.startsWith("scale")))}),e.length&&t.render(),s=e,o=!0}a.push(n),r[n]=void 0!==r[n]?r[n]:e[n],u.jump(d)}}),!a.length)return{target:e,transitionEnd:r};{let i=a.indexOf("height")>=0?window.pageYOffset:null,n=((t,e,i)=>{let r=e.measureViewportBox(),n=getComputedStyle(e.current),{display:s}=n,o={};"none"===s&&e.setStaticValue("display",t.display||"block"),i.forEach(t=>{o[t]=rR[t](r,n)}),e.render();let a=e.measureViewportBox();return i.forEach(i=>{let r=e.getValue(i);r&&r.jump(o[i]),t[i]=rR[i](a,n)}),t})(e,t,a);return s.length&&s.forEach(([e,i])=>{t.getValue(e).set(i)}),t.render(),c.isBrowser&&null!==i&&window.scrollTo({top:i}),{target:n,transitionEnd:r}}})(this,u,a,h):{target:u,transitionEnd:h});e=r.transitionEnd,i=r.target}return{transition:t,transitionEnd:e,...i}}}class rz extends rW{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,e){if(P.has(e)){let t=ev(e);return t&&t.default||0}{let i=window.getComputedStyle(t),r=((0,S.isCSSVariableName)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return iP(t,e)}build(t,e,i,r){k(t,e,i,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return G(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;T(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(t,e,i,r){$(t,e,i,r)}}class r$ extends rW{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(P.has(e)){let t=ev(e);return t&&t.default||0}return e=X.has(e)?e:(0,z.camelToDash)(e),t.getAttribute(e)}measureInstanceViewportBox(){return ii()}scrapeMotionValuesFromProps(t,e){return q(t,e)}build(t,e,i,r){N(t,e,i,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,i,r){Y(t,e,i,r)}mount(t){this.isSVGTag=W(t.tagName),super.mount(t)}}let rX=(t,e)=>y(t)?new r$(e,{enableHardwareAcceleration:!1}):new rz(e,{enableHardwareAcceleration:!0}),rY={animation:{Feature:class extends ty{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>eI(t,e,i))),i={animate:eH(!0),whileInView:eH(),whileHover:eH(),whileTap:eH(),whileDrag:eH(),whileFocus:eH(),exit:eH()},r=!0,n=(e,i)=>{let r=tE(t,i);if(r){let{transition:t,transitionEnd:i,...n}=r;e={...e,...n,...i}}return e};function s(s,o){let a=t.getProps(),l=t.getVariantContext(!0)||{},u=[],h=new Set,c={},d=1/0;for(let e=0;e<eN;e++){var p,m;let f=eU[e],g=i[f],y=void 0!==a[f]?a[f]:l[f],v=(0,tM.isVariantLabel)(y),x=f===o?g.isActive:null;!1===x&&(d=e);let P=y===l[f]&&y!==a[f]&&v;if(P&&r&&t.manuallyAnimateOnMount&&(P=!1),g.protectedKeys={...c},!g.isActive&&null===x||!y&&!g.prevProp||(0,Z.isAnimationControls)(y)||"boolean"==typeof y)continue;let b=(p=g.prevProp,("string"==typeof(m=y)?m!==p:!!Array.isArray(m)&&!tC(m,p))||f===o&&g.isActive&&!P&&v||e>d&&v),T=!1,w=Array.isArray(y)?y:[y],A=w.reduce(n,{});!1===x&&(A={});let{prevResolvedValues:S={}}=g,V={...S,...A},C=t=>{b=!0,h.has(t)&&(T=!0,h.delete(t)),g.needsAnimating[t]=!0}
1;for(let t in V){let e=A[t],i=S[t];if(!c.hasOwnProperty(t))(Q(e)&&Q(i)?tC(e,i):e===i)?void 0!==e&&h.has(t)?C(t):g.protectedKeys[t]=!0:void 0!==e?C(t):h.add(t)}g.prevProp=y,g.prevResolvedValues=A,g.isActive&&(c={...c,...A}),r&&t.blockInitialAnimation&&(b=!1),b&&(!P||T)&&u.push(...w.map(t=>({animation:t,options:{type:f,...s}})))}if(h.size){let e={};h.forEach(i=>{let r=t.getBaseTarget(i);void 0!==r&&(e[i]=r)}),u.push({animation:e})}let f=!!u.length;return r&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(f=!1),r=!1,f?e(u):Promise.resolve()}return{animateChanges:s,setActive:function(e,r,n){var o;if(i[e].isActive===r)return Promise.resolve();null==(o=t.variantChildren)||o.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,r)}),i[e].isActive=r;let a=s(n,e);for(let t in i)i[t].protectedKeys={};return a},setAnimateFunction:function(i){e=i(t)},getState:()=>i}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),(0,Z.isAnimationControls)(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends ty{constructor(){super(...arguments),this.id=eW++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e,custom:i}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;let n=this.node.animationState.setActive("exit",!t,{custom:null!=i?i:this.node.getProps().custom});e&&!t&&n.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends ty{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:r,margin:n,amount:s="some",once:o}=i,a={root:r?r.current:void 0,rootMargin:n,threshold:"number"==typeof s?s:tV[s]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:r}=this.node.getProps(),n=e?i:r;n&&n(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;tw.has(i)||tw.set(i,{});let r=tw.get(i),n=JSON.stringify(e);return r[n]||(r[n]=new IntersectionObserver(tS,{root:t,...e})),r[n]}(a),tT.set(t,l),e.observe(t),()=>{tT.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 ty{constructor(){super(...arguments),this.removeStartListeners=tP.noop,this.removeEndListeners=tP.noop,this.removeAccessibleListeners=tP.noop,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),r=th(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:r,globalTapTarget:n}=this.node.getProps();tn.frame.update(()=>{n||tx(this.node.current,t.target)?i&&i(t,e):r&&r(t,e)})},{passive:!(i.onTap||i.onPointerUp)}),n=th(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=(0,tc.pipe)(r,n),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=t=>{if("Enter"!==t.key||this.isPressing)return;let e=t=>{"Enter"===t.key&&this.checkPressEnd()&&tb("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&tn.frame.update(()=>i(t,e))})};this.removeEndListeners(),this.removeEndListeners=ta(this.node.current,"keyup",e),tb("down",(t,e)=>{this.startPress(t,e)})},e=ta(this.node.current,"keydown",t),i=()=>{this.isPressing&&tb("cancel",(t,e)=>this.cancelPress(t,e))},r=ta(this.node.current,"blur",i);this.removeAccessibleListeners=(0,tc.pipe)(e,r)}}startPress(t,e){this.isPressing=!0;let{onTapStart:i,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&tn.frame.update(()=>i(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!tg()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&tn.frame.update(()=>i(t,e))}mount(){let t=this.node.getProps(),e=th(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=ta(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,tc.pipe)(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends ty{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,tc.pipe)(ta(this.node.current,"focus",()=>this.onFocus()),ta(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends ty{mount(){this.unmount=(0,tc.pipe)(tv(this.node,!0),tv(this.node,!1))}unmount(){}}},pan:{Feature:class extends ty{constructor(){super(...arguments),this.removePointerDownListener=tP.noop}onPointerDown(t){this.session=new e$(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ib(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:iS(t),onStart:iS(e),onMove:i,onEnd:(t,e)=>{delete this.session,r&&tn.frame.update(()=>r(t,e))}}}mount(){this.removePointerDownListener=th(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 ty{constructor(t){super(t),this.removeGroupControls=tP.noop,this.removeListeners=tP.noop,this.controls=new iw(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tP.n
1oop}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:rT,MeasureLayout:ik},layout:{ProjectionNode:rT,MeasureLayout:ik}},rG=function(t){function e(i,r={}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:r,Component:g}){t&&(0,h.loadFeatures)(t);let y=(0,n.forwardRef)(function(h,f){let y,v={...(0,n.useContext)(s.MotionConfigContext),...h,layoutId:function({layoutId:t}){let e=(0,n.useContext)(d.LayoutGroupContext).id;return e&&void 0!==t?e+"-"+t:t}(h)},{isStatic:x}=v,P=(0,u.useCreateMotionContext)(h),b=r(h,x);if(!x&&c.isBrowser){P.visualElement=(0,a.useVisualElement)(g,b,v,e);let i=(0,n.useContext)(m),r=(0,n.useContext)(p.LazyContext).strict;P.visualElement&&(y=P.visualElement.loadFeatures(v,r,t,i))}return n.createElement(o.MotionContext.Provider,{value:P},y&&P.visualElement?n.createElement(y,{visualElement:P.visualElement,...v}):null,i(g,h,(0,l.useMotionRef)(b,P.visualElement,f),b,x,P.visualElement))});return y[f]=g,y}(t(i,r))}if("u"<typeof Proxy)return e;let i=new Map;return new Proxy(e,{get:(t,r)=>(i.has(r)||i.set(r,e(r)),i.get(r))})}((t,e)=>(function(t,{forwardMotionProps:e=!1},i,r){return{...y(t)?ts:to,preloadedFeatures:i,useRender:function(t=!1){return(e,i,r,{latestValues:s},o)=>{let a=(y(e)?function(t,e,i,r){let s=(0,n.useMemo)(()=>{let i=H();return N(i,e,{enableHardwareAcceleration:!1},W(r),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};L(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e,i){let r,s,o={},a=(r=t.style||{},L(s={},r,t),Object.assign(s,function({transformTemplate:t},e,i){return(0,n.useMemo)(()=>{let r=R();return k(r,e,{enableHardwareAcceleration:!i},t),Object.assign({},r.vars,r.style)},[e])}(t,e,i)),t.transformValues?t.transformValues(s):s);return t.drag&&!1!==t.dragListener&&(o.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(o.tabIndex=0),o.style=a,o})(i,s,o,e),l={...function(t,e,i){let r={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(B(n)||!0===i&&F(n)||!e&&!F(n)||t.draggable&&n.startsWith("onDrag"))&&(r[n]=t[n]);return r}(i,"string"==typeof e,t),...a,ref:r},{children:u}=i,h=(0,n.useMemo)(()=>T(u)?u.get():u,[u]);return(0,n.createElement)(e,{...l,children:h})}}(e),createVisualElement:r,Component:t}})(t,e,rY,rX));t.s(["motion",0,rG],676278)}]);

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.