150024b6ac
更新next.config.ts文件以支持静态导出功能,并添加了多个新的依赖项到package.json中,包括UI组件库和动画库。同时生成了构建相关的文件和配置。
3 lines
114 KiB
JavaScript
3 lines
114 KiB
JavaScript
module.exports=[31363,56056,a=>{"use strict";let b,c,d,e=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],f=new Set(e),g=(a,b,c)=>c>b?b:c<a?a:c,h={test:a=>"number"==typeof a,parse:parseFloat,transform:a=>a},i={...h,transform:a=>g(0,1,a)},j={...h,default:1},k=a=>Math.round(1e5*a)/1e5,l=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,m=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,n=(a,b)=>c=>!!("string"==typeof c&&m.test(c)&&c.startsWith(a)||b&&null!=c&&Object.prototype.hasOwnProperty.call(c,b)),o=(a,b,c)=>d=>{if("string"!=typeof d)return d;let[e,f,g,h]=d.match(l);return{[a]:parseFloat(e),[b]:parseFloat(f),[c]:parseFloat(g),alpha:void 0!==h?parseFloat(h):1}},p={...h,transform:a=>Math.round(g(0,255,a))},q={test:n("rgb","red"),parse:o("red","green","blue"),transform:({red:a,green:b,blue:c,alpha:d=1})=>"rgba("+p.transform(a)+", "+p.transform(b)+", "+p.transform(c)+", "+k(i.transform(d))+")"},r={test:n("#"),parse:function(a){let b="",c="",d="",e="";return a.length>5?(b=a.substring(1,3),c=a.substring(3,5),d=a.substring(5,7),e=a.substring(7,9)):(b=a.substring(1,2),c=a.substring(2,3),d=a.substring(3,4),e=a.substring(4,5),b+=b,c+=c,d+=d,e+=e),{red:parseInt(b,16),green:parseInt(c,16),blue:parseInt(d,16),alpha:e?parseInt(e,16)/255:1}},transform:q.transform},s=a=>({test:b=>"string"==typeof b&&b.endsWith(a)&&1===b.split(" ").length,parse:parseFloat,transform:b=>`${b}${a}`}),t=s("deg"),u=s("%"),v=s("px"),w=s("vh"),x=s("vw"),y={...u,parse:a=>u.parse(a)/100,transform:a=>u.transform(100*a)},z={test:n("hsl","hue"),parse:o("hue","saturation","lightness"),transform:({hue:a,saturation:b,lightness:c,alpha:d=1})=>"hsla("+Math.round(a)+", "+u.transform(k(b))+", "+u.transform(k(c))+", "+k(i.transform(d))+")"},A={test:a=>q.test(a)||r.test(a)||z.test(a),parse:a=>q.test(a)?q.parse(a):z.test(a)?z.parse(a):r.parse(a),transform:a=>"string"==typeof a?a:a.hasOwnProperty("red")?q.transform(a):z.transform(a),getAnimatableNone:a=>{let b=A.parse(a);return b.alpha=0,A.transform(b)}},B=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,C="number",D="color",E=/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 F(a){let b=a.toString(),c=[],d={color:[],number:[],var:[]},e=[],f=0,g=b.replace(E,a=>(A.test(a)?(d.color.push(f),e.push(D),c.push(A.parse(a))):a.startsWith("var(")?(d.var.push(f),e.push("var"),c.push(a)):(d.number.push(f),e.push(C),c.push(parseFloat(a))),++f,"${}")).split("${}");return{values:c,split:g,indexes:d,types:e}}function G(a){return F(a).values}function H(a){let{split:b,types:c}=F(a),d=b.length;return a=>{let e="";for(let f=0;f<d;f++)if(e+=b[f],void 0!==a[f]){let b=c[f];b===C?e+=k(a[f]):b===D?e+=A.transform(a[f]):e+=a[f]}return e}}let I=a=>"number"==typeof a?0:A.test(a)?A.getAnimatableNone(a):a,J={test:function(a){return isNaN(a)&&"string"==typeof a&&(a.match(l)?.length||0)+(a.match(B)?.length||0)>0},parse:G,createTransformer:H,getAnimatableNone:function(a){let b=G(a);return H(a)(b.map(I))}},K=new Set(["brightness","contrast","saturate","opacity"]);function L(a){let[b,c]=a.slice(0,-1).split("(");if("drop-shadow"===b)return a;let[d]=c.match(l)||[];if(!d)return a;let e=c.replace(d,""),f=+!!K.has(b);return d!==c&&(f*=100),b+"("+f+e+")"}let M=/\b([a-z-]*)\(.*?\)/gu,N={...J,getAnimatableNone:a=>{let b=a.match(M);return b?b.map(L).join(" "):a}},O={...h,transform:Math.round},P={borderWidth:v,borderTopWidth:v,borderRightWidth:v,borderBottomWidth:v,borderLeftWidth:v,borderRadius:v,borderTopLeftRadius:v,borderTopRightRadius:v,borderBottomRightRadius:v,borderBottomLeftRadius:v,width:v,maxWidth:v,height:v,maxHeight:v,top:v,right:v,bottom:v,left:v,inset:v,insetBlock:v,insetBlockStart:v,insetBlockEnd:v,insetInline:v,insetInlineStart:v,insetInlineEnd:v,padding:v,paddingTop:v,paddingRight:v,paddingBottom:v,paddingLeft:v,paddingBlock:v,paddingBlockStart:v,paddingBlockEnd:v,paddingInline:v,paddingInlineStart:v,paddingInlineEnd:v,margin:v,marginTop:v,marginRight:v,marginBottom:v,marginLeft:v,marginBlock:v,marginBlockStart:v,marginBlockEnd:v,marginInline:v,marginInlineStart:v,marginInlineEnd:v,fontSize:v,backgroundPositionX:v,backgroundPositionY:v,rotate:t,rotateX:t,rotateY:t,rotateZ:t,scale:j,scaleX:j,scaleY:j,scaleZ:j,skew:t,skewX:t,skewY:t,distance:v,translateX:v,translateY:v,translateZ:v,x:v,y:v,z:v,perspective:v,transformPerspective:v,opacity:i,originX:y,originY:y,originZ:v,zIndex:O,fillOpacity:i,strokeOpacity:i,numOctaves:O},Q={...P,color:A,backgroundColor:A,outlineColor:A,fill:A,stroke:A,borderColor:A,borderTopColor:A,borderRightColor:A,borderBottomColor:A,borderLeftColor:A,filter:N,WebkitFilter:N},R=a=>Q[a],S=()=>({translate:0,scale:1,origin:0,originPoint:0}),T=()=>({x:S(),y:S()}),U=()=>({min:0,max:0}),V=()=>({x:U(),y:U()}),W=a=>!!(a&&a.getVelocity),X=new Set(["width","height","top","left","right","bottom",...e]),Y=a=>b=>b.test(a),Z=[h,v,u,t,x,w,{test:a=>"auto"===a,parse:a=>a}],$=a=>Z.find(Y(a)),_=()=>{},aa=()=>{},ab=a=>b=>"string"==typeof b&&b.startsWith(a),ac=ab("--"),ad=ab("var(--"),ae=a=>!!ad(a)&&af.test(a.split("/*")[0].trim()),af=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ag(a){return"string"==typeof a&&a.split("/*")[0].includes("var(--")}let ah=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ai=a=>180*a/Math.PI,aj=a=>al(ai(Math.atan2(a[1],a[0]))),ak={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:aj,rotateZ:aj,skewX:a=>ai(Math.atan(a[1])),skewY:a=>ai(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},al=a=>((a%=360)<0&&(a+=360),a),am=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),an=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),ao={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:am,scaleY:an,scale:a=>(am(a)+an(a))/2,rotateX:a=>al(ai(Math.atan2(a[6],a[5]))),rotateY:a=>al(ai(Math.atan2(-a[2],a[0]))),rotateZ:aj,rotate:aj,skewX:a=>ai(Math.atan(a[4])),skewY:a=>ai(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function ap(a){return+!!a.includes("scale")}function aq(a,b){let c,d;if(!a||"none"===a)return ap(b);let e=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(e)c=ao,d=e;else{let b=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);c=ak,d=b}if(!d)return ap(b);let f=c[b],g=d[1].split(",").map(ar);return"function"==typeof f?f(g):g[f]}function ar(a){return parseFloat(a.trim())}let as=a=>a===h||a===v,at=new Set(["x","y","z"]),au=e.filter(a=>!at.has(a)),av={width:({x:a},{paddingLeft:b="0",paddingRight:c="0"})=>a.max-a.min-parseFloat(b)-parseFloat(c),height:({y:a},{paddingTop:b="0",paddingBottom:c="0"})=>a.max-a.min-parseFloat(b)-parseFloat(c),top:(a,{top:b})=>parseFloat(b),left:(a,{left:b})=>parseFloat(b),bottom:({y:a},{top:b})=>parseFloat(b)+(a.max-a.min),right:({x:a},{left:b})=>parseFloat(b)+(a.max-a.min),x:(a,{transform:b})=>aq(b,"x"),y:(a,{transform:b})=>aq(b,"y")};av.translateX=av.x,av.translateY=av.y;let aw=a=>a,ax={},ay=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function az(a,b){let c=!1,d=!0,e={delta:0,timestamp:0,isProcessing:!1},f=()=>c=!0,g=ay.reduce((a,c)=>(a[c]=function(a,b){let c=new Set,d=new Set,e=!1,f=!1,g=new WeakSet,h={delta:0,timestamp:0,isProcessing:!1},i=0;function j(b){g.has(b)&&(k.schedule(b),a()),i++,b(h)}let k={schedule:(a,b=!1,f=!1)=>{let h=f&&e?c:d;return b&&g.add(a),h.has(a)||h.add(a),a},cancel:a=>{d.delete(a),g.delete(a)},process:a=>{if(h=a,e){f=!0;return}e=!0,[c,d]=[d,c],c.forEach(j),b,i=0,c.clear(),e=!1,f&&(f=!1,k.process(a))}};return k}(f,b?c:void 0),a),{}),{setup:h,read:i,resolveKeyframes:j,preUpdate:k,update:l,preRender:m,render:n,postRender:o}=g,p=()=>{let f=ax.useManualTiming?e.timestamp:performance.now();c=!1,ax.useManualTiming||(e.delta=d?1e3/60:Math.max(Math.min(f-e.timestamp,40),1)),e.timestamp=f,e.isProcessing=!0,h.process(e),i.process(e),j.process(e),k.process(e),l.process(e),m.process(e),n.process(e),o.process(e),e.isProcessing=!1,c&&b&&(d=!1,a(p))};return{schedule:ay.reduce((b,f)=>{let h=g[f];return b[f]=(b,f=!1,g=!1)=>(!c&&(c=!0,d=!0,e.isProcessing||a(p)),h.schedule(b,f,g)),b},{}),cancel:a=>{for(let b=0;b<ay.length;b++)g[ay[b]].cancel(a)},state:e,steps:g}}let{schedule:aA,cancel:aB,state:aC,steps:aD}=az("u">typeof requestAnimationFrame?requestAnimationFrame:aw,!0),aE=new Set,aF=!1,aG=!1,aH=!1;function aI(){if(aG){let a=Array.from(aE).filter(a=>a.needsMeasurement),b=new Set(a.map(a=>a.element)),c=new Map;b.forEach(a=>{let b,d=(b=[],au.forEach(c=>{let d=a.getValue(c);void 0!==d&&(b.push([c,d.get()]),d.set(+!!c.startsWith("scale")))}),b);d.length&&(c.set(a,d),a.render())}),a.forEach(a=>a.measureInitialState()),b.forEach(a=>{a.render();let b=c.get(a);b&&b.forEach(([b,c])=>{a.getValue(b)?.set(c)})}),a.forEach(a=>a.measureEndState()),a.forEach(a=>{void 0!==a.suspendedScrollY&&window.scrollTo(0,a.suspendedScrollY)})}aG=!1,aF=!1,aE.forEach(a=>a.complete(aH)),aE.clear()}function aJ(){aE.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(aG=!0)})}class aK{constructor(a,b,c,d,e,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=b,this.name=c,this.motionValue=d,this.element=e,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(aE.add(this),aF||(aF=!0,aA.read(aJ),aA.resolveKeyframes(aI))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:a,name:b,element:c,motionValue:d}=this;if(null===a[0]){let e=d?.get(),f=a[a.length-1];if(void 0!==e)a[0]=e;else if(c&&b){let d=c.readValue(b,f);null!=d&&(a[0]=d)}void 0===a[0]&&(a[0]=f),d&&void 0===e&&d.set(a[0])}for(let b=1;b<a.length;b++)a[b]??(a[b]=a[b-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),aE.delete(this)}cancel(){"scheduled"===this.state&&(aE.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}function aL(a,b){let c=R(a);return c!==N&&(c=J),c.getAnimatableNone?c.getAnimatableNone(b):void 0}let aM=new Set(["auto","none","0"]);class aN extends aK{constructor(a,b,c,d,e){super(a,b,c,d,e,!0)}readKeyframes(){let{unresolvedKeyframes:a,element:b,name:c}=this;if(!b||!b.current)return;super.readKeyframes();for(let c=0;c<a.length;c++){let d=a[c];if("string"==typeof d&&ae(d=d.trim())){let e=function a(b,c,d=1){aa(d<=4,`Max CSS variable fallback depth detected in property "${b}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[e,f]=function(a){let b=ah.exec(a);if(!b)return[,];let[,c,d,e]=b;return[`--${c??d}`,e]}(b);if(!e)return;let g=window.getComputedStyle(c).getPropertyValue(e);if(g){let a=g.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a)?parseFloat(a):a}return ae(f)?a(f,c,d+1):f}(d,b.current);void 0!==e&&(a[c]=e),c===a.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!X.has(c)||2!==a.length)return;let[d,e]=a,f=$(d),g=$(e);if(ag(d)!==ag(e)&&av[c]){this.needsMeasurement=!0;return}if(f!==g)if(as(f)&&as(g))for(let b=0;b<a.length;b++){let c=a[b];"string"==typeof c&&(a[b]=parseFloat(c))}else av[c]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:a,name:b}=this,c=[];for(let b=0;b<a.length;b++)(null===a[b]||function(a){if("number"==typeof a)return 0===a;if(null===a)return!0;return"none"===a||"0"===a||/^0[^.\s]+$/u.test(a)}(a[b]))&&c.push(b);c.length&&function(a,b,c){let d,e=0;for(;e<a.length&&!d;){let b=a[e];"string"==typeof b&&!aM.has(b)&&F(b).values.length&&(d=a[e]),e++}if(d&&c)for(let e of b)a[e]=aL(c,d)}(a,c,b)}measureInitialState(){let{element:a,unresolvedKeyframes:b,name:c}=this;if(!a||!a.current)return;"height"===c&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=av[c](a.measureViewportBox(),window.getComputedStyle(a.current)),b[0]=this.measuredOrigin;let d=b[b.length-1];void 0!==d&&a.getValue(c,d).jump(d,!1)}measureEndState(){let{element:a,name:b,unresolvedKeyframes:c}=this;if(!a||!a.current)return;let d=a.getValue(b);d&&d.jump(this.measuredOrigin,!1);let e=c.length-1,f=c[e];c[e]=av[b](a.measureViewportBox(),window.getComputedStyle(a.current)),null!==f&&void 0===this.finalKeyframe&&(this.finalKeyframe=f),this.removedTransforms?.length&&this.removedTransforms.forEach(([b,c])=>{a.getValue(b).set(c)}),this.resolveNoneKeyframes()}}function aO(a,b){-1===a.indexOf(b)&&a.push(b)}function aP(a,b){let c=a.indexOf(b);c>-1&&a.splice(c,1)}class aQ{constructor(){this.subscriptions=[]}add(a){return aO(this.subscriptions,a),()=>aP(this.subscriptions,a)}notify(a,b,c){let d=this.subscriptions.length;if(d)if(1===d)this.subscriptions[0](a,b,c);else for(let e=0;e<d;e++){let d=this.subscriptions[e];d&&d(a,b,c)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let{schedule:aR}=az(queueMicrotask,!1);function aS(){c=void 0}let aT={now:()=>(void 0===c&&aT.set(aC.isProcessing||ax.useManualTiming?aC.timestamp:performance.now()),c),set:a=>{c=a,queueMicrotask(aS)}};class aU{constructor(a,b={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{let b=aT.now();if(this.updatedAt!==b&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(a),this.owner=b.owner}setCurrent(a){this.current=a,this.updatedAt=aT.now(),null===this.canTrackVelocity&&void 0!==a&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,b){this.events[a]||(this.events[a]=new aQ);let c=this.events[a].add(b);return"change"===a?()=>{c(),aA.read(()=>{this.events.change.getSize()||this.stop()})}:c}clearListeners(){for(let a in this.events)this.events[a].clear()}attach(a,b){this.passiveEffect=a,this.stopPassiveEffect=b}set(a){this.passiveEffect?this.passiveEffect(a,this.updateAndNotify):this.updateAndNotify(a)}setWithVelocity(a,b,c){this.set(b),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-c}jump(a,b=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,b&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(a){this.dependents||(this.dependents=new Set),this.dependents.add(a)}removeDependent(a){this.dependents&&this.dependents.delete(a)}get(){return b&&b.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var a;let b=aT.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||b-this.updatedAt>30)return 0;let c=Math.min(this.updatedAt-this.prevUpdatedAt,30);return a=parseFloat(this.current)-parseFloat(this.prevFrameValue),c?1e3/c*a:0}start(a){return this.stop(),new Promise(b=>{this.hasAnimated=!0,this.animation=a(b),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function aV(a,b){return new aU(a,b)}let aW=[...Z,A,J],aX={current:!1},aY=new WeakMap;function aZ(a){return null!==a&&"object"==typeof a&&"function"==typeof a.start}function a$(a){return"string"==typeof a||Array.isArray(a)}let a_=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],a0=["initial",...a_];function a1(a){return aZ(a.animate)||a0.some(b=>a$(a[b]))}function a2(a){return!!(a1(a)||a.variants)}function a3(a){let b=[{},{}];return a?.values.forEach((a,c)=>{b[0][c]=a.get(),b[1][c]=a.getVelocity()}),b}function a4(a,b,c,d){if("function"==typeof b){let[e,f]=a3(d);b=b(void 0!==c?c:a.custom,e,f)}if("string"==typeof b&&(b=a.variants&&a.variants[b]),"function"==typeof b){let[e,f]=a3(d);b=b(void 0!==c?c:a.custom,e,f)}return b}let a5=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],a6={};class a7{scrapeMotionValuesFromProps(a,b,c){return{}}constructor({parent:a,props:b,presenceContext:c,reducedMotionConfig:d,blockInitialAnimation:e,visualState:f},g={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=aK,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 a=aT.now();this.renderScheduledAt<a&&(this.renderScheduledAt=a,aA.render(this.render,!1,!0))};const{latestValues:h,renderState:i}=f;this.latestValues=h,this.baseTarget={...h},this.initialValues=b.initial?{...h}:{},this.renderState=i,this.parent=a,this.props=b,this.presenceContext=c,this.depth=a?a.depth+1:0,this.reducedMotionConfig=d,this.options=g,this.blockInitialAnimation=!!e,this.isControllingVariants=a1(b),this.isVariantNode=a2(b),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const{willChange:j,...k}=this.scrapeMotionValuesFromProps(b,{},this);for(const a in k){const b=k[a];void 0!==h[a]&&W(b)&&b.set(h[a])}}mount(a){this.current=a,aY.set(a,this),this.projection&&!this.projection.instance&&this.projection.mount(a),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,b)=>this.bindToMotionValue(b,a)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(aX.current||(aX.current=!0),this.shouldReduceMotion=null),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let a in this.projection&&this.projection.unmount(),aB(this.notifyUpdate),aB(this.render),this.valueSubscriptions.forEach(a=>a()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[a].clear();for(let a in this.features){let b=this.features[a];b&&(b.unmount(),b.isMounted=!1)}this.current=null}addChild(a){this.children.add(a),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(a)}removeChild(a){this.children.delete(a),this.enteringChildren&&this.enteringChildren.delete(a)}bindToMotionValue(a,b){let c;this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)();let d=f.has(a);d&&this.onBindTransform&&this.onBindTransform();let e=b.on("change",b=>{this.latestValues[a]=b,this.props.onUpdate&&aA.preRender(this.notifyUpdate),d&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});this.valueSubscriptions.set(a,()=>{e(),c&&c(),b.owner&&b.stop()})}sortNodePosition(a){return this.current&&this.sortInstanceNodePosition&&this.type===a.type?this.sortInstanceNodePosition(this.current,a.current):0}updateFeatures(){let a="animation";for(a in a6){let b=a6[a];if(!b)continue;let{isEnabled:c,Feature:d}=b;if(!this.features[a]&&d&&c(this.props)&&(this.features[a]=new d(this)),this.features[a]){let b=this.features[a];b.isMounted?b.update():(b.mount(),b.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):V()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,b){this.latestValues[a]=b}update(a,b){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=b;for(let b=0;b<a5.length;b++){let c=a5[b];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);let d=a["on"+c];d&&(this.propEventSubscriptions[c]=this.on(c,d))}this.prevMotionValues=function(a,b,c){for(let d in b){let e=b[d],f=c[d];if(W(e))a.addValue(d,e);else if(W(f))a.addValue(d,aV(e,{owner:a}));else if(f!==e)if(a.hasValue(d)){let b=a.getValue(d);!0===b.liveStyle?b.jump(e):b.hasAnimated||b.set(e)}else{let b=a.getStaticValue(d);a.addValue(d,aV(void 0!==b?b:e,{owner:a}))}}for(let d in c)void 0===b[d]&&a.removeValue(d);return b}(this,this.scrapeMotionValuesFromProps(a,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(a){return this.props.variants?this.props.variants[a]: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(a){let b=this.getClosestVariantNode();if(b)return b.variantChildren&&b.variantChildren.add(a),()=>b.variantChildren.delete(a)}addValue(a,b){let c=this.values.get(a);b!==c&&(c&&this.removeValue(a),this.bindToMotionValue(a,b),this.values.set(a,b),this.latestValues[a]=b.get())}removeValue(a){this.values.delete(a);let b=this.valueSubscriptions.get(a);b&&(b(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,b){if(this.props.values&&this.props.values[a])return this.props.values[a];let c=this.values.get(a);return void 0===c&&void 0!==b&&(c=aV(null===b?void 0:b,{owner:this}),this.addValue(a,c)),c}readValue(a,b){let c=void 0===this.latestValues[a]&&this.current?this.getBaseTargetFromProps(this.props,a)??this.readValueFromInstance(this.current,a,this.options):this.latestValues[a];if(null!=c){let d,e;if("string"==typeof c&&(d=c,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(d)||(e=c,/^0[^.\s]+$/u.test(e))))c=parseFloat(c);else{let d;d=c,!aW.find(Y(d))&&J.test(b)&&(c=aL(a,b))}this.setBaseTarget(a,W(c)?c.get():c)}return W(c)?c.get():c}setBaseTarget(a,b){this.baseTarget[a]=b}getBaseTarget(a){let b,{initial:c}=this.props;if("string"==typeof c||"object"==typeof c){let d=a4(this.props,c,this.presenceContext?.custom);d&&(b=d[a])}if(c&&void 0!==b)return b;let d=this.getBaseTargetFromProps(this.props,a);return void 0===d||W(d)?void 0!==this.initialValues[a]&&void 0===b?void 0:this.baseTarget[a]:d}on(a,b){return this.events[a]||(this.events[a]=new aQ),this.events[a].add(b)}notify(a,...b){this.events[a]&&this.events[a].notify(...b)}scheduleRenderMicrotask(){aR.render(this.render)}}class a8 extends a7{constructor(){super(...arguments),this.KeyframeResolver=aN}sortInstanceNodePosition(a,b){return 2&a.compareDocumentPosition(b)?1:-1}getBaseTargetFromProps(a,b){let c=a.style;return c?c[b]:void 0}removeValueFromRenderState(a,{vars:b,style:c}){delete b[a],delete c[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:a}=this.props;W(a)&&(this.childSubscription=a.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}function a9(a){return a.replace(/([A-Z])/g,a=>`-${a.toLowerCase()}`)}let ba=(a,b)=>b&&"number"==typeof a?b.transform(a):a,bb={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},bc=e.length;function bd(a,b,c){let{style:d,vars:g,transformOrigin:h}=a,i=!1,j=!1;for(let a in b){let c=b[a];if(f.has(a)){i=!0;continue}if(ac(a)){g[a]=c;continue}{let b=ba(c,P[a]);a.startsWith("origin")?(j=!0,h[a]=b):d[a]=b}}if(!b.transform&&(i||c?d.transform=function(a,b,c){let d="",f=!0;for(let g=0;g<bc;g++){let h=e[g],i=a[h];if(void 0===i)continue;let j=!0;if("number"==typeof i)j=i===+!!h.startsWith("scale");else{let a=parseFloat(i);j=h.startsWith("scale")?1===a:0===a}if(!j||c){let a=ba(i,P[h]);if(!j){f=!1;let b=bb[h]||h;d+=`${b}(${a}) `}c&&(b[h]=a)}}return d=d.trim(),c?d=c(b,f?"":d):f&&(d="none"),d}(b,a.transform,c):d.transform&&(d.transform="none")),j){let{originX:a="50%",originY:b="50%",originZ:c=0}=h;d.transformOrigin=`${a} ${b} ${c}`}}let be={offset:"stroke-dashoffset",array:"stroke-dasharray"},bf={offset:"strokeDashoffset",array:"strokeDasharray"},bg=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function bh(a,{attrX:b,attrY:c,attrScale:d,pathLength:e,pathSpacing:f=1,pathOffset:g=0,...h},i,j,k){if(bd(a,h,j),i){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};let{attrs:l,style:m}=a;for(let a of(l.transform&&(m.transform=l.transform,delete l.transform),(m.transform||l.transformOrigin)&&(m.transformOrigin=l.transformOrigin??"50% 50%",delete l.transformOrigin),m.transform&&(m.transformBox=k?.transformBox??"fill-box",delete l.transformBox),bg))void 0!==l[a]&&(m[a]=l[a],delete l[a]);void 0!==b&&(l.x=b),void 0!==c&&(l.y=c),void 0!==d&&(l.scale=d),void 0!==e&&function(a,b,c=1,d=0,e=!0){a.pathLength=1;let f=e?be:bf;a[f.offset]=`${-d}`,a[f.array]=`${b} ${c}`}(l,e,f,g,!1)}let bi=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"]),bj=a=>"string"==typeof a&&"svg"===a.toLowerCase();function bk(a,{style:b,vars:c},d,e){let f,g=a.style;for(f in b)g[f]=b[f];for(f in e?.applyProjectionStyles(g,d),c)g.setProperty(f,c[f])}function bl(a,b){return b.max===b.min?0:a/(b.max-b.min)*100}let bm={correct:(a,b)=>{if(!b.target)return a;if("string"==typeof a)if(!v.test(a))return a;else a=parseFloat(a);let c=bl(a,b.target.x),d=bl(a,b.target.y);return`${c}% ${d}%`}},bn=(a,b,c)=>a+(b-a)*c,bo={borderRadius:{...bm,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:bm,borderTopRightRadius:bm,borderBottomLeftRadius:bm,borderBottomRightRadius:bm,boxShadow:{correct:(a,{treeScale:b,projectionDelta:c})=>{let d=J.parse(a);if(d.length>5)return a;let e=J.createTransformer(a),f=+("number"!=typeof d[0]),g=c.x.scale*b.x,h=c.y.scale*b.y;d[0+f]/=g,d[1+f]/=h;let i=bn(g,h,.5);return"number"==typeof d[2+f]&&(d[2+f]/=i),"number"==typeof d[3+f]&&(d[3+f]/=i),e(d)}}};function bp(a,{layout:b,layoutId:c}){return f.has(a)||a.startsWith("origin")||(b||void 0!==c)&&(!!bo[a]||"opacity"===a)}function bq(a,b,c){let d=a.style,e=b?.style,f={};if(!d)return f;for(let b in d)(W(d[b])||e&&W(e[b])||bp(b,a)||c?.getValue(b)?.liveStyle!==void 0)&&(f[b]=d[b]);return f}function br(a,b,c){let d=bq(a,b,c);for(let c in a)(W(a[c])||W(b[c]))&&(d[-1!==e.indexOf(c)?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c]=a[c]);return d}class bs extends a8{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=V}getBaseTargetFromProps(a,b){return a[b]}readValueFromInstance(a,b){if(f.has(b)){let a=R(b);return a&&a.default||0}return b=bi.has(b)?b:a9(b),a.getAttribute(b)}scrapeMotionValuesFromProps(a,b,c){return br(a,b,c)}build(a,b,c){bh(a,b,this.isSVGTag,c.transformTemplate,c.style)}renderInstance(a,b,c,d){for(let c in bk(a,b,void 0,d),b.attrs)a.setAttribute(bi.has(c)?c:a9(c),b.attrs[c])}mount(a){this.isSVGTag=bj(a.tagName),super.mount(a)}}function bt({top:a,left:b,right:c,bottom:d}){return{x:{min:b,max:c},y:{min:a,max:d}}}function bu(a){return void 0===a||1===a}function bv({scale:a,scaleX:b,scaleY:c}){return!bu(a)||!bu(b)||!bu(c)}function bw(a){return bv(a)||bx(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function bx(a){var b,c;return(b=a.x)&&"0%"!==b||(c=a.y)&&"0%"!==c}function by(a,b,c,d,e){return void 0!==e&&(a=d+e*(a-d)),d+c*(a-d)+b}function bz(a,b=0,c=1,d,e){a.min=by(a.min,b,c,d,e),a.max=by(a.max,b,c,d,e)}function bA(a,{x:b,y:c}){bz(a.x,b.translate,b.scale,b.originPoint),bz(a.y,c.translate,c.scale,c.originPoint)}function bB(a,b){a.min=a.min+b,a.max=a.max+b}function bC(a,b,c,d,e=.5){let f=bn(a.min,a.max,e);bz(a,b,c,f,d)}function bD(a,b){bC(a.x,b.x,b.scaleX,b.scale,b.originX),bC(a.y,b.y,b.scaleY,b.scale,b.originY)}function bE(a,b){return bt(function(a,b){if(!b)return a;let c=b({x:a.left,y:a.top}),d=b({x:a.right,y:a.bottom});return{top:c.y,left:c.x,bottom:d.y,right:d.x}}(a.getBoundingClientRect(),b))}class bF extends a8{constructor(){super(...arguments),this.type="html",this.renderInstance=bk}readValueFromInstance(a,b){if(f.has(b))return this.projection?.isProjecting?ap(b):((a,b)=>{let{transform:c="none"}=getComputedStyle(a);return aq(c,b)})(a,b);{let c=window.getComputedStyle(a),d=(ac(b)?c.getPropertyValue(b):c[b])||0;return"string"==typeof d?d.trim():d}}measureInstanceViewportBox(a,{transformPagePoint:b}){return bE(a,b)}build(a,b,c){bd(a,b,c.transformTemplate)}scrapeMotionValuesFromProps(a,b,c){return bq(a,b,c)}}var bG,bH=a.i(72826);let bI=["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 bJ(a){if("string"!=typeof a||a.includes("-"));else if(bI.indexOf(a)>-1||/[A-Z]/u.test(a))return!0;return!1}var bK=a.i(15974);let bL=(0,bH.createContext)({}),bM=((0,bH.createContext)({strict:!1}),(0,bH.createContext)({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"})),bN=(0,bH.createContext)({});function bO(a){return Array.isArray(a)?a.join(" "):a}let bP=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function bQ(a,b,c){for(let d in b)W(b[d])||bp(d,c)||(a[d]=b[d])}let bR=()=>({...bP(),attrs:{}}),bS=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 bT(a){return a.startsWith("while")||a.startsWith("drag")&&"draggable"!==a||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||bS.has(a)}let bU=a=>!bT(a);try{bG=(()=>{let a=Error("Cannot find module '@emotion/is-prop-valid'");throw a.code="MODULE_NOT_FOUND",a})().default,"function"==typeof bG&&(bU=a=>a.startsWith("on")?!bT(a):bG(a))}catch{}function bV(a){return W(a)?a.get():a}let bW=(0,bH.createContext)(null),bX=a=>(b,c)=>{let d,e=(0,bH.useContext)(bN),f=(0,bH.useContext)(bW),g=()=>(function({scrapeMotionValuesFromProps:a,createRenderState:b},c,d,e){return{latestValues:function(a,b,c,d){let e={},f=d(a,{});for(let a in f)e[a]=bV(f[a]);let{initial:g,animate:h}=a,i=a1(a),j=a2(a);b&&j&&!i&&!1!==a.inherit&&(void 0===g&&(g=b.initial),void 0===h&&(h=b.animate));let k=!!c&&!1===c.initial,l=(k=k||!1===g)?h:g;if(l&&"boolean"!=typeof l&&!aZ(l)){let b=Array.isArray(l)?l:[l];for(let c=0;c<b.length;c++){let d=a4(a,b[c]);if(d){let{transitionEnd:a,transition:b,...c}=d;for(let a in c){let b=c[a];if(Array.isArray(b)){let a=k?b.length-1:0;b=b[a]}null!==b&&(e[a]=b)}for(let b in a)e[b]=a[b]}}}return e}(c,d,e,a),renderState:b()}})(a,b,e,f);return c?g():(null===(d=(0,bH.useRef)(null)).current&&(d.current=g()),d.current)},bY=bX({scrapeMotionValuesFromProps:bq,createRenderState:bP}),bZ=bX({scrapeMotionValuesFromProps:br,createRenderState:bR}),b$={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"]},b_=!1,b0=Symbol.for("motionComponentSymbol"),b1="data-"+a9("framerAppearId"),b2=(0,bH.createContext)({});function b3(a){return a&&"object"==typeof a&&Object.prototype.hasOwnProperty.call(a,"current")}function b4(a,{forwardMotionProps:b=!1,type:c}={},d,e){d&&function(a){let b=(!function(){if(b_)return;let a={};for(let b in b$)a[b]={isEnabled:a=>b$[b].some(b=>!!a[b])};a6=a,b_=!0}(),a6);for(let c in a)b[c]={...b[c],...a[c]};a6=b}(d);let f=c?"svg"===c:bJ(a),g=f?bZ:bY;function h(c,d){var e;let h,i,j,k={...(0,bH.useContext)(bM),...c,layoutId:function({layoutId:a}){let b=(0,bH.useContext)(bL).id;return b&&void 0!==a?b+"-"+a:a}(c)},{isStatic:l}=k,m=function(a){let{initial:b,animate:c}=function(a,b){if(a1(a)){let{initial:b,animate:c}=a;return{initial:!1===b||a$(b)?b:void 0,animate:a$(c)?c:void 0}}return!1!==a.inherit?b:{}}(a,(0,bH.useContext)(bN));return(0,bH.useMemo)(()=>({initial:b,animate:c}),[bO(b),bO(c)])}(c),n=g(c,l);return(0,bK.jsxs)(bN.Provider,{value:m,children:[h&&m.visualElement?(0,bK.jsx)(h,{visualElement:m.visualElement,...k}):null,function(a,b,c,{latestValues:d},e,f=!1,g){let h=(g??bJ(a)?function(a,b,c,d){let e=(0,bH.useMemo)(()=>{let c=bR();return bh(c,b,bj(d),a.transformTemplate,a.style),{...c.attrs,style:{...c.style}}},[b]);if(a.style){let b={};bQ(b,a.style,a),e.style={...b,...e.style}}return e}:function(a,b){let c,d,e={},f=(c=a.style||{},bQ(d={},c,a),Object.assign(d,function({transformTemplate:a},b){return(0,bH.useMemo)(()=>{let c=bP();return bd(c,b,a),Object.assign({},c.vars,c.style)},[b])}(a,b)),d);return a.drag&&!1!==a.dragListener&&(e.draggable=!1,f.userSelect=f.WebkitUserSelect=f.WebkitTouchCallout="none",f.touchAction=!0===a.drag?"none":`pan-${"x"===a.drag?"y":"x"}`),void 0===a.tabIndex&&(a.onTap||a.onTapStart||a.whileTap)&&(e.tabIndex=0),e.style=f,e})(b,d,e,a),i=function(a,b,c){let d={};for(let e in a)("values"!==e||"object"!=typeof a.values)&&(bU(e)||!0===c&&bT(e)||!b&&!bT(e)||a.draggable&&e.startsWith("onDrag"))&&(d[e]=a[e]);return d}(b,"string"==typeof a,f),j=a!==bH.Fragment?{...i,...h,ref:c}:{},{children:k}=b,l=(0,bH.useMemo)(()=>W(k)?k.get():k,[k]);return(0,bH.createElement)(a,{...j,children:l})}(a,c,(e=m.visualElement,i=(0,bH.useRef)(d),(0,bH.useInsertionEffect)(()=>{i.current=d}),j=(0,bH.useRef)(null),(0,bH.useCallback)(a=>{a&&n.onMount?.(a),e&&(a?e.mount(a):e.unmount());let b=i.current;if("function"==typeof b)if(a){let c=b(a);"function"==typeof c&&(j.current=c)}else j.current?(j.current(),j.current=null):b(a);else b&&(b.current=a)},[e])),n,l,b,f)]})}h.displayName=`motion.${"string"==typeof a?a:`create(${a.displayName??a.name??""})`}`;let i=(0,bH.forwardRef)(h);return i[b0]=a,i}bH.useEffect;class b5{constructor(a){this.isMounted=!1,this.node=a}update(){}}function b6(a,b,c){let d=a.getProps();return a4(d,b,void 0!==c?c:d.custom,a)}function b7(a,b){return a?.[b]??a?.default??a}let b8=a=>Array.isArray(a);function b9(a,b){let c=a.getValue("willChange");if(W(c)&&c.add)return c.add(b);if(!c&&ax.WillChange){let c=new ax.WillChange("auto");a.addValue("willChange",c),c.add(b)}}let ca=a=>1e3*a,cb=(a,b)=>c=>b(a(c)),cc=(...a)=>a.reduce(cb),cd={layout:0,mainThread:0,waapi:0};function ce(a,b,c){return(c<0&&(c+=1),c>1&&(c-=1),c<1/6)?a+(b-a)*6*c:c<.5?b:c<2/3?a+(b-a)*(2/3-c)*6:a}function cf(a,b){return c=>c>0?b:a}let cg=(a,b,c)=>{let d=a*a,e=c*(b*b-d)+d;return e<0?0:Math.sqrt(e)},ch=[r,q,z];function ci(a){let b=ch.find(b=>b.test(a));if(_(!!b,`'${a}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!b)return!1;let c=b.parse(a);return b===z&&(c=function({hue:a,saturation:b,lightness:c,alpha:d}){a/=360,c/=100;let e=0,f=0,g=0;if(b/=100){let d=c<.5?c*(1+b):c+b-c*b,h=2*c-d;e=ce(h,d,a+1/3),f=ce(h,d,a),g=ce(h,d,a-1/3)}else e=f=g=c;return{red:Math.round(255*e),green:Math.round(255*f),blue:Math.round(255*g),alpha:d}}(c)),c}let cj=(a,b)=>{let c=ci(a),d=ci(b);if(!c||!d)return cf(a,b);let e={...c};return a=>(e.red=cg(c.red,d.red,a),e.green=cg(c.green,d.green,a),e.blue=cg(c.blue,d.blue,a),e.alpha=bn(c.alpha,d.alpha,a),q.transform(e))},ck=new Set(["none","hidden"]);function cl(a,b){return c=>bn(a,b,c)}function cm(a){return"number"==typeof a?cl:"string"==typeof a?ae(a)?cf:A.test(a)?cj:cp:Array.isArray(a)?cn:"object"==typeof a?A.test(a)?cj:co:cf}function cn(a,b){let c=[...a],d=c.length,e=a.map((a,c)=>cm(a)(a,b[c]));return a=>{for(let b=0;b<d;b++)c[b]=e[b](a);return c}}function co(a,b){let c={...a,...b},d={};for(let e in c)void 0!==a[e]&&void 0!==b[e]&&(d[e]=cm(a[e])(a[e],b[e]));return a=>{for(let b in d)c[b]=d[b](a);return c}}let cp=(a,b)=>{let c=J.createTransformer(b),d=F(a),e=F(b);if(!(d.indexes.var.length===e.indexes.var.length&&d.indexes.color.length===e.indexes.color.length&&d.indexes.number.length>=e.indexes.number.length))return _(!0,`Complex values '${a}' and '${b}' 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.`,"complex-values-different"),cf(a,b);if(ck.has(a)&&!e.values.length||ck.has(b)&&!d.values.length)return ck.has(a)?c=>c<=0?a:b:c=>c>=1?b:a;return cc(cn(function(a,b){let c=[],d={color:0,var:0,number:0};for(let e=0;e<b.values.length;e++){let f=b.types[e],g=a.indexes[f][d[f]],h=a.values[g]??0;c[e]=h,d[f]++}return c}(d,e),e.values),c)};function cq(a,b,c){return"number"==typeof a&&"number"==typeof b&&"number"==typeof c?bn(a,b,c):cm(a)(a,b)}let cr=a=>{let b=({timestamp:b})=>a(b);return{start:(a=!0)=>aA.update(b,a),stop:()=>aB(b),now:()=>aC.isProcessing?aC.timestamp:aT.now()}},cs=(a,b,c=10)=>{let d="",e=Math.max(Math.round(b/c),2);for(let b=0;b<e;b++)d+=Math.round(1e4*a(b/(e-1)))/1e4+", ";return`linear(${d.substring(0,d.length-2)})`};function ct(a){let b=0,c=a.next(b);for(;!c.done&&b<2e4;)b+=50,c=a.next(b);return b>=2e4?1/0:b}function cu(a,b,c){var d,e;let f=Math.max(b-5,0);return d=c-a(f),(e=b-f)?1e3/e*d:0}let cv=.01,cw=2,cx=.005,cy=.5;function cz(a,b){return a*Math.sqrt(1-b*b)}let cA=["duration","bounce"],cB=["stiffness","damping","mass"];function cC(a,b){return b.some(b=>void 0!==a[b])}function cD(a=.3,b=.3){let c,d="object"!=typeof a?{visualDuration:a,keyframes:[0,1],bounce:b}:a,{restSpeed:e,restDelta:f}=d,h=d.keyframes[0],i=d.keyframes[d.keyframes.length-1],j={done:!1,value:h},{stiffness:k,damping:l,mass:m,duration:n,velocity:o,isResolvedFromDuration:p}=function(a){let b={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...a};if(!cC(a,cB)&&cC(a,cA))if(a.visualDuration){let c=2*Math.PI/(1.2*a.visualDuration),d=c*c,e=2*g(.05,1,1-(a.bounce||0))*Math.sqrt(d);b={...b,mass:1,stiffness:d,damping:e}}else{let c=function({duration:a=800,bounce:b=.3,velocity:c=0,mass:d=1}){let e,f;_(a<=ca(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let h=1-b;h=g(.05,1,h),a=g(.01,10,a/1e3),h<1?(e=b=>{let d=b*h,e=d*a;return .001-(d-c)/cz(b,h)*Math.exp(-e)},f=b=>{let d=b*h*a,f=Math.pow(h,2)*Math.pow(b,2)*a,g=Math.exp(-d),i=cz(Math.pow(b,2),h);return(d*c+c-f)*g*(-e(b)+.001>0?-1:1)/i}):(e=b=>-.001+Math.exp(-b*a)*((b-c)*a+1),f=b=>a*a*(c-b)*Math.exp(-b*a));let i=function(a,b,c){let d=c;for(let c=1;c<12;c++)d-=a(d)/b(d);return d}(e,f,5/a);if(a=ca(a),isNaN(i))return{stiffness:100,damping:10,duration:a};{let b=Math.pow(i,2)*d;return{stiffness:b,damping:2*h*Math.sqrt(d*b),duration:a}}}(a);(b={...b,...c,mass:1}).isResolvedFromDuration=!0}return b}({...d,velocity:-((d.velocity||0)/1e3)}),q=o||0,r=l/(2*Math.sqrt(k*m)),s=i-h,t=Math.sqrt(k/m)/1e3,u=5>Math.abs(s);if(e||(e=u?cv:cw),f||(f=u?cx:cy),r<1){let a=cz(t,r);c=b=>i-Math.exp(-r*t*b)*((q+r*t*s)/a*Math.sin(a*b)+s*Math.cos(a*b))}else if(1===r)c=a=>i-Math.exp(-t*a)*(s+(q+t*s)*a);else{let a=t*Math.sqrt(r*r-1);c=b=>{let c=Math.exp(-r*t*b),d=Math.min(a*b,300);return i-c*((q+r*t*s)*Math.sinh(d)+a*s*Math.cosh(d))/a}}let v={calculatedDuration:p&&n||null,next:a=>{let b=c(a);if(p)j.done=a>=n;else{let d=0===a?q:0;r<1&&(d=0===a?ca(q):cu(c,a,b));let g=Math.abs(i-b)<=f;j.done=Math.abs(d)<=e&&g}return j.value=j.done?i:b,j},toString:()=>{let a=Math.min(ct(v),2e4),b=cs(b=>v.next(a*b).value,a,30);return a+"ms "+b},toTransition:()=>{}};return v}function cE({keyframes:a,velocity:b=0,power:c=.8,timeConstant:d=325,bounceDamping:e=10,bounceStiffness:f=500,modifyTarget:g,min:h,max:i,restDelta:j=.5,restSpeed:k}){let l,m,n=a[0],o={done:!1,value:n},p=c*b,q=n+p,r=void 0===g?q:g(q);r!==q&&(p=r-n);let s=a=>-p*Math.exp(-a/d),t=a=>r+s(a),u=a=>{let b=s(a),c=t(a);o.done=Math.abs(b)<=j,o.value=o.done?r:c},v=a=>{let b;if(b=o.value,void 0!==h&&b<h||void 0!==i&&b>i){var c;l=a,m=cD({keyframes:[o.value,(c=o.value,void 0===h?i:void 0===i||Math.abs(h-c)<Math.abs(i-c)?h:i)],velocity:cu(t,a,o.value),damping:e,stiffness:f,restDelta:j,restSpeed:k})}};return v(0),{calculatedDuration:null,next:a=>{let b=!1;return(m||void 0!==l||(b=!0,u(a),v(a)),void 0!==l&&a>=l)?m.next(a-l):(b||u(a),o)}}}cD.applyToOptions=a=>{let b=function(a,b=100,c){let d=c({...a,keyframes:[0,b]}),e=Math.min(ct(d),2e4);return{type:"keyframes",ease:a=>d.next(e*a).value/b,duration:e/1e3}}(a,100,cD);return a.ease=b.ease,a.duration=ca(b.duration),a.type="keyframes",a};let cF=(a,b,c)=>(((1-3*c+3*b)*a+(3*c-6*b))*a+3*b)*a;function cG(a,b,c,d){return a===b&&c===d?aw:e=>0===e||1===e?e:cF(function(a,b,c,d,e){let f,g,h=0;do(f=cF(g=b+(c-b)/2,d,e)-a)>0?c=g:b=g;while(Math.abs(f)>1e-7&&++h<12)return g}(e,0,1,a,c),b,d)}let cH=cG(.42,0,1,1),cI=cG(0,0,.58,1),cJ=cG(.42,0,.58,1),cK=a=>b=>b<=.5?a(2*b)/2:(2-a(2*(1-b)))/2,cL=a=>b=>1-a(1-b),cM=cG(.33,1.53,.69,.99),cN=cL(cM),cO=cK(cN),cP=a=>(a*=2)<1?.5*cN(a):.5*(2-Math.pow(2,-10*(a-1))),cQ=a=>1-Math.sin(Math.acos(a)),cR=cL(cQ),cS=cK(cQ),cT=a=>Array.isArray(a)&&"number"==typeof a[0],cU={linear:aw,easeIn:cH,easeInOut:cJ,easeOut:cI,circIn:cQ,circInOut:cS,circOut:cR,backIn:cN,backInOut:cO,backOut:cM,anticipate:cP},cV=a=>{if(cT(a)){aa(4===a.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[b,c,d,e]=a;return cG(b,c,d,e)}return"string"==typeof a?(aa(void 0!==cU[a],`Invalid easing type '${a}'`,"invalid-easing-type"),cU[a]):a},cW=(a,b,c)=>{let d=b-a;return 0===d?1:(c-a)/d};function cX({duration:a=300,keyframes:b,times:c,ease:d="easeInOut"}){var e;let f,h=Array.isArray(d)&&"number"!=typeof d[0]?d.map(cV):cV(d),i={done:!1,value:b[0]},j=function(a,b,{clamp:c=!0,ease:d,mixer:e}={}){let f=a.length;if(aa(f===b.length,"Both input and output ranges must be the same length","range-length"),1===f)return()=>b[0];if(2===f&&b[0]===b[1])return()=>b[1];let h=a[0]===a[1];a[0]>a[f-1]&&(a=[...a].reverse(),b=[...b].reverse());let i=function(a,b,c){let d=[],e=c||ax.mix||cq,f=a.length-1;for(let c=0;c<f;c++){let f=e(a[c],a[c+1]);b&&(f=cc(Array.isArray(b)?b[c]||aw:b,f)),d.push(f)}return d}(b,d,e),j=i.length,k=c=>{if(h&&c<a[0])return b[0];let d=0;if(j>1)for(;d<a.length-2&&!(c<a[d+1]);d++);let e=cW(a[d],a[d+1],c);return i[d](e)};return c?b=>k(g(a[0],a[f-1],b)):k}((e=c&&c.length===b.length?c:(!function(a,b){let c=a[a.length-1];for(let d=1;d<=b;d++){let e=cW(0,b,d);a.push(bn(c,1,e))}}(f=[0],b.length-1),f),e.map(b=>b*a)),b,{ease:Array.isArray(h)?h:b.map(()=>h||cJ).splice(0,b.length-1)});return{calculatedDuration:a,next:b=>(i.value=j(b),i.done=b>=a,i)}}let cY=a=>null!==a;function cZ(a,{repeat:b,repeatType:c="loop"},d,e=1){let f=a.filter(cY),g=e<0||b&&"loop"!==c&&b%2==1?0:f.length-1;return g&&void 0!==d?d:f[g]}let c$={decay:cE,inertia:cE,tween:cX,keyframes:cX,spring:cD};function c_(a){"string"==typeof a.type&&(a.type=c$[a.type])}class c0{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(a=>{this.resolve=a})}notifyFinished(){this.resolve()}then(a,b){return this.finished.then(a,b)}}let c1=a=>a/100;class c2 extends c0{constructor(a){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:a}=this.options;a&&a.updatedAt!==aT.now()&&this.tick(aT.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},cd.mainThread++,this.options=a,this.initAnimation(),this.play(),!1===a.autoplay&&this.pause()}initAnimation(){let{options:a}=this;c_(a);let{type:b=cX,repeat:c=0,repeatDelay:d=0,repeatType:e,velocity:f=0}=a,{keyframes:g}=a,h=b||cX;h!==cX&&"number"!=typeof g[0]&&(this.mixKeyframes=cc(c1,cq(g[0],g[1])),g=[0,100]);let i=h({...a,keyframes:g});"mirror"===e&&(this.mirroredGenerator=h({...a,keyframes:[...g].reverse(),velocity:-f})),null===i.calculatedDuration&&(i.calculatedDuration=ct(i));let{calculatedDuration:j}=i;this.calculatedDuration=j,this.resolvedDuration=j+d,this.totalDuration=this.resolvedDuration*(c+1)-d,this.generator=i}updateTime(a){let b=Math.round(a-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=b}tick(a,b=!1){let{generator:c,totalDuration:d,mixKeyframes:e,mirroredGenerator:f,resolvedDuration:h,calculatedDuration:i}=this;if(null===this.startTime)return c.next(0);let{delay:j=0,keyframes:k,repeat:l,repeatType:m,repeatDelay:n,type:o,onUpdate:p,finalKeyframe:q}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-d/this.speed,this.startTime)),b?this.currentTime=a:this.updateTime(a);let r=this.currentTime-j*(this.playbackSpeed>=0?1:-1),s=this.playbackSpeed>=0?r<0:r>d;this.currentTime=Math.max(r,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=d);let t=this.currentTime,u=c;if(l){let a=Math.min(this.currentTime,d)/h,b=Math.floor(a),c=a%1;!c&&a>=1&&(c=1),1===c&&b--,(b=Math.min(b,l+1))%2&&("reverse"===m?(c=1-c,n&&(c-=n/h)):"mirror"===m&&(u=f)),t=g(0,1,c)*h}let v=s?{done:!1,value:k[0]}:u.next(t);e&&(v.value=e(v.value));let{done:w}=v;s||null===i||(w=this.playbackSpeed>=0?this.currentTime>=d:this.currentTime<=0);let x=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return x&&o!==cE&&(v.value=cZ(k,this.options,q,this.speed)),p&&p(v.value),x&&this.finish(),v}then(a,b){return this.finished.then(a,b)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:a=0}=this.options||{};return this.duration+a/1e3}get time(){return this.currentTime/1e3}set time(a){a=ca(a),this.currentTime=a,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(a){this.updateTime(aT.now());let b=this.playbackSpeed!==a;this.playbackSpeed=a,b&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:a=cr,startTime:b}=this.options;this.driver||(this.driver=a(a=>this.tick(a))),this.options.onPlay?.();let c=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=c):null!==this.holdTime?this.startTime=c-this.holdTime:this.startTime||(this.startTime=b??c),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(aT.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,cd.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(a){return this.startTime=0,this.tick(a,!0)}attachTimeline(a){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),a.observe(this)}}function c3(a){let b;return()=>(void 0===b&&(b=a()),b)}let c4=c3(()=>void 0!==window.ScrollTimeline),c5={},c6=(d=c3(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(a){return!1}return!0}),()=>c5.linearEasing??d()),c7=([a,b,c,d])=>`cubic-bezier(${a}, ${b}, ${c}, ${d})`,c8={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:c7([0,.65,.55,1]),circOut:c7([.55,0,1,.45]),backIn:c7([.31,.01,.66,-.59]),backOut:c7([.33,1.53,.69,.99])};function c9(a){return"function"==typeof a&&"applyToOptions"in a}class da extends c0{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!a)return;const{element:b,name:c,keyframes:d,pseudoElement:e,allowFlatten:f=!1,finalKeyframe:g,onComplete:h}=a;this.isPseudoElement=!!e,this.allowFlatten=f,this.options=a,aa("string"!=typeof a.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const i=function({type:a,...b}){return c9(a)&&c6()?a.applyToOptions(b):(b.duration??(b.duration=300),b.ease??(b.ease="easeOut"),b)}(a);this.animation=function(a,b,c,{delay:d=0,duration:e=300,repeat:f=0,repeatType:g="loop",ease:h="easeOut",times:i}={},j){let k={[b]:c};i&&(k.offset=i);let l=function a(b,c){if(b)return"function"==typeof b?c6()?cs(b,c):"ease-out":cT(b)?c7(b):Array.isArray(b)?b.map(b=>a(b,c)||c8.easeOut):c8[b]}(h,e);Array.isArray(l)&&(k.easing=l);let m={delay:d,duration:e,easing:Array.isArray(l)?"linear":l,fill:"both",iterations:f+1,direction:"reverse"===g?"alternate":"normal"};j&&(m.pseudoElement=j);let n=a.animate(k,m);return n}(b,c,d,i,e),!1===i.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!e){let a=cZ(d,this.options,g,this.speed);this.updateMotionValue?this.updateMotionValue(a):c.startsWith("--")?b.style.setProperty(c,a):b.style[c]=a,this.animation.cancel()}h?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(a){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:a}=this;"idle"!==a&&"finished"!==a&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:a=0}=this.options||{};return this.duration+a/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(a){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ca(a)}get speed(){return this.animation.playbackRate}set speed(a){a<0&&(this.finishedTime=null),this.animation.playbackRate=a}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(a){this.manualStartTime=this.animation.startTime=a}attachTimeline({timeline:a,observe:b}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,a&&c4())?(this.animation.timeline=a,aw):b(this)}}let db={anticipate:cP,backInOut:cO,circInOut:cS};class dc extends da{constructor(a){!function(a){"string"==typeof a.ease&&a.ease in db&&(a.ease=db[a.ease])}(a),c_(a),super(a),void 0!==a.startTime&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){let{motionValue:b,onUpdate:c,onComplete:d,element:e,...f}=this.options;if(!b)return;if(void 0!==a)return void b.set(a);let h=new c2({...f,autoplay:!1}),i=Math.max(10,aT.now()-this.startTime),j=g(0,10,i-10);b.setWithVelocity(h.sample(Math.max(0,i-j)).value,h.sample(i).value,j),h.stop()}}let dd=(a,b)=>"zIndex"!==b&&!!("number"==typeof a||Array.isArray(a)||"string"==typeof a&&(J.test(a)||"0"===a)&&!a.startsWith("url("));function de(a){a.duration=0,a.type="keyframes"}let df=new Set(["opacity","clipPath","filter","transform"]),dg=c3(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class dh extends c0{constructor({autoplay:a=!0,delay:b=0,type:c="keyframes",repeat:d=0,repeatDelay:e=0,repeatType:f="loop",keyframes:g,name:h,motionValue:i,element:j,...k}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=aT.now();const l={autoplay:a,delay:b,type:c,repeat:d,repeatDelay:e,repeatType:f,name:h,motionValue:i,element:j,...k},m=j?.KeyframeResolver||aK;this.keyframeResolver=new m(g,(a,b,c)=>this.onKeyframesResolved(a,b,l,!c),h,i,j),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(a,b,c,d){this.keyframeResolver=void 0;let{name:e,type:f,velocity:g,delay:h,isHandoff:i,onUpdate:j}=c;this.resolvedAt=aT.now(),!function(a,b,c,d){let e=a[0];if(null===e)return!1;if("display"===b||"visibility"===b)return!0;let f=a[a.length-1],g=dd(e,b),h=dd(f,b);return _(g===h,`You are trying to animate ${b} from "${e}" to "${f}". "${g?f:e}" is not an animatable value.`,"value-not-animatable"),!!g&&!!h&&(function(a){let b=a[0];if(1===a.length)return!0;for(let c=0;c<a.length;c++)if(a[c]!==b)return!0}(a)||("spring"===c||c9(c))&&d)}(a,e,f,g)&&((ax.instantAnimations||!h)&&j?.(cZ(a,c,b)),a[0]=a[a.length-1],de(c),c.repeat=0);let k={startTime:d?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:b,...c,keyframes:a},l=!i&&function(a){let{motionValue:b,name:c,repeatDelay:d,repeatType:e,damping:f,type:g}=a;if(!(b?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:h,transformTemplate:i}=b.owner.getProps();return dg()&&c&&df.has(c)&&("transform"!==c||!i)&&!h&&!d&&"mirror"!==e&&0!==f&&"inertia"!==g}(k),m=k.motionValue?.owner?.current,n=l?new dc({...k,element:m}):new c2(k);n.finished.then(()=>{this.notifyFinished()}).catch(aw),this.pendingTimeline&&(this.stopTimeline=n.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=n}get finished(){return this._animation?this.animation.finished:this._finished}then(a,b){return this.finished.finally(a).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),aH=!0,aJ(),aI(),aH=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(a){this.animation.time=a}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(a){this.animation.speed=a}get startTime(){return this.animation.startTime}attachTimeline(a){return this._animation?this.stopTimeline=this.animation.attachTimeline(a):this.pendingTimeline=a,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let di={type:"spring",stiffness:500,damping:25,restSpeed:10},dj={type:"keyframes",duration:.8},dk={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dl=a=>null!==a,dm=(a,b,c,d={},e,g)=>h=>{let i=b7(d,a)||{},j=i.delay||d.delay||0,{elapsed:k=0}=d;k-=ca(j);let l={keyframes:Array.isArray(c)?c:[null,c],ease:"easeOut",velocity:b.getVelocity(),...i,delay:-k,onUpdate:a=>{b.set(a),i.onUpdate&&i.onUpdate(a)},onComplete:()=>{h(),i.onComplete&&i.onComplete()},name:a,motionValue:b,element:g?void 0:e};!function({when:a,delay:b,delayChildren:c,staggerChildren:d,staggerDirection:e,repeat:f,repeatType:g,repeatDelay:h,from:i,elapsed:j,...k}){return!!Object.keys(k).length}(i)&&Object.assign(l,((a,{keyframes:b})=>b.length>2?dj:f.has(a)?a.startsWith("scale")?{type:"spring",stiffness:550,damping:0===b[1]?2*Math.sqrt(550):30,restSpeed:10}:di:dk)(a,l)),l.duration&&(l.duration=ca(l.duration)),l.repeatDelay&&(l.repeatDelay=ca(l.repeatDelay)),void 0!==l.from&&(l.keyframes[0]=l.from);let m=!1;if(!1!==l.type&&(0!==l.duration||l.repeatDelay)||(de(l),0===l.delay&&(m=!0)),(ax.instantAnimations||ax.skipAnimations)&&(m=!0,de(l),l.delay=0),l.allowFlatten=!i.type&&!i.ease,m&&!g&&void 0!==b.get()){let a=function(a,{repeat:b,repeatType:c="loop"},d){let e=a.filter(dl),f=b&&"loop"!==c&&b%2==1?0:e.length-1;return e[f]}(l.keyframes,i);if(void 0!==a)return void aA.update(()=>{l.onUpdate(a),l.onComplete()})}return i.isSync?new c2(l):new dh(l)};function dn(a,b,{delay:c=0,transitionOverride:d,type:e}={}){let{transition:f=a.getDefaultTransition(),transitionEnd:g,...h}=b,i=f?.reduceMotion;d&&(f=d);let j=[],k=e&&a.animationState&&a.animationState.getState()[e];for(let b in h){let d=a.getValue(b,a.latestValues[b]??null),e=h[b];if(void 0===e||k&&function({protectedKeys:a,needsAnimating:b},c){let d=a.hasOwnProperty(c)&&!0!==b[c];return b[c]=!1,d}(k,b))continue;let g={delay:c,...b7(f||{},b)},l=d.get();if(void 0!==l&&!d.isAnimating&&!Array.isArray(e)&&e===l&&!g.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){let c=a.props[b1];if(c){let a=window.MotionHandoffAnimation(c,b,aA);null!==a&&(g.startTime=a,m=!0)}}b9(a,b);let n=i??a.shouldReduceMotion;d.start(dm(b,d,e,n&&X.has(b)?{type:!1}:g,a,m));let o=d.animation;o&&j.push(o)}return g&&Promise.all(j).then(()=>{aA.update(()=>{g&&function(a,b){let{transitionEnd:c={},transition:d={},...e}=b6(a,b)||{};for(let b in e={...e,...c}){var f;let c=b8(f=e[b])?f[f.length-1]||0:f;a.hasValue(b)?a.getValue(b).set(c):a.addValue(b,aV(c))}}(a,g)})}),j}function dp(a,b,c,d=0,e=1){let f=Array.from(a).sort((a,b)=>a.sortNodePosition(b)).indexOf(b),g=a.size,h=(g-1)*d;return"function"==typeof c?c(f,g):1===e?f*d:h-f*d}function dq(a,b,c={}){let d=b6(a,b,"exit"===c.type?a.presenceContext?.custom:void 0),{transition:e=a.getDefaultTransition()||{}}=d||{};c.transitionOverride&&(e=c.transitionOverride);let f=d?()=>Promise.all(dn(a,d,c)):()=>Promise.resolve(),g=a.variantChildren&&a.variantChildren.size?(d=0)=>{let{delayChildren:f=0,staggerChildren:g,staggerDirection:h}=e;return function(a,b,c=0,d=0,e=0,f=1,g){let h=[];for(let i of a.variantChildren)i.notify("AnimationStart",b),h.push(dq(i,b,{...g,delay:c+("function"==typeof d?0:d)+dp(a.variantChildren,i,d,e,f)}).then(()=>i.notify("AnimationComplete",b)));return Promise.all(h)}(a,b,d,f,g,h,c)}:()=>Promise.resolve(),{when:h}=e;if(!h)return Promise.all([f(),g(c.delay)]);{let[a,b]="beforeChildren"===h?[f,g]:[g,f];return a().then(()=>b())}}let dr=a0.length;function ds(a,b){if(!Array.isArray(b))return!1;let c=b.length;if(c!==a.length)return!1;for(let d=0;d<c;d++)if(b[d]!==a[d])return!1;return!0}let dt=[...a_].reverse(),du=a_.length;function dv(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function dw(){return{animate:dv(!0),whileInView:dv(),whileHover:dv(),whileTap:dv(),whileDrag:dv(),whileFocus:dv(),exit:dv()}}let dx=0;function dy(a){return[a("x"),a("y")]}let dz=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function dA(a){return dz.has(a.tagName)||!0===a.isContentEditable}function dB(a,b,c,d={passive:!0}){return a.addEventListener(b,c,d),()=>a.removeEventListener(b,c)}let dC={x:!1,y:!1};function dD(a){return a.max-a.min}function dE(a,b,c,d=.5){a.origin=d,a.originPoint=bn(b.min,b.max,a.origin),a.scale=dD(c)/dD(b),a.translate=bn(c.min,c.max,a.origin)-a.originPoint,(a.scale>=.9999&&a.scale<=1.0001||isNaN(a.scale))&&(a.scale=1),(a.translate>=-.01&&a.translate<=.01||isNaN(a.translate))&&(a.translate=0)}function dF(a,b,c,d){dE(a.x,b.x,c.x,d?d.originX:void 0),dE(a.y,b.y,c.y,d?d.originY:void 0)}function dG(a,b,c){a.min=c.min+b.min,a.max=a.min+dD(b)}function dH(a,b,c){a.min=b.min-c.min,a.max=a.min+dD(b)}function dI(a,b,c){dH(a.x,b.x,c.x),dH(a.y,b.y,c.y)}let dJ=a=>"mouse"===a.pointerType?"number"!=typeof a.button||a.button<=0:!1!==a.isPrimary;function dK(a){return{point:{x:a.pageX,y:a.pageY}}}function dL(a,b,c,d){return dB(a,b,a=>dJ(a)&&c(a,dK(a)),d)}let dM=({current:a})=>a?a.ownerDocument.defaultView:null,dN=(a,b)=>Math.abs(a-b),dO=new Set(["auto","scroll"]);class dP{constructor(a,b,{transformPagePoint:c,contextWindow:d=window,dragSnapToOrigin:e=!1,distanceThreshold:f=3,element:g}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=a=>{this.handleScroll(a.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var a,b;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let c=dS(this.lastMoveEventInfo,this.history),d=null!==this.startEvent,e=(a=c.offset,b={x:0,y:0},Math.sqrt(dN(a.x,b.x)**2+dN(a.y,b.y)**2)>=this.distanceThreshold);if(!d&&!e)return;let{point:f}=c,{timestamp:g}=aC;this.history.push({...f,timestamp:g});let{onStart:h,onMove:i}=this.handlers;d||(h&&h(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),i&&i(this.lastMoveEvent,c)},this.handlePointerMove=(a,b)=>{this.lastMoveEvent=a,this.lastMoveEventInfo=dQ(b,this.transformPagePoint),aA.update(this.updatePoint,!0)},this.handlePointerUp=(a,b)=>{this.end();let{onEnd:c,onSessionEnd:d,resumeAnimation:e}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&e&&e(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let f=dS("pointercancel"===a.type?this.lastMoveEventInfo:dQ(b,this.transformPagePoint),this.history);this.startEvent&&c&&c(a,f),d&&d(a,f)},!dJ(a))return;this.dragSnapToOrigin=e,this.handlers=b,this.transformPagePoint=c,this.distanceThreshold=f,this.contextWindow=d||window;const h=dQ(dK(a),this.transformPagePoint),{point:i}=h,{timestamp:j}=aC;this.history=[{...i,timestamp:j}];const{onSessionStart:k}=b;k&&k(a,dS(h,this.history)),this.removeListeners=cc(dL(this.contextWindow,"pointermove",this.handlePointerMove),dL(this.contextWindow,"pointerup",this.handlePointerUp),dL(this.contextWindow,"pointercancel",this.handlePointerUp)),g&&this.startScrollTracking(g)}startScrollTracking(a){let b=a.parentElement;for(;b;){let a=getComputedStyle(b);(dO.has(a.overflowX)||dO.has(a.overflowY))&&this.scrollPositions.set(b,{x:b.scrollLeft,y:b.scrollTop}),b=b.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(a){let b=this.scrollPositions.get(a);if(!b)return;let c=a===window,d=c?{x:window.scrollX,y:window.scrollY}:{x:a.scrollLeft,y:a.scrollTop},e={x:d.x-b.x,y:d.y-b.y};(0!==e.x||0!==e.y)&&(c?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=e.x,this.lastMoveEventInfo.point.y+=e.y):this.history.length>0&&(this.history[0].x-=e.x,this.history[0].y-=e.y),this.scrollPositions.set(a,d),aA.update(this.updatePoint,!0))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),aB(this.updatePoint)}}function dQ(a,b){return b?{point:b(a.point)}:a}function dR(a,b){return{x:a.x-b.x,y:a.y-b.y}}function dS({point:a},b){return{point:a,delta:dR(a,dT(b)),offset:dR(a,b[0]),velocity:function(a,b){if(a.length<2)return{x:0,y:0};let c=a.length-1,d=null,e=dT(a);for(;c>=0&&(d=a[c],!(e.timestamp-d.timestamp>ca(.1)));)c--;if(!d)return{x:0,y:0};let f=(e.timestamp-d.timestamp)/1e3;if(0===f)return{x:0,y:0};let g={x:(e.x-d.x)/f,y:(e.y-d.y)/f};return g.x===1/0&&(g.x=0),g.y===1/0&&(g.y=0),g}(b,.1)}}function dT(a){return a[a.length-1]}function dU(a,b,c){return{min:void 0!==b?a.min+b:void 0,max:void 0!==c?a.max+c-(a.max-a.min):void 0}}function dV(a,b){let c=b.min-a.min,d=b.max-a.max;return b.max-b.min<a.max-a.min&&([c,d]=[d,c]),{min:c,max:d}}function dW(a,b,c){return{min:dX(a,b),max:dX(a,c)}}function dX(a,b){return"number"==typeof a?a:a[b]||0}let dY=new WeakMap;class dZ{constructor(a){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=V(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=a}start(a,{snapToCursor:b=!1,distanceThreshold:c}={}){let{presenceContext:d}=this.visualElement;if(d&&!1===d.isPresent)return;let e=a=>{b?(this.stopAnimation(),this.snapToCursor(dK(a).point)):this.pauseAnimation()},f=(a,b)=>{this.stopAnimation();let{drag:c,dragPropagation:d,onDragStart:e}=this.getProps();if(c&&!d&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(a){if("x"===a||"y"===a)if(dC[a])return null;else return dC[a]=!0,()=>{dC[a]=!1};return dC.x||dC.y?null:(dC.x=dC.y=!0,()=>{dC.x=dC.y=!1})}(c),!this.openDragLock))return;this.latestPointerEvent=a,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),dy(a=>{let b=this.getAxisMotionValue(a).get()||0;if(u.test(b)){let{projection:c}=this.visualElement;if(c&&c.layout){let d=c.layout.layoutBox[a];d&&(b=dD(d)*(parseFloat(b)/100))}}this.originPoint[a]=b}),e&&aA.postRender(()=>e(a,b)),b9(this.visualElement,"transform");let{animationState:f}=this.visualElement;f&&f.setActive("whileDrag",!0)},g=(a,b)=>{this.latestPointerEvent=a,this.latestPanInfo=b;let{dragPropagation:c,dragDirectionLock:d,onDirectionLock:e,onDrag:f}=this.getProps();if(!c&&!this.openDragLock)return;let{offset:g}=b;if(d&&null===this.currentDirection){this.currentDirection=function(a,b=10){let c=null;return Math.abs(a.y)>b?c="y":Math.abs(a.x)>b&&(c="x"),c}(g),null!==this.currentDirection&&e&&e(this.currentDirection);return}this.updateAxis("x",b.point,g),this.updateAxis("y",b.point,g),this.visualElement.render(),f&&f(a,b)},h=(a,b)=>{this.latestPointerEvent=a,this.latestPanInfo=b,this.stop(a,b),this.latestPointerEvent=null,this.latestPanInfo=null},i=()=>dy(a=>"paused"===this.getAnimationState(a)&&this.getAxisMotionValue(a).animation?.play()),{dragSnapToOrigin:j}=this.getProps();this.panSession=new dP(a,{onSessionStart:e,onStart:f,onMove:g,onSessionEnd:h,resumeAnimation:i},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:j,distanceThreshold:c,contextWindow:dM(this.visualElement),element:this.visualElement.current})}stop(a,b){let c=a||this.latestPointerEvent,d=b||this.latestPanInfo,e=this.isDragging;if(this.cancel(),!e||!d||!c)return;let{velocity:f}=d;this.startAnimation(f);let{onDragEnd:g}=this.getProps();g&&aA.postRender(()=>g(c,d))}cancel(){this.isDragging=!1;let{projection:a,animationState:b}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:c}=this.getProps();!c&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),b&&b.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(a,b,c){let{drag:d}=this.getProps();if(!c||!d$(a,d,this.currentDirection))return;let e=this.getAxisMotionValue(a),f=this.originPoint[a]+c[a];this.constraints&&this.constraints[a]&&(f=function(a,{min:b,max:c},d){return void 0!==b&&a<b?a=d?bn(b,a,d.min):Math.max(a,b):void 0!==c&&a>c&&(a=d?bn(c,a,d.max):Math.min(a,c)),a}(f,this.constraints[a],this.elastic[a])),e.set(f)}resolveConstraints(){let{dragConstraints:a,dragElastic:b}=this.getProps(),c=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,d=this.constraints;a&&b3(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&c?this.constraints=function(a,{top:b,left:c,bottom:d,right:e}){return{x:dU(a.x,c,e),y:dU(a.y,b,d)}}(c.layoutBox,a):this.constraints=!1,this.elastic=function(a=.35){return!1===a?a=0:!0===a&&(a=.35),{x:dW(a,"left","right"),y:dW(a,"top","bottom")}}(b),d!==this.constraints&&c&&this.constraints&&!this.hasMutatedConstraints&&dy(a=>{var b,d;let e;!1!==this.constraints&&this.getAxisMotionValue(a)&&(this.constraints[a]=(b=c.layoutBox[a],d=this.constraints[a],e={},void 0!==d.min&&(e.min=d.min-b.min),void 0!==d.max&&(e.max=d.max-b.min),e))})}resolveRefConstraints(){var a;let{dragConstraints:b,onMeasureDragConstraints:c}=this.getProps();if(!b||!b3(b))return!1;let d=b.current;aa(null!==d,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:e}=this.visualElement;if(!e||!e.layout)return!1;let f=function(a,b,c){let d=bE(a,c),{scroll:e}=b;return e&&(bB(d.x,e.offset.x),bB(d.y,e.offset.y)),d}(d,e.root,this.visualElement.getTransformPagePoint()),g=(a=e.layout.layoutBox,{x:dV(a.x,f.x),y:dV(a.y,f.y)});if(c){let a=c(function({x:a,y:b}){return{top:b.min,right:a.max,bottom:b.max,left:a.min}}(g));this.hasMutatedConstraints=!!a,a&&(g=bt(a))}return g}startAnimation(a){let{drag:b,dragMomentum:c,dragElastic:d,dragTransition:e,dragSnapToOrigin:f,onDragTransitionEnd:g}=this.getProps(),h=this.constraints||{};return Promise.all(dy(g=>{if(!d$(g,b,this.currentDirection))return;let i=h&&h[g]||{};f&&(i={min:0,max:0});let j={type:"inertia",velocity:c?a[g]:0,bounceStiffness:d?200:1e6,bounceDamping:d?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...e,...i};return this.startAxisValueAnimation(g,j)})).then(g)}startAxisValueAnimation(a,b){let c=this.getAxisMotionValue(a);return b9(this.visualElement,a),c.start(dm(a,c,0,b,this.visualElement,!1))}stopAnimation(){dy(a=>this.getAxisMotionValue(a).stop())}pauseAnimation(){dy(a=>this.getAxisMotionValue(a).animation?.pause())}getAnimationState(a){return this.getAxisMotionValue(a).animation?.state}getAxisMotionValue(a){let b=`_drag${a.toUpperCase()}`,c=this.visualElement.getProps();return c[b]||this.visualElement.getValue(a,(c.initial?c.initial[a]:void 0)||0)}snapToCursor(a){dy(b=>{let{drag:c}=this.getProps();if(!d$(b,c,this.currentDirection))return;let{projection:d}=this.visualElement,e=this.getAxisMotionValue(b);if(d&&d.layout){let{min:c,max:f}=d.layout.layoutBox[b],g=e.get()||0;e.set(a[b]-bn(c,f,.5)+g)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:a,dragConstraints:b}=this.getProps(),{projection:c}=this.visualElement;if(!b3(b)||!c||!this.constraints)return;this.stopAnimation();let d={x:0,y:0};dy(a=>{let b=this.getAxisMotionValue(a);if(b&&!1!==this.constraints){var c,e;let f,h,i,j=b.get();d[a]=(c={min:j,max:j},e=this.constraints[a],f=.5,h=dD(c),(i=dD(e))>h?f=cW(e.min,e.max-h,c.min):h>i&&(f=cW(c.min,c.max-i,e.min)),g(0,1,f))}});let{transformTemplate:e}=this.visualElement.getProps();this.visualElement.current.style.transform=e?e({},""):"none",c.root&&c.root.updateScroll(),c.updateLayout(),this.resolveConstraints(),dy(b=>{if(!d$(b,a,null))return;let c=this.getAxisMotionValue(b),{min:e,max:f}=this.constraints[b];c.set(bn(e,f,d[b]))})}addListeners(){if(!this.visualElement.current)return;dY.set(this.visualElement,this);let a=this.visualElement.current,b=dL(a,"pointerdown",b=>{let{drag:c,dragListener:d=!0}=this.getProps(),e=b.target,f=e!==a&&dA(e);c&&d&&!f&&this.start(b)}),c=()=>{let{dragConstraints:a}=this.getProps();b3(a)&&a.current&&(this.constraints=this.resolveRefConstraints())},{projection:d}=this.visualElement,e=d.addEventListener("measure",c);d&&!d.layout&&(d.root&&d.root.updateScroll(),d.updateLayout()),aA.read(c);let f=dB(window,"resize",()=>this.scalePositionWithinConstraints()),g=d.addEventListener("didUpdate",({delta:a,hasLayoutChanged:b})=>{this.isDragging&&b&&(dy(b=>{let c=this.getAxisMotionValue(b);c&&(this.originPoint[b]+=a[b].translate,c.set(c.get()+a[b].translate))}),this.visualElement.render())});return()=>{f(),b(),e(),g&&g()}}getProps(){let a=this.visualElement.getProps(),{drag:b=!1,dragDirectionLock:c=!1,dragPropagation:d=!1,dragConstraints:e=!1,dragElastic:f=.35,dragMomentum:g=!0}=a;return{...a,drag:b,dragDirectionLock:c,dragPropagation:d,dragConstraints:e,dragElastic:f,dragMomentum:g}}}function d$(a,b,c){return(!0===b||b===a)&&(null===c||c===a)}let d_=a=>(b,c)=>{a&&aA.postRender(()=>a(b,c))},d0={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var d1=bH;let d2=!1;class d3 extends d1.Component{componentDidMount(){let{visualElement:a,layoutGroup:b,switchLayoutGroup:c,layoutId:d}=this.props,{projection:e}=a;e&&(b.group&&b.group.add(e),c&&c.register&&d&&c.register(e),d2&&e.root.didUpdate(),e.addEventListener("animationComplete",()=>{this.safeToRemove()}),e.setOptions({...e.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),d0.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){let{layoutDependency:b,visualElement:c,drag:d,isPresent:e}=this.props,{projection:f}=c;return f&&(f.isPresent=e,a.layoutDependency!==b&&f.setOptions({...f.options,layoutDependency:b}),d2=!0,d||a.layoutDependency!==b||void 0===b||a.isPresent!==e?f.willUpdate():this.safeToRemove(),a.isPresent!==e&&(e?f.promote():f.relegate()||aA.postRender(()=>{let a=f.getStack();a&&a.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:a}=this.props.visualElement;a&&(a.root.didUpdate(),aR.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:a,layoutGroup:b,switchLayoutGroup:c}=this.props,{projection:d}=a;d2=!0,d&&(d.scheduleCheckAfterUnmount(),b&&b.group&&b.group.remove(d),c&&c.deregister&&c.deregister(d))}safeToRemove(){let{safeToRemove:a}=this.props;a&&a()}render(){return null}}function d4(a){let[b,c]=function(a=!0){let b=(0,bH.useContext)(bW);if(null===b)return[!0,null];let{isPresent:c,onExitComplete:d,register:e}=b,f=(0,bH.useId)();(0,bH.useEffect)(()=>{if(a)return e(f)},[a]);let g=(0,bH.useCallback)(()=>a&&d&&d(f),[f,d,a]);return!c&&d?[!1,g]:[!0]}(),d=(0,d1.useContext)(bL);return(0,bK.jsx)(d3,{...a,layoutGroup:d,switchLayoutGroup:(0,d1.useContext)(b2),isPresent:b,safeToRemove:c})}function d5(a){return"object"==typeof a&&null!==a}function d6(a){return d5(a)&&"ownerSVGElement"in a}let d7=["TopLeft","TopRight","BottomLeft","BottomRight"],d8=d7.length,d9=a=>"string"==typeof a?parseFloat(a):a,ea=a=>"number"==typeof a||v.test(a);function eb(a,b){return void 0!==a[b]?a[b]:a.borderRadius}let ec=ee(0,.5,cR),ed=ee(.5,.95,aw);function ee(a,b,c){return d=>d<a?0:d>b?1:c(cW(a,b,d))}function ef(a,b){a.min=b.min,a.max=b.max}function eg(a,b){ef(a.x,b.x),ef(a.y,b.y)}function eh(a,b){a.translate=b.translate,a.scale=b.scale,a.originPoint=b.originPoint,a.origin=b.origin}function ei(a,b,c,d,e){return a-=b,a=d+1/c*(a-d),void 0!==e&&(a=d+1/e*(a-d)),a}function ej(a,b,[c,d,e],f,g){!function(a,b=0,c=1,d=.5,e,f=a,g=a){if(u.test(b)&&(b=parseFloat(b),b=bn(g.min,g.max,b/100)-g.min),"number"!=typeof b)return;let h=bn(f.min,f.max,d);a===f&&(h-=b),a.min=ei(a.min,b,c,h,e),a.max=ei(a.max,b,c,h,e)}(a,b[c],b[d],b[e],b.scale,f,g)}let ek=["x","scaleX","originX"],el=["y","scaleY","originY"];function em(a,b,c,d){ej(a.x,b,ek,c?c.x:void 0,d?d.x:void 0),ej(a.y,b,el,c?c.y:void 0,d?d.y:void 0)}function en(a){return 0===a.translate&&1===a.scale}function eo(a){return en(a.x)&&en(a.y)}function ep(a,b){return a.min===b.min&&a.max===b.max}function eq(a,b){return Math.round(a.min)===Math.round(b.min)&&Math.round(a.max)===Math.round(b.max)}function er(a,b){return eq(a.x,b.x)&&eq(a.y,b.y)}function es(a){return dD(a.x)/dD(a.y)}function et(a,b){return a.translate===b.translate&&a.scale===b.scale&&a.originPoint===b.originPoint}class eu{constructor(){this.members=[]}add(a){aO(this.members,a),a.scheduleRender()}remove(a){if(aP(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){let a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(a){let b,c=this.members.findIndex(b=>a===b);if(0===c)return!1;for(let a=c;a>=0;a--){let c=this.members[a];if(!1!==c.isPresent){b=c;break}}return!!b&&(this.promote(b),!0)}promote(a,b){let c=this.lead;if(a!==c&&(this.prevLead=c,this.lead=a,a.show(),c)){c.instance&&c.scheduleRender(),a.scheduleRender();let d=c.options.layoutDependency,e=a.options.layoutDependency;(void 0===d||void 0===e||d!==e)&&(a.resumeFrom=c,b&&(a.resumeFrom.preserveOpacity=!0),c.snapshot&&(a.snapshot=c.snapshot,a.snapshot.latestValues=c.animationValues||c.latestValues),a.root&&a.root.isUpdating&&(a.isLayoutDirty=!0));let{crossfade:f}=a.options;!1===f&&c.hide()}}exitAnimationComplete(){this.members.forEach(a=>{let{options:b,resumingFrom:c}=a;b.onExitComplete&&b.onExitComplete(),c&&c.options.onExitComplete&&c.options.onExitComplete()})}scheduleRender(){this.members.forEach(a=>{a.instance&&a.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let ev=(a,b)=>a.depth-b.depth;class ew{constructor(){this.children=[],this.isDirty=!1}add(a){aO(this.children,a),this.isDirty=!0}remove(a){aP(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(ev),this.isDirty=!1,this.children.forEach(a)}}let ex=["","X","Y","Z"],ey=0;function ez(a,b,c,d){let{latestValues:e}=b;e[a]&&(c[a]=e[a],b.setStaticValue(a,0),d&&(d[a]=0))}function eA({attachResizeListener:a,defaultParent:b,measureScroll:c,checkIsScrollRoot:d,resetTransform:e}){return class{constructor(a={},c=b?.()){this.id=ey++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(eD),this.nodes.forEach(eK),this.nodes.forEach(eL),this.nodes.forEach(eE)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new ew)}addEventListener(a,b){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new aQ),this.eventHandlers.get(a).add(b)}notifyListeners(a,...b){let c=this.eventHandlers.get(a);c&&c.notify(...b)}hasListeners(a){return this.eventHandlers.has(a)}mount(b){if(this.instance)return;this.isSVG=d6(b)&&!(d6(b)&&"svg"===b.tagName),this.instance=b;let{layoutId:c,layout:d,visualElement:e}=this.options;if(e&&!e.current&&e.mount(b),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(d||c)&&(this.isLayoutDirty=!0),a){let c,d=0,e=()=>this.root.updateBlockedByResize=!1;aA.read(()=>{d=window.innerWidth}),a(b,()=>{let a=window.innerWidth;if(a!==d){let b,f;d=a,this.root.updateBlockedByResize=!0,c&&c(),b=aT.now(),f=({timestamp:a})=>{let c=a-b;c>=250&&(aB(f),e(c-250))},aA.setup(f,!0),c=()=>aB(f),d0.hasAnimatedSinceResize&&(d0.hasAnimatedSinceResize=!1,this.nodes.forEach(eJ))}})}c&&this.root.registerSharedNode(c,this),!1!==this.options.animate&&e&&(c||d)&&this.addEventListener("didUpdate",({delta:a,hasLayoutChanged:b,hasRelativeLayoutChanged:c,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let f=this.options.transition||e.getDefaultTransition()||eR,{onLayoutAnimationStart:g,onLayoutAnimationComplete:h}=e.getProps(),i=!this.targetLayout||!er(this.targetLayout,d),j=!b&&c;if(this.options.layoutRoot||this.resumeFrom||j||b&&(i||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let b={...b7(f,"layout"),onPlay:g,onComplete:h};(e.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(a,j)}else b||eJ(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),aB(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(eM),this.animationId++)}getTransformTemplate(){let{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function a(b){if(b.hasCheckedOptimisedAppear=!0,b.root===b)return;let{visualElement:c}=b.options;if(!c)return;let d=c.props[b1];if(window.MotionHasOptimisedAnimation(d,"transform")){let{layout:a,layoutId:c}=b.options;window.MotionCancelOptimisedAnimation(d,"transform",aA,!(a||c))}let{parent:e}=b;e&&!e.hasCheckedOptimisedAppear&&a(e)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let a=0;a<this.path.length;a++){let b=this.path[a];b.shouldResetTransform=!0,b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}let{layoutId:b,layout:c}=this.options;if(void 0===b&&!c)return;let d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(eG);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(eH);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(eI),this.nodes.forEach(eB),this.nodes.forEach(eC)):this.nodes.forEach(eH),this.clearAllSnapshots();let a=aT.now();aC.delta=g(0,1e3/60,a-aC.timestamp),aC.timestamp=a,aC.isProcessing=!0,aD.update.process(aC),aD.preRender.process(aC),aD.render.process(aC),aC.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,aR.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(eF),this.sharedNodes.forEach(eN)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,aA.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){aA.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||dD(this.snapshot.measuredBox.x)||dD(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let a=0;a<this.path.length;a++)this.path[a].updateScroll();let a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=V(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:b}=this.options;b&&b.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let b=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(b=!1),b&&this.instance){let b=d(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:b,offset:c(this.instance),wasRoot:this.scroll?this.scroll.isRoot:b}}}resetTransform(){if(!e)return;let a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,b=this.projectionDelta&&!eo(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,f=d!==this.prevTransformTemplateValue;a&&this.instance&&(b||bw(this.latestValues)||f)&&(e(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){var b;let c=this.measurePageBox(),d=this.removeElementScroll(c);return a&&(d=this.removeTransform(d)),eU((b=d).x),eU(b.y),{animationId:this.root.animationId,measuredBox:c,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:a}=this.options;if(!a)return V();let b=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(eW))){let{scroll:a}=this.root;a&&(bB(b.x,a.offset.x),bB(b.y,a.offset.y))}return b}removeElementScroll(a){let b=V();if(eg(b,a),this.scroll?.wasRoot)return b;for(let c=0;c<this.path.length;c++){let d=this.path[c],{scroll:e,options:f}=d;d!==this.root&&e&&f.layoutScroll&&(e.wasRoot&&eg(b,a),bB(b.x,e.offset.x),bB(b.y,e.offset.y))}return b}applyTransform(a,b=!1){let c=V();eg(c,a);for(let a=0;a<this.path.length;a++){let d=this.path[a];!b&&d.options.layoutScroll&&d.scroll&&d!==d.root&&bD(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),bw(d.latestValues)&&bD(c,d.latestValues)}return bw(this.latestValues)&&bD(c,this.latestValues),c}removeTransform(a){let b=V();eg(b,a);for(let a=0;a<this.path.length;a++){let c=this.path[a];if(!c.instance||!bw(c.latestValues))continue;bv(c.latestValues)&&c.updateSnapshot();let d=V();eg(d,c.measurePageBox()),em(b,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return bw(this.latestValues)&&em(b,this.latestValues),b}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:void 0===a.crossfade||a.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!==aC.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){let b=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=b.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=b.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=b.isSharedProjectionDirty);let c=!!this.resumingFrom||this!==b;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:d,layoutId:e}=this.options;if(!this.layout||!(d||e))return;this.resolvedRelativeTargetAt=aC.timestamp;let f=this.getClosestProjectingParent();if(f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=V(),this.targetWithTransforms=V()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var g,h,i;this.forceRelativeParentToResolveTarget(),g=this.target,h=this.relativeTarget,i=this.relativeParent.target,dG(g.x,h.x,i.x),dG(g.y,h.y,i.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):eg(this.target,this.layout.layoutBox),bA(this.target,this.targetDelta)):eg(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&1!==this.animationProgress?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||bv(this.parent.latestValues)||bx(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,b,c){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=V(),this.relativeTargetOrigin=V(),dI(this.relativeTargetOrigin,b,c),eg(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let a=this.getLead(),b=!!this.resumingFrom||this!==a,c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),b&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===aC.timestamp&&(c=!1),c)return;let{layout:d,layoutId:e}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||e))return;eg(this.layoutCorrected,this.layout.layoutBox);let f=this.treeScale.x,g=this.treeScale.y;!function(a,b,c,d=!1){let e,f,g=c.length;if(g){b.x=b.y=1;for(let h=0;h<g;h++){f=(e=c[h]).projectionDelta;let{visualElement:g}=e.options;(!g||!g.props.style||"contents"!==g.props.style.display)&&(d&&e.options.layoutScroll&&e.scroll&&e!==e.root&&bD(a,{x:-e.scroll.offset.x,y:-e.scroll.offset.y}),f&&(b.x*=f.x.scale,b.y*=f.y.scale,bA(a,f)),d&&bw(e.latestValues)&&bD(a,e.latestValues))}b.x<1.0000000000001&&b.x>.999999999999&&(b.x=1),b.y<1.0000000000001&&b.y>.999999999999&&(b.y=1)}}(this.layoutCorrected,this.treeScale,this.path,b),a.layout&&!a.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=V());let{target:h}=a;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(eh(this.prevProjectionDelta.x,this.projectionDelta.x),eh(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),dF(this.projectionDelta,this.layoutCorrected,h,this.latestValues),this.treeScale.x===f&&this.treeScale.y===g&&et(this.projectionDelta.x,this.prevProjectionDelta.x)&&et(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.visualElement?.scheduleRender(),a){let a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=T(),this.projectionDelta=T(),this.projectionDeltaWithTransform=T()}setAnimationOrigin(a,b=!1){let c,d=this.snapshot,e=d?d.latestValues:{},f={...this.latestValues},g=T();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!b;let h=V(),i=(d?d.source:void 0)!==(this.layout?this.layout.source:void 0),j=this.getStack(),k=!j||j.members.length<=1,l=!!(i&&!k&&!0===this.options.crossfade&&!this.path.some(eQ));this.animationProgress=0,this.mixTargetDelta=b=>{let d=b/1e3;if(eO(g.x,a.x,d),eO(g.y,a.y,d),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var j,m,n,o,p,q;dI(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),n=this.relativeTarget,o=this.relativeTargetOrigin,p=h,q=d,eP(n.x,o.x,p.x,q),eP(n.y,o.y,p.y,q),c&&(j=this.relativeTarget,m=c,ep(j.x,m.x)&&ep(j.y,m.y))&&(this.isProjectionDirty=!1),c||(c=V()),eg(c,this.relativeTarget)}i&&(this.animationValues=f,function(a,b,c,d,e,f){e?(a.opacity=bn(0,c.opacity??1,ec(d)),a.opacityExit=bn(b.opacity??1,0,ed(d))):f&&(a.opacity=bn(b.opacity??1,c.opacity??1,d));for(let e=0;e<d8;e++){let f=`border${d7[e]}Radius`,g=eb(b,f),h=eb(c,f);(void 0!==g||void 0!==h)&&(g||(g=0),h||(h=0),0===g||0===h||ea(g)===ea(h)?(a[f]=Math.max(bn(d9(g),d9(h),d),0),(u.test(h)||u.test(g))&&(a[f]+="%")):a[f]=h)}(b.rotate||c.rotate)&&(a.rotate=bn(b.rotate||0,c.rotate||0,d))}(f,e,this.latestValues,d,l,k)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=d},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(aB(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=aA.update(()=>{var b,c,d;let e;d0.hasAnimatedSinceResize=!0,cd.layout++,this.motionValue||(this.motionValue=aV(0)),this.currentAnimation=(b=this.motionValue,c=[0,1e3],d={...a,velocity:0,isSync:!0,onUpdate:b=>{this.mixTargetDelta(b),a.onUpdate&&a.onUpdate(b)},onStop:()=>{cd.layout--},onComplete:()=>{cd.layout--,a.onComplete&&a.onComplete(),this.completeAnimation()}},(e=W(b)?b:aV(b)).start(dm("",e,c,d)),e.animation),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 a=this.getStack();a&&a.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 a=this.getLead(),{targetWithTransforms:b,target:c,layout:d,latestValues:e}=a;if(b&&c&&d){if(this!==a&&this.layout&&d&&eV(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||V();let b=dD(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+b;let d=dD(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+d}eg(b,c),bD(b,e),dF(this.projectionDeltaWithTransform,this.layoutCorrected,b,e)}}registerSharedNode(a,b){this.sharedNodes.has(a)||this.sharedNodes.set(a,new eu),this.sharedNodes.get(a).add(b);let c=b.options.initialPromotionConfig;b.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(b):void 0})}isLead(){let a=this.getStack();return!a||a.lead===this}getLead(){let{layoutId:a}=this.options;return a&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:b,preserveFollowOpacity:c}={}){let d=this.getStack();d&&d.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),b&&this.setOptions({transition:b})}relegate(){let a=this.getStack();return!!a&&a.relegate(this)}resetSkewAndRotation(){let{visualElement:a}=this.options;if(!a)return;let b=!1,{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(b=!0),!b)return;let d={};c.z&&ez("z",a,d,this.animationValues);for(let b=0;b<ex.length;b++)ez(`rotate${ex[b]}`,a,d,this.animationValues),ez(`skew${ex[b]}`,a,d,this.animationValues);for(let b in a.render(),d)a.setStaticValue(b,d[b]),this.animationValues&&(this.animationValues[b]=d[b]);a.scheduleRender()}applyProjectionStyles(a,b){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}let c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=bV(b?.pointerEvents)||"",a.transform=c?c(this.latestValues,""):"none";return}let d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(a.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,a.pointerEvents=bV(b?.pointerEvents)||""),this.hasProjected&&!bw(this.latestValues)&&(a.transform=c?c({},""):"none",this.hasProjected=!1);return}a.visibility="";let e=d.animationValues||d.latestValues;this.applyTransformsToTarget();let f=function(a,b,c){let d="",e=a.x.translate/b.x,f=a.y.translate/b.y,g=c?.z||0;if((e||f||g)&&(d=`translate3d(${e}px, ${f}px, ${g}px) `),(1!==b.x||1!==b.y)&&(d+=`scale(${1/b.x}, ${1/b.y}) `),c){let{transformPerspective:a,rotate:b,rotateX:e,rotateY:f,skewX:g,skewY:h}=c;a&&(d=`perspective(${a}px) ${d}`),b&&(d+=`rotate(${b}deg) `),e&&(d+=`rotateX(${e}deg) `),f&&(d+=`rotateY(${f}deg) `),g&&(d+=`skewX(${g}deg) `),h&&(d+=`skewY(${h}deg) `)}let h=a.x.scale*b.x,i=a.y.scale*b.y;return(1!==h||1!==i)&&(d+=`scale(${h}, ${i})`),d||"none"}(this.projectionDeltaWithTransform,this.treeScale,e);c&&(f=c(e,f)),a.transform=f;let{x:g,y:h}=this.projectionDelta;for(let b in a.transformOrigin=`${100*g.origin}% ${100*h.origin}% 0`,d.animationValues?a.opacity=d===this?e.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:e.opacityExit:a.opacity=d===this?void 0!==e.opacity?e.opacity:"":void 0!==e.opacityExit?e.opacityExit:0,bo){if(void 0===e[b])continue;let{correct:c,applyTo:g,isCSSVariable:h}=bo[b],i="none"===f?e[b]:c(e[b],d);if(g){let b=g.length;for(let c=0;c<b;c++)a[g[c]]=i}else h?this.options.visualElement.renderState.vars[b]=i:a[b]=i}this.options.layoutId&&(a.pointerEvents=d===this?bV(b?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop()),this.root.nodes.forEach(eG),this.root.sharedNodes.clear()}}}function eB(a){a.updateLayout()}function eC(a){let b=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&b&&a.hasListeners("didUpdate")){let{layoutBox:c,measuredBox:d}=a.layout,{animationType:e}=a.options,f=b.source!==a.layout.source;"size"===e?dy(a=>{let d=f?b.measuredBox[a]:b.layoutBox[a],e=dD(d);d.min=c[a].min,d.max=d.min+e}):eV(e,b.layoutBox,c)&&dy(d=>{let e=f?b.measuredBox[d]:b.layoutBox[d],g=dD(c[d]);e.max=e.min+g,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[d].max=a.relativeTarget[d].min+g)});let g=T();dF(g,c,b.layoutBox);let h=T();f?dF(h,a.applyTransform(d,!0),b.measuredBox):dF(h,c,b.layoutBox);let i=!eo(g),j=!1;if(!a.resumeFrom){let d=a.getClosestProjectingParent();if(d&&!d.resumeFrom){let{snapshot:e,layout:f}=d;if(e&&f){let g=V();dI(g,b.layoutBox,e.layoutBox);let h=V();dI(h,c,f.layoutBox),er(g,h)||(j=!0),d.options.layoutRoot&&(a.relativeTarget=h,a.relativeTargetOrigin=g,a.relativeParent=d)}}}a.notifyListeners("didUpdate",{layout:c,snapshot:b,delta:h,layoutDelta:g,hasLayoutChanged:i,hasRelativeLayoutChanged:j})}else if(a.isLead()){let{onExitComplete:b}=a.options;b&&b()}a.options.transition=void 0}function eD(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function eE(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function eF(a){a.clearSnapshot()}function eG(a){a.clearMeasurements()}function eH(a){a.isLayoutDirty=!1}function eI(a){let{visualElement:b}=a.options;b&&b.getProps().onBeforeLayoutMeasure&&b.notify("BeforeLayoutMeasure"),a.resetTransform()}function eJ(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function eK(a){a.resolveTargetDelta()}function eL(a){a.calcProjection()}function eM(a){a.resetSkewAndRotation()}function eN(a){a.removeLeadSnapshot()}function eO(a,b,c){a.translate=bn(b.translate,0,c),a.scale=bn(b.scale,1,c),a.origin=b.origin,a.originPoint=b.originPoint}function eP(a,b,c,d){a.min=bn(b.min,c.min,d),a.max=bn(b.max,c.max,d)}function eQ(a){return a.animationValues&&void 0!==a.animationValues.opacityExit}let eR={duration:.45,ease:[.4,0,.1,1]},eS=a=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),eT=eS("applewebkit/")&&!eS("chrome/")?Math.round:aw;function eU(a){a.min=eT(a.min),a.max=eT(a.max)}function eV(a,b,c){return"position"===a||"preserve-aspect"===a&&!(.2>=Math.abs(es(b)-es(c)))}function eW(a){return a!==a.root&&a.scroll?.wasRoot}let eX=eA({attachResizeListener:(a,b)=>dB(a,"resize",b),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),eY={current:void 0},eZ=eA({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!eY.current){let a=new eX({});a.mount(window),a.setOptions({layoutScroll:!0}),eY.current=a}return eY.current},resetTransform:(a,b)=>{a.style.transform=void 0!==b?b:"none"},checkIsScrollRoot:a=>"fixed"===window.getComputedStyle(a).position});function e$(a,b,c){if(null==a)return[];if(a instanceof EventTarget)return[a];if("string"==typeof a){let d=document;b&&(d=b.current);let e=c?.[a]??d.querySelectorAll(a);return e?Array.from(e):[]}return Array.from(a).filter(a=>null!=a)}function e_(a,b){let c=e$(a),d=new AbortController;return[c,{passive:!0,...b,signal:d.signal},()=>d.abort()]}function e0(a){return!("touch"===a.pointerType||dC.x||dC.y)}function e1(a,b,c){let{props:d}=a;a.animationState&&d.whileHover&&a.animationState.setActive("whileHover","Start"===c);let e=d["onHover"+c];e&&aA.postRender(()=>e(b,dK(b)))}a.s(["resolveElements",()=>e$],56056);let e2=(a,b)=>!!b&&(a===b||e2(a,b.parentElement)),e3=new WeakSet;function e4(a){return b=>{"Enter"===b.key&&a(b)}}function e5(a,b){a.dispatchEvent(new PointerEvent("pointer"+b,{isPrimary:!0,bubbles:!0}))}function e6(a){return dJ(a)&&!(dC.x||dC.y)}function e7(a,b,c){let{props:d}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&d.whileTap&&a.animationState.setActive("whileTap","Start"===c);let e=d["onTap"+("End"===c?"":c)];e&&aA.postRender(()=>e(b,dK(b)))}let e8=new WeakMap,e9=new WeakMap,fa=a=>{let b=e8.get(a.target);b&&b(a)},fb=a=>{a.forEach(fa)},fc={some:0,all:1},fd=function(a,b){if("u"<typeof Proxy)return b4;let c=new Map,d=(c,d)=>b4(c,d,a,b);return new Proxy((a,b)=>d(a,b),{get:(e,f)=>"create"===f?d:(c.has(f)||c.set(f,b4(f,void 0,a,b)),c.get(f))})}({animation:{Feature:class extends b5{constructor(a){super(a),a.animationState||(a.animationState=function(a){let b=b=>Promise.all(b.map(({animation:b,options:c})=>(function(a,b,c={}){let d;if(a.notify("AnimationStart",b),Array.isArray(b))d=Promise.all(b.map(b=>dq(a,b,c)));else if("string"==typeof b)d=dq(a,b,c);else{let e="function"==typeof b?b6(a,b,c.custom):b;d=Promise.all(dn(a,e,c))}return d.then(()=>{a.notify("AnimationComplete",b)})})(a,b,c))),c=dw(),d=!0,e=b=>(c,d)=>{let e=b6(a,d,"exit"===b?a.presenceContext?.custom:void 0);if(e){let{transition:a,transitionEnd:b,...d}=e;c={...c,...d,...b}}return c};function f(f){let{props:g}=a,h=function a(b){if(!b)return;if(!b.isControllingVariants){let c=b.parent&&a(b.parent)||{};return void 0!==b.props.initial&&(c.initial=b.props.initial),c}let c={};for(let a=0;a<dr;a++){let d=a0[a],e=b.props[d];(a$(e)||!1===e)&&(c[d]=e)}return c}(a.parent)||{},i=[],j=new Set,k={},l=1/0;for(let b=0;b<du;b++){var m,n;let o=dt[b],p=c[o],q=void 0!==g[o]?g[o]:h[o],r=a$(q),s=o===f?p.isActive:null;!1===s&&(l=b);let t=q===h[o]&&q!==g[o]&&r;if(t&&d&&a.manuallyAnimateOnMount&&(t=!1),p.protectedKeys={...k},!p.isActive&&null===s||!q&&!p.prevProp||aZ(q)||"boolean"==typeof q)continue;let u=(m=p.prevProp,"string"==typeof(n=q)?n!==m:!!Array.isArray(n)&&!ds(n,m)),v=u||o===f&&p.isActive&&!t&&r||b>l&&r,w=!1,x=Array.isArray(q)?q:[q],y=x.reduce(e(o),{});!1===s&&(y={});let{prevResolvedValues:z={}}=p,A={...z,...y},B=b=>{v=!0,j.has(b)&&(w=!0,j.delete(b)),p.needsAnimating[b]=!0;let c=a.getValue(b);c&&(c.liveStyle=!1)};for(let a in A){let b=y[a],c=z[a];if(!k.hasOwnProperty(a))(b8(b)&&b8(c)?ds(b,c):b===c)?void 0!==b&&j.has(a)?B(a):p.protectedKeys[a]=!0:null!=b?B(a):j.add(a)}p.prevProp=q,p.prevResolvedValues=y,p.isActive&&(k={...k,...y}),d&&a.blockInitialAnimation&&(v=!1);let C=t&&u,D=!C||w;v&&D&&i.push(...x.map(b=>{let c={type:o};if("string"==typeof b&&d&&!C&&a.manuallyAnimateOnMount&&a.parent){let{parent:d}=a,e=b6(d,b);if(d.enteringChildren&&e){let{delayChildren:b}=e.transition||{};c.delay=dp(d.enteringChildren,a,b)}}return{animation:b,options:c}}))}if(j.size){let b={};if("boolean"!=typeof g.initial){let c=b6(a,Array.isArray(g.initial)?g.initial[0]:g.initial);c&&c.transition&&(b.transition=c.transition)}j.forEach(c=>{let d=a.getBaseTarget(c),e=a.getValue(c);e&&(e.liveStyle=!0),b[c]=d??null}),i.push({animation:b})}let o=!!i.length;return d&&(!1===g.initial||g.initial===g.animate)&&!a.manuallyAnimateOnMount&&(o=!1),d=!1,o?b(i):Promise.resolve()}return{animateChanges:f,setActive:function(b,d){if(c[b].isActive===d)return Promise.resolve();a.variantChildren?.forEach(a=>a.animationState?.setActive(b,d)),c[b].isActive=d;let e=f(b);for(let a in c)c[a].protectedKeys={};return e},setAnimateFunction:function(c){b=c(a)},getState:()=>c,reset:()=>{c=dw()}}}(a))}updateAnimationControlsSubscription(){let{animate:a}=this.node.getProps();aZ(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:a}=this.node.getProps(),{animate:b}=this.node.prevProps||{};a!==b&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends b5{constructor(){super(...arguments),this.id=dx++}update(){if(!this.node.presenceContext)return;let{isPresent:a,onExitComplete:b}=this.node.presenceContext,{isPresent:c}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===c)return;let d=this.node.animationState.setActive("exit",!a);b&&!a&&d.then(()=>{b(this.id)})}mount(){let{register:a,onExitComplete:b}=this.node.presenceContext||{};b&&b(this.id),a&&(this.unmount=a(this.id))}unmount(){}}},inView:{Feature:class extends b5{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var a;let b;this.unmount();let{viewport:c={}}=this.node.getProps(),{root:d,margin:e,amount:f="some",once:g}=c,h={root:d?d.current:void 0,rootMargin:e,threshold:"number"==typeof f?f:fc[f]},i=a=>{let{isIntersecting:b}=a;if(this.isInView===b||(this.isInView=b,g&&!b&&this.hasEnteredView))return;b&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",b);let{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),e=b?c:d;e&&e(a)};return a=this.node.current,b=function({root:a,...b}){let c=a||document;e9.has(c)||e9.set(c,{});let d=e9.get(c),e=JSON.stringify(b);return d[e]||(d[e]=new IntersectionObserver(fb,{root:a,...b})),d[e]}(h),e8.set(a,i),b.observe(a),()=>{e8.delete(a),b.unobserve(a)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:a,prevProps:b}=this.node;["amount","margin","root"].some(function({viewport:a={}},{viewport:b={}}={}){return c=>a[c]!==b[c]}(a,b))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends b5{mount(){let{current:a}=this.node;a&&(this.unmount=function(a,b,c={}){let[d,e,f]=e_(a,c),g=a=>{let d=a.currentTarget;if(!e6(a))return;e3.add(d);let f=b(d,a),g=(a,b)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",i),e3.has(d)&&e3.delete(d),e6(a)&&"function"==typeof f&&f(a,{success:b})},h=a=>{g(a,d===window||d===document||c.useGlobalTarget||e2(d,a.target))},i=a=>{g(a,!1)};window.addEventListener("pointerup",h,e),window.addEventListener("pointercancel",i,e)};return d.forEach(a=>{(c.useGlobalTarget?window:a).addEventListener("pointerdown",g,e),d5(a)&&"offsetHeight"in a&&(a.addEventListener("focus",a=>((a,b)=>{let c=a.currentTarget;if(!c)return;let d=e4(()=>{if(e3.has(c))return;e5(c,"down");let a=e4(()=>{e5(c,"up")});c.addEventListener("keyup",a,b),c.addEventListener("blur",()=>e5(c,"cancel"),b)});c.addEventListener("keydown",d,b),c.addEventListener("blur",()=>c.removeEventListener("keydown",d),b)})(a,e)),dA(a)||a.hasAttribute("tabindex")||(a.tabIndex=0))}),f}(a,(a,b)=>(e7(this.node,b,"Start"),(a,{success:b})=>e7(this.node,a,b?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends b5{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch(b){a=!0}a&&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=cc(dB(this.node.current,"focus",()=>this.onFocus()),dB(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends b5{mount(){let{current:a}=this.node;a&&(this.unmount=function(a,b,c={}){let[d,e,f]=e_(a,c),g=a=>{if(!e0(a))return;let{target:c}=a,d=b(c,a);if("function"!=typeof d||!c)return;let f=a=>{e0(a)&&(d(a),c.removeEventListener("pointerleave",f))};c.addEventListener("pointerleave",f,e)};return d.forEach(a=>{a.addEventListener("pointerenter",g,e)}),f}(a,(a,b)=>(e1(this.node,b,"Start"),a=>e1(this.node,a,"End"))))}unmount(){}}},pan:{Feature:class extends b5{constructor(){super(...arguments),this.removePointerDownListener=aw}onPointerDown(a){this.session=new dP(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:dM(this.node)})}createPanHandlers(){let{onPanSessionStart:a,onPanStart:b,onPan:c,onPanEnd:d}=this.node.getProps();return{onSessionStart:d_(a),onStart:d_(b),onMove:c,onEnd:(a,b)=>{delete this.session,d&&aA.postRender(()=>d(a,b))}}}mount(){this.removePointerDownListener=dL(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends b5{constructor(a){super(a),this.removeGroupControls=aw,this.removeListeners=aw,this.controls=new dZ(a)}mount(){let{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||aw}update(){let{dragControls:a}=this.node.getProps(),{dragControls:b}=this.node.prevProps||{};a!==b&&(this.removeGroupControls(),a&&(this.removeGroupControls=a.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:eZ,MeasureLayout:d4},layout:{ProjectionNode:eZ,MeasureLayout:d4}},(a,b)=>b.isSVG??bJ(a)?new bs(b):new bF(b,{allowProjection:a!==bH.Fragment}));a.s(["motion",()=>fd],31363)},43956,a=>{"use strict";var b=a.i(15974),c=a.i(8937),d=a.i(31363),e=a.i(67769),f=a.i(48970),g=a.i(99426);function h(){return(0,b.jsxs)("section",{className:"relative min-h-screen flex items-center bg-white overflow-hidden pt-20",children:[(0,b.jsx)("div",{className:"absolute inset-0 opacity-5",children:(0,b.jsx)("div",{className:"absolute inset-0",style:{backgroundImage:"radial-gradient(circle at 1px 1px, black 1px, transparent 0)",backgroundSize:"40px 40px"}})}),(0,b.jsx)("div",{className:"container-custom relative z-10 py-20",children:(0,b.jsxs)("div",{className:"max-w-4xl mx-auto text-center",children:[(0,b.jsx)(d.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:(0,b.jsxs)(e.Badge,{variant:"secondary",className:"mb-8 px-4 py-2 text-sm",children:[(0,b.jsx)("span",{className:"w-2 h-2 rounded-full bg-green-500 mr-2 animate-pulse"}),"专业科技服务提供商"]})}),(0,b.jsx)(d.motion.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.1},className:"text-4xl sm:text-5xl lg:text-6xl font-bold text-black leading-tight mb-6",children:g.COMPANY_INFO.name}),(0,b.jsx)(d.motion.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.2},className:"text-xl sm:text-2xl text-gray-600 mb-8",children:g.COMPANY_INFO.slogan}),(0,b.jsx)(d.motion.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.3},className:"text-lg text-gray-500 max-w-2xl mx-auto mb-10",children:g.COMPANY_INFO.description}),(0,b.jsxs)(d.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.4},className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[(0,b.jsx)(f.Button,{size:"lg",asChild:!0,children:(0,b.jsx)(c.default,{href:"/about",children:"了解更多"})}),(0,b.jsx)(f.Button,{size:"lg",variant:"outline",asChild:!0,children:(0,b.jsx)(c.default,{href:"/contact",children:"联系我们"})})]}),(0,b.jsx)(d.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.5},className:"mt-20 grid grid-cols-2 md:grid-cols-4 gap-8",children:g.STATS.map((a,c)=>(0,b.jsxs)(d.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.6+.1*c},className:"text-center",children:[(0,b.jsx)("div",{className:"text-3xl sm:text-4xl font-bold text-black",children:a.value}),(0,b.jsx)("div",{className:"text-sm text-gray-500 mt-1",children:a.label})]},a.label))})]})})]})}a.s(["HeroSection",()=>h])},28763,a=>{"use strict";var b=a.i(15974),c=a.i(8937),d=a.i(31363),e=a.i(72826),f=a.i(56056);let g={some:0,all:1};var h=a.i(33574);let i=(0,h.default)("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]),j=(0,h.default)("cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]),k=(0,h.default)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]),l=(0,h.default)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]),m=(0,h.default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);var n=a.i(22939),o=a.i(48970),p=a.i(67769),q=a.i(99426);let r={Code:i,Cloud:j,BarChart3:k,Shield:l};function s(){let a=(0,e.useRef)(null),h=function(a,{root:b,margin:c,amount:d,once:h=!1,initial:i=!1}={}){let[j,k]=(0,e.useState)(i);return(0,e.useEffect)(()=>{if(!a.current||h&&j)return;let e={root:b&&b.current||void 0,margin:c,amount:d};return function(a,b,{root:c,margin:d,amount:e="some"}={}){let h=(0,f.resolveElements)(a),i=new WeakMap,j=new IntersectionObserver(a=>{a.forEach(a=>{let c=i.get(a.target);if(!!c!==a.isIntersecting)if(a.isIntersecting){let c=b(a.target,a);"function"==typeof c?i.set(a.target,c):j.unobserve(a.target)}else"function"==typeof c&&(c(a),i.delete(a.target))})},{root:c,rootMargin:d,threshold:"number"==typeof e?e:g[e]});return h.forEach(a=>j.observe(a)),()=>j.disconnect()}(a.current,()=>(k(!0),h?void 0:()=>k(!1)),e)},[b,a,c,h,d]),j}(a,{once:!0,margin:"-100px"});return(0,b.jsx)("section",{id:"services",className:"py-24 bg-gray-50",ref:a,children:(0,b.jsxs)("div",{className:"container-custom",children:[(0,b.jsxs)(d.motion.div,{initial:{opacity:0,y:20},animate:h?{opacity:1,y:0}:{},transition:{duration:.6},className:"text-center max-w-3xl mx-auto mb-16",children:[(0,b.jsx)(p.Badge,{variant:"outline",className:"mb-4",children:"核心业务"}),(0,b.jsx)("h2",{className:"text-3xl sm:text-4xl font-bold text-black mb-4",children:"专业服务,助力发展"}),(0,b.jsx)("p",{className:"text-lg text-gray-600",children:"我们提供全方位的技术解决方案,帮助企业实现数字化转型"})]}),(0,b.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:q.SERVICES.map((a,c)=>{let e=r[a.icon];return(0,b.jsx)(d.motion.div,{initial:{opacity:0,y:20},animate:h?{opacity:1,y:0}:{},transition:{duration:.5,delay:.1*c},children:(0,b.jsxs)(n.Card,{className:"h-full hover:shadow-lg transition-shadow",children:[(0,b.jsxs)(n.CardHeader,{children:[(0,b.jsx)("div",{className:"w-12 h-12 bg-black rounded-lg flex items-center justify-center mb-4",children:e&&(0,b.jsx)(e,{className:"w-6 h-6 text-white"})}),(0,b.jsx)(n.CardTitle,{className:"text-xl",children:a.title})]}),(0,b.jsx)(n.CardContent,{children:(0,b.jsx)(n.CardDescription,{className:"text-base",children:a.description})})]})},a.id)})}),(0,b.jsx)(d.motion.div,{initial:{opacity:0,y:20},animate:h?{opacity:1,y:0}:{},transition:{duration:.6,delay:.4},className:"text-center mt-12",children:(0,b.jsx)(o.Button,{variant:"outline",size:"lg",asChild:!0,children:(0,b.jsxs)(c.default,{href:"/services",children:["查看全部服务",(0,b.jsx)(m,{className:"ml-2 w-4 h-4"})]})})})]})})}a.s(["ServicesSection",()=>s],28763)}];
|
|
|
|
//# sourceMappingURL=ruixin-website-react_6806f8a9._.js.map
|