1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3819],{3809:(t,e,i)=>{i.d(e,{default:()=>a});var s=i(71983),o=i(17389),r=i(51567),n=i(95155);function a(t){var{locale:e}=t,i=(0,o._)(t,["locale"]);if(!e)throw Error(void 0);return(0,n.jsx)(r.Dk,(0,s._)({locale:e},i))}},12190:(t,e,i)=>{i.d(e,{x:()=>s});function s(t){return t instanceof SVGElement&&"svg"!==t.tagName}},17129:(t,e,i)=>{i.d(e,{DX:()=>n});var s=i(12115);function o(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}var r=i(95155),n=function(t){let e=function(t){let e=s.forwardRef((t,e)=>{let{children:i,...r}=t;if(s.isValidElement(i)){var n;let t,a,l=(n=i,(a=(t=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?n.ref:(a=(t=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?n.props.ref:n.props.ref||n.ref),h=function(t,e){let i={...e};for(let s in e){let o=t[s],r=e[s];/^on[A-Z]/.test(s)?o&&r?i[s]=(...t)=>{r(...t),o(...t)}:o&&(i[s]=o):"style"===s?i[s]={...o,...r}:"className"===s&&(i[s]=[o,r].filter(Boolean).join(" "))}return{...t,...i}}(r,i.props);return i.type!==s.Fragment&&(h.ref=e?function(...t){return e=>{let i=!1,s=t.map(t=>{let s=o(t,e);return i||"function"!=typeof s||(i=!0),s});if(i)return()=>{for(let e=0;e<s.length;e++){let i=s[e];"function"==typeof i?i():o(t[e],null)}}}}(e,l):l),s.cloneElement(i,h)}return s.Children.count(i)>1?s.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}(t),i=s.forwardRef((t,i)=>{let{children:o,...n}=t,a=s.Children.toArray(o),h=a.find(l);if(h){let t=h.props.children,o=a.map(e=>e!==h?e:s.Children.count(t)>1?s.Children.only(null):s.isValidElement(t)?t.props.children:null);return(0,r.jsx)(e,{...n,ref:i,children:s.isValidElement(t)?s.cloneElement(t,void 0,o):null})}return(0,r.jsx)(e,{...n,ref:i,children:o})});return i.displayName=`${t}.Slot`,i}("Slot"),a=Symbol("radix.slottable");function l(t){return s.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===a}},59794:(t,e,i)=>{i.d(e,{z:()=>n});var s=i(36325),o=i(49568),r=i(77481);function n(t,e,i){let n=(0,r.S)(t)?t:(0,o.O)(t);return n.start((0,s.f)("",n,e,i)),n.animation}},83101:(t,e,i)=>{i.d(e,{F:()=>n});var s=i(2821);let o=t=>"boolean"==typeof t?`${t}`:0===t?"0":t,r=s.$,n=(t,e)=>i=>{var s;if((null==e?void 0:e.variants)==null)return r(t,null==i?void 0:i.class,null==i?void 0:i.className);let{variants:n,defaultVariants:a}=e,l=Object.keys(n).map(t=>{let e=null==i?void 0:i[t],s=null==a?void 0:a[t];if(null===e)return null;let r=o(e)||o(s);return n[t][r]}),h=i&&Object.entries(i).reduce((t,e)=>{let[i,s]=e;return void 0===s||(t[i]=s),t},{});return r(t,l,null==e||null==(s=e.compoundVariants)?void 0:s.reduce((t,e)=>{let{class:i,className:s,...o}=e;return Object.entries(o).every(t=>{let[e,i]=t;return Array.isArray(i)?i.includes({...a,...h}[e]):({...a,...h})[e]===i})?[...t,i,s]:t},[]),null==i?void 0:i.class,null==i?void 0:i.className)}},96559:(t,e,i)=>{i.d(e,{P:()=>eh});var s=i(4240),o=i(80656),r=i(29797),n=i(34925),a=i(23165),l=i(45514),h=i(45791),u=i(6833),d=i(73387),c=i(23584),p=i(36484),m=i(35850);let f=(t,e)=>Math.abs(t-e);var y=i(37132),g=i(20527);class v{constructor(t,e,{transformPagePoint:i}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=T(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(f(t.x,e.x)**2+f(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:s}=t,{timestamp:o}=y.u;this.history.push({...s,timestamp:o});let{onStart:r,onMove:n}=this.handlers;e||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),n&&n(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=x(e,this.transformPagePoint),d.OH.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let{onEnd:i,onSessionEnd:s}=this.handlers,o=T("pointercancel"===t.type?this.lastMoveEventInfo:x(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,o),s&&s(t,o)},!(0,g.M)(t))return;this.handlers=e,this.transformPagePoint=i;let s=x((0,u.e)(t),this.transformPagePoint),{point:o}=s,{timestamp:r}=y.u;this.history=[{...o,timestamp:r}];let{onSessionStart:n}=e;n&&n(t,T(s,this.history)),this.removeListeners=(0,m.F)((0,p.h)(window,"pointermove",this.handlePointerMove),(0,p.h)(window,"pointerup",this.handlePointerUp),(0,p.h)(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),d.eO.update(this.updatePoint)}}function x(t,e){return e?{point:e(t.point)}:t}function P(t,e){return{x:t.x-e.x,y:t.y-e.y}}function T({point:t},e){return{point:t,delta:P(t,D(e)),offset:P(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,o=D(t);for(;i>=0&&(s=t[i],!(o.timestamp-s.timestamp>(0,c.f)(.1)));)i--;if(!s)return{x:0,y:0};let r=(0,c.X)(o.timestamp-s.timestamp);if(0===r)return{x:0,y:0};let n={x:(o.x-s.x)/r,y:(o.y-s.y)/r};return n.x===1/0&&(n.x=0),n.y===1/0&&(n.y=0),n}(e,.1)}}function D(t){return t[t.length-1]}var E=i(21235),j=i(96344),R=i(98291),L=i(13966);function S(t){return t.max-t.min}function A(t,e=0,i=.01){return Math.abs(t-e)<=i}function b(t,e,i,s=.5){t.origin=s,t.originPoint=(0,L.j)(e.min,e.max,t.origin),t.scale=S(i)/S(e),(A(t.
1scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=(0,L.j)(i.min,i.max,t.origin)-t.originPoint,(A(t.translate)||isNaN(t.translate))&&(t.translate=0)}function B(t,e,i,s){b(t.x,e.x,i.x,s?s.originX:void 0),b(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+S(e)}function w(t,e,i){t.min=e.min-i.min,t.max=t.min+S(e)}function C(t,e,i){w(t.x,e.x,i.x),w(t.y,e.y,i.y)}var k=i(74369);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 U(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:O(t,e),max:O(t,i)}}function O(t,e){return"number"==typeof t?t:t[e]||0}var N=i(82336);function H(t){return[t("x"),t("y")]}var I=i(63900),$=i(65473),G=i(17735),W=i(65220),X=i(36325);let z=new WeakMap;class q{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,N.ge)(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let s=t=>{this.stopAnimation(),e&&this.snapToCursor((0,u.e)(t,"page").point)},o=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:o}=this.getProps();if(i&&!s&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=(0,E.nQ)(i),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),H(t=>{let e=this.getAxisMotionValue(t).get()||0;if(W.KN.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=S(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),o&&d.OH.update(()=>o(t,e));let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},r=(t,e)=>{let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:o,onDrag:r}=this.getProps();if(!i&&!this.openGlobalLock)return;let{offset:n}=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}(n),null!==this.currentDirection&&o&&o(this.currentDirection);return}this.updateAxis("x",e.point,n),this.updateAxis("y",e.point,n),this.visualElement.render(),r&&r(t,e)},n=(t,e)=>this.stop(t,e);this.panSession=new v(t,{onSessionStart:s,onStart:o,onMove:r,onSessionEnd:n},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:s}=e;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&d.OH.update(()=>o(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||!_(t,s,this.currentDirection))return;let o=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?(0,L.j)(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?(0,L.j)(i,t,s.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),o.set(r)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:i}=this.visualElement.projection||{},s=this.constraints;t&&(0,j.X)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?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)}}(i.layoutBox,t):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")}}(e),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&H(t=>{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}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,j.X)(e))return!1;let s=e.current;(0,h.V)(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,I.L)(s,o.root,this.visualElement.getTransformPagePoint()),n=(t=o.layout.layoutBox,{x:U(t.x,r.x),y:U(t.y,r.y)});if(i){let t=i((0,$.pA)(n));this.hasMutatedConstraints=!!t,t&&(n=(0,$.FY)(t))}return n}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:n}=this.getProps(),a=this.constraints||{};return Promise.all(H(n=>{if(!_(n,e,this.currentDirection))return;let l=a&&a[n]||{};r&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[n]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(n,h)})).then(n)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return i.start((0,X.f)(t,i,0,e))}stopAnimation(){H(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e="_drag"+t.toUpperCase(),i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){H(e=>{let{drag:i}=this.getProps();if(!_(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,o=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:r}=s.layout.layoutBox[e];o.set(t[e]-(0,L.j)(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,j.X)(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};H(t=>{let e=this.getAxisMotionValue(t);if(e){let i=e.get();s[t]=function(t,e){let i=.5,s=S(t),o=S(e);return o>s?i=(0,R.q)(e.min,e.max-s,t.min):s>o&&(i=(0,R.q)(t.min,t.max-o,e.min)),(0,k.q)(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(),H(e=>{if(!_(e,t,null))return;let i=this.getAxisMotionValue(e),{min:o,max:r}=this.constraints[e];i.set((0,L.j)(o,r,s[e]))})}addListeners(){if(!this.visualElement.current)return;z.set(this.visualElement,this);let t=this.visualElement.current,e=(0,p.h)(t,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),i=()=>{let{dragConstraints:t}=this.getProps();(0,j.X)(t)&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,o=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),i();let r=(0,G.k)(window,"resize",()=>this.scalePositionWithinConstraints()),n=s.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(H(e=>{let i=this.getAxisMotionValue(e);
1i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),e(),o(),n&&n()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:r=.35,dragMomentum:n=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:o,dragElastic:r,dragMomentum:n}}}function _(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class Q extends a.X{constructor(t){super(t),this.removeGroupControls=l.l,this.removeListeners=l.l,this.controls=new q(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||l.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let Y=t=>(e,i)=>{t&&d.OH.update(()=>t(e,i))};class K extends a.X{constructor(){super(...arguments),this.removePointerDownListener=l.l}onPointerDown(t){this.session=new v(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:Y(t),onStart:Y(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&d.OH.update(()=>s(t,e))}}}mount(){this.removePointerDownListener=(0,p.h)(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 Z=i(12115),J=i(59686),tt=i(60296),te=i(98860),ti=i(28934);function ts(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let to={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!W.px.test(t))return t;else t=parseFloat(t);let i=ts(t,e.target.x),s=ts(t,e.target.y);return`${i}% ${s}%`}};var tr=i(53378),tn=i(99247);let ta="_$css",tl={correct:(t,{treeScale:e,projectionDelta:i})=>{let s=t,o=t.includes("var("),r=[];o&&(t=t.replace(tr.z2,t=>(r.push(t),ta)));let n=tn.f.parse(t);if(n.length>5)return s;let a=tn.f.createTransformer(t),l=+("number"!=typeof n[0]),h=i.x.scale*e.x,u=i.y.scale*e.y;n[0+l]/=h,n[1+l]/=u;let d=(0,L.j)(h,u,.5);"number"==typeof n[2+l]&&(n[2+l]/=d),"number"==typeof n[3+l]&&(n[3+l]/=d);let c=a(n);if(o){let t=0;c=c.replace(ta,()=>{let e=r[t];return t++,e})}return c}};var th=i(20972);class tu extends Z.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:o}=t;(0,th.$)(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()})),ti.w.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:o}=this.props,r=i.projection;return r&&(r.isPresent=o,s||t.layoutDependency!==e||void 0===e?r.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?r.promote():r.relegate()||d.OH.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!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,Z.useContext)(J.t);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:s}=t,o=(0,Z.useId)();return(0,Z.useEffect)(()=>s(o),[]),!e&&i?[!1,()=>i&&i(o)]:[!0]}(),s=(0,Z.useContext)(tt.L);return Z.createElement(tu,{...t,layoutGroup:s,switchLayoutGroup:(0,Z.useContext)(te.N),isPresent:e,safeToRemove:i})}let tc={borderRadius:{...to,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:to,borderTopRightRadius:to,borderBottomLeftRadius:to,borderBottomRightRadius:to,boxShadow:tl};var tp=i(72863),tm=i(64885);let tf=["TopLeft","TopRight","BottomLeft","BottomRight"],ty=tf.length,tg=t=>"string"==typeof t?parseFloat(t):t,tv=t=>"number"==typeof t||W.px.test(t);function tx(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let tP=tD(0,.5,tm.yT),tT=tD(.5,.95,l.l);function tD(t,e,i){return s=>s<t?0:s>e?1:i((0,R.q)(t,e,s))}function tE(t,e){t.min=e.min,t.max=e.max}function tj(t,e){tE(t.x,e.x),tE(t.y,e.y)}var tR=i(75152);function tL(t,e,i,s,o){return t-=e,t=(0,tR.hq)(t,1/i,s),void 0!==o&&(t=(0,tR.hq)(t,1/o,s)),t}function tS(t,e,[i,s,o],r,n){!function(t,e=0,i=1,s=.5,o,r=t,n=t){if(W.KN.test(e)&&(e=parseFloat(e),e=(0,L.j)(n.min,n.max,e/100)-n.min),"number"!=typeof e)return;let a=(0,L.j)(r.min,r.max,s);t===r&&(a-=e),t.min=tL(t.min,e,i,a,o),t.max=tL(t.max,e,i,a,o)}(t,e[i],e[s],e[o],e.scale,r,n)}let tA=["x","scaleX","originX"],tb=["y","scaleY","originY"];function tB(t,e,i,s){tS(t.x,e,tA,i?i.x:void 0,s?s.x:void 0),tS(t.y,e,tb,i?i.y:void 0,s?s.y:void 0)}var tV=i(22035);function tw(t){return 0===t.translate&&1===t.scale}function tC(t){return tw(t.x)&&tw(t.y)}function tk(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function tM(t){return S(t.x)/S(t.y)}var tU=i(807);class tF{constructor(){this.members=[]}add(t){(0,tU.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,tU.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)}
1}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)}}function tO(t,e,i){let s="",o=t.x.translate/e.x,r=t.y.translate/e.y;if((o||r)&&(s=`translate3d(${o}px, ${r}px, 0) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{rotate:t,rotateX:e,rotateY:o}=i;t&&(s+=`rotate(${t}deg) `),e&&(s+=`rotateX(${e}deg) `),o&&(s+=`rotateY(${o}deg) `)}let n=t.x.scale*e.x,a=t.y.scale*e.y;return(1!==n||1!==a)&&(s+=`scale(${n}, ${a})`),s||"none"}var tN=i(11447);let tH=(t,e)=>t.depth-e.depth;class tI{constructor(){this.children=[],this.isDirty=!1}add(t){(0,tU.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,tU.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(tH),this.isDirty=!1,this.children.forEach(t)}}var t$=i(87923),tG=i(12190),tW=i(59794);let tX=["","X","Y","Z"],tz=0,tq={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function t_({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:o}){return class{constructor(t,i={},s=null==e?void 0:e()){this.id=tz++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{tq.totalNodes=tq.resolvedTargetDeltas=tq.recalculatedProjection=0,this.nodes.forEach(tK),this.nodes.forEach(t3),this.nodes.forEach(t2),this.nodes.forEach(tZ),window.MotionDebug&&window.MotionDebug.record(tq)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=t,this.latestValues=i,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new tI)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tp.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)}registerPotentialNode(t,e){this.potentialNodes.set(t,e)}mount(e,i=!1){if(this.instance)return;this.isSVG=(0,tG.x)(e),this.instance=e;let{layoutId:s,layout:o,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),i&&(o||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=performance.now(),s=({timestamp:e})=>{let o=e-i;o>=250&&(d.eO.read(s),t(o-250))};return d.OH.read(s,!0),()=>d.eO.read(s)}(s,250),ti.w.hasAnimatedSinceResize&&(ti.w.hasAnimatedSinceResize=!1,this.nodes.forEach(t5))})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&r&&(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||r.getDefaultTransition()||et,{onLayoutAnimationStart:n,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!tk(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,tV.rU)(o,"layout"),onPlay:n,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||0!==this.animationProgress||t5(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,d.eO.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(t9),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(t0);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(ee),this.potentialNodes.clear()),this.nodes.forEach(t1),this.nodes.forEach(tQ),this.nodes.forEach(tY),this.clearAllSnapshots(),d.qX.update(),d.qX.preRender(),d.qX.render())}clearAllSnapshots(){this.nodes.forEach(tJ),this.sharedNodes.forEach(t7)}scheduleUpdateProjection(){d.OH.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){d.OH.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,N.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);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:s(this.instance),offset:i(this.instance)})}resetTransform(){if(!o)return;let t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!tC(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,r=s!==this.prevTransformTemplateValue;t&&(e||(0,tN.HD)(this.latestValues)||r)&&(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)),ei((e=s).x),ei(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,N.ge)();let e=t.measureViewportBox(),{scroll:i}=this.root;return i&&((0,tR.Ql)(e.x,i.offset.x),(0,tR.Ql)(e.y,i.offset.y)),e}removeElementScroll(t){let e=(0,N.ge)();tj(e,t);for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:o,options:r}=s;if(s!==this.root&&o&&r.layoutScroll){if(o.isRoot){tj(e,t);let{scroll:i}=this.root;i&&((0,tR.Ql)(e.x,-i.offset.x),(0,tR.Ql)(e.y,-i.offset.y))}(0,tR.Ql)(e.x,o.offset.x),(0,tR.Ql)(e.y,o.offset.y)}}return e}applyTransform(t,e=!1){let i=(0,N.ge)();tj(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,tR.Ww)(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),(0,tN.HD)(s.latestValues)&&(0,tR.Ww)(i,s.latestValues)}return(0,tN.HD)(this.latestValues)&&(0,tR.Ww)(i,this.latestValues),i}removeTransform(t){let e=(0,N.ge)();tj(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,tN.HD)(i.latestValues))continue;(0,tN.vk)(i.latestValues)&&i.updateSnapshot();let s=(0,N.ge)();tj(s,i.measurePageBox()),tB(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return(0,tN.HD)(this.latestValues)&&tB(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}resolveTargetDelta(t=!1){var e,i,s,o;let r=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=r.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=r.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=r.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==r;if(!(t||n&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=y.u.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout?(this.relativeParent=t,this.relativeTarget=(0,N.ge)(),this.relativeTargetOrigin=(0,N.ge)(),C(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),tj(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=(0,N.ge)(),this.targetWithTransforms=(0,N.ge)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.relativeParent.resolvedRelativeTargetAt!==y.u.timestamp&&this.relativeParent.resolveTargetDelta(!0),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):tj(this.target,this.layout.layoutBox),(0,tR.o4)(this.target,this.targetDelta)):tj(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target?(this.relativeParent=t,this.relativeTarget=(0,N.ge)(),this.relativeTargetOrigin=(0,N.ge)(),C(this.relativeTargetOrigin,this.target,t.target),tj(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}tq.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||(0,tN.vk)(this.parent.latestValues)||(0,tN.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===y.u.timestamp&&(s=!1),s)return;let{layout:o,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(o||r))return;tj(this.layoutCorrected,this.layout.layoutBox),(0,tR.OU)(this.layoutCorrected,this.treeScale,this.path,i);let{target:n}=e;if(!n)return;this.projectionDelta||(this.projectionDelta=(0,N.xU)(),this.projectionDeltaWithTransform=(0,N.xU)());let a=this.treeScale.x,l=this.treeScale.y,h=this.projectionTransform;B(this.projectionDelta,this.layoutCorrected,n,this.latestValues),this.projectionTransform=tO(this.projectionDelta,this.treeScale),(this.projectionTransform!==h||this.treeScale.x!==a||this.treeScale.y!==l)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",n)),tq.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){let i,s=this.snapshot,o=s?s.latestValues:{},r={...this.latestValues},n=(0,N.xU)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=(0,N.ge)(),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(t8));this.animationProgress=0,this.mixTargetDelta=e=>{var s,h,c,p;let m=e/1e3;t4(n.x,t.x,m),t4(n.y,t.y,m),this.setTargetDelta(n),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(C(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),s=this.relativeTarget,h=this.relativeTargetOrigin,c=a,p=m,t6(s.x,h.x,
1c.x,p),t6(s.y,h.y,c.y,p),i&&tk(this.relativeTarget,i)&&(this.isProjectionDirty=!1),i||(i=(0,N.ge)()),tj(i,this.relativeTarget)),l&&(this.animationValues=r,function(t,e,i,s,o,r){o?(t.opacity=(0,L.j)(0,void 0!==i.opacity?i.opacity:1,tP(s)),t.opacityExit=(0,L.j)(void 0!==e.opacity?e.opacity:1,0,tT(s))):r&&(t.opacity=(0,L.j)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,s));for(let o=0;o<ty;o++){let r=`border${tf[o]}Radius`,n=tx(e,r),a=tx(i,r);(void 0!==n||void 0!==a)&&(n||(n=0),a||(a=0),0===n||0===a||tv(n)===tv(a)?(t[r]=Math.max((0,L.j)(tg(n),tg(a),s),0),(W.KN.test(a)||W.KN.test(n))&&(t[r]+="%")):t[r]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,L.j)(e.rotate||0,i.rotate||0,s))}(r,o,this.latestValues,m,d,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=m},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&&(d.eO.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=d.OH.update(()=>{ti.w.hasAnimatedSinceResize=!0,this.currentAnimation=(0,tW.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:o}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&es(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,N.ge)();let e=S(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=S(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}tj(e,i),(0,tR.Ww)(e,o),B(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new tF),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)}resetRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.rotate||i.rotateX||i.rotateY||i.rotateZ)&&(e=!0),!e)return;let s={};for(let e=0;e<tX.length;e++){let o="rotate"+tX[e];i[o]&&(s[o]=i[o],t.setStaticValue(o,0))}for(let e in t.render(),s)t.setStaticValue(e,s[e]);t.scheduleRender()}getProjectionStyles(t={}){var e,i;let s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";let o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=(0,t$.u)(t.pointerEvents)||"",s.transform=o?o(this.latestValues,""):"none",s;let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=(0,t$.u)(t.pointerEvents)||""),this.hasProjected&&!(0,tN.HD)(this.latestValues)&&(e.transform=o?o({},""):"none",this.hasProjected=!1),e}let n=r.animationValues||r.latestValues;this.applyTransformsToTarget(),s.transform=tO(this.projectionDeltaWithTransform,this.treeScale,n),o&&(s.transform=o(n,s.transform));let{x:a,y:l}=this.projectionDelta;for(let t in s.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,r.animationValues?s.opacity=r===this?null!=(i=null!=(e=n.opacity)?e:this.latestValues.opacity)?i:1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:s.opacity=r===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,th.H){if(void 0===n[t])continue;let{correct:e,applyTo:i}=th.H[t],o="none"===s.transform?n[t]:e(n[t],r);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=r===this?(0,t$.u)(t.pointerEvents)||"":"none"),s}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
1resetTree(){this.root.nodes.forEach(t=>{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(t0),this.root.sharedNodes.clear()}}}function tQ(t){t.updateLayout()}function tY(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:o}=t.options,r=i.source!==t.layout.source;"size"===o?H(t=>{let s=r?i.measuredBox[t]:i.layoutBox[t],o=S(s);s.min=e[t].min,s.max=s.min+o}):es(o,i.layoutBox,e)&&H(t=>{let s=r?i.measuredBox[t]:i.layoutBox[t],o=S(e[t]);s.max=s.min+o});let n=(0,N.xU)();B(n,e,i.layoutBox);let a=(0,N.xU)();r?B(a,t.applyTransform(s,!0),i.measuredBox):B(a,e,i.layoutBox);let l=!tC(n),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:o,layout:r}=s;if(o&&r){let n=(0,N.ge)();C(n,i.layoutBox,o.layoutBox);let a=(0,N.ge)();C(a,e,r.layoutBox),tk(n,a)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=n,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:n,hasLayoutChanged:l,hasRelativeTargetChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function tK(t){tq.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 tZ(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function tJ(t){t.clearSnapshot()}function t0(t){t.clearMeasurements()}function t1(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function t5(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function t3(t){t.resolveTargetDelta()}function t2(t){t.calcProjection()}function t9(t){t.resetRotation()}function t7(t){t.removeLeadSnapshot()}function t4(t,e,i){t.translate=(0,L.j)(e.translate,0,i),t.scale=(0,L.j)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function t6(t,e,i,s){t.min=(0,L.j)(e.min,i.min,s),t.max=(0,L.j)(e.max,i.max,s)}function t8(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let et={duration:.45,ease:[.4,0,.1,1]};function ee(t,e){let i=t.root;for(let e=t.path.length-1;e>=0;e--)if(t.path[e].instance){i=t.path[e];break}
1let s=(i&&i!==t.root?i.instance:document).querySelector(`[data-projection-id="${e}"]`);s&&t.mount(s,!0)}function ei(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function es(t,e,i){return"position"===t||"preserve-aspect"===t&&!A(tM(e),tM(i),.2)}let eo=t_({attachResizeListener:(t,e)=>(0,G.k)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),er={current:void 0},en=t_({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!er.current){let t=new eo(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),er.current=t}return er.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var ea=i(97194);let el={...n.W,...r.n,pan:{Feature:K},drag:{Feature:Q,ProjectionNode:en,MeasureLayout:td},layout:{ProjectionNode:en,MeasureLayout:td}},eh=(0,s.H)((t,e)=>(0,o.P)(t,e,el,ea.J))}}]); 2//# sourceMappingURL=3819-1941935ea430c63a.js.map
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.