PageSourceSearch

https://www.adv-res.com/_next/static/chunks/344-d1633dfa4d7ff3fe.js?dpl=dpl_BZ3QSSJzYiSD4dNKcdrDSGSfuNsF

js adv-res.com collected 2026-10-03 20:23:59 UTC 144,971 bytes, 1 lines download raw bytes

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

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.