@deslop/portfolio 0.1.1228 → 0.1.1232

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.
@@ -1 +0,0 @@
1
- import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{$i as t,$o as n,A as r,C as i,Cs as a,D as o,Dn as s,Ds as c,E as l,G as u,Gs as d,Ho as f,Hr as p,I as m,J as h,Ji as g,Ki as _,L as v,Lc as y,M as b,Ms as x,N as S,O as C,Oa as w,Os as T,Qa as E,Qo as ee,R as D,Rc as O,Ri as k,S as A,T as j,Tr as M,Ts as N,Tt as P,Us as te,Wc as F,Wi as I,Xo as L,Xs as R,Yi as z,Z as B,Zo as V,_ as H,a as U,al as W,as as ne,b as G,br as re,c as ie,ci as ae,cs as oe,d as se,ea as ce,ei as le,el as ue,f as de,ft as fe,g as pe,gs as me,h as he,hs as ge,i as _e,il as ve,ir as ye,is as be,it as xe,j as Se,k as Ce,kr as we,ks as Te,l as Ee,ls as De,m as Oe,ms as ke,n as Ae,nl as K,ns as je,o as Me,os as Ne,p as Pe,pr as Fe,ps as Ie,r as Le,rr as Re,s as ze,t as Be,ut as Ve,v as He,w as Ue,ws as We,wt as Ge,x as Ke,xs as qe,y as q,zo as Je,zt as Ye}from"./profile-B5GCDOor.js";import{A as Xe,C as Ze,D as Qe,E as $e,M as et,N as tt,O as nt,P as rt,S as it,T as at,_ as ot,a as st,b as ct,c as lt,d as ut,f as dt,g as ft,h as pt,i as mt,j as ht,k as gt,l as _t,m as vt,n as yt,o as bt,p as xt,r as St,s as Ct,t as wt,u as Tt,v as Et,w as Dt,x as Ot,y as kt}from"./index-w71U_E9C.js";var At=L(`effect/Random`,{defaultValue:()=>({nextIntUnsafe(){return Math.floor(Math.random()*(2**53-1- -(2**53-1)+1))+-(2**53-1)},nextDoubleUnsafe(){return Math.random()}})}),jt=()=>(e,n)=>{let r=V()(e),i=g(r,n.makeEffect??yt(n.group,{...n,flatten:!0}));r.runtime=(n.runtime??Tt)(typeof n.protocol==`function`?e=>ce(i,t(n.protocol(e))):ce(i,t(n.protocol))),r.mutation=Ct(t=>{let i=n.group.requests.get(t);return r.runtime.fn()(Fe(function*({headers:e,payload:n,reactivityKeys:i}){let a=(yield*r)(t,n,{headers:e});return yield*i?ft(a,i):a})).pipe(ut({key:`AtomRpc:mutation:${JSON.stringify([e,t])}`,schema:pt({success:i.successSchema,error:Mt(i)})}))});let a=Ct(e=>{let{headers:t,payload:i,reactivityKeys:a,tag:o,timeToLive:s}=e,c=n.group.requests.get(o),l=bt(c.successSchema),u=l?r.runtime.pull(ct(r.use(e=>ae(e(o,i,{headers:t}))))):r.runtime.atom(r.use(e=>e(o,i,{headers:t})));return a&&(u=r.runtime.factory.withReactivity(a)(u)),!l&&e.serializationKey&&(u=ut(u,{key:`AtomRpc:${e.tag}:${e.serializationKey}`,schema:pt({success:c.successSchema,error:Mt(c)})})),s&&(u=f(s)?dt(u,s):_t(u)),u});return r.query=(e,t,n)=>{let r={tag:e,payload:t,headers:n?.headers?s(n.headers):void 0,reactivityKeys:n?.reactivityKeys,timeToLive:n?.timeToLive===void 0?void 0:Je(n.timeToLive),serializationKey:n?.serializationKey};return a(r)},r},Mt=e=>Ve([e.errorSchema,...Array.from(e.middlewares,e=>e.error),St]),Nt={add(...e){let t=new Map(this.requests);for(let n of e)t.set(n._tag,n);return Pt({requests:t,annotations:this.annotations})},merge(...e){let t=new Map(this.requests),n=new Map(this.annotations.mapUnsafe);for(let r of e){for(let[e,n]of r.requests)t.set(e,n);for(let[e,t]of r.annotations.mapUnsafe)n.set(e,t)}return Pt({requests:t,annotations:ne(n)})},omit(...e){let t=new Map(this.requests);for(let n of e)t.delete(n);return Pt({requests:t,annotations:this.annotations})},middleware(e){let t=new Map;for(let[n,r]of this.requests)t.set(n,r.middleware(e));return Pt({requests:t,annotations:this.annotations})},toHandlers(e){let t=this;return re(function*(){let n=yield*Re(),r=M(e)?yield*e:e,i=new Map;return t.requests.forEach((e,t)=>{i.set(e.key,{tag:e._tag,handler:r[t],context:n})}),ne(i)})},prefix(e){let t=new Map;for(let n of this.requests.values()){let r=n.prefix(e);t.set(r._tag,r)}return Pt({requests:t,annotations:this.annotations})},toLayer(e){return z(this.toHandlers(e))},of:ue,toLayerHandler(e,t){let n=this;return z(re(function*(){let r=yield*Re(),i=M(t)?yield*t:t,a=new Map,o=n.requests.get(e);return a.set(o.key,{handler:i,context:r}),ne(a)}))},accessHandler(e){return ye(t=>{let n=this.requests.get(e),{handler:r,context:i}=je(t,n.key);return ae((e,t)=>{t.rpc=n;let a=r(e,t),o=mt(a)?a.value:a;return M(o)?p(o,i):Et(o,i)})})},annotate(e,t){return Pt({requests:this.requests,annotations:ee(this.annotations,e,t)})},annotateRpcs(e,t){return this.annotateRpcsMerge(be(e,t))},annotateMerge(e){return Pt({requests:this.requests,annotations:Ne(this.annotations,e)})},annotateRpcsMerge(e){let t=new Map;for(let[n,r]of this.requests)t.set(n,r.annotateMerge(Ne(e,r.annotations)));return Pt({requests:t,annotations:this.annotations})}},Pt=e=>Object.assign(function(){},Nt,{requests:e.requests,annotations:e.annotations}),Ft=(...e)=>Pt({requests:new Map(e.map(e=>[e._tag,e])),annotations:n()}),It={name:`arrow-up-right`,size:24,node:[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]};It.node;var Lt=m(It),Rt={name:`mouse-pointer-2`,size:24,node:[[`path`,{d:`M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z`,key:`edeuup`}]]};Rt.node;var zt=m(Rt),Bt={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Bt.node;var Vt=m(Bt);function J(e){return e?.ownerDocument||document}var Y=e(W(),1),Ht=e(et(),1);function Ut(e){let t=Ht.unstable_scheduleCallback(4,e);return()=>Ht.unstable_cancelCallback(t)}var Wt=Y.createContext(vt({scheduleTask:Ut,defaultIdleTTL:400})),Gt=new WeakMap,Kt=0,qt=new Set;function Jt(e){Kt++;try{return e()}finally{Kt--}}function Yt(e){if(Kt===0)return e();qt.size===0&&queueMicrotask(Xt),qt.add(e)}function Xt(){for(let e of qt)qt.delete(e),e()}function Zt(e,t){let n=Gt.get(e);n===void 0&&(n=new WeakMap,Gt.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,()=>Yt(n));return()=>{i--,qt.delete(n),r()}},snapshot(){return Jt(()=>e.get(t))},getServerSnapshot(){return(i===0||a===void 0)&&(a={value:Jt(()=>lt(t,e))}),a.value}};return n.set(t,o),o}function Qt(e,t){let n=Zt(e,t);return Y.useEffect(Xt),Y.useSyncExternalStore(n.subscribe,n.snapshot,n.getServerSnapshot)}function $t(e,t){Y.useEffect(()=>e.mount(t),[t,e])}function en(e,t,n){return n?.mode===`promise`||n?.mode===`promiseExit`?Y.useCallback(r=>{e.set(t,r);let i=le(xt(e,t,{suspendOnWaiting:!0}));return n.mode===`promise`?i.then(tn):i},[e,t,n.mode]):Y.useCallback(n=>{e.set(t,typeof n==`function`?n(e.get(t)):n)},[e,t])}var tn=e=>{if(w(e))return e.value;throw E(e.cause)},nn=(e,t)=>{let n=Y.useContext(Wt);return $t(n,e),en(n,e,t)},rn={suspendOnWaiting:new WeakMap,default:new WeakMap};function an(e,t,n){let r=n?rn.suspendOnWaiting:rn.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 on(e,t,n){let r=Qt(e,t);if(r._tag===`Initial`||n&&r.waiting)throw an(e,t,n);return r}var sn=(e,t)=>{let n=on(Y.useContext(Wt),e,t?.suspendOnWaiting??!1);if(n._tag===`Failure`&&!t?.includeFailure)throw E(n.cause);return n},cn=/^(?:Node\.js\/|Deno\/|Bun\/|Cloudflare-Workers)/;function ln(){return typeof navigator>`u`||cn.test(String(navigator.userAgent))}function un(e){let t=``,n=e;if(n==null){if(ln())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 dn(e,t=un()){return e===`Mod`?t===`mac`?`Meta`:`Control`:e}var fn=[`Control`,`Alt`,`Shift`,`Meta`],pn={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 mn={Backquote:"`",Backslash:`\\`,BracketLeft:`[`,BracketRight:`]`,Comma:`,`,Equal:`=`,Minus:`-`,Period:`.`,Quote:`'`,Semicolon:`;`,Slash:`/`};function hn(e){return/^\p{Letter}$/u.test(e)}function gn(e){if(!e)return``;if(hn(e)){let t=e.toUpperCase();return t.length===1?t:e}return e===` `?`Space`:e}function _n(e,t){let n=!1;try{n=t!==`mac`&&typeof e.getModifierState==`function`&&e.getModifierState(`AltGraph`)}catch{}let r=(e.key||``).normalize(`NFC`),i=gn(r),a=t===`windows`&&n&&!yn({key:i,altGraph:n});return{key:i,code:e.code||``,ctrl:a||!!e.ctrlKey,shift:!!e.shiftKey,alt:a||!!e.altKey,meta:!!e.metaKey,altGraph:n&&!a,location:e.location,isComposing:!!e.isComposing||e.keyCode===229||r===`Process`||r===`Unidentified`}}function vn(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(mn,e))return mn[e];let t={NumpadAdd:`+`,NumpadSubtract:`-`,NumpadMultiply:`*`,NumpadDivide:`/`,NumpadDecimal:`.`,NumpadEnter:`Enter`,Space:`Space`};return Object.hasOwn(t,e)?t[e]:void 0}function yn(e){return e.altGraph?e.key===`Dead`||bn(e.key)&&!/^[A-Za-z0-9]$/.test(e.key):!1}function bn(e){return e!==``&&Array.from(e).length===1}function xn(e){let t=e.toLowerCase();return Object.hasOwn(pn,t)?pn[t]:void 0}function Sn(e){return/^[A-Za-z][A-Za-z0-9]*$/.test(e)}function Cn(e){return e.startsWith(`[`)&&e.endsWith(`]`)&&Sn(e.slice(1,-1))?e.slice(1,-1):void 0}function wn(e){if(!e.endsWith(`+`))return e.split(`+`);let t=e.slice(0,-1).split(`+`);return t.at(-1)===``&&t.pop(),t.push(`+`),t}function Tn(e){return/^[A-Za-z]$/.test(e)}function En(e){return/^\p{Script_Extensions=Latin}$/u.test(e)}var Dn;function On(e,t){return e===t?!0:/^\p{Letter}$/u.test(e)&&/^\p{Letter}$/u.test(t)?(Dn??=new Intl.Collator(void 0,{sensitivity:`accent`}),Dn.compare(e,t)===0):!1}function kn(e){if(/^\[.*\]$/s.test(e.trim()))throw Error(`Logical key must not contain a bracketed physical code. Use the code field instead.`)}function An(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:fn.filter(e=>a[e])}}function jn(e){return Array.isArray(e)}function Mn(e){return jn(e)&&e.length===1?e[0]:e}function Nn(e,t){let n=wn(e),r=new Set,i=``;for(let e=0;e<n.length;e++){let a=n[e].trim();if(e===n.length-1)i=gn(a);else{let e=xn(a);if(e){let n=dn(e,t);r.add(n)}else n.length===1&&(i=gn(a))}}!i&&n.length>0&&(i=gn(n[n.length-1].trim()));let a=Cn(i);return An(a===void 0?{key:i}:{code:a},r.has(`Control`),r.has(`Shift`),r.has(`Alt`),r.has(`Meta`))}function Pn(e,t){e.code===void 0&&kn(e.key);let n=e.ctrl??!1,r=e.shift??!1,i=e.alt??!1,a=e.meta??!1;return e.mod&&(dn(`Mod`,t)===`Control`?n=!0:a=!0),An(e.code===void 0?{key:gn(e.key)}:{code:e.code},n,r,i,a)}function Fn(e,t){return typeof e==`string`?Nn(e,t):Pn(e,t)}function In(e,t){e.code===void 0&&kn(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 fn)e.modifiers.includes(t)&&r.push(t);return r.push(e.code===void 0?gn(e.key):`[${e.code}]`),r.join(`+`)}function Ln(e,t=un()){return Array.isArray(e)?e.map(e=>Fn(e,t)):Fn(e,t)}function Rn(e,t=un()){if(Array.isArray(e)){let n=e.map(e=>In(Fn(e,t),t));return n.length===1?n[0]:n}return In(Fn(e,t),t)}function zn(e){return xn(e)!==void 0}function Bn(e){return Array.isArray(e)?e.map(e=>Vn(e)):Vn(e)}function Vn(e){e.code===void 0&&kn(e.key);let t=[];for(let n of fn)e.modifiers.includes(n)&&t.push(n);return t.push(e.code===void 0?e.key:`[${e.code}]`),t.join(`+`)}function Hn(e,t,n=un()){let r=typeof t==`string`?Ln(t,n):t,i=_n(e,n),a={matched:!1,score:0};if(i.isComposing||i.altGraph&&(r.ctrl||r.alt)||i.altGraph&&!yn(i))return a;if(r.code!==void 0)return i.altGraph||!Wn(i,r,!1)?a:i.code===r.code?l(`code`,3):a;let o=On(i.key,r.key),s=o&&bn(i.key)&&!/^\p{Letter}$/u.test(i.key)&&!r.shift;if(o&&Wn(i,r,s))return l(`key`,s?2:3);if(!Un(i)||i.altGraph||!Wn(i,r,!1))return a;let c=vn(i.code);return c!==void 0&&On(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 Un({key:e,code:t,ctrl:n,meta:r,shift:i,alt:a}){return e!==`Dead`&&!bn(e)?!1:t.startsWith(`Digit`)?!0:Tn(e)?!1:/^[!-~]$/.test(e)?i:!En(e)||a?!0:(n||r)&&!t.startsWith(`Key`)}function Wn(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 Gn(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:On(e.key,t.key))}var Kn=`global`,qn={capture:!1,preventDefault:!0,stopPropagation:!0,eventType:`keydown`,enabled:!0,ignoreInputs:`auto`,conflictBehavior:`warn`,scope:Kn};function Jn(...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 Yn(e){return!!(e.code||e.key)}function Xn(e){return!(e.ctrl||e.meta||e.key===`Escape`||e.code===`Escape`)}function Zn(e,t,n,r){if(n!==`allow`&&n!==`warn`){if(n===`error`)throw Error(`'${t}' is already registered. Use conflictBehavior: 'replace' to replace the existing handler, or conflictBehavior: 'allow' to allow multiple registrations.`);r(e)}}function Qn(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]?Qn(n[e],r[e]):Object.is(n[e],r[e]))}function $n(e,t,n=un()){let r=jn(e)?e:[e],i=jn(t)?t:[t];return r.length===i.length&&r.every((e,t)=>Gn(Ln(e,n),Ln(i[t],n)))}var er=1e3;function tr(e){return e?.nodeType===1}function nr(e){return`document`in e||e.nodeType===9}function rr(e){return`document`in e?e.document:e.ownerDocument??e}function ir(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}function ar(e){return e.assignedSlot??e.parentNode??(e.host||null)}function or(e){if(nr(e))return!0;for(let t=ir(e.ownerDocument);t;t=ar(t))if(t===e)return!0;return!1}var sr=[`ArrowUp`,`ArrowDown`],cr=[`ArrowLeft`,`ArrowRight`],lr=[`Enter`],ur=[`Space`],dr=[`Enter`,`Space`],fr=`typeahead`,pr=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`,`Enter`,`Space`,fr],mr=[`ArrowUp`,`ArrowDown`,`Home`,`End`,`Enter`,`Space`,fr],hr=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`,`PageUp`,`PageDown`,`Enter`,`Space`],gr=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Space`],_r=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`,`PageUp`,`PageDown`],vr=[`ArrowUp`,`ArrowDown`,`Home`,`End`,`PageUp`,`PageDown`],yr=[`ArrowLeft`,`ArrowRight`,`Home`,`End`],br={button:dr,submit:dr,reset:dr,image:dr,color:dr,file:dr,checkbox:ur,radio:gr,range:_r};function xr(e){return e.getAttribute(`role`)?.trim().split(/\s+/)[0]}function Sr(e){if(!tr(e))return!1;switch(e.localName){case`input`:{let t=e;return!br[t.type]&&!t.readOnly}case`textarea`:return!e.readOnly;case`select`:return!0}let t=xr(e);return t===`textbox`||t===`searchbox`||e.isContentEditable}function Cr(e){return e.localName.includes(`-`)?e.constructor.formAssociated===!0?!e.hasAttribute(`role`):!e.hasAttribute(`tabindex`):!1}function wr(e){let t=e.getAttribute(`aria-orientation`);switch(xr(e)){case`button`:case`tab`:case`option`:case`treeitem`:case`menuitem`:case`menuitemcheckbox`:case`menuitemradio`:return dr;case`link`:return lr;case`checkbox`:case`switch`:case`radio`:return ur;case`menu`:case`menubar`:case`tree`:return pr;case`listbox`:return[...t===`horizontal`?cr:sr,`Home`,`End`,`Enter`,`Space`,fr];case`combobox`:return mr;case`tablist`:return[...t===`vertical`?sr:cr,`Home`,`End`,`Enter`,`Space`];case`toolbar`:return[...t===`vertical`?sr:cr,`Home`,`End`];case`grid`:case`treegrid`:return hr;case`radiogroup`:return gr;case`slider`:return _r;case`spinbutton`:return vr}switch(e.localName){case`button`:case`summary`:return dr;case`input`:return br[e.type]??yr;case`textarea`:return _r;case`a`:case`area`:return e.hasAttribute(`href`)?lr:[]}return[]}function Tr(e,t,n){if(t.ctrlKey||t.metaKey||t.altKey)return!1;let r=wr(e);return n===`Enter`||n===`Space`?!t.shiftKey&&r.includes(n):r.includes(n)||r.includes(fr)&&/^.$/u.test(t.key)}function Er(e,t,n){let r=ir(t),i=[];for(let e=r;e;e=ar(e))tr(e)&&i.push(e);let a=e.composedPath()[0];tr(a)&&!i.includes(a)&&(i=e.composedPath().filter(tr));let o=i.findIndex(e=>n(e)||e===r&&Cr(e));return{elements:i,index:o}}function Dr({elements:e,index:t},n){return t>=0&&(nr(n)||t<e.indexOf(n))}var Or=new WeakMap;function kr(e,t){if(e.type!==`keydown`||e.key!==`Escape`)return!1;let n=Or.get(e);if(!n){let r=[];for(let e of[`dialog:modal`,`:popover-open`])try{r.push(...rr(t).querySelectorAll(e))}catch{}n=r.filter(e=>e.popover!==`manual`),Or.set(e,n)}return n.some(e=>{for(let n=nr(t)?null:t;n;n=ar(n))if(n===e)return!1;return!0})}var Ar=new WeakMap;function jr(e,t){let n=Ar.get(e);if(!n){let r=gn(e.key);n=Er(e,rr(t),t=>Sr(t)||Tr(t,e,r)),Ar.set(e,n)}return Dr(n,t)}var Mr=new Set;function Nr(e){for(let t of e)Mr.add(t);for(let e of Mr)Mr.delete(e),e()}function Pr(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,Nr(n))},subscribe(e){let r=()=>{typeof e==`function`?e(t):e.next?.(t)};return n.add(r),{unsubscribe(){n.delete(r),Mr.delete(r)}}}}}var Fr=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}},Ir={current:null},Lr=new Set,Rr=new WeakSet,zr=new Map,Br=e=>e.code||`key:${e.key}`;function Vr(e){return Lr.size>0||Rr.has(e)||zr.has(Br(e))}function Hr(e,t){return e.enabled===!1?`disabled`:t?.isScopeActive(e.scope)===!1?`suspended`:`active`}var Ur=0;function Wr(e,t){return typeof e==`string`?e:Bn(t)}function Gr(){return`hotkey_${++Ur}`}function Kr(e){let t=e;return{id:Gr(),unregister:()=>{},get callback(){return t},set callback(e){t=e},setOptions:()=>{},get isActive(){return!1}}}function qr(e){return{...qn,...e===`sequence`?{timeout:er}:{requireReset:!1}}}function Jr(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||nr(e))return e;let n=e.getRootNode();for(;`host`in n&&n.mode===`open`;)n=n.host.getRootNode();return n}function Xr(e){return!!e.afterDelegatedHandlers&&!e.capture}function Zr(e){return e.kind===`chord`?[e.parsedChord]:e.parsedSequence}function Qr(e){let{ignoreInputs:t=`auto`}=e.options;return t===`auto`?Xn(Zr(e)[0]):t}function $r(e,t){return e.length===t.length&&e.every((e,n)=>Gn(e,t[n]))}function ei(e){return jn(e)?e.join(` `):e}var ti=class e{registrations=Pr(new Map);appHotkeys=Pr(null);scopes=Pr({active:[],exclusive:null,allowed:[],suspended:[]});#e;#t=new Set;#n=0;#r=[];#i=null;#a=new Fr((...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=un()}static getInstance(){return Ir.current??=new e}static resetInstance(){Ir.current?.destroy(),Ir.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=Kn){return this.#i?this.#i.has(e):e===`global`||this.#r.includes(e)}#f(e=Kn){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=[Kn,...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 Hr(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)||Qr(r)&&jr(e,r.target))&&(r.kind===`chord`?[r.parsedChord]:[r.parsedSequence[r.currentIndex],r.parsedSequence[0]]).some(t=>Hn(e,t,r.options.platform).matched))return!0;return!1}#g(){this.registrations.setState(e=>new Map(e))}register(e,t,n={}){let r=Mn(e);if(r==null||jn(r)&&r.length===0||typeof document>`u`&&!n.target)return Kr(t);let i=Gr(),a=n.platform??this.#e,o=n.target??document,s=jn(r),c=s?`sequence`:`chord`,l={id:i,callback:t,options:{...qr(c),...Jr(c,Jn(n)),platform:a},target:o,triggerCount:0,hasFired:!1},u;if(s){let e=Ln(r,a);u={...l,kind:`sequence`,hotkey:r.map((t,n)=>Wr(t,e[n])),parsedSequence:e,currentIndex:0,lastKeyTime:0}}else{let e=Ln(r,a);u={...l,kind:`chord`,hotkey:Wr(r,e),parsedChord:e}}if(!(u.kind===`sequence`?u.parsedSequence:[u.parsedChord]).every(Yn))return Kr(t);let d=this.#N(u);d&&Zn(d.id,ei(u.hotkey),n.conflictBehavior??`warn`,e=>this.#_(e));let f=Yr(u);this.#a.add(f,!!u.options.capture,i,Xr(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={...qr(n.kind),platform:n.options.platform},a={...n.options},o=Object.entries(Jr(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(Qn(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,Xr(a)),p.#o.set(i,l)):Xr(a)&&!Xr(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(Vr(e)||this.#s.get(e))return;let a=new Map,o=0,s=!1,c=gn(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=Hn(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||Qr(r)&&jr(e,t))){if(g??=Hn(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||gn(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(Vr(e)||_n(e).isComposing||zn(gn(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(nr(a)?rr(a):a)&&!(Qr(i)&&jr(e,a))&&Hn(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(Vr(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||_n(e).isComposing||zn(gn(e.key)))return;let a=Date.now(),o=!1,s=new Map,c=0;for(let r of i){if(!this.#m(r)||Qr(r)&&jr(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=Hn(e,l,r.options.platform),d=r.currentIndex+1;!u.matched&&r.currentIndex>0&&(u=Hn(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 kr(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=Zr(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&&$r(Zr(n),t))return n;return null}#P(e,t){let n=e.parsedChord,r=gn(t.key);return e.activeMatch?.code&&t.code===e.activeMatch.code?!0:(n.code===void 0?On(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($n(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)&&or(n.target)&&(t===void 0?$n(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 ni(){return ti.getInstance()}function ri(e){return typeof e==`object`&&!!e&&e[`~appHotkey`]===!0}function ii(e,t){return t?.get(e.id)??e}function ai(e){return{...e.options,...e.scope!==void 0&&{scope:e.scope},meta:e.meta,appHotkeyId:e.id}}function oi(e={}){let t=new Map;return{update(n,r={}){let i=[];n.forEach((t,n)=>{let a=Jn(r,t.options),o={...qn,...a,...e,target:`target`in a?a.target??null:typeof document>`u`?null:document,platform:a.platform??un()};if(!o.target||!t.hotkey||jn(t.hotkey)&&t.hotkey.length===0)return;let s=Ln(t.hotkey,o.platform);if(!(Array.isArray(s)?s:[s]).every(Yn))return;let c=Rn(s,o.platform);jn(c)?delete o.requireReset:delete o.timeout,i.push({key:`${n}:${jn(c)?c.join(` `):c}`,callback:t.callback,options:o,register:()=>ni().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 si(e,t={}){return e.map(e=>{let n=e.hotkey,r={};if(ri(n)){let e=ii(n,t.appHotkeysStore);r=ai(e),n=e.hotkey??[]}let{target:i,...a}=Jn(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 ci=(0,Y.createContext)(null);function li(){return(0,Y.useContext)(ci)}function ui(e,t){let n=(0,Y.useCallback)(t=>e.subscribe(t).unsubscribe,[e]),r=(0,Y.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,Y.useSyncExternalStore)(n,i,i)}var di=Pr(null);function fi(){let e=li()?.appHotkeysStore??null;return ui(e?.store??di,e=>e),e}function pi(e){return typeof e==`object`&&!!e&&`current`in e}function mi(e){return pi(e)?e.current:e}function hi(e,t={}){let n=li()?.defaultOptions.hotkey,r=fi(),i=(0,Y.useRef)({hotkeys:e,commonOptions:t,defaults:n,appHotkeysStore:r});i.current={hotkeys:e,commonOptions:t,defaults:n,appHotkeysStore:r};let a=(0,Y.useRef)(null);(0,Y.useEffect)(()=>{a.current??=oi({afterDelegatedHandlers:!0});let{hotkeys:e,...t}=i.current;a.current.update(si(e,{...t,resolveTarget:mi}))}),(0,Y.useEffect)(()=>()=>{a.current?.destroy(),a.current=null},[])}var gi=Y.createContext(void 0);function _i(e){let t=Y.useContext(gi);if(!e&&t===void 0)throw Error(He(27));return t}var vi=`data-starting-style`,yi=`data-ending-style`,bi={[vi]:``},xi={[yi]:``},Si={transitionStatus(e){return e===`starting`?bi:e===`ending`?xi:null}},Ci=`data-open`,wi=`data-closed`,Ti=`data-anchor-hidden`,Ei={[Ci]:``},Di={[wi]:``},Oi={[Ti]:``},ki={open(e){return e?Ei:Di},anchorHidden(e){return e?Oi:null}},Ai={...ki,...Si},ji=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,s=_i(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`),d={open:c,transitionStatus:s.useState(`transitionStatus`)};return se(`div`,e,{state:d,ref:[s.context.backdropRef,t],stateAttributesMapping:Ai,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})});function Mi(e,t,n,r){let i=!1,a=!1,o=r??Pe;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 Ni=`none`,Pi=`trigger-press`,Fi=`outside-press`,Ii=`close-press`,Li=`focus-out`,Ri=`escape-key`,zi=`imperative-action`,Bi=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,c=_i(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=H({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,Mi(Ii,e.nativeEvent))}return se(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})});function Vi(){let[,e]=Y.useState({});return Y.useCallback(()=>{e({})},[])}var Hi=0;function Ui(e,t=`mui`){let n=Y.useRef(void 0),r=Vi(),i=e??n.current;return Y.useEffect(()=>{n.current??(Hi+=1,n.current=`${t}-${Hi}`,e??r())},[e,t,r]),i}var Wi=A.useId;function Gi(e,t){if(Wi!==void 0){let n=Wi();return e??(t?`${t}-${n}`:n)}return Ui(e,t)}function Ki(e){return Gi(e,`base-ui`)}function X(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function qi(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function Ji(e){let t=Ke(Yi,e).current;return t.next=e,q(t.effect),t}function Yi(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function Xi(e){Y.useEffect(e,de)}var Zi=0,Qi=class e{static create(){return new e}currentId=Zi;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Zi,t()},e)}isStarted(){return this.currentId!==Zi}clear=()=>{this.currentId!==Zi&&(clearTimeout(this.currentId),this.currentId=Zi)};disposeEffect=()=>this.clear};function $i(){let e=Ke(Qi.create).current;return Xi(e.disposeEffect),e}function ea(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:ta,platform:na,maxTouchPoints:ra}=ea(),ia=ta.toLowerCase(),aa=na.toLowerCase(),oa=/^i(os$|p)/.test(aa)||aa===`macintel`&&ra>1,sa=`android`,ca=aa===sa||ia.includes(sa),la=!oa&&aa.startsWith(`mac`);aa.startsWith(`win`),!ca&&/^(linux|chrome os)/.test(aa);var ua=la||oa,da=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!da&&ia.includes(`firefox`),!da&&ia.includes(`chrom`);var fa=ua,pa=/jsdom|happydom/.test(ia),ma=null;globalThis.requestAnimationFrame;var ha=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)}},ga=class e{static create(){return new e}static request(e){return ha.request(e)}static cancel(e){return ha.cancel(e)}currentId=ma;request(e){this.cancel(),this.currentId=ha.request(()=>{this.currentId=ma,e()})}cancel=()=>{this.currentId!==ma&&(ha.cancel(this.currentId),this.currentId=ma)};disposeEffect=()=>this.cancel};function _a(){let e=Ke(ga.create).current;return Xi(e.disposeEffect),e}var va={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},ya={...va,position:`fixed`,margin:0,top:0,left:0};({...va});var Z=ve(),ba=Y.forwardRef(function(e,t){let[n,r]=Y.useState();q(()=>{fa&&da&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,Z.jsx)(`span`,{...e,ref:t,style:ya,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})});function xa(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Q(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&b(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Sa(e,t){let n=e;for(;n;){if(o(n)&&n.matches(t))return n;n=n.assignedSlot??n.parentNode??(b(n)?n.host:null)}return null}function Ca(e){return`composedPath`in e?e.composedPath()[0]??e.target:e.target}var wa=`data-base-ui-focusable`;function Ta(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 Ea(e){return e.matches(`html,body`)}function Da(e){return C(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function Oa(e){return e?e.getAttribute(`role`)===`combobox`&&Da(e):!1}function ka(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Aa(e){e.preventDefault(),e.stopPropagation()}function ja(e){return`nativeEvent`in e}function Ma(e){return e.pointerType===``&&e.isTrusted?!0:ca&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function Na(e){return pa?!1:!ca&&e.width===0&&e.height===0||e.type===`pointerdown`&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`&&(ca||e.buttons===0)||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function Pa(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}function Fa(e){return e.visibility===`hidden`||e.visibility===`collapse`}function Ia(e,t=e?i(e):null){return!e||!e.isConnected||!t||Fa(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var La=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function Ra(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return b(n)?n.host:null}function za(e){for(let t of Array.from(e.children))if(Ue(t)===`summary`)return t;return null}function Ba(e,t){let n=za(t);return!!n&&(e===n||Q(n,e))}function Va(e){let t=e?Ue(e):``;return e!=null&&e.matches(La)&&(t!==`summary`||e.parentElement!=null&&Ue(e.parentElement)===`details`&&za(e.parentElement)===e)&&(t!==`details`||za(e)==null)&&(t!==`input`||e.type!==`hidden`)}function Ha(e){if(!Va(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=Ra(t)){let n=t!==e,r=Ue(t)===`slot`;if(t.hasAttribute(`inert`)||n&&Ue(t)===`details`&&!t.open&&!Ba(e,t)||t.hasAttribute(`hidden`)||!r&&!Ua(t,n))return!1}return!0}function Ua(e,t){let n=i(e);return t?n.display!==`none`:Ia(e,n)}function Wa(e){let t=e.tabIndex;if(t<0){let t=Ue(e);if(t===`details`||t===`audio`||t===`video`||C(e)&&e.isContentEditable)return 0}return t}function Ga(e){if(Ue(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function Ka(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 qa(e){if(C(e)&&Ue(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return C(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Ja(e,t){qa(e).forEach(e=>{Va(e)&&t.push(e),Ja(e,t)})}function Ya(e,t,n){qa(e).forEach(e=>{C(e)&&e.matches(t)&&n.push(e),Ya(e,t,n)})}function Xa(e){return Ha(e)&&Wa(e)>=0}function Za(e){let t=[];return Ja(e,t),t.filter(Ha)}function Qa(e){let t=Za(e);return t.filter(e=>Wa(e)>=0&&Ka(e,t))}function $a(e,t){let n=Qa(e),r=n.length;if(r===0)return;let i=xa(J(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function eo(e){return $a(J(e).body,1)||e}function to(e){return $a(J(e).body,-1)||e}function no(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!Q(n,r)}function ro(e){Qa(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function io(e){let t=[];Ya(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 ao(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...ao(e,t.id,n)])}function oo(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 so(e){return`data-base-ui-${e}`}var co=0;function lo(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(co);function a(){(!i||i())&&e?.focus({preventScroll:n})}if(r)return a(),Oe;let o=requestAnimationFrame(a);return co=o,()=>{co===o&&(cancelAnimationFrame(o),co=0)}}var uo=`data-base-ui-inert`,fo=new WeakMap,po=new WeakSet,mo=new WeakMap,ho=0;function go(e){return e?b(e)?e.host:go(e.parentNode):null}var _o=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=go(t);return e.contains(n)?n:null}).filter(e=>e!=null),vo=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},yo=(e,t,n)=>{let r=[],i=e=>{e&&!n.has(e)&&Array.from(e.children).forEach(e=>{Ue(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function bo(e,t,n,{mark:r=!0}){let i=_o(t,e),a=r?yo(t,vo(i),new Set(i)):[],o=[],s=[];if(n){let e=_o(t,Array.from(t.querySelectorAll(`[aria-live]`))),n=i.concat(e);yo(t,vo(n),new Set(n)).forEach(e=>{let t=e.getAttribute(`aria-hidden`),n=t!==null&&t!==`false`,r=(fo.get(e)||0)+1;fo.set(e,r),o.push(e),r===1&&n&&po.add(e),n||e.setAttribute(`aria-hidden`,`true`)})}return r&&a.forEach(e=>{let t=(mo.get(e)||0)+1;mo.set(e,t),s.push(e),t===1&&e.setAttribute(uo,``)}),ho+=1,()=>{o.forEach(e=>{let t=(fo.get(e)||0)-1;fo.set(e,t),t||(po.has(e)||e.removeAttribute(`aria-hidden`),po.delete(e))}),r&&s.forEach(e=>{let t=(mo.get(e)||0)-1;mo.set(e,t),t||e.removeAttribute(uo)}),--ho,ho||(fo=new WeakMap,po=new WeakSet,mo=new WeakMap)}}function xo(e,t={}){let{ariaHidden:n=!1,mark:r=!0}=t,i=J(e[0]).body;return bo(e,i,n,{mark:r})}var So={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},Co=e(ht(),1),wo=Y.createContext(null),To=()=>Y.useContext(wo),Eo=so(`portal`);function Do(e={}){let{ref:t,container:n,componentProps:i=Pe,elementProps:a}=e,o=Gi(),s=To()?.portalNode,[c,l]=Y.useState(null),[u,d]=Y.useState(null),f=G(e=>{e!==null&&d(e)}),p=Y.useRef(null);q(()=>{if(n===null){p.current&&(p.current=null,d(null),l(null));return}let e=(n&&(r(n)?n:n.current))??s??document.body;e==null?p.current&&(p.current=null,d(null),l(null)):p.current!==e&&(p.current=e,d(null),l(e))},[n,s]);let m=se(`div`,i,{ref:[t,f],props:[{id:o,[Eo]:``},a]}),h=c&&m?Co.createPortal(m,c):null;return{node:u,nodeId:Y.isValidElement(m)?m.props.id:void 0,subtree:h}}var Oo=Y.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}=Do({container:o,ref:t,componentProps:e,elementProps:c}),f=Y.useRef(null),p=Y.useRef(null),m=Y.useRef(null),h=Y.useRef(null),[g,_]=Y.useState(null),v=Y.useRef(!1),y=g?.modal,b=g?.open,x=!!g&&!g.modal&&g.open&&!!l;Y.useEffect(()=>{if(!l||y)return;function e(e){l&&e.relatedTarget&&no(e)&&(e.type===`focusin`?v.current&&=(io(l),!1):(ro(l),v.current=!0))}return qi(X(l,`focusin`,e,!0),X(l,`focusout`,e,!0))},[l,y]),q(()=>{l&&b===!0&&v.current&&(io(l),v.current=!1)},[b,l]);let S=Y.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:h,portalNode:l,setFocusManagerState:_}),[l]);return(0,Z.jsxs)(Y.Fragment,{children:[d,(0,Z.jsxs)(wo.Provider,{value:S,children:[x&&l&&(0,Z.jsx)(ba,{"data-type":`outside`,ref:f,onFocus:e=>{no(e,l)?m.current?.focus():to(g?g.domReference:null)?.focus()}}),x&&l&&(0,Z.jsx)(`span`,{role:s,"aria-owns":u,style:So}),l&&Co.createPortal(a,l),x&&l&&(0,Z.jsx)(ba,{"data-type":`outside`,ref:p,onFocus:e=>{no(e,l)?h.current?.focus():(eo(g?g.domReference:null)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,Mi(`focus-out`,e.nativeEvent)))}})]})]})});function ko(){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 Ao=Y.createContext(null),jo=Y.createContext(null),Mo=()=>Y.useContext(Ao)?.id||null,No=e=>{let t=Y.useContext(jo);return e??t};function Po(e){return e==null?e:`current`in e?e.current:e}function Fo(e,t){let n=l(Ca(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||(Ma(e)?`keyboard`:t||`mouse`):`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var Io=20,Lo=[];function Ro(){Lo=Lo.filter(e=>e.deref()?.isConnected)}function zo(e){Ro(),e&&Ue(e)!==`body`&&(Lo.push(new WeakRef(e)),Lo.length>Io&&(Lo=Lo.slice(-20)))}function Bo(){return Ro(),Lo[Lo.length-1]?.deref()}function Vo(e){return e?Xa(e)?e:Qa(e)[0]||e:null}function Ho(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=Za(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 Uo(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=G(()=>b.current.floatingContext?.nodeId),S=i===!1,w=Oa(_)&&S,T=Ji(i),E=Ji(a),ee=Ji(o),D=Ji(u),O=Ji(g),k=No(m),A=To(),j=Y.useRef(!1),M=Y.useRef(!1),N=Y.useRef(!1),P=Y.useRef(null),te=Y.useRef(``),F=Y.useRef(``),I=Y.useRef(null),L=Y.useRef(null),R=pe(I,p,A?.beforeInsideRef),z=pe(L,A?.afterInsideRef),B=$i(),V=$i(),H=_a(),U=A!=null,W=ka(v),ne=G((e=W)=>e?Qa(e):[]),re=G(()=>h?.().filter(e=>e!=null)??[]);Y.useEffect(()=>{if(r||!c)return;function e(e){e.key===`Tab`&&Q(W,xa(J(W)))&&ne().length===0&&!w&&Aa(e)}return X(J(W),`keydown`,e)},[r,W,c,w,ne]),Y.useEffect(()=>{if(r||!g)return;let e=J(W);function t(){N.current=!1}function n(e){let t=Ca(e),n=re(),r=Q(v,t)||Q(_,t)||Q(A?.portalNode,t)||n.some(e=>e===t||Q(e,t));N.current=!r,F.current=e.pointerType||`keyboard`,Sa(t,`[data-base-ui-click-trigger]`)&&(M.current=!0,V.start(0,()=>{M.current=!1}))}function i(){F.current=`keyboard`}return qi(X(e,`pointerdown`,n,!0),X(e,`pointerup`,t,!0),X(e,`pointercancel`,t,!0),X(e,`keydown`,i,!0),t)},[r,v,_,W,g,A,V,re]),Y.useEffect(()=>{if(r||!l)return;let e=J(W);function n(){M.current=!0,V.start(0,()=>{M.current=!1})}function i(e){let t=Ca(e);Xa(t)&&(P.current=t)}function a(n){let r=n.relatedTarget,i=n.currentTarget,a=Ca(n);c&&r==null&&a!=null&&Q(v,a)&&zo(a),queueMicrotask(()=>{let o=x(),l=t.context.triggerElements,u=re(),p=r?.hasAttribute(so(`focus-guard`))&&[I.current,L.current,A?.beforeInsideRef.current,A?.afterInsideRef.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,Po(f),Po(d)].includes(r),m=!(Q(_,r)||Q(v,r)||Q(r,v)||Q(A?.portalNode,r)||u.some(e=>e===r||Q(e,r))||l.hasMatchingElement(e=>Q(e,r))||p||k&&(ao(k.nodesRef.current,o).find(e=>Q(e.context?.elements.floating,r)||Q(e.context?.elements.domReference,r))||oo(k.nodesRef.current,o).find(e=>[e.context?.elements.floating,ka(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(i===_&&W&&Ho(W),s&&i!==_&&!Ia(a)&&xa(e)===e.body){if(C(W)&&(W.focus(),s===`popup`)){H.request(()=>{W.focus()});return}let e=ne(),t=P.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||W;C(n)&&n.focus()}b.current.insideReactTree?b.current.insideReactTree=!1:(w||!c)&&r&&m&&!M.current&&(w||r!==Bo())&&(j.current=!0,t.setOpen(!1,Mi(Li,n)))})}function o(){N.current||(b.current.insideReactTree=!0,B.start(0,()=>{b.current.insideReactTree=!1}))}let u=C(_)?_:null;if(v||u)return qi(u&&X(u,`focusout`,a),u&&X(u,`pointerdown`,n),v&&X(v,`focusin`,i),v&&X(v,`focusout`,a),v&&A&&X(v,`focusout`,o,!0))},[r,_,v,W,c,k,A,t,l,s,ne,w,x,b,B,V,H,d,f,re]),Y.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(A?.portalNode?.querySelectorAll(`[${so(`portal`)}]`)||[]),t=(k?oo(k.nodesRef.current,x()):[]).find(e=>Oa(e.context?.elements.domReference||null))?.context?.elements.domReference,n=xo([v,...e,I.current,L.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,...re(),t,Po(f),Po(d),w?_:null].filter(e=>e!=null),{ariaHidden:c||w,mark:!1}),i=xo([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,c,A,w,k,x,d,f,re]),q(()=>{if(!g||r||!C(W))return;te.current=``,F.current=``;let e=J(W),t=xa(e);queueMicrotask(()=>{let n=T.current,r=typeof n==`function`?n(D.current||``):n;if(r===void 0||r===!1||Q(W,t))return;let i=null,a=()=>(i??=ne(W),i[0]||W),o;o=r===!0||r===null?a():Po(r),o||=a();let s=Q(W,xa(e)),c=b.current.openEvent,l=c?.type===`mousedown`&&Ma(c);lo(o,{sync:l,preventScroll:o===W,shouldFocus(){if(!O.current)return!1;if(s)return!0;let t=xa(e);return!(t!==o&&Q(W,t))}})})},[r,g,W,ne,T,D,O,b]);let ie=Y.useRef(null);q(()=>{if(r||!W){ie.current=null;return}ie.current&&=(ie.current.cancelled=!0,null);let e=J(W),t=xa(e),n=D.current==null;zo(t);function i(e){if(e.open||(te.current=Fo(e.nativeEvent,F.current)),(e.reason===`focus-out`&&e.triggerElement?.hasAttribute(so(`focus-guard`))||e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`)&&(j.current=!0),e.reason===`outside-press`){if(e.nested)j.current=!1;else if(Ma(e.nativeEvent)||Na(e.nativeEvent))j.current=!1;else{let e=!1;J(W).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?j.current=!1:j.current=!0}}}y.on(`openchange`,i);function a(e){let r=E.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&&Ue(t)!==`body`?t:null,s=n?o||a:a||o;return s||=Bo()||null,typeof i==`boolean`?s:Po(i)||s||null}return()=>{y.off(`openchange`,i);let t=xa(e),n=re(),r=Q(v,t)||n.some(e=>e===t||Q(e,t))||k&&ao(k.nodesRef.current,x(),!1).some(e=>Q(e.context?.elements.floating,t)),o=E.current,s=te.current,c=a(s),l={cancelled:!1};ie.current=l,queueMicrotask(()=>{ie.current===l&&(ie.current=null);let n=Vo(c),i=ee.current??typeof o!=`boolean`;if(!l.cancelled&&o&&!j.current&&C(n)&&(i||n===t||t===e.body||r)){let e={preventScroll:!0};s===`keyboard`&&(e.focusVisible=!0),n.focus(e)}j.current=!1})}},[r,v,W,E,ee,D,y,k,_,x,re]),q(()=>{if(!da||g||!v)return;let e=xa(J(v));C(e)&&Da(e)&&Q(v,e)&&e.blur()},[g,v]),q(()=>{if(!r&&A)return A.setFocusManagerState({modal:c,closeOnFocusOut:l,open:g,onOpenChange:t.setOpen,domReference:_}),()=>{A.setFocusManagerState(null)}},[r,A,c,g,t,l,_]),q(()=>{if(!r&&W)return Ho(W),()=>{queueMicrotask(Ro)}},[r,W]);let ae=!r&&(!c||!w)&&(U||c);return(0,Z.jsxs)(Y.Fragment,{children:[ae&&(0,Z.jsx)(ba,{"data-type":`inside`,ref:R,onFocus:e=>{if(c){let e=ne();lo(e[e.length-1])}else A?.portalNode&&(j.current=!1,no(e,A.portalNode)?eo(_)?.focus():Po(f??A.beforeOutsideRef)?.focus())}}),n,ae&&(0,Z.jsx)(ba,{"data-type":`inside`,ref:z,onFocus:e=>{c?lo(ne()[0]):A?.portalNode&&(l&&(j.current=!0),no(e,A.portalNode)?to(_)?.focus():Po(d??A.afterOutsideRef)?.focus())}})]})}function Wo(){return!1}function Go(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function Ko(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:a=!0,outsidePressEvent:s=`sloppy`,referencePress:c=Wo,bubbles:l,externalTree:u}=t,d=e.useState(`open`),f=e.useState(`floatingElement`),{dataRef:p,events:m}=e.context,h=No(u),g=G(typeof a==`function`?a:()=>!1),_=typeof a==`function`?g:a,v=_!==!1,y=G(()=>s),{escapeKey:x,outsidePress:S}=Go(l),w=Y.useRef(!1),T=Y.useRef(!1),E=Y.useRef(!1),ee=Y.useRef(!1),D=Y.useRef(!1),O=Y.useRef(``),k=Y.useRef(null),A=$i(),M=$i(),N=$i(),P=G(()=>{M.clear(),p.current.insideReactTree=!1}),te=G(e=>{let t=p.current.floatingContext?.nodeId;return(h?ao(h.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),F=G(t=>Ta(t,e.select(`floatingElement`))||Ta(t,e.select(`domReferenceElement`))),I=G(t=>{c()&&e.setOpen(!1,Mi(Pi,t.nativeEvent))}),L=G(t=>{if(!d||!n||!r||t.key!==`Escape`)return;let i=ja(t)?t.nativeEvent:t;if(D.current||i.isComposing||!x&&te(`__escapeKeyBubbles`))return;let a=Mi(Ri,i);e.setOpen(!1,a),a.isCanceled||t.preventDefault(),!x&&!a.isPropagationAllowed&&t.stopPropagation()}),R=G(()=>{p.current.insideReactTree=!0,M.start(0,P)}),z=G(t=>{if(!d||!n||t.button!==0)return;let r=Ca(t.nativeEvent);Q(e.select(`floatingElement`),r)&&(w.current||(w.current=!0,T.current=!1))}),B=G(e=>{d&&n&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&w.current&&(T.current=!0)});Y.useEffect(()=>{function e(e){e.open||(ee.current=!1)}return m.on(`openchange`,e),()=>{m.off(`openchange`,e)}},[m]),Y.useEffect(()=>P,[P]),Y.useEffect(()=>{if(!d||!n)return d||(ee.current=!1,D.current=!1,O.current=``,k.current=null),P;p.current.__escapeKeyBubbles=x,p.current.__outsidePressBubbles=S;let t=new Qi,a=J(f);function s(){N.clear(),D.current=!0}function c(){D.current=!0,N.start(da?5:0,()=>{D.current=!1})}function l(){E.current=!0,t.start(0,()=>{E.current=!1})}function u(){w.current=!1,T.current=!1}function m(){let e=O.current,t=e===`pen`||!e?`mouse`:e,n=y(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function g(e){let t=m();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function M(e){let t=p.current.floatingContext?.nodeId,n=h&&ao(h.nodesRef.current,t).some(t=>Ta(e,t.context?.elements.floating));return F(e)||n}function I(n){if(g(n)){n.type!==`click`&&!F(n)&&(t.clear(),E.current=!1),P();return}if(p.current.insideReactTree){P();return}let r=Ca(n),a=`[${so(`inert`)}]`,s=o(r)?r.getRootNode():null,c=Array.from((b(s)?s:J(e.select(`floatingElement`))).querySelectorAll(a)),l=e.context.triggerElements;if(r&&(l.hasElement(r)||l.hasMatchingElement(e=>Q(e,r))))return;let u=o(r)?r:null;for(;u&&!Ce(u);){let e=j(u);if(Ce(e)||!o(e))break;u=e}if(!(c.length&&o(r)&&!Ea(r)&&!Q(r,e.select(`floatingElement`))&&c.every(e=>!Q(u,e)))){if(C(r)&&!(`touches`in n)){let e=Ce(r),t=i(r),a=/auto|scroll/,o=e||a.test(t.overflowX),s=e||a.test(t.overflowY),c=o&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,l=s&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,u=t.direction===`rtl`,d=l&&(u?n.offsetX<=r.offsetWidth-r.clientWidth:n.offsetX>r.clientWidth),f=c&&n.offsetY>r.clientHeight;if(d||f)return}if(!M(n)){if(m()===`intentional`){if(n.detail!==0&&!Ma(n)&&!ee.current)return;if(E.current){t.clear(),E.current=!1;return}}typeof _==`function`&&!_(n)||te(`__outsidePressBubbles`)||(e.setOpen(!1,Mi(Fi,n)),P())}}}function R(t){m()===`sloppy`&&t.pointerType!==`touch`&&e.select(`open`)&&n&&!F(t)&&I(t)}function z(t){if(m()!==`sloppy`||!e.select(`open`)||!n||F(t))return;let r=t.touches[0];r&&(k.current={startTime:Date.now(),startX:r.clientX,startY:r.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},A.start(1e3,()=>{k.current&&(k.current.dismissOnTouchEnd=!1,k.current.dismissOnMouseDown=!1)}))}function B(e,t){let n=Ca(e);if(!n)return;let r=X(n,e.type,()=>{t(e),r()})}function V(e){O.current=`touch`,B(e,z)}function H(e){A.clear(),e.type===`pointerdown`&&(e.button===0&&(ee.current=!0),O.current=e.pointerType),(e.type!==`mousedown`||!k.current||k.current.dismissOnMouseDown)&&B(e,e=>{e.type===`pointerdown`?R(e):I(e)})}function U(e){if(e.type===`pointercancel`&&(ee.current=!1),!w.current)return;let n=T.current;u(),m()===`intentional`&&(e.type===`pointercancel`?n&&l():M(e)||(n?l():(typeof _!=`function`||_(e))&&(t.clear(),E.current=!0,P())))}function W(e){if(m()!==`sloppy`||!k.current||F(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-k.current.startX),r=Math.abs(t.clientY-k.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(k.current.dismissOnTouchEnd=!0),i>10&&(I(e),A.clear(),k.current=null)}function ne(e){B(e,W)}function G(e){m()===`sloppy`&&k.current&&!F(e)&&(k.current.dismissOnTouchEnd&&I(e),A.clear(),k.current=null)}function re(e){B(e,G)}let ie=qi(r&&qi(X(a,`keydown`,L),X(a,`compositionstart`,s),X(a,`compositionend`,c)),v&&qi(X(a,`click`,H,!0),X(a,`pointerdown`,H,!0),X(a,`pointerup`,U,!0),X(a,`pointercancel`,U,!0),X(a,`mousedown`,H,!0),X(a,`mouseup`,U,!0),X(a,`touchstart`,V,{capture:!0,passive:!0}),X(a,`touchmove`,ne,{capture:!0,passive:!0}),X(a,`touchend`,re,{capture:!0,passive:!0})));return()=>{ie(),t.clear(),u(),E.current=!1}},[p,f,r,v,_,d,n,x,S,L,P,y,te,F,h,e,A,N]);let V=Y.useMemo(()=>({onKeyDown:L,onPointerDown:I,onClick:I}),[L,I]),H=Y.useMemo(()=>({onKeyDown:L,onPointerDown:B,onMouseDown:B,onClickCapture:R,onMouseDownCapture(e){R(),z(e)},onPointerDownCapture(e){R(),z(e)},onMouseUpCapture:R,onTouchEndCapture:R,onTouchMoveCapture:R}),[L,R,z,B]);return Y.useMemo(()=>n?{reference:V,floating:H,trigger:V}:{},[n,V,H])}var qo=Y.createContext(void 0);function Jo(){let e=Y.useContext(qo);if(e===void 0)throw Error(He(26));return e}function Yo(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 Zo(e){if(!Xo){let e=[];Xo=e,queueMicrotask(()=>{Xo=null,Co.flushSync(()=>{for(let t of e)t()})})}Xo.push(e)}function Qo(e,t=!1,n=!1){let r=_a();return G((i,a=null)=>{r.cancel();let o=Po(e);if(o==null)return;let s=o,c=()=>{n?Zo(()=>{a?.aborted||i()}):Co.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(Yo(s).map(e=>e.finished.then(Oe))).then(()=>{a?.aborted||c()},()=>{a?.aborted||(Yo(s).some(e=>e.pending||e.playState!==`finished`)?l():c())})}if(t){let e=vi;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 $o(e){let{enabled:t=!0,open:n,ref:r,batch:i=!1,onComplete:a}=e,o=G(a),s=Qo(r,n,i);Y.useEffect(()=>{if(!t)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[t,n,o,s])}var es=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`]);function ts(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:s}=e,c=t.useState(`open`),l=t.useState(`activeTriggerElement`),u=t.useState(n?`popupElement`:`positionerElement`),d=s;return t.useSyncedValue(`floatingId`,i),q(()=>{let e={open:c,floatingId:i,referenceElement:l,floatingElement:u};o(l)&&(e.domReferenceElement=l),r.state.positionReference===r.state.referenceElement&&(e.positionReference=l),r.update(e)},[c,i,l,u,r]),r.context.onOpenChange=d,r.context.nested=a,r}function ns(e,t=!1,n=!1,r=!1){let[i,a]=Y.useState(e&&t?`idle`:void 0),[o,s]=Y.useState(e&&!r);return e&&!o&&(s(!0),a(`starting`)),!e&&o&&i!==`ending`&&!n&&a(`ending`),!e&&!o&&i===`ending`&&a(void 0),q(()=>{if(!e&&o&&i!==`ending`&&n){let e=ga.request(()=>{a(`ending`)});return()=>{ga.cancel(e)}}},[e,o,i,n]),q(()=>{if(!e||t||i===void 0)return;let n=ga.request(()=>{a(void 0)});return()=>{ga.cancel(n)}},[t,e,i]),q(()=>{if(!e||!t)return;e&&o&&i!==`idle`&&a(`starting`);let n=ga.request(()=>{a(`idle`)});return()=>{ga.cancel(n)}},[t,e,o,i]),{mounted:o,setMounted:s,transitionStatus:i}}function rs(e){let{open:t,ref:n,preventUnmountOnClose:r,setPreventUnmountOnClose:i,onUnmount:a,animateInitialOpen:o}=e,s=G(i),{mounted:c,setMounted:l,transitionStatus:u}=ns(t,!1,!1,o),d=!t&&r;q(()=>{t&&s(!1)},[t,s]);let f=Y.useRef(c),p=Y.useRef(!1),m=Vi(),h=()=>{f.current=!1,l(!1),a()};q(()=>{f.current=c,p.current&&(p.current=!1,!t&&c&&h())});let g=G(()=>{f.current&&(t?(p.current=!0,m()):h())});return $o({enabled:c&&!t&&!d,open:t,ref:n,onComplete(){t||g()}}),{mounted:c,transitionStatus:u,preventUnmountingOnClose:d,forceUnmount:g}}var is={tabIndex:-1,[wa]:``};function as(e){return t=>t!==`touch`||e.current}function os(e,t=!1){let n=Gi(),r=Mo()!=null,i=Ke(()=>e(n,r)).current;return ts({popupStore:i,treatPopupAsFloatingElement:t,floatingRootContext:i.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:i.setOpen}),i}function ss({handle:e,store:t}){return q(()=>e.attachStore(t),[e,t]),null}function cs(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 ls(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=Y.useRef(null),i=e.useState(`open`),a=e.useState(`triggerCount`),o=e.useState(`activeTriggerId`),s=e.useState(`activeTriggerElement`);q(()=>{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=Mi(Ni);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[i,e,a,o,s,n])}function us(e,t,n,r){let{mounted:i,transitionStatus:a,forceUnmount:o}=rs({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 Ke(()=>(t.set(`mounted`,i),null)),t.useSyncedValues({mounted:i,transitionStatus:a}),{forceUnmount:o,transitionStatus:a}}function ds(e,t){e.useSyncedValues(t),q(()=>()=>{e.update({activeTriggerProps:Pe,inactiveTriggerProps:Pe,popupProps:Pe})},[e])}function fs(e,t){q(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),q(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var ps=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}},ms=[],hs=void 0;function gs(){return hs}function _s(e){ms.push(e)}function vs(e){let t=(t,n)=>{let r=Ke(ys).current,i;try{hs=r;for(let e of ms)e.before(r);i=e(t,n);for(let e of ms)e.after(r);r.didInitialize=!0}finally{hs=void 0}return i};return t.displayName=e.displayName||e.name,t}function ys(){return{didInitialize:!1}}var bs=rt(),xs=tt(),Ss=he(19)?Ts:Es;function Cs(e,t,n,r,i){return Ss(e,t,n,r,i)}function ws(e,t,n,r,i){let a=Y.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,bs.useSyncExternalStore)(e.subscribe,a,a)}_s({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,bs.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Ts(e,t,n,r,i){let a=gs();if(!a)return ws(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 Es(e,t,n,r,i){return(0,xs.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var Ds=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 Cs(this,e,t,n,r)}},Os=class extends Ds{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){Y.useDebugValue(e);let n=this;q(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;q(()=>(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);q(()=>{t.update(e)},[t,...n])}useControlledProp(e,t){Y.useDebugValue(e);let n=this,r=t!==void 0;q(()=>{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 Y.useDebugValue(e),Cs(this,this.selectors[e],t,n,r)}useContextCallback(e,t){Y.useDebugValue(e);let n=G(t??Oe);this.context[e]=n}useStateSetter(e){let t=Y.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)}})}},ks={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},As=class extends Os{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:ko(),nested:n,triggerElements:i},ks),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&Pa(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 js(e,t,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new As({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:Pe,inactiveTriggerProps:Pe,popupProps:Pe}}var Ms=e=>e.triggerIdProp??e.activeTriggerId,Ns=e=>e.openProp??e.open,Ps=e=>(e.popupElement?.id??e.floatingId)||void 0;function Fs(e,t){return t!==void 0&&Ns(e)&&Ms(e)===t}function Is(e,t){return Fs(e,t)?!0:t!==void 0&&Ns(e)&&Ms(e)==null&&!e.openedWithoutTrigger&&e.triggerCount===1}var Ls={open:Ns,mounted:e=>e.mounted,transitionStatus:e=>Ns(e)&&!e.mounted?`starting`:e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:Ms,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:Ps,isTriggerActive:(e,t)=>t!==void 0&&Ms(e)===t,isOpenedByTrigger:(e,t)=>Fs(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&Ms(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>Is(e,t)?Ps(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement},Rs=`--nested-dialogs`,zs=`data-nested-dialog-open`,Bs={...ki,...Si,nestedDialogOpen(e){return e?{[zs]:``}:null}},Vs=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,c=_i(),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`);Jo(),$o({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});let C=o===void 0?as(c.context.popupRef):o,w=g>0,T=c.useStateSetter(`popupElement`),E=se(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:w},props:[f,{id:S,"aria-labelledby":y,"aria-describedby":l,role:x,...is,hidden:!m,onKeyDown(e){es.has(e.key)&&e.stopPropagation()},style:{[Rs]:g}},s],ref:[t,c.context.popupRef,T],stateAttributesMapping:Bs});return(0,Z.jsx)(Uo,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:C,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:E})});function Hs(e){return he(19)?e:e?`true`:void 0}var Us=Y.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,Z.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),Ws=Y.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=_i(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,Z.jsx)(qo.Provider,{value:n,children:(0,Z.jsxs)(Oo,{ref:t,...r,children:[a&&o===!0&&(0,Z.jsx)(Us,{ref:i.context.internalBackdropRef,inert:Hs(!s)}),e.children]})}):null}),Gs={},Ks={},qs=``;function Js(e,t){return Se(e)?e:t}function Ys(e,t,n){return/hidden|clip/.test(e.getComputedStyle(Js(t,n)).overflowY)}function Xs(e){if(typeof document>`u`)return!1;let t=J(e);return l(t).innerWidth-t.documentElement.clientWidth>0}function Zs(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=Js(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 Qs(e){let t=J(e),n=t.documentElement,r=t.body,i=Js(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 $s(e){let t=J(e),n=t.documentElement,r=t.body,i=l(n),a=0,o=0,s=!1,c=ga.create();if(da&&(i.visualViewport?.scale??1)!==1)return()=>{};function u(){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},qs=n.style.scrollBehavior,Ks={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=Js(n,r);s=Zs(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 d(){Object.assign(n.style,Gs),Object.assign(r.style,Ks),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=qs)}function f(){d(),c.request(u)}u();let p=X(i,`resize`,f);return()=>{c.cancel(),d(),typeof i.removeEventListener==`function`&&p()}}var ec=new class{lockCount=0;restore=null;timeoutLock=Qi.create();timeoutUnlock=Qi.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=l(n);if(Ys(i,n,r)){let t=new i.MutationObserver(()=>{Ys(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=oa||!Xs(e);this.restore=a?Qs(e):$s(e)}};function tc(e=!0,t=null){q(()=>{if(e)return ec.acquire(t)},[e,t])}function nc({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]=Y.useState(0),[d,f]=Y.useState(0),p=l===0,m=Ko(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=Ca(t);if(p&&!a){if(o){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return t||r?t===n||r===n||Q(n,s)&&!n?.hasAttribute(`data-base-ui-portal`):!0}return!0}return!1},escapeKey:p});return tc(r&&o===!0,s),e.useContextCallback(`onNestedDialogOpen`,(t,n)=>{(e.select(`open`)||e.select(`mounted`))&&(u(t),f(n))}),q(()=>{!r&&!i&&(u(0),f(0))},[r,i]),q(()=>(t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(l+1,d+ +!!n),()=>{t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(0,0)}),[n,r,l,d,t]),ds(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}var rc={...Ls,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},ic=class extends Os{constructor(e,t,n){let r=new ps,i=ac(e,r,t,n);super(i,oc(r),rc)}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(cs(this.state,e,t.trigger)))}};function ac(e,t,n,r=!1){return{...js(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 oc(e){return{popupRef:Y.createRef(),backdropRef:Y.createRef(),internalBackdropRef:Y.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function sc(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=_i(!0),y={modal:h,disablePointerDismissal:g,nested:v!=null,role:_},b=os((e,t)=>new ic({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`);fs(b,x),ls(b);let{forceUnmount:w}=us(x,b);Y.useImperativeHandle(l,()=>({unmount:w,close:()=>b.setOpen(!1,Mi(zi))}),[w,b]);let T=x||S||u!=null;return(0,Z.jsxs)(gi.Provider,{value:b,children:[u&&(0,Z.jsx)(ss,{handle:u,store:b}),T&&(0,Z.jsx)(nc,{store:b,parentContext:v?.context,isDrawer:p}),typeof n==`function`?n({payload:C}):n]})}var cc=vs(function(e){return sc(`dialog`,e)}),lc=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=_i(),c=Ki(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),se(`h2`,e,{ref:t,props:[{id:c},o]})}),$=v();function uc(e){let t=(0,$.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,Z.jsx)(cc,{"data-slot":`dialog`,...n}),t[2]=n,t[3]=r),r}function dc(e){let t=(0,$.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,Z.jsx)(Ws,{"data-slot":`dialog-portal`,...n}),t[2]=n,t[3]=r),r}function fc(e){let t=(0,$.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=S(`fixed inset-0 isolate z-50 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(ji,{"data-slot":`dialog-overlay`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function pc(e){let t=(0,$.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,Z.jsx)(fc,{}),t[5]=s):s=t[5];let c;t[6]===r?c=t[7]:(c=S(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-xs/relaxed text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,r),t[6]=r,t[7]=c);let l;t[8]===o?l=t[9]:(l=o&&(0,Z.jsxs)(Bi,{"data-slot":`dialog-close`,render:(0,Z.jsx)(Ee,{variant:`ghost`,className:`absolute top-2 right-2`,size:`icon-sm`}),children:[(0,Z.jsx)(Vt,{}),(0,Z.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,Z.jsxs)(dc,{children:[s,(0,Z.jsxs)(Vs,{"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 mc(e){let t=(0,$.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=S(`flex flex-col gap-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(`div`,{"data-slot":`dialog-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function hc(e){let t=(0,$.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=S(`text-sm font-medium`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(lc,{"data-slot":`dialog-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function gc(e){let t=(0,$.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=S(`pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-xs bg-muted px-1 font-sans text-[0.625rem] font-medium text-muted-foreground select-none in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(`kbd`,{"data-slot":`kbd`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function _c(e){let t=(0,$.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=S(`inline-flex items-center gap-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(`kbd`,{"data-slot":`kbd-group`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function vc(e,t){let n=t.x-e.x,r=t.y-e.y;return n*n+r*r>=625e-8}var yc=h([`#da702c`,`#d0a215`,`#3aa99f`,`#4385be`,`#8b7ec8`,`#ce5d97`]),bc=xe({color:yc,id:K(B,fe(P(32))),name:K(B,fe(P(32))),x:K(u,fe(Ge({maximum:1,minimum:0}))),y:K(u,fe(Ge({maximum:1,minimum:0})))}),xc=D(bc),Sc=class extends Ft(st(`portfolio.join`,{payload:xe(K(bc.fields,Ye([`color`,`id`,`name`]))),stream:!0,success:xc}),st(`portfolio.move`,{payload:xe(K(bc.fields,Ye([`color`,`id`,`x`,`y`])))})){},Cc=class extends jt()(`@deslop/portfolio/lib/utils/RpcClient`,{group:Sc,protocol:wt(`@deslop/portfolio`)}){},wc=[`1`,`2`,`3`,`4`,`5`,`6`],Tc={lastFrameAt:0,targetX:0,targetY:0,viewportHeight:0,viewportWidth:0,x:0,y:0};function Ec(e){return Math.floor(At.defaultValue().nextDoubleUnsafe()*e)}function Dc(){let e=`0123456789abcdef`;return K(We(6,()=>e[Ec(I(e))]??`0`),qe(``))}function Oc(e){let t=Ie(yc.literals,t=>t!==e);return t[Ec(a(t))]??yc.literals[0]}function kc(){let e=sessionStorage.getItem(`portfolio.id`),t=sessionStorage.getItem(`portfolio.name`),n=yc.literals[Ec(a(yc.literals))]??yc.literals[0];if(y(e)&&y(t))return{color:n,id:e,name:t};let r=Dc(),i={color:n,id:`v-${r}`,name:`Guest-${K(r,_(0,3))}`};return sessionStorage.setItem(`portfolio.id`,i.id),sessionStorage.setItem(`portfolio.name`,i.name),i}var Ac=kc(),jc=_t(Cc.runtime.atom(K(Cc,we(e=>e(`portfolio.join`,Ac)),ct,kt(k(`2 seconds`)),ot(()=>({trails:[],visitors:[]}),(e,t)=>{let n={trails:Te(De(e.trails,Ie(t,t=>!T(e.visitors,e=>e.id===t.id&&e.color===t.color&&e.x===t.x&&e.y===t.y))),180),visitors:t};return x(n,[n])}))));function Mc(e,t,n){e.style.setProperty(`--cursor-transform`,`translate3d(${t}px, ${n}px, 0)`)}function Nc(e,t){return{lastFrameAt:0,targetX:e.x,targetY:e.y,viewportHeight:t.height,viewportWidth:t.width,x:e.x,y:e.y}}function Pc(e){return Math.abs(e.target-e.position)<.3?e.target:Qe({maximum:e.maximum,minimum:0})(e.position+(e.target-e.position)*e.catchUp)}function Fc(e,t){let n=oe(e.lastFrameAt>0,{onFalse:()=>16,onTrue:()=>Qe({maximum:64,minimum:8})(t-e.lastFrameAt)}),r=e.targetX-e.x,i=e.targetY-e.y,a=gt(1,(1-Math.exp(-n/130))*(1+Math.hypot(r,i)/220));return{...e,lastFrameAt:t,x:Pc({catchUp:a,maximum:e.viewportWidth,position:e.x,target:e.targetX}),y:Pc({catchUp:a,maximum:e.viewportHeight,position:e.y,target:e.targetY})}}function Ic(e,t,n){let r={x:t.x*n.width,y:t.y*n.height};return e.viewportWidth!==n.width||e.viewportHeight!==n.height?Nc(r,n):e.targetX===r.x&&e.targetY===r.y?e:{...e,targetX:r.x,targetY:r.y}}function Lc(e,t){t(requestAnimationFrame(()=>{e()?Lc(e,t):t(0)}))}function Rc(e){return addEventListener(`resize`,e),()=>{removeEventListener(`resize`,e)}}function zc(e){let t=(0,$.c)(5),n;t[0]===e.className?n=t[1]:(n=S(`bg-background`,e.className),t[0]=e.className,t[1]=n);let r;return t[2]!==e.children||t[3]!==n?(r=(0,Z.jsx)(`div`,{className:n,children:e.children}),t[2]=e.children,t[3]=n,t[4]=r):r=t[4],r}function Bc(e){let t=(0,$.c)(11),n,r,i,a;if(t[0]!==e.trails||t[1]!==e.viewport){let o=it();c(e.trails,Dt(),(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=K(t,at(n.id),d);if(F(i))return Ot(o,{color:r.trail.color,x:r.col*26+1,y:r.row*26+1}),$e(t,n.id,r);let a=nt(Math.abs(r.col-i.col),Math.abs(r.row-i.row));for(let e of We(a+1,ue)){let t=oe(a===0,{onFalse:()=>e/a,onTrue:Hc}),n=Xe(i.col+(r.col-i.col)*t,0),s=Xe(i.row+(r.row-i.row)*t,0),c=oe(t<1,{onFalse:()=>r.trail.color,onTrue:()=>i.trail.color});Ot(o,{color:c,x:n*26+1,y:s*26+1})}return $e(t,n.id,r)}),n=!0,r=`pointer-events-none fixed inset-0 z-1 size-full`,i=`crispEdges`,a=N(Ze(o),Vc),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 o;return t[6]!==n||t[7]!==r||t[8]!==i||t[9]!==a?(o=(0,Z.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]=o):o=t[10],o}function Vc(e,t){return(0,Z.jsx)(`rect`,{x:e.x,y:e.y,width:24,height:24,fill:e.color,fillOpacity:.22},t)}function Hc(){return 1}function Uc(e){let t=(0,$.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Z.jsx)(zt,{className:`size-4 text-(--cursor-color)`}),t[0]=n):n=t[0];let r;return t[1]===e.label?r=t[2]:(r=(0,Z.jsxs)(`div`,{className:`flex items-center gap-1`,children:[n,(0,Z.jsx)(`span`,{className:`bg-background text-foreground rounded-sm border border-(--cursor-color) px-1.5 py-0.5 font-mono text-xs whitespace-nowrap`,children:e.label})]}),t[1]=e.label,t[2]=r),r}function Wc(e){let t=(0,$.c)(11),n=(0,Y.useRef)(null),r=(0,Y.useRef)(Tc),i=(0,Y.useRef)(0),a,o;t[0]!==e.cursor||t[1]!==e.viewport?(a=()=>{r.current=Ic(r.current,e.cursor,e.viewport),n.current!==null&&Mc(n.current,r.current.x,r.current.y);function t(e){n.current!==null&&(r.current=Fc(r.current,e),Mc(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,Y.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;t[6]===e.cursor.name?c=t[7]:(c=(0,Z.jsx)(Uc,{label:e.cursor.name}),t[6]=e.cursor.name,t[7]=c);let l;return t[8]!==s||t[9]!==c?(l=(0,Z.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:c}),t[8]=s,t[9]=c,t[10]=l):l=t[10],l}function Gc(e){let t=(0,$.c)(8),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.name} (you)`,a;t[3]===i?a=t[4]:(a=(0,Z.jsx)(Uc,{label:i}),t[3]=i,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,Z.jsx)(`div`,{"aria-hidden":!0,className:`pointer-events-none fixed top-0 left-0 z-20 transform-(--cursor-transform)`,style:r,children:a}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function Kc(e){let t=(0,$.c)(5),n;t[0]===e.className?n=t[1]:(n=S(`relative z-10 flex flex-col items-center overflow-hidden px-3 py-4 sm:px-6 sm:py-6`,e.className),t[0]=e.className,t[1]=n);let r;return t[2]!==e.children||t[3]!==n?(r=(0,Z.jsx)(`section`,{className:n,children:e.children}),t[2]=e.children,t[3]=n,t[4]=r):r=t[4],r}function qc(e){let t=(0,$.c)(7),n;t[0]===e.title?n=t[1]:(n=(0,Z.jsx)(`h2`,{className:`text-muted-foreground border-border border-b pb-2 font-mono text-xs`,children:e.title}),t[0]=e.title,t[1]=n);let r;t[2]===e.children?r=t[3]:(r=(0,Z.jsx)(`div`,{className:`divide-border flex flex-col divide-y`,children:e.children}),t[2]=e.children,t[3]=r);let i;return t[4]!==n||t[5]!==r?(i=(0,Z.jsxs)(zc,{className:`flex w-full max-w-3xl flex-col px-4 py-3 sm:px-6`,children:[n,r]}),t[4]=n,t[5]=r,t[6]=i):i=t[6],i}function Jc(){let e=(0,$.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Z.jsx)(Kc,{className:`pt-10 sm:pt-20`,children:(0,Z.jsxs)(zc,{className:`flex w-full max-w-3xl flex-col gap-3 px-4 py-6 sm:px-6`,children:[(0,Z.jsxs)(`h1`,{className:`text-foreground text-4xl font-semibold tracking-tight sm:text-5xl`,children:[U.firstName,` `,U.lastName]}),(0,Z.jsx)(`p`,{className:`text-primary font-mono text-sm`,children:U.title}),(0,Z.jsx)(`p`,{className:`text-foreground/90 text-base`,children:ie}),(0,Z.jsx)(`p`,{className:`text-muted-foreground font-mono text-xs`,children:U.location})]})}),e[0]=t):t=e[0],t}function Yc(){let e=(0,$.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Z.jsx)(Kc,{children:(0,Z.jsx)(qc,{title:`skills`,children:N(ze,Xc)})}),e[0]=t):t=e[0],t}function Xc(e){return(0,Z.jsxs)(`div`,{className:`flex flex-col gap-1 py-3 sm:flex-row sm:gap-6`,children:[(0,Z.jsxs)(`h3`,{className:`flex w-40 shrink-0 items-center gap-2 text-sm font-medium`,children:[(0,Z.jsx)(e.icon,{className:`text-primary size-4`}),e.area]}),(0,Z.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:e.items})]},e.area)}function Zc(e){let t=(0,$.c)(20),n;t[0]===e.project.role?n=t[1]:(n=(0,Z.jsx)(`span`,{className:`text-muted-foreground ml-2 font-normal`,children:e.project.role}),t[0]=e.project.role,t[1]=n);let r;t[2]!==e.project.name||t[3]!==n?(r=(0,Z.jsxs)(`h3`,{className:`text-sm font-medium`,children:[e.project.name,n]}),t[2]=e.project.name,t[3]=n,t[4]=r):r=t[4];let i=`View ${e.project.name} on GitHub`,a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Z.jsx)(Lt,{className:`size-4`}),t[5]=a):a=t[5];let o;t[6]!==e.project.href||t[7]!==i?(o=(0,Z.jsx)(`a`,{href:e.project.href,target:`_blank`,rel:`noopener noreferrer`,"aria-label":i,className:`text-primary hover:text-primary/80 transition-colors`,children:a}),t[6]=e.project.href,t[7]=i,t[8]=o):o=t[8];let s;t[9]!==r||t[10]!==o?(s=(0,Z.jsxs)(`div`,{className:`flex items-baseline justify-between gap-3`,children:[r,o]}),t[9]=r,t[10]=o,t[11]=s):s=t[11];let c;t[12]===e.project.description?c=t[13]:(c=(0,Z.jsx)(`p`,{className:`text-foreground/90 text-sm`,children:e.project.description}),t[12]=e.project.description,t[13]=c);let l;t[14]===e.project.stack?l=t[15]:(l=(0,Z.jsx)(`p`,{className:`text-muted-foreground font-mono text-xs`,children:e.project.stack}),t[14]=e.project.stack,t[15]=l);let u;return t[16]!==s||t[17]!==c||t[18]!==l?(u=(0,Z.jsxs)(`div`,{className:`flex flex-col gap-1 py-3`,children:[s,c,l]}),t[16]=s,t[17]=c,t[18]=l,t[19]=u):u=t[19],u}function Qc(){let e=(0,$.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Z.jsx)(Kc,{children:(0,Z.jsx)(qc,{title:`projects`,children:N(Me,$c)})}),e[0]=t):t=e[0],t}function $c(e){return(0,Z.jsx)(Zc,{project:e},e.name)}function el(){let e=(0,$.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Z.jsx)(Kc,{children:(0,Z.jsx)(qc,{title:`experience`,children:N(Le,tl)})}),e[0]=t):t=e[0],t}function tl(e){return(0,Z.jsxs)(`div`,{className:`flex flex-col gap-2 py-3`,children:[(0,Z.jsxs)(`div`,{className:`flex flex-col gap-0.5 sm:flex-row sm:items-baseline sm:justify-between`,children:[(0,Z.jsxs)(`h3`,{className:`text-sm font-medium`,children:[e.company,(0,Z.jsxs)(`span`,{className:`text-muted-foreground ml-2 font-normal`,children:[e.role,O(e.note)&&` · ${e.note}`]})]}),(0,Z.jsx)(`p`,{className:`text-muted-foreground font-mono text-xs sm:text-right`,children:K([e.period,e.location],Ie(O),qe(` · `))})]}),(0,Z.jsx)(`ul`,{className:`flex flex-col gap-1`,children:N(e.highlights,nl)})]},e.company)}function nl(e){return(0,Z.jsxs)(`li`,{className:`text-foreground/90 flex items-start gap-2 text-sm`,children:[(0,Z.jsx)(`span`,{className:`bg-muted-foreground mt-2 size-1 shrink-0 rounded-full`,"aria-hidden":`true`}),(0,Z.jsx)(`span`,{children:e})]},e)}function rl(){let e=(0,$.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=N(Ae,al),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Z.jsx)(Kc,{children:(0,Z.jsxs)(qc,{title:`education and languages`,children:[t,(0,Z.jsx)(`div`,{className:`flex flex-wrap gap-x-6 gap-y-1 py-3`,children:N(_e,il)})]})}),e[1]=n):n=e[1],n}function il(e){return(0,Z.jsxs)(`span`,{className:`text-sm`,children:[(0,Z.jsx)(`span`,{className:`font-medium`,children:e.language}),(0,Z.jsx)(`span`,{className:`text-muted-foreground ml-2 font-mono text-xs`,children:e.level})]},e.language)}function al(e){return(0,Z.jsxs)(`div`,{className:`flex flex-wrap items-baseline justify-between gap-x-4 gap-y-1 py-3`,children:[(0,Z.jsxs)(`h3`,{className:`text-sm font-medium`,children:[e.school,(0,Z.jsxs)(`span`,{className:`text-muted-foreground ml-2 font-normal`,children:[e.degree,O(e.grade)&&` (${e.grade})`]})]}),(0,Z.jsx)(`span`,{className:`text-muted-foreground font-mono text-xs`,children:e.period})]},e.school)}function ol(){let e=(0,$.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Z.jsxs)(Kc,{children:[(0,Z.jsx)(qc,{title:`contact`,children:N([Be.email,Be.pec,Be.phone,Be.github,{href:`/cv`,label:`CV`,value:`${U.portfolio}/cv`}],sl)}),(0,Z.jsxs)(`p`,{className:`text-muted-foreground mt-4 font-mono text-xs`,children:[`© 2026 `,U.firstName,` `,U.lastName,` · VAT `,U.vat]})]}),e[0]=t):t=e[0],t}function sl(e){return(0,Z.jsxs)(`a`,{href:e.href,className:`hover:text-primary flex items-baseline justify-between gap-3 py-3 text-sm transition-colors`,target:`_blank`,rel:`noopener noreferrer`,children:[(0,Z.jsx)(`span`,{className:`text-muted-foreground`,children:e.label}),(0,Z.jsx)(`span`,{className:`font-mono text-xs break-all`,children:e.value})]},e.label)}function cl(e){let t=(0,$.c)(8),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Z.jsx)(mc,{children:(0,Z.jsx)(hc,{children:`Keyboard shortcuts`})}),t[0]=n):n=t[0];let r,i;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,Z.jsxs)(_c,{children:[(0,Z.jsx)(gc,{children:`j`}),(0,Z.jsx)(gc,{children:`k`})]}),i=(0,Z.jsx)(`span`,{children:`next / prev section`}),t[1]=r,t[2]=i):(r=t[1],i=t[2]);let a;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Z.jsx)(gc,{children:`1`}),t[3]=a):a=t[3];let o;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Z.jsxs)(pc,{className:`sm:max-w-md`,children:[n,(0,Z.jsxs)(`div`,{className:`text-muted-foreground grid grid-cols-[auto_1fr] items-center gap-x-4 gap-y-3 text-xs sm:gap-x-8`,children:[r,i,(0,Z.jsxs)(_c,{children:[a,`–`,(0,Z.jsx)(gc,{children:`6`})]}),(0,Z.jsx)(`span`,{children:`jump to section`}),(0,Z.jsx)(gc,{children:`r`}),(0,Z.jsx)(`span`,{children:`change cursor color`}),(0,Z.jsx)(gc,{children:`?`}),(0,Z.jsx)(`span`,{children:`toggle this overlay`}),(0,Z.jsx)(gc,{children:`Esc`}),(0,Z.jsx)(`span`,{children:`close this overlay`})]})]}),t[4]=o):o=t[4];let s;return t[5]!==e.onOpenChange||t[6]!==e.open?(s=(0,Z.jsx)(uc,{open:e.open,onOpenChange:e.onOpenChange,children:o}),t[5]=e.onOpenChange,t[6]=e.open,t[7]=s):s=t[7],s}function ll(e){let t=(0,$.c)(29),n=sn(jc),r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,Z.jsx)(`div`,{className:`trail-grid pointer-events-none fixed inset-0 z-1`}),t[0]=r):r=t[0];let i;t[1]!==e.viewport||t[2]!==n.value.trails?(i=(0,Z.jsx)(Bc,{trails:n.value.trails,viewport:e.viewport}),t[1]=e.viewport,t[2]=n.value.trails,t[3]=i):i=t[3];let o;if(t[4]!==e.viewport||t[5]!==n.value.visitors){let r;t[7]===e.viewport?r=t[8]:(r=t=>t.id===Ac.id?(0,Z.jsx)(`div`,{className:`own-cursor`,children:(0,Z.jsx)(Gc,{cursor:t,viewport:e.viewport})},t.id):(0,Z.jsx)(Wc,{cursor:t,viewport:e.viewport},t.id),t[7]=e.viewport,t[8]=r),o=N(n.value.visitors,r),t[4]=e.viewport,t[5]=n.value.visitors,t[6]=o}else o=t[6];let s;t[9]===n.value.visitors?s=t[10]:(s=K(ke(n.value.visitors,ml),R({onNone:pl,onSome:fl})),t[9]=n.value.visitors,t[10]=s);let c;t[11]===s?c=t[12]:(c=(0,Z.jsx)(`span`,{className:`size-1.5 rounded-full bg-(--identity-color)`,style:{"--identity-color":s}}),t[11]=s,t[12]=c);let l;t[13]===n.value.visitors?l=t[14]:(l=a(n.value.visitors),t[13]=n.value.visitors,t[14]=l);let u;t[15]===l?u=t[16]:(u=(0,Z.jsx)(`span`,{className:`text-primary`,children:l}),t[15]=l,t[16]=u);let d;t[17]===n.value.visitors?d=t[18]:(d=oe(a(n.value.visitors)===1,{onFalse:dl,onTrue:ul}),t[17]=n.value.visitors,t[18]=d);let f;t[19]===d?f=t[20]:(f=(0,Z.jsx)(`span`,{className:`text-muted-foreground`,children:d}),t[19]=d,t[20]=f);let p;t[21]!==c||t[22]!==u||t[23]!==f?(p=(0,Z.jsxs)(`div`,{className:`border-border bg-background pointer-events-none fixed bottom-3 left-3 z-50 flex h-7 items-center gap-2 rounded-md border px-2 font-mono text-xs sm:bottom-4 sm:left-4`,children:[c,u,f]}),t[21]=c,t[22]=u,t[23]=f,t[24]=p):p=t[24];let m;return t[25]!==i||t[26]!==o||t[27]!==p?(m=(0,Z.jsxs)(Z.Fragment,{children:[r,i,o,p]}),t[25]=i,t[26]=o,t[27]=p,t[28]=m):m=t[28],m}function ul(){return`visitor`}function dl(){return`visitors`}function fl(e){return e.color}function pl(){return Ac.color}function ml(e){return e.id===Ac.id}function hl(){let e=(0,$.c)(48),t=(0,Y.useSyncExternalStore)(Rc,Sl,xl),n=(0,Y.useSyncExternalStore)(Rc,bl,yl),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,Y.useRef)(null),o=(0,Y.useRef)(0),s;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(s=Cc.mutation(`portfolio.move`),e[3]=s):s=e[3];let c=nn(s),l=(0,Y.useRef)(0),u=(0,Y.useRef)(null),d=(0,Y.useRef)(null),f=(0,Y.useRef)(Ac.color),[p,m]=(0,Y.useState)(!1),h,g;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(h=()=>()=>{cancelAnimationFrame(l.current)},g=[],e[4]=h,e[5]=g):(h=e[4],g=e[5]),(0,Y.useEffect)(h,g);let _=function(){return me(a.current?.querySelectorAll(`:scope > section`)??[])},v=function(e){let t=_()[e];F(t)||(t.scrollIntoView({behavior:`smooth`,block:`start`}),o.current=e)},y;e[6]===c?y=e[7]:(y=function(e){d.current={sentAt:performance.now(),x:e.x,y:e.y},c({payload:{color:f.current,id:Ac.id,x:e.x,y:e.y}})},e[6]=c,e[7]=y);let b=y,x;e[8]===b?x=e[9]:(x=function(){f.current=Oc(f.current),b(u.current??d.current??{x:.5,y:.5})},e[8]=b,e[9]=x);let S=x,C;e[10]===b?C=e[11]:(C=function(){if(u.current!==null&&d.current!==null){if(!vc(d.current,u.current))return!1;if(performance.now()-d.current.sentAt<50)return!0}return u.current!==null&&b(u.current),!1},e[10]=b,e[11]=C);let w=C,T;e[12]!==w||e[13]!==i?(T=function(e){e.pointerType!==`touch`&&(e.currentTarget.style.setProperty(`--pointer-x`,`${e.clientX}px`),e.currentTarget.style.setProperty(`--pointer-y`,`${e.clientY}px`),i.width!==0&&i.height!==0&&(u.current={x:Qe({maximum:.999999,minimum:0})(e.clientX/i.width),y:Qe({maximum:.999999,minimum:0})(e.clientY/i.height)},l.current===0&&Lc(w,e=>{l.current=e})))},e[12]=w,e[13]=i,e[14]=T):T=e[14];let E=T,ee;e[15]===S?ee=e[16]:(ee={callback:S,hotkey:`R`},e[15]=S,e[16]=ee);let D;e[17]===m?D=e[18]:(D=()=>{m(vl)},e[17]=m,e[18]=D);let O;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(O={key:`?`,shift:!0},e[19]=O):O=e[19];let k;e[20]===D?k=e[21]:(k={callback:D,hotkey:O},e[20]=D,e[21]=k),hi([{callback:()=>{v(gt(o.current+1,wc.length-1))},hotkey:`J`},{callback:()=>{v(nt(o.current-1,0))},hotkey:`K`},...N(wc,(e,t)=>({callback:()=>{v(t)},hotkey:e})),ee,k]);let A;e[22]!==o||e[23]!==_?(A=e=>{let t=e.currentTarget.scrollTop+e.currentTarget.clientHeight/2;o.current=K(_(),ge(e=>e.offsetTop<=t),te(_l))},e[22]=o,e[23]=_,e[24]=A):A=e[24];let j,M,P,I,L,R;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,Z.jsx)(Jc,{}),M=(0,Z.jsx)(Yc,{}),P=(0,Z.jsx)(el,{}),I=(0,Z.jsx)(Qc,{}),L=(0,Z.jsx)(rl,{}),R=(0,Z.jsx)(ol,{}),e[25]=j,e[26]=M,e[27]=P,e[28]=I,e[29]=L,e[30]=R):(j=e[25],M=e[26],P=e[27],I=e[28],L=e[29],R=e[30]);let z;e[31]===i?z=e[32]:(z=(0,Z.jsx)(Y.Suspense,{fallback:null,children:(0,Z.jsx)(ll,{viewport:i})}),e[31]=i,e[32]=z);let B;e[33]===m?B=e[34]:(B=()=>{m(gl)},e[33]=m,e[34]=B);let V;e[35]!==p||e[36]!==B?(V=(0,Z.jsx)(Ee,{variant:`outline`,size:`icon`,"aria-expanded":p,"aria-haspopup":`dialog`,"aria-label":`Toggle keyboard shortcuts`,onClick:B,className:`fixed right-3 bottom-3 z-50 sm:right-4 sm:bottom-4`,children:`?`}),e[35]=p,e[36]=B,e[37]=V):V=e[37];let H;e[38]!==m||e[39]!==p?(H=(0,Z.jsx)(cl,{open:p,onOpenChange:m}),e[38]=m,e[39]=p,e[40]=H):H=e[40];let U;return e[41]!==a||e[42]!==A||e[43]!==z||e[44]!==V||e[45]!==H||e[46]!==E?(U=(0,Z.jsxs)(`div`,{ref:a,className:`portfolio-scroll relative min-h-0 flex-1 overflow-x-hidden overflow-y-scroll`,onPointerMove:E,onScroll:A,children:[j,M,P,I,L,R,z,V,H]}),e[41]=a,e[42]=A,e[43]=z,e[44]=V,e[45]=H,e[46]=E,e[47]=U):U=e[47],U}function gl(e){return!e}function _l(){return 0}function vl(e){return!e}function yl(){return 0}function bl(){return window.innerWidth}function xl(){return 0}function Sl(){return window.innerHeight}export{hl as component};
@@ -1 +0,0 @@
1
- import{Gi as e,I as t,L as n,Rc as r,Ts as i,a,c as o,i as s,il as c,l,n as u,nl as d,o as f,ps as p,r as m,s as h,t as g,ws as _,xs as v}from"./profile-B5GCDOor.js";var y={name:`printer`,size:24,node:[[`path`,{d:`M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2`,key:`143wyd`}],[`path`,{d:`M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6`,key:`1itne7`}],[`rect`,{x:`6`,y:`14`,width:`12`,height:`8`,rx:`1`,key:`1ue0tg`}]]};y.node;var b=t(y),x=n(),S=c();function C(e){let t=(0,x.c)(3),n;return t[0]!==e.contact.href||t[1]!==e.contact.value?(n=(0,S.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 w(e){let t=(0,x.c)(5),n;t[0]===e.title?n=t[1]:(n=(0,S.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,S.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 T(e){let t=(0,x.c)(15),n;t[0]===e.title?n=t[1]:(n=(0,S.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=i(e.details,E),t[2]=e.details,t[3]=r);let a;t[4]!==n||t[5]!==r?(a=(0,S.jsxs)(`h3`,{children:[n,r]}),t[4]=n,t[5]=r,t[6]=a):a=t[6];let o;t[7]===e.aside?o=t[8]:(o=(0,S.jsx)(`span`,{className:`text-foreground/70 text-label font-mono whitespace-nowrap`,children:e.aside}),t[7]=e.aside,t[8]=o);let s;t[9]!==a||t[10]!==o?(s=(0,S.jsxs)(`div`,{className:`flex flex-wrap items-baseline justify-between gap-x-4`,children:[a,o]}),t[9]=a,t[10]=o,t[11]=s):s=t[11];let c;return t[12]!==e.children||t[13]!==s?(c=(0,S.jsxs)(`div`,{className:`flex break-inside-avoid flex-col gap-0.5`,children:[s,e.children]}),t[12]=e.children,t[13]=s,t[14]=c):c=t[14],c}function E(e){return(0,S.jsxs)(`span`,{className:`text-foreground/70`,children:[` · `,e]},e)}function D(e){let t=(0,x.c)(4),n;t[0]===e.items?n=t[1]:(n=i(e.items,O),t[0]=e.items,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,S.jsx)(`ul`,{className:`flex flex-col gap-0.5`,children:n}),t[2]=n,t[3]=r),r}function O(e){return(0,S.jsxs)(`li`,{className:`flex gap-2.5`,children:[(0,S.jsx)(`span`,{"aria-hidden":!0,className:`border-foreground/75 mt-1.75 size-1 shrink-0 border-2`}),(0,S.jsx)(`span`,{children:e})]},e)}function k(){let e=(0,x.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,S.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:[_(31,j),_(11,A)]}),e[0]=t):t=e[0],t}function A(e){return(0,S.jsx)(`line`,{x1:0,x2:`100%`,y1:e*26+.5,y2:e*26+.5,stroke:`currentColor`},`row-${e}`)}function j(e){return(0,S.jsx)(`line`,{x1:e*26+.5,x2:e*26+.5,y1:0,y2:`100%`,stroke:`currentColor`},`column-${e}`)}function M(){let e=(0,x.c)(18),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,S.jsx)(l,{variant:`outline`,size:`icon`,"aria-label":`Print or save as PDF`,onClick:R,className:`fixed top-3 right-3 print:hidden`,children:(0,S.jsx)(b,{})}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,S.jsx)(k,{}),e[1]=n):n=e[1];let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,S.jsxs)(`h1`,{className:`tracking-name text-2xl leading-none font-extrabold uppercase`,children:[a.firstName,` `,(0,S.jsx)(`span`,{className:`text-foreground/55 tracking-label mt-0.5 block text-xl font-medium`,children:a.lastName})]}),e[2]=r):r=e[2];let c;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,S.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,S.jsxs)(`p`,{className:`text-label tracking-label flex items-center gap-2 whitespace-nowrap uppercase`,children:[(0,S.jsx)(`span`,{"aria-hidden":!0,className:`border-foreground size-2 border-4`}),a.title]}),(0,S.jsx)(`p`,{className:`font-document text-document`,children:o})]}),e[3]=c):c=e[3];let p,_,y;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,S.jsx)(C,{contact:g.phone}),_=(0,S.jsx)(`br`,{}),y=(0,S.jsx)(C,{contact:g.email}),e[4]=p,e[5]=_,e[6]=y):(p=e[4],_=e[5],y=e[6]);let T,E;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,S.jsx)(C,{contact:g.github}),E=(0,S.jsx)(`br`,{}),e[7]=T,e[8]=E):(T=e[7],E=e[8]);let D,O;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,S.jsx)(C,{contact:g.pec}),D=(0,S.jsx)(`br`,{}),e[9]=D,e[10]=O):(D=e[9],O=e[10]);let A;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,S.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:[n,r,(0,S.jsxs)(`div`,{className:`flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6`,children:[c,(0,S.jsxs)(`address`,{className:`text-foreground/70 text-label whitespace-nowrap not-italic sm:text-right`,children:[a.location,` · `,p,_,y,` · `,T,E,`PEC `,O,D,(0,S.jsx)(C,{contact:{href:`https://${a.portfolio}`,value:a.portfolio}}),` · VAT `,a.vat]})]})]}),e[11]=A):A=e[11];let j;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,S.jsx)(w,{title:`Technical Skills`,children:(0,S.jsx)(`dl`,{className:`flex flex-col gap-0.5`,children:i(h,L)})}),e[12]=j):j=e[12];let M;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,S.jsx)(w,{title:`Work Experience`,children:(0,S.jsx)(`div`,{className:`flex flex-col gap-1.5`,children:i(m,I)})}),e[13]=M):M=e[13];let z;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,S.jsx)(w,{title:`Projects`,children:(0,S.jsx)(`div`,{className:`flex flex-col gap-1.5`,children:i(f,F)})}),e[14]=z):z=e[14];let B,V;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(B=i(u,P),V=(0,S.jsx)(`strong`,{className:`font-semibold`,children:`Languages:`}),e[15]=B,e[16]=V):(B=e[15],V=e[16]);let H;return e[17]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,S.jsxs)(`div`,{className:`pb-safe min-h-0 flex-1 overflow-y-auto px-6 pt-12 select-text print:overflow-visible print:p-0`,children:[t,(0,S.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,M,z,(0,S.jsxs)(w,{title:`Education & Languages`,children:[B,(0,S.jsxs)(`p`,{children:[V,` `,d(s,i(N),v(` · `))]})]})]})]}),e[17]=H):H=e[17],H}function N(e){return`${e.language} (${e.level})`}function P(e){return(0,S.jsx)(T,{title:e.degree,details:p([e.school,e.grade],r),aside:e.period},e.school)}function F(t){return(0,S.jsx)(T,{title:t.name,details:[t.role],aside:d(t.href,e(`https://`,``)),children:(0,S.jsx)(`p`,{children:t.description})},t.name)}function I(e){return(0,S.jsx)(T,{title:e.company,details:p([e.role,e.note,e.location],r),aside:e.period,children:(0,S.jsx)(D,{items:e.highlights})},e.company)}function L(e){return(0,S.jsxs)(`div`,{className:`flex`,children:[(0,S.jsxs)(`dt`,{className:`w-32 shrink-0 font-semibold`,children:[e.area,`:`]}),(0,S.jsx)(`dd`,{children:e.items})]},e.area)}function R(){print()}export{M as component};