1import{o as e}from"./chunk-CMxvf4Kt.js";import{i as t,r as n,t as r}from"./useRouter-CRizssnV.js";import{n as i,t as a}from"./link-CMQ4GwFF.js";import{R as o,b as s,h as c,o as l,y as u}from"./useStore-BwkIPn52.js";import{r as d}from"./redirect-DCb_aIiF.js";import{t as f}from"./root-DLTE-HSj.js";import{t as p}from"./jsx-runtime-sLPvdpSW.js";var m=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.originalIndex;let t=this.options,r=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=f:this.parentRoute||n();let i=r?f:t?.path;i&&i!==`/`&&(i=u(i));let a=t?.id||i,o=r?f:c([this.parentRoute.id===`__root__`?``:this.parentRoute.id,a]);i===`__root__`&&(i=`/`),o!==`__root__`&&(o=c([`/`,o]));let l=o===`__root__`?`/`:c([this.parentRoute.fullPath,i]);this._path=i,this._id=o,this._fullPath=l,this._to=s(l)},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.`)}},h=class extends m{constructor(e){super(e)}};function g(e){return i({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function _(e){let{select:t,...n}=e;return i({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function v(e){return i({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 y(e){return i({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}var b=e(t(),1);function x(e){let t=r();return b.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function S(e){return i({...e,select:t=>e.select?e.select(t.context):t.context})}var C=p(),w=class extends m{constructor(e){super(e),this.useMatch=e=>i({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>S({...e,from:this.id}),this.useSearch=e=>y({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>v({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>_({...e,from:this.id}),this.useLoaderData=e=>g({...e,from:this.id}),this.useNavigate=()=>x({from:this.fullPath}),this.Link=b.forwardRef((e,t)=>(0,C.jsx)(a,{ref:t,from:this.fullPath,...e}))}};function T(e){return new w(e)}function E(){return e=>O(e)}var D=class extends h{constructor(e){super(e),this.useMatch=e=>i({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>S({...e,from:this.id}),this.useSearch=e=>y({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>v({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>_({...e,from:this.id}),this.useLoaderData=e=>g({...e,from:this.id}),this.useNavigate=()=>x({from:this.fullPath}),this.Link=b.forwardRef((e,t)=>(0,C.jsx)(a,{ref:t,from:this.fullPath,...e}))}};function O(e){return new D(e)}function k(e){return new A(e,{silent:!0}).createRoute}var A=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=T(e);return t.isRoot=!1,t},this.silent=t?.silent}};function j(e,t){let n,r,i,a,s=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,o(i)&&i instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),a=!0)}}),n),c=function(e){if(a)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(l)l(s());else throw s();return b.createElement(r,e)};return c.preload=s,c}export{k as n,E as r,j as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.