@deslop/auth 0.1.1235 → 0.1.1238
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)-CXtD82GI.js +20 -0
- package/dist/client/assets/badge-Orwp1LuN.js +1 -0
- package/dist/client/assets/components-CY-PK17G.js +1 -0
- package/dist/client/assets/effect-DksNtAHN.js +17 -0
- package/dist/client/assets/index-DIpS8BKV.js +2 -0
- package/dist/client/assets/{index-XhCXj376.css → index-tRps0ChV.css} +1 -1
- package/dist/client/assets/people-BRGu8hJj.js +1 -0
- package/dist/client/assets/route-nzdKd_UO.js +1 -0
- package/dist/client/assets/toast-D2hAfPD-.js +3 -0
- package/dist/client/index.html +4 -4
- package/dist/server.js +21866 -406
- package/package.json +2 -2
- package/dist/client/assets/(home)-DPkBdCAR.js +0 -20
- package/dist/client/assets/badge-BZyO-IMU.js +0 -1
- package/dist/client/assets/client-sCUiygGT.js +0 -3
- package/dist/client/assets/components-DfiHr7mH.js +0 -1
- package/dist/client/assets/effect-BhsQyU3F.js +0 -17
- package/dist/client/assets/index-D-TNR7SG.js +0 -2
- package/dist/client/assets/people-DUtEEkN5.js +0 -1
- package/dist/client/assets/route-rs7KiAU0.js +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/route-nzdKd_UO.js","assets/rolldown-runtime-WkwZ5CU-.js","assets/react-BUjtWCUj.js","assets/toast-D2hAfPD-.js","assets/effect-DksNtAHN.js","assets/components-CY-PK17G.js","assets/badge-Orwp1LuN.js","assets/(home)-CXtD82GI.js","assets/people-BRGu8hJj.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{Cr as i,Er as a,Sr as o,Tr as s,_r as c,br as l,cr as u,dr as d,fr as f,gr as p,hr as m,ln as h,lr as g,mr as _,or as ee,pr as v,t as te,ur as y,vr as b,wr as x,xr as S,yr as C}from"./toast-D2hAfPD-.js";var w=e(r(),1),T=w.use,E=w.useLayoutEffect,D=w.createContext(null);function O(e){return w.useContext(D)}function k(e){let t=O();return w.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function A(e){let t=O(),n=k(),r=w.useRef(null);return E(()=>{r.current!==e&&(n(e),r.current=e)},[t,e,n]),null}var j=`Error preloading route! ☝️`;function M(e,t){if(e)return typeof e==`string`?e:e[t]}function N(e){return e?.scriptFormat??`module`}function P(e,t,n){let r=F(t),i=M(n,`script`)??r.crossOrigin;return{...N(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,fetchPriority:`low`,...i?{crossOrigin:i}:{}}}function F(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function I(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 L(e,t,n,r){let i=u(e),a=[],o=[];for(let e of i)for(let t of Array.isArray(e.scripts)?e.scripts:[]){if(!t)continue;let{children:e,...i}=t;a.push({tag:`script`,attrs:{...i,...r,nonce:n},children:e})}if(t)for(let e of i)for(let r of t.routes[e.routeId]?.scripts??[])o.push({tag:`script`,attrs:{...r.attrs,nonce:n},children:r.children});return[a,o]}function re([e,t],n){return n?[...n.before,...e,...t,n.boundary]:[...e,...t]}var ie=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=f:this.parentRoute||b();let r=n?f:t?.path;r&&r!==`/`&&(r=p(r));let i=t?.id||r,a=n?f:_((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(i??``));r===`__root__`&&(r=`/`);let o=a===`__root__`?`/`:r===void 0?this.parentRoute.fullPath:_(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=>d({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.`)}},ae=class extends ie{constructor(e){super(e)}};function oe(e,t){let n=e.stores.location,r=new Set,i,a,o=n=>{g(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=w.createContext(void 0),se=w.createContext(void 0),z=t();function ce(...e){let t=w.useRef(e),n=t.current;return e.forEach((e,t)=>{C(n[t],e,!1,!0)||(n[t]=e)}),t.current}function B(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(j)})}function le(e,t){let n=typeof e==`string`&&o(e);if(n)return t.has(n)?e:null}function ue(e,t,n,r){let i=m(e.pathname,r),a=m(t.pathname,r);return(n?.exact?i!==a:!i.startsWith(a)||i.length!==a.length&&i[a.length]!==`/`)||(n?.includeSearch??!0)&&!C(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||e.hash===t.hash}function de(e,t,n){let r=O(),i=w.useRef(null),a=w.useCallback(e=>{if(i.current=e,typeof t==`function`)return t(e);t&&(t.current=e)},[t]),{activeOptions:s,to:c,preload:l,preloadDelay:u,disabled:d,target:f,onClick:p,onBlur:m,onFocus:h,onMouseEnter:g,onMouseLeave:_,onTouchStart:ee}=e,[v,te,y]=ce(e.search,e.params,s),b=w.useContext(R),x=(r.stores._linkScopes??={})[b]??=oe(r,b),[S,C,T]=w.useMemo(()=>{let t=le(c,r.protocolAllowlist);if(t!==void 0){let n=[t??void 0];return[e,()=>n]}let n={...e},i,a,s,l=()=>{let e=x[0]();if(e!==i){n._fromLocation=e;let t=r.buildLocation(n),s=_e(t,r,d),c=d||s&&!o(s)?ue(e,t,y,r.basepath):void 0;a&&a[0]===s&&a[1]===c||(a=[s,c]),i=e}return a};return[n,l,y?.includeHash&&(()=>{let e=l();return e[1]?s??=[e[0],!1]:e})]},[r,x,e.from,e.hash,e.href,c,v,te,e.state,e.mask,e.unsafeRelative,y,d]),[E,D]=w.useSyncExternalStore(x[1],C,T||C),k=D===void 0&&E,A=d||E===void 0,j=w.useRef(!1),M=e.reloadDocument||k||A?!1:l??r.options.defaultPreload,N=u??r.options.defaultPreloadDelay??0,P=w.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]);w.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=he(e,n);if(F.ref=t?a:i,k)return F.href=k,F;let I=t=>{let n=f??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}))},ne=()=>{M===`intent`&&B(r,S)},L=()=>{M===`intent`&&V(i)};return F.onClick=H(p,I),F.onBlur=H(m,L),F.onFocus=H(h,P),F.onMouseEnter=H(g,P),F.onMouseLeave=H(_,L),F.onTouchStart=H(ee,ne),ge(F,e,D,E,A,n)}var fe={},pe={className:`active`},me=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 he(e,t){let n={};for(let r in e)me.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function ge(e,t,n,r,i,a){let{activeProps:o,inactiveProps:s,className:c,style:l,target:u}=t,d=S(n?o:s,{})??(n?pe:fe);Object.assign(e,d),e.href=r,a!==`a`&&(e.disabled=i),e.target=u;let f=d.style;(l||f)&&(e.style=l&&f?{...l,...f}:l||f);let p=d.className;return(c||p)&&(e.className=c?p?`${c} ${p}`:c:p),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 _e(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||!x(i,t.protocolAllowlist))return i}var U=w.memo(w.forwardRef((e,t)=>{let n=e._asChild||`a`,r=de(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return w.createElement(n,r,i)}),ve);function ve(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!me.has(r)||!C(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}var ye=ee();function be(e,t){return e===t}function W(e,t=e=>e,n){let r=n?.compare??be,i=(0,w.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,w.useCallback)(()=>e.get(),[e]);return(0,ye.useSyncExternalStoreWithSelector)(i,a,a,t,r)}var xe={};function Se(e,t){let n=w.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=a(n.current,i):i}}function G(e){let t=O(),n=w.useContext(e.from?se:R),r=e.from??n,i=t.stores.getMatchStore(r),a=Se(e,t),o=W(i,e=>e?a(e):xe);if(o!==xe)return o;(e.shouldThrow??!0)&&b()}function Ce(e){return G({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function we(e){let{select:t,...n}=e;return G({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Te(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 K(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 Ee(e){return G({...e,select:t=>e.select?e.select(t.context):t.context})}var De=class extends ie{constructor(e){super(e),this.useMatch=e=>G({...e,from:this.id}),this.useRouteContext=e=>Ee({...e,from:this.id}),this.useSearch=e=>K({...e,from:this.id}),this.useParams=e=>Te({...e,from:this.id}),this.useLoaderDeps=e=>we({...e,from:this.id}),this.useLoaderData=e=>Ce({...e,from:this.id}),this.useNavigate=()=>k({from:this.fullPath}),this.Link=w.forwardRef((e,t)=>(0,z.jsx)(U,{ref:t,from:this.fullPath,...e}))}};function Oe(e){return new De(e)}var ke=class extends ae{constructor(e){super(e),this.useMatch=e=>G({...e,from:this.id}),this.useRouteContext=e=>Ee({...e,from:this.id}),this.useSearch=e=>K({...e,from:this.id}),this.useParams=e=>Te({...e,from:this.id}),this.useLoaderDeps=e=>we({...e,from:this.id}),this.useLoaderData=e=>Ce({...e,from:this.id}),this.useNavigate=()=>k({from:this.fullPath}),this.Link=w.forwardRef((e,t)=>(0,z.jsx)(U,{ref:t,from:this.fullPath,...e}))}};function Ae(e){return new ke(e)}function q(e){return e=>{let t=Oe(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(s(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(T)T(a());else throw a()}return w.createElement(r,e)};return o.preload=a,o}var Y=class extends w.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?w.createElement(this.props.errorComponent??je,{error:e[0],reset:this.reset}):this.props.children}};function je({error:e}){let[t,n]=w.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 Me=()=>!0,Ne=()=>!1;function Pe({children:e,fallback:t=null}){return(0,z.jsx)(w.Fragment,{children:Fe()?e:t})}function Fe(e=!0){return w.useSyncExternalStore(Ie,Me,e?Ne:Me)}function Ie(){return()=>{}}function Le(e){let t=O(),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(v(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(v(t))return e.fallback?.(t);throw t},children:e.children})}function Re(){return(0,z.jsx)(`p`,{children:`Not Found`})}function ze(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)(Re,{})}function X(e,t){let n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?(0,z.jsx)(n,{}):null}var Be=(e,t)=>e[0]===t[0]&&e[1]===t[1],Ve=(e,t,n)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||n===!1||n===`data-only`||!e.ssr,He=w.memo(function({routeId:e}){let t=O();return Ue(t,W(t.stores.getMatchStore(e)))});function Ue(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=Ve(e,n,t.ssr)&&(n.options.wrapInSuspense??r??(n.options.errorComponent?.preload||s)),l=(0,z.jsx)(We,{match:t});s&&(l=(0,z.jsx)(Pe,{fallback:r,children:l})),o&&(l=(0,z.jsx)(Le,{fallback:e=>{if(e.routeId??=t.routeId,e.routeId!==t.routeId)throw e;return w.createElement(o,e)},children:l})),i&&(l=(0,z.jsx)(Y,{getResetKey:()=>t,errorComponent:i,onCatch:(e,n)=>{if(v(e))throw e.routeId??=t.routeId,e;a?.(e,n)},children:l})),c&&(l=(0,z.jsx)(w.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 We=w.memo(function({match:e}){let t=O(),n=e.routeId,r=t.routesById[n],i=w.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=w.useMemo(()=>{let e=r.options.component??t.options.defaultComponent;return e?(0,z.jsx)(e,{},i):(0,z.jsx)(Ge,{})},[i,r.options.component,t.options.defaultComponent]);if(e.status===`pending`){if(t.ssr&&!Ve(t,r,e.ssr))return a;if(t._tx)throw t._tx[5];return X(t,r)}if(e.status===`notFound`)return ze(t,r,e.error);if(e.status===`error`)throw e.error;return a}),Ge=w.memo(function(){let e=O(),t=w.useContext(R),n,r,i;{let a=e.stores.getMatchStore(t);[n,r]=W(a,e=>[!!e._notFound,e.error],{compare:Be}),i=W(e.stores.ids,e=>e[e.indexOf(t)+1])}if(n)return ze(e,e.routesById[t],r);if(!i)return null;let a=(0,z.jsx)(He,{routeId:i});return t===`__root__`?(0,z.jsx)(w.Suspense,{fallback:X(e),children:a}):a});function Ke(e,t){let n=e[1];e.length=0,n?.(t)}function qe({t:e}){let t=O(),n=t._rendered??=[];return t.startTransition=(r,i)=>new Promise(a=>{Ke(n,!1),n.push(i,a),e(t),w.startTransition(r)}),E(()=>{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`,...y(a,a)})}):t._tx||t.load({sync:!0}).catch(console.error),e},[t,t.history]),null}function Je(){let e=O(),t=e.routesById[f],n=X(e,t),r=(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(qe,{t:w.useState()[1]}),e.ssr?(0,z.jsx)(Ye,{}):(0,z.jsx)(w.Suspense,{fallback:n,children:(0,z.jsx)(Ye,{})})]});return e.options.InnerWrap?(0,z.jsx)(e.options.InnerWrap,{children:r}):r}function Ye(){let e=O(),t=e._rendered,n=W(e.stores.matches,e=>t[0]??e),r=n[0],i=r?.routeId;E(()=>{t[0]===n&&Ke(t,!0)},[t,n]);let a=i?(0,z.jsx)(He,{routeId:i}):null;return e.options.disableGlobalCatchBoundary?a:(0,z.jsx)(Y,{getResetKey:()=>r,onCatch:void 0,children:a})}function Xe(){let e=O();return w.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 Ze({router:e,children:t,...n}){i(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,z.jsx)(D.Provider,{value:e,children:t});return e.options.Wrap?(0,z.jsx)(e.options.Wrap,{children:r}):r}function Qe({router:e,...t}){return(0,z.jsx)(Ze,{router:e,...t,children:(0,z.jsx)(Je,{})})}function $e(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 et(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e,a=w.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)(tt,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function tt({attrs:e,children:t,preventScriptHoist:n}){O();let r=Fe(),i=w.useMemo(()=>t===void 0?void 0:{__html:t},[t]),a=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(w.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 $e(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,$e(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 nt(e,t,n,r){n=u(n);let i=n.map(e=>e.meta).filter(e=>e!==void 0),a=[],o={},s;for(let e=i.length-1;e>=0;e--){let n=i[e];for(let e=n.length-1;e>=0;e--){let r=n[e];if(r){if(r.title)s||={tag:`title`,children:r.title};else if(`script:ld+json`in r)try{let e=JSON.stringify(r[`script:ld+json`]);a.push({tag:`script`,attrs:{type:`application/ld+json`},children:l(e)})}catch{}else{let e=r.name??r.property;if(e){if(o[e])continue;o[e]=!0}a.push({tag:`meta`,attrs:{...r,nonce:t}})}}}}s&&a.push(s),t&&a.push({tag:`meta`,attrs:{property:`csp-nonce`,content:t}}),a.reverse();let c=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:M(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:{...P(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 I(g,a),g.push(...p),I(g,c),g.push(...f),I(g,m),I(g,h),g}var rt=e=>{let t=O(),n=t.options.ssr?.nonce,r=w.useCallback(r=>nt(t,n,r,e),[e,n,t]);return W(t.stores.matches,r,{compare:C})};function it(e){let t=rt(e.assetCrossOrigin),n=O().options.ssr?.nonce;return(0,z.jsx)(z.Fragment,{children:t.map(e=>(0,w.createElement)(et,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var at={suppressHydrationWarning:!0},ot=()=>{let e=O(),t=e.options.ssr?.nonce,n=n=>{let r=L(n,e.ssr?.manifest,t,at);for(let e of r[1])if(typeof e.attrs?.src==`string`){let t=e;t.preventScriptHoist=!0}return r};return st(W(e.stores.matches,e=>re(n(e)),{compare:C}))};function st(e){return(0,z.jsx)(z.Fragment,{children:e.map((e,t)=>(0,w.createElement)(et,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}var ct=n(),lt=Ae({shellComponent:e=>(0,z.jsxs)(`div`,{className:`bg-background text-foreground safe-area flex h-dvh w-dvw flex-col`,children:[(0,z.jsx)(it,{}),(0,z.jsx)(ot,{}),(0,z.jsx)(te,{children:e.children})]})}),ut=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),dt=function(e){return`/`+e},ft={},pt=function(e){return e.pathname.endsWith(`.css`)},mt=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},Z=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=dt(t,n);let r=s(t),i=pt(r);return mt(ft,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`:ut,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)})},ht=q(`/(home)`)({component:J(()=>Z(()=>import(`./route-nzdKd_UO.js`),__vite__mapDeps([0,1,2,3,4,5,6])),`component`)}),gt=q(`/(home)/`)({component:J(()=>Z(()=>import(`./(home)-CXtD82GI.js`),__vite__mapDeps([7,1,2,3,4,5])),`component`)}),_t=q(`/(home)/people`)({component:J(()=>Z(()=>import(`./people-BRGu8hJj.js`),__vite__mapDeps([8,1,2,3,4,5,6])),`component`)}),Q=ht.update({id:`/(home)`,getParentRoute:()=>lt}),vt=gt.update({id:`/`,path:`/`,getParentRoute:()=>Q}),yt={homePeopleRoute:_t.update({id:`/people`,path:`/people`,getParentRoute:()=>Q}),homeIndexRoute:vt},bt={homeRouteRoute:Q._addFileChildren(yt)},xt=lt._addFileChildren(bt)._addFileTypes(),$=h(xt);(0,ct.createRoot)($.root).render((0,z.jsx)(w.StrictMode,{children:(0,z.jsx)(Qe,{router:$.router})}));export{A as i,Ge as n,U as r,Xe as t};
|