1import{c as Rs}from"./index-DVc4uV3G.js";import{j as D}from"./jsx-runtime-u17CrQMm.js";import{w as fn,i as lr,f as gt,j as ur,F as cr}from"./chart-DZXaJ9ok.js";import{a as T}from"./chunk-QUQL4437-cNo67UYF.js";import{u as hr}from"./index-6zhZKKSa.js";import{g as fr,u as dr}from"./rich-text-renderer-D1G7wVD8.js";import{L as mr}from"./locale-link-V13v-vsx.js";import{A as pr}from"./arrow-up-right-CCIApVGZ.js";import{b as gr,a as yr}from"./constant-Cd1Rmjtd.js";const vr=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],uc=Rs("chevron-left",vr);const xr=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],cc=Rs("chevron-right",xr),Es=T.createContext({});function Tr(t){const e=T.useRef(null);return e.current===null&&(e.current=t()),e.current}const Le=typeof window<"u",Pr=Le?T.useLayoutEffect:T.useEffect,Fe=T.createContext(null),Ls=T.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Sr(t=!0){const e=T.useContext(Fe);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=T.useId();T.useEffect(()=>{if(t)return i(o)},[t]);const r=T.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}function ke(t,e){t.indexOf(e)===-1&&t.push(e)}function Be(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const O=t=>t;let hc=O,Fs=O;const br={useManualTiming:!1};function je(t){let e;return()=>(e===void 0&&(e=t()),e)}const ht=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class Ie{constructor(){this.subscriptions=[]}add(e){return ke(this.subscriptions,e),()=>Be(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const z=t=>t*1e3,H=t=>t/1e3;function ks(t,e){return e?t*(1e3/e):0}const wr=je(()=>window.ScrollTimeline!==void 0);class Ar{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;s<this.animations.length;s++)this.animations[s][e]=n}attachTimeline(e,n){const s=this.animations.map(i=>{if(wr()&&i.attachTimeline)return i.attachTimeline(e);if(typeof n=="function")return n(i)});return()=>{s.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Vr extends Ar{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function Oe(t,e){return t?t[e]||t.default||t:void 0}const de=2e4;function Bs(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<de;)e+=n,s=t.next(e);return e>=de?1/0:e}function Ne(t){return typeof t=="function"}function dn(t,e){t.timeline=e,t.onfinish=null}const Ue=t=>Array.isArray(t)&&typeof t[0]=="number",Cr={linearEasing:void 0};function Mr(t,e){const n=je(t);return()=>{var s;return(s=Cr[e])!==null&&s!==void 0?s:n()}}const _t=Mr(()=>{try{document.createElement("div").animate({opacity:0}
vendor: 1,149 bytes, line 1
1,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),js=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)s+=t(ht(0,i-1,o))+", ";return`linear(${s.substring(0,s.length-2)})`};function Is(t){return!!(typeof t=="function"&&_t()||!t||typeof t=="string"&&(t in me||_t())||Ue(t)||Array.isArray(t)&&t.every(Is))}const vt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,me={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:vt([0,.65,.55,1]),circOut:vt([.55,0,1,.45]),backIn:vt([.31,.01,.66,-.59]),backOut:vt([.33,1.53,.69,.99])};function Os(t,e){if(t)return typeof t=="function"&&_t()?js(t,e):Ue(t)?vt(t):Array.isArray(t)?t.map(n=>Os(n,e)||me.easeOut):me[t]}const Bt=["read","resolveKeyframes","update","preRender","render","postRender"];function Dr(t,e){let n=new Set,s=new Set,i=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){r.has(c)&&(u.schedule(c),t()),c(a)}const u={schedule:(c,h=!1,f=!1)=>{const m=f&&i?n:s;return h&&r.add(c),m.has(c)||m.add(c),c},cancel:c=>{s.delete(c),r.delete(c)},process:c=>{if(a=c,i){o=!0;return}
vendor: 20,543 bytes, line 1
1i=!0,[n,s]=[s,n],n.forEach(l),n.clear(),i=!1,o&&(o=!1,u.process(c))}};return u}const Rr=40;function Ns(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=Bt.reduce((g,v)=>(g[v]=Dr(o),g),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:f}=r,d=()=>{const g=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(g-i.timestamp,Rr),1),i.timestamp=g,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),h.process(i),f.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(d))},m=()=>{n=!0,s=!0,i.isProcessing||t(d)};return{schedule:Bt.reduce((g,v)=>{const x=r[v];return g[v]=(w,P=!1,A=!1)=>(n||m(),x.schedule(w,P,A)),g},{}),cancel:g=>{for(let v=0;v<Bt.length;v++)r[Bt[v]].cancel(g)},state:i,steps:r}}const{schedule:V,cancel:q,state:L,steps:te}=Ns(typeof requestAnimationFrame<"u"?requestAnimationFrame:O,!0),{schedule:_e}=Ns(queueMicrotask,!1);let Ot;function Er(){Ot=void 0}const W={now:()=>(Ot===void 0&&W.set(L.isProcessing||br.useManualTiming?L.timestamp:performance.now()),Ot),set:t=>{Ot=t,queueMicrotask(Er)}},K={x:!1,y:!1};function Us(){return K.x||K.y}function Lr(t){return t==="x"||t==="y"?K[t]?null:(K[t]=!0,()=>{K[t]=!1}):K.x||K.y?null:(K.x=K.y=!0,()=>{K.x=K.y=!1})}function Fr(t,e,n){var s;if(t instanceof EventTarget)return[t];if(typeof t=="string"){let i=document;const o=(s=void 0)!==null&&s!==void 0?s:i.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t)}function _s(t,e){const n=Fr(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function mn(t){return!(t.pointerType==="touch"||Us())}function kr(t,e,n={}){const[s,i,o]=_s(t,n),r=a=>{if(!mn(a))return;const{target:l}=a,u=e(l,a);if(typeof u!="function"||!l)return;const c=h=>{mn(h)&&(u(h),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return s.forEach(a=>{a.addEventListener("pointerenter",r,i)}),o}function pn(t,e){const n=`${e}PointerCapture`;if(t.target instanceof Element&&n in t.target&&t.pointerId!==void 0)try{t.target[n](t.pointerId)}catch{}}const Ks=(t,e)=>e?t===e?!0:Ks(t,e.parentElement):!1,Ke=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Br=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function jr(t){return Br.has(t.tagName)||t.tabIndex!==-1}const xt=new WeakSet;function gn(t){return e=>{e.key==="Enter"&&t(e)}}function ee(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Ir=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=gn(()=>{if(xt.has(n))return;ee(n,"down");const i=gn(()=>{ee(n,"up")}),o=()=>ee(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function yn(t){return Ke(t)&&!Us()}function Or(t,e,n={}){const[s,i,o]=_s(t,n),r=a=>{const l=a.currentTarget;if(!l||!yn(a)||xt.has(l))return;xt.add(l),pn(a,"set");const u=e(l,a),c=(d,m)=>{l.removeEventListener("pointerup",h),l.removeEventListener("pointercancel",f),pn(d,"release"),!(!yn(d)||!xt.has(l))&&(xt.delete(l),typeof u=="function"&&u(d,{success:m}))},h=d=>{(d.isTrusted?Nr(d,l instanceof Element?l.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}):!1)?c(d,!1):c(d,!(l instanceof Element)||Ks(l,d.target))},f=d=>{c(d,!1)};l.addEventListener("pointerup",h,i),l.addEventListener("pointercancel",f,i),l.addEventListener("lostpointercapture",f,i)};return s.forEach(a=>{a=n.useGlobalTarget?window:a;let l=!1;a instanceof HTMLElement&&(l=!0,!jr(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0)),a.addEventListener("pointerdown",r,i),l&&a.addEventListener("focus",u=>Ir(u,i),i)}),o}function Nr(t,e){return t.clientX<e.left||t.clientX>e.right||t.clientY<e.top||t.clientY>e.bottom}const vn=30,Ur=t=>!isNaN(parseFloat(t));class _r{constructor(e,n={}){this.version="12.5.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const o=W.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=W.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ur(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Ie);const s=this.events[e].add(n);return e==="change"?()=>{s(),V.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=W.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>vn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,vn);return ks(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function wt(t,e){return new _r(t,e)}const Ws=T.createContext({strict:!1}),xn={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"]},ft={};for(const t in xn)ft[t]={isEnabled:e=>xn[t].some(n=>!!e[n])};function Kr(t){for(const e in t)ft[e]={...ft[e],...t[e]}}const Wr=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Kt(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Wr.has(t)}let $s=t=>!Kt(t);function $r(t){t&&($s=e=>e.startsWith("on")?!Kt(e):t(e))}try{$r(require("@emotion/is-prop-valid").default)}catch{}function Gr(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||($s(i)||n===!0&&Kt(i)||!e&&!Kt(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}function zr(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...s)=>t(...s);return new Proxy(n,{get:(s,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const Ht=T.createContext({});function Yt(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function At(t){return typeof t=="string"||Array.isArray(t)}const We=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$e=["initial",...We];function Xt(t){return Yt(t.animate)||$e.some(e=>At(t[e]))}function Gs(t){return!!(Xt(t)||t.variants)}function Hr(t,e){if(Xt(t)){const{initial:n,animate:s}=t;return{initial:n===!1||At(n)?n:void 0,animate:At(s)?s:void 0}}return t.inherit!==!1?e:{}}function Yr(t){const{initial:e,animate:n}=Hr(t,T.useContext(Ht));return T.useMemo(()=>({initial:e,animate:n}),[Tn(e),Tn(n)])}function Tn(t){return Array.isArray(t)?t.join(" "):t}const Xr=Symbol.for("motionComponentSymbol");function ot(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function qr(t,e,n){return T.useCallback(s=>{s&&t.onMount&&t.onMount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):ot(n)&&(n.current=s))},[e])}const Ge=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Zr="framerAppearId",zs="data-"+Ge(Zr),Hs=T.createContext({});function Jr(t,e,n,s,i){var o,r;const{visualElement:a}=T.useContext(Ht),l=T.useContext(Ws),u=T.useContext(Fe),c=T.useContext(Ls).reducedMotion,h=T.useRef(null);s=s||l.renderer,!h.current&&s&&(h.current=s(t,{visualState:e,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=h.current,d=T.useContext(Hs);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&Qr(h.current,n,i,d);const m=T.useRef(!1);T.useInsertionEffect(()=>{f&&m.current&&f.update(n,u)});const p=n[zs],y=T.useRef(!!p&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,p))&&((r=window.MotionHasOptimisedAnimation)===null||r===void 0?void 0:r.call(window,p)));return Pr(()=>{f&&(m.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),_e.render(f.render),y.current&&f.animationState&&f.animationState.animateChanges())}),T.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var g;(g=window.MotionHandoffMarkAsComplete)===null||g===void 0||g.call(window,p)}),y.current=!1))}),f}function Qr(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Ys(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&ot(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}function Ys(t){if(t)return t.options.allowProjection!==!1?t.projection:Ys(t.parent)}function to({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){var o,r;t&&Kr(t);function a(u,c){let h;const f={...T.useContext(Ls),...u,layoutId:eo(u)},{isStatic:d}=f,m=Yr(u),p=s(u,d);if(!d&&Le){no();const y=so(f);h=y.MeasureLayout,m.visualElement=Jr(i,p,f,e,y.ProjectionNode)}return D.jsxs(Ht.Provider,{value:m,children:[h&&m.visualElement?D.jsx(h,{visualElement:m.visualElement,...f}):null,n(i,u,qr(p,m.visualElement,c),p,d,m.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${(r=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&r!==void 0?r:""})`}`;const l=T.forwardRef(a);return l[Xr]=i,l}function eo({layoutId:t}){const e=T.useContext(Es).id;return e&&t!==void 0?e+"-"+t:t}function no(t,e){T.useContext(Ws).strict}function so(t){const{drag:e,layout:n}=ft;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const Xs=t=>e=>typeof e=="string"&&e.startsWith(t),ze=Xs("--"),io=Xs("var(--"),He=t=>io(t)?ro.test(t.split("/*")[0].trim()):!1,ro=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Vt={};function oo(t){for(const e in t)Vt[e]=t[e],ze(e)&&(Vt[e].isCSSVariable=!0)}const mt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],it=new Set(mt);function qs(t,{layout:e,layoutId:n}){return it.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Vt[t]||t==="opacity")}const k=t=>!!(t&&t.getVelocity),Zs=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Y=(t,e,n)=>n>e?e:n<t?t:n,pt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Ct={...pt,transform:t=>Y(0,1,t)},jt={...pt,default:1},Et=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),X=Et("deg"),$=Et("%"),S=Et("px"),ao=Et("vh"),lo=Et("vw"),Pn={...$,parse:t=>$.parse(t)/100,transform:t=>$.transform(t*100)},uo={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,radius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,backgroundPositionX:S,backgroundPositionY:S},co={rotate:X,rotateX:X,rotateY:X,rotateZ:X,scale:jt,scaleX:jt,scaleY:jt,scaleZ:jt,skew:X,skewX:X,skewY:X,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:Ct,originX:Pn,originY:Pn,originZ:S},Sn={...pt,transform:Math.round},Ye={...uo,...co,zIndex:Sn,size:S,fillOpacity:Ct,strokeOpacity:Ct,numOctaves:Sn},ho={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},fo=mt.length;function mo(t,e,n){let s="",i=!0;for(let o=0;o<fo;o++){const r=mt[o],a=t[r];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(r.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=Zs(a,Ye[r]);if(!l){i=!1;const c=ho[r]||r;s+=`${c}(${u}) `}n&&(e[r]=u)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function Xe(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const l in e){const u=e[l];if(it.has(l)){r=!0;continue}else if(ze(l)){i[l]=u;continue}else{const c=Zs(u,Ye[l]);l.startsWith("origin")?(a=!0,o[l]=c):s[l]=c}}if(e.transform||(r||n?s.transform=mo(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=o;s.transformOrigin=`${l} ${u} ${c}`}}const qe=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Js(t,e,n){for(const s in e)!k(e[s])&&!qs(s,n)&&(t[s]=e[s])}function po({transformTemplate:t},e){return T.useMemo(()=>{const n=qe();return Xe(n,e,t),Object.assign({},n.vars,n.style)},[e])}function go(t,e){const n=t.style||{},s={};return Js(s,n,t),Object.assign(s,po(t,e)),s}function yo(t,e){const n={},s=go(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const vo=["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 Ze(t){return typeof t!="string"||t.includes("-")?!1:!!(vo.indexOf(t)>-1||/[A-Z]/u.test(t))}const xo={offset:"stroke-dashoffset",array:"stroke-dasharray"},To={offset:"strokeDashoffset",array:"strokeDasharray"};function Po(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?xo:To;t[o.offset]=S.transform(-s);const r=S.transform(e),a=S.transform(n);t[o.array]=`${r} ${a}`}function bn(t,e,n){return typeof t=="string"?t:S.transform(e+n*t)}function So(t,e,n){const s=bn(e,t.x,t.width),i=bn(n,t.y,t.height);return`${s} ${i}`}function Je(t,{attrX:e,attrY:n,attrScale:s,originX:i,originY:o,pathLength:r,pathSpacing:a=1,pathOffset:l=0,...u},c,h){if(Xe(t,u,h),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:d,dimensions:m}=t;f.transform&&(m&&(d.transform=f.transform),delete f.transform),m&&(i!==void 0||o!==void 0||d.transform)&&(d.transformOrigin=So(m,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),s!==void 0&&(f.scale=s),r!==void 0&&Po(f,r,a,l,!1)}const Qs=()=>({...qe(),attrs:{}}),Qe=t=>typeof t=="string"&&t.toLowerCase()==="svg";function bo(t,e,n,s){const i=T.useMemo(()=>{const o=Qs();return Je(o,e,Qe(s),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Js(o,t.style,t),i.style={...o,...i.style}}return i}function wo(t=!1){return(n,s,i,{latestValues:o},r)=>{const l=(Ze(n)?bo:yo)(s,o,r,n),u=Gr(s,typeof n=="string",t),c=n!==T.Fragment?{...u,...l,ref:i}:{},{children:h}=s,f=T.useMemo(()=>k(h)?h.get():h,[h]);return T.createElement(n,{...c,children:f})}}function wn(t){const e=[{},{}];return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function tn(t,e,n,s){if(typeof e=="function"){const[i,o]=wn(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=wn(s);e=e(n!==void 0?n:t.custom,i,o)}return e}const pe=t=>Array.isArray(t),Ao=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Vo=t=>pe(t)?t[t.length-1]||0:t;function Nt(t){const e=k(t)?t.get():t;return Ao(e)?e.toValue():e}function Co({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},s,i,o){const r={latestValues:Mo(s,i,o,t),renderState:e()};return n&&(r.onMount=a=>n({props:s,current:a,...r}),r.onUpdate=a=>n(a)),r}const ti=t=>(e,n)=>{const s=T.useContext(Ht),i=T.useContext(Fe),o=()=>Co(t,e,s,i);return n?o():Tr(o)};function Mo(t,e,n,s){const i={},o=s(t,{});for(const f in o)i[f]=Nt(o[f]);let{initial:r,animate:a}=t;const l=Xt(t),u=Gs(t);e&&u&&!l&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||r===!1;const h=c?a:r;if(h&&typeof h!="boolean"&&!Yt(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d<f.length;d++){const m=tn(t,f[d]);if(m){const{transitionEnd:p,transition:y,...g}=m;for(const v in g){let x=g[v];if(Array.isArray(x)){const w=c?x.length-1:0;x=x[w]}x!==null&&(i[v]=x)}for(const v in p)i[v]=p[v]}}}return i}function en(t,e,n){var s;const{style:i}=t,o={};for(const r in i)(k(i[r])||e.style&&k(e.style[r])||qs(r,t)||((s=n==null?void 0:n.getValue(r))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(o[r]=i[r]);return o}const Do={useVisualState:ti({scrapeMotionValuesFromProps:en,createRenderState:qe})};function ei(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}function ni(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const o in n)t.style.setProperty(o,n[o])}const si=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ii(t,e,n,s){ni(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(si.has(i)?i:Ge(i),e.attrs[i])}function ri(t,e,n){const s=en(t,e,n);for(const i in t)if(k(t[i])||k(e[i])){const o=mt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}const An=["x","y","width","height","cx","cy","r"],Ro={useVisualState:ti({scrapeMotionValuesFromProps:ri,createRenderState:Qs,onUpdate:({props:t,prevProps:e,current:n,renderState:s,latestValues:i})=>{if(!n)return;let o=!!t.drag;if(!o){for(const a in i)if(it.has(a)){o=!0;break}}if(!o)return;let r=!e;if(e)for(let a=0;a<An.length;a++){const l=An[a];t[l]!==e[l]&&(r=!0)}r&&V.read(()=>{ei(n,s),V.render(()=>{Je(s,i,Qe(n.tagName),t.transformTemplate),ii(n,s)})})}})};function Eo(t,e){return function(s,{forwardMotionProps:i}={forwardMotionProps:!1}){const r={...Ze(s)?Ro:Do,preloadedFeatures:t,useRender:wo(i),createVisualElement:e,Component:s};return to(r)}}function Mt(t,e,n){const s=t.getProps();return tn(s,e,n!==void 0?n:s.custom,t)}const oi=new Set(["width","height","top","left","right","bottom",...mt]);function Lo(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,wt(n))}function Fo(t,e){const n=Mt(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=Vo(o[r]);Lo(t,r,a)}}function ko(t){return!!(k(t)&&t.add)}function ge(t,e){const n=t.getValue("willChange");if(ko(n))return n.add(e)}function ai(t){return t.props[zs]}const li=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Bo=1e-7,jo=12;function Io(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=li(r,s,i)-t,o>0?n=r:e=r;
vendor: 4,134 bytes, line 1
1while(Math.abs(o)>Bo&&++a<jo);return r}function Lt(t,e,n,s){if(t===e&&n===s)return O;const i=o=>Io(o,0,1,t,n);return o=>o===0||o===1?o:li(i(o),e,s)}const ui=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ci=t=>e=>1-t(1-e),hi=Lt(.33,1.53,.69,.99),nn=ci(hi),fi=ui(nn),di=t=>(t*=2)<1?.5*nn(t):.5*(2-Math.pow(2,-10*(t-1))),sn=t=>1-Math.sin(Math.acos(t)),mi=ci(sn),pi=ui(sn),gi=t=>/^0[^.\s]+$/u.test(t);function Oo(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||gi(t):!0}const Tt=t=>Math.round(t*1e5)/1e5,rn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function No(t){return t==null}const Uo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,on=(t,e)=>n=>!!(typeof n=="string"&&Uo.test(n)&&n.startsWith(t)||e&&!No(n)&&Object.prototype.hasOwnProperty.call(n,e)),yi=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(rn);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},_o=t=>Y(0,255,t),ne={...pt,transform:t=>Math.round(_o(t))},et={test:on("rgb","red"),parse:yi("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+ne.transform(t)+", "+ne.transform(e)+", "+ne.transform(n)+", "+Tt(Ct.transform(s))+")"};function Ko(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const ye={test:on("#"),parse:Ko,transform:et.transform},at={test:on("hsl","hue"),parse:yi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+$.transform(Tt(e))+", "+$.transform(Tt(n))+", "+Tt(Ct.transform(s))+")"},F={test:t=>et.test(t)||ye.test(t)||at.test(t),parse:t=>et.test(t)?et.parse(t):at.test(t)?at.parse(t):ye.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?et.transform(t):at.transform(t)},Wo=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function $o(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(rn))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Wo))===null||n===void 0?void 0:n.length)||0)>0}const vi="number",xi="color",Go="var",zo="var(",Vn="${}",Ho=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Dt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(Ho,l=>(F.test(l)?(s.color.push(o),i.push(xi),n.push(F.parse(l))):l.startsWith(zo)?(s.var.push(o),i.push(Go),n.push(l)):(s.number.push(o),i.push(vi),n.push(parseFloat(l))),++o,Vn)).split(Vn);return{values:n,split:a,indexes:s,types:i}}function Ti(t){return Dt(t).values}function Pi(t){const{split:e,types:n}=Dt(t),s=e.length;return i=>{let o="";for(let r=0;r<s;r++)if(o+=e[r],i[r]!==void 0){const a=n[r];a===vi?o+=Tt(i[r]):a===xi?o+=F.transform(i[r]):o+=i[r]}return o}}const Yo=t=>typeof t=="number"?0:t;function Xo(t){const e=Ti(t);return Pi(t)(e.map(Yo))}const Z={test:$o,parse:Ti,createTransformer:Pi,getAnimatableNone:Xo},qo=new Set(["brightness","contrast","saturate","opacity"]);function Zo(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(rn)||[];if(!s)return t;const i=n.replace(s,"");let o=qo.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const Jo=/\b([a-z-]*)\(.*?\)/gu,ve={...Z,getAnimatableNone:t=>{const e=t.match(Jo);return e?e.map(Zo).join(" "):t}},Qo={...Ye,color:F,backgroundColor:F,outlineColor:F,fill:F,stroke:F,borderColor:F,borderTopColor:F,borderRightColor:F,borderBottomColor:F,borderLeftColor:F,filter:ve,WebkitFilter:ve},Si=t=>Qo[t];function bi(t,e){let n=Si(t);return n!==ve&&(n=Z),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const ta=new Set(["auto","none","0"]);function ea(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];
vendor: 9,879 bytes, line 1
1typeof o=="string"&&!ta.has(o)&&Dt(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=bi(n,i)}const nt=t=>t*180/Math.PI,xe=t=>{const e=nt(Math.atan2(t[1],t[0]));return Te(e)},na={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:xe,rotateZ:xe,skewX:t=>nt(Math.atan(t[1])),skewY:t=>nt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Te=t=>(t=t%360,t<0&&(t+=360),t),Cn=xe,Mn=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Dn=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),sa={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Mn,scaleY:Dn,scale:t=>(Mn(t)+Dn(t))/2,rotateX:t=>Te(nt(Math.atan2(t[6],t[5]))),rotateY:t=>Te(nt(Math.atan2(-t[2],t[0]))),rotateZ:Cn,rotate:Cn,skewX:t=>nt(Math.atan(t[4])),skewY:t=>nt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Rn(t){return t.includes("scale")?1:0}function Pe(t,e){if(!t||t==="none")return Rn(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=sa,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=na,i=a}if(!i)return Rn(e);const o=s[e],r=i[1].split(",").map(ra);return typeof o=="function"?o(r):r[o]}const ia=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Pe(n,e)};function ra(t){return parseFloat(t.trim())}const En=t=>t===pt||t===S,oa=new Set(["x","y","z"]),aa=mt.filter(t=>!oa.has(t));function la(t){const e=[];return aa.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const dt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Pe(e,"x"),y:(t,{transform:e})=>Pe(e,"y")};dt.translateX=dt.x;dt.translateY=dt.y;const st=new Set;let Se=!1,be=!1;function wi(){if(be){const t=Array.from(st).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=la(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{var a;(a=s.getValue(o))===null||a===void 0||a.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}be=!1,Se=!1,st.forEach(t=>t.complete()),st.clear()}function Ai(){st.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(be=!0)})}function ua(){Ai(),wi()}class an{constructor(e,n,s,i,o,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(st.add(this),Se||(Se=!0,V.read(Ai),V.resolveKeyframes(wi))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;for(let o=0;o<e.length;o++)if(e[o]===null)if(o===0){const r=i==null?void 0:i.get(),a=e[e.length-1];if(r!==void 0)e[0]=r;else if(s&&n){const l=s.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),i&&r===void 0&&i.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),st.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,st.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Vi=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),ca=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ha(t){const e=ca.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function Ci(t,e,n=1){const[s,i]=ha(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return Vi(r)?parseFloat(r):r}return He(i)?Ci(i,e,n+1):i}const Mi=t=>e=>e.test(t),fa={test:t=>t==="auto",parse:t=>t},Di=[pt,S,$,X,lo,ao,fa],Ln=t=>Di.find(Mi(t));class Ri extends an{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let u=e[l];if(typeof u=="string"&&(u=u.trim(),He(u))){const c=Ci(u,n.current);c!==void 0&&(e[l]=c),l===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!oi.has(s)||e.length!==2)return;const[i,o]=e,r=Ln(i),a=Ln(o);if(r!==a)if(En(r)&&En(a))for(let l=0;l<e.length;l++){const u=e[l];typeof u=="string"&&(e[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)Oo(e[i])&&s.push(i);s.length&&ea(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=dt[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:s,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(s);o&&o.jump(this.measuredOrigin,!1);const r=i.length-1,a=i[r];i[r]=dt[s](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const Fn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Z.test(t)||t==="0")&&!t.startsWith("url("));function da(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function ma(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=Fn(i,e),a=Fn(o,e);return!r||!a?!1:da(t)||(n==="spring"||Ne(n))&&s}const pa=t=>t!==null;function qt(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(pa),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return!o||s===void 0?i[o]:s}const ga=40;class Ei{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=W.now(),this.options={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>ga?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ua(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=W.now(),this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:o,delay:r,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!ma(e,s,i,o))if(r)this.options.duration=0;else{l&&l(qt(e,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const c=this.initPlayback(e,n);c!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const C=(t,e,n)=>t+(e-t)*n;function se(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function ya({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=se(l,a,t+1/3),o=se(l,a,t),r=se(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function Wt(t,e){return n=>n>0?e:t}const ie=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},va=[ye,et,at],xa=t=>va.find(e=>e.test(t));function kn(t){const e=xa(t);if(!e)return!1;let n=e.parse(t);return e===at&&(n=ya(n)),n}const Bn=(t,e)=>{const n=kn(t),s=kn(e);if(!n||!s)return Wt(t,e);const i={...n};return o=>(i.red=ie(n.red,s.red,o),i.green=ie(n.green,s.green,o),i.blue=ie(n.blue,s.blue,o),i.alpha=C(n.alpha,s.alpha,o),et.transform(i))},Ta=(t,e)=>n=>e(t(n)),Ft=(...t)=>t.reduce(Ta),we=new Set(["none","hidden"]);function Pa(t,e){return we.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Sa(t,e){return n=>C(t,e,n)}function ln(t){return typeof t=="number"?Sa:typeof t=="string"?He(t)?Wt:F.test(t)?Bn:Aa:Array.isArray(t)?Li:typeof t=="object"?F.test(t)?Bn:ba:Wt}function Li(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>ln(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function ba(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=ln(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function wa(t,e){var n;const s=[],i={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const r=e.types[o],a=t.indexes[r][i[r]],l=(n=t.values[a])!==null&&n!==void 0?n:0;s[o]=l,i[r]++}return s}const Aa=(t,e)=>{const n=Z.createTransformer(e),s=Dt(t),i=Dt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?we.has(t)&&!i.values.length||we.has(e)&&!s.values.length?Pa(t,e):Ft(Li(wa(s,i),i.values),n):Wt(t,e)};function Fi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?C(t,e,n):ln(t)(t,e)}const Va=5;function ki(t,e,n){const s=Math.max(e-Va,0);return ks(n-t(s),e-s)}const M={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},jn=.001;function Ca({duration:t=M.duration,bounce:e=M.bounce,velocity:n=M.velocity,mass:s=M.mass}){let i,o,r=1-e;
vendor: 8,842 bytes, line 1
1r=Y(M.minDamping,M.maxDamping,r),t=Y(M.minDuration,M.maxDuration,H(t)),r<1?(i=u=>{const c=u*r,h=c*t,f=c-n,d=Ae(u,r),m=Math.exp(-h);return jn-f/d*m},o=u=>{const h=u*r*t,f=h*n+n,d=Math.pow(r,2)*Math.pow(u,2)*t,m=Math.exp(-h),p=Ae(Math.pow(u,2),r);return(-i(u)+jn>0?-1:1)*((f-d)*m)/p}):(i=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-.001+c*h},o=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=Da(i,o,a);if(t=z(t),isNaN(l))return{stiffness:M.stiffness,damping:M.damping,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:r*2*Math.sqrt(s*u),duration:t}}}const Ma=12;function Da(t,e,n){let s=n;for(let i=1;i<Ma;i++)s=s-t(s)/e(s);return s}function Ae(t,e){return t*Math.sqrt(1-e*e)}const Ra=["duration","bounce"],Ea=["stiffness","damping","mass"];function In(t,e){return e.some(n=>t[n]!==void 0)}function La(t){let e={velocity:M.velocity,stiffness:M.stiffness,damping:M.damping,mass:M.mass,isResolvedFromDuration:!1,...t};if(!In(t,Ea)&&In(t,Ra))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*Y(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:M.mass,stiffness:i,damping:o}}else{const n=Ca(t);e={...e,...n,mass:M.mass},e.isResolvedFromDuration=!0}return e}function Bi(t=M.visualDuration,e=M.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:h,velocity:f,isResolvedFromDuration:d}=La({...n,velocity:-H(n.velocity||0)}),m=f||0,p=u/(2*Math.sqrt(l*c)),y=r-o,g=H(Math.sqrt(l/c)),v=Math.abs(y)<5;s||(s=v?M.restSpeed.granular:M.restSpeed.default),i||(i=v?M.restDelta.granular:M.restDelta.default);let x;if(p<1){const P=Ae(g,p);x=A=>{const E=Math.exp(-p*g*A);return r-E*((m+p*g*y)/P*Math.sin(P*A)+y*Math.cos(P*A))}}else if(p===1)x=P=>r-Math.exp(-g*P)*(y+(m+g*y)*P);else{const P=g*Math.sqrt(p*p-1);x=A=>{const E=Math.exp(-p*g*A),b=Math.min(P*A,300);return r-E*((m+p*g*y)*Math.sinh(b)+P*y*Math.cosh(b))/P}}const w={calculatedDuration:d&&h||null,next:P=>{const A=x(P);if(d)a.done=P>=h;else{let E=0;p<1&&(E=P===0?z(m):ki(x,P,A));const b=Math.abs(E)<=s,I=Math.abs(r-A)<=i;a.done=b&&I}return a.value=a.done?r:A,a},toString:()=>{const P=Math.min(Bs(w),de),A=js(E=>w.next(P*E).value,P,30);return P+"ms "+A}};return w}function On({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],f={done:!1,value:h},d=b=>a!==void 0&&b<a||l!==void 0&&b>l,m=b=>a===void 0?l:l===void 0||Math.abs(a-b)<Math.abs(l-b)?a:l;let p=n*e;const y=h+p,g=r===void 0?y:r(y);g!==y&&(p=g-h);const v=b=>-p*Math.exp(-b/s),x=b=>g+v(b),w=b=>{const I=v(b),N=x(b);f.done=Math.abs(I)<=u,f.value=f.done?g:N};let P,A;const E=b=>{d(f.value)&&(P=b,A=Bi({keyframes:[f.value,m(f.value)],velocity:ki(x,b,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:b=>{let I=!1;return!A&&P===void 0&&(I=!0,w(b),E(b)),P!==void 0&&b>=P?A.next(b-P):(!I&&w(b),f)}}}const Fa=Lt(.42,0,1,1),ka=Lt(0,0,.58,1),ji=Lt(.42,0,.58,1),Ba=t=>Array.isArray(t)&&typeof t[0]!="number",ja={linear:O,easeIn:Fa,easeInOut:ji,easeOut:ka,circIn:sn,circInOut:pi,circOut:mi,backIn:nn,backInOut:fi,backOut:hi,anticipate:di},Nn=t=>{if(Ue(t)){Fs(t.length===4);const[e,n,s,i]=t;return Lt(e,n,s,i)}else if(typeof t=="string")return ja[t];return t};function Ia(t,e,n){const s=[],i=n||Fi,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const l=Array.isArray(e)?e[r]||O:e;a=Ft(l,a)}s.push(a)}return s}function Oa(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(Fs(o===e.length),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Ia(e,s,i),l=a.length,u=c=>{if(r&&c<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(c<t[h+1]);h++);const f=ht(t[h],t[h+1],c);return a[h](f)};return n?c=>u(Y(t[0],t[o-1],c)):u}function Na(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=ht(0,e,s);t.push(C(n,1,i))}}function Ua(t){const e=[0];return Na(e,t.length-1),e}function _a(t,e){return t.map(n=>n*e)}function Ka(t,e){return t.map(()=>e||ji).splice(0,t.length-1)}function $t({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Ba(s)?s.map(Nn):Nn(s),o={done:!1,value:e[0]},r=_a(n&&n.length===e.length?n:Ua(e),t),a=Oa(r,e,{ease:Array.isArray(i)?i:Ka(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const Wa=t=>{const e=({timestamp:n})=>t(n);return{start:()=>V.update(e,!0),stop:()=>q(e),now:()=>L.isProcessing?L.timestamp:W.now()}},$a={decay:On,inertia:On,tween:$t,keyframes:$t,spring:Bi},Ga=t=>t/100;class Zt extends Ei{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:s,element:i,keyframes:o}=this.options,r=(i==null?void 0:i.KeyframeResolver)||an,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new r(o,a,n,s,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=this.options,a=Ne(n)?n:$a[n]||$t;let l,u;a!==$t&&typeof e[0]!="number"&&(l=Ft(Ga,Fi(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});o==="mirror"&&(u=a({...this.options,keyframes:[...e].reverse(),velocity:-r})),c.calculatedDuration===null&&(c.calculatedDuration=Bs(c));const{calculatedDuration:h}=c,f=h+i,d=f*(s+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:f,totalDuration:d}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:s}=this;if(!s){const{keyframes:b}=this.options;return{done:!0,value:b[b.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:r,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:h}=s;if(this.startTime===null)return o.next(0);const{delay:f,repeat:d,repeatType:m,repeatDelay:p,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-f*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let x=this.currentTime,w=o;if(d){const b=Math.min(this.currentTime,c)/h;let I=Math.floor(b),N=b%1;!N&&b>=1&&(N=1),N===1&&I--,I=Math.min(I,d+1),!!(I%2)&&(m==="reverse"?(N=1-N,p&&(N-=p/h)):m==="mirror"&&(w=r)),x=Y(0,1,N)*h}const P=v?{done:!1,value:l[0]}:w.next(x);a&&(P.value=a(P.value));let{done:A}=P;!v&&u!==null&&(A=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return E&&i!==void 0&&(P.value=qt(l,this.options,i)),y&&y(P.value),E&&this.finish(),P}get duration(){const{resolved:e}=this;return e?H(e.calculatedDuration):0}get time(){return H(this.currentTime)}set time(e){e=z(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=H(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Wa,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedProm
1ise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}function fc(t){return new Zt(t)}const za=new Set(["opacity","clipPath","filter","transform"]);function Ha(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeInOut",times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=Os(a,i);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:s,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"})}const Ya=je(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Gt=10,Xa=2e4;function qa(t){return Ne(t.type)||t.type==="spring"||!Is(t.ease)}function Za(t,e){const n=new Zt({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:t[0]};const i=[];let o=0;for(;!s.done&&o<Xa;)s=n.sample(o),i.push(s.value),o+=Gt;return{times:void 0,keyframes:i,duration:o-Gt,ease:"linear"}}const Ii={anticipate:di,backInOut:fi,circInOut:pi};function Ja(t){return t in Ii}
vendor: 4,365 bytes, line 1
1class Un extends Ei{constructor(e){super(e);const{name:n,motionValue:s,element:i,keyframes:o}=this.options;this.resolver=new Ri(o,(r,a)=>this.onKeyframesResolved(r,a),n,s,i),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:s=300,times:i,ease:o,type:r,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof o=="string"&&_t()&&Ja(o)&&(o=Ii[o]),qa(this.options)){const{onComplete:h,onUpdate:f,motionValue:d,element:m,...p}=this.options,y=Za(e,p);e=y.keyframes,e.length===1&&(e[1]=e[0]),s=y.duration,i=y.times,o=y.ease,r="keyframes"}const c=Ha(a.owner.current,l,e,{...this.options,duration:s,times:i,ease:o});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(dn(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:h}=this.options;a.set(qt(e,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:s,times:i,type:r,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return H(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return H(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=z(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return O;const{animation:s}=n;dn(s,e)}return O}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:s,duration:i,type:o,ease:r,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:h,element:f,...d}=this.options,m=new Zt({...d,keyframes:s,duration:i,type:o,ease:r,times:a,isGenerator:!0}),p=z(this.time);u.setWithVelocity(m.sample(p-Gt).value,m.sample(p).value,Gt)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:s,repeatDelay:i,repeatType:o,damping:r,type:a}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return Ya()&&s&&za.has(s)&&!l&&!u&&!i&&o!=="mirror"&&r!==0&&a!=="inertia"}}const Qa={type:"spring",stiffness:500,damping:25,restSpeed:10},tl=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),el={type:"keyframes",duration:.8},nl={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sl=(t,{keyframes:e})=>e.length>2?el:it.has(t)?t.startsWith("scale")?tl(e[1]):Qa:nl;function il({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const un=(t,e,n,s={},i,o)=>r=>{const a=Oe(s,t)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-z(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};il(a)||(c={...c,...sl(t,c)}),c.duration&&(c.duration=z(c.duration)),c.repeatDelay&&(c.repeatDelay=z(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(h=!0)),c.allowFlatten=!a.type&&!a.ease,h&&!o&&e.get()!==void 0){const f=qt(c.keyframes,a);if(f!==void 0)return V.update(()=>{c.onUpdate(f),c.onComplete()}),new Vr([])}return!o&&Un.supports(c)?new Un(c):new Zt(c)};function rl({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}
vendor: 4,186 bytes, line 1
1function Oi(t,e,{delay:n=0,transitionOverride:s,type:i}={}){var o;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...l}=e;s&&(r=s);const u=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const h in l){const f=t.getValue(h,(o=t.latestValues[h])!==null&&o!==void 0?o:null),d=l[h];if(d===void 0||c&&rl(c,h))continue;const m={delay:n,...Oe(r||{},h)};let p=!1;if(window.MotionHandoffAnimation){const g=ai(t);if(g){const v=window.MotionHandoffAnimation(g,h,V);v!==null&&(m.startTime=v,p=!0)}}ge(t,h),f.start(un(h,f,d,t.shouldReduceMotion&&oi.has(h)?{type:!1}:m,t,p));const y=f.animation;y&&u.push(y)}return a&&Promise.all(u).then(()=>{V.update(()=>{a&&Fo(t,a)})}),u}function Ve(t,e,n={}){var s;const i=Mt(t,e,n.type==="exit"?(s=t.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const r=i?()=>Promise.all(Oi(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:f}=o;return ol(t,e,c+u,h,f,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[u,c]=l==="beforeChildren"?[r,a]:[a,r];return u().then(()=>c())}else return Promise.all([r(),a(n.delay)])}function ol(t,e,n=0,s=0,i=1,o){const r=[],a=(t.variantChildren.size-1)*s,l=i===1?(u=0)=>u*s:(u=0)=>a-u*s;return Array.from(t.variantChildren).sort(al).forEach((u,c)=>{u.notify("AnimationStart",e),r.push(Ve(u,e,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(r)}function al(t,e){return t.sortNodePosition(e)}function ll(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>Ve(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=Ve(t,e,n);else{const i=typeof e=="function"?Mt(t,e,n.custom):e;s=Promise.all(Oi(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}function Ni(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const ul=$e.length;function Ui(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Ui(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<ul;n++){const s=$e[n],i=t.props[s];(At(i)||i===!1)&&(e[s]=i)}return e}const cl=[...We].reverse(),hl=We.length;function fl(t){return e=>Promise.all(e.map(({animation:n,options:s})=>ll(t,n,s)))}function dl(t){let e=fl(t),n=_n(),s=!0;const i=l=>(u,c)=>{var h;const f=Mt(t,c,l==="exit"?(h=t.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:d,transitionEnd:m,...p}=f;u={...u,...p,...m}}return u};function o(l){e=l(t)}function r(l){const{props:u}=t,c=Ui(t.parent)||{},h=[],f=new Set;let d={},m=1/0;for(let y=0;y<hl;y++){const g=cl[y],v=n[g],x=u[g]!==void 0?u[g]:c[g],w=At(x),P=g===l?v.isActive:null;P===!1&&(m=y);let A=x===c[g]&&x!==u[g]&&w;if(A&&s&&t.manuallyAnimateOnMount&&(A=!1),v.protectedKeys={...d},!v.isActive&&P===null||!x&&!v.prevProp||Yt(x)||typeof x=="boolean")continue;const E=ml(v.prevProp,x);let b=E||g===l&&v.isActive&&!A&&w||y>m&&w,I=!1;const N=Array.isArray(x)?x:[x];let rt=N.reduce(i(g),{});P===!1&&(rt={});const{prevResolvedValues:cn={}}=v,ar={...cn,...rt},hn=B=>{b=!0,f.has(B)&&(I=!0,f.delete(B)),v.needsAnimating[B]=!0;const G=t.getValue(B);G&&(G.liveStyle=!1)};for(const B in ar){const G=rt[B],Jt=cn[B];if(d.hasOwnProperty(B))continue;let Qt=!1;pe(G)&&pe(Jt)?Qt=!Ni(G,Jt):Qt=G!==Jt,Qt?G!=null?hn(B):f.add(B):G!==void 0&&f.has(B)?hn(B):v.protectedKeys[B]=!0}v.prevProp=x,v.prevResolvedValues=rt,v.isActive&&(d={...d,...rt}),s&&t.blockInitialAnimation&&(b=!1),b&&(!(A&&E)||I)&&h.push(...N.map(B=>({animation:B,options:{type:g}})))}if(f.size){const y={};if(typeof u.initial!="boolean"){const g=Mt(t,Array.isArray(u.initial)?u.initial[0]:u.initial);g&&g.transition&&(y.transition=g.transition)}f.forEach(g=>{const v=t.getBaseTarget(g),x=t.getValue(g);x&&(x.liveStyle=!0),y[g]=v??null}),h.push({animation:y})}let p=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(p=!1),s=!1,p?e(h):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();
vendor: 8,371 bytes, line 1
1(c=t.variantChildren)===null||c===void 0||c.forEach(f=>{var d;return(d=f.animationState)===null||d===void 0?void 0:d.setActive(l,u)}),n[l].isActive=u;const h=r(l);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=_n(),s=!0}}}function ml(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Ni(e,t):!1}function Q(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function _n(){return{animate:Q(!0),whileInView:Q(),whileHover:Q(),whileTap:Q(),whileDrag:Q(),whileFocus:Q(),exit:Q()}}class J{constructor(e){this.isMounted=!1,this.node=e}update(){}}class pl extends J{constructor(e){super(e),e.animationState||(e.animationState=dl(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Yt(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let gl=0;class yl extends J{constructor(){super(...arguments),this.id=gl++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const vl={animation:{Feature:pl},exit:{Feature:yl}};function Rt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function kt(t){return{point:{x:t.pageX,y:t.pageY}}}const xl=t=>e=>Ke(e)&&t(e,kt(e));function Pt(t,e,n,s){return Rt(t,e,xl(n),s)}function _i({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Tl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Pl(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}const Ki=1e-4,Sl=1-Ki,bl=1+Ki,Wi=.01,wl=0-Wi,Al=0+Wi;function j(t){return t.max-t.min}function Vl(t,e,n){return Math.abs(t-e)<=n}function Kn(t,e,n,s=.5){t.origin=s,t.originPoint=C(e.min,e.max,t.origin),t.scale=j(n)/j(e),t.translate=C(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Sl&&t.scale<=bl||isNaN(t.scale))&&(t.scale=1),(t.translate>=wl&&t.translate<=Al||isNaN(t.translate))&&(t.translate=0)}function St(t,e,n,s){Kn(t.x,e.x,n.x,s?s.originX:void 0),Kn(t.y,e.y,n.y,s?s.originY:void 0)}function Wn(t,e,n){t.min=n.min+e.min,t.max=t.min+j(e)}function Cl(t,e,n){Wn(t.x,e.x,n.x),Wn(t.y,e.y,n.y)}function $n(t,e,n){t.min=e.min-n.min,t.max=t.min+j(e)}function bt(t,e,n){$n(t.x,e.x,n.x),$n(t.y,e.y,n.y)}const Gn=()=>({translate:0,scale:1,origin:0,originPoint:0}),lt=()=>({x:Gn(),y:Gn()}),zn=()=>({min:0,max:0}),R=()=>({x:zn(),y:zn()});function _(t){return[t("x"),t("y")]}function re(t){return t===void 0||t===1}function Ce({scale:t,scaleX:e,scaleY:n}){return!re(t)||!re(e)||!re(n)}function tt(t){return Ce(t)||$i(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function $i(t){return Hn(t.x)||Hn(t.y)}function Hn(t){return t&&t!=="0%"}function zt(t,e,n){const s=t-n,i=e*s;return n+i}function Yn(t,e,n,s,i){return i!==void 0&&(t=zt(t,i,s)),zt(t,n,s)+e}function Me(t,e=0,n=1,s,i){t.min=Yn(t.min,e,n,s,i),t.max=Yn(t.max,e,n,s,i)}function Gi(t,{x:e,y:n}){Me(t.x,e.translate,e.scale,e.originPoint),Me(t.y,n.translate,n.scale,n.originPoint)}const Xn=.999999999999,qn=1.0000000000001;function Ml(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ct(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Gi(t,r)),s&&tt(o.latestValues)&&ct(t,o.latestValues))}e.x<qn&&e.x>Xn&&(e.x=1),e.y<qn&&e.y>Xn&&(e.y=1)}function ut(t,e){t.min=t.min+e,t.max=t.max+e}function Zn(t,e,n,s,i=.5){const o=C(t.min,t.max,i);Me(t,e,n,o,s)}function ct(t,e){Zn(t.x,e.x,e.scaleX,e.scale,e.originX),Zn(t.y,e.y,e.scaleY,e.scale,e.originY)}function zi(t,e){return _i(Pl(t.getBoundingClientRect(),e))}function Dl(t,e,n){const s=zi(t,n),{scroll:i}=e;return i&&(ut(s.x,i.offset.x),ut(s.y,i.offset.y)),s}const Hi=({current:t})=>t?t.ownerDocument.defaultView:null,Jn=(t,e)=>Math.abs(t-e);function Rl(t,e){const n=Jn(t.x,e.x),s=Jn(t.y,e.y);return Math.sqrt(n**2+s**2)}class Yi{constructor(e,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=ae(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=Rl(h.offset,{x:0,y:0})>=3;if(!f&&!d)return;const{point:m}=h,{timestamp:p}=L;this.history.push({...m,timestamp:p});const{onStart:y,onMove:g}=this.handlers;f||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=oe(f,this.transformPagePoint),V.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:d,onSessionEnd:m,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=ae(h.type==="pointercancel"?this.lastMoveEventInfo:oe(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(h,y),m&&m(h,y)},!Ke(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const r=kt(e),a=oe(r,this.transformPagePoint),{point:l}=a,{timestamp:u}=L;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(e,ae(a,this.history)),this.removeListeners=Ft(Pt(this.contextWindow,"pointermove",this.handlePointerMove),Pt(this.contextWindow,"pointerup",this.handlePointerUp),Pt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),q(this.updatePoint)}}function oe(t,e){return e?{point:e(t.point)}:t}function Qn(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ae({point:t},e){return{point:t,delta:Qn(t,Xi(e)),offset:Qn(t,El(e)),velocity:Ll(e,.1)}}function El(t){return t[0]}function Xi(t){return t[t.length-1]}function Ll(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Xi(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>z(e)));)n--;if(!s)return{x:0,y:0};const o=H(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function Fl(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?C(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?C(n,t,s.max):Math.min(t,n)),t}function ts(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function kl(t,{top:e,left:n,bottom:s,right:i}){return{x:ts(t.x,n,i),y:ts(t.y,e,s)}}function es(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function Bl(t,e){return{x:es(t.x,e.x),y:es(t.y,e.y)}}function jl(t,e){let n=.5;const s=j(t),i=j(e);return i>s?n=ht(e.min,e.max-s,t.min):s>i&&(n=ht(t.min,t.max-i,e.min)),Y(0,1,n)}function Il(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const De=.35;function Ol(t=De){return t===!1?t=0:t===!0&&(t=De),{x:ns(t,"left","right"),y:ns(t,"top","bottom")}}function ns(t,e,n){return{min:ss(t,e),max:ss(t,n)}}function ss(t,e){return typeof t=="number"?t:t[e]||0}const Nl=new WeakMap;class Ul{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=R(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(kt(c).point)},o=(c,h)=>{const{drag:f,dragPropagation:d,onDragStart:m}=this.getProps();
vendor: 16,617 bytes, line 1
1if(f&&!d&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Lr(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),_(y=>{let g=this.getAxisMotionValue(y).get()||0;if($.test(g)){const{projection:v}=this.visualElement;if(v&&v.layout){const x=v.layout.layoutBox[y];x&&(g=j(x)*(parseFloat(g)/100))}}this.originPoint[y]=g}),m&&V.postRender(()=>m(c,h)),ge(this.visualElement,"transform");const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},r=(c,h)=>{const{dragPropagation:f,dragDirectionLock:d,onDirectionLock:m,onDrag:p}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:y}=h;if(d&&this.currentDirection===null){this.currentDirection=_l(y),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),p&&p(c,h)},a=(c,h)=>this.stop(c,h),l=()=>_(c=>{var h;return this.getAnimationState(c)==="paused"&&((h=this.getAxisMotionValue(c).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Yi(e,{onSessionStart:i,onStart:o,onMove:r,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Hi(this.visualElement)})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&V.postRender(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!It(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=Fl(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:s}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&ot(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=kl(i.layoutBox,n):this.constraints=!1,this.elastic=Ol(s),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&_(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=Il(i.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!ot(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Dl(s,i.root,this.visualElement.getTransformPagePoint());let r=Bl(i.layout.layoutBox,o);if(n){const a=n(Tl(r));this.hasMutatedConstraints=!!a,a&&(r=_i(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=_(c=>{if(!It(c,n,this.currentDirection))return;let h=l&&l[c]||{};r&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,m={type:"inertia",velocity:s?e[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return ge(this.visualElement,e),s.start(un(e,s,0,n,this.visualElement,!1))}stopAnimation(){_(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){_(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){_(n=>{const{drag:s}=this.getProps();if(!It(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n];o.set(e[n]-C(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!ot(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};_(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const l=a.get();i[r]=jl({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),_(r=>{if(!It(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:u}=this.constraints[r];a.set(C(l,u,i[r]))})}addListeners(){if(!this.visualElement.current)return;Nl.set(this.visualElement,this);const e=this.visualElement.current,n=Pt(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();ot(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),V.read(s);const r=Rt(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(_(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())});return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=De,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function It(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function _l(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Kl extends J{constructor(e){super(e),this.removeGroupControls=O,this.removeListeners=O,this.controls=new Ul(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||O}unmount(){this.removeGroupControls(),this.removeListeners()}}const is=t=>(e,n)=>{t&&V.postRender(()=>t(e,n))};class Wl extends J{constructor(){super(...arguments),this.removePointerDownListener=O}onPointerDown(e){this.session=new Yi(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Hi(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:is(e),onStart:is(n),onMove:s,onEnd:(o,r)=>{delete this.session,i&&V.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=Pt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ut={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rs(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const yt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(S.test(t))t=parseFloat(t);else return t;const n=rs(t,e.target.x),s=rs(t,e.target.y);return`${n}% ${s}%`}},$l={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=Z.parse(t);if(i.length>5)return s;const o=Z.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=l;const u=C(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=u),typeof i[3+r]=="number"&&(i[3+r]/=u),o(i)}};class Gl extends T.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;oo(zl),o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Ut.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,r=s.projection;return r&&(r.isPresent=o,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||V.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),_e.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function qi(t){const[e,n]=Sr(),s=T.useContext(Es);return D.jsx(Gl,{...t,layoutGroup:s,switchLayoutGroup:T.useContext(Hs),isPresent:e,safeToRemove:n})}const zl={borderRadius:{...yt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:yt,borderTopRightRadius:yt,borderBottomLeftRadius:yt,borderBottomRightRadius:yt,boxShadow:$l};function Hl(t,e,n){const s=k(t)?t:wt(t);return s.start(un("",s,e,n)),s.animation}function Yl(t){return t instanceof SVGElement&&t.tagName!=="svg"}const Xl=(t,e)=>t.depth-e.depth;class ql{constructor(){this.children=[],this.isDirty=!1}add(e){ke(this.children,e),this.isDirty=!0}remove(e){Be(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Xl),this.isDirty=!1,this.children.forEach(e)}}function Zl(t,e){const n=W.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(q(s),t(o-e))};return V.read(s,!0),()=>q(s)}const Zi=["TopLeft","TopRight","BottomLeft","BottomRight"],Jl=Zi.length,os=t=>typeof t=="string"?parseFloat(t):t,as=t=>typeof t=="number"||S.test(t);function Ql(t,e,n,s,i,o){i?(t.opacity=C(0,n.opacity!==void 0?n.opacity:1,tu(s)),t.opacityExit=C(e.opacity!==void 0?e.opacity:1,0,eu(s))):o&&(t.opacity=C(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let r=0;r<Jl;r++){const a=`border${Zi[r]}Radius`;let l=ls(e,a),u=ls(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||as(l)===as(u)?(t[a]=Math.max(C(os(l),os(u),s),0),($.test(u)||$.test(l))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=C(e.rotate||0,n.rotate||0,s))}function ls(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const tu=Ji(0,.5,mi),eu=Ji(.5,.95,O);function Ji(t,e,n){return s=>s<t?0:s>e?1:n(ht(t,e,s))}function us(t,e){t.min=e.min,t.max=e.max}function U(t,e){us(t.x,e.x),us(t.y,e.y)}function cs(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function hs(t,e,n,s,i){return t-=e,t=zt(t,1/n,s),i!==void 0&&(t=zt(t,1/i,s)),t}function nu(t,e=0,n=1,s=.5,i,o=t,r=t){if($.test(e)&&(e=parseFloat(e),e=C(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=C(o.min,o.max,s);t===o&&(a-=e),t.min=hs(t.min,e,n,a,i),t.max=hs(t.max,e,n,a,i)}function fs(t,e,[n,s,i],o,r){nu(t,e[n],e[s],e[i],e.scale,o,r)}const su=["x","scaleX","originX"],iu=["y","scaleY","originY"];function ds(t,e,n,s){fs(t.x,e,su,n?n.x:void 0,s?s.x:void 0),fs(t.y,e,iu,n?n.y:void 0,s?s.y:void 0)}function ms(t){return t.translate===0&&t.scale===1}function Qi(t){return ms(t.x)&&ms(t.y)}function ps(t,e){return t.min===e.min&&t.max===e.max}function ru(t,e){return ps(t.x,e.x)&&ps(t.y,e.y)}function gs(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function tr(t,e){return gs(t.x,e.x)&&gs(t.y,e.y)}function ys(t){return j(t.x)/j(t.y)}function vs(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class ou{constructor(){this.members=[]}add(e){ke(this.members,e),e.scheduleRender()}remove(e){if(Be(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){s=o;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function au(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=(n==null?void 0:n.z)||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:h,rotateY:f,skewX:d,skewY:m}=n;u&&(s=`perspective(${u}px) ${s}`),c&&(s+=`rotate(${c}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const le=["","X","Y","Z"],lu={visibility:"hidden"},xs=1e3;let uu=0;function ue(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function er(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=ai(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",V,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&er(s)}function nr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e==null?void 0:e()){this.id=uu++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(fu),this.nodes.forEach(yu),this.nodes.forEach(vu),this.nodes.forEach(du)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new ql)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Ie),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const l=this.eventHandlers.get(r);l&&l.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Yl(r),this.instance=r;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),t){let h;const f=()=>this.root.updateBlockedByResize=!1;t(r,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Zl(f,250),Ut.hasAnimatedSinceResize&&(Ut.hasAnimatedSinceResize=!1,this.nodes.forEach(Ps))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeLayoutChanged:d,layout:m})=>
vendor: 8,890 bytes, line 1
1{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||bu,{onLayoutAnimationStart:y,onLayoutAnimationComplete:g}=c.getProps(),v=!this.targetLayout||!tr(this.targetLayout,m),x=!f&&d;if(this.options.layoutRoot||this.resumeFrom||x||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,x);const w={...Oe(p,"layout"),onPlay:y,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else f||Ps(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,q(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(xu),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&er(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const h=this.path[c];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ts);return}this.isUpdating||this.nodes.forEach(pu),this.isUpdating=!1,this.nodes.forEach(gu),this.nodes.forEach(cu),this.nodes.forEach(hu),this.clearAllSnapshots();const a=W.now();L.delta=Y(0,1e3/60,a-L.timestamp),L.timestamp=a,L.isProcessing=!0,te.update.process(L),te.preRender.process(L),te.render.process(L),L.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,_e.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(mu),this.sharedNodes.forEach(Tu)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,V.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){V.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!j(this.snapshot.measuredBox.x)&&!j(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutCorrected=R(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Qi(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;r&&(a||tt(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return r&&(l=this.removeTransform(l)),wu(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var r;const{visualElement:a}=this.options;if(!a)return R();const l=a.measureViewportBox();if(!(((r=this.scroll)===null||r===void 0?void 0:r.wasRoot)||this.path.some(Au))){const{scroll:c}=this.root;c&&(ut(l.x,c.offset.x),ut(l.y,c.offset.y))}return l}removeElementScroll(r){var a;const l=R();if(U(l,r),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:h,options:f}=c;c!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&U(l,r),ut(l.x,h.offset.x),ut(l.y,h.offset.y))}return l}applyTransform(r,a=!1){const l=R();U(l,r);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&ct(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),tt(c.latestValues)&&ct(l,c.latestValues)}return tt(this.latestValues)&&ct(l,this.latestValues),l}removeTransform(r){const a=R();U(a,r);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!tt(u.latestValues))continue;Ce(u.latestValues)&&u.updateSnapshot();const c=R(),h=u.measurePageBox();U(c,h),ds(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return tt(this.latestValues)&&ds(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}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!==L.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(r||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:f}=this.options;if(!(!this.layout||!(h||f))){if(this.resolvedRelativeTargetAt=L.timestamp,!this.targetDelta&&!this.relativeTarget){const d=this.getClosestProjectingParent();d&&d.layout&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=R(),this.relativeTargetOrigin=R(),bt(this.relativeTargetOrigin,this.layout.layoutBox,d.layout.layoutBox),U(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=R(),this.targetWithTransforms=R()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Cl(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):U(this.target,this.layout.layoutBox),Gi(this.target,this.targetDelta)):U(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const d=this.getClosestProjectingParent();d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=R(),this.relativeTargetOrigin=R(),bt(this.relativeTargetOrigin,this.target,d.target),U(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Ce(this.parent.latestValues)||$i(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var r;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((r=this.parent)===null||r===void 0)&&r.isProjectionDirty)&&
vendor: 9,531 bytes, line 1
1(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===L.timestamp&&(u=!1),u)return;const{layout:c,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||h))return;U(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;Ml(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=R());const{target:m}=a;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(cs(this.prevProjectionDelta.x,this.projectionDelta.x),cs(this.prevProjectionDelta.y,this.projectionDelta.y)),St(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!vs(this.projectionDelta.x,this.prevProjectionDelta.x)||!vs(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),r){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=lt(),this.projectionDelta=lt(),this.projectionDeltaWithTransform=lt()}setAnimationOrigin(r,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},h=lt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=R(),d=l?l.source:void 0,m=this.layout?this.layout.source:void 0,p=d!==m,y=this.getStack(),g=!y||y.members.length<=1,v=!!(p&&!g&&this.options.crossfade===!0&&!this.path.some(Su));this.animationProgress=0;let x;this.mixTargetDelta=w=>{const P=w/1e3;Ss(h.x,r.x,P),Ss(h.y,r.y,P),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(bt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Pu(this.relativeTarget,this.relativeTargetOrigin,f,P),x&&ru(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=R()),U(x,this.relativeTarget)),p&&(this.animationValues=c,Ql(c,u,this.latestValues,P,v,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(q(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=V.update(()=>{Ut.hasAnimatedSinceResize=!0,this.currentAnimation=Hl(0,xs,{...r,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.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);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(xs),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=r;if(!(!a||!l||!u)){if(this!==r&&this.layout&&u&&sr(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||R();const h=j(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const f=j(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+f}U(a,l),ct(a,c),St(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new ou),this.sharedNodes.get(r).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){var r;const{layoutId:a}=this.options;return a?((r=this.getStack())===null||r===void 0?void 0:r.lead)||this:this}getPrevLead(){var r;const{layoutId:a}=this.options;return a?(r=this.getStack())===null||r===void 0?void 0:r.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&ue("z",r,u,this.animationValues);for(let c=0;c<le.length;c++)ue(`rotate${le[c]}`,r,u,this.animationValues),ue(`skew${le[c]}`,r,u,this.animationValues);r.render();for(const c in u)r.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);r.scheduleRender()}getProjectionStyles(r){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return lu;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Nt(r==null?void 0:r.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const p={};return this.options.layoutId&&(p.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,p.pointerEvents=Nt(r==null?void 0:r.pointerEvents)||""),this.hasProjected&&!tt(this.latestValues)&&(p.transform=c?c({},""):"none",this.hasProjected=!1),p}const f=h.animationValues||h.latestValues;this.applyTransformsToTarget(),u.transform=au(this.projectionDeltaWithTransform,this.treeScale,f),c&&(u.transform=c(f,u.transform));const{x:d,y:m}=this.projectionDelta;u.transformOrigin=`${d.origin*100}% ${m.origin*100}% 0`,h.animationValues?u.opacity=h===this?(l=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=h===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const p in Vt){if(f[p]===void 0)continue;const{correct:y,applyTo:g,isCSSVariable:v}=Vt[p],x=u.transform==="none"?f[p]:y(f[p],h);if(g){const w=g.length;for(let P=0;P<w;P++)u[g[P]]=x}else v?this.options.visualElement.renderState.vars[p]=x:u[p]=x}return this.options.layoutId&&(u.pointerEvents=h===this?Nt(r==null?void 0:r.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>{var a;return(a=r.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Ts),this.root.sharedNodes.clear()}}}function cu(t){t.updateLayout()}function hu(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:o}=t.options,r=n.source!==t.layout.source;o==="size"?_(h=>{const f=r?n.measuredBox[h]:n.layoutBox[h],d=j(f);f.min=s[h].min,f.max=f.min+d}):sr(o,n.layoutBox,s)&&_(h=>{const f=r?n.measuredBox[h]:n.layoutBox[h],d=j(s[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=lt();St(a,s,n.layoutBox);const l=lt();r?St(l,t.applyTransform(i,!0),n.measuredBox):St(l,s,n.layoutBox);const u=!Qi(a);let c=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const m=R();bt(m,n.layoutBox,f.layoutBox);const p=R();bt(p,s,d.layoutBox),tr(m,p)||(c=!0),h.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=m,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function fu(t){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 du(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function mu(t){t.clearSnapshot()}function Ts(t){t.clearMeasurements()}function pu(t){t.isLayoutDirty=!1}function gu(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ps(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function yu(t){t.resolveTargetDelta()}function vu(t){t.calcProjection()}
vendor: 9,464 bytes, line 1
1function xu(t){t.resetSkewAndRotation()}function Tu(t){t.removeLeadSnapshot()}function Ss(t,e,n){t.translate=C(e.translate,0,n),t.scale=C(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function bs(t,e,n,s){t.min=C(e.min,n.min,s),t.max=C(e.max,n.max,s)}function Pu(t,e,n,s){bs(t.x,e.x,n.x,s),bs(t.y,e.y,n.y,s)}function Su(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const bu={duration:.45,ease:[.4,0,.1,1]},ws=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),As=ws("applewebkit/")&&!ws("chrome/")?Math.round:O;function Vs(t){t.min=As(t.min),t.max=As(t.max)}function wu(t){Vs(t.x),Vs(t.y)}function sr(t,e,n){return t==="position"||t==="preserve-aspect"&&!Vl(ys(e),ys(n),.2)}function Au(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const Vu=nr({attachResizeListener:(t,e)=>Rt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ce={current:void 0},ir=nr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ce.current){const t=new Vu({});t.mount(window),t.setOptions({layoutScroll:!0}),ce.current=t}return ce.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Cu={pan:{Feature:Wl},drag:{Feature:Kl,ProjectionNode:ir,MeasureLayout:qi}};function Cs(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&V.postRender(()=>o(e,kt(e)))}class Mu extends J{mount(){const{current:e}=this.node;e&&(this.unmount=kr(e,(n,s)=>(Cs(this.node,s,"Start"),i=>Cs(this.node,i,"End"))))}unmount(){}}class Du extends J{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=Ft(Rt(this.node.current,"focus",()=>this.onFocus()),Rt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ms(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&V.postRender(()=>o(e,kt(e)))}class Ru extends J{mount(){const{current:e}=this.node;e&&(this.unmount=Or(e,(n,s)=>(Ms(this.node,s,"Start"),(i,{success:o})=>Ms(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Re=new WeakMap,he=new WeakMap,Eu=t=>{const e=Re.get(t.target);e&&e(t)},Lu=t=>{t.forEach(Eu)};function Fu({root:t,...e}){const n=t||document;he.has(n)||he.set(n,{});const s=he.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Lu,{root:t,...e})),s[i]}function ku(t,e,n){const s=Fu(e);return Re.set(t,n),s.observe(t),()=>{Re.delete(t),s.unobserve(t)}}const Bu={some:0,all:1};class ju extends J{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Bu[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),f=u?c:h;f&&f(l)};return ku(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Iu(e,n))&&this.startObserver()}unmount(){}}function Iu({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Ou={inView:{Feature:ju},tap:{Feature:Ru},focus:{Feature:Du},hover:{Feature:Mu}},Nu={layout:{ProjectionNode:ir,MeasureLayout:qi}},Ee={current:null},rr={current:!1};function Uu(){if(rr.current=!0,!!Le)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ee.current=t.matches;t.addListener(e),e()}else Ee.current=!1}const _u=[...Di,F,Z],Ku=t=>_u.find(Mi(t)),Wu=new WeakMap;function $u(t,e,n){for(const s in e){const i=e[s],o=n[s];if(k(i))t.addValue(s,i);else if(k(o))t.addValue(s,wt(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,wt(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Ds=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Gu{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:o,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=an,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=W.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,V.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:c}=r;this.onUpdate=c,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=Xt(n),this.isVariantNode=Gs(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const m=f[d];l[d]!==void 0&&k(m)&&m.set(l[d],!1)}}mount(e){this.current=e,Wu.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),rr.current||Uu(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ee.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),q(this.notifyUpdate),q(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=it.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&V.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o(),r&&r(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ft){const n=ft[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):R()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<Ds.length;s++){const i=Ds[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=$u(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
1addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=wt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){var s;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(s=this.getBaseTargetFromProps(this.props,e))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(Vi(i)||gi(i))?i=parseFloat(i):!Ku(i)&&Z.test(n)&&(i=bi(e,n)),this.setBaseTarget(e,k(i)?i.get():i)),k(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props;let i;if(typeof s=="string"||typeof s=="object"){const r=tn(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);r&&(i=r[e])}if(s&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!k(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Ie),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class or extends Gu{constructor(){super(...arguments),this.KeyframeResolver=Ri}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;k(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function zu(t){return window.getComputedStyle(t)}class Hu extends or{constructor(){super(...arguments),this.type="html",this.renderInstance=ni}readValueFromInstance(e,n){if(it.has(n))return ia(e,n);{const s=zu(e),i=(ze(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return zi(e,n)}build(e,n,s){Xe(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return en(e,n,s)}}class Yu extends or{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=R,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&ei(this.current,this.renderState)}}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(it.has(n)){const s=Si(n);return s&&s.default||0}return n=si.has(n)?n:Ge(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return ri(e,n,s)}onBindTransform(){this.current&&!this.renderState.dimensions&&V.postRender(this.updateDimensions)}build(e,n,s){Je(e,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,s,i){ii(e,n,s,i)}mount(e){this.isSVGTag=Qe(e.tagName),super.mount(e)}}const Xu=(t,e)=>Ze(t)?new Yu(e):new Hu(e,{allowProjection:t!==T.Fragment}),qu=Eo({...vl,...Ou,...Cu,...Nu},Xu),fe=zr(qu),Zu=(t=768)=>{const[e,n]=T.useState(!1);return T.useEffect(()=>{const s=()=>{n(window.innerWidth<t)};return s(),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}},[t]),e};function mc({data:t,className:e}){const n=hr(),s=Zu(768),[i,o]=T.useState(!1),r=fn(t.date,"dd"),a=fn(t.date,"MMMM yyyy");return D.jsx(mr,{href:`/media/${t.slug}`,children:D.jsxs(lr,{onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),className:gt("flex h-[300px] w-full flex-col overflow-hidden rounded-none border-none bg-raja-black/3 hover:cursor-pointer md:h-[400px]","motion-opacity-in-0 motion-translate-x-in-100 motion-blur-in-lg",e),children:[D.jsxs(ur,{className:"z-20 flex flex-col p-5 md:p-6",children:[D.jsxs("div",{children:[D.jsx("p",{className:gt("mb-2.5 text-raja-green text-sm leading-[100%] tracking-wider",{"text-white":i}),children:n.formatMessage({id:"news"})}),D.jsx("h3",{className:gt("mb-4 line-clamp-3 min-h-12 font-light text-lg leading-[100%] tracking-wider lg:line-clamp-4 lg:min-h-20",{"text-white":i}),children:t.title.length>80?`${t.title.slice(0,80)}...`:t.title})]}),D.jsx(fe.div,{animate:{y:i?75:0},transition:{type:"spring",stiffness:300,damping:60,mass:1.2,duration:.2},children:D.jsxs("div",{className:"flex items-center border-gray-200 border-t pt-3 lg:pt-2.5",children:[D.jsx("span",{className:"font-normal text-4xl text-raja-orange",children:r}),D.jsx("span",{className:`${gt("ml-auto text-raja-black",{"text-white":i})} text-k3-extralight`,children:a})]})}),D.jsx(fe.div,{animate:{animation:"ease",opacity:i?1:0},whileHover:{scale:1.05},whileTap:{scale:.95},children:D.jsxs("div",{className:"-bottom-20 md:-bottom-36 lg:-bottom-32 relative flex w-max cursor-pointer items-center rounded-full bg-white/40 px-4 py-2 font-normal text-white text-xs md:py-3.5",children:[D.jsx("span",{className:"text-white",children:n.formatMessage({id:"learnMore"})}),D.jsx(pr,{size:14,className:"ml-2"})]})})]}),D.jsx("div",{className:gt("absolute z-10 h-[300px] w-full bg-gray-900 opacity-50 md:h-[400px]",{"opacity-0":!i})}),D.jsx(cr,{className:"z-0 flex-1 p-0",children:D.jsx(fe.div,{animate:{scale:i?s?4:3:1,transformOrigin:"center bottom"},transition:{type:"spring",stiffness:300,damping:60,mass:1},className:"h-full w-full",children:D.jsx("img",{src:fr(t.image),alt:t.title,className:"z-0 h-full w-full object-cover",loading:"lazy"})})})]})})}function pc({paginated:t,limitPerPage:e,locale:n,excludeSlug:s}){const i=dr(),[o,r]=T.useState([]),[a,l]=T.useState(1),[u,c]=T.useState(1),[h,f]=T.useState([]),[d,m]=T.useState("loading"),p=T.useCallback(v=>{const x=Array.from(new Set(v.map(w=>new Date(w.date).getFullYear())));f(x)},[]),y=T.useCallback(async(v=a)=>{m("loading");try{const x=await i.news.getNews({page:v,limit:t?e??gr:yr,locale:n}),w=x.data.filter(P=>P.slug!==s);r(w),c(x.meta.pagination.pageCount),p(w),m("success")}catch{m("error")}},[i,t,e,a,p,n,s]);T.useEffect(()=>{y(a)},[y,a]);const g=T.useCallback(()=>{y(a)},[y,a]);return{data:o,dataState:d,page:a,totalPages:u,years:h,refetch:g,setPage:l}}export{uc as C,Ls as M,mc as N,Y as a,L as b,q as c,Ua as d,Pr as e,V as f,k as g,fc as h,Oa as i,cc as j,fe as k,Zu as l,wt as m,O as n,pc as o,ht as p,Fr as r,wr as s,Tr as u,ks as v,hc as w};
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.