ryugi-artifacts 1.110.1 → 1.111.1

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.
Files changed (116) hide show
  1. package/dist/AppIcon.icns +0 -0
  2. package/dist/cli.cjs +181 -170
  3. package/dist/document-engine.cjs +2 -2
  4. package/dist/viewer/{AgentDock-6un7g6EW.js → AgentDock-CWoAyInJ.js} +1 -1
  5. package/dist/viewer/ArtboardLayout-Gi_Rb33T.js +14 -0
  6. package/dist/viewer/ArtifactList-B4vaV4LL.js +2 -0
  7. package/dist/viewer/{ArtifactModal-BthavXPQ.js → ArtifactModal-C88A7DQU.js} +1 -1
  8. package/dist/viewer/{BottomSheet-BFmMmz0e.js → BottomSheet-mEENQhXo.js} +1 -1
  9. package/dist/viewer/{Canvas-BQvfuFH9.js → Canvas-TaGtArM2.js} +1 -1
  10. package/dist/viewer/{CommentPopover-wKdHWvEk.js → CommentPopover-C2IPynrs.js} +1 -1
  11. package/dist/viewer/{DocumentExportMenu-DXQAge-h.js → DocumentExportMenu-BIqKgWsa.js} +1 -1
  12. package/dist/viewer/DocumentLayout-Bhou7Erz.js +2 -0
  13. package/dist/viewer/DocumentPage-CL8BHzvE.js +3 -0
  14. package/dist/viewer/{DraggablePanel-WnQa4WqJ.js → DraggablePanel-EaBQZRKM.js} +1 -1
  15. package/dist/viewer/{DropdownMenu-C-RgiXH5.js → DropdownMenu-DQ7lEE6T.js} +1 -1
  16. package/dist/viewer/{GroupVerdict-BhUpCp5w.js → GroupVerdict-DD1kDk8G.js} +1 -1
  17. package/dist/viewer/{HtmlLayout-Ykt8uvx5.js → HtmlLayout-D-TZERzu.js} +1 -1
  18. package/dist/viewer/{Input-C1Nrx6NW.js → Input-CvF3Kvcn.js} +1 -1
  19. package/dist/viewer/MenuSubmenuTrigger-Demi4IDi.js +1 -0
  20. package/dist/viewer/{PhoneArtboardBar-BMkMYKEH.js → PhoneArtboardBar-rLQn_4q_.js} +1 -1
  21. package/dist/viewer/{Popover-cB2rLdue.js → Popover-D_u_4_wg.js} +1 -1
  22. package/dist/viewer/{PreviewArtifactLayout-H6NV96nq.js → PreviewArtifactLayout-BHUwzgBB.js} +1 -1
  23. package/dist/viewer/PreviewLayout-BpjXLdCG.js +2 -0
  24. package/dist/viewer/{ReportLayout-gDr83HaK.js → ReportLayout-D1LIgrVQ.js} +2 -2
  25. package/dist/viewer/{RyugiMark-BxkKQ5lq.js → RyugiMark-9R6vd--o.js} +1 -1
  26. package/dist/viewer/{Segmented-Beqk813u.js → Segmented-3bO8HJP9.js} +1 -1
  27. package/dist/viewer/SelectScrollUpArrow-fVYlV_Df.js +1 -0
  28. package/dist/viewer/SlidesLayout-Dz_-IKMP.js +12 -0
  29. package/dist/viewer/{SnapshotDocument-B2cxzqyH.js → SnapshotDocument-CfCZZ3Dl.js} +1 -1
  30. package/dist/viewer/{SplitFrame-Czb4TISP.js → SplitFrame-DA4AAPDo.js} +1 -1
  31. package/dist/viewer/{StoryboardLayout-C1AqDRge.js → StoryboardLayout-Cx34TvDt.js} +1 -1
  32. package/dist/viewer/{StoryboardRender-0BHiMypp.js → StoryboardRender-jleZrgMT.js} +1 -1
  33. package/dist/viewer/{ThreadView-C7soHy8_.js → ThreadView-CnA6USm2.js} +1 -1
  34. package/dist/viewer/{Tooltip-B0Ehf6Z5.js → Tooltip-CQeEn1SV.js} +1 -1
  35. package/dist/viewer/{VerifyLayout-9xD_W0-c.js → VerifyLayout-BNP7tqV0.js} +1 -1
  36. package/dist/viewer/{VirtualizedEditor-uWe43zaI-DT4GAFpm.js → VirtualizedEditor-uWe43zaI-BIkoRwQ3.js} +1 -1
  37. package/dist/viewer/{VirtualizedRenderer-C_d95FXi-ealkku86.js → VirtualizedRenderer-C_d95FXi-2b7OPnwv.js} +1 -1
  38. package/dist/viewer/{WarningsBadge-BbJdjQpt.js → WarningsBadge-CeG9Jeoy.js} +1 -1
  39. package/dist/viewer/WhiteboardEditor-cZ32fLqJ-CMLA7-B_.js +22 -0
  40. package/dist/viewer/{WhiteboardLayout-C-RLaui_.js → WhiteboardLayout-DGtgw74y.js} +1 -1
  41. package/dist/viewer/{WritingCursor-oPoIsKUb.js → WritingCursor-DZpsfmLk.js} +1 -1
  42. package/dist/viewer/{agentLook-D4riQJ8C.js → agentLook-CyO4F8iU.js} +1 -1
  43. package/dist/viewer/{artifact-list-CpPtgMEK.js → artifact-list-RN5CJrRv.js} +1 -1
  44. package/dist/viewer/{auto-publish-DVEHOTT5.js → auto-publish-Bi0UDEtZ.js} +1 -1
  45. package/dist/viewer/{channel-CVsrQP9s.js → channel-jqGSR_Ro.js} +3 -3
  46. package/dist/viewer/{crop-encode-hNMFMj6m.js → crop-encode-rl31nonY.js} +1 -1
  47. package/dist/viewer/{dist-CRi3Ep6t.js → dist-B84p7FkF.js} +1 -1
  48. package/dist/viewer/{dist-DXt-rGJU.js → dist-BIffztgU.js} +1 -1
  49. package/dist/viewer/{dist-E38Xe3MQ.js → dist-BRrJTxFx.js} +1 -1
  50. package/dist/viewer/{dist-CQ22WAIU.js → dist-Bdr0VszO.js} +1 -1
  51. package/dist/viewer/{dist-CAMOMDy7.js → dist-BjhOApyG.js} +1 -1
  52. package/dist/viewer/{dist-DmKVt1TO.js → dist-Bqk2YFn6.js} +1 -1
  53. package/dist/viewer/{dist-Dc7UOYbo.js → dist-BsfWp4zX.js} +1 -1
  54. package/dist/viewer/{dist-DHHkE5Pc.js → dist-Bvr9dBEb.js} +1 -1
  55. package/dist/viewer/{dist-Bqxw-VPi.js → dist-CH_GsY4T.js} +1 -1
  56. package/dist/viewer/{dist-Dk6bIGuf.js → dist-COgrXfeD.js} +1 -1
  57. package/dist/viewer/{dist-B0ILD5bC.js → dist-CkTGObPZ.js} +1 -1
  58. package/dist/viewer/{dist-CIggNRs9.js → dist-CwJVXdNr.js} +1 -1
  59. package/dist/viewer/{dist-CKyjD35S.js → dist-CwMTizME.js} +1 -1
  60. package/dist/viewer/{dist-H8MUbNB6.js → dist-DNSLZUo8.js} +1 -1
  61. package/dist/viewer/{dist-CNxdwhOg.js → dist-DNSe9Tqv.js} +1 -1
  62. package/dist/viewer/{dist-DN1H79Ip.js → dist-DUMptS_V.js} +1 -1
  63. package/dist/viewer/{dist--v3nH0C2.js → dist-DhndGvXA.js} +1 -1
  64. package/dist/viewer/{dist-BHWbRf2s.js → dist-DiUH0Im9.js} +1 -1
  65. package/dist/viewer/{dist-CyGunPGS.js → dist-GpRxkRbr.js} +1 -1
  66. package/dist/viewer/{dist-BVmgdxIk.js → dist-LCUvGvSd.js} +1 -1
  67. package/dist/viewer/{dist-DuQFs8bS.js → dist-SasXS60E.js} +1 -1
  68. package/dist/viewer/dist-TjJSNbUu.js +1 -0
  69. package/dist/viewer/{dist-CWG86Qx7.js → dist-pKV4elMd.js} +1 -1
  70. package/dist/viewer/{dist-CLk1Bth7.js → dist-qW6Hen-W.js} +1 -1
  71. package/dist/viewer/{editor-B_dmAT7r.js → editor-CAV9B3e1.js} +256 -254
  72. package/dist/viewer/{fit-Dy3EIsBE.js → fit-NVG3gpEF.js} +1 -1
  73. package/dist/viewer/{icons-BurfZgbO.js → icons-CVwBATSw.js} +1 -1
  74. package/dist/viewer/{imperative-Cgz8hoz-.js → imperative-Bgl4gxul.js} +1 -1
  75. package/dist/viewer/index.html +13 -12
  76. package/dist/viewer/index.js +2 -2
  77. package/dist/viewer/index4.css +1 -1
  78. package/dist/viewer/index5.css +126 -12
  79. package/dist/viewer/is-html-element-DvgHo_1h.js +1 -0
  80. package/dist/viewer/{local-DXaScWD4.js → local-Ddss5kK8.js} +1 -1
  81. package/dist/viewer/{local-split-host--Swu-YgH.js → local-split-host-B1wOJhAJ.js} +1 -1
  82. package/dist/viewer/plugin-_bGVeqI0-BmwQlHbk.js +2 -0
  83. package/dist/viewer/preview.html +3 -3
  84. package/dist/viewer/preview.js +1 -1
  85. package/dist/viewer/{printDocument-CC2oNEVO.js → printDocument-DAPZIhL_.js} +1 -1
  86. package/dist/viewer/{ref-B-yJaA1I.js → ref-Uot1XMTG.js} +1 -1
  87. package/dist/viewer/{route-McOpomU2.js → route-B8QJSEdc.js} +2 -2
  88. package/dist/viewer/{route-messages-CVVJCGbw.js → route-messages-CYk6OU35.js} +1 -1
  89. package/dist/viewer/{settings-CiU-sro0.js → settings-CZhwGDxV.js} +1 -1
  90. package/dist/viewer/snap-BuSVhxlu.js +1 -0
  91. package/dist/viewer/split-C0-FEpZ1.js +2 -0
  92. package/dist/viewer/{stable-D0V-nxn7.js → stable-DBbxyzYt.js} +1 -1
  93. package/dist/viewer/{styles-B6PpuJxT.js → styles-nBCP51Nu.js} +1 -1
  94. package/dist/viewer/{transport-Cs-vGiPz.js → transport-t54pV_UD.js} +1 -1
  95. package/dist/viewer/url-Bohryzyz.js +29 -0
  96. package/dist/viewer/{useArtifactFeed-CeKgpdgq.js → useArtifactFeed-BQ5jbUBc.js} +1 -1
  97. package/dist/viewer/{useArtifactSocket-Dp2OBZFo.js → useArtifactSocket-Cvc_b9W2.js} +1 -1
  98. package/dist/viewer/{useLayerZIndex-DzJy6vhi.js → useLayerZIndex-BIk9IpLI.js} +1 -1
  99. package/dist/viewer/{useStoryboardData-C7PSl2I4.js → useStoryboardData-CwcNnZr7.js} +1 -1
  100. package/dist/viewer/{view-BQdRX9O6.js → view-DXjSeYap.js} +1 -1
  101. package/dist/viewer/{viewport-CFJHn_Y6-Cz8ocWMP.js → viewport-CFJHn_Y6-BbuENZ6x.js} +1 -1
  102. package/package.json +3 -2
  103. package/dist/viewer/ArtboardLayout-DcLjfTW5.js +0 -14
  104. package/dist/viewer/ArtifactList-CguprV5S.js +0 -2
  105. package/dist/viewer/DocumentLayout-DPB6Byav.js +0 -2
  106. package/dist/viewer/DocumentPage-BStsS6oE.js +0 -3
  107. package/dist/viewer/MenuSubmenuTrigger-C3Y6EJ1a.js +0 -1
  108. package/dist/viewer/PreviewLayout-CFXMPAXR.js +0 -2
  109. package/dist/viewer/SelectScrollUpArrow-DuDh2HJ_.js +0 -1
  110. package/dist/viewer/SlidesLayout-CWZjcfO3.js +0 -12
  111. package/dist/viewer/WhiteboardEditor-cZ32fLqJ-BfKRGbqm.js +0 -22
  112. package/dist/viewer/dist-DiSjof8e.js +0 -1
  113. package/dist/viewer/plugin-_bGVeqI0-CTywTig9.js +0 -2
  114. package/dist/viewer/snap-Dxg6-ulS.js +0 -1
  115. package/dist/viewer/split-Dnd6CUMX.js +0 -2
  116. package/dist/viewer/url-BO9cF4cS.js +0 -29
