react-email 3.0.3-canary.1 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/cli/index.js +52 -29
- package/dist/cli/index.mjs +41 -31
- package/dist/preview/.next/BUILD_ID +1 -1
- package/dist/preview/.next/app-build-manifest.json +28 -28
- package/dist/preview/.next/build-manifest.json +13 -13
- package/dist/preview/.next/cache/eslint/.cache_117y9un +1 -1
- package/dist/preview/.next/cache/webpack/client-production/0.pack +0 -0
- package/dist/preview/.next/cache/webpack/client-production/index.pack +0 -0
- package/dist/preview/.next/cache/webpack/edge-server-production/index.pack +0 -0
- package/dist/preview/.next/cache/webpack/server-production/0.pack +0 -0
- package/dist/preview/.next/cache/webpack/server-production/index.pack +0 -0
- package/dist/preview/.next/next-minimal-server.js.nft.json +1 -1
- package/dist/preview/.next/next-server.js.nft.json +1 -1
- package/dist/preview/.next/prerender-manifest.json +1 -1
- package/dist/preview/.next/required-server-files.json +1 -1
- package/dist/preview/.next/server/app/_not-found/page.js +1 -1
- package/dist/preview/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/dist/preview/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/preview/.next/server/app/favicon.ico/route.js +2 -2
- package/dist/preview/.next/server/app/favicon.ico/route.js.nft.json +1 -1
- package/dist/preview/.next/server/app/page.js +1 -1
- package/dist/preview/.next/server/app/page.js.nft.json +1 -1
- package/dist/preview/.next/server/app/page_client-reference-manifest.js +1 -1
- package/dist/preview/.next/server/app/preview/[...slug]/page.js +6 -6
- package/dist/preview/.next/server/app/preview/[...slug]/page.js.nft.json +1 -1
- package/dist/preview/.next/server/app/preview/[...slug]/page_client-reference-manifest.js +1 -1
- package/dist/preview/.next/server/chunks/128.js +7 -0
- package/dist/preview/.next/server/chunks/{845.js → 176.js} +2 -2
- package/dist/preview/.next/server/chunks/287.js +4 -0
- package/dist/preview/.next/server/chunks/303.js +6 -0
- package/dist/preview/.next/server/chunks/359.js +10 -0
- package/dist/preview/.next/server/chunks/6.js +1 -1
- package/dist/preview/.next/server/chunks/894.js +4 -0
- package/dist/preview/.next/server/middleware-build-manifest.js +1 -1
- package/dist/preview/.next/server/pages/500.html +1 -1
- package/dist/preview/.next/server/pages/_app.js +1 -1
- package/dist/preview/.next/server/pages/_app.js.nft.json +1 -1
- package/dist/preview/.next/server/pages/_document.js +1 -1
- package/dist/preview/.next/server/pages/_document.js.nft.json +1 -1
- package/dist/preview/.next/server/pages/_error.js +1 -1
- package/dist/preview/.next/server/pages/_error.js.nft.json +1 -1
- package/dist/preview/.next/server/server-reference-manifest.js +1 -1
- package/dist/preview/.next/server/server-reference-manifest.json +1 -1
- package/dist/preview/.next/static/9wK7iUJPUvFYJNYOqHNpo/_buildManifest.js +1 -0
- package/dist/preview/.next/static/chunks/121-c9990f9db62882f2.js +2 -0
- package/dist/preview/.next/static/chunks/262-1ec6780d76508af8.js +1 -0
- package/dist/preview/.next/static/chunks/{124-ae7f66e23ad37cb6.js → 599-b4e686757f7b900d.js} +1 -1
- package/dist/preview/.next/static/chunks/732-2b6186d8c8624033.js +1 -0
- package/dist/preview/.next/static/chunks/783-41562adc25d0c844.js +9 -0
- package/dist/preview/.next/static/chunks/app/_not-found/{page-f013323e54e30eb4.js → page-02dfc5a8a0bd636e.js} +1 -1
- package/dist/preview/.next/static/chunks/app/{layout-6a058829ca2e1648.js → layout-62d01ca567f6fd12.js} +1 -1
- package/dist/preview/.next/static/chunks/app/page-630c6c846e3efc69.js +1 -0
- package/dist/preview/.next/static/chunks/app/preview/[...slug]/page-6547e9f3ba86c271.js +1 -0
- package/dist/preview/.next/static/chunks/{9e70e2c9-cf735c555aae829e.js → f38cb6f6-40e76da092bb0490.js} +1 -1
- package/dist/preview/.next/static/chunks/main-app-6ed588927d8fd56c.js +1 -0
- package/dist/preview/.next/static/chunks/main-ee2ceeb6c8bf53ac.js +1 -0
- package/dist/preview/.next/static/chunks/pages/_app-02aac361ebb5625a.js +1 -0
- package/dist/preview/.next/static/chunks/pages/_error-52f603c388364756.js +1 -0
- package/dist/preview/.next/static/chunks/polyfills-78c92fac7aa8fdd8.js +1 -0
- package/dist/preview/.next/static/chunks/{webpack-787bdf42b5977b69.js → webpack-cf1ab84f284a4073.js} +1 -1
- package/dist/preview/.next/trace +52 -52
- package/package.json +2 -2
- package/src/actions/render-email-by-path.tsx +2 -2
- package/src/utils/register-spinner-autostopping.ts +28 -0
- package/dist/preview/.next/server/chunks/29.js +0 -10
- package/dist/preview/.next/server/chunks/702.js +0 -7
- package/dist/preview/.next/server/chunks/765.js +0 -6
- package/dist/preview/.next/server/chunks/95.js +0 -4
- package/dist/preview/.next/server/chunks/979.js +0 -4
- package/dist/preview/.next/static/UkSc9BvDf-yFhQmi9UeyH/_buildManifest.js +0 -1
- package/dist/preview/.next/static/chunks/246-aeae0d42438095fa.js +0 -1
- package/dist/preview/.next/static/chunks/271-465a8f7fa0f088b0.js +0 -1
- package/dist/preview/.next/static/chunks/814-1930a70da275907a.js +0 -9
- package/dist/preview/.next/static/chunks/816-025a1ae3d98f8bbc.js +0 -2
- package/dist/preview/.next/static/chunks/app/page-bfde41be5bed6456.js +0 -1
- package/dist/preview/.next/static/chunks/app/preview/[...slug]/page-970a94d529b78bd7.js +0 -1
- package/dist/preview/.next/static/chunks/main-3b591628bc46f6ef.js +0 -1
- package/dist/preview/.next/static/chunks/main-app-f5afc98786b35330.js +0 -1
- package/dist/preview/.next/static/chunks/pages/_app-88c2f98e605e9ac8.js +0 -1
- package/dist/preview/.next/static/chunks/pages/_error-2c30ce48edcc8dfe.js +0 -1
- package/dist/preview/.next/static/chunks/polyfills-42372ed130431b0a.js +0 -1
- package/src/utils/close-ora-on-sigint.ts +0 -15
- /package/dist/preview/.next/static/{UkSc9BvDf-yFhQmi9UeyH → 9wK7iUJPUvFYJNYOqHNpo}/_ssgManifest.js +0 -0
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[814],{5073:function(e,t,n){n.d(t,{default:function(){return i.a}});var r=n(4337),i=n.n(r)},1031:function(e,t,n){var r=n(6002);n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},3277:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}}),n(9403);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)},6288: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(9403),("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)},8488:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return b}});let r=n(6974),i=n(1732),o=n(3542),a=i._(n(7292)),s=r._(n(7994)),l=r._(n(821)),u=n(8e3),c=n(9319),d=n(5617);n(3948);let h=n(1101),f=r._(n(8225)),p={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function m(e,t,n,r,i,o,a){let s=null==e?void 0:e.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}}))}function g(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}"undefined"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let v=(0,a.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:i,height:s,width:l,decoding:u,className:c,style:d,fetchPriority:h,placeholder:f,loading:p,unoptimized:v,fill:y,onLoadRef:b,onLoadingCompleteRef:x,setBlurComplete:w,setShowAltText:P,sizesInput:E,onLoad:S,onError:C,...T}=e;return(0,o.jsx)("img",{...T,...g(h),loading:p,width:l,height:s,decoding:u,"data-nimg":y?"fill":"1",className:c,style:d,sizes:i,srcSet:r,src:n,ref:(0,a.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(C&&(e.src=e.src),e.complete&&m(e,f,b,x,w,v,E))},[n,f,b,x,w,C,v,E,t]),onLoad:e=>{m(e.currentTarget,f,b,x,w,v,E)},onError:e=>{P(!0),"empty"!==f&&w(!0),C&&C(e)}})});function y(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...g(n.fetchPriority)};return t&&s.default.preload?(s.default.preload(n.src,r),null):(0,o.jsx)(l.default,{children:(0,o.jsx)("link",{rel:"preload",href:n.srcSet?void 0:n.src,...r},"__nimg-"+n.src+n.srcSet+n.sizes)})}let b=(0,a.forwardRef)((e,t)=>{let n=(0,a.useContext)(h.RouterContext),r=(0,a.useContext)(d.ImageConfigContext),i=(0,a.useMemo)(()=>{let e=p||r||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[r]),{onLoad:s,onLoadingComplete:l}=e,m=(0,a.useRef)(s);(0,a.useEffect)(()=>{m.current=s},[s]);let g=(0,a.useRef)(l);(0,a.useEffect)(()=>{g.current=l},[l]);let[b,x]=(0,a.useState)(!1),[w,P]=(0,a.useState)(!1),{props:E,meta:S}=(0,u.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:b,showAltText:w});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v,{...E,unoptimized:S.unoptimized,placeholder:S.placeholder,fill:S.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:x,setShowAltText:P,sizesInput:e.sizes,ref:t}),S.priority?(0,o.jsx)(y,{isAppRouter:!n,imgAttributes:E}):null]})});("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)},4337:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});let r=n(6974),i=n(3542),o=r._(n(7292)),a=n(5305),s=n(5052),l=n(5659),u=n(6774),c=n(3277),d=n(1101),h=n(4019),f=n(9350),p=n(6288),m=n(5042),g=n(4665),v=new Set;function y(e,t,n,r,i,o){if("undefined"!=typeof window&&(o||(0,s.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)}(async()=>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 x=o.default.forwardRef(function(e,t){let n,r;let{href:l,as:v,children:x,prefetch:w=null,passHref:P,replace:E,shallow:S,scroll:C,locale:T,onClick:R,onMouseEnter:A,onTouchStart:M,legacyBehavior:k=!1,...j}=e;n=x,k&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let O=o.default.useContext(d.RouterContext),L=o.default.useContext(h.AppRouterContext),D=null!=O?O:L,N=!O,V=!1!==w,I=null===w?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,a.resolveHref)(O,l,!0);return{href:e,as:v?(0,a.resolveHref)(O,v):t||e}},[O,l,v]),B=o.default.useRef(F),W=o.default.useRef(_);k&&(r=o.default.Children.only(n));let z=k?r&&"object"==typeof r&&r.ref:t,[U,$,H]=(0,f.useIntersection)({rootMargin:"200px"}),Y=o.default.useCallback(e=>{(W.current!==_||B.current!==F)&&(H(),W.current=_,B.current=F),U(e),z&&("function"==typeof z?z(e):"object"==typeof z&&(z.current=e))},[_,z,F,H,U]);o.default.useEffect(()=>{D&&$&&V&&y(D,F,_,{locale:T},{kind:I},N)},[_,F,$,T,V,null==O?void 0:O.locale,D,N,I]);let K={ref:Y,onClick(e){k||"function"!=typeof R||R(e),k&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),D&&!e.defaultPrevented&&function(e,t,n,r,i,a,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,s.isLocalURL)(n)))return;e.preventDefault();let h=()=>{let e=null==l||l;"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:a,locale:u,scroll:e}):t[i?"replace":"push"](r||n,{scroll:e})};c?o.default.startTransition(h):h()}(e,D,F,_,E,S,C,T,N)},onMouseEnter(e){k||"function"!=typeof A||A(e),k&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),D&&(V||!N)&&y(D,F,_,{locale:T,priority:!0,bypassPrefetchedCheck:!0},{kind:I},N)},onTouchStart:function(e){k||"function"!=typeof M||M(e),k&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),D&&(V||!N)&&y(D,F,_,{locale:T,priority:!0,bypassPrefetchedCheck:!0},{kind:I},N)}};if((0,u.isAbsoluteUrl)(_))K.href=_;else if(!k||P||"a"===r.type&&!("href"in r.props)){let e=void 0!==T?T:null==O?void 0:O.locale,t=(null==O?void 0:O.isLocaleDomain)&&(0,p.getDomainLocale)(_,e,null==O?void 0:O.locales,null==O?void 0:O.domainLocales);K.href=t||(0,m.addBasePath)((0,c.addLocale)(_,e,null==O?void 0:O.defaultLocale))}return k?o.default.cloneElement(r,K):(0,i.jsx)("a",{...j,...K,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)},3453: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,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});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)},5305:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});let r=n(2627),i=n(5659),o=n(66),a=n(6774),s=n(9403),l=n(5052),u=n(3960),c=n(2745);function d(e,t,n){let d;let h="string"==typeof t?t:(0,i.formatWithValidation)(t),f=h.match(/^[a-zA-Z]{1,}:\/\//),p=f?h.slice(f[0].length):h;if((p.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+h+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,a.normalizeRepeatedSlashes)(p);h=(f?f[0]:"")+t}if(!(0,l.isLocalURL)(h))return n?[h]:h;try{d=new URL(h.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){d=new URL("/","http://n")}try{let e=new URL(h,d);e.pathname=(0,s.normalizePathTrailingSlash)(e.pathname);let t="";if((0,u.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:a,params:s}=(0,c.interpolateAs)(e.pathname,e.pathname,n);a&&(t=(0,i.formatWithValidation)({pathname:a,hash:e.hash,query:(0,o.omit)(n,s)}))}let a=e.origin===d.origin?e.href.slice(e.origin.length):e.href;return n?[a,t||a]:a}catch(e){return n?[h]:h}}("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)},9350:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(7292),i=n(3453),o="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,u=l||!o,[c,d]=(0,r.useState)(!1),h=(0,r.useRef)(null),f=(0,r.useCallback)(e=>{h.current=e},[]);return(0,r.useEffect)(()=>{if(o){if(u||c)return;let e=h.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=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.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},s.push(n),a.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(),a.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.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,h.current]),[f,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)},4085:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return r}});let r=n(6974)._(n(7292)).default.createContext({})},874:function(e,t){function n(e){let{ampFirst:t=!1,hybrid:n=!1,hasQuery:r=!1}=void 0===e?{}:e;return t||n&&r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return n}})},581: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}},8e3:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),n(3948);let r=n(1577),i=n(9319);function o(e){return void 0!==e.default}function a(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s(e,t){var n;let s,l,u,{src:c,sizes:d,unoptimized:h=!1,priority:f=!1,loading:p,className:m,quality:g,width:v,height:y,fill:b=!1,style:x,overrideSrc:w,onLoad:P,onLoadingComplete:E,placeholder:S="empty",blurDataURL:C,fetchPriority:T,decoding:R="async",layout:A,objectFit:M,objectPosition:k,lazyBoundary:j,lazyRoot:O,...L}=e,{imgConf:D,showAltText:N,blurComplete:V,defaultLoader:I}=t,F=D||i.imageConfigDefault;if("allSizes"in F)s=F;else{let e=[...F.deviceSizes,...F.imageSizes].sort((e,t)=>e-t),t=F.deviceSizes.sort((e,t)=>e-t);s={...F,allSizes:e,deviceSizes:t}}if(void 0===I)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let _=L.loader||I;delete L.loader,delete L.srcSet;let B="__next_img_default"in _;if(B){if("custom"===s.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=_;_=t=>{let{config:n,...r}=t;return e(r)}}if(A){"fill"===A&&(b=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[A];e&&(x={...x,...e});let t={responsive:"100vw",fill:"100vw"}[A];t&&!d&&(d=t)}let W="",z=a(v),U=a(y);if("object"==typeof(n=c)&&(o(n)||void 0!==n.src)){let e=o(c)?c.default:c;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(l=e.blurWidth,u=e.blurHeight,C=C||e.blurDataURL,W=e.src,!b){if(z||U){if(z&&!U){let t=z/e.width;U=Math.round(e.height*t)}else if(!z&&U){let t=U/e.height;z=Math.round(e.width*t)}}else z=e.width,U=e.height}}let $=!f&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:W)||c.startsWith("data:")||c.startsWith("blob:"))&&(h=!0,$=!1),s.unoptimized&&(h=!0),B&&c.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(h=!0),f&&(T="high");let H=a(g),Y=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:M,objectPosition:k}:{},N?{}:{color:"transparent"},x),K=V||"empty"===S?null:"blur"===S?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:z,heightInt:U,blurWidth:l,blurHeight:u,blurDataURL:C||"",objectFit:Y.objectFit})+'")':'url("'+S+'")',G=K?{backgroundSize:Y.objectFit||"cover",backgroundPosition:Y.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:K}:{},X=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:o,sizes:a,loader:s}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,a),c=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,r)=>s({config:t,src:n,quality:o,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:s({config:t,src:n,quality:o,width:l[c]})}}({config:s,src:c,unoptimized:h,width:z,quality:H,sizes:d,loader:_});return{props:{...L,loading:$?"lazy":p,fetchPriority:T,width:z,height:U,decoding:R,className:m,style:{...Y,...G},sizes:X.sizes,srcSet:X.srcSet,src:w||X.src},meta:{unoptimized:h,priority:f,placeholder:S,fill:b}}}},821: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,{default:function(){return m},defaultHead:function(){return d}});let r=n(6974),i=n(1732),o=n(3542),a=i._(n(7292)),s=r._(n(1954)),l=n(4085),u=n(2066),c=n(874);function d(e){void 0===e&&(e=!1);let t=[(0,o.jsx)("meta",{charSet:"utf-8"})];return e||t.push((0,o.jsx)("meta",{name:"viewport",content:"width=device-width"})),t}function h(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}n(3948);let f=["name","httpEquiv","charSet","itemProp"];function p(e,t){let{inAmpMode:n}=t;return e.reduce(h,[]).reverse().concat(d(n).reverse()).filter(function(){let e=new Set,t=new Set,n=new Set,r={};return i=>{let o=!0,a=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){a=!0;let t=i.key.slice(i.key.indexOf("$")+1);e.has(t)?o=!1:e.add(t)}switch(i.type){case"title":case"base":t.has(i.type)?o=!1:t.add(i.type);break;case"meta":for(let e=0,t=f.length;e<t;e++){let t=f[e];if(i.props.hasOwnProperty(t)){if("charSet"===t)n.has(t)?o=!1:n.add(t);else{let e=i.props[t],n=r[t]||new Set;("name"!==t||!a)&&n.has(e)?o=!1:(n.add(e),r[t]=n)}}}}return o}}()).reverse().map((e,t)=>{let r=e.key||t;if(!n&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,a.default.cloneElement(e,t)}return a.default.cloneElement(e,{key:r})})}let m=function(e){let{children:t}=e,n=(0,a.useContext)(l.AmpStateContext),r=(0,a.useContext)(u.HeadManagerContext);return(0,o.jsx)(s.default,{reduceComponentsToState:p,headManager:r,inAmpMode:(0,c.isInAmpMode)(n),children:t})};("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)},1577:function(e,t){function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:o,objectFit:a}=e,s=r?40*r:t,l=i?40*i:n,u=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},5617:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return o}});let r=n(6974)._(n(7292)),i=n(9319),o=r.default.createContext(i.imageConfigDefault)},9319: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,{VALID_LOADERS:function(){return n},imageConfigDefault:function(){return r}});let n=["default","imgix","cloudinary","akamai","custom"],r={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",localPatterns:void 0,remotePatterns:[],unoptimized:!1}},8225:function(e,t){function n(e){let{config:t,src:n,width:r,quality:i}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},1101:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});let r=n(6974)._(n(7292)).default.createContext(null)},5659: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},formatWithValidation:function(){return s},urlObjectKeys:function(){return a}});let r=n(1732)._(n(2627)),i=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:n}=e,o=e.protocol||"",a=e.pathname||"",s=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||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),""+o+u+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+s}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(e){return o(e)}},3960: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(5899),i=n(7822)},2745:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return o}});let r=n(9164),i=n(8591);function o(e,t,n){let o="",a=(0,i.getRouteRegex)(e),s=a.groups,l=(t!==e?(0,r.getRouteMatcher)(a)(t):"")||n;o=e;let u=Object.keys(s);return u.every(e=>{let t=l[e]||"",{repeat:n,optional:r}=s[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}}},7822:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return o}});let r=n(2561),i=/\/\[[^/]+?\](?=\/|$)/;function o(e){return(0,r.isInterceptionRouteAppPath)(e)&&(e=(0,r.extractInterceptionRouteInformation)(e).interceptedRoute),i.test(e)}},5052:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return o}});let r=n(6774),i=n(7632);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}}},66: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}})},2627: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,{assign:function(){return o},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return i}})},9164:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return i}});let r=n(6774);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")}},a={};return Object.keys(n).forEach(e=>{let t=n[e],r=i[t.pos];void 0!==r&&(a[e]=~r.indexOf("/")?r.split("/").map(e=>o(e)):t.repeat?[o(r)]:o(r))}),a}}},8591: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,{getNamedMiddlewareRegex:function(){return h},getNamedRouteRegex:function(){return d},getRouteRegex:function(){return l},parseParameter:function(){return a}});let r=n(2561),i=n(581),o=n(7789);function a(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 s(e){let t=(0,o.removeTrailingSlash)(e).slice(1).split("/"),n={},s=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}=a(o[1]);return n[e]={pos:s++,repeat:l,optional:r},"/"+(0,i.escapeStringRegexp)(t)+"([^/]+?)"}if(!o)return"/"+(0,i.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:r}=a(o[1]);return n[e]={pos:s++,repeat:t,optional:r},t?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function l(e){let{parameterizedRoute:t,groups:n}=s(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:n}}function u(e){let{interceptionMarker:t,getSafeRouteKey:n,segment:r,routeKeys:o,keyPrefix:s}=e,{key:l,optional:u,repeat:c}=a(r),d=l.replace(/\W/g,"");s&&(d=""+s+d);let h=!1;(0===d.length||d.length>30)&&(h=!0),isNaN(parseInt(d.slice(0,1)))||(h=!0),h&&(d=n()),s?o[d]=""+s+l:o[d]=l;let f=t?(0,i.escapeStringRegexp)(t):"";return c?u?"(?:/"+f+"(?<"+d+">.+?))?":"/"+f+"(?<"+d+">.+?)":"/"+f+"(?<"+d+">[^/]+?)"}function c(e,t){let n;let a=(0,o.removeTrailingSlash)(e).slice(1).split("/"),s=(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:a.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:s,interceptionMarker:n,segment:o[1],routeKeys:l,keyPrefix:t?"nxtI":void 0})}return o?u({getSafeRouteKey:s,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 h(e,t){let{parameterizedRoute:n}=s(e),{catchAll:r=!0}=t;if("/"===n)return{namedRegex:"^/"+(r?".*":"")+"$"};let{namedParameterizedRoute:i}=c(e,!1);return{namedRegex:"^"+i+(r?"(?:(/.*)?)":"")+"$"}}},5899: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),a=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),a=!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(a){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(a)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()}},1954:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let r=n(7292),i="undefined"==typeof window,o=i?()=>{}:r.useLayoutEffect,a=i?()=>{}:r.useEffect;function s(e){let{headManager:t,reduceComponentsToState:n}=e;function s(){if(t&&t.mountedInstances){let i=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(i,e))}}if(i){var l;null==t||null==(l=t.mountedInstances)||l.add(e.children),s()}return o(()=>{var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),()=>{var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=s),()=>{t&&(t._pendingUpdate=s)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},6774: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,{DecodeError:function(){return p},MiddlewareNotFoundError:function(){return y},MissingStaticPage:function(){return v},NormalizeError:function(){return m},PageNotFoundError:function(){return g},SP:function(){return h},ST:function(){return f},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return l},getLocationOrigin:function(){return a},getURL:function(){return s},isAbsoluteUrl:function(){return o},isResSent:function(){return u},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return c},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 a(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function s(){let{href:e}=window.location,t=a();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 h="undefined"!=typeof performance,f=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class p 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})}},7574:function(e,t,n){n.d(t,{M:function(){return r}});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},2950:function(e,t,n){n.d(t,{VY:function(){return R},fC:function(){return C},xz:function(){return T}});var r=n(7292),i=n(7574),o=n(6015),a=n(7454),s=n(8438),l=n(4985),u=n(9329),c=n(9110),d=n(4855),h=n(3542),f="Collapsible",[p,m]=(0,o.b)(f),[g,v]=p(f),y=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:i,defaultOpen:o,disabled:s,onOpenChange:l,...c}=e,[f=!1,p]=(0,a.T)({prop:i,defaultProp:o,onChange:l});return(0,h.jsx)(g,{scope:n,disabled:s,contentId:(0,d.M)(),open:f,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),children:(0,h.jsx)(u.WV.div,{"data-state":S(f),"data-disabled":s?"":void 0,...c,ref:t})})});y.displayName=f;var b="CollapsibleTrigger",x=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,o=v(b,n);return(0,h.jsx)(u.WV.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":S(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:(0,i.M)(e.onClick,o.onOpenToggle)})});x.displayName=b;var w="CollapsibleContent",P=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=v(w,e.__scopeCollapsible);return(0,h.jsx)(c.z,{present:n||i.open,children:e=>{let{present:n}=e;return(0,h.jsx)(E,{...r,ref:t,present:n})}})});P.displayName=w;var E=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:i,children:o,...a}=e,c=v(w,n),[d,f]=r.useState(i),p=r.useRef(null),m=(0,l.e)(t,p),g=r.useRef(0),y=g.current,b=r.useRef(0),x=b.current,P=c.open||d,E=r.useRef(P),C=r.useRef();return r.useEffect(()=>{let e=requestAnimationFrame(()=>E.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,s.b)(()=>{let e=p.current;if(e){C.current=C.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();g.current=t.height,b.current=t.width,E.current||(e.style.transitionDuration=C.current.transitionDuration,e.style.animationName=C.current.animationName),f(i)}},[c.open,i]),(0,h.jsx)(u.WV.div,{"data-state":S(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!P,...a,ref:m,style:{"--radix-collapsible-content-height":y?"".concat(y,"px"):void 0,"--radix-collapsible-content-width":x?"".concat(x,"px"):void 0,...e.style},children:P&&o})});function S(e){return e?"open":"closed"}var C=y,T=x,R=P},4985:function(e,t,n){n.d(t,{F:function(){return i},e:function(){return o}});var r=n(7292);function i(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function o(...e){return r.useCallback(i(...e),e)}},6015:function(e,t,n){n.d(t,{b:function(){return o}});var r=n(7292),i=n(3542);function o(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return o.scopeName=e,[function(t,o){let a=r.createContext(o),s=n.length;function l(t){let{scope:n,children:o,...l}=t,u=n?.[e][s]||a,c=r.useMemo(()=>l,Object.values(l));return(0,i.jsx)(u.Provider,{value:c,children:o})}return n=[...n,o],l.displayName=t+"Provider",[l,function(n,i){let l=i?.[e][s]||a,u=r.useContext(l);if(u)return u;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(o,...t)]}},8700:function(e,t,n){n.d(t,{XB:function(){return h}});var r,i=n(7292),o=n(7574),a=n(9329),s=n(4985),l=n(4209),u=n(3542),c="dismissableLayer.update",d=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h=i.forwardRef((e,t)=>{var n,h;let{disableOutsidePointerEvents:m=!1,onEscapeKeyDown:g,onPointerDownOutside:v,onFocusOutside:y,onInteractOutside:b,onDismiss:x,...w}=e,P=i.useContext(d),[E,S]=i.useState(null),C=null!==(h=null==E?void 0:E.ownerDocument)&&void 0!==h?h:null===(n=globalThis)||void 0===n?void 0:n.document,[,T]=i.useState({}),R=(0,s.e)(t,e=>S(e)),A=Array.from(P.layers),[M]=[...P.layersWithOutsidePointerEventsDisabled].slice(-1),k=A.indexOf(M),j=E?A.indexOf(E):-1,O=P.layersWithOutsidePointerEventsDisabled.size>0,L=j>=k,D=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,l.W)(e),o=i.useRef(!1),a=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){p("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...P.branches].some(e=>e.contains(t));!L||n||(null==v||v(e),null==b||b(e),e.defaultPrevented||null==x||x())},C),N=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,l.W)(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!o.current&&p("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...P.branches].some(e=>e.contains(t))||(null==y||y(e),null==b||b(e),e.defaultPrevented||null==x||x())},C);return!function(e,t=globalThis?.document){let n=(0,l.W)(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{j!==P.layers.size-1||(null==g||g(e),!e.defaultPrevented&&x&&(e.preventDefault(),x()))},C),i.useEffect(()=>{if(E)return m&&(0===P.layersWithOutsidePointerEventsDisabled.size&&(r=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),P.layersWithOutsidePointerEventsDisabled.add(E)),P.layers.add(E),f(),()=>{m&&1===P.layersWithOutsidePointerEventsDisabled.size&&(C.body.style.pointerEvents=r)}},[E,C,m,P]),i.useEffect(()=>()=>{E&&(P.layers.delete(E),P.layersWithOutsidePointerEventsDisabled.delete(E),f())},[E,P]),i.useEffect(()=>{let e=()=>T({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(a.WV.div,{...w,ref:R,style:{pointerEvents:O?L?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.M)(e.onFocusCapture,N.onFocusCapture),onBlurCapture:(0,o.M)(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:(0,o.M)(e.onPointerDownCapture,D.onPointerDownCapture)})});function f(){let e=new CustomEvent(c);document.dispatchEvent(e)}function p(e,t,n,r){let{discrete:i}=r,o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),i?(0,a.jH)(o,s):o.dispatchEvent(s)}h.displayName="DismissableLayer",i.forwardRef((e,t)=>{let n=i.useContext(d),r=i.useRef(null),o=(0,s.e)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,u.jsx)(a.WV.div,{...e,ref:o})}).displayName="DismissableLayerBranch"},4855:function(e,t,n){n.d(t,{M:function(){return l}});var r,i=n(7292),o=n(8438),a=(r||(r=n.t(i,2)))["useId".toString()]||(()=>void 0),s=0;function l(e){let[t,n]=i.useState(a());return(0,o.b)(()=>{e||n(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},9816:function(e,t,n){let r;n.d(t,{ee:function(){return eq},VY:function(){return e0},h_:function(){return eQ},fC:function(){return eZ},xz:function(){return eJ}});var i,o,a,s,l,u,c,d=n(7292),h=n(7574),f=n(4985),p=n(6015),m=n(8700),g=0;function v(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var y=n(9329),b=n(4209),x=n(3542),w="focusScope.autoFocusOnMount",P="focusScope.autoFocusOnUnmount",E={bubbles:!1,cancelable:!0},S=d.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[s,l]=d.useState(null),u=(0,b.W)(i),c=(0,b.W)(o),h=d.useRef(null),p=(0,f.e)(t,e=>l(e)),m=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let e=function(e){if(m.paused||!s)return;let t=e.target;s.contains(t)?h.current=t:R(h.current,{select:!0})},t=function(e){if(m.paused||!s)return;let t=e.relatedTarget;null===t||s.contains(t)||R(h.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&R(s)});return s&&n.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,s,m.paused]),d.useEffect(()=>{if(s){A.add(m);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(w,E);s.addEventListener(w,u),s.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(R(r,{select:t}),document.activeElement!==n)return}(C(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&R(s))}return()=>{s.removeEventListener(w,u),setTimeout(()=>{let t=new CustomEvent(P,E);s.addEventListener(P,c),s.dispatchEvent(t),t.defaultPrevented||R(null!=e?e:document.body,{select:!0}),s.removeEventListener(P,c),A.remove(m)},0)}}},[s,u,c,m]);let g=d.useCallback(e=>{if(!n&&!r||m.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,o]=function(e){let t=C(e);return[T(t,e),T(t.reverse(),e)]}(t);r&&o?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&R(o,{select:!0})):(e.preventDefault(),n&&R(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,m.paused]);return(0,x.jsx)(y.WV.div,{tabIndex:-1,...a,ref:p,onKeyDown:g})});function C(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function T(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function R(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}S.displayName="FocusScope";var A=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=M(r,e)).unshift(e)},remove(e){var t;null===(t=(r=M(r,e))[0])||void 0===t||t.resume()}});function M(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var k=n(4855),j=n(2517),O=n(4694),L=n(9110),D=n(302),N=n(7454),V=new WeakMap,I=new WeakMap,F={},_=0,B=function(e){return e&&(e.host||B(e.parentNode))},W=function(e,t,n,r){var i=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=B(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});F[n]||(F[n]=new WeakMap);var o=F[n],a=[],s=new Set,l=new Set(i),u=function(e){!e||s.has(e)||(s.add(e),u(e.parentNode))};i.forEach(u);var c=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(r),i=null!==t&&"false"!==t,l=(V.get(e)||0)+1,u=(o.get(e)||0)+1;V.set(e,l),o.set(e,u),a.push(e),1===l&&i&&I.set(e,!0),1===u&&e.setAttribute(n,"true"),i||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),s.clear(),_++,function(){a.forEach(function(e){var t=V.get(e)-1,i=o.get(e)-1;V.set(e,t),o.set(e,i),t||(I.has(e)||e.removeAttribute(r),I.delete(e)),i||e.removeAttribute(n)}),--_||(V=new WeakMap,V=new WeakMap,I=new WeakMap,F={})}},z=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),W(r,i,n,"aria-hidden")):function(){return null}},U=function(){return(U=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function $(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}"function"==typeof SuppressedError&&SuppressedError;var H="right-scroll-bar-position",Y="width-before-scroll-bar";function K(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var G="undefined"!=typeof window?d.useLayoutEffect:d.useEffect,X=new WeakMap,Z=(void 0===i&&(i={}),(void 0===o&&(o=function(e){return e}),a=[],s=!1,l={read:function(){if(s)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:null},useMedium:function(e){var t=o(e,s);return a.push(t),function(){a=a.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(s=!0;a.length;){var t=a;a=[],t.forEach(e)}a={push:function(t){return e(t)},filter:function(){return a}}},assignMedium:function(e){s=!0;var t=[];if(a.length){var n=a;a=[],n.forEach(e),t=a}var r=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(r)};i(),a={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),a}}}}).options=U({async:!0,ssr:!1},i),l),q=function(){},J=d.forwardRef(function(e,t){var n,r,i,o,a=d.useRef(null),s=d.useState({onScrollCapture:q,onWheelCapture:q,onTouchMoveCapture:q}),l=s[0],u=s[1],c=e.forwardProps,h=e.children,f=e.className,p=e.removeScrollBar,m=e.enabled,g=e.shards,v=e.sideCar,y=e.noIsolation,b=e.inert,x=e.allowPinchZoom,w=e.as,P=e.gapMode,E=$(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=(n=[a,t],r=function(e){return n.forEach(function(t){return K(t,e)})},(i=(0,d.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,o=i.facade,G(function(){var e=X.get(o);if(e){var t=new Set(e),r=new Set(n),i=o.current;t.forEach(function(e){r.has(e)||K(e,null)}),r.forEach(function(e){t.has(e)||K(e,i)})}X.set(o,n)},[n]),o),C=U(U({},E),l);return d.createElement(d.Fragment,null,m&&d.createElement(v,{sideCar:Z,removeScrollBar:p,shards:g,noIsolation:y,inert:b,setCallbacks:u,allowPinchZoom:!!x,lockRef:a,gapMode:P}),c?d.cloneElement(d.Children.only(h),U(U({},C),{ref:S})):d.createElement(void 0===w?"div":w,U({},C,{className:f,ref:S}),h))});J.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},J.classNames={fullWidth:Y,zeroRight:H};var Q=function(e){var t=e.sideCar,n=$(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return d.createElement(r,U({},n))};Q.isSideCarExport=!0;var ee=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=c||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},et=function(){var e=ee();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},en=function(){var e=et();return function(t){return e(t.styles,t.dynamic),null}},er={left:0,top:0,right:0,gap:0},ei=function(e){return parseInt(e||"",10)||0},eo=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[ei(n),ei(r),ei(i)]},ea=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return er;var t=eo(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},es=en(),el="data-scroll-locked",eu=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(el,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(H," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Y," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(H," .").concat(H," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Y," .").concat(Y," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(el,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},ec=function(){var e=parseInt(document.body.getAttribute(el)||"0",10);return isFinite(e)?e:0},ed=function(){d.useEffect(function(){return document.body.setAttribute(el,(ec()+1).toString()),function(){var e=ec()-1;e<=0?document.body.removeAttribute(el):document.body.setAttribute(el,e.toString())}},[])},eh=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;ed();var o=d.useMemo(function(){return ea(i)},[i]);return d.createElement(es,{styles:eu(o,!t,i,n?"":"!important")})},ef=!1;if("undefined"!=typeof window)try{var ep=Object.defineProperty({},"passive",{get:function(){return ef=!0,!0}});window.addEventListener("test",ep,ep),window.removeEventListener("test",ep,ep)}catch(e){ef=!1}var em=!!ef&&{passive:!1},eg=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},ev=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),ey(e,r)){var i=eb(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ey=function(e,t){return"v"===e?eg(t,"overflowY"):eg(t,"overflowX")},eb=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},ex=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,l=n.target,u=t.contains(l),c=!1,d=s>0,h=0,f=0;do{var p=eb(e,l),m=p[0],g=p[1]-p[2]-a*m;(m||g)&&ey(e,l)&&(h+=g,f+=m),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&1>Math.abs(h)||!i&&s>h)?c=!0:!d&&(i&&1>Math.abs(f)||!i&&-s>f)&&(c=!0),c},ew=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eP=function(e){return[e.deltaX,e.deltaY]},eE=function(e){return e&&"current"in e?e.current:e},eS=0,eC=[],eT=(u=function(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),i=d.useState(eS++)[0],o=d.useState(en)[0],a=d.useRef(e);d.useEffect(function(){a.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(eE),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=d.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var i,o=ew(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-o[0],u="deltaY"in e?e.deltaY:s[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var h=ev(d,c);if(!h)return!0;if(h?i=d:(i="v"===d?"h":"v",h=ev(d,c)),!h)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var f=r.current||i;return ex(f,t,e,"h"===f?l:u,!0)},[]),l=d.useCallback(function(e){if(eC.length&&eC[eC.length-1]===o){var n="deltaY"in e?eP(e):ew(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(a.current.shards||[]).map(eE).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=d.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),c=d.useCallback(function(e){n.current=ew(e),r.current=void 0},[]),h=d.useCallback(function(t){u(t.type,eP(t),t.target,s(t,e.lockRef.current))},[]),f=d.useCallback(function(t){u(t.type,ew(t),t.target,s(t,e.lockRef.current))},[]);d.useEffect(function(){return eC.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",l,em),document.addEventListener("touchmove",l,em),document.addEventListener("touchstart",c,em),function(){eC=eC.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,em),document.removeEventListener("touchmove",l,em),document.removeEventListener("touchstart",c,em)}},[]);var p=e.removeScrollBar,m=e.inert;return d.createElement(d.Fragment,null,m?d.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?d.createElement(eh,{gapMode:e.gapMode}):null)},Z.useMedium(u),Q),eR=d.forwardRef(function(e,t){return d.createElement(J,U({},e,{ref:t,sideCar:eT}))});eR.classNames=J.classNames;var eA="Popover",[eM,ek]=(0,p.b)(eA,[j.D7]),ej=(0,j.D7)(),[eO,eL]=eM(eA),eD=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:a=!1}=e,s=ej(t),l=d.useRef(null),[u,c]=d.useState(!1),[h=!1,f]=(0,N.T)({prop:r,defaultProp:i,onChange:o});return(0,x.jsx)(j.fC,{...s,children:(0,x.jsx)(eO,{scope:t,contentId:(0,k.M)(),triggerRef:l,open:h,onOpenChange:f,onOpenToggle:d.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:d.useCallback(()=>c(!0),[]),onCustomAnchorRemove:d.useCallback(()=>c(!1),[]),modal:a,children:n})})};eD.displayName=eA;var eN="PopoverAnchor",eV=d.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=eL(eN,n),o=ej(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=i;return d.useEffect(()=>(a(),()=>s()),[a,s]),(0,x.jsx)(j.ee,{...o,...r,ref:t})});eV.displayName=eN;var eI="PopoverTrigger",eF=d.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=eL(eI,n),o=ej(n),a=(0,f.e)(t,i.triggerRef),s=(0,x.jsx)(y.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":eX(i.open),...r,ref:a,onClick:(0,h.M)(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,x.jsx)(j.ee,{asChild:!0,...o,children:s})});eF.displayName=eI;var e_="PopoverPortal",[eB,eW]=eM(e_,{forceMount:void 0}),ez=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=eL(e_,t);return(0,x.jsx)(eB,{scope:t,forceMount:n,children:(0,x.jsx)(L.z,{present:n||o.open,children:(0,x.jsx)(O.h,{asChild:!0,container:i,children:r})})})};ez.displayName=e_;var eU="PopoverContent",e$=d.forwardRef((e,t)=>{let n=eW(eU,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=eL(eU,e.__scopePopover);return(0,x.jsx)(L.z,{present:r||o.open,children:o.modal?(0,x.jsx)(eH,{...i,ref:t}):(0,x.jsx)(eY,{...i,ref:t})})});e$.displayName=eU;var eH=d.forwardRef((e,t)=>{let n=eL(eU,e.__scopePopover),r=d.useRef(null),i=(0,f.e)(t,r),o=d.useRef(!1);return d.useEffect(()=>{let e=r.current;if(e)return z(e)},[]),(0,x.jsx)(eR,{as:D.g7,allowPinchZoom:!0,children:(0,x.jsx)(eK,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,h.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),o.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,h.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,h.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),eY=d.forwardRef((e,t)=>{let n=eL(eU,e.__scopePopover),r=d.useRef(!1),i=d.useRef(!1);return(0,x.jsx)(eK,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,a;null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{var o,a;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(i.current=!0));let s=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),eK=d.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...h}=e,f=eL(eU,n),p=ej(n);return d.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:v()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:v()),g++,()=>{1===g&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),g--}},[]),(0,x.jsx)(S,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,x.jsx)(m.XB,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:(0,x.jsx)(j.VY,{"data-state":eX(f.open),role:"dialog",id:f.contentId,...p,...h,ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),eG="PopoverClose";function eX(e){return e?"open":"closed"}d.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=eL(eG,n);return(0,x.jsx)(y.WV.button,{type:"button",...r,ref:t,onClick:(0,h.M)(e.onClick,()=>i.onOpenChange(!1))})}).displayName=eG,d.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=ej(n);return(0,x.jsx)(j.Eh,{...i,...r,ref:t})}).displayName="PopoverArrow";var eZ=eD,eq=eV,eJ=eF,eQ=ez,e0=e$},2517:function(e,t,n){n.d(t,{ee:function(){return eF},Eh:function(){return eB},VY:function(){return e_},fC:function(){return eI},D7:function(){return ew}});var r=n(7292);let i=["top","right","bottom","left"],o=Math.min,a=Math.max,s=Math.round,l=Math.floor,u=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},d={start:"end",end:"start"};function h(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}function v(e){return["top","bottom"].includes(f(e))?"y":"x"}function y(e){return e.replace(/start|end/g,e=>d[e])}function b(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function x(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function w(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function P(e,t,n){let r,{reference:i,floating:o}=e,a=v(t),s=m(v(t)),l=g(s),u=f(t),c="y"===a,d=i.x+i.width/2-o.width/2,h=i.y+i.height/2-o.height/2,y=i[l]/2-o[l]/2;switch(u){case"top":r={x:d,y:i.y-o.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:h};break;case"left":r={x:i.x-o.width,y:h};break;default:r={x:i.x,y:i.y}}switch(p(t)){case"start":r[s]-=y*(n&&c?-1:1);break;case"end":r[s]+=y*(n&&c?-1:1)}return r}let E=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=P(u,r,l),h=r,f={},p=0;for(let n=0;n<s.length;n++){let{name:o,fn:m}=s[n],{x:g,y:v,data:y,reset:b}=await m({x:c,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:f,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=v?v:d,f={...f,[o]:{...f[o],...y}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:c,y:d}=P(u,h,l)),n=-1)}return{x:c,y:d,placement:h,strategy:i,middlewareData:f}};async function S(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=h(t,e),m=x(p),g=s[f?"floating"===d?"reference":"floating":d],v=w(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),y="floating"===d?{...a.floating,x:r,y:i}:a.reference,b=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),P=await (null==o.isElement?void 0:o.isElement(b))&&await (null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},E=w(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(v.top-E.top+m.top)/P.y,bottom:(E.bottom-v.bottom+m.bottom)/P.y,left:(v.left-E.left+m.left)/P.x,right:(E.right-v.right+m.right)/P.x}}function C(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function T(e){return i.some(t=>e[t]>=0)}async function R(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),a=f(n),s=p(n),l="y"===v(n),u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,d=h(t,e),{mainAxis:m,crossAxis:g,alignmentAxis:y}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof y&&(g="end"===s?-1*y:y),l?{x:g*c,y:m*u}:{x:m*u,y:g*c}}function A(e){return j(e)?(e.nodeName||"").toLowerCase():"#document"}function M(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function k(e){var t;return null==(t=(j(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function j(e){return e instanceof Node||e instanceof M(e).Node}function O(e){return e instanceof Element||e instanceof M(e).Element}function L(e){return e instanceof HTMLElement||e instanceof M(e).HTMLElement}function D(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof M(e).ShadowRoot)}function N(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=_(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function V(e){let t=I(),n=_(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function I(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function F(e){return["html","body","#document"].includes(A(e))}function _(e){return M(e).getComputedStyle(e)}function B(e){return O(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function W(e){if("html"===A(e))return e;let t=e.assignedSlot||e.parentNode||D(e)&&e.host||k(e);return D(t)?t.host:t}function z(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=W(t);return F(n)?t.ownerDocument?t.ownerDocument.body:t.body:L(n)&&N(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=M(i);return o?t.concat(a,a.visualViewport||[],N(i)?i:[],a.frameElement&&n?z(a.frameElement):[]):t.concat(i,z(i,[],n))}function U(e){let t=_(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=L(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=s(n)!==o||s(r)!==a;return l&&(n=o,r=a),{width:n,height:r,$:l}}function $(e){return O(e)?e:e.contextElement}function H(e){let t=$(e);if(!L(t))return u(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=U(t),a=(o?s(n.width):n.width)/r,l=(o?s(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let Y=u(0);function K(e){let t=M(e);return I()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Y}function G(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),a=$(e),s=u(1);t&&(r?O(r)&&(s=H(r)):s=H(e));let l=(void 0===(i=n)&&(i=!1),r&&(!i||r===M(a))&&i)?K(a):u(0),c=(o.left+l.x)/s.x,d=(o.top+l.y)/s.y,h=o.width/s.x,f=o.height/s.y;if(a){let e=M(a),t=r&&O(r)?M(r):r,n=e,i=n.frameElement;for(;i&&r&&t!==n;){let e=H(i),t=i.getBoundingClientRect(),r=_(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,d*=e.y,h*=e.x,f*=e.y,c+=o,d+=a,i=(n=M(i)).frameElement}}return w({width:h,height:f,x:c,y:d})}let X=[":popover-open",":modal"];function Z(e){return X.some(t=>{try{return e.matches(t)}catch(e){return!1}})}function q(e){return G(k(e)).left+B(e).scrollLeft}function J(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=M(e),r=k(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=I();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){let t=k(e),n=B(e),r=e.ownerDocument.body,i=a(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=a(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-n.scrollLeft+q(e),l=-n.scrollTop;return"rtl"===_(r).direction&&(s+=a(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:l}}(k(e));else if(O(t))r=function(e,t){let n=G(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=L(e)?H(e):u(1),a=e.clientWidth*o.x;return{width:a,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{let n=K(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return w(r)}function Q(e,t){return L(e)&&"fixed"!==_(e).position?t?t(e):e.offsetParent:null}function ee(e,t){let n=M(e);if(!L(e)||Z(e))return n;let r=Q(e,t);for(;r&&["table","td","th"].includes(A(r))&&"static"===_(r).position;)r=Q(r,t);return r&&("html"===A(r)||"body"===A(r)&&"static"===_(r).position&&!V(r))?n:r||function(e){let t=W(e);for(;L(t)&&!F(t);){if(V(t))return t;t=W(t)}return null}(e)||n}let et=async function(e){let t=this.getOffsetParent||ee,n=this.getDimensions;return{reference:function(e,t,n){let r=L(t),i=k(t),o="fixed"===n,a=G(e,!0,o,t),s={scrollLeft:0,scrollTop:0},l=u(0);if(r||!r&&!o){if(("body"!==A(t)||N(i))&&(s=B(t)),r){let e=G(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=q(i))}return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},en={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,a=k(r),s=!!t&&Z(t.floating);if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=u(1),d=u(0),h=L(r);if((h||!h&&!o)&&(("body"!==A(r)||N(a))&&(l=B(r)),L(r))){let e=G(r);c=H(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x,y:n.y*c.y-l.scrollTop*c.y+d.y}},getDocumentElement:k,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,s=[..."clippingAncestors"===n?function(e,t){let n=t.get(e);if(n)return n;let r=z(e,[],!1).filter(e=>O(e)&&"body"!==A(e)),i=null,o="fixed"===_(e).position,a=o?W(e):e;for(;O(a)&&!F(a);){let t=_(a),n=V(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||N(a)&&!n&&function e(t,n){let r=W(t);return!(r===n||!O(r)||F(r))&&("fixed"===_(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):i=t,a=W(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=s[0],u=s.reduce((e,n)=>{let r=J(t,n,i);return e.top=a(r.top,e.top),e.right=o(r.right,e.right),e.bottom=o(r.bottom,e.bottom),e.left=a(r.left,e.left),e},J(t,l,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:ee,getElementRects:et,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=U(e);return{width:t,height:n}},getScale:H,isElement:O,isRTL:function(e){return"rtl"===_(e).direction}},er=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:s,platform:l,elements:u,middlewareData:c}=t,{element:d,padding:f=0}=h(e,t)||{};if(null==d)return{};let y=x(f),b={x:n,y:r},w=m(v(i)),P=g(w),E=await l.getDimensions(d),S="y"===w,C=S?"clientHeight":"clientWidth",T=s.reference[P]+s.reference[w]-b[w]-s.floating[P],R=b[w]-s.reference[w],A=await (null==l.getOffsetParent?void 0:l.getOffsetParent(d)),M=A?A[C]:0;M&&await (null==l.isElement?void 0:l.isElement(A))||(M=u.floating[C]||s.floating[P]);let k=M/2-E[P]/2-1,j=o(y[S?"top":"left"],k),O=o(y[S?"bottom":"right"],k),L=M-E[P]-O,D=M/2-E[P]/2+(T/2-R/2),N=a(j,o(D,L)),V=!c.arrow&&null!=p(i)&&D!==N&&s.reference[P]/2-(D<j?j:O)-E[P]/2<0,I=V?D<j?D-j:D-L:0;return{[w]:b[w]+I,data:{[w]:N,centerOffset:D-N-I,...V&&{alignmentOffset:I}},reset:V}}}),ei=(e,t,n)=>{let r=new Map,i={platform:en,...n},o={...i.platform,_c:r};return E(e,t,{...i,platform:o})};var eo=n(7994);let ea=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?er({element:n.current,padding:r}).fn(t):{}:n?er({element:n,padding:r}).fn(t):{}}});var es="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function el(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!el(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!el(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eu(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ec(e,t){let n=eu(e);return Math.round(t*n)/n}function ed(e){let t=r.useRef(e);return es(()=>{t.current=e}),t}var eh=n(9329),ef=n(3542),ep=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,ef.jsx)(eh.WV.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,ef.jsx)("polygon",{points:"0,0 30,0 15,10"})})});ep.displayName="Arrow";var em=n(4985),eg=n(6015),ev=n(4209),ey=n(8438),eb="Popper",[ex,ew]=(0,eg.b)(eb),[eP,eE]=ex(eb),eS=e=>{let{__scopePopper:t,children:n}=e,[i,o]=r.useState(null);return(0,ef.jsx)(eP,{scope:t,anchor:i,onAnchorChange:o,children:n})};eS.displayName=eb;var eC="PopperAnchor",eT=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:i,...o}=e,a=eE(eC,n),s=r.useRef(null),l=(0,em.e)(t,s);return r.useEffect(()=>{a.onAnchorChange((null==i?void 0:i.current)||s.current)}),i?null:(0,ef.jsx)(eh.WV.div,{...o,ref:l})});eT.displayName=eC;var eR="PopperContent",[eA,eM]=ex(eR),ek=r.forwardRef((e,t)=>{var n,i,s,u,c,d,x,w,P,E,A,M,j,O;let{__scopePopper:L,side:D="bottom",sideOffset:N=0,align:V="center",alignOffset:I=0,arrowPadding:F=0,avoidCollisions:_=!0,collisionBoundary:B=[],collisionPadding:W=0,sticky:U="partial",hideWhenDetached:H=!1,updatePositionStrategy:Y="optimized",onPlaced:K,...X}=e,Z=eE(eR,L),[q,J]=r.useState(null),Q=(0,em.e)(t,e=>J(e)),[ee,et]=r.useState(null),en=function(e){let[t,n]=r.useState(void 0);return(0,ey.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(ee),er=null!==(x=null==en?void 0:en.width)&&void 0!==x?x:0,ep=null!==(w=null==en?void 0:en.height)&&void 0!==w?w:0,eg="number"==typeof W?W:{top:0,right:0,bottom:0,left:0,...W},eb=Array.isArray(B)?B:[B],ex=eb.length>0,ew={padding:eg,boundary:eb.filter(eD),altBoundary:ex},{refs:eP,floatingStyles:eS,placement:eC,isPositioned:eT,middlewareData:eM}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,h]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=r.useState(i);el(f,i)||p(i);let[m,g]=r.useState(null),[v,y]=r.useState(null),b=r.useCallback(e=>{e!==E.current&&(E.current=e,g(e))},[]),x=r.useCallback(e=>{e!==S.current&&(S.current=e,y(e))},[]),w=a||m,P=s||v,E=r.useRef(null),S=r.useRef(null),C=r.useRef(d),T=null!=u,R=ed(u),A=ed(o),M=r.useCallback(()=>{if(!E.current||!S.current)return;let e={placement:t,strategy:n,middleware:f};A.current&&(e.platform=A.current),ei(E.current,S.current,e).then(e=>{let t={...e,isPositioned:!0};k.current&&!el(C.current,t)&&(C.current=t,eo.flushSync(()=>{h(t)}))})},[f,t,n,A]);es(()=>{!1===c&&C.current.isPositioned&&(C.current.isPositioned=!1,h(e=>({...e,isPositioned:!1})))},[c]);let k=r.useRef(!1);es(()=>(k.current=!0,()=>{k.current=!1}),[]),es(()=>{if(w&&(E.current=w),P&&(S.current=P),w&&P){if(R.current)return R.current(w,P,M);M()}},[w,P,M,R,T]);let j=r.useMemo(()=>({reference:E,floating:S,setReference:b,setFloating:x}),[b,x]),O=r.useMemo(()=>({reference:w,floating:P}),[w,P]),L=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!O.floating)return e;let t=ec(O.floating,d.x),r=ec(O.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...eu(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,O.floating,d.x,d.y]);return r.useMemo(()=>({...d,update:M,refs:j,elements:O,floatingStyles:L}),[d,M,j,O,L])}({strategy:"fixed",placement:D+("center"!==V?"-"+V:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:h=!1}=r,f=$(e),p=s||u?[...f?z(f):[],...z(t)]:[];p.forEach(e=>{s&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let m=f&&d?function(e,t){let n,r=null,i=k(e);function s(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function u(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),s();let{left:h,top:f,width:p,height:m}=e.getBoundingClientRect();if(c||t(),!p||!m)return;let g=l(f),v=l(i.clientWidth-(h+p)),y={rootMargin:-g+"px "+-v+"px "+-l(i.clientHeight-(f+m))+"px "+-l(h)+"px",threshold:a(0,o(1,d))||1},b=!0;function x(e){let t=e[0].intersectionRatio;if(t!==d){if(!b)return u();t?u(!1,t):n=setTimeout(()=>{u(!1,1e-7)},100)}b=!1}try{r=new IntersectionObserver(x,{...y,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(x,y)}r.observe(e)}(!0),s}(f,n):null,g=-1,v=null;c&&(v=new ResizeObserver(e=>{let[r]=e;r&&r.target===f&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),n()}),f&&!h&&v.observe(f),v.observe(t));let y=h?G(e):null;return h&&function t(){let r=G(e);y&&(r.x!==y.x||r.y!==y.y||r.width!==y.width||r.height!==y.height)&&n(),y=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{s&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=v)||e.disconnect(),v=null,h&&cancelAnimationFrame(i)}}(...t,{animationFrame:"always"===Y})},elements:{reference:Z.anchor},middleware:[{name:"offset",options:P={mainAxis:N+ep,alignmentAxis:I},async fn(e){var t,n;let{x:r,y:i,placement:o,middlewareData:a}=e,s=await R(e,P);return o===(null==(t=a.offset)?void 0:t.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:o}}}},_&&{name:"shift",options:A={mainAxis:!0,crossAxis:!1,limiter:"partial"===U?(void 0===E&&(E={}),{options:E,fn(e){let{x:t,y:n,placement:r,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:s=!0,crossAxis:l=!0}=h(E,e),u={x:t,y:n},c=v(r),d=m(c),p=u[d],g=u[c],y=h(a,e),b="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(s){let e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+b.mainAxis,n=i.reference[d]+i.reference[e]-b.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var x,w;let e="y"===d?"width":"height",t=["top","left"].includes(f(r)),n=i.reference[c]-i.floating[e]+(t&&(null==(x=o.offset)?void 0:x[c])||0)+(t?0:b.crossAxis),a=i.reference[c]+i.reference[e]+(t?0:(null==(w=o.offset)?void 0:w[c])||0)-(t?b.crossAxis:0);g<n?g=n:g>a&&(g=a)}return{[d]:p,[c]:g}}}):void 0,...ew},async fn(e){let{x:t,y:n,placement:r}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=h(A,e),c={x:t,y:n},d=await S(e,u),p=v(f(r)),g=m(p),y=c[g],b=c[p];if(i){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=y+d[e],r=y-d[t];y=a(n,o(y,r))}if(s){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=b+d[e],r=b-d[t];b=a(n,o(b,r))}let x=l.fn({...e,[g]:y,[p]:b});return{...x,data:{x:x.x-t,y:x.y-n}}}},_&&{name:"flip",options:M={...ew},async fn(e){var t,n,r,i,o;let{placement:a,middlewareData:s,rects:l,initialPlacement:u,platform:c,elements:d}=e,{mainAxis:x=!0,crossAxis:w=!0,fallbackPlacements:P,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:T=!0,...R}=h(M,e);if(null!=(t=s.arrow)&&t.alignmentOffset)return{};let A=f(a),k=f(u)===u,j=await (null==c.isRTL?void 0:c.isRTL(d.floating)),O=P||(k||!T?[b(u)]:function(e){let t=b(e);return[y(e),t,y(t)]}(u));P||"none"===C||O.push(...function(e,t,n,r){let i=p(e),o=function(e,t,n){let r=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(n)return t?i:r;return t?r:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(f(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(y)))),o}(u,T,C,j));let L=[u,...O],D=await S(e,R),N=[],V=(null==(n=s.flip)?void 0:n.overflows)||[];if(x&&N.push(D[A]),w){let e=function(e,t,n){void 0===n&&(n=!1);let r=p(e),i=m(v(e)),o=g(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=b(a)),[a,b(a)]}(a,l,j);N.push(D[e[0]],D[e[1]])}if(V=[...V,{placement:a,overflows:N}],!N.every(e=>e<=0)){let e=((null==(r=s.flip)?void 0:r.index)||0)+1,t=L[e];if(t)return{data:{index:e,overflows:V},reset:{placement:t}};let n=null==(i=V.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(E){case"bestFit":{let e=null==(o=V.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(n=e);break}case"initialPlacement":n=u}if(a!==n)return{reset:{placement:n}}}return{}}},{name:"size",options:j={...ew,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:i}=e,{width:o,height:a}=n.reference,s=t.floating.style;s.setProperty("--radix-popper-available-width","".concat(r,"px")),s.setProperty("--radix-popper-available-height","".concat(i,"px")),s.setProperty("--radix-popper-anchor-width","".concat(o,"px")),s.setProperty("--radix-popper-anchor-height","".concat(a,"px"))}},async fn(e){let t,n;let{placement:r,rects:i,platform:s,elements:l}=e,{apply:u=()=>{},...c}=h(j,e),d=await S(e,c),m=f(r),g=p(r),y="y"===v(r),{width:b,height:x}=i.floating;"top"===m||"bottom"===m?(t=m,n=g===(await (null==s.isRTL?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(n=m,t="end"===g?"top":"bottom");let w=x-d[t],P=b-d[n],E=!e.middlewareData.shift,C=w,T=P;if(y){let e=b-d.left-d.right;T=g||E?o(P,e):e}else{let e=x-d.top-d.bottom;C=g||E?o(w,e):e}if(E&&!g){let e=a(d.left,0),t=a(d.right,0),n=a(d.top,0),r=a(d.bottom,0);y?T=b-2*(0!==e||0!==t?e+t:a(d.left,d.right)):C=x-2*(0!==n||0!==r?n+r:a(d.top,d.bottom))}await u({...e,availableWidth:T,availableHeight:C});let R=await s.getDimensions(l.floating);return b!==R.width||x!==R.height?{reset:{rects:!0}}:{}}},ee&&ea({element:ee,padding:F}),eN({arrowWidth:er,arrowHeight:ep}),H&&{name:"hide",options:O={strategy:"referenceHidden",...ew},async fn(e){let{rects:t}=e,{strategy:n="referenceHidden",...r}=h(O,e);switch(n){case"referenceHidden":{let n=C(await S(e,{...r,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:T(n)}}}case"escaped":{let n=C(await S(e,{...r,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:T(n)}}}default:return{}}}}]}),[ek,ej]=eV(eC),eO=(0,ev.W)(K);(0,ey.b)(()=>{eT&&(null==eO||eO())},[eT,eO]);let eL=null===(n=eM.arrow)||void 0===n?void 0:n.x,eI=null===(i=eM.arrow)||void 0===i?void 0:i.y,eF=(null===(s=eM.arrow)||void 0===s?void 0:s.centerOffset)!==0,[e_,eB]=r.useState();return(0,ey.b)(()=>{q&&eB(window.getComputedStyle(q).zIndex)},[q]),(0,ef.jsx)("div",{ref:eP.setFloating,"data-radix-popper-content-wrapper":"",style:{...eS,transform:eT?eS.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:e_,"--radix-popper-transform-origin":[null===(u=eM.transformOrigin)||void 0===u?void 0:u.x,null===(c=eM.transformOrigin)||void 0===c?void 0:c.y].join(" "),...(null===(d=eM.hide)||void 0===d?void 0:d.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,ef.jsx)(eA,{scope:L,placedSide:ek,onArrowChange:et,arrowX:eL,arrowY:eI,shouldHideArrow:eF,children:(0,ef.jsx)(eh.WV.div,{"data-side":ek,"data-align":ej,...X,ref:Q,style:{...X.style,animation:eT?void 0:"none"}})})})});ek.displayName=eR;var ej="PopperArrow",eO={top:"bottom",right:"left",bottom:"top",left:"right"},eL=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=eM(ej,n),o=eO[i.placedSide];return(0,ef.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,ef.jsx)(ep,{...r,ref:t,style:{...r.style,display:"block"}})})});function eD(e){return null!==e}eL.displayName=ej;var eN=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,h=c?0:e.arrowHeight,[f,p]=eV(s),m={start:"0%",center:"50%",end:"100%"}[p],g=(null!==(o=null===(r=u.arrow)||void 0===r?void 0:r.x)&&void 0!==o?o:0)+d/2,v=(null!==(a=null===(i=u.arrow)||void 0===i?void 0:i.y)&&void 0!==a?a:0)+h/2,y="",b="";return"bottom"===f?(y=c?m:"".concat(g,"px"),b="".concat(-h,"px")):"top"===f?(y=c?m:"".concat(g,"px"),b="".concat(l.floating.height+h,"px")):"right"===f?(y="".concat(-h,"px"),b=c?m:"".concat(v,"px")):"left"===f&&(y="".concat(l.floating.width+h,"px"),b=c?m:"".concat(v,"px")),{data:{x:y,y:b}}}});function eV(e){let[t,n="center"]=e.split("-");return[t,n]}var eI=eS,eF=eT,e_=ek,eB=eL},4694:function(e,t,n){n.d(t,{h:function(){return l}});var r=n(7292),i=n(7994),o=n(9329),a=n(8438),s=n(3542),l=r.forwardRef((e,t)=>{var n,l;let{container:u,...c}=e,[d,h]=r.useState(!1);(0,a.b)(()=>h(!0),[]);let f=u||d&&(null===(l=globalThis)||void 0===l?void 0:null===(n=l.document)||void 0===n?void 0:n.body);return f?i.createPortal((0,s.jsx)(o.WV.div,{...c,ref:t}),f):null});l.displayName="Portal"},9110:function(e,t,n){n.d(t,{z:function(){return s}});var r=n(7292),i=n(7994),o=n(4985),a=n(8438),s=e=>{var t,n;let s,u;let{present:c,children:d}=e,h=function(e){var t,n;let[o,s]=r.useState(),u=r.useRef({}),c=r.useRef(e),d=r.useRef("none"),[h,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=l(u.current);d.current="mounted"===h?e:"none"},[h]),(0,a.b)(()=>{let t=u.current,n=c.current;if(n!==e){let r=d.current,i=l(t);e?f("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==i?f("ANIMATION_OUT"):f("UNMOUNT"),c.current=e}},[e,f]),(0,a.b)(()=>{if(o){let e=e=>{let t=l(u.current).includes(e.animationName);e.target===o&&t&&i.flushSync(()=>f("ANIMATION_END"))},t=e=>{e.target===o&&(d.current=l(u.current))};return o.addEventListener("animationstart",t),o.addEventListener("animationcancel",e),o.addEventListener("animationend",e),()=>{o.removeEventListener("animationstart",t),o.removeEventListener("animationcancel",e),o.removeEventListener("animationend",e)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:r.useCallback(e=>{e&&(u.current=getComputedStyle(e)),s(e)},[])}}(c),f="function"==typeof d?d({present:h.isPresent}):r.Children.only(d),p=(0,o.e)(h.ref,(s=null===(t=Object.getOwnPropertyDescriptor(f.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in s&&s.isReactWarning?f.ref:(s=null===(n=Object.getOwnPropertyDescriptor(f,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in s&&s.isReactWarning?f.props.ref:f.props.ref||f.ref);return"function"==typeof d||h.isPresent?r.cloneElement(f,{ref:p}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}s.displayName="Presence"},9329:function(e,t,n){n.d(t,{WV:function(){return s},jH:function(){return l}});var r=n(7292),i=n(7994),o=n(302),a=n(3542),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...i}=e,s=r?o.g7:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(s,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function l(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},302:function(e,t,n){n.d(t,{A4:function(){return l},g7:function(){return a}});var r=n(7292),i=n(4985),o=n(3542),a=r.forwardRef((e,t)=>{let{children:n,...i}=e,a=r.Children.toArray(n),l=a.find(u);if(l){let e=l.props.children,n=a.map(t=>t!==l?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,o.jsx)(s,{...i,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,o.jsx)(s,{...i,ref:t,children:n})});a.displayName="Slot";var s=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(r.isValidElement(n)){let e,a;let s=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return r.cloneElement(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props),ref:t?(0,i.F)(t,s):s})}return r.Children.count(n)>1?r.Children.only(null):null});s.displayName="SlotClone";var l=({children:e})=>(0,o.jsx)(o.Fragment,{children:e});function u(e){return r.isValidElement(e)&&e.type===l}},8813:function(e,t,n){n.d(t,{ck:function(){return G},fC:function(){return K}});var r=n(7292),i=n(6015),o=n(9329),a=n(7574),s=n(4985),l=n(302),u=n(3542),c=n(4855),d=n(4209),h=n(7454),f=r.createContext(void 0);function p(e){let t=r.useContext(f);return e||t||"ltr"}var m="rovingFocusGroup.onEntryFocus",g={bubbles:!1,cancelable:!0},v="RovingFocusGroup",[y,b,x]=function(e){let t=e+"CollectionProvider",[n,o]=(0,i.b)(t),[a,c]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,i=r.useRef(null),o=r.useRef(new Map).current;return(0,u.jsx)(a,{scope:t,itemMap:o,collectionRef:i,children:n})};d.displayName=t;let h=e+"CollectionSlot",f=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=c(h,n),o=(0,s.e)(t,i.collectionRef);return(0,u.jsx)(l.g7,{ref:o,children:r})});f.displayName=h;let p=e+"CollectionItemSlot",m="data-radix-collection-item",g=r.forwardRef((e,t)=>{let{scope:n,children:i,...o}=e,a=r.useRef(null),d=(0,s.e)(t,a),h=c(p,n);return r.useEffect(()=>(h.itemMap.set(a,{ref:a,...o}),()=>void h.itemMap.delete(a))),(0,u.jsx)(l.g7,{[m]:"",ref:d,children:i})});return g.displayName=p,[{Provider:d,Slot:f,ItemSlot:g},function(t){let n=c(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(m,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},o]}(v),[w,P]=(0,i.b)(v,[x]),[E,S]=w(v),C=r.forwardRef((e,t)=>(0,u.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(T,{...e,ref:t})})}));C.displayName=v;var T=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:i,loop:l=!1,dir:c,currentTabStopId:f,defaultCurrentTabStopId:v,onCurrentTabStopIdChange:y,onEntryFocus:x,preventScrollOnEntryFocus:w=!1,...P}=e,S=r.useRef(null),C=(0,s.e)(t,S),T=p(c),[R=null,A]=(0,h.T)({prop:f,defaultProp:v,onChange:y}),[M,j]=r.useState(!1),O=(0,d.W)(x),L=b(n),D=r.useRef(!1),[N,V]=r.useState(0);return r.useEffect(()=>{let e=S.current;if(e)return e.addEventListener(m,O),()=>e.removeEventListener(m,O)},[O]),(0,u.jsx)(E,{scope:n,orientation:i,dir:T,loop:l,currentTabStopId:R,onItemFocus:r.useCallback(e=>A(e),[A]),onItemShiftTab:r.useCallback(()=>j(!0),[]),onFocusableItemAdd:r.useCallback(()=>V(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>V(e=>e-1),[]),children:(0,u.jsx)(o.WV.div,{tabIndex:M||0===N?-1:0,"data-orientation":i,...P,ref:C,style:{outline:"none",...e.style},onMouseDown:(0,a.M)(e.onMouseDown,()=>{D.current=!0}),onFocus:(0,a.M)(e.onFocus,e=>{let t=!D.current;if(e.target===e.currentTarget&&t&&!M){let t=new CustomEvent(m,g);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=L().filter(e=>e.focusable);k([e.find(e=>e.active),e.find(e=>e.id===R),...e].filter(Boolean).map(e=>e.ref.current),w)}}D.current=!1}),onBlur:(0,a.M)(e.onBlur,()=>j(!1))})})}),R="RovingFocusGroupItem",A=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:i=!0,active:s=!1,tabStopId:l,...d}=e,h=(0,c.M)(),f=l||h,p=S(R,n),m=p.currentTabStopId===f,g=b(n),{onFocusableItemAdd:v,onFocusableItemRemove:x}=p;return r.useEffect(()=>{if(i)return v(),()=>x()},[i,v,x]),(0,u.jsx)(y.ItemSlot,{scope:n,id:f,focusable:i,active:s,children:(0,u.jsx)(o.WV.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...d,ref:t,onMouseDown:(0,a.M)(e.onMouseDown,e=>{i?p.onItemFocus(f):e.preventDefault()}),onFocus:(0,a.M)(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:(0,a.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){p.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return M[i]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&i.reverse();let o=i.indexOf(e.currentTarget);i=p.loop?(n=i,r=o+1,n.map((e,t)=>n[(r+t)%n.length])):i.slice(o+1)}setTimeout(()=>k(i))}})})})});A.displayName=R;var M={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function k(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var j=r.forwardRef((e,t)=>{let{pressed:n,defaultPressed:r=!1,onPressedChange:i,...s}=e,[l=!1,c]=(0,h.T)({prop:n,onChange:i,defaultProp:r});return(0,u.jsx)(o.WV.button,{type:"button","aria-pressed":l,"data-state":l?"on":"off","data-disabled":e.disabled?"":void 0,...s,ref:t,onClick:(0,a.M)(e.onClick,()=>{e.disabled||c(!l)})})});j.displayName="Toggle";var O="ToggleGroup",[L,D]=(0,i.b)(O,[P]),N=P(),V=r.forwardRef((e,t)=>{let{type:n,...r}=e;if("single"===n)return(0,u.jsx)(_,{...r,ref:t});if("multiple"===n)return(0,u.jsx)(B,{...r,ref:t});throw Error("Missing prop `type` expected on `".concat(O,"`"))});V.displayName=O;var[I,F]=L(O),_=r.forwardRef((e,t)=>{let{value:n,defaultValue:i,onValueChange:o=()=>{},...a}=e,[s,l]=(0,h.T)({prop:n,defaultProp:i,onChange:o});return(0,u.jsx)(I,{scope:e.__scopeToggleGroup,type:"single",value:s?[s]:[],onItemActivate:l,onItemDeactivate:r.useCallback(()=>l(""),[l]),children:(0,u.jsx)(U,{...a,ref:t})})}),B=r.forwardRef((e,t)=>{let{value:n,defaultValue:i,onValueChange:o=()=>{},...a}=e,[s=[],l]=(0,h.T)({prop:n,defaultProp:i,onChange:o}),c=r.useCallback(e=>l(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[l]),d=r.useCallback(e=>l(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[l]);return(0,u.jsx)(I,{scope:e.__scopeToggleGroup,type:"multiple",value:s,onItemActivate:c,onItemDeactivate:d,children:(0,u.jsx)(U,{...a,ref:t})})});V.displayName=O;var[W,z]=L(O),U=r.forwardRef((e,t)=>{let{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:i=!0,orientation:a,dir:s,loop:l=!0,...c}=e,d=N(n),h=p(s),f={role:"group",dir:h,...c};return(0,u.jsx)(W,{scope:n,rovingFocus:i,disabled:r,children:i?(0,u.jsx)(C,{asChild:!0,...d,orientation:a,dir:h,loop:l,children:(0,u.jsx)(o.WV.div,{...f,ref:t})}):(0,u.jsx)(o.WV.div,{...f,ref:t})})}),$="ToggleGroupItem",H=r.forwardRef((e,t)=>{let n=F($,e.__scopeToggleGroup),i=z($,e.__scopeToggleGroup),o=N(e.__scopeToggleGroup),a=n.value.includes(e.value),s=i.disabled||e.disabled,l={...e,pressed:a,disabled:s},c=r.useRef(null);return i.rovingFocus?(0,u.jsx)(A,{asChild:!0,...o,focusable:!s,active:a,ref:c,children:(0,u.jsx)(Y,{...l,ref:t})}):(0,u.jsx)(Y,{...l,ref:t})});H.displayName=$;var Y=r.forwardRef((e,t)=>{let{__scopeToggleGroup:n,value:r,...i}=e,o=F($,n),a={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s="single"===o.type?a:void 0;return(0,u.jsx)(j,{...s,...i,ref:t,onPressedChange:e=>{e?o.onItemActivate(r):o.onItemDeactivate(r)}})}),K=V,G=H},1636:function(e,t,n){n.d(t,{VY:function(){return H},h_:function(){return $},fC:function(){return U},Ce:function(){return z},pn:function(){return S},aJ:function(){return k}});var r=n(7292),i=n(7574),o=n(4985),a=n(6015),s=n(8700),l=n(4855),u=n(2517),c=n(4694),d=n(9110),h=n(9329),f=n(302),p=n(7454),m=n(3542),g=r.forwardRef((e,t)=>(0,m.jsx)(h.WV.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));g.displayName="VisuallyHidden";var[v,y]=(0,a.b)("Tooltip",[u.D7]),b=(0,u.D7)(),x="TooltipProvider",w="tooltip.open",[P,E]=v(x),S=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:a}=e,[s,l]=r.useState(!0),u=r.useRef(!1),c=r.useRef(0);return r.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,m.jsx)(P,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:r.useCallback(()=>{window.clearTimeout(c.current),l(!1)},[]),onClose:r.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>l(!0),i)},[i]),isPointerInTransitRef:u,onPointerInTransitChange:r.useCallback(e=>{u.current=e},[]),disableHoverableContent:o,children:a})};S.displayName=x;var C="Tooltip",[T,R]=v(C),A=e=>{let{__scopeTooltip:t,children:n,open:i,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:c}=e,d=E(C,e.__scopeTooltip),h=b(t),[f,g]=r.useState(null),v=(0,l.M)(),y=r.useRef(0),x=null!=s?s:d.disableHoverableContent,P=null!=c?c:d.delayDuration,S=r.useRef(!1),[R=!1,A]=(0,p.T)({prop:i,defaultProp:o,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(w))):d.onClose(),null==a||a(e)}}),M=r.useMemo(()=>R?S.current?"delayed-open":"instant-open":"closed",[R]),k=r.useCallback(()=>{window.clearTimeout(y.current),S.current=!1,A(!0)},[A]),j=r.useCallback(()=>{window.clearTimeout(y.current),A(!1)},[A]),O=r.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{S.current=!0,A(!0)},P)},[P,A]);return r.useEffect(()=>()=>window.clearTimeout(y.current),[]),(0,m.jsx)(u.fC,{...h,children:(0,m.jsx)(T,{scope:t,contentId:v,open:R,stateAttribute:M,trigger:f,onTriggerChange:g,onTriggerEnter:r.useCallback(()=>{d.isOpenDelayed?O():k()},[d.isOpenDelayed,O,k]),onTriggerLeave:r.useCallback(()=>{x?j():window.clearTimeout(y.current)},[j,x]),onOpen:k,onClose:j,disableHoverableContent:x,children:n})})};A.displayName=C;var M="TooltipTrigger",k=r.forwardRef((e,t)=>{let{__scopeTooltip:n,...a}=e,s=R(M,n),l=E(M,n),c=b(n),d=r.useRef(null),f=(0,o.e)(t,d,s.onTriggerChange),p=r.useRef(!1),g=r.useRef(!1),v=r.useCallback(()=>p.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),(0,m.jsx)(u.ee,{asChild:!0,...c,children:(0,m.jsx)(h.WV.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...a,ref:f,onPointerMove:(0,i.M)(e.onPointerMove,e=>{"touch"===e.pointerType||g.current||l.isPointerInTransitRef.current||(s.onTriggerEnter(),g.current=!0)}),onPointerLeave:(0,i.M)(e.onPointerLeave,()=>{s.onTriggerLeave(),g.current=!1}),onPointerDown:(0,i.M)(e.onPointerDown,()=>{p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:(0,i.M)(e.onFocus,()=>{p.current||s.onOpen()}),onBlur:(0,i.M)(e.onBlur,s.onClose),onClick:(0,i.M)(e.onClick,s.onClose)})})});k.displayName=M;var j="TooltipPortal",[O,L]=v(j,{forceMount:void 0}),D=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=R(j,t);return(0,m.jsx)(O,{scope:t,forceMount:n,children:(0,m.jsx)(d.z,{present:n||o.open,children:(0,m.jsx)(c.h,{asChild:!0,container:i,children:r})})})};D.displayName=j;var N="TooltipContent",V=r.forwardRef((e,t)=>{let n=L(N,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=R(N,e.__scopeTooltip);return(0,m.jsx)(d.z,{present:r||a.open,children:a.disableHoverableContent?(0,m.jsx)(B,{side:i,...o,ref:t}):(0,m.jsx)(I,{side:i,...o,ref:t})})}),I=r.forwardRef((e,t)=>{let n=R(N,e.__scopeTooltip),i=E(N,e.__scopeTooltip),a=r.useRef(null),s=(0,o.e)(t,a),[l,u]=r.useState(null),{trigger:c,onClose:d}=n,h=a.current,{onPointerInTransitChange:f}=i,p=r.useCallback(()=>{u(null),f(!1)},[f]),g=r.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());u(function(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,i),...function(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}(t.getBoundingClientRect())])),f(!0)},[f]);return r.useEffect(()=>()=>p(),[p]),r.useEffect(()=>{if(c&&h){let e=e=>g(e,h),t=e=>g(e,c);return c.addEventListener("pointerleave",e),h.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),h.removeEventListener("pointerleave",t)}}},[c,h,g,p]),r.useEffect(()=>{if(l){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==c?void 0:c.contains(t))||(null==h?void 0:h.contains(t)),i=!function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let a=t[e].x,s=t[e].y,l=t[o].x,u=t[o].y;s>r!=u>r&&n<(l-a)*(r-s)/(u-s)+a&&(i=!i)}return i}(n,l);r?p():i&&(p(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,h,l,d,p]),(0,m.jsx)(B,{...e,ref:s})}),[F,_]=v(C,{isInside:!1}),B=r.forwardRef((e,t)=>{let{__scopeTooltip:n,children:i,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:l,...c}=e,d=R(N,n),h=b(n),{onClose:p}=d;return r.useEffect(()=>(document.addEventListener(w,p),()=>document.removeEventListener(w,p)),[p]),r.useEffect(()=>{if(d.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(d.trigger))&&p()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,p]),(0,m.jsx)(s.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:p,children:(0,m.jsxs)(u.VY,{"data-state":d.stateAttribute,...h,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,m.jsx)(f.A4,{children:i}),(0,m.jsx)(F,{scope:n,isInside:!0,children:(0,m.jsx)(g,{id:d.contentId,role:"tooltip",children:o||i})})]})})});V.displayName=N;var W="TooltipArrow",z=r.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=b(n);return _(W,n).isInside?null:(0,m.jsx)(u.Eh,{...i,...r,ref:t})});z.displayName=W;var U=A,$=D,H=V},4209:function(e,t,n){n.d(t,{W:function(){return i}});var r=n(7292);function i(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},7454:function(e,t,n){n.d(t,{T:function(){return o}});var r=n(7292),i=n(4209);function o({prop:e,defaultProp:t,onChange:n=()=>{}}){let[o,a]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[o]=n,a=r.useRef(o),s=(0,i.W)(t);return r.useEffect(()=>{a.current!==o&&(s(o),a.current=o)},[o,a,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:o,u=(0,i.W)(n);return[l,r.useCallback(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else a(t)},[s,e,a,u])]}},8438:function(e,t,n){n.d(t,{b:function(){return i}});var r=n(7292),i=globalThis?.document?r.useLayoutEffect:()=>{}},4384:function(e,t,n){n.d(t,{W:function(){return r}});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}},4906:function(e,t,n){n.d(t,{M:function(){return y}});var r=n(3542),i=n(7292),o=n(6324),a=n(338),s=n(1018),l=n(7200),u=n(6653);class c 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 d({children:e,isPresent:t}){let n=(0,i.useId)(),o=(0,i.useRef)(null),a=(0,i.useRef)({width:0,height:0,top:0,left:0}),{nonce:s}=(0,i.useContext)(u._);return(0,i.useInsertionEffect)(()=>{let{width:e,height:r,top:i,left:l}=a.current;if(t||!o.current||!e||!r)return;o.current.dataset.motionPopId=n;let u=document.createElement("style");return s&&(u.nonce=s),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
|
|
2
|
-
[data-motion-pop-id="${n}"] {
|
|
3
|
-
position: absolute !important;
|
|
4
|
-
width: ${e}px !important;
|
|
5
|
-
height: ${r}px !important;
|
|
6
|
-
top: ${i}px !important;
|
|
7
|
-
left: ${l}px !important;
|
|
8
|
-
}
|
|
9
|
-
`),()=>{document.head.removeChild(u)}},[t]),(0,r.jsx)(c,{isPresent:t,childRef:o,sizeRef:a,children:i.cloneElement(e,{ref:o})})}let h=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:a,presenceAffectsLayout:u,mode:c})=>{let h=(0,l.h)(f),p=(0,i.useId)(),m=(0,i.useMemo)(()=>({id:p,initial:t,isPresent:n,custom:a,onExitComplete:e=>{for(let t of(h.set(e,!0),h.values()))if(!t)return;o&&o()},register:e=>(h.set(e,!1),()=>h.delete(e))}),u?[Math.random()]:[n]);return(0,i.useMemo)(()=>{h.forEach((e,t)=>h.set(t,!1))},[n]),i.useEffect(()=>{n||h.size||!o||o()},[n]),"popLayout"===c&&(e=(0,r.jsx)(d,{isPresent:n,children:e})),(0,r.jsx)(s.O.Provider,{value:m,children:e})};function f(){return new Map}var p=n(7726),m=n(5362),g=n(6862);let v=e=>e.key||"",y=({children:e,custom:t,initial:n=!0,onExitComplete:s,exitBeforeEnter:l,presenceAffectsLayout:u=!0,mode:c="sync"})=>{var d;(0,g.k)(!l,"Replace exitBeforeEnter with mode='wait'");let f=(0,i.useContext)(p.p).forceRender||(0,o.N)()[0],y=(0,a.t)(),b=function(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}(e),x=b,w=(0,i.useRef)(new Map).current,P=(0,i.useRef)(x),E=(0,i.useRef)(new Map).current,S=(0,i.useRef)(!0);if((0,m.L)(()=>{S.current=!1,function(e,t){e.forEach(e=>{let n=v(e);t.set(n,e)})}(b,E),P.current=x}),d=()=>{S.current=!0,E.clear(),w.clear()},(0,i.useEffect)(()=>()=>d(),[]),S.current)return(0,r.jsx)(r.Fragment,{children:x.map(e=>(0,r.jsx)(h,{isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:u,mode:c,children:e},v(e)))});x=[...x];let C=P.current.map(v),T=b.map(v),R=C.length;for(let e=0;e<R;e++){let t=C[e];-1!==T.indexOf(t)||w.has(t)||w.set(t,void 0)}return"wait"===c&&w.size&&(x=[]),w.forEach((e,n)=>{if(-1!==T.indexOf(n))return;let i=E.get(n);if(!i)return;let o=C.indexOf(n),a=e;a||(a=(0,r.jsx)(h,{isPresent:!1,onExitComplete:()=>{w.delete(n);let e=Array.from(E.keys()).filter(e=>!T.includes(e));if(e.forEach(e=>E.delete(e)),P.current=b.filter(t=>{let r=v(t);return r===n||e.includes(r)}),!w.size){if(!1===y.current)return;f(),s&&s()}},custom:t,presenceAffectsLayout:u,mode:c,children:i},v(i)),w.set(n,a)),x.splice(o,0,a)}),x=x.map(e=>{let t=e.key;return w.has(t)?e:(0,r.jsx)(h,{isPresent:!0,presenceAffectsLayout:u,mode:c,children:e},v(e))}),(0,r.jsx)(r.Fragment,{children:w.size?x:x.map(e=>(0,i.cloneElement)(e))})}},4221:function(e,t,n){n.d(t,{S:function(){return d}});var r=n(3542),i=n(7292),o=n(7726);let a=(0,i.createContext)(null);var s=n(6324);let l=e=>!e.isLayoutDirty&&e.willUpdate(!1),u=e=>!0===e,c=e=>u(!0===e)||"id"===e,d=({children:e,id:t,inherit:n=!0})=>{let d=(0,i.useContext)(o.p),h=(0,i.useContext)(a),[f,p]=(0,s.N)(),m=(0,i.useRef)(null),g=d.id||h;null===m.current&&(c(n)&&g&&(t=t?g+"-"+t:g),m.current={id:t,group:u(n)&&d.group||function(){let e=new Set,t=new WeakMap,n=()=>e.forEach(l);return{add:r=>{e.add(r),t.set(r,r.addEventListener("willUpdate",n))},remove:r=>{e.delete(r);let i=t.get(r);i&&(i(),t.delete(r)),n()},dirty:n}}()});let v=(0,i.useMemo)(()=>({...m.current,forceRender:f}),[p]);return(0,r.jsx)(o.p.Provider,{value:v,children:e})}},7726:function(e,t,n){n.d(t,{p:function(){return r}});let r=(0,n(7292).createContext)({})},6653:function(e,t,n){n.d(t,{_:function(){return r}});let r=(0,n(7292).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},1018:function(e,t,n){n.d(t,{O:function(){return r}});let r=(0,n(7292).createContext)(null)},2910:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(8637);class i{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){let t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}let o=["read","resolveKeyframes","update","preRender","render","postRender"];function a(e,t){let n=!1,a=!0,s={delta:0,timestamp:0,isProcessing:!1},l=o.reduce((e,t)=>(e[t]=function(e){let t=new i,n=new i,r=0,o=!1,a=!1,s=new WeakSet,l={schedule:(e,i=!1,a=!1)=>{let l=a&&o,u=l?t:n;return i&&s.add(e),u.add(e)&&l&&o&&(r=t.order.length),e},cancel:e=>{n.remove(e),s.delete(e)},process:i=>{if(o){a=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length)for(let n=0;n<r;n++){let r=t.order[n];s.has(r)&&(l.schedule(r),e()),r(i)}o=!1,a&&(a=!1,l.process(i))}};return l}(()=>n=!0),e),{}),u=e=>{l[e].process(s)},c=()=>{let i=r.c.useManualTiming?s.timestamp:performance.now();n=!1,s.delta=a?1e3/60:Math.max(Math.min(i-s.timestamp,40),1),s.timestamp=i,s.isProcessing=!0,o.forEach(u),s.isProcessing=!1,n&&t&&(a=!1,e(c))},d=()=>{n=!0,a=!0,s.isProcessing||e(c)};return{schedule:o.reduce((e,t)=>{let r=l[t];return e[t]=(e,t=!1,i=!1)=>(n||d(),r.schedule(e,t,i)),e},{}),cancel:e=>o.forEach(t=>l[t].cancel(e)),state:s,steps:l}}},9112:function(e,t,n){n.d(t,{Pn:function(){return o},S6:function(){return s},Wi:function(){return i},frameData:function(){return a}});var r=n(7578);let{schedule:i,cancel:o,state:a,steps:s}=(0,n(2910).Z)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:r.Z,!0)},5306:function(e,t,n){let r;n.d(t,{E:function(){return ot}});var i,o=n(3542),a=n(7292),s=n(6653);let l=(0,a.createContext)({});var u=n(1018),c=n(5362);let d=(0,a.createContext)({strict:!1}),h=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),f="data-"+h("framerAppearId"),{schedule:p,cancel:m}=(0,n(2910).Z)(queueMicrotask,!1);function g(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let v=(0,a.createContext)({}),y=!1;function b(){window.HandoffComplete=!0}function x(e){return"string"==typeof e||Array.isArray(e)}function w(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}let P=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],E=["initial",...P];function S(e){return w(e.animate)||E.some(t=>x(e[t]))}function C(e){return!!(S(e)||e.variants)}function T(e){return Array.isArray(e)?e.join(" "):e}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"]},A={};for(let e in R)A[e]={isEnabled:t=>R[e].some(e=>!!t[e])};var M=n(5645),k=n(7726);let j=Symbol.for("motionComponentSymbol"),O=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function L(e){if("string"!=typeof e||e.includes("-"));else if(O.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let D={},N=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],V=new Set(N);function I(e,{layout:t,layoutId:n}){return V.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!D[e]||"opacity"===e)}let F=e=>!!(e&&e.getVelocity),_={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},B=N.length,W=e=>t=>"string"==typeof t&&t.startsWith(e),z=W("--"),U=W("var(--"),$=e=>!!U(e)&&H.test(e.split("/*")[0].trim()),H=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Y=(e,t)=>t&&"number"==typeof e?t.transform(e):e,K=(e,t,n)=>n>t?t:n<e?e:n,G={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},X={...G,transform:e=>K(0,1,e)},Z={...G,default:1},q=e=>Math.round(1e5*e)/1e5,J=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Q=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,ee=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function et(e){return"string"==typeof e}let en=e=>({test:t=>et(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),er=en("deg"),ei=en("%"),eo=en("px"),ea=en("vh"),es=en("vw"),el={...ei,parse:e=>ei.parse(e)/100,transform:e=>ei.transform(100*e)},eu={...G,transform:Math.round},ec={borderWidth:eo,borderTopWidth:eo,borderRightWidth:eo,borderBottomWidth:eo,borderLeftWidth:eo,borderRadius:eo,radius:eo,borderTopLeftRadius:eo,borderTopRightRadius:eo,borderBottomRightRadius:eo,borderBottomLeftRadius:eo,width:eo,maxWidth:eo,height:eo,maxHeight:eo,size:eo,top:eo,right:eo,bottom:eo,left:eo,padding:eo,paddingTop:eo,paddingRight:eo,paddingBottom:eo,paddingLeft:eo,margin:eo,marginTop:eo,marginRight:eo,marginBottom:eo,marginLeft:eo,rotate:er,rotateX:er,rotateY:er,rotateZ:er,scale:Z,scaleX:Z,scaleY:Z,scaleZ:Z,skew:er,skewX:er,skewY:er,distance:eo,translateX:eo,translateY:eo,translateZ:eo,x:eo,y:eo,z:eo,perspective:eo,transformPerspective:eo,opacity:X,originX:el,originY:el,originZ:eo,zIndex:eu,backgroundPositionX:eo,backgroundPositionY:eo,fillOpacity:X,strokeOpacity:X,numOctaves:eu};function ed(e,t,n,r){let{style:i,vars:o,transform:a,transformOrigin:s}=e,l=!1,u=!1,c=!0;for(let e in t){let n=t[e];if(z(e)){o[e]=n;continue}let r=ec[e],d=Y(n,r);if(V.has(e)){if(l=!0,a[e]=d,!c)continue;n!==(r.default||0)&&(c=!1)}else e.startsWith("origin")?(u=!0,s[e]=d):i[e]=d}if(!t.transform&&(l||r?i.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let t=0;t<B;t++){let n=N[t];if(void 0!==e[n]){let t=_[n]||n;o+=`${t}(${e[n]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}(e.transform,n,c,r):i.transform&&(i.transform="none")),u){let{originX:e="50%",originY:t="50%",originZ:n=0}=s;i.transformOrigin=`${e} ${t} ${n}`}}let eh=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ef(e,t,n){for(let r in t)F(t[r])||I(r,n)||(e[r]=t[r])}let ep=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 em(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ep.has(e)}let eg=e=>!em(e);try{(i=require("@emotion/is-prop-valid").default)&&(eg=e=>e.startsWith("on")?!em(e):i(e))}catch(e){}function ev(e,t,n){return"string"==typeof e?e:eo.transform(t+n*e)}let ey={offset:"stroke-dashoffset",array:"stroke-dasharray"},eb={offset:"strokeDashoffset",array:"strokeDasharray"};function ex(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d,h){if(ed(e,u,c,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:f,style:p,dimensions:m}=e;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(void 0!==i||void 0!==o||p.transform)&&(p.transformOrigin=function(e,t,n){let r=ev(t,e.x,e.width),i=ev(n,e.y,e.height);return`${r} ${i}`}(m,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==r&&(f.scale=r),void 0!==a&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?ey:eb;e[o.offset]=eo.transform(-r);let a=eo.transform(t),s=eo.transform(n);e[o.array]=`${a} ${s}`}(f,a,s,l,!1)}let ew=()=>({...eh(),attrs:{}}),eP=e=>"string"==typeof e&&"svg"===e.toLowerCase();function eE(e,{style:t,vars:n},r,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(o,n[o])}let eS=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function eC(e,t,n,r){for(let n in eE(e,t,void 0,r),t.attrs)e.setAttribute(eS.has(n)?n:h(n),t.attrs[n])}function eT(e,t,n){var r;let{style:i}=e,o={};for(let a in i)(F(i[a])||t.style&&F(t.style[a])||I(a,e)||(null===(r=null==n?void 0:n.getValue(a))||void 0===r?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function eR(e,t,n){let r=eT(e,t,n);for(let n in e)(F(e[n])||F(t[n]))&&(r[-1!==N.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}function eA(e){let t=[{},{}];return null==e||e.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function eM(e,t,n,r){if("function"==typeof t){let[i,o]=eA(r);t=t(void 0!==n?n:e.custom,i,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,o]=eA(r);t=t(void 0!==n?n:e.custom,i,o)}return t}var ek=n(7200);let ej=e=>Array.isArray(e),eO=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),eL=e=>ej(e)?e[e.length-1]||0:e;function eD(e){let t=F(e)?e.get():e;return eO(t)?t.toValue():t}let eN=e=>(t,n)=>{let r=(0,a.useContext)(l),i=(0,a.useContext)(u.O),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){let a={latestValues:function(e,t,n,r){let i={},o=r(e,{});for(let e in o)i[e]=eD(o[e]);let{initial:a,animate:s}=e,l=S(e),u=C(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===a)?s:a;return d&&"boolean"!=typeof d&&!w(d)&&(Array.isArray(d)?d:[d]).forEach(t=>{let n=eM(e,t);if(!n)return;let{transitionEnd:r,transition:o,...a}=n;for(let e in a){let t=a[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in r)i[e]=r[e]}),i}(r,i,o,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a})(e,t,r,i);return n?o():(0,ek.h)(o)};var eV=n(9112);let eI={useVisualState:eN({scrapeMotionValuesFromProps:eR,createRenderState:ew,onMount:(e,t,{renderState:n,latestValues:r})=>{eV.Wi.read(()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}}),eV.Wi.render(()=>{ex(n,r,{enableHardwareAcceleration:!1},eP(t.tagName),e.transformTemplate),eC(t,n)})}})},eF={useVisualState:eN({scrapeMotionValuesFromProps:eT,createRenderState:eh})};function e_(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}let eB=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function eW(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}let ez=e=>t=>eB(t)&&e(t,eW(t));function eU(e,t,n,r){return e_(e,t,ez(n),r)}let e$=(e,t)=>n=>t(e(n)),eH=(...e)=>e.reduce(e$);function eY(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let eK=eY("dragHorizontal"),eG=eY("dragVertical");function eX(e){let t=!1;if("y"===e)t=eG();else if("x"===e)t=eK();else{let e=eK(),n=eG();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function eZ(){let e=eX(!0);return!e||(e(),!1)}class eq{constructor(e){this.isMounted=!1,this.node=e}update(){}}function eJ(e,t){let n=t?"onHoverStart":"onHoverEnd";return eU(e.current,t?"pointerenter":"pointerleave",(r,i)=>{if("touch"===r.pointerType||eZ())return;let o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t);let a=o[n];a&&eV.Wi.postRender(()=>a(r,i))},{passive:!e.getProps()[n]})}class eQ extends eq{mount(){this.unmount=eH(eJ(this.node,!0),eJ(this.node,!1))}unmount(){}}class e0 extends eq{constructor(){super(...arguments),this.isActive=!1}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=eH(e_(this.node.current,"focus",()=>this.onFocus()),e_(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let e1=(e,t)=>!!t&&(e===t||e1(e,t.parentElement));var e2=n(7578);function e5(e,t){if(!t)return;let n=new PointerEvent("pointer"+e);t(n,eW(n))}class e3 extends eq{constructor(){super(...arguments),this.removeStartListeners=e2.Z,this.removeEndListeners=e2.Z,this.removeAccessibleListeners=e2.Z,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();let n=this.node.getProps(),r=eU(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:r,globalTapTarget:i}=this.node.getProps(),o=i||e1(this.node.current,e.target)?n:r;o&&eV.Wi.update(()=>o(e,t))},{passive:!(n.onTap||n.onPointerUp)}),i=eU(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=eH(r,i),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=e_(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=e_(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&e5("up",(e,t)=>{let{onTap:n}=this.node.getProps();n&&eV.Wi.postRender(()=>n(e,t))})}),e5("down",(e,t)=>{this.startPress(e,t)}))}),t=e_(this.node.current,"blur",()=>{this.isPressing&&e5("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=eH(e,t)}}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&&eV.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),!eZ()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&eV.Wi.postRender(()=>n(e,t))}mount(){let e=this.node.getProps(),t=eU(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=e_(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=eH(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let e4=new WeakMap,e9=new WeakMap,e7=e=>{let t=e4.get(e.target);t&&t(e)},e6=e=>{e.forEach(e7)},e8={some:0,all:1};class te extends eq{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}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:e8[r]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;e9.has(n)||e9.set(n,{});let r=e9.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(e6,{root:e,...t})),r[i]}(t);return e4.set(e,n),r.observe(e),()=>{e4.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({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}function tt(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}function tn(e,t,n){let r=e.getProps();return eM(r,t,void 0!==n?n:r.custom,e)}let tr=e=>1e3*e,ti=e=>e/1e3,to={type:"spring",stiffness:500,damping:25,restSpeed:10},ta=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),ts={type:"keyframes",duration:.8},tl={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tu=(e,{keyframes:t})=>t.length>2?ts:V.has(e)?e.startsWith("scale")?ta(t[1]):to:tl;function tc(e,t){return e[t]||e.default||e}var td=n(8637);let th={current:!1},tf=e=>null!==e;function tp(e,{repeat:t,repeatType:n="loop"},r){let i=e.filter(tf),o=t&&"loop"!==n&&t%2==1?0:i.length-1;return o&&void 0!==r?r:i[o]}function tm(){r=void 0}let tg={now:()=>(void 0===r&&tg.set(eV.frameData.isProcessing||td.c.useManualTiming?eV.frameData.timestamp:performance.now()),r),set:e=>{r=e,queueMicrotask(tm)}},tv=e=>/^0[^.\s]+$/u.test(e);var ty=n(6862);let tb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),tx=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tw=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),tP=e=>e===G||e===eo,tE=(e,t)=>parseFloat(e.split(", ")[t]),tS=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/u);if(i)return tE(i[1],t);{let t=r.match(/^matrix\((.+)\)$/u);return t?tE(t[1],e):0}},tC=new Set(["x","y","z"]),tT=N.filter(e=>!tC.has(e)),tR={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:tS(4,13),y:tS(5,14)};tR.translateX=tR.x,tR.translateY=tR.y;let tA=e=>t=>t.test(e),tM=[G,eo,ei,er,es,ea,{test:e=>"auto"===e,parse:e=>e}],tk=e=>tM.find(tA(e)),tj=new Set,tO=!1,tL=!1;function tD(){if(tL){let e=Array.from(tj).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 tT.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,n])=>{var r;null===(r=e.getValue(t))||void 0===r||r.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}tL=!1,tO=!1,tj.forEach(e=>e.complete()),tj.clear()}function tN(){tj.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(tL=!0)})}class tV{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}scheduleResolve(){this.isScheduled=!0,this.isAsync?(tj.add(this),tO||(tO=!0,eV.Wi.read(tN),eV.Wi.resolveKeyframes(tD))):(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),tj.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,tj.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let tI=(e,t)=>n=>!!(et(n)&&ee.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),tF=(e,t,n)=>r=>{if(!et(r))return r;let[i,o,a,s]=r.match(J);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},t_=e=>K(0,255,e),tB={...G,transform:e=>Math.round(t_(e))},tW={test:tI("rgb","red"),parse:tF("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+tB.transform(e)+", "+tB.transform(t)+", "+tB.transform(n)+", "+q(X.transform(r))+")"},tz={test:tI("#"),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:tW.transform},tU={test:tI("hsl","hue"),parse:tF("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ei.transform(q(t))+", "+ei.transform(q(n))+", "+q(X.transform(r))+")"},t$={test:e=>tW.test(e)||tz.test(e)||tU.test(e),parse:e=>tW.test(e)?tW.parse(e):tU.test(e)?tU.parse(e):tz.parse(e),transform:e=>et(e)?e:e.hasOwnProperty("red")?tW.transform(e):tU.transform(e)},tH="number",tY="color",tK=/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 tG(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],o=0,a=t.replace(tK,e=>(t$.test(e)?(r.color.push(o),i.push(tY),n.push(t$.parse(e))):e.startsWith("var(")?(r.var.push(o),i.push("var"),n.push(e)):(r.number.push(o),i.push(tH),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:a,indexes:r,types:i}}function tX(e){return tG(e).values}function tZ(e){let{split:t,types:n}=tG(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===tH?i+=q(e[o]):t===tY?i+=t$.transform(e[o]):i+=e[o]}return i}}let tq=e=>"number"==typeof e?0:e,tJ={test:function(e){var t,n;return isNaN(e)&&et(e)&&((null===(t=e.match(J))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Q))||void 0===n?void 0:n.length)||0)>0},parse:tX,createTransformer:tZ,getAnimatableNone:function(e){let t=tX(e);return tZ(e)(t.map(tq))}},tQ=new Set(["brightness","contrast","saturate","opacity"]);function t0(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(J)||[];if(!r)return e;let i=n.replace(r,""),o=tQ.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}let t1=/\b([a-z-]*)\(.*?\)/gu,t2={...tJ,getAnimatableNone:e=>{let t=e.match(t1);return t?t.map(t0).join(" "):e}},t5={...ec,color:t$,backgroundColor:t$,outlineColor:t$,fill:t$,stroke:t$,borderColor:t$,borderTopColor:t$,borderRightColor:t$,borderBottomColor:t$,borderLeftColor:t$,filter:t2,WebkitFilter:t2},t3=e=>t5[e];function t4(e,t){let n=t3(e);return n!==t2&&(n=tJ),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let t9=new Set(["auto","none","0"]);class t7 extends tV{constructor(e,t,n,r){super(e,t,n,r,null==r?void 0:r.owner,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&$(r=r.trim())){let i=function e(t,n,r=1){(0,ty.k)(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[i,o]=function(e){let t=tx.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${null!=n?n:r}`,i]}(t);if(!i)return;let a=window.getComputedStyle(n).getPropertyValue(i);if(a){let e=a.trim();return tb(e)?parseFloat(e):e}return $(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(),!tw.has(n)||2!==e.length)return;let[r,i]=e,o=tk(r),a=tk(i);if(o!==a){if(tP(o)&&tP(a))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||tv(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&&!t9.has(t)&&tG(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=t4(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tR[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.current)return;let i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);let o=r.length-1,a=r[o];r[o]=tR[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}function t6(e){let t;return()=>(void 0===t&&(t=e()),t)}let t8=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(tJ.test(e)||"0"===e)&&!e.startsWith("url("));class ne{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(tN(),tD()),this._resolved}onKeyframesResolved(e,t){this.hasAttemptedResolve=!0;let{name:n,type:r,velocity:i,delay:o,onComplete:a,onUpdate:s,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],a=t8(i,t),s=t8(o,t);return(0,ty.K)(a===s,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!!a&&!!s&&(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&&r)}(e,n,r,i)){if(th.current||!o){null==s||s(tp(e,this.options,t)),null==a||a(),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})}}function nt(e,t,n){var r,i;let o=Math.max(t-5,0);return r=n-e(o),(i=t-o)?1e3/i*r:0}function nn(e,t){return e*Math.sqrt(1-t*t)}let nr=["duration","bounce"],ni=["stiffness","damping","mass"];function no(e,t){return t.some(t=>void 0!==e[t])}function na({keyframes:e,restDelta:t,restSpeed:n,...r}){let i;let o=e[0],a=e[e.length-1],s={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:d,velocity:h,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!no(e,ni)&&no(e,nr)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;(0,ty.K)(e<=tr(10),"Spring duration must be 10 seconds or less");let a=1-t;a=K(.05,1,a),e=K(.01,10,ti(e)),a<1?(i=t=>{let r=t*a,i=r*e;return .001-(r-n)/nn(t,a)*Math.exp(-i)},o=t=>{let r=t*a*e,o=Math.pow(a,2)*Math.pow(t,2)*e,s=nn(Math.pow(t,2),a);return(r*n+n-o)*Math.exp(-r)*(-i(t)+.001>0?-1:1)/s}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e=tr(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...r,velocity:-ti(r.velocity||0)}),p=h||0,m=u/(2*Math.sqrt(l*c)),g=a-o,v=ti(Math.sqrt(l/c)),y=5>Math.abs(g);if(n||(n=y?.01:2),t||(t=y?.005:.5),m<1){let e=nn(v,m);i=t=>a-Math.exp(-m*v*t)*((p+m*v*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}else if(1===m)i=e=>a-Math.exp(-v*e)*(g+(p+v*g)*e);else{let e=v*Math.sqrt(m*m-1);i=t=>{let n=Math.exp(-m*v*t),r=Math.min(e*t,300);return a-n*((p+m*v*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}return{calculatedDuration:f&&d||null,next:e=>{let r=i(e);if(f)s.done=e>=d;else{let o=p;0!==e&&(o=m<1?nt(i,e,r):0);let l=Math.abs(o)<=n,u=Math.abs(a-r)<=t;s.done=l&&u}return s.value=s.done?a:r,s}}}function ns({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){let d,h;let f=e[0],p={done:!1,value:f},m=e=>void 0!==s&&e<s||void 0!==l&&e>l,g=e=>void 0===s?l:void 0===l?s:Math.abs(s-e)<Math.abs(l-e)?s:l,v=n*t,y=f+v,b=void 0===a?y:a(y);b!==y&&(v=b-f);let x=e=>-v*Math.exp(-e/r),w=e=>b+x(e),P=e=>{let t=x(e),n=w(e);p.done=Math.abs(t)<=u,p.value=p.done?b:n},E=e=>{m(p.value)&&(d=e,h=na({keyframes:[p.value,g(p.value)],velocity:nt(w,e,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,P(e),E(e)),void 0!==d&&e>=d)?h.next(e-d):(t||P(e),p)}}}let nl=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function nu(e,t,n,r){if(e===t&&n===r)return e2.Z;let i=t=>(function(e,t,n,r,i){let o,a;let s=0;do(o=nl(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a;while(Math.abs(o)>1e-7&&++s<12);return a})(t,0,1,e,n);return e=>0===e||1===e?e:nl(i(e),t,r)}let nc=nu(.42,0,1,1),nd=nu(0,0,.58,1),nh=nu(.42,0,.58,1),nf=e=>Array.isArray(e)&&"number"!=typeof e[0],np=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,nm=e=>t=>1-e(1-t),ng=e=>1-Math.sin(Math.acos(e)),nv=nm(ng),ny=np(ng),nb=nu(.33,1.53,.69,.99),nx=nm(nb),nw=np(nx),nP={linear:e2.Z,easeIn:nc,easeInOut:nh,easeOut:nd,circIn:ng,circInOut:ny,circOut:nv,backIn:nx,backInOut:nw,backOut:nb,anticipate:e=>(e*=2)<1?.5*nx(e):.5*(2-Math.pow(2,-10*(e-1)))},nE=e=>{if(Array.isArray(e)){(0,ty.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,i]=e;return nu(t,n,r,i)}return"string"==typeof e?((0,ty.k)(void 0!==nP[e],`Invalid easing type '${e}'`),nP[e]):e},nS=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},nC=(e,t,n)=>e+(t-e)*n;function nT(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 nR(e,t){return n=>n>0?t:e}let nA=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},nM=[tz,tW,tU],nk=e=>nM.find(t=>t.test(e));function nj(e){let t=nk(e);if((0,ty.K)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===tU&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=nT(s,r,e+1/3),o=nT(s,r,e),a=nT(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(n)),n}let nO=(e,t)=>{let n=nj(e),r=nj(t);if(!n||!r)return nR(e,t);let i={...n};return e=>(i.red=nA(n.red,r.red,e),i.green=nA(n.green,r.green,e),i.blue=nA(n.blue,r.blue,e),i.alpha=nC(n.alpha,r.alpha,e),tW.transform(i))},nL=new Set(["none","hidden"]);function nD(e,t){return n=>nC(e,t,n)}function nN(e){return"number"==typeof e?nD:"string"==typeof e?$(e)?nR:t$.test(e)?nO:nF:Array.isArray(e)?nV:"object"==typeof e?t$.test(e)?nO:nI:nR}function nV(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>nN(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function nI(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=nN(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let nF=(e,t)=>{let n=tJ.createTransformer(t),r=tG(e),i=tG(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?nL.has(e)&&!i.values.length||nL.has(t)&&!r.values.length?nL.has(e)?n=>n<=0?e:t:n=>n>=1?t:e:eH(nV(function(e,t){var n;let r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){let a=t.types[o],s=e.indexes[a][i[a]],l=null!==(n=e.values[s])&&void 0!==n?n:0;r[o]=l,i[a]++}return r}(r,i),i.values),n):((0,ty.K)(!0,`Complex values '${e}' and '${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.`),nR(e,t))};function n_(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?nC(e,t,n):nN(e)(e,t)}function nB({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){let i=nf(r)?r.map(nE):nE(r),o={done:!1,value:t[0]},a=function(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;if((0,ty.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 a=function(e,t,n){let r=[],i=n||n_,o=e.length-1;for(let n=0;n<o;n++){let o=i(e[n],e[n+1]);t&&(o=eH(Array.isArray(t)?t[n]||e2.Z:t,o)),r.push(o)}return r}(t,r,i),s=a.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);let r=nS(e[n],e[n+1],t);return a[n](r)};return n?t=>l(K(e[0],e[o-1],t)):l}((n&&n.length===t.length?n:function(e){let t=[0];return function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=nS(0,t,r);e.push(nC(n,1,i))}}(t,e.length-1),t}(t)).map(t=>t*e),t,{ease:Array.isArray(i)?i:t.map(()=>i||nh).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=a(t),o.done=t>=e,o)}}let nW=e=>{let t=({timestamp:t})=>e(t);return{start:()=>eV.Wi.update(t,!0),stop:()=>(0,eV.Pn)(t),now:()=>eV.frameData.isProcessing?eV.frameData.timestamp:tg.now()}},nz={decay:ns,inertia:ns,tween:nB,keyframes:nB,spring:na},nU=e=>e/100;class n$ extends ne{constructor({KeyframeResolver:e=tV,...t}){super(t),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()};let{name:n,motionValue:r,keyframes:i}=this.options,o=(e,t)=>this.onKeyframesResolved(e,t);n&&r&&r.owner?this.resolver=r.owner.resolveKeyframes(i,o,n,r):this.resolver=new e(i,o,n,r),this.resolver.scheduleResolve()}initPlayback(e){let t,n;let{type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a,velocity:s=0}=this.options,l=nz[r]||nB;l!==nB&&"number"!=typeof e[0]&&(t=eH(nU,n_(e[0],e[1])),e=[0,100]);let u=l({...this.options,keyframes:e});"mirror"===a&&(n=l({...this.options,keyframes:[...e].reverse(),velocity:-s})),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,t=!1){let{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:a,keyframes:s,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return i.next(0);let{delay:d,repeat:h,repeatType:f,repeatDelay:p,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(h){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,h+1))%2&&("reverse"===f?(n=1-n,p&&(n-=p/c)):"mirror"===f&&(b=o)),y=K(0,1,n)*c}let x=v?{done:!1,value:s[0]}:b.next(y);a&&(x.value=a(x.value));let{done:w}=x;v||null===l||(w=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return P&&void 0!==r&&(x.value=tp(s,this.options,r)),m&&m(x.value),P&&this.finish(),x}get duration(){let{resolved:e}=this;return e?ti(e.calculatedDuration):0}get time(){return ti(this.currentTime)}set time(e){e=tr(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=ti(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=nW,onPlay:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=n),"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)}}let nH=e=>Array.isArray(e)&&"number"==typeof e[0],nY=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,nK={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nY([0,.65,.55,1]),circOut:nY([.55,0,1,.45]),backIn:nY([.31,.01,.66,-.59]),backOut:nY([.33,1.53,.69,.99])};function nG(e){return nX(e)||nK.easeOut}function nX(e){if(e)return nH(e)?nY(e):Array.isArray(e)?e.map(nG):nK[e]}let nZ=t6(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),nq=new Set(["opacity","clipPath","filter","transform"]);class nJ extends ne{constructor(e){super(e);let{name:t,motionValue:n,keyframes:r}=this.options;this.resolver=new t7(r,(e,t)=>this.onKeyframesResolved(e,t),t,n),this.resolver.scheduleResolve()}initPlayback(e,t){var n,r;let{duration:i=300,times:o,ease:a,type:s,motionValue:l,name:u}=this.options;if(!(null===(n=l.owner)||void 0===n?void 0:n.current))return!1;if("spring"===(r=this.options).type||"backgroundColor"===r.name||!function e(t){return!!(!t||"string"==typeof t&&t in nK||nH(t)||Array.isArray(t)&&t.every(e))}(r.ease)){let{onComplete:t,onUpdate:n,motionValue:r,...l}=this.options,u=function(e,t){let n=new n$({...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,l);1===(e=u.keyframes).length&&(e[1]=e[0]),i=u.duration,o=u.times,a=u.ease,s="keyframes"}let c=function(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s,times:l}={}){let u={[t]:n};l&&(u.offset=l);let c=nX(s);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"===a?"alternate":"normal"})}(l.owner.current,u,e,{...this.options,duration:i,times:o,ease:a});return c.startTime=tg.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:n}=this.options;l.set(tp(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:o,type:s,ease:a,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return ti(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return ti(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.currentTime=tr(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}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return e2.Z;let{animation:n}=t;n.timeline=e,n.onfinish=null}else this.pendingTimeline=e;return e2.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;let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:n,duration:r,type:i,ease:o,times:a}=e;if("idle"!==t.playState&&"finished"!==t.playState){if(this.time){let{motionValue:e,onUpdate:t,onComplete:s,...l}=this.options,u=new n$({...l,keyframes:n,duration:r,type:i,ease:o,times:a,isGenerator:!0}),c=tr(this.time);e.setWithVelocity(u.sample(c-10).value,u.sample(c).value,10)}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:a}=e;return nZ()&&n&&nq.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!r&&"mirror"!==i&&0!==o&&"inertia"!==a}}let nQ=t6(()=>void 0!==window.ScrollTimeline);class n0{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}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){let t=this.animations.map(t=>{if(!nQ()||!t.attachTimeline)return t.pause(),function(e,t){let n;let r=()=>{let{currentTime:r}=t,i=(null===r?0:r.value)/100;n!==i&&e(i),n=i};return eV.Wi.update(r,!0),()=>(0,eV.Pn)(r)}(e=>{t.time=t.duration*e},e);t.attachTimeline(e)});return()=>{t.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 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")}}let n1=(e,t,n,r={},i,o)=>a=>{let s=tc(r,e)||{},l=s.delay||r.delay||0,{elapsed:u=0}=r;u-=tr(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:i};!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(s)&&(c={...c,...tu(e,c)}),c.duration&&(c.duration=tr(c.duration)),c.repeatDelay&&(c.repeatDelay=tr(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(c.duration=0,0!==c.delay||(d=!0)),(th.current||td.c.skipAnimations)&&(d=!0,c.duration=0,c.delay=0),d&&!o&&void 0!==t.get()){let e=tp(c.keyframes,s);if(void 0!==e)return eV.Wi.update(()=>{c.onUpdate(e),c.onComplete()}),new n0([])}return!o&&nJ.supports(c)?new nJ(c):new n$(c)};function n2(e){return!!(F(e)&&e.add)}function n5(e,t){-1===e.indexOf(t)&&e.push(t)}function n3(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class n4{constructor(){this.subscriptions=[]}add(e){return n5(this.subscriptions,e),()=>n3(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}}let n9=e=>!isNaN(parseFloat(e)),n7={current:void 0};class n6{constructor(e,t={}){this.version="12.0.0-alpha.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let n=tg.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=tg.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=n9(this.current))}setPrevFrameValue(e=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 n4);let n=this.events[e].add(t);return"change"===e?()=>{n(),eV.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,t=!0){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,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return n7.current&&n7.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=tg.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*e:0}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()}}function n8(e,t){return new n6(e,t)}function re(e){return e.getProps()[f]}function rt(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t,u=e.getValue("willChange");r&&(a=r);let c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in l){let r=e.getValue(t,null!==(o=e.latestValues[t])&&void 0!==o?o:null),i=l[t];if(void 0===i||d&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(d,t))continue;let s={delay:n,elapsed:0,...tc(a||{},t)},h=!1;if(window.HandoffAppearAnimations){let n=re(e);if(n){let e=window.HandoffAppearAnimations(n,t,r,eV.Wi);null!==e&&(s.elapsed=e,h=!0)}}r.start(n1(t,r,i,e.shouldReduceMotion&&V.has(t)?{type:!1}:s,e,h));let f=r.animation;f&&(n2(u)&&(u.add(t),f.then(()=>u.remove(t))),c.push(f))}return s&&Promise.all(c).then(()=>{eV.Wi.update(()=>{s&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=tn(e,t)||{};for(let t in i={...i,...n}){let n=eL(i[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,n8(n))}}(e,s)})}),c}function rn(e,t,n={}){var r;let i=tn(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0),{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);let a=i?()=>Promise.all(rt(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(rr).forEach((e,r)=>{e.notify("AnimationStart",t),a.push(rn(e,t,{...o,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([a(),s(n.delay)]);{let[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then(()=>t())}}function rr(e,t){return e.sortNodePosition(t)}let ri=[...P].reverse(),ro=P.length;function ra(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rs(){return{animate:ra(!0),whileInView:ra(),whileHover:ra(),whileTap:ra(),whileDrag:ra(),whileFocus:ra(),exit:ra()}}class rl extends eq{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>rn(e,t,n)));else if("string"==typeof t)r=rn(e,t,n);else{let i="function"==typeof t?tn(e,t,n.custom):t;r=Promise.all(rt(e,i,n))}return r.then(()=>{eV.Wi.postRender(()=>{e.notify("AnimationComplete",t)})})})(e,t,n))),n=rs(),r=!0,i=t=>(n,r)=>{var i;let o=tn(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 o(o){let a=e.getProps(),s=e.getVariantContext(!0)||{},l=[],u=new Set,c={},d=1/0;for(let t=0;t<ro;t++){var h;let f=ri[t],p=n[f],m=void 0!==a[f]?a[f]:s[f],g=x(m),v=f===o?p.isActive:null;!1===v&&(d=t);let y=m===s[f]&&m!==a[f]&&g;if(y&&r&&e.manuallyAnimateOnMount&&(y=!1),p.protectedKeys={...c},!p.isActive&&null===v||!m&&!p.prevProp||w(m)||"boolean"==typeof m)continue;let b=(h=p.prevProp,("string"==typeof m?m!==h:!!Array.isArray(m)&&!tt(m,h))||f===o&&p.isActive&&!y&&g||t>d&&g),P=!1,E=Array.isArray(m)?m:[m],S=E.reduce(i(f),{});!1===v&&(S={});let{prevResolvedValues:C={}}=p,T={...C,...S},R=t=>{b=!0,u.has(t)&&(P=!0,u.delete(t)),p.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=S[e],n=C[e];if(!c.hasOwnProperty(e))(ej(t)&&ej(n)?tt(t,n):t===n)?void 0!==t&&u.has(e)?R(e):p.protectedKeys[e]=!0:null!=t?R(e):u.add(e)}p.prevProp=m,p.prevResolvedValues=S,p.isActive&&(c={...c,...S}),r&&e.blockInitialAnimation&&(b=!1),b&&(!y||P)&&l.push(...E.map(e=>({animation:e,options:{type:f}})))}if(u.size){let t={};u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=null!=r?r:null}),l.push({animation:t})}let f=!!l.length;return r&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?t(l):Promise.resolve()}return{animateChanges:o,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 a=o(t);for(let e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=rs(),r=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();w(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)}}let ru=0;class rc extends eq{constructor(){super(...arguments),this.id=ru++}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(){}}let rd=(e,t)=>Math.abs(e-t);class rh{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=rm(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(e=n.offset,t={x:0,y:0},Math.sqrt(rd(e.x,t.x)**2+rd(e.y,t.y)**2)>=3);if(!r&&!i)return;let{point:o}=n,{timestamp:a}=eV.frameData;this.history.push({...o,timestamp:a});let{onStart:s,onMove:l}=this.handlers;r||(s&&s(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=rf(t,this.transformPagePoint),eV.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=rm("pointercancel"===e.type?this.lastMoveEventInfo:rf(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!eB(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;let o=rf(eW(e),this.transformPagePoint),{point:a}=o,{timestamp:s}=eV.frameData;this.history=[{...a,timestamp:s}];let{onSessionStart:l}=t;l&&l(e,rm(o,this.history)),this.removeListeners=eH(eU(this.contextWindow,"pointermove",this.handlePointerMove),eU(this.contextWindow,"pointerup",this.handlePointerUp),eU(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,eV.Pn)(this.updatePoint)}}function rf(e,t){return t?{point:t(e.point)}:e}function rp(e,t){return{x:e.x-t.x,y:e.y-t.y}}function rm({point:e},t){return{point:e,delta:rp(e,rg(t)),offset:rp(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=rg(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>tr(.1)));)n--;if(!r)return{x:0,y:0};let o=ti(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};let a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function rg(e){return e[e.length-1]}function rv(e){return e.max-e.min}function ry(e,t=0,n=.01){return Math.abs(e-t)<=n}function rb(e,t,n,r=.5){e.origin=r,e.originPoint=nC(t.min,t.max,e.origin),e.scale=rv(n)/rv(t),(ry(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=nC(n.min,n.max,e.origin)-e.originPoint,(ry(e.translate)||isNaN(e.translate))&&(e.translate=0)}function rx(e,t,n,r){rb(e.x,t.x,n.x,r?r.originX:void 0),rb(e.y,t.y,n.y,r?r.originY:void 0)}function rw(e,t,n){e.min=n.min+t.min,e.max=e.min+rv(t)}function rP(e,t,n){e.min=t.min-n.min,e.max=e.min+rv(t)}function rE(e,t,n){rP(e.x,t.x,n.x),rP(e.y,t.y,n.y)}function rS(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function rC(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function rT(e,t,n){return{min:rR(e,t),max:rR(e,n)}}function rR(e,t){return"number"==typeof e?e:e[t]||0}let rA=()=>({translate:0,scale:1,origin:0,originPoint:0}),rM=()=>({x:rA(),y:rA()}),rk=()=>({min:0,max:0}),rj=()=>({x:rk(),y:rk()});function rO(e){return[e("x"),e("y")]}function rL({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function rD(e){return void 0===e||1===e}function rN({scale:e,scaleX:t,scaleY:n}){return!rD(e)||!rD(t)||!rD(n)}function rV(e){return rN(e)||rI(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function rI(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function rF(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function r_(e,t=0,n=1,r,i){e.min=rF(e.min,t,n,r,i),e.max=rF(e.max,t,n,r,i)}function rB(e,{x:t,y:n}){r_(e.x,t.translate,t.scale,t.originPoint),r_(e.y,n.translate,n.scale,n.originPoint)}function rW(e){return Number.isInteger(e)?e:e>1.0000000000001||e<.999999999999?e:1}function rz(e,t){e.min=e.min+t,e.max=e.max+t}function rU(e,t,[n,r,i]){let o=void 0!==t[i]?t[i]:.5,a=nC(e.min,e.max,o);r_(e,t[n],t[r],a,t.scale)}let r$=["x","scaleX","originX"],rH=["y","scaleY","originY"];function rY(e,t){rU(e.x,t,r$),rU(e.y,t,rH)}function rK(e,t){return rL(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(),t))}let rG=({current:e})=>e?e.ownerDocument.defaultView:null,rX=new WeakMap;class rZ{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=rj(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new rh(e,{onSessionStart:e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(eW(e,"page").point)},onStart:(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=eX(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rO(e=>{let t=this.getAxisMotionValue(e).get()||0;if(ei.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];if(r){let e=rv(r);t=parseFloat(t)/100*e}}}this.originPoint[e]=t}),i&&eV.Wi.postRender(()=>i(e,t));let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>rO(e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:rG(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&eV.Wi.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!rq(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?nC(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?nC(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,i=this.constraints;t&&g(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:rS(e.x,n,i),y:rS(e.y,t,r)}}(r.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:rT(e,"left","right"),y:rT(e,"top","bottom")}}(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&rO(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!g(t))return!1;let r=t.current;(0,ty.k)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,n){let r=rK(e,n),{scroll:i}=t;return i&&(rz(r.x,i.offset.x),rz(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a={x:rC((e=i.layout.layoutBox).x,o.x),y:rC(e.y,o.y)};if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=rL(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all(rO(a=>{if(!rq(a,t,this.currentDirection))return;let l=s&&s[a]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return n.start(n1(e,n,0,t,this.visualElement))}stopAnimation(){rO(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){rO(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){rO(t=>{let{drag:n}=this.getProps();if(!rq(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[t];i.set(e[t]-nC(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!g(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};rO(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();r[e]=function(e,t){let n=.5,r=rv(e),i=rv(t);return i>r?n=nS(t.min,t.max-r,e.min):r>i&&(n=nS(e.min,e.max-i,t.min)),K(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),rO(t=>{if(!rq(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set(nC(i,o,r[t]))})}addListeners(){if(!this.visualElement.current)return;rX.set(this.visualElement,this);let e=eU(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();g(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),eV.Wi.read(t);let i=e_(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rO(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),r(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function rq(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class rJ extends eq{constructor(e){super(e),this.removeGroupControls=e2.Z,this.removeListeners=e2.Z,this.controls=new rZ(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||e2.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let rQ=e=>(t,n)=>{e&&eV.Wi.postRender(()=>e(t,n))};class r0 extends eq{constructor(){super(...arguments),this.removePointerDownListener=e2.Z}onPointerDown(e){this.session=new rh(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rG(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:rQ(e),onStart:rQ(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&eV.Wi.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=eU(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let r1={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function r2(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let r5={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!eo.test(e))return e;e=parseFloat(e)}let n=r2(e,t.target.x),r=r2(e,t.target.y);return`${n}% ${r}%`}};class r3 extends a.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Object.assign(D,r9),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),r1.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,r||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||eV.Wi.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),p.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function r4(e){let[t,n]=function(){let e=(0,a.useContext)(u.O);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:r}=e,i=(0,a.useId)();return(0,a.useEffect)(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}(),r=(0,a.useContext)(k.p);return(0,o.jsx)(r3,{...e,layoutGroup:r,switchLayoutGroup:(0,a.useContext)(v),isPresent:t,safeToRemove:n})}let r9={borderRadius:{...r5,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:r5,borderTopRightRadius:r5,borderBottomLeftRadius:r5,borderBottomRightRadius:r5,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=tJ.parse(e);if(r.length>5)return e;let i=tJ.createTransformer(e),o="number"!=typeof r[0]?1:0,a=n.x.scale*t.x,s=n.y.scale*t.y;r[0+o]/=a,r[1+o]/=s;let l=nC(a,s,.5);return"number"==typeof r[2+o]&&(r[2+o]/=l),"number"==typeof r[3+o]&&(r[3+o]/=l),i(r)}}},r7=["TopLeft","TopRight","BottomLeft","BottomRight"],r6=r7.length,r8=e=>"string"==typeof e?parseFloat(e):e,ie=e=>"number"==typeof e||eo.test(e);function it(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let ir=io(0,.5,nv),ii=io(.5,.95,e2.Z);function io(e,t,n){return r=>r<e?0:r>t?1:n(nS(e,t,r))}function ia(e,t){e.min=t.min,e.max=t.max}function is(e,t){ia(e.x,t.x),ia(e.y,t.y)}function il(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function iu(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(ei.test(t)&&(t=parseFloat(t),t=nC(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=nC(o.min,o.max,r);e===o&&(s-=t),e.min=il(e.min,t,n,s,i),e.max=il(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}let ic=["x","scaleX","originX"],id=["y","scaleY","originY"];function ih(e,t,n,r){iu(e.x,t,ic,n?n.x:void 0,r?r.x:void 0),iu(e.y,t,id,n?n.y:void 0,r?r.y:void 0)}function ip(e){return 0===e.translate&&1===e.scale}function im(e){return ip(e.x)&&ip(e.y)}function ig(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function iv(e){return rv(e.x)/rv(e.y)}class iy{constructor(){this.members=[]}add(e){n5(this.members,e),e.scheduleRender()}remove(e){if(n3(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ib(e,t,n){let r="",i=e.x.translate/t.x,o=e.y.translate/t.y,a=(null==n?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:o,skewX:a,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),o&&(r+=`rotateY(${o}deg) `),a&&(r+=`skewX(${a}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(r+=`scale(${s}, ${l})`),r||"none"}let ix=(e,t)=>e.depth-t.depth;class iw{constructor(){this.children=[],this.isDirty=!1}add(e){n5(this.children,e),this.isDirty=!0}remove(e){n3(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ix),this.isDirty=!1,this.children.forEach(e)}}let iP=["","X","Y","Z"],iE={visibility:"hidden"},iS=0,iC={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function iT(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function iR({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=null==t?void 0:t()){this.id=iS++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,iC.totalNodes=iC.resolvedTargetDeltas=iC.recalculatedProjection=0,this.nodes.forEach(ik),this.nodes.forEach(iI),this.nodes.forEach(iF),this.nodes.forEach(ij),window.MotionDebug&&window.MotionDebug.record(iC)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new iw)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new n4),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:r,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||r)&&(this.isLayoutDirty=!0),e){let n;let r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=tg.now(),r=({timestamp:t})=>{let i=t-n;i>=250&&((0,eV.Pn)(r),e(i-250))};return eV.Wi.read(r,!0),()=>(0,eV.Pn)(r)}(r,0),r1.hasAnimatedSinceResize&&(r1.hasAnimatedSinceResize=!1,this.nodes.forEach(iV))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&o&&(r||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||o.getDefaultTransition()||i$,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=o.getProps(),l=!this.targetLayout||!ig(this.targetLayout,r)||n,u=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...tc(i,"layout"),onPlay:a,onComplete:s};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||iV(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,eV.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(i_),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.HandoffCancelAllAnimations&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return!1;let{visualElement:n}=t.options;return!!n&&(!!re(n)||!!t.parent&&!t.parent.hasCheckedOptimisedAppear&&e(t.parent))}(this)&&window.HandoffCancelAllAnimations(),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(iL);return}this.isUpdating||this.nodes.forEach(iD),this.isUpdating=!1,this.nodes.forEach(iN),this.nodes.forEach(iA),this.nodes.forEach(iM),this.clearAllSnapshots();let e=tg.now();eV.frameData.delta=K(0,1e3/60,e-eV.frameData.timestamp),eV.frameData.timestamp=e,eV.frameData.isProcessing=!0,eV.S6.update.process(eV.frameData),eV.S6.preRender.process(eV.frameData),eV.S6.render.process(eV.frameData),eV.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,p.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iO),this.sharedNodes.forEach(iB)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eV.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eV.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=rj(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!im(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&(t||rV(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),iK((t=r).x),iK(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return rj();let t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(rz(t.x,n.offset.x),rz(t.y,n.offset.y)),t}removeElementScroll(e){let t=rj();is(t,e);for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:o}=r;if(r!==this.root&&i&&o.layoutScroll){if(i.isRoot){is(t,e);let{scroll:n}=this.root;n&&(rz(t.x,-n.offset.x),rz(t.y,-n.offset.y))}rz(t.x,i.offset.x),rz(t.y,i.offset.y)}}return t}applyTransform(e,t=!1){let n=rj();is(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&rY(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),rV(r.latestValues)&&rY(n,r.latestValues)}return rV(this.latestValues)&&rY(n,this.latestValues),n}removeTransform(e){let t=rj();is(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!rV(n.latestValues))continue;rN(n.latestValues)&&n.updateSnapshot();let r=rj();is(r,n.measurePageBox()),ih(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return rV(this.latestValues)&&ih(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==eV.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,n,r,i;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let a=!!this.resumingFrom||this!==o;if(!(e||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:s,layoutId:l}=this.options;if(this.layout&&(s||l)){if(this.resolvedRelativeTargetAt=eV.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rj(),this.relativeTargetOrigin=rj(),rE(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),is(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=rj(),this.targetWithTransforms=rj()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),n=this.target,r=this.relativeTarget,i=this.relativeParent.target,rw(n.x,r.x,i.x),rw(n.y,r.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):is(this.target,this.layout.layoutBox),rB(this.target,this.targetDelta)):is(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rj(),this.relativeTargetOrigin=rj(),rE(this.relativeTargetOrigin,this.target,e.target),is(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}iC.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||rN(this.parent.latestValues)||rI(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),n=!!this.resumingFrom||this!==t,r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===eV.frameData.timestamp&&(r=!1),r)return;let{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||o))return;is(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){let i,o;let a=n.length;if(a){t.x=t.y=1;for(let s=0;s<a;s++){o=(i=n[s]).projectionDelta;let a=i.instance;(!a||!a.style||"contents"!==a.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&rY(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,rB(e,o)),r&&rV(i.latestValues)&&rY(e,i.latestValues))}t.x=rW(t.x),t.y=rW(t.y)}}(this.layoutCorrected,this.treeScale,this.path,n),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=rj());let{target:l}=t;if(!l){this.projectionTransform&&(this.projectionDelta=rM(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=rM(),this.projectionDeltaWithTransform=rM());let u=this.projectionTransform;rx(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=ib(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==a||this.treeScale.y!==s)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),iC.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){let n;let r=this.snapshot,i=r?r.latestValues:{},o={...this.latestValues},a=rM();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=rj(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(iU));this.animationProgress=0,this.mixTargetDelta=t=>{let r=t/1e3;if(iW(a.x,e.x,r),iW(a.y,e.y,r),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,h,f,p;rE(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,iz(f.x,p.x,s.x,r),iz(f.y,p.y,s.y,r),n&&(u=this.relativeTarget,h=n,u.x.min===h.x.min&&u.x.max===h.x.max&&u.y.min===h.y.min&&u.y.max===h.y.max)&&(this.isProjectionDirty=!1),n||(n=rj()),is(n,this.relativeTarget)}l&&(this.animationValues=o,function(e,t,n,r,i,o){i?(e.opacity=nC(0,void 0!==n.opacity?n.opacity:1,ir(r)),e.opacityExit=nC(void 0!==t.opacity?t.opacity:1,0,ii(r))):o&&(e.opacity=nC(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let i=0;i<r6;i++){let o=`border${r7[i]}Radius`,a=it(t,o),s=it(n,o);(void 0!==a||void 0!==s)&&(a||(a=0),s||(s=0),0===a||0===s||ie(a)===ie(s)?(e[o]=Math.max(nC(r8(a),r8(s),r),0),(ei.test(s)||ei.test(a))&&(e[o]+="%")):e[o]=s)}(t.rotate||n.rotate)&&(e.rotate=nC(t.rotate||0,n.rotate||0,r))}(o,i,this.latestValues,r,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,eV.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eV.Wi.update(()=>{r1.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){let r=F(0)?0:n8(0);return r.start(n1("",r,1e3,n)),r.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&iG(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||rj();let t=rv(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=rv(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}is(t,n),rY(t,i),rx(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new iy),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&iT("z",e,r,this.animationValues);for(let t=0;t<iP.length;t++)iT(`rotate${iP[t]}`,e,r,this.animationValues),iT(`skew${iP[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return iE;let r={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=eD(null==e?void 0:e.pointerEvents)||"",r.transform=i?i(this.latestValues,""):"none",r;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=eD(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!rV(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}let a=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=ib(this.projectionDeltaWithTransform,this.treeScale,a),i&&(r.transform=i(a,r.transform));let{x:s,y:l}=this.projectionDelta;for(let e in r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,o.animationValues?r.opacity=o===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=o===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,D){if(void 0===a[e])continue;let{correct:t,applyTo:n}=D[e],i="none"===r.transform?a[e]:t(a[e],o);if(n){let e=n.length;for(let t=0;t<e;t++)r[n[t]]=i}else r[e]=i}return this.options.layoutId&&(r.pointerEvents=o===this?eD(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(iL),this.root.sharedNodes.clear()}}}function iA(e){e.updateLayout()}function iM(e){var t;let n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:r}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;"size"===i?rO(e=>{let r=o?n.measuredBox[e]:n.layoutBox[e],i=rv(r);r.min=t[e].min,r.max=r.min+i}):iG(i,n.layoutBox,t)&&rO(r=>{let i=o?n.measuredBox[r]:n.layoutBox[r],a=rv(t[r]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});let a=rM();rx(a,t,n.layoutBox);let s=rM();o?rx(s,e.applyTransform(r,!0),n.measuredBox):rx(s,t,n.layoutBox);let l=!im(a),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let a=rj();rE(a,n.layoutBox,i.layoutBox);let s=rj();rE(s,t,o.layoutBox),ig(a,s)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ik(e){iC.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ij(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iO(e){e.clearSnapshot()}function iL(e){e.clearMeasurements()}function iD(e){e.isLayoutDirty=!1}function iN(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function iV(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function iI(e){e.resolveTargetDelta()}function iF(e){e.calcProjection()}function i_(e){e.resetSkewAndRotation()}function iB(e){e.removeLeadSnapshot()}function iW(e,t,n){e.translate=nC(t.translate,0,n),e.scale=nC(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function iz(e,t,n,r){e.min=nC(t.min,n.min,r),e.max=nC(t.max,n.max,r)}function iU(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let i$={duration:.45,ease:[.4,0,.1,1]},iH=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),iY=iH("applewebkit/")&&!iH("chrome/")?Math.round:e2.Z;function iK(e){e.min=iY(e.min),e.max=iY(e.max)}function iG(e,t,n){return"position"===e||"preserve-aspect"===e&&!ry(iv(t),iv(n),.2)}let iX=iR({attachResizeListener:(e,t)=>e_(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),iZ={current:void 0},iq=iR({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!iZ.current){let e=new iX({});e.mount(window),e.setOptions({layoutScroll:!0}),iZ.current=e}return iZ.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),iJ={current:null},iQ={current:!1},i0=new WeakMap,i1=[...tM,t$,tJ],i2=e=>i1.find(tA(e)),i5=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],i3=E.length;class i4{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},a={}){this.resolveKeyframes=(e,t,n,r)=>new this.KeyframeResolver(e,t,n,r,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tV,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>eV.Wi.render(this.render,!1,!0);let{latestValues:s,renderState:l}=o;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=S(t),this.isVariantNode=C(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!==s[e]&&F(t)&&(t.set(s[e],!1),n2(u)&&u.add(e))}}mount(e){this.current=e,i0.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)),iQ.current||function(){if(iQ.current=!0,M.j){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>iJ.current=e.matches;e.addListener(t),t()}else iJ.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||iJ.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in i0.delete(this.current),this.projection&&this.projection.unmount(),(0,eV.Pn)(this.notifyUpdate),(0,eV.Pn)(this.render),this.valueSubscriptions.forEach(e=>e()),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=V.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eV.Wi.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),i(),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 A){let t=A[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.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rj()}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<i5.length;t++){let n=i5[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){let{willChange:r}=t;for(let i in t){let o=t[i],a=n[i];if(F(o))e.addValue(i,o),n2(r)&&r.add(i);else if(F(a))e.addValue(i,n8(o,{owner:e})),n2(r)&&r.remove(i);else if(a!==o){if(e.hasValue(i)){let t=e.getValue(i);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{let t=e.getStaticValue(i);e.addValue(i,n8(void 0!==t?t:o,{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}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}let t={};for(let e=0;e<i3;e++){let n=E[e],r=this.props[n];(x(r)||!1===r)&&(t[n]=r)}return t}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=n8(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&&(tb(r)||tv(r))?r=parseFloat(r):!i2(r)&&tJ.test(t)&&(r=t4(e,t)),this.setBaseTarget(e,F(r)?r.get():r)),F(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=eM(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||F(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 n4),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class i9 extends i4{constructor(){super(...arguments),this.KeyframeResolver=t7}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}}class i7 extends i9{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(V.has(t)){let e=t3(t);return e&&e.default||0}{let n=window.getComputedStyle(e),r=(z(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return rK(e,t)}build(e,t,n,r){ed(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return eT(e,t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;F(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,n,r){eE(e,t,n,r)}}class i6 extends i9{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(V.has(t)){let e=t3(t);return e&&e.default||0}return t=eS.has(t)?t:h(t),e.getAttribute(t)}measureInstanceViewportBox(){return rj()}scrapeMotionValuesFromProps(e,t,n){return eR(e,t,n)}build(e,t,n,r){ex(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){eC(e,t,n,r)}mount(e){this.isSVGTag=eP(e.tagName),super.mount(e)}}let i8=(e,t)=>L(e)?new i6(t,{enableHardwareAcceleration:!1}):new i7(t,{allowProjection:e!==a.Fragment,enableHardwareAcceleration:!0}),oe={animation:{Feature:rl},exit:{Feature:rc},inView:{Feature:te},tap:{Feature:e3},focus:{Feature:e0},hover:{Feature:eQ},pan:{Feature:r0},drag:{Feature:rJ,ProjectionNode:iq,MeasureLayout:r4},layout:{ProjectionNode:iq,MeasureLayout:r4}},ot=function(e){function t(t,n={}){return function({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&function(e){for(let t in e)A[t]={...A[t],...e[t]}}(e);let h=(0,a.forwardRef)(function(e,h){var m;let w;let P={...(0,a.useContext)(s._),...e,layoutId:function({layoutId:e}){let t=(0,a.useContext)(k.p).id;return t&&void 0!==e?t+"-"+e:e}(e)},{isStatic:E}=P,C=function(e){let{initial:t,animate:n}=function(e,t){if(S(e)){let{initial:t,animate:n}=e;return{initial:!1===t||x(t)?t:void 0,animate:x(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,a.useContext)(l));return(0,a.useMemo)(()=>({initial:t,animate:n}),[T(t),T(n)])}(e),R=r(e,E);if(!E&&M.j){(0,a.useContext)(d).strict;let e=function(e){let{drag:t,layout:n}=A;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);w=e.MeasureLayout,C.visualElement=function(e,t,n,r,i){let{visualElement:o}=(0,a.useContext)(l),h=(0,a.useContext)(d),m=(0,a.useContext)(u.O),x=(0,a.useContext)(s._).reducedMotion,w=(0,a.useRef)(void 0);r=r||h.renderer,!w.current&&r&&(w.current=r(e,{visualState:t,parent:o,props:n,presenceContext:m,blockInitialAnimation:!!m&&!1===m.initial,reducedMotionConfig:x}));let P=w.current,E=(0,a.useContext)(v);P&&!P.projection&&i&&("html"===P.type||"svg"===P.type)&&function(e,t,n,r){let{layoutId:i,layout:o,drag:a,dragConstraints:s,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:!!a||s&&g(s),visualElement:e,scheduleRender:()=>e.scheduleRender(),animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}(w.current,n,i,E),(0,a.useInsertionEffect)(()=>{P&&P.update(n,m)});let S=(0,a.useRef)(!!(n[f]&&!window.HandoffComplete));return(0,c.L)(()=>{P&&(P.updateFeatures(),p.render(P.render),S.current&&P.animationState&&P.animationState.animateChanges())}),(0,a.useEffect)(()=>{P&&(!S.current&&P.animationState&&P.animationState.animateChanges(),S.current&&(S.current=!1,y||(y=!0,queueMicrotask(b))))}),P}(i,R,P,t,e.ProjectionNode)}return(0,o.jsxs)(l.Provider,{value:C,children:[w&&C.visualElement?(0,o.jsx)(w,{visualElement:C.visualElement,...P}):null,n(i,e,(m=C.visualElement,(0,a.useCallback)(e=>{e&&R.mount&&R.mount(e),m&&(e?m.mount(e):m.unmount()),h&&("function"==typeof h?h(e):g(h)&&(h.current=e))},[m])),R,E,C.visualElement)]})});return h[j]=i,h}(e(t,n))}if("undefined"==typeof Proxy)return t;let n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},n,r){return{...L(e)?eI:eF,preloadedFeatures:n,useRender:function(e=!1){return(t,n,r,{latestValues:i},o)=>{let s=(L(t)?function(e,t,n,r){let i=(0,a.useMemo)(()=>{let n=ew();return ex(n,t,{enableHardwareAcceleration:!1},eP(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};ef(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t,n){let r={},i=function(e,t,n){let r=e.style||{},i={};return ef(i,r,e),Object.assign(i,function({transformTemplate:e},t,n){return(0,a.useMemo)(()=>{let r=eh();return ed(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}(e,t,n)),i}(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r})(n,i,o,t),l=function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(eg(i)||!0===n&&em(i)||!t&&!em(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),u=t!==a.Fragment?{...l,...s,ref:r}:{},{children:c}=n,d=(0,a.useMemo)(()=>F(c)?c.get():c,[c]);return(0,a.createElement)(t,{...u,children:d})}}(t),createVisualElement:r,Component:e}})(e,t,oe,i8))},8637:function(e,t,n){n.d(t,{c:function(){return r}});let r={skipAnimations:!1,useManualTiming:!1}},6862:function(e,t,n){n.d(t,{K:function(){return i},k:function(){return o}});var r=n(7578);let i=r.Z,o=r.Z},5645:function(e,t,n){n.d(t,{j:function(){return r}});let r="undefined"!=typeof document},7578:function(e,t,n){n.d(t,{Z:function(){return r}});let r=e=>e},7200:function(e,t,n){n.d(t,{h:function(){return i}});var r=n(7292);function i(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},6324:function(e,t,n){n.d(t,{N:function(){return a}});var r=n(7292),i=n(338),o=n(9112);function a(){let e=(0,i.t)(),[t,n]=(0,r.useState)(0),a=(0,r.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,r.useCallback)(()=>o.Wi.postRender(a),[a]),t]}},338:function(e,t,n){n.d(t,{t:function(){return o}});var r=n(7292),i=n(5362);function o(){let e=(0,r.useRef)(!1);return(0,i.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},5362:function(e,t,n){n.d(t,{L:function(){return i}});var r=n(7292);let i=n(5645).j?r.useLayoutEffect:r.useEffect},8905:function(e,t,n){n.d(t,{A:function(){return p},x:function(){return y}});var r=n(7292),i=n(7994);!function(e){let{insertAt:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"undefined"==typeof document)return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===t&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}('html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}html[dir=rtl],[data-sonner-toaster][dir=rtl]{--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}[data-sonner-toaster][data-x-position=right]{right:max(var(--offset),env(safe-area-inset-right))}[data-sonner-toaster][data-x-position=left]{left:max(var(--offset),env(safe-area-inset-left))}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translate(-50%)}[data-sonner-toaster][data-y-position=top]{top:max(var(--offset),env(safe-area-inset-top))}[data-sonner-toaster][data-y-position=bottom]{bottom:max(var(--offset),env(safe-area-inset-bottom))}[data-sonner-toast]{--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;will-change:transform,opacity,height;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-y-position=top]{top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}[data-sonner-toast] [data-description]{font-weight:400;line-height:1.4;color:inherit}[data-sonner-toast] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast] [data-icon]>*{flex-shrink:0}[data-sonner-toast] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast] [data-button]:focus-visible{box-shadow:0 0 0 2px #0006}[data-sonner-toast] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toast][data-theme=dark] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:"";position:absolute;left:0;right:0;height:100%}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:"";position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]:after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y: translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y: translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - 32px)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success],[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info],[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning],[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error],[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}\n');var o=e=>{switch(e){case"success":return l;case"info":return c;case"warning":return u;case"error":return d;default:return null}},a=Array(12).fill(0),s=e=>{let{visible:t}=e;return r.createElement("div",{className:"sonner-loading-wrapper","data-visible":t},r.createElement("div",{className:"sonner-spinner"},a.map((e,t)=>r.createElement("div",{className:"sonner-loading-bar",key:"spinner-bar-".concat(t)}))))},l=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),u=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),c=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),d=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),h=1,f=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,i="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:h++,o=this.toasts.find(e=>e.id===i),a=void 0===e.dismissible||e.dismissible;return o?this.toasts=this.toasts.map(t=>t.id===i?(this.publish({...t,...e,id:i,title:n}),{...t,...e,id:i,dismissible:a,title:n}):t):this.addToast({title:n,...r,dismissible:a,id:i}),i},this.dismiss=e=>(e||this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{let n;if(!t)return;void 0!==t.loading&&(n=this.create({...t,promise:e,type:"loading",message:t.loading}));let r=e instanceof Promise?e:e(),i=void 0!==n;return r.then(e=>{if(e&&"boolean"==typeof e.ok&&!e.ok){i=!1;let r="function"==typeof t.error?t.error("HTTP error! status: ".concat(e.status)):t.error;this.create({id:n,type:"error",message:r})}else if(void 0!==t.success){i=!1;let r="function"==typeof t.success?t.success(e):t.success;this.create({id:n,type:"success",message:r})}}).catch(e=>{if(void 0!==t.error){i=!1;let r="function"==typeof t.error?t.error(e):t.error;this.create({id:n,type:"error",message:r})}}).finally(()=>{var e;i&&(this.dismiss(n),n=void 0),null==(e=t.finally)||e.call(t)}),n},this.custom=(e,t)=>{let n=(null==t?void 0:t.id)||h++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},p=Object.assign((e,t)=>{let n=(null==t?void 0:t.id)||h++;return f.addToast({title:e,...t,id:n}),n},{success:f.success,info:f.info,warning:f.warning,error:f.error,custom:f.custom,message:f.message,promise:f.promise,dismiss:f.dismiss,loading:f.loading});function m(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}var g=e=>{var t,n,i,a,l,u,c;let{invert:d,toast:h,unstyled:f,interacting:p,setHeights:g,visibleToasts:v,heights:y,index:b,toasts:x,expanded:w,removeToast:P,closeButton:E,style:S,cancelButtonStyle:C,actionButtonStyle:T,className:R="",descriptionClassName:A="",duration:M,position:k,gap:j=14,loadingIcon:O,expandByDefault:L,classNames:D,closeButtonAriaLabel:N="Close toast"}=e,[V,I]=r.useState(!1),[F,_]=r.useState(!1),[B,W]=r.useState(!1),[z,U]=r.useState(!1),[$,H]=r.useState(0),[Y,K]=r.useState(0),G=r.useRef(null),X=r.useRef(null),Z=0===b,q=b+1<=v,J=h.type,Q=!1!==h.dismissible,ee=h.className||"",et=h.descriptionClassName||"",en=r.useMemo(()=>y.findIndex(e=>e.toastId===h.id)||0,[y,h.id]),er=r.useMemo(()=>h.duration||M||4e3,[h.duration,M]),ei=r.useRef(0),eo=r.useRef(0),ea=(r.useRef(er),r.useRef(0)),es=r.useRef(null),[el,eu]=k.split("-"),ec=r.useMemo(()=>y.reduce((e,t,n)=>n>=en?e:e+t.height,0),[y,en]),ed=h.invert||d,eh="loading"===J;eo.current=r.useMemo(()=>en*j+ec,[en,ec]),r.useEffect(()=>{I(!0)},[]),r.useLayoutEffect(()=>{if(!V)return;let e=X.current,t=e.style.height;e.style.height="auto";let n=e.getBoundingClientRect().height;e.style.height=t,K(n),g(e=>e.find(e=>e.toastId===h.id)?e.map(e=>e.toastId===h.id?{...e,height:n}:e):[{toastId:h.id,height:n},...e])},[V,h.title,h.description,g,h.id]);let ef=r.useCallback(()=>{_(!0),H(eo.current),g(e=>e.filter(e=>e.toastId!==h.id)),setTimeout(()=>{P(h)},200)},[h,P,g,eo]);return r.useEffect(()=>{if(h.promise&&"loading"===J||h.duration===1/0)return;let e,t=er;return w||p?(()=>{if(ea.current<ei.current){let e=new Date().getTime()-ei.current;t-=e}ea.current=new Date().getTime()})():(ei.current=new Date().getTime(),e=setTimeout(()=>{var e;null==(e=h.onAutoClose)||e.call(h,h),ef()},t)),()=>clearTimeout(e)},[w,p,L,h,er,ef,h.promise,J]),r.useEffect(()=>{let e=X.current;if(e){let t=e.getBoundingClientRect().height;return K(t),g(e=>[{toastId:h.id,height:t},...e]),()=>g(e=>e.filter(e=>e.toastId!==h.id))}},[g,h.id]),r.useEffect(()=>{h.delete&&ef()},[ef,h.delete]),r.createElement("li",{"aria-live":h.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:X,className:m(R,ee,null==D?void 0:D.toast,null==(t=null==h?void 0:h.classNames)?void 0:t.toast,null==D?void 0:D[J],null==(n=null==h?void 0:h.classNames)?void 0:n[J]),"data-sonner-toast":"","data-styled":!(h.jsx||h.unstyled||f),"data-mounted":V,"data-promise":!!h.promise,"data-removed":F,"data-visible":q,"data-y-position":el,"data-x-position":eu,"data-index":b,"data-front":Z,"data-swiping":B,"data-dismissible":Q,"data-type":J,"data-invert":ed,"data-swipe-out":z,"data-expanded":!!(w||L&&V),style:{"--index":b,"--toasts-before":b,"--z-index":x.length-b,"--offset":"".concat(F?$:eo.current,"px"),"--initial-height":L?"auto":"".concat(Y,"px"),...S,...h.style},onPointerDown:e=>{eh||!Q||(G.current=new Date,H(eo.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(W(!0),es.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,n,r;if(z||!Q)return;es.current=null;let i=Number((null==(e=X.current)?void 0:e.style.getPropertyValue("--swipe-amount").replace("px",""))||0),o=new Date().getTime()-(null==(t=G.current)?void 0:t.getTime());if(Math.abs(i)>=20||Math.abs(i)/o>.11){H(eo.current),null==(n=h.onDismiss)||n.call(h,h),ef(),U(!0);return}null==(r=X.current)||r.style.setProperty("--swipe-amount","0px"),W(!1)},onPointerMove:e=>{var t;if(!es.current||!Q)return;let n=e.clientY-es.current.y,r=e.clientX-es.current.x,i=("top"===el?Math.min:Math.max)(0,n),o="touch"===e.pointerType?10:2;Math.abs(i)>o?null==(t=X.current)||t.style.setProperty("--swipe-amount","".concat(n,"px")):Math.abs(r)>o&&(es.current=null)}},E&&!h.jsx?r.createElement("button",{"aria-label":N,"data-disabled":eh,"data-close-button":!0,onClick:eh||!Q?()=>{}:()=>{var e;ef(),null==(e=h.onDismiss)||e.call(h,h)},className:m(null==D?void 0:D.closeButton,null==(i=null==h?void 0:h.classNames)?void 0:i.closeButton)},r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},r.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),r.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,h.jsx||r.isValidElement(h.title)?h.jsx||h.title:r.createElement(r.Fragment,null,J||h.icon||h.promise?r.createElement("div",{"data-icon":""},(h.promise||"loading"===h.type)&&!h.icon?O?r.createElement("div",{className:"loader","data-visible":"loading"===J},O):r.createElement(s,{visible:"loading"===J}):null,h.icon||o(J)):null,r.createElement("div",{"data-content":""},r.createElement("div",{"data-title":"",className:m(null==D?void 0:D.title,null==(a=null==h?void 0:h.classNames)?void 0:a.title)},h.title),h.description?r.createElement("div",{"data-description":"",className:m(A,et,null==D?void 0:D.description,null==(l=null==h?void 0:h.classNames)?void 0:l.description)},h.description):null),h.cancel?r.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||C,onClick:()=>{var e;Q&&(ef(),null!=(e=h.cancel)&&e.onClick&&h.cancel.onClick())},className:m(null==D?void 0:D.cancelButton,null==(u=null==h?void 0:h.classNames)?void 0:u.cancelButton)},h.cancel.label):null,h.action?r.createElement("button",{"data-button":"",style:h.actionButtonStyle||T,onClick:e=>{var t;null==(t=h.action)||t.onClick(e),e.defaultPrevented||ef()},className:m(null==D?void 0:D.actionButton,null==(c=null==h?void 0:h.classNames)?void 0:c.actionButton)},h.action.label):null))};function v(){if("undefined"==typeof window||"undefined"==typeof document)return"ltr";let e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}var y=e=>{let{invert:t,position:n="bottom-right",hotkey:o=["altKey","KeyT"],expand:a,closeButton:s,className:l,offset:u,theme:c="light",richColors:d,duration:h,style:p,visibleToasts:m=3,toastOptions:y,dir:b=v(),gap:x,loadingIcon:w,containerAriaLabel:P="Notifications"}=e,[E,S]=r.useState([]),C=r.useMemo(()=>Array.from(new Set([n].concat(E.filter(e=>e.position).map(e=>e.position)))),[E,n]),[T,R]=r.useState([]),[A,M]=r.useState(!1),[k,j]=r.useState(!1),[O,L]=r.useState("system"!==c?c:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),D=r.useRef(null),N=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),V=r.useRef(null),I=r.useRef(!1),F=r.useCallback(e=>S(t=>t.filter(t=>{let{id:n}=t;return n!==e.id})),[]);return r.useEffect(()=>f.subscribe(e=>{if(e.dismiss){S(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t));return}setTimeout(()=>{i.flushSync(()=>{S(t=>{let n=t.findIndex(t=>t.id===e.id);return -1!==n?[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]:[e,...t]})})})}),[]),r.useEffect(()=>{if("system"!==c){L(c);return}"system"===c&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?L("dark"):L("light")),"undefined"!=typeof window&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",e=>{let{matches:t}=e;L(t?"dark":"light")})},[c]),r.useEffect(()=>{E.length<=1&&M(!1)},[E]),r.useEffect(()=>{let e=e=>{var t,n;o.every(t=>e[t]||e.code===t)&&(M(!0),null==(t=D.current)||t.focus()),"Escape"===e.code&&(document.activeElement===D.current||null!=(n=D.current)&&n.contains(document.activeElement))&&M(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[o]),r.useEffect(()=>{if(D.current)return()=>{V.current&&(V.current.focus({preventScroll:!0}),V.current=null,I.current=!1)}},[D.current]),E.length?r.createElement("section",{"aria-label":"".concat(P," ").concat(N),tabIndex:-1},C.map((e,n)=>{var i;let[o,c]=e.split("-");return r.createElement("ol",{key:e,dir:"auto"===b?v():b,tabIndex:-1,ref:D,className:l,"data-sonner-toaster":!0,"data-theme":O,"data-rich-colors":d,"data-y-position":o,"data-x-position":c,style:{"--front-toast-height":"".concat(null==(i=T[0])?void 0:i.height,"px"),"--offset":"number"==typeof u?"".concat(u,"px"):u||"32px","--width":"".concat(356,"px"),"--gap":"".concat(14,"px"),...p},onBlur:e=>{I.current&&!e.currentTarget.contains(e.relatedTarget)&&(I.current=!1,V.current&&(V.current.focus({preventScroll:!0}),V.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||I.current||(I.current=!0,V.current=e.relatedTarget)},onMouseEnter:()=>M(!0),onMouseMove:()=>M(!0),onMouseLeave:()=>{k||M(!1)},onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||j(!0)},onPointerUp:()=>j(!1)},E.filter(t=>!t.position&&0===n||t.position===e).map((n,i)=>{var o;return r.createElement(g,{key:n.id,index:i,toast:n,duration:null!=(o=null==y?void 0:y.duration)?o:h,className:null==y?void 0:y.className,descriptionClassName:null==y?void 0:y.descriptionClassName,invert:t,visibleToasts:m,closeButton:s,interacting:k,position:e,style:null==y?void 0:y.style,unstyled:null==y?void 0:y.unstyled,classNames:null==y?void 0:y.classNames,cancelButtonStyle:null==y?void 0:y.cancelButtonStyle,actionButtonStyle:null==y?void 0:y.actionButtonStyle,removeToast:F,toasts:E,heights:T,setHeights:R,expandByDefault:a,gap:x,loadingIcon:w,expanded:A})}))})):null}},9759:function(e,t,n){n.d(t,{m6:function(){return N}});let r=/^\[(.+)\]$/;function i(e,t){let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n}let o=/\s+/;function a(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=function e(t){let n;if("string"==typeof t)return t;let r="";for(let 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 s(e){let t=t=>t[e]||[];return t.isThemeGetter=!0,t}let l=/^\[(?:([a-z-]+):)?(.+)\]$/i,u=/^\d+\/\d+$/,c=new Set(["px","full","screen"]),d=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,h=/\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$/,f=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,p=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function m(e){return v(e)||c.has(e)||u.test(e)}function g(e){return k(e,"length",j)}function v(e){return!!e&&!Number.isNaN(Number(e))}function y(e){return k(e,"number",v)}function b(e){return!!e&&Number.isInteger(Number(e))}function x(e){return e.endsWith("%")&&v(e.slice(0,-1))}function w(e){return l.test(e)}function P(e){return d.test(e)}let E=new Set(["length","size","percentage"]);function S(e){return k(e,E,O)}function C(e){return k(e,"position",O)}let T=new Set(["image","url"]);function R(e){return k(e,T,D)}function A(e){return k(e,"",L)}function M(){return!0}function k(e,t,n){let r=l.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))}function j(e){return h.test(e)}function O(){return!1}function L(e){return f.test(e)}function D(e){return p.test(e)}let N=function(e,...t){let n,s,l;let u=function(o){var a;return s=(n={cache:function(e){if(e<1)return{get:()=>void 0,set:()=>{}};let 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(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(i(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}}((a=t.reduce((e,t)=>t(e),e())).cacheSize),splitModifiers:function(e){let t=e.separator,n=1===t.length,r=t[0],i=t.length;return function(e){let o;let a=[],s=0,l=0;for(let u=0;u<e.length;u++){let c=e[u];if(0===s){if(c===r&&(n||e.slice(u,u+i)===t)){a.push(e.slice(l,u)),l=u+i;continue}if("/"===c){o=u;continue}}"["===c?s++:"]"===c&&s--}let u=0===a.length?e:e.substring(l),c=u.startsWith("!"),d=c?u.substring(1):u;return{modifiers:a,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:o&&o>l?o-l:void 0}}}(a),...function(e){let t=function(e){var t;let{theme:n,prefix:r}=e,o={nextPart:new Map,validators:[]};return(t=Object.entries(e.classGroups),r?t.map(([e,t])=>[e,t.map(e=>"string"==typeof e?r+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,t])=>[r+e,t])):e)]):t).forEach(([e,t])=>{(function e(t,n,r,o){t.forEach(t=>{if("string"==typeof t){(""===t?n:i(n,t)).classGroupId=r;return}if("function"==typeof t){if(t.isThemeGetter){e(t(o),n,r,o);return}n.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(([t,a])=>{e(a,i(n,t),r,o)})})})(t,o,e,n)}),o}(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:function(e){let n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),function e(t,n){if(0===t.length)return n.classGroupId;let r=t[0],i=n.nextPart.get(r),o=i?e(t.slice(1),i):void 0;if(o)return o;if(0===n.validators.length)return;let a=t.join("-");return n.validators.find(({validator:e})=>e(a))?.classGroupId}(n,t)||function(e){if(r.test(e)){let t=r.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){let r=n[e]||[];return t&&o[e]?[...r,...o[e]]:r}}}(a)}).cache.get,l=n.cache.set,u=c,c(o)};function c(e){let t=s(e);if(t)return t;let r=function(e,t){let{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,a=new Set;return e.trim().split(o).map(e=>{let{modifiers:t,hasImportantModifier:i,baseClassName:o,maybePostfixModifierPosition:a}=n(e),s=r(a?o.substring(0,a):o),l=!!a;if(!s){if(!a||!(s=r(o)))return{isTailwindClass:!1,originalClassName:e};l=!1}let u=(function(e){if(e.length<=1)return e;let t=[],n=[];return e.forEach(e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t})(t).join(":");return{isTailwindClass:!0,modifierId:i?u+"!":u,classGroupId:s,originalClassName:e,hasPostfixModifier:l}}).reverse().filter(e=>{if(!e.isTailwindClass)return!0;let{modifierId:t,classGroupId:n,hasPostfixModifier:r}=e,o=t+n;return!a.has(o)&&(a.add(o),i(n,r).forEach(e=>a.add(t+e)),!0)}).reverse().map(e=>e.originalClassName).join(" ")}(e,n);return l(e,r),r}return function(){return u(a.apply(null,arguments))}}(function(){let e=s("colors"),t=s("spacing"),n=s("blur"),r=s("brightness"),i=s("borderColor"),o=s("borderRadius"),a=s("borderSpacing"),l=s("borderWidth"),u=s("contrast"),c=s("grayscale"),d=s("hueRotate"),h=s("invert"),f=s("gap"),p=s("gradientColorStops"),E=s("gradientColorStopPositions"),T=s("inset"),k=s("margin"),j=s("opacity"),O=s("padding"),L=s("saturate"),D=s("scale"),N=s("sepia"),V=s("skew"),I=s("space"),F=s("translate"),_=()=>["auto","contain","none"],B=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto",w,t],z=()=>[w,t],U=()=>["",m,g],$=()=>["auto",v,w],H=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],G=()=>["start","end","center","between","around","evenly","stretch"],X=()=>["","0",w],Z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],q=()=>[v,y],J=()=>[v,w];return{cacheSize:500,separator:":",theme:{colors:[M],spacing:[m,g],blur:["none","",P,w],brightness:q(),borderColor:[e],borderRadius:["none","","full",P,w],borderSpacing:z(),borderWidth:U(),contrast:q(),grayscale:X(),hueRotate:J(),invert:X(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[x,g],inset:W(),margin:W(),opacity:q(),padding:z(),saturate:q(),scale:q(),sepia:X(),skew:J(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",w]}],container:["container"],columns:[{columns:[P]}],"break-after":[{"break-after":Z()}],"break-before":[{"break-before":Z()}],"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","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...H(),w]}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[T]}],"inset-x":[{"inset-x":[T]}],"inset-y":[{"inset-y":[T]}],start:[{start:[T]}],end:[{end:[T]}],top:[{top:[T]}],right:[{right:[T]}],bottom:[{bottom:[T]}],left:[{left:[T]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",b,w]}],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",w]}],grow:[{grow:X()}],shrink:[{shrink:X()}],order:[{order:["first","last","none",b,w]}],"grid-cols":[{"grid-cols":[M]}],"col-start-end":[{col:["auto",{span:["full",b,w]},w]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[M]}],"row-start-end":[{row:["auto",{span:[b,w]},w]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",w]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",w]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...G()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...G(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...G(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[O]}],px:[{px:[O]}],py:[{py:[O]}],ps:[{ps:[O]}],pe:[{pe:[O]}],pt:[{pt:[O]}],pr:[{pr:[O]}],pb:[{pb:[O]}],pl:[{pl:[O]}],m:[{m:[k]}],mx:[{mx:[k]}],my:[{my:[k]}],ms:[{ms:[k]}],me:[{me:[k]}],mt:[{mt:[k]}],mr:[{mr:[k]}],mb:[{mb:[k]}],ml:[{ml:[k]}],"space-x":[{"space-x":[I]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[I]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",w,t]}],"min-w":[{"min-w":[w,t,"min","max","fit"]}],"max-w":[{"max-w":[w,t,"none","full","min","max","fit","prose",{screen:[P]},P]}],h:[{h:[w,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[w,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[w,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[w,t,"auto","min","max","fit"]}],"font-size":[{text:["base",P,g]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",y]}],"font-family":[{font:[M]}],"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",w]}],"line-clamp":[{"line-clamp":["none",v,y]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",m,w]}],"list-image":[{"list-image":["none",w]}],"list-style-type":[{list:["none","disc","decimal",w]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[j]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",m,g]}],"underline-offset":[{"underline-offset":["auto",m,w]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",w]}],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",w]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[j]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...H(),C]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",S]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},R]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"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:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[j]}],"border-style":[{border:[...Y(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[j]}],"divide-style":[{divide:Y()}],"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:["",...Y()]}],"outline-offset":[{"outline-offset":[m,w]}],"outline-w":[{outline:[m,g]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[j]}],"ring-offset-w":[{"ring-offset":[m,g]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",P,A]}],"shadow-color":[{shadow:[M]}],opacity:[{opacity:[j]}],"mix-blend":[{"mix-blend":K()}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",P,w]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[L]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[j]}],"backdrop-saturate":[{"backdrop-saturate":[L]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",w]}],duration:[{duration:J()}],ease:[{ease:["linear","in","out","in-out",w]}],delay:[{delay:J()}],animate:[{animate:["none","spin","ping","pulse","bounce",w]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[D]}],"scale-x":[{"scale-x":[D]}],"scale-y":[{"scale-y":[D]}],rotate:[{rotate:[b,w]}],"translate-x":[{"translate-x":[F]}],"translate-y":[{"translate-y":[F]}],"skew-x":[{"skew-x":[V]}],"skew-y":[{"skew-y":[V]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",w]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",w]}],"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","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",w]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[m,g,y]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},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"],size:["w","h"],"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"],"line-clamp":["display","overflow"],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"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})}}]);
|