PageSourceSearch

https://trysally.ai/_next/static/chunks/3idnymhg3ihvi.js

js trysally.ai collected 2026-10-05 14:37:40 UTC 67,797 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,846932,231178,737806,821476,947414,674008,661327,464978,772846,t=>{"use strict";let e,i;var s,n=t.i(275737),o=t.i(386783),r=t.i(271645);let a=["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 l(t){if("string"!=typeof t||t.includes("-"));else if(a.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var h=t.i(843476);let u=(0,r.createContext)({});t.s(["LayoutGroupContext",0,u],231178);let c=(0,r.createContext)({strict:!1}),d=(0,r.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",0,d],737806);let m=(0,r.createContext)({});var p=t.i(587576),f=t.i(732525);function v(t){return Array.isArray(t)?t.join(" "):t}var y=t.i(83411),g=t.i(130789),x=t.i(544947);let P=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function w(t,e,i){for(let s in e)(0,y.isMotionValue)(e[s])||(0,g.isForcedMotionValue)(s,i)||(t[s]=e[s])}var E=t.i(181261),T=t.i(399951);let S=()=>({...P(),attrs:{}}),A=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function D(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||A.has(t)}let C=t=>!D(t);try{s=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof s&&(C=t=>t.startsWith("on")?!D(t):s(t))}catch{}var L=t.i(984049),L=L;function V(t){return(0,y.isMotionValue)(t)?t.get():t}var b=t.i(885983),R=t.i(386579);let B=(0,r.createContext)(null);function M(t){let e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}t.s(["PresenceContext",0,B],821476),t.s(["useConstant",0,M],947414);let j=t=>(e,i)=>{let s=(0,r.useContext)(m),n=(0,r.useContext)(B),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,s,n){return{latestValues:function(t,e,i,s){let n={},o=s(t,{});for(let t in o)n[t]=V(o[t]);let{initial:r,animate:a}=t,l=(0,p.isControllingVariants)(t),h=(0,p.isVariantNode)(t);e&&h&&!l&&!1!==t.inherit&&(void 0===r&&(r=e.initial),void 0===a&&(a=e.animate));let u=!!i&&!1===i.initial,c=(u=u||!1===r)?a:r;if(c&&"boolean"!=typeof c&&!(0,b.isAnimationControls)(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let s=(0,R.resolveVariantFromProps)(t,e[i]);if(s){let{transitionEnd:t,transition:e,...i}=s;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=u?e.length-1:0;e=e[t]}null!==e&&(n[t]=e)}for(let e in t)n[e]=t[e]}}}return n}(i,s,n,t),renderState:e()}})(t,e,s,n);return i?o():M(o)},k=j({scrapeMotionValuesFromProps:L.scrapeMotionValuesFromProps,createRenderState:P});var F=t.i(767926),F=F;let O=j({scrapeMotionValuesFromProps:F.scrapeMotionValuesFromProps,createRenderState:S});var I=t.i(617218);let U={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"]},N=!1;function W(){return!function(){if(N)return;let t={};for(let e in U)t[e]={isEnabled:t=>U[e].some(e=>!!t[e])};(0,I.setFeatureDefinitions)(t),N=!0}(),(0,I.getFeatureDefinitions)()}let H=Symbol.for("motionComponentSymbol");var z=t.i(535043);let G=(0,r.createContext)({});function $(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let X="u">typeof window?r.useLayoutEffect:r.useEffect;function Y(t,{forwardMotionProps:e=!1,type:i}={},s,n){s&&function(t){let e=W();for(let i in t)e[i]={...e[i],...t[i]};(0,I.setFeatureDefinitions)(e)}(s);let o=i?"svg"===i:l(t),a=o?O:k;function g(i,s){var g;let A,L,V,b={...(0,r.useContext)(d),...i,layoutId:function({layoutId:t}){let e=(0,r.useContext)(u).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:R}=b,M=function(t){let{initial:e,animate:i}=function(t,e){if((0,p.isControllingVariants)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,f.isVariantLabel)(e)?e:void 0,animate:(0,f.isVariantLabel)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,r.useContext)(m));return(0,r.useMemo)(()=>({initial:e,animate:i}),[v(e),v(i)])}(i),j=a(i,R);if(!R&&"u">typeof window){(0,r.useContext)(c).strict;let e=function(t){let{drag:e,layout:i}=W();if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}
1(b);A=e.MeasureLayout,M.visualElement=function(t,e,i,s,n,o){let{visualElement:a}=(0,r.useContext)(m),l=(0,r.useContext)(c),h=(0,r.useContext)(B),u=(0,r.useContext)(d),p=u.reducedMotion,f=u.skipAnimations,v=(0,r.useRef)(null),y=(0,r.useRef)(!1);s=s||l.renderer,!v.current&&s&&(v.current=s(t,{visualState:e,parent:a,props:i,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:p,skipAnimations:f,isSVG:o}),y.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));let g=v.current,x=(0,r.useContext)(G);g&&!g.projection&&n&&("html"===g.type||"svg"===g.type)&&function(t,e,i,s){let{layoutId:n,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:h,layoutAnchor:u,layoutCrossfade:c}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:n,layout:o,alwaysMeasureLayout:!!r||a&&$(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:s,crossfade:c,layoutScroll:l,layoutRoot:h,layoutAnchor:u})}(v.current,i,n,x);let P=(0,r.useRef)(!1);(0,r.useInsertionEffect)(()=>{g&&P.current&&g.update(i,h)});let w=i[z.optimizedAppearDataAttribute],E=(0,r.useRef)(!!w&&"u">typeof window&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return X(()=>{y.current=!0,g&&(P.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),E.current&&g.animationState&&g.animationState.animateChanges())}),(0,r.useEffect)(()=>{g&&(!E.current&&g.animationState&&g.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w)}),E.current=!1),g.enteringChildren=void 0)}),g}(t,j,b,n,e.ProjectionNode,o)}return(0,h.jsxs)(m.Provider,{value:M,children:[A&&M.visualElement?(0,h.jsx)(A,{visualElement:M.visualElement,...b}):null,function(t,e,i,{latestValues:s},n,o=!1,a){let h=(a??l(t)?function(t,e,i,s){let n=(0,r.useMemo)(()=>{let i=S();return(0,E.buildSVGAttrs)(i,e,(0,T.isSVGTag)(s),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};w(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e){let i,s,n={},o=(i=t.style||{},w(s={},i,t),Object.assign(s,function({transformTemplate:t},e){return(0,r.useMemo)(()=>{let i=P();return(0,x.buildHTMLStyles)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),s);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=o,n})(e,s,n,t),u=function(t,e,i){let s={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&!(0,y.isMotionValue)(t[n])&&(C(n)||!0===i&&D(n)||!e&&!D(n)||t.draggable&&n.startsWith("onDrag"))&&(s[n]=t[n]);return s}(e,"string"==typeof t,o),c=t!==r.Fragment?{...u,...h,ref:i}:{},{children:d}=e,m=(0,r.useMemo)(()=>(0,y.isMotionValue)(d)?d.get():d,[d]);return(0,r.createElement)(t,{...c,children:m})}(t,i,(g=M.visualElement,L=(0,r.useRef)(s),(0,r.useInsertionEffect)(()=>{L.current=s}),V=(0,r.useRef)(null),(0,r.useCallback)(t=>{t&&j.onMount?.(t);let e=L.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(V.current=i)}else V.current?(V.current(),V.current=null):e(t);else e&&(e.current=t);g&&(t?g.mount(t):g.unmount())},[g])),j,R,e,o)]})}g.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let A=(0,r.forwardRef)(g);return A[H]=t,A}t.s(["useIsomorphicLayoutEffect",0,X],674008);class K{constructor(t){this.isMounted=!1,this.node=t}update(){}}var _=t.i(618812),q=t.i(372323);function Z(t,e,i,s=0,n=1){let o=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),r=t.size,a=(r-1)*s;return"function"==typeof i?i(o,r):1===n?o*s:a-o*s}function J(t,e,i={}){let s=(0,_.resolveVariant)(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(n=i.transitionOverride);let o=s?()=>Promise.all((0,q.animateTarget)(t,s,i)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:o=0,staggerChildren:r,staggerDirection:a}=n;
1return function(t,e,i=0,s=0,n=0,o=1,r){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(J(l,e,{...r,delay:i+("function"==typeof s?0:s)+Z(t.variantChildren,l,s,n,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,s,o,r,a,i)}:()=>Promise.resolve(),{when:a}=n;if(!a)return Promise.all([o(),r(i.delay)]);{let[t,e]="beforeChildren"===a?[o,r]:[r,o];return t().then(()=>e())}}var Q=t.i(706840);let tt=Q.variantProps.length;var te=t.i(373615);function ti(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}let ts=[...Q.variantPriorityOrder].reverse(),tn=Q.variantPriorityOrder.length;function to(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function tr(){return{animate:to(!0),whileInView:to(),whileHover:to(),whileTap:to(),whileDrag:to(),whileFocus:to(),exit:to()}}let ta=0;var tl=t.i(260830),th=t.i(130162),tu=t.i(287022);function tc(t){return[t("x"),t("y")]}var td=t.i(153689),tm=t.i(27677),tp=t.i(980538),tf=t.i(939011),tv=t.i(100706);function ty(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}let tg={x:!1,y:!1};var tx=t.i(265091);function tP(t){return t.max-t.min}function tw(t,e,i,s=.5){t.origin=s,t.originPoint=(0,tv.mixNumber)(e.min,e.max,t.origin),t.scale=tP(i)/tP(e),t.translate=(0,tv.mixNumber)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function tE(t,e,i,s){tw(t.x,e.x,i.x,s?s.originX:void 0),tw(t.y,e.y,i.y,s?s.originY:void 0)}function tT(t,e,i,s=0){t.min=(s?(0,tv.mixNumber)(i.min,i.max,s):i.min)+e.min,t.max=t.min+tP(e)}function tS(t,e,i,s=0){let n=s?(0,tv.mixNumber)(i.min,i.max,s):i.min;t.min=e.min-n,t.max=t.min+tP(e)}function tA(t,e,i,s){tS(t.x,e.x,i.x,s?.x),tS(t.y,e.y,i.y,s?.y)}var tD=t.i(889026),tC=t.i(749652);let tL=new WeakMap,tV=(t,e,i)=>(s,n)=>n&&n[0]?n[0][t+"Size"]:(0,tD.isSVGElement)(s)&&"getBBox"in s?s.getBBox()[e]:s[i],tb=tV("inline","width","offsetWidth"),tR=tV("block","height","offsetHeight");function tB({target:t,borderBoxSize:e}){tL.get(t)?.forEach(i=>{i(t,{get width(){return tb(t,e)},get height(){return tR(t,e)}})})}function tM(t){t.forEach(tB)}let tj=new Set;function tk(t,s){let n;return"function"==typeof t?(tj.add(t),i||(i=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};tj.forEach(e=>e(t))},window.addEventListener("resize",i)),()=>{tj.delete(t),tj.size||"function"!=typeof i||(window.removeEventListener("resize",i),i=void 0)}):(!e&&"u">typeof ResizeObserver&&(e=new ResizeObserver(tM)),(n=(0,tC.resolveElements)(t)).forEach(t=>{let i=tL.get(t);i||(i=new Set,tL.set(t,i)),i.add(s),e?.observe(t)}),()=>{n.forEach(t=>{let i=tL.get(t);i?.delete(s),i?.size||e?.unobserve(t)})})}t.s(["resize",0,tk],661327);let tF=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),tO=new Set(["INPUT","SELECT","TEXTAREA"]);var tI=t.i(965566);let tU=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tN(t){return{point:{x:t.pageX,y:t.pageY}}}function tW(t,e,i,s){return ty(t,e,t=>tU(t)&&i(t,tN(t)),s)}let tH=({current:t})=>t?t.ownerDocument.defaultView:null;var tz=t.i(738638),tG=t.i(763074);let t$=(t,e)=>Math.abs(t-e),tX=new Set(["auto","scroll"]);class tY{constructor(t,e,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:n=!1,distanceThreshold:o=3,element:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=tK(this.lastRawMoveEventInfo,this.transformPagePoint));let i=tq(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(t$(t.x,e.x)**2+t$(t.y,e.y)**2)>=this.distanceThreshold);if(!s&&!n)return;let{point:o}=i,{timestamp:r}=tu.frameData;this.history.push({...o,timestamp:r});let{onStart:a,onMove:l}=this.handlers;s||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=tK(e,this.transformPagePoint),tu.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=tq("pointercancel"===t.type?this.lastMoveEventInfo:tK(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,o),s&&s(t,o)},!tU(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=o,this.contextWindow=s||window;const a=tK(tN(t),this.transformPagePoint),{point:l}=a,{timestamp:h}=tu.frameData;this.history=[{...l,timestamp:h}];const{onSessionStart:u}=e;u&&u(t,tq(a,this.history)),this.removeListeners=(0,tz.pipe)(tW(this.contextWindow,"pointermove",this.handlePointerMove),tW(this.contextWindow,"pointerup",this.handlePointerUp),tW(this.contextWindow,"pointercancel",this.handlePointerUp)),r&&this.startScrollTracking(r)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(tX.has(t.overflowX)||tX.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},n={x:s.x-e.x,y:s.y-e.y};(0!==n.x||0!==n.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(t,s),tu.frame.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,tu.cancelFrame)(this.updatePoint)}}function tK(t,e){return e?{point:e(t.point)}:t}function t_(t,e){return{x:t.x-e.x,y:t.y-e.y}}function tq({point:t},e){return{point:t,delta:t_(t,tZ(e)),offset:t_(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,s=tZ(t);for(;e>=0&&(i=t[e],!(s.timestamp-i.timestamp>(0,tG.secondsToMilliseconds)(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&s.timestamp-i.timestamp>
12*(0,tG.secondsToMilliseconds)(.1)&&(i=t[1]);let n=(0,tG.millisecondsToSeconds)(s.timestamp-i.timestamp);if(0===n)return{x:0,y:0};let o={x:(s.x-i.x)/n,y:(s.y-i.y)/n};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e)}}function tZ(t){return t[t.length-1]}var tJ=t.i(783920),tQ=t.i(476959);function t0(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 t1(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function t7(t,e,i){return{min:t6(t,e),max:t6(t,i)}}function t6(t,e){return"number"==typeof t?t:t[e]||0}let t3=new WeakMap;class t8{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,th.createBox)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:s}=this.visualElement;if(s&&!1===s.isPresent)return;let n=t=>{e&&this.snapToCursor(tN(t).point),this.stopAnimation()},o=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:n}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(tg[t])return null;else return tg[t]=!0,()=>{tg[t]=!1};return tg.x||tg.y?null:(tg.x=tg.y=!0,()=>{tg.x=tg.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tc(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tx.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=tP(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&tu.frame.update(()=>n(t,e),!1,!0),(0,tp.addValueToWillChange)(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},r=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:n,onDrag:o}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:r}=e;if(s&&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}(r),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&tu.frame.update(()=>o(t,e),!1,!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:h}=this.getProps();this.panSession=new tY(t,{onSessionStart:n,onStart:o,onMove:r,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:tH(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,s=e||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!s||!i)return;let{velocity:o}=s;this.startAnimation(o);let{onDragEnd:r}=this.getProps();r&&tu.frame.postRender(()=>r(i,s))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!t2(t,s,this.currentDirection))return;let n=this.getAxisMotionValue(t),o=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?(0,tv.mixNumber)(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?(0,tv.mixNumber)(i,t,s.max):Math.min(t,i)),t}(o,this.constraints[t],this.elastic[t])),n.set(o)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;t&&$(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:s,right:n}){return{x:t0(t.x,i,n),y:t0(t.y,e,s)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:t7(t,"left","right"),y:t7(t,"top","bottom")}}(e),s!==this.constraints&&!$(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&tc(t=>{var e,s;let n;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],s=this.constraints[t],n={},void 0!==s.min&&(n.min=s.min-e.min),void 0!==s.max&&(n.max=s.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!$(e))return!1;let s=e.current;(0,tI.invariant)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let o=(0,td.measurePageBox)(s,n.root,this.visualElement.getTransformPagePoint()),r=(t=n.layout.layoutBox,{x:t1(t.x,o.x),y:t1(t.y,o.y)});if(i){let t=i((0,tm.convertBoxToBoundingBox)(r));this.hasMutatedConstraints=!!t,t&&(r=(0,tm.convertBoundingBoxToBox)(t))}return r}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{};return Promise.all(tc(r=>{if(!t2(r,e,this.currentDirection))return;let l=a&&a[r]||{};(!0===o||o===r)&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[r]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(r,h)})).then(r)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,tp.addValueToWillChange)(this.visualElement,t),i.start((0,tf.animateMotionValue)(t,i,0,e,this.visualElement,!1))}stopAnimation(){tc(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){tc(e=>{let{drag:i}=this.getProps();if(!t2(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,n=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:o}=s.layout.layoutBox[e],r=n.get()||0;n.set(t[e]-(0,tv.mixNumber)(i,o,.5)+r)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!$(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};tc(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,n;let o,r,a,l=e.get();s[t]=(i={min:l,max:l},n=this.constraints[t],o=.5,r=tP(i),(a=tP(n))>r?o=(0,tJ.progress)(n.min,n.max-r,i.min):r>a&&(o=(0,tJ.progress)(i.min,i.max-a,n.min)),(0,tQ.clamp)(0,1,o))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),tc(e=>{if(!t2(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:o}=this.constraints[e];i.set((0,tv.mixNumber)(n,o,s[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;t3.set(this.visualElement,this);let e=this.visualElement.current,i=tW(e,"pointerdown",t=>{let{drag:i,dragListener:s=!0}
1=this.getProps(),n=t.target,o=n!==e&&(tO.has(n.tagName)||!0===n.isContentEditable);i&&s&&!o&&this.start(t)}),s=()=>{var i,s,n;let o,r,{dragConstraints:a}=this.getProps();$(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,s=a.current,o=tk(i,t4(n=()=>this.scalePositionWithinConstraints())),r=tk(s,t4(n)),t=()=>{o(),r()}))},{projection:n}=this.visualElement,o=n.addEventListener("measure",s);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),tu.frame.read(s);let r=ty(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(tc(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),i(),o(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:o=.35,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:o,dragMomentum:r}}}function t4(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function t2(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let t5=t=>(e,i)=>{t&&tu.frame.update(()=>t(e,i),!1,!0)},t9={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var et=t.i(560140),ee=r;function ei(t=!0){let e=(0,r.useContext)(B);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:s,register:n}=e,o=(0,r.useId)();(0,r.useEffect)(()=>{if(t)return n(o)},[t]);let a=(0,r.useCallback)(()=>t&&s&&s(o),[o,s,t]);return!i&&s?[!1,a]:[!0]}t.s(["usePresence",0,ei],464978);let es=!1;class en extends ee.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=t;n&&(e.group&&e.group.add(n),i&&i.register&&s&&i.register(n),es&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),t9.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:n}=this.props,{projection:o}=i;return o&&(o.isPresent=n,t.layoutDependency!==e&&o.setOptions({...o.options,layoutDependency:e}),es=!0,s||t.layoutDependency!==e||void 0===e||t.isPresent!==n?o.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?o.promote():o.relegate()||tu.frame.postRender(()=>{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),et.microtask.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;es=!0,s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function eo(t){let[e,i]=ei(),s=(0,ee.useContext)(u);return(0,h.jsx)(en,{...t,layoutGroup:s,switchLayoutGroup:(0,ee.useContext)(G),isPresent:e,safeToRemove:i})}var er=t.i(570596),ea=t.i(768705),el=t.i(716896),eh=t.i(987333),eu=t.i(496173),ec=t.i(670478),ed=t.i(504169),em=t.i(880248),ep=t.i(391007),ef=t.i(486427),ev=t.i(791559);let ey=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],eg=ey.length,ex=t=>"string"==typeof t?parseFloat(t):t,eP=t=>"number"==typeof t||tx.px.test(t);function ew(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let eE=eS(0,.5,ev.circOut),eT=eS(.5,.95,tl.noop);function eS(t,e,i){return s=>s<t?0:s>e?1:i((0,tJ.progress)(t,e,s))}function eA(t,e){t.min=e.min,t.max=e.max}function eD(t,e){eA(t.x,e.x),eA(t.y,e.y)}function eC(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var eL=t.i(135636);function eV(t,e,i,s,n){return t-=e,t=(0,eL.scalePoint)(t,1/i,s),void 0!==n&&(t=(0,eL.scalePoint)(t,1/n,s)),t}function eb(t,e,[i,s,n],o,r){!function(t,e=0,i=1,s=.5,n,o=t,r=t){if(tx.percent.test(e)&&(e=parseFloat(e),e=(0,tv.mixNumber)(r.min,r.max,e/100)-r.min),"number"!=typeof e)return;let a=(0,tv.mixNumber)(o.min,o.max,s);t===o&&(a-=e),t.min=eV(t.min,e,i,a,n),t.max=eV(t.max,e,i,a,n)}(t,e[i],e[s],e[n],e.scale,o,r)}let eR=["x","scaleX","originX"],eB=["y","scaleY","originY"];function eM(t,e,i,s){eb(t.x,e,eR,i?i.x:void 0,s?s.x:void 0),eb(t.y,e,eB,i?i.y:void 0,s?s.y:void 0)}function ej(t){return 0===t.translate&&1===t.scale}function ek(t){return ej(t.x)&&ej(t.y)}function eF(t,e){return t.min===e.min&&t.max===e.max}function eO(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function eI(t,e){return eO(t.x,e.x)&&eO(t.y,e.y)}function eU(t){return tP(t.x)/tP(t.y)}function eN(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var eW=t.i(133887);class eH{constructor(){this.members=[]}add(t){(0,eW.addUniqueItem)(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let s=i.instance;s&&!1!==s.isConnected||i.snapshot||((0,eW.removeItem)(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if((0,eW.removeItem)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}
1}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:s}=i.options,{layoutDependency:n}=t.options;(void 0===s||s!==n)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let ez=(t,e)=>t.depth-e.depth;class eG{constructor(){this.children=[],this.isDirty=!1}add(t){(0,eW.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,eW.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ez),this.isDirty=!1,this.children.forEach(t)}}var e$=t.i(177777);let eX={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},eY=["","X","Y","Z"],eK=0;function e_(t,e,i,s){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function eq({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(t={},i=e?.()){this.id=eK++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,em.statsBuffer.value&&(eX.nodes=eX.calculatedTargetDeltas=eX.calculatedProjections=0),this.nodes.forEach(eQ),this.nodes.forEach(e5),this.nodes.forEach(e9),this.nodes.forEach(e0),em.statsBuffer.addProjectionMetrics&&em.statsBuffer.addProjectionMetrics(eX)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new eG)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new er.SubscriptionManager),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=(0,tD.isSVGElement)(e)&&!(0,ep.isSVGSVGElement)(e),this.instance=e;let{layoutId:i,layout:s,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),t){let i,s=0,n=()=>this.root.updateBlockedByResize=!1;tu.frame.read(()=>{s=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==s){let e,o;s=t,this.root.updateBlockedByResize=!0,i&&i(),e=eu.time.now(),o=({timestamp:t})=>{let i=t-e;i>=250&&((0,tu.cancelFrame)(o),n())},tu.frame.setup(o,!0),i=()=>(0,tu.cancelFrame)(o),t9.hasAnimatedSinceResize&&(t9.hasAnimatedSinceResize=!1,this.nodes.forEach(e2))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||n.getDefaultTransition()||ir,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!eI(this.targetLayout,s),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...(0,eh.getValueTransition)(o,"layout"),onPlay:r,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||e2(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,tu.cancelFrame)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(it),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let s=(0,el.getOptimisedAppearId)(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",tu.frame,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(e6),this.nodes.forEach(e7);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(e3);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(e8),this.nodes.forEach(e4),this.nodes.forEach(eZ),this.nodes.forEach(eJ)):this.nodes.forEach(e3),this.clearAllSnapshots();let t=eu.time.now();tu.frameData.delta=(0,tQ.clamp)(0,1e3/60,t-tu.frameData.timestamp),tu.frameData.timestamp=t,tu.frameData.isProcessing=!0,tu.frameSteps.update.process(tu.frameData),tu.frameSteps.preRender.process(tu.frameData),tu.frameSteps.render.process(tu.frameData),tu.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,et.microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(e1),this.sharedNodes.forEach(ie)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tu.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tu.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||tP(this.snapshot.measuredBox.x)||tP(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=(0,th.createBox)()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=s(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!ek(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,o=s!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,e$.hasTransform)(this.latestValues)||o)&&(n(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),ih((e=s).x),ih(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,th.createBox)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ic))){let{scroll:t}=this.root;t&&((0,eL.translateAxis)(e.x,t.offset.x),(0,eL.translateAxis)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,th.createBox)();if(eD(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:n,options:o}=s;s!==this.root&&n&&o.layoutScroll&&(n.wasRoot&&eD(e,t),(0,eL.translateAxis)(e.x,n.offset.x),(0,eL.translateAxis)(e.y,n.offset.y))}return e}applyTransform(t,e=!1,i){let s=i||(0,th.createBox)();eD(s,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&((0,eL.translateAxis)(s.x,-i.scroll.offset.x),(0,eL.translateAxis)(s.y,-i.scroll.offset.y)),(0,e$.hasTransform)(i.latestValues)&&(0,eL.transformBox)(s,i.latestValues,i.layout?.layoutBox)}return(0,e$.hasTransform)(this.latestValues)&&(0,eL.transformBox)(s,this.latestValues,this.layout?.layoutBox),s}removeTransform(t){let e=(0,th.createBox)();eD(e,t);for(let t=0;t<this.path.length;t++){let i,s=this.path[t];(0,e$.hasTransform)(s.latestValues)&&(s.instance&&((0,e$.hasScale)(s.latestValues)&&s.updateSnapshot(),eD(i=(0,th.createBox)(),s.measurePageBox())),eM(e,s.latestValues,s.snapshot?.layoutBox,i))}return(0,e$.hasTransform)(this.latestValues)&&eM(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!==tu.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:n}=this.options;if(!this.layout||!(s||n))return;this.resolvedRelativeTargetAt=tu.frameData.timestamp;let o=this.getClosestProjectingParent();if(o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,th.createBox)(),this.targetWithTransforms=(0,th.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var r,a,l,h;this.forceRelativeParentToResolveTarget(),r=this.target,a=this.relativeTarget,l=this.relativeParent.target,h=this.options.layoutAnchor||void 0,tT(r.x,a.x,l.x,h?.x),tT(r.y,a.y,l.y,h?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):eD(this.target,this.layout.layoutBox),(0,eL.applyBoxDelta)(this.target,this.targetDelta)):eD(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0),em.statsBuffer.value&&eX.calculatedTargetDeltas++}}getClosestProjectingParent(){if(!(!this.parent||(0,e$.hasScale)(this.parent.latestValues)||(0,e$.has2DTranslate)(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,th.createBox)(),this.relativeTargetOrigin=(0,th.createBox)(),tA(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),eD(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tu.frameData.timestamp&&(i=!1),i)return;let{layout:s,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||n))return;eD(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,r=this.treeScale.y;(0,eL.applyTreeDeltas)(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=(0,th.createBox)());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(eC(this.prevProjectionDelta.x,this.projectionDelta.x),eC(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),tE(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===o&&this.treeScale.y===r&&eN(this.projectionDelta.x,this.prevProjectionDelta.x)&&eN(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),em.statsBuffer.value&&eX.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,th.createDelta)(),this.projectionDelta=(0,th.createDelta)(),this.projectionDeltaWithTransform=(0,th.createDelta)()}setAnimationOrigin(t,e=!1){let i,s=this.snapshot,n=s?s.latestValues:{},o={...this.latestValues},r=(0,th.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=(0,th.createBox)(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(io));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(ii(r.x,t.x,s),ii(r.y,t.y,s),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,d,m,p,f,v;tA(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m=this.relativeTarget,p=this.relativeTargetOrigin,f=a,v=s,is(m.x,p.x,f.x,v),is(m.y,p.y,f.y,v),i&&(h=this.relativeTarget,d=i,eF(h.x,d.x)&&eF(h.y,d.y))&&(this.isProjectionDirty=!1),i||(i=(0,th.createBox)()),eD(i,this.relativeTarget)}l&&(this.animationValues=o,function(t,e,i,s,n,o){n?(t.opacity=(0,tv.mixNumber)(0,i.opacity??1,eE(s)),t.opacityExit=(0,tv.mixNumber)(e.opacity??1,0,eT(s))):o&&(t.opacity=(0,tv.mixNumber)(e.opacity??1,i.opacity??1,s));for(let n=0;n<eg;n++){let o=ey[n],r=ew(e,o),a=ew(i,o);(void 0!==r||void 0!==a)&&(r||(r=0),a||(a=0),0===r||0===a||eP(r)===eP(a)?(t[o]=Math.max((0,tv.mixNumber)(ex(r),ex(a),s),0),(tx.percent.test(a)||tx.percent.test(r))&&(t[o]+="%")):t[o]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,tv.mixNumber)(e.rotate||0,i.rotate||0,s))}(o,n,this.latestValues,s,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,tu.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tu.frame.update(()=>{t9.hasAnimatedSinceResize=!0,ed.activeAnimations.layout++,this.motionValue||(this.motionValue=(0,ef.motionValue)(0)),this.motionValue.jump(0,!1),this.currentAnimation=(0,ea.animateSingleValue)(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{ed.activeAnimations.layout--},onComplete:()=>{ed.activeAnimations.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:s,latestValues:n}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&iu(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,th.createBox)();let e=tP(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=tP(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}eD(e,i),(0,eL.transformBox)(e,n),tE(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new eH),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let s={};i.z&&e_("z",t,s,this.animationValues);for(let e=0;e<eY.length;e++)e_(`rotate${eY[e]}`,t,s,this.animationValues),e_(`skew${eY[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=V(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=V(e?.pointerEvents)||""),this.hasProjected&&!(0,e$.hasTransform)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let n=s.animationValues||s.latestValues;this.applyTransformsToTarget();let o=function(t,e,i){let s="",n=t.x.translate/e.x,o=t.y.translate/e.y,r=i?.z||0;if((n||o||r)&&(s=`translate3d(${n}px, ${o}px, ${r}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:n,rotateY:o,skewX:r,skewY:a}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),n&&(s+=`rotateX(${n}deg) `),o&&(s+=`rotateY(${o}deg) `),r&&(s+=`skewX(${r}deg) `),a&&(s+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(s+=`scale(${a}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(o=i(n,o)),t.transform=o;let{x:r,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*r.origin}% ${100*a.origin}% 0`,s.animationValues?t.opacity=s===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:t.opacity=s===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,ec.scaleCorrectors){if
1(void 0===n[e])continue;let{correct:i,applyTo:r,isCSSVariable:a}=ec.scaleCorrectors[e],l="none"===o?n[e]:i(n[e],s);if(r){let e=r.length;for(let i=0;i<e;i++)t[r[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=s===this?V(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(e7),this.root.sharedNodes.clear()}}}function eZ(t){t.updateLayout()}function eJ(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=t.layout,{animationType:n}=t.options,o=e.source!==t.layout.source;if("size"===n)tc(t=>{let s=o?e.measuredBox[t]:e.layoutBox[t],n=tP(s);s.min=i[t].min,s.max=s.min+n});else if("x"===n||"y"===n){let t="x"===n?"y":"x";eA(o?e.measuredBox[t]:e.layoutBox[t],i[t])}else iu(n,e.layoutBox,i)&&tc(s=>{let n=o?e.measuredBox[s]:e.layoutBox[s],r=tP(i[s]);n.max=n.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+r)});let r=(0,th.createDelta)();tE(r,i,e.layoutBox);let a=(0,th.createDelta)();o?tE(a,t.applyTransform(s,!0),e.measuredBox):tE(a,i,e.layoutBox);let l=!ek(r),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:o}=s;if(n&&o){let r=t.options.layoutAnchor||void 0,a=(0,th.createBox)();tA(a,e.layoutBox,n.layoutBox,r);let l=(0,th.createBox)();tA(l,i,o.layoutBox,r),eI(a,l)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function eQ(t){em.statsBuffer.value&&eX.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function e0(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function e1(t){t.clearSnapshot()}function e7(t){t.clearMeasurements()}function e6(t){t.isLayoutDirty=!0,t.updateLayout()}function e3(t){t.isLayoutDirty=!1}function e8(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function e4(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function e2(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function e5(t){t.resolveTargetDelta()}function e9(t){t.calcProjection()}function it(t){t.resetSkewAndRotation()}function ie(t){t.removeLeadSnapshot()}function ii(t,e,i){t.translate=(0,tv.mixNumber)(e.translate,0,i),t.scale=(0,tv.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function is(t,e,i,s){t.min=(0,tv.mixNumber)(e.min,i.min,s),t.max=(0,tv.mixNumber)(e.max,i.max,s)}function io(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ir={duration:.45,ease:[.4,0,.1,1]},ia=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),il=ia("applewebkit/")&&!ia("chrome/")?Math.round:tl.noop;function ih(t){t.min=il(t.min),t.max=il(t.max)}function iu(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(eU(e)-eU(i)))}function ic(t){return t!==t.root&&t.scroll?.wasRoot}let id=eq({attachResizeListener:(t,e)=>ty(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),im={current:void 0},ip=eq({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!im.current){let t=new id({});t.mount(window),t.setOptions({layoutScroll:!0}),im.current=t}return im.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function iv(t,e){let i=(0,tC.resolveElements)(t),s=new AbortController;return[i,{passive:!0,...e,signal:s.signal},()=>s.abort()]}function iy(t,e,i){let{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=s["onHover"+i];n&&tu.frame.postRender(()=>n(e,tN(e)))}var ig=t.i(642824);function ix(t){return(0,ig.isObject)(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}t.s(["isHTMLElement",0,ix],772846);let iP=(t,e)=>!!e&&(t===e||iP(t,e.parentElement)),iw=new WeakSet;function iE(t){return e=>{"Enter"===e.key&&t(e)}}function iT(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function iS(t){return tU(t)&&!(tg.x||tg.y)}let iA=new WeakSet;function iD(t,e,i){let{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=s["onTap"+("End"===i?"":i)];n&&tu.frame.postRender(()=>n(e,tN(e)))}let iC=new WeakMap,iL=new WeakMap,iV=t=>{let e=iC.get(t.target);e&&e(t)}
1,ib=t=>{t.forEach(iV)},iR={some:0,all:1},iB=function(t,e){if("u"<typeof Proxy)return Y;let i=new Map,s=(i,s)=>Y(i,s,t,e);return new Proxy((t,e)=>s(t,e),{get:(n,o)=>"create"===o?s:(i.has(o)||i.set(o,Y(o,void 0,t,e)),i.get(o))})}({animation:{Feature:class extends K{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let s;if(t.notify("AnimationStart",e),Array.isArray(e))s=Promise.all(e.map(e=>J(t,e,i)));else if("string"==typeof e)s=J(t,e,i);else{let n="function"==typeof e?(0,_.resolveVariant)(t,e,i.custom):e;s=Promise.all((0,q.animateTarget)(t,n,i))}return s.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=tr(),s=!0,n=!1,o=e=>(i,s)=>{let n=(0,_.resolveVariant)(t,s,"exit"===e?t.presenceContext?.custom:void 0);if(n){let{transition:t,transitionEnd:e,...s}=n;i={...i,...s,...e}}return i};function r(r){let{props:a}=t,l=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<tt;t++){let s=Q.variantProps[t],n=e.props[s];((0,f.isVariantLabel)(n)||!1===n)&&(i[s]=n)}return i}(t.parent)||{},h=[],u=new Set,c={},d=1/0;for(let e=0;e<tn;e++){var m,p;let v=ts[e],y=i[v],g=void 0!==a[v]?a[v]:l[v],x=(0,f.isVariantLabel)(g),P=v===r?y.isActive:null;!1===P&&(d=e);let w=g===l[v]&&g!==a[v]&&x;if(w&&(s||n)&&t.manuallyAnimateOnMount&&(w=!1),y.protectedKeys={...c},!y.isActive&&null===P||!g&&!y.prevProp||(0,b.isAnimationControls)(g)||"boolean"==typeof g)continue;if("exit"===v&&y.isActive&&!0!==P){y.prevResolvedValues&&(c={...c,...y.prevResolvedValues});continue}let E=(m=y.prevProp,"string"==typeof(p=g)?p!==m:!!Array.isArray(p)&&!ti(p,m)),T=E||v===r&&y.isActive&&!w&&x||e>d&&x,S=!1,A=Array.isArray(g)?g:[g],D=A.reduce(o(v),{});!1===P&&(D={});let{prevResolvedValues:C={}}=y,L={...C,...D},V=e=>{T=!0,u.has(e)&&(S=!0,u.delete(e)),y.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in L){let e=D[t],i=C[t];if(!c.hasOwnProperty(t))((0,te.isKeyframesTarget)(e)&&(0,te.isKeyframesTarget)(i)?ti(e,i):e===i)?void 0!==e&&u.has(t)?V(t):y.protectedKeys[t]=!0:null!=e?V(t):u.add(t)}y.prevProp=g,y.prevResolvedValues=D,y.isActive&&(c={...c,...D}),(s||n)&&t.blockInitialAnimation&&(T=!1);let R=w&&E,B=!R||S;T&&B&&h.push(...A.map(e=>{let i={type:v};if("string"==typeof e&&(s||n)&&!R&&t.manuallyAnimateOnMount&&t.parent){let{parent:s}=t,n=(0,_.resolveVariant)(s,e);if(s.enteringChildren&&n){let{delayChildren:e}=n.transition||{};i.delay=Z(s.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof a.initial){let i=(0,_.resolveVariant)(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let s=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=s??null}),h.push({animation:e})}let v=!!h.length;return s&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(v=!1),s=!1,n=!1,v?e(h):Promise.resolve()}return{animateChanges:r,setActive:function(e,s){if(i[e].isActive===s)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,s)),i[e].isActive=s;let n=r(e);for(let t in i)i[t].protectedKeys={};return n},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=tr(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,b.isAnimationControls)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends K{constructor(){super(...arguments),this.id=ta++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t){let i=(0,_.resolveVariant)(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...s}=i;for(let t in s)this.node.getValue(t)?.jump(s[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>
1{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends K{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:s,margin:n,amount:o="some",once:r}=i,a={root:s?s.current:void 0,rootMargin:n,threshold:"number"==typeof o?o:iR[o]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),n=e?i:s;n&&n(t)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let i=t||document;iL.has(i)||iL.set(i,{});let s=iL.get(i),n=JSON.stringify(e);return s[n]||(s[n]=new IntersectionObserver(ib,{root:t,...e})),s[n]}(a),iC.set(t,l),e.observe(t),()=>{iC.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(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends K{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[s,n,o]=iv(t,i),r=t=>{let s=t.currentTarget;if(!iS(t)||iA.has(t))return;iw.add(s),i.stopPropagation&&iA.add(t);let o=e(s,t),r=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),iw.has(s)&&iw.delete(s),iS(t)&&"function"==typeof o&&o(t,{success:e})},a=t=>{r(t,s===window||s===document||i.useGlobalTarget||iP(s,t.target))},l=t=>{r(t,!1)};window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",l,n)};return s.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",r,n),ix(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let s=iE(()=>
1{if(iw.has(i))return;iT(i,"down");let t=iE(()=>{iT(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>iT(i,"cancel"),e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)})(t,n)),tF.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),o}(t,(t,e)=>(iD(this.node,e,"Start"),(t,{success:e})=>iD(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends K{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,tz.pipe)(ty(this.node.current,"focus",()=>this.onFocus()),ty(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends K{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[s,n,o]=iv(t,i);return s.forEach(t=>{let i,s=!1,o=!1,r=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},a=t=>{s=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),o&&(o=!1,r(t))},l=t=>{if("touch"!==t.pointerType){if(s){o=!0;return}r(t)}};t.addEventListener("pointerenter",s=>{if("touch"===s.pointerType||tg.x||tg.y)return;o=!1;let r=e(t,s);"function"==typeof r&&(i=r,t.addEventListener("pointerleave",l,n))},n),t.addEventListener("pointerdown",()=>{s=!0,window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",a,n)},n)}),o}(t,(t,e)=>(iy(this.node,e,"Start"),t=>iy(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends K{constructor(){super(...arguments),this.removePointerDownListener=tl.noop}onPointerDown(t){this.session=new tY(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tH(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:t5(t),onStart:t5(e),onMove:t5(i),onEnd:(t,e)=>{delete this.session,s&&tu.frame.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=tW(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 K{constructor(t){super(t),this.removeGroupControls=tl.noop,this.removeListeners=tl.noop,this.controls=new t8(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tl.noop}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:ip,MeasureLayout:eo},layout:{ProjectionNode:ip,MeasureLayout:eo}},(t,e)=>e.isSVG??l(t)?new n.SVGVisualElement(e):new o.HTMLVisualElement(e,{allowProjection:t!==r.Fragment}));t.s(["motion",0,iB],846932)}]);

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.