PageSourceSearch

https://capturemodels.com/_next/static/chunks/951-57847cd2148fc5e4.js

js capturemodels.com collected 2026-10-06 13:14:17 UTC 118,640 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[951],{807:(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,{Ai:()=>r,Kq:()=>n})},5295:(t,e,i)=>{i.d(e,{a:()=>n});let n=t=>Math.round(1e5*t)/1e5},6500:(t,e,i)=>{i.d(e,{l:()=>n});let n=t=>t},8640:(t,e,i)=>{i.d(e,{S:()=>n});let n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},8871:(t,e,i)=>{let n;i.d(e,{k:()=>a});var r=i(95221),s=i(97929);function o(){n=void 0}let a={now:()=>(void 0===n&&a.set(s.uv.isProcessing||r.W.useManualTiming?s.uv.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(o)}}},10937:(t,e,i)=>{i.d(e,{X:()=>r});let n=t=>null!==t;function r(t,{repeat:e,repeatType:i="loop"},r){let s=t.filter(n),o=e&&"loop"!==i&&e%2==1?0:s.length-1;return o&&void 0!==r?r:s[o]}},12434:(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)},15446:(t,e,i)=>{i.d(e,{B:()=>l});var n=i(74369),r=i(27137),s=i(5295),o=i(28798);let a={...r.ai,transform:t=>Math.round((0,n.q)(0,255,t))},l={test:(0,o.$)("rgb","red"),parse:(0,o.q)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+a.transform(t)+", "+a.transform(e)+", "+a.transform(i)+", "+(0,s.a)(r.X4.transform(n))+")"}},16976:(t,e,i)=>{i.d(e,{V:()=>n});let n=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},19018:(t,e,i)=>{i.d(e,{A:()=>s});var n=i(6500);let r=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function s(t,e,i,s){return t===e&&i===s?n.l:n=>0===n||1===n?n:r(function(t,e,i,n,s){let o,a,l=0;do(o=r(a=e+(i-e)/2,n,s)-t)>0?i=a:e=a;while(Math.abs(o)>1e-7&&++l<12);return a}(n,0,1,t,i),e,s)}},20641:(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},21380:(t,e,i)=>{i.d(e,{b:()=>r});var n=i(55153);let r=t=>(t*=2)<1?.5*(0,n.dg)(t):.5*(2-Math.pow(2,-10*(t-1)))},26554:(t,e,i)=>{i.d(e,{V:()=>a});var n=i(27137),r=i(65220),s=i(5295),o=i(28798);let a={test:(0,o.$)("hsl","hue"),parse:(0,o.q)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:o=1})=>"hsla("+Math.round(t)+", "+r.KN.transform((0,s.a)(e))+", "+r.KN.transform((0,s.a)(i))+", "+(0,s.a)(n.X4.transform(o))+")"}},27137:(t,e,i)=>{i.d(e,{X4:()=>s,ai:()=>r,hs:()=>o});var n=i(74369);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}},27290:(t,e,i)=>{i.d(e,{X:()=>r,f:()=>n});let n=t=>1e3*t,r=t=>t/1e3},28798:(t,e,i)=>{i.d(e,{$:()=>s,q:()=>o});var n=i(8640);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}}},32182:(t,e,i)=>{i.d(e,{Z:()=>s});var n=i(91225),r=i(41064);function s(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let o=(0,n.q)(0,e,s);t.push((0,r.k)(i,1,o))}}(e,t.length-1),e}},32467:(t,e,i)=>{i.d(e,{DX:()=>a,Dc:()=>u,TL:()=>o});var n=i(12115),r=i(94446),s=i(95155);function o(t){let e=function(t){let e=n.forwardRef((t,e)=>{let{children:i,...s}=t;if(n.isValidElement(i)){var o;let t,a,l=(o=i,(a=(t=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?o.ref:(a=(t=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?o.props.ref:o.props.ref||o.ref),u=function(t,e){let i={...e};for(let n in e){let r=t[n],s=e[n];/^on[A-Z]/.test(n)?r&&s?i[n]=(...t)=>{let e=s(...t);return r(...t),e}:r&&(i[n]=r):"style"===n?i[n]={...r,...s}:"className"===n&&(i[n]=[r,s].filter(Boolean).join(" "))}return{...t,...i}}(s,i.props);return i.type!==n.Fragment&&(u.ref=e?(0,r.t)(e,l):l),n.cloneElement(i,u)}return n.Children.count(i)>1?n.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}(t),i=n.forwardRef((t,i)=>{let{children:r,...o}=t,a=n.Children.toArray(r),l=a.find(h);if(l){let t=l.props.children,r=a.map(e=>e!==l?e:n.Children.count(t)>1?n.Children.only(null):n.isValidElement(t)?t.props.children:null);return(0,s.jsx)(e,{...o,ref:i,children:n.isValidElement(t)?n.cloneElement(t,void 0,r):null})}return(0,s.jsx)(e,{...o,ref:i,children:r})});return i.displayName=`${t}.Slot`,i}var a=o("Slot"),l=Symbol("radix.slottable");function u(t){let e=({children:t})=>(0,s.jsx)(s.Fragment,{children:t});return e.displayName=`${t}.Slottable`,e.__radixId=l,e}function h(t){return n.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===l}},33577:(t,e,i)=>{i.d(e,{B:()=>n});let n="undefined"!=typeof window},34045:(t,e,i)=>{i.d(e,{E4:()=>
1o,Hr:()=>c,W9:()=>d});var n=i(27137),r=i(65220),s=i(12434);let o=t=>t===n.ai||t===r.px,a=(t,e)=>parseFloat(t.split(", ")[e]),l=(t,e)=>(i,{transform:n})=>{if("none"===n||!n)return 0;let r=n.match(/^matrix3d\((.+)\)$/u);if(r)return a(r[1],e);{let e=n.match(/^matrix\((.+)\)$/u);return e?a(e[1],t):0}},u=new Set(["x","y","z"]),h=s.U.filter(t=>!u.has(t));function d(t){let e=[];return h.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}let c={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:l(4,13),y:l(5,14)};c.translateX=c.x,c.translateY=c.y},35850:(t,e,i)=>{i.d(e,{F:()=>r});let n=(t,e)=>i=>e(t(i)),r=(...t)=>t.reduce(n)},40509:(t,e,i)=>{i.d(e,{j:()=>S});var n=i(41064),r=i(78041);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(46125),a=i(15446),l=i(26554);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];function c(t){let e=d.find(e=>e.test(t));if((0,r.$)(!!e,`'${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({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,o=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,l=2*i-n;r=s(l,n,t+1/3),o=s(l,n,t),a=s(l,n,t-1/3)}else r=o=a=i;return{red:Math.round(255*r),green:Math.round(255*o),blue:Math.round(255*a),alpha:n}}(i)),i}let p=(t,e)=>{let i=c(t),r=c(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 m=i(35850),f=i(67154),v=i(84017),g=i(20641);let y=new Set(["none","hidden"]);function x(t,e){return i=>(0,n.k)(t,e,i)}function w(t){return"number"==typeof t?x:"string"==typeof t?(0,g.p)(t)?u:f.y.test(t)?p:b:Array.isArray(t)?P:"object"==typeof t?f.y.test(t)?p:T:u}function P(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>w(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function T(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=w(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=v.f.createTransformer(e),n=(0,v.V)(t),s=(0,v.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?y.has(t)&&!s.values.length||y.has(e)&&!n.values.length?function(t,e){return y.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):(0,m.F)(P(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])?i:0;n[s]=l,r[o]++}return n}(n,s),s.values),i):((0,r.$)(!0,`Complex values '${t}' and '${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 S(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,n.k)(t,e,i):w(t)(t,e)}},41064:(t,e,i)=>{i.d(e,{k:()=>n});let n=(t,e,i)=>t+(e-t)*i},46125:(t,e,i)=>{i.d(e,{u:()=>r});var n=i(15446);let r={test:(0,i(28798).$)("#"),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}},46133:(t,e,i)=>{i.d(e,{d:()=>n});let n={current:!1}},49568:(t,e,i)=>{i.d(e,{OQ:()=>u,bt:()=>a});var n=i(8871),r=i(72863),s=i(66280),o=i(97929);let a={current:void 0};class l{constructor(t,e={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=n.k.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=n.k.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(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.v);let i=this.events[t].add(e);return"change"===t?()=>{i(),o.Gt.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 a.current&&a.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=n.k.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,s.f)(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 u(t,e){return new l(t,e)}},53127:(t,e,i)=>{i.d(e,{Q:()=>n});let n=(0,i(12115).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},55153:(t,e,i)=>{i.d(e,{Sz:()=>o,ZZ:()=>l,dg:()=>a});var n=i(19018),r=i(16976),s=i(74043);let o=(0,n.A)(.33,1.53,.69,.99),a=(0,s.G)(o),l=(0,r.V)(a)},55369:(t,e,i)=>{i.d(e,{o:()=>I,L:()=>N});var n=i(91037),r=i(27290),s=i(76874),o=i(74369),a=i(40509),l=i(35850),u=i(66280);
1function h(t,e,i){let n=Math.max(e-5,0);return(0,u.f)(i-t(n),e-n)}let d={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};var c=i(78041);function p(t,e){return t*Math.sqrt(1-e*e)}let m=["duration","bounce"],f=["stiffness","damping","mass"];function v(t,e){return e.some(e=>void 0!==t[e])}function g(t=d.visualDuration,e=d.bounce){let i,s="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:a,restDelta:l}=s,u=s.keyframes[0],y=s.keyframes[s.keyframes.length-1],x={done:!1,value:u},{stiffness:w,damping:P,mass:T,duration:b,velocity:S,isResolvedFromDuration:A}=function(t){let e={velocity:d.velocity,stiffness:d.stiffness,damping:d.damping,mass:d.mass,isResolvedFromDuration:!1,...t};if(!v(t,f)&&v(t,m))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*(0,o.q)(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:d.mass,stiffness:n,damping:r}}else{let i=function({duration:t=d.duration,bounce:e=d.bounce,velocity:i=d.velocity,mass:n=d.mass}){let s,a;(0,c.$)(t<=(0,r.f)(d.maxDuration),"Spring duration must be 10 seconds or less");let l=1-e;l=(0,o.q)(d.minDamping,d.maxDamping,l),t=(0,o.q)(d.minDuration,d.maxDuration,(0,r.X)(t)),l<1?(s=e=>{let n=e*l,r=n*t;return .001-(n-i)/p(e,l)*Math.exp(-r)},a=e=>{let n=e*l*t,r=Math.pow(l,2)*Math.pow(e,2)*t,o=Math.exp(-n),a=p(Math.pow(e,2),l);return(n*i+i-r)*o*(-s(e)+.001>0?-1:1)/a}):(s=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),a=e=>t*t*(i-e)*Math.exp(-e*t));let u=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(s,a,5/t);if(t=(0,r.f)(t),isNaN(u))return{stiffness:d.stiffness,damping:d.damping,duration:t};{let e=Math.pow(u,2)*n;return{stiffness:e,damping:2*l*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:d.mass}).isResolvedFromDuration=!0}return e}({...s,velocity:-(0,r.X)(s.velocity||0)}),V=S||0,E=P/(2*Math.sqrt(w*T)),k=y-u,M=(0,r.X)(Math.sqrt(w/T)),C=5>Math.abs(k);if(a||(a=C?d.restSpeed.granular:d.restSpeed.default),l||(l=C?d.restDelta.granular:d.restDelta.default),E<1){let t=p(M,E);i=e=>y-Math.exp(-E*M*e)*((V+E*M*k)/t*Math.sin(t*e)+k*Math.cos(t*e))}else if(1===E)i=t=>y-Math.exp(-M*t)*(k+(V+M*k)*t);else{let t=M*Math.sqrt(E*E-1);i=e=>{let i=Math.exp(-E*M*e),n=Math.min(t*e,300);return y-i*((V+E*M*k)*Math.sinh(n)+t*k*Math.cosh(n))/t}}let D={calculatedDuration:A&&b||null,next:t=>{let e=i(t);if(A)x.done=t>=b;else{let n=0;E<1&&(n=0===t?(0,r.f)(V):h(i,t,e));let s=Math.abs(y-e)<=l;x.done=Math.abs(n)<=a&&s}return x.value=x.done?y:e,x},toString:()=>{let t=Math.min((0,n.tu)(D),n.YE),e=(0,n.KZ)(e=>D.next(t*e).value,t,30);return t+"ms "+e}};return D}function y({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:d}){let c,p,m=t[0],f={done:!1,value:m},v=i*e,y=m+v,x=void 0===o?y:o(y);x!==y&&(v=x-m);let w=t=>-v*Math.exp(-t/n),P=t=>x+w(t),T=t=>{let e=w(t),i=P(t);f.done=Math.abs(e)<=u,f.value=f.done?x:i},b=t=>{let e;if(e=f.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;c=t,p=g({keyframes:[f.value,(i=f.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:h(P,t,f.value),damping:r,stiffness:s,restDelta:u,restSpeed:d})}};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return(p||void 0!==c||(e=!0,T(t),b(t)),void 0!==c&&t>=c)?p.next(t-c):(e||T(t),f)}}}var x=i(19018);let w=(0,x.A)(.42,0,1,1),P=(0,x.A)(0,0,.58,1),T=(0,x.A)(.42,0,.58,1);var b=i(6500),S=i(21380),A=i(55153),V=i(64885);let E={linear:b.l,easeIn:w,easeInOut:T,easeOut:P,circIn:V.po,circInOut:V.tn,circOut:V.yT,backIn:A.dg,backInOut:A.ZZ,backOut:A.Sz,anticipate:S.b},k=t=>{if((0,n.DW)(t)){(0,c.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,r]=t;return(0,x.A)(e,i,n,r)}return"string"==typeof t?((0,c.V)(void 0!==E[t],`Invalid easing type '${t}'`),E[t]):t};var M=i(70181),C=i(32182);function D({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var r;let s=Array.isArray(n)&&"number"!=typeof n[0]?n.map(k):k(n),o={done:!1,value:e[0]}
1,a=(r=i&&i.length===e.length?i:(0,C.Z)(e),r.map(e=>e*t)),l=(0,M.G)(a,e,{ease:Array.isArray(s)?s:e.map(()=>s||T).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=l(e),o.done=e>=t,o)}}var R=i(63030),j=i(8871),L=i(97929);let F=t=>{let e=({timestamp:e})=>t(e);return{start:()=>L.Gt.update(e,!0),stop:()=>(0,L.WG)(e),now:()=>L.uv.isProcessing?L.uv.timestamp:j.k.now()}};var B=i(10937);let O={decay:y,inertia:y,tween:D,keyframes:D,spring:g},U=t=>t/100;class I extends R.i{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,o=(null==n?void 0:n.KeyframeResolver)||s.h,a=(t,e)=>this.onKeyframesResolved(t,e);this.resolver=new o(r,a,e,i,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i,{type:r="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:u,velocity:h=0}=this.options,d=(0,n.WH)(r)?r:O[r]||D;d!==D&&"number"!=typeof t[0]&&(e=(0,l.F)(U,(0,a.j)(t[0],t[1])),t=[0,100]);let c=d({...this.options,keyframes:t});"mirror"===u&&(i=d({...this.options,keyframes:[...t].reverse(),velocity:-h})),null===c.calculatedDuration&&(c.calculatedDuration=(0,n.tu)(c));let{calculatedDuration:p}=c,m=p+o;return{generator:c,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:p,resolvedDuration:m,totalDuration:m*(s+1)-o}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{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:a,keyframes:l,calculatedDuration:u,totalDuration:h,resolvedDuration:d}=i;if(null===this.startTime)return r.next(0);let{delay:c,repeat:p,repeatType:m,repeatDelay:f,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/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 g=this.currentTime-c*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>h;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=h);let x=this.currentTime,w=r;if(p){let t=Math.min(this.currentTime,h)/d,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,p+1))%2&&("reverse"===m?(i=1-i,f&&(i-=f/d)):"mirror"===m&&(w=s)),x=(0,o.q)(0,1,i)*d}let P=y?{done:!1,value:l[0]}:w.next(x);a&&(P.value=a(P.value));let{done:T}=P;y||null===u||(T=this.speed>=0?this.currentTime>=h:this.currentTime<=0);let b=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return b&&void 0!==n&&(P.value=(0,B.X)(l,this.options,n)),v&&v(P.value),b&&this.finish(),P}get duration(){let{resolved:t}=this;return t?(0,r.X)(t.calculatedDuration):0}get time(){return(0,r.X)(this.currentTime)}set time(t){t=(0,r.f)(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.X)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=F,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)?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.updateFinishedProm
1ise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}function N(t){return new I(t)}},59686:(t,e,i)=>{i.d(e,{t:()=>n});let n=(0,i(12115).createContext)(null)},60178:(t,e,i)=>{i.d(e,{p:()=>n});function n(t){let e;return()=>(void 0===e&&(e=t()),e)}},60296:(t,e,i)=>{i.d(e,{L:()=>n});let n=(0,i(12115).createContext)({})},63030:(t,e,i)=>{i.d(e,{i:()=>d});var n=i(8871),r=i(76874),s=i(46133),o=i(91037),a=i(78041),l=i(84017);let u=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(l.f.test(t)||"0"===t)&&!t.startsWith("url("));var h=i(10937);class d{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.k.now(),this.options={autoplay:t,delay:e,type:i,repeat:r,repeatDelay:s,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(0,r.q)(),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=n.k.now(),this.hasAttemptedResolve=!0;let{name:i,type:r,velocity:l,delay:d,onComplete:c,onUpdate:p,isGenerator:m}=this.options;if(!m&&!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],l=u(r,e),h=u(s,e);return(0,a.$)(l===h,`You are trying to animate ${e} from "${r}" to "${s}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${s} via the \`style\` property.`),!!l&&!!h&&(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,o.WH)(i))&&n)}(t,i,r,l))if(s.d.current||!d){p&&p((0,h.X)(t,this.options,e)),c&&c(),this.resolveFinishedPromise();return}else this.options.duration=0;let f=this.initPlayback(t,e);!1!==f&&(this._resolved={keyframes:t,finalKeyframe:e,...f},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}},64885:(t,e,i)=>{i.d(e,{po:()=>s,tn:()=>a,yT:()=>o});var n=i(16976),r=i(74043);let s=t=>1-Math.sin(Math.acos(t)),o=(0,r.G)(s),a=(0,n.V)(s)},65220:(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=>`${e}${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)}},65895:(t,e,i)=>{function n(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}i.d(e,{P:()=>nT});let r=t=>Array.isArray(t);function s(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}function o(t){return"string"==typeof t||Array.isArray(t)}function a(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function l(t,e,i,n){if("function"==typeof e){let[r,s]=a(n);e=e(void 0!==i?i:t.custom,r,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,s]=a(n);e=e(void 0!==i?i:t.custom,r,s)}return e}function u(t,e,i){let n=t.getProps();return l(n,e,void 0!==i?i:n.custom,t)}let h=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],d=["initial",...h];var c,p,m=i(91037),f=i(12434);let v=new Set(["width","height","top","left","right","bottom",...f.U]),g=t=>r(t)?t[t.length-1]||0:t;var y=i(49568),x=i(77481);function w(t,e){let i=t.getValue("willChange");if((0,x.S)(i)&&i.add)return i.add(e)}let P=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),T="data-"+P("framerAppearId");var b=i(27290),S=i(97929),A=i(95221),V=i(46133),E=i(6500),k=i(21380),M=i(55153),C=i(64885);let D=t=>/^0[^.\s]+$/u.test(t);var R=i(84017),j=i(8640);let L=new Set(["brightness","contrast","saturate","opacity"]);function F(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(j.S)||[];if(!n)return t;let r=i.replace(n,""),s=+!!L.has(e);return n!==i&&(s*=100),e+"("+s+r+")"}let B=/\b([a-z-]*)\(.*?\)/gu,O={...R.f,getAnimatableNone:t=>{let e=t.match(B);return e?e.map(F).join(" "):t}};var U=i(67154),I=i(27137),N=i(65220);let W={borderWidth:N.px,borderTopWidth:N.px,borderRightWidth:N.px,borderBottomWidth:N.px,borderLeftWidth:N.px,borderRadius:N.px,radius:N.px,borderTopLeftRadius:N.px,borderTopRightRadius:N.px,borderBottomRightRadius:N.px,borderBottomLeftRadius:N.px,width:N.px,maxWidth:N.px,height:N.px,maxHeight:N.px,top:N.px,right:N.px,bottom:N.px,left:N.px,padding:N.px,paddingTop:N.px,paddingRight:N.px,paddingBottom:N.px,paddingLeft:N.px,margin:N.px,marginTop:N.px,marginRight:N.px,marginBottom:N.px,marginLeft:N.px,backgroundPositionX:N.px,backgroundPositionY:N.px},$={rotate:N.uj,rotateX:N.uj,rotateY:N.uj,rotateZ:N.uj,scale:I.hs,scaleX:I.hs,scaleY:I.hs,scaleZ:I.hs,skew:N.uj,skewX:N.uj,skewY:N.uj,distance:N.px,translateX:N.px,translateY:N.px,translateZ:N.px,x:N.px,y:N.px,z:N.px,perspective:N.px,transformPerspective:N.px,opacity:I.X4,originX:N.gQ,originY:N.gQ,originZ:N.px},G={...I.ai,transform:Math.round},X={...W,...$,zIndex:G,size:N.px,fillOpacity:I.X4,strokeOpacity:I.X4,numOctaves:G},q={...X,color:U.y,backgroundColor:U.y,outlineColor:U.y,fill:U.y,stroke:U.y,borderColor:U.y,borderTopColor:U.y,borderRightColor:U.y,borderBottomColor:U.y,borderLeftColor:U.y,filter:O,WebkitFilter:O},K=t=>q[t];function z(t,e){let i=K(t);return i!==O&&(i=R.f),i.getAnimatableNone?i.getAnimatableNone(e):void 0}
1let H=new Set(["auto","none","0"]);var Y=i(76874),Z=i(78041);let _=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);var Q=i(20641);let J=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var tt=i(34045);let te=t=>e=>e.test(t),ti=[I.ai,N.px,N.KN,N.uj,N.vw,N.vh,{test:t=>"auto"===t,parse:t=>t}],tn=t=>ti.find(te(t));class tr extends Y.h{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}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,Q.p)(n))){let r=function t(e,i,n=1){(0,Z.V)(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,s]=function(t){let e=J.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${null!=i?i:n}`,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let t=o.trim();return _(t)?parseFloat(t):t}return(0,Q.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(),!v.has(i)||2!==t.length)return;let[n,r]=t,s=tn(n),o=tn(r);if(s!==o)if((0,tt.E4)(s)&&(0,tt.E4)(o))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 n;("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||D(n))&&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&&!H.has(e)&&(0,R.V)(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=z(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=tt.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]=tt.Hr[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null==(t=this.removedTransforms)?void 0:t.length)&&this.removedTransforms.forEac
1h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}var ts=i(63030),to=i(55369);let ta=new Set(["opacity","clipPath","filter","transform"]);var tl=i(10937);let tu=(0,i(60178).p)(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),th={anticipate:k.b,backInOut:M.ZZ,circInOut:C.tn};class td extends ts.i{constructor(t){super(t);let{name:e,motionValue:i,element:n,keyframes:r}=this.options;this.resolver=new tr(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}initPlayback(t,e){var i;let{duration:n=300,times:r,ease:s,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if("string"==typeof s&&(0,m.nL)()&&s in th&&(s=th[s]),i=this.options,(0,m.WH)(i.type)||"spring"===i.type||!(0,m.yL)(i.ease)){let{onComplete:e,onUpdate:i,motionValue:a,element:l,...u}=this.options,h=function(t,e){let i=new to.o({...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]),n=h.duration,r=h.times,s=h.ease,o="keyframes"}let h=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=(0,m.TU)(a,r);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:n,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"})}(a.owner.current,l,t,{...this.options,duration:n,times:r,ease:s});return h.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?((0,m.vG)(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{let{onComplete:i}=this.options;a.set((0,tl.X)(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:n,times:r,type:o,ease:s,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return(0,b.X)(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(0,b.X)(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=(0,b.f)(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 E.l;let{animation:i}=e;(0,m.vG)(i,t)}else this.pendingTimeline=t;return E.l}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:r,ease:s,times:o}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,h=new to.o({...u,keyframes:i,duration:n,type:r,ease:s,times:o,isGenerator:!0}),d=(0,b.f)(this.time);t.setWithVelocity(h.sample(d-10).value,h.sample(d).value,10)}let{onStop:a}=this.options;a&&a(),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 tu()&&i&&ta.has(i)&&!a&&!l&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}}let tc={type:"spring",stiffness:500,damping:25,restSpeed:10},tp={type:"keyframes",duration:.8},tm={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tf=(t,e,i,n={},r,s)=>o=>{let a=(0,m.rU)(n,t)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=(0,b.f)(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:
1o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(a)&&(h={...h,...((t,{keyframes:e})=>e.length>2?tp:f.f.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:tc:tm)(t,h)}),h.duration&&(h.duration=(0,b.f)(h.duration)),h.repeatDelay&&(h.repeatDelay=(0,b.f)(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let d=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(h.duration=0,0===h.delay&&(d=!0)),(V.d.current||A.W.skipAnimations)&&(d=!0,h.duration=0,h.delay=0),d&&!s&&void 0!==e.get()){let t=(0,tl.X)(h.keyframes,a);if(void 0!==t)return S.Gt.update(()=>{h.onUpdate(t),h.onComplete()}),new m.P6([])}return!s&&td.supports(h)?new td(h):new to.o(h)};function tv(t,e,{delay:i=0,transitionOverride:n,type:r}={}){var s;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;n&&(o=n);let h=[],d=r&&t.animationState&&t.animationState.getState()[r];for(let e in l){let n=t.getValue(e,null!=(s=t.latestValues[e])?s:null),r=l[e];if(void 0===r||d&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(d,e))continue;let a={delay:i,...(0,m.rU)(o||{},e)},u=!1;if(window.MotionHandoffAnimation){let i=t.props[T];if(i){let t=window.MotionHandoffAnimation(i,e,S.Gt);null!==t&&(a.startTime=t,u=!0)}}w(t,e),n.start(tf(e,n,r,t.shouldReduceMotion&&v.has(e)?{type:!1}:a,t,u));let c=n.animation;c&&h.push(c)}return a&&Promise.all(h).then(()=>{S.Gt.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=u(t,e)||{};for(let e in r={...r,...i}){let i=g(r[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,y.OQ)(i))}}(t,a)})}),h}function tg(t,e,i={}){var n;let r=u(t,e,"exit"===i.type?null==(n=t.presenceContext)?void 0:n.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(s=i.transitionOverride);let o=r?()=>Promise.all(tv(t,r,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,i=0,n=0,r=1,s){let o=[],a=(t.variantChildren.size-1)*n,l=1===r?(t=0)=>t*n:(t=0)=>a-t*n;return Array.from(t.variantChildren).sort(ty).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(tg(t,e,{...s,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,r+n,o,a,i)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}function ty(t,e){return t.sortNodePosition(e)}let tx=d.length,tw=[...h].reverse(),tP=h.length;function tT(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function tb(){return{animate:tT(!0),whileInView:tT(),whileHover:tT(),whileTap:tT(),whileDrag:tT(),whileFocus:tT(),exit:tT()}}class tS{constructor(t){this.isMounted=!1,this.node=t}update(){}}class tA extends tS{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>tg(t,e,i)));else if("string"==typeof e)n=tg(t,e,i);else{let r="function"==typeof e?u(t,e,i.custom):e;n=Promise.all(tv(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=tb(),a=!0,l=e=>(i,n)=>{var r;let s=u(t,n,"exit"===e?null==(r=t.presenceContext)?void 0:r.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function h(u){let{props:h}=t,c=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<tx;t++){let n=d[t],r=e.props[n];(o(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},p=[],m=new Set,f={},v=1/0;for(let e=0;e<tP;e++){var g,y;let d=tw[e],x=i[d],w=void 0!==h[d]?h[d]:c[d],P=o(w),T=d===u?x.isActive:null;!1===T&&(v=e);let b=w===c[d]&&w!==h[d]&&P;if(b&&a&&t.manuallyAnimateOnMount&&(b=!1),x.protectedKeys={...f},!x.isActive&&null===T||!w&&!x.prevProp||n(w)||"boolean"==typeof w)continue;let S=(g=x.prevProp,"string"==typeof(y=w)?y!==g:!!Array.isArray(y)&&!s(y,g)),A=S||d===u&&x.isActive&&!b&&P||e>
1v&&P,V=!1,E=Array.isArray(w)?w:[w],k=E.reduce(l(d),{});!1===T&&(k={});let{prevResolvedValues:M={}}=x,C={...M,...k},D=e=>{A=!0,m.has(e)&&(V=!0,m.delete(e)),x.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in C){let e=k[t],i=M[t];if(!f.hasOwnProperty(t))(r(e)&&r(i)?s(e,i):e===i)?void 0!==e&&m.has(t)?D(t):x.protectedKeys[t]=!0:null!=e?D(t):m.add(t)}x.prevProp=w,x.prevResolvedValues=k,x.isActive&&(f={...f,...k}),a&&t.blockInitialAnimation&&(A=!1);let R=!(b&&S)||V;A&&R&&p.push(...E.map(t=>({animation:t,options:{type:d}})))}if(m.size){let e={};m.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=null!=n?n:null}),p.push({animation:e})}let x=!!p.length;return a&&(!1===h.initial||h.initial===h.animate)&&!t.manuallyAnimateOnMount&&(x=!1),a=!1,x?e(p):Promise.resolve()}return{animateChanges:h,setActive:function(e,n){var r;if(i[e].isActive===n)return Promise.resolve();null==(r=t.variantChildren)||r.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,n)}),i[e].isActive=n;let s=h(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=tb(),a=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();n(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}}let tV=0;class tE extends tS{constructor(){super(...arguments),this.id=tV++}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}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}function tk(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}function tM(t){return{point:{x:t.pageX,y:t.pageY}}}function tC(t,e,i,n){return tk(t,e,t=>(0,m.Mc)(t)&&i(t,tM(t)),n)}let tD=(t,e)=>Math.abs(t-e);var tR=i(35850);class tj{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=tB(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(tD(t.x,e.x)**2+tD(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:r}=S.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=tL(e,this.transformPagePoint),S.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=tB("pointercancel"===t.type?this.lastMoveEventInfo:tL(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!(0,m.Mc)(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let s=tL(tM(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=S.uv;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,tB(s,this.history)),this.removeListeners=(0,tR.F)(tC(this.contextWindow,"pointermove",this.handlePointerMove),tC(this.contextWindow,"pointerup",this.handlePointerUp),tC(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,S.WG)(this.updatePoint)}}function tL(t,e){return e?{point:e(t.point)}:t}function tF(t,e){return{x:t.x-e.x,y:t.y-e.y}}function tB({point:t},e){return{point:t,delta:tF(t,tO(e)),offset:tF(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=tO(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>(0,b.f)(.1)));)i--;if(!n)return{x:0,y:0};let s=(0,b.X)(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s}
1;return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function tO(t){return t[t.length-1]}function tU(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var tI=i(91225),tN=i(41064);function tW(t){return t.max-t.min}function t$(t,e,i,n=.5){t.origin=n,t.originPoint=(0,tN.k)(e.min,e.max,t.origin),t.scale=tW(i)/tW(e),t.translate=(0,tN.k)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function tG(t,e,i,n){t$(t.x,e.x,i.x,n?n.originX:void 0),t$(t.y,e.y,i.y,n?n.originY:void 0)}function tX(t,e,i){t.min=i.min+e.min,t.max=t.min+tW(e)}function tq(t,e,i){t.min=e.min-i.min,t.max=t.min+tW(e)}function tK(t,e,i){tq(t.x,e.x,i.x),tq(t.y,e.y,i.y)}var tz=i(74369);function tH(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 tY(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 tZ(t,e,i){return{min:t_(t,e),max:t_(t,i)}}function t_(t,e){return"number"==typeof t?t:t[e]||0}let tQ=()=>({translate:0,scale:1,origin:0,originPoint:0}),tJ=()=>({x:tQ(),y:tQ()}),t0=()=>({min:0,max:0}),t1=()=>({x:t0(),y:t0()});function t5(t){return[t("x"),t("y")]}function t2({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function t4(t){return void 0===t||1===t}function t3({scale:t,scaleX:e,scaleY:i}){return!t4(t)||!t4(e)||!t4(i)}function t9(t){return t3(t)||t6(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function t6(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function t7(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function t8(t,e=0,i=1,n,r){t.min=t7(t.min,e,i,n,r),t.max=t7(t.max,e,i,n,r)}function et(t,{x:e,y:i}){t8(t.x,e.translate,e.scale,e.originPoint),t8(t.y,i.translate,i.scale,i.originPoint)}function ee(t,e){t.min=t.min+e,t.max=t.max+e}function ei(t,e,i,n,r=.5){let s=(0,tN.k)(t.min,t.max,r);t8(t,e,i,s,n)}function en(t,e){ei(t.x,e.x,e.scaleX,e.scale,e.originX),ei(t.y,e.y,e.scaleY,e.scale,e.originY)}function er(t,e){return t2(function(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}}(t.getBoundingClientRect(),e))}let es=({current:t})=>t?t.ownerDocument.defaultView:null,eo=new WeakMap;class ea{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=t1(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let n=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(tM(t).point)},r=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,m.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),t5(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=tW(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&S.Gt.postRender(()=>r(t,e)),w(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},s=(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,e=10){let 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)},o=(t,e)=>this.stop(t,e),a=()=>t5(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new tj(t,{onSessionStart:n,onStart:r,onMove:s,onSessionEnd:o,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:es(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&&S.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||!el(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?(0,tN.k)(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?(0,tN.k)(i,t,n.max):Math.min(t,i)),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.layout,r=this.constraints;e&&tU(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:tH(t.x,i,r),y:tH(t.y,e,n)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:tZ(t,"left","right"),y:tZ(t,"top","bottom")}}(i),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&t5(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||!tU(e))return!1;let n=e.current;(0,Z.V)(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;
1let s=function(t,e,i){let n=er(t,i),{scroll:r}=e;return r&&(ee(n.x,r.offset.x),ee(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o=(t=r.layout.layoutBox,{x:tY(t.x,s.x),y:tY(t.y,s.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=t2(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(t5(o=>{if(!el(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 w(this.visualElement,t),i.start(tf(t,i,0,e,this.visualElement,!1))}stopAnimation(){t5(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){t5(t=>{var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.pause()})}getAnimationState(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){t5(e=>{let{drag:i}=this.getProps();if(!el(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,tN.k)(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!tU(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};t5(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=tW(t),r=tW(e);return r>n?i=(0,tI.q)(e.min,e.max-n,t.min):n>r&&(i=(0,tI.q)(t.min,t.max-r,e.min)),(0,tz.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(),t5(e=>{if(!el(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set((0,tN.k)(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;eo.set(this.visualElement,this);let t=tC(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();tU(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()),S.Gt.read(e);let r=tk(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(t5(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),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}}}function el(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class eu extends tS{constructor(t){super(t),this.removeGroupControls=E.l,this.removeListeners=E.l,this.controls=new ea(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||E.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let eh=t=>(e,i)=>{t&&S.Gt.postRender(()=>t(e,i))};class ed extends tS{constructor(){super(...arguments),this.removePointerDownListener=E.l}onPointerDown(t){this.session=new tj(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:es(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:eh(t),onStart:eh(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&S.Gt.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=tC(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var ec=i(95155),ep=i(12115),em=i(75601),ef=i(60296);let ev=(0,ep.createContext)({}),eg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ey(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let ex={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!N.px.test(t))return t;else t=parseFloat(t);let i=ey(t,e.target.x),n=ey(t,e.target.y);return`${i}% ${n}%`}},ew={},{schedule:eP,cancel:eT}=(0,i(99267).I)(queueMicrotask,!1);class eb extends ep.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;Object.assign(ew,eA),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()})),eg.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?s.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?s.promote():s.relegate()||S.Gt.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),eP.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 eS(t){let[e,i]=(0,em.xQ)(),n=(0,ep.useContext)(ef.L);return(0,ec.jsx)(eb,{...t,layoutGroup:n,switchLayoutGroup:(0,ep.useContext)(ev),isPresent:e,safeToRemove:i})}let eA={borderRadius:{...ex,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ex,borderTopRightRadius:ex,borderBottomLeftRadius:ex,borderBottomRightRadius:ex,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=R.f.parse(t);if(n.length>5)return t;
1let r=R.f.createTransformer(t),s=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=(0,tN.k)(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};var eV=i(8871),eE=i(807);let ek=(t,e)=>t.depth-e.depth;class eM{constructor(){this.children=[],this.isDirty=!1}add(t){(0,eE.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,eE.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ek),this.isDirty=!1,this.children.forEach(t)}}var eC=i(72863);function eD(t){let e=(0,x.S)(t)?t.get():t;return e&&"object"==typeof e&&e.mix&&e.toValue?e.toValue():e}let eR=["TopLeft","TopRight","BottomLeft","BottomRight"],ej=eR.length,eL=t=>"string"==typeof t?parseFloat(t):t,eF=t=>"number"==typeof t||N.px.test(t);function eB(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let eO=eI(0,.5,C.yT),eU=eI(.5,.95,E.l);function eI(t,e,i){return n=>n<t?0:n>e?1:i((0,tI.q)(t,e,n))}function eN(t,e){t.min=e.min,t.max=e.max}function eW(t,e){eN(t.x,e.x),eN(t.y,e.y)}function e$(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function eG(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function eX(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(N.KN.test(e)&&(e=parseFloat(e),e=(0,tN.k)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,tN.k)(s.min,s.max,n);t===s&&(a-=e),t.min=eG(t.min,e,i,a,r),t.max=eG(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let eq=["x","scaleX","originX"],eK=["y","scaleY","originY"];function ez(t,e,i,n){eX(t.x,e,eq,i?i.x:void 0,n?n.x:void 0),eX(t.y,e,eK,i?i.y:void 0,n?n.y:void 0)}function eH(t){return 0===t.translate&&1===t.scale}function eY(t){return eH(t.x)&&eH(t.y)}function eZ(t,e){return t.min===e.min&&t.max===e.max}function e_(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function eQ(t,e){return e_(t.x,e.x)&&e_(t.y,e.y)}function eJ(t){return tW(t.x)/tW(t.y)}function e0(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class e1{constructor(){this.members=[]}add(t){(0,eE.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,eE.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,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)}}let e5={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},e2="undefined"!=typeof window&&void 0!==window.MotionDebug,e4=["","X","Y","Z"],e3={visibility:"hidden"},e9=0;function e6(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function e7({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=e9++,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,e2&&(e5.totalNodes=e5.resolvedTargetDeltas=e5.recalculatedProjection=0),this.nodes.forEac
1h(ie),this.nodes.forEach(iu),this.nodes.forEach(ih),this.nodes.forEach(ii),e2&&window.MotionDebug.record(e5)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new eM)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new eC.v),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:n,layout:r,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||n)&&(this.isLayoutDirty=!0),t){let i,n=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=eV.k.now(),n=({timestamp:e})=>{let r=e-i;r>=250&&((0,S.WG)(n),t(r-250))};return S.Gt.read(n,!0),()=>(0,S.WG)(n)}(n,250),eg.hasAnimatedSinceResize&&(eg.hasAnimatedSinceResize=!1,this.nodes.forEach(il))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&s&&(n||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||ig,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!eQ(this.targetLayout,n)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...(0,m.rU)(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||il(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,S.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(id),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[T];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",S.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.forEac
1h(is);return}this.isUpdating||this.nodes.forEach(io),this.isUpdating=!1,this.nodes.forEach(ia),this.nodes.forEach(e8),this.nodes.forEach(it),this.clearAllSnapshots();let t=eV.k.now();S.uv.delta=(0,tz.q)(0,1e3/60,t-S.uv.timestamp),S.uv.timestamp=t,S.uv.isProcessing=!0,S.PP.update.process(S.uv),S.PP.preRender.process(S.uv),S.PP.render.process(S.uv),S.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,eP.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ir),this.sharedNodes.forEach(ic)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,S.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){S.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=t1(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!eY(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&(e||t9(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),iw((e=n).x),iw(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return t1();let i=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(iT))){let{scroll:t}=this.root;t&&(ee(i.x,t.offset.x),ee(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=t1();if(eW(i,t),null==(e=this.scroll)?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&&eW(i,t),ee(i.x,r.offset.x),ee(i.y,r.offset.y))}return i}applyTransform(t,e=!1){let i=t1();eW(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&&en(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),t9(n.latestValues)&&en(i,n.latestValues)}return t9(this.latestValues)&&en(i,this.latestValues),i}removeTransform(t){let e=t1();eW(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!t9(i.latestValues))continue;t3(i.latestValues)&&i.updateSnapshot();let n=t1();eW(n,i.measurePageBox()),ez(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return t9(this.latestValues)&&ez(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!==S.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,n,r;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isS
1haredProjectionDirty);let o=!!this.resumingFrom||this!==s;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=S.uv.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=t1(),this.relativeTargetOrigin=t1(),tK(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),eW(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=t1(),this.targetWithTransforms=t1()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,n=this.relativeTarget,r=this.relativeParent.target,tX(i.x,n.x,r.x),tX(i.y,n.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):eW(this.target,this.layout.layoutBox),et(this.target,this.targetDelta)):eW(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=t1(),this.relativeTargetOrigin=t1(),tK(this.relativeTargetOrigin,this.target,t.target),eW(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}e2&&e5.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||t3(this.parent.latestValues)||t6(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(n=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===S.uv.t
1imestamp&&(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;eW(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,n=!1){let r,s,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(r=i[a]).projectionDelta;let{visualElement:o}=r.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&en(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,et(t,s)),n&&t9(r.latestValues)&&en(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(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=t1());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(e$(this.prevProjectionDelta.x,this.projectionDelta.x),e$(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),tG(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&e0(this.projectionDelta.x,this.prevProjectionDelta.x)&&e0(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),e2&&e5.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null==(e=this.options.visualElement)||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=tJ(),this.projectionDelta=tJ(),this.projectionDeltaWithTransform=tJ()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=tJ();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=t1(),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(iv));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(ip(o.x,t.x,n),ip(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;tK(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,v=n,im(p.x,m.x,f.x,v),im(p.y,m.y,f.y,v),i&&(u=this.relativeTarget,c=i,eZ(u.x,c.x)&&eZ(u.y,c.y))&&(this.isProjectionDirty=!1),i||(i=t1()),eW(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=(0,tN.k)(0,void 0!==i.opacity?i.opacity:1,eO(n)),t.opacityExit=(0,tN.k)(void 0!==e.opacity?e.opacity:1,0,eU(n))):s&&(t.opacity=(0,tN.k)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let r=0;r<ej;r++){let s=`border${eR[r]}Radius`,o=eB(e,s),a=eB(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||eF(o)===eF(a)?(t[s]=Math.max((0,tN.k)(eL(o),eL(a),n),0),(N.KN.test(a)||N.KN.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,tN.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,S.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=S.Gt.update(()=>{eg.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,
1i){let n=(0,x.S)(0)?0:(0,y.OQ)(t);return n.start(tf("",n,1e3,i)),n.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&iP(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||t1();let e=tW(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=tW(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}eW(e,i),en(e,r),tG(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new e1),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let 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&&e6("z",t,n,this.animationValues);for(let e=0;e<e4.length;e++)e6(`rotate${e4[e]}`,t,n,this.animationValues),e6(`skew${e4[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 e3;let n={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=eD(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=eD(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!t9(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(${r}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),r&&(n.transform=r(o,n.transform));let{x:a,y:l}=this.projectionDelta;for(let t in n.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?n.opacity=s===this?null!=(i=null!=(e=o.opacity)?e:this.latestValues.opacity)?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,ew){if(void 0===o[t])continue;let{correct:e,applyTo:i}=ew[t],r="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]]=r}else n[t]=r}return this.options.layoutId&&(n.pointerEvents=s===this?eD(null==t?void 0:t.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
1resetTree(){this.root.nodes.forEach(t=>{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(is),this.root.sharedNodes.clear()}}}function e8(t){t.updateLayout()}function it(t){var e;let i=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:r}=t.options,s=i.source!==t.layout.source;"size"===r?t5(t=>{let n=s?i.measuredBox[t]:i.layoutBox[t],r=tW(n);n.min=e[t].min,n.max=n.min+r}):iP(r,i.layoutBox,e)&&t5(n=>{let r=s?i.measuredBox[n]:i.layoutBox[n],o=tW(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=tJ();tG(o,e,i.layoutBox);let a=tJ();s?tG(a,t.applyTransform(n,!0),i.measuredBox):tG(a,e,i.layoutBox);let l=!eY(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=t1();tK(o,i.layoutBox,r.layoutBox);let a=t1();tK(a,e,s.layoutBox),eQ(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,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function ie(t){e2&&e5.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ii(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ir(t){t.clearSnapshot()}function is(t){t.clearMeasurements()}function io(t){t.isLayoutDirty=!1}function ia(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function il(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function iu(t){t.resolveTargetDelta()}function ih(t){t.calcProjection()}function id(t){t.resetSkewAndRotation()}function ic(t){t.removeLeadSnapshot()}function ip(t,e,i){t.translate=(0,tN.k)(e.translate,0,i),t.scale=(0,tN.k)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function im(t,e,i,n){t.min=(0,tN.k)(e.min,i.min,n),t.max=(0,tN.k)(e.max,i.max,n)}function iv(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ig={duration:.45,ease:[.4,0,.1,1]},iy=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ix=iy("applewebkit/")&&!iy("chrome/")?Math.round:E.l;function iw(t){t.min=ix(t.min),t.max=ix(t.max)}function iP(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(eJ(e)-eJ(i)))}function iT(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}let ib=e7({attachResizeListener:(t,e)=>tk(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),iS={current:void 0},iA=e7({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!iS.current){let t=new ib({});t.mount(window),t.setOptions({layoutScroll:!0}),iS.current=t}return iS.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function iV(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&S.Gt.postRender(()=>r(e,tM(e)))}class iE extends tS{mount(){let{current:t}=this.node;t&&(this.unmount=(0,m.PT)(t,t=>(iV(this.node,t,"Start"),t=>iV(this.node,t,"End"))))}unmount(){}}class ik extends tS{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,tR.F)(tk(this.node.current,"focus",()=>this.onFocus()),tk(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function iM(t,e,i){let{props:n}=t;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&S.Gt.postRender(()=>r(e,tM(e)))}class iC extends tS{mount(){let{current:t}=this.node;t&&(this.unmount=(0,m.c$)(t,t=>(iM(this.node,t,"Start"),(t,{success:e})=>iM(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let iD=new WeakMap,iR=new WeakMap,ij=t=>{let e=iD.get(t.target);e&&e(t)}
1,iL=t=>{t.forEach(ij)},iF={some:0,all:1};class iB extends tS{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}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:iF[n]},o=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)};var a=this.node.current;let l=function({root:t,...e}){let i=t||document;iR.has(i)||iR.set(i,{});let n=iR.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(iL,{root:t,...e})),n[r]}(s);return iD.set(a,o),l.observe(a),()=>{iD.delete(a),l.unobserve(a)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let iO=(0,ep.createContext)({strict:!1});var iU=i(53127);let iI=(0,ep.createContext)({});function iN(t){return n(t.animate)||d.some(e=>o(t[e]))}function iW(t){return!!(iN(t)||t.variants)}function i$(t){return Array.isArray(t)?t.join(" "):t}var iG=i(33577);let iX={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"]},iq={};for(let t in iX)iq[t]={isEnabled:e=>iX[t].some(t=>!!e[t])};let iK=Symbol.for("motionComponentSymbol");var iz=i(59686),iH=i(86553);let iY=["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 iZ(t){if("string"!=typeof t||t.includes("-"));else if(iY.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var i_=i(94416);let iQ=t=>(e,i)=>{let r=(0,ep.useContext)(iI),s=(0,ep.useContext)(iz.t),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:i},r,s,o){let a={latestValues:function(t,e,i,r){let s={},o=r(t,{});for(let t in o)s[t]=eD(o[t]);let{initial:a,animate:u}=t,h=iN(t),d=iW(t);e&&d&&!h&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===u&&(u=e.animate));let c=!!i&&!1===i.initial,p=(c=c||!1===a)?u:a;if(p&&"boolean"!=typeof p&&!n(p)){let e=Array.isArray(p)?p:[p];for(let i=0;i<e.length;i++){let n=l(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=c?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(r,s,o,t),renderState:e()};return i&&(a.onMount=t=>i({props:r,current:t,...a}),a.onUpdate=t=>i(t)),a})(t,e,r,s);return i?o():(0,i_.M)(o)},iJ=(t,e)=>e&&"number"==typeof t?e.transform(t):t,i0={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},i1=f.U.length;function i5(t,e,i){let{style:n,vars:r,transformOrigin:s}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(f.f.has(t)){o=!0;continue}if((0,Q.j)(t)){r[t]=i;continue}{let e=iJ(i,X[t]);t.startsWith("origin")?(a=!0,s[t]=e):n[t]=e}}if(!e.transform&&(o||i?n.transform=function(t,e,i){let n="",r=!0;for(let s=0;s<i1;s++){let o=f.U[s],a=t[o];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===+!!o.startsWith("scale"):0===parseFloat(a))||i){let t=iJ(a,X[o]);if(!l){r=!1;let e=i0[o]||o;n+=`${e}(${t}) `}i&&(e[o]=t)}}return n=n.trim(),i?n=i(e,r?"":n):r&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=s;n.transformOrigin=`${t} ${e} ${i}`}}let i2={offset:"stroke-dashoffset",array:"stroke-dasharray"},i4={offset:"strokeDashoffset",array:"strokeDasharray"};function i3(t,e,i){return"string"==typeof t?t:N.px.transform(e+i*t)}function i9(t,{attrX:e,attrY:i,attrScale:n,originX:r,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u}
1,h,d){if(i5(t,u,d),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:p,dimensions:m}=t;c.transform&&(m&&(p.transform=c.transform),delete c.transform),m&&(void 0!==r||void 0!==s||p.transform)&&(p.transformOrigin=function(t,e,i){let n=i3(e,t.x,t.width),r=i3(i,t.y,t.height);return`${n} ${r}`}(m,void 0!==r?r:.5,void 0!==s?s:.5)),void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==n&&(c.scale=n),void 0!==o&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?i2:i4;t[s.offset]=N.px.transform(-n);let o=N.px.transform(e),a=N.px.transform(i);t[s.array]=`${o} ${a}`}(c,o,a,l,!1)}let i6=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),i7=()=>({...i6(),attrs:{}}),i8=t=>"string"==typeof t&&"svg"===t.toLowerCase();function nt(t,{style:e,vars:i},n,r){for(let s in Object.assign(t.style,e,r&&r.getProjectionStyles(n)),i)t.style.setProperty(s,i[s])}let ne=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ni(t,e,i,n){for(let i in nt(t,e,void 0,n),e.attrs)t.setAttribute(ne.has(i)?i:P(i),e.attrs[i])}function nn(t,{layout:e,layoutId:i}){return f.f.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!ew[t]||"opacity"===t)}function nr(t,e,i){var n;let{style:r}=t,s={};for(let o in r)((0,x.S)(r[o])||e.style&&(0,x.S)(e.style[o])||nn(o,t)||(null==(n=null==i?void 0:i.getValue(o))?void 0:n.liveStyle)!==void 0)&&(s[o]=r[o]);return s}function ns(t,e,i){let n=nr(t,e,i);for(let i in t)((0,x.S)(t[i])||(0,x.S)(e[i]))&&(n[-1!==f.U.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}let no=["x","y","width","height","cx","cy","r"],na={useVisualState:iQ({scrapeMotionValuesFromProps:ns,createRenderState:i7,onUpdate:({props:t,prevProps:e,current:i,renderState:n,latestValues:r})=>{if(!i)return;let s=!!t.drag;if(!s){for(let t in r)if(f.f.has(t)){s=!0;break}}if(!s)return;let o=!e;if(e)for(let i=0;i<no.length;i++){let n=no[i];t[n]!==e[n]&&(o=!0)}o&&S.Gt.read(()=>{!function(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}}}(i,n),S.Gt.render(()=>{i9(n,r,i8(i.tagName),t.transformTemplate),ni(i,n)})})}})},nl={useVisualState:iQ({scrapeMotionValuesFromProps:nr,createRenderState:i6})};function nu(t,e,i){for(let n in e)(0,x.S)(e[n])||nn(n,i)||(t[n]=e[n])}let nh=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 nd(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||nh.has(t)}let nc=t=>!nd(t);try{!function(t){t&&(nc=e=>e.startsWith("on")?!nd(e):t(e))}(require("@emotion/is-prop-valid").default)}catch(t){}let np={current:null},nm={current:!1},nf=[...ti,U.y,R.f],nv=new WeakMap,ng=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ny{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:r,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Y.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=eV.k.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,S.Gt.render(this.render,!1,!0))};let{latestValues:a,renderState:l,onUpdate:u}=s;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=iN(e),this.isVariantNode=iW(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:h,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in d){let e=d[t];void 0!==a[t]&&(0,x.S)(e)&&e.set(a[t],!1)}}mount(t){this.current=t,nv.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.forEac
1h((t,e)=>this.bindToMotionValue(e,t)),nm.current||function(){if(nm.current=!0,iG.B)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>np.current=t.matches;t.addListener(e),e()}else np.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||np.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in nv.delete(this.current),this.projection&&this.projection.unmount(),(0,S.WG)(this.notifyUpdate),(0,S.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 n=f.f.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&S.Gt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),s(),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 iq){let e=iq[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):t1()}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<ng.length;e++){let i=ng[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 n in e){let r=e[n],s=i[n];if((0,x.S)(r))t.addValue(n,r);else if((0,x.S)(s))t.addValue(n,(0,y.OQ)(r,{owner:t}));else if(s!==r)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,(0,y.OQ)(void 0!==e?e:r,{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,y.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))?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=n){if("string"==typeof n&&(_(n)||D(n)))n=parseFloat(n);else{let i;i=n,!nf.find(te(i))&&R.f.test(e)&&(n=z(t,e))}this.setBaseTarget(t,(0,x.S)(n)?n.get():n)}return(0,x.S)(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=l(this.props,n,null==(e=this.presenceContext)?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,x.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 eC.v),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class nx extends ny{constructor(){super(...arguments),this.KeyframeResolver=tr}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,x.S)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class nw extends nx{constructor(){super(...arguments),this.type="html",this.renderInstance=nt}readValueFromInstance(t,e){if(f.f.has(e)){let t=K(e);return t&&t.default||0}{let i=window.getComputedStyle(t),n=((0,Q.j)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return er(t,e)}build(t,e,i){i5(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return nr(t,e,i)}}class nP extends nx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=t1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(f.f.has(e)){let t=K(e);return t&&t.default||0}return e=ne.has(e)?e:P(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return ns(t,e,i)}build(t,e,i){i9(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,n){ni(t,e,i,n)}mount(t){this.isSVGTag=i8(t.tagName),super.mount(t)}}let nT=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}((c={animation:{Feature:tA},exit:{Feature:tE},inView:{Feature:iB},tap:{Feature:iC},focus:{Feature:ik},hover:{Feature:iE},pan:{Feature:ed},drag:{Feature:eu,ProjectionNode:iA,MeasureLayout:eS},layout:{ProjectionNode:iA,MeasureLayout:eS}},p=(t,e)=>iZ(t)?new nP(e):new nw(e,{allowProjection:t!==ep.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function(t){var e,i;let{preloadedFeatures:n,createVisualElement:r,useRender:s,useVisualState:a,Component:l}=t;function u(t,e){var i;let n,u={...(0,ep.useContext)(iU.Q),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,ep.useContext)(ef.L).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:h}=u,d=function(t){let{initial:e,animate:i}=function(t,e){if(iN(t)){let{initial:e,animate:i}=t;return{initial:!1===e||o(e)?e:void 0,animate:o(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,ep.useContext)(iI));return(0,ep.useMemo)(()=>({initial:e,animate:i}),[i$(e),i$(i)])}(t),c=a(t,h);if(!h&&iG.B){(0,ep.useContext)(iO).strict;let t=function(t){let{drag:e,layout:i}=iq;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}}(u);n=t.MeasureLayout,d.visualElement=function(t,e,i,n,r){var s,o;let{visualElement:a}=(0,ep.useContext)(iI),l=(0,ep.useContext)(iO),u=(0,ep.useContext)(iz.t),h=(0,ep.useContext)(iU.Q).reducedMotion,d=(0,ep.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,ep.useContext)(ev);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&&tU(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(d.current,i,r,p);let m=(0,ep.useRef)(!1);(0,ep.useInsertionEffect)(()=>{c&&m.current&&c.update(i,u)});let f=i[T],v=(0,ep.useRef)(!!f&&!(null==(s=window.MotionHandoffIsComplete)?void 0:s.call(window,f))&&(null==(o=window.MotionHasOptimisedAnimation)?void 0:o.call(window,f)));return(0,iH.E)(()=>{c&&(m.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),eP.render(c.render),v.current&&c.animationState&&c.animationState.animateChanges())}),(0,ep.useEffect)(()=>{c&&(!v.current&&c.animationState&&c.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var t;null==(t=window.MotionHandoffMarkAsComplete)||t.call(window,f)}),v.current=!1))}),c}(l,c,u,r,t.ProjectionNode)}return(0,ec.jsxs)(iI.Provider,{value:d,children:[n&&d.visualElement?(0,ec.jsx)(n,{visualElement:d.visualElement,...u}):null,s(l,t,(i=d.visualElement,(0,ep.useCallback)(t=>{t&&c.onMount&&c.onMount(t),i&&(t?i.mount(t):i.unmount()),e&&("function"==typeof e?e(t):tU(e)&&(e.current=t))},[i])),c,h,d.visualElement)]})}n&&function(t){for(let e in t)iq[e]={...iq[e],...t[e]}}(n),u.displayName="motion.".concat("string"==typeof l?l:"create(".concat(null!=(i=null!=(e=l.displayName)?e:l.name)?i:"",")"));let h=(0,ep.forwardRef)(u);return h[iK]=l,h}({...iZ(t)?na:nl,preloadedFeatures:c,useRender:function(t=!1){return(e,i,n,{latestValues:r},s)=>
1{let o=(iZ(e)?function(t,e,i,n){let r=(0,ep.useMemo)(()=>{let i=i7();return i9(i,e,i8(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};nu(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 nu(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,ep.useMemo)(()=>{let i=i6();return i5(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(i,r,s,e),a=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(nc(r)||!0===i&&nd(r)||!e&&!nd(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(i,"string"==typeof e,t),l=e!==ep.Fragment?{...a,...o,ref:n}:{},{children:u}=i,h=(0,ep.useMemo)(()=>(0,x.S)(u)?u.get():u,[u]);return(0,ep.createElement)(e,{...l,children:h})}}(e),createVisualElement:p,Component:t})}))},66280:(t,e,i)=>{i.d(e,{f:()=>n});function n(t,e){return e?1e3/e*t:0}},67154:(t,e,i)=>{i.d(e,{y:()=>o});var n=i(46125),r=i(26554),s=i(15446);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)}},70181:(t,e,i)=>{i.d(e,{G:()=>u});var n=i(6500),r=i(78041),s=i(91225),o=i(74369),a=i(40509),l=i(35850);function u(t,e,{clamp:i=!0,ease:h,mixer:d}={}){let c=t.length;if((0,r.V)(c===e.length,"Both input and output ranges must be the same length"),1===c)return()=>e[0];if(2===c&&e[0]===e[1])return()=>e[1];let p=t[0]===t[1];t[0]>t[c-1]&&(t=[...t].reverse(),e=[...e].reverse());let m=function(t,e,i){let r=[],s=i||a.j,o=t.length-1;for(let i=0;i<o;i++){let o=s(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||n.l:e;o=(0,l.F)(t,o)}r.push(o)}return r}(e,h,d),f=m.length,v=i=>{if(p&&i<t[0])return e[0];let n=0;if(f>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=(0,s.q)(t[n],t[n+1],i);return m[n](r)};return i?e=>v((0,o.q)(t[0],t[c-1],e)):v}},71847:(t,e,i)=>{i.d(e,{A:()=>l});var n=i(12115);let r=t=>{let e=t.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,e,i)=>i?i.toUpperCase():e.toLowerCase());return e.charAt(0).toUpperCase()+e.slice(1)},s=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return e.filter((t,e,i)=>!!t&&""!==t.trim()&&i.indexOf(t)===e).join(" ").trim()};var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,n.forwardRef)((t,e)=>{let{color:i="currentColor",size:r=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:u="",children:h,iconNode:d,...c}=t;return(0,n.createElement)("svg",{ref:e,...o,width:r,height:r,stroke:i,strokeWidth:l?24*Number(a)/Number(r):a,className:s("lucide",u),...c},[...d.map(t=>{let[e,i]=t;return(0,n.createElement)(e,i)}),...Array.isArray(h)?h:[h]])}),l=(t,e)=>{let i=(0,n.forwardRef)((i,o)=>{let{className:l,...u}=i;return(0,n.createElement)(a,{ref:o,iconNode:e,className:s("lucide-".concat(r(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(t),l),...u})});return i.displayName=r(t),i}},72863:(t,e,i)=>{i.d(e,{v:()=>r});var n=i(807);class r{constructor(){this.subscriptions=[]}add(t){return(0,n.Kq)(this.subscriptions,t),()=>(0,n.Ai)(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}}},74043:(t,e,i)=>{i.d(e,{G:()=>n});let n=t=>e=>1-t(1-e)},74369:(t,e,i)=>{i.d(e,{q:()=>n});let n=(t,e,i)=>i>e?e:i<t?t:i},75601:(t,e,i)=>{i.d(e,{xQ:()=>s});var n=i(12115),r=i(59686);function s(t=!0){let e=(0,n.useContext)(r.t);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:o,register:a}=e,l=(0,n.useId)();(0,n.useEffect)(()=>{t&&a(l)},[t]);let u=(0,n.useCallback)(()=>t&&o&&o(l),[l,o,t]);return!i&&o?[!1,u]:[!0]}},76874:(t,e,i)=>{i.d(e,{h:()=>d,q:()=>h});var n=i(34045),r=i(97929);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,n.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,i])=>{var n;null==(n=t.getValue(e))||n.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}
1a=!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{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}scheduleResolve(){this.isScheduled=!0,this.isAsync?(s.add(this),o||(o=!0,r.Gt.read(u),r.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()}}},77481:(t,e,i)=>{i.d(e,{S:()=>n});let n=t=>!!(t&&t.getVelocity)},78041:(t,e,i)=>{i.d(e,{$:()=>r,V:()=>s});var n=i(6500);let r=n.l,s=n.l},83101:(t,e,i)=>{i.d(e,{F:()=>o});var n=i(2821);let r=t=>"boolean"==typeof t?`${t}`:0===t?"0":t,s=n.$,o=(t,e)=>i=>{var n;if((null==e?void 0:e.variants)==null)return s(t,null==i?void 0:i.class,null==i?void 0:i.className);let{variants:o,defaultVariants:a}=e,l=Object.keys(o).map(t=>{let e=null==i?void 0:i[t],n=null==a?void 0:a[t];if(null===e)return null;let s=r(e)||r(n);return o[t][s]}),u=i&&Object.entries(i).reduce((t,e)=>{let[i,n]=e;return void 0===n||(t[i]=n),t},{});return s(t,l,null==e||null==(n=e.compoundVariants)?void 0:n.reduce((t,e)=>{let{class:i,className:n,...r}=e;return Object.entries(r).every(t=>{let[e,i]=t;return Array.isArray(i)?i.includes({...a,...u}[e]):({...a,...u})[e]===i})?[...t,i,n]:t},[]),null==i?void 0:i.class,null==i?void 0:i.className)}}
1,84017:(t,e,i)=>{i.d(e,{V:()=>h,f:()=>m});var n=i(67154);let r=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var s=i(8640),o=i(5295);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.length)||0)+((null==(i=t.match(r))?void 0:i.length)||0)>0},parse:d,createTransformer:c,getAnimatableNone:function(t){let e=d(t);return c(t)(e.map(p))}}},86553:(t,e,i)=>{i.d(e,{E:()=>r});var n=i(12115);let r=i(33577).B?n.useLayoutEffect:n.useEffect},91037:(t,e,i)=>{i.d(e,{P6:()=>o,vG:()=>d,tu:()=>u,KZ:()=>v,rU:()=>a,PT:()=>S,DW:()=>c,WH:()=>h,Mc:()=>V,yL:()=>g,TU:()=>function t(e,i){if(e)return"function"==typeof e&&m()?v(e,i):c(e)?y(e):Array.isArray(e)?e.map(e=>t(e,i)||x.easeOut):x[e]},YE:()=>l,c$:()=>R,KJ:()=>P,Wp:()=>j,nL:()=>m,Jb:()=>r});var n=i(60178);let r=(0,n.p)(()=>void 0!==window.ScrollTimeline);class s{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=>r()&&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 o extends s{then(t,e){return Promise.all(this.animations).then(t).catch(e)}}function a(t,e){return t?t[e]||t.default||t:void 0}let l=2e4;function u(t){let e=0,i=t.next(e);for(;!i.done&&e<l;)e+=50,i=t.next(e);return e>=l?1/0:e}function h(t){return"function"==typeof t}function d(t,e){t.timeline=e,t.onfinish=null}let c=t=>Array.isArray(t)&&"number"==typeof t[0],p={linearEasing:void 0},m=function(t,e){let i=(0,n.p)(t);return()=>{var t;return null!=(t=p[e])?t:i()}}(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing");var f=i(91225);let v=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=t((0,f.q)(0,r-1,e))+", ";return`linear(${n.substring(0,n.length-2)})`};function g(t){return!!("function"==typeof t&&m()||!t||"string"==typeof t&&(t in x||m())||c(t)||Array.isArray(t)&&t.every(g))}let y=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,x={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:y([0,.65,.55,1]),circOut:y([.55,0,1,.45]),backIn:y([.31,.01,.66,-.59]),backOut:y([.33,1.53,.69,.99])},w={x:!1,y:!1};function P(t,e,i){var n;if(t instanceof Element)return[t];if("string"==typeof t){let r=document;e&&(r=e.current);let s=null!=(n=null==i?void 0:i[t])?n:r.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t)}function T(t,e){let i=P(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function b(t){return e=>{"touch"===e.pointerType||w.x||w.y||t(e)}}function S(t,e,i={}){let[n,r,s]=T(t,i),o=b(t=>{let{target:i}=t,n=e(t);if("function"!=typeof n||!i)return;let s=b(t=>{n(t),i.removeEventListener("pointerleave",s)});i.addEventListener("pointerleave",s,r)});return n.forEach(t=>{t.addEventListener("pointerenter",o,r)}),s}let A=(t,e)=>!!e&&(t===e||A(t,e.parentElement)),V=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,E=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),k=new WeakSet;function M(t){return e=>{"Enter"===e.key&&t(e)}}function C(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function D(t){return V(t)&&!(w.x||w.y)}function R(t,e,i={}){let[n,r,s]=T(t,i),o=t=>{let n=t.currentTarget;if(!D(t)||k.has(n))return;k.add(n);let s=e(t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),D(t)&&k.has(n)&&(k.delete(n),"function"==typeof s&&s(t,{success:e}))},a=t=>{o(t,i.useGlobalTarget||A(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{E.has(t.tagName)||-1!==t.tabIndex||null!==t.getAttribute("tabindex")||(t.tabIndex=0),(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=M(()=>{if(k.has(i))return;C(i,"down");let t=M(()=>{C(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>C(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,r),r)}),s}function j(t){if("x"===t||"y"===t)if(w[t])return null;else return w[t]=!0,()=>{w[t]=!1};return w.x||w.y?null:(w.x=w.y=!0,()=>{w.x=w.y=!1})}i(27290),i(6500)},91225:(t,e,i)=>{i.d(e,{q:()=>n});let n=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n}},94416:(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}},94446:(t,e,i)=>{i.d(e,{s:()=>o,t:()=>s});var n=i(12115);function r(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}function s(...t){return e=>{let i=!1,n=t.map(t=>{let n=r(t,e);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let e=0;e<n.length;e++){let i=n[e];"function"==typeof i?i():r(t[e],null)}}}}function o(...t){return n.useCallback(s(...t),t)}},95221:(t,e,i)=>{i.d(e,{W:()=>n});let n={skipAnimations:!1,useManualTiming:!1}},97929:(t,e,i)=>{i.d(e,{Gt:()=>r,PP:()=>a,WG:()=>s,uv:()=>o});var n=i(6500);let{schedule:r,cancel:s,state:o,steps:a}=(0,i(99267).I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.l,!0)},99267:(t,e,i)=>{i.d(e,{I:()=>s});var n=i(95221);let r=["read","resolveKeyframes","update","preRender","render","postRender"];function s(t,e){let i=!1,s=!0,o={delta:0,timestamp:0,isProcessing:!1},a=()=>i=!0,l=r.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,n=!1,r=!1,s=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){s.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,r=!1,o=!1)=>{let a=o&&n?e:i;return r&&s.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),s.delete(t)},process:t=>{if(o=t,n){r=!0;return}n=!0,[e,i]=[i,e],e.forEach(a),e.clear(),n=!1,r&&(r=!1,l.process(t))}};return l}(a),t),{}),{read:u,resolveKeyframes:h,update:d,preRender:c,render:p,postRender:m}=l,f=()=>{let r=n.W.useManualTiming?o.timestamp:performance.now();i=!1,o.delta=s?1e3/60:Math.max(Math.min(r-o.timestamp,40),1),o.timestamp=r,o.isProcessing=!0,u.process(o),h.process(o),d.process(o),c.process(o),p.process(o),m.process(o),o.isProcessing=!1,i&&e&&(s=!1,t(f))};return{schedule:r.reduce((e,n)=>{let r=l[n];return e[n]=(e,n=!1,a=!1)=>(!i&&(i=!0,s=!0,o.isProcessing||t(f)),r.schedule(e,n,a)),e},{}),cancel:t=>{for(let e=0;e<r.length;e++)l[r[e]].cancel(t)},state:o,steps:l}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.