HEX
Server: LiteSpeed
System: Linux venus 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: axxoncom (1007)
PHP: 8.3.19
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/axxoncom/domains/draqee.com/public_html/wp-content/plugins/better-wp-security/dist/4423.js
"use strict";(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[4423],{2809:(t,e,n)=>{n.d(e,{A:()=>o});var i=n(51609),s=n(55933);const o=(0,i.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(s.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"}))},11973:(t,e,n)=>{n.d(e,{xQ:()=>o});var i=n(51609),s=n(14394);function o(t=!0){const e=(0,i.useContext)(s.t);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:o,register:r}=e,a=(0,i.useId)();(0,i.useEffect)((()=>{t&&r(a)}),[t]);const l=(0,i.useCallback)((()=>t&&o&&o(a)),[a,o,t]);return!n&&o?[!1,l]:[!0]}},14394:(t,e,n)=>{n.d(e,{t:()=>i});const i=(0,n(51609).createContext)(null)},17348:(t,e,n)=>{n.d(e,{A:()=>o});var i=n(51609),s=n(55933);const o=(0,i.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(s.Path,{d:"M9 13.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3zM9 16a4.002 4.002 0 003.8-2.75H15V16h2.5v-2.75H19v-2.5h-6.2A4.002 4.002 0 005 12a4 4 0 004 4z",fillRule:"evenodd",clipRule:"evenodd"}))},20200:(t,e,n)=>{n.d(e,{l:()=>i});const i=t=>t},23175:(t,e,n)=>{n.d(e,{A:()=>o});var i=n(51609),s=n(55933);const o=(0,i.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(s.Path,{d:"M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"}))},25084:(t,e,n)=>{n.d(e,{N:()=>g});var i=n(74848),s=n(51609),o=n(83006),r=n(49474),a=n(14394),l=n(60987);class u extends s.Component{getSnapshotBeforeUpdate(t){const e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){const t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function c({children:t,isPresent:e}){const n=(0,s.useId)(),o=(0,s.useRef)(null),r=(0,s.useRef)({width:0,height:0,top:0,left:0}),{nonce:a}=(0,s.useContext)(l.Q);return(0,s.useInsertionEffect)((()=>{const{width:t,height:i,top:s,left:l}=r.current;if(e||!o.current||!t||!i)return;o.current.dataset.motionPopId=n;const u=document.createElement("style");return a&&(u.nonce=a),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`\n          [data-motion-pop-id="${n}"] {\n            position: absolute !important;\n            width: ${t}px !important;\n            height: ${i}px !important;\n            top: ${s}px !important;\n            left: ${l}px !important;\n          }\n        `),()=>{document.head.removeChild(u)}}),[e]),(0,i.jsx)(u,{isPresent:e,childRef:o,sizeRef:r,children:s.cloneElement(t,{ref:o})})}const h=({children:t,initial:e,isPresent:n,onExitComplete:o,custom:l,presenceAffectsLayout:u,mode:h})=>{const p=(0,r.M)(d),m=(0,s.useId)(),f=(0,s.useCallback)((t=>{p.set(t,!0);for(const t of p.values())if(!t)return;o&&o()}),[p,o]),v=(0,s.useMemo)((()=>({id:m,initial:e,isPresent:n,custom:l,onExitComplete:f,register:t=>(p.set(t,!1),()=>p.delete(t))})),u?[Math.random(),f]:[n,f]);return(0,s.useMemo)((()=>{p.forEach(((t,e)=>p.set(e,!1)))}),[n]),s.useEffect((()=>{!n&&!p.size&&o&&o()}),[n]),"popLayout"===h&&(t=(0,i.jsx)(c,{isPresent:n,children:t})),(0,i.jsx)(a.t.Provider,{value:v,children:t})};function d(){return new Map}var p=n(11973);const m=t=>t.key||"";function f(t){const e=[];return s.Children.forEach(t,(t=>{(0,s.isValidElement)(t)&&e.push(t)})),e}var v=n(63797);const g=({children:t,custom:e,initial:n=!0,onExitComplete:a,presenceAffectsLayout:l=!0,mode:u="sync",propagate:c=!1})=>{const[d,g]=(0,p.xQ)(c),y=(0,s.useMemo)((()=>f(t)),[t]),x=c&&!d?[]:y.map(m),w=(0,s.useRef)(!0),P=(0,s.useRef)(y),T=(0,r.M)((()=>new Map)),[S,b]=(0,s.useState)(y),[A,E]=(0,s.useState)(y);(0,v.E)((()=>{w.current=!1,P.current=y;for(let t=0;t<A.length;t++){const e=m(A[t]);x.includes(e)?T.delete(e):!0!==T.get(e)&&T.set(e,!1)}}),[A,x.length,x.join("-")]);const V=[];if(y!==S){let t=[...y];for(let e=0;e<A.length;e++){const n=A[e],i=m(n);x.includes(i)||(t.splice(e,0,n),V.push(n))}return"wait"===u&&V.length&&(t=V),E(f(t)),void b(y)}const{forceRender:M}=(0,s.useContext)(o.L);return(0,i.jsx)(i.Fragment,{children:A.map((t=>{const s=m(t),o=!(c&&!d)&&(y===A||x.includes(s));return(0,i.jsx)(h,{isPresent:o,initial:!(w.current&&!n)&&void 0,custom:o?void 0:e,presenceAffectsLayout:l,mode:u,onExitComplete:o?void 0:()=>{if(!T.has(s))return;T.set(s,!0);let t=!0;T.forEach((e=>{e||(t=!1)})),t&&(null==M||M(),E(P.current),c&&(null==g||g()),a&&a())},children:t},s)}))})}},37901:(t,e,n)=>{function i(t){if("undefined"==typeof Proxy)return t;const e=new Map;return new Proxy(((...e)=>t(...e)),{get:(n,i)=>"create"===i?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}function s(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}n.d(e,{P:()=>Sr});const o=t=>Array.isArray(t);function r(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function a(t){return"string"==typeof t||Array.isArray(t)}function l(t){const e=[{},{}];return null==t||t.values.forEach(((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()})),e}function u(t,e,n,i){if("function"==typeof e){const[s,o]=l(i);e=e(void 0!==n?n:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){const[s,o]=l(i);e=e(void 0!==n?n:t.custom,s,o)}return e}function c(t,e,n){const i=t.getProps();return u(i,e,void 0!==n?n:i.custom,t)}const h=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],d=["initial",...h];function p(t,e){return t?t[e]||t.default||t:void 0}const m=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],f=new Set(m),v=new Set(["width","height","top","left","right","bottom",...m]);var g=n(84192);function y(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,g.OQ)(n))}const x=t=>Boolean(t&&t.getVelocity);function w(t,e){const n=t.getValue("willChange");if(i=n,Boolean(x(i)&&i.add))return n.add(e);var i}const P=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),T="data-"+P("framerAppearId");function S(t){return t.props[T]}function b(t){let e;return()=>(void 0===e&&(e=t()),e)}const A=b((()=>void 0!==window.ScrollTimeline));class E{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map((t=>"finished"in t?t.finished:t)))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=e}attachTimeline(t,e){const n=this.animations.map((n=>A()&&n.attachTimeline?n.attachTimeline(t):"function"==typeof e?e(n):void 0));return()=>{n.forEach(((t,e)=>{t&&t(),this.animations[e].stop()}))}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach((e=>e[t]()))}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class V extends E{then(t,e){return Promise.all(this.animations).then(t).catch(e)}}const M=t=>1e3*t,C=t=>t/1e3;var D=n(87697),k=n(73627);var R=n(20200);function L(t){return"function"==typeof t}function B(t,e){t.timeline=e,t.onfinish=null}const j=t=>Array.isArray(t)&&"number"==typeof t[0],F={linearEasing:void 0};function O(t,e){const n=b(t);return()=>{var t;return null!==(t=F[e])&&void 0!==t?t:n()}}const I=O((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),"linearEasing"),U=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i},G=(t,e,n=10)=>{let i="";const s=Math.max(Math.round(e/n),2);for(let e=0;e<s;e++)i+=t(U(0,s-1,e))+", ";return`linear(${i.substring(0,i.length-2)})`};function z(t){return Boolean("function"==typeof t&&I()||!t||"string"==typeof t&&(t in $||I())||j(t)||Array.isArray(t)&&t.every(z))}const W=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,$={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:W([0,.65,.55,1]),circOut:W([.55,0,1,.45]),backIn:W([.31,.01,.66,-.59]),backOut:W([.33,1.53,.69,.99])};function N(t,e){return t?"function"==typeof t&&I()?G(t,e):j(t)?W(t):Array.isArray(t)?t.map((t=>N(t,e)||$.easeOut)):$[t]:void 0}const H=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function K(t,e,n,i){if(t===e&&n===i)return R.l;return s=>0===s||1===s?s:H(function(t,e,n,i,s){let o,r,a=0;do{r=e+(n-e)/2,o=H(r,i,s)-t,o>0?n=r:e=r}while(Math.abs(o)>1e-7&&++a<12);return r}(s,0,1,t,n),e,i)}const Y=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,X=t=>e=>1-t(1-e),q=K(.33,1.53,.69,.99),Q=X(q),Z=Y(Q),_=t=>(t*=2)<1?.5*Q(t):.5*(2-Math.pow(2,-10*(t-1))),J=t=>1-Math.sin(Math.acos(t)),tt=X(J),et=Y(J),nt=t=>/^0[^.\s]+$/u.test(t),it=(t,e,n)=>n>e?e:n<t?t:n,st={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},ot={...st,transform:t=>it(0,1,t)},rt={...st,default:1},at=t=>Math.round(1e5*t)/1e5,lt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,ut=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ct=(t,e)=>n=>Boolean("string"==typeof n&&ut.test(n)&&n.startsWith(t)||e&&!function(t){return null==t}(n)&&Object.prototype.hasOwnProperty.call(n,e)),ht=(t,e,n)=>i=>{if("string"!=typeof i)return i;const[s,o,r,a]=i.match(lt);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(r),alpha:void 0!==a?parseFloat(a):1}},dt={...st,transform:t=>Math.round((t=>it(0,255,t))(t))},pt={test:ct("rgb","red"),parse:ht("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+dt.transform(t)+", "+dt.transform(e)+", "+dt.transform(n)+", "+at(ot.transform(i))+")"},mt={test:ct("#"),parse:function(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}},transform:pt.transform},ft=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),vt=ft("deg"),gt=ft("%"),yt=ft("px"),xt=ft("vh"),wt=ft("vw"),Pt={...gt,parse:t=>gt.parse(t)/100,transform:t=>gt.transform(100*t)},Tt={test:ct("hsl","hue"),parse:ht("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+gt.transform(at(e))+", "+gt.transform(at(n))+", "+at(ot.transform(i))+")"},St={test:t=>pt.test(t)||mt.test(t)||Tt.test(t),parse:t=>pt.test(t)?pt.parse(t):Tt.test(t)?Tt.parse(t):mt.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?pt.transform(t):Tt.transform(t)},bt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,At="number",Et="color",Vt=/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 Mt(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},s=[];let o=0;const r=e.replace(Vt,(t=>(St.test(t)?(i.color.push(o),s.push(Et),n.push(St.parse(t))):t.startsWith("var(")?(i.var.push(o),s.push("var"),n.push(t)):(i.number.push(o),s.push(At),n.push(parseFloat(t))),++o,"${}"))).split("${}");return{values:n,split:r,indexes:i,types:s}}function Ct(t){return Mt(t).values}function Dt(t){const{split:e,types:n}=Mt(t),i=e.length;return t=>{let s="";for(let o=0;o<i;o++)if(s+=e[o],void 0!==t[o]){const e=n[o];s+=e===At?at(t[o]):e===Et?St.transform(t[o]):t[o]}return s}}const kt=t=>"number"==typeof t?0:t,Rt={test:function(t){var e,n;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(lt))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(bt))||void 0===n?void 0:n.length)||0)>0},parse:Ct,createTransformer:Dt,getAnimatableNone:function(t){const e=Ct(t);return Dt(t)(e.map(kt))}},Lt=new Set(["brightness","contrast","saturate","opacity"]);function Bt(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(lt)||[];if(!i)return t;const s=n.replace(i,"");let o=Lt.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+s+")"}const jt=/\b([a-z-]*)\(.*?\)/gu,Ft={...Rt,getAnimatableNone:t=>{const e=t.match(jt);return e?e.map(Bt).join(" "):t}},Ot={borderWidth:yt,borderTopWidth:yt,borderRightWidth:yt,borderBottomWidth:yt,borderLeftWidth:yt,borderRadius:yt,radius:yt,borderTopLeftRadius:yt,borderTopRightRadius:yt,borderBottomRightRadius:yt,borderBottomLeftRadius:yt,width:yt,maxWidth:yt,height:yt,maxHeight:yt,top:yt,right:yt,bottom:yt,left:yt,padding:yt,paddingTop:yt,paddingRight:yt,paddingBottom:yt,paddingLeft:yt,margin:yt,marginTop:yt,marginRight:yt,marginBottom:yt,marginLeft:yt,backgroundPositionX:yt,backgroundPositionY:yt},It={rotate:vt,rotateX:vt,rotateY:vt,rotateZ:vt,scale:rt,scaleX:rt,scaleY:rt,scaleZ:rt,skew:vt,skewX:vt,skewY:vt,distance:yt,translateX:yt,translateY:yt,translateZ:yt,x:yt,y:yt,z:yt,perspective:yt,transformPerspective:yt,opacity:ot,originX:Pt,originY:Pt,originZ:yt},Ut={...st,transform:Math.round},Gt={...Ot,...It,zIndex:Ut,size:yt,fillOpacity:ot,strokeOpacity:ot,numOctaves:Ut},zt={...Gt,color:St,backgroundColor:St,outlineColor:St,fill:St,stroke:St,borderColor:St,borderTopColor:St,borderRightColor:St,borderBottomColor:St,borderLeftColor:St,filter:Ft,WebkitFilter:Ft},Wt=t=>zt[t];function $t(t,e){let n=Wt(t);return n!==Ft&&(n=Rt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Nt=new Set(["auto","none","0"]),Ht=t=>t===st||t===yt,Kt=(t,e)=>parseFloat(t.split(", ")[e]),Yt=(t,e)=>(n,{transform:i})=>{if("none"===i||!i)return 0;const s=i.match(/^matrix3d\((.+)\)$/u);if(s)return Kt(s[1],e);{const e=i.match(/^matrix\((.+)\)$/u);return e?Kt(e[1],t):0}},Xt=new Set(["x","y","z"]),qt=m.filter((t=>!Xt.has(t))),Qt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Yt(4,13),y:Yt(5,14)};Qt.translateX=Qt.x,Qt.translateY=Qt.y;const Zt=new Set;let _t=!1,Jt=!1;function te(){if(Jt){const t=Array.from(Zt).filter((t=>t.needsMeasurement)),e=new Set(t.map((t=>t.element))),n=new Map;e.forEach((t=>{const e=function(t){const e=[];return qt.forEach((n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))})),e}(t);e.length&&(n.set(t,e),t.render())})),t.forEach((t=>t.measureInitialState())),e.forEach((t=>{t.render();const e=n.get(t);e&&e.forEach((([e,n])=>{var i;null===(i=t.getValue(e))||void 0===i||i.set(n)}))})),t.forEach((t=>t.measureEndState())),t.forEach((t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)}))}Jt=!1,_t=!1,Zt.forEach((t=>t.complete())),Zt.clear()}function ee(){Zt.forEach((t=>{t.readKeyframes(),t.needsMeasurement&&(Jt=!0)}))}class ne{constructor(t,e,n,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Zt.add(this),_t||(_t=!0,D.Gt.read(ee),D.Gt.resolveKeyframes(te))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;for(let s=0;s<t.length;s++)if(null===t[s])if(0===s){const s=null==i?void 0:i.get(),o=t[t.length-1];if(void 0!==s)t[0]=s;else if(n&&e){const i=n.readValue(e,o);null!=i&&(t[0]=i)}void 0===t[0]&&(t[0]=o),i&&void 0===s&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Zt.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Zt.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let ie=R.l,se=R.l;const oe=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),re=t=>e=>"string"==typeof e&&e.startsWith(t),ae=re("--"),le=re("var(--"),ue=t=>!!le(t)&&ce.test(t.split("/*")[0].trim()),ce=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,he=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function de(t,e,n=1){se(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,s]=function(t){const e=he.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${null!=n?n:i}`,s]}(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const t=o.trim();return oe(t)?parseFloat(t):t}return ue(s)?de(s,e,n+1):s}const pe=t=>e=>e.test(t),me=[st,yt,gt,vt,wt,xt,{test:t=>"auto"===t,parse:t=>t}],fe=t=>me.find(pe(t));class ve extends ne{constructor(t,e,n,i,s){super(t,e,n,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let n=0;n<t.length;n++){let i=t[n];if("string"==typeof i&&(i=i.trim(),ue(i))){const s=de(i,e.current);void 0!==s&&(t[n]=s),n===t.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!v.has(n)||2!==t.length)return;const[i,s]=t,o=fe(i),r=fe(s);if(o!==r)if(Ht(o)&&Ht(r))for(let e=0;e<t.length;e++){const n=t[e];"string"==typeof n&&(t[e]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,n=[];for(let e=0;e<t.length;e++)("number"==typeof(i=t[e])?0===i:null===i||"none"===i||"0"===i||nt(i))&&n.push(e);var i;n.length&&function(t,e,n){let i,s=0;for(;s<t.length&&!i;){const e=t[s];"string"==typeof e&&!Nt.has(e)&&Mt(e).values.length&&(i=t[s]),s++}if(i&&n)for(const s of e)t[s]=$t(n,i)}(t,n,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Qt[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const i=e[e.length-1];void 0!==i&&t.getValue(n,i).jump(i,!1)}measureEndState(){var t;const{element:e,name:n,unresolvedKeyframes:i}=this;if(!e||!e.current)return;const s=e.getValue(n);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,r=i[o];i[o]=Qt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEach((([t,n])=>{e.getValue(t).set(n)})),this.resolveNoneKeyframes()}}var ge=n(85487);const ye=(t,e)=>!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!Rt.test(t)&&"0"!==t||t.startsWith("url(")));function xe(t,e,n,i){const s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;const o=t[t.length-1],r=ye(s,e),a=ye(o,e);return ie(r===a,`You are trying to animate ${e} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`),!(!r||!a)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||L(n))&&i)}const we=t=>null!==t;function Pe(t,{repeat:e,repeatType:n="loop"},i){const s=t.filter(we),o=e&&"loop"!==n&&e%2==1?0:s.length-1;return o&&void 0!==i?i:s[o]}class Te{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...r}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ge.k.now(),this.options={autoplay:t,delay:e,type:n,repeat:i,repeatDelay:s,repeatType:o,...r},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(ee(),te()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=ge.k.now(),this.hasAttemptedResolve=!0;const{name:n,type:i,velocity:s,delay:o,onComplete:r,onUpdate:a,isGenerator:l}=this.options;if(!l&&!xe(t,n,i,s)){if(!o)return a&&a(Pe(t,this.options,e)),r&&r(),void this.resolveFinishedPromise();this.options.duration=0}const u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise((t=>{this.resolveFinishedPromise=t}))}}const Se=2e4;function be(t){let e=0,n=t.next(e);for(;!n.done&&e<Se;)e+=50,n=t.next(e);return e>=Se?1/0:e}const Ae=(t,e,n)=>t+(e-t)*n;function Ee(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Ve(t,e){return n=>n>0?e:t}const Me=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},Ce=[mt,pt,Tt];function De(t){const e=(n=t,Ce.find((t=>t.test(n))));var n;if(ie(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(e))return!1;let i=e.parse(t);return e===Tt&&(i=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let s=0,o=0,r=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;s=Ee(a,i,t+1/3),o=Ee(a,i,t),r=Ee(a,i,t-1/3)}else s=o=r=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*r),alpha:i}}(i)),i}const ke=(t,e)=>{const n=De(t),i=De(e);if(!n||!i)return Ve(t,e);const s={...n};return t=>(s.red=Me(n.red,i.red,t),s.green=Me(n.green,i.green,t),s.blue=Me(n.blue,i.blue,t),s.alpha=Ae(n.alpha,i.alpha,t),pt.transform(s))},Re=(t,e)=>n=>e(t(n)),Le=(...t)=>t.reduce(Re),Be=new Set(["none","hidden"]);function je(t,e){return n=>Ae(t,e,n)}function Fe(t){return"number"==typeof t?je:"string"==typeof t?ue(t)?Ve:St.test(t)?ke:Ue:Array.isArray(t)?Oe:"object"==typeof t?St.test(t)?ke:Ie:Ve}function Oe(t,e){const n=[...t],i=n.length,s=t.map(((t,n)=>Fe(t)(t,e[n])));return t=>{for(let e=0;e<i;e++)n[e]=s[e](t);return n}}function Ie(t,e){const n={...t,...e},i={};for(const s in n)void 0!==t[s]&&void 0!==e[s]&&(i[s]=Fe(t[s])(t[s],e[s]));return t=>{for(const e in i)n[e]=i[e](t);return n}}const Ue=(t,e)=>{const n=Rt.createTransformer(e),i=Mt(t),s=Mt(e);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?Be.has(t)&&!s.values.length||Be.has(e)&&!i.values.length?function(t,e){return Be.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):Le(Oe(function(t,e){var n;const i=[],s={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const r=e.types[o],a=t.indexes[r][s[r]],l=null!==(n=t.values[a])&&void 0!==n?n:0;i[o]=l,s[r]++}return i}(i,s),s.values),n):(ie(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Ve(t,e))};function Ge(t,e,n){return"number"==typeof t&&"number"==typeof e&&"number"==typeof n?Ae(t,e,n):Fe(t)(t,e)}var ze=n(77052);function We(t,e,n){const i=Math.max(e-5,0);return(0,ze.f)(n-t(i),e-i)}const $e=.01,Ne=2,He=.005,Ke=.5;const Ye=12;function Xe(t,e){return t*Math.sqrt(1-e*e)}const qe=["duration","bounce"],Qe=["stiffness","damping","mass"];function Ze(t,e){return e.some((e=>void 0!==t[e]))}function _e(t=.3,e=.3){const n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:s}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:h,velocity:d,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Ze(t,Qe)&&Ze(t,qe))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(1.2*n),s=i*i,o=2*it(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:1,stiffness:s,damping:o}}else{const n=function({duration:t=800,bounce:e=.3,velocity:n=0,mass:i=1}){let s,o;ie(t<=M(10),"Spring duration must be 10 seconds or less");let r=1-e;r=it(.05,1,r),t=it(.01,10,C(t)),r<1?(s=e=>{const i=e*r,s=i*t;return.001-(i-n)/Xe(e,r)*Math.exp(-s)},o=e=>{const i=e*r*t,o=i*n+n,a=Math.pow(r,2)*Math.pow(e,2)*t,l=Math.exp(-i),u=Xe(Math.pow(e,2),r);return(.001-s(e)>0?-1:1)*((o-a)*l)/u}):(s=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,o=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let i=n;for(let n=1;n<Ye;n++)i-=t(i)/e(i);return i}(s,o,5/t);if(t=M(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(a,2)*i;return{stiffness:e,damping:2*r*Math.sqrt(i*e),duration:t}}}(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}({...n,velocity:-C(n.velocity||0)}),m=d||0,f=u/(2*Math.sqrt(l*c)),v=r-o,g=C(Math.sqrt(l/c)),y=Math.abs(v)<5;let x;if(i||(i=y?$e:Ne),s||(s=y?He:Ke),f<1){const t=Xe(g,f);x=e=>{const n=Math.exp(-f*g*e);return r-n*((m+f*g*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}}else if(1===f)x=t=>r-Math.exp(-g*t)*(v+(m+g*v)*t);else{const t=g*Math.sqrt(f*f-1);x=e=>{const n=Math.exp(-f*g*e),i=Math.min(t*e,300);return r-n*((m+f*g*v)*Math.sinh(i)+t*v*Math.cosh(i))/t}}const w={calculatedDuration:p&&h||null,next:t=>{const e=x(t);if(p)a.done=t>=h;else{let n=0;f<1&&(n=0===t?M(m):We(x,t,e));const o=Math.abs(n)<=i,l=Math.abs(r-e)<=s;a.done=o&&l}return a.value=a.done?r:e,a},toString:()=>{const t=Math.min(be(w),Se),e=G((e=>w.next(t*e).value),t,30);return t+"ms "+e}};return w}function Je({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],d={done:!1,value:h},p=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l;let m=n*e;const f=h+m,v=void 0===r?f:r(f);v!==f&&(m=v-h);const g=t=>-m*Math.exp(-t/i),y=t=>v+g(t),x=t=>{const e=g(t),n=y(t);d.done=Math.abs(e)<=u,d.value=d.done?v:n};let w,P;const T=t=>{var e;e=d.value,(void 0!==a&&e<a||void 0!==l&&e>l)&&(w=t,P=_e({keyframes:[d.value,p(d.value)],velocity:We(y,t,d.value),damping:s,stiffness:o,restDelta:u,restSpeed:c}))};return T(0),{calculatedDuration:null,next:t=>{let e=!1;return P||void 0!==w||(e=!0,x(t),T(t)),void 0!==w&&t>=w?P.next(t-w):(!e&&x(t),d)}}}const tn=K(.42,0,1,1),en=K(0,0,.58,1),nn=K(.42,0,.58,1),sn={linear:R.l,easeIn:tn,easeInOut:nn,easeOut:en,circIn:J,circInOut:et,circOut:tt,backIn:Q,backInOut:Z,backOut:q,anticipate:_},on=t=>{if(j(t)){se(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,s]=t;return K(e,n,i,s)}return"string"==typeof t?(se(void 0!==sn[t],`Invalid easing type '${t}'`),sn[t]):t};function rn({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=(t=>Array.isArray(t)&&"number"!=typeof t[0])(i)?i.map(on):on(i),o={done:!1,value:e[0]},r=function(t,e){return t.map((t=>t*e))}(n&&n.length===e.length?n:function(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=U(0,e,i);t.push(Ae(n,1,s))}}(e,t.length-1),e}(e),t),a=function(t,e,{clamp:n=!0,ease:i,mixer:s}={}){const o=t.length;if(se(o===e.length,"Both input and output ranges must be the same length"),1===o)return()=>e[0];if(2===o&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=function(t,e,n){const i=[],s=n||Ge,o=t.length-1;for(let n=0;n<o;n++){let o=s(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]||R.l:e;o=Le(t,o)}i.push(o)}return i}(e,i,s),l=a.length,u=n=>{if(r&&n<t[0])return e[0];let i=0;if(l>1)for(;i<t.length-2&&!(n<t[i+1]);i++);const s=U(t[i],t[i+1],n);return a[i](s)};return n?e=>u(it(t[0],t[o-1],e)):u}(r,e,{ease:Array.isArray(s)?s:(l=e,u=s,l.map((()=>u||nn)).splice(0,l.length-1))});var l,u;return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}const an=t=>{const e=({timestamp:e})=>t(e);return{start:()=>D.Gt.update(e,!0),stop:()=>(0,D.WG)(e),now:()=>D.uv.isProcessing?D.uv.timestamp:ge.k.now()}},ln={decay:Je,inertia:Je,tween:rn,keyframes:rn,spring:_e},un=t=>t/100;class cn extends Te{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:t}=this.options;t&&t()};const{name:e,motionValue:n,element:i,keyframes:s}=this.options,o=(null==i?void 0:i.KeyframeResolver)||ne;this.resolver=new o(s,((t,e)=>this.onKeyframesResolved(t,e)),e,n,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:e="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,r=L(e)?e:ln[e]||rn;let a,l;r!==rn&&"number"!=typeof t[0]&&(a=Le(un,Ge(t[0],t[1])),t=[0,100]);const u=r({...this.options,keyframes:t});"mirror"===s&&(l=r({...this.options,keyframes:[...t].reverse(),velocity:-o})),null===u.calculatedDuration&&(u.calculatedDuration=be(u));const{calculatedDuration:c}=u,h=c+i;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:c,resolvedDuration:h,totalDuration:h*(n+1)-i}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){const{resolved:n}=this;if(!n){const{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:r,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return s.next(0);const{delay:h,repeat:d,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-h*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=s;if(d){const t=Math.min(this.currentTime,u)/c;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,d+1),Boolean(e%2)&&("reverse"===p?(n=1-n,m&&(n-=m/c)):"mirror"===p&&(x=o)),y=it(0,1,n)*c}const w=g?{done:!1,value:a[0]}:x.next(y);r&&(w.value=r(w.value));let{done:P}=w;g||null===l||(P=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return T&&void 0!==i&&(w.value=Pe(a,this.options,i)),f&&f(w.value),T&&this.finish(),w}get duration(){const{resolved:t}=this;return t?C(t.calculatedDuration):0}get time(){return C(this.currentTime)}set time(t){t=M(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=C(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:t=an,onPlay:e,startTime:n}=this.options;this.driver||(this.driver=t((t=>this.tick(t)))),e&&e();const i=this.driver.now();null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=i):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;this._resolved?(this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const hn=new Set(["opacity","clipPath","filter","transform"]);function dn(t,e,n,{delay:i=0,duration:s=300,repeat:o=0,repeatType:r="loop",ease:a="easeInOut",times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=N(a,s);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:i,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===r?"alternate":"normal"})}const pn=b((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),mn={anticipate:_,backInOut:Z,circInOut:et};class fn extends Te{constructor(t){super(t);const{name:e,motionValue:n,element:i,keyframes:s}=this.options;this.resolver=new ve(s,((t,e)=>this.onKeyframesResolved(t,e)),e,n,i),this.resolver.scheduleResolve()}initPlayback(t,e){let{duration:n=300,times:i,ease:s,type:o,motionValue:r,name:a,startTime:l}=this.options;if(!r.owner||!r.owner.current)return!1;var u;if("string"==typeof s&&I()&&s in mn&&(s=mn[s]),L((u=this.options).type)||"spring"===u.type||!z(u.ease)){const{onComplete:e,onUpdate:r,motionValue:a,element:l,...u}=this.options,c=function(t,e){const n=new cn({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const s=[];let o=0;for(;!i.done&&o<2e4;)i=n.sample(o),s.push(i.value),o+=10;return{times:void 0,keyframes:s,duration:o-10,ease:"linear"}}(t,u);1===(t=c.keyframes).length&&(t[1]=t[0]),n=c.duration,i=c.times,s=c.ease,o="keyframes"}const c=dn(r.owner.current,a,t,{...this.options,duration:n,times:i,ease:s});return c.startTime=null!=l?l:this.calcStartTime(),this.pendingTimeline?(B(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:n}=this.options;r.set(Pe(t,this.options,e)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:n,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:e}=t;return C(e)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:e}=t;return C(e.currentTime||0)}set time(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.currentTime=M(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:e}=t;return e.playbackRate}set speed(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:e}=t;return e.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){const{resolved:e}=this;if(!e)return R.l;const{animation:n}=e;B(n,t)}else this.pendingTimeline=t;return R.l}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:e,keyframes:n,duration:i,type:s,ease:o,times:r}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){const{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,c=new cn({...u,keyframes:n,duration:i,type:s,ease:o,times:r,isGenerator:!0}),h=M(this.time);t.setWithVelocity(c.sample(h-10).value,c.sample(h).value,10)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:e,name:n,repeatDelay:i,repeatType:s,damping:o,type:r}=t;if(!(e&&e.owner&&e.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:l}=e.owner.getProps();return pn()&&n&&hn.has(n)&&!a&&!l&&!i&&"mirror"!==s&&0!==o&&"inertia"!==r}}const vn={type:"spring",stiffness:500,damping:25,restSpeed:10},gn={type:"keyframes",duration:.8},yn={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},xn=(t,{keyframes:e})=>e.length>2?gn:f.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:vn:yn,wn=(t,e,n,i={},s,o)=>r=>{const a=p(i,t)||{},l=a.delay||i.delay||0;let{elapsed:u=0}=i;u-=M(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:s};(function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length})(a)||(c={...c,...xn(t,c)}),c.duration&&(c.duration=M(c.duration)),c.repeatDelay&&(c.repeatDelay=M(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let h=!1;if((!1===c.type||0===c.duration&&!c.repeatDelay)&&(c.duration=0,0===c.delay&&(h=!0)),k.W.skipAnimations&&(h=!0,c.duration=0,c.delay=0),h&&!o&&void 0!==e.get()){const t=Pe(c.keyframes,a);if(void 0!==t)return D.Gt.update((()=>{c.onUpdate(t),c.onComplete()})),new V([])}return!o&&fn.supports(c)?new fn(c):new cn(c)};function Pn({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}function Tn(t,e,{delay:n=0,transitionOverride:i,type:s}={}){var r;let{transition:a=t.getDefaultTransition(),transitionEnd:l,...u}=e;i&&(a=i);const h=[],d=s&&t.animationState&&t.animationState.getState()[s];for(const e in u){const i=t.getValue(e,null!==(r=t.latestValues[e])&&void 0!==r?r:null),s=u[e];if(void 0===s||d&&Pn(d,e))continue;const o={delay:n,...p(a||{},e)};let l=!1;if(window.MotionHandoffAnimation){const n=S(t);if(n){const t=window.MotionHandoffAnimation(n,e,D.Gt);null!==t&&(o.startTime=t,l=!0)}}w(t,e),i.start(wn(e,i,s,t.shouldReduceMotion&&v.has(e)?{type:!1}:o,t,l));const c=i.animation;c&&h.push(c)}return l&&Promise.all(h).then((()=>{D.Gt.update((()=>{l&&function(t,e){const n=c(t,e);let{transitionEnd:i={},transition:s={},...r}=n||{};r={...r,...i};for(const e in r)y(t,e,(a=r[e],o(a)?a[a.length-1]||0:a));var a}(t,l)}))})),h}function Sn(t,e,n={}){var i;const s=c(t,e,"exit"===n.type?null===(i=t.presenceContext)||void 0===i?void 0:i.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(o=n.transitionOverride);const r=s?()=>Promise.all(Tn(t,s,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(i=0)=>{const{delayChildren:s=0,staggerChildren:r,staggerDirection:a}=o;return function(t,e,n=0,i=0,s=1,o){const r=[],a=(t.variantChildren.size-1)*i,l=1===s?(t=0)=>t*i:(t=0)=>a-t*i;return Array.from(t.variantChildren).sort(bn).forEach(((t,i)=>{t.notify("AnimationStart",e),r.push(Sn(t,e,{...o,delay:n+l(i)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(r)}(t,e,s+i,r,a,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[t,e]="beforeChildren"===l?[r,a]:[a,r];return t().then((()=>e()))}return Promise.all([r(),a(n.delay)])}function bn(t,e){return t.sortNodePosition(e)}const An=d.length;function En(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&En(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let n=0;n<An;n++){const i=d[n],s=t.props[i];(a(s)||!1===s)&&(e[i]=s)}return e}const Vn=[...h].reverse(),Mn=h.length;function Cn(t){let e=function(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const s=e.map((e=>Sn(t,e,n)));i=Promise.all(s)}else if("string"==typeof e)i=Sn(t,e,n);else{const s="function"==typeof e?c(t,e,n.custom):e;i=Promise.all(Tn(t,s,n))}return i.then((()=>{t.notify("AnimationComplete",e)}))}(t,e,n))))}(t),n=kn(),i=!0;const l=e=>(n,i)=>{var s;const o=c(t,i,"exit"===e?null===(s=t.presenceContext)||void 0===s?void 0:s.custom:void 0);if(o){const{transition:t,transitionEnd:e,...i}=o;n={...n,...i,...e}}return n};function u(u){const{props:c}=t,h=En(t.parent)||{},d=[],p=new Set;let m={},f=1/0;for(let e=0;e<Mn;e++){const y=Vn[e],x=n[y],w=void 0!==c[y]?c[y]:h[y],P=a(w),T=y===u?x.isActive:null;!1===T&&(f=e);let S=w===h[y]&&w!==c[y]&&P;if(S&&i&&t.manuallyAnimateOnMount&&(S=!1),x.protectedKeys={...m},!x.isActive&&null===T||!w&&!x.prevProp||s(w)||"boolean"==typeof w)continue;const b=(v=x.prevProp,"string"==typeof(g=w)?g!==v:!!Array.isArray(g)&&!r(g,v));let A=b||y===u&&x.isActive&&!S&&P||e>f&&P,E=!1;const V=Array.isArray(w)?w:[w];let M=V.reduce(l(y),{});!1===T&&(M={});const{prevResolvedValues:C={}}=x,D={...C,...M},k=e=>{A=!0,p.has(e)&&(E=!0,p.delete(e)),x.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in D){const e=M[t],n=C[t];if(m.hasOwnProperty(t))continue;let i=!1;i=o(e)&&o(n)?!r(e,n):e!==n,i?null!=e?k(t):p.add(t):void 0!==e&&p.has(t)?k(t):x.protectedKeys[t]=!0}x.prevProp=w,x.prevResolvedValues=M,x.isActive&&(m={...m,...M}),i&&t.blockInitialAnimation&&(A=!1),A&&(!S||!b||E)&&d.push(...V.map((t=>({animation:t,options:{type:y}}))))}var v,g;if(p.size){const e={};p.forEach((n=>{const i=t.getBaseTarget(n),s=t.getValue(n);s&&(s.liveStyle=!0),e[n]=null!=i?i:null})),d.push({animation:e})}let y=Boolean(d.length);return!i||!1!==c.initial&&c.initial!==c.animate||t.manuallyAnimateOnMount||(y=!1),i=!1,y?e(d):Promise.resolve()}return{animateChanges:u,setActive:function(e,i){var s;if(n[e].isActive===i)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)})),n[e].isActive=i;const o=u(e);for(const t in n)n[t].protectedKeys={};return o},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=kn(),i=!0}}}function Dn(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function kn(){return{animate:Dn(!0),whileInView:Dn(),whileHover:Dn(),whileTap:Dn(),whileDrag:Dn(),whileFocus:Dn(),exit:Dn()}}class Rn{constructor(t){this.isMounted=!1,this.node=t}update(){}}let Ln=0;const Bn={animation:{Feature:class extends Rn{constructor(t){super(t),t.animationState||(t.animationState=Cn(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();s(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{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)}}},exit:{Feature:class extends Rn{constructor(){super(...arguments),this.id=Ln++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}},jn={x:!1,y:!1};function Fn(){return jn.x||jn.y}const On=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function In(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function Un(t){return{point:{x:t.pageX,y:t.pageY}}}function Gn(t,e,n,i){return In(t,e,(t=>e=>On(e)&&t(e,Un(e)))(n),i)}const zn=(t,e)=>Math.abs(t-e);class Wn{constructor(t,e,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=Hn(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=zn(t.x,e.x),i=zn(t.y,e.y);return Math.sqrt(n**2+i**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:i}=t,{timestamp:s}=D.uv;this.history.push({...i,timestamp:s});const{onStart:o,onMove:r}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=$n(e,this.transformPagePoint),D.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=Hn("pointercancel"===t.type?this.lastMoveEventInfo:$n(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!On(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=n,this.contextWindow=i||window;const o=$n(Un(t),this.transformPagePoint),{point:r}=o,{timestamp:a}=D.uv;this.history=[{...r,timestamp:a}];const{onSessionStart:l}=e;l&&l(t,Hn(o,this.history)),this.removeListeners=Le(Gn(this.contextWindow,"pointermove",this.handlePointerMove),Gn(this.contextWindow,"pointerup",this.handlePointerUp),Gn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,D.WG)(this.updatePoint)}}function $n(t,e){return e?{point:e(t.point)}:t}function Nn(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Hn({point:t},e){return{point:t,delta:Nn(t,Yn(e)),offset:Nn(t,Kn(e)),velocity:Xn(e,.1)}}function Kn(t){return t[0]}function Yn(t){return t[t.length-1]}function Xn(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=Yn(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>M(e)));)n--;if(!i)return{x:0,y:0};const o=C(s.timestamp-i.timestamp);if(0===o)return{x:0,y:0};const r={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function qn(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function Qn(t){return t.max-t.min}function Zn(t,e,n,i=.5){t.origin=i,t.originPoint=Ae(e.min,e.max,t.origin),t.scale=Qn(n)/Qn(e),t.translate=Ae(n.min,n.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function _n(t,e,n,i){Zn(t.x,e.x,n.x,i?i.originX:void 0),Zn(t.y,e.y,n.y,i?i.originY:void 0)}function Jn(t,e,n){t.min=n.min+e.min,t.max=t.min+Qn(e)}function ti(t,e,n){t.min=e.min-n.min,t.max=t.min+Qn(e)}function ei(t,e,n){ti(t.x,e.x,n.x),ti(t.y,e.y,n.y)}function ni(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function ii(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}const si=.35;function oi(t,e,n){return{min:ri(t,e),max:ri(t,n)}}function ri(t,e){return"number"==typeof t?t:t[e]||0}const ai=()=>({x:{min:0,max:0},y:{min:0,max:0}});function li(t){return[t("x"),t("y")]}function ui({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function ci(t){return void 0===t||1===t}function hi({scale:t,scaleX:e,scaleY:n}){return!ci(t)||!ci(e)||!ci(n)}function di(t){return hi(t)||pi(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function pi(t){return mi(t.x)||mi(t.y)}function mi(t){return t&&"0%"!==t}function fi(t,e,n){return n+e*(t-n)}function vi(t,e,n,i,s){return void 0!==s&&(t=fi(t,s,i)),fi(t,n,i)+e}function gi(t,e=0,n=1,i,s){t.min=vi(t.min,e,n,i,s),t.max=vi(t.max,e,n,i,s)}function yi(t,{x:e,y:n}){gi(t.x,e.translate,e.scale,e.originPoint),gi(t.y,n.translate,n.scale,n.originPoint)}const xi=.999999999999,wi=1.0000000000001;function Pi(t,e){t.min=t.min+e,t.max=t.max+e}function Ti(t,e,n,i,s=.5){gi(t,e,n,Ae(t.min,t.max,s),i)}function Si(t,e){Ti(t.x,e.x,e.scaleX,e.scale,e.originX),Ti(t.y,e.y,e.scaleY,e.scale,e.originY)}function bi(t,e){return ui(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}const Ai=({current:t})=>t?t.ownerDocument.defaultView:null,Ei=new WeakMap;class Vi{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={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=t}start(t,{snapToCursor:e=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:i}=this.getProps();this.panSession=new Wn(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(Un(t).point)},onStart:(t,e)=>{const{drag:n,dragPropagation:i,onDragStart:s}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(o=n)||"y"===o?jn[o]?null:(jn[o]=!0,()=>{jn[o]=!1}):jn.x||jn.y?null:(jn.x=jn.y=!0,()=>{jn.x=jn.y=!1}),!this.openDragLock))return;var o;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),li((t=>{let e=this.getAxisMotionValue(t).get()||0;if(gt.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const i=n.layout.layoutBox[t];i&&(e=Qn(i)*(parseFloat(e)/100))}}this.originPoint[t]=e})),s&&D.Gt.postRender((()=>s(t,e))),w(this.visualElement,"transform");const{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:s,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:r}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}(r),void(null!==this.currentDirection&&s&&s(this.currentDirection));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>li((t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,contextWindow:Ai(this.visualElement)})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=e;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&D.Gt.postRender((()=>s(t,e)))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!Mi(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?Ae(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?Ae(n,t,i.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,s=this.constraints;e&&qn(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!i)&&function(t,{top:e,left:n,bottom:i,right:s}){return{x:ni(t.x,n,s),y:ni(t.y,e,i)}}(i.layoutBox,e),this.elastic=function(t=si){return!1===t?t=0:!0===t&&(t=si),{x:oi(t,"left","right"),y:oi(t,"top","bottom")}}(n),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&li((t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(i.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!qn(t))return!1;const n=t.current;se(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=function(t,e,n){const i=bi(t,n),{scroll:s}=e;return s&&(Pi(i.x,s.offset.x),Pi(i.y,s.offset.y)),i}(n,i.root,this.visualElement.getTransformPagePoint());let o=function(t,e){return{x:ii(t.x,e.x),y:ii(t.y,e.y)}}(i.layout.layoutBox,s);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=ui(t))}return o}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=li((r=>{if(!Mi(r,e,this.currentDirection))return;let l=a&&a[r]||{};o&&(l={min:0,max:0});const u=i?200:1e6,c=i?40:1e7,h={type:"inertia",velocity:n?t[r]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(r,h)}));return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return w(this.visualElement,t),n.start(wn(t,n,0,e,this.visualElement,!1))}stopAnimation(){li((t=>this.getAxisMotionValue(t).stop()))}pauseAnimation(){li((t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()}))}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps();return n[e]||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){li((e=>{const{drag:n}=this.getProps();if(!Mi(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:o}=i.layout.layoutBox[e];s.set(t[e]-Ae(n,o,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!qn(e)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};li((t=>{const e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){const n=e.get();i[t]=function(t,e){let n=.5;const i=Qn(t),s=Qn(e);return s>i?n=U(e.min,e.max-i,t.min):i>s&&(n=U(t.min,t.max-s,e.min)),it(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),li((e=>{if(!Mi(e,t,null))return;const n=this.getAxisMotionValue(e),{min:s,max:o}=this.constraints[e];n.set(Ae(s,o,i[e]))}))}addListeners(){if(!this.visualElement.current)return;Ei.set(this.visualElement,this);const t=Gn(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();qn(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),D.Gt.read(e);const s=In(window,"resize",(()=>this.scalePositionWithinConstraints())),o=n.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(li((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{s(),t(),i(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=si,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:r}}}function Mi(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const Ci=t=>(e,n)=>{t&&D.Gt.postRender((()=>t(e,n)))};var Di=n(74848),ki=n(51609),Ri=n(11973),Li=n(83006);const Bi=(0,ki.createContext)({}),ji={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Fi(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Oi={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!yt.test(t))return t;t=parseFloat(t)}return`${Fi(t,e.target.x)}% ${Fi(t,e.target.y)}%`}},Ii={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=Rt.parse(t);if(s.length>5)return i;const o=Rt.createTransformer(t),r="number"!=typeof s[0]?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;s[0+r]/=a,s[1+r]/=l;const u=Ae(a,l,.5);return"number"==typeof s[2+r]&&(s[2+r]/=u),"number"==typeof s[3+r]&&(s[3+r]/=u),o(s)}},Ui={};var Gi=n(93713);const{schedule:zi,cancel:Wi}=(0,Gi.I)(queueMicrotask,!1);class $i extends ki.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=t;var o;o=Hi,Object.assign(Ui,o),s&&(e.group&&e.group.add(s),n&&n.register&&i&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(()=>{this.safeToRemove()})),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),ji.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:s}=this.props,o=n.projection;return o?(o.isPresent=s,i||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||D.Gt.postRender((()=>{const t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),zi.postRender((()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Ni(t){const[e,n]=(0,Ri.xQ)(),i=(0,ki.useContext)(Li.L);return(0,Di.jsx)($i,{...t,layoutGroup:i,switchLayoutGroup:(0,ki.useContext)(Bi),isPresent:e,safeToRemove:n})}const Hi={borderRadius:{...Oi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Oi,borderTopRightRadius:Oi,borderBottomLeftRadius:Oi,borderBottomRightRadius:Oi,boxShadow:Ii};var Ki=n(95383);const Yi=(t,e)=>t.depth-e.depth;class Xi{constructor(){this.children=[],this.isDirty=!1}add(t){(0,Ki.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,Ki.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Yi),this.isDirty=!1,this.children.forEach(t)}}var qi=n(68713);function Qi(t){const e=x(t)?t.get():t;return n=e,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?e.toValue():e;var n}const Zi=["TopLeft","TopRight","BottomLeft","BottomRight"],_i=Zi.length,Ji=t=>"string"==typeof t?parseFloat(t):t,ts=t=>"number"==typeof t||yt.test(t);function es(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const ns=ss(0,.5,tt),is=ss(.5,.95,R.l);function ss(t,e,n){return i=>i<t?0:i>e?1:n(U(t,e,i))}function os(t,e){t.min=e.min,t.max=e.max}function rs(t,e){os(t.x,e.x),os(t.y,e.y)}function as(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function ls(t,e,n,i,s){return t=fi(t-=e,1/n,i),void 0!==s&&(t=fi(t,1/s,i)),t}function us(t,e,[n,i,s],o,r){!function(t,e=0,n=1,i=.5,s,o=t,r=t){if(gt.test(e)&&(e=parseFloat(e),e=Ae(r.min,r.max,e/100)-r.min),"number"!=typeof e)return;let a=Ae(o.min,o.max,i);t===o&&(a-=e),t.min=ls(t.min,e,n,a,s),t.max=ls(t.max,e,n,a,s)}(t,e[n],e[i],e[s],e.scale,o,r)}const cs=["x","scaleX","originX"],hs=["y","scaleY","originY"];function ds(t,e,n,i){us(t.x,e,cs,n?n.x:void 0,i?i.x:void 0),us(t.y,e,hs,n?n.y:void 0,i?i.y:void 0)}function ps(t){return 0===t.translate&&1===t.scale}function ms(t){return ps(t.x)&&ps(t.y)}function fs(t,e){return t.min===e.min&&t.max===e.max}function vs(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function gs(t,e){return vs(t.x,e.x)&&vs(t.y,e.y)}function ys(t){return Qn(t.x)/Qn(t.y)}function xs(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class ws{constructor(){this.members=[]}add(t){(0,Ki.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,Ki.Ai)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let t=e;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach((t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Ps={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ts="undefined"!=typeof window&&void 0!==window.MotionDebug,Ss=["","X","Y","Z"],bs={visibility:"hidden"};let As=0;function Es(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function Vs(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=S(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",D.Gt,!(e||i))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&Vs(i)}function Ms({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(t={},n=(null==e?void 0:e())){this.id=As++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ts&&(Ps.totalNodes=Ps.resolvedTargetDeltas=Ps.recalculatedProjection=0),this.nodes.forEach(ks),this.nodes.forEach(Is),this.nodes.forEach(Us),this.nodes.forEach(Rs),Ts&&window.MotionDebug.record(Ps)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new Xi)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new qi.v),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,n=this.root.hasTreeAnimated){if(this.instance)return;var i;this.isSVG=(i=e)instanceof SVGElement&&"svg"!==i.tagName,this.instance=e;const{layoutId:s,layout:o,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(o||s)&&(this.isLayoutDirty=!0),t){let n;const i=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){const n=ge.k.now(),i=({timestamp:s})=>{const o=s-n;o>=e&&((0,D.WG)(i),t(o-e))};return D.Gt.read(i,!0),()=>(0,D.WG)(i)}(i,250),ji.hasAnimatedSinceResize&&(ji.hasAnimatedSinceResize=!1,this.nodes.forEach(Os))}))}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&r&&(s||o)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const s=this.options.transition||r.getDefaultTransition()||Hs,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!gs(this.targetLayout,i)||n,u=!e&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);const e={...p(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||Os(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,D.WG)(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(Gs),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Vs(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){const e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Bs);this.isUpdating||this.nodes.forEach(js),this.isUpdating=!1,this.nodes.forEach(Fs),this.nodes.forEach(Cs),this.nodes.forEach(Ds),this.clearAllSnapshots();const t=ge.k.now();D.uv.delta=it(0,1e3/60,t-D.uv.timestamp),D.uv.timestamp=t,D.uv.isProcessing=!0,D.PP.update.process(D.uv),D.PP.preRender.process(D.uv),D.PP.render.process(D.uv),D.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,zi.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ls),this.sharedNodes.forEach(zs)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,D.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){D.Gt.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(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();const t=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){const e=i(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;const t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!ms(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,o=i!==this.prevTransformTemplateValue;t&&(e||di(this.latestValues)||o)&&(s(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),Xs((i=n).x),Xs(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const n=e.measureViewportBox();if(!(null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)&&!this.path.some(Qs)){const{scroll:t}=this.root;t&&(Pi(n.x,t.offset.x),Pi(n.y,t.offset.y))}return n}removeElementScroll(t){var e;const n={x:{min:0,max:0},y:{min:0,max:0}};if(rs(n,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return n;for(let e=0;e<this.path.length;e++){const i=this.path[e],{scroll:s,options:o}=i;i!==this.root&&s&&o.layoutScroll&&(s.wasRoot&&rs(n,t),Pi(n.x,s.offset.x),Pi(n.y,s.offset.y))}return n}applyTransform(t,e=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};rs(n,t);for(let t=0;t<this.path.length;t++){const i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Si(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),di(i.latestValues)&&Si(n,i.latestValues)}return di(this.latestValues)&&Si(n,this.latestValues),n}removeTransform(t){const e={x:{min:0,max:0},y:{min:0,max:0}};rs(e,t);for(let t=0;t<this.path.length;t++){const n=this.path[t];if(!n.instance)continue;if(!di(n.latestValues))continue;hi(n.latestValues)&&n.updateSnapshot();const i={x:{min:0,max:0},y:{min:0,max:0}};rs(i,n.measurePageBox()),ds(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,i)}return di(this.latestValues)&&ds(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!==D.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const i=Boolean(this.resumingFrom)||this!==n;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:s,layoutId:o}=this.options;if(this.layout&&(s||o)){if(this.resolvedRelativeTargetAt=D.uv.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},ei(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),rs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var r,a,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),r=this.target,a=this.relativeTarget,l=this.relativeParent.target,Jn(r.x,a.x,l.x),Jn(r.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):rs(this.target,this.layout.layoutBox),yi(this.target,this.targetDelta)):rs(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},ei(this.relativeTargetOrigin,this.target,t.target),rs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ts&&Ps.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!hi(this.parent.latestValues)&&!pi(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;const e=this.getLead(),n=Boolean(this.resumingFrom)||this!==e;let i=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(i=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===D.uv.timestamp&&(i=!1),i)return;const{layout:s,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!s&&!o)return;rs(this.layoutCorrected,this.layout.layoutBox);const r=this.treeScale.x,a=this.treeScale.y;!function(t,e,n,i=!1){const s=n.length;if(!s)return;let o,r;e.x=e.y=1;for(let a=0;a<s;a++){o=n[a],r=o.projectionDelta;const{visualElement:s}=o.options;s&&s.props.style&&"contents"===s.props.style.display||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Si(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,yi(t,r)),i&&di(o.latestValues)&&Si(t,o.latestValues))}e.x<wi&&e.x>xi&&(e.x=1),e.y<wi&&e.y>xi&&(e.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=e;l?(this.projectionDelta&&this.prevProjectionDelta?(as(this.prevProjectionDelta.x,this.projectionDelta.x),as(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),_n(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&xs(this.projectionDelta.x,this.prevProjectionDelta.x)&&xs(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Ts&&Ps.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(t,e=!1){const n=this.snapshot,i=n?n.latestValues:{},s={...this.latestValues},o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const r={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(a&&!u&&!0===this.options.crossfade&&!this.path.some(Ns));let h;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,d,p,m,f,v;Ws(o.x,t.x,n),Ws(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ei(r,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=r,v=n,$s(p.x,m.x,f.x,v),$s(p.y,m.y,f.y,v),h&&(l=this.relativeTarget,d=h,fs(l.x,d.x)&&fs(l.y,d.y))&&(this.isProjectionDirty=!1),h||(h={x:{min:0,max:0},y:{min:0,max:0}}),rs(h,this.relativeTarget)),a&&(this.animationValues=s,function(t,e,n,i,s,o){s?(t.opacity=Ae(0,void 0!==n.opacity?n.opacity:1,ns(i)),t.opacityExit=Ae(void 0!==e.opacity?e.opacity:1,0,is(i))):o&&(t.opacity=Ae(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let s=0;s<_i;s++){const o=`border${Zi[s]}Radius`;let r=es(e,o),a=es(n,o);void 0===r&&void 0===a||(r||(r=0),a||(a=0),0===r||0===a||ts(r)===ts(a)?(t[o]=Math.max(Ae(Ji(r),Ji(a),i),0),(gt.test(a)||gt.test(r))&&(t[o]+="%")):t[o]=a)}(e.rotate||n.rotate)&&(t.rotate=Ae(e.rotate||0,n.rotate||0,i))}(s,i,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,D.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=D.Gt.update((()=>{ji.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){const i=x(0)?0:(0,g.OQ)(0);return i.start(wn("",i,1e3,n)),i.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const 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(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:s}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&qs(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=Qn(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=Qn(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}rs(e,n),Si(e,s),_n(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new ws),this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;const i={};n.z&&Es("z",t,i,this.animationValues);for(let e=0;e<Ss.length;e++)Es(`rotate${Ss[e]}`,t,i,this.animationValues),Es(`skew${Ss[e]}`,t,i,this.animationValues);t.render();for(const e in i)t.setStaticValue(e,i[e]),this.animationValues&&(this.animationValues[e]=i[e]);t.scheduleRender()}getProjectionStyles(t){var e,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return bs;const i={visibility:""},s=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=Qi(null==t?void 0:t.pointerEvents)||"",i.transform=s?s(this.latestValues,""):"none",i;const o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=Qi(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!di(this.latestValues)&&(e.transform=s?s({},""):"none",this.hasProjected=!1),e}const r=o.animationValues||o.latestValues;this.applyTransformsToTarget(),i.transform=function(t,e,n){let i="";const s=t.x.translate/e.x,o=t.y.translate/e.y,r=(null==n?void 0:n.z)||0;if((s||o||r)&&(i=`translate3d(${s}px, ${o}px, ${r}px) `),1===e.x&&1===e.y||(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:t,rotate:e,rotateX:s,rotateY:o,skewX:r,skewY:a}=n;t&&(i=`perspective(${t}px) ${i}`),e&&(i+=`rotate(${e}deg) `),s&&(i+=`rotateX(${s}deg) `),o&&(i+=`rotateY(${o}deg) `),r&&(i+=`skewX(${r}deg) `),a&&(i+=`skewY(${a}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return 1===a&&1===l||(i+=`scale(${a}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,r),s&&(i.transform=s(r,i.transform));const{x:a,y:l}=this.projectionDelta;i.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?i.opacity=o===this?null!==(n=null!==(e=r.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:i.opacity=o===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0;for(const t in Ui){if(void 0===r[t])continue;const{correct:e,applyTo:n}=Ui[t],s="none"===i.transform?r[t]:e(r[t],o);if(n){const t=n.length;for(let e=0;e<t;e++)i[n[e]]=s}else i[t]=s}return this.options.layoutId&&(i.pointerEvents=o===this?Qi(null==t?void 0:t.pointerEvents)||"":"none"),i}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(Bs),this.root.sharedNodes.clear()}}}function Cs(t){t.updateLayout()}function Ds(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:i}=t.layout,{animationType:s}=t.options,o=n.source!==t.layout.source;"size"===s?li((t=>{const i=o?n.measuredBox[t]:n.layoutBox[t],s=Qn(i);i.min=e[t].min,i.max=i.min+s})):qs(s,n.layoutBox,e)&&li((i=>{const s=o?n.measuredBox[i]:n.layoutBox[i],r=Qn(e[i]);s.max=s.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+r)}));const r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};_n(r,e,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o?_n(a,t.applyTransform(i,!0),n.measuredBox):_n(a,e,n.layoutBox);const l=!ms(r);let u=!1;if(!t.resumeFrom){const i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){const{snapshot:s,layout:o}=i;if(s&&o){const r={x:{min:0,max:0},y:{min:0,max:0}};ei(r,n.layoutBox,s.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};ei(a,e,o.layoutBox),gs(r,a)||(u=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function ks(t){Ts&&Ps.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Rs(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Ls(t){t.clearSnapshot()}function Bs(t){t.clearMeasurements()}function js(t){t.isLayoutDirty=!1}function Fs(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Os(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Is(t){t.resolveTargetDelta()}function Us(t){t.calcProjection()}function Gs(t){t.resetSkewAndRotation()}function zs(t){t.removeLeadSnapshot()}function Ws(t,e,n){t.translate=Ae(e.translate,0,n),t.scale=Ae(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function $s(t,e,n,i){t.min=Ae(e.min,n.min,i),t.max=Ae(e.max,n.max,i)}function Ns(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const Hs={duration:.45,ease:[.4,0,.1,1]},Ks=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ys=Ks("applewebkit/")&&!Ks("chrome/")?Math.round:R.l;function Xs(t){t.min=Ys(t.min),t.max=Ys(t.max)}function qs(t,e,n){return"position"===t||"preserve-aspect"===t&&(i=ys(e),s=ys(n),!(Math.abs(i-s)<=.2));var i,s}function Qs(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}const Zs=Ms({attachResizeListener:(t,e)=>In(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),_s={current:void 0},Js=Ms({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!_s.current){const t=new Zs({});t.mount(window),t.setOptions({layoutScroll:!0}),_s.current=t}return _s.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),to={pan:{Feature:class extends Rn{constructor(){super(...arguments),this.removePointerDownListener=R.l}onPointerDown(t){this.session=new Wn(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ai(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:Ci(t),onStart:Ci(e),onMove:n,onEnd:(t,e)=>{delete this.session,i&&D.Gt.postRender((()=>i(t,e)))}}}mount(){this.removePointerDownListener=Gn(this.node.current,"pointerdown",(t=>this.onPointerDown(t)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Rn{constructor(t){super(t),this.removeGroupControls=R.l,this.removeListeners=R.l,this.controls=new Vi(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||R.l}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Js,MeasureLayout:Ni}};function eo(t,e){const n=function(t){if(t instanceof Element)return[t];if("string"==typeof t){let e=document;const n=e.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t)}(t),i=new AbortController;return[n,{passive:!0,...e,signal:i.signal},()=>i.abort()]}function no(t){return e=>{"touch"===e.pointerType||Fn()||t(e)}}function io(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);const s=i["onHover"+n];s&&D.Gt.postRender((()=>s(e,Un(e))))}const so=(t,e)=>!!e&&(t===e||so(t,e.parentElement)),oo=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),ro=new WeakSet;function ao(t){return e=>{"Enter"===e.key&&t(e)}}function lo(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function uo(t){return On(t)&&!Fn()}function co(t,e,n){const{props:i}=t;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);const s=i["onTap"+("End"===n?"":n)];s&&D.Gt.postRender((()=>s(e,Un(e))))}const ho=new WeakMap,po=new WeakMap,mo=t=>{const e=ho.get(t.target);e&&e(t)},fo=t=>{t.forEach(mo)};const vo={some:0,all:1},go={inView:{Feature:class extends Rn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:s}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:vo[i]};return function(t,e,n){const i=function({root:t,...e}){const n=t||document;po.has(n)||po.set(n,{});const i=po.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(fo,{root:t,...e})),i[s]}(e);return ho.set(t,n),i.observe(t),()=>{ho.delete(t),i.unobserve(t)}}(this.node.current,o,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,s&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=e?n:i;o&&o(t)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Rn{mount(){const{current:t}=this.node;t&&(this.unmount=function(t,e,n={}){const[i,s,o]=eo(t,n),r=t=>{const i=t.currentTarget;if(!uo(t)||ro.has(i))return;ro.add(i);const o=e(t),r=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),uo(t)&&ro.has(i)&&(ro.delete(i),"function"==typeof o&&o(t,{success:e}))},a=t=>{r(t,n.useGlobalTarget||so(i,t.target))},l=t=>{r(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return i.forEach((t=>{(function(t){return oo.has(t.tagName)||-1!==t.tabIndex})(t)||null!==t.getAttribute("tabindex")||(t.tabIndex=0),(n.useGlobalTarget?window:t).addEventListener("pointerdown",r,s),t.addEventListener("focus",(t=>((t,e)=>{const n=t.currentTarget;if(!n)return;const i=ao((()=>{if(ro.has(n))return;lo(n,"down");const t=ao((()=>{lo(n,"up")}));n.addEventListener("keyup",t,e),n.addEventListener("blur",(()=>lo(n,"cancel")),e)}));n.addEventListener("keydown",i,e),n.addEventListener("blur",(()=>n.removeEventListener("keydown",i)),e)})(t,s)),s)})),o}(t,(t=>(co(this.node,t,"Start"),(t,{success:e})=>co(this.node,t,e?"End":"Cancel"))),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends Rn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Le(In(this.node.current,"focus",(()=>this.onFocus())),In(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Rn{mount(){const{current:t}=this.node;t&&(this.unmount=function(t,e,n={}){const[i,s,o]=eo(t,n),r=no((t=>{const{target:n}=t,i=e(t);if("function"!=typeof i||!n)return;const o=no((t=>{i(t),n.removeEventListener("pointerleave",o)}));n.addEventListener("pointerleave",o,s)}));return i.forEach((t=>{t.addEventListener("pointerenter",r,s)})),o}(t,(t=>(io(this.node,t,"Start"),t=>io(this.node,t,"End")))))}unmount(){}}}},yo={layout:{ProjectionNode:Js,MeasureLayout:Ni}},xo=(0,ki.createContext)({strict:!1});var wo=n(60987);const Po=(0,ki.createContext)({});function To(t){return s(t.animate)||d.some((e=>a(t[e])))}function So(t){return Boolean(To(t)||t.variants)}function bo(t){return Array.isArray(t)?t.join(" "):t}var Ao=n(46559);const Eo={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"]},Vo={};for(const t in Eo)Vo[t]={isEnabled:e=>Eo[t].some((t=>!!e[t]))};const Mo=Symbol.for("motionComponentSymbol");function Co(t,e,n){return(0,ki.useCallback)((i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&("function"==typeof n?n(i):qn(n)&&(n.current=i))}),[e])}var Do=n(14394),ko=n(63797);function Ro(t,e,n,i,s){var o,r;const{visualElement:a}=(0,ki.useContext)(Po),l=(0,ki.useContext)(xo),u=(0,ki.useContext)(Do.t),c=(0,ki.useContext)(wo.Q).reducedMotion,h=(0,ki.useRef)(null);i=i||l.renderer,!h.current&&i&&(h.current=i(t,{visualState:e,parent:a,props:n,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:c}));const d=h.current,p=(0,ki.useContext)(Bi);!d||d.projection||!s||"html"!==d.type&&"svg"!==d.type||function(t,e,n,i){const{layoutId:s,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Lo(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:Boolean(r)||a&&qn(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}(h.current,n,s,p);const m=(0,ki.useRef)(!1);(0,ki.useInsertionEffect)((()=>{d&&m.current&&d.update(n,u)}));const f=n[T],v=(0,ki.useRef)(Boolean(f)&&!(null===(o=window.MotionHandoffIsComplete)||void 0===o?void 0:o.call(window,f))&&(null===(r=window.MotionHasOptimisedAnimation)||void 0===r?void 0:r.call(window,f)));return(0,ko.E)((()=>{d&&(m.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),zi.render(d.render),v.current&&d.animationState&&d.animationState.animateChanges())})),(0,ki.useEffect)((()=>{d&&(!v.current&&d.animationState&&d.animationState.animateChanges(),v.current&&(queueMicrotask((()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,f)})),v.current=!1))})),d}function Lo(t){if(t)return!1!==t.options.allowProjection?t.projection:Lo(t.parent)}function Bo({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:s}){var o,r;function l(t,o){let r;const l={...(0,ki.useContext)(wo.Q),...t,layoutId:jo(t)},{isStatic:u}=l,c=function(t){const{initial:e,animate:n}=function(t,e){if(To(t)){const{initial:e,animate:n}=t;return{initial:!1===e||a(e)?e:void 0,animate:a(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,ki.useContext)(Po));return(0,ki.useMemo)((()=>({initial:e,animate:n})),[bo(e),bo(n)])}(t),h=i(t,u);if(!u&&Ao.B){(0,ki.useContext)(xo).strict;const t=function(t){const{drag:e,layout:n}=Vo;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==n?void 0:n.isEnabled(t))?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(l);r=t.MeasureLayout,c.visualElement=Ro(s,h,l,e,t.ProjectionNode)}return(0,Di.jsxs)(Po.Provider,{value:c,children:[r&&c.visualElement?(0,Di.jsx)(r,{visualElement:c.visualElement,...l}):null,n(s,t,Co(h,c.visualElement,o),h,u,c.visualElement)]})}t&&function(t){for(const e in t)Vo[e]={...Vo[e],...t[e]}}(t),l.displayName=`motion.${"string"==typeof s?s:`create(${null!==(r=null!==(o=s.displayName)&&void 0!==o?o:s.name)&&void 0!==r?r:""})`}`;const u=(0,ki.forwardRef)(l);return u[Mo]=s,u}function jo({layoutId:t}){const e=(0,ki.useContext)(Li.L).id;return e&&void 0!==t?e+"-"+t:t}const Fo=["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 Oo(t){return"string"==typeof t&&!t.includes("-")&&!!(Fo.indexOf(t)>-1||/[A-Z]/u.test(t))}var Io=n(49474);const Uo=t=>(e,n)=>{const i=(0,ki.useContext)(Po),s=(0,ki.useContext)(Do.t),o=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},i,s,o){const r={latestValues:Go(i,s,o,t),renderState:e()};return n&&(r.onMount=t=>n({props:i,current:t,...r}),r.onUpdate=t=>n(t)),r}(t,e,i,s);return n?o():(0,Io.M)(o)};function Go(t,e,n,i){const o={},r=i(t,{});for(const t in r)o[t]=Qi(r[t]);let{initial:a,animate:l}=t;const c=To(t),h=So(t);e&&h&&!c&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));let d=!!n&&!1===n.initial;d=d||!1===a;const p=d?l:a;if(p&&"boolean"!=typeof p&&!s(p)){const e=Array.isArray(p)?p:[p];for(let n=0;n<e.length;n++){const i=u(t,e[n]);if(i){const{transitionEnd:t,transition:e,...n}=i;for(const t in n){let e=n[t];Array.isArray(e)&&(e=e[d?e.length-1:0]),null!==e&&(o[t]=e)}for(const e in t)o[e]=t[e]}}}return o}const zo=(t,e)=>e&&"number"==typeof t?e.transform(t):t,Wo={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},$o=m.length;function No(t,e,n){const{style:i,vars:s,transformOrigin:o}=t;let r=!1,a=!1;for(const t in e){const n=e[t];if(f.has(t))r=!0;else if(ae(t))s[t]=n;else{const e=zo(n,Gt[t]);t.startsWith("origin")?(a=!0,o[t]=e):i[t]=e}}if(e.transform||(r||n?i.transform=function(t,e,n){let i="",s=!0;for(let o=0;o<$o;o++){const r=m[o],a=t[r];if(void 0===a)continue;let l=!0;if(l="number"==typeof a?a===(r.startsWith("scale")?1:0):0===parseFloat(a),!l||n){const t=zo(a,Gt[r]);l||(s=!1,i+=`${Wo[r]||r}(${t}) `),n&&(e[r]=t)}}return i=i.trim(),n?i=n(e,s?"":i):s&&(i="none"),i}(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:t="50%",originY:e="50%",originZ:n=0}=o;i.transformOrigin=`${t} ${e} ${n}`}}const Ho={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ko={offset:"strokeDashoffset",array:"strokeDasharray"};function Yo(t,e,n){return"string"==typeof t?t:yt.transform(e+n*t)}function Xo(t,{attrX:e,attrY:n,attrScale:i,originX:s,originY:o,pathLength:r,pathSpacing:a=1,pathOffset:l=0,...u},c,h){if(No(t,u,h),c)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:d,style:p,dimensions:m}=t;d.transform&&(m&&(p.transform=d.transform),delete d.transform),m&&(void 0!==s||void 0!==o||p.transform)&&(p.transformOrigin=function(t,e,n){return`${Yo(e,t.x,t.width)} ${Yo(n,t.y,t.height)}`}(m,void 0!==s?s:.5,void 0!==o?o:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==i&&(d.scale=i),void 0!==r&&function(t,e,n=1,i=0,s=!0){t.pathLength=1;const o=s?Ho:Ko;t[o.offset]=yt.transform(-i);const r=yt.transform(e),a=yt.transform(n);t[o.array]=`${r} ${a}`}(d,r,a,l,!1)}const qo=t=>"string"==typeof t&&"svg"===t.toLowerCase();function Qo(t,{style:e,vars:n},i,s){Object.assign(t.style,e,s&&s.getProjectionStyles(i));for(const e in n)t.style.setProperty(e,n[e])}const Zo=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function _o(t,e,n,i){Qo(t,e,void 0,i);for(const n in e.attrs)t.setAttribute(Zo.has(n)?n:P(n),e.attrs[n])}function Jo(t,{layout:e,layoutId:n}){return f.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!Ui[t]||"opacity"===t)}function tr(t,e,n){var i;const{style:s}=t,o={};for(const r in s)(x(s[r])||e.style&&x(e.style[r])||Jo(r,t)||void 0!==(null===(i=null==n?void 0:n.getValue(r))||void 0===i?void 0:i.liveStyle))&&(o[r]=s[r]);return o}function er(t,e,n){const i=tr(t,e,n);for(const n in t)(x(t[n])||x(e[n]))&&(i[-1!==m.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=t[n]);return i}const nr=["x","y","width","height","cx","cy","r"],ir={useVisualState:Uo({scrapeMotionValuesFromProps:er,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),onUpdate:({props:t,prevProps:e,current:n,renderState:i,latestValues:s})=>{if(!n)return;let o=!!t.drag;if(!o)for(const t in s)if(f.has(t)){o=!0;break}if(!o)return;let r=!e;if(e)for(let n=0;n<nr.length;n++){const i=nr[n];t[i]!==e[i]&&(r=!0)}r&&D.Gt.read((()=>{!function(t,e){try{e.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(t){e.dimensions={x:0,y:0,width:0,height:0}}}(n,i),D.Gt.render((()=>{Xo(i,s,qo(n.tagName),t.transformTemplate),_o(n,i)}))}))}})},sr={useVisualState:Uo({scrapeMotionValuesFromProps:tr,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})})};function or(t,e,n){for(const i in e)x(e[i])||Jo(i,n)||(t[i]=e[i])}function rr(t,e){const n={},i=function(t,e){const n={};return or(n,t.style||{},t),Object.assign(n,function({transformTemplate:t},e){return(0,ki.useMemo)((()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return No(n,e,t),Object.assign({},n.vars,n.style)}),[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const ar=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function lr(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ar.has(t)}let ur=t=>!lr(t);try{(cr=require("@emotion/is-prop-valid").default)&&(ur=t=>t.startsWith("on")?!lr(t):cr(t))}catch(t){}var cr;function hr(t,e,n,i){const s=(0,ki.useMemo)((()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return Xo(n,e,qo(i),t.transformTemplate),{...n.attrs,style:{...n.style}}}),[e]);if(t.style){const e={};or(e,t.style,t),s.style={...e,...s.style}}return s}function dr(t=!1){return(e,n,i,{latestValues:s},o)=>{const r=(Oo(e)?hr:rr)(n,s,o,e),a=function(t,e,n){const i={};for(const s in t)"values"===s&&"object"==typeof t.values||(ur(s)||!0===n&&lr(s)||!e&&!lr(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}(n,"string"==typeof e,t),l=e!==ki.Fragment?{...a,...r,ref:i}:{},{children:u}=n,c=(0,ki.useMemo)((()=>x(u)?u.get():u),[u]);return(0,ki.createElement)(e,{...l,children:c})}}function pr(t,e){return function(n,{forwardMotionProps:i}={forwardMotionProps:!1}){return Bo({...Oo(n)?ir:sr,preloadedFeatures:t,useRender:dr(i),createVisualElement:e,Component:n})}}const mr={current:null},fr={current:!1},vr=[...me,St,Rt],gr=new WeakMap,yr=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class xr{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ne,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const t=ge.k.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,D.Gt.render(this.render,!1,!0))};const{latestValues:a,renderState:l,onUpdate:u}=o;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=r,this.blockInitialAnimation=Boolean(s),this.isControllingVariants=To(e),this.isVariantNode=So(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:c,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in h){const e=h[t];void 0!==a[t]&&x(e)&&e.set(a[t],!1)}}mount(t){this.current=t,gr.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),fr.current||function(){if(fr.current=!0,Ao.B)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>mr.current=t.matches;t.addListener(e),e()}else mr.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||mr.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){gr.delete(this.current),this.projection&&this.projection.unmount(),(0,D.WG)(this.notifyUpdate),(0,D.WG)(this.render),this.valueSubscriptions.forEach((t=>t())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=f.has(t),i=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&D.Gt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),s=e.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,(()=>{i(),s(),o&&o(),e.owner&&e.stop()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in Vo){const e=Vo[t];if(!e)continue;const{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const 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):{x:{min:0,max:0},y:{min:0,max:0}}}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<yr.length;e++){const n=yr[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(t,e,n){for(const i in e){const s=e[i],o=n[i];if(x(s))t.addValue(i,s);else if(x(o))t.addValue(i,(0,g.OQ)(s,{owner:t}));else if(o!==s)if(t.hasValue(i)){const e=t.getValue(i);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{const e=t.getStaticValue(i);t.addValue(i,(0,g.OQ)(void 0!==e?e:s,{owner:t}))}}for(const i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=(0,g.OQ)(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){var n;let i=void 0===this.latestValues[t]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,t))&&void 0!==n?n:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var s;return null!=i&&("string"==typeof i&&(oe(i)||nt(i))?i=parseFloat(i):(s=i,!vr.find(pe(s))&&Rt.test(e)&&(i=$t(t,e))),this.setBaseTarget(t,x(i)?i.get():i)),x(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props;let i;if("string"==typeof n||"object"==typeof n){const s=u(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);s&&(i=s[t])}if(n&&void 0!==i)return i;const s=this.getBaseTargetFromProps(this.props,t);return void 0===s||x(s)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new qi.v),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class wr extends xr{constructor(){super(...arguments),this.KeyframeResolver=ve}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;x(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}}class Pr extends wr{constructor(){super(...arguments),this.type="html",this.renderInstance=Qo}readValueFromInstance(t,e){if(f.has(e)){const t=Wt(e);return t&&t.default||0}{const i=(n=t,window.getComputedStyle(n)),s=(ae(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return bi(t,e)}build(t,e,n){No(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return tr(t,e,n)}}class Tr extends wr{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ai}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(f.has(e)){const t=Wt(e);return t&&t.default||0}return e=Zo.has(e)?e:P(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return er(t,e,n)}build(t,e,n){Xo(t,e,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,n,i){_o(t,e,0,i)}mount(t){this.isSVGTag=qo(t.tagName),super.mount(t)}}const Sr=i(pr({...Bn,...go,...to,...yo},((t,e)=>Oo(t)?new Tr(e):new Pr(e,{allowProjection:t!==ki.Fragment}))))},42700:(t,e,n)=>{n.d(e,{A:()=>o});var i=n(51609),s=n(55933);const o=(0,i.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(s.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zm-2.8 0H9.8V7c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3z"}))},46559:(t,e,n)=>{n.d(e,{B:()=>i});const i="undefined"!=typeof window},46644:(t,e,n)=>{n.d(e,{A:()=>o});var i=n(51609),s=n(55933);const o=(0,i.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,i.createElement)(s.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"}))},47406:(t,e,n)=>{n.d(e,{A:()=>o});var i=n(51609),s=n(55933);const o=(0,i.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(s.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"}))},48731:(t,e,n)=>{n.d(e,{L:()=>s});var i=n(51609);function s(t,e,n){(0,i.useInsertionEffect)((()=>t.on(e,n)),[t,e,n])}},48851:(t,e,n)=>{n.d(e,{A:()=>o});var i=n(51609),s=n(55933);const o=(0,i.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(s.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"}))},49474:(t,e,n)=>{n.d(e,{M:()=>s});var i=n(51609);function s(t){const e=(0,i.useRef)(null);return null===e.current&&(e.current=t()),e.current}},52485:(t,e,n)=>{n.d(e,{A:()=>o});var i=n(51609),s=n(55933);const o=(0,i.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(s.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}))},53756:(t,e,n)=>{n.d(e,{A:()=>o});var i=n(51609),s=n(55933);const o=(0,i.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(s.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}))},54636:(t,e,n)=>{n.d(e,{z:()=>l});var i=n(51609),s=n(60987),o=n(87697),r=n(84192),a=n(49474);function l(){const t=function(){const t=(0,a.M)((()=>(0,r.OQ)(0))),{isStatic:e}=(0,i.useContext)(s.Q);if(e){const[,e]=(0,i.useState)(0);(0,i.useEffect)((()=>t.on("change",e)),[])}return t}();return function(t){const e=(0,i.useRef)(0),{isStatic:n}=(0,i.useContext)(s.Q);(0,i.useEffect)((()=>{if(n)return;const i=({timestamp:n,delta:i})=>{e.current||(e.current=n),t(n-e.current)};return o.Gt.update(i,!0),()=>(0,o.WG)(i)}),[t])}((e=>t.set(e))),t}},58729:(t,e,n)=>{n.d(e,{Ay:()=>a});var i=n(51609),s=Object.prototype.hasOwnProperty;function o(t,e,n){for(n of t.keys())if(r(n,e))return n}function r(t,e){var n,i,a;if(t===e)return!0;if(t&&e&&(n=t.constructor)===e.constructor){if(n===Date)return t.getTime()===e.getTime();if(n===RegExp)return t.toString()===e.toString();if(n===Array){if((i=t.length)===e.length)for(;i--&&r(t[i],e[i]););return-1===i}if(n===Set){if(t.size!==e.size)return!1;for(i of t){if((a=i)&&"object"==typeof a&&!(a=o(e,a)))return!1;if(!e.has(a))return!1}return!0}if(n===Map){if(t.size!==e.size)return!1;for(i of t){if((a=i[0])&&"object"==typeof a&&!(a=o(e,a)))return!1;if(!r(i[1],e.get(a)))return!1}return!0}if(n===ArrayBuffer)t=new Uint8Array(t),e=new Uint8Array(e);else if(n===DataView){if((i=t.byteLength)===e.byteLength)for(;i--&&t.getInt8(i)===e.getInt8(i););return-1===i}if(ArrayBuffer.isView(t)){if((i=t.byteLength)===e.byteLength)for(;i--&&t[i]===e[i];);return-1===i}if(!n||"object"==typeof t){for(n in i=0,t){if(s.call(t,n)&&++i&&!s.call(e,n))return!1;if(!(n in e)||!r(t[n],e[n]))return!1}return Object.keys(e).length===i}}return t!=t&&e!=e}function a(t,e){return i.useEffect(t,(n=e,s=i.useRef(n),o=i.useRef(0),r(n,s.current)||(s.current=n,o.current+=1),i.useMemo((function(){return s.current}),[o.current])));var n,s,o}},60987:(t,e,n)=>{n.d(e,{Q:()=>i});const i=(0,n(51609).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},63797:(t,e,n)=>{n.d(e,{E:()=>s});var i=n(51609);const s=n(46559).B?i.useLayoutEffect:i.useEffect},66655:(t,e,n)=>{n.d(e,{A:()=>o});var i=n(51609),s=n(55933);const o=(0,i.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(s.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}))},68176:(t,e,n)=>{n.d(e,{A:()=>o});var i=n(51609),s=n(55933);const o=(0,i.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(s.Path,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"}))},68713:(t,e,n)=>{n.d(e,{v:()=>s});var i=n(95383);class s{constructor(){this.subscriptions=[]}add(t){return(0,i.Kq)(this.subscriptions,t),()=>(0,i.Ai)(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let s=0;s<i;s++){const i=this.subscriptions[s];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},72222:(t,e,n)=>{n.d(e,{A:()=>o});var i=n(51609),s=n(55933);const o=(0,i.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(s.Path,{d:"M11 14.5l1.1 1.1 3-3 .5-.5-.6-.6-3-3-1 1 1.7 1.7H5v1.5h7.7L11 14.5zM16.8 5h-7c-1.1 0-2 .9-2 2v1.5h1.5V7c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v10c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5v-1.5H7.8V17c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2z"}))},73627:(t,e,n)=>{n.d(e,{W:()=>i});const i={skipAnimations:!1,useManualTiming:!1}},77052:(t,e,n)=>{function i(t,e){return e?t*(1e3/e):0}n.d(e,{f:()=>i})},81903:(t,e,n)=>{n.d(e,{A:()=>o});var i=n(51609),s=n(55933);const o=(0,i.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(s.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"}))},83006:(t,e,n)=>{n.d(e,{L:()=>i});const i=(0,n(51609).createContext)({})},84156:(t,e,n)=>{var i,s;function o(t){return[t]}function r(){var t={clear:function(){t.head=null}};return t}function a(t,e,n){var i;if(t.length!==e.length)return!1;for(i=n;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}function l(t,e){var n,l;function u(){n=s?new WeakMap:r()}function c(){var n,i,s,o,r,u=arguments.length;for(o=new Array(u),s=0;s<u;s++)o[s]=arguments[s];for(r=e.apply(null,o),(n=l(r)).isUniqueByDependants||(n.lastDependants&&!a(r,n.lastDependants,0)&&n.clear(),n.lastDependants=r),i=n.head;i;){if(a(i.args,o,1))return i!==n.head&&(i.prev.next=i.next,i.next&&(i.next.prev=i.prev),i.next=n.head,i.prev=null,n.head.prev=i,n.head=i),i.val;i=i.next}return i={val:t.apply(null,o)},o[0]=null,i.args=o,n.head&&(n.head.prev=i,i.next=n.head),n.head=i,i.val}return e||(e=o),l=s?function(t){var e,s,o,a,l,u=n,c=!0;for(e=0;e<t.length;e++){if(!(l=s=t[e])||"object"!=typeof l){c=!1;break}u.has(s)?u=u.get(s):(o=new WeakMap,u.set(s,o),u=o)}return u.has(i)||((a=r()).isUniqueByDependants=c,u.set(i,a)),u.get(i)}:function(){return n},c.getDependants=e,c.clear=u,u(),c}n.d(e,{A:()=>l}),i={},s="undefined"!=typeof WeakMap},84192:(t,e,n)=>{n.d(e,{OQ:()=>u});var i=n(85487),s=n(68713),o=n(77052),r=n(87697);const a={current:void 0};class l{constructor(t,e={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{const n=i.k.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=i.k.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new s.v);const n=this.events[t].add(e);return"change"===t?()=>{n(),r.Gt.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return a.current&&a.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=i.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,o.f)(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(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function u(t,e){return new l(t,e)}},85487:(t,e,n)=>{n.d(e,{k:()=>a});var i=n(73627),s=n(87697);let o;function r(){o=void 0}const a={now:()=>(void 0===o&&a.set(s.uv.isProcessing||i.W.useManualTiming?s.uv.timestamp:performance.now()),o),set:t=>{o=t,queueMicrotask(r)}}},87697:(t,e,n)=>{n.d(e,{Gt:()=>o,PP:()=>l,WG:()=>r,uv:()=>a});var i=n(20200),s=n(93713);const{schedule:o,cancel:r,state:a,steps:l}=(0,s.I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:i.l,!0)},93713:(t,e,n)=>{n.d(e,{I:()=>r});var i=n(73627);const s=["read","resolveKeyframes","update","preRender","render","postRender"],o=40;function r(t,e){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,u=s.reduce(((t,e)=>(t[e]=function(t){let e=new Set,n=new Set,i=!1,s=!1;const o=new WeakSet;let r={delta:0,timestamp:0,isProcessing:!1};function a(e){o.has(e)&&(l.schedule(e),t()),e(r)}const l={schedule:(t,s=!1,r=!1)=>{const a=r&&i?e:n;return s&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{r=t,i?s=!0:(i=!0,[e,n]=[n,e],e.forEach(a),e.clear(),i=!1,s&&(s=!1,l.process(t)))}};return l}(l),t)),{}),{read:c,resolveKeyframes:h,update:d,preRender:p,render:m,postRender:f}=u,v=()=>{const s=i.W.useManualTiming?a.timestamp:performance.now();n=!1,a.delta=r?1e3/60:Math.max(Math.min(s-a.timestamp,o),1),a.timestamp=s,a.isProcessing=!0,c.process(a),h.process(a),d.process(a),p.process(a),m.process(a),f.process(a),a.isProcessing=!1,n&&e&&(r=!1,t(v))};return{schedule:s.reduce(((e,i)=>{const s=u[i];return e[i]=(e,i=!1,o=!1)=>(n||(n=!0,r=!0,a.isProcessing||t(v)),s.schedule(e,i,o)),e}),{}),cancel:t=>{for(let e=0;e<s.length;e++)u[s[e]].cancel(t)},state:a,steps:u}}},95383:(t,e,n)=>{function i(t,e){-1===t.indexOf(e)&&t.push(e)}function s(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{Ai:()=>s,Kq:()=>i})}}]);