1 line
123 KiB
JavaScript
1 line
123 KiB
JavaScript
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5591],{567:(t,e,i)=>{i.d(e,{V:()=>n});let n=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},2217:(t,e,i)=>{i.d(e,{D:()=>o});var n=i(82897),r=i(23492);let s={...i(90802).W,color:n.y,backgroundColor:n.y,outlineColor:n.y,fill:n.y,stroke:n.y,borderColor:n.y,borderTopColor:n.y,borderRightColor:n.y,borderBottomColor:n.y,borderLeftColor:n.y,filter:r.p,WebkitFilter:r.p},o=t=>s[t]},2735:(t,e,i)=>{function n(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function r(t,e,i,r){if("function"==typeof e){let[s,o]=n(r);e=e(void 0!==i?i:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,o]=n(r);e=e(void 0!==i?i:t.custom,s,o)}return e}i.d(e,{a:()=>r})},3870:(t,e,i)=>{i.d(e,{i:()=>n});let n=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)},4331:(t,e,i)=>{function n(t,e){-1===t.indexOf(e)&&t.push(e)}function r(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{W9:()=>l,vY:()=>d,Kq:()=>n,V1:()=>a,ph:()=>u,Xu:()=>p,lQ:()=>s,qB:()=>h,Ai:()=>r,fD:()=>c,fj:()=>m,$e:()=>o});let s=t=>t,o=s,a=s,l={skipAnimations:!1,useManualTiming:!1};function u(t){let e;return()=>(void 0===e&&(e=t()),e)}let h=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};class d{constructor(){this.subscriptions=[]}add(t){return n(this.subscriptions,t),()=>r(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let c=t=>1e3*t,p=t=>t/1e3;function m(t,e){return e?1e3/e*t:0}},4576:(t,e,i)=>{i.d(e,{I:()=>c,r:()=>d});let n=t=>180*t/Math.PI,r=t=>o(n(Math.atan2(t[1],t[0]))),s={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:r,rotateZ:r,skewX:t=>n(Math.atan(t[1])),skewY:t=>n(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},o=t=>((t%=360)<0&&(t+=360),t),a=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),l=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),u={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:a,scaleY:l,scale:t=>(a(t)+l(t))/2,rotateX:t=>o(n(Math.atan2(t[6],t[5]))),rotateY:t=>o(n(Math.atan2(-t[2],t[0]))),rotateZ:r,rotate:r,skewX:t=>n(Math.atan(t[4])),skewY:t=>n(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function h(t){return+!!t.includes("scale")}function d(t,e){let i,n;if(!t||"none"===t)return h(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=u,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=s,n=e}if(!n)return h(e);let o=i[e],a=n[1].split(",").map(p);return"function"==typeof o?o(a):a[o]}let c=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return d(i,e)};function p(t){return parseFloat(t.trim())}},5910:(t,e,i)=>{i.d(e,{p:()=>n});let n=t=>Array.isArray(t)},6340:(t,e,i)=>{i.d(e,{N:()=>n});function n(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}},6642:(t,e,i)=>{i.d(e,{B:()=>r});let n={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"]},r={};for(let t in n)r[t]={isEnabled:e=>n[t].some(t=>!!e[t])}},12083:(t,e,i)=>{i.d(e,{V:()=>a});var n=i(23082),r=i(45471),s=i(22282),o=i(97219);let a={test:(0,o.$)("hsl","hue"),parse:(0,o.q)("hue","saturation","lightness"),transform:t=>{let{hue:e,saturation:i,lightness:o,alpha:a=1}=t;return"hsla("+Math.round(e)+", "+r.KN.transform((0,s.a)(i))+", "+r.KN.transform((0,s.a)(o))+", "+(0,s.a)(n.X4.transform(a))+")"}}},12128:(t,e,i)=>{let n;i.d(e,{P6:()=>a,qU:()=>X,vG:()=>p,tu:()=>h,WG:()=>A,bt:()=>Z,XG:()=>d,Gt:()=>b,uv:()=>M,PP:()=>V,KZ:()=>g,rU:()=>l,PT:()=>F,DW:()=>m,WH:()=>c,Mc:()=>O,yL:()=>y,TU:()=>function t(e,i){if(e)return"function"==typeof e&&v()?g(e,i):m(e)?x(e):Array.isArray(e)?e.map(e=>t(e,i)||w.easeOut):w[e]},YE:()=>u,k2:()=>E,OQ:()=>tt,c$:()=>K,KJ:()=>B,Wp:()=>R,Qu:()=>T,nL:()=>v,Jb:()=>s,kB:()=>D});var r=i(4331);let s=(0,r.ph)(()=>void 0!==window.ScrollTimeline);class o{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t,e){let i=this.animations.map(i=>s()&&i.attachTimeline?i.attachTimeline(t):"function"==typeof e?e(i):void 0);return()=>{i.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class a extends o{then(t,e){return Promise.all(this.animations).then(t).catch(e)}}function l(t,e){return t?t[e]||t.default||t:void 0}let u=2e4;function h(t){let e=0,i=t.next(e);for(;!i.done&&e<u;)e+=50,i=t.next(e);return e>=u?1/0:e}function d(t,e=100,i){let n=i({...t,keyframes:[0,e]}),s=Math.min(h(n),u);return{type:"keyframes",ease:t=>n.next(s*t).value/e,duration:(0,r.Xu)(s)}}function c(t){return"function"==typeof t}function p(t,e){t.timeline=e,t.onfinish=null}let m=t=>Array.isArray(t)&&"number"==typeof t[0],f={linearEasing:void 0},v=function(t,e){let i=(0,r.ph)(t);return()=>{var t;return null!==(t=f[e])&&void 0!==t?t:i()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),g=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)n+=t((0,r.qB)(0,s-1,e))+", ";return`linear(${n.substring(0,n.length-2)})`};function y(t){return!!("function"==typeof t&&v()||!t||"string"==typeof t&&(t in w||v())||m(t)||Array.isArray(t)&&t.every(y))}let x=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,w={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:x([0,.65,.55,1]),circOut:x([.55,0,1,.45]),backIn:x([.31,.01,.66,-.59]),backOut:x([.33,1.53,.69,.99])},P=["read","resolveKeyframes","update","preRender","render","postRender"],T={value:null,addProjectionMetrics:null};function S(t,e){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},o=()=>i=!0,a=P.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,r=!1,s=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){o.has(e)&&(h.schedule(e),t()),l++,e(a)}let h={schedule:(t,e=!1,s=!1)=>{let a=s&&r?i:n;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(a=t,r){s=!0;return}r=!0,[i,n]=[n,i],i.forEach(u),e&&T.value&&T.value.frameloop[e].push(l),l=0,i.clear(),r=!1,s&&(s=!1,h.process(t))}};return h}(o,e?i:void 0),t),{}),{read:l,resolveKeyframes:u,update:h,preRender:d,render:c,postRender:p}=a,m=()=>{let o=r.W9.useManualTiming?s.timestamp:performance.now();i=!1,r.W9.useManualTiming||(s.delta=n?1e3/60:Math.max(Math.min(o-s.timestamp,40),1)),s.timestamp=o,s.isProcessing=!0,l.process(s),u.process(s),h.process(s),d.process(s),c.process(s),p.process(s),s.isProcessing=!1,i&&e&&(n=!1,t(m))},f=()=>{i=!0,n=!0,s.isProcessing||t(m)};return{schedule:P.reduce((t,e)=>{let n=a[e];return t[e]=(t,e=!1,r=!1)=>(i||f(),n.schedule(t,e,r)),t},{}),cancel:t=>{for(let e=0;e<P.length;e++)a[P[e]].cancel(t)},state:s,steps:a}}let{schedule:b,cancel:A,state:M,steps:V}=S("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:r.lQ,!0),{schedule:E}=S(queueMicrotask,!1);function k(){n=void 0}let D={now:()=>(void 0===n&&D.set(M.isProcessing||r.W9.useManualTiming?M.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(k)}},C={x:!1,y:!1};function R(t){return"x"===t||"y"===t?C[t]?null:(C[t]=!0,()=>{C[t]=!1}):C.x||C.y?null:(C.x=C.y=!0,()=>{C.x=C.y=!1})}function B(t,e,i){var n;if(t instanceof EventTarget)return[t];if("string"==typeof t){let r=document;e&&(r=e.current);let s=null!==(n=null==i?void 0:i[t])&&void 0!==n?n:r.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t)}function j(t,e){let i=B(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function L(t){return!("touch"===t.pointerType||C.x||C.y)}function F(t,e,i={}){let[n,r,s]=j(t,i),o=t=>{if(!L(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let s=t=>{L(t)&&(n(t),i.removeEventListener("pointerleave",s))};i.addEventListener("pointerleave",s,r)};return n.forEach(t=>{t.addEventListener("pointerenter",o,r)}),s}let U=(t,e)=>!!e&&(t===e||U(t,e.parentElement)),O=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,I=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),W=new WeakSet;function N(t){return e=>{"Enter"===e.key&&t(e)}}function G(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let q=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=N(()=>{if(W.has(i))return;G(i,"down");let t=N(()=>{G(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>G(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function H(t){return O(t)&&!(C.x||C.y)}function K(t,e,i={}){let[n,r,s]=j(t,i),o=t=>{let n=t.currentTarget;if(!H(t)||W.has(n))return;W.add(n);let s=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),H(t)&&W.has(n)&&(W.delete(n),"function"==typeof s&&s(t,{success:e}))},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||U(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{if((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),t instanceof HTMLElement)t.addEventListener("focus",t=>q(t,r)),!I.has(t.tagName)&&-1===t.tabIndex&&null===t.tabIndex&&(t.tabIndex=0)}),s}let X={layout:0,mainThread:0,waapi:0};function Y(){let{value:t}=statsBuffer;if(null===t){cancelFrame(Y);return}t.frameloop.rate.push(frameData.delta),t.animations.mainThread.push(activeAnimations.mainThread),t.animations.waapi.push(activeAnimations.waapi),t.animations.layout.push(activeAnimations.layout)}function Q(t){return t.reduce((t,e)=>t+e,0)/t.length}function z(t,e=Q){return 0===t.length?{min:0,max:0,avg:0}:{min:Math.min(...t),max:Math.max(...t),avg:e(t)}}let $=t=>Math.round(1e3/t),_=t=>!isNaN(parseFloat(t)),Z={current:void 0};class J{constructor(t,e={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=D.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=D.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=_(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new r.vY);let i=this.events[t].add(e);return"change"===t?()=>{i(),b.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Z.current&&Z.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=D.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,r.fj)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),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 tt(t,e){return new J(t,e)}let te=null,ti=null},14570:(t,e,i)=>{i.d(e,{S:()=>n});let n=t=>!!(t&&t.getVelocity)},16498:(t,e,i)=>{i.d(e,{G:()=>n});let n=t=>e=>1-t(1-e)},18203:(t,e,i)=>{i.d(e,{h:()=>d,q:()=>h});var n=i(12128),r=i(79280);let s=new Set,o=!1,a=!1;function l(){if(a){let t=Array.from(s).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=(0,r.W9)(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(e=>{var i;let[n,r]=e;null===(i=t.getValue(n))||void 0===i||i.set(r)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}a=!1,o=!1,s.forEach(t=>t.complete()),s.clear()}function u(){s.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(a=!0)})}function h(){u(),l()}class d{scheduleResolve(){this.isScheduled=!0,this.isAsync?(s.add(this),o||(o=!0,n.Gt.read(u),n.Gt.resolveKeyframes(l))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;for(let r=0;r<t.length;r++)if(null===t[r]){if(0===r){let r=null==n?void 0:n.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}else t[r]=t[r-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),s.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,s.delete(this))}resume(){this.isComplete||this.scheduleResolve()}constructor(t,e,i,n,r,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}}},18802:(t,e,i)=>{i.d(e,{U:()=>o});var n=i(12128),r=i(34379),s=i(20419);function o(t,e){let{transitionEnd:i={},transition:o={},...a}=(0,s.K)(t,e)||{};for(let e in a={...a,...i}){let i=(0,r.K)(a[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,n.OQ)(i))}}},19253:(t,e,i)=>{i.d(e,{O:()=>a,e:()=>o});var n=i(6340),r=i(65305),s=i(98312);function o(t){return(0,n.N)(t.animate)||s._.some(e=>(0,r.w)(t[e]))}function a(t){return!!(o(t)||t.variants)}},19578:(t,e,i)=>{i.d(e,{$:()=>u});var n=i(12128),r=i(31070),s=i(18802),o=i(76333),a=i(46926),l=i(83080);function u(t,e){var i;let{delay:u=0,transitionOverride:h,type:d}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{transition:c=t.getDefaultTransition(),transitionEnd:p,...m}=e;h&&(c=h);let f=[],v=d&&t.animationState&&t.animationState.getState()[d];for(let e in m){let s=t.getValue(e,null!==(i=t.latestValues[e])&&void 0!==i?i:null),h=m[e];if(void 0===h||v&&function(t,e){let{protectedKeys:i,needsAnimating:n}=t,r=i.hasOwnProperty(e)&&!0!==n[e];return n[e]=!1,r}(v,e))continue;let d={delay:u,...(0,n.rU)(c||{},e)},p=!1;if(window.MotionHandoffAnimation){let i=(0,a.P)(t);if(i){let t=window.MotionHandoffAnimation(i,e,n.Gt);null!==t&&(d.startTime=t,p=!0)}}(0,o.g)(t,e),s.start((0,l.f)(e,s,h,t.shouldReduceMotion&&r.$.has(e)?{type:!1}:d,t,p));let g=s.animation;g&&f.push(g)}return p&&Promise.all(f).then(()=>{n.Gt.update(()=>{p&&(0,s.U)(t,p)})}),f}},19780:(t,e,i)=>{i.d(e,{J:()=>o});var n=i(93013),r=i(23492),s=i(2217);function o(t,e){let i=(0,s.D)(t);return i!==r.p&&(i=n.f),i.getAnimatableNone?i.getAnimatableNone(e):void 0}},20419:(t,e,i)=>{i.d(e,{K:()=>r});var n=i(2735);function r(t,e,i){let r=t.getProps();return(0,n.a)(r,e,void 0!==i?i:r.custom,t)}},20600:(t,e,i)=>{i.d(e,{e:()=>n});function n(t,e,i,n){let{style:r,vars:s}=e;for(let e in Object.assign(t.style,r,n&&n.getProjectionStyles(i)),s)t.style.setProperty(e,s[e])}},20637:(t,e,i)=>{i.d(e,{$:()=>s,H:()=>r});var n=i(93676);let r={};function s(t){for(let e in t)r[e]=t[e],(0,n.j)(e)&&(r[e].isCSSVariable=!0)}},21109:(t,e,i)=>{i.d(e,{k:()=>n});let n=(t,e,i)=>t+(e-t)*i},22282:(t,e,i)=>{i.d(e,{a:()=>n});let n=t=>Math.round(1e5*t)/1e5},22363:(t,e,i)=>{i.d(e,{h:()=>n});let n=t=>Array.isArray(t)&&"number"!=typeof t[0]},22397:(t,e,i)=>{i.d(e,{b:()=>o});var n=i(14570),r=i(77212),s=i(33796);class o extends r.B{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,e){let{vars:i,style:n}=e;delete i[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,n.S)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent="".concat(t))}))}constructor(){super(...arguments),this.KeyframeResolver=s.K}}},23082:(t,e,i)=>{i.d(e,{X4:()=>s,ai:()=>r,hs:()=>o});var n=i(77782);let r={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s={...r,transform:t=>(0,n.q)(0,1,t)},o={...r,default:1}},23492:(t,e,i)=>{i.d(e,{p:()=>l});var n=i(93013),r=i(66479);let s=new Set(["brightness","contrast","saturate","opacity"]);function o(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(r.S)||[];if(!n)return t;let o=i.replace(n,""),a=+!!s.has(e);return n!==i&&(a*=100),e+"("+a+o+")"}let a=/\b([a-z-]*)\(.*?\)/gu,l={...n.f,getAnimatableNone:t=>{let e=t.match(a);return e?e.map(o).join(" "):t}}},24896:(t,e,i)=>{i.d(e,{o:()=>c});var n=i(12128),r=i(4331),s=i(77782),o=i(94344);let a={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};function l(t,e){return t*Math.sqrt(1-e*e)}let u=["duration","bounce"],h=["stiffness","damping","mass"];function d(t,e){return e.some(e=>void 0!==t[e])}function c(){let t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.visualDuration,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.bounce,c="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:i}:e,{restSpeed:p,restDelta:m}=c,f=c.keyframes[0],v=c.keyframes[c.keyframes.length-1],g={done:!1,value:f},{stiffness:y,damping:x,mass:w,duration:P,velocity:T,isResolvedFromDuration:S}=function(t){let e={velocity:a.velocity,stiffness:a.stiffness,damping:a.damping,mass:a.mass,isResolvedFromDuration:!1,...t};if(!d(t,h)&&d(t,u)){if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*(0,s.q)(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:a.mass,stiffness:n,damping:r}}else{let i=function(t){let e,i,{duration:n=a.duration,bounce:o=a.bounce,velocity:u=a.velocity,mass:h=a.mass}=t;(0,r.$e)(n<=(0,r.fD)(a.maxDuration),"Spring duration must be 10 seconds or less");let d=1-o;d=(0,s.q)(a.minDamping,a.maxDamping,d),n=(0,s.q)(a.minDuration,a.maxDuration,(0,r.Xu)(n)),d<1?(e=t=>{let e=t*d,i=e*n;return .001-(e-u)/l(t,d)*Math.exp(-i)},i=t=>{let i=t*d*n,r=Math.pow(d,2)*Math.pow(t,2)*n,s=Math.exp(-i),o=l(Math.pow(t,2),d);return(i*u+u-r)*s*(-e(t)+.001>0?-1:1)/o}):(e=t=>-.001+Math.exp(-t*n)*((t-u)*n+1),i=t=>n*n*(u-t)*Math.exp(-t*n));let c=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(e,i,5/n);if(n=(0,r.fD)(n),isNaN(c))return{stiffness:a.stiffness,damping:a.damping,duration:n};{let t=Math.pow(c,2)*h;return{stiffness:t,damping:2*d*Math.sqrt(h*t),duration:n}}}(t);(e={...e,...i,mass:a.mass}).isResolvedFromDuration=!0}}return e}({...c,velocity:-(0,r.Xu)(c.velocity||0)}),b=T||0,A=x/(2*Math.sqrt(y*w)),M=v-f,V=(0,r.Xu)(Math.sqrt(y/w)),E=5>Math.abs(M);if(p||(p=E?a.restSpeed.granular:a.restSpeed.default),m||(m=E?a.restDelta.granular:a.restDelta.default),A<1){let e=l(V,A);t=t=>v-Math.exp(-A*V*t)*((b+A*V*M)/e*Math.sin(e*t)+M*Math.cos(e*t))}else if(1===A)t=t=>v-Math.exp(-V*t)*(M+(b+V*M)*t);else{let e=V*Math.sqrt(A*A-1);t=t=>{let i=Math.exp(-A*V*t),n=Math.min(e*t,300);return v-i*((b+A*V*M)*Math.sinh(n)+e*M*Math.cosh(n))/e}}let k={calculatedDuration:S&&P||null,next:e=>{let i=t(e);if(S)g.done=e>=P;else{let n=0;A<1&&(n=0===e?(0,r.fD)(b):(0,o.Y)(t,e,i));let s=Math.abs(v-i)<=m;g.done=Math.abs(n)<=p&&s}return g.value=g.done?v:i,g},toString:()=>{let t=Math.min((0,n.tu)(k),n.YE),e=(0,n.KZ)(e=>k.next(t*e).value,t,30);return t+"ms "+e}};return k}},24935:(t,e,i)=>{i.d(e,{B:()=>u});var n=i(77782),r=i(23082),s=i(22282),o=i(97219);let a=t=>(0,n.q)(0,255,t),l={...r.ai,transform:t=>Math.round(a(t))},u={test:(0,o.$)("rgb","red"),parse:(0,o.q)("red","green","blue"),transform:t=>{let{red:e,green:i,blue:n,alpha:o=1}=t;return"rgba("+l.transform(e)+", "+l.transform(i)+", "+l.transform(n)+", "+(0,s.a)(r.X4.transform(o))+")"}}},27885:(t,e,i)=>{i.d(e,{l:()=>f});var n=i(12128),r=i(81786),s=i(22397),o=i(78450),a=i(2217),l=i(87387),u=i(97914),h=i(36381),d=i(93095),c=i(50621),p=i(33869),m=i(34527);class f extends s.b{getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(l.f.has(e)){let t=(0,a.D)(e);return t&&t.default||0}return e=h.e.has(e)?e:(0,o.I)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return(0,m.x)(t,e,i)}onBindTransform(){this.current&&!this.renderState.dimensions&&n.Gt.postRender(this.updateDimensions)}build(t,e,i){(0,u.B)(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,n){(0,p.d)(t,e,i,n)}mount(t){this.isSVGTag=(0,d.n)(t.tagName),super.mount(t)}constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=r.ge,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&(0,c.H)(this.current,this.renderState)}}}},31070:(t,e,i)=>{i.d(e,{$:()=>n});let n=new Set(["width","height","top","left","right","bottom",...i(87387).U])},31788:(t,e,i)=>{i.d(e,{n:()=>n});let n="data-"+(0,i(78450).I)("framerAppearId")},32082:(t,e,i)=>{i.d(e,{xQ:()=>s});var n=i(12115),r=i(80845);function s(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,n.useContext)(r.t);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:s,register:o}=e,a=(0,n.useId)();(0,n.useEffect)(()=>{if(t)return o(a)},[t]);let l=(0,n.useCallback)(()=>t&&s&&s(a),[a,s,t]);return!i&&s?[!1,l]:[!0]}},33055:(t,e,i)=>{i.d(e,{z:()=>s});var n=i(20637),r=i(87387);function s(t,e){let{layout:i,layoutId:s}=e;return r.f.has(t)||t.startsWith("origin")||(i||void 0!==s)&&(!!n.H[t]||"opacity"===t)}},33757:(t,e,i)=>{i.d(e,{L:()=>o,m:()=>s});var n=i(78588),r=i(96147);function s(t,e){return(0,n.FY)((0,n.bS)(t.getBoundingClientRect(),e))}function o(t,e,i){let n=s(t,i),{scroll:o}=e;return o&&((0,r.Ql)(n.x,o.offset.x),(0,r.Ql)(n.y,o.offset.y)),n}},33796:(t,e,i)=>{i.d(e,{K:()=>f});var n=i(56440),r=i(31070),s=i(93013),o=i(19780);let a=new Set(["auto","none","0"]);var l=i(18203),u=i(4331),h=i(3870),d=i(93676);let c=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var p=i(79280),m=i(39067);class f extends l.h{readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&(n=n.trim(),(0,d.p)(n))){let r=function t(e,i){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;(0,u.V1)(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));let[r,s]=function(t){let e=c.exec(t);if(!e)return[,];let[,i,n,r]=e;return["--".concat(null!=i?i:n),r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let t=o.trim();return(0,h.i)(t)?parseFloat(t):t}return(0,d.p)(s)?t(s,i,n+1):s}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!r.$.has(i)||2!==t.length)return;let[n,s]=t,o=(0,m.n)(n),a=(0,m.n)(s);if(o!==a){if((0,p.E4)(o)&&(0,p.E4)(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var r;("number"==typeof(r=t[e])?0===r:null===r||"none"===r||"0"===r||(0,n.$)(r))&&i.push(e)}i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!a.has(e)&&(0,s.V)(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=(0,o.J)(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=p.Hr[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(i);r&&r.jump(this.measuredOrigin,!1);let s=n.length-1,o=n[s];n[s]=p.Hr[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEach(t=>{let[i,n]=t;e.getValue(i).set(n)}),this.resolveNoneKeyframes()}constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}}},33869:(t,e,i)=>{i.d(e,{d:()=>o});var n=i(78450),r=i(20600),s=i(36381);function o(t,e,i,o){for(let i in(0,r.e)(t,e,void 0,o),e.attrs)t.setAttribute(s.e.has(i)?i:(0,n.I)(i),e.attrs[i])}},34379:(t,e,i)=>{i.d(e,{B:()=>r,K:()=>s});var n=i(5910);let r=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),s=t=>(0,n.p)(t)?t[t.length-1]||0:t},34527:(t,e,i)=>{i.d(e,{x:()=>o});var n=i(14570),r=i(87387),s=i(60990);function o(t,e,i){let o=(0,s.x)(t,e,i);for(let i in t)((0,n.S)(t[i])||(0,n.S)(e[i]))&&(o[-1!==r.U.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return o}},35580:(t,e,i)=>{i.d(e,{z:()=>o});var n=i(12128),r=i(14570),s=i(83080);function o(t,e,i){let o=(0,r.S)(t)?t:(0,n.OQ)(t);return o.start((0,s.f)("",o,e,i)),o.animation}},35695:(t,e,i)=>{var n=i(18999);i.o(n,"redirect")&&i.d(e,{redirect:function(){return n.redirect}}),i.o(n,"useParams")&&i.d(e,{useParams:function(){return n.useParams}}),i.o(n,"usePathname")&&i.d(e,{usePathname:function(){return n.usePathname}}),i.o(n,"useRouter")&&i.d(e,{useRouter:function(){return n.useRouter}})},36381:(t,e,i)=>{i.d(e,{e:()=>n});let n=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"])},37281:(t,e,i)=>{i.d(e,{P:()=>is});var n,r,s=i(4331),o=i(6340),a=i(78660),l=i(5910);function u(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}var h=i(65305),d=i(98312);let c=d._.length;var p=i(20419);let m=[...d.U].reverse(),f=d.U.length;function v(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function g(){return{animate:v(!0),whileInView:v(),whileHover:v(),whileTap:v(),whileDrag:v(),whileFocus:v(),exit:v()}}class y{update(){}constructor(t){this.isMounted=!1,this.node=t}}class x extends y{updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,o.N)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(e=>{let{animation:i,options:n}=e;return(0,a._)(t,i,n)})),i=g(),n=!0,r=e=>(i,n)=>{var r;let s=(0,p.K)(t,n,"exit"===e?null===(r=t.presenceContext)||void 0===r?void 0:r.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function s(s){let{props:a}=t,v=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<c;t++){let n=d._[t],r=e.props[n];((0,h.w)(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},g=[],y=new Set,x={},w=1/0;for(let e=0;e<f;e++){var P,T;let d=m[e],c=i[d],p=void 0!==a[d]?a[d]:v[d],f=(0,h.w)(p),S=d===s?c.isActive:null;!1===S&&(w=e);let b=p===v[d]&&p!==a[d]&&f;if(b&&n&&t.manuallyAnimateOnMount&&(b=!1),c.protectedKeys={...x},!c.isActive&&null===S||!p&&!c.prevProp||(0,o.N)(p)||"boolean"==typeof p)continue;let A=(P=c.prevProp,"string"==typeof(T=p)?T!==P:!!Array.isArray(T)&&!u(T,P)),M=A||d===s&&c.isActive&&!b&&f||e>w&&f,V=!1,E=Array.isArray(p)?p:[p],k=E.reduce(r(d),{});!1===S&&(k={});let{prevResolvedValues:D={}}=c,C={...D,...k},R=e=>{M=!0,y.has(e)&&(V=!0,y.delete(e)),c.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in C){let e=k[t],i=D[t];if(x.hasOwnProperty(t))continue;let n=!1;((0,l.p)(e)&&(0,l.p)(i)?u(e,i):e===i)?void 0!==e&&y.has(t)?R(t):c.protectedKeys[t]=!0:null!=e?R(t):y.add(t)}c.prevProp=p,c.prevResolvedValues=k,c.isActive&&(x={...x,...k}),n&&t.blockInitialAnimation&&(M=!1);let B=!(b&&A)||V;M&&B&&g.push(...E.map(t=>({animation:t,options:{type:d}})))}if(y.size){let e={};if("boolean"!=typeof a.initial){let i=(0,p.K)(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}y.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=null!=n?n:null}),g.push({animation:e})}let S=!!g.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(S=!1),n=!1,S?e(g):Promise.resolve()}return{animateChanges:s,setActive:function(e,n){var r;if(i[e].isActive===n)return Promise.resolve();null===(r=t.variantChildren)||void 0===r||r.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,n)}),i[e].isActive=n;let o=s(e);for(let t in i)i[t].protectedKeys={};return o},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=g(),n=!0}}}(t))}}let w=0;class P extends y{update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}constructor(){super(...arguments),this.id=w++}}var T=i(12128),S=i(83080);function b(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}function A(t){return{point:{x:t.pageX,y:t.pageY}}}let M=t=>e=>(0,T.Mc)(e)&&t(e,A(e));function V(t,e,i,n){return b(t,e,M(i),n)}var E=i(78588),k=i(21109);function D(t){return t.max-t.min}function C(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;t.origin=n,t.originPoint=(0,k.k)(e.min,e.max,t.origin),t.scale=D(i)/D(e),t.translate=(0,k.k)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function R(t,e,i,n){C(t.x,e.x,i.x,n?n.originX:void 0),C(t.y,e.y,i.y,n?n.originY:void 0)}function B(t,e,i){t.min=i.min+e.min,t.max=t.min+D(e)}function j(t,e,i){t.min=e.min-i.min,t.max=t.min+D(e)}function L(t,e,i){j(t.x,e.x,i.x),j(t.y,e.y,i.y)}var F=i(81786);function U(t){return[t("x"),t("y")]}var O=i(33757);let I=t=>{let{current:e}=t;return e?e.ownerDocument.defaultView:null};function W(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var N=i(45471),G=i(76333);let q=(t,e)=>Math.abs(t-e);var H=i(97007);class K{updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,T.WG)(this.updatePoint)}constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=Q(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(q(t.x,e.x)**2+q(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:r}=T.uv;this.history.push({...n,timestamp:r});let{onStart:s,onMove:o}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=X(e,this.transformPagePoint),T.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=Q("pointercancel"===t.type?this.lastMoveEventInfo:X(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!(0,T.Mc)(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let s=X(A(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=T.uv;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,Q(s,this.history)),this.removeListeners=(0,H.F)(V(this.contextWindow,"pointermove",this.handlePointerMove),V(this.contextWindow,"pointerup",this.handlePointerUp),V(this.contextWindow,"pointercancel",this.handlePointerUp))}}function X(t,e){return e?{point:e(t.point)}:t}function Y(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Q(t,e){let{point:i}=t;return{point:i,delta:Y(i,z(e)),offset:Y(i,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=z(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>(0,s.fD)(.1)));)i--;if(!n)return{x:0,y:0};let o=(0,s.Xu)(r.timestamp-n.timestamp);if(0===o)return{x:0,y:0};let a={x:(r.x-n.x)/o,y:(r.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e,.1)}}function z(t){return t[t.length-1]}var $=i(77782);function _(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function Z(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function J(t,e,i){return{min:tt(t,e),max:tt(t,i)}}function tt(t,e){return"number"==typeof t?t:t[e]||0}let te=new WeakMap;class ti{start(t){let{snapToCursor:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new K(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(A(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,T.Wp)(i),!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),U(t=>{let e=this.getAxisMotionValue(t).get()||0;if(N.KN.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=D(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&T.Gt.postRender(()=>r(t,e)),(0,G.g)(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>U(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:I(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:r}=this.getProps();r&&T.Gt.postRender(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!tn(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,e,i){let{min:n,max:r}=e;return void 0!==n&&t<n?t=i?(0,k.k)(n,t,i.min):Math.max(t,n):void 0!==r&&t>r&&(t=i?(0,k.k)(r,t,i.max):Math.min(t,r)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,r=this.constraints;e&&W(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,e){let{top:i,left:n,bottom:r,right:s}=e;return{x:_(t.x,n,s),y:_(t.y,i,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.35;return!1===t?t=0:!0===t&&(t=.35),{x:J(t,"left","right"),y:J(t,"top","bottom")}}(i),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&U(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!W(e))return!1;let n=e.current;(0,s.V1)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let o=(0,O.L)(n,r.root,this.visualElement.getTransformPagePoint()),a={x:Z((t=r.layout.layoutBox).x,o.x),y:Z(t.y,o.y)};if(i){let t=i((0,E.pA)(a));this.hasMutatedConstraints=!!t,t&&(a=(0,E.FY)(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(U(o=>{if(!tn(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,G.g)(this.visualElement,t),i.start((0,S.f)(t,i,0,e,this.visualElement,!1))}stopAnimation(){U(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){U(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e="_drag".concat(t.toUpperCase()),i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){U(e=>{let{drag:i}=this.getProps();if(!tn(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e];r.set(t[e]-(0,k.k)(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!W(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};U(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=D(t),r=D(e);return r>n?i=(0,s.qB)(e.min,e.max-n,t.min):n>r&&(i=(0,s.qB)(t.min,t.max-r,e.min)),(0,$.q)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),U(e=>{if(!tn(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set((0,k.k)(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;te.set(this.visualElement,this);let t=V(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();W(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),T.Gt.read(e);let r=b(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:i}=t;this.isDragging&&i&&(U(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,F.ge)(),this.visualElement=t}}function tn(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class tr extends y{mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||s.lQ}unmount(){this.removeGroupControls(),this.removeListeners()}constructor(t){super(t),this.removeGroupControls=s.lQ,this.removeListeners=s.lQ,this.controls=new ti(t)}}let ts=t=>(e,i)=>{t&&T.Gt.postRender(()=>t(e,i))};class to extends y{onPointerDown(t){this.session=new K(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:I(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:ts(t),onStart:ts(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&T.Gt.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=V(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}constructor(){super(...arguments),this.removePointerDownListener=s.lQ}}var ta=i(95155),tl=i(12115),tu=i(32082),th=i(90869);let td=(0,tl.createContext)({}),tc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function tp(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let tm={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!N.px.test(t))return t;t=parseFloat(t)}let i=tp(t,e.target.x),n=tp(t,e.target.y);return"".concat(i,"% ").concat(n,"%")}};var tf=i(93013),tv=i(20637);class tg extends tl.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;(0,tv.$)(tx),r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),tc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,s=i.projection;return s&&(s.isPresent=r,n||t.layoutDependency!==e||void 0===e||t.isPresent!==r?s.willUpdate():this.safeToRemove(),t.isPresent===r||(r?s.promote():s.relegate()||T.Gt.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),T.k2.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ty(t){let[e,i]=(0,tu.xQ)(),n=(0,tl.useContext)(th.L);return(0,ta.jsx)(tg,{...t,layoutGroup:n,switchLayoutGroup:(0,tl.useContext)(td),isPresent:e,safeToRemove:i})}let tx={borderRadius:{...tm,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tm,borderTopRightRadius:tm,borderBottomLeftRadius:tm,borderBottomRightRadius:tm,boxShadow:{correct:(t,e)=>{let{treeScale:i,projectionDelta:n}=e,r=tf.f.parse(t);if(r.length>5)return t;let s=tf.f.createTransformer(t),o=+("number"!=typeof r[0]),a=n.x.scale*i.x,l=n.y.scale*i.y;r[0+o]/=a,r[1+o]/=l;let u=(0,k.k)(a,l,.5);return"number"==typeof r[2+o]&&(r[2+o]/=u),"number"==typeof r[3+o]&&(r[3+o]/=u),s(r)}}};var tw=i(35580),tP=i(46926),tT=i(66373);let tS=(t,e)=>t.depth-e.depth;class tb{add(t){(0,s.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,s.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(tS),this.isDirty=!1,this.children.forEach(t)}constructor(){this.children=[],this.isDirty=!1}}var tA=i(34379),tM=i(14570);function tV(t){let e=(0,tM.S)(t)?t.get():t;return(0,tA.B)(e)?e.toValue():e}var tE=i(59282);let tk=["TopLeft","TopRight","BottomLeft","BottomRight"],tD=tk.length,tC=t=>"string"==typeof t?parseFloat(t):t,tR=t=>"number"==typeof t||N.px.test(t);function tB(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let tj=tF(0,.5,tE.yT),tL=tF(.5,.95,s.lQ);function tF(t,e,i){return n=>n<t?0:n>e?1:i((0,s.qB)(t,e,n))}function tU(t,e){t.min=e.min,t.max=e.max}function tO(t,e){tU(t.x,e.x),tU(t.y,e.y)}function tI(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var tW=i(96147);function tN(t,e,i,n,r){return t-=e,t=(0,tW.hq)(t,1/i,n),void 0!==r&&(t=(0,tW.hq)(t,1/r,n)),t}function tG(t,e,i,n,r){let[s,o,a]=i;!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,r=arguments.length>4?arguments[4]:void 0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:t;if(N.KN.test(e)&&(e=parseFloat(e),e=(0,k.k)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,k.k)(s.min,s.max,n);t===s&&(a-=e),t.min=tN(t.min,e,i,a,r),t.max=tN(t.max,e,i,a,r)}(t,e[s],e[o],e[a],e.scale,n,r)}let tq=["x","scaleX","originX"],tH=["y","scaleY","originY"];function tK(t,e,i,n){tG(t.x,e,tq,i?i.x:void 0,n?n.x:void 0),tG(t.y,e,tH,i?i.y:void 0,n?n.y:void 0)}function tX(t){return 0===t.translate&&1===t.scale}function tY(t){return tX(t.x)&&tX(t.y)}function tQ(t,e){return t.min===e.min&&t.max===e.max}function tz(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function t$(t,e){return tz(t.x,e.x)&&tz(t.y,e.y)}function t_(t){return D(t.x)/D(t.y)}function tZ(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class tJ{add(t){(0,s.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,s.Ai)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}constructor(){this.members=[]}}var t0=i(62662);let t1={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},t2=["","X","Y","Z"],t3={visibility:"hidden"},t7=0;function t5(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function t9(t){let{attachResizeListener:e,defaultParent:i,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}=t;return class{addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new s.vY),this.eventHandlers.get(t).add(e)}notifyListeners(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];let r=this.eventHandlers.get(t);r&&r.notify(...i)}hasListeners(t){return this.eventHandlers.has(t)}mount(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root.hasTreeAnimated;if(this.instance)return;this.isSVG=(0,tT.x)(t),this.instance=t;let{layoutId:n,layout:r,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||n)&&(this.isLayoutDirty=!0),e){let i;let n=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=T.kB.now(),n=r=>{let{timestamp:s}=r,o=s-i;o>=250&&((0,T.WG)(n),t(o-e))};return T.Gt.read(n,!0),()=>(0,T.WG)(n)}(n,250),tc.hasAnimatedSinceResize&&(tc.hasAnimatedSinceResize=!1,this.nodes.forEach(es))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&s&&(n||r)&&this.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:i,hasRelativeLayoutChanged:n,layout:r}=t;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||s.getDefaultTransition()||ep,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=s.getProps(),u=!this.targetLayout||!t$(this.targetLayout,r),h=!i&&n;if(this.options.layoutRoot||this.resumeFrom||h||i&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,h);let t={...(0,T.rU)(o,"layout"),onPlay:a,onComplete:l};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else i||es(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,T.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(el),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=(0,tP.P)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",T.Gt,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ei);return}this.isUpdating||this.nodes.forEach(en),this.isUpdating=!1,this.nodes.forEach(er),this.nodes.forEach(t8),this.nodes.forEach(t4),this.clearAllSnapshots();let t=T.kB.now();T.uv.delta=(0,$.q)(0,1e3/60,t-T.uv.timestamp),T.uv.timestamp=t,T.uv.isProcessing=!0,T.PP.update.process(T.uv),T.PP.preRender.process(T.uv),T.PP.render.process(T.uv),T.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,T.k2.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ee),this.sharedNodes.forEach(eu)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,T.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){T.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||D(this.snapshot.measuredBox.x)||D(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=(0,F.ge)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=r(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!o)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!tY(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&(e||(0,t0.HD)(this.latestValues)||r)&&(o(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(){var t;let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],i=this.measurePageBox(),n=this.removeElementScroll(i);return e&&(n=this.removeTransform(n)),ev((t=n).x),ev(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return(0,F.ge)();let i=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(ey))){let{scroll:t}=this.root;t&&((0,tW.Ql)(i.x,t.offset.x),(0,tW.Ql)(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=(0,F.ge)();if(tO(i,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let n=this.path[e],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&tO(i,t),(0,tW.Ql)(i.x,r.offset.x),(0,tW.Ql)(i.y,r.offset.y))}return i}applyTransform(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=(0,F.ge)();tO(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(0,tW.Ww)(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),(0,t0.HD)(n.latestValues)&&(0,tW.Ww)(i,n.latestValues)}return(0,t0.HD)(this.latestValues)&&(0,tW.Ww)(i,this.latestValues),i}removeTransform(t){let e=(0,F.ge)();tO(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,t0.HD)(i.latestValues))continue;(0,t0.vk)(i.latestValues)&&i.updateSnapshot();let n=(0,F.ge)();tO(n,i.measurePageBox()),tK(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return(0,t0.HD)(this.latestValues)&&tK(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==T.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(){var t,e,i,n;let r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);let o=!!this.resumingFrom||this!==s;if(!(r||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=T.uv.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,F.ge)(),this.relativeTargetOrigin=(0,F.ge)(),L(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),tO(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=(0,F.ge)(),this.targetWithTransforms=(0,F.ge)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),e=this.target,i=this.relativeTarget,n=this.relativeParent.target,B(e.x,i.x,n.x),B(e.y,i.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):tO(this.target,this.layout.layoutBox),(0,tW.o4)(this.target,this.targetDelta)):tO(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,F.ge)(),this.relativeTargetOrigin=(0,F.ge)(),L(this.relativeTargetOrigin,this.target,t.target),tO(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}T.Qu.value&&t1.calculatedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||(0,t0.vk)(this.parent.latestValues)||(0,t0.vF)(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(n=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===T.uv.timestamp&&(n=!1),n)return;let{layout:r,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||s))return;tO(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;(0,tW.OU)(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=(0,F.ge)());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(tI(this.prevProjectionDelta.x,this.projectionDelta.x),tI(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),R(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&tZ(this.projectionDelta.x,this.prevProjectionDelta.x)&&tZ(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),T.Qu.value&&t1.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){var t;let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,F.xU)(),this.projectionDelta=(0,F.xU)(),this.projectionDeltaWithTransform=(0,F.xU)()}setAnimationOrigin(t){let e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=(0,F.xU)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let a=(0,F.ge)(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(ec));this.animationProgress=0,this.mixTargetDelta=i=>{let n=i/1e3;if(eh(o.x,t.x,n),eh(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,m,f,v;if(L(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,v=n,ed(p.x,m.x,f.x,v),ed(p.y,m.y,f.y,v),e&&(u=this.relativeTarget,c=e,tQ(u.x,c.x)&&tQ(u.y,c.y)))this.isProjectionDirty=!1;e||(e=(0,F.ge)()),tO(e,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=(0,k.k)(0,void 0!==i.opacity?i.opacity:1,tj(n)),t.opacityExit=(0,k.k)(void 0!==e.opacity?e.opacity:1,0,tL(n))):s&&(t.opacity=(0,k.k)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let r=0;r<tD;r++){let s="border".concat(tk[r],"Radius"),o=tB(e,s),a=tB(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||tR(o)===tR(a)?(t[s]=Math.max((0,k.k)(tC(o),tC(a),n),0),(N.KN.test(a)||N.KN.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,k.k)(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,d,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,T.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=T.Gt.update(()=>{tc.hasAnimatedSinceResize=!0,T.qU.layout++,this.currentAnimation=(0,tw.z)(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{T.qU.layout--},onComplete:()=>{T.qU.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&eg(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,F.ge)();let e=D(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=D(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}tO(e,i),(0,tW.Ww)(e,r),R(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new tJ),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote(){let{needsReset:t,transition:e,preserveFollowOpacity:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&t5("z",t,n,this.animationValues);for(let e=0;e<t2.length;e++)t5("rotate".concat(t2[e]),t,n,this.animationValues),t5("skew".concat(t2[e]),t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return t3;let n={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=tV(null==t?void 0:t.pointerEvents)||"",n.transform=r?r(this.latestValues,""):"none",n;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=tV(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!(0,t0.HD)(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let o=s.animationValues||s.latestValues;this.applyTransformsToTarget(),n.transform=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((r||s||o)&&(n="translate3d(".concat(r,"px, ").concat(s,"px, ").concat(o,"px) ")),(1!==e.x||1!==e.y)&&(n+="scale(".concat(1/e.x,", ").concat(1/e.y,") ")),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:o,skewY:a}=i;t&&(n="perspective(".concat(t,"px) ").concat(n)),e&&(n+="rotate(".concat(e,"deg) ")),r&&(n+="rotateX(".concat(r,"deg) ")),s&&(n+="rotateY(".concat(s,"deg) ")),o&&(n+="skewX(".concat(o,"deg) ")),a&&(n+="skewY(".concat(a,"deg) "))}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+="scale(".concat(a,", ").concat(l,")")),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),r&&(n.transform=r(o,n.transform));let{x:a,y:l}=this.projectionDelta;for(let t in n.transformOrigin="".concat(100*a.origin,"% ").concat(100*l.origin,"% 0"),s.animationValues?n.opacity=s===this?null!==(i=null!==(e=o.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:n.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,tv.H){if(void 0===o[t])continue;let{correct:e,applyTo:i,isCSSVariable:r}=tv.H[t],a="none"===n.transform?o[t]:e(o[t],s);if(i){let t=i.length;for(let e=0;e<t;e++)n[i[e]]=a}else r?this.options.visualElement.renderState.vars[t]=a:n[t]=a}return this.options.layoutId&&(n.pointerEvents=s===this?tV(null==t?void 0:t.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(ei),this.root.sharedNodes.clear()}constructor(t={},e=null==i?void 0:i()){this.id=t7++,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,T.Qu.value&&(t1.nodes=t1.calculatedTargetDeltas=t1.calculatedProjections=0),this.nodes.forEach(t6),this.nodes.forEach(eo),this.nodes.forEach(ea),this.nodes.forEach(et),T.Qu.addProjectionMetrics&&T.Qu.addProjectionMetrics(t1)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=e?e.root||e:this,this.path=e?[...e.path,e]:[],this.parent=e,this.depth=e?e.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new tb)}}}function t8(t){t.updateLayout()}function t4(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:r}=t.options,s=i.source!==t.layout.source;"size"===r?U(t=>{let n=s?i.measuredBox[t]:i.layoutBox[t],r=D(n);n.min=e[t].min,n.max=n.min+r}):eg(r,i.layoutBox,e)&&U(n=>{let r=s?i.measuredBox[n]:i.layoutBox[n],o=D(e[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=(0,F.xU)();R(o,e,i.layoutBox);let a=(0,F.xU)();s?R(a,t.applyTransform(n,!0),i.measuredBox):R(a,e,i.layoutBox);let l=!tY(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=(0,F.ge)();L(o,i.layoutBox,r.layoutBox);let a=(0,F.ge)();L(a,e,s.layoutBox),t$(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function t6(t){T.Qu.value&&t1.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function et(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ee(t){t.clearSnapshot()}function ei(t){t.clearMeasurements()}function en(t){t.isLayoutDirty=!1}function er(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function es(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function eo(t){t.resolveTargetDelta()}function ea(t){t.calcProjection()}function el(t){t.resetSkewAndRotation()}function eu(t){t.removeLeadSnapshot()}function eh(t,e,i){t.translate=(0,k.k)(e.translate,0,i),t.scale=(0,k.k)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function ed(t,e,i,n){t.min=(0,k.k)(e.min,i.min,n),t.max=(0,k.k)(e.max,i.max,n)}function ec(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ep={duration:.45,ease:[.4,0,.1,1]},em=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ef=em("applewebkit/")&&!em("chrome/")?Math.round:s.lQ;function ev(t){t.min=ef(t.min),t.max=ef(t.max)}function eg(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(t_(e)-t_(i)))}function ey(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}let ex=t9({attachResizeListener:(t,e)=>b(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ew={current:void 0},eP=t9({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ew.current){let t=new ex({});t.mount(window),t.setOptions({layoutScroll:!0}),ew.current=t}return ew.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function eT(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&T.Gt.postRender(()=>r(e,A(e)))}class eS extends y{mount(){let{current:t}=this.node;t&&(this.unmount=(0,T.PT)(t,(t,e)=>(eT(this.node,e,"Start"),t=>eT(this.node,t,"End"))))}unmount(){}}class eb extends y{onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,H.F)(b(this.node.current,"focus",()=>this.onFocus()),b(this.node.current,"blur",()=>this.onBlur()))}unmount(){}constructor(){super(...arguments),this.isActive=!1}}function eA(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&T.Gt.postRender(()=>r(e,A(e)))}class eM extends y{mount(){let{current:t}=this.node;t&&(this.unmount=(0,T.c$)(t,(t,e)=>(eA(this.node,e,"Start"),(t,e)=>{let{success:i}=e;return eA(this.node,t,i?"End":"Cancel")}),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let eV=new WeakMap,eE=new WeakMap,ek=t=>{let e=eV.get(t.target);e&&e(t)},eD=t=>{t.forEach(ek)},eC={some:0,all:1};class eR extends y{startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:eC[n]};return function(t,e,i){let n=function(t){let{root:e,...i}=t,n=e||document;eE.has(n)||eE.set(n,{});let r=eE.get(n),s=JSON.stringify(i);return r[s]||(r[s]=new IntersectionObserver(eD,{root:e,...i})),r[s]}(e);return eV.set(t,i),n.observe(t),()=>{eV.delete(t),n.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function(t){let{viewport:e={}}=t,{viewport:i={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=>e[t]!==i[t]}(t,e))&&this.startObserver()}unmount(){}constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}}let eB=(0,tl.createContext)({strict:!1});var ej=i(51508);let eL=(0,tl.createContext)({});var eF=i(19253);function eU(t){return Array.isArray(t)?t.join(" "):t}var eO=i(68972),eI=i(6642);let eW=Symbol.for("motionComponentSymbol");var eN=i(31788),eG=i(80845),eq=i(97494),eH=i(33055),eK=i(86169);let eX=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eY(t,e,i){for(let n in e)(0,tM.S)(e[n])||(0,eH.z)(n,i)||(t[n]=e[n])}let eQ=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 ez(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||eQ.has(t)}let e$=t=>!ez(t);try{!function(t){t&&(e$=e=>e.startsWith("on")?!ez(e):t(e))}(require("@emotion/is-prop-valid").default)}catch(t){}let e_=["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 eZ(t){if("string"!=typeof t||t.includes("-"));else if(e_.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var eJ=i(97914);let e0=()=>({...eX(),attrs:{}});var e1=i(93095),e2=i(2735),e3=i(82885);let e7=t=>(e,i)=>{let n=(0,tl.useContext)(eL),r=(0,tl.useContext)(eG.t),s=()=>(function(t,e,i,n){let{scrapeMotionValuesFromProps:r,createRenderState:s,onUpdate:a}=t,l={latestValues:function(t,e,i,n){let r={},s=n(t,{});for(let t in s)r[t]=tV(s[t]);let{initial:a,animate:l}=t,u=(0,eF.e)(t),h=(0,eF.O)(t);e&&h&&!u&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));let d=!!i&&!1===i.initial,c=(d=d||!1===a)?l:a;if(c&&"boolean"!=typeof c&&!(0,o.N)(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let n=(0,e2.a)(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=d?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(e,i,n,r),renderState:s()};return a&&(l.onMount=t=>a({props:e,current:t,...l}),l.onUpdate=t=>a(t)),l})(t,e,n,r);return i?s():(0,e3.M)(s)},e5={useVisualState:e7({scrapeMotionValuesFromProps:i(60990).x,createRenderState:eX})};var e9=i(87387),e8=i(50621),e4=i(33869),e6=i(34527);let it=["x","y","width","height","cx","cy","r"],ie={useVisualState:e7({scrapeMotionValuesFromProps:e6.x,createRenderState:e0,onUpdate:t=>{let{props:e,prevProps:i,current:n,renderState:r,latestValues:s}=t;if(!n)return;let o=!!e.drag;if(!o){for(let t in s)if(e9.f.has(t)){o=!0;break}}if(!o)return;let a=!i;if(i)for(let t=0;t<it.length;t++){let n=it[t];e[n]!==i[n]&&(a=!0)}a&&T.Gt.read(()=>{(0,e8.H)(n,r),T.Gt.render(()=>{(0,eJ.B)(r,s,(0,e1.n)(n.tagName),e.transformTemplate),(0,e4.d)(n,r)})})}})};var ii=i(75245),ir=i(27885);let is=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy(function(){for(var e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];return t(...i)},{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}((n={animation:{Feature:x},exit:{Feature:P},inView:{Feature:eR},tap:{Feature:eM},focus:{Feature:eb},hover:{Feature:eS},pan:{Feature:to},drag:{Feature:tr,ProjectionNode:eP,MeasureLayout:ty},layout:{ProjectionNode:eP,MeasureLayout:ty}},r=(t,e)=>eZ(t)?new ir.l(e):new ii.M(e,{allowProjection:t!==tl.Fragment}),function(t){let{forwardMotionProps:e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{forwardMotionProps:!1};return function(t){var e,i;let{preloadedFeatures:n,createVisualElement:r,useRender:s,useVisualState:o,Component:a}=t;function l(t,e){var i,n,l;let u;let d={...(0,tl.useContext)(ej.Q),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,tl.useContext)(th.L).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:c}=d,p=function(t){let{initial:e,animate:i}=function(t,e){if((0,eF.e)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,h.w)(e)?e:void 0,animate:(0,h.w)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,tl.useContext)(eL));return(0,tl.useMemo)(()=>({initial:e,animate:i}),[eU(e),eU(i)])}(t),m=o(t,c);if(!c&&eO.B){n=0,l=0,(0,tl.useContext)(eB).strict;let t=function(t){let{drag:e,layout:i}=eI.B;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(d);u=t.MeasureLayout,p.visualElement=function(t,e,i,n,r){var s,o;let{visualElement:a}=(0,tl.useContext)(eL),l=(0,tl.useContext)(eB),u=(0,tl.useContext)(eG.t),h=(0,tl.useContext)(ej.Q).reducedMotion,d=(0,tl.useRef)(null);n=n||l.renderer,!d.current&&n&&(d.current=n(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h}));let c=d.current,p=(0,tl.useContext)(td);c&&!c.projection&&r&&("html"===c.type||"svg"===c.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&W(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(d.current,i,r,p);let m=(0,tl.useRef)(!1);(0,tl.useInsertionEffect)(()=>{c&&m.current&&c.update(i,u)});let f=i[eN.n],v=(0,tl.useRef)(!!f&&!(null===(s=window.MotionHandoffIsComplete)||void 0===s?void 0:s.call(window,f))&&(null===(o=window.MotionHasOptimisedAnimation)||void 0===o?void 0:o.call(window,f)));return(0,eq.E)(()=>{c&&(m.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),T.k2.render(c.render),v.current&&c.animationState&&c.animationState.animateChanges())}),(0,tl.useEffect)(()=>{c&&(!v.current&&c.animationState&&c.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,f)}),v.current=!1))}),c}(a,m,d,r,t.ProjectionNode)}return(0,ta.jsxs)(eL.Provider,{value:p,children:[u&&p.visualElement?(0,ta.jsx)(u,{visualElement:p.visualElement,...d}):null,s(a,t,(i=p.visualElement,(0,tl.useCallback)(t=>{t&&m.onMount&&m.onMount(t),i&&(t?i.mount(t):i.unmount()),e&&("function"==typeof e?e(t):W(e)&&(e.current=t))},[i])),m,c,p.visualElement)]})}n&&function(t){for(let e in t)eI.B[e]={...eI.B[e],...t[e]}}(n),l.displayName="motion.".concat("string"==typeof a?a:"create(".concat(null!==(i=null!==(e=a.displayName)&&void 0!==e?e:a.name)&&void 0!==i?i:"",")"));let u=(0,tl.forwardRef)(l);return u[eW]=a,u}({...eZ(t)?ie:e5,preloadedFeatures:n,useRender:function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(e,i,n,r,s)=>{let{latestValues:o}=r,a=(eZ(e)?function(t,e,i,n){let r=(0,tl.useMemo)(()=>{let i=e0();return(0,eJ.B)(i,e,(0,e1.n)(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};eY(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return eY(n,i,t),Object.assign(n,function(t,e){let{transformTemplate:i}=t;return(0,tl.useMemo)(()=>{let t=eX();return(0,eK.O)(t,e,i),Object.assign({},t.vars,t.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(i,o,s,e),l=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(e$(r)||!0===i&&ez(r)||!e&&!ez(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(i,"string"==typeof e,t),u=e!==tl.Fragment?{...l,...a,ref:n}:{},{children:h}=i,d=(0,tl.useMemo)(()=>(0,tM.S)(h)?h.get():h,[h]);return(0,tl.createElement)(e,{...u,children:d})}}(e),createVisualElement:r,Component:t})}))},39067:(t,e,i)=>{i.d(e,{T:()=>o,n:()=>a});var n=i(23082),r=i(45471),s=i(61987);let o=[n.ai,r.px,r.KN,r.uj,r.vw,r.vh,{test:t=>"auto"===t,parse:t=>t}],a=t=>o.find((0,s.w)(t))},45471:(t,e,i)=>{i.d(e,{KN:()=>s,gQ:()=>u,px:()=>o,uj:()=>r,vh:()=>a,vw:()=>l});let n=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>"".concat(e).concat(t)}),r=n("deg"),s=n("%"),o=n("px"),a=n("vh"),l=n("vw"),u={...s,parse:t=>s.parse(t)/100,transform:t=>s.transform(100*t)}},46395:(t,e,i)=>{i.d(e,{f:()=>s});var n=i(4331),r=i(21109);function s(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let o=(0,n.qB)(0,e,s);t.push((0,r.k)(i,1,o))}}},46926:(t,e,i)=>{i.d(e,{P:()=>r});var n=i(31788);function r(t){return t.props[n.n]}},47437:(t,e,i)=>{i.d(e,{j:()=>A});var n=i(21109),r=i(4331);function s(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var o=i(67730),a=i(24935),l=i(12083);function u(t,e){return i=>i>0?e:t}let h=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},d=[o.u,a.B,l.V],c=t=>d.find(e=>e.test(t));function p(t){let e=c(t);if((0,r.$e)(!!e,"'".concat(t,"' is not an animatable color. Use the equivalent color code instead.")),!e)return!1;let i=e.parse(t);return e===l.V&&(i=function(t){let{hue:e,saturation:i,lightness:n,alpha:r}=t;e/=360,n/=100;let o=0,a=0,l=0;if(i/=100){let t=n<.5?n*(1+i):n+i-n*i,r=2*n-t;o=s(r,t,e+1/3),a=s(r,t,e),l=s(r,t,e-1/3)}else o=a=l=n;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*l),alpha:r}}(i)),i}let m=(t,e)=>{let i=p(t),r=p(e);if(!i||!r)return u(t,e);let s={...i};return t=>(s.red=h(i.red,r.red,t),s.green=h(i.green,r.green,t),s.blue=h(i.blue,r.blue,t),s.alpha=(0,n.k)(i.alpha,r.alpha,t),a.B.transform(s))};var f=i(97007),v=i(82897),g=i(93013),y=i(93676);let x=new Set(["none","hidden"]);function w(t,e){return i=>(0,n.k)(t,e,i)}function P(t){return"number"==typeof t?w:"string"==typeof t?(0,y.p)(t)?u:v.y.test(t)?m:b:Array.isArray(t)?T:"object"==typeof t?v.y.test(t)?m:S:u}function T(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>P(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function S(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=P(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let b=(t,e)=>{let i=g.f.createTransformer(e),n=(0,g.V)(t),s=(0,g.V)(e);return n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length?x.has(t)&&!s.values.length||x.has(e)&&!n.values.length?function(t,e){return x.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):(0,f.F)(T(function(t,e){var i;let n=[],r={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let o=e.types[s],a=t.indexes[o][r[o]],l=null!==(i=t.values[a])&&void 0!==i?i:0;n[s]=l,r[o]++}return n}(n,s),s.values),i):((0,r.$e)(!0,"Complex values '".concat(t,"' and '").concat(e,"' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.")),u(t,e))};function A(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,n.k)(t,e,i):P(t)(t,e)}},50621:(t,e,i)=>{i.d(e,{H:()=>n});function n(t,e){try{e.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(t){e.dimensions={x:0,y:0,width:0,height:0}}}},51508:(t,e,i)=>{i.d(e,{Q:()=>n});let n=(0,i(12115).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},56440:(t,e,i)=>{i.d(e,{$:()=>n});let n=t=>/^0[^.\s]+$/u.test(t)},59282:(t,e,i)=>{i.d(e,{po:()=>s,tn:()=>a,yT:()=>o});var n=i(567),r=i(16498);let s=t=>1-Math.sin(Math.acos(t)),o=(0,r.G)(s),a=(0,n.V)(s)},60990:(t,e,i)=>{i.d(e,{x:()=>s});var n=i(33055),r=i(14570);function s(t,e,i){var s;let{style:o}=t,a={};for(let l in o)((0,r.S)(o[l])||e.style&&(0,r.S)(e.style[l])||(0,n.z)(l,t)||(null===(s=null==i?void 0:i.getValue(l))||void 0===s?void 0:s.liveStyle)!==void 0)&&(a[l]=o[l]);return a}},61987:(t,e,i)=>{i.d(e,{w:()=>n});let n=t=>e=>e.test(t)},62662:(t,e,i)=>{function n(t){return void 0===t||1===t}function r(t){let{scale:e,scaleX:i,scaleY:r}=t;return!n(e)||!n(i)||!n(r)}function s(t){return r(t)||o(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function o(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}i.d(e,{HD:()=>s,vF:()=>o,vk:()=>r})},65305:(t,e,i)=>{i.d(e,{w:()=>n});function n(t){return"string"==typeof t||Array.isArray(t)}},65511:(t,e,i)=>{i.d(e,{C:()=>n});let n=new WeakMap},66373:(t,e,i)=>{i.d(e,{x:()=>n});function n(t){return t instanceof SVGElement&&"svg"!==t.tagName}},66479:(t,e,i)=>{i.d(e,{S:()=>n});let n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},67730:(t,e,i)=>{i.d(e,{u:()=>r});var n=i(24935);let r={test:(0,i(97219).$)("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:n.B.transform}},68972:(t,e,i)=>{i.d(e,{B:()=>n});let n="undefined"!=typeof window},75245:(t,e,i)=>{i.d(e,{M:()=>d});var n=i(33757),r=i(22397),s=i(93676),o=i(86169),a=i(87387),l=i(4576),u=i(20600),h=i(60990);class d extends r.b{readValueFromInstance(t,e){if(a.f.has(e))return(0,l.I)(t,e);{let i=window.getComputedStyle(t),n=((0,s.j)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,e){let{transformPagePoint:i}=e;return(0,n.m)(t,i)}build(t,e,i){(0,o.O)(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return(0,h.x)(t,e,i)}constructor(){super(...arguments),this.type="html",this.renderInstance=u.e}}},76333:(t,e,i)=>{i.d(e,{g:()=>r});var n=i(14570);function r(t,e){let i=t.getValue("willChange");if((0,n.S)(i)&&i.add)return i.add(e)}},77212:(t,e,i)=>{i.d(e,{B:()=>M});var n=i(12128),r=i(4331),s=i(6642),o=i(81786),a=i(3870),l=i(56440),u=i(68972);let h={current:null},d={current:!1};var c=i(93013),p=i(14570),m=i(19780),f=i(82897),v=i(39067),g=i(61987);let y=[...v.T,f.y,c.f],x=t=>y.find((0,g.w)(t));var w=i(87387),P=i(65511),T=i(19253),S=i(18203),b=i(2735);let A=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class M{scrapeMotionValuesFromProps(t,e,i){return{}}mount(t){this.current=t,P.C.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),d.current||function(){if(d.current=!0,u.B){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>h.current=t.matches;t.addListener(e),e()}else h.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||h.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,n.WG)(this.notifyUpdate),(0,n.WG)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let r=w.f.has(t);r&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&n.Gt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),o(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in s.B){let e=s.B[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,o.ge)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<A.length;e++){let i=A[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let r in e){let s=e[r],o=i[r];if((0,p.S)(s))t.addValue(r,s);else if((0,p.S)(o))t.addValue(r,(0,n.OQ)(s,{owner:t}));else if(o!==s){if(t.hasValue(r)){let e=t.getValue(r);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(r);t.addValue(r,(0,n.OQ)(void 0!==e?e:s,{owner:t}))}}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,n.OQ)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let n=void 0===this.latestValues[t]&&this.current?null!==(i=this.getBaseTargetFromProps(this.props,t))&&void 0!==i?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=n&&("string"==typeof n&&((0,a.i)(n)||(0,l.$)(n))?n=parseFloat(n):!x(n)&&c.f.test(e)&&(n=(0,m.J)(t,e)),this.setBaseTarget(t,(0,p.S)(n)?n.get():n)),(0,p.S)(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i;let{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=(0,b.a)(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);r&&(i=r[t])}if(n&&void 0!==i)return i;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||(0,p.S)(r)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new r.vY),this.events[t].add(e)}notify(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];this.events[t]&&this.events[t].notify(...i)}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=S.h,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=()=>{let t=n.kB.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,n.Gt.render(this.render,!1,!0))};let{latestValues:l,renderState:u,onUpdate:h}=o;this.onUpdate=h,this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=(0,T.e)(e),this.isVariantNode=(0,T.O)(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:d,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in c){let e=c[t];void 0!==l[t]&&(0,p.S)(e)&&e.set(l[t],!1)}}}},77782:(t,e,i)=>{i.d(e,{q:()=>n});let n=(t,e,i)=>i>e?e:i<t?t:i},78450:(t,e,i)=>{i.d(e,{I:()=>n});let n=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},78588:(t,e,i)=>{function n(t){let{top:e,left:i,right:n,bottom:r}=t;return{x:{min:i,max:n},y:{min:e,max:r}}}function r(t){let{x:e,y:i}=t;return{top:i.min,right:e.max,bottom:i.max,left:e.min}}function s(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}i.d(e,{FY:()=>n,bS:()=>s,pA:()=>r})},78660:(t,e,i)=>{i.d(e,{_:()=>a});var n=i(20419),r=i(19578);function s(t,e){var i;let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=(0,n.K)(t,e,"exit"===a.type?null===(i=t.presenceContext)||void 0===i?void 0:i.custom:void 0),{transition:u=t.getDefaultTransition()||{}}=l||{};a.transitionOverride&&(u=a.transitionOverride);let h=l?()=>Promise.all((0,r.$)(t,l,a)):()=>Promise.resolve(),d=t.variantChildren&&t.variantChildren.size?function(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{delayChildren:n=0,staggerChildren:r,staggerDirection:l}=u;return function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=arguments.length>5?arguments[5]:void 0,l=[],u=(t.variantChildren.size-1)*n,h=1===r?function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t*n}:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return u-t*n};return Array.from(t.variantChildren).sort(o).forEach((t,n)=>{t.notify("AnimationStart",e),l.push(s(t,e,{...a,delay:i+h(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(l)}(t,e,n+i,r,l,a)}:()=>Promise.resolve(),{when:c}=u;if(!c)return Promise.all([h(),d(a.delay)]);{let[t,e]="beforeChildren"===c?[h,d]:[d,h];return t().then(()=>e())}}function o(t,e){return t.sortNodePosition(e)}function a(t,e){let i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.notify("AnimationStart",e),Array.isArray(e))i=Promise.all(e.map(e=>s(t,e,o)));else if("string"==typeof e)i=s(t,e,o);else{let s="function"==typeof e?(0,n.K)(t,e,o.custom):e;i=Promise.all((0,r.$)(t,s,o))}return i.then(()=>{t.notify("AnimationComplete",e)})}},79280:(t,e,i)=>{i.d(e,{E4:()=>a,Hr:()=>d,W9:()=>h});var n=i(23082),r=i(45471),s=i(87387),o=i(4576);let a=t=>t===n.ai||t===r.px,l=new Set(["x","y","z"]),u=s.U.filter(t=>!l.has(t));function h(t){let e=[];return u.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}let d={width:(t,e)=>{let{x:i}=t,{paddingLeft:n="0",paddingRight:r="0"}=e;return i.max-i.min-parseFloat(n)-parseFloat(r)},height:(t,e)=>{let{y:i}=t,{paddingTop:n="0",paddingBottom:r="0"}=e;return i.max-i.min-parseFloat(n)-parseFloat(r)},top:(t,e)=>{let{top:i}=e;return parseFloat(i)},left:(t,e)=>{let{left:i}=e;return parseFloat(i)},bottom:(t,e)=>{let{y:i}=t,{top:n}=e;return parseFloat(n)+(i.max-i.min)},right:(t,e)=>{let{x:i}=t,{left:n}=e;return parseFloat(n)+(i.max-i.min)},x:(t,e)=>{let{transform:i}=e;return(0,o.r)(i,"x")},y:(t,e)=>{let{transform:i}=e;return(0,o.r)(i,"y")}};d.translateX=d.x,d.translateY=d.y},80845:(t,e,i)=>{i.d(e,{t:()=>n});let n=(0,i(12115).createContext)(null)},81786:(t,e,i)=>{i.d(e,{ge:()=>o,xU:()=>r});let n=()=>({translate:0,scale:1,origin:0,originPoint:0}),r=()=>({x:n(),y:n()}),s=()=>({min:0,max:0}),o=()=>({x:s(),y:s()})},82885:(t,e,i)=>{i.d(e,{M:()=>r});var n=i(12115);function r(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},82897:(t,e,i)=>{i.d(e,{y:()=>o});var n=i(67730),r=i(12083),s=i(24935);let o={test:t=>s.B.test(t)||n.u.test(t)||r.V.test(t),parse:t=>s.B.test(t)?s.B.parse(t):r.V.test(t)?r.V.parse(t):n.u.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?s.B.transform(t):r.V.transform(t)}},83080:(t,e,i)=>{i.d(e,{f:()=>_});var n=i(12128),r=i(4331);let s={current:!1},o=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function a(t,e,i,n){if(t===e&&i===n)return r.lQ;let s=e=>(function(t,e,i,n,r){let s,a;let l=0;do(s=o(a=e+(i-e)/2,n,r)-t)>0?i=a:e=a;while(Math.abs(s)>1e-7&&++l<12);return a})(e,0,1,t,i);return t=>0===t||1===t?t:o(s(t),e,n)}var l=i(567),u=i(16498);let h=a(.33,1.53,.69,.99),d=(0,u.G)(h),c=(0,l.V)(d),p=t=>(t*=2)<1?.5*d(t):.5*(2-Math.pow(2,-10*(t-1)));var m=i(59282),f=i(33796),v=i(18203),g=i(93013);let y=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(g.f.test(t)||"0"===t)&&!t.startsWith("url(")),x=t=>null!==t;function w(t,e,i){let{repeat:n,repeatType:r="loop"}=e,s=t.filter(x),o=n&&"loop"!==r&&n%2==1?0:s.length-1;return o&&void 0!==i?i:s[o]}class P{calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(0,v.q)(),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=n.kB.now(),this.hasAttemptedResolve=!0;let{name:i,type:o,velocity:a,delay:l,onComplete:u,onUpdate:h,isGenerator:d}=this.options;if(!d&&!function(t,e,i,s){let o=t[0];if(null===o)return!1;if("display"===e||"visibility"===e)return!0;let a=t[t.length-1],l=y(o,e),u=y(a,e);return(0,r.$e)(l===u,"You are trying to animate ".concat(e,' from "').concat(o,'" to "').concat(a,'". ').concat(o," is not an animatable value - to enable this animation set ").concat(o," to a value animatable to ").concat(a," via the `style` property.")),!!l&&!!u&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||(0,n.WH)(i))&&s)}(t,i,o,a)){if(s.current||!l){h&&h(w(t,this.options,e)),u&&u(),this.resolveFinishedPromise();return}this.options.duration=0}let c=this.initPlayback(t,e);!1!==c&&(this._resolved={keyframes:t,finalKeyframe:e,...c},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=n.kB.now(),this.options={autoplay:t,delay:e,type:i,repeat:r,repeatDelay:s,repeatType:o,...a},this.updateFinishedPromise()}}var T=i(77782),S=i(47437),b=i(97007),A=i(24896),M=i(94344);function V(t){let e,i,{keyframes:n,velocity:r=0,power:s=.8,timeConstant:o=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:u,min:h,max:d,restDelta:c=.5,restSpeed:p}=t,m=n[0],f={done:!1,value:m},v=t=>void 0!==h&&t<h||void 0!==d&&t>d,g=t=>void 0===h?d:void 0===d?h:Math.abs(h-t)<Math.abs(d-t)?h:d,y=s*r,x=m+y,w=void 0===u?x:u(x);w!==x&&(y=w-m);let P=t=>-y*Math.exp(-t/o),T=t=>w+P(t),S=t=>{let e=P(t),i=T(t);f.done=Math.abs(e)<=c,f.value=f.done?w:i},b=t=>{v(f.value)&&(e=t,i=(0,A.o)({keyframes:[f.value,g(f.value)],velocity:(0,M.Y)(T,t,f.value),damping:a,stiffness:l,restDelta:c,restSpeed:p}))};return b(0),{calculatedDuration:null,next:t=>{let n=!1;return(i||void 0!==e||(n=!0,S(t),b(t)),void 0!==e&&t>=e)?i.next(t-e):(n||S(t),f)}}}let E=a(.42,0,1,1),k=a(0,0,.58,1),D=a(.42,0,.58,1);var C=i(22363);let R={linear:r.lQ,easeIn:E,easeInOut:D,easeOut:k,circIn:m.po,circInOut:m.tn,circOut:m.yT,backIn:d,backInOut:c,backOut:h,anticipate:p},B=t=>{if((0,n.DW)(t)){(0,r.V1)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,s]=t;return a(e,i,n,s)}return"string"==typeof t?((0,r.V1)(void 0!==R[t],"Invalid easing type '".concat(t,"'")),R[t]):t};var j=i(97846),L=i(96185);function F(t){let{duration:e=300,keyframes:i,times:n,ease:r="easeInOut"}=t,s=(0,C.h)(r)?r.map(B):B(r),o={done:!1,value:i[0]},a=(n&&n.length===i.length?n:(0,L.Z)(i)).map(t=>t*e),l=(0,j.G)(a,i,{ease:Array.isArray(s)?s:i.map(()=>s||D).splice(0,i.length-1)});return{calculatedDuration:e,next:t=>(o.value=l(t),o.done=t>=e,o)}}let U=t=>{let e=e=>{let{timestamp:i}=e;return t(i)};return{start:()=>n.Gt.update(e,!0),stop:()=>(0,n.WG)(e),now:()=>n.uv.isProcessing?n.uv.timestamp:n.kB.now()}},O={decay:V,inertia:V,tween:F,keyframes:F,spring:A.o},I=t=>t/100;class W extends P{flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i;let{type:r="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a,velocity:l=0}=this.options,u=(0,n.WH)(r)?r:O[r]||F;u!==F&&"number"!=typeof t[0]&&(e=(0,b.F)(I,(0,S.j)(t[0],t[1])),t=[0,100]);let h=u({...this.options,keyframes:t});"mirror"===a&&(i=u({...this.options,keyframes:[...t].reverse(),velocity:-l})),null===h.calculatedDuration&&(h.calculatedDuration=(0,n.tu)(h));let{calculatedDuration:d}=h,c=d+o;return{generator:h,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:d,resolvedDuration:c,totalDuration:c*(s+1)-o}}onPostResolved(){let{autoplay:t=!0}=this.options;n.qU.mainThread++,this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:n,generator:r,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return r.next(0);let{delay:d,repeat:c,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let v=this.currentTime-d*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=r;if(c){let t=Math.min(this.currentTime,u)/h,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/h)):"mirror"===p&&(x=s)),y=(0,T.q)(0,1,i)*h}let P=g?{done:!1,value:a[0]}:x.next(y);o&&(P.value=o(P.value));let{done:S}=P;g||null===l||(S=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let b=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return b&&void 0!==n&&(P.value=w(a,this.options,n)),f&&f(P.value),b&&this.finish(),P}get duration(){let{resolved:t}=this;return t?(0,r.Xu)(t.calculatedDuration):0}get time(){return(0,r.Xu)(this.currentTime)}set time(t){t=(0,r.fD)(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,r.Xu)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=U,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel(),n.qU.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}constructor(t){super(t),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,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:e,motionValue:i,element:n,keyframes:r}=this.options,s=(null==n?void 0:n.KeyframeResolver)||v.h;this.resolver=new s(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}}let N=new Set(["opacity","clipPath","filter","transform"]),G=(0,r.ph)(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),q={anticipate:p,backInOut:c,circInOut:m.tn};class H extends P{initPlayback(t,e){var i;let{duration:r=300,times:s,ease:o,type:a,motionValue:l,name:u,startTime:h}=this.options;if(!l.owner||!l.owner.current)return!1;if("string"==typeof o&&(0,n.nL)()&&o in q&&(o=q[o]),i=this.options,(0,n.WH)(i.type)||"spring"===i.type||!(0,n.yL)(i.ease)){let{onComplete:e,onUpdate:i,motionValue:n,element:l,...u}=this.options,h=function(t,e){let i=new W({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:t[0]},r=[],s=0;for(;!n.done&&s<2e4;)r.push((n=i.sample(s)).value),s+=10;return{times:void 0,keyframes:r,duration:s-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),r=h.duration,s=h.times,o=h.ease,a="keyframes"}let d=function(t,e,i){let{delay:r=0,duration:s=300,repeat:o=0,repeatType:a="loop",ease:l="easeInOut",times:u}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},h={[e]:i};u&&(h.offset=u);let d=(0,n.TU)(l,s);Array.isArray(d)&&(h.easing=d),n.Qu.value&&n.qU.waapi++;let c=t.animate(h,{delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"});return n.Qu.value&&c.finished.finally(()=>{n.qU.waapi--}),c}(l.owner.current,u,t,{...this.options,duration:r,times:s,ease:o});return d.startTime=null!=h?h:this.calcStartTime(),this.pendingTimeline?((0,n.vG)(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:i}=this.options;l.set(w(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:s,type:a,ease:o,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return(0,r.Xu)(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(0,r.Xu)(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=(0,r.fD)(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return r.lQ;let{animation:i}=e;(0,n.vG)(i,t)}else this.pendingTimeline=t;return r.lQ}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:n,type:s,ease:o,times:a}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:l,element:u,...h}=this.options,d=new W({...h,keyframes:i,duration:n,type:s,ease:o,times:a,isGenerator:!0}),c=(0,r.fD)(this.time);t.setWithVelocity(d.sample(c-10).value,d.sample(c).value,10)}let{onStop:l}=this.options;l&&l(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return G()&&i&&N.has(i)&&("transform"!==i||!l)&&!a&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}constructor(t){super(t);let{name:e,motionValue:i,element:n,keyframes:r}=this.options;this.resolver=new f.K(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}}var K=i(87387);let X={type:"spring",stiffness:500,damping:25,restSpeed:10},Y=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),Q={type:"keyframes",duration:.8},z={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},$=(t,e)=>{let{keyframes:i}=e;return i.length>2?Q:K.f.has(t)?t.startsWith("scale")?Y(i[1]):X:z},_=function(t,e,i){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4?arguments[4]:void 0,l=arguments.length>5?arguments[5]:void 0;return u=>{let h=(0,n.rU)(o,t)||{},d=h.delay||o.delay||0,{elapsed:c=0}=o;c-=(0,r.fD)(d);let p={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...h,delay:-c,onUpdate:t=>{e.set(t),h.onUpdate&&h.onUpdate(t)},onComplete:()=>{u(),h.onComplete&&h.onComplete()},name:t,motionValue:e,element:l?void 0:a};!function(t){let{when:e,delay:i,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:a,repeatDelay:l,from:u,elapsed:h,...d}=t;return!!Object.keys(d).length}(h)&&(p={...p,...$(t,p)}),p.duration&&(p.duration=(0,r.fD)(p.duration)),p.repeatDelay&&(p.repeatDelay=(0,r.fD)(p.repeatDelay)),void 0!==p.from&&(p.keyframes[0]=p.from);let m=!1;if(!1!==p.type&&(0!==p.duration||p.repeatDelay)||(p.duration=0,0!==p.delay||(m=!0)),(s.current||r.W9.skipAnimations)&&(m=!0,p.duration=0,p.delay=0),p.allowFlatten=!h.type&&!h.ease,m&&!l&&void 0!==e.get()){let t=w(p.keyframes,h);if(void 0!==t)return n.Gt.update(()=>{p.onUpdate(t),p.onComplete()}),new n.P6([])}return!l&&H.supports(p)?new H(p):new W(p)}}},86169:(t,e,i)=>{i.d(e,{O:()=>u});var n=i(93676);let r=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var s=i(90802),o=i(87387);let a={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},l=o.U.length;function u(t,e,i){let{style:u,vars:h,transformOrigin:d}=t,c=!1,p=!1;for(let t in e){let i=e[t];if(o.f.has(t)){c=!0;continue}if((0,n.j)(t)){h[t]=i;continue}{let e=r(i,s.W[t]);t.startsWith("origin")?(p=!0,d[t]=e):u[t]=e}}if(!e.transform&&(c||i?u.transform=function(t,e,i){let n="",u=!0;for(let h=0;h<l;h++){let l=o.U[h],d=t[l];if(void 0===d)continue;let c=!0;if(!(c="number"==typeof d?d===+!!l.startsWith("scale"):0===parseFloat(d))||i){let t=r(d,s.W[l]);if(!c){u=!1;let e=a[l]||l;n+="".concat(e,"(").concat(t,") ")}i&&(e[l]=t)}}return n=n.trim(),i?n=i(e,u?"":n):u&&(n="none"),n}(e,t.transform,i):u.transform&&(u.transform="none")),p){let{originX:t="50%",originY:e="50%",originZ:i=0}=d;u.transformOrigin="".concat(t," ").concat(e," ").concat(i)}}},87387:(t,e,i)=>{i.d(e,{U:()=>n,f:()=>r});let n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],r=new Set(n)},90802:(t,e,i)=>{i.d(e,{W:()=>l});var n=i(23082),r=i(45471);let s={borderWidth:r.px,borderTopWidth:r.px,borderRightWidth:r.px,borderBottomWidth:r.px,borderLeftWidth:r.px,borderRadius:r.px,radius:r.px,borderTopLeftRadius:r.px,borderTopRightRadius:r.px,borderBottomRightRadius:r.px,borderBottomLeftRadius:r.px,width:r.px,maxWidth:r.px,height:r.px,maxHeight:r.px,top:r.px,right:r.px,bottom:r.px,left:r.px,padding:r.px,paddingTop:r.px,paddingRight:r.px,paddingBottom:r.px,paddingLeft:r.px,margin:r.px,marginTop:r.px,marginRight:r.px,marginBottom:r.px,marginLeft:r.px,backgroundPositionX:r.px,backgroundPositionY:r.px},o={rotate:r.uj,rotateX:r.uj,rotateY:r.uj,rotateZ:r.uj,scale:n.hs,scaleX:n.hs,scaleY:n.hs,scaleZ:n.hs,skew:r.uj,skewX:r.uj,skewY:r.uj,distance:r.px,translateX:r.px,translateY:r.px,translateZ:r.px,x:r.px,y:r.px,z:r.px,perspective:r.px,transformPerspective:r.px,opacity:n.X4,originX:r.gQ,originY:r.gQ,originZ:r.px},a={...n.ai,transform:Math.round},l={...s,...o,zIndex:a,size:r.px,fillOpacity:n.X4,strokeOpacity:n.X4,numOctaves:a}},90869:(t,e,i)=>{i.d(e,{L:()=>n});let n=(0,i(12115).createContext)({})},93013:(t,e,i)=>{i.d(e,{V:()=>h,f:()=>m});var n=i(82897);let r=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var s=i(66479),o=i(22282);let a="number",l="color",u=/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 h(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]},s=[],o=0,h=e.replace(u,t=>(n.y.test(t)?(r.color.push(o),s.push(l),i.push(n.y.parse(t))):t.startsWith("var(")?(r.var.push(o),s.push("var"),i.push(t)):(r.number.push(o),s.push(a),i.push(parseFloat(t))),++o,"${}")).split("${}");return{values:i,split:h,indexes:r,types:s}}function d(t){return h(t).values}function c(t){let{split:e,types:i}=h(t),r=e.length;return t=>{let s="";for(let u=0;u<r;u++)if(s+=e[u],void 0!==t[u]){let e=i[u];e===a?s+=(0,o.a)(t[u]):e===l?s+=n.y.transform(t[u]):s+=t[u]}return s}}let p=t=>"number"==typeof t?0:t,m={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(s.S))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(r))||void 0===i?void 0:i.length)||0)>0},parse:d,createTransformer:c,getAnimatableNone:function(t){let e=d(t);return c(t)(e.map(p))}}},93095:(t,e,i)=>{i.d(e,{n:()=>n});let n=t=>"string"==typeof t&&"svg"===t.toLowerCase()},93676:(t,e,i)=>{i.d(e,{j:()=>r,p:()=>o});let n=t=>e=>"string"==typeof e&&e.startsWith(t),r=n("--"),s=n("var(--"),o=t=>!!s(t)&&a.test(t.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},94344:(t,e,i)=>{i.d(e,{Y:()=>r});var n=i(4331);function r(t,e,i){let r=Math.max(e-5,0);return(0,n.fj)(i-t(r),e-r)}},96147:(t,e,i)=>{i.d(e,{OU:()=>u,Ql:()=>h,Ww:()=>c,hq:()=>s,o4:()=>l});var n=i(21109),r=i(62662);function s(t,e,i){return i+e*(t-i)}function o(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function a(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;t.min=o(t.min,e,i,n,r),t.max=o(t.max,e,i,n,r)}function l(t,e){let{x:i,y:n}=e;a(t.x,i.translate,i.scale,i.originPoint),a(t.y,n.translate,n.scale,n.originPoint)}function u(t,e,i){let n,s,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=i.length;if(a){e.x=e.y=1;for(let u=0;u<a;u++){s=(n=i[u]).projectionDelta;let{visualElement:a}=n.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(o&&n.options.layoutScroll&&n.scroll&&n!==n.root&&c(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,l(t,s)),o&&(0,r.HD)(n.latestValues)&&c(t,n.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function h(t,e){t.min=t.min+e,t.max=t.max+e}function d(t,e,i,r){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.5,o=(0,n.k)(t.min,t.max,s);a(t,e,i,o,r)}function c(t,e){d(t.x,e.x,e.scaleX,e.scale,e.originX),d(t.y,e.y,e.scaleY,e.scale,e.originY)}},96185:(t,e,i)=>{i.d(e,{Z:()=>r});var n=i(46395);function r(t){let e=[0];return(0,n.f)(e,t.length-1),e}},97007:(t,e,i)=>{i.d(e,{F:()=>r});let n=(t,e)=>i=>e(t(i)),r=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return e.reduce(n)}},97219:(t,e,i)=>{i.d(e,{$:()=>s,q:()=>o});var n=i(66479);let r=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,s=(t,e)=>i=>!!("string"==typeof i&&r.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),o=(t,e,i)=>r=>{if("string"!=typeof r)return r;let[s,o,a,l]=r.match(n.S);return{[t]:parseFloat(s),[e]:parseFloat(o),[i]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},97494:(t,e,i)=>{i.d(e,{E:()=>r});var n=i(12115);let r=i(68972).B?n.useLayoutEffect:n.useEffect},97846:(t,e,i)=>{i.d(e,{G:()=>a});var n=i(4331),r=i(77782),s=i(47437),o=i(97007);function a(t,e){let{clamp:i=!0,ease:a,mixer:l}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=t.length;if((0,n.V1)(u===e.length,"Both input and output ranges must be the same length"),1===u)return()=>e[0];if(2===u&&e[0]===e[1])return()=>e[1];let h=t[0]===t[1];t[0]>t[u-1]&&(t=[...t].reverse(),e=[...e].reverse());let d=function(t,e,i){let r=[],a=i||s.j,l=t.length-1;for(let i=0;i<l;i++){let s=a(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||n.lQ:e;s=(0,o.F)(t,s)}r.push(s)}return r}(e,a,l),c=d.length,p=i=>{if(h&&i<t[0])return e[0];let r=0;if(c>1)for(;r<t.length-2&&!(i<t[r+1]);r++);let s=(0,n.qB)(t[r],t[r+1],i);return d[r](s)};return i?e=>p((0,r.q)(t[0],t[u-1],e)):p}},97914:(t,e,i)=>{i.d(e,{B:()=>l});var n=i(86169),r=i(45471);let s={offset:"stroke-dashoffset",array:"stroke-dasharray"},o={offset:"strokeDashoffset",array:"strokeDasharray"};function a(t,e,i){return"string"==typeof t?t:r.px.transform(e+i*t)}function l(t,e,i,l){let{attrX:u,attrY:h,attrScale:d,originX:c,originY:p,pathLength:m,pathSpacing:f=1,pathOffset:v=0,...g}=e;if((0,n.O)(t,g,l),i){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:y,style:x,dimensions:w}=t;y.transform&&(w&&(x.transform=y.transform),delete y.transform),w&&(void 0!==c||void 0!==p||x.transform)&&(x.transformOrigin=function(t,e,i){let n=a(e,t.x,t.width),r=a(i,t.y,t.height);return"".concat(n," ").concat(r)}(w,void 0!==c?c:.5,void 0!==p?p:.5)),void 0!==u&&(y.x=u),void 0!==h&&(y.y=h),void 0!==d&&(y.scale=d),void 0!==m&&function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=!(arguments.length>4)||void 0===arguments[4]||arguments[4];t.pathLength=1;let l=a?s:o;t[l.offset]=r.px.transform(-n);let u=r.px.transform(e),h=r.px.transform(i);t[l.array]="".concat(u," ").concat(h)}(y,m,f,v,!1)}},98312:(t,e,i)=>{i.d(e,{U:()=>n,_:()=>r});let n=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],r=["initial",...n]}}]); |