@deslop/portfolio 0.1.1249 → 0.1.1254
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/(home)-CKhZzCp3.js +1 -0
- package/dist/client/assets/{cv-QNOzfqtN.js → cv-DkK0-RlT.js} +1 -1
- package/dist/client/assets/index-CSJIie1X.js +3 -0
- package/dist/client/assets/index-ixzZqEfy.css +2 -0
- package/dist/client/assets/profile-CAmdNQBr.js +1 -0
- package/dist/client/index.html +6 -5
- package/package.json +3 -2
- package/dist/client/assets/(home)-C78bCX2X.js +0 -1
- package/dist/client/assets/index-B6SVX2wE.js +0 -3
- package/dist/client/assets/index-CxFSPmwu.css +0 -2
- package/dist/client/assets/profile-9fIWkC_A.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{a as t,n,o as r}from"./react-COyt-gOi.js";var i=e(r(),1),a=(0,i.createContext)({color:`currentColor`,size:`1em`,weight:`regular`,mirrored:!1}),o=i.forwardRef((e,t)=>{let{alt:n,color:r,size:o,weight:s,mirrored:c,children:l,weights:u,...d}=e,{color:f=`currentColor`,size:p,weight:m=`regular`,mirrored:h=!1,...g}=i.useContext(a);return i.createElement(`svg`,{ref:t,xmlns:`http://www.w3.org/2000/svg`,width:o??p,height:o??p,fill:r??f,viewBox:`0 0 256 256`,transform:c||h?`scale(-1, 1)`:void 0,...g,...d},!!n&&i.createElement(`title`,null,n),l,u.get(s??m))});o.displayName=`IconBase`;var s=new Map([[`bold`,i.createElement(i.Fragment,null,i.createElement(`path`,{d:`M208,36H48A20,20,0,0,0,28,56V200a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V56A20,20,0,0,0,208,36Zm-4,24v56H52V60ZM52,196V140H204v56ZM160,88a16,16,0,1,1,16,16A16,16,0,0,1,160,88Zm32,80a16,16,0,1,1-16-16A16,16,0,0,1,192,168Z`}))],[`duotone`,i.createElement(i.Fragment,null,i.createElement(`path`,{d:`M216,152v48a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8H208A8,8,0,0,1,216,152ZM208,48H48a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8H208a8,8,0,0,0,8-8V56A8,8,0,0,0,208,48Z`,opacity:`0.2`}),i.createElement(`path`,{d:`M208,136H48a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V152A16,16,0,0,0,208,136Zm0,64H48V152H208v48Zm0-160H48A16,16,0,0,0,32,56v48a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V56A16,16,0,0,0,208,40Zm0,64H48V56H208v48ZM192,80a12,12,0,1,1-12-12A12,12,0,0,1,192,80Zm0,96a12,12,0,1,1-12-12A12,12,0,0,1,192,176Z`}))],[`fill`,i.createElement(i.Fragment,null,i.createElement(`path`,{d:`M208,40H48A16,16,0,0,0,32,56v48a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V56A16,16,0,0,0,208,40ZM180,92a12,12,0,1,1,12-12A12,12,0,0,1,180,92Z`}),i.createElement(`path`,{d:`M208,136H48a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V152A16,16,0,0,0,208,136Zm-28,52a12,12,0,1,1,12-12A12,12,0,0,1,180,188Z`}))],[`light`,i.createElement(i.Fragment,null,i.createElement(`path`,{d:`M208,138H48a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V152A14,14,0,0,0,208,138Zm2,62a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2ZM208,42H48A14,14,0,0,0,34,56v48a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V56A14,14,0,0,0,208,42Zm2,62a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2ZM190,80a10,10,0,1,1-10-10A10,10,0,0,1,190,80Zm0,96a10,10,0,1,1-10-10A10,10,0,0,1,190,176Z`}))],[`regular`,i.createElement(i.Fragment,null,i.createElement(`path`,{d:`M208,136H48a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V152A16,16,0,0,0,208,136Zm0,64H48V152H208v48Zm0-160H48A16,16,0,0,0,32,56v48a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V56A16,16,0,0,0,208,40Zm0,64H48V56H208v48ZM192,80a12,12,0,1,1-12-12A12,12,0,0,1,192,80Zm0,96a12,12,0,1,1-12-12A12,12,0,0,1,192,176Z`}))],[`thin`,i.createElement(i.Fragment,null,i.createElement(`path`,{d:`M208,140H48a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V152A12,12,0,0,0,208,140Zm4,60a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4ZM208,44H48A12,12,0,0,0,36,56v48a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V56A12,12,0,0,0,208,44Zm4,60a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Zm-24,72a8,8,0,1,1-8-8A8,8,0,0,1,188,176Zm0-96a8,8,0,1,1-8-8A8,8,0,0,1,188,80Z`}))]]),c=i.forwardRef((e,t)=>i.createElement(o,{ref:t,...e,weights:s}));c.displayName=`HardDrivesIcon`;var l=new Map([[`bold`,i.createElement(i.Fragment,null,i.createElement(`path`,{d:`M208,36H48A28,28,0,0,0,20,64V176a28,28,0,0,0,28,28H208a28,28,0,0,0,28-28V64A28,28,0,0,0,208,36Zm4,140a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V64a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Zm-40,52a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,228Z`}))],[`duotone`,i.createElement(i.Fragment,null,i.createElement(`path`,{d:`M224,64V176a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V64A16,16,0,0,1,48,48H208A16,16,0,0,1,224,64Z`,opacity:`0.2`}),i.createElement(`path`,{d:`M208,40H48A24,24,0,0,0,24,64V176a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V64A24,24,0,0,0,208,40Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8Zm-48,48a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,224Z`}))],[`fill`,i.createElement(i.Fragment,null,i.createElement(`path`,{d:`M232,64V176a24,24,0,0,1-24,24H48a24,24,0,0,1-24-24V64A24,24,0,0,1,48,40H208A24,24,0,0,1,232,64ZM160,216H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Z`}))],[`light`,i.createElement(i.Fragment,null,i.createElement(`path`,{d:`M208,42H48A22,22,0,0,0,26,64V176a22,22,0,0,0,22,22H208a22,22,0,0,0,22-22V64A22,22,0,0,0,208,42Zm10,134a10,10,0,0,1-10,10H48a10,10,0,0,1-10-10V64A10,10,0,0,1,48,54H208a10,10,0,0,1,10,10Zm-52,48a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,224Z`}))],[`regular`,i.createElement(i.Fragment,null,i.createElement(`path`,{d:`M208,40H48A24,24,0,0,0,24,64V176a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V64A24,24,0,0,0,208,40Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8Zm-48,48a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,224Z`}))],[`thin`,i.createElement(i.Fragment,null,i.createElement(`path`,{d:`M208,44H48A20,20,0,0,0,28,64V176a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V64A20,20,0,0,0,208,44Zm12,132a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V64A12,12,0,0,1,48,52H208a12,12,0,0,1,12,12Zm-56,48a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,224Z`}))]]),u=i.forwardRef((e,t)=>i.createElement(o,{ref:t,...e,weights:l}));u.displayName=`MonitorIcon`;var d=new Map([[`bold`,i.createElement(i.Fragment,null,i.createElement(`path`,{d:`M199,125.31l-49.88-18.39L130.69,57a19.92,19.92,0,0,0-37.38,0L74.92,106.92,25,125.31a19.92,19.92,0,0,0,0,37.38l49.88,18.39L93.31,231a19.92,19.92,0,0,0,37.38,0l18.39-49.88L199,162.69a19.92,19.92,0,0,0,0-37.38Zm-63.38,35.16a12,12,0,0,0-7.11,7.11L112,212.28l-16.47-44.7a12,12,0,0,0-7.11-7.11L43.72,144l44.7-16.47a12,12,0,0,0,7.11-7.11L112,75.72l16.47,44.7a12,12,0,0,0,7.11,7.11L180.28,144ZM140,40a12,12,0,0,1,12-12h12V16a12,12,0,0,1,24,0V28h12a12,12,0,0,1,0,24H188V64a12,12,0,0,1-24,0V52H152A12,12,0,0,1,140,40ZM252,88a12,12,0,0,1-12,12h-4v4a12,12,0,0,1-24,0v-4h-4a12,12,0,0,1,0-24h4V72a12,12,0,0,1,24,0v4h4A12,12,0,0,1,252,88Z`}))],[`duotone`,i.createElement(i.Fragment,null,i.createElement(`path`,{d:`M194.82,151.43l-55.09,20.3-20.3,55.09a7.92,7.92,0,0,1-14.86,0l-20.3-55.09-55.09-20.3a7.92,7.92,0,0,1,0-14.86l55.09-20.3,20.3-55.09a7.92,7.92,0,0,1,14.86,0l20.3,55.09,55.09,20.3A7.92,7.92,0,0,1,194.82,151.43Z`,opacity:`0.2`}),i.createElement(`path`,{d:`M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z`}))],[`fill`,i.createElement(i.Fragment,null,i.createElement(`path`,{d:`M208,144a15.78,15.78,0,0,1-10.42,14.94L146,178l-19,51.62a15.92,15.92,0,0,1-29.88,0L78,178l-51.62-19a15.92,15.92,0,0,1,0-29.88L78,110l19-51.62a15.92,15.92,0,0,1,29.88,0L146,110l51.62,19A15.78,15.78,0,0,1,208,144ZM152,48h16V64a8,8,0,0,0,16,0V48h16a8,8,0,0,0,0-16H184V16a8,8,0,0,0-16,0V32H152a8,8,0,0,0,0,16Zm88,32h-8V72a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0V96h8a8,8,0,0,0,0-16Z`}))],[`light`,i.createElement(i.Fragment,null,i.createElement(`path`,{d:`M196.89,130.94,144.4,111.6,125.06,59.11a13.92,13.92,0,0,0-26.12,0L79.6,111.6,27.11,130.94a13.92,13.92,0,0,0,0,26.12L79.6,176.4l19.34,52.49a13.92,13.92,0,0,0,26.12,0L144.4,176.4l52.49-19.34a13.92,13.92,0,0,0,0-26.12Zm-4.15,14.86-55.08,20.3a6,6,0,0,0-3.56,3.56l-20.3,55.08a1.92,1.92,0,0,1-3.6,0L89.9,169.66a6,6,0,0,0-3.56-3.56L31.26,145.8a1.92,1.92,0,0,1,0-3.6l55.08-20.3a6,6,0,0,0,3.56-3.56l20.3-55.08a1.92,1.92,0,0,1,3.6,0l20.3,55.08a6,6,0,0,0,3.56,3.56l55.08,20.3a1.92,1.92,0,0,1,0,3.6ZM146,40a6,6,0,0,1,6-6h18V16a6,6,0,0,1,12,0V34h18a6,6,0,0,1,0,12H182V64a6,6,0,0,1-12,0V46H152A6,6,0,0,1,146,40ZM246,88a6,6,0,0,1-6,6H230v10a6,6,0,0,1-12,0V94H208a6,6,0,0,1,0-12h10V72a6,6,0,0,1,12,0V82h10A6,6,0,0,1,246,88Z`}))],[`regular`,i.createElement(i.Fragment,null,i.createElement(`path`,{d:`M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z`}))],[`thin`,i.createElement(i.Fragment,null,i.createElement(`path`,{d:`M196.2,132.81l-53.36-19.65L123.19,59.8a11.93,11.93,0,0,0-22.38,0L81.16,113.16,27.8,132.81a11.93,11.93,0,0,0,0,22.38l53.36,19.65,19.65,53.36a11.93,11.93,0,0,0,22.38,0l19.65-53.36,53.36-19.65a11.93,11.93,0,0,0,0-22.38Zm-2.77,14.87L138.35,168a4,4,0,0,0-2.37,2.37l-20.3,55.08a3.92,3.92,0,0,1-7.36,0L88,170.35A4,4,0,0,0,85.65,168l-55.08-20.3a3.92,3.92,0,0,1,0-7.36L85.65,120A4,4,0,0,0,88,117.65l20.3-55.08a3.92,3.92,0,0,1,7.36,0L136,117.65a4,4,0,0,0,2.37,2.37l55.08,20.3a3.92,3.92,0,0,1,0,7.36ZM148,40a4,4,0,0,1,4-4h20V16a4,4,0,0,1,8,0V36h20a4,4,0,0,1,0,8H180V64a4,4,0,0,1-8,0V44H152A4,4,0,0,1,148,40Zm96,48a4,4,0,0,1-4,4H228v12a4,4,0,0,1-8,0V92H208a4,4,0,0,1,0-8h12V72a4,4,0,0,1,8,0V84h12A4,4,0,0,1,244,88Z`}))]]),f=i.forwardRef((e,t)=>i.createElement(o,{ref:t,...e,weights:d}));f.displayName=`SparkleIcon`;var p=new Map([[`bold`,i.createElement(i.Fragment,null,i.createElement(`path`,{d:`M234.36,170A12,12,0,0,1,230,186.37l-96,56a12,12,0,0,1-12.1,0l-96-56a12,12,0,0,1,12.09-20.74l90,52.48L218,165.63A12,12,0,0,1,234.36,170ZM218,117.63,128,170.11,38.05,117.63A12,12,0,0,0,26,138.37l96,56a12,12,0,0,0,12.1,0l96-56A12,12,0,0,0,218,117.63ZM20,80a12,12,0,0,1,6-10.37l96-56a12.06,12.06,0,0,1,12.1,0l96,56a12,12,0,0,1,0,20.74l-96,56a12,12,0,0,1-12.1,0l-96-56A12,12,0,0,1,20,80Zm35.82,0L128,122.11,200.18,80,128,37.89Z`}))],[`duotone`,i.createElement(i.Fragment,null,i.createElement(`path`,{d:`M224,80l-96,56L32,80l96-56Z`,opacity:`0.2`}),i.createElement(`path`,{d:`M230.91,172A8,8,0,0,1,228,182.91l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,36,169.09l92,53.65,92-53.65A8,8,0,0,1,230.91,172ZM220,121.09l-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09ZM24,80a8,8,0,0,1,4-6.91l96-56a8,8,0,0,1,8.06,0l96,56a8,8,0,0,1,0,13.82l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,24,80Zm23.88,0L128,126.74,208.12,80,128,33.26Z`}))],[`fill`,i.createElement(i.Fragment,null,i.createElement(`path`,{d:`M220,169.09l-92,53.65L36,169.09A8,8,0,0,0,28,182.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,169.09Z`}),i.createElement(`path`,{d:`M220,121.09l-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09Z`}),i.createElement(`path`,{d:`M28,86.91l96,56a8,8,0,0,0,8.06,0l96-56a8,8,0,0,0,0-13.82l-96-56a8,8,0,0,0-8.06,0l-96,56a8,8,0,0,0,0,13.82Z`}))],[`light`,i.createElement(i.Fragment,null,i.createElement(`path`,{d:`M229.18,173a6,6,0,0,1-2.16,8.2l-96,56a6,6,0,0,1-6,0l-96-56a6,6,0,0,1,6-10.36l93,54.23,93-54.23A6,6,0,0,1,229.18,173ZM221,122.82l-93,54.23L35,122.82a6,6,0,0,0-6,10.36l96,56a6,6,0,0,0,6,0l96-56a6,6,0,0,0-6-10.36ZM26,80a6,6,0,0,1,3-5.18l96-56a6,6,0,0,1,6,0l96,56a6,6,0,0,1,0,10.36l-96,56a6,6,0,0,1-6,0l-96-56A6,6,0,0,1,26,80Zm17.91,0L128,129.05,212.09,80,128,31Z`}))],[`regular`,i.createElement(i.Fragment,null,i.createElement(`path`,{d:`M230.91,172A8,8,0,0,1,228,182.91l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,36,169.09l92,53.65,92-53.65A8,8,0,0,1,230.91,172ZM220,121.09l-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09ZM24,80a8,8,0,0,1,4-6.91l96-56a8,8,0,0,1,8.06,0l96,56a8,8,0,0,1,0,13.82l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,24,80Zm23.88,0L128,126.74,208.12,80,128,33.26Z`}))],[`thin`,i.createElement(i.Fragment,null,i.createElement(`path`,{d:`M227.45,174a4,4,0,0,1-1.44,5.48l-96,56a4,4,0,0,1-4,0l-96-56a4,4,0,0,1,4-6.92l94,54.83,94-54.83A4,4,0,0,1,227.45,174ZM222,124.54l-94,54.83L34,124.54a4,4,0,0,0-4,6.92l96,56a4,4,0,0,0,4,0l96-56a4,4,0,0,0-4-6.92ZM28,80a4,4,0,0,1,2-3.46l96-56a4,4,0,0,1,4,0l96,56a4,4,0,0,1,0,6.92l-96,56a4,4,0,0,1-4,0l-96-56A4,4,0,0,1,28,80Zm11.94,0L128,131.37,216.06,80,128,28.63Z`}))]]),m=i.forwardRef((e,t)=>i.createElement(o,{ref:t,...e,weights:p}));m.displayName=`StackIcon`;var h=n();function g(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=g(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function _(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=g(e))&&(r&&(r+=` `),r+=t);return r}var v=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,y=_,b=(e,t)=>n=>{if(t?.variants==null)return y(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=v(t)||v(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return y(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},x=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},ee=(e,t)=>({classGroupId:e,validator:t}),S=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),C=`-`,w=[],te=`arbitrary..`,ne=e=>{let t=E(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return re(e);let n=e.split(C);return T(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?x(i,t):t:i||w}return n[e]||w}}},T=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=T(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(C):e.slice(t).join(C),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},re=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?te+r:void 0})(),E=e=>{let{theme:t,classGroups:n}=e;return D(n,t)},D=(e,t)=>{let n=S();for(let r in e){let i=e[r];O(i,n,r,t)}return n},O=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];k(i,t,n,r)}},k=(e,t,n,r)=>{typeof e==`string`?ie(e,t,n):typeof e==`function`?ae(e,t,n,r):A(e,t,n,r)},ie=(e,t,n)=>{let r=e===``?t:j(t,e);r.classGroupId=n},ae=(e,t,n,r)=>{oe(e)?O(e(r),t,n,r):(t.validators===null&&(t.validators=[]),t.validators.push(ee(n,e)))},A=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];O(o,j(t,a),n,r)}},j=(e,t)=>{let n=e,r=t.split(C),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=S(),n.nextPart.set(t,i)),n=i}return n},oe=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,se=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},M=`!`,N=`:`,P=[],F=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),ce=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===N){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(M)?(c=s.slice(0,-1),l=!0):s.startsWith(M)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return F(t,l,c,u)};if(t){let e=t+N,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):F(P,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},I=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},le=e=>({cache:se(e.cacheSize),parseClassName:ce(e),sortModifiers:I(e),postfixLookupClassGroupIds:L(e),...ne(e)}),L=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},R=/\s+/,ue=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(R),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h||(g=r(p),!g)){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+M:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},z=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=de(n))&&(i&&(i+=` `),i+=r);return i},de=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=de(e[r]))&&(n&&(n+=` `),n+=t);return n},fe=(e,...t)=>{let n,r,i,a,o=o=>(n=le(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=ue(e,n);return i(e,a),a};return a=o,(...e)=>a(z(...e))},pe=[],B=e=>{let t=t=>t[e]||pe;return t.isThemeGetter=!0,t.themeKey=e,t},me=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,he=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ge=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,_e=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ve=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ye=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,be=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,V=e=>ge.test(e),H=e=>!!e&&!Number.isNaN(Number(e)),U=e=>!!e&&Number.isInteger(Number(e)),Se=e=>e.endsWith(`%`)&&H(e.slice(0,-1)),W=e=>_e.test(e),Ce=()=>!0,we=e=>ve.test(e)&&!ye.test(e),Te=()=>!1,Ee=e=>be.test(e),De=e=>xe.test(e),Oe=e=>!G(e)&&!q(e),ke=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Ae=e=>Y(e,Ge,Te),G=e=>me.test(e),K=e=>Y(e,Ke,we),je=e=>Y(e,qe,H),Me=e=>Y(e,Ye,Ce),Ne=e=>Y(e,Je,Te),Pe=e=>Y(e,Ue,Te),Fe=e=>Y(e,We,De),Ie=e=>Y(e,Xe,Ee),q=e=>he.test(e),J=e=>X(e,Ke),Le=e=>X(e,Je),Re=e=>X(e,Ue),ze=e=>X(e,Ge),Be=e=>X(e,We),Ve=e=>X(e,Xe,!0),He=e=>X(e,Ye,!0),Y=(e,t,n)=>{let r=me.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},X=(e,t,n=!1)=>{let r=he.exec(e);return r?r[1]?t(r[1]):n:!1},Ue=e=>e===`position`||e===`percentage`,We=e=>e===`image`||e===`url`,Ge=e=>e===`length`||e===`size`||e===`bg-size`,Ke=e=>e===`length`,qe=e=>e===`number`,Je=e=>e===`family-name`,Ye=e=>e===`number`||e===`weight`,Xe=e=>e===`shadow`,Ze=fe(()=>{let e=B(`color`),t=B(`font`),n=B(`text`),r=B(`font-weight`),i=B(`tracking`),a=B(`leading`),o=B(`breakpoint`),s=B(`container`),c=B(`spacing`),l=B(`radius`),u=B(`shadow`),d=B(`inset-shadow`),f=B(`text-shadow`),p=B(`drop-shadow`),m=B(`blur`),h=B(`perspective`),g=B(`aspect`),_=B(`ease`),v=B(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),q,G],ee=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],S=()=>[`auto`,`contain`,`none`],C=()=>[q,G,c],w=()=>[V,`full`,`auto`,...C()],te=()=>[U,`none`,`subgrid`,q,G],ne=()=>[`auto`,{span:[`full`,U,q,G]},U,q,G],T=()=>[U,`auto`,q,G],re=()=>[`auto`,`min`,`max`,`fr`,q,G],E=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],D=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],O=()=>[`auto`,...C()],k=()=>[V,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...C()],ie=()=>[s,V,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...C()],ae=()=>[V,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...C()],A=()=>[e,q,G],j=()=>[...b(),Re,Pe,{position:[q,G]}],oe=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],se=()=>[`auto`,`cover`,`contain`,ze,Ae,{size:[q,G]}],M=()=>[Se,J,K],N=()=>[``,`none`,`full`,l,q,G],P=()=>[``,H,J,K],F=()=>[`solid`,`dashed`,`dotted`,`double`],ce=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],I=()=>[H,Se,Re,Pe],le=()=>[``,`none`,m,q,G],L=()=>[`none`,H,q,G],R=()=>[`none`,H,q,G],ue=()=>[H,q,G],z=()=>[V,`full`,...C()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[W],breakpoint:[W],color:[Ce],container:[W],"drop-shadow":[W],ease:[`in`,`out`,`in-out`],font:[Oe],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[W],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[W],shadow:[W],spacing:[`px`,H],text:[W],"text-shadow":[W],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,V,G,q,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,q,G]}],"container-named":[ke],columns:[{columns:[H,`auto`,G,q,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:ee()}],"overflow-x":[{"overflow-x":ee()}],"overflow-y":[{"overflow-y":ee()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{"inset-s":w(),start:w()}],end:[{"inset-e":w(),end:w()}],"inset-bs":[{"inset-bs":w()}],"inset-be":[{"inset-be":w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[U,`auto`,q,G]}],basis:[{basis:[V,`full`,`auto`,s,...C()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[H,V,`auto`,`initial`,`none`,G]}],grow:[{grow:[``,H,q,G]}],shrink:[{shrink:[``,H,q,G]}],order:[{order:[U,`first`,`last`,`none`,q,G]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":te()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":re()}],"auto-rows":[{"auto-rows":re()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...E(),`normal`]}],"justify-items":[{"justify-items":[...D(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...D()]}],"align-content":[{content:[`normal`,...E()]}],"align-items":[{items:[...D(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...D(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":E()}],"place-items":[{"place-items":[...D(),`baseline`]}],"place-self":[{"place-self":[`auto`,...D()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":C()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":C()}],"space-y-reverse":[`space-y-reverse`],size:[{size:k()}],"inline-size":[{inline:[`auto`,...ie()]}],"min-inline-size":[{"min-inline":[`auto`,...ie()]}],"max-inline-size":[{"max-inline":[`none`,...ie()]}],"block-size":[{block:[`auto`,...ae()]}],"min-block-size":[{"min-block":[`auto`,...ae()]}],"max-block-size":[{"max-block":[`none`,...ae()]}],w:[{w:[s,`screen`,...k()]}],"min-w":[{"min-w":[s,`screen`,`none`,...k()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...k()]}],h:[{h:[`screen`,`lh`,...k()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...k()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...k()]}],"font-size":[{text:[`base`,n,J,K]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,He,Me]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Se,G]}],"font-family":[{font:[Le,Ne,t]}],"font-features":[{"font-features":[G]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,q,G]}],"line-clamp":[{"line-clamp":[H,`none`,q,je]}],leading:[{leading:[`none`,a,...C()]}],"list-image":[{"list-image":[`none`,q,G]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,q,G]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...F(),`wavy`]}],"text-decoration-thickness":[{decoration:[H,`from-font`,`auto`,q,K]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[H,`auto`,q,G]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:C()}],"tab-size":[{tab:[U,q,G]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,q,G]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,q,G]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:j()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:se()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},U,q,G],radial:[``,q,G],conic:[``,U,q,G]},Be,Fe]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:M()}],"gradient-via-pos":[{via:M()}],"gradient-to-pos":[{to:M()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-bs":[{"border-bs":P()}],"border-w-be":[{"border-be":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":P()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...F(),`hidden`,`none`]}],"divide-style":[{divide:[...F(),`hidden`,`none`]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...F(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[H,q,G]}],"outline-w":[{outline:[``,H,J,K]}],"outline-color":[{outline:A()}],shadow:[{shadow:[``,`inner`,`none`,u,Ve,Ie]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ve,Ie]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:P()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[H,K]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":[`none`,f,Ve,Ie]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[H,q,G]}],"mix-blend":[{"mix-blend":[...ce(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ce()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[H]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[q,G]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[H]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:j()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:se()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,q,G]}],filter:[{filter:[``,`none`,q,G]}],blur:[{blur:le()}],brightness:[{brightness:[H,q,G]}],contrast:[{contrast:[H,q,G]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ve,Ie]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:[``,H,q,G]}],"hue-rotate":[{"hue-rotate":[H,q,G]}],invert:[{invert:[``,H,q,G]}],saturate:[{saturate:[H,q,G]}],sepia:[{sepia:[``,H,q,G]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,q,G]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[H,q,G]}],"backdrop-contrast":[{"backdrop-contrast":[H,q,G]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,H,q,G]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[H,q,G]}],"backdrop-invert":[{"backdrop-invert":[``,H,q,G]}],"backdrop-opacity":[{"backdrop-opacity":[H,q,G]}],"backdrop-saturate":[{"backdrop-saturate":[H,q,G]}],"backdrop-sepia":[{"backdrop-sepia":[``,H,q,G]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,q,G]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[H,`initial`,q,G]}],ease:[{ease:[`linear`,`initial`,_,q,G]}],delay:[{delay:[H,q,G]}],animate:[{animate:[`none`,v,q,G]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,q,G]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:L()}],"rotate-x":[{"rotate-x":L()}],"rotate-y":[{"rotate-y":L()}],"rotate-z":[{"rotate-z":L()}],scale:[{scale:R()}],"scale-x":[{"scale-x":R()}],"scale-y":[{"scale-y":R()}],"scale-z":[{"scale-z":R()}],"scale-3d":[`scale-3d`],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[q,G,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:z()}],"translate-x":[{"translate-x":z()}],"translate-y":[{"translate-y":z()}],"translate-z":[{"translate-z":z()}],"translate-none":[`translate-none`],zoom:[{zoom:[U,q,G]}],accent:[{accent:A()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,q,G]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":A()}],"scrollbar-track-color":[{"scrollbar-track":A()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,q,G]}],fill:[{fill:[`none`,...A()]}],"stroke-w":[{stroke:[H,J,K,je]}],stroke:[{stroke:[`none`,...A()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function Qe(...e){return Ze(_(e))}function $e(){return typeof window<`u`}function et(e){return nt(e)?(e.nodeName||``).toLowerCase():`#document`}function Z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function tt(e){return((nt(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function nt(e){return $e()?e instanceof Node||e instanceof Z(e).Node:!1}function rt(e){return $e()?e instanceof Element||e instanceof Z(e).Element:!1}function it(e){return $e()?e instanceof HTMLElement||e instanceof Z(e).HTMLElement:!1}function at(e){return!$e()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Z(e).ShadowRoot}function ot(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ct(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function st(e){return/^(html|body|#document)$/.test(et(e))}function ct(e){return Z(e).getComputedStyle(e)}function lt(e){if(et(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||at(e)&&e.host||tt(e);return at(t)?t.host:t}var ut={...i},dt={};function ft(e,t){let n=i.useRef(dt);return n.current===dt&&(n.current=e(t)),n}var pt=ut.useInsertionEffect,mt=pt&&pt!==ut.useLayoutEffect?pt:e=>e();function ht(e){let t=ft(gt).current;return t.next=e,mt(t.effect),t.trampoline}function gt(){let e={next:void 0,callback:_t,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function _t(){}var vt=typeof document<`u`?i.useLayoutEffect:()=>{};function yt(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var bt={};function xt(e,t,n,r,i){if(!n&&!r&&!i&&!e)return Ct(t);let a=Ct(e);return t&&(a=Q(a,t)),n&&(a=Q(a,n)),r&&(a=Q(a,r)),i&&(a=Q(a,i)),a}function St(e){if(e.length===0)return bt;if(e.length===1)return Ct(e[0]);let t=Ct(e[0]);for(let n=1;n<e.length;n+=1)t=Q(t,e[n]);return t}function Ct(e){return Dt(e)?{...e(bt)}:wt(e)}function Q(e,t){return Dt(t)?t(e):Tt(e,t)}function wt(e){let t={...e};for(let e in t){let n=t[e];Et(e,n)&&(t[e]=kt(n))}return t}function Tt(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=yt(e.style,r);break;case`className`:e[n]=jt(e.className,r);break;default:e[n]=Et(n,r)?Ot(e[n],r):r}}return e}function Et(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function Dt(e){return typeof e==`function`}function Ot(e,t){return t?e?(...n)=>{let r=n[0];if(Mt(r)){let i=r;At(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:kt(t):e}function kt(e){return e&&((...t)=>{let n=t[0];return Mt(n)&&At(n),e(...t)})}function At(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function jt(e,t){return t?e?t+` `+e:t:e}function Mt(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function Nt(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var Pt=Nt(`https://base-ui.com/production-error`,`Base UI`),Ft=i.createContext(void 0);function It(e=!1){let t=i.useContext(Ft);if(t===void 0&&!e)throw Error(Pt(16));return t}function Lt(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:a=0,isNativeButton:o}=e,s=r&&t!==!1,c=r&&t===!1;return{props:i.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=a,!o&&n&&(e.tabIndex=t?a:-1)),(o&&(t||s)||!o&&n)&&(e[`aria-disabled`]=n),o&&(!t||c)&&(e.disabled=n),e},[r,n,t,s,c,o,a])}}function Rt(e,t,{detail:n=0,pointerType:r=``}={}){e.dispatchEvent(new(Z(e)).PointerEvent(`click`,{bubbles:!0,cancelable:!0,composed:!0,detail:n,pointerType:r,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function zt(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:a=!0,composite:o}=e,s=i.useRef(null),c=It(!0),l=o??c!==void 0,{props:u}=Lt({focusableWhenDisabled:n,disabled:t,composite:l,tabIndex:r,isNativeButton:a}),d=i.useCallback(()=>{let e=s.current;Bt(e)&&l&&t&&u.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,u.disabled,l]);return vt(d,[d]),{getButtonProps:i.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:i,onKeyDown:o,onPointerDown:s,...c}=e;return xt({onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(At(e),o?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,r=e.currentTarget,i=Bt(r),s=!a&&Vt(r),c=n&&(a?i:!s),u=e.key===`Enter`,d=e.key===` `,f=r.getAttribute(`role`),p=f?.startsWith(`menuitem`)||f===`option`||f===`gridcell`;if(n&&l&&d){if(e.defaultPrevented&&p)return;e.preventDefault(),(!a||i)&&(e.preventBaseUIHandler(),Rt(r,e))}else!c||a||!d&&!u?n&&s&&d&&e.preventDefault():e.defaultPrevented||(e.preventDefault(),u&&(e.preventBaseUIHandler(),Rt(r,e)))},onKeyUp(e){t||(At(e),i?.(e),e.target===e.currentTarget&&a&&l&&Bt(e.currentTarget)&&e.key===` `?e.preventDefault():e.baseUIHandlerPrevented||e.target!==e.currentTarget||a||l||e.defaultPrevented||e.key!==` `||(e.preventBaseUIHandler(),Rt(e.currentTarget,e)))},onPointerDown(e){t?e.preventDefault():s?.(e)}},a?{type:`button`}:{role:`button`},u,c)},[t,u,l,a]),buttonRef:ht(e=>{s.current=e,d()})}}function Bt(e){return it(e)&&e.tagName===`BUTTON`}function Vt(e){return it(e)&&e.tagName===`A`&&!!e.href}function Ht(e,t,n,r){let i=ft(Wt).current;return Gt(i,e,t,n,r)&&qt(i,[e,t,n,r]),i.callback}function Ut(e){let t=ft(Wt).current;return Kt(t,e)&&qt(t,e),t.callback}function Wt(){return{callback:null,cleanup:null,refs:[]}}function Gt(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function Kt(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function qt(e,t){e.refs=t,e.callback=t.every(e=>e==null)?null:n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null}}}}}}var Jt=19;function Yt(e){return Jt>=e}function Xt(e){if(!i.isValidElement(e))return null;let t=e,n=t.props;return(Yt(19)?n?.ref:t.ref)??null}function Zt(){}var Qt=Object.freeze([]),$=Object.freeze({});function $t(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e)}else i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function en(e,t){return typeof e==`function`?e(t):e}function tn(e,t){return typeof e==`function`?e(t):e}function nn(e,t,n={}){let r=t.render;n.enabled!==!1&&(r=sn(r));let i=rn(t,n,r);if(n.enabled===!1)return null;let a=n.state??$;return cn(e,r,i,a)}function rn(e,t,n){let{className:r,style:i}=e,{state:a=$,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?en(r,a):void 0,d=l?tn(i,a):void 0,f=l?$t(a,c):$,p=l&&s?an(s):void 0,m=l?yt(f,p)??{}:$;return typeof document<`u`&&(l?m.ref=Array.isArray(o)?Ut([m.ref,Xt(n),...o]):Ht(m.ref,Xt(n),o):Ht(null,null)),l?(u!==void 0&&(m.className=jt(m.className,u)),d!==void 0&&(m.style=yt(m.style,d)),m):$}function an(e){return Array.isArray(e)?St(e):xt(void 0,e)}var on=Symbol.for(`react.lazy`);function sn(e){if(e?.$$typeof!==on)return e;let t=i.Children.toArray(e)[0];return i.isValidElement(t)?t:e}function cn(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=xt(n,t.props);return e.ref=n.ref,i.cloneElement(t,e)}return ln(e,n)}function ln(e,t){return e===`button`?(0,i.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,i.createElement)(`img`,{alt:``,...t,key:t.key}):i.createElement(e,t)}var un=i.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{getButtonProps:l,buttonRef:u}=zt({disabled:i,focusableWhenDisabled:a,native:o});return nn(`button`,e,{state:{disabled:i},ref:[t,u],props:[c,l]})}),dn=t(),fn=b(`group/button inline-flex shrink-0 items-center justify-center rounded-none border border-transparent bg-clip-padding text-xs font-semibold tracking-widest whitespace-nowrap uppercase transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border bg-transparent hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-input/30`,secondary:`bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline underline-offset-4 hover:underline`,search:`border-0 border-b border-input bg-transparent px-0 text-muted-foreground normal-case tracking-normal hover:bg-transparent hover:text-foreground dark:hover:bg-transparent`},size:{default:`h-10 gap-1.5 px-6 has-data-[icon=inline-end]:pr-4 has-data-[icon=inline-start]:pl-4`,xs:`h-7 gap-1 px-3 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-3`,sm:`h-9 gap-1 px-4 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3`,lg:`h-11 gap-1.5 px-8 has-data-[icon=inline-end]:pr-5 has-data-[icon=inline-start]:pl-5`,icon:`size-10`,"icon-xs":`size-7 [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-9`,"icon-lg":`size-11`,search:`h-9 w-full justify-start gap-2.5 px-0 text-sm`}},defaultVariants:{variant:`default`,size:`default`}});function pn(e){let t=(0,h.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,variant:i,size:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=i===void 0?`default`:i,s=a===void 0?`default`:a,c;t[5]!==n||t[6]!==s||t[7]!==o?(c=Qe(fn({variant:o,size:s,className:n})),t[5]=n,t[6]=s,t[7]=o,t[8]=c):c=t[8];let l;return t[9]!==r||t[10]!==c?(l=(0,dn.jsx)(un,{"data-slot":`button`,className:c,...r}),t[9]=r,t[10]=c,t[11]=l):l=t[11],l}var mn={firstName:`Matteo`,lastName:`Paludgnach`,location:`Moimacco (UD), Italy`,portfolio:`portfolio.mp281x.xyz`,title:`Full-Stack TypeScript Developer`,vat:`IT03224930309`},hn={email:{href:`mailto:matteo@mp281x.xyz`,label:`Email`,value:`matteo@mp281x.xyz`},github:{href:`https://github.com/MP281X`,label:`GitHub`,value:`github.com/MP281X`},pec:{href:`mailto:matteo.paludgnach@pec.it`,label:`PEC`,value:`matteo.paludgnach@pec.it`},phone:{href:`tel:+393518853376`,label:`Phone`,value:`+39 351 885 3376`}},gn=`Building AI agents and web apps end to end with Effect and React.`,_n=[{area:`Frontend`,icon:u,items:`TypeScript, React, TanStack (Router, Query, Form, Table), Tailwind CSS, Vite+ (Vite, Vitest, Oxlint)`},{area:`Backend & Data`,icon:c,items:`Effect, Node.js, Bun, PostgreSQL, Drizzle, OpenAPI, SSE`},{area:`AI`,icon:f,items:`AI agents, MCP servers, Claude Code, Codex, OpenCode`},{area:`Cloud & DevOps`,icon:m,items:`Docker, AWS, CI/CD (GitHub Actions, GitLab CI), OpenTelemetry, Git, Linux`}],vn=[{description:`A template monorepo built for coding agents: generators, shared patterns, lint rules and skills keep the Effect web and iOS apps they write consistent and high quality.`,href:`https://github.com/MP281X/deslop`,name:`deslop`,role:`Monorepo Template for Coding Agents`,stack:`Effect · React · TypeScript · Expo · Vite+ · MCP`},{description:`An open-source video platform with FFmpeg/HLS processing and real-time upload progress.`,href:`https://github.com/MP281X/blixter_video`,name:`blixter`,role:`Video Streaming Platform`,stack:`TypeScript · FFmpeg · PostgreSQL · Redis`}],yn=[{company:`Datapizza`,highlights:[`Building Dual, Datapizza’s platform for AI agents and workflow automation`,`Reworked the frontend architecture and the monorepo’s build, lint and CI tooling`],note:`Freelance`,period:`Sep 2026 – Present`,role:`Full-Stack Developer`},{company:`Humans.Tech`,highlights:[`Set up the shared frontend architecture and tooling for new products`,`Built chat interfaces for conversations between people and with AI agents`,`Built UI primitives such as tables and virtualized lists for large datasets`],location:`Frosinone, Italy`,period:`Apr 2026 – Jul 2026`,role:`Frontend Developer`},{company:`Tinexta Cyber`,highlights:[`Built a real-time inventory of devices and cabling for a major telecom company`,`Used ElectricSQL in the React frontend to sync every change live to all connected users`,`Generated a typed API client from the backend’s OpenAPI schema`,`Containerized and deployed services with Docker`],location:`Udine, Italy`,period:`Oct 2024 – Mar 2026`,role:`Full-Stack Developer`},{company:`Altitudo`,highlights:[`Migrated the build system from Create React App to Vite`,`Improved rendering performance with targeted memoization`],location:`Salzburg, Austria`,note:`Erasmus Internship`,period:`Jan 2024 – Mar 2024`,role:`Frontend Developer`},{company:`BizAway`,highlights:[`Built a type-safe end-to-end API testing framework on the OpenAPI schema`,`Built a type-safe email template framework from TSX components`],location:`Spilimbergo, Italy`,note:`Internship`,period:`Jun 2023 – Aug 2023`,role:`Backend Developer`}],bn=[{degree:`Cloud Developer Diploma`,grade:`95/100`,period:`2022 – 2024`,school:`ITS Alto Adriatico`}],xn=[{language:`Italian`,level:`Native`},{language:`English`,level:`C1`},{language:`Spanish`,level:`Basic`}];export{ot as A,et as C,it as D,rt as E,Qe as M,b as N,st as O,o as P,ct as S,Z as T,Pt as _,mn as a,ft as b,gn as c,Qt as d,$ as f,zt as g,Ht as h,xn as i,at as j,nt as k,pn as l,Yt as m,bn as n,vn as o,Zt as p,yn as r,_n as s,hn as t,nn as u,vt as v,lt as w,ut as x,ht as y};
|
package/dist/client/index.html
CHANGED
|
@@ -4,22 +4,23 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta
|
|
6
6
|
name="viewport"
|
|
7
|
-
content="width=device-width, initial-scale=1.0,
|
|
7
|
+
content="width=device-width, initial-scale=1.0, viewport-fit=cover, interactive-widget=resizes-content"
|
|
8
8
|
/>
|
|
9
|
+
<meta name="color-scheme" content="light dark" />
|
|
9
10
|
<meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)" />
|
|
10
|
-
<meta name="theme-color" content="#
|
|
11
|
+
<meta name="theme-color" content="#0d0c0c" media="(prefers-color-scheme: dark)" />
|
|
11
12
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
|
12
13
|
<link rel="icon" href="/assets/icon-yosI2-iT.svg" />
|
|
13
14
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
|
14
15
|
<link rel="manifest" href="/manifest.webmanifest" />
|
|
15
16
|
|
|
16
17
|
<title>Portfolio</title>
|
|
17
|
-
<script type="module" crossorigin src="/assets/index-
|
|
18
|
+
<script type="module" crossorigin src="/assets/index-CSJIie1X.js"></script>
|
|
18
19
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-WkwZ5CU-.js">
|
|
19
20
|
<link rel="modulepreload" crossorigin href="/assets/effect-DM4IaHtK.js">
|
|
20
21
|
<link rel="modulepreload" crossorigin href="/assets/react-COyt-gOi.js">
|
|
21
|
-
<link rel="modulepreload" crossorigin href="/assets/profile-
|
|
22
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
22
|
+
<link rel="modulepreload" crossorigin href="/assets/profile-CAmdNQBr.js">
|
|
23
|
+
<link rel="stylesheet" crossorigin href="/assets/index-ixzZqEfy.css">
|
|
23
24
|
</head>
|
|
24
25
|
<body>
|
|
25
26
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deslop/portfolio",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1254",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/MP281X/deslop.git",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"sideEffects": false,
|
|
18
18
|
"imports": {
|
|
19
19
|
"#lib/*": "./src/lib/*",
|
|
20
|
+
"#routeTree.gen.ts": "./src/routeTree.gen.ts",
|
|
20
21
|
"#routes/*": "./src/routes/*",
|
|
21
22
|
"#rpcs/*": "./src/rpcs/*",
|
|
22
23
|
"#services/*": "./src/services/*"
|
|
@@ -30,5 +31,5 @@
|
|
|
30
31
|
"engines": {
|
|
31
32
|
"node": ">=26"
|
|
32
33
|
},
|
|
33
|
-
"fingerprint": "
|
|
34
|
+
"fingerprint": "3461f02169260510f3ef145d618b37be2a8c8c2a1cbdb07ab4fbc8760ac8bcc0"
|
|
34
35
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{a as t,i as n,n as r,o as i,t as a}from"./react-COyt-gOi.js";import{$ as o,$t as s,C as c,Cn as l,Ct as u,Dn as d,Dt as f,E as p,En as m,Et as h,G as g,Gt as _,I as v,Jt as y,Kt as b,L as x,M as S,On as C,P as w,Q as T,Qt as E,R as D,Sn as O,T as k,Tt as A,U as j,Ut as M,X as N,Yt as P,Z as F,Zt as ee,_n as I,a as L,an as R,dt as te,et as ne,f as re,in as ie,j as ae,k as z,kt as B,l as V,mn as H,mt as oe,n as se,nn as ce,on as le,p as ue,pn as de,rn as fe,sn as pe,t as me,tn as he,tt as ge,u as _e,w as ve,wt as ye,xt as be,yt as xe,z as Se,zt as Ce}from"./effect-DM4IaHtK.js";import{A as U,C as we,D as Te,E as Ee,F as De,M as Oe,N as ke,O as Ae,P as je,S as W,T as Me,_ as Ne,a as Pe,b as Fe,c as Ie,d as Le,g as Re,h as ze,i as Be,j as Ve,k as He,l as Ue,m as We,n as Ge,o as Ke,p as qe,r as Je,s as Ye,t as Xe,v as Ze,w as Qe,x as G,y as $e}from"./profile-9fIWkC_A.js";import{n as et,r as tt,t as nt}from"./index-B6SVX2wE.js";var K=e(i(),1),rt=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M204,64V168a12,12,0,0,1-24,0V93L72.49,200.49a12,12,0,0,1-17-17L163,76H88a12,12,0,0,1,0-24H192A12,12,0,0,1,204,64Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M192,64V168L88,64Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M192,56H88a8,8,0,0,0-5.66,13.66L128.69,116,58.34,186.34a8,8,0,0,0,11.32,11.32L140,127.31l46.34,46.35A8,8,0,0,0,200,168V64A8,8,0,0,0,192,56Zm-8,92.69-38.34-38.34h0L107.31,72H184Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M200,64V168a8,8,0,0,1-13.66,5.66L140,127.31,69.66,197.66a8,8,0,0,1-11.32-11.32L128.69,116,82.34,69.66A8,8,0,0,1,88,56H192A8,8,0,0,1,200,64Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M198,64V168a6,6,0,0,1-12,0V78.48L68.24,196.24a6,6,0,0,1-8.48-8.48L177.52,70H88a6,6,0,0,1,0-12H192A6,6,0,0,1,198,64Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M200,64V168a8,8,0,0,1-16,0V83.31L69.66,197.66a8,8,0,0,1-11.32-11.32L172.69,72H88a8,8,0,0,1,0-16H192A8,8,0,0,1,200,64Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M196,64V168a4,4,0,0,1-8,0V73.66L66.83,194.83a4,4,0,0,1-5.66-5.66L182.34,68H88a4,4,0,0,1,0-8H192A4,4,0,0,1,196,64Z`}))]]),it=K.forwardRef((e,t)=>K.createElement(De,{ref:t,...e,weights:rt}));it.displayName=`ArrowUpRightIcon`;var at=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M224.15,179.17l-46.83-46.82,37.93-13.51.76-.3a20,20,0,0,0-1.76-37.27L54.16,29A20,20,0,0,0,29,54.16L81.27,214.24A20,20,0,0,0,118.54,216c.11-.25.21-.5.3-.76l13.51-37.92,46.83,46.82a20,20,0,0,0,28.28,0l16.69-16.68A20,20,0,0,0,224.15,179.17Zm-30.83,25.17-48.48-48.48A20,20,0,0,0,130.7,150a20.66,20.66,0,0,0-3.74.35A20,20,0,0,0,112.35,162c-.11.25-.21.5-.3.76L100.4,195.5,54.29,54.29l141.21,46.1-32.71,11.66c-.26.09-.51.19-.76.3a20,20,0,0,0-6.17,32.48h0l48.49,48.48Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M213.66,201,201,213.66a8,8,0,0,1-11.31,0l-51.31-51.31a8,8,0,0,0-13,2.46l-17.82,46.41a8,8,0,0,1-14.85-.71L40.41,50.44a8,8,0,0,1,10-10L210.51,92.68a8,8,0,0,1,.71,14.85l-46.41,17.82a8,8,0,0,0-2.46,13l51.31,51.31A8,8,0,0,1,213.66,201Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M168,132.69,214.08,115l.33-.13A16,16,0,0,0,213,85.07L52.92,32.8A15.95,15.95,0,0,0,32.8,52.92L85.07,213a15.82,15.82,0,0,0,14.41,11l.78,0a15.84,15.84,0,0,0,14.61-9.59l.13-.33L132.69,168,184,219.31a16,16,0,0,0,22.63,0l12.68-12.68a16,16,0,0,0,0-22.63ZM195.31,208,144,156.69a16,16,0,0,0-26,4.93c0,.11-.09.22-.13.32l-17.65,46L48,48l159.85,52.2-45.95,17.64-.32.13a16,16,0,0,0-4.93,26h0L208,195.31Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M220.49,207.8,207.8,220.49a12,12,0,0,1-17,0l-56.57-56.57L115,214.08l-.13.33A15.84,15.84,0,0,1,100.26,224l-.78,0a15.82,15.82,0,0,1-14.41-11L32.8,52.92A15.95,15.95,0,0,1,52.92,32.8L213,85.07a16,16,0,0,1,1.41,29.8l-.33.13-50.16,19.27,56.57,56.56A12,12,0,0,1,220.49,207.8Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M166.59,134.1a1.91,1.91,0,0,1-.55-1.79,2,2,0,0,1,1.08-1.42l46.25-17.76.24-.1A14,14,0,0,0,212.38,87L52.29,34.7A13.95,13.95,0,0,0,34.7,52.29L87,212.38a13.82,13.82,0,0,0,12.6,9.6c.23,0,.46,0,.69,0A13.84,13.84,0,0,0,113,213.61a2.44,2.44,0,0,0,.1-.24l17.76-46.25a2,2,0,0,1,3.21-.53l51.31,51.31a14,14,0,0,0,19.8,0l12.69-12.69a14,14,0,0,0,0-19.8Zm42.82,62.63-12.68,12.68a2,2,0,0,1-2.83,0L142.59,158.1a14,14,0,0,0-22.74,4.32,2.44,2.44,0,0,0-.1.24L102,208.91a2,2,0,0,1-3.61-.26L46.11,48.57a1.87,1.87,0,0,1,.47-2A1.92,1.92,0,0,1,47.93,46a2.22,2.22,0,0,1,.64.1L208.65,98.38a2,2,0,0,1,.26,3.61l-46.25,17.76-.24.1a14,14,0,0,0-4.32,22.74h0l51.31,51.31A2,2,0,0,1,209.41,196.73Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M168,132.69,214.08,115l.33-.13A16,16,0,0,0,213,85.07L52.92,32.8A15.95,15.95,0,0,0,32.8,52.92L85.07,213a15.82,15.82,0,0,0,14.41,11l.78,0a15.84,15.84,0,0,0,14.61-9.59l.13-.33L132.69,168,184,219.31a16,16,0,0,0,22.63,0l12.68-12.68a16,16,0,0,0,0-22.63ZM195.31,208,144,156.69a16,16,0,0,0-26,4.93c0,.11-.09.22-.13.32l-17.65,46L48,48l159.85,52.2-45.95,17.64-.32.13a16,16,0,0,0-4.93,26h0L208,195.31Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M165.17,135.51a4,4,0,0,1,1.17-6.46l46.31-17.79.16-.06a12,12,0,0,0-1.05-22.33L51.67,36.6A12,12,0,0,0,36.6,51.67L88.87,211.76A11.86,11.86,0,0,0,99.67,220h.58a11.86,11.86,0,0,0,11-7.19l.06-.16,17.79-46.31a4,4,0,0,1,6.47-1.17l51.31,51.32a12,12,0,0,0,17,0l12.69-12.69a12,12,0,0,0,0-17Zm45.66,62.63-12.69,12.69a4,4,0,0,1-5.66,0l-51.31-51.31a12,12,0,0,0-8.48-3.52,12.13,12.13,0,0,0-2.24.21,12,12,0,0,0-8.77,7l-.06.16-17.79,46.31a4,4,0,0,1-7.36-.42L44.2,49.19a4,4,0,0,1,5-5L209.27,96.47a4,4,0,0,1,.42,7.36l-46.31,17.78-.16.07a12,12,0,0,0-3.71,19.49l51.32,51.31A4,4,0,0,1,210.83,198.14Z`}))]]),ot=K.forwardRef((e,t)=>K.createElement(De,{ref:t,...e,weights:at}));ot.displayName=`CursorIcon`;var st=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z`}))]]),ct=K.forwardRef((e,t)=>K.createElement(De,{ref:t,...e,weights:st}));ct.displayName=`XIcon`;function q(e){return e?.ownerDocument||document}var lt=e(a(),1);function ut(e){let t=lt.unstable_scheduleCallback(4,e);return()=>lt.unstable_cancelCallback(t)}var dt=K.createContext(ue({scheduleTask:ut,defaultIdleTTL:400})),ft=new WeakMap,pt=0,mt=new Set;function ht(e){pt++;try{return e()}finally{pt--}}function gt(e){if(pt===0)return e();mt.size===0&&queueMicrotask(_t),mt.add(e)}function _t(){for(let e of mt)mt.delete(e),e()}function vt(e,t){let n=ft.get(e);n===void 0&&(n=new WeakMap,ft.set(e,n));let r=n.get(t);if(r!==void 0)return r;let i=0,a,o={subscribe(n){i++;let r=e.subscribe(t,()=>gt(n));return()=>{i--,mt.delete(n),r()}},snapshot(){return ht(()=>e.get(t))},getServerSnapshot(){return(i===0||a===void 0)&&(a={value:ht(()=>V(t,e))}),a.value}};return n.set(t,o),o}function yt(e,t){let n=vt(e,t);return K.useEffect(_t),K.useSyncExternalStore(n.subscribe,n.snapshot,n.getServerSnapshot)}function bt(e,t){K.useEffect(()=>e.mount(t),[t,e])}function xt(e,t,n){return n?.mode===`promise`||n?.mode===`promiseExit`?K.useCallback(r=>{e.set(t,r);let i=oe(re(e,t,{suspendOnWaiting:!0}));return n.mode===`promise`?i.then(St):i},[e,t,n.mode]):K.useCallback(n=>{e.set(t,typeof n==`function`?n(e.get(t)):n)},[e,t])}var St=e=>{if(Ce(e))return e.value;throw M(e.cause)},Ct=(e,t)=>{let n=K.useContext(dt);return bt(n,e),xt(n,e,t)},wt={suspendOnWaiting:new WeakMap,default:new WeakMap};function Tt(e,t,n){let r=n?wt.suspendOnWaiting:wt.default,i=r.get(e);i===void 0&&(i=new WeakMap,r.set(e,i));let a=i.get(t);return a===void 0&&(a=new Promise(r=>{let a=e.subscribe(t,e=>{e._tag===`Initial`||n&&e.waiting||(setTimeout(a,1e3),r(),i.delete(t))})}),i.set(t,a)),a}function Et(e,t,n){let r=yt(e,t);if(r._tag===`Initial`||n&&r.waiting)throw Tt(e,t,n);return r}var Dt=(e,t)=>{let n=Et(K.useContext(dt),e,t?.suspendOnWaiting??!1);if(n._tag===`Failure`&&!t?.includeFailure)throw M(n.cause);return n},Ot=/^(?:Node\.js\/|Deno\/|Bun\/|Cloudflare-Workers)/;function kt(){return typeof navigator>`u`||Ot.test(String(navigator.userAgent))}function At(e){let t=``,n=e;if(n==null){if(kt())return`linux`;t=navigator.platform?.toLowerCase()??``,n=navigator.userAgent??``}return n=n.toLowerCase(),t.includes(`mac`)||n.includes(`mac`)?`mac`:t.includes(`win`)||n.includes(`win`)?`windows`:`linux`}function jt(e,t=At()){return e===`Mod`?t===`mac`?`Meta`:`Control`:e}var Mt=[`Control`,`Alt`,`Shift`,`Meta`],Nt={Control:`Control`,Ctrl:`Control`,control:`Control`,ctrl:`Control`,Shift:`Shift`,shift:`Shift`,Alt:`Alt`,Option:`Alt`,alt:`Alt`,option:`Alt`,Command:`Meta`,Cmd:`Meta`,Meta:`Meta`,command:`Meta`,cmd:`Meta`,meta:`Meta`,OS:`Meta`,os:`Meta`,Win:`Meta`,win:`Meta`,CommandOrControl:`Mod`,Mod:`Mod`,commandorcontrol:`Mod`,mod:`Mod`};Array.from({length:24},(e,t)=>`F${t+1}`);var Pt={Backquote:"`",Backslash:`\\`,BracketLeft:`[`,BracketRight:`]`,Comma:`,`,Equal:`=`,Minus:`-`,Period:`.`,Quote:`'`,Semicolon:`;`,Slash:`/`};function Ft(e){return/^\p{Letter}$/u.test(e)}function J(e){if(!e)return``;if(Ft(e)){let t=e.toUpperCase();return t.length===1?t:e}return e===` `?`Space`:e}function It(e,t){let n=!1;try{n=t!==`mac`&&typeof e.getModifierState==`function`&&e.getModifierState(`AltGraph`)}catch{}let r=(e.key||``).normalize(`NFC`),i=J(r),a=t===`windows`&&n&&!Rt({key:i,altGraph:n});return{key:i,code:e.code||``,ctrl:a||!!e.ctrlKey,shift:!!e.shiftKey,alt:a||!!e.altKey,meta:!!e.metaKey,altGraph:n&&!a,location:e.location,isComposing:!!e.isComposing||e.keyCode===229||r===`Process`||r===`Unidentified`}}function Lt(e){if(/^Key[A-Z]$/i.test(e))return e.slice(3).toUpperCase();if(/^Digit[0-9]$/i.test(e))return e.slice(5);if(/^Numpad[0-9]$/i.test(e))return e.slice(6);if(Object.hasOwn(Pt,e))return Pt[e];let t={NumpadAdd:`+`,NumpadSubtract:`-`,NumpadMultiply:`*`,NumpadDivide:`/`,NumpadDecimal:`.`,NumpadEnter:`Enter`,Space:`Space`};return Object.hasOwn(t,e)?t[e]:void 0}function Rt(e){return e.altGraph?e.key===`Dead`||zt(e.key)&&!/^[A-Za-z0-9]$/.test(e.key):!1}function zt(e){return e!==``&&Array.from(e).length===1}function Bt(e){let t=e.toLowerCase();return Object.hasOwn(Nt,t)?Nt[t]:void 0}function Vt(e){return/^[A-Za-z][A-Za-z0-9]*$/.test(e)}function Ht(e){return e.startsWith(`[`)&&e.endsWith(`]`)&&Vt(e.slice(1,-1))?e.slice(1,-1):void 0}function Ut(e){if(!e.endsWith(`+`))return e.split(`+`);let t=e.slice(0,-1).split(`+`);return t.at(-1)===``&&t.pop(),t.push(`+`),t}function Wt(e){return/^[A-Za-z]$/.test(e)}function Gt(e){return/^\p{Script_Extensions=Latin}$/u.test(e)}var Kt;function qt(e,t){return e===t?!0:/^\p{Letter}$/u.test(e)&&/^\p{Letter}$/u.test(t)?(Kt??=new Intl.Collator(void 0,{sensitivity:`accent`}),Kt.compare(e,t)===0):!1}function Jt(e){if(/^\[.*\]$/s.test(e.trim()))throw Error(`Logical key must not contain a bracketed physical code. Use the code field instead.`)}function Yt(e,t,n,r,i){let a={Control:t,Alt:r,Shift:n,Meta:i};return{...e,ctrl:t,shift:n,alt:r,meta:i,modifiers:Mt.filter(e=>a[e])}}function Xt(e){return Array.isArray(e)}function Zt(e){return Xt(e)&&e.length===1?e[0]:e}function Qt(e,t){let n=Ut(e),r=new Set,i=``;for(let e=0;e<n.length;e++){let a=n[e].trim();if(e===n.length-1)i=J(a);else{let e=Bt(a);if(e){let n=jt(e,t);r.add(n)}else n.length===1&&(i=J(a))}}!i&&n.length>0&&(i=J(n[n.length-1].trim()));let a=Ht(i);return Yt(a===void 0?{key:i}:{code:a},r.has(`Control`),r.has(`Shift`),r.has(`Alt`),r.has(`Meta`))}function $t(e,t){e.code===void 0&&Jt(e.key);let n=e.ctrl??!1,r=e.shift??!1,i=e.alt??!1,a=e.meta??!1;return e.mod&&(jt(`Mod`,t)===`Control`?n=!0:a=!0),Yt(e.code===void 0?{key:J(e.key)}:{code:e.code},n,r,i,a)}function en(e,t){return typeof e==`string`?Qt(e,t):$t(e,t)}function tn(e,t){e.code===void 0&&Jt(e.key);let n=t===`mac`?e.meta&&!e.ctrl:e.ctrl&&!e.meta,r=[];if(n)r.push(`Mod`),e.alt&&r.push(`Alt`),e.shift&&r.push(`Shift`);else for(let t of Mt)e.modifiers.includes(t)&&r.push(t);return r.push(e.code===void 0?J(e.key):`[${e.code}]`),r.join(`+`)}function nn(e,t=At()){return Array.isArray(e)?e.map(e=>en(e,t)):en(e,t)}function rn(e,t=At()){if(Array.isArray(e)){let n=e.map(e=>tn(en(e,t),t));return n.length===1?n[0]:n}return tn(en(e,t),t)}function an(e){return Bt(e)!==void 0}function on(e){return Array.isArray(e)?e.map(e=>sn(e)):sn(e)}function sn(e){e.code===void 0&&Jt(e.key);let t=[];for(let n of Mt)e.modifiers.includes(n)&&t.push(n);return t.push(e.code===void 0?e.key:`[${e.code}]`),t.join(`+`)}function cn(e,t,n=At()){let r=typeof t==`string`?nn(t,n):t,i=It(e,n),a={matched:!1,score:0};if(i.isComposing||i.altGraph&&(r.ctrl||r.alt)||i.altGraph&&!Rt(i))return a;if(r.code!==void 0)return i.altGraph||!un(i,r,!1)?a:i.code===r.code?l(`code`,3):a;let o=qt(i.key,r.key),s=o&&zt(i.key)&&!/^\p{Letter}$/u.test(i.key)&&!r.shift;if(o&&un(i,r,s))return l(`key`,s?2:3);if(!ln(i)||i.altGraph||!un(i,r,!1))return a;let c=Lt(i.code);return c!==void 0&&qt(c,r.key)?l(`fallback`,1):a;function l(e,t){return{matched:!0,score:t,source:e,identity:{key:i.key,code:i.code}}}}function ln({key:e,code:t,ctrl:n,meta:r,shift:i,alt:a}){return e!==`Dead`&&!zt(e)?!1:t.startsWith(`Digit`)?!0:Wt(e)?!1:/^[!-~]$/.test(e)?i:!Gt(e)||a?!0:(n||r)&&!t.startsWith(`Key`)}function un(e,t,n){let r=!e.altGraph&&e.ctrl,i=!e.altGraph&&e.alt;return r!==t.ctrl||i!==t.alt||e.meta!==t.meta?!1:e.shift===t.shift||n&&e.shift}function dn(e,t){return e.ctrl===t.ctrl&&e.alt===t.alt&&e.shift===t.shift&&e.meta===t.meta&&(e.code!==void 0||t.code!==void 0?e.code===t.code:qt(e.key,t.key))}var fn=`global`,pn={capture:!1,preventDefault:!0,stopPropagation:!0,eventType:`keydown`,enabled:!0,ignoreInputs:`auto`,conflictBehavior:`warn`,scope:fn};function mn(...e){let t={};for(let n of e)if(n)for(let e of Object.keys(n)){let r=n[e];r!==void 0&&(t[e]=r)}return t}function hn(e){return!!(e.code||e.key)}function gn(e){return!(e.ctrl||e.meta||e.key===`Escape`||e.code===`Escape`)}function _n(e,t,n,r){if(n!==`allow`&&n!==`warn`){if(n===`error`)throw Error(`'${t}' is already registered. Use conflictBehavior: 'replace' to replace the existing handler, or conflictBehavior: 'allow' to allow multiple registrations.`);r(e)}}function vn(e,t){let n=e,r=t,i=Object.keys(n);return i.length===Object.keys(r).length&&i.every(e=>e===`meta`&&n[e]&&r[e]?vn(n[e],r[e]):Object.is(n[e],r[e]))}function yn(e,t,n=At()){let r=Xt(e)?e:[e],i=Xt(t)?t:[t];return r.length===i.length&&r.every((e,t)=>dn(nn(e,n),nn(i[t],n)))}var bn=1e3;function xn(e){return e?.nodeType===1}function Sn(e){return`document`in e||e.nodeType===9}function Cn(e){return`document`in e?e.document:e.ownerDocument??e}function wn(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}function Tn(e){return e.assignedSlot??e.parentNode??(e.host||null)}function En(e){if(Sn(e))return!0;for(let t=wn(e.ownerDocument);t;t=Tn(t))if(t===e)return!0;return!1}var Dn=[`ArrowUp`,`ArrowDown`],On=[`ArrowLeft`,`ArrowRight`],kn=[`Enter`],An=[`Space`],jn=[`Enter`,`Space`],Mn=`typeahead`,Nn=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`,`Enter`,`Space`,Mn],Pn=[`ArrowUp`,`ArrowDown`,`Home`,`End`,`Enter`,`Space`,Mn],Fn=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`,`PageUp`,`PageDown`,`Enter`,`Space`],In=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Space`],Ln=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`,`PageUp`,`PageDown`],Rn=[`ArrowUp`,`ArrowDown`,`Home`,`End`,`PageUp`,`PageDown`],zn=[`ArrowLeft`,`ArrowRight`,`Home`,`End`],Bn={button:jn,submit:jn,reset:jn,image:jn,color:jn,file:jn,checkbox:An,radio:In,range:Ln};function Vn(e){return e.getAttribute(`role`)?.trim().split(/\s+/)[0]}function Hn(e){if(!xn(e))return!1;switch(e.localName){case`input`:{let t=e;return!Bn[t.type]&&!t.readOnly}case`textarea`:return!e.readOnly;case`select`:return!0}let t=Vn(e);return t===`textbox`||t===`searchbox`||e.isContentEditable}function Un(e){return e.localName.includes(`-`)?e.constructor.formAssociated===!0?!e.hasAttribute(`role`):!e.hasAttribute(`tabindex`):!1}function Wn(e){let t=e.getAttribute(`aria-orientation`);switch(Vn(e)){case`button`:case`tab`:case`option`:case`treeitem`:case`menuitem`:case`menuitemcheckbox`:case`menuitemradio`:return jn;case`link`:return kn;case`checkbox`:case`switch`:case`radio`:return An;case`menu`:case`menubar`:case`tree`:return Nn;case`listbox`:return[...t===`horizontal`?On:Dn,`Home`,`End`,`Enter`,`Space`,Mn];case`combobox`:return Pn;case`tablist`:return[...t===`vertical`?Dn:On,`Home`,`End`,`Enter`,`Space`];case`toolbar`:return[...t===`vertical`?Dn:On,`Home`,`End`];case`grid`:case`treegrid`:return Fn;case`radiogroup`:return In;case`slider`:return Ln;case`spinbutton`:return Rn}switch(e.localName){case`button`:case`summary`:return jn;case`input`:return Bn[e.type]??zn;case`textarea`:return Ln;case`a`:case`area`:return e.hasAttribute(`href`)?kn:[]}return[]}function Gn(e,t,n){if(t.ctrlKey||t.metaKey||t.altKey)return!1;let r=Wn(e);return n===`Enter`||n===`Space`?!t.shiftKey&&r.includes(n):r.includes(n)||r.includes(Mn)&&/^.$/u.test(t.key)}function Kn(e,t,n){let r=wn(t),i=[];for(let e=r;e;e=Tn(e))xn(e)&&i.push(e);let a=e.composedPath()[0];xn(a)&&!i.includes(a)&&(i=e.composedPath().filter(xn));let o=i.findIndex(e=>n(e)||e===r&&Un(e));return{elements:i,index:o}}function qn({elements:e,index:t},n){return t>=0&&(Sn(n)||t<e.indexOf(n))}var Jn=new WeakMap;function Yn(e,t){if(e.type!==`keydown`||e.key!==`Escape`)return!1;let n=Jn.get(e);if(!n){let r=[];for(let e of[`dialog:modal`,`:popover-open`])try{r.push(...Cn(t).querySelectorAll(e))}catch{}n=r.filter(e=>e.popover!==`manual`),Jn.set(e,n)}return n.some(e=>{for(let n=Sn(t)?null:t;n;n=Tn(n))if(n===e)return!1;return!0})}var Xn=new WeakMap;function Zn(e,t){let n=Xn.get(e);if(!n){let r=J(e.key);n=Kn(e,Cn(t),t=>Hn(t)||Gn(t,e,r)),Xn.set(e,n)}return qn(n,t)}var Qn=new Set;function $n(e){for(let t of e)Qn.add(t);for(let e of Qn)Qn.delete(e),e()}function er(e){let t=e,n=new Set;return{get state(){return t},get:()=>t,setState(e){let r=e(t);Object.is(t,r)||(t=r,$n(n))},subscribe(e){let r=()=>{typeof e==`function`?e(t):e.next?.(t)};return n.add(r),{unsubscribe(){n.delete(r),Qn.delete(r)}}}}}var tr=class{dispatch;#e=new Map;#t=new WeakMap;constructor(e){this.dispatch=e}add(e,t,n,r=!1){if(typeof document>`u`)return;let i=this.#e.get(e)??new Map,a=i.get(t);if(a&&r)for(let n of[`keydown`,`keyup`])e.removeEventListener(n,a[n],t),e.addEventListener(n,a[n],t);if(!a){let n=new Set,r=r=>i=>{let a=i,o=this.#t.get(a),s=!o||o.groups.has(n);(!o||s)&&(o={ids:new Set,groups:new Set},this.#t.set(a,o)),o.groups.add(n);let c=new Set;for(let e of n)o.ids.has(e)||(o.ids.add(e),c.add(e));this.dispatch(a,e,r,t,c,s)};a={ids:n,keydown:r(`keydown`),keyup:r(`keyup`)},e.addEventListener(`keydown`,a.keydown,t),e.addEventListener(`keyup`,a.keyup,t),i.set(t,a),this.#e.set(e,i)}a.ids.add(n)}remove(e,t,n){let r=this.#e.get(e),i=r?.get(t);i&&(i.ids.delete(n),i.ids.size===0&&(e.removeEventListener(`keydown`,i.keydown,t),e.removeEventListener(`keyup`,i.keyup,t),r.delete(t),r.size===0&&this.#e.delete(e)))}destroy(){for(let[e,t]of this.#e)for(let[n,r]of t)e.removeEventListener(`keydown`,r.keydown,n),e.removeEventListener(`keyup`,r.keyup,n);this.#e.clear(),this.#t=new WeakMap}},nr={current:null},rr=new Set,ir=new WeakSet,ar=new Map,or=e=>e.code||`key:${e.key}`;function sr(e){return rr.size>0||ir.has(e)||ar.has(or(e))}function cr(e,t){return e.enabled===!1?`disabled`:t?.isScopeActive(e.scope)===!1?`suspended`:`active`}var lr=0;function ur(e,t){return typeof e==`string`?e:on(t)}function dr(){return`hotkey_${++lr}`}function fr(e){let t=e;return{id:dr(),unregister:()=>{},get callback(){return t},set callback(e){t=e},setOptions:()=>{},get isActive(){return!1}}}function pr(e){return{...pn,...e===`sequence`?{timeout:bn}:{requireReset:!1}}}function mr(e,t){if(e===`chord`){let{timeout:e,...n}=t;return n}let{requireReset:n,...r}=t;return r}function hr({target:e,options:t}){if(!t.afterDelegatedHandlers||t.capture||Sn(e))return e;let n=e.getRootNode();for(;`host`in n&&n.mode===`open`;)n=n.host.getRootNode();return n}function gr(e){return!!e.afterDelegatedHandlers&&!e.capture}function _r(e){return e.kind===`chord`?[e.parsedChord]:e.parsedSequence}function vr(e){let{ignoreInputs:t=`auto`}=e.options;return t===`auto`?gn(_r(e)[0]):t}function yr(e,t){return e.length===t.length&&e.every((e,n)=>dn(e,t[n]))}function br(e){return Xt(e)?e.join(` `):e}var xr=class e{registrations=er(new Map);appHotkeys=er(null);scopes=er({active:[],exclusive:null,allowed:[],suspended:[]});#e;#t=new Set;#n=0;#r=[];#i=null;#a=new tr((...e)=>this.#S(...e));#o=new Map;#s=new WeakMap;#c=new Map;#l=new WeakSet;#u=new Set;#d=new Map;constructor(){this.#e=At()}static getInstance(){return nr.current??=new e}static resetInstance(){nr.current?.destroy(),nr.current=null}activateScope(e,t={}){if(e===`global`)return()=>{};let{exclusive:n}=t,r=n?n===!0?[]:n.allow:null,i={scope:e,parent:t.parent??`global`,allow:r,order:++this.#n};return this.#t.add(i),this.#p(),()=>{this.#t.delete(i)&&this.#p()}}isScopeActive(e=fn){return this.#i?this.#i.has(e):e===`global`||this.#r.includes(e)}#f(e=fn){return this.#r.indexOf(e)+1}#p(){let e=new Map,t=new Map;for(let n of this.#t)n.parent!==n.scope&&e.set(n.scope,n.parent),t.set(n.scope,Math.max(t.get(n.scope)??0,n.order));let n=t=>{let n=0,r=new Set;for(let i=e.get(t);i!==void 0&&!r.has(i);i=e.get(i))r.add(i),n++;return n},r=new Map;for(let[n,i]of t){let a=new Set;for(let o=n;o!==void 0&&!a.has(o);o=e.get(o)){a.add(o);let e=t.get(o);e!==void 0&&r.set(o,Math.min(r.get(o)??e,i))}}let i=(e,i)=>r.get(e)-r.get(i)||n(e)-n(i)||t.get(e)-t.get(i);this.#r=[...t.keys()].sort(i);let a=[...this.#t].filter(e=>e.allow).sort((e,t)=>i(e.scope,t.scope)||e.order-t.order).pop(),o=[fn,...this.#r],s=[];if(this.#i=null,a?.allow){let{allow:t}=a,n=t=>{let n=new Set;for(let r=t;r!==void 0&&!n.has(r);r=e.get(r)){if(r===a.scope)return!0;n.add(r)}return!1};s=o.filter(e=>!n(e)&&t.includes(e)),this.#i=new Set([...o.filter(n),...s])}let c=this.#i;this.scopes.setState(()=>({active:this.#r,exclusive:a?.scope??null,allowed:s,suspended:c?o.filter(e=>!c.has(e)):[]})),this.#g()}#m(e){return cr(e.options,this)===`active`}#h(e,t){let n=e.composedPath();for(let r of this.registrations.state.values())if(!(!this.#m(r)||r.options.eventType!==t||this.#k(r,e)||!n.includes(r.target)||vr(r)&&Zn(e,r.target))&&(r.kind===`chord`?[r.parsedChord]:[r.parsedSequence[r.currentIndex],r.parsedSequence[0]]).some(t=>cn(e,t,r.options.platform).matched))return!0;return!1}#g(){this.registrations.setState(e=>new Map(e))}register(e,t,n={}){let r=Zt(e);if(r==null||Xt(r)&&r.length===0||typeof document>`u`&&!n.target)return fr(t);let i=dr(),a=n.platform??this.#e,o=n.target??document,s=Xt(r),c=s?`sequence`:`chord`,l={id:i,callback:t,options:{...pr(c),...mr(c,mn(n)),platform:a},target:o,triggerCount:0,hasFired:!1},u;if(s){let e=nn(r,a);u={...l,kind:`sequence`,hotkey:r.map((t,n)=>ur(t,e[n])),parsedSequence:e,currentIndex:0,lastKeyTime:0}}else{let e=nn(r,a);u={...l,kind:`chord`,hotkey:ur(r,e),parsedChord:e}}if(!(u.kind===`sequence`?u.parsedSequence:[u.parsedChord]).every(hn))return fr(t);let d=this.#N(u);d&&_n(d.id,br(u.hotkey),n.conflictBehavior??`warn`,e=>this.#_(e));let f=hr(u);this.#a.add(f,!!u.options.capture,i,gr(u.options)),this.#o.set(i,f),this.registrations.setState(e=>new Map(e).set(i,u));let p=this;return{get id(){return i},unregister:()=>{p.#_(i)},get callback(){return p.registrations.state.get(i)?.callback??t},set callback(e){let t=p.registrations.state.get(i);t&&(t.callback=e)},setOptions:e=>{p.registrations.setState(t=>{let n=t.get(i);if(!n)return t;let r={...pr(n.kind),platform:n.options.platform},a={...n.options},o=Object.entries(mr(n.kind,e));for(let[e,t]of o)t===void 0?e in r?a[e]=r[e]:delete a[e]:a[e]=t;if(vn(n.options,a))return t;let s=!!n.options.capture,c=p.#o.get(i)??n.target,l=hr({target:n.target,options:a});return s!==!!a.capture||c!==l?(p.#a.remove(c,s,i),p.#a.add(l,!!a.capture,i,gr(a)),p.#o.set(i,l)):gr(a)&&!gr(n.options)&&p.#a.add(l,s,i,!0),new Map(t).set(i,{...n,options:a})})},get isActive(){return p.registrations.state.has(i)}}}#_(e){let t=this.registrations.state.get(e);t&&(this.registrations.setState(t=>{let n=new Map(t);return n.delete(e),n}),this.#a.remove(this.#o.get(e)??t.target,!!t.options.capture,e),this.#o.delete(e),this.#c.delete(e),this.#y(e))}#v(e,t){this.#y(e),this.#d.set(e,setTimeout(()=>{this.#d.delete(e);let t=this.registrations.state.get(e);if(t?.kind!==`sequence`||t.currentIndex===0)return;let n=t.options.timeout??1e3,r=t.lastKeyTime+n-Date.now();r>=0?this.#v(e,r+1):(t.currentIndex=0,t.lastKeyTime=0,this.#g())},t))}#y(e){let t=this.#d.get(e);t!==void 0&&(clearTimeout(t),this.#d.delete(e))}#b(e,t,n){let r=[];for(let i of e){let e=this.registrations.state.get(i);e?.kind===n&&!!e.options.capture===t&&r.push(e)}return r}#x(e,t){let n=this.registrations.state.get(e.id);return n&&!!n.options.capture===t?n:void 0}#S(e,t,n,r,i,a){if(a&&this.#s.set(e,this.#T(e,n)),r){this.#C(e,t,n,r,i);return}let o=new Map;for(let e of i){let t=this.registrations.state.get(e);if(!t)continue;let n=o.get(t.target)??new Set;o.set(t.target,n.add(e))}let s=o.size>1||!o.has(t)?e.composedPath():[],c=[...o.keys()].filter(e=>e===t||s.includes(e)).sort((e,n)=>e===t?1:n===t?-1:s.indexOf(e)-s.indexOf(n)),l=e.cancelBubble;for(let t of c){let i=new Set;for(let n of o.get(t)){let t=this.registrations.state.get(n)?.options.afterDelegatedHandlers;(!e.cancelBubble||!t&&l)&&i.add(n)}this.#C(e,t,n,r,i)}}#C(e,t,n,r,i){this.#w(e,t,n,r,this.#b(i,r,`chord`)),this.#D(e,t,n,r,this.#b(i,r,`sequence`))}#w(e,t,n,r,i){if(n===`keyup`)for(let t of i)t.hasFired&&this.#P(t,e)&&(t.hasFired=!1,t.activeMatch=void 0);if(n===`keydown`&&!e.repeat)for(let{id:e}of i)this.#c.get(e)&&this.#c.set(e,null);if(sr(e)||this.#s.get(e))return;let a=new Map,o=0,s=!1,c=J(e.key);for(let r of i){let i=this.#m(r),{eventType:l,preventDefault:u}=r.options,d=n===`keydown`&&l===`keyup`,f=this.#k(r,e),{parsedChord:p,id:m}=r,{platform:h}=r.options,g,_;if(n===`keyup`&&l===`keyup`&&this.#c.has(m)&&(g=cn(e,p,h),(g.matched||p.modifiers.includes(c)&&!e.getModifierState(c))&&(_=this.#c.get(m),this.#c.delete(m))),!(!i&&u!==`always`||l!==n&&!d||vr(r)&&Zn(e,t))){if(g??=cn(e,p,h),d)g.matched&&(f?this.#c.set(m,null):(u&&this.#O(e),i&&this.#c.set(m,g)));else{if(_!==void 0){if(!_||f)continue;g.matched||(g=_)}!f&&g.matched&&(i?(a.set(r.id,g),o=Math.max(o,g.score)):s=!0)}}}s&&a.size===0&&!this.#h(e,n)&&this.#O(e);let l=-1;for(let e of i)a.get(e.id)?.score===o&&(l=Math.max(l,this.#f(e.options.scope)));for(let t of i){let i=a.get(t.id);if(!i?.matched||i.score!==o||this.#f(t.options.scope)!==l)continue;let s=this.#x(t,r);s&&(this.#A(s,e),n===`keyup`?this.#j(s,e):s.options.requireReset&&s.hasFired&&e.repeat||(s.options.requireReset&&(s.hasFired=!0,s.activeMatch=i.identity),this.#j(s,e)))}}#T(e,t){let n=e.code||J(e.key);if(t===`keyup`){let r=this.#u.delete(n);return this.#E(e,t)||r}if(e.repeat)return this.#u.has(n);let r=this.#E(e,t);return r?this.#u.add(n):this.#u.delete(n),r}#E(e,t){if(sr(e)||It(e).isComposing||an(J(e.key)))return!1;let n=e.composedPath(),r=Date.now();for(let i of this.registrations.state.values()){if(i.kind!==`sequence`||i.currentIndex===0||!this.#m(i)||i.options.eventType!==t||this.#k(i,e)||r-i.lastKeyTime>(i.options.timeout??1e3))continue;let a=i.target;if(n.includes(Sn(a)?Cn(a):a)&&!(vr(i)&&Zn(e,a))&&cn(e,i.parsedSequence[i.currentIndex],i.options.platform).matched)return!0}return!1}#D(e,t,n,r,i){if(i.length===0)return;if(sr(e)){let e=!1;for(let t of i)t.currentIndex>0&&(t.currentIndex=0,this.#y(t.id),e=!0);e&&this.#g();return}if(e.type===`keydown`&&e.repeat||It(e).isComposing||an(J(e.key)))return;let a=Date.now(),o=!1,s=new Map,c=0;for(let r of i){if(!this.#m(r)||vr(r)&&Zn(e,t)||r.options.eventType!==n||this.#k(r,e))continue;let i=r.options.timeout??1e3;r.currentIndex>0&&a-r.lastKeyTime>i&&(r.currentIndex=0,o=!0);let l=r.parsedSequence[r.currentIndex];if(!l)continue;let u=cn(e,l,r.options.platform),d=r.currentIndex+1;!u.matched&&r.currentIndex>0&&(u=cn(e,r.parsedSequence[0],r.options.platform),d=1),s.set(r.id,{score:u.score,nextIndex:d}),c=Math.max(c,u.score)}let l=[];for(let t of i){let n=s.get(t.id);n&&(n.score>0&&n.score===c?(t.lastKeyTime=a,t.currentIndex=n.nextIndex,o=!0,t.currentIndex>=t.parsedSequence.length?(this.#A(t,e),t.currentIndex=0,l.push(t)):t.options.preventDefault&&this.#O(e)):t.currentIndex>0&&(t.currentIndex=0,o=!0))}for(let e of i)if(s.has(e.id)){if(e.currentIndex>0){let t=e.options.timeout??1e3;this.#v(e.id,t+1)}else this.#y(e.id)}o&&l.length===0&&this.#g();for(let t of l){let n=this.#x(t,r);n&&this.#j(n,e)}}#O(e){e.defaultPrevented||this.#l.add(e),e.preventDefault()}#k(e,t){return Yn(t,e.target)||!!e.options.ignoreDefaultPrevented&&t.defaultPrevented&&!this.#l.has(t)}#A(e,t){e.options.preventDefault&&this.#O(t),e.options.stopPropagation&&t.stopPropagation()}#j(e,t,n=this.#M(e)){e.triggerCount++,e.kind===`sequence`&&(e.hasFired=!0),this.#g();let r=t.defaultPrevented;e.callback(t,n),!r&&t.defaultPrevented&&this.#l.add(t)}#M(e){return e.kind===`chord`?{kind:`chord`,hotkey:e.hotkey,parsedChord:e.parsedChord}:{kind:`sequence`,hotkey:e.hotkey,parsedSequence:e.parsedSequence}}#N(e){let t=_r(e);for(let n of this.registrations.state.values())if(n.target===e.target&&n.options.scope===e.options.scope&&n.options.eventType===e.options.eventType&&yr(_r(n),t))return n;return null}#P(e,t){let n=e.parsedChord,r=J(t.key);return e.activeMatch?.code&&t.code===e.activeMatch.code?!0:(n.code===void 0?qt(r,n.key):t.code===n.code)||n.modifiers.includes(r)}resetSequenceProgress(){for(let e of this.registrations.state.values())e.kind===`sequence`&&(e.currentIndex=0,e.lastKeyTime=0);for(let e of this.#d.values())clearTimeout(e);this.#d.clear(),this.#g()}getRegistrationCount(){return this.registrations.state.size}isRegistered(e,t){for(let n of this.registrations.state.values())if(yn(n.hotkey,e,n.options.platform)&&(t===void 0||n.target===t))return!0;return!1}hasActiveRegistration(e){if(!e)return!1;let t=typeof e==`object`&&`~appHotkey`in e?e.id:void 0;for(let n of this.registrations.state.values())if(this.#m(n)&&En(n.target)&&(t===void 0?yn(n.hotkey,e,n.options.platform):n.options.appHotkeyId===t))return!0;return!1}destroy(){for(let e of this.#d.values())clearTimeout(e);this.#d.clear(),this.#a.destroy(),this.#o.clear(),this.registrations.setState(()=>new Map),this.appHotkeys.setState(()=>null)}};function Sr(){return xr.getInstance()}function Cr(e){return typeof e==`object`&&!!e&&e[`~appHotkey`]===!0}function wr(e,t){return t?.get(e.id)??e}function Tr(e){return{...e.options,...e.scope!==void 0&&{scope:e.scope},meta:e.meta,appHotkeyId:e.id}}function Er(e={}){let t=new Map;return{update(n,r={}){let i=[];n.forEach((t,n)=>{let a=mn(r,t.options),o={...pn,...a,...e,target:`target`in a?a.target??null:typeof document>`u`?null:document,platform:a.platform??At()};if(!o.target||!t.hotkey||Xt(t.hotkey)&&t.hotkey.length===0)return;let s=nn(t.hotkey,o.platform);if(!(Array.isArray(s)?s:[s]).every(hn))return;let c=rn(s,o.platform);Xt(c)?delete o.requireReset:delete o.timeout,i.push({key:`${n}:${Xt(c)?c.join(` `):c}`,callback:t.callback,options:o,register:()=>Sr().register(c,t.callback,o)})});let a=new Set(i.map(e=>e.key));for(let[e,n]of t)a.has(e)||(n.handle.unregister(),t.delete(e));for(let e of i){let n=t.get(e.key),{target:r,platform:i}=e.options;if(n?.handle.isActive&&n.target===r&&n.platform===i){n.handle.callback=e.callback;let t=Object.fromEntries(Object.keys(n.options).map(e=>[e,void 0]));n.handle.setOptions({...t,...e.options}),n.options=e.options}else n?.handle.unregister(),t.set(e.key,{handle:e.register(),target:r,platform:i,options:e.options})}},destroy(){for(let{handle:e}of t.values())e.unregister();t.clear()}}}function Dr(e,t={}){return e.map(e=>{let n=e.hotkey,r={};if(Cr(n)){let e=wr(n,t.appHotkeysStore);r=Tr(e),n=e.hotkey??[]}let{target:i,...a}=mn(t.defaults,r,t.commonOptions,e.options),o=i===void 0?void 0:t.resolveTarget?t.resolveTarget(i):i;return{hotkey:n,callback:e.callback,options:o===void 0?a:{...a,target:o}}})}var Or=(0,K.createContext)(null);function kr(){return(0,K.useContext)(Or)}function Ar(e,t){let n=(0,K.useCallback)(t=>e.subscribe(t).unsubscribe,[e]),r=(0,K.useRef)(null),i=()=>{let n=e.get(),i=r.current;return i&&i.selector===t&&Object.is(i.state,n)?i.selected:(r.current={state:n,selector:t,selected:t(n)},r.current.selected)};return(0,K.useSyncExternalStore)(n,i,i)}var jr=er(null);function Mr(){let e=kr()?.appHotkeysStore??null;return Ar(e?.store??jr,e=>e),e}function Nr(e){return typeof e==`object`&&!!e&&`current`in e}function Pr(e){return Nr(e)?e.current:e}function Fr(e,t={}){let n=kr()?.defaultOptions.hotkey,r=Mr(),i=(0,K.useRef)({hotkeys:e,commonOptions:t,defaults:n,appHotkeysStore:r});i.current={hotkeys:e,commonOptions:t,defaults:n,appHotkeysStore:r};let a=(0,K.useRef)(null);(0,K.useEffect)(()=>{a.current??=Er({afterDelegatedHandlers:!0});let{hotkeys:e,...t}=i.current;a.current.update(Dr(e,{...t,resolveTarget:Pr}))}),(0,K.useEffect)(()=>()=>{a.current?.destroy(),a.current=null},[])}var Ir=K.createContext(void 0);function Lr(e){let t=K.useContext(Ir);if(!e&&t===void 0)throw Error(Fe(27));return t}var Rr=`data-starting-style`,zr=`data-ending-style`,Br={[Rr]:``},Vr={[zr]:``},Hr={transitionStatus(e){return e===`starting`?Br:e===`ending`?Vr:null}},Ur=`data-open`,Wr=`data-closed`,Gr=`data-anchor-hidden`,Kr={[Ur]:``},qr={[Wr]:``},Jr={[Gr]:``},Yr={open(e){return e?Kr:qr},anchorHidden(e){return e?Jr:null}},Xr={...Yr,...Hr},Zr=K.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,s=Lr(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`),d={open:c,transitionStatus:s.useState(`transitionStatus`)};return qe(`div`,e,{state:d,ref:[s.context.backdropRef,t],stateAttributesMapping:Xr,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})});function Qr(e,t,n,r){let i=!1,a=!1,o=r??ze;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}var $r=`none`,ei=`trigger-press`,ti=`outside-press`,ni=`close-press`,ri=`focus-out`,ii=`escape-key`,ai=`imperative-action`,oi=K.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,c=Lr(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=$e({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,Qr(ni,e.nativeEvent))}return qe(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})});function si(){let[,e]=K.useState({});return K.useCallback(()=>{e({})},[])}var ci=0;function li(e,t=`mui`){let n=K.useRef(void 0),r=si(),i=e??n.current;return K.useEffect(()=>{n.current??(ci+=1,n.current=`${t}-${ci}`,e??r())},[e,t,r]),i}var ui=Qe.useId;function di(e,t){if(ui!==void 0){let n=ui();return e??(t?`${t}-${n}`:n)}return li(e,t)}function fi(e){return di(e,`base-ui`)}function Y(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function pi(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function mi(e){let t=we(hi,e).current;return t.next=e,G(t.effect),t}function hi(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function gi(e){K.useEffect(e,We)}var _i=0,vi=class e{static create(){return new e}currentId=_i;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=_i,t()},e)}isStarted(){return this.currentId!==_i}clear=()=>{this.currentId!==_i&&(clearTimeout(this.currentId),this.currentId=_i)};disposeEffect=()=>this.clear};function yi(){let e=we(vi.create).current;return gi(e.disposeEffect),e}function bi(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:xi,platform:Si,maxTouchPoints:Ci}=bi(),wi=xi.toLowerCase(),Ti=Si.toLowerCase(),Ei=/^i(os$|p)/.test(Ti)||Ti===`macintel`&&Ci>1,Di=`android`,Oi=Ti===Di||wi.includes(Di),ki=!Ei&&Ti.startsWith(`mac`);Ti.startsWith(`win`),!Oi&&/^(linux|chrome os)/.test(Ti);var Ai=ki||Ei,ji=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!ji&&wi.includes(`firefox`),!ji&&wi.includes(`chrom`);var Mi=Ai,Ni=/jsdom|happydom/.test(wi),Pi=null;globalThis.requestAnimationFrame;var Fi=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||this.callbacks[t]!==null&&(this.callbacks[t]=null,--this.callbacksCount)}},Ii=class e{static create(){return new e}static request(e){return Fi.request(e)}static cancel(e){return Fi.cancel(e)}currentId=Pi;request(e){this.cancel(),this.currentId=Fi.request(()=>{this.currentId=Pi,e()})}cancel=()=>{this.currentId!==Pi&&(Fi.cancel(this.currentId),this.currentId=Pi)};disposeEffect=()=>this.cancel};function Li(){let e=we(Ii.create).current;return gi(e.disposeEffect),e}var Ri={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},zi={...Ri,position:`fixed`,margin:0,top:0,left:0};({...Ri});var X=t(),Bi=K.forwardRef(function(e,t){let[n,r]=K.useState();G(()=>{Mi&&ji&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,X.jsx)(`span`,{...e,ref:t,style:zi,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})});function Vi(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Z(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&je(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Hi(e,t){let n=e;for(;n;){if(He(n)&&n.matches(t))return n;n=n.assignedSlot??n.parentNode??(je(n)?n.host:null)}return null}function Ui(e){return`composedPath`in e?e.composedPath()[0]??e.target:e.target}var Wi=`data-base-ui-focusable`;function Gi(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Ki(e){return e.matches(`html,body`)}function qi(e){return U(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function Ji(e){return e?e.getAttribute(`role`)===`combobox`&&qi(e):!1}function Yi(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Xi(e){e.preventDefault(),e.stopPropagation()}function Zi(e){return`nativeEvent`in e}function Qi(e){return e.pointerType===``&&e.isTrusted?!0:Oi&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function $i(e){return Ni?!1:!Oi&&e.width===0&&e.height===0||e.type===`pointerdown`&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`&&(Oi||e.buttons===0)||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function ea(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}function ta(e){return e.visibility===`hidden`||e.visibility===`collapse`}function na(e,t=e?Me(e):null){return!e||!e.isConnected||!t||ta(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var ra=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function ia(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return je(n)?n.host:null}function aa(e){for(let t of Array.from(e.children))if(Ee(t)===`summary`)return t;return null}function oa(e,t){let n=aa(t);return!!n&&(e===n||Z(n,e))}function sa(e){let t=e?Ee(e):``;return e!=null&&e.matches(ra)&&(t!==`summary`||e.parentElement!=null&&Ee(e.parentElement)===`details`&&aa(e.parentElement)===e)&&(t!==`details`||aa(e)==null)&&(t!==`input`||e.type!==`hidden`)}function ca(e){if(!sa(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=ia(t)){let n=t!==e,r=Ee(t)===`slot`;if(t.hasAttribute(`inert`)||n&&Ee(t)===`details`&&!t.open&&!oa(e,t)||t.hasAttribute(`hidden`)||!r&&!la(t,n))return!1}return!0}function la(e,t){let n=Me(e);return t?n.display!==`none`:na(e,n)}function ua(e){let t=e.tabIndex;if(t<0){let t=Ee(e);if(t===`details`||t===`audio`||t===`video`||U(e)&&e.isContentEditable)return 0}return t}function da(e){if(Ee(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function fa(e,t){let n=da(e);if(!n)return!0;let r=t.find(e=>{let t=da(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=da(e);return t?.name===n.name&&t.form===n.form})===n}function pa(e){if(U(e)&&Ee(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return U(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function ma(e,t){pa(e).forEach(e=>{sa(e)&&t.push(e),ma(e,t)})}function ha(e,t,n){pa(e).forEach(e=>{U(e)&&e.matches(t)&&n.push(e),ha(e,t,n)})}function ga(e){return ca(e)&&ua(e)>=0}function _a(e){let t=[];return ma(e,t),t.filter(ca)}function va(e){let t=_a(e);return t.filter(e=>ua(e)>=0&&fa(e,t))}function ya(e,t){let n=va(e),r=n.length;if(r===0)return;let i=Vi(q(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function ba(e){return ya(q(e).body,1)||e}function xa(e){return ya(q(e).body,-1)||e}function Sa(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!Z(n,r)}function Ca(e){va(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function wa(e){let t=[];ha(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function Ta(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...Ta(e,t.id,n)])}function Ea(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function Da(e){return`data-base-ui-${e}`}var Oa=0;function ka(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(Oa);function a(){(!i||i())&&e?.focus({preventScroll:n})}if(r)return a(),Re;let o=requestAnimationFrame(a);return Oa=o,()=>{Oa===o&&(cancelAnimationFrame(o),Oa=0)}}var Aa=`data-base-ui-inert`,ja=new WeakMap,Ma=new WeakSet,Na=new WeakMap,Pa=0;function Fa(e){return e?je(e)?e.host:Fa(e.parentNode):null}var Ia=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=Fa(t);return e.contains(n)?n:null}).filter(e=>e!=null),La=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},Ra=(e,t,n)=>{let r=[],i=e=>{e&&!n.has(e)&&Array.from(e.children).forEach(e=>{Ee(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function za(e,t,n,{mark:r=!0}){let i=Ia(t,e),a=r?Ra(t,La(i),new Set(i)):[],o=[],s=[];if(n){let e=Ia(t,Array.from(t.querySelectorAll(`[aria-live]`))),n=i.concat(e);Ra(t,La(n),new Set(n)).forEach(e=>{let t=e.getAttribute(`aria-hidden`),n=t!==null&&t!==`false`,r=(ja.get(e)||0)+1;ja.set(e,r),o.push(e),r===1&&n&&Ma.add(e),n||e.setAttribute(`aria-hidden`,`true`)})}return r&&a.forEach(e=>{let t=(Na.get(e)||0)+1;Na.set(e,t),s.push(e),t===1&&e.setAttribute(Aa,``)}),Pa+=1,()=>{o.forEach(e=>{let t=(ja.get(e)||0)-1;ja.set(e,t),t||(Ma.has(e)||e.removeAttribute(`aria-hidden`),Ma.delete(e))}),r&&s.forEach(e=>{let t=(Na.get(e)||0)-1;Na.set(e,t),t||e.removeAttribute(Aa)}),--Pa,Pa||(ja=new WeakMap,Ma=new WeakSet,Na=new WeakMap)}}function Ba(e,t={}){let{ariaHidden:n=!1,mark:r=!0}=t,i=q(e[0]).body;return za(e,i,n,{mark:r})}var Va={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},Ha=e(n(),1),Ua=K.createContext(null),Wa=()=>K.useContext(Ua),Ga=Da(`portal`);function Ka(e={}){let{ref:t,container:n,componentProps:r=ze,elementProps:i}=e,a=di(),o=Wa()?.portalNode,[s,c]=K.useState(null),[l,u]=K.useState(null),d=W(e=>{e!==null&&u(e)}),f=K.useRef(null);G(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}let e=(n&&(Oe(n)?n:n.current))??o??document.body;e==null?f.current&&(f.current=null,u(null),c(null)):f.current!==e&&(f.current=e,u(null),c(e))},[n,o]);let p=qe(`div`,r,{ref:[t,d],props:[{id:a,[Ga]:``},i]}),m=s&&p?Ha.createPortal(p,s):null;return{node:l,nodeId:K.isValidElement(p)?p.props.id:void 0,subtree:m}}var qa=K.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,portalOwnerRole:s,...c}=e,{node:l,nodeId:u,subtree:d}=Ka({container:o,ref:t,componentProps:e,elementProps:c}),f=K.useRef(null),p=K.useRef(null),m=K.useRef(null),h=K.useRef(null),[g,_]=K.useState(null),v=K.useRef(!1),y=g?.modal,b=g?.open,x=!!g&&!g.modal&&g.open&&!!l;K.useEffect(()=>{if(!l||y)return;function e(e){l&&e.relatedTarget&&Sa(e)&&(e.type===`focusin`?v.current&&=(wa(l),!1):(Ca(l),v.current=!0))}return pi(Y(l,`focusin`,e,!0),Y(l,`focusout`,e,!0))},[l,y]),G(()=>{l&&b===!0&&v.current&&(wa(l),v.current=!1)},[b,l]);let S=K.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:h,portalNode:l,setFocusManagerState:_}),[l]);return(0,X.jsxs)(K.Fragment,{children:[d,(0,X.jsxs)(Ua.Provider,{value:S,children:[x&&l&&(0,X.jsx)(Bi,{"data-type":`outside`,ref:f,onFocus:e=>{Sa(e,l)?m.current?.focus():xa(g?g.domReference:null)?.focus()}}),x&&l&&(0,X.jsx)(`span`,{role:s,"aria-owns":u,style:Va}),l&&Ha.createPortal(a,l),x&&l&&(0,X.jsx)(Bi,{"data-type":`outside`,ref:p,onFocus:e=>{Sa(e,l)?h.current?.focus():(ba(g?g.domReference:null)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,Qr(`focus-out`,e.nativeEvent)))}})]})]})});function Ja(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var Ya=K.createContext(null),Xa=K.createContext(null),Za=()=>K.useContext(Ya)?.id||null,Qa=e=>{let t=K.useContext(Xa);return e??t};function $a(e){return e==null?e:`current`in e?e.current:e}function eo(e,t){let n=Ae(Ui(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||(Qi(e)?`keyboard`:t||`mouse`):`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var to=20,no=[];function ro(){no=no.filter(e=>e.deref()?.isConnected)}function io(e){ro(),e&&Ee(e)!==`body`&&(no.push(new WeakRef(e)),no.length>to&&(no=no.slice(-20)))}function ao(){return ro(),no[no.length-1]?.deref()}function oo(e){return e?ga(e)?e:va(e)[0]||e:null}function so(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=_a(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return ga(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),n=e.getAttribute(`tabindex`);t.length===0?n!==`0`&&(e.setAttribute(`tabindex`,`0`),e.setAttribute(`data-tabindex`,`0`)):(n!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function co(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,explicitReturnFocus:o,restoreFocus:s=!1,modal:c=!0,closeOnFocusOut:l=!0,openInteractionType:u=``,nextFocusableElement:d,previousFocusableElement:f,beforeContentFocusGuardRef:p,externalTree:m,getInsideElements:h}=e,g=t.useState(`open`),_=t.useState(`domReferenceElement`),v=t.useState(`floatingElement`),{events:y,dataRef:b}=t.context,x=W(()=>b.current.floatingContext?.nodeId),S=i===!1,C=Ji(_)&&S,w=mi(i),T=mi(a),E=mi(o),D=mi(u),O=mi(g),k=Qa(m),A=Wa(),j=K.useRef(!1),M=K.useRef(!1),N=K.useRef(!1),P=K.useRef(null),F=K.useRef(``),ee=K.useRef(``),I=K.useRef(null),L=K.useRef(null),R=Ze(I,p,A?.beforeInsideRef),te=Ze(L,A?.afterInsideRef),ne=yi(),re=yi(),ie=Li(),ae=A!=null,z=Yi(v),B=W((e=z)=>e?va(e):[]),V=W(()=>h?.().filter(e=>e!=null)??[]);K.useEffect(()=>{if(r||!c)return;function e(e){e.key===`Tab`&&Z(z,Vi(q(z)))&&B().length===0&&!C&&Xi(e)}return Y(q(z),`keydown`,e)},[r,z,c,C,B]),K.useEffect(()=>{if(r||!g)return;let e=q(z);function t(){N.current=!1}function n(e){let t=Ui(e),n=V(),r=Z(v,t)||Z(_,t)||Z(A?.portalNode,t)||n.some(e=>e===t||Z(e,t));N.current=!r,ee.current=e.pointerType||`keyboard`,Hi(t,`[data-base-ui-click-trigger]`)&&(M.current=!0,re.start(0,()=>{M.current=!1}))}function i(){ee.current=`keyboard`}return pi(Y(e,`pointerdown`,n,!0),Y(e,`pointerup`,t,!0),Y(e,`pointercancel`,t,!0),Y(e,`keydown`,i,!0),t)},[r,v,_,z,g,A,re,V]),K.useEffect(()=>{if(r||!l)return;let e=q(z);function n(){M.current=!0,re.start(0,()=>{M.current=!1})}function i(e){let t=Ui(e);ga(t)&&(P.current=t)}function a(n){let r=n.relatedTarget,i=n.currentTarget,a=Ui(n);c&&r==null&&a!=null&&Z(v,a)&&io(a),queueMicrotask(()=>{let o=x(),l=t.context.triggerElements,u=V(),p=r?.hasAttribute(Da(`focus-guard`))&&[I.current,L.current,A?.beforeInsideRef.current,A?.afterInsideRef.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,$a(f),$a(d)].includes(r),m=!(Z(_,r)||Z(v,r)||Z(r,v)||Z(A?.portalNode,r)||u.some(e=>e===r||Z(e,r))||l.hasMatchingElement(e=>Z(e,r))||p||k&&(Ta(k.nodesRef.current,o).find(e=>Z(e.context?.elements.floating,r)||Z(e.context?.elements.domReference,r))||Ea(k.nodesRef.current,o).find(e=>[e.context?.elements.floating,Yi(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(i===_&&z&&so(z),s&&i!==_&&!na(a)&&Vi(e)===e.body){if(U(z)&&(z.focus(),s===`popup`)){ie.request(()=>{z.focus()});return}let e=B(),t=P.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||z;U(n)&&n.focus()}b.current.insideReactTree?b.current.insideReactTree=!1:(C||!c)&&r&&m&&!M.current&&(C||r!==ao())&&(j.current=!0,t.setOpen(!1,Qr(ri,n)))})}function o(){N.current||(b.current.insideReactTree=!0,ne.start(0,()=>{b.current.insideReactTree=!1}))}let u=U(_)?_:null;if(v||u)return pi(u&&Y(u,`focusout`,a),u&&Y(u,`pointerdown`,n),v&&Y(v,`focusin`,i),v&&Y(v,`focusout`,a),v&&A&&Y(v,`focusout`,o,!0))},[r,_,v,z,c,k,A,t,l,s,B,C,x,b,ne,re,ie,d,f,V]),K.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(A?.portalNode?.querySelectorAll(`[${Da(`portal`)}]`)||[]),t=(k?Ea(k.nodesRef.current,x()):[]).find(e=>Ji(e.context?.elements.domReference||null))?.context?.elements.domReference,n=Ba([v,...e,I.current,L.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,...V(),t,$a(f),$a(d),C?_:null].filter(e=>e!=null),{ariaHidden:c||C,mark:!1}),i=Ba([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,c,A,C,k,x,d,f,V]),G(()=>{if(!g||r||!U(z))return;F.current=``,ee.current=``;let e=q(z),t=Vi(e);queueMicrotask(()=>{let n=w.current,r=typeof n==`function`?n(D.current||``):n;if(r===void 0||r===!1||Z(z,t))return;let i=null,a=()=>(i??=B(z),i[0]||z),o;o=r===!0||r===null?a():$a(r),o||=a();let s=Z(z,Vi(e)),c=b.current.openEvent,l=c?.type===`mousedown`&&Qi(c);ka(o,{sync:l,preventScroll:o===z,shouldFocus(){if(!O.current)return!1;if(s)return!0;let t=Vi(e);return!(t!==o&&Z(z,t))}})})},[r,g,z,B,w,D,O,b]);let H=K.useRef(null);G(()=>{if(r||!z){H.current=null;return}H.current&&=(H.current.cancelled=!0,null);let e=q(z),t=Vi(e),n=D.current==null;io(t);function i(e){if(e.open||(F.current=eo(e.nativeEvent,ee.current)),(e.reason===`focus-out`&&e.triggerElement?.hasAttribute(Da(`focus-guard`))||e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`)&&(j.current=!0),e.reason===`outside-press`){if(e.nested)j.current=!1;else if(Qi(e.nativeEvent)||$i(e.nativeEvent))j.current=!1;else{let e=!1;q(z).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?j.current=!1:j.current=!0}}}y.on(`openchange`,i);function a(e){let r=T.current,i=typeof r==`function`?r(e):r;if(i===void 0||i===!1)return null;i===null&&(i=!0);let a=_?.isConnected?_:null,o=t?.isConnected&&Ee(t)!==`body`?t:null,s=n?o||a:a||o;return s||=ao()||null,typeof i==`boolean`?s:$a(i)||s||null}return()=>{y.off(`openchange`,i);let t=Vi(e),n=V(),r=Z(v,t)||n.some(e=>e===t||Z(e,t))||k&&Ta(k.nodesRef.current,x(),!1).some(e=>Z(e.context?.elements.floating,t)),o=T.current,s=F.current,c=a(s),l={cancelled:!1};H.current=l,queueMicrotask(()=>{H.current===l&&(H.current=null);let n=oo(c),i=E.current??typeof o!=`boolean`;if(!l.cancelled&&o&&!j.current&&U(n)&&(i||n===t||t===e.body||r)){let e={preventScroll:!0};s===`keyboard`&&(e.focusVisible=!0),n.focus(e)}j.current=!1})}},[r,v,z,T,E,D,y,k,_,x,V]),G(()=>{if(!ji||g||!v)return;let e=Vi(q(v));U(e)&&qi(e)&&Z(v,e)&&e.blur()},[g,v]),G(()=>{if(!r&&A)return A.setFocusManagerState({modal:c,closeOnFocusOut:l,open:g,onOpenChange:t.setOpen,domReference:_}),()=>{A.setFocusManagerState(null)}},[r,A,c,g,t,l,_]),G(()=>{if(!r&&z)return so(z),()=>{queueMicrotask(ro)}},[r,z]);let oe=!r&&(!c||!C)&&(ae||c);return(0,X.jsxs)(K.Fragment,{children:[oe&&(0,X.jsx)(Bi,{"data-type":`inside`,ref:R,onFocus:e=>{if(c){let e=B();ka(e[e.length-1])}else A?.portalNode&&(j.current=!1,Sa(e,A.portalNode)?ba(_)?.focus():$a(f??A.beforeOutsideRef)?.focus())}}),n,oe&&(0,X.jsx)(Bi,{"data-type":`inside`,ref:te,onFocus:e=>{c?ka(B()[0]):A?.portalNode&&(l&&(j.current=!0),Sa(e,A.portalNode)?xa(_)?.focus():$a(d??A.afterOutsideRef)?.focus())}})]})}function lo(){return!1}function uo(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function fo(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=lo,bubbles:s,externalTree:c}=t,l=e.useState(`open`),u=e.useState(`floatingElement`),{dataRef:d,events:f}=e.context,p=Qa(c),m=W(typeof i==`function`?i:()=>!1),h=typeof i==`function`?m:i,g=h!==!1,_=W(()=>a),{escapeKey:v,outsidePress:y}=uo(s),b=K.useRef(!1),x=K.useRef(!1),S=K.useRef(!1),C=K.useRef(!1),w=K.useRef(!1),T=K.useRef(``),E=K.useRef(null),D=yi(),O=yi(),k=yi(),A=W(()=>{O.clear(),d.current.insideReactTree=!1}),j=W(e=>{let t=d.current.floatingContext?.nodeId;return(p?Ta(p.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),M=W(t=>Gi(t,e.select(`floatingElement`))||Gi(t,e.select(`domReferenceElement`))),N=W(t=>{o()&&e.setOpen(!1,Qr(ei,t.nativeEvent))}),P=W(t=>{if(!l||!n||!r||t.key!==`Escape`)return;let i=Zi(t)?t.nativeEvent:t;if(w.current||i.isComposing||!v&&j(`__escapeKeyBubbles`))return;let a=Qr(ii,i);e.setOpen(!1,a),a.isCanceled||t.preventDefault(),!v&&!a.isPropagationAllowed&&t.stopPropagation()}),F=W(()=>{d.current.insideReactTree=!0,O.start(0,A)}),ee=W(t=>{if(!l||!n||t.button!==0)return;let r=Ui(t.nativeEvent);Z(e.select(`floatingElement`),r)&&(b.current||(b.current=!0,x.current=!1))}),I=W(e=>{l&&n&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&b.current&&(x.current=!0)});K.useEffect(()=>{function e(e){e.open||(C.current=!1)}return f.on(`openchange`,e),()=>{f.off(`openchange`,e)}},[f]),K.useEffect(()=>A,[A]),K.useEffect(()=>{if(!l||!n)return l||(C.current=!1,w.current=!1,T.current=``,E.current=null),A;d.current.__escapeKeyBubbles=v,d.current.__outsidePressBubbles=y;let t=new vi,i=q(u);function a(){k.clear(),w.current=!0}function o(){w.current=!0,k.start(ji?5:0,()=>{w.current=!1})}function s(){S.current=!0,t.start(0,()=>{S.current=!1})}function c(){b.current=!1,x.current=!1}function f(){let e=T.current,t=e===`pen`||!e?`mouse`:e,n=_(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function m(e){let t=f();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function O(e){let t=d.current.floatingContext?.nodeId,n=p&&Ta(p.nodesRef.current,t).some(t=>Gi(e,t.context?.elements.floating));return M(e)||n}function N(n){if(m(n)){n.type!==`click`&&!M(n)&&(t.clear(),S.current=!1),A();return}if(d.current.insideReactTree){A();return}let r=Ui(n),i=`[${Da(`inert`)}]`,a=He(r)?r.getRootNode():null,o=Array.from((je(a)?a:q(e.select(`floatingElement`))).querySelectorAll(i)),s=e.context.triggerElements;if(r&&(s.hasElement(r)||s.hasMatchingElement(e=>Z(e,r))))return;let c=He(r)?r:null;for(;c&&!Ve(c);){let e=Te(c);if(Ve(e)||!He(e))break;c=e}if(!(o.length&&He(r)&&!Ki(r)&&!Z(r,e.select(`floatingElement`))&&o.every(e=>!Z(c,e)))){if(U(r)&&!(`touches`in n)){let e=Ve(r),t=Me(r),i=/auto|scroll/,a=e||i.test(t.overflowX),o=e||i.test(t.overflowY),s=a&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,c=o&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,l=t.direction===`rtl`,u=c&&(l?n.offsetX<=r.offsetWidth-r.clientWidth:n.offsetX>r.clientWidth),d=s&&n.offsetY>r.clientHeight;if(u||d)return}if(!O(n)){if(f()===`intentional`){if(n.detail!==0&&!Qi(n)&&!C.current)return;if(S.current){t.clear(),S.current=!1;return}}typeof h==`function`&&!h(n)||j(`__outsidePressBubbles`)||(e.setOpen(!1,Qr(ti,n)),A())}}}function F(t){f()===`sloppy`&&t.pointerType!==`touch`&&e.select(`open`)&&n&&!M(t)&&N(t)}function ee(t){if(f()!==`sloppy`||!e.select(`open`)||!n||M(t))return;let r=t.touches[0];r&&(E.current={startTime:Date.now(),startX:r.clientX,startY:r.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},D.start(1e3,()=>{E.current&&(E.current.dismissOnTouchEnd=!1,E.current.dismissOnMouseDown=!1)}))}function I(e,t){let n=Ui(e);if(!n)return;let r=Y(n,e.type,()=>{t(e),r()})}function L(e){T.current=`touch`,I(e,ee)}function R(e){D.clear(),e.type===`pointerdown`&&(e.button===0&&(C.current=!0),T.current=e.pointerType),(e.type!==`mousedown`||!E.current||E.current.dismissOnMouseDown)&&I(e,e=>{e.type===`pointerdown`?F(e):N(e)})}function te(e){if(e.type===`pointercancel`&&(C.current=!1),!b.current)return;let n=x.current;c(),f()===`intentional`&&(e.type===`pointercancel`?n&&s():O(e)||(n?s():(typeof h!=`function`||h(e))&&(t.clear(),S.current=!0,A())))}function ne(e){if(f()!==`sloppy`||!E.current||M(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-E.current.startX),r=Math.abs(t.clientY-E.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(E.current.dismissOnTouchEnd=!0),i>10&&(N(e),D.clear(),E.current=null)}function re(e){I(e,ne)}function ie(e){f()===`sloppy`&&E.current&&!M(e)&&(E.current.dismissOnTouchEnd&&N(e),D.clear(),E.current=null)}function ae(e){I(e,ie)}let z=pi(r&&pi(Y(i,`keydown`,P),Y(i,`compositionstart`,a),Y(i,`compositionend`,o)),g&&pi(Y(i,`click`,R,!0),Y(i,`pointerdown`,R,!0),Y(i,`pointerup`,te,!0),Y(i,`pointercancel`,te,!0),Y(i,`mousedown`,R,!0),Y(i,`mouseup`,te,!0),Y(i,`touchstart`,L,{capture:!0,passive:!0}),Y(i,`touchmove`,re,{capture:!0,passive:!0}),Y(i,`touchend`,ae,{capture:!0,passive:!0})));return()=>{z(),t.clear(),c(),S.current=!1}},[d,u,r,g,h,l,n,v,y,P,A,_,j,M,p,e,D,k]);let L=K.useMemo(()=>({onKeyDown:P,onPointerDown:N,onClick:N}),[P,N]),R=K.useMemo(()=>({onKeyDown:P,onPointerDown:I,onMouseDown:I,onClickCapture:F,onMouseDownCapture(e){F(),ee(e)},onPointerDownCapture(e){F(),ee(e)},onMouseUpCapture:F,onTouchEndCapture:F,onTouchMoveCapture:F}),[P,F,ee,I]);return K.useMemo(()=>n?{reference:L,floating:R,trigger:L}:{},[n,L,R])}var po=K.createContext(void 0);function mo(){let e=K.useContext(po);if(e===void 0)throw Error(Fe(26));return e}function ho(e,t){return e.getAnimations(t).filter(e=>{let t=e.effect?.getTiming();return t?.duration!==1/0&&t?.iterations!==1/0})}var go=null;function _o(e){if(!go){let e=[];go=e,queueMicrotask(()=>{go=null,Ha.flushSync(()=>{for(let t of e)t()})})}go.push(e)}function vo(e,t=!1,n=!1){let r=Li();return W((i,a=null)=>{r.cancel();let o=$a(e);if(o==null)return;let s=o,c=()=>{n?_o(()=>{a?.aborted||i()}):Ha.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(ho(s).map(e=>e.finished.then(Re))).then(()=>{a?.aborted||c()},()=>{a?.aborted||(ho(s).some(e=>e.pending||e.playState!==`finished`)?l():c())})}if(t){let e=Rr;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0})}else r.request(l)})}function yo(e){let{enabled:t=!0,open:n,ref:r,batch:i=!1,onComplete:a}=e,o=W(a),s=vo(r,n,i);K.useEffect(()=>{if(!t)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[t,n,o,s])}var bo=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`]);function xo(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=o;return t.useSyncedValue(`floatingId`,i),G(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};He(c)&&(e.domReferenceElement=c),r.state.positionReference===r.state.referenceElement&&(e.positionReference=c),r.update(e)},[s,i,c,l,r]),r.context.onOpenChange=u,r.context.nested=a,r}function So(e,t=!1,n=!1,r=!1){let[i,a]=K.useState(e&&t?`idle`:void 0),[o,s]=K.useState(e&&!r);return e&&!o&&(s(!0),a(`starting`)),!e&&o&&i!==`ending`&&!n&&a(`ending`),!e&&!o&&i===`ending`&&a(void 0),G(()=>{if(!e&&o&&i!==`ending`&&n){let e=Ii.request(()=>{a(`ending`)});return()=>{Ii.cancel(e)}}},[e,o,i,n]),G(()=>{if(!e||t||i===void 0)return;let n=Ii.request(()=>{a(void 0)});return()=>{Ii.cancel(n)}},[t,e,i]),G(()=>{if(!e||!t)return;e&&o&&i!==`idle`&&a(`starting`);let n=Ii.request(()=>{a(`idle`)});return()=>{Ii.cancel(n)}},[t,e,o,i]),{mounted:o,setMounted:s,transitionStatus:i}}function Co(e){let{open:t,ref:n,preventUnmountOnClose:r,setPreventUnmountOnClose:i,onUnmount:a,animateInitialOpen:o}=e,s=W(i),{mounted:c,setMounted:l,transitionStatus:u}=So(t,!1,!1,o),d=!t&&r;G(()=>{t&&s(!1)},[t,s]);let f=K.useRef(c),p=K.useRef(!1),m=si(),h=()=>{f.current=!1,l(!1),a()};G(()=>{f.current=c,p.current&&(p.current=!1,!t&&c&&h())});let g=W(()=>{f.current&&(t?(p.current=!0,m()):h())});return yo({enabled:c&&!t&&!d,open:t,ref:n,onComplete(){t||g()}}),{mounted:c,transitionStatus:u,preventUnmountingOnClose:d,forceUnmount:g}}var wo={tabIndex:-1,[Wi]:``};function To(e){return t=>t!==`touch`||e.current}function Eo(e,t=!1){let n=di(),r=Za()!=null,i=we(()=>e(n,r)).current;return xo({popupStore:i,treatPopupAsFloatingElement:t,floatingRootContext:i.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:i.setOpen}),i}function Do({handle:e,store:t}){return G(()=>e.attachStore(t),[e,t]),null}function Oo(e,t,n,r=!1){let i=e.preventUnmountingOnClose;t?i=!1:r&&(i=!0);let a=n?.id??null,o=e.activeTriggerId,s=e.activeTriggerElement;return(a||t)&&(o=a,s=n??null),{open:t,preventUnmountingOnClose:i,activeTriggerId:o,activeTriggerElement:s,openedWithoutTrigger:t?n==null:e.openedWithoutTrigger}}function ko(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=K.useRef(null),i=e.useState(`open`),a=e.useState(`triggerCount`),o=e.useState(`activeTriggerId`),s=e.useState(`activeTriggerElement`);G(()=>{if(!i){r.current=null,e.state.triggerCount!==0&&e.set(`triggerCount`,0),e.state.openedWithoutTrigger&&e.set(`openedWithoutTrigger`,!1);return}let t=e.context.triggerElements.size,a={};e.state.triggerCount!==t&&(a.triggerCount=t);let o=e.select(`activeTriggerId`),s=null;if(o){let t=e.context.triggerElements.getById(o);if(t)r.current=o,t!==e.state.activeTriggerElement&&(a.activeTriggerElement=t);else{for(let[t,n]of e.context.triggerElements.entries())if(n===e.state.activeTriggerElement){a.activeTriggerId=t,a.activeTriggerElement=n,r.current=t;break}a.activeTriggerId===void 0&&(r.current===o?s=o:r.current=null)}}else r.current=null;if(!s&&!o&&!e.state.openedWithoutTrigger&&t===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;a.activeTriggerId=e,a.activeTriggerElement=n,r.current=e}}(a.triggerCount!==void 0||a.activeTriggerId!==void 0||a.activeTriggerElement!==void 0)&&e.update(a),s&&n&&queueMicrotask(()=>{if(e.select(`open`)&&e.select(`activeTriggerId`)===s&&!e.context.triggerElements.getById(s)){let t=Qr($r);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[i,e,a,o,s,n])}function Ao(e,t,n,r){let{mounted:i,transitionStatus:a,forceUnmount:o}=Co({open:e,ref:t.context.popupRef,preventUnmountOnClose:t.useState(`preventUnmountingOnClose`),setPreventUnmountOnClose:e=>t.set(`preventUnmountingOnClose`,e),animateInitialOpen:r,onUnmount(){t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}});return we(()=>(t.set(`mounted`,i),null)),t.useSyncedValues({mounted:i,transitionStatus:a}),{forceUnmount:o,transitionStatus:a}}function jo(e,t){e.useSyncedValues(t),G(()=>()=>{e.update({activeTriggerProps:ze,inactiveTriggerProps:ze,popupProps:ze})},[e])}function Mo(e,t){G(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),G(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var No=class{idMap=new Map;add(e,t){this.idMap.set(e,t)}delete(e){this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}},Po=[],Fo=void 0;function Io(){return Fo}function Lo(e){Po.push(e)}function Ro(e){let t=(t,n)=>{let r=we(zo).current,i;try{Fo=r;for(let e of Po)e.before(r);i=e(t,n);for(let e of Po)e.after(r);r.didInitialize=!0}finally{Fo=void 0}return i};return t.displayName=e.displayName||e.name,t}function zo(){return{didInitialize:!1}}var Bo=tt(),Vo=et(),Ho=Ne(19)?Go:Ko;function Uo(e,t,n,r,i){return Ho(e,t,n,r,i)}function Wo(e,t,n,r,i){let a=K.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,Bo.useSyncExternalStore)(e.subscribe,a,a)}Lo({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,Bo.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Go(e,t,n,r,i){let a=Io();if(!a)return Wo(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],s.store===e&&s.selector===t&&Object.is(s.a1,n)&&Object.is(s.a2,r)&&Object.is(s.a3,i)||(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function Ko(e,t,n,r,i){return(0,Vo.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var qo=class{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return Uo(this,e,t,n,r)}},Jo=class extends qo{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){K.useDebugValue(e);let n=this;G(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;G(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this,n=Object.values(e);G(()=>{t.update(e)},[t,...n])}useControlledProp(e,t){K.useDebugValue(e);let n=this,r=t!==void 0;G(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return K.useDebugValue(e),Uo(this,this.selectors[e],t,n,r)}useContextCallback(e,t){K.useDebugValue(e);let n=W(t??Re);this.context[e]=n}useStateSetter(e){let t=K.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},Yo={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},Xo=class extends Jo{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:Ja(),nested:n,triggerElements:i},Yo),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&ea(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function Zo(e,t,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new Xo({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,openedWithoutTrigger:!1,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:ze,inactiveTriggerProps:ze,popupProps:ze}}var Qo=e=>e.triggerIdProp??e.activeTriggerId,$o=e=>e.openProp??e.open,es=e=>(e.popupElement?.id??e.floatingId)||void 0;function ts(e,t){return t!==void 0&&$o(e)&&Qo(e)===t}function ns(e,t){return ts(e,t)?!0:t!==void 0&&$o(e)&&Qo(e)==null&&!e.openedWithoutTrigger&&e.triggerCount===1}var rs={open:$o,mounted:e=>e.mounted,transitionStatus:e=>$o(e)&&!e.mounted?`starting`:e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:Qo,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:es,isTriggerActive:(e,t)=>t!==void 0&&Qo(e)===t,isOpenedByTrigger:(e,t)=>ts(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&Qo(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>ns(e,t)?es(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement},is=`--nested-dialogs`,as=`data-nested-dialog-open`,os={...Yr,...Hr,nestedDialogOpen(e){return e?{[as]:``}:null}},ss=K.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,c=Lr(),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`),x=c.useState(`role`),S=d.useState(`floatingId`);mo(),yo({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});let C=o===void 0?To(c.context.popupRef):o,w=g>0,T=c.useStateSetter(`popupElement`),E=qe(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:w},props:[f,{id:S,"aria-labelledby":y,"aria-describedby":l,role:x,...wo,hidden:!m,onKeyDown(e){bo.has(e.key)&&e.stopPropagation()},style:{[is]:g}},s],ref:[t,c.context.popupRef,T],stateAttributesMapping:os});return(0,X.jsx)(co,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:C,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:E})});function cs(e){return Ne(19)?e:e?`true`:void 0}var ls=K.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,X.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),us=K.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=Lr(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,X.jsx)(po.Provider,{value:n,children:(0,X.jsxs)(qa,{ref:t,...r,children:[a&&o===!0&&(0,X.jsx)(ls,{ref:i.context.internalBackdropRef,inert:cs(!s)}),e.children]})}):null}),ds={},fs={},ps=``;function ms(e,t){return ke(e)?e:t}function hs(e,t,n){return/hidden|clip/.test(e.getComputedStyle(ms(t,n)).overflowY)}function gs(e){if(typeof document>`u`)return!1;let t=q(e);return Ae(t).innerWidth-t.documentElement.clientWidth>0}function _s(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=q(e),n=t.documentElement,r=t.body,i=ms(n,r),a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function vs(e){let t=q(e),n=t.documentElement,r=t.body,i=ms(n,r),a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function ys(e){let t=q(e),n=t.documentElement,r=t.body,i=Ae(n),a=0,o=0,s=!1,c=Ii.create();if(ji&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,ds={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},ps=n.style.scrollBehavior,fs={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=ms(n,r);s=_s(e),s?(n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`):(Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflowY:`hidden`,overflowX:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`)}function u(){Object.assign(n.style,ds),Object.assign(r.style,fs),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=ps)}function d(){u(),c.request(l)}l();let f=Y(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var bs=new class{lockCount=0;restore=null;timeoutLock=vi.create();timeoutUnlock=vi.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=q(e),n=t.documentElement,r=t.body,i=Ae(n);if(hs(i,n,r)){let t=new i.MutationObserver(()=>{hs(i,n,r)||(t.disconnect(),this.restore=null,this.lock(e))}),a={attributes:!0};t.observe(n,a),t.observe(r,a),this.restore=()=>t.disconnect();return}let a=Ei||!gs(e);this.restore=a?vs(e):ys(e)}};function xs(e=!0,t=null){G(()=>{if(e)return bs.acquire(t)},[e,t])}function Ss({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]=K.useState(0),[d,f]=K.useState(0),p=l===0,m=fo(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=Ui(t);if(p&&!a){if(o){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return t||r?t===n||r===n||Z(n,s)&&!n?.hasAttribute(`data-base-ui-portal`):!0}return!0}return!1},escapeKey:p});return xs(r&&o===!0,s),e.useContextCallback(`onNestedDialogOpen`,(t,n)=>{(e.select(`open`)||e.select(`mounted`))&&(u(t),f(n))}),G(()=>{!r&&!i&&(u(0),f(0))},[r,i]),G(()=>(t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(l+1,d+ +!!n),()=>{t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(0,0)}),[n,r,l,d,t]),jo(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}var Cs={...rs,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},ws=class extends Jo{constructor(e,t,n){let r=new No,i=Ts(e,r,t,n);super(i,Es(r),Cs)}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(Oo(this.state,e,t.trigger)))}};function Ts(e,t,n,r=!1){return{...Zo(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 Es(e){return{popupRef:K.createRef(),backdropRef:K.createRef(),internalBackdropRef:K.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function Ds(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=Lr(!0),y={modal:h,disablePointerDismissal:g,nested:v!=null,role:_},b=Eo((e,t)=>new ws({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`);Mo(b,x),ko(b);let{forceUnmount:w}=Ao(x,b);K.useImperativeHandle(l,()=>({unmount:w,close:()=>b.setOpen(!1,Qr(ai))}),[w,b]);let T=x||S||u!=null;return(0,X.jsxs)(Ir.Provider,{value:b,children:[u&&(0,X.jsx)(Do,{handle:u,store:b}),T&&(0,X.jsx)(Ss,{store:b,parentContext:v?.context,isDrawer:p}),typeof n==`function`?n({payload:C}):n]})}var Os=Ro(function(e){return Ds(`dialog`,e)}),ks=K.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=Lr(),c=fi(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),qe(`h2`,e,{ref:t,props:[{id:c},o]})}),Q=r();function As(e){let t=(0,Q.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,X.jsx)(Os,{"data-slot":`dialog`,...n}),t[2]=n,t[3]=r),r}function js(e){let t=(0,Q.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,X.jsx)(us,{"data-slot":`dialog-portal`,...n}),t[2]=n,t[3]=r),r}function Ms(e){let t=(0,Q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Le(`fixed inset-0 isolate z-50 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(Zr,{"data-slot":`dialog-overlay`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ns(e){let t=(0,Q.c)(15),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,children:n,showCloseButton:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0||a,s;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,X.jsx)(Ms,{}),t[5]=s):s=t[5];let c;t[6]===r?c=t[7]:(c=Le(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-xs/relaxed text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,r),t[6]=r,t[7]=c);let l;t[8]===o?l=t[9]:(l=o&&(0,X.jsxs)(oi,{"data-slot":`dialog-close`,render:(0,X.jsx)(Ue,{variant:`ghost`,className:`absolute top-2 right-2`,size:`icon-sm`}),children:[(0,X.jsx)(ct,{}),(0,X.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[8]=o,t[9]=l);let u;return t[10]!==n||t[11]!==i||t[12]!==c||t[13]!==l?(u=(0,X.jsxs)(js,{children:[s,(0,X.jsxs)(ss,{"data-slot":`dialog-content`,className:c,...i,children:[n,l]})]}),t[10]=n,t[11]=i,t[12]=c,t[13]=l,t[14]=u):u=t[14],u}function Ps(e){let t=(0,Q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Le(`flex flex-col gap-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(`div`,{"data-slot":`dialog-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Fs(e){let t=(0,Q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Le(`text-sm font-medium`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(ks,{"data-slot":`dialog-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Is(e){let t=(0,Q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Le(`pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-xs bg-muted px-1 font-sans text-[0.625rem] font-medium text-muted-foreground select-none in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(`kbd`,{"data-slot":`kbd`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ls(e){let t=(0,Q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Le(`inline-flex items-center gap-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(`kbd`,{"data-slot":`kbd-group`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Rs(e,t){let n=t.x-e.x,r=t.y-e.y;return n*n+r*r>=625e-8}var zs=ae([`#da702c`,`#d0a215`,`#3aa99f`,`#4385be`,`#8b7ec8`,`#ce5d97`]),Bs=w({color:zs,id:C(S,v(D(32))),name:C(S,v(D(32))),x:C(z,v(x({maximum:1,minimum:0}))),y:C(z,v(x({maximum:1,minimum:0})))}),Vs=p(Bs),Hs=Bs.mapFields(e=>({...e,id:e.id.check(Se(/^(?!server-)/u))})),Us=class extends me(L(`portfolio.join`,{payload:w(C(Hs.fields,j([`color`,`id`,`name`]))),stream:!0,success:Vs}),L(`portfolio.move`,{payload:w(C(Hs.fields,j([`color`,`id`,`x`,`y`])))})){},Ws=class extends se()(`@deslop/portfolio/lib/utils/RpcClient`,{group:Us,protocol:nt(`@deslop/portfolio`)}){},Gs=[`1`,`2`,`3`,`4`,`5`,`6`],Ks={lastFrameAt:0,targetX:0,targetY:0,viewportHeight:0,viewportWidth:0,x:0,y:0};function qs(e){return Math.floor(g.defaultValue().nextDoubleUnsafe()*e)}function Js(){let e=`0123456789abcdef`;return C(ce(6,()=>e[qs(be(e))]??`0`),s(``))}function Ys(e){let t=y(zs.literals,t=>t!==e);return t[qs(he(t))]??zs.literals[0]}function Xs(){let e=sessionStorage.getItem(`portfolio.id`),t=sessionStorage.getItem(`portfolio.name`),n=zs.literals[qs(he(zs.literals))]??zs.literals[0];if(O(e)&&O(t))return{color:n,id:e,name:t};let r=Js(),i={color:n,id:`v-${r}`,name:`Guest-${C(r,u(0,3))}`};return sessionStorage.setItem(`portfolio.id`,i.id),sessionStorage.setItem(`portfolio.name`,i.name),i}var $=Xs(),Zs=_e(Ws.runtime.atom(C(Ws,te(e=>e(`portfolio.join`,$)),k,ve(xe(`2 seconds`)),c(()=>({trails:[],visitors:[]}),(e,t)=>{let n={trails:le(b(e.trails,y(t,t=>!R(e.visitors,e=>e.id===t.id&&e.color===t.color&&e.x===t.x&&e.y===t.y))),180),visitors:t};return pe(n,[n])}))));function Qs(e,t,n){e.style.setProperty(`--cursor-transform`,`translate3d(${t}px, ${n}px, 0)`)}function $s(e,t){return{lastFrameAt:0,targetX:e.x,targetY:e.y,viewportHeight:t.height,viewportWidth:t.width,x:e.x,y:e.y}}function ec(e){return Math.abs(e.target-e.position)<.3?e.target:A({maximum:e.maximum,minimum:0})(e.position+(e.target-e.position)*e.catchUp)}function tc(e,t){let n=_(e.lastFrameAt>0,{onFalse:()=>16,onTrue:()=>A({maximum:64,minimum:8})(t-e.lastFrameAt)}),r=e.targetX-e.x,i=e.targetY-e.y,a=f(1,(1-Math.exp(-n/130))*(1+Math.hypot(r,i)/220)),o=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;return{...e,lastFrameAt:t,x:_(o,{onFalse:()=>ec({catchUp:a,maximum:e.viewportWidth,position:e.x,target:e.targetX}),onTrue:()=>e.targetX}),y:_(o,{onFalse:()=>ec({catchUp:a,maximum:e.viewportHeight,position:e.y,target:e.targetY}),onTrue:()=>e.targetY})}}function nc(e,t,n){let r={x:t.x*n.width,y:t.y*n.height};return e.viewportWidth!==n.width||e.viewportHeight!==n.height?$s(r,n):e.targetX===r.x&&e.targetY===r.y?e:{...e,targetX:r.x,targetY:r.y}}function rc(e,t){t(requestAnimationFrame(()=>{e()?rc(e,t):t(0)}))}function ic(e){return addEventListener(`resize`,e),()=>{removeEventListener(`resize`,e)}}function ac(e){let t=(0,Q.c)(5),n;t[0]===e.className?n=t[1]:(n=Le(`bg-background border-border border select-text`,e.className),t[0]=e.className,t[1]=n);let r;return t[2]!==e.children||t[3]!==n?(r=(0,X.jsx)(`div`,{className:n,children:e.children}),t[2]=e.children,t[3]=n,t[4]=r):r=t[4],r}function oc(e){let t=(0,Q.c)(11),n,r,i,a;if(t[0]!==e.trails||t[1]!==e.viewport){let s=F();ie(e.trails,o(),(t,n)=>{let r={col:Math.floor(n.x*e.viewport.width/26),row:Math.floor(n.y*e.viewport.height/26),trail:n},i=C(t,ne(n.id),H);if(m(i))return N(s,{color:r.trail.color,x:r.col*26+1,y:r.row*26+1}),ge(t,n.id,r);let a=h(Math.abs(r.col-i.col),Math.abs(r.row-i.row));for(let e of ce(a+1,d)){let t=_(a===0,{onFalse:()=>e/a,onTrue:cc}),n=B(i.col+(r.col-i.col)*t,0),o=B(i.row+(r.row-i.row)*t,0),c=_(t<1,{onFalse:()=>r.trail.color,onTrue:()=>i.trail.color});N(s,{color:c,x:n*26+1,y:o*26+1})}return ge(t,n.id,r)}),n=!0,r=`pointer-events-none fixed inset-0 z-1 size-full`,i=`crispEdges`,a=fe(T(s),sc),t[0]=e.trails,t[1]=e.viewport,t[2]=n,t[3]=r,t[4]=i,t[5]=a}else n=t[2],r=t[3],i=t[4],a=t[5];let s;return t[6]!==n||t[7]!==r||t[8]!==i||t[9]!==a?(s=(0,X.jsx)(`svg`,{"aria-hidden":n,className:r,shapeRendering:i,children:a}),t[6]=n,t[7]=r,t[8]=i,t[9]=a,t[10]=s):s=t[10],s}function sc(e,t){return(0,X.jsx)(`rect`,{x:e.x,y:e.y,width:24,height:24,fill:e.color,fillOpacity:.22},t)}function cc(){return 1}function lc(e){let t=(0,Q.c)(11),n=e.flip===!0&&`-translate-x-full flex-row-reverse`,r;t[0]===n?r=t[1]:(r=Le(`flex items-center gap-1`,n),t[0]=n,t[1]=r);let i;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,X.jsx)(ot,{className:`size-4 text-(--cursor-color)`}),t[2]=i):i=t[2];let a;if(t[3]!==e.label||t[4]!==e.show){let n;t[6]===e.label?n=t[7]:(n=()=>(0,X.jsx)(`span`,{className:`bg-background text-foreground rounded-sm border border-(--cursor-color) px-1.5 py-0.5 font-mono text-xs whitespace-nowrap`,children:e.label}),t[6]=e.label,t[7]=n),a=_(e.show===!1,{onFalse:n,onTrue:uc}),t[3]=e.label,t[4]=e.show,t[5]=a}else a=t[5];let o;return t[8]!==r||t[9]!==a?(o=(0,X.jsxs)(`div`,{className:r,children:[i,a]}),t[8]=r,t[9]=a,t[10]=o):o=t[10],o}function uc(){return null}function dc(e,t){let n=(t.width-768)/2,r=(t.width+768)/2;return e*t.width>=n&&e*t.width<=r}function fc(e){let t=(0,Q.c)(16),n=(0,K.useRef)(null),r=(0,K.useRef)(Ks),i=(0,K.useRef)(0),a,o;t[0]!==e.cursor||t[1]!==e.viewport?(a=()=>{r.current=nc(r.current,e.cursor,e.viewport),n.current!==null&&Qs(n.current,r.current.x,r.current.y);function t(e){n.current!==null&&(r.current=tc(r.current,e),Qs(n.current,r.current.x,r.current.y),(r.current.x!==r.current.targetX||r.current.y!==r.current.targetY)&&(i.current=requestAnimationFrame(t)))}return i.current=requestAnimationFrame(t),()=>{cancelAnimationFrame(i.current)}},o=[e.cursor,e.viewport],t[0]=e.cursor,t[1]=e.viewport,t[2]=a,t[3]=o):(a=t[2],o=t[3]),(0,K.useLayoutEffect)(a,o);let s;t[4]===e.cursor.color?s=t[5]:(s={"--cursor-color":e.cursor.color},t[4]=e.cursor.color,t[5]=s);let c=e.cursor.x*e.viewport.width>e.viewport.width-140,l=e.cursor.name,u;t[6]!==e.cursor.x||t[7]!==e.viewport?(u=dc(e.cursor.x,e.viewport),t[6]=e.cursor.x,t[7]=e.viewport,t[8]=u):u=t[8];let d=!u,f;t[9]!==e.cursor.name||t[10]!==c||t[11]!==d?(f=(0,X.jsx)(lc,{flip:c,label:l,show:d}),t[9]=e.cursor.name,t[10]=c,t[11]=d,t[12]=f):f=t[12];let p;return t[13]!==s||t[14]!==f?(p=(0,X.jsx)(`div`,{ref:n,"aria-hidden":!0,className:`pointer-events-none fixed top-0 left-0 z-5 transform-(--cursor-transform) will-change-transform`,style:s,children:f}),t[13]=s,t[14]=f,t[15]=p):p=t[15],p}function pc(e){let t=(0,Q.c)(12),n=`translate3d(var(--pointer-x, ${e.cursor.x*e.viewport.width}px), var(--pointer-y, ${e.cursor.y*e.viewport.height}px), 0)`,r;t[0]!==e.cursor.color||t[1]!==n?(r={"--cursor-color":e.cursor.color,"--cursor-transform":n},t[0]=e.cursor.color,t[1]=n,t[2]=r):r=t[2];let i=e.cursor.x*e.viewport.width>e.viewport.width-140,a;t[3]!==e.cursor.x||t[4]!==e.viewport?(a=dc(e.cursor.x,e.viewport),t[3]=e.cursor.x,t[4]=e.viewport,t[5]=a):a=t[5];let o=!a,s;t[6]!==i||t[7]!==o?(s=(0,X.jsx)(lc,{flip:i,label:`You`,show:o}),t[6]=i,t[7]=o,t[8]=s):s=t[8];let c;return t[9]!==r||t[10]!==s?(c=(0,X.jsx)(`div`,{"aria-hidden":!0,className:`pointer-events-none fixed top-0 left-0 z-20 transform-(--cursor-transform)`,style:r,children:s}),t[9]=r,t[10]=s,t[11]=c):c=t[11],c}function mc(e){let t=(0,Q.c)(5),n;t[0]===e.className?n=t[1]:(n=Le(`relative z-10 flex flex-col items-center overflow-hidden px-3 py-4 sm:px-6 sm:py-6`,e.className),t[0]=e.className,t[1]=n);let r;return t[2]!==e.children||t[3]!==n?(r=(0,X.jsx)(`section`,{className:n,children:e.children}),t[2]=e.children,t[3]=n,t[4]=r):r=t[4],r}function hc(e){let t=(0,Q.c)(7),n;t[0]===e.title?n=t[1]:(n=(0,X.jsx)(`h2`,{className:`text-muted-foreground border-border border-b pb-2 font-mono text-xs`,children:e.title}),t[0]=e.title,t[1]=n);let r;t[2]===e.children?r=t[3]:(r=(0,X.jsx)(`div`,{className:`divide-border flex flex-col divide-y`,children:e.children}),t[2]=e.children,t[3]=r);let i;return t[4]!==n||t[5]!==r?(i=(0,X.jsxs)(ac,{className:`flex w-full max-w-3xl flex-col px-4 py-3 sm:px-6`,children:[n,r]}),t[4]=n,t[5]=r,t[6]=i):i=t[6],i}function gc(){let e=(0,Q.c)(5),t,n,r,i;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,X.jsxs)(`h1`,{className:`text-foreground text-4xl font-semibold tracking-tight sm:text-5xl`,children:[Pe.firstName,` `,Pe.lastName]}),n=(0,X.jsx)(`p`,{className:`text-primary font-mono text-sm`,children:Pe.title}),r=(0,X.jsx)(`p`,{className:`text-foreground/90 text-base`,children:Ie}),i=(0,X.jsx)(`p`,{className:`text-muted-foreground font-mono text-xs`,children:Pe.location}),e[0]=t,e[1]=n,e[2]=r,e[3]=i):(t=e[0],n=e[1],r=e[2],i=e[3]);let a;return e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,X.jsx)(mc,{className:`pt-10 sm:pt-20`,children:(0,X.jsxs)(ac,{className:`flex w-full max-w-3xl flex-col gap-3 px-4 py-6 sm:px-6`,children:[t,n,r,i,(0,X.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 font-mono text-xs`,children:[(0,X.jsx)(`a`,{href:Xe.email.href,className:`text-primary hover:underline max-sm:inline-flex max-sm:h-11 max-sm:min-w-11 max-sm:items-center max-sm:justify-center`,children:`email`}),(0,X.jsx)(`a`,{href:Xe.github.href,target:`_blank`,rel:`noopener noreferrer`,className:`text-primary hover:underline max-sm:inline-flex max-sm:h-11 max-sm:min-w-11 max-sm:items-center max-sm:justify-center`,children:`github`}),(0,X.jsx)(`a`,{href:`/cv`,className:`text-primary hover:underline max-sm:inline-flex max-sm:h-11 max-sm:min-w-11 max-sm:items-center max-sm:justify-center`,children:`cv`})]})]})}),e[4]=a):a=e[4],a}function _c(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,X.jsx)(mc,{children:(0,X.jsx)(hc,{title:`skills`,children:fe(Ye,vc)})}),e[0]=t):t=e[0],t}function vc(e){return(0,X.jsxs)(`div`,{className:`flex flex-col gap-1 py-3 sm:flex-row sm:gap-6`,children:[(0,X.jsxs)(`h3`,{className:`flex w-40 shrink-0 items-center gap-2 text-sm font-medium`,children:[(0,X.jsx)(e.icon,{className:`text-primary size-4`}),e.area]}),(0,X.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:e.items})]},e.area)}function yc(e){let t=(0,Q.c)(20),n;t[0]===e.project.role?n=t[1]:(n=(0,X.jsx)(`span`,{className:`text-muted-foreground ml-2 font-normal`,children:e.project.role}),t[0]=e.project.role,t[1]=n);let r;t[2]!==e.project.name||t[3]!==n?(r=(0,X.jsxs)(`h3`,{className:`text-sm font-medium`,children:[e.project.name,n]}),t[2]=e.project.name,t[3]=n,t[4]=r):r=t[4];let i=`View ${e.project.name} on GitHub`,a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,X.jsx)(it,{className:`size-4`}),t[5]=a):a=t[5];let o;t[6]!==e.project.href||t[7]!==i?(o=(0,X.jsx)(`a`,{href:e.project.href,target:`_blank`,rel:`noopener noreferrer`,"aria-label":i,className:`text-primary hover:text-primary/80 transition-colors max-sm:inline-flex max-sm:size-11 max-sm:items-center max-sm:justify-center`,children:a}),t[6]=e.project.href,t[7]=i,t[8]=o):o=t[8];let s;t[9]!==r||t[10]!==o?(s=(0,X.jsxs)(`div`,{className:`flex items-baseline justify-between gap-3`,children:[r,o]}),t[9]=r,t[10]=o,t[11]=s):s=t[11];let c;t[12]===e.project.description?c=t[13]:(c=(0,X.jsx)(`p`,{className:`text-foreground/90 text-sm`,children:e.project.description}),t[12]=e.project.description,t[13]=c);let l;t[14]===e.project.stack?l=t[15]:(l=(0,X.jsx)(`p`,{className:`text-muted-foreground font-mono text-xs`,children:e.project.stack}),t[14]=e.project.stack,t[15]=l);let u;return t[16]!==s||t[17]!==c||t[18]!==l?(u=(0,X.jsxs)(`div`,{className:`flex flex-col gap-1 py-3`,children:[s,c,l]}),t[16]=s,t[17]=c,t[18]=l,t[19]=u):u=t[19],u}function bc(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,X.jsx)(mc,{children:(0,X.jsx)(hc,{title:`projects`,children:fe(Ke,xc)})}),e[0]=t):t=e[0],t}function xc(e){return(0,X.jsx)(yc,{project:e},e.name)}function Sc(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,X.jsx)(mc,{children:(0,X.jsx)(hc,{title:`experience`,children:fe(Je,Cc)})}),e[0]=t):t=e[0],t}function Cc(e){return(0,X.jsxs)(`div`,{className:`flex flex-col gap-2 py-3`,children:[(0,X.jsxs)(`div`,{className:`flex flex-col gap-0.5 sm:flex-row sm:items-baseline sm:justify-between`,children:[(0,X.jsxs)(`h3`,{className:`text-sm font-medium`,children:[e.company,(0,X.jsxs)(`span`,{className:`text-muted-foreground ml-2 font-normal`,children:[e.role,l(e.note)&&` · ${e.note}`]})]}),(0,X.jsx)(`p`,{className:`text-muted-foreground font-mono text-xs sm:text-right`,children:C([e.period,e.location],y(l),s(` · `))})]}),(0,X.jsx)(`ul`,{className:`flex flex-col gap-1`,children:fe(e.highlights,wc)})]},e.company)}function wc(e){return(0,X.jsxs)(`li`,{className:`text-foreground/90 flex items-start gap-2 text-sm`,children:[(0,X.jsx)(`span`,{className:`bg-muted-foreground mt-2 size-1 shrink-0 rounded-full`,"aria-hidden":`true`}),(0,X.jsx)(`span`,{children:e})]},e)}function Tc(){let e=(0,Q.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=fe(Ge,Dc),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsx)(mc,{children:(0,X.jsxs)(hc,{title:`education and languages`,children:[t,(0,X.jsx)(`div`,{className:`flex flex-wrap gap-x-6 gap-y-1 py-3`,children:fe(Be,Ec)})]})}),e[1]=n):n=e[1],n}function Ec(e){return(0,X.jsxs)(`span`,{className:`text-sm`,children:[(0,X.jsx)(`span`,{className:`font-medium`,children:e.language}),(0,X.jsx)(`span`,{className:`text-muted-foreground ml-2 font-mono text-xs`,children:e.level})]},e.language)}function Dc(e){return(0,X.jsxs)(`div`,{className:`flex flex-wrap items-baseline justify-between gap-x-4 gap-y-1 py-3`,children:[(0,X.jsxs)(`h3`,{className:`text-sm font-medium`,children:[e.school,(0,X.jsxs)(`span`,{className:`text-muted-foreground ml-2 font-normal`,children:[e.degree,l(e.grade)&&` (${e.grade})`]})]}),(0,X.jsx)(`span`,{className:`text-muted-foreground font-mono text-xs`,children:e.period})]},e.school)}function Oc(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,X.jsxs)(mc,{className:`pb-20 max-sm:pb-6`,children:[(0,X.jsx)(hc,{title:`contact`,children:fe([Xe.email,Xe.pec,Xe.phone,Xe.github,{href:`/cv`,label:`CV`,value:`${Pe.portfolio}/cv`}],kc)}),(0,X.jsxs)(`p`,{className:`bg-background text-muted-foreground mt-4 font-mono text-xs`,children:[`© 2026 `,Pe.firstName,` `,Pe.lastName,` · VAT `,Pe.vat]})]}),e[0]=t):t=e[0],t}function kc(e){let t=ye(`/`)(e.href);return(0,X.jsxs)(`a`,{href:e.href,className:`hover:text-primary flex items-baseline justify-between gap-3 py-3 text-sm transition-colors`,target:_(t,{onFalse:Nc,onTrue:Mc}),rel:_(t,{onFalse:jc,onTrue:Ac}),children:[(0,X.jsx)(`span`,{className:`text-muted-foreground`,children:e.label}),(0,X.jsx)(`span`,{className:`font-mono text-xs break-all`,children:e.value})]},e.label)}function Ac(){}function jc(){return`noopener noreferrer`}function Mc(){}function Nc(){return`_blank`}function Pc(e){let t=(0,Q.c)(8),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsx)(Ps,{children:(0,X.jsx)(Fs,{children:`Keyboard shortcuts`})}),t[0]=n):n=t[0];let r,i;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,X.jsxs)(Ls,{children:[(0,X.jsx)(Is,{children:`j`}),(0,X.jsx)(Is,{children:`k`})]}),i=(0,X.jsx)(`span`,{children:`next / prev section`}),t[1]=r,t[2]=i):(r=t[1],i=t[2]);let a;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,X.jsx)(Is,{children:`1`}),t[3]=a):a=t[3];let o;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,X.jsxs)(Ns,{className:`sm:max-w-md`,children:[n,(0,X.jsxs)(`div`,{className:`text-muted-foreground grid grid-cols-[auto_1fr] items-center gap-x-4 gap-y-3 text-xs sm:gap-x-8`,children:[r,i,(0,X.jsxs)(Ls,{children:[a,`–`,(0,X.jsx)(Is,{children:`6`})]}),(0,X.jsx)(`span`,{children:`1 hero · 2 skills · 3 experience · 4 projects · 5 education · 6 contact`}),(0,X.jsx)(Is,{children:`r`}),(0,X.jsx)(`span`,{children:`change cursor color`}),(0,X.jsx)(Is,{children:`?`}),(0,X.jsx)(`span`,{children:`toggle this overlay`}),(0,X.jsx)(Is,{children:`Esc`}),(0,X.jsx)(`span`,{children:`close this overlay`})]})]}),t[4]=o):o=t[4];let s;return t[5]!==e.onOpenChange||t[6]!==e.open?(s=(0,X.jsx)(As,{open:e.open,onOpenChange:e.onOpenChange,children:o}),t[5]=e.onOpenChange,t[6]=e.open,t[7]=s):s=t[7],s}function Fc(e){let t=(0,Q.c)(19),n;t[0]===e.visitors?n=t[1]:(n=C(P(e.visitors,Bc),I({onNone:zc,onSome:Rc})),t[0]=e.visitors,t[1]=n);let r;t[2]===n?r=t[3]:(r=(0,X.jsx)(`span`,{className:`size-1.5 rounded-full bg-(--identity-color)`,style:{"--identity-color":n}}),t[2]=n,t[3]=r);let i;t[4]===e.visitors?i=t[5]:(i=he(e.visitors),t[4]=e.visitors,t[5]=i);let a;t[6]===i?a=t[7]:(a=(0,X.jsx)(`span`,{className:`text-primary`,children:i}),t[6]=i,t[7]=a);let o;t[8]===e.visitors?o=t[9]:(o=_(he(e.visitors)===1,{onFalse:Lc,onTrue:Ic}),t[8]=e.visitors,t[9]=o);let s;t[10]===o?s=t[11]:(s=(0,X.jsx)(`span`,{className:`text-muted-foreground`,children:o}),t[10]=o,t[11]=s);let c;t[12]===e.hint?c=t[13]:(c=e.hint===!0&&(0,X.jsx)(`span`,{className:`text-muted-foreground max-sm:hidden`,children:`· j/k · ?`}),t[12]=e.hint,t[13]=c);let l;return t[14]!==r||t[15]!==a||t[16]!==s||t[17]!==c?(l=(0,X.jsxs)(X.Fragment,{children:[r,a,s,c]}),t[14]=r,t[15]=a,t[16]=s,t[17]=c,t[18]=l):l=t[18],l}function Ic(){return`visitor`}function Lc(){return`visitors`}function Rc(e){return e.color}function zc(){return $.color}function Bc(e){return e.id===$.id}function Vc(e){let t=(0,Q.c)(26),n=Dt(Zs),r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,X.jsx)(`div`,{className:`trail-grid pointer-events-none fixed inset-0 z-1 w-screen`}),t[0]=r):r=t[0];let i;t[1]!==e.viewport||t[2]!==n.value.trails?(i=(0,X.jsx)(oc,{trails:n.value.trails,viewport:e.viewport}),t[1]=e.viewport,t[2]=n.value.trails,t[3]=i):i=t[3];let a;t[4]===n.value.visitors?a=t[5]:(a=de(P(n.value.visitors,Wc),Uc),t[4]=n.value.visitors,t[5]=a);let o;t[6]!==e.viewport||t[7]!==a?(o=(0,X.jsx)(`div`,{className:`hidden [@media(hover:hover)_and_(pointer:fine)]:contents`,children:(0,X.jsx)(pc,{cursor:a,viewport:e.viewport})}),t[6]=e.viewport,t[7]=a,t[8]=o):o=t[8];let s;if(t[9]!==e.viewport||t[10]!==n.value.visitors){let r;t[12]===e.viewport?r=t[13]:(r=t=>_(t.id===$.id,{onFalse:()=>(0,X.jsx)(fc,{cursor:t,viewport:e.viewport},t.id),onTrue:Hc}),t[12]=e.viewport,t[13]=r),s=fe(n.value.visitors,r),t[9]=e.viewport,t[10]=n.value.visitors,t[11]=s}else s=t[11];let c;t[14]===s?c=t[15]:(c=(0,X.jsx)(`div`,{className:`max-sm:hidden`,children:(0,X.jsx)(`div`,{className:`hidden [@media(hover:hover)_and_(pointer:fine)]:contents`,children:s})}),t[14]=s,t[15]=c);let l;t[16]===n.value.visitors?l=t[17]:(l=(0,X.jsx)(`div`,{className:`border-border bg-background mb-safe-bottom ml-safe-left pointer-events-none fixed bottom-3 left-3 z-50 flex h-7 items-center gap-2 rounded-md border px-2 font-mono text-xs max-sm:hidden sm:bottom-4 sm:left-4`,children:(0,X.jsx)(Fc,{hint:!0,visitors:n.value.visitors})}),t[16]=n.value.visitors,t[17]=l);let u;t[18]===n.value.visitors?u=t[19]:(u=(0,X.jsx)(`div`,{className:`relative z-10 flex justify-center px-3 pb-6 sm:hidden`,children:(0,X.jsx)(ac,{className:`flex w-full max-w-3xl items-center gap-2 px-4 py-3 font-mono text-xs`,children:(0,X.jsx)(Fc,{visitors:n.value.visitors})})}),t[18]=n.value.visitors,t[19]=u);let d;return t[20]!==i||t[21]!==o||t[22]!==c||t[23]!==l||t[24]!==u?(d=(0,X.jsxs)(X.Fragment,{children:[r,i,o,c,l,u]}),t[20]=i,t[21]=o,t[22]=c,t[23]=l,t[24]=u,t[25]=d):d=t[25],d}function Hc(){return null}function Uc(){return{color:$.color,id:$.id,name:$.name,x:.5,y:.5}}function Wc(e){return e.id===$.id}function Gc(){let e=(0,Q.c)(49),t=(0,K.useSyncExternalStore)(ic,el,$c),n=(0,K.useSyncExternalStore)(ic,Qc,Zc),r;e[0]!==t||e[1]!==n?(r={height:t,width:n},e[0]=t,e[1]=n,e[2]=r):r=e[2];let i=r,a=(0,K.useRef)(null),o=(0,K.useRef)(0),s;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(s=Ws.mutation(`portfolio.move`),e[3]=s):s=e[3];let c=Ct(s),l=(0,K.useRef)(0),u=(0,K.useRef)(null),d=(0,K.useRef)(null),p=(0,K.useRef)($.color),[g,v]=(0,K.useState)(!1),y,b;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(y=()=>()=>{cancelAnimationFrame(l.current)},b=[],e[4]=y,e[5]=b):(y=e[4],b=e[5]),(0,K.useEffect)(y,b);let x=function(){return E(a.current?.querySelectorAll(`:scope > section`)??[])},S=function(e){let t=x()[e];m(t)||(t.scrollIntoView({behavior:_(window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,{onFalse:Xc,onTrue:Yc}),block:`start`}),o.current=e)},w;e[6]===c?w=e[7]:(w=function(e){d.current={sentAt:performance.now(),x:e.x,y:e.y},c({payload:{color:p.current,id:$.id,x:e.x,y:e.y}})},e[6]=c,e[7]=w);let T=w,D;e[8]===T?D=e[9]:(D=function(){p.current=Ys(p.current),T(u.current??d.current??{x:.5,y:.5})},e[8]=T,e[9]=D);let O=D,k;e[10]===T?k=e[11]:(k=function(){if(u.current!==null&&d.current!==null){if(!Rs(d.current,u.current))return!1;if(performance.now()-d.current.sentAt<50)return!0}return u.current!==null&&T(u.current),!1},e[10]=T,e[11]=k);let j=k,M;e[12]!==j||e[13]!==i?(M=function(e){e.pointerType!==`touch`&&(e.currentTarget.style.setProperty(`--pointer-x`,`${e.clientX}px`),e.currentTarget.style.setProperty(`--pointer-y`,`${e.clientY}px`),i.width!==0&&i.height!==0&&(u.current={x:A({maximum:.999999,minimum:0})(e.clientX/i.width),y:A({maximum:.999999,minimum:0})(e.clientY/i.height)},l.current===0&&rc(j,e=>{l.current=e})))},e[12]=j,e[13]=i,e[14]=M):M=e[14];let N=M,P;e[15]===O?P=e[16]:(P={callback:O,hotkey:`R`},e[15]=O,e[16]=P);let F;e[17]===v?F=e[18]:(F=()=>{v(Jc)},e[17]=v,e[18]=F);let I;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(I={key:`?`,shift:!0},e[19]=I):I=e[19];let L;e[20]===F?L=e[21]:(L={callback:F,hotkey:I},e[20]=F,e[21]=L),Fr([{callback:()=>{S(f(o.current+1,Gs.length-1))},hotkey:`J`},{callback:()=>{S(h(o.current-1,0))},hotkey:`K`},...fe(Gs,(e,t)=>({callback:()=>{S(t)},hotkey:e})),P,L]);let R;e[22]!==o||e[23]!==x?(R=e=>{let t=e.currentTarget.scrollTop+e.currentTarget.clientHeight/2;o.current=C(x(),ee(e=>e.offsetTop<=t),de(qc))},e[22]=o,e[23]=x,e[24]=R):R=e[24];let te,ne,re,ie,ae,z;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(te=(0,X.jsx)(gc,{}),ne=(0,X.jsx)(_c,{}),re=(0,X.jsx)(Sc,{}),ie=(0,X.jsx)(bc,{}),ae=(0,X.jsx)(Tc,{}),z=(0,X.jsx)(Oc,{}),e[25]=te,e[26]=ne,e[27]=re,e[28]=ie,e[29]=ae,e[30]=z):(te=e[25],ne=e[26],re=e[27],ie=e[28],ae=e[29],z=e[30]);let B;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(B={color:$.color,id:$.id,name:$.name,x:.5,y:.5},e[31]=B):B=e[31];let V;e[32]===i?V=e[33]:(V=(0,X.jsx)(K.Suspense,{fallback:(0,X.jsx)(`div`,{className:`hidden [@media(hover:hover)_and_(pointer:fine)]:contents`,children:(0,X.jsx)(pc,{cursor:B,viewport:i})}),children:(0,X.jsx)(Vc,{viewport:i})}),e[32]=i,e[33]=V);let H;e[34]===v?H=e[35]:(H=()=>{v(Kc)},e[34]=v,e[35]=H);let oe;e[36]!==g||e[37]!==H?(oe=(0,X.jsx)(Ue,{variant:`outline`,size:`icon`,"aria-expanded":g,"aria-haspopup":`dialog`,"aria-label":`Toggle keyboard shortcuts`,onClick:H,className:`mb-safe-bottom mr-safe-right fixed right-3 bottom-3 z-50 max-sm:hidden sm:right-4 sm:bottom-4`,children:`?`}),e[36]=g,e[37]=H,e[38]=oe):oe=e[38];let se;e[39]!==v||e[40]!==g?(se=(0,X.jsx)(Pc,{open:g,onOpenChange:v}),e[39]=v,e[40]=g,e[41]=se):se=e[41];let ce;return e[42]!==a||e[43]!==R||e[44]!==V||e[45]!==oe||e[46]!==se||e[47]!==N?(ce=(0,X.jsxs)(`div`,{ref:a,className:`relative min-h-0 flex-1 overflow-x-hidden overflow-y-scroll [@media(hover:hover)_and_(pointer:fine)]:cursor-none`,onPointerMove:N,onScroll:R,children:[te,ne,re,ie,ae,z,V,oe,se]}),e[42]=a,e[43]=R,e[44]=V,e[45]=oe,e[46]=se,e[47]=N,e[48]=ce):ce=e[48],ce}function Kc(e){return!e}function qc(){return 0}function Jc(e){return!e}function Yc(){return`auto`}function Xc(){return`smooth`}function Zc(){return 0}function Qc(){return window.innerWidth}function $c(){return 0}function el(){return window.innerHeight}export{Gc as component};
|