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