PageSourceSearch

https://sunbrooksecurestorage.com/assets/router-compat-DqQFiyhM.js

js sunbrooksecurestorage.com collected 2026-10-08 05:52:59 UTC 6,340 bytes, 1 lines download raw bytes

1import{a as e,n as t,t as n}from"./jsx-runtime-BaSZ_JNh.js";import{n as r}from"./createLucideIcon-D7prlwYv.js";import{A as i,B as a,F as o,G as s,R as c,d as l,h as ee,i as u,l as te,n as d,r as f,s as ne,t as p,u as re,v as m}from"./useStore-Bvldstfy.js";var ie=`Error preloading route! ☝️`,h=e(t(),1),g={get(){},subscribe(){return{unsubscribe(){}}}};function ae(e,t){let n=h.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=s(n.current,i):i}}function _(e){let t=u(),n=h.useContext(e.from?d:f),r=e.from?t.stores.getRouteMatchStore(e.from):t.stores.matchStores.get(n),a=ae(e,t),o=p(r??g,e=>e?a(e):g);if(o!==g)return o;(e.shouldThrow??!0)&&i()}function v(e){return _({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){let t=u();return h.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function b(e){let t=u(),n=y(),r=h.useRef(null);return l(()=>{r.current!==e&&(n(e),r.current=e)},[t,e,n]),null}var x=n(),oe=e(r(),1);function S(e,t){let n=u(),r=te(t),{activeProps:i,inactiveProps:s,activeOptions:l,to:d,preload:f,preloadDelay:g,preloadIntentProximity:ae,hashScrollIntoView:_,replace:v,startTransition:y,resetScroll:b,viewTransition:x,children:S,target:E,disabled:D,style:O,className:k,onClick:A,onBlur:j,onFocus:M,onMouseEnter:N,onMouseLeave:P,onTouchStart:F,ignoreBlocker:he,params:ge,search:_e,hash:ve,state:ye,mask:be,reloadDocument:xe,unsafeRelative:Se,from:Ce,_fromLocation:we,...I}=e,L=ne(),R=h.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),z=p(n.stores.location,e=>e,(e,t)=>e.href===t.href),B=h.useMemo(()=>{let e={_fromLocation:z,...R};return n.buildLocation(e)},[n,z,R]),V=B.maskedLocation?B.maskedLocation.publicHref:B.publicHref,H=B.maskedLocation?B.maskedLocation.external:B.external,U=h.useMemo(()=>fe(V,H,n.history,D),[D,H,V,n.history]),W=h.useMemo(()=>{if(U?.external)return a(U.href,n.protocolAllowlist)?void 0:U.href;if(!pe(d)&&typeof d==`string`&&d.indexOf(`:`)!==-1)try{return new URL(d),a(d,n.protocolAllowlist)?void 0:d}catch{}},[d,U,n.protocolAllowlist]),G=h.useMemo(()=>{if(W)return!1;if(l?.exact){if(!ee(z.pathname,B.pathname,n.basepath))return!1}else{let e=m(z.pathname,n.basepath),t=m(B.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(l?.includeSearch??!0)&&!o(z.search,B.search,{partial:!l?.exact,ignoreUndefined:!l?.explicitUndefined})?!1:!l?.includeHash||L&&z.hash===B.hash},[l?.exact,l?.explicitUndefined,l?.includeHash,l?.includeSearch,z,W,L,B.hash,B.pathname,B.search,n.basepath]),K=G?c(i,{})??se:C,q=G?C:c(s,{})??C,J=[k,K.className,q.className].filter(Boolean).join(` `),Y=(O||K.style||q.style)&&{...O,...K.style,...q.style},[Te,Ee]=h.useState(!1),De=h.useRef(!1),X=e.reloadDocument||W?!1:f??n.options.defaultPreload,Z=g??n.options.defaultPreloadDelay??0,Q=h.useCallback(()=>{n.preloadRoute({...R,_builtLocation:B}).catch(e=>{console.warn(e),console.warn(ie)})},[n,R,B]);re(r,h.useCallback(e=>{e?.isIntersecting&&Q()},[Q]),de,{disabled:!!D||X!==`viewport`}),h.useEffect(()=>{De.current||!D&&X===`render`&&(Q(),De.current=!0)},[D,Q,X]);let Oe=e=>{let t=e.currentTarget.getAttribute(`target`),r=E===void 0?t:E;if(!D&&!me(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,oe.flushSync)(()=>{Ee(!0)});let t=n.subscribe(`onResolved`,()=>{t(),Ee(!1)});n.navigate({...R,replace:v,resetScroll:b,hashScrollIntoView:_,startTransition:y,viewTransition:x,ignoreBlocker:he})}};if(W)return{...I,ref:r,href:W,...S&&{children:S},...E&&{target:E},...D&&{disabled:D},...O&&{style:O},...k&&{className:k},...A&&{onClick:A},...j&&{onBlur:j},...M&&{onFocus:M},...N&&{onMouseEnter:N},...P&&{onMouseLeave:P},...F&&{onTouchStart:F}};let ke=e=>{if(D||X!==`intent`)return;if(!Z){Q();return}let t=e.currentTarget;if(w.has(t))return;let n=setTimeout(()=>{w.delete(t),Q()},Z);w.set(t,n)},Ae=e=>{D||X!==`intent`||Q()},$=e=>{if(D||!X||!Z)return;let t=e.currentTarget,n=w.get(t);n&&(clearTimeout(n),w.delete(t))};return{...I,...K,...q,href:U?.href,ref:r,onClick:T([A,Oe]),onBlur:T([j,$]),onFocus:T([M,ke]),onMouseEnter:T([N,ke]),onMouseLeave:T([P,$]),onTouchStart:T([F,Ae]),disabled:!!D,target:E,...Y&&{style:Y},...J&&{className:J},...D&&ce,...G&&le,...L&&Te&&ue}}var C={},se={className:`active`},ce={role:`link`,"aria-disabled":!0},le={"data-status":`active`,"aria-current":`page`},ue={"data-transitioning":`transitioning`},w=new WeakMap,de={rootMargin:`100px`},T=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function fe(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function pe(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var E=h.forwardRef((e,t)=>
1{let{_asChild:n,...r}=e,{type:i,...a}=S(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return h.createElement(`a`,t,o)}return h.createElement(n,a,o)});function me(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function D(e){let t=u();return p(t.stores.location,ae(e,t))}function O(e){let[t,n]=(e??``).split(`#`),[r,i]=t.split(`?`);return{pathname:r||`.`,search:i?Object.fromEntries(new URLSearchParams(i)):void 0,hash:n||void 0}}function k(){let e=y(),t=u();return(0,h.useCallback)((n,r)=>{if(typeof n==`number`){t.history.go(n);return}let{pathname:i,search:a,hash:o}=O(n);e({to:i,search:a,hash:o,state:r?.state,replace:r?.replace})},[e,t])}function A(){let e=D();return(0,h.useMemo)(()=>({pathname:e.pathname,search:e.searchStr?`?${e.searchStr}`:``,hash:e.hash??``,state:e.state??null,key:e.pathname+(e.searchStr??``)}),[e.pathname,e.searchStr,e.hash,e.state])}function j(){return v({strict:!1})}var M=(0,h.forwardRef)(function({to:e,replace:t,state:n,children:r,...i},a){let{pathname:o,search:s,hash:c}=O(e);return(0,x.jsx)(E,{ref:a,to:o,search:s,hash:c,replace:t,state:n,...i??{},children:r})});function N({to:e,replace:t,state:n}){let{pathname:r,search:i,hash:a}=O(e);return(0,x.jsx)(b,{to:r,search:i,hash:a,state:n,replace:t})}export{j as a,v as c,k as i,_ as l,N as n,E as o,A as r,y as s,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.