(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[641],{5133:function(t,e,i){"use strict";i.d(e,{Z:function(){return l}});var r=i(7212);let n=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),s=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return e.filter((t,e,i)=>!!t&&i.indexOf(t)===e).join(" ")};var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,r.forwardRef)((t,e)=>{let{color:i="currentColor",size:n=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:u="",children:h,iconNode:c,...d}=t;return(0,r.createElement)("svg",{ref:e,...o,width:n,height:n,stroke:i,strokeWidth:l?24*Number(a)/Number(n):a,className:s("lucide",u),...d},[...c.map(t=>{let[e,i]=t;return(0,r.createElement)(e,i)}),...Array.isArray(h)?h:[h]])}),l=((t,e)=>{let i=(0,r.forwardRef)((i,o)=>{let{className:l,...u}=i;return(0,r.createElement)(a,{ref:o,iconNode:e,className:s("lucide-".concat(n(t)),l),...u})});return i.displayName="".concat(t),i})("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},2341:function(t,e,i){var r,n=i(2104);"undefined"!=typeof self&&self,r=()=>(()=>{var t={75:function(t){(function(){var e,i,r,s;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:null!=n&&n.hrtime?(t.exports=function(){return(e()-s)/1e6},i=n.hrtime,s=(e=function(){var t;return 1e9*(t=i())[0]+t[1]})()-1e9*n.uptime()):Date.now?(t.exports=function(){return Date.now()-r},r=Date.now()):(t.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)},4087:(t,e,i)=>{for(var r=i(75),n="undefined"==typeof window?i.g:window,s=["moz","webkit"],o="AnimationFrame",a=n["request"+o],l=n["cancel"+o]||n["cancelRequest"+o],u=0;!a&&u<s.length;u++)a=n[s[u]+"Request"+o],l=n[s[u]+"Cancel"+o]||n[s[u]+"CancelRequest"+o];if(!a||!l){var h=0,c=0,d=[];a=function(t){if(0===d.length){var e=r(),i=Math.max(0,16.666666666666668-(e-h));h=i+e,setTimeout(function(){var t=d.slice(0);d.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(h)}catch(t){setTimeout(function(){throw t},0)}},Math.round(i))}return d.push({handle:++c,callback:t,cancelled:!1}),c},l=function(t){for(var e=0;e<d.length;e++)d[e].handle===t&&(d[e].cancelled=!0)}}t.exports=function(t){return a.call(n,t)},t.exports.cancel=function(){l.apply(n,arguments)},t.exports.polyfill=function(t){t||(t=n),t.requestAnimationFrame=a,t.cancelAnimationFrame=l}}},e={};function i(r){var n=e[r];if(void 0!==n)return n.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,i),s.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r={};return(()=>{"use strict";i.d(r,{default:()=>S});var t=i(4087),e=i.n(t);let n=function(t){return new RegExp(/<[a-z][\s\S]*>/i).test(t)},s=function(t,e){return Math.floor(Math.random()*(e-t+1))+t};var o="TYPE_CHARACTER",a="REMOVE_CHARACTER",l="REMOVE_ALL",u="REMOVE_LAST_VISIBLE_NODE",h="PAUSE_FOR",c="CALL_FUNCTION",d="ADD_HTML_TAG_ELEMENT",p="CHANGE_DELETE_SPEED",f="CHANGE_DELAY",m="CHANGE_CURSOR",v="PASTE_STRING",g="HTML_TAG";function y(t){return(y="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 x(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,r)}return i}function w(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?x(Object(i),!0).forEach(function(e){P(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):x(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function b(t){return function(t){if(Array.isArray(t))return T(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return T(t,void 0);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?T(t,void 0):void 0}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,r=Array(e);i<e;i++)r[i]=t[i];return r}function P(t,e,i){return(e=A(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function A(t){var e=function(t,e){if("object"!==y(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!==y(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===y(e)?e:String(e)}let S=function(){var i;function r(i,y){var x=this;if(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,r),P(this,"state",{cursorAnimation:null,lastFrameTime:null,pauseUntil:null,eventQueue:[],eventLoop:null,eventLoopPaused:!1,reverseCalledEvents:[],calledEvents:[],visibleNodes:[],initialOptions:null,elements:{container:null,wrapper:document.createElement("span"),cursor:document.createElement("span")}}),P(this,"options",{strings:null,cursor:"|",delay:"natural",pauseFor:1500,deleteSpeed:"natural",loop:!1,autoStart:!1,devMode:!1,skipAddStyles:!1,wrapperClassName:"Typewriter__wrapper",cursorClassName:"Typewriter__cursor",stringSplitter:null,onCreateTextNode:null,onRemoveNode:null}),P(this,"setupWrapperElement",function(){x.state.elements.container&&(x.state.elements.wrapper.className=x.options.wrapperClassName,x.state.elements.cursor.className=x.options.cursorClassName,x.state.elements.cursor.innerHTML=x.options.cursor,x.state.elements.container.innerHTML="",x.state.elements.container.appendChild(x.state.elements.wrapper),x.state.elements.container.appendChild(x.state.elements.cursor))}),P(this,"start",function(){return x.state.eventLoopPaused=!1,x.runEventLoop(),x}),P(this,"pause",function(){return x.state.eventLoopPaused=!0,x}),P(this,"stop",function(){return x.state.eventLoop&&((0,t.cancel)(x.state.eventLoop),x.state.eventLoop=null),x}),P(this,"pauseFor",function(t){return x.addEventToQueue(h,{ms:t}),x}),P(this,"typeOutAllStrings",function(){return"string"==typeof x.options.strings?x.typeString(x.options.strings).pauseFor(x.options.pauseFor):x.options.strings.forEach(function(t){x.typeString(t).pauseFor(x.options.pauseFor).deleteAll(x.options.deleteSpeed)}),x}),P(this,"typeString",function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(n(t))return x.typeOutHTMLString(t,e);if(t){var i=(x.options||{}).stringSplitter,r="function"==typeof i?i(t):t.split("");x.typeCharacters(r,e)}return x}),P(this,"pasteString",function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n(t)?x.typeOutHTMLString(t,e,!0):(t&&x.addEventToQueue(v,{character:t,node:e}),x)}),P(this,"typeOutHTMLString",function(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,n=((e=document.createElement("div")).innerHTML=t,e.childNodes);if(n.length>0)for(var s=0;s<n.length;s++){var o=n[s],a=o.innerHTML;o&&3!==o.nodeType?(o.innerHTML="",x.addEventToQueue(d,{node:o,parentNode:i}),r?x.pasteString(a,o):x.typeString(a,o)):o.textContent&&(r?x.pasteString(o.textContent,i):x.typeString(o.textContent,i))}return x}),P(this,"deleteAll",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"natural";return x.addEventToQueue(l,{speed:t}),x}),P(this,"changeDeleteSpeed",function(t){if(!t)throw Error("Must provide new delete speed");return x.addEventToQueue(p,{speed:t}),x}),P(this,"changeDelay",function(t){if(!t)throw Error("Must provide new delay");return x.addEventToQueue(f,{delay:t}),x}),P(this,"changeCursor",function(t){if(!t)throw Error("Must provide new cursor");return x.addEventToQueue(m,{cursor:t}),x}),P(this,"deleteChars",function(t){if(!t)throw Error("Must provide amount of characters to delete");for(var e=0;e<t;e++)x.addEventToQueue(a);return x}),P(this,"callFunction",function(t,e){if(!t||"function"!=typeof t)throw Error("Callback must be a function");return x.addEventToQueue(c,{cb:t,thisArg:e}),x}),P(this,"typeCharacters",function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t||!Array.isArray(t))throw Error("Characters must be an array");return t.forEach(function(t){x.addEventToQueue(o,{character:t,node:e})}),x}),P(this,"removeCharacters",function(t){if(!t||!Array.isArray(t))throw Error("Characters must be an array");return t.forEach(function(){x.addEventToQueue(a)}),x}),P(this,"addEventToQueue",function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return x.addEventToStateProperty(t,e,i,"eventQueue")}),P(this,"addReverseCalledEvent",function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return x.options.loop?x.addEventToStateProperty(t,e,i,"reverseCalledEvents"):x}),P(this,"addEventToStateProperty",function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,n={eventName:t,eventArgs:e||{}};return x.state[r]=i?[n].concat(b(x.state[r])):[].concat(b(x.state[r]),[n]),x}),P(this,"runEventLoop",function(){x.state.lastFrameTime||(x.state.lastFrameTime=Date.now());var t=Date.now(),i=t-x.state.lastFrameTime;if(!x.state.eventQueue.length){if(!x.options.loop)return;x.state.eventQueue=b(x.state.calledEvents),x.state.calledEvents=[],x.options=w({},x.state.initialOptions)}if(x.state.eventLoop=e()(x.runEventLoop),!x.state.eventLoopPaused){if(x.state.pauseUntil){if(t<x.state.pauseUntil)return;x.state.pauseUntil=null}var r,n=b(x.state.eventQueue),y=n.shift();if(!(i<=(r=y.eventName===u||y.eventName===a?"natural"===x.options.deleteSpeed?s(40,80):x.options.deleteSpeed:"natural"===x.options.delay?s(120,160):x.options.delay))){var T=y.eventName,P=y.eventArgs;switch(x.logInDevMode({currentEvent:y,state:x.state,delay:r}),T){case v:case o:var A=P.character,S=P.node,E=document.createTextNode(A),C=E;x.options.onCreateTextNode&&"function"==typeof x.options.onCreateTextNode&&(C=x.options.onCreateTextNode(A,E)),C&&(S?S.appendChild(C):x.state.elements.wrapper.appendChild(C)),x.state.visibleNodes=[].concat(b(x.state.visibleNodes),[{type:"TEXT_NODE",character:A,node:C}]);break;case a:n.unshift({eventName:u,eventArgs:{removingCharacterNode:!0}});break;case h:var R=y.eventArgs.ms;x.state.pauseUntil=Date.now()+parseInt(R);break;case c:var M=y.eventArgs,k=M.cb,V=M.thisArg;k.call(V,{elements:x.state.elements});break;case d:var D=y.eventArgs,L=D.node,j=D.parentNode;j?j.appendChild(L):x.state.elements.wrapper.appendChild(L),x.state.visibleNodes=[].concat(b(x.state.visibleNodes),[{type:g,node:L,parentNode:j||x.state.elements.wrapper}]);break;case l:var F=x.state.visibleNodes,O=P.speed,N=[];O&&N.push({eventName:p,eventArgs:{speed:O,temp:!0}});for(var B=0,I=F.length;B<I;B++)N.push({eventName:u,eventArgs:{removingCharacterNode:!1}});O&&N.push({eventName:p,eventArgs:{speed:x.options.deleteSpeed,temp:!0}}),n.unshift.apply(n,N);break;case u:var W=y.eventArgs.removingCharacterNode;if(x.state.visibleNodes.length){var U=x.state.visibleNodes.pop(),$=U.type,_=U.node,H=U.character;x.options.onRemoveNode&&"function"==typeof x.options.onRemoveNode&&x.options.onRemoveNode({node:_,character:H}),_&&_.parentNode.removeChild(_),$===g&&W&&n.unshift({eventName:u,eventArgs:{}})}break;case p:x.options.deleteSpeed=y.eventArgs.speed;break;case f:x.options.delay=y.eventArgs.delay;break;case m:x.options.cursor=y.eventArgs.cursor,x.state.elements.cursor.innerHTML=y.eventArgs.cursor}x.options.loop&&(y.eventName===u||y.eventArgs&&y.eventArgs.temp||(x.state.calledEvents=[].concat(b(x.state.calledEvents),[y]))),x.state.eventQueue=n,x.state.lastFrameTime=t}}}),i){if("string"==typeof i){var T=document.querySelector(i);if(!T)throw Error("Could not find container element");this.state.elements.container=T}else this.state.elements.container=i}y&&(this.options=w(w({},this.options),y)),this.state.initialOptions=w({},this.options),this.init()}return i=[{key:"init",value:function(){var t,e;this.setupWrapperElement(),this.addEventToQueue(m,{cursor:this.options.cursor},!0),this.addEventToQueue(l,null,!0),!window||window.___TYPEWRITER_JS_STYLES_ADDED___||this.options.skipAddStyles||(t=".Typewriter__cursor{-webkit-animation:Typewriter-cursor 1s infinite;animation:Typewriter-cursor 1s infinite;margin-left:1px}@-webkit-keyframes Typewriter-cursor{0%{opacity:0}50%{opacity:1}100%{opacity:0}}@keyframes Typewriter-cursor{0%{opacity:0}50%{opacity:1}100%{opacity:0}}",(e=document.createElement("style")).appendChild(document.createTextNode(t)),document.head.appendChild(e),window.___TYPEWRITER_JS_STYLES_ADDED___=!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()}},{key:"logInDevMode",value:function(t){this.options.devMode&&console.log(t)}}],function(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,A(r.key),r)}}(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r}()})(),r.default})(),t.exports=r()},2104:function(t){var e,i,r,n=t.exports={};function s(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===s||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(i){try{return e.call(null,t,0)}catch(i){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:s}catch(t){e=s}try{i="function"==typeof clearTimeout?clearTimeout:o}catch(t){i=o}}();var l=[],u=!1,h=-1;function c(){u&&r&&(u=!1,r.length?l=r.concat(l):h=-1,l.length&&d())}function d(){if(!u){var t=a(c);u=!0;for(var e=l.length;e;){for(r=l,l=[];++h<e;)r&&r[h].run();h=-1,e=l.length}r=null,u=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function f(){}n.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];l.push(new p(t,e)),1!==l.length||u||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=f,n.addListener=f,n.once=f,n.off=f,n.removeListener=f,n.removeAllListeners=f,n.emit=f,n.prependListener=f,n.prependOnceListener=f,n.listeners=function(t){return[]},n.binding=function(t){throw Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw Error("process.chdir is not supported")},n.umask=function(){return 0}},8847:function(t,e,i){"use strict";i.d(e,{_9:function(){return o},gm:function(){return a}});var r=i(7212),n=i(169),s=r.createContext(void 0),o=t=>{let{dir:e,children:i}=t;return(0,n.jsx)(s.Provider,{value:e,children:i})};function a(t){let e=r.useContext(s);return t||e||"ltr"}},5467:function(t,e,i){"use strict";i.d(e,{M:function(){return l}});var r,n=i(7212),s=i(2398),o=(r||(r=i.t(n,2)))["useId".toString()]||(()=>void 0),a=0;function l(t){let[e,i]=n.useState(o());return(0,s.b)(()=>{t||i(t=>t??String(a++))},[t]),t||(e?`radix-${e}`:"")}},1173:function(t,e,i){"use strict";i.d(e,{z$:function(){return B},ck:function(){return N},fC:function(){return O}});var r=i(7212),n=i(462),s=i(418),o=i(3588),a=i(9788),l=i(4974),u=i(5362),h=i(8847),c=i(9125),d=i(4916),p=i(169),f="Radio",[m,v]=(0,o.b)(f),[g,y]=m(f),x=r.forwardRef((t,e)=>{let{__scopeRadio:i,name:o,checked:l=!1,required:u,disabled:h,value:c="on",onCheck:d,...f}=t,[m,v]=r.useState(null),y=(0,s.e)(e,t=>v(t)),x=r.useRef(!1),w=!m||!!m.closest("form");return(0,p.jsxs)(g,{scope:i,checked:l,disabled:h,children:[(0,p.jsx)(a.WV.button,{type:"button",role:"radio","aria-checked":l,"data-state":P(l),"data-disabled":h?"":void 0,disabled:h,value:c,...f,ref:y,onClick:(0,n.M)(t.onClick,t=>{l||null==d||d(),w&&(x.current=t.isPropagationStopped(),x.current||t.stopPropagation())})}),w&&(0,p.jsx)(T,{control:m,bubbles:!x.current,name:o,value:c,checked:l,required:u,disabled:h,style:{transform:"translateX(-100%)"}})]})});x.displayName=f;var w="RadioIndicator",b=r.forwardRef((t,e)=>{let{__scopeRadio:i,forceMount:r,...n}=t,s=y(w,i);return(0,p.jsx)(d.z,{present:r||s.checked,children:(0,p.jsx)(a.WV.span,{"data-state":P(s.checked),"data-disabled":s.disabled?"":void 0,...n,ref:e})})});b.displayName=w;var T=t=>{let{control:e,checked:i,bubbles:n=!0,...s}=t,o=r.useRef(null),a=function(t){let e=r.useRef({value:t,previous:t});return r.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}(i),l=(0,c.t)(e);return r.useEffect(()=>{let t=o.current,e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(a!==i&&e){let r=new Event("click",{bubbles:n});e.call(t,i),t.dispatchEvent(r)}},[a,i,n]),(0,p.jsx)("input",{type:"radio","aria-hidden":!0,defaultChecked:i,...s,tabIndex:-1,ref:o,style:{...t.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function P(t){return t?"checked":"unchecked"}var A=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],S="RadioGroup",[E,C]=(0,o.b)(S,[l.Pc,v]),R=(0,l.Pc)(),M=v(),[k,V]=E(S),D=r.forwardRef((t,e)=>{let{__scopeRadioGroup:i,name:r,defaultValue:n,value:s,required:o=!1,disabled:c=!1,orientation:d,dir:f,loop:m=!0,onValueChange:v,...g}=t,y=R(i),x=(0,h.gm)(f),[w,b]=(0,u.T)({prop:s,defaultProp:n,onChange:v});return(0,p.jsx)(k,{scope:i,name:r,required:o,disabled:c,value:w,onValueChange:b,children:(0,p.jsx)(l.fC,{asChild:!0,...y,orientation:d,dir:x,loop:m,children:(0,p.jsx)(a.WV.div,{role:"radiogroup","aria-required":o,"aria-orientation":d,"data-disabled":c?"":void 0,dir:x,...g,ref:e})})})});D.displayName=S;var L="RadioGroupItem",j=r.forwardRef((t,e)=>{let{__scopeRadioGroup:i,disabled:o,...a}=t,u=V(L,i),h=u.disabled||o,c=R(i),d=M(i),f=r.useRef(null),m=(0,s.e)(e,f),v=u.value===a.value,g=r.useRef(!1);return r.useEffect(()=>{let t=t=>{A.includes(t.key)&&(g.current=!0)},e=()=>g.current=!1;return document.addEventListener("keydown",t),document.addEventListener("keyup",e),()=>{document.removeEventListener("keydown",t),document.removeEventListener("keyup",e)}},[]),(0,p.jsx)(l.ck,{asChild:!0,...c,focusable:!h,active:v,children:(0,p.jsx)(x,{disabled:h,required:u.required,checked:v,...d,...a,name:u.name,ref:m,onCheck:()=>u.onValueChange(a.value),onKeyDown:(0,n.M)(t=>{"Enter"===t.key&&t.preventDefault()}),onFocus:(0,n.M)(a.onFocus,()=>{var t;g.current&&(null===(t=f.current)||void 0===t||t.click())})})})});j.displayName=L;var F=r.forwardRef((t,e)=>{let{__scopeRadioGroup:i,...r}=t,n=M(i);return(0,p.jsx)(b,{...n,...r,ref:e})});F.displayName="RadioGroupIndicator";var O=D,N=j,B=F},4974:function(t,e,i){"use strict";i.d(e,{ck:function(){return V},fC:function(){return k},Pc:function(){return b}});var r=i(7212),n=i(462),s=i(3588),o=i(418),a=i(1797),l=i(169),u=i(5467),h=i(9788),c=i(478),d=i(5362),p=i(8847),f="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},v="RovingFocusGroup",[g,y,x]=function(t){let e=t+"CollectionProvider",[i,n]=(0,s.b)(e),[u,h]=i(e,{collectionRef:{current:null},itemMap:new Map}),c=t=>{let{scope:e,children:i}=t,n=r.useRef(null),s=r.useRef(new Map).current;return(0,l.jsx)(u,{scope:e,itemMap:s,collectionRef:n,children:i})};c.displayName=e;let d=t+"CollectionSlot",p=r.forwardRef((t,e)=>{let{scope:i,children:r}=t,n=h(d,i),s=(0,o.e)(e,n.collectionRef);return(0,l.jsx)(a.g7,{ref:s,children:r})});p.displayName=d;let f=t+"CollectionItemSlot",m="data-radix-collection-item",v=r.forwardRef((t,e)=>{let{scope:i,children:n,...s}=t,u=r.useRef(null),c=(0,o.e)(e,u),d=h(f,i);return r.useEffect(()=>(d.itemMap.set(u,{ref:u,...s}),()=>void d.itemMap.delete(u))),(0,l.jsx)(a.g7,{[m]:"",ref:c,children:n})});return v.displayName=f,[{Provider:c,Slot:p,ItemSlot:v},function(e){let i=h(t+"CollectionConsumer",e);return r.useCallback(()=>{let t=i.collectionRef.current;if(!t)return[];let e=Array.from(t.querySelectorAll("[".concat(m,"]")));return Array.from(i.itemMap.values()).sort((t,i)=>e.indexOf(t.ref.current)-e.indexOf(i.ref.current))},[i.collectionRef,i.itemMap])},n]}(v),[w,b]=(0,s.b)(v,[x]),[T,P]=w(v),A=r.forwardRef((t,e)=>(0,l.jsx)(g.Provider,{scope:t.__scopeRovingFocusGroup,children:(0,l.jsx)(g.Slot,{scope:t.__scopeRovingFocusGroup,children:(0,l.jsx)(S,{...t,ref:e})})}));A.displayName=v;var S=r.forwardRef((t,e)=>{let{__scopeRovingFocusGroup:i,orientation:s,loop:a=!1,dir:u,currentTabStopId:v,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:x,onEntryFocus:w,preventScrollOnEntryFocus:b=!1,...P}=t,A=r.useRef(null),S=(0,o.e)(e,A),E=(0,p.gm)(u),[C=null,R]=(0,d.T)({prop:v,defaultProp:g,onChange:x}),[k,V]=r.useState(!1),D=(0,c.W)(w),L=y(i),j=r.useRef(!1),[F,O]=r.useState(0);return r.useEffect(()=>{let t=A.current;if(t)return t.addEventListener(f,D),()=>t.removeEventListener(f,D)},[D]),(0,l.jsx)(T,{scope:i,orientation:s,dir:E,loop:a,currentTabStopId:C,onItemFocus:r.useCallback(t=>R(t),[R]),onItemShiftTab:r.useCallback(()=>V(!0),[]),onFocusableItemAdd:r.useCallback(()=>O(t=>t+1),[]),onFocusableItemRemove:r.useCallback(()=>O(t=>t-1),[]),children:(0,l.jsx)(h.WV.div,{tabIndex:k||0===F?-1:0,"data-orientation":s,...P,ref:S,style:{outline:"none",...t.style},onMouseDown:(0,n.M)(t.onMouseDown,()=>{j.current=!0}),onFocus:(0,n.M)(t.onFocus,t=>{let e=!j.current;if(t.target===t.currentTarget&&e&&!k){let e=new CustomEvent(f,m);if(t.currentTarget.dispatchEvent(e),!e.defaultPrevented){let t=L().filter(t=>t.focusable);M([t.find(t=>t.active),t.find(t=>t.id===C),...t].filter(Boolean).map(t=>t.ref.current),b)}}j.current=!1}),onBlur:(0,n.M)(t.onBlur,()=>V(!1))})})}),E="RovingFocusGroupItem",C=r.forwardRef((t,e)=>{let{__scopeRovingFocusGroup:i,focusable:s=!0,active:o=!1,tabStopId:a,...c}=t,d=(0,u.M)(),p=a||d,f=P(E,i),m=f.currentTabStopId===p,v=y(i),{onFocusableItemAdd:x,onFocusableItemRemove:w}=f;return r.useEffect(()=>{if(s)return x(),()=>w()},[s,x,w]),(0,l.jsx)(g.ItemSlot,{scope:i,id:p,focusable:s,active:o,children:(0,l.jsx)(h.WV.span,{tabIndex:m?0:-1,"data-orientation":f.orientation,...c,ref:e,onMouseDown:(0,n.M)(t.onMouseDown,t=>{s?f.onItemFocus(p):t.preventDefault()}),onFocus:(0,n.M)(t.onFocus,()=>f.onItemFocus(p)),onKeyDown:(0,n.M)(t.onKeyDown,t=>{if("Tab"===t.key&&t.shiftKey){f.onItemShiftTab();return}if(t.target!==t.currentTarget)return;let e=function(t,e,i){var r;let n=(r=t.key,"rtl"!==i?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===e&&["ArrowLeft","ArrowRight"].includes(n))&&!("horizontal"===e&&["ArrowUp","ArrowDown"].includes(n)))return R[n]}(t,f.orientation,f.dir);if(void 0!==e){if(t.metaKey||t.ctrlKey||t.altKey||t.shiftKey)return;t.preventDefault();let n=v().filter(t=>t.focusable).map(t=>t.ref.current);if("last"===e)n.reverse();else if("prev"===e||"next"===e){var i,r;"prev"===e&&n.reverse();let s=n.indexOf(t.currentTarget);n=f.loop?(i=n,r=s+1,i.map((t,e)=>i[(r+e)%i.length])):n.slice(s+1)}setTimeout(()=>M(n))}})})})});C.displayName=E;var R={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function M(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=document.activeElement;for(let r of t)if(r===i||(r.focus({preventScroll:e}),document.activeElement!==i))return}var k=A,V=C},5362:function(t,e,i){"use strict";i.d(e,{T:function(){return s}});var r=i(7212),n=i(478);function s({prop:t,defaultProp:e,onChange:i=()=>{}}){let[s,o]=function({defaultProp:t,onChange:e}){let i=r.useState(t),[s]=i,o=r.useRef(s),a=(0,n.W)(e);return r.useEffect(()=>{o.current!==s&&(a(s),o.current=s)},[s,o,a]),i}({defaultProp:e,onChange:i}),a=void 0!==t,l=a?t:s,u=(0,n.W)(i);return[l,r.useCallback(e=>{if(a){let i="function"==typeof e?e(t):e;i!==t&&u(i)}else o(e)},[a,t,o,u])]}},9125:function(t,e,i){"use strict";i.d(e,{t:function(){return s}});var r=i(7212),n=i(2398);function s(t){let[e,i]=r.useState(void 0);return(0,n.b)(()=>{if(t){i({width:t.offsetWidth,height:t.offsetHeight});let e=new ResizeObserver(e=>{let r,n;if(!Array.isArray(e)||!e.length)return;let s=e[0];if("borderBoxSize"in s){let t=s.borderBoxSize,e=Array.isArray(t)?t[0]:t;r=e.inlineSize,n=e.blockSize}else r=t.offsetWidth,n=t.offsetHeight;i({width:r,height:n})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}i(void 0)},[t]),e}},881:function(t,e,i){"use strict";function r(){for(var t,e,i=0,r="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=function t(e){var i,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e){if(Array.isArray(e)){var s=e.length;for(i=0;i<s;i++)e[i]&&(r=t(e[i]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r)}return n}(t))&&(r&&(r+=" "),r+=e);return r}i.d(e,{W:function(){return r}}),e.Z=r},8182:function(t,e,i){"use strict";i.d(e,{M:function(){return y}});var r=i(169),n=i(7212),s=i(6972);function o(){let t=(0,n.useRef)(!1);return(0,s.L)(()=>(t.current=!0,()=>{t.current=!1}),[]),t}var a=i(2498),l=i(922),u=i(465),h=i(6022);class c extends n.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function d({children:t,isPresent:e}){let i=(0,n.useId)(),s=(0,n.useRef)(null),o=(0,n.useRef)({width:0,height:0,top:0,left:0}),{nonce:a}=(0,n.useContext)(h._);return(0,n.useInsertionEffect)(()=>{let{width:t,height:r,top:n,left:l}=o.current;if(e||!s.current||!t||!r)return;s.current.dataset.motionPopId=i;let u=document.createElement("style");return a&&(u.nonce=a),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
          [data-motion-pop-id="${i}"] {
            position: absolute !important;
            width: ${t}px !important;
            height: ${r}px !important;
            top: ${n}px !important;
            left: ${l}px !important;
          }
        `),()=>{document.head.removeChild(u)}},[e]),(0,r.jsx)(c,{isPresent:e,childRef:s,sizeRef:o,children:n.cloneElement(t,{ref:s})})}let p=({children:t,initial:e,isPresent:i,onExitComplete:s,custom:o,presenceAffectsLayout:a,mode:h})=>{let c=(0,u.h)(f),p=(0,n.useId)(),m=(0,n.useMemo)(()=>({id:p,initial:e,isPresent:i,custom:o,onExitComplete:t=>{for(let e of(c.set(t,!0),c.values()))if(!e)return;s&&s()},register:t=>(c.set(t,!1),()=>c.delete(t))}),a?[Math.random()]:[i]);return(0,n.useMemo)(()=>{c.forEach((t,e)=>c.set(e,!1))},[i]),n.useEffect(()=>{i||c.size||!s||s()},[i]),"popLayout"===h&&(t=(0,r.jsx)(d,{isPresent:i,children:t})),(0,r.jsx)(l.O.Provider,{value:m,children:t})};function f(){return new Map}var m=i(5502),v=i(6937);let g=t=>t.key||"",y=({children:t,custom:e,initial:i=!0,onExitComplete:l,exitBeforeEnter:u,presenceAffectsLayout:h=!0,mode:c="sync"})=>{var d;(0,v.k)(!u,"Replace exitBeforeEnter with mode='wait'");let f=(0,n.useContext)(m.p).forceRender||function(){let t=o(),[e,i]=(0,n.useState)(0),r=(0,n.useCallback)(()=>{t.current&&i(e+1)},[e]);return[(0,n.useCallback)(()=>a.Wi.postRender(r),[r]),e]}()[0],y=o(),x=function(t){let e=[];return n.Children.forEach(t,t=>{(0,n.isValidElement)(t)&&e.push(t)}),e}(t),w=x,b=(0,n.useRef)(new Map).current,T=(0,n.useRef)(w),P=(0,n.useRef)(new Map).current,A=(0,n.useRef)(!0);if((0,s.L)(()=>{A.current=!1,function(t,e){t.forEach(t=>{let i=g(t);e.set(i,t)})}(x,P),T.current=w}),d=()=>{A.current=!0,P.clear(),b.clear()},(0,n.useEffect)(()=>()=>d(),[]),A.current)return(0,r.jsx)(r.Fragment,{children:w.map(t=>(0,r.jsx)(p,{isPresent:!0,initial:!!i&&void 0,presenceAffectsLayout:h,mode:c,children:t},g(t)))});w=[...w];let S=T.current.map(g),E=x.map(g),C=S.length;for(let t=0;t<C;t++){let e=S[t];-1!==E.indexOf(e)||b.has(e)||b.set(e,void 0)}return"wait"===c&&b.size&&(w=[]),b.forEach((t,i)=>{if(-1!==E.indexOf(i))return;let n=P.get(i);if(!n)return;let s=S.indexOf(i),o=t;o||(o=(0,r.jsx)(p,{isPresent:!1,onExitComplete:()=>{b.delete(i);let t=Array.from(P.keys()).filter(t=>!E.includes(t));if(t.forEach(t=>P.delete(t)),T.current=x.filter(e=>{let r=g(e);return r===i||t.includes(r)}),!b.size){if(!1===y.current)return;f(),l&&l()}},custom:e,presenceAffectsLayout:h,mode:c,children:n},g(n)),b.set(i,o)),w.splice(s,0,o)}),w=w.map(t=>{let e=t.key;return b.has(e)?t:(0,r.jsx)(p,{isPresent:!0,presenceAffectsLayout:h,mode:c,children:t},g(t))}),(0,r.jsx)(r.Fragment,{children:b.size?w:w.map(t=>(0,n.cloneElement)(t))})}},5502:function(t,e,i){"use strict";i.d(e,{p:function(){return r}});let r=(0,i(7212).createContext)({})},6022:function(t,e,i){"use strict";i.d(e,{_:function(){return r}});let r=(0,i(7212).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},922:function(t,e,i){"use strict";i.d(e,{O:function(){return r}});let r=(0,i(7212).createContext)(null)},8479:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var r=i(8496);class n{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 s=["read","resolveKeyframes","update","preRender","render","postRender"];function o(t,e){let i=!1,o=!0,a={delta:0,timestamp:0,isProcessing:!1},l=s.reduce((t,e)=>(t[e]=function(t){let e=new n,i=new n,r=0,s=!1,o=!1,a=new WeakSet,l={schedule:(t,n=!1,o=!1)=>{let l=o&&s,u=l?e:i;return n&&a.add(t),u.add(t)&&l&&s&&(r=e.order.length),t},cancel:t=>{i.remove(t),a.delete(t)},process:n=>{if(s){o=!0;return}if(s=!0,[e,i]=[i,e],i.clear(),r=e.order.length)for(let i=0;i<r;i++){let r=e.order[i];a.has(r)&&(l.schedule(r),t()),r(n)}s=!1,o&&(o=!1,l.process(n))}};return l}(()=>i=!0),t),{}),u=t=>{l[t].process(a)},h=()=>{let n=r.c.useManualTiming?a.timestamp:performance.now();i=!1,a.delta=o?1e3/60:Math.max(Math.min(n-a.timestamp,40),1),a.timestamp=n,a.isProcessing=!0,s.forEach(u),a.isProcessing=!1,i&&e&&(o=!1,t(h))},c=()=>{i=!0,o=!0,a.isProcessing||t(h)};return{schedule:s.reduce((t,e)=>{let r=l[e];return t[e]=(t,e=!1,n=!1)=>(i||c(),r.schedule(t,e,n)),t},{}),cancel:t=>s.forEach(e=>l[e].cancel(t)),state:a,steps:l}}},2498:function(t,e,i){"use strict";i.d(e,{Pn:function(){return s},S6:function(){return a},Wi:function(){return n},frameData:function(){return o}});var r=i(6508);let{schedule:n,cancel:s,state:o,steps:a}=(0,i(8479).Z)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:r.Z,!0)},7402:function(t,e,i){"use strict";let r;i.d(e,{E:function(){return se}});var n,s=i(169),o=i(7212),a=i(6022);let l=(0,o.createContext)({});var u=i(922),h=i(6972);let c=(0,o.createContext)({strict:!1}),d=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),p="data-"+d("framerAppearId"),{schedule:f,cancel:m}=(0,i(8479).Z)(queueMicrotask,!1);function v(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let g=(0,o.createContext)({}),y=!1;function x(){window.HandoffComplete=!0}function w(t){return"string"==typeof t||Array.isArray(t)}function b(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}let T=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],P=["initial",...T];function A(t){return b(t.animate)||P.some(e=>w(t[e]))}function S(t){return!!(A(t)||t.variants)}function E(t){return Array.isArray(t)?t.join(" "):t}let C={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"]},R={};for(let t in C)R[t]={isEnabled:e=>C[t].some(t=>!!e[t])};var M=i(2441),k=i(5502);let V=Symbol.for("motionComponentSymbol"),D=["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 L(t){if("string"!=typeof t||t.includes("-"));else if(D.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let j={},F=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],O=new Set(F);function N(t,{layout:e,layoutId:i}){return O.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!j[t]||"opacity"===t)}let B=t=>!!(t&&t.getVelocity),I={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},W=F.length,U=t=>e=>"string"==typeof e&&e.startsWith(t),$=U("--"),_=U("var(--"),H=t=>!!_(t)&&z.test(t.split("/*")[0].trim()),z=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,K=(t,e)=>e&&"number"==typeof t?e.transform(t):t,Y=(t,e,i)=>i>e?e:i<t?t:i,G={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},Z={...G,transform:t=>Y(0,1,t)},q={...G,default:1},X=t=>Math.round(1e5*t)/1e5,Q=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,J=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function te(t){return"string"==typeof t}let ti=t=>({test:e=>te(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tr=ti("deg"),tn=ti("%"),ts=ti("px"),to=ti("vh"),ta=ti("vw"),tl={...tn,parse:t=>tn.parse(t)/100,transform:t=>tn.transform(100*t)},tu={...G,transform:Math.round},th={borderWidth:ts,borderTopWidth:ts,borderRightWidth:ts,borderBottomWidth:ts,borderLeftWidth:ts,borderRadius:ts,radius:ts,borderTopLeftRadius:ts,borderTopRightRadius:ts,borderBottomRightRadius:ts,borderBottomLeftRadius:ts,width:ts,maxWidth:ts,height:ts,maxHeight:ts,size:ts,top:ts,right:ts,bottom:ts,left:ts,padding:ts,paddingTop:ts,paddingRight:ts,paddingBottom:ts,paddingLeft:ts,margin:ts,marginTop:ts,marginRight:ts,marginBottom:ts,marginLeft:ts,rotate:tr,rotateX:tr,rotateY:tr,rotateZ:tr,scale:q,scaleX:q,scaleY:q,scaleZ:q,skew:tr,skewX:tr,skewY:tr,distance:ts,translateX:ts,translateY:ts,translateZ:ts,x:ts,y:ts,z:ts,perspective:ts,transformPerspective:ts,opacity:Z,originX:tl,originY:tl,originZ:ts,zIndex:tu,backgroundPositionX:ts,backgroundPositionY:ts,fillOpacity:Z,strokeOpacity:Z,numOctaves:tu};function tc(t,e,i,r){let{style:n,vars:s,transform:o,transformOrigin:a}=t,l=!1,u=!1,h=!0;for(let t in e){let i=e[t];if($(t)){s[t]=i;continue}let r=th[t],c=K(i,r);if(O.has(t)){if(l=!0,o[t]=c,!h)continue;i!==(r.default||0)&&(h=!1)}else t.startsWith("origin")?(u=!0,a[t]=c):n[t]=c}if(!e.transform&&(l||r?n.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:i=!0},r,n){let s="";for(let e=0;e<W;e++){let i=F[e];if(void 0!==t[i]){let e=I[i]||i;s+=`${e}(${t[i]}) `}}return e&&!t.z&&(s+="translateZ(0)"),s=s.trim(),n?s=n(t,r?"":s):i&&r&&(s="none"),s}(t.transform,i,h,r):n.transform&&(n.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=a;n.transformOrigin=`${t} ${e} ${i}`}}let td=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tp(t,e,i){for(let r in e)B(e[r])||N(r,i)||(t[r]=e[r])}let tf=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function tm(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||tf.has(t)}let tv=t=>!tm(t);try{(n=require("@emotion/is-prop-valid").default)&&(tv=t=>t.startsWith("on")?!tm(t):n(t))}catch(t){}function tg(t,e,i){return"string"==typeof t?t:ts.transform(e+i*t)}let ty={offset:"stroke-dashoffset",array:"stroke-dasharray"},tx={offset:"strokeDashoffset",array:"strokeDasharray"};function tw(t,{attrX:e,attrY:i,attrScale:r,originX:n,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},h,c,d){if(tc(t,u,h,d),c){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!==n||void 0!==s||f.transform)&&(f.transformOrigin=function(t,e,i){let r=tg(e,t.x,t.width),n=tg(i,t.y,t.height);return`${r} ${n}`}(m,void 0!==n?n:.5,void 0!==s?s:.5)),void 0!==e&&(p.x=e),void 0!==i&&(p.y=i),void 0!==r&&(p.scale=r),void 0!==o&&function(t,e,i=1,r=0,n=!0){t.pathLength=1;let s=n?ty:tx;t[s.offset]=ts.transform(-r);let o=ts.transform(e),a=ts.transform(i);t[s.array]=`${o} ${a}`}(p,o,a,l,!1)}let tb=()=>({...td(),attrs:{}}),tT=t=>"string"==typeof t&&"svg"===t.toLowerCase();function tP(t,{style:e,vars:i},r,n){for(let s in Object.assign(t.style,e,n&&n.getProjectionStyles(r)),i)t.style.setProperty(s,i[s])}let tA=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 tS(t,e,i,r){for(let i in tP(t,e,void 0,r),e.attrs)t.setAttribute(tA.has(i)?i:d(i),e.attrs[i])}function tE(t,e,i){var r;let{style:n}=t,s={};for(let o in n)(B(n[o])||e.style&&B(e.style[o])||N(o,t)||(null===(r=null==i?void 0:i.getValue(o))||void 0===r?void 0:r.liveStyle)!==void 0)&&(s[o]=n[o]);return s}function tC(t,e,i){let r=tE(t,e,i);for(let i in t)(B(t[i])||B(e[i]))&&(r[-1!==F.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return r}function tR(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function tM(t,e,i,r){if("function"==typeof e){let[n,s]=tR(r);e=e(void 0!==i?i:t.custom,n,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[n,s]=tR(r);e=e(void 0!==i?i:t.custom,n,s)}return e}var tk=i(465);let tV=t=>Array.isArray(t),tD=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),tL=t=>tV(t)?t[t.length-1]||0:t;function tj(t){let e=B(t)?t.get():t;return tD(e)?e.toValue():e}let tF=t=>(e,i)=>{let r=(0,o.useContext)(l),n=(0,o.useContext)(u.O),s=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:i},r,n,s){let o={latestValues:function(t,e,i,r){let n={},s=r(t,{});for(let t in s)n[t]=tj(s[t]);let{initial:o,animate:a}=t,l=A(t),u=S(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===o)?a:o;return c&&"boolean"!=typeof c&&!b(c)&&(Array.isArray(c)?c:[c]).forEach(e=>{let i=tM(t,e);if(!i)return;let{transitionEnd:r,transition:s,...o}=i;for(let t in o){let e=o[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(n[t]=e)}for(let t in r)n[t]=r[t]}),n}(r,n,s,t),renderState:e()};return i&&(o.mount=t=>i(r,t,o)),o})(t,e,r,n);return i?s():(0,tk.h)(s)};var tO=i(2498);let tN={useVisualState:tF({scrapeMotionValuesFromProps:tC,createRenderState:tb,onMount:(t,e,{renderState:i,latestValues:r})=>{tO.Wi.read(()=>{try{i.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}}),tO.Wi.render(()=>{tw(i,r,{enableHardwareAcceleration:!1},tT(e.tagName),t.transformTemplate),tS(e,i)})}})},tB={useVisualState:tF({scrapeMotionValuesFromProps:tE,createRenderState:td})};function tI(t,e,i,r={passive:!0}){return t.addEventListener(e,i,r),()=>t.removeEventListener(e,i)}let tW=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tU(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}let t$=t=>e=>tW(e)&&t(e,tU(e));function t_(t,e,i,r){return tI(t,e,t$(i),r)}let tH=(t,e)=>i=>e(t(i)),tz=(...t)=>t.reduce(tH);function tK(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let tY=tK("dragHorizontal"),tG=tK("dragVertical");function tZ(t){let e=!1;if("y"===t)e=tG();else if("x"===t)e=tY();else{let t=tY(),i=tG();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function tq(){let t=tZ(!0);return!t||(t(),!1)}class tX{constructor(t){this.isMounted=!1,this.node=t}update(){}}function tQ(t,e){let i=e?"onHoverStart":"onHoverEnd";return t_(t.current,e?"pointerenter":"pointerleave",(r,n)=>{if("touch"===r.pointerType||tq())return;let s=t.getProps();t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",e);let o=s[i];o&&tO.Wi.postRender(()=>o(r,n))},{passive:!t.getProps()[i]})}class tJ extends tX{mount(){this.unmount=tz(tQ(this.node,!0),tQ(this.node,!1))}unmount(){}}class t0 extends tX{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=tz(tI(this.node.current,"focus",()=>this.onFocus()),tI(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let t1=(t,e)=>!!e&&(t===e||t1(t,e.parentElement));var t2=i(6508);function t5(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,tU(i))}class t6 extends tX{constructor(){super(...arguments),this.removeStartListeners=t2.Z,this.removeEndListeners=t2.Z,this.removeAccessibleListeners=t2.Z,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),r=t_(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:r,globalTapTarget:n}=this.node.getProps(),s=n||t1(this.node.current,t.target)?i:r;s&&tO.Wi.update(()=>s(t,e))},{passive:!(i.onTap||i.onPointerUp)}),n=t_(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=tz(r,n),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=tI(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=tI(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&t5("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&tO.Wi.postRender(()=>i(t,e))})}),t5("down",(t,e)=>{this.startPress(t,e)}))}),e=tI(this.node.current,"blur",()=>{this.isPressing&&t5("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=tz(t,e)}}startPress(t,e){this.isPressing=!0;let{onTapStart:i,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&tO.Wi.postRender(()=>i(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!tq()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&tO.Wi.postRender(()=>i(t,e))}mount(){let t=this.node.getProps(),e=t_(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=tI(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=tz(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let t3=new WeakMap,t4=new WeakMap,t9=t=>{let e=t3.get(t.target);e&&e(t)},t8=t=>{t.forEach(t9)},t7={some:0,all:1};class et extends tX{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:r="some",once:n}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof r?r:t7[r]};return function(t,e,i){let r=function({root:t,...e}){let i=t||document;t4.has(i)||t4.set(i,{});let r=t4.get(i),n=JSON.stringify(e);return r[n]||(r[n]=new IntersectionObserver(t8,{root:t,...e})),r[n]}(e);return t3.set(t,i),r.observe(t),()=>{t3.delete(t),r.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,n&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:r}=this.node.getProps(),s=e?i:r;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}function ee(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let r=0;r<i;r++)if(e[r]!==t[r])return!1;return!0}function ei(t,e,i){let r=t.getProps();return tM(r,e,void 0!==i?i:r.custom,t)}let er=t=>1e3*t,en=t=>t/1e3,es={type:"spring",stiffness:500,damping:25,restSpeed:10},eo=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),ea={type:"keyframes",duration:.8},el={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},eu=(t,{keyframes:e})=>e.length>2?ea:O.has(t)?t.startsWith("scale")?eo(e[1]):es:el;function eh(t,e){return t[e]||t.default||t}var ec=i(8496);let ed={current:!1},ep=t=>null!==t;function ef(t,{repeat:e,repeatType:i="loop"},r){let n=t.filter(ep),s=e&&"loop"!==i&&e%2==1?0:n.length-1;return s&&void 0!==r?r:n[s]}function em(){r=void 0}let ev={now:()=>(void 0===r&&ev.set(tO.frameData.isProcessing||ec.c.useManualTiming?tO.frameData.timestamp:performance.now()),r),set:t=>{r=t,queueMicrotask(em)}},eg=t=>/^0[^.\s]+$/u.test(t);var ey=i(6937);let ex=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),ew=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,eb=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),eT=t=>t===G||t===ts,eP=(t,e)=>parseFloat(t.split(", ")[e]),eA=(t,e)=>(i,{transform:r})=>{if("none"===r||!r)return 0;let n=r.match(/^matrix3d\((.+)\)$/u);if(n)return eP(n[1],e);{let e=r.match(/^matrix\((.+)\)$/u);return e?eP(e[1],t):0}},eS=new Set(["x","y","z"]),eE=F.filter(t=>!eS.has(t)),eC={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:eA(4,13),y:eA(5,14)};eC.translateX=eC.x,eC.translateY=eC.y;let eR=t=>e=>e.test(t),eM=[G,ts,tn,tr,ta,to,{test:t=>"auto"===t,parse:t=>t}],ek=t=>eM.find(eR(t)),eV=new Set,eD=!1,eL=!1;function ej(){if(eL){let t=Array.from(eV).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return eE.forEach(i=>{let r=t.getValue(i);void 0!==r&&(e.push([i,r.get()]),r.set(i.startsWith("scale")?1:0))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var r;null===(r=t.getValue(e))||void 0===r||r.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}eL=!1,eD=!1,eV.forEach(t=>t.complete()),eV.clear()}function eF(){eV.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(eL=!0)})}class eO{constructor(t,e,i,r,n,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=r,this.element=n,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(eV.add(this),eD||(eD=!0,tO.Wi.read(eF),tO.Wi.resolveKeyframes(ej))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:r}=this;for(let n=0;n<t.length;n++)if(null===t[n]){if(0===n){let n=null==r?void 0:r.get(),s=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){let r=i.readValue(e,s);null!=r&&(t[0]=r)}void 0===t[0]&&(t[0]=s),r&&void 0===n&&r.set(t[0])}else t[n]=t[n-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),eV.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,eV.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let eN=(t,e)=>i=>!!(te(i)&&tt.test(i)&&i.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(i,e)),eB=(t,e,i)=>r=>{if(!te(r))return r;let[n,s,o,a]=r.match(Q);return{[t]:parseFloat(n),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},eI=t=>Y(0,255,t),eW={...G,transform:t=>Math.round(eI(t))},eU={test:eN("rgb","red"),parse:eB("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:r=1})=>"rgba("+eW.transform(t)+", "+eW.transform(e)+", "+eW.transform(i)+", "+X(Z.transform(r))+")"},e$={test:eN("#"),parse:function(t){let e="",i="",r="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),r=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),r=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,r+=r,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(r,16),alpha:n?parseInt(n,16)/255:1}},transform:eU.transform},e_={test:eN("hsl","hue"),parse:eB("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:r=1})=>"hsla("+Math.round(t)+", "+tn.transform(X(e))+", "+tn.transform(X(i))+", "+X(Z.transform(r))+")"},eH={test:t=>eU.test(t)||e$.test(t)||e_.test(t),parse:t=>eU.test(t)?eU.parse(t):e_.test(t)?e_.parse(t):e$.parse(t),transform:t=>te(t)?t:t.hasOwnProperty("red")?eU.transform(t):e_.transform(t)},ez="number",eK="color",eY=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function eG(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]},n=[],s=0,o=e.replace(eY,t=>(eH.test(t)?(r.color.push(s),n.push(eK),i.push(eH.parse(t))):t.startsWith("var(")?(r.var.push(s),n.push("var"),i.push(t)):(r.number.push(s),n.push(ez),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:r,types:n}}function eZ(t){return eG(t).values}function eq(t){let{split:e,types:i}=eG(t),r=e.length;return t=>{let n="";for(let s=0;s<r;s++)if(n+=e[s],void 0!==t[s]){let e=i[s];e===ez?n+=X(t[s]):e===eK?n+=eH.transform(t[s]):n+=t[s]}return n}}let eX=t=>"number"==typeof t?0:t,eQ={test:function(t){var e,i;return isNaN(t)&&te(t)&&((null===(e=t.match(Q))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(J))||void 0===i?void 0:i.length)||0)>0},parse:eZ,createTransformer:eq,getAnimatableNone:function(t){let e=eZ(t);return eq(t)(e.map(eX))}},eJ=new Set(["brightness","contrast","saturate","opacity"]);function e0(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=i.match(Q)||[];if(!r)return t;let n=i.replace(r,""),s=eJ.has(e)?1:0;return r!==i&&(s*=100),e+"("+s+n+")"}let e1=/\b([a-z-]*)\(.*?\)/gu,e2={...eQ,getAnimatableNone:t=>{let e=t.match(e1);return e?e.map(e0).join(" "):t}},e5={...th,color:eH,backgroundColor:eH,outlineColor:eH,fill:eH,stroke:eH,borderColor:eH,borderTopColor:eH,borderRightColor:eH,borderBottomColor:eH,borderLeftColor:eH,filter:e2,WebkitFilter:e2},e6=t=>e5[t];function e3(t,e){let i=e6(t);return i!==e2&&(i=eQ),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let e4=new Set(["auto","none","0"]);class e9 extends eO{constructor(t,e,i,r){super(t,e,i,r,null==r?void 0:r.owner,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let r=t[i];if("string"==typeof r&&H(r=r.trim())){let n=function t(e,i,r=1){(0,ey.k)(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,s]=function(t){let e=ew.exec(t);if(!e)return[,];let[,i,r,n]=e;return[`--${null!=i?i:r}`,n]}(e);if(!n)return;let o=window.getComputedStyle(i).getPropertyValue(n);if(o){let t=o.trim();return ex(t)?parseFloat(t):t}return H(s)?t(s,i,r+1):s}(r,e.current);void 0!==n&&(t[i]=n),i===t.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!eb.has(i)||2!==t.length)return;let[r,n]=t,s=ek(r),o=ek(n);if(s!==o){if(eT(s)&&eT(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var r;("number"==typeof(r=t[e])?0===r:null===r||"none"===r||"0"===r||eg(r))&&i.push(e)}i.length&&function(t,e,i){let r,n=0;for(;n<t.length&&!r;){let e=t[n];"string"==typeof e&&!e4.has(e)&&eG(e).values.length&&(r=t[n]),n++}if(r&&i)for(let n of e)t[n]=e3(i,r)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eC[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let r=e[e.length-1];void 0!==r&&t.getValue(i,r).jump(r,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:r}=this;if(!e.current)return;let n=e.getValue(i);n&&n.jump(this.measuredOrigin,!1);let s=r.length-1,o=r[s];r[s]=eC[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEach(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}function e8(t){let e;return()=>(void 0===e&&(e=t()),e)}let e7=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(eQ.test(t)||"0"===t)&&!t.startsWith("url("));class it{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:t,delay:e,type:i,repeat:r,repeatDelay:n,repeatType:s,...o},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(eF(),ej()),this._resolved}onKeyframesResolved(t,e){this.hasAttemptedResolve=!0;let{name:i,type:r,velocity:n,delay:s,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,i,r){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=e7(n,e),a=e7(s,e);return(0,ey.K)(o===a,`You are trying to animate ${e} from "${n}" to "${s}". ${n} is not an animatable value - to enable this animation set ${n} to a value animatable to ${s} via the \`style\` property.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||"spring"===i&&r)}(t,i,r,n)){if(ed.current||!s){null==a||a(ef(t,this.options,e)),null==o||o(),this.resolveFinishedPromise();return}this.options.duration=0}let u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function ie(t,e,i){var r,n;let s=Math.max(e-5,0);return r=i-t(s),(n=e-s)?1e3/n*r:0}function ii(t,e){return t*Math.sqrt(1-e*e)}let ir=["duration","bounce"],is=["stiffness","damping","mass"];function io(t,e){return e.some(e=>void 0!==t[e])}function ia({keyframes:t,restDelta:e,restSpeed:i,...r}){let n;let s=t[0],o=t[t.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:h,duration:c,velocity:d,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!io(t,is)&&io(t,ir)){let i=function({duration:t=800,bounce:e=.25,velocity:i=0,mass:r=1}){let n,s;(0,ey.K)(t<=er(10),"Spring duration must be 10 seconds or less");let o=1-e;o=Y(.05,1,o),t=Y(.01,10,en(t)),o<1?(n=e=>{let r=e*o,n=r*t;return .001-(r-i)/ii(e,o)*Math.exp(-n)},s=e=>{let r=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=ii(Math.pow(e,2),o);return(r*i+i-s)*Math.exp(-r)*(-n(e)+.001>0?-1:1)/a}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let r=i;for(let i=1;i<12;i++)r-=t(r)/e(r);return r}(n,s,5/t);if(t=er(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*r;return{stiffness:e,damping:2*o*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...r,velocity:-en(r.velocity||0)}),f=d||0,m=u/(2*Math.sqrt(l*h)),v=o-s,g=en(Math.sqrt(l/h)),y=5>Math.abs(v);if(i||(i=y?.01:2),e||(e=y?.005:.5),m<1){let t=ii(g,m);n=e=>o-Math.exp(-m*g*e)*((f+m*g*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}else if(1===m)n=t=>o-Math.exp(-g*t)*(v+(f+g*v)*t);else{let t=g*Math.sqrt(m*m-1);n=e=>{let i=Math.exp(-m*g*e),r=Math.min(t*e,300);return o-i*((f+m*g*v)*Math.sinh(r)+t*v*Math.cosh(r))/t}}return{calculatedDuration:p&&c||null,next:t=>{let r=n(t);if(p)a.done=t>=c;else{let s=f;0!==t&&(s=m<1?ie(n,t,r):0);let l=Math.abs(s)<=i,u=Math.abs(o-r)<=e;a.done=l&&u}return a.value=a.done?o:r,a}}}function il({keyframes:t,velocity:e=0,power:i=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d;let p=t[0],f={done:!1,value:p},m=t=>void 0!==a&&t<a||void 0!==l&&t>l,v=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,g=i*e,y=p+g,x=void 0===o?y:o(y);x!==y&&(g=x-p);let w=t=>-g*Math.exp(-t/r),b=t=>x+w(t),T=t=>{let e=w(t),i=b(t);f.done=Math.abs(e)<=u,f.value=f.done?x:i},P=t=>{m(f.value)&&(c=t,d=ia({keyframes:[f.value,v(f.value)],velocity:ie(b,t,f.value),damping:n,stiffness:s,restDelta:u,restSpeed:h}))};return P(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,T(t),P(t)),void 0!==c&&t>=c)?d.next(t-c):(e||T(t),f)}}}let iu=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function ih(t,e,i,r){if(t===e&&i===r)return t2.Z;let n=e=>(function(t,e,i,r,n){let s,o;let a=0;do(s=iu(o=e+(i-e)/2,r,n)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:iu(n(t),e,r)}let ic=ih(.42,0,1,1),id=ih(0,0,.58,1),ip=ih(.42,0,.58,1),im=t=>Array.isArray(t)&&"number"!=typeof t[0],iv=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ig=t=>e=>1-t(1-e),iy=t=>1-Math.sin(Math.acos(t)),ix=ig(iy),iw=iv(iy),ib=ih(.33,1.53,.69,.99),iT=ig(ib),iP=iv(iT),iA={linear:t2.Z,easeIn:ic,easeInOut:ip,easeOut:id,circIn:iy,circInOut:iw,circOut:ix,backIn:iT,backInOut:iP,backOut:ib,anticipate:t=>(t*=2)<1?.5*iT(t):.5*(2-Math.pow(2,-10*(t-1)))},iS=t=>{if(Array.isArray(t)){(0,ey.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,r,n]=t;return ih(e,i,r,n)}return"string"==typeof t?((0,ey.k)(void 0!==iA[t],`Invalid easing type '${t}'`),iA[t]):t},iE=(t,e,i)=>{let r=e-t;return 0===r?1:(i-t)/r},iC=(t,e,i)=>t+(e-t)*i;function iR(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function iM(t,e){return i=>i>0?e:t}let ik=(t,e,i)=>{let r=t*t,n=i*(e*e-r)+r;return n<0?0:Math.sqrt(n)},iV=[e$,eU,e_],iD=t=>iV.find(e=>e.test(t));function iL(t){let e=iD(t);if((0,ey.K)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===e_&&(i=function({hue:t,saturation:e,lightness:i,alpha:r}){t/=360,i/=100;let n=0,s=0,o=0;if(e/=100){let r=i<.5?i*(1+e):i+e-i*e,a=2*i-r;n=iR(a,r,t+1/3),s=iR(a,r,t),o=iR(a,r,t-1/3)}else n=s=o=i;return{red:Math.round(255*n),green:Math.round(255*s),blue:Math.round(255*o),alpha:r}}(i)),i}let ij=(t,e)=>{let i=iL(t),r=iL(e);if(!i||!r)return iM(t,e);let n={...i};return t=>(n.red=ik(i.red,r.red,t),n.green=ik(i.green,r.green,t),n.blue=ik(i.blue,r.blue,t),n.alpha=iC(i.alpha,r.alpha,t),eU.transform(n))},iF=new Set(["none","hidden"]);function iO(t,e){return i=>iC(t,e,i)}function iN(t){return"number"==typeof t?iO:"string"==typeof t?H(t)?iM:eH.test(t)?ij:iW:Array.isArray(t)?iB:"object"==typeof t?eH.test(t)?ij:iI:iM}function iB(t,e){let i=[...t],r=i.length,n=t.map((t,i)=>iN(t)(t,e[i]));return t=>{for(let e=0;e<r;e++)i[e]=n[e](t);return i}}function iI(t,e){let i={...t,...e},r={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(r[n]=iN(t[n])(t[n],e[n]));return t=>{for(let e in r)i[e]=r[e](t);return i}}let iW=(t,e)=>{let i=eQ.createTransformer(e),r=eG(t),n=eG(e);return r.indexes.var.length===n.indexes.var.length&&r.indexes.color.length===n.indexes.color.length&&r.indexes.number.length>=n.indexes.number.length?iF.has(t)&&!n.values.length||iF.has(e)&&!r.values.length?iF.has(t)?i=>i<=0?t:e:i=>i>=1?e:t:tz(iB(function(t,e){var i;let r=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let o=e.types[s],a=t.indexes[o][n[o]],l=null!==(i=t.values[a])&&void 0!==i?i:0;r[s]=l,n[o]++}return r}(r,n),n.values),i):((0,ey.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.`),iM(t,e))};function iU(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?iC(t,e,i):iN(t)(t,e)}function i$({duration:t=300,keyframes:e,times:i,ease:r="easeInOut"}){let n=im(r)?r.map(iS):iS(r),s={done:!1,value:e[0]},o=function(t,e,{clamp:i=!0,ease:r,mixer:n}={}){let s=t.length;if((0,ey.k)(s===e.length,"Both input and output ranges must be the same length"),1===s)return()=>e[0];if(2===s&&t[0]===t[1])return()=>e[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let r=[],n=i||iU,s=t.length-1;for(let i=0;i<s;i++){let s=n(t[i],t[i+1]);e&&(s=tz(Array.isArray(e)?e[i]||t2.Z:e,s)),r.push(s)}return r}(e,r,n),a=o.length,l=e=>{let i=0;if(a>1)for(;i<t.length-2&&!(e<t[i+1]);i++);let r=iE(t[i],t[i+1],e);return o[i](r)};return i?e=>l(Y(t[0],t[s-1],e)):l}((i&&i.length===e.length?i:function(t){let e=[0];return function(t,e){let i=t[t.length-1];for(let r=1;r<=e;r++){let n=iE(0,e,r);t.push(iC(i,1,n))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(n)?n:e.map(()=>n||ip).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=o(e),s.done=e>=t,s)}}let i_=t=>{let e=({timestamp:e})=>t(e);return{start:()=>tO.Wi.update(e,!0),stop:()=>(0,tO.Pn)(e),now:()=>tO.frameData.isProcessing?tO.frameData.timestamp:ev.now()}},iH={decay:il,inertia:il,tween:i$,keyframes:i$,spring:ia},iz=t=>t/100;class iK extends it{constructor({KeyframeResolver:t=eO,...e}){super(e),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:i,motionValue:r,keyframes:n}=this.options,s=(t,e)=>this.onKeyframesResolved(t,e);i&&r&&r.owner?this.resolver=r.owner.resolveKeyframes(n,s,i,r):this.resolver=new t(n,s,i,r),this.resolver.scheduleResolve()}initPlayback(t){let e,i;let{type:r="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:o,velocity:a=0}=this.options,l=iH[r]||i$;l!==i$&&"number"!=typeof t[0]&&(e=tz(iz,iU(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===o&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=function(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}(u));let{calculatedDuration:h}=u,c=h+s;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:h,resolvedDuration:c,totalDuration:c*(n+1)-s}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:r,generator:n,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return n.next(0);let{delay:c,repeat:d,repeatType:p,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let v=this.currentTime-c*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=n;if(d){let t=Math.min(this.currentTime,u)/h,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===p?(i=1-i,f&&(i-=f/h)):"mirror"===p&&(x=s)),y=Y(0,1,i)*h}let w=g?{done:!1,value:a[0]}:x.next(y);o&&(w.value=o(w.value));let{done:b}=w;g||null===l||(b=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return T&&void 0!==r&&(w.value=ef(a,this.options,r)),m&&m(w.value),T&&this.finish(),w}get duration(){let{resolved:t}=this;return t?en(t.calculatedDuration):0}get time(){return en(this.currentTime)}set time(t){t=er(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=en(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=i_,onPlay:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let i=this.driver.now();null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=i),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let iY=t=>Array.isArray(t)&&"number"==typeof t[0],iG=([t,e,i,r])=>`cubic-bezier(${t}, ${e}, ${i}, ${r})`,iZ={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:iG([0,.65,.55,1]),circOut:iG([.55,0,1,.45]),backIn:iG([.31,.01,.66,-.59]),backOut:iG([.33,1.53,.69,.99])};function iq(t){return iX(t)||iZ.easeOut}function iX(t){if(t)return iY(t)?iG(t):Array.isArray(t)?t.map(iq):iZ[t]}let iQ=e8(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),iJ=new Set(["opacity","clipPath","filter","transform"]);class i0 extends it{constructor(t){super(t);let{name:e,motionValue:i,keyframes:r}=this.options;this.resolver=new e9(r,(t,e)=>this.onKeyframesResolved(t,e),e,i),this.resolver.scheduleResolve()}initPlayback(t,e){var i,r;let{duration:n=300,times:s,ease:o,type:a,motionValue:l,name:u}=this.options;if(!(null===(i=l.owner)||void 0===i?void 0:i.current))return!1;if("spring"===(r=this.options).type||"backgroundColor"===r.name||!function t(e){return!!(!e||"string"==typeof e&&e in iZ||iY(e)||Array.isArray(e)&&e.every(t))}(r.ease)){let{onComplete:e,onUpdate:i,motionValue:r,...l}=this.options,u=function(t,e){let i=new iK({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:t[0]},n=[],s=0;for(;!r.done&&s<2e4;)n.push((r=i.sample(s)).value),s+=10;return{times:void 0,keyframes:n,duration:s-10,ease:"linear"}}(t,l);1===(t=u.keyframes).length&&(t[1]=t[0]),n=u.duration,s=u.times,o=u.ease,a="keyframes"}let h=function(t,e,i,{delay:r=0,duration:n=300,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=iX(a);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:r,duration:n,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"})}(l.owner.current,u,t,{...this.options,duration:n,times:s,ease:o});return h.startTime=ev.now(),this.pendingTimeline?(h.timeline=this.pendingTimeline,this.pendingTimeline=void 0):h.onfinish=()=>{let{onComplete:i}=this.options;l.set(ef(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:n,times:s,type:a,ease:o,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return en(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return en(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=er(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return t2.Z;let{animation:i}=e;i.timeline=t,i.onfinish=null}else this.pendingTimeline=t;return t2.Z}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:r,type:n,ease:s,times:o}=t;if("idle"!==e.playState&&"finished"!==e.playState){if(this.time){let{motionValue:t,onUpdate:e,onComplete:a,...l}=this.options,u=new iK({...l,keyframes:i,duration:r,type:n,ease:s,times:o,isGenerator:!0}),h=er(this.time);t.setWithVelocity(u.sample(h-10).value,u.sample(h).value,10)}this.cancel()}}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:i,repeatDelay:r,repeatType:n,damping:s,type:o}=t;return iQ()&&i&&iJ.has(i)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!r&&"mirror"!==n&&0!==s&&"inertia"!==o}}let i1=e8(()=>void 0!==window.ScrollTimeline);class i2{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,e){return Promise.all(this.animations).then(t).catch(e)}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t){let e=this.animations.map(e=>{if(!i1()||!e.attachTimeline)return e.pause(),function(t,e){let i;let r=()=>{let{currentTime:r}=e,n=(null===r?0:r.value)/100;i!==n&&t(n),i=n};return tO.Wi.update(r,!0),()=>(0,tO.Pn)(r)}(t=>{e.time=e.duration*t},t);e.attachTimeline(t)});return()=>{e.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}let i5=(t,e,i,r={},n,s)=>o=>{let a=eh(r,t)||{},l=a.delay||r.delay||0,{elapsed:u=0}=r;u-=er(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:n};!function({when:t,delay:e,delayChildren:i,staggerChildren:r,staggerDirection:n,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(a)&&(h={...h,...eu(t,h)}),h.duration&&(h.duration=er(h.duration)),h.repeatDelay&&(h.repeatDelay=er(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(h.duration=0,0!==h.delay||(c=!0)),(ed.current||ec.c.skipAnimations)&&(c=!0,h.duration=0,h.delay=0),c&&!s&&void 0!==e.get()){let t=ef(h.keyframes,a);if(void 0!==t)return tO.Wi.update(()=>{h.onUpdate(t),h.onComplete()}),new i2([])}return!s&&i0.supports(h)?new i0(h):new iK(h)};function i6(t){return!!(B(t)&&t.add)}function i3(t,e){-1===t.indexOf(e)&&t.push(e)}function i4(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class i9{constructor(){this.subscriptions=[]}add(t){return i3(this.subscriptions,t),()=>i4(this.subscriptions,t)}notify(t,e,i){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](t,e,i);else for(let n=0;n<r;n++){let r=this.subscriptions[n];r&&r(t,e,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let i8=t=>!isNaN(parseFloat(t)),i7={current:void 0};class rt{constructor(t,e={}){this.version="11.2.11",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=ev.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=ev.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=i8(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new i9);let i=this.events[t].add(e);return"change"===t?()=>{i(),tO.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return i7.current&&i7.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=ev.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function re(t,e){return new rt(t,e)}function ri(t){return t.getProps()[p]}function rr(t,e,{delay:i=0,transitionOverride:r,type:n}={}){var s;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e,u=t.getValue("willChange");r&&(o=r);let h=[],c=n&&t.animationState&&t.animationState.getState()[n];for(let e in l){let r=t.getValue(e,null!==(s=t.latestValues[e])&&void 0!==s?s:null),n=l[e];if(void 0===n||c&&function({protectedKeys:t,needsAnimating:e},i){let r=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,r}(c,e))continue;let a={delay:i,elapsed:0,...eh(o||{},e)},d=!1;if(window.HandoffAppearAnimations){let i=ri(t);if(i){let t=window.HandoffAppearAnimations(i,e,r,tO.Wi);null!==t&&(a.elapsed=t,d=!0)}}r.start(i5(e,r,n,t.shouldReduceMotion&&O.has(e)?{type:!1}:a,t,d));let p=r.animation;p&&(i6(u)&&(u.add(e),p.then(()=>u.remove(e))),h.push(p))}return a&&Promise.all(h).then(()=>{tO.Wi.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:r={},...n}=ei(t,e)||{};for(let e in n={...n,...i}){let i=tL(n[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,re(i))}}(t,a)})}),h}function rn(t,e,i={}){var r;let n=ei(t,e,"exit"===i.type?null===(r=t.presenceContext)||void 0===r?void 0:r.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let o=n?()=>Promise.all(rr(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:n=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,i=0,r=0,n=1,s){let o=[],a=(t.variantChildren.size-1)*r,l=1===n?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(rs).forEach((t,r)=>{t.notify("AnimationStart",e),o.push(rn(t,e,{...s,delay:i+l(r)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,n+r,o,a,i)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}function rs(t,e){return t.sortNodePosition(e)}let ro=[...T].reverse(),ra=T.length;function rl(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ru(){return{animate:rl(!0),whileInView:rl(),whileHover:rl(),whileTap:rl(),whileDrag:rl(),whileFocus:rl(),exit:rl()}}class rh extends tX{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>rn(t,e,i)));else if("string"==typeof e)r=rn(t,e,i);else{let n="function"==typeof e?ei(t,e,i.custom):e;r=Promise.all(rr(t,n,i))}return r.then(()=>{tO.Wi.postRender(()=>{t.notify("AnimationComplete",e)})})})(t,e,i))),i=ru(),r=!0,n=e=>(i,r)=>{var n;let s=ei(t,r,"exit"===e?null===(n=t.presenceContext)||void 0===n?void 0:n.custom:void 0);if(s){let{transition:t,transitionEnd:e,...r}=s;i={...i,...r,...e}}return i};function s(s){let o=t.getProps(),a=t.getVariantContext(!0)||{},l=[],u=new Set,h={},c=1/0;for(let e=0;e<ra;e++){var d;let p=ro[e],f=i[p],m=void 0!==o[p]?o[p]:a[p],v=w(m),g=p===s?f.isActive:null;!1===g&&(c=e);let y=m===a[p]&&m!==o[p]&&v;if(y&&r&&t.manuallyAnimateOnMount&&(y=!1),f.protectedKeys={...h},!f.isActive&&null===g||!m&&!f.prevProp||b(m)||"boolean"==typeof m)continue;let x=(d=f.prevProp,("string"==typeof m?m!==d:!!Array.isArray(m)&&!ee(m,d))||p===s&&f.isActive&&!y&&v||e>c&&v),T=!1,P=Array.isArray(m)?m:[m],A=P.reduce(n(p),{});!1===g&&(A={});let{prevResolvedValues:S={}}=f,E={...S,...A},C=e=>{x=!0,u.has(e)&&(T=!0,u.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in E){let e=A[t],i=S[t];if(!h.hasOwnProperty(t))(tV(e)&&tV(i)?ee(e,i):e===i)?void 0!==e&&u.has(t)?C(t):f.protectedKeys[t]=!0:null!=e?C(t):u.add(t)}f.prevProp=m,f.prevResolvedValues=A,f.isActive&&(h={...h,...A}),r&&t.blockInitialAnimation&&(x=!1),x&&(!y||T)&&l.push(...P.map(t=>({animation:t,options:{type:p}})))}if(u.size){let e={};u.forEach(i=>{let r=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=null!=r?r:null}),l.push({animation:e})}let p=!!l.length;return r&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(p=!1),r=!1,p?e(l):Promise.resolve()}return{animateChanges:s,setActive:function(e,r){var n;if(i[e].isActive===r)return Promise.resolve();null===(n=t.variantChildren)||void 0===n||n.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,r)}),i[e].isActive=r;let o=s(e);for(let t in i)i[t].protectedKeys={};return o},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=ru(),r=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();b(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}let rc=0;class rd extends tX{constructor(){super(...arguments),this.id=rc++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let r=this.node.animationState.setActive("exit",!t);e&&!t&&r.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}let rp=(t,e)=>Math.abs(t-e);class rf{constructor(t,e,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:n=!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 i=rg(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(rp(t.x,e.x)**2+rp(t.y,e.y)**2)>=3);if(!r&&!n)return;let{point:s}=i,{timestamp:o}=tO.frameData;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;r||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=rm(e,this.transformPagePoint),tO.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:r,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=rg("pointercancel"===t.type?this.lastMoveEventInfo:rm(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),r&&r(t,s)},!tW(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.contextWindow=r||window;let s=rm(tU(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=tO.frameData;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,rg(s,this.history)),this.removeListeners=tz(t_(this.contextWindow,"pointermove",this.handlePointerMove),t_(this.contextWindow,"pointerup",this.handlePointerUp),t_(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,tO.Pn)(this.updatePoint)}}function rm(t,e){return e?{point:e(t.point)}:t}function rv(t,e){return{x:t.x-e.x,y:t.y-e.y}}function rg({point:t},e){return{point:t,delta:rv(t,ry(e)),offset:rv(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,r=null,n=ry(t);for(;i>=0&&(r=t[i],!(n.timestamp-r.timestamp>er(.1)));)i--;if(!r)return{x:0,y:0};let s=en(n.timestamp-r.timestamp);if(0===s)return{x:0,y:0};let o={x:(n.x-r.x)/s,y:(n.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function ry(t){return t[t.length-1]}function rx(t){return t.max-t.min}function rw(t,e=0,i=.01){return Math.abs(t-e)<=i}function rb(t,e,i,r=.5){t.origin=r,t.originPoint=iC(e.min,e.max,t.origin),t.scale=rx(i)/rx(e),(rw(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=iC(i.min,i.max,t.origin)-t.originPoint,(rw(t.translate)||isNaN(t.translate))&&(t.translate=0)}function rT(t,e,i,r){rb(t.x,e.x,i.x,r?r.originX:void 0),rb(t.y,e.y,i.y,r?r.originY:void 0)}function rP(t,e,i){t.min=i.min+e.min,t.max=t.min+rx(e)}function rA(t,e,i){t.min=e.min-i.min,t.max=t.min+rx(e)}function rS(t,e,i){rA(t.x,e.x,i.x),rA(t.y,e.y,i.y)}function rE(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function rC(t,e){let i=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,r]=[r,i]),{min:i,max:r}}function rR(t,e,i){return{min:rM(t,e),max:rM(t,i)}}function rM(t,e){return"number"==typeof t?t:t[e]||0}let rk=()=>({translate:0,scale:1,origin:0,originPoint:0}),rV=()=>({x:rk(),y:rk()}),rD=()=>({min:0,max:0}),rL=()=>({x:rD(),y:rD()});function rj(t){return[t("x"),t("y")]}function rF({top:t,left:e,right:i,bottom:r}){return{x:{min:e,max:i},y:{min:t,max:r}}}function rO(t){return void 0===t||1===t}function rN({scale:t,scaleX:e,scaleY:i}){return!rO(t)||!rO(e)||!rO(i)}function rB(t){return rN(t)||rI(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function rI(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function rW(t,e,i,r,n){return void 0!==n&&(t=r+n*(t-r)),r+i*(t-r)+e}function rU(t,e=0,i=1,r,n){t.min=rW(t.min,e,i,r,n),t.max=rW(t.max,e,i,r,n)}function r$(t,{x:e,y:i}){rU(t.x,e.translate,e.scale,e.originPoint),rU(t.y,i.translate,i.scale,i.originPoint)}function r_(t){return Number.isInteger(t)?t:t>1.0000000000001||t<.999999999999?t:1}function rH(t,e){t.min=t.min+e,t.max=t.max+e}function rz(t,e,[i,r,n]){let s=void 0!==e[n]?e[n]:.5,o=iC(t.min,t.max,s);rU(t,e[i],e[r],o,e.scale)}let rK=["x","scaleX","originX"],rY=["y","scaleY","originY"];function rG(t,e){rz(t.x,e,rK),rz(t.y,e,rY)}function rZ(t,e){return rF(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}let rq=({current:t})=>t?t.ownerDocument.defaultView:null,rX=new WeakMap;class rQ{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=rL(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new rf(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(tU(t,"page").point)},onStart:(t,e)=>{let{drag:i,dragPropagation:r,onDragStart:n}=this.getProps();if(i&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=tZ(i),!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),rj(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tn.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[t];if(r){let t=rx(r);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),n&&tO.Wi.postRender(()=>n(t,e));let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:r,onDirectionLock:n,onDrag:s}=this.getProps();if(!i&&!this.openGlobalLock)return;let{offset:o}=e;if(r&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>rj(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:rq(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:r}=e;this.startAnimation(r);let{onDragEnd:n}=this.getProps();n&&tO.Wi.postRender(()=>n(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:r}=this.getProps();if(!i||!rJ(t,r,this.currentDirection))return;let n=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},r){return void 0!==e&&t<e?t=r?iC(e,t,r.min):Math.max(t,e):void 0!==i&&t>i&&(t=r?iC(i,t,r.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),n.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=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,n=this.constraints;e&&v(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(t,{top:e,left:i,bottom:r,right:n}){return{x:rE(t.x,i,n),y:rE(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:rR(t,"left","right"),y:rR(t,"top","bottom")}}(i),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&rj(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(r.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!v(e))return!1;let r=e.current;(0,ey.k)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let s=function(t,e,i){let r=rZ(t,i),{scroll:n}=e;return n&&(rH(r.x,n.offset.x),rH(r.y,n.offset.y)),r}(r,n.root,this.visualElement.getTransformPagePoint()),o={x:rC((t=n.layout.layoutBox).x,s.x),y:rC(t.y,s.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=rF(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:r,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(rj(o=>{if(!rJ(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return i.start(i5(t,i,0,e,this.visualElement))}stopAnimation(){rj(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rj(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()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){rj(e=>{let{drag:i}=this.getProps();if(!rJ(e,i,this.currentDirection))return;let{projection:r}=this.visualElement,n=this.getAxisMotionValue(e);if(r&&r.layout){let{min:i,max:s}=r.layout.layoutBox[e];n.set(t[e]-iC(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!v(e)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};rj(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();r[t]=function(t,e){let i=.5,r=rx(t),n=rx(e);return n>r?i=iE(e.min,e.max-r,t.min):r>n&&(i=iE(t.min,t.max-n,e.min)),Y(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),rj(e=>{if(!rJ(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:s}=this.constraints[e];i.set(iC(n,s,r[e]))})}addListeners(){if(!this.visualElement.current)return;rX.set(this.visualElement,this);let t=t_(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();v(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),tO.Wi.read(e);let n=tI(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(rj(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{n(),t(),r(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:r,dragConstraints:n,dragElastic:s,dragMomentum:o}}}function rJ(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class r0 extends tX{constructor(t){super(t),this.removeGroupControls=t2.Z,this.removeListeners=t2.Z,this.controls=new rQ(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||t2.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let r1=t=>(e,i)=>{t&&tO.Wi.postRender(()=>t(e,i))};class r2 extends tX{constructor(){super(...arguments),this.removePointerDownListener=t2.Z}onPointerDown(t){this.session=new rf(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rq(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:r1(t),onStart:r1(e),onMove:i,onEnd:(t,e)=>{delete this.session,r&&tO.Wi.postRender(()=>r(t,e))}}}mount(){this.removePointerDownListener=t_(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 r5={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function r6(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let r3={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!ts.test(t))return t;t=parseFloat(t)}let i=r6(t,e.target.x),r=r6(t,e.target.y);return`${i}% ${r}%`}};class r4 extends o.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:r}=this.props,{projection:n}=t;Object.assign(j,r8),n&&(e.group&&e.group.add(n),i&&i.register&&r&&i.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),r5.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:r,isPresent:n}=this.props,s=i.projection;return s&&(s.isPresent=n,r||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent===n||(n?s.promote():s.relegate()||tO.Wi.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),f.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function r9(t){let[e,i]=function(){let t=(0,o.useContext)(u.O);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:r}=t,n=(0,o.useId)();return(0,o.useEffect)(()=>r(n),[]),!e&&i?[!1,()=>i&&i(n)]:[!0]}(),r=(0,o.useContext)(k.p);return(0,s.jsx)(r4,{...t,layoutGroup:r,switchLayoutGroup:(0,o.useContext)(g),isPresent:e,safeToRemove:i})}let r8={borderRadius:{...r3,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:r3,borderTopRightRadius:r3,borderBottomLeftRadius:r3,borderBottomRightRadius:r3,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let r=eQ.parse(t);if(r.length>5)return t;let n=eQ.createTransformer(t),s="number"!=typeof r[0]?1:0,o=i.x.scale*e.x,a=i.y.scale*e.y;r[0+s]/=o,r[1+s]/=a;let l=iC(o,a,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),n(r)}}},r7=["TopLeft","TopRight","BottomLeft","BottomRight"],nt=r7.length,ne=t=>"string"==typeof t?parseFloat(t):t,ni=t=>"number"==typeof t||ts.test(t);function nr(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nn=no(0,.5,ix),ns=no(.5,.95,t2.Z);function no(t,e,i){return r=>r<t?0:r>e?1:i(iE(t,e,r))}function na(t,e){t.min=e.min,t.max=e.max}function nl(t,e){na(t.x,e.x),na(t.y,e.y)}function nu(t,e,i,r,n){return t-=e,t=r+1/i*(t-r),void 0!==n&&(t=r+1/n*(t-r)),t}function nh(t,e,[i,r,n],s,o){!function(t,e=0,i=1,r=.5,n,s=t,o=t){if(tn.test(e)&&(e=parseFloat(e),e=iC(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=iC(s.min,s.max,r);t===s&&(a-=e),t.min=nu(t.min,e,i,a,n),t.max=nu(t.max,e,i,a,n)}(t,e[i],e[r],e[n],e.scale,s,o)}let nc=["x","scaleX","originX"],nd=["y","scaleY","originY"];function np(t,e,i,r){nh(t.x,e,nc,i?i.x:void 0,r?r.x:void 0),nh(t.y,e,nd,i?i.y:void 0,r?r.y:void 0)}function nf(t){return 0===t.translate&&1===t.scale}function nm(t){return nf(t.x)&&nf(t.y)}function nv(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 ng(t){return rx(t.x)/rx(t.y)}class ny{constructor(){this.members=[]}add(t){i3(this.members,t),t.scheduleRender()}remove(t){if(i4(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 i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:r}=t.options;!1===r&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function nx(t,e,i){let r="",n=t.x.translate/e.x,s=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((n||s||o)&&(r=`translate3d(${n}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:n,rotateY:s,skewX:o,skewY:a}=i;t&&(r=`perspective(${t}px) ${r}`),e&&(r+=`rotate(${e}deg) `),n&&(r+=`rotateX(${n}deg) `),s&&(r+=`rotateY(${s}deg) `),o&&(r+=`skewX(${o}deg) `),a&&(r+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(r+=`scale(${a}, ${l})`),r||"none"}let nw=(t,e)=>t.depth-e.depth;class nb{constructor(){this.children=[],this.isDirty=!1}add(t){i3(this.children,t),this.isDirty=!0}remove(t){i4(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nw),this.isDirty=!1,this.children.forEach(t)}}let nT=["","X","Y","Z"],nP={visibility:"hidden"},nA=0,nS={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function nE(t,e,i,r){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),r&&(r[t]=0))}function nC({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(t={},i=null==e?void 0:e()){this.id=nA++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,nS.totalNodes=nS.resolvedTargetDeltas=nS.recalculatedProjection=0,this.nodes.forEach(nk),this.nodes.forEach(nN),this.nodes.forEach(nB),this.nodes.forEach(nV),window.MotionDebug&&window.MotionDebug.record(nS)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new nb)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new i9),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:r,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(n||r)&&(this.isLayoutDirty=!0),t){let i;let r=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=ev.now(),r=({timestamp:e})=>{let n=e-i;n>=250&&((0,tO.Pn)(r),t(n-250))};return tO.Wi.read(r,!0),()=>(0,tO.Pn)(r)}(r,0),r5.hasAnimatedSinceResize&&(r5.hasAnimatedSinceResize=!1,this.nodes.forEach(nO))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&s&&(r||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||s.getDefaultTransition()||nH,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!nv(this.targetLayout,r)||i,u=!e&&i;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={...eh(n,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||nO(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,tO.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(nI),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.HandoffCancelAllAnimations&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return!1;let{visualElement:i}=e.options;return!!i&&(!!ri(i)||!!e.parent&&!e.parent.hasCheckedOptimisedAppear&&t(e.parent))}(this)&&window.HandoffCancelAllAnimations(),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(nL);return}this.isUpdating||this.nodes.forEach(nj),this.isUpdating=!1,this.nodes.forEach(nF),this.nodes.forEach(nR),this.nodes.forEach(nM),this.clearAllSnapshots();let t=ev.now();tO.frameData.delta=Y(0,1e3/60,t-tO.frameData.timestamp),tO.frameData.timestamp=t,tO.frameData.isProcessing=!0,tO.S6.update.process(tO.frameData),tO.S6.preRender.process(tO.frameData),tO.S6.render.process(tO.frameData),tO.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,f.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nD),this.sharedNodes.forEach(nW)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tO.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tO.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<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=rL(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:r(this.instance),offset:i(this.instance)})}resetTransform(){if(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!nm(this.projectionDelta),i=this.getTransformTemplate(),r=i?i(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;t&&(e||rB(this.latestValues)||s)&&(n(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),r=this.removeElementScroll(i);return t&&(r=this.removeTransform(r)),nY((e=r).x),nY(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return rL();let e=t.measureViewportBox(),{scroll:i}=this.root;return i&&(rH(e.x,i.offset.x),rH(e.y,i.offset.y)),e}removeElementScroll(t){let e=rL();nl(e,t);for(let i=0;i<this.path.length;i++){let r=this.path[i],{scroll:n,options:s}=r;if(r!==this.root&&n&&s.layoutScroll){if(n.isRoot){nl(e,t);let{scroll:i}=this.root;i&&(rH(e.x,-i.offset.x),rH(e.y,-i.offset.y))}rH(e.x,n.offset.x),rH(e.y,n.offset.y)}}return e}applyTransform(t,e=!1){let i=rL();nl(i,t);for(let t=0;t<this.path.length;t++){let r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&rG(i,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),rB(r.latestValues)&&rG(i,r.latestValues)}return rB(this.latestValues)&&rG(i,this.latestValues),i}removeTransform(t){let e=rL();nl(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!rB(i.latestValues))continue;rN(i.latestValues)&&i.updateSnapshot();let r=rL();nl(r,i.measurePageBox()),np(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,r)}return rB(this.latestValues)&&np(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tO.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,r,n;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);let o=!!this.resumingFrom||this!==s;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=tO.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rL(),this.relativeTargetOrigin=rL(),rS(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),nl(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=rL(),this.targetWithTransforms=rL()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,r=this.relativeTarget,n=this.relativeParent.target,rP(i.x,r.x,n.x),rP(i.y,r.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nl(this.target,this.layout.layoutBox),r$(this.target,this.targetDelta)):nl(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rL(),this.relativeTargetOrigin=rL(),rS(this.relativeTargetOrigin,this.target,t.target),nl(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}nS.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||rN(this.parent.latestValues)||rI(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(r=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===tO.frameData.timestamp&&(r=!1),r)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;nl(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,r=!1){let n,s;let o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(n=i[a]).projectionDelta;let o=n.instance;(!o||!o.style||"contents"!==o.style.display)&&(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&rG(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,r$(t,s)),r&&rB(n.latestValues)&&rG(t,n.latestValues))}e.x=r_(e.x),e.y=r_(e.y)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=rL());let{target:l}=e;if(!l){this.projectionTransform&&(this.projectionDelta=rV(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=rV(),this.projectionDeltaWithTransform=rV());let u=this.projectionTransform;rT(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=nx(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==o||this.treeScale.y!==a)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),nS.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){let i;let r=this.snapshot,n=r?r.latestValues:{},s={...this.latestValues},o=rV();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=rL(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(n_));this.animationProgress=0,this.mixTargetDelta=e=>{let r=e/1e3;if(nU(o.x,t.x,r),nU(o.y,t.y,r),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,f;rS(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,n$(p.x,f.x,a.x,r),n$(p.y,f.y,a.y,r),i&&(u=this.relativeTarget,d=i,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),i||(i=rL()),nl(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,r,n,s){n?(t.opacity=iC(0,void 0!==i.opacity?i.opacity:1,nn(r)),t.opacityExit=iC(void 0!==e.opacity?e.opacity:1,0,ns(r))):s&&(t.opacity=iC(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,r));for(let n=0;n<nt;n++){let s=`border${r7[n]}Radius`,o=nr(e,s),a=nr(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||ni(o)===ni(a)?(t[s]=Math.max(iC(ne(o),ne(a),r),0),(tn.test(a)||tn.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=iC(e.rotate||0,i.rotate||0,r))}(s,n,this.latestValues,r,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,tO.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tO.Wi.update(()=>{r5.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,i){let r=B(0)?0:re(0);return r.start(i5("",r,1e3,i)),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:i,layout:r,latestValues:n}=t;if(e&&i&&r){if(this!==t&&this.layout&&r&&nG(this.options.animationType,this.layout.layoutBox,r.layoutBox)){i=this.target||rL();let e=rx(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let r=rx(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+r}nl(e,i),rG(e,n),rT(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new ny),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?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:i}={}){let r=this.getStack();r&&r.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let r={};i.z&&nE("z",t,r,this.animationValues);for(let e=0;e<nT.length;e++)nE(`rotate${nT[e]}`,t,r,this.animationValues),nE(`skew${nT[e]}`,t,r,this.animationValues);for(let e in t.render(),r)t.setStaticValue(e,r[e]),this.animationValues&&(this.animationValues[e]=r[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return nP;let r={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=tj(null==t?void 0:t.pointerEvents)||"",r.transform=n?n(this.latestValues,""):"none",r;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=tj(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!rB(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1),e}let o=s.animationValues||s.latestValues;this.applyTransformsToTarget(),r.transform=nx(this.projectionDeltaWithTransform,this.treeScale,o),n&&(r.transform=n(o,r.transform));let{x:a,y:l}=this.projectionDelta;for(let t in r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?r.opacity=s===this?null!==(i=null!==(e=o.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:r.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,j){if(void 0===o[t])continue;let{correct:e,applyTo:i}=j[t],n="none"===r.transform?o[t]:e(o[t],s);if(i){let t=i.length;for(let e=0;e<t;e++)r[i[e]]=n}else r[t]=n}return this.options.layoutId&&(r.pointerEvents=s===this?tj(null==t?void 0:t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(nL),this.root.sharedNodes.clear()}}}function nR(t){t.updateLayout()}function nM(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:r}=t.layout,{animationType:n}=t.options,s=i.source!==t.layout.source;"size"===n?rj(t=>{let r=s?i.measuredBox[t]:i.layoutBox[t],n=rx(r);r.min=e[t].min,r.max=r.min+n}):nG(n,i.layoutBox,e)&&rj(r=>{let n=s?i.measuredBox[r]:i.layoutBox[r],o=rx(e[r]);n.max=n.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+o)});let o=rV();rT(o,e,i.layoutBox);let a=rV();s?rT(a,t.applyTransform(r,!0),i.measuredBox):rT(a,e,i.layoutBox);let l=!nm(o),u=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:n,layout:s}=r;if(n&&s){let o=rL();rS(o,i.layoutBox,n.layoutBox);let a=rL();rS(a,e,s.layoutBox),nv(o,a)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function nk(t){nS.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 nV(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function nD(t){t.clearSnapshot()}function nL(t){t.clearMeasurements()}function nj(t){t.isLayoutDirty=!1}function nF(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function nO(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function nN(t){t.resolveTargetDelta()}function nB(t){t.calcProjection()}function nI(t){t.resetSkewAndRotation()}function nW(t){t.removeLeadSnapshot()}function nU(t,e,i){t.translate=iC(e.translate,0,i),t.scale=iC(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function n$(t,e,i,r){t.min=iC(e.min,i.min,r),t.max=iC(e.max,i.max,r)}function n_(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let nH={duration:.45,ease:[.4,0,.1,1]},nz=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),nK=nz("applewebkit/")&&!nz("chrome/")?Math.round:t2.Z;function nY(t){t.min=nK(t.min),t.max=nK(t.max)}function nG(t,e,i){return"position"===t||"preserve-aspect"===t&&!rw(ng(e),ng(i),.2)}let nZ=nC({attachResizeListener:(t,e)=>tI(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),nq={current:void 0},nX=nC({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!nq.current){let t=new nZ({});t.mount(window),t.setOptions({layoutScroll:!0}),nq.current=t}return nq.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),nQ={current:null},nJ={current:!1},n0=new WeakMap,n1=[...eM,eH,eQ],n2=t=>n1.find(eR(t)),n5=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],n6=P.length;class n3{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:n,visualState:s},o={}){this.resolveKeyframes=(t,e,i,r)=>new this.KeyframeResolver(t,e,i,r,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=eO,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=()=>tO.Wi.render(this.render,!1,!0);let{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=!!n,this.isControllingVariants=A(e),this.isVariantNode=S(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:u,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in h){let e=h[t];void 0!==a[t]&&B(e)&&(e.set(a[t],!1),i6(u)&&u.add(t))}}mount(t){this.current=t,n0.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)),nJ.current||function(){if(nJ.current=!0,M.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>nQ.current=t.matches;t.addListener(e),e()}else nQ.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||nQ.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in n0.delete(this.current),this.projection&&this.projection.unmount(),(0,tO.Pn)(this.notifyUpdate),(0,tO.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){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i=O.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tO.Wi.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),n=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{r(),n(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in R){let e=R[t];if(!e)continue;let{isEnabled:i,Feature:r}=e;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rL()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<n5.length;e++){let i=n5[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let r=t["on"+i];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=function(t,e,i){let{willChange:r}=e;for(let n in e){let s=e[n],o=i[n];if(B(s))t.addValue(n,s),i6(r)&&r.add(n);else if(B(o))t.addValue(n,re(s,{owner:t})),i6(r)&&r.remove(n);else if(o!==s){if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,re(void 0!==e?e:s,{owner:t}))}}}for(let r in i)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}let e={};for(let t=0;t<n6;t++){let i=P[t],r=this.props[i];(w(r)||!1===r)&&(e[i]=r)}return e}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=re(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let r=void 0===this.latestValues[t]&&this.current?null!==(i=this.getBaseTargetFromProps(this.props,t))&&void 0!==i?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=r&&("string"==typeof r&&(ex(r)||eg(r))?r=parseFloat(r):!n2(r)&&eQ.test(e)&&(r=e3(t,e)),this.setBaseTarget(t,B(r)?r.get():r)),B(r)?r.get():r}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i;let{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let n=tM(this.props,r,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);n&&(i=n[t])}if(r&&void 0!==i)return i;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||B(n)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new i9),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class n4 extends n3{constructor(){super(...arguments),this.KeyframeResolver=e9}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}}class n9 extends n4{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,e){if(O.has(e)){let t=e6(e);return t&&t.default||0}{let i=window.getComputedStyle(t),r=($(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return rZ(t,e)}build(t,e,i,r){tc(t,e,i,r.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return tE(t,e,i)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;B(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(t,e,i,r){tP(t,e,i,r)}}class n8 extends n4{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(O.has(e)){let t=e6(e);return t&&t.default||0}return e=tA.has(e)?e:d(e),t.getAttribute(e)}measureInstanceViewportBox(){return rL()}scrapeMotionValuesFromProps(t,e,i){return tC(t,e,i)}build(t,e,i,r){tw(t,e,i,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,i,r){tS(t,e,i,r)}mount(t){this.isSVGTag=tT(t.tagName),super.mount(t)}}let n7=(t,e)=>L(t)?new n8(e,{enableHardwareAcceleration:!1}):new n9(e,{allowProjection:t!==o.Fragment,enableHardwareAcceleration:!0}),st={animation:{Feature:rh},exit:{Feature:rd},inView:{Feature:et},tap:{Feature:t6},focus:{Feature:t0},hover:{Feature:tJ},pan:{Feature:r2},drag:{Feature:r0,ProjectionNode:nX,MeasureLayout:r9},layout:{ProjectionNode:nX,MeasureLayout:r9}},se=function(t){function e(e,i={}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:r,Component:n}){t&&function(t){for(let e in t)R[e]={...R[e],...t[e]}}(t);let d=(0,o.forwardRef)(function(t,d){var m;let b;let T={...(0,o.useContext)(a._),...t,layoutId:function({layoutId:t}){let e=(0,o.useContext)(k.p).id;return e&&void 0!==t?e+"-"+t:t}(t)},{isStatic:P}=T,S=function(t){let{initial:e,animate:i}=function(t,e){if(A(t)){let{initial:e,animate:i}=t;return{initial:!1===e||w(e)?e:void 0,animate:w(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,o.useContext)(l));return(0,o.useMemo)(()=>({initial:e,animate:i}),[E(e),E(i)])}(t),C=r(t,P);if(!P&&M.j){(0,o.useContext)(c).strict;let t=function(t){let{drag:e,layout:i}=R;if(!e&&!i)return{};let r={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(T);b=t.MeasureLayout,S.visualElement=function(t,e,i,r,n){let{visualElement:s}=(0,o.useContext)(l),d=(0,o.useContext)(c),m=(0,o.useContext)(u.O),w=(0,o.useContext)(a._).reducedMotion,b=(0,o.useRef)();r=r||d.renderer,!b.current&&r&&(b.current=r(t,{visualState:e,parent:s,props:i,presenceContext:m,blockInitialAnimation:!!m&&!1===m.initial,reducedMotionConfig:w}));let T=b.current,P=(0,o.useContext)(g);T&&!T.projection&&n&&("html"===T.type||"svg"===T.type)&&function(t,e,i,r){let{layoutId:n,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:n,layout:s,alwaysMeasureLayout:!!o||a&&v(a),visualElement:t,scheduleRender:()=>t.scheduleRender(),animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}(b.current,i,n,P),(0,o.useInsertionEffect)(()=>{T&&T.update(i,m)});let A=(0,o.useRef)(!!(i[p]&&!window.HandoffComplete));return(0,h.L)(()=>{T&&(T.updateFeatures(),f.render(T.render),A.current&&T.animationState&&T.animationState.animateChanges())}),(0,o.useEffect)(()=>{T&&(!A.current&&T.animationState&&T.animationState.animateChanges(),A.current&&(A.current=!1,y||(y=!0,queueMicrotask(x))))}),T}(n,C,T,e,t.ProjectionNode)}return(0,s.jsxs)(l.Provider,{value:S,children:[b&&S.visualElement?(0,s.jsx)(b,{visualElement:S.visualElement,...T}):null,i(n,t,(m=S.visualElement,(0,o.useCallback)(t=>{t&&C.mount&&C.mount(t),m&&(t?m.mount(t):m.unmount()),d&&("function"==typeof d?d(t):v(d)&&(d.current=t))},[m])),C,P,S.visualElement)]})});return d[V]=n,d}(t(e,i))}if("undefined"==typeof Proxy)return e;let i=new Map;return new Proxy(e,{get:(t,r)=>(i.has(r)||i.set(r,e(r)),i.get(r))})}((t,e)=>(function(t,{forwardMotionProps:e=!1},i,r){return{...L(t)?tN:tB,preloadedFeatures:i,useRender:function(t=!1){return(e,i,r,{latestValues:n},s)=>{let a=(L(e)?function(t,e,i,r){let n=(0,o.useMemo)(()=>{let i=tb();return tw(i,e,{enableHardwareAcceleration:!1},tT(r),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};tp(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e,i){let r={},n=function(t,e,i){let r=t.style||{},n={};return tp(n,r,t),Object.assign(n,function({transformTemplate:t},e,i){return(0,o.useMemo)(()=>{let r=td();return tc(r,e,{enableHardwareAcceleration:!i},t),Object.assign({},r.vars,r.style)},[e])}(t,e,i)),n}(t,e,i);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=n,r})(i,n,s,e),l=function(t,e,i){let r={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(tv(n)||!0===i&&tm(n)||!e&&!tm(n)||t.draggable&&n.startsWith("onDrag"))&&(r[n]=t[n]);return r}(i,"string"==typeof e,t),u=e!==o.Fragment?{...l,...a,ref:r}:{},{children:h}=i,c=(0,o.useMemo)(()=>B(h)?h.get():h,[h]);return(0,o.createElement)(e,{...u,children:c})}}(e),createVisualElement:r,Component:t}})(t,e,st,n7))},8496:function(t,e,i){"use strict";i.d(e,{c:function(){return r}});let r={skipAnimations:!1,useManualTiming:!1}},6937:function(t,e,i){"use strict";i.d(e,{K:function(){return n},k:function(){return s}});var r=i(6508);let n=r.Z,s=r.Z},2441:function(t,e,i){"use strict";i.d(e,{j:function(){return r}});let r="undefined"!=typeof document},6508:function(t,e,i){"use strict";i.d(e,{Z:function(){return r}});let r=t=>t},465:function(t,e,i){"use strict";i.d(e,{h:function(){return n}});var r=i(7212);function n(t){let e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}},6972:function(t,e,i){"use strict";i.d(e,{L:function(){return n}});var r=i(7212);let n=i(2441).j?r.useLayoutEffect:r.useEffect}}]);