"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[535],{7461:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(4090),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.316.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),s=(e,t)=>{let n=(0,r.forwardRef)((n,s)=>{let{color:a="currentColor",size:l=24,strokeWidth:u=2,absoluteStrokeWidth:c,className:d="",children:f,...p}=n;return(0,r.createElement)("svg",{ref:s,...i,width:l,height:l,stroke:a,strokeWidth:c?24*Number(u)/Number(l):u,className:["lucide","lucide-".concat(o(e)),d].join(" "),...p},[...t.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(f)?f:[f]])});return n.displayName="".concat(e),n}},1774:function(e,t,n){n.d(t,{F:function(){return l},f:function(){return u}});var r=n(4090);let i=["light","dark"],o="(prefers-color-scheme: dark)",s=(0,r.createContext)(void 0),a={setTheme:e=>{},themes:[]},l=()=>{var e;return null!==(e=(0,r.useContext)(s))&&void 0!==e?e:a},u=e=>(0,r.useContext)(s)?r.createElement(r.Fragment,null,e.children):r.createElement(d,e),c=["light","dark"],d=e=>{let{forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:a=!0,enableColorScheme:l=!0,storageKey:u="theme",themes:d=c,defaultTheme:g=a?"system":"light",attribute:v="data-theme",value:y,children:b,nonce:w}=e,[x,E]=(0,r.useState)(()=>p(u,g)),[S,T]=(0,r.useState)(()=>p(u)),P=y?Object.values(y):d,k=(0,r.useCallback)(e=>{let t=e;if(!t)return;"system"===e&&a&&(t=m());let r=y?y[t]:t,o=n?h():null,s=document.documentElement;if("class"===v?(s.classList.remove(...P),r&&s.classList.add(r)):r?s.setAttribute(v,r):s.removeAttribute(v),l){let e=i.includes(g)?g:null,n=i.includes(t)?t:e;s.style.colorScheme=n}null==o||o()},[]),M=(0,r.useCallback)(e=>{E(e);try{localStorage.setItem(u,e)}catch(e){}},[t]),C=(0,r.useCallback)(e=>{T(m(e)),"system"===x&&a&&!t&&k("system")},[x,t]);(0,r.useEffect)(()=>{let e=window.matchMedia(o);return e.addListener(C),C(e),()=>e.removeListener(C)},[C]),(0,r.useEffect)(()=>{let e=e=>{e.key===u&&M(e.newValue||g)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[M]),(0,r.useEffect)(()=>{k(null!=t?t:x)},[t,x]);let A=(0,r.useMemo)(()=>({theme:x,setTheme:M,forcedTheme:t,resolvedTheme:"system"===x?S:x,themes:a?[...d,"system"]:d,systemTheme:a?S:void 0}),[x,M,t,S,a,d]);return r.createElement(s.Provider,{value:A},r.createElement(f,{forcedTheme:t,disableTransitionOnChange:n,enableSystem:a,enableColorScheme:l,storageKey:u,themes:d,defaultTheme:g,attribute:v,value:y,children:b,attrs:P,nonce:w}),b)},f=(0,r.memo)(e=>{let{forcedTheme:t,storageKey:n,attribute:s,enableSystem:a,enableColorScheme:l,defaultTheme:u,value:c,attrs:d,nonce:f}=e,p="system"===u,h="class"===s?"var d=document.documentElement,c=d.classList;c.remove(".concat(d.map(e=>"'".concat(e,"'")).join(","),");"):"var d=document.documentElement,n='".concat(s,"',s='setAttribute';"),m=l?i.includes(u)&&u?"if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'".concat(u,"'"):"if(e==='light'||e==='dark')d.style.colorScheme=e":"",g=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=c?c[e]:e,o=t?e+"|| ''":"'".concat(r,"'"),a="";return l&&n&&!t&&i.includes(e)&&(a+="d.style.colorScheme = '".concat(e,"';")),"class"===s?a+=t||r?"c.add(".concat(o,")"):"null":r&&(a+="d[s](n,".concat(o,")")),a},v=t?"!function(){".concat(h).concat(g(t),"}()"):a?"!function(){try{".concat(h,"var e=localStorage.getItem('").concat(n,"');if('system'===e||(!e&&").concat(p,")){var t='").concat(o,"',m=window.matchMedia(t);if(m.media!==t||m.matches){").concat(g("dark"),"}else{").concat(g("light"),"}}else if(e){").concat(c?"var x=".concat(JSON.stringify(c),";"):"").concat(g(c?"x[e]":"e",!0),"}").concat(p?"":"else{"+g(u,!1,!1)+"}").concat(m,"}catch(e){}}()"):"!function(){try{".concat(h,"var e=localStorage.getItem('").concat(n,"');if(e){").concat(c?"var x=".concat(JSON.stringify(c),";"):"").concat(g(c?"x[e]":"e",!0),"}else{").concat(g(u,!1,!1),";}").concat(m,"}catch(t){}}();");return r.createElement("script",{nonce:f,dangerouslySetInnerHTML:{__html:v}})},()=>!0),p=(e,t)=>{let n;try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t},h=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},m=e=>(e||(e=window.matchMedia(o)),e.matches?"dark":"light")},2956:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}}),n(2139);let r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6406:function(e,t,n){function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(2139),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5250:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return w}});let r=n(6921),i=n(3827),o=r._(n(4090)),s=n(4542),a=n(7434),l=n(1030),u=n(6874),c=n(2956),d=n(6993),f=n(8599),p=n(5291),h=n(6406),m=n(5786),g=n(1414),v=new Set;function y(e,t,n,r,i,o){if(o||(0,a.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let i=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(v.has(i))return;v.add(i)}Promise.resolve(o?e.prefetch(t,i):e.prefetch(t,n,r)).catch(e=>{})}}function b(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let w=o.default.forwardRef(function(e,t){let n,r;let{href:l,as:v,children:w,prefetch:x=null,passHref:E,replace:S,shallow:T,scroll:P,locale:k,onClick:M,onMouseEnter:C,onTouchStart:A,legacyBehavior:R=!1,...K}=e;n=w,R&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let O=o.default.useContext(d.RouterContext),N=o.default.useContext(f.AppRouterContext),L=null!=O?O:N,I=!O,j=!1!==x,V=null===x?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:F,as:_}=o.default.useMemo(()=>{if(!O){let e=b(l);return{href:e,as:v?b(v):e}}let[e,t]=(0,s.resolveHref)(O,l,!0);return{href:e,as:v?(0,s.resolveHref)(O,v):t||e}},[O,l,v]),D=o.default.useRef(F),W=o.default.useRef(_);R&&(r=o.default.Children.only(n));let z=R?r&&"object"==typeof r&&r.ref:t,[U,B,H]=(0,p.useIntersection)({rootMargin:"200px"}),G=o.default.useCallback(e=>{(W.current!==_||D.current!==F)&&(H(),W.current=_,D.current=F),U(e),z&&("function"==typeof z?z(e):"object"==typeof z&&(z.current=e))},[_,z,F,H,U]);o.default.useEffect(()=>{L&&B&&j&&y(L,F,_,{locale:k},{kind:V},I)},[_,F,B,k,j,null==O?void 0:O.locale,L,I,V]);let q={ref:G,onClick(e){R||"function"!=typeof M||M(e),R&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),L&&!e.defaultPrevented&&function(e,t,n,r,i,s,l,u,c){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==l||l;"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:s,locale:u,scroll:e}):t[i?"replace":"push"](r||n,{scroll:e})};c?o.default.startTransition(f):f()}(e,L,F,_,S,T,P,k,I)},onMouseEnter(e){R||"function"!=typeof C||C(e),R&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),L&&(j||!I)&&y(L,F,_,{locale:k,priority:!0,bypassPrefetchedCheck:!0},{kind:V},I)},onTouchStart(e){R||"function"!=typeof A||A(e),R&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),L&&(j||!I)&&y(L,F,_,{locale:k,priority:!0,bypassPrefetchedCheck:!0},{kind:V},I)}};if((0,u.isAbsoluteUrl)(_))q.href=_;else if(!R||E||"a"===r.type&&!("href"in r.props)){let e=void 0!==k?k:null==O?void 0:O.locale,t=(null==O?void 0:O.isLocaleDomain)&&(0,h.getDomainLocale)(_,e,null==O?void 0:O.locales,null==O?void 0:O.domainLocales);q.href=t||(0,m.addBasePath)((0,c.addLocale)(_,e,null==O?void 0:O.defaultLocale))}return R?o.default.cloneElement(r,q):(0,i.jsx)("a",{...K,...q,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2185:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return r}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4542:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});let r=n(5770),i=n(1030),o=n(4544),s=n(6874),a=n(2139),l=n(7434),u=n(2360),c=n(6735);function d(e,t,n){let d;let f="string"==typeof t?t:(0,i.formatWithValidation)(t),p=f.match(/^[a-zA-Z]{1,}:\/\//),h=p?f.slice(p[0].length):f;if((h.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+f+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,s.normalizeRepeatedSlashes)(h);f=(p?p[0]:"")+t}if(!(0,l.isLocalURL)(f))return n?[f]:f;try{d=new URL(f.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){d=new URL("/","http://n")}try{let e=new URL(f,d);e.pathname=(0,a.normalizePathTrailingSlash)(e.pathname);let t="";if((0,u.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:s,params:a}=(0,c.interpolateAs)(e.pathname,e.pathname,n);s&&(t=(0,i.formatWithValidation)({pathname:s,hash:e.hash,query:(0,o.omit)(n,a)}))}let s=e.origin===d.origin?e.href.slice(e.origin.length):e.href;return n?[s,t||s]:s}catch(e){return n?[f]:f}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5291:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(4090),i=n(2185),o="function"==typeof IntersectionObserver,s=new Map,a=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,u=l||!o,[c,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{f.current=e},[]);return(0,r.useEffect)(()=>{if(o){if(u||c)return;let e=f.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:i,elements:o}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=a.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=s.get(r)))return t;let i=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},a.push(n),s.set(n,t),t}(n);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),s.delete(r);let e=a.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&a.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,c,f.current]),[p,c,(0,r.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2202:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return i}});let n=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function i(e){return n.test(e)?e.replace(r,"\\$&"):e}},6993:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});let r=n(6921)._(n(4090)).default.createContext(null)},1030:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return o},urlObjectKeys:function(){return s},formatWithValidation:function(){return a}});let r=n(1884)._(n(5770)),i=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:n}=e,o=e.protocol||"",s=e.pathname||"",a=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:n&&(u=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(r.urlQueryToSearchParams(l)));let c=e.search||l&&"?"+l||"";return o&&!o.endsWith(":")&&(o+=":"),e.slashes||(!o||i.test(o))&&!1!==u?(u="//"+(u||""),s&&"/"!==s[0]&&(s="/"+s)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),c&&"?"!==c[0]&&(c="?"+c),""+o+u+(s=s.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+a}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function a(e){return o(e)}},2360:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return i.isDynamicRoute}});let r=n(7409),i=n(1305)},6735:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return o}});let r=n(2395),i=n(9935);function o(e,t,n){let o="",s=(0,i.getRouteRegex)(e),a=s.groups,l=(t!==e?(0,r.getRouteMatcher)(s)(t):"")||n;o=e;let u=Object.keys(a);return u.every(e=>{let t=l[e]||"",{repeat:n,optional:r}=a[e],i="["+(n?"...":"")+e+"]";return r&&(i=(t?"":"/")+"["+i+"]"),n&&!Array.isArray(t)&&(t=[t]),(r||e in l)&&(o=o.replace(i,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(o=""),{params:u,result:o}}},1305:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return o}});let r=n(4749),i=/\/\[[^/]+?\](?=\/|$)/;function o(e){return(0,r.isInterceptionRouteAppPath)(e)&&(e=(0,r.extractInterceptionRouteInformation)(e).interceptedRoute),i.test(e)}},7434:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return o}});let r=n(6874),i=n(7379);function o(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,i.hasBasePath)(n.pathname)}catch(e){return!1}}},4544:function(e,t){function n(e,t){let n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return n}})},5770:function(e,t){function n(e){let t={};return e.forEach((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]}),t}function r(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,i]=e;Array.isArray(i)?i.forEach(e=>t.append(n,r(e))):t.set(n,r(i))}),t}function o(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.forEach(t=>{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,n)=>e.append(n,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return i},assign:function(){return o}})},2395:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return i}});let r=n(6874);function i(e){let{re:t,groups:n}=e;return e=>{let i=t.exec(e);if(!i)return!1;let o=e=>{try{return decodeURIComponent(e)}catch(e){throw new r.DecodeError("failed to decode param")}},s={};return Object.keys(n).forEach(e=>{let t=n[e],r=i[t.pos];void 0!==r&&(s[e]=~r.indexOf("/")?r.split("/").map(e=>o(e)):t.repeat?[o(r)]:o(r))}),s}}},9935:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getRouteRegex:function(){return l},getNamedRouteRegex:function(){return d},getNamedMiddlewareRegex:function(){return f}});let r=n(4749),i=n(2202),o=n(5868);function s(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function a(e){let t=(0,o.removeTrailingSlash)(e).slice(1).split("/"),n={},a=1;return{parameterizedRoute:t.map(e=>{let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),o=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&o){let{key:e,optional:r,repeat:l}=s(o[1]);return n[e]={pos:a++,repeat:l,optional:r},"/"+(0,i.escapeStringRegexp)(t)+"([^/]+?)"}if(!o)return"/"+(0,i.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:r}=s(o[1]);return n[e]={pos:a++,repeat:t,optional:r},t?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function l(e){let{parameterizedRoute:t,groups:n}=a(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:n}}function u(e){let{interceptionMarker:t,getSafeRouteKey:n,segment:r,routeKeys:o,keyPrefix:a}=e,{key:l,optional:u,repeat:c}=s(r),d=l.replace(/\W/g,"");a&&(d=""+a+d);let f=!1;(0===d.length||d.length>30)&&(f=!0),isNaN(parseInt(d.slice(0,1)))||(f=!0),f&&(d=n()),a?o[d]=""+a+l:o[d]=l;let p=t?(0,i.escapeStringRegexp)(t):"";return c?u?"(?:/"+p+"(?<"+d+">.+?))?":"/"+p+"(?<"+d+">.+?)":"/"+p+"(?<"+d+">[^/]+?)"}function c(e,t){let n;let s=(0,o.removeTrailingSlash)(e).slice(1).split("/"),a=(n=0,()=>{let e="",t=++n;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),l={};return{namedParameterizedRoute:s.map(e=>{let n=r.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),o=e.match(/\[((?:\[.*\])|.+)\]/);if(n&&o){let[n]=e.split(o[0]);return u({getSafeRouteKey:a,interceptionMarker:n,segment:o[1],routeKeys:l,keyPrefix:t?"nxtI":void 0})}return o?u({getSafeRouteKey:a,segment:o[1],routeKeys:l,keyPrefix:t?"nxtP":void 0}):"/"+(0,i.escapeStringRegexp)(e)}).join(""),routeKeys:l}}function d(e,t){let n=c(e,t);return{...l(e),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function f(e,t){let{parameterizedRoute:n}=a(e),{catchAll:r=!0}=t;if("/"===n)return{namedRegex:"^/"+(r?".*":"")+"$"};let{namedParameterizedRoute:i}=c(e,!1);return{namedRegex:"^"+i+(r?"(?:(/.*)?)":"")+"$"}}},7409:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let n=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let i=e[0];if(i.startsWith("[")&&i.endsWith("]")){let n=i.slice(1,-1),s=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),s=!0),n.startsWith("...")&&(n=n.substring(3),r=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function o(e,n){if(null!==e&&e!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"').");t.forEach(e=>{if(e===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===i.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),t.push(n)}if(r){if(s){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');o(this.optionalRestSlugName,n),this.optionalRestSlugName=n,i="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');o(this.restSlugName,n),this.restSlugName=n,i="[...]"}}else{if(s)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');o(this.slugName,n),this.slugName=n,i="[]"}}this.children.has(i)||this.children.set(i,new n),this.children.get(i)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){let t=new n;return e.forEach(e=>t.insert(e)),t.smoosh()}},6874:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{WEB_VITALS:function(){return n},execOnce:function(){return r},isAbsoluteUrl:function(){return o},getLocationOrigin:function(){return s},getURL:function(){return a},getDisplayName:function(){return l},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return c},loadGetInitialProps:function(){return d},SP:function(){return f},ST:function(){return p},DecodeError:function(){return h},NormalizeError:function(){return m},PageNotFoundError:function(){return g},MissingStaticPage:function(){return v},MiddlewareNotFoundError:function(){return y},stringifyError:function(){return b}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return n||(n=!0,t=e(...i)),t}}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>i.test(e);function s(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function a(){let{href:e}=window.location,t=s();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&u(n))return r;if(!r)throw Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.');return r}let f="undefined"!=typeof performance,p=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class v extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class y extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function b(e){return JSON.stringify({message:e.message,stack:e.stack})}},8440:function(e,t,n){n.d(t,{j:function(){return u}});var r=n(8263),i=(0,n(9847).tv)({base:"shrink-0 bg-divider border-none",variants:{orientation:{horizontal:"w-full h-divider",vertical:"h-full w-divider"}},defaultVariants:{orientation:"horizontal"}}),o=n(4090),s=n(4449),a=n(3827),l=(0,s.Gp)((e,t)=>{let{Component:n,getDividerProps:s}=function(e){var t;let n,s;let{as:a,className:l,orientation:u,...c}=e,d=a||"hr";"hr"===d&&"vertical"===u&&(d="div");let{separatorProps:f}=(t={elementType:"string"==typeof d?d:"hr",orientation:u},s=(0,r.z)(t,{enabled:"string"==typeof t.elementType}),("vertical"===t.orientation&&(n="vertical"),"hr"!==t.elementType)?{separatorProps:{...s,role:"separator","aria-orientation":n}}:{separatorProps:s}),p=(0,o.useMemo)(()=>i({orientation:u,className:l}),[u,l]);return{Component:d,getDividerProps:(0,o.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{className:p,role:"separator","data-orientation":u,...f,...c,...e}},[p,u,f,c])}}({...e});return(0,a.jsx)(n,{ref:t,...s()})});l.displayName="NextUI.Divider";var u=l},8829:function(e,t,n){n.d(t,{y7:function(){return i}});var r={ease:[.36,.66,.4,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1]};r.easeOut,r.easeIn;var i={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.2}},exit:{transform:"scale(0.85)",opacity:0,transition:{type:"easeOut",duration:.15}}},scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},scale:{enter:{scale:1},exit:{scale:.95}},scaleFadeIn:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.25,ease:r.easeIn}},exit:{transform:"scale(0.95)",opacity:0,transition:{duration:.2,ease:r.easeOut}}},scaleInOut:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.4,ease:r.ease}},exit:{transform:"scale(1.03)",opacity:0,transition:{duration:.3,ease:r.ease}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:r.ease}},exit:{opacity:0,transition:{duration:.3,ease:r.ease}}},collapse:{enter:{opacity:1,height:"auto",transition:{height:{type:"spring",bounce:0,duration:.3},opacity:{easings:"ease",duration:.4}}},exit:{opacity:0,height:0,transition:{easings:"ease",duration:.3}}}}},8263:function(e,t,n){n.d(t,{z:function(){return l}});var r=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","enterKeyHint","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),i=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),o=/^(data-.*)$/,s=/^(aria-.*)$/,a=/^(on[A-Z].*)$/;function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{labelable:n=!0,enabled:l=!0,propNames:u,omitPropNames:c,omitEventNames:d,omitDataProps:f,omitEventProps:p}=t,h={};if(!l)return e;for(let t in e)!((null==c?void 0:c.has(t))||(null==d?void 0:d.has(t))&&a.test(t)||a.test(t)&&!i.has(t)||f&&o.test(t)||p&&a.test(t))&&(Object.prototype.hasOwnProperty.call(e,t)&&(r.has(t)||n&&s.test(t)||(null==u?void 0:u.has(t))||o.test(t))||a.test(t))&&(h[t]=e[t]);return h}},2901:function(e,t,n){n.d(t,{k:function(){return i}});var r=n(4090);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:i}=e,o=r.createContext(void 0);return o.displayName=i,[o.Provider,function e(){var i;let s=r.useContext(o);if(!s&&t){let t=Error(n);throw t.name="ContextError",null==(i=Error.captureStackTrace)||i.call(Error,t,e),t}return s},o]}},2874:function(e,t,n){n.d(t,{gy:function(){return i}});var r=n(4090);function i(e){let t=(0,r.useRef)(null);return(0,r.useImperativeHandle)(e,()=>t.current),t}window.document&&window.document.createElement},5142:function(e,t,n){n.d(t,{W:function(){return r}});function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r,i,o=0,s="";o<t.length;)(r=t[o++])&&(i=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r);else for(n in t)t[n]&&(i&&(i+=" "),i+=n)}return i}(r))&&(s&&(s+=" "),s+=i);return s}},4808:function(e,t,n){function r(e){return"function"==typeof e}n.d(t,{PB:function(){return i},mf:function(){return r}});var i=e=>e?"true":void 0},5032:function(e,t,n){function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.some(t=>(null==t||t(e),null==e?void 0:e.defaultPrevented))}}function i(e){return"".concat(e,"-").concat(Math.floor(1e6*Math.random()))}function o(e){for(let t in e)t.startsWith("on")&&delete e[t];return e}function s(e){if(!e||"object"!=typeof e)return"";try{return JSON.stringify(e)}catch(e){return""}}n.d(t,{Os:function(){return o},QI:function(){return i},Xx:function(){return s},v0:function(){return r}})},4449:function(e,t,n){n.d(t,{Gp:function(){return i},oe:function(){return o}});var r=n(4090);function i(e){return(0,r.forwardRef)(e)}var o=function(e,t){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!t)return[e,{}];let r=t.reduce((t,n)=>n in e?{...t,[n]:e[n]}:t,{});return n?[Object.keys(e).filter(e=>!t.includes(e)).reduce((t,n)=>({...t,[n]:e[n]}),{}),r]:[e,r]}},2255:function(e,t,n){n.d(t,{w:function(){return i}});var[r,i]=(0,n(2901).k)({name:"ProviderContext",strict:!1})},9847:function(e,t,n){n.d(t,{tv:function(){return en}});var r=["small","medium","large"],i={theme:{opacity:["disabled"],spacing:["divider"],borderWidth:r,borderRadius:r},classGroups:{shadow:[{shadow:r}],"font-size":[{text:["tiny",...r]}],"bg-image":["bg-stripe-gradient"]}},o=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,s=e=>!e||"object"!=typeof e||0===Object.keys(e).length,a=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function l(e){let t=[];return function e(t,n){t.forEach(function(t){Array.isArray(t)?e(t,n):n.push(t)})}(e,t),t}var u=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return l(t).filter(Boolean)},c=(e,t)=>{let n={},r=Object.keys(e),i=Object.keys(t);for(let o of r)if(i.includes(o)){let r=e[o],i=t[o];"object"==typeof r&&"object"==typeof i?n[o]=c(r,i):Array.isArray(r)||Array.isArray(i)?n[o]=u(i,r):n[o]=i+" "+r}else n[o]=e[o];for(let e of i)r.includes(e)||(n[e]=t[e]);return n},d=e=>e&&"string"==typeof e?e.replace(/\s+/g," ").trim():e,f=/^\[(.+)\]$/;function p(e,t){var n=e;return t.split("-").forEach(function(e){n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n}var h=/\s+/;function m(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){if("string"==typeof t)return t;for(var n,r="",i=0;i<t.length;i++)t[i]&&(n=e(t[i]))&&(r&&(r+=" "),r+=n);return r}(e))&&(r&&(r+=" "),r+=t);return r}function g(){for(var e,t,n,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];var s=function(r){var o=i[0];return t=(e=function(e){var t,n,r,i,o,s,a,l,u,c,d;return{cache:function(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function i(i,o){n.set(i,o),++t>e&&(t=0,r=n,n=new Map)}return{get:function(e){var t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(i(e,t),t):void 0},set:function(e,t){n.has(e)?n.set(e,t):i(e,t)}}}(e.cacheSize),splitModifiers:(n=1===(t=e.separator||":").length,r=t[0],i=t.length,function(e){for(var o,s=[],a=0,l=0,u=0;u<e.length;u++){var c=e[u];if(0===a){if(c===r&&(n||e.slice(u,u+i)===t)){s.push(e.slice(l,u)),l=u+i;continue}if("/"===c){o=u;continue}}"["===c?a++:"]"===c&&a--}var d=0===s.length?e:e.substring(l),f=d.startsWith("!"),p=f?d.substring(1):d;return{modifiers:s,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:o&&o>l?o-l:void 0}}),...(l=e.theme,u=e.prefix,c={nextPart:new Map,validators:[]},(d=Object.entries(e.classGroups),u?d.map(function(e){return[e[0],e[1].map(function(e){return"string"==typeof e?u+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(function(e){return[u+e[0],e[1]]})):e})]}):d).forEach(function(e){var t=e[0];(function e(t,n,r,i){t.forEach(function(t){if("string"==typeof t){(""===t?n:p(n,t)).classGroupId=r;return}if("function"==typeof t){if(t.isThemeGetter){e(t(i),n,r,i);return}n.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(function(t){var o=t[0];e(t[1],p(n,o),r,i)})})})(e[1],c,t,l)}),o=e.conflictingClassGroups,a=void 0===(s=e.conflictingClassGroupModifiers)?{}:s,{getClassGroupId:function(e){var t=e.split("-");return""===t[0]&&1!==t.length&&t.shift(),function e(t,n){if(0===t.length)return n.classGroupId;var r,i=t[0],o=n.nextPart.get(i),s=o?e(t.slice(1),o):void 0;if(s)return s;if(0!==n.validators.length){var a=t.join("-");return null===(r=n.validators.find(function(e){return(0,e.validator)(a)}))||void 0===r?void 0:r.classGroupId}}(t,c)||function(e){if(f.test(e)){var t=f.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){var n=o[e]||[];return t&&a[e]?[].concat(n,a[e]):n}})}}(i.slice(1).reduce(function(e,t){return t(e)},o()))).cache.get,n=e.cache.set,s=a,a(r)};function a(r){var i,o,s,a,l,u=t(r);if(u)return u;var c=(o=(i=e).splitModifiers,s=i.getClassGroupId,a=i.getConflictingClassGroupIds,l=new Set,r.trim().split(h).map(function(e){var t=o(e),n=t.modifiers,r=t.hasImportantModifier,i=t.baseClassName,a=t.maybePostfixModifierPosition,l=s(a?i.substring(0,a):i),u=!!a;if(!l){if(!a||!(l=s(i)))return{isTailwindClass:!1,originalClassName:e};u=!1}var c=(function(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(e){"["===e[0]?(t.push.apply(t,n.sort().concat([e])),n=[]):n.push(e)}),t.push.apply(t,n.sort()),t})(n).join(":");return{isTailwindClass:!0,modifierId:r?c+"!":c,classGroupId:l,originalClassName:e,hasPostfixModifier:u}}).reverse().filter(function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,n=e.classGroupId,r=e.hasPostfixModifier,i=t+n;return!l.has(i)&&(l.add(i),a(n,r).forEach(function(e){return l.add(t+e)}),!0)}).reverse().map(function(e){return e.originalClassName}).join(" "));return n(r,c),c}return function(){return s(m.apply(null,arguments))}}function v(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var y=/^\[(?:([a-z-]+):)?(.+)\]$/i,b=/^\d+\/\d+$/,w=new Set(["px","full","screen"]),x=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,E=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,S=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function T(e){return R(e)||w.has(e)||b.test(e)||P(e)}function P(e){return V(e,"length",F)}function k(e){return V(e,"size",_)}function M(e){return V(e,"position",_)}function C(e){return V(e,"url",D)}function A(e){return V(e,"number",R)}function R(e){return!Number.isNaN(Number(e))}function K(e){return e.endsWith("%")&&R(e.slice(0,-1))}function O(e){return W(e)||V(e,"number",W)}function N(e){return y.test(e)}function L(){return!0}function I(e){return x.test(e)}function j(e){return V(e,"",z)}function V(e,t,n){var r=y.exec(e);return!!r&&(r[1]?r[1]===t:n(r[2]))}function F(e){return E.test(e)}function _(){return!1}function D(e){return e.startsWith("url(")}function W(e){return Number.isInteger(Number(e))}function z(e){return S.test(e)}function U(){var e=v("colors"),t=v("spacing"),n=v("blur"),r=v("brightness"),i=v("borderColor"),o=v("borderRadius"),s=v("borderSpacing"),a=v("borderWidth"),l=v("contrast"),u=v("grayscale"),c=v("hueRotate"),d=v("invert"),f=v("gap"),p=v("gradientColorStops"),h=v("gradientColorStopPositions"),m=v("inset"),g=v("margin"),y=v("opacity"),b=v("padding"),w=v("saturate"),x=v("scale"),E=v("sepia"),S=v("skew"),V=v("space"),F=v("translate"),_=function(){return["auto","contain","none"]},D=function(){return["auto","hidden","clip","visible","scroll"]},W=function(){return["auto",N,t]},z=function(){return[N,t]},U=function(){return["",T]},B=function(){return["auto",R,N]},H=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},G=function(){return["solid","dashed","dotted","double","none"]},q=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},Y=function(){return["start","end","center","between","around","evenly","stretch"]},X=function(){return["","0",N]},$=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},Z=function(){return[R,A]},J=function(){return[R,N]};return{cacheSize:500,theme:{colors:[L],spacing:[T],blur:["none","",I,N],brightness:Z(),borderColor:[e],borderRadius:["none","","full",I,N],borderSpacing:z(),borderWidth:U(),contrast:Z(),grayscale:X(),hueRotate:J(),invert:X(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[K,P],inset:W(),margin:W(),opacity:Z(),padding:z(),saturate:Z(),scale:Z(),sepia:X(),skew:J(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",N]}],container:["container"],columns:[{columns:[I]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(H(),[N])}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",O]}],basis:[{basis:W()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",N]}],grow:[{grow:X()}],shrink:[{shrink:X()}],order:[{order:["first","last","none",O]}],"grid-cols":[{"grid-cols":[L]}],"col-start-end":[{col:["auto",{span:["full",O]},N]}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":[L]}],"row-start-end":[{row:["auto",{span:[O]},N]}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",N]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",N]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal"].concat(Y())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(Y(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(Y(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[V]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[V]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",N,t]}],"min-w":[{"min-w":["min","max","fit",N,T]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[I]},I,N]}],h:[{h:[N,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",N,T]}],"max-h":[{"max-h":[N,t,"min","max","fit"]}],"font-size":[{text:["base",I,P]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",A]}],"font-family":[{font:[L]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",N]}],"line-clamp":[{"line-clamp":["none",R,A]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",N,T]}],"list-image":[{"list-image":["none",N]}],"list-style-type":[{list:["none","disc","decimal",N]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(G(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",T]}],"underline-offset":[{"underline-offset":["auto",N,T]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",N]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",N]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(H(),[M])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",k]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},C]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[].concat(G(),["hidden"])}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:G()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:[""].concat(G())}],"outline-offset":[{"outline-offset":[N,T]}],"outline-w":[{outline:[T]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[T]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",I,j]}],"shadow-color":[{shadow:[L]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":q()}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",I,N]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",N]}],duration:[{duration:J()}],ease:[{ease:["linear","in","out","in-out",N]}],delay:[{delay:J()}],animate:[{animate:["none","spin","ping","pulse","bounce",N]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[O,N]}],"translate-x":[{"translate-x":[F]}],"translate-y":[{"translate-y":[F]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",N]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",N]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",N]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[T,A]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var B=g(U),H=Object.prototype.hasOwnProperty,G=new Set(["string","number","boolean"]),q={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Y=e=>e||void 0,X=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Y(l(t).filter(Boolean).join(" "))},$=null,Z={},J=!1,Q=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>e.twMerge?((!$||J)&&(J=!1,$=s(Z)?B:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?g.apply(void 0,[U,e].concat(n)):g.apply(void 0,[function(){return function(e,t){for(var n in t)(function e(t,n,r){if(!H.call(t,n)||G.has(typeof r)||null===r){t[n]=r;return}if(Array.isArray(r)&&Array.isArray(t[n])){t[n]=t[n].concat(r);return}if("object"==typeof r&&"object"==typeof t[n]){if(null===t[n]){t[n]=r;return}for(var i in r)e(t[n],i,r[i])}})(e,n,t[n]);return e}(U(),e)}].concat(n))}(Z)),Y($(X(t)))):X(t)},ee=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=X(e[n],t[n]):e[n]=t[n];return e},et=(e,t)=>{let{extend:n=null,slots:r={},variants:i={},compoundVariants:l=[],compoundSlots:f=[],defaultVariants:p={}}=e,h={...q,...t},m=null!=n&&n.base?X(n.base,null==e?void 0:e.base):null==e?void 0:e.base,g=null!=n&&n.variants&&!s(n.variants)?c(i,n.variants):i,v=null!=n&&n.defaultVariants&&!s(n.defaultVariants)?{...n.defaultVariants,...p}:p;s(h.twMergeConfig)||a(h.twMergeConfig,Z)||(J=!0,Z=h.twMergeConfig);let y=s(null==n?void 0:n.slots),b=s(r)?{}:{base:X(null==e?void 0:e.base,y&&(null==n?void 0:n.base)),...r},w=y?b:ee({...null==n?void 0:n.slots},s(b)?{base:null==e?void 0:e.base}:b),x=e=>{if(s(g)&&s(r)&&y)return Q(m,null==e?void 0:e.class,null==e?void 0:e.className)(h);if(l&&!Array.isArray(l))throw TypeError('The "compoundVariants" prop must be an array. Received: '.concat(typeof l));if(f&&!Array.isArray(f))throw TypeError('The "compoundSlots" prop must be an array. Received: '.concat(typeof f));let t=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=n;if("string"==typeof t)i=i.concat(d(t).split(" ").map(t=>"".concat(e,":").concat(t)));else if(Array.isArray(t))i=i.concat(t.reduce((t,n)=>t.concat("".concat(e,":").concat(n)),[]));else if("object"==typeof t&&"string"==typeof r){for(let n in t)if(t.hasOwnProperty(n)&&n===r){let o=t[n];if(o&&"string"==typeof o){let t=d(o);i[r]?i[r]=i[r].concat(t.split(" ").map(t=>"".concat(e,":").concat(t))):i[r]=t.split(" ").map(t=>"".concat(e,":").concat(t))}else Array.isArray(o)&&o.length>0&&(i[r]=o.reduce((t,n)=>t.concat("".concat(e,":").concat(n)),[]))}}return i},i=function(n){var r;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,u=i[n];if(!u||s(u))return null;let c=null!=(r=null==l?void 0:l[n])?r:null==e?void 0:e[n];if(null===c)return null;let d=o(c),f=Array.isArray(h.responsiveVariants)&&h.responsiveVariants.length>0||!0===h.responsiveVariants,p=null==v?void 0:v[n],m=[];if("object"==typeof d&&f)for(let[e,n]of Object.entries(d)){let r=u[n];if("initial"===e){p=n;continue}Array.isArray(h.responsiveVariants)&&!h.responsiveVariants.includes(e)||(m=t(e,r,m,a))}let y=u[d]||u[o(p)];return"object"==typeof m&&"string"==typeof a&&m[a]?ee(m,y):m.length>0?(m.push(y),m):y},a=(e,t)=>{if(!g||"object"!=typeof g)return null;let n=[];for(let r in g){let o=i(r,g,e,t),s="base"===e&&"string"==typeof o?o:o&&o[e];s&&(n[n.length]=s)}return n},c={};for(let t in e)void 0!==e[t]&&(c[t]=e[t]);let p=(t,n)=>{var r;let i="object"==typeof(null==e?void 0:e[t])?{[t]:null==(r=e[t])?void 0:r.initial}:{};return{...v,...c,...i,...n}},b=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=[];for(let{class:r,className:i,...o}of e){let e=!0;for(let[n,r]of Object.entries(o)){let i=p(n,t);if(Array.isArray(r)){if(!r.includes(i[n])){e=!1;break}}else if(i[n]!==r){e=!1;break}}e&&(r&&n.push(r),i&&n.push(i))}return n},x=e=>{let t=b(l,e);return u(b(null==n?void 0:n.compoundVariants,e),t)},E=e=>{let t=x(e);if(!Array.isArray(t))return t;let n={};for(let e of t)if("string"==typeof e&&(n.base=Q(n.base,e)(h)),"object"==typeof e)for(let[t,r]of Object.entries(e))n[t]=Q(n[t],r)(h);return n},S=e=>{if(f.length<1)return null;let t={};for(let{slots:n=[],class:r,className:i,...o}of f){if(!s(o)){let t=!0;for(let n of Object.keys(o)){let r=p(n,e)[n];if(void 0===r||(Array.isArray(o[n])?!o[n].includes(r):o[n]!==r)){t=!1;break}}if(!t)continue}for(let e of n)t[e]=t[e]||[],t[e].push([r,i])}return t};if(!s(r)||!y){let e={};if("object"==typeof w&&!s(w))for(let t of Object.keys(w))e[t]=e=>{var n,r;return Q(w[t],a(t,e),(null!=(n=E(e))?n:[])[t],(null!=(r=S(e))?r:[])[t],null==e?void 0:e.class,null==e?void 0:e.className)(h)};return e}return Q(m,g?Object.keys(g).map(e=>i(e,g)):null,x(),null==e?void 0:e.class,null==e?void 0:e.className)(h)};return x.variantKeys=(()=>{if(!(!g||"object"!=typeof g))return Object.keys(g)})(),x.extend=n,x.base=m,x.slots=w,x.variants=g,x.defaultVariants=v,x.compoundSlots=f,x.compoundVariants=l,x},en=(e,t)=>{var n,r,o;return et(e,{...t,twMerge:null==(n=null==t?void 0:t.twMerge)||n,twMergeConfig:{...null==t?void 0:t.twMergeConfig,theme:{...null==(r=null==t?void 0:t.twMergeConfig)?void 0:r.theme,...i.theme},classGroups:{...null==(o=null==t?void 0:t.twMergeConfig)?void 0:o.classGroups,...i.classGroups}}})}},1244:function(e,t,n){n.d(t,{Dh:function(){return r},Zs:function(){return o},z6:function(){return i}});var r=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],i=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],o={default:["[&+.border-medium.border-default]:ms-[calc(theme(borderWidth.medium)*-1)]"],primary:["[&+.border-medium.border-primary]:ms-[calc(theme(borderWidth.medium)*-1)]"],secondary:["[&+.border-medium.border-secondary]:ms-[calc(theme(borderWidth.medium)*-1)]"],success:["[&+.border-medium.border-success]:ms-[calc(theme(borderWidth.medium)*-1)]"],warning:["[&+.border-medium.border-warning]:ms-[calc(theme(borderWidth.medium)*-1)]"],danger:["[&+.border-medium.border-danger]:ms-[calc(theme(borderWidth.medium)*-1)]"]}},4992:function(e,t,n){n.d(t,{MT:function(){return c},QL:function(){return T},cW:function(){return y}});var r=n(9902),i=n(9350),o=n(4581),s=n(4090);let a=s.createContext(null),l="react-aria-focus-scope-restore",u=null;function c(e){let t,n,{children:r,contain:c,restoreFocus:d,autoFocus:f}=e,p=(0,s.useRef)(null),y=(0,s.useRef)(null),P=(0,s.useRef)([]),{parentNode:C}=(0,s.useContext)(a)||{},A=(0,s.useMemo)(()=>new k({scopeRef:P}),[P]);(0,o.b)(()=>{let e=C||M.root;if(M.getTreeNode(e.scopeRef)&&u&&!b(u,e.scopeRef)){let t=M.getTreeNode(u);t&&(e=t)}e.addChild(A),M.addNode(A)},[A,C]),(0,o.b)(()=>{let e=M.getTreeNode(P);e&&(e.contain=!!c)},[c]),(0,o.b)(()=>{var e;let t=null===(e=p.current)||void 0===e?void 0:e.nextSibling,n=[],r=e=>e.stopPropagation();for(;t&&t!==y.current;)n.push(t),t.addEventListener(l,r),t=t.nextSibling;return P.current=n,()=>{for(let e of n)e.removeEventListener(l,r)}},[r]),(0,o.b)(()=>{if(d||c)return;let e=P.current,t=(0,i.r)(e?e[0]:void 0),n=e=>{let t=e.target;g(t,P.current)?u=P:v(t)||(u=null)};return t.addEventListener("focusin",n,!1),null==e||e.forEach(e=>e.addEventListener("focusin",n,!1)),()=>{t.removeEventListener("focusin",n,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",n,!1))}},[P,d,c]),t=(0,s.useRef)(void 0),n=(0,s.useRef)(void 0),(0,o.b)(()=>{let e=P.current;if(!c){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}let r=(0,i.r)(e?e[0]:void 0),o=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!m(P)||e.isComposing)return;let t=r.activeElement,n=P.current;if(!n||!g(t,n))return;let i=T(h(n),{tabbable:!0},n);if(!t)return;i.currentNode=t;let o=e.shiftKey?i.previousNode():i.nextNode();o||(i.currentNode=e.shiftKey?n[n.length-1].nextElementSibling:n[0].previousElementSibling,o=e.shiftKey?i.previousNode():i.nextNode()),e.preventDefault(),o&&w(o,!0)},s=e=>{(!u||b(u,P))&&g(e.target,P.current)?(u=P,t.current=e.target):m(P)&&!v(e.target,P)?t.current?t.current.focus():u&&u.current&&E(u.current):m(P)&&(t.current=e.target)},a=e=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{if(r.activeElement&&m(P)&&!v(r.activeElement,P)){if(u=P,r.body.contains(e.target)){var n;t.current=e.target,null===(n=t.current)||void 0===n||n.focus()}else u.current&&E(u.current)}})};return r.addEventListener("keydown",o,!1),r.addEventListener("focusin",s,!1),null==e||e.forEach(e=>e.addEventListener("focusin",s,!1)),null==e||e.forEach(e=>e.addEventListener("focusout",a,!1)),()=>{r.removeEventListener("keydown",o,!1),r.removeEventListener("focusin",s,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",s,!1)),null==e||e.forEach(e=>e.removeEventListener("focusout",a,!1))}},[P,c]),(0,o.b)(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n]),function(e,t,n){let r=(0,s.useRef)("undefined"!=typeof document?(0,i.r)(e.current?e.current[0]:void 0).activeElement:null);(0,o.b)(()=>{let r=e.current,o=(0,i.r)(r?r[0]:void 0);if(!t||n)return;let s=()=>{(!u||b(u,e))&&g(o.activeElement,e.current)&&(u=e)};return o.addEventListener("focusin",s,!1),null==r||r.forEach(e=>e.addEventListener("focusin",s,!1)),()=>{o.removeEventListener("focusin",s,!1),null==r||r.forEach(e=>e.removeEventListener("focusin",s,!1))}},[e,n]),(0,o.b)(()=>{let r=(0,i.r)(e.current?e.current[0]:void 0);if(!t)return;let o=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!m(e)||t.isComposing)return;let n=r.activeElement;if(!g(n,e.current))return;let i=M.getTreeNode(e);if(!i)return;let o=i.nodeToRestore,s=T(r.body,{tabbable:!0});s.currentNode=n;let a=t.shiftKey?s.previousNode():s.nextNode();if(o&&r.body.contains(o)&&o!==r.body||(o=void 0,i.nodeToRestore=void 0),(!a||!g(a,e.current))&&o){s.currentNode=o;do a=t.shiftKey?s.previousNode():s.nextNode();while(g(a,e.current));(t.preventDefault(),t.stopPropagation(),a)?w(a,!0):v(o)?w(o,!0):n.blur()}};return n||r.addEventListener("keydown",o,!0),()=>{n||r.removeEventListener("keydown",o,!0)}},[e,t,n]),(0,o.b)(()=>{var n;let o=(0,i.r)(e.current?e.current[0]:void 0);if(!t)return;let s=M.getTreeNode(e);if(s)return s.nodeToRestore=null!==(n=r.current)&&void 0!==n?n:void 0,()=>{let n=M.getTreeNode(e);if(!n)return;let r=n.nodeToRestore;if(t&&r&&(g(o.activeElement,e.current)||o.activeElement===o.body&&function(e){let t=M.getTreeNode(u);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}(e))){let t=M.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&n.nodeToRestore.isConnected){S(n.nodeToRestore);return}n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&n.scopeRef.current&&M.getTreeNode(n.scopeRef)){S(x(n.scopeRef.current,!0));return}n=n.parent}}})}}},[e,t])}(P,d,c),function(e,t){let n=s.useRef(t);(0,s.useEffect)(()=>{n.current&&(u=e,!g((0,i.r)(e.current?e.current[0]:void 0).activeElement,u.current)&&e.current&&E(e.current)),n.current=!1},[e])}(P,f),(0,s.useEffect)(()=>{let e=(0,i.r)(P.current?P.current[0]:void 0).activeElement,t=null;if(g(e,P.current)){for(let n of M.traverse())n.scopeRef&&g(e,n.scopeRef.current)&&(t=n);t===M.getTreeNode(P)&&(u=t.scopeRef)}},[P]),(0,o.b)(()=>()=>{var e,t,n;let r=null!==(n=null===(t=M.getTreeNode(P))||void 0===t?void 0:null===(e=t.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null;(P===u||b(P,u))&&(!r||M.getTreeNode(r))&&(u=r),M.removeTreeNode(P)},[P]);let R=(0,s.useMemo)(()=>({focusNext(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=P.current,{from:n,tabbable:r,wrap:o,accept:s}=e,a=n||(0,i.r)(t[0]).activeElement,l=t[0].previousElementSibling,u=T(h(t),{tabbable:r,accept:s},t);u.currentNode=g(a,t)?a:l;let c=u.nextNode();return!c&&o&&(u.currentNode=l,c=u.nextNode()),c&&w(c,!0),c},focusPrevious(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=P.current,{from:n,tabbable:r,wrap:o,accept:s}=e,a=n||(0,i.r)(t[0]).activeElement,l=t[t.length-1].nextElementSibling,u=T(h(t),{tabbable:r,accept:s},t);u.currentNode=g(a,t)?a:l;let c=u.previousNode();return!c&&o&&(u.currentNode=l,c=u.previousNode()),c&&w(c,!0),c},focusFirst(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=P.current,{tabbable:n,accept:r}=e,i=T(h(t),{tabbable:n,accept:r},t);i.currentNode=t[0].previousElementSibling;let o=i.nextNode();return o&&w(o,!0),o},focusLast(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=P.current,{tabbable:n,accept:r}=e,i=T(h(t),{tabbable:n,accept:r},t);i.currentNode=t[t.length-1].nextElementSibling;let o=i.previousNode();return o&&w(o,!0),o}}),[]),K=(0,s.useMemo)(()=>({focusManager:R,parentNode:A}),[A,R]);return s.createElement(a.Provider,{value:K},s.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:p}),r,s.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:y}))}let d=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],f=d.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";d.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let p=d.join(':not([hidden]):not([tabindex="-1"]),');function h(e){return e[0].parentElement}function m(e){let t=M.getTreeNode(u);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function g(e,t){return!!e&&!!t&&t.some(t=>t.contains(e))}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of M.traverse(M.getTreeNode(t)))if(n&&g(e,n.current))return!0;return!1}function y(e){return v(e,u)}function b(e,t){var n;let r=null===(n=M.getTreeNode(t))||void 0===n?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function w(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{(0,r.e)(e)}catch(e){}}function x(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=e[0].previousElementSibling,r=h(e),i=T(r,{tabbable:t},e);i.currentNode=n;let o=i.nextNode();return t&&!o&&((i=T(r=h(e),{tabbable:!1},e)).currentNode=n,o=i.nextNode()),o}function E(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];w(x(e,t))}function S(e){e.dispatchEvent(new CustomEvent(l,{bubbles:!0,cancelable:!0}))&&w(e)}function T(e,t,n){let r=(null==t?void 0:t.tabbable)?p:f,o=(0,i.r)(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var o;return(null==t?void 0:null===(o=t.from)||void 0===o?void 0:o.contains(e))?NodeFilter.FILTER_REJECT:e.matches(r)&&function e(t,n){return"#comment"!==t.nodeName&&function(e){let t=(0,i.k)(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o="none"!==n&&"hidden"!==r&&"collapse"!==r;if(o){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:n,visibility:r}=t(e);o="none"!==n&&"hidden"!==r&&"collapse"!==r}return o}(t)&&!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==t.nodeName||!n||"SUMMARY"===n.nodeName||t.hasAttribute("open"))&&(!t.parentElement||e(t.parentElement,t))}(e)&&(!n||g(e,n))&&(!(null==t?void 0:t.accept)||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return(null==t?void 0:t.from)&&(o.currentNode=t.from),o}class P{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(null!=t?t:null);if(!r)return;let i=new k({scopeRef:e});r.addChild(i),i.parent=r,this.fastMap.set(e,i),n&&(i.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&g(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.root;if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e,t;let n=new P;for(let r of this.traverse())n.addTreeNode(r.scopeRef,null!==(t=null===(e=r.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==t?t:null,r.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new k({scopeRef:null}),this.fastMap.set(null,this.root)}}class k{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let M=new P},9902:function(e,t,n){n.d(t,{e:function(){return a}});var r=n(9350),i=n(9853),o=n(8106),s=n(8549);function a(e){let t=(0,r.r)(e);if("virtual"===(0,s.Jz)()){let n=t.activeElement;(0,i.Q)(()=>{t.activeElement===n&&e.isConnected&&(0,o.A)(e)})}else(0,o.A)(e)}},4187:function(e,t,n){n.d(t,{k:function(){return c}});var r=n(9902),i=n(4323),o=n(8734),s=n(4090),a=n(1810);function l(e){if(!e)return;let t=!0;return n=>{e({...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}}),t&&n.stopPropagation()}}let u=s.createContext(null);function c(e,t){let{focusProps:n}=(0,a.K)(e),{keyboardProps:c}={keyboardProps:e.isDisabled?{}:{onKeyDown:l(e.onKeyDown),onKeyUp:l(e.onKeyUp)}},d=(0,o.d)(n,c),f=function(e){let t=(0,s.useContext)(u)||{};(0,i.l)(t,e);let{ref:n,...r}=t;return r}(t),p=e.isDisabled?{}:f,h=(0,s.useRef)(e.autoFocus);return(0,s.useEffect)(()=>{h.current&&t.current&&(0,r.e)(t.current),h.current=!1},[t]),{focusableProps:(0,o.d)({...d,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},p)}}},1699:function(e,t,n){n.d(t,{O:function(){return r}});let r=n(4090).createContext({register:()=>{}});r.displayName="PressResponderContext"},1810:function(e,t,n){n.d(t,{K:function(){return s}});var r=n(4364),i=n(4090),o=n(9350);function s(e){let{isDisabled:t,onFocus:n,onBlur:s,onFocusChange:a}=e,l=(0,i.useCallback)(e=>{if(e.target===e.currentTarget)return s&&s(e),a&&a(!1),!0},[s,a]),u=(0,r.d)(l),c=(0,i.useCallback)(e=>{let t=(0,o.r)(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(n&&n(e),a&&a(!0),u(e))},[a,n,u]);return{focusProps:{onFocus:!t&&(n||a||s)?c:void 0,onBlur:!t&&(s||a)?l:void 0}}}},8549:function(e,t,n){n.d(t,{E:function(){return x},Jz:function(){return E},mG:function(){return T}});var r=n(5229),i=n(8669),o=n(9350),s=n(4090);let a=null,l=new Set,u=new Map,c=!1,d=!1,f={Tab:!0,Escape:!0};function p(e,t){for(let n of l)n(e,t)}function h(e){c=!0,e.metaKey||!(0,r.V5)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(a="keyboard",p("keyboard",e))}function m(e){a="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(c=!0,p("pointer",e))}function g(e){(0,i.Z)(e)&&(c=!0,a="virtual")}function v(e){e.target!==window&&e.target!==document&&(c||d||(a="virtual",p("virtual",e)),c=!1,d=!1)}function y(){c=!1,d=!0}function b(e){if(u.get((0,o.k)(e)))return;let t=(0,o.k)(e),n=(0,o.r)(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){c=!0,r.apply(this,arguments)},n.addEventListener("keydown",h,!0),n.addEventListener("keyup",h,!0),n.addEventListener("click",g,!0),t.addEventListener("focus",v,!0),t.addEventListener("blur",y,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",m,!0),n.addEventListener("pointermove",m,!0),n.addEventListener("pointerup",m,!0)):(n.addEventListener("mousedown",m,!0),n.addEventListener("mousemove",m,!0),n.addEventListener("mouseup",m,!0)),t.addEventListener("beforeunload",()=>{w(e)},{once:!0}),u.set(t,{focus:r})}let w=(e,t)=>{let n=(0,o.k)(e),r=(0,o.r)(e);t&&r.removeEventListener("DOMContentLoaded",t),u.has(n)&&(n.HTMLElement.prototype.focus=u.get(n).focus,r.removeEventListener("keydown",h,!0),r.removeEventListener("keyup",h,!0),r.removeEventListener("click",g,!0),n.removeEventListener("focus",v,!0),n.removeEventListener("blur",y,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",m,!0),r.removeEventListener("pointermove",m,!0),r.removeEventListener("pointerup",m,!0)):(r.removeEventListener("mousedown",m,!0),r.removeEventListener("mousemove",m,!0),r.removeEventListener("mouseup",m,!0)),u.delete(n))};function x(){return"pointer"!==a}function E(){return a}"undefined"!=typeof document&&function(e){let t;let n=(0,o.r)(e);"loading"!==n.readyState?b(e):(t=()=>{b(e)},n.addEventListener("DOMContentLoaded",t)),()=>w(e,t)}();let S=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function T(e,t,n){b(),(0,s.useEffect)(()=>{let t=(t,r)=>{(function(e,t,n){var r;let i=(0,o.k)(null==n?void 0:n.target).HTMLInputElement,s=(0,o.k)(null==n?void 0:n.target).HTMLTextAreaElement,a=(0,o.k)(null==n?void 0:n.target).HTMLElement,l=(0,o.k)(null==n?void 0:n.target).KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof i&&!S.has(null==n?void 0:null===(r=n.target)||void 0===r?void 0:r.type)||(null==n?void 0:n.target)instanceof s||(null==n?void 0:n.target)instanceof a&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof l&&!f[n.key])})(!!(null==n?void 0:n.isTextInput),t,r)&&e(x())};return l.add(t),()=>{l.delete(t)}},t)}},7260:function(e,t,n){n.d(t,{r:function(){return M}});var r=n(5229),i=n(9350),o=n(9853);let s="default",a="",l=new WeakMap;function u(e){if((0,r.gn)()){if("default"===s){let t=(0,i.r)(e);a=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}s="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(l.set(e,e.style.userSelect),e.style.userSelect="none")}function c(e){if((0,r.gn)())"disabled"===s&&(s="restoring",setTimeout(()=>{(0,o.Q)(()=>{if("restoring"===s){let t=(0,i.r)(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=a||""),a="",s="default"}})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&l.has(e)){let t=l.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),l.delete(e)}}var d=n(1699),f=n(2731),p=n(9258),h=n(5577),m=n(8734),g=n(4323),v=n(6434),y=n(6755),b=n(8168),w=n(4892),x=n(8669),E=n(8106),S=n(4090),T=new WeakMap;class P{continuePropagation(){(0,h._)(this,T,!1)}get shouldStopPropagation(){return(0,f._)(this,T)}constructor(e,t,n,r){var i;(0,p._)(this,T,{writable:!0,value:void 0}),(0,h._)(this,T,!0);let o=null!==(i=null==r?void 0:r.target)&&void 0!==i?i:n.currentTarget,s=null==o?void 0:o.getBoundingClientRect(),a,l=0,u,c=null;null!=n.clientX&&null!=n.clientY&&(u=n.clientX,c=n.clientY),s&&(null!=u&&null!=c?(a=u-s.left,l=c-s.top):(a=s.width/2,l=s.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=a,this.y=l}}let k=Symbol("linkClicked");function M(e){let{onPress:t,onPressChange:n,onPressStart:o,onPressEnd:s,onPressUp:a,isDisabled:l,isPressed:f,preventFocusOnPress:p,shouldCancelOnPointerExit:h,allowTextSelectionOnPress:T,ref:M,...V}=function(e){let t=(0,S.useContext)(d.O);if(t){let{register:n,...r}=t;e=(0,m.d)(r,e),n()}return(0,g.l)(t,e.ref),e}(e),[F,_]=(0,S.useState)(!1),D=(0,S.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:W,removeAllGlobalListeners:z}=(0,v.x)(),U=(0,y.i)((e,t)=>{let r=D.current;if(l||r.didFirePressStart)return!1;let i=!0;if(r.isTriggeringEvent=!0,o){let n=new P("pressstart",t,e);o(n),i=n.shouldStopPropagation}return n&&n(!0),r.isTriggeringEvent=!1,r.didFirePressStart=!0,_(!0),i}),B=(0,y.i)(function(e,r){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],o=D.current;if(!o.didFirePressStart)return!1;o.ignoreClickAfterPress=!0,o.didFirePressStart=!1,o.isTriggeringEvent=!0;let a=!0;if(s){let t=new P("pressend",r,e);s(t),a=t.shouldStopPropagation}if(n&&n(!1),_(!1),t&&i&&!l){let n=new P("press",r,e);t(n),a&&(a=n.shouldStopPropagation)}return o.isTriggeringEvent=!1,a}),H=(0,y.i)((e,t)=>{let n=D.current;if(l)return!1;if(a){n.isTriggeringEvent=!0;let r=new P("pressup",t,e);return a(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0}),G=(0,y.i)(e=>{let t=D.current;t.isPressed&&t.target&&(t.isOverTarget&&null!=t.pointerType&&B(O(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,z(),T||c(t.target))}),q=(0,y.i)(e=>{h&&G(e)}),Y=(0,S.useMemo)(()=>{let e=D.current,t={onKeyDown(t){if(A(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){var o;j(t.target,t.key)&&t.preventDefault();let s=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,s=U(t,"keyboard");let r=t.currentTarget;W((0,i.r)(t.currentTarget),"keyup",(0,b.t)(t=>{A(t,r)&&!t.repeat&&r.contains(t.target)&&e.target&&H(O(e.target,t),"keyboard")},n),!0)}s&&t.stopPropagation(),t.metaKey&&(0,r.V5)()&&(null===(o=e.metaKeyEvents)||void 0===o||o.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||t.currentTarget.contains(t.target))&&t&&0===t.button&&!e.isTriggeringEvent&&!w.nG.isOpening){let n=!0;if(l&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||(0,x.Z)(t.nativeEvent))){l||p||(0,E.A)(t.currentTarget);let e=U(t,"virtual"),r=H(t,"virtual"),i=B(t,"virtual");n=e&&r&&i}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,n&&t.stopPropagation()}}},n=t=>{var n,r,i;if(e.isPressed&&e.target&&A(t,e.target)){j(t.target,t.key)&&t.preventDefault();let n=t.target;B(O(e.target,t),"keyboard",e.target.contains(n)),z(),"Enter"!==t.key&&C(e.target)&&e.target.contains(n)&&!t[k]&&(t[k]=!0,(0,w.nG)(e.target,t,!1)),e.isPressed=!1,null===(r=e.metaKeyEvents)||void 0===r||r.delete(t.key)}else if("Meta"===t.key&&(null===(n=e.metaKeyEvents)||void 0===n?void 0:n.size)){let t=e.metaKeyEvents;for(let n of(e.metaKeyEvents=void 0,t.values()))null===(i=e.target)||void 0===i||i.dispatchEvent(new KeyboardEvent("keyup",n))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if((0,x.c)(t.nativeEvent)){e.pointerType="virtual";return}L(t.currentTarget)&&t.preventDefault(),e.pointerType=t.pointerType;let o=!0;e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,l||p||(0,E.A)(t.currentTarget),T||u(e.target),o=U(t,e.pointerType),W((0,i.r)(t.currentTarget),"pointermove",n,!1),W((0,i.r)(t.currentTarget),"pointerup",r,!1),W((0,i.r)(t.currentTarget),"pointercancel",s,!1)),o&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(L(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&N(t,t.currentTarget)&&H(t,e.pointerType||t.pointerType)};let n=t=>{t.pointerId===e.activePointerId&&(e.target&&N(t,e.target)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,U(O(e.target,t),e.pointerType)):e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,B(O(e.target,t),e.pointerType,!1),q(t)))},r=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target&&(N(t,e.target)&&null!=e.pointerType?B(O(e.target,t),e.pointerType):e.isOverTarget&&null!=e.pointerType&&B(O(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,z(),T||c(e.target),"ontouchend"in e.target&&"mouse"!==t.pointerType&&W(e.target,"touchend",o,{once:!0}))},o=e=>{I(e.target)&&e.preventDefault()},s=e=>{G(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&G(e)}}else{t.onMouseDown=t=>{if(0===t.button&&t.currentTarget.contains(t.target)){if(L(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents){t.stopPropagation();return}e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=(0,x.Z)(t.nativeEvent)?"virtual":"mouse",l||p||(0,E.A)(t.currentTarget),U(t,e.pointerType)&&t.stopPropagation(),W((0,i.r)(t.currentTarget),"mouseup",n,!1)}},t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,n=U(t,e.pointerType)),n&&t.stopPropagation()},t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,n=B(t,e.pointerType,!1),q(t)),n&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&!e.ignoreEmulatedMouseEvents&&0===t.button&&H(t,e.pointerType||"mouse")};let n=t=>{if(0===t.button){if(e.isPressed=!1,z(),e.ignoreEmulatedMouseEvents){e.ignoreEmulatedMouseEvents=!1;return}e.target&&N(t,e.target)&&null!=e.pointerType?B(O(e.target,t),e.pointerType):e.target&&e.isOverTarget&&null!=e.pointerType&&B(O(e.target,t),e.pointerType,!1),e.isOverTarget=!1}};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let n=function(e){let{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);n&&(e.activePointerId=n.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",l||p||(0,E.A)(t.currentTarget),T||u(e.target),U(K(e.target,t),e.pointerType)&&t.stopPropagation(),W((0,i.k)(t.currentTarget),"scroll",r,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed){t.stopPropagation();return}let n=R(t.nativeEvent,e.activePointerId),r=!0;n&&N(n,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,r=U(K(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,r=B(K(e.target,t),e.pointerType,!1),q(K(e.target,t))),r&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed){t.stopPropagation();return}let n=R(t.nativeEvent,e.activePointerId),r=!0;n&&N(n,t.currentTarget)&&null!=e.pointerType?(H(K(e.target,t),e.pointerType),r=B(K(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(r=B(K(e.target,t),e.pointerType,!1)),r&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!T&&c(e.target),z()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&G(K(e.target,t)))};let r=t=>{e.isPressed&&t.target.contains(e.target)&&G({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&G(e)}}return t},[W,l,p,z,T,G,q,B,U,H]);return(0,S.useEffect)(()=>()=>{var e;T||c(null!==(e=D.current.target)&&void 0!==e?e:void 0)},[T]),{isPressed:f||F,pressProps:(0,m.d)(V,Y)}}function C(e){return"A"===e.tagName&&e.hasAttribute("href")}function A(e,t){let{key:n,code:r}=e,o=t.getAttribute("role");return("Enter"===n||" "===n||"Spacebar"===n||"Space"===r)&&!(t instanceof(0,i.k)(t).HTMLInputElement&&!F(t,n)||t instanceof(0,i.k)(t).HTMLTextAreaElement||t.isContentEditable)&&!(("link"===o||!o&&C(t))&&"Enter"!==n)}function R(e,t){let n=e.changedTouches;for(let e=0;e<n.length;e++){let r=n[e];if(r.identifier===t)return r}return null}function K(e,t){let n=0,r=0;return t.targetTouches&&1===t.targetTouches.length&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function O(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function N(e,t){let n,r,i=t.getBoundingClientRect(),o=(n=0,r=0,void 0!==e.width?n=e.width/2:void 0!==e.radiusX&&(n=e.radiusX),void 0!==e.height?r=e.height/2:void 0!==e.radiusY&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+n,bottom:e.clientY+r,left:e.clientX-n});return!(i.left>o.right)&&!(o.left>i.right)&&!(i.top>o.bottom)&&!(o.top>i.bottom)}function L(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function I(e){return!(e instanceof HTMLInputElement)&&(e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!C(e))}function j(e,t){return e instanceof HTMLInputElement?!F(e,t):I(e)}let V=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function F(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:V.has(e.type)}},4364:function(e,t,n){n.d(t,{d:function(){return a}});var r=n(4090),i=n(4581),o=n(6755);class s{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function a(e){let t=(0,r.useRef)({isFocused:!1,observer:null});(0,i.b)(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let n=(0,o.i)(t=>{null==e||e(t)});return(0,r.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target;r.addEventListener("focusout",e=>{t.current.isFocused=!1,r.disabled&&n(new s("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[n])}},5031:function(e,t,n){n.d(t,{Av:function(){return p},gP:function(){return u}});var r=n(4090);let i={prefix:String(Math.round(1e10*Math.random())),current:0},o=r.createContext(i),s=r.createContext(!1),a=!!(window.document&&window.document.createElement),l=new WeakMap,u="function"==typeof r.useId?function(e){let t=r.useId(),[n]=(0,r.useState)(p()),o=n?"react-aria":"react-aria".concat(i.prefix);return e||"".concat(o,"-").concat(t)}:function(e){let t=(0,r.useContext)(o);t!==i||a||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(0,r.useContext)(o),n=(0,r.useRef)(null);if(null===n.current&&!e){var i,s;let e=null===(s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===s?void 0:null===(i=s.ReactCurrentOwner)||void 0===i?void 0:i.current;if(e){let n=l.get(e);null==n?l.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,l.delete(e))}n.current=++t.current}return n.current}(!!e),s="react-aria".concat(t.prefix);return e||"".concat(s,"-").concat(n)};function c(){return!1}function d(){return!0}function f(e){return()=>{}}function p(){return"function"==typeof r.useSyncExternalStore?r.useSyncExternalStore(f,c,d):(0,r.useContext)(s)}},8168:function(e,t,n){n.d(t,{t:function(){return r}});function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];for(let e of t)"function"==typeof e&&e(...n)}}},9350:function(e,t,n){n.d(t,{k:function(){return i},r:function(){return r}});let r=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},i=e=>e&&"window"in e&&e.window===e?e:r(e).defaultView||window},2669:function(e,t,n){n.d(t,{z:function(){return a}});let r=new Set(["id"]),i=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),o=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),s=/^(data-.*)$/;function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{labelable:n,isLink:a,propNames:l}=t,u={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r.has(t)||n&&i.has(t)||a&&o.has(t)||(null==l?void 0:l.has(t))||s.test(t))&&(u[t]=e[t]);return u}},8106:function(e,t,n){function r(e){if(function(){if(null==i){i=!1;try{document.createElement("div").focus({get preventScroll(){return i=!0,!0}})}catch(e){}}return i}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}n.d(t,{A:function(){return r}});let i=null},8669:function(e,t,n){n.d(t,{Z:function(){return i},c:function(){return o}});var r=n(5229);function i(e){return 0===e.mozInputSource&&!!e.isTrusted||((0,r.Dt)()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function o(e){return!(0,r.Dt)()&&0===e.width&&0===e.height||1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType}},8734:function(e,t,n){n.d(t,{d:function(){return s}});var r=n(8168),i=n(8849),o=n(3167);function s(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let s={...t[0]};for(let e=1;e<t.length;e++){let n=t[e];for(let e in n){let t=s[e],a=n[e];"function"==typeof t&&"function"==typeof a&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?s[e]=(0,r.t)(t,a):("className"===e||"UNSAFE_className"===e)&&"string"==typeof t&&"string"==typeof a?s[e]=(0,o.Z)(t,a):"id"===e&&t&&a?s.id=(0,i.ur)(t,a):s[e]=void 0!==a?a:t}}return s}},4892:function(e,t,n){n.d(t,{nG:function(){return l},tv:function(){return a}});var r=n(8106),i=n(5229),o=n(4090);let s=(0,o.createContext)({isNative:!0,open:function(e,t){!function(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}(e,e=>l(e,t))},useHref:e=>e});function a(){return(0,o.useContext)(s)}function l(e,t){var n,o;let s=!(arguments.length>2)||void 0===arguments[2]||arguments[2],{metaKey:a,ctrlKey:u,altKey:c,shiftKey:d}=t;(0,i.vU)()&&(null===(o=window.event)||void 0===o?void 0:null===(n=o.type)||void 0===n?void 0:n.startsWith("key"))&&"_blank"===e.target&&((0,i.V5)()?a=!0:u=!0);let f=(0,i.Pf)()&&(0,i.V5)()&&!(0,i.zc)()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:u,altKey:c,shiftKey:d}):new MouseEvent("click",{metaKey:a,ctrlKey:u,altKey:c,shiftKey:d,bubbles:!0,cancelable:!0});l.isOpening=s,(0,r.A)(e),e.dispatchEvent(f),l.isOpening=!1}l.isOpening=!1},5229:function(e,t,n){function r(e){var t;return null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent))}function i(e){var t;return null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function o(e){let t=null;return()=>(null==t&&(t=e()),t)}n.d(t,{Dt:function(){return p},Pf:function(){return d},V5:function(){return s},ad:function(){return c},gn:function(){return u},vU:function(){return h},zc:function(){return l}});let s=o(function(){return i(/^Mac/i)}),a=o(function(){return i(/^iPhone/i)}),l=o(function(){return i(/^iPad/i)||s()&&navigator.maxTouchPoints>1}),u=o(function(){return a()||l()}),c=o(function(){return s()||u()}),d=o(function(){return r(/AppleWebKit/i)&&!f()}),f=o(function(){return r(/Chrome/i)}),p=o(function(){return r(/Android/i)}),h=o(function(){return r(/Firefox/i)})},9853:function(e,t,n){n.d(t,{Q:function(){return s}});let r=new Map,i=new Set;function o(){function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let o=r.get(n.target);if(o&&(o.delete(n.propertyName),0===o.size&&(n.target.removeEventListener("transitioncancel",t),r.delete(n.target)),0===r.size)){for(let e of i)e();i.clear()}};document.body.addEventListener("transitionrun",n=>{if(!e(n)||!n.target)return;let i=r.get(n.target);i||(i=new Set,r.set(n.target,i),n.target.addEventListener("transitioncancel",t,{once:!0})),i.add(n.propertyName)}),document.body.addEventListener("transitionend",t)}function s(e){requestAnimationFrame(()=>{0===r.size?e():i.add(e)})}"undefined"!=typeof document&&("loading"!==document.readyState?o():document.addEventListener("DOMContentLoaded",o))},6755:function(e,t,n){n.d(t,{i:function(){return o}});var r=n(4581),i=n(4090);function o(e){let t=(0,i.useRef)(null);return(0,r.b)(()=>{t.current=e},[e]),(0,i.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];let i=t.current;return null==i?void 0:i(...n)},[])}},6434:function(e,t,n){n.d(t,{x:function(){return i}});var r=n(4090);function i(){let e=(0,r.useRef)(new Map),t=(0,r.useCallback)((t,n,r,i)=>{let o=(null==i?void 0:i.once)?function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];e.current.delete(r),r(...n)}:r;e.current.set(r,{type:n,eventTarget:t,fn:o,options:i}),t.addEventListener(n,r,i)},[]),n=(0,r.useCallback)((t,n,r,i)=>{var o;let s=(null===(o=e.current.get(r))||void 0===o?void 0:o.fn)||r;t.removeEventListener(n,s,i),e.current.delete(r)},[]),i=(0,r.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,r.useEffect)(()=>i,[i]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:i}}},8849:function(e,t,n){n.d(t,{ur:function(){return c},Me:function(){return u},mp:function(){return d}});var r=n(4581),i=n(6755),o=n(4090),s=n(5031);let a=!!(window.document&&window.document.createElement),l=new Map;function u(e){let[t,n]=(0,o.useState)(e),i=(0,o.useRef)(null),u=(0,s.gP)(t),c=(0,o.useCallback)(e=>{i.current=e},[]);return a&&(l.has(u)&&!l.get(u).includes(c)?l.set(u,[...l.get(u),c]):l.set(u,[c])),(0,r.b)(()=>()=>{l.delete(u)},[u]),(0,o.useEffect)(()=>{let e=i.current;e&&(i.current=null,n(e))}),u}function c(e,t){if(e===t)return e;let n=l.get(e);if(n)return n.forEach(e=>e(t)),t;let r=l.get(t);return r?(r.forEach(t=>t(e)),e):t}function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=u(),[n,s]=function(e){let[t,n]=(0,o.useState)(e),s=(0,o.useRef)(null),a=(0,i.i)(()=>{if(!s.current)return;let e=s.current.next();if(e.done){s.current=null;return}t===e.value?a():n(e.value)});(0,r.b)(()=>{s.current&&a()});let l=(0,i.i)(e=>{s.current=e(t),a()});return[t,l]}(t),a=(0,o.useCallback)(()=>{s(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,s]);return(0,r.b)(a,[t,a,...e]),n}},4581:function(e,t,n){n.d(t,{b:function(){return i}});var r=n(4090);let i="undefined"!=typeof document?r.useLayoutEffect:()=>{}},4323:function(e,t,n){n.d(t,{l:function(){return i}});var r=n(4581);function i(e,t){(0,r.b)(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}},5834:function(e,t,n){n.d(t,{Kx:function(){return u},ck:function(){return o},is:function(){return d}});var r=n(4090);function i(e){return null}i.getCollectionNode=function*(e,t){let{childItems:n,title:i,children:o}=e,s=e.title||e.children,a=e.textValue||("string"==typeof s?s:"")||e["aria-label"]||"";a||(null==t?void 0:t.suppressTextValueWarning)||console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:e,rendered:s,textValue:a,"aria-label":e["aria-label"],hasChildNodes:null!=e.hasChildItems?e.hasChildItems:!!(e.childItems||e.title&&r.Children.count(e.children)>0),*childNodes(){if(n)for(let e of n)yield{type:"item",value:e};else if(i){let e=[];r.Children.forEach(o,t=>{e.push({type:"item",element:t})}),yield*e}}}};let o=i;class s{build(e,t){return this.context=t,a(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:n}=e;if("function"==typeof t){if(!n)throw Error("props.children was a function but props.items is missing");for(let n of e.items)yield*this.getFullNode({value:n},{renderer:t})}else{let e=[];r.Children.forEach(t,t=>{e.push(t)});let n=0;for(let t of e)for(let e of this.getFullNode({element:t,index:n},{}))n++,yield e}}getKey(e,t,n,r){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return"".concat(r).concat(t.key);let i=t.value;if(null!=i){var o;let e=null!==(o=i.key)&&void 0!==o?o:i.id;if(null==e)throw Error("No key found for item");return e}return r?"".concat(r,".").concat(t.index):"$.".concat(t.index)}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,i){let o=e.element;if(!o&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context))){n.index=e.index,n.parentKey=i?i.key:null,yield n;return}o=t.renderer(e.value)}if(r.isValidElement(o)){let r=o.type;if("function"!=typeof r&&"function"!=typeof r.getCollectionNode){let e="function"==typeof o.type?o.type.name:o.type;throw Error("Unknown element <".concat(e,"> in collection."))}let s=r.getCollectionNode(o.props,this.context),a=e.index,u=s.next();for(;!u.done&&u.value;){let r=u.value;e.index=a;let c=r.key;c||(c=r.element?null:this.getKey(o,e,t,n));let d=[...this.getFullNode({...r,key:c,index:a,wrapper:function(e,t){return e&&t?n=>e(t(n)):e||t||void 0}(e.wrapper,r.wrapper)},this.getChildState(t,r),n?"".concat(n).concat(o.key):o.key,i)];for(let t of d){if(t.value=r.value||e.value,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw Error("Unsupported type <".concat(l(t.type),"> in <").concat(l(i.type),">. Only <").concat(l(e.type),"> is supported."));a++,yield t}u=s.next(d)}return}if(null==e.key)return;let s=this,u={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:e.value,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue,"aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes,childNodes:a(function*(){if(!e.hasChildNodes)return;let n=0;for(let r of e.childNodes())for(let e of(null!=r.key&&(r.key="".concat(u.key).concat(r.key)),r.index=n,s.getFullNode(r,s.getChildState(t,r),u.key,u)))n++,yield e})};yield u}constructor(){this.cache=new WeakMap}}function a(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;for(let r of(n||(n=e()),n))t.push(r),yield r}}}function l(e){return e[0].toUpperCase()+e.slice(1)}function u(e,t,n){let i=(0,r.useMemo)(()=>new s,[]),{children:o,items:a,collection:l}=e;return(0,r.useMemo)(()=>l||t(i.build({children:o,items:a},n)),[i,o,a,l,n,t])}let c=new WeakMap;function d(e){let t=c.get(e);if(null!=t)return t;t=0;let n=r=>{for(let i of r)"section"===i.type?n("function"==typeof e.getChildren?e.getChildren(i.key):i.childNodes):t++};return n(e),c.set(e,t),t}},1466:function(e,t,n){n.d(t,{D:function(){return f}});class r extends Set{constructor(e,t,n){super(e),e instanceof r?(this.anchorKey=null!=t?t:e.anchorKey,this.currentKey=null!=n?n:e.currentKey):(this.anchorKey=t,this.currentKey=n)}}var i=n(1754),o=n(4090);function s(e,t){return e?"all"===e?"all":new r(e):t}function a(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...l(e,t),t],i=[...l(e,n),n],o=r.slice(0,i.length).findIndex((e,t)=>e!==i[t]);return -1!==o?(t=r[o],n=i[o],t.index-n.index):r.findIndex(e=>e===n)>=0?1:(i.findIndex(e=>e===t),-1)}function l(e,t){let n=[];for(;(null==t?void 0:t.parentKey)!=null;)n.unshift(t=e.getItem(t.parentKey));return n}class u{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(null==e||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){return"none"!==this.state.selectionMode&&(e=this.getKey(e),"all"===this.state.selectedKeys?this.canSelectItem(e):this.state.selectedKeys.has(e))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(e=>t.has(e)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&0>a(this.collection,n,e))&&(e=n)}return null==e?void 0:e.key}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&a(this.collection,n,e)>0)&&(e=n)}return null==e?void 0:e.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){let t;if("none"!==this.selectionMode){if("single"===this.selectionMode){this.replaceSelection(e);return}if(e=this.getKey(e),"all"===this.state.selectedKeys)t=new r([e],e,e);else{var n,i;let o=this.state.selectedKeys,s=null!==(n=o.anchorKey)&&void 0!==n?n:e;for(let n of(t=new r(o,s,e),this.getKeyRange(s,null!==(i=o.currentKey)&&void 0!==i?i:e)))t.delete(n);for(let n of this.getKeyRange(e,s))this.canSelectItem(n)&&t.add(n)}this.state.setSelectedKeys(t)}}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?0>=a(this.collection,n,r)?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var n;if(null===(n=this.layoutDelegate)||void 0===n?void 0:n.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let r=[],i=e;for(;null!=i;){let e=this.collection.getItem(i);if((e&&"item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&r.push(i),i===t)return r;i=this.collection.getKeyAfter(i)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||"cell"===t.type&&this.allowsCellSelection)return e;for(;"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e)){this.replaceSelection(e);return}if(null==(e=this.getKey(e)))return;let t=new r("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);t.has(e)?t.delete(e):this.canSelectItem(e)&&(t.add(e),t.anchorKey=e,t.currentKey=e),this.disallowEmptySelection&&0===t.size||this.state.setSelectedKeys(t)}replaceSelection(e){if("none"===this.selectionMode||null==(e=this.getKey(e)))return;let t=this.canSelectItem(e)?new r([e],e,e):new r;this.state.setSelectedKeys(t)}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new r;for(let n of e)if(null!=(n=this.getKey(n))&&(t.add(n),"single"===this.selectionMode))break;this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;null!=n;){if(this.canSelectItem(n)){let i=this.collection.getItem(n);if("item"===i.type&&e.push(n),i.hasChildNodes&&(this.allowsCellSelection||"item"!==i.type)){var r;t(function(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}("function"==typeof(r=this.collection).getChildren?r.getChildren(i.key):i.childNodes,0).key)}}n=this.collection.getKeyAfter(n)}};return t(this.collection.getFirstKey()),e}selectAll(){this.isSelectAll||"multiple"!==this.selectionMode||this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new r)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){var t;if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!!n&&(null==n||null===(t=n.props)||void 0===t||!t.isDisabled)&&("cell"!==n.type||!!this.allowsCellSelection)}isDisabled(e){var t,n;return"all"===this.state.disabledBehavior&&(this.state.disabledKeys.has(e)||!!(null===(n=this.collection.getItem(e))||void 0===n?void 0:null===(t=n.props)||void 0===t?void 0:t.isDisabled))}isLink(e){var t,n;return!!(null===(n=this.collection.getItem(e))||void 0===n?void 0:null===(t=n.props)||void 0===t?void 0:t.href)}getItemProps(e){var t;return null===(t=this.collection.getItem(e))||void 0===t?void 0:t.props}constructor(e,t,n){var r;this.collection=e,this.state=t,this.allowsCellSelection=null!==(r=null==n?void 0:n.allowsCellSelection)&&void 0!==r&&r,this._isSelectAll=null,this.layoutDelegate=(null==n?void 0:n.layoutDelegate)||null}}var c=n(5834);class d{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){let n;this.keyMap=new Map,this.iterable=e,t=t||new Set;let r=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&("section"===e.type||t.has(e.key)))for(let t of e.childNodes)r(t)};for(let t of e)r(t);let i=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=i++),(n=t).nextKey=void 0;this.lastKey=null==n?void 0:n.key}}function f(e){let[t,n]=(0,i.z)(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange),a=function(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:a,selectionBehavior:l="toggle",disabledBehavior:u="all"}=e,c=(0,o.useRef)(!1),[,d]=(0,o.useState)(!1),f=(0,o.useRef)(null),p=(0,o.useRef)(null),[,h]=(0,o.useState)(null),m=(0,o.useMemo)(()=>s(e.selectedKeys),[e.selectedKeys]),g=(0,o.useMemo)(()=>s(e.defaultSelectedKeys,new r),[e.defaultSelectedKeys]),[v,y]=(0,i.z)(m,g,e.onSelectionChange),b=(0,o.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[w,x]=(0,o.useState)(l);"replace"===l&&"toggle"===w&&"object"==typeof v&&0===v.size&&x("replace");let E=(0,o.useRef)(l);return(0,o.useEffect)(()=>{l!==E.current&&(x(l),E.current=l)},[l]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:w,setSelectionBehavior:x,get isFocused(){return c.current},setFocused(e){c.current=e,d(e)},get focusedKey(){return f.current},get childFocusStrategy(){return p.current},setFocusedKey(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"first";f.current=e,p.current=t,h(e)},selectedKeys:v,setSelectedKeys(e){(a||!function(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}(e,v))&&y(e)},disabledKeys:b,disabledBehavior:u}}(e),l=(0,o.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),f=(0,c.Kx)(e,(0,o.useCallback)(e=>new d(e,{expandedKeys:t}),[t]),null);return(0,o.useEffect)(()=>{null==a.focusedKey||f.getItem(a.focusedKey)||a.setFocusedKey(null)},[f,a.focusedKey]),{collection:f,expandedKeys:t,disabledKeys:l,toggleKey:e=>{let r;n(((r=new Set(t)).has(e)?r.delete(e):r.add(e),r))},setExpandedKeys:n,selectionManager:new u(f,a)}}},1754:function(e,t,n){n.d(t,{z:function(){return i}});var r=n(4090);function i(e,t,n){let[i,o]=(0,r.useState)(e||t),s=(0,r.useRef)(void 0!==e),a=void 0!==e;(0,r.useEffect)(()=>{let e=s.current;e!==a&&console.warn("WARN: A component changed from ".concat(e?"controlled":"uncontrolled"," to ").concat(a?"controlled":"uncontrolled",".")),s.current=a},[a]);let l=a?e:i,u=(0,r.useCallback)(function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];let s=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n&&!Object.is(l,e)&&n(e,...r),a||(l=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o(function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];let u=e(a?l:t,...i);return(s(u,...r),a)?t:u})):(a||o(e),s(e,...r))},[a,l,n]);return[l,u]}},7354:function(e,t,n){n.d(t,{J:function(){return r}});function r(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}},2731:function(e,t,n){n.d(t,{_:function(){return i}});var r=n(7354);function i(e,t){var n=(0,r.J)(e,t,"get");return n.get?n.get.call(e):n.value}},9258:function(e,t,n){n.d(t,{_:function(){return r}});function r(e,t,n){!function(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}},5577:function(e,t,n){n.d(t,{_:function(){return i}});var r=n(7354);function i(e,t,n){var i=(0,r.J)(e,t,"set");return!function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=n}}(e,i,n),n}},3167:function(e,t,n){function r(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r)}return i}(e))&&(r&&(r+=" "),r+=t);return r}n.d(t,{W:function(){return r}}),t.Z=r},1353:function(e,t,n){n.d(t,{t:function(){return r}});let r=new Set(["opacity","clipPath","filter","transform"])},9043:function(e,t,n){n.d(t,{M:function(){return r}});let r="data-"+(0,n(5998).D)("framerAppearId")},4633:function(e,t,n){n.d(t,{H:function(){return r}});function r(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}},561:function(e,t,n){n.d(t,{C:function(){return r}});let r=e=>Array.isArray(e)},8745:function(e,t,n){n.d(t,{M:function(){return v}});var r=n(3827),i=n(4090),o=n(4561),s=n(2435),a=n(3449);class l extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function u(e){let{children:t,isPresent:n}=e,o=(0,i.useId)(),s=(0,i.useRef)(null),u=(0,i.useRef)({width:0,height:0,top:0,left:0}),{nonce:c}=(0,i.useContext)(a._);return(0,i.useInsertionEffect)(()=>{let{width:e,height:t,top:r,left:i}=u.current;if(n||!s.current||!e||!t)return;s.current.dataset.motionPopId=o;let a=document.createElement("style");return c&&(a.nonce=c),document.head.appendChild(a),a.sheet&&a.sheet.insertRule('\n          [data-motion-pop-id="'.concat(o,'"] {\n            position: absolute !important;\n            width: ').concat(e,"px !important;\n            height: ").concat(t,"px !important;\n            top: ").concat(r,"px !important;\n            left: ").concat(i,"px !important;\n          }\n        ")),()=>{document.head.removeChild(a)}},[n]),(0,r.jsx)(l,{isPresent:n,childRef:s,sizeRef:u,children:i.cloneElement(t,{ref:s})})}let c=e=>{let{children:t,initial:n,isPresent:a,onExitComplete:l,custom:c,presenceAffectsLayout:f,mode:p}=e,h=(0,s.h)(d),m=(0,i.useId)(),g=(0,i.useCallback)(e=>{for(let t of(h.set(e,!0),h.values()))if(!t)return;l&&l()},[h,l]),v=(0,i.useMemo)(()=>({id:m,initial:n,isPresent:a,custom:c,onExitComplete:g,register:e=>(h.set(e,!1),()=>h.delete(e))}),f?[Math.random(),g]:[a,g]);return(0,i.useMemo)(()=>{h.forEach((e,t)=>h.set(t,!1))},[a]),i.useEffect(()=>{a||h.size||!l||l()},[a]),"popLayout"===p&&(t=(0,r.jsx)(u,{isPresent:a,children:t})),(0,r.jsx)(o.O.Provider,{value:v,children:t})};function d(){return new Map}var f=n(3856),p=n(9908);let h=e=>e.key||"";function m(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}var g=n(5526);let v=e=>{let{children:t,exitBeforeEnter:n,custom:o,initial:a=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:d="sync"}=e;(0,p.k)(!n,"Replace exitBeforeEnter with mode='wait'");let v=(0,i.useMemo)(()=>m(t),[t]),y=v.map(h),b=(0,i.useRef)(!0),w=(0,i.useRef)(v),x=(0,s.h)(()=>new Map),[E,S]=(0,i.useState)(v),[T,P]=(0,i.useState)(v);(0,g.L)(()=>{b.current=!1,w.current=v;for(let e=0;e<T.length;e++){let t=h(T[e]);y.includes(t)?x.delete(t):!0!==x.get(t)&&x.set(t,!1)}},[T,y.length,y.join("-")]);let k=[];if(v!==E){let e=[...v];for(let t=0;t<T.length;t++){let n=T[t],r=h(n);y.includes(r)||(e.splice(t,0,n),k.push(n))}"wait"===d&&k.length&&(e=k),P(m(e)),S(v);return}let{forceRender:M}=(0,i.useContext)(f.p);return(0,r.jsx)(r.Fragment,{children:T.map(e=>{let t=h(e),n=v===T||y.includes(t);return(0,r.jsx)(c,{isPresent:n,initial:(!b.current||!!a)&&void 0,custom:n?void 0:o,presenceAffectsLayout:u,mode:d,onExitComplete:n?void 0:()=>{if(!x.has(t))return;x.set(t,!0);let e=!0;x.forEach(t=>{t||(e=!1)}),e&&(null==M||M(),P(w.current),l&&l())},children:e},t)})})}},9836:function(e,t,n){n.d(t,{X:function(){return a}});var r=n(3827),i=n(4090),o=n(8997),s=n(848);function a(e){let{children:t,features:n,strict:a=!1}=e,[,u]=(0,i.useState)(!l(n)),c=(0,i.useRef)(void 0);if(!l(n)){let{renderer:e,...t}=n;c.current=e,(0,s.K)(t)}return(0,i.useEffect)(()=>{l(n)&&n().then(e=>{let{renderer:t,...n}=e;(0,s.K)(n),c.current=t,u(!0)})},[]),(0,r.jsx)(o.u.Provider,{value:{renderer:c.current,strict:a},children:t})}function l(e){return"function"==typeof e}},3856:function(e,t,n){n.d(t,{p:function(){return r}});let r=(0,n(4090).createContext)({})},8997:function(e,t,n){n.d(t,{u:function(){return r}});let r=(0,n(4090).createContext)({strict:!1})},3449:function(e,t,n){n.d(t,{_:function(){return r}});let r=(0,n(4090).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},4561:function(e,t,n){n.d(t,{O:function(){return r}});let r=(0,n(4090).createContext)(null)},7839:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(6832);let i=["read","resolveKeyframes","update","preRender","render","postRender"];function o(e,t){let n=!1,o=!0,s={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,l=i.reduce((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,i=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1};function a(t){o.has(t)&&(l.schedule(t),e()),t(s)}let l={schedule:function(e){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=s&&r?t:n;return i&&o.add(e),a.has(e)||a.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{if(s=e,r){i=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(a),r=!1,i&&(i=!1,l.process(e))}};return l}(a),e),{}),{read:u,resolveKeyframes:c,update:d,preRender:f,render:p,postRender:h}=l,m=()=>{let i=r.c.useManualTiming?s.timestamp:performance.now();n=!1,s.delta=o?1e3/60:Math.max(Math.min(i-s.timestamp,40),1),s.timestamp=i,s.isProcessing=!0,u.process(s),c.process(s),d.process(s),f.process(s),p.process(s),h.process(s),s.isProcessing=!1,n&&t&&(o=!1,e(m))},g=()=>{n=!0,o=!0,s.isProcessing||e(m)};return{schedule:i.reduce((e,t)=>{let r=l[t];return e[t]=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n||g(),r.schedule(e,t,i)},e},{}),cancel:e=>{for(let t=0;t<i.length;t++)l[i[t]].cancel(e)},state:s,steps:l}}},4205:function(e,t,n){n.d(t,{Pn:function(){return o},Wi:function(){return i},w0:function(){return s}});var r=n(3393);let{schedule:i,cancel:o,state:s,steps:a}=(0,n(7839).Z)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:r.Z,!0)},3791:function(e,t,n){let r;n.d(t,{X:function(){return a}});var i=n(6832),o=n(4205);function s(){r=void 0}let a={now:()=>(void 0===r&&a.set(o.w0.isProcessing||i.c.useManualTiming?o.w0.timestamp:performance.now()),r),set:e=>{r=e,queueMicrotask(s)}}},5223:function(e,t,n){n.d(t,{featureDefinitions:function(){return i}});let r={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"]},i={};for(let e in r)i[e]={isEnabled:t=>r[e].some(e=>!!t[e])}},848:function(e,t,n){n.d(t,{K:function(){return i}});var r=n(5223);function i(e){for(let t in e)r.featureDefinitions[t]={...r.featureDefinitions[t],...e[t]}}},7989:function(e,t,n){n.d(t,{j:function(){return o}});let r={};var i=n(618);function o(e,t){let{layout:n,layoutId:o}=t;return i.G.has(e)||e.startsWith("origin")||(n||void 0!==o)&&(!!r[e]||"opacity"===e)}},1471:function(e,t,n){n.d(t,{m:function(){return Y}});var r,i=n(3827),o=n(4090),s=n(3449);let a=(0,o.createContext)({});var l=n(4561),u=n(5526),c=n(8997),d=n(9043);let{schedule:f,cancel:p}=(0,n(7839).Z)(queueMicrotask,!1);function h(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let m=(0,o.createContext)({});var g=n(6930),v=n(9739);function y(e){return Array.isArray(e)?e.join(" "):e}var b=n(848),w=n(1702),x=n(3856);let E=Symbol.for("motionComponentSymbol");var S=n(5223),T=n(9296),P=n(1661),k=n(9548),M=n(4633),C=n(1422),A=n(2435),R=n(698),K=n(2702),O=n(9634);let N=e=>(t,n)=>{let r=(0,o.useContext)(a),i=(0,o.useContext)(l.O),s=()=>(function(e,t,n,r,i){let{applyWillChange:o=!1,scrapeMotionValuesFromProps:s,createRenderState:a,onMount:l}=e,u={latestValues:function(e,t,n,r,i){var o;let s={},a=r&&(null===(o=e.style)||void 0===o?void 0:o.willChange)===void 0,l=i(e,{});for(let e in l)s[e]=function(e){let t=(0,K.i)(e)?e.get():e;return(0,R.p)(t)?t.toValue():t}(l[e]);let{initial:u,animate:c}=e,d=(0,v.G)(e),f=(0,v.M)(e);t&&f&&!d&&!1!==e.inherit&&(void 0===u&&(u=t.initial),void 0===c&&(c=t.animate));let p=!!n&&!1===n.initial,h=(p=p||!1===u)?c:u;return h&&"boolean"!=typeof h&&!(0,M.H)(h)&&L(e,h,(e,t)=>{for(let t in e){let n=e[t];if(Array.isArray(n)){let e=p?n.length-1:0;n=n[e]}null!==n&&(s[t]=n)}for(let e in t)s[e]=t[e]}),a&&c&&!1!==u&&!(0,M.H)(c)&&L(e,c,e=>{for(let t in e)if((0,O.p)(t)){s.willChange="transform";return}}),s}(t,n,r,!i&&o,s),renderState:a()};return l&&(u.mount=e=>l(t,e,u)),u})(e,t,r,i,n);return n?s():(0,A.h)(s)};function L(e,t,n){let r=Array.isArray(t)?t:[t];for(let t=0;t<r.length;t++){let i=(0,C.o)(e,r[t]);if(i){let{transitionEnd:e,transition:t,...r}=i;n(r,e)}}}let I=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),j=()=>({...I(),attrs:{}});var V=n(8348),F=n(7612),_=n(4205);let D={useVisualState:N({scrapeMotionValuesFromProps:k.U,createRenderState:j,onMount:(e,t,n)=>{let{renderState:r,latestValues:i}=n;_.Wi.read(()=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}}),_.Wi.render(()=>{(0,V.i)(r,i,(0,F.a)(t.tagName),e.transformTemplate),(0,P.K)(t,r)})}})},W={useVisualState:N({applyWillChange:!0,scrapeMotionValuesFromProps:n(6235).U,createRenderState:I})};var z=n(7989),U=n(5275);function B(e,t,n){for(let r in t)(0,K.i)(t[r])||(0,z.j)(r,n)||(e[r]=t[r])}let H=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function G(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||H.has(e)}let q=e=>!G(e);try{(r=require("@emotion/is-prop-valid").default)&&(q=e=>e.startsWith("on")?!G(e):r(e))}catch(e){}let Y=function(e){if("undefined"==typeof Proxy)return e;let t=new Map;return new Proxy(function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return e(...n)},{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}(function(e){let{forwardMotionProps:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{forwardMotionProps:!1};return function(e){let{preloadedFeatures:t,createVisualElement:n,useRender:r,useVisualState:p,Component:T}=e;t&&(0,b.K)(t);let P=(0,o.forwardRef)(function(e,t){var b;let E;let P={...(0,o.useContext)(s._),...e,layoutId:function(e){let{layoutId:t}=e,n=(0,o.useContext)(x.p).id;return n&&void 0!==t?n+"-"+t:t}(e)},{isStatic:k}=P,M=function(e){let{initial:t,animate:n}=function(e,t){if((0,v.G)(e)){let{initial:t,animate:n}=e;return{initial:!1===t||(0,g.$)(t)?t:void 0,animate:(0,g.$)(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,o.useContext)(a));return(0,o.useMemo)(()=>({initial:t,animate:n}),[y(t),y(n)])}(e),C=p(e,k);if(!k&&w.j){(0,o.useContext)(c.u).strict;let e=function(e){let{drag:t,layout:n}=S.featureDefinitions;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(P);E=e.MeasureLayout,M.visualElement=function(e,t,n,r,i){var p,g;let{visualElement:v}=(0,o.useContext)(a),y=(0,o.useContext)(c.u),b=(0,o.useContext)(l.O),w=(0,o.useContext)(s._).reducedMotion,x=(0,o.useRef)();r=r||y.renderer,!x.current&&r&&(x.current=r(e,{visualState:t,parent:v,props:n,presenceContext:b,blockInitialAnimation:!!b&&!1===b.initial,reducedMotionConfig:w}));let E=x.current,S=(0,o.useContext)(m);E&&!E.projection&&i&&("html"===E.type||"svg"===E.type)&&function(e,t,n,r){let{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&h(a),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}(x.current,n,i,S),(0,o.useInsertionEffect)(()=>{E&&E.update(n,b)});let T=n[d.M],P=(0,o.useRef)(!!T&&!(null===(p=window.MotionHandoffIsComplete)||void 0===p?void 0:p.call(window,T))&&(null===(g=window.MotionHasOptimisedAnimation)||void 0===g?void 0:g.call(window,T)));return(0,u.L)(()=>{E&&(window.MotionIsMounted=!0,E.updateFeatures(),f.render(E.render),P.current&&E.animationState&&E.animationState.animateChanges())}),(0,o.useEffect)(()=>{E&&(!P.current&&E.animationState&&E.animationState.animateChanges(),P.current&&(queueMicrotask(()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,T)}),P.current=!1))}),E}(T,C,P,n,e.ProjectionNode)}return(0,i.jsxs)(a.Provider,{value:M,children:[E&&M.visualElement?(0,i.jsx)(E,{visualElement:M.visualElement,...P}):null,r(T,e,(b=M.visualElement,(0,o.useCallback)(e=>{e&&C.mount&&C.mount(e),b&&(e?b.mount(e):b.unmount()),t&&("function"==typeof t?t(e):h(t)&&(t.current=e))},[b])),C,k,M.visualElement)]})});return P[E]=T,P}({...(0,T.q)(e)?D:W,preloadedFeatures:void 0,useRender:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(t,n,r,i,s)=>{let{latestValues:a}=i,l=((0,T.q)(t)?function(e,t,n,r){let i=(0,o.useMemo)(()=>{let n=j();return(0,V.i)(n,t,(0,F.a)(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};B(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n={},r=function(e,t){let n=e.style||{},r={};return B(r,n,e),Object.assign(r,function(e,t){let{transformTemplate:n}=e;return(0,o.useMemo)(()=>{let e=I();return(0,U.r)(e,t,n),Object.assign({},e.vars,e.style)},[t])}(e,t)),r}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n})(n,a,s,t),u=function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(q(i)||!0===n&&G(i)||!t&&!G(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),c=t!==o.Fragment?{...u,...l,ref:r}:{},{children:d}=n,f=(0,o.useMemo)(()=>(0,K.i)(d)?d.get():d,[d]);return(0,o.createElement)(t,{...c,children:f})}}(t),createVisualElement:void 0,Component:e})})},6023:function(e,t,n){n.d(t,{H:function(){return nM}});var r=n(4633),i=n(561);function o(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var s=n(6930),a=n(1422);function l(e,t,n){let r=e.getProps();return(0,a.o)(r,t,void 0!==n?n:r.custom,e)}var u=n(1867),c=n(618);let d=e=>1e3*e,f=e=>e/1e3,p={type:"spring",stiffness:500,damping:25,restSpeed:10},h=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),m={type:"keyframes",duration:.8},g={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},v=(e,t)=>{let{keyframes:n}=t;return n.length>2?m:c.G.has(e)?e.startsWith("scale")?h(n[1]):p:g};function y(e,t){return e?e[t]||e.default||e:void 0}var b=n(6832);let w={current:!1},x=e=>null!==e;function E(e,t,n){let{repeat:r,repeatType:i="loop"}=t,o=e.filter(x),s=r&&"loop"!==i&&r%2==1?0:o.length-1;return s&&void 0!==n?n:o[s]}var S=n(4205),T=n(3393);let P=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function k(e,t,n,r){if(e===t&&n===r)return T.Z;let i=t=>(function(e,t,n,r,i){let o,s;let a=0;do(o=P(s=t+(n-t)/2,r,i)-e)>0?n=s:t=s;while(Math.abs(o)>1e-7&&++a<12);return s})(t,0,1,e,n);return e=>0===e||1===e?e:P(i(e),t,r)}let M=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,C=e=>t=>1-e(1-t),A=k(.33,1.53,.69,.99),R=C(A),K=M(R),O=e=>(e*=2)<1?.5*R(e):.5*(2-Math.pow(2,-10*(e-1))),N=e=>1-Math.sin(Math.acos(e)),L=C(N),I=M(N),j=e=>/^0[^.\s]+$/u.test(e);var V=n(9908);let F=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);var _=n(7126);let D=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var W=n(5218),z=n(2724);let U=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),B=e=>e===W.Rx||e===z.px,H=(e,t)=>parseFloat(e.split(", ")[t]),G=(e,t)=>(n,r)=>{let{transform:i}=r;if("none"===i||!i)return 0;let o=i.match(/^matrix3d\((.+)\)$/u);if(o)return H(o[1],t);{let t=i.match(/^matrix\((.+)\)$/u);return t?H(t[1],e):0}},q=new Set(["x","y","z"]),Y=c._.filter(e=>!q.has(e)),X={width:(e,t)=>{let{x:n}=e,{paddingLeft:r="0",paddingRight:i="0"}=t;return n.max-n.min-parseFloat(r)-parseFloat(i)},height:(e,t)=>{let{y:n}=e,{paddingTop:r="0",paddingBottom:i="0"}=t;return n.max-n.min-parseFloat(r)-parseFloat(i)},top:(e,t)=>{let{top:n}=t;return parseFloat(n)},left:(e,t)=>{let{left:n}=t;return parseFloat(n)},bottom:(e,t)=>{let{y:n}=e,{top:r}=t;return parseFloat(r)+(n.max-n.min)},right:(e,t)=>{let{x:n}=e,{left:r}=t;return parseFloat(r)+(n.max-n.min)},x:G(4,13),y:G(5,14)};X.translateX=X.x,X.translateY=X.y;let $=e=>t=>t.test(e),Z=[W.Rx,z.px,z.aQ,z.RW,z.vw,z.vh,{test:e=>"auto"===e,parse:e=>e}],J=e=>Z.find($(e)),Q=new Set,ee=!1,et=!1;function en(){if(et){let e=Array.from(Q).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=function(e){let t=[];return Y.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(t=>{var n;let[r,i]=t;null===(n=e.getValue(r))||void 0===n||n.set(i)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}et=!1,ee=!1,Q.forEach(e=>e.complete()),Q.clear()}function er(){Q.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(et=!0)})}class ei{scheduleResolve(){this.isScheduled=!0,this.isAsync?(Q.add(this),ee||(ee=!0,S.Wi.read(er),S.Wi.resolveKeyframes(en))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let i=0;i<e.length;i++)if(null===e[i]){if(0===i){let i=null==r?void 0:r.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,o);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===i&&r.set(e[0])}else e[i]=e[i-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Q.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Q.delete(this))}resume(){this.isComplete||this.scheduleResolve()}constructor(e,t,n,r,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}}var eo=n(2476);let es=e=>Math.round(1e5*e)/1e5,ea=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,el=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,eu=(e,t)=>n=>!!("string"==typeof n&&el.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),ec=(e,t,n)=>r=>{if("string"!=typeof r)return r;let[i,o,s,a]=r.match(ea);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},ed=e=>(0,eo.u)(0,255,e),ef={...W.Rx,transform:e=>Math.round(ed(e))},ep={test:eu("rgb","red"),parse:ec("red","green","blue"),transform:e=>{let{red:t,green:n,blue:r,alpha:i=1}=e;return"rgba("+ef.transform(t)+", "+ef.transform(n)+", "+ef.transform(r)+", "+es(W.Fq.transform(i))+")"}},eh={test:eu("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:ep.transform},em={test:eu("hsl","hue"),parse:ec("hue","saturation","lightness"),transform:e=>{let{hue:t,saturation:n,lightness:r,alpha:i=1}=e;return"hsla("+Math.round(t)+", "+z.aQ.transform(es(n))+", "+z.aQ.transform(es(r))+", "+es(W.Fq.transform(i))+")"}},eg={test:e=>ep.test(e)||eh.test(e)||em.test(e),parse:e=>ep.test(e)?ep.parse(e):em.test(e)?em.parse(e):eh.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?ep.transform(e):em.transform(e)},ev=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,ey="number",eb="color",ew=/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 ex(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],o=0,s=t.replace(ew,e=>(eg.test(e)?(r.color.push(o),i.push(eb),n.push(eg.parse(e))):e.startsWith("var(")?(r.var.push(o),i.push("var"),n.push(e)):(r.number.push(o),i.push(ey),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:s,indexes:r,types:i}}function eE(e){return ex(e).values}function eS(e){let{split:t,types:n}=ex(e),r=t.length;return e=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],void 0!==e[o]){let t=n[o];t===ey?i+=es(e[o]):t===eb?i+=eg.transform(e[o]):i+=e[o]}return i}}let eT=e=>"number"==typeof e?0:e,eP={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(ea))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(ev))||void 0===n?void 0:n.length)||0)>0},parse:eE,createTransformer:eS,getAnimatableNone:function(e){let t=eE(e);return eS(e)(t.map(eT))}},ek=new Set(["brightness","contrast","saturate","opacity"]);function eM(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(ea)||[];if(!r)return e;let i=n.replace(r,""),o=ek.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}let eC=/\b([a-z-]*)\(.*?\)/gu,eA={...eP,getAnimatableNone:e=>{let t=e.match(eC);return t?t.map(eM).join(" "):e}},eR={...n(4412).j,color:eg,backgroundColor:eg,outlineColor:eg,fill:eg,stroke:eg,borderColor:eg,borderTopColor:eg,borderRightColor:eg,borderBottomColor:eg,borderLeftColor:eg,filter:eA,WebkitFilter:eA},eK=e=>eR[e];function eO(e,t){let n=eK(e);return n!==eA&&(n=eP),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let eN=new Set(["auto","none","0"]);class eL extends ei{readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&(r=r.trim(),(0,_.t)(r))){let i=function e(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;(0,V.k)(r<=4,'Max CSS variable fallback depth detected in property "'.concat(t,'". This may indicate a circular fallback dependency.'));let[i,o]=function(e){let t=D.exec(e);if(!t)return[,];let[,n,r,i]=t;return["--".concat(null!=n?n:r),i]}(t);if(!i)return;let s=window.getComputedStyle(n).getPropertyValue(i);if(s){let e=s.trim();return F(e)?parseFloat(e):e}return(0,_.t)(o)?e(o,n,r+1):o}(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!U.has(n)||2!==e.length)return;let[r,i]=e,o=J(r),s=J(i);if(o!==s){if(B(o)&&B(s))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++){var r;("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||j(r))&&n.push(t)}n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!eN.has(t)&&ex(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=eO(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=X[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;let{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;let i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);let o=r.length-1,s=r[o];r[o]=X[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach(e=>{let[n,r]=e;t.getValue(n).set(r)}),this.resolveNoneKeyframes()}constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}}function eI(e){return"function"==typeof e}var ej=n(3791);let eV=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eP.test(e)||"0"===e)&&!e.startsWith("url("));class eF{calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(er(),en()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=ej.X.now(),this.hasAttemptedResolve=!0;let{name:n,type:r,velocity:i,delay:o,onComplete:s,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(e,t,n,r){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],s=eV(i,t),a=eV(o,t);return(0,V.K)(s===a,"You are trying to animate ".concat(t,' from "').concat(i,'" to "').concat(o,'". ').concat(i," is not an animatable value - to enable this animation set ").concat(i," to a value animatable to ").concat(o," via the `style` property.")),!!s&&!!a&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||eI(n))&&r)}(e,n,r,i)){if(w.current||!o){null==a||a(E(e,this.options,t)),null==s||s(),this.resolveFinishedPromise();return}this.options.duration=0}let u=this.initPlayback(e,t);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ej.X.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:o,...s},this.updateFinishedPromise()}}var e_=n(2181);function eD(e,t,n){let r=Math.max(t-5,0);return(0,e_.R)(n-e(r),t-r)}function eW(e,t){return e*Math.sqrt(1-t*t)}let ez=["duration","bounce"],eU=["stiffness","damping","mass"];function eB(e,t){return t.some(t=>void 0!==e[t])}function eH(e){let t,{keyframes:n,restDelta:r,restSpeed:i,...o}=e,s=n[0],a=n[n.length-1],l={done:!1,value:s},{stiffness:u,damping:c,mass:p,duration:h,velocity:m,isResolvedFromDuration:g}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!eB(e,eU)&&eB(e,ez)){let n=function(e){let t,n,{duration:r=800,bounce:i=.25,velocity:o=0,mass:s=1}=e;(0,V.K)(r<=d(10),"Spring duration must be 10 seconds or less");let a=1-i;a=(0,eo.u)(.05,1,a),r=(0,eo.u)(.01,10,f(r)),a<1?(t=e=>{let t=e*a,n=t*r;return .001-(t-o)/eW(e,a)*Math.exp(-n)},n=e=>{let n=e*a*r,i=Math.pow(a,2)*Math.pow(e,2)*r,s=eW(Math.pow(e,2),a);return(n*o+o-i)*Math.exp(-n)*(-t(e)+.001>0?-1:1)/s}):(t=e=>-.001+Math.exp(-e*r)*((e-o)*r+1),n=e=>r*r*(o-e)*Math.exp(-e*r));let l=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(t,n,5/r);if(r=d(r),isNaN(l))return{stiffness:100,damping:10,duration:r};{let e=Math.pow(l,2)*s;return{stiffness:e,damping:2*a*Math.sqrt(s*e),duration:r}}}(e);(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...o,velocity:-f(o.velocity||0)}),v=m||0,y=c/(2*Math.sqrt(u*p)),b=a-s,w=f(Math.sqrt(u/p)),x=5>Math.abs(b);if(i||(i=x?.01:2),r||(r=x?.005:.5),y<1){let e=eW(w,y);t=t=>a-Math.exp(-y*w*t)*((v+y*w*b)/e*Math.sin(e*t)+b*Math.cos(e*t))}else if(1===y)t=e=>a-Math.exp(-w*e)*(b+(v+w*b)*e);else{let e=w*Math.sqrt(y*y-1);t=t=>{let n=Math.exp(-y*w*t),r=Math.min(e*t,300);return a-n*((v+y*w*b)*Math.sinh(r)+e*b*Math.cosh(r))/e}}return{calculatedDuration:g&&h||null,next:e=>{let n=t(e);if(g)l.done=e>=h;else{let o=0;y<1&&(o=0===e?d(v):eD(t,e,n));let s=Math.abs(o)<=i,u=Math.abs(a-n)<=r;l.done=s&&u}return l.value=l.done?a:n,l}}}function eG(e){let t,n,{keyframes:r,velocity:i=0,power:o=.8,timeConstant:s=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:u,min:c,max:d,restDelta:f=.5,restSpeed:p}=e,h=r[0],m={done:!1,value:h},g=e=>void 0!==c&&e<c||void 0!==d&&e>d,v=e=>void 0===c?d:void 0===d?c:Math.abs(c-e)<Math.abs(d-e)?c:d,y=o*i,b=h+y,w=void 0===u?b:u(b);w!==b&&(y=w-h);let x=e=>-y*Math.exp(-e/s),E=e=>w+x(e),S=e=>{let t=x(e),n=E(e);m.done=Math.abs(t)<=f,m.value=m.done?w:n},T=e=>{g(m.value)&&(t=e,n=eH({keyframes:[m.value,v(m.value)],velocity:eD(E,e,m.value),damping:a,stiffness:l,restDelta:f,restSpeed:p}))};return T(0),{calculatedDuration:null,next:e=>{let r=!1;return(n||void 0!==t||(r=!0,S(e),T(e)),void 0!==t&&e>=t)?n.next(e-t):(r||S(e),m)}}}let eq=k(.42,0,1,1),eY=k(0,0,.58,1),eX=k(.42,0,.58,1),e$=e=>Array.isArray(e)&&"number"!=typeof e[0],eZ=e=>Array.isArray(e)&&"number"==typeof e[0],eJ={linear:T.Z,easeIn:eq,easeInOut:eX,easeOut:eY,circIn:N,circInOut:I,circOut:L,backIn:R,backInOut:K,backOut:A,anticipate:O},eQ=e=>{if(eZ(e)){(0,V.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,i]=e;return k(t,n,r,i)}return"string"==typeof e?((0,V.k)(void 0!==eJ[e],"Invalid easing type '".concat(e,"'")),eJ[e]):e},e0=(e,t)=>n=>t(e(n)),e1=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(e0)},e2=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},e4=(e,t,n)=>e+(t-e)*n;function e3(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function e5(e,t){return n=>n>0?t:e}let e9=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},e6=[eh,ep,em],e8=e=>e6.find(t=>t.test(e));function e7(e){let t=e8(e);if((0,V.K)(!!t,"'".concat(e,"' is not an animatable color. Use the equivalent color code instead.")),!t)return!1;let n=t.parse(e);return t===em&&(n=function(e){let{hue:t,saturation:n,lightness:r,alpha:i}=e;t/=360,r/=100;let o=0,s=0,a=0;if(n/=100){let e=r<.5?r*(1+n):r+n-r*n,i=2*r-e;o=e3(i,e,t+1/3),s=e3(i,e,t),a=e3(i,e,t-1/3)}else o=s=a=r;return{red:Math.round(255*o),green:Math.round(255*s),blue:Math.round(255*a),alpha:i}}(n)),n}let te=(e,t)=>{let n=e7(e),r=e7(t);if(!n||!r)return e5(e,t);let i={...n};return e=>(i.red=e9(n.red,r.red,e),i.green=e9(n.green,r.green,e),i.blue=e9(n.blue,r.blue,e),i.alpha=e4(n.alpha,r.alpha,e),ep.transform(i))},tt=new Set(["none","hidden"]);function tn(e,t){return n=>e4(e,t,n)}function tr(e){return"number"==typeof e?tn:"string"==typeof e?(0,_.t)(e)?e5:eg.test(e)?te:ts:Array.isArray(e)?ti:"object"==typeof e?eg.test(e)?te:to:e5}function ti(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>tr(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function to(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=tr(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let ts=(e,t)=>{let n=eP.createTransformer(t),r=ex(e),i=ex(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?tt.has(e)&&!i.values.length||tt.has(t)&&!r.values.length?tt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e:e1(ti(function(e,t){var n;let r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){let s=t.types[o],a=e.indexes[s][i[s]],l=null!==(n=e.values[a])&&void 0!==n?n:0;r[o]=l,i[s]++}return r}(r,i),i.values),n):((0,V.K)(!0,"Complex values '".concat(e,"' and '").concat(t,"' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.")),e5(e,t))};function ta(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?e4(e,t,n):tr(e)(e,t)}function tl(e){let{duration:t=300,keyframes:n,times:r,ease:i="easeInOut"}=e,o=e$(i)?i.map(eQ):eQ(i),s={done:!1,value:n[0]},a=function(e,t){let{clamp:n=!0,ease:r,mixer:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e.length;if((0,V.k)(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];if(2===o&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,n){let r=[],i=n||ta,o=e.length-1;for(let n=0;n<o;n++){let o=i(e[n],e[n+1]);t&&(o=e1(Array.isArray(t)?t[n]||T.Z:t,o)),r.push(o)}return r}(t,r,i),a=s.length,l=t=>{let n=0;if(a>1)for(;n<e.length-2&&!(t<e[n+1]);n++);let r=e2(e[n],e[n+1],t);return s[n](r)};return n?t=>l((0,eo.u)(e[0],e[o-1],t)):l}((r&&r.length===n.length?r:function(e){let t=[0];return function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=e2(0,t,r);e.push(e4(n,1,i))}}(t,e.length-1),t}(n)).map(e=>e*t),n,{ease:Array.isArray(o)?o:n.map(()=>o||eX).splice(0,n.length-1)});return{calculatedDuration:t,next:e=>(s.value=a(e),s.done=e>=t,s)}}let tu=e=>{let t=t=>{let{timestamp:n}=t;return e(n)};return{start:()=>S.Wi.update(t,!0),stop:()=>(0,S.Pn)(t),now:()=>S.w0.isProcessing?S.w0.timestamp:ej.X.now()}},tc={decay:eG,inertia:eG,tween:tl,keyframes:tl,spring:eH},td=e=>e/100;class tf extends eF{initPlayback(e){let t,n;let{type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s,velocity:a=0}=this.options,l=eI(r)?r:tc[r]||tl;l!==tl&&"number"!=typeof e[0]&&(t=e1(td,ta(e[0],e[1])),e=[0,100]);let u=l({...this.options,keyframes:e});"mirror"===s&&(n=l({...this.options,keyframes:[...e].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=function(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}(u));let{calculatedDuration:c}=u,d=c+o;return{generator:u,mirroredGenerator:n,mapPercentToKeyframes:t,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(i+1)-o}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{resolved:n}=this;if(!n){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:r,generator:i,mirroredGenerator:o,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return i.next(0);let{delay:d,repeat:f,repeatType:p,repeatDelay:h,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let g=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,b=i;if(f){let e=Math.min(this.currentTime,u)/c,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,f+1))%2&&("reverse"===p?(n=1-n,h&&(n-=h/c)):"mirror"===p&&(b=o)),y=(0,eo.u)(0,1,n)*c}let w=v?{done:!1,value:a[0]}:b.next(y);s&&(w.value=s(w.value));let{done:x}=w;v||null===l||(x=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return S&&void 0!==r&&(w.value=E(a,this.options,r)),m&&m(w.value),S&&this.finish(),w}get duration(){let{resolved:e}=this;return e?f(e.calculatedDuration):0}get time(){return f(this.currentTime)}set time(e){e=d(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=f(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=tu,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()};let{name:t,motionValue:n,element:r,keyframes:i}=this.options,o=(null==r?void 0:r.KeyframeResolver)||ei;this.resolver=new o(i,(e,t)=>this.onKeyframesResolved(e,t),t,n,r),this.resolver.scheduleResolve()}}var tp=n(1353);let th=(e,t)=>{let n="",r=Math.max(Math.round(t/10),2);for(let t=0;t<r;t++)n+=e(e2(0,r-1,t))+", ";return"linear(".concat(n.substring(0,n.length-2),")")};function tm(e){let t;return()=>(void 0===t&&(t=e()),t)}let tg={linearEasing:void 0},tv=function(e,t){let n=tm(e);return()=>{var e;return null!==(e=tg[t])&&void 0!==e?e:n()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),ty=e=>{let[t,n,r,i]=e;return"cubic-bezier(".concat(t,", ").concat(n,", ").concat(r,", ").concat(i,")")},tb={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ty([0,.65,.55,1]),circOut:ty([.55,0,1,.45]),backIn:ty([.31,.01,.66,-.59]),backOut:ty([.33,1.53,.69,.99])};function tw(e,t){e.timeline=t,e.onfinish=null}let tx=tm(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),tE={anticipate:O,backInOut:K,circInOut:I};class tS extends eF{initPlayback(e,t){var n,r;let{duration:i=300,times:o,ease:s,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(null===(n=l.owner)||void 0===n?void 0:n.current))return!1;if("string"==typeof s&&tv()&&s in tE&&(s=tE[s]),eI((r=this.options).type)||"spring"===r.type||!function e(t){return!!("function"==typeof t&&tv()||!t||"string"==typeof t&&(t in tb||tv())||eZ(t)||Array.isArray(t)&&t.every(e))}(r.ease)){let{onComplete:t,onUpdate:n,motionValue:r,element:l,...u}=this.options,c=function(e,t){let n=new tf({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:e[0]},i=[],o=0;for(;!r.done&&o<2e4;)i.push((r=n.sample(o)).value),o+=10;return{times:void 0,keyframes:i,duration:o-10,ease:"linear"}}(e,u);1===(e=c.keyframes).length&&(e[1]=e[0]),i=c.duration,o=c.times,s=c.ease,a="keyframes"}let d=function(e,t,n){let{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a,times:l}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u={[t]:n};l&&(u.offset=l);let c=function e(t,n){if(t)return"function"==typeof t&&tv()?th(t,n):eZ(t)?ty(t):Array.isArray(t)?t.map(t=>e(t,n)||tb.easeOut):tb[t]}(a,i);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(l.owner.current,u,e,{...this.options,duration:i,times:o,ease:s});return d.startTime=null!=c?c:this.calcStartTime(),this.pendingTimeline?(tw(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:n}=this.options;l.set(E(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:i,times:o,type:a,ease:s,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return f(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return f(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.currentTime=d(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return T.Z;let{animation:n}=t;tw(n,e)}else this.pendingTimeline=e;return T.Z}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:n,duration:r,type:i,ease:o,times:s}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){let{motionValue:e,onUpdate:t,onComplete:a,element:l,...u}=this.options,c=new tf({...u,keyframes:n,duration:r,type:i,ease:o,times:s,isGenerator:!0}),f=d(this.time);e.setWithVelocity(c.sample(f-10).value,c.sample(f).value,10)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:s}=e;return tx()&&n&&tp.t.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!r&&"mirror"!==i&&0!==o&&"inertia"!==s}constructor(e){super(e);let{name:t,motionValue:n,element:r,keyframes:i}=this.options;this.resolver=new eL(i,(e,t)=>this.onKeyframesResolved(e,t),t,n,r),this.resolver.scheduleResolve()}}let tT=tm(()=>void 0!==window.ScrollTimeline);class tP{then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){let n=this.animations.map(n=>tT()&&n.attachTimeline?n.attachTimeline(e):t(n));return()=>{n.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}}let tk=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;return s=>{let a=y(r,e)||{},l=a.delay||r.delay||0,{elapsed:u=0}=r;u-=d(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};!function(e){let{when:t,delay:n,delayChildren:r,staggerChildren:i,staggerDirection:o,repeat:s,repeatType:a,repeatDelay:l,from:u,elapsed:c,...d}=e;return!!Object.keys(d).length}(a)&&(c={...c,...v(e,c)}),c.duration&&(c.duration=d(c.duration)),c.repeatDelay&&(c.repeatDelay=d(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let f=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(c.duration=0,0!==c.delay||(f=!0)),(w.current||b.c.skipAnimations)&&(f=!0,c.duration=0,c.delay=0),f&&!o&&void 0!==t.get()){let e=E(c.keyframes,a);if(void 0!==e)return S.Wi.update(()=>{c.onUpdate(e),c.onComplete()}),new tP([])}return!o&&tS.supports(c)?new tS(c):new tf(c)}};var tM=n(698),tC=n(3299),tA=n(9043),tR=n(2702),tK=n(9634);function tO(e,t){var n;let{delay:r=0,transitionOverride:i,type:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{transition:s=e.getDefaultTransition(),transitionEnd:a,...u}=t;i&&(s=i);let d=[],f=o&&e.animationState&&e.animationState.getState()[o];for(let t in u){let i=e.getValue(t,null!==(n=e.latestValues[t])&&void 0!==n?n:null),o=u[t];if(void 0===o||f&&function(e,t){let{protectedKeys:n,needsAnimating:r}=e,i=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,i}(f,t))continue;let a={delay:r,...y(s||{},t)},l=!1;if(window.MotionHandoffAnimation){let n=e.props[tA.M];if(n){let e=window.MotionHandoffAnimation(n,t,S.Wi);null!==e&&(a.startTime=e,l=!0)}}!function(e,t){var n;if(!e.applyWillChange)return;let r=e.getValue("willChange");if((0,tR.i)(r)&&r.add)return r.add(t);!(null===(n=e.props.style)||void 0===n?void 0:n.willChange)&&(0,tK.p)(t)&&e.setStaticValue("willChange","transform")}(e,t),i.start(tk(t,i,o,e.shouldReduceMotion&&c.G.has(t)?{type:!1}:a,e,l));let p=i.animation;p&&d.push(p)}return a&&Promise.all(d).then(()=>{S.Wi.update(()=>{a&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=l(e,t)||{};for(let t in i={...i,...n}){let n=(0,tM.Y)(i[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,(0,tC.BX)(n))}}(e,a)})}),d}function tN(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=l(e,t,"exit"===r.type?null===(n=e.presenceContext)||void 0===n?void 0:n.custom:void 0),{transition:o=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(o=r.transitionOverride);let s=i?()=>Promise.all(tO(e,i,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=o;return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=arguments.length>5?arguments[5]:void 0,s=[],a=(e.variantChildren.size-1)*r,l=1===i?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e*r}:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return a-e*r};return Array.from(e.variantChildren).sort(tL).forEach((e,r)=>{e.notify("AnimationStart",t),s.push(tN(e,t,{...o,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,i+n,s,a,r)}:()=>Promise.resolve(),{when:u}=o;if(!u)return Promise.all([s(),a(r.delay)]);{let[e,t]="beforeChildren"===u?[s,a]:[a,s];return e().then(()=>t())}}function tL(e,t){return e.sortNodePosition(t)}let tI=u.V.length,tj=[...u.e].reverse(),tV=u.e.length;function tF(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function t_(){return{animate:tF(!0),whileInView:tF(),whileHover:tF(),whileTap:tF(),whileDrag:tF(),whileFocus:tF(),exit:tF()}}class tD{update(){}constructor(e){this.isMounted=!1,this.node=e}}class tW extends tD{updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();(0,r.H)(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(t=>{let{animation:n,options:r}=t;return function(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>tN(e,t,r)));else if("string"==typeof t)n=tN(e,t,r);else{let i="function"==typeof t?l(e,t,r.custom):t;n=Promise.all(tO(e,i,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}(e,n,r)})),n=t_(),a=!0,c=t=>(n,r)=>{var i;let o=l(e,r,"exit"===t?null===(i=e.presenceContext)||void 0===i?void 0:i.custom:void 0);if(o){let{transition:e,transitionEnd:t,...r}=o;n={...n,...r,...t}}return n};function d(l){let{props:d}=e,f=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<tI;e++){let r=u.V[e],i=t.props[r];((0,s.$)(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},p=[],h=new Set,m={},g=1/0;for(let t=0;t<tV;t++){var v;let u=tj[t],y=n[u],b=void 0!==d[u]?d[u]:f[u],w=(0,s.$)(b),x=u===l?y.isActive:null;!1===x&&(g=t);let E=b===f[u]&&b!==d[u]&&w;if(E&&a&&e.manuallyAnimateOnMount&&(E=!1),y.protectedKeys={...m},!y.isActive&&null===x||!b&&!y.prevProp||(0,r.H)(b)||"boolean"==typeof b)continue;let S=(v=y.prevProp,"string"==typeof b?b!==v:!!Array.isArray(b)&&!o(b,v)),T=S||u===l&&y.isActive&&!E&&w||t>g&&w,P=!1,k=Array.isArray(b)?b:[b],M=k.reduce(c(u),{});!1===x&&(M={});let{prevResolvedValues:C={}}=y,A={...C,...M},R=t=>{T=!0,h.has(t)&&(P=!0,h.delete(t)),y.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in A){let t=M[e],n=C[e];if(!m.hasOwnProperty(e))((0,i.C)(t)&&(0,i.C)(n)?o(t,n):t===n)?void 0!==t&&h.has(e)?R(e):y.protectedKeys[e]=!0:null!=t?R(e):h.add(e)}y.prevProp=b,y.prevResolvedValues=M,y.isActive&&(m={...m,...M}),a&&e.blockInitialAnimation&&(T=!1);let K=!(E&&S)||P;T&&K&&p.push(...k.map(e=>({animation:e,options:{type:u}})))}if(h.size){let t={};h.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=null!=r?r:null}),p.push({animation:t})}let y=!!p.length;return a&&(!1===d.initial||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(y=!1),a=!1,y?t(p):Promise.resolve()}return{animateChanges:d,setActive:function(t,r){var i;if(n[t].isActive===r)return Promise.resolve();null===(i=e.variantChildren)||void 0===i||i.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;let o=d(t);for(let e in n)n[e].protectedKeys={};return o},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=t_(),a=!0}}}(e))}}let tz=0;class tU extends tD{update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}constructor(){super(...arguments),this.id=tz++}}function tB(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}let tH=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function tG(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"page";return{point:{x:e["".concat(t,"X")],y:e["".concat(t,"Y")]}}}let tq=e=>t=>tH(t)&&e(t,tG(t));function tY(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let tX=tY("dragHorizontal"),t$=tY("dragVertical");function tZ(){let e=function(e){let t=!1;if("y"===e)t=t$();else if("x"===e)t=tX();else{let e=tX(),n=t$();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}(!0);return!e||(e(),!1)}function tJ(e,t){var n,r;let i=t?"onHoverStart":"onHoverEnd";return n=e.current,r={passive:!e.getProps()[i]},tB(n,t?"pointerenter":"pointerleave",tq((n,r)=>{if("touch"===n.pointerType||tZ())return;let o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t);let s=o[i];s&&S.Wi.postRender(()=>s(n,r))}),r)}class tQ extends tD{mount(){this.unmount=e1(tJ(this.node,!0),tJ(this.node,!1))}unmount(){}}class t0 extends tD{onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){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=e1(tB(this.node.current,"focus",()=>this.onFocus()),tB(this.node.current,"blur",()=>this.onBlur()))}unmount(){}constructor(){super(...arguments),this.isActive=!1}}let t1=(e,t)=>!!t&&(e===t||t1(e,t.parentElement));function t2(e,t){if(!t)return;let n=new PointerEvent("pointer"+e);t(n,tG(n))}class t4 extends tD{startPress(e,t){this.isPressing=!0;let{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&S.Wi.postRender(()=>n(e,t))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!tZ()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&S.Wi.postRender(()=>n(e,t))}mount(){var e,t,n;let r=this.node.getProps(),i=(e=r.globalTapTarget?window:this.node.current,t=this.startPointerPress,n={passive:!(r.onTapStart||r.onPointerStart)},tB(e,"pointerdown",tq(t),n)),o=tB(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=e1(i,o)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}constructor(){super(...arguments),this.removeStartListeners=T.Z,this.removeEndListeners=T.Z,this.removeAccessibleListeners=T.Z,this.startPointerPress=(e,t)=>{var n,r,i,o;if(this.isPressing)return;this.removeEndListeners();let s=this.node.getProps(),a=(n=window,r={passive:!(s.onTap||s.onPointerUp)},tB(n,"pointerup",tq((e,t)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:r,globalTapTarget:i}=this.node.getProps(),o=i||t1(this.node.current,e.target)?n:r;o&&S.Wi.update(()=>o(e,t))}),r)),l=(i=window,o={passive:!(s.onTapCancel||s.onPointerCancel)},tB(i,"pointercancel",tq((e,t)=>this.cancelPress(e,t)),o));this.removeEndListeners=e1(a,l),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=tB(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=tB(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&t2("up",(e,t)=>{let{onTap:n}=this.node.getProps();n&&S.Wi.postRender(()=>n(e,t))})}),t2("down",(e,t)=>{this.startPress(e,t)}))}),t=tB(this.node.current,"blur",()=>{this.isPressing&&t2("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=e1(e,t)}}}let t3=new WeakMap,t5=new WeakMap,t9=e=>{let t=t3.get(e.target);t&&t(e)},t6=e=>{e.forEach(t9)},t8={some:0,all:1};class t7 extends tD{startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:t8[r]};return function(e,t,n){let r=function(e){let{root:t,...n}=e,r=t||document;t5.has(r)||t5.set(r,{});let i=t5.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(t6,{root:t,...n})),i[o]}(t);return t3.set(e,n),r.observe(e),()=>{t3.delete(e),r.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=t?n:r;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function(e){let{viewport:t={}}=e,{viewport:n={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=>t[e]!==n[e]}(e,t))&&this.startObserver()}unmount(){}constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}}var ne=n(4090),nt=n(5275),nn=n(6235),nr=n(4269),ni=n(1702);let no={current:null},ns={current:!1};var na=n(2685),nl=n(9739),nu=n(5223);let nc=new WeakMap,nd=[...Z,eg,eP],nf=e=>nd.find($(e)),np=()=>({min:0,max:0}),nh=()=>({x:np(),y:np()}),nm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ng{scrapeMotionValuesFromProps(e,t,n){return{}}mount(e){this.current=e,nc.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((e,t)=>this.bindToMotionValue(t,e)),ns.current||function(){if(ns.current=!0,ni.j){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>no.current=e.matches;e.addListener(t),t()}else no.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||no.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in nc.delete(this.current),this.projection&&this.projection.unmount(),(0,S.Pn)(this.notifyUpdate),(0,S.Pn)(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){let n;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let r=c.G.has(e),i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&S.Wi.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),o(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in nu.featureDefinitions){let t=nu.featureDefinitions[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):nh()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<nm.length;t++){let n=nm[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let i=t[r],o=n[r];if((0,tR.i)(i))e.addValue(r,i);else if((0,tR.i)(o))e.addValue(r,(0,tC.BX)(i,{owner:e}));else if(o!==i){if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,(0,tC.BX)(void 0!==t?t:i,{owner:e}))}}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(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){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=(0,tC.BX)(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=r&&("string"==typeof r&&(F(r)||j(r))?r=parseFloat(r):!nf(r)&&eP.test(t)&&(r=eO(e,t)),this.setBaseTarget(e,(0,tR.i)(r)?r.get():r)),(0,tR.i)(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let n;let{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let i=(0,a.o)(this.props,r,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);i&&(n=i[e])}if(r&&void 0!==n)return n;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||(0,tR.i)(i)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new na.L),this.events[e].add(t)}notify(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.events[e]&&this.events[e].notify(...n)}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},s={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ei,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=ej.X.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,S.Wi.render(this.render,!1,!0))};let{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=(0,nl.G)(t),this.isVariantNode=(0,nl.M)(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in c){let t=c[e];void 0!==a[e]&&(0,tR.i)(t)&&t.set(a[e],!1)}}}class nv extends ng{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,t){let{vars:n,style:r}=t;delete n[e],delete r[e]}constructor(){super(...arguments),this.KeyframeResolver=eL}}class ny extends nv{readValueFromInstance(e,t){if(c.G.has(t)){let e=eK(t);return e&&e.default||0}{let n=window.getComputedStyle(e),r=((0,_.f)(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,t){let{transformPagePoint:n}=t;return function(e){let{top:t,left:n,right:r,bottom:i}=e;return{x:{min:n,max:r},y:{min:t,max:i}}}(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),n))}build(e,t,n){(0,nt.r)(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return(0,nn.U)(e,t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;(0,tR.i)(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent="".concat(e))}))}constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=nr.N}}var nb=n(9548),nw=n(8348),nx=n(5998),nE=n(8766),nS=n(1661),nT=n(7612);class nP extends nv{getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(c.G.has(t)){let e=eK(t);return e&&e.default||0}return t=nE.s.has(t)?t:(0,nx.D)(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return(0,nb.U)(e,t,n)}build(e,t,n){(0,nw.i)(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){(0,nS.K)(e,t,n,r)}mount(e){this.isSVGTag=(0,nT.a)(e.tagName),super.mount(e)}constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=nh}}var nk=n(9296);let nM={renderer:(e,t)=>(0,nk.q)(e)?new nP(t):new ny(t,{allowProjection:e!==ne.Fragment}),animation:{Feature:tW},exit:{Feature:tU},inView:{Feature:t7},tap:{Feature:t4},focus:{Feature:t0},hover:{Feature:tQ}}},5998:function(e,t,n){n.d(t,{D:function(){return r}});let r=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},7126:function(e,t,n){n.d(t,{f:function(){return i},t:function(){return s}});let r=e=>t=>"string"==typeof t&&t.startsWith(e),i=r("--"),o=r("var(--"),s=e=>!!o(e)&&a.test(e.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},9296:function(e,t,n){n.d(t,{q:function(){return i}});let r=["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 i(e){if("string"!=typeof e||e.includes("-"));else if(r.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}},4412:function(e,t,n){n.d(t,{j:function(){return l}});var r=n(5218),i=n(2724);let o={borderWidth:i.px,borderTopWidth:i.px,borderRightWidth:i.px,borderBottomWidth:i.px,borderLeftWidth:i.px,borderRadius:i.px,radius:i.px,borderTopLeftRadius:i.px,borderTopRightRadius:i.px,borderBottomRightRadius:i.px,borderBottomLeftRadius:i.px,width:i.px,maxWidth:i.px,height:i.px,maxHeight:i.px,top:i.px,right:i.px,bottom:i.px,left:i.px,padding:i.px,paddingTop:i.px,paddingRight:i.px,paddingBottom:i.px,paddingLeft:i.px,margin:i.px,marginTop:i.px,marginRight:i.px,marginBottom:i.px,marginLeft:i.px,backgroundPositionX:i.px,backgroundPositionY:i.px},s={rotate:i.RW,rotateX:i.RW,rotateY:i.RW,rotateZ:i.RW,scale:r.bA,scaleX:r.bA,scaleY:r.bA,scaleZ:r.bA,skew:i.RW,skewX:i.RW,skewY:i.RW,distance:i.px,translateX:i.px,translateY:i.px,translateZ:i.px,x:i.px,y:i.px,z:i.px,perspective:i.px,transformPerspective:i.px,opacity:r.Fq,originX:i.$C,originY:i.$C,originZ:i.px},a={...r.Rx,transform:Math.round},l={...o,...s,zIndex:a,size:i.px,fillOpacity:r.Fq,strokeOpacity:r.Fq,numOctaves:a}},5275:function(e,t,n){n.d(t,{r:function(){return u}});var r=n(618);let i=(e,t)=>t&&"number"==typeof e?t.transform(e):e;var o=n(4412);let s={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},a=r._.length;var l=n(7126);function u(e,t,n){let{style:u,vars:c,transformOrigin:d}=e,f=!1,p=!1;for(let e in t){let n=t[e];if(r.G.has(e)){f=!0;continue}if((0,l.f)(e)){c[e]=n;continue}{let t=i(n,o.j[e]);e.startsWith("origin")?(p=!0,d[e]=t):u[e]=t}}if(!t.transform&&(f||n?u.transform=function(e,t,n){let l="",u=!0;for(let c=0;c<a;c++){let a=r._[c],d=e[a];if(void 0===d)continue;let f=!0;if(!(f="number"==typeof d?d===(a.startsWith("scale")?1:0):0===parseFloat(d))||n){let e=i(d,o.j[a]);if(!f){u=!1;let t=s[a]||a;l+="".concat(t,"(").concat(e,") ")}n&&(t[a]=e)}}return l=l.trim(),n?l=n(t,u?"":l):u&&(l="none"),l}(t,e.transform,n):u.transform&&(u.transform="none")),p){let{originX:e="50%",originY:t="50%",originZ:n=0}=d;u.transformOrigin="".concat(e," ").concat(t," ").concat(n)}}},4269:function(e,t,n){n.d(t,{N:function(){return r}});function r(e,t,n,r){let{style:i,vars:o}=t;for(let t in Object.assign(e.style,i,r&&r.getProjectionStyles(n)),o)e.style.setProperty(t,o[t])}},6235:function(e,t,n){n.d(t,{U:function(){return o}});var r=n(7989),i=n(2702);function o(e,t,n){var o;let{style:s}=e,a={};for(let l in s)((0,i.i)(s[l])||t.style&&(0,i.i)(t.style[l])||(0,r.j)(l,e)||(null===(o=null==n?void 0:n.getValue(l))||void 0===o?void 0:o.liveStyle)!==void 0)&&(a[l]=s[l]);return n&&s&&"string"==typeof s.willChange&&(n.applyWillChange=!1),a}},618:function(e,t,n){n.d(t,{G:function(){return i},_:function(){return r}});let r=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],i=new Set(r)},8348:function(e,t,n){n.d(t,{i:function(){return l}});var r=n(5275),i=n(2724);function o(e,t,n){return"string"==typeof e?e:i.px.transform(t+n*e)}let s={offset:"stroke-dashoffset",array:"stroke-dasharray"},a={offset:"strokeDashoffset",array:"strokeDasharray"};function l(e,t,n,l){let{attrX:u,attrY:c,attrScale:d,originX:f,originY:p,pathLength:h,pathSpacing:m=1,pathOffset:g=0,...v}=t;if((0,r.r)(e,v,l),n){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:y,style:b,dimensions:w}=e;y.transform&&(w&&(b.transform=y.transform),delete y.transform),w&&(void 0!==f||void 0!==p||b.transform)&&(b.transformOrigin=function(e,t,n){let r=o(t,e.x,e.width),i=o(n,e.y,e.height);return"".concat(r," ").concat(i)}(w,void 0!==f?f:.5,void 0!==p?p:.5)),void 0!==u&&(y.x=u),void 0!==c&&(y.y=c),void 0!==d&&(y.scale=d),void 0!==h&&function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=!(arguments.length>4)||void 0===arguments[4]||arguments[4];e.pathLength=1;let l=o?s:a;e[l.offset]=i.px.transform(-r);let u=i.px.transform(t),c=i.px.transform(n);e[l.array]="".concat(u," ").concat(c)}(y,h,m,g,!1)}},8766:function(e,t,n){n.d(t,{s:function(){return r}});let r=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"])},7612:function(e,t,n){n.d(t,{a:function(){return r}});let r=e=>"string"==typeof e&&"svg"===e.toLowerCase()},1661:function(e,t,n){n.d(t,{K:function(){return s}});var r=n(5998),i=n(4269),o=n(8766);function s(e,t,n,s){for(let n in(0,i.N)(e,t,void 0,s),t.attrs)e.setAttribute(o.s.has(n)?n:(0,r.D)(n),t.attrs[n])}},9548:function(e,t,n){n.d(t,{U:function(){return s}});var r=n(2702),i=n(6235),o=n(618);function s(e,t,n){let s=(0,i.U)(e,t,n);for(let n in e)((0,r.i)(e[n])||(0,r.i)(t[n]))&&(s[-1!==o._.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return s}},9739:function(e,t,n){n.d(t,{G:function(){return s},M:function(){return a}});var r=n(4633),i=n(6930),o=n(1867);function s(e){return(0,r.H)(e.animate)||o.V.some(t=>(0,i.$)(e[t]))}function a(e){return!!(s(e)||e.variants)}},6930:function(e,t,n){n.d(t,{$:function(){return r}});function r(e){return"string"==typeof e||Array.isArray(e)}},1422:function(e,t,n){function r(e){let t=[{},{}];return null==e||e.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function i(e,t,n,i){if("function"==typeof t){let[o,s]=r(i);t=t(void 0!==n?n:e.custom,o,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[o,s]=r(i);t=t(void 0!==n?n:e.custom,o,s)}return t}n.d(t,{o:function(){return i}})},1867:function(e,t,n){n.d(t,{V:function(){return i},e:function(){return r}});let r=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],i=["initial",...r]},6832:function(e,t,n){n.d(t,{c:function(){return r}});let r={skipAnimations:!1,useManualTiming:!1}},406:function(e,t,n){function r(e,t){-1===e.indexOf(t)&&e.push(t)}function i(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}n.d(t,{cl:function(){return i},y4:function(){return r}})},2476:function(e,t,n){n.d(t,{u:function(){return r}});let r=(e,t,n)=>n>t?t:n<e?e:n},9908:function(e,t,n){n.d(t,{K:function(){return i},k:function(){return o}});var r=n(3393);let i=r.Z,o=r.Z},1702:function(e,t,n){n.d(t,{j:function(){return r}});let r=!0},3393:function(e,t,n){n.d(t,{Z:function(){return r}});let r=e=>e},698:function(e,t,n){n.d(t,{Y:function(){return o},p:function(){return i}});var r=n(561);let i=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),o=e=>(0,r.C)(e)?e[e.length-1]||0:e},2685:function(e,t,n){n.d(t,{L:function(){return i}});var r=n(406);class i{add(e){return(0,r.y4)(this.subscriptions,e),()=>(0,r.cl)(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}constructor(){this.subscriptions=[]}}},2435:function(e,t,n){n.d(t,{h:function(){return i}});var r=n(4090);function i(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},5526:function(e,t,n){n.d(t,{L:function(){return i}});var r=n(4090);let i=n(1702).j?r.useLayoutEffect:r.useEffect},2181:function(e,t,n){n.d(t,{R:function(){return r}});function r(e,t){return t?1e3/t*e:0}},3299:function(e,t,n){n.d(t,{BX:function(){return c},Hg:function(){return u}});var r=n(2685),i=n(2181),o=n(3791),s=n(4205);let a=e=>!isNaN(parseFloat(e)),l={current:void 0};class u{setCurrent(e){this.current=e,this.updatedAt=o.X.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=a(this.current))}setPrevFrameValue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.current;this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new r.L);let n=this.events[e].add(t);return"change"===e?()=>{n(),s.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return l.current&&l.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=o.X.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,i.R)(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}constructor(e,t={}){var n=this;this.version="11.11.7",this.canTrackVelocity=null,this.events={},this.updateAndNotify=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=o.X.now();n.updatedAt!==r&&n.setPrevFrameValue(),n.prev=n.current,n.setCurrent(e),n.current!==n.prev&&n.events.change&&n.events.change.notify(n.current),t&&n.events.renderRequest&&n.events.renderRequest.notify(n.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}}function c(e,t){return new u(e,t)}},5218:function(e,t,n){n.d(t,{Fq:function(){return o},Rx:function(){return i},bA:function(){return s}});var r=n(2476);let i={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},o={...i,transform:e=>(0,r.u)(0,1,e)},s={...i,default:1}},2724:function(e,t,n){n.d(t,{$C:function(){return u},RW:function(){return i},aQ:function(){return o},px:function(){return s},vh:function(){return a},vw:function(){return l}});let r=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>"".concat(t).concat(e)}),i=r("deg"),o=r("%"),s=r("px"),a=r("vh"),l=r("vw"),u={...o,parse:e=>o.parse(e)/100,transform:e=>o.transform(100*e)}},9634:function(e,t,n){n.d(t,{p:function(){return s}});var r=n(1353),i=n(5998),o=n(618);function s(e){return o.G.has(e)?"transform":r.t.has(e)?(0,i.D)(e):void 0}},2702:function(e,t,n){n.d(t,{i:function(){return r}});let r=e=>!!(e&&e.getVelocity)}}]);