PageSourceSearch

https://giselliduarte.com/assets/preload-helper-DarWlqjz.js

js giselliduarte.com collected 2026-10-06 18:05:21 UTC 5,248 bytes, 1 lines download raw bytes

1import{c as e,r as t,u as n}from"./useRouter-CzY4ZVgE.js";import{n as r,t as i}from"./link-DyJsXWcl.js";import{F as a,d as o,g as s,h as c,o as l,w as u}from"./useStore-DSd6DaVA.js";import{i as d,r as f}from"./redirect-DnLf-3Zd.js";import{t as p}from"./useNavigate-CDuOMJEQ.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,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=d:this.parentRoute||u();let r=n?d:t?.path;r&&r!==`/`&&(r=c(r));let i=t?.id||r,a=n?d:o([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=o([`/`,a]));let l=a===`__root__`?`/`:o([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=>f({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 r({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 r({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function v(e){return r({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 r({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function b(e){return r({...e,select:t=>e.select?e.select(t.context):t.context})}var x=n(e(),1),S=l(),C=class extends m{constructor(e){super(e),this.useMatch=e=>r({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>b({...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=()=>p({from:this.fullPath}),this.Link=x.forwardRef((e,t)=>(0,S.jsx)(i,{ref:t,from:this.fullPath,...e}))}};function w(e){return new C(e)}function T(){return e=>D(e)}var E=class extends h{constructor(e){super(e),this.useMatch=e=>r({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>b({...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=()=>p({from:this.fullPath}),this.Link=x.forwardRef((e,t)=>(0,S.jsx)(i,{ref:t,from:this.fullPath,...e}))}};function D(e){return new E(e)}function O(e){return new k(e,{silent:!0}).createRoute}var k=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=w(e);return t.isRoot=!1,t},this.silent=t?.silent}};function A(e,n){let r,i,o,s,c=()=>(r||=e().then(e=>{r=void 0,i=e[n??`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)}}),r),l=function(e){if(s)throw window.location.reload(),new Promise(()=>{});if(o)throw o;if(!i)if(t)t(c());else throw c();return x.createElement(i,e)};return l.preload=c,l}var j=`modulepreload`,M=function(e){return`/`+e},N={},P=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),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}))))}r=o(t.map(t=>{if(t=M(t,n),t in N)return;N[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:j,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n
vendor: 378 bytes, line 1
1)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}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)})};export{T as i,A as n,O as r,P 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.