@deslop/auth 0.1.1233 → 0.1.1235

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.
@@ -17,4 +17,4 @@ import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{n as t,o as n,s as r}f
17
17
  --nojs-bg: black !important;
18
18
  --nojs-fg: white !important;
19
19
  }
20
- }`,Q=n();function he(e){let t=(0,W.c)(12),n,r,a;t[0]===e?(n=t[1],r=t[2],a=t[3]):({className:n,containerClassName:r,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a);let o;t[4]===r?o=t[5]:(o=i(`cn-input-otp flex items-center has-disabled:opacity-50`,r),t[4]=r,t[5]=o);let s;t[6]===n?s=t[7]:(s=i(`disabled:cursor-not-allowed`,n),t[6]=n,t[7]=s);let c;return t[8]!==a||t[9]!==o||t[10]!==s?(c=(0,Q.jsx)(pe,{"data-slot":`input-otp`,containerClassName:o,spellCheck:!1,className:s,...a}),t[8]=a,t[9]=o,t[10]=s,t[11]=c):c=t[11],c}function ge(e){let t=(0,W.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 a;t[3]===n?a=t[4]:(a=i(`flex items-center rounded-md has-aria-invalid:border-destructive has-aria-invalid:ring-2 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,Q.jsx)(`div`,{"data-slot":`input-otp-group`,className:a,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function _e(e){let t=(0,W.c)(17),n,r,a;t[0]===e?(n=t[1],r=t[2],a=t[3]):({index:r,className:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a);let o=R.useContext(fe),s;t[4]!==r||t[5]!==o?.slots?(s=o?.slots[r]??{},t[4]=r,t[5]=o?.slots,t[6]=s):s=t[6];let{char:c,hasFakeCaret:l,isActive:u}=s,d;t[7]===n?d=t[8]:(d=i(`relative flex size-7 items-center justify-center border-y border-r border-input bg-input/20 text-xs/relaxed transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md aria-invalid:border-destructive data-[active=true]:z-10 data-[active=true]:border-ring data-[active=true]:ring-2 data-[active=true]:ring-ring/30 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40`,n),t[7]=n,t[8]=d);let f;t[9]===l?f=t[10]:(f=l&&(0,Q.jsx)(`div`,{className:`pointer-events-none absolute inset-0 flex items-center justify-center`,children:(0,Q.jsx)(`div`,{className:`h-4 w-px animate-caret-blink bg-foreground duration-1000`})}),t[9]=l,t[10]=f);let p;return t[11]!==c||t[12]!==u||t[13]!==a||t[14]!==d||t[15]!==f?(p=(0,Q.jsxs)(`div`,{"data-slot":`input-otp-slot`,"data-active":u,className:d,...a,children:[c,f]}),t[11]=c,t[12]=u,t[13]=a,t[14]=d,t[15]=f,t[16]=p):p=t[16],p}function ve(e){let t=(0,W.c)(5),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,Q.jsx)(L,{}),t[2]=r):r=t[2];let i;return t[3]===n?i=t[4]:(i=(0,Q.jsx)(`div`,{"data-slot":`input-otp-separator`,className:`flex items-center [&_svg:not([class*='size-'])]:size-4`,role:`separator`,...n,children:r}),t[3]=n,t[4]=i),i}function ye(e){let t=(0,W.c)(30),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Q.jsx)(k,{htmlFor:`code`,children:`Approve a sign-in`}),t[0]=n):n=t[0];let r=e.typed,a;t[1]===e?a=t[2]:(a=t=>{e.onType(y(t))},t[1]=e,t[2]=a);let o=e.state===`Checking`,s=e.state===`Missing`,c=e.state===`Missing`&&`refuse`,l;t[3]===c?l=t[4]:(l=i(`gap-2`,c),t[3]=c,t[4]=l);let u;t[5]===e.state?u=t[6]:(u=p(m(0,3),t=>(0,Q.jsx)(_e,{index:t,"aria-invalid":e.state===`Missing`,className:`h-11 flex-1 font-mono text-lg`},t)),t[5]=e.state,t[6]=u);let d;t[7]===u?d=t[8]:(d=(0,Q.jsx)(ge,{className:`flex-1`,children:u}),t[7]=u,t[8]=d);let f;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,Q.jsx)(ve,{}),t[9]=f):f=t[9];let h;t[10]===e.state?h=t[11]:(h=p(m(4,7),t=>(0,Q.jsx)(_e,{index:t,"aria-invalid":e.state===`Missing`,className:`h-11 flex-1 font-mono text-lg`},t)),t[10]=e.state,t[11]=h);let _;t[12]===h?_=t[13]:(_=(0,Q.jsx)(ge,{className:`flex-1`,children:h}),t[12]=h,t[13]=_);let v;t[14]!==e.typed||t[15]!==_||t[16]!==a||t[17]!==o||t[18]!==s||t[19]!==l||t[20]!==d?(v=(0,Q.jsxs)(he,{id:`code`,maxLength:8,value:r,onChange:a,pasteTransformer:y,pattern:`^[A-Za-z]+$`,inputMode:`text`,autoFocus:!0,autoComplete:`off`,autoCapitalize:`characters`,disabled:o,"aria-invalid":s,"aria-describedby":`code-error`,containerClassName:l,children:[d,f,_]}),t[14]=e.typed,t[15]=_,t[16]=a,t[17]=o,t[18]=s,t[19]=l,t[20]=d,t[21]=v):v=t[21];let b;t[22]===e.state?b=t[23]:(b=e.state===`Missing`&&(0,Q.jsx)(P,{id:`code-error`,children:`No waiting sign-in has this code.`}),t[22]=e.state,t[23]=b);let x;t[24]===e.answered?x=t[25]:(x=g(e.answered,{onNone:xe,onSome:be}),t[24]=e.answered,t[25]=x);let S;return t[26]!==v||t[27]!==b||t[28]!==x?(S=(0,Q.jsxs)(`section`,{className:`flex flex-col gap-4`,children:[n,v,b,x]}),t[26]=v,t[27]=b,t[28]=x,t[29]=S):S=t[29],S}function be(e){return(0,Q.jsx)(`p`,{className:`text-muted-foreground settle-in flex items-center gap-1.5 text-xs`,role:`status`,children:c(e.accept,{onFalse:()=>(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(j,{className:`size-3.5`}),F(e.request.clientName,e.request.device),` denied`]}),onTrue:()=>(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(D,{className:`text-primary size-3.5`}),F(e.request.clientName,e.request.device),` approved`]})})})}function xe(){return null}function $(e){let t=(0,W.c)(11),n;t[0]!==e.answered||t[1]!==e.onType||t[2]!==e.state||t[3]!==e.typed?(n=(0,Q.jsx)(ye,{answered:e.answered,onType:e.onType,state:e.state,typed:e.typed}),t[0]=e.answered,t[1]=e.onType,t[2]=e.state,t[3]=e.typed,t[4]=n):n=t[4];let r;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,Q.jsx)(M,{label:`Apps`,media:!0,rows:9}),t[5]=r):r=t[5];let i;t[6]===e.pending?i=t[7]:(i=(0,Q.jsx)(R.Suspense,{fallback:r,children:(0,Q.jsx)(O,{pending:e.pending})}),t[6]=e.pending,t[7]=i);let a;return t[8]!==n||t[9]!==i?(a=(0,Q.jsxs)(Q.Fragment,{children:[n,i]}),t[8]=n,t[9]=i,t[10]=a):a=t[10],a}function Se(){let e=(0,W.c)(9);x(S),x(T);let t=E(N.send),n;e[0]===t?n=e[1]:(n=function(e){t({_tag:`Typed`,typed:e})},e[0]=t,e[1]=n);let r=n,i;e[2]===r?i=e[3]:(i=(0,Q.jsx)(U,{machine:N,path:`Typing`,children:e=>(0,Q.jsx)($,{answered:h(e.value.answered),onType:r,pending:d(),state:`Typing`,typed:e.value.typed})}),e[2]=r,e[3]=i);let a;e[4]===r?a=e[5]:(a=(0,Q.jsx)(U,{machine:N,path:`Code`,children:e=>(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(U,{machine:N,path:`Code.Looking`,children:()=>(0,Q.jsx)($,{answered:d(),onType:r,pending:d(),state:`Checking`,typed:e.value.code})}),(0,Q.jsx)(U,{machine:N,path:`Code.Found`,children:t=>(0,Q.jsx)($,{answered:d(),onType:r,pending:s(t.value.request),state:`Found`,typed:e.value.code})}),(0,Q.jsx)(U,{machine:N,path:`Code.Missing`,children:()=>(0,Q.jsx)($,{answered:d(),onType:r,pending:d(),state:`Missing`,typed:e.value.code})})]})}),e[4]=r,e[5]=a);let o;return e[6]!==i||e[7]!==a?(o=(0,Q.jsxs)(Q.Fragment,{children:[i,a]}),e[6]=i,e[7]=a,e[8]=o):o=e[8],o}export{Se as component};
20
+ }`,Q=n();function he(e){let t=(0,W.c)(12),n,r,a;t[0]===e?(n=t[1],r=t[2],a=t[3]):({className:n,containerClassName:r,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a);let o;t[4]===r?o=t[5]:(o=i(`cn-input-otp flex items-center has-disabled:opacity-50`,r),t[4]=r,t[5]=o);let s;t[6]===n?s=t[7]:(s=i(`disabled:cursor-not-allowed`,n),t[6]=n,t[7]=s);let c;return t[8]!==a||t[9]!==o||t[10]!==s?(c=(0,Q.jsx)(pe,{"data-slot":`input-otp`,containerClassName:o,spellCheck:!1,className:s,...a}),t[8]=a,t[9]=o,t[10]=s,t[11]=c):c=t[11],c}function ge(e){let t=(0,W.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 a;t[3]===n?a=t[4]:(a=i(`flex items-center rounded-md has-aria-invalid:border-destructive has-aria-invalid:ring-2 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,Q.jsx)(`div`,{"data-slot":`input-otp-group`,className:a,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function _e(e){let t=(0,W.c)(17),n,r,a;t[0]===e?(n=t[1],r=t[2],a=t[3]):({index:r,className:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a);let o=R.useContext(fe),s;t[4]!==r||t[5]!==o?(s=o?.slots[r]??{},t[4]=r,t[5]=o,t[6]=s):s=t[6];let{char:c,hasFakeCaret:l,isActive:u}=s,d;t[7]===n?d=t[8]:(d=i(`relative flex size-7 items-center justify-center border-y border-r border-input bg-input/20 text-xs/relaxed transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md aria-invalid:border-destructive data-[active=true]:z-10 data-[active=true]:border-ring data-[active=true]:ring-2 data-[active=true]:ring-ring/30 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40`,n),t[7]=n,t[8]=d);let f;t[9]===l?f=t[10]:(f=l&&(0,Q.jsx)(`div`,{className:`pointer-events-none absolute inset-0 flex items-center justify-center`,children:(0,Q.jsx)(`div`,{className:`h-4 w-px animate-caret-blink bg-foreground duration-1000`})}),t[9]=l,t[10]=f);let p;return t[11]!==c||t[12]!==u||t[13]!==a||t[14]!==d||t[15]!==f?(p=(0,Q.jsxs)(`div`,{"data-slot":`input-otp-slot`,"data-active":u,className:d,...a,children:[c,f]}),t[11]=c,t[12]=u,t[13]=a,t[14]=d,t[15]=f,t[16]=p):p=t[16],p}function ve(e){let t=(0,W.c)(5),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,Q.jsx)(L,{}),t[2]=r):r=t[2];let i;return t[3]===n?i=t[4]:(i=(0,Q.jsx)(`div`,{"data-slot":`input-otp-separator`,className:`flex items-center [&_svg:not([class*='size-'])]:size-4`,role:`separator`,...n,children:r}),t[3]=n,t[4]=i),i}function ye(e){let t=(0,W.c)(30),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Q.jsx)(k,{htmlFor:`code`,children:`Approve a sign-in`}),t[0]=n):n=t[0];let r=e.typed,a;t[1]===e?a=t[2]:(a=t=>{e.onType(y(t))},t[1]=e,t[2]=a);let o=e.state===`Checking`,s=e.state===`Missing`,c=e.state===`Missing`&&`refuse`,l;t[3]===c?l=t[4]:(l=i(`gap-2`,c),t[3]=c,t[4]=l);let u;t[5]===e.state?u=t[6]:(u=p(m(0,3),t=>(0,Q.jsx)(_e,{index:t,"aria-invalid":e.state===`Missing`,className:`h-11 flex-1 font-mono text-lg`},t)),t[5]=e.state,t[6]=u);let d;t[7]===u?d=t[8]:(d=(0,Q.jsx)(ge,{className:`flex-1`,children:u}),t[7]=u,t[8]=d);let f;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,Q.jsx)(ve,{}),t[9]=f):f=t[9];let h;t[10]===e.state?h=t[11]:(h=p(m(4,7),t=>(0,Q.jsx)(_e,{index:t,"aria-invalid":e.state===`Missing`,className:`h-11 flex-1 font-mono text-lg`},t)),t[10]=e.state,t[11]=h);let _;t[12]===h?_=t[13]:(_=(0,Q.jsx)(ge,{className:`flex-1`,children:h}),t[12]=h,t[13]=_);let v;t[14]!==e.typed||t[15]!==_||t[16]!==a||t[17]!==o||t[18]!==s||t[19]!==l||t[20]!==d?(v=(0,Q.jsxs)(he,{id:`code`,maxLength:8,value:r,onChange:a,pasteTransformer:y,pattern:`^[A-Za-z]+$`,inputMode:`text`,autoFocus:!0,autoComplete:`off`,autoCapitalize:`characters`,disabled:o,"aria-invalid":s,"aria-describedby":`code-error`,containerClassName:l,children:[d,f,_]}),t[14]=e.typed,t[15]=_,t[16]=a,t[17]=o,t[18]=s,t[19]=l,t[20]=d,t[21]=v):v=t[21];let b;t[22]===e.state?b=t[23]:(b=e.state===`Missing`&&(0,Q.jsx)(P,{id:`code-error`,children:`No waiting sign-in has this code.`}),t[22]=e.state,t[23]=b);let x;t[24]===e.answered?x=t[25]:(x=g(e.answered,{onNone:xe,onSome:be}),t[24]=e.answered,t[25]=x);let S;return t[26]!==v||t[27]!==b||t[28]!==x?(S=(0,Q.jsxs)(`section`,{className:`flex flex-col gap-4`,children:[n,v,b,x]}),t[26]=v,t[27]=b,t[28]=x,t[29]=S):S=t[29],S}function be(e){return(0,Q.jsx)(`p`,{className:`text-muted-foreground settle-in flex items-center gap-1.5 text-xs`,role:`status`,children:c(e.accept,{onFalse:()=>(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(j,{className:`size-3.5`}),F(e.request.clientName,e.request.device),` denied`]}),onTrue:()=>(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(D,{className:`text-primary size-3.5`}),F(e.request.clientName,e.request.device),` approved`]})})})}function xe(){return null}function $(e){let t=(0,W.c)(11),n;t[0]!==e.answered||t[1]!==e.onType||t[2]!==e.state||t[3]!==e.typed?(n=(0,Q.jsx)(ye,{answered:e.answered,onType:e.onType,state:e.state,typed:e.typed}),t[0]=e.answered,t[1]=e.onType,t[2]=e.state,t[3]=e.typed,t[4]=n):n=t[4];let r;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,Q.jsx)(M,{label:`Apps`,media:!0,rows:9}),t[5]=r):r=t[5];let i;t[6]===e.pending?i=t[7]:(i=(0,Q.jsx)(R.Suspense,{fallback:r,children:(0,Q.jsx)(O,{pending:e.pending})}),t[6]=e.pending,t[7]=i);let a;return t[8]!==n||t[9]!==i?(a=(0,Q.jsxs)(Q.Fragment,{children:[n,i]}),t[8]=n,t[9]=i,t[10]=a):a=t[10],a}function Se(){let e=(0,W.c)(9);x(S),x(T);let t=E(N.send),n;e[0]===t?n=e[1]:(n=function(e){t({_tag:`Typed`,typed:e})},e[0]=t,e[1]=n);let r=n,i;e[2]===r?i=e[3]:(i=(0,Q.jsx)(U,{machine:N,path:`Typing`,children:e=>(0,Q.jsx)($,{answered:h(e.value.answered),onType:r,pending:d(),state:`Typing`,typed:e.value.typed})}),e[2]=r,e[3]=i);let a;e[4]===r?a=e[5]:(a=(0,Q.jsx)(U,{machine:N,path:`Code`,children:e=>(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(U,{machine:N,path:`Code.Looking`,children:()=>(0,Q.jsx)($,{answered:d(),onType:r,pending:d(),state:`Checking`,typed:e.value.code})}),(0,Q.jsx)(U,{machine:N,path:`Code.Found`,children:t=>(0,Q.jsx)($,{answered:d(),onType:r,pending:s(t.value.request),state:`Found`,typed:e.value.code})}),(0,Q.jsx)(U,{machine:N,path:`Code.Missing`,children:()=>(0,Q.jsx)($,{answered:d(),onType:r,pending:d(),state:`Missing`,typed:e.value.code})})]})}),e[4]=r,e[5]=a);let o;return e[6]!==i||e[7]!==a?(o=(0,Q.jsxs)(Q.Fragment,{children:[i,a]}),e[6]=i,e[7]=a,e[8]=o):o=e[8],o}export{Se as component};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/route-a1N8Et11.js","assets/rolldown-runtime-WkwZ5CU-.js","assets/react-BUjtWCUj.js","assets/client-sCUiygGT.js","assets/effect-BhsQyU3F.js","assets/components-DfiHr7mH.js","assets/badge-BZyO-IMU.js","assets/(home)-DGkpAbto.js","assets/people-CED21lpE.js"])))=>i.map(i=>d[i]);
2
- import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{o as t,r as n,s as r}from"./react-BUjtWCUj.js";import{$ as i,Z as a,_t as o,at as s,ct as c,dt as l,et as u,ft as d,gt as f,ht as p,it as m,lt as h,mt as g,n as ee,nt as _,ot as v,pt as te,rt as y,st as b,tt as x,ut as S}from"./client-sCUiygGT.js";var C=e(r(),1),w=C.use,T=C.useLayoutEffect,E=C.createContext(null);function D(e){return C.useContext(E)}function O(e){let t=D();return C.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function k(e){let t=D(),n=O(),r=C.useRef(null);return T(()=>{r.current!==e&&(n(e),r.current=e)},[t,e,n]),null}var A=`Error preloading route! ☝️`;function j(e,t){if(e)return typeof e==`string`?e:e[t]}function M(e){return e?.scriptFormat??`module`}function N(e,t,n){let r=P(t),i=j(n,`script`)??r.crossOrigin;return{...M(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,fetchPriority:`low`,...i?{crossOrigin:i}:{}}}function P(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function F(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function ne(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function I(e,t,n,r){let a=i(e),o=[],s=[];for(let e of a)for(let t of Array.isArray(e.scripts)?e.scripts:[]){if(!t)continue;let{children:e,...i}=t;o.push({tag:`script`,attrs:{...i,...r,nonce:n},children:e})}if(t)for(let e of a)for(let r of t.routes[e.routeId]?.scripts??[])s.push({tag:`script`,attrs:{...r.attrs,nonce:n},children:r.children});return[o,s]}function L([e,t],n){return n?[...n.before,...e,...t,n.boundary]:[...e,...t]}var re=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e,this._branch=void 0;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=y:this.parentRoute||h();let r=n?y:t?.path;r&&r!==`/`&&(r=b(r));let i=t?.id||r,a=n?y:s((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(i??``));r===`__root__`&&(r=`/`);let o=a===`__root__`?`/`:r===void 0?this.parentRoute.fullPath:s(this.parentRoute.fullPath+`/`+r);this._path=r,this._id=a,this._fullPath=o,this._to=c(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>_({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},ie=class extends re{constructor(e){super(e)}};function ae(e,t){let n=e.stores.location,r=new Set,i,a,o=n=>{u(e,t,n)||(i=n,r.forEach(e=>e()))};return[()=>i??n.get(),e=>(r.size||(i=n.get(),a=n.subscribe(o).unsubscribe),r.add(e),()=>{r.delete(e),r.size||(a(),i=void 0)})]}var R=C.createContext(void 0),oe=C.createContext(void 0),z=t();function se(...e){let t=C.useRef(e),n=t.current;return e.forEach((e,t)=>{S(n[t],e,!1,!0)||(n[t]=e)}),t.current}function B(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(A)})}function ce(e,t){let n=typeof e==`string`&&te(e);if(n)return t.has(n)?e:null}function le(e,t,n,r){let i=v(e.pathname,r),a=v(t.pathname,r);return(n?.exact?i!==a:!i.startsWith(a)||i.length!==a.length&&i[a.length]!==`/`)||(n?.includeSearch??!0)&&!S(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||e.hash===t.hash}function ue(e,t,n){let r=D(),i=C.useRef(null),a=C.useCallback(e=>{if(i.current=e,typeof t==`function`)return t(e);t&&(t.current=e)},[t]),{activeOptions:o,to:s,preload:c,preloadDelay:l,disabled:u,target:d,onClick:f,onBlur:p,onFocus:m,onMouseEnter:h,onMouseLeave:g,onTouchStart:ee}=e,[_,v,y]=se(e.search,e.params,o),b=C.useContext(R),x=(r.stores._linkScopes??={})[b]??=ae(r,b),[S,w,T]=C.useMemo(()=>{let t=ce(s,r.protocolAllowlist);if(t!==void 0){let n=[t??void 0];return[e,()=>n]}let n={...e},i,a,o,c=()=>{let e=x[0]();if(e!==i){n._fromLocation=e;let t=r.buildLocation(n),o=ge(t,r,u),s=u||o&&!te(o)?le(e,t,y,r.basepath):void 0;a&&a[0]===o&&a[1]===s||(a=[o,s]),i=e}return a};return[n,c,y?.includeHash&&(()=>{let e=c();return e[1]?o??=[e[0],!1]:e})]},[r,x,e.from,e.hash,e.href,s,_,v,e.state,e.mask,e.unsafeRelative,y,u]),[E,O]=C.useSyncExternalStore(x[1],w,T||w),k=O===void 0&&E,A=u||E===void 0,j=C.useRef(!1),M=e.reloadDocument||k||A?!1:c??r.options.defaultPreload,N=l??r.options.defaultPreloadDelay??0,P=C.useCallback(e=>{let t=e?.isIntersecting;t??M===`intent`?N?i.t??=setTimeout(()=>{i.t=void 0,B(r,S)},N):B(r,S):t===!1&&V(i)},[r,S,i,M,N]);C.useEffect(()=>{if(!M)return;M===`render`&&!j.current&&(j.current=!0,B(r,S));let e=!0,t;return M===`viewport`&&i.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&P(t.pop())},{rootMargin:`100px`}),t.observe(i.current)),()=>{e=!1,t?.disconnect(),V(i)}},[r,S,M,P,i]);let F=me(e,n);if(F.ref=t?a:i,k)return F.href=k,F;let ne=t=>{let n=d??t.currentTarget.getAttribute(`target`);A||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||n&&n!==`_self`||t.button!==0||(t.preventDefault(),V(i),r.navigate({...e,_fromLocation:S._fromLocation}))},I=()=>{M===`intent`&&B(r,S)},L=()=>{M===`intent`&&V(i)};return F.onClick=H(f,ne),F.onBlur=H(p,L),F.onFocus=H(m,P),F.onMouseEnter=H(h,P),F.onMouseLeave=H(g,L),F.onTouchStart=H(ee,I),he(F,e,O,E,A,n)}var de={},fe={className:`active`},pe=new Set([`to`,`params`,`search`,`hash`,`state`,`mask`,`from`,`unsafeRelative`,`reloadDocument`,`preload`,`preloadDelay`,`preloadIntentProximity`,`hashScrollIntoView`,`replace`,`startTransition`,`resetScroll`,`viewTransition`,`ignoreBlocker`,`activeProps`,`inactiveProps`,`activeOptions`,`_asChild`]);function me(e,t){let n={};for(let r in e)pe.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function he(e,t,n,r,i,a){let{activeProps:o,inactiveProps:s,className:c,style:l,target:u}=t,f=d(n?o:s,{})??(n?fe:de);Object.assign(e,f),e.href=r,a!==`a`&&(e.disabled=i),e.target=u;let p=f.style;(l||p)&&(e.style=l&&p?{...l,...p}:l||p);let m=f.className;return(c||m)&&(e.className=c?m?`${c} ${m}`:c:m),i&&(e.role=`link`,e[`aria-disabled`]=!0),n&&(e[`data-status`]=`active`,e[`aria-current`]=`page`),e}var V=e=>{clearTimeout(e.t),e.t=void 0},H=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function ge(e,t,n){if(n)return;let r=e.maskedLocation??e,i=r.external?r.publicHref:t.history.createHref(r.publicHref)||`/`;if(!r.external&&i===r.publicHref||!p(i,t.protocolAllowlist))return i}var U=C.memo(C.forwardRef((e,t)=>{let n=e._asChild||`a`,r=ue(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return C.createElement(n,r,i)}),_e);function _e(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!pe.has(r)||!S(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}var ve=a();function ye(e,t){return e===t}function W(e,t=e=>e,n){let r=n?.compare??ye,i=(0,C.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,C.useCallback)(()=>e.get(),[e]);return(0,ve.useSyncExternalStoreWithSelector)(i,a,a,t,r)}var be={};function xe(e,t){let n=C.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=o(n.current,i):i}}function G(e){let t=D(),n=C.useContext(e.from?oe:R),r=e.from??n,i=t.stores.getMatchStore(r),a=xe(e,t),o=W(i,e=>e?a(e):be);if(o!==be)return o;(e.shouldThrow??!0)&&h()}function K(e){return G({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Se(e){let{select:t,...n}=e;return G({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Ce(e){return G({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function we(e){return G({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Te(e){return G({...e,select:t=>e.select?e.select(t.context):t.context})}var Ee=class extends re{constructor(e){super(e),this.useMatch=e=>G({...e,from:this.id}),this.useRouteContext=e=>Te({...e,from:this.id}),this.useSearch=e=>we({...e,from:this.id}),this.useParams=e=>Ce({...e,from:this.id}),this.useLoaderDeps=e=>Se({...e,from:this.id}),this.useLoaderData=e=>K({...e,from:this.id}),this.useNavigate=()=>O({from:this.fullPath}),this.Link=C.forwardRef((e,t)=>(0,z.jsx)(U,{ref:t,from:this.fullPath,...e}))}};function De(e){return new Ee(e)}var Oe=class extends ie{constructor(e){super(e),this.useMatch=e=>G({...e,from:this.id}),this.useRouteContext=e=>Te({...e,from:this.id}),this.useSearch=e=>we({...e,from:this.id}),this.useParams=e=>Ce({...e,from:this.id}),this.useLoaderDeps=e=>Se({...e,from:this.id}),this.useLoaderData=e=>K({...e,from:this.id}),this.useNavigate=()=>O({from:this.fullPath}),this.Link=C.forwardRef((e,t)=>(0,z.jsx)(U,{ref:t,from:this.fullPath,...e}))}};function ke(e){return new Oe(e)}function q(e){return e=>{let t=De(e);return t.isRoot=!1,t}}function J(e,t){let n,r,i,a=()=>(n||=(i=void 0,e().then(e=>{n=void 0,o.preload=void 0,r=e[t??`default`]}).catch(e=>{n=void 0,i=e})),n),o=function(e){if(i){if(f(i)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw i}if(!r){if(w)w(a());else throw a()}return C.createElement(r,e)};return o.preload=a,o}var Y=class extends C.Component{constructor(...e){super(...e),this.state={error:0},this.reset=()=>{this.setState({error:0})}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:0}:{resetKey:n}}static getDerivedStateFromError(e){return{error:[e]}}componentDidCatch(e,t){this.props.onCatch?.(e,t)}render(){let e=this.state.error;return e?C.createElement(this.props.errorComponent??Ae,{error:e[0],reset:this.reset}):this.props.children}};function Ae({error:e}){let[t,n]=C.useState(!1);return(0,z.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,z.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,z.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,z.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,z.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,z.jsx)(`div`,{children:(0,z.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e?.message?(0,z.jsx)(`code`,{children:e.message}):null})}):null]})}var je=()=>!0,Me=()=>!1;function Ne({children:e,fallback:t=null}){return(0,z.jsx)(C.Fragment,{children:Pe()?e:t})}function Pe(e=!0){return C.useSyncExternalStore(Fe,je,e?Me:je)}function Fe(){return()=>{}}function Ie(e){let t=D(),n=`not-found-${W(t.stores.location,e=>e.pathname)}-${W(t.stores.status)}`;return(0,z.jsx)(Y,{getResetKey:()=>n,onCatch:(t,n)=>{if(m(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(m(t))return e.fallback?.(t);throw t},children:e.children})}function Le(){return(0,z.jsx)(`p`,{children:`Not Found`})}function Re(e,t,n){return t.options.notFoundComponent?(0,z.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,z.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,z.jsx)(Le,{})}function X(e,t){let n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?(0,z.jsx)(n,{}):null}var ze=(e,t)=>e[0]===t[0]&&e[1]===t[1],Be=(e,t,n)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||n===!1||n===`data-only`||!e.ssr,Ve=C.memo(function({routeId:e}){let t=D();return He(t,W(t.stores.getMatchStore(e)))});function He(e,t){let n=e.routesById[t.routeId],r=X(e,n),i=n.options.errorComponent??e.options.defaultErrorComponent,a=n.options.onCatch??e.options.defaultOnCatch,o=n.isRoot?n.options.notFoundComponent??e.options.notFoundRoute?.options.component:n.options.notFoundComponent,s=t.ssr===!1||t.ssr===`data-only`,c=Be(e,n,t.ssr)&&(n.options.wrapInSuspense??r??(n.options.errorComponent?.preload||s)),l=(0,z.jsx)(Ue,{match:t});s&&(l=(0,z.jsx)(Ne,{fallback:r,children:l})),o&&(l=(0,z.jsx)(Ie,{fallback:e=>{if(e.routeId??=t.routeId,e.routeId!==t.routeId)throw e;return C.createElement(o,e)},children:l})),i&&(l=(0,z.jsx)(Y,{getResetKey:()=>t,errorComponent:i,onCatch:(e,n)=>{if(m(e))throw e.routeId??=t.routeId,e;a?.(e,n)},children:l})),c&&(l=(0,z.jsx)(C.Suspense,{fallback:r,children:l}));let u=n.isRoot&&n.options.shellComponent;return u?(0,z.jsx)(R.Provider,{value:t.routeId,children:(0,z.jsxs)(u,{children:[l,null]})}):(0,z.jsxs)(R.Provider,{value:t.routeId,children:[l,null]})}var Ue=C.memo(function({match:e}){let t=D(),n=e.routeId,r=t.routesById[n],i=C.useMemo(()=>{let i=(r.options.remountDeps??t.options.defaultRemountDeps)?.({routeId:n,loaderDeps:e.loaderDeps,params:e._strictParams,search:e._strictSearch});return i?JSON.stringify(i):void 0},[n,e.loaderDeps,e._strictParams,e._strictSearch,r.options.remountDeps,t.options.defaultRemountDeps]),a=C.useMemo(()=>{let e=r.options.component??t.options.defaultComponent;return e?(0,z.jsx)(e,{},i):(0,z.jsx)(We,{})},[i,r.options.component,t.options.defaultComponent]);if(e.status===`pending`){if(t.ssr&&!Be(t,r,e.ssr))return a;if(t._tx)throw t._tx[5];return X(t,r)}if(e.status===`notFound`)return Re(t,r,e.error);if(e.status===`error`)throw e.error;return a}),We=C.memo(function(){let e=D(),t=C.useContext(R),n,r,i;{let a=e.stores.getMatchStore(t);[n,r]=W(a,e=>[!!e._notFound,e.error],{compare:ze}),i=W(e.stores.ids,e=>e[e.indexOf(t)+1])}if(n)return Re(e,e.routesById[t],r);if(!i)return null;let a=(0,z.jsx)(Ve,{routeId:i});return t===`__root__`?(0,z.jsx)(C.Suspense,{fallback:X(e),children:a}):a});function Ge(e,t){let n=e[1];e.length=0,n?.(t)}function Ke({t:e}){let t=D(),n=t._rendered??=[];return t.startTransition=(r,i)=>new Promise(a=>{Ge(n,!1),n.push(i,a),e(t),C.startTransition(r)}),T(()=>{let e=t.history.subscribe(t.load);t.updateLatestLocation();let r=t.latestLocation,i=t.buildLocation({to:r.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(c(r.publicHref)!==c(i.publicHref))return t.commitLocation({...i,replace:!0,ignoreBlocker:!0}),e;let a=t.stores.resolvedLocation.get();return a?.href===r.href&&a.state.__TSR_key===r.state.__TSR_key?n.push(t.stores.matches.get(),e=>{e&&t.emit({type:`onRendered`,...x(a,a)})}):t._tx||t.load({sync:!0}).catch(console.error),e},[t,t.history]),null}function qe(){let e=D(),t=e.routesById[y],n=X(e,t),r=(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(Ke,{t:C.useState()[1]}),e.ssr?(0,z.jsx)(Je,{}):(0,z.jsx)(C.Suspense,{fallback:n,children:(0,z.jsx)(Je,{})})]});return e.options.InnerWrap?(0,z.jsx)(e.options.InnerWrap,{children:r}):r}function Je(){let e=D(),t=e._rendered,n=W(e.stores.matches,e=>t[0]??e),r=n[0],i=r?.routeId;T(()=>{t[0]===n&&Ge(t,!0)},[t,n]);let a=i?(0,z.jsx)(Ve,{routeId:i}):null;return e.options.disableGlobalCatchBoundary?a:(0,z.jsx)(Y,{getResetKey:()=>r,onCatch:void 0,children:a})}function Ye(){let e=D();return C.useCallback(t=>{let{pending:n,caseSensitive:r,fuzzy:i,includeSearch:a,...o}=t;return e.matchRoute(o,{pending:n,caseSensitive:r,fuzzy:i,includeSearch:a})},[e,W(e.stores.location,e=>e.href),W(e.stores.resolvedLocation,e=>e?.href),W(e.stores.status)])}function Xe({router:e,children:t,...n}){g(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,z.jsx)(E.Provider,{value:e,children:t});return e.options.Wrap?(0,z.jsx)(e.options.Wrap,{children:r}):r}function Ze({router:e,...t}){return(0,z.jsx)(Xe,{router:e,...t,children:(0,z.jsx)(qe,{})})}function Z(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function Qe(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e,a=C.useMemo(()=>n===void 0?void 0:{__html:n},[n]);switch(e.tag){case`title`:return(0,z.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,z.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,z.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,z.jsx)(`style`,{...t,dangerouslySetInnerHTML:a,nonce:r});case`script`:return(0,z.jsx)($e,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function $e({attrs:e,children:t,preventScriptHoist:n}){D();let r=Pe(),i=C.useMemo(()=>t===void 0?void 0:{__html:t},[t]),a=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(C.useEffect(()=>{if(!a){if(e?.src){let t=document.createElement(`a`);t.href=e.src;let n=t.href;for(let e of document.scripts)if(e.src===n)return;let r=document.createElement(`script`);return Z(r,e),document.head.appendChild(r),()=>r.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.scripts){if(e.hasAttribute(`src`))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,Z(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,a]),a&&typeof t==`string`)return(0,z.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:i});if(!r){if(e?.src)return(0,z.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,z.jsx)(`script`,{...e,dangerouslySetInnerHTML:i,suppressHydrationWarning:!0})}return null}function et(e,t,n,r){n=i(n);let a=n.map(e=>e.meta).filter(e=>e!==void 0),o=[],s={},c;for(let e=a.length-1;e>=0;e--){let n=a[e];for(let e=n.length-1;e>=0;e--){let r=n[e];if(r){if(r.title)c||={tag:`title`,children:r.title};else if(`script:ld+json`in r)try{let e=JSON.stringify(r[`script:ld+json`]);o.push({tag:`script`,attrs:{type:`application/ld+json`},children:l(e)})}catch{}else{let e=r.name??r.property;if(e){if(s[e])continue;s[e]=!0}o.push({tag:`meta`,attrs:{...r,nonce:t}})}}}}c&&o.push(c),t&&o.push({tag:`meta`,attrs:{property:`csp-nonce`,content:t}}),o.reverse();let u=n.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:t}})),d=e.ssr?.manifest,f=[];d&&(n.forEach(e=>{(d.routes[e.routeId]?.css)?.forEach(e=>{let n=ne(e);f.push({tag:`link`,attrs:{rel:`stylesheet`,...n,crossOrigin:j(r,`stylesheet`)??n.crossOrigin,suppressHydrationWarning:!0,nonce:t}})})}),d.inlineStyle&&f.push({tag:`style`,attrs:{...d.inlineStyle.attrs,nonce:t},children:d.inlineStyle.children,inlineCss:!0}));let p=[];d&&n.forEach(e=>{d.routes[e.routeId]?.preloads?.forEach(e=>{p.push({tag:`link`,attrs:{...N(d,e,r),nonce:t}})})});let m=n.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`style`,attrs:{...n,nonce:t},children:e})),h=n.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`script`,attrs:{...n,nonce:t},children:e})),g=[];return F(g,o),g.push(...p),F(g,u),g.push(...f),F(g,m),F(g,h),g}var tt=e=>{let t=D(),n=t.options.ssr?.nonce,r=C.useCallback(r=>et(t,n,r,e),[e,n,t]);return W(t.stores.matches,r,{compare:S})};function nt(e){let t=tt(e.assetCrossOrigin),n=D().options.ssr?.nonce;return(0,z.jsx)(z.Fragment,{children:t.map(e=>(0,C.createElement)(Qe,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var rt={suppressHydrationWarning:!0},it=()=>{let e=D(),t=e.options.ssr?.nonce,n=n=>{let r=I(n,e.ssr?.manifest,t,rt);for(let e of r[1])if(typeof e.attrs?.src==`string`){let t=e;t.preventScriptHoist=!0}return r};return at(W(e.stores.matches,e=>L(n(e)),{compare:S}))};function at(e){return(0,z.jsx)(z.Fragment,{children:e.map((e,t)=>(0,C.createElement)(Qe,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}var ot=n(),st=ke({shellComponent:e=>(0,z.jsxs)(`div`,{className:`bg-background text-foreground safe-area flex h-dvh w-dvw flex-col`,children:[(0,z.jsx)(nt,{}),(0,z.jsx)(it,{}),e.children]})}),ct=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),lt=function(e){return`/`+e},ut={},dt=function(e){return e.pathname.endsWith(`.css`)},ft=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},Q=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=lt(t,n);let r=s(t),i=dt(r);return ft(ut,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:ct,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},pt=q(`/(home)`)({component:J(()=>Q(()=>import(`./route-a1N8Et11.js`),__vite__mapDeps([0,1,2,3,4,5,6])),`component`)}),mt=q(`/(home)/`)({component:J(()=>Q(()=>import(`./(home)-DGkpAbto.js`),__vite__mapDeps([7,1,2,3,4,5])),`component`)}),ht=q(`/(home)/people`)({component:J(()=>Q(()=>import(`./people-CED21lpE.js`),__vite__mapDeps([8,1,2,3,4,5,6])),`component`)}),$=pt.update({id:`/(home)`,getParentRoute:()=>st}),gt=mt.update({id:`/`,path:`/`,getParentRoute:()=>$}),_t={homePeopleRoute:ht.update({id:`/people`,path:`/people`,getParentRoute:()=>$}),homeIndexRoute:gt},vt={homeRouteRoute:$._addFileChildren(_t)},yt=st._addFileChildren(vt)._addFileTypes(),bt=ee(yt);(0,ot.createRoot)(bt.root).render((0,z.jsx)(C.StrictMode,{children:(0,z.jsx)(Ze,{router:bt.router})}));export{k as i,We as n,U as r,Ye as t};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/route-rs7KiAU0.js","assets/rolldown-runtime-WkwZ5CU-.js","assets/react-BUjtWCUj.js","assets/client-sCUiygGT.js","assets/effect-BhsQyU3F.js","assets/components-DfiHr7mH.js","assets/badge-BZyO-IMU.js","assets/(home)-DPkBdCAR.js","assets/people-DUtEEkN5.js"])))=>i.map(i=>d[i]);
2
+ import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{o as t,r as n,s as r}from"./react-BUjtWCUj.js";import{$ as i,Z as a,_t as o,at as s,ct as c,dt as l,et as u,ft as d,gt as f,ht as p,it as m,lt as h,mt as g,n as ee,nt as _,ot as v,pt as te,rt as y,st as b,tt as x,ut as S}from"./client-sCUiygGT.js";var C=e(r(),1),w=C.use,T=C.useLayoutEffect,E=C.createContext(null);function D(e){return C.useContext(E)}function O(e){let t=D();return C.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function k(e){let t=D(),n=O(),r=C.useRef(null);return T(()=>{r.current!==e&&(n(e),r.current=e)},[t,e,n]),null}var A=`Error preloading route! ☝️`;function j(e,t){if(e)return typeof e==`string`?e:e[t]}function M(e){return e?.scriptFormat??`module`}function N(e,t,n){let r=P(t),i=j(n,`script`)??r.crossOrigin;return{...M(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,fetchPriority:`low`,...i?{crossOrigin:i}:{}}}function P(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function F(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function ne(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function I(e,t,n,r){let a=i(e),o=[],s=[];for(let e of a)for(let t of Array.isArray(e.scripts)?e.scripts:[]){if(!t)continue;let{children:e,...i}=t;o.push({tag:`script`,attrs:{...i,...r,nonce:n},children:e})}if(t)for(let e of a)for(let r of t.routes[e.routeId]?.scripts??[])s.push({tag:`script`,attrs:{...r.attrs,nonce:n},children:r.children});return[o,s]}function L([e,t],n){return n?[...n.before,...e,...t,n.boundary]:[...e,...t]}var re=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e,this._branch=void 0;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=y:this.parentRoute||h();let r=n?y:t?.path;r&&r!==`/`&&(r=b(r));let i=t?.id||r,a=n?y:s((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(i??``));r===`__root__`&&(r=`/`);let o=a===`__root__`?`/`:r===void 0?this.parentRoute.fullPath:s(this.parentRoute.fullPath+`/`+r);this._path=r,this._id=a,this._fullPath=o,this._to=c(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>_({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},ie=class extends re{constructor(e){super(e)}};function ae(e,t){let n=e.stores.location,r=new Set,i,a,o=n=>{u(e,t,n)||(i=n,r.forEach(e=>e()))};return[()=>i??n.get(),e=>(r.size||(i=n.get(),a=n.subscribe(o).unsubscribe),r.add(e),()=>{r.delete(e),r.size||(a(),i=void 0)})]}var R=C.createContext(void 0),oe=C.createContext(void 0),z=t();function se(...e){let t=C.useRef(e),n=t.current;return e.forEach((e,t)=>{S(n[t],e,!1,!0)||(n[t]=e)}),t.current}function B(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(A)})}function ce(e,t){let n=typeof e==`string`&&te(e);if(n)return t.has(n)?e:null}function le(e,t,n,r){let i=v(e.pathname,r),a=v(t.pathname,r);return(n?.exact?i!==a:!i.startsWith(a)||i.length!==a.length&&i[a.length]!==`/`)||(n?.includeSearch??!0)&&!S(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||e.hash===t.hash}function ue(e,t,n){let r=D(),i=C.useRef(null),a=C.useCallback(e=>{if(i.current=e,typeof t==`function`)return t(e);t&&(t.current=e)},[t]),{activeOptions:o,to:s,preload:c,preloadDelay:l,disabled:u,target:d,onClick:f,onBlur:p,onFocus:m,onMouseEnter:h,onMouseLeave:g,onTouchStart:ee}=e,[_,v,y]=se(e.search,e.params,o),b=C.useContext(R),x=(r.stores._linkScopes??={})[b]??=ae(r,b),[S,w,T]=C.useMemo(()=>{let t=ce(s,r.protocolAllowlist);if(t!==void 0){let n=[t??void 0];return[e,()=>n]}let n={...e},i,a,o,c=()=>{let e=x[0]();if(e!==i){n._fromLocation=e;let t=r.buildLocation(n),o=ge(t,r,u),s=u||o&&!te(o)?le(e,t,y,r.basepath):void 0;a&&a[0]===o&&a[1]===s||(a=[o,s]),i=e}return a};return[n,c,y?.includeHash&&(()=>{let e=c();return e[1]?o??=[e[0],!1]:e})]},[r,x,e.from,e.hash,e.href,s,_,v,e.state,e.mask,e.unsafeRelative,y,u]),[E,O]=C.useSyncExternalStore(x[1],w,T||w),k=O===void 0&&E,A=u||E===void 0,j=C.useRef(!1),M=e.reloadDocument||k||A?!1:c??r.options.defaultPreload,N=l??r.options.defaultPreloadDelay??0,P=C.useCallback(e=>{let t=e?.isIntersecting;t??M===`intent`?N?i.t??=setTimeout(()=>{i.t=void 0,B(r,S)},N):B(r,S):t===!1&&V(i)},[r,S,i,M,N]);C.useEffect(()=>{if(!M)return;M===`render`&&!j.current&&(j.current=!0,B(r,S));let e=!0,t;return M===`viewport`&&i.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&P(t.pop())},{rootMargin:`100px`}),t.observe(i.current)),()=>{e=!1,t?.disconnect(),V(i)}},[r,S,M,P,i]);let F=me(e,n);if(F.ref=t?a:i,k)return F.href=k,F;let ne=t=>{let n=d??t.currentTarget.getAttribute(`target`);A||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||n&&n!==`_self`||t.button!==0||(t.preventDefault(),V(i),r.navigate({...e,_fromLocation:S._fromLocation}))},I=()=>{M===`intent`&&B(r,S)},L=()=>{M===`intent`&&V(i)};return F.onClick=H(f,ne),F.onBlur=H(p,L),F.onFocus=H(m,P),F.onMouseEnter=H(h,P),F.onMouseLeave=H(g,L),F.onTouchStart=H(ee,I),he(F,e,O,E,A,n)}var de={},fe={className:`active`},pe=new Set([`to`,`params`,`search`,`hash`,`state`,`mask`,`from`,`unsafeRelative`,`reloadDocument`,`preload`,`preloadDelay`,`preloadIntentProximity`,`hashScrollIntoView`,`replace`,`startTransition`,`resetScroll`,`viewTransition`,`ignoreBlocker`,`activeProps`,`inactiveProps`,`activeOptions`,`_asChild`]);function me(e,t){let n={};for(let r in e)pe.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function he(e,t,n,r,i,a){let{activeProps:o,inactiveProps:s,className:c,style:l,target:u}=t,f=d(n?o:s,{})??(n?fe:de);Object.assign(e,f),e.href=r,a!==`a`&&(e.disabled=i),e.target=u;let p=f.style;(l||p)&&(e.style=l&&p?{...l,...p}:l||p);let m=f.className;return(c||m)&&(e.className=c?m?`${c} ${m}`:c:m),i&&(e.role=`link`,e[`aria-disabled`]=!0),n&&(e[`data-status`]=`active`,e[`aria-current`]=`page`),e}var V=e=>{clearTimeout(e.t),e.t=void 0},H=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function ge(e,t,n){if(n)return;let r=e.maskedLocation??e,i=r.external?r.publicHref:t.history.createHref(r.publicHref)||`/`;if(!r.external&&i===r.publicHref||!p(i,t.protocolAllowlist))return i}var U=C.memo(C.forwardRef((e,t)=>{let n=e._asChild||`a`,r=ue(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return C.createElement(n,r,i)}),_e);function _e(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!pe.has(r)||!S(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}var ve=a();function ye(e,t){return e===t}function W(e,t=e=>e,n){let r=n?.compare??ye,i=(0,C.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,C.useCallback)(()=>e.get(),[e]);return(0,ve.useSyncExternalStoreWithSelector)(i,a,a,t,r)}var be={};function xe(e,t){let n=C.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=o(n.current,i):i}}function G(e){let t=D(),n=C.useContext(e.from?oe:R),r=e.from??n,i=t.stores.getMatchStore(r),a=xe(e,t),o=W(i,e=>e?a(e):be);if(o!==be)return o;(e.shouldThrow??!0)&&h()}function K(e){return G({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Se(e){let{select:t,...n}=e;return G({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Ce(e){return G({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function we(e){return G({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Te(e){return G({...e,select:t=>e.select?e.select(t.context):t.context})}var Ee=class extends re{constructor(e){super(e),this.useMatch=e=>G({...e,from:this.id}),this.useRouteContext=e=>Te({...e,from:this.id}),this.useSearch=e=>we({...e,from:this.id}),this.useParams=e=>Ce({...e,from:this.id}),this.useLoaderDeps=e=>Se({...e,from:this.id}),this.useLoaderData=e=>K({...e,from:this.id}),this.useNavigate=()=>O({from:this.fullPath}),this.Link=C.forwardRef((e,t)=>(0,z.jsx)(U,{ref:t,from:this.fullPath,...e}))}};function De(e){return new Ee(e)}var Oe=class extends ie{constructor(e){super(e),this.useMatch=e=>G({...e,from:this.id}),this.useRouteContext=e=>Te({...e,from:this.id}),this.useSearch=e=>we({...e,from:this.id}),this.useParams=e=>Ce({...e,from:this.id}),this.useLoaderDeps=e=>Se({...e,from:this.id}),this.useLoaderData=e=>K({...e,from:this.id}),this.useNavigate=()=>O({from:this.fullPath}),this.Link=C.forwardRef((e,t)=>(0,z.jsx)(U,{ref:t,from:this.fullPath,...e}))}};function ke(e){return new Oe(e)}function q(e){return e=>{let t=De(e);return t.isRoot=!1,t}}function J(e,t){let n,r,i,a=()=>(n||=(i=void 0,e().then(e=>{n=void 0,o.preload=void 0,r=e[t??`default`]}).catch(e=>{n=void 0,i=e})),n),o=function(e){if(i){if(f(i)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw i}if(!r){if(w)w(a());else throw a()}return C.createElement(r,e)};return o.preload=a,o}var Y=class extends C.Component{constructor(...e){super(...e),this.state={error:0},this.reset=()=>{this.setState({error:0})}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:0}:{resetKey:n}}static getDerivedStateFromError(e){return{error:[e]}}componentDidCatch(e,t){this.props.onCatch?.(e,t)}render(){let e=this.state.error;return e?C.createElement(this.props.errorComponent??Ae,{error:e[0],reset:this.reset}):this.props.children}};function Ae({error:e}){let[t,n]=C.useState(!1);return(0,z.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,z.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,z.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,z.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,z.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,z.jsx)(`div`,{children:(0,z.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e?.message?(0,z.jsx)(`code`,{children:e.message}):null})}):null]})}var je=()=>!0,Me=()=>!1;function Ne({children:e,fallback:t=null}){return(0,z.jsx)(C.Fragment,{children:Pe()?e:t})}function Pe(e=!0){return C.useSyncExternalStore(Fe,je,e?Me:je)}function Fe(){return()=>{}}function Ie(e){let t=D(),n=`not-found-${W(t.stores.location,e=>e.pathname)}-${W(t.stores.status)}`;return(0,z.jsx)(Y,{getResetKey:()=>n,onCatch:(t,n)=>{if(m(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(m(t))return e.fallback?.(t);throw t},children:e.children})}function Le(){return(0,z.jsx)(`p`,{children:`Not Found`})}function Re(e,t,n){return t.options.notFoundComponent?(0,z.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,z.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,z.jsx)(Le,{})}function X(e,t){let n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?(0,z.jsx)(n,{}):null}var ze=(e,t)=>e[0]===t[0]&&e[1]===t[1],Be=(e,t,n)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||n===!1||n===`data-only`||!e.ssr,Ve=C.memo(function({routeId:e}){let t=D();return He(t,W(t.stores.getMatchStore(e)))});function He(e,t){let n=e.routesById[t.routeId],r=X(e,n),i=n.options.errorComponent??e.options.defaultErrorComponent,a=n.options.onCatch??e.options.defaultOnCatch,o=n.isRoot?n.options.notFoundComponent??e.options.notFoundRoute?.options.component:n.options.notFoundComponent,s=t.ssr===!1||t.ssr===`data-only`,c=Be(e,n,t.ssr)&&(n.options.wrapInSuspense??r??(n.options.errorComponent?.preload||s)),l=(0,z.jsx)(Ue,{match:t});s&&(l=(0,z.jsx)(Ne,{fallback:r,children:l})),o&&(l=(0,z.jsx)(Ie,{fallback:e=>{if(e.routeId??=t.routeId,e.routeId!==t.routeId)throw e;return C.createElement(o,e)},children:l})),i&&(l=(0,z.jsx)(Y,{getResetKey:()=>t,errorComponent:i,onCatch:(e,n)=>{if(m(e))throw e.routeId??=t.routeId,e;a?.(e,n)},children:l})),c&&(l=(0,z.jsx)(C.Suspense,{fallback:r,children:l}));let u=n.isRoot&&n.options.shellComponent;return u?(0,z.jsx)(R.Provider,{value:t.routeId,children:(0,z.jsxs)(u,{children:[l,null]})}):(0,z.jsxs)(R.Provider,{value:t.routeId,children:[l,null]})}var Ue=C.memo(function({match:e}){let t=D(),n=e.routeId,r=t.routesById[n],i=C.useMemo(()=>{let i=(r.options.remountDeps??t.options.defaultRemountDeps)?.({routeId:n,loaderDeps:e.loaderDeps,params:e._strictParams,search:e._strictSearch});return i?JSON.stringify(i):void 0},[n,e.loaderDeps,e._strictParams,e._strictSearch,r.options.remountDeps,t.options.defaultRemountDeps]),a=C.useMemo(()=>{let e=r.options.component??t.options.defaultComponent;return e?(0,z.jsx)(e,{},i):(0,z.jsx)(We,{})},[i,r.options.component,t.options.defaultComponent]);if(e.status===`pending`){if(t.ssr&&!Be(t,r,e.ssr))return a;if(t._tx)throw t._tx[5];return X(t,r)}if(e.status===`notFound`)return Re(t,r,e.error);if(e.status===`error`)throw e.error;return a}),We=C.memo(function(){let e=D(),t=C.useContext(R),n,r,i;{let a=e.stores.getMatchStore(t);[n,r]=W(a,e=>[!!e._notFound,e.error],{compare:ze}),i=W(e.stores.ids,e=>e[e.indexOf(t)+1])}if(n)return Re(e,e.routesById[t],r);if(!i)return null;let a=(0,z.jsx)(Ve,{routeId:i});return t===`__root__`?(0,z.jsx)(C.Suspense,{fallback:X(e),children:a}):a});function Ge(e,t){let n=e[1];e.length=0,n?.(t)}function Ke({t:e}){let t=D(),n=t._rendered??=[];return t.startTransition=(r,i)=>new Promise(a=>{Ge(n,!1),n.push(i,a),e(t),C.startTransition(r)}),T(()=>{let e=t.history.subscribe(t.load);t.updateLatestLocation();let r=t.latestLocation,i=t.buildLocation({to:r.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(c(r.publicHref)!==c(i.publicHref))return t.commitLocation({...i,replace:!0,ignoreBlocker:!0}),e;let a=t.stores.resolvedLocation.get();return a?.href===r.href&&a.state.__TSR_key===r.state.__TSR_key?n.push(t.stores.matches.get(),e=>{e&&t.emit({type:`onRendered`,...x(a,a)})}):t._tx||t.load({sync:!0}).catch(console.error),e},[t,t.history]),null}function qe(){let e=D(),t=e.routesById[y],n=X(e,t),r=(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(Ke,{t:C.useState()[1]}),e.ssr?(0,z.jsx)(Je,{}):(0,z.jsx)(C.Suspense,{fallback:n,children:(0,z.jsx)(Je,{})})]});return e.options.InnerWrap?(0,z.jsx)(e.options.InnerWrap,{children:r}):r}function Je(){let e=D(),t=e._rendered,n=W(e.stores.matches,e=>t[0]??e),r=n[0],i=r?.routeId;T(()=>{t[0]===n&&Ge(t,!0)},[t,n]);let a=i?(0,z.jsx)(Ve,{routeId:i}):null;return e.options.disableGlobalCatchBoundary?a:(0,z.jsx)(Y,{getResetKey:()=>r,onCatch:void 0,children:a})}function Ye(){let e=D();return C.useCallback(t=>{let{pending:n,caseSensitive:r,fuzzy:i,includeSearch:a,...o}=t;return e.matchRoute(o,{pending:n,caseSensitive:r,fuzzy:i,includeSearch:a})},[e,W(e.stores.location,e=>e.href),W(e.stores.resolvedLocation,e=>e?.href),W(e.stores.status)])}function Xe({router:e,children:t,...n}){g(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,z.jsx)(E.Provider,{value:e,children:t});return e.options.Wrap?(0,z.jsx)(e.options.Wrap,{children:r}):r}function Ze({router:e,...t}){return(0,z.jsx)(Xe,{router:e,...t,children:(0,z.jsx)(qe,{})})}function Z(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function Qe(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e,a=C.useMemo(()=>n===void 0?void 0:{__html:n},[n]);switch(e.tag){case`title`:return(0,z.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,z.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,z.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,z.jsx)(`style`,{...t,dangerouslySetInnerHTML:a,nonce:r});case`script`:return(0,z.jsx)($e,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function $e({attrs:e,children:t,preventScriptHoist:n}){D();let r=Pe(),i=C.useMemo(()=>t===void 0?void 0:{__html:t},[t]),a=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(C.useEffect(()=>{if(!a){if(e?.src){let t=document.createElement(`a`);t.href=e.src;let n=t.href;for(let e of document.scripts)if(e.src===n)return;let r=document.createElement(`script`);return Z(r,e),document.head.appendChild(r),()=>r.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.scripts){if(e.hasAttribute(`src`))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,Z(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,a]),a&&typeof t==`string`)return(0,z.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:i});if(!r){if(e?.src)return(0,z.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,z.jsx)(`script`,{...e,dangerouslySetInnerHTML:i,suppressHydrationWarning:!0})}return null}function et(e,t,n,r){n=i(n);let a=n.map(e=>e.meta).filter(e=>e!==void 0),o=[],s={},c;for(let e=a.length-1;e>=0;e--){let n=a[e];for(let e=n.length-1;e>=0;e--){let r=n[e];if(r){if(r.title)c||={tag:`title`,children:r.title};else if(`script:ld+json`in r)try{let e=JSON.stringify(r[`script:ld+json`]);o.push({tag:`script`,attrs:{type:`application/ld+json`},children:l(e)})}catch{}else{let e=r.name??r.property;if(e){if(s[e])continue;s[e]=!0}o.push({tag:`meta`,attrs:{...r,nonce:t}})}}}}c&&o.push(c),t&&o.push({tag:`meta`,attrs:{property:`csp-nonce`,content:t}}),o.reverse();let u=n.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:t}})),d=e.ssr?.manifest,f=[];d&&(n.forEach(e=>{(d.routes[e.routeId]?.css)?.forEach(e=>{let n=ne(e);f.push({tag:`link`,attrs:{rel:`stylesheet`,...n,crossOrigin:j(r,`stylesheet`)??n.crossOrigin,suppressHydrationWarning:!0,nonce:t}})})}),d.inlineStyle&&f.push({tag:`style`,attrs:{...d.inlineStyle.attrs,nonce:t},children:d.inlineStyle.children,inlineCss:!0}));let p=[];d&&n.forEach(e=>{d.routes[e.routeId]?.preloads?.forEach(e=>{p.push({tag:`link`,attrs:{...N(d,e,r),nonce:t}})})});let m=n.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`style`,attrs:{...n,nonce:t},children:e})),h=n.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`script`,attrs:{...n,nonce:t},children:e})),g=[];return F(g,o),g.push(...p),F(g,u),g.push(...f),F(g,m),F(g,h),g}var tt=e=>{let t=D(),n=t.options.ssr?.nonce,r=C.useCallback(r=>et(t,n,r,e),[e,n,t]);return W(t.stores.matches,r,{compare:S})};function nt(e){let t=tt(e.assetCrossOrigin),n=D().options.ssr?.nonce;return(0,z.jsx)(z.Fragment,{children:t.map(e=>(0,C.createElement)(Qe,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var rt={suppressHydrationWarning:!0},it=()=>{let e=D(),t=e.options.ssr?.nonce,n=n=>{let r=I(n,e.ssr?.manifest,t,rt);for(let e of r[1])if(typeof e.attrs?.src==`string`){let t=e;t.preventScriptHoist=!0}return r};return at(W(e.stores.matches,e=>L(n(e)),{compare:S}))};function at(e){return(0,z.jsx)(z.Fragment,{children:e.map((e,t)=>(0,C.createElement)(Qe,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}var ot=n(),st=ke({shellComponent:e=>(0,z.jsxs)(`div`,{className:`bg-background text-foreground safe-area flex h-dvh w-dvw flex-col`,children:[(0,z.jsx)(nt,{}),(0,z.jsx)(it,{}),e.children]})}),ct=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),lt=function(e){return`/`+e},ut={},dt=function(e){return e.pathname.endsWith(`.css`)},ft=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},Q=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=lt(t,n);let r=s(t),i=dt(r);return ft(ut,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:ct,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},pt=q(`/(home)`)({component:J(()=>Q(()=>import(`./route-rs7KiAU0.js`),__vite__mapDeps([0,1,2,3,4,5,6])),`component`)}),mt=q(`/(home)/`)({component:J(()=>Q(()=>import(`./(home)-DPkBdCAR.js`),__vite__mapDeps([7,1,2,3,4,5])),`component`)}),ht=q(`/(home)/people`)({component:J(()=>Q(()=>import(`./people-DUtEEkN5.js`),__vite__mapDeps([8,1,2,3,4,5,6])),`component`)}),$=pt.update({id:`/(home)`,getParentRoute:()=>st}),gt=mt.update({id:`/`,path:`/`,getParentRoute:()=>$}),_t={homePeopleRoute:ht.update({id:`/people`,path:`/people`,getParentRoute:()=>$}),homeIndexRoute:gt},vt={homeRouteRoute:$._addFileChildren(_t)},yt=st._addFileChildren(vt)._addFileTypes(),bt=ee(yt);(0,ot.createRoot)(bt.root).render((0,z.jsx)(C.StrictMode,{children:(0,z.jsx)(Ze,{router:bt.router})}));export{k as i,We as n,U as r,Ye as t};