text: /*! For license information please see 888.2639303b380d7acd3c95.js.LICENSE.txt */
  (self.webpackChunkyacd=self.webpackChunkyacd||[]).push([[888],{58594:function(t,n,e){"use strict";e.d(n,{Z:function(){return o}});var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o=function(t){var n={};return function(e){return void 0===n[e]&&(n[e]=t(e)),n[e]}}((function(t){return r.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91}))},55888:function(t,n,e){"use strict";e.r(n),e.d(n,{AnimateLayoutFeature:function(){return xi},AnimatePresence:function(){return Oi},AnimateSharedLayout:function(){return Ii},AnimationControls:function(){return ni},AnimationFeature:function(){return li},DragControls:function(){return da},DragFeature:function(){return Xo},ExitFeature:function(){return oi},GesturesFeature:function(){return ti},HTMLVisualElement:function(){return cr},MotionConfig:function(){return jr},MotionConfigContext:function(){return Hr},MotionValue:function(){return gn},PresenceContext:function(){return Sr},SharedLayoutContext:function(){return Gr},VisibilityAction:function(){return Ur},addScaleCorrection:function(){return Le},animate:function(){return la},animationControls:function(){return ei},createBatcher:function(){return Wr},createDomMotionComponent:function(){return Mi},createMotionComponent:function(){return ro},isValidMotionProp:function(){return kr},m:function(){return Ti},motion:function(){return Pi},motionValue:function(){return yn},resolveMotionValue:function(){return Yi},startAnimation:function(){return Bn},startVisualElementAnimation:function(){return Qn},transform:function(){return Ni},useAnimatedState:function(){return ga},useAnimation:function(){return ca},useCycle:function(){return fa},useDomEvent:function(){return co},useDragControls:function(){return va},useElementScroll:function(){return ta},useExternalRef:function(){return ha},useGestures:function(){return Ko},useInvertedScale:function(){return _i},useIsPresent:function(){return _r},useMotionTemplate:function(){return zi},useMotionValue:function(){return Hi},usePanGesture:function(){return Yo},usePresence:function(){return Zr},useReducedMotion:function(){return sa},useSpring:function(){return $i},useTapGesture:function(){return Zo},useTransform:function(){return Gi},useViewportScroll:function(){return oa}});var r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])})(t,n)};function o(t,n){function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var i=function(){return(i=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t}).apply(this,arguments)};function a(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(e[r[o]]=t[r[o]])}return e}function u(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(t,n){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,o,i=e.call(t),a=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return a}function c(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(s(arguments[n]));return t}var l=0,f="undefined"!=typeof window&&void 0!==window.requestAnimationFrame?function(t){return window.requestAnimationFrame(t)}:function(t){var n=Date.now(),e=Math.max(0,16.7-(n-l));l=n+e,setTimeout((function(){return t(l)}),e)},d=1/60*1e3,p=!0,v=!1,h=!1,m={delta:0,timestamp:0},g=["read","update","preRender","render","postRender"],y=function(t){return v=t},x=g.reduce((function(t,n){return t[n]=function(t){var n=[],e=[],r=0,o=!1,i=0,a=new WeakSet,u=new WeakSet,s={cancel:function(t){var n=e.indexOf(t);a.add(t),-1!==n&&e.splice(n,1)},process:function(c){var l,f;if(o=!0,n=(l=[e,n])[0],(e=l[1]).length=0,r=n.length)for(i=0;i<r;i++)(f=n[i])(c),!0!==u.has(f)||a.has(f)||(s.schedule(f),t(!0));o=!1},schedule:function(t,i,s){void 0===i&&(i=!1),void 0===s&&(s=!1);var c=s&&o,l=c?n:e;a.delete(t),i&&u.add(t),-1===l.indexOf(t)&&(l.push(t),c&&(r=n.length))}};return s}(y),t}),{}),b=g.reduce((function(t,n){var e=x[n];return t[n]=function(t,n,r){return void 0===n&&(n=!1),void 0===r&&(r=!1),v||S(),e.schedule(t,n,r),t},t}),{}),w=g.reduce((function(t,n){return t[n]=x[n].cancel,t}),{}),E=function(t){return x[t].process(m)},C=function(t){v=!1,m.delta=p?d:Math.max(Math.min(t-m.timestamp,40),1),p||(d=m.delta),m.timestamp=t,h=!0,g.forEach(E),h=!1,v&&(p=!1,f(C))},S=function(){v=!0,p=!0,h||f(C)},A=function(){return m},P=b,M=function(t,n){return function(e){return Math.max(Math.min(e,n),t)}},T=function(t){return t%1?Number(t.toFixed(5)):t},k=/(-)?(\d[\d\.]*)/g,V=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,L=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i,B={test:function(t){return"number"==typeof t},parse:parseFloat,transform:function(t){return t}},R=i(i({},B),{transform:M(0,1)}),O=i(i({},B),{default:1}),D=function(t){return{test:function(n){return"string"==typeof n&&n.endsWith(t)&&1===n.split(" ").length},parse:parseFloat,transform:function(n){return""+n+t}}},U=D("deg"),F=D("%"),I=D("px"),H=D("vh"),j=D("vw"),X=i(i({},F),{parse:function(t){return F.parse(t)/100},transform:function(t){return F.transform(100*t)}}),z=M(0,255),Y=function(t){return void 0!==t.red},W=function(t){return void 0!==t.hue};var N=function(t){return function(n){if("string"!=typeof n)return n;for(var e={},r=function(t){return t.substring(t.indexOf("(")+1,t.lastIndexOf(")"))}(n).replace(/(,|\/)/g," ").split(/ \s*/),o=0;o<4;o++)e[t[o]]=void 0!==r[o]?parseFloat(r[o]):1;return e}},G=i(i({},B),{transform:function(t){return Math.round(z(t))}});function q(t,n){return t.startsWith(n)&&L.test(t)}var Z={test:function(t){return"string"==typeof t?q(t,"rgb"):Y(t)},parse:N(["red","green","blue","alpha"]),transform:function(t){var n=t.red,e=t.green,r=t.blue,o=t.alpha,i=void 0===o?1:o;return function(t){var n=t.red,e=t.green,r=t.blue,o=t.alpha;return"rgba("+n+", "+e+", "+r+", "+(void 0===o?1:o)+")"}({red:G.transform(n),green:G.transform(e),blue:G.transform(r),alpha:T(R.transform(i))})}},_={test:function(t){return"string"==typeof t?q(t,"hsl"):W(t)},parse:N(["hue","saturation","lightness","alpha"]),transform:function(t){var n=t.hue,e=t.saturation,r=t.lightness,o=t.alpha,i=void 0===o?1:o;return function(t){var n=t.hue,e=t.saturation,r=t.lightness,o=t.alpha;return"hsla("+n+", "+e+", "+r+", "+(void 0===o?1:o)+")"}({hue:Math.round(n),saturation:F.transform(T(e)),lightness:F.transform(T(r)),alpha:T(R.transform(i))})}},$=i(i({},Z),{test:function(t){return"string"==typeof t&&q(t,"#")},parse:function(t){var n="",e="",r="";return t.length>4?(n=t.substr(1,2),e=t.substr(3,2),r=t.substr(5,2)):(n=t.substr(1,1),e=t.substr(2,1),r=t.substr(3,1),n+=n,e+=e,r+=r),{red:parseInt(n,16),green:parseInt(e,16),blue:parseInt(r,16),alpha:1}}}),K={test:function(t){return"string"==typeof t&&L.test(t)||Y(t)||W(t)},parse:function(t){return Z.test(t)?Z.parse(t):_.test(t)?_.parse(t):$.test(t)?$.parse(t):t},transform:function(t){return Y(t)?Z.transform(t):W(t)?_.transform(t):t}},J="${c}",Q="${n}",tt=function(t){return"number"==typeof t?0:t},nt={test:function(t){if("string"!=typeof t||!isNaN(t))return!1;var n=0,e=t.match(k),r=t.match(V);return e&&(n+=e.length),r&&(n+=r.length),n>0},parse:function(t){var n=t,e=[],r=n.match(V);r&&(n=n.replace(V,J),e.push.apply(e,r.map(K.parse)));var o=n.match(k);return o&&e.push.apply(e,o.map(B.parse)),e},createTransformer:function(t){var n=t,e=0,r=t.match(V),o=r?r.length:0;if(r)for(var i=0;i<o;i++)n=n.replace(r[i],J),e++;var a=n.match(k),u=a?a.length:0;if(a)for(i=0;i<u;i++)n=n.replace(a[i],Q),e++;return function(t){for(var r=n,i=0;i<e;i++)r=r.replace(i<o?J:Q,i<o?K.transform(t[i]):T(t[i]));return r}},getAnimatableNone:function(t){var n=nt.parse(t);return nt.createTransformer(t)(n.map(tt))}},et=function(t,n,e){return Math.min(Math.max(e,t),n)},rt=.001;function ot(t){var n,e,r=t.duration,o=void 0===r?800:r,i=t.bounce,a=void 0===i?.25:i,u=t.velocity,s=void 0===u?0:u,c=t.mass,l=void 0===c?1:c,f=1-a;f=et(.05,1,f),o=et(.01,10,o/1e3),f<1?(n=function(t){var n=t*f,e=n*o,r=n-s,i=it(t,f),a=Math.exp(-e);return rt-r/i*a},e=function(t){var e=t*f*o,r=e*s+s,i=Math.pow(f,2)*Math.pow(t,2)*o,a=Math.exp(-e),u=it(Math.pow(t,2),f);return(-n(t)+rt>0?-1:1)*((r-i)*a)/u}):(n=function(t){return Math.exp(-t*o)*((t-s)*o+1)-.001},e=function(t){return Math.exp(-t*o)*(o*o*(s-t))});var d=function(t,n,e){for(var r=e,o=1;o<12;o++)r-=t(r)/n(r);return r}(n,e,5/o);if(isNaN(d))return{stiffness:100,damping:10};var p=Math.pow(d,2)*l;return{stiffness:p,damping:2*f*Math.sqrt(l*p)}}function it(t,n){return t*Math.sqrt(1-n*n)}var at=["duration","bounce"],ut=["stiffness","damping","mass"];function st(t,n){return n.some((function(n){return void 0!==t[n]}))}function ct(t){var n=t.from,e=void 0===n?0:n,r=t.to,o=void 0===r?1:r,u=t.restSpeed,s=void 0===u?2:u,c=t.restDelta,l=a(t,["from","to","restSpeed","restDelta"]),f={done:!1,value:e},d=function(t){var n=i({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!st(t,ut)&&st(t,at)){var e=ot(t);(n=i(i(i({},n),e),{velocity:0,mass:1})).isResolvedFromDuration=!0}return n}(l),p=d.stiffness,v=d.damping,h=d.mass,m=d.velocity,g=d.isResolvedFromDuration,y=lt,x=lt;function b(){var t=m?-m/1e3:0,n=o-e,r=v/(2*Math.sqrt(p*h)),i=Math.sqrt(p/h)/1e3;if(null!=c||(c=Math.abs(o-e)<=1?.01:.4),r<1){var a=it(i,r);y=function(e){var u=Math.exp(-r*i*e);return o-u*((t+r*i*n)/a*Math.sin(a*e)+n*Math.cos(a*e))},x=function(e){var o=Math.exp(-r*i*e);return r*i*o*(Math.sin(a*e)*(t+r*i*n)/a+n*Math.cos(a*e))-o*(Math.cos(a*e)*(t+r*i*n)-a*n*Math.sin(a*e))}}else if(1===r)y=function(e){return o-Math.exp(-i*e)*(n+(t+i*n)*e)};else{var u=i*Math.sqrt(r*r-1);y=function(e){var a=Math.exp(-r*i*e),s=Math.min(u*e,300);return o-a*((t+r*i*n)*Math.sinh(s)+u*n*Math.cosh(s))/u}}}return b(),{next:function(t){var n=y(t);if(g)f.done=t>=l.duration;else{var e=1e3*x(t),r=Math.abs(e)<=s,i=Math.abs(o-n)<=c;f.done=r&&i}return f.value=f.done?o:n,f},flipTarget:function(){var t;m=-m,e=(t=[o,e])[0],o=t[1],b()}}}ct.needsInterpolation=function(t,n){return"string"==typeof t||"string"==typeof n};var lt=function(t){return 0},ft=function(t,n,e){var r=n-t;return 0===r?1:(e-t)/r},dt=function(t,n,e){return-e*t+e*n+t},pt=function(t,n,e){var r=t*t,o=n*n;return Math.sqrt(Math.max(0,e*(o-r)+r))},vt=[$,Z,_],ht=function(t){return vt.find((function(n){return n.test(t)}))},mt=function(t){return"'"+t+"' is not an animatable color. Use the equivalent color code instead."},gt=function(t,n){var e=ht(t),r=ht(n);mt(t),mt(n),e.transform,r.transform;var o=e.parse(t),a=r.parse(n),u=i({},o),s=e===_?dt:pt;return function(t){for(var n in u)"alpha"!==n&&(u[n]=s(o[n],a[n],t));return u.alpha=dt(o.alpha,a.alpha,t),e.transform(u)}},yt=function(t){return"number"==typeof t},xt=function(t,n){return function(e){return n(t(e))}},bt=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.reduce(xt)};function wt(t,n){return yt(t)?function(e){return dt(t,n,e)}:K.test(t)?gt(t,n):At(t,n)}var Et=function(t,n){var e=function(){for(var t=0,n=0,e=arguments.length;n<e;n++)t+=arguments[n].length;var r=Array(t),o=0;for(n=0;n<e;n++)for(var i=arguments[n],a=0,u=i.length;a<u;a++,o++)r[o]=i[a];return r}(t),r=e.length,o=t.map((function(t,e){return wt(t,n[e])}));return function(t){for(var n=0;n<r;n++)e[n]=o[n](t);return e}},Ct=function(t,n){var e=i(i({},t),n),r={};for(var o in e)void 0!==t[o]&&void 0!==n[o]&&(r[o]=wt(t[o],n[o]));return function(t){for(var n in r)e[n]=r[n](t);return e}};function St(t){for(var n=nt.parse(t),e=n.length,r=0,o=0,i=0,a=0;a<e;a++)r||"number"==typeof n[a]?r++:void 0!==n[a].hue?i++:o++;return{parsed:n,numNumbers:r,numRGB:o,numHSL:i}}var At=function(t,n){var e=nt.createTransformer(n),r=St(t),o=St(n);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&(r.numNumbers,o.numNumbers),bt(Et(r.parsed,o.parsed),e)},Pt=function(t,n){return function(e){return dt(t,n,e)}};function Mt(t,n,e){for(var r,o=[],i=e||("number"==typeof(r=t[0])?Pt:"string"==typeof r?K.test(r)?gt:At:Array.isArray(r)?Et:"object"==typeof r?Ct:void 0),a=t.length-1,u=0;u<a;u++){var s=i(t[u],t[u+1]);if(n){var c=Array.isArray(n)?n[u]:n;s=bt(c,s)}o.push(s)}return o}function Tt(t,n,e){var r=void 0===e?{}:e,o=r.clamp,i=void 0===o||o,a=r.ease,u=r.mixer,s=t.length;n.length,!a||!Array.isArray(a)||a.length,t[0]>t[s-1]&&(t=[].concat(t),n=[].concat(n),t.reverse(),n.reverse());var c=Mt(n,a,u),l=2===s?function(t,n){var e=t[0],r=t[1],o=n[0];return function(t){return o(ft(e,r,t))}}(t,c):function(t,n){var e=t.length,r=e-1;return function(o){var i=0,a=!1;if(o<=t[0]?a=!0:o>=t[r]&&(i=r-1,a=!0),!a){for(var u=1;u<e&&!(t[u]>o||u===r);u++);i=u-1}var s=ft(t[i],t[i+1],o);return n[i](s)}}(t,c);return i?function(n){return l(et(t[0],t[s-1],n))}:l}var kt=function(t){return function(n){return 1-t(1-n)}},Vt=function(t){return function(n){return n<=.5?t(2*n)/2:(2-t(2*(1-n)))/2}},Lt=function(t){return function(n){return n*n*((t+1)*n-t)}},Bt=function(t){var n=Lt(t);return function(t){return(t*=2)<1?.5*n(t):.5*(2-Math.pow(2,-10*(t-1)))}},Rt=function(t){return t},Ot=function(t){return function(n){return Math.pow(n,t)}}(2),Dt=kt(Ot),Ut=Vt(Ot),Ft=function(t){return 1-Math.sin(Math.acos(t))},It=kt(Ft),Ht=Vt(It),jt=Lt(1.525),Xt=kt(jt),zt=Vt(jt),Yt=Bt(1.525),Wt=function(t){if(1===t||0===t)return t;var n=t*t;return t<.36363636363636365?7.5625*n:t<.7272727272727273?9.075*n-9.9*t+3.4:t<.9?12.066481994459833*n-19.63545706371191*t+8.898060941828255:10.8*t*t-20.52*t+10.72},Nt=kt(Wt);function Gt(t,n){return t.map((function(){return n||Ut})).splice(0,t.length-1)}function qt(t){var n=t.from,e=void 0===n?0:n,r=t.to,o=void 0===r?1:r,i=t.ease,a=t.offset,u=t.duration,s=void 0===u?300:u,c={done:!1,value:e},l=Array.isArray(o)?o:[e,o],f=function(t,n){return t.map((function(t){return t*n}))}(null!=a?a:function(t){var n=t.length;return t.map((function(t,e){return 0!==e?e/(n-1):0}))}(l),s);function d(){return Tt(f,l,{ease:Array.isArray(i)?i:Gt(l,i)})}var p=d();return{next:function(t){return c.value=p(t),c.done=t>=s,c},flipTarget:function(){l.reverse(),p=d()}}}var Zt={keyframes:qt,spring:ct,decay:function(t){var n=t.velocity,e=void 0===n?0:n,r=t.from,o=void 0===r?0:r,i=t.power,a=void 0===i?.8:i,u=t.timeConstant,s=void 0===u?350:u,c=t.restDelta,l=void 0===c?.5:c,f=t.modifyTarget,d={done:!1,value:o},p=a*e,v=o+p,h=void 0===f?v:f(v);return h!==v&&(p=h-o),{next:function(t){var n=-p*Math.exp(-t/s);return d.done=!(n>l||n<-l),d.value=d.done?h:h+n,d},flipTarget:function(){}}}};function _t(t,n,e){return void 0===e&&(e=0),t-n-e}var $t=function(t){var n=function(n){var e=n.delta;return t(e)};return{start:function(){return P.update(n,!0,!0)},stop:function(){return w.update(n)}}};function Kt(t){var n,e,r,o,u,s=t.from,c=t.autoplay,l=void 0===c||c,f=t.driver,d=void 0===f?$t:f,p=t.elapsed,v=void 0===p?0:p,h=t.repeat,m=void 0===h?0:h,g=t.repeatType,y=void 0===g?"loop":g,x=t.repeatDelay,b=void 0===x?0:x,w=t.onPlay,E=t.onStop,C=t.onComplete,S=t.onRepeat,A=t.onUpdate,P=a(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),M=P.to,T=0,k=P.duration,V=!1,L=!0,B=function(t){if(Array.isArray(t.to))return qt;if(Zt[t.type])return Zt[t.type];var n=new Set(Object.keys(t));return n.has("ease")||n.has("duration")&&!n.has("dampingRatio")?qt:n.has("dampingRatio")||n.has("stiffness")||n.has("mass")||n.has("damping")||n.has("restSpeed")||n.has("restDelta")?ct:qt}(P);(null===(e=(n=B).needsInterpolation)||void 0===e?void 0:e.call(n,s,M))&&(u=Tt([0,100],[s,M],{clamp:!1}),s=0,M=100);var R=B(i(i({},P),{from:s,to:M}));function O(){T++,"reverse"===y?v=function(t,n,e,r){return void 0===e&&(e=0),void 0===r&&(r=!0),r?_t(n+-t,n,e):n-(t-n)+e}(v,k,b,L=T%2==0):(v=_t(v,k,b),"mirror"===y&&R.flipTarget()),V=!1,S&&S()}function D(t){if(L||(t=-t),v+=t,!V){var n=R.next(Math.max(0,v));o=n.value,u&&(o=u(o)),V=L?n.done:v<=0}null==A||A(o),V&&(0===T&&(null!=k||(k=v)),T<m?function(t,n,e,r){return r?t>=n+e:t<=-e}(v,k,b,L)&&O():(r.stop(),C&&C()))}return l&&(null==w||w(),(r=d(D)).start()),{stop:function(){null==E||E(),r.stop()}}}function Jt(t,n){return n?t*(1e3/n):0}var Qt=function(t){return t},tn=function(t){return void 0===t&&(t=Qt),function(n,e,r){var o=e-r,i=-(0-n+1)*(0-t(Math.abs(o)));return o<=0?e+i:e-i}},nn=(Math.sqrt,function(t){return t.hasOwnProperty("x")&&t.hasOwnProperty("y")}),en=function(t){return nn(t)&&t.hasOwnProperty("z")},rn=function(t,n){return Math.abs(t-n)};function on(t,n){if(yt(t)&&yt(n))return rn(t,n);if(nn(t)&&nn(n)){var e=rn(t.x,n.x),r=rn(t.y,n.y),o=en(t)&&en(n)?rn(t.z,n.z):0;return Math.sqrt(Math.pow(e,2)+Math.pow(r,2)+Math.pow(o,2))}}var an=function(t,n,e){var r=n-t;return((e-t)%r+r)%r+t},un=function(t,n){return 1-3*n+3*t},sn=function(t,n){return 3*n-6*t},cn=function(t){return 3*t},ln=function(t,n,e){return((un(n,e)*t+sn(n,e))*t+cn(n))*t},fn=function(t,n,e){return 3*un(n,e)*t*t+2*sn(n,e)*t+cn(n)};var dn=.1;function pn(t,n,e,r){if(t===n&&e===r)return Rt;for(var o=new Float32Array(11),i=0;i<11;++i)o[i]=ln(i*dn,t,e);function a(n){for(var r=0,i=1;10!==i&&o[i]<=n;++i)r+=dn;--i;var a=r+(n-o[i])/(o[i+1]-o[i])*dn,u=fn(a,t,e);return u>=.001?function(t,n,e,r){for(var o=0;o<8;++o){var i=fn(n,e,r);if(0===i)return n;n-=(ln(n,e,r)-t)/i}return n}(n,a,t,e):0===u?a:function(t,n,e,r,o){var i,a,u=0;do{(i=ln(a=n+(e-n)/2,r,o)-t)>0?e=a:n=a}while(Math.abs(i)>1e-7&&++u<10);return a}(n,r,r+dn,t,e)}return function(t){return 0===t||1===t?t:ln(a(t),n,r)}}var vn=e(67294),hn=function(t){return"object"==typeof t&&t.hasOwnProperty("current")},mn=function(){function t(){this.subscriptions=new Set}return t.prototype.add=function(t){var n=this;return this.subscriptions.add(t),function(){n.subscriptions.delete(t)}},t.prototype.notify=function(t,n,e){var r,o;if(this.subscriptions.size)try{for(var i=u(this.subscriptions),a=i.next();!a.done;a=i.next()){(0,a.value)(t,n,e)}}catch(t){r={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}},t.prototype.clear=function(){this.subscriptions.clear()},t}(),gn=function(){function t(t){var n,e=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new mn,this.renderSubscribers=new mn,this.canTrackVelocity=!1,this.updateAndNotify=function(t,n){void 0===n&&(n=!0),e.prev=e.current,e.current=t,e.prev!==e.current&&e.updateSubscribers.notify(e.current),n&&e.renderSubscribers.notify(e.current);var r=A(),o=r.delta,i=r.timestamp;e.lastUpdated!==i&&(e.timeDelta=o,e.lastUpdated=i,P.postRender(e.scheduleVelocityCheck))},this.scheduleVelocityCheck=function(){return P.postRender(e.velocityCheck)},this.velocityCheck=function(t){t.timestamp!==e.lastUpdated&&(e.prev=e.current)},this.set(t,!1),this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n)))}return t.prototype.onChange=function(t){return this.updateSubscribers.add(t)},t.prototype.clearListeners=function(){this.updateSubscribers.clear()},t.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},t.prototype.attach=function(t){this.passiveEffect=t},t.prototype.set=function(t,n){void 0===n&&(n=!0),n&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,n)},t.prototype.get=function(){return this.current},t.prototype.getPrevious=function(){return this.prev},t.prototype.getVelocity=function(){return this.canTrackVelocity?Jt(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},t.prototype.start=function(t){var n=this;return this.stop(),new Promise((function(e){n.stopAnimation=t(e)})).then((function(){return n.clearAnimation()}))},t.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},t.prototype.isAnimating=function(){return!!this.stopAnimation},t.prototype.clearAnimation=function(){this.stopAnimation=null},t.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},t}();function yn(t){return new gn(t)}var xn=function(t){return 1e3*t},bn={linear:Rt,easeIn:Ot,easeInOut:Ut,easeOut:Dt,circIn:Ft,circInOut:Ht,circOut:It,backIn:jt,backInOut:zt,backOut:Xt,anticipate:Yt,bounceIn:Nt,bounceInOut:function(t){return t<.5?.5*(1-Wt(1-2*t)):.5*Wt(2*t-1)+.5},bounceOut:Wt},wn=function(t){if(Array.isArray(t)){t.length;var n=s(t,4);return pn(n[0],n[1],n[2],n[3])}return"string"==typeof t?bn[t]:t},En=function(t,n){return"zIndex"!==t&&(!("number"!=typeof n&&!Array.isArray(n))||!("string"!=typeof n||!nt.test(n)||n.startsWith("url(")))},Cn=function(t){return Array.isArray(t)},Sn=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},An=function(t){return{type:"spring",stiffness:550,damping:0===t?100:30,restDelta:.01,restSpeed:10}},Pn=function(){return{type:"keyframes",ease:"linear",duration:.3}},Mn=function(t){return{type:"keyframes",duration:.8,values:t}},Tn={x:Sn,y:Sn,z:Sn,rotate:Sn,rotateX:Sn,rotateY:Sn,rotateZ:Sn,scaleX:An,scaleY:An,scale:An,opacity:Pn,backgroundColor:Pn,color:Pn,default:An};function kn(t){var n=t.yoyo,e=t.loop,r=t.flip,o=t.ease,u=t.times,s=a(t,["yoyo","loop","flip","ease","times"]),c=i({},s);return u&&(c.offset=u),s.duration&&(c.duration=xn(s.duration)),s.repeatDelay&&(c.repeatDelay=xn(s.repeatDelay)),o&&(c.ease=function(t){return Array.isArray(t)&&"number"!=typeof t[0]}(o)?o.map(wn):wn(o)),"tween"===s.type&&(c.type="keyframes"),n?c.repeatType="reverse":e?c.repeatType="loop":r&&(c.repeatType="mirror"),c.repeat=e||n||r||s.repeat,"spring"!==s.type&&(c.type="keyframes"),c}function Vn(t,n,e){var r,o,u,s;return Array.isArray(n.to)&&(null!==(r=t.duration)&&void 0!==r||(t.duration=.8)),function(t){Array.isArray(t.to)&&null===t.to[0]&&(t.to=c(t.to),t.to[0]=t.from)}(n),function(t){t.when,t.delay,t.delayChildren,t.staggerChildren,t.staggerDirection,t.repeat,t.repeatType,t.repeatDelay,t.from;var n=a(t,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(n).length}(t)||(t=i(i({},t),(o=e,u=n.to,s=Cn(u)?Mn:Tn[o]||Tn.default,i({to:u},s(u))))),i(i({},n),kn(t))}function Ln(t,n,e,r,o){var a,u=function(t,n){return t[n]||t.default||t}(r,t),s=null!==(a=u.from)&&void 0!==a?a:n.get(),c=En(t,e);"none"===s&&c&&"string"==typeof e&&(s=nt.getAnimatableNone(e));var l=En(t,s);return l&&c&&!1!==u.type?function(){var r={from:s,to:e,velocity:n.getVelocity(),onComplete:o,onUpdate:function(t){return n.set(t)}};return"inertia"===u.type||"decay"===u.type?function(t){var n,e=t.from,r=void 0===e?0:e,o=t.velocity,a=void 0===o?0:o,u=t.min,s=t.max,c=t.power,l=void 0===c?.8:c,f=t.timeConstant,d=void 0===f?750:f,p=t.bounceStiffness,v=void 0===p?500:p,h=t.bounceDamping,m=void 0===h?10:h,g=t.restDelta,y=void 0===g?1:g,x=t.modifyTarget,b=t.driver,w=t.onUpdate,E=t.onComplete;function C(t){return void 0!==u&&t<u||void 0!==s&&t>s}function S(t){return void 0===u?s:void 0===s||Math.abs(u-t)<Math.abs(s-t)?u:s}function P(t){null==n||n.stop(),n=Kt(i(i({},t),{driver:b,onUpdate:function(n){var e;null==w||w(n),null===(e=t.onUpdate)||void 0===e||e.call(t,n)},onComplete:E}))}function M(t){P(i({type:"spring",stiffness:v,damping:m,restDelta:y},t))}if(C(r))M({from:r,velocity:a,to:S(r)});else{var T=l*a+r;void 0!==x&&(T=x(T));var k,V,L=S(T),B=L===u?-1:1;P({type:"decay",from:r,velocity:a,timeConstant:d,power:l,restDelta:y,modifyTarget:x,onUpdate:C(T)?function(t){k=V,V=t,a=Jt(t-k,A().delta),(1===B&&t>L||-1===B&&t<L)&&M({from:t,to:L,velocity:a})}:void 0})}return{stop:function(){return null==n?void 0:n.stop()}}}(i(i({},r),u)):Kt(i(i({},Vn(u,r,t)),{onUpdate:function(t){var n;r.onUpdate(t),null===(n=u.onUpdate)||void 0===n||n.call(u,t)},onComplete:function(){var t;r.onComplete(),null===(t=u.onComplete)||void 0===t||t.call(u)}}))}:function(){var t;return n.set(e),o(),null===(t=null==u?void 0:u.onComplete)||void 0===t||t.call(u),{stop:function(){}}}}function Bn(t,n,e,r){return void 0===r&&(r={}),n.start((function(o){var i,a,u=Ln(t,n,e,r,o),s=function(t,n){var e,r,o,i,a;return null!==(a=null!==(i=null!==(r=null===(e=t[n])||void 0===e?void 0:e.delay)&&void 0!==r?r:null===(o=t.default)||void 0===o?void 0:o.delay)&&void 0!==i?i:t.delay)&&void 0!==a?a:0}(r,t),c=function(){return a=u()};return s?i=setTimeout(c,xn(s)):c(),function(){clearTimeout(i),null==a||a.stop()}}))}var Rn=function(t){return Cn(t)?t[t.length-1]||0:t},On=i(i({},B),{transform:Math.round}),Dn={color:K,backgroundColor:K,outlineColor:K,fill:K,stroke:K,borderColor:K,borderTopColor:K,borderRightColor:K,borderBottomColor:K,borderLeftColor:K,borderWidth:I,borderTopWidth:I,borderRightWidth:I,borderBottomWidth:I,borderLeftWidth:I,borderRadius:I,radius:I,borderTopLeftRadius:I,borderTopRightRadius:I,borderBottomRightRadius:I,borderBottomLeftRadius:I,width:I,maxWidth:I,height:I,maxHeight:I,size:I,top:I,right:I,bottom:I,left:I,padding:I,paddingTop:I,paddingRight:I,paddingBottom:I,paddingLeft:I,margin:I,marginTop:I,marginRight:I,marginBottom:I,marginLeft:I,rotate:U,rotateX:U,rotateY:U,rotateZ:U,scale:O,scaleX:O,scaleY:O,scaleZ:O,skew:U,skewX:U,skewY:U,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:R,originX:X,originY:X,originZ:I,zIndex:On,fillOpacity:R,strokeOpacity:R,numOctaves:On},Un=[B,I,F,U,j,H,{test:function(t){return"auto"===t},parse:function(t){return t}}],Fn=function(t){return function(n){return n.test(t)}},In=function(t){return Un.find(Fn(t))},Hn=c(Un,[K,nt]),jn=function(t){return Hn.find(Fn(t))},Xn=function(t){return Dn[t]},zn=function(t,n){return n&&"number"==typeof t?n.transform(t):t};function Yn(t){return Array.isArray(t)}function Wn(t){return"string"==typeof t||Yn(t)}function Nn(t,n,e){var r={};return n?(r=function(t){return"function"==typeof t}(n)?n(null!=e?e:t.getVariantPayload(),function(t){var n={};return t.forEachValue((function(t,e){return n[e]=t.get()})),n}(t),function(t){var n={};return t.forEachValue((function(t,e){return n[e]=t.getVelocity()})),n}(t)):n,i({transition:t.getDefaultTransition()},r)):r}function Gn(t,n,e){t.hasValue(n)?t.getValue(n).set(e):t.addValue(n,yn(e))}function qn(t,n,e){var r=(void 0===e?{}:e).priority,o=t.makeTargetAnimatable(Nn(t,n),!1),u=o.transitionEnd,s=void 0===u?{}:u,c=(o.transition,a(o,["transitionEnd","transition"]));for(var l in c=i(i({},c),s)){var f=Rn(c[l]);Gn(t,l,f),r||(t.baseTarget[l]=f)}}function Zn(t,n){c(n).reverse().forEach((function(e){var r;qn(t,t.getVariant(e)),null===(r=t.variantChildren)||void 0===r||r.forEach((function(t){Zn(t,n)}))}))}function _n(t,n){return Array.isArray(n)?Zn(t,n):"string"==typeof n?Zn(t,[n]):void qn(t,n)}function $n(t,n,e){var r,o,i,a=Object.keys(n).filter((function(n){return!t.hasValue(n)})),u=a.length;if(u)for(var s=0;s<u;s++){var c=a[s],l=n[c],f=null;if(Array.isArray(l)&&(f=l[0]),null===f){var d=null!==(r=e[c])&&void 0!==r?r:t.readNativeValue(c);f=void 0!==d?d:n[c]}"string"==typeof f&&/^\-?\d*\.?\d+$/.test(f)?f=parseFloat(f):!jn(f)&&nt.test(l)&&(f=nt.getAnimatableNone(l)),t.addValue(c,yn(f)),null!==(o=(i=e)[c])&&void 0!==o||(i[c]=f),t.baseTarget[c]=f}}function Kn(t,n){if(n)return(n[t]||n.default||n).from}function Jn(t,n,e){var r,o,i={};for(var a in t)i[a]=null!==(r=Kn(a,n))&&void 0!==r?r:null===(o=e.getValue(a))||void 0===o?void 0:o.get();return i}function Qn(t,n,e){var r;return void 0===e&&(e={}),e.priority&&t.activeOverrides.add(e.priority),t.resetIsAnimating(e.priority),r=Yn(n)?function(t,n,e){var r=c(n).reverse().map((function(n){return te(t,n,e)}));return Promise.all(r)}(t,n,e):Wn(n)?te(t,n,e):ne(t,n,e),t.onAnimationStart(),r.then((function(){return t.onAnimationComplete()}))}function te(t,n,e){var r,o=e&&e.priority||0,i=t.getVariant(n),a=Nn(t,i,e&&e.custom),u=a.transition||{},c=i?function(){return ne(t,a,e)}:function(){return Promise.resolve()},l=(null===(r=t.variantChildrenOrder)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var i=u.delayChildren;return function(t,n,e,r,o,i,a){void 0===e&&(e=0);void 0===r&&(r=0);void 0===o&&(o=1);void 0===i&&(i=0);var u=[],s=(t.variantChildrenOrder.size-1)*r,c=1===o?function(t){return t*r}:function(t){return s-t*r};return Array.from(t.variantChildrenOrder).forEach((function(t,r){var o=te(t,n,{priority:i,delay:e+c(r),custom:a});u.push(o)})),Promise.all(u)}(t,n,(void 0===i?0:i)+r,u.staggerChildren,u.staggerDirection,o,null==e?void 0:e.custom)}:function(){return Promise.resolve()},f=u.when;if(f){var d=s("beforeChildren"===f?[c,l]:[l,c],2),p=d[0],v=d[1];return p().then(v)}return Promise.all([c(),l(null==e?void 0:e.delay)])}function ne(t,n,e){var r=void 0===e?{}:e,o=r.delay,u=void 0===o?0:o,s=r.priority,c=void 0===s?0:s,l=r.transitionOverride,f=r.custom,d=Nn(t,n,f);l&&(d.transition=l);var p=t.makeTargetAnimatable(d),v=p.transitionEnd,h=p.transition,m=a(p,["transitionEnd","transition"]);c&&(t.resolvedOverrides[c]=m);var g=[];for(var y in m){var x=t.getValue(y);if(x&&m&&void 0!==m[y]){var b=m[y];c||(t.baseTarget[y]=Rn(b)),t.isAnimating.has(y)||(t.isAnimating.add(y),g.push(Bn(y,x,b,i({delay:u},h))))}}var w=Promise.all(g);return v?w.then((function(){return qn(t,v,{priority:c})})):w}function ee(t,n,e){var r;t.overrides[e]=n,null===(r=t.variantChildren)||void 0===r||r.forEach((function(t){ee(t,n,e)}))}function re(t,n){var e=t.overrides[n];if(e)return Qn(t,e,{priority:n})}function oe(t,n){var e;if(null===(e=t.variantChildrenOrder)||void 0===e||e.forEach((function(t){oe(t,n)})),t.overrides[n]){t.activeOverrides.delete(n);var r=ie(t);if(t.resetIsAnimating(),r)t.overrides[r]&&re(t,r);var o=t.resolvedOverrides[n];if(o){var i={};for(var a in t.baseTarget)void 0!==o[a]&&(i[a]=t.baseTarget[a]);t.onAnimationStart(),ne(t,i).then((function(){t.onAnimationComplete()}))}}}function ie(t){return t.activeOverrides.size?Math.max.apply(Math,c(Array.from(t.activeOverrides))):0}var ae=function(){function t(t,n){var e=this;this.children=new Set,this.baseTarget={},this.overrides=[],this.resolvedOverrides=[],this.activeOverrides=new Set,this.isAnimating=new Set,this.latest={},this.values=new Map,this.valueSubscriptions=new Map,this.config={},this.isMounted=!1,this.update=function(){return e.config.onUpdate(e.latest)},this.triggerRender=function(){return e.render()},this.ref=function(t){t?e.mount(t):e.unmount(),e.externalRef&&("function"==typeof e.externalRef?e.externalRef(t):hn(e.externalRef)&&(e.externalRef.current=t))},this.parent=t,this.rootParent=t?t.rootParent:this,this.treePath=t?c(t.treePath,[t]):[],this.depth=t?t.depth+1:0,this.externalRef=n}return t.prototype.getVariantPayload=function(){return this.config.custom},t.prototype.getVariant=function(t){var n;return null===(n=this.config.variants)||void 0===n?void 0:n[t]},t.prototype.addVariantChild=function(t){this.variantChildren||(this.variantChildren=new Set),this.variantChildren.add(t)},t.prototype.addVariantChildOrder=function(t){this.variantChildrenOrder||(this.variantChildrenOrder=new Set),this.variantChildrenOrder.add(t)},t.prototype.onAnimationStart=function(){var t,n;null===(n=(t=this.config).onAnimationStart)||void 0===n||n.call(t)},t.prototype.onAnimationComplete=function(){var t,n;this.isMounted&&(null===(n=(t=this.config).onAnimationComplete)||void 0===n||n.call(t))},t.prototype.getDefaultTransition=function(){return this.config.transition},t.prototype.resetIsAnimating=function(t){var n;void 0===t&&(t=0),this.isAnimating.clear(),t<ie(this)&&this.checkOverrideIsAnimating(t),null===(n=this.variantChildren)||void 0===n||n.forEach((function(n){return n.resetIsAnimating(t)}))},t.prototype.checkOverrideIsAnimating=function(t){for(var n=this.overrides.length,e=t+1;e<n;e++){var r=this.resolvedOverrides[e];if(r)for(var o in r)this.isAnimating.add(o)}},t.prototype.subscribe=function(t){var n=this;return this.children.add(t),function(){return n.children.delete(t)}},t.prototype.hasValue=function(t){return this.values.has(t)},t.prototype.addValue=function(t,n){this.hasValue(t)&&this.removeValue(t),this.values.set(t,n),this.setSingleStaticValue(t,n.get()),this.subscribeToValue(t,n)},t.prototype.removeValue=function(t){var n;null===(n=this.valueSubscriptions.get(t))||void 0===n||n(),this.valueSubscriptions.delete(t),this.values.delete(t),delete this.latest[t]},t.prototype.getValue=function(t,n){var e=this.values.get(t);return void 0===e&&void 0!==n&&(e=new gn(n),this.addValue(t,e)),e},t.prototype.forEachValue=function(t){this.values.forEach(t)},t.prototype.getInstance=function(){return this.element},t.prototype.updateConfig=function(t){void 0===t&&(t={}),this.config=i({},t)},t.prototype.setSingleStaticValue=function(t,n){this.latest[t]=n},t.prototype.setStaticValues=function(t,n){if("string"==typeof t)this.setSingleStaticValue(t,n);else for(var e in t)this.setSingleStaticValue(e,t[e])},t.prototype.scheduleRender=function(){P.render(this.triggerRender,!1,!0)},t.prototype.scheduleUpdateLayoutDelta=function(){P.preRender(this.rootParent.updateLayoutDelta,!1,!0)},t.prototype.subscribeToValue=function(t,n){var e=this,r=n.onChange((function(n){e.setSingleStaticValue(t,n),e.element&&e.config.onUpdate&&P.update(e.update,!1,!0)})),o=n.onRenderRequest((function(){e.element&&e.scheduleRender()}));this.valueSubscriptions.set(t,(function(){r(),o()}))},t.prototype.mount=function(t){this.parent&&(this.removeFromParent=this.parent.subscribe(this)),this.element=this.current=t},t.prototype.unmount=function(){var t=this;this.forEachValue((function(n,e){return t.removeValue(e)})),w.update(this.update),w.render(this.render),this.removeFromParent&&this.removeFromParent()},t}();function ue(t){return t}function se(t){var n=t.top;return{x:{min:t.left,max:t.right},y:{min:n,max:t.bottom}}}function ce(t){return{x:i({},t.x),y:i({},t.y)}}var le={translate:0,scale:1,origin:0,originPoint:0};function fe(){return{x:i({},le),y:i({},le)}}var de=["","X","Y","Z"],pe=new Set,ve=["transformPerspective","x","y","z"];function he(t,n){return ve.indexOf(t)-ve.indexOf(n)}["perspective","translate","scale","rotate","skew"].forEach((function(t){var n=new Set(["rotate","skew"]).has(t);de.forEach((function(e){var r=t+e;ve.push(r),n&&pe.add(r)}))}));var me=new Set(ve);function ge(t){return me.has(t)}var ye=new Set(["originX","originY","originZ"]);function xe(t){return ye.has(t)}var be={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function we(t,n){var e=t.x,r=t.y;return"translate3d("+e.translate/n.x+"px, "+r.translate/n.y+"px, 0) scale("+e.scale+", "+r.scale+")"}var Ee=we(fe(),{x:1,y:1});function Ce(t){return t.startsWith("--")}function Se(t){return"string"==typeof t&&t.startsWith("var(--")}var Ae=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Pe(t,n,e){void 0===e&&(e=1);var r=s(function(t){var n=Ae.exec(t);if(!n)return[,];var e=s(n,3);return[e[1],e[2]]}(t),2),o=r[0],i=r[1];if(o){var a=window.getComputedStyle(n).getPropertyValue(o);return a?a.trim():Se(i)?Pe(i,n,e+1):i}}function Me(t,n){return t/(n.max-n.min)*100}var Te="_$css";var ke={process:function(t,n){if("string"==typeof t){if(!I.test(t))return t;t=parseFloat(t)}return Me(t,n.x)+"% "+Me(t,n.y)+"%"}},Ve={borderRadius:i(i({},ke),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:ke,borderTopRightRadius:ke,borderBottomLeftRadius:ke,borderBottomRightRadius:ke,boxShadow:{process:function(t,n,e,r){var o=t,i=t.includes("var("),a=[];i&&(t=t.replace(Ae,(function(t){return a.push(t),Te})));var u=nt.parse(t);if(u.length>5)return o;var s=nt.createTransformer(t),c="number"!=typeof u[0]?1:0,l=e.x.scale*r.x,f=e.y.scale*r.y;u[0+c]/=l,u[1+c]/=f;var d=dt(l,f,.5);"number"==typeof u[2+c]&&(u[2+c]/=d),"number"==typeof u[3+c]&&(u[3+c]/=d);var p=s(u);if(i){var v=0;p=p.replace(Te,(function(){var t=a[v];return v++,t}))}return p}}};function Le(t){for(var n in t)Ve[n]=t[n]}function Be(t,n,e,r,o,i,a,u,s,c,l,f){var d=a.enableHardwareAcceleration,p=a.transformTemplate,v=a.allowTransformNone;i.length=0;var h=!1,m=!1,g=!0;for(var y in t){var x=t[y],b=Xn(y),w=zn(x,b);if(ge(y)){if(h=!0,r[y]=w,i.push(y),!g)continue;x!==(void 0!==b.default?b.default:0)&&(g=!1)}else if(xe(y))o[y]=w,m=!0;else if("transform"!==y||"function"!=typeof x){var E=Ce(y)?e:n;if(u&&Ve[y]){var C=Ve[y].process(x,f,s,l),S=Ve[y].applyTo;if(S)for(var A=S.length,P=0;P<A;P++)E[S[P]]=C;else E[y]=C}else E[y]=w}}u?(n.transform=we(c,l),n.transform===Ee&&(n.transform=""),h&&(n.transform+=" "+function(t,n){var e="";n.sort(he);for(var r=n.length,o=0;o<r;o++){var i=n[o];pe.has(i)&&(e+=i+"("+t[i]+") ")}return e}(r,i),n.transform=n.transform.trim()),p&&(n.transform=p(r,n.transform)),n.transformOrigin=function(t){var n=t.x,e=t.y;return 100*n.origin+"% "+100*e.origin+"% 0"}(c)):(h&&(n.transform=function(t,n,e,r,o,i){void 0===o&&(o=!0),void 0===i&&(i=!0);var a="";n.sort(he);for(var u=!1,s=n.length,c=0;c<s;c++){var l=n[c];a+=(be[l]||l)+"("+t[l]+") ","z"===l&&(u=!0)}return!u&&o?a+="translateZ(0)":a=a.trim(),e?a=e(t,r?"":a):i&&r&&(a="none"),a}(r,i,p,g,d,v)),m&&(n.transformOrigin=function(t){var n=t.originX,e=void 0===n?"50%":n,r=t.originY,o=void 0===r?"50%":r,i=t.originZ;return e+" "+o+" "+(void 0===i?0:i)}(o)))}function Re(t,n){t.min=n.min,t.max=n.max}function Oe(t,n,e){return e+n*(t-e)}function De(t,n,e,r,o){return void 0!==o&&(t=Oe(t,o,r)),Oe(t,e,r)+n}function Ue(t,n,e,r,o){void 0===n&&(n=0),void 0===e&&(e=1),t.min=De(t.min,n,e,r,o),t.max=De(t.max,n,e,r,o)}function Fe(t,n){var e=n.x,r=n.y;Ue(t.x,e.translate,e.scale,e.originPoint),Ue(t.y,r.translate,r.scale,r.originPoint)}function Ie(t,n,e,r){var o=s(r,3),i=o[0],a=o[1],u=o[2];t.min=n.min,t.max=n.max;var c=void 0!==e[u]?e[u]:.5,l=dt(n.min,n.max,c);Ue(t,e[i],e[a],l,e.scale)}var He=["x","scaleX","originX"],je=["y","scaleY","originY"];function Xe(t,n,e,r,o){return t=Oe(t-=n,1/e,r),void 0!==o&&(t=Oe(t,1/o,r)),t}function ze(t,n,e){var r=s(e,3),o=r[0],i=r[1],a=r[2];!function(t,n,e,r,o){void 0===n&&(n=0),void 0===e&&(e=1),void 0===r&&(r=.5);var i=dt(t.min,t.max,r)-n;t.min=Xe(t.min,n,e,i,o),t.max=Xe(t.max,n,e,i,o)}(t,n[o],n[i],n[a],n.scale)}function Ye(t,n,e){return void 0===n&&(n=0),void 0===e&&(e=.01),on(t,n)<e}function We(t){return t.max-t.min}function Ne(t,n){var e=.5,r=We(t),o=We(n);return o>r?e=ft(n.min,n.max-r,t.min):r>o&&(e=ft(t.min,t.max-o,n.min)),et(0,1,e)}function Ge(t,n,e,r){t.origin=void 0===r?Ne(n,e):r,t.originPoint=dt(n.min,n.max,t.origin),t.scale=We(e)/We(n),Ye(t.scale,1,1e-4)&&(t.scale=1),t.translate=dt(e.min,e.max,t.origin)-t.originPoint,Ye(t.translate)&&(t.translate=0)}function qe(t,n,e,r){Ge(t.x,n.x,e.x,r),Ge(t.y,n.y,e.y,r)}function Ze(t){return[t("x"),t("y")]}function _e(t,n){return se(function(t,n){var e=t.top,r=t.left,o=t.bottom,i=t.right;void 0===n&&(n=ue);var a=n({x:r,y:e}),u=n({x:i,y:o});return{top:a.y,left:a.x,bottom:u.y,right:u.x}}(t.getBoundingClientRect(),n))}var $e,Ke=new Set(["width","height","top","left","right","bottom","x","y"]),Je=function(t){return Ke.has(t)},Qe=function(t,n){t.set(n,!1),t.set(n)},tr=function(t){return t===B||t===I};!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}($e||($e={}));var nr=function(t,n){return parseFloat(t.split(", ")[n])},er=function(t,n){return function(e,r){var o=r.transform;if("none"===o||!o)return 0;var i=o.match(/^matrix3d\((.+)\)$/);if(i)return nr(i[1],n);var a=o.match(/^matrix\((.+)\)$/);return a?nr(a[1],t):0}},rr=new Set(["x","y","z"]),or=ve.filter((function(t){return!rr.has(t)}));var ir={width:function(t){var n=t.x;return n.max-n.min},height:function(t){var n=t.y;return n.max-n.min},top:function(t,n){var e=n.top;return parseFloat(e)},left:function(t,n){var e=n.left;return parseFloat(e)},bottom:function(t,n){var e=t.y,r=n.top;return parseFloat(r)+(e.max-e.min)},right:function(t,n){var e=t.x,r=n.left;return parseFloat(r)+(e.max-e.min)},x:er(4,13),y:er(5,14)},ar=function(t,n,e,r){void 0===e&&(e={}),void 0===r&&(r={}),n=i({},n),r=i({},r);var o=Object.keys(n).filter(Je),a=[],u=!1,c=[];if(o.forEach((function(o){var i=t.getValue(o);if(t.hasValue(o)){var s,l=e[o],f=n[o],d=In(l);if(Cn(f))for(var p=f.length,v=null===f[0]?1:0;v<p;v++)s?In(f[v]):(s=In(f[v]))===d||tr(d)&&tr(s);else s=In(f);if(d!==s)if(tr(d)&&tr(s)){var h=i.get();"string"==typeof h&&i.set(parseFloat(h)),"string"==typeof f?n[o]=parseFloat(f):Array.isArray(f)&&s===I&&(n[o]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==s?void 0:s.transform)&&(0===l||0===f)?0===l?i.set(s.transform(l)):n[o]=d.transform(f):(u||(a=function(t){var n=[];return or.forEach((function(e){var r=t.getValue(e);void 0!==r&&(n.push([e,r.get()]),r.set(e.startsWith("scale")?1:0))})),n.length&&t.render(),n}(t),u=!0),c.push(o),r[o]=void 0!==r[o]?r[o]:n[o],Qe(i,f))}})),c.length){var l=function(t,n,e){var r=n.getBoundingBox(),o=n.getComputedStyle(),i=o.display,a={top:o.top,left:o.left,bottom:o.bottom,right:o.right,transform:o.transform};"none"===i&&n.setStaticValues("display",t.display||"block"),n.render();var u=n.getBoundingBox();return e.forEach((function(e){var i=n.getValue(e);Qe(i,ir[e](r,a)),t[e]=ir[e](u,o)})),t}(n,t,c);return a.length&&a.forEach((function(n){var e=s(n,2),r=e[0],o=e[1];t.getValue(r).set(o)})),t.render(),{target:l,transitionEnd:r}}return{target:n,transitionEnd:r}};function ur(t,n,e,r){return function(t){return Object.keys(t).some(Je)}(n)?ar(t,n,e,r):{target:n,transitionEnd:r}}var sr=function(t,n,e,r){var o=function(t,n,e){var r,o=a(n,[]),u=t.getInstance();if(!(u instanceof HTMLElement))return{target:o,transitionEnd:e};for(var s in e&&(e=i({},e)),t.forEachValue((function(t){var n=t.get();if(Se(n)){var e=Pe(n,u);e&&t.set(e)}})),o){var c=o[s];if(Se(c)){var l=Pe(c,u);l&&(o[s]=l,e&&(null!==(r=e[s])&&void 0!==r||(e[s]=c)))}}return{target:o,transitionEnd:e}}(t,n,r);return ur(t,n=o.target,e,r=o.transitionEnd)},cr=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.defaultConfig={enableHardwareAcceleration:!0,allowTransformNone:!0},n.style={},n.reactStyle={},n.vars={},n.transform={},n.transformOrigin={},n.transformKeys=[],n.config=n.defaultConfig,n.isLayoutProjectionEnabled=!1,n.layoutUpdateListeners=new mn,n.layoutMeasureListeners=new mn,n.viewportBoxUpdateListeners=new mn,n.hasViewportBoxUpdated=!1,n.targetBoxFinal={x:{min:0,max:1},y:{min:0,max:1}},n.treeScale={x:1,y:1},n.prevTreeScale={x:1,y:1},n.delta=fe(),n.deltaFinal=fe(),n.deltaTransform=Ee,n.stopLayoutAxisAnimation={x:function(){},y:function(){}},n.isTargetBoxLocked=!1,n.axisProgress={x:yn(0),y:yn(0)},n.updateLayoutDelta=function(){n.isLayoutProjectionEnabled&&n.box&&n.updateLayoutDeltas(),n.children.forEach(lr)},n}return o(n,t),n.prototype.removeValue=function(n){t.prototype.removeValue.call(this,n),delete this.vars[n],delete this.style[n]},n.prototype.clean=function(){this.style={},this.vars={},this.transform={}},n.prototype.updateConfig=function(t){void 0===t&&(t={}),this.config=i(i({},this.defaultConfig),t)},n.prototype.read=function(t){return this.getComputedStyle()[t]||0},n.prototype.addValue=function(n,e){t.prototype.addValue.call(this,n,e),n.startsWith("rotate")&&(this.layoutOrigin=.5)},n.prototype.readNativeValue=function(t){if(ge(t)){var n=Xn(t);return n&&n.default||0}return this.read(t)},n.prototype.makeTargetAnimatable=function(t,n){void 0===n&&(n=!0);var e=t.transition,r=t.transitionEnd,o=a(t,["transition","transitionEnd"]),u=this.config.transformValues,s=Jn(o,e||{},this);if(u&&(r&&(r=u(r)),o&&(o=u(o)),s&&(s=u(s))),n){$n(this,o,s);var c=sr(this,o,s,r);r=c.transitionEnd,o=c.target}return i({transition:e,transitionEnd:r},o)},n.prototype.enableLayoutProjection=function(){this.isLayoutProjectionEnabled=!0},n.prototype.hide=function(){!1!==this.isVisible&&(this.isVisible=!1,this.scheduleRender())},n.prototype.show=function(){!0!==this.isVisible&&(this.isVisible=!0,this.scheduleRender())},n.prototype.onLayoutUpdate=function(t){return this.layoutUpdateListeners.add(t)},n.prototype.onLayoutMeasure=function(t){return this.layoutMeasureListeners.add(t)},n.prototype.onViewportBoxUpdate=function(t){return this.viewportBoxUpdateListeners.add(t)},n.prototype.layoutReady=function(t){this.layoutUpdateListeners.notify(this.box,this.prevViewportBox||this.box,t)},n.prototype.getBoundingBox=function(){var t=this.config.transformPagePoint;return _e(this.element,t)},n.prototype.getBoundingBoxWithoutTransforms=function(){var t,n,e=this.getBoundingBox();return t=e,n=this.latest,ze(t.x,n,He),ze(t.y,n,je),e},n.prototype.getComputedStyle=function(){return window.getComputedStyle(this.element)},n.prototype.snapshotBoundingBox=function(){this.prevViewportBox=this.getBoundingBoxWithoutTransforms(),this.rebaseTargetBox(!1,this.prevViewportBox)},n.prototype.rebaseTargetBox=function(t,n){var e=this;void 0===t&&(t=!1),void 0===n&&(n=this.box);var r=this.axisProgress,o=r.x,i=r.y,a=this.box&&!this.isTargetBoxLocked&&!o.isAnimating()&&!i.isAnimating();(t||a)&&Ze((function(t){var r=n[t],o=r.min,i=r.max;e.setAxisTarget(t,o,i)}))},n.prototype.measureLayout=function(){var t=this;this.box=this.getBoundingBox(),this.boxCorrected=ce(this.box),this.targetBox||(this.targetBox=ce(this.box)),this.layoutMeasureListeners.notify(this.box,this.prevViewportBox||this.box),P.update((function(){return t.rebaseTargetBox()}))},n.prototype.lockTargetBox=function(){this.isTargetBoxLocked=!0},n.prototype.unlockTargetBox=function(){this.stopLayoutAnimation(),this.isTargetBoxLocked=!1},n.prototype.resetTransform=function(){var t=this.config.transformTemplate;this.element.style.transform=t?t({},""):"none",this.scheduleRender()},n.prototype.setAxisTarget=function(t,n,e){var r=this.targetBox[t];r.min=n,r.max=e,this.hasViewportBoxUpdated=!0,this.rootParent.scheduleUpdateLayoutDelta()},n.prototype.startLayoutAxisAnimation=function(t,n){var e,r=this,o=this.axisProgress[t],i=this.targetBox[t],a=i.min,u=i.max-a;return o.clearListeners(),o.set(a),o.set(a),o.onChange((function(n){return r.setAxisTarget(t,n,n+u)})),null===(e=this.animateMotionValue)||void 0===e?void 0:e.call(this,t,o,0,n)},n.prototype.stopLayoutAnimation=function(){var t=this;Ze((function(n){return t.axisProgress[n].stop()}))},n.prototype.updateLayoutDeltas=function(){var t,n,e,r,o;t=this.boxCorrected,n=this.box,Re(t.x,n.x),Re(t.y,n.y),this.parent&&(this.prevTreeScale.x=this.treeScale.x,this.prevTreeScale.y=this.treeScale.y,e=this.treeScale,r=this.parent.treeScale,o=this.parent.delta,e.x=r.x*o.x.scale,e.y=r.y*o.y.scale),function(t,n){for(var e=n.length,r=0;r<e;r++)Fe(t,n[r].delta)}(this.boxCorrected,this.treePath),qe(this.delta,this.boxCorrected,this.targetBox,this.layoutOrigin),this.hasViewportBoxUpdated&&this.viewportBoxUpdateListeners.notify(this.targetBox,this.delta),this.hasViewportBoxUpdated=!1;var i=we(this.delta,this.treeScale);i===this.deltaTransform&&this.prevTreeScale.x===this.treeScale.x&&this.prevTreeScale.y===this.treeScale.y||this.scheduleRender(),this.deltaTransform=i},n.prototype.updateTransformDeltas=function(){var t,n,e;this.isLayoutProjectionEnabled&&this.box&&(t=this.targetBoxFinal,n=this.targetBox,e=this.latest,Ie(t.x,n.x,e,He),Ie(t.y,n.y,e,je),qe(this.deltaFinal,this.boxCorrected,this.targetBoxFinal,this.layoutOrigin))},n.prototype.build=function(){this.updateTransformDeltas(),void 0!==this.isVisible&&(this.style.visibility=this.isVisible?"visible":"hidden"),Be(this.latest,this.style,this.vars,this.transform,this.transformOrigin,this.transformKeys,this.config,this.isLayoutProjectionEnabled&&!!this.box,this.delta,this.deltaFinal,this.treeScale,this.targetBoxFinal)},n.prototype.render=function(){for(var t in this.build(),Object.assign(this.element.style,this.style),this.vars)this.element.style.setProperty(t,this.vars[t])},n}(ae),lr=function(t){return t.updateLayoutDelta()};function fr(t){var n=(0,vn.useRef)(null);return null===n.current&&(n.current=t()),n.current}function dr(t,n,e){return"string"==typeof t?t:I.transform(n+e*t)}var pr=function(t,n){return I.transform(t*n)},vr={offset:"stroke-dashoffset",array:"stroke-dasharray"},hr={offset:"strokeDashoffset",array:"strokeDasharray"};var mr={x:0,y:0,width:0,height:0};function gr(t,n,e,r,o,i,u,s,c,l,f,d,p,v,h){var m=t.attrX,g=t.attrY,y=t.originX,x=t.originY,b=t.pathLength,w=t.pathSpacing,E=void 0===w?1:w,C=t.pathOffset,S=void 0===C?0:C;return Be(a(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),r,e,o,i,u,s,f,d,p,v,h),r.transform&&(n.transform=r.transform,delete r.transform),(void 0!==y||void 0!==x||n.transform)&&(n.transformOrigin=function(t,n,e){return dr(n,t.x,t.width)+" "+dr(e,t.y,t.height)}(c||mr,void 0!==y?y:.5,void 0!==x?x:.5)),void 0!==m&&(r.x=m),void 0!==g&&(r.y=g),void 0!==l&&void 0!==b&&function(t,n,e,r,o,i){void 0===r&&(r=1),void 0===o&&(o=0),void 0===i&&(i=!0);var a=i?vr:hr;t[a.offset]=pr(-o,n);var u=pr(e,n),s=pr(r,n);t[a.array]=u+" "+s}(r,l,b,E,S,!1),r}var yr=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox"]),xr=/([a-z])([A-Z])/g,br=function(t){return t.replace(xr,"$1-$2").toLowerCase()},wr=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.attrs={},n.defaultConfig={enableHardwareAcceleration:!1},n.config=n.defaultConfig,n}return o(n,t),n.prototype.mount=function(n){t.prototype.mount.call(this,n),this.measure()},n.prototype.measure=function(){try{this.dimensions="function"==typeof this.element.getBBox?this.element.getBBox():this.element.getBoundingClientRect()}catch(t){this.dimensions={x:0,y:0,width:0,height:0}}"path"===this.element.tagName&&(this.totalPathLength=this.element.getTotalLength())},n.prototype.clean=function(){t.prototype.clean.call(this),this.attrs={}},n.prototype.read=function(t){return t=yr.has(t)?t:br(t),this.element.getAttribute(t)},n.prototype.build=function(){this.updateTransformDeltas(),gr(this.latest,this.style,this.vars,this.attrs,this.transform,this.transformOrigin,this.transformKeys,this.config,this.dimensions,this.totalPathLength,this.isLayoutProjectionEnabled&&!!this.box,this.delta,this.deltaFinal,this.treeScale,this.targetBoxFinal)},n.prototype.render=function(){for(var n in t.prototype.render.call(this),this.attrs)this.element.setAttribute(yr.has(n)?n:br(n),this.attrs[n])},n}(cr);var Er=new Set(["animate","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use","view"]);function Cr(t){return"string"==typeof t&&Er.has(t)}var Sr=(0,vn.createContext)(null),Ar=(0,vn.createContext)({variantContext:{}});function Pr(){return(0,vn.useContext)(Ar).variantContext}function Mr(){return(0,vn.useContext)(Ar).visualElement}var Tr=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","onLayoutAnimationComplete","onViewportBoxUpdate","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","whileHover","whileTap","onHoverEnd","onHoverStart"]);function kr(t){return Tr.has(t)}var Vr=function(t){return!kr(t)};try{var Lr=e(58594).Z;Vr=function(t){return t.startsWith("on")?!kr(t):Lr(t)}}catch(t){}var Br=function(t){return t instanceof gn};function Rr(t,n){var e=n.layout,r=n.layoutId;return ge(t)||xe(t)||(e||void 0!==r)&&!!Ve[t]}function Or(t,n,e,r,o){for(var i in void 0===r&&(r=!1),r&&(t.reactStyle={}),e){var a=e[i],u=!1;if(Br(a))Fr.has(i)||(t.addValue(i,a),u=!0);else if(Rr(i,o)){if(t.hasValue(i)){if(a!==n[i]){if(Br(n[i]))t.addValue(i,yn(a));else t.getValue(i).set(a)}}else t.addValue(i,yn(a));u=!0}else r&&(t.reactStyle[i]=a);u&&(n[i]=a)}}var Dr,Ur,Fr=new Set([]),Ir=function(){return{}},Hr=(0,vn.createContext)({transformPagePoint:function(t){return t},features:[],isStatic:!1});function jr(t){var n=t.children,e=t.features,r=void 0===e?[]:e,o=a(t,["children","features"]),i=c((0,vn.useContext)(Hr).features,r),u=(0,vn.useMemo)((function(){return{features:i}}),[i.length]);for(var s in o)u[s]=o[s];return(0,vn.createElement)(Hr.Provider,{value:u},n)}function Xr(t){var n=t.animate,e=t.variants,r=t.inherit;return void 0===r?!!e&&!n:r}!function(t){t[t.Entering=0]="Entering",t[t.Present=1]="Present",t[t.Exiting=2]="Exiting"}(Dr||(Dr={})),function(t){t[t.Hide=0]="Hide",t[t.Show=1]="Show"}(Ur||(Ur={}));var zr={measureLayout:function(t){return t.measureLayout()},layoutReady:function(t){return t.layoutReady()}},Yr=function(t,n){return t.depth-n.depth};function Wr(){var t=new Set;return{add:function(n){return t.add(n)},flush:function(n){var e=void 0===n?zr:n,r=e.measureLayout,o=e.layoutReady,i=Array.from(t).sort(Yr);i.forEach((function(t){return t.resetTransform()})),i.forEach(r),i.forEach(o),i.forEach((function(t){t.isPresent&&(t.presence=Dr.Present)})),t.clear()}}}function Nr(t){return!!t.forceUpdate}var Gr=(0,vn.createContext)(Wr()),qr="undefined"!=typeof window?vn.useLayoutEffect:vn.useEffect;function Zr(){var t=(0,vn.useContext)(Sr);if(null===t)return[!0,null];var n=t.isPresent,e=t.onExitComplete,r=t.register,o=Qr();(0,vn.useEffect)((function(){return r(o)}),[]);return!n&&e?[!1,function(){return null==e?void 0:e(o)}]:[!0]}function _r(){return $r((0,vn.useContext)(Sr))}function $r(t){return null===t||t.isPresent}var Kr=0,Jr=function(){return Kr++},Qr=function(){return fr(Jr)};function to(t,n){void 0===n&&(n=!1);var e=(0,vn.useRef)(!0);(!n||n&&e.current)&&t(),e.current=!1}function no(t){return"string"==typeof t||Array.isArray(t)}function eo(t){return"object"==typeof t&&"function"==typeof t.start}function ro(t,n){var e=n.defaultFeatures,r=n.useVisualElement,o=n.render;return(0,vn.forwardRef)((function(n,a){var u=(0,vn.useContext)(Hr).isStatic,s=r(t,n,u,a);!function(t,n){var e=fr(Ir);for(var r in e){var o=Rr(r,n),i=void 0!==n[r],a=n.style&&void 0!==n.style[r],u=i&&Br(n[r]),s=a&&Br(n.style[r]);(o&&!i&&!a||!o&&!u&&!s)&&(t.removeValue(r),delete e[r])}Or(t,e,n,!1,n),n.style&&Or(t,e,n.style,!0,n),n.transformValues&&(t.reactStyle=n.transformValues(t.reactStyle))}(s,n);var l=function(t,n,e){var r,o,i=n.variants,a=n.initial,u=n.animate,s=n.whileTap,c=n.whileHover,l=Pr(),f=l.parent,d=l.initial,p=l.animate,v=(0,vn.useContext)(Sr),h=no(u)||no(s)||no(c)||eo(u),m=i||h;!1!==(a=null!==(r=null==v?void 0:v.initial)&&void 0!==r?r:a)||eo(u)||(a=u);var g=(0,vn.useMemo)((function(){return{parent:m?t:f,initial:no(a)?a:d,animate:no(u)?u:p}}),[e?a:null]);return to((function(){var n=a||d;n&&_n(t,n)}),!e),m&&!h&&(null==f||f.addVariantChild(t)),$r(v)&&(null===(o=t.variantChildrenOrder)||void 0===o||o.clear()),(0,vn.useEffect)((function(){m&&(null==f||f.addVariantChildOrder(t))})),(0,vn.useEffect)((function(){return t.isMounted=!0,function(){var n;t.isMounted=!1,null===(n=null==f?void 0:f.variantChildren)||void 0===n||n.delete(t)}}),[]),to((function(){t.forEachValue((function(n,e){t.baseTarget[e]=n.get()}))}),!0),g}(s,n,u),f=function(t,n,e,r){var o=(0,vn.useContext)(Hr);if(n||"undefined"==typeof window)return null;for(var a=c(t,o.features),u=a.length,s=[],l=0;l<u;l++){var f=a[l],d=f.shouldRender,p=f.key,v=f.getComponent;if(d(r)){var h=v(r);h&&s.push((0,vn.createElement)(h,i({key:p},r,{visualElement:e,inherit:Xr(r)})))}}return s}(e,u,s,n),d=(0,vn.useMemo)((function(){return{visualElement:s,variantContext:l}}),[s,l]),p=o(t,n,s);return function(t){var n=(0,vn.useContext)(Gr);qr((function(){return function(){Nr(n)&&n.remove(t)}}),[])}(s),(0,vn.createElement)(vn.Fragment,null,(0,vn.createElement)(Ar.Provider,{value:d},p),f)}))}function oo(t){var n=null;return function(){return null===n&&(n=t,function(){n=null})}}var io=oo("dragHorizontal"),ao=oo("dragVertical");function uo(t){var n=!1;if("y"===t)n=ao();else if("x"===t)n=io();else{var e=io(),r=ao();e&&r?n=function(){e(),r()}:(e&&e(),r&&r())}return n}function so(t,n,e,r){return t.addEventListener(n,e,r),function(){return t.removeEventListener(n,e,r)}}function co(t,n,e,r){(0,vn.useEffect)((function(){var o=t.current;if(e&&o)return so(o,n,e,r)}),[t,n,e,r])}function lo(t){return"undefined"!=typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function fo(t){return!!t.touches}var po={pageX:0,pageY:0};function vo(t,n){void 0===n&&(n="page");var e=t.touches[0]||t.changedTouches[0]||po;return{x:e[n+"X"],y:e[n+"Y"]}}function ho(t,n){return void 0===n&&(n="page"),{x:t[n+"X"],y:t[n+"Y"]}}function mo(t,n){return void 0===n&&(n="page"),{point:fo(t)?vo(t,n):ho(t,n)}}function go(t){return mo(t,"client")}var yo=function(t,n){void 0===n&&(n=!1);var e,r=function(n){return t(n,mo(n))};return n?(e=r,function(t){var n=t instanceof MouseEvent;(!n||n&&0===t.button)&&e(t)}):r},xo="undefined"!=typeof window,bo={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},wo={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Eo(t){return xo&&null===window.onpointerdown?t:xo&&null===window.ontouchstart?wo[t]:xo&&null===window.onmousedown?bo[t]:t}function Co(t,n,e,r){return so(t,Eo(n),yo(e,"pointerdown"===n),r)}function So(t,n,e,r){return co(t,Eo(n),e&&yo(e,"pointerdown"===n),r)}var Ao=function(){function t(t,n,e){var r=this,o=(void 0===e?{}:e).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var t=To(r.lastMoveEventInfo,r.history),n=null!==r.startEvent,e=on(t.offset,{x:0,y:0})>=3;if(n||e){var o=t.point,a=A().timestamp;r.history.push(i(i({},o),{timestamp:a}));var u=r.handlers,s=u.onStart,c=u.onMove;n||(s&&s(r.lastMoveEvent,t),r.startEvent=r.lastMoveEvent),c&&c(r.lastMoveEvent,t)}}},this.handlePointerMove=function(t,n){r.lastMoveEvent=t,r.lastMoveEventInfo=Po(n,r.transformPagePoint),lo(t)&&0===t.buttons?r.handlePointerUp(t,n):P.update(r.updatePoint,!0)},this.handlePointerUp=function(t,n){r.end();var e=r.handlers.onEnd;if(e){var o=To(Po(n,r.transformPagePoint),r.history);e&&e(t,o)}},!(fo(t)&&t.touches.length>1)){this.handlers=n,this.transformPagePoint=o;var a=Po(mo(t),this.transformPagePoint),u=a.point,s=A().timestamp;this.history=[i(i({},u),{timestamp:s})];var c=n.onSessionStart;c&&c(t,To(a,this.history)),this.removeListeners=bt(Co(window,"pointermove",this.handlePointerMove),Co(window,"pointerup",this.handlePointerUp),Co(window,"pointercancel",this.handlePointerUp))}}return t.prototype.updateHandlers=function(t){this.handlers=t},t.prototype.end=function(){this.removeListeners&&this.removeListeners(),w.update(this.updatePoint)},t}();function Po(t,n){return n?{point:n(t.point)}:t}function Mo(t,n){return{x:t.x-n.x,y:t.y-n.y}}function To(t,n){var e=t.point;return{point:e,delta:Mo(e,Vo(n)),offset:Mo(e,ko(n)),velocity:Lo(n,.1)}}function ko(t){return t[0]}function Vo(t){return t[t.length-1]}function Lo(t,n){if(t.length<2)return{x:0,y:0};for(var e=t.length-1,r=null,o=Vo(t);e>=0&&(r=t[e],!(o.timestamp-r.timestamp>xn(n)));)e--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Bo(t,n,e){var r=n.min,o=n.max;return void 0!==r&&t<r?t=e?dt(r,t,e):Math.max(t,r):void 0!==o&&t>o&&(t=e?dt(o,t,e):Math.min(t,o)),t}function Ro(t,n,e){return{min:void 0!==n?t.min+n:void 0,max:void 0!==e?t.max+e-(t.max-t.min):void 0}}function Oo(t,n){var e,r=n.min-t.min,o=n.max-t.max;return n.max-n.min<t.max-t.min&&(r=(e=s([o,r],2))[0],o=e[1]),{min:t.min+r,max:t.min+o}}var Do,Uo=new WeakMap,Fo=function(){function t(t){var n=t.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=n,this.visualElement.enableLayoutProjection(),Uo.set(n,this)}return t.prototype.start=function(t,n){var e=this,r=void 0===n?{}:n,o=r.snapToCursor,i=void 0!==o&&o,a=r.cursorProgress;i&&this.snapToCursor(t);var u=this.props.transformPagePoint;this.panSession=new Ao(t,{onSessionStart:function(){e.stopMotion()},onStart:function(t,n){var r,o,i=e.props,u=i.drag,s=i.dragPropagation;if(!u||s||(e.openGlobalLock&&e.openGlobalLock(),e.openGlobalLock=uo(u),e.openGlobalLock)){e.prepareBoundingBox(),e.visualElement.lockTargetBox(),e.resolveDragConstraints();var c=go(t).point;Ze((function(t){var n=e.visualElement.targetBox[t],r=n.min,o=n.max;e.cursorProgress[t]=a?a[t]:ft(r,o,c[t]);var i=e.getAxisMotionValue(t);i&&(e.originPoint[t]=i.get())})),e.isDragging=!0,e.currentDirection=null,null===(o=(r=e.props).onDragStart)||void 0===o||o.call(r,t,n)}},onMove:function(t,n){var r,o,i,a,u=e.props,s=u.dragPropagation,c=u.dragDirectionLock;if(s||e.openGlobalLock){var l=n.offset;if(c&&null===e.currentDirection)return e.currentDirection=function(t,n){void 0===n&&(n=10);var e=null;Math.abs(t.y)>n?e="y":Math.abs(t.x)>n&&(e="x");return e}(l),void(null!==e.currentDirection&&(null===(o=(r=e.props).onDirectionLock)||void 0===o||o.call(r,e.currentDirection)));e.updateAxis("x",t,l),e.updateAxis("y",t,l),null===(a=(i=e.props).onDrag)||void 0===a||a.call(i,t,n),Do=t}},onEnd:function(t,n){return e.stop(t,n)}},{transformPagePoint:u})},t.prototype.prepareBoundingBox=function(){var t=this.visualElement.getInstance(),n=t.style.transform;this.visualElement.resetTransform(),this.visualElement.measureLayout(),t.style.transform=n,this.visualElement.rebaseTargetBox(!0,this.visualElement.getBoundingBoxWithoutTransforms())},t.prototype.resolveDragConstraints=function(){var t,n,e,r,o,i,a=this,u=this.props.dragConstraints;this.constraints=!!u&&(hn(u)?this.resolveRefConstraints(this.visualElement.box,u):(t=this.visualElement.box,e=(n=u).top,r=n.left,o=n.bottom,i=n.right,{x:Ro(t.x,r,i),y:Ro(t.y,e,o)})),this.constraints&&!this.hasMutatedConstraints&&Ze((function(t){var n,e,r;a.getAxisMotionValue(t)&&(a.constraints[t]=(n=a.visualElement.box[t],e=a.constraints[t],r={},void 0!==e.min&&(r.min=e.min-n.min),void 0!==e.max&&(r.max=e.max-n.min),r))}))},t.prototype.resolveRefConstraints=function(t,n){var e=this.props,r=e.onMeasureDragConstraints,o=e.transformPagePoint,i=n.current;this.constraintsBox=_e(i,o);var a=function(t,n){return{x:Oo(t.x,n.x),y:Oo(t.y,n.y)}}(t,this.constraintsBox);if(r){var u=r(function(t){var n=t.x,e=t.y;return{top:e.min,bottom:e.max,left:n.min,right:n.max}}(a));this.hasMutatedConstraints=!!u,u&&(a=se(u))}return a},t.prototype.cancelDrag=function(){this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null)},t.prototype.stop=function(t,n){var e;this.visualElement.unlockTargetBox(),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=null;var r=this.isDragging;if(this.cancelDrag(),r){var o=this.props,i=o.dragMomentum,a=o.dragElastic,u=o.onDragEnd;if(i||a){var s=n.velocity;this.animateDragEnd(s)}null==u||u(t,n)}},t.prototype.snapToCursor=function(t){var n=this;this.prepareBoundingBox(),Ze((function(e){var r=n.getAxisMotionValue(e);if(r){var o=go(t).point,i=n.visualElement.box,a=i[e].max-i[e].min,u=i[e].min+a/2,s=o[e]-u;n.originPoint[e]=o[e],r.set(s)}else n.cursorProgress[e]=.5,n.updateVisualElementAxis(e,t)}))},t.prototype.updateAxis=function(t,n,e){if(Io(t,this.props.drag,this.currentDirection))return this.getAxisMotionValue(t)?this.updateAxisMotionValue(t,e):this.updateVisualElementAxis(t,n)},t.prototype.updateAxisMotionValue=function(t,n){var e=this.getAxisMotionValue(t);if(n&&e){var r=this.props.dragElastic,o=this.originPoint[t]+n[t],i=this.constraints?Bo(o,this.constraints[t],r):o;e.set(i)}},t.prototype.updateVisualElementAxis=function(t,n){var e,r=this.props.dragElastic,o=this.visualElement.box[t],i=o.max-o.min,a=this.cursorProgress[t],u=function(t,n,e,r,o){var i=t-n*e;return r?Bo(i,r,o):i}(go(n).point[t],i,a,null===(e=this.constraints)||void 0===e?void 0:e[t],r);this.visualElement.setAxisTarget(t,u,u+i)},t.prototype.updateProps=function(t){var n=t.drag,e=void 0!==n&&n,r=t.dragDirectionLock,o=void 0!==r&&r,u=t.dragPropagation,s=void 0!==u&&u,c=t.dragConstraints,l=void 0!==c&&c,f=t.dragElastic,d=void 0===f?.35:f,p=t.dragMomentum,v=void 0===p||p,h=a(t,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=i({drag:e,dragDirectionLock:o,dragPropagation:s,dragConstraints:l,dragElastic:d,dragMomentum:v},h)},t.prototype.getAxisMotionValue=function(t){var n=this.props,e=n.layout,r=n.layoutId,o="_drag"+t.toUpperCase();return this.props[o]?this.props[o]:e||void 0!==r?void 0:this.visualElement.getValue(t,0)},t.prototype.animateDragEnd=function(t){var n=this,e=this.props,r=e.drag,o=e.dragMomentum,a=e.dragElastic,u=e.dragTransition,s=Ze((function(e){if(Io(e,r,n.currentDirection)){var s=n.constraints?n.constraints[e]:{},c=a?200:1e6,l=a?40:1e7,f=i(i({type:"inertia",velocity:o?t[e]:0,bounceStiffness:c,bounceDamping:l,timeConstant:750,restDelta:1,restSpeed:10},u),s);return n.getAxisMotionValue(e)?n.startAxisValueAnimation(e,f):n.visualElement.startLayoutAxisAnimation(e,f)}}));return Promise.all(s).then((function(){var t,e;null===(e=(t=n.props).onDragTransitionEnd)||void 0===e||e.call(t)}))},t.prototype.stopMotion=function(){var t=this;Ze((function(n){var e=t.getAxisMotionValue(n);e?e.stop():t.visualElement.stopLayoutAnimation()}))},t.prototype.startAxisValueAnimation=function(t,n){var e=this.getAxisMotionValue(t);if(e){var r=e.get();return e.set(r),e.set(r),Bn(t,e,0,n)}},t.prototype.scalePoint=function(){var t=this,n=this.props,e=n.drag,r=n.dragConstraints;if(hn(r)&&this.constraintsBox){this.stopMotion();var o={x:0,y:0};Ze((function(n){o[n]=Ne(t.visualElement.targetBox[n],t.constraintsBox[n])})),this.prepareBoundingBox(),this.resolveDragConstraints(),Ze((function(n){if(Io(n,e,null)){var r=function(t,n,e){var r=t.max-t.min,o=dt(n.min,n.max-r,e);return{min:o,max:o+r}}(t.visualElement.targetBox[n],t.constraintsBox[n],o[n]),i=r.min,a=r.max;t.visualElement.setAxisTarget(n,i,a)}}))}},t.prototype.mount=function(t){var n=this,e=Co(t.getInstance(),"pointerdown",(function(t){var e=n.props,r=e.drag,o=e.dragListener;r&&(void 0===o||o)&&n.start(t)})),r=so(window,"resize",(function(){n.scalePoint()})),o=t.onLayoutUpdate((function(){n.isDragging&&n.resolveDragConstraints()})),i=t.prevSnapshot;return(null==i?void 0:i.isDragging)&&this.start(Do,{cursorProgress:i.cursorProgress}),function(){null==e||e(),null==r||r(),null==o||o(),n.cancelDrag()}},t}();function Io(t,n,e){return!(!0!==n&&n!==t||null!==e&&e!==t)}var Ho=function(t){return function(n){return t(n),null}},jo=Ho((function(t){var n=t.visualElement;return function(t,n){var e=t.dragControls,r=(0,vn.useContext)(Hr).transformPagePoint,o=fr((function(){return new Fo({visualElement:n})}));o.updateProps(i(i({},t),{transformPagePoint:r})),(0,vn.useEffect)((function(){return e&&e.subscribe(o)}),[o]),(0,vn.useEffect)((function(){return o.mount(n)}),[])}(a(t,["visualElement"]),n)})),Xo={key:"drag",shouldRender:function(t){return!!t.drag||!!t.dragControls},getComponent:function(){return jo}};function zo(t){return(0,vn.useEffect)((function(){return function(){return t()}}),[])}function Yo(t,n){var e=t.onPan,r=t.onPanStart,o=t.onPanEnd,i=t.onPanSessionStart,a=e||r||o||i,u=(0,vn.useRef)(null),s=(0,vn.useContext)(Hr).transformPagePoint,c={onSessionStart:i,onStart:r,onMove:e,onEnd:function(t,n){u.current=null,o&&o(t,n)}};(0,vn.useEffect)((function(){null!==u.current&&u.current.updateHandlers(c)})),So(n,"pointerdown",a&&function(t){u.current=new Ao(t,c,{transformPagePoint:s})}),zo((function(){return u.current&&u.current.end()}))}var Wo=function(t,n){return!!n&&(t===n||Wo(t,n.parentElement))},No=["whileHover","whileTap","whileDrag"],Go=function(t){return No.indexOf(t)+1},qo=Go("whileTap");function Zo(t,n){var e=t.onTap,r=t.onTapStart,o=t.onTapCancel,i=t.whileTap,a=e||r||o||i,u=(0,vn.useRef)(!1),s=(0,vn.useRef)(null);function c(){var t;null===(t=s.current)||void 0===t||t.call(s),s.current=null}i&&ee(n,i,qo);var l=(0,vn.useRef)(null);l.current=function(t,r){var a=n.getInstance();if(c(),u.current&&a){u.current=!1,i&&oe(n,qo);var s=uo(!0);s&&(s(),Wo(a,t.target)?null==e||e(t,r):null==o||o(t,r))}},So(n,"pointerdown",a?function(t,e){c(),s.current=bt(Co(window,"pointerup",(function(t,n){var e;return null===(e=l.current)||void 0===e?void 0:e.call(l,t,n)})),Co(window,"pointercancel",(function(t,n){var e;return null===(e=l.current)||void 0===e?void 0:e.call(l,t,n)}))),n.getInstance()&&!u.current&&(u.current=!0,null==r||r(t,e),i&&re(n,qo))}:void 0),zo(c)}var _o=Go("whileHover"),$o=function(t){return function(n,e){lo(n)&&t(n,e)}};function Ko(t,n){Yo(t,n),Zo(t,n),function(t,n){var e=t.whileHover,r=t.onHoverStart,o=t.onHoverEnd;e&&ee(n,e,_o),So(n,"pointerenter",$o((function(t,o){null==r||r(t,o),e&&re(n,_o)}))),So(n,"pointerleave",$o((function(t,r){null==o||o(t,r),e&&oe(n,_o)})))}(t,n)}var Jo=["onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","whileTap","whileHover","onHoverStart","onHoverEnd"],Qo=Ho((function(t){var n=t.visualElement;Ko(a(t,["visualElement"]),n)})),ti={key:"gestures",shouldRender:function(t){return Jo.some((function(n){return t.hasOwnProperty(n)}))},getComponent:function(){return Qo}},ni=function(){function t(){this.hasMounted=!1,this.pendingAnimations=[],this.subscribers=new Set}return t.prototype.subscribe=function(t){var n=this;return this.subscribers.add(t),function(){return n.subscribers.delete(t)}},t.prototype.start=function(t,n){var e=this;if(this.hasMounted){var r=[];return this.subscribers.forEach((function(e){var o=Qn(e,t,{transitionOverride:n});r.push(o)})),Promise.all(r)}return new Promise((function(r){e.pendingAnimations.push({animation:[t,n],resolve:r})}))},t.prototype.set=function(t){return this.hasMounted,this.subscribers.forEach((function(n){_n(n,t)}))},t.prototype.stop=function(){this.subscribers.forEach((function(t){!function(t){t.forEachValue((function(t){return t.stop()}))}(t)}))},t.prototype.mount=function(){var t=this;this.hasMounted=!0,this.pendingAnimations.forEach((function(n){var e=n.animation,r=n.resolve;t.start.apply(t,c(e)).then(r)}))},t.prototype.unmount=function(){this.hasMounted=!1,this.stop()},t}(),ei=function(){return new ni},ri=Ho((function(t){var n=t.animate,e=t.exit,r=t.visualElement,o=s(Zr(),2),i=o[0],a=o[1],u=(0,vn.useContext)(Sr),c=(0,vn.useRef)(!1),l=void 0!==(null==u?void 0:u.custom)?u.custom:t.custom;(0,vn.useEffect)((function(){i?!c.current||!n||"boolean"==typeof n||n instanceof ni||Qn(r,n):(!c.current&&e&&Qn(r,e,{custom:l}).then(a),c.current=!0),i&&(c.current=!1)}),[n,l,e,i,a,t])})),oi={key:"exit",shouldRender:function(t){return!!t.exit&&!Xr(t)},getComponent:function(){return ri}};function ii(t,n){void 0===n&&(n=!1);t.transition;var e=t.transitionEnd,r=a(t,["transition","transitionEnd"]);return n?i(i({},r),e):r}var ai=function(t){var n,e=t instanceof gn?t.get():t;return Array.from(new Set((n=e)?Array.isArray(n)?n:[n]:[]))};var ui={shouldRender:function(t){return void 0!==t.animate&&!Wn(t.animate)&&!eo(t.animate)},Component:Ho((function(t){var n=t.animate;return function(t,n,e){var r=(0,vn.useRef)(!0),o=(0,vn.useRef)(null);o.current||(o.current=ii(n,!0)),(0,vn.useEffect)((function(){var a,u,s={},c=ii(n),l=ii(n,!0);for(var f in c){var d=r.current&&(!t.hasValue(f)||t.getValue(f).get()!==l[f]),p=null!==l[f],v=(a=o.current[f],void 0!==(u=l[f])&&(Array.isArray(a)&&Array.isArray(u)?!function(t,n){if(null===n)return!1;var e=n.length;if(e!==t.length)return!1;for(var r=0;r<e;r++)if(n[r]!==t[r])return!1;return!0}(u,a):a!==u));p&&(v||d)&&(s[f]=c[f])}r.current=!1,o.current=i(i({},o.current),l),Object.keys(s).length&&Qn(t,i(i({},s),{transition:n.transition||e,transitionEnd:n.transitionEnd}))}),[n])}(t.visualElement,n,t.transition)}))},si={shouldRender:function(t){return t.variants&&!eo(t.animate)||Wn(t.animate)},Component:Ho((function(t){var n=t.animate,e=t.inherit,r=void 0===e||e;return function(t,n,e,r){var o,i=ai(e),a=Pr(),u=null===(o=a.parent)||void 0===o?void 0:o.isMounted,s=(0,vn.useRef)(!1);(0,vn.useEffect)((function(){var e,o,c=!1;r?(c=!!u,i=ai(a.animate)):c=s.current||(e=ai(n),o=i,e.join(",")!==o.join(",")),c&&Qn(t,i),s.current=!0}),[i.join(",")])}(t.visualElement,t.initial,n,r)}))},ci={shouldRender:function(t){return eo(t.animate)},Component:Ho((function(t){var n=t.animate;return function(t,n){var e=(0,vn.useMemo)((function(){return n.subscribe(t)}),[n]);zo((function(){return null==e?void 0:e()}))}(t.visualElement,n)}))},li={key:"animation",shouldRender:function(){return!0},getComponent:function(t){return ui.shouldRender(t)?ui.Component:si.shouldRender(t)?si.Component:ci.shouldRender(t)?ci.Component:void 0}};var fi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.frameTarget={x:{min:0,max:0},y:{min:0,max:0}},n.stopAxisAnimation={x:void 0,y:void 0},n.animate=function(t,e,r){void 0===r&&(r={});var o=r.originBox,i=r.targetBox,u=r.visibilityAction,s=r.shouldStackAnimate,c=a(r,["originBox","targetBox","visibilityAction","shouldStackAnimate"]),l=n.props,f=l.visualElement,d=l.layout;if(!1===s)return n.safeToRemove();var p=pi(e=o||e,t=i||t),v=Ze((function(r){if("position"===d){var o=t[r].max-t[r].min;e[r].max=e[r].min+o}if(!f.isTargetBoxLocked)return void 0===u?p?n.animateAxis(r,t[r],e[r],c):f.setAxisTarget(r,t[r].min,t[r].max):void(u===Ur.Hide?f.hide():f.show())}));return f.render(),Promise.all(v).then((function(){var t,e;null===(e=(t=n.props).onLayoutAnimationComplete)||void 0===e||e.call(t),f.isPresent?f.presence=Dr.Present:n.safeToRemove()}))},n}return o(n,t),n.prototype.componentDidMount=function(){var t=this,n=this.props.visualElement;n.animateMotionValue=Bn,n.enableLayoutProjection(),this.unsubLayoutReady=n.onLayoutUpdate(this.animate),n.updateConfig(i(i({},n.config),{safeToRemove:function(){return t.safeToRemove()}}))},n.prototype.componentWillUnmount=function(){var t=this;this.unsubLayoutReady(),Ze((function(n){var e,r;return null===(r=(e=t.stopAxisAnimation)[n])||void 0===r?void 0:r.call(e)}))},n.prototype.animateAxis=function(t,n,e,r){var o,i,a=void 0===r?{}:r,u=a.transition,s=a.crossfadeOpacity;null===(i=(o=this.stopAxisAnimation)[t])||void 0===i||i.call(o);var c,l=this.props.visualElement,f=this.frameTarget[t],d=l.axisProgress[t];d.clearListeners(),d.set(0),d.set(0),s&&(c=this.createCrossfadeAnimation(s),l.show());var p=function(){var r=d.get()/1e3;!function(t,n,e,r){t.min=dt(n.min,e.min,r),t.max=dt(n.max,e.max,r)}(f,e,n,r),l.setAxisTarget(t,f.min,f.max),null==c||c(r)};p(),l.updateLayoutDelta();var v=d.onChange(p),h=Bn("x"===t?"layoutX":"layoutY",d,1e3,u||this.props.transition||hi).then(v);return this.stopAxisAnimation[t]=function(){d.stop(),v()},h},n.prototype.createCrossfadeAnimation=function(t){var n=this.props.visualElement.getValue("opacity",0);return function(e){n.set(gi(dt(0,1,e))),t.set(yi(dt(1,0,e)))}},n.prototype.safeToRemove=function(){var t,n;null===(n=(t=this.props).safeToRemove)||void 0===n||n.call(t)},n.prototype.render=function(){return null},n}(vn.Component);function di(t){var n=s(Zr(),2)[1];return(0,vn.createElement)(fi,i({},t,{safeToRemove:n}))}function pi(t,n){return vi(t.x,n.x)||vi(t.y,n.y)}function vi(t,n){return t.min!==n.min||t.max!==n.max}var hi={duration:.45,ease:[.4,0,.1,1]};function mi(t,n,e){return function(r){return r<t?0:r>n?1:e(ft(t,n,r))}}var gi=mi(0,.5,It),yi=mi(.5,.95,Rt),xi={key:"animate-layout",shouldRender:function(t){return!!t.layout||!!t.layoutId},getComponent:function(){return di}},bi=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return o(n,t),n.prototype.componentDidMount=function(){var t=this.props,n=t.syncLayout,e=t.visualElement;Nr(n)&&n.register(e)},n.prototype.getSnapshotBeforeUpdate=function(){var t=this.props,n=t.syncLayout,e=t.visualElement;return Nr(n)?n.syncUpdate():(e.snapshotBoundingBox(),n.add(e)),null},n.prototype.componentDidUpdate=function(){var t=this.props,n=t.syncLayout,e=t.visualElement;Nr(n)||n.flush(),e.rebaseTargetBox()},n.prototype.render=function(){return null},n}(vn.Component);function wi(t){var n=(0,vn.useContext)(Gr);return vn.createElement(bi,i({},t,{syncLayout:n}))}var Ei={key:"measure-layout",shouldRender:function(t){return!!t.drag||!!t.layout||!!t.layoutId},getComponent:function(){return wi}},Ci=[Ei,li,Xo,ti,oi,xi],Si={useVisualElement:function(t,n,e,r){var o=Mr(),a=fr((function(){return new(Cr(t)?wr:cr)(o,r)}));a.updateConfig(i(i(i({},a.config),{enableHardwareAcceleration:!e}),n)),a.layoutId=n.layoutId;var u=(0,vn.useContext)(Sr),s=null===u||u.isPresent;a.isPresent=void 0!==n.isPresent?n.isPresent:s;var c=null==u?void 0:u.id;return a.isPresenceRoot=!o||o.presenceId!==c,(0,vn.useEffect)((function(){if(n.onViewportBoxUpdate)return a.onViewportBoxUpdate(n.onViewportBoxUpdate)}),[n.onViewportBoxUpdate]),a},render:function(t,n,e){var r="string"==typeof t?function(t){var n={};for(var e in t)Vr(e)&&(n[e]=t[e]);return n}(n):n;e.clean(),e.build();var o=Cr(t)?function(t){return i(i({},t.attrs),{style:i({},t.reactStyle)})}(e):function(t,n){var e=n.drag,r={style:i(i(i({},t.reactStyle),t.style),t.vars)};return e&&(r.draggable=!1,r.style.userSelect="none",r.style.touchAction=!0===e?"none":"pan-"+("x"===e?"y":"x")),r}(e,n);return(0,vn.createElement)(t,i(i(i({},r),{ref:e.ref}),o))}};function Ai(t){var n=i(i({},Si),{defaultFeatures:t});var e=new Map;return new Proxy({custom:function(t){return ro(t,n)}},{get:function(t,r){return"custom"===r?t.custom:(e.has(r)||e.set(r,ro(r,n)),e.get(r))}})}var Pi=Ai(Ci);function Mi(t){return ro(t,i(i({},Si),{defaultFeatures:Ci}))}var Ti=Ai([Ei]);var ki=0;function Vi(){var t=ki;return ki++,t}var Li=function(t){var n=t.children,e=t.initial,r=t.isPresent,o=t.onExitComplete,i=t.custom,a=t.presenceAffectsLayout,u=fr(Bi),s=fr(Vi),c=(0,vn.useMemo)((function(){return{id:s,initial:e,isPresent:r,custom:i,onExitComplete:function(t){u.set(t,!0);var n=!0;u.forEach((function(t){t||(n=!1)})),n&&(null==o||o())},register:function(t){return u.set(t,!1),function(){return u.delete(t)}}}}),a?void 0:[r]);return(0,vn.useMemo)((function(){u.forEach((function(t,n){return u.set(n,!1)}))}),[r]),(0,vn.createElement)(Sr.Provider,{value:c},n)};function Bi(){return new Map}function Ri(t){return t.key||""}var Oi=function(t){var n=t.children,e=t.custom,r=t.initial,o=void 0===r||r,i=t.onExitComplete,a=t.exitBeforeEnter,u=t.presenceAffectsLayout,l=void 0===u||u,f=function(){var t=(0,vn.useRef)(!1),n=s((0,vn.useState)(0),2),e=n[0],r=n[1];return zo((function(){return t.current=!0})),(0,vn.useCallback)((function(){!t.current&&r(e+1)}),[e])}(),d=(0,vn.useContext)(Gr);Nr(d)&&(f=d.forceUpdate);var p=(0,vn.useRef)(!0),v=function(t){var n=[];return vn.Children.forEach(t,(function(t){(0,vn.isValidElement)(t)&&n.push(t)})),n}(n),h=(0,vn.useRef)(v),m=(0,vn.useRef)(new Map).current,g=(0,vn.useRef)(new Set).current;if(function(t,n){t.forEach((function(t){var e=Ri(t);n.set(e,t)}))}(v,m),p.current)return p.current=!1,(0,vn.createElement)(vn.Fragment,null,v.map((function(t){return(0,vn.createElement)(Li,{key:Ri(t),isPresent:!0,initial:!!o&&void 0,presenceAffectsLayout:l},t)})));for(var y=c(v),x=h.current.map(Ri),b=v.map(Ri),w=x.length,E=0;E<w;E++){var C=x[E];-1===b.indexOf(C)?g.add(C):g.delete(C)}return a&&g.size&&(y=[]),g.forEach((function(t){if(-1===b.indexOf(t)){var n=m.get(t);if(n){var r=x.indexOf(t);y.splice(r,0,(0,vn.createElement)(Li,{key:Ri(n),isPresent:!1,onExitComplete:function(){m.delete(t),g.delete(t);var n=h.current.findIndex((function(n){return n.key===t}));h.current.splice(n,1),g.size||(h.current=v,f(),i&&i())},custom:e,presenceAffectsLayout:l},n))}}})),y=y.map((function(t){var n=t.key;return g.has(n)?t:(0,vn.createElement)(Li,{key:Ri(t),isPresent:!0,presenceAffectsLayout:l},t)})),h.current=y,(0,vn.createElement)(vn.Fragment,null,g.size?y:y.map((function(t){return(0,vn.cloneElement)(t)})))};function Di(t,n){return n&&t!==n.lead?{visibilityAction:Ur.Hide}:n&&t.presence!==Dr.Entering&&t===n.lead&&n.lead!==n.prevLead?{visibilityAction:Ur.Show}:(t.presence===Dr.Entering?e=null==n?void 0:n.getFollowOrigin():t.presence===Dr.Exiting&&(r=null==n?void 0:n.getFollowTarget()),{originBox:e,targetBox:r});var e,r}function Ui(t,n){var e,r,o,i={},a=n&&n.lead,u=null==a?void 0:a.presence;return n&&t===a?t.presence===Dr.Entering?i.originBox=n.getFollowOrigin():t.presence===Dr.Exiting&&(i.targetBox=n.getFollowTarget()):n&&t===n.follow&&(i.transition=n.getLeadTransition(),u===Dr.Entering?i.targetBox=n.getLeadTarget():u===Dr.Exiting&&(i.originBox=n.getLeadOrigin())),(null===(e=null==n?void 0:n.follow)||void 0===e?void 0:e.isPresenceRoot)||(null==a?void 0:a.isPresenceRoot)?(n&&t!==a?n&&t===n.follow?a&&u!==Dr.Entering&&u===Dr.Exiting&&(i.crossfadeOpacity=null===(o=null==n?void 0:n.lead)||void 0===o?void 0:o.getValue("opacity",1)):i.visibilityAction=Ur.Hide:t.presence===Dr.Entering&&(i.crossfadeOpacity=null===(r=null==n?void 0:n.follow)||void 0===r?void 0:r.getValue("opacity",0)),i):i}var Fi=function(){function t(){this.order=[],this.hasChildren=!1}return t.prototype.add=function(t){var n;if(this.order.push(t),this.snapshot){t.prevSnapshot=this.snapshot,t.prevViewportBox=this.snapshot.boundingBox;var e=this.snapshot.latestMotionValues;for(var r in e)t.hasValue(r)?null===(n=t.getValue(r))||void 0===n||n.set(e[r]):t.addValue(r,yn(e[r]))}this.hasChildren=!0},t.prototype.remove=function(t){var n=this.order.findIndex((function(n){return t===n}));-1!==n&&this.order.splice(n,1)},t.prototype.updateLeadAndFollow=function(){this.prevLead=this.lead,this.prevFollow=this.follow;var t=s(function(t,n){for(var e=s(n,2),r=e[0],o=e[1],i=void 0,a=0,u=void 0,c=t.length,l=!1,f=c-1;f>=0;f--){var d=t[f];if(f===c-1&&(l=d.isPresent),l)i=d;else{var p=t[f-1];p&&p.isPresent&&(i=d)}if(i){a=f;break}}if(i||(i=t[0]),u=t[a-1],i)for(f=a-1;f>=0;f--)if((d=t[f]).isPresent){u=d;break}return i!==r&&!l&&u===o&&t.find((function(t){return t===r}))&&(i=r),[i,u]}(this.order,[this.lead,this.follow]),2),n=t[0],e=t[1];this.lead=n,this.follow=e},t.prototype.updateSnapshot=function(){if(this.lead){var t={boundingBox:this.lead.prevViewportBox,latestMotionValues:{}};this.lead.forEachValue((function(n,e){var r=n.get();ge(r)||(t.latestMotionValues[e]=r)}));var n=Uo.get(this.lead);n&&n.isDragging&&(t.isDragging=!0,t.cursorProgress=n.cursorProgress),this.snapshot=t}},t.prototype.isLeadPresent=function(){var t;return this.lead&&(null===(t=this.lead)||void 0===t?void 0:t.presence)!==Dr.Exiting},t.prototype.getFollowOrigin=function(){var t;return this.follow?this.follow.prevViewportBox:null===(t=this.snapshot)||void 0===t?void 0:t.boundingBox},t.prototype.getFollowTarget=function(){var t;return null===(t=this.follow)||void 0===t?void 0:t.box},t.prototype.getLeadOrigin=function(){var t;return null===(t=this.lead)||void 0===t?void 0:t.prevViewportBox},t.prototype.getLeadTarget=function(){var t;return null===(t=this.lead)||void 0===t?void 0:t.box},t.prototype.getLeadTransition=function(){var t;return null===(t=this.lead)||void 0===t?void 0:t.config.transition},t}(),Ii=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.children=new Set,n.stacks=new Map,n.hasMounted=!1,n.updateScheduled=!1,n.renderScheduled=!1,n.syncContext=i(i({},Wr()),{syncUpdate:function(t){return n.scheduleUpdate(t)},forceUpdate:function(){n.syncContext=i({},n.syncContext),n.scheduleUpdate(!0)},register:function(t){return n.addChild(t)},remove:function(t){return n.removeChild(t)}}),n}return o(n,t),n.prototype.componentDidMount=function(){this.hasMounted=!0,this.updateStacks()},n.prototype.componentDidUpdate=function(){this.startLayoutAnimation()},n.prototype.shouldComponentUpdate=function(){return this.renderScheduled=!0,!0},n.prototype.startLayoutAnimation=function(){var t=this;this.renderScheduled=this.updateScheduled=!1;var n=this.props.type;this.children.forEach((function(t){t.isPresent?t.presence!==Dr.Entering&&(t.presence=t.presence===Dr.Exiting?Dr.Entering:Dr.Present):t.presence=Dr.Exiting})),this.updateStacks();var e="crossfade"===n?Ui:Di,r={measureLayout:function(t){return t.measureLayout()},layoutReady:function(n){var r=n.layoutId;n.layoutReady(e(n,t.getStack(r)))}};this.children.forEach((function(n){return t.syncContext.add(n)})),this.syncContext.flush(r),this.stacks.forEach((function(t){return t.snapshot=void 0}))},n.prototype.updateStacks=function(){this.stacks.forEach((function(t){return t.updateLeadAndFollow()}))},n.prototype.scheduleUpdate=function(t){void 0===t&&(t=!1),!t&&this.updateScheduled||(this.updateScheduled=!0,this.children.forEach((function(t){return t.snapshotBoundingBox()})),this.stacks.forEach((function(t){return t.updateSnapshot()})),!t&&this.renderScheduled||(this.renderScheduled=!0,this.forceUpdate()))},n.prototype.addChild=function(t){this.children.add(t),this.addToStack(t),t.presence=this.hasMounted?Dr.Entering:Dr.Present},n.prototype.removeChild=function(t){this.scheduleUpdate(),this.children.delete(t),this.removeFromStack(t)},n.prototype.addToStack=function(t){var n=this.getStack(t.layoutId);null==n||n.add(t)},n.prototype.removeFromStack=function(t){var n=this.getStack(t.layoutId);null==n||n.remove(t)},n.prototype.getStack=function(t){if(void 0!==t)return!this.stacks.has(t)&&this.stacks.set(t,new Fi),this.stacks.get(t)},n.prototype.render=function(){return(0,vn.createElement)(Gr.Provider,{value:this.syncContext},this.props.children)},n}(vn.Component);function Hi(t){return fr((function(){return yn(t)}))}function ji(t,n){(0,vn.useEffect)((function(){return Br(t)?t.onChange(n):void 0}))}function Xi(t,n){var e=Hi(n()),r=function(){return e.set(n())};return r(),function(t,n){(0,vn.useEffect)((function(){var e=t.map((function(t){return t.onChange(n)}));return function(){return e.forEach((function(t){return t()}))}}))}(t,(function(){return P.update(r,!1,!0)})),e}function zi(t){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];var r=t.length;function o(){for(var e="",o=0;o<r;o++){e+=t[o],n[o]&&(e+=n[o].get())}return e}return Xi(n,o)}function Yi(t){var n,e=t instanceof gn?t.get():t;return n=e,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?e.toValue():e}var Wi=function(t){return function(t){return"object"==typeof t&&t.mix}(t)?t.mix:void 0};function Ni(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=!Array.isArray(t[0]),r=e?0:-1,o=t[0+r],a=t[1+r],u=t[2+r],s=t[3+r],c=Tt(a,u,i({mixer:Wi(u[0])},s));return e?c(o):c}function Gi(t,n,e,r){var o="function"==typeof n?n:Ni(n,e,r);return Array.isArray(t)?qi(t,o):qi([t],(function(t){var n=s(t,1)[0];return o(n)}))}function qi(t,n){var e=fr((function(){return[]}));return Xi(t,(function(){e.length=0;for(var r=t.length,o=0;o<r;o++)e[o]=t[o].get();return n(e)}))}var Zi=function(t){return t>.001?1/t:1e5};function _i(t){var n=Hi(1),e=Hi(1),r=Mr();return!0,t?(n=t.scaleX||n,e=t.scaleY||e):r&&(n=r.getValue("scaleX",1),e=r.getValue("scaleY",1)),{scaleX:Gi(n,Zi),scaleY:Gi(e,Zi)}}function $i(t,n){void 0===n&&(n={});var e=(0,vn.useRef)(null),r=Hi(Br(t)?t.get():t);return(0,vn.useMemo)((function(){return r.attach((function(t,o){return e.current&&e.current.stop(),e.current=Kt(i(i({from:r.get(),to:t,velocity:r.getVelocity()},n),{onUpdate:o})),r.get()}))}),Object.values(n)),ji(t,(function(t){return r.set(parseFloat(t))})),r}function Ki(){return{scrollX:yn(0),scrollY:yn(0),scrollXProgress:yn(0),scrollYProgress:yn(0)}}function Ji(t,n,e){e.set(t&&n?t/n:0)}function Qi(t,n){var e=function(){var e=n(),r=e.xOffset,o=e.yOffset,i=e.xMaxOffset,a=e.yMaxOffset;t.scrollX.set(r),t.scrollY.set(o),Ji(r,i,t.scrollXProgress),Ji(o,a,t.scrollYProgress)};return e(),e}function ta(t){var n=fr(Ki);return qr((function(){var e=t.current;if(e){var r=Qi(n,function(t){return function(){return{xOffset:t.scrollLeft,yOffset:t.scrollTop,xMaxOffset:t.scrollWidth-t.offsetWidth,yMaxOffset:t.scrollHeight-t.offsetHeight}}}(e)),o=so(e,"scroll",r,{passive:!0}),i=so(e,"resize",r);return function(){o&&o(),i&&i()}}}),[]),n}var na=Ki();function ea(){return{xOffset:window.pageXOffset,yOffset:window.pageYOffset,xMaxOffset:document.body.clientWidth-window.innerWidth,yMaxOffset:document.body.clientHeight-window.innerHeight}}var ra=!1;function oa(){return qr((function(){!ra&&function(){if(ra=!0,"undefined"!=typeof window){var t=Qi(na,ea);so(window,"scroll",t,{passive:!0}),so(window,"resize",t)}}()}),[]),na}var ia=yn(null);if("undefined"!=typeof window)if(window.matchMedia){var aa=window.matchMedia("(prefers-reduced-motion)"),ua=function(){return ia.set(aa.matches)};aa.addListener(ua),ua()}else ia.set(!1);function sa(){var t=s((0,vn.useState)(ia.get()),2),n=t[0],e=t[1];return ji(ia,e),n}function ca(){var t=fr((function(){return new ni}));return(0,vn.useEffect)((function(){return t.mount(),function(){return t.unmount()}}),[]),t}function la(t,n,e){void 0===e&&(e={});var r=Br(t)?t:yn(t);return Bn("",r,n,e),{stop:function(){return r.stop()}}}function fa(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t.length;var e=(0,vn.useRef)(0),r=s((0,vn.useState)(t[e.current]),2),o=r[0],i=r[1];return[o,function(n){e.current="number"!=typeof n?an(0,t.length,e.current+1):n,i(t[e.current])}]}var da=function(){function t(){this.componentControls=new Set}return t.prototype.subscribe=function(t){var n=this;return this.componentControls.add(t),function(){return n.componentControls.delete(t)}},t.prototype.start=function(t,n){this.componentControls.forEach((function(e){e.start(t.nativeEvent||t,n)}))},t.prototype.updateConstraints=function(){this.componentControls.forEach((function(t){t.prepareBoundingBox(),t.resolveDragConstraints()}))},t}(),pa=function(){return new da};function va(){return fr(pa)}function ha(t){var n=t&&"function"!=typeof t?t:(0,vn.useRef)(null);return t&&"function"==typeof t&&(0,vn.useEffect)((function(){return t(n.current),function(){return t(null)}}),[]),n}var ma=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.initialState={},n}return o(n,t),n.prototype.updateLayoutDelta=function(){},n.prototype.build=function(){},n.prototype.clean=function(){},n.prototype.makeTargetAnimatable=function(t){var n=t.transition,e=t.transitionEnd,r=a(t,["transition","transitionEnd"]);return $n(this,r,Jn(r,n||{},this)),i({transition:n,transitionEnd:e},r)},n.prototype.getBoundingBox=function(){return{x:{min:0,max:0},y:{min:0,max:0}}},n.prototype.readNativeValue=function(t){return this.initialState[t]||0},n.prototype.render=function(){this.build()},n}(ae);function ga(t){var n=s((0,vn.useState)(t),2),e=n[0],r=n[1],o=fr((function(){return new ma}));return o.updateConfig({onUpdate:function(t){return r(i({},t))}}),o.initialState=t,(0,vn.useEffect)((function(){return o.mount({}),function(){return o.unmount()}}),[]),[e,fr((function(){return function(t){return Qn(o,t)}}))]}}}]);
  //# sourceMappingURL=888.2639303b380d7acd3c95.js.map