1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7043],{26497:(t,e,n)=>{n.d(e,{N:()=>x});var i=n(95155),r=n(12115),o=n(60296),s=n(94416),l=n(86553),a=n(59686),u=n(81402),c=n(53127);function h(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class d extends r.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let t=e.offsetParent,n=(0,u.s)(t)&&t.offsetWidth||0,i=(0,u.s)(t)&&t.offsetHeight||0,r=this.props.sizeRef.current;r.height=e.offsetHeight||0,r.width=e.offsetWidth||0,r.top=e.offsetTop,r.left=e.offsetLeft,r.right=n-r.width-r.left,r.bottom=i-r.height-r.top}return null}componentDidUpdate(){}render(){return this.props.children}}function f(t){var e,n;let{children:o,isPresent:s,anchorX:l,anchorY:a,root:u,pop:f}=t,p=(0,r.useId)(),m=(0,r.useRef)(null),v=(0,r.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:g}=(0,r.useContext)(c.Q),y=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return r.useCallback(function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return t=>{let n=!1,i=e.map(e=>{let i=h(e,t);return n||"function"!=typeof i||(n=!0),i});if(n)return()=>{for(let t=0;t<i.length;t++){let n=i[t];"function"==typeof n?n():h(e[t],null)}}}}(...e),e)}(m,null!=(n=null==(e=o.props)?void 0:e.ref)?n:null==o?void 0:o.ref);return(0,r.useInsertionEffect)(()=>{let{width:t,height:e,top:n,left:i,right:r,bottom:o}=v.current;if(s||!1===f||!m.current||!t||!e)return;m.current.dataset.motionPopId=p;let c=document.createElement("style");g&&(c.nonce=g);let h=null!=u?u:document.head;return h.appendChild(c),c.sheet&&c.sheet.insertRule('\n [data-motion-pop-id="'.concat(p,'"] {\n position: absolute !important;\n width: ').concat(t,"px !important;\n height: ").concat(e,"px !important;\n ").concat("left"===l?"left: ".concat(i):"right: ".concat(r),"px !important;\n ").concat("bottom"===a?"bottom: ".concat(o):"top: ".concat(n),"px !important;\n }\n ")),()=>{h.contains(c)&&h.removeChild(c)}},[s]),(0,i.jsx)(d,{isPresent:s,childRef:m,sizeRef:v,pop:f,children:!1===f?o:r.cloneElement(o,{ref:y})})}let p=t=>{let{children:e,initial:n,isPresent:o,onExitComplete:l,custom:u,presenceAffectsLayout:c,mode:h,anchorX:d,anchorY:p,root:v}=t,g=(0,s.M)(m),y=(0,r.useId)(),x=!0,w=(0,r.useMemo)(()=>(x=!1,{id:y,initial:n,isPresent:o,custom:u,onExitComplete:t=>{for(let e of(g.set(t,!0),g.values()))if(!e)return;l&&l()},register:t=>(g.set(t,!1),()=>g.delete(t))}),[o,g,l]);return c&&x&&(w={...w}),(0,r.useMemo)(()=>{g.forEach((t,e)=>g.set(e,!1))},[o]),r.useEffect(()=>{o||g.size||!l||l()},[o]),e=(0,i.jsx)(f,{pop:"popLayout"===h,isPresent:o,anchorX:d,anchorY:p,root:v,children:e}),(0,i.jsx)(a.t.Provider,{value:w,children:e})};function m(){return new Map}var v=n(75601);let g=t=>t.key||"";function y(t){let e=[];return r.Children.forEach(t,t=>{(0,r.isValidElement)(t)&&e.push(t)}),e}let x=t=>{let{children:e,custom:n,initial:a=!0,onExitComplete:u,presenceAffectsLayout:c=!0,mode:h="sync",propagate:d=!1,anchorX:f="left",anchorY:m="top",root:x}=t,[w,E]=(0,v.xQ)(d),P=(0,r.useMemo)(()=>y(e),[e]),M=d&&!w?[]:P.map(g),S=(0,r.useRef)(!0),C=(0,r.useRef)(P),L=(0,s.M)(()=>new Map),b=(0,r.useRef)(new Set),[A,k]=(0,r.useState)(P),[W,T]=(0,r.useState)(P);(0,l.E)(()=>{S.current=!1,C.current=P;for(let t=0;t<W.length;t++){let e=g(W[t]);M.includes(e)?(L.delete(e),b.current.delete(e)):!0!==L.get(e)&&L.set(e,!1)}},[W,M.length,M.join("-")]);let D=[];if(P!==A){let t=[...P];for(let e=0;e<W.length;e++){let n=W[e],i=g(n);M.includes(i)||(t.splice(e,0,n),D.push(n))}return"wait"===h&&D.length&&(t=D),T(y(t)),k(P),null}let{forceRender:R}=(0,r.useContext)(o.L);return(0,i.jsx)(i.Fragment,{children:W.map(t=>{let e=g(t),r=(!d||!!w)&&(P===W||M.includes(e));return(0,i.jsx)(p,{isPresent:r,initial:(!S.current||!!a)&&void 0,custom:n,presenceAffectsLayout:c,mode:h,root:x,onExitComplete:r?void 0:()=>{if(b.current.has(e)||(b.current.add(e),!L.has(e)))return;L.set(e,!0);let t=!0;
1L.forEach(e=>{e||(t=!1)}),t&&(null==R||R(),T(C.current),d&&(null==E||E()),u&&u())},anchorX:f,anchorY:m,children:t},e)})})}},33577:(t,e,n)=>{n.d(e,{B:()=>i});let i="undefined"!=typeof window},36721:(t,e,n)=>{n.d(e,{L:()=>X});var i=n(22039),r=n(78041),o=n(12115),s=n(6500),l=n(68871),a=n(64995),u=n(73934),c=n(90236),h=n(91225),d=n(45242);let f=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),p={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function m(t,e,n,i){let r=n[e],{length:o,position:s}=p[e],l=r.current,a=n.time;r.current=t["scroll".concat(s)],r.scrollLength=t["scroll".concat(o)]-t["client".concat(o)],r.offset.length=0,r.offset[0]=0,r.offset[1]=r.scrollLength,r.progress=(0,h.q)(0,r.scrollLength,r.current);let u=i-a;r.velocity=u>50?0:(0,d.f)(r.current-l,u)}var v=n(16706),g=n(96827),y=n(48895),x=n(81402);let w={start:0,center:.5,end:1};function E(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=0;if(t in w&&(t=w[t]),"string"==typeof t){let e=parseFloat(t);t.endsWith("px")?i=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?i=e/100*document.documentElement.clientWidth:t.endsWith("vh")?i=e/100*document.documentElement.clientHeight:t=e}return"number"==typeof t&&(i=e*t),n+i}let P=[0,0],M={All:[[0,0],[1,1]]},S={x:0,y:0},C=new WeakMap,L=new WeakMap,b=new WeakMap,A=new WeakMap,k=new WeakMap,W=t=>t===document.scrollingElement?window:t;function T(t){let{container:e=document.scrollingElement,trackContentSize:n=!1,...i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return s.l;let r=b.get(e);r||(r=new Set,b.set(e,r));let o=function(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return{measure:e=>{!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=arguments.length>2?arguments[2]:void 0;if(n.x.targetOffset=0,n.y.targetOffset=0,e!==t){let i=e;for(;i&&i!==t;)n.x.targetOffset+=i.offsetLeft,n.y.targetOffset+=i.offsetTop,i=i.offsetParent}n.x.targetLength=e===t?e.scrollWidth:e.clientWidth,n.y.targetLength=e===t?e.scrollHeight:e.clientHeight,n.x.containerLength=t.clientWidth,n.y.containerLength=t.clientHeight}(t,i.target,n),m(t,"x",n,e),m(t,"y",n,e),n.time=e,(i.offset||i.target)&&function(t,e,n){let{offset:i=M.All}=n,{target:r=t,axis:o="y"}=n,s="y"===o?"height":"width",l=r!==t?function(t,e){let n={x:0,y:0},i=t;for(;i&&i!==e;)if((0,x.s)(i))n.x+=i.offsetLeft,n.y+=i.offsetTop,i=i.offsetParent;else if("svg"===i.tagName){let t=i.getBoundingClientRect(),e=(i=i.parentElement).getBoundingClientRect();n.x+=t.left-e.left,n.y+=t.top-e.top}else if(i instanceof SVGGraphicsElement){let{x:t,y:e}=i.getBBox();n.x+=t,n.y+=e;let r=null,o=i.parentNode;for(;!r;)"svg"===o.tagName&&(r=o),o=i.parentNode;i=r}else break;return n}(r,t):S,a=r===t?{width:t.scrollWidth,height:t.scrollHeight}:"getBBox"in r&&"svg"!==r.tagName?r.getBBox():{width:r.clientWidth,height:r.clientHeight},u={width:t.clientWidth,height:t.clientHeight};e[o].offset.length=0;let c=!e[o].interpolate,h=i.length;for(let t=0;t<h;t++){let n=function(t,e,n,i){let r=Array.isArray(t)?t:P,o=0;return"number"==typeof t?r=[t,t]:"string"==typeof t&&(r=(t=t.trim()).includes(" ")?t.split(" "):[t,w[t]?t:"0"]),(o=E(r[0],n,i))-E(r[1],e)}(i[t],u[s],a[s],l[o]);c||n===e[o].interpolatorOffsets[t]||(c=!0),e[o].offset[t]=n}c&&(e[o].interpolate=(0,v.G)(e[o].offset,(0,g.Z)(i),{clamp:!1}),e[o].interpolatorOffsets=[...e[o].offset]),e[o].progress=(0,y.q)(0,1,e[o].interpolate(e[o].current))}(t,n,i)},notify:()=>e(n)}}(e,t,{time:0,x:f(),y:f()},i);if(r.add(o),!C.has(e)){let t=()=>{for(let t of r)t.measure(u.uv.timestamp);u.Gt.preUpdate(n)},n=()=>{for(let t of r)t.notify()},i=()=>u.Gt.read(t);C.set(e,i);let o=W(e);window.addEventListener("resize",i,{passive:!0}),e!==document.documentElement&&L.set(e,(0,c.X)(e,i)),o.addEventListener("scroll",i,{passive:!0}),i()}if(n&&!k.has(e)){let t=C.get(e),n={width:e.scrollWidth,height:e.scrollHeight};A.set(e,n);let i=u.Gt.read(()=>{let i=e.scrollWidth,r=e.scrollHeight;(n.width!==i||n.height!==r)&&(t(),n.width=i,n.height=r)},!0);k.set(e,i)}let l=C.get(e);return u.Gt.read(l,!1,!0),()=>{(0,u.WG)(l);let t=b.get(e);if(!t||(t.delete(o),t.size))return;let n=C.get(e);if(C.delete(e),n){var i;W(e).removeEventListener("scroll",n),null==(i=L.get(e))||i(),window.removeEventListener("resize",n)}let r=k.get(e);r&&((0,u.WG)(r),k.delete(e)),A.delete(e)}}let D=new Map;function R(t){var e,n,i,r;let{source:o,container:s,...l}=t,{axis:u}=l;o&&(s=o);let c=null!=(e=D.get(s))?e:new Map;D.set(s,c);let h=null!=(n=l.target)?n:"self",d=null!=(i=c.get(h))?i:{},f=u+(null!=(r=l.offset)?r:[]).join(",");return d[f]||(d[f]=!l.target&&(0,a.J)()?new ScrollTimeline({source:s,axis:u}):function(t){let e={value:0},n=T(n=>{e.value=100*n[t.axis].progress},t);return{currentTime:e,cancel:n}}({container:s,...l})),d[f]}function I(t){var e,n;let{axis:i="y",container:r=document.scrollingElement,...o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!r)return s.l;let a={axis:i,container:r,...o};return"function"==typeof t?(e=t,n=a,2===e.length?T(t=>{e(t[n.axis].progress,t)}
1,n):(0,l.y)(e,R(n))):function(t,e){let n=R(e);return t.attachTimeline({timeline:e.target?void 0:n,observe:t=>(t.pause(),(0,l.y)(e=>{t.time=t.iterationDuration*e},n))})}(t,a)}var V=n(94416),O=n(86553);let j=()=>({scrollX:(0,i.OQ)(0),scrollY:(0,i.OQ)(0),scrollXProgress:(0,i.OQ)(0),scrollYProgress:(0,i.OQ)(0)}),G=t=>!!t&&!t.current;function X(){let{container:t,target:e,...n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=(0,V.M)(j);i.scrollXProgress.accelerate={factory:i=>I(i,{...n,axis:"x",container:(null==t?void 0:t.current)||void 0,target:(null==e?void 0:e.current)||void 0}),times:[0,1],keyframes:[0,1],ease:t=>t,duration:1},i.scrollYProgress.accelerate={factory:i=>I(i,{...n,axis:"y",container:(null==t?void 0:t.current)||void 0,target:(null==e?void 0:e.current)||void 0}),times:[0,1],keyframes:[0,1],ease:t=>t,duration:1};let s=(0,o.useRef)(null),l=(0,o.useRef)(!1),a=(0,o.useCallback)(()=>(s.current=I((t,e)=>{let{x:n,y:r}=e;i.scrollX.set(n.current),i.scrollXProgress.set(n.progress),i.scrollY.set(r.current),i.scrollYProgress.set(r.progress)},{...n,container:(null==t?void 0:t.current)||void 0,target:(null==e?void 0:e.current)||void 0}),()=>{var t;null==(t=s.current)||t.call(s)}),[t,e,JSON.stringify(n.offset)]);return(0,O.E)(()=>{if(l.current=!1,!(G(t)||G(e)))return a();l.current=!0},[a]),(0,o.useEffect)(()=>l.current?((0,r.V)(!G(t),"Container ref is defined but not hydrated","use-scroll-ref"),(0,r.V)(!G(e),"Target ref is defined but not hydrated","use-scroll-ref"),a()):void 0,[a]),i}},53127:(t,e,n)=>{n.d(e,{Q:()=>i});let i=(0,n(12115).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},59686:(t,e,n)=>{n.d(e,{t:()=>i});let i=(0,n(12115).createContext)(null)},60296:(t,e,n)=>{n.d(e,{L:()=>i});let i=(0,n(12115).createContext)({})},74570:(t,e,n)=>{n.d(e,{W:()=>s});var i=n(12115),r=n(38561);let o={some:0,all:1};function s(t){let{root:e,margin:n,amount:s,once:l=!1,initial:a=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},[u,c]=(0,i.useState)(a);return(0,i.useEffect)(()=>{if(!t.current||l&&u)return;let i={root:e&&e.current||void 0,margin:n,amount:s};return function(t,e){let{root:n,margin:i,amount:s="some"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=(0,r.K)(t),a=new WeakMap,u=new IntersectionObserver(t=>{t.forEach(t=>{let n=a.get(t.target);if(!!n!==t.isIntersecting)if(t.isIntersecting){let n=e(t.target,t);"function"==typeof n?a.set(t.target,n):u.unobserve(t.target)}else"function"==typeof n&&(n(t),a.delete(t.target))})},{root:n,rootMargin:i,threshold:"number"==typeof s?s:o[s]});return l.forEach(t=>u.observe(t)),()=>u.disconnect()}(t.current,()=>(c(!0),l?void 0:()=>c(!1)),i)},[e,t,n,l,s]),u}},75601:(t,e,n)=>{n.d(e,{xQ:()=>o});var i=n(12115),r=n(59686);function o(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,i.useContext)(r.t);if(null===e)return[!0,null];let{isPresent:n,onExitComplete:o,register:s}=e,l=(0,i.useId)();(0,i.useEffect)(()=>{if(t)return s(l)},[t]);let a=(0,i.useCallback)(()=>t&&o&&o(l),[l,o,t]);return!n&&o?[!1,a]:[!0]}},75936:(t,e,n)=>{n.d(e,{G:()=>function t(e,n,o,s){if("function"==typeof e){l.bt.current=[],e();let t=c(l.bt.current,e);return l.bt.current=void 0,t}if(void 0!==o&&!Array.isArray(o)&&"function"!=typeof n){var a=e,u=n,d=o,f=s;let i=(0,r.M)(()=>Object.keys(d)),l=(0,r.M)(()=>({}));for(let e of i)l[e]=t(a,u,d[e],f);return l}let p="function"==typeof n?n:(0,i.p)(n,o,s),m=Array.isArray(e)?h(e,p):h([e],t=>{let[e]=t;return p(e)}),v=Array.isArray(e)?void 0:e.accelerate;return v&&!v.isTransformed&&"function"!=typeof n&&Array.isArray(o)&&(null==s?void 0:s.clamp)!==!1&&(m.accelerate={...v,times:n,keyframes:o,isTransformed:!0,...(null==s?void 0:s.ease)?{ease:s.ease}:{}}),m}});var i=n(30651),r=n(94416),o=n(73934),s=n(86553),l=n(22039),a=n(12115),u=n(53127);function c(t,e){let n=function(t){let e=(0,r.M)(()=>(0,l.OQ)(t)),{isStatic:n}=(0,a.useContext)(u.Q);if(n){let[,n]=(0,a.useState)(t);(0,a.useEffect)(()=>e.on("change",n),[])}return e}(e()),i=()=>n.set(e());return i(),(0,s.E)(()=>{let e=()=>o.Gt.preRender(i,!1,!0),n=t.map(t=>t.on("change",e));return()=>
1{n.forEach(t=>t()),(0,o.WG)(i)}}),n}function h(t,e){let n=(0,r.M)(()=>[]);return c(t,()=>{n.length=0;let i=t.length;for(let e=0;e<i;e++)n[e]=t[e].get();return e(n)})}},86553:(t,e,n)=>{n.d(e,{E:()=>r});var i=n(12115);let r=n(33577).B?i.useLayoutEffect:i.useEffect},91009:(t,e,n)=>{n.d(e,{P:()=>t7});var i=n(34576),r=n(3729),o=n(12115);let s=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function l(t){if("string"!=typeof t||t.includes("-"));else if(s.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var a=n(95155),u=n(60296);let c=(0,o.createContext)({strict:!1});var h=n(53127);let d=(0,o.createContext)({});var f=n(28033),p=n(19461);function m(t){return Array.isArray(t)?t.join(" "):t}var v=n(33182),g=n(93709),y=n(43364);let x=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function w(t,e,n){for(let i in e)(0,v.S)(e[i])||(0,g.zK)(i,n)||(t[i]=e[i])}var E=n(31439),P=n(36795);let M=()=>({...x(),attrs:{}}),S=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function C(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||S.has(t)}let L=t=>!C(t);try{!function(t){"function"==typeof t&&(L=e=>e.startsWith("on")?!C(e):t(e))}(require("@emotion/is-prop-valid").default)}catch(t){}var b=n(76066),A=n(7170),k=n(36874),W=n(10883),T=n(59686),D=n(94416);let R=t=>(e,n)=>{let i=(0,o.useContext)(d),r=(0,o.useContext)(T.t),s=()=>(function(t,e,n,i){let{scrapeMotionValuesFromProps:r,createRenderState:o}=t;return{latestValues:function(t,e,n,i){let r={},o=i(t,{});for(let t in o)r[t]=(0,A.u)(o[t]);let{initial:s,animate:l}=t,a=(0,f.e)(t),u=(0,f.O)(t);e&&u&&!a&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===l&&(l=e.animate));let c=!!n&&!1===n.initial,h=(c=c||!1===s)?l:s;if(h&&"boolean"!=typeof h&&!(0,k.N)(h)){let e=Array.isArray(h)?h:[h];for(let n=0;n<e.length;n++){let i=(0,W.a)(t,e[n]);if(i){let{transitionEnd:t,transition:e,...n}=i;for(let t in n){let e=n[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(e,n,i,r),renderState:o()}})(t,e,i,r);return n?s():(0,D.M)(s)},I=R({scrapeMotionValuesFromProps:b.x,createRenderState:x}),V=R({scrapeMotionValuesFromProps:n(35043).x,createRenderState:M});var O=n(33577),j=n(80567);let G={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"]},X=!1;function H(){return!function(){if(X)return;let t={};for(let e in G)t[e]={isEnabled:t=>G[e].some(e=>!!t[e])};(0,j.lr)(t),X=!0}(),(0,j.vK)()}let B=Symbol.for("motionComponentSymbol");var F=n(99256);let N=(0,o.createContext)({});function U(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var Q=n(86553);function Y(t){var e,n;let{forwardMotionProps:i=!1,type:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0,g=arguments.length>3?arguments[3]:void 0;s&&function(t){let e=H();for(let n in t)e[n]={...e[n],...t[n]};(0,j.lr)(e)}(s);let S=r?"svg"===r:l(t),b=S?V:I;function A(e,n){let r,s={...(0,o.useContext)(h.Q),...e,layoutId:function(t){let{layoutId:e}
1=t,n=(0,o.useContext)(u.L).id;return n&&void 0!==e?n+"-"+e:e}(e)},{isStatic:A}=s,k=function(t){let{initial:e,animate:n}=function(t,e){if((0,f.e)(t)){let{initial:e,animate:n}=t;return{initial:!1===e||(0,p.w)(e)?e:void 0,animate:(0,p.w)(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,o.useContext)(d));return(0,o.useMemo)(()=>({initial:e,animate:n}),[m(e),m(n)])}(e),W=b(e,A);if(!A&&O.B){(0,o.useContext)(c).strict;let e=function(t){let{drag:e,layout:n}=H();if(!e&&!n)return{};let i={...e,...n};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==n?void 0:n.isEnabled(t))?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(s);r=e.MeasureLayout,k.visualElement=function(t,e,n,i,r,s){var l,a,u,f;let{visualElement:p}=(0,o.useContext)(d),m=(0,o.useContext)(c),v=(0,o.useContext)(T.t),g=(0,o.useContext)(h.Q),y=g.reducedMotion,x=g.skipAnimations,w=(0,o.useRef)(null),E=(0,o.useRef)(!1);i=i||m.renderer,!w.current&&i&&(w.current=i(t,{visualState:e,parent:p,props:n,presenceContext:v,blockInitialAnimation:!!v&&!1===v.initial,reducedMotionConfig:y,skipAnimations:x,isSVG:s}),E.current&&w.current&&(w.current.manuallyAnimateOnMount=!0));let P=w.current,M=(0,o.useContext)(N);P&&!P.projection&&r&&("html"===P.type||"svg"===P.type)&&function(t,e,n,i){let{layoutId:r,layout:o,drag:s,dragConstraints:l,layoutScroll:a,layoutRoot:u,layoutCrossfade:c}=e;t.projection=new n(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:r,layout:o,alwaysMeasureLayout:!!s||l&&U(l),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,crossfade:c,layoutScroll:a,layoutRoot:u})}(w.current,n,r,M);let S=(0,o.useRef)(!1);(0,o.useInsertionEffect)(()=>{P&&S.current&&P.update(n,v)});let C=n[F.n],L=(0,o.useRef)(!!C&&!(null==(l=(a=window).MotionHandoffIsComplete)?void 0:l.call(a,C))&&(null==(u=(f=window).MotionHasOptimisedAnimation)?void 0:u.call(f,C)));return(0,Q.E)(()=>{E.current=!0,P&&(S.current=!0,window.MotionIsMounted=!0,P.updateFeatures(),P.scheduleRenderMicrotask(),L.current&&P.animationState&&P.animationState.animateChanges())}),(0,o.useEffect)(()=>{P&&(!L.current&&P.animationState&&P.animationState.animateChanges(),L.current&&(queueMicrotask(()=>{var t,e;null==(t=(e=window).MotionHandoffMarkAsComplete)||t.call(e,C)}),L.current=!1),P.enteringChildren=void 0)}),P}(t,W,s,g,e.ProjectionNode,S)}return(0,a.jsxs)(d.Provider,{value:k,children:[r&&k.visualElement?(0,a.jsx)(r,{visualElement:k.visualElement,...s}):null,function(t,e,n,i,r){let{latestValues:s}=i,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],u=arguments.length>6?arguments[6]:void 0,c=((null!=u?u:l(t))?function(t,e,n,i){let r=(0,o.useMemo)(()=>{let n=M();return(0,E.B)(n,e,(0,P.n)(i),t.transformTemplate,t.style),{...n.attrs,style:{...n.style}}},[e]);if(t.style){let e={};w(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let n={},i=function(t,e){let n=t.style||{},i={};return w(i,n,t),Object.assign(i,function(t,e){let{transformTemplate:n}=t;return(0,o.useMemo)(()=>{let t=x();return(0,y.O)(t,e,n),Object.assign({},t.vars,t.style)},[e])}(t,e)),i}(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n})(e,s,r,t),h=function(t,e,n){let i={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(L(r)||!0===n&&C(r)||!e&&!C(r)||t.draggable&&r.startsWith("onDrag"))&&(i[r]=t[r]);return i}(e,"string"==typeof t,a),d=t!==o.Fragment?{...h,...c,ref:n}:{},{children:f}=e,p=(0,o.useMemo)(()=>(0,v.S)(f)?f.get():f,[f]);return(0,o.createElement)(t,{...d,children:p})}(t,e,function(t,e,n){let i=(0,o.useRef)(n);(0,o.useInsertionEffect)(()=>{i.current=n});let r=(0,o.useRef)(null);return(0,o.useCallback)(n=>{if(n){var o;null==(o=t.onMount)||o.call(t,n)}e&&(n?e.mount(n):e.unmount());let s=i.current;if("function"==typeof s)if(n){let t=s(n);"function"==typeof t&&(r.current=t)}else r.current?(r.current(),r.current=null):s(n);else s&&(s.current=n)},[e])}(W,k.visualElement,n),W,A,i,S)]})}A.displayName="motion.".concat("string"==typeof t?t:"create(".concat(null!=(n=null!=(e=t.displayName)?e:t.name)?n:"",")"));let k=(0,o.forwardRef)(A);return k[B]=t,k}var q=n(94322),z=n(10969);class _ extends q.X{updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,k.N)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}constructor(t){super(t),t.animationState||(t.animationState=(0,z.L)(t))}}let K=0;
1class J extends q.X{update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;let i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}constructor(){super(...arguments),this.id=K++}}var Z=n(6500),$=n(94936),tt=n(60450),te=n(92419),tn=n(46972),ti=n(73934),tr=n(23781),to=n(68745),ts=n(33152),tl=n(19159),ta=n(39361),tu=n(51945),tc=n(32494),th=n(39622),td=n(90236),tf=n(78041),tp=n(55141);function tm(t){return{point:{x:t.pageX,y:t.pageY}}}function tv(t,e,n,i){return(0,tc.k)(t,e,t=>(0,tp.M)(t)&&n(t,tm(t)),i)}let tg=t=>{let{current:e}=t;return e?e.ownerDocument.defaultView:null};var ty=n(23656),tx=n(27290);let tw=(t,e)=>Math.abs(t-e),tE=new Set(["auto","scroll"]);class tP{startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(tE.has(t.overflowX)||tE.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,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),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 n=t===window,i=n?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},r={x:i.x-e.x,y:i.y-e.y};(0!==r.x||0!==r.y)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(t,i),ti.Gt.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,ti.WG)(this.updatePoint)}constructor(t,e,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:r=!1,distanceThreshold:o=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=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;let t=tC(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){return Math.sqrt(tw(t.x,e.x)**2+tw(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!n)return;let{point:i}=t,{timestamp:r}=ti.uv;this.history.push({...i,timestamp:r});let{onStart:o,onMove:s}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=tM(e,this.transformPagePoint),ti.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:n,onSessionEnd:i,resumeAnimation:r}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=tC("pointercancel"===t.type?this.lastMoveEventInfo:tM(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!(0,tp.M)(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=i||window;let l=tM(tm(t),this.transformPagePoint),{point:a}=l,{timestamp:u}=ti.uv;this.history=[{...a,timestamp:u}];let{onSessionStart:c}=e;c&&c(t,tC(l,this.history)),this.removeListeners=(0,ty.F)(tv(this.contextWindow,"pointermove",this.handlePointerMove),tv(this.contextWindow,"pointerup",this.handlePointerUp),tv(this.contextWindow,"pointercancel",this.handlePointerUp)),s&&this.startScrollTracking(s)}}function tM(t,e){return e?{point:e(t.point)}:t}function tS(t,e){return{x:t.x-e.x,y:t.y-e.y}}function tC(t,e){let{point:n}=t;return{point:n,delta:tS(n,tL(e)),offset:tS(n,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null,r=tL(t);for(;n>=0&&(i=t[n],!(r.timestamp-i.timestamp>(0,tx.f)(.1)));)n--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&r.timestamp-i.timestamp>2*(0,tx.f)(e)&&(i=t[1]);let o=(0,tx.X)(r.timestamp-i.timestamp);if(0===o)return{x:0,y:0};let s={x:(r.x-i.x)/o,y:(r.y-i.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e,.1)}}function tL(t){return t[t.length-1]}var tb=n(91225),tA=n(48895);function tk(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function tW(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function tT(t,e,n){return{min:tD(t,e),max:tD(t,n)}}function tD(t,e){return"number"==typeof t?t:t[e]||0}let tR=new WeakMap;class tI{start(t){let{snapToCursor:e=!1,distanceThreshold:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let r=t=>{e&&this.snapToCursor(tm(t).point),this.stopAnimation()},o=(t,e)=>{let{drag:n,dragPropagation:i,onDragStart:r}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,$.W)(n),!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),(0,tt.X)(t=>{let e=this.getAxisMotionValue(t).get()||0;if(te.KN.test(e)){let{projection:n}=this.visualElement;if(n&&n.layout){let i=n.layout.layoutBox[t];i&&(e=(0,tn.CQ)(i)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&ti.Gt.update(()=>r(t,e),!1,!0),(0,tr.g)(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},s=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:n,dragDirectionLock:i,onDirectionLock:r,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:s}=e;if(i&&null===this.currentDirection){this.currentDirection=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}(s),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),o&&ti.Gt.update(()=>o(t,e),!1,!0)},l=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},a=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();
1this.panSession=new tP(t,{onSessionStart:r,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:n,contextWindow:tg(this.visualElement),element:this.visualElement.current})}stop(t,e){let n=t||this.latestPointerEvent,i=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!i||!n)return;let{velocity:o}=i;this.startAnimation(o);let{onDragEnd:s}=this.getProps();s&&ti.Gt.postRender(()=>s(n,i))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&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,n){let{drag:i}=this.getProps();if(!n||!tO(t,i,this.currentDirection))return;let r=this.getAxisMotionValue(t),o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,e,n){let{min:i,max:r}=e;return void 0!==i&&t<i?t=n?(0,ta.k)(i,t,n.min):Math.max(t,i):void 0!==r&&t>r&&(t=n?(0,ta.k)(r,t,n.max):Math.min(t,r)),t}(o,this.constraints[t],this.elastic[t])),r.set(o)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,r=this.constraints;e&&U(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=function(t,e){let{top:n,left:i,bottom:r,right:o}=e;return{x:tk(t.x,i,o),y:tk(t.y,n,r)}}(i.layoutBox,e):this.constraints=!1,this.elastic=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.35;return!1===t?t=0:!0===t&&(t=.35),{x:tT(t,"left","right"),y:tT(t,"top","bottom")}}(n),r!==this.constraints&&!U(e)&&i&&this.constraints&&!this.hasMutatedConstraints&&(0,tt.X)(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!U(e))return!1;let i=e.current;(0,tf.V)(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let o=(0,to.L)(i,r.root,this.visualElement.getTransformPagePoint()),s=(t=r.layout.layoutBox,{x:tW(t.x,o.x),y:tW(t.y,o.y)});if(n){let t=n((0,ts.pA)(s));this.hasMutatedConstraints=!!t,t&&(s=(0,ts.FY)(t))}return s}startAnimation(t){let{drag:e,dragMomentum:n,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{};return Promise.all((0,tt.X)(s=>{if(!tO(s,e,this.currentDirection))return;let a=l&&l[s]||{};o&&(a={min:0,max:0});let u={type:"inertia",velocity:n?t[s]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...a};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(t,e){let n=this.getAxisMotionValue(t);return(0,tr.g)(this.visualElement,t),n.start((0,tl.f)(t,n,0,e,this.visualElement,!1))}stopAnimation(){(0,tt.X)(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e="_drag".concat(t.toUpperCase()),n=this.visualElement.getProps();return n[e]||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){(0,tt.X)(e=>{let{drag:n}=this.getProps();if(!tO(e,n,this.currentDirection))return;let{projection:i}=this.visualElement,r=this.getAxisMotionValue(e);if(i&&i.layout){let{min:n,max:o}=i.layout.layoutBox[e],s=r.get()||0;r.set(t[e]-(0,ta.k)(n,o,.5)+s)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!U(e)||!n||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};(0,tt.X)(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let n=e.get();i[t]=function(t,e){let n=.5,i=(0,tn.CQ)(t),r=(0,tn.CQ)(e);return r>i?n=(0,tb.q)(e.min,e.max-i,t.min):i>r&&(n=(0,tb.q)(t.min,t.max-r,e.min)),(0,tA.q)(0,1,n)}({min:n,max:n},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),(0,tt.X)(e=>{if(!tO(e,t,null))return;let n=this.getAxisMotionValue(e),{min:r,max:o}=this.constraints[e];n.set((0,ta.k)(r,o,i[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;tR.set(this.visualElement,this);let e=this.visualElement.current,n=tv(e,"pointerdown",t=>{let{drag:n,dragListener:i=!0}
1=this.getProps(),r=t.target,o=r!==e&&(0,tu.a)(r);n&&i&&!o&&this.start(t)}),i=()=>{let{dragConstraints:n}=this.getProps();U(n)&&n.current&&(this.constraints=this.resolveRefConstraints(),t||(t=function(t,e,n){let i=(0,td.X)(t,tV(n)),r=(0,td.X)(e,tV(n));return()=>{i(),r()}}(e,n.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),ti.Gt.read(i);let s=(0,tc.k)(window,"resize",()=>this.scalePositionWithinConstraints()),l=r.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:n}=t;this.isDragging&&n&&((0,tt.X)(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),l&&l(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=.35,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:s}}constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,th.ge)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}}function tV(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function tO(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}class tj extends q.X{mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Z.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()}constructor(t){super(t),this.removeGroupControls=Z.l,this.removeListeners=Z.l,this.controls=new tI(t)}}let tG=t=>(e,n)=>{t&&ti.Gt.update(()=>t(e,n),!1,!0)};class tX extends q.X{onPointerDown(t){this.session=new tP(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tg(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:tG(t),onStart:tG(e),onMove:tG(n),onEnd:(t,e)=>{delete this.session,i&&ti.Gt.postRender(()=>i(t,e))}}}mount(){this.removePointerDownListener=tv(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}constructor(){super(...arguments),this.removePointerDownListener=Z.l}}var tH=n(58625),tB=n(38358),tF=n(75601);let tN=!1;class tU extends o.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:r}=t;r&&(e.group&&e.group.add(r),n&&n.register&&i&&n.register(r),tN&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),tH.w.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:n,drag:i,isPresent:r}=this.props,{projection:o}=n;return o&&(o.isPresent=r,t.layoutDependency!==e&&o.setOptions({...o.options,layoutDependency:e}),tN=!0,i||t.layoutDependency!==e||void 0===e||t.isPresent!==r?o.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?o.promote():o.relegate()||ti.Gt.postRender(()=>{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tB.k.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;tN=!0,i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function tQ(t){let[e,n]=(0,tF.xQ)(),i=(0,o.useContext)(u.L);return(0,a.jsx)(tU,{...t,layoutGroup:i,switchLayoutGroup:(0,o.useContext)(N),isPresent:e,safeToRemove:n})}var tY=n(63566);let tq={pan:{Feature:tX},drag:{Feature:tj,ProjectionNode:tY.P,MeasureLayout:tQ}};var tz=n(40130);function t_(t,e,n){let{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);let r=i["onHover"+n];r&&ti.Gt.postRender(()=>r(e,tm(e)))}class tK extends q.X{mount(){let{current:t}=this.node;t&&(this.unmount=(0,tz.P)(t,(t,e)=>(t_(this.node,e,"Start"),t=>t_(this.node,t,"End"))))}unmount(){}}class tJ extends q.X{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,ty.F)((0,tc.k)(this.node.current,"focus",()=>this.onFocus()),(0,tc.k)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}constructor(){super(...arguments),this.isActive=!1}}var tZ=n(38092);function t$(t,e,n){let{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);let r=i["onTap"+("End"===n?"":n)];r&&ti.Gt.postRender(()=>r(e,tm(e)))}class t0 extends q.X{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:n}=this.node.props;this.unmount=(0,tZ.c)(t,(t,e)=>(t$(this.node,e,"Start"),(t,e)=>{let{success:n}=e;return t$(this.node,t,n?"End":"Cancel")}),{useGlobalTarget:e,stopPropagation:(null==n?void 0:n.tap)===!1})}unmount(){}}let t1=new WeakMap,t5=new WeakMap,t2=t=>{let e=t1.get(t.target);e&&e(t)}
1,t3=t=>{t.forEach(t2)},t6={some:0,all:1};class t9 extends q.X{startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:r}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:t6[i]},s=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=e?n:i;o&&o(t)};var l=this.node.current;let a=function(t){let{root:e,...n}=t,i=e||document;t5.has(i)||t5.set(i,{});let r=t5.get(i),o=JSON.stringify(n);return r[o]||(r[o]=new IntersectionObserver(t3,{root:e,...n})),r[o]}(o);return t1.set(l,s),a.observe(l),()=>{t1.delete(l),a.unobserve(l)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function(t){let{viewport:e={}}=t,{viewport:n={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=>e[t]!==n[t]}(t,e))&&this.startObserver()}unmount(){}constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}}let t4={layout:{ProjectionNode:tY.P,MeasureLayout:tQ}},t7=function(t,e){if("undefined"==typeof Proxy)return Y;let n=new Map,i=(n,i)=>Y(n,i,t,e);return new Proxy((t,e)=>i(t,e),{get:(r,o)=>"create"===o?i:(n.has(o)||n.set(o,Y(o,void 0,t,e)),n.get(o))})}({animation:{Feature:_},exit:{Feature:J},inView:{Feature:t9},tap:{Feature:t0},focus:{Feature:tJ},hover:{Feature:tK},...tq,...t4},(t,e)=>{var n;return(null!=(n=e.isSVG)?n:l(t))?new i.l(e):new r.M(e,{allowProjection:t!==o.Fragment})})},94416:(t,e,n)=>{n.d(e,{M:()=>r});var i=n(12115);function r(t){let e=(0,i.useRef)(null);return null===e.current&&(e.current=t()),e.current}}}]);
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.