perf(router): add two-tier caching for route matching performance
- Add WeakMap cache for route matcher functions in getRouteMatcher
- Add LRU cache for route regexes in getRouteRegex
- Improve TypeScript types with readonly modifiers and documentation
- Implement cache flow: route pattern → LRU hit → WeakMap hit → cached function