@@ -0,0 +1,29 @@
1
+ import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{k as t,l as n,o as r,r as i,u as a,y as o}from"./route-B8QJSEdc.js";import{n as s,r as c,t as l}from"./bem-vbke-3KC.js";import{t as u}from"./react-DlmbjZJV.js";import{t as d}from"./jsx-runtime-LKYXHABd.js";import{$r as f,A as p,An as m,At as h,B as g,Bn as _,Bt as v,C as y,Ct as b,Dn as x,Dr as S,Dt as C,E as w,En as T,Et as E,F as D,Fn as O,Fr as k,Ft as A,G as j,Gn as M,Gr as N,Gt as P,Hn as F,Ht as I,In as L,Ir as ee,It as te,J as R,Jn as z,K as B,Kn as ne,Kt as V,Lt as H,M as re,Mn as U,Mt as ie,N as ae,Nn as W,Nt as oe,On as se,Ot as ce,P as le,Pn as ue,Pr as de,Q as fe,Qn as pe,Qr as me,Rn as he,Rt as ge,S as _e,Sn as ve,St as ye,T as be,Tn as xe,Tt as Se,Un as Ce,Ut as we,V as Te,Vn as Ee,Vr as De,Vt as Oe,Wn as ke,Xn as Ae,Xr as je,Yn as G,Yr as Me,Zn as Ne,Zr as K,_ as Pe,_r as Fe,_t as Ie,ai as Le,an as Re,at as ze,b as Be,bn as Ve,bt as He,cn as Ue,cr as We,dn as Ge,dr as Ke,dt as qe,ei as Je,er as Ye,fn as Xe,ft as Ze,gn as Qe,gr as $e,gt as et,ht as tt,i as nt,ii as rt,in as it,it as at,j as ot,jn as st,jt as ct,k as lt,kn as ut,kr as dt,kt as ft,l as pt,ln as mt,lr as ht,lt as gt,mt as _t,ni as vt,nn as yt,nr as bt,nt as xt,oi as St,on as Ct,ot as wt,pn as Tt,pt as Et,qn as Dt,r as Ot,ri as kt,rn as At,rr as jt,rt as Mt,sn as q,t as Nt,ti as J,tn as Pt,tr as Ft,un as It,ut as Lt,v as Rt,vn as zt,vt as Bt,w as Vt,wt as Ht,xt as Ut,y as Wt,yn as Gt,yt as Kt,zn as qt,zr as Y,zt as Jt}from"./useLayerZIndex-BIk9IpLI.js";import{$ as Yt,A as Xt,C as Zt,D as Qt,Dt as $t,E as en,F as tn,H as nn,J as rn,K as an,L as on,M as sn,O as cn,P as ln,Q as un,R as dn,S as fn,T as pn,U as mn,V as hn,W as gn,X as _n,Y as vn,Z as yn,_ as bn,_t as xn,a as Sn,at as Cn,b as wn,bt as Tn,ct as En,d as Dn,dt as On,et as kn,f as An,ft as jn,g as Mn,h as Nn,ht as Pn,i as Fn,it as In,j as Ln,k as Rn,l as zn,lt as Bn,m as Vn,mt as Hn,n as Un,nt as Wn,o as Gn,ot as Kn,pt as qn,q as Jn,r as Yn,rt as Xn,s as Zn,t as Qn,tt as $n,ut as er,v as tr,vt as nr,w as rr,wt as ir,x as ar,xt as or,y as sr,yt as cr,z as lr}from"./MotionConfigContext-HC2vqcJO.js";import{n as ur,t as dr}from"./is-html-element-DvgHo_1h.js";var X=e(u(),1),fr=e=>{let t=document.createElement(`link`);return t.rel=`stylesheet`,t.href=e,t},pr=(0,X.memo)(({url:e})=>{let t=(0,X.useRef)(null);return(0,X.useEffect)(()=>{let n=fr(e);document.head.append(n),t.current=n;let r=()=>console.error(`Failed to load font from ${e}`);return n.addEventListener(`error`,r),()=>{n.removeEventListener(`error`,r),n.remove(),t.current=null}},[e]),null});pr.displayName=`FontLoader`;var mr=`
2
+ [data-lobe-global-focus-ring] {
3
+ all: initial;
4
+ position: fixed;
5
+ position-anchor: --lobe-global-focus;
6
+ top: anchor(top);
7
+ right: anchor(right);
8
+ bottom: anchor(bottom);
9
+ left: anchor(left);
10
+ position-visibility: anchors-visible;
11
+ pointer-events: none;
12
+ border-radius: inherit;
13
+ outline: 2px solid ${(e=>`color-mix(in srgb, ${e} 90%, transparent)`)(`var(--lobe-focus-ring-color)`)};
14
+ outline-offset: 2px;
15
+ animation: lobe-global-focus-in 200ms cubic-bezier(0.22, 1, 0.36, 1);
16
+ }
17
+ [data-lobe-global-focus-ring]:not(:popover-open) { display: none; }
18
+ [data-lobe-global-focus-ring]::backdrop { background: transparent; pointer-events: none; }
19
+ @keyframes lobe-global-focus-in {
20
+ from { opacity: 0.25; outline-offset: 5px; }
21
+ to { opacity: 1; outline-offset: 2px; }
22
+ }
23
+ @media (prefers-reduced-motion: reduce) {
24
+ [data-lobe-global-focus-ring] { animation: none; }
25
+ }
26
+ @media (forced-colors: active) {
27
+ [data-lobe-global-focus-ring] { outline-color: CanvasText; animation: none; }
28
+ }
29
+ `,hr=new WeakMap,gr=(e=document)=>{let t=hr.get(e);if(t){t.users+=1;let e=!1;return()=>{e||(e=!0,--t.users===0&&t.dispose())}}let n=e.defaultView;if(!n||!e.body||!n.CSS?.supports(`top`,`anchor(top)`)||!n.CSS.supports(`position-visibility`,`anchors-visible`)||!(`showPopover`in e.createElement(`div`)))return()=>{};let r=e.createElement(`style`);r.textContent=mr;let i=e.createElement(`div`);i.setAttribute(`data-lobe-global-focus-ring`,``),i.setAttribute(`aria-hidden`,`true`),i.setAttribute(`popover`,`manual`),e.head.append(r),e.body.append(i);let a,o,s=0,c=!1,l=()=>{i.matches(`:popover-open`)&&i.hidePopover(),o?.(),o=void 0,a=void 0},u=()=>{if(c)return;let t=e.activeElement;if(t===a&&t?.matches(`:focus-visible`)&&t.isConnected&&i.matches(`:popover-open`)||(l(),!t||t===e.body||t.namespaceURI!==`http://www.w3.org/1999/xhtml`||t.shadowRoot||t.closest(`[data-lobe-focus-ring="off"]`)||t.matches(`textarea`)||t.isContentEditable||t.matches(`input`)&&![`button`,`submit`,`reset`,`image`,`checkbox`,`radio`,`range`,`color`,`file`].includes(t.type)||!t.matches(`:focus-visible`)))return;let r=t,s=r.parentElement;for(;s&&n.getComputedStyle(s).contain===`none`;)s=s.parentElement;let u=s||e.body,f=i.parentElement!==u;f&&u.append(i);let p=n.getComputedStyle(r),m=p.borderRadius,h=p.getPropertyValue(`--lobe-focus-ring-color`).trim()||p.getPropertyValue(`--lobe-color-info`).trim()||`#1677ff`,g=i.style.borderRadius!==m||i.style.getPropertyValue(`--lobe-focus-ring-color`)!==h;if(g&&(i.style.borderRadius=m,i.style.setProperty(`--lobe-focus-ring-color`,h)),f||g){d();return}let _=[`anchor-name`,`outline`].map(e=>({priority:r.style.getPropertyPriority(e),property:e,value:r.style.getPropertyValue(e)})),v=r.getAttribute(`data-lobe-focus-ring`),y=p.getPropertyValue(`anchor-name`).trim(),b=y&&y!==`none`?`${y}, --lobe-global-focus`:`--lobe-global-focus`;r.style.setProperty(`anchor-name`,b,`important`),o=()=>{for(let{property:e,value:t,priority:n}of _){let i=e===`anchor-name`?b:`none`;r.style.getPropertyValue(e)===i&&(t?r.style.setProperty(e,t,n):r.style.removeProperty(e))}r.getAttribute(`data-lobe-focus-ring`)===`managed`&&(v===null?r.removeAttribute(`data-lobe-focus-ring`):r.setAttribute(`data-lobe-focus-ring`,v))};let x=r.getBoundingClientRect();if(r.getClientRects().length!==1||!x.width||!x.height||p.visibility!==`visible`)l();else try{i.showPopover();let e=i.getBoundingClientRect();if(Math.max(...[`top`,`right`,`bottom`,`left`].map(t=>Math.abs(e[t]-x[t])))>1){l();return}r.style.setProperty(`outline`,`none`,`important`),r.setAttribute(`data-lobe-focus-ring`,`managed`),a=r}catch{l()}},d=()=>{s||=n.requestAnimationFrame(()=>{s=0,u()})},f=()=>n.queueMicrotask(u),p=()=>{n.cancelAnimationFrame(s),s=0,i.matches(`:popover-open`)&&i.hidePopover()},m=new MutationObserver(()=>{a&&!a.isConnected&&l()});return m.observe(e.body,{childList:!0,subtree:!0}),e.addEventListener(`focusin`,f,!0),e.addEventListener(`focusout`,d,!0),e.addEventListener(`keydown`,d,!0),e.addEventListener(`pointerdown`,d,!0),n.addEventListener(`blur`,p),n.addEventListener(`focus`,d),hr.set(e,{dispose:()=>{c=!0,n.cancelAnimationFrame(s),m.disconnect(),e.removeEventListener(`focusin`,f,!0),e.removeEventListener(`focusout`,d,!0),e.removeEventListener(`keydown`,d,!0),e.removeEventListener(`pointerdown`,d,!0),n.removeEventListener(`blur`,p),n.removeEventListener(`focus`,d),l(),i.remove(),r.remove(),hr.delete(e)},users:0}),u(),gr(e)},Z=d(),_r=(0,X.createContext)(null);(0,X.memo)(({children:e,motion:t})=>(0,Z.jsx)(_r,{value:t,children:e}));var vr=()=>{let e=(0,X.use)(_r);if(!e)throw Error(`Please wrap your app with <ConfigProvider> (or <MotionProvider>) and pass the motion component`);return e},yr=`https://unpkg.com`,br=`https://registry.npmmirror.com`,xr=(e,...t)=>{let n=[e.replace(/\/+$/,``),...t.map(e=>e.replaceAll(/^\/+|\/+$/g,``))].filter(Boolean).join(`/`);return t.at(-1)?.endsWith(`/`)?`${n}/`:n},Sr=({pkg:e,version:t=`latest`,path:n,proxy:r})=>{switch(r){case`unpkg`:return xr(yr,`${e}@${t}`,n);default:return xr(br,e,t,`files`,n)}},Cr=[{path:`css/index-full.css`,pkg:`@lobehub/webfont-geist`,version:`1.0.0`},{path:`css/index-full.css`,pkg:`@lobehub/webfont-geist-mono`,version:`1.0.0`},{path:`css/index-full.css`,pkg:`@lobehub/webfont-harmony-sans`,version:`1.0.0`},{path:`css/index5.css`,pkg:`@lobehub/webfont-harmony-sans-sc`,version:`1.0.0`},{path:`dist/katex.min.css`,pkg:`katex`,version:`0.19.0`}],wr=`lobe-ui-theme-app`,Tr=(0,X.createContext)(null),Er=(0,X.createContext)(`ltr`),Dr=(0,X.createContext)({locale:`en`,t:e=>e}),Or=e=>typeof e?.then==`function`,kr=(0,X.memo)(({children:e,config:t,customFonts:n,direction:r=`ltr`,enableCustomFonts:i=!0,locale:a,resources:o,motion:s})=>{let[c,l]=(0,X.useState)(null);(0,X.useEffect)(()=>{if(t?.globalFocusRing!==!1)return gr()},[t?.globalFocusRing]);let u=a??`en`,[d,f]=(0,X.useState)(()=>o&&!Or(o)?o:void 0),[p,m]=(0,X.useState)(u),h=(0,X.useRef)(0);(0,X.useEffect)(()=>{let e=++h.current;if(!o)f(void 0),m(u);else if(Or(o)){let t=u;o.then(n=>{h.current===e&&(f(n),m(t))}).catch(()=>{h.current})}else f(o),m(u)},[u,o]);let g=Or(o)?d:o,_=Or(o)?p:u,v=(0,X.useMemo)(()=>{let e=Array.isArray(g)?g:g?Object.values(g):[],t=Object.assign({},...e);return{locale:_,t:e=>t[e]||e}},[_,g]);return(0,Z.jsx)(Dr,{value:v,children:(0,Z.jsx)(Tr,{value:t??null,children:(0,Z.jsx)(Er,{value:r,children:(0,Z.jsx)(_r,{value:s,children:(0,Z.jsxs)(Le,{value:c,children:[i&&(0,Z.jsx)(jr,{customFonts:n}),e,(0,Z.jsx)(`div`,{"data-lobe-portal-host":``,id:wr,ref:l,style:Ar})]})})})})})}),Ar={height:0,left:0,position:`fixed`,right:0,top:0,zIndex:1100},jr=({customFonts:e})=>{let t=Nr();return(0,X.useMemo)(()=>e||Cr.map(e=>t(e)),[e,t]).map(e=>(0,Z.jsx)(pr,{url:e},e))},Mr=({pkg:e,version:t,path:n})=>Sr({path:n,pkg:e,proxy:`aliyun`,version:t}),Nr=()=>{let e=(0,X.use)(Tr);return e?e?.proxy===`custom`?e?.customCdnFn||Mr:({pkg:t,version:n,path:r})=>Sr({path:r,pkg:t,proxy:e.proxy,version:n}):Mr},Pr=()=>(0,X.use)(Dr);function Fr({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=X.useRef(e!==void 0),[a,o]=X.useState(()=>t);return[i&&e!==void 0?e:a,X.useCallback(e=>{i||o(e)},[])]}var Ir=X.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function Lr(){return X.useContext(Ir)}function Rr(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=J(i),[,o]=X.useState(0),s=vt(Br).current,c=vt(zr).current,l=X.useRef(0),u=X.useRef(!0),d=X.useRef(null),f=X.useRef(null),p=J(()=>{u.current||(u.current=!0,o(e=>e+1))}),m=J((e,t)=>{c.set(e,t),p()}),h=J(e=>{c.delete(e),p()}),g=J(e=>{let t=new Map;return n.current.length=0,r&&(r.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),n.current[e.index]=e.element,r&&(r.current[e.index]=e.registration.label===void 0?e.registration.textRef?.current?.textContent??e.element.textContent:e.registration.label)}),l.current=n.current.length,t});function _(e){if(f.current?.disconnect(),f.current=null,typeof MutationObserver!=`function`||e.length<2)return;let t=new MutationObserver(n=>{if(!Ur(n))return;let r=null;for(let n of e)if(n.isConnected){if(r&&Wr(r,n)>0){t.disconnect(),p();return}r=n}});f.current=t;let n=new Set;for(let t=1;t<e.length;t+=1){let r=Hr(e[t-1],e[t]);r&&n.add(r)}n.forEach(e=>t.observe(e,{childList:!0}))}let v=J(()=>{let[e,t]=Vr(c),n=g(e),r=d.current,i=!r||r.length!==e.length||e.some((e,t)=>{let n=r[t];return e.index!==n.index||e.element!==n.element||e.registration.index!==n.registration.index||e.registration.metadata!==n.registration.metadata});_(t),d.current=e,u.current=!1,i&&(s.forEach(e=>e(n)),a(n))});K(()=>(!u.current&&d.current&&g(d.current),()=>{n.current=[],r&&(r.current=[])}),[n,r,g]),K(()=>{u.current&&v()}),K(()=>()=>{f.current?.disconnect(),u.current=!0},[]);let y=J(e=>(s.add(e),()=>{s.delete(e)})),b=X.useMemo(()=>({register:m,unregister:h,subscribeMapChange:y,nextIndexRef:l}),[m,h,y,l]);return(0,Z.jsx)(Ir.Provider,{value:b,children:t})}function zr(){return new Map}function Br(){return new Set}function Vr(e){let t=new Set,n=[],r=[];e.forEach((e,i)=>{if(!i.isConnected)return;let a=e.index,o={index:a??-1,element:i,registration:e};a===null?r.push(o):a>=0&&(t.add(a),n.push(o))});let i=0;return r.sort((e,t)=>Wr(e.element,t.element)),r.forEach(e=>{for(;t.has(i);)i+=1;e.index=i,n.push(e),i+=1}),t.size>0&&n.sort((e,t)=>e.index-t.index),[n,r.map(e=>e.element)]}function Hr(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function Ur(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}function Wr(e,t){return e.nextElementSibling===t?-1:t.nextElementSibling===e?1:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function Gr(e={}){let{guess:t,label:n,metadata:r,textRef:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,nextIndexRef:l}=Lr(),u=X.useRef(-1),[d,f]=X.useState(a==null&&t?()=>{if(u.current===-1){let e=l.current;l.current+=1,u.current=e}return u.current}:-1),p=a??d,m=X.useRef(null),h=X.useCallback(e=>{let t=m.current;t&&s(t),m.current=e,e&&o(e,{metadata:r??null,index:a??null,label:n,textRef:i})},[a,o,s,r,n,i]);return K(()=>{if(a==null)return c(e=>{let t=m.current?e.get(m.current)?.index:null;t!=null&&f(t)})},[a,c]),{ref:h,index:p}}var Kr={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};Kr.node;var qr=$t(Kr),Jr={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};Jr.node;var Yr=$t(Jr),Xr={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};Xr.node;var Zr=$t(Xr),Qr={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};Qr.node;var $r=$t(Qr),ei={name:`circle-exclamation-point`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`,`circle-alert`]};ei.node;var ti=$t(ei),ni={name:`download`,size:24,node:[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]};ni.node;var ri=$t(ni),ii={name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]};ii.node;var ai=$t(ii),oi={name:`globe`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]};oi.node;var si=$t(oi),ci={name:`image`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]};ci.node;var li=$t(ci),ui={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};ui.node;var di=$t(ui),fi={name:`link-2`,size:24,node:[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]};fi.node;var pi=$t(fi),mi={name:`link`,size:24,node:[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]};mi.node;var hi=$t(mi),gi={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};gi.node;var _i=$t(gi),vi={name:`message-circle`,size:24,node:[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]};vi.node;var yi=$t(vi),bi={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};bi.node;var xi=$t(bi),Si={name:`rotate-ccw-clock`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]],aliases:[`history`]};Si.node;var Ci=$t(Si),wi={name:`triangle-exclamation-point`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`,`triangle-alert`]};wi.node;var Ti=$t(wi),Ei={name:`type`,size:24,node:[[`path`,{d:`M12 4v16`,key:`1654pz`}],[`path`,{d:`M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2`,key:`e0r10z`}],[`path`,{d:`M9 20h6`,key:`s66wpe`}]]};Ei.node;var Di=$t(Ei),Oi=e(t(),1),ki=l({block:`button`,dataAttributes:[`type`,`size`,`shape`,`danger`,`ghost`,`loading`,`block`],elements:[`icon`,`spinner`]});l({block:`split-button`,dataAttributes:[`type`,`size`,`danger`,`loading`],elements:[`main`,`menu`]});var Ai={borderRadiusOuter:`var(--lobe-border-radius-outer)`,colorTextLightSolid:`var(--lobe-color-text-light-solid)`,colorWhite:`var(--lobe-color-white)`,controlHeightLG:`var(--lobe-control-height-lg)`,controlHeightSM:`var(--lobe-control-height-sm)`,controlHeightXS:`var(--lobe-control-height-xs)`,controlInteractiveSize:`var(--lobe-control-interactive-size)`,controlOutlineWidth:`var(--lobe-control-outline-width)`,controlPaddingHorizontal:`var(--lobe-control-padding-horizontal)`,controlPaddingHorizontalSM:`var(--lobe-control-padding-horizontal-sm)`,fontHeight:`var(--lobe-font-height)`,fontHeightLG:`var(--lobe-font-height-lg)`,fontHeightSM:`var(--lobe-font-height-sm)`,fontSize:`var(--lobe-font-size)`,fontSizeHeading1:`var(--lobe-font-size-heading-1)`,fontSizeHeading2:`var(--lobe-font-size-heading-2)`,fontSizeHeading3:`var(--lobe-font-size-heading-3)`,fontSizeHeading4:`var(--lobe-font-size-heading-4)`,fontSizeHeading5:`var(--lobe-font-size-heading-5)`,fontSizeIcon:`var(--lobe-font-size-icon)`,fontSizeLG:`var(--lobe-font-size-lg)`,fontSizeSM:`var(--lobe-font-size-sm)`,fontSizeXL:`var(--lobe-font-size-xl)`,fontWeightStrong:`var(--lobe-font-weight-strong)`,lineHeight:`var(--lobe-line-height)`,lineHeightHeading1:`var(--lobe-line-height-heading-1)`,lineHeightHeading2:`var(--lobe-line-height-heading-2)`,lineHeightHeading3:`var(--lobe-line-height-heading-3)`,lineHeightHeading4:`var(--lobe-line-height-heading-4)`,lineHeightHeading5:`var(--lobe-line-height-heading-5)`,lineHeightLG:`var(--lobe-line-height-lg)`,lineHeightSM:`var(--lobe-line-height-sm)`,lineType:`var(--lobe-line-type)`,lineWidth:`var(--lobe-line-width)`,lineWidthBold:`var(--lobe-line-width-bold)`,lineWidthFocus:`var(--lobe-line-width-focus)`,linkDecoration:`var(--lobe-link-decoration)`,linkFocusDecoration:`var(--lobe-link-focus-decoration)`,linkHoverDecoration:`var(--lobe-link-hover-decoration)`,margin:`var(--lobe-margin)`,marginLG:`var(--lobe-margin-lg)`,marginMD:`var(--lobe-margin-md)`,marginSM:`var(--lobe-margin-sm)`,marginXL:`var(--lobe-margin-xl)`,marginXS:`var(--lobe-margin-xs)`,marginXXL:`var(--lobe-margin-xxl)`,marginXXS:`var(--lobe-margin-xxs)`,motionDurationFast:`var(--lobe-motion-duration-fast)`,motionDurationMid:`var(--lobe-motion-duration-mid)`,motionDurationSlow:`var(--lobe-motion-duration-slow)`,motionEaseInBack:`var(--lobe-motion-ease-in-back)`,motionEaseInOut:`var(--lobe-motion-ease-in-out)`,motionEaseInOutCirc:`var(--lobe-motion-ease-in-out-circ)`,motionEaseInQuint:`var(--lobe-motion-ease-in-quint)`,motionEaseOut:`var(--lobe-motion-ease-out)`,motionEaseOutBack:`var(--lobe-motion-ease-out-back)`,motionEaseOutCirc:`var(--lobe-motion-ease-out-circ)`,motionEaseOutQuint:`var(--lobe-motion-ease-out-quint)`,motionSpringBouncy:`var(--lobe-motion-spring-bouncy)`,motionSpringSmooth:`var(--lobe-motion-spring-smooth)`,motionSpringSnappy:`var(--lobe-motion-spring-snappy)`,opacityImage:`var(--lobe-opacity-image)`,opacityLoading:`var(--lobe-opacity-loading)`,padding:`var(--lobe-padding)`,paddingContentHorizontal:`var(--lobe-padding-content-horizontal)`,paddingContentHorizontalLG:`var(--lobe-padding-content-horizontal-lg)`,paddingContentHorizontalSM:`var(--lobe-padding-content-horizontal-sm)`,paddingContentVertical:`var(--lobe-padding-content-vertical)`,paddingContentVerticalLG:`var(--lobe-padding-content-vertical-lg)`,paddingContentVerticalSM:`var(--lobe-padding-content-vertical-sm)`,paddingLG:`var(--lobe-padding-lg)`,paddingMD:`var(--lobe-padding-md)`,paddingSM:`var(--lobe-padding-sm)`,paddingXL:`var(--lobe-padding-xl)`,paddingXS:`var(--lobe-padding-xs)`,paddingXXS:`var(--lobe-padding-xxs)`,pink:`var(--lobe-pink)`,screenLG:`var(--lobe-screen-lg)`,screenLGMax:`var(--lobe-screen-lg-max)`,screenLGMin:`var(--lobe-screen-lg-min)`,screenMD:`var(--lobe-screen-md)`,screenMDMax:`var(--lobe-screen-md-max)`,screenMDMin:`var(--lobe-screen-md-min)`,screenSM:`var(--lobe-screen-sm)`,screenSMMax:`var(--lobe-screen-sm-max)`,screenSMMin:`var(--lobe-screen-sm-min)`,screenXL:`var(--lobe-screen-xl)`,screenXLMax:`var(--lobe-screen-xl-max)`,screenXLMin:`var(--lobe-screen-xl-min)`,screenXS:`var(--lobe-screen-xs)`,screenXSMax:`var(--lobe-screen-xs-max)`,screenXSMin:`var(--lobe-screen-xs-min)`,screenXXL:`var(--lobe-screen-xxl)`,screenXXLMax:`var(--lobe-screen-xxl-max)`,screenXXLMin:`var(--lobe-screen-xxl-min)`,screenXXXL:`var(--lobe-screen-xxxl)`,screenXXXLMin:`var(--lobe-screen-xxxl-min)`,size:`var(--lobe-size)`,sizeLG:`var(--lobe-size-lg)`,sizeMD:`var(--lobe-size-md)`,sizeMS:`var(--lobe-size-ms)`,sizePopupArrow:`var(--lobe-size-popup-arrow)`,sizeSM:`var(--lobe-size-sm)`,sizeStep:`var(--lobe-size-step)`,sizeUnit:`var(--lobe-size-unit)`,sizeXL:`var(--lobe-size-xl)`,sizeXS:`var(--lobe-size-xs)`,sizeXXL:`var(--lobe-size-xxl)`,sizeXXS:`var(--lobe-size-xxs)`,zIndexBase:`var(--lobe-z-index-base)`,zIndexPopupBase:`var(--lobe-z-index-popup-base)`,borderRadius:`var(--lobe-border-radius)`,borderRadiusLG:`var(--lobe-border-radius-lg)`,borderRadiusSM:`var(--lobe-border-radius-sm)`,borderRadiusXS:`var(--lobe-border-radius-xs)`,controlHeight:`var(--lobe-control-height)`,fontFamily:`var(--lobe-font-family)`,fontFamilyCode:`var(--lobe-font-family-code)`,boxShadowCard:`var(--lobe-box-shadow-card)`,boxShadowDrawerDown:`var(--lobe-box-shadow-drawer-down)`,boxShadowDrawerLeft:`var(--lobe-box-shadow-drawer-left)`,boxShadowDrawerRight:`var(--lobe-box-shadow-drawer-right)`,boxShadowDrawerUp:`var(--lobe-box-shadow-drawer-up)`,boxShadowPopoverArrow:`var(--lobe-box-shadow-popover-arrow)`,boxShadowTabsOverflowBottom:`var(--lobe-box-shadow-tabs-overflow-bottom)`,boxShadowTabsOverflowLeft:`var(--lobe-box-shadow-tabs-overflow-left)`,boxShadowTabsOverflowRight:`var(--lobe-box-shadow-tabs-overflow-right)`,boxShadowTabsOverflowTop:`var(--lobe-box-shadow-tabs-overflow-top)`,colorBgBase:`var(--lobe-color-bg-base)`,colorBgBlur:`var(--lobe-color-bg-blur)`,colorBgSolid:`var(--lobe-color-bg-solid)`,colorBgSolidActive:`var(--lobe-color-bg-solid-active)`,colorBgSolidHover:`var(--lobe-color-bg-solid-hover)`,colorBorderDisabled:`var(--lobe-color-border-disabled)`,colorErrorBgActive:`var(--lobe-color-error-bg-active)`,colorErrorBgFilledHover:`var(--lobe-color-error-bg-filled-hover)`,colorShadow:`var(--lobe-color-shadow)`,colorTextBase:`var(--lobe-color-text-base)`,dropShadowPopover:`var(--lobe-drop-shadow-popover)`,pink1:`var(--lobe-pink-1)`,pink10:`var(--lobe-pink-10)`,pink2:`var(--lobe-pink-2)`,pink3:`var(--lobe-pink-3)`,pink4:`var(--lobe-pink-4)`,pink5:`var(--lobe-pink-5)`,pink6:`var(--lobe-pink-6)`,pink7:`var(--lobe-pink-7)`,pink8:`var(--lobe-pink-8)`,pink9:`var(--lobe-pink-9)`,pinkActive:`var(--lobe-pink-active)`,pinkHover:`var(--lobe-pink-hover)`,colorErrorFill:`var(--lobe-color-error-fill)`,colorErrorFillSecondary:`var(--lobe-color-error-fill-secondary)`,colorErrorFillTertiary:`var(--lobe-color-error-fill-tertiary)`,colorErrorFillQuaternary:`var(--lobe-color-error-fill-quaternary)`,colorErrorBg:`var(--lobe-color-error-bg)`,colorErrorBgHover:`var(--lobe-color-error-bg-hover)`,colorErrorBorder:`var(--lobe-color-error-border)`,colorErrorBorderHover:`var(--lobe-color-error-border-hover)`,colorErrorHover:`var(--lobe-color-error-hover)`,colorError:`var(--lobe-color-error)`,colorErrorActive:`var(--lobe-color-error-active)`,colorErrorTextHover:`var(--lobe-color-error-text-hover)`,colorErrorText:`var(--lobe-color-error-text)`,colorErrorTextActive:`var(--lobe-color-error-text-active)`,colorInfoFill:`var(--lobe-color-info-fill)`,colorInfoFillSecondary:`var(--lobe-color-info-fill-secondary)`,colorInfoFillTertiary:`var(--lobe-color-info-fill-tertiary)`,colorInfoFillQuaternary:`var(--lobe-color-info-fill-quaternary)`,colorInfoBg:`var(--lobe-color-info-bg)`,colorInfoBgHover:`var(--lobe-color-info-bg-hover)`,colorInfoBorder:`var(--lobe-color-info-border)`,colorInfoBorderHover:`var(--lobe-color-info-border-hover)`,colorInfoHover:`var(--lobe-color-info-hover)`,colorInfo:`var(--lobe-color-info)`,colorInfoActive:`var(--lobe-color-info-active)`,colorInfoTextHover:`var(--lobe-color-info-text-hover)`,colorInfoText:`var(--lobe-color-info-text)`,colorInfoTextActive:`var(--lobe-color-info-text-active)`,colorSuccessFill:`var(--lobe-color-success-fill)`,colorSuccessFillSecondary:`var(--lobe-color-success-fill-secondary)`,colorSuccessFillTertiary:`var(--lobe-color-success-fill-tertiary)`,colorSuccessFillQuaternary:`var(--lobe-color-success-fill-quaternary)`,colorSuccessBg:`var(--lobe-color-success-bg)`,colorSuccessBgHover:`var(--lobe-color-success-bg-hover)`,colorSuccessBorder:`var(--lobe-color-success-border)`,colorSuccessBorderHover:`var(--lobe-color-success-border-hover)`,colorSuccessHover:`var(--lobe-color-success-hover)`,colorSuccess:`var(--lobe-color-success)`,colorSuccessActive:`var(--lobe-color-success-active)`,colorSuccessTextHover:`var(--lobe-color-success-text-hover)`,colorSuccessText:`var(--lobe-color-success-text)`,colorSuccessTextActive:`var(--lobe-color-success-text-active)`,colorWarningFill:`var(--lobe-color-warning-fill)`,colorWarningFillSecondary:`var(--lobe-color-warning-fill-secondary)`,colorWarningFillTertiary:`var(--lobe-color-warning-fill-tertiary)`,colorWarningFillQuaternary:`var(--lobe-color-warning-fill-quaternary)`,colorWarningBg:`var(--lobe-color-warning-bg)`,colorWarningBgHover:`var(--lobe-color-warning-bg-hover)`,colorWarningBorder:`var(--lobe-color-warning-border)`,colorWarningBorderHover:`var(--lobe-color-warning-border-hover)`,colorWarningHover:`var(--lobe-color-warning-hover)`,colorWarning:`var(--lobe-color-warning)`,colorWarningActive:`var(--lobe-color-warning-active)`,colorWarningTextHover:`var(--lobe-color-warning-text-hover)`,colorWarningText:`var(--lobe-color-warning-text)`,colorWarningTextActive:`var(--lobe-color-warning-text-active)`,blue1:`var(--lobe-blue-1)`,blue2:`var(--lobe-blue-2)`,blue3:`var(--lobe-blue-3)`,blue4:`var(--lobe-blue-4)`,blue5:`var(--lobe-blue-5)`,blue6:`var(--lobe-blue-6)`,blue7:`var(--lobe-blue-7)`,blue8:`var(--lobe-blue-8)`,blue9:`var(--lobe-blue-9)`,blue10:`var(--lobe-blue-10)`,blue11:`var(--lobe-blue-11)`,blue1A:`var(--lobe-blue-1-a)`,blue2A:`var(--lobe-blue-2-a)`,blue3A:`var(--lobe-blue-3-a)`,blue4A:`var(--lobe-blue-4-a)`,blue5A:`var(--lobe-blue-5-a)`,blue6A:`var(--lobe-blue-6-a)`,blue7A:`var(--lobe-blue-7-a)`,blue8A:`var(--lobe-blue-8-a)`,blue9A:`var(--lobe-blue-9-a)`,blue10A:`var(--lobe-blue-10-a)`,blue11A:`var(--lobe-blue-11-a)`,blueFill:`var(--lobe-blue-fill)`,blueFillSecondary:`var(--lobe-blue-fill-secondary)`,blueFillTertiary:`var(--lobe-blue-fill-tertiary)`,blueFillQuaternary:`var(--lobe-blue-fill-quaternary)`,blueBg:`var(--lobe-blue-bg)`,blueBgHover:`var(--lobe-blue-bg-hover)`,blueBorder:`var(--lobe-blue-border)`,blueBorderSecondary:`var(--lobe-blue-border-secondary)`,blueBorderHover:`var(--lobe-blue-border-hover)`,blueHover:`var(--lobe-blue-hover)`,blue:`var(--lobe-blue)`,blueActive:`var(--lobe-blue-active)`,blueTextHover:`var(--lobe-blue-text-hover)`,blueText:`var(--lobe-blue-text)`,blueTextActive:`var(--lobe-blue-text-active)`,cyan1:`var(--lobe-cyan-1)`,cyan2:`var(--lobe-cyan-2)`,cyan3:`var(--lobe-cyan-3)`,cyan4:`var(--lobe-cyan-4)`,cyan5:`var(--lobe-cyan-5)`,cyan6:`var(--lobe-cyan-6)`,cyan7:`var(--lobe-cyan-7)`,cyan8:`var(--lobe-cyan-8)`,cyan9:`var(--lobe-cyan-9)`,cyan10:`var(--lobe-cyan-10)`,cyan11:`var(--lobe-cyan-11)`,cyan1A:`var(--lobe-cyan-1-a)`,cyan2A:`var(--lobe-cyan-2-a)`,cyan3A:`var(--lobe-cyan-3-a)`,cyan4A:`var(--lobe-cyan-4-a)`,cyan5A:`var(--lobe-cyan-5-a)`,cyan6A:`var(--lobe-cyan-6-a)`,cyan7A:`var(--lobe-cyan-7-a)`,cyan8A:`var(--lobe-cyan-8-a)`,cyan9A:`var(--lobe-cyan-9-a)`,cyan10A:`var(--lobe-cyan-10-a)`,cyan11A:`var(--lobe-cyan-11-a)`,cyanFill:`var(--lobe-cyan-fill)`,cyanFillSecondary:`var(--lobe-cyan-fill-secondary)`,cyanFillTertiary:`var(--lobe-cyan-fill-tertiary)`,cyanFillQuaternary:`var(--lobe-cyan-fill-quaternary)`,cyanBg:`var(--lobe-cyan-bg)`,cyanBgHover:`var(--lobe-cyan-bg-hover)`,cyanBorder:`var(--lobe-cyan-border)`,cyanBorderSecondary:`var(--lobe-cyan-border-secondary)`,cyanBorderHover:`var(--lobe-cyan-border-hover)`,cyanHover:`var(--lobe-cyan-hover)`,cyan:`var(--lobe-cyan)`,cyanActive:`var(--lobe-cyan-active)`,cyanTextHover:`var(--lobe-cyan-text-hover)`,cyanText:`var(--lobe-cyan-text)`,cyanTextActive:`var(--lobe-cyan-text-active)`,geekblue1:`var(--lobe-geekblue-1)`,geekblue2:`var(--lobe-geekblue-2)`,geekblue3:`var(--lobe-geekblue-3)`,geekblue4:`var(--lobe-geekblue-4)`,geekblue5:`var(--lobe-geekblue-5)`,geekblue6:`var(--lobe-geekblue-6)`,geekblue7:`var(--lobe-geekblue-7)`,geekblue8:`var(--lobe-geekblue-8)`,geekblue9:`var(--lobe-geekblue-9)`,geekblue10:`var(--lobe-geekblue-10)`,geekblue11:`var(--lobe-geekblue-11)`,geekblue1A:`var(--lobe-geekblue-1-a)`,geekblue2A:`var(--lobe-geekblue-2-a)`,geekblue3A:`var(--lobe-geekblue-3-a)`,geekblue4A:`var(--lobe-geekblue-4-a)`,geekblue5A:`var(--lobe-geekblue-5-a)`,geekblue6A:`var(--lobe-geekblue-6-a)`,geekblue7A:`var(--lobe-geekblue-7-a)`,geekblue8A:`var(--lobe-geekblue-8-a)`,geekblue9A:`var(--lobe-geekblue-9-a)`,geekblue10A:`var(--lobe-geekblue-10-a)`,geekblue11A:`var(--lobe-geekblue-11-a)`,geekblueFill:`var(--lobe-geekblue-fill)`,geekblueFillSecondary:`var(--lobe-geekblue-fill-secondary)`,geekblueFillTertiary:`var(--lobe-geekblue-fill-tertiary)`,geekblueFillQuaternary:`var(--lobe-geekblue-fill-quaternary)`,geekblueBg:`var(--lobe-geekblue-bg)`,geekblueBgHover:`var(--lobe-geekblue-bg-hover)`,geekblueBorder:`var(--lobe-geekblue-border)`,geekblueBorderSecondary:`var(--lobe-geekblue-border-secondary)`,geekblueBorderHover:`var(--lobe-geekblue-border-hover)`,geekblueHover:`var(--lobe-geekblue-hover)`,geekblue:`var(--lobe-geekblue)`,geekblueActive:`var(--lobe-geekblue-active)`,geekblueTextHover:`var(--lobe-geekblue-text-hover)`,geekblueText:`var(--lobe-geekblue-text)`,geekblueTextActive:`var(--lobe-geekblue-text-active)`,gold1:`var(--lobe-gold-1)`,gold2:`var(--lobe-gold-2)`,gold3:`var(--lobe-gold-3)`,gold4:`var(--lobe-gold-4)`,gold5:`var(--lobe-gold-5)`,gold6:`var(--lobe-gold-6)`,gold7:`var(--lobe-gold-7)`,gold8:`var(--lobe-gold-8)`,gold9:`var(--lobe-gold-9)`,gold10:`var(--lobe-gold-10)`,gold11:`var(--lobe-gold-11)`,gold1A:`var(--lobe-gold-1-a)`,gold2A:`var(--lobe-gold-2-a)`,gold3A:`var(--lobe-gold-3-a)`,gold4A:`var(--lobe-gold-4-a)`,gold5A:`var(--lobe-gold-5-a)`,gold6A:`var(--lobe-gold-6-a)`,gold7A:`var(--lobe-gold-7-a)`,gold8A:`var(--lobe-gold-8-a)`,gold9A:`var(--lobe-gold-9-a)`,gold10A:`var(--lobe-gold-10-a)`,gold11A:`var(--lobe-gold-11-a)`,goldFill:`var(--lobe-gold-fill)`,goldFillSecondary:`var(--lobe-gold-fill-secondary)`,goldFillTertiary:`var(--lobe-gold-fill-tertiary)`,goldFillQuaternary:`var(--lobe-gold-fill-quaternary)`,goldBg:`var(--lobe-gold-bg)`,goldBgHover:`var(--lobe-gold-bg-hover)`,goldBorder:`var(--lobe-gold-border)`,goldBorderSecondary:`var(--lobe-gold-border-secondary)`,goldBorderHover:`var(--lobe-gold-border-hover)`,goldHover:`var(--lobe-gold-hover)`,gold:`var(--lobe-gold)`,goldActive:`var(--lobe-gold-active)`,goldTextHover:`var(--lobe-gold-text-hover)`,goldText:`var(--lobe-gold-text)`,goldTextActive:`var(--lobe-gold-text-active)`,gray1:`var(--lobe-gray-1)`,gray2:`var(--lobe-gray-2)`,gray3:`var(--lobe-gray-3)`,gray4:`var(--lobe-gray-4)`,gray5:`var(--lobe-gray-5)`,gray6:`var(--lobe-gray-6)`,gray7:`var(--lobe-gray-7)`,gray8:`var(--lobe-gray-8)`,gray9:`var(--lobe-gray-9)`,gray10:`var(--lobe-gray-10)`,gray11:`var(--lobe-gray-11)`,gray1A:`var(--lobe-gray-1-a)`,gray2A:`var(--lobe-gray-2-a)`,gray3A:`var(--lobe-gray-3-a)`,gray4A:`var(--lobe-gray-4-a)`,gray5A:`var(--lobe-gray-5-a)`,gray6A:`var(--lobe-gray-6-a)`,gray7A:`var(--lobe-gray-7-a)`,gray8A:`var(--lobe-gray-8-a)`,gray9A:`var(--lobe-gray-9-a)`,gray10A:`var(--lobe-gray-10-a)`,gray11A:`var(--lobe-gray-11-a)`,grayFill:`var(--lobe-gray-fill)`,grayFillSecondary:`var(--lobe-gray-fill-secondary)`,grayFillTertiary:`var(--lobe-gray-fill-tertiary)`,grayFillQuaternary:`var(--lobe-gray-fill-quaternary)`,grayBg:`var(--lobe-gray-bg)`,grayBgHover:`var(--lobe-gray-bg-hover)`,grayBorder:`var(--lobe-gray-border)`,grayBorderSecondary:`var(--lobe-gray-border-secondary)`,grayBorderHover:`var(--lobe-gray-border-hover)`,grayHover:`var(--lobe-gray-hover)`,gray:`var(--lobe-gray)`,grayActive:`var(--lobe-gray-active)`,grayTextHover:`var(--lobe-gray-text-hover)`,grayText:`var(--lobe-gray-text)`,grayTextActive:`var(--lobe-gray-text-active)`,green1:`var(--lobe-green-1)`,green2:`var(--lobe-green-2)`,green3:`var(--lobe-green-3)`,green4:`var(--lobe-green-4)`,green5:`var(--lobe-green-5)`,green6:`var(--lobe-green-6)`,green7:`var(--lobe-green-7)`,green8:`var(--lobe-green-8)`,green9:`var(--lobe-green-9)`,green10:`var(--lobe-green-10)`,green11:`var(--lobe-green-11)`,green1A:`var(--lobe-green-1-a)`,green2A:`var(--lobe-green-2-a)`,green3A:`var(--lobe-green-3-a)`,green4A:`var(--lobe-green-4-a)`,green5A:`var(--lobe-green-5-a)`,green6A:`var(--lobe-green-6-a)`,green7A:`var(--lobe-green-7-a)`,green8A:`var(--lobe-green-8-a)`,green9A:`var(--lobe-green-9-a)`,green10A:`var(--lobe-green-10-a)`,green11A:`var(--lobe-green-11-a)`,greenFill:`var(--lobe-green-fill)`,greenFillSecondary:`var(--lobe-green-fill-secondary)`,greenFillTertiary:`var(--lobe-green-fill-tertiary)`,greenFillQuaternary:`var(--lobe-green-fill-quaternary)`,greenBg:`var(--lobe-green-bg)`,greenBgHover:`var(--lobe-green-bg-hover)`,greenBorder:`var(--lobe-green-border)`,greenBorderSecondary:`var(--lobe-green-border-secondary)`,greenBorderHover:`var(--lobe-green-border-hover)`,greenHover:`var(--lobe-green-hover)`,green:`var(--lobe-green)`,greenActive:`var(--lobe-green-active)`,greenTextHover:`var(--lobe-green-text-hover)`,greenText:`var(--lobe-green-text)`,greenTextActive:`var(--lobe-green-text-active)`,lime1:`var(--lobe-lime-1)`,lime2:`var(--lobe-lime-2)`,lime3:`var(--lobe-lime-3)`,lime4:`var(--lobe-lime-4)`,lime5:`var(--lobe-lime-5)`,lime6:`var(--lobe-lime-6)`,lime7:`var(--lobe-lime-7)`,lime8:`var(--lobe-lime-8)`,lime9:`var(--lobe-lime-9)`,lime10:`var(--lobe-lime-10)`,lime11:`var(--lobe-lime-11)`,lime1A:`var(--lobe-lime-1-a)`,lime2A:`var(--lobe-lime-2-a)`,lime3A:`var(--lobe-lime-3-a)`,lime4A:`var(--lobe-lime-4-a)`,lime5A:`var(--lobe-lime-5-a)`,lime6A:`var(--lobe-lime-6-a)`,lime7A:`var(--lobe-lime-7-a)`,lime8A:`var(--lobe-lime-8-a)`,lime9A:`var(--lobe-lime-9-a)`,lime10A:`var(--lobe-lime-10-a)`,lime11A:`var(--lobe-lime-11-a)`,limeFill:`var(--lobe-lime-fill)`,limeFillSecondary:`var(--lobe-lime-fill-secondary)`,limeFillTertiary:`var(--lobe-lime-fill-tertiary)`,limeFillQuaternary:`var(--lobe-lime-fill-quaternary)`,limeBg:`var(--lobe-lime-bg)`,limeBgHover:`var(--lobe-lime-bg-hover)`,limeBorder:`var(--lobe-lime-border)`,limeBorderSecondary:`var(--lobe-lime-border-secondary)`,limeBorderHover:`var(--lobe-lime-border-hover)`,limeHover:`var(--lobe-lime-hover)`,lime:`var(--lobe-lime)`,limeActive:`var(--lobe-lime-active)`,limeTextHover:`var(--lobe-lime-text-hover)`,limeText:`var(--lobe-lime-text)`,limeTextActive:`var(--lobe-lime-text-active)`,magenta1:`var(--lobe-magenta-1)`,magenta2:`var(--lobe-magenta-2)`,magenta3:`var(--lobe-magenta-3)`,magenta4:`var(--lobe-magenta-4)`,magenta5:`var(--lobe-magenta-5)`,magenta6:`var(--lobe-magenta-6)`,magenta7:`var(--lobe-magenta-7)`,magenta8:`var(--lobe-magenta-8)`,magenta9:`var(--lobe-magenta-9)`,magenta10:`var(--lobe-magenta-10)`,magenta11:`var(--lobe-magenta-11)`,magenta1A:`var(--lobe-magenta-1-a)`,magenta2A:`var(--lobe-magenta-2-a)`,magenta3A:`var(--lobe-magenta-3-a)`,magenta4A:`var(--lobe-magenta-4-a)`,magenta5A:`var(--lobe-magenta-5-a)`,magenta6A:`var(--lobe-magenta-6-a)`,magenta7A:`var(--lobe-magenta-7-a)`,magenta8A:`var(--lobe-magenta-8-a)`,magenta9A:`var(--lobe-magenta-9-a)`,magenta10A:`var(--lobe-magenta-10-a)`,magenta11A:`var(--lobe-magenta-11-a)`,magentaFill:`var(--lobe-magenta-fill)`,magentaFillSecondary:`var(--lobe-magenta-fill-secondary)`,magentaFillTertiary:`var(--lobe-magenta-fill-tertiary)`,magentaFillQuaternary:`var(--lobe-magenta-fill-quaternary)`,magentaBg:`var(--lobe-magenta-bg)`,magentaBgHover:`var(--lobe-magenta-bg-hover)`,magentaBorder:`var(--lobe-magenta-border)`,magentaBorderSecondary:`var(--lobe-magenta-border-secondary)`,magentaBorderHover:`var(--lobe-magenta-border-hover)`,magentaHover:`var(--lobe-magenta-hover)`,magenta:`var(--lobe-magenta)`,magentaActive:`var(--lobe-magenta-active)`,magentaTextHover:`var(--lobe-magenta-text-hover)`,magentaText:`var(--lobe-magenta-text)`,magentaTextActive:`var(--lobe-magenta-text-active)`,orange1:`var(--lobe-orange-1)`,orange2:`var(--lobe-orange-2)`,orange3:`var(--lobe-orange-3)`,orange4:`var(--lobe-orange-4)`,orange5:`var(--lobe-orange-5)`,orange6:`var(--lobe-orange-6)`,orange7:`var(--lobe-orange-7)`,orange8:`var(--lobe-orange-8)`,orange9:`var(--lobe-orange-9)`,orange10:`var(--lobe-orange-10)`,orange11:`var(--lobe-orange-11)`,orange1A:`var(--lobe-orange-1-a)`,orange2A:`var(--lobe-orange-2-a)`,orange3A:`var(--lobe-orange-3-a)`,orange4A:`var(--lobe-orange-4-a)`,orange5A:`var(--lobe-orange-5-a)`,orange6A:`var(--lobe-orange-6-a)`,orange7A:`var(--lobe-orange-7-a)`,orange8A:`var(--lobe-orange-8-a)`,orange9A:`var(--lobe-orange-9-a)`,orange10A:`var(--lobe-orange-10-a)`,orange11A:`var(--lobe-orange-11-a)`,orangeFill:`var(--lobe-orange-fill)`,orangeFillSecondary:`var(--lobe-orange-fill-secondary)`,orangeFillTertiary:`var(--lobe-orange-fill-tertiary)`,orangeFillQuaternary:`var(--lobe-orange-fill-quaternary)`,orangeBg:`var(--lobe-orange-bg)`,orangeBgHover:`var(--lobe-orange-bg-hover)`,orangeBorder:`var(--lobe-orange-border)`,orangeBorderSecondary:`var(--lobe-orange-border-secondary)`,orangeBorderHover:`var(--lobe-orange-border-hover)`,orangeHover:`var(--lobe-orange-hover)`,orange:`var(--lobe-orange)`,orangeActive:`var(--lobe-orange-active)`,orangeTextHover:`var(--lobe-orange-text-hover)`,orangeText:`var(--lobe-orange-text)`,orangeTextActive:`var(--lobe-orange-text-active)`,primary1:`var(--lobe-primary-1)`,primary2:`var(--lobe-primary-2)`,primary3:`var(--lobe-primary-3)`,primary4:`var(--lobe-primary-4)`,primary5:`var(--lobe-primary-5)`,primary6:`var(--lobe-primary-6)`,primary7:`var(--lobe-primary-7)`,primary8:`var(--lobe-primary-8)`,primary9:`var(--lobe-primary-9)`,primary10:`var(--lobe-primary-10)`,primary11:`var(--lobe-primary-11)`,primary1A:`var(--lobe-primary-1-a)`,primary2A:`var(--lobe-primary-2-a)`,primary3A:`var(--lobe-primary-3-a)`,primary4A:`var(--lobe-primary-4-a)`,primary5A:`var(--lobe-primary-5-a)`,primary6A:`var(--lobe-primary-6-a)`,primary7A:`var(--lobe-primary-7-a)`,primary8A:`var(--lobe-primary-8-a)`,primary9A:`var(--lobe-primary-9-a)`,primary10A:`var(--lobe-primary-10-a)`,primary11A:`var(--lobe-primary-11-a)`,primaryFill:`var(--lobe-primary-fill)`,primaryFillSecondary:`var(--lobe-primary-fill-secondary)`,primaryFillTertiary:`var(--lobe-primary-fill-tertiary)`,primaryFillQuaternary:`var(--lobe-primary-fill-quaternary)`,primaryBg:`var(--lobe-primary-bg)`,primaryBgHover:`var(--lobe-primary-bg-hover)`,primaryBorder:`var(--lobe-primary-border)`,primaryBorderSecondary:`var(--lobe-primary-border-secondary)`,primaryBorderHover:`var(--lobe-primary-border-hover)`,primaryHover:`var(--lobe-primary-hover)`,primary:`var(--lobe-primary)`,primaryActive:`var(--lobe-primary-active)`,primaryTextHover:`var(--lobe-primary-text-hover)`,primaryText:`var(--lobe-primary-text)`,primaryTextActive:`var(--lobe-primary-text-active)`,purple1:`var(--lobe-purple-1)`,purple2:`var(--lobe-purple-2)`,purple3:`var(--lobe-purple-3)`,purple4:`var(--lobe-purple-4)`,purple5:`var(--lobe-purple-5)`,purple6:`var(--lobe-purple-6)`,purple7:`var(--lobe-purple-7)`,purple8:`var(--lobe-purple-8)`,purple9:`var(--lobe-purple-9)`,purple10:`var(--lobe-purple-10)`,purple11:`var(--lobe-purple-11)`,purple1A:`var(--lobe-purple-1-a)`,purple2A:`var(--lobe-purple-2-a)`,purple3A:`var(--lobe-purple-3-a)`,purple4A:`var(--lobe-purple-4-a)`,purple5A:`var(--lobe-purple-5-a)`,purple6A:`var(--lobe-purple-6-a)`,purple7A:`var(--lobe-purple-7-a)`,purple8A:`var(--lobe-purple-8-a)`,purple9A:`var(--lobe-purple-9-a)`,purple10A:`var(--lobe-purple-10-a)`,purple11A:`var(--lobe-purple-11-a)`,purpleFill:`var(--lobe-purple-fill)`,purpleFillSecondary:`var(--lobe-purple-fill-secondary)`,purpleFillTertiary:`var(--lobe-purple-fill-tertiary)`,purpleFillQuaternary:`var(--lobe-purple-fill-quaternary)`,purpleBg:`var(--lobe-purple-bg)`,purpleBgHover:`var(--lobe-purple-bg-hover)`,purpleBorder:`var(--lobe-purple-border)`,purpleBorderSecondary:`var(--lobe-purple-border-secondary)`,purpleBorderHover:`var(--lobe-purple-border-hover)`,purpleHover:`var(--lobe-purple-hover)`,purple:`var(--lobe-purple)`,purpleActive:`var(--lobe-purple-active)`,purpleTextHover:`var(--lobe-purple-text-hover)`,purpleText:`var(--lobe-purple-text)`,purpleTextActive:`var(--lobe-purple-text-active)`,red1:`var(--lobe-red-1)`,red2:`var(--lobe-red-2)`,red3:`var(--lobe-red-3)`,red4:`var(--lobe-red-4)`,red5:`var(--lobe-red-5)`,red6:`var(--lobe-red-6)`,red7:`var(--lobe-red-7)`,red8:`var(--lobe-red-8)`,red9:`var(--lobe-red-9)`,red10:`var(--lobe-red-10)`,red11:`var(--lobe-red-11)`,red1A:`var(--lobe-red-1-a)`,red2A:`var(--lobe-red-2-a)`,red3A:`var(--lobe-red-3-a)`,red4A:`var(--lobe-red-4-a)`,red5A:`var(--lobe-red-5-a)`,red6A:`var(--lobe-red-6-a)`,red7A:`var(--lobe-red-7-a)`,red8A:`var(--lobe-red-8-a)`,red9A:`var(--lobe-red-9-a)`,red10A:`var(--lobe-red-10-a)`,red11A:`var(--lobe-red-11-a)`,redFill:`var(--lobe-red-fill)`,redFillSecondary:`var(--lobe-red-fill-secondary)`,redFillTertiary:`var(--lobe-red-fill-tertiary)`,redFillQuaternary:`var(--lobe-red-fill-quaternary)`,redBg:`var(--lobe-red-bg)`,redBgHover:`var(--lobe-red-bg-hover)`,redBorder:`var(--lobe-red-border)`,redBorderSecondary:`var(--lobe-red-border-secondary)`,redBorderHover:`var(--lobe-red-border-hover)`,redHover:`var(--lobe-red-hover)`,red:`var(--lobe-red)`,redActive:`var(--lobe-red-active)`,redTextHover:`var(--lobe-red-text-hover)`,redText:`var(--lobe-red-text)`,redTextActive:`var(--lobe-red-text-active)`,volcano1:`var(--lobe-volcano-1)`,volcano2:`var(--lobe-volcano-2)`,volcano3:`var(--lobe-volcano-3)`,volcano4:`var(--lobe-volcano-4)`,volcano5:`var(--lobe-volcano-5)`,volcano6:`var(--lobe-volcano-6)`,volcano7:`var(--lobe-volcano-7)`,volcano8:`var(--lobe-volcano-8)`,volcano9:`var(--lobe-volcano-9)`,volcano10:`var(--lobe-volcano-10)`,volcano11:`var(--lobe-volcano-11)`,volcano1A:`var(--lobe-volcano-1-a)`,volcano2A:`var(--lobe-volcano-2-a)`,volcano3A:`var(--lobe-volcano-3-a)`,volcano4A:`var(--lobe-volcano-4-a)`,volcano5A:`var(--lobe-volcano-5-a)`,volcano6A:`var(--lobe-volcano-6-a)`,volcano7A:`var(--lobe-volcano-7-a)`,volcano8A:`var(--lobe-volcano-8-a)`,volcano9A:`var(--lobe-volcano-9-a)`,volcano10A:`var(--lobe-volcano-10-a)`,volcano11A:`var(--lobe-volcano-11-a)`,volcanoFill:`var(--lobe-volcano-fill)`,volcanoFillSecondary:`var(--lobe-volcano-fill-secondary)`,volcanoFillTertiary:`var(--lobe-volcano-fill-tertiary)`,volcanoFillQuaternary:`var(--lobe-volcano-fill-quaternary)`,volcanoBg:`var(--lobe-volcano-bg)`,volcanoBgHover:`var(--lobe-volcano-bg-hover)`,volcanoBorder:`var(--lobe-volcano-border)`,volcanoBorderSecondary:`var(--lobe-volcano-border-secondary)`,volcanoBorderHover:`var(--lobe-volcano-border-hover)`,volcanoHover:`var(--lobe-volcano-hover)`,volcano:`var(--lobe-volcano)`,volcanoActive:`var(--lobe-volcano-active)`,volcanoTextHover:`var(--lobe-volcano-text-hover)`,volcanoText:`var(--lobe-volcano-text)`,volcanoTextActive:`var(--lobe-volcano-text-active)`,yellow1:`var(--lobe-yellow-1)`,yellow2:`var(--lobe-yellow-2)`,yellow3:`var(--lobe-yellow-3)`,yellow4:`var(--lobe-yellow-4)`,yellow5:`var(--lobe-yellow-5)`,yellow6:`var(--lobe-yellow-6)`,yellow7:`var(--lobe-yellow-7)`,yellow8:`var(--lobe-yellow-8)`,yellow9:`var(--lobe-yellow-9)`,yellow10:`var(--lobe-yellow-10)`,yellow11:`var(--lobe-yellow-11)`,yellow1A:`var(--lobe-yellow-1-a)`,yellow2A:`var(--lobe-yellow-2-a)`,yellow3A:`var(--lobe-yellow-3-a)`,yellow4A:`var(--lobe-yellow-4-a)`,yellow5A:`var(--lobe-yellow-5-a)`,yellow6A:`var(--lobe-yellow-6-a)`,yellow7A:`var(--lobe-yellow-7-a)`,yellow8A:`var(--lobe-yellow-8-a)`,yellow9A:`var(--lobe-yellow-9-a)`,yellow10A:`var(--lobe-yellow-10-a)`,yellow11A:`var(--lobe-yellow-11-a)`,yellowFill:`var(--lobe-yellow-fill)`,yellowFillSecondary:`var(--lobe-yellow-fill-secondary)`,yellowFillTertiary:`var(--lobe-yellow-fill-tertiary)`,yellowFillQuaternary:`var(--lobe-yellow-fill-quaternary)`,yellowBg:`var(--lobe-yellow-bg)`,yellowBgHover:`var(--lobe-yellow-bg-hover)`,yellowBorder:`var(--lobe-yellow-border)`,yellowBorderSecondary:`var(--lobe-yellow-border-secondary)`,yellowBorderHover:`var(--lobe-yellow-border-hover)`,yellowHover:`var(--lobe-yellow-hover)`,yellow:`var(--lobe-yellow)`,yellowActive:`var(--lobe-yellow-active)`,yellowTextHover:`var(--lobe-yellow-text-hover)`,yellowText:`var(--lobe-yellow-text)`,yellowTextActive:`var(--lobe-yellow-text-active)`,boxShadow:`var(--lobe-box-shadow)`,boxShadowSecondary:`var(--lobe-box-shadow-secondary)`,boxShadowTertiary:`var(--lobe-box-shadow-tertiary)`,colorErrorAffix:`var(--lobe-color-error-affix)`,colorHighlight:`var(--lobe-color-highlight)`,colorLink:`var(--lobe-color-link)`,colorLinkActive:`var(--lobe-color-link-active)`,colorLinkHover:`var(--lobe-color-link-hover)`,colorWarningAffix:`var(--lobe-color-warning-affix)`,colorPrimaryFill:`var(--lobe-color-primary-fill)`,colorPrimaryFillSecondary:`var(--lobe-color-primary-fill-secondary)`,colorPrimaryFillTertiary:`var(--lobe-color-primary-fill-tertiary)`,colorPrimaryFillQuaternary:`var(--lobe-color-primary-fill-quaternary)`,colorPrimaryBg:`var(--lobe-color-primary-bg)`,colorPrimaryBgHover:`var(--lobe-color-primary-bg-hover)`,colorPrimaryBorder:`var(--lobe-color-primary-border)`,colorPrimaryBorderHover:`var(--lobe-color-primary-border-hover)`,colorPrimaryHover:`var(--lobe-color-primary-hover)`,colorPrimary:`var(--lobe-color-primary)`,colorPrimaryActive:`var(--lobe-color-primary-active)`,colorPrimaryTextHover:`var(--lobe-color-primary-text-hover)`,colorPrimaryText:`var(--lobe-color-primary-text)`,colorPrimaryTextActive:`var(--lobe-color-primary-text-active)`,controlItemBgActive:`var(--lobe-control-item-bg-active)`,controlItemBgActiveHover:`var(--lobe-control-item-bg-active-hover)`,colorBgContainer:`var(--lobe-color-bg-container)`,colorBgElevated:`var(--lobe-color-bg-elevated)`,colorBgLayout:`var(--lobe-color-bg-layout)`,colorBgMask:`var(--lobe-color-bg-mask)`,colorBgSpotlight:`var(--lobe-color-bg-spotlight)`,colorBorder:`var(--lobe-color-border)`,colorBorderSecondary:`var(--lobe-color-border-secondary)`,colorFill:`var(--lobe-color-fill)`,colorFillQuaternary:`var(--lobe-color-fill-quaternary)`,colorFillSecondary:`var(--lobe-color-fill-secondary)`,colorFillTertiary:`var(--lobe-color-fill-tertiary)`,colorText:`var(--lobe-color-text)`,colorTextQuaternary:`var(--lobe-color-text-quaternary)`,colorTextSecondary:`var(--lobe-color-text-secondary)`,colorTextTertiary:`var(--lobe-color-text-tertiary)`,colorBgContainerDisabled:`var(--lobe-color-bg-container-disabled)`,colorBgContainerSecondary:`var(--lobe-color-bg-container-secondary)`,colorBgTextActive:`var(--lobe-color-bg-text-active)`,colorBgTextHover:`var(--lobe-color-bg-text-hover)`,colorBorderBg:`var(--lobe-color-border-bg)`,colorErrorOutline:`var(--lobe-color-error-outline)`,colorFillAlter:`var(--lobe-color-fill-alter)`,colorFillContent:`var(--lobe-color-fill-content)`,colorFillContentHover:`var(--lobe-color-fill-content-hover)`,colorIcon:`var(--lobe-color-icon)`,colorIconHover:`var(--lobe-color-icon-hover)`,colorSplit:`var(--lobe-color-split)`,colorTextDescription:`var(--lobe-color-text-description)`,colorTextDisabled:`var(--lobe-color-text-disabled)`,colorTextHeading:`var(--lobe-color-text-heading)`,colorTextLabel:`var(--lobe-color-text-label)`,colorTextPlaceholder:`var(--lobe-color-text-placeholder)`,colorWarningOutline:`var(--lobe-color-warning-outline)`,controlItemBgActiveDisabled:`var(--lobe-control-item-bg-active-disabled)`,controlItemBgHover:`var(--lobe-control-item-bg-hover)`,controlTmpOutline:`var(--lobe-control-tmp-outline)`},Q={base:{kVAM5u:`lbqnr5ac`,ksu8eU:`lb1y0btm7`,kMzoRj:`lbmkeg23`,kOIVth:`lb17d4w8g`,kybGjl:`lb1hl2dhg`,kmkexE:`lb15xd0no`,kGNEyG:`lb6s0dn4`,kB7OPa:`lb9f619`,kkrTdU:`lb1ypdohk lb126qsmr`,k1xSpc:`lb3nfvp2`,k63SB2:`lbk50ysn`,kjj79g:`lbl56j7k`,kLWn49:`lbo5v014`,kSiTet:`lby3kg0r`,kfzvcC:`lb1cp6yjb`,kVAEAm:`lb1n2onr6`,khDVqt:`lbuxw1ft`,$$css:!0},sizeSmall:{"--button-padding-inline":`lb1xvjv2a`,kaIpWk:`lb1vihcfj`,kg3NbH:`lb1v42klx`,kGuDYH:`lbfifm61`,kZKoxP:`lbxk0z11`,$$css:!0},sizeMiddle:{"--button-padding-inline":`lb1l3x1nm`,kaIpWk:`lb1vihcfj`,kg3NbH:`lb1v42klx`,kGuDYH:`lb4z9k3i`,kZKoxP:`lb10w6t97`,$$css:!0},sizeLarge:{"--button-padding-inline":`lb1r8q1i9`,kaIpWk:`lb1sbi92r`,kg3NbH:`lb1v42klx`,kGuDYH:`lbif65rj`,kZKoxP:`lb1vqgdyp`,$$css:!0},outdentStart:{keTefX:`lbugkenv`,$$css:!0},outdentEnd:{k71WvV:`lb8o6c4q`,$$css:!0},shapeCircle:{kaIpWk:`lb16rqkct`,kg3NbH:`lbnjsko4`,$$css:!0},shapeRound:{kaIpWk:`lb1e6avla`,$$css:!0},block:{kzqmXN:`lbh8yej3`,$$css:!0},iconEnd:{kXwgrk:`lb15zctf7`,$$css:!0},iconOnlySmall:{"--button-padding-inline":`lb1wdnxgk`,kg3NbH:`lbnjsko4`,kzqmXN:`lbvy4d1p`,$$css:!0},iconOnlyMiddle:{"--button-padding-inline":`lb1wdnxgk`,kg3NbH:`lbnjsko4`,kzqmXN:`lb1td3qas`,$$css:!0},iconOnlyLarge:{"--button-padding-inline":`lb1wdnxgk`,kg3NbH:`lbnjsko4`,kzqmXN:`lb100vrsf`,$$css:!0},iconBox:{kGNEyG:`lb6s0dn4`,k1xSpc:`lb3nfvp2`,kjj79g:`lbl56j7k`,$$css:!0},spinnerSlot:{kVQacm:`lb1rea2x4`,kmkexE:`lbp7890b`,kmuXW:`lb2lah0s`,k71WvV:`lb1ws5yxj`,kVAEAm:`lb1n2onr6`,kZKoxP:`lb1kpxq89`,kzqmXN:`lbnalus7`,$$css:!0},spinnerSlotEnd:{k71WvV:`lb14z9mp`,keTefX:`lbw01apr`,$$css:!0},spinnerSlotShow:{k71WvV:`lb14z9mp`,keTefX:`lb1lziwak`,kzqmXN:`lbsmyaan`,$$css:!0},spinnerVisual:{kmkexE:`lb1ja9v0h`,k87sOh:`lb13vifvy`,kLqNvP:`lb1o0tod`,kSiTet:`lbg01cxk`,kVAEAm:`lb10l6tqk`,k3aq6I:`lb1a33avv`,k3nNDw:`lb1g0ag68`,kZKoxP:`lb1kpxq89`,kzqmXN:`lbsmyaan`,$$css:!0},spinnerVisualShow:{kSiTet:`lb1hc1fzr`,k3aq6I:`lb3oybdh`,$$css:!0},variantDefault:{kVAM5u:`lbqnr5ac lbv4eugq`,kWkggS:`lb6yijhg`,kKwaWg:`lb1hdlj1n lbx7ggy6`,kMwMTN:`lb66ogz0`,$$css:!0},variantPrimary:{kVAM5u:`lb13w8tc6 lb1jy2tmp lbiuvf2s lbba5owj`,kWkggS:`lb65u3hq lb1hsafae lb1n16ko lbep1hoi`,kMwMTN:`lb15g0kca`,$$css:!0},variantDashed:{kVAM5u:`lbqnr5ac lbv4eugq`,ksu8eU:`lbbsl7fq`,kWkggS:`lb6yijhg`,kKwaWg:`lb1hdlj1n lbx7ggy6`,kMwMTN:`lb66ogz0`,$$css:!0},variantFill:{kVAM5u:`lb9r1u3d`,kWkggS:`lb1qlulce lbaljia1 lb5d67gy`,kMwMTN:`lb66ogz0`,$$css:!0},variantText:{kVAM5u:`lb9r1u3d`,kWkggS:`lbjbqb8w lb1f5ares`,kMwMTN:`lb66ogz0`,$$css:!0},variantLink:{kVAM5u:`lb9r1u3d`,kg3NbH:`lbnjsko4`,kWkggS:`lbjbqb8w`,kMwMTN:`lb16owwnm lbvdzly1`,$$css:!0},dangerOutlined:{kVAM5u:`lb1mpi7gh lbs8cwth`,kWkggS:`lb1saschm lb6yijhg lbzxaxr6`,kKwaWg:null,kMwMTN:`lb12ap7uz`,$$css:!0},dangerSolid:{kVAM5u:`lb1dvy257 lb11fhi00 lb2949mz lb1e5ynfq`,kWkggS:`lb15l4kc2 lbixdnzb lb1mog8ep lb1gj3nph`,kMwMTN:`lb15g0kca`,$$css:!0},dangerFill:{kVAM5u:`lb9r1u3d`,kWkggS:`lbrq8w1b lb1f2tfg0 lb1lf6bdk`,kMwMTN:`lb12ap7uz`,$$css:!0},dangerText:{kWkggS:`lb14kxky9 lbjbqb8w lb3lzv3l`,kMwMTN:`lb12ap7uz`,$$css:!0},dangerInline:{kMwMTN:`lb12ap7uz lbcu7z5f`,$$css:!0},ghostDefault:{kVAM5u:`lb9r1u3d`,kWkggS:`lb1qlulce lbjbqb8w lb5d67gy`,kMwMTN:`lb66ogz0`,$$css:!0},ghostPrimary:{kVAM5u:`lb9r1u3d`,kWkggS:`lb1qlulce lbjbqb8w lb5d67gy`,kMwMTN:`lbjwxqu3 lb16owwnm lbpro1qx`,$$css:!0},ghostDanger:{kVAM5u:`lb9r1u3d`,kWkggS:`lb14kxky9 lbjbqb8w lb3lzv3l`,kMwMTN:`lb12ap7uz`,$$css:!0},spinner:{kVAM5u:`lb181nr7w`,kaIpWk:`lb16rqkct`,ksu8eU:`lb1y0btm7`,kMzoRj:`lbvndefy`,k44tkh:`lbdz8niu`,ko0y90:`lba4qsjk`,kKVMdj:`lb1v0ides`,kyAemX:`lb1esw782`,kLZC3w:`lb1v8p93f`,kB7OPa:`lb9f619`,k1xSpc:`lb1rg5ohu`,kmuXW:`lb2lah0s`,kZKoxP:`lb1kpxq89`,kzqmXN:`lbsmyaan`,$$css:!0}};({className:`lbqnr5ac lb1y0btm7 lbmkeg23 lb17d4w8g lb1hl2dhg lb15xd0no lb6s0dn4 lb9f619 lb1ypdohk lb126qsmr lb3nfvp2 lbk50ysn lbl56j7k lbo5v014 lby3kg0r lb1cp6yjb lb1n2onr6 lbuxw1ft`}).className,{className:`lb1xvjv2a lb1vihcfj lb1v42klx lbfifm61 lbxk0z11`}.className,{className:`lb1l3x1nm lb1vihcfj lb1v42klx lb4z9k3i lb10w6t97`}.className,{className:`lb1r8q1i9 lb1sbi92r lb1v42klx lbif65rj lb1vqgdyp`}.className,{className:`lbugkenv`}.className,{className:`lb8o6c4q`}.className,{className:`lb16rqkct lbnjsko4`}.className,{className:`lb1e6avla`}.className,{className:`lbh8yej3`}.className,{className:`lb15zctf7`}.className,{className:`lb1wdnxgk lbnjsko4 lbvy4d1p`}.className,{className:`lb1wdnxgk lbnjsko4 lb1td3qas`}.className,{className:`lb1wdnxgk lbnjsko4 lb100vrsf`}.className,{className:`lb6s0dn4 lb3nfvp2 lbl56j7k`}.className,{className:`lb1rea2x4 lbp7890b lb2lah0s lb1ws5yxj lb1n2onr6 lb1kpxq89 lbnalus7`}.className,{className:`lb14z9mp lbw01apr`}.className,{className:`lb14z9mp lb1lziwak lbsmyaan`}.className,{className:`lb1ja9v0h lb13vifvy lb1o0tod lbg01cxk lb10l6tqk lb1a33avv lb1g0ag68 lb1kpxq89 lbsmyaan`}.className,{className:`lb1hc1fzr lb3oybdh`}.className,{className:`lbqnr5ac lbv4eugq lb6yijhg lb1hdlj1n lbx7ggy6 lb66ogz0`}.className,{className:`lb13w8tc6 lb1jy2tmp lbiuvf2s lbba5owj lb65u3hq lb1hsafae lb1n16ko lbep1hoi lb15g0kca`}.className,{className:`lbqnr5ac lbv4eugq lbbsl7fq lb6yijhg lb1hdlj1n lbx7ggy6 lb66ogz0`}.className,{className:`lb9r1u3d lb1qlulce lbaljia1 lb5d67gy lb66ogz0`}.className,{className:`lb9r1u3d lbjbqb8w lb1f5ares lb66ogz0`}.className,{className:`lb9r1u3d lbnjsko4 lbjbqb8w lb16owwnm lbvdzly1`}.className,{className:`lb1mpi7gh lbs8cwth lb1saschm lb6yijhg lbzxaxr6 lb12ap7uz`}.className,{className:`lb1dvy257 lb11fhi00 lb2949mz lb1e5ynfq lb15l4kc2 lbixdnzb lb1mog8ep lb1gj3nph lb15g0kca`}.className,{className:`lb9r1u3d lbrq8w1b lb1f2tfg0 lb1lf6bdk lb12ap7uz`}.className,{className:`lb14kxky9 lbjbqb8w lb3lzv3l lb12ap7uz`}.className,{className:`lb12ap7uz lbcu7z5f`}.className,{className:`lb9r1u3d lb1qlulce lbjbqb8w lb5d67gy lb66ogz0`}.className,{className:`lb9r1u3d lb1qlulce lbjbqb8w lb5d67gy lbjwxqu3 lb16owwnm lbpro1qx`}.className,{className:`lb9r1u3d lb14kxky9 lbjbqb8w lb3lzv3l lb12ap7uz`}.className,{className:`lb181nr7w lb16rqkct lb1y0btm7 lbvndefy lbdz8niu lba4qsjk lb1v0ides lb1esw782 lb1v8p93f lb9f619 lb1rg5ohu lb2lah0s lb1kpxq89 lbsmyaan`}.className;var ji=e=>e==null?null:(0,X.isValidElement)(e)||typeof e==`string`||typeof e==`number`?e:(0,Z.jsx)(ve,{icon:e,size:`small`}),Mi=e=>e===`small`?Q.sizeSmall:e===`large`?Q.sizeLarge:Q.sizeMiddle,Ni=e=>e===`small`?Q.iconOnlySmall:e===`large`?Q.iconOnlyLarge:Q.iconOnlyMiddle,Pi=({danger:e,ghost:t,type:n})=>{if(t&&n!==`text`&&n!==`link`)return e?Q.ghostDanger:n===`primary`?Q.ghostPrimary:Q.ghostDefault;switch(n){case`primary`:return e?Q.dangerSolid:Q.variantPrimary;case`dashed`:return e?[Q.variantDashed,Q.dangerOutlined]:Q.variantDashed;case`fill`:return e?Q.dangerFill:Q.variantFill;case`text`:return e?[Q.variantText,Q.dangerText]:Q.variantText;case`link`:return e?[Q.variantLink,Q.dangerInline]:Q.variantLink;default:return e?[Q.variantDefault,Q.dangerOutlined]:Q.variantDefault}},Fi={scale:.98},Ii={damping:26,mass:.6,stiffness:600,type:`spring`},Li=({block:e,children:t,className:n,classNames:r,danger:i=!1,disabled:a,outdent:o,ghost:l=!1,href:u,htmlType:d=`button`,icon:f,iconPosition:p=`start`,loading:m,onClick:h,ref:g,shape:_=`default`,size:v=`middle`,stableData:y,styles:b,target:x,type:S=`default`,xstyle:C,...w})=>{let T=vr(),E=(0,X.useRef)(null),D=(0,X.useRef)(null),[O,k]=(0,X.useState)(!!m);m&&!O&&k(!0),(0,X.useLayoutEffect)(()=>{if(m||!O)return;let e=[...E.current?.getAnimations?.()??[],...D.current?.getAnimations?.()??[]].filter(e=>`transitionProperty`in e),t=!1;return Promise.allSettled(e.map(e=>e.finished)).then(()=>{t||k(!1)}),()=>{t=!0}},[m,O]);let A=a||m,j=Mi(v),M=Pi({danger:i,ghost:l,type:S}),N=_===`circle`?Q.shapeCircle:_===`round`?Q.shapeRound:void 0,P=(t==null||t===!1||t===``)&&(m||f)?Ni(v):void 0,F=S===`text`&&o?o===`end`?Q.outdentEnd:Q.outdentStart:void 0,I=kt([Q.base,xe.info,j,M,N,e&&Q.block,p===`end`&&Q.iconEnd,P,F,C],c(ki(),n)).className,L=y??s({block:e,danger:i,ghost:l,loading:m,shape:_,size:v,type:S}),ee=(0,Z.jsx)(`span`,{"aria-hidden":!m,ref:E,...kt([Q.iconBox,Q.spinnerSlot,p===`end`&&Q.spinnerSlotEnd,m&&Q.spinnerSlotShow],c(ki(`spinner`),r?.icon),b?.icon),children:(0,Z.jsx)(`span`,{ref:D,...rt(Q.spinnerVisual,m&&Q.spinnerVisualShow),children:(m||O)&&(0,Z.jsx)(`span`,{...rt(Q.spinner)})})}),te=f&&!m?(0,Z.jsx)(`span`,{...kt(Q.iconBox,c(ki(`icon`),r?.icon),b?.icon),children:ji(f)}):null,R=(0,Z.jsxs)(Z.Fragment,{children:[ee,te,t]}),z=A?{}:{transition:Ii,whileTap:Fi};if(u!==void 0){let e=e=>{A?e.preventDefault():h?.(e)};return(0,Z.jsx)(T.a,{"aria-busy":m||void 0,"aria-disabled":A||void 0,href:a?void 0:u,target:x,...L,...w,className:I,ref:g,onClick:e,...z,children:R})}let B=e=>{A?e.preventDefault():h?.(e)};return(0,Z.jsx)(T.button,{type:d,...L,...w,"aria-busy":m||void 0,"aria-disabled":A||void 0,className:I,disabled:a,ref:g,onClick:B,...z,children:R})};Li.displayName=`BaseButton`;var Ri=Li;function zi(e,t){return t!=null&&!mt(t)?0:typeof e==`function`?e():e}function Bi(e,t,n){let r=zi(e,n);return typeof r==`number`?r:r?.[t]}function Vi(e){return typeof e==`function`?e():e}function Hi(e,t){return t||e===`click`||e===`mousedown`}function Ui(e){return e?.includes(`mouse`)&&e!==`mousedown`}function Wi(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:i=!0,ignoreMouse:a=!1,stickIfOpen:o=!0,touchOpenDelay:s=0,reason:c=ee}=t,l=e.context.dataRef,u=X.useRef(void 0),d=We(),p=U(),m=X.useMemo(()=>{function t(t,n,r,i){let a=Y(c,n,r);t&&i===`touch`&&s>0?p.start(s,()=>{e.setOpen(!0,a)}):e.setOpen(t,a)}function n(t,n,r){let a=l.current.openEvent,s=e.select(`domReferenceElement`)!==n;return t&&s||!t||!i?!0:a&&(typeof o==`function`?o():o)?!r(a.type):!1}return{onPointerDown(e){u.current=mt(e.pointerType,!0)&&Ge(e.nativeEvent)?`virtual`:e.pointerType},onMouseDown(i){let o=u.current,s=i.nativeEvent,c=e.select(`open`);if(i.button!==0||r===`click`||mt(o,!0)&&a)return;let l=n(c,i.currentTarget,e=>e===`click`||e===`mousedown`),f=Ue(s),p=I(f);if(p||o===`virtual`){t(l,s,p?f:i.currentTarget,o);return}let m=i.currentTarget;d.request(()=>{t(l,s,m,o)})},onClick(i){if(r===`mousedown-only`)return;let o=u.current;r===`mousedown`&&o?u.current=void 0:mt(o,!0)&&a||t(n(e.select(`open`),i.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),i.nativeEvent,i.currentTarget,o)},onKeyDown(){u.current=void 0}}},[l,r,a,c,e,o,i,d,p,s]);return X.useMemo(()=>n?{reference:m}:f,[n,m])}var Gi=y();function Ki(e){let t=X.useCallback(t=>e===void 0?Je:e.subscribeStore(t),[e]),n=X.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,Gi.useSyncExternalStore)(t,n,()=>e?.serverStore)}var qi=Gt&&Qe;function Ji(e,t={}){let{enabled:n=!0,delay:r}=t,{events:i,dataRef:a}=e.context,o=X.useRef(!1),s=X.useRef(null),c=X.useRef(!0),l=U();X.useEffect(()=>{let t=e.select(`domReferenceElement`);if(!n)return;let r=Dt(t);function i(){let t=e.select(`domReferenceElement`);!e.select(`open`)&&Ae(t)&&t===Re(L(t))&&(o.current=!0,s.current=t)}function a(){c.current=!0}function l(){c.current=!1}return H(W(r,`blur`,i),qi&&W(r,`keydown`,a,!0),qi&&W(r,`pointerdown`,l,!0))},[e,n]),X.useEffect(()=>{if(!n)return;function t(t){if(t.reason===`trigger-press`||t.reason===`escape-key`){let t=e.select(`domReferenceElement`);G(t)&&(s.current=t,o.current=!0)}}return i.on(`openchange`,t),()=>{i.off(`openchange`,t)}},[i,n,e]);let u=X.useMemo(()=>{function t(){o.current=!1,s.current=null}return{onMouseLeave(){t()},onFocus(n){let i=n.currentTarget;if(o.current){if(s.current===i)return;t()}let a=Ue(n.nativeEvent);if(G(a)){if(qi&&!n.relatedTarget){if(!c.current&&!I(a))return}else if(!we(a))return}let u=v(n.relatedTarget,e.context.triggerElements),{nativeEvent:d,currentTarget:f}=n;e.select(`open`)&&u||!r?e.setOpen(!0,Y(de,d,f)):l.start(r,()=>{o.current||e.setOpen(!0,Y(de,d,f))})},onBlur(n){t();let r=n.relatedTarget,i=n.nativeEvent,o=G(r)&&r.hasAttribute(Mt(`focus-guard`))&&r.getAttribute(`data-type`)===`outside`;l.start(0,()=>{let t=e.select(`domReferenceElement`),n=Re(L(t));!r&&n===t||q(a.current.floatingContext?.refs.floating.current,n)||q(t,n)||o||v(r??n,e.context.triggerElements)||e.setOpen(!1,Y(de,i))})}}},[a,r,e,l]);return X.useMemo(()=>n?{reference:u,trigger:u}:{},[n,u])}var Yi=class e{pointerType=void 0;interactedInside=!1;handler=void 0;blockMouseMove=!0;performedPointerEventsMutation=!1;pointerEventsScopeElement=null;pointerEventsReferenceElement=null;pointerEventsFloatingElement=null;restTimeoutPending=!1;openChangeTimeout=new st;restTimeout=new st;handleCloseOptions=void 0;static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Xi=new WeakMap;function Zi(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Xi.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),Xi.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Qi(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=Xi.get(n);a&&a!==e&&Zi(a),Zi(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,Xi.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function $i(e){let t=e.context.dataRef.current,n=vt(()=>t.hoverInteractionState??Yi.create()).current;return t.hoverInteractionState||=n,ht(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function ea(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=e.useState(`open`),o=e.useState(`floatingElement`),s=e.useState(`domReferenceElement`),{dataRef:c}=e.context,l=B(),u=j(),d=$i(e),f=U(),p=J(()=>Hi(c.current.openEvent?.type,d.interactedInside)),m=J(()=>Ui(c.current.openEvent?.type)),h=J(()=>{Zi(d)});K(()=>{a||(d.pointerType=void 0,d.restTimeoutPending=!1,d.interactedInside=!1,h())},[a,d,h]),X.useEffect(()=>h,[h]),K(()=>{if(n&&a&&d.handleCloseOptions?.blockPointerEvents&&m()&&G(s)&&o){let e=s,t=o,n=L(o),r=l?.nodesRef.current.find(e=>e.id===u)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=d.pointerEventsScopeElement===t?null:d.pointerEventsScopeElement,a=r===t?null:r,c=d.handleCloseOptions?.getScope?.()??i??a??Ct(e,`[data-rootownerid]`)??n.body;return Qi(d,{scopeElement:c,referenceElement:e,floatingElement:t}),()=>{h()}}},[n,a,s,o,d,m,l,u,h]),X.useEffect(()=>{if(!n)return;function t(){return!!(l&&u&&at(l.nodesRef.current,u).length>0)}function a(t){let n=Bi(r,`close`,d.pointerType),i=()=>{e.setOpen(!1,Y(k,t)),l?.events.emit(`floating.closed`,t)};n?d.openChangeTimeout.start(n,i):(d.openChangeTimeout.clear(),i())}function s(e){let t=Ue(e);Jt(t)?d.interactedInside=Ct(t,`[aria-haspopup]`)!=null:d.interactedInside=!1}function g(){d.openChangeTimeout.clear(),f.clear(),l?.events.off(`floating.closed`,y),h()}function _(n){if(t()&&l){l.events.on(`floating.closed`,y);return}if(v(n.relatedTarget,e.context.triggerElements))return;let r=c.current.floatingContext?.nodeId??i,o=n.relatedTarget;l&&r&&G(o)&&at(l.nodesRef.current,r,!1).some(e=>q(e.context?.elements.floating,o))||(d.handler?d.handler(n):(h(),m()&&!p()&&a(n)))}function y(n){l&&u&&!t()&&f.start(0,()=>{l.events.off(`floating.closed`,y),e.setOpen(!1,Y(k,n)),l.events.emit(`floating.closed`,n)})}let b=o;return H(b&&W(b,`mouseenter`,g),b&&W(b,`mouseleave`,_),b&&W(b,`pointerdown`,s,!0),()=>{l?.events.off(`floating.closed`,y)})},[n,o,e,c,r,i,m,p,h,d,l,u,f])}var ta={current:null};function na(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=ta,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p,guardStaleOpen:h=!1}=t,{dataRef:g,events:_}=e.context,y=B(l),b=$i(e),x=X.useRef(!1),S=m(i),C=m(r),w=m(o),T=m(n),E=m(p),D=m(f),O=J(()=>Hi(g.current.openEvent?.type,b.interactedInside)),A=J(()=>E.current?.()!==!1),j=J((t,n,r)=>{let i=e.context.triggerElements;if(i.hasElement(n))return!t||!q(t,n);if(!G(r))return!1;let a=r;return i.hasMatchingElement(e=>q(e,a))&&(!t||!q(t,a))}),M=J(()=>{b.handler&&=(L(e.select(`domReferenceElement`)).removeEventListener(`mousemove`,b.handler),void 0)}),N=J(()=>{Zi(b)});return u&&(b.handleCloseOptions=i?.__options),X.useEffect(()=>M,[M]),X.useEffect(()=>{if(!n)return;function e(e){e.open?x.current=!1:(x.current=e.reason===k,M(),b.openChangeTimeout.clear(),b.restTimeout.clear(),b.blockMouseMove=!0,b.restTimeoutPending=!1)}return _.on(`openchange`,e),()=>{_.off(`openchange`,e)}},[n,_,b,M]),X.useEffect(()=>{if(!n)return;function t(t,n=!0){let r=Bi(C.current,`close`,b.pointerType);r?b.openChangeTimeout.start(r,()=>{e.setOpen(!1,Y(k,t)),y?.events.emit(`floating.closed`,t)}):n&&(b.openChangeTimeout.clear(),e.setOpen(!1,Y(k,t)),y?.events.emit(`floating.closed`,t))}let r=c.current??(u?e.select(`domReferenceElement`):null);if(!G(r))return;function i(t){if(b.openChangeTimeout.clear(),b.blockMouseMove=!1,a&&!mt(b.pointerType))return;let n=Vi(w.current),r=Bi(C.current,`open`,b.pointerType),i=Ue(t),o=t.currentTarget??null,s=e.select(`domReferenceElement`),c=o;if(G(i)&&!e.context.triggerElements.hasElement(i)){for(let t of e.context.triggerElements.elements())if(q(t,i)){c=t;break}}G(o)&&G(s)&&!e.context.triggerElements.hasElement(o)&&q(o,s)&&(c=s);let l=c!=null&&j(s,c,i),u=e.select(`open`),d=D.current?.()??e.select(`transitionStatus`)===`ending`,f=!u&&d&&x.current,p=!l&&G(c)&&G(s)&&q(s,c)&&f,m=n>0&&!r,h=l&&(u||f)||p,g=!u||l;h?A()&&e.setOpen(!0,Y(k,t,c)):m||(r?b.openChangeTimeout.start(r,()=>{g&&A()&&e.setOpen(!0,Y(k,t,c))}):g&&A()&&e.setOpen(!0,Y(k,t,c)))}function o(n){if(O()){N();return}M();let r=e.select(`domReferenceElement`),i=L(r);b.restTimeout.clear(),b.restTimeoutPending=!1;let a=g.current.floatingContext??d?.();if(!v(n.relatedTarget,e.context.triggerElements)){if(S.current&&a){e.select(`open`)||b.openChangeTimeout.clear();let r=c.current;b.handler=S.current({...a,tree:y,x:n.clientX,y:n.clientY,onClose(){N(),M(),T.current&&!O()&&r===e.select(`domReferenceElement`)&&t(n,!0)}}),i.addEventListener(`mousemove`,b.handler),b.handler(n)}else b.pointerType===`touch`&&q(e.select(`floatingElement`),n.relatedTarget)||t(n)}}function l(e){q(r,e.relatedTarget)||(b.openChangeTimeout.clear(),b.restTimeout.clear(),b.restTimeoutPending=!1)}let f=h?W(r,`mouseout`,l):void 0;return s?H(W(r,`mousemove`,i,{once:!0}),W(r,`mouseenter`,i),W(r,`mouseleave`,o),f):H(W(r,`mouseenter`,i),W(r,`mouseleave`,o),f)},[M,N,g,C,e,n,S,b,u,j,O,a,s,w,c,y,T,d,D,A,h]),X.useMemo(()=>{if(!n)return;function t(e){b.pointerType=e.pointerType}return{onPointerDown:t,onPointerEnter:t,onMouseMove(t){let{nativeEvent:n}=t,r=t.currentTarget,i=e.select(`domReferenceElement`),o=e.select(`open`),s=j(i,r,t.target);if(a&&!mt(b.pointerType))return;if(o&&s&&b.handleCloseOptions?.blockPointerEvents){let t=e.select(`floatingElement`);if(t){let e=b.handleCloseOptions?.getScope?.()??r.ownerDocument.body;Qi(b,{scopeElement:e,referenceElement:r,floatingElement:t})}}let c=Vi(w.current);if(o&&!s||c===0||!s&&b.restTimeoutPending&&t.movementX**2+t.movementY**2<2)return;b.restTimeout.clear();function l(){if(b.restTimeoutPending=!1,O())return;let t=e.select(`open`);!b.blockMouseMove&&(!t||s)&&A()&&e.setOpen(!0,Y(k,n,r))}b.pointerType===`touch`?Oi.flushSync(()=>{l()}):s&&o?l():(b.restTimeoutPending=!0,b.restTimeout.start(c,l))}}},[n,b,O,j,a,e,w,A])}function ra(e){return Qe&&e.movementX===0&&e.movementY===0}function ia(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function aa(e,t){return ia(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function oa(e,t,n){return ia(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function sa(e,t,n){return ia(t,n?e===yt:e===At,e===Pt)}function ca(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===`Escape`:ia(t,n?e===At:e===yt,e===it)}function la(e,t){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:a=!0,selectedIndex:o=null,allowEscape:s=!1,loopFocus:c=!1,nested:l=!1,rtl:u=!1,virtual:d=!1,focusItemOnOpen:f=`auto`,focusItemOnHover:p=!0,openOnArrowKeyDown:h=!0,disabledIndices:g=void 0,orientation:_=`vertical`,triggerOrientation:v=_,parentOrientation:y,id:b,resetOnPointerLeave:x=!0,externalTree:C,nestedReturnFocusRef:w,grid:T}=t,E=T!=null,D=e.useState(`open`),O=e.useState(`floatingElement`),k=e.useState(`domReferenceElement`),A=e.context.dataRef,M=ge(O),N=Oe(k),P=m(M),F=j(),ee=B(C),te=X.useRef(f),R=X.useRef(o??-1),z=X.useRef(null),ne=X.useRef(!0),V=J(e=>{i(R.current===-1?null:R.current,e)}),H=X.useRef(!!O),re=X.useRef(D),U=X.useRef(!1),ie=X.useRef(!1),ae=X.useRef(null),W=m(g),oe=m(D),se=m(o),ce=m(x),le=We(),ue=We(),de=J(()=>{le.cancel();function e(e){d||(ae.current=xt(e,{sync:U.current,preventScroll:!0}))}let t=n.current[R.current],r=ie.current;t&&e(t),(U.current?e=>e():e=>le.request(e))(()=>{let i=n.current[R.current]||t;i&&(t||e(i),ve&&(r||!ne.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});K(()=>{A.current.orientation=_},[A,_]),K(()=>{D||(z.current=null),D&&f===`auto`||(te.current=f)},[D,f]),K(()=>{a&&(D&&O?(R.current=o??-1,te.current&&o!=null&&(ie.current=!0,V())):H.current&&(R.current=-1,V()))},[a,D,O,o,V]),K(()=>{if(a){if(!D)U.current=!1;else if(O){if(r==null){if(U.current=!1,se.current!=null)return;if(H.current&&(R.current=-1,de()),(!re.current||!H.current)&&te.current&&(z.current!=null||te.current===!0&&z.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>ue.request(e):queueMicrotask)(t),e+=1):(R.current=z.current==null||oa(z.current,v,u)||l?Lt(n):gt(n),z.current=null,V())};t()}}else Et(n.current,r)||(R.current=r,de(),ie.current=!1)}}},[a,D,O,r,se,l,n,v,u,V,de,ue]),K(()=>{if(!a||O||!ee||d||!H.current)return;let e=ee.nodesRef.current,t=e.find(e=>e.id===F)?.context?.elements.floating,n=Re(L(k??t??null)),r=e.some(e=>e.context&&q(e.context.elements.floating,n));t&&!r&&ne.current&&t.focus({preventScroll:!0})},[a,O,k,ee,F,d]),K(()=>{re.current=D,H.current=!!O});let fe=r!=null,pe=J(e=>{if(!oe.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(R.current!==t||r!==t)&&(R.current=t,V(e))}),me=J(()=>y??ee?.nodesRef.current.find(e=>e.id===F)?.context?.dataRef?.current.orientation),he=J(()=>Lt(n,W.current)),_e=J(t=>{if(ne.current=!1,U.current=!0,t.which===229||!oe.current&&t.currentTarget===P.current)return;if(l&&ca(t.key,_,u,E)){aa(t.key,me())||Xe(t),e.setOpen(!1,Y(S,t.nativeEvent));let n=w?.current??k;Ae(n)&&n.focus();return}r!=null&&r!==R.current&&!Et(n.current,r)&&(R.current=r);let i=R.current,a=Lt(n,g),o=gt(n,g);if(N||(t.key===`Home`&&(Xe(t),R.current=a,V(t)),t.key===`End`&&(Xe(t),R.current=o,V(t))),T!=null){let e=T(t,R.current,n,_,c,u,g,a,o);if(e!=null&&e!==R.current&&(R.current=e,V(t)),_===`both`)return}if(aa(t.key,_)){Xe(t);let e=Re(t.currentTarget.ownerDocument);if(D&&!d&&q(t.currentTarget,e)&&!n.current.some(t=>t!=null&&q(t,e))){R.current=oa(t.key,_,u)?a:o,V(t),r===R.current&&de();return}let{index:l,wrapped:f}=qe(n.current,i,{decrement:!oa(t.key,_,u),loopFocus:c,allowEscape:s,disabledIndices:g,minIndex:a,maxIndex:o});f&&(U.current=!1),R.current=l,V(t)}}),ve=X.useMemo(()=>({onFocus(e){U.current=!0,pe(e)},onClick({currentTarget:e}){d||e.focus({preventScroll:!0})},onMouseMove(e){ra(e)||(U.current=!0,ie.current=!1,p&&pe(e))},onPointerLeave(e){if(!oe.current||!ne.current||e.pointerType===`touch`)return;U.current=!0;let t=e.relatedTarget;if(p&&!n.current.includes(t)&&ce.current&&(ae.current?.(),ae.current=null,R.current=-1,V(e),!d)){let e=P.current,t=Re(L(e));e&&q(e,t)&&e.focus({preventScroll:!0})}}}),[pe,oe,P,p,n,V,ce,d]),ye=X.useMemo(()=>d&&D&&fe&&{"aria-activedescendant":`${b}-${r}`},[d,D,fe,b,r]),be=X.useMemo(()=>({...N?{}:ye,onKeyDown(t){if(t.key===`Tab`&&t.shiftKey&&D&&!d){let n=Ue(t.nativeEvent);if(n&&!q(P.current,n))return;Xe(t);let r=Y($e,t.nativeEvent);e.setOpen(!1,r);let i=w?.current??k;!r.isCanceled&&Ae(i)&&i.focus()}else _e(t)},onPointerMove(e){ra(e)||(ne.current=!0)}}),[ye,_e,P,N,e,D,d,k,w]),xe=X.useMemo(()=>{function t(t){e.setOpen(!0,Y(S,t.nativeEvent,t.currentTarget))}function n(e){f===`auto`&&It(e.nativeEvent)&&(te.current=!d)}function r(e){te.current=f,f===`auto`&&Ge(e.nativeEvent)&&(te.current=!0)}return{onKeyDown(n){let r=e.select(`open`);ne.current=!1;let i=n.key.startsWith(`Arrow`),a=sa(n.key,me(),u),o=aa(n.key,r?_:v),s=(l?a:o)||n.key===`Enter`||n.key.trim()===``;if(d&&r&&(!l||I(n.currentTarget)))return _e(n);if(r||h||!i){if(s){let e=aa(n.key,me());z.current=l&&e?null:n.key}l?a&&(Xe(n),r?(R.current=he(),V(n),d&&P.current?.focus()):t(n)):o&&(se.current!=null&&(R.current=se.current),Xe(n),!r&&h?t(n):_e(n),r&&V(n))}},onFocus(t){t.target===t.currentTarget&&e.select(`open`)&&!d&&(R.current=-1,V(t))},onPointerDown:r,onPointerEnter:r,onMouseDown:n,onClick:n}},[_e,f,he,l,V,e,h,_,v,me,u,se,d,P]),Se=X.useMemo(()=>({...ye,...xe}),[ye,xe]);return X.useMemo(()=>a?{reference:Se,floating:be,item:ve,trigger:xe}:{},[a,Se,be,xe,ve])}function ua(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,disabledIndices:o,onTyping:s,enabled:c=!0,resetMs:l=750,selectedIndex:u=null}=t,d=J(s),f=e.useState(`open`),p=U(),m=X.useRef(``),h=X.useRef(u??i??-1),g=X.useRef(null),_=J(e=>{function t(e){return r?.current[e]}function s(e){let n=t(e);return n&&!Ze(n)||n?.matches(`:disabled`)?!1:o==null||!_t(me,e,o)}function c(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length,i=t.toLowerCase();for(let t=0;t<e.length;t+=1){let n=(r+t)%e.length;if(e[n]?.toLowerCase().startsWith(i)&&s(n))return n}return-1}let _=n.current;if(m.current.length>0&&e.key===` `&&(Xe(e),d?.(!0)),m.current.length>0&&m.current[0]!==` `&&c(_,m.current)===-1&&e.key!==` `&&d?.(!1),_==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;f&&e.key!==` `&&(Xe(e),d?.(!0));let v=m.current===``;v&&(h.current=u??i??-1),_.every((e,t)=>e&&s(t)?e[0]?.toLowerCase()!==e[1]?.toLowerCase():!0)&&m.current===e.key&&(m.current=``,h.current=g.current),m.current+=e.key,p.start(l,()=>{m.current=``,h.current=g.current,d?.(!1)});let y=((v?u??i??-1:h.current)??0)+1,b=c(_,m.current,y);b===-1?e.key!==` `&&(m.current=``,d?.(!1)):(a?.(b,e),g.current=b)}),v=J(t=>{let n=t.relatedTarget,r=e.select(`domReferenceElement`),i=e.select(`floatingElement`);q(r,n)||q(i,n)||(p.clear(),m.current=``,h.current=g.current,d?.(!1))});K(()=>{(f||u===null)&&(p.clear(),g.current=null,m.current!==``&&(m.current=``,d?.(!1)))},[f,u,p,d]);let y=X.useMemo(()=>({onKeyDown:_,onBlur:v}),[_,v]);return X.useMemo(()=>c?{reference:y,floating:y}:{},[c,y])}var da=.1,fa=da*da,$=.5;function pa(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function ma(e,t,n,r,i,a,o,s,c,l){let u=!1;return pa(e,t,n,r,i,a)&&(u=!u),pa(e,t,i,a,o,s)&&(u=!u),pa(e,t,o,s,c,l)&&(u=!u),pa(e,t,c,l,n,r)&&(u=!u),u}function ha(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function ga(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 _a(e={}){let{blockPointerEvents:t=!1}=e,n=new st,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*fa;return u=e,d=t,f=n,o<s}function m(){n.clear(),a()}return function(r){n.clear();let a=i.domReference,u=i.floating;if(!a||!u||c==null||e==null||t==null)return;let{clientX:d,clientY:f}=r,h=Ue(r),g=r.type===`mouseleave`,_=q(u,h),v=q(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}if(g&&G(r.relatedTarget)&&q(u,r.relatedTarget))return;function y(){return!!(s&&at(s.nodesRef.current,o).length>0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,A=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let j=!1;switch(c){case`top`:j=ga(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=ga(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=ga(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=ga(d,f,x.right-1,A,S.left+1,k)}if(j)return;if(l&&!ha(d,f,x)||!g&&p(d,f)){b();return}let M=!1;switch(c){case`top`:{let n=T?$/2:$*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+$+1,o=C||T?S.bottom-$:S.top,s=C?T?S.bottom-$:S.top:S.bottom-$;M=ma(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?$/2:$*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-$,o=C||T?S.top+$:S.bottom,s=C?T?S.top+$:S.bottom:S.top+$;M=ma(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?$/2:$*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+$+1,o=w||E?S.right-$:S.left,s=w?E?S.right-$:S.left:S.right-$;M=ma(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?$/2:$*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-$,o=w||E?S.left+$:S.right,s=w?E?S.left+$:S.right:S.left+$;M=ma(d,f,a,r,a,i,o,S.top,s,S.bottom);break}}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}function va(e,t,n){let{reference:r,floating:i}=e,a=ft(t),o=He(t),s=ye(o),c=ce(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=Kt(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function ya(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}=Ie(t,e),p=C(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=ie(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=ie(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 ba=50,xa=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:ya},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=va(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<ba&&(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}=va(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Sa=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}=Ie(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=ce(r),_=ft(o),v=ce(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),x=d||(v||!m?[E(o)]:b(o)),S=p!==`none`;!d&&S&&x.push(...Se(o,m,p,y));let C=[o,...x],w=await s.detectOverflow(t,h),T=[],D=i.flip?.overflows||[];if(l&&T.push(w[g]),u){let e=Ut(r,a,y);T.push(w[e[0]],w[e[1]])}if(D=[...D,{placement:r,overflows:T}],!T.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=C[e];if(t&&(u!==`alignment`||_===ft(t)||D.every(e=>ft(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:D},reset:{placement:t}};let n=D.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=D.filter(e=>{if(S){let t=ft(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}if(r!==n)return{reset:{placement:n}}}return{}}}},Ca=new Set([`left`,`top`]);async function wa(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=ce(n),s=Kt(n),c=ft(n)===`y`,l=Ca.has(o)?-1:1,u=a&&c?-1:1,d=Ie(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 Ta=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 wa(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}}}}},Ea=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}=Ie(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=ft(i),p=Ht(f),m=u[p],h=u[f],g=(e,t)=>tt(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}}}}}},Da=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}=Ie(e,t),u={x:n,y:r},d=ft(i),f=Ht(d),p=u[f],m=u[d],h=Ie(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=Ca.has(ce(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}}}},Oa=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}=Ie(e,t),c=await i.detectOverflow(t,s),l=ce(n),u=Kt(n),d=ft(n)===`y`,{width:f,height:p}=r.floating,m,g;l===`top`||l===`bottom`?(m=l,g=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(g=l,m=u===`end`?`top`:`bottom`);let _=p-c.top-c.bottom,v=f-c.left-c.right,y=ct(p-c[m],_),b=ct(f-c[g],v),x=t.middlewareData.shift,S=!x,C=y,w=b;x!=null&&x.enabled.x&&(w=v),x!=null&&x.enabled.y&&(C=_),S&&!u&&(d?w=f-2*h(c.left,c.right):C=p-2*h(c.top,c.bottom)),await o({...t,availableWidth:w,availableHeight:C});let T=await i.getDimensions(a.floating);return f!==T.width||p!==T.height?{reset:{rects:!0}}:{}}}};function ka(e){let t=qt(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Ae(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=oe(n)!==a||oe(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Aa(e){return G(e)?e:e.contextElement}function ja(e){let t=Aa(e);if(!Ae(t))return et(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ka(t),o=(a?oe(n.width):n.width)/r,s=(a?oe(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var Ma=et(0);function Na(e){let t=Dt(e);return!bt()||!t.visualViewport?Ma:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Pa(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Dt(e)}function Fa(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Aa(e),o=et(1);t&&(r?G(r)&&(o=ja(r)):o=ja(e));let s=Pa(a,n,r)?Na(a):et(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Dt(a),t=G(r)?Dt(r):r,n=e,i=F(n);for(;i&&t!==n;){let e=ja(i),t=i.getBoundingClientRect(),r=qt(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Dt(i),i=F(n)}}return ie({width:u,height:d,x:c,y:l})}function Ia(e,t){let n=ke(e).scrollLeft;return t?t.left+n:Fa(Ee(e)).left+n}function La(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ia(e,n),y:n.top+t.scrollTop}}function Ra(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Ee(r),s=t?Ft(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=et(1),u=et(0),d=Ae(r);if((d||!a)&&((Ce(r)!==`body`||pe(o))&&(c=ke(r)),d)){let e=Fa(r);l=ja(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?La(o,c):et(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 za(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Ba(e){let t=ke(e),n=e.ownerDocument.body,r=h(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=h(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Ia(e),o=-t.scrollTop;return qt(n).direction===`rtl`&&(a+=h(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Va=25;function Ha(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Dt(e),a=Ee(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!bt()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Ia(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<=Va&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Ua(e,t){let n=Fa(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=ja(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Wa(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Ha(e,n,t);else if(t===`document`)r=Ba(Ee(e));else if(G(t))r=Ua(t,n);else{let n=Na(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ie(r)}function Ga(e,t){let n=t.get(e);if(n)return n;let r=M(e,[],!1).filter(e=>G(e)&&Ce(e)!==`body`),i=null,a=qt(e).position===`fixed`,o=a?ne(e):e;for(;G(o)&&!Ne(o);){let e=qt(o),t=z(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=ne(o)}return t.set(e,r),r}function Ka(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Ft(t)?[]:Ga(t,this._c):[].concat(n),r],o=Wa(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=Wa(t,a[e],i);s=h(n.top,s),c=ct(n.right,c),l=ct(n.bottom,l),u=h(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function qa(e){let{width:t,height:n}=ka(e);return{width:t,height:n}}function Ja(e,t,n){let r=Ae(t),i=Ee(t),a=n===`fixed`,o=Fa(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=et(0);if((r||!a)&&((Ce(t)!==`body`||pe(i))&&(s=ke(t)),r)){let e=Fa(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Ia(i));let l=i&&!r&&!a?La(i,s):et(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 Ya(e){return qt(e).position===`static`}function Xa(e,t){if(!Ae(e)||qt(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Ee(e)===n&&(n=n.ownerDocument.body),n}function Za(e,t){let n=Dt(e);if(Ft(e))return n;if(!Ae(e)){let t=ne(e);for(;t&&!Ne(t);){if(G(t)&&!Ya(t))return t;t=ne(t)}return n}let r=Xa(e,t);for(;r&&Ye(r)&&Ya(r);)r=Xa(r,t);return r&&Ne(r)&&Ya(r)&&!z(r)?n:r||_(e)||n}var Qa=async function(e){let t=this.getOffsetParent||Za,n=this.getDimensions,r=await n(e.floating);return{reference:Ja(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function $a(e){return qt(e).direction===`rtl`}var eo={convertOffsetParentRelativeRectToViewportRelativeRect:Ra,getDocumentElement:Ee,getClippingRect:Ka,getOffsetParent:Za,getElementRects:Qa,getClientRects:za,getDimensions:qa,getScale:ja,isElement:G,isRTL:$a};function to(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function no(e,t,n){let r=null,i,a=Ee(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=Bt(d),g=Bt(a.clientWidth-(u+f)),_=Bt(a.clientHeight-(d+p)),v=Bt(u),y={rootMargin:-m+`px `+-g+`px `+-_+`px `+-v+`px`,threshold:h(0,ct(1,c))||1},b=!0;function x(t){let n=t[0].intersectionRatio;if(!to(l,e.getBoundingClientRect()))return s();if(n!==c){if(!b)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}b=!1}try{r=new IntersectionObserver(x,{...y,root:a.ownerDocument})}catch{r=new IntersectionObserver(x,y)}r.observe(e)}let c=Dt(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function ro(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=Aa(e),u=i||a?[...l?M(l):[],...t?M(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?no(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Fa(e):null;c&&g();function g(){let t=Fa(e);h&&!to(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var io=Ta,ao=Ea,oo=Sa,so=Oa,co=Da,lo=(e,t,n)=>{let r=new Map,i=n??{},a={...eo,...i.platform,_c:r};return xa(e,t,{...i,platform:a})},uo=typeof document<`u`?X.useLayoutEffect:function(){};function fo(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(!fo(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)&&!fo(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function po(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mo(e,t){let n=po(e);return Math.round(t*n)/n}function ho(e){let t=X.useRef(e);return uo(()=>{t.current=e}),t}function go(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]=X.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=X.useState(r);fo(f,r)||p(r);let[m,h]=X.useState(null),[g,_]=X.useState(null),v=X.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=X.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=X.useRef(null),C=X.useRef(null),w=X.useRef(u),T=c!=null,E=ho(c),D=ho(i),O=ho(l),k=X.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),lo(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!fo(w.current,t)&&(w.current=t,Oi.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);uo(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=X.useRef(!1);uo(()=>(A.current=!0,()=>{A.current=!1}),[]),uo(()=>{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=X.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=X.useMemo(()=>({reference:b,floating:x}),[b,x]),N=X.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=mo(M.floating,u.x),r=mo(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...po(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return X.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var _o=(e,t)=>{let n=io(e);return{name:n.name,fn:n.fn,options:[e,t]}},vo=(e,t)=>{let n=ao(e);return{name:n.name,fn:n.fn,options:[e,t]}},yo=(e,t)=>({fn:co(e).fn,options:[e,t]}),bo=(e,t)=>{let n=oo(e);return{name:n.name,fn:n.fn,options:[e,t]}},xo=(e,t)=>{let n=so(e);return{name:n.name,fn:n.fn,options:[e,t]}};function So(e){let{nodeId:t,externalTree:n,rootContext:r}=e,i=r.useState(`referenceElement`),a=r.useState(`floatingElement`),o=r.useState(`domReferenceElement`),s=r.useState(`open`),c=r.useState(`floatingId`),[l,u]=X.useState(null),d=X.useRef(null),f=B(n),p=X.useMemo(()=>({reference:i,floating:a,domReference:o}),[i,a,o]),m=go({...e,elements:{...p,...l&&{reference:l}}}),h=X.useCallback(e=>{let t=G(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),m.refs.setReference(t)},[m.refs]),g=X.useMemo(()=>({...m.refs,setPositionReference:h,domReference:d}),[m.refs,h]),_=X.useMemo(()=>({...m.elements,domReference:o}),[m.elements,o]),v=X.useMemo(()=>({...m,dataRef:r.context.dataRef,open:s,onOpenChange:r.setOpen,events:r.context.events,floatingId:c,refs:g,elements:_,nodeId:t,rootStore:r}),[m,g,_,t,r,s,c]);return K(()=>{o&&(d.current=o)},[o]),K(()=>{r.context.dataRef.current.floatingContext=v;let e=f?.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),X.useMemo(()=>({...m,context:v,refs:g,elements:_,rootStore:r}),[m,g,_,v,r])}var Co=X.createContext(void 0);function wo(){return X.useContext(Co)?.direction??`ltr`}var To=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}=Ie(e,t)||{};if(l==null)return{};let d=C(u),f={x:n,y:r},p=He(i),m=ye(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=s.floating[y]||a.floating[m],w=b/2-x/2,T=S/2-h[m]/2-1,E=Math.min(d[_],T),D=Math.min(d[v],T),O=E,k=S-h[m]-D,A=S/2-h[m]/2+w,j=tt(O,A,k),M=!c.arrow&&Kt(i)!=null&&A!==j&&a.reference[m]/2-(A<O?E:D)-h[m]/2<0,N=M?A<O?A-O:A-k:0;return{[p]:f[p]+N,data:{[p]:j,centerOffset:A-j-N,...M&&{alignmentOffset:N}},reset:M}}}),Eo=(e,t)=>{let{name:n,fn:r}=To(e);return{name:n,fn:r,options:[e,t]}},Do={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,o=await e.platform.detectOverflow(e,{elementContext:`reference`});return{data:{referenceHidden:o.top-n>=0||o.right-t>=0||o.bottom-n>=0||o.left-t>=0||a}}}},Oo={sideX:`left`,sideY:`top`},ko=`--available-width`,Ao=`--available-height`,jo=`--anchor-width`,Mo=`--anchor-height`,No=`--transform-origin`,Po=`--positioner-width`,Fo=`--positioner-height`,Io=ko,Lo=Ao;function Ro(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 zo(e,t,n){let{rects:r,placement:i}=e;return{side:Ro(t,ce(i),n),align:Kt(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Bo(e){return Vo(e,So)}function Vo(e,t){let{anchor:n,positionMethod:r=`absolute`,side:i=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:s=0,collisionBoundary:c,collisionPadding:l=5,sticky:u=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,inline:p,keepMounted:h=!1,floatingRootContext:g,mounted:_,collisionAvoidance:v,shift:y,nodeId:b,adaptiveOrigin:x,lazyFlip:S=!1,externalTree:C}=e,w=v.side||`flip`,T=v.align||`flip`,E=v.fallbackAxisSide||`end`,D=y?.crossAxis??!1,O=y?.rootBoundary,k=typeof n==`function`?n:void 0,A=J(k),j=k?A:n,M=m(n),N=m(_),P=wo()===`rtl`,[F,I]=X.useState(null);!_&&F!==null&&I(null);let ee=S===`placement`,te=F?ce(F):null,R=F&&ee?Kt(F)||`center`:null,z=te||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":P?`left`:`right`,"inline-start":P?`right`:`left`}[i],B=R||o,ne=B===`center`?z:`${z}-${B}`,V=l;typeof V==`number`?V={top:V,right:V,bottom:V,left:V}:V&&={top:V.top||0,right:V.right||0,bottom:V.bottom||0,left:V.left||0};let H=+(i===`bottom`),re=+(i===`top`),U=+(i===`right`),ie=+(i===`left`),ae={boundary:c===`clipping-ancestors`?`clippingAncestors`:c,padding:V},W=X.useRef(null),oe=m(a),se=m(s),le=typeof a==`function`?0:a,ue=typeof s==`function`?0:s,de=[];p&&de.push(p),de.push(_o(e=>{let t=zo(e,i,P),n=typeof oe.current==`function`?oe.current(t):oe.current,r=typeof se.current==`function`?se.current(t):se.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[le,ue,P,i]));let fe=T===`none`&&w!==`shift`,pe=!fe&&(u||D||w===`shift`),me=w===`none`?null:bo({...ae,padding:{top:V.top+1+H,right:V.right+1+ie,bottom:V.bottom+1+re,left:V.left+1+U},mainAxis:!D&&w===`flip`,crossAxis:T===`flip`&&`alignment`,fallbackAxisSideDirection:E}),he=fe?null:vo({...ae,rootBoundary:O,mainAxis:T!==`none`,crossAxis:pe,limiter:u||D?void 0:yo(e=>{if(!W.current)return{};let{width:t,height:n}=W.current.getBoundingClientRect(),r=ft(ce(e.placement)),i=r===`y`?t:n,a=r===`y`?V.left+V.right:V.top+V.bottom;return{offset:i/2+a/2}})},[ae,u,D,O,V,T]);w===`shift`||T===`shift`||B===`center`?de.push(he,me):de.push(me,he),de.push(xo({...ae,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!N.current)return;let i=e.style;i.setProperty(Io,`${t}px`),i.setProperty(Lo,`${n}px`);let a=Dt(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(jo,`${u}px`),i.setProperty(Mo,`${d}px`)}}),Eo(e=>({element:W.current||L(e.elements.floating).createElement(`div`),padding:W.current?d:0}),[d]),{name:`transformOrigin`,fn(e){let{elements:{floating:t},middlewareData:n,placement:r,platform:o,rects:s,y:c}=e,l=ce(r),u=Kt(r),d=ft(l)===`y`,f=W.current,p=typeof a==`function`?a(zo(e,i,P)):a,m;m=!f&&u&&Math.abs(d?n.shift?.x||0:n.shift?.y||0)<=1?u===`start`===(d&&o.isRTL?.(t)===!0)?`100%`:`0%`:`${(d?n.arrow?.x||0:n.arrow?.y||0)+(d?f?.clientWidth||0:f?.clientHeight||0)/2}px`;let h=l===`top`||l===`left`?`calc(100% + ${p}px)`:`${-p}px`;return pe&&d&&Math.abs(n.shift?.y||0)>p&&(h=`${s.reference.y+s.reference.height/2-c}px`),t.style.setProperty(No,d?`${m} ${h}`:`${h} ${m}`),{}}},Do,x),K(()=>{!_&&g&&g.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[_,g]);let ge=X.useMemo(()=>({ancestorScroll:!f,elementResize:!f&&typeof ResizeObserver<`u`,layoutShift:!f&&typeof IntersectionObserver<`u`}),[f]),{refs:_e,elements:ve,x:ye,y:be,middlewareData:xe,update:Se,placement:Ce,context:we,isPositioned:Te,floatingStyles:Ee}=t({rootContext:g,open:h?_:void 0,placement:ne,middleware:de,strategy:r,whileElementsMounted:h?void 0:(...e)=>ro(...e,ge),nodeId:b,externalTree:C}),{sideX:De,sideY:Oe}=xe.adaptiveOrigin||Oo,ke=Te?r:`fixed`,Ae=X.useMemo(()=>{let e;return e=Te?x?{position:ke,[De]:ye,[Oe]:be}:{...Ee,position:ke}:{position:ke,top:0,left:0},e[Io]=`100vw`,e[Lo]=`100vh`,Te||(e.opacity=0),e},[x,ke,De,ye,Oe,be,Ee,Te]),je=X.useRef(null);K(()=>{if(!_)return;let e=M.current,t=typeof e==`function`?e():e,n=(Ho(t)?t.current:t)||null;n!==je.current&&(_e.setPositionReference(n),je.current=n)},[_,_e,j,M]),X.useEffect(()=>{if(!_)return;let e=M.current;typeof e!=`function`&&Ho(e)&&e.current!==je.current&&(_e.setPositionReference(e.current),je.current=e.current)},[_,_e,j,M]),X.useEffect(()=>{if(h&&_&&ve.reference&&ve.floating)return ro(ve.reference,ve.floating,Se,ge)},[h,_,ve,Se,ge]);let G=ce(Ce),Me=Ro(i,G,P),Ne=Kt(Ce)||`center`,Pe=!!xe.hide?.referenceHidden;K(()=>{S&&_&&Te&&(G!==z||ee&&Ne!==B)&&I(Ce)},[S,ee,_,Te,Ce,G,Ne,z,B]);let Fe=X.useMemo(()=>({position:`absolute`,top:xe.arrow?.y,left:xe.arrow?.x}),[xe.arrow]),Ie=xe.arrow?.centerOffset!==0;return X.useMemo(()=>({positionerStyles:Ae,arrowStyles:Fe,arrowRef:W,arrowUncentered:Ie,side:Me,align:Ne,physicalSide:G,anchorHidden:Pe,refs:_e,context:we,isPositioned:Te,update:Se}),[Ae,Fe,W,Ie,Me,Ne,G,Pe,_e,we,Te,Se])}function Ho(e){return e!=null&&`current`in e}function Uo(e){return e===`starting`?fe:f}function Wo(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),N(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},Uo(r),i],stateAttributesMapping:P})}var Go={A:!1,ActionIcon:!1,ActionIconGroup:!1,Alert:!1,Avatar:!1,AvatarGroup:!1,BaseActionIcon:!0,BaseButton:!0,Block:!1,BottomGradientButton:!0,Burger:!1,Button:!0,Center:!1,Checkbox:!1,CheckboxGroup:!1,Collapse:!1,ColorSwatches:!1,CopyButton:!1,DownloadButton:!1,EditableText:!1,Empty:!1,FileTypeIcon:!1,Flexbox:!1,FluentEmoji:!1,GradientButton:!0,Highlighter:!1,Hotkey:!1,Icon:!1,Image:!1,Img:!1,Input:!1,InputNumber:!1,InputPassword:!1,List:!1,ListItem:!1,Select:!1,Switch:!1,Markdown:!1,MaterialFileTypeIcon:!1,Segmented:!1,Skeleton:!1,SkeletonAvatar:!1,SkeletonBlock:!1,SkeletonButton:!1,SkeletonParagraph:!1,SkeletonTags:!1,SkeletonText:!1,SkeletonTitle:!1,Snippet:!1,Tag:!1,Text:!1,TextArea:!1,ThemeSwitch:!1,Video:!1};function Ko(e){let t=e.type;if(typeof t!=`string`){if(typeof t==`function`)return t.displayName||t.name;if(typeof t==`object`&&t)return t.displayName||t.render?.displayName||t.render?.name||t.type?.displayName||t.type?.name}}function qo({children:e,nativeButton:t,triggerNativeButton:n}){let r=(0,X.useMemo)(()=>(0,X.isValidElement)(e)?typeof e.type==`string`&&e.type===`button`:!1,[e]);return{isNativeButtonTriggerElement:r,resolvedNativeButton:(0,X.useMemo)(()=>{if(t!==void 0)return t;if(n!==void 0)return n;if(r)return!0;if(!(0,X.isValidElement)(e))return;if(typeof e.type==`string`||e.props?.href!==void 0)return!1;let i=Ko(e);return i&&i in Go?Go[i]:!1},[e,r,t,n])}}var Jo=Number.parseInt(X.version,10)>=19,Yo=e=>{if((0,X.isValidElement)(e))return Jo?e.props?.ref:e.ref},Xo=(0,X.createContext)(null),Zo=()=>(0,X.use)(Xo),Qo=Xo.Provider,$o=()=>{let[e,t]=(0,X.useState)(typeof document<`u`);return(0,X.useEffect)(()=>{e||t(!0)},[]),e},es,ts=()=>es,ns={align:`center`,side:`top`},rs={align:`start`,side:`top`},is={align:`end`,side:`top`},as={align:`center`,side:`bottom`},os={bottom:as,bottomCenter:as,bottomLeft:{align:`start`,side:`bottom`},bottomRight:{align:`end`,side:`bottom`},left:{align:`center`,side:`left`},leftBottom:{align:`end`,side:`left`},leftTop:{align:`start`,side:`left`},right:{align:`center`,side:`right`},rightBottom:{align:`end`,side:`right`},rightTop:{align:`start`,side:`right`},top:ns,topCenter:ns,topLeft:rs,topRight:is},ss={variantBorderlessWithoutHover:{kVAM5u:`lb181nr7w`,ksu8eU:`lbng3xce`,kMzoRj:`lbfn42iu`,kWkggS:`lbjbqb8w`,kGVxlE:`lb1gnnqk1`,$$css:!0},variantFilledWithoutHover:{kWkggS:`lbaljia1`,$$css:!0},variantOutlinedWithoutHover:{kVAM5u:`lb10cypdb`,ksu8eU:`lb1y0btm7`,kMzoRj:`lbmkeg23`,kWkggS:`lb6yijhg`,$$css:!0}},cs=X.createContext(void 0);function ls(e){let t=X.useContext(cs);if(t===void 0&&!e)throw Error(je(69));return t}function us(e){let{store:t,domReference:n,positionerElement:r,open:i}=e,a=X.useRef(null),o=X.useRef(null),s=se(r);K(()=>{i||(o.current?.abort(),o.current=null,t.state.instantType===`trigger-change`&&t.set(`instantType`,void 0))},[i,t]),K(()=>{let e=n,r=a.current;if(e&&(a.current=e),!r||!e||e===r||!t.select(`open`))return;t.set(`instantType`,void 0);let i=new AbortController;return o.current=i,s(()=>{t.select(`open`)&&t.set(`instantType`,`trigger-change`)},i.signal),()=>{i.abort()}},[n,s,t])}var ds=20;function fs(e,t,n,r){let[i,a]=X.useState(!1);K(()=>{if(!e||!t||n==null){a(!1);return}let r=L(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-ds)},[e,t,n]),Ot(e&&(!t||i),r)}function ps(e){let t=X.useRef(``),n=X.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:X.useCallback(n=>{n.detail===0?e(n,`keyboard`):(`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``)},[e]),onPointerDown:n}}function ms(e,t){let n=X.useRef(e),r=J(t);K(()=>{n.current!==e&&r(n.current),n.current=e},[e,r])}function hs(e,t){let{onClick:n,onPointerDown:r}=ps(J((n,r)=>{(typeof e==`function`?e():e)||t(r||(zt?`touch`:``))}));return X.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function gs(e){let[t,n]=X.useState(null),r=hs(e,n);return ms(e,t=>{t&&!e&&n(null)}),X.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}var _s=5;function vs(e,t){let n=ys(t);return e.clientX>=n.left-_s&&e.clientX<=n.right+_s&&e.clientY>=n.top-_s&&e.clientY<=n.bottom+_s}function ys(e){let t=e.getBoundingClientRect(),n=Dt(e);if(Tt)return t;let r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(r.content===`none`&&i.content===`none`)return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}function bs(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=he(),{ref:i,index:a}=Gr(e),o=n===a,s=X.useRef(null),c=Me(i,s);return{compositeProps:{tabIndex:o?0:-1,onFocus(){r(a)},onMouseMove(){let e=s.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!o&&!n&&e.focus()}},compositeRef:c,index:a}}function xs(e){let{render:t,className:n,style:r,state:i=f,props:a=me,refs:o=me,metadata:s,stateAttributesMapping:c,tag:l=`div`,...u}=e,{compositeProps:d,compositeRef:p}=bs({metadata:s});return N(l,e,{state:i,ref:[p,...o],props:[d,...a,u],stateAttributesMapping:c})}function Ss(e,t){function n(n,r,i){let a=n.currentTarget;Oi.flushSync(()=>{e.setOpen(!1,Y($e,n.nativeEvent,a))}),ze(a.isConnected?a:t.current,r,i)?.focus()}function r(t){n(t,-1,e.select(`positionerElement`))}function i(t){let r=e.select(`positionerElement`);r&&wt(t,r)?e.context.beforeContentFocusGuardRef.current?.focus():n(t,1,r)}return{handlePreFocusGuardFocus:r,handleFocusTargetFocus:i}}function Cs(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}function ws(e){let t=new Set((Array.isArray(e)?e:[e]).flatMap(e=>e===`both`?[`hover`,`click`]:[e]));return{openOnClick:t.has(`click`),openOnHover:t.has(`hover`)}}var Ts,{min:Es,max:Ds,abs:Os,floor:ks}=Math,As=(e,t,n)=>Ds(t,Es(n,e)),js=e=>e.sort((e,t)=>e-t),Ms=setTimeout,Ns=clearTimeout,Ps=typeof queueMicrotask==`function`?queueMicrotask:e=>{Promise.resolve().then(e)},Fs=()=>{let e;return[new Promise(t=>{e=t}),e]},Is=typeof window<`u`,Ls=e=>e.ownerDocument,Rs=e=>e.defaultView,zs=()=>(Ts??=/iP(hone|od|ad)/.test(navigator.userAgent)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>0,Ts),Bs=e=>Ds(e.t(),e.o()),Vs=({$:e,p:t,i:n,m:r,S:i,t:a,_:o,v:s,I:c},l=0)=>{let u=!!l,d=1,f=0,p=0,m=0,h=0,g=0,_=0,v=0,y=0,b=null,x=[0,u?Ds(l-1,0):-1],S=!1,C=new Set,w=()=>m-p,T=()=>w()+g+h,E=(e,t)=>{let i=n(e),a=r(e);return v!==1&&y===0?i+a<=t:i<t&&i+a<t+f},D=e=>{e&&(zs()&&v!==0||b&&y===1?g+=e:h+=e)},O=()=>{let e=o();if(y===2)return e;if(b&&y===1)return Es(b[0],e);let n=T(),r=t(n);for(;r>0&&!E(r-1,n);)r--;for(;r<e&&E(r,n);)r++;return r};return{R:()=>{C.clear()},k:()=>d,$:(t=200)=>{let n,r;if(!S||u||_)[n,r]=x;else{let i=Ds(0,T()),a=i+f;c()||(t=Ds(0,t),v!==1&&(i-=t),v!==2&&(a+=t)),[n,r]=x=e(Ds(0,i),Ds(0,a)),b&&(n=Es(n,b[0]),r=Ds(r,b[1]))}return[n,Es(r,o()-1)]},l:O,i:e=>n(e)-g,T:()=>m,O:()=>v!==0,o:()=>f,M:()=>p,t:a,C:()=>(_=h,h=0,[_,y===2]),L:(e,t)=>{let n=[e,t];return C.add(n),()=>{C.delete(n)}},h:(t,r,c)=>{let l,x,T=0;switch(t){case 1:{if(r===m&&y===0)break;let e=r-m,t=Os(e),n=_&&t<Os(_)+1;_=0,n||y!==0||(v=e<0?2:1),u=!1,m=r,T=4;let i=w();i>=-f&&i<=a()&&(T+=1,x=t>f);break}case 2:T=8,v!==0&&(l=!0,T+=1),v=0,y=0,b=null;break;case 3:if(r.length){let e=O(),t=n(e);i(r,f),D(n(e)-t),T=3,x=!0}break;case 4:f!==r&&(f||(S=x=!0),f=r,T=3);break;case 5:if(r!==o()){if(c){let e=a();s(r,!0),D(a()-e),y=2}else s(r);T=1}break;case 6:D(r),T=1;break;case 7:p=r;break;case 8:y=1;break;case 9:b=e(r,r+f),T=1}T&&(d=1+(2147483647&d),l&&g&&(h+=g,g=0),C.forEach(([e,t])=>{T&e&&t(x)}))}}},Hs=(e,t,n)=>{let r=n?`unshift`:`push`;for(let n=0;n<t;n++)e[r](-1);return e},Us=(e,t,n,r=0,i=t-1)=>{let a=r;for(;r<=i;){let t=ks((r+i)/2);e(t)<=n?(a=t,r=t+1):i=t-1}return a},Ws=(e,t,n)=>{let r=n&&n[1]||t||40,i=-1,a=0,o=!t,s=0,c=n?n[0].slice(0,e):[];Hs(c,e-c.length);let l=Hs([],e+1),u=e=>{let t=c[e];return t===-1?r:t},d=t=>{if(!e)return 0;if(i>=t)return l[t];i<0&&(l[0]=0,i=0);let n=i,r=l[n];for(;n<t;)r+=u(n),l[++n]=r;return i=t,r};return{$:(t,n)=>{let r,i;return s=As(s,0,e-1),d(s)<=t?(i=Us(d,e,n,s),r=Us(d,e,t,s,i)):(r=Us(d,e,t,void 0,s),i=Us(d,e,n,r)),s=r,[r,i]},p:t=>Us(d,e,t),i:d,m:u,A:(e,t=-1)=>c[e]===t,S:(e,t)=>{for(let[t,n]of e)a+=c[t]===-1?n:n-u(t),c[t]=n,i=Es(t,i);if(o&&t&&a>t){let e=js(c.filter(e=>e!==-1&&e));i=-1;let t=e.length,n=t/2|0;r=t%2==0?(e[n-1]+e[n])/2:e[n],o=!1}},t:()=>d(e),_:()=>e,v:(t,n)=>{let r=t-e;i=n?-1:Es(t-1,i),e=t,r>=0?(Hs(l,r),Hs(c,r,n)):(l.splice(r),c.splice(n?0:r,-r))},I:()=>o,W:()=>[c.slice(),r]}},Gs=e=>{let t;return{V(n){(t||=new(Rs(Ls(n))).ResizeObserver(e)).observe(n)},X(e){t.unobserve(e)},J(){t&&t.disconnect()}}},Ks=(e,t,n,r,i,a,o,s)=>{let c,l,u=0,d=!1,f=!1,p=!1,m=!1,h=Date.now,g=i?`scrollLeft`:`scrollTop`,_=i?`left`:`top`,v=e=>a?-e:e,y=()=>v(r[g]),b=(e,t)=>{r.scrollTo({[_]:e,behavior:t?`smooth`:`instant`})},x=()=>{if(d||f)return d=!1,void S();p=!1,e.h(2)},S=()=>{Ns(l),l=Ms(x,150)},C=()=>{u=h(),p&&(m=!0),s&&e.h(7,s()),e.h(1,y()),S()},w=t=>{if(d||!e.O()||t.ctrlKey)return;let n=h()-u;150>n&&50<n&&(i?t.deltaX:t.deltaY)&&(d=!0)},T=()=>{f=!0,p=m=!1},E=()=>{f=!1,zs()&&(p=!0)};return n.addEventListener(`scroll`,C),n.addEventListener(`wheel`,w,{passive:!0}),n.addEventListener(`touchstart`,T,{passive:!0}),n.addEventListener(`touchend`,E,{passive:!0}),n.addEventListener(`touchcancel`,E,{passive:!0}),{j:()=>{y()!==e.T()&&C()},J:()=>{n.removeEventListener(`scroll`,C),n.removeEventListener(`wheel`,w),n.removeEventListener(`touchstart`,T),n.removeEventListener(`touchend`,E),n.removeEventListener(`touchcancel`,E),Ns(l)},D:()=>{let[t,n]=e.C();if(!t)return;m&&o&&o(),m=!1;let i=e.T(),a=i+t,s=e.M()+e.t()-e.o();a<=0||a>=s||i>=s?b(v(a)):r.scrollBy({[_]:v(t),behavior:`instant`}),n&&(c&&c(),e.o()>e.t()&&e.h(1,y()))},G:(n,r,i=b)=>{let a,o,s;c&&c();let l=c=()=>{a=!0,Ns(o),s&&s()},u=()=>{if(!a){if(e.o()&&(Ns(o),o=Ms(l,150)),r){for(let[n,r]=e.$(0);n<=r;n++)if(t.A(n))return;l()}e.h(8),i(v(n()),r)}};if(r&&e.h(9,n()),!a){let t;s=e.L(2,()=>{t||(t=!0,Ps(()=>{t=!1,u()}))}),u()}}}},qs=(e,t,n)=>{let r,i,a=Fs(),o=new WeakMap,s=Gs(a=>{let s=[];for(let{target:c,contentRect:{width:l,height:u}}of a)if(c===r)(l||u)&&(i.j(),e.h(4,n?l:u));else if(c.offsetParent){let e=o.get(c),r=n?l:u;e==null||t.A(e,r)||s.push([e,r])}e.h(3,s)});return{F(o,c=o.parentElement){s.V(r=c),i=Ks(e,t,c,c,n,n&&getComputedStyle(c).direction===`rtl`,()=>{let e=n?`overflowX`:`overflowY`,t=c.style,r=t[e];t[e]=`hidden`,Ms(()=>{t[e]=r})}),a[1](!0)},R(){s.J(),i&&i.J(),a[1](!1),a=Fs()},K:(e,t)=>(o.set(e,t),s.V(e),()=>{o.delete(e),s.X(e)}),async N(e,t){await a[0]&&i.G(e,t)},U(){i&&i.D()},Z:e.M}},Js=(e,t)=>{e.N(()=>t)},Ys=(e,t,n)=>{Js(e,n+t.T())},Xs=(e,t,n,r,{align:i,smooth:a,offset:o=0}={})=>{if(r=As(r,0,n._()-1),i===`nearest`){let e=t.i(r),a=t.T();if(e<a)i=`start`;else{if(!(e+n.m(r)>a+t.o()))return;i=`end`}}e.N(()=>o+e.Z()+t.i(r)+(i===`end`?n.m(r)-t.o():i===`center`?(n.m(r)-t.o())/2:0),a)},Zs=Is?X.useLayoutEffect:X.useEffect,Qs=(e,t)=>{if(Array.isArray(e))for(let n of e)Qs(n,t);else e==null||typeof e==`boolean`||t.push(e)},$s=(e,t)=>e.key??`_`+t,ec=e=>{let t=(0,X.useRef)(null);return t.current||=e()},tc=e=>{let t=(0,X.useRef)(e);return Zs(()=>{t.current=e},[e]),t},nc=(0,X.memo)(({ee:e,te:t,oe:n,ne:r,re:i,se:a,le:o,ie:s})=>{let c=(0,X.useRef)(null);Zs(()=>t(c.current,n),[n]);let l=(0,X.useMemo)(()=>{let e={contain:`layout style`,position:i&&s?void 0:`absolute`,[o?`height`:`width`]:`100%`,[o?`top`:`left`]:0,[o?`insetInlineStart`:`top`]:r,visibility:!i||s?void 0:`hidden`};return o&&(e.display=`inline-flex`),e},[r,i,s,o]);return(0,Z.jsx)(a,typeof a==`string`?{ref:c,style:l,children:e}:{ref:c,style:l,index:n,children:e})}),rc=(e,t)=>(0,X.useMemo)(()=>{if(typeof e==`function`)return[n=>e(t[n],n),t.length];let n=(e=>{let t=[];return Qs(e,t),t})(e);return[e=>n[e],n.length]},[e,t]),ic=(0,X.forwardRef)(({children:e,data:t,bufferSize:n,itemSize:r,shift:i,horizontal:a,keepMounted:o,cache:s,startMargin:c=0,ssrCount:l,as:u=`div`,item:d=`div`,scrollRef:f,onScroll:p,onScrollEnd:m,onResize:h},g)=>{"use no memo";let[_,v]=rc(e,t),y=(0,X.useRef)(null),b=(0,X.useRef)(!!l),x=tc(p),S=tc(m),C=tc(h),[w,T,E,D]=ec(()=>{let e=!!a,t=Ws(v,r,s),n=Vs(t,l);return[n,t,qs(n,t,e),e]});w.h(5,v,i),w.h(7,c);let[O,k]=(0,X.useReducer)(w.k,void 0,w.k),A=w.O(),j=w.t(),M=[],N=e=>{let t=_(e);return(0,Z.jsx)(nc,{te:E.K,oe:e,ne:w.i(e),re:T.A(e),se:d,ee:t,le:D,ie:b.current},$s(t,e))};if(Zs(()=>{b.current=!1,w.L(1,e=>{e?(0,Oi.flushSync)(k):k()}),w.L(4,()=>{x.current&&x.current(w.T())}),w.L(8,()=>{S.current&&S.current()}),w.L(2,()=>{C.current&&C.current()});let e=y.current;return f?Ps(()=>{f.current&&E.F(e,f.current)}):E.F(e),()=>{w.R(),E.R()}},[]),Zs(()=>{E.U()},[O]),(0,X.useImperativeHandle)(g,()=>({get cache(){return T.W()},get scrollOffset(){return w.T()},get scrollSize(){return Bs(w)},get viewportSize(){return w.o()},findItemIndex:e=>T.p(e-w.M()),getItemOffset:w.i,getItemSize:T.m,scrollToIndex:(e,t)=>Xs(E,w,T,e,t),scrollTo:e=>Js(E,e),scrollBy:e=>Ys(E,w,e)}),[]),o){let e=new Set(o);for(let[t,r]=w.$(n);t<=r;t++)e.add(t);js([...e]).forEach(e=>{e<v&&M.push(N(e))})}else for(let[e,t]=w.$(n);e<=t;e++)M.push(N(e));return(0,Z.jsx)(u,{ref:y,style:{contain:`size style`,overflowAnchor:`none`,flex:`none`,position:`relative`,width:D?j:`100%`,height:D?`100%`:j,pointerEvents:A?`none`:void 0},children:M})}),ac=X.createContext(void 0);function oc(){let e=X.useContext(ac);if(e===void 0)throw Error(je(53));return e}function sc(e,t,n){if(!e)return 0;let r=getComputedStyle(e),i=`${t}${n===`x`?`Inline`:`Block`}`,a=parseFloat(r[`${i}Start`]);return n===`x`&&t===`margin`?a*2:a+parseFloat(r[`${i}End`])}var cc=`base-ui-disable-scrollbar`,lc={className:cc,getElement(e){return(0,Z.jsx)(`style`,{nonce:e,href:cc,precedence:`base-ui:low`,children:`.${cc}{scrollbar-width:none}.${cc}::-webkit-scrollbar{display:none}`})}},uc=`data-has-overflow-x`,dc=`data-has-overflow-y`,fc=`data-overflow-x-start`,pc=`data-overflow-x-end`,mc=`data-overflow-y-start`,hc=`data-overflow-y-end`,gc=e=>t=>t?{[e]:``}:null,_c={hasOverflowX:gc(uc),hasOverflowY:gc(dc),overflowXStart:gc(fc),overflowXEnd:gc(pc),overflowYStart:gc(mc),overflowYEnd:gc(hc),cornerHidden:()=>null},vc=X.createContext(void 0),yc={disableStyleElements:!1};function bc(){return X.useContext(vc)??yc}var xc=`--scroll-area-corner-height`,Sc=`--scroll-area-corner-width`,Cc=`data-orientation`,wc={x:0,y:0},Tc={width:0,height:0},Ec={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},Dc={x:!0,y:!0,corner:!0},Oc=X.forwardRef(function(e,t){let{render:n,className:r,overflowEdgeThreshold:i,style:a,...o}=e,{xStart:s,xEnd:c,yStart:l,yEnd:u}=kc(i),d=De(),f=U(),p=U(),{nonce:m,disableStyleElements:h}=bc(),[g,_]=X.useState(!1),[v,y]=X.useState(!1),[b,x]=X.useState(!1),[S,C]=X.useState(!1),[w,T]=X.useState(!1),[E,D]=X.useState(Tc),[O,k]=X.useState(Tc),[A,j]=X.useState(Ec),[M,P]=X.useState(Dc),F=X.useRef(null),I=X.useRef(null),L=X.useRef(null),ee=X.useRef(null),te=X.useRef(null),R=X.useRef(null),z=X.useRef(null),B=X.useRef(null),ne=X.useRef(0),V=X.useRef(0),H=X.useRef(0),re=X.useRef(0),ie=X.useRef(`vertical`),ae=X.useRef(wc),W=X.useRef(null);function oe(e){let t=e?x:y,n=e?f:p;t(!0),n.start(500,()=>{t(!1)})}let se=J(e=>{let t=e.x-ae.current.x,n=e.y-ae.current.y;ae.current=e,n!==0&&oe(!0),t!==0&&oe(!1)}),ce=J(()=>{let e=I.current;e&&W.current===null&&(W.current=e.style.scrollSnapType,e.style.scrollSnapType=`none`)}),le=J(e=>{if(e.button!==0||B.current!==null&&(ie.current===`vertical`?te.current:R.current)?.hasPointerCapture(B.current))return;B.current=e.pointerId,ne.current=e.clientY,V.current=e.clientX,ie.current=e.currentTarget.getAttribute(Cc);let t=I.current;t&&(H.current=t.scrollTop,re.current=t.scrollLeft,ce()),(ie.current===`vertical`?te.current:R.current)?.setPointerCapture(e.pointerId)}),ue=J(e=>{if(e.pointerId!==B.current)return;B.current=null,(ie.current===`vertical`?x:y)(!1),W.current!==null&&(I.current&&(I.current.style.scrollSnapType=W.current),W.current=null);let t=ie.current===`vertical`?te.current:R.current;t?.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId)}),de=J(e=>{if(e.pointerId!==B.current)return;if(e.buttons%2==0){ue(e);return}let t=I.current;if(!t)return;let n=ie.current===`vertical`,r=n?te.current:R.current,i=n?L.current:ee.current;if(!r||!i)return;let a=n?`y`:`x`,o=sc(i,`padding`,a),s=sc(r,`margin`,a),c=n?r.offsetHeight:r.offsetWidth,l=(n?i.offsetHeight:i.offsetWidth)-c-o-s,u=n?e.clientY-ne.current:e.clientX-V.current,d=l<=0?0:u/l,f=n?t.scrollHeight:t.scrollWidth,p=n?t.clientHeight:t.clientWidth,m=(n?H.current:re.current)+d*(f-p);n?t.scrollTop=m:t.scrollLeft=m,e.preventDefault(),oe(n)});function fe(e){C(e.pointerType===`touch`)}function pe(e){if(fe(e),e.pointerType!==`touch`){let t=q(F.current,e.target);_(t)}}let me=X.useMemo(()=>({scrolling:v||b,hasOverflowX:!M.x,hasOverflowY:!M.y,overflowXStart:A.xStart,overflowXEnd:A.xEnd,overflowYStart:A.yStart,overflowYEnd:A.yEnd,cornerHidden:M.corner}),[v,b,M.x,M.y,M.corner,A]),he={role:`presentation`,onPointerEnter:pe,onPointerMove:pe,onPointerDown:fe,onPointerLeave(){_(!1)},style:{position:`relative`,[xc]:`${E.height}px`,[Sc]:`${E.width}px`}},ge=N(`div`,e,{state:me,ref:[t,F],props:[he,o],stateAttributesMapping:_c}),_e=X.useMemo(()=>({handlePointerDown:le,handlePointerMove:de,handlePointerUp:ue,handleScroll:se,disableViewportSnap:ce,cornerSize:E,setCornerSize:D,thumbSize:O,setThumbSize:k,hasMeasuredScrollbar:w,setHasMeasuredScrollbar:T,touchModality:S,cornerRef:z,scrollingX:v,scrollingY:b,hovering:g,setHovering:_,viewportRef:I,scrollbarYRef:L,scrollbarXRef:ee,thumbYRef:te,thumbXRef:R,rootId:d,hiddenState:M,setHiddenState:P,overflowEdges:A,setOverflowEdges:j,viewportState:me,overflowEdgeThreshold:{xStart:s,xEnd:c,yStart:l,yEnd:u}}),[le,de,ue,se,ce,E,O,w,S,v,b,g,d,M,A,me,s,c,l,u]);return(0,Z.jsxs)(ac.Provider,{value:_e,children:[!h&&lc.getElement(m),ge]})});function kc(e){let t=typeof e==`number`?{xStart:e,xEnd:e,yStart:e,yEnd:e}:e;return{xStart:Math.max(0,t?.xStart||0),xEnd:Math.max(0,t?.xEnd||0),yStart:Math.max(0,t?.yStart||0),yEnd:Math.max(0,t?.yEnd||0)}}function Ac(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}var jc=X.createContext(void 0);function Mc(e,t){return Math.max(0,e-t)}function Nc(e,t){if(t<=0)return 0;let n=Ac(e,0,t),r=n,i=t-n,a=r<=1,o=i<=1;return a&&o?r<=i?0:t:a?0:o?t:n}var Pc=`--scroll-area-overflow-x-start`,Fc=`--scroll-area-overflow-x-end`,Ic=`--scroll-area-overflow-y-start`,Lc=`--scroll-area-overflow-y-end`,Rc=`--scroll-area-thumb-height`,zc=`--scroll-area-thumb-width`,Bc=[Pc,Fc,Ic,Lc],Vc=!1;function Hc(){Vc||Qe||(typeof CSS<`u`&&`registerProperty`in CSS&&Bc.forEach(e=>{try{CSS.registerProperty({name:e,syntax:`<length>`,inherits:!1,initialValue:`0px`})}catch{}}),Vc=!0)}var Uc=X.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{viewportRef:o,scrollbarYRef:s,scrollbarXRef:c,thumbYRef:l,thumbXRef:u,cornerRef:d,cornerSize:f,setCornerSize:p,setThumbSize:m,rootId:h,setHiddenState:g,hiddenState:_,setHasMeasuredScrollbar:v,handleScroll:y,touchModality:b,setHovering:x,setOverflowEdges:S,overflowEdgeThreshold:C,viewportState:w}=oc(),T=wo(),E=X.useRef(!0),D=X.useRef([NaN,NaN,NaN,NaN]),O=U(),k=U(),A=J(()=>{let e=o.current,t=s.current,n=c.current,r=l.current,i=u.current,a=d.current;if(!e)return;let h=e.scrollHeight,_=e.scrollWidth,y=e.clientHeight,b=e.clientWidth,x=e.scrollTop,w=e.scrollLeft,E=D.current,O=Number.isNaN(E[0]);if(E[0]=y,E[1]=h,E[2]=b,E[3]=_,O&&v(!0),h===0||_===0)return;let k=Wc(e),A=k.y,j=k.x,M=b/_,N=y/h,P=Math.max(0,_-b),F=Math.max(0,h-y),I=0,L=0;j||(I=Nc(T===`rtl`?-w:w,P),L=P-I);let ee=A?0:Nc(x,F),te=A?0:F-ee,R=j?0:b,z=A?0:y,B=0,ne=0;!j&&!A&&(B=t?.offsetWidth||0,ne=n?.offsetHeight||0);let V=f.width===0&&f.height===0,H=V?B:0,re=V?ne:0,U=sc(n,`padding`,`x`),ie=sc(t,`padding`,`y`),ae=sc(i,`margin`,`x`),W=sc(r,`margin`,`y`),oe=R-U-ae,se=z-ie-W,ce=n?Math.min(n.offsetWidth-H,oe):oe,le=t?Math.min(t.offsetHeight-re,se):se,ue=Math.max(16,ce*M),de=Math.max(16,le*N);if(m(e=>Gc(e,{width:ue,height:de})),t&&r){let e=Kc(r,Rc,x,F,h,de,t.offsetHeight-de-ie-W);r.style.transform=`translate3d(0,${e}px,0)`}if(n&&i){let e=n.offsetWidth-ue-U-ae,t=Kc(i,zc,T===`rtl`?-w:w,P,_,ue,e);i.style.transform=`translate3d(${T===`rtl`?-t:t}px,0,0)`}let fe=[I,L,ee,te];Bc.forEach((t,n)=>{e.style.setProperty(t,`${fe[n]}px`)}),a&&p(e=>Gc(e,{width:B,height:ne})),g(e=>Gc(e,k));let pe={xStart:!j&&I>C.xStart,xEnd:!j&&L>C.xEnd,yStart:!A&&ee>C.yStart,yEnd:!A&&te>C.yEnd};S(e=>Gc(e,pe))});K(()=>{Hc()},[]),K(()=>{queueMicrotask(A)},[A,_,T,C.xStart,C.xEnd,C.yStart,C.yEnd]),K(()=>{o.current?.matches(`:hover`)&&x(!0)},[o,x]),K(()=>{let e=o.current;if(typeof ResizeObserver>`u`||!e)return;let t=!1,n=new ResizeObserver(()=>{if(!t){t=!0;let n=D.current;if(n[0]===e.clientHeight&&n[1]===e.scrollHeight&&n[2]===e.clientWidth&&n[3]===e.scrollWidth)return}A()});return n.observe(e),k.start(0,()=>{let t=ut(e,{subtree:!0});t.length!==0&&Promise.allSettled(t.map(e=>e.finished.then(Je))).then(A).catch(()=>{})}),()=>{n.disconnect(),k.clear()}},[A,o,k]);function j(){E.current=!1}let M={...h&&{"data-id":`${h}-viewport`},tabIndex:_.x&&_.y?-1:0,className:lc.className,style:{overflow:`scroll`},onScroll(){o.current&&(A(),(b||!E.current)&&y({x:o.current.scrollLeft,y:o.current.scrollTop}),O.start(100,()=>{E.current=!0}))},onWheel:j,onPointerMove:j,onPointerEnter:j,onKeyDown:j},P=N(`div`,e,{ref:[t,o],state:w,props:[M,a],stateAttributesMapping:_c}),F=X.useMemo(()=>({computeThumbPosition:A}),[A]);return(0,Z.jsx)(jc.Provider,{value:F,children:P})});function Wc(e){let t=e.clientHeight>=e.scrollHeight,n=e.clientWidth>=e.scrollWidth;return{y:t,x:n,corner:t||n}}function Gc(e,t){for(let n in t)if(e[n]!==t[n])return t;return e}function Kc(e,t,n,r,i,a,o){let s=Ac(n,0,r),c=n-s,l=Math.max(16,a*i/(i+Math.abs(c)));return e.style.setProperty(t,c?`${l}px`:``),(r?s/r*o:0)+(c>0?a-l:0)}var qc=X.createContext(void 0);function Jc(){let e=X.useContext(qc);if(e===void 0)throw Error(je(54));return e}var Yc=X.forwardRef(function(e,t){let{render:n,className:r,orientation:i=`vertical`,keepMounted:a=!1,style:o,...s}=e,{hovering:c,scrollingX:l,scrollingY:u,hiddenState:d,scrollbarYRef:f,scrollbarXRef:p,viewportRef:m,thumbYRef:h,thumbXRef:g,handlePointerDown:_,handlePointerUp:v,handleScroll:y,disableViewportSnap:b,rootId:x,thumbSize:S,hasMeasuredScrollbar:C,viewportState:w}=oc(),T=i===`vertical`,E={...w,hovering:c,scrolling:T?u:l,orientation:i},D=wo(),O=!C&&!a,k=T?d.y:d.x,A=a||!k;X.useEffect(()=>{if(!A)return;let e=m.current,t=T?f.current:p.current;if(!t)return;function n(t){if(!e||t.ctrlKey)return;let n=!T,r=n?`scrollLeft`:`scrollTop`,i=n?t.deltaX:t.deltaY;if(i===0)return;let a=n?e.scrollWidth-e.clientWidth:e.scrollHeight-e.clientHeight,o=n&&D===`rtl`?-a:0,s=n&&D===`rtl`?0:a,c=e[r];c<=o&&i<0||c>=s&&i>0||(t.preventDefault(),e[r]=Math.min(s,Math.max(o,c+i)),y({x:e.scrollLeft,y:e.scrollTop}))}return W(t,`wheel`,n,{passive:!1})},[D,y,T,p,f,A,m]);let j={...x&&{"data-id":`${x}-scrollbar`},"aria-hidden":!0,onPointerDown(e){if(e.button!==0)return;let t=Ue(e.nativeEvent),n=T?h.current:g.current;if(n&&q(n,t))return;let r=m.current;if(!r)return;let i=T?f.current:p.current;if(!n||!i)return;let a=T?`y`:`x`,o=sc(n,`margin`,a),s=sc(i,`padding`,a),c=T?n.offsetHeight:n.offsetWidth,l=i.getBoundingClientRect(),u=T?e.clientY-l.top-c/2-s+o/2:e.clientX-l.left-c/2-s+o/2,d=T?r.scrollHeight:r.scrollWidth,v=T?r.clientHeight:r.clientWidth,x=(T?i.offsetHeight:i.offsetWidth)-c-s-o;if(x<=0)return;let S=u/x,C=d-v;b(),T?r.scrollTop=S*C:r.scrollLeft=D===`rtl`?-(1-S)*C:S*C,y({x:r.scrollLeft,y:r.scrollTop}),_(e)},onMouseDown(e){e.preventDefault()},onPointerUp:v,onPointerCancel:v,style:{position:`absolute`,touchAction:`none`,WebkitUserSelect:`none`,userSelect:`none`,visibility:O?`hidden`:void 0,...T?{top:0,bottom:`var(${xc})`,insetInlineEnd:0,[Rc]:`${S.height}px`}:{insetInlineStart:0,insetInlineEnd:`var(${Sc})`,bottom:0,[zc]:`${S.width}px`}}},M=N(`div`,e,{ref:[t,T?f:p],state:E,props:[j,s],stateAttributesMapping:_c});return A?(0,Z.jsx)(qc.Provider,{value:i,children:M}):null}),Xc=X.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{thumbYRef:o,thumbXRef:s,handlePointerDown:c,handlePointerMove:l,handlePointerUp:u,scrollingX:d,scrollingY:f,hasMeasuredScrollbar:p}=oc(),m=Jc(),h=m===`vertical`;return N(`div`,e,{ref:[t,h?o:s],state:{scrolling:h?f:d,orientation:m},props:[{onPointerDown:c,onPointerMove:l,onPointerUp:u,onPointerCancel:u,style:{visibility:p?void 0:`hidden`,...h?{height:`var(--scroll-area-thumb-height)`}:{width:`var(--scroll-area-thumb-width)`}}},a]})}),Zc=l({block:`scroll-area`,elements:[`viewport`,`content`,`scrollbar`,`thumb`,`corner`]}),Qc={corner:{kWkggS:`lbjjy28o`,$$css:!0},root:{kB7OPa:`lb9f619`,kVAEAm:`lb1n2onr6`,$$css:!0},scrollbar:{kogj98:`lb10d6zji`,kaIpWk:`lb1vihcfj`,kmkexE:`lbbq4x80`,kWkggS:`lbjbqb8w`,kSiTet:`lb1d72f0e lbg01cxk`,kfzvcC:`lbjtggp9 lb47corl`,kIyJzY:`lb1x59bry`,kZKoxP:`lbey0qcv lbgmi5vj`,kzqmXN:`lbdv5nhs lb1mnm1az`,kgeoSG:`lb10tli2e`,k96MEf:`lb1ify4wq`,kSJ0CW:`lbs81dfj`,kEoFBp:`lb1hmns74`,kcTAPf:`lb5buv36 lbx6tml3`,kgzTxl:`lb1s3lflt lb1uphyuq`,kOlAkY:`lb1hodj4j lb1lntsp6`,$$css:!0},thumb:{kaIpWk:`lb1pjcqnp`,kWkggS:`lbur9dxv`,kZKoxP:`lb5yr21d`,kzqmXN:`lbh8yej3`,$$css:!0},viewport:{kI3sdo:`lb1a2a7pz`,kZeWKH:`lbxqldzo`,kVAEAm:`lb1n2onr6`,kZKoxP:`lb5yr21d`,$$css:!0}},$c=e=>kt(e).className,el=(e,t)=>typeof t==`function`?n=>c(e,t(n)):c(e,t),tl=({className:e,...t})=>(0,Z.jsx)(Oc,{...t,className:el(c($c(Qc.root),Zc()),e)});tl.displayName=`ScrollAreaRoot`;var nl=e=>{if(!e)return;let t=e===!0?`vertical`:e;return t===`horizontal`?`lobe-scroll-area-fade-horizontal`:t===`both`?`lobe-scroll-area-fade-both`:`lobe-scroll-area-fade`},rl=({className:e,scrollFade:t=!1,xstyle:n,...r})=>(0,Z.jsx)(Uc,{...r,className:el(c($c([Qc.viewport,xe.info,n]),Zc(`viewport`),nl(t)),e)});rl.displayName=`ScrollAreaViewport`;var il=rl,al=({className:e,...t})=>(0,Z.jsx)(Yc,{...t,className:el(c($c(Qc.scrollbar),Zc(`scrollbar`)),e)});al.displayName=`ScrollAreaScrollbar`;var ol=({className:e,...t})=>(0,Z.jsx)(Xc,{...t,className:el(c($c(Qc.thumb),Zc(`thumb`)),e)});ol.displayName=`ScrollAreaThumb`;var sl={root:{kUOVxO:`lba2rfrd`,k1xSpc:`lb78zum5`,kCS8Yb:`lb1t1x2f9`,kXwgrk:`lbdt5ytf`,kzQI83:`lb1iyjqo2`,kmuXW:`lbs83m0k`,kAzted:`lb2lwn1j`,$$css:!0},viewport:{kg3NbH:`lb9xwowr`,kCS8Yb:`lb1t1x2f9`,kzQI83:`lb1iyjqo2`,kmuXW:`lbs83m0k`,kZKoxP:`lbt7dq6l`,kAzted:`lb2lwn1j`,$$css:!0}},cl=20,ll=({children:e,className:t,itemSize:n,keepMounted:r,viewport:i,viewportProps:a,virtualizerRef:o,...s})=>{let c=(0,X.useRef)(null),l=Pe([c,a?.ref]),u=(0,Z.jsx)(ic,{itemSize:n,keepMounted:r,ref:o,scrollRef:c,ssrCount:Math.min(cl,X.Children.count(e)),children:e}),d=(0,Z.jsx)(rl,{tabIndex:-1,...a,ref:l,xstyle:sl.viewport});return(0,Z.jsxs)(tl,{"data-virtual":``,...s,className:kt(sl.root,t).className,children:[(0,X.cloneElement)(i??d,{children:u,...i&&{render:d}}),(0,Z.jsx)(al,{children:(0,Z.jsx)(ol,{})})]})};ll.displayName=`VirtualScrollArea`;function ul(){let e=(0,X.useRef)(!1),t=(0,X.useRef)(null),n=(0,X.useCallback)(()=>{e.current=!0,t.current&&clearTimeout(t.current),t.current=setTimeout(()=>{e.current=!1},120)},[]);return(0,X.useEffect)(()=>()=>{t.current&&clearTimeout(t.current)},[]),{markPointerScroll:n,pointerScrollRef:e,scrollGuardProps:{onPointerDown:n,onTouchMove:n,onWheel:n}}}var dl=`[role^="menuitem"], [role="option"]`,fl=`data-virtual-index`,pl=60,ml=e=>e==null||typeof e==`boolean`?``:typeof e==`string`||typeof e==`number`?String(e):Array.isArray(e)?e.map(ml).join(``):(0,X.isValidElement)(e)?ml(e.props.children):``,hl=(e,t,n)=>{if(!(0,X.isValidElement)(e))return{disabled:!0,label:``};let r=e.props,i=n?.(e,t)??r.label??r[`aria-label`]??ml(r.children);return{disabled:!!r.disabled||r[`aria-disabled`]===!0||r[`aria-disabled`]===`true`,label:i.trim()}},gl=(e,t,n)=>{if(e.length===0)return-1;let r=t.toLowerCase(),i=(n%e.length+e.length)%e.length;for(let t=0;t<e.length;t+=1){let n=(i+t)%e.length,a=e[n];if(!a.disabled&&a.label.toLowerCase().startsWith(r))return n}return-1},_l=(e,t)=>{if(t){for(let t=e.length-1;t>=0;--t)if(!e[t].disabled)return t;return-1}return e.findIndex(e=>!e.disabled)};function vl({children:e,enabled:t,getItemLabel:n,keepMounted:r,typeaheadResetMs:i=500}){let a=(0,X.useRef)(null),o=(0,X.useRef)(null),s=(0,X.useRef)(null),c=(0,X.useRef)(null),[l,u]=(0,X.useState)(null),d=(0,X.useRef)(null),[f,p]=(0,X.useState)(null),{pointerScrollRef:m,scrollGuardProps:h}=ul(),g=(0,X.useMemo)(()=>t?X.Children.map(e,(e,t)=>hl(e,t,n))??[]:[],[e,t,n]),_=(0,X.useCallback)(e=>{Object.hasOwn(e,`scrollIntoView`)||(e.scrollIntoView=(...t)=>{m.current||HTMLElement.prototype.scrollIntoView.call(e,...t)})},[m]),v=(0,X.useCallback)(()=>{let e=a.current;e&&!e.contains(document.activeElement)&&e.focus({preventScroll:!0})},[]),y=(0,X.useRef)(-1),b=(0,X.useCallback)(()=>{let e=d.current,t=a.current;if(e===null||!t)return!1;v();let n=t.scrollTop,r=n===y.current;if(y.current=n,!r)return!1;let i=t.querySelector(`[${fl}="${e}"]`),o=i&&(i.matches(dl)?i:i.querySelector(dl));return o?(_(o),s.current=o,o.focus({preventScroll:!0}),!0):!1},[_,v]);(0,X.useEffect)(()=>{let e=a.current;if(!t||!e)return;let n=new MutationObserver(()=>{if(d.current!==null){b();return}let t=s.current,n=document.activeElement;t&&!t.isConnected&&n===document.body?(s.current=null,e.focus({preventScroll:!0})):t&&n===t&&t.dispatchEvent(new FocusEvent(`focusin`,{bubbles:!0}))});return n.observe(e,{childList:!0,subtree:!0}),()=>n.disconnect()},[t,b]);let x=(0,X.useRef)(null);(0,X.useEffect)(()=>()=>{x.current!==null&&cancelAnimationFrame(x.current)},[]);let S=(0,X.useCallback)(e=>{c.current=e,d.current=e,u(e),p(e),a.current?.focus({preventScroll:!0}),y.current=-1,o.current?.scrollToIndex(e,{align:`nearest`}),x.current!==null&&cancelAnimationFrame(x.current);let t=0,n=()=>{x.current=null,b(),t+=1,d.current!==null&&t<pl?x.current=requestAnimationFrame(n):d.current!==null&&(d.current=null,p(null))};x.current=requestAnimationFrame(n)},[b]),C=(0,X.useRef)(``),w=(0,X.useRef)(null),T=(0,X.useRef)(null),E=(0,X.useCallback)(()=>{C.current=``,T.current&&clearTimeout(T.current),T.current=null},[]);(0,X.useEffect)(()=>()=>{T.current&&clearTimeout(T.current)},[]);let D=(0,X.useCallback)(e=>{if(!t||g.length===0||e.target instanceof HTMLElement&&e.target.matches(`input, textarea`))return;if(e.key===`Home`||e.key===`End`){let t=e.key===`End`,n=_l(g,t);if(n===-1)return;e.preventDefault(),e.stopPropagation(),E(),S(n);return}if(e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey||e.key===` `&&C.current===``)return;e.preventDefault(),e.stopPropagation();let n=C.current===``;g.every(e=>e.disabled||e.label[0]?.toLowerCase()!==e.label[1]?.toLowerCase())&&C.current===e.key&&(C.current=``),C.current+=e.key,T.current&&clearTimeout(T.current),T.current=setTimeout(E,i);let r=n||C.current.length===1?c.current??w.current??-1:w.current??c.current??-1,a=C.current.length===1?r+1:r,o=gl(g,C.current,a);o===-1?e.key!==` `&&E():(w.current=o,S(o))},[t,g,S,E,i]),O=(0,X.useMemo)(()=>t?X.Children.map(e,(e,t)=>{if(!(0,X.isValidElement)(e))return e;let{onFocus:n}=e.props;return(0,X.cloneElement)(e,{[fl]:t,onFocus:e=>{n?.(e);let r=e.target.closest(dl);r&&e.currentTarget.contains(r)&&(s.current=r,_(r)),c.current=t,u(t),d.current===t&&(d.current=null,p(null))}})}):e,[e,t,_]),k=(0,X.useMemo)(()=>{if(!t)return;let n=X.Children.count(e),i=new Set(r);l!==null&&i.add(l),f!==null&&i.add(f);let a=[...i].filter(e=>e>=0&&e<n);return a.length?a:void 0},[l,e,t,f,r]),A=(0,X.useCallback)(e=>{if(d.current===null)return;let t=a.current;t&&(e.relatedTarget&&t.contains(e.relatedTarget)||t.focus({preventScroll:!0}))},[]);return{keepMountedIndices:k,viewportProps:(0,X.useMemo)(()=>({...h,onBlur:A,onKeyDownCapture:D}),[A,D,h]),viewportRef:a,virtualChildren:O,virtualizerRef:o}}var yl=X.createContext(void 0);function bl(){let e=X.useContext(yl);if(e===void 0)throw Error(je(63));return e}var xl=`data-valid`,Sl=`data-invalid`,Cl={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},wl={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},Tl={disabled:!1,...wl},El={valid(e){return e===null?null:e?{[xl]:``}:{[Sl]:``}}},Dl=`data-checked`,Ol=`data-unchecked`,kl={...El,checked(e){return e?{[Dl]:``}:{[Ol]:``}}},Al={invalid:void 0,name:void 0,validityData:{state:Cl,errors:[],error:``,value:``,initialValue:null},setValidityData:Je,disabled:void 0,setTouched:Je,setDirty:Je,setFilled:Je,setFocused:Je,focusOwnerRef:{current:void 0},validationMode:`onSubmit`,shouldValidateOnChange:()=>!1,state:Tl,registerFieldControl:Je,validation:{getValidationProps:(e,t=f)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:Je,getInputControl:()=>null,commit:async()=>{},change:Je}},jl=X.createContext(Al);function Ml(e=!0){let t=X.useContext(jl);if(t.setValidityData===Je&&!e)throw Error(je(28));return t}function Nl(e,t,n){let{setFocused:r,focusOwnerRef:i}=Ml(),a=J(t=>{(t?!e:i.current===a)&&(i.current=t&&a,n?.(t),r(t))});return K(()=>{let e=t.current;return e?.getRootNode()?.activeElement===e&&a(!0),()=>a(!1)},[e,t,a]),a}function Pl(e,t,n,r,i=!0,a){let{registerFieldControl:o}=Ml(),s=vt(()=>Symbol());K(()=>{let c=s.current;i?o(c,{controlRef:e,getValue:r,id:t,name:a,value:n}):o(c,void 0)},[e,i,r,t,a,o,s,n]),K(()=>{let e=s.current;return()=>{o(e,void 0)}},[o,s])}var Fl=X.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:Je,validationMode:`onSubmit`,submitCountRef:{current:0}});function Il(){return X.useContext(Fl)}var Ll=X.createContext({controlId:void 0,registerControlId:Je,resetControlId:Je,labelId:void 0,setLabelId:Je,messageIds:[],setMessageIds:Je,getDescriptionProps:e=>e});function Rl(){return X.useContext(Ll)}function zl(e,t,n,r=!0,i,a){let[o,s]=X.useState(),c=De(i?`${i}-label`:void 0),l=!!a?.trim(),u=e??(l?void 0:t)??o;return K(()=>{let i=e||t||l||!r?void 0:Bl(n.current,c);o!==i&&s(i)}),u}function Bl(e,t){let n=Vl(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function Vl(e){if(!e)return;let t=e.parentElement;if(t&&t.tagName===`LABEL`)return t;let n=e.id;if(n){let t=e.nextElementSibling;if(t&&t.htmlFor===n)return t}let r=e.labels;return r&&r[0]}function Hl(e={}){let{id:t,enabled:n=!0}=e,{controlId:r,registerControlId:i,resetControlId:a}=Rl(),o=De(),s=vt(()=>Symbol()),c=X.useRef(!1),l=X.useRef(!1),u=J(()=>{c.current&&i!==Je&&(c.current=!1,i(s.current,void 0))});return K(()=>{if(!n||i===Je){u();return}let e;if(t!==void 0)l.current=!0,e=t;else if(l.current)e=o;else{a();return}e===void 0?u():(c.current=!0,i(s.current,e))},[t,n,i,a,o,s,u]),K(()=>u,[u]),(n?r:void 0)??t??o}var Ul=X.forwardRef(function(e,t){let{checked:n,className:r,defaultChecked:i,"aria-labelledby":a,form:o,id:s,inputRef:c,name:l,nativeButton:u=!1,onCheckedChange:d,readOnly:p=!1,required:m=!1,disabled:h=!1,render:g,uncheckedValue:_,value:v,style:y,...b}=e,{clearErrors:x}=Il(),{state:S,setTouched:C,setDirty:w,validityData:T,setFilled:E,validationMode:D,disabled:k,name:j,validation:M}=Ml(),{labelId:P}=Rl(),F=k||h,I=j??l,L=X.useRef(null),ee=Me(L,c,M.inputRef),R=X.useRef(null),z=Nl(F,R),B=De(),ne=Hl({id:s}),V=u?void 0:ne,[H,re]=Fr({controlled:n,default:!!i,name:`Switch`,state:`checked`});Pl(R,B,H,void 0,!F,l),K(()=>{E(H)},[H,E]),ms(H,()=>{x(I),w(H!==T.initialValue),M.change(H)});let{getButtonProps:U,buttonRef:ie}=ue({disabled:F,native:u}),ae=zl(a,P,L,!u,V,b[`aria-label`]),W={id:u?ne:B,role:`switch`,"aria-checked":H,"aria-readonly":p||void 0,"aria-required":m||void 0,"aria-labelledby":ae,onFocus(){z(!0)},onBlur(){let e=L.current;e&&!F&&(C(!0),z(!1),D===`onBlur`&&M.commit(e.checked))},onClick(e){if(p||F)return;e.preventDefault();let t=L.current;t&&O(t,e)}},oe={...M.getValidationProps(F),checked:H,disabled:F,form:o,id:V,name:I,required:m,style:I?te:A,tabIndex:-1,type:`checkbox`,"aria-hidden":!0,ref:ee,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(p){e.preventDefault();return}let t=e.currentTarget.checked,n=Y(dt,e.nativeEvent);d?.(t,n),n.isCanceled||re(t)},onClick(e){e.stopPropagation()},onFocus(){R.current?.focus()},...v===void 0?f:{value:v}},se=X.useMemo(()=>({...S,checked:H,disabled:F,readOnly:p,required:m}),[S,H,F,p,m]),ce=N(`span`,e,{state:se,ref:[t,R,ie],props:[W,b,U,e=>M.getValidationProps(F,e)],stateAttributesMapping:kl});return(0,Z.jsxs)(yl.Provider,{value:se,children:[ce,!H&&I&&_!==void 0&&(0,Z.jsx)(`input`,{type:`hidden`,form:o,name:I,value:_,disabled:F}),(0,Z.jsx)(`input`,{...oe,suppressHydrationWarning:!0})]})}),Wl=X.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=bl();return N(`span`,e,{state:o,ref:t,stateAttributesMapping:kl,props:a})}),Gl=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Kl=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},ql=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},Jl=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);function Yl(e,t,n,r){return e===t&&n===r?xn:i=>{let a=0,o=1,s=i;for(let t=0;;t++){s>=a&&s<=o||(s=(a+o)/2);let r=Jl(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(Jl(s+1e-7,e,n)-i-r)}return Jl(s,t,r)}}var Xl=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Zl=e=>t=>1-e(1-t),Ql=Yl(.33,1.53,.69,.99),$l=Zl(Ql),eu=Xl($l),tu=e=>e>=1?1:(e*=2)<1?.5*$l(e):.5*(2-2**(-10*(e-1))),nu=e=>1-Math.sin(Math.acos(e)),ru=Zl(nu),iu=Xl(nu),au=Yl(.42,0,1,1),ou=Yl(0,0,.58,1),su=Yl(.42,0,.58,1),cu=e=>Array.isArray(e)&&typeof e[0]!=`number`;function lu(e,t){return cu(e)?e[ql(0,e.length,t)]:e}var uu={linear:xn,easeIn:au,easeInOut:su,easeOut:ou,circIn:nu,circInOut:iu,circOut:ru,backIn:$l,backInOut:eu,backOut:Ql,anticipate:tu},du=e=>typeof e==`string`,fu=e=>{if(jn(e)){let[t,n,r,i]=e;return Yl(t,n,r,i)}return du(e)?uu[e]:e};function pu(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 mu({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=pu(s,r,e+1/3),a=pu(s,r,e),o=pu(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function hu(e,t){return n=>n>0?t:e}var gu=(e,t,n)=>e+(t-e)*n,_u=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},vu=[Xn,In,yn],yu=e=>vu.find(t=>t.test(e));function bu(e){let t=yu(e);if(!t)return!1;let n=t.parse(e);return t===yn&&(n=mu(n)),n}var xu=(e,t)=>{let n=bu(e),r=bu(t);if(!n||!r)return hu(e,t);let i={...n};return e=>(i.red=_u(n.red,r.red,e),i.green=_u(n.green,r.green,e),i.blue=_u(n.blue,r.blue,e),i.alpha=gu(n.alpha,r.alpha,e),In.transform(i))},Su=new Set([`none`,`hidden`]);function Cu(e,t){return Su.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function wu(e,t){return n=>gu(e,t,n)}function Tu(e){return typeof e==`number`?wu:typeof e==`string`?En(e)?hu:_n.test(e)?xu:ku:Array.isArray(e)?Eu:typeof e==`object`?_n.test(e)?xu:Du:hu}function Eu(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Tu(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Du(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Tu(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Ou(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]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var ku=(e,t)=>{let n=an(e),r=an(t);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?Su.has(e)&&!r.values.length||Su.has(t)&&!n.values.length?Cu(e,t):Gl(Eu(Ou(n,r),r.values),Jn(r)):hu(e,t)},Au=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function ju(e,t){let n=Au.exec(e);if(!n)return;let r=Au.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>Bn(gu(a,o,e))+i}function Mu(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return gu(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=ju(e,t);if(n)return n}return Tu(e)(e,t)}var Nu=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>gn.update(t,e),stop:()=>mn(t),now:()=>On.isProcessing?On.timestamp:er.now()}},Pu=2e4;function Fu(e,t=50,n=Pu,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function Iu(e,t=100,n){let{keyframes:r,velocity:i}=e,a=r&&r[r.length-1]-r[0],o=n({...e,velocity:i&&a?i*t/a:i,keyframes:[0,t]}),s=Math.min(Fu(o),Pu);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:Hn(s)}}var Lu=100,Ru=10,zu=1,Bu=800,Vu=.3,Hu=.3,Uu=.01,Wu=2,Gu=.005,Ku=.5,qu=.01,Ju=10,Yu=.05,Xu=e=>e<0?1/Math.max(1+e,Yu):Math.max(1-e,Yu);function Zu(e,t){if(!(e>1))return 1;let n=Math.sqrt(e*e-1),r=e-n,i=e+n,a=2*n*Math.exp(-t)*(1+t);return ed(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function Qu(e,t){return e*Math.sqrt(1-t*t)}var $u=12;function ed(e,t,n){let r=n;for(let n=1;n<$u;n++)r-=e(r)/t(r);return r}var td=.001;function nd({duration:e=Bu,bounce:t=Vu}){let n,r,i=Xu(t);e=or(qu,Ju,Hn(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=Qu(t,i),o=Math.exp(-r);return td-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=Qu(t*t,i);return(-n(t)+td>0?-1:1)*-a*o/s}):(n=t=>-.001+Math.exp(-t*e)*(t*e+1),r=t=>Math.exp(-t*e)*(-t*(e*e)));let a=5/e,o=ed(n,r,a),s=o*Zu(i,o*e),c=s*s;return{stiffness:c,damping:i*2*Math.sqrt(c),duration:Pn(e)}}var rd=(e,t)=>(t?e>=0:e>0)&&e<1/0;function id(e,t){if(rd(e,t))return e}function ad(e){let t=id(e.stiffness),n=id(e.damping,!0),r=id(e.mass),i={...e,stiffness:t??Lu,damping:n??Ru,mass:r??zu,isResolvedFromDuration:!1,isTimeDefined:(t??n??r)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(i.isTimeDefined){if(e.visualDuration){let t=Xu(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*Zu(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,nd(i)),i.isResolvedFromDuration=!0;rd(i.stiffness)&&rd(i.damping,!0)||(i.stiffness=Lu,i.damping=Ru)}return i}function od(e=Hu,t=Vu){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:c,duration:l,isResolvedFromDuration:u,isTimeDefined:d}=ad({...n}),f=e=>u?0:-Hn(e),p=s/(2*Math.sqrt(o*c)),m=Hn(Math.sqrt(o/c)),h=p*m,g={target:i,delta:i-r,velocity:f(n.velocity)||0,restSpeed:0,restDelta:0},_=()=>{let e=Math.abs(g.delta)<5;g.restSpeed=n.restSpeed||(e?Uu:Wu),g.restDelta=n.restDelta||(e?Gu:Ku)};_();let v,y,b;if(p<1){let e=Qu(m,p),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};b=()=>{t.A=(g.velocity+h*g.delta)/e,t.sinC=h*t.A+g.delta*e,t.cosC=h*g.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-h*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};v=e=>(n(e),g.target-t.env*(t.A*t.sin+g.delta*t.cos)),y=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(p===1){v=e=>g.target-Math.exp(-m*e)*(g.delta+(g.velocity+m*g.delta)*e);let e={C:0};b=()=>{e.C=g.velocity+m*g.delta},y=t=>Math.exp(-m*t)*(m*e.C*t-g.velocity)}else{let e=m*Math.sqrt(p*p-1),t=h-e,n=h+e,r=e<1||d?1/0:300/e,i=(e,t)=>Math.exp(t>r?(h-e)*r-h*t:-e*t),a={S:0,F:0};b=()=>{let t=(g.velocity+h*g.delta)/e;a.S=(g.delta+t)/2,a.F=(g.delta-t)/2},v=e=>g.target-a.S*i(t,e)-a.F*i(n,e),y=e=>t*a.S*i(t,e)+n*a.F*i(n,e)}b();let x=u&&l||null,S={calculatedDuration:x,retarget:(e,t)=>{g.target=e[e.length-1],g.delta=g.target-e[0],g.velocity=f(t),n.restSpeed&&n.restDelta||_(),S.calculatedDuration=x,a.done=!1,b()},velocity:e=>Pn(y(e)),next:e=>{let t=v(e);if(u)a.done=e>=l;else{let n=Pn(y(e));a.done=Math.abs(n)<=g.restSpeed&&Math.abs(g.target-t)<=g.restDelta}return a.value=a.done?g.target:t,a},toString:()=>{let e=Math.min(Fu(S),Pu),t=nn(t=>S.next(e*t).value,e,30);return e+`ms `+t}};return S}var sd=Object.assign(od,{applyToOptions:e=>{let t=Iu(e,100,od);return e.ease=t.ease,e.duration=Pn(t.duration),e.type=`keyframes`,e}});function cd({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=>e<s||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?o(g):g;_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:e?_+t:d},b,x,S=e=>{p(f.value)&&(b=e,x=sd({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function ld(e,t,n){let r=[],i=Tn.mix||Mu,a=e.length-1;for(let o=0;o<a;o++){let a=n?.(e[o],e[o+1])||i(e[o],e[o+1]);t&&(a=Gl(Array.isArray(t)?t[o]||xn:t,a)),r.push(a)}return r}function ud(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(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=ld(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=Kl(e[r],e[r+1],n);return s[r](i)};return n?t=>l(or(e[0],e[a-1],t)):l}function dd(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Kl(0,t,r);e.push(gu(n,1,i))}}function fd(e){let t=[0];return dd(t,e.length-1),t}function pd(e,t){return e.map(e=>e*t)}function md(e,t){return e.map(()=>t||su).splice(0,e.length-1)}function hd({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`,mixer:i}){let a=typeof t[0]==`number`?void 0:i,o=cu(r)?r.map(fu):fu(r)||su,s={done:!1,value:t[0]},c=-1;if(!a){for(let e=1;e<t.length;e++)if(t[e]!==t[e-1]){if(c>=0){c=-2;break}c=e-1}}if(c>=0){let r=n&&n.length===t.length?n:fd(t),i=r[c]*e,a=r[c+1]*e,l=t[c],u=t[c+1],d=Array.isArray(o)?o[c]:o,f=(Tn.mix||Mu)(l,u),p=t.length-2;return{calculatedDuration:e,next:t=>(s.value=c&&t<i?f(0):c<p&&(t>=a||!e)?typeof u==`number`?u:f(1):f(d(t>=a||!e?1:t<=i?0:(t-i)/(a-i))),s.done=t>=e,s)}}let l=ud(pd(n&&n.length===t.length?n:fd(t),e),t,{ease:Array.isArray(o)?o:md(t,o),mixer:a});return{calculatedDuration:e,next:t=>(s.value=l(t),s.done=t>=e,s)}}var gd=5;function _d(e,t,n){let r=Math.max(t-gd,0);return qn(n-e(r),t-r)}function vd(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):_d(t=>e.next(t).value,t,e.next(t).value)}var yd={decay:cd,inertia:cd,tween:hd,keyframes:hd,spring:sd};function bd(e){typeof e.type==`string`&&(e.type=yd[e.type])}var xd=40,Sd=(e,t)=>t-e>xd&&!Tn.useManualTiming?t:e,Cd=e=>e/100,wd=e=>Math.round(e*1e4)/1e4,Td=class extends dn{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,t=er.now();e&&e.updatedAt!==t&&this.tick(e.updatedAt=t),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),lr(this,this.options)}initAnimation(){let{options:e}=this;bd(e);let{type:t=hd,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||hd;this.mixKeyframes=void 0,s!==hd&&typeof o[0]!=`number`&&(this.mixKeyframes=Gl(Cd,e.mixer?.(o[0],o[1])||Mu(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Fu(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){this.currentTime=this.holdTime??Math.round(e-this.startTime)*this.playbackSpeed}tick(e,t=!1){let{generator:n,totalDuration:r,calculatedDuration:i}=this;if(this.startTime===null)return n.next(0);let{delay:a=0,keyframes:o,type:s,onUpdate:c,finalKeyframe:l}=this.options;this.startTime===this.pendingStartTime&&(this.startTime=Sd(this.startTime,e)),this.pendingStartTime=void 0,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 u=this.currentTime-a*(this.playbackSpeed>=0?1:-1),d=this.playbackSpeed>=0?u<0:u>r;this.currentTime=Math.max(u,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let f=this.generate(this.currentTime,d),{done:p}=f;d||(p=this.playbackSpeed>=0?i<1/0?this.currentTime>=r:p:this.currentTime<=0);let m=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&p);return m&&s!==cd&&(f.value=hn(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??wd((e-this.startTime)*this.playbackSpeed)}sampleAt(e,t){let{options:n,totalDuration:r}=this,i=this.at(e)-(n.delay||0);return i>=r&&n.type!==cd?hn(n.keyframes,n,t?void 0:n.finalKeyframe):this.generate(Math.max(i,0),i<0).value}generate(e,t){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o}=this,{keyframes:s,repeat:c,repeatType:l,repeatDelay:u}=this.options,d=e,f=n;if(c){let t=Math.min(e,r)/o,n=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),i===1&&n--,n=Math.min(n,c+1),n%2&&(l===`reverse`?(i=1-i,u&&(i-=u/o)):l===`mirror`&&(f=a)),d=or(0,1,i)*o}let p;return t?(this.delayState.value=s[0],p=this.delayState):p=f.next(d),i&&!t&&(p.value=i(p.value)),p}get duration(){return Hn(this.calculatedDuration)}get iterationDuration(){return this.duration+Hn(this.options.delay??0)}get time(){return Hn(this.currentTime)}set time(e){this.state===`finished`&&this.updateFinished(),e=Pn(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(){return vd(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(er.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Hn(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Nu,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??(this.pendingStartTime=n):this.startTime=n-this.holdTime/(this.playbackSpeed||1),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(er.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.driver?.stop(),this.driver=void 0,this.startTime=this.holdTime=null}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 Ed(e){return new Td(e)}var Dd={anticipate:tu,backInOut:eu,circInOut:iu};function Od(e){return e in Dd}function kd(e){typeof e.ease==`string`&&Od(e.ease)&&(e.ease=Dd[e.ease])}var Ad=class extends wn{constructor(e){kd(e),bd(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state===`running`?(er.now()-this.startTime)*this.speed:this.time*1e3}sample(e){if(!this.sampler){let{motionValue:e,onUpdate:t,onComplete:n,onPlay:r,onStop:i,element:a,...o}=this.options;this.sampler=new Td({...o,autoplay:!1}),this.sampler.stop()}return this.sampler.sample(Math.max(0,e)).value}liveValue(){let{state:e}=this;if(e===`running`||e===`paused`)return this.sample(this.elapsed())}updateMotionValue(e){let{motionValue:t,element:n,name:r}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let{speed:i}=this,a=this.elapsed(),o=this.state===`running`&&i?or(0,10,a):0,s=this.sample(a);n&&r&&pn(n,r,s),t.setWithVelocity(this.sample(a-o*Math.sign(i)),s,o/Math.abs(i||1))}},jd=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(rn.test(e)||e===`0`)&&!e.startsWith(`url(`));function Md(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 Nd(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=jd(i,t),s=jd(a,t);return!o||!s?!1:Md(e)||(n===`spring`||ar(n))&&r}function Pd(e){e.duration=0,e.type=`keyframes`}var Fd=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Id(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Fd.test(e[t]))return!0;return!1}var Ld=({mixer:e,keyframes:t})=>e&&typeof t[0]!=`number`&&t.some((n,r)=>r&&e(t[r-1],n)),Rd=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),zd=()=>!Tn.useManualTiming&&Object.hasOwnProperty.call(Element.prototype,`animate`);function Bd(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(sr.has(n)||Rd.has(n)))return!1;let c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return zd()&&(sr.has(n)||Rd.has(n)&&Id(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`&&!Ld(e)}var Vd=200,Hd=.001,Ud=.1,Wd=.001,Gd=100,Kd=100,qd=new Set([`linear`,`easeIn`,`easeOut`,`easeInOut`]),Jd=e=>qd.has(e),Yd=new WeakMap,Xd=(e,t)=>{let n=Yd.get(e);return n?.[0]!==t&&(n=[t,`linear(`+fd(Array(t+1)).map(t=>wd(e(t))+` `+wd(t*100)+`%`)+`)`],Yd.set(e,n)),n[1]},Zd=(e,t)=>Math.min(Vd,Math.max(2,Math.ceil((t-e)/10))),Qd=(e,t)=>Math.abs(e-t)<=Hd,$d=(e,t)=>e-t,ef=(e,t,n)=>fd(Array(n+1)).map(n=>gu(e,t,n)),tf=e=>e.motionValue.owner,nf=e=>Nn.get(e),rf=({state:e})=>e===`idle`||e===`finished`,af=(e,t)=>e.latestValues?e.latestValues[t]:e.getValue(t)?.get(),of=({name:e,motionValue:t})=>e&&Ln.includes(e)&&t?.owner?.current instanceof HTMLElement&&zd()&&rr();function sf(e){let t=tf(e),{onUpdate:n,transformTemplate:r}=t.getProps();return!e.isHandoff&&!n&&!e.hasOnUpdate&&!r&&e.type!==`inertia`&&(af(t,`transform`)||`none`)===`none`&&!af(t,`pathRotation`)&&!t.projection?.isProjecting()&&!Ld(e)}var cf=class{constructor(e,t,n,r){this.element=e,this.update=t,this.makeDriver=n,this.animation=r}get js(){return this.driver||=this.makeDriver(this.update)}now(){return this.driver||this.makeDriver!==Nu?this.js.now():On.isProcessing?On.timestamp:er.now()}start(e=!0){let t=nf(this.element);!t||t.isJS?this.js.start(e):t.schedule(!1,!e)}stopJS(){this.driver?.stop()}stop(){this.stopJS();let e=nf(this.element);e&&!e.isFinishing&&e.release(this.animation)}},lf,uf=class extends Td{constructor(e){let t=tf(e).current,{driver:n=Nu}=e,r,i=sf(e);e.driver=e=>new cf(t,e,n,r),super(e),r=this;let a=this.driver;a&&(a.animation=this),this.canAccelerate=i;let{stop:o}=this;this.stop=()=>{this.isAccelerated()&&this.sync(),o()}}offsets(){let{keyframes:e,times:t}=this.options;return t||(this.offsetsOf!==e&&(this.offsetsOf=e,this.cachedOffsets=fd(e)),this.cachedOffsets)}get group(){return nf(tf(this.options).current)}get js(){return this.driver?.js}stopJS(){this.driver?.stopJS()}get name(){return this.options.name}timing(){let{startTime:e,speed:t,totalDuration:n}=this,{delay:r=0,repeatType:i}=this.options;return this.holdTime===null?n===1/0?[e+r/t,this.resolvedDuration*(i===`loop`?1:2)/t||1]:[e+(r+n)/t,0]:[1/0,0]}isAccelerated(){let{group:e,state:t}=this;return e?.tracks.has(this)&&!e.isJS&&this.canAccelerate&&(t===`running`||t===`paused`)}liveValue(){return this.isAccelerated()?this.sampleAt(er.now()):void 0}tween(){let{keyframes:e,type:t,repeat:n,delay:r=0}=this.options,i=-1;if(n||t!==hd||this.holdTime!==null)return;for(let t=1;t<e.length;t++)if(e[t]!==e[t-1]){if(i>=0)return;i=t-1}let{ease:a}=this.options;cu(a)&&(a=a[i]);let o=this.offsets(),s=e=>this.startTime+(r+o[e]*this.totalDuration)/this.speed;if(i>=0){let e=jn(a)?Zt(a):Jd(a)?fn[a]:fu(a);return[s(i),s(i+1),typeof e==`string`||Qd(e(0),0)&&Qd(e(1),1)?e:void 0]}}boundaries(e,t){let{startTime:n,speed:r,resolvedDuration:i,options:a}=this,{delay:o=0,repeat:s=0,repeatDelay:c=0,repeatType:l,type:u}=a,d=(u||hd)===hd?this.offsets():[0,1],f=n+o/r,p=[];if(this.holdTime!==null||!(i>0))return p;for(let n=Math.max(0,Math.floor((e-f)*r/i));n<=s;n++){let a=f+n*i/r;if(a>t)break;for(let o of d){let s=a+(n%2&&l&&l!==`loop`?1-o:o)*(i-c)/r;s>e&&s<t&&p.push(s)}}return p}numberAt(e){return parseFloat(this.sampleAt(e,!0))}sync(){let e=er.now(),t=this.sampleAt(e,!0);this.options.motionValue.setWithVelocity(this.holdTime===null?this.sampleAt(e-10,!0):t,t,10)}play(){this.isStopped||((this.group||pf(tf(this.options))).tracks.add(this),super.play())}pause(){super.pause(),this.isAccelerated()&&this.group.schedule(!1)}complete(){super.complete();let{group:e}=this;e&&!e.isJS&&this.tick(er.now())}get time(){return this.isAccelerated()?Hn(or(0,this.totalDuration,this.at(er.now())-(this.options.delay||0))):super.time}set time(e){(lf??=Object.getOwnPropertyDescriptor(Td.prototype,`time`).set).call(this,e)}attachTimeline(e){return this.canAccelerate=!1,this.group?.demote(!0),super.attachTimeline(e)}},df,ff=e=>{df||queueMicrotask(()=>{let e=df;df=void 0,e.forEach(e=>e())}),(df||=[]).push(e)};function pf(e){let t=e.current,n=new Set,r=new Map,i={},a=[],o=new Map,s=[],c=!1,l=!1,u=!1,d=!1,f=-1/0,p,m=1/0,h,g=e=>{for(let t of n)if(t.name===e)return!0},_=(t,n)=>{let o={};for(let s of t===void 0?Ln:a){let a=r.get(s),c=t===void 0?af(e,s):a?a.sampleAt(n>t&&!a.timing()[1]?n:t):i[s];c!==void 0&&(o[s]=c)}return o},v=(e,t)=>{let n=``;for(let r in e){let i=e[r];t&&Mn(r,i)||(n+=bn(r,i)+` `)}return(t?n.trim():n)||`none`},y=(e,t)=>v(_(e,t)),b=(e=_())=>{t.style.transform=v(e,!0)},x=e=>{e.onfinish=e.oncancel=null,e.cancel()},S=(e=!0)=>{clearTimeout(p),m=1/0,h=void 0,e&&b(),s.forEach(({animation:e})=>x(e)),s=[]},C=(e,n)=>new Animation(new KeyframeEffect(t,e,n)),w=(e,t,n=1/0)=>{let r={animation:e,offset:t,end:n};e.startTime=er.now()+t,n<1/0&&(e.onfinish=()=>{r.isDone=!0,s.some(e=>e.end===1/0)&&(x(e),s=s.filter(e=>e!==r)),F.schedule(!1)}),e.oncancel=()=>s.includes(r)&&F.demote(),s.push(r)},T=(e,t,n)=>{let r=(t,n)=>Math.abs(e(n)-e(t)),i=r(t,n);for(;n-t>.01;){let e=(t+n)/2;r(t,e)>r(e,n)?n=e:t=e}return r(t,n)>i/2?[t,n]:[]},E=(e,t,n,r)=>{let i=Zd(t,n);if(r.length*4>i)return;let a;for(let r of e){let e=r.numberAt(t),i=(r.numberAt((t+n)/2)-e)/(r.numberAt(n)-e);if(i===i){if(a===void 0)a=i;else if(!Qd(i,a))return}}let o=ef(t,n,i).concat(r).sort($d),s=e=>Kl(t,n,e),c,l;for(let n of e){let e=n.numberAt(t),r=o.map(t=>n.numberAt(t)-e),i=r[r.length-1],a=r.some(e=>Math.abs(e)*Hd>Math.abs(i))?0:i,s=r.map(e=>a?e/a:e);if(a&&!c)c=s,l=t=>(n.numberAt(t)-e)/a;else if(s.some((e,t)=>!Qd(e,a&&c[t])))return}if(!c||c.every((e,t)=>Qd(e,s(o[t]))))return`linear`;let u=[],d=(e,t=l(e))=>u.push(wd(t)+` `+wd(s(e)*100)+`%`);return c.forEach((e,t)=>{t&&Math.abs(e-c[t-1])>.2&&T(l,o[t-1],o[t]).forEach(e=>d(e)),d(o[t],e)}),`linear(`+u+`)`},D=(e,t,n,r)=>{let i=[t],a=[],o=n,s=t;for(let r of e){let e=r.tween();if(e?.[2]!==`linear`){let[i,c]=r.timing(),[l,u]=e||[t,c?n:i];o=Math.min(o,l),s=Math.max(s,u),a.push(r)}}o=Math.max(t,o),s=Math.min(n,s);let c=(e,t)=>a.every(n=>!(Math.abs(n.numberAt((e+t)/2)-(n.numberAt(e)+n.numberAt(t))/2)>(n.name.startsWith(`scale`)?Wd:Ud))),l=(t,n,r)=>{if(n-t<1||c(t,n))i.push(n);else if(r<4)l(t,(t+n)/2,r+1),l((t+n)/2,n,r+1);else{for(let r of e)i.push(...T(e=>r.numberAt(e),t,n));i.push(n)}},u=s>o?ef(o,s,Math.ceil((s-o)/100)):[];u.push(n);for(let e of r)u.push(e,Math.min(e+.01,n));let d=t;for(let e of u.sort($d))e>d&&l(d,e,0),d=e;return i.sort($d)},O=e=>{let t;for(let n of e){let e=n.tween();if(!e||t&&(Math.abs(e[0]-t[0])>1||Math.abs(e[1]-t[1])>1))return;t=[e[0],e[1],!t||e[2]===t[2]?e[2]:void 0]}return t},k=(e,t,n,r,i={fill:`both`},a)=>{let o=r?[]:e.flatMap(e=>e.boundaries(t,n)),s=r||E(e,t,n,o),c=s?[t,n]:D(e,t,n,o),l=c.map(e=>y(e,a)),u={transform:l};return s||(u.offset=c.map(e=>Kl(t,n,e))),l.every(e=>e===l[0])&&(b(_(t,a)),u=null),C(u,{...i,duration:n-t,easing:s||`linear`})},A=e=>{let t=er.now()+e;t<m&&(clearTimeout(p),m=t,p=setTimeout(()=>{m=1/0,F.schedule(!1)},e))},j=t=>{let c=t,l=0,u=0,d=[],f=[],p=new Set;r.clear(),o=new Map;for(let e of n){r.set(e.name,e);let[n,i]=e.timing(),a=n===1/0;if(o.set(e,[e.at(t),e.speed,a]),!a){if(e.speed<0)return;if(i){if(l){let e=(n-u)/i;if(Math.abs(i-l)>1||Math.abs(e-Math.round(e))*l>1)return}else l=i,u=n;f.push(e)}else p.add(n);d.push(e),c=Math.max(c,n)}}i={},a=Ln.filter(t=>{if(r.has(t))return!0;let n=i[t]=af(e,t);return n!==void 0&&!Mn(t,n)}),S(!1);let m=!l&&O(d);try{if(c>t){let e;if(m&&m[1]>t){let[n,r,i]=m;if(n-t>Kd)return d.forEach(e=>e.sync()),A(h=n-t-Kd),!0;e=typeof i==`string`?i:i?Xd(i,Zd(n,r)):E(d,n,r,[]),e&&w(k(d,n,r,e,{fill:`both`,endDelay:c-r}),n-t,c-n)}e||w(k(d,t,c),0,c-t),p.forEach(e=>e<c-1&&w(C(null,{duration:e-t}),0,e-t))}if(l){let e=u+Math.floor((c-u)/l)*l;w(k(f,e,e+l,void 0,{iterations:1/0,iterationStart:(c-e)/l,fill:`forwards`},c),c-t)}}catch{return}return s.length||S(),!0},M=(e,t)=>{let r,i=0;for(let t of n){let n=o.get(t);if(!n)return!1;let[a,c,l]=n,u=t.at(e),d=t.timing()[0]===1/0;if(l){if(d&&(u===a||!s.length))continue;return!1}let f=(u-a)/c,p=d?0:t.speed/c;if(r===void 0)r=f,i=p;else if(Math.abs(f-r)>1||p!==i)return!1}if(r===void 0)return!0;if(!s.length){if(h===void 0||t&&i)return!1;if(i){let e=(h-r)/i;if(e<1)return!1;A(e)}return!0}for(let{offset:e,end:n,isDone:i}of s){let a=r-e;if(n<1/0&&(i?a<n-1:a<0&&(t||e<=0)||a>=n))return!1}for(let{animation:t,offset:n,isDone:a}of s){if(a)continue;let o=r-n;i&&t.updatePlaybackRate&&t.playState===`running`&&Math.abs(Number(t.currentTime)-o)<20?t.playbackRate!==i&&t.updatePlaybackRate(i):i?(t.playbackRate!==i&&(t.playbackRate=i),t.startTime=e-o/i):(t.startTime=null,t.currentTime=o)}return!0},N=()=>!n.size&&(u=!0,nf(t)===F&&Nn.delete(t),F.isJS||S(),!0),P=()=>{let t=er.now();if(F.isJS||(F.isFinishing=!0,n.forEach(n=>{let[r,a]=n.timing();n.state===`running`&&n.speed>0&&!a&&r<=t+1&&(n.complete(),i[n.name]=af(e,n.name),o.has(n)||(c=!0))}),F.isFinishing=!1),l=!1,u||(n.forEach(e=>rf(e)&&n.delete(e)),N()))return;for(let e of n)if(!e.canAccelerate)return F.demote(!0);F.isJS&&(F.isJS=!1,c=!0,n.forEach(e=>e.stopJS()));let r=c,a=d;if(c=d=!1,r||!M(t,a)){if(a){if(t-f<Gd)return F.demote();f=t}if(!j(t))return F.demote()}else if(h!==void 0&&!a)return;n.forEach(e=>e.timing()[0]===1/0&&e.sync())},F={tracks:n,isJS:!1,isFinishing:!1,schedule(e,t){u||(c||=e,d||=!!t,l||(l=!0,On.isProcessing?gn.render(P,!1,!0):ff(P)))},release(e){rf(e)&&n.delete(e),N()||F.schedule(!0)},check(){if(!F.isJS){for(let t in i)if(af(e,t)!==i[t]&&!g(t))return F.schedule(!0,!0)}},demote(e){if(!(F.isJS||u))return n.forEach(t=>{t.isAccelerated()&&t.sync(),e||(t.canAccelerate=!1)}),F.isJS=!0,o=new Map,S(),n.forEach(e=>e.state===`running`&&e.js?.start()),!0}};return Nn.set(t,F),F}var mf=class extends dn{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=er.now();let{keyframes:t,name:n,motionValue:r,element:i}=e,a=e;a.autoplay??=!0,a.delay??=0,a.type??=`keyframes`,a.repeat??=0,a.repeatDelay??=0,a.repeatType??=`loop`;let o=i?.KeyframeResolver||Qt;this.keyframeResolver=new o(t,(e,t,n)=>this.onKeyframesResolved(e,t,a,!n),n,r,i),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=er.now();let u=Nd(e,i,a,o);u||((Tn.instantAnimations||!s)&&l?.(hn(e,n,t)),e[0]=e[e.length-1],Pd(n),n.repeat=0);let{onComplete:d}=n;n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{d?.(),this.notifyFinished()};let f=u&&!c&&Bd(n),p=!f&&of(n);r&&(f||p||this.resolvedAt!==this.createdAt)&&(n.startTime??=Sd(this.createdAt,this.resolvedAt));let m;if(f){n.element=n.motionValue?.owner?.current;try{m=new Ad(n)}catch{m=new Td(n)}}else m=p?new uf(n):new Td(n);this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this._animation.finished:super.finished}then(e,t){return this.finished.finally(e).then(()=>{})}liveValue(){return this._animation?.liveValue?.()}get animation(){return this._animation||(this.keyframeResolver?.resume(),cn()),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?.cancel(),this.keyframeResolver?.cancel()}},hf=class{constructor(e){this.stop=()=>{for(let e of this.animations)e.stop()},this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){for(let t of this.animations)t.time=e}get speed(){return this.getAll(`speed`)}set speed(e){for(let t of this.animations)t.speed=e}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return gf(this.animations,`duration`)}get iterationDuration(){return gf(this.animations,`iterationDuration`)}play(){for(let e of this.animations)e.play()}pause(){for(let e of this.animations)e.pause()}cancel(){for(let e of this.animations)e.cancel()}complete(){for(let e of this.animations)e.complete()}};function gf(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var _f=class extends hf{then(e,t){return this.finished.finally(e).then(()=>{})}};function vf(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function yf(e,t){let n=e?.[t]??e?.default??e;return n===e?n:vf(n,e)}var bf={type:`spring`,stiffness:500,damping:25,restSpeed:10},xf=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Sf={type:`keyframes`,duration:.8},Cf={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},wf=(e,{keyframes:t})=>t.length>2?Sf:sn.has(e)?e.startsWith(`scale`)?xf(t[1]):bf:Cf,Tf=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`,`out`,`mixer`]);function Ef(e){for(let t in e)if(!Tf.has(t))return!0;return!1}var Df=(e,t,n,r={},i,a)=>o=>{let s=yf(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=Pn(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,hasOnUpdate:!!s.onUpdate};Ef(s)||Object.assign(u,wf(e,u)),u.duration&&=Pn(u.duration),u.repeatDelay&&=Pn(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Pd(u),u.delay===0&&(d=!0)),(Tn.instantAnimations||Tn.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Pd(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=hn(u.keyframes,s);if(e!==void 0){gn.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Td(u):new mf(u)},Of=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function kf(e){let t=Of.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Af(e,t,n=1){let[r,i]=kf(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return cr(e)?parseFloat(e):e}return En(i)?Af(i,t,n+1):i}var jf=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Ln]),Mf={test:e=>e===`auto`,parse:e=>e},Nf=e=>t=>t.test(e),Pf=[Cn,kn,Yt,un,Wn,$n,Mf],Ff=e=>Pf.find(Nf(e));function If(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||nr(e)}var Lf=new Set([`auto`,`none`,`0`]);function Rf(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Lf.has(t)&&vn(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=tn(n,i))}var zf=class extends Qt{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}scheduleResolve(){if(this.canReadNow()&&(this.readKeyframes(),!this.needsMeasurement))return this.complete();super.scheduleResolve()}canReadNow(){let{unresolvedKeyframes:e,element:t,motionValue:n}=this,r=e[0]??n?.get();if(!t?.current||r===void 0)return!1;for(let t=0;t<e.length;t++)if(Kn(t?e[t]:r))return!1;return!0}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t?.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),En(r))){let i=Af(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!jf.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=Ff(r),o=Ff(i);if(Kn(r)!==Kn(i)&&Xt[n])this.needsMeasurement=!0;else if(a!==o){if(Rn(a)&&Rn(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Xt[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||If(e[t]))&&n.push(t);n.length&&Rf(e,n,t)}measure(){let{element:e,name:t}=this;return Xt[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e?.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e?.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=t.length-1,r=t[n];t[n]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.resolveNoneKeyframes()}},Bf=[];function Vf(e){Hf(e),Bf.unshift(e)}function Hf(e){ir(Bf,e)}function Uf(e){return Bf.find(t=>t.test(e))}function Wf(e,t,n={},r){let i=[],{velocity:a,path:o}=n,s=n.reduceMotion??r?.shouldReduceMotion;o?.animateValues&&r&&(t={...t},o.animateValues(e,t,n,0,i));for(let o in t){if(o===`transition`||o===`transitionEnd`)continue;let c=t[o];if(c===void 0)continue;let l=e(o),u=l.get();u!==void 0&&!l.isAnimating()&&!Array.isArray(c)&&c===u&&!a?gn.update(()=>l.set(c)):(l.run(Df(o,l,c,s&&jf.has(o)?{type:!1}:n,r)),l.animation&&i.push(l.animation))}let{transitionEnd:c}=t;if(c){let t=()=>gn.update(()=>{for(let t in c)e(t).set(c[t])});i.length?Promise.all(i).then(t):t()}return i}function Gf(e,t,n,r,i){let a,o=!1,s=Wf(r=>{let s=a?.[r]??e.get(t,r);if(!s){let c;if(!i){let i=n[r];c=Kf(i)??e.read(t,r,i)}s=Vn(c,{owner:i}),o?e(t,{[r]:s}):(a||={})[r]=s}return s},n,r,i);return o=!0,a&&e(t,a),s}function Kf(e){let t=Array.isArray(e)?e[0]:void 0;return t===null?void 0:t}function qf(e){return ur(e)&&`ownerSVGElement`in e}var Jf={};function Yf(e){return Jf.current?.add(e),e}var Xf=e=>Jf.current?Jf.current.bind(e):e;function Zf(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=t?t.current:Jf.current?.root||document,i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var Qf=class{constructor(e=gn.render){this.step=e,this.values=new Map,this.pending=[],this.numPending=0,this.flush=()=>{let{pending:e,numPending:t}=this;this.numPending=0;for(let n=0;n<t;n++)e[n]()}}set(e,t,n,r){if(this.values.get(e)?.onRemove(),r)for(let e of this.values.values())e.value===r&&(n=e.render);let i=()=>n&&this.schedule(n);t.get()!==void 0&&i();let a=t.on(`change`,i),o=()=>{a(),n&&!r&&this.cancel(n),this.values.get(e)?.onRemove===o&&this.values.delete(e)};return this.values.set(e,{value:t,render:r?void 0:n,onRemove:o}),o}get(e){return this.values.get(e)?.value}release(){let e=new Map;return this.values.forEach((t,n)=>{e.set(n,t.value),t.onRemove()}),this.transformKeys=this.transformValues=void 0,e}schedule(e){let{pending:t,numPending:n}=this;for(let r=0;r<n;r++)if(t[r]===e)return;n||this.step(this.flush),t[this.numPending++]=e}cancel(e){let{pending:t}=this;for(let n=0;n<this.numPending;n++)if(t[n]===e){t[n]=t[--this.numPending];return}}};function $f(e,{step:t,...n}={}){let r=new WeakMap;return Object.assign((n,i)=>{let a=r.get(n)??new Qf(t);r.set(n,a);let o=[];for(let t in i){let r=i[t],s=e(n,a,t,r);o.push(s)}return()=>{for(let e of o)e()}},n,{get:(e,t)=>r.get(e)?.get(t),flush:e=>r.get(e)?.flush(),state:e=>r.get(e)})}function ep(e){let t=``,{transformKeys:n=[],transformValues:r={}}=e;for(let e=0;e<n.length;e++){let i=n[e],a=r[i].getCurrent();a!==void 0&&(Mn(i,a)||(t+=(t&&` `)+bn(i,a)))}let i=e.get(`pathRotation`)?.get();return i&&(t+=(t&&` `)+bn(`rotate`,i)),t||`none`}var tp=new Set([`originX`,`originY`,`originZ`]),np=(e,t)=>tr(e.get(t)?.get(),on[t]),rp=(e,t,n,r)=>{let i,a;if(sn.has(n)){if(n!==`pathRotation`){let e=t.transformKeys??=[];(t.transformValues??={})[n]=r,e.includes(n)||(e.push(n),e.sort((e,t)=>Ln.indexOf(e)-Ln.indexOf(t)))}t.get(`transform`)||(!dr(e)&&!t.get(`transformBox`)&&rp(e,t,`transformBox`,new An(`fill-box`)),t.set(`transform`,new An(`none`),()=>{Nn.get(e)?.check(),e.style.transform=ep(t)})),a=t.get(`transform`)}else tp.has(n)?(t.get(`transformOrigin`)||t.set(`transformOrigin`,new An(``),()=>{let n=np(t,`originX`)??`50%`,r=np(t,`originY`)??`50%`,i=np(t,`originZ`)??0;e.style.transformOrigin=`${n} ${r} ${i}`}),a=t.get(`transformOrigin`)):i=en(n)?()=>{e.style.setProperty(n,r.getCurrent())}:()=>{e.style[n]=tr(r.getCurrent(),on[n])};return t.set(n,r,i,a)},ip=e=>dr(e)||qf(e),ap=(e,t)=>{if(sn.has(t))return ln(e,t);let n=getComputedStyle(e),r=en(t)?n.getPropertyValue(t):n[t];return typeof r==`string`&&r.trim()||0},op=$f(rp,{test:ip,read:ap});function sp(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}function cp(e,t){if(!(t in e))return!1;let n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t)||Object.getOwnPropertyDescriptor(e,t);return n&&typeof n.set==`function`}var lp=(e,t,n,r,i=n)=>{let a=cp(e,i);!a&&(i.startsWith(`data`)||i.startsWith(`aria`))&&(i=sp(i));let o=on[n]||on[i],s=a?()=>{e[i]=tr(r.get(),on[n])}:()=>{let t=tr(r.get(),o);t==null?e.removeAttribute(i):e.setAttribute(i,String(t))};return t.set(n,r,s)};function up(e,t,n,r){return gn.render(()=>e.setAttribute(`pathLength`,`1`)),n===`pathOffset`?t.set(n,r,()=>{let t=r.get();e.setAttribute(`stroke-dashoffset`,`${-t}`)}):(t.get(`stroke-dasharray`)||t.set(`stroke-dasharray`,new An(`1 1`),()=>{let n=t.get(`pathLength`)?.get()??1,r=t.get(`pathSpacing`)?.get();e.setAttribute(`stroke-dasharray`,`${n} ${r??1-Number(n)}`)}),t.set(n,r,void 0,t.get(`stroke-dasharray`)))}var dp=$f((e,t,n,r)=>n.startsWith(`path`)&&!sn.has(n)?up(e,t,n,r):n.startsWith(`attr`)?lp(e,t,n,r,fp(n)):n===`d`?t.set(n,r,()=>{let t=r.get()?.replace(/path\(|["')]/g,``);t===void 0?e.removeAttribute(n):e.setAttribute(n,t)}):(sn.has(n)||tp.has(n)||en(n)||n in e.style?rp:lp)(e,t,n,r),{test:qf,read:(e,t)=>sn.has(t)?on[t]?.default||0:en(t)||zn.includes(t)?ap(e,t)||e.getAttribute(sp(t))||0:(t=fp(t),e.getAttribute(sp(t))??e.getAttribute(t)??void 0)});function fp(e){return e.replace(/^attr([A-Z])/,(e,t)=>t.toLowerCase())}function pp({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function mp({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function hp(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 gp(e){return e===void 0||e===1}function _p({scale:e,scaleX:t,scaleY:n}){return!gp(e)||!gp(t)||!gp(n)}var vp=[`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skewX`,`skewY`];function yp(e){return _p(e)||xp(e)||bp(e)}function bp(e){return e.z||e.rotate||e.rotateX||e.rotateY||e.rotateZ||e.skewX||e.skewY}function xp(e){return Sp(e.x)||Sp(e.y)}function Sp(e){return e&&e!==`0%`}function Cp(e,t,n){return n+t*(e-n)}function wp(e,t,n,r,i){return i!==void 0&&(e=Cp(e,i,r)),Cp(e,n,r)+t}function Tp(e,t=0,n=1,r,i){e.min=wp(e.min,t,n,r,i),e.max=wp(e.max,t,n,r,i)}function Ep(e,{x:t,y:n}){Tp(e.x,t.translate,t.scale,t.originPoint),Tp(e.y,n.translate,n.scale,n.originPoint)}var Dp=.999999999999,Op=1.0000000000001;function kp(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,a.options.visualElement?.props.style?.display!==`contents`&&(r===!0&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(Ap(e.x,-a.scroll.offset.x),Ap(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Ep(e,o)),r&&(r.path?.[s]||r)!==a&&yp(a.latestValues)&&Np(e,a.latestValues,a.layout?.layoutBox));t.x<Op&&t.x>Dp&&(t.x=1),t.y<Op&&t.y>Dp&&(t.y=1)}function Ap(e,t){e.min+=t,e.max+=t}function jp(e,t,n,r,i=.5){Tp(e,t,n,gu(e.min,e.max,i),r)}function Mp(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Np(e,t,n){let r=n??e;jp(e.x,Mp(t.x,r.x),t.scaleX,t.scale,t.originX),jp(e.y,Mp(t.y,r.y),t.scaleY,t.scale,t.originY)}function Pp(e,t){return pp(hp(e.getBoundingClientRect(),t))}function Fp(e,t,n){let r=Pp(e,n),{scroll:i}=t;return i&&(Ap(r.x,i.offset.x),Ap(r.y,i.offset.y)),r}var Ip=()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),Lp={},Rp=e=>qf(e)?dp:op,zp=class{constructor(e,t){this.effect=e,this.current=t,this.KeyframeResolver=zf}getValue(e){return this.effect.get(this.current,e)}readValue(e,t){return this.effect.read(this.current,e,t)}render(){this.effect.flush(this.current)}measureViewportBox(){return Pp(this.current)}getProps(){return Lp}};function Bp(e,t,n,r){if(Jf.current?.track(e),r)return Wf(e=>r.getValue(e,null),t,n,r);let i=Rp(e);return Gf(i,e,t,n,new zp(i,e))}var Vp=$f((e,t,n,r)=>t.set(n,r,()=>{e[n]=r.get()}),{test:e=>ur(e),read:(e,t)=>{let n=e[t];return typeof n==`string`||typeof n==`number`?n:void 0}});function Hp(e,t,n){let r=Dn(e)?e:Vn(e);return r.run(Df(``,r,t,n)),r.animation}function Up(e){return typeof e==`object`&&!Array.isArray(e)}function Wp(e,t,n,r){return e==null?[]:typeof e==`string`&&Up(t)?Zf(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function Gp(e,t,n){return e*(t+1)+n*t}function Kp(e,t){if(t.has(e))return t.get(e);let[,n,r]=e.match(/^(.+?)([+-][\d.]+)$/)||[];return t.has(n)?Math.max(0,t.get(n)+parseFloat(r)):void 0}function qp(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):Kp(t,r)??e}function Jp(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(ir(e,i),r--)}}function Yp(e,t,n,r,i,a){Jp(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:gu(i,a,r[o]),easing:lu(n,o)})}function Xp(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function Zp(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var Qp=`easeInOut`,$p=20;function em(e,{defaultTransition:t={},...n}={},r,i,a){let o=t.duration||.3,s=new Map,c=new Map,l={},u=new Map,d=0,f=0,p=0,m=(e,n)=>{let a=n,s=e=>typeof e==`number`?n+e:qp(f,e,d,u);for(let n=0;n<e.length;n++){let h=e[n];if(typeof h==`string`){u.set(h,f);continue}if(!Array.isArray(h)){let e=h.at===void 0?f:s(h.at);`sequence`in h?(d=f=e,f=m(h.sequence,e),d=e,a=Math.max(a,f)):u.set(h.name,e);continue}let[g,_,v={}]=h;v.at!==void 0&&(f=s(v.at));let y=0,b=(e,n,r,a=0,s=0)=>{let c=rm(e),{delay:l=0,times:u=fd(c),type:d=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:g=0,..._}=n,{ease:v=t.ease||`easeOut`,duration:b}=n;r.mixer||=n.mixer;let x=typeof l==`function`?l(a,s):l,S=c.length,C=ar(d)?d:i?.[d||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&om(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,..._};b!==void 0&&(n.duration=Pn(b));let r=Iu(n,e,C);v=r.ease,b=r.duration}b??=o;let w=f+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&dd(u,T),c.length===1&&c.unshift(null),m&&m<$p){let e=b>0?g/b:0;b=Gp(b,m,g);let t=[...c],n=[...u];v=Array.isArray(v)?[...v]:[v];let r=[...v],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?Zl(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),v.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),v.push(e===0?`linear`:lu(f,e-1))}Xp(u,m,e)}let E=w+b;Yp(r,c,v,u,w,E),y=Math.max(x+b,y),p=Math.max(E,p)};if(Dn(g)){let e=tm(g,c);b(_,v,nm(`default`,e))}else{let e=Wp(g,_,r,l),t=e.length;for(let n=0;n<t;n++){_=_,v=v;let r=e[n],i=tm(r,c);for(let e in _)b(_[e],im(v,e),nm(e,i),n,t)}}d=f,f+=y,a=Math.max(a,f)}return a};m(e,0),a&&(a.duration=p,a.labels=u);let{type:h,...g}=t;return c.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(Zp);let o=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];o.push(n),c.push(Kl(0,p,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),o.unshift(o[0]),l.unshift(Qp)),c[c.length-1]!==1&&(c.push(1),o.push(null)),s.has(r)||s.set(r,{keyframes:{},transition:{}});let u=s.get(r);u.keyframes[i]=o,u.transition[i]={...g,duration:p,ease:l,times:c,mixer:a.mixer||t.mixer,...n}}}),s}function tm(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function nm(e,t){return t[e]||(t[e]=[]),t[e]}function rm(e){return Array.isArray(e)?e:[e]}function im(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var am=e=>typeof e==`number`,om=e=>e.every(am);function sm(e,t){return Dn(e)||typeof e==`number`||typeof e==`string`&&!Up(t)}function cm(e,t,n,r){let i=[];if(sm(e,t))i.push(Hp(e,Up(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=Wp(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s={...n};`delay`in s&&typeof s.delay==`function`&&(s.delay=s.delay(e,o)),r instanceof Element?i.push(...Bp(r,t,s,Gn.get(r))):i.push(...Gf(Uf(r)??Vp,r,t,s))}}return i}function lm(e,t,n,r){let i=[],a=em(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=Vn(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:sd},r),o=t?.reduceMotion??t?.defaultTransition?.reduceMotion;return a.forEach(({keyframes:e,transition:t},n)=>{i.push(...cm(n,e,{...t,reduceMotion:o}))}),i}var um=0;function dm({repeat:e=0,repeatDelay:t=0,repeatType:n=`loop`,delay:r=0},i,a,o){let s=i+t,c=o===void 0;if(c){let t=Math.max(0,a-r);o=s&&t>0?Math.min(e,Math.ceil(t/s-1e-9)-1):0,a=Math.min(t-o*s,i)}return n!==`loop`&&o%2&&(a=i-a),[o,c?a:r+o*s+a]}function fm(e,t){let n=[...e],r=typeof n[0]==`function`?Math.max(1,n.length-1):2;return n[r]={...n[r],at:t},n}var pm=(e,t)=>t===void 0?e:{name:e,at:t};function mm(e){e.pause(),e.time=0,e.stop()}var hm=class e{constructor(e=[],t={},n){this.options=t,this.entries=[],this.repeatIndex=0,this.prevTime=0,this.markers=[],this.labels=new Map,this.totalDuration=0,this.isDirty=!1,this.isDone=!1,this.isRebuilding=!1,this.playbackSpeed=1,this.motionScope=Jf.current,this.isKilled=!1,this.isWrapped=!1,this.stop=()=>{this.flush(),this.group?.stop()},this.isPaused=t.autoplay===!1,this.newFinished(),e.forEach(e=>this.add(e)),n?(this.isDirty=!1,this.isWrapped=!0,this.group=new _f(n),this.watch()):(this.invalidate(),this.flush())}add(t,n){return t instanceof e&&t.adopt(this),this.push({item:t,at:n})}call(e,t){return this.push({item:e,at:t,marker:{name:`_m`+um++,time:0,callback:e}})}addPause(e,t){return this.push({item:t||{},at:e,marker:{name:`_m`+um++,time:0,callback:t,pause:!0}})}move(e,t){return this.entries.forEach(n=>{n.item===e&&(n.at=t)}),this.invalidate()}remove(t){return t instanceof e&&(t.parent=void 0),this.entries=this.entries.filter(e=>e.item!==t),this.invalidate()}clear(){return this.entries=[],this.invalidate()}getLabelTime(e){return this.flush(),this.labels.get(e)}seek(e){return this.time=this.resolve(e),this}playTo(e){let t=this.resolve(e),n=this.iterationDuration,r=this.time,[i]=dm(this.options,n,r),a=dm(this.options,n,t,i)[1],o=Math.abs(this.speed);return this.speed=a<r?-o:o,this.stopAt=t,this.clock||this.invalidate(),this.play(),this}reverse(){return this.speed=-this.speed,this.play(),this}get progress(){return this.duration?this.time/this.duration:0}set progress(e){this.time=e*this.duration}get time(){return this.active()?.time??0}set time(e){this.flush(),this.prevTime=e,this.group&&(this.group.time=e),this.repeatIndex=this.currentRepeat()}get speed(){return this.playbackSpeed}set speed(e){this.playbackSpeed=e,this.group&&(this.group.speed=e)}get duration(){return this.flush(),this.isWrapped?this.group.duration:this.totalDuration}get iterationDuration(){return this.flush(),this.isWrapped?this.group.iterationDuration:this.totalDuration}get state(){return this.active()?.state??`idle`}get startTime(){return this.active()?.startTime??null}play(){this.flush(),this.isPaused=!1,this.group?.play(),this.isDone&&(this.newFinished(),this.watch())}pause(){this.flush(),this.isPaused=!0,this.group?.pause()}cancel(){this.flush(),this.group?.cancel()}complete(){this.flush(),this.group?.complete()}attachTimeline(e){return this.flush(),this.scrollTimeline=e,this.detachScroll=this.group?.attachTimeline(e),()=>{this.scrollTimeline=void 0,this.detachScroll?.()}}then(e,t){return this.finished.then(e,t)}active(){return this.flush(),this.group?.animations.length?this.group:void 0}push(e){return this.entries.push(e),this.invalidate()}invalidate(){return this.parent?this.parent.invalidate():this.isDirty||(this.isDirty=!0,queueMicrotask(()=>this.flush())),this}flush(){this.isDirty&&!this.parent&&!this.isKilled&&this.build()}adopt(e){this.group&&=(mm(this.group),void 0),this.isDirty=!1,this.parent=e}build(){let e=this.isWrapped?this.group.iterationDuration:this.totalDuration;this.isDirty=!1,this.isWrapped=!1;let t=this.group,n=0;t&&(this.isRebuilding=!0,this.scrollTimeline?(this.detachScroll?.(),t.cancel()):(n=t.animations.length?t.time:0,mm(t)),this.isRebuilding=!1);let{defaultTransition:r,onComplete:i,onUpdate:a,onRepeat:o,onReverseComplete:s,autoplay:c,scope:l,...u}=this.options,d={};l?.reduceMotion!==void 0&&(d.reduceMotion=l.reduceMotion),l?.skipAnimations!==void 0&&(d.skipAnimations=l.skipAnimations),Object.assign(d,u);let f=new Map,p={},m=Jf.current;Jf.current=this.motionScope;let h;try{h=lm(this.toSequence(f),{defaultTransition:r,...d},l,p)}finally{Jf.current=m}let g=p.labels,_=d.duration??p.duration,v=p.duration?_/p.duration:1;if(g.forEach((e,t)=>g.set(t,e*v)),this.markers=[],f.forEach((e,t)=>{e.time=g.get(t),g.delete(t),_=Math.max(_,e.time),this.markers.push(e)}),this.markers.sort((e,t)=>e.time-t.time),this.labels=g,this.totalDuration=_,this.clock=this.clockAnimation=void 0,this.markers.length||this.stopAt!==void 0||a||o){let e=this.clock=Vn(0);e.on(`change`,t=>e===this.clock&&this.onClock(t)),h.unshift(this.clockAnimation=Hp(e,[0,_],{...d,duration:_,ease:`linear`}))}let y=this.group=new _f(h),{delay:b=0,repeat:x=0,repeatDelay:S=0}=this.options,[C,w]=dm(this.options,e,n);n>b&&(n=dm(this.options,_,Math.min(w,_),C)[1]),this.isDone&&n<b+(x+1)*(_+S)-S&&this.newFinished(),this.scrollTimeline?this.detachScroll=y.attachTimeline(this.scrollTimeline):(y.speed=this.playbackSpeed,this.isPaused&&y.pause(),n&&(y.time=n)),this.repeatIndex=this.currentRepeat(),this.prevTime=n||-1,this.watch()}toSequence(t){return this.entries.map(({item:n,at:r,marker:i})=>i?(t.set(i.name,i),pm(i.name,r)):n instanceof e?{sequence:n.toSequence(t),at:r}:typeof n==`string`?pm(n,r):r===void 0?n:Array.isArray(n)?fm(n,r):{...n,at:r})}resolve(e){return this.flush(),typeof e==`number`?e:Kp(e,this.labels)??this.time}currentRepeat(){return dm(this.options,this.totalDuration,this.clockAnimation?.time??0)[0]}onClock(e){let t=this.prevTime;if(this.prevTime=e,this.isRebuilding)return;let{onUpdate:n,onRepeat:r,repeatType:i=`loop`}=this.options;n?.(e);let a=this.currentRepeat(),o=a>this.repeatIndex?1:-1;for(;a!==this.repeatIndex;){let e=this.speed>0==(i===`loop`||!(this.repeatIndex%2)),n=e?this.totalDuration:0;if(this.cross(t,n))return;this.repeatIndex+=o,r?.(),t=i===`loop`?e?-1:1/0:n}this.cross(t,e)}cross(e,t){if(e===t)return;let n=t>e,r=r=>n?r>e&&r<=t:r<e&&r>=t,i=n?this.markers:[...this.markers].reverse();for(let e of i)if(r(e.time)&&(e.callback?.(n?1:-1),e.pause))return this.pauseAt(e.time);if(this.stopAt!==void 0&&r(this.stopAt))return this.pauseAt(this.stopAt),this.stopAt=void 0,!0}pauseAt(e){return this.pause(),this.time=dm(this.options,this.totalDuration,e,this.repeatIndex)[1],!0}watch(){let e=this.group;e.finished.then(()=>{if(e!==this.group||this.isDone)return;this.isDone=!0;let{onComplete:t,onReverseComplete:n}=this.options,r=this.speed<0&&n||t,i=this.resolveFinished;r?.(),i()})}newFinished(){this.isDone=!1,this.finished=new Promise(e=>{this.resolveFinished=e});let{scope:e}=this.options,t=this.motionScope?.add(()=>{this.isKilled=!0,this.stop()});e?.animations.push(this),this.finished.then(()=>{t?.(),e&&ir(e.animations,this)})}};function gm(e){return Array.isArray(e)&&e.some(e=>Array.isArray(e)||e?.sequence)}function _m(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=Jf.current?.transition,s={};n!==void 0&&(s.reduceMotion=n),r!==void 0&&(s.skipAnimations=r);let c;if(gm(e)){let r={...s,...i,scope:t};o&&(r.defaultTransition={...o,...r.defaultTransition}),r.reduceMotion=i?.reduceMotion??r.defaultTransition?.reduceMotion??n,c=new hm(e,r)}else{let{onComplete:n,...r}=a||{},l={...s,...o,...r},{onUpdate:u}=r;c=new hm([typeof e==`number`||typeof e==`string`&&(typeof i==`string`||Array.isArray(i))?[u||(()=>{}),Array.isArray(i)?i:[e,i],{...l,onUpdate:void 0}]:[e,i,l]],{...s,onComplete:n,scope:t},cm(e,i,l,t))}return c}return i}var vm=Object.assign(_m(),{addEffect:Vf,removeEffect:Hf});function ym(e){let t=(0,X.useRef)(e);return(0,X.useLayoutEffect)(()=>{t.current=e}),(0,X.useCallback)((...e)=>t.current(...e),[])}var bm=e=>typeof e==`function`?e():e,xm=(e,{defaultValue:t,onChange:n,value:r}={})=>{let[i,a]=(0,X.useState)(()=>r===void 0?bm(t===void 0?e:t):r),o=r===void 0?i:r;return[o,ym(e=>{a(e),o!==e&&n?.(e,o)})]},Sm={lbruu1v2:`lbruu1v2`,$$css:!0},Cm=l({block:`switch`,dataAttributes:[`size`,`loading`],elements:[`content`,`thumb`]}),wm={icon:{kYYq5F:`lb10no89f`,kmkexE:`lbaqpy6h`,kGNEyG:`lb6s0dn4`,kMwMTN:`lb15g0kca`,k1xSpc:`lb78zum5`,kjj79g:`lbl56j7k`,kfzvcC:`lb47corl`,kVAEAm:`lb10l6tqk`,kIyJzY:`lb12w9bfk`,khDVqt:`lbuxw1ft`,$$css:!0},iconLeft:{kLqNvP:`lbjwk6fx`,kSiTet:`lbg01cxk lbqtmd8e`,km0Bbg:`lb1t448cz lb1gshqrl`,$$css:!0},iconRight:{kt4wiu:`lb1inkcgm`,kSiTet:`lb12foe86`,km0Bbg:`lb1t60ft6`,$$css:!0},iconThumb:{kpwlN0:`lbh3736h`,kYYq5F:`lb1saa4dr`,kMwMTN:`lb16owwnm`,kVAEAm:`lb1n2onr6`,k3aq6I:`lb1c071of`,$$css:!0},loading:{k44tkh:`lb1q3qbx4 lb1u6grsq`,ko0y90:`lba4qsjk`,kKVMdj:`lbb6ayas`,kyAemX:`lb1esw782`,$$css:!0},root:{kmVPX3:`lb1i3ajwb`,kVAM5u:`lb181nr7w`,kaIpWk:`lb1xwekrv`,ksu8eU:`lbng3xce`,kMzoRj:`lbc342km`,kI3sdo:`lb1a2a7pz`,kVQacm:`lbb3r6kr`,kmkexE:`lbr3aam3`,kGNEyG:`lb6s0dn4`,kWkggS:`lbjjy28o lb1ljx72h lb1j7gpvn lbx0eq3e`,kGVxlE:`lb11a9emz lb19y05k0`,kB7OPa:`lb9f619`,kkrTdU:`lb1ypdohk lb5ezrf1`,k1xSpc:`lb3nfvp2`,kjj79g:`lb1nhvcw1`,kSiTet:`lb1k4xm7o`,kVAEAm:`lb1n2onr6`,kIyJzY:`lb12w9bfk`,kfSwDN:`lb87ps6o`,$$css:!0},rootDefault:{kZKoxP:`lb17rw0jw`,k7Eaqz:`lb15hfatp`,kzqmXN:`lb14qfxbe`,$$css:!0},rootSmall:{kZKoxP:`lblup9mm`,k7Eaqz:`lb1264ykn`,kzqmXN:`lbgd8bvy`,$$css:!0},rootText:{kGuDYH:`lbfifm61`,kLWn49:`lbo5v014`,k7Eaqz:`lb1nb6za0`,kzqmXN:`lb14atkfc`,$$css:!0},rootTextSmall:{kGuDYH:`lb1k6wstc`,kLWn49:`lbo5v014`,k7Eaqz:`lb46jg8d`,kzqmXN:`lb14atkfc`,$$css:!0},textSizer:{kUk6DE:`lb1okw0bk`,k1xSpc:`lbrvj5dj`,kayTVb:`lb9ek82g`,kwRFfy:`lb11lfxj5`,kZCmMZ:`lb13jy36j`,kfzvcC:`lb47corl`,k33iCy:`lblshs6z`,khDVqt:`lbuxw1ft`,$$css:!0},textSizerSmall:{kwRFfy:`lb14vy60q`,kZCmMZ:`lbf7dkkf`,$$css:!0},thumb:{kaIpWk:`lb16rqkct`,kmkexE:`lbxj5fsl`,kGNEyG:`lb6s0dn4`,kWkggS:`lb6yijhg`,kGVxlE:`lb1oicym lbiy1ocm lb4g9y83`,k1xSpc:`lb78zum5`,kmuXW:`lb2lah0s`,kjj79g:`lbl56j7k`,k3aq6I:`lb1u2ey76`,kIyJzY:`lb12w9bfk`,$$css:!0},thumbDefault:{kZKoxP:`lbmix8c7`,kzqmXN:`lb1xp8n7a`,$$css:!0},thumbSmall:{kZKoxP:`lb1kpxq89`,kzqmXN:`lbsmyaan`,$$css:!0}};({className:`lb10no89f lbaqpy6h lb6s0dn4 lb15g0kca lb78zum5 lbl56j7k lb47corl lb10l6tqk lb12w9bfk lbuxw1ft`}).className,{className:`lbjwk6fx lbg01cxk lbqtmd8e lb1t448cz lb1gshqrl`}.className,{className:`lb1inkcgm lb12foe86 lb1t60ft6`}.className,{className:`lbh3736h lb1saa4dr lb16owwnm lb1n2onr6 lb1c071of`}.className,{className:`lb1q3qbx4 lb1u6grsq lba4qsjk lbb6ayas lb1esw782`}.className,{className:`lb1i3ajwb lb181nr7w lb1xwekrv lbng3xce lbc342km lb1a2a7pz lbb3r6kr lbr3aam3 lb6s0dn4 lbjjy28o lb1ljx72h lb1j7gpvn lbx0eq3e lb11a9emz lb19y05k0 lb9f619 lb1ypdohk lb5ezrf1 lb3nfvp2 lb1nhvcw1 lb1k4xm7o lb1n2onr6 lb12w9bfk lb87ps6o`}.className,{className:`lb17rw0jw lb15hfatp lb14qfxbe`}.className,{className:`lblup9mm lb1264ykn lbgd8bvy`}.className,{className:`lbfifm61 lbo5v014 lb1nb6za0 lb14atkfc`}.className,{className:`lb1k6wstc lbo5v014 lb46jg8d lb14atkfc`}.className,{className:`lb1okw0bk lbrvj5dj lb9ek82g lb11lfxj5 lb13jy36j lb47corl lblshs6z lbuxw1ft`}.className,{className:`lb14vy60q lbf7dkkf`}.className,{className:`lb16rqkct lbxj5fsl lb6s0dn4 lb6yijhg lb1oicym lbiy1ocm lb4g9y83 lb78zum5 lb2lah0s lbl56j7k lb1u2ey76 lb12w9bfk`}.className,{className:`lbmix8c7 lb1xp8n7a`}.className,{className:`lb1kpxq89 lbsmyaan`}.className,{className:`lbjwk6fx lbg01cxk lbqtmd8e lb1t448cz lb1gshqrl`}.className,{className:`lb1inkcgm lb12foe86 lb1t60ft6`}.className;var Tm={default:{checkedX:14,pressedCheckedX:10,pressedWidth:22,width:18},small:{checkedX:12,pressedCheckedX:8,pressedWidth:16,width:12}},Em={default:wm.rootDefault,small:wm.rootSmall},Dm={default:wm.thumbDefault,small:wm.thumbSmall},Om={damping:24,stiffness:360,type:`spring`},km=(0,X.createContext)(null),Am=()=>{let e=(0,X.use)(km);if(!e)throw Error(`useSwitchContext must be used within a SwitchRoot`);return e},jm=({checked:e,className:t,defaultChecked:n,onCheckedChange:r,onClick:i,onKeyDown:a,onKeyUp:o,onPointerCancel:l,onPointerDown:u,onPointerLeave:d,onPointerUp:f,size:p=`default`,children:m,disabled:h,readOnly:g,required:_,inputRef:v,id:y,name:b,style:x,xstyle:S,...C})=>{let[w,T]=(0,X.useState)(!1),E=(0,X.useRef)(null),[D,O]=xm(n??!1,{defaultValue:n,onChange:e=>{E.current&&r?.(e,E.current)},value:e}),k=(0,X.useMemo)(()=>({isChecked:!!D,isPressed:w,setIsChecked:e=>O(e),setIsPressed:T}),[D,w,O]),A=e=>{E.current=e,i?.(!D,e)},j=!h&&!g,M=e=>{(e.key===`Enter`||e.key===` `)&&(E.current=e),e.key===` `&&j&&T(!0),a?.(e)},N=e=>{e.key===` `&&T(!1),o?.(e)},P=e=>{j&&T(!0),u?.(e)},F=e=>{T(!1),f?.(e)},I=e=>{T(!1),l?.(e)},L=e=>{T(!1),d?.(e)};return(0,Z.jsx)(km,{value:k,children:(0,Z.jsx)(Ul,{nativeButton:!0,checked:D,defaultChecked:n,disabled:h,id:y,inputRef:v,name:b,readOnly:g,required:_,render:(0,Z.jsx)(`button`,{...s({size:p}),...C,...kt([Sm,xe.info,wm.root,Em[p],S],c(Cm(),t),x),onClick:A,onKeyDown:M,onKeyUp:N,onPointerCancel:I,onPointerDown:P,onPointerLeave:L,onPointerUp:F}),onCheckedChange:O,children:m})})};jm.displayName=`SwitchRoot`;var Mm=({className:e,size:t=`default`,style:n,children:r,...i})=>{let{isChecked:a,isPressed:o}=Am(),s=(0,X.useRef)(null),l=Tm[t],[u,d]=(0,X.useState)(l.checkedX);(0,X.useLayoutEffect)(()=>{let e=s.current?.parentElement;if(!e)return;let t=()=>{let t=e.clientWidth;d(t>0?Math.max(l.checkedX,t-4-l.width):l.checkedX)};if(t(),typeof ResizeObserver>`u`)return;let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[l]);let f=u-l.checkedX,p=a?(o?l.pressedCheckedX:l.checkedX)+f:0,m=o?l.pressedWidth:l.width,[h]=(0,X.useState)(()=>({width:Vn(m),x:Vn(p)})),[g]=(0,X.useState)(()=>({"--switch-x":`${p}px`,width:m}));return(0,X.useEffect)(()=>{let e=s.current;if(!e)return;let t=h.x.on(`change`,t=>{e.style.setProperty(`--switch-x`,`${t}px`)}),n=h.width.on(`change`,t=>{e.style.setProperty(`width`,`${t}px`)});return()=>{t(),n()}},[h]),(0,X.useEffect)(()=>{let e=window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches??!1?{duration:0}:Om,t=[vm(h.x,p,e),vm(h.width,m,e)];return()=>{for(let e of t)e.stop()}},[h,p,m]),(0,Z.jsx)(Wl,{render:(0,Z.jsx)(`span`,{...i,ref:s,...kt([wm.thumb,Dm[t]],c(Cm(`thumb`),e),{...g,...n}),children:r})})};Mm.displayName=`SwitchThumb`;var Nm={left:wm.iconLeft,right:wm.iconRight,thumb:wm.iconThumb},Pm=({children:e,className:t,position:n,size:r,style:i,...a})=>(0,Z.jsx)(`span`,{...kt([wm.icon,Nm[n]],c(Cm(`content`),t),i),...a,children:e});Pm.displayName=`SwitchIcon`;var Fm=(0,X.memo)(({autoFocus:e,checked:t,checkedChildren:n,className:r,classNames:i,defaultChecked:a,defaultValue:o,disabled:l,id:u,loading:d,name:f,onChange:p,onClick:m,ref:h,rootClassName:g,size:_=`default`,style:v,styles:y,tabIndex:b,title:x,unCheckedChildren:S,value:C,...w})=>{let T=l||d,E=C??t,D=o??a,O=!!(n||S);return(0,Z.jsxs)(jm,{...s({loading:d}),...w,autoFocus:e,checked:E,className:c(O&&`lobe-switch-text`,r,g,i?.root),defaultChecked:D,disabled:T,id:u,name:f,ref:h,size:_,style:{...v,...y?.root},tabIndex:b,title:x,xstyle:O&&(_===`small`?wm.rootTextSmall:wm.rootText),onCheckedChange:p,onClick:m,children:[n&&(0,Z.jsx)(Pm,{className:i?.content,position:`left`,size:_,style:y?.content,children:n}),S&&(0,Z.jsx)(Pm,{className:i?.content,position:`right`,size:_,style:y?.content,children:S}),O&&(0,Z.jsxs)(`span`,{"aria-hidden":!0,...rt(wm.textSizer,_===`small`&&wm.textSizerSmall),children:[(0,Z.jsx)(`span`,{children:n}),(0,Z.jsx)(`span`,{children:S})]}),(0,Z.jsx)(Mm,{className:i?.thumb,size:_,style:y?.thumb,children:d&&(0,Z.jsx)(ve,{...rt(wm.loading),icon:_i,size:_===`small`?8:12,style:{color:Ai.colorPrimary}})})]})});Fm.displayName=`Switch`;var Im={icon:`lobe-menu-icon`,label:`lobe-menu-label`,popup:`lobe-menu-popup`,positioner:`lobe-menu-positioner`,submenuArrow:`lobe-menu-submenu-arrow`},Lm={danger:{"--lobe-menu-icon-color":`lb107ansx`,kWkggS:`lb86rvtz lb85pxvj lb16xa4ls`,kMwMTN:`lb12ap7uz`,$$css:!0},empty:{kMwMTN:`lb53gy9q lb2poks1`,kkrTdU:`lbt0e3qv lb5ezrf1`,kKX8nH:`lb1k4tb9n`,$$css:!0},extra:{kMwMTN:`lb53gy9q`,kMv6JI:`lb2xbw48`,kGuDYH:`lbfifm61`,keTefX:`lbvc5jky`,kZCmMZ:`lbf7dkkf`,$$css:!0},footer:{k8WAf4:`lb1vvogim lbdzg2pt`,kg3NbH:`lbaope02 lb8x5n49`,kLZC3w:`lb592eyn`,kPef9Z:`lb13fuv20`,kEafiO:`lb178xt8z`,kmuXW:`lb2lah0s`,$$css:!0},groupLabel:{kg3NbH:`lbaope02`,kMwMTN:`lb53gy9q`,kGuDYH:`lb1k6wstc`,k63SB2:`lb1s688f`,kb6lSQ:`lbkv8mnm`,kLWn49:`lb1xxsxie`,kGO01o:`lbjkvuk6`,kLKAdn:`lb1y1aw1k lb1t8wt99`,kP9fke:`lbtvhhri`,kfSwDN:`lb87ps6o`,$$css:!0},header:{k8WAf4:`lb1vvogim lbdzg2pt`,kg3NbH:`lbaope02 lb8x5n49`,kL6WhQ:`lbsyjar`,kfdmCh:`lb1q0q8m5`,kt9PQ7:`lbso031l`,kmuXW:`lb2lah0s`,$$css:!0},icon:{kGNEyG:`lb6s0dn4`,kMwMTN:`lb18nsyn`,k1xSpc:`lb78zum5`,kmuXW:`lb2lah0s`,kjj79g:`lbl56j7k`,k71WvV:`lbbmvrgn`,kZKoxP:`lb1v9usgg`,kzqmXN:`lb6jxa94`,$$css:!0},iconAlignStart:{kSGwAc:`lbqcrz7y`,keoZOQ:`lbr9ek0c`,$$css:!0},item:{kaIpWk:`lb1vihcfj`,kI3sdo:`lb1a2a7pz`,kVQacm:`lbb3r6kr`,k8WAf4:`lb1t0vds8`,kg3NbH:`lbaope02`,kmkexE:`lb18nfrvi`,kGNEyG:`lb6s0dn4`,kWkggS:`lb1kvtry4 lbwew3ed lbn4ptgj`,kMwMTN:`lb66ogz0 lb2poks1`,kkrTdU:`lb5ezrf1`,k1xSpc:`lb78zum5`,kGuDYH:`lbif65rj`,kLWn49:`lb1fc57z9`,kSiTet:`lbxh3kiz`,kVAEAm:`lb1n2onr6`,kfSwDN:`lb87ps6o`,kAzted:`lb21xpn4`,kzqmXN:`lbh8yej3`,$$css:!0},itemContent:{kUk6DE:`lb98rzlu`,kOIVth:`lbxhr3t`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,$$css:!0},itemContentAlignStart:{kGNEyG:`lb1cy8zhl`,$$css:!0},label:{kUk6DE:`lb98rzlu`,kVQacm:`lbb3r6kr`,kg5iWk:`lblyipyv`,khDVqt:`lbuxw1ft`,$$css:!0},labelGroup:{kUk6DE:`lb98rzlu`,kVQacm:`lbb3r6kr`,k1xSpc:`lb78zum5`,kXwgrk:`lbdt5ytf`,k7Eaqz:`lbeuugli`,$$css:!0},desc:{kVQacm:`lbb3r6kr`,kMwMTN:`lb53gy9q`,kGuDYH:`lbfifm61`,kLWn49:`lb1d3mw78`,kg5iWk:`lblyipyv`,khDVqt:`lbuxw1ft`,$$css:!0},popup:{"--lobe-menu-popup-padding":`lbx5256q`,"--lobe-virtual-scroll-inset":`lb19d6fe`,kaIpWk:`lb1sbi92r`,kI3sdo:`lb1a2a7pz`,kg3NbH:`lb1ctfek0`,kWkggS:`lb1w937bt`,kGVxlE:`lbj07k4p`,k1xSpc:`lb1cuf08c`,kXwgrk:`lbrk0jpx`,kGO01o:`lb5fj2l4 lb1f9yvpy`,kLKAdn:`lblztzta lb7ao2f8`,kskxy:`lb1374xjt`,k7Eaqz:`lb12rczxh`,kXHlph:`lbj8hqjc`,kORKVm:`lb1odjw0f lb1j8km66`,$$css:!0},popupWithSlots:{k1xSpc:`lb78zum5`,kXwgrk:`lbdt5ytf`,kskxy:`lb1374xjt`,kXHlph:`lb6ikm8r`,kORKVm:`lb10wlt62`,$$css:!0},slotViewport:{kUk6DE:`lb98rzlu`,kAzted:`lb2lwn1j`,kORKVm:`lb1odjw0f`,$$css:!0},positioner:{"--lobe-dropdown-animation-duration":`lbx26zto lb13mkx0c`,"--lobe-dropdown-animation-ease-in":`lb1l96weh`,"--lobe-dropdown-animation-ease-out":`lbmyf473`,"--lobe-dropdown-animation-scale-y":`lbkiw9s4 lbdiwzxj`,kY2c9j:`lbp6lfbs lbkskvg3`,$$css:!0},separator:{kqGvvJ:`lbg9jes1`,kUOVxO:`lbrxpjvj`,kWkggS:`lb1yqcoyj`,kZKoxP:`lbjm9jq1`,$$css:!0},switchWrap:{k1xSpc:`lb3nfvp2`,keTefX:`lbyqm7xq`,$$css:!0},submenuArrow:{kGNEyG:`lb6s0dn4`,kMwMTN:`lb18nsyn`,k1xSpc:`lb78zum5`,kmuXW:`lb2lah0s`,kjj79g:`lbl56j7k`,keTefX:`lb13fj5qh`,kZKoxP:`lblup9mm`,kzqmXN:`lb1kky2od`,$$css:!0}},Rm={danger:{className:`lb107ansx lb86rvtz lb85pxvj lb16xa4ls lb12ap7uz`}.className??``,empty:{className:`lb53gy9q lb2poks1 lbt0e3qv lb5ezrf1 lb1k4tb9n`}.className??``,extra:{className:`lb53gy9q lb2xbw48 lbfifm61 lbvc5jky lbf7dkkf`}.className??``,footer:{className:`lb1vvogim lbdzg2pt lbaope02 lb8x5n49 lb592eyn lb13fuv20 lb178xt8z lb2lah0s`}.className??``,groupLabel:{className:`lbaope02 lb53gy9q lb1k6wstc lb1s688f lbkv8mnm lb1xxsxie lbjkvuk6 lb1y1aw1k lb1t8wt99 lbtvhhri lb87ps6o`}.className??``,header:{className:`lb1vvogim lbdzg2pt lbaope02 lb8x5n49 lbsyjar lb1q0q8m5 lbso031l lb2lah0s`}.className??``,icon:`${{className:`lb6s0dn4 lb18nsyn lb78zum5 lb2lah0s lbl56j7k lbbmvrgn lb1v9usgg lb6jxa94`}.className??``} ${Im.icon}`,iconAlignStart:{className:`lbqcrz7y lbr9ek0c`}.className??``,item:{className:`lb1vihcfj lb1a2a7pz lbb3r6kr lb1t0vds8 lbaope02 lb18nfrvi lb6s0dn4 lb1kvtry4 lbwew3ed lbn4ptgj lb66ogz0 lb2poks1 lb5ezrf1 lb78zum5 lbif65rj lb1fc57z9 lbxh3kiz lb1n2onr6 lb87ps6o lb21xpn4 lbh8yej3`}.className??``,itemContent:{className:`lb98rzlu lbxhr3t lb6s0dn4 lb78zum5`}.className??``,itemContentAlignStart:{className:`lb1cy8zhl`}.className??``,label:`${{className:`lb98rzlu lbb3r6kr lblyipyv lbuxw1ft`}.className??``} ${Im.label}`,labelGroup:{className:`lb98rzlu lbb3r6kr lb78zum5 lbdt5ytf lbeuugli`}.className??``,desc:{className:`lbb3r6kr lb53gy9q lbfifm61 lb1d3mw78 lblyipyv lbuxw1ft`}.className??``,popup:`${{className:`lbx5256q lb19d6fe lb1sbi92r lb1a2a7pz lb1ctfek0 lb1w937bt lbj07k4p lb1cuf08c lbrk0jpx lb5fj2l4 lb1f9yvpy lblztzta lb7ao2f8 lb1374xjt lb12rczxh lbj8hqjc lb1odjw0f lb1j8km66`}.className??``} ${Im.popup}`,popupWithSlots:{className:`lb78zum5 lbdt5ytf lb1374xjt lb6ikm8r lb10wlt62`}.className??``,slotViewport:{className:`lb98rzlu lb2lwn1j lb1odjw0f`}.className??``,positioner:`${{className:`lbx26zto lb13mkx0c lb1l96weh lbmyf473 lbkiw9s4 lbdiwzxj lbp6lfbs lbkskvg3`}.className??``} ${Im.positioner}`,separator:{className:`lbg9jes1 lbrxpjvj lb1yqcoyj lbjm9jq1`}.className??``,switchWrap:{className:`lb3nfvp2 lbyqm7xq`}.className??``,submenuArrow:`${{className:`lb6s0dn4 lb18nsyn lb78zum5 lb2lah0s lbl56j7k lb13fj5qh lblup9mm lb1kky2od`}.className??``} ${Im.submenuArrow}`},zm=X.createContext(void 0);function Bm(e){let t=X.useContext(zm);if(!e&&t===void 0)throw Error(je(27));return t}var Vm=X.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,s=Bm(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`),d={open:c,transitionStatus:s.useState(`transitionStatus`)};return N(`div`,e,{state:d,ref:[s.context.backdropRef,t],stateAttributesMapping:V,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),Hm=X.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,c=Bm(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=ue({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,Y(Ke,e.nativeEvent))}return N(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})}),Um=X.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=Bm(),c=De(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),N(`p`,e,{ref:t,props:[{id:c},o]})}),Wm=X.createContext(void 0);function Gm(){let e=X.useContext(Wm);if(e===void 0)throw Error(je(26));return e}var Km=`--nested-dialogs`,qm=`data-nested-dialog-open`,Jm={...P,...jt,nestedDialogOpen(e){return e?{[qm]:``}:null}},Ym=X.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,c=Bm(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),S=c.useState(`role`),C=d.useState(`floatingId`);Gm(),x({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});let w=o===void 0?lt(c.context.popupRef):o,T=g>0,E=c.useStateSetter(`popupElement`),D=N(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:T},props:[f,{id:C,"aria-labelledby":y,"aria-describedby":l,role:S,...be,hidden:!m,onKeyDown(e){pt.has(e.key)&&e.stopPropagation()},style:{[Km]:g}},s],ref:[t,c.context.popupRef,E],stateAttributesMapping:Jm});return(0,Z.jsx)(Te,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:w,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:D})}),Xm=X.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=Bm(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,Z.jsx)(Wm.Provider,{value:n,children:(0,Z.jsxs)(R,{ref:t,...r,children:[a&&o===!0&&(0,Z.jsx)(nt,{ref:i.context.internalBackdropRef,inert:Rt(!s)}),e.children]})}):null});function Zm({store:e,parentContext:t,isDrawer:n}){let r=e.useState(`open`),i=e.useState(`mounted`),a=e.useState(`disablePointerDismissal`),o=e.useState(`modal`),s=e.useState(`popupElement`),c=e.useState(`floatingRootContext`),[l,u]=X.useState(0),[d,f]=X.useState(0),p=l===0,m=g(c,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:o===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0)return!1;if(`touches`in t){if(t.type===`touchend`){if(t.changedTouches.length!==1||t.touches.length!==0)return!1}else if(t.touches.length!==1)return!1}let n=Ue(t);if(p&&!a){if(o){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return t||r?t===n||r===n||q(n,s)&&!n?.hasAttribute(`data-base-ui-portal`):!0}return!0}return!1},escapeKey:p});return Ot(r&&o===!0,s),e.useContextCallback(`onNestedDialogOpen`,(t,n)=>{(e.select(`open`)||e.select(`mounted`))&&(u(t),f(n))}),K(()=>{!r&&!i&&(u(0),f(0))},[r,i]),K(()=>(t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(l+1,d+ +!!n),()=>{t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(0,0)}),[n,r,l,d,t]),ae(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}var Qm={...Be,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role},$m=class extends _e{constructor(e,t,n){let r=new Vt,i=eh(e,r,t,n);super(i,th(r),Qm)}setOpen=(e,t)=>{t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled||(this.state.floatingRootContext.dispatchOpenChange(e,t),this.update(p(this.state,e,t.trigger)))}};function eh(e,t,n,r=!1){return{...Wt(t,n,r),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function th(e){return{popupRef:X.createRef(),backdropRef:X.createRef(),internalBackdropRef:X.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function nh(e,t){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=t,p=e===`drawer`,m=e===`alert-dialog`,h=m?!0:c,g=m||s,_=m?`alertdialog`:`dialog`,v=Bm(!0),y={modal:h,disablePointerDismissal:g,nested:v!=null,role:_},b=le((e,t)=>new $m({open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...y},e,t),!0);b.useControlledProp(`openProp`,r),b.useControlledProp(`triggerIdProp`,d),b.useSyncedValues(y),b.useContextCallback(`onOpenChange`,a),b.useContextCallback(`onOpenChangeComplete`,o);let x=b.useState(`open`),S=b.useState(`mounted`),C=b.useState(`payload`);D(b,x),ot(b);let{forceUnmount:T}=re(x,b);X.useImperativeHandle(l,()=>({unmount:T,close:()=>b.setOpen(!1,Y(Fe))}),[T,b]);let E=x||S||u!=null;return(0,Z.jsxs)(zm.Provider,{value:b,children:[u&&(0,Z.jsx)(w,{handle:u,store:b}),E&&(0,Z.jsx)(Zm,{store:b,parentContext:v?.context,isDrawer:p}),typeof n==`function`?n({payload:C}):n]})}var rh=Ve(function(e){return nh(`dialog`,e)}),ih=X.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=Bm(),c=De(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),N(`h2`,e,{ref:t,props:[{id:c},o]})});function ah(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function oh(...e){return t=>{let n=!1,r=e.map(e=>{let r=ah(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():ah(e[t],null)}}}}function sh(...e){return X.useCallback(oh(...e),e)}var ch=e=>{let{width:t,height:n}=e?.getBoundingClientRect()||{};return[t/e?.offsetWidth||1,n/e?.offsetHeight||1]},lh=e=>{let{left:t,top:n}=e.getBoundingClientRect(),r=e;for(;r=r.parentElement||r.parentNode?.host;){let{scrollLeft:e,scrollTop:i}=r;if(e||i){let[a,o]=ch(r);t+=e*a,n+=i*o}if(getComputedStyle(r).position===`fixed`)break}let[i,a]=ch(e.offsetParent);return[t/i,n/a]},uh=class extends X.Component{getSnapshotBeforeUpdate(e){let t=this.props.getElement();if(dr(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=dr(e)&&e.offsetWidth||0,r=dr(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction,a.point=lh(t)}return null}componentDidUpdate(){}render(){return this.props.children}};function dh({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a,popNode:o}){let s=(0,X.useId)(),c=(0,X.useRef)(null),l=(0,X.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:u}=(0,X.useContext)(Qn),d=sh(c,a===!1?void 0:e.props?.ref??e?.ref),f=()=>c.current||o?.current?.current,p=e=>{let{width:t,height:i,top:a,left:o,right:c,bottom:u,direction:d}=l.current,f=d===`rtl`,p=n===`left`?f?`right:${c}`:`left:${o}`:f?`left:${o}`:`right:${c}`,m=r===`bottom`?`bottom:${u}`:`top:${a}`;e?.insertRule(`[data-motion-pop-id="${s}"]{position:absolute!important;width:${t}px!important;height:${i}px!important;${p}px!important;${m}px!important}`)};return(0,X.useInsertionEffect)(()=>{let{width:e,height:n}=l.current,r=f();if(t||a===!1||!r||!e||!n)return;r.dataset.motionPopId=s;let o=r.ownerDocument,c=o.createElement(`style`);u&&(c.nonce=u);let d=i??o.head;d.appendChild(c),p(c.sheet);let m=0,h=0;return Zn.setup(()=>{let[e,t]=lh(r);m=l.current.point[0]-e,h=l.current.point[1]-t}),Zn.read(()=>{let{sheet:e}=c;if(!e||!m&&!h)return;let t=l.current;t.left+=m,t.right-=m,t.top+=h,t.bottom-=h,e.deleteRule(0),p(e)}),()=>{r.removeAttribute(`data-motion-pop-id`),d.contains(c)&&d.removeChild(c)}},[t]),(0,Z.jsx)(uh,{isPresent:t,getElement:f,sizeRef:l,pop:a,children:a===!1?e:X.cloneElement(e,{ref:d})})}var fh=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=Fn(ph),d=(0,X.useId)(),f=(0,X.useRef)(),p=(0,X.useRef)(n),m=(0,X.useRef)(r);Yn(()=>{p.current=n,m.current=r});let h=!0,g=(0,X.useMemo)(()=>(h=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:(e,t)=>(u.set(e,!1),t&&t.parent?.presenceContext?.id!==d&&(f.current=t),()=>{u.delete(e),!p.current&&!u.size&&m.current?.()})}),[n,u,r]);return a&&h&&(g={...g}),(0,X.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),X.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,Z.jsx)(dh,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,popNode:f,children:e}),(0,Z.jsx)(Un.Provider,{value:g,children:e})};function ph(){return new Map}function mh(e=!0){let t=(0,X.useContext)(Un);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,X.useId)();(0,X.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,X.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var hh=e=>e.key||``;function gh(e){let t=[];return X.Children.forEach(e,e=>{(0,X.isValidElement)(e)&&t.push(e)}),t}var _h=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=mh(o),f=(0,X.useMemo)(()=>gh(e),[e]),p=o&&!u?[]:f.map(hh),m=(0,X.useRef)(!0),h=Fn(()=>new Map),g=(0,X.useRef)(new Set),[_,v]=(0,X.useState)(f),[y,b]=(0,X.useState)(f);Yn(()=>{o&&!u&&!y.length&&d?.()},[u,o,y.length,d]);let x=(0,X.useRef)();(0,X.useEffect)(()=>()=>{let e=x.current;x.current=void 0,e?.()},[y]),Yn(()=>{m.current=!1;for(let e=0;e<y.length;e++){let t=hh(y[e]);p.includes(t)?(h.delete(t),g.current.delete(t)):h.get(t)!==!0&&h.set(t,!1)}},[y,p.length,p.join(`-`)]);let S=[];if(f!==_){let e=[...f],t=0;for(let n of y){let r=p.indexOf(hh(n));r===-1?(e.splice(t++,0,n),S.push(n)):t=r+S.length+1}return S.every(e=>h.get(hh(e)))?e=f:a===`wait`&&(e=S),b(gh(e)),v(f),null}let{forceRender:C}=(0,X.useContext)(Sn);return(0,Z.jsx)(Z.Fragment,{children:y.map(e=>{let _=hh(e),b=o&&!u?!1:f===y||p.includes(_);return(0,Z.jsx)(fh,{isPresent:b,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:b?void 0:()=>{if(g.current.has(_))return;if(h.has(_))g.current.add(_),h.set(_,!0);else return;let e=!0;h.forEach(t=>{t||(e=!1)}),e&&(C?.(),v([]),o&&d?.(),x.current=r)},anchorX:s,anchorY:c,children:e},_)})})},vh={"common.clear":`Clear`,"common.cancel":`Cancel`,"common.confirm":`Confirm`,"common.delete":`Delete`,"common.edit":`Edit`,"common.empty":`(empty)`},yh=(e,t)=>()=>{},bh=[.32,.72,0,1],xh={animate:{opacity:1,scale:1},exit:{opacity:0,scale:.98,transition:{duration:.12,ease:[.4,0,1,1]}},initial:{opacity:0,scale:.97},transition:{duration:.22,ease:bh}},Sh={duration:.18,ease:bh},Ch=(0,X.createContext)(null),wh=()=>(0,X.use)(Ch),Th=Ch.Provider,Eh=l({block:`modal`,dataAttributes:[`draggable`,`fullscreen`],elements:[`trigger`,`backdrop`,`viewport`,`wrapper`,`header`,`title`,`description`,`header-actions`,`fullscreen-toggle`,`close`,`content`,`loading`,`footer`]}),Dh={backdrop:{kpwlN0:`lb10a8y8t`,kmkexE:`lb11o4mfb`,kWkggS:`lb2643`,kSiTet:`lb1i2unn7`,kVAEAm:`lbixxii4`,kY2c9j:`lb1i7x82i`,$$css:!0},close:{k87sOh:`lbfr5jun`,kt4wiu:`lb9q68il`,kVAEAm:`lb10l6tqk`,$$css:!0},closeInline:{kVAM5u:`lb181nr7w`,kaIpWk:`lb4pepcl`,ksu8eU:`lbng3xce`,kMzoRj:`lbfn42iu`,kWkggS:`lbjbqb8w lb1ri6zej`,kMwMTN:`lb53gy9q lb1bxu9lh`,kmkexE:`lbxgdrqz`,kkrTdU:`lb1ypdohk`,k3aq6I:`lbcum6zn`,k1xSpc:`lb78zum5`,kGNEyG:`lb6s0dn4`,kjj79g:`lbl56j7k`,kZKoxP:`lb10w6t97`,kmVPX3:`lb1717udv`,kzqmXN:`lb1td3qas`,$$css:!0},content:{kg3NbH:`lb1hr3lfm`,kGO01o:`lb1l90r2v`,kLKAdn:`lbexx8yu`,kXHlph:`lb6ikm8r`,kORKVm:`lb1odjw0f`,$$css:!0},contentNoHeader:{kLKAdn:`lbyamay9`,$$css:!0},denyAnimation:{k44tkh:`lbb8lv0f`,kKVMdj:`lbe2vv0f`,kyAemX:`lb1bx5ho5`,$$css:!0},footer:{kOIVth:`lb167g77z`,k8WAf4:`lb10dr8xq`,kg3NbH:`lb1hr3lfm`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,kjj79g:`lb13a6bvl`,$$css:!0},fullscreenPopupInner:{kZKoxP:`lb1mkwkuc`,kskxy:`lb1bsd8ea`,ks0D6T:`lbc408io`,kzqmXN:`lb1ng3b2o`,$$css:!0},fullscreenToggle:{kVAM5u:`lb181nr7w`,kaIpWk:`lb4pepcl`,ksu8eU:`lbng3xce`,kMzoRj:`lbfn42iu`,kWkggS:`lbjbqb8w lb1ri6zej`,kMwMTN:`lb53gy9q lb1bxu9lh`,kmkexE:`lbxgdrqz`,kkrTdU:`lb1ypdohk`,k3aq6I:`lbcum6zn`,k1xSpc:`lb78zum5`,kGNEyG:`lb6s0dn4`,kjj79g:`lbl56j7k`,kZKoxP:`lb1fgtraw`,kmVPX3:`lb1717udv`,kzqmXN:`lbgd8bvy`,$$css:!0},header:{k8WAf4:`lb1vvogim`,kg3NbH:`lb1hr3lfm`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,kjj79g:`lb1qughib`,kAzted:`lb1wxaq2x`,$$css:!0},headerActions:{kOIVth:`lb1jnr06f`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,k71WvV:`lb1lxpwgx`,$$css:!0},headerDraggable:{kkrTdU:`lbt0e3qv`,kfSwDN:`lb87ps6o`,$$css:!0},loading:{k8WAf4:`lbd11lqx`,kg3NbH:`lbnjsko4`,k1xSpc:`lb78zum5`,kjj79g:`lbl56j7k`,$$css:!0},loadingSpinner:{kVAM5u:`lb181nr7w`,kaIpWk:`lb16rqkct`,ksu8eU:`lb1y0btm7`,kMzoRj:`lbdh2fpr`,k44tkh:`lbdz8niu`,ko0y90:`lba4qsjk`,kKVMdj:`lb1v0ides`,kyAemX:`lb1esw782`,kLZC3w:`lb1v8p93f`,k1xSpc:`lb1rg5ohu`,kZKoxP:`lb1v9usgg`,kzqmXN:`lb6jxa94`,$$css:!0},loadingSpinnerLarge:{kZKoxP:`lbxk0z11`,kzqmXN:`lbvy4d1p`,$$css:!0},popup:{kpwlN0:`lb10a8y8t`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,kjj79g:`lbl56j7k`,kfzvcC:`lb47corl`,kVAEAm:`lbixxii4`,kY2c9j:`lb1mblwae`,$$css:!0},popupInner:{kaIpWk:`lb4pepcl`,kVQacm:`lbb3r6kr`,kWkggS:`lb1w937bt`,kGVxlE:`lb4hq661`,kB7OPa:`lb9f619`,k1xSpc:`lb78zum5`,kXwgrk:`lbdt5ytf`,kSiTet:`lb1i2unn7`,kfzvcC:`lb67bb7w`,kVAEAm:`lb1n2onr6`,k3aq6I:`lbg71pz7 lb1htj8e4`,kIyJzY:`lb1ofcnca lb16bar5h`,k1ekBW:`lbwcsmn1`,kAMwcw:`lbmea1ks lb1gcu4m7`,kskxy:`lbw2jzks`,ks0D6T:`lb1lwm3bp`,kzqmXN:`lbkxa9zd`,$$css:!0},title:{kogj98:`lb1ghz6dp`,kMwMTN:`lb66ogz0`,kGuDYH:`lbif65rj`,k63SB2:`lb1s688f`,kLWn49:`lb37zpob`,$$css:!0},viewport:{kpwlN0:`lb10a8y8t`,kVQacm:`lbysyzu8`,kVAEAm:`lbixxii4`,kY2c9j:`lb1i7x82i`,$$css:!0}},Oh=(e,t,n)=>{let r=c(rt(e).className,n);return typeof t==`function`?e=>c(r,t(e)):c(r,t)},kh=(0,X.createContext)(null),Ah=(0,X.createContext)(null),jh=()=>(0,X.use)(kh),Mh=()=>(0,X.use)(Ah),Nh=({open:e,children:t,onExitComplete:n,zIndex:r,...i})=>{let[a,o]=(0,X.useState)(!!e);(0,X.useEffect)(()=>{e&&o(!0)},[e]);let s=(0,X.useCallback)(()=>{o(!1),n?.()},[n]),c=(0,X.useMemo)(()=>({onExitComplete:s}),[s]),{zIndex:l,ref:u}=Nt(`modal`,r),d=(0,X.useMemo)(()=>({popupRef:u,zIndex:l}),[l,u]);return a?(0,Z.jsx)(kh,{value:e,children:(0,Z.jsx)(Ah,{value:c,children:(0,Z.jsx)(Th,{value:d,children:(0,Z.jsx)(rh,{modal:!0,open:!0,...i,children:t})})})}):null},Ph=({zIndex:e,children:t,...n})=>{let{zIndex:r,ref:i}=Nt(`modal`,e),a=(0,X.useMemo)(()=>({popupRef:i,zIndex:r}),[r,i]);return(0,Z.jsx)(Th,{value:a,children:(0,Z.jsx)(rh,{modal:!0,...n,children:t})})},Fh=({open:e,onExitComplete:t,...n})=>e===void 0?(0,Z.jsx)(Ph,{...n}):(0,Z.jsx)(Nh,{open:e,onExitComplete:t,...n}),Ih=({container:e,...t})=>{let n=St();return(0,Z.jsx)(Xm,{container:e??n??void 0,...t})},Lh=({className:e,style:t,...n})=>{let r=jh(),i=wh(),a=vr(),o=i?.zIndex===void 0?void 0:{zIndex:i.zIndex};return r===null?(0,Z.jsx)(Vm,{...n,style:{...o,...t},className:Oh(Dh.backdrop,e,Eh(`backdrop`))}):(0,Z.jsx)(Vm,{...n,style:{...o,...t,transition:`none`},className:c(rt(Dh.backdrop).className,Eh(`backdrop`),e),render:(0,Z.jsx)(a.div,{animate:{opacity:+!!r},initial:{opacity:0},transition:Sh})})},Rh=({className:e,children:t,width:n,style:r,motionProps:i,panelClassName:a,panelData:o,panelXstyle:s,popupStyle:l,ref:u,xstyle:d,...f})=>{let p=jh(),m=Mh(),h=wh(),g=vr(),_=h?.zIndex===void 0?void 0:{zIndex:h.zIndex+1},v=Pe([u,h?.popupRef]);return p!==null&&m?(0,Z.jsx)(Ym,{...f,ref:v,style:{..._,...l},className:c(rt(Dh.popup,d).className,Eh(`wrapper`),e),children:(0,Z.jsx)(_h,{onExitComplete:m.onExitComplete,children:p?(0,Z.jsx)(g.div,{...xh,...i,...o,style:{maxWidth:n??void 0,transition:`none`,...r},className:c(rt(Dh.popupInner,s).className,Eh(),a),children:t},`modal-popup-panel`):null})}):(0,Z.jsx)(Ym,{...f,ref:v,style:{..._,...l},className:Oh([Dh.popup,d],e,Eh(`wrapper`)),children:(0,Z.jsx)(`div`,{...o,...kt([Dh.popupInner,s],c(Eh(),a),{maxWidth:n??void 0,...r}),children:t})})},zh=Rh,Bh=({className:e,style:t,xstyle:n,...r})=>(0,Z.jsx)(`div`,{...r,...kt([Dh.header,n],c(Eh(`header`),e),t)}),Vh=Bh,Hh=({className:e,xstyle:t,...n})=>(0,Z.jsx)(ih,{...n,className:Oh([Dh.title,t],e,Eh(`title`))}),Uh=({className:e,...t})=>(0,Z.jsx)(Um,{...t,className:Oh(void 0,e,Eh(`description`))}),Wh=({className:e,style:t,xstyle:n,...r})=>(0,Z.jsx)(`div`,{...r,...kt([Dh.content,n],c(Eh(`content`),e),t)}),Gh=({className:e,style:t,xstyle:n,...r})=>(0,Z.jsx)(`div`,{...r,...kt([Dh.footer,n],c(Eh(`footer`),e),t)}),Kh=({className:e,children:t,xstyle:n,...r})=>(0,Z.jsx)(Hm,{...r,className:Oh([Dh.closeInline,Dh.close,xe.info,n],e,Eh(`close`)),children:t??(0,Z.jsx)(T,{size:16})}),qh=(0,X.createContext)({close:()=>void 0,setCanDismissByClickOutside:()=>void 0}),Jh=()=>(0,X.use)(qh),Yh=({children:e,root:t})=>{let n=St(),r=t??n??document.body;return(0,Oi.createPortal)(e,r)},Xh=({config:e})=>{let{close:t}=Jh(),[n,r]=(0,X.useState)(!1),{cancelText:i=`Cancel`,content:a,okButtonProps:o,okText:s=`OK`,onCancel:c,onOk:l}=e,u=(0,X.useCallback)(()=>{t(),c?.()},[t,c]),d=(0,X.useCallback)(async()=>{if(l)try{let e=l();e&&typeof e.then==`function`&&(r(!0),await e,r(!1))}catch{r(!1);return}t()},[t,l]);return(0,Z.jsxs)(Z.Fragment,{children:[a&&(0,Z.jsx)(`div`,{style:{padding:`12px 16px`},children:a}),(0,Z.jsxs)(Gh,{children:[(0,Z.jsx)(Ri,{onClick:u,children:i}),(0,Z.jsx)(Ri,{loading:n,type:`primary`,...o,onClick:d,children:s})]})]})};Xh.displayName=`ConfirmBody`;var Zh=0;function Qh(){let e=Zh++,t=e===0?`BaseModalHost`:`BaseModalHost-${e}`,n=[],r=0,i=new Set,a=()=>i.forEach(e=>e()),o=e=>(i.add(e),()=>i.delete(e)),s=[],c=()=>n,l=()=>s,u=(e,t)=>{let r=!1;n=n.map(n=>n.id===e?(r=!0,{...n,props:{...n.props,...t}}):n),r&&a()},d=e=>{u(e,{open:!1})},f=e=>{let t=n.filter(t=>t.id!==e);t.length!==n.length&&(n=t,a())},p=(0,X.memo)(({entry:e})=>{let{id:t,props:n}=e,{children:r,classNames:i,content:a,footer:o,maskClosable:s,onOpenChange:c,onOpenChangeComplete:l,open:p,styles:m,title:h,width:g}=n,_=p??!0,v=(0,X.useCallback)((e,n)=>{(e||s!==!1||n?.reason!==`outside-press`)&&(e||d(t),c?.(e))},[t,s,c]),y=(0,X.useCallback)(()=>{l?.(!1),f(t)},[t,l]),b=(0,X.useCallback)(()=>d(t),[t]),x=(0,X.useCallback)(e=>u(t,{maskClosable:e}),[t]),S=h!==void 0&&h!==!1&&h!==null;return(0,Z.jsx)(qh,{value:{close:b,setCanDismissByClickOutside:x},children:(0,Z.jsx)(Fh,{open:_,onExitComplete:y,onOpenChange:v,children:(0,Z.jsxs)(Ih,{children:[(0,Z.jsx)(Lh,{className:i?.backdrop,style:m?.backdrop}),(0,Z.jsxs)(zh,{className:i?.popup,popupStyle:m?.popup,width:g,children:[S&&(0,Z.jsxs)(Vh,{className:i?.header,style:m?.header,children:[(0,Z.jsx)(Hh,{className:i?.title,style:m?.title,children:h}),(0,Z.jsx)(Kh,{className:i?.close,style:m?.close})]}),(0,Z.jsx)(Wh,{className:i?.content,style:m?.content,xstyle:!S&&Dh.contentNoHeader,children:a??r}),o]})]})})})});p.displayName=`ModalStackItem`;let m=(0,X.memo)(({stack:e})=>$o()?e.map(e=>(0,Z.jsx)(p,{entry:e},e.id)):null);m.displayName=`ModalStackRenderer`;let h=({root:e})=>{let n=(0,X.useSyncExternalStore)(o,c,l),r=$o();return(0,X.useEffect)(()=>{if(!r)return;let n=e??document.body;return yh(t,n)},[r,e]),!r||n.length===0?null:(0,Z.jsx)(Yh,{root:e,children:(0,Z.jsx)(m,{stack:n})})},g=e=>{let t=`base-modal-${Date.now()}-${r++}`;return n=[...n,{id:t,props:{...e,open:e.open??!0}}],a(),{close:()=>d(t),destroy:()=>f(t),setCanDismissByClickOutside:e=>u(t,{maskClosable:e}),update:e=>u(t,e)}};return{ModalHost:h,confirmModal:e=>{let t=g({content:(0,Z.jsx)(Xh,{config:e}),styles:{content:{padding:0}},title:e.title,width:e.width??420});return{close:t.close,destroy:t.destroy}},createModal:g}}var $h=Qh(),eg=$h.ModalHost,tg=$h.createModal;$h.confirmModal;var ng=`ryugi:modal-escape`,rg=e=>{try{return!!e.frameElement?.hasAttribute(`data-ryugi-modal`)}catch{return!1}},ig=e=>e instanceof HTMLElement&&(e.isContentEditable||e.tagName===`INPUT`||e.tagName===`TEXTAREA`);function ag(e=window){if(!rg(e))return()=>void 0;let t=t=>{t.key!==`Escape`||ig(t.target)||e.parent.postMessage({type:ng},e.location.origin)};return e.addEventListener(`keydown`,t),()=>e.removeEventListener(`keydown`,t)}var og=new Map,sg=new Set,cg=()=>{for(let e of sg)e()};function lg(e){if(typeof e!=`object`||!e)return;let{type:t,artifact:n,threads:r}=e;t===`thread-activity`&&typeof n==`string`&&typeof r==`object`&&r&&(Object.keys(r).length===0?og.delete(n):og.set(n,r),cg())}function ug(){og.size!==0&&(og.clear(),cg())}var dg=e=>(sg.add(e),()=>{sg.delete(e)}),fg=e=>{for(let t of og.values())if(t[e])return t[e];return null};function pg(e){return(0,X.useSyncExternalStore)(dg,()=>fg(e),()=>null)}var mg=()=>document.documentElement.dataset.ryugiEmbedParent??null,hg=()=>mg()??location.origin,gg=e=>e.source===window.parent&&e.origin===hg();function _g(e,t){window.parent!==window&&window.parent.postMessage({type:`ryugi:cloud-header`,id:e,...t},hg())}function vg(e,t){let n=t!==null,{title:r,online:i,comments:a,activity:o,activityParts:s,activityTone:c,retrying:l,reconnecting:u,reason:d,history:f,historyOpen:p,documentExport:m,toolbar:h,liveBlocked:g,report:_}=t??{},v=_===void 0?void 0:JSON.stringify(_);return(0,X.useEffect)(()=>{n&&_g(e,{title:r,online:i,comments:a,activity:o,activityParts:s,activityTone:c,retrying:l,reconnecting:u,reason:d,history:f,historyOpen:p,documentExport:m,toolbar:h,liveBlocked:g,report:_})},[e,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,v]),n&&window.parent!==window}var yg=`ryugi:split`;function bg(e){if(e.parent===e)return!1;try{return e.parent.location.origin===e.location.origin}catch{return!1}}function xg(e=window){return rg(e)?null:e.document.documentElement.dataset.ryugiEmbedParent||(bg(e)?e.location.origin:null)}var Sg=(e=window)=>xg(e)!==null,Cg=(e=window)=>bg(e),wg=(e,t=window)=>{let n=xg(t);n&&t.parent.postMessage({type:yg,...e},n)},Tg=(e,t)=>e?.postMessage({type:yg,...t},location.origin);function Eg(e){let t=t=>{let n=document.documentElement.dataset.ryugiEmbedParent,r=!!n&&t.origin===n&&t.source===window.parent;if(t.origin!==location.origin&&!r)return;let i=t.data;i&&i.type===yg&&e(i,t.source)};return window.addEventListener(`message`,t),()=>window.removeEventListener(`message`,t)}var Dg=640,Og=(e,t=window)=>e&&(!bg(t)||t.parent.innerWidth<=Dg);function kg(){let[e,t]=(0,X.useState)({role:null,other:null});return(0,X.useEffect)(()=>{if(!Sg())return;let e=Eg(e=>{e.kind===`split-role`&&t({role:e.role,other:e.other})});return wg({kind:`want-role`}),e},[]),e}function Ag({comments:e,open:t,available:n,onComments:r,onHistory:i,compact:a=!1}){let s=o(`document.railComments`,{count:e}),c=o(`document.history`);return(0,Z.jsxs)(`div`,{"aria-label":o(`document.rail`),role:`group`,className:`x78zum5 x6s0dn4 x1jnr06f x2lah0s`,children:[(0,Z.jsxs)(`button`,{"aria-label":a?s:void 0,"aria-pressed":!t,title:a?s:void 0,type:`button`,onClick:()=>{t&&r()},...{0:{className:`x78zum5 x6s0dn4 x17d4w8g x1fgtraw xdqyycr xc342km x1kogg8i xjbqb8w xj0l527 x1bo0w0s xqfszdh xfifm61 xss6m8b xuxw1ft x1ypdohk x1t5pwa4 xtgyt42 x1122l3h x7s97pk`},1:{className:`x78zum5 x6s0dn4 x17d4w8g x1fgtraw xdqyycr xc342km x1kogg8i xqfszdh xfifm61 xss6m8b xuxw1ft x1ypdohk x1t5pwa4 xtgyt42 x1122l3h x7s97pk xahzvm9 xo2rkog`}}[!t|0],children:[(0,Z.jsx)(yi,{"aria-hidden":`true`,size:14}),a?e:s]}),(0,Z.jsxs)(`button`,{"aria-label":a?c:void 0,"aria-pressed":t,disabled:!n,title:n?a?c:void 0:o(`document.historyOffline`),type:`button`,onClick:()=>{t||i()},...{0:{className:`x78zum5 x6s0dn4 x17d4w8g x1fgtraw xdqyycr xc342km x1kogg8i xjbqb8w xj0l527 x1bo0w0s xqfszdh xfifm61 xss6m8b xuxw1ft x1ypdohk x1t5pwa4 xtgyt42 x1122l3h x7s97pk`},2:{className:`x78zum5 x6s0dn4 x17d4w8g x1fgtraw xc342km x1kogg8i xjbqb8w xj0l527 x1bo0w0s xqfszdh xfifm61 xss6m8b xuxw1ft x1ypdohk x1t5pwa4 xtgyt42 x1122l3h x7s97pk xgd8bvy xl56j7k xnjsko4`},1:{className:`x78zum5 x6s0dn4 x17d4w8g x1fgtraw xdqyycr xc342km x1kogg8i xqfszdh xfifm61 xss6m8b xuxw1ft x1ypdohk x1t5pwa4 xtgyt42 x1122l3h x7s97pk xahzvm9 xo2rkog`},3:{className:`x78zum5 x6s0dn4 x17d4w8g x1fgtraw xc342km x1kogg8i xqfszdh xfifm61 xss6m8b xuxw1ft x1ypdohk x1t5pwa4 xtgyt42 x1122l3h x7s97pk xgd8bvy xl56j7k xnjsko4 xahzvm9 xo2rkog`}}[!!a<<1|!!t],children:[(0,Z.jsx)(Ci,{"aria-hidden":`true`,size:14}),a?null:c]})]})}var jg=3e3,Mg=globalThis;function Ng(e){return Mg.__ryugiEmbedAnchor=e,()=>{Mg.__ryugiEmbedAnchor===e&&(Mg.__ryugiEmbedAnchor=null)}}var Pg=()=>Mg.__ryugiEmbedAnchor?.read()??null,Fg=e=>Mg.__ryugiEmbedAnchor?.apply(e)??!1;function Ig(e,t=Date.now()){Mg.__ryugiPendingAnchor={anchor:e,until:t+jg}}function Lg(e=Date.now()){let t=Mg.__ryugiPendingAnchor;return t&&e<t.until?t.anchor:null}function Rg(){Mg.__ryugiPendingAnchor=null}var zg=[{type:`document`,refAttribute:`document`,subTargets:[`block`],splitPane:!0},{type:`artboard`,refAttribute:`artboard`,subTargets:[`group`,`board`],splitPane:!0},{type:`whiteboard`,refAttribute:`whiteboard`,subTargets:[`page`,`frame`],splitPane:!0},{type:`html`,refAttribute:`html`,subTargets:[],splitPane:!0},{type:`slides`,refAttribute:`slides`,subTargets:[`slide`],splitPane:!0},{type:`report`,refAttribute:`report`,subTargets:[`block`],splitPane:!0},{type:`storyboard`,refAttribute:`storyboard`,subTargets:[`shot`],splitPane:!0}],Bg=zg.map(e=>e.refAttribute),Vg=[...new Set(zg.flatMap(e=>e.subTargets))];function Hg(e){return zg.find(t=>t.type===e)??null}var Ug=e=>a(e)&&r(e).splitRole===`board`,Wg=[...zg.filter(e=>e.splitPane).map(e=>e.type),`verify`],Gg=e=>Wg.includes(e),Kg=[`with`,`kind`,`board`,`group`,`frame`,`wbpage`,`slide`,`block`],qg={block:`block`,frame:`frame`,page:`wbpage`,slide:`slide`,group:`group`,board:`board`},Jg=(e,t)=>{for(let n of e){let e=t(n);if(e)return{[n]:e}}return{}};function Yg(e){let t=new URLSearchParams(e),o=t.get(`with`);if(!o||!n(o))return null;let s=t.get(`kind`);if(s&&a(s)&&r(s).linksOut)return{with:o,kind:s,...Jg(r(s).splitFocus??[],e=>t.get(qg[e]))};let c=s&&a(s)&&r(s).splitFocus&&!r(s).splitUnnamed?s:null;return{with:o,...c?{kind:c}:{},...Jg(r(c??i).splitFocus??[],e=>t.get(qg[e]))}}function Xg(e,t){let n=new URLSearchParams(e);for(let e of Kg)n.delete(e);t&&(n.set(`with`,t.with),t.kind&&n.set(`kind`,t.kind),t.frame?n.set(`frame`,t.frame):t.page?n.set(`wbpage`,t.page):t.slide?n.set(`slide`,t.slide):t.group?n.set(`group`,t.group):t.board?n.set(`board`,t.board):t.block&&n.set(`block`,t.block));let r=n.toString();return r?`?${r}`:``}function Zg(e,t){if(e.kind!==`artifact`||!Gg(e.type))return null;let n=Yg(t);return n?{type:e.type,split:n}:null}export{Ym as $,la as $n,Al as $t,ng as A,ts as An,Tr as Ar,qf as At,Bh as B,ko as Bn,sd as Bt,wg as C,hs as Cn,$r as Cr,yp as Ct,lg as D,ls as Dn,Gr as Dr,Zf as Dt,vg as E,us as En,qr as Er,sp as Et,Jh as F,qo as Fn,yf as Ft,Hh as G,bo as Gn,Gl as Gt,Rh as H,Po as Hn,gu as Ht,Lh as I,Wo as In,vf as It,vh as J,go as Jn,Ll as Jt,Dh as K,_o as Kn,Hl as Kt,Wh as L,Uo as Ln,Ed as Lt,rg as M,Qo as Mn,Nr as Mr,jf as Mt,eg as N,Zo as Nn,Pr as Nr,Af as Nt,ug as O,ss as On,Rr as Or,Yf as Ot,tg as P,Yo as Pn,vr as Pr,Df as Pt,Xm as Q,ua as Qn,Nl as Qt,Uh as R,Bo as Rn,ud as Rt,Tg as S,gs as Sn,ti as Sr,_p as St,gg as T,fs as Tn,Yr as Tr,mp as Tt,Ih as U,Oo as Un,ru as Ut,zh as V,Fo as Vn,Fu as Vt,Fh as W,wo as Wn,Kl as Wt,ih as X,eo as Xn,Il as Xt,mh as Y,ro as Yn,Rl as Yt,rh as Z,_a as Zn,Pl as Zt,kg as _,Cs as _n,di as _r,Np as _t,Xg as a,vl as an,Wi as ar,Lm as at,Sg as b,bs as bn,ai as br,xp as bt,Vg as c,al as cn,Li as cr,ym as ct,Rg as d,Mc as dn,Ti as dr,Ip as dt,jl as en,na as er,Um as et,Ng as f,Nc as fn,Ci as fr,Fp as ft,Ag as g,ws as gn,pi as gr,Cp as gt,Ig as h,lc as hn,hi as hr,kp as ht,Zg as i,El as in,Ki as ir,Rm as it,ag as j,$o as jn,kr as jr,zf as jt,pg as k,os as kn,Fr as kr,Xf as kt,Hg as l,ol as ln,Ai as lr,vm as lt,Pg as m,bc as mn,_i as mr,Ep as mt,Ug as n,wl as nn,$i as nr,Vm as nt,zg as o,ll as on,Bi as or,Fm as ot,Lg as p,Ac as pn,xi as pr,Pp as pt,Eh as q,vo as qn,zl as qt,Yg as r,Cl as rn,Ji as rr,Im as rt,Bg as s,tl as sn,Ri as sr,xm as st,Jg as t,Ml as tn,ea as tr,Hm as tt,Fg as u,il as un,Di as ur,Hp as ut,Cg as v,Ss as vn,li as vr,Ap as vt,mg as w,ms as wn,Zr as wr,pp as wt,Eg as x,vs as xn,ri as xr,bp as xt,Og as y,xs as yn,si as yr,vp as yt,Gh as z,Ao as zn,ad as zt};