Files
e-tib.com/.next/static/chunks/638730c9f4207dea.js
2026-05-07 10:43:20 +02:00

4 lines
42 KiB
JavaScript

;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="74dc1fd8-8793-9e09-d553-dda077831ece")}catch(e){}}();
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,611920,e=>{"use strict";let t=new Set(["width","height","top","left","right","bottom",...e.i(324032).transformPropOrder]);e.s(["positionalKeys",()=>t])},818454,364646,961417,656731,679514,e=>{"use strict";var t=e.i(324032),i=e.i(707273),n=e.i(427684),r=e.i(236585),s=e.i(611920),a=e.i(339484),o=e.i(26809),l=e.i(932255),u=e.i(282466);let h=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var d=e.i(369379),c=e.i(735142),m=e.i(929289),p=e.i(808557);let f=new Set(["auto","none","0"]);var v=e.i(189863);class y extends d.KeyframeResolver{constructor(e,t,i,n,r){super(e,t,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:i}=this;if(!t||!t.current)return;super.readKeyframes();for(let i=0;i<e.length;i++){let n=e[i];if("string"==typeof n&&(n=n.trim(),(0,u.isCSSVariableToken)(n))){let r=function e(t,i,n=1){(0,o.invariant)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,s]=function(e){let t=h.exec(e);if(!t)return[,];let[,i,n,r]=t;return[`--${i??n}`,r]}(t);if(!r)return;let a=window.getComputedStyle(i).getPropertyValue(r);if(a){let e=a.trim();return(0,l.isNumericalString)(e)?parseFloat(e):e}return(0,u.isCSSVariableToken)(s)?e(s,i,n+1):s}(n,t.current);void 0!==r&&(e[i]=r),i===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!s.positionalKeys.has(i)||2!==e.length)return;let[n,r]=e,d=(0,a.findDimensionValueType)(n),c=(0,a.findDimensionValueType)(r);if((0,u.containsCSSVariable)(n)!==(0,u.containsCSSVariable)(r)&&v.positionalValues[i]){this.needsMeasurement=!0;return}if(d!==c)if((0,v.isNumOrPxType)(d)&&(0,v.isNumOrPxType)(c))for(let t=0;t<e.length;t++){let i=e[t];"string"==typeof i&&(e[t]=parseFloat(i))}else v.positionalValues[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,i=[];for(let t=0;t<e.length;t++){var n;(null===e[t]||("number"==typeof(n=e[t])?0===n:null===n||"none"===n||"0"===n||(0,c.isZeroValueString)(n)))&&i.push(t)}i.length&&function(e,t,i){let n,r=0;for(;r<e.length&&!n;){let t=e[r];"string"==typeof t&&!f.has(t)&&(0,m.analyseComplexValue)(t).values.length&&(n=e[r]),r++}if(n&&i)for(let r of t)e[r]=(0,p.getAnimatableNone)(i,n)}(e,i,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:i}=this;if(!e||!e.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=v.positionalValues[i](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let n=t[t.length-1];void 0!==n&&e.getValue(i,n).jump(n,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:i}=this;if(!e||!e.current)return;let n=e.getValue(t);n&&n.jump(this.measuredOrigin,!1);let r=i.length-1,s=i[r];i[r]=v.positionalValues[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}var g=e.i(96819);class T extends g.VisualElement{constructor(){super(...arguments),this.KeyframeResolver=y}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let i=e.style;return i?i[t]:void 0}removeValueFromRenderState(e,{vars:t,style:i}){delete t[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;(0,r.isMotionValue)(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}var b=e.i(488599),x=e.i(348971);let w=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"]);var S=e.i(604445);function A(e,{style:t,vars:i},n,r){let s,a=e.style;for(s in t)a[s]=t[s];for(s in r?.applyProjectionStyles(a,n),i)a.setProperty(s,i[s])}var M=e.i(742917);class V extends T{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=n.createBox}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,n){if(t.transformProps.has(n)){let e=(0,i.getDefaultValueType)(n);return e&&e.default||0}return n=w.has(n)?n:(0,b.camelToDash)(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,t,i){return(0,M.scrapeMotionValuesFromProps)(e,t,i)}build(e,t,i){(0,x.buildSVGAttrs)(e,t,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,t,i,n){for(let i in A(e,t,void 0,n),t.attrs)e.setAttribute(w.has(i)?i:(0,b.camelToDash)(i),t.attrs[i])}mount(e){this.isSVGTag=(0,S.isSVGTag)(e.tagName),super.mount(e)}}var C=e.i(433639);function k({top:e,left:t,right:i,bottom:n}){return{x:{min:t,max:i},y:{min:e,max:n}}}function P({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function E(e,t){if(!t)return e;let i=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}e.s(["convertBoundingBoxToBox",()=>k,"convertBoxToBoundingBox",()=>P,"transformBoxPoints",()=>E],364646);var D=e.i(870820);function O(e){return void 0===e||1===e}function F({scale:e,scaleX:t,scaleY:i}){return!O(e)||!O(t)||!O(i)}function I(e){return F(e)||L(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function L(e){var t,i;return(t=e.x)&&"0%"!==t||(i=e.y)&&"0%"!==i}function B(e,t,i){return i+t*(e-i)}function K(e,t,i,n,r){return void 0!==r&&(e=n+r*(e-n)),n+i*(e-n)+t}function R(e,t=0,i=1,n,r){e.min=K(e.min,t,i,n,r),e.max=K(e.max,t,i,n,r)}function N(e,{x:t,y:i}){R(e.x,t.translate,t.scale,t.originPoint),R(e.y,i.translate,i.scale,i.originPoint)}function G(e,t,i,n=!1){let r,s,a=i.length;if(a){t.x=t.y=1;for(let o=0;o<a;o++){s=(r=i[o]).projectionDelta;let{visualElement:a}=r.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(j(e.x,-r.scroll.offset.x),j(e.y,-r.scroll.offset.y)),s&&(t.x*=s.x.scale,t.y*=s.y.scale,N(e,s)),n&&I(r.latestValues)&&q(e,r.latestValues,r.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}function j(e,t){e.min+=t,e.max+=t}function H(e,t,i,n,r=.5){let s=(0,D.mixNumber)(e.min,e.max,r);R(e,t,i,s,n)}function W(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function q(e,t,i){let n=i??e;H(e.x,W(t.x,n.x),t.scaleX,t.scale,t.originX),H(e.y,W(t.y,n.y),t.scaleY,t.scale,t.originY)}function U(e,t){return k(E(e.getBoundingClientRect(),t))}function $(e,t,i){let n=U(e,i),{scroll:r}=t;return r&&(j(n.x,r.offset.x),j(n.y,r.offset.y)),n}e.s(["has2DTranslate",()=>L,"hasScale",()=>F,"hasTransform",()=>I],961417),e.s(["applyBoxDelta",()=>N,"applyTreeDeltas",()=>G,"scalePoint",()=>B,"transformBox",()=>q,"translateAxis",()=>j],656731),e.s(["measurePageBox",()=>$,"measureViewportBox",()=>U],679514);var z=e.i(19563),Y=e.i(645744);class _ extends T{constructor(){super(...arguments),this.type="html",this.renderInstance=A}readValueFromInstance(e,i){if(t.transformProps.has(i))return this.projection?.isProjecting?(0,C.defaultTransformValue)(i):(0,C.readTransformValue)(e,i);{let t=window.getComputedStyle(e),n=((0,u.isCSSVariableName)(i)?t.getPropertyValue(i):t[i])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return U(e,t)}build(e,t,i){(0,z.buildHTMLStyles)(e,t,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,i){return(0,Y.scrapeMotionValuesFromProps)(e,t,i)}}var X=e.i(907358),Z=e.i(592798);let J=(e,t)=>t.isSVG??(0,Z.isSVGComponent)(e)?new V(t):new _(t,{allowProjection:e!==X.Fragment});e.s(["createDomVisualElement",()=>J],818454)},136656,937642,256192,138526,e=>{"use strict";class t{constructor(e){this.isMounted=!1,this.node=e}update(){}}e.s(["Feature",()=>t],136656);var i=e.i(161560);function n(e,t,n){let r=e.getProps();return(0,i.resolveVariantFromProps)(r,t,void 0!==n?n:r.custom,e)}function r(e,t){if(e?.inherit&&t){let{inherit:i,...n}=e;return{...t,...n}}return e}function s(e,t){let i=e?.[t]??e?.default??e;return i!==e?r(i,e):i}e.s(["resolveVariant",()=>n],937642),e.s(["resolveTransition",()=>r],256192),e.s(["getValueTransition",()=>s],138526)},441169,850669,530017,92727,771559,241058,498920,805639,502225,e=>{"use strict";var t=e.i(136656),i=e.i(937642),n=e.i(138526),r=e.i(256192),s=e.i(611920),a=e.i(702915);let o=e=>Array.isArray(e);var l=e.i(926490),u=e.i(236585);function h(e,t){let i=e.getValue("willChange");if((0,u.isMotionValue)(i)&&i.add)return i.add(t);if(!i&&l.MotionGlobalConfig.WillChange){let i=new l.MotionGlobalConfig.WillChange("auto");e.addValue("willChange",i),i.add(t)}}e.s(["addValueToWillChange",()=>h],850669);var d=e.i(329957);function c(e){return e.props[d.optimizedAppearDataAttribute]}e.s(["getOptimisedAppearId",()=>c],530017);var m=e.i(490692),p=e.i(470919),f=e.i(957798);e.i(653782);let v=(e,t)=>i=>t(e(i)),y=(...e)=>e.reduce(v);e.s(["pipe",()=>y],92727);var g=e.i(493858),T=e.i(431772),b=e.i(26809),x=e.i(282466),w=e.i(33795),S=e.i(929289),A=e.i(831388),M=e.i(369844);function V(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}var C=e.i(919496);function k(e,t){return i=>i>0?t:e}var P=e.i(870820);let E=(e,t,i)=>{let n=e*e,r=i*(t*t-n)+n;return r<0?0:Math.sqrt(r)},D=[A.hex,C.rgba,M.hsla];function O(e){let t=D.find(t=>t.test(e));if((0,b.warning)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let i=t.parse(e);return t===M.hsla&&(i=function({hue:e,saturation:t,lightness:i,alpha:n}){e/=360,i/=100;let r=0,s=0,a=0;if(t/=100){let n=i<.5?i*(1+t):i+t-i*t,o=2*i-n;r=V(o,n,e+1/3),s=V(o,n,e),a=V(o,n,e-1/3)}else r=s=a=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*a),alpha:n}}(i)),i}let F=(e,t)=>{let i=O(e),n=O(t);if(!i||!n)return k(e,t);let r={...i};return e=>(r.red=E(i.red,n.red,e),r.green=E(i.green,n.green,e),r.blue=E(i.blue,n.blue,e),r.alpha=(0,P.mixNumber)(i.alpha,n.alpha,e),C.rgba.transform(r))},I=new Set(["none","hidden"]);function L(e,t){return i=>(0,P.mixNumber)(e,t,i)}function B(e){return"number"==typeof e?L:"string"==typeof e?(0,x.isCSSVariableToken)(e)?k:w.color.test(e)?F:N:Array.isArray(e)?K:"object"==typeof e?w.color.test(e)?F:R:k}function K(e,t){let i=[...e],n=i.length,r=e.map((e,i)=>B(e)(e,t[i]));return e=>{for(let t=0;t<n;t++)i[t]=r[t](e);return i}}function R(e,t){let i={...e,...t},n={};for(let r in i)void 0!==e[r]&&void 0!==t[r]&&(n[r]=B(e[r])(e[r],t[r]));return e=>{for(let t in n)i[t]=n[t](e);return i}}let N=(e,t)=>{let i=S.complex.createTransformer(t),n=(0,S.analyseComplexValue)(e),r=(0,S.analyseComplexValue)(t);if(!(n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length))return(0,b.warning)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),k(e,t);if(I.has(e)&&!r.values.length||I.has(t)&&!n.values.length)return I.has(e)?i=>i<=0?e:t:i=>i>=1?t:e;return y(K(function(e,t){let i=[],n={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){let s=t.types[r],a=e.indexes[s][n[s]],o=e.values[a]??0;i[r]=o,n[s]++}return i}(n,r),r.values),i)};function G(e,t,i){return"number"==typeof e&&"number"==typeof t&&"number"==typeof i?(0,P.mixNumber)(e,t,i):B(e)(e,t)}var j=e.i(967682);let H=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>j.frame.update(t,e),stop:()=>(0,j.cancelFrame)(t),now:()=>j.frameData.isProcessing?j.frameData.timestamp:f.time.now()}};var W=e.i(560926);function q(e){let t=0,i=e.next(t);for(;!i.done&&t<2e4;)t+=50,i=e.next(t);return t>=2e4?1/0:t}let U=.01,$=2,z=.005,Y=.5;function _(e,t){return e*Math.sqrt(1-t*t)}let X=["duration","bounce"],Z=["stiffness","damping","mass"];function J(e,t){return t.some(t=>void 0!==e[t])}function Q(e=.3,t=.3){let i,n,r,s,a,o,l="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:u,restDelta:h}=l,d=l.keyframes[0],c=l.keyframes[l.keyframes.length-1],p={done:!1,value:d},{stiffness:f,damping:v,mass:y,duration:T,velocity:x,isResolvedFromDuration:w}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!J(e,Z)&&J(e,X))if(t.velocity=0,e.visualDuration){let i=2*Math.PI/(1.2*e.visualDuration),n=i*i,r=2*(0,g.clamp)(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:1,stiffness:n,damping:r}}else{let i=function({duration:e=800,bounce:t=.3,velocity:i=0,mass:n=1}){let r,s;(0,b.warning)(e<=(0,m.secondsToMilliseconds)(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=(0,g.clamp)(.05,1,a),e=(0,g.clamp)(.01,10,(0,m.millisecondsToSeconds)(e)),a<1?(r=t=>{let n=t*a,r=n*e;return .001-(n-i)/_(t,a)*Math.exp(-r)},s=t=>{let n=t*a*e,s=Math.pow(a,2)*Math.pow(t,2)*e,o=Math.exp(-n),l=_(Math.pow(t,2),a);return(n*i+i-s)*o*(-r(t)+.001>0?-1:1)/l}):(r=t=>-.001+Math.exp(-t*e)*((t-i)*e+1),s=t=>e*e*(i-t)*Math.exp(-t*e));let o=function(e,t,i){let n=i;for(let i=1;i<12;i++)n-=e(n)/t(n);return n}(r,s,5/e);if(e=(0,m.secondsToMilliseconds)(e),isNaN(o))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(o,2)*n;return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}({...e,velocity:0});(t={...t,...i,mass:1}).isResolvedFromDuration=!0}return t}({...l,velocity:-(0,m.millisecondsToSeconds)(l.velocity||0)}),S=x||0,A=v/(2*Math.sqrt(f*y)),M=c-d,V=(0,m.millisecondsToSeconds)(Math.sqrt(f/y)),C=5>Math.abs(M);if(u||(u=C?U:$),h||(h=C?z:Y),A<1)r=_(V,A),s=(S+A*V*M)/r,i=e=>c-Math.exp(-A*V*e)*(s*Math.sin(r*e)+M*Math.cos(r*e)),a=A*V*s+M*r,o=A*V*M-s*r,n=e=>Math.exp(-A*V*e)*(a*Math.sin(r*e)+o*Math.cos(r*e));else if(1===A){i=e=>c-Math.exp(-V*e)*(M+(S+V*M)*e);let e=S+V*M;n=t=>Math.exp(-V*t)*(V*e*t-S)}else{let e=V*Math.sqrt(A*A-1);i=t=>{let i=Math.exp(-A*V*t),n=Math.min(e*t,300);return c-i*((S+A*V*M)*Math.sinh(n)+e*M*Math.cosh(n))/e};let t=(S+A*V*M)/e,r=A*V*t-M*e,s=A*V*M-t*e;n=t=>{let i=Math.exp(-A*V*t),n=Math.min(e*t,300);return i*(r*Math.sinh(n)+s*Math.cosh(n))}}let k={calculatedDuration:w&&T||null,velocity:e=>(0,m.secondsToMilliseconds)(n(e)),next:e=>{if(!w&&A<1){let t=Math.exp(-A*V*e),i=Math.sin(r*e),n=Math.cos(r*e),l=c-t*(s*i+M*n);return p.done=Math.abs((0,m.secondsToMilliseconds)(t*(a*i+o*n)))<=u&&Math.abs(c-l)<=h,p.value=p.done?c:l,p}let t=i(e);return w?p.done=e>=T:p.done=Math.abs((0,m.secondsToMilliseconds)(n(e)))<=u&&Math.abs(c-t)<=h,p.value=p.done?c:t,p},toString:()=>{let e=Math.min(q(k),2e4),t=(0,W.generateLinearEasing)(t=>k.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return k}Q.applyToOptions=e=>{let t=function(e,t=100,i){let n=i({...e,keyframes:[0,t]}),r=Math.min(q(n),2e4);return{type:"keyframes",ease:e=>n.next(r*e).value/t,duration:(0,m.millisecondsToSeconds)(r)}}(e,100,Q);return e.ease=t.ease,e.duration=(0,m.secondsToMilliseconds)(t.duration),e.type="keyframes",e};var ee=e.i(921692);function et(e,t,i){let n=Math.max(t-5,0);return(0,ee.velocityPerSecond)(i-e(n),t-n)}function ei({keyframes:e,velocity:t=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:h}){let d,c,m=e[0],p={done:!1,value:m},f=i*t,v=m+f,y=void 0===a?v:a(v);y!==v&&(f=y-m);let g=e=>-f*Math.exp(-e/n),T=e=>y+g(e),b=e=>{let t=g(e),i=T(e);p.done=Math.abs(t)<=u,p.value=p.done?y:i},x=e=>{let t;if(t=p.value,void 0!==o&&t<o||void 0!==l&&t>l){var i;d=e,c=Q({keyframes:[p.value,(i=p.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:et(T,e,p.value),damping:r,stiffness:s,restDelta:u,restSpeed:h})}};return x(0),{calculatedDuration:null,next:e=>{let t=!1;return(c||void 0!==d||(t=!0,b(e),x(e)),void 0!==d&&e>=d)?c.next(e-d):(t||b(e),p)}}}let en=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e;function er(e,t,i,n){return e===t&&i===n?p.noop:r=>0===r||1===r?r:en(function(e,t,i,n,r){let s,a,o=0;do(s=en(a=t+(i-t)/2,n,r)-e)>0?i=a:t=a;while(Math.abs(s)>1e-7&&++o<12)return a}(r,0,1,e,i),t,n)}let es=er(.42,0,1,1),ea=er(0,0,.58,1),eo=er(.42,0,.58,1),el=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,eu=e=>t=>1-e(1-t),eh=er(.33,1.53,.69,.99),ed=eu(eh),ec=el(ed),em=e=>e>=1?1:(e*=2)<1?.5*ed(e):.5*(2-Math.pow(2,-10*(e-1))),ep=e=>1-Math.sin(Math.acos(e)),ef=eu(ep),ev=el(ep);e.s(["circIn",()=>ep,"circInOut",()=>ev,"circOut",()=>ef],771559);var ey=e.i(828301);let eg={linear:p.noop,easeIn:es,easeInOut:eo,easeOut:ea,circIn:ep,circInOut:ev,circOut:ef,backIn:ed,backInOut:ec,backOut:eh,anticipate:em},eT=e=>{if((0,ey.isBezierDefinition)(e)){(0,b.invariant)(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,i,n,r]=e;return er(t,i,n,r)}return"string"==typeof e?((0,b.invariant)(void 0!==eg[e],`Invalid easing type '${e}'`,"invalid-easing-type"),eg[e]):e},eb=(e,t,i)=>{let n=t-e;return 0===n?1:(i-e)/n};function ex(e,t,{clamp:i=!0,ease:n,mixer:r}={}){let s=e.length;if((0,b.invariant)(s===t.length,"Both input and output ranges must be the same length","range-length"),1===s)return()=>t[0];if(2===s&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());let o=function(e,t,i){let n=[],r=i||l.MotionGlobalConfig.mix||G,s=e.length-1;for(let i=0;i<s;i++){let s=r(e[i],e[i+1]);t&&(s=y(Array.isArray(t)?t[i]||p.noop:t,s)),n.push(s)}return n}(t,n,r),u=o.length,h=i=>{if(a&&i<e[0])return t[0];let n=0;if(u>1)for(;n<e.length-2&&!(i<e[n+1]);n++);let r=eb(e[n],e[n+1],i);return o[n](r)};return i?t=>h((0,g.clamp)(e[0],e[s-1],t)):h}function ew(e){let t=[0];return!function(e,t){let i=e[e.length-1];for(let n=1;n<=t;n++){let r=eb(0,t,n);e.push((0,P.mixNumber)(i,1,r))}}(t,e.length-1),t}function eS({duration:e=300,keyframes:t,times:i,ease:n="easeInOut"}){var r;let s=Array.isArray(n)&&"number"!=typeof n[0]?n.map(eT):eT(n),a={done:!1,value:t[0]},o=ex((r=i&&i.length===t.length?i:ew(t),r.map(t=>t*e)),t,{ease:Array.isArray(s)?s:t.map(()=>s||eo).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}e.s(["progress",()=>eb],241058),e.s(["interpolate",()=>ex],498920),e.s(["defaultOffset",()=>ew],805639);var eA=e.i(168741);let eM={decay:ei,inertia:ei,tween:eS,keyframes:eS,spring:Q};function eV(e){"string"==typeof e.type&&(e.type=eM[e.type])}var eC=e.i(796402);let ek=e=>e/100;class eP extends eC.WithPromise{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==f.time.now()&&this.tick(f.time.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},T.activeAnimations.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;eV(e);let{type:t=eS,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=e,{keyframes:a}=e,o=t||eS;o!==eS&&"number"!=typeof a[0]&&(this.mixKeyframes=y(ek,G(a[0],a[1])),a=[0,100]);let l=o({...e,keyframes:a});"mirror"===r&&(this.mirroredGenerator=o({...e,keyframes:[...a].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=q(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let i,{generator:n,totalDuration:r,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:l}=this;if(null===this.startTime)return n.next(0);let{delay:u=0,keyframes:h,repeat:d,repeatType:c,repeatDelay:m,type:p,onUpdate:f,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?y<0:y>r;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let b=this.currentTime,x=n;if(d){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),i=e%1;!i&&e>=1&&(i=1),1===i&&t--,(t=Math.min(t,d+1))%2&&("reverse"===c?(i=1-i,m&&(i-=m/o)):"mirror"===c&&(x=a)),b=(0,g.clamp)(0,1,i)*o}T?(this.delayState.value=h[0],i=this.delayState):i=x.next(b),s&&!T&&(i.value=s(i.value));let{done:w}=i;T||null===l||(w=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return S&&p!==ei&&(i.value=(0,eA.getFinalKeyframe)(h,this.options,v,this.speed)),f&&f(i.value),S&&this.finish(),i}then(e,t){return this.finished.then(e,t)}get duration(){return(0,m.millisecondsToSeconds)(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+(0,m.millisecondsToSeconds)(e)}get time(){return(0,m.millisecondsToSeconds)(this.currentTime)}set time(e){e=(0,m.secondsToMilliseconds)(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return et(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(f.time.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=(0,m.millisecondsToSeconds)(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=H,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=t??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(f.time.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,T.activeAnimations.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}var eE=e.i(369379),eD=e.i(119058),eO=e.i(105110);let eF={anticipate:em,backInOut:ec,circInOut:ev};class eI extends eO.NativeAnimation{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in eF&&(e.ease=eF[e.ease])}(e),eV(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let a=new eP({...s,autoplay:!1}),o=Math.max(10,f.time.now()-this.startTime),l=(0,g.clamp)(0,10,o-10),u=a.sample(o).value,{name:h}=this.options;r&&h&&(0,eD.setStyle)(r,h,u),t.setWithVelocity(a.sample(Math.max(0,o-l)).value,u,l),a.stop()}}var eL=e.i(181142);let eB=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(S.complex.test(e)||"0"===e)&&!e.startsWith("url("));function eK(e){e.duration=0,e.type="keyframes"}var eR=eC,eN=e.i(287120),eG=e.i(290932);let ej=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,eH=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),eW=(0,eN.memo)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class eq extends eR.WithPromise{constructor({autoplay:e=!0,delay:t=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:a,name:o,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=f.time.now();const d={autoplay:e,delay:t,type:i,repeat:n,repeatDelay:r,repeatType:s,name:o,motionValue:l,element:u,...h},c=u?.KeyframeResolver||eE.KeyframeResolver;this.keyframeResolver=new c(a,(e,t,i)=>this.onKeyframesResolved(e,t,d,!i),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,i,n){let r;this.keyframeResolver=void 0;let{name:s,type:a,velocity:o,delay:u,isHandoff:h,onUpdate:d}=i;this.resolvedAt=f.time.now();let c=!0;!function(e,t,i,n){let r=e[0];if(null===r)return!1;if("display"===t||"visibility"===t)return!0;let s=e[e.length-1],a=eB(r,t),o=eB(s,t);return(0,b.warning)(a===o,`You are trying to animate ${t} from "${r}" to "${s}". "${a?s:r}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(function(e){let t=e[0];if(1===e.length)return!0;for(let i=0;i<e.length;i++)if(e[i]!==t)return!0}(e)||("spring"===i||(0,eL.isGenerator)(i))&&n)}(e,s,a,o)&&(c=!1,(l.MotionGlobalConfig.instantAnimations||!u)&&d?.((0,eA.getFinalKeyframe)(e,i,t)),e[0]=e[e.length-1],eK(i),i.repeat=0);let m={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...i,keyframes:e},v=c&&!h&&function(e){let{motionValue:t,name:i,repeatDelay:n,repeatType:r,damping:s,type:a,keyframes:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return eW()&&i&&(eG.acceleratedValues.has(i)||eH.has(i)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&ej.test(e[t]))return!0;return!1}(o))&&("transform"!==i||!u)&&!l&&!n&&"mirror"!==r&&0!==s&&"inertia"!==a}(m),y=m.motionValue?.owner?.current;if(v)try{r=new eI({...m,element:y})}catch{r=new eP(m)}else r=new eP(m);r.finished.then(()=>{this.notifyFinished()}).catch(p.noop),this.pendingTimeline&&(this.stopTimeline=r.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=r}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),(0,eE.flushKeyframeResolvers)()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}var eU=e.i(324032);let e$={type:"spring",stiffness:500,damping:25,restSpeed:10},ez={type:"keyframes",duration:.8},eY={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},e_=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),eX=(e,t,i,r={},s,a)=>o=>{let u=(0,n.getValueTransition)(r,e)||{},h=u.delay||r.delay||0,{elapsed:d=0}=r;d-=(0,m.secondsToMilliseconds)(h);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:e=>{t.set(e),u.onUpdate&&u.onUpdate(e)},onComplete:()=>{o(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:a?void 0:s};!function(e){for(let t in e)if(!e_.has(t))return!0;return!1}(u)&&Object.assign(c,((e,{keyframes:t})=>t.length>2?ez:eU.transformProps.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:e$:eY)(e,c)),c.duration&&(c.duration=(0,m.secondsToMilliseconds)(c.duration)),c.repeatDelay&&(c.repeatDelay=(0,m.secondsToMilliseconds)(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let p=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(eK(c),0===c.delay&&(p=!0)),(l.MotionGlobalConfig.instantAnimations||l.MotionGlobalConfig.skipAnimations||s?.shouldSkipAnimations)&&(p=!0,eK(c),c.delay=0),c.allowFlatten=!u.type&&!u.ease,p&&!a&&void 0!==t.get()){let e=(0,eA.getFinalKeyframe)(c.keyframes,u);if(void 0!==e)return void j.frame.update(()=>{c.onUpdate(e),c.onComplete()})}return u.isSync?new eP(c):new eq(c)};function eZ(e,t,{delay:l=0,transitionOverride:u,type:d}={}){let{transition:m,transitionEnd:p,...f}=t,v=e.getDefaultTransition();m=m?(0,r.resolveTransition)(m,v):v;let y=m?.reduceMotion;u&&(m=u);let g=[],T=d&&e.animationState&&e.animationState.getState()[d];for(let t in f){let i=e.getValue(t,e.latestValues[t]??null),r=f[t];if(void 0===r||T&&function({protectedKeys:e,needsAnimating:t},i){let n=e.hasOwnProperty(i)&&!0!==t[i];return t[i]=!1,n}(T,t))continue;let a={delay:l,...(0,n.getValueTransition)(m||{},t)},o=i.get();if(void 0!==o&&!i.isAnimating()&&!Array.isArray(r)&&r===o&&!a.velocity){j.frame.update(()=>i.set(r));continue}let u=!1;if(window.MotionHandoffAnimation){let i=c(e);if(i){let e=window.MotionHandoffAnimation(i,t,j.frame);null!==e&&(a.startTime=e,u=!0)}}h(e,t);let d=y??e.shouldReduceMotion;i.start(eX(t,i,r,d&&s.positionalKeys.has(t)?{type:!1}:a,e,u));let p=i.animation;p&&g.push(p)}if(p){let t=()=>j.frame.update(()=>{p&&function(e,t){let{transitionEnd:n={},transition:r={},...s}=(0,i.resolveVariant)(e,t)||{};for(let t in s={...s,...n}){var l;let i=o(l=s[t])?l[l.length-1]||0:l;e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,(0,a.motionValue)(i))}}(e,p)});g.length?Promise.all(g).then(t):t()}return g}function eJ(e,t,i,n=0,r=1){let s=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),a=e.size,o=(a-1)*n;return"function"==typeof i?i(s,a):1===r?s*n:o-s*n}function eQ(e,t,n={}){let r=(0,i.resolveVariant)(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);let a=r?()=>Promise.all(eZ(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(i=0)=>{let{delayChildren:r=0,staggerChildren:a,staggerDirection:o}=s;return function(e,t,i=0,n=0,r=0,s=1,a){let o=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),o.push(eQ(l,t,{...a,delay:i+("function"==typeof n?0:n)+eJ(e.variantChildren,l,n,r,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(o)}(e,t,i,r,a,o,n)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([a(),o(n.delay)]);{let[e,t]="beforeChildren"===l?[a,o]:[o,a];return e().then(()=>t())}}e.s(["animateMotionValue",()=>eX],502225);var e0=e.i(786843),e1=e.i(16919);let e2=e1.variantProps.length;var e9=e.i(991363);function e6(e,t){if(!Array.isArray(t))return!1;let i=t.length;if(i!==e.length)return!1;for(let n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}let e5=[...e1.variantPriorityOrder].reverse(),e3=e1.variantPriorityOrder.length;function e7(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function e4(){return{animate:e7(!0),whileInView:e7(),whileHover:e7(),whileTap:e7(),whileDrag:e7(),whileFocus:e7(),exit:e7()}}class e8 extends t.Feature{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>eQ(e,t,n)));else if("string"==typeof t)r=eQ(e,t,n);else{let s="function"==typeof t?(0,i.resolveVariant)(e,t,n.custom):t;r=Promise.all(eZ(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=e4(),r=!0,s=!1,a=t=>(n,r)=>{let s=(0,i.resolveVariant)(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(s){let{transition:e,transitionEnd:t,...i}=s;n={...n,...i,...t}}return n};function l(l){let{props:u}=e,h=function e(t){if(!t)return;if(!t.isControllingVariants){let i=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(i.initial=t.props.initial),i}let i={};for(let e=0;e<e2;e++){let n=e1.variantProps[e],r=t.props[n];((0,e0.isVariantLabel)(r)||!1===r)&&(i[n]=r)}return i}(e.parent)||{},d=[],c=new Set,m={},p=1/0;for(let t=0;t<e3;t++){var f,v;let y=e5[t],g=n[y],T=void 0!==u[y]?u[y]:h[y],b=(0,e0.isVariantLabel)(T),x=y===l?g.isActive:null;!1===x&&(p=t);let w=T===h[y]&&T!==u[y]&&b;if(w&&(r||s)&&e.manuallyAnimateOnMount&&(w=!1),g.protectedKeys={...m},!g.isActive&&null===x||!T&&!g.prevProp||(0,e9.isAnimationControls)(T)||"boolean"==typeof T)continue;if("exit"===y&&g.isActive&&!0!==x){g.prevResolvedValues&&(m={...m,...g.prevResolvedValues});continue}let S=(f=g.prevProp,"string"==typeof(v=T)?v!==f:!!Array.isArray(v)&&!e6(v,f)),A=S||y===l&&g.isActive&&!w&&b||t>p&&b,M=!1,V=Array.isArray(T)?T:[T],C=V.reduce(a(y),{});!1===x&&(C={});let{prevResolvedValues:k={}}=g,P={...k,...C},E=t=>{A=!0,c.has(t)&&(M=!0,c.delete(t)),g.needsAnimating[t]=!0;let i=e.getValue(t);i&&(i.liveStyle=!1)};for(let e in P){let t=C[e],i=k[e];if(!m.hasOwnProperty(e))(o(t)&&o(i)?e6(t,i):t===i)?void 0!==t&&c.has(e)?E(e):g.protectedKeys[e]=!0:null!=t?E(e):c.add(e)}g.prevProp=T,g.prevResolvedValues=C,g.isActive&&(m={...m,...C}),(r||s)&&e.blockInitialAnimation&&(A=!1);let D=w&&S,O=!D||M;A&&O&&d.push(...V.map(t=>{let n={type:y};if("string"==typeof t&&(r||s)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,s=(0,i.resolveVariant)(r,t);if(r.enteringChildren&&s){let{delayChildren:t}=s.transition||{};n.delay=eJ(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(c.size){let t={};if("boolean"!=typeof u.initial){let n=(0,i.resolveVariant)(e,Array.isArray(u.initial)?u.initial[0]:u.initial);n&&n.transition&&(t.transition=n.transition)}c.forEach(i=>{let n=e.getBaseTarget(i),r=e.getValue(i);r&&(r.liveStyle=!0),t[i]=n??null}),d.push({animation:t})}let y=!!d.length;return r&&(!1===u.initial||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,s=!1,y?t(d):Promise.resolve()}return{animateChanges:l,setActive:function(t,i){if(n[t].isActive===i)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,i)),n[t].isActive=i;let r=l(t);for(let e in n)n[e].protectedKeys={};return r},setAnimateFunction:function(i){t=i(e)},getState:()=>n,reset:()=>{n=e4(),s=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();(0,e9.isAnimationControls)(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}var te=t;let tt=0;class ti extends te.Feature{constructor(){super(...arguments),this.id=tt++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&!1===n){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e){let n=(0,i.resolveVariant)(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...i}=n;for(let e in i)this.node.getValue(e)?.jump(i[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}let tn={animation:{Feature:e8},exit:{Feature:ti}};e.s(["animations",()=>tn],441169)},765869,e=>{"use strict";function t(e,i,n,r={passive:!0}){return e.addEventListener(i,n,r),()=>e.removeEventListener(i,n)}e.s(["addDomEvent",()=>t])},597719,427772,e=>{"use strict";let t={x:!1,y:!1};function i(){return t.x||t.y}function n(e,t,i){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let n=document;t&&(n=t.current);let r=i?.[e]??n.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e).filter(e=>null!=e)}e.s(["isDragActive",()=>i,"isDragging",()=>t],597719),e.s(["resolveElements",()=>n],427772)},253422,e=>{"use strict";let t=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function i(e){return t.has(e.tagName)||!0===e.isContentEditable}let n=new Set(["INPUT","SELECT","TEXTAREA"]);function r(e){return n.has(e.tagName)||!0===e.isContentEditable}e.s(["isElementKeyboardAccessible",()=>i,"isElementTextInput",()=>r])},43866,94801,e=>{"use strict";let t=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function i(e){return{point:{x:e.pageX,y:e.pageY}}}e.s(["isPrimaryPointer",()=>t],94801);let n=e=>n=>t(n)&&e(n,i(n));e.s(["addPointerInfo",()=>n,"extractEventInfo",()=>i],43866)},111690,328437,e=>{"use strict";var t=e.i(597719),i=e.i(427772);function n(e,t){let n=(0,i.resolveElements)(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function r(e,i,s={}){let[a,o,l]=n(e,s);return a.forEach(e=>{let n,r=!1,s=!1,a=t=>{n&&(n(t),n=void 0),e.removeEventListener("pointerleave",u)},l=e=>{r=!1,window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",l),s&&(s=!1,a(e))},u=e=>{if("touch"!==e.pointerType){if(r){s=!0;return}a(e)}};e.addEventListener("pointerenter",r=>{if("touch"===r.pointerType||(0,t.isDragActive)())return;s=!1;let a=i(e,r);"function"==typeof a&&(n=a,e.addEventListener("pointerleave",u,o))},o),e.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",l,o)},o)}),l}e.s(["setupGesture",()=>n],328437),e.s(["hover",()=>r],111690)},870563,e=>{"use strict";var t=e.i(136656),i=e.i(111690),n=e.i(967682),r=e.i(43866);function s(e,t,i){let{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover","Start"===i);let a=s["onHover"+i];a&&n.frame.postRender(()=>a(t,(0,r.extractEventInfo)(t)))}class a extends t.Feature{mount(){let{current:e}=this.node;e&&(this.unmount=(0,i.hover)(e,(e,t)=>(s(this.node,t,"Start"),e=>s(this.node,e,"End"))))}unmount(){}}e.s(["HoverGesture",()=>a])},362962,572006,e=>{"use strict";var t=e.i(136656),i=e.i(765869),n=e.i(92727);class r extends t.Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,n.pipe)((0,i.addDomEvent)(this.node.current,"focus",()=>this.onFocus()),(0,i.addDomEvent)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}e.s(["FocusGesture",()=>r],362962);let s=(e,t)=>!!t&&(e===t||s(e,t.parentElement));e.s(["isNodeOrChild",()=>s],572006)},620722,e=>{"use strict";var t=e.i(870563),i=e.i(362962),n=e.i(136656),r=e.i(250438),s=e.i(597719),a=e.i(572006),o=e.i(94801),l=e.i(328437),u=e.i(253422);let h=new WeakSet;function d(e){return t=>{"Enter"===t.key&&e(t)}}function c(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function m(e){return(0,o.isPrimaryPointer)(e)&&!(0,s.isDragActive)()}let p=new WeakSet;var f=e.i(967682),v=e.i(43866);function y(e,t,i){let{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&f.frame.postRender(()=>r(t,(0,v.extractEventInfo)(t)))}class g extends n.Feature{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:i}=this.node.props;this.unmount=function(e,t,i={}){let[n,s,o]=(0,l.setupGesture)(e,i),f=e=>{let n=e.currentTarget;if(!m(e)||p.has(e))return;h.add(n),i.stopPropagation&&p.add(e);let r=t(n,e),o=(e,t)=>{window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",u),h.has(n)&&h.delete(n),m(e)&&"function"==typeof r&&r(e,{success:t})},l=e=>{o(e,n===window||n===document||i.useGlobalTarget||(0,a.isNodeOrChild)(n,e.target))},u=e=>{o(e,!1)};window.addEventListener("pointerup",l,s),window.addEventListener("pointercancel",u,s)};return n.forEach(e=>{(i.useGlobalTarget?window:e).addEventListener("pointerdown",f,s),(0,r.isHTMLElement)(e)&&(e.addEventListener("focus",e=>((e,t)=>{let i=e.currentTarget;if(!i)return;let n=d(()=>{if(h.has(i))return;c(i,"down");let e=d(()=>{c(i,"up")});i.addEventListener("keyup",e,t),i.addEventListener("blur",()=>c(i,"cancel"),t)});i.addEventListener("keydown",n,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),t)})(e,s)),(0,u.isElementKeyboardAccessible)(e)||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(y(this.node,t,"Start"),(e,{success:t})=>y(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:i?.tap===!1})}unmount(){}}var T=n;let b=new WeakMap,x=new WeakMap,w=e=>{let t=b.get(e.target);t&&t(e)},S=e=>{e.forEach(w)},A={some:0,all:1};class M extends T.Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:a}=i,o={root:n?n.current:void 0,rootMargin:r,threshold:"number"==typeof s?s:A[s]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,a&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),r=t?i:n;r&&r(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let i=e||document;x.has(i)||x.set(i,{});let n=x.get(i),r=JSON.stringify(t);return n[r]||(n[r]=new IntersectionObserver(S,{root:e,...t})),n[r]}(o),b.set(e,l),t.observe(e),()=>{b.delete(e),t.unobserve(e)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}let V={inView:{Feature:M},tap:{Feature:g},focus:{Feature:i.FocusGesture},hover:{Feature:t.HoverGesture}};e.s(["gestureAnimations",()=>V],620722)}]);
//# debugId=74dc1fd8-8793-9e09-d553-dda077831ece