(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[471],{63674:function(t,e){"use strict";var n=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,r=/\\([\u000b\u0020-\u00ff])/g,i=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function o(t){this.parameters=Object.create(null),this.type=t}e.Q=function(t){if(!t)throw TypeError("argument string is required");var e,s,a,l="object"==typeof t?function(t){var e;if("function"==typeof t.getHeader?e=t.getHeader("content-type"):"object"==typeof t.headers&&(e=t.headers&&t.headers["content-type"]),"string"!=typeof e)throw TypeError("content-type header is missing from object");return e}(t):t;if("string"!=typeof l)throw TypeError("argument string is required to be a string");var u=l.indexOf(";"),c=-1!==u?l.slice(0,u).trim():l.trim();if(!i.test(c))throw TypeError("invalid media type");var h=new o(c.toLowerCase());if(-1!==u){for(n.lastIndex=u;s=n.exec(l);){if(s.index!==u)throw TypeError("invalid parameter format");u+=s[0].length,e=s[1].toLowerCase(),34===(a=s[2]).charCodeAt(0)&&-1!==(a=a.slice(1,-1)).indexOf("\\")&&(a=a.replace(r,"$1")),h.parameters[e]=a}if(u!==l.length)throw TypeError("invalid parameter format")}return h}},4027:function(t,e,n){(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},r={};e.r(r),e.d(r,{default:()=>tS});let i=n(40718);var o=e.n(i);let s=n(2265);var a=e.n(s),l="fslightbox-",u="".concat(l,"styles"),c="".concat(l,"cursor-grabbing"),h="".concat(l,"full-dimension"),d="".concat(l,"flex-centered"),p="".concat(l,"transform-transition"),f="".concat(l,"absoluted"),m="".concat(l,"fade-in"),v="".concat(l,"fade-out"),g=m+"-strong",y=v+"-strong",b="".concat(l,"opacity-1");let x=function(t){var e=t.size,n=t.viewBox,r=t.d;return a().createElement("svg",{width:e,height:e,viewBox:n,xmlns:"http://www.w3.org/2000/svg"},a().createElement("path",{className:"".concat(l,"svg-path"),d:r}))},w=function(t){var e=t.onClick,n=t.viewBox,r=t.size,i=t.d,o=t.title;return a().createElement("div",{onClick:e,className:"".concat(l,"toolbar-button ").concat(d),title:o},a().createElement(x,{viewBox:n,size:r,d:i}))};function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);nt.length)&&(e=t.length);for(var n=0,r=Array(e);n55&&(d.current.style.justifyContent="flex-start")},[]),a().createElement("div",{ref:d,className:"".concat(l,"slide-number-container")},a().createElement("div",{ref:p,className:"fslightbox-flex-centered"},a().createElement("span",null,c),a().createElement("span",{className:"".concat(l,"slash")}),a().createElement("span",null,i.length)))},V=function(t){var e=t.fsLightbox;return a().createElement("div",{className:"".concat(l,"nav")},a().createElement(P,{fsLightbox:e}),e.props.sources.length>1&&a().createElement(C,{fsLightbox:e}))};function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);nt.length)&&(e=t.length);for(var n=0,r=Array(e);n0?l(s,"ne"):void 0!==a&&r.swipedX<0&&l(a,"p")}(t,e)}}function tl(t){var e=t.core.slideIndexChanger,n=t.smwm,r=t.stageIndexes,i=t.sws;function o(t){var e=n[r.current];e.a(),e[t]()}function s(t,e){void 0!==t&&(n[t].s(),n[t][e]())}this.p=function(){var t=r.previous;if(void 0===t)o("z");else{o("p");var n=r.next;e.changeTo(t);var a=r.previous;i.d(a),i.b(n),o("z"),s(a,"ne")}},this.n=function(){var t=r.next;if(void 0===t)o("z");else{o("ne");var n=r.previous;e.changeTo(t);var a=r.next;i.d(a),i.b(n),o("z"),s(a,"p")}}}function tu(t){t.componentsServices;var e=t.core.lightboxCloser,n=t.dss,r=t.elements.container,i=t.p,o=t.props.disableBackgroundClose,s=(0,t.r)(tl);this.n=function(){t.hsh(),i.isSourceDownEventTarget||o||e.closeLightbox(),i.isSwiping=!1},this.s=function(){n||(i.swipedX>0?s.p():s.n()),t.hsh(),r.current.classList.remove(c),i.isSwiping=!1}}function tc(t,e,n,r){var i=t.data,o=t.elements.sources,s=n/r,a=0;this.adjustSize=function(){if((a=i.maxSourceWidth/s)i.maxSourceHeight?i.maxSourceHeight:r,l()};var l=function(){var t=o[e].current.style;t.width=a*s+"px",t.height=a+"px"}}function th(t,e){var n=this,r=t.collections.sourceSizers,i=t.elements.sources,o=t.isl,s=t.resolve,a=t.saw,l=t.sawu;function u(t,n){r[e]=s(tc,[e,t,n]),r[e].adjustSize()}this.runActions=function(t,r){o[e]=!0,l[e](),i[e].current.classList.add(b),a[e].current.classList.add(g),u(t,r),n.runActions=u}}function td(t,e){var n,r=this,i=t.elements.sources,o=t.props,s=(0,t.resolve)(th,[e]);this.handleImageLoad=function(t){var e=t.target,n=e.naturalWidth,r=e.naturalHeight;s.runActions(n,r)},this.handleVideoLoad=function(t){var e=t.target,r=e.videoWidth,i=e.videoHeight;n=!0,s.runActions(r,i)},this.handleNotMetaDatedVideoLoad=function(){n||r.handleYoutubeLoad()},this.handleYoutubeLoad=function(){var t=1920,e=1080;o.maxYoutubeVideoDimensions&&(t=o.maxYoutubeVideoDimensions.width,e=o.maxYoutubeVideoDimensions.height),s.runActions(t,e)},this.handleCustomLoad=function(){var t=i[e].current;if(t){var n=t.offsetWidth,o=t.offsetHeight;n&&o?s.runActions(n,o):setTimeout(r.handleCustomLoad)}}}function tp(t){return(tp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tf(t){return(tf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tm(t,e,n){return(tm=tb()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&tg(i,n.prototype),i}).apply(null,arguments)}function tv(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);nwindow.innerHeight&&(document.body.style.marginRight=H.scrollbarWidth+"px")},$.removeRecompense=function(){document.body.style.removeProperty("margin-right")},X=r.core.slideIndexChanger,Z=r.sl,G=r.st,Z>1?(r.pr=function(){X.jumpTo(G.p())},r.n=function(){X.jumpTo(G.n())}):(r.pr=function(){},r.n=function(){}),Y=r.ap,K=r.componentsServices,Q=r.core.slideIndexChanger,J=r.isl,tt=r.saw,tr=r.smwm,tl=r.st,tc=r.stageIndexes,th=r.sws,Q.changeTo=function(t){Y.c(tc.current,t),tc.current=t,tl.u(),K.setSlideNumber(t+1),to(r)},Q.jumpTo=function(t){var e=tc.previous,n=tc.current,r=tc.next,i=J[n],o=J[t];Q.changeTo(t);for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:[];return e.unshift(this),tm(t,function(t){if(Array.isArray(t))return tv(t)}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return tv(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tv(t,void 0):void 0}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}},{key:"e",value:function(t){var e=this.props[t];e&&e(this)}},{key:"componentDidUpdate",value:function(t,e,n){this.core.lightboxUpdater.handleUpdate(t)}},{key:"componentDidMount",value:function(){var t,e,n,r,i,o,s,a;t=this.data,e=this.i,n=this.props.openOnMount,document.getElementsByClassName(u).length||I(),t.scrollbarWidth=(i=(r=document.createElement("div")).style,o=document.createElement("div"),i.visibility="hidden",i.width="100px",i.msOverflowStyle="scrollbar",i.overflow="scroll",o.style.width="100%",document.body.appendChild(r),s=r.offsetWidth,r.appendChild(o),a=o.offsetWidth,document.body.removeChild(r),s-a),n&&e()}},{key:"componentWillUnmount",value:function(){!function(t){for(var e=t.collections.xhrs,n=t.componentsServices.isLightboxOpenManager,r=t.core.globalEventsController,i=0;i1?a().createElement(a().Fragment,null,a().createElement(j,{onClick:this.pr,name:"previous",d:"M18.271,9.212H3.615l4.184-4.184c0.306-0.306,0.306-0.801,0-1.107c-0.306-0.306-0.801-0.306-1.107,0L1.21,9.403C1.194,9.417,1.174,9.421,1.158,9.437c-0.181,0.181-0.242,0.425-0.209,0.66c0.005,0.038,0.012,0.071,0.022,0.109c0.028,0.098,0.075,0.188,0.142,0.271c0.021,0.026,0.021,0.061,0.045,0.085c0.015,0.016,0.034,0.02,0.05,0.033l5.484,5.483c0.306,0.307,0.801,0.307,1.107,0c0.306-0.305,0.306-0.801,0-1.105l-4.184-4.185h14.656c0.436,0,0.788-0.353,0.788-0.788S18.707,9.212,18.271,9.212z"}),a().createElement(j,{onClick:this.n,name:"next",d:"M1.729,9.212h14.656l-4.184-4.184c-0.307-0.306-0.307-0.801,0-1.107c0.305-0.306,0.801-0.306,1.106,0l5.481,5.482c0.018,0.014,0.037,0.019,0.053,0.034c0.181,0.181,0.242,0.425,0.209,0.66c-0.004,0.038-0.012,0.071-0.021,0.109c-0.028,0.098-0.075,0.188-0.143,0.271c-0.021,0.026-0.021,0.061-0.045,0.085c-0.015,0.016-0.034,0.02-0.051,0.033l-5.483,5.483c-0.306,0.307-0.802,0.307-1.106,0c-0.307-0.305-0.307-0.801,0-1.105l4.184-4.185H1.729c-0.436,0-0.788-0.353-0.788-0.788S1.293,9.212,1.729,9.212z"})):null,a().createElement(F,{o:this})):null}}],function(t,e){for(var n,r=0;re.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function l(t){return function(e){return r.createElement(u,s({attr:s({},t.attr)},e),function t(e){return e&&e.map(function(e,n){return r.createElement(e.tag,s({key:n},e.attr),t(e.child))})}(t.child))}}function u(t){var e=function(e){var n,i=t.attr,o=t.size,l=t.title,u=a(t,["attr","size","title"]),c=o||e.size||"1em";return e.className&&(n=e.className),t.className&&(n=(n?n+" ":"")+t.className),r.createElement("svg",s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,i,u,{className:n,style:s(s({color:t.color||e.color},e.style),t.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),l&&r.createElement("title",null,l),t.children)};return void 0!==o?r.createElement(o.Consumer,null,function(t){return e(t)}):e(i)}},83918:function(t,e,n){"use strict";n.d(e,{Z:function(){return d}});var r=n(54887),i=n(2265),o=n(40718),s=n.n(o),a=!!("undefined"!=typeof window&&window.document&&window.document.createElement),l=function(){function t(t,e){for(var n=0;n0&&("always"===e||"once"===e&&!b[l])){for(var M=0,R=k.length;M desc");e&&t.removeChild(e);var n=document.createElement("desc");n.innerHTML=o,t.prepend(n)}if(c){var r=t.querySelector(":scope > title");r&&t.removeChild(r);var i=document.createElement("title");i.innerHTML=c,t.prepend(i)}try{p(t)}catch(t){v(t)}},cacheRequests:h,evalScripts:s,httpRequestWithCredentials:a,renumerateIRIElements:l})}},n.removeSVG=function(){var t;null!=(t=this.nonReactWrapper)&&t.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(t){var e=this;P((0,i.Z)({},t),this.props)&&this.setState(function(){return e.initialState},function(){e.removeSVG(),e.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var t=this.props;t.afterInjection,t.beforeInjection,t.desc,t.evalScripts;var e=t.fallback;t.httpRequestWithCredentials;var n=t.loading;t.renumerateIRIElements,t.src,t.title,t.useRequestCache;var o=t.wrapper,s=(0,r.Z)(t,T);return E.createElement(o,(0,i.Z)({},s,{ref:this.refCallback},"svg"===o?{xmlns:C,xmlnsXlink:V}:{}),this.state.isLoading&&n&&E.createElement(n,null),this.state.hasError&&e&&E.createElement(e,null))},e}(E.Component);k.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},k.propTypes={afterInjection:A.func,beforeInjection:A.func,desc:A.string,evalScripts:A.oneOf(["always","once","never"]),fallback:A.oneOfType([A.func,A.object,A.string]),httpRequestWithCredentials:A.bool,loading:A.oneOfType([A.func,A.object,A.string]),onError:A.func,renumerateIRIElements:A.bool,src:A.string.isRequired,title:A.string,useRequestCache:A.bool,wrapper:A.oneOf(["div","span","svg"])}},74610:function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n={};for(var r in t)if(({}).hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}n.d(e,{Z:function(){return r}})},58881:function(t,e,n){"use strict";n.d(e,{p:function(){return r}});let r=(0,n(2265).createContext)({})},64252:function(t,e,n){"use strict";n.d(e,{O:function(){return r}});let r=(0,n(2265).createContext)(null)},58345:function(t,e,n){"use strict";n.d(e,{Pn:function(){return a},Wi:function(){return s},frameData:function(){return l},S6:function(){return u}});var r=n(44439);class i{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){let e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}let o=["prepare","read","update","preRender","render","postRender"],{schedule:s,cancel:a,state:l,steps:u}=function(t,e){let n=!1,r=!0,s={delta:0,timestamp:0,isProcessing:!1},a=o.reduce((t,e)=>(t[e]=function(t){let e=new i,n=new i,r=0,o=!1,s=!1,a=new WeakSet,l={schedule:(t,i=!1,s=!1)=>{let l=s&&o,u=l?e:n;return i&&a.add(t),u.add(t)&&l&&o&&(r=e.order.length),t},cancel:t=>{n.remove(t),a.delete(t)},process:i=>{if(o){s=!0;return}if(o=!0,[e,n]=[n,e],n.clear(),r=e.order.length)for(let n=0;nn=!0),t),{}),l=t=>a[t].process(s),u=()=>{let i=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(i-s.timestamp,40),1),s.timestamp=i,s.isProcessing=!0,o.forEach(l),s.isProcessing=!1,n&&e&&(r=!1,t(u))},c=()=>{n=!0,r=!0,s.isProcessing||t(u)};return{schedule:o.reduce((t,e)=>{let r=a[e];return t[e]=(t,e=!1,i=!1)=>(n||c(),r.schedule(t,e,i)),t},{}),cancel:t=>o.forEach(e=>a[e].cancel(t)),state:s,steps:a}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:r.Z,!0)},60429:function(t,e,n){"use strict";let r;n.d(e,{E:function(){return iq}});var i,o,s=n(2265);let a=(0,s.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),l=(0,s.createContext)({});var u=n(64252),c=n(11534);let h=(0,s.createContext)({strict:!1}),d=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),p="data-"+d("framerAppearId");function f(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function m(t){return"string"==typeof t||Array.isArray(t)}function v(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}let g=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],y=["initial",...g];function b(t){return v(t.animate)||y.some(e=>m(t[e]))}function x(t){return!!(b(t)||t.variants)}function w(t){return Array.isArray(t)?t.join(" "):t}let S={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"]},A={};for(let t in S)A[t]={isEnabled:e=>S[t].some(t=>!!e[t])};var E=n(44563),P=n(58881);let T=(0,s.createContext)({}),C=Symbol.for("motionComponentSymbol"),V=["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 k(t){if("string"!=typeof t||t.includes("-"));else if(V.indexOf(t)>-1||/[A-Z]/.test(t))return!0;return!1}let L={},j=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],M=new Set(j);function R(t,{layout:e,layoutId:n}){return M.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!L[t]||"opacity"===t)}let O=t=>!!(t&&t.getVelocity),D={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},F=j.length,I=t=>e=>"string"==typeof e&&e.startsWith(t),B=I("--"),N=I("var(--"),W=(t,e)=>e&&"number"==typeof t?e.transform(t):t,U=(t,e,n)=>Math.min(Math.max(n,t),e),z={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},H={...z,transform:t=>U(0,1,t)},$={...z,default:1},q=t=>Math.round(1e5*t)/1e5,_=/(-)?([\d]*\.?[\d])+/g,X=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Z=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function G(t){return"string"==typeof t}let Y=t=>({test:e=>G(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),K=Y("deg"),Q=Y("%"),J=Y("px"),tt=Y("vh"),te=Y("vw"),tn={...Q,parse:t=>Q.parse(t)/100,transform:t=>Q.transform(100*t)},tr={...z,transform:Math.round},ti={borderWidth:J,borderTopWidth:J,borderRightWidth:J,borderBottomWidth:J,borderLeftWidth:J,borderRadius:J,radius:J,borderTopLeftRadius:J,borderTopRightRadius:J,borderBottomRightRadius:J,borderBottomLeftRadius:J,width:J,maxWidth:J,height:J,maxHeight:J,size:J,top:J,right:J,bottom:J,left:J,padding:J,paddingTop:J,paddingRight:J,paddingBottom:J,paddingLeft:J,margin:J,marginTop:J,marginRight:J,marginBottom:J,marginLeft:J,rotate:K,rotateX:K,rotateY:K,rotateZ:K,scale:$,scaleX:$,scaleY:$,scaleZ:$,skew:K,skewX:K,skewY:K,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:H,originX:tn,originY:tn,originZ:J,zIndex:tr,fillOpacity:H,strokeOpacity:H,numOctaves:tr};function to(t,e,n,r){let{style:i,vars:o,transform:s,transformOrigin:a}=t,l=!1,u=!1,c=!0;for(let t in e){let n=e[t];if(B(t)){o[t]=n;continue}let r=ti[t],h=W(n,r);if(M.has(t)){if(l=!0,s[t]=h,!c)continue;n!==(r.default||0)&&(c=!1)}else t.startsWith("origin")?(u=!0,a[t]=h):i[t]=h}if(!e.transform&&(l||r?i.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,i){let o="";for(let e=0;e({style:{},transform:{},transformOrigin:{},vars:{}});function ta(t,e,n){for(let r in e)O(e[r])||R(r,n)||(t[r]=e[r])}let tl=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function tu(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||tl.has(t)}let tc=t=>!tu(t);try{(i=require("@emotion/is-prop-valid").default)&&(tc=t=>t.startsWith("on")?!tu(t):i(t))}catch(t){}function th(t,e,n){return"string"==typeof t?t:J.transform(e+n*t)}let td={offset:"stroke-dashoffset",array:"stroke-dasharray"},tp={offset:"strokeDashoffset",array:"strokeDasharray"};function tf(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,h,d){if(to(t,u,c,d),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:p,style:f,dimensions:m}=t;p.transform&&(m&&(f.transform=p.transform),delete p.transform),m&&(void 0!==i||void 0!==o||f.transform)&&(f.transformOrigin=function(t,e,n){let r=th(e,t.x,t.width),i=th(n,t.y,t.height);return`${r} ${i}`}(m,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==e&&(p.x=e),void 0!==n&&(p.y=n),void 0!==r&&(p.scale=r),void 0!==s&&function(t,e,n=1,r=0,i=!0){t.pathLength=1;let o=i?td:tp;t[o.offset]=J.transform(-r);let s=J.transform(e),a=J.transform(n);t[o.array]=`${s} ${a}`}(p,s,a,l,!1)}let tm=()=>({...ts(),attrs:{}}),tv=t=>"string"==typeof t&&"svg"===t.toLowerCase();function tg(t,{style:e,vars:n},r,i){for(let o in Object.assign(t.style,e,i&&i.getProjectionStyles(r)),n)t.style.setProperty(o,n[o])}let ty=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 tb(t,e,n,r){for(let n in tg(t,e,void 0,r),e.attrs)t.setAttribute(ty.has(n)?n:d(n),e.attrs[n])}function tx(t,e){let{style:n}=t,r={};for(let i in n)(O(n[i])||e.style&&O(e.style[i])||R(i,t))&&(r[i]=n[i]);return r}function tw(t,e){let n=tx(t,e);for(let r in t)(O(t[r])||O(e[r]))&&(n[-1!==j.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]);return n}function tS(t,e,n,r={},i={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,i)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,i)),e}var tA=n(53576);let tE=t=>Array.isArray(t),tP=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),tT=t=>tE(t)?t[t.length-1]||0:t;function tC(t){let e=O(t)?t.get():t;return tP(e)?e.toValue():e}let tV=t=>(e,n)=>{let r=(0,s.useContext)(l),i=(0,s.useContext)(u.O),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,i,o){let s={latestValues:function(t,e,n,r){let i={},o=r(t,{});for(let t in o)i[t]=tC(o[t]);let{initial:s,animate:a}=t,l=b(t),u=x(t);e&&u&&!l&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===a&&(a=e.animate));let c=!!n&&!1===n.initial,h=(c=c||!1===s)?a:s;return h&&"boolean"!=typeof h&&!v(h)&&(Array.isArray(h)?h:[h]).forEach(e=>{let n=tS(t,e);if(!n)return;let{transitionEnd:r,transition:o,...s}=n;for(let t in s){let e=s[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(i[t]=e)}for(let t in r)i[t]=r[t]}),i}(r,i,o,t),renderState:e()};return n&&(s.mount=t=>n(r,t,s)),s})(t,e,r,i);return n?o():(0,tA.h)(o)};var tk=n(58345);let tL={useVisualState:tV({scrapeMotionValuesFromProps:tw,createRenderState:tm,onMount:(t,e,{renderState:n,latestValues:r})=>{tk.Wi.read(()=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}}),tk.Wi.render(()=>{tf(n,r,{enableHardwareAcceleration:!1},tv(e.tagName),t.transformTemplate),tb(e,n)})}})},tj={useVisualState:tV({scrapeMotionValuesFromProps:tx,createRenderState:ts})};function tM(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}let tR=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tO(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}let tD=t=>e=>tR(e)&&t(e,tO(e));function tF(t,e,n,r){return tM(t,e,tD(n),r)}let tI=(t,e)=>n=>e(t(n)),tB=(...t)=>t.reduce(tI);function tN(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let tW=tN("dragHorizontal"),tU=tN("dragVertical");function tz(t){let e=!1;if("y"===t)e=tU();else if("x"===t)e=tW();else{let t=tW(),n=tU();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function tH(){let t=tz(!0);return!t||(t(),!1)}class t${constructor(t){this.isMounted=!1,this.node=t}update(){}}function tq(t,e){let n="onHover"+(e?"Start":"End");return tF(t.current,"pointer"+(e?"enter":"leave"),(r,i)=>{if("touch"===r.pointerType||tH())return;let o=t.getProps();t.animationState&&o.whileHover&&t.animationState.setActive("whileHover",e),o[n]&&tk.Wi.update(()=>o[n](r,i))},{passive:!t.getProps()[n]})}class t_ extends t${mount(){this.unmount=tB(tq(this.node,!0),tq(this.node,!1))}unmount(){}}class tX extends t${constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tB(tM(this.node.current,"focus",()=>this.onFocus()),tM(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let tZ=(t,e)=>!!e&&(t===e||tZ(t,e.parentElement));var tG=n(44439);function tY(t,e){if(!e)return;let n=new PointerEvent("pointer"+t);e(n,tO(n))}class tK extends t${constructor(){super(...arguments),this.removeStartListeners=tG.Z,this.removeEndListeners=tG.Z,this.removeAccessibleListeners=tG.Z,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let n=this.node.getProps(),r=tF(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:r,globalTapTarget:i}=this.node.getProps();tk.Wi.update(()=>{i||tZ(this.node.current,t.target)?n&&n(t,e):r&&r(t,e)})},{passive:!(n.onTap||n.onPointerUp)}),i=tF(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=tB(r,i),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=tM(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=tM(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&tY("up",(t,e)=>{let{onTap:n}=this.node.getProps();n&&tk.Wi.update(()=>n(t,e))})}),tY("down",(t,e)=>{this.startPress(t,e)}))}),e=tM(this.node.current,"blur",()=>{this.isPressing&&tY("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=tB(t,e)}}startPress(t,e){this.isPressing=!0;let{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&tk.Wi.update(()=>n(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!tH()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&tk.Wi.update(()=>n(t,e))}mount(){let t=this.node.getProps(),e=tF(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=tM(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=tB(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let tQ=new WeakMap,tJ=new WeakMap,t0=t=>{let e=tQ.get(t.target);e&&e(t)},t1=t=>{t.forEach(t0)},t2={some:0,all:1};class t5 extends t${constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:r="some",once:i}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:t2[r]};return function(t,e,n){let r=function({root:t,...e}){let n=t||document;tJ.has(n)||tJ.set(n,{});let r=tJ.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(t1,{root:t,...e})),r[i]}(e);return tQ.set(t,n),r.observe(t),()=>{tQ.delete(t),r.unobserve(t)}}(this.node.current,o,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,i&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=e?n:r;o&&o(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}function t3(t,e){if(!Array.isArray(e))return!1;let n=e.length;if(n!==t.length)return!1;for(let r=0;re[n]=t.get()),e}(t),function(t){let e={};return t.values.forEach((t,n)=>e[n]=t.getVelocity()),e}(t))}var t8=n(13223);let t6=t=>1e3*t,t9=t=>t/1e3,t7={current:!1},et=t=>Array.isArray(t)&&"number"==typeof t[0],ee=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,en={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ee([0,.65,.55,1]),circOut:ee([.55,0,1,.45]),backIn:ee([.31,.01,.66,-.59]),backOut:ee([.33,1.53,.69,.99])},er=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function ei(t,e,n,r){if(t===e&&n===r)return tG.Z;let i=e=>(function(t,e,n,r,i){let o,s;let a=0;do(o=er(s=e+(n-e)/2,r,i)-t)>0?n=s:e=s;while(Math.abs(o)>1e-7&&++a<12);return s})(e,0,1,t,n);return t=>0===t||1===t?t:er(i(t),e,r)}let eo=ei(.42,0,1,1),es=ei(0,0,.58,1),ea=ei(.42,0,.58,1),el=t=>Array.isArray(t)&&"number"!=typeof t[0],eu=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ec=t=>e=>1-t(1-e),eh=t=>1-Math.sin(Math.acos(t)),ed=ec(eh),ep=eu(eh),ef=ei(.33,1.53,.69,.99),em=ec(ef),ev=eu(em),eg={linear:tG.Z,easeIn:eo,easeInOut:ea,easeOut:es,circIn:eh,circInOut:ep,circOut:ed,backIn:em,backInOut:ev,backOut:ef,anticipate:t=>(t*=2)<1?.5*em(t):.5*(2-Math.pow(2,-10*(t-1)))},ey=t=>{if(Array.isArray(t)){(0,t8.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,n,r,i]=t;return ei(e,n,r,i)}return"string"==typeof t?((0,t8.k)(void 0!==eg[t],`Invalid easing type '${t}'`),eg[t]):t},eb=(t,e)=>n=>!!(G(n)&&Z.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),ex=(t,e,n)=>r=>{if(!G(r))return r;let[i,o,s,a]=r.match(_);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},ew=t=>U(0,255,t),eS={...z,transform:t=>Math.round(ew(t))},eA={test:eb("rgb","red"),parse:ex("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+eS.transform(t)+", "+eS.transform(e)+", "+eS.transform(n)+", "+q(H.transform(r))+")"},eE={test:eb("#"),parse:function(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:eA.transform},eP={test:eb("hsl","hue"),parse:ex("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Q.transform(q(e))+", "+Q.transform(q(n))+", "+q(H.transform(r))+")"},eT={test:t=>eA.test(t)||eE.test(t)||eP.test(t),parse:t=>eA.test(t)?eA.parse(t):eP.test(t)?eP.parse(t):eE.parse(t),transform:t=>G(t)?t:t.hasOwnProperty("red")?eA.transform(t):eP.transform(t)},eC=(t,e,n)=>-n*t+n*e+t;function eV(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}let ek=(t,e,n)=>{let r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},eL=[eE,eA,eP],ej=t=>eL.find(e=>e.test(t));function eM(t){let e=ej(t);(0,t8.k)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let n=e.parse(t);return e===eP&&(n=function({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let i=0,o=0,s=0;if(e/=100){let r=n<.5?n*(1+e):n+e-n*e,a=2*n-r;i=eV(a,r,t+1/3),o=eV(a,r,t),s=eV(a,r,t-1/3)}else i=o=s=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:r}}(n)),n}let eR=(t,e)=>{let n=eM(t),r=eM(e),i={...n};return t=>(i.red=ek(n.red,r.red,t),i.green=ek(n.green,r.green,t),i.blue=ek(n.blue,r.blue,t),i.alpha=eC(n.alpha,r.alpha,t),eA.transform(i))},eO={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:tG.Z},eD={regex:X,countKey:"Colors",token:"${c}",parse:eT.parse},eF={regex:_,countKey:"Numbers",token:"${n}",parse:z.parse};function eI(t,{regex:e,countKey:n,token:r,parse:i}){let o=t.tokenised.match(e);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...o.map(i)))}function eB(t){let e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&eI(n,eO),eI(n,eD),eI(n,eF),n}function eN(t){return eB(t).values}function eW(t){let{values:e,numColors:n,numVars:r,tokenised:i}=eB(t),o=e.length;return t=>{let e=i;for(let i=0;i"number"==typeof t?0:t,ez={test:function(t){var e,n;return isNaN(t)&&G(t)&&((null===(e=t.match(_))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(X))||void 0===n?void 0:n.length)||0)>0},parse:eN,createTransformer:eW,getAnimatableNone:function(t){let e=eN(t);return eW(t)(e.map(eU))}},eH=(t,e)=>n=>`${n>0?e:t}`;function e$(t,e){return"number"==typeof t?n=>eC(t,e,n):eT.test(t)?eR(t,e):t.startsWith("var(")?eH(t,e):eX(t,e)}let eq=(t,e)=>{let n=[...t],r=n.length,i=t.map((t,n)=>e$(t,e[n]));return t=>{for(let e=0;e{let n={...t,...e},r={};for(let i in n)void 0!==t[i]&&void 0!==e[i]&&(r[i]=e$(t[i],e[i]));return t=>{for(let e in r)n[e]=r[e](t);return n}},eX=(t,e)=>{let n=ez.createTransformer(e),r=eB(t),i=eB(e);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?tB(eq(r.values,i.values),n):((0,t8.K)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),eH(t,e))},eZ=(t,e,n)=>{let r=e-t;return 0===r?1:(n-t)/r},eG=(t,e)=>n=>eC(t,e,n);function eY(t,e,{clamp:n=!0,ease:r,mixer:i}={}){let o=t.length;if((0,t8.k)(o===e.length,"Both input and output ranges must be the same length"),1===o)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());let s=function(t,e,n){let r=[],i=n||function(t){if("number"==typeof t);else if("string"==typeof t)return eT.test(t)?eR:eX;else if(Array.isArray(t))return eq;else if("object"==typeof t)return e_;return eG}(t[0]),o=t.length-1;for(let n=0;n{let n=0;if(a>1)for(;nl(U(t[0],t[o-1],e)):l}function eK({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){let i=el(r)?r.map(ey):ey(r),o={done:!1,value:e[0]},s=eY((n&&n.length===e.length?n:function(t){let e=[0];return function(t,e){let n=t[t.length-1];for(let r=1;r<=e;r++){let i=eZ(0,e,r);t.push(eC(n,1,i))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(i)?i:e.map(()=>i||ea).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=s(e),o.done=e>=t,o)}}function eQ(t,e,n){var r,i;let o=Math.max(e-5,0);return r=n-t(o),(i=e-o)?1e3/i*r:0}function eJ(t,e){return t*Math.sqrt(1-e*e)}let e0=["duration","bounce"],e1=["stiffness","damping","mass"];function e2(t,e){return e.some(e=>void 0!==t[e])}function e5({keyframes:t,restDelta:e,restSpeed:n,...r}){let i;let o=t[0],s=t[t.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:h,velocity:d,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!e2(t,e1)&&e2(t,e0)){let n=function({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,o;(0,t8.K)(t<=t6(10),"Spring duration must be 10 seconds or less");let s=1-e;s=U(.05,1,s),t=U(.01,10,t9(t)),s<1?(i=e=>{let r=e*s,i=r*t;return .001-(r-n)/eJ(e,s)*Math.exp(-i)},o=e=>{let r=e*s*t,o=Math.pow(s,2)*Math.pow(e,2)*t,a=eJ(Math.pow(e,2),s);return(r*n+n-o)*Math.exp(-r)*(-i(e)+.001>0?-1:1)/a}):(i=e=>-.001+Math.exp(-e*t)*((e-n)*t+1),o=e=>t*t*(n-e)*Math.exp(-e*t));let a=function(t,e,n){let r=n;for(let n=1;n<12;n++)r-=t(r)/e(r);return r}(i,o,5/t);if(t=t6(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*r;return{stiffness:e,damping:2*s*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...n,mass:1}).isResolvedFromDuration=!0}return e}({...r,velocity:-t9(r.velocity||0)}),f=d||0,m=u/(2*Math.sqrt(l*c)),v=s-o,g=t9(Math.sqrt(l/c)),y=5>Math.abs(v);if(n||(n=y?.01:2),e||(e=y?.005:.5),m<1){let t=eJ(g,m);i=e=>s-Math.exp(-m*g*e)*((f+m*g*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}else if(1===m)i=t=>s-Math.exp(-g*t)*(v+(f+g*v)*t);else{let t=g*Math.sqrt(m*m-1);i=e=>{let n=Math.exp(-m*g*e),r=Math.min(t*e,300);return s-n*((f+m*g*v)*Math.sinh(r)+t*v*Math.cosh(r))/t}}return{calculatedDuration:p&&h||null,next:t=>{let r=i(t);if(p)a.done=t>=h;else{let o=f;0!==t&&(o=m<1?eQ(i,t,r):0);let l=Math.abs(o)<=n,u=Math.abs(s-r)<=e;a.done=l&&u}return a.value=a.done?s:r,a}}}function e3({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){let h,d;let p=t[0],f={done:!1,value:p},m=t=>void 0!==a&&tl,v=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)-g*Math.exp(-t/r),w=t=>b+x(t),S=t=>{let e=x(t),n=w(t);f.done=Math.abs(e)<=u,f.value=f.done?b:n},A=t=>{m(f.value)&&(h=t,d=e5({keyframes:[f.value,v(f.value)],velocity:eQ(w,t,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return A(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==h||(e=!0,S(t),A(t)),void 0!==h&&t>h)?d.next(t-h):(e||S(t),f)}}}let e4=t=>{let e=({timestamp:e})=>t(e);return{start:()=>tk.Wi.update(e,!0),stop:()=>(0,tk.Pn)(e),now:()=>tk.frameData.isProcessing?tk.frameData.timestamp:performance.now()}};function e8(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}let e6={decay:e3,inertia:e3,tween:eK,keyframes:eK,spring:e5};function e9({autoplay:t=!0,delay:e=0,driver:n=e4,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:h,...d}){let p,f,m,v,g,y=1,b=!1,x=()=>{f=new Promise(t=>{p=t})};x();let w=e6[i]||eK;w!==eK&&"number"!=typeof r[0]&&(v=eY([0,100],r,{clamp:!1}),r=[0,100]);let S=w({...d,keyframes:r});"mirror"===a&&(g=w({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let A="idle",E=null,P=null,T=null;null===S.calculatedDuration&&o&&(S.calculatedDuration=e8(S));let{calculatedDuration:C}=S,V=1/0,k=1/0;null!==C&&(k=(V=C+s)*(o+1)-s);let L=0,j=t=>{if(null===P)return;y>0&&(P=Math.min(P,t)),y<0&&(P=Math.min(t-k/y,P));let n=(L=null!==E?E:Math.round(t-P)*y)-e*(y>=0?1:-1),i=y>=0?n<0:n>k;L=Math.max(n,0),"finished"===A&&null===E&&(L=k);let l=L,u=S;if(o){let t=Math.min(L,k)/V,e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,(e=Math.min(e,o+1))%2&&("reverse"===a?(n=1-n,s&&(n-=s/V)):"mirror"===a&&(u=g)),l=U(0,1,n)*V}let c=i?{done:!1,value:r[0]}:u.next(l);v&&(c.value=v(c.value));let{done:d}=c;i||null===C||(d=y>=0?L>=k:L<=0);let p=null===E&&("finished"===A||"running"===A&&d);return h&&h(c.value),p&&O(),c},M=()=>{m&&m.stop(),m=void 0},R=()=>{A="idle",M(),p(),x(),P=T=null},O=()=>{A="finished",c&&c(),M(),p()},D=()=>{if(b)return;m||(m=n(j));let t=m.now();l&&l(),null!==E?P=t-E:P&&"finished"!==A||(P=t),"finished"===A&&x(),T=P,E=null,A="running",m.start()};t&&D();let F={then:(t,e)=>f.then(t,e),get time(){return t9(L)},set time(newTime){L=newTime=t6(newTime),null===E&&m&&0!==y?P=m.now()-newTime/y:E=newTime},get duration(){return t9(null===S.calculatedDuration?e8(S):S.calculatedDuration)},get speed(){return y},set speed(newSpeed){if(newSpeed===y||!m)return;y=newSpeed,F.time=t9(L)},get state(){return A},play:D,pause:()=>{A="paused",E=L},stop:()=>{b=!0,"idle"!==A&&(A="idle",u&&u(),R())},cancel:()=>{null!==T&&j(T),R()},complete:()=>{A="finished"},sample:t=>(P=0,j(t))};return F}let e7=(o=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===r&&(r=o()),r)),nt=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ne=(t,e)=>"spring"===e.type||"backgroundColor"===t||!function t(e){return!!(!e||"string"==typeof e&&en[e]||et(e)||Array.isArray(e)&&e.every(t))}(e.ease),nn={type:"spring",stiffness:500,damping:25,restSpeed:10},nr=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),ni={type:"keyframes",duration:.8},no={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ns=(t,{keyframes:e})=>e.length>2?ni:M.has(t)?t.startsWith("scale")?nr(e[1]):nn:no,na=(t,e)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(ez.test(e)||"0"===e)&&!e.startsWith("url(")),nl=new Set(["brightness","contrast","saturate","opacity"]);function nu(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=n.match(_)||[];if(!r)return t;let i=n.replace(r,""),o=nl.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}let nc=/([a-z-]*)\(.*?\)/g,nh={...ez,getAnimatableNone:t=>{let e=t.match(nc);return e?e.map(nu).join(" "):t}},nd={...ti,color:eT,backgroundColor:eT,outlineColor:eT,fill:eT,stroke:eT,borderColor:eT,borderTopColor:eT,borderRightColor:eT,borderBottomColor:eT,borderLeftColor:eT,filter:nh,WebkitFilter:nh},np=t=>nd[t];function nf(t,e){let n=np(t);return n!==nh&&(n=ez),n.getAnimatableNone?n.getAnimatableNone(e):void 0}let nm=t=>/^0[^.\s]+$/.test(t);function nv(t,e){return t[e]||t.default||t}let ng={skipAnimations:!1},ny=(t,e,n,r={})=>i=>{let o=nv(r,t)||{},s=o.delay||r.delay||0,{elapsed:a=0}=r;a-=t6(s);let l=function(t,e,n,r){let i,o;let s=na(e,n);i=Array.isArray(n)?[...n]:[null,n];let a=void 0!==r.from?r.from:t.get(),l=[];for(let t=0;t{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(!function({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(o)&&(p={...p,...ns(t,p)}),p.duration&&(p.duration=t6(p.duration)),p.repeatDelay&&(p.repeatDelay=t6(p.repeatDelay)),!h||!d||t7.current||!1===o.type||ng.skipAnimations)return function({keyframes:t,delay:e,onUpdate:n,onComplete:r}){let i=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:tG.Z,pause:tG.Z,stop:tG.Z,then:t=>(t(),Promise.resolve()),cancel:tG.Z,complete:tG.Z});return e?e9({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}(t7.current?{...p,delay:0}:p);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){let n=function(t,e,{onUpdate:n,onComplete:r,...i}){let o,s;if(!(e7()&&nt.has(e)&&!i.repeatDelay&&"mirror"!==i.repeatType&&0!==i.damping&&"inertia"!==i.type))return!1;let a=!1,l=!1,u=()=>{s=new Promise(t=>{o=t})};u();let{keyframes:c,duration:h=300,ease:d,times:p}=i;if(ne(e,i)){let t=e9({...i,repeat:0,delay:0}),e={done:!1,value:c[0]},n=[],r=0;for(;!e.done&&r<2e4;)e=t.sample(r),n.push(e.value),r+=10;p=void 0,c=n,h=r-10,d="linear"}let f=function(t,e,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){let u={[e]:n};l&&(u.offset=l);let c=function t(e){if(e)return et(e)?ee(e):Array.isArray(e)?e.map(t):en[e]}(a);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(t.owner.current,e,c,{...i,duration:h,ease:d,times:p}),m=()=>{l=!1,f.cancel()},v=()=>{l=!0,tk.Wi.update(m),o(),u()};return f.onfinish=()=>{l||(t.set(function(t,{repeat:e,repeatType:n="loop"}){let r=e&&"loop"!==n&&e%2==1?0:t.length-1;return t[r]}(c,i)),r&&r(),v())},{then:(t,e)=>s.then(t,e),attachTimeline:t=>(f.timeline=t,f.onfinish=null,tG.Z),get time(){return t9(f.currentTime||0)},set time(newTime){f.currentTime=t6(newTime)},get speed(){return f.playbackRate},set speed(newSpeed){f.playbackRate=newSpeed},get duration(){return t9(h)},play:()=>{a||(f.play(),(0,tk.Pn)(m))},pause:()=>f.pause(),stop:()=>{if(a=!0,"idle"===f.playState)return;let{currentTime:e}=f;if(e){let n=e9({...i,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}v()},complete:()=>{l||f.finish()},cancel:v}}(e,t,p);if(n)return n}return e9(p)};function nb(t){return!!(O(t)&&t.add)}let nx=t=>/^\-?\d*\.?\d+$/.test(t);function nw(t,e){-1===t.indexOf(e)&&t.push(e)}function nS(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}class nA{constructor(){this.subscriptions=[]}add(t){return nw(this.subscriptions,t),()=>nS(this.subscriptions,t)}notify(t,e,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](t,e,n);else for(let i=0;i!isNaN(parseFloat(t)),nP={current:void 0};class nT{constructor(t,e={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;let{delta:n,timestamp:r}=tk.frameData;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,tk.Wi.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>tk.Wi.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=nE(this.current),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new nA);let n=this.events[t].add(e);return"change"===t?()=>{n(),tk.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return nP.current&&nP.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t,e;return this.canTrackVelocity?(t=parseFloat(this.current)-parseFloat(this.prev),(e=this.timeDelta)?1e3/e*t:0):0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function nC(t,e){return new nT(t,e)}let nV=t=>e=>e.test(t),nk=[z,J,Q,K,te,tt,{test:t=>"auto"===t,parse:t=>t}],nL=t=>nk.find(nV(t)),nj=[...nk,eT,ez],nM=t=>nj.find(nV(t));function nR(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:s,...a}=t.makeTargetAnimatable(e),l=t.getValue("willChange");r&&(o=r);let u=[],c=i&&t.animationState&&t.animationState.getState()[i];for(let e in a){let r=t.getValue(e),i=a[e];if(!r||void 0===i||c&&function({protectedKeys:t,needsAnimating:e},n){let r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}(c,e))continue;let s={delay:n,elapsed:0,...nv(o||{},e)};if(window.HandoffAppearAnimations){let n=t.getProps()[p];if(n){let t=window.HandoffAppearAnimations(n,e,r,tk.Wi);null!==t&&(s.elapsed=t,s.isHandoff=!0)}}let h=!s.isHandoff&&!function(t,e){let n=t.get();if(!Array.isArray(e))return n!==e;for(let t=0;tl.remove(e))),u.push(d)}return s&&Promise.all(u).then(()=>{s&&function(t,e){let n=t4(t,e),{transitionEnd:r={},transition:i={},...o}=n?t.makeTargetAnimatable(n,!1):{};for(let e in o={...o,...r}){let n=tT(o[e]);t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,nC(n))}}(t,s)}),u}function nO(t,e,n={}){let r=t4(t,e,n.custom),{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let o=r?()=>Promise.all(nR(t,r,n)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(t,e,n=0,r=0,i=1,o){let s=[],a=(t.variantChildren.size-1)*r,l=1===i?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(nD).forEach((t,r)=>{t.notify("AnimationStart",e),s.push(nO(t,e,{...o,delay:n+l(r)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(s)}(t,e,o+r,s,a,n)}:()=>Promise.resolve(),{when:a}=i;if(!a)return Promise.all([o(),s(n.delay)]);{let[t,e]="beforeChildren"===a?[o,s]:[s,o];return t().then(()=>e())}}function nD(t,e){return t.sortNodePosition(e)}let nF=[...g].reverse(),nI=g.length;function nB(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class nN extends t${constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:n})=>(function(t,e,n={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>nO(t,e,n)));else if("string"==typeof e)r=nO(t,e,n);else{let i="function"==typeof e?t4(t,e,n.custom):e;r=Promise.all(nR(t,i,n))}return r.then(()=>t.notify("AnimationComplete",e))})(t,e,n))),n={animate:nB(!0),whileInView:nB(),whileHover:nB(),whileTap:nB(),whileDrag:nB(),whileFocus:nB(),exit:nB()},r=!0,i=(e,n)=>{let r=t4(t,n);if(r){let{transition:t,transitionEnd:n,...i}=r;e={...e,...i,...n}}return e};function o(o,s){let a=t.getProps(),l=t.getVariantContext(!0)||{},u=[],c=new Set,h={},d=1/0;for(let e=0;ed&&b),A=!1,E=Array.isArray(y)?y:[y],P=E.reduce(i,{});!1===x&&(P={});let{prevResolvedValues:T={}}=g,C={...T,...P},V=t=>{S=!0,c.has(t)&&(A=!0,c.delete(t)),g.needsAnimating[t]=!0};for(let t in C){let e=P[t],n=T[t];if(!h.hasOwnProperty(t))(tE(e)&&tE(n)?t3(e,n):e===n)?void 0!==e&&c.has(t)?V(t):g.protectedKeys[t]=!0:void 0!==e?V(t):c.add(t)}g.prevProp=y,g.prevResolvedValues=P,g.isActive&&(h={...h,...P}),r&&t.blockInitialAnimation&&(S=!1),S&&(!w||A)&&u.push(...E.map(t=>({animation:t,options:{type:f,...o}})))}if(c.size){let e={};c.forEach(n=>{let r=t.getBaseTarget(n);void 0!==r&&(e[n]=r)}),u.push({animation:e})}let f=!!u.length;return r&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(f=!1),r=!1,f?e(u):Promise.resolve()}return{animateChanges:o,setActive:function(e,r,i){var s;if(n[e].isActive===r)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach(t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,r)}),n[e].isActive=r;let a=o(i,e);for(let t in n)n[t].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),v(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}let nW=0;class nU extends t${constructor(){super(...arguments),this.id=nW++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;let i=this.node.animationState.setActive("exit",!t,{custom:null!=n?n:this.node.getProps().custom});e&&!t&&i.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}let nz=(t,e)=>Math.abs(t-e);class nH{constructor(t,e,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=n_(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(t=n.offset,e={x:0,y:0},Math.sqrt(nz(t.x,e.x)**2+nz(t.y,e.y)**2)>=3);if(!r&&!i)return;let{point:o}=n,{timestamp:s}=tk.frameData;this.history.push({...o,timestamp:s});let{onStart:a,onMove:l}=this.handlers;r||(a&&a(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=n$(e,this.transformPagePoint),tk.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=n_("pointercancel"===t.type?this.lastMoveEventInfo:n$(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),r&&r(t,o)},!tR(t))return;this.dragSnapToOrigin=i,this.handlers=e,this.transformPagePoint=n,this.contextWindow=r||window;let o=n$(tO(t),this.transformPagePoint),{point:s}=o,{timestamp:a}=tk.frameData;this.history=[{...s,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,n_(o,this.history)),this.removeListeners=tB(tF(this.contextWindow,"pointermove",this.handlePointerMove),tF(this.contextWindow,"pointerup",this.handlePointerUp),tF(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,tk.Pn)(this.updatePoint)}}function n$(t,e){return e?{point:e(t.point)}:t}function nq(t,e){return{x:t.x-e.x,y:t.y-e.y}}function n_({point:t},e){return{point:t,delta:nq(t,nX(e)),offset:nq(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null,i=nX(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>t6(.1)));)n--;if(!r)return{x:0,y:0};let o=t9(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};let s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e,0)}}function nX(t){return t[t.length-1]}function nZ(t){return t.max-t.min}function nG(t,e=0,n=.01){return Math.abs(t-e)<=n}function nY(t,e,n,r=.5){t.origin=r,t.originPoint=eC(e.min,e.max,t.origin),t.scale=nZ(n)/nZ(e),(nG(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=eC(n.min,n.max,t.origin)-t.originPoint,(nG(t.translate)||isNaN(t.translate))&&(t.translate=0)}function nK(t,e,n,r){nY(t.x,e.x,n.x,r?r.originX:void 0),nY(t.y,e.y,n.y,r?r.originY:void 0)}function nQ(t,e,n){t.min=n.min+e.min,t.max=t.min+nZ(e)}function nJ(t,e,n){t.min=e.min-n.min,t.max=t.min+nZ(e)}function n0(t,e,n){nJ(t.x,e.x,n.x),nJ(t.y,e.y,n.y)}function n1(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 n2(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min({translate:0,scale:1,origin:0,originPoint:0}),n8=()=>({x:n4(),y:n4()}),n6=()=>({min:0,max:0}),n9=()=>({x:n6(),y:n6()});function n7(t){return[t("x"),t("y")]}function rt({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function re(t){return void 0===t||1===t}function rn({scale:t,scaleX:e,scaleY:n}){return!re(t)||!re(e)||!re(n)}function rr(t){return rn(t)||ri(t)||t.z||t.rotate||t.rotateX||t.rotateY}function ri(t){var e,n;return(e=t.x)&&"0%"!==e||(n=t.y)&&"0%"!==n}function ro(t,e,n,r,i){return void 0!==i&&(t=r+i*(t-r)),r+n*(t-r)+e}function rs(t,e=0,n=1,r,i){t.min=ro(t.min,e,n,r,i),t.max=ro(t.max,e,n,r,i)}function ra(t,{x:e,y:n}){rs(t.x,e.translate,e.scale,e.originPoint),rs(t.y,n.translate,n.scale,n.originPoint)}function rl(t){return Number.isInteger(t)?t:t>1.0000000000001||t<.999999999999?t:1}function ru(t,e){t.min=t.min+e,t.max=t.max+e}function rc(t,e,[n,r,i]){let o=void 0!==e[i]?e[i]:.5,s=eC(t.min,t.max,o);rs(t,e[n],e[r],s,e.scale)}let rh=["x","scaleX","originX"],rd=["y","scaleY","originY"];function rp(t,e){rc(t.x,e,rh),rc(t.y,e,rd)}function rf(t,e){return rt(function(t,e){if(!e)return t;let n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}let rm=({current:t})=>t?t.ownerDocument.defaultView:null,rv=new WeakMap;class rg{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=n9(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new nH(t,{onSessionStart:t=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(tO(t,"page").point)},onStart:(t,e)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=tz(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),n7(t=>{let e=this.getAxisMotionValue(t).get()||0;if(Q.test(e)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[t];if(r){let t=nZ(r);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),i&&tk.Wi.update(()=>i(t,e),!1,!0);let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:s}=e;if(r&&null===this.currentDirection){this.currentDirection=function(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}(s),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>n7(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:rm(this.visualElement)})}stop(t,e){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=e;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&tk.Wi.update(()=>i(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){let{drag:r}=this.getProps();if(!n||!ry(t,r,this.currentDirection))return;let i=this.getAxisMotionValue(t),o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},r){return void 0!==e&&tn&&(t=r?eC(n,t,r.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,i=this.constraints;e&&f(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(t,{top:e,left:n,bottom:r,right:i}){return{x:n1(t.x,n,i),y:n1(t.y,e,r)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:n5(t,"left","right"),y:n5(t,"top","bottom")}}(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&n7(t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(r.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!f(e))return!1;let r=e.current;(0,t8.k)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(t,e,n){let r=rf(t,n),{scroll:i}=e;return i&&(ru(r.x,i.offset.x),ru(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),s={x:n2((t=i.layout.layoutBox).x,o.x),y:n2(t.y,o.y)};if(n){let t=n(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(s));this.hasMutatedConstraints=!!t,t&&(s=rt(t))}return s}startAnimation(t){let{drag:e,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(n7(s=>{if(!ry(s,e,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?t[s]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(t,e){let n=this.getAxisMotionValue(t);return n.start(ny(t,n,0,e))}stopAnimation(){n7(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){n7(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e="_drag"+t.toUpperCase(),n=this.visualElement.getProps();return n[e]||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){n7(e=>{let{drag:n}=this.getProps();if(!ry(e,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(e);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[e];i.set(t[e]-eC(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!f(e)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};n7(t=>{let e=this.getAxisMotionValue(t);if(e){let n=e.get();r[t]=function(t,e){let n=.5,r=nZ(t),i=nZ(e);return i>r?n=eZ(e.min,e.max-r,t.min):r>i&&(n=eZ(t.min,t.max-i,e.min)),U(0,1,n)}({min:n,max:n},this.constraints[t])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),n7(e=>{if(!ry(e,t,null))return;let n=this.getAxisMotionValue(e),{min:i,max:o}=this.constraints[e];n.set(eC(i,o,r[e]))})}addListeners(){if(!this.visualElement.current)return;rv.set(this.visualElement,this);let t=tF(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();f(t)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),e();let i=tM(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(n7(e=>{let n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{i(),t(),r(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:s}}}function ry(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}class rb extends t${constructor(t){super(t),this.removeGroupControls=tG.Z,this.removeListeners=tG.Z,this.controls=new rg(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tG.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let rx=t=>(e,n)=>{t&&tk.Wi.update(()=>t(e,n))};class rw extends t${constructor(){super(...arguments),this.removePointerDownListener=tG.Z}onPointerDown(t){this.session=new nH(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rm(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:rx(t),onStart:rx(e),onMove:n,onEnd:(t,e)=>{delete this.session,r&&tk.Wi.update(()=>r(t,e))}}}mount(){this.removePointerDownListener=tF(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let rS={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rA(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let rE={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!J.test(t))return t;t=parseFloat(t)}let n=rA(t,e.target.x),r=rA(t,e.target.y);return`${n}% ${r}%`}};class rP extends s.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=t;Object.assign(L,rC),i&&(e.group&&e.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),rS.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,r||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent===i||(i?o.promote():o.relegate()||tk.Wi.postRender(()=>{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function rT(t){let[e,n]=function(){let t=(0,s.useContext)(u.O);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:n,register:r}=t,i=(0,s.useId)();return(0,s.useEffect)(()=>r(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}(),r=(0,s.useContext)(P.p);return s.createElement(rP,{...t,layoutGroup:r,switchLayoutGroup:(0,s.useContext)(T),isPresent:e,safeToRemove:n})}let rC={borderRadius:{...rE,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rE,borderTopRightRadius:rE,borderBottomLeftRadius:rE,borderBottomRightRadius:rE,boxShadow:{correct:(t,{treeScale:e,projectionDelta:n})=>{let r=ez.parse(t);if(r.length>5)return t;let i=ez.createTransformer(t),o="number"!=typeof r[0]?1:0,s=n.x.scale*e.x,a=n.y.scale*e.y;r[0+o]/=s,r[1+o]/=a;let l=eC(s,a,.5);return"number"==typeof r[2+o]&&(r[2+o]/=l),"number"==typeof r[3+o]&&(r[3+o]/=l),i(r)}}},rV=["TopLeft","TopRight","BottomLeft","BottomRight"],rk=rV.length,rL=t=>"string"==typeof t?parseFloat(t):t,rj=t=>"number"==typeof t||J.test(t);function rM(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rR=rD(0,.5,ed),rO=rD(.5,.95,tG.Z);function rD(t,e,n){return r=>re?1:n(eZ(t,e,r))}function rF(t,e){t.min=e.min,t.max=e.max}function rI(t,e){rF(t.x,e.x),rF(t.y,e.y)}function rB(t,e,n,r,i){return t-=e,t=r+1/n*(t-r),void 0!==i&&(t=r+1/i*(t-r)),t}function rN(t,e,[n,r,i],o,s){!function(t,e=0,n=1,r=.5,i,o=t,s=t){if(Q.test(e)&&(e=parseFloat(e),e=eC(s.min,s.max,e/100)-s.min),"number"!=typeof e)return;let a=eC(o.min,o.max,r);t===o&&(a-=e),t.min=rB(t.min,e,n,a,i),t.max=rB(t.max,e,n,a,i)}(t,e[n],e[r],e[i],e.scale,o,s)}let rW=["x","scaleX","originX"],rU=["y","scaleY","originY"];function rz(t,e,n,r){rN(t.x,e,rW,n?n.x:void 0,r?r.x:void 0),rN(t.y,e,rU,n?n.y:void 0,r?r.y:void 0)}function rH(t){return 0===t.translate&&1===t.scale}function r$(t){return rH(t.x)&&rH(t.y)}function rq(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function r_(t){return nZ(t.x)/nZ(t.y)}class rX{constructor(){this.members=[]}add(t){nw(this.members,t),t.scheduleRender()}remove(t){if(nS(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let n=this.members.findIndex(e=>t===e);if(0===n)return!1;for(let t=n;t>=0;t--){let n=this.members[t];if(!1!==n.isPresent){e=n;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let n=this.lead;if(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);let{crossfade:r}=t.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function rZ(t,e,n){let r="",i=t.x.translate/e.x,o=t.y.translate/e.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(1!==e.x||1!==e.y)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){let{rotate:t,rotateX:e,rotateY:i}=n;t&&(r+=`rotate(${t}deg) `),e&&(r+=`rotateX(${e}deg) `),i&&(r+=`rotateY(${i}deg) `)}let s=t.x.scale*e.x,a=t.y.scale*e.y;return(1!==s||1!==a)&&(r+=`scale(${s}, ${a})`),r||"none"}let rG=(t,e)=>t.depth-e.depth;class rY{constructor(){this.children=[],this.isDirty=!1}add(t){nw(this.children,t),this.isDirty=!0}remove(t){nS(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rG),this.isDirty=!1,this.children.forEach(t)}}let rK=["","X","Y","Z"],rQ={visibility:"hidden"},rJ=0,r0={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function r1({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(t={},n=null==e?void 0:e()){this.id=rJ++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,r0.totalNodes=r0.resolvedTargetDeltas=r0.recalculatedProjection=0,this.nodes.forEach(r3),this.nodes.forEach(ie),this.nodes.forEach(ir),this.nodes.forEach(r4),window.MotionDebug&&window.MotionDebug.record(r0)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;tthis.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){let n=performance.now(),r=({timestamp:e})=>{let i=e-n;i>=250&&((0,tk.Pn)(r),t(i-250))};return tk.Wi.read(r,!0),()=>(0,tk.Pn)(r)}(r,0),rS.hasAnimatedSinceResize&&(rS.hasAnimatedSinceResize=!1,this.nodes.forEach(it))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&o&&(r||i)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||o.getDefaultTransition()||iu,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!rq(this.targetLayout,r)||n,u=!e&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...nv(i,"layout"),onPlay:s,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||it(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,tk.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ii),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;tthis.update()))}clearAllSnapshots(){this.nodes.forEach(r8),this.sharedNodes.forEach(io)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tk.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tk.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t{let r=e/1e3;if(is(s.x,t.x,r),is(s.y,t.y,r),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,f;n0(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,ia(p.x,f.x,a.x,r),ia(p.y,f.y,a.y,r),n&&(u=this.relativeTarget,d=n,u.x.min===d.x.min&&u.x.max===d.x.max&&u.y.min===d.y.min&&u.y.max===d.y.max)&&(this.isProjectionDirty=!1),n||(n=n9()),rI(n,this.relativeTarget)}l&&(this.animationValues=o,function(t,e,n,r,i,o){i?(t.opacity=eC(0,void 0!==n.opacity?n.opacity:1,rR(r)),t.opacityExit=eC(void 0!==e.opacity?e.opacity:1,0,rO(r))):o&&(t.opacity=eC(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let i=0;i{rS.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){let r=O(0)?0:nC(0);return r.start(ny("",r,1e3,n)),r.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:n,layout:r,latestValues:i}=t;if(e&&n&&r){if(this!==t&&this.layout&&r&&ip(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||n9();let e=nZ(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;let r=nZ(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+r}rI(e,n),rp(e,i),nK(this.projectionDeltaWithTransform,this.layoutCorrected,e,i)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rX),this.sharedNodes.get(t).add(e);let n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;let r={};for(let e=0;e{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(r6),this.root.sharedNodes.clear()}}}function r2(t){t.updateLayout()}function r5(t){var e;let n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:r}=t.layout,{animationType:i}=t.options,o=n.source!==t.layout.source;"size"===i?n7(t=>{let r=o?n.measuredBox[t]:n.layoutBox[t],i=nZ(r);r.min=e[t].min,r.max=r.min+i}):ip(i,n.layoutBox,e)&&n7(r=>{let i=o?n.measuredBox[r]:n.layoutBox[r],s=nZ(e[r]);i.max=i.min+s,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+s)});let s=n8();nK(s,e,n.layoutBox);let a=n8();o?nK(a,t.applyTransform(r,!0),n.measuredBox):nK(a,e,n.layoutBox);let l=!r$(s),u=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let s=n9();n0(s,n.layoutBox,i.layoutBox);let a=n9();n0(a,e,o.layoutBox),rq(s,a)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=s,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function r3(t){r0.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 r4(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function r8(t){t.clearSnapshot()}function r6(t){t.clearMeasurements()}function r9(t){t.isLayoutDirty=!1}function r7(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function it(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ie(t){t.resolveTargetDelta()}function ir(t){t.calcProjection()}function ii(t){t.resetRotation()}function io(t){t.removeLeadSnapshot()}function is(t,e,n){t.translate=eC(e.translate,0,n),t.scale=eC(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ia(t,e,n,r){t.min=eC(e.min,n.min,r),t.max=eC(e.max,n.max,r)}function il(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let iu={duration:.45,ease:[.4,0,.1,1]},ic=t=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(t),ih=ic("applewebkit/")&&!ic("chrome/")?Math.round:tG.Z;function id(t){t.min=ih(t.min),t.max=ih(t.max)}function ip(t,e,n){return"position"===t||"preserve-aspect"===t&&!nG(r_(e),r_(n),.2)}let im=r1({attachResizeListener:(t,e)=>tM(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),iv={current:void 0},ig=r1({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!iv.current){let t=new im({});t.mount(window),t.setOptions({layoutScroll:!0}),iv.current=t}return iv.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),iy=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function ib(t,e,n=1){(0,t8.k)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[r,i]=function(t){let e=iy.exec(t);if(!e)return[,];let[,n,r]=e;return[n,r]}(t);if(!r)return;let o=window.getComputedStyle(e).getPropertyValue(r);if(o){let t=o.trim();return nx(t)?parseFloat(t):t}return N(i)?ib(i,e,n+1):i}let ix=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),iw=t=>ix.has(t),iS=t=>Object.keys(t).some(iw),iA=t=>t===z||t===J,iE=(t,e)=>parseFloat(t.split(", ")[e]),iP=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return iE(i[1],e);{let e=r.match(/^matrix\((.+)\)$/);return e?iE(e[1],t):0}},iT=new Set(["x","y","z"]),iC=j.filter(t=>!iT.has(t)),iV={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:iP(4,13),y:iP(5,14)};iV.translateX=iV.x,iV.translateY=iV.y;let ik=(t,e,n)=>{let r=e.measureViewportBox(),i=getComputedStyle(e.current),{display:o}=i,s={};"none"===o&&e.setStaticValue("display",t.display||"block"),n.forEach(t=>{s[t]=iV[t](r,i)}),e.render();let a=e.measureViewportBox();return n.forEach(n=>{let r=e.getValue(n);r&&r.jump(s[n]),t[n]=iV[n](a,i)}),t},iL=(t,e,n={},r={})=>{e={...e},r={...r};let i=Object.keys(e).filter(iw),o=[],s=!1,a=[];if(i.forEach(i=>{let l;let u=t.getValue(i);if(!t.hasValue(i))return;let c=n[i],h=nL(c),d=e[i];if(tE(d)){let t=d.length,e=null===d[0]?1:0;h=nL(c=d[e]);for(let n=e;n{let r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}(t),s=!0),a.push(i),r[i]=void 0!==r[i]?r[i]:e[i],u.jump(d))}}),!a.length)return{target:e,transitionEnd:r};{let n=a.indexOf("height")>=0?window.pageYOffset:null,i=ik(e,t,a);return o.length&&o.forEach(([e,n])=>{t.getValue(e).set(n)}),t.render(),E.j&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},ij=(t,e,n,r)=>{var i,o;let s=function(t,{...e},n){let r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};for(let i in n&&(n={...n}),t.values.forEach(t=>{let e=t.get();if(!N(e))return;let n=ib(e,r);n&&t.set(n)}),e){let t=e[i];if(!N(t))continue;let o=ib(t,r);o&&(e[i]=o,n||(n={}),void 0===n[i]&&(n[i]=t))}return{target:e,transitionEnd:n}}(t,e,r);return e=s.target,r=s.transitionEnd,i=e,o=r,iS(i)?iL(t,i,n,o):{target:i,transitionEnd:o}},iM={current:null},iR={current:!1},iO=new WeakMap,iD=Object.keys(A),iF=iD.length,iI=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],iB=y.length;class iN{constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:r,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>tk.Wi.render(this.render,!1,!0);let{latestValues:s,renderState:a}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=e.initial?{...s}:{},this.renderState=a,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.isControllingVariants=b(e),this.isVariantNode=x(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(e,{});for(let t in u){let e=u[t];void 0!==s[t]&&O(e)&&(e.set(s[t],!1),nb(l)&&l.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,iO.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),iR.current||function(){if(iR.current=!0,E.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>iM.current=t.matches;t.addListener(e),e()}else iM.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||iM.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in iO.delete(this.current),this.projection&&this.projection.unmount(),(0,tk.Pn)(this.notifyUpdate),(0,tk.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){let n=M.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tk.Wi.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{r(),i()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},n,r,i){let o,s;for(let t=0;tthis.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:a,layoutRoot:l})}return s}updateFeatures(){for(let t in this.features){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):n9()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;ee.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=nC(e,{owner:this}),this.addValue(t,n)),n}readValue(t){var e;return void 0===this.latestValues[t]&&this.current?null!==(e=this.getBaseTargetFromProps(this.props,t))&&void 0!==e?e:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(e=tS(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,t);return void 0===i||O(i)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new nA),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class iW extends iN{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:r},i){let o=function(t,e,n){let r={};for(let i in t){let t=function(t,e){if(e)return(e[t]||e.default||e).from}(i,e);if(void 0!==t)r[i]=t;else{let t=n.getValue(i);t&&(r[i]=t.get())}}return r}(n,t||{},this);if(r&&(e&&(e=r(e)),n&&(n=r(n)),o&&(o=r(o))),i){!function(t,e,n){var r,i;let o=Object.keys(e).filter(e=>!t.hasValue(e)),s=o.length;if(s)for(let a=0;a{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(t,e,n,r){tg(t,e,n,r)}}class iz extends iW{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(M.has(e)){let t=np(e);return t&&t.default||0}return e=ty.has(e)?e:d(e),t.getAttribute(e)}measureInstanceViewportBox(){return n9()}scrapeMotionValuesFromProps(t,e){return tw(t,e)}build(t,e,n,r){tf(t,e,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,n,r){tb(t,e,n,r)}mount(t){this.isSVGTag=tv(t.tagName),super.mount(t)}}let iH=(t,e)=>k(t)?new iz(e,{enableHardwareAcceleration:!1}):new iU(e,{enableHardwareAcceleration:!0}),i$={animation:{Feature:nN},exit:{Feature:nU},inView:{Feature:t5},tap:{Feature:tK},focus:{Feature:tX},hover:{Feature:t_},pan:{Feature:rw},drag:{Feature:rb,ProjectionNode:ig,MeasureLayout:rT},layout:{ProjectionNode:ig,MeasureLayout:rT}},iq=function(t){function e(e,n={}){return function({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){t&&function(t){for(let e in t)A[e]={...A[e],...t[e]}}(t);let o=(0,s.forwardRef)(function(o,d){var v;let g;let y={...(0,s.useContext)(a),...o,layoutId:function({layoutId:t}){let e=(0,s.useContext)(P.p).id;return e&&void 0!==t?e+"-"+t:t}(o)},{isStatic:x}=y,S=function(t){let{initial:e,animate:n}=function(t,e){if(b(t)){let{initial:e,animate:n}=t;return{initial:!1===e||m(e)?e:void 0,animate:m(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,s.useContext)(l));return(0,s.useMemo)(()=>({initial:e,animate:n}),[w(e),w(n)])}(o),A=r(o,x);if(!x&&E.j){S.visualElement=function(t,e,n,r){let{visualElement:i}=(0,s.useContext)(l),o=(0,s.useContext)(h),d=(0,s.useContext)(u.O),f=(0,s.useContext)(a).reducedMotion,m=(0,s.useRef)();r=r||o.renderer,!m.current&&r&&(m.current=r(t,{visualState:e,parent:i,props:n,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:f}));let v=m.current;(0,s.useInsertionEffect)(()=>{v&&v.update(n,d)});let g=(0,s.useRef)(!!(n[p]&&!window.HandoffComplete));return(0,c.L)(()=>{v&&(v.render(),g.current&&v.animationState&&v.animationState.animateChanges())}),(0,s.useEffect)(()=>{v&&(v.updateFeatures(),!g.current&&v.animationState&&v.animationState.animateChanges(),g.current&&(g.current=!1,window.HandoffComplete=!0))}),v}(i,A,y,e);let n=(0,s.useContext)(T),r=(0,s.useContext)(h).strict;S.visualElement&&(g=S.visualElement.loadFeatures(y,r,t,n))}return s.createElement(l.Provider,{value:S},g&&S.visualElement?s.createElement(g,{visualElement:S.visualElement,...y}):null,n(i,o,(v=S.visualElement,(0,s.useCallback)(t=>{t&&A.mount&&A.mount(t),v&&(t?v.mount(t):v.unmount()),d&&("function"==typeof d?d(t):f(d)&&(d.current=t))},[v])),A,x,S.visualElement))});return o[C]=i,o}(t(e,n))}if("undefined"==typeof Proxy)return e;let n=new Map;return new Proxy(e,{get:(t,r)=>(n.has(r)||n.set(r,e(r)),n.get(r))})}((t,e)=>(function(t,{forwardMotionProps:e=!1},n,r){return{...k(t)?tL:tj,preloadedFeatures:n,useRender:function(t=!1){return(e,n,r,{latestValues:i},o)=>{let a=(k(e)?function(t,e,n,r){let i=(0,s.useMemo)(()=>{let n=tm();return tf(n,e,{enableHardwareAcceleration:!1},tv(r),t.transformTemplate),{...n.attrs,style:{...n.style}}},[e]);if(t.style){let e={};ta(e,t.style,t),i.style={...e,...i.style}}return i}:function(t,e,n){let r={},i=function(t,e,n){let r=t.style||{},i={};return ta(i,r,t),Object.assign(i,function({transformTemplate:t},e,n){return(0,s.useMemo)(()=>{let r=ts();return to(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}(t,e,n)),t.transformValues?t.transformValues(i):i}(t,e,n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r})(n,i,o,e),l={...function(t,e,n){let r={};for(let i in t)("values"!==i||"object"!=typeof t.values)&&(tc(i)||!0===n&&tu(i)||!e&&!tu(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}(n,"string"==typeof e,t),...a,ref:r},{children:u}=n,c=(0,s.useMemo)(()=>O(u)?u.get():u,[u]);return(0,s.createElement)(e,{...l,children:c})}}(e),createVisualElement:r,Component:t}})(t,e,i$,iH))},13223:function(t,e,n){"use strict";n.d(e,{K:function(){return i},k:function(){return o}});var r=n(44439);let i=r.Z,o=r.Z},44563:function(t,e,n){"use strict";n.d(e,{j:function(){return r}});let r="undefined"!=typeof document},44439:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=t=>t},53576:function(t,e,n){"use strict";n.d(e,{h:function(){return i}});var r=n(2265);function i(t){let e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}},11534:function(t,e,n){"use strict";n.d(e,{L:function(){return i}});var r=n(2265);let i=n(44563).j?r.useLayoutEffect:r.useEffect}}]);