1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[289],{7471:(t,e,i)=>{"use strict";i.d(e,{Q:()=>n});let n=(0,i(12115).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},11518:(t,e,i)=>{"use strict";t.exports=i(82269).style},14442:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var n=(0,i(86467).A)("outline","arrow-narrow-left","IconArrowNarrowLeft",[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M5 12l4 4",key:"svg-1"}],["path",{d:"M5 12l4 -4",key:"svg-2"}]])},14905:(t,e,i)=>{"use strict";i.d(e,{xQ:()=>r});var n=i(12115),s=i(50430);function r(t=!0){let e=(0,n.useContext)(s.t);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:o,register:a}=e,l=(0,n.useId)();(0,n.useEffect)(()=>{if(t)return a(l)},[t]);let u=(0,n.useCallback)(()=>t&&o&&o(l),[l,o,t]);return!i&&o?[!1,u]:[!0]}},35038:(t,e,i)=>{"use strict";let n;function s(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function r(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function o(t,e,i,n){if("function"==typeof e){let[s,o]=r(n);e=e(void 0!==i?i:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,o]=r(n);e=e(void 0!==i?i:t.custom,s,o)}return e}function a(t,e,i){let n=t.getProps();return o(n,e,void 0!==i?i:n.custom,t)}function l(t,e){return t?t[e]||t.default||t:void 0}i.d(e,{P:()=>ry});let u=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],h=new Set(u),d=new Set(["width","height","top","left","right","bottom",...u]),c=t=>Array.isArray(t),p=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),m=t=>c(t)?t[t.length-1]||0:t,f={skipAnimations:!1,useManualTiming:!1},v=t=>t,g=["read","resolveKeyframes","update","preRender","render","postRender"],y={value:null,addProjectionMetrics:null};function x(t,e){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,o=g.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,s=!1,r=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){o.has(e)&&(h.schedule(e),t()),l++,e(a)}let h={schedule:(t,e=!1,r=!1)=>{let a=r&&s?i:n;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(a=t,s){r=!0;return}s=!0,[i,n]=[n,i],i.forEach(u),e&&y.value&&y.value.frameloop[e].push(l),l=0,i.clear(),s=!1,r&&(r=!1,h.process(t))}};return h}(r,e?i:void 0),t),{}),{read:a,resolveKeyframes:l,update:u,preRender:h,render:d,postRender:c}=o,p=()=>{let r=f.useManualTiming?s.timestamp:performance.now();i=!1,f.useManualTiming||(s.delta=n?1e3/60:Math.max(Math.min(r-s.timestamp,40),1)),s.timestamp=r,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&&(n=!1,t(p))},m=()=>{i=!0,n=!0,s.isProcessing||t(p)};return{schedule:g.reduce((t,e)=>{let n=o[e];return t[e]=(t,e=!1,s=!1)=>(i||m(),n.schedule(t,e,s)),t},{}),cancel:t=>{for(let e=0;e<g.length;e++)o[g[e]].cancel(t)},state:s,steps:o}}let{schedule:S,cancel:w,state:T,steps:P}=x("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:v,!0);function b(){n=void 0}let A={now:()=>(void 0===n&&A.set(T.isProcessing||f.useManualTiming?T.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(b)}};function E(t,e){-1===t.indexOf(e)&&t.push(e)}function M(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class C{constructor(){this.subscriptions=[]}add(t){return E(this.subscriptions,t),()=>M(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let s=0;s<n;s++){let n=this.subscriptions[s];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let R=t=>!isNaN(parseFloat(t)),V={current:void 0};class k{constructor(t,e={}){this.version="12.4.10",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=A.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=A.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=R(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 C);let i=this.events[t].add(e);return"change"===t?()=>{i(),S.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 V.current&&V.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=A.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 D(t,e){return new k(t,e)}let j=t=>!!(t&&t.getVelocity);function F(t,e){let i=t.getValue("willChange");if(j(i)&&i.add)return i.add(e)}let L=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),B="data-"+L("framerAppearId");function _(t){let e;return()=>(void 0===e&&(e=t()),e)}let I=_(()=>void 0!==window.ScrollTimeline);class O{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t,e){let i=this.animations.map(i=>I()&&i.attachTimeline?i.attachTimeline(t):"function"==typeof e?e(i):void 0);return()=>
1{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 U extends O{then(t,e){return Promise.all(this.animations).then(t).catch(e)}}let N=t=>1e3*t,z=t=>t/1e3,$={current:!1};function W(t){return"function"==typeof t}function H(t,e){t.timeline=e,t.onfinish=null}let Y=t=>Array.isArray(t)&&"number"==typeof t[0],X={linearEasing:void 0},K=function(t,e){let i=_(t);return()=>{var t;return null!=(t=X[e])?t:i()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),q=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n},G=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)n+=t(q(0,s-1,e))+", ";return`linear(${n.substring(0,n.length-2)})`},Z=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,Q={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Z([0,.65,.55,1]),circOut:Z([.55,0,1,.45]),backIn:Z([.31,.01,.66,-.59]),backOut:Z([.33,1.53,.69,.99])},J=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function tt(t,e,i,n){if(t===e&&i===n)return v;let s=e=>(function(t,e,i,n,s){let r,o,a=0;do(r=J(o=e+(i-e)/2,n,s)-t)>0?i=o:e=o;while(Math.abs(r)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:J(s(t),e,n)}let te=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ti=t=>e=>1-t(1-e),tn=tt(.33,1.53,.69,.99),ts=ti(tn),tr=te(ts),to=t=>(t*=2)<1?.5*ts(t):.5*(2-Math.pow(2,-10*(t-1))),ta=t=>1-Math.sin(Math.acos(t)),tl=ti(ta),tu=te(ta),th=t=>/^0[^.\s]+$/u.test(t),td=(t,e,i)=>i>e?e:i<t?t:i,tc={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},tp={...tc,transform:t=>td(0,1,t)},tm={...tc,default:1},tf=t=>Math.round(1e5*t)/1e5,tv=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tg=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ty=(t,e)=>i=>!!("string"==typeof i&&tg.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tx=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[s,r,o,a]=n.match(tv);return{[t]:parseFloat(s),[e]:parseFloat(r),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tS=t=>td(0,255,t),tw={...tc,transform:t=>Math.round(tS(t))},tT={test:ty("rgb","red"),parse:tx("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+tw.transform(t)+", "+tw.transform(e)+", "+tw.transform(i)+", "+tf(tp.transform(n))+")"},tP={test:ty("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform:tT.transform},tb=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tA=tb("deg"),tE=tb("%"),tM=tb("px"),tC=tb("vh"),tR=tb("vw"),tV={...tE,parse:t=>tE.parse(t)/100,transform:t=>tE.transform(100*t)},tk={test:ty("hsl","hue"),parse:tx("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+tE.transform(tf(e))+", "+tE.transform(tf(i))+", "+tf(tp.transform(n))+")"},tD={test:t=>tT.test(t)||tP.test(t)||tk.test(t),parse:t=>tT.test(t)?tT.parse(t):tk.test(t)?tk.parse(t):tP.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tT.transform(t):tk.transform(t)},tj=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tF="number",tL="color",tB=/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 t_(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[],r=0,o=e.replace(tB,t=>(tD.test(t)?(n.color.push(r),s.push(tL),i.push(tD.parse(t))):t.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(t)):(n.number.push(r),s.push(tF),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:o,indexes:n,types:s}}function tI(t){return t_(t).values}function tO(t){let{split:e,types:i}=t_(t),n=e.length;return t=>{let s="";for(let r=0;r<n;r++)if(s+=e[r],void 0!==t[r]){let e=i[r];e===tF?s+=tf(t[r]):e===tL?s+=tD.transform(t[r]):s+=t[r]}return s}}let tU=t=>"number"==typeof t?0:t,tN={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null==(e=t.match(tv))?void 0:e.length)||0)+((null==(i=t.match(tj))?void 0:i.length)||0)>0},parse:tI,createTransformer:tO,getAnimatableNone:function(t){let e=tI(t);return tO(t)(e.map(tU))}},tz=new Set(["brightness","contrast","saturate","opacity"]);function t$(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(tv)||[];if(!n)return t;let s=i.replace(n,""),r=+!!tz.has(e);return n!==i&&(r*=100),e+"("+r+s+")"}let tW=/\b([a-z-]*)\(.*?\)/gu,tH={...tN,getAnimatableNone:t=>{let e=t.match(tW);return e?e.map(t$).join(" "):t}},tY={...tc,transform:Math.round},tX={borderWidth:tM,borderTopWidth:tM,borderRightWidth:tM,borderBottomWidth:tM,borderLeftWidth:tM,borderRadius:tM,radius:tM,borderTopLeftRadius:tM,borderTopRightRadius:tM,borderBottomRightRadius:tM,borderBottomLeftRadius:tM,width:tM,maxWidth:tM,height:tM,maxHeight:tM,top:tM,right:tM,bottom:tM,left:tM,padding:tM,paddingTop:tM,paddingRight:tM,paddingBottom:tM,paddingLeft:tM,margin:tM,marginTop:tM,marginRight:tM,marginBottom:tM,marginLeft:tM,backgroundPositionX:tM,backgroundPositionY:tM,rotate:tA,rotateX:tA,rotateY:tA,rotateZ:tA,scale:tm,scaleX:tm,scaleY:tm,scaleZ:tm,skew:tA,
1skewX:tA,skewY:tA,distance:tM,translateX:tM,translateY:tM,translateZ:tM,x:tM,y:tM,z:tM,perspective:tM,transformPerspective:tM,opacity:tp,originX:tV,originY:tV,originZ:tM,zIndex:tY,size:tM,fillOpacity:tp,strokeOpacity:tp,numOctaves:tY},tK={...tX,color:tD,backgroundColor:tD,outlineColor:tD,fill:tD,stroke:tD,borderColor:tD,borderTopColor:tD,borderRightColor:tD,borderBottomColor:tD,borderLeftColor:tD,filter:tH,WebkitFilter:tH},tq=t=>tK[t];function tG(t,e){let i=tq(t);return i!==tH&&(i=tN),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tZ=new Set(["auto","none","0"]),tQ=t=>t===tc||t===tM,tJ=(t,e)=>parseFloat(t.split(", ")[e]),t0=(t,e)=>(i,{transform:n})=>{if("none"===n||!n)return 0;let s=n.match(/^matrix3d\((.+)\)$/u);if(s)return tJ(s[1],e);{let e=n.match(/^matrix\((.+)\)$/u);return e?tJ(e[1],t):0}},t1=new Set(["x","y","z"]),t2=u.filter(t=>!t1.has(t)),t5={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:t0(4,13),y:t0(5,14)};t5.translateX=t5.x,t5.translateY=t5.y;let t3=new Set,t4=!1,t6=!1;function t9(){if(t6){let t=Array.from(t3).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 t2.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.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 n;null==(n=t.getValue(e))||n.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}t6=!1,t4=!1,t3.forEach(t=>t.complete()),t3.clear()}function t8(){t3.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(t6=!0)})}class t7{constructor(t,e,i,n,s,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(t3.add(this),t4||(t4=!0,S.read(t8),S.resolveKeyframes(t9))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;for(let s=0;s<t.length;s++)if(null===t[s])if(0===s){let s=null==n?void 0:n.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),t3.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,t3.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let et=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),ee=t=>e=>"string"==typeof e&&e.startsWith(t),ei=ee("--"),en=ee("var(--"),es=t=>!!en(t)&&er.test(t.split("/*")[0].trim()),er=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,eo=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ea=t=>e=>e.test(t),el=[tc,tM,tE,tA,tR,tC,{test:t=>"auto"===t,parse:t=>t}],eu=t=>el.find(ea(t));class eh extends t7{constructor(t,e,i,n,s){super(t,e,i,n,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 n=t[i];if("string"==typeof n&&es(n=n.trim())){let s=function t(e,i,n=1){v(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[s,r]=function(t){let e=eo.exec(t);if(!e)return[,];let[,i,n,s]=e;return[`--${null!=i?i:n}`,s]}(e);if(!s)return;let o=window.getComputedStyle(i).getPropertyValue(s);if(o){let t=o.trim();return et(t)?parseFloat(t):t}return es(r)?t(r,i,n+1):r}(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!d.has(i)||2!==t.length)return;let[n,s]=t,r=eu(n),o=eu(s);if(r!==o)if(tQ(r)&&tQ(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||th(n))&&i.push(e)}
1i.length&&function(t,e,i){let n,s=0;for(;s<t.length&&!n;){let e=t[s];"string"==typeof e&&!tZ.has(e)&&t_(e).values.length&&(n=t[s]),s++}if(n&&i)for(let s of e)t[s]=tG(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=t5[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let s=e.getValue(i);s&&s.jump(this.measuredOrigin,!1);let r=n.length-1,o=n[r];n[r]=t5[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.forEach(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let ed=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tN.test(t)||"0"===t)&&!t.startsWith("url(")),ec=t=>null!==t;function ep(t,{repeat:e,repeatType:i="loop"},n){let s=t.filter(ec),r=e&&"loop"!==i&&e%2==1?0:s.length-1;return r&&void 0!==n?n:s[r]}class em{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=A.now(),this.options={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(t8(),t9()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=A.now(),this.hasAttemptedResolve=!0;let{name:i,type:n,velocity:s,delay:r,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],o=ed(s,e),a=ed(r,e);return v(o===a,`You are trying to animate ${e} from "${s}" to "${r}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${r} 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||W(i))&&n)}(t,i,n,s))if($.current||!r){a&&a(ep(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})}}function ef(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}let ev={layout:0,mainThread:0,waapi:0},eg=(t,e,i)=>t+(e-t)*i;function ey(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 ex(t,e){return i=>i>0?e:t}let eS=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},ew=[tP,tT,tk],eT=t=>ew.find(e=>e.test(t));function eP(t){let e=eT(t);if(v(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===tk&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,r=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;s=ey(a,n,t+1/3),r=ey(a,n,t),o=ey(a,n,t-1/3)}else s=r=o=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*o),alpha:n}}(i)),i}let eb=(t,e)=>{let i=eP(t),n=eP(e);if(!i||!n)return ex(t,e);let s={...i};return t=>(s.red=eS(i.red,n.red,t),s.green=eS(i.green,n.green,t),s.blue=eS(i.blue,n.blue,t),s.alpha=eg(i.alpha,n.alpha,t),tT.transform(s))},eA=(t,e)=>i=>e(t(i)),eE=(...t)=>t.reduce(eA),eM=new Set(["none","hidden"]);function eC(t,e){return i=>eg(t,e,i)}function eR(t){return"number"==typeof t?eC:"string"==typeof t?es(t)?ex:tD.test(t)?eb:eD:Array.isArray(t)?eV:"object"==typeof t?tD.test(t)?eb:ek:ex}function eV(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>eR(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=s[e](t);return i}}function ek(t,e){let i={...t,...e},n={};for(let s in i)void 0!==t[s]&&void 0!==e[s]&&(n[s]=eR(t[s])(t[s],e[s]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let eD=(t,e)=>{let i=tN.createTransformer(e),n=t_(t),s=t_(e);return n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length?eM.has(t)&&!s.values.length||eM.has(e)&&!n.values.length?function(t,e){return eM.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):eE(eV(function(t,e){var i;let n=[],s={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let o=e.types[r],a=t.indexes[o][s[o]],l=null!=(i=t.values[a])?i:0;n[r]=l,s[o]++}return n}(n,s),s.values),i):(v(!0,`Complex values '${t}' and '${e}
1' 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.`),ex(t,e))};function ej(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?eg(t,e,i):eR(t)(t,e)}function eF(t,e,i){var n,s;let r=Math.max(e-5,0);return n=i-t(r),(s=e-r)?1e3/s*n:0}let eL={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 eB(t,e){return t*Math.sqrt(1-e*e)}let e_=["duration","bounce"],eI=["stiffness","damping","mass"];function eO(t,e){return e.some(e=>void 0!==t[e])}function eU(t=eL.visualDuration,e=eL.bounce){let i,n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:s,restDelta:r}=n,o=n.keyframes[0],a=n.keyframes[n.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:eL.velocity,stiffness:eL.stiffness,damping:eL.damping,mass:eL.mass,isResolvedFromDuration:!1,...t};if(!eO(t,eI)&&eO(t,e_))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,s=2*td(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:eL.mass,stiffness:n,damping:s}}else{let i=function({duration:t=eL.duration,bounce:e=eL.bounce,velocity:i=eL.velocity,mass:n=eL.mass}){let s,r;v(t<=N(eL.maxDuration),"Spring duration must be 10 seconds or less");let o=1-e;o=td(eL.minDamping,eL.maxDamping,o),t=td(eL.minDuration,eL.maxDuration,z(t)),o<1?(s=e=>{let n=e*o,s=n*t;return .001-(n-i)/eB(e,o)*Math.exp(-s)},r=e=>{let n=e*o*t,r=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-n),l=eB(Math.pow(e,2),o);return(n*i+i-r)*a*(-s(e)+.001>0?-1:1)/l}):(s=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(s,r,5/t);if(t=N(t),isNaN(a))return{stiffness:eL.stiffness,damping:eL.damping,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:eL.mass}).isResolvedFromDuration=!0}return e}({...n,velocity:-z(n.velocity||0)}),f=p||0,g=h/(2*Math.sqrt(u*d)),y=a-o,x=z(Math.sqrt(u/d)),S=5>Math.abs(y);if(s||(s=S?eL.restSpeed.granular:eL.restSpeed.default),r||(r=S?eL.restDelta.granular:eL.restDelta.default),g<1){let t=eB(x,g);i=e=>a-Math.exp(-g*x*e)*((f+g*x*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===g)i=t=>a-Math.exp(-x*t)*(y+(f+x*y)*t);else{let t=x*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*x*e),n=Math.min(t*e,300);return a-i*((f+g*x*y)*Math.sinh(n)+t*y*Math.cosh(n))/t}}let w={calculatedDuration:m&&c||null,next:t=>{let e=i(t);if(m)l.done=t>=c;else{let n=0;g<1&&(n=0===t?N(f):eF(i,t,e));let o=Math.abs(a-e)<=r;l.done=Math.abs(n)<=s&&o}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(ef(w),2e4),e=G(e=>w.next(t*e).value,t,30);return t+"ms "+e}};return w}function eN({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let d,c,p=t[0],m={done:!1,value:p},f=t=>void 0!==a&&t<a||void 0!==l&&t>l,v=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l,g=i*e,y=p+g,x=void 0===o?y:o(y);x!==y&&(g=x-p);let S=t=>-g*Math.exp(-t/n),w=t=>x+S(t),T=t=>{let e=S(t),i=w(t);m.done=Math.abs(e)<=u,m.value=m.done?x:i},P=t=>{f(m.value)&&(d=t,c=eU({keyframes:[m.value,v(m.value)],velocity:eF(w,t,m.value),damping:s,stiffness:r,restDelta:u,restSpeed:h}))};return P(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,T(t),P(t)),void 0!==d&&t>=d)?c.next(t-d):(e||T(t),m)}}}let ez=tt(.42,0,1,1),e$=tt(0,0,.58,1),eW=tt(.42,0,.58,1),eH=t=>Array.isArray(t)&&"number"!=typeof t[0],eY={linear:v,easeIn:ez,easeInOut:eW,easeOut:e$,circIn:ta,circInOut:tu,circOut:tl,backIn:ts,backInOut:tr,backOut:tn,anticipate:to},eX=t=>{if(Y(t)){v(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,s]=t;return tt(e,i,n,s)}return"string"==typeof t?(v(void 0!==eY[t],`Invalid easing type '${t}'`),eY[t]):t};function eK({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var s;let r=eH(n)?n.map(eX):eX(n),o={done:!1,value:e[0]},a=function(t,e,{clamp:i=!0,ease:n,mixer:s}={}){let r=t.length;if(v(r===e.length,"Both input and output ranges must be the same length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>
1t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let n=[],s=i||ej,r=t.length-1;for(let i=0;i<r;i++){let r=s(t[i],t[i+1]);e&&(r=eE(Array.isArray(e)?e[i]||v:e,r)),n.push(r)}return n}(e,n,s),l=a.length,u=i=>{if(o&&i<t[0])return e[0];let n=0;if(l>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let s=q(t[n],t[n+1],i);return a[n](s)};return i?e=>u(td(t[0],t[r-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 n=1;n<=e;n++){let s=q(0,e,n);t.push(eg(i,1,s))}}(e,t.length-1),e}(e),s.map(e=>e*t)),e,{ease:Array.isArray(r)?r:e.map(()=>r||eW).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}let eq=t=>{let e=({timestamp:e})=>t(e);return{start:()=>S.update(e,!0),stop:()=>w(e),now:()=>T.isProcessing?T.timestamp:A.now()}},eG={decay:eN,inertia:eN,tween:eK,keyframes:eK,spring:eU},eZ=t=>t/100;class eQ extends em{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:e,motionValue:i,element:n,keyframes:s}=this.options,r=(null==n?void 0:n.KeyframeResolver)||t7;this.resolver=new r(s,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i,{type:n="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:o,velocity:a=0}=this.options,l=W(n)?n:eG[n]||eK;l!==eK&&"number"!=typeof t[0]&&(e=eE(eZ,ej(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=ef(u));let{calculatedDuration:h}=u,d=h+r;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:h,resolvedDuration:d,totalDuration:d*(s+1)-r}}onPostResolved(){let{autoplay:t=!0}=this.options;ev.mainThread++,this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:n,generator:s,mirroredGenerator:r,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 v=this.currentTime-d*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=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=r)),y=td(0,1,i)*h}let S=g?{done:!1,value:a[0]}:x.next(y);o&&(S.value=o(S.value));let{done:w}=S;g||null===l||(w=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return T&&void 0!==n&&(S.value=ep(a,this.options,n)),f&&f(S.value),T&&this.finish(),S}get duration(){let{resolved:t}=this;return t?z(t.calculatedDuration):0}get time(){return z(this.currentTime)}set time(t){t=N(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=z(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=eq,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedProm
1ise(),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(),ev.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let eJ=new Set(["opacity","clipPath","filter","transform"]),e0=_(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),e1={anticipate:to,backInOut:tr,circInOut:tu};class e2 extends em{constructor(t){super(t);let{name:e,motionValue:i,element:n,keyframes:s}=this.options;this.resolver=new eh(s,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}initPlayback(t,e){var i;let{duration:n=300,times:s,ease:r,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if("string"==typeof r&&K()&&r in e1&&(r=e1[r]),W((i=this.options).type)||"spring"===i.type||!function t(e){return!!("function"==typeof e&&K()||!e||"string"==typeof e&&(e in Q||K())||Y(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 eQ({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:t[0]},s=[],r=0;for(;!n.done&&r<2e4;)s.push((n=i.sample(r)).value),r+=10;return{times:void 0,keyframes:s,duration:r-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),n=h.duration,s=h.times,r=h.ease,o="keyframes"}let h=function(t,e,i,{delay:n=0,duration:s=300,repeat:r=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&&K()?G(e,i):Y(e)?Z(e):Array.isArray(e)?e.map(e=>t(e,i)||Q.easeOut):Q[e]}(a,s);Array.isArray(h)&&(u.easing=h),y.value&&ev.waapi++;let d=t.animate(u,{delay:n,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"});return y.value&&d.finished.finally(()=>{ev.waapi--}),d}(a.owner.current,l,t,{...this.options,duration:n,times:s,ease:r});return h.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(H(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{let{onComplete:i}=this.options;a.set(ep(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:n,times:s,type:o,ease:r,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return z(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return z(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=N(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 v;let{animation:i}=e;H(i,t)}else this.pendingTimeline=t;return v}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:n,type:s,ease:r,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 eQ({...u,keyframes:i,duration:n,type:s,ease:r,times:o,isGenerator:!0}),d=N(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()}
1static supports(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:o}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return e0()&&i&&eJ.has(i)&&!a&&!l&&!n&&"mirror"!==s&&0!==r&&"inertia"!==o}}let e5={type:"spring",stiffness:500,damping:25,restSpeed:10},e3=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),e4={type:"keyframes",duration:.8},e6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},e9=(t,{keyframes:e})=>e.length>2?e4:h.has(t)?t.startsWith("scale")?e3(e[1]):e5:e6,e8=(t,e,i,n={},s,r)=>o=>{let a=l(n,t)||{},u=a.delay||n.delay||0,{elapsed:h=0}=n;h-=N(u);let d={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-h,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:s};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:s,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(a)&&(d={...d,...e9(t,d)}),d.duration&&(d.duration=N(d.duration)),d.repeatDelay&&(d.repeatDelay=N(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let c=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(d.duration=0,0===d.delay&&(c=!0)),($.current||f.skipAnimations)&&(c=!0,d.duration=0,d.delay=0),c&&!r&&void 0!==e.get()){let t=ep(d.keyframes,a);if(void 0!==t)return S.update(()=>{d.onUpdate(t),d.onComplete()}),new U([])}return!r&&e2.supports(d)?new e2(d):new eQ(d)};function e7(t,e,{delay:i=0,transitionOverride:n,type:s}={}){var r;let{transition:o=t.getDefaultTransition(),transitionEnd:u,...h}=e;n&&(o=n);let c=[],p=s&&t.animationState&&t.animationState.getState()[s];for(let e in h){let n=t.getValue(e,null!=(r=t.latestValues[e])?r:null),s=h[e];if(void 0===s||p&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(p,e))continue;let a={delay:i,...l(o||{},e)},u=!1;if(window.MotionHandoffAnimation){let i=t.props[B];if(i){let t=window.MotionHandoffAnimation(i,e,S);null!==t&&(a.startTime=t,u=!0)}}F(t,e),n.start(e8(e,n,s,t.shouldReduceMotion&&d.has(e)?{type:!1}:a,t,u));let m=n.animation;m&&c.push(m)}return u&&Promise.all(c).then(()=>{S.update(()=>{u&&function(t,e){let{transitionEnd:i={},transition:n={},...s}=a(t,e)||{};for(let e in s={...s,...i}){let i=m(s[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,D(i))}}(t,u)})}),c}function it(t,e,i={}){var n;let s=a(t,e,"exit"===i.type?null==(n=t.presenceContext)?void 0:n.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(r=i.transitionOverride);let o=s?()=>Promise.all(e7(t,s,i)):()=>Promise.resolve(),l=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;return function(t,e,i=0,n=0,s=1,r){let o=[],a=(t.variantChildren.size-1)*n,l=1===s?(t=0)=>t*n:(t=0)=>a-t*n;return Array.from(t.variantChildren).sort(ie).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(it(t,e,{...r,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,s+n,o,a,i)}:()=>Promise.resolve(),{when:u}=r;if(!u)return Promise.all([o(),l(i.delay)]);{let[t,e]="beforeChildren"===u?[o,l]:[l,o];return t().then(()=>e())}}function ie(t,e){return t.sortNodePosition(e)}function ii(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}function is(t){return"string"==typeof t||Array.isArray(t)}let ir=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],io=["initial",...ir],ia=io.length,il=[...ir].reverse(),iu=ir.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})=>
1(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>it(t,e,i)));else if("string"==typeof e)n=it(t,e,i);else{let s="function"==typeof e?a(t,e,i.custom):e;n=Promise.all(e7(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=id(),n=!0,r=e=>(i,n)=>{var s;let r=a(t,n,"exit"===e?null==(s=t.presenceContext)?void 0:s.custom:void 0);if(r){let{transition:t,transitionEnd:e,...n}=r;i={...i,...n,...e}}return i};function o(o){let{props:l}=t,u=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 n=io[t],s=e.props[n];(is(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},h=[],d=new Set,p={},m=1/0;for(let e=0;e<iu;e++){var f,v;let a=il[e],g=i[a],y=void 0!==l[a]?l[a]:u[a],x=is(y),S=a===o?g.isActive:null;!1===S&&(m=e);let w=y===u[a]&&y!==l[a]&&x;if(w&&n&&t.manuallyAnimateOnMount&&(w=!1),g.protectedKeys={...p},!g.isActive&&null===S||!y&&!g.prevProp||s(y)||"boolean"==typeof y)continue;let T=(f=g.prevProp,"string"==typeof(v=y)?v!==f:!!Array.isArray(v)&&!ii(v,f)),P=T||a===o&&g.isActive&&!w&&x||e>m&&x,b=!1,A=Array.isArray(y)?y:[y],E=A.reduce(r(a),{});!1===S&&(E={});let{prevResolvedValues:M={}}=g,C={...M,...E},R=e=>{P=!0,d.has(e)&&(b=!0,d.delete(e)),g.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in C){let e=E[t],i=M[t];if(p.hasOwnProperty(t))continue;let n=!1;(c(e)&&c(i)?ii(e,i):e===i)?void 0!==e&&d.has(t)?R(t):g.protectedKeys[t]=!0:null!=e?R(t):d.add(t)}g.prevProp=y,g.prevResolvedValues=E,g.isActive&&(p={...p,...E}),n&&t.blockInitialAnimation&&(P=!1);let V=!(w&&T)||b;P&&V&&h.push(...A.map(t=>({animation:t,options:{type:a}})))}if(d.size){let e={};if("boolean"!=typeof l.initial){let i=a(t,Array.isArray(l.initial)?l.initial[0]:l.initial);i&&i.transition&&(e.transition=i.transition)}d.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=null!=n?n:null}),h.push({animation:e})}let g=!!h.length;return n&&(!1===l.initial||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(g=!1),n=!1,g?e(h):Promise.resolve()}return{animateChanges:o,setActive:function(e,n){var s;if(i[e].isActive===n)return Promise.resolve();null==(s=t.variantChildren)||s.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,n)}),i[e].isActive=n;let r=o(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=id(),n=!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 iv 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 n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}let ig={x:!1,y:!1};function iy(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let ix=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function iS(t){return{point:{x:t.pageX,y:t.pageY}}}let iw=t=>e=>ix(e)&&t(e,iS(e));function iT(t,e,i,n){return iy(t,e,iw(i),n)}function iP({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function ib(t){return t.max-t.min}function iA(t,e,i,n=.5){t.origin=n,t.originPoint=eg(e.min,e.max,t.origin),t.scale=ib(i)/ib(e),t.translate=eg(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 iE(t,e,i,n){iA(t.x,e.x,i.x,n?n.originX:void 0),iA(t.y,e.y,i.y,n?n.originY:void 0)}function iM(t,e,i){t.min=i.min+e.min,t.max=t.min+ib(e)}function iC(t,e,i){t.min=e.min-i.min,t.max=t.min+ib(e)}function iR(t,e,i){iC(t.x,e.x,i.x),iC(t.y,e.y,i.y)}let iV=()=>({translate:0,scale:1,origin:0,originPoint:0}),ik=()=>({x:iV(),y:iV()}),iD=()=>({min:0,max:0}),ij=()=>({x:iD(),y:iD()});function iF(t){return[t("x"),t("y")]}function iL(t){return void 0===t||1===t}function iB({scale:t,scaleX:e,scaleY:i}){return!iL(t)||!iL(e)||!iL(i)}function i_(t){return iB(t)||iI(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function iI(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function iO(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function iU(t,e=0,i=1,n,s){t.min=iO(t.min,e,i,n,s),t.max=iO(t.max,e,i,n,s)}function iN(t,{x:e,y:i}){iU(t.x,e.translate,e.scale,e.originPoint),iU(t.y,i.translate,i.scale,i.originPoint)}function iz(t,e){t.min=t.min+e,t.max=t.max+e}function i$(t,e,i,n,s=.5){let r=eg(t.min,t.max,s);iU(t,e,i,r,n)}function iW(t,e){i$(t.x,e.x,e.scaleX,e.scale,e.originX),i$(t.y,e.y,e.scaleY,e.scale,e.originY)}function iH(t,e){return iP(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}function iY(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function iX(t,e){let i=`${e}PointerCapture`;if(t.target instanceof Element&&i in t.target&&void 0!==t.pointerId)try{t.target[i](t.pointerId)}catch(t){}}let iK=(t,e)=>Math.abs(t-e);class iq{constructor(t,e,{transformPagePoint:i,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=iQ(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(iK(t.x,e.x)**2+iK(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:s}=T;this.history.push({...n,timestamp:s});let{onStart:r,onMove:o}=this.handlers;e||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{if(this.index=i0(t.currentTarget),t.target instanceof Element&&t.target.hasPointerCapture&&void 0!==t.pointerId)try{if(!t.target.hasPointerCapture(t.pointerId))return}catch(t){}this.lastMoveEvent=t,this.lastMoveEventInfo=iG(e,this.transformPagePoint),S.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{iX(t,"release"),this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=iQ("pointercancel"===t.type||"lostpointercapture"===t.type?this.lastMoveEventInfo:iG(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!ix(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i;let s=iG(iS(t),this.transformPagePoint),{point:r}=s,{timestamp:o}=T;this.history=[{...r,timestamp:o}];let{onSessionStart:a}=e;a&&a(t,iQ(s,this.history)),iX(t,"set"),this.removeListeners=eE(iT(t.currentTarget,"pointermove",this.handlePointerMove),iT(t.currentTarget,"pointerup",this.handlePointerUp),iT(t.currentTarget,"pointercancel",this.handlePointerUp),iT(t.currentTarget,"lostpointercapture",(t,e)=>{i0(t.currentTarget)!==this.index?iX(t,"set"):this.handlePointerUp(t,e)}))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),w(this.updatePoint)}}function iG(t,e){return e?{point:e(t.point)}:t}function iZ(t,e){return{x:t.x-e.x,y:t.y-e.y}}function iQ({point:t},e){return{point:t,delta:iZ(t,iJ(e)),offset:iZ(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,s=iJ(t);for(;i>=0&&(n=t[i],!(s.timestamp-n.timestamp>N(.1)));)i--;if(!n)return{x:0,y:0};let r=z(s.timestamp-n.timestamp);if(0===r)return{x:0,y:0};let o={x:(s.x-n.x)/r,y:(s.y-n.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function iJ(t){return t[t.length-1]}function i0(t){return t.parentNode?Array.from(t.parentNode.children).indexOf(t):-1}function i1(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 i2(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function i5(t,e,i){return{min:i3(t,e),max:i3(t,i)}}function i3(t,e){return"number"==typeof t?t:t[e]||0}let i4=new WeakMap;class i6{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=ij(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new iq(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(iS(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(ig[t])return null;else return ig[t]=!0,()=>{ig[t]=!1};return ig.x||ig.y?null:(ig.x=ig.y=!0,()=>{ig.x=ig.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),iF(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tE.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];
1n&&(e=ib(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&S.postRender(()=>s(t,e)),F(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&&r(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>iF(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:s}=this.getProps();s&&S.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:n}=this.getProps();if(!i||!i9(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?eg(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?eg(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,s=this.constraints;e&&iY(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:i1(t.x,i,s),y:i1(t.y,e,n)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:i5(t,"left","right"),y:i5(t,"top","bottom")}}(i),s!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&iF(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iY(e))return!1;let n=e.current;v(null!==n,"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;let r=function(t,e,i){let n=iH(t,i),{scroll:s}=e;return s&&(iz(n.x,s.offset.x),iz(n.y,s.offset.y)),n}(n,s.root,this.visualElement.getTransformPagePoint()),o=(t=s.layout.layoutBox,{x:i2(t.x,r.x),y:i2(t.y,r.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=iP(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(iF(o=>{if(!i9(o,e,this.currentDirection))return;let l=a&&a[o]||{};r&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return F(this.visualElement,t),i.start(e8(t,i,0,e,this.visualElement,!1))}stopAnimation(){iF(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){iF(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){iF(e=>{let{drag:i}=this.getProps();if(!i9(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e];s.set(t[e]-eg(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iY(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};iF(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=ib(t),s=ib(e);return s>n?i=q(e.min,e.max-n,t.min):n>s&&(i=q(t.min,t.max-s,e.min)),td(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(),iF(e=>{if(!i9(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set(eg(s,r,n[e]))})}addListeners(){if(!this.visualElement.current)return;i4.set(this.visualElement,this);let t=iT(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();iY(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),S.read(e);let s=iy(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>
1{this.isDragging&&e&&(iF(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(),n(),r&&r()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:o}}}function i9(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class i8 extends ic{constructor(t){super(t),this.removeGroupControls=v,this.removeListeners=v,this.controls=new i6(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||v}unmount(){this.removeGroupControls(),this.removeListeners()}}let i7=t=>(e,i)=>{t&&S.postRender(()=>t(e,i))};class nt extends ic{constructor(){super(...arguments),this.removePointerDownListener=v}onPointerDown(t){this.session=new iq(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:i7(t),onStart:i7(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&S.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=iT(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 ne,ni,nn=i(95155),ns=i(12115),nr=i(14905),no=i(57728);let na=(0,ns.createContext)({}),{schedule:nl,cancel:nu}=x(queueMicrotask,!1),nh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nd(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let nc={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!tM.test(t))return t;else t=parseFloat(t);let i=nd(t,e.target.x),n=nd(t,e.target.y);return`${i}% ${n}%`}},np={};class nm extends ns.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;for(let t in nv)np[t]=nv[t],ei(t)&&(np[t].isCSSVariable=!0);s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),nh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,r=i.projection;return r&&(r.isPresent=s,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?r.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?r.promote():r.relegate()||S.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),nl.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nf(t){let[e,i]=(0,nr.xQ)(),n=(0,ns.useContext)(no.L);return(0,nn.jsx)(nm,{...t,layoutGroup:n,switchLayoutGroup:(0,ns.useContext)(na),isPresent:e,safeToRemove:i})}let nv={borderRadius:{...nc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nc,borderTopRightRadius:nc,borderBottomLeftRadius:nc,borderBottomRightRadius:nc,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tN.parse(t);if(n.length>5)return t;let s=tN.createTransformer(t),r=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+r]/=o,n[1+r]/=a;let l=eg(o,a,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}},ng=(t,e)=>t.depth-e.depth;class ny{constructor(){this.children=[],this.isDirty=!1}add(t){E(this.children,t),this.isDirty=!0}remove(t){M(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ng),this.isDirty=!1,this.children.forEac
1h(t)}}function nx(t){let e=j(t)?t.get():t;return p(e)?e.toValue():e}let nS=["TopLeft","TopRight","BottomLeft","BottomRight"],nw=nS.length,nT=t=>"string"==typeof t?parseFloat(t):t,nP=t=>"number"==typeof t||tM.test(t);function nb(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nA=nM(0,.5,tl),nE=nM(.5,.95,v);function nM(t,e,i){return n=>n<t?0:n>e?1:i(q(t,e,n))}function nC(t,e){t.min=e.min,t.max=e.max}function nR(t,e){nC(t.x,e.x),nC(t.y,e.y)}function nV(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nk(t,e,i,n,s){return t-=e,t=n+1/i*(t-n),void 0!==s&&(t=n+1/s*(t-n)),t}function nD(t,e,[i,n,s],r,o){!function(t,e=0,i=1,n=.5,s,r=t,o=t){if(tE.test(e)&&(e=parseFloat(e),e=eg(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=eg(r.min,r.max,n);t===r&&(a-=e),t.min=nk(t.min,e,i,a,s),t.max=nk(t.max,e,i,a,s)}(t,e[i],e[n],e[s],e.scale,r,o)}let nj=["x","scaleX","originX"],nF=["y","scaleY","originY"];function nL(t,e,i,n){nD(t.x,e,nj,i?i.x:void 0,n?n.x:void 0),nD(t.y,e,nF,i?i.y:void 0,n?n.y:void 0)}function nB(t){return 0===t.translate&&1===t.scale}function n_(t){return nB(t.x)&&nB(t.y)}function nI(t,e){return t.min===e.min&&t.max===e.max}function nO(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function nU(t,e){return nO(t.x,e.x)&&nO(t.y,e.y)}function nN(t){return ib(t.x)/ib(t.y)}function nz(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class n${constructor(){this.members=[]}add(t){E(this.members,t),t.scheduleRender()}remove(t){if(M(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let nW={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},nH=["","X","Y","Z"],nY={visibility:"hidden"},nX=0;function nK(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function nq({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=null==e?void 0:e()){this.id=nX++,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,y.value&&(nW.nodes=nW.calculatedTargetDeltas=nW.calculatedProjections=0),this.nodes.forEach(nQ),this.nodes.forEach(n4),this.nodes.forEach(n6),this.nodes.forEach(nJ),y.addProjectionMetrics&&y.addProjectionMetrics(nW)},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 ny)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new C),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:n,layout:s,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(s||n)&&(this.isLayoutDirty=!0),t){let i,n=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=A.now(),n=({timestamp:s})=>{let r=s-i;r>=250&&(w(n),t(r-e))};return S.read(n,!0),()=>w(n)}
1(n,250),nh.hasAnimatedSinceResize&&(nh.hasAnimatedSinceResize=!1,this.nodes.forEach(n3))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&r&&(n||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||si,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),u=!this.targetLayout||!nU(this.targetLayout,n),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,h);let e={...l(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||n3(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,w(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(n9),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[B];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",S,!(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 n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(n1);return}this.isUpdating||this.nodes.forEach(n2),this.isUpdating=!1,this.nodes.forEach(n5),this.nodes.forEach(nG),this.nodes.forEach(nZ),this.clearAllSnapshots();let t=A.now();T.delta=td(0,1e3/60,t-T.timestamp),T.timestamp=t,T.isProcessing=!0,P.update.process(T),P.preRender.process(T),P.render.process(T),T.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nl.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(n0),this.sharedNodes.forEach(n8)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,S.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){S.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||ib(this.snapshot.measuredBox.x)||ib(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ij(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!n_(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&(e||i_(this.latestValues)||r)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),sr((e=n).x),sr(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return ij();let i=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(sa))){let{scroll:t}=this.root;t&&(iz(i.x,t.offset.x),iz(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=ij();if(nR(i,t),null==(e=this.scroll)?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let n=this.path[e],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&nR(i,t),iz(i.x,s.offset.x),iz(i.y,s.offset.y))}return i}applyTransform(t,e=!1){let i=ij();nR(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&iW(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),i_(n.latestValues)&&iW(i,n.latestValues)}return i_(this.latestValues)&&iW(i,this.latestValues),i}removeTransform(t){let e=ij();nR(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!i_(i.latestValues))continue;iB(i.latestValues)&&i.updateSnapshot();let n=ij();nR(n,i.measurePageBox()),nL(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return i_(this.latestValues)&&nL(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==T.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,n,s;let r=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=r.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=r.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=r.isSharedProjectionDirty);let o=!!this.resumingFrom||this!==r;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=T.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ij(),this.relativeTargetOrigin=ij(),iR(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),nR(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=ij(),this.targetWithTransforms=ij()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,n=this.relativeTarget,s=this.relativeParent.target,iM(i.x,n.x,s.x),iM(i.y,n.y,s.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nR(this.target,this.layout.layoutBox),iN(this.target,this.targetDelta)):nR(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=ij(),this.relativeTargetOrigin=ij(),iR(this.relativeTargetOrigin,this.target,t.target),nR(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}y.value&&nW.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||iB(this.parent.latestValues)||iI(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(n=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===T.timestamp&&(n=!1),n)return;let{layout:s,layoutId:r}=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||r))return;nR(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;
1!function(t,e,i,n=!1){let s,r,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){r=(s=i[a]).projectionDelta;let{visualElement:o}=s.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&iW(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,iN(t,r)),n&&i_(s.latestValues)&&iW(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=ij());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nV(this.prevProjectionDelta.x,this.projectionDelta.x),nV(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),iE(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&nz(this.projectionDelta.x,this.prevProjectionDelta.x)&&nz(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),y.value&&nW.calculatedProjections++}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=ik(),this.projectionDelta=ik(),this.projectionDeltaWithTransform=ik()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,s=n?n.latestValues:{},r={...this.latestValues},o=ik();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=ij(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(se));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(n7(o.x,t.x,n),n7(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,m,f,v;iR(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,v=n,st(p.x,m.x,f.x,v),st(p.y,m.y,f.y,v),i&&(u=this.relativeTarget,c=i,nI(u.x,c.x)&&nI(u.y,c.y))&&(this.isProjectionDirty=!1),i||(i=ij()),nR(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,n,s,r){s?(t.opacity=eg(0,void 0!==i.opacity?i.opacity:1,nA(n)),t.opacityExit=eg(void 0!==e.opacity?e.opacity:1,0,nE(n))):r&&(t.opacity=eg(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let s=0;s<nw;s++){let r=`border${nS[s]}Radius`,o=nb(e,r),a=nb(i,r);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||nP(o)===nP(a)?(t[r]=Math.max(eg(nT(o),nT(a),n),0),(tE.test(a)||tE.test(o))&&(t[r]+="%")):t[r]=a)}(e.rotate||i.rotate)&&(t.rotate=eg(e.rotate||0,i.rotate||0,n))}(r,s,this.latestValues,n,d,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(w(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=S.update(()=>{nh.hasAnimatedSinceResize=!0,ev.layout++,this.currentAnimation=function(t,e,i){let n=j(0)?0:D(t);return n.start(e8("",n,1e3,i)),n.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{ev.layout--},onComplete:()=>{ev.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&so(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||ij();let e=ib(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=ib(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}nR(e,i),iW(e,s),iE(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new n$),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}
1resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&nK("z",t,n,this.animationValues);for(let e=0;e<nH.length;e++)nK(`rotate${nH[e]}`,t,n,this.animationValues),nK(`skew${nH[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return nY;let n={visibility:""},s=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=nx(null==t?void 0:t.pointerEvents)||"",n.transform=s?s(this.latestValues,""):"none",n;let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=nx(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!i_(this.latestValues)&&(e.transform=s?s({},""):"none",this.hasProjected=!1),e}let o=r.animationValues||r.latestValues;this.applyTransformsToTarget(),n.transform=function(t,e,i){let n="",s=t.x.translate/e.x,r=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((s||r||o)&&(n=`translate3d(${s}px, ${r}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:s,rotateY:r,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotateX(${s}deg) `),r&&(n+=`rotateY(${r}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),s&&(n.transform=s(o,n.transform));let{x:a,y:l}=this.projectionDelta;for(let t in n.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,r.animationValues?n.opacity=r===this?null!=(i=null!=(e=o.opacity)?e:this.latestValues.opacity)?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:n.opacity=r===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,np){if(void 0===o[t])continue;let{correct:e,applyTo:i,isCSSVariable:s}=np[t],a="none"===n.transform?o[t]:e(o[t],r);if(i){let t=i.length;for(let e=0;e<t;e++)n[i[e]]=a}else s?this.options.visualElement.renderState.vars[t]=a:n[t]=a}return this.options.layoutId&&(n.pointerEvents=r===this?nx(null==t?void 0:t.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(n1),this.root.sharedNodes.clear()}}}function nG(t){t.updateLayout()}function nZ(t){var e;let i=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:s}=t.options,r=i.source!==t.layout.source;"size"===s?iF(t=>{let n=r?i.measuredBox[t]:i.layoutBox[t],s=ib(n);n.min=e[t].min,n.max=n.min+s}):so(s,i.layoutBox,e)&&iF(n=>{let s=r?i.measuredBox[n]:i.layoutBox[n],o=ib(e[n]);s.max=s.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=ik();iE(o,e,i.layoutBox);let a=ik();r?iE(a,t.applyTransform(n,!0),i.measuredBox):iE(a,e,i.layoutBox);let l=!n_(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let o=ij();iR(o,i.layoutBox,s.layoutBox);let a=ij();iR(a,e,r.layoutBox),nU(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function nQ(t){y.value&&nW.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function nJ(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function n0(t){t.clearSnapshot()}function n1(t){t.clearMeasurements()}function n2(t){t.isLayoutDirty=!1}function n5(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function n3(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function n4(t){t.resolveTargetDelta()}function n6(t){t.calcProjection()}function n9(t){t.resetSkewAndRotation()}function n8(t){t.removeLeadSnapshot()}function n7(t,e,i){t.translate=eg(e.translate,0,i),t.scale=eg(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function st(t,e,i,n){t.min=eg(e.min,i.min,n),t.max=eg(e.max,i.max,n)}function se(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let si={duration:.45,ease:[.4,0,.1,1]},sn=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ss=sn("applewebkit/")&&!sn("chrome/")?Math.round:v;function sr(t){t.min=ss(t.min),t.max=ss(t.max)}function so(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(nN(e)-nN(i)))}function sa(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}let sl=nq({attachResizeListener:(t,e)=>iy(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),su={current:void 0},sh=nq({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!su.current){let t=new sl({});t.mount(window),t.setOptions({layoutScroll:!0}),su.current=t}return su.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function sd(t,e){let i=function(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document.querySelectorAll(t);return e?Array.from(e):[]}return Array.from(t)}(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function sc(t){return!("touch"===t.pointerType||ig.x||ig.y)}function sp(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&S.postRender(()=>s(e,iS(e)))}class sm extends ic{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=sd(t,i),o=t=>{if(!sc(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let r=t=>{sc(t)&&(n(t),i.removeEventListener("pointerleave",r))};i.addEventListener("pointerleave",r,s)};return n.forEach(t=>{t.addEventListener("pointerenter",o,s)}),r}(t,(t,e)=>(sp(this.node,e,"Start"),t=>sp(this.node,t,"End"))))}unmount(){}}class sf 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=eE(iy(this.node.current,"focus",()=>this.onFocus()),iy(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let sv=(t,e)=>!!e&&(t===e||sv(t,e.parentElement)),sg=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),sy=new WeakSet;function sx(t){return e=>{"Enter"===e.key&&t(e)}}function sS(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let sw=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=sx(()=>{if(sy.has(i))return;sS(i,"down");let t=sx(()=>{sS(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>sS(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function sT(t){return ix(t)&&!(ig.x||ig.y)}function sP(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&S.postRender(()=>s(e,iS(e)))}class sb extends ic{mount(){let{current:t}=this.node;
1t&&(this.unmount=function(t,e,i={}){let[n,s,r]=sd(t,i),o=t=>{let i=t.currentTarget;if(!i||!sT(t)||sy.has(i))return;sy.add(i),iX(t,"set");let n=e(i,t),r=(t,e)=>{i.removeEventListener("pointerup",o),i.removeEventListener("pointercancel",a),iX(t,"release"),sT(t)&&sy.has(i)&&(sy.delete(i),"function"==typeof n&&n(t,{success:e}))},o=t=>{var e,n;t.isTrusted&&(e=t,n=i instanceof Element?i.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight},e.clientX<n.left||e.clientX>n.right||e.clientY<n.top||e.clientY>n.bottom)?r(t,!1):r(t,!(i instanceof Element)||sv(i,t.target))},a=t=>{r(t,!1)};i.addEventListener("pointerup",o,s),i.addEventListener("pointercancel",a,s),i.addEventListener("lostpointercapture",a,s)};return n.forEach(t=>{t=i.useGlobalTarget?window:t;let e=!1;if(t instanceof HTMLElement){var n;e=!0,n=t,sg.has(n.tagName)||-1!==n.tabIndex||null!==t.getAttribute("tabindex")||(t.tabIndex=0)}t.addEventListener("pointerdown",o,s),e&&t.addEventListener("focus",t=>sw(t,s),s)}),r}(t,(t,e)=>(sP(this.node,e,"Start"),(t,{success:e})=>sP(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let sA=new WeakMap,sE=new WeakMap,sM=t=>{let e=sA.get(t.target);e&&e(t)},sC=t=>{t.forEach(sM)},sR={some:0,all:1};class sV 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:n="some",once:s}=t,r={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:sR[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;sE.has(i)||sE.set(i,{});let n=sE.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(sC,{root:t,...e})),n[s]}(e);return sA.set(t,i),n.observe(t),()=>{sA.delete(t),n.unobserve(t)}}(this.node.current,r,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:n}=this.node.getProps(),r=e?i:n;r&&r(t)})}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 sk=(0,ns.createContext)({strict:!1});var sD=i(7471);let sj=(0,ns.createContext)({});function sF(t){return s(t.animate)||io.some(e=>is(t[e]))}function sL(t){return!!(sF(t)||t.variants)}function sB(t){return Array.isArray(t)?t.join(" "):t}var s_=i(42801);let sI={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"]},sO={};for(let t in sI)sO[t]={isEnabled:e=>sI[t].some(t=>!!e[t])};let sU=Symbol.for("motionComponentSymbol");var sN=i(50430),sz=i(69025);function s$(t,{layout:e,layoutId:i}){return h.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!np[t]||"opacity"===t)}let sW=(t,e)=>e&&"number"==typeof t?e.transform(t):t,sH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},sY=u.length;function sX(t,e,i){let{style:n,vars:s,transformOrigin:r}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(h.has(t)){o=!0;continue}if(ei(t)){s[t]=i;continue}{let e=sW(i,tX[t]);t.startsWith("origin")?(a=!0,r[t]=e):n[t]=e}}if(!e.transform&&(o||i?n.transform=function(t,e,i){let n="",s=!0;for(let r=0;r<sY;r++){let o=u[r],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=sW(a,tX[o]);if(!l){s=!1;let e=sH[o]||o;n+=`${e}(${t}) `}i&&(e[o]=t)}}return n=n.trim(),i?n=i(e,s?"":n):s&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=r;n.transformOrigin=`${t} ${e} ${i}`}}let sK=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function sq(t,e,i){for(let n in e)j(e[n])||s$(n,i)||(t[n]=e[n])}
1let sG=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 sZ(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||sG.has(t)}let sQ=t=>!sZ(t);try{!function(t){t&&(sQ=e=>e.startsWith("on")?!sZ(e):t(e))}(require("@emotion/is-prop-valid").default)}catch(t){}let sJ=["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 s0(t){if("string"!=typeof t||t.includes("-"));else if(sJ.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let s1={offset:"stroke-dashoffset",array:"stroke-dasharray"},s2={offset:"strokeDashoffset",array:"strokeDasharray"};function s5(t,e,i){return"string"==typeof t?t:tM.transform(e+i*t)}function s3(t,{attrX:e,attrY:i,attrScale:n,originX:s,originY:r,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},h,d){if(sX(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!==r||p.transform)&&(p.transformOrigin=function(t,e,i){let n=s5(e,t.x,t.width),s=s5(i,t.y,t.height);return`${n} ${s}`}(m,void 0!==s?s:.5,void 0!==r?r:.5)),void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==n&&(c.scale=n),void 0!==o&&function(t,e,i=1,n=0,s=!0){t.pathLength=1;let r=s?s1:s2;t[r.offset]=tM.transform(-n);let o=tM.transform(e),a=tM.transform(i);t[r.array]=`${o} ${a}`}(c,o,a,l,!1)}let s4=()=>({...sK(),attrs:{}}),s6=t=>"string"==typeof t&&"svg"===t.toLowerCase();var s9=i(76168);let s8=t=>(e,i)=>{let n=(0,ns.useContext)(sj),r=(0,ns.useContext)(sN.t),a=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:i},n,r,a){let l={latestValues:function(t,e,i,n){let r={},a=n(t,{});for(let t in a)r[t]=nx(a[t]);let{initial:l,animate:u}=t,h=sF(t),d=sL(t);e&&d&&!h&&!1!==t.inherit&&(void 0===l&&(l=e.initial),void 0===u&&(u=e.animate));let c=!!i&&!1===i.initial,p=(c=c||!1===l)?u:l;if(p&&"boolean"!=typeof p&&!s(p)){let e=Array.isArray(p)?p:[p];for(let i=0;i<e.length;i++){let n=o(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(n,r,a,t),renderState:e()};return i&&(l.onMount=t=>i({props:n,current:t,...l}),l.onUpdate=t=>i(t)),l})(t,e,n,r);return i?a():(0,s9.M)(a)};function s7(t,e,i){var n;let{style:s}=t,r={};for(let o in s)(j(s[o])||e.style&&j(e.style[o])||s$(o,t)||(null==(n=null==i?void 0:i.getValue(o))?void 0:n.liveStyle)!==void 0)&&(r[o]=s[o]);return r}let rt={useVisualState:s8({scrapeMotionValuesFromProps:s7,createRenderState:sK})};function re(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}}}function ri(t,{style:e,vars:i},n,s){for(let r in Object.assign(t.style,e,s&&s.getProjectionStyles(n)),i)t.style.setProperty(r,i[r])}let rn=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 rs(t,e,i,n){for(let i in ri(t,e,void 0,n),e.attrs)t.setAttribute(rn.has(i)?i:L(i),e.attrs[i])}function rr(t,e,i){let n=s7(t,e,i);for(let i in t)(j(t[i])||j(e[i]))&&(n[-1!==u.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}let ro=["x","y","width","height","cx","cy","r"],ra={useVisualState:s8({scrapeMotionValuesFromProps:rr,createRenderState:s4,onUpdate:({props:t,prevProps:e,current:i,renderState:n,latestValues:s})=>{if(!i)return;let r=!!t.drag;if(!r){for(let t in s)if(h.has(t)){r=!0;break}}if(!r)return;let o=!e;if(e)for(let i=0;i<ro.length;i++){let n=ro[i];t[n]!==e[n]&&(o=!0)}o&&S.read(()=>{re(i,n),S.render(()=>{s3(n,s,s6(i.tagName),t.transformTemplate),rs(i,n)})})}})},rl={current:null},ru={current:!1},rh=[...el,tD,tN],rd=t=>rh.find(ea(t)),rc=new WeakMap,rp=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];
1class rm{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:s,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=t7,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=A.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,S.render(this.render,!1,!0))};let{latestValues:a,renderState:l,onUpdate:u}=r;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=sF(e),this.isVariantNode=sL(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]&&j(e)&&e.set(a[t],!1)}}mount(t){this.current=t,rc.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)),ru.current||function(){if(ru.current=!0,s_.B)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>rl.current=t.matches;t.addListener(e),e()}else rl.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rl.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),w(this.notifyUpdate),w(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=h.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&S.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),r(),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 sO){let e=sO[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ij()}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<rp.length;e++){let i=rp[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}
1this.prevMotionValues=function(t,e,i){for(let n in e){let s=e[n],r=i[n];if(j(s))t.addValue(n,s);else if(j(r))t.addValue(n,D(s,{owner:t}));else if(r!==s)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,D(void 0!==e?e:s,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=D(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let n=void 0===this.latestValues[t]&&this.current?null!=(i=this.getBaseTargetFromProps(this.props,t))?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=n&&("string"==typeof n&&(et(n)||th(n))?n=parseFloat(n):!rd(n)&&tN.test(e)&&(n=tG(t,e)),this.setBaseTarget(t,j(n)?n.get():n)),j(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let s=o(this.props,n,null==(e=this.presenceContext)?void 0:e.custom);s&&(i=s[t])}if(n&&void 0!==i)return i;let s=this.getBaseTargetFromProps(this.props,t);return void 0===s||j(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 C),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class rf extends rm{constructor(){super(...arguments),this.KeyframeResolver=eh}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;j(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class rv extends rf{constructor(){super(...arguments),this.type="html",this.renderInstance=ri}readValueFromInstance(t,e){if(h.has(e)){let t=tq(e);return t&&t.default||0}{let i=window.getComputedStyle(t),n=(ei(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return iH(t,e)}build(t,e,i){sX(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return s7(t,e,i)}}class rg extends rf{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ij,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&re(this.current,this.renderState)}}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(h.has(e)){let t=tq(e);return t&&t.default||0}return e=rn.has(e)?e:L(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return rr(t,e,i)}onBindTransform(){this.current&&!this.renderState.dimensions&&S.postRender(this.updateDimensions)}build(t,e,i){s3(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,n){rs(t,e,i,n)}mount(t){this.isSVGTag=s6(t.tagName),super.mount(t)}}let ry=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}((ne={animation:{Feature:ip},exit:{Feature:iv},inView:{Feature:sV},tap:{Feature:sb},focus:{Feature:sf},hover:{Feature:sm},pan:{Feature:nt},drag:{Feature:i8,ProjectionNode:sh,MeasureLayout:nf},layout:{ProjectionNode:sh,MeasureLayout:nf}},ni=(t,e)=>s0(t)?new rg(e):new rv(e,{allowProjection:t!==ns.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function(t){var e,i;let{preloadedFeatures:n,createVisualElement:s,useRender:r,useVisualState:o,Component:a}=t;function l(t,e){var i,n,l;let u,h={...(0,ns.useContext)(sD.Q),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,ns.useContext)(no.L).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:d}=h,c=function(t){let{initial:e,animate:i}=function(t,e){if(sF(t)){let{initial:e,animate:i}=t;return{initial:!1===e||is(e)?e:void 0,animate:is(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,ns.useContext)(sj));return(0,ns.useMemo)(()=>({initial:e,animate:i}),[sB(e),sB(i)])}(t),p=o(t,d);if(!d&&s_.B){n=0,l=0,(0,ns.useContext)(sk).strict;let t=function(t){let{drag:e,layout:i}=sO;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
1(h);u=t.MeasureLayout,c.visualElement=function(t,e,i,n,s){var r,o;let{visualElement:a}=(0,ns.useContext)(sj),l=(0,ns.useContext)(sk),u=(0,ns.useContext)(sN.t),h=(0,ns.useContext)(sD.Q).reducedMotion,d=(0,ns.useRef)(null);n=n||l.renderer,!d.current&&n&&(d.current=n(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h}));let c=d.current,p=(0,ns.useContext)(na);c&&!c.projection&&s&&("html"===c.type||"svg"===c.type)&&function(t,e,i,n){let{layoutId:s,layout:r,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:r,alwaysMeasureLayout:!!o||a&&iY(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(d.current,i,s,p);let m=(0,ns.useRef)(!1);(0,ns.useInsertionEffect)(()=>{c&&m.current&&c.update(i,u)});let f=i[B],v=(0,ns.useRef)(!!f&&!(null==(r=window.MotionHandoffIsComplete)?void 0:r.call(window,f))&&(null==(o=window.MotionHasOptimisedAnimation)?void 0:o.call(window,f)));return(0,sz.E)(()=>{c&&(m.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),nl.render(c.render),v.current&&c.animationState&&c.animationState.animateChanges())}),(0,ns.useEffect)(()=>{c&&(!v.current&&c.animationState&&c.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var t;null==(t=window.MotionHandoffMarkAsComplete)||t.call(window,f)}),v.current=!1))}),c}(a,p,h,s,t.ProjectionNode)}return(0,nn.jsxs)(sj.Provider,{value:c,children:[u&&c.visualElement?(0,nn.jsx)(u,{visualElement:c.visualElement,...h}):null,r(a,t,(i=c.visualElement,(0,ns.useCallback)(t=>{t&&p.onMount&&p.onMount(t),i&&(t?i.mount(t):i.unmount()),e&&("function"==typeof e?e(t):iY(e)&&(e.current=t))},[i])),p,d,c.visualElement)]})}n&&function(t){for(let e in t)sO[e]={...sO[e],...t[e]}}(n),l.displayName="motion.".concat("string"==typeof a?a:"create(".concat(null!=(i=null!=(e=a.displayName)?e:a.name)?i:"",")"));let u=(0,ns.forwardRef)(l);return u[sU]=a,u}({...s0(t)?ra:rt,preloadedFeatures:ne,useRender:function(t=!1){return(e,i,n,{latestValues:s},r)=>{let o=(s0(e)?function(t,e,i,n){let s=(0,ns.useMemo)(()=>{let i=s4();return s3(i,e,s6(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};sq(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return sq(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,ns.useMemo)(()=>{let i=sK();return sX(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(i,s,r,e),a=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&(sQ(s)||!0===i&&sZ(s)||!e&&!sZ(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(i,"string"==typeof e,t),l=e!==ns.Fragment?{...a,...o,ref:n}:{},{children:u}=i,h=(0,ns.useMemo)(()=>j(u)?u.get():u,[u]);return(0,ns.createElement)(e,{...l,children:h})}}(e),createVisualElement:ni,Component:t})}))},40024:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var n=(0,i(86467).A)("outline","arrow-right","IconArrowRight",[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M13 18l6 -6",key:"svg-1"}],["path",{d:"M13 6l6 6",key:"svg-2"}]])},42801:(t,e,i)=>{"use strict";i.d(e,{B:()=>n});let n="undefined"!=typeof window},45084:(t,e,i)=>{"use strict";i.d(e,{N:()=>g});var n=i(95155),s=i(12115),r=i(57728),o=i(76168),a=i(50430),l=i(7471);class u extends s.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,i=t instanceof HTMLElement&&t.offsetWidth||0,n=this.props.sizeRef.current;n.height=e.offsetHeight||0,n.width=e.offsetWidth||0,n.top=e.offsetTop,n.left=e.offsetLeft,n.right=i-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function h(t){let{children:e,isPresent:i,anchorX:r}=t,o=(0,s.useId)(),a=(0,s.useRef)(null),h=(0,s.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:d}=(0,s.useContext)(l.Q);return(0,s.useInsertionEffect)(()=>{let{width:t,height:e,top:n,left:s,right:l}=h.current;if(i||!a.current||!t||!e)return;a.current.dataset.motionPopId=o;let u=document.createElement("style");
1return d&&(u.nonce=d),document.head.appendChild(u),u.sheet&&u.sheet.insertRule('\n [data-motion-pop-id="'.concat(o,'"] {\n position: absolute !important;\n width: ').concat(t,"px !important;\n height: ").concat(e,"px !important;\n ").concat("left"===r?"left: ".concat(s):"right: ".concat(l),"px !important;\n top: ").concat(n,"px !important;\n }\n ")),()=>{document.head.removeChild(u)}},[i]),(0,n.jsx)(u,{isPresent:i,childRef:a,sizeRef:h,children:s.cloneElement(e,{ref:a})})}let d=t=>{let{children:e,initial:i,isPresent:r,onExitComplete:l,custom:u,presenceAffectsLayout:d,mode:p,anchorX:m}=t,f=(0,o.M)(c),v=(0,s.useId)(),g=(0,s.useCallback)(t=>{for(let e of(f.set(t,!0),f.values()))if(!e)return;l&&l()},[f,l]),y=(0,s.useMemo)(()=>({id:v,initial:i,isPresent:r,custom:u,onExitComplete:g,register:t=>(f.set(t,!1),()=>f.delete(t))}),d?[Math.random(),g]:[r,g]);return(0,s.useMemo)(()=>{f.forEach((t,e)=>f.set(e,!1))},[r]),s.useEffect(()=>{r||f.size||!l||l()},[r]),"popLayout"===p&&(e=(0,n.jsx)(h,{isPresent:r,anchorX:m,children:e})),(0,n.jsx)(a.t.Provider,{value:y,children:e})};function c(){return new Map}var p=i(14905);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 v=i(69025);let g=t=>{let{children:e,custom:i,initial:a=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:h="sync",propagate:c=!1,anchorX:g="left"}=t,[y,x]=(0,p.xQ)(c),S=(0,s.useMemo)(()=>f(e),[e]),w=c&&!y?[]:S.map(m),T=(0,s.useRef)(!0),P=(0,s.useRef)(S),b=(0,o.M)(()=>new Map),[A,E]=(0,s.useState)(S),[M,C]=(0,s.useState)(S);(0,v.E)(()=>{T.current=!1,P.current=S;for(let t=0;t<M.length;t++){let e=m(M[t]);w.includes(e)?b.delete(e):!0!==b.get(e)&&b.set(e,!1)}},[M,w.length,w.join("-")]);let R=[];if(S!==A){let t=[...S];for(let e=0;e<M.length;e++){let i=M[e],n=m(i);w.includes(n)||(t.splice(e,0,i),R.push(i))}return"wait"===h&&R.length&&(t=R),C(f(t)),E(S),null}let{forceRender:V}=(0,s.useContext)(r.L);return(0,n.jsx)(n.Fragment,{children:M.map(t=>{let e=m(t),s=(!c||!!y)&&(S===M||w.includes(e));return(0,n.jsx)(d,{isPresent:s,initial:(!T.current||!!a)&&void 0,custom:i,presenceAffectsLayout:u,mode:h,onExitComplete:s?void 0:()=>{if(!b.has(e))return;b.set(e,!0);let t=!0;b.forEach(e=>{e||(t=!1)}),t&&(null==V||V(),C(P.current),c&&(null==x||x()),l&&l())},anchorX:g,children:t},e)})})}},50430:(t,e,i)=>{"use strict";i.d(e,{t:()=>n});let n=(0,i(12115).createContext)(null)},54395:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var n=(0,i(86467).A)("outline","x","IconX",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]])},57728:(t,e,i)=>{"use strict";i.d(e,{L:()=>n});let n=(0,i(12115).createContext)({})},68375:()=>{},69025:(t,e,i)=>{"use strict";i.d(e,{E:()=>s});var n=i(12115);let s=i(42801).B?n.useLayoutEffect:n.useEffect},75647:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var n=(0,i(86467).A)("outline","arrow-left","IconArrowLeft",[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M5 12l6 6",key:"svg-1"}],["path",{d:"M5 12l6 -6",key:"svg-2"}]])},76168:(t,e,i)=>{"use strict";i.d(e,{M:()=>s});var n=i(12115);function s(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},76604:(t,e,i)=>{"use strict";i.d(e,{W:()=>o});var n=i(12115),s=i(96339);let r={some:0,all:1};function o(t,{root:e,margin:i,amount:a,once:l=!1,initial:u=!1}={}){let[h,d]=(0,n.useState)(u);return(0,n.useEffect)(()=>{if(!t.current||l&&h)return;let n={root:e&&e.current||void 0,margin:i,amount:a};return function(t,e,{root:i,margin:n,amount:o="some"}={}){let a=(0,s.KJ)(t),l=new WeakMap,u=new IntersectionObserver(t=>{t.forEach(t=>{let i=l.get(t.target);if(!!i!==t.isIntersecting)if(t.isIntersecting){let i=e(t.target,t);"function"==typeof i?l.set(t.target,i):u.unobserve(t.target)}else"function"==typeof i&&(i(t),l.delete(t.target))})},{root:i,rootMargin:n,threshold:"number"==typeof o?o:r[o]});return a.forEach(t=>u.observe(t)),()=>u.disconnect()}(t.current,()=>(d(!0),l?void 0:()=>d(!1)),n)},[e,t,i,l,a]),h}},82269:(t,e,i)=>{"use strict";var n=i(49509);i(68375);var s=i(12115),r=function(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}(s),o=void 0!==n&&n.env&&!0,a=function(t){return"[object String]"===Object.prototype.toString.call(t)},l=function(){function t(t){var e=void 0===t?{}:t,i=e.name,n=void 0===i?"stylesheet":i,s=e.optimizeForSpeed,r=void 0===s?o:s;u(a(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",u("boolean"==typeof r,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=r,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var e,i=t.prototype;return i.setOptimizeForSpeed=function(t){u("boolean"==typeof t,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=t,this.inject()},i.isOptimizeForSpeed=function(){return this._optimizeForSpeed},i.inject=function(){var t=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.get
1Sheet(),this._optimizeForSpeed||(o||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(e,i){return"number"==typeof i?t._serverSheet.cssRules[i]={cssText:e}:t._serverSheet.cssRules.push({cssText:e}),i},deleteRule:function(e){t._serverSheet.cssRules[e]=null}}},i.getSheetForTag=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]},i.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},i.insertRule=function(t,e){if(u(a(t),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof e&&(e=this._serverSheet.cssRules.length),this._serverSheet.insertRule(t,e),this._rulesCount++;if(this._optimizeForSpeed){var i=this.getSheet();"number"!=typeof e&&(e=i.cssRules.length);try{i.insertRule(t,e)}catch(e){return o||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var n=this._tags[e];this._tags.push(this.makeStyleTag(this._name,t,n))}return this._rulesCount++},i.replaceRule=function(t,e){if(this._optimizeForSpeed||"undefined"==typeof window){var i="undefined"!=typeof window?this.getSheet():this._serverSheet;if(e.trim()||(e=this._deletedRulePlaceholder),!i.cssRules[t])return t;i.deleteRule(t);try{i.insertRule(e,t)}catch(n){o||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),i.insertRule(this._deletedRulePlaceholder,t)}}else{var n=this._tags[t];u(n,"old rule at index `"+t+"` not found"),n.textContent=e}return t},i.deleteRule=function(t){if("undefined"==typeof window)return void this._serverSheet.deleteRule(t);if(this._optimizeForSpeed)this.replaceRule(t,"");else{var e=this._tags[t];u(e,"rule at index `"+t+"` not found"),e.parentNode.removeChild(e),this._tags[t]=null}},i.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEac
1h(function(t){return t&&t.parentNode.removeChild(t)}),this._tags=[]):this._serverSheet.cssRules=[]},i.cssRules=function(){var t=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(e,i){return i?e=e.concat(Array.prototype.map.call(t.getSheetForTag(i).cssRules,function(e){return e.cssText===t._deletedRulePlaceholder?null:e})):e.push(null),e},[])},i.makeStyleTag=function(t,e,i){e&&u(a(e),"makeStyleTag accepts only strings as second parameter");var n=document.createElement("style");this._nonce&&n.setAttribute("nonce",this._nonce),n.type="text/css",n.setAttribute("data-"+t,""),e&&n.appendChild(document.createTextNode(e));var s=document.head||document.getElementsByTagName("head")[0];return i?s.insertBefore(n,i):s.appendChild(n),n},e=[{key:"length",get:function(){return this._rulesCount}}],function(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}();function u(t,e){if(!t)throw Error("StyleSheet: "+e+".")}var h=function(t){for(var e=5381,i=t.length;i;)e=33*e^t.charCodeAt(--i);return e>>>0},d={};function c(t,e){if(!e)return"jsx-"+t;var i=String(e),n=t+i;return d[n]||(d[n]="jsx-"+h(t+"-"+i)),d[n]}function p(t,e){"undefined"==typeof window&&(e=e.replace(/\/style/gi,"\\/style"));var i=t+e;return d[i]||(d[i]=e.replace(/__jsx-style-dynamic-selector/g,t)),d[i]}var m=function(){function t(t){var e=void 0===t?{}:t,i=e.styleSheet,n=void 0===i?null:i,s=e.optimizeForSpeed,r=void 0!==s&&s;this._sheet=n||new l({name:"styled-jsx",optimizeForSpeed:r}),this._sheet.inject(),n&&"boolean"==typeof r&&(this._sheet.setOptimizeForSpeed(r),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var e=t.prototype;return e.add=function(t){var e=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(t.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(t,e){return t[e]=0,t},{}));var i=this.getIdAndRules(t),n=i.styleId,s=i.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var r=s.map(function(t){return e._sheet.insertRule(t)}).filter(function(t){return -1!==t});this._indices[n]=r,this._instancesCounts[n]=1},e.remove=function(t){var e=this,i=this.getIdAndRules(t).styleId;if(function(t,e){if(!t)throw Error("StyleSheetRegistry: "+e+".")}(i in this._instancesCounts,"styleId: `"+i+"` not found"),this._instancesCounts[i]-=1,this._instancesCounts[i]<1){var n=this._fromServer&&this._fromServer[i];n?(n.parentNode.removeChild(n),delete this._fromServer[i]):(this._indices[i].forEac
1h(function(t){return e._sheet.deleteRule(t)}),delete this._indices[i]),delete this._instancesCounts[i]}},e.update=function(t,e){this.add(e),this.remove(t)},e.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},e.cssRules=function(){var t=this,e=this._fromServer?Object.keys(this._fromServer).map(function(e){return[e,t._fromServer[e]]}):[],i=this._sheet.cssRules();return e.concat(Object.keys(this._indices).map(function(e){return[e,t._indices[e].map(function(t){return i[t].cssText}).join(t._optimizeForSpeed?"":"\n")]}).filter(function(t){return!!t[1]}))},e.styles=function(t){var e,i;return e=this.cssRules(),void 0===(i=t)&&(i={}),e.map(function(t){var e=t[0],n=t[1];return r.default.createElement("style",{id:"__"+e,key:"__"+e,nonce:i.nonce?i.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},e.getIdAndRules=function(t){var e=t.children,i=t.dynamic,n=t.id;if(i){var s=c(n,i);return{styleId:s,rules:Array.isArray(e)?e.map(function(t){return p(s,t)}):[p(s,e)]}}return{styleId:c(n),rules:Array.isArray(e)?e:[e]}},e.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(t,e){return t[e.id.slice(2)]=e,t},{})},t}(),f=s.createContext(null);f.displayName="StyleSheetContext";var v=r.default.useInsertionEffect||r.default.useLayoutEffect,g="undefined"!=typeof window?new m:void 0;function y(t){var e=g||s.useContext(f);return e&&("undefined"==typeof window?e.add(t):v(function(){return e.add(t),function(){e.remove(t)}},[t.id,String(t.dynamic)])),null}y.dynamic=function(t){return t.map(function(t){return c(t[0],t[1])}).join(" ")},e.style=y},85319:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var n=(0,i(86467).A)("outline","arrow-narrow-right","IconArrowNarrowRight",[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M15 16l4 -4",key:"svg-1"}],["path",{d:"M15 8l4 4",key:"svg-2"}]])},86467:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var n=i(12115),s={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};let r=(t,e,i,r)=>{let o=(0,n.forwardRef)((i,o)=>{let{color:a="currentColor",size:l=24,stroke:u=2,title:h,className:d,children:c,...p}=i;return(0,n.createElement)("svg",{ref:o,...s[t],width:l,height:l,className:["tabler-icon","tabler-icon-".concat(e),d].join(" "),..."filled"===t?{fill:a}:{strokeWidth:u,stroke:a},...p},[h&&(0,n.createElement)("title",{key:"svg-title"},h),...r.map(t=>{let[e,i]=t;return(0,n.createElement)(e,i)}),...Array.isArray(c)?c:[c]])});return o.displayName="".concat(i),o}}}]);
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.