PageSourceSearch

https://data.pretaterra.com/assets/lazyRouteComponent-B6BcR7ep.js

js pretaterra.com collected 2026-10-06 15:17:19 UTC 4,462 bytes, 1 lines download raw bytes

1import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-CwJFpaho.js";import{O as n,l as r,n as i,o as a,t as o,u as s,v as c}from"./link-BXxEcccR.js";import{r as l}from"./matchContext-CKhXGkS-.js";import{t as u}from"./jsx-runtime-NZYk81nU.js";import{t as d}from"./useMatch-BlBWOKKg.js";import{t as f}from"./useNavigate-Zxaj4t3F.js";function p(e){if(e.statusCode=e.statusCode||e.code||307,!e.reloadDocument&&typeof e.href==`string`)try{new URL(e.href),e.reloadDocument=!0}catch{}let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function m(e){return e instanceof Response&&!!e.options}function h(e){if(typeof e==`object`&&e&&e.isSerializedRedirect)return p(e)}var g=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,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=l:this.parentRoute||c();let i=n?l:t?.path;i&&i!==`/`&&(i=r(i));let o=t?.id||i,u=n?l:a([this.parentRoute.id===`__root__`?``:this.parentRoute.id,o]);i===`__root__`&&(i=`/`),u!==`__root__`&&(u=a([`/`,u]));let d=u===`__root__`?`/`:a([this.parentRoute.fullPath,i]);this._path=i,this._id=u,this._fullPath=d,this._to=s(d)},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=>p({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.`)}},_=class extends g{constructor(e){super(e)}};function v(e){return d({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function y(e){let{select:t,...n}=e;return d({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function b(e){return d({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 x(e){return d({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function S(e){return d({...e,select:t=>e.select?e.select(t.context):t.context})}var C=e(t(),1),w=u(),T=class extends g{constructor(e){super(e),this.useMatch=e=>d({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>S({...e,from:this.id}),this.useSearch=e=>x({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>b({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>y({...e,from:this.id}),this.useLoaderData=e=>v({...e,from:this.id}),this.useNavigate=()=>f({from:this.fullPath}),this.Link=C.forwardRef((e,t)=>(0,w.jsx)(o,{ref:t,from:this.fullPath,...e}))}};function E(e){return new T(e)}var D=class extends _{constructor(e){super(e),this.useMatch=e=>d({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>S({...e,from:this.id}),this.useSearch=e=>x({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>b({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>y({...e,from:this.id}),this.useLoaderData=e=>v({...e,from:this.id}),this.useNavigate=()=>f({from:this.fullPath}),this.Link=C.forwardRef((e,t)=>(0,w.jsx)(o,{ref:t,from:this.fullPath,...e}))}};function O(e){return new D(e)}function k(e){return e=>{let t=E(e);return t.isRoot=!1,t}}function A(e,t){let r,a,o,s=()=>(r||=(o=void 0,e().then(e=>{r=void 0,c.preload=void 0,a=e[t??`default`]}).catch(e=>{r=void 0,o=e})),r),c=function(e){if(o){if(n(o)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${o.message}`;
1if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw o}if(!a){if(i)i(s());else throw s()}return C.createElement(a,e)};return c.preload=s,c}export{h as a,m as i,k as n,p as o,O as r,A 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.