1import{a as e}from"./chunk-BEqpzyXh.js";import{n as t}from"./createLucideIcon-CEDU0v2w.js";import{t as n}from"./jsx-runtime-DOlcsXOY.js";import{n as r,o as i,y as a}from"./useRouterState-BamRzxzd.js";import{t as o}from"./tiny-invariant-Boh5h6e0.js";import{d as s,s as c,t as l,u}from"./link-B-tYfDFD.js";import{r as d}from"./redirect-4gabt16D.js";import{t as f}from"./root-LQluJ85Z.js";import{t as p}from"./useMatch-BBRzcsYg.js";import{t as m}from"./useParams-DvtbiOHL.js";import{t as h}from"./useSearch-CKWW02Fi.js";import{t as g}from"./useNavigate-DM__V3do.js";import{t as _}from"./useRouteContext-H6QaE354.js";var v=class{constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=f:this.parentRoute||o(!1,`Child Route instances must pass a 'getParentRoute: () => ParentRoute' option that returns a Route instance.`);let r=n?f:t?.path;r&&r!==`/`&&(r=u(r));let i=t?.id||r,a=n?f:c([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=c([`/`,a]));let l=a===`__root__`?`/`:c([this.parentRoute.fullPath,r]);this._path=r,this._id=a,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.`)}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}},y=class extends v{constructor(e){super(e)}};function b(e){return p({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function x(e){let{select:t,...n}=e;return p({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}var S=n(),C=e(t(),1),w=class extends v{constructor(e){super(e),this.useMatch=e=>p({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>_({...e,from:this.id}),this.useSearch=e=>h({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>m({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>x({...e,from:this.id}),this.useLoaderData=e=>b({...e,from:this.id}),this.useNavigate=()=>g({from:this.fullPath}),this.Link=C.forwardRef((e,t)=>(0,S.jsx)(l,{ref:t,from:this.fullPath,...e})),this.$$typeof=Symbol.for(`react.memo`)}};function T(e){return new w(e)}var E=class extends y{constructor(e){super(e),this.useMatch=e=>p({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>_({...e,from:this.id}),this.useSearch=e=>h({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>m({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>x({...e,from:this.id}),this.useLoaderData=e=>b({...e,from:this.id}),this.useNavigate=()=>g({from:this.fullPath}),this.Link=C.forwardRef((e,t)=>(0,S.jsx)(l,{ref:t,from:this.fullPath,...e})),this.$$typeof=Symbol.for(`react.memo`)}};function D(e){return new E(e)}function O(e){return typeof e==`object`?new k(e,{silent:!0}).createRoute(e):new k(e,{silent:!0}).createRoute}var k=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=T(e);return t.isRoot=!1,t},this.silent=t?.silent}},A=class{constructor(e){this.useMatch=e=>p({select:e?.select,from:this.options.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>_({...e,from:this.options.id}),this.useSearch=e=>h({select:e?.select,structuralSharing:e?.structuralSharing,from:this.options.id}),this.useParams=e=>m({select:e?.select,structuralSharing:e?.structuralSharing,from:this.options.id}),this.useLoaderDeps=e=>x({...e,from:this.options.id}),this.useLoaderData=e=>b({...e,from:this.options.id}),this.useNavigate=()=>g({from:r().routesById[this.options.id].fullPath}),this.options=e,this.$$typeof=Symbol.for(`react.memo`)}};function j(e){return typeof e==`object`?new A(e):t=>
1new A({id:e,...t})}function M(e,t){let n,r,o,s,c=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(o=e,a(o)&&o instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${o.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),s=!0)}}),n),l=function(e){if(s)throw window.location.reload(),new Promise(()=>{});if(o)throw o;if(!r)if(i)i(c());else throw c();return C.createElement(r,e)};return l.preload=c,l}export{D as i,O as n,j as r,M 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.