PageSourceSearch

https://memarketplace.io/assets/vendor-router-Dm7h6vZB.js

js memarketplace.io collected 2026-09-28 06:13:59 UTC 69,412 bytes, 27 lines download raw bytes

1import{r as ht,g as kt,a as Xt}from"./vendor-react-CuwLIDjn.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"0eefa8a32a2ed38053137442887d6aa677f5be48"}}catch{}})();try{(function(){var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new t.Error().stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="718dedb9-52ad-434e-8487-91eb898091e5",t._sentryDebugIdIdentifier="sentry-dbid-718dedb9-52ad-434e-8487-91eb898091e5")})()}catch{}function Yt(t,r){for(var e=0;e<r.length;e++){const n=r[e];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in t)){const o=Object.getOwnPropertyDescriptor(n,s);o&&Object.defineProperty(t,s,o.get?o:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var Je={exports:{}},Ce={};/**
2 * @license React
3 * react-jsx-runtime.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 gt;function Qt(){if(gt)return Ce;gt=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function e(n,s,o){var i=null;if(o!==void 0&&(i=""+o),s.key!==void 0&&(i=""+s.key),"key"in s){o={};for(var a in s)a!=="key"&&(o[a]=s[a])}else o=s;return s=o.ref,{$$typeof:t,type:n,key:i,ref:s!==void 0?s:null,props:o}}return Ce.Fragment=r,Ce.jsx=e,Ce.jsxs=e,Ce}var yt;function Zt(){return yt||(yt=1,Je.exports=Qt()),Je.exports}var x=Zt(),L=ht();const Ae=kt(L),cr=Yt({__proto__:null,default:Ae},[L]);var Ft=Xt();const lr=kt(Ft);var en="Invariant failed";function ie(t,r){if(!t)throw new Error(en)}const Pe=new WeakMap,je=new WeakMap,Ne={current:[]};let Xe=!1,Ee=0;const Le=new Set,Te=new Map;function It(t){const r=Array.from(t).sort((e,n)=>e instanceof be&&e.options.deps.includes(n)?1:n instanceof be&&n.options.deps.includes(e)?-1:0);for(const e of r){if(Ne.current.includes(e))continue;Ne.current.push(e),e.recompute();const n=je.get(e);if(n)for(const s of n){const o=Pe.get(s);o&&It(o)}}}function tn(t){t.listeners.forEach(r=>r({prevVal:t.prevState,currentVal:t.state}))}function nn(t){t.listeners.forEach(r=>r({prevVal:t.prevState,currentVal:t.state}))}function Tt(t){if(Ee>0&&!Te.has(t)&&Te.set(t,t.prevState),Le.add(t),!(Ee>0)&&!Xe)try{for(Xe=!0;Le.size>0;){const r=Array.from(Le);Le.clear();for(const e of r){const n=Te.get(e)??e.prevState;e.prevState=n,tn(e)}for(const e of r){const n=Pe.get(e);n&&(Ne.current.push(e),It(n))}for(const e of r){const n=Pe.get(e);if(n)for(const s of n)nn(s)}}}finally{Xe=!1,Ne.current=[],Te.clear()}}function Ye(t){Ee++;try{t()}finally{if(Ee--,Ee===0){const r=Array.from(Le)[0];r&&Tt(r)}}}class ct{constructor(r,e){this.listeners=new Set,this.subscribe=n=>{var s,o;this.listeners.add(n);const i=(o=(s=this.options)==null?void 0:s.onSubscribe)==null?void 0:o.call(s,n,this);return()=>{this.listeners.delete(n),i==null||i()}},this.setState=n=>{var s,o,i;this.prevState=this.state,this.state=(s=this.options)!=null&&s.updateFn?this.options.updateFn(this.prevState)(n):n(this.prevState),(i=(o=this.options)==null?void 0:o.onUpdate)==null||i.call(o),Tt(this)},this.prevState=r,this.state=r,this.options=e}}class be{constructor(r){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const e=[],n=[];for(const s of this.options.deps)e.push(s.prevState),n.push(s.state);return this.lastSeenDepValues=n,{prevDepVals:e,currDepVals:n,prevVal:this.prevState??void 0}},this.recompute=()=>{var e,n;this.prevState=this.state;const{prevDepVals:s,currDepVals:o,prevVal:i}=this.getDepVals();this.state=this.options.fn({prevDepVals:s,currDepVals:o,prevVal:i}),(n=(e=this.options).onUpdate)==null||n.call(e)},this.checkIfRecalculationNeededDeeply=()=>{for(const o of this.options.deps)o instanceof be&&o.checkIfRecalculationNeededDeeply();let e=!1;const n=this.lastSeenDepValues,{currDepVals:s}=this.getDepVals();for(let o=0;o<s.length;o++)if(s[o]!==n[o]){e=!0;break}e&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const e of this._subscriptions)e()}),this.subscribe=e=>{var n,s;this.listeners.add(e);const o=(s=(n=this.options).onSubscribe)==null?void 0:s.call(n,e,this);return()=>{this.listeners.delete(e),o==null||o()}},this.options=r,this.state=r.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(r=this.options.deps){for(const e of r)if(e instanceof be)e.registerOnGraph(),this.registerOnGraph(e.options.deps);else if(e instanceof ct){let n=Pe.get(e);n||(n=new Set,Pe.set(e,n)),n.add(this);let s=je.get(this);s||(s=new Set,je.set(this,s)),s.add(e)}}unregisterFromGraph(r=this.options.deps){for(const e of r)if(e instanceof be)this.unregisterFromGraph(e.options.deps);else if(e instanceof ct){const n=Pe.get(e);n&&n.delete(this);const s=je.get(this);s&&s.delete(e)}}}const ce="__TSR_index",St="popstate",_t="beforeunload";function Dt(t){let r=t.getLocation();const e=new Set,n=i=>{r=t.getLocation(),e.forEach(a=>a({location:r,action:i}))},s=i=>{t.notifyOnIndexChange??!0?n(i):r=t.getLocation()},o=async({task:i,navigateOpts:a,...d})=>{var u,l;if((a==null?void 0:a.ignoreBlocker)??!1){i();return}const p=((u=t.getBlockers)==null?void 0:u.call(t))??[],v=d.type==="PUSH"||d.type==="REPLACE";if(typeof document<"u"&&p.length&&v)for(const m of p){const g=ke(d.path,d.state);if(await m.blockerFn({currentLocation:r,nextLocation:g,action:d.type})){(l=t.onBlocked)==null||l.call(t);return}}i()};return{get location(){return r},get length(){return t.getLength()},subscribers:e,subscribe:i=>(e.add(i),()=>{e.delete(i)}),push:(i,a,d)=>{const u=r.state[ce];a=lt(u+1,a),o({task:()=>{t.pushState(i,a),n({type:"PUSH"})},navigateOpts:d,type:"PUSH",path:i,state:a})},replace:(i,a,d)=>{const u=r.state[ce];a=lt(u,a),o({task:()=>{t.replaceState(i,a),n({type:"REPLACE"})},navigateOpts:d,type:"REPLACE",path:i,state:a})},go:(i,a)=>{o({task:()=>{t.go(i),s({type:"GO",index:i})},navigateOpts:a,type:"GO"})},back:i=>{o({task:()=>{t.back((i==null?void 0:i.ignoreBlocker)??!1),s({type:"BACK"})},navigateOpts:i,type:"BACK"})},forward:i=>{o({task:()=>{t.forward((i==null?void 0:i.ignoreBlocker)??!1),s({type:"FORWARD"})},navigateOpts:i,type:"FORWARD"})},canGoBack:()=>r.state[ce]!==0,createHref:i=>t.createHref(i),block:i=>{var a;if(!t.setBlockers)return()=>{};const d=((a=t.getBlockers)==null?void 0:a.call(t))??[];return t.setBlockers([...d,i]),()=>{var u,l;const c=((u=t.getBlockers)==null?void 0:u.call(t))??[];(l=t.setBlockers)==null||l.call(t,c.filter(p=>p!==i))}},flush:()=>{var i;return(i=t.flush)==null?void 0:i.call(t)},destroy:()=>{var i;return(i=t.destroy)==null?void 0:i.call(t)},notify:n}}function lt(t,r){return r||(r={}),{...r,key:ft(),[ce]:t}}function rn(t){var r;const e=typeof document<"u"?window:void 0,n=e.history.pushState,s=e.history.replaceState;let o=[];const i=()=>o,a=h=>o=h,d=h=>h,u=()=>ke(`${e.location.pathname}${e.location.search}${e.location.hash}`,e.history.state);(r=e.history.state)!=null&&r.key||e.history.replaceState({[ce]:0,key:ft()},"");let l=u(),c,p=!1,v=!1,m=!1,g=!1;const C=()=>l;let S,E;const M=()=>{S&&(f._ignoreSubscribers=!0,(S.isPush?e.history.pushState:e.history.replaceState)(S.state,"",S.href),f._ignoreSubscribers=!1,S=void 0,E=void 0,c=void 0)},F=(h,b,R)=>{const _=d(b);E||(c=l),l=ke(b,R),S={href:_,state:R,isPush:(S==null?void 0:S.isPush)||h==="push"}
9,E||(E=Promise.resolve().then(()=>M()))},D=h=>{l=u(),f.notify({type:h})},y=async()=>{if(v){v=!1;return}const h=u(),b=h.state[ce]-l.state[ce],R=b===1,_=b===-1,w=!R&&!_||p;p=!1;const O=w?"GO":_?"BACK":"FORWARD",k=w?{type:"GO",index:b}:{type:_?"BACK":"FORWARD"};if(m)m=!1;else{const I=i();if(typeof document<"u"&&I.length){for(const j of I)if(await j.blockerFn({currentLocation:l,nextLocation:h,action:O})){v=!0,e.history.go(1),f.notify(k);return}}}l=u(),f.notify(k)},P=h=>{if(g){g=!1;return}let b=!1;const R=i();if(typeof document<"u"&&R.length)for(const _ of R){const w=_.enableBeforeUnload??!0;if(w===!0){b=!0;break}if(typeof w=="function"&&w()===!0){b=!0;break}}if(b)return h.preventDefault(),h.returnValue=""},f=Dt({getLocation:C,getLength:()=>e.history.length,pushState:(h,b)=>F("push",h,b),replaceState:(h,b)=>F("replace",h,b),back:h=>(h&&(m=!0),g=!0,e.history.back()),forward:h=>{h&&(m=!0),g=!0,e.history.forward()},go:h=>{p=!0,e.history.go(h)},createHref:h=>d(h),flush:M,destroy:()=>{e.history.pushState=n,e.history.replaceState=s,e.removeEventListener(_t,P,{capture:!0}),e.removeEventListener(St,y)},onBlocked:()=>{c&&l!==c&&(l=c)},getBlockers:i,setBlockers:a,notifyOnIndexChange:!1});return e.addEventListener(_t,P,{capture:!0}),e.addEventListener(St,y),e.history.pushState=function(...h){const b=n.apply(e.history,h);return f._ignoreSubscribers||D("PUSH"),b},e.history.replaceState=function(...h){const b=s.apply(e.history,h);return f._ignoreSubscribers||D("REPLACE"),b},f}function on(t={initialEntries:["/"]}){const r=t.initialEntries;let e=t.initialIndex?Math.min(Math.max(t.initialIndex,0),r.length-1):r.length-1;const n=r.map((o,i)=>lt(i,void 0));return Dt({getLocation:()=>ke(r[e],n[e]),getLength:()=>r.length,pushState:(o,i)=>{e<r.length-1&&(r.splice(e+1),n.splice(e+1)),n.push(i),r.push(o),e=Math.max(r.length-1,0)},replaceState:(o,i)=>{n[e]=i,r[e]=o},back:()=>{e=Math.max(e-1,0)},forward:()=>{e=Math.min(e+1,r.length-1)},go:o=>{e=Math.min(Math.max(e+o,0),r.length-1)},createHref:o=>o})}function ke(t,r){const e=t.indexOf("#"),n=t.indexOf("?");return{href:t,pathname:t.substring(0,e>0?n>0?Math.min(e,n):e:n>0?n:t.length),hash:e>-1?t.substring(e):"",search:n>-1?t.slice(n,e===-1?void 0:e):"",state:r||{[ce]:0,key:ft()}}}function ft(){return(Math.random()+1).toString(36).substring(7)}function _e(t){return t[t.length-1]}function sn(t){return typeof t=="function"}function pe(t,r){return sn(t)?t(r):t}function ut(t,r){return r.reduce((e,n)=>(e[n]=t[n],e),{})}function ee(t,r){if(t===r)return t;const e=r,n=Pt(t)&&Pt(e);if(n||Ve(t)&&Ve(e)){const s=n?t:Object.keys(t),o=s.length,i=n?e:Object.keys(e),a=i.length,d=n?[]:{};let u=0;for(let l=0;l<a;l++){const c=n?l:i[l];(!n&&s.includes(c)||n)&&t[c]===void 0&&e[c]===void 0?(d[c]=void 0,u++):(d[c]=ee(t[c],e[c]),d[c]===t[c]&&t[c]!==void 0&&u++)}return o===a&&u===o?t:d}return e}function Ve(t){if(!wt(t))return!1;const r=t.constructor;if(typeof r>"u")return!0;const e=r.prototype;return!(!wt(e)||!e.hasOwnProperty("isPrototypeOf"))}function wt(t){return Object.prototype.toString.call(t)==="[object Object]"}function Pt(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function bt(t,r){let e=Object.keys(t);return r&&(e=e.filter(n=>t[n]!==void 0)),e}function xe(t,r,e){if(t===r)return!0;if(typeof t!=typeof r)return!1;if(Ve(t)&&Ve(r)){const n=(e==null?void 0:e.ignoreUndefined)??!0,s=bt(t,n),o=bt(r,n);return!(e!=null&&e.partial)&&s.length!==o.length?!1:o.every(i=>xe(t[i],r[i],e))}return Array.isArray(t)&&Array.isArray(r)?t.length!==r.length?!1:!t.some((n,s)=>!xe(n,r[s],e)):!1}function Se(t){let r,e;const n=new Promise((s,o)=>{r=s,e=o});return n.status="pending",n.resolve=s=>{n.status="resolved",n.value=s,r(s),t==null||t(s)},n.reject=s=>{n.status="rejected",e(s)},n}function an(t){return/%[0-9A-Fa-f]{2}/.test(t)}function ae(t){return He(t.filter(r=>r!==void 0).join("/"))}function He(t){return t.replace(/\/{2,}/g,"/")}function pt(t){return t==="/"?t:t.replace(/^\/{1,}/,"")}function me(t){return t==="/"?t:t.replace(/\/{1,}$/,"")}function cn(t){return me(pt(t))}function $e(t,r){return t!=null&&t.endsWith("/")&&t!=="/"&&t!==`${r}/`?t.slice(0,-1):t}function ln(t,r,e){return $e(t,e)===$e(r,e)}function un({basepath:t,base:r,to:e,trailingSlash:n="never",caseSensitive:s}){var o,i;r=ze(t,r,s),e=ze(t,e,s);let a=Re(r);const d=Re(e);a.length>1&&((o=_e(a))==null?void 0:o.value)==="/"&&a.pop(),d.forEach((l,c)=>{l.value==="/"?c?c===d.length-1&&a.push(l):a=[l]:l.value===".."?a.pop():l.value==="."||a.push(l)}),a.length>1&&(((i=_e(a))==null?void 0:i.value)==="/"?n==="never"&&a.pop():n==="always"&&a.push({type:"pathname",value:"/"}));const u=ae([t,...a.map(l=>l.value)]);return He(u)}function Re(t){if(!t)return[];t=He(t);const r=[];if(t.slice(0,1)==="/"&&(t=t.substring(1),r.push({type:"pathname",value:"/"})),!t)return r;
9const e=t.split("/").filter(Boolean);return r.push(...e.map(n=>n==="$"||n==="*"?{type:"wildcard",value:n}:n.charAt(0)==="$"?{type:"param",value:n}:{type:"pathname",value:n.includes("%25")?n.split("%25").map(s=>decodeURI(s)).join("%25"):decodeURI(n)})),t.slice(-1)==="/"&&(t=t.substring(1),r.push({type:"pathname",value:"/"})),r}function De({path:t,params:r,leaveWildcards:e,leaveParams:n,decodeCharMap:s}){const o=Re(t);function i(u){const l=r[u],c=typeof l=="string";return["*","_splat"].includes(u)?c?encodeURI(l):l:c?dn(l,s):l}const a={},d=ae(o.map(u=>{if(u.type==="wildcard"){a._splat=r._splat;const l=i("_splat");return e?`${u.value}${l??""}`:l}if(u.type==="param"){const l=u.value.substring(1);if(a[l]=r[l],n){const c=i(u.value);return`${u.value}${c??""}`}return i(l)??"undefined"}return u.value}));return{usedParams:a,interpolatedPath:d}}function dn(t,r){let e=encodeURIComponent(t);if(r)for(const[n,s]of r)e=e.replaceAll(n,s);return e}function Oe(t,r,e){const n=hn(t,r,e);if(!(e.to&&!n))return n??{}}function ze(t,r,e=!1){const n=e?t:t.toLowerCase(),s=e?r:r.toLowerCase();switch(!0){case n==="/":return r;case s===n:return"";case r.length<t.length:return r;case s[n.length]!=="/":return r;case s.startsWith(n):return r.slice(t.length);default:return r}}function hn(t,r,e){if(t!=="/"&&!r.startsWith(t))return;r=ze(t,r,e.caseSensitive);const n=ze(t,`${e.to??"$"}`,e.caseSensitive),s=Re(r),o=Re(n);r.startsWith("/")||s.unshift({type:"pathname",value:"/"}),n.startsWith("/")||o.unshift({type:"pathname",value:"/"});const i={};return(()=>{for(let d=0;d<Math.max(s.length,o.length);d++){const u=s[d],l=o[d],c=d>=s.length-1,p=d>=o.length-1;if(l){if(l.type==="wildcard"){const v=decodeURI(ae(s.slice(d).map(m=>m.value)));return i["*"]=v,i._splat=v,!0}if(l.type==="pathname"){if(l.value==="/"&&!(u!=null&&u.value))return!0;if(u){if(e.caseSensitive){if(l.value!==u.value)return!1}else if(l.value.toLowerCase()!==u.value.toLowerCase())return!1}}if(!u)return!1;if(l.type==="param"){if(u.value==="/")return!1;u.value.charAt(0)!=="$"&&(i[l.value.substring(1)]=decodeURIComponent(u.value))}}if(!c&&p)return i["**"]=ae(s.slice(d+1).map(v=>v.value)),!!e.fuzzy&&(l==null?void 0:l.value)!=="/"}return!0})()?i:void 0}function te(t){return!!(t!=null&&t.isNotFound)}const Ke="tsr-scroll-restoration-v1_3";let Ot=!1;try{Ot=typeof window<"u"&&typeof window.sessionStorage=="object"}catch{}const fn=(t,r)=>{let e;return(...n)=>{e||(e=setTimeout(()=>{t(...n),e=null},r))}},we=Ot?{state:JSON.parse(window.sessionStorage.getItem(Ke)||"null")||{},set:r=>(we.state=pe(r,we.state)||we.state,window.sessionStorage.setItem(Ke,JSON.stringify(we.state)))}:void 0,dt=t=>t.state.key||t.href;function pn(t){const r=[];let e;for(;e=t.parentNode;)r.unshift(`${t.tagName}:nth-child(${[].indexOf.call(e.children,t)+1})`),t=e;return`${r.join(" > ")}`.toLowerCase()}let Ue=!1;function jt(t,r,e,n,s){var o;let i;try{i=JSON.parse(sessionStorage.getItem(t)||"{}")}catch{return}const a=r||((o=window.history.state)==null?void 0:o.key),d=i[a];Ue=!0,(()=>{if(n&&d){for(const l in d){const c=d[l];if(l==="window")window.scrollTo({top:c.scrollY,left:c.scrollX,behavior:e});else if(l){const p=document.querySelector(l);p&&(p.scrollLeft=c.scrollX,p.scrollTop=c.scrollY)}}return}const u=window.location.hash.split("#")[1];if(u){const l=(window.history.state||{}).__hashScrollIntoViewOptions??!0;if(l){const c=document.getElementById(u);c&&c.scrollIntoView(l)}return}["window",...(s==null?void 0:s.filter(l=>l!=="window"))??[]].forEach(l=>{const c=l==="window"?window:document.querySelector(l);c&&c.scrollTo({top:0,left:0,behavior:e})})})(),Ue=!1}function mn(t,r){if((t.options.scrollRestoration??!1)&&(t.isScrollRestoring=!0),typeof document>"u"||t.isScrollRestorationSetup)return;t.isScrollRestorationSetup=!0,Ue=!1;const n=t.options.getScrollRestorationKey||dt;window.history.scrollRestoration="manual";const s=o=>{if(Ue||!t.isScrollRestoring)return;let i="";if(o.target===document||o.target===window)i="window";else{const d=o.target.getAttribute("data-scroll-restoration-id");d?i=`[data-scroll-restoration-id="${d}"]`:i=pn(o.target)}const a=n(t.state.location);we.set(d=>{const u=d[a]=d[a]||{}
9,l=u[i]=u[i]||{};if(i==="window")l.scrollX=window.scrollX||0,l.scrollY=window.scrollY||0;else if(i){const c=document.querySelector(i);c&&(l.scrollX=c.scrollLeft||0,l.scrollY=c.scrollTop||0)}return d})};typeof document<"u"&&document.addEventListener("scroll",fn(s,100),!0),t.subscribe("onRendered",o=>{const i=n(o.toLocation);if(!t.resetNextScroll){t.resetNextScroll=!0;return}jt(Ke,i,t.options.scrollRestorationBehavior||void 0,t.isScrollRestoring||void 0,t.options.scrollToTopSelectors||void 0),t.isScrollRestoring&&we.set(a=>(a[i]=a[i]||{},a))})}function vn(t){if(typeof document<"u"&&document.querySelector){const r=t.state.location.state.__hashScrollIntoViewOptions??!0;if(r&&t.state.location.hash!==""){const e=document.getElementById(t.state.location.hash);e&&e.scrollIntoView(r)}}}function gn(t,r){const e=Object.entries(t).flatMap(([s,o])=>Array.isArray(o)?o.map(i=>[s,String(i)]):[[s,String(o)]]);return""+new URLSearchParams(e).toString()}function Qe(t){if(!t)return"";const r=an(t)?decodeURIComponent(t):decodeURIComponent(encodeURIComponent(t));return r==="false"?!1:r==="true"?!0:+r*0===0&&+r+""===r?+r:r}function yn(t,r){const e=t;return[...new URLSearchParams(e).entries()].reduce((o,[i,a])=>{const d=o[i];return d==null?o[i]=Qe(a):o[i]=Array.isArray(d)?[...d,Qe(a)]:[d,Qe(a)],o},{})}const Sn=wn(JSON.parse),_n=Pn(JSON.stringify,JSON.parse);function wn(t){return r=>{r.substring(0,1)==="?"&&(r=r.substring(1));const e=yn(r);for(const n in e){const s=e[n];if(typeof s=="string")try{e[n]=t(s)}catch{}}return e}}function Pn(t,r){function e(n){if(typeof n=="object"&&n!==null)try{return t(n)}catch{}else if(typeof n=="string"&&typeof r=="function")try{return r(n),t(n)}catch{}return n}return n=>{n={...n},Object.keys(n).forEach(o=>{const i=n[o];typeof i>"u"||i===void 0?delete n[o]:n[o]=e(i)});const s=gn(n).toString();return s?`?${s}`:""}}const ne="__root__";function fe(t){return!!(t!=null&&t.isRedirect)}function Ze(t){return!!(t!=null&&t.isRedirect)&&t.href}function ve(t){const r=t.resolvedLocation,e=t.location,n=(r==null?void 0:r.pathname)!==e.pathname,s=(r==null?void 0:r.href)!==e.href,o=(r==null?void 0:r.hash)!==e.hash;return{fromLocation:r,toLocation:e,pathChanged:n,hrefChanged:s,hashChanged:o}}class bn{constructor(r){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=e=>e(),this.update=e=>{var n;e.notFoundRoute;const s=this.options;this.options={...this.options,...e},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(o=>[encodeURIComponent(o),o])):void 0,(!this.basepath||e.basepath&&e.basepath!==s.basepath)&&(e.basepath===void 0||e.basepath===""||e.basepath==="/"?this.basepath="/":this.basepath=`/${cn(e.basepath)}`),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history??(this.isServer?on({initialEntries:[this.basepath||"/"]}):rn()),this.latestLocation=this.parseLocation()),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),this.__store||(this.__store=new ct(Rn(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(o=>!["redirected"].includes(o.status))}}}),mn(this)),typeof window<"u"&&"CSS"in window&&typeof((n=window.CSS)==null?void 0:n.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.buildRouteTree=()=>{this.routesById={},this.routesByPath={};const e=this.options.notFoundRoute;e&&(e.init({originalIndex:99999999999,defaultSsr:this.options.defaultSsr}),this.routesById[e.id]=e);const n=i=>{i.forEach((a,d)=>{a.init({originalIndex:d,defaultSsr:this.options.defaultSsr});const u=this.routesById[a.id];if(ie(!u,`Duplicate routes found with id: ${String(a.id)}`),this.routesById[a.id]=a,!a.isRoot&&a.path){const c=me(a.fullPath);(!this.routesByPath[c]||a.fullPath.endsWith("/"))&&(this.routesByPath[c]=a)}const l=a.children;l!=null&&l.length&&n(l)})};n([this.routeTree]);const s=[];
9Object.values(this.routesById).forEach((i,a)=>{var d;if(i.isRoot||!i.path)return;const u=pt(i.fullPath),l=Re(u);for(;l.length>1&&((d=l[0])==null?void 0:d.value)==="/";)l.shift();const c=l.map(p=>p.value==="/"?.75:p.type==="param"?.5:p.type==="wildcard"?.25:1);s.push({child:i,trimmed:u,parsed:l,index:a,scores:c})}),this.flatRoutes=s.sort((i,a)=>{const d=Math.min(i.scores.length,a.scores.length);for(let u=0;u<d;u++)if(i.scores[u]!==a.scores[u])return a.scores[u]-i.scores[u];if(i.scores.length!==a.scores.length)return a.scores.length-i.scores.length;for(let u=0;u<d;u++)if(i.parsed[u].value!==a.parsed[u].value)return i.parsed[u].value>a.parsed[u].value?1:-1;return i.index-a.index}).map((i,a)=>(i.child.rank=a,i.child))},this.subscribe=(e,n)=>{const s={eventType:e,fn:n};return this.subscribers.add(s),()=>{this.subscribers.delete(s)}},this.emit=e=>{this.subscribers.forEach(n=>{n.eventType===e.type&&n.fn(e)})},this.parseLocation=(e,n)=>{const s=({pathname:d,search:u,hash:l,state:c})=>{const p=this.options.parseSearch(u),v=this.options.stringifySearch(p);return{pathname:d,searchStr:v,search:ee(e==null?void 0:e.search,p),hash:l.split("#").reverse()[0]??"",href:`${d}${v}${l}`,state:ee(e==null?void 0:e.state,c)}},o=s(n??this.history.location),{__tempLocation:i,__tempKey:a}=o.state;if(i&&(!a||a===this.tempLocationKey)){const d=s(i);return d.state.key=o.state.key,delete d.state.__tempLocation,{...d,maskedLocation:o}}return o},this.resolvePathWithBase=(e,n)=>un({basepath:this.basepath,base:e,to:He(n),trailingSlash:this.options.trailingSlash,caseSensitive:this.options.caseSensitive}),this.matchRoutes=(e,n,s)=>typeof e=="string"?this.matchRoutesInternal({pathname:e,search:n},s):this.matchRoutesInternal(e,n),this.getMatchedRoutes=(e,n)=>{let s={};const o=me(e.pathname),i=l=>Oe(this.basepath,o,{to:l.fullPath,caseSensitive:l.options.caseSensitive??this.options.caseSensitive,fuzzy:!0});let a=(n==null?void 0:n.to)!==void 0?this.routesByPath[n.to]:void 0;a?s=i(a):a=this.flatRoutes.find(l=>{const c=i(l);return c?(s=c,!0):!1});let d=a||this.routesById[ne];const u=[d];for(;d.parentRoute;)d=d.parentRoute,u.unshift(d);return{matchedRoutes:u,routeParams:s,foundRoute:a}},this.cancelMatch=e=>{const n=this.getMatch(e);n&&(n.abortController.abort(),clearTimeout(n.pendingTimeout))},this.cancelMatches=()=>{var e;(e=this.state.pendingMatches)==null||e.forEach(n=>{this.cancelMatch(n.id)})},this.buildLocation=e=>{const n=(o={},i)=>{var a,d,u,l,c,p,v;const m=o._fromLocation?this.matchRoutes(o._fromLocation,{_buildLocation:!0}):this.state.matches,g=o.from!=null?m.find(_=>Oe(this.basepath,me(_.pathname),{to:o.from,caseSensitive:!1,fuzzy:!1})):void 0,C=(g==null?void 0:g.pathname)||this.latestLocation.pathname;ie(o.from==null||g!=null,"Could not find match for from: "+o.from);const S=(a=this.state.pendingMatches)!=null&&a.length?(d=_e(this.state.pendingMatches))==null?void 0:d.search:((u=_e(m))==null?void 0:u.search)||this.latestLocation.search,E=i==null?void 0:i.matchedRoutes.filter(_=>m.find(w=>w.routeId===_.id));let M;if(o.to){const _=(g==null?void 0:g.fullPath)||((l=_e(m))==null?void 0:l.fullPath)||this.latestLocation.pathname;M=this.resolvePathWithBase(_,`${o.to}`)}else{const _=this.routesById[(c=E==null?void 0:E.find(w=>{const O=De({path:w.fullPath,params:(i==null?void 0:i.routeParams)??{},decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath;return ae([this.basepath,O])===C}))==null?void 0:c.id];M=this.resolvePathWithBase(C,(_==null?void 0:_.to)??C)}const F={...(p=_e(m))==null?void 0:p.params};let D=(o.params??!0)===!0?F:{...F,...pe(o.params,F)};Object.keys(D).length>0&&(i==null||i.matchedRoutes.map(_=>{var w;return((w=_.options.params)==null?void 0:w.stringify)??_.options.stringifyParams}).filter(Boolean).forEach(_=>{D={...D,..._(D)}})),M=De({path:M,params:D??{},leaveWildcards:!1,leaveParams:e.leaveParams,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath;let y=S;if(e._includeValidateSearch&&((v=this.options.search)!=null&&v.strict)){let _={};i==null||i.matchedRoutes.forEach(w=>{try{w.options.validateSearch&&(_={..._,...et(w.options.validateSearch,{..._,...y})??{}})}catch{}}),y=_}y=(_=>{const w=(i==null?void 0:i.matchedRoutes.reduce((I,j)=>{var Y;const X=[];if("search"in j.options)(Y=j.options.search)!=null&&Y.middlewares&&X.push(...j.options.search.middlewares);else if(j.options.preSearchFilters||j.options.postSearchFilters){const W=({search:B,next:Q})=>{let N=B;
9"preSearchFilters"in j.options&&j.options.preSearchFilters&&(N=j.options.preSearchFilters.reduce((z,K)=>K(z),B));const V=Q(N);return"postSearchFilters"in j.options&&j.options.postSearchFilters?j.options.postSearchFilters.reduce((z,K)=>K(z),V):V};X.push(W)}if(e._includeValidateSearch&&j.options.validateSearch){const W=({search:B,next:Q})=>{const N=Q(B);try{return{...N,...et(j.options.validateSearch,N)??{}}}catch{return N}};X.push(W)}return I.concat(X)},[]))??[],O=({search:I})=>o.search?o.search===!0?I:pe(o.search,I):{};w.push(O);const k=(I,j)=>{if(I>=w.length)return j;const Y=w[I];return Y({search:j,next:W=>k(I+1,W)})};return k(0,_)})(y),y=ee(S,y);const f=this.options.stringifySearch(y),h=o.hash===!0?this.latestLocation.hash:o.hash?pe(o.hash,this.latestLocation.hash):void 0,b=h?`#${h}`:"";let R=o.state===!0?this.latestLocation.state:o.state?pe(o.state,this.latestLocation.state):{};return R=ee(this.latestLocation.state,R),{pathname:M,search:y,searchStr:f,state:R,hash:h??"",href:`${M}${f}${b}`,unmaskOnReload:o.unmaskOnReload}},s=(o={},i)=>{var a;const d=n(o);let u=i?n(i):void 0;if(!u){let p={};const v=(a=this.options.routeMasks)==null?void 0:a.find(m=>{const g=Oe(this.basepath,d.pathname,{to:m.from,caseSensitive:!1,fuzzy:!1});return g?(p=g,!0):!1});if(v){const{from:m,...g}=v;i={...ut(e,["from"]),...g,params:p},u=n(i)}}const l=this.getMatchedRoutes(d,o),c=n(o,l);if(u){const p=this.getMatchedRoutes(u,i),v=n(i,p);c.maskedLocation=v}return c};return e.mask?s(e,{...ut(e,["from"]),...e.mask}):s(e)},this.commitLocation=({viewTransition:e,ignoreBlocker:n,...s})=>{const o=()=>{const d=["key","__TSR_index","__hashScrollIntoViewOptions"];d.forEach(l=>{s.state[l]=this.latestLocation.state[l]});const u=xe(s.state,this.latestLocation.state);return d.forEach(l=>{delete s.state[l]}),u},i=this.latestLocation.href===s.href,a=this.commitLocationPromise;if(this.commitLocationPromise=Se(()=>{a==null||a.resolve()}),i&&o())this.load();else{let{maskedLocation:d,hashScrollIntoView:u,...l}=s;d&&(l={...d,state:{...d.state,__tempKey:void 0,__tempLocation:{...l,search:l.searchStr,state:{...l.state,__tempKey:void 0,__tempLocation:void 0,key:void 0}}}},(l.unmaskOnReload??this.options.unmaskOnReload??!1)&&(l.state.__tempKey=this.tempLocationKey)),l.state.__hashScrollIntoViewOptions=u??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,this.history[s.replace?"replace":"push"](l.href,l.state,{ignoreBlocker:n})}return this.resetNextScroll=s.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:n,hashScrollIntoView:s,viewTransition:o,ignoreBlocker:i,href:a,...d}={})=>{if(a){const l=this.history.location.state.__TSR_index,c=ke(a,{__TSR_index:e?l:l+1});d.to=c.pathname,d.search=this.options.parseSearch(c.search),d.hash=c.hash.slice(1)}const u=this.buildLocation({...d,_includeValidateSearch:!0});return this.commitLocation({...u,viewTransition:o,replace:e,resetScroll:n,hashScrollIntoView:s,ignoreBlocker:i})},this.navigate=({to:e,reloadDocument:n,href:s,...o})=>{if(n){if(!s){const i=this.buildLocation({to:e,...o});s=this.history.createHref(i.href)}o.replace?window.location.replace(s):window.location.href=s;return}return this.buildAndCommitLocation({...o,href:s,to:e})},this.load=async e=>{this.latestLocation=this.parseLocation(this.latestLocation);let n,s,o;for(o=new Promise(i=>{this.startTransition(async()=>{var a;try{const d=this.latestLocation,u=this.state.resolvedLocation;this.cancelMatches();let l;Ye(()=>{l=this.matchRoutes(d),this.__store.setState(c=>({...c,status:"pending",isLoading:!0,location:d,pendingMatches:l,cachedMatches:c.cachedMatches.filter(p=>!l.find(v=>v.id===p.id))}))}),this.state.redirect||this.emit({type:"onBeforeNavigate",...ve({resolvedLocation:u,location:d})}),this.emit({type:"onBeforeLoad",...ve({resolvedLocation:u,location:d})}),await this.loadMatches({sync:e==null?void 0:e.sync,matches:l,location:d,onReady:async()=>{this.startViewTransition(async()=>{let c,p,v;Ye(()=>{this.__store.setState(m=>{const g=m.matches,C=m.pendingMatches||m.matches;return c=g.filter(S=>!C.find(E=>E.id===S.id)),p=C.filter(S=>!g.find(E=>E.id===S.id)),v=g.filter(S=>C.find(E=>E.id===S.id)),{...m,isLoading:!1,loadedAt:Date.now(),matches:C,pendingMatches:void 0,cachedMatches:[...m.cachedMatches,...c.filter(S=>S.status!=="error")]}}),this.clearExpiredCache()}
9),[[c,"onLeave"],[p,"onEnter"],[v,"onStay"]].forEach(([m,g])=>{m.forEach(C=>{var S,E;(E=(S=this.looseRoutesById[C.routeId].options)[g])==null||E.call(S,C)})})})}})}catch(d){Ze(d)?(n=d,this.isServer||this.navigate({...n,replace:!0,ignoreBlocker:!0})):te(d)&&(s=d),this.__store.setState(u=>({...u,statusCode:n?n.statusCode:s?404:u.matches.some(l=>l.status==="error")?500:200,redirect:n}))}this.latestLoadPromise===o&&((a=this.commitLocationPromise)==null||a.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),i()})}),this.latestLoadPromise=o,await o;this.latestLoadPromise&&o!==this.latestLoadPromise;)await this.latestLoadPromise;this.hasNotFoundMatch()&&this.__store.setState(i=>({...i,statusCode:404}))},this.startViewTransition=e=>{const n=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,n&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let s;if(typeof n=="object"&&this.isViewTransitionTypesSupported){const o=this.latestLocation,i=this.state.resolvedLocation,a=typeof n.types=="function"?n.types(ve({resolvedLocation:i,location:o})):n.types;s={update:e,types:a}}else s=e;document.startViewTransition(s)}else e()},this.updateMatch=(e,n)=>{var s;let o;const i=(s=this.state.pendingMatches)==null?void 0:s.find(l=>l.id===e),a=this.state.matches.find(l=>l.id===e),d=this.state.cachedMatches.find(l=>l.id===e),u=i?"pendingMatches":a?"matches":d?"cachedMatches":"";return u&&this.__store.setState(l=>{var c;return{...l,[u]:(c=l[u])==null?void 0:c.map(p=>p.id===e?o=n(p):p)}}),o},this.getMatch=e=>[...this.state.cachedMatches,...this.state.pendingMatches??[],...this.state.matches].find(n=>n.id===e),this.loadMatches=async({location:e,matches:n,preload:s,onReady:o,updateMatch:i=this.updateMatch,sync:a})=>{let d,u=!1;const l=async()=>{u||(u=!0,await(o==null?void 0:o()))},c=v=>!!(s&&!this.state.matches.find(m=>m.id===v)),p=(v,m)=>{var g,C,S,E;if(Ze(m)&&!m.reloadDocument)throw m;if(fe(m)||te(m)){if(i(v.id,M=>({...M,status:fe(m)?"redirected":te(m)?"notFound":"error",isFetching:!1,error:m,beforeLoadPromise:void 0,loaderPromise:void 0})),m.routeId||(m.routeId=v.routeId),(g=v.beforeLoadPromise)==null||g.resolve(),(C=v.loaderPromise)==null||C.resolve(),(S=v.loadPromise)==null||S.resolve(),fe(m))throw u=!0,m=this.resolveRedirect({...m,_fromLocation:e}),m;if(te(m))throw this._handleNotFound(n,m,{updateMatch:i}),(E=this.serverSsr)==null||E.onMatchSettled({router:this,match:this.getMatch(v.id)}),m}};try{await new Promise((v,m)=>{(async()=>{var g,C,S,E;try{const M=(y,P,f)=>{var h,b;const{id:R,routeId:_}=n[y],w=this.looseRoutesById[_];if(P instanceof Promise)throw P;P.routerCode=f,d=d??y,p(this.getMatch(R),P);try{(b=(h=w.options).onError)==null||b.call(h,P)}catch(O){P=O,p(this.getMatch(R),P)}i(R,O=>{var k,I;return(k=O.beforeLoadPromise)==null||k.resolve(),(I=O.loadPromise)==null||I.resolve(),{...O,error:P,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController,beforeLoadPromise:void 0}})};for(const[y,{id:P,routeId:f}]of n.entries()){const h=this.getMatch(P),b=(g=n[y-1])==null?void 0:g.id,R=this.looseRoutesById[f],_=R.options.pendingMs??this.options.defaultPendingMs,w=!!(o&&!this.isServer&&!c(P)&&(R.options.loader||R.options.beforeLoad||xt(R))&&typeof _=="number"&&_!==1/0&&(R.options.pendingComponent??((C=this.options)==null?void 0:C.defaultPendingComponent)));let O=!0;if((h.beforeLoadPromise||h.loaderPromise)&&(w&&setTimeout(()=>{try{l()}catch{}},_),await h.beforeLoadPromise,O=this.getMatch(P).status!=="success"),O){try{i(P,H=>{const T=H.loadPromise;return{...H,loadPromise:Se(()=>{T==null||T.resolve()}),beforeLoadPromise:Se()}});const k=new AbortController;let I;w&&(I=setTimeout(()=>{try{l()}catch{}},_));const{paramsError:j,searchError:Y}=this.getMatch(P);j&&M(y,j,"PARSE_PARAMS"),Y&&M(y,Y,"VALIDATE_SEARCH");const X=()=>b?this.getMatch(b).context:this.options.context??{};i(P,H=>({...H,isFetching:"beforeLoad",fetchCount:H.fetchCount+1,abortController:k,pendingTimeout:I,context:{...X(),...H.__routeContext}}));const{search:W,params:B,context:Q,cause:N}=this.getMatch(P),V=c(P),z={search:W,abortController:k,params:B,preload:V,context:Q,location:e,navigate:H=>this.navigate({...H,_fromLocation:e}),buildLocation:this.buildLocation,cause:V?"preload":N,matches:n}
9,K=await((E=(S=R.options).beforeLoad)==null?void 0:E.call(S,z))??{};(fe(K)||te(K))&&M(y,K,"BEFORE_LOAD"),i(P,H=>({...H,__beforeLoadContext:K,context:{...X(),...H.__routeContext,...K},abortController:k}))}catch(k){M(y,k,"BEFORE_LOAD")}i(P,k=>{var I;return(I=k.beforeLoadPromise)==null||I.resolve(),{...k,beforeLoadPromise:void 0,isFetching:!1}})}}const F=n.slice(0,d),D=[];F.forEach(({id:y,routeId:P},f)=>{D.push((async()=>{const{loaderPromise:h}=this.getMatch(y);let b=!1,R=!1;if(h){await h;const _=this.getMatch(y);_.error&&p(_,_.error)}else{const _=D[f-1],w=this.looseRoutesById[P],O=()=>{const{params:N,loaderDeps:V,abortController:z,context:K,cause:H}=this.getMatch(y),T=c(y);return{params:N,deps:V,preload:!!T,parentMatchPromise:_,abortController:z,context:K,location:e,navigate:U=>this.navigate({...U,_fromLocation:e}),cause:T?"preload":H,route:w}},k=Date.now()-this.getMatch(y).updatedAt,I=c(y),j=I?w.options.preloadStaleTime??this.options.defaultPreloadStaleTime??3e4:w.options.staleTime??this.options.defaultStaleTime??0,Y=w.options.shouldReload,X=typeof Y=="function"?Y(O()):Y;i(y,N=>({...N,loaderPromise:Se(),preload:!!I&&!this.state.matches.find(V=>V.id===y)}));const W=async()=>{var N,V,z,K,H,T,U,ue,se,de,ge;try{const re=async()=>{const q=this.getMatch(y);q.minPendingPromise&&await q.minPendingPromise};try{this.loadRouteChunk(w),i(y,he=>({...he,isFetching:"loader"}));const q=await((V=(N=w.options).loader)==null?void 0:V.call(N,O()));p(this.getMatch(y),q),await w._lazyPromise,await re();const Z={matches:n,match:this.getMatch(y),params:this.getMatch(y).params,loaderData:q},G=(K=(z=w.options).head)==null?void 0:K.call(z,Z),ye=G==null?void 0:G.meta,Fe=G==null?void 0:G.links,Ie=G==null?void 0:G.scripts,A=(T=(H=w.options).scripts)==null?void 0:T.call(H,Z),$=(ue=(U=w.options).headers)==null?void 0:ue.call(U,{loaderData:q});await w._componentsPromise,i(y,he=>({...he,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),loaderData:q,meta:ye,links:Fe,headScripts:Ie,headers:$,scripts:A}))}catch(q){let Z=q;await re(),p(this.getMatch(y),q);try{(de=(se=w.options).onError)==null||de.call(se,q)}catch(G){Z=G,p(this.getMatch(y),G)}i(y,G=>({...G,error:Z,status:"error",isFetching:!1}))}(ge=this.serverSsr)==null||ge.onMatchSettled({router:this,match:this.getMatch(y)})}catch(re){i(y,q=>({...q,loaderPromise:void 0})),p(this.getMatch(y),re)}},{status:B,invalid:Q}=this.getMatch(y);b=B==="success"&&(Q||(X??k>j)),I&&w.options.preload===!1||(b&&!a?(R=!0,(async()=>{try{await W();const{loaderPromise:N,loadPromise:V}=this.getMatch(y);N==null||N.resolve(),V==null||V.resolve(),i(y,z=>({...z,loaderPromise:void 0}))}catch(N){Ze(N)&&await this.navigate(N)}})()):(B!=="success"||b&&a)&&await W())}if(!R){const{loaderPromise:_,loadPromise:w}=this.getMatch(y);_==null||_.resolve(),w==null||w.resolve()}return i(y,_=>({..._,isFetching:R?_.isFetching:!1,loaderPromise:R?_.loaderPromise:void 0,invalid:!1})),this.getMatch(y)})())}),await Promise.all(D),v()}catch(M){m(M)}})()}),await l()}catch(v){if(fe(v)||te(v))throw te(v)&&!s&&await l(),v}return n},this.invalidate=e=>{const n=s=>{var o;return((o=e==null?void 0:e.filter)==null?void 0:o.call(e,s))??!0?{...s,invalid:!0,...s.status==="error"?{status:"pending",error:void 0}:{}}:s};return this.__store.setState(s=>{var o;return{...s,matches:s.matches.map(n),cachedMatches:s.cachedMatches.map(n),pendingMatches:(o=s.pendingMatches)==null?void 0:o.map(n)}}),this.load({sync:e==null?void 0:e.sync})},this.resolveRedirect=e=>{const n=e;return n.href||(n.href=this.buildLocation(n).href),n},this.clearCache=e=>{const n=e==null?void 0:e.filter;n!==void 0?this.__store.setState(s=>({...s,cachedMatches:s.cachedMatches.filter(o=>!n(o))})):this.__store.setState(s=>({...s,cachedMatches:[]}))},this.clearExpiredCache=()=>{const e=n=>{const s=this.looseRoutesById[n.routeId];if(!s.options.loader)return!0;const o=(n.preload?s.options.preloadGcTime??this.options.defaultPreloadGcTime:s.options.gcTime??this.options.defaultGcTime)??5*60*1e3;return!(n.status!=="error"&&Date.now()-n.updatedAt<o)};this.clearCache({filter:e})},this.loadRouteChunk=e=>(e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(n=>{const{id:s,...o}=n.options;Object.assign(e.options,o)}):e._lazyPromise=Promise.resolve()),e._componentsPromise===void 0&&(e._componentsPromise=e._lazyPromise.then(()=>Promise.all(Bt.map(async n=>{const s=e.options[n];s!=null&&s.preload&&await s.preload()})))),e._componentsPromise),this.preloadRoute=async e=>{const n=this.buildLocation(e);let s=this.matchRoutes(n,{throwOnError:!0,preload:!0,dest:e});const o=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(a=>a.id)),i=new Set([...o,...this.state.cachedMatches.map(a=>a.id)]);Ye(()=>
9{s.forEach(a=>{i.has(a.id)||this.__store.setState(d=>({...d,cachedMatches:[...d.cachedMatches,a]}))})});try{return s=await this.loadMatches({matches:s,location:n,preload:!0,updateMatch:(a,d)=>{o.has(a)?s=s.map(u=>u.id===a?d(u):u):this.updateMatch(a,d)}}),s}catch(a){if(fe(a))return a.reloadDocument?void 0:await this.preloadRoute({...a,_fromLocation:n});te(a);return}},this.matchRoute=(e,n)=>{const s={...e,to:e.to?this.resolvePathWithBase(e.from||"",e.to):void 0,params:e.params||{},leaveParams:!0},o=this.buildLocation(s);if(n!=null&&n.pending&&this.state.status!=="pending")return!1;const a=((n==null?void 0:n.pending)===void 0?!this.state.isLoading:n.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,d=Oe(this.basepath,a.pathname,{...n,to:o.pathname});return!d||e.params&&!xe(d,e.params,{partial:!0})?!1:d&&((n==null?void 0:n.includeSearch)??!0)?xe(a.search,o.search,{partial:!0})?d:!1:d},this._handleNotFound=(e,n,{updateMatch:s=this.updateMatch}={})=>{var o;const i=this.routesById[n.routeId??""]??this.routeTree,a={};for(const u of e)a[u.routeId]=u;!i.options.notFoundComponent&&((o=this.options)!=null&&o.defaultNotFoundComponent)&&(i.options.notFoundComponent=this.options.defaultNotFoundComponent),ie(i.options.notFoundComponent);const d=a[i.id];ie(d,"Could not find match for route: "+i.id),s(d.id,u=>({...u,status:"notFound",error:n,isFetching:!1})),n.routerCode==="BEFORE_LOAD"&&i.parentRoute&&(n.routeId=i.parentRoute.id,this._handleNotFound(e,n,{updateMatch:s}))},this.hasNotFoundMatch=()=>this.__store.state.matches.some(e=>e.status==="notFound"||e.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...r,caseSensitive:r.caseSensitive??!1,notFoundMode:r.notFoundMode??"fuzzy",stringifySearch:r.stringifySearch??_n,parseSearch:r.parseSearch??Sn}),typeof document<"u"&&(window.__TSR_ROUTER__=this)}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(r,e){const{foundRoute:n,matchedRoutes:s,routeParams:o}=this.getMatchedRoutes(r,e==null?void 0:e.dest);let i=!1;(n?n.path!=="/"&&o["**"]:me(r.pathname))&&(this.options.notFoundRoute?s.push(this.options.notFoundRoute):i=!0);const a=(()=>{if(i){if(this.options.notFoundMode!=="root")for(let c=s.length-1;c>=0;c--){const p=s[c];if(p.children)return p.id}return ne}})(),d=s.map(c=>{var p;let v;const m=((p=c.options.params)==null?void 0:p.parse)??c.options.parseParams;if(m)try{const g=m(o);Object.assign(o,g)}catch(g){if(v=new xn(g.message,{cause:g}),e!=null&&e.throwOnError)throw v;return v}}),u=[],l=c=>(c==null?void 0:c.id)?c.context??this.options.context??{}:this.options.context??{};return s.forEach((c,p)=>{var v,m;const g=u[p-1],[C,S,E]=(()=>{const w=(g==null?void 0:g.search)??r.search,O=(g==null?void 0:g._strictSearch)??{};try{const k=et(c.options.validateSearch,{...w})??{};return[{...w,...k},{...O,...k},void 0]}catch(k){let I=k;if(k instanceof We||(I=new We(k.message,{cause:k})),e!=null&&e.throwOnError)throw I;return[w,{},I]}})(),M=((m=(v=c.options).loaderDeps)==null?void 0:m.call(v,{search:C}))??"",F=M?JSON.stringify(M):"",{usedParams:D,interpolatedPath:y}=De({path:c.fullPath,params:o,decodeCharMap:this.pathParamsDecodeCharMap}),P=De({path:c.id,params:o,leaveWildcards:!0,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath+F,f=this.getMatch(P),h=this.state.matches.find(w=>w.routeId===c.id),b=h?"stay":"enter";let R;if(f)R={...f,cause:b,params:h?ee(h.params,o):o,_strictParams:D,search:ee(h?h.search:f.search,C),_strictSearch:S};else{const w=c.options.loader||c.options.beforeLoad||c.lazyFn||xt(c)?"pending":"success";R={id:P,index:p,routeId:c.id,params:h?ee(h.params,o):o,_strictParams:D,pathname:ae([this.basepath,y]),updatedAt:Date.now(),search:h?ee(h.search,C):C,_strictSearch:S,searchError:void 0,status:w,isFetching:!1,error:void 0,paramsError:d[p],__routeContext:{},__beforeLoadContext:{},context:{},abortController:new AbortController,fetchCount:0,cause:b,loaderDeps:h?ee(h.loaderDeps,M):M,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:c.options.staticData||{},loadPromise:Se(),fullPath:c.fullPath}}e!=null&&e.preload||(R.globalNotFound=a===c.id),R.searchError=E;const _=l(g);
9R.context={..._,...R.__routeContext,...R.__beforeLoadContext},u.push(R)}),u.forEach((c,p)=>{var v,m,g,C,S,E,M,F;const D=this.looseRoutesById[c.routeId];if(!this.getMatch(c.id)&&(e==null?void 0:e._buildLocation)!==!0){const P=u[p-1],f=l(P),h={deps:c.loaderDeps,params:c.params,context:f,location:r,navigate:b=>this.navigate({...b,_fromLocation:r}),buildLocation:this.buildLocation,cause:c.cause,abortController:c.abortController,preload:!!c.preload,matches:u};c.__routeContext=((m=(v=D.options).context)==null?void 0:m.call(v,h))??{},c.context={...f,...c.__routeContext,...c.__beforeLoadContext}}if(c.status==="success"){c.headers=(C=(g=D.options).headers)==null?void 0:C.call(g,{loaderData:c.loaderData});const P={matches:u,match:c,params:c.params,loaderData:c.loaderData},f=(E=(S=D.options).head)==null?void 0:E.call(S,P);c.links=f==null?void 0:f.links,c.headScripts=f==null?void 0:f.scripts,c.meta=f==null?void 0:f.meta,c.scripts=(F=(M=D.options).scripts)==null?void 0:F.call(M,P)}}),u}}class We extends Error{}class xn extends Error{}function Rn(t){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:t,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function et(t,r){if(t==null)return{};if("~standard"in t){const e=t["~standard"].validate(r);if(e instanceof Promise)throw new We("Async validation not supported");if(e.issues)throw new We(JSON.stringify(e.issues,void 0,2),{cause:e});return e.value}return"parse"in t?t.parse(r):typeof t=="function"?t(r):{}}const Bt=["component","errorComponent","pendingComponent","notFoundComponent"];function xt(t){var r;for(const e of Bt)if((r=t.options[e])!=null&&r.preload)return!0;return!1}class At{constructor(r){if(this.init=e=>{var n,s;this.originalIndex=e.originalIndex;const o=this.options,i=!(o!=null&&o.path)&&!(o!=null&&o.id);if(this.parentRoute=(s=(n=this.options).getParentRoute)==null?void 0:s.call(n),i)this._path=ne;else if(!this.parentRoute)throw new Error("Child Route instances must pass a 'getParentRoute: () => ParentRoute' option that returns a Route instance.");let a=i?ne:o==null?void 0:o.path;a&&a!=="/"&&(a=pt(a));const d=(o==null?void 0:o.id)||a;let u=i?ne:ae([this.parentRoute.id===ne?"":this.parentRoute.id,d]);a===ne&&(a="/"),u!==ne&&(u=ae(["/",u]));const l=u===ne?"/":ae([this.parentRoute.fullPath,a]);this._path=a,this._id=u,this._fullPath=l,this._to=l,this._ssr=(o==null?void 0:o.ssr)??e.defaultSsr??!0},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e=="object"&&e!==null&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.options=r||{},this.isRoot=!(r!=null&&r.getParentRoute),r!=null&&r.id&&(r!=null&&r.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}get ssr(){return this._ssr}}class Cn extends At{constructor(r){super(r)}}function mt(t){const r=t.errorComponent??qe;return x.jsx(Ln,{getResetKey:t.getResetKey,onCatch:t.onCatch,children:({error:e,reset:n})=>e?L.createElement(r,{error:e,reset:n}):t.children})}class Ln extends L.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(r){return{resetKey:r.getResetKey()}}static getDerivedStateFromError(r){return{error:r}}reset(){this.setState({error:null})}componentDidUpdate(r,e){e.error&&e.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(r,e){this.props.onCatch&&this.props.onCatch(r,e)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function qe({error:t}){const[r,e]=L.useState(!1);return x.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[x.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[x.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),x.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>e(n=>!n),children:r?"Hide Error":"Show Error"})]}),x.jsx("div",{style:{height:".25rem"}}),r?x.jsx("div",{children:x.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:t.message?x.jsx("code",{children:t.message}):null})}):null]})}function Mn({children:t,fallback:r=null}){return En()?x.jsx(Ae.Fragment,{children:t}):x.jsx(Ae.Fragment,{children:r})}function En(){return Ae.useSyncExternalStore(kn,()=>!0,()=>!1)}function kn(){return()=>{}}var tt={exports:{}},nt={},rt={exports:{}},ot={};/**
10 * @license React
11 * use-sync-external-store-shim.production.js
12 *
13 * Copyright (c) Meta Platforms, Inc. and affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var Rt;function Fn(){if(Rt)return ot;Rt=1;var t=ht();
vendor: 1,787 bytes, lines 17-25
17function r(c,p){return c===p&&(c!==0||1/c===1/p)||c!==c&&p!==p}var e=typeof Object.is=="function"?Object.is:r,n=t.useState,s=t.useEffect,o=t.useLayoutEffect,i=t.useDebugValue;function a(c,p){var v=p(),m=n({inst:{value:v,getSnapshot:p}}),g=m[0].inst,C=m[1];return o(function(){g.value=v,g.getSnapshot=p,d(g)&&C({inst:g})},[c,v,p]),s(function(){return d(g)&&C({inst:g}),c(function(){d(g)&&C({inst:g})})},[c]),i(v),v}function d(c){var p=c.getSnapshot;c=c.value;try{var v=p();return!e(c,v)}catch{return!0}}function u(c,p){return p()}var l=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return ot.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:l,ot}var Ct;function In(){return Ct||(Ct=1,rt.exports=Fn()),rt.exports}/**
18 * @license React
19 * use-sync-external-store-shim/with-selector.production.js
20 *
21 * Copyright (c) Meta Platforms, Inc. and affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var Lt;function Tn(){if(Lt)return nt;Lt=1;var t=ht(),r=In();function e(u,l){return u===l&&(u!==0||1/u===1/l)||u!==u&&l!==l}var n=typeof Object.is=="function"?Object.is:e,s=r.useSyncExternalStore,o=t.useRef,i=t.useEffect,a=t.useMemo,d=t.useDebugValue;return nt.useSyncExternalStoreWithSelector=function(u,l,c,p,v){var m=o(null);if(m.current===null){var g={hasValue:!1,value:null};m.current=g}else g=m.current;m=a(function(){function S(y){if(!E){if(E=!0,M=y,y=p(y),v!==void 0&&g.hasValue){var P=g.value;if(v(P,y))return F=P}return F=y}if(P=F,n(M,y))return P;var f=p(y);return v!==void 0&&v(P,f)?(M=y,P):(M=y,F=f)}var E=!1,M,F,D=c===void 0?null:c;return[function(){return S(l())},D===null?void 0:function(){return S(D())}]},[l,c,p,v]);
25var C=s(u,m[0],m[1]);return i(function(){g.hasValue=!0,g.value=C},[C]),d(C),C},nt}var Mt;function Dn(){return Mt||(Mt=1,tt.exports=Tn()),tt.exports}var On=Dn();function jn(t,r=e=>e){return On.useSyncExternalStoreWithSelector(t.subscribe,()=>t.state,()=>t.state,r,Bn)}function Bn(t,r){if(Object.is(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(const[n,s]of t)if(!r.has(n)||!Object.is(s,r.get(n)))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(const n of t)if(!r.has(n))return!1;return!0}const e=Object.keys(t);if(e.length!==Object.keys(r).length)return!1;for(let n=0;n<e.length;n++)if(!Object.prototype.hasOwnProperty.call(r,e[n])||!Object.is(t[e[n]],r[e[n]]))return!1;return!0}const st=L.createContext(null);function Nt(){return typeof document>"u"?st:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=st,st)}function oe(t){const r=L.useContext(Nt());return t==null||t.warn,r}function J(t){const r=oe({warn:(t==null?void 0:t.router)===void 0}),e=(t==null?void 0:t.router)||r,n=L.useRef(void 0);return jn(e.__store,s=>{if(t!=null&&t.select){if(t.structuralSharing??e.options.defaultStructuralSharing){const o=ee(n.current,t.select(s));return n.current=o,o}return t.select(s)}return s})}const Ge=L.createContext(void 0),An=L.createContext(void 0);function le(t){const r=L.useContext(t.from?An:Ge);return J({select:n=>{const s=n.matches.find(o=>t.from?t.from===o.routeId:o.id===r);if(ie(!((t.shouldThrow??!0)&&!s),`Could not find ${t.from?`an active match from "${t.from}"`:"a nearest match!"}`),s!==void 0)return t.select?t.select(s):s},structuralSharing:t.structuralSharing})}function Vt(t){return le({from:t.from,strict:t.strict,structuralSharing:t.structuralSharing,select:r=>t.select?t.select(r.loaderData):r.loaderData})}function $t(t){const{select:r,...e}=t;return le({...e,select:n=>r?r(n.loaderDeps):n.loaderDeps})}function zt(t){return le({from:t.from,strict:t.strict,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,select:r=>t.select?t.select(r.params):r.params})}function Kt(t){return le({from:t.from,strict:t.strict,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,select:r=>t.select?t.select(r.search):r.search})}function Ut(t){const{navigate:r}=oe();return L.useCallback(e=>r({from:t==null?void 0:t.from,...e}),[t==null?void 0:t.from,r])}class Nn extends At{constructor(r){super(r),this.useMatch=e=>le({select:e==null?void 0:e.select,from:this.id,structuralSharing:e==null?void 0:e.structuralSharing}),this.useRouteContext=e=>le({...e,from:this.id,select:n=>e!=null&&e.select?e.select(n.context):n.context}),this.useSearch=e=>Kt({select:e==null?void 0:e.select,structuralSharing:e==null?void 0:e.structuralSharing,from:this.id}),this.useParams=e=>zt({select:e==null?void 0:e.select,structuralSharing:e==null?void 0:e.structuralSharing,from:this.id}),this.useLoaderDeps=e=>$t({...e,from:this.id}),this.useLoaderData=e=>Vt({...e,from:this.id}),this.useNavigate=()=>Ut({from:this.fullPath}),this.$$typeof=Symbol.for("react.memo")}}function Vn(t){return new Nn(t)}class $n extends Cn{constructor(r){super(r),this.useMatch=e=>le({select:e==null?void 0:e.select,from:this.id,structuralSharing:e==null?void 0:e.structuralSharing}),this.useRouteContext=e=>le({...e,from:this.id,select:n=>e!=null&&e.select?e.select(n.context):n.context}),this.useSearch=e=>Kt({select:e==null?void 0:e.select,structuralSharing:e==null?void 0:e.structuralSharing,from:this.id}),this.useParams=e=>zt({select:e==null?void 0:e.select,structuralSharing:e==null?void 0:e.structuralSharing,from:this.id}),this.useLoaderDeps=e=>$t({...e,from:this.id}),this.useLoaderData=e=>Vt({...e,from:this.id}),this.useNavigate=()=>Ut({from:this.fullPath}),this.$$typeof=Symbol.for("react.memo")}}function ur(t){return new $n(t)}function dr(t){return new zn(t,{silent:!0}).createRoute}class zn{constructor(r,e){this.path=r,this.createRoute=n=>{this.silent;const s=Vn(n);return s.isRoot=!1,s},this.silent=e==null?void 0:e.silent}}function Kn(t){const r=J({select:e=>`not-found-${e.location.pathname}-${e.status}`});return x.jsx(mt,{getResetKey:()=>r,onCatch:(e,n)=>{var s;if(te(e))(s=t.onCatch)==null||s.call(t,e,n);else throw e},errorComponent:({error:e})=>{var n;if(te(e))return(n=t.fallback)==null?void 0:n.call(t,e);throw e},children:t.children})}function Un(){return x.jsx("p",{children:"Not Found"})}function Be(t){return x.jsx(x.Fragment,{children:t.children})}function Wt(t,r,e){return r.options.notFoundComponent?x.jsx(r.options.notFoundComponent,{data:e}):t.options.defaultNotFoundComponent?x.jsx(t.options.defaultNotFoundComponent,{data:e}):x.jsx(Un,{})}var it,Et;function Wn(){if(Et)return it;Et=1;const t={},r=t.hasOwnProperty,e=(f,h)=>{for(const b in f)r.call(f,b)&&h(b,f[b])},n=(f,h)=>(h&&e(h,(b,R)=>{f[b]=R}),f),s=(f,h)=>{const b=f.length;let R=-1;for(;++R<b;)h(f[R])},o=f=>"\\u"+("0000"+f).slice(-4),i=(f,h)=>{let b=f.toString(16);return h?b:b.toUpperCase()},a=t.toString,d=Array.isArray,u=f=>typeof Buffer=="function"&&Buffer.isBuffer(f),l=f=>a.call(f)=="[object Object]",c=f=>typeof f=="string"||a.call(f)=="[object String]",p=f=>typeof f=="number"||a.call(f)=="[object Number]",v=f=>typeof f=="bigint",m=f=>typeof f=="function",g=f=>a.call(f)=="[object Map]",C=f=>a.call(f)=="[object Set]",S={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","	":"\\t"},E=/[\\\b\f\n\r\t]/,M=/[0-9]/,F=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,D=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,y=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,P=(f,h)=>{const b=()=>{j=I,++h.indentLevel,I=h.indent.repeat(h.indentLevel)},R={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"	",indentLevel:0,__inline1__:!1,__inline2__:!1},_=h&&h.json;_&&(R.quotes="double",R.wrap=!0),h=n(R,h),h.quotes!="single"&&h.quotes!="double"&&h.quotes!="backtick"&&(h.quotes="single");const w=h.quotes=="double"?'"':h.quotes=="backtick"?"`":"'",O=h.compact,k=h.lowercaseHex;let I=h.indent.repeat(h.indentLevel),j="";const Y=h.__inline1__,X=h.__inline2__,W=O?"":`
26`;let B,Q=!0;const N=h.numbers=="binary",V=h.numbers=="octal",z=h.numbers=="decimal",K=h.numbers=="hexadecimal";if(_&&f&&m(f.toJSON)&&(f=f.toJSON()),!c(f)){if(g(f))return f.size==0?"new Map()":(O||(h.__inline1__=!0,h.__inline2__=!1),"new Map("+P(Array.from(f),h)+")");if(C(f))return f.size==0?"new Set()":"new Set("+P(Array.from(f),h)+")";if(u(f))return f.length==0?"Buffer.from([])":"Buffer.from("+P(Array.from(f),h)+")";if(d(f))return B=[],h.wrap=!0,Y&&(h.__inline1__=!1,h.__inline2__=!0),X||b(),s(f,T=>{Q=!1,X&&(h.__inline2__=!1),B.push((O||X?"":I)+P(T,h))}),Q?"[]":X?"["+B.join(", ")+"]":"["+W+B.join(","+W)+W+(O?"":j)+"]";if(p(f)||v(f)){if(_)return JSON.stringify(Number(f));let T;if(z)T=String(f);else if(K){let U=f.toString(16);k||(U=U.toUpperCase()),T="0x"+U}else N?T="0b"+f.toString(2):V&&(T="0o"+f.toString(8));return v(f)?T+"n":T}else return v(f)?_?JSON.stringify(Number(f)):f+"n":l(f)?(B=[],h.wrap=!0,b(),e(f,(T,U)=>{Q=!1,B.push((O?"":I)+P(T,h)+":"+(O?"":" ")+P(U,h))}),Q?"{}":"{"+W+B.join(","+W)+W+(O?"":j)+"}"):_?JSON.stringify(f)||"null":String(f)}const H=h.escapeEverything?D:y;return B=f.replace(H,(T,U,ue,se,de,ge)=>{if(U){if(h.minimal)return U;const q=U.charCodeAt(0),Z=U.charCodeAt(1);if(h.es6){const G=(q-55296)*1024+Z-56320+65536;return"\\u{"+i(G,k)+"}"}return o(i(q,k))+o(i(Z,k))}if(ue)return o(i(ue.charCodeAt(0),k));if(T=="\0"&&!_&&!M.test(ge.charAt(de+1)))return"\\0";if(se)return se==w||h.escapeEverything?"\\"+se:se;if(E.test(T))return S[T];if(h.minimal&&!F.test(T))return T;const re=i(T.charCodeAt(0),k);return _||re.length>2?o(re):"\\x"+("00"+re).slice(-2)}),w=="`"&&(B=B.replace(/\$\{/g,"\\${")),h.isScriptContext&&(B=B.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,_?"\\u003C!--":"\\x3C!--")),h.wrap&&(B=w+B+w),B};return P.version="3.0.2",it=P,it}Wn();function Hn({children:t,log:r}){return typeof document<"u"?null:x.jsx("script",{className:"tsr-once",dangerouslySetInnerHTML:{__html:[t,"",'if (typeof __TSR_SSR__ !== "undefined") __TSR_SSR__.cleanScripts()'].filter(
26Boolean).join(`
27`)}})}function qn(){const t=oe(),e=(t.options.getScrollRestorationKey||dt)(t.latestLocation),n=e!==dt(t.latestLocation)?e:null;return!t.isScrollRestoring||!t.isServer?null:x.jsx(Hn,{children:`(${jt.toString()})(${JSON.stringify(Ke)},${JSON.stringify(n)}, undefined, true)`,log:!1})}const Ht=L.memo(function({matchId:r}){var e,n;const s=oe(),o=J({select:S=>{var E;return(E=S.matches.find(M=>M.id===r))==null?void 0:E.routeId}});ie(o);const i=s.routesById[o],a=i.options.pendingComponent??s.options.defaultPendingComponent,d=a?x.jsx(a,{}):null,u=i.options.errorComponent??s.options.defaultErrorComponent,l=i.options.onCatch??s.options.defaultOnCatch,c=i.isRoot?i.options.notFoundComponent??((e=s.options.notFoundRoute)==null?void 0:e.options.component):i.options.notFoundComponent,p=(!i.isRoot||i.options.wrapInSuspense)&&(i.options.wrapInSuspense??a??((n=i.options.errorComponent)==null?void 0:n.preload))?L.Suspense:Be,v=u?mt:Be,m=c?Kn:Be,g=J({select:S=>S.loadedAt}),C=J({select:S=>{var E;const M=S.matches.findIndex(F=>F.id===r);return(E=S.matches[M-1])==null?void 0:E.routeId}});return x.jsxs(x.Fragment,{children:[x.jsx(Ge.Provider,{value:r,children:x.jsx(p,{fallback:d,children:x.jsx(v,{getResetKey:()=>g,errorComponent:u||qe,onCatch:(S,E)=>{if(te(S))throw S;l==null||l(S,E)},children:x.jsx(m,{fallback:S=>
27{if(!c||S.routeId&&S.routeId!==o||!S.routeId&&!i.isRoot)throw S;return L.createElement(c,S)},children:x.jsx(Jn,{matchId:r})})})})}),C===ne&&s.options.scrollRestoration?x.jsxs(x.Fragment,{children:[x.jsx(Gn,{}),x.jsx(qn,{})]}):null]})});function Gn(){const t=oe(),r=L.useRef(void 0);return x.jsx("script",{suppressHydrationWarning:!0,ref:e=>{e&&(r.current===void 0||r.current.href!==t.latestLocation.href)&&(t.emit({type:"onRendered",...ve(t.state)}),r.current=t.latestLocation)}},t.latestLocation.state.key)}const Jn=L.memo(function({matchId:r}){var e,n,s;const o=oe(),{match:i,key:a,routeId:d}=J({select:p=>{const v=p.matches.findIndex(M=>M.id===r),m=p.matches[v],g=m.routeId,C=o.routesById[g].options.remountDeps??o.options.defaultRemountDeps,S=C==null?void 0:C({routeId:g,loaderDeps:m.loaderDeps,params:m._strictParams,search:m._strictSearch});return{key:S?JSON.stringify(S):void 0,routeId:g,match:ut(m,["id","status","error"])}},structuralSharing:!0}),u=o.routesById[d],l=L.useMemo(()=>{const p=u.options.component??o.options.defaultComponent;return p?x.jsx(p,{},a):x.jsx(qt,{})},[a,u.options.component,o.options.defaultComponent]),c=(u.options.errorComponent??o.options.defaultErrorComponent)||qe;if(i.status==="notFound")return ie(te(i.error)),Wt(o,u,i.error);if(i.status==="redirected")throw ie(fe(i.error)),(e=o.getMatch(i.id))==null?void 0:e.loadPromise;if(i.status==="error"){if(o.isServer)return x.jsx(c,{error:i.error,reset:void 0,info:{componentStack:""}});throw i.error}if(i.status==="pending"){const p=u.options.pendingMinMs??o.options.defaultPendingMinMs;if(p&&!((n=o.getMatch(i.id))!=null&&n.minPendingPromise)&&!o.isServer){const v=Se();Promise.resolve().then(()=>{o.updateMatch(i.id,m=>({...m,minPendingPromise:v}))}),setTimeout(()=>{v.resolve(),o.updateMatch(i.id,m=>({...m,minPendingPromise:void 0}))},p)}throw(s=o.getMatch(i.id))==null?void 0:s.loadPromise}return l}),qt=L.memo(function(){const r=oe(),e=L.useContext(Ge),n=J({select:u=>{var l;return(l=u.matches.find(c=>c.id===e))==null?void 0:l.routeId}}),s=r.routesById[n],o=J({select:u=>{const c=u.matches.find(p=>p.id===e);return ie(c),c.globalNotFound}}),i=J({select:u=>{var l;const c=u.matches,p=c.findIndex(v=>v.id===e);return(l=c[p+1])==null?void 0:l.id}});if(o)return Wt(r,s,void 0);if(!i)return null;const a=x.jsx(Ht,{matchId:i}),d=r.options.defaultPendingComponent?x.jsx(r.options.defaultPendingComponent,{}):null;return e===ne?x.jsx(L.Suspense,{fallback:d,children:a}):a});function Xn(t){return typeof(t==null?void 0:t.message)!="string"?!1:t.message.startsWith("Failed to fetch dynamically imported module")||t.message.startsWith("error loading dynamically imported module")||t.message.startsWith("Importing a module script failed")}function hr(t,r,e){let n,s,o,i;const a=()=>typeof document>"u"&&(e==null?void 0:e())===!1?(s=()=>null,Promise.resolve()):(n||(n=t().then(u=>{n=void 0,s=u[r]}).catch(u=>{if(o=u,Xn(o)&&o instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const l=`tanstack_router_reload:${o.message}`;sessionStorage.getItem(l)||(sessionStorage.setItem(l,"1"),i=!0)}})),n),d=function(l){if(i)throw window.location.reload(),new Promise(()=>{});if(o)throw o;if(!s)throw a();return(e==null?void 0:e())===!1?x.jsx(Mn,{fallback:x.jsx(qt,{}),children:L.createElement(s,l)}):L.createElement(s,l)};return d.preload=a,d}const Me=typeof window<"u"?L.useLayoutEffect:L.useEffect;function at(t){const r=L.useRef({value:t,prev:null}),e=r.current.value;return t!==e&&(r.current={value:t,prev:e}),r.current.prev}function Yn(t,r,e={},n={}){const s=L.useRef(typeof IntersectionObserver=="function"),o=L.useRef(null);return L.useEffect(()=>{if(!(!t.current||!s.current||n.disabled))return o.current=new IntersectionObserver(([i])=>{r(i)},e),o.current.observe(t.current),()=>{var i;(i=o.current)==null||i.disconnect()}},[r,e,n.disabled,t]),o.current}function Qn(t){const r=L.useRef(null);return L.useImperativeHandle(t,()=>r.current,[]),r}function Zn(){const t=oe(),r=L.useRef({router:t,mounted:!1}),e=J({select:({isLoading:c})=>c}),[n,s]=L.useState(!1),o=J({select:c=>c.matches.some(p=>p.status==="pending"),structuralSharing:!0}),i=at(e),a=e||n||o,d=at(a),u=e||o,l=at(u);return t.isServer||(t.startTransition=c=>{s(!0),L.startTransition(()=>{c(),s(!1)})}),L.useEffect(()=>{const c=t.history.subscribe(t.load),p=t.buildLocation({to:t.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return me(t.latestLocation.href)!==me(p.href)&&t.commitLocation({...p,replace:!0}),()=>{c()}},[t,t.history]),Me(()=>{if(typeof window<"u"&&t.clientSsr||r.current.router===t&&r.current.mounted)return;r.current={router:t,mounted:!0},(async()=>{try{await t.load()}catch{}})()},[t]),Me(()=>{i&&!e&&t.emit({type:"onLoad",...ve(t.state)})},[i,t,e]),Me(()=>{l&&!u&&t.emit({type:"onBeforeRouteMount",...ve(t.state)})},[u,l,t]),Me(()=>{d&&!a&&(t.emit({type:"onResolved",...ve(t.state)}),t.__store.setState(c=>({...c,status:"idle",resolvedLocation:c.location})),vn(t))},[a,d,t]),null}function er(){const t=oe(),r=t.options.defaultPendingComponent?x.jsx(t.options.defaultPendingComponent,{}):null,e=t.isServer||typeof document<"u"&&t.clientSsr?Be:L.Suspense,n=x.jsxs(e,{fallback:r,children:[x.jsx(Zn,{}),x.jsx(tr,{})]});return t.options.InnerWrap?x.jsx(t.options.InnerWrap,{children:n}):n}function tr(){const t=J({select:e=>{var n;return(n=e.matches[0])==null?void 0:n.id}}
27),r=J({select:e=>e.loadedAt});return x.jsx(Ge.Provider,{value:t,children:x.jsx(mt,{getResetKey:()=>r,errorComponent:qe,onCatch:e=>{e.message||e.toString()},children:t?x.jsx(Ht,{matchId:t}):null})})}function nr(t){return J({select:r=>{const e=r.matches;return t!=null&&t.select?t.select(e):e},structuralSharing:t==null?void 0:t.structuralSharing})}function rr(t,r){const e=oe(),[n,s]=L.useState(!1),o=L.useRef(!1),i=Qn(r),{activeProps:a=()=>({className:"active"}),inactiveProps:d=()=>({}),activeOptions:u,to:l,preload:c,preloadDelay:p,hashScrollIntoView:v,replace:m,startTransition:g,resetScroll:C,viewTransition:S,children:E,target:M,disabled:F,style:D,className:y,onClick:P,onFocus:f,onMouseEnter:h,onMouseLeave:b,onTouchStart:R,ignoreBlocker:_,...w}=t,{params:O,search:k,hash:I,state:j,mask:Y,reloadDocument:X,...W}=w,B=L.useMemo(()=>{try{return new URL(`${l}`),"external"}catch{}return"internal"},[l]),Q=J({select:A=>A.location.search,structuralSharing:!0}),N=nr({select:A=>{var $;return t.from??(($=A[A.length-1])==null?void 0:$.fullPath)}}),V=L.useMemo(()=>({...t,from:N}),[t,N]),z=L.useMemo(()=>e.buildLocation(V),[e,V,Q]),K=L.useMemo(()=>V.reloadDocument?!1:c??e.options.defaultPreload,[e.options.defaultPreload,c,V.reloadDocument]),H=p??e.options.defaultPreloadDelay??0,T=J({select:A=>{if(u!=null&&u.exact){if(!ln(A.location.pathname,z.pathname,e.basepath))return!1}else{const $=$e(A.location.pathname,e.basepath).split("/");if(!$e(z.pathname,e.basepath).split("/").every((Gt,Jt)=>Gt===$[Jt]))return!1}return((u==null?void 0:u.includeSearch)??!0)&&!xe(A.location.search,z.search,{partial:!(u!=null&&u.exact),ignoreUndefined:!(u!=null&&u.explicitUndefined)})?!1:u!=null&&u.includeHash?A.location.hash===z.hash:!0}}),U=L.useCallback(()=>{e.preloadRoute(V).catch(A=>{})},[V,e]),ue=L.useCallback(A=>{A!=null&&A.isIntersecting&&U()},[U]);if(Yn(i,ue,{rootMargin:"100px"},{disabled:!!F||K!=="viewport"}),Me(()=>{o.current||!F&&K==="render"&&(U(),o.current=!0)},[F,U,K]),B==="external")return{...W,ref:i,type:B,href:l,...E&&{children:E},...M&&{target:M},...F&&{disabled:F},...D&&{style:D},...y&&{className:y},...P&&{onClick:P},...f&&{onFocus:f},...h&&{onMouseEnter:h},...b&&{onMouseLeave:b},...R&&{onTouchStart:R}};const se=A=>{if(!F&&!or(A)&&!A.defaultPrevented&&(!M||M==="_self")&&A.button===0){A.preventDefault(),Ft.flushSync(()=>{s(!0)});const $=e.subscribe("onResolved",()=>{$(),s(!1)});return e.navigate({...V,replace:m,resetScroll:C,hashScrollIntoView:v,startTransition:g,viewTransition:S,ignoreBlocker:_})}},de=A=>{F||K&&U()},ge=de,re=A=>{if(F)return;const $=A.target||{};if(K){if($.preloadTimeout)return;$.preloadTimeout=setTimeout(()=>{$.preloadTimeout=null,U()},H)}},q=A=>{if(F)return;const $=A.target||{};$.preloadTimeout&&(clearTimeout($.preloadTimeout),$.preloadTimeout=null)},Z=A=>$=>{var he;(he=$.persist)==null||he.call($),A.filter(Boolean).forEach(vt=>{$.defaultPrevented||vt($)})},G=T?pe(a,{})??{}:{},ye=T?{}:pe(d,{}),Fe=[y,G.className,ye.className].filter(Boolean).join(" "),Ie={...D,...G.style,...ye.style};return{...W,...G,...ye,href:F?void 0:z.maskedLocation?e.history.createHref(z.maskedLocation.href):e.history.createHref(z.href),ref:i,onClick:Z([P,se]),onFocus:Z([f,de]),onMouseEnter:Z([h,re]),onMouseLeave:Z([b,q]),onTouchStart:Z([R,ge]),disabled:!!F,target:M,...Object.keys(Ie).length&&{style:Ie},...Fe&&{className:Fe},...F&&{role:"link","aria-disabled":!0},...T&&{"data-status":"active","aria-current":"page"},...n&&{"data-transitioning":"transitioning"}}}const fr=L.forwardRef((t,r)=>{const{_asChild:e,...n}=t,{type:s,ref:o,...i}=rr(n,r),a=typeof n.children=="function"?n.children({isActive:i["data-status"]==="active"}):n.children;return typeof e>"u"&&delete i.disabled,L.createElement(e||"a",{...i,ref:o},a)});function or(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}const pr=t=>new sr(t);class sr extends bn{constructor(r){super(r)}}function ir({router:t,children:r,...e}){t.update({...t.options,...e,context:{...t.options.context,...e.context}});const n=Nt(),s=x.jsx(n.Provider,{value:t,children:r});return t.options.Wrap?x.jsx(t.options.Wrap,{children:s}):s}function mr({router:t,...r}){return x.jsx(ir,{router:t,...r,children:x.jsx(er,{})})}function vr(t){return J({select:r=>r.location})}export{fr as L,qt as O,cr as R,Ft as a,lr as b,Ae as c,Ut as d,In as e,oe as f,ur as g,dr as h,pr as i,x as j,mr as k,hr as l,J as m,Kt as n,ie as o,zt as p,L as r,vr 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.