1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8367],{5505:(t,e,i)=>{"use strict";i.d(e,{B:()=>r});let r="undefined"!=typeof window},7954:(t,e,i)=>{"use strict";let r;function s(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}i.d(e,{P:()=>ns});let n=t=>Array.isArray(t);function o(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let r=0;r<i;r++)if(e[r]!==t[r])return!1;return!0}function a(t){return"string"==typeof t||Array.isArray(t)}function l(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function u(t,e,i,r){if("function"==typeof e){let[s,n]=l(r);e=e(void 0!==i?i:t.custom,s,n)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,n]=l(r);e=e(void 0!==i?i:t.custom,s,n)}return e}function h(t,e,i){let r=t.getProps();return u(r,e,void 0!==i?i:r.custom,t)}let d=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],c=["initial",...d];function p(t){let e;return()=>(void 0===e&&(e=t()),e)}let m=p(()=>void 0!==window.ScrollTimeline);class f{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t,e){let i=this.animations.map(i=>m()&&i.attachTimeline?i.attachTimeline(t):"function"==typeof e?e(i):void 0);return()=>{i.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class g extends f{then(t,e){return Promise.all(this.animations).then(t).catch(e)}}function v(t,e){return t?t[e]||t.default||t:void 0}function y(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}function x(t){return"function"==typeof t}function w(t,e){t.timeline=e,t.onfinish=null}let b=t=>Array.isArray(t)&&"number"==typeof t[0],P={linearEasing:void 0},S=function(t,e){let i=p(t);return()=>{var t;return null!=(t=P[e])?t:i()}}(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),T=(t,e,i)=>{let r=e-t;return 0===r?1:(i-t)/r},A=(t,e,i=10)=>{let r="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)r+=t(T(0,s-1,e))+", ";return`linear(${r.substring(0,r.length-2)})`},E=([t,e,i,r])=>`cubic-bezier(${t}, ${e}, ${i}, ${r})`,M={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:E([0,.65,.55,1]),circOut:E([.55,0,1,.45]),backIn:E([.31,.01,.66,-.59]),backOut:E([.33,1.53,.69,.99])},C={x:!1,y:!1};function V(t,e){let i=function(t,e,i){if(t instanceof Element)return[t];if("string"==typeof t){let e=document.querySelectorAll(t);return e?Array.from(e):[]}return Array.from(t)}(t),r=new AbortController;return[i,{passive:!0,...e,signal:r.signal},()=>r.abort()]}function D(t){return e=>{"touch"===e.pointerType||C.x||C.y||t(e)}}let R=(t,e)=>!!e&&(t===e||R(t,e.parentElement)),j=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,k=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),O=new WeakSet;function L(t){return e=>{"Enter"===e.key&&t(e)}}function F(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function B(t){return j(t)&&!(C.x||C.y)}let I=t=>1e3*t,U=t=>t,N=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],z=new Set(N),$=new Set(["width","height","top","left","right","bottom",...N]),_=t=>n(t)?t[t.length-1]||0:t,W={skipAnimations:!1,useManualTiming:!1},Y=["read","resolveKeyframes","update","preRender","render","postRender"];function H(t,e){let i=!1,r=!0,s={delta:0,timestamp:0,isProcessing:!1},n=()=>i=!0,o=Y.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,r=!1,s=!1,n=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){n.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,s=!1,o=!1)=>{let a=o&&r?e:i;return s&&n.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),n.delete(t)},process:t=>{if(o=t,r){s=!0;return}r=!0,[e,i]=[i,e],e.forEach(a),e.clear(),r=!1,s&&(s=!1,l.process(t))}};return l}(n),t),{}),{read:a,resolveKeyframes:l,update:u,preRender:h,render:d,postRender:c}=o,p=()=>{let n=W.useManualTiming?s.timestamp:performance.now();i=!1,s.delta=r?1e3/60:Math.max(Math.min(n-s.timestamp,40),1),s.timestamp=n,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),h.process(s),d.process(s),c.process(s),s.isProcessing=!1,i&&e&&(r=!1,t(p))};return{schedule:Y.reduce((e,n)=>{let a=o[n];return e[n]=(e,n=!1,o=!1)=>(!i&&(i=!0,r=!0,s.isProcessing||t(p)),a.schedule(e,n,o)),e},{}),cancel:t=>{for(let e=0;e<Y.length;e++)o[Y[e]].cancel(t)},state:s,steps:o}}let{schedule:X,cancel:q,state:K,steps:G}=H("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:U,!0);function Z(){r=void 0}let Q={now:()=>(void 0===r&&Q.set(K.isProcessing||W.useManualTiming?K.timestamp:performance.now()),r),set:t=>{r=t,queueMicrotask(Z)}};function J(t,e){-1===t.indexOf(e)&&t.push(e)}function tt(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class te{constructor(){this.subscriptions=[]}add(t){return J(this.subscriptions,t),()=>tt(this.subscriptions,t)}notify(t,e,i){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,i);else for(let s=0;s<r;s++){let r=this.subscriptions[s];r&&r(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let ti={current:void 0};class tr{constructor(t,e={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=Q.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=Q.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new te);let i=this.events[t].add(e);return"change"===t?()=>{i(),X.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return ti.current&&ti.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=Q.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ts(t,e){return new tr(t,e)}let tn=t=>!!(t&&t.getVelocity);function to(t,e){let i=t.getValue("willChange");if(tn(i)&&i.add)return i.add(e)}let ta=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),tl="data-"+ta("framerAppearId"),tu={current:!1},th=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function td(t,e,i,r){return t===e&&i===r?U:s=>
10===s||1===s?s:th(function(t,e,i,r,s){let n,o,a=0;do(n=th(o=e+(i-e)/2,r,s)-t)>0?i=o:e=o;while(Math.abs(n)>1e-7&&++a<12);return o}(s,0,1,t,i),e,r)}let tc=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,tp=t=>e=>1-t(1-e),tm=td(.33,1.53,.69,.99),tf=tp(tm),tg=tc(tf),tv=t=>(t*=2)<1?.5*tf(t):.5*(2-Math.pow(2,-10*(t-1))),ty=t=>1-Math.sin(Math.acos(t)),tx=tp(ty),tw=tc(ty),tb=t=>/^0[^.\s]+$/u.test(t),tP=(t,e,i)=>i>e?e:i<t?t:i,tS={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},tT={...tS,transform:t=>tP(0,1,t)},tA={...tS,default:1},tE=t=>Math.round(1e5*t)/1e5,tM=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tC=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tV=(t,e)=>i=>!!("string"==typeof i&&tC.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tD=(t,e,i)=>r=>{if("string"!=typeof r)return r;let[s,n,o,a]=r.match(tM);return{[t]:parseFloat(s),[e]:parseFloat(n),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tR={...tS,transform:t=>Math.round(tP(0,255,t))},tj={test:tV("rgb","red"),parse:tD("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:r=1})=>"rgba("+tR.transform(t)+", "+tR.transform(e)+", "+tR.transform(i)+", "+tE(tT.transform(r))+")"},tk={test:tV("#"),parse:function(t){let e="",i="",r="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),r=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),r=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,r+=r,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}},transform:tj.transform},tO=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tL=tO("deg"),tF=tO("%"),tB=tO("px"),tI=tO("vh"),tU=tO("vw"),tN={...tF,parse:t=>tF.parse(t)/100,transform:t=>tF.transform(100*t)},tz={test:tV("hsl","hue"),parse:tD("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:r=1})=>"hsla("+Math.round(t)+", "+tF.transform(tE(e))+", "+tF.transform(tE(i))+", "+tE(tT.transform(r))+")"},t$={test:t=>tj.test(t)||tk.test(t)||tz.test(t),parse:t=>tj.test(t)?tj.parse(t):tz.test(t)?tz.parse(t):tk.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tj.transform(t):tz.transform(t)},t_=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tW="number",tY="color",tH=/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 tX(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]},s=[],n=0,o=e.replace(tH,t=>(t$.test(t)?(r.color.push(n),s.push(tY),i.push(t$.parse(t))):t.startsWith("var(")?(r.var.push(n),s.push("var"),i.push(t)):(r.number.push(n),s.push(tW),i.push(parseFloat(t))),++n,"${}")).split("${}");return{values:i,split:o,indexes:r,types:s}}function tq(t){return tX(t).values}function tK(t){let{split:e,types:i}=tX(t),r=e.length;return t=>{let s="";for(let n=0;n<r;n++)if(s+=e[n],void 0!==t[n]){let e=i[n];e===tW?s+=tE(t[n]):e===tY?s+=t$.transform(t[n]):s+=t[n]}return s}}let tG=t=>"number"==typeof t?0:t,tZ={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null==(e=t.match(tM))?void 0:e.length)||0)+((null==(i=t.match(t_))?void 0:i.length)||0)>0},parse:tq,createTransformer:tK,getAnimatableNone:function(t){let e=tq(t);return tK(t)(e.map(tG))}},tQ=new Set(["brightness","contrast","saturate","opacity"]);function tJ(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=i.match(tM)||[];if(!r)return t;let s=i.replace(r,""),n=+!!tQ.has(e);return r!==i&&(n*=100),e+"("+n+s+")"}let t0=/\b([a-z-]*)\(.*?\)/gu,t1={...tZ,getAnimatableNone:t=>{let e=t.match(t0);return e?e.map(tJ).join(" "):t}},t3={...tS,transform:Math.round},t2={borderWidth:tB,borderTopWidth:tB,borderRightWidth:tB,borderBottomWidth:tB,borderLeftWidth:tB,borderRadius:tB,radius:tB,borderTopLeftRadius:tB,borderTopRightRadius:tB,borderBottomRightRadius:tB,borderBottomLeftRadius:tB,width:tB,maxWidth:tB,height:tB,maxHeight:tB,top:tB,right:tB,bottom:tB,left:tB,padding:tB,paddingTop:tB,paddingRight:tB,paddingBottom:tB,paddingLeft:tB,margin:tB,marginTop:tB,marginRight:tB,marginBottom:tB,marginLeft:tB,backgroundPositionX:tB,backgroundPositionY:tB,rotate:tL,rotateX:tL,rotateY:tL,rotateZ:tL,scale:tA,scaleX:tA,scaleY:tA,scaleZ:tA,skew:tL,skewX:tL,skewY:tL,distance:tB,translateX:tB,translateY:tB,translateZ:tB,x:tB,y:tB,z:tB,perspective:tB,transformPerspective:tB,opacity:tT,originX:tN,originY:tN,originZ:tB,zIndex:t3,size:tB,fillOpacity:tT,strokeOpacity:tT,numOctaves:t3},t5={...t2,color:t$,backgroundColor:t$,outlineColor:t$,fill:t$,stroke:t$,borderColor:t$,borderTopColor:t$,borderRightColor:t$,borderBottomColor:t$,borderLeftColor:t$,filter:t1,WebkitFilter:t1},t4=t=>t5[t];function t9(t,e){let i=t4(t);return i!==t1&&(i=tZ),i.getAnimatableNone?i.getAnimatableNone(e):void 0}
1let t6=new Set(["auto","none","0"]),t8=t=>t===tS||t===tB,t7=(t,e)=>parseFloat(t.split(", ")[e]),et=(t,e)=>(i,{transform:r})=>{if("none"===r||!r)return 0;let s=r.match(/^matrix3d\((.+)\)$/u);if(s)return t7(s[1],e);{let e=r.match(/^matrix\((.+)\)$/u);return e?t7(e[1],t):0}},ee=new Set(["x","y","z"]),ei=N.filter(t=>!ee.has(t)),er={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:et(4,13),y:et(5,14)};er.translateX=er.x,er.translateY=er.y;let es=new Set,en=!1,eo=!1;function ea(){if(eo){let t=Array.from(es).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return ei.forEach(i=>{let r=t.getValue(i);void 0!==r&&(e.push([i,r.get()]),r.set(+!!i.startsWith("scale")))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var r;null==(r=t.getValue(e))||r.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}eo=!1,en=!1,es.forEach(t=>t.complete()),es.clear()}function el(){es.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(eo=!0)})}class eu{constructor(t,e,i,r,s,n=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=r,this.element=s,this.isAsync=n}scheduleResolve(){this.isScheduled=!0,this.isAsync?(es.add(this),en||(en=!0,
1X.read(el),X.resolveKeyframes(ea))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:r}=this;for(let s=0;s<t.length;s++)if(null===t[s])if(0===s){let s=null==r?void 0:r.get(),n=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let r=i.readValue(e,n);null!=r&&(t[0]=r)}void 0===t[0]&&(t[0]=n),r&&void 0===s&&r.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),es.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,es.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let eh=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),ed=t=>e=>"string"==typeof e&&e.startsWith(t),ec=ed("--"),ep=ed("var(--"),em=t=>!!ep(t)&&ef.test(t.split("/*")[0].trim()),ef=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,eg=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ev=t=>e=>e.test(t),ey=[tS,tB,tF,tL,tU,tI,{test:t=>"auto"===t,parse:t=>t}],ex=t=>ey.find(ev(t));class ew extends eu{constructor(t,e,i,r,s){super(t,e,i,r,s,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let r=t[i];if("string"==typeof r&&em(r=r.trim())){let s=function t(e,i,r=1){U(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[s,n]=function(t){let e=eg.exec(t);if(!e)return[,];let[,i,r,s]=e;return[`--${null!=i?i:r}`,s]}(e);if(!s)return;let o=window.getComputedStyle(i).getPropertyValue(s);if(o){let t=o.trim();return eh(t)?parseFloat(t):t}return em(n)?t(n,i,r+1):n}(r,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!$.has(i)||2!==t.length)return;let[r,s]=t,n=ex(r),o=ex(s);if(n!==o)if(t8(n)&&t8(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var r;("number"==typeof(r=t[e])?0===r:null===r||"none"===r||"0"===r||tb(r))&&i.push(e)}i.length&&function(t,e,i){let r,s=0;for(;s<t.length&&!r;){let e=t[s];"string"==typeof e&&!t6.has(e)&&tX(e).values.length&&(r=t[s]),s++}if(r&&i)for(let s of e)t[s]=t9(i,r)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=er[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let r=e[e.length-1];void 0!==r&&t.getValue(i,r).jump(r,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:r}=this;if(!e||!e.current)return;let s=e.getValue(i);s&&s.jump(this.measuredOrigin,!1);let n=r.length-1,o=r[n];r[n]=er[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null==(t=this.removedTransforms)?void 0:t.length)&&this.removedTransforms.forEac
1h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let eb=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tZ.test(t)||"0"===t)&&!t.startsWith("url(")),eP=t=>null!==t;function eS(t,{repeat:e,repeatType:i="loop"},r){let s=t.filter(eP),n=e&&"loop"!==i&&e%2==1?0:s.length-1;return n&&void 0!==r?r:s[n]}class eT{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:n="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Q.now(),this.options={autoplay:t,delay:e,type:i,repeat:r,repeatDelay:s,repeatType:n,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(el(),ea()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=Q.now(),this.hasAttemptedResolve=!0;let{name:i,type:r,velocity:s,delay:n,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,i,r){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let n=t[t.length-1],o=eb(s,e),a=eb(n,e);return U(o===a,`You are trying to animate ${e} from "${s}" to "${n}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${n} via the \`style\` property.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||x(i))&&r)}(t,i,r,s))if(tu.current||!n){a&&a(eS(t,this.options,e)),o&&o(),this.resolveFinishedPromise();return}else this.options.duration=0;let u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}let eA=(t,e,i)=>t+(e-t)*i;function eE(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function eM(t,e){return i=>i>0?e:t}let eC=(t,e,i)=>{let r=t*t,s=i*(e*e-r)+r;return s<0?0:Math.sqrt(s)},eV=[tk,tj,tz];function eD(t){let e=eV.find(e=>e.test(t));if(U(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===tz&&(i=function({hue:t,saturation:e,lightness:i,alpha:r}){t/=360,i/=100;let s=0,n=0,o=0;if(e/=100){let r=i<.5?i*(1+e):i+e-i*e,a=2*i-r;s=eE(a,r,t+1/3),n=eE(a,r,t),o=eE(a,r,t-1/3)}else s=n=o=i;return{red:Math.round(255*s),green:Math.round(255*n),blue:Math.round(255*o),alpha:r}}(i)),i}let eR=(t,e)=>{let i=eD(t),r=eD(e);if(!i||!r)return eM(t,e);let s={...i};return t=>(s.red=eC(i.red,r.red,t),s.green=eC(i.green,r.green,t),s.blue=eC(i.blue,r.blue,t),s.alpha=eA(i.alpha,r.alpha,t),tj.transform(s))},ej=(t,e)=>i=>e(t(i)),ek=(...t)=>t.reduce(ej),eO=new Set(["none","hidden"]);function eL(t,e){return i=>eA(t,e,i)}function eF(t){return"number"==typeof t?eL:"string"==typeof t?em(t)?eM:t$.test(t)?eR:eU:Array.isArray(t)?eB:"object"==typeof t?t$.test(t)?eR:eI:eM}function eB(t,e){let i=[...t],r=i.length,s=t.map((t,i)=>eF(t)(t,e[i]));return t=>{for(let e=0;e<r;e++)i[e]=s[e](t);return i}}function eI(t,e){let i={...t,...e},r={};for(let s in i)void 0!==t[s]&&void 0!==e[s]&&(r[s]=eF(t[s])(t[s],e[s]));return t=>{for(let e in r)i[e]=r[e](t);return i}}let eU=(t,e)=>{let i=tZ.createTransformer(e),r=tX(t),s=tX(e);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?eO.has(t)&&!s.values.length||eO.has(e)&&!r.values.length?function(t,e){return eO.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):ek(eB(function(t,e){var i;let r=[],s={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let o=e.types[n],a=t.indexes[o][s[o]],l=null!=(i=t.values[a])?i:0;r[n]=l,s[o]++}return r}(r,s),s.values),i):(U(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),eM(t,e))};function eN(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?eA(t,e,i):eF(t)(t,e)}function ez(t,e,i){var r,s;let n=Math.max(e-5,0);return r=i-t(n),(s=e-n)?1e3/s*r:0}let e$={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function e_(t,e){return t*Math.sqrt(1-e*e)}let eW=["duration","bounce"],eY=["stiffness","damping","mass"];function eH(t,e){return e.some(e=>void 0!==t[e])}function eX(t=e$.visualDuration,e=e$.bounce){let i,r="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:s,restDelta:n}=r,o=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:h,mass:d,duration:c,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:e$.velocity,stiffness:e$.stiffness,damping:e$.damping,mass:e$.mass,isResolvedFromDuration:!1,...t};if(!eH(t,eY)&&eH(t,eW))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),r=i*i,s=2*tP(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:e$.mass,stiffness:r,damping:s}}else{let i=function({duration:t=e$.duration,bounce:e=e$.bounce,velocity:i=e$.velocity,mass:r=e$.mass}){let s,n;U(t<=I(e$.maxDuration),"Spring duration must be 10 seconds or less");let o=1-e;o=tP(e$.minDamping,e$.maxDamping,o),t=tP(e$.minDuration,e$.maxDuration,t/1e3),o<1?(s=e=>{let r=e*o,s=r*t;return .001-(r-i)/e_(e,o)*Math.exp(-s)},n=e=>{let r=e*o*t,n=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-r),l=e_(Math.pow(e,2),o);return(r*i+i-n)*a*(-s(e)+.001>0?-1:1)/l}):(s=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),n=e=>t*t*(i-e)*Math.exp(-e*t));
1let a=function(t,e,i){let r=i;for(let i=1;i<12;i++)r-=t(r)/e(r);return r}(s,n,5/t);if(t=I(t),isNaN(a))return{stiffness:e$.stiffness,damping:e$.damping,duration:t};{let e=Math.pow(a,2)*r;return{stiffness:e,damping:2*o*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...i,mass:e$.mass}).isResolvedFromDuration=!0}return e}({...r,velocity:-((r.velocity||0)/1e3)}),f=p||0,g=h/(2*Math.sqrt(u*d)),v=a-o,x=Math.sqrt(u/d)/1e3,w=5>Math.abs(v);if(s||(s=w?e$.restSpeed.granular:e$.restSpeed.default),n||(n=w?e$.restDelta.granular:e$.restDelta.default),g<1){let t=e_(x,g);i=e=>a-Math.exp(-g*x*e)*((f+g*x*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}else if(1===g)i=t=>a-Math.exp(-x*t)*(v+(f+x*v)*t);else{let t=x*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*x*e),r=Math.min(t*e,300);return a-i*((f+g*x*v)*Math.sinh(r)+t*v*Math.cosh(r))/t}}let b={calculatedDuration:m&&c||null,next:t=>{let e=i(t);if(m)l.done=t>=c;else{let r=0;g<1&&(r=0===t?I(f):ez(i,t,e));let o=Math.abs(a-e)<=n;l.done=Math.abs(r)<=s&&o}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(y(b),2e4),e=A(e=>b.next(t*e).value,t,30);return t+"ms "+e}};return b}function eq({keyframes:t,velocity:e=0,power:i=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:n=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let d,c,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,v=void 0===o?g:o(g);v!==g&&(f=v-p);let y=t=>-f*Math.exp(-t/r),x=t=>v+y(t),w=t=>{let e=y(t),i=x(t);m.done=Math.abs(e)<=u,m.value=m.done?v:i},b=t=>{let e;if(e=m.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;d=t,c=eX({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:ez(x,t,m.value),damping:s,stiffness:n,restDelta:u,restSpeed:h})}};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,w(t),b(t)),void 0!==d&&t>=d)?c.next(t-d):(e||w(t),m)}}}let eK=td(.42,0,1,1),eG=td(0,0,.58,1),eZ=td(.42,0,.58,1),eQ={linear:U,easeIn:eK,easeInOut:eZ,easeOut:eG,circIn:ty,circInOut:tw,circOut:tx,backIn:tf,backInOut:tg,backOut:tm,anticipate:tv},eJ=t=>{if(b(t)){U(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,r,s]=t;return td(e,i,r,s)}return"string"==typeof t?(U(void 0!==eQ[t],`Invalid easing type '${t}'`),eQ[t]):t};function e0({duration:t=300,keyframes:e,times:i,ease:r="easeInOut"}){var s;let n=Array.isArray(r)&&"number"!=typeof r[0]?r.map(eJ):eJ(r),o={done:!1,value:e[0]},a=function(t,e,{clamp:i=!0,ease:r,mixer:s}={}){let n=t.length;if(U(n===e.length,"Both input and output ranges must be the same length"),1===n)return()=>e[0];if(2===n&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[n-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let r=[],s=i||eN,n=t.length-1;for(let i=0;i<n;i++){let n=s(t[i],t[i+1]);e&&(n=ek(Array.isArray(e)?e[i]||U:e,n)),r.push(n)}return r}(e,r,s),l=a.length,u=i=>{if(o&&i<t[0])return e[0];let r=0;if(l>1)for(;r<t.length-2&&!(i<t[r+1]);r++);let s=T(t[r],t[r+1],i);return a[r](s)};return i?e=>u(tP(t[0],t[n-1],e)):u}((s=i&&i.length===e.length?i:function(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let r=1;r<=e;r++){let s=T(0,e,r);t.push(eA(i,1,s))}}(e,t.length-1),e}(e),s.map(e=>e*t)),e,{ease:Array.isArray(n)?n:e.map(()=>n||eZ).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}let e1=t=>{let e=({timestamp:e})=>t(e);return{start:()=>X.update(e,!0),stop:()=>q(e),now:()=>K.isProcessing?K.timestamp:Q.now()}},e3={decay:eq,inertia:eq,tween:e0,keyframes:e0,spring:eX},e2=t=>t/100;class e5 extends eT{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:e,motionValue:i,element:r,keyframes:s}=this.options,n=(null==r?void 0:r.KeyframeResolver)||eu,o=(t,e)=>this.onKeyframesResolved(t,e);this.resolver=new n(s,o,e,i,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i,{type:r="keyframes",repeat:s=0,repeatDelay:n=0,repeatType:
1o,velocity:a=0}=this.options,l=x(r)?r:e3[r]||e0;l!==e0&&"number"!=typeof t[0]&&(e=ek(e2,eN(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===o&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=y(u));let{calculatedDuration:h}=u,d=h+n;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:h,resolvedDuration:d,totalDuration:d*(s+1)-n}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:r,generator:s,mirroredGenerator:n,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return s.next(0);let{delay:d,repeat:c,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let g=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=s;if(c){let t=Math.min(this.currentTime,u)/h,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/h)):"mirror"===p&&(x=n)),y=tP(0,1,i)*h}let w=v?{done:!1,value:a[0]}:x.next(y);o&&(w.value=o(w.value));let{done:b}=w;v||null===l||(b=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return P&&void 0!==r&&(w.value=eS(a,this.options,r)),f&&f(w.value),P&&this.finish(),w}get duration(){let{resolved:t}=this;return t?t.calculatedDuration/1e3:0}get time(){return this.currentTime/1e3}set time(t){t=I(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=this.currentTime/1e3)}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=e1,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!=(t=this.currentTime)?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let e4=new Set(["opacity","clipPath","filter","transform"]),e9=p(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),e6={anticipate:tv,backInOut:tg,circInOut:tw};class e8 extends eT{constructor(t){super(t);let{name:e,motionValue:i,element:r,keyframes:s}=this.options;this.resolver=new ew(s,(t,e)=>this.onKeyframesResolved(t,e),e,i,r),this.resolver.scheduleResolve()}initPlayback(t,e){var i;let{duration:r=300,times:s,ease:n,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if("string"==typeof n&&S()&&n in e6&&(n=e6[n]),x((i=this.options).type)||"spring"===i.type||!function t(e){return!!("function"==typeof e&&S()||!e||"string"==typeof e&&(e in M||S())||b(e)||Array.isArray(e)&&e.every(t))}(i.ease)){let{onComplete:e,onUpdate:i,motionValue:a,element:l,...u}=this.options,h=function(t,e){let i=new e5({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:t[0]},s=[],n=0;for(;!r.done&&n<2e4;)s.push((r=i.sample(n)).value),n+=10;return{times:void 0,keyframes:s,duration:n-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),r=h.duration,s=h.times,n=h.ease,o="keyframes"}
1let h=function(t,e,i,{delay:r=0,duration:s=300,repeat:n=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=function t(e,i){if(e)return"function"==typeof e&&S()?A(e,i):b(e)?E(e):Array.isArray(e)?e.map(e=>t(e,i)||M.easeOut):M[e]}(a,s);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:r,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:n+1,direction:"reverse"===o?"alternate":"normal"})}(a.owner.current,l,t,{...this.options,duration:r,times:s,ease:n});return h.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(w(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{let{onComplete:i}=this.options;a.set(eS(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:s,type:o,ease:n,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return e/1e3}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(e.currentTime||0)/1e3}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=I(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return U;let{animation:i}=e;w(i,t)}else this.pendingTimeline=t;return U}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:r,type:s,ease:n,times:o}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,h=new e5({...u,keyframes:i,duration:r,type:s,ease:n,times:o,isGenerator:!0}),d=I(this.time);t.setWithVelocity(h.sample(d-10).value,h.sample(d).value,10)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:i,repeatDelay:r,repeatType:s,damping:n,type:o}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return e9()&&i&&e4.has(i)&&!a&&!l&&!r&&"mirror"!==s&&0!==n&&"inertia"!==o}}let e7={type:"spring",stiffness:500,damping:25,restSpeed:10},it={type:"keyframes",duration:.8},ie={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ii=(t,e,i,r={},s,n)=>o=>{let a=v(r,t)||{},l=a.delay||r.delay||0,{elapsed:u=0}=r;u-=I(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:n?void 0:s};!function({when:t,delay:e,delayChildren:i,staggerChildren:r,staggerDirection:s,repeat:n,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(a)&&(h={...h,...((t,{keyframes:e})=>e.length>2?it:z.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:e7:ie)(t,h)}),h.duration&&(h.duration=I(h.duration)),h.repeatDelay&&(h.repeatDelay=I(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let d=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(h.duration=0,0===h.delay&&(d=!0)),(tu.current||W.skipAnimations)&&(d=!0,h.duration=0,h.delay=0),d&&!n&&void 0!==e.get()){let t=eS(h.keyframes,a);if(void 0!==t)return X.update(()=>{h.onUpdate(t),h.onComplete()}),new g([])}return!n&&e8.supports(h)?new e8(h):new e5(h)};function ir(t,e,{delay:i=0,transitionOverride:r,type:s}={}){var n;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;r&&(o=r);let u=[],d=s&&t.animationState&&t.animationState.getState()[s];for(let e in l){let r=t.getValue(e,null!=(n=t.latestValues[e])?n:null),s=l[e];
1if(void 0===s||d&&function({protectedKeys:t,needsAnimating:e},i){let r=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,r}(d,e))continue;let a={delay:i,...v(o||{},e)},h=!1;if(window.MotionHandoffAnimation){let i=t.props[tl];if(i){let t=window.MotionHandoffAnimation(i,e,X);null!==t&&(a.startTime=t,h=!0)}}to(t,e),r.start(ii(e,r,s,t.shouldReduceMotion&&$.has(e)?{type:!1}:a,t,h));let c=r.animation;c&&u.push(c)}return a&&Promise.all(u).then(()=>{X.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:r={},...s}=h(t,e)||{};for(let e in s={...s,...i}){let i=_(s[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,ts(i))}}(t,a)})}),u}function is(t,e,i={}){var r;let s=h(t,e,"exit"===i.type?null==(r=t.presenceContext)?void 0:r.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(n=i.transitionOverride);let o=s?()=>Promise.all(ir(t,s,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=n;return function(t,e,i=0,r=0,s=1,n){let o=[],a=(t.variantChildren.size-1)*r,l=1===s?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(io).forEach((t,r)=>{t.notify("AnimationStart",e),o.push(is(t,e,{...n,delay:i+l(r)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,s+r,o,a,i)}:()=>Promise.resolve(),{when:l}=n;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}function io(t,e){return t.sortNodePosition(e)}let ia=c.length,il=[...d].reverse(),iu=d.length;function ih(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function id(){return{animate:ih(!0),whileInView:ih(),whileHover:ih(),whileTap:ih(),whileDrag:ih(),whileFocus:ih(),exit:ih()}}class ic{constructor(t){this.isMounted=!1,this.node=t}update(){}}class ip extends ic{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>is(t,e,i)));else if("string"==typeof e)r=is(t,e,i);else{let s="function"==typeof e?h(t,e,i.custom):e;r=Promise.all(ir(t,s,i))}return r.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=id(),r=!0,l=e=>(i,r)=>{var s;let n=h(t,r,"exit"===e?null==(s=t.presenceContext)?void 0:s.custom:void 0);if(n){let{transition:t,transitionEnd:e,...r}=n;i={...i,...r,...e}}return i};function u(u){let{props:h}=t,d=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<ia;t++){let r=c[t],s=e.props[r];(a(s)||!1===s)&&(i[r]=s)}return i}(t.parent)||{},p=[],m=new Set,f={},g=1/0;for(let e=0;e<iu;e++){var v,y;let c=il[e],x=i[c],w=void 0!==h[c]?h[c]:d[c],b=a(w),P=c===u?x.isActive:null;!1===P&&(g=e);let S=w===d[c]&&w!==h[c]&&b;if(S&&r&&t.manuallyAnimateOnMount&&(S=!1),x.protectedKeys={...f},!x.isActive&&null===P||!w&&!x.prevProp||s(w)||"boolean"==typeof w)continue;let T=(v=x.prevProp,"string"==typeof(y=w)?y!==v:!!Array.isArray(y)&&!o(y,v)),A=T||c===u&&x.isActive&&!S&&b||e>g&&b,E=!1,M=Array.isArray(w)?w:[w],C=M.reduce(l(c),{});!1===P&&(C={});let{prevResolvedValues:V={}}=x,D={...V,...C},R=e=>{A=!0,m.has(e)&&(E=!0,m.delete(e)),x.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in D){let e=C[t],i=V[t];if(!f.hasOwnProperty(t))(n(e)&&n(i)?o(e,i):e===i)?void 0!==e&&m.has(t)?R(t):x.protectedKeys[t]=!0:null!=e?R(t):m.add(t)}x.prevProp=w,x.prevResolvedValues=C,x.isActive&&(f={...f,...C}),r&&t.blockInitialAnimation&&(A=!1);let j=!(S&&T)||E;A&&j&&p.push(...M.map(t=>({animation:t,options:{type:c}})))}if(m.size){let e={};m.forEach(i=>{let r=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=null!=r?r:null}),p.push({animation:e})}let x=!!p.length;return r&&(!1===h.initial||h.initial===h.animate)&&!t.manuallyAnimateOnMount&&(x=!1),r=!1,x?e(p):Promise.resolve()}return{animateChanges:u,setActive:function(e,r){var s;if(i[e].isActive===r)return Promise.resolve();
1null==(s=t.variantChildren)||s.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,r)}),i[e].isActive=r;let n=u(e);for(let t in i)i[t].protectedKeys={};return n},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=id(),r=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();s(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}}let im=0;class ig extends ic{constructor(){super(...arguments),this.id=im++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let r=this.node.animationState.setActive("exit",!t);e&&!t&&r.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}function iv(t,e,i,r={passive:!0}){return t.addEventListener(e,i,r),()=>t.removeEventListener(e,i)}function iy(t){return{point:{x:t.pageX,y:t.pageY}}}function ix(t,e,i,r){return iv(t,e,t=>j(t)&&i(t,iy(t)),r)}let iw=(t,e)=>Math.abs(t-e);class ib{constructor(t,e,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=iT(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(iw(t.x,e.x)**2+iw(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:r}=t,{timestamp:s}=K;this.history.push({...r,timestamp:s});let{onStart:n,onMove:o}=this.handlers;e||(n&&n(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=iP(e,this.transformPagePoint),X.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:r,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=iT("pointercancel"===t.type?this.lastMoveEventInfo:iP(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,n),r&&r(t,n)},!j(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.contextWindow=r||window;let n=iP(iy(t),this.transformPagePoint),{point:o}=n,{timestamp:a}=K;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,iT(n,this.history)),this.removeListeners=ek(ix(this.contextWindow,"pointermove",this.handlePointerMove),ix(this.contextWindow,"pointerup",this.handlePointerUp),ix(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),q(this.updatePoint)}}function iP(t,e){return e?{point:e(t.point)}:t}function iS(t,e){return{x:t.x-e.x,y:t.y-e.y}}function iT({point:t},e){return{point:t,delta:iS(t,iA(e)),offset:iS(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,r=null,s=iA(t);for(;i>=0&&(r=t[i],!(s.timestamp-r.timestamp>I(.1)));)i--;if(!r)return{x:0,y:0};let n=(s.timestamp-r.timestamp)/1e3;if(0===n)return{x:0,y:0};let o={x:(s.x-r.x)/n,y:(s.y-r.y)/n};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function iA(t){return t[t.length-1]}function iE(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function iM(t){return t.max-t.min}function iC(t,e,i,r=.5){t.origin=r,t.originPoint=eA(e.min,e.max,t.origin),t.scale=iM(i)/iM(e),t.translate=eA(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function iV(t,e,i,r){iC(t.x,e.x,i.x,r?r.originX:void 0),iC(t.y,e.y,i.y,r?r.originY:void 0)}function iD(t,e,i){t.min=i.min+e.min,t.max=t.min+iM(e)}function iR(t,e,i){t.min=e.min-i.min,t.max=t.min+iM(e)}
1function ij(t,e,i){iR(t.x,e.x,i.x),iR(t.y,e.y,i.y)}function ik(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function iO(t,e){let i=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,r]=[r,i]),{min:i,max:r}}function iL(t,e,i){return{min:iF(t,e),max:iF(t,i)}}function iF(t,e){return"number"==typeof t?t:t[e]||0}let iB=()=>({translate:0,scale:1,origin:0,originPoint:0}),iI=()=>({x:iB(),y:iB()}),iU=()=>({min:0,max:0}),iN=()=>({x:iU(),y:iU()});function iz(t){return[t("x"),t("y")]}function i$({top:t,left:e,right:i,bottom:r}){return{x:{min:e,max:i},y:{min:t,max:r}}}function i_(t){return void 0===t||1===t}function iW({scale:t,scaleX:e,scaleY:i}){return!i_(t)||!i_(e)||!i_(i)}function iY(t){return iW(t)||iH(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function iH(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function iX(t,e,i,r,s){return void 0!==s&&(t=r+s*(t-r)),r+i*(t-r)+e}function iq(t,e=0,i=1,r,s){t.min=iX(t.min,e,i,r,s),t.max=iX(t.max,e,i,r,s)}function iK(t,{x:e,y:i}){iq(t.x,e.translate,e.scale,e.originPoint),iq(t.y,i.translate,i.scale,i.originPoint)}function iG(t,e){t.min=t.min+e,t.max=t.max+e}function iZ(t,e,i,r,s=.5){let n=eA(t.min,t.max,s);iq(t,e,i,n,r)}function iQ(t,e){iZ(t.x,e.x,e.scaleX,e.scale,e.originX),iZ(t.y,e.y,e.scaleY,e.scale,e.originY)}function iJ(t,e){return i$(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}let i0=({current:t})=>t?t.ownerDocument.defaultView:null,i1=new WeakMap;class i3{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=iN(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let r=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(iy(t).point)},s=(t,e)=>{let{drag:i,dragPropagation:r,onDragStart:s}=this.getProps();if(i&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(C[t])return null;else return C[t]=!0,()=>{C[t]=!1};return C.x||C.y?null:(C.x=C.y=!0,()=>{C.x=C.y=!1})}(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iz(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tF.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[t];r&&(e=iM(r)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&X.postRender(()=>s(t,e)),to(this.visualElement,"transform");let{animationState:n}=this.visualElement;n&&n.setActive("whileDrag",!0)},n=(t,e)=>{let{dragPropagation:i,dragDirectionLock:r,onDirectionLock:s,onDrag:n}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(r&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),n&&n(t,e)},o=(t,e)=>this.stop(t,e),a=()=>iz(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new ib(t,{onSessionStart:r,onStart:s,onMove:n,onSessionEnd:o,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:i0(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:r}=e;this.startAnimation(r);let{onDragEnd:s}=this.getProps();s&&X.postRender(()=>s(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:r}=this.getProps();if(!i||!i2(t,r,this.currentDirection))return;let s=this.getAxisMotionValue(t),n=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(n=function(t,{min:e,max:i},r){return void 0!==e&&t<e?t=r?eA(e,t,r.min):Math.max(t,e):void 0!==i&&t>i&&(t=r?eA(i,t,r.max):Math.min(t,i)),t}(n,this.constraints[t],this.elastic[t])),s.set(n)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,s=this.constraints;e&&iE(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(t,{top:e,left:i,bottom:r,right:s}){return{x:ik(t.x,i,s),y:ik(t.y,e,r)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:iL(t,"left","right"),y:iL(t,"top","bottom")}}(i),s!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&iz(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(r.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iE(e))return!1;let r=e.current;U(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;
1let n=function(t,e,i){let r=iJ(t,i),{scroll:s}=e;return s&&(iG(r.x,s.offset.x),iG(r.y,s.offset.y)),r}(r,s.root,this.visualElement.getTransformPagePoint()),o=(t=s.layout.layoutBox,{x:iO(t.x,n.x),y:iO(t.y,n.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=i$(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:r,dragTransition:s,dragSnapToOrigin:n,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(iz(o=>{if(!i2(o,e,this.currentDirection))return;let l=a&&a[o]||{};n&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return to(this.visualElement,t),i.start(ii(t,i,0,e,this.visualElement,!1))}stopAnimation(){iz(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){iz(t=>{var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.pause()})}getAnimationState(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){iz(e=>{let{drag:i}=this.getProps();if(!i2(e,i,this.currentDirection))return;let{projection:r}=this.visualElement,s=this.getAxisMotionValue(e);if(r&&r.layout){let{min:i,max:n}=r.layout.layoutBox[e];s.set(t[e]-eA(i,n,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iE(e)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};iz(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();r[t]=function(t,e){let i=.5,r=iM(t),s=iM(e);return s>r?i=T(e.min,e.max-r,t.min):r>s&&(i=T(t.min,t.max-s,e.min)),tP(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),iz(e=>{if(!i2(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:n}=this.constraints[e];i.set(eA(s,n,r[e]))})}addListeners(){if(!this.visualElement.current)return;i1.set(this.visualElement,this);let t=ix(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();iE(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),X.read(e);let s=iv(window,"resize",()=>this.scalePositionWithinConstraints()),n=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(iz(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),t(),r(),n&&n()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:s=!1,dragElastic:n=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:r,dragConstraints:s,dragElastic:n,dragMomentum:o}}}function i2(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class i5 extends ic{constructor(t){super(t),this.removeGroupControls=U,this.removeListeners=U,this.controls=new i3(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||U}unmount(){this.removeGroupControls(),this.removeListeners()}}let i4=t=>(e,i)=>{t&&X.postRender(()=>t(e,i))};class i9 extends ic{constructor(){super(...arguments),this.removePointerDownListener=U}onPointerDown(t){this.session=new ib(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:i0(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:i4(t),onStart:i4(e),onMove:i,onEnd:(t,e)=>{delete this.session,r&&X.postRender(()=>r(t,e))}}}mount(){this.removePointerDownListener=ix(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var i6,i8,i7=i(60072),rt=i(60004),re=i(30489),ri=i(82012);let rr=(0,rt.createContext)({}),rs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let ro={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!tB.test(t))return t;else t=parseFloat(t);let i=rn(t,e.target.x),r=rn(t,e.target.y);return`${i}% ${r}%`}},ra={},{schedule:rl,cancel:ru}=H(queueMicrotask,!1);class rh extends rt.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:r}=this.props,{projection:s}=t;Object.assign(ra,rc),s&&(e.group&&e.group.add(s),i&&i.register&&r&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),rs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:r,isPresent:s}=this.props,n=i.projection;return n&&(n.isPresent=s,r||t.layoutDependency!==e||void 0===e?n.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?n.promote():n.relegate()||X.postRender(()=>{let t=n.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),rl.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function rd(t){let[e,i]=(0,re.xQ)(),r=(0,rt.useContext)(ri.L);return(0,i7.jsx)(rh,{...t,layoutGroup:r,switchLayoutGroup:(0,rt.useContext)(rr),isPresent:e,safeToRemove:i})}let rc={borderRadius:{...ro,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ro,borderTopRightRadius:ro,borderBottomLeftRadius:ro,borderBottomRightRadius:ro,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let r=tZ.parse(t);if(r.length>5)return t;let s=tZ.createTransformer(t),n=+("number"!=typeof r[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;r[0+n]/=o,r[1+n]/=a;let l=eA(o,a,.5);return"number"==typeof r[2+n]&&(r[2+n]/=l),"number"==typeof r[3+n]&&(r[3+n]/=l),s(r)}}},rp=(t,e)=>t.depth-e.depth;class rm{constructor(){this.children=[],this.isDirty=!1}add(t){J(this.children,t),this.isDirty=!0}remove(t){tt(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rp),this.isDirty=!1,this.children.forEac
1h(t)}}function rf(t){let e=tn(t)?t.get():t;return e&&"object"==typeof e&&e.mix&&e.toValue?e.toValue():e}let rg=["TopLeft","TopRight","BottomLeft","BottomRight"],rv=rg.length,ry=t=>"string"==typeof t?parseFloat(t):t,rx=t=>"number"==typeof t||tB.test(t);function rw(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rb=rS(0,.5,tx),rP=rS(.5,.95,U);function rS(t,e,i){return r=>r<t?0:r>e?1:i(T(t,e,r))}function rT(t,e){t.min=e.min,t.max=e.max}function rA(t,e){rT(t.x,e.x),rT(t.y,e.y)}function rE(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function rM(t,e,i,r,s){return t-=e,t=r+1/i*(t-r),void 0!==s&&(t=r+1/s*(t-r)),t}function rC(t,e,[i,r,s],n,o){!function(t,e=0,i=1,r=.5,s,n=t,o=t){if(tF.test(e)&&(e=parseFloat(e),e=eA(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=eA(n.min,n.max,r);t===n&&(a-=e),t.min=rM(t.min,e,i,a,s),t.max=rM(t.max,e,i,a,s)}(t,e[i],e[r],e[s],e.scale,n,o)}let rV=["x","scaleX","originX"],rD=["y","scaleY","originY"];function rR(t,e,i,r){rC(t.x,e,rV,i?i.x:void 0,r?r.x:void 0),rC(t.y,e,rD,i?i.y:void 0,r?r.y:void 0)}function rj(t){return 0===t.translate&&1===t.scale}function rk(t){return rj(t.x)&&rj(t.y)}function rO(t,e){return t.min===e.min&&t.max===e.max}function rL(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rF(t,e){return rL(t.x,e.x)&&rL(t.y,e.y)}function rB(t){return iM(t.x)/iM(t.y)}function rI(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class rU{constructor(){this.members=[]}add(t){J(this.members,t),t.scheduleRender()}remove(t){if(tt(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:r}=t.options;!1===r&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let rN={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},rz="undefined"!=typeof window&&void 0!==window.MotionDebug,r$=["","X","Y","Z"],r_={visibility:"hidden"},rW=0;function rY(t,e,i,r){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),r&&(r[t]=0))}function rH({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(t={},i=null==e?void 0:e()){this.id=rW++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,rz&&(rN.totalNodes=rN.resolvedTargetDeltas=rN.recalculatedProjection=0),this.nodes.forEach(rK),this.nodes.forEach(r3),this.nodes.forEach(r2),this.nodes.forEach(rG),rz&&window.MotionDebug.record(rN)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new rm)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new te),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:r,layout:s,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(s||r)&&(this.isLayoutDirty=!0),t){let i,r=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=Q.now(),r=({timestamp:e})=>{let s=e-i;s>=250&&(q(r),t(s-250))};return X.read(r,!0),()=>q(r)}
1(r,250),rs.hasAnimatedSinceResize&&(rs.hasAnimatedSinceResize=!1,this.nodes.forEach(r1))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&n&&(r||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||n.getDefaultTransition()||r7,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!rF(this.targetLayout,r)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...v(s,"layout"),onPlay:o,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||r1(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,q(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(r5),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let r=i.props[tl];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",X,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rQ);return}this.isUpdating||this.nodes.forEach(rJ),this.isUpdating=!1,this.nodes.forEach(r0),this.nodes.forEach(rX),this.nodes.forEach(rq),this.clearAllSnapshots();let t=Q.now();K.delta=tP(0,1e3/60,t-K.timestamp),K.timestamp=t,K.isProcessing=!0,G.update.process(K),G.preRender.process(K),G.render.process(K),K.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,rl.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rZ),this.sharedNodes.forEach(r4)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,X.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){X.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=iN(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=r(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!rk(this.projectionDelta),i=this.getTransformTemplate(),r=i?i(this.latestValues,""):void 0,n=r!==this.prevTransformTemplateValue;t&&(e||iY(this.latestValues)||n)&&(s(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),r=this.removeElementScroll(i);return t&&(r=this.removeTransform(r)),si((e=r).x),si(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return iN();let i=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(ss))){let{scroll:t}=this.root;t&&(iG(i.x,t.offset.x),iG(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=iN();if(rA(i,t),null==(e=this.scroll)?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let r=this.path[e],{scroll:s,options:n}=r;r!==this.root&&s&&n.layoutScroll&&(s.wasRoot&&rA(i,t),iG(i.x,s.offset.x),iG(i.y,s.offset.y))}return i}applyTransform(t,e=!1){let i=iN();rA(i,t);for(let t=0;t<this.path.length;t++){let r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&iQ(i,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),iY(r.latestValues)&&iQ(i,r.latestValues)}return iY(this.latestValues)&&iQ(i,this.latestValues),i}removeTransform(t){let e=iN();rA(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!iY(i.latestValues))continue;iW(i.latestValues)&&i.updateSnapshot();let r=iN();rA(r,i.measurePageBox()),rR(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,r)}return iY(this.latestValues)&&rR(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==K.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,r,s;let n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isS
1haredProjectionDirty);let o=!!this.resumingFrom||this!==n;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=K.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iN(),this.relativeTargetOrigin=iN(),ij(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),rA(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=iN(),this.targetWithTransforms=iN()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,r=this.relativeTarget,s=this.relativeParent.target,iD(i.x,r.x,s.x),iD(i.y,r.y,s.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rA(this.target,this.layout.layoutBox),iK(this.target,this.targetDelta)):rA(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iN(),this.relativeTargetOrigin=iN(),ij(this.relativeTargetOrigin,this.target,t.target),rA(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}rz&&rN.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||iW(this.parent.latestValues)||iH(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(r=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===K.timestamp&&(r=!1),r)return;let{layout:s,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||n))return;rA(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,r=!1){let s,n,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){n=(s=i[a]).projectionDelta;let{visualElement:o}=s.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&iQ(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),n&&(e.x*=n.x.scale,e.y*=n.y.scale,iK(t,n)),r&&iY(s.latestValues)&&iQ(t,s.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=iN());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rE(this.prevProjectionDelta.x,this.projectionDelta.x),rE(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),iV(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&rI(this.projectionDelta.x,this.prevProjectionDelta.x)&&rI(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),rz&&rN.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null==(e=this.options.visualElement)||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=iI(),this.projectionDelta=iI(),this.projectionDeltaWithTransform=iI()}setAnimationOrigin(t,e=!1){let i,r=this.snapshot,s=r?r.latestValues:{},n={...this.latestValues},o=iI();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=iN(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(l&&!h&&
1!0===this.options.crossfade&&!this.path.some(r8));this.animationProgress=0,this.mixTargetDelta=e=>{let r=e/1e3;if(r9(o.x,t.x,r),r9(o.y,t.y,r),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,m,f,g;ij(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,g=r,r6(p.x,m.x,f.x,g),r6(p.y,m.y,f.y,g),i&&(u=this.relativeTarget,c=i,rO(u.x,c.x)&&rO(u.y,c.y))&&(this.isProjectionDirty=!1),i||(i=iN()),rA(i,this.relativeTarget)}l&&(this.animationValues=n,function(t,e,i,r,s,n){s?(t.opacity=eA(0,void 0!==i.opacity?i.opacity:1,rb(r)),t.opacityExit=eA(void 0!==e.opacity?e.opacity:1,0,rP(r))):n&&(t.opacity=eA(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,r));for(let s=0;s<rv;s++){let n=`border${rg[s]}Radius`,o=rw(e,n),a=rw(i,n);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||rx(o)===rx(a)?(t[n]=Math.max(eA(ry(o),ry(a),r),0),(tF.test(a)||tF.test(o))&&(t[n]+="%")):t[n]=a)}(e.rotate||i.rotate)&&(t.rotate=eA(e.rotate||0,i.rotate||0,r))}(n,s,this.latestValues,r,d,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(q(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=X.update(()=>{rs.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,i){let r=tn(0)?0:ts(t);return r.start(ii("",r,1e3,i)),r.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:r,latestValues:s}=t;if(e&&i&&r){if(this!==t&&this.layout&&r&&sr(this.options.animationType,this.layout.layoutBox,r.layoutBox)){i=this.target||iN();let e=iM(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let r=iM(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+r}rA(e,i),iQ(e,s),iV(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rU),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let r=this.getStack();r&&r.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let r={};i.z&&rY("z",t,r,this.animationValues);for(let e=0;e<r$.length;e++)rY(`rotate${r$[e]}`,t,r,this.animationValues),rY(`skew${r$[e]}`,t,r,this.animationValues);for(let e in t.render(),r)t.setStaticValue(e,r[e]),this.animationValues&&(this.animationValues[e]=r[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return r_;let r={visibility:""},s=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=rf(null==t?void 0:t.pointerEvents)||"",r.transform=s?s(this.latestValues,""):"none",r;let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=rf(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!iY(this.latestValues)&&(e.transform=s?s({},""):"none",this.hasProjected=!1),e}let o=n.animationValues||n.latestValues;
1this.applyTransformsToTarget(),r.transform=function(t,e,i){let r="",s=t.x.translate/e.x,n=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((s||n||o)&&(r=`translate3d(${s}px, ${n}px, ${o}px) `),(1!==e.x||1!==e.y)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:s,rotateY:n,skewX:o,skewY:a}=i;t&&(r=`perspective(${t}px) ${r}`),e&&(r+=`rotate(${e}deg) `),s&&(r+=`rotateX(${s}deg) `),n&&(r+=`rotateY(${n}deg) `),o&&(r+=`skewX(${o}deg) `),a&&(r+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),s&&(r.transform=s(o,r.transform));let{x:a,y:l}=this.projectionDelta;for(let t in r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,n.animationValues?r.opacity=n===this?null!=(i=null!=(e=o.opacity)?e:this.latestValues.opacity)?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:r.opacity=n===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,ra){if(void 0===o[t])continue;let{correct:e,applyTo:i}=ra[t],s="none"===r.transform?o[t]:e(o[t],n);if(i){let t=i.length;for(let e=0;e<t;e++)r[i[e]]=s}else r[t]=s}return this.options.layoutId&&(r.pointerEvents=n===this?rf(null==t?void 0:t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(rQ),this.root.sharedNodes.clear()}}}function rX(t){t.updateLayout()}function rq(t){var e;let i=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:r}=t.layout,{animationType:s}=t.options,n=i.source!==t.layout.source;"size"===s?iz(t=>{let r=n?i.measuredBox[t]:i.layoutBox[t],s=iM(r);r.min=e[t].min,r.max=r.min+s}):sr(s,i.layoutBox,e)&&iz(r=>{let s=n?i.measuredBox[r]:i.layoutBox[r],o=iM(e[r]);s.max=s.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+o)});let o=iI();iV(o,e,i.layoutBox);let a=iI();n?iV(a,t.applyTransform(r,!0),i.measuredBox):iV(a,e,i.layoutBox);let l=!rk(o),u=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:s,layout:n}=r;if(s&&n){let o=iN();ij(o,i.layoutBox,s.layoutBox);let a=iN();ij(a,e,n.layoutBox),rF(o,a)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function rK(t){rz&&rN.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function rG(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function rZ(t){t.clearSnapshot()}function rQ(t){t.clearMeasurements()}function rJ(t){t.isLayoutDirty=!1}function r0(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function r1(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function r3(t){t.resolveTargetDelta()}function r2(t){t.calcProjection()}function r5(t){t.resetSkewAndRotation()}function r4(t){t.removeLeadSnapshot()}function r9(t,e,i){t.translate=eA(e.translate,0,i),t.scale=eA(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function r6(t,e,i,r){t.min=eA(e.min,i.min,r),t.max=eA(e.max,i.max,r)}function r8(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let r7={duration:.45,ease:[.4,0,.1,1]},st=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),se=st("applewebkit/")&&!st("chrome/")?Math.round:U;function si(t){t.min=se(t.min),t.max=se(t.max)}function sr(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(rB(e)-rB(i)))}function ss(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}let sn=rH({attachResizeListener:(t,e)=>iv(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),so={current:void 0},sa=rH({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!so.current){let t=new sn({});t.mount(window),t.setOptions({layoutScroll:!0}),so.current=t}return so.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function sl(t,e,i){let{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=r["onHover"+i];s&&X.postRender(()=>s(e,iy(e)))}class su extends ic{mount(){let{current:t}=this.node;
1t&&(this.unmount=function(t,e,i={}){let[r,s,n]=V(t,i),o=D(t=>{let{target:i}=t,r=e(t);if("function"!=typeof r||!i)return;let n=D(t=>{r(t),i.removeEventListener("pointerleave",n)});i.addEventListener("pointerleave",n,s)});return r.forEach(t=>{t.addEventListener("pointerenter",o,s)}),n}(t,t=>(sl(this.node,t,"Start"),t=>sl(this.node,t,"End"))))}unmount(){}}class sh extends ic{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ek(iv(this.node.current,"focus",()=>this.onFocus()),iv(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function sd(t,e,i){let{props:r}=t;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=r["onTap"+("End"===i?"":i)];s&&X.postRender(()=>s(e,iy(e)))}class sc extends ic{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[r,s,n]=V(t,i),o=t=>{let r=t.currentTarget;if(!B(t)||O.has(r))return;O.add(r);let n=e(t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),B(t)&&O.has(r)&&(O.delete(r),"function"==typeof n&&n(t,{success:e}))},a=t=>{o(t,i.useGlobalTarget||R(r,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return r.forEach(t=>{k.has(t.tagName)||-1!==t.tabIndex||null!==t.getAttribute("tabindex")||(t.tabIndex=0),(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,s),t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let r=L(()=>{if(O.has(i))return;F(i,"down");let t=L(()=>{F(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>F(i,"cancel"),e)});i.addEventListener("keydown",r,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",r),e)})(t,s),s)}),n}(t,t=>(sd(this.node,t,"Start"),(t,{success:e})=>sd(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let sp=new WeakMap,sm=new WeakMap,sf=t=>{let e=sp.get(t.target);e&&e(t)},sg=t=>{t.forEach(sf)},sv={some:0,all:1};class sy extends ic{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:r="some",once:s}=t,n={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof r?r:sv[r]},o=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,s&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:r}=this.node.getProps(),n=e?i:r;n&&n(t)};var a=this.node.current;let l=function({root:t,...e}){let i=t||document;sm.has(i)||sm.set(i,{});let r=sm.get(i),s=JSON.stringify(e);return r[s]||(r[s]=new IntersectionObserver(sg,{root:t,...e})),r[s]}(n);return sp.set(a,o),l.observe(a),()=>{sp.delete(a),l.unobserve(a)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let sx=(0,rt.createContext)({strict:!1});var sw=i(47891);let sb=(0,rt.createContext)({});function sP(t){return s(t.animate)||c.some(e=>a(t[e]))}function sS(t){return!!(sP(t)||t.variants)}function sT(t){return Array.isArray(t)?t.join(" "):t}var sA=i(5505);let sE={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"]},sM={};for(let t in sE)sM[t]={isEnabled:e=>sE[t].some(t=>!!e[t])};let sC=Symbol.for("motionComponentSymbol");var sV=i(33022),sD=i(93649);let sR=["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 sj(t){if("string"!=typeof t||t.includes("-"));else if(sR.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var sk=i(31412);let sO=t=>(e,i)=>{let r=(0,rt.useContext)(sb),n=(0,rt.useContext)(sV.t),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:i}
1,r,n,o){let a={latestValues:function(t,e,i,r){let n={},o=r(t,{});for(let t in o)n[t]=rf(o[t]);let{initial:a,animate:l}=t,h=sP(t),d=sS(t);e&&d&&!h&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));let c=!!i&&!1===i.initial,p=(c=c||!1===a)?l:a;if(p&&"boolean"!=typeof p&&!s(p)){let e=Array.isArray(p)?p:[p];for(let i=0;i<e.length;i++){let r=u(t,e[i]);if(r){let{transitionEnd:t,transition:e,...i}=r;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(n[t]=e)}for(let e in t)n[e]=t[e]}}}return n}(r,n,o,t),renderState:e()};return i&&(a.onMount=t=>i({props:r,current:t,...a}),a.onUpdate=t=>i(t)),a})(t,e,r,n);return i?o():(0,sk.M)(o)},sL=(t,e)=>e&&"number"==typeof t?e.transform(t):t,sF={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},sB=N.length;function sI(t,e,i){let{style:r,vars:s,transformOrigin:n}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(z.has(t)){o=!0;continue}if(ec(t)){s[t]=i;continue}{let e=sL(i,t2[t]);t.startsWith("origin")?(a=!0,n[t]=e):r[t]=e}}if(!e.transform&&(o||i?r.transform=function(t,e,i){let r="",s=!0;for(let n=0;n<sB;n++){let o=N[n],a=t[o];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===+!!o.startsWith("scale"):0===parseFloat(a))||i){let t=sL(a,t2[o]);if(!l){s=!1;let e=sF[o]||o;r+=`${e}(${t}) `}i&&(e[o]=t)}}return r=r.trim(),i?r=i(e,s?"":r):s&&(r="none"),r}(e,t.transform,i):r.transform&&(r.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=n;r.transformOrigin=`${t} ${e} ${i}`}}let sU={offset:"stroke-dashoffset",array:"stroke-dasharray"},sN={offset:"strokeDashoffset",array:"strokeDasharray"};function sz(t,e,i){return"string"==typeof t?t:tB.transform(e+i*t)}function s$(t,{attrX:e,attrY:i,attrScale:r,originX:s,originY:n,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},h,d){if(sI(t,u,d),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:p,dimensions:m}=t;c.transform&&(m&&(p.transform=c.transform),delete c.transform),m&&(void 0!==s||void 0!==n||p.transform)&&(p.transformOrigin=function(t,e,i){let r=sz(e,t.x,t.width),s=sz(i,t.y,t.height);return`${r} ${s}`}(m,void 0!==s?s:.5,void 0!==n?n:.5)),void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==r&&(c.scale=r),void 0!==o&&function(t,e,i=1,r=0,s=!0){t.pathLength=1;let n=s?sU:sN;t[n.offset]=tB.transform(-r);let o=tB.transform(e),a=tB.transform(i);t[n.array]=`${o} ${a}`}(c,o,a,l,!1)}let s_=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),sW=()=>({...s_(),attrs:{}}),sY=t=>"string"==typeof t&&"svg"===t.toLowerCase();function sH(t,{style:e,vars:i},r,s){for(let n in Object.assign(t.style,e,s&&s.getProjectionStyles(r)),i)t.style.setProperty(n,i[n])}let sX=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function sq(t,e,i,r){for(let i in sH(t,e,void 0,r),e.attrs)t.setAttribute(sX.has(i)?i:ta(i),e.attrs[i])}function sK(t,{layout:e,layoutId:i}){return z.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!ra[t]||"opacity"===t)}function sG(t,e,i){var r;let{style:s}=t,n={};for(let o in s)(tn(s[o])||e.style&&tn(e.style[o])||sK(o,t)||(null==(r=null==i?void 0:i.getValue(o))?void 0:r.liveStyle)!==void 0)&&(n[o]=s[o]);return n}function sZ(t,e,i){let r=sG(t,e,i);for(let i in t)(tn(t[i])||tn(e[i]))&&(r[-1!==N.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return r}let sQ=["x","y","width","height","cx","cy","r"],sJ={useVisualState:sO({scrapeMotionValuesFromProps:sZ,createRenderState:sW,onUpdate:({props:t,prevProps:e,current:i,renderState:r,latestValues:s})=>{if(!i)return;let n=!!t.drag;if(!n){for(let t in s)if(z.has(t)){n=!0;break}}if(!n)return;let o=!e;if(e)for(let i=0;i<sQ.length;i++){let r=sQ[i];t[r]!==e[r]&&(o=!0)}o&&X.read(()=>{!function(t,e){try{e.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(t){e.dimensions={x:0,y:0,width:0,height:0}}}(i,r),X.render(()=>{s$(r,s,sY(i.tagName),t.transformTemplate),sq(i,r)})})}})},s0={useVisualState:sO({scrapeMotionValuesFromProps:sG,createRenderState:s_})};function s1(t,e,i){for(let r in e)tn(e[r])||sK(r,i)||(t[r]=e[r])}let s3=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 s2(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||s3.has(t)}let s5=t=>!s2(t);try{!function(t){t&&(s5=e=>e.startsWith("on")?!s2(e):t(e))}(require("@emotion/is-prop-valid").default)}catch(t){}let s4={current:null},s9={current:!1},s6=[...ey,t$,tZ],s8=new WeakMap,s7=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];
1class nt{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:s,visualState:n},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=eu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=Q.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,X.render(this.render,!1,!0))};let{latestValues:a,renderState:l,onUpdate:u}=n;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=sP(e),this.isVariantNode=sS(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:h,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in d){let e=d[t];void 0!==a[t]&&tn(e)&&e.set(a[t],!1)}}mount(t){this.current=t,s8.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),s9.current||function(){if(s9.current=!0,sA.B)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>s4.current=t.matches;t.addListener(e),e()}else s4.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||s4.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in s8.delete(this.current),this.projection&&this.projection.unmount(),q(this.notifyUpdate),q(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let r=z.has(t),s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&X.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),n=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),n(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in sM){let e=sM[t];if(!e)continue;let{isEnabled:i,Feature:r}=e;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):iN()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<s7.length;e++){let i=s7[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let r=t["on"+i];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=function(t,e,i){for(let r in e){let s=e[r],n=i[r];if(tn(s))t.addValue(r,s);else if(tn(n))t.addValue(r,ts(s,{owner:t}));else if(n!==s)if(t.hasValue(r)){let e=t.getValue(r);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(r);t.addValue(r,ts(void 0!==e?e:s,{owner:t}))}}for(let r in i)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
1addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=ts(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let r=void 0===this.latestValues[t]&&this.current?null!=(i=this.getBaseTargetFromProps(this.props,t))?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=r){if("string"==typeof r&&(eh(r)||tb(r)))r=parseFloat(r);else{let i;i=r,!s6.find(ev(i))&&tZ.test(e)&&(r=t9(t,e))}this.setBaseTarget(t,tn(r)?r.get():r)}return tn(r)?r.get():r}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let s=u(this.props,r,null==(e=this.presenceContext)?void 0:e.custom);s&&(i=s[t])}if(r&&void 0!==i)return i;let s=this.getBaseTargetFromProps(this.props,t);return void 0===s||tn(s)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new te),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class ne extends nt{constructor(){super(...arguments),this.KeyframeResolver=ew}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;tn(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class ni extends ne{constructor(){super(...arguments),this.type="html",this.renderInstance=sH}readValueFromInstance(t,e){if(z.has(e)){let t=t4(e);return t&&t.default||0}{let i=window.getComputedStyle(t),r=(ec(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return iJ(t,e)}build(t,e,i){sI(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return sG(t,e,i)}}class nr extends ne{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=iN}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(z.has(e)){let t=t4(e);return t&&t.default||0}return e=sX.has(e)?e:ta(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return sZ(t,e,i)}build(t,e,i){s$(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,r){sq(t,e,i,r)}mount(t){this.isSVGTag=sY(t.tagName),super.mount(t)}}let ns=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,r)=>"create"===r?t:(e.has(r)||e.set(r,t(r)),e.get(r))})}((i6={animation:{Feature:ip},exit:{Feature:ig},inView:{Feature:sy},tap:{Feature:sc},focus:{Feature:sh},hover:{Feature:su},pan:{Feature:i9},drag:{Feature:i5,ProjectionNode:sa,MeasureLayout:rd},layout:{ProjectionNode:sa,MeasureLayout:rd}},i8=(t,e)=>sj(t)?new nr(e):new ni(e,{allowProjection:t!==rt.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:r,Component:s}){var n,o;function l(t,n){var o;let l,u={...(0,rt.useContext)(sw.Q),...t,layoutId:function({layoutId:t}){let e=(0,rt.useContext)(ri.L).id;return e&&void 0!==t?e+"-"+t:t}(t)},{isStatic:h}=u,d=function(t){let{initial:e,animate:i}=function(t,e){if(sP(t)){let{initial:e,animate:i}=t;return{initial:!1===e||a(e)?e:void 0,animate:a(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,rt.useContext)(sb));return(0,rt.useMemo)(()=>({initial:e,animate:i}),[sT(e),sT(i)])}
1(t),c=r(t,h);if(!h&&sA.B){(0,rt.useContext)(sx).strict;let t=function(t){let{drag:e,layout:i}=sM;if(!e&&!i)return{};let r={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(u);l=t.MeasureLayout,d.visualElement=function(t,e,i,r,s){var n,o;let{visualElement:a}=(0,rt.useContext)(sb),l=(0,rt.useContext)(sx),u=(0,rt.useContext)(sV.t),h=(0,rt.useContext)(sw.Q).reducedMotion,d=(0,rt.useRef)(null);r=r||l.renderer,!d.current&&r&&(d.current=r(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h}));let c=d.current,p=(0,rt.useContext)(rr);c&&!c.projection&&s&&("html"===c.type||"svg"===c.type)&&function(t,e,i,r){let{layoutId:s,layout:n,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:s,layout:n,alwaysMeasureLayout:!!o||a&&iE(a),visualElement:t,animationType:"string"==typeof n?n:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}(d.current,i,s,p);let m=(0,rt.useRef)(!1);(0,rt.useInsertionEffect)(()=>{c&&m.current&&c.update(i,u)});let f=i[tl],g=(0,rt.useRef)(!!f&&!(null==(n=window.MotionHandoffIsComplete)?void 0:n.call(window,f))&&(null==(o=window.MotionHasOptimisedAnimation)?void 0:o.call(window,f)));return(0,sD.E)(()=>{c&&(m.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),rl.render(c.render),g.current&&c.animationState&&c.animationState.animateChanges())}),(0,rt.useEffect)(()=>{c&&(!g.current&&c.animationState&&c.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var t;null==(t=window.MotionHandoffMarkAsComplete)||t.call(window,f)}),g.current=!1))}),c}(s,c,u,e,t.ProjectionNode)}return(0,i7.jsxs)(sb.Provider,{value:d,children:[l&&d.visualElement?(0,i7.jsx)(l,{visualElement:d.visualElement,...u}):null,i(s,t,(o=d.visualElement,(0,rt.useCallback)(t=>{t&&c.onMount&&c.onMount(t),o&&(t?o.mount(t):o.unmount()),n&&("function"==typeof n?n(t):iE(n)&&(n.current=t))},[o])),c,h,d.visualElement)]})}t&&function(t){for(let e in t)sM[e]={...sM[e],...t[e]}}(t),l.displayName=`motion.${"string"==typeof s?s:`create(${null!=(o=null!=(n=s.displayName)?n:s.name)?o:""})`}`;let u=(0,rt.forwardRef)(l);return u[sC]=s,u}({...sj(t)?sJ:s0,preloadedFeatures:i6,useRender:function(t=!1){return(e,i,r,{latestValues:s},n)=>{let o=(sj(e)?function(t,e,i,r){let s=(0,rt.useMemo)(()=>{let i=sW();return s$(i,e,sY(r),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};s1(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i={},r=function(t,e){let i=t.style||{},r={};return s1(r,i,t),Object.assign(r,function({transformTemplate:t},e){return(0,rt.useMemo)(()=>{let i=s_();return sI(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),r}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=r,i})(i,s,n,e),a=function(t,e,i){let r={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&(s5(s)||!0===i&&s2(s)||!e&&!s2(s)||t.draggable&&s.startsWith("onDrag"))&&(r[s]=t[s]);return r}(i,"string"==typeof e,t),l=e!==rt.Fragment?{...a,...o,ref:r}:{},{children:u}=i,h=(0,rt.useMemo)(()=>tn(u)?u.get():u,[u]);return(0,rt.createElement)(e,{...l,children:h})}}(e),createVisualElement:i8,Component:t})}))},13136:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),!function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{default:function(){return l},getImageProps:function(){return a}});let r=i(75355),s=i(43340),n=i(39360),o=r._(i(44248));function a(t){let{props:e}=(0,s.getImgProps)(t,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[t,i]of Object.entries(e))void 0===i&&delete e[t];return{props:e}}let l=n.Image},27872:(t,e,i)=>{"use strict";i.d(e,{N:()=>v});var r=i(60072),s=i(60004),n=i(82012),o=i(31412),a=i(33022),l=i(47891);class u extends s.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function h({children:t,isPresent:e}){let i=(0,s.useId)(),n=(0,s.useRef)(null),o=(0,s.useRef)({width:0,height:0,top:0,left:0}),{nonce:a}=(0,s.useContext)(l.Q);return(0,s.useInsertionEffect)(()=>{let{width:t,height:r,top:s,left:l}=o.current;if(e||!n.current||!t||!r)return;n.current.dataset.motionPopId=i;let u=document.createElement("style");return a&&(u.nonce=a),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` 2 [data-motion-pop-id="${i}"] { 3 position: absolute !important; 4 width: ${t}px !important; 5 height: ${r}px !important; 6 top: ${s}px !important; 7 left: ${l}px !important; 8 } 9 `),()=>{document.head.removeChild(u)}},[e]),(0,r.jsx)(u,{isPresent:e,childRef:n,sizeRef:o,children:s.cloneElement(t,{ref:n})})}let d=({children:t,initial:e,isPresent:i,onExitComplete:n,custom:l,presenceAffectsLayout:u,mode:d})=>{let p=(0,o.M)(c),m=(0,s.useId)(),f=(0,s.useCallback)(t=>
9{for(let e of(p.set(t,!0),p.values()))if(!e)return;n&&n()},[p,n]),g=(0,s.useMemo)(()=>({id:m,initial:e,isPresent:i,custom:l,onExitComplete:f,register:t=>(p.set(t,!1),()=>p.delete(t))}),u?[Math.random(),f]:[i,f]);return(0,s.useMemo)(()=>{p.forEach((t,e)=>p.set(e,!1))},[i]),s.useEffect(()=>{i||p.size||!n||n()},[i]),"popLayout"===d&&(t=(0,r.jsx)(h,{isPresent:i,children:t})),(0,r.jsx)(a.t.Provider,{value:g,children:t})};function c(){return new Map}var p=i(30489);let m=t=>t.key||"";function f(t){let e=[];return s.Children.forEach(t,t=>{(0,s.isValidElement)(t)&&e.push(t)}),e}var g=i(93649);let v=({children:t,custom:e,initial:i=!0,onExitComplete:a,presenceAffectsLayout:l=!0,mode:u="sync",propagate:h=!1})=>{let[c,v]=(0,p.xQ)(h),y=(0,s.useMemo)(()=>f(t),[t]),x=h&&!c?[]:y.map(m),w=(0,s.useRef)(!0),b=(0,s.useRef)(y),P=(0,o.M)(()=>new Map),[S,T]=(0,s.useState)(y),[A,E]=(0,s.useState)(y);(0,g.E)(()=>{w.current=!1,b.current=y;for(let t=0;t<A.length;t++){let e=m(A[t]);x.includes(e)?P.delete(e):!0!==P.get(e)&&P.set(e,!1)}},[A,x.length,x.join("-")]);let M=[];if(y!==S){let t=[...y];for(let e=0;e<A.length;e++){let i=A[e],r=m(i);x.includes(r)||(t.splice(e,0,i),M.push(i))}"wait"===u&&M.length&&(t=M),E(f(t)),T(y);return}let{forceRender:C}=(0,s.useContext)(n.L);return(0,r.jsx)(r.Fragment,{children:A.map(t=>{let s=m(t),n=(!h||!!c)&&(y===A||x.includes(s));return(0,r.jsx)(d,{isPresent:n,initial:(!w.current||!!i)&&void 0,custom:n?void 0:e,presenceAffectsLayout:l,mode:u,onExitComplete:n?void 0:()=>{if(!P.has(s))return;P.set(s,!0);let t=!0;P.forEach(e=>{e||(t=!1)}),t&&(null==C||C(),E(b.current),h&&(null==v||v()),a&&a())},children:t},s)})})}},30489:(t,e,i)=>{"use strict";i.d(e,{xQ:()=>n});var r=i(60004),s=i(33022);function n(t=!0){let e=(0,r.useContext)(s.t);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:o,register:a}=e,l=(0,r.useId)();(0,r.useEffect)(()=>{t&&a(l)},[t]);let u=(0,r.useCallback)(()=>t&&o&&o(l),[l,o,t]);return!i&&o?[!1,u]:[!0]}},31412:(t,e,i)=>{"use strict";i.d(e,{M:()=>s});var r=i(60004);function s(t){let e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}},33022:(t,e,i)=>{"use strict";i.d(e,{t:()=>r});let r=(0,i(60004).createContext)(null)},39360:(t,e,i)=>{"use strict";var r=i(17723),s=i(64443);let n=["src","srcSet","sizes","height","width","decoding","className","style","fetchPriority","placeholder","loading","unoptimized","fill","onLoadRef","onLoadingCompleteRef","setBlurComplete","setShowAltText","sizesInput","onLoad","onError"];function o(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,r)}return i}function a(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?o(Object(i),!0).forEach(function(e){s(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return A}});let l=i(75355),u=i(32440),h=i(60072),d=u._(i(60004)),c=l._(i(33785)),p=l._(i(90633)),m=i(43340),f=i(22765),g=i(7683);i(96933);let v=i(63670),y=l._(i(44248)),x=i(41551),w={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function b(t,e,i,r,s,n,o){let l=null==t?void 0:t.src;t&&t["data-loaded-src"]!==l&&(t["data-loaded-src"]=l,("decode"in t?t.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(t.parentElement&&t.isConnected){if("empty"!==e&&s(!0),null==i?void 0:i.current){let e=new Event("load");Object.defineProperty(e,"target",{writable:!1,value:t});let r=!1,s=!1;i.current(a(a({},e),{},{nativeEvent:e,currentTarget:t,target:t,isDefaultPrevented:()=>r,isPropagationStopped:()=>s,persist:()=>{},preventDefault:()=>{r=!0,e.preventDefault()},stopPropagation:()=>{s=!0,e.stopPropagation()}}))}(null==r?void 0:r.current)&&r.current(t)}}))}function P(t){return d.use?{fetchPriority:t}:{fetchpriority:t}}let S=(0,d.forwardRef)((t,e)=>{let{src:i,srcSet:s,sizes:o,height:l,width:u,decoding:c,className:p,style:m,fetchPriority:f,placeholder:g,loading:v,unoptimized:y,fill:w,onLoadRef:S,onLoadingCompleteRef:T,setBlurComplete:A,setShowAltText:E,sizesInput:M,onLoad:C,onError:V}=t,D=r(t,n),R=(0,d.useCallback)(t=>{t&&(V&&(t.src=t.src),t.complete&&b(t,g,S,T,A,y,M))},[i,g,S,T,A,V,y,M]),j=(0,x.useMergedRef)(e,R);return(0,h.jsx)("img",a(a(a({},D),P(f)),{},{loading:v,width:u,height:l,decoding:c,"data-nimg":w?"fill":"1",className:p,style:m,sizes:o,srcSet:s,src:i,ref:j,onLoad:t=>{b(t.currentTarget,g,S,T,A,y,M)},onError:t=>{E(!0),"empty"!==g&&A(!0),V&&V(t)}}))});function T(t){let{isAppRouter:e,imgAttributes:i}=t,r=a({as:"image",imageSrcSet:i.srcSet,imageSizes:i.sizes,crossOrigin:i.crossOrigin,referrerPolicy:i.referrerPolicy},P(i.fetchPriority));return e&&c.default.preload?(c.default.preload(i.src,r),null):(0,h.jsx)(p.default,{children:(0,h.jsx)("link",a({rel:"preload",href:i.srcSet?void 0:i.src},r),"__nimg-"+i.src+i.srcSet+i.sizes)})}let A=(0,d.forwardRef)((t,e)=>{let i=(0,d.useContext)(v.RouterContext),r=(0,d.useContext)(g.ImageConfigContext),s=(0,d.useMemo)(()=>{var t;let e=w||r||f.imageConfigDefault,i=[...e.deviceSizes,...e.imageSizes].sort((t,e)=>t-e),s=e.deviceSizes.sort((t,e)=>t-e),n=null==(t=e.qualities)?void 0:t.sort((t,e)=>t-e);return a(a({},e),{},{allSizes:i,deviceSizes:s,qualities:n})},[r]),{onLoad:n,onLoadingComplete:o}=t,l=(0,d.useRef)(n);(0,d.useEffect)(()=>{l.current=n},[n]);let u=(0,d.useRef)(o);(0,d.useEffect)(()=>{u.current=o},[o]);let[c,p]=(0,d.useState)(!1),[x,b]=(0,d.useState)(!1),{props:P,meta:A}=(0,m.getImgProps)(t,{defaultLoader:y.default,imgConf:s,blurComplete:c,showAltText:x});return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(S,a(a({},P),{},{unoptimized:A.unoptimized,placeholder:A.placeholder,fill:A.fill,onLoadRef:l,onLoadingCompleteRef:u,setBlurComplete:p,setShowAltText:b,sizesInput:t.sizes,ref:e})),A.priority?(0,h.jsx)(T,{isAppRouter:!i,imgAttributes:P}):null]})});("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esMo
9dule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},43340:(t,e,i)=>{"use strict";var r=i(64443),s=i(17723);let n=["src","sizes","unoptimized","priority","loading","className","quality","width","height","fill","style","overrideSrc","onLoad","onLoadingComplete","placeholder","blurDataURL","fetchPriority","decoding","layout","objectFit","objectPosition","lazyBoundary","lazyRoot"],o=["config"];function a(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,r)}return i}function l(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?a(Object(i),!0).forEach(function(e){r(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return m}}),i(96933);let u=i(86729),h=i(22765),d=["-moz-initial","fill","none","scale-down",void 0];function c(t){return void 0!==t.default}function p(t){return void 0===t?t:"number"==typeof t?Number.isFinite(t)?t:NaN:"string"==typeof t&&/^[0-9]+$/.test(t)?parseInt(t,10):NaN}function m(t,e){var i,r;let a,m,f,{src:g,sizes:v,unoptimized:y=!1,priority:x=!1,loading:w,className:b,quality:P,width:S,height:T,fill:A=!1,style:E,overrideSrc:M,onLoad:C,onLoadingComplete:V,placeholder:D="empty",blurDataURL:R,fetchPriority:j,decoding:k="async",layout:O,objectFit:L,objectPosition:F,lazyBoundary:B,lazyRoot:I}=t,U=s(t,n),{imgConf:N,showAltText:z,blurComplete:$,defaultLoader:_}=e,W=N||h.imageConfigDefault;if("allSizes"in W)a=W;else{let t=[...W.deviceSizes,...W.imageSizes].sort((t,e)=>t-e),e=W.deviceSizes.sort((t,e)=>t-e),r=null==(i=W.qualities)?void 0:i.sort((t,e)=>t-e);a=l(l({},W),{},{allSizes:t,deviceSizes:e,qualities:r})}if(void 0===_)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let Y=U.loader||_;delete U.loader,delete U.srcSet;let H="__next_img_default"in Y;if(H){if("custom"===a.loader)throw Object.defineProperty(Error('Image with src "'+g+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let t=Y;Y=e=>{let{config:i}=e;return t(s(e,o))}}if(O){"fill"===O&&(A=!0);let t={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[O];t&&(E=l(l({},E),t));let e={responsive:"100vw",fill:"100vw"}[O];e&&!v&&(v=e)}let X="",q=p(S),K=p(T),G=!1;if((r=g)&&"object"==typeof r&&(c(r)||void 0!==r.src)){let t=c(g)?g.default:g;if(!t.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(t)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(t)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(m=t.blurWidth,f=t.blurHeight,R=R||t.blurDataURL,X=t.src,G=/\.avif(?:\?|$)/i.test(X),!A)if(q||K){if(q&&!K){let e=q/t.width;K=Math.round(t.height*e)}else if(!q&&K){let e=K/t.height;q=Math.round(t.width*e)}}else q=t.width,K=t.height}G&&"blur"===D&&!R&&(D="empty");let Z=!x&&("lazy"===w||void 0===w);(!(g="string"==typeof g?g:X)||g.startsWith("data:")||g.startsWith("blob:"))&&(y=!0,Z=!1),a.unoptimized&&(y=!0),H&&!a.dangerouslyAllowSVG&&g.split("?",1)[0].endsWith(".svg")&&(y=!0);let Q=p(P),J=Object.assign(A?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:L,objectPosition:F}:{},z?{}:{color:"transparent"},E),tt=$||"empty"===D?null:"blur"===D?'url("data:image/svg+xml;charset=utf-8,'+(0,u.getImageBlurSvg)({widthInt:q,heightInt:K,blurWidth:m,blurHeight:f,blurDataURL:R||"",objectFit:J.objectFit})+'")':'url("'+D+'")',te=d.includes(J.objectFit)?"fill"===J.objectFit?"100% 100%":"cover":J.objectFit,ti=tt?{backgroundSize:te,backgroundPosition:J.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:tt}:{},tr=function(t){let{config:e,src:i,unoptimized:r,width:s,quality:n,sizes:o,loader:a}=t;if(r)return{src:i,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}
9=function(t,e,i){let{deviceSizes:r,allSizes:s}=t;if(i){let t=/(^|\s)(1?\d?\d)vw/g,e=[];for(let r;r=t.exec(i);)e.push(parseInt(r[2]));if(e.length){let t=.01*Math.min(...e);return{widths:s.filter(e=>e>=r[0]*t),kind:"w"}}return{widths:s,kind:"w"}}return"number"!=typeof e?{widths:r,kind:"w"}:{widths:[...new Set([e,2*e].map(t=>s.find(e=>e>=t)||s[s.length-1]))],kind:"x"}}(e,s,o),h=l.length-1;return{sizes:o||"w"!==u?o:"100vw",srcSet:l.map((t,r)=>a({config:e,src:i,quality:n,width:t})+" "+("w"===u?t:r+1)+u).join(", "),src:a({config:e,src:i,quality:n,width:l[h]})}}({config:a,src:g,unoptimized:y,width:q,quality:Q,sizes:v,loader:Y});return{props:l(l({},U),{},{loading:Z?"lazy":w,fetchPriority:j,width:q,height:K,decoding:k,className:b,style:l(l({},J),ti),sizes:tr.sizes,srcSet:tr.srcSet,src:M||tr.src}),meta:{unoptimized:y,priority:x,placeholder:D,fill:A}}}},44248:(t,e)=>{"use strict";function i(t){var e;let{config:i,src:r,width:s,quality:n}=t,o=n||(null==(e=i.qualities)?void 0:e.reduce((t,e)=>Math.abs(e-75)<Math.abs(t-75)?e:t))||75;return i.path+"?url="+encodeURIComponent(r)+"&w="+s+"&q="+o+(r.startsWith("/_next/static/media/"),"")}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}}),i.__next_img_default=!0;let r=i},47891:(t,e,i)=>{"use strict";i.d(e,{Q:()=>r});let r=(0,i(60004).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},63191:(t,e,i)=>{t.exports=i(13136)},82012:(t,e,i)=>{"use strict";i.d(e,{L:()=>r});let r=(0,i(60004).createContext)({})},86729:(t,e)=>{"use strict";function i(t){let{widthInt:e,heightInt:i,blurWidth:r,blurHeight:s,blurDataURL:n,objectFit:o}=t,a=r?40*r:e,l=s?40*s:i,u=a&&l?"viewBox='0 0 "+a+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+n+"'/%3E%3C/svg%3E"}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return i}})},93649:(t,e,i)=>{"use strict";i.d(e,{E:()=>s});var r=i(60004);let s=i(5505).B?r.useLayoutEffect:r.useEffect}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.