@mcp-use/inspector 20.0.0-beta.6 → 20.0.0-beta.7
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/dist/cdn/{AnimatePresence-Dcw-FOy8.js → AnimatePresence-D1bZ5_-l.js} +79 -78
- package/dist/cdn/{ChatTab-D6J3Gyp7.js → ChatTab-DtUGK07C.js} +1951 -1932
- package/dist/cdn/CheckboxIndicator-BjF73mGX.js +252 -0
- package/dist/cdn/{ConnectionSettingsForm-CWQueI8J.js → ConnectionSettingsForm-CNuMa6jp.js} +202 -202
- package/dist/cdn/{ConnectionSettingsTab-FGyt3QaI.js → ConnectionSettingsTab-qSVQ1aIF.js} +36 -35
- package/dist/cdn/{ElicitationTab-CL1KJ0bz.js → ElicitationTab-PEmEDvC5.js} +47 -46
- package/dist/cdn/{FormContext-tmgN_Vdr.js → FormContext-NtUiZclE.js} +26 -26
- package/dist/cdn/{InspectorContext-UjtEbNod.js → InspectorContext-BBKCdfmK.js} +1 -1
- package/dist/cdn/{JSONDisplay-BFxf5oEu.js → JSONDisplay-BJqMz7Ny.js} +22 -22
- package/dist/cdn/{ListTabHeader-Cv-GmtGF.js → ListTabHeader-DzmTtN1e.js} +20 -19
- package/dist/cdn/{WidgetWrapper-CruwjBOd.js → MCPAppsDebugControls-BpP-Ifap.js} +514 -550
- package/dist/cdn/{ManufactOAuthCallback-B98kSYCj.js → ManufactOAuthCallback-ChbbjFIT.js} +2 -2
- package/dist/cdn/{MarkdownRenderer-gLqUICEd.js → MarkdownRenderer-bX1BrKgI.js} +23 -23
- package/dist/cdn/McpAppsViewPanel-jlsYQ7uS.js +56 -0
- package/dist/cdn/{NotificationsTab-CeImSrhx.js → NotificationsTab-B7uebqMV.js} +21 -21
- package/dist/cdn/{OAuthCallback-Bg2bP-o9.js → OAuthCallback--NZdLoWx.js} +3 -3
- package/dist/cdn/PromptsTab-BlXDcau3.js +902 -0
- package/dist/cdn/{ResourcesTab-CQkKni-P.js → ResourcesTab-D45_JojP.js} +116 -114
- package/dist/cdn/{SamplingTab-D8q-iCMc.js → SamplingTab-r7tImM6L.js} +34 -33
- package/dist/cdn/{ServerMetadataTab-CvrKX8fz.js → ServerMetadataTab-BM3VhSLf.js} +9 -9
- package/dist/cdn/{StatusIcon-D0-ARyOh.js → StatusIcon-Q3n3YRtE.js} +10 -11
- package/dist/cdn/{ToolsTab-6xaVH43x.js → ToolsTab-DOAO8HnS.js} +664 -652
- package/dist/cdn/{ViewPreview-Ohh6JwOn.js → ViewPreview-CBhrVdwx.js} +3 -3
- package/dist/cdn/{WidgetDebugContext-D4usL_MA.js → WidgetDebugContext-B6yoOVVV.js} +1 -11
- package/dist/cdn/WidgetWrapper-BlbQAh_X.js +12 -0
- package/dist/cdn/{bell-CGjAO_0s.js → bell-GrTZcnD2.js} +1 -1
- package/dist/cdn/{browser-CbQIH4w2.js → browser-DG2Z8392.js} +1 -1
- package/dist/cdn/{brush-B_mKhyxG.js → brush-CelVvMGp.js} +1 -1
- package/dist/cdn/button-CB4uOoUV.js +2509 -0
- package/dist/cdn/card-BA-DQk-G.js +41 -0
- package/dist/cdn/{checkbox-By0FklhG.js → checkbox-kwVa4gRX.js} +7 -7
- package/dist/cdn/{clock-CmUbSx_B.js → clock-YMF8Gtw5.js} +1 -1
- package/dist/cdn/{code-V_0nf5rg.js → code-C8sN2OGR.js} +1 -1
- package/dist/cdn/{jsx-runtime-CIxvMpEo.js → createLucideIcon-BONxC1L5.js} +57 -24
- package/dist/cdn/{dialog-BsDpuJd3.js → dialog-CJGnC5Ag.js} +171 -171
- package/dist/cdn/{dist-DaMB0Su9.js → dist-CTJnCYmk.js} +1 -1
- package/dist/cdn/{dist-CXHFvGre.js → dist-SxRsB1iS.js} +3 -3
- package/dist/cdn/{external-link-CjmfT6rW.js → external-link-Bo4lQxr1.js} +1 -1
- package/dist/cdn/{eye-B7H96av8.js → eye-pSGG7nvf.js} +1 -1
- package/dist/cdn/{folder-open-B3lu2rG_.js → folder-open-aM8CPtBO.js} +1 -1
- package/dist/cdn/{hash-BVQnWi7q.js → hash-DDs2vE1k.js} +1 -1
- package/dist/cdn/{history-Csw4rb44.js → history-BfUFpL1d.js} +1 -1
- package/dist/cdn/{index-browser-DkQOzkvX.js → index-browser-Dm3R1Mfe.js} +1 -1
- package/dist/cdn/{info-CNiOwqkf.js → info-BMkB68mB.js} +1 -1
- package/dist/cdn/{input-C2OBd4PJ.js → input-BCpgLXU1.js} +2993 -5499
- package/dist/cdn/inspector.css +1 -1
- package/dist/cdn/inspector.js +7106 -7140
- package/dist/cdn/{label-B9Jmm9be.js → label-A0UGV8FE.js} +9 -9
- package/dist/cdn/{loader-circle-BLy9A_pp.js → loader-circle-BKRHJEB7.js} +1 -1
- package/dist/cdn/{maximize-2-CH5Lq90B.js → maximize-2-DdrB_spi.js} +1 -1
- package/dist/cdn/{maximize-BALCV_ep.js → maximize-hSOCz133.js} +1 -1
- package/dist/cdn/{message-square-BnxdpJxZ.js → message-square-D3tKB3uJ.js} +1 -1
- package/dist/cdn/{not-found-DEtSM_Wd.js → not-found-BajFyZpp.js} +9 -11
- package/dist/cdn/{play-vuZ5PLnI.js → play-B1leulYf.js} +1 -1
- package/dist/cdn/providerMeta-CjGU4rID.js +436 -0
- package/dist/cdn/{react-BLtCruam.js → react-Bl-hSkvn.js} +562 -512
- package/dist/cdn/{refresh-cw-BXY-Pa0U.js → refresh-cw-CyvXrS91.js} +1 -1
- package/dist/cdn/{save-Tgil_AJZ.js → save-CmdEPUAm.js} +1 -1
- package/dist/cdn/{select-DDdiIPR2.js → select-CCFHjOGk.js} +808 -807
- package/dist/cdn/{servers-Dm72iTpY.js → servers-Dd0Vcp81.js} +5 -1
- package/dist/cdn/{shared-DaILIQPP.js → shared-CJVHJhag.js} +36 -36
- package/dist/cdn/{sheet-Br_l2kry.js → sheet-oyq1mIyg.js} +620 -619
- package/dist/cdn/{sparkles-BntO2rDR.js → sparkles-CxeZpVtX.js} +1 -1
- package/dist/cdn/spinner-Be1GlSGX.js +15 -0
- package/dist/cdn/{square-check-big-BvwQ17Bl.js → square-check-big-C_4wbfwF.js} +1 -1
- package/dist/cdn/{switch-C3IyQuid.js → switch-DHXEA_N5.js} +190 -189
- package/dist/cdn/{tabs-subtle-CkdI6Mac.js → tabs-subtle-Dubd6Kj8.js} +269 -268
- package/dist/cdn/{telemetry-C7Ytz2BG.js → telemetry-TwPKZlFf.js} +2 -2
- package/dist/cdn/{textarea-DSbwcFVt.js → textarea-CwmI8_uI.js} +6 -6
- package/dist/cdn/{trash-2-RwpJY5SL.js → trash-2-BhumJAFE.js} +1 -1
- package/dist/cdn/{useAriaLabelledBy-DqAdnppm.js → useAriaLabelledBy-Cra6w3YY.js} +2 -1
- package/dist/cdn/{useCompositeItem-BRqEzYh-.js → useCompositeItem-Dhnm-7el.js} +3 -3
- package/dist/cdn/{useConfig-BW6uQf2m.js → useConfig-leHVjdjl.js} +2 -2
- package/dist/cdn/{useSavedRequests-Ci2I919u.js → useSavedRequests-mSIsDd4c.js} +1 -1
- package/dist/cdn/{useViewHostProps-CINeSkth.js → useViewHostProps-CDOm2w6u.js} +124 -109
- package/dist/cdn/{wrench-DzGmCfnb.js → wrench-DvK20LUT.js} +1 -1
- package/dist/cdn/{x-C3vRQIYu.js → x-EilKPiCX.js} +1 -1
- package/dist/cdn/{zap-Mb-pbw2X.js → zap-0Wr9QO7N.js} +1 -1
- package/dist/cli.js +1 -1
- package/dist/client/components/ChatTab.d.ts.map +1 -1
- package/dist/client/components/MCPAppsDebugControls.d.ts.map +1 -1
- package/dist/client/components/ToolsTab.d.ts.map +1 -1
- package/dist/client/components/chat/ConfigurationDialog.d.ts.map +1 -1
- package/dist/client/components/chat/ToolResultRenderer.d.ts.map +1 -1
- package/dist/client/components/mcp-apps/McpAppsViewPanel.d.ts +29 -0
- package/dist/client/components/mcp-apps/McpAppsViewPanel.d.ts.map +1 -0
- package/dist/client/components/tools/ToolExecutionPanel.d.ts.map +1 -1
- package/dist/client/components/tools/ToolResultDisplay.d.ts +2 -1
- package/dist/client/components/tools/ToolResultDisplay.d.ts.map +1 -1
- package/dist/client/components/tools/useToolsTabNavigation.d.ts.map +1 -1
- package/dist/client/components/ui/MeshGradientCanvas.d.ts.map +1 -1
- package/dist/client/components/ui/mesh-animation-pause.d.ts +14 -0
- package/dist/client/components/ui/mesh-animation-pause.d.ts.map +1 -0
- package/dist/client/components/ui/mesh-gradient-colors.d.ts +6 -0
- package/dist/client/components/ui/mesh-gradient-colors.d.ts.map +1 -0
- package/dist/client/components/ui/mesh-tab-background.d.ts +1 -1
- package/dist/client/components/ui/mesh-tab-background.d.ts.map +1 -1
- package/dist/client/components/ui/not-found.d.ts.map +1 -1
- package/dist/client/context/WidgetDebugContext.d.ts +1 -11
- package/dist/client/context/WidgetDebugContext.d.ts.map +1 -1
- package/dist/client/hooks/useDeviceViewport.d.ts +1 -5
- package/dist/client/hooks/useDeviceViewport.d.ts.map +1 -1
- package/dist/client/hooks/useViewHostProps.d.ts +1 -1
- package/dist/client/hooks/useViewHostProps.d.ts.map +1 -1
- package/dist/client/index.js +2086 -1860
- package/dist/client/utils/servers.d.ts +5 -0
- package/dist/client/utils/servers.d.ts.map +1 -1
- package/dist/server/cdn-shell.js +2 -2
- package/dist/server/{chunk-GBY4WAVP.js → chunk-5GVQGIAX.js} +1 -1
- package/dist/server/{chunk-IFF5T5J4.js → chunk-UZZDBVKF.js} +1 -1
- package/dist/server/{chunk-NUHI6MJ6.js → chunk-VFVFLXKP.js} +1 -1
- package/dist/server/cli.js +2 -2
- package/dist/server/index.js +3 -3
- package/dist/server/middleware.js +3 -3
- package/dist/server/version.js +1 -1
- package/dist/web/assets/AnimatePresence-FfDQQNFJ.js +9 -0
- package/dist/web/assets/ChatTab-B6ubLbeA.js +18 -0
- package/dist/web/assets/ConnectionSettingsTab-Cb2eDgEu.js +1 -0
- package/dist/web/assets/ElicitationTab-CbnCrmu9.js +1 -0
- package/dist/web/assets/FormContext-sV-yByKz.js +1 -0
- package/dist/web/assets/ListTabHeader-CrGae306.js +1 -0
- package/dist/web/assets/MCPAppsDebugControls-sRglMhat.js +34 -0
- package/dist/web/assets/{ManufactOAuthCallback-BRO6TPkZ.js → ManufactOAuthCallback-D4uYGigW.js} +1 -1
- package/dist/web/assets/{MarkdownRenderer-gaJFjbtr.js → MarkdownRenderer-Cwxp9fLj.js} +2 -2
- package/dist/web/assets/McpAppsViewPanel-jQYFoZNX.js +1 -0
- package/dist/web/assets/{NotificationsTab-LYcfRjyd.js → NotificationsTab-DuSm762_.js} +1 -1
- package/dist/web/assets/{OAuthCallback-D8UItgTB.js → OAuthCallback-VLHlUe2c.js} +1 -1
- package/dist/web/assets/PromptsTab-DK6XZxR8.js +15 -0
- package/dist/web/assets/ResourcesTab-CUE4MAtJ.js +2 -0
- package/dist/web/assets/SamplingTab-BYNkVCTu.js +1 -0
- package/dist/web/assets/ServerMetadataTab-DWjNFMbq.js +1 -0
- package/dist/web/assets/ToolsTab-BisWWY2p.js +8 -0
- package/dist/web/assets/{ViewPreview--z6jL0Zg.js → ViewPreview-COrmPpRr.js} +1 -1
- package/dist/web/assets/WidgetWrapper-cv_BM1bY.js +1 -0
- package/dist/web/assets/{brush--0LobUi4.js → brush-DX0UZ_pI.js} +1 -1
- package/dist/web/assets/button-C8Xa2k4x.js +1 -0
- package/dist/web/assets/checkbox-B6dtF73d.js +1 -0
- package/dist/web/assets/code-B14rVdNt.js +1 -0
- package/dist/web/assets/createLucideIcon-BEHeJH0M.js +1 -0
- package/dist/web/assets/{dist-B8sA8Zml.js → dist-9Oy7e0v8.js} +4 -4
- package/dist/web/assets/index-BMaSsizY.js +499 -0
- package/dist/web/assets/index-D7TVTIt9.css +1 -0
- package/dist/web/assets/input-C0OQCUZy.js +1 -0
- package/dist/web/assets/{label-Cdim77Jw.js → label-CI7JWQOo.js} +1 -1
- package/dist/web/assets/{maximize-2-BTT9QQU9.js → maximize-2-Br1WQzT2.js} +1 -1
- package/dist/web/assets/{maximize-_O55kFcr.js → maximize-CJNgRe6S.js} +1 -1
- package/dist/web/assets/{refresh-cw-C9wQl8_d.js → refresh-cw-B5iaAZKn.js} +1 -1
- package/dist/web/assets/{save-B-MsgxX9.js → save-TM6fvNrt.js} +1 -1
- package/dist/web/assets/select-D6jzbLJn.js +1 -0
- package/dist/web/assets/shared-CFs9CZfB.js +1 -0
- package/dist/web/assets/{sparkles-2OAsc1aP.js → sparkles-BGYTDThM.js} +1 -1
- package/dist/web/assets/tabs-subtle-D2XkWhLL.js +1 -0
- package/dist/web/assets/textarea-CRTXuRmE.js +1 -0
- package/dist/web/assets/{useConfig-BAsKhUxf.js → useConfig-B6tXvJOb.js} +1 -1
- package/dist/web/assets/useViewHostProps-DZqOwiAm.js +1 -0
- package/dist/web/assets/{zap-Du2Uc5pa.js → zap-BDWHCVHU.js} +1 -1
- package/dist/web/index.html +10 -10
- package/package.json +4 -4
- package/dist/cdn/CheckboxIndicator-Bt4IICtv.js +0 -251
- package/dist/cdn/PromptsTab-C4LuwyWN.js +0 -901
- package/dist/cdn/card-DgiYnSg-.js +0 -41
- package/dist/cdn/createLucideIcon-C5fZZ6oB.js +0 -38
- package/dist/cdn/providerMeta-BQIfHuNL.js +0 -379
- package/dist/cdn/spinner-jQtC7EBj.js +0 -15
- package/dist/web/assets/AnimatePresence-C5p0yiY1.js +0 -9
- package/dist/web/assets/ChatTab-CsBPVCSc.js +0 -18
- package/dist/web/assets/ConnectionSettingsTab-DQTXfnl1.js +0 -1
- package/dist/web/assets/ElicitationTab-_FKB7nNG.js +0 -1
- package/dist/web/assets/FormContext-DH2caWKO.js +0 -1
- package/dist/web/assets/ListTabHeader-R17w_JsB.js +0 -1
- package/dist/web/assets/PromptsTab-B2uVMRR2.js +0 -15
- package/dist/web/assets/ResourcesTab-DhOZYPjE.js +0 -2
- package/dist/web/assets/SamplingTab-C-oY2hoi.js +0 -1
- package/dist/web/assets/ServerMetadataTab-BkTxO5KS.js +0 -1
- package/dist/web/assets/ToolsTab-DupHgo7A.js +0 -8
- package/dist/web/assets/WidgetWrapper-CZaEVEw4.js +0 -34
- package/dist/web/assets/checkbox-BQ9mI_6k.js +0 -1
- package/dist/web/assets/code-tME-5H6D.js +0 -1
- package/dist/web/assets/createLucideIcon-B3b8EU0b.js +0 -1
- package/dist/web/assets/index-C_fCIJ4C.js +0 -492
- package/dist/web/assets/index-fBX3akc8.css +0 -1
- package/dist/web/assets/input-CLYhA7PK.js +0 -1
- package/dist/web/assets/jsx-runtime-Cjj9sGSy.js +0 -1
- package/dist/web/assets/select-CJ57-Bor.js +0 -1
- package/dist/web/assets/shared-CCC9rTz4.js +0 -1
- package/dist/web/assets/tabs-subtle-246ABJqx.js +0 -1
- package/dist/web/assets/textarea-DLAmNVf_.js +0 -1
- package/dist/web/assets/useViewHostProps-CV5zBxUb.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,n as t,o as n,r,s as i,t as a}from"./react-CU_d2d5K.js";import{n as o,t as s}from"./createLucideIcon-BEHeJH0M.js";import{A as c,C as l,D as u,E as d,F as f,H as p,I as m,L as h,M as g,N as _,O as v,P as y,R as b,S as x,T as S,U as C,V as w,_ as T,a as E,b as D,c as O,g as k,h as A,j,k as M,l as N,m as ee,s as P,v as F,w as I,x as L,y as te}from"./button-C8Xa2k4x.js";var ne=t((e=>{var t=a();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for(`react.portal`);function s(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return s(e,t,null,r)},e.flushSync=function(e){var t=c.T,n=i.p;try{if(c.T=null,i.p=2,e)return e()}finally{c.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=l(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=l(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return c.H.useFormState(e,t,n)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version=`19.2.4`})),re=t(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=ne()})),R=i(a(),1),z=o(),ie={gray:`#a3a3a3`,red:`#ef4444`,orange:`#f97316`,amber:`#f59e0b`,yellow:`#eab308`,lime:`#84cc16`,green:`#22c55e`,emerald:`#10b981`,teal:`#14b8a6`,cyan:`#06b6d4`,blue:`#3b82f6`,indigo:`#6366f1`,violet:`#8b5cf6`,purple:`#a855f7`,fuchsia:`#d946ef`,pink:`#ec4899`,rose:`#f43f5e`},ae=C(`inline-flex items-center font-medium whitespace-nowrap`,{variants:{variant:{solid:``,outline:`border border-border text-foreground`},size:{sm:`h-5 px-2 text-[11px] gap-1`,md:`h-6 px-2.5 text-[12px] gap-1.5`,lg:`h-7 px-3 text-[13px] gap-1.5`}},defaultVariants:{variant:`solid`,size:`md`}}),oe={default:{variant:`solid`,color:`blue`},secondary:{variant:`solid`,color:`green`},destructive:{variant:`solid`,color:`red`},outline:{variant:`outline`,color:`gray`}};function se(e){return typeof e==`string`||typeof e==`number`}function ce({children:e}){return se(e)?(0,z.jsx)(`span`,{className:`[text-box:trim-both_cap_alphabetic]`,children:e}):(0,z.jsx)(`span`,{className:`inline-flex items-center gap-1`,children:e})}var le=(0,R.forwardRef)(({className:e,variant:t=`solid`,size:n=`md`,color:r,children:i,style:a,...o},s)=>{let c=t&&t in oe?oe[t]:null,l=c?.variant??t,u=r??c?.color??`gray`,d=w(),f=ie[u],m=l===`solid`?u===`gray`?{backgroundColor:`var(--accent)`,color:`var(--foreground)`}:{color:`var(--foreground)`,backgroundColor:`color-mix(in srgb, ${f} 15%, var(--background))`}:{};return(0,z.jsx)(`span`,{ref:s,className:p(ae({variant:l,size:n}),d.item,e),style:{...m,...a},...o,children:(0,z.jsx)(ce,{children:i})})});le.displayName=`Badge`;var ue=i(re(),1),de=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),fe={[de.startingStyle]:``},pe={[de.endingStyle]:``},me={transitionStatus(e){return e===`starting`?fe:e===`ending`?pe:null}},he=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=de.startingStyle]=`startingStyle`,e[e.endingStyle=de.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),ge=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),_e={[ge.popupOpen]:``},ve={[ge.popupOpen]:``,[ge.pressed]:``},ye={[he.open]:``},be={[he.closed]:``},xe={[he.anchorHidden]:``},Se={open(e){return e?_e:null}},Ce={open(e){return e?ve:null}},we={open(e){return e?ye:be},anchorHidden(e){return e?xe:null}},Te=`none`,Ee=`trigger-press`,B=`trigger-hover`,De=`trigger-focus`,Oe=`outside-press`,ke=`item-press`,Ae=`close-press`,je=`focus-out`,Me=`escape-key`,Ne=`list-navigation`,Pe=`cancel-open`,Fe=`sibling-open`,Ie=`disabled`,Le=`missing`,Re=`initial`,ze=`imperative-action`,Be=`window-resize`;function Ve(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:He,platform:Ue,maxTouchPoints:We}=Ve(),Ge=He.toLowerCase(),Ke=Ue.toLowerCase(),qe=/^i(os$|p)/.test(Ke)||Ke===`macintel`&&We>1,Je=`android`,Ye=Ke===Je||Ge.includes(Je),Xe=!qe&&Ke.startsWith(`mac`);Ke.startsWith(`win`),!Ye&&/^(linux|chrome os)/.test(Ke);var Ze=Xe||qe,Qe=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!Qe&&Ge.includes(`firefox`),!Qe&&Ge.includes(`chrom`);var $e=Ze,et=/jsdom|happydom/.test(Ge),tt=0;function nt(e,t=`mui`){let[n,r]=R.useState(e),i=e||n;return R.useEffect(()=>{n??(tt+=1,r(`${t}-${tt}`))},[n,t]),i}var rt=te.useId;function it(e,t){if(rt!==void 0){let n=rt();return e??(t?`${t}-${n}`:n)}return nt(e,t)}function at(e){return it(e,`base-ui`)}function V(e,t,n,r){let i=!1,a=!1,o=r??P;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}var ot=[];function st(e){R.useEffect(e,ot)}var ct=null;globalThis.requestAnimationFrame;var lt=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},ut=class e{static create(){return new e}static request(e){return lt.request(e)}static cancel(e){return lt.cancel(e)}currentId=ct;request(e){this.cancel(),this.currentId=lt.request(()=>{this.currentId=ct,e()})}cancel=()=>{this.currentId!==ct&&(lt.cancel(this.currentId),this.currentId=ct)};disposeEffect=()=>this.cancel};function dt(){let e=F(ut.create).current;return st(e.disposeEffect),e}function ft(e,t=!1,n=!1){let[r,i]=R.useState(e&&t?`idle`:void 0),[a,o]=R.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),k(()=>{if(!e&&a&&r!==`ending`&&n){let e=ut.request(()=>{i(`ending`)});return()=>{ut.cancel(e)}}},[e,a,r,n]),k(()=>{if(!e||t)return;let n=ut.request(()=>{i(void 0)});return()=>{ut.cancel(n)}},[t,e]),k(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=ut.request(()=>{i(`idle`)});return()=>{ut.cancel(n)}},[t,e,a,r]),{mounted:a,setMounted:o,transitionStatus:r}}function pt(e){return e==null?e:`current`in e?e.current:e}function mt(e,t=!1,n=!0){let r=dt();return T((i,a=null)=>{r.cancel();let o=pt(e);if(o==null)return;let s=o,c=()=>{ue.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||c()}).catch(()=>{if(n){a?.aborted||c();return}let e=s.getAnimations();!a?.aborted&&e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&l()})}if(t){let e=de.startingStyle;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}r.request(l)})}function ht(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=T(i),o=mt(r,n,!1);R.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}var gt=0,_t=class e{static create(){return new e}currentId=gt;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=gt,t()},e)}isStarted(){return this.currentId!==gt}clear=()=>{this.currentId!==gt&&(clearTimeout(this.currentId),this.currentId=gt)};disposeEffect=()=>this.clear};function vt(){let e=F(_t.create).current;return st(e.disposeEffect),e}function yt(e){e.preventDefault(),e.stopPropagation()}function bt(e){return`nativeEvent`in e}function xt(e){return e.pointerType===``&&e.isTrusted?!0:Ye&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function St(e){return et?!1:!Ye&&e.width===0&&e.height===0||Ye&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function Ct(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function wt(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var Tt=`data-base-ui-focusable`,Et=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,Dt=`ArrowLeft`,Ot=`ArrowRight`,kt=`ArrowUp`,At=`ArrowDown`;function jt(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function H(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&f(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Mt(e){return`composedPath`in e?e.composedPath()[0]:e.target}function Nt(e,t){if(!c(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(H(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function Pt(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Ft(e){return e.matches(`html,body`)}function It(e){return j(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function Lt(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Et}`)!=null}function Rt(e){return e?e.getAttribute(`role`)===`combobox`&&It(e):!1}function zt(e){if(!e||et)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function Bt(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Vt(e,t){return t!=null&&!Ct(t)?0:typeof e==`function`?e():e}function Ht(e,t,n){let r=Vt(e,n);return typeof r==`number`?r:r?.[t]}function Ut(e){return typeof e==`function`?e():e}function Wt(e,t){return t||e===`click`||e===`mousedown`}function Gt(e){return e?.includes(`mouse`)&&e!==`mousedown`}var Kt=R.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new _t,currentIdRef:{current:null},currentContextRef:{current:null}});function qt(e,t){e.current=t.current}function Jt(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=R.useRef(n),a=R.useRef(n),o=R.useRef(null),s=R.useRef(null),c=vt();return k(()=>{if(a.current=n,!o.current){i.current=n;return}i.current={open:Ht(i.current,`open`),close:Ht(n,`close`)}},[n,o,i,a]),(0,z.jsx)(Kt.Provider,{value:R.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function Yt(e,t={open:!1}){let{open:n}=t,r=`rootStore`in e?e.rootStore:e,i=r.useState(`floatingId`),{currentIdRef:a,delayRef:o,timeoutMs:s,initialDelayRef:c,currentContextRef:l,hasProvider:u,timeout:d}=R.useContext(Kt),[f,p]=R.useState(!1),m=R.useRef(n),h=R.useRef(!1);return k(()=>{m.current=n},[n]),k(()=>()=>{h.current=!0},[]),k(()=>{function e(){h.current||p(!1),l.current?.setIsInstantPhase(!1),a.current=null,l.current=null,o.current=c.current,d.clear()}if(a.current&&!n&&a.current===i){if(p(!1),s){let t=i;return d.start(s,()=>{r.select(`open`)||a.current&&a.current!==t||e()}),()=>{(m.current||a.current!==t)&&d.clear()}}e()}},[n,i,a,o,s,c,l,d,r]),k(()=>{if(!n)return;let e=l.current,t=a.current;d.clear(),l.current={onOpenChange:r.setOpen,setIsInstantPhase:p},a.current=i,o.current={open:0,close:Ht(c.current,`close`)},t!==null&&t!==i?(p(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,V(Te))):(p(!1),e?.setIsInstantPhase(!1))},[n,i,r,a,o,c,l,d]),k(()=>()=>{if(a.current===i){if(l.current=null,!m.current)return;a.current=null,qt(o,c),d.clear()}},[l,a,o,i,c,d]),R.useMemo(()=>({hasProvider:u,delayRef:o,isInstantPhase:f}),[u,o,f])}function U(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Xt(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function Zt(e){let t=F(Qt,e).current;return t.next=e,k(t.effect),t}function Qt(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function $t(e){return e?.ownerDocument||document}var en={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},tn={...en,position:`fixed`,top:0,left:0},nn={...en,position:`absolute`},rn=R.forwardRef(function(e,t){let[n,r]=R.useState();k(()=>{$e&&Qe&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,z.jsx)(`span`,{...e,ref:t,style:tn,"aria-hidden":n?void 0:!0,...i,"data-base-ui-focus-guard":``})}),an=[`top`,`right`,`bottom`,`left`],on=Math.min,sn=Math.max,cn=Math.round,ln=Math.floor,un=e=>({x:e,y:e}),dn={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function fn(e,t,n){return sn(e,on(t,n))}function pn(e,t){return typeof e==`function`?e(t):e}function mn(e){return e.split(`-`)[0]}function hn(e){return e.split(`-`)[1]}function gn(e){return e===`x`?`y`:`x`}function _n(e){return e===`y`?`height`:`width`}function vn(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function yn(e){return gn(vn(e))}function bn(e,t,n){n===void 0&&(n=!1);let r=hn(e),i=yn(e),a=_n(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=kn(o)),[o,kn(o)]}function xn(e){let t=kn(e);return[Sn(e),t,Sn(t)]}function Sn(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Cn=[`left`,`right`],wn=[`right`,`left`],Tn=[`top`,`bottom`],En=[`bottom`,`top`];function Dn(e,t,n){switch(e){case`top`:case`bottom`:return n?t?wn:Cn:t?Cn:wn;case`left`:case`right`:return t?Tn:En;default:return[]}}function On(e,t,n,r){let i=hn(e),a=Dn(mn(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Sn)))),a}function kn(e){let t=mn(e);return dn[t]+e.slice(t.length)}function An(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function jn(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:An(e)}function Mn(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Nn(e,t){return t<0||t>=e.length}function Pn(e,t){return In(e.current,{disabledIndices:t})}function Fn(e,t){return In(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function In(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&Ln(e,a,r));return a}function Ln(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?zn(r)?!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!0:!1}function Rn(e){return e.visibility===`hidden`||e.visibility===`collapse`}function zn(e,t=e?D(e):null){return!e||!e.isConnected||!t||Rn(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var Bn=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function Vn(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return f(n)?n.host:null}function Hn(e){for(let t of Array.from(e.children))if(I(t)===`summary`)return t;return null}function Un(e,t){let n=Hn(t);return!!n&&(e===n||H(n,e))}function Wn(e){let t=e?I(e):``;return e!=null&&e.matches(Bn)&&(t!==`summary`||e.parentElement!=null&&I(e.parentElement)===`details`&&Hn(e.parentElement)===e)&&(t!==`details`||Hn(e)==null)&&(t!==`input`||e.type!==`hidden`)}function Gn(e){if(!Wn(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=Vn(t)){let n=t!==e,r=I(t)===`slot`;if(t.hasAttribute(`inert`)||n&&I(t)===`details`&&!t.open&&!Un(e,t)||t.hasAttribute(`hidden`)||!r&&!Kn(t,n))return!1}return!0}function Kn(e,t){let n=D(e);return t?n.display!==`none`:zn(e,n)}function qn(e){let t=e.tabIndex;if(t<0){let t=I(e);if(t===`details`||t===`audio`||t===`video`||j(e)&&e.isContentEditable)return 0}return t}function Jn(e){if(I(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function Yn(e,t){let n=Jn(e);if(!n)return!0;let r=t.find(e=>{let t=Jn(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=Jn(e);return t?.name===n.name&&t.form===n.form})===n}function Xn(e){if(j(e)&&I(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return j(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Zn(e,t){Xn(e).forEach(e=>{Wn(e)&&t.push(e),Zn(e,t)})}function Qn(e,t,n){Xn(e).forEach(e=>{j(e)&&e.matches(t)&&n.push(e),Qn(e,t,n)})}function $n(e){return Gn(e)&&qn(e)>=0}function er(e){let t=[];return Zn(e,t),t.filter(Gn)}function tr(e){let t=er(e);return t.filter(e=>qn(e)>=0&&Yn(e,t))}function nr(e,t){let n=tr(e),r=n.length;if(r===0)return;let i=jt($t(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function rr(e){return nr($t(e).body,1)||e}function ir(e){return nr($t(e).body,-1)||e}function ar(e,t){if(!e)return null;let n=tr($t(e).body),r=n.length;if(r===0)return null;let i=n.indexOf(e);return i===-1?null:n[(i+t+r)%r]}function or(e){return ar(e,1)}function sr(e){return ar(e,-1)}function cr(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!H(n,r)}function lr(e){tr(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function ur(e){let t=[];Qn(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function dr(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...dr(e,t.id,n)])}function fr(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function pr(e){return`data-base-ui-${e}`}var mr={style:{transition:`none`}},hr=`data-base-ui-click-trigger`,gr={fallbackAxisSide:`none`},_r={fallbackAxisSide:`end`},vr={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},yr=R.createContext(null),br=()=>R.useContext(yr),xr=pr(`portal`);function Sr(e={}){let{ref:t,container:n,componentProps:r=P,elementProps:i}=e,a=it(),o=br()?.portalNode,[s,c]=R.useState(null),[l,u]=R.useState(null),d=T(e=>{e!==null&&u(e)}),f=R.useRef(null);k(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}if(a==null)return;let e=(n&&(_(n)?n:n.current))??o??document.body;if(e==null){f.current&&(f.current=null,u(null),c(null));return}f.current!==e&&(f.current=e,u(null),c(e))},[n,o,a]);let p=E(`div`,r,{ref:[t,d],props:[{id:a,[xr]:``},i]});return{portalNode:l,portalSubtree:s&&p?ue.createPortal(p,s):null}}var Cr=R.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,renderGuards:s,...c}=e,{portalNode:l,portalSubtree:u}=Sr({container:o,ref:t,componentProps:e,elementProps:c}),d=R.useRef(null),f=R.useRef(null),p=R.useRef(null),m=R.useRef(null),[h,g]=R.useState(null),_=R.useRef(!1),v=h?.modal,y=h?.open,b=typeof s==`boolean`?s:!!h&&!h.modal&&h.open&&!!l;R.useEffect(()=>{if(!l||v)return;function e(e){l&&e.relatedTarget&&cr(e)&&(e.type===`focusin`?_.current&&=(ur(l),!1):(lr(l),_.current=!0))}return Xt(U(l,`focusin`,e,!0),U(l,`focusout`,e,!0))},[l,v]),k(()=>{!l||y!==!0||!_.current||(ur(l),_.current=!1)},[y,l]);let x=R.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:m,portalNode:l,setFocusManagerState:g}),[l]);return(0,z.jsxs)(R.Fragment,{children:[u,(0,z.jsxs)(yr.Provider,{value:x,children:[b&&l&&(0,z.jsx)(rn,{"data-type":`outside`,ref:d,onFocus:e=>{cr(e,l)?p.current?.focus():ir(h?h.domReference:null)?.focus()}}),b&&l&&(0,z.jsx)(`span`,{"aria-owns":l.id,style:vr}),l&&ue.createPortal(a,l),b&&l&&(0,z.jsx)(rn,{"data-type":`outside`,ref:f,onFocus:e=>{cr(e,l)?m.current?.focus():(rr(h?h.domReference:null)?.focus(),h?.closeOnFocusOut&&h?.onOpenChange(!1,V(`focus-out`,e.nativeEvent)))}})]})]})});function wr(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var Tr=class{nodesRef={current:[]};events=wr();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);t!==-1&&this.nodesRef.current.splice(t,1)}},Er=R.createContext(null),Dr=R.createContext(null),Or=()=>R.useContext(Er)?.id||null,kr=e=>{let t=R.useContext(Dr);return e??t};function Ar(e){let t=it(),n=kr(e),r=Or();return k(()=>{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t}function jr(e){let{children:t,id:n}=e,r=Or();return(0,z.jsx)(Er.Provider,{value:R.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function Mr(e){let{children:t,externalTree:n}=e,r=F(()=>n??new Tr).current;return(0,z.jsx)(Dr.Provider,{value:r,children:t})}function Nr(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function Pr(e){return e!=null&&e.clientX!=null}function Fr(e,t={}){let{enabled:n=!0,axis:r=`both`}=t,i=`rootStore`in e?e.rootStore:e,a=i.useState(`open`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.context.dataRef,l=R.useRef(!1),u=R.useRef(null),[d,f]=R.useState(),[p,m]=R.useState([]),h=T(e=>{i.set(`positionReference`,e)}),g=T((e,t,n)=>{l.current||c.current.openEvent&&!Pr(c.current.openEvent)||i.set(`positionReference`,Nr(n??s,{x:e,y:t,axis:r,dataRef:c,pointerType:d}))}),_=T(e=>{a?u.current||(g(e.clientX,e.clientY,e.currentTarget),m([])):g(e.clientX,e.clientY,e.currentTarget)}),y=Ct(d)?o:a;R.useEffect(()=>{if(!n){h(s);return}if(!y)return;function e(){u.current?.(),u.current=null}let t=v(o);function r(t){H(o,Mt(t))?e():g(t.clientX,t.clientY)}return!c.current.openEvent||Pr(c.current.openEvent)?u.current=U(t,`mousemove`,r):h(s),e},[y,n,o,c,s,i,g,h,p]),R.useEffect(()=>()=>{i.set(`positionReference`,null)},[i]),R.useEffect(()=>{n&&!o&&(l.current=!1)},[n,o]),R.useEffect(()=>{!n&&a&&(l.current=!0)},[n,a]);let b=R.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:_,onMouseEnter:_}},[_]);return R.useMemo(()=>n?{reference:b,trigger:b}:{},[n,b])}function Ir(){return!1}function Lr(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function Rr(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=Ir,bubbles:s,externalTree:l}=t,d=`rootStore`in e?e.rootStore:e,p=d.useState(`open`),m=d.useState(`floatingElement`),{dataRef:h}=d.context,_=kr(l),v=T(typeof i==`function`?i:()=>!1),y=typeof i==`function`?v:i,b=y!==!1,x=T(()=>a),{escapeKey:S,outsidePress:C}=Lr(s),w=R.useRef(!1),E=R.useRef(!1),O=R.useRef(!1),k=R.useRef(!1),A=R.useRef(``),M=R.useRef(null),N=vt(),ee=vt(),P=T(()=>{ee.clear(),h.current.insideReactTree=!1}),F=T(e=>{let t=h.current.floatingContext?.nodeId;return(_?dr(_.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),I=T(e=>Pt(e,d.select(`floatingElement`))||Pt(e,d.select(`domReferenceElement`))),L=T(e=>{o()&&d.setOpen(!1,V(Ee,e.nativeEvent))}),te=T(e=>{if(!p||!n||!r||e.key!==`Escape`||k.current||!S&&F(`__escapeKeyBubbles`))return;let t=V(Me,bt(e)?e.nativeEvent:e);d.setOpen(!1,t),t.isCanceled||e.preventDefault(),!S&&!t.isPropagationAllowed&&e.stopPropagation()}),ne=T(()=>{h.current.insideReactTree=!0,ee.start(0,P)}),re=T(e=>{if(!p||!n||e.button!==0)return;let t=Mt(e.nativeEvent);H(d.select(`floatingElement`),t)&&(w.current||(w.current=!0,E.current=!1))}),z=T(e=>{!p||!n||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&w.current&&(E.current=!0)});R.useEffect(()=>{if(!p||!n)return;h.current.__escapeKeyBubbles=S,h.current.__outsidePressBubbles=C;let e=new _t,t=new _t;function i(){e.clear(),k.current=!0}function a(){e.start(Qe?5:0,()=>{k.current=!1})}function o(){O.current=!0,t.start(0,()=>{O.current=!1})}function s(){w.current=!1,E.current=!1}function l(){let e=A.current,t=e===`pen`||!e?`mouse`:e,n=x(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function v(e){let t=l();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function T(e){let t=h.current.floatingContext?.nodeId,n=_&&dr(_.nodesRef.current,t).some(t=>Pt(e,t.context?.elements.floating));return I(e)||n}function ee(e){if(v(e)){e.type!==`click`&&!I(e)&&(t.clear(),O.current=!1),P();return}if(h.current.insideReactTree){P();return}let n=Mt(e),r=`[${pr(`inert`)}]`,i=c(n)?n.getRootNode():null,a=Array.from((f(i)?i:$t(d.select(`floatingElement`))).querySelectorAll(r)),o=d.context.triggerElements;if(n&&(o.hasElement(n)||o.hasMatchingElement(e=>H(e,n))))return;let s=c(n)?n:null;for(;s&&!g(s);){let e=u(s);if(g(e)||!c(e))break;s=e}if(!(a.length&&c(n)&&!Ft(n)&&!H(n,d.select(`floatingElement`))&&a.every(e=>!H(s,e)))){if(j(n)&&!(`touches`in e)){let t=g(n),r=D(n),i=/auto|scroll/,a=t||i.test(r.overflowX),o=t||i.test(r.overflowY),s=a&&n.clientWidth>0&&n.scrollWidth>n.clientWidth,c=o&&n.clientHeight>0&&n.scrollHeight>n.clientHeight,l=r.direction===`rtl`,u=c&&(l?e.offsetX<=n.offsetWidth-n.clientWidth:e.offsetX>n.clientWidth),d=s&&e.offsetY>n.clientHeight;if(u||d)return}if(!T(e)){if(l()===`intentional`&&O.current){t.clear(),O.current=!1;return}typeof y==`function`&&!y(e)||F(`__outsidePressBubbles`)||(d.setOpen(!1,V(Oe,e)),P())}}}function L(e){l()!==`sloppy`||e.pointerType===`touch`||!d.select(`open`)||!n||I(e)||ee(e)}function ne(e){if(l()!==`sloppy`||!d.select(`open`)||!n||I(e))return;let t=e.touches[0];t&&(M.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},N.start(1e3,()=>{M.current&&(M.current.dismissOnTouchEnd=!1,M.current.dismissOnMouseDown=!1)}))}function re(e,t){let n=Mt(e);if(!n)return;let r=U(n,e.type,()=>{t(e),r()})}function R(e){A.current=`touch`,re(e,ne)}function z(e){N.clear(),e.type===`pointerdown`&&(A.current=e.pointerType),!(e.type===`mousedown`&&M.current&&!M.current.dismissOnMouseDown)&&re(e,e=>{e.type===`pointerdown`?L(e):ee(e)})}function ie(e){if(!w.current)return;let n=E.current;if(s(),l()===`intentional`){if(e.type===`pointercancel`){n&&o();return}if(!T(e)){if(n){o();return}typeof y==`function`&&!y(e)||(t.clear(),O.current=!0,P())}}}function ae(e){if(l()!==`sloppy`||!M.current||I(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-M.current.startX),r=Math.abs(t.clientY-M.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(M.current.dismissOnTouchEnd=!0),i>10&&(ee(e),N.clear(),M.current=null)}function oe(e){re(e,ae)}function se(e){l()!==`sloppy`||!M.current||I(e)||(M.current.dismissOnTouchEnd&&ee(e),N.clear(),M.current=null)}function ce(e){re(e,se)}let le=$t(m),ue=Xt(r&&Xt(U(le,`keydown`,te),U(le,`compositionstart`,i),U(le,`compositionend`,a)),b&&Xt(U(le,`click`,z,!0),U(le,`pointerdown`,z,!0),U(le,`pointerup`,ie,!0),U(le,`pointercancel`,ie,!0),U(le,`mousedown`,z,!0),U(le,`mouseup`,ie,!0),U(le,`touchstart`,R,!0),U(le,`touchmove`,oe,!0),U(le,`touchend`,ce,!0)));return()=>{ue(),e.clear(),t.clear(),s(),O.current=!1}},[h,m,r,b,y,p,n,S,C,te,P,x,F,I,_,d,N]),R.useEffect(P,[y,P]);let ie=R.useMemo(()=>({onKeyDown:te,onPointerDown:L,onClick:L}),[te,L]),ae=R.useMemo(()=>({onKeyDown:te,onPointerDown:z,onMouseDown:z,onClickCapture:ne,onMouseDownCapture(e){ne(),re(e)},onPointerDownCapture(e){ne(),re(e)},onMouseUpCapture:ne,onTouchEndCapture:ne,onTouchMoveCapture:ne}),[te,ne,re,z]);return R.useMemo(()=>n?{reference:ie,floating:ae,trigger:ie}:{},[n,ie,ae])}function zr(e,t,n){let{reference:r,floating:i}=e,a=vn(t),o=yn(t),s=_n(o),c=mn(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=hn(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Br(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=pn(t,e),p=jn(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Mn(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Mn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Vr=50,Hr=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Br},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=zr(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Vr&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=zr(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Ur=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=pn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=mn(r),_=vn(o),v=mn(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[kn(o)]:xn(o)),x=p!==`none`;!d&&x&&b.push(...On(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=bn(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==vn(t))||T.every(e=>vn(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=vn(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function Wr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Gr(e){return an.some(t=>e[t]>=0)}var Kr=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=pn(e,t);switch(i){case`referenceHidden`:{let e=Wr(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Gr(e)}}}case`escaped`:{let e=Wr(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Gr(e)}}}default:return{}}}}},qr=new Set([`left`,`top`]);async function Jr(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=mn(n),s=hn(n),c=vn(n)===`y`,l=qr.has(o)?-1:1,u=a&&c?-1:1,d=pn(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Yr=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Jr(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Xr=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=pn(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=vn(i),p=gn(f),m=u[p],h=u[f],g=(e,t)=>fn(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Zr=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=pn(e,t),u={x:n,y:r},d=vn(i),f=gn(d),p=u[f],m=u[d],h=pn(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=qr.has(mn(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Qr=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=pn(e,t),c=await i.detectOverflow(t,s),l=mn(n),u=hn(n),d=vn(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=on(p-c[m],g),y=on(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*sn(c.left,c.right):S=p-2*sn(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function $r(e){let t=D(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=j(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=cn(n)!==a||cn(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ei(e){return c(e)?e:e.contextElement}function ti(e){let t=ei(e);if(!j(t))return un(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=$r(t),o=(a?cn(n.width):n.width)/r,s=(a?cn(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var ni=un(0);function ri(e){let t=v(e);return!b()||!t.visualViewport?ni:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ii(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===v(e)}function ai(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ei(e),o=un(1);t&&(r?c(r)&&(o=ti(r)):o=ti(e));let s=ii(a,n,r)?ri(a):un(0),u=(i.left+s.x)/o.x,d=(i.top+s.y)/o.y,f=i.width/o.x,p=i.height/o.y;if(a&&r){let e=v(a),t=c(r)?v(r):r,n=e,i=l(n);for(;i&&t!==n;){let e=ti(i),t=i.getBoundingClientRect(),r=D(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,d*=e.y,f*=e.x,p*=e.y,u+=a,d+=o,n=v(i),i=l(n)}}return Mn({width:f,height:p,x:u,y:d})}function oi(e,t){let n=S(e).scrollLeft;return t?t.left+n:ai(x(e)).left+n}function si(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-oi(e,n),y:n.top+t.scrollTop}}function ci(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=x(r),s=t?h(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=un(1),u=un(0),d=j(r);if((d||!a)&&((I(r)!==`body`||y(o))&&(c=S(r)),d)){let e=ai(r);l=ti(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?si(o,c):un(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function li(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function ui(e){let t=S(e),n=e.ownerDocument.body,r=sn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=sn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+oi(e),o=-t.scrollTop;return D(n).direction===`rtl`&&(a+=sn(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var di=25;function fi(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=v(e),a=x(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!b()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(oi(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=di&&(s-=o)}return{width:s,height:c,x:l,y:u}}function pi(e,t){let n=ai(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=ti(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function mi(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=fi(e,n,t);else if(t===`document`)r=ui(x(e));else if(c(t))r=pi(t,n);else{let n=ri(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Mn(r)}function hi(e,t){let n=t.get(e);if(n)return n;let r=d(e,[],!1).filter(e=>c(e)&&I(e)!==`body`),i=null,a=D(e).position===`fixed`,o=a?u(e):e;for(;c(o)&&!g(o);){let e=D(o),t=M(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=u(o)}return t.set(e,r),r}function gi(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?h(t)?[]:hi(t,this._c):[].concat(n),r],o=mi(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=mi(t,a[e],i);s=sn(n.top,s),c=on(n.right,c),l=on(n.bottom,l),u=sn(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function _i(e){let{width:t,height:n}=$r(e);return{width:t,height:n}}function vi(e,t,n){let r=j(t),i=x(t),a=n===`fixed`,o=ai(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=un(0);if((r||!a)&&((I(t)!==`body`||y(i))&&(s=S(t)),r)){let e=ai(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=oi(i));let l=i&&!r&&!a?si(i,s):un(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function yi(e){return D(e).position===`static`}function bi(e,t){if(!j(e)||D(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return x(e)===n&&(n=n.ownerDocument.body),n}function xi(e,t){let n=v(e);if(h(e))return n;if(!j(e)){let t=u(e);for(;t&&!g(t);){if(c(t)&&!yi(t))return t;t=u(t)}return n}let r=bi(e,t);for(;r&&m(r)&&yi(r);)r=bi(r,t);return r&&g(r)&&yi(r)&&!M(r)?n:r||L(e)||n}var Si=async function(e){let t=this.getOffsetParent||xi,n=this.getDimensions,r=await n(e.floating);return{reference:vi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ci(e){return D(e).direction===`rtl`}var wi={convertOffsetParentRelativeRectToViewportRelativeRect:ci,getDocumentElement:x,getClippingRect:gi,getOffsetParent:xi,getElementRects:Si,getClientRects:li,getDimensions:_i,getScale:ti,isElement:c,isRTL:Ci};function Ti(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ei(e,t,n){let r=null,i,a=x(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=ln(d),h=ln(a.clientWidth-(u+f)),g=ln(a.clientHeight-(d+p)),_=ln(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:sn(0,on(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Ti(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=v(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Di(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=ei(e),u=i||a?[...l?d(l):[],...t?d(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let f=l&&s?Ei(l,n,a):null,p=-1,m=null;o&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;(e=m)==null||e.observe(t)})),n()}),l&&!c&&m.observe(l),t&&m.observe(t));let h,g=c?ai(e):null;c&&_();function _(){let t=ai(e);g&&!Ti(g,t)&&n(),g=t,h=requestAnimationFrame(_)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),f?.(),(e=m)==null||e.disconnect(),m=null,c&&cancelAnimationFrame(h)}}var Oi=Yr,ki=Xr,Ai=Ur,ji=Qr,Mi=Kr,Ni=Zr,Pi=(e,t,n)=>{let r=new Map,i=n??{},a={...wi,...i.platform,_c:r};return Hr(e,t,{...i,platform:a})},Fi=typeof document<`u`?R.useLayoutEffect:function(){};function Ii(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ii(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Ii(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Li(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ri(e,t){let n=Li(e);return Math.round(t*n)/n}function zi(e){let t=R.useRef(e);return Fi(()=>{t.current=e}),t}function Bi(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=R.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=R.useState(r);Ii(f,r)||p(r);let[m,h]=R.useState(null),[g,_]=R.useState(null),v=R.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=R.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=R.useRef(null),C=R.useRef(null),w=R.useRef(u),T=c!=null,E=zi(c),D=zi(i),O=zi(l),k=R.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),Pi(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!Ii(w.current,t)&&(w.current=t,ue.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);Fi(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=R.useRef(!1);Fi(()=>(A.current=!0,()=>{A.current=!1}),[]),Fi(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=R.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=R.useMemo(()=>({reference:b,floating:x}),[b,x]),N=R.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=Ri(M.floating,u.x),r=Ri(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Li(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return R.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var Vi=(e,t)=>{let n=Oi(e);return{name:n.name,fn:n.fn,options:[e,t]}},Hi=(e,t)=>{let n=ki(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ui=(e,t)=>({fn:Ni(e).fn,options:[e,t]}),Wi=(e,t)=>{let n=Ai(e);return{name:n.name,fn:n.fn,options:[e,t]}},Gi=(e,t)=>{let n=ji(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ki=(e,t)=>{let n=Mi(e);return{name:n.name,fn:n.fn,options:[e,t]}};function qi(e){let t=R.useRef(!0);t.current&&(t.current=!1,e())}var W=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(ee(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},Ji=t((e=>{var t=a();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),a=r[0].inst,l=r[1];return s(function(){a.value=n,a.getSnapshot=t,u(a)&&l({inst:a})},[e,n,t]),o(function(){return u(a)&&l({inst:a}),e(function(){u(a)&&l({inst:a})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),Yi=t(((e,t)=>{t.exports=Ji()})),Xi=t((e=>{var t=a(),n=Yi();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,o=n.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,a){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),a!==void 0&&f.hasValue){var t=f.value;if(a(t,e))return c=t}return c=e}if(t=c,i(s,e))return t;var n=r(e);return a!==void 0&&a(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,a]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),Zi=t(((e,t)=>{t.exports=Xi()})),Qi=Yi(),$i=Zi(),ea=[],ta=void 0;function na(){return ta}function ra(e){ea.push(e)}function ia(e){let t=(t,n)=>{let r=F(oa).current,i;try{ta=r;for(let e of ea)e.before(r);i=e(t,n);for(let e of ea)e.after(r);r.didInitialize=!0}finally{ta=void 0}return i};return t.displayName=e.displayName||e.name,t}function aa(e){return R.forwardRef(ia(e))}function oa(){return{didInitialize:!1}}var sa=N(19)?ua:da;function ca(e,t,n,r,i){return sa(e,t,n,r,i)}function la(e,t,n,r,i){let a=R.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,Qi.useSyncExternalStore)(e.subscribe,a,a)}ra({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,Qi.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function ua(e,t,n,r,i){let a=na();if(!a)return la(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function da(e,t,n,r,i){return(0,$i.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var fa=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return ca(this,e,t,n,r)}},pa=class extends fa{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){R.useDebugValue(e);let n=this;k(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;k(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;k(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){R.useDebugValue(e);let n=this,r=t!==void 0;k(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return R.useDebugValue(e),ca(this,this.selectors[e],t,n,r)}useContextCallback(e,t){R.useDebugValue(e);let n=T(t??O);this.context[e]=n}useStateSetter(e){let t=R.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},ma={open:W(e=>e.open),transitionStatus:W(e=>e.transitionStatus),domReferenceElement:W(e=>e.domReferenceElement),referenceElement:W(e=>e.positionReference??e.referenceElement),floatingElement:W(e=>e.floatingElement),floatingId:W(e=>e.floatingId)},ha=class extends pa{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:wr(),nested:n,triggerElements:i},ma),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&wt(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function ga(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),l=t.useState(`activeTriggerElement`),u=t.useState(n?`popupElement`:`positionerElement`),d=t.context.triggerElements,f=o,p=R.useRef(null);r===void 0&&p.current===null&&(p.current=new ha({open:s,transitionStatus:void 0,referenceElement:l,floatingElement:u,triggerElements:d,onOpenChange:f,floatingId:i,syncOnly:!0,nested:a}));let m=r??p.current;return t.useSyncedValue(`floatingId`,i),k(()=>{let e={open:s,floatingId:i,referenceElement:l,floatingElement:u};c(l)&&(e.domReferenceElement=l),m.state.positionReference===m.state.referenceElement&&(e.positionReference=l),m.update(e)},[s,i,l,u,m]),m.context.onOpenChange=f,m.context.nested=a,m}var _a={tabIndex:-1,[Tt]:``};function va(e){return t=>t===`touch`?e.current:!0}function ya(e,t,n=!1){let r=it(),i=Or()!=null,a=R.useRef(null);e===void 0&&a.current===null&&(a.current=t(r,i));let o=e??a.current;return ga({popupStore:o,treatPopupAsFloatingElement:n,floatingRootContext:o.state.floatingRootContext,floatingId:r,nested:i,onOpenChange:o.setOpen}),{store:o,internalStore:a.current}}function ba(e,t){let n=R.useRef(null),r=R.useRef(null);return R.useCallback(i=>{if(e===void 0)return;let a=!1;if(n.current!==null){let e=n.current,i=r.current,o=t.context.triggerElements.getById(e);i&&o===i&&(t.context.triggerElements.delete(e),a=!0),n.current=null,r.current=null}if(i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i),a=!0),a){let e=t.context.triggerElements.size;t.select(`open`)&&t.state.triggerCount!==e&&t.set(`triggerCount`,e)}},[t,e])}function xa(e,t,n,r=!1){t?e.preventUnmountingOnClose=!1:r&&(e.preventUnmountingOnClose=!0);let i=n?.id??null;(i||t)&&(e.activeTriggerId=i,e.activeTriggerElement=n??null)}function Sa(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function Ca(e,t,n,r={}){let i=n.reason,a=i===B,o=t&&i===`trigger-focus`,s=!t&&(i===`trigger-press`||i===`escape-key`),c=Sa(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);let l=()=>{let i={...r.extraState,open:t};o?i.instantType=`focus`:s?i.instantType=`dismiss`:a&&(i.instantType=void 0),xa(i,t,n.trigger,c()),e.update(i)};a?ue.flushSync(l):l()}function wa(e,t,n,r){qi(()=>{t===void 0&&e.state.open===!1&&n&&(e.state={...e.state,open:!0,activeTriggerId:r,preventUnmountingOnClose:!1})})}function Ta(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=ba(e,n),o=T(t=>{if(a(t),!t)return;let i=n.select(`open`),o=n.select(`activeTriggerId`);if(o===e){n.update({activeTriggerElement:t,...i?r:null});return}o==null&&i&&n.update({activeTriggerId:e,activeTriggerElement:t,...r})});return k(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:o,isMountedByThisTrigger:i}}function Ea(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=e.useState(`open`);k(()=>{if(!r){e.state.triggerCount!==0&&e.set(`triggerCount`,0);return}let t=e.context.triggerElements.size,i={};e.state.triggerCount!==t&&(i.triggerCount=t);let a=e.select(`activeTriggerId`),o=null;if(a){let t=e.context.triggerElements.getById(a);t?t!==e.state.activeTriggerElement&&(i.activeTriggerElement=t):o=a}if(!o&&!a&&t===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;i.activeTriggerId=e,i.activeTriggerElement=n}}(i.triggerCount!==void 0||i.activeTriggerId!==void 0||i.activeTriggerElement!==void 0)&&e.update(i),o&&n&&queueMicrotask(()=>{if(e.select(`open`)&&e.select(`activeTriggerId`)===o&&!e.context.triggerElements.getById(o)){let t=V(Te);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[r,e,e.useState(`triggerCount`),n])}function Da(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=ft(e),o=t.useState(`preventUnmountingOnClose`),s=e?!1:o;t.useSyncedValues({mounted:r,transitionStatus:a,preventUnmountingOnClose:s});let c=T(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return ht({enabled:r&&!e&&!s,open:e,ref:t.context.popupRef,onComplete(){e||c()}}),{forceUnmount:c,transitionStatus:a}}function Oa(e,t){e.useSyncedValues(t),k(()=>()=>{e.update({activeTriggerProps:P,inactiveTriggerProps:P,popupProps:P})},[e])}function ka(e,t){k(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),k(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var Aa=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function ja(){return new ha({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Aa,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function Ma(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:ja(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:P,inactiveTriggerProps:P,popupProps:P}}function Na(e,t,n=!1){return new ha({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}var Pa=W(e=>e.triggerIdProp??e.activeTriggerId),Fa=W(e=>e.openProp??e.open),Ia=W(e=>(e.popupElement?.id??e.floatingId)||void 0);function La(e,t){return t!==void 0&&Fa(e)&&Pa(e)===t}function Ra(e,t){return La(e,t)?!0:t!==void 0&&Fa(e)&&Pa(e)==null&&e.triggerCount===1}var za={open:Fa,mounted:W(e=>e.mounted),transitionStatus:W(e=>e.transitionStatus),floatingRootContext:W(e=>e.floatingRootContext),triggerCount:W(e=>e.triggerCount),preventUnmountingOnClose:W(e=>e.preventUnmountingOnClose),payload:W(e=>e.payload),activeTriggerId:Pa,activeTriggerElement:W(e=>e.mounted?e.activeTriggerElement:null),popupId:Ia,isTriggerActive:W((e,t)=>t!==void 0&&Pa(e)===t),isOpenedByTrigger:W((e,t)=>La(e,t)),isMountedByTrigger:W((e,t)=>t!==void 0&&Pa(e)===t&&e.mounted),triggerProps:W((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:W((e,t)=>Ra(e,t)?Ia(e):void 0),popupProps:W(e=>e.popupProps),popupElement:W(e=>e.popupElement),positionerElement:W(e=>e.positionerElement)};function Ba(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=it(),a=Or()!=null,o=F(()=>new ha({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Aa,floatingId:i,syncOnly:!1,nested:a})).current;return k(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=c(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}function Va(e={}){let{nodeId:t,externalTree:n}=e,r=Ba(e),i=e.rootContext||r,a=i.useState(`referenceElement`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),l=i.useState(`open`),u=i.useState(`floatingId`),[d,f]=R.useState(null),[p,m]=R.useState(void 0),[h,g]=R.useState(void 0),_=R.useRef(null),v=kr(n),y=R.useMemo(()=>({reference:a,floating:o,domReference:s}),[a,o,s]),b=Bi({...e,elements:{...y,...d&&{reference:d}}}),x=c(p)?p:null,S=h===void 0?i.state.floatingElement:h;i.useSyncedValue(`referenceElement`,p??null),i.useSyncedValue(`domReferenceElement`,p===void 0?s:x),i.useSyncedValue(`floatingElement`,S);let C=R.useCallback(e=>{let t=c(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;f(t),b.refs.setReference(t)},[b.refs]),w=R.useCallback(e=>{(c(e)||e===null)&&(_.current=e,m(e)),(c(b.refs.reference.current)||b.refs.reference.current===null||e!==null&&!c(e))&&b.refs.setReference(e)},[b.refs,m]),T=R.useCallback(e=>{g(e),b.refs.setFloating(e)},[b.refs]),E=R.useMemo(()=>({...b.refs,setReference:w,setFloating:T,setPositionReference:C,domReference:_}),[b.refs,w,T,C]),D=R.useMemo(()=>({...b.elements,domReference:s}),[b.elements,s]),O=R.useMemo(()=>({...b,dataRef:i.context.dataRef,open:l,onOpenChange:i.setOpen,events:i.context.events,floatingId:u,refs:E,elements:D,nodeId:t,rootStore:i}),[b,E,D,t,i,l,u]);return k(()=>{s&&(_.current=s)},[s]),k(()=>{i.context.dataRef.current.floatingContext=O;let e=v?.nodesRef.current.find(e=>e.id===t);e&&(e.context=O)}),R.useMemo(()=>({...b,context:O,refs:E,elements:D,rootStore:i}),[b,E,D,O,i])}var Ha=Xe&&Qe;function Ua(e,t={}){let{enabled:n=!0,delay:r}=t,i=`rootStore`in e?e.rootStore:e,{events:a,dataRef:o}=i.context,s=R.useRef(!1),l=R.useRef(null),u=R.useRef(!0),d=vt();R.useEffect(()=>{let e=i.select(`domReferenceElement`);if(!n)return;let t=v(e);function r(){let e=i.select(`domReferenceElement`);!i.select(`open`)&&j(e)&&e===jt($t(e))&&(s.current=!0)}function a(){u.current=!0}function o(){u.current=!1}return Xt(U(t,`blur`,r),Ha&&U(t,`keydown`,a,!0),Ha&&U(t,`pointerdown`,o,!0))},[i,n]),R.useEffect(()=>{if(!n)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=i.select(`domReferenceElement`);c(e)&&(l.current=e,s.current=!0)}}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[a,n,i]);let f=R.useMemo(()=>{function e(){s.current=!1,l.current=null}return{onMouseLeave(){e()},onFocus(t){let n=t.currentTarget;if(s.current){if(l.current===n)return;e()}let a=Mt(t.nativeEvent);if(c(a)){if(Ha&&!t.relatedTarget){if(!u.current&&!It(a))return}else if(!zt(a))return}let o=Nt(t.relatedTarget,i.context.triggerElements),{nativeEvent:f,currentTarget:p}=t,m=typeof r==`function`?r():r;if(i.select(`open`)&&o||m===0||m===void 0){i.setOpen(!0,V(De,f,p));return}d.start(m,()=>{s.current||i.setOpen(!0,V(De,f,p))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,a=c(n)&&n.hasAttribute(pr(`focus-guard`))&&n.getAttribute(`data-type`)===`outside`;d.start(0,()=>{let e=i.select(`domReferenceElement`),t=jt($t(e));!n&&t===e||H(o.current.floatingContext?.refs.floating.current,t)||H(e,t)||a||Nt(n??t,i.context.triggerElements)||i.setOpen(!1,V(De,r))})}}},[o,r,i,d]);return R.useMemo(()=>n?{reference:f,trigger:f}:{},[n,f])}var Wa=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new _t,this.restTimeout=new _t,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Ga=new WeakMap;function Ka(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Ga.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),Ga.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function qa(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=Ga.get(n);a&&a!==e&&Ka(a),Ka(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,Ga.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function Ja(e){let t=e.context.dataRef.current,n=F(()=>t.hoverInteractionState??Wa.create()).current;return t.hoverInteractionState||=n,st(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function Ya(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=`rootStore`in e?e.rootStore:e,o=a.useState(`open`),s=a.useState(`floatingElement`),l=a.useState(`domReferenceElement`),{dataRef:u}=a.context,d=kr(),f=Or(),p=Ja(a),m=vt(),h=T(()=>Wt(u.current.openEvent?.type,p.interactedInside)),g=T(()=>Gt(u.current.openEvent?.type)),_=T(()=>{Ka(p)});k(()=>{o||(p.pointerType=void 0,p.restTimeoutPending=!1,p.interactedInside=!1,_())},[o,p,_]),R.useEffect(()=>_,[_]),k(()=>{if(n&&o&&p.handleCloseOptions?.blockPointerEvents&&g()&&c(l)&&s){let e=l,t=s,n=$t(s),r=d?.nodesRef.current.find(e=>e.id===f)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=p.pointerEventsScopeElement===t?null:p.pointerEventsScopeElement,a=r===t?null:r;return qa(p,{scopeElement:p.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body,referenceElement:e,floatingElement:t}),()=>{_()}}},[n,o,l,s,p,g,d,f,_]),R.useEffect(()=>{if(!n)return;function e(){return!!(d&&f&&dr(d.nodesRef.current,f).length>0)}function t(e){let t=Ht(r,`close`,p.pointerType),n=()=>{a.setOpen(!1,V(B,e)),d?.events.emit(`floating.closed`,e)};t?p.openChangeTimeout.start(t,n):(p.openChangeTimeout.clear(),n())}function o(e){let t=Mt(e);if(!Lt(t)){p.interactedInside=!1;return}p.interactedInside=t?.closest(`[aria-haspopup]`)!=null}function l(){p.openChangeTimeout.clear(),m.clear(),d?.events.off(`floating.closed`,y),_()}function v(n){if(e()&&d){d.events.on(`floating.closed`,y);return}if(Nt(n.relatedTarget,a.context.triggerElements))return;let r=u.current.floatingContext?.nodeId??i,o=n.relatedTarget;if(!(d&&r&&c(o)&&dr(d.nodesRef.current,r,!1).some(e=>H(e.context?.elements.floating,o)))){if(p.handler){p.handler(n);return}_(),g()&&!h()&&t(n)}}function y(t){!d||!f||e()||m.start(0,()=>{d.events.off(`floating.closed`,y),a.setOpen(!1,V(B,t)),d.events.emit(`floating.closed`,t)})}let b=s;return Xt(b&&U(b,`mouseenter`,l),b&&U(b,`mouseleave`,v),b&&U(b,`pointerdown`,o,!0),()=>{d?.events.off(`floating.closed`,y)})},[n,s,a,u,r,i,g,h,_,p,d,f,m])}var Xa={current:null};function Za(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:l=Xa,externalTree:u,isActiveTrigger:d=!0,getHandleCloseContext:f,isClosing:p,shouldOpen:m}=t,h=`rootStore`in e?e.rootStore:e,{dataRef:g,events:_}=h.context,v=kr(u),y=Ja(h),b=R.useRef(!1),x=Zt(i),S=Zt(r),C=Zt(o),w=Zt(n),E=Zt(m),D=Zt(p),O=T(()=>Wt(g.current.openEvent?.type,y.interactedInside)),k=T(()=>E.current?.()!==!1),A=T((e,t,n)=>{let r=h.context.triggerElements;if(r.hasElement(t))return!e||!H(e,t);if(!c(n))return!1;let i=n;return r.hasMatchingElement(e=>H(e,i))&&(!e||!H(e,i))}),j=T(()=>{y.handler&&=($t(h.select(`domReferenceElement`)).removeEventListener(`mousemove`,y.handler),void 0)}),M=T(()=>{Ka(y)});return d&&(y.handleCloseOptions=x.current?.__options),R.useEffect(()=>j,[j]),R.useEffect(()=>{if(!n)return;function e(e){e.open?b.current=!1:(b.current=e.reason===B,j(),y.openChangeTimeout.clear(),y.restTimeout.clear(),y.blockMouseMove=!0,y.restTimeoutPending=!1)}return _.on(`openchange`,e),()=>{_.off(`openchange`,e)}},[n,_,y,j]),R.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=Ht(S.current,`close`,y.pointerType);n?y.openChangeTimeout.start(n,()=>{h.setOpen(!1,V(B,e)),v?.events.emit(`floating.closed`,e)}):t&&(y.openChangeTimeout.clear(),h.setOpen(!1,V(B,e)),v?.events.emit(`floating.closed`,e))}let t=l.current??(d?h.select(`domReferenceElement`):null);if(!c(t))return;function r(e){if(y.openChangeTimeout.clear(),y.blockMouseMove=!1,a&&!Ct(y.pointerType))return;let t=Ut(C.current),n=Ht(S.current,`open`,y.pointerType),r=Mt(e),i=e.currentTarget??null,o=h.select(`domReferenceElement`),s=i;if(c(r)&&!h.context.triggerElements.hasElement(r)){for(let e of h.context.triggerElements.elements())if(H(e,r)){s=e;break}}c(i)&&c(o)&&!h.context.triggerElements.hasElement(i)&&H(i,o)&&(s=o);let l=s==null?!1:A(o,s,r),u=h.select(`open`),d=D.current?.()??h.select(`transitionStatus`)===`ending`,f=!u&&d&&b.current,p=!l&&c(s)&&c(o)&&H(o,s)&&f,m=t>0&&!n,g=l&&(u||f)||p,_=!u||l;if(g){k()&&h.setOpen(!0,V(B,e,s));return}m||(n?y.openChangeTimeout.start(n,()=>{_&&k()&&h.setOpen(!0,V(B,e,s))}):_&&k()&&h.setOpen(!0,V(B,e,s)))}function i(t){if(O()){M();return}j();let n=$t(h.select(`domReferenceElement`));y.restTimeout.clear(),y.restTimeoutPending=!1;let r=g.current.floatingContext??f?.();if(!Nt(t.relatedTarget,h.context.triggerElements)){if(x.current&&r){h.select(`open`)||y.openChangeTimeout.clear();let i=l.current;y.handler=x.current({...r,tree:v,x:t.clientX,y:t.clientY,onClose(){M(),j(),w.current&&!O()&&i===h.select(`domReferenceElement`)&&e(t,!0)}}),n.addEventListener(`mousemove`,y.handler),y.handler(t);return}(y.pointerType!==`touch`||!H(h.select(`floatingElement`),t.relatedTarget))&&e(t)}}return s?Xt(U(t,`mousemove`,r,{once:!0}),U(t,`mouseenter`,r),U(t,`mouseleave`,i)):Xt(U(t,`mouseenter`,r),U(t,`mouseleave`,i))},[j,M,g,S,h,n,x,y,d,A,O,a,s,C,l,v,w,f,D,k]),R.useMemo(()=>{if(!n)return;function e(e){y.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=h.select(`domReferenceElement`),i=h.select(`open`),o=A(r,n,e.target);if(a&&!Ct(y.pointerType))return;if(i&&o&&y.handleCloseOptions?.blockPointerEvents){let e=h.select(`floatingElement`);e&&qa(y,{scopeElement:y.handleCloseOptions?.getScope?.()??n.ownerDocument.body,referenceElement:n,floatingElement:e})}let s=Ut(C.current);if(i&&!o||s===0||!o&&y.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;y.restTimeout.clear();function c(){if(y.restTimeoutPending=!1,O())return;let e=h.select(`open`);!y.blockMouseMove&&(!e||o)&&k()&&h.setOpen(!0,V(B,t,n))}y.pointerType===`touch`?ue.flushSync(()=>{c()}):o&&i?c():(y.restTimeoutPending=!0,y.restTimeout.start(s,c))}}},[n,y,O,A,a,h,C,k])}var Qa=.1,$a=Qa*Qa,G=.5;function eo(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function to(e,t,n,r,i,a,o,s,c,l){let u=!1;return eo(e,t,n,r,i,a)&&(u=!u),eo(e,t,i,a,o,s)&&(u=!u),eo(e,t,o,s,c,l)&&(u=!u),eo(e,t,c,l,n,r)&&(u=!u),u}function no(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function ro(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function io(e={}){let{blockPointerEvents:t=!1}=e,n=new _t,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let l=r?.split(`-`)[0],u=!1,d=null,f=null,p=typeof performance<`u`?performance.now():0;function m(e,t){let n=performance.now(),r=n-p;if(d===null||f===null||r===0)return d=e,f=t,p=n,!1;let i=e-d,a=t-f,o=i*i+a*a,s=r*r*$a;return d=e,f=t,p=n,o<s}function h(){n.clear(),a()}return function(r){n.clear();let a=i.domReference,d=i.floating;if(!a||!d||l==null||e==null||t==null)return;let{clientX:f,clientY:p}=r,g=Mt(r),_=r.type===`mouseleave`,v=H(d,g),y=H(a,g);if(v&&(u=!0,!_))return;if(y&&(u=!1,!_)){u=!0;return}if(_&&c(r.relatedTarget)&&H(d,r.relatedTarget))return;function b(){return!!(s&&dr(s.nodesRef.current,o).length>0)}function x(){b()||h()}if(b())return;let S=a.getBoundingClientRect(),C=d.getBoundingClientRect(),w=e>C.right-C.width/2,T=t>C.bottom-C.height/2,E=C.width>S.width,D=C.height>S.height,O=(E?S:C).left,k=(E?S:C).right,A=(D?S:C).top,j=(D?S:C).bottom;if(l===`top`&&t>=S.bottom-1||l===`bottom`&&t<=S.top+1||l===`left`&&e>=S.right-1||l===`right`&&e<=S.left+1){x();return}let M=!1;switch(l){case`top`:M=ro(f,p,O,S.top+1,k,C.bottom-1);break;case`bottom`:M=ro(f,p,O,C.top+1,k,S.bottom-1);break;case`left`:M=ro(f,p,C.right-1,j,S.left+1,A);break;case`right`:M=ro(f,p,S.right-1,j,C.left+1,A);break;default:}if(M)return;if(u&&!no(f,p,S)){x();return}if(!_&&m(f,p)){x();return}let N=!1;switch(l){case`top`:{let n=E?G/2:G*4,r=E||w?e+n:e-n,i=E?e-n:w?e+n:e-n,a=t+G+1,o=w||E?C.bottom-G:C.top,s=w?E?C.bottom-G:C.top:C.bottom-G;N=to(f,p,r,a,i,a,C.left,o,C.right,s);break}case`bottom`:{let n=E?G/2:G*4,r=E||w?e+n:e-n,i=E?e-n:w?e+n:e-n,a=t-G,o=w||E?C.top+G:C.bottom,s=w?E?C.top+G:C.bottom:C.top+G;N=to(f,p,r,a,i,a,C.left,o,C.right,s);break}case`left`:{let n=D?G/2:G*4,r=D||T?t+n:t-n,i=D?t-n:T?t+n:t-n,a=e+G+1,o=T||D?C.right-G:C.left,s=T?D?C.right-G:C.left:C.right-G;N=to(f,p,o,C.top,s,C.bottom,a,r,a,i);break}case`right`:{let n=D?G/2:G*4,r=D||T?t+n:t-n,i=D?t-n:T?t+n:t-n,a=e-G,o=T||D?C.left+G:C.right,s=T?D?C.left+G:C.right:C.left+G;N=to(f,p,a,r,a,i,o,C.top,s,C.bottom);break}default:}N?u||n.start(40,x):x()}};return r.__options={...e,blockPointerEvents:t},r}function ao(e){return e===`starting`?mr:P}var oo=R.createContext(void 0);function so(){return R.useContext(oo)?.direction??`ltr`}var co=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=pn(e,t)||{};if(l==null)return{};let f=jn(u),p={x:n,y:r},m=yn(i),h=_n(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,D=Math.min(f[v],E),O=Math.min(f[y],E),k=D,A=w-g[h]-O,j=w/2-g[h]/2+T,M=fn(k,j,A),N=!c.arrow&&hn(i)!=null&&j!==M&&a.reference[h]/2-(j<k?D:O)-g[h]/2<0,ee=N?j<k?j-k:j-A:0;return{[m]:p[m]+ee,data:{[m]:M,centerOffset:j-M-ee,...N&&{alignmentOffset:ee}},reset:N}}}),lo=(e,t)=>({...co(e),options:[e,t]}),uo=Ki().fn,fo={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await uo(e)).data?.referenceHidden||a}}}},po={sideX:`left`,sideY:`top`},mo={name:`adaptiveOrigin`,async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:a,strategy:o,placement:s}=e,c=v(i),l=c.getComputedStyle(i);if(!(l.transitionDuration!==`0s`&&l.transitionDuration!==``))return{x:t,y:n,data:po};let u=await a.getOffsetParent?.(i),d={width:0,height:0};if(o===`fixed`&&c?.visualViewport)d={width:c.visualViewport.width,height:c.visualViewport.height};else if(u===c){let e=$t(i);d={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await a.isElement?.(u)&&(d=await a.getDimensions(u));let f=mn(s),p=t,m=n;f===`left`&&(p=d.width-(t+r.width)),f===`top`&&(m=d.height-(n+r.height));let h=f===`left`?`right`:po.sideX,g=f===`top`?`bottom`:po.sideY;return{x:p,y:m,data:{sideX:h,sideY:g}}}};function ho(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function go(e,t,n){let{rects:r,placement:i}=e;return{side:ho(t,mn(i),n),align:hn(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function _o(e){let{anchor:t,positionMethod:n=`absolute`,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,collisionBoundary:s,collisionPadding:c=5,sticky:l=!1,arrowPadding:u=5,disableAnchorTracking:d=!1,inline:f,keepMounted:p=!1,floatingRootContext:m,mounted:h,collisionAvoidance:g,shiftCrossAxis:_=!1,nodeId:y,adaptiveOrigin:b,lazyFlip:x=!1,externalTree:S}=e,[C,w]=R.useState(null);!h&&C!==null&&w(null);let E=g.side||`flip`,D=g.align||`flip`,O=g.fallbackAxisSide||`end`,A=typeof t==`function`?t:void 0,j=T(A),M=A?j:t,N=Zt(t),ee=Zt(h),P=so()===`rtl`,F=C||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":P?`left`:`right`,"inline-start":P?`right`:`left`}[r],I=a===`center`?F:`${F}-${a}`,L=c,te=+(r===`bottom`),ne=+(r===`top`),re=+(r===`right`),z=+(r===`left`);typeof L==`number`?L={top:L+te,right:L+z,bottom:L+ne,left:L+re}:L&&={top:(L.top||0)+te,right:(L.right||0)+z,bottom:(L.bottom||0)+ne,left:(L.left||0)+re};let ie={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:L},ae=R.useRef(null),oe=Zt(i),se=Zt(o),ce=typeof i==`function`?0:i,le=typeof o==`function`?0:o,ue=[];f&&ue.push(f),ue.push(Vi(e=>{let t=go(e,r,P),n=typeof oe.current==`function`?oe.current(t):oe.current,i=typeof se.current==`function`?se.current(t):se.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[ce,le,P,r]));let de=D===`none`&&E!==`shift`,fe=!de&&(l||_||E===`shift`),pe=E===`none`?null:Wi({...ie,padding:{top:L.top+1,right:L.right+1,bottom:L.bottom+1,left:L.left+1},mainAxis:!_&&E===`flip`,crossAxis:D===`flip`?`alignment`:!1,fallbackAxisSideDirection:O}),me=de?null:Hi(e=>{let t=$t(e.elements.floating).documentElement;return{...ie,rootBoundary:_?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:D!==`none`,crossAxis:fe,limiter:l||_?void 0:Ui(e=>{if(!ae.current)return{};let{width:t,height:n}=ae.current.getBoundingClientRect(),r=vn(mn(e.placement)),i=r===`y`?t:n,a=r===`y`?L.left+L.right:L.top+L.bottom;return{offset:i/2+a/2}})}},[ie,l,_,L,D]);E===`shift`||D===`shift`||a===`center`?ue.push(me,pe):ue.push(pe,me),ue.push(Gi({...ie,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!ee.current)return;let i=e.style;i.setProperty(`--available-width`,`${t}px`),i.setProperty(`--available-height`,`${n}px`);let a=v(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(`--anchor-width`,`${u}px`),i.setProperty(`--anchor-height`,`${d}px`)}}),lo(e=>({element:ae.current||$t(e.elements.floating).createElement(`div`),padding:u,offsetParent:`floating`}),[u]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:a,rects:o,y:s}=e,c=mn(a),l=vn(c),u=ae.current,d=n.arrow?.x||0,f=n.arrow?.y||0,p=u?.clientWidth||0,m=u?.clientHeight||0,h=d+p/2,g=f+m/2,_=Math.abs(n.shift?.y||0),v=o.reference.height/2,y=typeof i==`function`?i(go(e,r,P)):i,b=_>y,x={top:`${h}px calc(100% + ${y}px)`,bottom:`${h}px ${-y}px`,left:`calc(100% + ${y}px) ${g}px`,right:`${-y}px ${g}px`}[c],S=`${h}px ${o.reference.y+v-s}px`;return t.floating.style.setProperty(`--transform-origin`,fe&&l===`y`&&b?S:x),{}}},fo,b),k(()=>{!h&&m&&m.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[h,m]);let he=R.useMemo(()=>({elementResize:!d&&typeof ResizeObserver<`u`,layoutShift:!d&&typeof IntersectionObserver<`u`}),[d]),{refs:ge,elements:_e,x:ve,y:ye,middlewareData:be,update:xe,placement:Se,context:Ce,isPositioned:we,floatingStyles:Te}=Va({rootContext:m,open:p?h:void 0,placement:I,middleware:ue,strategy:n,whileElementsMounted:p?void 0:(...e)=>Di(...e,he),nodeId:y,externalTree:S}),{sideX:Ee,sideY:B}=be.adaptiveOrigin||po,De=we?n:`fixed`,Oe=R.useMemo(()=>{let e=b?{position:De,[Ee]:ve,[B]:ye}:{position:De,...Te};return we||(e.opacity=0),e},[b,De,Ee,ve,B,ye,Te,we]),ke=R.useRef(null);k(()=>{if(!h)return;let e=N.current,t=typeof e==`function`?e():e,n=(vo(t)?t.current:t)||null;n!==ke.current&&(ge.setPositionReference(n),ke.current=n)},[h,ge,M,N]),R.useEffect(()=>{if(!h)return;let e=N.current;typeof e!=`function`&&vo(e)&&e.current!==ke.current&&(ge.setPositionReference(e.current),ke.current=e.current)},[h,ge,M,N]),R.useEffect(()=>{if(p&&h&&_e.reference&&_e.floating)return Di(_e.reference,_e.floating,xe,he)},[p,h,_e,xe,he]);let Ae=mn(Se),je=ho(r,Ae,P),Me=hn(Se)||`center`,Ne=!!be.hide?.referenceHidden;k(()=>{x&&h&&we&&w(Ae)},[x,h,we,Ae]);let Pe=R.useMemo(()=>({position:`absolute`,top:be.arrow?.y,left:be.arrow?.x}),[be.arrow]),Fe=be.arrow?.centerOffset!==0;return R.useMemo(()=>({positionerStyles:Oe,arrowStyles:Pe,arrowRef:ae,arrowUncentered:Fe,side:je,align:Me,physicalSide:Ae,anchorHidden:Ne,refs:ge,context:Ce,isPositioned:we,update:xe}),[Oe,Pe,ae,Fe,je,Me,Ae,Ne,ge,Ce,we,xe])}function vo(e){return e!=null&&`current`in e}function yo(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),E(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},ao(r),i],stateAttributesMapping:we})}var bo=s(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),xo=s(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),So=(0,R.createContext)({});function Co(e){let t=(0,R.useRef)(null);return t.current===null&&(t.current=e()),t.current}var wo=typeof window<`u`?R.useLayoutEffect:R.useEffect,To=(0,R.createContext)(null);function Eo(e,t){e.indexOf(t)===-1&&e.push(t)}function Do(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var Oo=(e,t,n)=>n>t?t:n<e?e:n,ko=()=>{},Ao=()=>{},jo={},Mo=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),No=e=>typeof e==`object`&&!!e,Po=e=>/^0[^.\s]+$/u.test(e);function Fo(e){let t;return()=>(t===void 0&&(t=e()),t)}var Io=e=>e,Lo=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Ro=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},zo=class{constructor(){this.subscriptions=[]}add(e){return Eo(this.subscriptions,e),()=>Do(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)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}},Bo=e=>e*1e3,Vo=e=>e/1e3,Ho=(e,t)=>t?1e3/t*e:0,Uo=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Wo=1e-7,Go=12;function Ko(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Uo(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Wo&&++s<Go);return o}function qo(e,t,n,r){if(e===t&&n===r)return Io;let i=t=>Ko(t,0,1,e,n);return e=>e===0||e===1?e:Uo(i(e),t,r)}var Jo=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Yo=e=>t=>1-e(1-t),Xo=qo(.33,1.53,.69,.99),Zo=Yo(Xo),Qo=Jo(Zo),$o=e=>e>=1?1:(e*=2)<1?.5*Zo(e):.5*(2-2**(-10*(e-1))),es=e=>1-Math.sin(Math.acos(e)),ts=Yo(es),ns=Jo(es),rs=qo(.42,0,1,1),is=qo(0,0,.58,1),as=qo(.42,0,.58,1),os=e=>Array.isArray(e)&&typeof e[0]!=`number`,ss=e=>Array.isArray(e)&&typeof e[0]==`number`,cs={linear:Io,easeIn:rs,easeInOut:as,easeOut:is,circIn:es,circInOut:ns,circOut:ts,backIn:Zo,backInOut:Qo,backOut:Xo,anticipate:$o},ls=e=>typeof e==`string`,us=e=>{if(ss(e)){e.length;let[t,n,r,i]=e;return qo(t,n,r,i)}else if(ls(e))return cs[e],`${e}`,cs[e];return e},ds=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function fs(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var ps=40;function ms(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=ds.reduce((e,t)=>(e[t]=fs(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=jo.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,ps),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:ds.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<ds.length;t++)o[ds[t]].cancel(e)},state:i,steps:o}}var{schedule:K,cancel:hs,state:q,steps:gs}=ms(typeof requestAnimationFrame<`u`?requestAnimationFrame:Io,!0),_s;function vs(){_s=void 0}var ys={now:()=>(_s===void 0&&ys.set(q.isProcessing||jo.useManualTiming?q.timestamp:performance.now()),_s),set:e=>{_s=e,queueMicrotask(vs)}},bs=e=>t=>typeof t==`string`&&t.startsWith(e),xs=bs(`--`),Ss=bs(`var(--`),Cs=e=>Ss(e)?ws.test(e.split(`/*`)[0].trim()):!1,ws=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Ts(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var Es={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Ds={...Es,transform:e=>Oo(0,1,e)},Os={...Es,default:1},ks=e=>Math.round(e*1e5)/1e5,As=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function js(e){return e==null}var Ms=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ns=(e,t)=>n=>!!(typeof n==`string`&&Ms.test(n)&&n.startsWith(e)||t&&!js(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ps=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(As);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Fs=e=>Oo(0,255,e),Is={...Es,transform:e=>Math.round(Fs(e))},Ls={test:Ns(`rgb`,`red`),parse:Ps(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Is.transform(e)+`, `+Is.transform(t)+`, `+Is.transform(n)+`, `+ks(Ds.transform(r))+`)`};function Rs(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}}var zs={test:Ns(`#`),parse:Rs,transform:Ls.transform},Bs=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Vs=Bs(`deg`),Hs=Bs(`%`),J=Bs(`px`),Us=Bs(`vh`),Ws=Bs(`vw`),Gs={...Hs,parse:e=>Hs.parse(e)/100,transform:e=>Hs.transform(e*100)},Ks={test:Ns(`hsl`,`hue`),parse:Ps(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Hs.transform(ks(t))+`, `+Hs.transform(ks(n))+`, `+ks(Ds.transform(r))+`)`},Y={test:e=>Ls.test(e)||zs.test(e)||Ks.test(e),parse:e=>Ls.test(e)?Ls.parse(e):Ks.test(e)?Ks.parse(e):zs.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Ls.transform(e):Ks.transform(e),getAnimatableNone:e=>{let t=Y.parse(e);return t.alpha=0,Y.transform(t)}},qs=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Js(e){return isNaN(e)&&typeof e==`string`&&(e.match(As)?.length||0)+(e.match(qs)?.length||0)>0}var Ys=`number`,Xs=`color`,Zs=`var`,Qs=`var(`,$s="${}",ec=/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 tc(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(ec,e=>(Y.test(e)?(r.color.push(a),i.push(Xs),n.push(Y.parse(e))):e.startsWith(Qs)?(r.var.push(a),i.push(Zs),n.push(e)):(r.number.push(a),i.push(Ys),n.push(parseFloat(e))),++a,$s)).split($s),indexes:r,types:i}}function nc(e){return tc(e).values}function rc({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===Ys?i+=ks(r[a]):e===Xs?i+=Y.transform(r[a]):i+=r[a]}return i}}function ic(e){return rc(tc(e))}var ac=e=>typeof e==`number`?0:Y.test(e)?Y.getAnimatableNone(e):e,oc=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:ac(e);function sc(e){let t=tc(e);return rc(t)(t.values.map((e,n)=>oc(e,t.split[n])))}var cc={test:Js,parse:nc,createTransformer:ic,getAnimatableNone:sc};function lc(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function uc({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=lc(s,r,e+1/3),a=lc(s,r,e),o=lc(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function dc(e,t){return n=>n>0?t:e}var X=(e,t,n)=>e+(t-e)*n,fc=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},pc=[zs,Ls,Ks],mc=e=>pc.find(t=>t.test(e));function hc(e){let t=mc(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===Ks&&(n=uc(n)),n}var gc=(e,t)=>{let n=hc(e),r=hc(t);if(!n||!r)return dc(e,t);let i={...n};return e=>(i.red=fc(n.red,r.red,e),i.green=fc(n.green,r.green,e),i.blue=fc(n.blue,r.blue,e),i.alpha=X(n.alpha,r.alpha,e),Ls.transform(i))},_c=new Set([`none`,`hidden`]);function vc(e,t){return _c.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function yc(e,t){return n=>X(e,t,n)}function bc(e){return typeof e==`number`?yc:typeof e==`string`?Cs(e)?dc:Y.test(e)?gc:wc:Array.isArray(e)?xc:typeof e==`object`?Y.test(e)?gc:Sc:dc}function xc(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>bc(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Sc(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=bc(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Cc(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var wc=(e,t)=>{let n=cc.createTransformer(t),r=tc(e),i=tc(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?_c.has(e)&&!i.values.length||_c.has(t)&&!r.values.length?vc(e,t):Lo(xc(Cc(r,i),i.values),n):(`${e}${t}`,dc(e,t))};function Tc(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?X(e,t,n):bc(e)(e,t)}var Ec=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>K.update(t,e),stop:()=>hs(t),now:()=>q.isProcessing?q.timestamp:ys.now()}},Dc=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Oc=2e4;function kc(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}function Ac(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(kc(r),Oc);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:Vo(i)}}var Z={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function jc(e,t){return e*Math.sqrt(1-t*t)}var Mc=12;function Nc(e,t,n){let r=n;for(let n=1;n<Mc;n++)r-=e(r)/t(r);return r}var Pc=.001;function Fc({duration:e=Z.duration,bounce:t=Z.bounce,velocity:n=Z.velocity,mass:r=Z.mass}){let i,a;Z.maxDuration;let o=1-t;o=Oo(Z.minDamping,Z.maxDamping,o),e=Oo(Z.minDuration,Z.maxDuration,Vo(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=jc(t,o),c=Math.exp(-i);return Pc-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=jc(t**2,o);return(-i(t)+Pc>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Nc(i,a,s);if(e=Bo(e),isNaN(c))return{stiffness:Z.stiffness,damping:Z.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Ic=[`duration`,`bounce`],Lc=[`stiffness`,`damping`,`mass`];function Rc(e,t){return t.some(t=>e[t]!==void 0)}function zc(e){let t={velocity:Z.velocity,stiffness:Z.stiffness,damping:Z.damping,mass:Z.mass,isResolvedFromDuration:!1,...e};if(!Rc(e,Lc)&&Rc(e,Ic))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Oo(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Z.mass,stiffness:i,damping:a}}else{let n=Fc({...e,velocity:0});t={...t,...n,mass:Z.mass},t.isResolvedFromDuration=!0}return t}function Bc(e=Z.visualDuration,t=Z.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=zc({...n,velocity:-Vo(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=Vo(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?Z.restSpeed.granular:Z.restSpeed.default,i||=v?Z.restDelta.granular:Z.restDelta.default;let y,b,x,S,C,w;if(h<1)x=jc(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>Bo(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=Bo(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=Bo(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(kc(T),Oc),t=Dc(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}Bc.applyToOptions=e=>{let t=Ac(e,100,Bc);return e.ease=t.ease,e.duration=Bo(t.duration),e.type=`keyframes`,e};var Vc=5;function Hc(e,t,n){let r=Math.max(t-Vc,0);return Ho(n-e(r),t-r)}function Uc({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=Bc({keyframes:[f.value,m(f.value)],velocity:Hc(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function Wc(e,t,n){let r=[],i=n||jo.mix||Tc,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=Lo(Array.isArray(t)?t[n]||Io:t,a)),r.push(a)}return r}function Gc(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Wc(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=Ro(e[r],e[r+1],n);return s[r](i)};return n?t=>l(Oo(e[0],e[a-1],t)):l}function Kc(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Ro(0,t,r);e.push(X(n,1,i))}}function qc(e){let t=[0];return Kc(t,e.length-1),t}function Jc(e,t){return e.map(e=>e*t)}function Yc(e,t){return e.map(()=>t||as).splice(0,e.length-1)}function Xc({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=os(r)?r.map(us):us(r),a={done:!1,value:t[0]},o=Gc(Jc(n&&n.length===t.length?n:qc(t),e),t,{ease:Array.isArray(i)?i:Yc(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Zc=e=>e!==null;function Qc(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Zc),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var $c={decay:Uc,inertia:Uc,tween:Xc,keyframes:Xc,spring:Bc};function el(e){typeof e.type==`string`&&(e.type=$c[e.type])}var tl=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},nl=e=>e/100,rl=class extends tl{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==ys.now()&&this.tick(ys.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;el(e);let{type:t=Xc,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Xc;s!==Xc&&typeof o[0]!=`number`&&(this.mixKeyframes=Lo(nl,Tc(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=kc(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=Oo(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==Uc&&(b.value=Qc(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return Vo(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Vo(e)}get time(){return Vo(this.currentTime)}set time(e){e=Bo(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Hc(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(ys.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Vo(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Ec,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(ys.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function il(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var al=e=>e*180/Math.PI,ol=e=>cl(al(Math.atan2(e[1],e[0]))),sl={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ol,rotateZ:ol,skewX:e=>al(Math.atan(e[1])),skewY:e=>al(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},cl=e=>(e%=360,e<0&&(e+=360),e),ll=ol,ul=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),dl=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),fl={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ul,scaleY:dl,scale:e=>(ul(e)+dl(e))/2,rotateX:e=>cl(al(Math.atan2(e[6],e[5]))),rotateY:e=>cl(al(Math.atan2(-e[2],e[0]))),rotateZ:ll,rotate:ll,skewX:e=>al(Math.atan(e[4])),skewY:e=>al(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function pl(e){return+!!e.includes(`scale`)}function ml(e,t){if(!e||e===`none`)return pl(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=fl,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=sl,i=t}if(!i)return pl(t);let a=r[t],o=i[1].split(`,`).map(gl);return typeof a==`function`?a(o):o[a]}var hl=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return ml(n,t)};function gl(e){return parseFloat(e.trim())}var _l=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],vl=new Set([..._l,`pathRotation`]),yl=e=>e===Es||e===J,bl=new Set([`x`,`y`,`z`]),xl=_l.filter(e=>!bl.has(e));function Sl(e){let t=[];return xl.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var Cl={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-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:(e,{transform:t})=>ml(t,`x`),y:(e,{transform:t})=>ml(t,`y`)};Cl.translateX=Cl.x,Cl.translateY=Cl.y;var wl=new Set,Tl=!1,El=!1,Dl=!1;function Ol(){if(El){let e=Array.from(wl).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Sl(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])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}El=!1,Tl=!1,wl.forEach(e=>e.complete(Dl)),wl.clear()}function kl(){wl.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(El=!0)})}function Al(){Dl=!0,kl(),Ol(),Dl=!1}var jl=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(wl.add(this),Tl||(Tl=!0,K.read(kl),K.resolveKeyframes(Ol))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}il(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),wl.delete(this)}cancel(){this.state===`scheduled`&&(wl.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Ml=e=>e.startsWith(`--`);function Nl(e,t,n){Ml(t)?e.style.setProperty(t,n):e.style[t]=n}var Pl={};function Fl(e,t){let n=Fo(e);return()=>Pl[t]??n()}var Il=Fl(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Ll=Fl(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Rl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,zl={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Rl([0,.65,.55,1]),circOut:Rl([.55,0,1,.45]),backIn:Rl([.31,.01,.66,-.59]),backOut:Rl([.33,1.53,.69,.99])};function Bl(e,t){if(e)return typeof e==`function`?Ll()?Dc(e,t):`ease-out`:ss(e)?Rl(e):Array.isArray(e)?e.map(e=>Bl(e,t)||zl.easeOut):zl[e]}function Vl(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Bl(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function Hl(e){return typeof e==`function`&&`applyToOptions`in e}function Ul({type:e,...t}){return Hl(e)&&Ll()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Wl=class extends tl{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Ul(e);this.animation=Vl(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Qc(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Nl(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return Vo(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Vo(e)}get time(){return Vo(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Bo(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Il()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),Io):r(this)}},Gl={anticipate:$o,backInOut:Qo,circInOut:ns};function Kl(e){return e in Gl}function ql(e){typeof e.ease==`string`&&Kl(e.ease)&&(e.ease=Gl[e.ease])}var Jl=10,Yl=class extends Wl{constructor(e){ql(e),el(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new rl({...a,autoplay:!1}),s=Math.max(Jl,ys.now()-this.startTime),c=Oo(0,Jl,s-Jl),l=o.sample(s).value,{name:u}=this.options;i&&u&&Nl(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Xl=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(cc.test(e)||e===`0`)&&!e.startsWith(`url(`));function Zl(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Ql(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Xl(i,t),s=Xl(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:Zl(e)||(n===`spring`||Hl(n))&&r}function $l(e){e.duration=0,e.type=`keyframes`}var eu=new Set([`opacity`,`clipPath`,`filter`,`transform`]),tu=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function nu(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&tu.test(e[t]))return!0;return!1}var ru=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),iu=Fo(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function au(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return iu()&&n&&(eu.has(n)||ru.has(n)&&nu(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var ou=40,su=class extends tl{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ys.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||jl;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=ys.now();let u=!0;Ql(e,i,a,o)||(u=!1,(jo.instantAnimations||!s)&&l?.(Qc(e,n,t)),e[0]=e[e.length-1],$l(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>ou?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&au(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Yl({...d,element:p})}catch{m=new rl(d)}else m=new rl(d);m.finished.then(()=>{this.notifyFinished()}).catch(Io),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Al()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function cu(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var lu=30,uu=e=>!isNaN(parseFloat(e)),du={current:void 0},fu=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=ys.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=ys.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=uu(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 zo);let n=this.events[e].add(t);return e===`change`?()=>{n(),K.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){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}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()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return du.current&&du.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=ys.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>lu)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,lu);return Ho(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function pu(e,t){return new fu(e,t)}function mu(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function hu(e,t){let n=e?.[t]??e?.default??e;return n===e?n:mu(n,e)}var gu={type:`spring`,stiffness:500,damping:25,restSpeed:10},_u=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),vu={type:`keyframes`,duration:.8},yu={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},bu=(e,{keyframes:t})=>t.length>2?vu:vl.has(e)?e.startsWith(`scale`)?_u(t[1]):gu:yu,xu=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Su(e){for(let t in e)if(!xu.has(t))return!0;return!1}var Cu=(e,t,n,r={},i,a)=>o=>{let s=hu(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=Bo(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Su(s)||Object.assign(u,bu(e,u)),u.duration&&=Bo(u.duration),u.repeatDelay&&=Bo(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&($l(u),u.delay===0&&(d=!0)),(jo.instantAnimations||jo.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,$l(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Qc(u.keyframes,s);if(e!==void 0){K.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new rl(u):new su(u)},wu=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Tu(e){let t=wu.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Eu(e,t,n=1){`${e}`;let[r,i]=Tu(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Mo(e)?parseFloat(e):e}return Cs(i)?Eu(i,t,n+1):i}function Du(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Ou(e,t,n,r){if(typeof t==`function`){let[i,a]=Du(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Du(r);t=t(n===void 0?e.custom:n,i,a)}return t}function ku(e,t,n){let r=e.getProps();return Ou(r,t,n===void 0?r.custom:n,e)}var Au=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,..._l]),ju=e=>Array.isArray(e);function Mu(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,pu(n))}function Nu(e){return ju(e)?e[e.length-1]||0:e}function Pu(e,t){let{transitionEnd:n={},transition:r={},...i}=ku(e,t)||{};i={...i,...n};for(let t in i)Mu(e,t,Nu(i[t]))}var Q=e=>!!(e&&e.getVelocity);function Fu(e){return!!(Q(e)&&e.add)}function Iu(e,t){let n=e.getValue(`willChange`);if(Fu(n))return n.add(t);if(!n&&jo.WillChange){let n=new jo.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Lu(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Ru=`data-`+Lu(`framerAppearId`);function zu(e){return e.props[Ru]}function Bu({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Vu(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?mu(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&Bu(f,t))continue;let o={delay:n,...hu(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){K.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=zu(e);if(n){let e=window.MotionHandoffAnimation(n,t,K);e!==null&&(o.startTime=e,p=!0)}}Iu(e,t);let m=l??e.shouldReduceMotion;r.start(Cu(t,r,i,m&&Au.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>K.update(()=>{o&&Pu(e,o)});d.length?Promise.all(d).then(t):t()}return d}function Hu(e,t,n={}){let r=ku(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(Vu(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Uu(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function Uu(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(Hu(c,t,{...o,delay:n+(typeof r==`function`?0:r)+cu(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function Wu(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>Hu(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=Hu(e,t,n);else{let i=typeof t==`function`?ku(e,t,n.custom):t;r=Promise.all(Vu(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var Gu={test:e=>e===`auto`,parse:e=>e},Ku=e=>t=>t.test(e),qu=[Es,J,Hs,Vs,Ws,Us,Gu],Ju=e=>qu.find(Ku(e));function Yu(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||Po(e)}var Xu=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Zu(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(As)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Xu.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Qu=/\b([a-z-]*)\(.*?\)/gu,$u={...cc,getAnimatableNone:e=>{let t=e.match(Qu);return t?t.map(Zu).join(` `):e}},ed={...cc,getAnimatableNone:e=>{let t=cc.parse(e);return cc.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},td={...Es,transform:Math.round},nd={borderWidth:J,borderTopWidth:J,borderRightWidth:J,borderBottomWidth:J,borderLeftWidth:J,borderRadius:J,borderTopLeftRadius:J,borderTopRightRadius:J,borderBottomRightRadius:J,borderBottomLeftRadius:J,width:J,maxWidth:J,height:J,maxHeight:J,top:J,right:J,bottom:J,left:J,inset:J,insetBlock:J,insetBlockStart:J,insetBlockEnd:J,insetInline:J,insetInlineStart:J,insetInlineEnd:J,padding:J,paddingTop:J,paddingRight:J,paddingBottom:J,paddingLeft:J,paddingBlock:J,paddingBlockStart:J,paddingBlockEnd:J,paddingInline:J,paddingInlineStart:J,paddingInlineEnd:J,margin:J,marginTop:J,marginRight:J,marginBottom:J,marginLeft:J,marginBlock:J,marginBlockStart:J,marginBlockEnd:J,marginInline:J,marginInlineStart:J,marginInlineEnd:J,fontSize:J,backgroundPositionX:J,backgroundPositionY:J,rotate:Vs,pathRotation:Vs,rotateX:Vs,rotateY:Vs,rotateZ:Vs,scale:Os,scaleX:Os,scaleY:Os,scaleZ:Os,skew:Vs,skewX:Vs,skewY:Vs,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:Ds,originX:Gs,originY:Gs,originZ:J,zIndex:td,fillOpacity:Ds,strokeOpacity:Ds,numOctaves:td},rd={...nd,color:Y,backgroundColor:Y,outlineColor:Y,fill:Y,stroke:Y,borderColor:Y,borderTopColor:Y,borderRightColor:Y,borderBottomColor:Y,borderLeftColor:Y,filter:$u,WebkitFilter:$u,mask:ed,WebkitMask:ed},id=e=>rd[e],ad=new Set([$u,ed]);function od(e,t){let n=id(e);return ad.has(n)||(n=cc),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var sd=new Set([`auto`,`none`,`0`]);function cd(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!sd.has(t)&&tc(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=od(n,i)}var ld=class extends jl{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Cs(r))){let i=Eu(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Au.has(n)||e.length!==2)return;let[r,i]=e,a=Ju(r),o=Ju(i);if(Ts(r)!==Ts(i)&&Cl[n]){this.needsMeasurement=!0;return}if(a!==o)if(yl(a)&&yl(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Cl[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Yu(e[t]))&&n.push(t);n.length&&cd(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Cl[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=Cl[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},ud=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function dd(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var fd=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function pd(e){return No(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:md,cancel:hd}=ms(queueMicrotask,!1),gd={x:!1,y:!1};function _d(){return gd.x||gd.y}function vd(e){return e===`x`||e===`y`?gd[e]?null:(gd[e]=!0,()=>{gd[e]=!1}):gd.x||gd.y?null:(gd.x=gd.y=!0,()=>{gd.x=gd.y=!1})}function yd(e,t){let n=dd(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function bd(e){return!(e.pointerType===`touch`||_d())}function xd(e,t,n={}){let[r,i,a]=yd(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!bd(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Sd=(e,t)=>t?e===t?!0:Sd(e,t.parentElement):!1,Cd=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,wd=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Td(e){return wd.has(e.tagName)||e.isContentEditable===!0}var Ed=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Dd(e){return Ed.has(e.tagName)||e.isContentEditable===!0}var Od=new WeakSet;function kd(e){return t=>{t.key===`Enter`&&e(t)}}function Ad(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var jd=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=kd(()=>{if(Od.has(n))return;Ad(n,`down`);let e=kd(()=>{Ad(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Ad(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Md(e){return Cd(e)&&!_d()}var Nd=new WeakSet;function Pd(e,t,n={}){let[r,i,a]=yd(e,n),o=e=>{let r=e.currentTarget;if(!Md(e)||Nd.has(e))return;Od.add(r),n.stopPropagation&&Nd.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),Od.has(r)&&Od.delete(r),Md(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||Sd(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),pd(e)&&(e.addEventListener(`focus`,e=>jd(e,i)),!Td(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Fd(e){return No(e)&&`ownerSVGElement`in e}var Id=new WeakMap,Ld,Rd=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Fd(r)&&`getBBox`in r?r.getBBox()[t]:r[n],zd=Rd(`inline`,`width`,`offsetWidth`),Bd=Rd(`block`,`height`,`offsetHeight`);function Vd({target:e,borderBoxSize:t}){Id.get(e)?.forEach(n=>{n(e,{get width(){return zd(e,t)},get height(){return Bd(e,t)}})})}function Hd(e){e.forEach(Vd)}function Ud(){typeof ResizeObserver>`u`||(Ld=new ResizeObserver(Hd))}function Wd(e,t){Ld||Ud();let n=dd(e);return n.forEach(e=>{let n=Id.get(e);n||(n=new Set,Id.set(e,n)),n.add(t),Ld?.observe(e)}),()=>{n.forEach(e=>{let n=Id.get(e);n?.delete(t),n?.size||Ld?.unobserve(e)})}}var Gd=new Set,Kd;function qd(){Kd=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Gd.forEach(t=>t(e))},window.addEventListener(`resize`,Kd)}function Jd(e){return Gd.add(e),Kd||qd(),()=>{Gd.delete(e),!Gd.size&&typeof Kd==`function`&&(window.removeEventListener(`resize`,Kd),Kd=void 0)}}function Yd(e,t){return typeof e==`function`?Jd(e):Wd(e,t)}var Xd={value:null,addProjectionMetrics:null};function Zd(e){return Fd(e)&&e.tagName===`svg`}var Qd=[...qu,Y,cc],$d=e=>Qd.find(Ku(e)),ef=()=>({translate:0,scale:1,origin:0,originPoint:0}),tf=()=>({x:ef(),y:ef()}),nf=()=>({min:0,max:0}),$=()=>({x:nf(),y:nf()}),rf=new WeakMap;function af(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function of(e){return typeof e==`string`||Array.isArray(e)}var sf=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],cf=[`initial`,...sf];function lf(e){return af(e.animate)||cf.some(t=>of(e[t]))}function uf(e){return!!(lf(e)||e.variants)}function df(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Q(i))e.addValue(r,i);else if(Q(a))e.addValue(r,pu(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,pu(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var ff={current:null},pf={current:!1},mf=typeof window<`u`;function hf(){if(pf.current=!0,mf)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>ff.current=e.matches;e.addEventListener(`change`,t),t()}else ff.current=!1}var gf=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],_f={};function vf(e){_f=e}function yf(){return _f}var bf=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=jl,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=ys.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,K.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=lf(t),this.isVariantNode=uf(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&Q(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,rf.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)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(pf.current||hf(),this.shouldReduceMotion=ff.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),hs(this.notifyUpdate),hs(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in 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}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&eu.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Wl({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:Bo(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=vl.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&K.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in _f){let t=_f[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$()}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<gf.length;t++){let n=gf[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=df(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=pu(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(Mo(n)||Po(n))?n=parseFloat(n):!$d(n)&&cc.test(t)&&(n=od(e,t)),this.setBaseTarget(e,Q(n)?n.get():n)),Q(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Ou(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!Q(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new zo),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){md.render(this.render)}},xf=class extends bf{constructor(){super(...arguments),this.KeyframeResolver=ld}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Q(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},Sf=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Cf({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function wf({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Tf(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}}function Ef(e){return e===void 0||e===1}function Df({scale:e,scaleX:t,scaleY:n}){return!Ef(e)||!Ef(t)||!Ef(n)}function Of(e){return Df(e)||kf(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function kf(e){return Af(e.x)||Af(e.y)}function Af(e){return e&&e!==`0%`}function jf(e,t,n){return n+t*(e-n)}function Mf(e,t,n,r,i){return i!==void 0&&(e=jf(e,i,r)),jf(e,n,r)+t}function Nf(e,t=0,n=1,r,i){e.min=Mf(e.min,t,n,r,i),e.max=Mf(e.max,t,n,r,i)}function Pf(e,{x:t,y:n}){Nf(e.x,t.translate,t.scale,t.originPoint),Nf(e.y,n.translate,n.scale,n.originPoint)}var Ff=.999999999999,If=1.0000000000001;function Lf(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(Rf(e.x,-a.scroll.offset.x),Rf(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Pf(e,o)),r&&Of(a.latestValues)&&Vf(e,a.latestValues,a.layout?.layoutBox))}t.x<If&&t.x>Ff&&(t.x=1),t.y<If&&t.y>Ff&&(t.y=1)}function Rf(e,t){e.min+=t,e.max+=t}function zf(e,t,n,r,i=.5){Nf(e,t,n,X(e.min,e.max,i),r)}function Bf(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Vf(e,t,n){let r=n??e;zf(e.x,Bf(t.x,r.x),t.scaleX,t.scale,t.originX),zf(e.y,Bf(t.y,r.y),t.scaleY,t.scale,t.originY)}function Hf(e,t){return Cf(Tf(e.getBoundingClientRect(),t))}function Uf(e,t,n){let r=Hf(e,n),{scroll:i}=t;return i&&(Rf(r.x,i.offset.x),Rf(r.y,i.offset.y)),r}var Wf={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Gf=_l.length;function Kf(e,t,n){let r=``,i=!0;for(let a=0;a<Gf;a++){let o=_l[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=fd(s,nd[o]);if(!c){i=!1;let t=Wf[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${fd(a,nd.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function qf(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(vl.has(e)){o=!0;continue}else if(xs(e)){i[e]=n;continue}else{let t=fd(n,nd[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Kf(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function Jf(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function Yf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Xf={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(J.test(e))e=parseFloat(e);else return e;return`${Yf(e,t.target.x)}% ${Yf(e,t.target.y)}%`}},Zf={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=cc.parse(e);if(i.length>5)return r;let a=cc.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=X(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Qf={borderRadius:{...Xf,applyTo:[...ud]},borderTopLeftRadius:Xf,borderTopRightRadius:Xf,borderBottomLeftRadius:Xf,borderBottomRightRadius:Xf,boxShadow:Zf};function $f(e,{layout:t,layoutId:n}){return vl.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Qf[e]||e===`opacity`)}function ep(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Q(r[t])||i&&Q(i[t])||$f(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function tp(e){return window.getComputedStyle(e)}var np=class extends xf{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Jf}readValueFromInstance(e,t){if(vl.has(t))return this.projection?.isProjecting?pl(t):hl(e,t);{let n=tp(e),r=(xs(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Hf(e,t)}build(e,t,n){qf(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return ep(e,t,n)}},rp={offset:`stroke-dashoffset`,array:`stroke-dasharray`},ip={offset:`strokeDashoffset`,array:`strokeDasharray`};function ap(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?rp:ip;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var op=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function sp(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(qf(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of op)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&ap(d,i,a,o,!1)}var cp=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`]),lp=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function up(e,t,n,r){Jf(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(cp.has(n)?n:Lu(n),t.attrs[n])}function dp(e,t,n){let r=ep(e,t,n);for(let n in e)if(Q(e[n])||Q(t[n])){let t=_l.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var fp=class extends xf{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=$}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(vl.has(t)){let e=id(t);return e&&e.default||0}return t=cp.has(t)?t:Lu(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return dp(e,t,n)}build(e,t,n){sp(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){up(e,t,n,r)}mount(e){this.isSVGTag=lp(e.tagName),super.mount(e)}},pp=cf.length;function mp(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&mp(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<pp;n++){let r=cf[n],i=e.props[r];(of(i)||i===!1)&&(t[r]=i)}return t}function hp(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var gp=[...sf].reverse(),_p=sf.length;function vp(e){return t=>Promise.all(t.map(({animation:t,options:n})=>Wu(e,t,n)))}function yp(e){let t=vp(e),n=Sp(),r=!0,i=!1,a=t=>(n,r)=>{let i=ku(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=mp(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<_p;t++){let p=gp[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=of(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||af(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=bp(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=ju(t)&&ju(n)?!hp(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=ku(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=cu(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=ku(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Sp(),i=!0}}}function bp(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!hp(t,e):!1}function xp(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Sp(){return{animate:xp(!0),whileInView:xp(),whileHover:xp(),whileTap:xp(),whileDrag:xp(),whileFocus:xp(),exit:xp()}}function Cp(e,t){e.min=t.min,e.max=t.max}function wp(e,t){Cp(e.x,t.x),Cp(e.y,t.y)}function Tp(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Ep=.9999,Dp=1.0001,Op=-.01,kp=.01;function Ap(e){return e.max-e.min}function jp(e,t,n){return Math.abs(e-t)<=n}function Mp(e,t,n,r=.5){e.origin=r,e.originPoint=X(t.min,t.max,e.origin),e.scale=Ap(n)/Ap(t),e.translate=X(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Ep&&e.scale<=Dp||isNaN(e.scale))&&(e.scale=1),(e.translate>=Op&&e.translate<=kp||isNaN(e.translate))&&(e.translate=0)}function Np(e,t,n,r){Mp(e.x,t.x,n.x,r?r.originX:void 0),Mp(e.y,t.y,n.y,r?r.originY:void 0)}function Pp(e,t,n,r=0){e.min=(r?X(n.min,n.max,r):n.min)+t.min,e.max=e.min+Ap(t)}function Fp(e,t,n,r){Pp(e.x,t.x,n.x,r?.x),Pp(e.y,t.y,n.y,r?.y)}function Ip(e,t,n,r=0){let i=r?X(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Ap(t)}function Lp(e,t,n,r){Ip(e.x,t.x,n.x,r?.x),Ip(e.y,t.y,n.y,r?.y)}function Rp(e,t,n,r,i){return e-=t,e=jf(e,1/n,r),i!==void 0&&(e=jf(e,1/i,r)),e}function zp(e,t=0,n=1,r=.5,i,a=e,o=e){if(Hs.test(t)&&(t=parseFloat(t),t=X(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=X(a.min,a.max,r);e===a&&(s-=t),e.min=Rp(e.min,t,n,s,i),e.max=Rp(e.max,t,n,s,i)}function Bp(e,t,[n,r,i],a,o){zp(e,t[n],t[r],t[i],t.scale,a,o)}var Vp=[`x`,`scaleX`,`originX`],Hp=[`y`,`scaleY`,`originY`];function Up(e,t,n,r){Bp(e.x,t,Vp,n?n.x:void 0,r?r.x:void 0),Bp(e.y,t,Hp,n?n.y:void 0,r?r.y:void 0)}function Wp(e){return e.translate===0&&e.scale===1}function Gp(e){return Wp(e.x)&&Wp(e.y)}function Kp(e,t){return e.min===t.min&&e.max===t.max}function qp(e,t){return Kp(e.x,t.x)&&Kp(e.y,t.y)}function Jp(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Yp(e,t){return Jp(e.x,t.x)&&Jp(e.y,t.y)}function Xp(e){return Ap(e.x)/Ap(e.y)}function Zp(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Qp(e){return[e(`x`),e(`y`)]}function $p(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var em=ud.length,tm=e=>typeof e==`string`?parseFloat(e):e,nm=e=>typeof e==`number`||J.test(e);function rm(e,t,n,r,i,a){i?(e.opacity=X(0,n.opacity??1,am(r)),e.opacityExit=X(t.opacity??1,0,om(r))):a&&(e.opacity=X(t.opacity??1,n.opacity??1,r));for(let i=0;i<em;i++){let a=ud[i],o=im(t,a),s=im(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||nm(o)===nm(s)?(e[a]=Math.max(X(tm(o),tm(s),r),0),(Hs.test(s)||Hs.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=X(t.rotate||0,n.rotate||0,r))}function im(e,t){return e[t]===void 0?e.borderRadius:e[t]}var am=sm(0,.5,ts),om=sm(.5,.95,Io);function sm(e,t,n){return r=>r<e?0:r>t?1:n(Ro(e,t,r))}function cm(e,t,n){let r=Q(e)?e:pu(e);return r.start(Cu(``,r,t,n)),r.animation}function lm(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var um=(e,t)=>e.depth-t.depth,dm=class{constructor(){this.children=[],this.isDirty=!1}add(e){Eo(this.children,e),this.isDirty=!0}remove(e){Do(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(um),this.isDirty=!1,this.children.forEach(e)}};function fm(e,t){let n=ys.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(hs(r),e(a-t))};return K.setup(r,!0),()=>hs(r)}function pm(e){return Q(e)?e.get():e}var mm=class{constructor(){this.members=[]}add(e){Eo(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(Do(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Do(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){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},hm={hasAnimatedSinceResize:!0,hasEverUpdated:!1},gm={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},_m=[``,`X`,`Y`,`Z`],vm=1e3,ym=0;function bm(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function xm(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=zu(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,K,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&xm(r)}function Sm({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=ym++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Xd.value&&(gm.nodes=gm.calculatedTargetDeltas=gm.calculatedProjections=0),this.nodes.forEach(Tm),this.nodes.forEach(Pm),this.nodes.forEach(Fm),this.nodes.forEach(Em),Xd.addProjectionMetrics&&Xd.addProjectionMetrics(gm)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,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 dm)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new zo),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){if(this.instance)return;this.isSVG=Fd(t)&&!Zd(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;K.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=fm(i,250),hm.hasAnimatedSinceResize&&(hm.hasAnimatedSinceResize=!1,this.nodes.forEach(Nm)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Hm,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Yp(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...hu(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Nm(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,this.eventHandlers.clear(),hs(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(Im),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.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&xm(this),!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,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!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()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(km),this.nodes.forEach(Om);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Am);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(jm),this.nodes.forEach(Mm),this.nodes.forEach(Cm),this.nodes.forEach(wm)):this.nodes.forEach(Am),this.clearAllSnapshots();let e=ys.now();q.delta=Oo(0,1e3/60,e-q.timestamp),q.timestamp=e,q.isProcessing=!0,gs.update.process(q),gs.preRender.process(q),gs.render.process(q),q.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,md.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Dm),this.sharedNodes.forEach(Lm)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,K.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){K.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ap(this.snapshot.measuredBox.x)&&!Ap(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=$(),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);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Gp(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Of(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Km(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return $();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Jm))){let{scroll:e}=this.root;e&&(Rf(t.x,e.offset.x),Rf(t.y,e.offset.y))}return t}removeElementScroll(e){let t=$();if(wp(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&wp(t,e),Rf(t.x,i.offset.x),Rf(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||$();wp(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(Rf(r.x,-n.scroll.offset.x),Rf(r.y,-n.scroll.offset.y)),Of(n.latestValues)&&Vf(r,n.latestValues,n.layout?.layoutBox)}return Of(this.latestValues)&&Vf(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=$();wp(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!Of(n.latestValues))continue;let r;n.instance&&(Df(n.latestValues)&&n.updateSnapshot(),r=$(),wp(r,n.measurePageBox())),Up(t,n.latestValues,n.snapshot?.layoutBox,r)}return Of(this.latestValues)&&Up(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0: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!==q.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=q.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=$(),this.targetWithTransforms=$()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Fp(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):wp(this.target,this.layout.layoutBox),Pf(this.target,this.targetDelta)):wp(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),Xd.value&&gm.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Df(this.parent.latestValues)||kf(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$(),this.relativeTargetOrigin=$(),Lp(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),wp(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===q.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;wp(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Lf(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=$());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Tp(this.prevProjectionDelta.x,this.projectionDelta.x),Tp(this.prevProjectionDelta.y,this.projectionDelta.y)),Np(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Zp(this.projectionDelta.x,this.prevProjectionDelta.x)||!Zp(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Xd.value&&gm.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=tf(),this.projectionDelta=tf(),this.projectionDeltaWithTransform=tf()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=tf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=$(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(Vm));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=X(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=X(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Rm(o.x,e.x,n),Rm(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Lp(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Bm(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&qp(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=$(),wp(f,this.relativeTarget)),c&&(this.animationValues=a,rm(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(hs(this.pendingAnimation),void 0),this.pendingAnimation=K.update(()=>{hm.hasAnimatedSinceResize=!0,this.motionValue||=pu(0),this.motionValue.jump(0,!1),this.currentAnimation=cm(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,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(vm),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&&qm(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||$();let t=Ap(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Ap(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}wp(t,n),Vf(t,i),Np(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new mm),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:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.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):!1}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&&bm(`z`,e,r,this.animationValues);for(let t=0;t<_m.length;t++)bm(`rotate${_m[t]}`,e,r,this.animationValues),bm(`skew${_m[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=pm(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=pm(t?.pointerEvents)||``),this.hasProjected&&!Of(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=$p(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Qf){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Qf[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?pm(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Om),this.root.sharedNodes.clear()}}}function Cm(e){e.updateLayout()}function wm(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)Qp(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Ap(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Cp(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else qm(i,t.layoutBox,n)&&Qp(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Ap(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=tf();Np(o,n,t.layoutBox);let s=tf();a?Np(s,e.applyTransform(r,!0),t.measuredBox):Np(s,n,t.layoutBox);let c=!Gp(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=$();Lp(s,t.layoutBox,i.layoutBox,o);let c=$();Lp(c,n,a.layoutBox,o),Yp(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Tm(e){Xd.value&&gm.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Em(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Dm(e){e.clearSnapshot()}function Om(e){e.clearMeasurements()}function km(e){e.isLayoutDirty=!0,e.updateLayout()}function Am(e){e.isLayoutDirty=!1}function jm(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Mm(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Nm(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Pm(e){e.resolveTargetDelta()}function Fm(e){e.calcProjection()}function Im(e){e.resetSkewAndRotation()}function Lm(e){e.removeLeadSnapshot()}function Rm(e,t,n){e.translate=X(t.translate,0,n),e.scale=X(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function zm(e,t,n,r){e.min=X(t.min,n.min,r),e.max=X(t.max,n.max,r)}function Bm(e,t,n,r){zm(e.x,t.x,n.x,r),zm(e.y,t.y,n.y,r)}function Vm(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Hm={duration:.45,ease:[.4,0,.1,1]},Um=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Wm=Um(`applewebkit/`)&&!Um(`chrome/`)?Math.round:Io;function Gm(e){e.min=Wm(e.min),e.max=Wm(e.max)}function Km(e){Gm(e.x),Gm(e.y)}function qm(e,t,n){return e===`position`||e===`preserve-aspect`&&!jp(Xp(t),Xp(n),.2)}function Jm(e){return e!==e.root&&e.scroll?.wasRoot}var Ym=Sm({attachResizeListener:(e,t)=>lm(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Xm={current:void 0},Zm=Sm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Xm.current){let e=new Ym({});e.mount(window),e.setOptions({layoutScroll:!0}),Xm.current=e}return Xm.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Qm=(0,R.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function $m(e=!0){let t=(0,R.useContext)(To);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,R.useId)();(0,R.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,R.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var eh=(0,R.createContext)({strict:!1}),th={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`]},nh=!1;function rh(){if(nh)return;let e={};for(let t in th)e[t]={isEnabled:e=>th[t].some(t=>!!e[t])};vf(e),nh=!0}function ih(){return rh(),yf()}function ah(e){let t=ih();for(let n in e)t[n]={...t[n],...e[n]};vf(t)}var oh=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function sh(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||oh.has(e)}var ch=e({default:()=>lh}),lh,uh=r((()=>{throw lh={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),dh=e=>!sh(e);function fh(e){typeof e==`function`&&(dh=t=>t.startsWith(`on`)?!sh(t):e(t))}try{fh((uh(),n(ch)).default)}catch{}function ph(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||Q(e[i])||(dh(i)||n===!0&&sh(i)||!t&&!sh(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var mh=(0,R.createContext)({});function hh(e,t){if(lf(e)){let{initial:t,animate:n}=e;return{initial:t===!1||of(t)?t:void 0,animate:of(n)?n:void 0}}return e.inherit===!1?{}:t}function gh(e){let{initial:t,animate:n}=hh(e,(0,R.useContext)(mh));return(0,R.useMemo)(()=>({initial:t,animate:n}),[_h(t),_h(n)])}function _h(e){return Array.isArray(e)?e.join(` `):e}var vh=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function yh(e,t,n){for(let r in t)!Q(t[r])&&!$f(r,n)&&(e[r]=t[r])}function bh({transformTemplate:e},t){return(0,R.useMemo)(()=>{let n=vh();return qf(n,t,e),Object.assign({},n.vars,n.style)},[t])}function xh(e,t){let n=e.style||{},r={};return yh(r,n,e),Object.assign(r,bh(e,t)),r}function Sh(e,t){let n={},r=xh(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var Ch=()=>({...vh(),attrs:{}});function wh(e,t,n,r){let i=(0,R.useMemo)(()=>{let n=Ch();return sp(n,t,lp(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};yh(t,e.style,e),i.style={...t,...i.style}}return i}var Th=[`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 Eh(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Th.indexOf(e)>-1||/[A-Z]/u.test(e))}function Dh(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??Eh(e)?wh:Sh)(t,r,i,e),c=ph(t,typeof e==`string`,a),l=e===R.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,R.useMemo)(()=>Q(u)?u.get():u,[u]);return(0,R.createElement)(e,{...l,children:d})}function Oh({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:kh(n,r,i,e),renderState:t()}}function kh(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=pm(a[e]);let{initial:o,animate:s}=e,c=lf(e),l=uf(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!af(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Ou(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Ah=e=>(t,n)=>{let r=(0,R.useContext)(mh),i=(0,R.useContext)(To),a=()=>Oh(e,t,r,i);return n?a():Co(a)},jh=Ah({scrapeMotionValuesFromProps:ep,createRenderState:vh}),Mh=Ah({scrapeMotionValuesFromProps:dp,createRenderState:Ch}),Nh=Symbol.for(`motionComponentSymbol`);function Ph(e,t,n){let r=(0,R.useRef)(n);(0,R.useInsertionEffect)(()=>{r.current=n});let i=(0,R.useRef)(null);return(0,R.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n)},[t])}var Fh=(0,R.createContext)({});function Ih(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Lh(e,t,n,r,i,a){let{visualElement:o}=(0,R.useContext)(mh),s=(0,R.useContext)(eh),c=(0,R.useContext)(To),l=(0,R.useContext)(Qm),u=l.reducedMotion,d=l.skipAnimations,f=(0,R.useRef)(null),p=(0,R.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,R.useContext)(Fh);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Rh(f.current,n,i,h);let g=(0,R.useRef)(!1);(0,R.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[Ru],v=(0,R.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return wo(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,R.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function Rh(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:zh(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Ih(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function zh(e){if(e)return e.options.allowProjection===!1?zh(e.parent):e.projection}function Bh(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&ah(r);let a=n?n===`svg`:Eh(e),o=a?Mh:jh;function s(n,s){let c,l={...(0,R.useContext)(Qm),...n,layoutId:Vh(n)},{isStatic:u}=l,d=gh(n),f=o(n,u);if(!u&&typeof window<`u`){Hh(l,r);let t=Uh(l);c=t.MeasureLayout,d.visualElement=Lh(e,f,l,i,t.ProjectionNode,a)}return(0,z.jsxs)(mh.Provider,{value:d,children:[c&&d.visualElement?(0,z.jsx)(c,{visualElement:d.visualElement,...l}):null,Dh(e,n,Ph(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,R.forwardRef)(s);return c[Nh]=e,c}function Vh({layoutId:e}){let t=(0,R.useContext)(So).id;return t&&e!==void 0?t+`-`+e:e}function Hh(e,t){(0,R.useContext)(eh).strict}function Uh(e){let{drag:t,layout:n}=ih();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Wh(e,t){if(typeof Proxy>`u`)return Bh;let n=new Map,r=(n,r)=>Bh(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Bh(a,void 0,e,t)),n.get(a))})}var Gh=(e,t)=>t.isSVG??Eh(e)?new fp(t):new np(t,{allowProjection:e!==R.Fragment}),Kh=class extends Sf{constructor(e){super(e),e.animationState||=yp(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();af(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(){this.node.animationState.reset(),this.unmountControls?.()}},qh=0,Jh={animation:{Feature:Kh},exit:{Feature:class extends Sf{constructor(){super(...arguments),this.id=qh++,this.isExitComplete=!1}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;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=ku(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function Yh(e){return{point:{x:e.pageX,y:e.pageY}}}var Xh=e=>t=>Cd(t)&&e(t,Yh(t));function Zh(e,t,n,r){return lm(e,t,Xh(n),r)}var Qh=({current:e})=>e?e.ownerDocument.defaultView:null,$h=(e,t)=>Math.abs(e-t);function eg(e,t){let n=$h(e.x,t.x),r=$h(e.y,t.y);return Math.sqrt(n**2+r**2)}var tg=new Set([`auto`,`scroll`]),ng=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=rg(this.lastRawMoveEventInfo,this.transformPagePoint));let e=ag(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=eg(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=q;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=rg(t,this.transformPagePoint),K.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=ag(e.type===`pointercancel`?this.lastMoveEventInfo:rg(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Cd(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=rg(Yh(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=q;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,ag(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=Lo(Zh(this.contextWindow,`pointermove`,this.handlePointerMove,d),Zh(this.contextWindow,`pointerup`,this.handlePointerUp,d),Zh(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(tg.has(e.overflowX)||tg.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),K.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),hs(this.updatePoint)}};function rg(e,t){return t?{point:t(e.point)}:e}function ig(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ag({point:e},t){return{point:e,delta:ig(e,sg(t)),offset:ig(e,og(t)),velocity:cg(t,.1)}}function og(e){return e[0]}function sg(e){return e[e.length-1]}function cg(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=sg(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Bo(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>Bo(t)*2&&(r=e[1]);let a=Vo(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function lg(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?X(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?X(n,e,r.max):Math.min(e,n)),e}function ug(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function dg(e,{top:t,left:n,bottom:r,right:i}){return{x:ug(e.x,n,i),y:ug(e.y,t,r)}}function fg(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 pg(e,t){return{x:fg(e.x,t.x),y:fg(e.y,t.y)}}function mg(e,t){let n=.5,r=Ap(e),i=Ap(t);return i>r?n=Ro(t.min,t.max-r,e.min):r>i&&(n=Ro(e.min,e.max-i,t.min)),Oo(0,1,n)}function hg(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var gg=.35;function _g(e=gg){return e===!1?e=0:e===!0&&(e=gg),{x:vg(e,`left`,`right`),y:vg(e,`top`,`bottom`)}}function vg(e,t,n){return{min:yg(e,t),max:yg(e,n)}}function yg(e,t){return typeof e==`number`?e:e[t]||0}var bg=new WeakMap,xg=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(Yh(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=vd(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qp(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Hs.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Ap(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&K.update(()=>i(e,t),!1,!0),Iu(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=Tg(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&K.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new ng(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:Qh(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&K.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!wg(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=lg(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Ih(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=dg(n.layoutBox,e):this.constraints=!1,this.elastic=_g(t),r!==this.constraints&&!Ih(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Qp(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=hg(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Ih(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=Uf(n,r.root,this.visualElement.getTransformPagePoint()),a=pg(r.layout.layoutBox,i);if(t){let e=t(wf(a));this.hasMutatedConstraints=!!e,e&&(a=Cf(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Qp(o=>{if(!wg(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Iu(this.visualElement,e),n.start(Cu(e,n,0,t,this.visualElement,!1))}stopAnimation(){Qp(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){Qp(t=>{let{drag:n}=this.getProps();if(!wg(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-X(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Ih(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Qp(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=mg({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.constraints=!1,this.resolveConstraints(),Qp(t=>{if(!wg(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(X(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;bg.set(this.visualElement,this);let e=this.visualElement.current,t=Zh(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Dd(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Ih(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=Cg(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),K.read(r);let o=lm(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Qp(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=gg,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function Sg(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Cg(e,t,n){let r=Yd(e,Sg(n)),i=Yd(t,Sg(n));return()=>{r(),i()}}function wg(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Tg(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Eg=class extends Sf{constructor(e){super(e),this.removeGroupControls=Io,this.removeListeners=Io,this.controls=new xg(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Io}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},Dg=e=>(t,n)=>{e&&K.update(()=>e(t,n),!1,!0)},Og=class extends Sf{constructor(){super(...arguments),this.removePointerDownListener=Io}onPointerDown(e){this.session=new ng(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Qh(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Dg(e),onStart:Dg(t),onMove:Dg(n),onEnd:(e,t)=>{delete this.session,r&&K.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Zh(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},kg=!1,Ag=class extends R.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),kg&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),hm.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),kg=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||K.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),md.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;kg=!0,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 jg(e){let[t,n]=$m(),r=(0,R.useContext)(So);return(0,z.jsx)(Ag,{...e,layoutGroup:r,switchLayoutGroup:(0,R.useContext)(Fh),isPresent:t,safeToRemove:n})}var Mg={pan:{Feature:Og},drag:{Feature:Eg,ProjectionNode:Zm,MeasureLayout:jg}};function Ng(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&K.postRender(()=>i(t,Yh(t)))}var Pg=class extends Sf{mount(){let{current:e}=this.node;e&&(this.unmount=xd(e,(e,t)=>(Ng(this.node,t,`Start`),e=>Ng(this.node,e,`End`))))}unmount(){}},Fg=class extends Sf{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=Lo(lm(this.node.current,`focus`,()=>this.onFocus()),lm(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Ig(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&K.postRender(()=>i(t,Yh(t)))}var Lg=class extends Sf{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Pd(e,(e,t)=>(Ig(this.node,t,`Start`),(e,{success:t})=>Ig(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},Rg=new WeakMap,zg=new WeakMap,Bg=e=>{let t=Rg.get(e.target);t&&t(e)},Vg=e=>{e.forEach(Bg)};function Hg({root:e,...t}){let n=e||document;zg.has(n)||zg.set(n,{});let r=zg.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Vg,{root:e,...t})),r[i]}function Ug(e,t,n){let r=Hg(t);return Rg.set(e,n),r.observe(e),()=>{Rg.delete(e),r.unobserve(e)}}var Wg={some:0,all:1},Gg=class extends Sf{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Wg[r]},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(),a=t?n:r;a&&a(e)};this.stopObserver=Ug(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Kg(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Kg({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var qg={inView:{Feature:Gg},tap:{Feature:Lg},focus:{Feature:Fg},hover:{Feature:Pg}},Jg={layout:{ProjectionNode:Zm,MeasureLayout:jg}},Yg=Wh({...Jh,...qg,...Mg,...Jg},Gh),Xg={normal:`'wght' 400, 'opsz' 14`,medium:`'wght' 450, 'opsz' 15`,semibold:`'wght' 550, 'opsz' 20`,bold:`'wght' 700, 'opsz' 25`},Zg=`px-4 pt-3 pb-3`,Qg=`text-[15px] text-foreground [font-variation-settings:'wght'_550,'opsz'_20]`;function $g(e){return`sticky top-0 z-30 border-b bg-background/80 backdrop-blur-md transition-[border-color] duration-200 supports-[backdrop-filter]:bg-background/70 ${e?`border-border/80`:`border-transparent`}`}var e_={fast:{type:`spring`,duration:.08,bounce:0,exit:{duration:.06}},moderate:{type:`spring`,duration:.16,bounce:0,exit:{duration:.12}},slow:{type:`spring`,duration:.24,bounce:.12,exit:{duration:.16}}},t_=e=>Math.round(e.exit.duration*1e3)+100,n_=R.createContext(void 0);function r_(e){let t=R.useContext(n_);if(t===void 0&&!e)throw Error(ee(72));return t}var i_={...za,disabled:W(e=>e.disabled),instantType:W(e=>e.instantType),isInstantPhase:W(e=>e.isInstantPhase),trackCursorAxis:W(e=>e.trackCursorAxis),disableHoverablePopup:W(e=>e.disableHoverablePopup),lastOpenChangeReason:W(e=>e.openChangeReason),closeOnClick:W(e=>e.closeOnClick),closeDelay:W(e=>e.closeDelay),hasViewport:W(e=>e.hasViewport)},a_=class e extends pa{constructor(e,t,n=!1){let r=new Aa,i={...o_(),...e};i.floatingRootContext=Na(r,t,n),super(i,{popupRef:R.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:r},i_)}setOpen=(e,t)=>{Ca(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,V(Ee,e))}static useStore(t,n){return ya(t,(t,r)=>new e(n,t,r)).store}};function o_(){return{...Ma(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var s_=ia(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=a_.useStore(l?.store,{open:n,openProp:r,activeTriggerId:d,triggerIdProp:u});wa(p,r,n,d),p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,g=p.useState(`activeTriggerId`),_=p.useState(`mounted`),v=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i}),p.useSyncedValue(`disabled`,t),Ea(p,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:y,transitionStatus:b}=Da(h,p),x=p.useState(`isInstantPhase`),S=p.useState(`instantType`),C=p.useState(`lastOpenChangeReason`),w=R.useRef(null);k(()=>{m&&t&&p.setOpen(!1,V(Ie))},[m,t,p]),k(()=>{b===`ending`&&C===`none`||b!==`ending`&&x?(S!==`delay`&&(w.current=S),p.set(`instantType`,`delay`)):w.current!==null&&(p.set(`instantType`,w.current),w.current=null)},[b,x,C,S,p]),k(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]);let T=R.useCallback(()=>{p.setOpen(!1,V(ze))},[p]);R.useImperativeHandle(o,()=>({unmount:y,close:T}),[y,T]);let E=h||_||!t&&a!==`none`;return(0,z.jsxs)(n_.Provider,{value:p,children:[E&&(0,z.jsx)(c_,{store:p,disabled:t,trackCursorAxis:a}),typeof f==`function`?f({payload:v}):f]})});function c_({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=Rr(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=Fr(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n});return Oa(e,{activeTriggerProps:R.useMemo(()=>A(a.reference,i.reference),[a.reference,i.reference]),inactiveTriggerProps:R.useMemo(()=>A(a.trigger,i.trigger),[a.trigger,i.trigger]),popupProps:R.useMemo(()=>A(_a,a.floating,i.floating),[a.floating,i.floating])}),null}var l_=R.createContext(void 0);function u_(){return R.useContext(l_)}var d_=function(e){return e[e.popupOpen=ge.popupOpen]=`popupOpen`,e.triggerDisabled=`data-trigger-disabled`,e}({}),f_=`data-base-ui-tooltip-trigger`;function p_(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;e<t.length;e+=1){let n=t[e];if(c(n))return n}}let t=e.target;return c(t)?t:null}function m_(e){let t=e;for(;t;){if(t.hasAttribute(f_))return t;let e=t.parentElement;if(e){t=e;continue}let n=t.getRootNode();t=`host`in n&&c(n.host)?n.host:null}return null}var h_=aa(function(e,t){let{render:n,className:r,style:i,handle:a,payload:o,disabled:s,delay:c,closeOnClick:l=!0,closeDelay:u,id:d,...f}=e,p=r_(!0),m=a?.store??p;if(!m)throw Error(ee(82));let h=at(d),g=m.useState(`isTriggerActive`,h),_=m.useState(`isOpenedByTrigger`,h),v=m.useState(`floatingRootContext`),y=R.useRef(null),b=c??600,x=u??0,{registerTrigger:S,isMountedByThisTrigger:C}=Ta(h,y,m,{payload:o,closeOnClick:l,closeDelay:x}),w=u_(),{delayRef:T,isInstantPhase:D,hasProvider:O}=Yt(v,{open:_}),k=Ja(v);m.useSyncedValue(`isInstantPhase`,D);let A=m.useState(`disabled`),j=s??A,M=Zt(j),N=m.useState(`trackCursorAxis`),P=m.useState(`disableHoverablePopup`),F=R.useRef(!1),I=vt(),L=R.useRef(void 0);function te(){let e=w?.delay,t=typeof T.current==`object`?T.current.open:void 0,n=b;return O&&(n=t===0?0:c??e??b),n}function ne(e){let t=y.current;if(!t||!e)return!1;let n=m_(e);return n!==null&&n!==t&&H(t,n)}function re(e){let t=ne(e);return F.current=t,t&&(k.openChangeTimeout.clear(),k.restTimeout.clear(),k.restTimeoutPending=!1,I.clear()),t}let z=Za(v,{enabled:!j,mouseOnly:!0,move:!1,handleClose:!P&&N!==`both`?io():null,restMs:te,delay(){let e=typeof T.current==`object`?T.current.close:void 0,t=x;return u==null&&O&&(t=e),{close:t}},triggerElementRef:y,isActiveTrigger:g,isClosing:()=>m.select(`transitionStatus`)===`ending`,shouldOpen(){return!F.current}}),ie=Ua(v,{enabled:!j}).reference,ae=e=>{let t=F.current,n=p_(e),r=re(n),i=y.current,a=i&&n&&H(i,n);if(r&&m.select(`open`)&&m.select(`lastOpenChangeReason`)===`trigger-hover`){m.setOpen(!1,V(B,e));return}if(t&&!r&&a&&!M.current&&!m.select(`open`)&&i&&Ct(L.current)){let t=()=>{!F.current&&!M.current&&!m.select(`open`)&&m.setOpen(!0,V(B,e,i))},n=te();n===0?(I.clear(),t()):I.start(n,t)}},oe=m.useState(`triggerProps`,C);return E(`button`,e,{state:{open:_},ref:[t,S,y],props:[z,ie,C||N!==`none`?oe:void 0,{onMouseOver(e){ae(e.nativeEvent)},onFocus(e){ne(p_(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){F.current=!1,I.clear(),L.current=void 0},onPointerEnter(e){L.current=e.pointerType},onPointerDown(e){L.current=e.pointerType,m.set(`closeOnClick`,l),l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},onClick(e){l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},id:h,[d_.triggerDisabled]:j?``:void 0,[f_]:j?void 0:``},f],stateAttributesMapping:Se})}),g_=R.createContext(void 0);function __(){let e=R.useContext(g_);if(e===void 0)throw Error(ee(70));return e}var v_=R.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{portalNode:c,portalSubtree:l}=Sr({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,z.jsxs)(R.Fragment,{children:[l,c&&ue.createPortal(n,c)]})}),y_=R.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return r_().useState(`mounted`)||n?(0,z.jsx)(g_.Provider,{value:n,children:(0,z.jsx)(v_,{ref:t,...r})}):null}),b_=R.createContext(void 0);function x_(){let e=R.useContext(b_);if(e===void 0)throw Error(ee(71));return e}var S_=R.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=_r,style:g,..._}=e,v=r_(),y=__(),b=v.useState(`open`),x=v.useState(`mounted`),S=v.useState(`trackCursorAxis`),C=v.useState(`disableHoverablePopup`),w=v.useState(`floatingRootContext`),T=v.useState(`instantType`),E=v.useState(`transitionStatus`),D=_o({anchor:i,positionMethod:a,floatingRootContext:w,mounted:x,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:y,collisionAvoidance:h,adaptiveOrigin:v.useState(`hasViewport`)?mo:void 0}),O=yo(e,R.useMemo(()=>({open:b,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:S===`none`?T:`tracking-cursor`}),[b,D.side,D.align,D.anchorHidden,S,T]),{styles:D.positionerStyles,transitionStatus:E,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,z.jsx)(b_.Provider,{value:D,children:O})}),C_={...we,...me},w_=R.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=r_(),{side:s,align:c}=x_(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`),m=o.useState(`disabled`),h=o.useState(`closeDelay`);ht({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),Ya(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return E(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[f,ao(d),a],stateAttributesMapping:C_})}),T_=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=R.useMemo(()=>({delay:t,closeDelay:n}),[t,n]),a=R.useMemo(()=>({open:t,close:n}),[t,n]);return(0,z.jsx)(l_.Provider,{value:i,children:(0,z.jsx)(Jt,{delay:a,timeoutMs:r,children:e.children})})},E_=(0,R.createContext)(null),D_=200,O_=(0,R.createContext)(!1);function k_({children:e,delayDuration:t=D_,skipDelayDuration:n=300}){return(0,z.jsx)(O_.Provider,{value:!0,children:(0,z.jsx)(T_,{delay:t,timeout:n,children:e})})}function A_(e){switch(e){case`top`:return{y:4};case`bottom`:return{y:-4};case`left`:return{x:4};case`right`:return{x:-4};default:return{y:4}}}function j_({content:e,children:t,side:n=`top`,sideOffset:r=8,delayDuration:i,className:a,forceOpen:o,onOpenChange:s}){let[c,l]=(0,R.useState)(!1),u=o===void 0?c:o,d=w(),f=(0,R.useContext)(E_),m=(0,R.useContext)(O_),h=A_(n),g=(0,z.jsxs)(s_,{open:u,onOpenChange:e=>{l(e),s?.(e)},children:[(0,z.jsx)(h_,{render:t,delay:i}),(0,z.jsx)(y_,{container:f??void 0,children:(0,z.jsx)(S_,{side:n,sideOffset:r,className:`z-50`,children:(0,z.jsx)(w_,{render:(e,t)=>{let n=t.transitionStatus===`ending`,{style:r,onDrag:i,onDragStart:o,onDragEnd:s,onAnimationStart:c,onAnimationEnd:l,onAnimationIteration:u,...f}=e;return(0,z.jsx)(Yg.div,{...f,className:p(`bg-foreground text-background text-[12px] px-2 py-1`,`[text-box:trim-both_cap_alphabetic] supports-[text-box:trim-both]:py-2`,d.bg,a),style:{...r,fontVariationSettings:Xg.medium},initial:{opacity:0,...h},animate:n?{opacity:0,...h}:{opacity:1,x:0,y:0},transition:n?e_.fast.exit:e_.fast})},children:e})})})]});return m?g:(0,z.jsx)(T_,{delay:i??D_,children:g})}function M_(e){return null}M_.displayName=`TooltipTrigger`;function N_(e){return null}N_.displayName=`TooltipContent`;function P_({children:e,delayDuration:t,open:n,onOpenChange:r}){let i=null,a=null,o=`top`,s,c;return R.Children.forEach(e,e=>{if(R.isValidElement(e)&&(e.type===M_&&(i=e.props.render),e.type===N_)){let t=e.props;a=t.children,o=t.side??`top`,s=t.className,c=t.sideOffset}}),i?(0,z.jsx)(j_,{content:a,side:o,sideOffset:c,className:s,delayDuration:t,forceOpen:n,onOpenChange:r,children:i}):(0,z.jsx)(z.Fragment,{children:e})}function F_({className:e,type:t,...n}){return(0,z.jsx)(`input`,{type:t,"data-slot":`input`,className:p(`file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,`focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]`,`aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive`,e),...n})}export{Za as $,B as $n,zn as $t,Kc as A,ut as An,Ar as At,Do as B,Ae as Bn,fr as Bt,pd as C,yt as Cn,aa as Ct,pu as D,mt as Dn,Rr as Dt,Q as E,ht as En,wi as Et,Yo as F,et as Fn,br as Ft,xo as G,Re as Gn,or as Gt,wo as H,Me as Hn,er as Ht,Bo as I,Qe as In,hr as It,_o as J,Le as Jn,$n as Jt,bo as K,ke as Kn,sr as Kt,Ro as L,qe as Ln,gr as Lt,Ac as M,V as Mn,kr as Mt,X as N,at as Nn,Tr as Nt,Hl as O,pt as On,jr as Ot,os as P,it as Pn,Cr as Pt,io as Q,De as Qn,Pn as Qt,Ao as R,Xe as Rn,_r as Rt,Fd as S,St as Sn,ia as St,Vu as T,vt as Tn,qi as Tt,Co as U,je as Un,rr as Ut,To as V,Ie as Vn,dr as Vt,So as W,ze as Wn,ir as Wt,so as X,Oe as Xn,In as Xt,mo as Y,Te as Yn,tr as Yt,ao as Z,Fe as Zn,Fn as Zt,np as _,Dt as _n,Ta as _t,M_ as a,nn as an,Se as ar,za as at,$ as b,Ct as bn,fa as bt,Xg as c,Xt as cn,re as cr,Sa as ct,Qg as d,Rt as dn,Ea as dt,Nn as en,Ee as er,Ya as et,Yg as f,It as fn,wa as ft,fp as g,At as gn,ya as gt,cm as h,Mt as hn,ka as ht,k_ as i,tn as in,Ce as ir,Na as it,Bc as j,dt as jn,Or as jt,qc as k,ft as kn,Mr as kt,$g as l,U as ln,va as lt,Qm as m,H as mn,Oa as mt,P_ as n,Mn as nn,he as nr,Ba as nt,t_ as o,$t as on,me as or,Aa as ot,$m as p,jt as pn,Da as pt,yo as q,Ne as qn,cr as qt,N_ as r,rn,we as rr,Ma as rt,e_ as s,Zt as sn,le as sr,_a as st,F_ as t,Ln as tn,Be as tr,Ua as tt,Zg as u,Bt as un,xa as ut,bf as v,Ot as vn,ga as vt,dd as w,_t as wn,W as wt,Zd as x,xt as xn,ca as xt,rf as y,kt as yn,pa as yt,ko as z,Pe as zn,pr as zt};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as e,t}from"./react-CU_d2d5K.js";import{
|
|
1
|
+
import{s as e,t}from"./react-CU_d2d5K.js";import{n}from"./createLucideIcon-BEHeJH0M.js";import{H as r}from"./button-C8Xa2k4x.js";var i=e(t(),1);function a({controlled:e,default:t,name:n,state:r=`value`}){let{current:a}=i.useRef(e!==void 0),[o,s]=i.useState(t);return[a?e:o,i.useCallback(e=>{a||s(e)},[])]}var o=n();function s({className:e,...t}){return(0,o.jsx)(`label`,{"data-slot":`label`,className:r(`flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,e),...t})}export{a as n,s as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-
|
|
1
|
+
import{t as e}from"./createLucideIcon-BEHeJH0M.js";var t=e(`maximize-2`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]);export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-
|
|
1
|
+
import{t as e}from"./createLucideIcon-BEHeJH0M.js";var t=e(`maximize`,[[`path`,{d:`M8 3H5a2 2 0 0 0-2 2v3`,key:`1dcmit`}],[`path`,{d:`M21 8V5a2 2 0 0 0-2-2h-3`,key:`1e4gt3`}],[`path`,{d:`M3 16v3a2 2 0 0 0 2 2h3`,key:`wsl5sc`}],[`path`,{d:`M16 21h3a2 2 0 0 0 2-2v-3`,key:`18trek`}]]);export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-
|
|
1
|
+
import{t as e}from"./createLucideIcon-BEHeJH0M.js";var t=e(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]);export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-
|
|
1
|
+
import{t as e}from"./createLucideIcon-BEHeJH0M.js";var t=e(`minimize`,[[`path`,{d:`M8 3v3a2 2 0 0 1-2 2H3`,key:`hohbtr`}],[`path`,{d:`M21 8h-3a2 2 0 0 1-2-2V3`,key:`5jw1f3`}],[`path`,{d:`M3 16h3a2 2 0 0 1 2 2v3`,key:`198tvr`}],[`path`,{d:`M16 21v-3a2 2 0 0 1 2-2h3`,key:`ph8mxp`}]]),n=e(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]);export{t as n,n as t};
|