PageSourceSearch

https://musbresearch.com/assets/vendor-DyxzB9Av.js

js musbresearch.com collected 2026-10-06 16:25:57 UTC 175,392 bytes, 11 lines download raw bytes

vendor: 5,823 bytes, line 1
1var Yd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ir(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Xd(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var n=function i(){var s=!1;try{s=this instanceof i}catch{}return s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var s=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,s.get?s:{enumerable:!0,get:function(){return t[i]}})}),n}var ze={exports:{}},Gt={};var Ai;function da(){if(Ai)return Gt;Ai=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(i,s,o){var r=null;if(o!==void 0&&(r=""+o),s.key!==void 0&&(r=""+s.key),"key"in s){o={};for(var a in s)a!=="key"&&(o[a]=s[a])}else o=s;return s=o.ref,{$$typeof:t,type:i,key:r,ref:s!==void 0?s:null,props:o}}return Gt.Fragment=e,Gt.jsx=n,Gt.jsxs=n,Gt}var Mi;function pa(){return Mi||(Mi=1,ze.exports=da()),ze.exports}var xt=pa(),Ge={exports:{}},D={};var Di;function ma(){if(Di)return D;Di=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),r=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),h=Symbol.iterator;function m(p){return p===null||typeof p!="object"?null:(p=h&&p[h]||p["@@iterator"],typeof p=="function"?p:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,g={};function x(p,S,L){this.props=p,this.context=S,this.refs=g,this.updater=L||y}x.prototype.isReactComponent={},x.prototype.setState=function(p,S){if(typeof p!="object"&&typeof p!="function"&&p!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,p,S,"setState")},x.prototype.forceUpdate=function(p){this.updater.enqueueForceUpdate(this,p,"forceUpdate")};function w(){}w.prototype=x.prototype;function T(p,S,L){this.props=p,this.context=S,this.refs=g,this.updater=L||y}var P=T.prototype=new w;P.constructor=T,v(P,x.prototype),P.isPureReactComponent=!0;var R=Array.isArray;function k(){}var A={H:null,A:null,T:null,S:null},b=Object.prototype.hasOwnProperty;function M(p,S,L){var V=L.ref;return{$$typeof:t,type:p,key:S,ref:V!==void 0?V:null,props:L}}function C(p,S){return M(p.type,S,p.props)}function I(p){return typeof p=="object"&&p!==null&&p.$$typeof===t}function U(p){var S={"=":"=0",":":"=2"};return"$"+p.replace(/[=:]/g,function(L){return S[L]})}var J=/\/+/g;function G(p,S){return typeof p=="object"&&p!==null&&p.key!=null?U(""+p.key):S.toString(36)}function W(p){switch(p.status){case"fulfilled":return p.value;case"rejected":throw p.reason;default:switch(typeof p.status=="string"?p.then(k,k):(p.status="pending",p.then(function(S){p.status==="pending"&&(p.status="fulfilled",p.value=S)},function(S){p.status==="pending"&&(p.status="rejected",p.reason=S)})),p.status){case"fulfilled":return p.value;case"rejected":throw p.reason}}throw p}function Y(p,S,L,V,O){var F=typeof p;(F==="undefined"||F==="boolean")&&(p=null);var B=!1;if(p===null)B=!0;else switch(F){case"bigint":case"string":case"number":B=!0;break;case"object":switch(p.$$typeof){case t:case e:B=!0;break;case c:return B=p._init,Y(B(p._payload),S,L,V,O)}}if(B)return O=O(p),B=V===""?"."+G(p,0):V,R(O)?(L="",B!=null&&(L=B.replace(J,"$&/")+"/"),Y(O,S,L,"",function(ha){return ha})):O!=null&&(I(O)&&(O=C(O,L+(O.key==null||p&&p.key===O.key?"":(""+O.key).replace(J,"$&/")+"/")+B)),S.push(O)),1;B=0;var pt=V===""?".":V+":";if(R(p))for(var nt=0;nt<p.length;nt++)V=p[nt],F=pt+G(V,nt),B+=Y(V,S,L,F,O);else if(nt=m(p),typeof nt=="function")for(p=nt.call(p),nt=0;!(V=p.next()).done;)V=V.value,F=pt+G(V,nt++),B+=Y(V,S,L,F,O);else if(F==="object"){if(typeof p.then=="function")return Y(W(p),S,L,V,O);throw S=String(p),Error("Objects are not valid as a React child (found: "+(S==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":S)+"). If you meant to render a collection of children, use an array instead.")}return B}function zt(p,S,L){if(p==null)return p;var V=[],O=0;return Y(p,V,"","",function(F){return S.call(L,F,O++)}),V}function K(p){if(p._status===-1){var S=p._result;S=S(),S.then(function(L){(p._status===0||p._status===-1)&&(p._status=1,p._result=L)},function(L){(p._status===0||p._status===-1)&&(p._status=2,p._result=L)}),p._status===-1&&(p._status=0,p._result=S)}if(p._status===1)return p._result.default;throw p._result}var Q=typeof reportError=="function"?reportError:function(p){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var S=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p),error:p});if(!window.dispatchEvent(S))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",p);return}console.error(p)},vt={map:zt,forEach:function(p,S,L){zt(p,function(){S.apply(this,arguments)},L)},count:function(p){var S=0;return zt(p,function(){S++}),S},toArray:function(p){return zt(p,function(S){return S})||[]},only:function(p){if(!I(p))throw Error("React.Children.only expected to receive a single React element child.");return p}};return D.Activity=f,D.Children=vt,D.Component=x,D.Fragment=n,D.Profiler=s,D.PureComponent=T,D.Str
vendor: 4,322 bytes, line 1
1ictMode=i,D.Suspense=u,D.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,D.__COMPILER_RUNTIME={__proto__:null,c:function(p){return A.H.useMemoCache(p)}},D.cache=function(p){return function(){return p.apply(null,arguments)}},D.cacheSignal=function(){return null},D.cloneElement=function(p,S,L){if(p==null)throw Error("The argument must be a React element, but you passed "+p+".");var V=v({},p.props),O=p.key;if(S!=null)for(F in S.key!==void 0&&(O=""+S.key),S)!b.call(S,F)||F==="key"||F==="__self"||F==="__source"||F==="ref"&&S.ref===void 0||(V[F]=S[F]);var F=arguments.length-2;if(F===1)V.children=L;else if(1<F){for(var B=Array(F),pt=0;pt<F;pt++)B[pt]=arguments[pt+2];V.children=B}return M(p.type,O,V)},D.createContext=function(p){return p={$$typeof:r,_currentValue:p,_currentValue2:p,_threadCount:0,Provider:null,Consumer:null},p.Provider=p,p.Consumer={$$typeof:o,_context:p},p},D.createElement=function(p,S,L){var V,O={},F=null;if(S!=null)for(V in S.key!==void 0&&(F=""+S.key),S)b.call(S,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(O[V]=S[V]);var B=arguments.length-2;if(B===1)O.children=L;else if(1<B){for(var pt=Array(B),nt=0;nt<B;nt++)pt[nt]=arguments[nt+2];O.children=pt}if(p&&p.defaultProps)for(V in B=p.defaultProps,B)O[V]===void 0&&(O[V]=B[V]);return M(p,F,O)},D.createRef=function(){return{current:null}},D.forwardRef=function(p){return{$$typeof:a,render:p}},D.isValidElement=I,D.lazy=function(p){return{$$typeof:c,_payload:{_status:-1,_result:p},_init:K}},D.memo=function(p,S){return{$$typeof:l,type:p,compare:S===void 0?null:S}},D.startTransition=function(p){var S=A.T,L={};A.T=L;try{var V=p(),O=A.S;O!==null&&O(L,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(k,Q)}catch(F){Q(F)}finally{S!==null&&L.types!==null&&(S.types=L.types),A.T=S}},D.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},D.use=function(p){return A.H.use(p)},D.useActionState=function(p,S,L){return A.H.useActionState(p,S,L)},D.useCallback=function(p,S){return A.H.useCallback(p,S)},D.useContext=function(p){return A.H.useContext(p)},D.useDebugValue=function(){},D.useDeferredValue=function(p,S){return A.H.useDeferredValue(p,S)},D.useEffect=function(p,S){return A.H.useEffect(p,S)},D.useEffectEvent=function(p){return A.H.useEffectEvent(p)},D.useId=function(){return A.H.useId()},D.useImperativeHandle=function(p,S,L){return A.H.useImperativeHandle(p,S,L)},D.useInsertionEffect=function(p,S){return A.H.useInsertionEffect(p,S)},D.useLayoutEffect=function(p,S){return A.H.useLayoutEffect(p,S)},D.useMemo=function(p,S){return A.H.useMemo(p,S)},D.useOptimistic=function(p,S){return A.H.useOptimistic(p,S)},D.useReducer=function(p,S,L){return A.H.useReducer(p,S,L)},D.useRef=function(p){return A.H.useRef(p)},D.useState=function(p){return A.H.useState(p)},D.useSyncExternalStore=function(p,S,L){return A.H.useSyncExternalStore(p,S,L)},D.useTransition=function(){return A.H.useTransition()},D.version="19.2.3",D}var Vi;function sr(){return Vi||(Vi=1,Ge.exports=ma()),Ge.exports}var d=sr();const qd=ir(d);var Ye={exports:{}},Z={};var Li;function ga(){if(Li)return Z;Li=1;var t=sr();function e(u){var l="https://react.dev/errors/"+u;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)l+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+u+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var i={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},s=Symbol.for("react.portal");function o(u,l,c){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:f==null?null:""+f,children:u,containerInfo:l,implementation:c}}var r=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(u,l){if(u==="font")return"";if(typeof l=="string")return l==="use-credentials"?l:""}return Z.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Z.createPortal=function(u,l){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)throw Error(e(299));return o(u,l,null,c)},Z.flushSync=function(u){var l=r.T,c=i.p;try{if(r.T=null,i.p=2,u)return u()}finally{r.T=l,i.p=c,i.d.f()}}
1,Z.preconnect=function(u,l){typeof u=="string"&&(l?(l=l.crossOrigin,l=typeof l=="string"?l==="use-credentials"?l:"":void 0):l=null,i.d.C(u,l))},Z.prefetchDNS=function(u){typeof u=="string"&&i.d.D(u)},Z.preinit=function(u,l){if(typeof u=="string"&&l&&typeof l.as=="string"){var c=l.as,f=a(c,l.crossOrigin),h=typeof l.integrity=="string"?l.integrity:void 0,m=typeof l.fetchPriority=="string"?l.fetchPriority:void 0;c==="style"?i.d.S(u,typeof l.precedence=="string"?l.precedence:void 0,{crossOrigin:f,integrity:h,fetchPriority:m}):c==="script"&&i.d.X(u,{crossOrigin:f,integrity:h,fetchPriority:m,nonce:typeof l.nonce=="string"?l.nonce:void 0})}},Z.preinitModule=function(u,l){if(typeof u=="string")if(typeof l=="object"&&l!==null){if(l.as==null||l.as==="script"){var c=a(l.as,l.crossOrigin);i.d.M(u,{crossOrigin:c,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0})}}else l==null&&i.d.M(u)},Z.preload=function(u,l){if(typeof u=="string"&&typeof l=="object"&&l!==null&&typeof l.as=="string"){var c=l.as,f=a(c,l.crossOrigin);i.d.L(u,c,{crossOrigin:f,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0,type:typeof l.type=="string"?l.type:void 0,fetchPriority:typeof l.fetchPriority=="string"?l.fetchPriority:void 0,referrerPolicy:typeof l.referrerPolicy=="string"?l.referrerPolicy:void 0,imageSrcSet:typeof l.imageSrcSet=="string"?l.imageSrcSet:void 0,imageSizes:typeof l.imageSizes=="string"?l.imageSizes:void 0,media:typeof l.media=="string"?l.media:void 0})}},Z.preloadModule=function(u,l){if(typeof u=="string")if(l){var c=a(l.as,l.crossOrigin);i.d.m(u,{as:typeof l.as=="string"&&l.as!=="script"?l.as:void 0,crossOrigin:c,integrity:typeof l.integrity=="string"?l.integrity:void 0})}else i.d.m(u)},Z.requestFormReset=function(u){i.d.r(u)},Z.unstable_batchedUpdates=function(u,l){return u(l)},Z.useFormState=function(u,l,c){return r.H.useFormState(u,l,c)},Z.useFormStatus=function(){return r.H.useHostTransitionStatus()},Z.version="19.2.3",Z}var ki;function ya(){if(ki)return Ye.exports;ki=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Ye.exports=ga(),Ye.exports}var Un=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,rr=/^[\\/]{2}/;function va(t,e){return e+t.replace(/\\/g,"/")}var Oi="popstate";function Ii(t){return typeof t=="object"&&t!=null&&"pathname"in t&&"search"in t&&"hash"in t&&"state"in t&&"key"in t}function xa(t={}){function e(i,s){let o=s.state?.masked,{pathname:r,search:a,hash:u}=o||i.location;return mn("",{pathname:r,search:a,hash:u},s.state&&s.state.usr||null,s.state&&s.state.key||"default",o?{pathname:i.location.pathname,search:i.location.search,hash:i.location.hash}:void 0)}function n(i,s){return typeof s=="string"?s:ee(s)}return wa(e,n,null,t)}function j(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function at(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function Ta(){return Math.random().toString(36).substring(2,10)}function Fi(t,e){return{usr:t.state,key:t.key,idx:e,masked:t.mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function mn(t,e,n=null,i,s){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?Nt(e):e,state:n,key:e&&e.key||i||Ta(),mask:s}}function ee({pathname:t="/",search:e="",hash:n=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Nt(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substring(n),t=t.substring(0,n));let i=t.indexOf("?");i>=0&&(e.search=t.substring(i),t=t.substring(0,i)),t&&(e.pathname=t)}return e}function wa(t,e,n,i={}){let{window:s=document.defaultView,v5Compat:o=!1}=i,r=s.history,a="POP",u=null,l=c();l==null&&(l=0,r.replaceState({...r.state,idx:l},""));function c(){return(r.state||{idx:null}).idx}function f(){a="POP";let g=c(),x=g==null?null:g-l;l=g,u&&u({action:a,location:v.location,delta:x})}function h(g,x){a="PUSH";let w=Ii(g)?g:mn(v.location,g,x);l=c()+1;let T=Fi(w,l),P=v.createHref(w.mask||w);try{r.pushState(T,"",P)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;s.location.assign(P)}o&&u&&u({action:a,location:v.location,delta:1})}function m(g,x){a="REPLACE";let w=Ii(g)?g:mn(v.location,g,x);l=c();let T=Fi(w,l),P=v.createHref(w.mask||w);r.replaceState(T,"",P),o&&u&&u({action:a,location:v.location,delta:0})}function y(g){return Sa(s,g)}let v={get action(){return a},get location(){return t(s,r)},listen(g){if(u)throw new Error("A history only accepts one active listener");return s.addEventListener(Oi,f),u=g,()=>{s.removeEventListener(Oi,f),u=null}},createHref(g){return e(s,g)},createURL:y,encodeLocation(g){let x=y(g);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:h,replace:m,go(g){return r.go(g)}};return v}function Sa(t,e,n=!1){let i="http://localhost";t&&(i=t.location.origin!=="null"?t.location.origin:t.location.href),j(i,"No window.location.(origin|href) available to create URL");let s=typeof e=="string"?e:ee(e);return s=s.replace(/ $/,"%20"),!n&&rr.test(s)&&(s=i+s),new URL(s,i)}function or(t,e,n="/"){return Pa(t,e,n,!1)}function Pa(t,e,n,i,s){let o=typeof e=="string"?Nt(e):e,r=Tt(o.pathname||"/",n);if(r==null)return null;let a=Ra(t),u=null,l=Ia(r);for(let c=0;u==null&&c<a.length;++c)u=Oa(a[c],l,i);return u}function Ra(t){let e=ar(t);return Ea(e),e}function ar(t,e=[],n=[],i="",s=!1){let o=(r,a,u=s,l)=>{let c={relativePath:l===void 0?r.path||"":l,caseSensitive:r.caseSensitive===!0,childrenIndex:a,route:r};
1if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(i)&&u)return;j(c.relativePath.startsWith(i),`Absolute route path "${c.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(i.length)}let f=ct([i,c.relativePath]),h=n.concat(c);r.children&&r.children.length>0&&(j(r.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),ar(r.children,e,h,f,u)),!(r.path==null&&!r.index)&&e.push({path:f,score:La(f,r.index),routesMeta:h.map((m,y)=>{let[v,g]=cr(m.relativePath,m.caseSensitive,y===h.length-1);return{...m,matcher:v,compiledParams:g}})})};return t.forEach((r,a)=>{if(r.path===""||!r.path?.includes("?"))o(r,a);else for(let u of lr(r.path))o(r,a,!0,u)}),e}function lr(t){let e=t.split("/");if(e.length===0)return[];let[n,...i]=e,s=n.endsWith("?"),o=n.replace(/\?$/,"");if(i.length===0)return s?[o,""]:[o];let r=lr(i.join("/")),a=[];return a.push(...r.map(u=>u===""?o:[o,u].join("/"))),s&&a.push(...r),a.map(u=>t.startsWith("/")&&u===""?"/":u)}function Ea(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:ka(e.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}var Ca=/^:[\w-]+$/,ba=3,Aa=2,Ma=1,Da=10,Va=-2,_i=t=>t==="*";function La(t,e){let n=t.split("/"),i=n.length;return n.some(_i)&&(i+=Va),e&&(i+=Aa),n.filter(s=>!_i(s)).reduce((s,o)=>s+(Ca.test(o)?ba:o===""?Ma:Da),i)}function ka(t,e){return t.length===e.length&&t.slice(0,-1).every((i,s)=>i===e[s])?t[t.length-1]-e[e.length-1]:0}function Oa(t,e,n=!1){let{routesMeta:i}=t,s={},o="/",r=[];for(let a=0;a<i.length;++a){let u=i[a],l=a===i.length-1,c=o==="/"?e:e.slice(o.length)||"/",f={path:u.relativePath,caseSensitive:u.caseSensitive,end:l},h=u.matcher&&u.compiledParams?ur(f,c,u.matcher,u.compiledParams):Ae(f,c),m=u.route;if(!h&&l&&n&&!i[i.length-1].route.index&&(h=Ae({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},c)),!h)return null;
1Object.assign(s,h.params),r.push({params:s,pathname:ct([o,h.pathname]),pathnameBase:Ba(ct([o,h.pathnameBase])),route:m}),h.pathnameBase!=="/"&&(o=ct([o,h.pathnameBase]))}return r}function Ae(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,i]=cr(t.path,t.caseSensitive,t.end);return ur(t,e,n,i)}function ur(t,e,n,i){let s=e.match(n);if(!s)return null;let o=s[0],r=o.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:i.reduce((l,{paramName:c,isOptional:f},h)=>{if(c==="*"){let y=a[h]||"";r=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const m=a[h];return f&&!m?l[c]=void 0:l[c]=(m||"").replace(/%2F/g,"/"),l},{}),pathname:o,pathnameBase:r,pattern:t}}function cr(t,e=!1,n=!0){at(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let i=[],s="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(r,a,u,l,c)=>{if(i.push({paramName:a,isOptional:u!=null}),u){let f=c.charAt(l+r.length);return f&&f!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(i.push({paramName:"*"}),s+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":t!==""&&t!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,e?void 0:"i"),i]}function Ia(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return at(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function Tt(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,i=t.charAt(n);return i&&i!=="/"?null:t.slice(n)||"/"}function Fa(t,e="/"){let{pathname:n,search:i="",hash:s=""}=typeof t=="string"?Nt(t):t,o;return n?(n=fr(n),n.startsWith("/")?o=Bi(n.substring(1),"/"):o=Bi(n,e)):o=e,{pathname:o,search:ja(i),hash:Na(s)}}function Bi(t,e){let n=Me(e).split("/");return t.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Xe(t,e,n,i){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(i)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function _a(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function Wn(t){let e=_a(t);return e.map((n,i)=>i===e.length-1?n.pathname:n.pathnameBase)}function Be(t,e,n,i=!1){let s;typeof t=="string"?s=Nt(t):(s={...t},j(!s.pathname||!s.pathname.includes("?"),Xe("?","pathname","search",s)),j(!s.pathname||!s.pathname.includes("#"),Xe("#","pathname","hash",s)),j(!s.search||!s.search.includes("#"),Xe("#","search","hash",s)));let o=t===""||s.pathname==="",r=o?"/":s.pathname,a;if(r==null)a=n;else{let f=e.length-1;if(!i&&r.startsWith("..")){let h=r.split("/");for(;h[0]==="..";)h.shift(),f-=1;s.pathname=h.join("/")}a=f>=0?e[f]:"/"}let u=Fa(s,a),l=r&&r!=="/"&&r.endsWith("/"),c=(o||r===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(l||c)&&(u.pathname+="/"),u}var fr=t=>t.replace(/[\\/]{2,}/g,"/"),ct=t=>fr(t.join("/")),Me=t=>t.replace(/\/+$/,""),Ba=t=>Me(t).replace(/^\/*/,"/"),ja=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Na=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,$a=class{constructor(t,e,n,i=!1){this.status=t,this.statusText=e||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Ua(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function Wa(t){let e=t.map(n=>n.route.path).filter(Boolean);return ct(e)||"/"}var hr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function dr(t,e){let n=t;if(typeof n!="string"||!Un.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let i=n,s=!1;if(hr)try{let o=new URL(window.location.href),r=rr.test(n)?new URL(va(n,o.protocol)):new URL(n),a=Tt(r.pathname,e);r.origin===o.origin&&a!=null?n=a+r.search+r.hash:s=!0}catch{at(!1,`<Link to="${n}">
1 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:s,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var pr=["POST","PUT","PATCH","DELETE"];new Set(pr);var Ha=["GET",...pr];new Set(Ha);var Ka=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function za(t){try{return Ka.includes(new URL(t).protocol)}catch{return!1}}var $t=d.createContext(null);$t.displayName="DataRouter";var je=d.createContext(null);je.displayName="DataRouterState";var mr=d.createContext(!1);function Ga(){return d.useContext(mr)}var gr=d.createContext({isTransitioning:!1});gr.displayName="ViewTransition";var Ya=d.createContext(new Map);Ya.displayName="Fetchers";var Xa=d.createContext(null);Xa.displayName="Await";var st=d.createContext(null);st.displayName="Navigation";var oe=d.createContext(null);oe.displayName="Location";var ht=d.createContext({outlet:null,matches:[],isDataRoute:!1});ht.displayName="Route";var Hn=d.createContext(null);Hn.displayName="RouteError";var yr="REACT_ROUTER_ERROR",qa="REDIRECT",Za="ROUTE_ERROR_RESPONSE";function Ja(t){if(t.startsWith(`${yr}:${qa}:{`))try{let e=JSON.parse(t.slice(28));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.location=="string"&&typeof e.reloadDocument=="boolean"&&typeof e.replace=="boolean")return e}catch{}}function Qa(t){if(t.startsWith(`${yr}:${Za}:{`))try{let e=JSON.parse(t.slice(40));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string")return new $a(e.status,e.statusText,e.data)}catch{}}function tl(t,{relative:e}={}){j(Ut(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:i}=d.useContext(st),{hash:s,pathname:o,search:r}=ae(t,{relative:e}),a=o;return n!=="/"&&(a=o==="/"?n:ct([n,o])),i.createHref({pathname:a,search:r,hash:s})}function Ut(){return d.useContext(oe)!=null}function dt(){return j(Ut(),"useLocation() may be used only in the context of a <Router> component."),d.useContext(oe).location}var vr="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function xr(t){d.useContext(st).static||d.useLayoutEffect(t)}function Kn(){let{isDataRoute:t}=d.useContext(ht);return t?dl():el()}function el(){j(Ut(),"useNavigate() may be used only in the context of a <Router> component.");let t=d.useContext($t),{basename:e,navigator:n}=d.useContext(st),{matches:i}=d.useContext(ht),{pathname:s}=dt(),o=JSON.stringify(Wn(i)),r=d.useRef(!1);return xr(()=>{r.current=!0}),d.useCallback((u,l={})=>{if(at(r.current,vr),!r.current)return;if(typeof u=="number"){n.go(u);return}let c=Be(u,JSON.parse(o),s,l.relative==="path");t==null&&e!=="/"&&(c.pathname=c.pathname==="/"?e:ct([e,c.pathname])),(l.replace?n.replace:n.push)(c,l.state,l)},[e,n,o,s,t])}d.createContext(null);function Zd(){let{matches:t}=d.useContext(ht);return t[t.length-1]?.params??{}}function ae(t,{relative:e}={}){let{matches:n}=d.useContext(ht),{pathname:i}=dt(),s=JSON.stringify(Wn(n));return d.useMemo(()=>Be(t,JSON.parse(s),i,e==="path"),[t,s,i,e])}function nl(t,e){return Tr(t,e)}function Tr(t,e,n){j(Ut(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=d.useContext(st),{matches:s}=d.useContext(ht),o=s[s.length-1],r=o?o.params:{},a=o?o.pathname:"/",u=o?o.pathnameBase:"/",l=o&&o.route;{let g=l&&l.path||"";Sr(a,!l||g.endsWith("*")||g.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${a}" (under <Route path="${g}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
2
3Please change the parent <Route path="${g}"> to <Route path="${g==="/"?"*":`${g}/*`}">.`)}let c=dt(),f;if(e){let g=typeof e=="string"?Nt(e):e;j(u==="/"||g.pathname?.startsWith(u),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${g.pathname}" was given in the \`location\` prop.`),f=g}else f=c;let h=f.pathname||"/",m=h;if(u!=="/"){let g=u.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(g.length).join("/")}let y=n&&n.state.matches.length?n.state.matches.map(g=>Object.assign(g,{route:n.manifest[g.route.id]||g.route})):or(t,{pathname:m});at(l||y!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),at(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let v=al(y&&y.map(g=>Object.assign({},g,{params:Object.assign({},r,g.params),pathname:ct([u,i.encodeLocation?i.encodeLocation(g.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?u:ct([u,i.encodeLocation?i.encodeLocation(g.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:g.pathnameBase])})),s,n);return e&&v?d.createElement(oe.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...f},navigationType:"POP"}},v):v}function il(){let t=hl(),e=Ua(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:i},o={padding:"2px 4px",backgroundColor:i},r=null;return console.error("Error handled by React Router default ErrorBoundary:",t),r=d.createElement(d.Fragment,null,d.createElement("p",null,"💿 Hey developer 👋"),d.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",d.createElement("code",{style:o},"ErrorBoundary")," or"," ",d.createElement("code",{style:o},"errorElement")," prop on your route.")),d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application 
3Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},e),n?d.createElement("pre",{style:s},n):null,r)}var sl=d.createElement(il,null),wr=class extends d.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){this.props.onError?this.props.onError(t,e):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const n=Qa(t.digest);n&&(t=n)}let e=t!==void 0?d.createElement(ht.Provider,{value:this.props.routeContext},d.createElement(Hn.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?d.createElement(rl,{error:t},e):e}};wr.contextType=mr;var qe=new WeakMap;function rl({children:t,error:e}){let{basename:n}=d.useContext(st);if(typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){let i=Ja(e.digest);if(i){let s=qe.get(e);if(s)throw s;let o=dr(i.location,n),r=o.absoluteURL||o.to;if(za(r))throw new Error("Invalid redirect location");if(hr&&!qe.get(e))if(o.isExternal||i.reloadDocument)window.location.href=r;else{const a=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:i.replace}));throw qe.set(e,a),a}return d.createElement("meta",{httpEquiv:"refresh",content:`0;url=${r}`})}}return t}function ol({routeContext:t,match:e,children:n}){let i=d.useContext($t);return i&&i.static&&i.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=e.route.id),d.createElement(ht.Provider,{value:t},n)}function al(t,e=[],n){let i=n?.state;if(t==null){if(!i)return null;if(i.errors)t=i.matches;else if(e.length===0&&!i.initialized&&i.matches.length>0)t=i.matches;else return null}let s=t,o=i?.errors;if(o!=null){let c=s.findIndex(f=>f.route.id&&o?.[f.route.id]!==void 0);j(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),s=s.slice(0,Math.min(s.length,c+1))}let r=!1,a=-1;if(n&&i){r=i.renderFallback;for(let c=0;c<s.length;c++){let f=s[c];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(a=c),f.route.id){let{loaderData:h,errors:m}=i,y=f.route.loader&&!h.hasOwnProperty(f.route.id)&&(!m||m[f.route.id]===void 0);if(f.route.lazy||y){n.isStatic&&(r=!0),a>=0?s=s.slice(0,a+1):s=[s[0]];break}}}}let u=n?.onError,l=i&&u?(c,f)=>{u(c,{location:i.location,params:i.matches?.[0]?.params??{},pattern:Wa(i.matches),errorInfo:f})}:void 0;return s.reduceRight((c,f,h)=>{let m,y=!1,v=null,g=null;i&&(m=o&&f.route.id?o[f.route.id]:void 0,v=f.route.errorElement||sl,r&&(a<0&&h===0?(Sr("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,g=null):a===h&&(y=!0,g=f.route.hydrateFallbackElement||null)));let x=e.concat(s.slice(0,h+1)),w=()=>{let T;return m?T=v:y?T=g:f.route.Component?T=d.createElement(f.route.Component,null):f.route.element?T=f.route.element:T=c,d.createElement(ol,{match:f,routeContext:{outlet:c,matches:x,isDataRoute:i!=null},children:T})};return i&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?d.createElement(wr,{location:i.location,revalidation:i.revalidation,component:v,error:m,children:w(),routeContext:{outlet:null,matches:x,isDataRoute:!0},onError:l}):w()},null)}function zn(t){return`${t} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function ll(t){let e=d.useContext($t);return j(e,zn(t)),e}function ul(t){let e=d.useContext(je);return j(e,zn(t)),e}function cl(t){let e=d.useContext(ht);return j(e,zn(t)),e}function Gn(t){let e=cl(t),n=e.matches[e.matches.length-1];return j(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}function fl(){return Gn("useRouteId")}function hl(){let t=d.useContext(Hn),e=ul("useRouteError"),n=Gn("useRouteError");return t!==void 0?t:e.errors?.[n]}function dl(){let{router:t}=ll("useNavigate"),e=Gn("useNavigate"),n=d.useRef(!1);return xr(()=>{n.current=!0}),d.useCallback(async(s,o={})=>{at(n.current,vr),n.current&&(typeof s=="number"?await t.navigate(s):await t.navigate(s,{fromRouteId:e,...o}))},[t,e])}var ji={};function Sr(t,e,n){!e&&!ji[t]&&(ji[t]=!0,at(!1,n))}d.memo(pl);function pl({routes:t,manifest:e,future:n,state:i,isStatic:s,onError:o}){return Tr(t,void 0,{manifest:e,state:i,isStatic:s,onError:o})}function Jd({to:t,replace:e,state:n,relative:i}){j(Ut(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=d.useContext(st);at(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=d.useContext(ht),{pathname:r}=dt(),a=Kn(),u=Be(t,Wn(o),r,i==="path"),l=JSON.stringify(u);return d.useEffect(()=>{a(JSON.parse(l),{replace:e,state:n,relative:i})},[a,l,i,e,n]),null}function ml(t){j(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function gl({basename:t="/",children:e=null,location:n,navigationType:i="POP",navigator:s,static:o=!1,useTransitions:r}){j(!Ut(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=t.replace(/^\/*/,"/"),u=d.useMemo(()=>({basename:a,navigator:s,static:o,useTransitions:r,future:{}}),[a,s,o,r]);typeof n=="string"&&(n=Nt(n));let{pathname:l="/",search:c="",hash:f="",state:h=null,key:m="default",mask:y}=n,v=d.useMemo(()=>{let g=Tt(l,a);return g==null?null:{location:{pathname:g,search:c,hash:f,state:h,key:m,mask:y},navigationType:i}},[a,l,c,f,h,m,i,y]);
3return at(v!=null,`<Router basename="${a}"> is not able to match the URL "${l}${c}${f}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:d.createElement(st.Provider,{value:u},d.createElement(oe.Provider,{children:e,value:v}))}function Qd({children:t,location:e}){return nl(gn(t),e)}function gn(t,e=[]){let n=[];return d.Children.forEach(t,(i,s)=>{if(!d.isValidElement(i))return;let o=[...e,s];if(i.type===d.Fragment){n.push.apply(n,gn(i.props.children,o));return}j(i.type===ml,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),j(!i.props.index||!i.props.children,"An index route cannot have child routes.");let r={id:i.props.id||o.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(r.children=gn(i.props.children,o)),n.push(r)}),n}var ve="get",xe="application/x-www-form-urlencoded";function Ne(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function yl(t){return Ne(t)&&t.tagName.toLowerCase()==="button"}function vl(t){return Ne(t)&&t.tagName.toLowerCase()==="form"}function xl(t){return Ne(t)&&t.tagName.toLowerCase()==="input"}function Tl(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function wl(t,e){return t.button===0&&(!e||e==="_self")&&!Tl(t)}function yn(t=""){return new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((e,n)=>{let i=t[n];return e.concat(Array.isArray(i)?i.map(s=>[n,s]):[[n,i]])},[]))}function Sl(t,e){let n=yn(t);return e&&e.forEach((i,s)=>{n.has(s)||e.getAll(s).forEach(o=>{n.append(s,o)})}),n}var he=null;function Pl(){if(he===null)try{new FormData(document.createElement("form"),0),he=!1}catch{he=!0}return he}var Rl=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ze(t){return t!=null&&!Rl.has(t)?(at(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${xe}"`),null):t}function El(t,e){let n,i,s,o,r;if(vl(t)){let a=t.getAttribute("action");i=a?Tt(a,e):null,n=t.getAttribute("method")||ve,s=Ze(t.getAttribute("enctype"))||xe,o=new FormData(t)}else if(yl(t)||xl(t)&&(t.type==="submit"||t.type==="image")){let a=t.form;if(a==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=t.getAttribute("formaction")||a.getAttribute("action");if(i=u?Tt(u,e):null,n=t.getAttribute("formmethod")||a.getAttribute("method")||ve,s=Ze(t.getAttribute("formenctype"))||Ze(a.getAttribute("enctype"))||xe,o=new FormData(a,t),!Pl()){let{name:l,type:c,value:f}=t;if(c==="image"){let h=l?`${l}.`:"";o.append(`${h}x`,"0"),o.append(`${h}y`,"0")}else l&&o.append(l,f)}}else{if(Ne(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=ve,i=null,s=xe,r=t}return o&&s==="text/plain"&&(r=o,o=void 0),{action:i,method:n.toLowerCase(),encType:s,formData:o,body:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Yn(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Pr(t,e,n,i){let s=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return n?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${i}`:s.pathname=`${s.pathname}.${i}`:s.pathname==="/"?s.pathname=`_root.${i}`:e&&Tt(s.pathname,e)==="/"?s.pathname=`${Me(e)}/_root.${i}`:s.pathname=`${Me(s.pathname)}.${i}`,s}async function Cl(t,e){if(t.id in e)return e[t.id];try{let n=await import(t.module);return e[t.id]=n,n}catch(n){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.
3isSpaMode,window.location.reload(),new Promise(()=>{})}}function bl(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function Al(t,e,n){let i=await Promise.all(t.map(async s=>{let o=e.routes[s.route.id];if(o){let r=await Cl(o,n);return r.links?r.links():[]}return[]}));return Ll(i.flat(1).filter(bl).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function Ni(t,e,n,i,s,o){let r=(u,l)=>n[l]?u.route.id!==n[l].route.id:!0,a=(u,l)=>n[l].pathname!==u.pathname||n[l].route.path?.endsWith("*")&&n[l].params["*"]!==u.params["*"];return o==="assets"?e.filter((u,l)=>r(u,l)||a(u,l)):o==="data"?e.filter((u,l)=>{let c=i.routes[u.route.id];if(!c||!c.hasLoader)return!1;if(r(u,l)||a(u,l))return!0;if(u.route.shouldRevalidate){let f=u.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(t,window.origin),nextParams:u.params,defaultShouldRevalidate:!0});if(typeof f=="boolean")return f}return!0}):[]}function Ml(t,e,{includeHydrateFallback:n}={}){return Dl(t.map(i=>{let s=e.routes[i.route.id];if(!s)return[];let o=[s.module];return s.clientActionModule&&(o=o.concat(s.clientActionModule)),s.clientLoaderModule&&(o=o.concat(s.clientLoaderModule)),n&&s.hydrateFallbackModule&&(o=o.concat(s.hydrateFallbackModule)),s.imports&&(o=o.concat(s.imports)),o}).flat(1))}function Dl(t){return[...new Set(t)]}function Vl(t){let e={},n=Object.keys(t).sort();for(let i of n)e[i]=t[i];return e}function Ll(t,e){let n=new Set;return new Set(e),t.reduce((i,s)=>{let o=JSON.stringify(Vl(s));return n.has(o)||(n.add(o),i.push({key:o,link:s})),i},[])}function Xn(){let t=d.useContext($t);return Yn(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function kl(){let t=d.useContext(je);return Yn(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var qn=d.createContext(void 0);qn.displayName="FrameworkContext";function $e(){let t=d.useContext(qn);return Yn(t,"You must render this element inside a <HydratedRouter> element"),t}function Ol(t,e){let n=d.useContext(qn),[i,s]=d.useState(!1),[o,r]=d.useState(!1),{onFocus:a,onBlur:u,onMouseEnter:l,onMouseLeave:c,onTouchStart:f}=e,h=d.useRef(null);d.useEffect(()=>{if(t==="render"&&r(!0),t==="viewport"){let v=x=>{x.forEach(w=>{r(w.isIntersecting)})},g=new IntersectionObserver(v,{threshold:.5});return h.current&&g.observe(h.current),()=>{g.disconnect()}}},[t]),d.useEffect(()=>{if(i){let v=setTimeout(()=>{r(!0)},100);return()=>{clearTimeout(v)}}},[i]);let m=()=>{s(!0)},y=()=>{s(!1),r(!1)};return n?t!=="intent"?[o,h,{}]:[o,h,{onFocus:Yt(a,m),onBlur:Yt(u,y),onMouseEnter:Yt(l,m),onMouseLeave:Yt(c,y),onTouchStart:Yt(f,m)}]:[!1,h,{}]}function Yt(t,e){return n=>{t&&t(n),n.defaultPrevented||e(n)}}function Il({page:t,...e}){let n=Ga(),{nonce:i}=$e(),{router:s}=Xn(),o=d.useMemo(()=>or(s.routes,t,s.basename),[s.routes,t,s.basename]);return o?(e.nonce==null&&i&&(e={...e,nonce:i}),n?d.createElement(_l,{page:t,matches:o,...e}):d.createElement(Bl,{page:t,matches:o,...e})):null}function Fl(t){let{manifest:e,routeModules:n}=$e(),[i,s]=d.useState([]);return d.useEffect(()=>{let o=!1;return Al(t,e,n).then(r=>{o||s(r)}),()=>{o=!0}},[t,e,n]),i}function _l({page:t,matches:e,...n}){let i=dt(),{future:s}=$e(),{basename:o}=Xn(),r=d.useMemo(()=>{if(t===i.pathname+i.search+i.hash)return[];let a=Pr(t,o,s.v8_trailingSlashAwareDataRequests,"rsc"),u=!1,l=[];for(let c of e)typeof c.route.shouldRevalidate=="function"?u=!0:l.push(c.route.id);return u&&l.length>0&&a.searchParams.set("_routes",l.join(",")),[a.pathname+a.search]},[o,s.v8_trailingSlashAwareDataRequests,t,i,e]);return d.createElement(d.Fragment,null,r.map(a=>d.createElement("link",{key:a,rel:"prefetch",as:"fetch",href:a,...n})))}function Bl({page:t,matches:e,...n}){let i=dt(),{future:s,manifest:o,routeModules:r}=$e(),{basename:a}=Xn(),{loaderData:u,matches:l}=kl(),c=d.useMemo(()=>Ni(t,e,l,o,i,"data"),[t,e,l,o,i]),f=d.useMemo(()=>Ni(t,e,l,o,i,"assets"),[t,e,l,o,i]),h=d.useMemo(()=>
3{if(t===i.pathname+i.search+i.hash)return[];let v=new Set,g=!1;if(e.forEach(w=>{let T=o.routes[w.route.id];!T||!T.hasLoader||(!c.some(P=>P.route.id===w.route.id)&&w.route.id in u&&r[w.route.id]?.shouldRevalidate||T.hasClientLoader?g=!0:v.add(w.route.id))}),v.size===0)return[];let x=Pr(t,a,s.v8_trailingSlashAwareDataRequests,"data");return g&&v.size>0&&x.searchParams.set("_routes",e.filter(w=>v.has(w.route.id)).map(w=>w.route.id).join(",")),[x.pathname+x.search]},[a,s.v8_trailingSlashAwareDataRequests,u,i,o,c,e,t,r]),m=d.useMemo(()=>Ml(f,o),[f,o]),y=Fl(f);return d.createElement(d.Fragment,null,h.map(v=>d.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...n})),m.map(v=>d.createElement("link",{key:v,rel:"modulepreload",href:v,...n})),y.map(({key:v,link:g})=>d.createElement("link",{key:v,nonce:n.nonce,...g,crossOrigin:g.crossOrigin??n.crossOrigin})))}function jl(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}var Nl=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Nl&&(window.__reactRouterVersion="7.18.1")}catch{}function tp({basename:t,children:e,useTransitions:n,window:i}){let s=d.useRef();s.current==null&&(s.current=xa({window:i,v5Compat:!0}));let o=s.current,[r,a]=d.useState({action:o.action,location:o.location}),u=d.useCallback(l=>{n===!1?a(l):d.startTransition(()=>a(l))},[n]);return d.useLayoutEffect(()=>o.listen(u),[o,u]),d.createElement(gl,{basename:t,children:e,location:r.location,navigationType:r.action,navigator:o,useTransitions:n})}var Rr=d.forwardRef(function({onClick:e,discover:n="render",prefetch:i="none",relative:s,reloadDocument:o,replace:r,mask:a,state:u,target:l,to:c,preventScrollReset:f,viewTransition:h,defaultShouldRevalidate:m,...y},v){let{basename:g,navigator:x,useTransitions:w}=d.useContext(st),T=typeof c=="string"&&Un.test(c),P=dr(c,g);c=P.to;let R=tl(c,{relative:s}),k=dt(),A=null;if(a){let W=Be(a,[],k.mask?k.mask.pathname:"/",!0);g!=="/"&&(W.pathname=W.pathname==="/"?g:ct([g,W.pathname])),A=x.createHref(W)}let[b,M,C]=Ol(i,y),I=Hl(c,{replace:r,mask:a,state:u,target:l,preventScrollReset:f,relative:s,viewTransition:h,defaultShouldRevalidate:m,useTransitions:w});function U(W){e&&e(W),W.defaultPrevented||I(W)}let J=!(P.isExternal||o),G=d.createElement("a",{...y,...C,href:(J?A:void 0)||P.absoluteURL||R,onClick:J?U:e,ref:jl(v,M),target:l,"data-discover":!T&&n==="render"?"true":void 0});return b&&!T?d.createElement(d.Fragment,null,G,d.createElement(Il,{page:R})):G});Rr.displayName="Link";var $l=d.forwardRef(function({"aria-current":e="page",caseSensitive:n=!1,className:i="",end:s=!1,style:o,to:r,viewTransition:a,children:u,...l},c){let f=ae(r,{relative:l.relative}),h=dt(),m=d.useContext(je),{navigator:y,basename:v}=d.useContext(st),g=m!=null&&Xl(f)&&a===!0,x=y.encodeLocation?y.encodeLocation(f).pathname:f.pathname,w=h.pathname,T=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;n||(w=w.toLowerCase(),T=T?T.toLowerCase():null,x=x.toLowerCase()),T&&v&&(T=Tt(T,v)||T);const P=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let R=w===x||!s&&w.startsWith(x)&&w.charAt(P)==="/",k=T!=null&&(T===x||!s&&T.startsWith(x)&&T.charAt(x.length)==="/"),A={isActive:R,isPending:k,isTransitioning:g},b=R?e:void 0,M;typeof i=="function"?M=i(A):M=[i,R?"active":null,k?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let C=typeof o=="function"?o(A):o;return d.createElement(Rr,{...l,"aria-current":b,className:M,ref:c,style:C,to:r,viewTransition:a},typeof u=="function"?u(A):u)});$l.displayName="NavLink";var Ul=d.forwardRef(({discover:t="render",fetcherKey:e,navigate:n,reloadDocument:i,replace:s,state:o,method:r=ve,action:a,onSubmit:u,relative:l,preventScrollReset:c,viewTransition:f,defaultShouldRevalidate:h,...m},y)=>{let{useTransitions:v}=d.useContext(st),g=Gl(),x=Yl(a,{relative:l}),w=r.toLowerCase()==="get"?"get":"post",T=typeof a=="string"&&Un.test(a),P=R=>{if(u&&u(R),R.defaultPrevented)return;R.preventDefault();let k=R.nativeEvent.submitter,A=k?.getAttribute("formmethod")||r,b=()=>g(k||R.currentTarget,{fetcherKey:e,method:A,navigate:n,replace:s,state:o,relative:l,preventScrollReset:c,viewTransition:f,defaultShouldRevalidate:h});v&&n!==!1?d.startTransition(()=>b()):b()};return d.createElement("form",{ref:y,method:w,action:x,onSubmit:i?u:P,...m,"data-discover":!T&&t==="render"?"true":void 0})});Ul.displayName="Form";function Wl(t){return`${t} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Er(t){let e=d.useContext($t);return j(e,Wl(t)),e}function Hl(t,{target:e,replace:n,mask:i,state:s,preventScrollReset:o,relative:r,viewTransition:a,defaultShouldRevalidate:u,useTransitions:l}={}){let c=Kn(),f=dt(),h=ae(t,{relative:r});return d.useCallback(m=>{if(wl(m,e)){m.preventDefault();let y=n!==void 0?n:ee(f)===ee(h),v=()=>c(t,{replace:y,mask:i,state:s,preventScrollReset:o,relative:r,viewTransition:a,defaultShouldRevalidate:u});l?d.startTransition(()=>v()):v()}},[f,c,h,n,i,s,e,t,o,r,a,u,l])}function ep(t){at(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let e=d.useRef(yn(t)),n=d.useRef(!1),i=dt(),s=d.useMemo(()=>Sl(i.search,n.current?null:e.current),[i.search]),o=Kn(),r=d.useCallback((a,u)=>{const l=yn(typeof a=="function"?a(new URLSearchParams(s)):a);n.current=!0,o("?"+l,u)},[o,s]);return[s,r]}var Kl=0,zl=()=>`__${String(++Kl)}__`;function Gl(){let{router:t}=Er("useSubmit"),{basename:e}=d.useContext(st),n=fl(),i=t.fetch,s=t.navigate;return d.useCallback(async(o,r={})=>{let{action:a,method:u,encType:l,formData:c,body:f}=El(o,e);if(r.navigate===!1){let h=r.fetcherKey||zl();await i(h,n,r.action||a,{defaultShouldRevalidate:r.defaultShouldRevalidate,preventScrollReset:r.preventScrollReset,formData:c,body:f,formMethod:r.method||u,formEncType:r.encType||l,flushSync:r.flushSync})}else await s(r.action||a,{defaultShouldRevalidate:r.defaultShouldRevalidate,preventScrollReset:r.preventScrollReset,formData:c,body:f,formMethod:r.method||u,formEncType:r.encType||l,replace:r.replace,state:r.state,fromRouteId:n,flushSync:r.flushSync,viewTransition:r.viewTransition})},[i,s,e,n])}function Yl(t,{relative:e}={}){let{basename:n}=d.useContext(st),i=d.useContext(ht);j(i,"useFormAction must be used inside a RouteContext");let[s]=i.matches.slice(-1),o={...ae(t||".",{relative:e})},r=dt();if(t==null){o.search=r.search;let a=new URLSearchParams(o.search),u=a.getAll("index");if(u.some(c=>
vendor: 41,795 bytes, line 3
3c==="")){a.delete("index"),u.filter(f=>f).forEach(f=>a.append("index",f));let c=a.toString();o.search=c?`?${c}`:""}}return(!t||t===".")&&s.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:ct([n,o.pathname])),ee(o)}function Xl(t,{relative:e}={}){let n=d.useContext(gr);j(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Er("useViewTransitionState"),s=ae(t,{relative:e});if(!n.isTransitioning)return!1;let o=Tt(n.currentLocation.pathname,i)||n.currentLocation.pathname,r=Tt(n.nextLocation.pathname,i)||n.nextLocation.pathname;return Ae(s.pathname,r)!=null||Ae(s.pathname,o)!=null}var ql=ya();const np=ir(ql),Zn=d.createContext({});function Jn(t){const e=d.useRef(null);return e.current===null&&(e.current=t()),e.current}const Zl=typeof window<"u",Cr=Zl?d.useLayoutEffect:d.useEffect,Ue=d.createContext(null);function Qn(t,e){t.indexOf(e)===-1&&t.push(e)}function De(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const yt=(t,e,n)=>n>e?e:n<t?t:n;let ti=()=>{};const Pt={},br=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function Ar(t){return typeof t=="object"&&t!==null}const Mr=t=>/^0[^.\s]+$/u.test(t);function Dr(t){let e;return()=>(e===void 0&&(e=t()),e)}const ot=t=>t,Jl=(t,e)=>n=>e(t(n)),le=(...t)=>t.reduce(Jl),ne=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i};class ei{constructor(){this.subscriptions=[]}add(e){return Qn(this.subscriptions,e),()=>De(this.subscriptions,e)}notify(e,n,i){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](e,n,i);else for(let o=0;o<s;o++){const r=this.subscriptions[o];r&&r(e,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const it=t=>t*1e3,rt=t=>t/1e3;function Vr(t,e){return e?t*(1e3/e):0}const Lr=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Ql=1e-7,tu=12;function eu(t,e,n,i,s){let o,r,a=0;do r=e+(n-e)/2,o=Lr(r,i,s)-t,o>0?n=r:e=r;while(Math.abs(o)>Ql&&++a<tu);return r}function ue(t,e,n,i){if(t===e&&n===i)return ot;const s=o=>eu(o,0,1,t,n);return o=>o===0||o===1?o:Lr(s(o),e,i)}const kr=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Or=t=>e=>1-t(1-e),Ir=ue(.33,1.53,.69,.99),ni=Or(Ir),Fr=kr(ni),_r=t=>t>=1?1:(t*=2)<1?.5*ni(t):.5*(2-Math.pow(2,-10*(t-1))),ii=t=>1-Math.sin(Math.acos(t)),Br=Or(ii),jr=kr(ii),nu=ue(.42,0,1,1),iu=ue(0,0,.58,1),Nr=ue(.42,0,.58,1),su=t=>Array.isArray(t)&&typeof t[0]!="number",$r=t=>Array.isArray(t)&&typeof t[0]=="number",ru={linear:ot,easeIn:nu,easeInOut:Nr,easeOut:iu,circIn:ii,circInOut:jr,circOut:Br,backIn:ni,backInOut:Fr,backOut:Ir,anticipate:_r},ou=t=>typeof t=="string",$i=t=>{if($r(t)){ti(t.length===4);const[e,n,i,s]=t;return ue(e,n,i,s)}else if(ou(t))return ru[t];return t},de=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function au(t,e){let n=new Set,i=new Set,s=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(c){r.has(c)&&(l.schedule(c),t()),c(a)}const l={schedule:(c,f=!1,h=!1)=>{const y=h&&s?n:i;return f&&r.add(c),y.add(c),c},cancel:c=>{i.delete(c),r.delete(c)},process:c=>{if(a=c,s){o=!0;return}s=!0;const f=n;n=i,i=f,n.forEach(u),n.clear(),s=!1,o&&(o=!1,l.process(c))}};return l}const lu=40;function Ur(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=de.reduce((T,P)=>(T[P]=au(o),T),{}),{setup:a,read:u,resolveKeyframes:l,preUpdate:c,update:f,preRender:h,render:m,postRender:y}=r,v=()=>{const T=Pt.useManualTiming,P=T?s.timestamp:performance.now();n=!1,T||(s.delta=i?1e3/60:Math.max(Math.min(P-s.timestamp,lu),1)),s.timestamp=P,s.isProcessing=!0,a.process(s),u.process(s),l.process(s),c.process(s),f.process(s),h.process(s),m.process(s),y.process(s),s.isProcessing=!1,n&&e&&(i=!1,t(v))},g=()=>{n=!0,i=!0,s.isProcessing||t(v)};return{schedule:de.reduce((T,P)=>{const R=r[P];return T[P]=(k,A=!1,b=!1)=>(n||g(),R.schedule(k,A,b)),T},{}),cancel:T=>{for(let P=0;P<de.length;P++)r[de[P]].cancel(T)},state:s,steps:r}}const{schedule:_,cancel:Rt,state:X,steps:Je}=Ur(typeof requestAnimationFrame<"u"?requestAnimationFrame:ot,!0);let Te;function uu(){Te=void 0}const tt={now:()=>(Te===void 0&&tt.set(X.isProcessing||Pt.useManualTiming?X.timestamp:performance.now()),Te),set:t=>{Te=t,queueMicrotask(uu)}},Wr=t=>e=>typeof e=="string"&&e.startsWith(t),Hr=Wr("--"),cu=Wr("var(--"),si=t=>cu(t)?fu.test(t.split("/*")[0].trim()):!1,fu=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Ui(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const Wt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},ie={...Wt,transform:t=>yt(0,1,t)},pe={...Wt,default:1},Zt=t=>Math.round(t*1e5)/1e5,ri=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function hu(t){return t==null}const du=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,oi=(t,e)=>n=>!!(typeof n=="string"&&du.test(n)&&n.startsWith(t)||e&&!hu(n)&&Object.prototype.hasOwnProperty.call(n,e)),Kr=(t,e,n)=>i=>{if(typeof i!="string")return i;const[s,o,r,a]=i.match(ri);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},pu=t=>yt(0,255,t),Qe={...Wt,transform:t=>Math.round(pu(t))},At={test:oi("rgb","red"),parse:Kr("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Qe.transform(t)+", "+Qe.transform(e)+", "+Qe.transform(n)+", "+Zt(ie.transform(i))+")"};function mu(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}}const vn={test:oi("#"),parse:mu,transform:At.transform},ce=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),wt=ce("deg"),gt=ce("%"),E=ce("px"),gu=ce("vh"),yu=ce("vw"),Wi={...gt,parse:t=>gt.parse(t)/100,transform:t=>gt.transform(t*100)},kt={test:oi("hsl","hue"),parse:Kr("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+gt.transform(Zt(e))+", "+gt.transform(Zt(n))+", "+Zt(ie.transform(i))+")"},H={test:t=>At.test(t)||vn.test(t)||kt.test(t),parse:t=>At.test(t)?At.parse(t):kt.test(t)?kt.parse(t):vn.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?At.transform(t):kt.transform(t),getAnimatableNone:t=>{const e=H.parse(t);return e.alpha=0,H.transform(e)}},vu=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function xu(t){return isNaN(t)&&typeof t=="string"&&(t.match(ri)?.length||0)+(t.match(vu)?.length||0)>0}const zr="number",Gr="color",Tu="var",wu="var(",Hi="${}",Su=/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 Bt(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},s=[];let o=0;const a=e.replace(Su,u=>(H.test(u)?(i.color.push(o),s.push(Gr),n.push(H.parse(u))):u.startsWith(wu)?(i.var.push(o),s.push(Tu),n.push(u)):(i.number.push(o),s.push(zr),n.push(parseFloat(u))),++o,Hi)).split(Hi);return{values:n,split:a,indexes:i,types:s}}function Pu(t){return Bt(t).values}function Yr({split:t,types:e}){const n=t.length;return i=>{let s="";for(let o=0;o<n;o++)if(s+=t[o],i[o]!==void 0){const r=e[o];r===zr?s+=Zt(i[o]):r===Gr?s+=H.transform(i[o]):s+=i[o]}return s}}function Ru(t){return Yr(Bt(t))}const Eu=t=>typeof t=="number"?0:H.test(t)?H.getAnimatableNone(t):t,Cu=(t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:Eu(t);function bu(t){const e=Bt(t);return Yr(e)(e.values.map((i,s)=>Cu(i,e.split[s])))}const ft={test:xu,parse:Pu,createTransformer:Ru,getAnimatableNone:bu};function tn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Au({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let s=0,o=0,r=0;if(!e)s=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,u=2*n-a;s=tn(u,a,t+1/3),o=tn(u,a,t),r=tn(u,a,t-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:i}}function Ve(t,e){return n=>n>0?e:t}const N=(t,e,n)=>t+(e-t)*n,en=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},Mu=[vn,At,kt],Du=t=>Mu.find(e=>e.test(t));function Ki(t){const e=Du(t);if(!e)return!1;let n=e.parse(t);return e===kt&&(n=Au(n)),n}const zi=(t,e)=>{const n=Ki(t),i=Ki(e);if(!n||!i)return Ve(t,e);const s={...n};return o=>(s.red=en(n.red,i.red,o),s.green=en(n.green,i.green,o),s.blue=en(n.blue,i.blue,o),s.alpha=N(n.alpha,i.alpha,o),At.transform(s))},xn=new Set(["none","hidden"]);function Vu(t,e){return xn.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Lu(t,e){return n=>N(t,e,n)}function ai(t){return typeof t=="number"?Lu:typeof t=="string"?si(t)?Ve:H.test(t)?zi:Iu:Array.isArray(t)?Xr:typeof t=="object"?H.test(t)?zi:ku:Ve}function Xr(t,e){const n=[...t],i=n.length,s=t.map((o,r)=>ai(o)(o,e[r]));return o=>{for(let r=0;r<i;r++)n[r]=s[r](o);return n}}function ku(t,e){const n={...t,...e},i={};for(const s in n)t[s]!==void 0&&e[s]!==void 0&&(i[s]=ai(t[s])(t[s],e[s]));return s=>{for(const o in i)n[o]=i[o](s);return n}}function Ou(t,e){const n=[],i={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const o=e.types[s],r=t.indexes[o][i[o]],a=t.values[r]??0;n[s]=a,i[o]++}return n}const Iu=(t,e)=>{const n=ft.createTransformer(e),i=Bt(t),s=Bt(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?xn.has(t)&&!s.values.length||xn.has(e)&&!i.values.length?Vu(t,e):le(Xr(Ou(i,s),s.values),n):Ve(t,e)};function qr(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?N(t,e,n):ai(t)(t,e)}const Fu=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>_.update(e,n),stop:()=>Rt(e),now:()=>X.isProcessing?X.timestamp:tt.now()}},Zr=(t,e,n=10)=>{let i="";const s=Math.max(Math.round(e/n),2);for(let o=0;o<s;o++)i+=Math.round(t(o/(s-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},Le=2e4;function li(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<Le;)e+=n,i=t.next(e);return e>=Le?1/0:e}function _u(t,e=100,n){const i=n({...t,keyframes:[0,e]}),s=Math.min(li(i),Le);return{type:"keyframes",ease:o=>i.next(s*o).value/e,duration:rt(s)}}const $={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Tn(t,e){return t*Math.sqrt(1-e*e)}const Bu=12;function ju(t,e,n){let i=n;for(let s=1;s<Bu;s++)i=i-t(i)/e(i);return i}const nn=.001;function Nu({duration:t=$.duration,bounce:e=$.bounce,velocity:n=$.velocity,mass:i=$.mass}){let s,o,r=1-e;r=yt($.minDamping,$.maxDamping,r),t=yt($.minDuration,$.maxDuration,rt(t)),r<1?(s=l=>{const c=l*r,f=c*t,h=c-n,m=Tn(l,r),y=Math.exp(-f);return nn-h/m*y},o=l=>{const f=l*r*t,h=f*n+n,m=Math.pow(r,2)*Math.pow(l,2)*t,y=Math.exp(-f),v=Tn(Math.pow(l,2),r);return(-s(l)+nn>0?-1:1)*((h-m)*y)/v}):(s=l=>{const c=Math.exp(-l*t),f=(l-n)*t+1;return-nn+c*f},o=l=>{const c=Math.exp(-l*t),f=(n-l)*(t*t);return c*f});const a=5/t,u=ju(s,o,a);if(t=it(t),isNaN(u))return{stiffness:$.stiffness,damping:$.damping,duration:t};{const l=Math.pow(u,2)*i;return{stiffness:l,damping:r*2*Math.sqrt(i*l),duration:t}}}const $u=["duration","bounce"],Uu=["stiffness","damping","mass"];function Gi(t,e){return e.some(n=>t[n]!==void 0)}function Wu(t){let e={velocity:$.velocity,stiffness:$.stiffness,damping:$.damping,mass:$.mass,isResolvedFromDuration:!1,...t};if(!Gi(t,Uu)&&Gi(t,$u))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(n*1.2),s=i*i,o=2*yt(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:$.mass,stiffness:s,damping:o}}else{const n=Nu({...t,velocity:0});e={...e,...n,mass:$.mass},e.isResolvedFromDuration=!0}return e}function ke(t=$.visualDuration,e=$.bounce){const n=typeof t!="object"?{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:u,damping:l,mass:c,duration:f,velocity:h,isResolvedFromDuration:m}=Wu({...n,velocity:-rt(n.velocity||0)}),y=h||0,v=l/(2*Math.sqrt(u*c)),g=r-o,x=rt(Math.sqrt(u/c)),w=Math.abs(g)<5;i||(i=w?$.restSpeed.granular:$.restSpeed.default),s||(s=w?$.restDelta.granular:$.restDelta.default);let T,P,R,k,A,b;if(v<1)R=Tn(x,v),k=(y+v*x*g)/R,T=C=>{const I=Math.exp(-v*x*C);return r-I*(k*Math.sin(R*C)+g*Math.cos(R*C))},A=v*x*k+g*R,b=v*x*g-k*R,P=C=>Math.exp(-v*x*C)*(A*Math.sin(R*C)+b*Math.cos(R*C));else if(v===1){T=I=>r-Math.exp(-x*I)*(g+(y+x*g)*I);const C=y+x*g;P=I=>Math.exp(-x*I)*(x*C*I-y)}else{const C=x*Math.sqrt(v*v-1);T=G=>{const W=Math.exp(-v*x*G),Y=Math.min(C*G,300);return r-W*((y+v*x*g)*Math.sinh(Y)+C*g*Math.cosh(Y))/C};const I=(y+v*x*g)/C,U=v*x*I-g*C,J=v*x*g-I*C;P=G=>{const W=Math.exp(-v*x*G),Y=Math.min(C*G,300);return W*(U*Math.sinh(Y)+J*Math.cosh(Y))}}const M={calculatedDuration:m&&f||null,velocity:C=>it(P(C)),next:C=>{if(!m&&v<1){const U=Math.exp(-v*x*C),J=Math.sin(R*C),G=Math.cos(R*C),W=r-U*(k*J+g*G),Y=it(U*(A*J+b*G));return a.done=Math.abs(Y)<=i&&Math.abs(r-W)<=s,a.value=a.done?r:W,a}const I=T(C);if(m)a.done=C>=f;else{const U=it(P(C));a.done=Math.abs(U)<=i&&Math.abs(r-I)<=s}return a.value=a.done?r:I,a},toString:()=>{const C=Math.min(li(M),Le),I=Zr(U=>M.next(C*U).value,C,30);return C+"ms "+I},toTransition:()=>{}};return M}ke.applyToOptions=t=>{const e=_u(t,100,ke);return t.ease=e.ease,t.duration=it(e.duration),t.type="keyframes",t};const Hu=5;function Jr(t,e,n){const i=Math.max(e-Hu,0);return Vr(n-t(i),e-i)}function wn({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:u,restDelta:l=.5,restSpeed:c}){const f=t[0],h={done:!1,value:f},m=b=>a!==void 0&&b<a||u!==void 0&&b>u,y=b=>a===void 0?u:u===void 0||Math.abs(a-b)<Math.abs(u-b)?a:u;let v=n*e;const g=f+v,x=r===void 0?g:r(g);x!==g&&(v=x-f);const w=b=>-v*Math.exp(-b/i),T=b=>x+w(b),P=b=>{const M=w(b),C=T(b);h.done=Math.abs(M)<=l,h.value=h.done?x:C};let R,k;const A=b=>{m(h.value)&&(R=b,k=ke({keyframes:[h.value,y(h.value)],velocity:Jr(T,b,h.value),damping:s,stiffness:o,restDelta:l,restSpeed:c}))};return A(0),{calculatedDuration:null,next:b=>{let M=!1;return!k&&R===void 0&&(M=!0,P(b),A(b)),R!==void 0&&b>=R?k.next(b-R):(!M&&P(b),h)}}}function Ku(t,e,n){const i=[],s=n||Pt.mix||qr,o=t.length-1;for(let r=0;r<o;r++){let a=s(t[r],t[r+1]);if(e){const u=Array.isArray(e)?e[r]||ot:e;a=le(u,a)}i.push(a)}return i}function zu(t,e,{clamp:n=!0,ease:i,mixer:s}={}){const o=t.length;if(ti(o===e.length),o===1)return()=>e[0];if(o===2&&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=Ku(e,i,s),u=a.length,l=c=>{if(r&&c<t[0])return e[0];let f=0;if(u>1)for(;f<t.length-2&&!(c<t[f+1]);f++);const h=ne(t[f],t[f+1],c);return a[f](h)};return n?c=>l(yt(t[0],t[o-1],c)):l}function Gu(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=ne(0,e,i);t.push(N(n,1,s))}}function Yu(t){const e=[0];return Gu(e,t.length-1),e}function Xu(t,e){return t.map(n=>n*e)}function qu(t,e){return t.map(()=>e||Nr).splice(0,t.length-1)}function Jt({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=su(i)?i.map($i):$i(i),o={done:!1,value:e[0]},r=Xu(n&&n.length===e.length?n:Yu(e),t),a=zu(r,e,{ease:Array.isArray(s)?s:qu(e,s)});return{calculatedDuration:t,next:u=>(o.value=a(u),o.done=u>=t,o)}}const Zu=t=>t!==null;function ui(t,{repeat:e,repeatType:n="loop"},i,s=1){const o=t.filter(Zu),a=s<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||i===void 0?o[a]:i}const Ju={decay:wn,inertia:wn,tween:Jt,keyframes:Jt,spring:ke};function Qr(t){typeof t.type=="string"&&(t.type=Ju[t.type])}class ci{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const Qu=t=>t/100;class fi extends ci{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==tt.now()&&this.tick(tt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Qr(e);const{type:n=Jt,repeat:i=0,repeatDelay:s=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const u=n||Jt;u!==Jt&&typeof a[0]!="number"&&(this.mixKeyframes=le(Qu,qr(a[0],a[1])),a=[0,100]);const l=u({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=u({...e,keyframes:[...a].reverse(),velocity:-r})),l.calculatedDuration===null&&(l.calculatedDuration=li(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=l}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:i,totalDuration:s,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:u}=this;if(this.startTime===null)return i.next(0);const{delay:l=0,keyframes:c,repeat:f,repeatType:h,repeatDelay:m,type:y,onUpdate:v,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-s/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const x=this.currentTime-l*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?x<0:x>s;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let T=this.currentTime,P=i;if(f){const b=Math.min(this.currentTime,s)/a;let M=Math.floor(b),C=b%1;!C&&b>=1&&(C=1),C===1&&M--,M=Math.min(M,f+1),M%2&&(h==="reverse"?(C=1-C,m&&(C-=m/a)):h==="mirror"&&(P=r)),T=yt(0,1,C)*a}const R=w?{done:!1,value:c[0]}:P.next(T);o&&!w&&(R.value=o(R.value));let{done:k}=R;!w&&u!==null&&(k=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return A&&y!==wn&&(R.value=ui(c,this.options,g,this.speed)),v&&v(R.value),A&&this.finish(),R}then(e,n){return this.finished.then(e,n)}get duration(){return rt(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+rt(e)}get time(){return rt(this.currentTime)}set time(e){e=it(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);const n=this.generator.next(e).value;return Jr(i=>this.generator.next(i).value,e,n)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;n&&this.driver&&this.updateTime(tt.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=rt(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Fu,startTime:n}=this.options;this.driver||(this.driver=e(s=>this.tick(s))),this.options.onPlay?.();const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=n??i),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function tc(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const Mt=t=>t*180/Math.PI,Sn=t=>{const e=Mt(Math.atan2(t[1],t[0]));return Pn(e)},ec={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Sn,rotateZ:Sn,skewX:t=>Mt(Math.atan(t[1])),skewY:t=>Mt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Pn=t=>(t=t%360,t<0&&(t+=360),t),Yi=Sn,Xi=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),qi=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),nc={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Xi,scaleY:qi,scale:t=>(Xi(t)+qi(t))/2,rotateX:t=>Pn(Mt(Math.atan2(t[6],t[5]))),rotateY:t=>Pn(Mt(Math.atan2(-t[2],t[0]))),rotateZ:Yi,rotate:Yi,skewX:t=>Mt(Math.atan(t[4])),skewY:t=>Mt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Rn(t){return t.includes("scale")?1:0}function En(t,e){if(!t||t==="none")return Rn(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,s;if(n)i=nc,s=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=ec,s=a}if(!s)return Rn(e);const o=i[e],r=s[1].split(",").map(sc);return typeof o=="function"?o(r):r[o]}const ic=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return En(n,e)};function sc(t){return parseFloat(t.trim())}const Ht=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Kt=new Set(Ht),Zi=t=>t===Wt||t===E,rc=new Set(["x","y","z"]),oc=Ht.filter(t=>!rc.has(t));function ac(t){const e=[];return oc.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const St={width:({x:t},{paddingLeft:e="0",paddingRight:n="0",boxSizing:i})=>{const s=t.max-t.min;return i==="border-box"?s:s-parseFloat(e)-parseFloat(n)},height:({y:t},{paddingTop:e="0",paddingBottom:n="0",boxSizing:i})=>{const s=t.max-t.min;return i==="border-box"?s:s-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:(t,{transform:e})=>En(e,"x"),y:(t,{transform:e})=>En(e,"y")};St.translateX=St.x;St.translateY=St.y;const Dt=new Set;let Cn=!1,bn=!1,An=!1;function to(){if(bn){const t=Array.from(Dt).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>{const s=ac(i);s.length&&(n.set(i,s),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const s=n.get(i);s&&s.forEach(([o,r])=>{i.getValue(o)?.set(r)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}bn=!1,Cn=!1,Dt.forEach(t=>t.complete(An)),Dt.clear()}function eo(){Dt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(bn=!0)})}function lc(){An=!0,eo(),to(),An=!1}class hi{constructor(e,n,i,s,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=s,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(Dt.add(this),Cn||(Cn=!0,_.read(eo),_.resolveKeyframes(to))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:s}=this;if(e[0]===null){const o=s?.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(i&&n){const a=i.readValue(n,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),s&&o===void 0&&s.set(e[0])}tc(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Dt.delete(this)}cancel(){this.state==="scheduled"&&(Dt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const uc=t=>t.startsWith("--");function no(t,e,n){uc(e)?t.style.setProperty(e,n):t.style[e]=n}const cc={};function io(t,e){const n=Dr(t);return()=>cc[e]??n()}const fc=io(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),so=io(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),qt=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,Ji={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:qt([0,.65,.55,1]),circOut:qt([.55,0,1,.45]),backIn:qt([.31,.01,.66,-.59]),backOut:qt([.33,1.53,.69,.99])};function ro(t,e){if(t)return typeof t=="function"?so()?Zr(t,e):"ease-out":$r(t)?qt(t):Array.isArray(t)?t.map(n=>ro(n,e)||Ji.easeOut):Ji[t]}function hc(t,e,n,{delay:i=0,duration:s=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:u}={},l=void 0){const c={[e]:n};u&&(c.offset=u);const f=ro(a,s);Array.isArray(f)&&(c.easing=f);const h={delay:i,duration:s,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return l&&(h.pseudoElement=l),t.animate(c,h)}function oo(t){return typeof t=="function"&&"applyToOptions"in t}function dc({type:t,...e}){return oo(t)&&so()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class ao extends ci{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:i,keyframes:s,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:u}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,ti(typeof e.type!="string");const l=dc(e);this.animation=hc(n,i,s,l,o),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const c=ui(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(c),no(n,i,c),this.animation.cancel()}u?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return rt(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+rt(e)}get time(){return rt(Number(this.animation.currentTime)||0)}set time(e){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=it(e),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:n,rangeEnd:i,observe:s}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&fc()?(this.animation.timeline=e,n&&(this.animation.rangeStart=n),i&&(this.animation.rangeEnd=i),ot):s(this)}}const lo={anticipate:_r,backInOut:Fr,circInOut:jr};function pc(t){return t in lo}function mc(t){typeof t.ease=="string"&&pc(t.ease)&&(t.ease=lo[t.ease])}const sn=10;class gc extends ao{constructor(e){mc(e),Qr(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:i,onComplete:s,element:o,...r}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new fi({...r,autoplay:!1}),u=Math.max(sn,tt.now()-this.startTime),l=yt(0,sn,u-sn),c=a.sample(u).value,{name:f}=this.options;o&&f&&no(o,f,c),n.setWithVelocity(a.sample(Math.max(0,u-l)).value,c,l),a.stop()}}const Qi=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(ft.test(t)||t==="0")&&!t.startsWith("url("));function yc(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function vc(t,e,n,i){const s=t[0];if(s===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=Qi(s,e),a=Qi(o,e);return!r||!a?!1:yc(t)||(n==="spring"||oo(n))&&i}function Mn(t){t.duration=0,t.type="keyframes"}const xc=new Set(["opacity","clipPath","filter","transform"]),Tc=Dr(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function wc(t){const{motionValue:e,name:n,repeatDelay:i,repeatType:s,damping:o,type:r}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:l}=e.owner.getProps();return Tc()&&n&&xc.has(n)&&(n!=="transform"||!l)&&!u&&!i&&s!=="mirror"&&o!==0&&r!=="inertia"}const Sc=40;class Pc extends ci{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:u,motionValue:l,element:c,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tt.now();const h={autoplay:e,delay:n,type:i,repeat:s,repeatDelay:o,repeatType:r,name:u,motionValue:l,element:c,...f},m=c?.KeyframeResolver||hi;this.keyframeResolver=new m(a,(y,v,g)=>this.onKeyframesResolved(y,v,h,!g),u,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,i,s){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:u,isHandoff:l,onUpdate:c}=i;this.resolvedAt=tt.now();let f=!0;vc(e,o,r,a)||(f=!1,(Pt.instantAnimations||!u)&&c?.(ui(e,i,n)),e[0]=e[e.length-1],Mn(i),i.repeat=0);const m={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>Sc?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...i,keyframes:e},y=f&&!l&&wc(m),v=m.motionValue?.owner?.current,g=y?new gc({...m,element:v}):new fi(m);g.finished.then(()=>{this.notifyFinished()}).catch(ot),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),lc()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function uo(t,e,n,i=0,s=1){const o=Array.from(t).sort((l,c)=>l.sortNodePosition(c)).indexOf(e),r=t.size,a=(r-1)*i;return typeof n=="function"?n(o,r):s===1?o*i:a-o*i}const Rc=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ec(t){const e=Rc.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${n??i}`,s]}function co(t,e,n=1){const[i,s]=Ec(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const r=o.trim();return br(r)?parseFloat(r):r}return si(s)?co(s,e,n+1):s}const Cc={type:"spring",stiffness:500,damping:25,restSpeed:10},bc=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Ac={type:"keyframes",duration:.8},Mc={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Dc=(t,{keyframes:e})=>e.length>2?Ac:Kt.has(t)?t.startsWith("scale")?bc(e[1]):Cc:Mc,Vc=t=>t!==null;function Lc(t,{repeat:e,repeatType:n="loop"},i){const s=t.filter(Vc),o=e&&n!=="loop"&&e%2===1?0:s.length-1;return s[o]}function fo(t,e){if(t?.inherit&&e){const{inherit:n,...i}=t;return{...e,...i}}return t}function di(t,e){const n=t?.[e]??t?.default??t;return n!==t?fo(n,t):n}function kc({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:o,repeatType:r,repeatDelay:a,from:u,elapsed:l,...c}){return!!Object.keys(c).length}const pi=(t,e,n,i={},s,o)=>r=>{const a=di(i,t)||{},u=a.delay||i.delay||0;let{elapsed:l=0}=i;l=l-it(u);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-l,onUpdate:h=>{e.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:s};kc(a)||Object.assign(c,Dc(t,c)),c.duration&&(c.duration=it(c.duration)),c.repeatDelay&&(c.repeatDelay=it(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Mn(c),c.delay===0&&(f=!0)),(Pt.instantAnimations||Pt.skipAnimations||s?.shouldSkipAnimations)&&(f=!0,Mn(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,f&&!o&&e.get()!==void 0){const h=Lc(c.keyframes,a);if(h!==void 0){_.update(()=>{c.onUpdate(h),c.onComplete()});return}}return a.isSync?new fi(c):new Pc(c)};function ts(t){const e=[{},{}];return t?.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function mi(t,e,n,i){if(typeof e=="function"){const[s,o]=ts(i);e=e(n!==void 0?n:t.custom,s,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[s,o]=ts(i);e=e(n!==void 0?n:t.custom,s,o)}return e}function Vt(t,e,n){const i=t.getProps();return mi(i,e,n!==void 0?n:i.custom,t)}const ho=new Set(["width","height","top","left","right","bottom",...Ht]),es=30,Oc=t=>!isNaN(parseFloat(t));class Ic{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{const s=tt.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=tt.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Oc(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new ei);const i=this.events[e].add(n);return e==="change"?()=>{i(),_.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=tt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>es)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,es);return Vr(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function jt(t,e){return new Ic(t,e)}const Dn=t=>Array.isArray(t);function Fc(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,jt(n))}function _c(t){return Dn(t)?t[t.length-1]||0:t}function Bc(t,e){const n=Vt(t,e);let{transitionEnd:i={},transition:s={},...o}=n||{};o={...o,...i};for(const r in o){const a=_c(o[r]);Fc(t,r,a)}}const q=t=>!!(t&&t.getVelocity);function jc(t){return!!(q(t)&&t.add)}function Vn(t,e){const n=t.getValue("willChange");if(jc(n))return n.add(e);if(!n&&Pt.WillChange){const i=new Pt.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function gi(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const Nc="framerAppearId",po="data-"+gi(Nc);function mo(t){return t.props[po]}function $c({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function go(t,e,{delay:n=0,transitionOverride:i,type:s}={}){let{transition:o,transitionEnd:r,...a}=e;const u=t.getDefaultTransition();o=o?fo(o,u):u;const l=o?.reduceMotion;i&&(o=i);const c=[],f=s&&t.animationState&&t.animationState.getState()[s];for(const h in a){const m=t.getValue(h,t.latestValues[h]??null),y=a[h];if(y===void 0||f&&$c(f,h))continue;const v={delay:n,...di(o||{},h)},g=m.get();if(g!==void 0&&!m.isAnimating&&!Array.isArray(y)&&y===g&&!v.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const P=mo(t);if(P){const R=window.MotionHandoffAnimation(P,h,_);R!==null&&(v.startTime=R,x=!0)}}Vn(t,h);const w=l??t.shouldReduceMotion;m.start(pi(h,m,y,w&&ho.has(h)?{type:!1}:v,t,x));const T=m.animation;T&&c.push(T)}if(r){const h=()=>_.update(()=>{r&&Bc(t,r)});c.length?Promise.all(c).then(h):h()}return c}function Ln(t,e,n={}){const i=Vt(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:s=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(go(t,i,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:c,staggerDirection:f}=s;return Uc(t,e,u,l,c,f,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[u,l]=a==="beforeChildren"?[o,r]:[r,o];return u().then(()=>l())}else return Promise.all([o(),r(n.delay)])}function Uc(t,e,n=0,i=0,s=0,o=1,r){const a=[];for(const u of t.variantChildren)u.notify("AnimationStart",e),a.push(Ln(u,e,{...r,delay:n+(typeof i=="function"?0:i)+uo(t.variantChildren,u,i,s,o)}).then(()=>u.notify("AnimationComplete",e)));return Promise.all(a)}function Wc(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const s=e.map(o=>Ln(t,o,n));i=Promise.all(s)}else if(typeof e=="string")i=Ln(t,e,n);else{const s=typeof e=="function"?Vt(t,e,n.custom):e;i=Promise.all(go(t,s,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}const Hc={test:t=>t==="auto",parse:t=>t},yo=t=>e=>e.test(t),vo=[Wt,E,gt,wt,yu,gu,Hc],ns=t=>vo.find(yo(t));function Kc(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Mr(t):!0}const zc=new Set(["brightness","contrast","saturate","opacity"]);function Gc(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(ri)||[];if(!i)return t;const s=n.replace(i,"");let o=zc.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+s+")"}const Yc=/\b([a-z-]*)\(.*?\)/gu,kn={...ft,getAnimatableNone:t=>{const e=t.match(Yc);return e?e.map(Gc).join(" "):t}},On={...ft,getAnimatableNone:t=>{const e=ft.parse(t);return ft.createTransformer(t)(e.map(i=>typeof i=="number"?0:typeof i=="object"?{...i,alpha:1}:i))}},is={...Wt,transform:Math.round},Xc={rotate:wt,rotateX:wt,rotateY:wt,rotateZ:wt,scale:pe,scaleX:pe,scaleY:pe,scaleZ:pe,skew:wt,skewX:wt,skewY:wt,distance:E,translateX:E,translateY:E,translateZ:E,x:E,y:E,z:E,perspective:E,transformPerspective:E,opacity:ie,originX:Wi,originY:Wi,originZ:E},yi={borderWidth:E,borderTopWidth:E,borderRightWidth:E,borderBottomWidth:E,borderLeftWidth:E,borderRadius:E,borderTopLeftRadius:E,borderTopRightRadius:E,borderBottomRightRadius:E,borderBottomLeftRadius:E,width:E,maxWidth:E,height:E,maxHeight:E,top:E,right:E,bottom:E,left:E,inset:E,insetBlock:E,insetBlockStart:E,insetBlockEnd:E,insetInline:E,insetInlineStart:E,insetInlineEnd:E,padding:E,paddingTop:E,paddingRight:E,paddingBottom:E,paddingLeft:E,paddingBlock:E,paddingBlockStart:E,paddingBlockEnd:E,paddingInline:E,paddingInlineStart:E,paddingInlineEnd:E,margin:E,marginTop:E,marginRight:E,marginBottom:E,marginLeft:E,marginBlock:E,marginBlockStart:E,marginBlockEnd:E,marginInline:E,marginInlineStart:E,marginInlineEnd:E,fontSize:E,backgroundPositionX:E,backgroundPositionY:E,...Xc,zIndex:is,fillOpacity:ie,strokeOpacity:ie,numOctaves:is},qc={...yi,color:H,backgroundColor:H,outlineColor:H,fill:H,stroke:H,borderColor:H,borderTopColor:H,borderRightColor:H,borderBottomColor:H,borderLeftColor:H,filter:kn,WebkitFilter:kn,mask:On,WebkitMask:On},xo=t=>qc[t],Zc=new Set([kn,On]);function To(t,e){let n=xo(t);return Zc.has(n)||(n=ft),n.getAnimatableNone?n.getAnimatableNone(e):void 0}
vendor: 1,699 bytes, line 3
3const Jc=new Set(["auto","none","0"]);function Qc(t,e,n){let i=0,s;for(;i<t.length&&!s;){const o=t[i];typeof o=="string"&&!Jc.has(o)&&Bt(o).values.length&&(s=t[i]),i++}if(s&&n)for(const o of e)t[o]=To(n,s)}class tf extends hi{constructor(e,n,i,s,o){super(e,n,i,s,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<e.length;c++){let f=e[c];if(typeof f=="string"&&(f=f.trim(),si(f))){const h=co(f,n.current);h!==void 0&&(e[c]=h),c===e.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!ho.has(i)||e.length!==2)return;const[s,o]=e,r=ns(s),a=ns(o),u=Ui(s),l=Ui(o);if(u!==l&&St[i]){this.needsMeasurement=!0;return}if(r!==a)if(Zi(r)&&Zi(a))for(let c=0;c<e.length;c++){const f=e[c];typeof f=="string"&&(e[c]=parseFloat(f))}else St[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,i=[];for(let s=0;s<e.length;s++)(e[s]===null||Kc(e[s]))&&i.push(s);i.length&&Qc(e,i,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:i}=this;if(!e||!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=St[i](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&e.getValue(i,s).jump(s,!1)}measureEndState(){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]=St[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
vendor: 46,736 bytes, line 3
3h(([a,u])=>{e.getValue(a).set(u)}),this.resolveNoneKeyframes()}}const ef=new Set(["opacity","clipPath","filter","transform"]);function wo(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let i=document;const s=n?.[t]??i.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(i=>i!=null)}const So=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function we(t){return Ar(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const{schedule:vi}=Ur(queueMicrotask,!1),ut={x:!1,y:!1};function Po(){return ut.x||ut.y}function nf(t){return t==="x"||t==="y"?ut[t]?null:(ut[t]=!0,()=>{ut[t]=!1}):ut.x||ut.y?null:(ut.x=ut.y=!0,()=>{ut.x=ut.y=!1})}function Ro(t,e){const n=wo(t),i=new AbortController,s={passive:!0,...e,signal:i.signal};return[n,s,()=>i.abort()]}function sf(t){return!(t.pointerType==="touch"||Po())}function rf(t,e,n={}){const[i,s,o]=Ro(t,n);return i.forEach(r=>{let a=!1,u=!1,l;const c=()=>{r.removeEventListener("pointerleave",y)},f=g=>{l&&(l(g),l=void 0),c()},h=g=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),u&&(u=!1,f(g))},m=()=>{a=!0,window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",h,s)},y=g=>{if(g.pointerType!=="touch"){if(a){u=!0;return}f(g)}},v=g=>{if(!sf(g))return;u=!1;const x=e(r,g);typeof x=="function"&&(l=x,r.addEventListener("pointerleave",y,s))};r.addEventListener("pointerenter",v,s),r.addEventListener("pointerdown",m,s)}),o}const Eo=(t,e)=>e?t===e?!0:Eo(t,e.parentElement):!1,xi=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,of=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function af(t){return of.has(t.tagName)||t.isContentEditable===!0}const lf=new Set(["INPUT","SELECT","TEXTAREA"]);function uf(t){return lf.has(t.tagName)||t.isContentEditable===!0}const Se=new WeakSet;function ss(t){return e=>{e.key==="Enter"&&t(e)}}function rn(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const cf=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=ss(()=>{if(Se.has(n))return;rn(n,"down");const s=ss(()=>{rn(n,"up")}),o=()=>rn(n,"cancel");n.addEventListener("keyup",s,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function rs(t){return xi(t)&&!Po()}const os=new WeakSet;function ff(t,e,n={}){const[i,s,o]=Ro(t,n),r=a=>{const u=a.currentTarget;if(!rs(a)||os.has(a))return;Se.add(u),n.stopPropagation&&os.add(a);const l=e(u,a),c=(m,y)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),Se.has(u)&&Se.delete(u),rs(m)&&typeof l=="function"&&l(m,{success:y})},f=m=>{c(m,u===window||u===document||n.useGlobalTarget||Eo(u,m.target))},h=m=>{c(m,!1)};window.addEventListener("pointerup",f,s),window.addEventListener("pointercancel",h,s)};return i.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,s),we(a)&&(a.addEventListener("focus",l=>cf(l,s)),!af(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function Ti(t){return Ar(t)&&"ownerSVGElement"in t}const Pe=new WeakMap;let Re;const Co=(t,e,n)=>(i,s)=>s&&s[0]?s[0][t+"Size"]:Ti(i)&&"getBBox"in i?i.getBBox()[e]:i[n],hf=Co("inline","width","offsetWidth"),df=Co("block","height","offsetHeight");function pf({target:t,borderBoxSize:e}){Pe.get(t)?.forEach(n=>{n(t,{get width(){return hf(t,e)},get height(){return df(t,e)}})})}function mf(t){t.forEach(pf)}function gf(){typeof ResizeObserver>"u"||(Re=new ResizeObserver(mf))}function yf(t,e){Re||gf();const n=wo(t);return n.forEach(i=>{let s=Pe.get(i);s||(s=new Set,Pe.set(i,s)),s.add(e),Re?.observe(i)}),()=>{n.forEach(i=>{const s=Pe.get(i);s?.delete(e),s?.size||Re?.unobserve(i)})}}const Ee=new Set;let Ot;function vf(){Ot=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ee.forEach(e=>e(t))},window.addEventListener("resize",Ot)}function xf(t){return Ee.add(t),Ot||vf(),()=>{Ee.delete(t),!Ee.size&&typeof Ot=="function"&&(window.removeEventListener("resize",Ot),Ot=void 0)}}function as(t,e){return typeof t=="function"?xf(t):yf(t,e)}function Tf(t){return Ti(t)&&t.tagName==="svg"}const wf=[...vo,H,ft],Sf=t=>wf.find(yo(t)),ls=()=>({translate:0,scale:1,origin:0,originPoint:0}),It=()=>({x:ls(),y:ls()}),us=()=>({min:0,max:0}),z=()=>({x:us(),y:us()}),Pf=new WeakMap;function We(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function se(t){return typeof t=="string"||Array.isArray(t)}const wi=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Si=["initial",...wi];function He(t){return We(t.animate)||Si.some(e=>se(t[e]))}function bo(t){return!!(He(t)||t.variants)}function Rf(t,e,n){for(const i in e){const s=e[i],o=n[i];if(q(s))t.addValue(i,s);else if(q(o))t.addValue(i,jt(s,{owner:t}));else if(o!==s)if(t.hasValue(i)){const r=t.getValue(i);r.liveStyle===!0?r.jump(s):r.hasAnimated||r.set(s)}else{const r=t.getStaticValue(i);t.addValue(i,jt(r!==void 0?r:s,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const In={current:null},Ao={current:!1},Ef=typeof window<"u";function Cf(){if(Ao.current=!0,!!Ef)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>In.current=t.matches;t.addEventListener("change",e),e()}else In.current=!1}const cs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Oe={};function Mo(t){Oe=t}function bf(){return Oe}class Af{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:s,skipAnimations:o,blockInitialAnimation:r,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=hi,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=tt.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,_.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=o,this.options=u,this.blockInitialAnimation=!!r,this.isControllingVariants=He(n),this.isVariantNode=bo(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in h){const y=h[m];l[m]!==void 0&&q(y)&&y.set(l[m])}}mount(e){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=e,Pf.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Ao.current||Cf(),this.shouldReduceMotion=In.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Rt(this.notifyUpdate),Rt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&ef.has(e)&&this.current instanceof HTMLElement){const{factory:r,keyframes:a,times:u,ease:l,duration:c}=n.accelerate,f=new ao({element:this.current,name:e,keyframes:a,times:u,ease:l,duration:it(c)}),h=r(f);this.valueSubscriptions.set(e,()=>{h(),f.cancel()});return}const i=Kt.has(e);i&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&_.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Oe){const n=Oe[e];if(!n)continue;const{isEnabled:i,Feature:s}=n;if(!this.features[e]&&s&&i(this.props)&&(this.features[e]=new s(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):z()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<cs.length;i++){const s=cs[i];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const o="on"+s,r=e[o];r&&(this.propEventSubscriptions[s]=this.on(s,r))}this.prevMotionValues=Rf(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const i=this.values.get(e);n!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=jt(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(br(i)||Mr(i))?i=parseFloat(i):!Sf(i)&&ft.test(n)&&(i=To(e,n)),this.setBaseTarget(e,q(i)?i.get():i)),q(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const o=mi(this.props,n,this.presenceContext?.custom);o&&(i=o[e])}if(n&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!q(s)?s:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new ei),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){vi.render(this.render)}}class Do extends Af{constructor(){super(...arguments),this.KeyframeResolver=tf}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const i=e.style;return i?i[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;q(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Et{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Vo({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function Mf({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Df(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}}function on(t){return t===void 0||t===1}function Fn({scale:t,scaleX:e,scaleY:n}){return!on(t)||!on(e)||!on(n)}function bt(t){return Fn(t)||Lo(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Lo(t){return fs(t.x)||fs(t.y)}function fs(t){return t&&t!=="0%"}function Ie(t,e,n){const i=t-n,s=e*i;return n+s}function hs(t,e,n,i,s){return s!==void 0&&(t=Ie(t,s,i)),Ie(t,n,i)+e}function _n(t,e=0,n=1,i,s){t.min=hs(t.min,e,n,i,s),t.max=hs(t.max,e,n,i,s)}function ko(t,{x:e,y:n}){_n(t.x,e.translate,e.scale,e.originPoint),_n(t.y,n.translate,n.scale,n.originPoint)}const ds=.999999999999,ps=1.0000000000001;function Vf(t,e,n,i=!1){const s=n.length;if(!s)return;e.x=e.y=1;let o,r;for(let a=0;a<s;a++){o=n[a],r=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&_t(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,ko(t,r)),i&&bt(o.latestValues)&&_t(t,o.latestValues,o.layout?.layoutBox))}e.x<ps&&e.x>ds&&(e.x=1),e.y<ps&&e.y>ds&&(e.y=1)}function Ft(t,e){t.min=t.min+e,t.max=t.max+e}function ms(t,e,n,i,s=.5){const o=N(t.min,t.max,s);_n(t,e,n,o,i)}function gs(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function _t(t,e,n){const i=n??t;ms(t.x,gs(e.x,i.x),e.scaleX,e.scale,e.originX),ms(t.y,gs(e.y,i.y),e.scaleY,e.scale,e.originY)}function Oo(t,e){return Vo(Df(t.getBoundingClientRect(),e))}function Lf(t,e,n){const i=Oo(t,n),{scroll:s}=e;return s&&(Ft(i.x,s.offset.x),Ft(i.y,s.offset.y)),i}const kf={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Of=Ht.length;function If(t,e,n){let i="",s=!0;for(let o=0;o<Of;o++){const r=Ht[o],a=t[r];if(a===void 0)continue;let u=!0;if(typeof a=="number")u=a===(r.startsWith("scale")?1:0);else{const l=parseFloat(a);u=r.startsWith("scale")?l===1:l===0}if(!u||n){const l=So(a,yi[r]);if(!u){s=!1;const c=kf[r]||r;i+=`${c}(${l}) `}n&&(e[r]=l)}}return i=i.trim(),n?i=n(e,s?"":i):s&&(i="none"),i}function Pi(t,e,n){const{style:i,vars:s,transformOrigin:o}=t;let r=!1,a=!1;for(const u in e){const l=e[u];if(Kt.has(u)){r=!0;continue}else if(Hr(u)){s[u]=l;continue}else{const c=So(l,yi[u]);u.startsWith("origin")?(a=!0,o[u]=c):i[u]=c}}if(e.transform||(r||n?i.transform=If(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:u="50%",originY:l="50%",originZ:c=0}=o;i.transformOrigin=`${u} ${l} ${c}`}}function Io(t,{style:e,vars:n},i,s){const o=t.style;let r;for(r in e)o[r]=e[r];s?.applyProjectionStyles(o,i);for(r in n)o.setProperty(r,n[r])}function ys(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Xt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(E.test(t))t=parseFloat(t);else return t;const n=ys(t,e.target.x),i=ys(t,e.target.y);return`${n}% ${i}%`}},Ff={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=ft.parse(t);if(s.length>5)return i;const o=ft.createTransformer(t),r=typeof s[0]!="number"?1:0,a=n.x.scale*e.x,u=n.y.scale*e.y;s[0+r]/=a,s[1+r]/=u;const l=N(a,u,.5);return typeof s[2+r]=="number"&&(s[2+r]/=l),typeof s[3+r]=="number"&&(s[3+r]/=l),o(s)}},Bn={borderRadius:{...Xt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Xt,borderTopRightRadius:Xt,borderBottomLeftRadius:Xt,borderBottomRightRadius:Xt,boxShadow:Ff};function Fo(t,{layout:e,layoutId:n}){return Kt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Bn[t]||t==="opacity")}function Ri(t,e,n){const i=t.style,s=e?.style,o={};if(!i)return o;for(const r in i)(q(i[r])||s&&q(s[r])||Fo(r,t)||n?.getValue(r)?.liveStyle!==void 0)&&(o[r]=i[r]);return o}function _f(t){return window.getComputedStyle(t)}class Bf extends Do{constructor(){super(...arguments),this.type="html",this.renderInstance=Io}readValueFromInstance(e,n){if(Kt.has(n))return this.projection?.isProjecting?Rn(n):ic(e,n);{const i=_f(e),s=(Hr(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Oo(e,n)}build(e,n,i){Pi(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return Ri(e,n,i)}}const jf={offset:"stroke-dashoffset",array:"stroke-dasharray"},Nf={offset:"strokeDashoffset",array:"strokeDasharray"};function $f(t,e,n=1,i=0,s=!0){t.pathLength=1;const o=s?jf:Nf;t[o.offset]=`${-i}`,t[o.array]=`${e} ${n}`}const Uf=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function _o(t,{attrX:e,attrY:n,attrScale:i,pathLength:s,pathSpacing:o=1,pathOffset:r=0,...a},u,l,c){if(Pi(t,a,l),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:h}=t;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=c?.transformBox??"fill-box",delete f.transformBox);for(const m of Uf)f[m]!==void 0&&(h[m]=f[m],delete f[m]);e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),i!==void 0&&(f.scale=i),s!==void 0&&$f(f,s,o,r,!1)}const Bo=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"]),jo=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Wf(t,e,n,i){Io(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(Bo.has(s)?s:gi(s),e.attrs[s])}function No(t,e,n){const i=Ri(t,e,n);for(const s in t)if(q(t[s])||q(e[s])){const o=Ht.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[o]=t[s]}return i}class Hf extends Do{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=z}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Kt.has(n)){const i=xo(n);return i&&i.default||0}return n=Bo.has(n)?n:gi(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return No(e,n,i)}build(e,n,i){_o(e,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,n,i,s){Wf(e,n,i,s)}mount(e){this.isSVGTag=jo(e.tagName),super.mount(e)}}const Kf=Si.length;function $o(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?$o(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Kf;n++){const i=Si[n],s=t.props[i];(se(s)||s===!1)&&(e[i]=s)}return e}function Uo(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}const zf=[...wi].reverse(),Gf=wi.length;function Yf(t){return e=>Promise.all(e.map(({animation:n,options:i})=>Wc(t,n,i)))}function Xf(t){let e=Yf(t),n=vs(),i=!0,s=!1;const o=l=>(c,f)=>{const h=Vt(t,f,l==="exit"?t.presenceContext?.custom:void 0);if(h){const{transition:m,transitionEnd:y,...v}=h;c={...c,...v,...y}}return c};function r(l){e=l(t)}function a(l){const{props:c}=t,f=$o(t.parent)||{},h=[],m=new Set;let y={},v=1/0;for(let x=0;x<Gf;x++){const w=zf[x],T=n[w],P=c[w]!==void 0?c[w]:f[w],R=se(P),k=w===l?T.isActive:null;k===!1&&(v=x);let A=P===f[w]&&P!==c[w]&&R;if(A&&(i||s)&&t.manuallyAnimateOnMount&&(A=!1),T.protectedKeys={...y},!T.isActive&&k===null||!P&&!T.prevProp||We(P)||typeof P=="boolean")continue;if(w==="exit"&&T.isActive&&k!==!0){T.prevResolvedValues&&(y={...y,...T.prevResolvedValues});continue}const b=qf(T.prevProp,P);let M=b||w===l&&T.isActive&&!A&&R||x>v&&R,C=!1;const I=Array.isArray(P)?P:[P];let U=I.reduce(o(w),{});k===!1&&(U={});const{prevResolvedValues:J={}}=T,G={...J,...U},W=K=>{M=!0,m.has(K)&&(C=!0,m.delete(K)),T.needsAnimating[K]=!0;const Q=t.getValue(K);Q&&(Q.liveStyle=!1)};for(const K in G){const Q=U[K],vt=J[K];if(y.hasOwnProperty(K))continue;let p=!1;Dn(Q)&&Dn(vt)?p=!Uo(Q,vt):p=Q!==vt,p?Q!=null?W(K):m.add(K):Q!==void 0&&m.has(K)?W(K):T.protectedKeys[K]=!0}T.prevProp=P,T.prevResolvedValues=U,T.isActive&&(y={...y,...U}),(i||s)&&t.blockInitialAnimation&&(M=!1);const Y=A&&b;M&&(!Y||C)&&h.push(...I.map(K=>{const Q={type:w};if(typeof K=="string"&&(i||s)&&!Y&&t.manuallyAnimateOnMount&&t.parent){const{parent:vt}=t,p=Vt(vt,K);if(vt.enteringChildren&&p){const{delayChildren:S}=p.transition||{};Q.delay=uo(vt.enteringChildren,t,S)}}return{animation:K,options:Q}}))}if(m.size){const x={};if(typeof c.initial!="boolean"){const w=Vt(t,Array.isArray(c.initial)?c.initial[0]:c.initial);w&&w.transition&&(x.transition=w.transition)}m.forEach(w=>{const T=t.getBaseTarget(w),P=t.getValue(w);P&&(P.liveStyle=!0),x[w]=T??null}),h.push({animation:x})}let g=!!h.length;return i&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(g=!1),i=!1,s=!1,g?e(h):Promise.resolve()}function u(l,c){if(n[l].isActive===c)return Promise.resolve();t.variantChildren?.forEach(h=>h.animationState?.setActive(l,c)),n[l].isActive=c;const f=a(l);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:a,setActive:u,setAnimateFunction:r,getState:()=>n,reset:()=>{n=vs(),s=!0}}}function qf(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Uo(e,t):!1}function Ct(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function vs(){return{animate:Ct(!0),whileInView:Ct(),whileHover:Ct(),whileTap:Ct(),whileDrag:Ct(),whileFocus:Ct(),exit:Ct()}}function jn(t,e){t.min=e.min,t.max=e.max}function lt(t,e){jn(t.x,e.x),jn(t.y,e.y)}function xs(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const Wo=1e-4,Zf=1-Wo,Jf=1+Wo,Ho=.01,Qf=0-Ho,th=0+Ho;function et(t){return t.max-t.min}function eh(t,e,n){return Math.abs(t-e)<=n}function Ts(t,e,n,i=.5){t.origin=i,t.originPoint=N(e.min,e.max,t.origin),t.scale=et(n)/et(e),t.translate=N(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Zf&&t.scale<=Jf||isNaN(t.scale))&&(t.scale=1),(t.translate>=Qf&&t.translate<=th||isNaN(t.translate))&&(t.translate=0)}function Qt(t,e,n,i){Ts(t.x,e.x,n.x,i?i.originX:void 0),Ts(t.y,e.y,n.y,i?i.originY:void 0)}function ws(t,e,n){t.min=n.min+e.min,t.max=t.min+et(e)}function nh(t,e,n){ws(t.x,e.x,n.x),ws(t.y,e.y,n.y)}function Ss(t,e,n){t.min=e.min-n.min,t.max=t.min+et(e)}function Fe(t,e,n){Ss(t.x,e.x,n.x),Ss(t.y,e.y,n.y)}function Ps(t,e,n,i,s){return t-=e,t=Ie(t,1/n,i),s!==void 0&&(t=Ie(t,1/s,i)),t}function ih(t,e=0,n=1,i=.5,s,o=t,r=t){if(gt.test(e)&&(e=parseFloat(e),e=N(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=N(o.min,o.max,i);t===o&&(a-=e),t.min=Ps(t.min,e,n,a,s),t.max=Ps(t.max,e,n,a,s)}function Rs(t,e,[n,i,s],o,r){ih(t,e[n],e[i],e[s],e.scale,o,r)}const sh=["x","scaleX","originX"],rh=["y","scaleY","originY"];function Es(t,e,n,i){Rs(t.x,e,sh,n?n.x:void 0,i?i.x:void 0),Rs(t.y,e,rh,n?n.y:void 0,i?i.y:void 0)}function Cs(t){return t.translate===0&&t.scale===1}function Ko(t){return Cs(t.x)&&Cs(t.y)}function bs(t,e){return t.min===e.min&&t.max===e.max}function oh(t,e){return bs(t.x,e.x)&&bs(t.y,e.y)}function As(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function zo(t,e){return As(t.x,e.x)&&As(t.y,e.y)}function Ms(t){return et(t.x)/et(t.y)}function Ds(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function mt(t){return[t("x"),t("y")]}function ah(t,e,n){let i="";const s=t.x.translate/e.x,o=t.y.translate/e.y,r=n?.z||0;if((s||o||r)&&(i=`translate3d(${s}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:l,rotate:c,rotateX:f,rotateY:h,skewX:m,skewY:y}=n;l&&(i=`perspective(${l}px) ${i}`),c&&(i+=`rotate(${c}deg) `),f&&(i+=`rotateX(${f}deg) `),h&&(i+=`rotateY(${h}deg) `),m&&(i+=`skewX(${m}deg) `),y&&(i+=`skewY(${y}deg) `)}const a=t.x.scale*e.x,u=t.y.scale*e.y;return(a!==1||u!==1)&&(i+=`scale(${a}, ${u})`),i||"none"}const Go=["TopLeft","TopRight","BottomLeft","BottomRight"],lh=Go.length,Vs=t=>typeof t=="string"?parseFloat(t):t,Ls=t=>typeof t=="number"||E.test(t);function uh(t,e,n,i,s,o){s?(t.opacity=N(0,n.opacity??1,ch(i)),t.opacityExit=N(e.opacity??1,0,fh(i))):o&&(t.opacity=N(e.opacity??1,n.opacity??1,i));for(let r=0;r<lh;r++){const a=`border${Go[r]}Radius`;let u=ks(e,a),l=ks(n,a);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||Ls(u)===Ls(l)?(t[a]=Math.max(N(Vs(u),Vs(l),i),0),(gt.test(l)||gt.test(u))&&(t[a]+="%")):t[a]=l}(e.rotate||n.rotate)&&(t.rotate=N(e.rotate||0,n.rotate||0,i))}function ks(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const ch=Yo(0,.5,Br),fh=Yo(.5,.95,ot);function Yo(t,e,n){return i=>i<t?0:i>e?1:n(ne(t,e,i))}function hh(t,e,n){const i=q(t)?t:jt(t);return i.start(pi("",i,e,n)),i.animation}function re(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}const dh=(t,e)=>t.depth-e.depth;class ph{constructor(){this.children=[],this.isDirty=!1}add(e){Qn(this.children,e),this.isDirty=!0}remove(e){De(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(dh),this.isDirty=!1,this.children.forEach(e)}}function mh(t,e){const n=tt.now(),i=({timestamp:s})=>{const o=s-n;o>=e&&(Rt(i),t(o-e))};return _.setup(i,!0),()=>Rt(i)}function Ce(t){return q(t)?t.get():t}class gh{constructor(){this.members=[]}add(e){Qn(this.members,e);for(let n=this.members.length-1;n>=0;n--){const i=this.members[n];if(i===e||i===this.lead||i===this.prevLead)continue;const s=i.instance;(!s||s.isConnected===!1)&&!i.snapshot&&(De(this.members,i),i.unmount())}e.scheduleRender()}remove(e){if(De(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){for(let n=this.members.indexOf(e)-1;n>=0;n--){const i=this.members[n];if(i.isPresent!==!1&&i.instance?.isConnected!==!1)return this.promote(i),!0}return!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.updateSnapshot(),e.scheduleRender();const{layoutDependency:s}=i.options,{layoutDependency:o}=e.options;(s===void 0||s!==o)&&(e.resumeFrom=i,n&&(i.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const be={hasAnimatedSinceResize:!0,hasEverUpdated:!1},an=["","X","Y","Z"],yh=1e3;let vh=0;function ln(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function Xo(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=mo(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",_,!(s||o))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&Xo(i)}function qo({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(r={},a=e?.()){this.id=vh++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(wh),this.nodes.forEach(Eh),this.nodes.forEach(Ch),this.nodes.forEach(Sh)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new ph)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new ei),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const u=this.eventHandlers.get(r);u&&u.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=Ti(r)&&!Tf(r),this.instance=r;const{layoutId:a,layout:u,visualElement:l}=this.options;if(l&&!l.current&&l.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||a)&&(this.isLayoutDirty=!0),t){let c,f=0;const h=()=>this.root.updateBlockedByResize=!1;_.read(()=>{f=window.innerWidth}),t(r,()=>{const m=window.innerWidth;m!==f&&(f=m,this.root.updateBlockedByResize=!0,c&&c(),c=mh(h,250),be.hasAnimatedSinceResize&&(be.hasAnimatedSinceResize=!1,this.nodes.forEach(Fs)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&l&&(a||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||l.getDefaultTransition()||Vh,{onLayoutAnimationStart:v,onLayoutAnimationComplete:g}=l.getProps(),x=!this.targetLayout||!zo(this.targetLayout,m),w=!f&&h;if(this.options.layoutRoot||this.resumeFrom||w||f&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...di(y,"layout"),onPlay:v,onComplete:g};(l.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(c,w)}else f||Fs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Rt(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(bh),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Xo(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,(typeof f.latestValues.x=="string"||typeof f.latestValues.y=="string")&&(f.isLayoutDirty=!0),f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:u}=this.options;if(a===void 0&&!u)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Os);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Is);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Rh),this.nodes.forEach(xh),this.nodes.forEach(Th)):this.nodes.forEach(Is),this.clearAllSnapshots();const a=tt.now();X.delta=yt(0,1e3/60,a-X.timestamp),X.timestamp=a,X.isProcessing=!0,Je.update.process(X),Je.preRender.process(X),Je.render.process(X),X.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,vi.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ph),this.sharedNodes.forEach(Ah)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,_.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){_.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!et(this.snapshot.measuredBox.x)&&!et(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=z(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const u=i(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!s)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Ko(this.projectionDelta),u=this.getTransformTemplate(),l=u?u(this.latestValues,""):void 0,c=l!==this.prevTransformTemplateValue;r&&this.instance&&(a||bt(this.latestValues)||c)&&(s(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let u=this.removeElementScroll(a);return r&&(u=this.removeTransform(u)),Lh(u),{animationId:this.root.animationId,measuredBox:a,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return z();const a=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(kh))){const{scroll:l}=this.root;l&&(Ft(a.x,l.offset.x),Ft(a.y,l.offset.y))}return a}removeElementScroll(r){const a=z();if(lt(a,r),this.scroll?.wasRoot)return a;for(let u=0;u<this.path.length;u++){const l=this.path[u],{scroll:c,options:f}=l;l!==this.root&&c&&f.layoutScroll&&(c.wasRoot&&lt(a,r),Ft(a.x,c.offset.x),Ft(a.y,c.offset.y))}return a}applyTransform(r,a=!1){const u=z();lt(u,r);for(let l=0;l<this.path.length;l++){const c=this.path[l];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&_t(u,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),bt(c.latestValues)&&_t(u,c.latestValues,c.layout?.layoutBox)}return bt(this.latestValues)&&_t(u,this.latestValues,this.layout?.layoutBox),u}removeTransform(r){const a=z();lt(a,r);for(let u=0;u<this.path.length;u++){const l=this.path[u];if(!bt(l.latestValues))continue;let c;l.instance&&(Fn(l.latestValues)&&l.updateSnapshot(),c=z(),lt(c,l.measurePageBox())),Es(a,l.latestValues,l.snapshot?.layoutBox,c)}return bt(this.latestValues)&&Es(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}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!==X.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==a;if(!(r||u&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:f}=this.options;if(!this.layout||!(c||f))return;this.resolvedRelativeTargetAt=X.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=z(),this.targetWithTransforms=z()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),nh(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):lt(this.target,this.layout.layoutBox),ko(this.target,this.targetDelta)):lt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Fn(this.parent.latestValues)||Lo(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,a,u){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=z(),this.relativeTargetOrigin=z(),Fe(this.relativeTargetOrigin,a,u),lt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const r=this.getLead(),a=!!this.resumingFrom||this!==r;let u=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(u=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===X.timestamp&&(u=!1),u)return;const{layout:l,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(l||c))return;lt(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;Vf(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=z());const{target:m}=r;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(xs(this.prevProjectionDelta.x,this.projectionDelta.x),xs(this.prevProjectionDelta.y,this.projectionDelta.y)),Qt(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!Ds(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ds(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=It(),this.projectionDelta=It(),this.projectionDeltaWithTransform=It()}setAnimationOrigin(r,a=!1){const u=this.snapshot,l=u?u.latestValues:{},c={...this.latestValues},f=It();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=z(),m=u?u.source:void 0,y=this.layout?this.layout.source:void 0,v=m!==y,g=this.getStack(),x=!g||g.members.length<=1,w=!!(v&&!x&&this.options.crossfade===!0&&!this.path.some(Dh));this.animationProgress=0;let T;this.mixTargetDelta=P=>{const R=P/1e3;_s(f.x,r.x,R),_s(f.y,r.y,R),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Fe(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Mh(this.relativeTarget,this.relativeTargetOrigin,h,R),T&&oh(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=z()),lt(T,this.relativeTarget)),v&&(this.animationValues=c,uh(c,l,this.latestValues,R,w,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=R},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Rt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=_.update(()=>{be.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=jt(0)),this.motionValue.jump(0,!1),this.currentAnimation=hh(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.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 r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(yh),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:u,layout:l,latestValues:c}=r;if(!(!a||!u||!l)){if(this!==r&&this.layout&&l&&Zo(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||z();const f=et(this.layout.layoutBox.x);u.x.min=r.target.x.min,u.x.max=u.x.min+f;const h=et(this.layout.layoutBox.y);u.y.min=r.target.y.min,u.y.max=u.y.min+h}lt(a,u),_t(a,c),Qt(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new gh),this.sharedNodes.get(r).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:u}=r;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(a=!0),!a)return;const l={};u.z&&ln("z",r,l,this.animationValues);for(let c=0;c<an.length;c++)ln(`rotate${an[c]}`,r,l,this.animationValues),ln(`skew${an[c]}`,r,l,this.animationValues);r.render();for(const c in l)r.setStaticValue(c,l[c]),this.animationValues&&(this.animationValues[c]=l[c]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=Ce(a?.pointerEvents)||"",r.transform=u?u(this.latestValues,""):"none";return}const l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=Ce(a?.pointerEvents)||""),this.hasProjected&&!bt(this.latestValues)&&(r.transform=u?u({},""):"none",this.hasProjected=!1);return}r.visibility="";const c=l.animationValues||l.latestValues;this.applyTransformsToTarget();let f=ah(this.projectionDeltaWithTransform,this.treeScale,c);u&&(f=u(c,f)),r.transform=f;const{x:h,y:m}=this.projectionDelta;r.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,l.animationValues?r.opacity=l===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:r.opacity=l===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const y in Bn){if(c[y]===void 0)continue;const{correct:v,applyTo:g,isCSSVariable:x}=Bn[y],w=f==="none"?c[y]:v(c[y],l);if(g){const T=g.length;for(let P=0;P<T;P++)r[g[P]]=w}
vendor: 11,943 bytes, lines 3-11
3else x?this.options.visualElement.renderState.vars[y]=w:r[y]=w}this.options.layoutId&&(r.pointerEvents=l===this?Ce(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(Os),this.root.sharedNodes.clear()}}}function xh(t){t.updateLayout()}function Th(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=t.layout,{animationType:s}=t.options,o=e.source!==t.layout.source;if(s==="size")mt(c=>{const f=o?e.measuredBox[c]:e.layoutBox[c],h=et(f);f.min=n[c].min,f.max=f.min+h});else if(s==="x"||s==="y"){const c=s==="x"?"y":"x";jn(o?e.measuredBox[c]:e.layoutBox[c],n[c])}else Zo(s,e.layoutBox,n)&&mt(c=>{const f=o?e.measuredBox[c]:e.layoutBox[c],h=et(n[c]);f.max=f.min+h,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[c].max=t.relativeTarget[c].min+h)});const r=It();Qt(r,n,e.layoutBox);const a=It();o?Qt(a,t.applyTransform(i,!0),e.measuredBox):Qt(a,n,e.layoutBox);const u=!Ko(r);let l=!1;if(!t.resumeFrom){const c=t.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:f,layout:h}=c;if(f&&h){const m=z();Fe(m,e.layoutBox,f.layoutBox);const y=z();Fe(y,n,h.layoutBox),zo(m,y)||(l=!0),c.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=m,t.relativeParent=c)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:u,hasRelativeLayoutChanged:l})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function wh(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Sh(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Ph(t){t.clearSnapshot()}function Os(t){t.clearMeasurements()}function Is(t){t.isLayoutDirty=!1}function Rh(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Fs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Eh(t){t.resolveTargetDelta()}function Ch(t){t.calcProjection()}function bh(t){t.resetSkewAndRotation()}function Ah(t){t.removeLeadSnapshot()}function _s(t,e,n){t.translate=N(e.translate,0,n),t.scale=N(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Bs(t,e,n,i){t.min=N(e.min,n.min,i),t.max=N(e.max,n.max,i)}function Mh(t,e,n,i){Bs(t.x,e.x,n.x,i),Bs(t.y,e.y,n.y,i)}function Dh(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Vh={duration:.45,ease:[.4,0,.1,1]},js=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ns=js("applewebkit/")&&!js("chrome/")?Math.round:ot;function $s(t){t.min=Ns(t.min),t.max=Ns(t.max)}function Lh(t){$s(t.x),$s(t.y)}function Zo(t,e,n){return t==="position"||t==="preserve-aspect"&&!eh(Ms(e),Ms(n),.2)}function kh(t){return t!==t.root&&t.scroll?.wasRoot}const Oh=qo({attachResizeListener:(t,e)=>re(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),un={current:void 0},Jo=qo({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!un.current){const t=new Oh({});t.mount(window),t.setOptions({layoutScroll:!0}),un.current=t}return un.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Ei=d.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Us(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Ih(...t){return e=>{let n=!1;const i=t.map(s=>{const o=Us(s,e);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let s=0;s<i.length;s++){const o=i[s];typeof o=="function"?o():Us(t[s],null)}}}}function Fh(...t){return d.useCallback(Ih(...t),t)}class _h extends d.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(we(n)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const i=n.offsetParent,s=we(i)&&i.offsetWidth||0,o=we(i)&&i.offsetHeight||0,r=getComputedStyle(n),a=this.props.sizeRef.current;a.height=parseFloat(r.height),a.width=parseFloat(r.width),a.top=n.offsetTop,a.left=n.offsetLeft,a.right=s-a.width-a.left,a.bottom=o-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}}function Bh({children:t,isPresent:e,anchorX:n,anchorY:i,root:s,pop:o}){const r=d.useId(),a=d.useRef(null),u=d.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:l}=d.useContext(Ei),c=t.props?.ref??t?.ref,f=Fh(a,c);return d.useInsertionEffect(()=>{const{width:h,height:m,top:y,left:v,right:g,bottom:x}=u.current;if(e||o===!1||!a.current||!h||!m)return;const w=n==="left"?`left: ${v}`:`right: ${g}`,T=i==="bottom"?`bottom: ${x}`:`top: ${y}`;a.current.dataset.motionPopId=r;const P=document.createElement("style");l&&(P.nonce=l);const R=s??document.head;return R.appendChild(P),P.sheet&&P.sheet.insertRule(`
4          [data-motion-pop-id="${r}"] {
5            position: absolute !important;
6            width: ${h}px !important;
7            height: ${m}px !important;
8            ${w}px !important;
9            ${T}px !important;
10          }
11        `),()=>{a.current?.removeAttribute("data-motion-pop-id"),R.contains(P)&&R.removeChild(P)}},[e]),xt.jsx(_h,{isPresent:e,childRef:a,sizeRef:u,pop:o,children:o===!1?t:d.cloneElement(t,{ref:f})})}const jh=({children:t,initial:e,isPresent:n,onExitComplete:i,custom:s,presenceAffectsLayout:o,mode:r,anchorX:a,anchorY:u,root:l})=>{const c=Jn(Nh),f=d.useId();let h=!0,m=d.useMemo(()=>(h=!1,{id:f,initial:e,isPresent:n,custom:s,onExitComplete:y=>{c.set(y,!0);for(const v of c.values())if(!v)return;i&&i()},register:y=>(c.set(y,!1),()=>c.delete(y))}),[n,c,i]);return o&&h&&(m={...m}),d.useMemo(()=>{c.forEach((y,v)=>c.set(v,!1))},[n]),d.useEffect(()=>{!n&&!c.size&&i&&i()},[n]),t=xt.jsx(Bh,{pop:r==="popLayout",isPresent:n,anchorX:a,anchorY:u,root:l,children:t}),xt.jsx(Ue.Provider,{value:m,children:t})};function Nh(){return new Map}function Qo(t=!0){const e=d.useContext(Ue);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:s}=e,o=d.useId();d.useEffect(()=>{if(t)return s(o)},[t]);const r=d.useCallback(()=>t&&i&&i(o),[o,i,t]);return!n&&i?[!1,r]:[!0]}const me=t=>t.key||"";function Ws(t){const e=[];return d.Children.forEach(t,n=>{d.isValidElement(n)&&e.push(n)}),e}const sp=({children:t,custom:e,initial:n=!0,onExitComplete:i,presenceAffectsLayout:s=!0,mode:o="sync",propagate:r=!1,anchorX:a="left",anchorY:u="top",root:l})=>{const[c,f]=Qo(r),h=d.useMemo(()=>Ws(t),[t]),m=r&&!c?[]:h.map(me),y=d.useRef(!0),v=d.useRef(h),g=Jn(()=>new Map),x=d.useRef(new Set),[w,T]=d.useState(h),[P,R]=d.useState(h);Cr(()=>{y.current=!1,v.current=h;for(let b=0;b<P.length;b++){const M=me(P[b]);m.includes(M)?(g.delete(M),x.current.delete(M)):g.get(M)!==!0&&g.set(M,!1)}},[P,m.length,m.join("-")]);const k=[];if(h!==w){let b=[...h];for(let M=0;M<P.length;M++){const C=P[M],I=me(C);m.includes(I)||(b.splice(M,0,C),k.push(C))}return o==="wait"&&k.length&&(b=k),R(Ws(b)),T(h),null}const{forceRender:A}=d.useContext(Zn);return xt.jsx(xt.Fragment,{children:P.map(b=>{const M=me(b),C=r&&!c?!1:h===P||m.includes(M),I=()=>{if(x.current.has(M))return;if(g.has(M))x.current.add(M),g.set(M,!0);else return;let U=!0;g.forEach(J=>{J||(U=!1)}),U&&(A?.(),R(v.current),r&&f?.(),i&&i())};return xt.jsx(jh,{isPresent:C,initial:!y.current||n?void 0:!1,custom:e,presenceAffectsLayout:s,mode:o,root:l,onExitComplete:C?void 0:I,anchorX:a,anchorY:u,children:b},M)})})},ta=d.createContext({strict:!1}),Hs={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"]};let Ks=!1;function $h(){if(Ks)return;const t={};for(const e in Hs)t[e]={isEnabled:n=>Hs[e].some(i=>!!n[i])};Mo(t),Ks=!0}function ea(){return $h(),bf()}function Uh(t){const e=ea();for(const n in t)e[n]={...e[n],...t[n]};Mo(e)}const Wh=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function _e(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Wh.has(t)}let na=t=>!_e(t);function Hh(t){typeof t=="function"&&(na=e=>e.startsWith("on")?!_e(e):t(e))}try{Hh(require("@emotion/is-prop-valid").default)}catch{}function Kh(t,e,n){const i={};for(const s in t)s==="values"&&typeof t.values=="object"||q(t[s])||(na(s)||n===!0&&_e(s)||!e&&!_e(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}const Ke=d.createContext({});function zh(t,e){if(He(t)){const{initial:n,animate:i}=t;return{initial:n===!1||se(n)?n:void 0,animate:se(i)?i:void 0}}return t.inherit!==!1?e:{}}function Gh(t){const{initial:e,animate:n}=zh(t,d.useContext(Ke));return d.useMemo(()=>({initial:e,animate:n}),[zs(e),zs(n)])}function zs(t){return Array.isArray(t)?t.join(" "):t}const Ci=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ia(t,e,n){for(const i in e)!q(e[i])&&!Fo(i,n)&&(t[i]=e[i])}function Yh({transformTemplate:t},e){return d.useMemo(()=>{const n=Ci();return Pi(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Xh(t,e){const n=t.style||{},i={};return ia(i,n,t),Object.assign(i,Yh(t,e)),i}function qh(t,e){const n={},i=Xh(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const sa=()=>({...Ci(),attrs:{}});function Zh(t,e,n,i){const s=d.useMemo(()=>{const o=sa();return _o(o,e,jo(i),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};ia(o,t.style,t),s.style={...o,...s.style}}return s}const Jh=["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 bi(t){return typeof t!="string"||t.includes("-")?!1:!!(Jh.indexOf(t)>-1||/[A-Z]/u.test(t))}function Qh(t,e,n,{latestValues:i},s,o=!1,r){const u=(r??bi(t)?Zh:qh)(e,i,s,t),l=Kh(e,typeof t=="string",o),c=t!==d.Fragment?{...l,...u,ref:n}:{},{children:f}=e,h=d.useMemo(()=>q(f)?f.get():f,[f]);return d.createElement(t,{...c,children:h})}function td({scrapeMotionValuesFromProps:t,createRenderState:e},n,i,s){return{latestValues:ed(n,i,s,t),renderState:e()}}function ed(t,e,n,i){const s={},o=i(t,{});for(const h in o)s[h]=Ce(o[h]);let{initial:r,animate:a}=t;const u=He(t),l=bo(t);e&&l&&!u&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||r===!1;const f=c?a:r;if(f&&typeof f!="boolean"&&!We(f)){const h=Array.isArray(f)?f:[f];for(let m=0;m<h.length;m++){const y=mi(t,h[m]);if(y){const{transitionEnd:v,transition:g,...x}=y;
vendor: 21,585 bytes, line 11
11for(const w in x){let T=x[w];if(Array.isArray(T)){const P=c?T.length-1:0;T=T[P]}T!==null&&(s[w]=T)}for(const w in v)s[w]=v[w]}}}return s}const ra=t=>(e,n)=>{const i=d.useContext(Ke),s=d.useContext(Ue),o=()=>td(t,e,i,s);return n?o():Jn(o)},nd=ra({scrapeMotionValuesFromProps:Ri,createRenderState:Ci}),id=ra({scrapeMotionValuesFromProps:No,createRenderState:sa}),sd=Symbol.for("motionComponentSymbol");function rd(t,e,n){const i=d.useRef(n);d.useInsertionEffect(()=>{i.current=n});const s=d.useRef(null);return d.useCallback(o=>{o&&t.onMount?.(o);const r=i.current;if(typeof r=="function")if(o){const a=r(o);typeof a=="function"&&(s.current=a)}else s.current?(s.current(),s.current=null):r(o);else r&&(r.current=o);e&&(o?e.mount(o):e.unmount())},[e])}const oa=d.createContext({});function Lt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function od(t,e,n,i,s,o){const{visualElement:r}=d.useContext(Ke),a=d.useContext(ta),u=d.useContext(Ue),l=d.useContext(Ei),c=l.reducedMotion,f=l.skipAnimations,h=d.useRef(null),m=d.useRef(!1);i=i||a.renderer,!h.current&&i&&(h.current=i(t,{visualState:e,parent:r,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c,skipAnimations:f,isSVG:o}),m.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const y=h.current,v=d.useContext(oa);y&&!y.projection&&s&&(y.type==="html"||y.type==="svg")&&ad(h.current,n,s,v);const g=d.useRef(!1);d.useInsertionEffect(()=>{y&&g.current&&y.update(n,u)});const x=n[po],w=d.useRef(!!x&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return Cr(()=>{m.current=!0,y&&(g.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),w.current&&y.animationState&&y.animationState.animateChanges())}),d.useEffect(()=>{y&&(!w.current&&y.animationState&&y.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),w.current=!1),y.enteringChildren=void 0)}),y}function ad(t,e,n,i){const{layoutId:s,layout:o,drag:r,dragConstraints:a,layoutScroll:u,layoutRoot:l,layoutCrossfade:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:aa(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:!!r||a&&Lt(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:i,crossfade:c,layoutScroll:u,layoutRoot:l})}function aa(t){if(t)return t.options.allowProjection!==!1?t.projection:aa(t.parent)}function cn(t,{forwardMotionProps:e=!1,type:n}={},i,s){i&&Uh(i);const o=n?n==="svg":bi(t),r=o?id:nd;function a(l,c){let f;const h={...d.useContext(Ei),...l,layoutId:ld(l)},{isStatic:m}=h,y=Gh(l),v=r(l,m);if(!m&&typeof window<"u"){ud();const g=cd(h);f=g.MeasureLayout,y.visualElement=od(t,v,h,s,g.ProjectionNode,o)}return xt.jsxs(Ke.Provider,{value:y,children:[f&&y.visualElement?xt.jsx(f,{visualElement:y.visualElement,...h}):null,Qh(t,l,rd(v,y.visualElement,c),v,m,e,o)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const u=d.forwardRef(a);return u[sd]=t,u}function ld({layoutId:t}){const e=d.useContext(Zn).id;return e&&t!==void 0?e+"-"+t:t}function ud(t,e){d.useContext(ta).strict}function cd(t){const e=ea(),{drag:n,layout:i}=e;if(!n&&!i)return{};const s={...n,...i};return{MeasureLayout:n?.isEnabled(t)||i?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function fd(t,e){if(typeof Proxy>"u")return cn;const n=new Map,i=(o,r)=>cn(o,r,t,e),s=(o,r)=>i(o,r);return new Proxy(s,{get:(o,r)=>r==="create"?i:(n.has(r)||n.set(r,cn(r,void 0,t,e)),n.get(r))})}const hd=(t,e)=>e.isSVG??bi(t)?new Hf(e):new Bf(e,{allowProjection:t!==d.Fragment});class dd extends Et{constructor(e){super(e),e.animationState||(e.animationState=Xf(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();We(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let pd=0;class md extends Et{constructor(){super(...arguments),this.id=pd++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;if(e&&i===!1){if(this.isExitComplete){const{initial:o,custom:r}=this.node.getProps();if(typeof o=="string"){const a=Vt(this.node,o,r);if(a){const{transition:u,transitionEnd:l,...c}=a;for(const f in c)this.node.getValue(f)?.jump(c[f])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const s=this.node.animationState.setActive("exit",!e);n&&!e&&s.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const gd={animation:{Feature:dd},exit:{Feature:md}};function fe(t){return{point:{x:t.pageX,y:t.pageY}}}const yd=t=>e=>xi(e)&&t(e,fe(e));function te(t,e,n,i){return re(t,e,yd(n),i)}const la=({current:t})=>t?t.ownerDocument.defaultView:null,Gs=(t,e)=>Math.abs(t-e);function vd(t,e){const n=Gs(t.x,e.x),i=Gs(t.y,e.y);return Math.sqrt(n**2+i**2)}const Ys=new Set(["auto","scroll"]);class ua{constructor(e,n,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:o=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=m=>{this.handleScroll(m.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ge(this.lastRawMoveEventInfo,this.transformPagePoint));const m=fn(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,v=vd(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!v)return;const{point:g}=m,{timestamp:x}=X;this.history.push({...g,timestamp:x});const{onStart:w,onMove:T}=this.handlers;y||(w&&w(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,m)},this.handlePointerMove=(m,y)=>{this.lastMoveEvent=m,this.lastRawMoveEventInfo=y,this.lastMoveEventInfo=ge(y,this.transformPagePoint),_.update(this.updatePoint,!0)},this.handlePointerUp=(m,y)=>{this.end();const{onEnd:v,onSessionEnd:g,resumeAnimation:x}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=fn(m.type==="pointercancel"?this.lastMoveEventInfo:ge(y,this.transformPagePoint),this.history);this.startEvent&&v&&v(m,w),g&&g(m,w)},!xi(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=s||window;const u=fe(e),l=ge(u,this.transformPagePoint),{point:c}=l,{timestamp:f}=X;this.history=[{...c,timestamp:f}];const{onSessionStart:h}=n;h&&h(e,fn(l,this.history)),this.removeListeners=le(te(this.contextWindow,"pointermove",this.handlePointerMove),te(this.contextWindow,"pointerup",this.handlePointerUp),te(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const i=getComputedStyle(n);(Ys.has(i.overflowX)||Ys.has(i.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const i=e===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},o={x:s.x-n.x,y:s.y-n.y};o.x===0&&o.y===0||(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(e,s),_.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Rt(this.updatePoint)}}function ge(t,e){return e?{point:e(t.point)}:t}function Xs(t,e){return{x:t.x-e.x,y:t.y-e.y}}function fn({point:t},e){return{point:t,delta:Xs(t,ca(e)),offset:Xs(t,xd(e)),velocity:Td(e,.1)}}function xd(t){return t[0]}function ca(t){return t[t.length-1]}function Td(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=ca(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>it(e)));)n--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&s.timestamp-i.timestamp>it(e)*2&&(i=t[1]);const o=rt(s.timestamp-i.timestamp);if(o===0)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 wd(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?N(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?N(n,t,i.max):Math.min(t,n)),t}function qs(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Sd(t,{top:e,left:n,bottom:i,right:s}){return{x:qs(t.x,n,s),y:qs(t.y,e,i)}}function Zs(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}}function Pd(t,e){return{x:Zs(t.x,e.x),y:Zs(t.y,e.y)}}function Rd(t,e){let n=.5;const i=et(t),s=et(e);return s>i?n=ne(e.min,e.max-i,t.min):i>s&&(n=ne(t.min,t.max-s,e.min)),yt(0,1,n)}function Ed(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Nn=.35;function Cd(t=Nn){return t===!1?t=0:t===!0&&(t=Nn),{x:Js(t,"left","right"),y:Js(t,"top","bottom")}}function Js(t,e,n){return{min:Qs(t,e),max:Qs(t,n)}}function Qs(t,e){return typeof t=="number"?t:t[e]||0}const bd=new WeakMap;class Ad{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=z(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:i}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const o=f=>{n&&this.snapToCursor(fe(f).point),this.stopAnimation()},r=(f,h)=>{const{drag:m,dragPropagation:y,onDragStart:v}=this.getProps();if(m&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=nf(m),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),mt(x=>{let w=this.getAxisMotionValue(x).get()||0;if(gt.test(w)){const{projection:T}=this.visualElement;if(T&&T.layout){const P=T.layout.layoutBox[x];P&&(w=et(P)*(parseFloat(w)/100))}}this.originPoint[x]=w}),v&&_.update(()=>v(f,h),!1,!0),Vn(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:m,dragDirectionLock:y,onDirectionLock:v,onDrag:g}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:x}=h;if(y&&this.currentDirection===null){this.currentDirection=Dd(x),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",h.point,x),this.updateAxis("y",h.point,x),this.visualElement.render(),g&&_.update(()=>g(f,h),!1,!0)},u=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{const{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new ua(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:i,contextWindow:la(this.visualElement),element:this.visualElement.current})}stop(e,n){const i=e||this.latestPointerEvent,s=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!s||!i)return;const{velocity:r}=s;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&_.postRender(()=>a(i,s))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,i){const{drag:s}=this.getProps();if(!i||!ye(e,s,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(r=wd(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;e&&Lt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=Sd(i.layoutBox,e):this.constraints=!1,this.elastic=Cd(n),s!==this.constraints&&!Lt(e)&&i&&this.constraints&&!this.hasMutatedConstraints&&mt(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Ed(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Lt(e))return!1;const i=e.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const o=Lf(i,s.root,this.visualElement.getTransformPagePoint());let r=Pd(s.layout.layoutBox,o);if(n){const a=n(Mf(r));this.hasMutatedConstraints=!!a,a&&(r=Vo(a))}return r}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:s,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),u=this.constraints||{},l=mt(c=>{if(!ye(c,n,this.currentDirection))return;let f=u&&u[c]||{};(r===!0||r===c)&&(f={min:0,max:0});const h=s?200:1e6,m=s?40:1e7,y={type:"inertia",velocity:i?e[c]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,y)});return Promise.all(l).then(a)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return Vn(this.visualElement,e),i.start(pi(e,i,0,n,this.visualElement,!1))}stopAnimation(){mt(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),s=i[n];return s||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){mt(n=>{const{drag:i}=this.getProps();if(!ye(n,i,this.currentDirection))return;const{projection:s}=this.visualElement,o=this.getAxisMotionValue(n);if(s&&s.layout){const{min:r,max:a}=s.layout.layoutBox[n],u=o.get()||0;o.set(e[n]-N(r,a,.5)+u)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!Lt(n)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};mt(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const u=a.get();s[r]=Rd({min:u,max:u},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),mt(r=>{if(!ye(r,e,null))return;const a=this.getAxisMotionValue(r),{min:u,max:l}=this.constraints[r];a.set(N(u,l,s[r]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;bd.set(this.visualElement,this);const e=this.visualElement.current,n=te(e,"pointerdown",l=>{const{drag:c,dragListener:f=!0}=this.getProps(),h=l.target,m=h!==e&&uf(h);c&&f&&!m&&this.start(l)});let i;const s=()=>{const{dragConstraints:l}=this.getProps();Lt(l)&&l.current&&(this.constraints=this.resolveRefConstraints(),i||(i=Md(e,l.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,r=o.addEventListener("measure",s);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),_.read(s);const a=re(window,"resize",()=>this.scalePositionWithinConstraints()),u=o.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(mt(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=l[f].translate,h.set(h.get()+l[f].translate))}),this.visualElement.render())}));return()=>{a(),n(),r(),u&&u(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:r=Nn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function tr(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function Md(t,e,n){const i=as(t,tr(n)),s=as(e,tr(n));return()=>{i(),s()}}function ye(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Dd(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Vd extends Et{constructor(e){super(e),this.removeGroupControls=ot,this.removeListeners=ot,this.controls=new Ad(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ot}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const hn=t=>(e,n)=>{t&&_.update(()=>t(e,n),!1,!0)};class Ld extends Et{constructor(){super(...arguments),this.removePointerDownListener=ot}onPointerDown(e){this.session=new ua(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:la(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:hn(e),onStart:hn(n),onMove:hn(i),onEnd:(o,r)=>{delete this.session,s&&_.postRender(()=>s(o,r))}}}mount(){this.removePointerDownListener=te(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let dn=!1;class kd extends d.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:s}=this.props,{projection:o}=e;o&&(n.group&&n.group.add(o),i&&i.register&&s&&i.register(o),dn&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),be.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:s,isPresent:o}=this.props,{projection:r}=i;return r&&(r.isPresent=o,e.layoutDependency!==n&&r.setOptions({...r.options,layoutDependency:n}),dn=!0,s||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||_.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),vi.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:s}=e;dn=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function fa(t){const[e,n]=Qo(),i=d.useContext(Zn);return xt.jsx(kd,{...t,layoutGroup:i,switchLayoutGroup:d.useContext(oa),isPresent:e,safeToRemove:n})}const Od={pan:{Feature:Ld},drag:{Feature:Vd,ProjectionNode:Jo,MeasureLayout:fa}};function er(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,o=i[s];o&&_.postRender(()=>o(e,fe(e)))}class Id extends Et{mount(){const{current:e}=this.node;e&&(this.unmount=rf(e,(n,i)=>(er(this.node,i,"Start"),s=>er(this.node,s,"End"))))}unmount(){}}class Fd extends Et{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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(re(this.node.current,"focus",()=>this.onFocus()),re(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function nr(t,e,n){const{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),o=i[s];o&&_.postRender(()=>o(e,fe(e)))}
vendor: 1,911 bytes, line 11
11class _d extends Et{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:n,propagate:i}=this.node.props;this.unmount=ff(e,(s,o)=>(nr(this.node,o,"Start"),(r,{success:a})=>nr(this.node,r,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:i?.tap===!1})}unmount(){}}const $n=new WeakMap,pn=new WeakMap,Bd=t=>{const e=$n.get(t.target);e&&e(t)},jd=t=>{t.forEach(Bd)};function Nd({root:t,...e}){const n=t||document;pn.has(n)||pn.set(n,{});const i=pn.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(jd,{root:t,...e})),i[s]}function $d(t,e,n){const i=Nd(e);return $n.set(t,n),i.observe(t),()=>{$n.delete(t),i.unobserve(t)}}const Ud={some:0,all:1};class Wd extends Et{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:s="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:i,threshold:typeof s=="number"?s:Ud[s]},a=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,o&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),h=l?c:f;h&&h(u)};return $d(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Hd(e,n))&&this.startObserver()}unmount(){}}function Hd({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Kd={inView:{Feature:Wd},tap:{Feature:_d},focus:{Feature:Fd},hover:{Feature:Id}},zd={layout:{ProjectionNode:Jo,MeasureLayout:fa}},Gd={...gd,...Kd,...Od,...zd},rp=fd(Gd,hd);export{sp as A,tp as B,Rr as L,Jd as N,Qd as R,sr as a,ya as b,ql as c,Kn as d,ml as e,qd as f,ir as g,ep as h,Zd as i,xt as j,np as k,Xd as l,rp as m,Yd as n,d as r,dt as u};

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