1import{r as F,a as i,R as M}from"./vendor-react-DP1M2pbw.js";function T(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,r,s,o,c=[],h="",l=e.split("/");for(l[0]||l.shift();s=l.shift();)n=s[0],n==="*"?(c.push(n),h+=s[1]==="?"?"(?:/(.*))?":"/(.*)"):n===":"?(r=s.indexOf("?",1),o=s.indexOf(".",1),c.push(s.substring(1,~r?r:~o?o:s.length)),h+=~r&&!~o?"(?:/([^/]+?))?":"/([^/]+?)",~o&&(h+=(~r?"?":"")+"\\"+s.substring(o))):h+="/"+s;return{keys:c,pattern:new RegExp("^"+h+(t?"(?=$|/)":"/?$"),"i")}}var g={exports:{}},w={};var L;function z(){if(L)return w;L=1;var e=F();function t(a,d){return a===d&&(a!==0||1/a===1/d)||a!==a&&d!==d}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,s=e.useEffect,o=e.useLayoutEffect,c=e.useDebugValue;function h(a,d){var p=d(),v=r({inst:{value:p,getSnapshot:d}}),m=v[0].inst,S=v[1];return o(function(){m.value=p,m.getSnapshot=d,l(m)&&S({inst:m})},[a,p,d]),s(function(){return l(m)&&S({inst:m}),a(function(){l(m)&&S({inst:m})})},[a]),c(p),p}function l(a){var d=a.getSnapshot;a=a.value;try{var p=d();return!n(a,p)}catch{return!0}}function f(a,d){return d()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:h;return w.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,w}var O;function G(){return O||(O=1,g.exports=z()),g.exports}var Q=G();const J=M.useInsertionEffect,W=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$=W?i.useLayoutEffect:i.useEffect,X=J||$,b=e=>{const t=i.useRef([e,(...n)=>t[0](...n)]).current;return X(()=>{t[0]=e}),t[1]},Y="popstate",k="pushState",P="replaceState",Z="hashchange",j=[Y,k,P,Z],ee=e=>{for(const t of j)addEventListener(t,e);return()=>{for(const t of j)removeEventListener(t,e)}},q=(e,t)=>Q.useSyncExternalStore(ee,e,t),_=()=>location.search,te=({ssrSearch:e}={})=>q(_,e!=null?()=>e:_),I=()=>location.pathname,ne=({ssrPath:e}={})=>q(I,e!=null?()=>e:I),re=(e,{replace:t=!1,state:n=null}={})=>history[t?P:k](n,"",e),se=(e={})=>[ne(e),re],H=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[H]>"u"){for(const e of[k,P]){const t=history[e];history[e]=function(){const n=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),n}}Object.defineProperty(window,H,{value:!0})}const oe=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",D=(e="")=>e==="/"?"":e,ae=(e,t)=>e[0]==="~"?e.slice(1):D(t)+e,ce=(e="",t)=>oe(R(D(e)),R(t)),ue=e=>e[0]==="?"?e.slice(1):e,R=e=>{try{return decodeURI(e)}catch{return e}},ie=e=>R(ue(e)),K={hook:se,searchHook:te,parser:T,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e,aroundNav:(e,t,n)=>e(t,n)},N=i.createContext(K),E=()=>i.useContext(N),V={},A=i.createContext(V),fe=()=>i.useContext(A),x=e=>{const[t,n]=e.hook(e);return[ce(e.base,t),b((r,s)=>e.aroundNav(n,ae(r,e.base),s))]},le=()=>x(E()),pe=()=>{const e=E();return ie(e.searchHook(e))},C=(e,t,n,r)=>{const{pattern:s,keys:o}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",r),c=s.exec(n)||[],[h,...l]=c;return h!==void 0?[!0,(()=>{const f=o!==!1?Object.fromEntries(o.map((a,d)=>[a,l[d]])):c.groups;let u={...l};return f&&Object.assign(u,f),u})(),...r?[h]:[]]:[!1,null]},ye=e=>C(E().parser,e,le()[0]),he=({children:e,...t})=>{const n=E(),r=t.hook?K:n;let s=r;const[o,c=t.ssrSearch??""]=t.ssrPath?.split("?")??[];o&&(t.ssrSearch=c,t.ssrPath=o),t.hrefs=t.hrefs??t.hook?.hrefs,t.searchHook=t.searchHook??t.hook?.searchHook;let h=i.useRef({}),l=h.current,f=l;for(let u in r){const a=u==="base"?r[u]+(t[u]??""):t[u]??r[u];l===f&&a!==f[u]&&(h.current=f={...f}),f[u]=a,(a!==r[u]||a!==s[u])&&(s=f)}return i.createElement(N.Provider,{value:s,children:e})},U=({children:e,component:t},n)=>t?i.createElement(t,{params:n}):typeof e=="function"?e(n):e,de=e=>{let t=i.useRef(V);const n=t.current;return t.current=Object.keys(e).length!==Object.keys(n).length||Object.entries(e).some(([r,s])=>s!==n[r])?e:n},Ee=({path:e,nest:t,match:n,...r})=>{const s=E(),[o]=x(s),[c,h,l]=n??C(s.parser,e,o,t),f=de({...fe(),...h});if(!c)return null;const u=l?i.createElement(he,{base:l},U(r,f)):U(r,f);return i.createElement(A.Provider,{value:f,children:u})},Se=i.forwardRef((e,t)=>
1{const n=E(),[r,s]=x(n),{to:o="",href:c=o,onClick:h,asChild:l,children:f,className:u,replace:a,state:d,transition:p,...v}=e,m=b(y=>{y.ctrlKey||y.metaKey||y.altKey||y.shiftKey||y.button!==0||(h?.(y),y.defaultPrevented||(y.preventDefault(),s(c,e)))}),S=n.hrefs(c[0]==="~"?c.slice(1):n.base+c,n);return l&&i.isValidElement(f)?i.cloneElement(f,{onClick:m,href:S}):i.createElement("a",{...v,onClick:m,href:S,className:u?.call?u(r===c):u,children:f,ref:t})}),B=e=>Array.isArray(e)?e.flatMap(t=>B(t&&t.type===i.Fragment?t.props.children:t)):[e],ve=({children:e,location:t})=>{const n=E(),[r]=x(n);for(const s of B(e)){let o=0;if(i.isValidElement(s)&&(o=C(n.parser,s.props.path,t||r,s.props.nest))[0])return i.cloneElement(s,{match:o})}return null},xe=e=>{const{to:t,href:n=t}=e,r=E(),[,s]=x(r),o=b(()=>s(t||n,e)),{ssrContext:c}=r;return $(()=>{o()},[]),c&&(c.redirectTo=t),null};export{Se as L,he as R,ve as S,pe as a,Ee as b,xe as c,ye as d,fe as e,le as u};
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.