1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6535],{12219:function(){},13994:function(t,e,i){"use strict";i.d(e,{zf:function(){return a}});var n,r=i(31501),s=i(64090),o=(0,s.createContext)({get client(){return n},bootstrap:void 0});function a(t){var e,i,r=t.children,a=t.client,l=t.apiKey,u=t.options,h=(0,s.useRef)(null),d=(0,s.useMemo)(function(){if(a)return l&&console.warn("[PostHog.js] You have provided both `client` and `apiKey` to `PostHogProvider`. `apiKey` will be ignored in favour of `client`."),u&&console.warn("[PostHog.js] You have provided both `client` and `options` to `PostHogProvider`. `options` will be ignored in favour of `client`."),a;var t=n;return l||console.warn("[PostHog.js] No `apiKey` or `client` were provided to `PostHogProvider`. Using default global `window.posthog` instance. You must initialize it manually. This is not recommended behavior."),t},[a,l,JSON.stringify(u)]);return(0,s.useEffect)(function(){if(!a&&l){var t=n,e=h.current;e?(l!==e.apiKey&&console.warn("[PostHog.js] You have provided a different `apiKey` to `PostHogProvider` than the one that was already initialized. This is not supported by our provider and we'll keep using the previous key. If you need to toggle between API Keys you need to control the `client` yourself and pass it in as a prop rather than an `apiKey` prop."),u&&!function t(e,i,n){if(void 0===n&&(n=new WeakMap),e===i)return!0;if("object"!=typeof e||null===e||"object"!=typeof i||null===i)return!1;if(n.has(e)&&n.get(e)===i)return!0;n.set(e,i);var r=Object.keys(e),s=Object.keys(i);if(r.length!==s.length)return!1;for(var o=0;o<r.length;o++){var a=r[o];if(!s.includes(a)||!t(e[a],i[a],n))return!1}return!0}(u,e.options)&&t.set_config(u)):(t.__loaded&&console.warn("[PostHog.js] `posthog` was already loaded elsewhere. This may cause issues."),t.init(l,u)),h.current={apiKey:l,options:null!=u?u:{}}}},[a,l,JSON.stringify(u)]),s.createElement(o.Provider,{value:{client:d,bootstrap:null!==(e=null==u?void 0:u.bootstrap)&&void 0!==e?e:null===(i=null==a?void 0:a.config)||void 0===i?void 0:i.bootstrap}},r)}var l=function(t){return"function"==typeof t},u=function(t,e){return(u=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)};"function"==typeof SuppressedError&&SuppressedError;var h={componentStack:null,exceptionEvent:null,error:null};!function(t){function e(e){var i=t.call(this,e)||this;return i.state=h,i}(function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)})(e,t),e.prototype.componentDidCatch=function(t,e){var i,n=this.props.additionalProperties;l(n)?i=n(t):"object"==typeof n&&(i=n);var r=this.context.client.captureException(t,i),s=e.componentStack;this.setState({error:t,componentStack:null!=s?s:null,exceptionEvent:r})},e.prototype.render=function(){var t=this.props,e=t.children,i=t.fallback,n=this.state;if(null==n.componentStack)return l(e)?e():e;var r=l(i)?s.createElement(i,{error:n.error,componentStack:n.componentStack,exceptionEvent:n.exceptionEvent}):i;return s.isValidElement(r)?r:(console.warn("[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element."),s.createElement(s.Fragment,null))},e.contextType=o}(s.Component),n=r.ZP},89840:function(t,e,i){var n=i(49079);i(12219);var r=i(64090),s=r&&"object"==typeof r&&"default"in r?r:{default:r};function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var a=void 0!==n&&n.env&&!0,l=function(t){return"[object String]"===Object.prototype.toString.call(t)},u=function(){function t(t){var e=void 0===t?{}:t,i=e.name,n=void 0===i?"stylesheet":i,r=e.optimizeForSpeed,s=void 0===r?a:r;h(l(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",h("boolean"==typeof s,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=s,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var o=document.querySelector('meta[property="csp-nonce"]');this._nonce=o?o.getAttribute("content"):null}var e,i=t.prototype;return i.setOptimizeForSpeed=function(t){h("boolean"==typeof t,"`setOptimizeForSpeed` accepts a boolean"),h(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=t,this.inject()},i.isOptimizeForSpeed=function(){return this._optimizeForSpeed},i.inject=function(){var t=this;if(h(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.get
1Sheet(),this._optimizeForSpeed||(a||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(e,i){return"number"==typeof i?t._serverSheet.cssRules[i]={cssText:e}:t._serverSheet.cssRules.push({cssText:e}),i},deleteRule:function(e){t._serverSheet.cssRules[e]=null}}},i.getSheetForTag=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]},i.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},i.insertRule=function(t,e){if(h(l(t),"`insertRule` accepts only strings"),this._optimizeForSpeed){var i=this.getSheet();"number"!=typeof e&&(e=i.cssRules.length);try{i.insertRule(t,e)}catch(e){return a||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var n=this._tags[e];this._tags.push(this.makeStyleTag(this._name,t,n))}return this._rulesCount++},i.replaceRule=function(t,e){if(this._optimizeForSpeed){var i=this.getSheet();if(e.trim()||(e=this._deletedRulePlaceholder),!i.cssRules[t])return t;i.deleteRule(t);try{i.insertRule(e,t)}catch(n){a||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),i.insertRule(this._deletedRulePlaceholder,t)}}else{var n=this._tags[t];h(n,"old rule at index `"+t+"` not found"),n.textContent=e}return t},i.deleteRule=function(t){if(this._optimizeForSpeed)this.replaceRule(t,"");else{var e=this._tags[t];h(e,"rule at index `"+t+"` not found"),e.parentNode.removeChild(e),this._tags[t]=null}},i.flush=function(){this._injected=!1,this._rulesCount=0,this._tags.forEac
1h(function(t){return t&&t.parentNode.removeChild(t)}),this._tags=[]},i.cssRules=function(){var t=this;return this._tags.reduce(function(e,i){return i?e=e.concat(Array.prototype.map.call(t.getSheetForTag(i).cssRules,function(e){return e.cssText===t._deletedRulePlaceholder?null:e})):e.push(null),e},[])},i.makeStyleTag=function(t,e,i){e&&h(l(e),"makeStyleTag accepts only strings as second parameter");var n=document.createElement("style");this._nonce&&n.setAttribute("nonce",this._nonce),n.type="text/css",n.setAttribute("data-"+t,""),e&&n.appendChild(document.createTextNode(e));var r=document.head||document.getElementsByTagName("head")[0];return i?r.insertBefore(n,i):r.appendChild(n),n},o(t.prototype,[{key:"length",get:function(){return this._rulesCount}}]),e&&o(t,e),t}();function h(t,e){if(!t)throw Error("StyleSheet: "+e+".")}var d=function(t){for(var e=5381,i=t.length;i;)e=33*e^t.charCodeAt(--i);return e>>>0},c={};function p(t,e){if(!e)return"jsx-"+t;var i=String(e),n=t+i;return c[n]||(c[n]="jsx-"+d(t+"-"+i)),c[n]}function m(t,e){var i=t+e;return c[i]||(c[i]=e.replace(/__jsx-style-dynamic-selector/g,t)),c[i]}var f=function(){function t(t){var e=void 0===t?{}:t,i=e.styleSheet,n=void 0===i?null:i,r=e.optimizeForSpeed,s=void 0!==r&&r;this._sheet=n||new u({name:"styled-jsx",optimizeForSpeed:s}),this._sheet.inject(),n&&"boolean"==typeof s&&(this._sheet.setOptimizeForSpeed(s),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var e=t.prototype;return e.add=function(t){var e=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(t.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(t,e){return t[e]=0,t},{}));var i=this.getIdAndRules(t),n=i.styleId,r=i.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var s=r.map(function(t){return e._sheet.insertRule(t)}).filter(function(t){return -1!==t});this._indices[n]=s,this._instancesCounts[n]=1},e.remove=function(t){var e=this,i=this.getIdAndRules(t).styleId;if(function(t,e){if(!t)throw Error("StyleSheetRegistry: "+e+".")}(i in this._instancesCounts,"styleId: `"+i+"` not found"),this._instancesCounts[i]-=1,this._instancesCounts[i]<1){var n=this._fromServer&&this._fromServer[i];n?(n.parentNode.removeChild(n),delete this._fromServer[i]):(this._indices[i].forEac
1h(function(t){return e._sheet.deleteRule(t)}),delete this._indices[i]),delete this._instancesCounts[i]}},e.update=function(t,e){this.add(e),this.remove(t)},e.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},e.cssRules=function(){var t=this,e=this._fromServer?Object.keys(this._fromServer).map(function(e){return[e,t._fromServer[e]]}):[],i=this._sheet.cssRules();return e.concat(Object.keys(this._indices).map(function(e){return[e,t._indices[e].map(function(t){return i[t].cssText}).join(t._optimizeForSpeed?"":"\n")]}).filter(function(t){return!!t[1]}))},e.styles=function(t){var e,i;return e=this.cssRules(),void 0===(i=t)&&(i={}),e.map(function(t){var e=t[0],n=t[1];return s.default.createElement("style",{id:"__"+e,key:"__"+e,nonce:i.nonce?i.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},e.getIdAndRules=function(t){var e=t.children,i=t.dynamic,n=t.id;if(i){var r=p(n,i);return{styleId:r,rules:Array.isArray(e)?e.map(function(t){return m(r,t)}):[m(r,e)]}}return{styleId:p(n),rules:Array.isArray(e)?e:[e]}},e.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(t,e){return t[e.id.slice(2)]=e,t},{})},t}(),v=r.createContext(null);v.displayName="StyleSheetContext";var g=s.default.useInsertionEffect||s.default.useLayoutEffect,y=new f;function x(t){var e=y||r.useContext(v);return e&&g(function(){return e.add(t),function(){e.remove(t)}},[t.id,String(t.dynamic)]),null}x.dynamic=function(t){return t.map(function(t){return p(t[0],t[1])}).join(" ")},e.style=x},69102:function(t,e,i){"use strict";t.exports=i(89840).style},41067:function(t,e,i){"use strict";i.d(e,{b:function(){return s}});var n=i(64090);function r(t,e){return Math.floor(Math.random()*(e-t+1))+t}var s=function(t){var e=t.playOnMount,i=void 0===e||e,s=t.text,o=void 0===s?"":s,a=t.speed,l=void 0===a?1:a,u=t.seed,h=void 0===u?1:u,d=t.step,c=void 0===d?1:d,p=t.tick,m=void 0===p?1:p,f=t.scramble,v=void 0===f?1:f,g=t.chance,y=void 0===g?1:g,x=t.overflow,w=void 0===x||x,S=t.range,b=void 0===S?[65,125]:S,T=t.overdrive,P=void 0===T||T,A=t.onAnimationStart,E=t.onAnimationFrame,M=t.onAnimationEnd,C=t.ignore,k=void 0===C?[" "]:C;window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(c=o.length,y=0,P=!1);var R=(0,n.useRef)(null),V=(0,n.useRef)(0),D=(0,n.useRef)(0),j=1e3/(60*l),F=(0,n.useRef)(0),L=(0,n.useRef)(0),B=(0,n.useRef)([]),_=(0,n.useRef)(0),O=function(t,e){return k.includes(""+t)?t:e},I=function(){if(L.current!==o.length)for(var t=0;t<h;t++){var e=r(L.current,B.current.length);"number"!=typeof B.current[e]&&void 0!==B.current[e]&&(B.current[e]=O(B.current[e],r(0,10)>=(1-y)*10?v||h:0))}},U=function(){for(var t=0;t<c;t++)if(L.current<o.length){var e=L.current,i=r(0,10)>=(1-y)*10;B.current[e]=O(o[L.current],i?v+r(0,Math.ceil(v/2)):0),L.current++}},z=function(){o.length<B.current.length&&(B.current.pop(),B.current.splice(o.length,c));for(var t=0;t<c;t++)B.current.length<o.length&&B.current.push(O(o[B.current.length+1],null))},N=function(){if(P)for(var t=0;t<c;t++){var e=Math.max(B.current.length,o.length);_.current<e&&(B.current[_.current]=O(o[_.current],String.fromCharCode("boolean"==typeof P?95:P)),_.current++)}},W=function(){U(),z(),I()},H=function t(e){l&&(V.current=requestAnimationFrame(t),N(),e-D.current>j&&(D.current=e,F.current%m==0&&W(),Y()))},Y=function(){if(R.current){for(var t="",e=0;e<B.current.length;e++){var i,n=B.current[e];switch(!0){case"number"==typeof n&&n>0:t+=String.fromCharCode(2===(i=b).length?r(i[0],i[1]):i[r(0,i.length-1)]),e<=L.current&&(B.current[e]=B.current[e]-1);break;case"string"==typeof n&&(e>=o.length||e>=L.current):t+=n;break;case n===o[e]&&e<L.current:t+=o[e];break;case 0===n&&e<o.length:t+=o[e],B.current[e]=o[e];break;default:t+=""}}R.current.innerHTML=t,E&&E(t),t===o&&(B.current.splice(o.length,B.current.length),M&&M(),cancelAnimationFrame(V.current)),F.current++}},X=function(){F.current=0,L.current=0,_.current=0,w||(B.current=Array(null==o?void 0:o.length))};return(0,n.useEffect)(function(){X()},[o]),(0,n.useEffect)(function(){return cancelAnimationFrame(V.current),V.current=requestAnimationFrame(H),function(){cancelAnimationFrame(V.current)}},[H]),(0,n.useEffect)(function(){i||(B.current=o.split(""),F.current=o.length,L.current=o.length,_.current=o.length,Y(),cancelAnimationFrame(V.current))},[]),{ref:R,replay:function(){cancelAnimationFrame(V.current),X(),A&&A(),V.current=requestAnimationFrame(H)}}}}
1,75355:function(t,e,i){"use strict";i.d(e,{M:function(){return x}});var n=i(3827),r=i(64090),s=i(53856),o=i(72435),a=i(77979),l=i(24561),u=i(4205),h=i(93449);function d(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class c extends r.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if((0,u.R)(e)&&t.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let t=e.offsetParent,i=(0,u.R)(t)&&t.offsetWidth||0,n=(0,u.R)(t)&&t.offsetHeight||0,r=getComputedStyle(e),s=this.props.sizeRef.current;s.height=parseFloat(r.height),s.width=parseFloat(r.width),s.top=e.offsetTop,s.left=e.offsetLeft,s.right=i-s.width-s.left,s.bottom=n-s.height-s.top,s.direction=r.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function p(t){var e,i;let{children:s,isPresent:o,anchorX:a,anchorY:l,root:u,pop:p}=t,m=(0,r.useId)(),f=(0,r.useRef)(null),v=(0,r.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:g}=(0,r.useContext)(h._),y=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return r.useCallback(function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return t=>{let i=!1,n=e.map(e=>{let n=d(e,t);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let t=0;t<n.length;t++){let i=n[t];"function"==typeof i?i():d(e[t],null)}}}}(...e),e)}(f,null!==(i=null===(e=s.props)||void 0===e?void 0:e.ref)&&void 0!==i?i:null==s?void 0:s.ref);return(0,r.useInsertionEffect)(()=>{let{width:t,height:e,top:i,left:n,right:r,bottom:s,direction:h}=v.current;if(o||!1===p||!f.current||!t||!e)return;let d="rtl"===h;f.current.dataset.motionPopId=m;let c=document.createElement("style");g&&(c.nonce=g);let y=null!=u?u:document.head;return y.appendChild(c),c.sheet&&c.sheet.insertRule('\n [data-motion-pop-id="'.concat(m,'"] {\n position: absolute !important;\n width: ').concat(t,"px !important;\n height: ").concat(e,"px !important;\n ").concat("left"===a?d?"right: ".concat(r):"left: ".concat(n):d?"left: ".concat(n):"right: ".concat(r),"px !important;\n ").concat("bottom"===l?"bottom: ".concat(s):"top: ".concat(i),"px !important;\n }\n ")),()=>{var t;null===(t=f.current)||void 0===t||t.removeAttribute("data-motion-pop-id"),y.contains(c)&&y.removeChild(c)}},[o]),(0,n.jsx)(c,{isPresent:o,childRef:f,sizeRef:v,pop:p,children:!1===p?s:r.cloneElement(s,{ref:y})})}let m=t=>{let{children:e,initial:i,isPresent:s,onExitComplete:a,custom:u,presenceAffectsLayout:h,mode:d,anchorX:c,anchorY:m,root:v}=t,g=(0,o.h)(f),y=(0,r.useId)(),x=!0,w=(0,r.useMemo)(()=>(x=!1,{id:y,initial:i,isPresent:s,custom:u,onExitComplete:t=>{for(let e of(g.set(t,!0),g.values()))if(!e)return;a&&a()},register:t=>(g.set(t,!1),()=>g.delete(t))}),[s,g,a]);return h&&x&&(w={...w}),(0,r.useMemo)(()=>{g.forEach((t,e)=>g.set(e,!1))},[s]),r.useEffect(()=>{s||g.size||!a||a()},[s]),e=(0,n.jsx)(p,{pop:"popLayout"===d,isPresent:s,anchorX:c,anchorY:m,root:v,children:e}),(0,n.jsx)(l.O.Provider,{value:w,children:e})};function f(){return new Map}var v=i(53177);let g=t=>t.key||"";function y(t){let e=[];return r.Children.forEach(t,t=>{(0,r.isValidElement)(t)&&e.push(t)}),e}let x=t=>{let{children:e,custom:i,initial:l=!0,onExitComplete:u,presenceAffectsLayout:h=!0,mode:d="sync",propagate:c=!1,anchorX:p="left",anchorY:f="top",root:x}=t,[w,S]=(0,v.oO)(c),b=(0,r.useMemo)(()=>y(e),[e]),T=c&&!w?[]:b.map(g),P=(0,r.useRef)(!0),A=(0,r.useRef)(b),E=(0,o.h)(()=>new Map),M=(0,r.useRef)(new Set),[C,k]=(0,r.useState)(b),[R,V]=(0,r.useState)(b);(0,a.L)(()=>{P.current=!1,A.current=b;for(let t=0;t<R.length;t++){let e=g(R[t]);T.includes(e)?(E.delete(e),M.current.delete(e)):!0!==E.get(e)&&E.set(e,!1)}},[R,T.length,T.join("-")]);let D=[];if(b!==C){let t=[...b];for(let e=0;e<R.length;e++){let i=R[e],n=g(i);T.includes(n)||(t.splice(e,0,i),D.push(i))}return"wait"===d&&D.length&&(t=D),V(y(t)),k(b),null}let{forceRender:j}=(0,r.useContext)(s.p);return(0,n.jsx)(n.Fragment,{children:R.map(t=>{let e=g(t),r=(!c||!!w)&&(b===R||T.includes(e));return(0,n.jsx)(m,{isPresent:r,initial:(!P.current||!!l)&&void 0,custom:i,presenceAffectsLayout:h,mode:d,root:x,onExitComplete:r?void 0:()=>
1{if(M.current.has(e)||!E.has(e))return;M.current.add(e),E.set(e,!0);let t=!0;E.forEach(e=>{e||(t=!1)}),t&&(null==j||j(),V(A.current),c&&(null==S||S()),u&&u())},anchorX:p,anchorY:f,children:t},e)})})}},53177:function(t,e,i){"use strict";i.d(e,{oO:function(){return s}});var n=i(64090),r=i(24561);function s(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,n.useContext)(r.O);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:s,register:o}=e,a=(0,n.useId)();(0,n.useEffect)(()=>{if(t)return o(a)},[t]);let l=(0,n.useCallback)(()=>t&&s&&s(a),[a,s,t]);return!i&&s?[!1,l]:[!0]}},53856:function(t,e,i){"use strict";i.d(e,{p:function(){return n}});let n=(0,i(64090).createContext)({})},93449:function(t,e,i){"use strict";i.d(e,{_:function(){return n}});let n=(0,i(64090).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},24561:function(t,e,i){"use strict";i.d(e,{O:function(){return n}});let n=(0,i(64090).createContext)(null)},29490:function(t,e,i){"use strict";let n,r,s;i.d(e,{E:function(){return s5}});let o=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],a=new Set([...o,"pathRotation"]),l=(t,e,i)=>i>e?e:i<t?t:i,u={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},h={...u,transform:t=>l(0,1,t)},d={...u,default:1},c=t=>Math.round(1e5*t)/1e5,p=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,m=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,f=(t,e)=>i=>!!("string"==typeof i&&m.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),v=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,s,o,a]=n.match(p);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},g=t=>l(0,255,t),y={...u,transform:t=>Math.round(g(t))},x={test:f("rgb","red"),parse:v("red","green","blue"),transform:t=>{let{red:e,green:i,blue:n,alpha:r=1}=t;return"rgba("+y.transform(e)+", "+y.transform(i)+", "+y.transform(n)+", "+c(h.transform(r))+")"}},w={test:f("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:x.transform},S=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>"".concat(e).concat(t)}),b=S("deg"),T=S("%"),P=S("px"),A=S("vh"),E=S("vw"),M={...T,parse:t=>T.parse(t)/100,transform:t=>T.transform(100*t)},C={test:f("hsl","hue"),parse:v("hue","saturation","lightness"),transform:t=>{let{hue:e,saturation:i,lightness:n,alpha:r=1}=t;return"hsla("+Math.round(e)+", "+T.transform(c(i))+", "+T.transform(c(n))+", "+c(h.transform(r))+")"}},k={test:t=>x.test(t)||w.test(t)||C.test(t),parse:t=>x.test(t)?x.parse(t):C.test(t)?C.parse(t):w.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?x.transform(t):C.transform(t),getAnimatableNone:t=>{let e=k.parse(t);return e.alpha=0,k.transform(e)}},R=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,V="number",D="color",j=/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 F(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,o=e.replace(j,t=>(k.test(t)?(n.color.push(s),r.push(D),i.push(k.parse(t))):t.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(t)):(n.number.push(s),r.push(V),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function L(t){let{split:e,types:i}=t,n=e.length;return t=>{let r="";for(let s=0;s<n;s++)if(r+=e[s],void 0!==t[s]){let e=i[s];e===V?r+=c(t[s]):e===D?r+=k.transform(t[s]):r+=t[s]}return r}}let B=t=>"number"==typeof t?0:k.test(t)?k.getAnimatableNone(t):t,_=(t,e)=>"number"==typeof t?(null==e?void 0:e.trim().endsWith("/"))?t:0:B(t),O={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(p))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(R))||void 0===i?void 0:i.length)||0)>0},parse:function(t){return F(t).values},createTransformer:function(t){return L(F(t))},getAnimatableNone:function(t){let e=F(t);return L(e)(e.values.map((t,i)=>_(t,e.split[i])))}},I=new Set(["brightness","contrast","saturate","opacity"]);function U(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(p)||[];if(!n)return t;let r=i.replace(n,""),s=I.has(e)?1:0;return n!==i&&(s*=100),e+"("+s+r+")"}let z=/\b([a-z-]*)\(.*?\)/gu,N={...O,getAnimatableNone:t=>{let e=t.match(z);return e?e.map(U).join(" "):t}},W={...O,getAnimatableNone:t=>{let e=O.parse(t);return O.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},H={...u,transform:Math.round},Y={borderWidth:P,borderTopWidth:P,borderRightWidth:P,borderBottomWidth:P,borderLeftWidth:P,borderRadius:P,borderTopLeftRadius:P,borderTopRightRadius:P,borderBottomRightRadius:P,borderBottomLeftRadius:P,width:P,maxWidth:P,height:P,maxHeight:P,top:P,right:P,bottom:P,left:P,inset:P,insetBlock:P,insetBlockStart:P,insetBlockEnd:P,insetInline:P,insetInlineStart:P,insetInlineEnd:P,padding:P,paddingTop:P,paddingRight:P,paddingBottom:P,paddingLeft:P,paddingBlock:P,paddingBlockStart:P,paddingBlockEnd:P,paddingInline:P,paddingInlineStart:P,paddingInlineEnd:P,margin:P,marginTop:P,marginRight:P,marginBottom:P,marginLeft:P,marginBlock:P,marginBlockStart:P,marginBlockEnd:P,marginInline:P,marginInlineStart:P,marginInlineEnd:P,fontSize:P,backgroundPositionX:P,backgroundPositionY:P,rotate:b,pathRotation:b,rotateX:b,rotateY:b,rotateZ:b,scale:d,scaleX:d,scaleY:d,scaleZ:d,skew:b,skewX:b,skewY:b,distance:P,translateX:P,translateY:P,translateZ:P,x:P,y:P,z:P,perspective:P,transformPerspective:P,opacity:h,originX:M,originY:M,originZ:P,zIndex:H,fillOpacity:h,strokeOpacity:h,numOctaves:H},X={...Y,color:k,backgroundColor:k,outlineColor:k,fill:k,stroke:k,borderColor:k,borderTopColor:k,borderRightColor:k,borderBottomColor:k,borderLeftColor:k,filter:N,WebkitFilter:N,mask:W,WebkitMask:W},K=t=>X[t],q=()=>({translate:0,scale:1,origin:0,originPoint:0}),G=()=>({x:q(),y:q()}),Z=()=>({min:0,max:0}),$=()=>({x:Z(),y:Z()}),J=t=>!!(t&&t.getVelocity),Q=new Set(["width","height","top","left","right","bottom",...o]),tt=t=>e=>e.test(t),te=[u,P,T,b,E,A,{test:t=>"auto"===t,parse:t=>t}],ti=t=>te.find(tt(t));function tn(t,e){return e?"".concat(t,". For more information and steps for solving, visit https://motion.dev/troubleshooting/").concat(e):t}var tr,ts,to=i(49079);let ta=()=>{},tl=()=>{};void 0!==to&&(null===(ts=to.env)||void 0===ts?void 0:"production")!=="production"&&(ta=(t,e,i)=>{t||"undefined"==typeof console||console.warn(tn(e,i))},tl=(t,e,i)=>{if(!t)throw Error(tn(e,i))});let tu=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),th=t=>e=>"string"==typeof e&&e.startsWith(t),td=th("--"),tc=th("var(--"),tp=t=>!!tc(t)&&tm.test(t.split("/*")[0].trim()),tm=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tf(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let tv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tg=t=>180*t/Math.PI,ty=t=>tw(tg(Math.atan2(t[1],t[0]))),tx={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:ty,rotateZ:ty,skewX:t=>tg(Math.atan(t[1])),skewY:t=>tg(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tw=t=>((t%=360)<0&&(t+=360),t),tS=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tb=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tT={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tS,scaleY:tb,scale:t=>(tS(t)+tb(t))/2,rotateX:t=>tw(tg(Math.atan2(t[6],t[5]))),rotateY:t=>tw(tg(Math.atan2(-t[2],t[0]))),rotateZ:ty,rotate:ty,skewX:t=>tg(Math.atan(t[4])),skewY:t=>tg(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tP(t){return t.includes("scale")?1:0}function tA(t,e){let i,n;if(!t||"none"===t)return tP(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=tT,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tx,n=e}if(!n)return tP(e);let s=i[e],o=n[1].split(",").map(tM);return"function"==typeof s?s(o):o[s]}let tE=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tA(i,e)};function tM(t){return parseFloat(t.trim())}let tC=t=>t===u||t===P,tk=new Set(["x","y","z"]),tR=o.filter(t=>!tk.has(t)),tV={width:(t,e)=>{let{x:i}=t,{paddingLeft:n="0",paddingRight:r="0",boxSizing:s}=e,o=i.max-i.min;return"border-box"===s?o:o-parseFloat(n)-parseFloat(r)},height:(t,e)=>{let{y:i}=t,{paddingTop:n="0",paddingBottom:r="0",boxSizing:s}=e,o=i.max-i.min;return"border-box"===s?o:o-parseFloat(n)-parseFloat(r)},top:(t,e)=>{let{top:i}=e;return parseFloat(i)},left:(t,e)=>{let{left:i}=e;return parseFloat(i)},bottom:(t,e)=>{let{y:i}=t,{top:n}=e;return parseFloat(n)+(i.max-i.min)},right:(t,e)=>{let{x:i}=t,{left:n}=e;return parseFloat(n)+(i.max-i.min)},x:(t,e)=>{let{transform:i}=e;return tA(i,"x")},y:(t,e)=>{let{transform:i}=e;return tA(i,"y")}};tV.translateX=tV.x,tV.translateY=tV.y;let tD=t=>t,tj={},tF=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],tL={value:null,addProjectionMetrics:null};function tB(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=tF.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,r=!1,s=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){o.has(e)&&(h.schedule(e),t()),l++,e(a)}let h={schedule:function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=s&&r?i:n;return e&&o.add(t),a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(a=t,r){s=!0;return}r=!0;let o=i;
1i=n,n=o,i.forEach(u),e&&tL.value&&tL.value.frameloop[e].push(l),l=0,i.clear(),r=!1,s&&(s=!1,h.process(t))}};return h}(s,e?i:void 0),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:h,update:d,preRender:c,render:p,postRender:m}=o,f=()=>{let s=tj.useManualTiming,o=s?r.timestamp:performance.now();i=!1,s||(r.delta=n?1e3/60:Math.max(Math.min(o-r.timestamp,40),1)),r.timestamp=o,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),h.process(r),d.process(r),c.process(r),p.process(r),m.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(f))},v=()=>{i=!0,n=!0,r.isProcessing||t(f)};return{schedule:tF.reduce((t,e)=>{let n=o[e];return t[e]=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return i||v(),n.schedule(t,e,r)},t},{}),cancel:t=>{for(let e=0;e<tF.length;e++)o[tF[e]].cancel(t)},state:r,steps:o}}let{schedule:t_,cancel:tO,state:tI,steps:tU}=tB("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:tD,!0),tz=new Set,tN=!1,tW=!1,tH=!1;function tY(){if(tW){let t=Array.from(tz).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 tR.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.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=>{var i;let[n,r]=e;null===(i=t.getValue(n))||void 0===i||i.set(r)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tW=!1,tN=!1,tz.forEach(t=>t.complete(tH)),tz.clear()}function tX(){tz.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tW=!0)})}class tK{scheduleResolve(){this.state="scheduled",this.isAsync?(tz.add(this),tN||(tN=!0,t_.read(tX),t_.resolveKeyframes(tY))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let r=null==n?void 0:n.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}!function(t){for(let i=1;i<t.length;i++){var e;null!==(e=t[i])&&void 0!==e||(t[i]=t[i-1])}}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tz.delete(this)}cancel(){"scheduled"===this.state&&(tz.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}constructor(t,e,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}}let tq=t=>/^0[^.\s]+$/u.test(t),tG=new Set([N,W]);function tZ(t,e){let i=K(t);return tG.has(i)||(i=O),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let t$=new Set(["auto","none","0"]);class tJ extends tK{readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&tp(n=n.trim())){let r=function t(e,i){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;tl(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'),"max-css-var-depth");let[r,s]=function(t){let e=tv.exec(t);if(!e)return[,];let[,i,n,r]=e;return["--".concat(null!=i?i:n),r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let t=o.trim();return tu(t)?parseFloat(t):t}return tp(s)?t(s,i,n+1):s}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!Q.has(i)||2!==t.length)return;let[n,r]=t,s=ti(n),o=ti(r);if(tf(n)!==tf(r)&&tV[i]){this.needsMeasurement=!0;return}if(s!==o){if(tC(s)&&tC(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tV[i]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;(null===t[e]||("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||tq(n)))&&i.push(e)}
1i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!t$.has(e)&&F(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=tZ(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tV[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(i);r&&r.jump(this.measuredOrigin,!1);let s=n.length-1,o=n[s];n[s]=tV[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=>{let[i,n]=t;e.getValue(i).set(n)}),this.resolveNoneKeyframes()}constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}}let tQ=t=>1e3*t,t0=t=>t/1e3;function t1(t,e){-1===t.indexOf(e)&&t.push(e)}function t2(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class t3{add(t){return t1(this.subscriptions,t),()=>t2(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}constructor(){this.subscriptions=[]}}let t5=t=>t.startsWith("--");function t4(t,e,i){t5(e)?t.style.setProperty(e,i):t.style[e]=i}function t9(t){let e;return()=>(void 0===e&&(e=t()),e)}let t6={};function t7(t,e){let i=t9(t);return()=>{var t;return null!==(t=t6[e])&&void 0!==t?t:i()}}let t8=t7(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),et=t=>null!==t;function ee(t,e,i){let{repeat:n,repeatType:r="loop"}=e,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=t.filter(et),a=s<0||n&&"loop"!==r&&n%2==1?0:o.length-1;return a&&void 0!==i?i:o[a]}class ei{get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}constructor(){this.updateFinished()}}let en={layout:0,mainThread:0,waapi:0},er=t=>Array.isArray(t)&&"number"==typeof t[0],es=t7(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),eo=function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return"linear(".concat(n.substring(0,n.length-2),")")},ea=t=>{let[e,i,n,r]=t;return"cubic-bezier(".concat(e,", ").concat(i,", ").concat(n,", ").concat(r,")")},el={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ea([0,.65,.55,1]),circOut:ea([.55,0,1,.45]),backIn:ea([.31,.01,.66,-.59]),backOut:ea([.33,1.53,.69,.99])};function eu(t){return"function"==typeof t&&"applyToOptions"in t}class eh extends ei{play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,e;null===(t=(e=this.animation).finish)||void 0===t||t.call(e)}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,e,i;let n=null===(t=this.options)||void 0===t?void 0:t.element;!this.isPseudoElement&&(null==n?void 0:n.isConnected)&&(null===(e=(i=this.animation).commitStyles)||void 0===e||e.call(i))}get duration(){var t,e;return t0(Number((null===(e=this.animation.effect)||void 0===e?void 0:null===(t=e.getComputedTiming)||void 0===t?void 0:t.call(e).duration)||0))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t0(t)}get time(){return t0(Number(this.animation.currentTime)||0)}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=tQ(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){var t;return null!==(t=this.manualStartTime)&&void 0!==t?t:Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline(t){let{timeline:e,rangeStart:i,rangeEnd:n,observe:r}=t;if(this.allowFlatten){var s;null===(s=this.animation.effect)||void 0===s||s.updateTiming({easing:"linear"})}return(this.animation.onfinish=null,e&&t8())?(this.animation.timeline=e,i&&(this.animation.rangeStart=i),n&&(this.animation.rangeEnd=n),tD):r(this)}constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=t,tl("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function(t){var e,i;let{type:n,...r}=t;return eu(n)&&es()?n.applyToOptions(r):(null!==(e=r.duration)&&void 0!==e||(r.duration=300),null!==(i=r.ease)&&void 0!==i||(r.ease="easeOut"),r)}(t);this.animation=function(t,e,i){let{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,h={[e]:i};l&&(h.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?es()?eo(e,i):"ease-out":er(e)?ea(e):Array.isArray(e)?e.map(e=>t(e,i)||el.easeOut):el[e]}(a,r);Array.isArray(d)&&(h.easing=d),tL.value&&en.waapi++;let c={delay:n,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};u&&(c.pseudoElement=u);let p=t.animate(h,c);return tL.value&&p.finished.finally(()=>{en.waapi--}),p}(e,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=ee(n,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(t),t4(e,i,t),this.animation.cancel()}null==a||a(),this.notifyFinished()}}}let ed=new Set(["opacity","clipPath","filter","transform"]),{schedule:ec,cancel:ep}=tB(queueMicrotask,!1);function em(){n=void 0}let ef={now:()=>(void 0===n&&ef.set(tI.isProcessing||tj.useManualTiming?tI.timestamp:performance.now()),n),set
1:t=>{n=t,queueMicrotask(em)}},ev=(t,e)=>e?1e3/e*t:0,eg=t=>!isNaN(parseFloat(t)),ey={current:void 0};class ex{setCurrent(t){this.current=t,this.updatedAt=ef.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=eg(this.current))}setPrevFrameValue(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]: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 t3);let i=this.events[t].add(e);return"change"===t?()=>{i(),t_.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){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;null===(t=this.events.change)||void 0===t||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return ey.current&&ey.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=ef.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return ev(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}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(){var t,e;null===(t=this.dependents)||void 0===t||t.clear(),null===(e=this.events.destroy)||void 0===e||e.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=ef.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev){var i;if(null===(i=this.events.change)||void 0===i||i.notify(this.current),this.dependents)for(let t of this.dependents)t.dirty()}},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}}function ew(t,e){return new ex(t,e)}let eS=[...te,k,O],eb=t=>eS.find(tt(t)),eT=new WeakMap;function eP(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function eA(t){return"string"==typeof t||Array.isArray(t)}let eE=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eM=["initial",...eE];function eC(t){return eP(t.animate)||eM.some(e=>eA(t[e]))}function ek(t){return!!(eC(t)||t.variants)}let eR={current:null},eV={current:!1};function eD(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function ej(t,e,i,n){if("function"==typeof e){let[r,s]=eD(n);e=e(void 0!==i?i:t.custom,r,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,s]=eD(n);e=e(void 0!==i?i:t.custom,r,s)}return e}let eF=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eL={};class eB{scrapeMotionValuesFromProps(t,e,i){return{}}mount(t){var e,i,n;if(this.hasBeenMounted)for(let t in this.initialValues)null===(i=this.values.get(t))||void 0===i||i.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,eT.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
1h((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(eV.current||function(){if(eV.current=!0,window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>eR.current=t.matches;t.addEventListener("change",e),e()}else eR.current=!1}(),this.shouldReduceMotion=eR.current),this.shouldSkipAnimations=null!==(n=this.skipAnimationsConfig)&&void 0!==n&&n,null===(e=this.parent)||void 0===e||e.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;for(let e in this.projection&&this.projection.unmount(),tO(this.notifyUpdate),tO(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),null===(t=this.parent)||void 0===t||t.removeChild(this),this.events)this.events[e].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){var e;this.children.add(t),null!==(e=this.enteringChildren)&&void 0!==e||(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&ed.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:r,ease:s,duration:o}=e.accelerate,a=new eh({element:this.current,name:t,keyframes:n,times:r,ease:s,duration:tQ(o)}),l=i(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let n=a.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&t_.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),i&&i()})}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 eL){let e=eL[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(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.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$()}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<eF.length;e++){let i=eF[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if(J(r))t.addValue(n,r);else if(J(s))t.addValue(n,ew(r,{owner:t}));else if(s!==r){if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,ew(void 0!==e?e:r,{owner:t}))}}}for(let n in i)void 0===e[n]&&t.removeValue(n);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}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=ew(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let n=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!=n&&("string"==typeof n&&(tu(n)||tq(n))?n=parseFloat(n):!eb(n)&&O.test(e)&&(n=tZ(t,e)),this.setBaseTarget(t,J(n)?n.get():n)),J(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e;let{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){var n;let r=ej(this.props,i,null===(n=this.presenceContext)||void 0===n?void 0:n.custom);r&&(e=r[t])}if(i&&void 0!==e)return e;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||J(r)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new t3),this.events[t].add(e)}notify(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];this.events[t]&&this.events[t].notify(...i)}scheduleRenderMicrotask(){ec.render(this.render)}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:r,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=tK,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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.renderScheduledAt=0,this.scheduleRender=()=>{let t=ef.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,t_.render(this.render,!1,!0))};let{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=r,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=eC(e),this.isVariantNode=ek(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:h,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in d){let e=d[t];void 0!==l[t]&&J(e)&&e.set(l[t])}}}class e_ extends eB{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,e){let{vars:i,style:n}=e;delete i[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;J(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent="".concat(t))}))}constructor(){super(...arguments),this.KeyframeResolver=tJ}}function eO(t){return t.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase()))}let eI=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eU={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ez=o.length;function eN(t,e,i){let{style:n,vars:r,transformOrigin:s}=t,l=!1,u=!1;for(let t in e){let i=e[t];if(a.has(t)){l=!0;continue}if(td(t)){r[t]=i;continue}{let e=eI(i,Y[t]);t.startsWith("origin")?(u=!0,s[t]=e):n[t]=e}}
1if(!e.transform&&(l||i?n.transform=function(t,e,i){let n="",r=!0;for(let s=0;s<ez;s++){let a=o[s],l=t[a];if(void 0===l)continue;let u=!0;if("number"==typeof l)u=l===(a.startsWith("scale")?1:0);else{let t=parseFloat(l);u=a.startsWith("scale")?1===t:0===t}if(!u||i){let t=eI(l,Y[a]);if(!u){r=!1;let e=eU[a]||a;n+="".concat(e,"(").concat(t,") ")}i&&(e[a]=t)}}let s=t.pathRotation;return s&&(r=!1,n+="rotate(".concat(eI(s,Y.pathRotation),") ")),n=n.trim(),i?n=i(e,r?"":n):r&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=s;n.transformOrigin="".concat(t," ").concat(e," ").concat(i)}}let eW={offset:"stroke-dashoffset",array:"stroke-dasharray"},eH={offset:"strokeDashoffset",array:"strokeDasharray"},eY=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eX(t,e,i,n,r){var s,o;let{attrX:a,attrY:l,attrScale:u,pathLength:h,pathSpacing:d=1,pathOffset:c=0,...p}=e;if(eN(t,p,n),i){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:m,style:f}=t;for(let t of(m.transform&&(f.transform=m.transform,delete m.transform),(f.transform||m.transformOrigin)&&(f.transformOrigin=null!==(s=m.transformOrigin)&&void 0!==s?s:"50% 50%",delete m.transformOrigin),f.transform&&(f.transformBox=null!==(o=null==r?void 0:r.transformBox)&&void 0!==o?o:"fill-box",delete m.transformBox),eY))void 0!==m[t]&&(f[t]=m[t],delete m[t]);void 0!==a&&(m.x=a),void 0!==l&&(m.y=l),void 0!==u&&(m.scale=u),void 0!==h&&function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=!(arguments.length>4)||void 0===arguments[4]||arguments[4];t.pathLength=1;let s=r?eW:eH;t[s.offset]="".concat(-n),t[s.array]="".concat(e," ").concat(i)}(m,h,d,c,!1)}let eK=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"]),eq=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eG(t,e,i,n){let r,{style:s,vars:o}=e,a=t.style;for(r in s)a[r]=s[r];for(r in null==n||n.applyProjectionStyles(a,i),o)a.setProperty(r,o[r])}function eZ(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let e$={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!P.test(t))return t;t=parseFloat(t)}let i=eZ(t,e.target.x),n=eZ(t,e.target.y);return"".concat(i,"% ").concat(n,"%")}},eJ=(t,e,i)=>t+(e-t)*i,eQ={borderRadius:{...e$,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:e$,borderTopRightRadius:e$,borderBottomLeftRadius:e$,borderBottomRightRadius:e$,boxShadow:{correct:(t,e)=>{let{treeScale:i,projectionDelta:n}=e,r=O.parse(t);if(r.length>5)return t;let s=O.createTransformer(t),o="number"!=typeof r[0]?1:0,a=n.x.scale*i.x,l=n.y.scale*i.y;r[0+o]/=a,r[1+o]/=l;let u=eJ(a,l,.5);return"number"==typeof r[2+o]&&(r[2+o]/=u),"number"==typeof r[3+o]&&(r[3+o]/=u),s(r)}}};function e0(t,e){let{layout:i,layoutId:n}=e;return a.has(t)||t.startsWith("origin")||(i||void 0!==n)&&(!!eQ[t]||"opacity"===t)}function e1(t,e,i){let n=t.style,r=null==e?void 0:e.style,s={};if(!n)return s;for(let e in n){var o;(J(n[e])||r&&J(r[e])||e0(e,t)||(null==i?void 0:null===(o=i.getValue(e))||void 0===o?void 0:o.liveStyle)!==void 0)&&(s[e]=n[e])}return s}function e2(t,e,i){let n=e1(t,e,i);for(let i in t)(J(t[i])||J(e[i]))&&(n[-1!==o.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class e3 extends e_{getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(a.has(e)){let t=K(e);return t&&t.default||0}return e=eK.has(e)?e:eO(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return e2(t,e,i)}build(t,e,i){eX(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){!function(t,e,i,n){for(let i in eG(t,e,void 0,n),e.attrs)t.setAttribute(eK.has(i)?i:eO(i),e.attrs[i])}(t,e,0,n)}mount(t){this.isSVGTag=eq(t.tagName),super.mount(t)}constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$}}function e5(t){let{top:e,left:i,right:n,bottom:r}=t;return{x:{min:i,max:n},y:{min:e,max:r}}}function e4(t){return void 0===t||1===t}function e9(t){let{scale:e,scaleX:i,scaleY:n}=t;return!e4(e)||!e4(i)||!e4(n)}function e6(t){return e9(t)||e7(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function e7(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function e8(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function it(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;t.min=e8(t.min,e,i,n,r),t.max=e8(t.max,e,i,n,r)}function ie(t,e){let{x:i,y:n}=e;it(t.x,i.translate,i.scale,i.originPoint),it(t.y,n.translate,n.scale,n.originPoint)}function ii(t,e){t.min+=e,t.max+=e}function ir(t,e,i,n){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.5,s=eJ(t.min,t.max,r);it(t,e,i,s,n)}function is(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function io(t,e,i){let n=null!=i?i:t;ir(t.x,is(e.x,n.x),e.scaleX,e.scale,e.originX),ir(t.y,is(e.y,n.y),e.scaleY,e.scale,e.originY)}function ia(t,e){return e5(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}class il extends e_{readValueFromInstance(t,e){var i;if(a.has(e))return(null===(i=this.projection)||void 0===i?void 0:i.isProjecting)?tP(e):tE(t,e);{let i=window.getComputedStyle(t),n=(td(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,e){let{transformPagePoint:i}=e;return ia(t,i)}build(t,e,i){eN(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return e1(t,e,i)}constructor(){super(...arguments),this.type="html",this.renderInstance=eG}}var iu=i(64090);let ih=["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 id(t){if("string"!=typeof t||t.includes("-"));else if(ih.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var ic=i(3827),ip=i(53856);let im=(0,iu.createContext)({strict:!1});var iv=i(93449);let ig=(0,iu.createContext)({});function iy(t){return Array.isArray(t)?t.join(" "):t}let ix=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function iw(t,e,i){for(let n in e)J(e[n])||e0(n,i)||(t[n]=e[n])}let iS=()=>({...ix(),attrs:{}}),ib=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","propagate","ignoreStrict","viewport"]);function iT(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ib.has(t)}let iP=t=>!iT(t);try{tr=require("@emotion/is-prop-valid").default,"function"==typeof tr&&(iP=t=>t.startsWith("on")?!iT(t):tr(t))}catch(t){}function iA(t){return J(t)?t.get():t}var iE=i(24561),iM=i(72435);let iC=t=>(e,i)=>{let n=(0,iu.useContext)(ig),r=(0,iu.useContext)(iE.O),s=()=>(function(t,e,i,n){let{scrapeMotionValuesFromProps:r,createRenderState:s}=t;return{latestValues:function(t,e,i,n){let r={},s=n(t,{});for(let t in s)r[t]=iA(s[t]);let{initial:o,animate:a}=t,l=eC(t),u=ek(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,d=(h=h||!1===o)?a:o;if(d&&"boolean"!=typeof d&&!eP(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let n=ej(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(e,i,n,r),renderState:s()}})(t,e,n,r);return i?s():(0,iM.h)(s)},ik=iC({scrapeMotionValuesFromProps:e1,createRenderState:ix}),iR=iC({scrapeMotionValuesFromProps:e2,createRenderState:iS}),iV={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"]},iD=!1;function ij(){return!function(){if(iD)return;let t={};for(let e in iV)t[e]={isEnabled:t=>iV[e].some(e=>!!t[e])};eL=t,iD=!0}(),eL}let iF=Symbol.for("motionComponentSymbol"),iL="data-"+eO("framerAppearId"),iB=(0,iu.createContext)({});function i_(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var iO=i(77979);function iI(t){var e,i;let{forwardMotionProps:n=!1,type:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;s&&function(t){let e=ij();for(let i in t)e[i]={...e[i],...t[i]};eL=e}(s);let a=r?"svg"===r:id(t),l=a?iR:ik;function u(e,i){let r;let s={...(0,iu.useContext)(iv._),...e,layoutId:function(t){let{layoutId:e}=t,i=(0,iu.useContext)(ip.p).id;return i&&void 0!==e?i+"-"+e:e}(e)},{isStatic:u}=s,h=function(t){let{initial:e,animate:i}=function(t,e){if(eC(t)){let{initial:e,animate:i}=t;return{initial:!1===e||eA(e)?e:void 0,animate:eA(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,iu.useContext)(ig));return(0,iu.useMemo)(()=>({initial:e,animate:i}),[iy(e),iy(i)])}(e),d=l(e,u);if(!u){(0,iu.useContext)(im).strict;let e=function(t){let{drag:e,layout:i}=ij();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
1(s);r=e.MeasureLayout,h.visualElement=function(t,e,i,n,r,s){var o,a,l,u;let{visualElement:h}=(0,iu.useContext)(ig),d=(0,iu.useContext)(im),c=(0,iu.useContext)(iE.O),p=(0,iu.useContext)(iv._),m=p.reducedMotion,f=p.skipAnimations,v=(0,iu.useRef)(null),g=(0,iu.useRef)(!1);n=n||d.renderer,!v.current&&n&&(v.current=n(t,{visualState:e,parent:h,props:i,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:m,skipAnimations:f,isSVG:s}),g.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));let y=v.current,x=(0,iu.useContext)(iB);y&&!y.projection&&r&&("html"===y.type||"svg"===y.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:h,layoutCrossfade:d}=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:r,layout:s,alwaysMeasureLayout:!!o||a&&i_(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:h})}(v.current,i,r,x);let w=(0,iu.useRef)(!1);(0,iu.useInsertionEffect)(()=>{y&&w.current&&y.update(i,c)});let S=i[iL],b=(0,iu.useRef)(!!S&&!(null===(o=(a=window).MotionHandoffIsComplete)||void 0===o?void 0:o.call(a,S))&&(null===(l=(u=window).MotionHasOptimisedAnimation)||void 0===l?void 0:l.call(u,S)));return(0,iO.L)(()=>{g.current=!0,y&&(w.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),b.current&&y.animationState&&y.animationState.animateChanges())}),(0,iu.useEffect)(()=>{y&&(!b.current&&y.animationState&&y.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var t,e;null===(t=(e=window).MotionHandoffMarkAsComplete)||void 0===t||t.call(e,S)}),b.current=!1),y.enteringChildren=void 0)}),y}(t,d,s,o,e.ProjectionNode,a)}return(0,ic.jsxs)(ig.Provider,{value:h,children:[r&&h.visualElement?(0,ic.jsx)(r,{visualElement:h.visualElement,...s}):null,function(t,e,i,n,r){let{latestValues:s}=n,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,l=((null!=a?a:id(t))?function(t,e,i,n){let r=(0,iu.useMemo)(()=>{let i=iS();return eX(i,e,eq(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};iw(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return iw(n,i,t),Object.assign(n,function(t,e){let{transformTemplate:i}=t;return(0,iu.useMemo)(()=>{let t=ix();return eN(t,e,i),Object.assign({},t.vars,t.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(e,s,r,t),u=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&!J(t[r])&&(iP(r)||!0===i&&iT(r)||!e&&!iT(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(e,"string"==typeof t,o),h=t!==iu.Fragment?{...u,...l,ref:i}:{},{children:d}=e,c=(0,iu.useMemo)(()=>J(d)?d.get():d,[d]);return(0,iu.createElement)(t,{...h,children:c})}(t,e,function(t,e,i){let n=(0,iu.useRef)(i);(0,iu.useInsertionEffect)(()=>{n.current=i});let r=(0,iu.useRef)(null);return(0,iu.useCallback)(i=>{if(i){var s;null===(s=t.onMount)||void 0===s||s.call(t,i)}e&&(i?e.mount(i):e.unmount());let o=n.current;if("function"==typeof o){if(i){let t=o(i);"function"==typeof t&&(r.current=t)}else r.current?(r.current(),r.current=null):o(i)}else o&&(o.current=i)},[e])}(d,h.visualElement,i),d,u,n,a)]})}u.displayName="motion.".concat("string"==typeof t?t:"create(".concat(null!==(i=null!==(e=t.displayName)&&void 0!==e?e:t.name)&&void 0!==i?i:"",")"));let h=(0,iu.forwardRef)(u);return h[iF]=t,h}class iU{update(){}constructor(t){this.isMounted=!1,this.node=t}}function iz(t,e,i){let n=t.getProps();return ej(n,e,void 0!==i?i:n.custom,t)}function iN(t,e){if((null==t?void 0:t.inherit)&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}function iW(t,e){var i,n;let r=null!==(n=null!==(i=null==t?void 0:t[e])&&void 0!==i?i:null==t?void 0:t.default)&&void 0!==n?n:t;return r!==t?iN(r,t):r}let iH=t=>Array.isArray(t);function iY(t,e){let i=t.getValue("willChange");if(J(i)&&i.add)return i.add(e);if(!i&&tj.WillChange){let i=new tj.WillChange("auto");
1t.addValue("willChange",i),i.add(e)}}let iX=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return e.reduce((t,e)=>i=>e(t(i)))};function iK(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 iq(t,e){return i=>i>0?e:t}let iG=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},iZ=[w,x,C],i$=t=>iZ.find(e=>e.test(t));function iJ(t){let e=i$(t);if(ta(!!e,"'".concat(t,"' is not an animatable color. Use the equivalent color code instead."),"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===C&&(i=function(t){let{hue:e,saturation:i,lightness:n,alpha:r}=t;e/=360,n/=100;let s=0,o=0,a=0;if(i/=100){let t=n<.5?n*(1+i):n+i-n*i,r=2*n-t;s=iK(r,t,e+1/3),o=iK(r,t,e),a=iK(r,t,e-1/3)}else s=o=a=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(i)),i}let iQ=(t,e)=>{let i=iJ(t),n=iJ(e);if(!i||!n)return iq(t,e);let r={...i};return t=>(r.red=iG(i.red,n.red,t),r.green=iG(i.green,n.green,t),r.blue=iG(i.blue,n.blue,t),r.alpha=eJ(i.alpha,n.alpha,t),x.transform(r))},i0=new Set(["none","hidden"]);function i1(t,e){return i=>eJ(t,e,i)}function i2(t){return"number"==typeof t?i1:"string"==typeof t?tp(t)?iq:k.test(t)?iQ:i4:Array.isArray(t)?i3:"object"==typeof t?k.test(t)?iQ:i5:iq}function i3(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>i2(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function i5(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=i2(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let i4=(t,e)=>{let i=O.createTransformer(e),n=F(t),r=F(e);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?i0.has(t)&&!r.values.length||i0.has(e)&&!n.values.length?i0.has(t)?i=>i<=0?t:e:i=>i>=1?e:t:iX(i3(function(t,e){let i=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){var r;let o=e.types[s],a=t.indexes[o][n[o]],l=null!==(r=t.values[a])&&void 0!==r?r:0;i[s]=l,n[o]++}return i}(n,r),r.values),i):(ta(!0,"Complex values '".concat(t,"' and '").concat(e,"' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition."),"complex-values-different"),iq(t,e))};function i9(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?eJ(t,e,i):i2(t)(t,e)}let i6=t=>{let e=e=>{let{timestamp:i}=e;return t(i)};return{start:function(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return t_.update(e,t)},stop:()=>tO(e),now:()=>tI.isProcessing?tI.timestamp:ef.now()}};function i7(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}let i8={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function nt(t,e){return t*Math.sqrt(1-e*e)}let ne=["duration","bounce"],ni=["stiffness","damping","mass"];function nn(t,e){return e.some(e=>void 0!==t[e])}function nr(){let t,e,i,n,r,s,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i8.visualDuration,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i8.bounce,u="object"!=typeof o?{visualDuration:o,keyframes:[0,1],bounce:a}:o,{restSpeed:h,restDelta:d}=u,c=u.keyframes[0],p=u.keyframes[u.keyframes.length-1],m={done:!1,value:c},{stiffness:f,damping:v,mass:g,duration:y,velocity:x,isResolvedFromDuration:w}=function(t){let e={velocity:i8.velocity,stiffness:i8.stiffness,damping:i8.damping,mass:i8.mass,isResolvedFromDuration:!1,...t};if(!nn(t,ni)&&nn(t,ne)){if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*l(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:i8.mass,stiffness:n,damping:r}}else{let i=function(t){let e,i,{duration:n=i8.duration,bounce:r=i8.bounce,velocity:s=i8.velocity,mass:o=i8.mass}=t;ta(n<=tQ(i8.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-r;a=l(i8.minDamping,i8.maxDamping,a),n=l(i8.minDuration,i8.maxDuration,t0(n)),a<1?(e=t=>{let e=t*a,i=e*n;return .001-(e-s)/nt(t,a)*Math.exp(-i)},i=t=>{let i=t*a*n,r=Math.pow(a,2)*Math.pow(t,2)*n,o=nt(Math.pow(t,2),a);return(i*s+s-r)*Math.exp(-i)*(-e(t)+.001>0?-1:1)/o}):(e=t=>-.001+Math.exp(-t*n)*((t-s)*n+1),i=t=>n*n*(s-t)*Math.exp(-t*n));
1let u=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(e,i,5/n);if(n=tQ(n),isNaN(u))return{stiffness:i8.stiffness,damping:i8.damping,duration:n};{let t=Math.pow(u,2)*o;return{stiffness:t,damping:2*a*Math.sqrt(o*t),duration:n}}}({...t,velocity:0});(e={...e,...i,mass:i8.mass}).isResolvedFromDuration=!0}}return e}({...u,velocity:-t0(u.velocity||0)}),S=x||0,b=v/(2*Math.sqrt(f*g)),T=p-c,P=t0(Math.sqrt(f/g)),A=5>Math.abs(T);if(h||(h=A?i8.restSpeed.granular:i8.restSpeed.default),d||(d=A?i8.restDelta.granular:i8.restDelta.default),b<1)i=nt(P,b),n=(S+b*P*T)/i,t=t=>p-Math.exp(-b*P*t)*(n*Math.sin(i*t)+T*Math.cos(i*t)),r=b*P*n+T*i,s=b*P*T-n*i,e=t=>Math.exp(-b*P*t)*(r*Math.sin(i*t)+s*Math.cos(i*t));else if(1===b){t=t=>p-Math.exp(-P*t)*(T+(S+P*T)*t);let i=S+P*T;e=t=>Math.exp(-P*t)*(P*i*t-S)}else{let i=P*Math.sqrt(b*b-1);t=t=>{let e=Math.exp(-b*P*t),n=Math.min(i*t,300);return p-e*((S+b*P*T)*Math.sinh(n)+i*T*Math.cosh(n))/i};let n=(S+b*P*T)/i,r=b*P*n-T*i,s=b*P*T-n*i;e=t=>{let e=Math.exp(-b*P*t),n=Math.min(i*t,300);return e*(r*Math.sinh(n)+s*Math.cosh(n))}}let E={calculatedDuration:w&&y||null,velocity:t=>tQ(e(t)),next:o=>{if(!w&&b<1){let t=Math.exp(-b*P*o),e=Math.sin(i*o),a=Math.cos(i*o),l=p-t*(n*e+T*a),u=tQ(t*(r*e+s*a));return m.done=Math.abs(u)<=h&&Math.abs(p-l)<=d,m.value=m.done?p:l,m}let a=t(o);if(w)m.done=o>=y;else{let t=tQ(e(o));m.done=Math.abs(t)<=h&&Math.abs(p-a)<=d}return m.value=m.done?p:a,m},toString:()=>{let t=Math.min(i7(E),2e4),e=eo(e=>E.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return E}function ns(t,e,i){let n=Math.max(e-5,0);return ev(i-t(n),e-n)}function no(t){let e,i,{keyframes:n,velocity:r=0,power:s=.8,timeConstant:o=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:u,min:h,max:d,restDelta:c=.5,restSpeed:p}=t,m=n[0],f={done:!1,value:m},v=t=>void 0!==h&&t<h||void 0!==d&&t>d,g=t=>void 0===h?d:void 0===d?h:Math.abs(h-t)<Math.abs(d-t)?h:d,y=s*r,x=m+y,w=void 0===u?x:u(x);w!==x&&(y=w-m);let S=t=>-y*Math.exp(-t/o),b=t=>w+S(t),T=t=>{let e=S(t),i=b(t);f.done=Math.abs(e)<=c,f.value=f.done?w:i},P=t=>{v(f.value)&&(e=t,i=nr({keyframes:[f.value,g(f.value)],velocity:ns(b,t,f.value),damping:a,stiffness:l,restDelta:c,restSpeed:p}))};return P(0),{calculatedDuration:null,next:t=>{let n=!1;return(i||void 0!==e||(n=!0,T(t),P(t)),void 0!==e&&t>=e)?i.next(t-e):(n||T(t),f)}}}nr.applyToOptions=t=>{let e=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,i=arguments.length>2?arguments[2]:void 0,n=i({...t,keyframes:[0,e]}),r=Math.min(i7(n),2e4);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:t0(r)}}(t,100,nr);return t.ease=e.ease,t.duration=tQ(e.duration),t.type="keyframes",t};let na=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function nl(t,e,i,n){if(t===e&&i===n)return tD;let r=e=>(function(t,e,i,n,r){let s,o;let a=0;do(s=na(o=e+(i-e)/2,n,r)-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:na(r(t),e,n)}let nu=nl(.42,0,1,1),nh=nl(0,0,.58,1),nd=nl(.42,0,.58,1),nc=t=>Array.isArray(t)&&"number"!=typeof t[0],np=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,nm=t=>e=>1-t(1-e),nf=nl(.33,1.53,.69,.99),nv=nm(nf),ng=np(nv),ny=t=>t>=1?1:(t*=2)<1?.5*nv(t):.5*(2-Math.pow(2,-10*(t-1))),nx=t=>1-Math.sin(Math.acos(t)),nw=nm(nx),nS=np(nx),nb={linear:tD,easeIn:nu,easeInOut:nd,easeOut:nh,circIn:nx,circInOut:nS,circOut:nw,backIn:nv,backInOut:ng,backOut:nf,anticipate:ny},nT=t=>"string"==typeof t,nP=t=>{if(er(t)){tl(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,r]=t;return nl(e,i,n,r)}return nT(t)?(tl(void 0!==nb[t],"Invalid easing type '".concat(t,"'"),"invalid-easing-type"),nb[t]):t},nA=(t,e,i)=>{let n=e-t;return n?(i-t)/n:1};function nE(t){let{duration:e=300,keyframes:i,times:n,ease:r="easeInOut"}=t,s=nc(r)?r.map(nP):nP(r),o={done:!1,value:i[0]},a=function(t,e){let{clamp:i=!0,ease:n,mixer:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=t.length;if(tl(s===e.length,"Both input and output ranges must be the same length","range-length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());
1let a=function(t,e,i){let n=[],r=i||tj.mix||i9,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=iX(Array.isArray(e)?e[i]||tD:e,s)),n.push(s)}return n}(e,n,r),u=a.length,h=i=>{if(o&&i<t[0])return e[0];let n=0;if(u>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=nA(t[n],t[n+1],i);return a[n](r)};return i?e=>h(l(t[0],t[s-1],e)):h}((n&&n.length===i.length?n:function(t){let e=[0];return function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=nA(0,e,n);t.push(eJ(i,1,r))}}(e,t.length-1),e}(i)).map(t=>t*e),i,{ease:Array.isArray(s)?s:i.map(()=>s||nd).splice(0,i.length-1)});return{calculatedDuration:e,next:t=>(o.value=a(t),o.done=t>=e,o)}}let nM={decay:no,inertia:no,tween:nE,keyframes:nE,spring:nr};function nC(t){"string"==typeof t.type&&(t.type=nM[t.type])}let nk=t=>t/100;class nR extends ei{initAnimation(){let{options:t}=this;nC(t);let{type:e=nE,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=t,{keyframes:o}=t,a=e||nE;a!==nE&&"number"!=typeof o[0]&&(this.mixKeyframes=iX(nk,i9(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===r&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=i7(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t){let e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{generator:n,totalDuration:r,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:u}=this;if(null===this.startTime)return n.next(0);let{delay:h=0,keyframes:d,repeat:c,repeatType:p,repeatDelay:m,type:f,onUpdate:v,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),i?this.currentTime=t:this.updateTime(t);let y=this.currentTime-h*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?y<0:y>r;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let w=this.currentTime,S=n;if(c){let t=Math.min(this.currentTime,r)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/a)):"mirror"===p&&(S=o)),w=l(0,1,i)*a}x?(this.delayState.value=d[0],e=this.delayState):e=S.next(w),s&&!x&&(e.value=s(e.value));let{done:b}=e;x||null===u||(b=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return T&&f!==no&&(e.value=ee(d,this.options,g,this.speed)),v&&v(e.value),T&&this.finish(),e}then(t,e){return this.finished.then(t,e)}get duration(){return t0(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t0(t)}get time(){return t0(this.currentTime)}set time(t){t=tQ(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return ns(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(ef.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=t0(this.currentTime))}play(){var t,e;if(this.isStopped)return;let{driver:i=i6,startTime:n}=this.options;this.driver||(this.driver=i(t=>this.tick(t))),null===(t=(e=this.options).onPlay)||void 0===t||t.call(e);let r=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=r):null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime||(this.startTime=null!=n?n:r),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ef.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,e;this.notifyFinished(),this.teardown(),this.state="finished",null===(t=(e=this.options).onComplete)||void 0===t||t.call(e)}cancel(){var t,e;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),null===(t=(e=this.options).onCancel)||void 0===t||t.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,en.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var e;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),null===(e=this.driver)||void 0===e||e.stop(),t.observe(this)}constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var t,e;let{motionValue:i}=this.options;
1i&&i.updatedAt!==ef.now()&&this.tick(ef.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),null===(t=(e=this.options).onStop)||void 0===t||t.call(e))},en.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}}let nV={anticipate:ny,backInOut:ng,circInOut:nS};class nD extends eh{updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!e)return;if(void 0!==t){e.set(t);return}let o=new nR({...s,autoplay:!1}),a=Math.max(10,ef.now()-this.startTime),u=l(0,10,a-10),h=o.sample(a).value,{name:d}=this.options;r&&d&&t4(r,d,h),e.setWithVelocity(o.sample(Math.max(0,a-u)).value,h,u),o.stop()}constructor(t){"string"==typeof t.ease&&t.ease in nV&&(t.ease=nV[t.ease]),nC(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}}let nj=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(O.test(t)||"0"===t)&&!t.startsWith("url("));function nF(t){t.duration=0,t.type="keyframes"}let nL=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,nB=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),n_=t9(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nO extends ei{onKeyframesResolved(t,e,i,n){var r,s;let o;this.keyframeResolver=void 0;let{name:a,type:l,velocity:u,delay:h,isHandoff:d,onUpdate:c}=i;this.resolvedAt=ef.now();let p=!0;!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=nj(r,e),a=nj(s,e);return ta(o===a,"You are trying to animate ".concat(e,' from "').concat(r,'" to "').concat(s,'". "').concat(o?s:r,'" is not an animatable value.'),"value-not-animatable"),!!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||eu(i))&&n)}(t,a,l,u)&&(p=!1,(tj.instantAnimations||!h)&&(null==c||c(ee(t,i,e))),t[0]=t[t.length-1],nF(i),i.repeat=0);let m={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},f=p&&!d&&function(t){var e;let{motionValue:i,name:n,repeatDelay:r,repeatType:s,damping:o,type:a,keyframes:l}=t;if(!((null==i?void 0:null===(e=i.owner)||void 0===e?void 0:e.current)instanceof HTMLElement))return!1;let{onUpdate:u,transformTemplate:h}=i.owner.getProps();return n_()&&n&&(ed.has(n)||nB.has(n)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&nL.test(t[e]))return!0;return!1}(l))&&("transform"!==n||!h)&&!u&&!r&&"mirror"!==s&&0!==o&&"inertia"!==a}(m),v=null===(s=m.motionValue)||void 0===s?void 0:null===(r=s.owner)||void 0===r?void 0:r.current;if(f)try{o=new nD({...m,element:v})}catch(t){o=new nR(m)}else o=new nR(m);o.finished.then(()=>{this.notifyFinished()}).catch(tD),this.pendingTimeline&&(this.stopTimeline=o.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=o}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){if(!this._animation){var t;null===(t=this.keyframeResolver)||void 0===t||t.resume(),tH=!0,tX(),tY(),tH=!1}return this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),null===(t=this.keyframeResolver)||void 0===t||t.cancel()}constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:o,name:a,motionValue:l,element:u,...h}){var d;super(),this.stop=()=>{var t,e;this._animation&&(this._animation.stop(),null===(e=this.stopTimeline)||void 0===e||e.call(this)),null===(t=this.keyframeResolver)||void 0===t||t.cancel()},this.createdAt=ef.now();let c={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,name:a,motionValue:l,element:u,...h},p=(null==u?void 0:u.KeyframeResolver)||tK;this.keyframeResolver=new p(o,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),a,l,u),null===(d=this.keyframeResolver)||void 0===d||d.scheduleResolve()}}let nI={type:"spring",stiffness:500,damping:25,restSpeed:10},nU=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),nz={type:"keyframes",duration:.8},nN={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nW=(t,e)=>{let{keyframes:i}=e;return i.length>2?nz:a.has(t)?t.startsWith("scale")?nU(i[1]):nI:nN},nH=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),nY=function(t,e,
1i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;return o=>{let a=iW(n,t)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=tQ(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:r};!function(t){for(let e in t)if(!nH.has(e))return!0;return!1}(a)&&Object.assign(h,nW(t,h)),h.duration&&(h.duration=tQ(h.duration)),h.repeatDelay&&(h.repeatDelay=tQ(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let d=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(nF(h),0!==h.delay||(d=!0)),(tj.instantAnimations||tj.skipAnimations||(null==r?void 0:r.shouldSkipAnimations)||a.skipAnimations)&&(d=!0,nF(h),h.delay=0),h.allowFlatten=!a.type&&!a.ease,d&&!s&&void 0!==e.get()){let t=ee(h.keyframes,a);if(void 0!==t){t_.update(()=>{h.onUpdate(t),h.onComplete()});return}}return a.isSync?new nR(h):new nO(h)}};function nX(t,e){let{delay:i=0,transitionOverride:n,type:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{transition:s,transitionEnd:o,...a}=e,l=t.getDefaultTransition(),u=null==(s=s?iN(s,l):l)?void 0:s.reduceMotion,h=null==s?void 0:s.skipAnimations;n&&(s=n);let d=[],c=r&&t.animationState&&t.animationState.getState()[r],p=null==s?void 0:s.path;for(let e in p&&p.animateVisualElement(t,a,s,i,d),a){var m;let n=t.getValue(e,null!==(m=t.latestValues[e])&&void 0!==m?m:null),r=a[e];if(void 0===r||c&&function(t,e){let{protectedKeys:i,needsAnimating:n}=t,r=i.hasOwnProperty(e)&&!0!==n[e];return n[e]=!1,r}(c,e))continue;let o={delay:i,...iW(s||{},e)};h&&(o.skipAnimations=!0);let l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(r)&&r===l&&!o.velocity){t_.update(()=>n.set(r));continue}let p=!1;if(window.MotionHandoffAnimation){let i=t.props[iL];if(i){let t=window.MotionHandoffAnimation(i,e,t_);null!==t&&(o.startTime=t,p=!0)}}iY(t,e);let f=null!=u?u:t.shouldReduceMotion;n.start(nY(e,n,r,f&&Q.has(e)?{type:!1}:o,t,p));let v=n.animation;v&&d.push(v)}if(o){let e=()=>t_.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=iz(t,e)||{};for(let e in r={...r,...i}){var s;let i=iH(s=r[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,ew(i))}}(t,o)});d.length?Promise.all(d).then(e):e()}return d}function nK(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(s,o):1===r?s*n:a-s*n}function nq(t,e){var i;let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=iz(t,e,"exit"===n.type?null===(i=t.presenceContext)||void 0===i?void 0:i.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);let o=r?()=>Promise.all(nX(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?function(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=arguments.length>6?arguments[6]:void 0,a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(nq(l,e,{...o,delay:i+("function"==typeof n?0:n)+nK(t.variantChildren,l,n,r,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,i,r,o,a,n)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([o(),a(n.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}let nG=eM.length;function nZ(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}let n$=[...eE].reverse(),nJ=eE.length;function nQ(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function n0(){return{animate:nQ(!0),whileInView:nQ(),whileHover:nQ(),whileTap:nQ(),whileDrag:nQ(),whileFocus:nQ(),exit:nQ()}}class n1 extends iU{updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();eP(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)}constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(e=>{let{animation:i,options:n}=e;return function(t,e){let i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.notify("AnimationStart",e),Array.isArray(e))i=Promise.all(e.map(e=>nq(t,e,n)));else if("string"==typeof e)i=nq(t,e,n);else{let r="function"==typeof e?iz(t,e,n.custom):e;i=Promise.all(nX(t,r,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}(t,i,n)})),i=n0(),n=!0,r=!1,s=e=>(i,n)=>{var r;let s=iz(t,n,"exit"===e?null===(r=t.presenceContext)||void 0===r?void 0:r.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function o(o){let{props:a}=t,l=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<nG;t++){let n=eM[t],r=e.props[n];(eA(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},u=[],h=new Set,d={},c=1/0;for(let e=0;e<nJ;e++){var p;let m=n$[e],f=i[m],v=void 0!==a[m]?a[m]:l[m],g=eA(v),y=m===o?f.isActive:null;!1===y&&(c=e);let x=v===l[m]&&v!==a[m]&&g;if(x&&(n||r)&&t.manuallyAnimateOnMount&&(x=!1),f.protectedKeys={...d},!f.isActive&&null===y||!v&&!f.prevProp||eP(v)||"boolean"==typeof v)continue;if("exit"===m&&f.isActive&&!0!==y){f.prevResolvedValues&&(d={...d,...f.prevResolvedValues});continue}let w=(p=f.prevProp,"string"==typeof v?v!==p:!!Array.isArray(v)&&!nZ(v,p)),S=w||m===o&&f.isActive&&!x&&g||e>c&&g,b=!1,T=Array.isArray(v)?v:[v],P=T.reduce(s(m),{});!1===y&&(P={});let{prevResolvedValues:A={}}=f,E={...A,...P},M=e=>{S=!0,h.has(e)&&(b=!0,h.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);
1i&&(i.liveStyle=!1)};for(let t in E){let e=P[t],i=A[t];if(!d.hasOwnProperty(t))(iH(e)&&iH(i)?!nZ(e,i)||w:e!==i)?null!=e?M(t):h.add(t):void 0!==e&&h.has(t)?M(t):f.protectedKeys[t]=!0}f.prevProp=v,f.prevResolvedValues=P,f.isActive&&(d={...d,...P}),(n||r)&&t.blockInitialAnimation&&(S=!1);let C=x&&w,k=!C||b;S&&k&&u.push(...T.map(e=>{let i={type:m};if("string"==typeof e&&(n||r)&&!C&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,r=iz(n,e);if(n.enteringChildren&&r){let{delayChildren:e}=r.transition||{};i.delay=nK(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof a.initial){let i=iz(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}h.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=null!=n?n:null}),u.push({animation:e})}let m=!!u.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(m=!1),n=!1,r=!1,m?e(u):Promise.resolve()}return{animateChanges:o,setActive:function(e,n){var r;if(i[e].isActive===n)return Promise.resolve();null===(r=t.variantChildren)||void 0===r||r.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,n)}),i[e].isActive=n;let s=o(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=n0(),r=!0}}}(t))}}let n2=0;class n3 extends iU{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;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)){let i=iz(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...r}=i;for(let t in r){var n;null===(n=this.node.getValue(t))||void 0===n||n.jump(r[t])}}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive("exit",!t);e&&!t&&r.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}constructor(){super(...arguments),this.id=n2++,this.isExitComplete=!1}}let n5={x:!1,y:!1};function n4(t){return[t("x"),t("y")]}function n9(t){return t.max-t.min}function n6(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;t.origin=n,t.originPoint=eJ(e.min,e.max,t.origin),t.scale=n9(i)/n9(e),t.translate=eJ(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function n7(t,e,i,n){n6(t.x,e.x,i.x,n?n.originX:void 0),n6(t.y,e.y,i.y,n?n.originY:void 0)}function n8(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=n?eJ(i.min,i.max,n):i.min;t.min=r+e.min,t.max=t.min+n9(e)}function rt(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=n?eJ(i.min,i.max,n):i.min;t.min=e.min-r,t.max=t.min+n9(e)}function re(t,e,i,n){rt(t.x,e.x,i.x,null==n?void 0:n.x),rt(t.y,e.y,i.y,null==n?void 0:n.y)}let ri=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),rn=new Set(["INPUT","SELECT","TEXTAREA"]);function rr(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}var rs=i(40660);function ro(t){return(0,rs.K)(t)&&"ownerSVGElement"in t}function ra(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){var n;let r=document;e&&(r=e.current);let s=null!==(n=null==i?void 0:i[t])&&void 0!==n?n:r.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(t=>null!=t)}let rl=new WeakMap,ru=(t,e,i)=>(n,r)=>r&&r[0]?r[0][t+"Size"]:ro(n)&&"getBBox"in n?n.getBBox()[e]:n[i],rh=ru("inline","width","offsetWidth"),rd=ru("block","height","offsetHeight");function rc(t){var e;let{target:i,borderBoxSize:n}=t;null===(e=rl.get(i))||void 0===e||e.forEach(t=>{t(i,{get width(){return rh(i,n)},get height(){return rd(i,n)}})})}function rp(t){t.forEach(rc)}let rm=new Set;function rf(t,e){return"function"==typeof t?(rm.add(t),s||(s=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};rm.forEach(e=>e(t))},window.addEventListener("resize",s)),()=>{rm.delete(t),rm.size||"function"!=typeof s||(window.removeEventListener("resize",s),s=void 0)}):function(t,e){r||"undefined"==typeof ResizeObserver||(r=new ResizeObserver(rp));let i=ra(t);return i.forEach(t=>{let i=rl.get(t);i||(i=new Set,rl.set(t,i)),i.add(e),null==r||r.observe(t)}),()=>{i.forEach(t=>{let i=rl.get(t);null==i||i.delete(e),(null==i?void 0:i.size)||null==r||r.unobserve(t)})}}(t,e)}let rv=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function rg(t){return{point:{x:t.pageX,y:t.pageY}}}let ry=t=>e=>rv(e)&&t(e,rg(e));function rx(t,e,i,n){return rr(t,e,ry(i),n)}let rw=t=>{let{current:e}=t;return e?e.ownerDocument.defaultView:null},rS=(t,e)=>Math.abs(t-e),rb=new Set(["auto","scroll"]);class rT{startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(rb.has(t.overflowX)||rb.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},r={x:n.x-e.x,y:n.y-e.y};(0!==r.x||0!==r.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(t,n),t_.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tO(this.updatePoint)}constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=rP(this.lastRawMoveEventInfo,this.transformPagePoint));let i=rE(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(rS(t.x,e.x)**2+rS(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=tI;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=rP(e,this.transformPagePoint),t_.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=rE("pointercancel"===t.type?this.lastMoveEventInfo:rP(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!rv(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;let a=rP(rg(t),this.transformPagePoint),{point:l}=a,{timestamp:u}=tI;this.history=[{...l,timestamp:u}];let{onSessionStart:h}=e;h&&h(t,rE(a,this.history)),this.removeListeners=iX(rx(this.contextWindow,"pointermove",this.handlePointerMove),rx(this.contextWindow,"pointerup",this.handlePointerUp),rx(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}}function rP(t,e){return e?{point:e(t.point)}:t}function rA(t,e){return{x:t.x-e.x,y:t.y-e.y}}function rE(t,e){let{point:i}=t;return{point:i,delta:rA(i,rM(e)),offset:rA(i,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=rM(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>tQ(e)));)i--;if(!n)return{x:0,y:0};n===t[0]&&t.length>2&&r.timestamp-n.timestamp>2*tQ(e)&&(n=t[1]);let s=t0(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s}
1;return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function rM(t){return t[t.length-1]}function rC(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 rk(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function rR(t,e,i){return{min:rV(t,e),max:rV(t,i)}}function rV(t,e){return"number"==typeof t?t:t[e]||0}let rD=new WeakMap;class rj{start(t){let{snapToCursor:e=!1,distanceThreshold:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new rT(t,{onSessionStart:t=>{e&&this.snapToCursor(rg(t).point),this.stopAnimation()},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===i||"y"===i?n5[i]?null:(n5[i]=!0,()=>{n5[i]=!1}):n5.x||n5.y?null:(n5.x=n5.y=!0,()=>{n5.x=n5.y=!1}),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),n4(t=>{let e=this.getAxisMotionValue(t).get()||0;if(T.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=n9(n);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),r&&t_.update(()=>r(t,e),!1,!0),iY(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&t_.update(()=>s(t,e),!1,!0)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})}},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,distanceThreshold:i,contextWindow:rw(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!n||!i)return;let{velocity:s}=n;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&t_.postRender(()=>o(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!rL(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,e,i){let{min:n,max:r}=e;return void 0!==n&&t<n?t=i?eJ(n,t,i.min):Math.max(t,n):void 0!==r&&t>r&&(t=i?eJ(r,t,i.max):Math.min(t,r)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,r=this.constraints;e&&i_(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,e){let{top:i,left:n,bottom:r,right:s}=e;return{x:rC(t.x,n,s),y:rC(t.y,i,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.35;return!1===t?t=0:!0===t&&(t=.35),{x:rR(t,"left","right"),y:rR(t,"top","bottom")}}(i),r!==this.constraints&&!i_(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&n4(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}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!i_(e))return!1;let n=e.current;tl(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());
1let s=function(t,e,i){let n=ia(t,i),{scroll:r}=e;return r&&(ii(n.x,r.offset.x),ii(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o={x:rk((t=r.layout.layoutBox).x,s.x),y:rk(t.y,s.y)};if(i){let t=i(function(t){let{x:e,y:i}=t;return{top:i.min,right:e.max,bottom:i.max,left:e.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=e5(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(n4(o=>{if(!rL(o,e,this.currentDirection))return;let l=a&&a[o]||{};(!0===s||s===o)&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return iY(this.visualElement,t),i.start(nY(t,i,0,e,this.visualElement,!1))}stopAnimation(){n4(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var e;let i="_drag".concat(t.toUpperCase());return this.visualElement.getProps()[i]||this.visualElement.getValue(t,null!==(e=this.visualElement.latestValues[t])&&void 0!==e?e:0)}snapToCursor(t){n4(e=>{let{drag:i}=this.getProps();if(!rL(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e],o=r.get()||0;r.set(t[e]-eJ(i,s,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!i_(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};n4(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=n9(t),r=n9(e);return r>n?i=nA(e.min,e.max-n,t.min):n>r&&(i=nA(t.min,t.max-r,e.min)),l(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),n4(e=>{if(!rL(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set(eJ(r,s,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;rD.set(this.visualElement,this);let e=this.visualElement.current,i=rx(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}=this.getProps(),r=t.target,s=r!==e&&(rn.has(r.tagName)||!0===r.isContentEditable);i&&n&&!s&&this.start(t)}),n=()=>{let{dragConstraints:i}=this.getProps();i_(i)&&i.current&&(this.constraints=this.resolveRefConstraints(),t||(t=function(t,e,i){let n=rf(t,rF(i)),r=rf(e,rF(i));return()=>{n(),r()}}(e,i.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,s=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),t_.read(n);let o=rr(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:i}=t;this.isDragging&&i&&(n4(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),i(),s(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}}function rF(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function rL(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class rB extends iU{mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tD}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}constructor(t){super(t),this.removeGroupControls=tD,this.removeListeners=tD,this.controls=new rj(t)}}let r_=t=>(e,i)=>{t&&t_.update(()=>t(e,i),!1,!0)};class rO extends iU{onPointerDown(t){this.session=new rT(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rw(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:r_(t),onStart:r_(e),onMove:r_(i),onEnd:(t,e)=>{delete this.session,n&&t_.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=rx(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}constructor(){super(...arguments),this.removePointerDownListener=tD}}let rI={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var rU=i(53177);let rz=!1;class rN extends iu.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),rz&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),rI.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,t.layoutDependency!==e&&s.setOptions({...s.options,layoutDependency:e}),rz=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==r?s.willUpdate():this.safeToRemove(),t.isPresent===r||(r?s.promote():s.relegate()||t_.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),ec.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;rz=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function rW(t){let[e,i]=(0,rU.oO)(),n=(0,iu.useContext)(ip.p);return(0,ic.jsx)(rN,{...t,layoutGroup:n,switchLayoutGroup:(0,iu.useContext)(iB),isPresent:e,safeToRemove:i})}let rH=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],rY=rH.length,rX=t=>
1"string"==typeof t?parseFloat(t):t,rK=t=>"number"==typeof t||P.test(t);function rq(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rG=r$(0,.5,nw),rZ=r$(.5,.95,tD);function r$(t,e,i){return n=>n<t?0:n>e?1:i(nA(t,e,n))}function rJ(t,e){t.min=e.min,t.max=e.max}function rQ(t,e){rJ(t.x,e.x),rJ(t.y,e.y)}function r0(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function r1(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function r2(t,e,i,n,r){let[s,o,a]=i;!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,r=arguments.length>4?arguments[4]:void 0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:t;if(T.test(e)&&(e=parseFloat(e),e=eJ(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=eJ(s.min,s.max,n);t===s&&(a-=e),t.min=r1(t.min,e,i,a,r),t.max=r1(t.max,e,i,a,r)}(t,e[s],e[o],e[a],e.scale,n,r)}let r3=["x","scaleX","originX"],r5=["y","scaleY","originY"];function r4(t,e,i,n){r2(t.x,e,r3,i?i.x:void 0,n?n.x:void 0),r2(t.y,e,r5,i?i.y:void 0,n?n.y:void 0)}function r9(t){return 0===t.translate&&1===t.scale}function r6(t){return r9(t.x)&&r9(t.y)}function r7(t,e){return t.min===e.min&&t.max===e.max}function r8(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function st(t,e){return r8(t.x,e.x)&&r8(t.y,e.y)}function se(t){return n9(t.x)/n9(t.y)}function si(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class sn{add(t){t1(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1!==n.isConnected||i.snapshot||(t2(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(t2(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){for(let i=this.members.indexOf(t)-1;i>=0;i--){var e;let t=this.members[i];if(!1!==t.isPresent&&(null===(e=t.instance)||void 0===e?void 0:e.isConnected)!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:r}=i.options,{layoutDependency:s}=t.options;if(void 0===r||r!==s){var n;t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),(null===(n=t.root)||void 0===n?void 0:n.isUpdating)&&(t.isLayoutDirty=!0)}!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var e,i,n,r,s;null===(e=(i=t.options).onExitComplete)||void 0===e||e.call(i),null===(r=t.resumingFrom)||void 0===r||null===(n=(s=r.options).onExitComplete)||void 0===n||n.call(s)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(null===(t=this.lead)||void 0===t?void 0:t.snapshot)&&(this.lead.snapshot=void 0)}constructor(){this.members=[]}}let sr=(t,e)=>t.depth-e.depth;class ss{add(t){t1(this.children,t),this.isDirty=!0}remove(t){t2(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(sr),this.isDirty=!1,this.children.forEach(t)}constructor(){this.children=[],this.isDirty=!1}}let so={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},sa=["","X","Y","Z"],sl=0;function su(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function sh(t){let{attachResizeListener:e,defaultParent:i,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}=t;return class{addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new t3),this.eventHandlers.get(t).add(e)}notifyListeners(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];let r=this.eventHandlers.get(t);r&&r.notify(...i)}hasListeners(t){return this.eventHandlers.has(t)}mount(t){if(this.instance)return;this.isSVG=ro(t)&&!(ro(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:i,layout:n,visualElement:r}=this.options;if(r&&!r.current&&r.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),e){let i;let n=0,r=()=>this.root.updateBlockedByResize=!1;t_.read(()=>{n=window.innerWidth}),e(t,()=>{let t=window.innerWidth;t!==n&&(n=t,this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=ef.now(),n=r=>{let{timestamp:s}=r,o=s-i;o>=e&&(tO(n),t(o-e))};return t_.setup(n,!0),()=>tO(n)}(r,250),rI.hasAnimatedSinceResize&&(rI.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(sS)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||n)&&this.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:i,hasRelativeLayoutChanged:n,layout:s}=t;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||r.getDefaultTransition()||sk,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=r.getProps(),u=!this.targetLayout||!st(this.targetLayout,s),h=!i&&n;if(this.options.layoutRoot||this.resumeFrom||h||i&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...iW(o,"layout"),onPlay:a,onComplete:l};(r.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,h,t.path)}else i||sS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}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,this.eventHandlers.clear(),tO(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(sP),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[iL];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",t_,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),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,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(sg),this.nodes.forEach(sv);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(sy);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(sx),this.nodes.forEach(sw),this.nodes.forEach(sd),this.nodes.forEach(sc)):this.nodes.forEach(sy),this.clearAllSnapshots();let t=ef.now();tI.delta=l(0,1e3/60,t-tI.timestamp),tI.timestamp=t,tI.isProcessing=!0,tU.update.process(tI),tU.preRender.process(tI),tU.render.process(tI),tI.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ec.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sf),this.sharedNodes.forEach(sA)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,t_.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){t_.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||n9(this.snapshot.measuredBox.x)||n9(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}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.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=$()),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(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=r(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!r6(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||e6(this.latestValues)||r)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(){var t;let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],i=this.measurePageBox(),n=this.removeElementScroll(i);return e&&(n=this.removeTransform(n)),sD((t=n).x),sD(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return $();let i=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(sF))){let{scroll:t}=this.root;t&&(ii(i.x,t.offset.x),ii(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=$();if(rQ(i,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let n=this.path[e],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&rQ(i,t),ii(i.x,r.offset.x),ii(i.y,r.offset.y))}return i}applyTransform(t){var e,i;let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0,s=r||$();rQ(s,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(ii(s.x,-i.scroll.offset.x),ii(s.y,-i.scroll.offset.y)),e6(i.latestValues)&&io(s,i.latestValues,null===(e=i.layout)||void 0===e?void 0:e.layoutBox)}return e6(this.latestValues)&&io(s,this.latestValues,null===(i=this.layout)||void 0===i?void 0:i.layoutBox),s}removeTransform(t){let e=$();rQ(e,t);for(let t=0;t<this.path.length;t++){var i;let n;let r=this.path[t];e6(r.latestValues)&&(r.instance&&(e9(r.latestValues)&&r.updateSnapshot(),rQ(n=$(),r.measurePageBox())),r4(e,r.latestValues,null===(i=r.snapshot)||void 0===i?void 0:i.layoutBox,n))}return e6(this.latestValues)&&r4(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!==tI.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(){var t,e,i,n,r;let s=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let a=!!this.resumingFrom||this!==o;if(!(s||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:l,layoutId:u}=this.options;if(!this.layout||!(l||u))return;this.resolvedRelativeTargetAt=tI.timestamp;let h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&((this.target||(this.target=$(),this.targetWithTransforms=$()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),e=this.target,i=this.relativeTarget,n=this.relativeParent.target,r=this.options.layoutAnchor||void 0,n8(e.x,i.x,n.x,null==r?void 0:r.x),n8(e.y,i.y,n.y,null==r?void 0:r.y
1)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):rQ(this.target,this.layout.layoutBox),ie(this.target,this.targetDelta)):rQ(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&1!==this.animationProgress?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0),tL.value&&so.calculatedTargetDeltas++)}getClosestProjectingParent(){return!this.parent||e9(this.parent.latestValues)||e7(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$(),this.relativeTargetOrigin=$(),re(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),rQ(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(n=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===tI.timestamp&&(n=!1),n)return;let{layout:r,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||!(r||s))return;rQ(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,i){let n,r,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=i.length;if(o){e.x=e.y=1;for(let l=0;l<o;l++){r=(n=i[l]).projectionDelta;let{visualElement:o}=n.options;if((!o||!o.props.style||"contents"!==o.props.style.display)&&(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(ii(t.x,-n.scroll.offset.x),ii(t.y,-n.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,ie(t,r)),s&&e6(n.latestValues))){var a;io(t,n.latestValues,null===(a=n.layout)||void 0===a?void 0:a.layoutBox)}}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=$());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(r0(this.prevProjectionDelta.x,this.projectionDelta.x),r0(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),n7(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&si(this.projectionDelta.x,this.prevProjectionDelta.x)&&si(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),tL.value&&so.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){var t;let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=G(),this.projectionDelta=G(),this.projectionDeltaWithTransform=G()}setAnimationOrigin(t){let e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=this.snapshot,s=r?r.latestValues:{},o={...this.latestValues},a=G();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let l=$(),u=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),d=!h||h.members.length<=1,c=!!(u&&!d&&!0===this.options.crossfade&&!this.path.some(sC));this.animationProgress=0;let p=null==n?void 0:n.interpolateProjection(t);this.mixTargetDelta=i=>{let n=i/1e3,r=null==p?void 0:p(n);if(r?(a.x.translate=r.x,a.x.scale=eJ(t.x.scale,1,n),a.x.origin=t.x.origin,a.x.originPoint=t.x.originPoint,a.y.translate=r.y,a.y.scale=eJ(t.y.scale,1,n),a.y.origin=t.y.origin,a.y.originPoint=t.y.originPoint):(sE(a.x,t.x,n),sE(a.y,t.y,n)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,m,f,v;re(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,v=this.relativeTargetOrigin,sM(f.x,v.x,l.x,n),sM(f.y,v.y,l.y,n),e&&(h=this.relativeTarget,m=e,r7(h.x,m.x)&&r7(h.y,m.y))&&(this.isProjectionDirty=!1),e||(e=$()),rQ(e,this.relativeTarget)}
1u&&(this.animationValues=o,function(t,e,i,n,r,s){var o,a,l,u;r?(t.opacity=eJ(0,null!==(o=i.opacity)&&void 0!==o?o:1,rG(n)),t.opacityExit=eJ(null!==(a=e.opacity)&&void 0!==a?a:1,0,rZ(n))):s&&(t.opacity=eJ(null!==(l=e.opacity)&&void 0!==l?l:1,null!==(u=i.opacity)&&void 0!==u?u:1,n));for(let r=0;r<rY;r++){let s=rH[r],o=rq(e,s),a=rq(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||rK(o)===rK(a)?(t[s]=Math.max(eJ(rX(o),rX(a),n),0),(T.test(a)||T.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=eJ(e.rotate||0,i.rotate||0,n))}(o,s,this.latestValues,n,c,d)),r&&void 0!==r.rotate&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){var e,i,n;this.notifyListeners("animationStart"),null===(e=this.currentAnimation)||void 0===e||e.stop(),null===(n=this.resumingFrom)||void 0===n||null===(i=n.currentAnimation)||void 0===i||i.stop(),this.pendingAnimation&&(tO(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=t_.update(()=>{rI.hasAnimatedSinceResize=!0,en.layout++,this.motionValue||(this.motionValue=ew(0)),this.motionValue.jump(0,!1),this.currentAnimation=function(t,e,i){let n=J(t)?t:ew(t);return n.start(nY("",n,e,i)),n.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{en.layout--},onComplete:()=>{en.layout--,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:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&sj(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||$();let e=n9(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=n9(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}rQ(e,i),io(e,r),n7(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new sn),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(){let{needsReset:t,transition:e,preserveFollowOpacity:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.getStack();n&&n.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 n={};i.z&&su("z",t,n,this.animationValues);for(let e=0;e<sa.length;e++)su("rotate".concat(sa[e]),t,n,this.animationValues),su("skew".concat(sa[e]),t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=iA(null==e?void 0:e.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=iA(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!e6(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let r=n.animationValues||n.latestValues;this.applyTransformsToTarget();
1let s=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((r||s||o)&&(n="translate3d(".concat(r,"px, ").concat(s,"px, ").concat(o,"px) ")),(1!==e.x||1!==e.y)&&(n+="scale(".concat(1/e.x,", ").concat(1/e.y,") ")),i){let{transformPerspective:t,rotate:e,pathRotation:r,rotateX:s,rotateY:o,skewX:a,skewY:l}=i;t&&(n="perspective(".concat(t,"px) ").concat(n)),e&&(n+="rotate(".concat(e,"deg) ")),r&&(n+="rotate(".concat(r,"deg) ")),s&&(n+="rotateX(".concat(s,"deg) ")),o&&(n+="rotateY(".concat(o,"deg) ")),a&&(n+="skewX(".concat(a,"deg) ")),l&&(n+="skewY(".concat(l,"deg) "))}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+="scale(".concat(a,", ").concat(l,")")),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);i&&(s=i(r,s)),t.transform=s;let{x:o,y:a}=this.projectionDelta;if(t.transformOrigin="".concat(100*o.origin,"% ").concat(100*a.origin,"% 0"),n.animationValues){var l,u;t.opacity=n===this?null!==(u=null!==(l=r.opacity)&&void 0!==l?l:this.latestValues.opacity)&&void 0!==u?u:1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit}else t.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0;for(let e in eQ){if(void 0===r[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=eQ[e],l="none"===s?r[e]:i(r[e],n);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?iA(null==e?void 0:e.pointerEvents)||"":"none")}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(sv),this.root.sharedNodes.clear()}constructor(t={},e=null==i?void 0:i()){this.id=sl++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,tL.value&&(so.nodes=so.calculatedTargetDeltas=so.calculatedProjections=0),this.nodes.forEach(sp),this.nodes.forEach(sb),this.nodes.forEach(sT),this.nodes.forEach(sm),tL.addProjectionMetrics&&tL.addProjectionMetrics(so)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=e?e.root||e:this,this.path=e?[...e.path,e]:[],this.parent=e,this.depth=e?e.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new ss)}}}function sd(t){t.updateLayout()}function sc(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:n}=t.layout,{animationType:r}=t.options,s=i.source!==t.layout.source;if("size"===r)n4(t=>{let n=s?i.measuredBox[t]:i.layoutBox[t],r=n9(n);n.min=e[t].min,n.max=n.min+r});else if("x"===r||"y"===r){let t="x"===r?"y":"x";rJ(s?i.measuredBox[t]:i.layoutBox[t],e[t])}else sj(r,i.layoutBox,e)&&n4(n=>{let r=s?i.measuredBox[n]:i.layoutBox[n],o=n9(e[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=G();n7(o,e,i.layoutBox);let a=G();s?n7(a,t.applyTransform(n,!0),i.measuredBox):n7(a,e,i.layoutBox);let l=!r6(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;
1if(r&&s){let o=t.options.layoutAnchor||void 0,a=$();re(a,i.layoutBox,r.layoutBox,o);let l=$();re(l,e,s.layoutBox,o),st(a,l)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function sp(t){tL.value&&so.nodes++,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 sm(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function sf(t){t.clearSnapshot()}function sv(t){t.clearMeasurements()}function sg(t){t.isLayoutDirty=!0,t.updateLayout()}function sy(t){t.isLayoutDirty=!1}function sx(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function sw(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function sS(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function sb(t){t.resolveTargetDelta()}function sT(t){t.calcProjection()}function sP(t){t.resetSkewAndRotation()}function sA(t){t.removeLeadSnapshot()}function sE(t,e,i){t.translate=eJ(e.translate,0,i),t.scale=eJ(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function sM(t,e,i,n){t.min=eJ(e.min,i.min,n),t.max=eJ(e.max,i.max,n)}function sC(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let sk={duration:.45,ease:[.4,0,.1,1]},sR=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),sV=sR("applewebkit/")&&!sR("chrome/")?Math.round:tD;function sD(t){t.min=sV(t.min),t.max=sV(t.max)}function sj(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(se(e)-se(i)))}function sF(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}let sL=sh({attachResizeListener:(t,e)=>rr(t,"resize",e),measureScroll:()=>{var t,e;return{x:document.documentElement.scrollLeft||(null===(t=document.body)||void 0===t?void 0:t.scrollLeft)||0,y:document.documentElement.scrollTop||(null===(e=document.body)||void 0===e?void 0:e.scrollTop)||0}},checkIsScrollRoot:()=>!0}),sB={current:void 0},s_=sh({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!sB.current){let t=new sL({});t.mount(window),t.setOptions({layoutScroll:!0}),sB.current=t}return sB.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function sO(t,e){let i=ra(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function sI(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&t_.postRender(()=>r(e,rg(e)))}class sU extends iU{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},[n,r,s]=sO(t,i);return n.forEach(t=>{let i,n=!1,s=!1,o=()=>{t.removeEventListener("pointerleave",u)},a=t=>{i&&(i(t),i=void 0),o()},l=t=>{n=!1,window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",l),s&&(s=!1,a(t))},u=t=>{if("touch"!==t.pointerType){if(n){s=!0;return}a(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||n5.x||n5.y)return;s=!1;let o=e(t,n);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",u,r))},r),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",l,r),window.addEventListener("pointercancel",l,r)},r)}),s}(t,(t,e)=>(sI(this.node,e,"Start"),t=>sI(this.node,t,"End"))))}unmount(){}}class sz extends iU{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=iX(rr(this.node.current,"focus",()=>this.onFocus()),rr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}constructor(){super(...arguments),this.isActive=!1}}var sN=i(4205);let sW=(t,e)=>!!e&&(t===e||sW(t,e.parentElement)),sH=new WeakSet;function sY(t){return e=>{"Enter"===e.key&&t(e)}}function sX(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let sK=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=sY(()=>{if(sH.has(i))return;sX(i,"down");let t=sY(()=>{sX(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>sX(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function sq(t){return rv(t)&&!(n5.x||n5.y)}
1let sG=new WeakSet;function sZ(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&t_.postRender(()=>r(e,rg(e)))}class s$ extends iU{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},[n,r,s]=sO(t,i),o=t=>{let n=t.currentTarget;if(!sq(t)||sG.has(t))return;sH.add(n),i.stopPropagation&&sG.add(t);let s=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),sH.has(n)&&sH.delete(n),sq(t)&&"function"==typeof s&&s(t,{success:e})},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||sW(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),(0,sN.R)(t)&&(t.addEventListener("focus",t=>sK(t,r)),ri.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(sZ(this.node,e,"Start"),(t,e)=>{let{success:i}=e;return sZ(this.node,t,i?"End":"Cancel")}),{useGlobalTarget:e,stopPropagation:(null==i?void 0:i.tap)===!1})}unmount(){}}let sJ=new WeakMap,sQ=new WeakMap,s0=t=>{let e=sJ.get(t.target);e&&e(t)},s1=t=>{t.forEach(s0)},s2={some:0,all:1};class s3 extends iU{startObserver(){var t;null===(t=this.stopObserver)||void 0===t||t.call(this);let{viewport:e={}}=this.node.getProps(),{root:i,margin:n,amount:r="some",once:s}=e,o={root:i?i.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:s2[r]};this.stopObserver=function(t,e,i){let n=function(t){let{root:e,...i}=t,n=e||document;sQ.has(n)||sQ.set(n,{});let r=sQ.get(n),s=JSON.stringify(i);return r[s]||(r[s]=new IntersectionObserver(s1,{root:e,...i})),r[s]}(e);return sJ.set(t,i),n.observe(t),()=>{sJ.delete(t),n.unobserve(t)}}(this.node.current,o,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,s&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),r=e?i:n;r&&r(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function(t){let{viewport:e={}}=t,{viewport:i={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=>e[t]!==i[t]}(t,e))&&this.startObserver()}unmount(){var t;null===(t=this.stopObserver)||void 0===t||t.call(this),this.hasEnteredView=!1,this.isInView=!1}constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}}let s5=function(t,e){if("undefined"==typeof Proxy)return iI;let i=new Map,n=(i,n)=>iI(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(r,s)=>"create"===s?n:(i.has(s)||i.set(s,iI(s,void 0,t,e)),i.get(s))})}({animation:{Feature:n1},exit:{Feature:n3},inView:{Feature:s3},tap:{Feature:s$},focus:{Feature:sz},hover:{Feature:sU},pan:{Feature:rO},drag:{Feature:rB,ProjectionNode:s_,MeasureLayout:rW},layout:{ProjectionNode:s_,MeasureLayout:rW}},(t,e)=>{var i;return(null!==(i=e.isSVG)&&void 0!==i?i:id(t))?new e3(e):new il(e,{allowProjection:t!==iu.Fragment})})},72435:function(t,e,i){"use strict";i.d(e,{h:function(){return r}});var n=i(64090);function r(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},77979:function(t,e,i){"use strict";i.d(e,{L:function(){return n}});let n=i(64090).useLayoutEffect},4205:function(t,e,i){"use strict";i.d(e,{R:function(){return r}});var n=i(40660);function r(t){return(0,n.K)(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}},40660:function(t,e,i){"use strict";i.d(e,{K:function(){return n}});let n=t=>"object"==typeof t&&null!==t}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.