PageSourceSearch

https://liveheats.com/static/hooks-RyJEmVWF.js

js liveheats.com collected 2026-09-25 20:15:09 UTC 22,218 bytes, 1 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`c79cf6db0d778f4546eb555240b082779a217fc1`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`42252deb-1fd2-44aa-9ee5-345a73bab4a4`,e._sentryDebugIdIdentifier=`sentry-dbid-42252deb-1fd2-44aa-9ee5-345a73bab4a4`)}catch{}})();import{a as e}from"./rolldown-runtime-DMNfU7qb.js";import{f as t,h as n}from"./forms-uDmKKpue.js";var r=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,i=/^[\\/]{2}/;function a(e,t){return t+e.replace(/\\/g,`/`)}var o=`popstate`;function s(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function c(e={}){function t(e,t){var n;let r=(n=t.state)==null?void 0:n.masked,{pathname:i,search:a,hash:o}=r||e.location;return p(``,{pathname:i,search:a,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,r?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:m(t)}return g(t,n,null,e)}function l(e,t){if(e===!1||e==null)throw Error(t)}function u(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function d(){return Math.random().toString(36).substring(2,10)}function f(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function p(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?h(t):t,state:n,key:t&&t.key||r||d(),mask:i}}function m({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function h(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function g(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,c=i.history,l=`POP`,u=null,d=m();d==null&&(d=0,c.replaceState({...c.state,idx:d},``));function m(){return(c.state||{idx:null}).idx}function h(){l=`POP`;let e=m(),t=e==null?null:e-d;d=e,u&&u({action:l,location:y.location,delta:t})}function g(e,t){l=`PUSH`;let r=s(e)?e:p(y.location,e,t);n&&n(r,e),d=m()+1;let o=f(r,d),h=y.createHref(r.mask||r);try{c.pushState(o,``,h)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(h)}a&&u&&u({action:l,location:y.location,delta:1})}function _(e,t){l=`REPLACE`;let r=s(e)?e:p(y.location,e,t);n&&n(r,e),d=m();let i=f(r,d),o=y.createHref(r.mask||r);c.replaceState(i,``,o),a&&u&&u({action:l,location:y.location,delta:0})}function v(e){return ee(i,e)}let y={get action(){return l},get location(){return e(i,c)},listen(e){if(u)throw Error(`A history only accepts one active listener`);return i.addEventListener(o,h),u=e,()=>{i.removeEventListener(o,h),u=null}},createHref(e){return t(i,e)},createURL:v,encodeLocation(e){let t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:g,replace:_,go(e){return c.go(e)}};return y}function ee(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),l(r,`No window.location.(origin|href) available to create URL`);let a=typeof t==`string`?t:m(t);return a=a.replace(/ $/,`%20`),!n&&i.test(a)&&(a=r+a),new URL(a,r)}var _=e(n(),1);function v(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function y(e,t,n){v(e,t),t.set(e,n)}function b(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function te(e,t){return e.get(b(e,t))}function ne(e,t,n=`/`){return re(e,t,n,!1)}function re(e,t,n,r,i){let a=w((typeof t==`string`?h(t):t).pathname||`/`,n);if(a==null)return null;let o=i==null?ae(e):i,s=null,c=xe(a);for(let e=0;s==null&&e<o.length;++e)s=ye(o[e],c,r);return s}function ie(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,loaderData:t[n.id],handle:n.handle}}function ae(e){let t=oe(e);return ce(t),t}function oe(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;l(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}
1" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let u=k([r,c.relativePath]),d=n.concat(c);e.children&&e.children.length>0&&(l(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),oe(e.children,t,d,u,o)),(e.path!=null||e.index)&&t.push({path:u,score:_e(u,e.index),routesMeta:d.map((e,t)=>{let[n,r]=be(e.relativePath,e.caseSensitive,t===d.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{var n;if(e.path===``||!((n=e.path)!=null&&n.includes(`?`)))a(e,t);else for(let n of se(e.path))a(e,t,!0,n)}),t}function se(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=se(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function ce(e){e.sort((e,t)=>e.score===t.score?ve(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var le=/^:[\w-]+$/,ue=/^:[\w-]+/,de=3.5,fe=3,pe=2,me=1,he=10,ge=-2,x=e=>e===`*`;function _e(e,t){let n=e.split(`/`),r=n.length;return n.some(x)&&(r+=ge),t&&(r+=pe),n.filter(e=>!x(e)).reduce((e,t)=>e+(le.test(t)?fe:ue.test(t)?de:t===``?me:he),r)}function ve(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function ye(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?C(u,l,s.matcher,s.compiledParams):S(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=S({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;
1Object.assign(i,d.params),o.push({params:i,pathname:k([a,d.pathname]),pathnameBase:Te(k([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=k([a,d.pathnameBase]))}return o}function S(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=be(e.path,e.caseSensitive,e.end);return C(e,t,n,r)}function C(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=A(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=A(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function be(e,t=!1,n=!0){u(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(?=\/|$|\()/g,`(?:/$1)?`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function xe(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return u(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function w(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function Se(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?h(e):e,a;return n?(n=O(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?Ce(n.substring(1),`/`):Ce(n,t)):a=t,{pathname:a,search:Ee(r),hash:De(i)}}function Ce(e,t){let n=A(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function T(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function we(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function E(e){let t=we(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function D(e,t,n,r=!1){let i;typeof e==`string`?i=h(e):(i={...e},l(!i.pathname||!i.pathname.includes(`?`),T(`?`,`pathname`,`search`,i)),l(!i.pathname||!i.pathname.includes(`#`),T(`#`,`pathname`,`hash`,i)),l(!i.search||!i.search.includes(`#`),T(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=Se(i,s),u=o&&o!==`/`&&o.endsWith(`/`),d=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(u||d)&&(c.pathname+=`/`),c}var O=e=>e.replace(/[\\/]{2,}/g,`/`),k=e=>O(e.join(`/`));function A(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var Te=e=>A(e).replace(/^\/*/,`/`),Ee=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,De=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Oe=class{constructor(e,n,r,i=!1){t(this,`status`,void 0),t(this,`statusText`,void 0),t(this,`data`,void 0),t(this,`error`,void 0),t(this,`internal`,void 0),this.status=e,this.statusText=n||``,this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function ke(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Ae(e){return k(e.map(e=>e.route.path).filter(Boolean))||`/`}var je=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function j(e,t){let n=e;if(typeof n!=`string`||!r.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let o=n,s=!1;if(je)try{let e=new URL(window.location.href),r=i.test(n)?new URL(a(n,e.protocol)):new URL(n),o=w(r.pathname,t);r.origin===e.origin&&o!=null?n=o+r.search+r.hash:s=!0}catch{u(!1,`<Link to="${n}">
1 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:s,to:n}}var M=new URL(`http://localhost`);function N(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),M)}catch{return M}}function P(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function Me(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function F(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!P(i,n),s=!P(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!Me(e,i)||!P(i,a)))throw Error(`External navigation is not allowed`)}function Ne(e,t,n){return e.set(b(e,t),n),n}var Pe=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(Pe);var Fe=[`GET`,...Pe];new Set(Fe);var Ie=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function Le(e){try{return Ie.includes(new URL(e).protocol)}catch{return!1}}var I=_.createContext(null);I.displayName=`DataRouter`;var L=_.createContext(null);L.displayName=`DataRouterState`;var R=_.createContext(!1);function Re(){return _.useContext(R)}var z=_.createContext({isTransitioning:!1});z.displayName=`ViewTransition`;var ze=_.createContext(new Map);ze.displayName=`Fetchers`;var B=_.createContext(null);B.displayName=`Await`;var V=_.createContext(null);V.displayName=`Navigation`;var H=_.createContext(null);H.displayName=`Location`;var U=_.createContext({outlet:null,matches:[],isDataRoute:!1});U.displayName=`Route`;var W=_.createContext(null);W.displayName=`RouteError`;var G=`REACT_ROUTER_ERROR`,Be=`REDIRECT`,Ve=`ROUTE_ERROR_RESPONSE`;function He(e){if(e.startsWith(`${G}:${Be}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function Ue(e){if(e.startsWith(`${G}:${Ve}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Oe(t.status,t.statusText,t.data)}catch{}}var K;function We(e,{relative:t}={}){l(q(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=_.useContext(V),{hash:i,pathname:a,search:o}=$e(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:k([n,a])),r.createHref({pathname:s,search:o,hash:i})}function q(){return _.useContext(H)!=null}function J(){return l(q(),`useLocation() may be used only in the context of a <Router> component.`),_.useContext(H).location}function Ge(){return _.useContext(H).navigationType}function Ke(e){l(q(),`useMatch() may be used only in the context of a <Router> component.`);let{pathname:t}=J();return _.useMemo(()=>S(e,xe(t)),[t,e])}var qe=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function Je(){let{isDataRoute:e}=_.useContext(U);return e?pt():Ye()}function Ye(){l(q(),`useNavigate() may be used only in the context of a <Router> component.`);let e=_.useContext(I),{basename:t,navigator:n}=_.useContext(V),{matches:r}=_.useContext(U),{pathname:i}=J(),a=JSON.stringify(E(r)),o=_.useRef(!1);return _.useLayoutEffect(()=>{o.current=!0}),_.useCallback((r,s={})=>{if(u(o.current,qe),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=D(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:k([t,c.pathname])),F(typeof r==`string`?r:m(r),n.createHref(c),N(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var Xe=_.createContext(null);function Ze(e){let t=_.useContext(U).outlet;return _.useMemo(()=>t&&_.createElement(Xe.Provider,{value:e},t),[t,e])}function Qe(){var e,t;let{matches:n}=_.useContext(U);return(e=(t=n[n.length-1])==null?void 0:t.params)==null?{}:e}function $e(e,{relative:t}={}){let{matches:n}=_.useContext(U),{pathname:r}=J(),i=JSON.stringify(E(n));return _.useMemo(()=>D(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function et(e,t){return Y(e,t)}function Y(e,t,n){l(q(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=_.useContext(V),{matches:i}=_.useContext(U),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:`/`;a&&a.route;let c=J(),u;if(t){var d;let e=typeof t==`string`?h(t):t;l(s===`/`||((d=e.pathname)==null?void 0:d.startsWith(s)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`),u=e}else u=c;let f=u.pathname||`/`,p=f;if(s!==`/`){let e=s.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):ne(e,{pathname:p}),g=ot(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:k([s,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?s:k([s,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&g?_.createElement(H.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...u},navigationType:`POP`}},g):g}function tt(){let e=ft(),t=ke(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return _.createElement(_.Fragment,null,_.createElement(`h2`,null,`Unexpected Application 
1Error!`),_.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?_.createElement(`pre`,{style:{padding:`0.5rem`,backgroundColor:`rgba(200,200,200, 0.5)`}},n):null,null)}var nt=_.createElement(tt,null),rt=(K=class extends _.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=Ue(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:_.createElement(U.Provider,{value:this.props.routeContext},_.createElement(W.Provider,{value:e,children:this.props.component}));return this.context?_.createElement(it,{error:e},t):t}},t(K,`contextType`,R),K),X=new WeakMap;function it({children:e,error:t}){let{basename:n,navigator:r}=_.useContext(V);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=He(t.digest);if(e){let i=X.get(t);if(i)throw i;let a=j(e.location,n),o=a.absoluteURL||a.to;if(F(e.location,o,N(r),`allow-explicit`),Le(o))throw Error(`Invalid redirect location`);if(je&&!X.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw X.set(t,n),n}}return _.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function at({routeContext:e,match:t,children:n}){let r=_.useContext(I);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),_.createElement(U.Provider,{value:e},n)}function ot(e,t=[],n){let r=n==null?void 0:n.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r==null?void 0:r.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&(a==null?void 0:a[e.route.id])!==void 0);l(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n==null?void 0:n.onError,u=r&&c?(e,t)=>{var n,i;c(e,{location:r.location,params:(n=(i=r.matches)==null||(i=i[0])==null?void 0:i.params)==null?{}:n,pattern:Ae(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let l,d=!1,f=null,p=null;r&&(l=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||nt,o&&(s<0&&c===0?(ht(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=l?f:d?p:n.route.Component?_.createElement(n.route.Component,null):n.route.element?n.route.element:e,_.createElement(at,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?_.createElement(rt,{location:r.location,revalidation:r.revalidation,component:f,error:l,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:u}):h()},null)}function Z(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function st(e){let t=_.useContext(I);return l(t,Z(e)),t}function Q(e){let t=_.useContext(L);return l(t,Z(e)),t}function ct(e){let t=_.useContext(U);return l(t,Z(e)),t}function $(e){let t=ct(e),n=t.matches[t.matches.length-1];return l(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function lt(){return $(`useRouteId`)}function ut(){let e=Q(`useNavigation`);return _.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function dt(){let{matches:e,loaderData:t}=Q(`useMatches`);return _.useMemo(()=>e.map(e=>ie(e,t)),[e,t])}function ft(){var e;let t=_.useContext(W),n=Q(`useRouteError`),r=$(`useRouteError`);return t===void 0?(e=n.errors)==null?void 0:e[r]:t}function pt(){let{router:e}=st(`useNavigate`),t=$(`useNavigate`),n=_.useRef(!1);return _.useLayoutEffect(()=>{n.current=!0}),_.useCallback(async(r,i={})=>{u(n.current,qe),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var mt={};function ht(e,t,n){!t&&!mt[e]&&(mt[e]=!0,u(!1,n))}export{j as A,h as B,Ne as C,k as D,E,y as F,r as H,v as I,c as L,w as M,te as N,S as O,b as P,m as R,Re as S,F as T,u as V,L as _,dt as a,U as b,Ge as c,$e as d,lt as f,I as g,B as h,Ke as i,D as j,ne as k,Ze as l,Y as m,q as n,Je as o,et as p,J as r,ut as s,We as t,Qe as u,H as v,N as w,z as x,V as y,l as z};

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.