PageSourceSearch

https://www.suredeal.tech/_next/static/chunks/7678.aae96b52755a859b.js

js suredeal.tech collected 2026-10-09 23:00:37 UTC 50,922 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7678],{7678:function(t,e,i){i.d(e,{g:function(){return eX}});class s{constructor(t){this.isMounted=!1,this.node=t}update(){}}var o=i(44439),n=i(13223);let r=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function a(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}let l=t=>e=>r(e)&&t(e,a(e));var h=i(56717);function u(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}function d(t,e,i,s){return u(t,e,l(i),s)}var c=i(56920);let m=(t,e)=>Math.abs(t-e);var p=i(45414);class v{constructor(t,e,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=y(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,o=(t=i.offset,e={x:0,y:0},Math.sqrt(m(t.x,e.x)**2+m(t.y,e.y)**2)>=3);if(!s&&!o)return;let{point:n}=i,{timestamp:r}=p.frameData;this.history.push({...n,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.lastMoveEventInfo=g(e,this.transformPagePoint),p.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=y("pointercancel"===t.type?this.lastMoveEventInfo:g(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,n),s&&s(t,n)},!r(t))return;this.dragSnapToOrigin=o,this.handlers=e,this.transformPagePoint=i,this.contextWindow=s||window;let n=g(a(t),this.transformPagePoint),{point:l}=n,{timestamp:h}=p.frameData;this.history=[{...l,timestamp:h}];let{onSessionStart:u}=e;u&&u(t,y(n,this.history)),this.removeListeners=(0,c.z)(d(this.contextWindow,"pointermove",this.handlePointerMove),d(this.contextWindow,"pointerup",this.handlePointerUp),d(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,p.Pn)(this.updatePoint)}}function g(t,e){return e?{point:e(t.point)}:t}function f(t,e){return{x:t.x-e.x,y:t.y-e.y}}function y({point:t},e){return{point:t,delta:f(t,x(e)),offset:f(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,o=x(t);for(;i>=0&&(s=t[i],!(o.timestamp-s.timestamp>(0,h.w)(.1)));)i--;if(!s)return{x:0,y:0};let n=(0,h.X)(o.timestamp-s.timestamp);if(0===n)return{x:0,y:0};let r={x:(o.x-s.x)/n,y:(o.y-s.y)/n};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e,0)}}function x(t){return t[t.length-1]}function P(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let T=P("dragHorizontal"),D=P("dragVertical");function A(t){let e=!1;if("y"===t)e=D();else if("x"===t)e=T();else{let t=T(),i=D();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function S(){let t=A(!0);return!t||(t(),!1)}var w=i(34006),E=i(76376),R=i(96781);function L(t){return t.max-t.min}function j(t,e,i,s=.5){t.origin=s,t.originPoint=(0,R.t)(e.min,e.max,t.origin),t.scale=L(i)/L(e),t.translate=(0,R.t)(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 b(t,e,i,s){j(t.x,e.x,i.x,s?s.originX:void 0),j(t.y,e.y,i.y,s?s.originY:void 0)}function V(t,e,i){t.min=i.min+e.min,t.max=t.min+L(e)}function C(t,e,i){t.min=e.min-i.min,t.max=t.min+L(e)}function k(t,e,i){C(t.x,e.x,i.x),C(t.y,e.y,i.y)}var B=i(59111);function M(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 O(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 F(t,e,i){return{min:U(t,e),max:U(t,i)}}function U(t,e){return"number"==typeof t?t:t[e]||0}var W=i(96674);function I(t){return[t("x"),t("y")]}var z=i(50813),$=i(82063),N=i(27492),H=i(73037);let G=({current:t})=>t?t.ownerDocument.defaultView:null;var Y=i(96620);let X=new WeakMap;class Z{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,W.dO)(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:s}=this.getProps();this.panSession=new v(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(a(t,"page").point)},onStart:(t,e)=>{var i;let{drag:s,dragPropagation:o,onDragStart:n}=this.getProps();if(s&&!o&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=A(s),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),I(t=>{let e=this.getAxisMotionValue(t).get()||0;
1if(N.aQ.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];if(s){let t=L(s);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),n&&p.Wi.postRender(()=>n(t,e)),null===(i=this.removeWillChange)||void 0===i||i.call(this),this.removeWillChange=(0,Y.K)(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:o,onDrag:n}=this.getProps();if(!i&&!this.openGlobalLock)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&&o&&o(this.currentDirection);return}this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),n&&n(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>I(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,contextWindow:G(this.visualElement)})}stop(t,e){var i;null===(i=this.removeWillChange)||void 0===i||i.call(this);let s=this.isDragging;if(this.cancel(),!s)return;let{velocity:o}=e;this.startAnimation(o);let{onDragEnd:n}=this.getProps();n&&p.Wi.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.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!K(t,s,this.currentDirection))return;let o=this.getAxisMotionValue(t),n=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(n=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?(0,R.t)(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?(0,R.t)(i,t,s.max):Math.min(t,i)),t}(n,this.constraints[t],this.elastic[t])),o.set(n)}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?void 0:t.layout,o=this.constraints;e&&(0,w.I)(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=function(t,{top:e,left:i,bottom:s,right:o}){return{x:M(t.x,i,o),y:M(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:F(t,"left","right"),y:F(t,"top","bottom")}}(i),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&I(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||!(0,w.I)(e))return!1;let s=e.current;(0,n.k)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:o}=this.visualElement;if(!o||!o.layout)return!1;let r=(0,z.z)(s,o.root,this.visualElement.getTransformPagePoint()),a={x:O((t=o.layout.layoutBox).x,r.x),y:O(t.y,r.y)};if(i){let t=i((0,$.z2)(a));this.hasMutatedConstraints=!!t,t&&(a=(0,$.i8)(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:o,dragSnapToOrigin:n,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{};return Promise.all(I(r=>{if(!K(r,e,this.currentDirection))return;let l=a&&a[r]||{};n&&(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,...o,...l};return this.startAxisValueAnimation(r,h)})).then(r)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return i.start((0,H.v)(t,i,0,e,this.visualElement,!1,(0,Y.K)(this.visualElement,t)))}stopAnimation(){I(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){I(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?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){I(e=>{let{drag:i}=this.getProps();if(!K(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,o=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:n}=s.layout.layoutBox[e];o.set(t[e]-(0,R.t)(i,n,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,w.I)(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};I(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();s[t]=function(t,e){let i=.5,s=L(t),o=L(e);return o>s?i=(0,E.Y)(e.min,e.max-s,t.min):s>o&&(i=(0,E.Y)(t.min,t.max-o,e.min)),(0,B.u)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),I(e=>{if(!K(e,t,null))return;let i=this.getAxisMotionValue(e),{min:o,max:n}=this.constraints[e];i.set((0,R.t)(o,n,s[e]))})}addListeners(){if(!this.visualElement.current)return;X.set(this.visualElement,this);let t=d(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();(0,w.I)(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()),p.Wi.read(e);let o=u(window,"resize",()=>this.scalePositionWithinConstraints()),n=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(I(e=>{let i=this.getAxisMotionValue(e);
1i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),t(),s(),n&&n()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:n=.35,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:o,dragElastic:n,dragMomentum:r}}}function K(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class _ extends s{constructor(t){super(t),this.removeGroupControls=o.Z,this.removeListeners=o.Z,this.controls=new Z(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||o.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let q=t=>(e,i)=>{t&&p.Wi.postRender(()=>t(e,i))};class Q extends s{constructor(){super(...arguments),this.removePointerDownListener=o.Z}onPointerDown(t){this.session=new v(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:G(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:q(t),onStart:q(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&p.Wi.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=d(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 J=i(57437),tt=i(2265),te=i(64252),ti=i(58881),ts=i(29913);let to={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function tn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let tr={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!N.px.test(t))return t;t=parseFloat(t)}let i=tn(t,e.target.x),s=tn(t,e.target.y);return`${i}% ${s}%`}};var ta=i(15636),tl=i(98639),th=i(22199);class tu extends tt.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:o}=t;(0,tl.B)(tc),o&&(e.group&&e.group.add(o),i&&i.register&&s&&i.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),to.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:o}=this.props,n=i.projection;return n&&(n.isPresent=o,s||t.layoutDependency!==e||void 0===e?n.willUpdate():this.safeToRemove(),t.isPresent===o||(o?n.promote():n.relegate()||p.Wi.postRender(()=>{let t=n.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),th.g.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 td(t){let[e,i]=function(){let t=(0,tt.useContext)(te.O);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:s}=t,o=(0,tt.useId)();(0,tt.useEffect)(()=>s(o),[]);let n=(0,tt.useCallback)(()=>i&&i(o),[o,i]);return!e&&i?[!1,n]:[!0]}(),s=(0,tt.useContext)(ti.p);return(0,J.jsx)(tu,{...t,layoutGroup:s,switchLayoutGroup:(0,tt.useContext)(ts.g),isPresent:e,safeToRemove:i})}let tc={borderRadius:{...tr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tr,borderTopRightRadius:tr,borderBottomLeftRadius:tr,borderBottomRightRadius:tr,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=ta.P.parse(t);if(s.length>5)return t;let o=ta.P.createTransformer(t),n="number"!=typeof s[0]?1:0,r=i.x.scale*e.x,a=i.y.scale*e.y;s[0+n]/=r,s[1+n]/=a;let l=(0,R.t)(r,a,.5);return"number"==typeof s[2+n]&&(s[2+n]/=l),"number"==typeof s[3+n]&&(s[3+n]/=l),o(s)}}};var tm=i(34081),tp=i(26378);let tv=["TopLeft","TopRight","BottomLeft","BottomRight"],tg=tv.length,tf=t=>"string"==typeof t?parseFloat(t):t,ty=t=>"number"==typeof t||N.px.test(t);function tx(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let tP=tD(0,.5,tp.Bn),tT=tD(.5,.95,o.Z);function tD(t,e,i){return s=>s<t?0:s>e?1:i((0,E.Y)(t,e,s))}function tA(t,e){t.min=e.min,t.max=e.max}function tS(t,e){tA(t.x,e.x),tA(t.y,e.y)}function tw(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var tE=i(47227);function tR(t,e,i,s,o){return t-=e,t=(0,tE.q2)(t,1/i,s),void 0!==o&&(t=(0,tE.q2)(t,1/o,s)),t}function tL(t,e,[i,s,o],n,r){!function(t,e=0,i=1,s=.5,o,n=t,r=t){if(N.a
1Q.test(e)&&(e=parseFloat(e),e=(0,R.t)(r.min,r.max,e/100)-r.min),"number"!=typeof e)return;let a=(0,R.t)(n.min,n.max,s);t===n&&(a-=e),t.min=tR(t.min,e,i,a,o),t.max=tR(t.max,e,i,a,o)}(t,e[i],e[s],e[o],e.scale,n,r)}let tj=["x","scaleX","originX"],tb=["y","scaleY","originY"];function tV(t,e,i,s){tL(t.x,e,tj,i?i.x:void 0,s?s.x:void 0),tL(t.y,e,tb,i?i.y:void 0,s?s.y:void 0)}var tC=i(79573);function tk(t){return 0===t.translate&&1===t.scale}function tB(t){return tk(t.x)&&tk(t.y)}function tM(t,e){return t.min===e.min&&t.max===e.max}function tO(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function tF(t,e){return tO(t.x,e.x)&&tO(t.y,e.y)}function tU(t){return L(t.x)/L(t.y)}function tW(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var tI=i(69013);class tz{constructor(){this.members=[]}add(t){(0,tI.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,tI.cl)(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;let 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 t$=i(12787);let tN=(t,e)=>t.depth-e.depth;class tH{constructor(){this.children=[],this.isDirty=!1}add(t){(0,tI.y4)(this.children,t),this.isDirty=!0}remove(t){(0,tI.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(tN),this.isDirty=!1,this.children.forEach(t)}}var tG=i(84364),tY=i(40504),tX=i(94239),tZ=i(43289),tK=i(34005);let t_={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},tq="undefined"!=typeof window&&void 0!==window.MotionDebug,tQ=["","X","Y","Z"],tJ={visibility:"hidden"},t0=0;function t1(t,e,i,s){let{latestValues:o}=e;o[t]&&(i[t]=o[t],e.setStaticValue(t,0),s&&(s[t]=0))}function t2({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:o}){return class{constructor(t={},i=null==e?void 0:e()){this.id=t0++,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,tq&&(t_.totalNodes=t_.resolvedTargetDeltas=t_.recalculatedProjection=0),this.nodes.forEach(t5),this.nodes.forEach(ei),this.nodes.forEach(es),this.nodes.forEach(t6),tq&&window.MotionDebug.record(t_)},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 tH)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tm.L),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,tX.v)(e),this.instance=e;let{layoutId:s,layout:o,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(o||s)&&(this.isLayoutDirty=!0),t){let i;let s=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=tY.X.now(),s=({timestamp:e})=>{let o=e-i;o>=250&&((0,p.Pn)(s),t(o-250))};return p.Wi.read(s,!0),()=>(0,p.Pn)(s)}(s,0),to.hasAnimatedSinceResize&&(to.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(ee))})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&n&&(s||o)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||n.getDefaultTransition()||eh,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!tF(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,tC.e)(o,"layout"),onPlay:r,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||ee(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,p.Pn)(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(eo),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.MotionCancelOptimisedTransform&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let s=(0,tK.s)(i);window.MotionHasOptimisedTransformAnimation(s)&&window.MotionCancelOptimisedTransform(s);let{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&t(o)}(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(t9);return}this.isUpdating||this.nodes.forEach(t8),this.isUpdating=!1,this.nodes.forEach(et),this.nodes.forEach(t3),this.nodes.forEach(t4),this.clearAllSnapshots();let t=tY.X.now();p.frameData.delta=(0,B.u)(0,1e3/60,t-p.frameData.timestamp),p.frameData.timestamp=t,p.frameData.isProcessing=!0,p.S6.update.process(p.frameData),p.S6.preRender.process(p.frameData),p.S6.render.process(p.frameData),p.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,th.g.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(t7),this.sharedNodes.forEach(en)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,p.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){p.Wi.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,W.dO)(),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(!o)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!tB(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,n=s!==this.prevTransformTemplateValue;t&&(e||(0,t$.ud)(this.latestValues)||n)&&(o(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)),ec((e=s).x),ec(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,W.dO)();let i=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(ep))){let{scroll:t}=this.root;t&&((0,tE.am)(i.x,t.offset.x),(0,tE.am)(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=(0,W.dO)();if(tS(i,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let s=this.path[e],{scroll:o,options:n}=s;s!==this.root&&o&&n.layoutScroll&&(o.wasRoot&&tS(i,t),(0,tE.am)(i.x,o.offset.x),(0,tE.am)(i.y,o.offset.y))}return i}applyTransform(t,e=!1){let i=(0,W.dO)();tS(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,tE.D2)(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),(0,t$.ud)(s.latestValues)&&(0,tE.D2)(i,s.latestValues)}return(0,t$.ud)(this.latestValues)&&(0,tE.D2)(i,this.latestValues),i}removeTransform(t){let e=(0,W.dO)();tS(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,t$.ud)(i.latestValues))continue;(0,t$.Lj)(i.latestValues)&&i.updateSnapshot();let s=(0,W.dO)();tS(s,i.measurePageBox()),tV(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return(0,t$.ud)(this.latestValues)&&tV(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!==p.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,s,o;let n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isS
1haredProjectionDirty);let r=!!this.resumingFrom||this!==n;if(!(t||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?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=p.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,W.dO)(),this.relativeTargetOrigin=(0,W.dO)(),k(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),tS(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=(0,W.dO)(),this.targetWithTransforms=(0,W.dO)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,s=this.relativeTarget,o=this.relativeParent.target,V(i.x,s.x,o.x),V(i.y,s.y,o.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):tS(this.target,this.layout.layoutBox),(0,tE.o2)(this.target,this.targetDelta)):tS(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,W.dO)(),this.relativeTargetOrigin=(0,W.dO)(),k(this.relativeTargetOrigin,this.target,t.target),tS(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}tq&&t_.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||(0,t$.Lj)(this.parent.latestValues)||(0,t$.D_)(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent: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?void 0:t.isProjectionDirty))&&(s=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(s=!1),this.resolvedRelativeTargetAt===p.frameData.timestamp&&(s=!1),s)return;let{layout:o,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||!(o||n))return;tS(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;(0,tE.YY)(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,W.dO)());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(tw(this.prevProjectionDelta.x,this.projectionDelta.x),tw(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),b(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&tW(this.projectionDelta.x,this.prevProjectionDelta.x)&&tW(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),tq&&t_.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,W.wc)(),this.projectionDelta=(0,W.wc)(),this.projectionDeltaWithTransform=(0,W.wc)()}setAnimationOrigin(t,e=!1){let i;let s=this.snapshot,o=s?s.latestValues:{},n={...this.latestValues},r=(0,W.wc)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=(0,W.dO)(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,d=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(el));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(er(r.x,t.x,s),er(r.y,t.y,s),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,c,m,p;k(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,p=this.relativeTargetOrigin,ea(m.x,p.x,a.x,s),ea(m.y,p.y,a.y,s),i&&(h=this.relativeTarget,c=i,tM(h.x,c.x)&&tM(h.y,c.y))&&(this.isProjectionDirty=!1),i||(i=(0,W.dO)()),tS(i,this.relativeTarget)}
1l&&(this.animationValues=n,function(t,e,i,s,o,n){o?(t.opacity=(0,R.t)(0,void 0!==i.opacity?i.opacity:1,tP(s)),t.opacityExit=(0,R.t)(void 0!==e.opacity?e.opacity:1,0,tT(s))):n&&(t.opacity=(0,R.t)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,s));for(let o=0;o<tg;o++){let n=`border${tv[o]}Radius`,r=tx(e,n),a=tx(i,n);(void 0!==r||void 0!==a)&&(r||(r=0),a||(a=0),0===r||0===a||ty(r)===ty(a)?(t[n]=Math.max((0,R.t)(tf(r),tf(a),s),0),(N.aQ.test(a)||N.aQ.test(r))&&(t[n]+="%")):t[n]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,R.t)(e.rotate||0,i.rotate||0,s))}(n,o,this.latestValues,s,d,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,p.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=p.Wi.update(()=>{to.hasAnimatedSinceResize=!0,this.currentAnimation=(0,tZ.D)(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:o}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&em(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,W.dO)();let e=L(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=L(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}tS(e,i),(0,tE.D2)(e,o),b(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new tz),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?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?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)}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&&t1("z",t,s,this.animationValues);for(let e=0;e<tQ.length;e++)t1(`rotate${tQ[e]}`,t,s,this.animationValues),t1(`skew${tQ[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 tJ;let s={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=(0,tG.b)(null==t?void 0:t.pointerEvents)||"",s.transform=o?o(this.latestValues,""):"none",s;let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=(0,tG.b)(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!(0,t$.ud)(this.latestValues)&&(e.transform=o?o({},""):"none",this.hasProjected=!1),e}let r=n.animationValues||n.latestValues;
1this.applyTransformsToTarget(),s.transform=function(t,e,i){let s="",o=t.x.translate/e.x,n=t.y.translate/e.y,r=(null==i?void 0:i.z)||0;if((o||n||r)&&(s=`translate3d(${o}px, ${n}px, ${r}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:o,rotateY:n,skewX:r,skewY:a}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),o&&(s+=`rotateX(${o}deg) `),n&&(s+=`rotateY(${n}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),o&&(s.transform=o(r,s.transform));let{x:a,y:l}=this.projectionDelta;for(let t in s.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,n.animationValues?s.opacity=n===this?null!==(i=null!==(e=r.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:s.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,tl.P){if(void 0===r[t])continue;let{correct:e,applyTo:i}=tl.P[t],o="none"===s.transform?r[t]:e(r[t],n);if(i){let t=i.length;for(let e=0;e<t;e++)s[i[e]]=o}else s[t]=o}return this.options.layoutId&&(s.pointerEvents=n===this?(0,tG.b)(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?void 0:e.stop()}),this.root.nodes.forEach(t9),this.root.sharedNodes.clear()}}}function t3(t){t.updateLayout()}function t4(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:s}=t.layout,{animationType:o}=t.options,n=i.source!==t.layout.source;"size"===o?I(t=>{let s=n?i.measuredBox[t]:i.layoutBox[t],o=L(s);s.min=e[t].min,s.max=s.min+o}):em(o,i.layoutBox,e)&&I(s=>{let o=n?i.measuredBox[s]:i.layoutBox[s],r=L(e[s]);o.max=o.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+r)});let r=(0,W.wc)();b(r,e,i.layoutBox);let a=(0,W.wc)();n?b(a,t.applyTransform(s,!0),i.measuredBox):b(a,e,i.layoutBox);let l=!tB(r),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:o,layout:n}=s;if(o&&n){let r=(0,W.dO)();k(r,i.layoutBox,o.layoutBox);let a=(0,W.dO)();k(a,e,n.layoutBox),tF(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 t5(t){tq&&t_.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 t6(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function t7(t){t.clearSnapshot()}function t9(t){t.clearMeasurements()}function t8(t){t.isLayoutDirty=!1}function et(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ee(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ei(t){t.resolveTargetDelta()}function es(t){t.calcProjection()}function eo(t){t.resetSkewAndRotation()}function en(t){t.removeLeadSnapshot()}function er(t,e,i){t.translate=(0,R.t)(e.translate,0,i),t.scale=(0,R.t)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function ea(t,e,i,s){t.min=(0,R.t)(e.min,i.min,s),t.max=(0,R.t)(e.max,i.max,s)}function el(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let eh={duration:.45,ease:[.4,0,.1,1]},eu=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ed=eu("applewebkit/")&&!eu("chrome/")?Math.round:o.Z;function ec(t){t.min=ed(t.min),t.max=ed(t.max)}function em(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(tU(e)-tU(i)))}function ep(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}let ev=t2({attachResizeListener:(t,e)=>u(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),eg={current:void 0},ef=t2({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!eg.current){let t=new ev({});t.mount(window),t.setOptions({layoutScroll:!0}),eg.current=t}return eg.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var ey=i(20569),ex=i(44944);function eP(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 eT=i(74115),eD=i(67043),eA=i(72589),eS=i(63466);let ew=[...eA.e].reverse(),eE=eA.e.length;function eR(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function eL(){return{animate:eR(!0),whileInView:eR(),whileHover:eR(),whileTap:eR(),whileDrag:eR(),whileFocus:eR(),exit:eR()}}class ej extends s{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(0,eS.d)(t,e,i))),i=eL(),s=!0,o=e=>(i,s)=>{var o;let n=(0,eD.x)(t,s,"exit"===e?null===(o=t.presenceContext)||void 0===o?void 0:o.custom:void 0);if(n){let{transition:t,transitionEnd:e,...s}=n;i={...i,...s,...e}}return i};function n(n){let r=t.getProps(),a=t.getVariantContext(!0)||{},l=[],h=new Set,u={},d=1/0;for(let e=0;e<eE;e++){var c;let m=ew[e],p=i[m],v=void 0!==r[m]?r[m]:a[m],g=(0,eT.$)(v),f=m===n?p.isActive:null;!1===f&&(d=e);let y=v===a[m]&&v!==r[m]&&g;if(y&&s&&t.manuallyAnimateOnMount&&(y=!1),p.protectedKeys={...u},!p.isActive&&null===f||!v&&!p.prevProp||(0,ey.H)(v)||"boolean"==typeof v)continue;let x=(c=p.prevProp,("string"==typeof v?v!==c:!!Array.isArray(v)&&!eP(v,c))||m===n&&p.isActive&&!y&&g||e>d&&g),P=!1,T=Array.isArray(v)?v:[v],D=T.reduce(o(m),{});!1===f&&(D={});let{prevResolvedValues:A={}}=p,S={...A,...D},w=e=>{x=!0,h.has(e)&&(P=!0,h.delete(e)),p.needsAnimating[e]=!0;let i=t.getValue(e);
1i&&(i.liveStyle=!1)};for(let t in S){let e=D[t],i=A[t];if(!u.hasOwnProperty(t))((0,ex.C)(e)&&(0,ex.C)(i)?eP(e,i):e===i)?void 0!==e&&h.has(t)?w(t):p.protectedKeys[t]=!0:null!=e?w(t):h.add(t)}p.prevProp=v,p.prevResolvedValues=D,p.isActive&&(u={...u,...D}),s&&t.blockInitialAnimation&&(x=!1),x&&(!y||P)&&l.push(...T.map(t=>({animation:t,options:{type:m}})))}if(h.size){let e={};h.forEach(i=>{let s=t.getBaseTarget(i),o=t.getValue(i);o&&(o.liveStyle=!0),e[i]=null!=s?s:null}),l.push({animation:e})}let m=!!l.length;return s&&(!1===r.initial||r.initial===r.animate)&&!t.manuallyAnimateOnMount&&(m=!1),s=!1,m?e(l):Promise.resolve()}return{animateChanges:n,setActive:function(e,s){var o;if(i[e].isActive===s)return Promise.resolve();null===(o=t.variantChildren)||void 0===o||o.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,s)}),i[e].isActive=s;let r=n(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=eL(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,ey.H)(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)||void 0===t||t.call(this)}}let eb=0;class eV extends s{constructor(){super(...arguments),this.id=eb++}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(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}function eC(t,e){let i=e?"onHoverStart":"onHoverEnd";return d(t.current,e?"pointerenter":"pointerleave",(s,o)=>{if("touch"===s.pointerType||S())return;let n=t.getProps();t.animationState&&n.whileHover&&t.animationState.setActive("whileHover",e);let r=n[i];r&&p.Wi.postRender(()=>r(s,o))},{passive:!t.getProps()[i]})}class ek extends s{mount(){this.unmount=(0,c.z)(eC(this.node,!0),eC(this.node,!1))}unmount(){}}class eB extends s{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,c.z)(u(this.node.current,"focus",()=>this.onFocus()),u(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let eM=(t,e)=>!!e&&(t===e||eM(t,e.parentElement));function eO(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,a(i))}class eF extends s{constructor(){super(...arguments),this.removeStartListeners=o.Z,this.removeEndListeners=o.Z,this.removeAccessibleListeners=o.Z,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),s=d(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:s,globalTapTarget:o}=this.node.getProps(),n=o||eM(this.node.current,t.target)?i:s;n&&p.Wi.update(()=>n(t,e))},{passive:!(i.onTap||i.onPointerUp)}),o=d(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=(0,c.z)(s,o),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=u(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=u(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&eO("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&p.Wi.postRender(()=>i(t,e))})}),eO("down",(t,e)=>{this.startPress(t,e)}))}),e=u(this.node.current,"blur",()=>{this.isPressing&&eO("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=(0,c.z)(t,e)}}startPress(t,e){this.isPressing=!0;let{onTapStart:i,whileTap:s}=this.node.getProps();s&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&p.Wi.postRender(()=>i(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!S()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&p.Wi.postRender(()=>i(t,e))}mount(){let t=this.node.getProps(),e=d(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=u(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,c.z)(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let eU=new WeakMap,eW=new WeakMap,eI=t=>{let e=eU.get(t.target);e&&e(t)}
1,ez=t=>{t.forEach(eI)},e$={some:0,all:1};class eN extends s{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:o}=t,n={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof s?s:e$[s]};return function(t,e,i){let s=function({root:t,...e}){let i=t||document;eW.has(i)||eW.set(i,{});let s=eW.get(i),o=JSON.stringify(e);return s[o]||(s[o]=new IntersectionObserver(ez,{root:t,...e})),s[o]}(e);return eU.set(t,i),s.observe(t),()=>{eU.delete(t),s.unobserve(t)}}(this.node.current,n,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),n=e?i:s;n&&n(t)})}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(){}}var eH=i(59282),eG=i(23482),eY=i(64044);let eX={renderer:(t,e)=>(0,eY.q)(t)?new eG.e(e):new eH.W(e,{allowProjection:t!==tt.Fragment}),animation:{Feature:ej},exit:{Feature:eV},inView:{Feature:eN},tap:{Feature:eF},focus:{Feature:eB},hover:{Feature:ek},pan:{Feature:Q},drag:{Feature:_,ProjectionNode:ef,MeasureLayout:td},layout:{ProjectionNode:ef,MeasureLayout:td}}}}]);

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.