@deslop/auth 0.1.1250 → 0.1.1256
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)-CsFFJloK.js → (home)-BGL2qG8s.js} +2 -2
- package/dist/client/assets/{Check.es-Bp5djBLz.js → Check.es-scKUVKGC.js} +1 -1
- package/dist/client/assets/components-zIDgshMa.js +1 -0
- package/dist/client/assets/dialog-DiwMVfBX.js +1 -0
- package/dist/client/assets/{index-IIm2ZEY_.js → index-BZmbUyIH.js} +2 -2
- package/dist/client/assets/index-CYzFAzTI.css +2 -0
- package/dist/client/assets/people-BOPejtAC.js +1 -0
- package/dist/client/assets/route-BG0dbB9K.js +41 -0
- package/dist/client/assets/utils-Aj5S_5S2.js +2 -0
- package/dist/client/index.html +6 -5
- package/dist/server.js +929 -338
- package/package.json +2 -2
- package/dist/client/assets/components-DxFAwEtI.js +0 -1
- package/dist/client/assets/dialog-DKm49liV.js +0 -1
- package/dist/client/assets/index-e2xUPxy0.css +0 -2
- package/dist/client/assets/people-BvjrADRC.js +0 -1
- package/dist/client/assets/route-NUCS2u02.js +0 -41
- package/dist/client/assets/utils-CQ8HfW2q.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/route-
|
|
2
|
-
import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{Ar as t,B as n,Cr as r,Dr as i,Er as a,Fr as o,Ir as s,Lr as c,Mr as l,Nr as u,Or as d,Sr as f,Tr as p,_n as m,_r as h,br as g,fr as ee,gn as _,gr as v,hn as y,hr as te,jr as ne,kr as re,n as b,pr as x,vr as S,wr as C,xr as w,yr as T}from"./utils-CQ8HfW2q.js";import{a as E,o as D}from"./react-COyt-gOi.js";var O=`Error preloading route! ☝️`;function k(e,t){if(e)return typeof e==`string`?e:e[t]}function A(e){return e?.scriptFormat??`module`}function j(e,t,n){let r=M(t),i=k(n,`script`)??r.crossOrigin;return{...A(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,fetchPriority:`low`,...i?{crossOrigin:i}:{}}}function M(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function N(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 P(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function ie(e,t,n,r){let i=S(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 F([e,t],n){return n?[...n.before,...e,...t,n.boundary]:[...e,...t]}var I=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=g:this.parentRoute||a();let r=n?g:t?.path;r&&r!==`/`&&(r=C(r));let i=t?.id||r,o=n?g:f((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(i??``));r===`__root__`&&(r=`/`);let s=o===`__root__`?`/`:r===void 0?this.parentRoute.fullPath:f(this.parentRoute.fullPath+`/`+r);this._path=r,this._id=o,this._fullPath=s,this._to=p(s)},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=>T({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{constructor({id:e}){this.notFound=e=>w({routeId:this.id,...e}),this.redirect=e=>T({from:this.id,...e}),this.id=e}},oe=class extends I{constructor(e){super(e)}},L=e(D(),1),R=E();function se(...e){let t=L.useRef(e),n=t.current;return e.forEach((e,t)=>{i(n[t],e,!1,!0)||(n[t]=e)}),t.current}function z(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(O)})}function ce(e,n){let r=typeof e==`string`&&t(e);if(r)return n.has(r)?e:null}function le(e,t,n,a){let o=r(e.pathname,a),s=r(t.pathname,a);return(n?.exact?o!==s:!o.startsWith(s)||o.length!==s.length&&o[s.length]!==`/`)||(n?.includeSearch??!0)&&!i(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||e.hash===t.hash}function ue(e,n,r){let i=s(),a=L.useRef(null),o=L.useCallback(e=>{if(a.current=e,typeof n==`function`)return n(e);n&&(n.current=e)},[n]),{activeOptions:c,to:l,preload:u,preloadDelay:d,disabled:f,target:p,onClick:m,onBlur:g,onFocus:ee,onMouseEnter:_,onMouseLeave:v,onTouchStart:y}=e,[ne,re,b]=se(e.search,e.params,c),x=L.useContext(h),S=(i.stores._linkScopes??={})[x]??=te(i,x),[C,w,T]=L.useMemo(()=>{let n=ce(l,i.protocolAllowlist);if(n!==void 0){let t=[n??void 0];return[e,()=>t]}let r={...e},a,o,s,c=()=>{let e=S[0]();if(e!==a){r._fromLocation=e;let n=i.buildLocation(r),s=he(n,i,f),c=f||s&&!t(s)?le(e,n,b,i.basepath):void 0;o&&o[0]===s&&o[1]===c||(o=[s,c]),a=e}return o};return[r,c,b?.includeHash&&(()=>{let e=c();return e[1]?s??=[e[0],!1]:e})]},[i,S,e.from,e.hash,e.href,l,ne,re,e.state,e.mask,e.unsafeRelative,b,f]),[E,D]=L.useSyncExternalStore(S[1],w,T||w),O=D===void 0&&E,k=f||E===void 0,A=L.useRef(!1),j=e.reloadDocument||O||k?!1:u??i.options.defaultPreload,M=d??i.options.defaultPreloadDelay??0,N=L.useCallback(e=>{let t=e?.isIntersecting;t??j===`intent`?M?a.t??=setTimeout(()=>{a.t=void 0,z(i,C)},M):z(i,C):t===!1&&V(a)},[i,C,a,j,M]);L.useEffect(()=>{if(!j)return;j===`render`&&!A.current&&(A.current=!0,z(i,C));let e=!0,t;return j===`viewport`&&a.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&N(t.pop())},{rootMargin:`100px`}),t.observe(a.current)),()=>{e=!1,t?.disconnect(),V(a)}},[i,C,j,N,a]);let P=pe(e,r);if(P.ref=n?o:a,O)return P.href=O,P;let ie=t=>{let n=p??t.currentTarget.getAttribute(`target`);k||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||n&&n!==`_self`||t.button!==0||(t.preventDefault(),V(a),i.navigate({...e,_fromLocation:C._fromLocation}))},F=()=>{j===`intent`&&z(i,C)},I=()=>{j===`intent`&&V(a)};return P.onClick=H(m,ie),P.onBlur=H(g,I),P.onFocus=H(ee,N),P.onMouseEnter=H(_,N),P.onMouseLeave=H(v,I),P.onTouchStart=H(y,F),me(P,e,D,E,k,r)}var de={},fe={className:`active`},B=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 pe(e,t){let n={};for(let r in e)B.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function me(e,t,n,r,i,a){let{activeProps:o,inactiveProps:s,className:c,style:l,target:u}=t,d=re(n?o:s,{})??(n?fe:de);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 he(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||!ne(i,t.protocolAllowlist))return i}var U=L.memo(L.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 L.createElement(n,r,i)}),ge);function ge(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!B.has(r)||!i(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}var _e={};function ve(e,t){let n=L.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=u(n.current,i):i}}function W(e){let t=s(),n=L.useContext(e.from?v:h),r=e.from??n,i=t.stores.getMatchStore(r),o=ve(e,t),c=x(i,e=>e?o(e):_e);if(c!==_e)return c;(e.shouldThrow??!0)&&a()}function G(e){return W({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function K(e){let{select:t,...n}=e;return W({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function q(e){return W({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 J(e){return W({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Y(e){return W({...e,select:t=>e.select?e.select(t.context):t.context})}function ye(e){return new be({id:e})}var be=class extends ae{constructor({id:e}){super({id:e}),this.useMatch=e=>W({...e,from:this.id}),this.useRouteContext=e=>Y({...e,from:this.id}),this.useSearch=e=>J({...e,from:this.id}),this.useParams=e=>q({...e,from:this.id}),this.useLoaderDeps=e=>K({...e,from:this.id,strict:!1}),this.useLoaderData=e=>G({...e,from:this.id,strict:!1}),this.useNavigate=()=>{let e=s();return o({from:e.routesById[this.id].fullPath})},this.notFound=e=>w({routeId:this.id,...e}),this.Link=L.forwardRef((e,t)=>{let n=s().routesById[this.id].fullPath;return(0,R.jsx)(U,{ref:t,from:n,...e})})}},xe=class extends I{constructor(e){super(e),this.useMatch=e=>W({...e,from:this.id}),this.useRouteContext=e=>Y({...e,from:this.id}),this.useSearch=e=>J({...e,from:this.id}),this.useParams=e=>q({...e,from:this.id}),this.useLoaderDeps=e=>K({...e,from:this.id}),this.useLoaderData=e=>G({...e,from:this.id}),this.useNavigate=()=>o({from:this.fullPath}),this.Link=L.forwardRef((e,t)=>(0,R.jsx)(U,{ref:t,from:this.fullPath,...e}))}};function Se(e){return new xe(e)}var Ce=class extends oe{constructor(e){super(e),this.useMatch=e=>W({...e,from:this.id}),this.useRouteContext=e=>Y({...e,from:this.id}),this.useSearch=e=>J({...e,from:this.id}),this.useParams=e=>q({...e,from:this.id}),this.useLoaderDeps=e=>K({...e,from:this.id}),this.useLoaderData=e=>G({...e,from:this.id}),this.useNavigate=()=>o({from:this.fullPath}),this.Link=L.forwardRef((e,t)=>(0,R.jsx)(U,{ref:t,from:this.fullPath,...e}))}};function we(e){return new Ce(e)}function X(e){return e=>{let t=Se(e);return t.isRoot=!1,t}}function Z(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(l(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(c)c(a());else throw a()}return L.createElement(r,e)};return o.preload=a,o}function Te(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 Ee(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e,a=L.useMemo(()=>n===void 0?void 0:{__html:n},[n]);switch(e.tag){case`title`:return(0,R.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,R.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,R.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,R.jsx)(`style`,{...t,dangerouslySetInnerHTML:a,nonce:r});case`script`:return(0,R.jsx)(De,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function De({attrs:e,children:t,preventScriptHoist:n}){s();let r=ee(),i=L.useMemo(()=>t===void 0?void 0:{__html:t},[t]),a=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(L.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 Te(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,Te(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,a]),a&&typeof t==`string`)return(0,R.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:i});if(!r){if(e?.src)return(0,R.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,R.jsx)(`script`,{...e,dangerouslySetInnerHTML:i,suppressHydrationWarning:!0})}return null}function Oe(e,t,n,r){n=S(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:d(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}})),l=e.ssr?.manifest,u=[];l&&(n.forEach(e=>{(l.routes[e.routeId]?.css)?.forEach(e=>{let n=P(e);u.push({tag:`link`,attrs:{rel:`stylesheet`,...n,crossOrigin:k(r,`stylesheet`)??n.crossOrigin,suppressHydrationWarning:!0,nonce:t}})})}),l.inlineStyle&&u.push({tag:`style`,attrs:{...l.inlineStyle.attrs,nonce:t},children:l.inlineStyle.children,inlineCss:!0}));let f=[];l&&n.forEach(e=>{l.routes[e.routeId]?.preloads?.forEach(e=>{f.push({tag:`link`,attrs:{...j(l,e,r),nonce:t}})})});let p=n.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`style`,attrs:{...n,nonce:t},children:e})),m=n.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`script`,attrs:{...n,nonce:t},children:e})),h=[];return N(h,a),h.push(...f),N(h,c),h.push(...u),N(h,p),N(h,m),h}var ke=e=>{let t=s(),n=t.options.ssr?.nonce,r=L.useCallback(r=>Oe(t,n,r,e),[e,n,t]);return x(t.stores.matches,r,{compare:i})};function Ae(e){let t=ke(e.assetCrossOrigin),n=s().options.ssr?.nonce;return(0,R.jsx)(R.Fragment,{children:t.map(e=>(0,L.createElement)(Ee,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var je={suppressHydrationWarning:!0},Me=()=>{let e=s(),t=e.options.ssr?.nonce,n=n=>{let r=ie(n,e.ssr?.manifest,t,je);for(let e of r[1])if(typeof e.attrs?.src==`string`){let t=e;t.preventScriptHoist=!0}return r};return Ne(x(e.stores.matches,e=>F(n(e)),{compare:i}))};function Ne(e){return(0,R.jsx)(R.Fragment,{children:e.map((e,t)=>(0,L.createElement)(Ee,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}var Pe=we({shellComponent:e=>(0,R.jsxs)(`div`,{className:`bg-background text-foreground pt-safe-top pr-safe-right pl-safe-left flex h-dvh w-dvw flex-col`,children:[(0,R.jsx)(Ae,{}),(0,R.jsx)(Me,{}),(0,R.jsx)(n,{children:e.children})]})}),Fe=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),Ie=function(e){return`/`+e},Le={},Re=function(e){return e.pathname.endsWith(`.css`)},ze=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=Ie(t,n);let r=s(t),i=Re(r);return ze(Le,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`:Fe,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)})},Be=X(`/(home)`)({component:Z(()=>Q(()=>import(`./route-NUCS2u02.js`),__vite__mapDeps([0,1,2,3,4,5,6,7])),`component`),validateSearch:m(b)}),Ve=X(`/(home)/`)({component:Z(()=>Q(()=>import(`./(home)-CsFFJloK.js`),__vite__mapDeps([8,1,2,3,4,5,6])),`component`)}),He=X(`/(home)/people`)({component:Z(()=>Q(()=>import(`./people-BvjrADRC.js`),__vite__mapDeps([9,1,2,3,4,5,7])),`component`)}),$=Be.update({id:`/(home)`,getParentRoute:()=>Pe}),Ue=Ve.update({id:`/`,path:`/`,getParentRoute:()=>$}),We={homePeopleRoute:He.update({id:`/people`,path:`/people`,getParentRoute:()=>$}),homeIndexRoute:Ue},Ge={homeRouteRoute:$._addFileChildren(We)},Ke=Pe._addFileChildren(Ge)._addFileTypes(),qe=y(Ke);_(qe);export{U as n,ye as t};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/route-BG0dbB9K.js","assets/rolldown-runtime-WkwZ5CU-.js","assets/react-COyt-gOi.js","assets/components-zIDgshMa.js","assets/effect-Cym5PIVz.js","assets/utils-Aj5S_5S2.js","assets/Check.es-scKUVKGC.js","assets/dialog-DiwMVfBX.js","assets/(home)-BGL2qG8s.js","assets/people-BOPejtAC.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{Ar as t,B as n,Cr as r,Dr as i,Er as a,Fr as o,Ir as s,Lr as c,Mr as l,Nr as u,Or as d,Sr as f,Tr as p,_n as m,_r as h,br as g,fr as ee,gn as _,gr as v,hn as y,hr as te,jr as ne,kr as re,n as b,pr as x,vr as S,wr as C,xr as w,yr as T}from"./utils-Aj5S_5S2.js";import{a as E,o as D}from"./react-COyt-gOi.js";var O=`Error preloading route! ☝️`;function k(e,t){if(e)return typeof e==`string`?e:e[t]}function A(e){return e?.scriptFormat??`module`}function j(e,t,n){let r=M(t),i=k(n,`script`)??r.crossOrigin;return{...A(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,fetchPriority:`low`,...i?{crossOrigin:i}:{}}}function M(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function N(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 P(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function ie(e,t,n,r){let i=S(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 F([e,t],n){return n?[...n.before,...e,...t,n.boundary]:[...e,...t]}var I=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=g:this.parentRoute||a();let r=n?g:t?.path;r&&r!==`/`&&(r=C(r));let i=t?.id||r,o=n?g:f((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(i??``));r===`__root__`&&(r=`/`);let s=o===`__root__`?`/`:r===void 0?this.parentRoute.fullPath:f(this.parentRoute.fullPath+`/`+r);this._path=r,this._id=o,this._fullPath=s,this._to=p(s)},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=>T({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{constructor({id:e}){this.notFound=e=>w({routeId:this.id,...e}),this.redirect=e=>T({from:this.id,...e}),this.id=e}},oe=class extends I{constructor(e){super(e)}},L=e(D(),1),R=E();function se(...e){let t=L.useRef(e),n=t.current;return e.forEach((e,t)=>{i(n[t],e,!1,!0)||(n[t]=e)}),t.current}function z(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(O)})}function ce(e,n){let r=typeof e==`string`&&t(e);if(r)return n.has(r)?e:null}function le(e,t,n,a){let o=r(e.pathname,a),s=r(t.pathname,a);return(n?.exact?o!==s:!o.startsWith(s)||o.length!==s.length&&o[s.length]!==`/`)||(n?.includeSearch??!0)&&!i(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||e.hash===t.hash}function ue(e,n,r){let i=s(),a=L.useRef(null),o=L.useCallback(e=>{if(a.current=e,typeof n==`function`)return n(e);n&&(n.current=e)},[n]),{activeOptions:c,to:l,preload:u,preloadDelay:d,disabled:f,target:p,onClick:m,onBlur:g,onFocus:ee,onMouseEnter:_,onMouseLeave:v,onTouchStart:y}=e,[ne,re,b]=se(e.search,e.params,c),x=L.useContext(h),S=(i.stores._linkScopes??={})[x]??=te(i,x),[C,w,T]=L.useMemo(()=>{let n=ce(l,i.protocolAllowlist);if(n!==void 0){let t=[n??void 0];return[e,()=>t]}let r={...e},a,o,s,c=()=>{let e=S[0]();if(e!==a){r._fromLocation=e;let n=i.buildLocation(r),s=he(n,i,f),c=f||s&&!t(s)?le(e,n,b,i.basepath):void 0;o&&o[0]===s&&o[1]===c||(o=[s,c]),a=e}return o};return[r,c,b?.includeHash&&(()=>{let e=c();return e[1]?s??=[e[0],!1]:e})]},[i,S,e.from,e.hash,e.href,l,ne,re,e.state,e.mask,e.unsafeRelative,b,f]),[E,D]=L.useSyncExternalStore(S[1],w,T||w),O=D===void 0&&E,k=f||E===void 0,A=L.useRef(!1),j=e.reloadDocument||O||k?!1:u??i.options.defaultPreload,M=d??i.options.defaultPreloadDelay??0,N=L.useCallback(e=>{let t=e?.isIntersecting;t??j===`intent`?M?a.t??=setTimeout(()=>{a.t=void 0,z(i,C)},M):z(i,C):t===!1&&V(a)},[i,C,a,j,M]);L.useEffect(()=>{if(!j)return;j===`render`&&!A.current&&(A.current=!0,z(i,C));let e=!0,t;return j===`viewport`&&a.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&N(t.pop())},{rootMargin:`100px`}),t.observe(a.current)),()=>{e=!1,t?.disconnect(),V(a)}},[i,C,j,N,a]);let P=pe(e,r);if(P.ref=n?o:a,O)return P.href=O,P;let ie=t=>{let n=p??t.currentTarget.getAttribute(`target`);k||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||n&&n!==`_self`||t.button!==0||(t.preventDefault(),V(a),i.navigate({...e,_fromLocation:C._fromLocation}))},F=()=>{j===`intent`&&z(i,C)},I=()=>{j===`intent`&&V(a)};return P.onClick=H(m,ie),P.onBlur=H(g,I),P.onFocus=H(ee,N),P.onMouseEnter=H(_,N),P.onMouseLeave=H(v,I),P.onTouchStart=H(y,F),me(P,e,D,E,k,r)}var de={},fe={className:`active`},B=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 pe(e,t){let n={};for(let r in e)B.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function me(e,t,n,r,i,a){let{activeProps:o,inactiveProps:s,className:c,style:l,target:u}=t,d=re(n?o:s,{})??(n?fe:de);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 he(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||!ne(i,t.protocolAllowlist))return i}var U=L.memo(L.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 L.createElement(n,r,i)}),ge);function ge(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!B.has(r)||!i(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}var _e={};function ve(e,t){let n=L.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=u(n.current,i):i}}function W(e){let t=s(),n=L.useContext(e.from?v:h),r=e.from??n,i=t.stores.getMatchStore(r),o=ve(e,t),c=x(i,e=>e?o(e):_e);if(c!==_e)return c;(e.shouldThrow??!0)&&a()}function G(e){return W({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function K(e){let{select:t,...n}=e;return W({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function q(e){return W({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 J(e){return W({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Y(e){return W({...e,select:t=>e.select?e.select(t.context):t.context})}function ye(e){return new be({id:e})}var be=class extends ae{constructor({id:e}){super({id:e}),this.useMatch=e=>W({...e,from:this.id}),this.useRouteContext=e=>Y({...e,from:this.id}),this.useSearch=e=>J({...e,from:this.id}),this.useParams=e=>q({...e,from:this.id}),this.useLoaderDeps=e=>K({...e,from:this.id,strict:!1}),this.useLoaderData=e=>G({...e,from:this.id,strict:!1}),this.useNavigate=()=>{let e=s();return o({from:e.routesById[this.id].fullPath})},this.notFound=e=>w({routeId:this.id,...e}),this.Link=L.forwardRef((e,t)=>{let n=s().routesById[this.id].fullPath;return(0,R.jsx)(U,{ref:t,from:n,...e})})}},xe=class extends I{constructor(e){super(e),this.useMatch=e=>W({...e,from:this.id}),this.useRouteContext=e=>Y({...e,from:this.id}),this.useSearch=e=>J({...e,from:this.id}),this.useParams=e=>q({...e,from:this.id}),this.useLoaderDeps=e=>K({...e,from:this.id}),this.useLoaderData=e=>G({...e,from:this.id}),this.useNavigate=()=>o({from:this.fullPath}),this.Link=L.forwardRef((e,t)=>(0,R.jsx)(U,{ref:t,from:this.fullPath,...e}))}};function Se(e){return new xe(e)}var Ce=class extends oe{constructor(e){super(e),this.useMatch=e=>W({...e,from:this.id}),this.useRouteContext=e=>Y({...e,from:this.id}),this.useSearch=e=>J({...e,from:this.id}),this.useParams=e=>q({...e,from:this.id}),this.useLoaderDeps=e=>K({...e,from:this.id}),this.useLoaderData=e=>G({...e,from:this.id}),this.useNavigate=()=>o({from:this.fullPath}),this.Link=L.forwardRef((e,t)=>(0,R.jsx)(U,{ref:t,from:this.fullPath,...e}))}};function we(e){return new Ce(e)}function X(e){return e=>{let t=Se(e);return t.isRoot=!1,t}}function Z(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(l(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(c)c(a());else throw a()}return L.createElement(r,e)};return o.preload=a,o}function Te(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 Ee(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e,a=L.useMemo(()=>n===void 0?void 0:{__html:n},[n]);switch(e.tag){case`title`:return(0,R.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,R.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,R.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,R.jsx)(`style`,{...t,dangerouslySetInnerHTML:a,nonce:r});case`script`:return(0,R.jsx)(De,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function De({attrs:e,children:t,preventScriptHoist:n}){s();let r=ee(),i=L.useMemo(()=>t===void 0?void 0:{__html:t},[t]),a=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(L.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 Te(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,Te(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,a]),a&&typeof t==`string`)return(0,R.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:i});if(!r){if(e?.src)return(0,R.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,R.jsx)(`script`,{...e,dangerouslySetInnerHTML:i,suppressHydrationWarning:!0})}return null}function Oe(e,t,n,r){n=S(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:d(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}})),l=e.ssr?.manifest,u=[];l&&(n.forEach(e=>{(l.routes[e.routeId]?.css)?.forEach(e=>{let n=P(e);u.push({tag:`link`,attrs:{rel:`stylesheet`,...n,crossOrigin:k(r,`stylesheet`)??n.crossOrigin,suppressHydrationWarning:!0,nonce:t}})})}),l.inlineStyle&&u.push({tag:`style`,attrs:{...l.inlineStyle.attrs,nonce:t},children:l.inlineStyle.children,inlineCss:!0}));let f=[];l&&n.forEach(e=>{l.routes[e.routeId]?.preloads?.forEach(e=>{f.push({tag:`link`,attrs:{...j(l,e,r),nonce:t}})})});let p=n.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`style`,attrs:{...n,nonce:t},children:e})),m=n.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`script`,attrs:{...n,nonce:t},children:e})),h=[];return N(h,a),h.push(...f),N(h,c),h.push(...u),N(h,p),N(h,m),h}var ke=e=>{let t=s(),n=t.options.ssr?.nonce,r=L.useCallback(r=>Oe(t,n,r,e),[e,n,t]);return x(t.stores.matches,r,{compare:i})};function Ae(e){let t=ke(e.assetCrossOrigin),n=s().options.ssr?.nonce;return(0,R.jsx)(R.Fragment,{children:t.map(e=>(0,L.createElement)(Ee,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var je={suppressHydrationWarning:!0},Me=()=>{let e=s(),t=e.options.ssr?.nonce,n=n=>{let r=ie(n,e.ssr?.manifest,t,je);for(let e of r[1])if(typeof e.attrs?.src==`string`){let t=e;t.preventScriptHoist=!0}return r};return Ne(x(e.stores.matches,e=>F(n(e)),{compare:i}))};function Ne(e){return(0,R.jsx)(R.Fragment,{children:e.map((e,t)=>(0,L.createElement)(Ee,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}var Pe=we({shellComponent:e=>(0,R.jsxs)(`div`,{className:`bg-background text-foreground pt-safe-top pr-safe-right pl-safe-left flex h-dvh w-dvw flex-col`,children:[(0,R.jsx)(Ae,{}),(0,R.jsx)(Me,{}),(0,R.jsx)(n,{children:e.children})]})}),Fe=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),Ie=function(e){return`/`+e},Le={},Re=function(e){return e.pathname.endsWith(`.css`)},ze=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=Ie(t,n);let r=s(t),i=Re(r);return ze(Le,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`:Fe,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)})},Be=X(`/(home)`)({component:Z(()=>Q(()=>import(`./route-BG0dbB9K.js`),__vite__mapDeps([0,1,2,3,4,5,6,7])),`component`),validateSearch:m(b)}),Ve=X(`/(home)/`)({component:Z(()=>Q(()=>import(`./(home)-BGL2qG8s.js`),__vite__mapDeps([8,1,2,3,4,5,6])),`component`)}),He=X(`/(home)/people`)({component:Z(()=>Q(()=>import(`./people-BOPejtAC.js`),__vite__mapDeps([9,1,2,3,4,5,7])),`component`)}),$=Be.update({id:`/(home)`,getParentRoute:()=>Pe}),Ue=Ve.update({id:`/`,path:`/`,getParentRoute:()=>$}),We={homePeopleRoute:He.update({id:`/people`,path:`/people`,getParentRoute:()=>$}),homeIndexRoute:Ue},Ge={homeRouteRoute:$._addFileChildren(We)},Ke=Pe._addFileChildren(Ge)._addFileTypes(),qe=y(Ke);_(qe);export{U as n,ye as t};
|