1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[25830],{25830:(t,e,i)=>{i.d(e,{P:()=>ip});var s,n,o=i(94594),r=i(3440);function a(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}var l=i(96163),h=i(57705),u=i(19114),c=i(39747);function d(t,e,i={}){var s;let n=(0,h.K)(t,e,"exit"===i.type?null==(s=t.presenceContext)?void 0:s.custom:void 0),{transition:o=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(o=i.transitionOverride);let r=n?()=>Promise.all((0,c.$)(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:n=0,staggerChildren:r,staggerDirection:a}=o;return function(t,e,i=0,s=0,n=1,o){let r=[],a=(t.variantChildren.size-1)*s,l=1===n?(t=0)=>t*s:(t=0)=>a-t*s;return Array.from(t.variantChildren).sort(p).forEach((t,s)=>{t.notify("AnimationStart",e),r.push(d(t,e,{...o,delay:i+l(s)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(r)}(t,e,n+s,r,a,i)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([r(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[r,a]:[a,r];return t().then(()=>e())}}function p(t,e){return t.sortNodePosition(e)}let m=u._.length,f=[...u.U].reverse(),v=u.U.length;function g(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function y(){return{animate:g(!0),whileInView:g(),whileHover:g(),whileTap:g(),whileDrag:g(),whileFocus:g(),exit:g()}}class x{constructor(t){this.isMounted=!1,this.node=t}update(){}}class P extends x{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=>d(t,e,i)));else if("string"==typeof e)s=d(t,e,i);else{let n="function"==typeof e?(0,h.K)(t,e,i.custom):e;s=Promise.all((0,c.$)(t,n,i))}return s.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=y(),s=!0,n=e=>(i,s)=>{var n;let o=(0,h.K)(t,s,"exit"===e?null==(n=t.presenceContext)?void 0:n.custom:void 0);if(o){let{transition:t,transitionEnd:e,...s}=o;i={...i,...s,...e}}return i};function p(h){let{props:c}=t,d=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<m;t++){let s=u._[t],n=e.props[s];((0,l.w)(n)||!1===n)&&(i[s]=n)}return i}(t.parent)||{},p=[],g=new Set,y={},x=1/0;for(let e=0;e<v;e++){var P,T;let u=f[e],m=i[u],v=void 0!==c[u]?c[u]:d[u],A=(0,l.w)(v),w=u===h?m.isActive:null;!1===w&&(x=e);let D=v===d[u]&&v!==c[u]&&A;if(D&&s&&t.manuallyAnimateOnMount&&(D=!1),m.protectedKeys={...y},!m.isActive&&null===w||!v&&!m.prevProp||(0,o.N)(v)||"boolean"==typeof v)continue;let S=(P=m.prevProp,"string"==typeof(T=v)?T!==P:!!Array.isArray(T)&&!a(T,P)),E=S||u===h&&m.isActive&&!D&&A||e>x&&A,R=!1,C=Array.isArray(v)?v:[v],j=C.reduce(n(u),{});!1===w&&(j={});let{prevResolvedValues:L={}}=m,k={...L,...j},M=e=>{E=!0,g.has(e)&&(R=!0,g.delete(e)),m.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in k){let e=j[t],i=L[t];if(!y.hasOwnProperty(t))((0,r.p)(e)&&(0,r.p)(i)?a(e,i):e===i)?void 0!==e&&g.has(t)?M(t):m.protectedKeys[t]=!0:null!=e?M(t):g.add(t)}m.prevProp=v,m.prevResolvedValues=j,m.isActive&&(y={...y,...j}),s&&t.blockInitialAnimation&&(E=!1);let b=!(D&&S)||R;E&&b&&p.push(...C.map(t=>({animation:t,options:{type:u}})))}if(g.size){let e={};g.forEach(i=>{let s=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=null!=s?s:null}),p.push({animation:e})}let A=!!p.length;return s&&(!1===c.initial||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(A=!1),s=!1,A?e(p):Promise.resolve()}return{animateChanges:p,setActive:function(e,s){var n;if(i[e].isActive===s)return Promise.resolve();null==(n=t.variantChildren)||n.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,s)}),i[e].isActive=s;let o=p(e);for(let t in i)i[t].protectedKeys={};return o},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=y(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,o.N)(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(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}}let T=0;class A extends x{constructor(){super(...arguments),this.id=T++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>
1e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}var w=i(97037),D=i(18928),S=i(34316),E=i(75313);function R(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}function C(t){return{point:{x:t.pageX,y:t.pageY}}}function j(t,e,i,s){return R(t,e,t=>(0,S.Mc)(t)&&i(t,C(t)),s)}let L=(t,e)=>Math.abs(t-e);var k=i(47217),M=i(43060);class b{constructor(t,e,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=U(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(L(t.x,e.x)**2+L(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:s}=t,{timestamp:n}=M.uv;this.history.push({...s,timestamp:n});let{onStart:o,onMove:r}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=V(e,this.transformPagePoint),M.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=U("pointercancel"===t.type?this.lastMoveEventInfo:V(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,o),s&&s(t,o)},!(0,S.Mc)(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.contextWindow=s||window;let o=V(C(t),this.transformPagePoint),{point:r}=o,{timestamp:a}=M.uv;this.history=[{...r,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,U(o,this.history)),this.removeListeners=(0,k.F)(j(this.contextWindow,"pointermove",this.handlePointerMove),j(this.contextWindow,"pointerup",this.handlePointerUp),j(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,M.WG)(this.updatePoint)}}function V(t,e){return e?{point:e(t.point)}:t}function B(t,e){return{x:t.x-e.x,y:t.y-e.y}}function U({point:t},e){return{point:t,delta:B(t,F(e)),offset:B(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,n=F(t);for(;i>=0&&(s=t[i],!(n.timestamp-s.timestamp>(0,E.f)(.1)));)i--;if(!s)return{x:0,y:0};let o=(0,E.X)(n.timestamp-s.timestamp);if(0===o)return{x:0,y:0};let r={x:(n.x-s.x)/o,y:(n.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e,.1)}}function F(t){return t[t.length-1]}function O(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var I=i(85696),W=i(45855);function N(t){return t.max-t.min}function G(t,e,i,s=.5){t.origin=s,t.originPoint=(0,W.k)(e.min,e.max,t.origin),t.scale=N(i)/N(e),t.translate=(0,W.k)(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 H(t,e,i,s){G(t.x,e.x,i.x,s?s.originX:void 0),G(t.y,e.y,i.y,s?s.originY:void 0)}function $(t,e,i){t.min=i.min+e.min,t.max=t.min+N(e)}function z(t,e,i){t.min=e.min-i.min,t.max=t.min+N(e)}function q(t,e,i){z(t.x,e.x,i.x),z(t.y,e.y,i.y)}var K=i(7112);function X(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 Y(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 _(t,e,i){return{min:Q(t,e),max:Q(t,i)}}function Q(t,e){return"number"==typeof t?t:t[e]||0}var J=i(78912);function Z(t){return[t("x"),t("y")]}var tt=i(14731),te=i(42250),ti=i(48201),ts=i(18886);let tn=({current:t})=>t?t.ownerDocument.defaultView:null;var to=i(43425);let tr=new WeakMap;class ta{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,J.ge)(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let s=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(C(t).point)},n=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:n}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,S.Wp)(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Z(t=>{let e=this.getAxisMotionValue(t).get()||0;if(ti.KN.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=N(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&M.Gt.postRender(()=>n(t,e)),(0,to.g)(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},o=(t,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&&o(t,e)},r=(t,e)=>this.stop(t,e),a=()=>Z(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 b(t,{onSessionStart:s,onStart:n,onMove:o,onSessionEnd:r,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:tn(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:s}=e;this.startAnimation(s);let{onDragEnd:n}=this.getProps();n&&M.Gt.postRender(()=>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.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!tl(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,W.k)(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?(0,W.k)(i,t,s.max):Math.min(t,i)),t}(o,this.constraints[t],this.elastic[t])),n.set(o)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),s=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&&O(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=function(t,{top:e,left:i,bottom:s,right:n}){return{x:X(t.x,i,n),y:X(t.y,e,s)}}(s.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:_(t,"left","right"),y:_(t,"top","bottom")}}(i),n!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&Z(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(s.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!O(e))return!1;let s=e.current;(0,D.V)(null!==s,"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;let o=(0,tt.L)(s,n.root,this.visualElement.getTransformPagePoint()),r=(t=n.layout.layoutBox,{x:Y(t.x,o.x),y:Y(t.y,o.y)});if(i){let t=i((0,te.pA)(r));this.hasMutatedConstraints=!!t,t&&(r=(0,te.FY)(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(Z(r=>{if(!tl(r,e,this.currentDirection))return;let l=a&&a[r]||{};o&&(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,to.g)(this.visualElement,t),i.start((0,ts.f)(t,i,0,e,this.visualElement,!1))}stopAnimation(){Z(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Z(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){Z(e=>{let{drag:i}=this.getProps();if(!tl(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];n.set(t[e]-(0,W.k)(i,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;
1if(!O(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};Z(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();s[t]=function(t,e){let i=.5,s=N(t),n=N(e);return n>s?i=(0,I.q)(e.min,e.max-s,t.min):s>n&&(i=(0,I.q)(t.min,t.max-n,e.min)),(0,K.q)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Z(e=>{if(!tl(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:o}=this.constraints[e];i.set((0,W.k)(n,o,s[e]))})}addListeners(){if(!this.visualElement.current)return;tr.set(this.visualElement,this);let t=j(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();O(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),M.Gt.read(e);let n=R(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(Z(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(),s(),o&&o()}}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 tl(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class th extends x{constructor(t){super(t),this.removeGroupControls=w.l,this.removeListeners=w.l,this.controls=new ta(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||w.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let tu=t=>(e,i)=>{t&&M.Gt.postRender(()=>t(e,i))};class tc extends x{constructor(){super(...arguments),this.removePointerDownListener=w.l}onPointerDown(t){this.session=new b(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tn(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:tu(t),onStart:tu(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&M.Gt.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=j(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var td=i(54568),tp=i(7620),tm=i(26472),tf=i(95971);let tv=(0,tp.createContext)({}),tg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ty(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let tx={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!ti.px.test(t))return t;else t=parseFloat(t);let i=ty(t,e.target.x),s=ty(t,e.target.y);return`${i}% ${s}%`}};var tP=i(19758),tT=i(73227);let{schedule:tA,cancel:tw}=(0,i(18828).I)(queueMicrotask,!1);class tD extends tp.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=t;(0,tT.$)(tE),n&&(e.group&&e.group.add(n),i&&i.register&&s&&i.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),tg.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:n}=this.props,o=i.projection;return o&&(o.isPresent=n,s||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?o.promote():o.relegate()||M.Gt.postRender(()=>{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tA.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;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 tS(t){let[e,i]=(0,tm.xQ)(),s=(0,tp.useContext)(tf.L);return(0,td.jsx)(tD,{...t,layoutGroup:s,switchLayoutGroup:(0,tp.useContext)(tv),isPresent:e,safeToRemove:i})}let tE={borderRadius:{...tx,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tx,borderTopRightRadius:tx,borderBottomLeftRadius:tx,borderBottomRightRadius:tx,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=tP.f.parse(t);if(s.length>5)return t;let n=tP.f.createTransformer(t),o=+("number"!=typeof s[0]),r=i.x.scale*e.x,a=i.y.scale*e.y;s[0+o]/=r,s[1+o]/=a;let l=(0,W.k)(r,a,.5);return"number"==typeof s[2+o]&&(s[2+o]/=l),"number"==typeof s[3+o]&&(s[3+o]/=l),n(s)}}};var tR=i(88118),tC=i(63432),tj=i(39810),tL=i(74983),tk=i(87946);let tM=(t,e)=>t.depth-e.depth;class tb{constructor(){this.children=[],this.isDirty=!1}add(t){(0,tk.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,tk.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(tM),this.isDirty=!1,this.children.forEac
1h(t)}}var tV=i(64844),tB=i(49989),tU=i(56516);function tF(t){let e=(0,tU.S)(t)?t.get():t;return(0,tB.B)(e)?e.toValue():e}var tO=i(16732);let tI=["TopLeft","TopRight","BottomLeft","BottomRight"],tW=tI.length,tN=t=>"string"==typeof t?parseFloat(t):t,tG=t=>"number"==typeof t||ti.px.test(t);function tH(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let t$=tq(0,.5,tO.yT),tz=tq(.5,.95,w.l);function tq(t,e,i){return s=>s<t?0:s>e?1:i((0,I.q)(t,e,s))}function tK(t,e){t.min=e.min,t.max=e.max}function tX(t,e){tK(t.x,e.x),tK(t.y,e.y)}function tY(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var t_=i(59925);function tQ(t,e,i,s,n){return t-=e,t=(0,t_.hq)(t,1/i,s),void 0!==n&&(t=(0,t_.hq)(t,1/n,s)),t}function tJ(t,e,[i,s,n],o,r){!function(t,e=0,i=1,s=.5,n,o=t,r=t){if(ti.KN.test(e)&&(e=parseFloat(e),e=(0,W.k)(r.min,r.max,e/100)-r.min),"number"!=typeof e)return;let a=(0,W.k)(o.min,o.max,s);t===o&&(a-=e),t.min=tQ(t.min,e,i,a,n),t.max=tQ(t.max,e,i,a,n)}(t,e[i],e[s],e[n],e.scale,o,r)}let tZ=["x","scaleX","originX"],t0=["y","scaleY","originY"];function t1(t,e,i,s){tJ(t.x,e,tZ,i?i.x:void 0,s?s.x:void 0),tJ(t.y,e,t0,i?i.y:void 0,s?s.y:void 0)}function t5(t){return 0===t.translate&&1===t.scale}function t2(t){return t5(t.x)&&t5(t.y)}function t7(t,e){return t.min===e.min&&t.max===e.max}function t4(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function t3(t,e){return t4(t.x,e.x)&&t4(t.y,e.y)}function t6(t){return N(t.x)/N(t.y)}function t8(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class t9{constructor(){this.members=[]}add(t){(0,tk.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,tk.Ai)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}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:s}=t.options;!1===s&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var et=i(67152);let ee={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ei="undefined"!=typeof window&&void 0!==window.MotionDebug,es=["","X","Y","Z"],en={visibility:"hidden"},eo=0;function er(t,e,i,s){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function ea({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(t={},i=null==e?void 0:e()){this.id=eo++,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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ei&&(ee.totalNodes=ee.resolvedTargetDeltas=ee.recalculatedProjection=0),this.nodes.forEach(eu),this.nodes.forEach(eg),this.nodes.forEach(ey),this.nodes.forEac
1h(ec),ei&&window.MotionDebug.record(ee)},this.resolvedRelativeTargetAt=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 tb)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tV.v),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=(0,tL.x)(e),this.instance=e;let{layoutId:s,layout:n,visualElement:o}=this.options;if(o&&!o.current&&o.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(n||s)&&(this.isLayoutDirty=!0),t){let i,s=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=tj.k.now(),s=({timestamp:e})=>{let n=e-i;n>=250&&((0,M.WG)(s),t(n-250))};return M.Gt.read(s,!0),()=>(0,M.WG)(s)}(s,250),tg.hasAnimatedSinceResize&&(tg.hasAnimatedSinceResize=!1,this.nodes.forEach(ev))})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&o&&(s||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||o.getDefaultTransition()||eD,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!t3(this.targetLayout,s)||i,h=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,h);let e={...(0,S.rU)(n,"layout"),onPlay:r,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||ev(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,(0,M.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ex),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,tC.P)(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",M.Gt,!(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,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()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ep);return}
1this.isUpdating||this.nodes.forEach(em),this.isUpdating=!1,this.nodes.forEach(ef),this.nodes.forEach(el),this.nodes.forEach(eh),this.clearAllSnapshots();let t=tj.k.now();M.uv.delta=(0,K.q)(0,1e3/60,t-M.uv.timestamp),M.uv.timestamp=t,M.uv.isProcessing=!0,M.PP.update.process(M.uv),M.PP.preRender.process(M.uv),M.PP.render.process(M.uv),M.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tA.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ed),this.sharedNodes.forEach(eP)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,M.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){M.Gt.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=(0,J.ge)(),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){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&&!t2(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,o=s!==this.prevTransformTemplateValue;t&&(e||(0,et.HD)(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)),eR((e=s).x),eR(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return(0,J.ge)();let i=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(ej))){let{scroll:t}=this.root;t&&((0,t_.Ql)(i.x,t.offset.x),(0,t_.Ql)(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=(0,J.ge)();if(tX(i,t),null==(e=this.scroll)?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let s=this.path[e],{scroll:n,options:o}=s;s!==this.root&&n&&o.layoutScroll&&(n.wasRoot&&tX(i,t),(0,t_.Ql)(i.x,n.offset.x),(0,t_.Ql)(i.y,n.offset.y))}return i}applyTransform(t,e=!1){let i=(0,J.ge)();tX(i,t);for(let t=0;t<this.path.length;t++){let s=this.path[t];!e&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(0,t_.Ww)(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),(0,et.HD)(s.latestValues)&&(0,t_.Ww)(i,s.latestValues)}return(0,et.HD)(this.latestValues)&&(0,t_.Ww)(i,this.latestValues),i}removeTransform(t){let e=(0,J.ge)();tX(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,et.HD)(i.latestValues))continue;(0,et.vk)(i.latestValues)&&i.updateSnapshot();let s=(0,J.ge)();tX(s,i.measurePageBox()),t1(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return(0,et.HD)(this.latestValues)&&t1(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!==M.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,s,n;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let r=!!this.resumingFrom||this!==o;if(!(t||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=M.uv.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,J.ge)(),this.relativeTargetOrigin=(0,J.ge)(),q(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),tX(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=(0,J.ge)(),this.targetWithTransforms=(0,J.ge)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,s=this.relativeTarget,n=this.relativeParent.target,$(i.x,s.x,n.x),$(i.y,s.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):tX(this.target,this.layout.layoutBox),(0,t_.o4)(this.target,this.targetDelta)):tX(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=(0,J.ge)(),this.relativeTargetOrigin=(0,J.ge)(),q(this.relativeTargetOrigin,this.target,t.target),tX(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ei&&ee.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||(0,et.vk)(this.parent.latestValues)||(0,et.vF)(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,s=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(s=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(s=!1),this.resolvedRelativeTargetAt===M.uv.timestamp&&(s=!1),s)return;let{layout:n,layoutId:o}=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||o))return;tX(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;
1(0,t_.OU)(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=(0,J.ge)());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(tY(this.prevProjectionDelta.x,this.projectionDelta.x),tY(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),H(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&t8(this.projectionDelta.x,this.prevProjectionDelta.x)&&t8(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),ei&&ee.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null==(e=this.options.visualElement)||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,J.xU)(),this.projectionDelta=(0,J.xU)(),this.projectionDeltaWithTransform=(0,J.xU)()}setAnimationOrigin(t,e=!1){let i,s=this.snapshot,n=s?s.latestValues:{},o={...this.latestValues},r=(0,J.xU)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=(0,J.ge)(),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(ew));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(eT(r.x,t.x,s),eT(r.y,t.y,s),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,d,p,m,f,v;q(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,v=s,eA(p.x,m.x,f.x,v),eA(p.y,m.y,f.y,v),i&&(h=this.relativeTarget,d=i,t7(h.x,d.x)&&t7(h.y,d.y))&&(this.isProjectionDirty=!1),i||(i=(0,J.ge)()),tX(i,this.relativeTarget)}l&&(this.animationValues=o,function(t,e,i,s,n,o){n?(t.opacity=(0,W.k)(0,void 0!==i.opacity?i.opacity:1,t$(s)),t.opacityExit=(0,W.k)(void 0!==e.opacity?e.opacity:1,0,tz(s))):o&&(t.opacity=(0,W.k)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,s));for(let n=0;n<tW;n++){let o=`border${tI[n]}Radius`,r=tH(e,o),a=tH(i,o);(void 0!==r||void 0!==a)&&(r||(r=0),a||(a=0),0===r||0===a||tG(r)===tG(a)?(t[o]=Math.max((0,W.k)(tN(r),tN(a),s),0),(ti.KN.test(a)||ti.KN.test(r))&&(t[o]+="%")):t[o]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,W.k)(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&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,M.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=M.Gt.update(()=>{tg.hasAnimatedSinceResize=!0,this.currentAnimation=(0,tR.z)(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{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&&eC(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,J.ge)();let e=N(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=N(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}tX(e,i),(0,t_.Ww)(e,n),H(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new t9),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 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)}
1resetSkewAndRotation(){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&&er("z",t,s,this.animationValues);for(let e=0;e<es.length;e++)er(`rotate${es[e]}`,t,s,this.animationValues),er(`skew${es[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()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return en;let s={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=tF(null==t?void 0:t.pointerEvents)||"",s.transform=n?n(this.latestValues,""):"none",s;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=tF(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!(0,et.HD)(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1),e}let r=o.animationValues||o.latestValues;this.applyTransformsToTarget(),s.transform=function(t,e,i){let s="",n=t.x.translate/e.x,o=t.y.translate/e.y,r=(null==i?void 0: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,r),n&&(s.transform=n(r,s.transform));let{x:a,y:l}=this.projectionDelta;for(let t in s.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?s.opacity=o===this?null!=(i=null!=(e=r.opacity)?e:this.latestValues.opacity)?i:1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:s.opacity=o===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,tT.H){if(void 0===r[t])continue;let{correct:e,applyTo:i}=tT.H[t],n="none"===s.transform?r[t]:e(r[t],o);if(i){let t=i.length;for(let e=0;e<t;e++)s[i[e]]=n}else s[t]=n}return this.options.layoutId&&(s.pointerEvents=o===this?tF(null==t?void 0:t.pointerEvents)||"":"none"),s}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(ep),this.root.sharedNodes.clear()}}}function el(t){t.updateLayout()}function eh(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:s}=t.layout,{animationType:n}=t.options,o=i.source!==t.layout.source;"size"===n?Z(t=>{let s=o?i.measuredBox[t]:i.layoutBox[t],n=N(s);s.min=e[t].min,s.max=s.min+n}):eC(n,i.layoutBox,e)&&Z(s=>{let n=o?i.measuredBox[s]:i.layoutBox[s],r=N(e[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,J.xU)();H(r,e,i.layoutBox);let a=(0,J.xU)();o?H(a,t.applyTransform(s,!0),i.measuredBox):H(a,e,i.layoutBox);let l=!t2(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=(0,J.ge)();q(r,i.layoutBox,n.layoutBox);let a=(0,J.ge)();q(a,e,o.layoutBox),t3(r,a)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function eu(t){ei&&ee.totalNodes++,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 ec(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ed(t){t.clearSnapshot()}function ep(t){t.clearMeasurements()}function em(t){t.isLayoutDirty=!1}function ef(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ev(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function eg(t){t.resolveTargetDelta()}function ey(t){t.calcProjection()}
1function ex(t){t.resetSkewAndRotation()}function eP(t){t.removeLeadSnapshot()}function eT(t,e,i){t.translate=(0,W.k)(e.translate,0,i),t.scale=(0,W.k)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function eA(t,e,i,s){t.min=(0,W.k)(e.min,i.min,s),t.max=(0,W.k)(e.max,i.max,s)}function ew(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let eD={duration:.45,ease:[.4,0,.1,1]},eS=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),eE=eS("applewebkit/")&&!eS("chrome/")?Math.round:w.l;function eR(t){t.min=eE(t.min),t.max=eE(t.max)}function eC(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(t6(e)-t6(i)))}function ej(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}let eL=ea({attachResizeListener:(t,e)=>R(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ek={current:void 0},eM=ea({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ek.current){let t=new eL({});t.mount(window),t.setOptions({layoutScroll:!0}),ek.current=t}return ek.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function eb(t,e,i){let{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=s["onHover"+i];n&&M.Gt.postRender(()=>n(e,C(e)))}class eV extends x{mount(){let{current:t}=this.node;t&&(this.unmount=(0,S.PT)(t,t=>(eb(this.node,t,"Start"),t=>eb(this.node,t,"End"))))}unmount(){}}class eB extends x{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,k.F)(R(this.node.current,"focus",()=>this.onFocus()),R(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function eU(t,e,i){let{props:s}=t;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=s["onTap"+("End"===i?"":i)];n&&M.Gt.postRender(()=>n(e,C(e)))}class eF extends x{mount(){let{current:t}=this.node;t&&(this.unmount=(0,S.c$)(t,t=>(eU(this.node,t,"Start"),(t,{success:e})=>eU(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let eO=new WeakMap,eI=new WeakMap,eW=t=>{let e=eO.get(t.target);e&&e(t)},eN=t=>{t.forEach(eW)},eG={some:0,all:1};class eH extends x{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:s="some",once:n}=t,o={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof s?s:eG[s]},r=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,n&&!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(),o=e?i:s;o&&o(t)};var a=this.node.current;let l=function({root:t,...e}){let i=t||document;eI.has(i)||eI.set(i,{});let s=eI.get(i),n=JSON.stringify(e);return s[n]||(s[n]=new IntersectionObserver(eN,{root:t,...e})),s[n]}(o);return eO.set(a,r),l.observe(a),()=>{eO.delete(a),l.unobserve(a)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let e$=(0,tp.createContext)({strict:!1});var ez=i(39070);let eq=(0,tp.createContext)({});var eK=i(67527);function eX(t){return Array.isArray(t)?t.join(" "):t}var eY=i(46898),e_=i(34004);let eQ=Symbol.for("motionComponentSymbol");var eJ=i(42015),eZ=i(85176),e0=i(69982);let e1=["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 e5(t){if("string"!=typeof t||t.includes("-"));else if(e1.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var e2=i(76405),e7=i(23847);let e4=t=>(e,i)=>{let s=(0,tp.useContext)(eq),n=(0,tp.useContext)(eJ.t),r=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:i}
1,s,n,r){let a={latestValues:function(t,e,i,s){let n={},r=s(t,{});for(let t in r)n[t]=tF(r[t]);let{initial:a,animate:l}=t,h=(0,eK.e)(t),u=(0,eK.O)(t);e&&u&&!h&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));let c=!!i&&!1===i.initial,d=(c=c||!1===a)?l:a;if(d&&"boolean"!=typeof d&&!(0,o.N)(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let s=(0,e2.a)(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=c?e.length-1:0;e=e[t]}null!==e&&(n[t]=e)}for(let e in t)n[e]=t[e]}}}return n}(s,n,r,t),renderState:e()};return i&&(a.onMount=t=>i({props:s,current:t,...a}),a.onUpdate=t=>i(t)),a})(t,e,s,n);return i?r():(0,e7.M)(r)};var e3=i(7457),e6=i(53164);let e8=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),e9=()=>({...e8(),attrs:{}});var it=i(23185),ie=i(24255),ii=i(70309);let is=["x","y","width","height","cx","cy","r"],io={useVisualState:e4({scrapeMotionValuesFromProps:ii.x,createRenderState:e9,onUpdate:({props:t,prevProps:e,current:i,renderState:s,latestValues:n})=>{if(!i)return;let o=!!t.drag;if(!o){for(let t in n)if(e3.f.has(t)){o=!0;break}}if(!o)return;let r=!e;if(e)for(let i=0;i<is.length;i++){let s=is[i];t[s]!==e[s]&&(r=!0)}r&&M.Gt.read(()=>{!function(t,e){try{e.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(t){e.dimensions={x:0,y:0,width:0,height:0}}}(i,s),M.Gt.render(()=>{(0,e6.B)(s,n,(0,it.n)(i.tagName),t.transformTemplate),(0,ie.d)(i,s)})})}})},ir={useVisualState:e4({scrapeMotionValuesFromProps:i(75588).x,createRenderState:e8})};var ia=i(78745),il=i(53025);function ih(t,e,i){for(let s in e)(0,tU.S)(e[s])||(0,ia.z)(s,i)||(t[s]=e[s])}var iu=i(70663),ic=i(40587),id=i(39603);let ip=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,s)=>"create"===s?t:(e.has(s)||e.set(s,t(s)),e.get(s))})}((s={animation:{Feature:P},exit:{Feature:A},inView:{Feature:eH},tap:{Feature:eF},focus:{Feature:eB},hover:{Feature:eV},pan:{Feature:tc},drag:{Feature:th,ProjectionNode:eM,MeasureLayout:tS},layout:{ProjectionNode:eM,MeasureLayout:tS}},n=(t,e)=>e5(t)?new id.l(e):new ic.M(e,{allowProjection:t!==tp.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function(t){var e,i;let{preloadedFeatures:s,createVisualElement:n,useRender:o,useVisualState:r,Component:a}=t;function h(t,e){var i;let s,h={...(0,tp.useContext)(ez.Q),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,tp.useContext)(tf.L).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:u}=h,c=function(t){let{initial:e,animate:i}=function(t,e){if((0,eK.e)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,l.w)(e)?e:void 0,animate:(0,l.w)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,tp.useContext)(eq));return(0,tp.useMemo)(()=>({initial:e,animate:i}),[eX(e),eX(i)])}(t),d=r(t,u);if(!u&&eY.B){(0,tp.useContext)(e$).strict;let t=function(t){let{drag:e,layout:i}=e_.B;if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(h);s=t.MeasureLayout,c.visualElement=function(t,e,i,s,n){var o,r;let{visualElement:a}=(0,tp.useContext)(eq),l=(0,tp.useContext)(e$),h=(0,tp.useContext)(eJ.t),u=(0,tp.useContext)(ez.Q).reducedMotion,c=(0,tp.useRef)(null);s=s||l.renderer,!c.current&&s&&(c.current=s(t,{visualState:e,parent:a,props:i,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:u}));let d=c.current,p=(0,tp.useContext)(tv);d&&!d.projection&&n&&("html"===d.type||"svg"===d.type)&&function(t,e,i,s){let{layoutId:n,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:h}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:n,layout:o,alwaysMeasureLayout:!!r||a&&O(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:h})}(c.current,i,n,p);let m=(0,tp.useRef)(!1);(0,tp.useInsertionEffect)(()=>{d&&m.current&&d.update(i,h)});let f=i[e0.n],v=(0,tp.useRef)(!!f&&!(null==(o=window.MotionHandoffIsComplete)?void 0:o.call(window,f))&&(null==(r=window.MotionHasOptimisedAnimation)?void 0:r.call(window,f)));return(0,eZ.E)(()=>{d&&(m.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),tA.render(d.render),v.current&&d.animationState&&d.animationState.animateChanges())}),(0,tp.useEffect)(()=>{d&&(!v.current&&d.animationState&&d.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var t;null==(t=window.MotionHandoffMarkAsComplete)||t.call(window,f)}),v.current=!1))}),d}(a,d,h,n,t.ProjectionNode)}return(0,td.jsxs)(eq.Provider,{value:c,children:[s&&c.visualElement?(0,td.jsx)(s,{visualElement:c.visualElement,...h}):null,o(a,t,(i=c.visualElement,(0,tp.useCallback)(t=>{t&&d.onMount&&d.onMount(t),i&&(t?i.mount(t):i.unmount()),e&&("function"==typeof e?e(t):O(e)&&(e.current=t))},[i])),d,u,c.visualElement)]})}s&&function(t){for(let e in t)e_.B[e]={...e_.B[e],...t[e]}}(s),h.displayName="motion.".concat("string"==typeof a?a:"create(".concat(null!=(i=null!=(e=a.displayName)?e:a.name)?i:"",")"));let u=(0,tp.forwardRef)(h);return u[eQ]=a,u}({...e5(t)?io:ir,preloadedFeatures:s,useRender:function(t=!1){return(e,i,s,{latestValues:n},o)=>
1{let r=(e5(e)?function(t,e,i,s){let n=(0,tp.useMemo)(()=>{let i=e9();return(0,e6.B)(i,e,(0,it.n)(s),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};ih(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e){let i={},s=function(t,e){let i=t.style||{},s={};return ih(s,i,t),Object.assign(s,function({transformTemplate:t},e){return(0,tp.useMemo)(()=>{let i=e8();return(0,il.O)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),s}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=s,i})(i,n,o,e),a=(0,iu.J)(i,"string"==typeof e,t),l=e!==tp.Fragment?{...a,...r,ref:s}:{},{children:h}=i,u=(0,tp.useMemo)(()=>(0,tU.S)(h)?h.get():h,[h]);return(0,tp.createElement)(e,{...l,children:u})}}(e),createVisualElement:n,Component:t})}))},26472:(t,e,i)=>{i.d(e,{xQ:()=>o});var s=i(7620),n=i(42015);function o(t=!0){let e=(0,s.useContext)(n.t);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:r,register:a}=e,l=(0,s.useId)();(0,s.useEffect)(()=>{t&&a(l)},[t]);let h=(0,s.useCallback)(()=>t&&r&&r(l),[l,r,t]);return!i&&r?[!1,h]:[!0]}},42015:(t,e,i)=>{i.d(e,{t:()=>s});let s=(0,i(7620).createContext)(null)},70663:(t,e,i)=>{i.d(e,{J:()=>a,D:()=>r});let s=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function n(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||s.has(t)}let o=t=>!n(t);function r(t){t&&(o=e=>e.startsWith("on")?!n(e):t(e))}try{r(require("@emotion/is-prop-valid").default)}catch(t){}function a(t,e,i){let s={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(o(r)||!0===i&&n(r)||!e&&!n(r)||t.draggable&&r.startsWith("onDrag"))&&(s[r]=t[r]);return s}},85176:(t,e,i)=>{i.d(e,{E:()=>n});var s=i(7620);let n=i(46898).B?s.useLayoutEffect:s.useEffect},95971:(t,e,i)=>{i.d(e,{L:()=>s});let s=(0,i(7620).createContext)({})}}]);
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.