1import{e as W,r as u,R as H}from"./vendor-react-DkpjtC7c.js";function A(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 w={exports:{}},R={};/** 2 * @license React 3 * use-sync-external-store-shim.production.js 4 * 5 * Copyright (c) Meta Platforms, Inc. and affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var P;function B(){if(P)return R;P=1;var e=W();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 E=d(),y=r({inst:{value:E,getSnapshot:d}}),m=y[0].inst,p=y[1];return o(function(){m.value=E,m.getSnapshot=d,l(m)&&p({inst:m})},[a,E,d]),s(function(){return l(m)&&p({inst:m}),a(function(){l(m)&&p({inst:m})})},[a]),c(E),E}function l(a){var d=a.getSnapshot;a=a.value;try{var E=d();return!n(a,E)}catch{return!0}}function f(a,d){return d()}var i=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:h;return R.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:i,R}var O;function F(){return O||(O=1,w.exports=B()),w.exports}var M=F();const N=H.useInsertionEffect,z=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",G=z?u.useLayoutEffect:u.useEffect,Q=N||G,j=e=>{const t=u.useRef([e,(...n)=>t[0](...n)]).current;return Q(()=>{t[0]=e}),t[1]},J="popstate",g="pushState",b="replaceState",X="hashchange",k=[J,g,b,X],Y=e=>{for(const t of k)addEventListener(t,e);return()=>{for(const t of k)removeEventListener(t,e)}},T=(e,t)=>M.useSyncExternalStore(Y,e,t),Z=()=>location.search,ee=({ssrSearch:e=""}={})=>T(Z,()=>e),C=()=>location.pathname,te=({ssrPath:e}={})=>T(C,e?()=>e:C),ne=(e,{replace:t=!1,state:n=null}={})=>history[t?b:g](n,"",e),se=(e={})=>[te(e),ne],L=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[L]>"u"){for(const e of[g,b]){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,L,{value:!0})}const re=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",I=(e="")=>e==="/"?"":e,oe=(e,t)=>e[0]==="~"?e.slice(1):I(t)+e,ae=(e="",t)=>re(_(I(e)),_(t)),ce=e=>e[0]==="?"?e.slice(1):e,_=e=>{try{return decodeURI(e)}catch{return e}},ue=e=>_(ce(e)),$={hook:se,searchHook:ee,parser:A,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e},q=u.createContext($),S=()=>u.useContext(q),D={},K=u.createContext(D),ie=()=>u.useContext(K),v=e=>{const[t,n]=e.hook(e);return[ae(e.base,t),j((r,s)=>n(oe(r,e.base),s))]},de=()=>v(S()),pe=()=>{const e=S();return ue(e.searchHook(e))},V=(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 i={...l};return f&&Object.assign(i,f),i})(),...r?[h]:[]]:[!1,null]},fe=({children:e,...t})=>{const n=S(),r=t.hook?$:n;let s=r;const[o,c]=t.ssrPath?.split("?")??[];c&&(t.ssrSearch=c,t.ssrPath=o),t.hrefs=t.hrefs??t.hook?.hrefs;let h=u.useRef({}),l=h.current,f=l;for(let i in r){const a=i==="base"?r[i]+(t[i]||""):t[i]||r[i];l===f&&a!==f[i]&&(h.current=f={...f}),f[i]=a,(a!==r[i]||a!==s[i])&&(s=f)}return u.createElement(q.Provider,{value:s,children:e})},U=({children:e,component:t},n)=>t?u.createElement(t,{params:n}):typeof e=="function"?e(n):e,le=e=>{let t=u.useRef(D);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},me=({path:e,nest:t,match:n,...r})=>{const s=S(),[o]=v(s),[c,h,l]=n??V(s.parser,e,o,t),f=le({...ie(),...h});if(!c)return null;const i=l?u.createElement(fe,{base:l},U(r,f)):U(r,f);return u.createElement(K.Provider,{value:f,children:i})},Ee=u.forwardRef((e,t)=>
9{const n=S(),[r,s]=v(n),{to:o="",href:c=o,onClick:h,asChild:l,children:f,className:i,replace:a,state:d,...E}=e,y=j(p=>{p.ctrlKey||p.metaKey||p.altKey||p.shiftKey||p.button!==0||(h?.(p),p.defaultPrevented||(p.preventDefault(),s(c,e)))}),m=n.hrefs(c[0]==="~"?c.slice(1):n.base+c,n);return l&&u.isValidElement(f)?u.cloneElement(f,{onClick:y,href:m}):u.createElement("a",{...E,onClick:y,href:m,className:i?.call?i(r===c):i,children:f,ref:t})}),x=e=>Array.isArray(e)?e.flatMap(t=>x(t&&t.type===u.Fragment?t.props.children:t)):[e],ye=({children:e,location:t})=>{const n=S(),[r]=v(n);typeof window<"u"&&(window.__WOUTER_ROUTES__||(window.__WOUTER_ROUTES__=[]),x(e).forEach(o=>{if(u.isValidElement(o)&&o.props.path){const c=o.props.path;window.__WOUTER_ROUTES__.includes(c)||window.__WOUTER_ROUTES__.push(c)}}));for(const s of x(e)){let o=0;if(u.isValidElement(s)&&(o=V(n.parser,s.props.path,t||r,s.props.nest))[0])return u.cloneElement(s,{match:o})}return null};export{Ee as L,me as R,ye as S,ie as a,pe as b,de 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.