PageSourceSearch

https://class101.net/_next/static/chunks/73676-fbf8cfe4acf8bc9b.js

js class101.net collected 2026-09-24 08:41:36 UTC 65,986 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[73676],{228210:(t,e,i)=>{i.d(e,{t:()=>n});let n=(0,i(665162).createContext)(null)},417368:(t,e,i)=>{i.d(e,{E:()=>s});var n=i(665162);let s="undefined"!=typeof window?n.useLayoutEffect:n.useEffect},460336:(t,e,i)=>{i.d(e,{L:()=>n});let n=(0,i(665162).createContext)({})},773676:(t,e,i)=>{let n,s;i.d(e,{P:()=>iI});var o=i(772046),r=i(337183),a=i(665162);let l=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function h(t){if("string"!=typeof t||t.includes("-"));else if(l.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var u=i(304930),c=i(460336);let d=(0,a.createContext)({strict:!1});var p=i(877583);let m=(0,a.createContext)({});var f=i(553059),v=i(776903);function y(t){return Array.isArray(t)?t.join(" "):t}var g=i(590432),x=i(302135),P=i(842633);let w=()=>({style:{},transform:{},transformOrigin:{},vars:{}});
1function E(t,e,i){for(let n in e)(0,g.S)(e[n])||(0,x.zK)(n,i)||(t[n]=e[n])}var T=i(180394),S=i(335769);let A=()=>({...w(),attrs:{}}),D=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function L(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||D.has(t)}let C=t=>!L(t);try{!function(t){"function"==typeof t&&(C=e=>e.startsWith("on")?!L(e):t(e))}(require("@emotion/is-prop-valid").default)}catch{}var R=i(120064);function k(t){return(0,g.S)(t)?t.get():t}var b=i(991388),V=i(974693),j=i(228210),M=i(805272);let B=t=>(e,i)=>{let n=(0,a.useContext)(m),s=(0,a.useContext)(j.t),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,s){return{latestValues:function(t,e,i,n){let s={},o=n(t,{});for(let t in o)s[t]=k(o[t]);let{initial:r,animate:a}=t,l=(0,f.e)(t),h=(0,f.O)(t);e&&h&&!l&&!1!==t.inherit&&(void 0===r&&(r=e.initial),void 0===a&&(a=e.animate));let u=!!i&&!1===i.initial,c=(u=u||!1===r)?a:r;if(c&&"boolean"!=typeof c&&!(0,b.N)(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let n=(0,V.a)(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=u?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(i,n,s,t),renderState:e()}})(t,e,n,s);return i?o():(0,M.M)(o)},U=B({scrapeMotionValuesFromProps:R.x,createRenderState:w}),O=B({scrapeMotionValuesFromProps:i(284661).x,createRenderState:A});var I=i(199735);let F={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},W=!1;function G(){return!function(){if(W)return;let t={};for(let e in F)t[e]={isEnabled:t=>F[e].some(e=>!!t[e])};(0,I.lr)(t),W=!0}(),(0,I.vK)()}let H=Symbol.for("motionComponentSymbol");var N=i(312406);let z=(0,a.createContext)({});function $(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var K=i(417368);function Q(t,{forwardMotionProps:e=!1,type:i}={},n,s){n&&function(t){let e=G();for(let i in t)e[i]={...e[i],...t[i]};(0,I.lr)(e)}(n);let o=i?"svg"===i:h(t),r=o?O:U;function l(i,n){let l,x={...(0,a.useContext)(p.Q),...i,layoutId:function({layoutId:t}){let e=(0,a.useContext)(c.L).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:D}=x,R=function(t){let{initial:e,animate:i}=function(t,e){if((0,f.e)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,v.w)(e)?e:void 0,animate:(0,v.w)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,a.useContext)(m));return(0,a.useMemo)(()=>({initial:e,animate:i}),[y(e),y(i)])}(i),k=r(i,D);if(!D&&"undefined"!=typeof window){(0,a.useContext)(d).strict;let e=function(t){let{drag:e,layout:i}=G();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(x);l=e.MeasureLayout,R.visualElement=function(t,e,i,n,s,o){let{visualElement:r}=(0,a.useContext)(m),l=(0,a.useContext)(d),h=(0,a.useContext)(j.t),u=(0,a.useContext)(p.Q),c=u.reducedMotion,f=u.skipAnimations,v=(0,a.useRef)(null),y=(0,a.useRef)(!1);n=n||l.renderer,!v.current&&n&&(v.current=n(t,{visualState:e,parent:r,props:i,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:c,skipAnimations:f,isSVG:o}),y.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));let g=v.current,x=(0,a.useContext)(z);g&&!g.projection&&s&&("html"===g.type||"svg"===g.type)&&function(t,e,
1i,n){let{layoutId:s,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:h,layoutAnchor:u,layoutCrossfade:c}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:!!r||a&&$(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:n,crossfade:c,layoutScroll:l,layoutRoot:h,layoutAnchor:u})}(v.current,i,s,x);let P=(0,a.useRef)(!1);(0,a.useInsertionEffect)(()=>{g&&P.current&&g.update(i,h)});let w=i[N.n],E=(0,a.useRef)(!!w&&"undefined"!=typeof window&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return(0,K.E)(()=>{y.current=!0,g&&(P.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),E.current&&g.animationState&&g.animationState.animateChanges())}),(0,a.useEffect)(()=>{g&&(!E.current&&g.animationState&&g.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w)}),E.current=!1),g.enteringChildren=void 0)}),g}(t,k,x,s,e.ProjectionNode,o)}return(0,u.jsxs)(m.Provider,{value:R,children:[l&&R.visualElement?(0,u.jsx)(l,{visualElement:R.visualElement,...x}):null,function(t,e,i,{latestValues:n},s,o=!1,r){let l=(r??h(t)?function(t,e,i,n){let s=(0,a.useMemo)(()=>{let i=A();return(0,T.B)(i,e,(0,S.n)(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};E(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return E(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,a.useMemo)(()=>{let i=w();return(0,P.O)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(e,n,s,t),u=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&!(0,g.S)(t[s])&&(C(s)||!0===i&&L(s)||!e&&!L(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(e,"string"==typeof t,o),c=t!==a.Fragment?{...u,...l,ref:i}:{},{children:d}=e,p=(0,a.useMemo)(()=>(0,g.S)(d)?d.get():d,[d]);return(0,a.createElement)(t,{...c,children:p})}(t,i,function(t,e,i){let n=(0,a.useRef)(i);(0,a.useInsertionEffect)(()=>{n.current=i});let s=(0,a.useRef)(null);return(0,a.useCallback)(i=>{i&&t.onMount?.(i);let o=n.current;if("function"==typeof o)if(i){let t=o(i);"function"==typeof t&&(s.current=t)}else s.current?(s.current(),s.current=null):o(i);else o&&(o.current=i);e&&(i?e.mount(i):e.unmount())},[e])}(k,R.visualElement,n),k,D,e,o)]})}l.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let x=(0,a.forwardRef)(l);return x[H]=t,x}class X{constructor(t){this.isMounted=!1,this.node=t}update(){}}var q=i(923201),Y=i(750048);function _(t,e,i,n=0,s=1){let o=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),r=t.size,a=(r-1)*n;return"function"==typeof i?i(o,r):1===s?o*n:a-o*n}function Z(t,e,i={}){let n=(0,q.K)(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let o=n?()=>Promise.all((0,Y.$)(t,n,i)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:o=0,staggerChildren:r,staggerDirection:a}=s;return function(t,e,i=0,n=0,s=0,o=1,r){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(Z(l,e,{...r,delay:i+("function"==typeof n?0:n)+_(t.variantChildren,l,n,s,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,n,o,r,a,i)}:()=>Promise.resolve(),{when:a}=s;if(!a)return Promise.all([o(),r(i.delay)]);{let[t,e]="beforeChildren"===a?[o,r]:[r,o];return t().then(()=>e())}}var J=i(334762);let tt=J._.length;var te=i(952554);function ti(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}let tn=[...J.U].reverse(),ts=J.U.length;function to(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function tr(){return{animate:to(!0),whileInView:to(),whileHover:to(),whileTap:to(),whileDrag:to(),whileFocus:to(),exit:to()}}class ta extends X{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>
1(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>Z(t,e,i)));else if("string"==typeof e)n=Z(t,e,i);else{let s="function"==typeof e?(0,q.K)(t,e,i.custom):e;n=Promise.all((0,Y.$)(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=tr(),n=!0,s=!1,o=e=>(i,n)=>{let s=(0,q.K)(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function r(r){let{props:a}=t,l=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<tt;t++){let n=J._[t],s=e.props[n];((0,v.w)(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},h=[],u=new Set,c={},d=1/0;for(let e=0;e<ts;e++){var p,m;let f=tn[e],y=i[f],g=void 0!==a[f]?a[f]:l[f],x=(0,v.w)(g),P=f===r?y.isActive:null;!1===P&&(d=e);let w=g===l[f]&&g!==a[f]&&x;if(w&&(n||s)&&t.manuallyAnimateOnMount&&(w=!1),y.protectedKeys={...c},!y.isActive&&null===P||!g&&!y.prevProp||(0,b.N)(g)||"boolean"==typeof g)continue;if("exit"===f&&y.isActive&&!0!==P){y.prevResolvedValues&&(c={...c,...y.prevResolvedValues});continue}let E=(p=y.prevProp,"string"==typeof(m=g)?m!==p:!!Array.isArray(m)&&!ti(m,p)),T=E||f===r&&y.isActive&&!w&&x||e>d&&x,S=!1,A=Array.isArray(g)?g:[g],D=A.reduce(o(f),{});!1===P&&(D={});let{prevResolvedValues:L={}}=y,C={...L,...D},R=e=>{T=!0,u.has(e)&&(S=!0,u.delete(e)),y.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in C){let e=D[t],i=L[t];if(!c.hasOwnProperty(t))((0,te.p)(e)&&(0,te.p)(i)?ti(e,i):e===i)?void 0!==e&&u.has(t)?R(t):y.protectedKeys[t]=!0:null!=e?R(t):u.add(t)}y.prevProp=g,y.prevResolvedValues=D,y.isActive&&(c={...c,...D}),(n||s)&&t.blockInitialAnimation&&(T=!1);let k=w&&E,V=!k||S;T&&V&&h.push(...A.map(e=>{let i={type:f};if("string"==typeof e&&(n||s)&&!k&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=(0,q.K)(n,e);if(n.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=_(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof a.initial){let i=(0,q.K)(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),h.push({animation:e})}let f=!!h.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(f=!1),n=!1,s=!1,f?e(h):Promise.resolve()}return{animateChanges:r,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let s=r(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=tr(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,b.N)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let tl=0;class th extends X{constructor(){super(...arguments),this.id=tl++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t){let i=(0,q.K)(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...n}=i;for(let t in n)this.node.getValue(t)?.jump(n[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}var tu=i(108665),tc=i(316964);let td={x:!1,y:!1};function tp(t){return[t("x"),t("y")]}var tm=i(465441),tf=i(861419);function tv(t){return t.max-t.min}function ty(t,e,i,n=.5){t.origin=n,t.originPoint=(0,tf.k)(e.min,e.max,t.origin),t.scale=tv(i)/tv(e),t.translate=(0,tf.k)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function tg(t,e,i,n){ty(t.x,e.x,i.x,n?n.originX:void 0),ty(t.y,e.y,i.y,n?n.originY:void 0)}function tx(t,e,i,n=0){t.min=(n?(0,tf.k)(i.min,i.max,n):i.min)+e.min,t.max=t.min+tv(e)}function tP(t,e,i,n=0){let s=n?(0,tf.k)(i.min,i.max,n):i.min;t.min=e.min-s,t.max=t.min+tv(e)}function tw(t,e,i,n){tP(t.x,e.x,i.x,n?.x),tP(t.y,e.y,i.y,n?.y)}var tE=i(515184),tT=i(789696),tS=i(147887),tA=i(68234),tD=i(239476);let tL=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),tC=new Set(["INPUT","SELECT","TEXTAREA"]);function tR(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}var tk=i(761751),tb=i(623195);let tV=new WeakMap,tj=(t,e,i)=>(n,s)=>s&&s[0]?s[0][t+"Size"]:(0,tk.x)(n)&&"getBBox"in n?n.getBBox()[e]:n[i],tM=tj("inline","width","offsetWidth"),tB=tj("block","height","offsetHeight");function tU({target:t,borderBoxSize:e}){tV.get(t)?.forEach(i=>{i(t,{get width(){return tM(t,e)},get height(){return tB(t,e)}})})}function tO(t){t.forEach(tU)}let tI=new Set;function tF(t,e){return"function"==typeof t?(tI.add(t),s||(s=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};tI.forEach(e=>e(t))},window.addEventListener("resize",s)),()=>{tI.delete(t),tI.size||"function"!=typeof s||(window.removeEventListener("resize",s),s=void 0)}):function(t,e){n||"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(tO));let i=(0,tb.K)(t);return i.forEach(t=>{let i=tV.get(t);i||(i=new Set,tV.set(t,i)),i.add(e),n?.observe(t)}),()=>{i.forEach(t=>{let i=tV.get(t);i?.delete(e),i?.size||n?.unobserve(t)})}}(t,e)}var tW=i(871816);let tG=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tH(t){return{point:{x:t.pageX,y:t.pageY}}}function tN(t,e,i,n){return tR(t,e,t=>tG(t)&&i(t,tH(t)),n)}let tz=({current:t})=>t?t.ownerDocument.defaultView:null;var t$=i(625553),tK=i(879509);let tQ=(t,e)=>Math.abs(t-e),tX=new Set(["auto","scroll"]);class tq{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3,element:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=tY(this.lastRawMoveEventInfo,this.transformPagePoint));let t=tZ(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(tQ(t.x,e.x)**2+tQ(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!i)return;let{point:n}=t,{timestamp:s}=tE.uv;this.history.push({...n,timestamp:s});let{onStart:o,onMove:r}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=tY(e,this.transformPagePoint),tE.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=tZ("pointercancel"===t.type?this.lastMoveEventInfo:tY(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,o),n&&n(t,o)},!tG(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=o,this.contextWindow=n||window;let a=tY(tH(t),this.transformPagePoint),{point:l}=a,{timestamp:h}=tE.uv;this.history=[{...l,timestamp:h}];let{onSessionStart:u}=e;u&&u(t,tZ(a,this.history)),this.removeListeners=(0,t$.F)(tN(this.contextWindow,"pointermove",this.handlePointerMove),tN(this.contextWindow,"pointerup",this.handlePointerUp),tN(this.contextWindow,"pointercancel",this.handlePointerUp)),r&&this.startScrollTracking(r)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(tX.has(t.overflowX)||tX.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:n.x-e.x,y:n.y-e.y};(0!==s.x||0!==s.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,n),tE.Gt.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,tE.WG)(this.updatePoint)}}function tY(t,e){return e?{point:e(t.point)}:t}function t_(t,e){return{x:t.x-e.x,y:t.y-e.y}}function tZ({point:t},e){return{point:t,delta:t_(t,tJ(e)),offset:t_(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,s=tJ(t);for(;i>=0&&(n=t[i],!(s.timestamp-n.timestamp>(0,tK.f)(.1)));)i--;if(!n)return{x:0,y:0};n===t[0]&&t.length>2&&s.timestamp-n.timestamp>2*(0,tK.f)(e)&&(n=t[1]);let o=(0,tK.X)(s.timestamp-n.timestamp);if(0===o)return{x:0,y:0};let r={x:(s.x-n.x)/o,y:(s.y-n.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e,.1)}}function tJ(t){return t[t.length-1]}var t0=i(400608),t1=i(33892);function t6(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 t3(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function t2(t,e,i){return{min:t7(t,e),max:t7(t,i)}}function t7(t,e){return"number"==typeof t?t:t[e]||0}let t5=new WeakMap;class t4{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,tc.ge)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let s=t=>{e&&this.snapToCursor(tH(t).point),this.stopAnimation()},o=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(td[t])return null;else return td[t]=!0,()=>{td[t]=!1};return td.x||td.y?null:(td.x=td.y=!0,()=>{td.x=td.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tp(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tm.KN.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];
1n&&(e=tv(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&tE.Gt.update(()=>s(t,e),!1,!0),(0,tT.g)(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},r=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:o}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:r}=e;if(n&&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&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&tE.Gt.update(()=>o(t,e),!1,!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:h}=this.getProps();this.panSession=new tq(t,{onSessionStart:s,onStart:o,onMove:r,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:tz(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!n||!i)return;let{velocity:o}=n;this.startAnimation(o);let{onDragEnd:r}=this.getProps();r&&tE.Gt.postRender(()=>r(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!t9(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),o=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?(0,tf.k)(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?(0,tf.k)(i,t,n.max):Math.min(t,i)),t}(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&$(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:t6(t.x,i,s),y:t6(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:t2(t,"left","right"),y:t2(t,"top","bottom")}}(e),n!==this.constraints&&!$(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&tp(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}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!$(e))return!1;let n=e.current;(0,tW.V)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let o=(0,tS.L)(n,s.root,this.visualElement.getTransformPagePoint()),r=(t=s.layout.layoutBox,{x:t3(t.x,o.x),y:t3(t.y,o.y)});if(i){let t=i((0,tA.pA)(r));this.hasMutatedConstraints=!!t,t&&(r=(0,tA.FY)(t))}return r}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{};return Promise.all(tp(r=>{if(!t9(r,e,this.currentDirection))return;let l=a&&a[r]||{};(!0===o||o===r)&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[r]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(r,h)})).then(r)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,tT.g)(this.visualElement,t),i.start((0,tD.f)(t,i,0,e,this.visualElement,!1))}stopAnimation(){tp(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){tp(e=>{let{drag:i}=this.getProps();if(!t9(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:o}=n.layout.layoutBox[e],r=s.get()||0;s.set(t[e]-(0,tf.k)(i,o,.5)+r)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!$(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};tp(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=tv(t),s=tv(e);return s>n?i=(0,t0.q)(e.min,e.max-n,t.min):n>s&&(i=(0,t0.q)(t.min,t.max-s,e.min)),(0,t1.q)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),tp(e=>{if(!t9(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:o}=this.constraints[e];i.set((0,tf.k)(s,o,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;t5.set(this.visualElement,this);let e=this.visualElement.current,i=tN(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}
1=this.getProps(),s=t.target,o=s!==e&&(tC.has(s.tagName)||!0===s.isContentEditable);i&&n&&!o&&this.start(t)}),n=()=>{let{dragConstraints:i}=this.getProps();$(i)&&i.current&&(this.constraints=this.resolveRefConstraints(),t||(t=function(t,e,i){let n=tF(t,t8(i)),s=tF(e,t8(i));return()=>{n(),s()}}(e,i.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,o=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),tE.Gt.read(n);let r=tR(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(tp(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),i(),o(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:o=.35,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:o,dragMomentum:r}}}function t8(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function t9(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class et extends X{constructor(t){super(t),this.removeGroupControls=tu.l,this.removeListeners=tu.l,this.controls=new t4(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tu.l}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let ee=t=>(e,i)=>{t&&tE.Gt.update(()=>t(e,i),!1,!0)};class ei extends X{constructor(){super(...arguments),this.removePointerDownListener=tu.l}onPointerDown(t){this.session=new tq(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tz(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:ee(t),onStart:ee(e),onMove:ee(i),onEnd:(t,e)=>{delete this.session,n&&tE.Gt.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=tN(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let en={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var es=i(342316),eo=i(967061);let er=!1;class ea extends a.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),er&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),en.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:o}=i;return o&&(o.isPresent=s,t.layoutDependency!==e&&o.setOptions({...o.options,layoutDependency:e}),er=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||tE.Gt.postRender(()=>{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),es.k.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;er=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function el(t){let[e,i]=(0,eo.xQ)(),n=(0,a.useContext)(c.L);return(0,u.jsx)(ea,{...t,layoutGroup:n,switchLayoutGroup:(0,a.useContext)(z),isPresent:e,safeToRemove:i})}var eh=i(347072),eu=i(947710),ec=i(229180),ed=i(136664),ep=i(787474),em=i(621035),ef=i(793071),ev=i(937733),ey=i(391354),eg=i(427813),ex=i(147634);let eP=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],ew=eP.length,eE=t=>"string"==typeof t?parseFloat(t):t,eT=t=>"number"==typeof t||tm.px.test(t);function eS(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let eA=eL(0,.5,ex.yT),eD=eL(.5,.95,tu.l);function eL(t,e,i){return n=>n<t?0:n>e?1:i((0,t0.q)(t,e,n))}function eC(t,e){t.min=e.min,t.max=e.max}function eR(t,e){eC(t.x,e.x),eC(t.y,e.y)}function ek(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var eb=i(746981);function eV(t,e,i,n,s){return t-=e,t=(0,eb.hq)(t,1/i,n),void 0!==s&&(t=(0,eb.hq)(t,1/s,n)),t}function ej(t,e,[i,n,s],o,r){!function(t,e=0,i=1,n=.5,s,o=t,r=t){if(tm.KN.test(e)&&(e=parseFloat(e),e=(0,tf.k)(r.min,r.max,e/100)-r.min),"number"!=typeof e)return;let a=(0,tf.k)(o.min,o.max,n);t===o&&(a-=e),t.min=eV(t.min,e,i,a,s),t.max=eV(t.max,e,i,a,s)}(t,e[i],e[n],e[s],e.scale,o,r)}let eM=["x","scaleX","originX"],eB=["y","scaleY","originY"];function eU(t,e,i,n){ej(t.x,e,eM,i?i.x:void 0,n?n.x:void 0),ej(t.y,e,eB,i?i.y:void 0,n?n.y:void 0)}function eO(t){return 0===t.translate&&1===t.scale}function eI(t){return eO(t.x)&&eO(t.y)}function eF(t,e){return t.min===e.min&&t.max===e.max}function eW(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function eG(t,e){return eW(t.x,e.x)&&eW(t.y,e.y)}function eH(t){return tv(t.x)/tv(t.y)}function eN(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var ez=i(151442);class e${constructor(){this.members=[]}add(t){(0,ez.Kq)(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1!==n.isConnected||i.snapshot||((0,ez.Ai)(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if((0,ez.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){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:s}=t.options;(void 0===n||n!==s)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let eK=(t,e)=>t.depth-e.depth;class eQ{constructor(){this.children=[],this.isDirty=!1}add(t){(0,ez.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,ez.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(eK),this.isDirty=!1,this.children.forEach(t)}}var eX=i(664228);let eq={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},eY=["","X","Y","Z"],e_=0;function eZ(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function eJ({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=e_++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ev.Q.value&&(eq.nodes=eq.calculatedTargetDeltas=eq.calculatedProjections=0),this.nodes.forEach(e6),this.nodes.forEach(ie),this.nodes.forEach(ii),this.nodes.forEach(e3),ev.Q.addProjectionMetrics&&ev.Q.addProjectionMetrics(eq)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new eQ)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new eh.v),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=(0,tk.x)(e)&&!(0,ey.h)(e),this.instance=e;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,s=()=>this.root.updateBlockedByResize=!1;tE.Gt.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==n&&(n=t,this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=ep.k.now(),n=({timestamp:e})=>{let s=e-i;s>=250&&((0,tE.WG)(n),t(s-250))};return tE.Gt.setup(n,!0),()=>(0,tE.WG)(n)}(s,250),en.hasAnimatedSinceResize&&(en.hasAnimatedSinceResize=!1,this.nodes.forEach(it)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||s.getDefaultTransition()||ih,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!eG(this.targetLayout,n),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...(0,ed.r)(o,"layout"),onPlay:r,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||it(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,tE.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(is),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=(0,ec.P)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tE.Gt,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(e5),this.nodes.forEach(e7);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(e4);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(e8),this.nodes.forEach(e9),this.nodes.forEach(e0),this.nodes.forEach(e1)):this.nodes.forEach(e4),this.clearAllSnapshots();let t=ep.k.now();tE.uv.delta=(0,t1.q)(0,1e3/60,t-tE.uv.timestamp),tE.uv.timestamp=t,tE.uv.isProcessing=!0,tE.PP.update.process(tE.uv),tE.PP.preRender.process(tE.uv),tE.PP.render.process(tE.uv),tE.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,es.k.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(e2),this.sharedNodes.forEach(io)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tE.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tE.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||tv(this.snapshot.measuredBox.x)||tv(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=(0,tc.ge)()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(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(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!eI(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,o=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,eX.HD)(this.latestValues)||o)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),id((e=n).x),id(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,tc.ge)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(im))){let{scroll:t}=this.root;t&&((0,eb.Ql)(e.x,t.offset.x),(0,eb.Ql)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,tc.ge)();if(eR(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:o}=n;n!==this.root&&s&&o.layoutScroll&&(s.wasRoot&&eR(e,t),(0,eb.Ql)(e.x,s.offset.x),(0,eb.Ql)(e.y,s.offset.y))}return e}applyTransform(t,e=!1,i){let n=i||(0,tc.ge)();eR(n,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&((0,eb.Ql)(n.x,-i.scroll.offset.x),(0,eb.Ql)(n.y,-i.scroll.offset.y)),(0,eX.HD)(i.latestValues)&&(0,eb.Ww)(n,i.latestValues,i.layout?.layoutBox)}return(0,eX.HD)(this.latestValues)&&(0,eb.Ww)(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(t){let e=(0,tc.ge)();eR(e,t);for(let t=0;t<this.path.length;t++){let i,n=this.path[t];(0,eX.HD)(n.latestValues)&&(n.instance&&((0,eX.vk)(n.latestValues)&&n.updateSnapshot(),eR(i=(0,tc.ge)(),n.measurePageBox())),eU(e,n.latestValues,n.snapshot?.layoutBox,i))}return(0,eX.HD)(this.latestValues)&&eU(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!==tE.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:s}=this.options;if(!this.layout||!(n||s))return;this.resolvedRelativeTargetAt=tE.uv.timestamp;let o=this.getClosestProjectingParent();if(o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,tc.ge)(),this.targetWithTransforms=(0,tc.ge)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var r,a,l,h;this.forceRelativeParentToResolveTarget(),r=this.target,a=this.relativeTarget,l=this.relativeParent.target,h=this.options.layoutAnchor||void 0,tx(r.x,a.x,l.x,h?.x),tx(r.y,a.y,l.y,h?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):eR(this.target,this.layout.layoutBox),(0,eb.o4)(this.target,this.targetDelta)):eR(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0),ev.Q.value&&eq.calculatedTargetDeltas++}}getClosestProjectingParent(){if(!(!this.parent||(0,eX.vk)(this.parent.latestValues)||(0,eX.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)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,tc.ge)(),this.relativeTargetOrigin=(0,tc.ge)(),tw(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),eR(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tE.uv.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;eR(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,r=this.treeScale.y;(0,eb.OU)(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=(0,tc.ge)());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(ek(this.prevProjectionDelta.x,this.projectionDelta.x),ek(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),tg(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===o&&this.treeScale.y===r&&eN(this.projectionDelta.x,this.prevProjectionDelta.x)&&eN(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),ev.Q.value&&eq.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,tc.xU)(),this.projectionDelta=(0,tc.xU)(),this.projectionDeltaWithTransform=(0,tc.xU)()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,s=n?n.latestValues:{},o={...this.latestValues},r=(0,tc.xU)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=(0,tc.ge)(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(il));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(ir(r.x,t.x,n),ir(r.y,t.y,n),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,d,p,m,f,v;tw(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,v=n,ia(p.x,m.x,f.x,v),ia(p.y,m.y,f.y,v),i&&(h=this.relativeTarget,d=i,eF(h.x,d.x)&&eF(h.y,d.y))&&(this.isProjectionDirty=!1),i||(i=(0,tc.ge)()),eR(i,this.relativeTarget)}l&&(this.animationValues=o,function(t,e,i,n,s,o){s?(t.opacity=(0,tf.k)(0,i.opacity??1,eA(n)),t.opacityExit=(0,tf.k)(e.opacity??1,0,eD(n))):o&&(t.opacity=(0,tf.k)(e.opacity??1,i.opacity??1,n));for(let s=0;s<ew;s++){let o=eP[s],r=eS(e,o),a=eS(i,o);(void 0!==r||void 0!==a)&&(r||(r=0),a||(a=0),0===r||0===a||eT(r)===eT(a)?(t[o]=Math.max((0,tf.k)(eE(r),eE(a),n),0),(tm.KN.test(a)||tm.KN.test(r))&&(t[o]+="%")):t[o]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,tf.k)(e.rotate||0,i.rotate||0,n))}(o,s,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,tE.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tE.Gt.update(()=>{en.hasAnimatedSinceResize=!0,ef.q.layout++,this.motionValue||(this.motionValue=(0,eg.OQ)(0)),this.motionValue.jump(0,!1),this.currentAnimation=(0,eu.z)(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{ef.q.layout--},onComplete:()=>{ef.q.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&ip(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,tc.ge)();let e=tv(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=tv(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}
1eR(e,i),(0,eb.Ww)(e,s),tg(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new e$),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.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 n={};i.z&&eZ("z",t,n,this.animationValues);for(let e=0;e<eY.length;e++)eZ(`rotate${eY[e]}`,t,n,this.animationValues),eZ(`skew${eY[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=k(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=k(e?.pointerEvents)||""),this.hasProjected&&!(0,eX.HD)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let s=n.animationValues||n.latestValues;this.applyTransformsToTarget();let o=function(t,e,i){let n="",s=t.x.translate/e.x,o=t.y.translate/e.y,r=i?.z||0;if((s||o||r)&&(n=`translate3d(${s}px, ${o}px, ${r}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:s,rotateY:o,skewX:r,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotateX(${s}deg) `),o&&(n+=`rotateY(${o}deg) `),r&&(n+=`skewX(${r}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s);i&&(o=i(s,o)),t.transform=o;let{x:r,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*r.origin}% ${100*a.origin}% 0`,n.animationValues?t.opacity=n===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,em.H){if(void 0===s[e])continue;let{correct:i,applyTo:r,isCSSVariable:a}=em.H[e],l="none"===o?s[e]:i(s[e],n);if(r){let e=r.length;for(let i=0;i<e;i++)t[r[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?k(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(e7),this.root.sharedNodes.clear()}}}function e0(t){t.updateLayout()}function e1(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,o=e.source!==t.layout.source;if("size"===s)tp(t=>{let n=o?e.measuredBox[t]:e.layoutBox[t],s=tv(n);n.min=i[t].min,n.max=n.min+s});else if("x"===s||"y"===s){let t="x"===s?"y":"x";eC(o?e.measuredBox[t]:e.layoutBox[t],i[t])}else ip(s,e.layoutBox,i)&&tp(n=>{let s=o?e.measuredBox[n]:e.layoutBox[n],r=tv(i[n]);s.max=s.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+r)});let r=(0,tc.xU)();tg(r,i,e.layoutBox);let a=(0,tc.xU)();o?tg(a,t.applyTransform(n,!0),e.measuredBox):tg(a,i,e.layoutBox);let l=!eI(r),h=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:o}=n;
1if(s&&o){let r=t.options.layoutAnchor||void 0,a=(0,tc.ge)();tw(a,e.layoutBox,s.layoutBox,r);let l=(0,tc.ge)();tw(l,i,o.layoutBox,r),eG(a,l)||(h=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function e6(t){ev.Q.value&&eq.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function e3(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function e2(t){t.clearSnapshot()}function e7(t){t.clearMeasurements()}function e5(t){t.isLayoutDirty=!0,t.updateLayout()}function e4(t){t.isLayoutDirty=!1}function e8(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function e9(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function it(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ie(t){t.resolveTargetDelta()}function ii(t){t.calcProjection()}function is(t){t.resetSkewAndRotation()}function io(t){t.removeLeadSnapshot()}function ir(t,e,i){t.translate=(0,tf.k)(e.translate,0,i),t.scale=(0,tf.k)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function ia(t,e,i,n){t.min=(0,tf.k)(e.min,i.min,n),t.max=(0,tf.k)(e.max,i.max,n)}function il(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ih={duration:.45,ease:[.4,0,.1,1]},iu=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ic=iu("applewebkit/")&&!iu("chrome/")?Math.round:tu.l;function id(t){t.min=ic(t.min),t.max=ic(t.max)}function ip(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(eH(e)-eH(i)))}function im(t){return t!==t.root&&t.scroll?.wasRoot}let iv=eJ({attachResizeListener:(t,e)=>tR(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),iy={current:void 0},ig=eJ({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!iy.current){let t=new iv({});t.mount(window),t.setOptions({layoutScroll:!0}),iy.current=t}return iy.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function ix(t,e){let i=(0,tb.K)(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function iP(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&tE.Gt.postRender(()=>s(e,tH(e)))}class iw extends X{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,o]=ix(t,i);return n.forEach(t=>{let i,n=!1,o=!1,r=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},a=t=>{n=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),o&&(o=!1,r(t))},l=t=>{if("touch"!==t.pointerType){if(n){o=!0;return}r(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||td.x||td.y)return;o=!1;let r=e(t,n);"function"==typeof r&&(i=r,t.addEventListener("pointerleave",l,s))},s),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",a,s)},s)}),o}(t,(t,e)=>(iP(this.node,e,"Start"),t=>iP(this.node,t,"End"))))}unmount(){}}class iE extends X{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,t$.F)(tR(this.node.current,"focus",()=>this.onFocus()),tR(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var iT=i(887208);let iS=(t,e)=>!!e&&(t===e||iS(t,e.parentElement)),iA=new WeakSet;function iD(t){return e=>{"Enter"===e.key&&t(e)}}function iL(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function iC(t){return tG(t)&&!(td.x||td.y)}let iR=new WeakSet;function ik(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&tE.Gt.postRender(()=>s(e,tH(e)))}class ib extends X{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;
1this.unmount=function(t,e,i={}){let[n,s,o]=ix(t,i),r=t=>{let n=t.currentTarget;if(!iC(t)||iR.has(t))return;iA.add(n),i.stopPropagation&&iR.add(t);let o=e(n,t),r=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),iA.has(n)&&iA.delete(n),iC(t)&&"function"==typeof o&&o(t,{success:e})},a=t=>{r(t,n===window||n===document||i.useGlobalTarget||iS(n,t.target))},l=t=>{r(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",r,s),(0,iT.s)(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=iD(()=>{if(iA.has(i))return;iL(i,"down");let t=iD(()=>{iL(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>iL(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s)),tL.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),o}(t,(t,e)=>(ik(this.node,e,"Start"),(t,{success:e})=>ik(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}let iV=new WeakMap,ij=new WeakMap,iM=t=>{let e=iV.get(t.target);e&&e(t)},iB=t=>{t.forEach(iM)},iU={some:0,all:1};class iO extends X{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:s}=t,o={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:iU[n]},r=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,s&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),o=e?i:n;o&&o(t)};this.stopObserver=function(t,e,i){let n=function({root:t,...e}){let i=t||document;ij.has(i)||ij.set(i,{});let n=ij.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(iB,{root:t,...e})),n[s]}(e);return iV.set(t,i),n.observe(t),()=>{iV.delete(t),n.unobserve(t)}}(this.node.current,o,r)}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(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}let iI=function(t,e){if("undefined"==typeof Proxy)return Q;let i=new Map,n=(i,n)=>Q(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(s,o)=>"create"===o?n:(i.has(o)||i.set(o,Q(o,void 0,t,e)),i.get(o))})}({animation:{Feature:ta},exit:{Feature:th},inView:{Feature:iO},tap:{Feature:ib},focus:{Feature:iE},hover:{Feature:iw},pan:{Feature:ei},drag:{Feature:et,ProjectionNode:ig,MeasureLayout:el},layout:{ProjectionNode:ig,MeasureLayout:el}},(t,e)=>e.isSVG??h(t)?new o.l(e):new r.M(e,{allowProjection:t!==a.Fragment}))},805272:(t,e,i)=>{i.d(e,{M:()=>s});var n=i(665162);function s(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},877583:(t,e,i)=>{i.d(e,{Q:()=>n});let n=(0,i(665162).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},887208:(t,e,i)=>{i.d(e,{s:()=>s});var n=i(680393);function s(t){return(0,n.G)(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}},967061:(t,e,i)=>{i.d(e,{xQ:()=>o});var n=i(665162),s=i(228210);function o(t=!0){let e=(0,n.useContext)(s.t);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:r,register:a}=e,l=(0,n.useId)();(0,n.useEffect)(()=>{if(t)return a(l)},[t]);let h=(0,n.useCallback)(()=>t&&r&&r(l),[l,r,t]);return!i&&r?[!1,h]:[!0]}}}]);
2//# sourceMappingURL=73676-fbf8cfe4acf8bc9b.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.