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