@deslop/portfolio 0.1.1256 → 0.1.1258

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.
@@ -0,0 +1 @@
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,An as c,At as l,B as u,C as d,Ct as f,Dt as p,E as m,En as h,G as g,I as _,M as v,Nt as y,Ot as b,P as x,Q as S,Qt as C,R as w,T,Tn as E,Tt as D,Ut as ee,V as O,Xt as k,Yt as A,_n as j,a as M,an as N,at as P,bn as F,cn as I,et as L,f as te,gn as ne,ht as re,it as R,jn as z,jt as ie,k as B,kn as ae,kt as V,l as H,ln as oe,n as se,nn as ce,nt as le,on as ue,p as de,q as fe,qt as pe,rn as me,rt as he,sn as U,t as ge,tn as _e,tt as ve,u as ye,un as be,vt as xe,w as Se,z as Ce}from"./effect-hYY2EiyY.js";import{A as we,C as Te,D as W,E as Ee,M as De,O as Oe,P as ke,S as Ae,T as je,_ as Me,a as Ne,b as Pe,c as Fe,d as Ie,f 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,u as Ze,v as G,w as Qe,x as $e,y as K}from"./profile-CAmdNQBr.js";import{i as et,n as tt,r as nt,t as rt}from"./index-CSmTi2w8.js";var q=e(i(),1),it=new Map([[`bold`,q.createElement(q.Fragment,null,q.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`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M192,64V168L88,64Z`,opacity:`0.2`}),q.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`,q.createElement(q.Fragment,null,q.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`,q.createElement(q.Fragment,null,q.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`,q.createElement(q.Fragment,null,q.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`,q.createElement(q.Fragment,null,q.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`}))]]),at=q.forwardRef((e,t)=>q.createElement(ke,{ref:t,...e,weights:it}));at.displayName=`ArrowUpRightIcon`;var ot=new Map([[`bold`,q.createElement(q.Fragment,null,q.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`,q.createElement(q.Fragment,null,q.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`}),q.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`,q.createElement(q.Fragment,null,q.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`,q.createElement(q.Fragment,null,q.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`,q.createElement(q.Fragment,null,q.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`,q.createElement(q.Fragment,null,q.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`}))]]),st=q.forwardRef((e,t)=>q.createElement(ke,{ref:t,...e,weights:ot}));st.displayName=`CursorIcon`;var ct=new Map([[`bold`,q.createElement(q.Fragment,null,q.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`,q.createElement(q.Fragment,null,q.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`}),q.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`,q.createElement(q.Fragment,null,q.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`,q.createElement(q.Fragment,null,q.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`,q.createElement(q.Fragment,null,q.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`,q.createElement(q.Fragment,null,q.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`}))]]),lt=q.forwardRef((e,t)=>q.createElement(ke,{ref:t,...e,weights:ct}));lt.displayName=`XIcon`;function J(e){return e?.ownerDocument||document}var ut=e(a(),1);function dt(e){let t=ut.unstable_scheduleCallback(4,e);return()=>ut.unstable_cancelCallback(t)}var ft=q.createContext(de({scheduleTask:dt,defaultIdleTTL:400})),pt=new WeakMap,mt=0,ht=new Set;function gt(e){mt++;try{return e()}finally{mt--}}function _t(e){if(mt===0)return e();ht.size===0&&queueMicrotask(vt),ht.add(e)}function vt(){for(let e of ht)ht.delete(e),e()}function yt(e,t){let n=pt.get(e);n===void 0&&(n=new WeakMap,pt.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,()=>_t(n));return()=>{i--,ht.delete(n),r()}},snapshot(){return gt(()=>e.get(t))},getServerSnapshot(){return(i===0||a===void 0)&&(a={value:gt(()=>H(t,e))}),a.value}};return n.set(t,o),o}function bt(e,t){let n=yt(e,t);return q.useEffect(vt),q.useSyncExternalStore(n.subscribe,n.snapshot,n.getServerSnapshot)}function xt(e,t){q.useEffect(()=>e.mount(t),[t,e])}function St(e,t,n){return n?.mode===`promise`||n?.mode===`promiseExit`?q.useCallback(r=>{e.set(t,r);let i=xe(te(e,t,{suspendOnWaiting:!0}));return n.mode===`promise`?i.then(Ct):i},[e,t,n.mode]):q.useCallback(n=>{e.set(t,typeof n==`function`?n(e.get(t)):n)},[e,t])}var Ct=e=>{if(ee(e))return e.value;throw pe(e.cause)},wt=(e,t)=>{let n=q.useContext(ft);return xt(n,e),St(n,e,t)},Tt={suspendOnWaiting:new WeakMap,default:new WeakMap};function Et(e,t,n){let r=n?Tt.suspendOnWaiting:Tt.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 Dt(e,t,n){let r=bt(e,t);if(r._tag===`Initial`||n&&r.waiting)throw Et(e,t,n);return r}var Ot=(e,t)=>{let n=Dt(q.useContext(ft),e,t?.suspendOnWaiting??!1);if(n._tag===`Failure`&&!t?.includeFailure)throw pe(n.cause);return n},kt=/^(?:Node\.js\/|Deno\/|Bun\/|Cloudflare-Workers)/;function At(){return typeof navigator>`u`||kt.test(String(navigator.userAgent))}function jt(e){let t=``,n=e;if(n==null){if(At())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 Mt(e,t=jt()){return e===`Mod`?t===`mac`?`Meta`:`Control`:e}var Nt=[`Control`,`Alt`,`Shift`,`Meta`],Pt={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 Ft={Backquote:"`",Backslash:`\\`,BracketLeft:`[`,BracketRight:`]`,Comma:`,`,Equal:`=`,Minus:`-`,Period:`.`,Quote:`'`,Semicolon:`;`,Slash:`/`};function It(e){return/^\p{Letter}$/u.test(e)}function Lt(e){if(!e)return``;if(It(e)){let t=e.toUpperCase();return t.length===1?t:e}return e===` `?`Space`:e}function Rt(e,t){let n=!1;try{n=t!==`mac`&&typeof e.getModifierState==`function`&&e.getModifierState(`AltGraph`)}catch{}let r=(e.key||``).normalize(`NFC`),i=Lt(r),a=t===`windows`&&n&&!Bt({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`&&(!e.code||e.code===`Unidentified`||Gt(e.code))}}function zt(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(Ft,e))return Ft[e];let t={NumpadAdd:`+`,NumpadSubtract:`-`,NumpadMultiply:`*`,NumpadDivide:`/`,NumpadDecimal:`.`,NumpadEnter:`Enter`,Space:`Space`};return Object.hasOwn(t,e)?t[e]:void 0}function Bt(e){return e.altGraph?e.key===`Dead`||Vt(e.key)&&!/^[A-Za-z0-9]$/.test(e.key):!1}function Vt(e){return e!==``&&Array.from(e).length===1}function Ht(e){let t=e.toLowerCase();return Object.hasOwn(Pt,t)?Pt[t]:void 0}function Ut(e){return/^[A-Za-z][A-Za-z0-9]*$/.test(e)}function Wt(e){return e.startsWith(`[`)&&e.endsWith(`]`)&&Ut(e.slice(1,-1))?e.slice(1,-1):void 0}function Gt(e){return/^(Control|Shift|Alt|Meta)(Left|Right)$/.test(e)}function Kt(e){if(!e.endsWith(`+`))return e.split(`+`);let t=e.slice(0,-1).split(`+`);return t.at(-1)===``&&t.pop(),t.push(`+`),t}function qt(e){return/^[A-Za-z]$/.test(e)}function Jt(e){return/^\p{Script_Extensions=Latin}$/u.test(e)}var Yt;function Xt(e,t){return e===t?!0:/^\p{Letter}$/u.test(e)&&/^\p{Letter}$/u.test(t)?(Yt??=new Intl.Collator(void 0,{sensitivity:`accent`}),Yt.compare(e,t)===0):!1}function Zt(e){if(/^\[.*\]$/s.test(e.trim()))throw Error(`[hotkeys] Put '${e}' in the code field, not key`)}var Qt=`global`,$t={capture:!1,preventDefault:!0,stopPropagation:!0,eventType:`keydown`,enabled:!0,ignoreInputs:`auto`,conflictBehavior:`warn`,scope:Qt};function en(...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 tn(e){return e.code===void 0?!!e.key&&!Ht(e.key):!!e.code&&!Gt(e.code)}function nn(e){return!(e.ctrl||e.meta||e.key===`Escape`||e.code===`Escape`)}function rn(e,t,n,r){if(n!==`allow`&&n!==`warn`){if(n===`error`)throw Error(`[hotkeys] '${t}' is already registered`);r(e)}}function an(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]?an(n[e],r[e]):Object.is(n[e],r[e]))}function on(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:Nt.filter(e=>a[e])}}function sn(e){return Array.isArray(e)}function cn(e){return sn(e)&&e.length===1?e[0]:e}function ln(e,t){let n=Kt(e).map(e=>e.trim()),r=Lt(n.pop()),i=new Set;for(let e of n){let n=Ht(e);if(!n)return on({key:``},!1,!1,!1,!1);i.add(Mt(n,t))}let a=Wt(r);return on(a===void 0?{key:r}:{code:a},i.has(`Control`),i.has(`Shift`),i.has(`Alt`),i.has(`Meta`))}function un(e,t){e.code===void 0&&Zt(e.key);let n=e.ctrl??!1,r=e.shift??!1,i=e.alt??!1,a=e.meta??!1;return e.mod&&(Mt(`Mod`,t)===`Control`?n=!0:a=!0),on(e.code===void 0?{key:Lt(e.key)}:{code:e.code},n,r,i,a)}function dn(e,t){return typeof e==`string`?ln(e,t):un(e,t)}function fn(e,t){e.code===void 0&&Zt(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 Nt)e.modifiers.includes(t)&&r.push(t);return r.push(e.code===void 0?Lt(e.key):`[${e.code}]`),r.join(`+`)}function pn(e,t=jt()){return Array.isArray(e)?e.map(e=>dn(e,t)):dn(e,t)}function mn(e,t=jt()){if(Array.isArray(e)){let n=e.map(e=>fn(dn(e,t),t));return n.length===1?n[0]:n}return fn(dn(e,t),t)}function hn(e){return Ht(e)!==void 0}function gn(e){return e?.nodeType===1}function _n(e){return`document`in e||e.nodeType===9}function vn(e){return`document`in e?e.document:e.ownerDocument??e}function yn(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}function bn(e){return e.assignedSlot??e.parentNode??(e.host||null)}function xn(e){if(_n(e))return!0;for(let t=yn(e.ownerDocument);t;t=bn(t))if(t===e)return!0;return!1}var Sn=[`ArrowUp`,`ArrowDown`],Cn=[`ArrowLeft`,`ArrowRight`],wn=[`Enter`],Tn=[`Space`],En=[`Enter`,`Space`],Dn=`typeahead`,On=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`,`Enter`,`Space`,Dn],kn=[`ArrowUp`,`ArrowDown`,`Home`,`End`,`Enter`,`Space`,Dn],An=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`,`PageUp`,`PageDown`,`Enter`,`Space`],jn=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Space`],Mn=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`,`PageUp`,`PageDown`],Nn=[`ArrowUp`,`ArrowDown`,`Home`,`End`,`PageUp`,`PageDown`],Pn=[`ArrowLeft`,`ArrowRight`,`Home`,`End`],Fn={button:En,submit:En,reset:En,image:En,color:En,file:En,checkbox:Tn,radio:jn,range:Mn};function In(e){return e.getAttribute(`role`)?.trim().split(/\s+/)[0]}function Ln(e){if(!gn(e))return!1;switch(e.localName){case`input`:{let t=e;return!Fn[t.type]&&!t.readOnly}case`textarea`:return!e.readOnly;case`select`:return!0}let t=In(e);return t===`textbox`||t===`searchbox`||e.isContentEditable}function Rn(e){return e.localName.includes(`-`)?e.constructor.formAssociated===!0?!e.hasAttribute(`role`):!e.hasAttribute(`tabindex`):!1}function zn(e){let t=e.getAttribute(`aria-orientation`);switch(In(e)){case`button`:case`tab`:case`option`:case`treeitem`:case`menuitem`:case`menuitemcheckbox`:case`menuitemradio`:return En;case`link`:return wn;case`checkbox`:case`switch`:case`radio`:return Tn;case`menu`:case`menubar`:case`tree`:return On;case`listbox`:return[...t===`horizontal`?Cn:Sn,`Home`,`End`,`Enter`,`Space`,Dn];case`combobox`:return kn;case`tablist`:return[...t===`vertical`?Sn:Cn,`Home`,`End`,`Enter`,`Space`];case`toolbar`:return[...t===`vertical`?Sn:Cn,`Home`,`End`];case`grid`:case`treegrid`:return An;case`radiogroup`:return jn;case`slider`:return Mn;case`spinbutton`:return Nn}switch(e.localName){case`button`:case`summary`:return En;case`input`:return Fn[e.type]??Pn;case`textarea`:return Mn;case`a`:case`area`:return e.hasAttribute(`href`)?wn:[]}return[]}function Bn(e,t,n,r){if(t.ctrlKey||t.metaKey||t.altKey)return!1;let i=zn(e);return n===`Enter`||n===`Space`?!t.shiftKey&&i.includes(n):i.includes(n)||i.includes(Dn)&&/^.$/u.test(r)}function Vn(e,t,n){let r=yn(t),i=[];for(let e=r;e;e=bn(e))gn(e)&&i.push(e);let a=e.composedPath()[0];gn(a)&&!i.includes(a)&&(i=e.composedPath().filter(gn));let o=i.findIndex(e=>n(e)||e===r&&Rn(e));return{elements:i,index:o}}function Hn({elements:e,index:t},n){return t>=0&&(_n(n)||t<e.indexOf(n))}var Un=new WeakMap;function Wn(e,t){for(;e;e=bn(e))if(e===t)return!0;return!1}function Gn(e,t){if(e.type!==`keydown`||e.key!==`Escape`)return!1;let n=Un.get(e);if(!n){let r=vn(t),i=yn(r),a=e=>{try{return[...r.querySelectorAll(e)]}catch{return[]}},o=a(`dialog:modal`),s=o.filter(e=>Wn(i,e));n=[...s.length?s:o,...a(`:popover-open`).filter(e=>e.popover!==`manual`)],Un.set(e,n)}return n.some(e=>_n(t)||!Wn(t,e))}var Kn=new WeakMap;function qn(e,t){let n=Kn.get(e);if(!n){let r=e.key===`Unidentified`?zt(e.code)??e.code:e.key,i=Lt(r);n=Vn(e,vn(t),t=>Ln(t)||Bn(t,e,i,r)),Kn.set(e,n)}return Hn(n,t)}var Jn={current:null};function Yn(e,t,n=jt()){let r=typeof t==`string`?pn(t,n):t,i=Rt(e,n),a={matched:!1,score:0};if(i.isComposing||i.altGraph&&(r.ctrl||r.alt)||i.altGraph&&!Bt(i))return a;if(r.code!==void 0)return i.altGraph||!Zn(i,r,!1)?a:i.code===r.code?l(`code`,3):a;let o=Xt(i.key,r.key),s=o&&Vt(i.key)&&!/^\p{Letter}$/u.test(i.key)&&!r.shift;if(o&&Zn(i,r,s))return l(`key`,s?2:3);if(!Xn(i)||i.altGraph||!Zn(i,r,!1))return a;let c=zt(i.code);return c!==void 0&&Xt(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 Xn({key:e,code:t,ctrl:n,meta:r,shift:i,alt:a}){return e===`Unidentified`?!t.startsWith(`Key`):e!==`Dead`&&!Vt(e)?!1:t.startsWith(`Digit`)?!0:qt(e)?!1:/^[!-~]$/.test(e)?i:!Jt(e)||a?!0:(n||r)&&!t.startsWith(`Key`)}function Zn(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 Qn(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:Xt(e.key,t.key))}var $n=new Set,er=new WeakSet,tr=new Map,nr=e=>e.code||`key:${e.key}`;function rr(e){return $n.size>0||er.has(e)||tr.has(nr(e))}var ir=new Set;function ar(e){for(let t of e)ir.add(t);for(let e of ir)ir.delete(e),e()}function or(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,ar(n))},subscribe(e){let r=()=>{typeof e==`function`?e(t):e.next?.(t)};return n.add(r),{unsubscribe(){n.delete(r),ir.delete(r)}}}}}var sr=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}};function cr(e){return Array.isArray(e)?e.map(e=>lr(e)):lr(e)}function lr(e){e.code===void 0&&Zt(e.key);let t=[];for(let n of Nt)e.modifiers.includes(n)&&t.push(n);return t.push(e.code===void 0?e.key:`[${e.code}]`),t.join(`+`)}function ur(e,t,n=jt()){let r=sn(e)?e:[e],i=sn(t)?t:[t];return r.length===i.length&&r.every((e,t)=>Qn(pn(e,n),pn(i[t],n)))}var dr=1e3;function fr(e,t){return e.enabled===!1?`disabled`:t?.isScopeActive(e.scope)===!1?`suspended`:`active`}var pr=0;function mr(e,t){return typeof e==`string`?e:cr(t)}function hr(){return`hotkey_${++pr}`}function gr(e){let t=e;return{id:hr(),unregister:()=>{},get callback(){return t},set callback(e){t=e},setOptions:()=>{},get isActive(){return!1}}}function _r(e){return{...$t,...e===`sequence`?{timeout:dr}:{requireReset:!1}}}function vr(e,t){if(e===`chord`){let{timeout:e,...n}=t;return n}let{requireReset:n,...r}=t;return r}function yr({target:e,options:t}){if(!t.afterDelegatedHandlers||t.capture||_n(e))return e;let n=e.getRootNode();for(;`host`in n&&n.mode===`open`;)n=n.host.getRootNode();return n}function br(e){return!!e.afterDelegatedHandlers&&!e.capture}function xr(e){return e.kind===`chord`?[e.parsedChord]:e.parsedSequence}function Sr(e){let{ignoreInputs:t=`auto`}=e.options;return t===`auto`?nn(xr(e)[0]):t}function Cr(e,t){return e.length===t.length&&e.every((e,n)=>Qn(e,t[n]))}function wr(e){return sn(e)?e.join(` `):e}var Tr=class e{registrations=or(new Map);appHotkeys=or(null);scopes=or({active:[],exclusive:null,allowed:[],suspended:[]});#e;#t=new Set;#n=0;#r=[];#i=null;#a=new sr((...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=jt()}static getInstance(){return Jn.current??=new e}static resetInstance(){Jn.current?.destroy(),Jn.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=Qt){return this.#i?this.#i.has(e):e===`global`||this.#r.includes(e)}#f(e=Qt){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=[Qt,...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 fr(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)||Sr(r)&&qn(e,r.target))&&(r.kind===`chord`?[r.parsedChord]:[r.parsedSequence[r.currentIndex],r.parsedSequence[0]]).some(t=>Yn(e,t,r.options.platform).matched))return!0;return!1}#g(){this.registrations.setState(e=>new Map(e))}register(e,t,n={}){let r=cn(e);if(r==null||sn(r)&&r.length===0||typeof document>`u`&&!n.target)return gr(t);let i=hr(),a=n.platform??this.#e,o=n.target??document,s=sn(r),c=s?`sequence`:`chord`,l={id:i,callback:t,options:{..._r(c),...vr(c,en(n)),platform:a},target:o,triggerCount:0,hasFired:!1},u;if(s){let e=pn(r,a);u={...l,kind:`sequence`,hotkey:r.map((t,n)=>mr(t,e[n])),parsedSequence:e,currentIndex:0,lastKeyTime:0}}else{let e=pn(r,a);u={...l,kind:`chord`,hotkey:mr(r,e),parsedChord:e}}if(!(u.kind===`sequence`?u.parsedSequence:[u.parsedChord]).every(tn))return gr(t);let d=this.#N(u);d&&rn(d.id,wr(u.hotkey),n.conflictBehavior??`warn`,e=>this.#_(e));let f=yr(u);this.#a.add(f,!!u.options.capture,i,br(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={..._r(n.kind),platform:n.options.platform},a={...n.options},o=Object.entries(vr(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(an(n.options,a))return t;let s=!!n.options.capture,c=p.#o.get(i)??n.target,l=yr({target:n.target,options:a});return s!==!!a.capture||c!==l?(p.#a.remove(c,s,i),p.#a.add(l,!!a.capture,i,br(a)),p.#o.set(i,l)):br(a)&&!br(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(rr(e)||this.#s.get(e))return;let a=new Map,o=0,s=!1,c=Lt(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=Yn(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||Sr(r)&&qn(e,t))){if(g??=Yn(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||Lt(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(rr(e)||Rt(e).isComposing||hn(Lt(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(_n(a)?vn(a):a)&&!(Sr(i)&&qn(e,a))&&Yn(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(rr(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||Rt(e).isComposing||hn(Lt(e.key)))return;let a=Date.now(),o=!1,s=new Map,c=0;for(let r of i){if(!this.#m(r)||Sr(r)&&qn(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=Yn(e,l,r.options.platform),d=r.currentIndex+1;!u.matched&&r.currentIndex>0&&(u=Yn(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 Gn(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=xr(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&&Cr(xr(n),t))return n;return null}#P(e,t){let n=e.parsedChord,r=Lt(t.key);return e.activeMatch?.code&&t.code===e.activeMatch.code?!0:(n.code===void 0?Xt(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(ur(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)&&xn(n.target)&&(t===void 0?ur(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 Er(){return Tr.getInstance()}function Dr(e){return typeof e==`object`&&!!e&&e[`~appHotkey`]===!0}function Or(e,t){return t?.get(e.id)??e}function kr(e){return{...e.options,...e.scope!==void 0&&{scope:e.scope},meta:e.meta,appHotkeyId:e.id}}function Ar(e={}){let t=new Map;return{update(n,r={}){let i=[];n.forEach((t,n)=>{let a=en(r,t.options),o={...$t,...a,...e,target:`target`in a?a.target??null:typeof document>`u`?null:document,platform:a.platform??jt()};if(!o.target||!t.hotkey||sn(t.hotkey)&&t.hotkey.length===0)return;let s=pn(t.hotkey,o.platform);if(!(Array.isArray(s)?s:[s]).every(tn))return;let c=mn(s,o.platform);sn(c)?delete o.requireReset:delete o.timeout,i.push({key:`${n}:${sn(c)?c.join(` `):c}`,callback:t.callback,options:o,register:()=>Er().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 jr(e,t={}){return e.map(e=>{let n=e.hotkey,r={};if(Dr(n)){let e=Or(n,t.appHotkeysStore);r=kr(e),n=e.hotkey??[]}let{target:i,...a}=en(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 Mr=(0,q.createContext)(null);function Nr(){return(0,q.useContext)(Mr)}function Pr(e,t){let n=(0,q.useCallback)(t=>e.subscribe(t).unsubscribe,[e]),r=(0,q.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,q.useSyncExternalStore)(n,i,i)}var Fr=or(null);function Ir(){let e=Nr()?.appHotkeysStore??null;return Pr(e?.store??Fr,e=>e),e}function Lr(e){return typeof e==`object`&&!!e&&`current`in e}function Rr(e){return Lr(e)?e.current:e}function zr(e,t={}){let n=Nr()?.defaultOptions.hotkey,r=Ir(),i=(0,q.useRef)({hotkeys:e,commonOptions:t,defaults:n,appHotkeysStore:r});i.current={hotkeys:e,commonOptions:t,defaults:n,appHotkeysStore:r};let a=(0,q.useRef)(null);(0,q.useEffect)(()=>{a.current??=Ar({afterDelegatedHandlers:!0});let{hotkeys:e,...t}=i.current;a.current.update(jr(e,{...t,resolveTarget:Rr}))}),(0,q.useEffect)(()=>()=>{a.current?.destroy(),a.current=null},[])}var Br=q.createContext(void 0);function Vr(e){let t=q.useContext(Br);if(!e&&t===void 0)throw Error(Me(27));return t}var Hr=`data-starting-style`,Ur=`data-ending-style`,Wr={[Hr]:``},Gr={[Ur]:``},Kr={transitionStatus(e){return e===`starting`?Wr:e===`ending`?Gr:null}},qr=`data-open`,Jr=`data-closed`,Yr=`data-anchor-hidden`,Xr={[qr]:``},Zr={[Jr]:``},Qr={[Yr]:``},$r={open(e){return e?Xr:Zr},anchorHidden(e){return e?Qr:null}},ei={...$r,...Kr},ti=q.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,s=Vr(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`),d={open:c,transitionStatus:s.useState(`transitionStatus`)};return Ze(`div`,e,{state:d,ref:[s.context.backdropRef,t],stateAttributesMapping:ei,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})});function ni(e,t,n,r){let i=!1,a=!1,o=r??Le;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 ri=`none`,ii=`trigger-press`,ai=`outside-press`,oi=`close-press`,si=`focus-out`,ci=`escape-key`,li=`imperative-action`,ui=q.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,c=Vr(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=Re({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,ni(oi,e.nativeEvent))}return Ze(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})});function di(){let[,e]=q.useState({});return q.useCallback(()=>{e({})},[])}var fi=0;function pi(e,t=`mui`){let n=q.useRef(void 0),r=di(),i=e??n.current;return q.useEffect(()=>{n.current??(fi+=1,n.current=`${t}-${fi}`,e??r())},[e,t,r]),i}var mi=$e.useId;function hi(e,t){if(mi!==void 0){let n=mi();return e??(t?`${t}-${n}`:n)}return pi(e,t)}function gi(e){return hi(e,`base-ui`)}var _i=q.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=Vr(),c=gi(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),Ze(`p`,e,{ref:t,props:[{id:c},o]})});function Y(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function vi(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function yi(e){let t=Pe(bi,e).current;return t.next=e,G(t.effect),t}function bi(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function xi(e){q.useEffect(e,Ie)}var Si=0,Ci=class e{static create(){return new e}currentId=Si;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Si,t()},e)}isStarted(){return this.currentId!==Si}clear=()=>{this.currentId!==Si&&(clearTimeout(this.currentId),this.currentId=Si)};disposeEffect=()=>this.clear};function wi(){let e=Pe(Ci.create).current;return xi(e.disposeEffect),e}function Ti(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:Ei,platform:Di,maxTouchPoints:Oi}=Ti(),ki=Ei.toLowerCase(),Ai=Di.toLowerCase(),ji=/^i(os$|p)/.test(Ai)||Ai===`macintel`&&Oi>1,Mi=`android`,Ni=Ai===Mi||ki.includes(Mi),Pi=!ji&&Ai.startsWith(`mac`);Ai.startsWith(`win`),!Ni&&/^(linux|chrome os)/.test(Ai);var Fi=Pi||ji,Ii=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!Ii&&ki.includes(`firefox`),!Ii&&ki.includes(`chrom`);var Li=Fi,Ri=/jsdom|happydom/.test(ki),zi=null;globalThis.requestAnimationFrame;var Bi=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)}},Vi=class e{static create(){return new e}static request(e){return Bi.request(e)}static cancel(e){return Bi.cancel(e)}currentId=zi;request(e){this.cancel(),this.currentId=Bi.request(()=>{this.currentId=zi,e()})}cancel=()=>{this.currentId!==zi&&(Bi.cancel(this.currentId),this.currentId=zi)};disposeEffect=()=>this.cancel};function Hi(){let e=Pe(Vi.create).current;return xi(e.disposeEffect),e}var Ui={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Wi={...Ui,position:`fixed`,margin:0,top:0,left:0};({...Ui});var X=t(),Gi=q.forwardRef(function(e,t){let[n,r]=q.useState();G(()=>{Li&&Ii&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,X.jsx)(`span`,{...e,ref:t,style:Wi,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})});function Ki(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&&Ve(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function qi(e,t){let n=e;for(;n;){if(Ee(n)&&n.matches(t))return n;n=n.assignedSlot??n.parentNode??(Ve(n)?n.host:null)}return null}function Ji(e){return`composedPath`in e?e.composedPath()[0]??e.target:e.target}var Yi=`data-base-ui-focusable`;function Xi(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 Zi(e){return e.matches(`html,body`)}function Qi(e){return W(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function $i(e){return e?e.getAttribute(`role`)===`combobox`&&Qi(e):!1}function ea(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function ta(e){e.preventDefault(),e.stopPropagation()}function na(e){return`nativeEvent`in e}function ra(e){return e.pointerType===``&&e.isTrusted?!0:Ni&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function ia(e){return Ri?!1:!Ni&&e.width===0&&e.height===0||e.type===`pointerdown`&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`&&(Ni||e.buttons===0)||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function aa(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}function oa(e){return e.visibility===`hidden`||e.visibility===`collapse`}function sa(e,t=e?Ae(e):null){return!e||!e.isConnected||!t||oa(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var ca=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function la(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return Ve(n)?n.host:null}function ua(e){for(let t of Array.from(e.children))if(Te(t)===`summary`)return t;return null}function da(e,t){let n=ua(t);return!!n&&(e===n||Z(n,e))}function fa(e){let t=e?Te(e):``;return e!=null&&e.matches(ca)&&(t!==`summary`||e.parentElement!=null&&Te(e.parentElement)===`details`&&ua(e.parentElement)===e)&&(t!==`details`||ua(e)==null)&&(t!==`input`||e.type!==`hidden`)}function pa(e){if(!fa(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=la(t)){let n=t!==e,r=Te(t)===`slot`;if(t.hasAttribute(`inert`)||n&&Te(t)===`details`&&!t.open&&!da(e,t)||t.hasAttribute(`hidden`)||!r&&!ma(t,n))return!1}return!0}function ma(e,t){let n=Ae(e);return t?n.display!==`none`:sa(e,n)}function ha(e){let t=e.tabIndex;if(t<0){let t=Te(e);if(t===`details`||t===`audio`||t===`video`||W(e)&&e.isContentEditable)return 0}return t}function ga(e){if(Te(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function _a(e,t){let n=ga(e);if(!n)return!0;let r=t.find(e=>{let t=ga(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=ga(e);return t?.name===n.name&&t.form===n.form})===n}function va(e){if(W(e)&&Te(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return W(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function ya(e,t){va(e).forEach(e=>{fa(e)&&t.push(e),ya(e,t)})}function ba(e,t,n){va(e).forEach(e=>{W(e)&&e.matches(t)&&n.push(e),ba(e,t,n)})}function xa(e){return pa(e)&&ha(e)>=0}function Sa(e){let t=[];return ya(e,t),t.filter(pa)}function Ca(e){let t=Sa(e);return t.filter(e=>ha(e)>=0&&_a(e,t))}function wa(e,t){let n=Ca(e),r=n.length;if(r===0)return;let i=Ki(J(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function Ta(e){return wa(J(e).body,1)||e}function Ea(e){return wa(J(e).body,-1)||e}function Da(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!Z(n,r)}function Oa(e){Ca(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function ka(e){let t=[];ba(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 Aa(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...Aa(e,t.id,n)])}function ja(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 Ma(e){return`data-base-ui-${e}`}var Na=0;function Pa(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(Na);function a(){(!i||i())&&e?.focus({preventScroll:n})}if(r)return a(),qe;let o=requestAnimationFrame(a);return Na=o,()=>{Na===o&&(cancelAnimationFrame(o),Na=0)}}var Fa=`data-base-ui-inert`,Ia=new WeakMap,La=new WeakSet,Ra=new WeakMap,za=0;function Ba(e){return e?Ve(e)?e.host:Ba(e.parentNode):null}var Va=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=Ba(t);return e.contains(n)?n:null}).filter(e=>e!=null),Ha=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},Ua=(e,t,n)=>{let r=[],i=e=>{e&&!n.has(e)&&Array.from(e.children).forEach(e=>{Te(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function Wa(e,t,n,{mark:r=!0}){let i=Va(t,e),a=r?Ua(t,Ha(i),new Set(i)):[],o=[],s=[];if(n){let e=Va(t,Array.from(t.querySelectorAll(`[aria-live]`))),n=i.concat(e);Ua(t,Ha(n),new Set(n)).forEach(e=>{let t=e.getAttribute(`aria-hidden`),n=t!==null&&t!==`false`,r=(Ia.get(e)||0)+1;Ia.set(e,r),o.push(e),r===1&&n&&La.add(e),n||e.setAttribute(`aria-hidden`,`true`)})}return r&&a.forEach(e=>{let t=(Ra.get(e)||0)+1;Ra.set(e,t),s.push(e),t===1&&e.setAttribute(Fa,``)}),za+=1,()=>{o.forEach(e=>{let t=(Ia.get(e)||0)-1;Ia.set(e,t),t||(La.has(e)||e.removeAttribute(`aria-hidden`),La.delete(e))}),r&&s.forEach(e=>{let t=(Ra.get(e)||0)-1;Ra.set(e,t),t||e.removeAttribute(Fa)}),--za,za||(Ia=new WeakMap,La=new WeakSet,Ra=new WeakMap)}}function Ga(e,t={}){let{ariaHidden:n=!1,mark:r=!0}=t,i=J(e[0]).body;return Wa(e,i,n,{mark:r})}var Ka={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},qa=e(n(),1),Ja=q.createContext(null),Ya=()=>q.useContext(Ja),Xa=Ma(`portal`);function Za(e={}){let{ref:t,container:n,componentProps:r=Le,elementProps:i}=e,a=hi(),o=Ya()?.portalNode,[s,c]=q.useState(null),[l,u]=q.useState(null),d=K(e=>{e!==null&&u(e)}),f=q.useRef(null);G(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}let e=(n&&(He(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=Ze(`div`,r,{ref:[t,d],props:[{id:a,[Xa]:``},i]}),m=s&&p?qa.createPortal(p,s):null;return{node:l,nodeId:q.isValidElement(p)?p.props.id:void 0,subtree:m}}var Qa=q.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}=Za({container:o,ref:t,componentProps:e,elementProps:c}),f=q.useRef(null),p=q.useRef(null),m=q.useRef(null),h=q.useRef(null),[g,_]=q.useState(null),v=q.useRef(!1),y=g?.modal,b=g?.open,x=!!g&&!g.modal&&g.open&&!!l;q.useEffect(()=>{if(!l||y)return;function e(e){l&&e.relatedTarget&&Da(e)&&(e.type===`focusin`?v.current&&=(ka(l),!1):(Oa(l),v.current=!0))}return vi(Y(l,`focusin`,e,!0),Y(l,`focusout`,e,!0))},[l,y]),G(()=>{l&&b===!0&&v.current&&(ka(l),v.current=!1)},[b,l]);let S=q.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:h,portalNode:l,setFocusManagerState:_}),[l]);return(0,X.jsxs)(q.Fragment,{children:[d,(0,X.jsxs)(Ja.Provider,{value:S,children:[x&&l&&(0,X.jsx)(Gi,{"data-type":`outside`,ref:f,onFocus:e=>{Da(e,l)?m.current?.focus():Ea(g?g.domReference:null)?.focus()}}),x&&l&&(0,X.jsx)(`span`,{role:s,"aria-owns":u,style:Ka}),l&&qa.createPortal(a,l),x&&l&&(0,X.jsx)(Gi,{"data-type":`outside`,ref:p,onFocus:e=>{Da(e,l)?h.current?.focus():(Ta(g?g.domReference:null)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,ni(`focus-out`,e.nativeEvent)))}})]})]})});function $a(){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 eo=q.createContext(null),to=q.createContext(null),no=()=>q.useContext(eo)?.id||null,ro=e=>{let t=q.useContext(to);return e??t};function io(e){return e==null?e:`current`in e?e.current:e}function ao(e,t){let n=je(Ji(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||(ra(e)?`keyboard`:t||`mouse`):`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var oo=20,so=[];function co(){so=so.filter(e=>e.deref()?.isConnected)}function lo(e){co(),e&&Te(e)!==`body`&&(so.push(new WeakRef(e)),so.length>oo&&(so=so.slice(-20)))}function uo(){return co(),so[so.length-1]?.deref()}function fo(e){return e?xa(e)?e:Ca(e)[0]||e:null}function po(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=Sa(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return xa(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 mo(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=K(()=>b.current.floatingContext?.nodeId),S=i===!1,C=$i(_)&&S,w=yi(i),T=yi(a),E=yi(o),D=yi(u),ee=yi(g),O=ro(m),k=Ya(),A=q.useRef(!1),j=q.useRef(!1),M=q.useRef(!1),N=q.useRef(null),P=q.useRef(``),F=q.useRef(``),I=q.useRef(null),L=q.useRef(null),te=ze(I,p,k?.beforeInsideRef),ne=ze(L,k?.afterInsideRef),re=wi(),R=wi(),z=Hi(),ie=k!=null,B=ea(v),ae=K((e=B)=>e?Ca(e):[]),V=K(()=>h?.().filter(e=>e!=null)??[]);q.useEffect(()=>{if(r||!c)return;function e(e){e.key===`Tab`&&Z(B,Ki(J(B)))&&ae().length===0&&!C&&ta(e)}return Y(J(B),`keydown`,e)},[r,B,c,C,ae]),q.useEffect(()=>{if(r||!g)return;let e=J(B);function t(){M.current=!1}function n(e){let t=Ji(e),n=V(),r=Z(v,t)||Z(_,t)||Z(k?.portalNode,t)||n.some(e=>e===t||Z(e,t));M.current=!r,F.current=e.pointerType||`keyboard`,qi(t,`[data-base-ui-click-trigger]`)&&(j.current=!0,R.start(0,()=>{j.current=!1}))}function i(){F.current=`keyboard`}return vi(Y(e,`pointerdown`,n,!0),Y(e,`pointerup`,t,!0),Y(e,`pointercancel`,t,!0),Y(e,`keydown`,i,!0),t)},[r,v,_,B,g,k,R,V]),q.useEffect(()=>{if(r||!l)return;let e=J(B);function n(){j.current=!0,R.start(0,()=>{j.current=!1})}function i(e){let t=Ji(e);xa(t)&&(N.current=t)}function a(n){let r=n.relatedTarget,i=n.currentTarget,a=Ji(n);c&&r==null&&a!=null&&Z(v,a)&&lo(a),queueMicrotask(()=>{let o=x(),l=t.context.triggerElements,u=V(),p=r?.hasAttribute(Ma(`focus-guard`))&&[I.current,L.current,k?.beforeInsideRef.current,k?.afterInsideRef.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,io(f),io(d)].includes(r),m=!(Z(_,r)||Z(v,r)||Z(r,v)||Z(k?.portalNode,r)||u.some(e=>e===r||Z(e,r))||l.hasMatchingElement(e=>Z(e,r))||p||O&&(Aa(O.nodesRef.current,o).find(e=>Z(e.context?.elements.floating,r)||Z(e.context?.elements.domReference,r))||ja(O.nodesRef.current,o).find(e=>[e.context?.elements.floating,ea(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(i===_&&B&&po(B),s&&i!==_&&!sa(a)&&Ki(e)===e.body){if(W(B)&&(B.focus(),s===`popup`)){z.request(()=>{B.focus()});return}let e=ae(),t=N.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||B;W(n)&&n.focus()}b.current.insideReactTree?b.current.insideReactTree=!1:(C||!c)&&r&&m&&!j.current&&(C||r!==uo())&&(A.current=!0,t.setOpen(!1,ni(si,n)))})}function o(){M.current||(b.current.insideReactTree=!0,re.start(0,()=>{b.current.insideReactTree=!1}))}let u=W(_)?_:null;if(v||u)return vi(u&&Y(u,`focusout`,a),u&&Y(u,`pointerdown`,n),v&&Y(v,`focusin`,i),v&&Y(v,`focusout`,a),v&&k&&Y(v,`focusout`,o,!0))},[r,_,v,B,c,O,k,t,l,s,ae,C,x,b,re,R,z,d,f,V]),q.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(k?.portalNode?.querySelectorAll(`[${Ma(`portal`)}]`)||[]),t=(O?ja(O.nodesRef.current,x()):[]).find(e=>$i(e.context?.elements.domReference||null))?.context?.elements.domReference,n=Ga([v,...e,I.current,L.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,...V(),t,io(f),io(d),C?_:null].filter(e=>e!=null),{ariaHidden:c||C,mark:!1}),i=Ga([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,c,k,C,O,x,d,f,V]),G(()=>{if(!g||r||!W(B))return;P.current=``,F.current=``;let e=J(B),t=Ki(e);queueMicrotask(()=>{let n=w.current,r=typeof n==`function`?n(D.current||``):n;if(r===void 0||r===!1||Z(B,t))return;let i=null,a=()=>(i??=ae(B),i[0]||B),o;o=r===!0||r===null?a():io(r),o||=a();let s=Z(B,Ki(e)),c=b.current.openEvent,l=c?.type===`mousedown`&&ra(c);Pa(o,{sync:l,preventScroll:o===B,shouldFocus(){if(!ee.current)return!1;if(s)return!0;let t=Ki(e);return!(t!==o&&Z(B,t))}})})},[r,g,B,ae,w,D,ee,b]);let H=q.useRef(null);G(()=>{if(r||!B){H.current=null;return}H.current&&=(H.current.cancelled=!0,null);let e=J(B),t=Ki(e),n=D.current==null;lo(t);function i(e){if(e.open||(P.current=ao(e.nativeEvent,F.current)),(e.reason===`focus-out`&&e.triggerElement?.hasAttribute(Ma(`focus-guard`))||e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`)&&(A.current=!0),e.reason===`outside-press`){if(e.nested)A.current=!1;else if(ra(e.nativeEvent)||ia(e.nativeEvent))A.current=!1;else{let e=!1;J(B).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?A.current=!1:A.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&&Te(t)!==`body`?t:null,s=n?o||a:a||o;return s||=uo()||null,typeof i==`boolean`?s:io(i)||s||null}return()=>{y.off(`openchange`,i);let t=Ki(e),n=V(),r=Z(v,t)||n.some(e=>e===t||Z(e,t))||O&&Aa(O.nodesRef.current,x(),!1).some(e=>Z(e.context?.elements.floating,t)),o=T.current,s=P.current,c=a(s),l={cancelled:!1};H.current=l,queueMicrotask(()=>{H.current===l&&(H.current=null);let n=fo(c),i=E.current??typeof o!=`boolean`;if(!l.cancelled&&o&&!A.current&&W(n)&&(i||n===t||t===e.body||r)){let e={preventScroll:!0};s===`keyboard`&&(e.focusVisible=!0),n.focus(e)}A.current=!1})}},[r,v,B,T,E,D,y,O,_,x,V]),G(()=>{if(!Ii||g||!v)return;let e=Ki(J(v));W(e)&&Qi(e)&&Z(v,e)&&e.blur()},[g,v]),G(()=>{if(!r&&k)return k.setFocusManagerState({modal:c,closeOnFocusOut:l,open:g,onOpenChange:t.setOpen,domReference:_}),()=>{k.setFocusManagerState(null)}},[r,k,c,g,t,l,_]),G(()=>{if(!r&&B)return po(B),()=>{queueMicrotask(co)}},[r,B]);let oe=!r&&(!c||!C)&&(ie||c);return(0,X.jsxs)(q.Fragment,{children:[oe&&(0,X.jsx)(Gi,{"data-type":`inside`,ref:te,onFocus:e=>{if(c){let e=ae();Pa(e[e.length-1])}else k?.portalNode&&(A.current=!1,Da(e,k.portalNode)?Ta(_)?.focus():io(f??k.beforeOutsideRef)?.focus())}}),n,oe&&(0,X.jsx)(Gi,{"data-type":`inside`,ref:ne,onFocus:e=>{c?Pa(ae()[0]):k?.portalNode&&(l&&(A.current=!0),Da(e,k.portalNode)?Ea(_)?.focus():io(d??k.afterOutsideRef)?.focus())}})]})}function ho(){return!1}function go(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function _o(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=ho,bubbles:s,externalTree:c}=t,l=e.useState(`open`),u=e.useState(`floatingElement`),{dataRef:d,events:f}=e.context,p=ro(c),m=K(typeof i==`function`?i:()=>!1),h=typeof i==`function`?m:i,g=h!==!1,_=K(()=>a),{escapeKey:v,outsidePress:y}=go(s),b=q.useRef(!1),x=q.useRef(!1),S=q.useRef(!1),C=q.useRef(!1),w=q.useRef(!1),T=q.useRef(``),E=q.useRef(null),D=wi(),ee=wi(),O=wi(),k=K(()=>{ee.clear(),d.current.insideReactTree=!1}),A=K(e=>{let t=d.current.floatingContext?.nodeId;return(p?Aa(p.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),j=K(t=>Xi(t,e.select(`floatingElement`))||Xi(t,e.select(`domReferenceElement`))),M=K(t=>{o()&&e.setOpen(!1,ni(ii,t.nativeEvent))}),N=K(t=>{if(!l||!n||!r||t.key!==`Escape`)return;let i=na(t)?t.nativeEvent:t;if(w.current||i.isComposing||!v&&A(`__escapeKeyBubbles`))return;let a=ni(ci,i);e.setOpen(!1,a),a.isCanceled||t.preventDefault(),!v&&!a.isPropagationAllowed&&t.stopPropagation()}),P=K(()=>{d.current.insideReactTree=!0,ee.start(0,k)}),F=K(t=>{if(!l||!n||t.button!==0)return;let r=Ji(t.nativeEvent);Z(e.select(`floatingElement`),r)&&(b.current||(b.current=!0,x.current=!1))}),I=K(e=>{l&&n&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&b.current&&(x.current=!0)});q.useEffect(()=>{function e(e){e.open||(C.current=!1)}return f.on(`openchange`,e),()=>{f.off(`openchange`,e)}},[f]),q.useEffect(()=>k,[k]),q.useEffect(()=>{if(!l||!n)return l||(C.current=!1,w.current=!1,T.current=``,E.current=null),k;d.current.__escapeKeyBubbles=v,d.current.__outsidePressBubbles=y;let t=new Ci,i=J(u);function a(){O.clear(),w.current=!0}function o(){w.current=!0,O.start(Ii?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 ee(e){let t=d.current.floatingContext?.nodeId,n=p&&Aa(p.nodesRef.current,t).some(t=>Xi(e,t.context?.elements.floating));return j(e)||n}function M(n){if(m(n)){n.type!==`click`&&!j(n)&&(t.clear(),S.current=!1),k();return}if(d.current.insideReactTree){k();return}let r=Ji(n),i=`[${Ma(`inert`)}]`,a=Ee(r)?r.getRootNode():null,o=Array.from((Ve(a)?a:J(e.select(`floatingElement`))).querySelectorAll(i)),s=e.context.triggerElements;if(r&&(s.hasElement(r)||s.hasMatchingElement(e=>Z(e,r))))return;let c=Ee(r)?r:null;for(;c&&!Oe(c);){let e=Qe(c);if(Oe(e)||!Ee(e))break;c=e}if(!(o.length&&Ee(r)&&!Zi(r)&&!Z(r,e.select(`floatingElement`))&&o.every(e=>!Z(c,e)))){if(W(r)&&!(`touches`in n)){let e=Oe(r),t=Ae(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(!ee(n)){if(f()===`intentional`){if(n.detail!==0&&!ra(n)&&!C.current)return;if(S.current){t.clear(),S.current=!1;return}}typeof h==`function`&&!h(n)||A(`__outsidePressBubbles`)||(e.setOpen(!1,ni(ai,n)),k())}}}function P(t){f()===`sloppy`&&t.pointerType!==`touch`&&e.select(`open`)&&n&&!j(t)&&M(t)}function F(t){if(f()!==`sloppy`||!e.select(`open`)||!n||j(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=Ji(e);if(!n)return;let r=Y(n,e.type,()=>{t(e),r()})}function L(e){T.current=`touch`,I(e,F)}function te(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`?P(e):M(e)})}function ne(e){if(e.type===`pointercancel`&&(C.current=!1),!b.current)return;let n=x.current;c(),f()===`intentional`&&(e.type===`pointercancel`?n&&s():ee(e)||(n?s():(typeof h!=`function`||h(e))&&(t.clear(),S.current=!0,k())))}function re(e){if(f()!==`sloppy`||!E.current||j(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&&(M(e),D.clear(),E.current=null)}function R(e){I(e,re)}function z(e){f()===`sloppy`&&E.current&&!j(e)&&(E.current.dismissOnTouchEnd&&M(e),D.clear(),E.current=null)}function ie(e){I(e,z)}let B=vi(r&&vi(Y(i,`keydown`,N),Y(i,`compositionstart`,a),Y(i,`compositionend`,o)),g&&vi(Y(i,`click`,te,!0),Y(i,`pointerdown`,te,!0),Y(i,`pointerup`,ne,!0),Y(i,`pointercancel`,ne,!0),Y(i,`mousedown`,te,!0),Y(i,`mouseup`,ne,!0),Y(i,`touchstart`,L,{capture:!0,passive:!0}),Y(i,`touchmove`,R,{capture:!0,passive:!0}),Y(i,`touchend`,ie,{capture:!0,passive:!0})));return()=>{B(),t.clear(),c(),S.current=!1}},[d,u,r,g,h,l,n,v,y,N,k,_,A,j,p,e,D,O]);let L=q.useMemo(()=>({onKeyDown:N,onPointerDown:M,onClick:M}),[N,M]),te=q.useMemo(()=>({onKeyDown:N,onPointerDown:I,onMouseDown:I,onClickCapture:P,onMouseDownCapture(e){P(),F(e)},onPointerDownCapture(e){P(),F(e)},onMouseUpCapture:P,onTouchEndCapture:P,onTouchMoveCapture:P}),[N,P,F,I]);return q.useMemo(()=>n?{reference:L,floating:te,trigger:L}:{},[n,L,te])}var vo=q.createContext(void 0);function yo(){let e=q.useContext(vo);if(e===void 0)throw Error(Me(26));return e}function bo(e,t){return e.getAnimations(t).filter(e=>{let t=e.effect?.getTiming();return t?.duration!==1/0&&t?.iterations!==1/0})}var xo=null;function So(e){if(!xo){let e=[];xo=e,queueMicrotask(()=>{xo=null,qa.flushSync(()=>{for(let t of e)t()})})}xo.push(e)}function Co(e,t=!1,n=!1){let r=Hi();return K((i,a=null)=>{r.cancel();let o=io(e);if(o==null)return;let s=o,c=()=>{n?So(()=>{a?.aborted||i()}):qa.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(bo(s).map(e=>e.finished.then(qe))).then(()=>{a?.aborted||c()},()=>{a?.aborted||(bo(s).some(e=>e.pending||e.playState!==`finished`)?l():c())})}if(t){let e=Hr;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 wo(e){let{enabled:t=!0,open:n,ref:r,batch:i=!1,onComplete:a}=e,o=K(a),s=Co(r,n,i);q.useEffect(()=>{if(!t)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[t,n,o,s])}var To=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`]);function Eo(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};Ee(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 Do(e,t=!1,n=!1,r=!1){let[i,a]=q.useState(e&&t?`idle`:void 0),[o,s]=q.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=Vi.request(()=>{a(`ending`)});return()=>{Vi.cancel(e)}}},[e,o,i,n]),G(()=>{if(!e||t||i===void 0)return;let n=Vi.request(()=>{a(void 0)});return()=>{Vi.cancel(n)}},[t,e,i]),G(()=>{if(!e||!t)return;e&&o&&i!==`idle`&&a(`starting`);let n=Vi.request(()=>{a(`idle`)});return()=>{Vi.cancel(n)}},[t,e,o,i]),{mounted:o,setMounted:s,transitionStatus:i}}function Oo(e){let{open:t,ref:n,preventUnmountOnClose:r,setPreventUnmountOnClose:i,onUnmount:a,animateInitialOpen:o}=e,s=K(i),{mounted:c,setMounted:l,transitionStatus:u}=Do(t,!1,!1,o),d=!t&&r;G(()=>{t&&s(!1)},[t,s]);let f=q.useRef(c),p=q.useRef(!1),m=di(),h=()=>{f.current=!1,l(!1),a()};G(()=>{f.current=c,p.current&&(p.current=!1,!t&&c&&h())});let g=K(()=>{f.current&&(t?(p.current=!0,m()):h())});return wo({enabled:c&&!t&&!d,open:t,ref:n,onComplete(){t||g()}}),{mounted:c,transitionStatus:u,preventUnmountingOnClose:d,forceUnmount:g}}var ko={tabIndex:-1,[Yi]:``};function Ao(e){return t=>t!==`touch`||e.current}function jo(e,t=!1){let n=hi(),r=no()!=null,i=Pe(()=>e(n,r)).current;return Eo({popupStore:i,treatPopupAsFloatingElement:t,floatingRootContext:i.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:i.setOpen}),i}function Mo({handle:e,store:t}){return G(()=>e.attachStore(t),[e,t]),null}function No(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 Po(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=q.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=ni(ri);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[i,e,a,o,s,n])}function Fo(e,t,n,r){let{mounted:i,transitionStatus:a,forceUnmount:o}=Oo({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 Pe(()=>(t.set(`mounted`,i),null)),t.useSyncedValues({mounted:i,transitionStatus:a}),{forceUnmount:o,transitionStatus:a}}function Io(e,t){e.useSyncedValues(t),G(()=>()=>{e.update({activeTriggerProps:Le,inactiveTriggerProps:Le,popupProps:Le})},[e])}function Lo(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 Ro=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}},zo=[],Bo=void 0;function Vo(){return Bo}function Ho(e){zo.push(e)}function Uo(e){let t=(t,n)=>{let r=Pe(Wo).current,i;try{Bo=r;for(let e of zo)e.before(r);i=e(t,n);for(let e of zo)e.after(r);r.didInitialize=!0}finally{Bo=void 0}return i};return t.displayName=e.displayName||e.name,t}function Wo(){return{didInitialize:!1}}var Go=nt(),Ko=tt(),qo=We(19)?Xo:Zo;function Jo(e,t,n,r,i){return qo(e,t,n,r,i)}function Yo(e,t,n,r,i){let a=q.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,Go.useSyncExternalStore)(e.subscribe,a,a)}Ho({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,Go.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Xo(e,t,n,r,i){let a=Vo();if(!a)return Yo(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 Zo(e,t,n,r,i){return(0,Ko.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 Jo(this,e,t,n,r)}},$o=class extends Qo{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){q.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){q.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 q.useDebugValue(e),Jo(this,this.selectors[e],t,n,r)}useContextCallback(e,t){q.useDebugValue(e);let n=K(t??qe);this.context[e]=n}useStateSetter(e){let t=q.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)}})}},es={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},ts=class extends $o{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:$a(),nested:n,triggerElements:i},es),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&aa(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 ns(e,t,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new ts({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:Le,inactiveTriggerProps:Le,popupProps:Le}}var rs=e=>e.triggerIdProp??e.activeTriggerId,is=e=>e.openProp??e.open,as=e=>(e.popupElement?.id??e.floatingId)||void 0;function os(e,t){return t!==void 0&&is(e)&&rs(e)===t}function ss(e,t){return os(e,t)?!0:t!==void 0&&is(e)&&rs(e)==null&&!e.openedWithoutTrigger&&e.triggerCount===1}var cs={open:is,mounted:e=>e.mounted,transitionStatus:e=>is(e)&&!e.mounted?`starting`:e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:rs,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:as,isTriggerActive:(e,t)=>t!==void 0&&rs(e)===t,isOpenedByTrigger:(e,t)=>os(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&rs(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>ss(e,t)?as(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement},ls=`--nested-dialogs`,us=`data-nested-dialog-open`,ds={...$r,...Kr,nestedDialogOpen(e){return e?{[us]:``}:null}},fs=q.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,c=Vr(),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`);yo(),wo({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});let C=o===void 0?Ao(c.context.popupRef):o,w=g>0,T=c.useStateSetter(`popupElement`),E=Ze(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:w},props:[f,{id:S,"aria-labelledby":y,"aria-describedby":l,role:x,...ko,hidden:!m,onKeyDown(e){To.has(e.key)&&e.stopPropagation()},style:{[ls]:g}},s],ref:[t,c.context.popupRef,T],stateAttributesMapping:ds});return(0,X.jsx)(mo,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:C,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:E})});function ps(e){return We(19)?e:e?`true`:void 0}var ms=q.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}})}),hs=q.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=Vr(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,X.jsx)(vo.Provider,{value:n,children:(0,X.jsxs)(Qa,{ref:t,...r,children:[a&&o===!0&&(0,X.jsx)(ms,{ref:i.context.internalBackdropRef,inert:ps(!s)}),e.children]})}):null}),gs={},_s={},vs=``;function ys(e,t){return we(e)?e:t}function bs(e,t,n){return/hidden|clip/.test(e.getComputedStyle(ys(t,n)).overflowY)}function xs(e){if(typeof document>`u`)return!1;let t=J(e);return je(t).innerWidth-t.documentElement.clientWidth>0}function Ss(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=J(e),n=t.documentElement,r=t.body,i=ys(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 Cs(e){let t=J(e),n=t.documentElement,r=t.body,i=ys(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 ws(e){let t=J(e),n=t.documentElement,r=t.body,i=je(n),a=0,o=0,s=!1,c=Vi.create();if(Ii&&(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,gs={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},vs=n.style.scrollBehavior,_s={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=ys(n,r);s=Ss(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,gs),Object.assign(r.style,_s),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=vs)}function d(){u(),c.request(l)}l();let f=Y(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var Ts=new class{lockCount=0;restore=null;timeoutLock=Ci.create();timeoutUnlock=Ci.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=J(e),n=t.documentElement,r=t.body,i=je(n);if(bs(i,n,r)){let t=new i.MutationObserver(()=>{bs(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=ji||!xs(e);this.restore=a?Cs(e):ws(e)}};function Es(e=!0,t=null){G(()=>{if(e)return Ts.acquire(t)},[e,t])}function Ds({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]=q.useState(0),[d,f]=q.useState(0),p=l===0,m=_o(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=Ji(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 Es(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]),Io(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}var Os={...cs,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},ks=class extends $o{constructor(e,t,n){let r=new Ro,i=As(e,r,t,n);super(i,js(r),Os)}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(No(this.state,e,t.trigger)))}};function As(e,t,n,r=!1){return{...ns(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 js(e){return{popupRef:q.createRef(),backdropRef:q.createRef(),internalBackdropRef:q.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function Ms(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=Vr(!0),y={modal:h,disablePointerDismissal:g,nested:v!=null,role:_},b=jo((e,t)=>new ks({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`);Lo(b,x),Po(b);let{forceUnmount:w}=Fo(x,b);q.useImperativeHandle(l,()=>({unmount:w,close:()=>b.setOpen(!1,ni(li))}),[w,b]);let T=x||S||u!=null;return(0,X.jsxs)(Br.Provider,{value:b,children:[u&&(0,X.jsx)(Mo,{handle:u,store:b}),T&&(0,X.jsx)(Ds,{store:b,parentContext:v?.context,isDrawer:p}),typeof n==`function`?n({payload:C}):n]})}var Ns=Uo(function(e){return Ms(`dialog`,e)}),Ps=q.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=Vr(),c=gi(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),Ze(`h2`,e,{ref:t,props:[{id:c},o]})}),Q=r();function Fs(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)(Ns,{"data-slot":`dialog`,...n}),t[2]=n,t[3]=r),r}function Is(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)(hs,{"data-slot":`dialog-portal`,...n}),t[2]=n,t[3]=r),r}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=De(`fixed inset-0 isolate z-50 bg-black/20 duration-100 supports-backdrop-filter:backdrop-blur-sm 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)(ti,{"data-slot":`dialog-overlay`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Rs(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)(Ls,{}),t[5]=s):s=t[5];let c;t[6]===r?c=t[7]:(c=De(`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-6 rounded-none bg-popover p-6 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-md 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)(ui,{"data-slot":`dialog-close`,render:(0,X.jsx)(Ue,{variant:`ghost`,className:`absolute top-5 right-5 bg-secondary`,size:`icon-sm`}),children:[(0,X.jsx)(lt,{}),(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)(Is,{children:[s,(0,X.jsxs)(fs,{"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 zs(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=De(`flex flex-col gap-2`,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 Bs(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=De(`text-lg leading-none font-semibold tracking-wider uppercase`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(Ps,{"data-slot":`dialog-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Vs(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=De(`mt-0.5 text-sm leading-relaxed text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(_i,{"data-slot":`dialog-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Hs(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=De(`pointer-events-none inline-flex h-5.5 w-fit min-w-5.5 items-center justify-center gap-1 rounded-none bg-muted px-1.5 font-sans text-xs font-medium text-muted-foreground select-none in-data-[slot=input-group]:bg-input 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 Us(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=De(`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 Ws(e,t){let n=t.x-e.x,r=t.y-e.y;return n*n+r*r>=625e-8}var Gs=v([`#da702c`,`#d0a215`,`#3aa99f`,`#4385be`,`#8b7ec8`,`#ce5d97`]),Ks=_({color:Gs,id:z(x,w(u(32))),name:z(x,w(u(32))),x:z(B,w(Ce({maximum:1,minimum:0}))),y:z(B,w(Ce({maximum:1,minimum:0})))}),qs=m(Ks),Js=Ks.mapFields(e=>({...e,id:e.id.check(O(/^(?!server-)/u))})),Ys=class extends ge(M(`portfolio.join`,{payload:_(z(Js.fields,g([`color`,`id`,`name`]))),stream:!0,success:qs}),M(`portfolio.move`,{payload:_(z(Js.fields,g([`color`,`id`,`x`,`y`])))})){},Xs=class extends se()(`@deslop/portfolio/lib/utils/RpcClient`,{group:Ys,protocol:rt(`@deslop/portfolio`)}){},Zs=`/assets/icon-yosI2-iT.svg`,Qs=[`1`,`2`,`3`,`4`,`5`,`6`],$s=[`profile`,`expertise`,`experience`,`projects`,`education`,`contact`],ec={lastFrameAt:0,targetX:0,targetY:0,viewportHeight:0,viewportWidth:0,x:0,y:0};function tc(e){return Math.floor(fe.defaultValue().nextDoubleUnsafe()*e)}function nc(){let e=`0123456789abcdef`;return z(ue(6,()=>e[tc(D(e))]??`0`),me(``))}function rc(e){let t=C(Gs.literals,t=>t!==e);return t[tc(N(t))]??Gs.literals[0]}function ic(){let e=sessionStorage.getItem(`portfolio.id`),t=sessionStorage.getItem(`portfolio.name`),n=Gs.literals[tc(N(Gs.literals))]??Gs.literals[0];if(E(e)&&E(t))return{color:n,id:e,name:t};let r=nc(),i={color:n,id:`v-${r}`,name:`Guest-${z(r,p(0,3))}`};return sessionStorage.setItem(`portfolio.id`,i.id),sessionStorage.setItem(`portfolio.name`,i.name),i}var $=ic(),ac=ye(Xs.runtime.atom(z(Xs,re(e=>e(`portfolio.join`,$)),T,Se(f(`2 seconds`)),d(()=>({trails:[],visitors:[]}),(e,t)=>{let n=ve(U(e.visitors,e=>be(e.id,e.color,e.x,e.y))),r={trails:oe(k(e.trails,C(t,e=>!le(n,be(e.id,e.color,e.x,e.y)))),180),visitors:t};return be(r,[r])}))));function oc(e,t,n){e.style.setProperty(`--cursor-transform`,`translate3d(${t}px, ${n}px, 0)`)}function sc(e,t){return{lastFrameAt:0,targetX:e.x,targetY:e.y,viewportHeight:t.height,viewportWidth:t.width,x:e.x,y:e.y}}function cc(e){return Math.abs(e.target-e.position)<.3?e.target:V({maximum:e.maximum,minimum:0})(e.position+(e.target-e.position)*e.catchUp)}function lc(e,t){let n=A(e.lastFrameAt>0,{onFalse:()=>16,onTrue:()=>V({maximum:64,minimum:8})(t-e.lastFrameAt)}),r=e.targetX-e.x,i=e.targetY-e.y,a=ie(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:A(o,{onFalse:()=>cc({catchUp:a,maximum:e.viewportWidth,position:e.x,target:e.targetX}),onTrue:()=>e.targetX}),y:A(o,{onFalse:()=>cc({catchUp:a,maximum:e.viewportHeight,position:e.y,target:e.targetY}),onTrue:()=>e.targetY})}}function uc(e,t,n){let r={x:t.x*n.width,y:t.y*n.height};return e.viewportWidth!==n.width||e.viewportHeight!==n.height?sc(r,n):e.targetX===r.x&&e.targetY===r.y?e:{...e,targetX:r.x,targetY:r.y}}function dc(e,t){t(requestAnimationFrame(()=>{e()?dc(e,t):t(0)}))}function fc(e){return addEventListener(`resize`,e),()=>{removeEventListener(`resize`,e)}}function pc(e){let t=(0,Q.c)(13),n;t[0]===e.number?n=t[1]:(n=(0,X.jsx)(`span`,{"aria-hidden":!0,className:`text-muted-foreground font-mono text-xs tabular-nums`,children:e.number}),t[0]=e.number,t[1]=n);let r;t[2]!==e.id||t[3]!==e.label?(r=(0,X.jsx)(`h2`,{id:e.id,className:`tracking-label text-xs font-semibold uppercase`,children:e.label}),t[2]=e.id,t[3]=e.label,t[4]=r):r=t[4];let i;t[5]!==n||t[6]!==r?(i=(0,X.jsxs)(`div`,{className:`flex items-baseline gap-3`,children:[n,r]}),t[5]=n,t[6]=r,t[7]=i):i=t[7];let a;t[8]===e.meta?a=t[9]:(a=h(e.meta)&&(0,X.jsx)(`span`,{className:`text-muted-foreground text-right font-mono text-xs tabular-nums`,children:e.meta}),t[8]=e.meta,t[9]=a);let o;return t[10]!==i||t[11]!==a?(o=(0,X.jsxs)(`div`,{className:`border-border flex items-center justify-between gap-4 border-t pt-3 pb-5`,children:[i,a]}),t[10]=i,t[11]=a,t[12]=o):o=t[12],o}function mc(e){let t=(0,Q.c)(14),n=e.id,r;t[0]===e.className?r=t[1]:(r=De(`relative z-10 mx-auto w-full max-w-3xl px-6 select-text sm:px-8`,e.className),t[0]=e.className,t[1]=r);let i;t[2]!==e.id||t[3]!==e.label||t[4]!==e.meta||t[5]!==e.number?(i=(0,X.jsx)(pc,{id:e.id,label:e.label,meta:e.meta,number:e.number}),t[2]=e.id,t[3]=e.label,t[4]=e.meta,t[5]=e.number,t[6]=i):i=t[6];let a;t[7]!==e.children||t[8]!==i?(a=(0,X.jsxs)(`div`,{className:`bg-background`,children:[i,e.children]}),t[7]=e.children,t[8]=i,t[9]=a):a=t[9];let o;return t[10]!==e.id||t[11]!==r||t[12]!==a?(o=(0,X.jsx)(`section`,{"aria-labelledby":n,className:r,children:a}),t[10]=e.id,t[11]=r,t[12]=a,t[13]=o):o=t[13],o}function hc(e){let t=(0,Q.c)(11),n,r,i,a;if(t[0]!==e.trails||t[1]!==e.viewport){let s=o();I(e.trails,he(),(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=z(t,R(n.id),j);if(ae(i))return S(s,{color:r.trail.color,x:r.col*26+1,y:r.row*26+1}),P(t,n.id,r);let a=l(Math.abs(r.col-i.col),Math.abs(r.row-i.row));for(let e of ue(a+1,c)){let t=A(a===0,{onFalse:()=>e/a,onTrue:_c}),n=y(i.col+(r.col-i.col)*t,0),o=y(i.row+(r.row-i.row)*t,0),c=A(t<1,{onFalse:()=>r.trail.color,onTrue:()=>i.trail.color});S(s,{color:c,x:n*26+1,y:o*26+1})}return P(t,n.id,r)}),n=!0,r=`pointer-events-none fixed inset-0 z-1 size-full print:hidden`,i=`crispEdges`,a=U(L(s),gc),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 gc(e,t){return(0,X.jsx)(`rect`,{x:e.x,y:e.y,width:24,height:24,fill:e.color,fillOpacity:.22},t)}function _c(){return 1}function vc(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=De(`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)(st,{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-none border border-(--cursor-color) px-1.5 py-0.5 font-mono text-xs leading-none whitespace-nowrap`,children:e.label}),t[6]=e.label,t[7]=n),a=A(e.show===!1,{onFalse:n,onTrue:yc}),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 yc(){return null}function bc(e){return e.length*8+28}function xc(e,t,n){let r=e*t.width,i=bc(n),a=(t.width-768)/2,o=(t.width+768)/2;return r<a?r+i>a:r<=o||r-i<o}function Sc(e){let t=(0,Q.c)(17),n=(0,q.useRef)(null),r=(0,q.useRef)(ec),i=(0,q.useRef)(0),a,o;t[0]!==e.cursor||t[1]!==e.viewport?(a=()=>{r.current=uc(r.current,e.cursor,e.viewport),n.current!==null&&oc(n.current,r.current.x,r.current.y);function t(e){n.current!==null&&(r.current=lc(r.current,e),oc(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,q.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+bc(e.cursor.name)>e.viewport.width-8,l=e.cursor.name,u;t[6]!==e.cursor.name||t[7]!==e.cursor.x||t[8]!==e.viewport?(u=xc(e.cursor.x,e.viewport,e.cursor.name),t[6]=e.cursor.name,t[7]=e.cursor.x,t[8]=e.viewport,t[9]=u):u=t[9];let d=!u,f;t[10]!==e.cursor.name||t[11]!==c||t[12]!==d?(f=(0,X.jsx)(vc,{flip:c,label:l,show:d}),t[10]=e.cursor.name,t[11]=c,t[12]=d,t[13]=f):f=t[13];let p;return t[14]!==s||t[15]!==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[14]=s,t[15]=f,t[16]=p):p=t[16],p}function Cc(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+bc(`You`)>e.viewport.width-8,a;t[3]!==e.cursor.x||t[4]!==e.viewport?(a=xc(e.cursor.x,e.viewport,`You`),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)(vc,{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 wc(e){let t=(0,Q.c)(12),n=e.external===!0,r=e.href,i;t[0]===n?i=t[1]:(i=A(n,{onFalse:Oc,onTrue:Dc}),t[0]=n,t[1]=i);let a;t[2]===n?a=t[3]:(a=A(n,{onFalse:Ec,onTrue:Tc}),t[2]=n,t[3]=a);let o;t[4]===n?o=t[5]:(o=n&&(0,X.jsx)(at,{className:`size-3.5`}),t[4]=n,t[5]=o);let s;return t[6]!==e.children||t[7]!==e.href||t[8]!==i||t[9]!==a||t[10]!==o?(s=(0,X.jsxs)(`a`,{href:r,target:i,rel:a,className:`text-foreground decoration-border hover:text-primary hover:decoration-primary inline-flex h-11 min-w-11 items-center gap-1.5 text-sm underline underline-offset-4 transition-colors sm:h-auto sm:pb-0.5`,children:[e.children,o]}),t[6]=e.children,t[7]=e.href,t[8]=i,t[9]=a,t[10]=o,t[11]=s):s=t[11],s}function Tc(){return`noopener noreferrer`}function Ec(){}function Dc(){return`_blank`}function Oc(){}function kc(){let e=(0,Q.c)(5),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,X.jsxs)(`div`,{className:`border-border flex items-center justify-between gap-4 border-t pt-3 pb-10 sm:pb-14`,children:[(0,X.jsxs)(`div`,{className:`flex items-baseline gap-3`,children:[(0,X.jsx)(`span`,{"aria-hidden":!0,className:`text-muted-foreground font-mono text-xs tabular-nums`,children:`01`}),(0,X.jsx)(`p`,{className:`tracking-label text-xs font-semibold uppercase`,children:`Profile`})]}),(0,X.jsx)(`img`,{alt:``,className:`pixelated size-6 shrink-0 opacity-90 sm:size-7`,src:Zs})]}),e[0]=t):t=e[0];let n,r,i;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsxs)(`div`,{className:`flex flex-wrap items-baseline gap-x-4 gap-y-1`,children:[(0,X.jsx)(`p`,{className:`text-sm font-medium`,children:Ne.title}),(0,X.jsx)(`p`,{className:`text-muted-foreground font-mono text-xs`,children:Ne.location})]}),r=(0,X.jsxs)(`h1`,{id:`profile-title`,className:`font-heading mt-4 text-5xl leading-none tracking-tight text-balance sm:text-7xl`,children:[Ne.firstName,` `,Ne.lastName]}),i=(0,X.jsx)(`p`,{className:`text-muted-foreground mt-6 max-w-xl text-base leading-relaxed text-pretty sm:text-lg`,children:Fe}),e[1]=n,e[2]=r,e[3]=i):(n=e[1],r=e[2],i=e[3]);let a;return e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,X.jsx)(`section`,{"aria-labelledby":`profile-title`,className:`relative z-10 mx-auto w-full max-w-3xl px-6 pt-10 pb-12 select-text sm:px-8 sm:pt-16 sm:pb-16`,children:(0,X.jsxs)(`div`,{className:`bg-background`,children:[t,n,r,i,(0,X.jsxs)(`div`,{className:`mt-8 flex flex-col items-start sm:flex-row sm:flex-wrap sm:items-center sm:gap-x-7`,children:[(0,X.jsx)(wc,{href:`#section-projects`,children:`Selected work`}),(0,X.jsx)(wc,{href:Xe.email.href,children:Xe.email.value}),(0,X.jsx)(wc,{external:!0,href:Xe.github.href,children:Xe.github.value}),(0,X.jsx)(wc,{href:`/cv`,children:`CV`})]})]})}),e[4]=a):a=e[4],a}function Ac(){let e=(0,Q.c)(4),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=N(Ye),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=U(Ye,Mc),e[1]=n):n=e[1];let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,X.jsx)(`dt`,{className:`tracking-label text-muted-foreground w-36 shrink-0 text-xs font-semibold uppercase`,children:`Languages`}),e[2]=r):r=e[2];let i;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,X.jsx)(mc,{className:`pb-12 sm:pb-14`,id:`section-skills`,label:`Expertise`,meta:`${t} disciplines`,number:`04`,children:(0,X.jsxs)(`dl`,{className:`divide-border flex flex-col divide-y`,children:[n,(0,X.jsxs)(`div`,{className:`flex flex-col gap-1 py-3.5 sm:flex-row sm:gap-8`,children:[r,(0,X.jsx)(`dd`,{className:`text-foreground/90 text-sm leading-relaxed`,children:z(Be,U(jc),me(` · `))})]})]})}),e[3]=i):i=e[3],i}function jc(e){return`${e.language} (${e.level})`}function Mc(e){return(0,X.jsxs)(`div`,{className:`flex flex-col gap-1 py-3.5 sm:flex-row sm:gap-8`,children:[(0,X.jsx)(`dt`,{className:`tracking-label text-muted-foreground w-36 shrink-0 text-xs font-semibold uppercase`,children:e.area}),(0,X.jsx)(`dd`,{className:`text-foreground/90 text-sm leading-relaxed`,children:e.items})]},e.area)}function Nc(){let e=(0,Q.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=N(Ke),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsx)(mc,{className:`pb-12 sm:pb-14`,id:`section-projects`,label:`Selected work`,meta:`${t} selected`,number:`02`,children:(0,X.jsx)(`ol`,{className:`divide-border flex flex-col divide-y`,children:U(Ke,Pc)})}),e[1]=n):n=e[1],n}function Pc(e){return(0,X.jsxs)(`li`,{className:`py-5`,children:[(0,X.jsxs)(`div`,{className:`flex items-baseline justify-between gap-4`,children:[(0,X.jsx)(`h3`,{className:`text-base font-semibold tracking-tight`,children:e.name}),(0,X.jsxs)(`a`,{href:e.href,target:`_blank`,rel:`noopener noreferrer`,"aria-label":`View ${e.name} on GitHub`,className:`text-muted-foreground hover:text-primary tracking-label -mr-2 inline-flex h-11 items-center gap-1 px-2 text-xs font-semibold uppercase transition-colors sm:h-auto sm:py-0`,children:[`GitHub`,(0,X.jsx)(at,{className:`size-3.5`})]})]}),(0,X.jsx)(`p`,{className:`text-muted-foreground mt-0.5 text-sm`,children:e.role}),(0,X.jsx)(`p`,{className:`text-foreground/90 mt-2 text-sm leading-relaxed`,children:e.description}),(0,X.jsx)(`p`,{className:`text-muted-foreground mt-2 font-mono text-xs`,children:e.stack})]},e.name)}function Fc(){let e=(0,Q.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=N(Je),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsx)(mc,{className:`pb-12 sm:pb-14`,id:`section-experience`,label:`Experience`,meta:`${t} roles`,number:`03`,children:(0,X.jsx)(`ol`,{className:`divide-border flex flex-col divide-y`,children:U(Je,Ic)})}),e[1]=n):n=e[1],n}function Ic(e){return(0,X.jsxs)(`li`,{className:`flex flex-col gap-2 py-5 sm:flex-row sm:gap-8`,children:[(0,X.jsxs)(`div`,{className:`text-muted-foreground flex flex-row flex-wrap items-baseline gap-x-2 font-mono text-xs sm:w-40 sm:shrink-0 sm:flex-col sm:items-start sm:gap-1`,children:[(0,X.jsx)(`p`,{className:`whitespace-nowrap tabular-nums`,children:e.period}),h(e.location)&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`span`,{"aria-hidden":!0,className:`sm:hidden`,children:`·`}),(0,X.jsx)(`p`,{className:`whitespace-nowrap`,children:e.location})]})]}),(0,X.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-2`,children:[(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`h3`,{className:`text-sm font-semibold tracking-tight`,children:e.company}),(0,X.jsxs)(`p`,{className:`text-muted-foreground text-sm`,children:[e.role,h(e.note)&&(0,X.jsxs)(`span`,{className:`italic`,children:[` · `,e.note]})]})]}),(0,X.jsx)(`ul`,{className:`flex flex-col gap-1.5`,children:U(e.highlights,Lc)})]})]},e.company)}function Lc(e){return(0,X.jsxs)(`li`,{className:`text-foreground/90 flex gap-3 text-sm leading-relaxed`,children:[(0,X.jsx)(`span`,{"aria-hidden":!0,className:`bg-muted-foreground/60 mt-2.5 h-px w-3 shrink-0`}),(0,X.jsx)(`span`,{children:e})]},e)}function Rc(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,X.jsx)(mc,{className:`pb-12 sm:pb-14`,id:`section-education`,label:`Education`,number:`05`,children:(0,X.jsx)(`ol`,{className:`divide-border flex flex-col divide-y`,children:U(Ge,zc)})}),e[0]=t):t=e[0],t}function zc(e){return(0,X.jsxs)(`li`,{className:`flex flex-col gap-1.5 py-5 sm:flex-row sm:gap-8`,children:[(0,X.jsx)(`p`,{className:`text-muted-foreground font-mono text-xs whitespace-nowrap tabular-nums sm:w-40 sm:shrink-0`,children:e.period}),(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`h3`,{className:`text-sm font-semibold tracking-tight`,children:e.degree}),(0,X.jsxs)(`p`,{className:`text-muted-foreground mt-0.5 text-sm`,children:[e.school,h(e.grade)&&(0,X.jsxs)(X.Fragment,{children:[` · `,(0,X.jsx)(`span`,{className:`font-mono text-xs tabular-nums`,children:e.grade})]})]})]})]},e.school)}function Bc(){let e=(0,Q.c)(1),t;if(e[0]===Symbol.for(`react.memo_cache_sentinel`)){let n=[Xe.email,Xe.pec,Xe.phone,Xe.github,{href:`/cv`,label:`CV`,value:`${Ne.portfolio}/cv`}];t=(0,X.jsxs)(mc,{className:`pb-24 sm:pb-28`,id:`section-contact`,label:`Contact`,meta:`${N(n)} ways`,number:`06`,children:[(0,X.jsx)(`div`,{className:`flex flex-col`,children:U(n,Vc)}),(0,X.jsxs)(`p`,{className:`text-muted-foreground mt-10 font-mono text-xs`,children:[`© 2026 `,Ne.firstName,` `,Ne.lastName,` · VAT `,Ne.vat]})]}),e[0]=t}else t=e[0];return t}function Vc(e){let t=b(`http`)(e.href);return(0,X.jsxs)(`a`,{href:e.href,className:`group border-border hover:text-primary flex min-h-11 items-center justify-between gap-6 border-b py-2.5 text-sm transition-colors last:border-b-0`,target:A(t,{onFalse:Gc,onTrue:Wc}),rel:A(t,{onFalse:Uc,onTrue:Hc}),children:[(0,X.jsx)(`span`,{className:`tracking-label text-muted-foreground group-hover:text-primary text-xs font-semibold uppercase`,children:e.label}),(0,X.jsx)(`span`,{className:`group-hover:text-primary text-right font-mono text-xs break-all`,children:e.value})]},e.label)}function Hc(){return`noopener noreferrer`}function Uc(){}function Wc(){return`_blank`}function Gc(){}function Kc(e){let t=(0,Q.c)(5),n;t[0]===e.label?n=t[1]:(n=(0,X.jsx)(`span`,{className:`text-sm`,children:e.label}),t[0]=e.label,t[1]=n);let r;return t[2]!==e.keys||t[3]!==n?(r=(0,X.jsxs)(`div`,{className:`flex items-center justify-between gap-6 py-3`,children:[n,e.keys]}),t[2]=e.keys,t[3]=n,t[4]=r):r=t[4],r}function qc(e){let t=(0,Q.c)(11),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsxs)(zs,{children:[(0,X.jsx)(Bs,{children:`Keyboard`}),(0,X.jsx)(Vs,{children:`The page moves without a mouse.`})]}),t[0]=n):n=t[0];let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,X.jsx)(Kc,{keys:(0,X.jsxs)(Us,{children:[(0,X.jsx)(Hs,{children:`j`}),(0,X.jsx)(Hs,{children:`k`})]}),label:`Next / previous section`}),t[1]=r):r=t[1];let i;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,X.jsx)(Hs,{children:`1`}),t[2]=i):i=t[2];let a;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,X.jsxs)(Us,{children:[i,`–`,(0,X.jsx)(Hs,{children:`6`})]}),t[3]=a):a=t[3];let o;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,X.jsx)(Kc,{keys:a,label:(0,X.jsxs)(`span`,{className:`flex flex-col gap-1`,children:[`Jump to a section`,(0,X.jsx)(`span`,{className:`text-muted-foreground font-mono text-xs`,children:z(U($s,Jc),me(` · `))})]})}),t[4]=o):o=t[4];let s;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,X.jsx)(Kc,{keys:(0,X.jsx)(Hs,{children:`r`}),label:`Change cursor color`}),t[5]=s):s=t[5];let c;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,X.jsx)(Kc,{keys:(0,X.jsx)(Hs,{children:`?`}),label:`Toggle this panel`}),t[6]=c):c=t[6];let l;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,X.jsxs)(Rs,{className:`sm:max-w-sm`,children:[n,(0,X.jsxs)(`div`,{className:`divide-border flex flex-col divide-y`,children:[r,o,s,c,(0,X.jsx)(Kc,{keys:(0,X.jsx)(Hs,{children:`Esc`}),label:`Close this panel`})]})]}),t[7]=l):l=t[7];let u;return t[8]!==e.onOpenChange||t[9]!==e.open?(u=(0,X.jsx)(Fs,{open:e.open,onOpenChange:e.onOpenChange,children:l}),t[8]=e.onOpenChange,t[9]=e.open,t[10]=u):u=t[10],u}function Jc(e,t){return`${t+1} ${e}`}function Yc(e){let t=(0,Q.c)(16),n;t[0]===e.visitors?n=t[1]:(n=z(s(e.visitors,el),F({onNone:$c,onSome:Qc})),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=N(e.visitors),t[4]=e.visitors,t[5]=i);let a;t[6]===i?a=t[7]:(a=(0,X.jsx)(`span`,{className:`text-foreground tabular-nums`,children:i}),t[6]=i,t[7]=a);let o;t[8]===e.visitors?o=t[9]:(o=A(N(e.visitors)===1,{onFalse:Zc,onTrue:Xc}),t[8]=e.visitors,t[9]=o);let c;t[10]===o?c=t[11]:(c=(0,X.jsx)(`span`,{className:`text-muted-foreground`,children:o}),t[10]=o,t[11]=c);let l;return t[12]!==r||t[13]!==a||t[14]!==c?(l=(0,X.jsxs)(X.Fragment,{children:[r,a,c]}),t[12]=r,t[13]=a,t[14]=c,t[15]=l):l=t[15],l}function Xc(){return`visitor`}function Zc(){return`visitors`}function Qc(e){return e.color}function $c(){return $.color}function el(e){return e.id===$.id}function tl(e){let t=(0,Q.c)(12),n;if(t[0]!==e.state||t[1]!==e.visitors){let r;t[3]===e.state?r=t[4]:(r=()=>(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`span`,{className:`bg-muted-foreground/50 size-1.5 rounded-full`}),(0,X.jsx)(`span`,{className:`text-muted-foreground`,children:A(e.state===`offline`,{onFalse:rl,onTrue:nl})})]}),t[3]=e.state,t[4]=r);let i;t[5]===e.visitors?i=t[6]:(i=()=>(0,X.jsx)(Yc,{visitors:e.visitors??[]}),t[5]=e.visitors,t[6]=i),n=A(e.state===`live`&&h(e.visitors),{onFalse:r,onTrue:i}),t[0]=e.state,t[1]=e.visitors,t[2]=n}else n=t[2];let r;t[7]===n?r=t[8]:(r=(0,X.jsx)(`span`,{className:`flex items-center gap-2`,children:n}),t[7]=n,t[8]=r);let i;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,X.jsx)(`span`,{className:`text-muted-foreground max-sm:hidden`,children:`j/k · ?`}),t[9]=i):i=t[9];let a;return t[10]===r?a=t[11]:(a=(0,X.jsxs)(`div`,{className:`border-border bg-background/95 pb-safe-bottom pointer-events-none fixed inset-x-0 bottom-0 z-50 flex min-h-10 items-center justify-between border-t px-3 font-mono text-xs backdrop-blur sm:px-4 print:hidden`,children:[r,i]}),t[10]=r,t[11]=a),a}function nl(){return`presence unavailable`}function rl(){return`presence connecting`}function il(e){let t=(0,Q.c)(23),n=Ot(ac),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 print:hidden`}),t[0]=r):r=t[0];let i;t[1]!==e.viewport||t[2]!==n.value.trails?(i=(0,X.jsx)(hc,{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=ne(s(n.value.visitors,sl),ol),t[4]=n.value.visitors,t[5]=a);let o;t[6]!==e.viewport||t[7]!==a?(o=(0,X.jsx)(`div`,{className:`hidden print:hidden [@media(hover:hover)_and_(pointer:fine)]:contents`,children:(0,X.jsx)(Cc,{cursor:a,viewport:e.viewport})}),t[6]=e.viewport,t[7]=a,t[8]=o):o=t[8];let c;if(t[9]!==e.viewport||t[10]!==n.value.visitors){let r;t[12]===e.viewport?r=t[13]:(r=t=>A(t.id===$.id,{onFalse:()=>(0,X.jsx)(Sc,{cursor:t,viewport:e.viewport},t.id),onTrue:al}),t[12]=e.viewport,t[13]=r),c=U(n.value.visitors,r),t[9]=e.viewport,t[10]=n.value.visitors,t[11]=c}else c=t[11];let l;t[14]===c?l=t[15]:(l=(0,X.jsx)(`div`,{className:`max-sm:hidden print:hidden`,children:(0,X.jsx)(`div`,{className:`hidden [@media(hover:hover)_and_(pointer:fine)]:contents`,children:c})}),t[14]=c,t[15]=l);let u;t[16]===n.value.visitors?u=t[17]:(u=(0,X.jsx)(tl,{state:`live`,visitors:n.value.visitors}),t[16]=n.value.visitors,t[17]=u);let d;return t[18]!==i||t[19]!==o||t[20]!==l||t[21]!==u?(d=(0,X.jsxs)(X.Fragment,{children:[r,i,o,l,u]}),t[18]=i,t[19]=o,t[20]=l,t[21]=u,t[22]=d):d=t[22],d}function al(){return null}function ol(){return{color:$.color,id:$.id,name:$.name,x:.5,y:.5}}function sl(e){return e.id===$.id}function cl(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,X.jsx)(tl,{state:`offline`}),e[0]=t):t=e[0],t}function ll(){let e=(0,Q.c)(57),t=(0,q.useSyncExternalStore)(fc,vl,_l),n=(0,q.useSyncExternalStore)(fc,gl,hl),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,q.useRef)(null),o=(0,q.useRef)(0),s;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(s=Xs.mutation(`portfolio.move`),e[3]=s):s=e[3];let c=wt(s),u=(0,q.useRef)(0),d=(0,q.useRef)(null),f=(0,q.useRef)(null),p=(0,q.useRef)($.color),[m,h]=(0,q.useState)(!1),g,_;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=()=>()=>{cancelAnimationFrame(u.current)},_=[],e[4]=g,e[5]=_):(g=e[4],_=e[5]),(0,q.useEffect)(g,_);let v=function(){return ce(a.current?.querySelectorAll(`:scope > section`)??[])},y=function(e){let t=v()[e];ae(t)||(t.scrollIntoView({behavior:`auto`,block:`start`}),o.current=e)},b;e[6]===c?b=e[7]:(b=function(e){f.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]=b);let x=b,S;e[8]===x?S=e[9]:(S=function(){p.current=rc(p.current),x(d.current??f.current??{x:.5,y:.5})},e[8]=x,e[9]=S);let C=S,w;e[10]===x?w=e[11]:(w=function(){if(d.current!==null&&f.current!==null){if(!Ws(f.current,d.current))return!1;if(performance.now()-f.current.sentAt<50)return!0}return d.current!==null&&x(d.current),!1},e[10]=x,e[11]=w);let T=w,E;e[12]!==T||e[13]!==i?(E=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&&(d.current={x:V({maximum:.999999,minimum:0})(e.clientX/i.width),y:V({maximum:.999999,minimum:0})(e.clientY/i.height)},u.current===0&&dc(T,e=>{u.current=e})))},e[12]=T,e[13]=i,e[14]=E):E=e[14];let D=E,ee;e[15]===C?ee=e[16]:(ee={callback:C,hotkey:`R`},e[15]=C,e[16]=ee);let O;e[17]===h?O=e[18]:(O=()=>{h(ml)},e[17]=h,e[18]=O);let k;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(k={key:`?`,shift:!0},e[19]=k):k=e[19];let j;e[20]===O?j=e[21]:(j={callback:O,hotkey:k},e[20]=O,e[21]=j),zr([{callback:()=>{y(ie(o.current+1,Qs.length-1))},hotkey:`J`},{callback:()=>{y(l(o.current-1,0))},hotkey:`K`},...U(Qs,(e,t)=>({callback:()=>{y(t)},hotkey:e})),ee,j]);let M;e[22]!==o||e[23]!==v?(M=e=>{o.current=A(e.currentTarget.scrollTop+e.currentTarget.clientHeight>=e.currentTarget.scrollHeight-2,{onFalse:()=>z(v(),_e(t=>t.offsetTop<=e.currentTarget.scrollTop+2),ne(fl)),onTrue:()=>l(0,v().length-1)})},e[22]=o,e[23]=v,e[24]=M):M=e[24];let N,P,F,I,L,te;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,X.jsx)(kc,{}),P=(0,X.jsx)(Nc,{}),F=(0,X.jsx)(Fc,{}),I=(0,X.jsx)(Ac,{}),L=(0,X.jsx)(Rc,{}),te=(0,X.jsx)(Bc,{}),e[25]=N,e[26]=P,e[27]=F,e[28]=I,e[29]=L,e[30]=te):(N=e[25],P=e[26],F=e[27],I=e[28],L=e[29],te=e[30]);let re;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(re={color:$.color,id:$.id,name:$.name,x:.5,y:.5},e[31]=re):re=e[31];let R;e[32]===i?R=e[33]:(R=(0,X.jsx)(`div`,{className:`hidden print:hidden [@media(hover:hover)_and_(pointer:fine)]:contents`,children:(0,X.jsx)(Cc,{cursor:re,viewport:i})}),e[32]=i,e[33]=R);let B;e[34]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,X.jsx)(tl,{state:`connecting`}),e[34]=B):B=e[34];let H;e[35]===R?H=e[36]:(H=(0,X.jsxs)(X.Fragment,{children:[R,B]}),e[35]=R,e[36]=H);let oe;e[37]===i?oe=e[38]:(oe=(0,X.jsx)(il,{viewport:i}),e[37]=i,e[38]=oe);let se;e[39]!==H||e[40]!==oe?(se=(0,X.jsx)(et,{getResetKey:dl,errorComponent:cl,children:(0,X.jsx)(q.Suspense,{fallback:H,children:oe})}),e[39]=H,e[40]=oe,e[41]=se):se=e[41];let le;e[42]===h?le=e[43]:(le=()=>{h(ul)},e[42]=h,e[43]=le);let ue;e[44]!==m||e[45]!==le?(ue=(0,X.jsx)(Ue,{variant:`outline`,size:`icon`,"aria-expanded":m,"aria-haspopup":`dialog`,"aria-label":`Toggle keyboard shortcuts`,onClick:le,className:`mb-safe-bottom mr-safe-right fixed right-3 bottom-14 z-50 max-sm:hidden sm:right-4 print:hidden`,children:`?`}),e[44]=m,e[45]=le,e[46]=ue):ue=e[46];let de;e[47]!==h||e[48]!==m?(de=(0,X.jsx)(qc,{open:m,onOpenChange:h}),e[47]=h,e[48]=m,e[49]=de):de=e[49];let fe;return e[50]!==a||e[51]!==M||e[52]!==se||e[53]!==ue||e[54]!==de||e[55]!==D?(fe=(0,X.jsxs)(`div`,{ref:a,"aria-label":`Portfolio`,role:`region`,className:`focus-visible:ring-border relative min-h-0 flex-1 overflow-x-hidden overflow-y-scroll focus-visible:ring-1 focus-visible:ring-inset print:h-auto print:overflow-visible [@media(hover:hover)_and_(pointer:fine)]:cursor-none`,onKeyDown:pl,onPointerMove:D,onScroll:M,tabIndex:0,children:[N,P,F,I,L,te,se,ue,de]}),e[50]=a,e[51]=M,e[52]=se,e[53]=ue,e[54]=de,e[55]=D,e[56]=fe):fe=e[56],fe}function ul(e){return!e}function dl(){return`presence`}function fl(){return 0}function pl(e){if(e.target!==e.currentTarget)return;let t=e.currentTarget.clientHeight*.9;if(e.key===`Home`){e.preventDefault(),e.currentTarget.scrollTo({top:0});return}if(e.key===`End`){e.preventDefault(),e.currentTarget.scrollTo({top:e.currentTarget.scrollHeight});return}if(e.key===` `){e.preventDefault(),e.currentTarget.scrollBy({top:A(e.shiftKey,{onFalse:()=>t,onTrue:()=>-t})});return}let n={ArrowDown:80,ArrowUp:-80,PageDown:t,PageUp:-t}[e.key];n!==void 0&&(e.preventDefault(),e.currentTarget.scrollBy({top:n}))}function ml(e){return!e}function hl(){return 0}function gl(){return window.innerWidth}function _l(){return 0}function vl(){return window.innerHeight}export{ll as component};
@@ -1 +1 @@
1
- import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{a as t,n,o as r}from"./react-COyt-gOi.js";import{$t as i,Cn as a,Jt as o,On as s,St as c,nn as l,rn as u}from"./effect-DM4IaHtK.js";import{P as d,a as f,c as p,i as m,l as h,n as g,o as _,r as v,s as y,t as b}from"./profile-CAmdNQBr.js";var x=e(r(),1),S=new Map([[`bold`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M214.67,68H204V40a12,12,0,0,0-12-12H64A12,12,0,0,0,52,40V68H41.33C25.16,68,12,80.56,12,96v80a12,12,0,0,0,12,12H52v28a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V188h28a12,12,0,0,0,12-12V96C244,80.56,230.84,68,214.67,68ZM76,52H180V68H76ZM180,204H76V172H180Zm40-40H204v-4a12,12,0,0,0-12-12H64a12,12,0,0,0-12,12v4H36V96c0-2.17,2.44-4,5.33-4H214.67c2.89,0,5.33,1.83,5.33,4Zm-16-44a16,16,0,1,1-16-16A16,16,0,0,1,204,120Z`}))],[`duotone`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M232,96v80H192V152H64v24H24V96c0-8.84,7.76-16,17.33-16H214.67C224.24,80,232,87.16,232,96Z`,opacity:`0.2`}),x.createElement(`path`,{d:`M214.67,72H200V40a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8V72H41.33C27.36,72,16,82.77,16,96v80a8,8,0,0,0,8,8H56v32a8,8,0,0,0,8,8H192a8,8,0,0,0,8-8V184h32a8,8,0,0,0,8-8V96C240,82.77,228.64,72,214.67,72ZM72,48H184V72H72ZM184,208H72V160H184Zm40-40H200V152a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8v16H32V96c0-4.41,4.19-8,9.33-8H214.67c5.14,0,9.33,3.59,9.33,8Zm-24-52a12,12,0,1,1-12-12A12,12,0,0,1,200,116Z`}))],[`fill`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M240,96v80a8,8,0,0,1-8,8H200v32a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V184H24a8,8,0,0,1-8-8V96c0-13.23,11.36-24,25.33-24H56V40a8,8,0,0,1,8-8H192a8,8,0,0,1,8,8V72h14.67C228.64,72,240,82.77,240,96ZM72,72H184V48H72Zm112,88H72v48H184Zm16-44a12,12,0,1,0-12,12A12,12,0,0,0,200,116Z`}))],[`light`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M214.67,74H198V40a6,6,0,0,0-6-6H64a6,6,0,0,0-6,6V74H41.33C28.47,74,18,83.87,18,96v80a6,6,0,0,0,6,6H58v34a6,6,0,0,0,6,6H192a6,6,0,0,0,6-6V182h34a6,6,0,0,0,6-6V96C238,83.87,227.53,74,214.67,74ZM70,46H186V74H70ZM186,210H70V158H186Zm40-40H198V152a6,6,0,0,0-6-6H64a6,6,0,0,0-6,6v18H30V96c0-5.51,5.08-10,11.33-10H214.67C220.92,86,226,90.49,226,96Zm-28-54a10,10,0,1,1-10-10A10,10,0,0,1,198,116Z`}))],[`regular`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M214.67,72H200V40a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8V72H41.33C27.36,72,16,82.77,16,96v80a8,8,0,0,0,8,8H56v32a8,8,0,0,0,8,8H192a8,8,0,0,0,8-8V184h32a8,8,0,0,0,8-8V96C240,82.77,228.64,72,214.67,72ZM72,48H184V72H72ZM184,208H72V160H184Zm40-40H200V152a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8v16H32V96c0-4.41,4.19-8,9.33-8H214.67c5.14,0,9.33,3.59,9.33,8Zm-24-52a12,12,0,1,1-12-12A12,12,0,0,1,200,116Z`}))],[`thin`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M214.67,76H196V40a4,4,0,0,0-4-4H64a4,4,0,0,0-4,4V76H41.33C29.57,76,20,85,20,96v80a4,4,0,0,0,4,4H60v36a4,4,0,0,0,4,4H192a4,4,0,0,0,4-4V180h36a4,4,0,0,0,4-4V96C236,85,226.43,76,214.67,76ZM68,44H188V76H68ZM188,212H68V156H188Zm40-40H196V152a4,4,0,0,0-4-4H64a4,4,0,0,0-4,4v20H28V96c0-6.62,6-12,13.33-12H214.67C222,84,228,89.38,228,96Zm-32-56a8,8,0,1,1-8-8A8,8,0,0,1,196,116Z`}))]]),C=x.forwardRef((e,t)=>x.createElement(d,{ref:t,...e,weights:S}));C.displayName=`PrinterIcon`;var w=n(),T=t();function E(e){let t=(0,w.c)(3),n;return t[0]!==e.contact.href||t[1]!==e.contact.value?(n=(0,T.jsx)(`a`,{href:e.contact.href,className:`hover:underline`,children:e.contact.value}),t[0]=e.contact.href,t[1]=e.contact.value,t[2]=n):n=t[2],n}function D(e){let t=(0,w.c)(5),n;t[0]===e.title?n=t[1]:(n=(0,T.jsx)(`h2`,{className:`text-foreground text-label tracking-label font-mono font-bold uppercase`,children:e.title}),t[0]=e.title,t[1]=n);let r;return t[2]!==e.children||t[3]!==n?(r=(0,T.jsxs)(`section`,{className:`flex flex-col gap-1`,children:[n,e.children]}),t[2]=e.children,t[3]=n,t[4]=r):r=t[4],r}function O(e){let t=(0,w.c)(15),n;t[0]===e.title?n=t[1]:(n=(0,T.jsx)(`strong`,{className:`font-semibold`,children:e.title}),t[0]=e.title,t[1]=n);let r;t[2]===e.details?r=t[3]:(r=u(e.details,k),t[2]=e.details,t[3]=r);let i;t[4]!==n||t[5]!==r?(i=(0,T.jsxs)(`h3`,{children:[n,r]}),t[4]=n,t[5]=r,t[6]=i):i=t[6];let a;t[7]===e.aside?a=t[8]:(a=(0,T.jsx)(`span`,{className:`text-foreground/70 text-label font-mono whitespace-nowrap`,children:e.aside}),t[7]=e.aside,t[8]=a);let o;t[9]!==i||t[10]!==a?(o=(0,T.jsxs)(`div`,{className:`flex flex-wrap items-baseline justify-between gap-x-4`,children:[i,a]}),t[9]=i,t[10]=a,t[11]=o):o=t[11];let s;return t[12]!==e.children||t[13]!==o?(s=(0,T.jsxs)(`div`,{className:`flex break-inside-avoid flex-col gap-0.5`,children:[o,e.children]}),t[12]=e.children,t[13]=o,t[14]=s):s=t[14],s}function k(e){return(0,T.jsxs)(`span`,{className:`text-foreground/70`,children:[` · `,e]},e)}function A(e){let t=(0,w.c)(4),n;t[0]===e.items?n=t[1]:(n=u(e.items,j),t[0]=e.items,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,T.jsx)(`ul`,{className:`flex flex-col gap-0.5`,children:n}),t[2]=n,t[3]=r),r}function j(e){return(0,T.jsxs)(`li`,{className:`flex gap-2.5`,children:[(0,T.jsx)(`span`,{"aria-hidden":!0,className:`border-foreground/75 mt-1.75 size-1 shrink-0 border-2`}),(0,T.jsx)(`span`,{children:e})]},e)}function M(){let e=(0,w.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,T.jsxs)(`svg`,{"aria-hidden":!0,className:`text-foreground pointer-events-none absolute inset-0 -z-1 size-full border-r border-current opacity-7`,children:[l(31,P),l(11,N)]}),e[0]=t):t=e[0],t}function N(e){return(0,T.jsx)(`line`,{x1:0,x2:`100%`,y1:e*26+.5,y2:e*26+.5,stroke:`currentColor`},`row-${e}`)}function P(e){return(0,T.jsx)(`line`,{x1:e*26+.5,x2:e*26+.5,y1:0,y2:`100%`,stroke:`currentColor`},`column-${e}`)}function F(){let e=(0,w.c)(19),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,T.jsxs)(`a`,{href:`/`,className:`text-muted-foreground hover:text-foreground mt-safe-top ml-safe-left fixed top-3 left-3 z-20 inline-flex h-11 items-center gap-1.5 font-mono text-xs transition-colors sm:h-9 print:hidden`,children:[(0,T.jsx)(`span`,{"aria-hidden":!0,children:`←`}),`Portfolio`]}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,T.jsx)(h,{variant:`outline`,size:`icon-lg`,"aria-label":`Print or save as PDF`,onClick:V,className:`mt-safe-top mr-safe-right fixed top-3 right-3 print:hidden`,children:(0,T.jsx)(C,{className:`size-4`})}),e[1]=n):n=e[1];let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,T.jsx)(M,{}),e[2]=r):r=e[2];let a;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,T.jsxs)(`h1`,{className:`tracking-name text-2xl leading-none font-extrabold uppercase`,children:[f.firstName,` `,(0,T.jsx)(`span`,{className:`text-foreground/55 tracking-label mt-0.5 block text-xl font-medium`,children:f.lastName})]}),e[3]=a):a=e[3];let o;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,T.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,T.jsxs)(`p`,{className:`text-label tracking-label flex items-center gap-2 whitespace-nowrap uppercase`,children:[(0,T.jsx)(`span`,{"aria-hidden":!0,className:`border-foreground size-2 border-4`}),f.title]}),(0,T.jsx)(`p`,{className:`font-document text-document`,children:p})]}),e[4]=o):o=e[4];let c,l,d;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,T.jsx)(E,{contact:b.phone}),l=(0,T.jsx)(`br`,{}),d=(0,T.jsx)(E,{contact:b.email}),e[5]=c,e[6]=l,e[7]=d):(c=e[5],l=e[6],d=e[7]);let x,S;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,T.jsx)(E,{contact:b.github}),S=(0,T.jsx)(`br`,{}),e[8]=x,e[9]=S):(x=e[8],S=e[9]);let O,k;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,T.jsx)(E,{contact:b.pec}),k=(0,T.jsx)(`br`,{}),e[10]=O,e[11]=k):(O=e[10],k=e[11]);let A;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,T.jsxs)(`header`,{className:`border-foreground relative isolate flex h-65.5 flex-col justify-between border-b-2 pt-4 pb-3 font-mono sm:h-46`,children:[r,a,(0,T.jsxs)(`div`,{className:`flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6`,children:[o,(0,T.jsxs)(`address`,{className:`text-foreground/70 text-label whitespace-nowrap not-italic sm:text-right`,children:[f.location,` · `,c,l,d,` · `,x,S,`PEC `,O,k,(0,T.jsx)(E,{contact:{href:`https://${f.portfolio}`,value:f.portfolio}}),` · VAT `,f.vat]})]})]}),e[12]=A):A=e[12];let j;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,T.jsx)(D,{title:`Technical Skills`,children:(0,T.jsx)(`dl`,{className:`flex flex-col gap-0.5`,children:u(y,B)})}),e[13]=j):j=e[13];let N;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,T.jsx)(D,{title:`Work Experience`,children:(0,T.jsx)(`div`,{className:`flex flex-col gap-1.5`,children:u(v,z)})}),e[14]=N):N=e[14];let P;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,T.jsx)(D,{title:`Projects`,children:(0,T.jsx)(`div`,{className:`flex flex-col gap-1.5`,children:u(_,R)})}),e[15]=P):P=e[15];let F,H;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(F=u(g,L),H=(0,T.jsx)(`strong`,{className:`font-semibold`,children:`Languages:`}),e[16]=F,e[17]=H):(F=e[16],H=e[17]);let U;return e[18]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,T.jsxs)(`div`,{className:`pb-safe-bottom min-h-0 flex-1 overflow-y-auto px-6 pt-20 select-text sm:pt-16 print:overflow-visible print:p-0`,children:[t,n,(0,T.jsxs)(`article`,{lang:`en`,className:`font-document text-document print:min-h-printed-page trail-grid-width mx-auto flex flex-col gap-3 print:justify-between`,children:[A,j,N,P,(0,T.jsxs)(D,{title:`Education & Languages`,children:[F,(0,T.jsxs)(`p`,{children:[H,` `,s(m,u(I),i(` · `))]})]})]})]}),e[18]=U):U=e[18],U}function I(e){return`${e.language} (${e.level})`}function L(e){return(0,T.jsx)(O,{title:e.degree,details:o([e.school,e.grade],a),aside:e.period},e.school)}function R(e){return(0,T.jsx)(O,{title:e.name,details:[e.role],aside:s(e.href,c(`https://`,``)),children:(0,T.jsx)(`p`,{children:e.description})},e.name)}function z(e){return(0,T.jsx)(O,{title:e.company,details:o([e.role,e.note,e.location],a),aside:e.period,children:(0,T.jsx)(A,{items:e.highlights})},e.company)}function B(e){return(0,T.jsxs)(`div`,{className:`flex`,children:[(0,T.jsxs)(`dt`,{className:`w-32 shrink-0 font-semibold`,children:[e.area,`:`]}),(0,T.jsx)(`dd`,{children:e.items})]},e.area)}function V(){print()}export{F as component};
1
+ import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{a as t,n,o as r}from"./react-COyt-gOi.js";import{En as i,Et as a,Qt as o,jn as s,on as c,rn as l,sn as u}from"./effect-hYY2EiyY.js";import{P as d,a as f,c as p,i as m,l as h,n as g,o as _,r as v,s as y,t as b}from"./profile-CAmdNQBr.js";var x=e(r(),1),S=new Map([[`bold`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M214.67,68H204V40a12,12,0,0,0-12-12H64A12,12,0,0,0,52,40V68H41.33C25.16,68,12,80.56,12,96v80a12,12,0,0,0,12,12H52v28a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V188h28a12,12,0,0,0,12-12V96C244,80.56,230.84,68,214.67,68ZM76,52H180V68H76ZM180,204H76V172H180Zm40-40H204v-4a12,12,0,0,0-12-12H64a12,12,0,0,0-12,12v4H36V96c0-2.17,2.44-4,5.33-4H214.67c2.89,0,5.33,1.83,5.33,4Zm-16-44a16,16,0,1,1-16-16A16,16,0,0,1,204,120Z`}))],[`duotone`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M232,96v80H192V152H64v24H24V96c0-8.84,7.76-16,17.33-16H214.67C224.24,80,232,87.16,232,96Z`,opacity:`0.2`}),x.createElement(`path`,{d:`M214.67,72H200V40a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8V72H41.33C27.36,72,16,82.77,16,96v80a8,8,0,0,0,8,8H56v32a8,8,0,0,0,8,8H192a8,8,0,0,0,8-8V184h32a8,8,0,0,0,8-8V96C240,82.77,228.64,72,214.67,72ZM72,48H184V72H72ZM184,208H72V160H184Zm40-40H200V152a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8v16H32V96c0-4.41,4.19-8,9.33-8H214.67c5.14,0,9.33,3.59,9.33,8Zm-24-52a12,12,0,1,1-12-12A12,12,0,0,1,200,116Z`}))],[`fill`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M240,96v80a8,8,0,0,1-8,8H200v32a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V184H24a8,8,0,0,1-8-8V96c0-13.23,11.36-24,25.33-24H56V40a8,8,0,0,1,8-8H192a8,8,0,0,1,8,8V72h14.67C228.64,72,240,82.77,240,96ZM72,72H184V48H72Zm112,88H72v48H184Zm16-44a12,12,0,1,0-12,12A12,12,0,0,0,200,116Z`}))],[`light`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M214.67,74H198V40a6,6,0,0,0-6-6H64a6,6,0,0,0-6,6V74H41.33C28.47,74,18,83.87,18,96v80a6,6,0,0,0,6,6H58v34a6,6,0,0,0,6,6H192a6,6,0,0,0,6-6V182h34a6,6,0,0,0,6-6V96C238,83.87,227.53,74,214.67,74ZM70,46H186V74H70ZM186,210H70V158H186Zm40-40H198V152a6,6,0,0,0-6-6H64a6,6,0,0,0-6,6v18H30V96c0-5.51,5.08-10,11.33-10H214.67C220.92,86,226,90.49,226,96Zm-28-54a10,10,0,1,1-10-10A10,10,0,0,1,198,116Z`}))],[`regular`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M214.67,72H200V40a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8V72H41.33C27.36,72,16,82.77,16,96v80a8,8,0,0,0,8,8H56v32a8,8,0,0,0,8,8H192a8,8,0,0,0,8-8V184h32a8,8,0,0,0,8-8V96C240,82.77,228.64,72,214.67,72ZM72,48H184V72H72ZM184,208H72V160H184Zm40-40H200V152a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8v16H32V96c0-4.41,4.19-8,9.33-8H214.67c5.14,0,9.33,3.59,9.33,8Zm-24-52a12,12,0,1,1-12-12A12,12,0,0,1,200,116Z`}))],[`thin`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M214.67,76H196V40a4,4,0,0,0-4-4H64a4,4,0,0,0-4,4V76H41.33C29.57,76,20,85,20,96v80a4,4,0,0,0,4,4H60v36a4,4,0,0,0,4,4H192a4,4,0,0,0,4-4V180h36a4,4,0,0,0,4-4V96C236,85,226.43,76,214.67,76ZM68,44H188V76H68ZM188,212H68V156H188Zm40-40H196V152a4,4,0,0,0-4-4H64a4,4,0,0,0-4,4v20H28V96c0-6.62,6-12,13.33-12H214.67C222,84,228,89.38,228,96Zm-32-56a8,8,0,1,1-8-8A8,8,0,0,1,196,116Z`}))]]),C=x.forwardRef((e,t)=>x.createElement(d,{ref:t,...e,weights:S}));C.displayName=`PrinterIcon`;var w=n(),T=t();function E(e){let t=(0,w.c)(3),n;return t[0]!==e.contact.href||t[1]!==e.contact.value?(n=(0,T.jsx)(`a`,{href:e.contact.href,className:`hover:underline`,children:e.contact.value}),t[0]=e.contact.href,t[1]=e.contact.value,t[2]=n):n=t[2],n}function D(e){let t=(0,w.c)(5),n;t[0]===e.title?n=t[1]:(n=(0,T.jsx)(`h2`,{className:`text-foreground text-label tracking-label font-mono font-bold uppercase`,children:e.title}),t[0]=e.title,t[1]=n);let r;return t[2]!==e.children||t[3]!==n?(r=(0,T.jsxs)(`section`,{className:`flex flex-col gap-1`,children:[n,e.children]}),t[2]=e.children,t[3]=n,t[4]=r):r=t[4],r}function O(e){let t=(0,w.c)(15),n;t[0]===e.title?n=t[1]:(n=(0,T.jsx)(`strong`,{className:`font-semibold`,children:e.title}),t[0]=e.title,t[1]=n);let r;t[2]===e.details?r=t[3]:(r=u(e.details,k),t[2]=e.details,t[3]=r);let i;t[4]!==n||t[5]!==r?(i=(0,T.jsxs)(`h3`,{children:[n,r]}),t[4]=n,t[5]=r,t[6]=i):i=t[6];let a;t[7]===e.aside?a=t[8]:(a=(0,T.jsx)(`span`,{className:`text-foreground/70 text-label font-mono whitespace-nowrap`,children:e.aside}),t[7]=e.aside,t[8]=a);let o;t[9]!==i||t[10]!==a?(o=(0,T.jsxs)(`div`,{className:`flex flex-wrap items-baseline justify-between gap-x-4`,children:[i,a]}),t[9]=i,t[10]=a,t[11]=o):o=t[11];let s;return t[12]!==e.children||t[13]!==o?(s=(0,T.jsxs)(`div`,{className:`flex break-inside-avoid flex-col gap-0.5`,children:[o,e.children]}),t[12]=e.children,t[13]=o,t[14]=s):s=t[14],s}function k(e){return(0,T.jsxs)(`span`,{className:`text-foreground/70`,children:[` · `,e]},e)}function A(e){let t=(0,w.c)(4),n;t[0]===e.items?n=t[1]:(n=u(e.items,j),t[0]=e.items,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,T.jsx)(`ul`,{className:`flex flex-col gap-0.5`,children:n}),t[2]=n,t[3]=r),r}function j(e){return(0,T.jsxs)(`li`,{className:`flex gap-2.5`,children:[(0,T.jsx)(`span`,{"aria-hidden":!0,className:`border-foreground/75 mt-1.75 size-1 shrink-0 border-2`}),(0,T.jsx)(`span`,{children:e})]},e)}function M(){let e=(0,w.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,T.jsxs)(`svg`,{"aria-hidden":!0,className:`text-foreground pointer-events-none absolute inset-0 -z-1 size-full border-r border-current opacity-7`,children:[c(31,P),c(11,N)]}),e[0]=t):t=e[0],t}function N(e){return(0,T.jsx)(`line`,{x1:0,x2:`100%`,y1:e*26+.5,y2:e*26+.5,stroke:`currentColor`},`row-${e}`)}function P(e){return(0,T.jsx)(`line`,{x1:e*26+.5,x2:e*26+.5,y1:0,y2:`100%`,stroke:`currentColor`},`column-${e}`)}function F(){let e=(0,w.c)(19),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,T.jsxs)(`a`,{href:`/`,className:`text-muted-foreground hover:text-foreground mt-safe-top ml-safe-left fixed top-3 left-3 z-20 inline-flex h-11 items-center gap-1.5 font-mono text-xs transition-colors sm:h-9 print:hidden`,children:[(0,T.jsx)(`span`,{"aria-hidden":!0,children:`←`}),`Portfolio`]}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,T.jsx)(h,{variant:`outline`,size:`icon-lg`,"aria-label":`Print or save as PDF`,onClick:V,className:`mt-safe-top mr-safe-right fixed top-3 right-3 print:hidden`,children:(0,T.jsx)(C,{className:`size-4`})}),e[1]=n):n=e[1];let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,T.jsx)(M,{}),e[2]=r):r=e[2];let i;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,T.jsxs)(`h1`,{className:`tracking-name text-2xl leading-none font-extrabold uppercase`,children:[f.firstName,` `,(0,T.jsx)(`span`,{className:`text-foreground/55 tracking-label mt-0.5 block text-xl font-medium`,children:f.lastName})]}),e[3]=i):i=e[3];let a;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,T.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,T.jsxs)(`p`,{className:`text-label tracking-label flex items-center gap-2 whitespace-nowrap uppercase`,children:[(0,T.jsx)(`span`,{"aria-hidden":!0,className:`border-foreground size-2 border-4`}),f.title]}),(0,T.jsx)(`p`,{className:`font-document text-document`,children:p})]}),e[4]=a):a=e[4];let o,c,d;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,T.jsx)(E,{contact:b.phone}),c=(0,T.jsx)(`br`,{}),d=(0,T.jsx)(E,{contact:b.email}),e[5]=o,e[6]=c,e[7]=d):(o=e[5],c=e[6],d=e[7]);let x,S;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,T.jsx)(E,{contact:b.github}),S=(0,T.jsx)(`br`,{}),e[8]=x,e[9]=S):(x=e[8],S=e[9]);let O,k;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,T.jsx)(E,{contact:b.pec}),k=(0,T.jsx)(`br`,{}),e[10]=O,e[11]=k):(O=e[10],k=e[11]);let A;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,T.jsxs)(`header`,{className:`border-foreground relative isolate flex h-65.5 flex-col justify-between border-b-2 pt-4 pb-3 font-mono sm:h-46`,children:[r,i,(0,T.jsxs)(`div`,{className:`flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6`,children:[a,(0,T.jsxs)(`address`,{className:`text-foreground/70 text-label whitespace-nowrap not-italic sm:text-right`,children:[f.location,` · `,o,c,d,` · `,x,S,`PEC `,O,k,(0,T.jsx)(E,{contact:{href:`https://${f.portfolio}`,value:f.portfolio}}),` · VAT `,f.vat]})]})]}),e[12]=A):A=e[12];let j;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,T.jsx)(D,{title:`Technical Skills`,children:(0,T.jsx)(`dl`,{className:`flex flex-col gap-0.5`,children:u(y,B)})}),e[13]=j):j=e[13];let N;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,T.jsx)(D,{title:`Work Experience`,children:(0,T.jsx)(`div`,{className:`flex flex-col gap-1.5`,children:u(v,z)})}),e[14]=N):N=e[14];let P;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,T.jsx)(D,{title:`Projects`,children:(0,T.jsx)(`div`,{className:`flex flex-col gap-1.5`,children:u(_,R)})}),e[15]=P):P=e[15];let F,H;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(F=u(g,L),H=(0,T.jsx)(`strong`,{className:`font-semibold`,children:`Languages:`}),e[16]=F,e[17]=H):(F=e[16],H=e[17]);let U;return e[18]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,T.jsxs)(`div`,{className:`pb-safe-bottom min-h-0 flex-1 overflow-y-auto px-6 pt-20 select-text sm:pt-16 print:overflow-visible print:p-0`,children:[t,n,(0,T.jsxs)(`article`,{lang:`en`,className:`font-document text-document print:min-h-printed-page trail-grid-width mx-auto flex flex-col gap-3 print:justify-between`,children:[A,j,N,P,(0,T.jsxs)(D,{title:`Education & Languages`,children:[F,(0,T.jsxs)(`p`,{children:[H,` `,s(m,u(I),l(` · `))]})]})]})]}),e[18]=U):U=e[18],U}function I(e){return`${e.language} (${e.level})`}function L(e){return(0,T.jsx)(O,{title:e.degree,details:o([e.school,e.grade],i),aside:e.period},e.school)}function R(e){return(0,T.jsx)(O,{title:e.name,details:[e.role],aside:s(e.href,a(`https://`,``)),children:(0,T.jsx)(`p`,{children:e.description})},e.name)}function z(e){return(0,T.jsx)(O,{title:e.company,details:o([e.role,e.note,e.location],i),aside:e.period,children:(0,T.jsx)(A,{items:e.highlights})},e.company)}function B(e){return(0,T.jsxs)(`div`,{className:`flex`,children:[(0,T.jsxs)(`dt`,{className:`w-32 shrink-0 font-semibold`,children:[e.area,`:`]}),(0,T.jsx)(`dd`,{children:e.items})]},e.area)}function V(){print()}export{F as component};