1import{j as y,r as P,R as St,a as Ke,b as vo}from"./react-DSlj3JM_.js";var go="Invariant failed";function K(t,o){if(!t)throw new Error(go)}const st=new WeakMap,Et=new WeakMap,Tt={current:[]};let Ut=!1,gt=0;const vt=new Set,Lt=new Map;function He(t){const o=Array.from(t).sort((e,n)=>e instanceof it&&e.options.deps.includes(n)?1:n instanceof it&&n.options.deps.includes(e)?-1:0);for(const e of o){if(Tt.current.includes(e))continue;Tt.current.push(e),e.recompute();const n=Et.get(e);if(n)for(const r of n){const s=st.get(r);s&&He(s)}}}function yo(t){const o={prevVal:t.prevState,currentVal:t.state};for(const e of t.listeners)e(o)}function _o(t){const o={prevVal:t.prevState,currentVal:t.state};for(const e of t.listeners)e(o)}function Ge(t){if(gt>0&&!Lt.has(t)&&Lt.set(t,t.prevState),vt.add(t),!(gt>0)&&!Ut)try{for(Ut=!0;vt.size>0;){const o=Array.from(vt);vt.clear();for(const e of o){const n=Lt.get(e)??e.prevState;e.prevState=n,yo(e)}for(const e of o){const n=st.get(e);n&&(Tt.current.push(e),He(n))}for(const e of o){const n=st.get(e);if(n)for(const r of n)_o(r)}}}finally{Ut=!1,Tt.current=[],Lt.clear()}}function yt(t){gt++;try{t()}finally{if(gt--,gt===0){const o=vt.values().next().value;o&&Ge(o)}}}function So(t){return typeof t=="function"}class te{constructor(o,e){this.listeners=new Set,this.subscribe=n=>{var r,s;this.listeners.add(n);const c=(s=(r=this.options)==null?void 0:r.onSubscribe)==null?void 0:s.call(r,n,this);return()=>{this.listeners.delete(n),c==null||c()}},this.prevState=o,this.state=o,this.options=e}setState(o){var e,n,r;this.prevState=this.state,(e=this.options)!=null&&e.updateFn?this.state=this.options.updateFn(this.prevState)(o):So(o)?this.state=o(this.prevState):this.state=o,(r=(n=this.options)==null?void 0:n.onUpdate)==null||r.call(n),Ge(this)}}class it{constructor(o){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const e=this.options.deps.length,n=new Array(e),r=new Array(e);for(let s=0;s<e;s++){const c=this.options.deps[s];n[s]=c.prevState,r[s]=c.state}return this.lastSeenDepValues=r,{prevDepVals:n,currDepVals:r,prevVal:this.prevState??void 0}},this.recompute=()=>{var e,n;this.prevState=this.state;const r=this.getDepVals();this.state=this.options.fn(r),(n=(e=this.options).onUpdate)==null||n.call(e)},this.checkIfRecalculationNeededDeeply=()=>{for(const s of this.options.deps)s instanceof it&&s.checkIfRecalculationNeededDeeply();let e=!1;const n=this.lastSeenDepValues,{currDepVals:r}=this.getDepVals();for(let s=0;s<r.length;s++)if(r[s]!==n[s]){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,r;this.listeners.add(e);const s=(r=(n=this.options).onSubscribe)==null?void 0:r.call(n,e,this);return()=>{this.listeners.delete(e),s==null||s()}},this.options=o,this.state=o.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(o=this.options.deps){for(const e of o)if(e instanceof it)e.registerOnGraph(),this.registerOnGraph(e.options.deps);else if(e instanceof te){let n=st.get(e);n||(n=new Set,st.set(e,n)),n.add(this);let r=Et.get(this);r||(r=new Set,Et.set(this,r)),r.add(e)}}unregisterFromGraph(o=this.options.deps){for(const e of o)if(e instanceof it)this.unregisterFromGraph(e.options.deps);else if(e instanceof te){const n=st.get(e);n&&n.delete(this);const r=Et.get(this);r&&r.delete(e)}}}const q="__TSR_index",Pe="popstate",xe="beforeunload";function qe(t){let o=t.getLocation();const e=new Set,n=c=>{o=t.getLocation(),e.forEach(l=>l({location:o,action:c}))},r=c=>{t.notifyOnIndexChange??!0?n(c):o=t.getLocation()},s=async({task:c,navigateOpts:l,...i})=>{var d,h;if((l==null?void 0:l.ignoreBlocker)??!1){c();return}const u=((d=t.getBlockers)==null?void 0:d.call(t))??[],f=i.type==="PUSH"||i.type==="REPLACE";if(typeof document<"u"&&u.length&&f)for(const p of u){const m=Rt(i.path,i.state);if(await p.blockerFn({currentLocation:o,nextLocation:m,action:i.type})){(h=t.onBlocked)==null||h.call(t);return}}c()};return{get location(){return o},get length(){return t.getLength()},subscribers:e,subscribe:c=>(e.add(c),()=>{e.delete(c)}),push:(c,l,i)=>{const d=o.state[q];l=ee(d+1,l),s({task:()=>{t.pushState(c,l),n({type:"PUSH"})},navigateOpts:i,type:"PUSH",path:c,state:l})},replace:(c,l,i)=>{const d=o.state[q];l=ee(d,l),s({task:()=>{t.replaceState(c,l),n({type:"REPLACE"})},navigateOpts:i,type:"REPLACE",path:c,state:l})},go:(c,l)=>{s({task:()=>{t.go(c),r({type:"GO",index:c})},navigateOpts:l,type:"GO"})},back:c=>{s({task:()=>{t.back((c==null?void 0:c.ignoreBlocker)??!1),r({type:"BACK"})},navigateOpts:c,type:"BACK"})},forward:c=>{s({task:()=>{t.forward((c==null?void 0:c.ignoreBlocker)??!1),r({type:"FORWARD"})},navigateOpts:c,type:"FORWARD"})},canGoBack:()=>o.state[q]!==0,createHref:c=>t.createHref(c),block:c=>{var l;if(!t.setBlockers)return()=>{};const i=((l=t.getBlockers)==null?void 0:l.call(t))??[];return t.setBlockers([...i,c]),()=>{var d,h;const a=((d=t.getBlockers)==null?void 0:d.call(t))??[];(h=t.setBlockers)==null||h.call(t,a.filter(u=>u!==c))}},flush:()=>{var c;return(c=t.flush)==null?void 0:c.call(t)},destroy:()=>{var c;return(c=t.destroy)==null?void 0:c.call(t)},notify:n}}function ee(t,o){o||(o={});const e=ae();return{...o,key:e,__TSR_key:e,[q]:t}}function Ro(t){var o,e;const n=typeof document<"u"?window:void 0,r=n.history.pushState,s=n.history.replaceState;let c=[];const l=()=>c,i=_=>c=_,d=(_=>_),h=(()=>Rt(`${n.location.pathname}${n.location.search}${n.location.hash}`,n.history.state));if(!((o=n.history.state)!=null&&o.__TSR_key)&&!((e=n.history.state)!=null&&e.key)){const _=ae();n.history.replaceState({[q]:0,key:_,__TSR_key:_},"")}let a=h(),u,f=!1,p=!1,m=!1,v=!1;const g=()=>a;let w,S;const R=()=>{w&&(E._ignoreSubscribers=!0,(w.isPush?n.history.pushState:n.history.replaceState)(w.state,"",w.href),E._ignoreSubscribers=!1,w=void 0,S=void 0,u=void 0)},x=(_,M,k)=>{const N=d(M);S||(u=a),a=Rt(M,k),w={href:N,state:k,isPush:(w==null?void 0:w.isPush)||_==="push"},S||(S=Promise.resolve().then(()=>R()))},C=_=>{a=h(),E.notify({type:_})},L=async()=>
1{if(p){p=!1;return}const _=h(),M=_.state[q]-a.state[q],k=M===1,N=M===-1,O=!k&&!N||f;f=!1;const Pt=O?"GO":N?"BACK":"FORWARD",j=O?{type:"GO",index:M}:{type:N?"BACK":"FORWARD"};if(m)m=!1;else{const Y=l();if(typeof document<"u"&&Y.length){for(const ve of Y)if(await ve.blockerFn({currentLocation:a,nextLocation:_,action:Pt})){p=!0,n.history.go(1),E.notify(j);return}}}a=h(),E.notify(j)},b=_=>{if(v){v=!1;return}let M=!1;const k=l();if(typeof document<"u"&&k.length)for(const N of k){const O=N.enableBeforeUnload??!0;if(O===!0){M=!0;break}if(typeof O=="function"&&O()===!0){M=!0;break}}if(M)return _.preventDefault(),_.returnValue=""},E=qe({getLocation:g,getLength:()=>n.history.length,pushState:(_,M)=>x("push",_,M),replaceState:(_,M)=>x("replace",_,M),back:_=>(_&&(m=!0),v=!0,n.history.back()),forward:_=>{_&&(m=!0),v=!0,n.history.forward()},go:_=>{f=!0,n.history.go(_)},createHref:_=>d(_),flush:R,destroy:()=>{n.history.pushState=r,n.history.replaceState=s,n.removeEventListener(xe,b,{capture:!0}),n.removeEventListener(Pe,L)},onBlocked:()=>{u&&a!==u&&(a=u)},getBlockers:l,setBlockers:i,notifyOnIndexChange:!1});return n.addEventListener(xe,b,{capture:!0}),n.addEventListener(Pe,L),n.history.pushState=function(..._){const M=r.apply(n.history,_);return E._ignoreSubscribers||C("PUSH"),M},n.history.replaceState=function(..._){const M=s.apply(n.history,_);return E._ignoreSubscribers||C("REPLACE"),M},E}function Po(t={initialEntries:["/"]}){const o=t.initialEntries;let e=t.initialIndex?Math.min(Math.max(t.initialIndex,0),o.length-1):o.length-1;const n=o.map((s,c)=>ee(c,void 0));return qe({getLocation:()=>Rt(o[e],n[e]),getLength:()=>o.length,pushState:(s,c)=>{e<o.length-1&&(o.splice(e+1),n.splice(e+1)),n.push(c),o.push(s),e=Math.max(o.length-1,0)},replaceState:(s,c)=>{n[e]=c,o[e]=s},back:()=>{e=Math.max(e-1,0)},forward:()=>{e=Math.min(e+1,o.length-1)},go:s=>{e=Math.min(Math.max(e+s,0),o.length-1)},createHref:s=>s})}function Rt(t,o){const e=t.indexOf("#"),n=t.indexOf("?"),r=ae();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:o||{[q]:0,key:r,__TSR_key:r}}}function ae(){return(Math.random()+1).toString(36).substring(7)}function oe(t){return t[t.length-1]}function xo(t){return typeof t=="function"}function Q(t,o){return xo(t)?t(o):t}function A(t,o){if(t===o)return t;const e=o,n=be(t)&&be(e);if(n||we(t)&&we(e)){const r=n?t:Object.keys(t).concat(Object.getOwnPropertySymbols(t)),s=r.length,c=n?e:Object.keys(e).concat(Object.getOwnPropertySymbols(e)),l=c.length,i=n?[]:{};let d=0;for(let h=0;h<l;h++){const a=n?h:c[h];(!n&&r.includes(a)||n)&&t[a]===void 0&&e[a]===void 0?(i[a]=void 0,d++):(i[a]=A(t[a],e[a]),i[a]===t[a]&&t[a]!==void 0&&d++)}return s===l&&d===s?t:i}return e}function we(t){return ne(t)&&Object.getOwnPropertyNames(t).length===Object.keys(t).length}function ne(t){if(!Le(t))return!1;const o=t.constructor;if(typeof o>"u")return!0;const e=o.prototype;return!(!Le(e)||!e.hasOwnProperty("isPrototypeOf"))}function Le(t){return Object.prototype.toString.call(t)==="[object Object]"}function be(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Ce(t,o){let e=Object.keys(t);return o&&(e=e.filter(n=>t[n]!==void 0)),e}function at(t,o,e){if(t===o)return!0;if(typeof t!=typeof o)return!1;if(ne(t)&&ne(o)){const n=(e==null?void 0:e.ignoreUndefined)??!0,r=Ce(t,n),s=Ce(o,n);return!(e!=null&&e.partial)&&r.length!==s.length?!1:s.every(c=>at(t[c],o[c],e))}return Array.isArray(t)&&Array.isArray(o)?t.length!==o.length?!1:!t.some((n,r)=>!at(n,o[r],e)):!1}function ct(t){let o,e;const n=new Promise((r,s)=>{o=r,e=s});return n.status="pending",n.resolve=r=>{n.status="resolved",n.value=r,o(r),t==null||t(r)},n.reject=r=>{n.status="rejected",e(r)},n}function J(t){return!!(t&&typeof t=="object"&&typeof t.then=="function")}const U=0,et=1,ot=2,lt=3;function z(t){return ce(t.filter(o=>o!==void 0).join("/"))}function ce(t){return t.replace(/\/{2,}/g,"/")}function le(t){return t==="/"?t:t.replace(/^\/{1,}/,"")}function ut(t){return t==="/"?t:t.replace(/\/{1,}$/,"")}function zt(t){return ut(le(t))}function kt(t,o){return t!=null&&t.endsWith("/")&&t!=="/"&&t!==`${o}/`?t.slice(0,-1):t}function wo(t,o,e){return kt(t,e)===kt(o,e)}function Lo(t){const{type:o,value:e}=t;if(o===U)return e;const{prefixSegment:n,suffixSegment:r}=t;if(o===et){const s=e.substring(1);if(n&&r)return`${n}{$${s}}${r}`;if(n)return`${n}{$${s}}`;if(r)return`{$${s}}${r}`}if(o===lt){const s=e.substring(1);return n&&r?`${n}{-$${s}}${r}`:n?`${n}{-$${s}}`:r?`{-$${s}}${r}`:`{-$${s}}`}if(o===ot){if(n&&r)return`${n}{$}${r}`;if(n)return`${n}{$}`;if(r)return`{$}${r}`}return e}function bo({basepath:t,base:o,to:e,trailingSlash:n="never",caseSensitive:r,parseCache:s}){var c;o=Ot(t,o,r),e=Ot(t,e,r);let l=dt(o,s).slice();const i=dt(e,s);l.length>1&&((c=oe(l))==null?void 0:c.value)==="/"&&l.pop();for(let a=0,u=i.length;a<u;a++){const f=i[a],p=f.value;p==="/"?a?a===u-1&&l.push(f):l=[f]:p===".."?l.pop():p==="."||l.push(f)}l.length>1&&(oe(l).value==="/"?n==="never"&&l.pop():n==="always"&&l.push({type:U,value:"/"}));const d=l.map(Lo);return z([t,...d])}const dt=(t,o)=>{if(!t)return[];const e=o==null?void 0:o.get(t);if(e)return e;const n=ko(t);return o==null||o.set(t,n),n},Co=/^\$.{1,}$/,Mo=/^(.*?)\{(\$[a-zA-Z_$][a-zA-Z0-9_$]*)\}(.*)$/,Eo=/^(.*?)\{-(\$[a-zA-Z_$][a-zA-Z0-9_$]*)\}(.*)$/,Io=/^\$$/,To=/^(.*?)\{\$\}(.*)$/;function ko(t){t=ce(t);const o=[];if(t.slice(0,1)==="/"&&(t=t.substring(1),o.push({type:U,value:"/"})),!t)return o;
1const e=t.split("/").filter(Boolean);return o.push(...e.map(n=>{const r=n.match(To);if(r){const l=r[1],i=r[2];return{type:ot,value:"$",prefixSegment:l||void 0,suffixSegment:i||void 0}}const s=n.match(Eo);if(s){const l=s[1],i=s[2],d=s[3];return{type:lt,value:i,prefixSegment:l||void 0,suffixSegment:d||void 0}}const c=n.match(Mo);if(c){const l=c[1],i=c[2],d=c[3];return{type:et,value:""+i,prefixSegment:l||void 0,suffixSegment:d||void 0}}if(Co.test(n)){const l=n.substring(1);return{type:et,value:"$"+l,prefixSegment:void 0,suffixSegment:void 0}}return Io.test(n)?{type:ot,value:"$",prefixSegment:void 0,suffixSegment:void 0}:{type:U,value:n.includes("%25")?n.split("%25").map(l=>decodeURI(l)).join("%25"):decodeURI(n)}})),t.slice(-1)==="/"&&(t=t.substring(1),o.push({type:U,value:"/"})),o}function bt({path:t,params:o,leaveWildcards:e,leaveParams:n,decodeCharMap:r,parseCache:s}){const c=dt(t,s);function l(a){const u=o[a],f=typeof u=="string";return a==="*"||a==="_splat"?f?encodeURI(u):u:f?Oo(u,r):u}let i=!1;const d={},h=z(c.map(a=>{if(a.type===U)return a.value;if(a.type===ot){d._splat=o._splat;const u=a.prefixSegment||"",f=a.suffixSegment||"";if(!("_splat"in o))return i=!0,e?`${u}${a.value}${f}`:u||f?`${u}${f}`:void 0;const p=l("_splat");return e?`${u}${a.value}${p??""}${f}`:`${u}${p}${f}`}if(a.type===et){const u=a.value.substring(1);!i&&!(u in o)&&(i=!0),d[u]=o[u];const f=a.prefixSegment||"",p=a.suffixSegment||"";if(n){const m=l(a.value);return`${f}${a.value}${m??""}${p}`}return`${f}${l(u)??"undefined"}${p}`}if(a.type===lt){const u=a.value.substring(1),f=a.prefixSegment||"",p=a.suffixSegment||"";if(!(u in o)||o[u]==null)return e?`${f}${u}${p}`:f||p?`${f}${p}`:void 0;if(d[u]=o[u],n){const m=l(a.value);return`${f}${a.value}${m??""}${p}`}return e?`${f}${u}${l(u)??""}${p}`:`${f}${l(u)??""}${p}`}return a.value}));return{usedParams:d,interpolatedPath:h,isMissingParams:i}}function Oo(t,o){let e=encodeURIComponent(t);if(o)for(const[n,r]of o)e=e.replaceAll(n,r);return e}function re(t,o,e,n){const r=Fo(t,o,e,n);if(!(e.to&&!r))return r??{}}function Ot(t,o,e=!1){const n=e?t:t.toLowerCase(),r=e?o:o.toLowerCase();switch(!0){case n==="/":return o;case r===n:return"";case o.length<t.length:return o;case r[n.length]!=="/":return o;case r.startsWith(n):return o.slice(t.length);default:return o}}function Fo(t,o,{to:e,fuzzy:n,caseSensitive:r},s){if(t!=="/"&&!o.startsWith(t))return;o=Ot(t,o,r),e=Ot(t,`${e??"$"}`,r);const c=dt(o.startsWith("/")?o:`/${o}`,s),l=dt(e.startsWith("/")?e:`/${e}`,s),i={};return $o(c,l,i,n,r)?i:void 0}function $o(t,o,e,n,r){var s,c,l;let i=0,d=0;for(;i<t.length||d<o.length;){const h=t[i],a=o[d];if(a){if(a.type===ot){const u=t.slice(i);let f;if(a.prefixSegment||a.suffixSegment){if(!h)return!1;const p=a.prefixSegment||"",m=a.suffixSegment||"",v=h.value;if("prefixSegment"in a&&!v.startsWith(p)||"suffixSegment"in a&&!((s=t[t.length-1])!=null&&s.value.endsWith(m)))return!1;let g=decodeURI(z(u.map(w=>w.value)));p&&g.startsWith(p)&&(g=g.slice(p.length)),m&&g.endsWith(m)&&(g=g.slice(0,g.length-m.length)),f=g}else f=decodeURI(z(u.map(p=>p.value)));return e["*"]=f,e._splat=f,!0}if(a.type===U){if(a.value==="/"&&!(h!=null&&h.value)){d++;continue}if(h){if(r){if(a.value!==h.value)return!1}else if(a.value.toLowerCase()!==h.value.toLowerCase())return!1;i++,d++;continue}else return!1}if(a.type===et){if(!h||h.value==="/")return!1;let u="",f=!1;if(a.prefixSegment||a.suffixSegment){const p=a.prefixSegment||"",m=a.suffixSegment||"",v=h.value;if(p&&!v.startsWith(p)||m&&!v.endsWith(m))return!1;let g=v;p&&g.startsWith(p)&&(g=g.slice(p.length)),m&&g.endsWith(m)&&(g=g.slice(0,g.length-m.length)),u=decodeURIComponent(g),f=!0}else u=decodeURIComponent(h.value),f=!0;f&&(e[a.value.substring(1)]=u,i++),d++;continue}if(a.type===lt){if(!h){d++;continue}if(h.value==="/"){d++;continue}let u="",f=!1;if(a.prefixSegment||a.suffixSegment){const p=a.prefixSegment||"",m=a.suffixSegment||"",v=h.value;if((!p||v.startsWith(p))&&(!m||v.endsWith(m))){let g=v;p&&g.startsWith(p)&&(g=g.slice(p.length)),m&&g.endsWith(m)&&(g=g.slice(0,g.length-m.length)),u=decodeURIComponent(g),f=!0}}else{let p=!0;for(let m=d+1;m<o.length;m++){const v=o[m];if((v==null?void 0:v.type)===U&&v.value===h.value){p=!1;break}if((v==null?void 0:v.type)===et||(v==null?void 0:v.type)===ot){t.length<o.length&&(p=!1);break}}p&&(u=decodeURIComponent(h.value),f=!0)}f&&(e[a.value.substring(1)]=u,i++),d++;continue}}if(i<t.length&&d>=o.length)return e["**"]=z(t.slice(i).map(u=>u.value)),!!n&&((c=o[o.length-1])==null?void 0:c.value)!=="/";if(d<o.length&&i>=t.length){for(let u=d;u<o.length;u++)if(((l=o[u])==null?void 0:l.type)!==lt)return!1;break}break}return!0}function sr(t={}){if(t.isNotFound=!0,t.throw)throw t;return t}function W(t){return!!(t!=null&&t.isNotFound)}function Ao(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const Ft="tsr-scroll-restoration-v1_3",Bo=(t,o)=>{let e;return(...n)=>{e||(e=setTimeout(()=>{t(...n),e=null},o))}};function Do(){const t=Ao();if(!t)return;const o=t.getItem(Ft);let e=o?JSON.parse(o):{};return{state:e,set:n=>(e=Q(n,e)||e,t.setItem(Ft,JSON.stringify(e)))}}const Kt=Do(),se=t=>t.state.__TSR_key||t.href;function jo(t){const o=[];let e;for(;e=t.parentNode;)o.push(`${t.tagName}:nth-child(${Array.prototype.indexOf.call(e.children,t)+1})`),t=e;return`${o.reverse().join(" > ")}`.toLowerCase()}let $t=!1;function Je({storageKey:t,key:o,behavior:e,shouldScrollRestoration:n,scrollToTopSelectors:r,location:s}){var c,l;let i;try{i=JSON.parse(sessionStorage.getItem(t)||"{}")}catch(a){console.error(a);return}const d=o||((c=window.history.state)==null?void 0:c.key),h=i[d];$t=!0;t:{if(n&&h&&Object.keys(h).length>0){for(const f in h){const p=h[f];if(f==="window")window.scrollTo({top:p.scrollY,left:p.scrollX,behavior:e});
1else if(f){const m=document.querySelector(f);m&&(m.scrollLeft=p.scrollX,m.scrollTop=p.scrollY)}}break t}const a=(s??window.location).hash.split("#",2)[1];if(a){const f=((l=window.history.state)==null?void 0:l.__hashScrollIntoViewOptions)??!0;if(f){const p=document.getElementById(a);p&&p.scrollIntoView(f)}break t}const u={top:0,left:0,behavior:e};if(window.scrollTo(u),r)for(const f of r){if(f==="window")continue;const p=typeof f=="function"?f():document.querySelector(f);p&&p.scrollTo(u)}}$t=!1}function No(t,o){if(Kt===void 0||((t.options.scrollRestoration??!1)&&(t.isScrollRestoring=!0),typeof document>"u"||t.isScrollRestorationSetup))return;t.isScrollRestorationSetup=!0,$t=!1;const n=t.options.getScrollRestorationKey||se;window.history.scrollRestoration="manual";const r=s=>{if($t||!t.isScrollRestoring)return;let c="";if(s.target===document||s.target===window)c="window";else{const i=s.target.getAttribute("data-scroll-restoration-id");i?c=`[data-scroll-restoration-id="${i}"]`:c=jo(s.target)}const l=n(t.state.location);Kt.set(i=>{const d=i[l]||(i[l]={}),h=d[c]||(d[c]={});if(c==="window")h.scrollX=window.scrollX||0,h.scrollY=window.scrollY||0;else if(c){const a=document.querySelector(c);a&&(h.scrollX=a.scrollLeft||0,h.scrollY=a.scrollTop||0)}return i})};typeof document<"u"&&document.addEventListener("scroll",Bo(r,100),!0),t.subscribe("onRendered",s=>{const c=n(s.toLocation);if(!t.resetNextScroll){t.resetNextScroll=!0;return}Je({storageKey:Ft,key:c,behavior:t.options.scrollRestorationBehavior,shouldScrollRestoration:t.isScrollRestoring,scrollToTopSelectors:t.options.scrollToTopSelectors,location:t.history.location}),t.isScrollRestoring&&Kt.set(l=>(l[c]||(l[c]={}),l))})}function Vo(t){if(typeof document<"u"&&document.querySelector){const o=t.state.location.state.__hashScrollIntoViewOptions??!0;if(o&&t.state.location.hash!==""){const e=document.getElementById(t.state.location.hash);e&&e.scrollIntoView(o)}}}function Wo(t,o=String){const e=new URLSearchParams;for(const n in t){const r=t[n];r!==void 0&&e.set(n,o(r))}return e.toString()}function Ht(t){return t?t==="false"?!1:t==="true"?!0:+t*0===0&&+t+""===t?+t:t:""}function Uo(t){const o=new URLSearchParams(t),e={};for(const[n,r]of o.entries()){const s=e[n];s==null?e[n]=Ht(r):Array.isArray(s)?s.push(Ht(r)):e[n]=[s,Ht(r)]}return e}const zo=Ho(JSON.parse),Ko=Go(JSON.stringify,JSON.parse);function Ho(t){return o=>{o[0]==="?"&&(o=o.substring(1));const e=Uo(o);for(const n in e){const r=e[n];if(typeof r=="string")try{e[n]=t(r)}catch{}}return e}}function Go(t,o){const e=typeof o=="function";function n(r){if(typeof r=="object"&&r!==null)try{return t(r)}catch{}else if(e&&typeof r=="string")try{return o(r),t(r)}catch{}return r}return r=>{const s=Wo(r,n);return s?`?${s}`:""}}const B="__root__";function qo(t){if(t.statusCode=t.statusCode||t.code||307,!t.reloadDocument&&typeof t.href=="string")try{new URL(t.href),t.reloadDocument=!0}catch{}const o=new Headers(t.headers||{});t.href&&o.get("Location")===null&&o.set("Location",t.href);const e=new Response(null,{status:t.statusCode,headers:o});if(e.options=t,t.throw)throw e;return e}function V(t){return t instanceof Response&&!!t.options}function Jo(t){const o=new Map;let e,n;const r=s=>{s.next&&(s.prev?(s.prev.next=s.next,s.next.prev=s.prev,s.next=void 0,n&&(n.next=s,s.prev=n)):(s.next.prev=void 0,e=s.next,s.next=void 0,n&&(s.prev=n,n.next=s)),n=s)};return{get(s){const c=o.get(s);if(c)return r(c),c.value},set(s,c){if(o.size>=t&&e){const i=e;o.delete(i.key),i.next&&(e=i.next,i.next.prev=void 0),i===n&&(n=void 0)}const l=o.get(s);if(l)l.value=c,r(l);else{const i={key:s,value:c,prev:n};n&&(n.next=i),n=i,e||(e=i),o.set(s,i)}}}}const It=t=>{var o;if(!t.rendered)return t.rendered=!0,(o=t.onReady)==null?void 0:o.call(t)},Bt=(t,o)=>!!(t.preload&&!t.router.state.matches.some(e=>e.id===o)),Ye=(t,o)=>{var e;const n=t.router.routesById[o.routeId??""]??t.router.routeTree;!n.options.notFoundComponent&&((e=t.router.options)!=null&&e.defaultNotFoundComponent)&&(n.options.notFoundComponent=t.router.options.defaultNotFoundComponent),K(n.options.notFoundComponent);const r=t.matches.find(s=>s.routeId===n.id);
1K(r,"Could not find match for route: "+n.id),t.updateMatch(r.id,s=>({...s,status:"notFound",error:o,isFetching:!1})),o.routerCode==="BEFORE_LOAD"&&n.parentRoute&&(o.routeId=n.parentRoute.id,Ye(t,o))},G=(t,o,e)=>{var n,r,s;if(!(!V(e)&&!W(e))){if(V(e)&&e.redirectHandled&&!e.options.reloadDocument)throw e;if(o){(n=o._nonReactive.beforeLoadPromise)==null||n.resolve(),(r=o._nonReactive.loaderPromise)==null||r.resolve(),o._nonReactive.beforeLoadPromise=void 0,o._nonReactive.loaderPromise=void 0;const c=V(e)?"redirected":"notFound";t.updateMatch(o.id,l=>({...l,status:c,isFetching:!1,error:e})),W(e)&&!e.routeId&&(e.routeId=o.routeId),(s=o._nonReactive.loadPromise)==null||s.resolve()}throw V(e)?(t.rendered=!0,e.options._fromLocation=t.location,e.redirectHandled=!0,e=t.router.resolveRedirect(e),e):(Ye(t,e),e)}},Xe=(t,o)=>{const e=t.router.getMatch(o);return!!(!t.router.isServer&&e._nonReactive.dehydrated||t.router.isServer&&e.ssr===!1)},ft=(t,o,e,n)=>{var r,s;const{id:c,routeId:l}=t.matches[o],i=t.router.looseRoutesById[l];if(e instanceof Promise)throw e;e.routerCode=n,t.firstBadMatchIndex??(t.firstBadMatchIndex=o),G(t,t.router.getMatch(c),e);try{(s=(r=i.options).onError)==null||s.call(r,e)}catch(d){e=d,G(t,t.router.getMatch(c),e)}t.updateMatch(c,d=>{var h,a;return(h=d._nonReactive.beforeLoadPromise)==null||h.resolve(),d._nonReactive.beforeLoadPromise=void 0,(a=d._nonReactive.loadPromise)==null||a.resolve(),{...d,error:e,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}})},Yo=(t,o,e,n)=>{var r;const s=t.router.getMatch(o),c=(r=t.matches[e-1])==null?void 0:r.id,l=c?t.router.getMatch(c):void 0;if(t.router.isShell()){s.ssr=o===B;return}if((l==null?void 0:l.ssr)===!1){s.ssr=!1;return}const i=p=>p===!0&&(l==null?void 0:l.ssr)==="data-only"?"data-only":p,d=t.router.options.defaultSsr??!0;if(n.options.ssr===void 0){s.ssr=i(d);return}if(typeof n.options.ssr!="function"){s.ssr=i(n.options.ssr);return}const{search:h,params:a}=s,u={search:Ct(h,s.searchError),params:Ct(a,s.paramsError),location:t.location,matches:t.matches.map(p=>({index:p.index,pathname:p.pathname,fullPath:p.fullPath,staticData:p.staticData,id:p.id,routeId:p.routeId,search:Ct(p.search,p.searchError),params:Ct(p.params,p.paramsError),ssr:p.ssr}))},f=n.options.ssr(u);if(J(f))return f.then(p=>{s.ssr=i(p??d)});s.ssr=i(f??d)},Ze=(t,o,e,n)=>{var r;if(n._nonReactive.pendingTimeout!==void 0)return;const s=e.options.pendingMs??t.router.options.defaultPendingMs;if(!!(t.onReady&&!t.router.isServer&&!Bt(t,o)&&(e.options.loader||e.options.beforeLoad||eo(e))&&typeof s=="number"&&s!==1/0&&(e.options.pendingComponent??((r=t.router.options)==null?void 0:r.defaultPendingComponent)))){const l=setTimeout(()=>{It(t)},s);n._nonReactive.pendingTimeout=l}},Xo=(t,o,e)=>{const n=t.router.getMatch(o);if(!n._nonReactive.beforeLoadPromise&&!n._nonReactive.loaderPromise)return;Ze(t,o,e,n);const r=()=>{const s=t.router.getMatch(o);s.preload&&(s.status==="redirected"||s.status==="notFound")&&G(t,s,s.error)};return n._nonReactive.beforeLoadPromise?n._nonReactive.beforeLoadPromise.then(r):r()},Zo=(t,o,e,n)=>{var r;const s=t.router.getMatch(o),c=s._nonReactive.loadPromise;s._nonReactive.loadPromise=ct(()=>{c==null||c.resolve()});const{paramsError:l,searchError:i}=s;l&&ft(t,e,l,"PARSE_PARAMS"),i&&ft(t,e,i,"VALIDATE_SEARCH"),Ze(t,o,n,s);const d=new AbortController,h=(r=t.matches[e-1])==null?void 0:r.id,a=h?t.router.getMatch(h):void 0,f={...(a==null?void 0:a.context)??t.router.options.context??void 0,...s.__routeContext};let p=!1;const m=()=>{p||(p=!0,t.updateMatch(o,b=>({...b,isFetching:"beforeLoad",fetchCount:b.fetchCount+1,abortController:d,context:f})))},v=()=>{var b;(b=s._nonReactive.beforeLoadPromise)==null||b.resolve(),s._nonReactive.beforeLoadPromise=void 0,t.updateMatch(o,E=>({...E,isFetching:!1}))};if(!n.options.beforeLoad){yt(()=>{m(),v()});return}s._nonReactive.beforeLoadPromise=ct();const{search:g,params:w,cause:S}=s,R=Bt(t,o),x={search:g,abortController:d,params:w,preload:R,context:f,location:t.location,navigate:b=>t.router.navigate({...b,_fromLocation:t.location}),buildLocation:t.router.buildLocation,cause:R?"preload":S,matches:t.matches},C=b=>{if(b===void 0){yt(()=>{m(),v()});return}(V(b)||W(b))&&(m(),ft(t,e,b,"BEFORE_LOAD")),yt(()=>{m(),t.updateMatch(o,E=>({...E,__beforeLoadContext:b,context:{...E.context,...b}})),v()})};let L;try{if(L=n.options.beforeLoad(x),J(L))return m(),L.catch(b=>{ft(t,e,b,"BEFORE_LOAD")}).then(C)}catch(b){m(),ft(t,e,b,"BEFORE_LOAD")}C(L)},Qo=(t,o)=>{const{id:e,routeId:n}
1=t.matches[o],r=t.router.looseRoutesById[n],s=()=>{if(t.router.isServer){const i=Yo(t,e,o,r);if(J(i))return i.then(c)}return c()},c=()=>{if(Xe(t,e))return;const i=Xo(t,e,r);return J(i)?i.then(l):l()},l=()=>Zo(t,e,o,r);return s()},_t=(t,o,e)=>{var n,r,s,c,l,i;const d=t.router.getMatch(o);if(!d||!e.options.head&&!e.options.scripts&&!e.options.headers)return;const h={matches:t.matches,match:d,params:d.params,loaderData:d.loaderData};return Promise.all([(r=(n=e.options).head)==null?void 0:r.call(n,h),(c=(s=e.options).scripts)==null?void 0:c.call(s,h),(i=(l=e.options).headers)==null?void 0:i.call(l,h)]).then(([a,u,f])=>{const p=a==null?void 0:a.meta,m=a==null?void 0:a.links,v=a==null?void 0:a.scripts,g=a==null?void 0:a.styles;return{meta:p,links:m,headScripts:v,headers:f,scripts:u,styles:g}})},Qe=(t,o,e,n)=>{const r=t.matchPromises[e-1],{params:s,loaderDeps:c,abortController:l,context:i,cause:d}=t.router.getMatch(o),h=Bt(t,o);return{params:s,deps:c,preload:!!h,parentMatchPromise:r,abortController:l,context:i,location:t.location,navigate:a=>t.router.navigate({...a,_fromLocation:t.location}),cause:h?"preload":d,route:n}},Me=async(t,o,e,n)=>{var r,s,c,l;try{const i=t.router.getMatch(o);try{(!t.router.isServer||i.ssr===!0)&&to(n);const d=(s=(r=n.options).loader)==null?void 0:s.call(r,Qe(t,o,e,n)),h=n.options.loader&&J(d);if(!!(h||n._lazyPromise||n._componentsPromise||n.options.head||n.options.scripts||n.options.headers||i._nonReactive.minPendingPromise)&&t.updateMatch(o,m=>({...m,isFetching:"loader"})),n.options.loader){const m=h?await d:d;G(t,t.router.getMatch(o),m),m!==void 0&&t.updateMatch(o,v=>({...v,loaderData:m}))}n._lazyPromise&&await n._lazyPromise;const u=_t(t,o,n),f=u?await u:void 0,p=i._nonReactive.minPendingPromise;p&&await p,n._componentsPromise&&await n._componentsPromise,t.updateMatch(o,m=>({...m,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),...f}))}catch(d){let h=d;const a=i._nonReactive.minPendingPromise;a&&await a,G(t,t.router.getMatch(o),d);try{(l=(c=n.options).onError)==null||l.call(c,d)}catch(p){h=p,G(t,t.router.getMatch(o),p)}const u=_t(t,o,n),f=u?await u:void 0;t.updateMatch(o,p=>({...p,error:h,status:"error",isFetching:!1,...f}))}}catch(i){const d=t.router.getMatch(o);if(d){const h=_t(t,o,n);if(h){const a=await h;t.updateMatch(o,u=>({...u,...a}))}d._nonReactive.loaderPromise=void 0}G(t,d,i)}},tn=async(t,o)=>{var e,n;const{id:r,routeId:s}=t.matches[o];let c=!1,l=!1;const i=t.router.looseRoutesById[s];if(Xe(t,r)){if(t.router.isServer){const a=_t(t,r,i);if(a){const u=await a;t.updateMatch(r,f=>({...f,...u}))}return t.router.getMatch(r)}}else{const a=t.router.getMatch(r);if(a._nonReactive.loaderPromise){if(a.status==="success"&&!t.sync&&!a.preload)return a;await a._nonReactive.loaderPromise;const u=t.router.getMatch(r);u.error&&G(t,u,u.error)}else{const u=Date.now()-a.updatedAt,f=Bt(t,r),p=f?i.options.preloadStaleTime??t.router.options.defaultPreloadStaleTime??3e4:i.options.staleTime??t.router.options.defaultStaleTime??0,m=i.options.shouldReload,v=typeof m=="function"?m(Qe(t,r,o,i)):m,g=!!f&&!t.router.state.matches.some(x=>x.id===r),w=t.router.getMatch(r);w._nonReactive.loaderPromise=ct(),g!==w.preload&&t.updateMatch(r,x=>({...x,preload:g}));const{status:S,invalid:R}=w;if(c=S==="success"&&(R||(v??u>p)),!(f&&i.options.preload===!1))if(c&&!t.sync)l=!0,(async()=>{var x,C;try{await Me(t,r,o,i);const L=t.router.getMatch(r);(x=L._nonReactive.loaderPromise)==null||x.resolve(),(C=L._nonReactive.loadPromise)==null||C.resolve(),L._nonReactive.loaderPromise=void 0}catch(L){V(L)&&await t.router.navigate(L.options)}})();else if(S!=="success"||c&&t.sync)await Me(t,r,o,i);else{const x=_t(t,r,i);if(x){const C=await x;t.updateMatch(r,L=>({...L,...C}))}}}}const d=t.router.getMatch(r);l||((e=d._nonReactive.loaderPromise)==null||e.resolve(),(n=d._nonReactive.loadPromise)==null||n.resolve()),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,l||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;const h=l?d.isFetching:!1;return h!==d.isFetching||d.invalid!==!1?(t.updateMatch(r,a=>({...a,isFetching:h,invalid:!1})),t.router.getMatch(r)):d};async function Ee(t){const o=Object.assign(t,{matchPromises:[]});!o.router.isServer&&o.router.state.matches.some(e=>e._forcePending)&&It(o);try{for(let r=0;r<o.matches.length;r++){const s=Qo(o,r);J(s)&&await s}const e=o.firstBadMatchIndex??o.matches.length;for(let r=0;r<e;r++)o.matchPromises.push(tn(o,r));await Promise.all(o.matchPromises);
1const n=It(o);J(n)&&await n}catch(e){if(W(e)&&!o.preload){const n=It(o);throw J(n)&&await n,e}if(V(e))throw e}return o.matches}async function to(t){if(!t._lazyLoaded&&t._lazyPromise===void 0&&(t.lazyFn?t._lazyPromise=t.lazyFn().then(o=>{const{id:e,...n}=o.options;Object.assign(t.options,n),t._lazyLoaded=!0,t._lazyPromise=void 0}):t._lazyLoaded=!0),!t._componentsLoaded&&t._componentsPromise===void 0){const o=()=>{var e;const n=[];for(const r of oo){const s=(e=t.options[r])==null?void 0:e.preload;s&&n.push(s())}if(n.length)return Promise.all(n).then(()=>{t._componentsLoaded=!0,t._componentsPromise=void 0});t._componentsLoaded=!0,t._componentsPromise=void 0};t._componentsPromise=t._lazyPromise?t._lazyPromise.then(o):o()}return t._componentsPromise}function Ct(t,o){return o?{status:"error",error:o}:{status:"success",value:t}}function eo(t){var o;for(const e of oo)if((o=t.options[e])!=null&&o.preload)return!0;return!1}const oo=["component","errorComponent","pendingComponent","notFoundComponent"];function tt(t){const o=t.resolvedLocation,e=t.location,n=(o==null?void 0:o.pathname)!==e.pathname,r=(o==null?void 0:o.href)!==e.href,s=(o==null?void 0:o.hash)!==e.hash;return{fromLocation:o,toLocation:e,pathChanged:n,hrefChanged:r,hashChanged:s}}class en{constructor(o){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&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const r=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(s=>[encodeURIComponent(s),s])):void 0,(!this.basepath||e.basepath&&e.basepath!==r.basepath)&&(e.basepath===void 0||e.basepath===""||e.basepath==="/"?this.basepath="/":this.basepath=`/${zt(e.basepath)}`),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history??(this.isServer?Po({initialEntries:[this.basepath||"/"]}):Ro()),this.updateLatestLocation()),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),this.__store||(this.__store=new te(nn(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(s=>!["redirected"].includes(s.status))}}}),No(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.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const{routesById:e,routesByPath:n,flatRoutes:r}=dn({routeTree:this.routeTree,initRoute:(c,l)=>{c.init({originalIndex:l})}});this.routesById=e,this.routesByPath=n,this.flatRoutes=r;const s=this.options.notFoundRoute;s&&(s.init({originalIndex:99999999999}),this.routesById[s.id]=s)},this.subscribe=(e,n)=>{const r={eventType:e,fn:n};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=e=>{this.subscribers.forEach(n=>{n.eventType===e.type&&n.fn(e)})},this.parseLocation=(e,n)=>{const r=({pathname:i,search:d,hash:h,state:a})=>{const u=this.options.parseSearch(d),f=this.options.stringifySearch(u);return{pathname:i,searchStr:f,search:A(n==null?void 0:n.search,u),hash:h.split("#").reverse()[0]??"",href:`${i}${f}${h}`,state:A(n==null?void 0:n.state,a)}},s=r(e),{__tempLocation:c,__tempKey:l}=s.state;if(c&&(!l||l===this.tempLocationKey)){const i=r(c);return i.state.key=s.state.key,i.state.__TSR_key=s.state.__TSR_key,delete i.state.__tempLocation,{...i,maskedLocation:s}}return s},this.resolvePathWithBase=(e,n)=>bo({basepath:this.basepath,base:e,to:ce(n),trailingSlash:this.options.trailingSlash,caseSensitive:this.options.caseSensitive,parseCache:this.parsePathnameCache}),this.matchRoutes=(e,n,r)=>typeof e=="string"?this.matchRoutesInternal({pathname:e,search:n},r):this.matchRoutesInternal(e,n),this.parsePathnameCache=Jo(1e3),this.getMatchedRoutes=(e,n)=>hn({pathname:e,routePathname:n,basepath:this.basepath,caseSensitive:this.options.caseSensitive,routesByPath:this.routesByPath,routesById:this.routesById,flatRoutes:this.flatRoutes,parseCache:this.parsePathnameCache}),this.cancelMatch=e=>{const n=this.getMatch(e);
1n&&(n.abortController.abort(),clearTimeout(n._nonReactive.pendingTimeout),n._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{var e;(e=this.state.pendingMatches)==null||e.forEach(n=>{this.cancelMatch(n.id)})},this.buildLocation=e=>{const n=(s={})=>{var c,l;const i=s._fromLocation||this.latestLocation,d=this.matchRoutes(i,{_buildLocation:!0}),h=oe(d);let a=this.resolvePathWithBase(h.fullPath,".");const u=s.to?this.resolvePathWithBase(a,`${s.to}`):this.resolvePathWithBase(a,"."),f=!!s.to&&!Te(s.to.toString(),a)&&!Te(u,a);s.unsafeRelative==="path"?a=i.pathname:f&&s.from&&(a=s.from),a=this.resolvePathWithBase(a,".");const p=h.search,m={...h.params},v=s.to?this.resolvePathWithBase(a,`${s.to}`):this.resolvePathWithBase(a,"."),g=s.params===!1||s.params===null?{}:(s.params??!0)===!0?m:Object.assign(m,Q(s.params,m)),w=bt({path:v,params:g,parseCache:this.parsePathnameCache}).interpolatedPath,S=this.matchRoutes(w,void 0,{_buildLocation:!0}).map(_=>this.looseRoutesById[_.routeId]);if(Object.keys(g).length>0)for(const _ of S){const M=((c=_.options.params)==null?void 0:c.stringify)??_.options.stringifyParams;M&&Object.assign(g,M(g))}const R=bt({path:v,params:g,leaveWildcards:!1,leaveParams:e.leaveParams,decodeCharMap:this.pathParamsDecodeCharMap,parseCache:this.parsePathnameCache}).interpolatedPath;let x=p;if(e._includeValidateSearch&&((l=this.options.search)!=null&&l.strict)){const _={};S.forEach(M=>{if(M.options.validateSearch)try{Object.assign(_,ie(M.options.validateSearch,{..._,...x}))}catch{}}),x=_}x=fn({search:x,dest:s,destRoutes:S,_includeValidateSearch:e._includeValidateSearch}),x=A(p,x);const C=this.options.stringifySearch(x),L=s.hash===!0?i.hash:s.hash?Q(s.hash,i.hash):void 0,b=L?`#${L}`:"";let E=s.state===!0?i.state:s.state?Q(s.state,i.state):{};return E=A(i.state,E),{pathname:R,search:x,searchStr:C,state:E,hash:L??"",href:`${R}${C}${b}`,unmaskOnReload:s.unmaskOnReload}},r=(s={},c)=>{var l;const i=n(s);let d=c?n(c):void 0;if(!d){let h={};const a=(l=this.options.routeMasks)==null?void 0:l.find(u=>{const f=re(this.basepath,i.pathname,{to:u.from,caseSensitive:!1,fuzzy:!1},this.parsePathnameCache);return f?(h=f,!0):!1});if(a){const{from:u,...f}=a;c={from:e.from,...f,params:h},d=n(c)}}if(d){const h=n(c);i.maskedLocation=h}return i};return e.mask?r(e,{from:e.from,...e.mask}):r(e)},this.commitLocation=({viewTransition:e,ignoreBlocker:n,...r})=>{const s=()=>{const i=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];i.forEach(h=>{r.state[h]=this.latestLocation.state[h]});const d=at(r.state,this.latestLocation.state);return i.forEach(h=>{delete r.state[h]}),d},c=this.latestLocation.href===r.href,l=this.commitLocationPromise;if(this.commitLocationPromise=ct(()=>{l==null||l.resolve()}),c&&s())this.load();else{let{maskedLocation:i,hashScrollIntoView:d,...h}=r;i&&(h={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...h,search:h.searchStr,state:{...h.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(h.unmaskOnReload??this.options.unmaskOnReload??!1)&&(h.state.__tempKey=this.tempLocationKey)),h.state.__hashScrollIntoViewOptions=d??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,this.history[r.replace?"replace":"push"](h.href,h.state,{ignoreBlocker:n})}return this.resetNextScroll=r.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:n,hashScrollIntoView:r,viewTransition:s,ignoreBlocker:c,href:l,...i}={})=>{if(l){const h=this.history.location.state.__TSR_index,a=Rt(l,{__TSR_index:e?h:h+1});i.to=a.pathname,i.search=this.options.parseSearch(a.search),i.hash=a.hash.slice(1)}const d=this.buildLocation({...i,_includeValidateSearch:!0});return this.commitLocation({...d,viewTransition:s,replace:e,resetScroll:n,hashScrollIntoView:r,ignoreBlocker:c})},this.navigate=({to:e,reloadDocument:n,href:r,...s})=>{if(!n&&r)try{new URL(`${r}`),n=!0}catch{}if(n){if(!r){const c=this.buildLocation({to:e,...s});r=this.history.createHref(c.href)}return s.replace?window.location.replace(r):window.location.href=r,Promise.resolve()}return this.buildAndCommitLocation({...s,href:r,to:e,_isNavigate:!0})},this.beforeLoad=()=>
1{if(this.cancelMatches(),this.updateLatestLocation(),this.isServer){const n=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0}),r=s=>{try{return encodeURI(decodeURI(s))}catch{return s}};if(zt(r(this.latestLocation.href))!==zt(r(n.href)))throw qo({href:n.href})}const e=this.matchRoutes(this.latestLocation);this.__store.setState(n=>({...n,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:e,cachedMatches:n.cachedMatches.filter(r=>!e.some(s=>s.id===r.id))}))},this.load=async e=>{let n,r,s;for(s=new Promise(c=>{this.startTransition(async()=>{var l;try{this.beforeLoad();const i=this.latestLocation,d=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...tt({resolvedLocation:d,location:i})}),this.emit({type:"onBeforeLoad",...tt({resolvedLocation:d,location:i})}),await Ee({router:this,sync:e==null?void 0:e.sync,matches:this.state.pendingMatches,location:i,updateMatch:this.updateMatch,onReady:async()=>{this.startViewTransition(async()=>{let h,a,u;yt(()=>{this.__store.setState(f=>{const p=f.matches,m=f.pendingMatches||f.matches;return h=p.filter(v=>!m.some(g=>g.id===v.id)),a=m.filter(v=>!p.some(g=>g.id===v.id)),u=p.filter(v=>m.some(g=>g.id===v.id)),{...f,isLoading:!1,loadedAt:Date.now(),matches:m,pendingMatches:void 0,cachedMatches:[...f.cachedMatches,...h.filter(v=>v.status!=="error")]}}),this.clearExpiredCache()}),[[h,"onLeave"],[a,"onEnter"],[u,"onStay"]].forEach(([f,p])=>{f.forEach(m=>{var v,g;(g=(v=this.looseRoutesById[m.routeId].options)[p])==null||g.call(v,m)})})})}})}catch(i){V(i)?(n=i,this.isServer||this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):W(i)&&(r=i),this.__store.setState(d=>({...d,statusCode:n?n.status:r?404:d.matches.some(h=>h.status==="error")?500:200,redirect:n}))}this.latestLoadPromise===s&&((l=this.commitLocationPromise)==null||l.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),c()})}),this.latestLoadPromise=s,await s;this.latestLoadPromise&&s!==this.latestLoadPromise;)await this.latestLoadPromise;this.hasNotFoundMatch()&&this.__store.setState(c=>({...c,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 r;if(typeof n=="object"&&this.isViewTransitionTypesSupported){const s=this.latestLocation,c=this.state.resolvedLocation,l=typeof n.types=="function"?n.types(tt({resolvedLocation:c,location:s})):n.types;r={update:e,types:l}}else r=e;document.startViewTransition(r)}else e()},this.updateMatch=(e,n)=>{var r;const s=(r=this.state.pendingMatches)!=null&&r.some(c=>c.id===e)?"pendingMatches":this.state.matches.some(c=>c.id===e)?"matches":this.state.cachedMatches.some(c=>c.id===e)?"cachedMatches":"";s&&this.__store.setState(c=>{var l;return{...c,[s]:(l=c[s])==null?void 0:l.map(i=>i.id===e?n(i):i)}})},this.getMatch=e=>{var n;const r=s=>s.id===e;return this.state.cachedMatches.find(r)??((n=this.state.pendingMatches)==null?void 0:n.find(r))??this.state.matches.find(r)},this.invalidate=e=>{const n=r=>{var s;return((s=e==null?void 0:e.filter)==null?void 0:s.call(e,r))??!0?{...r,invalid:!0,...e!=null&&e.forcePending||r.status==="error"?{status:"pending",error:void 0}:void 0}:r};return this.__store.setState(r=>{var s;return{...r,matches:r.matches.map(n),cachedMatches:r.cachedMatches.map(n),pendingMatches:(s=r.pendingMatches)==null?void 0:s.map(n)}}),this.shouldViewTransition=!1,this.load({sync:e==null?void 0:e.sync})},this.resolveRedirect=e=>(e.options.href||(e.options.href=this.buildLocation(e.options).href,e.headers.set("Location",e.options.href)),e.headers.get("Location")||e.headers.set("Location",e.options.href),e),this.clearCache=e=>{const n=e==null?void 0:e.filter;n!==void 0?this.__store.setState(r=>({...r,cachedMatches:r.cachedMatches.filter(s=>!n(s))})):this.__store.setState(r=>({...r,cachedMatches:[]}))},this.clearExpiredCache=()=>{const e=n=>{const r=this.looseRoutesById[n.routeId];if(!r.options.loader)return!0;const s=(n.preload?r.options.preloadGcTime??this.options.defaultPreloadGcTime:r.options.gcTime??this.options.defaultGcTime)??300*1e3;return n.status==="error"?!0:Date.now()-n.updatedAt>=s};this.clearCache({filter:e})},this.loadRouteChunk=to,this.preloadRoute=async e=>{const n=this.buildLocation(e);let r=this.matchRoutes(n,{throwOnError:!0,preload:!0,dest:e});const s=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(l=>l.id)),c=new Set([...s,...this.state.cachedMatches.map(l=>l.id)]);yt(()=>{r.forEach(l=>{c.has(l.id)||this.__store.setState(i=>({...i,cachedMatches:[...i.cachedMatches,l]}))})});try{return r=await Ee({router:this,matches:r,location:n,preload:!0,updateMatch:(l,i)=>{s.has(l)?r=r.map(d=>d.id===l?i(d):d):this.updateMatch(l,i)}}),r}catch(l){if(V(l))return l.options.reloadDocument?void 0:await this.preloadRoute({...l.options,_fromLocation:n});W(l)||console.error(l);return}},this.matchRoute=(e,n)=>{const r={...e,to:e.to?this.resolvePathWithBase(e.from||"",e.to):void 0,params:e.params||{}
1,leaveParams:!0},s=this.buildLocation(r);if(n!=null&&n.pending&&this.state.status!=="pending")return!1;const l=((n==null?void 0:n.pending)===void 0?!this.state.isLoading:n.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,i=re(this.basepath,l.pathname,{...n,to:s.pathname},this.parsePathnameCache);return!i||e.params&&!at(i,e.params,{partial:!0})?!1:i&&((n==null?void 0:n.includeSearch)??!0)?at(l.search,s.search,{partial:!0})?i:!1:i},this.hasNotFoundMatch=()=>this.__store.state.matches.some(e=>e.status==="notFound"||e.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...o,caseSensitive:o.caseSensitive??!1,notFoundMode:o.notFoundMode??"fuzzy",stringifySearch:o.stringifySearch??Ko,parseSearch:o.parseSearch??zo}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(o,e){var n;const{foundRoute:r,matchedRoutes:s,routeParams:c}=this.getMatchedRoutes(o.pathname,(n=e==null?void 0:e.dest)==null?void 0:n.to);let l=!1;(r?r.path!=="/"&&c["**"]:ut(o.pathname))&&(this.options.notFoundRoute?s.push(this.options.notFoundRoute):l=!0);const i=(()=>{if(l){if(this.options.notFoundMode!=="root")for(let u=s.length-1;u>=0;u--){const f=s[u];if(f.children)return f.id}return B}})(),d=s.map(u=>{var f;let p;const m=((f=u.options.params)==null?void 0:f.parse)??u.options.parseParams;if(m)try{const v=m(c);Object.assign(c,v)}catch(v){if(p=new on(v.message,{cause:v}),e!=null&&e.throwOnError)throw p;return p}}),h=[],a=u=>(u==null?void 0:u.id)?u.context??this.options.context??void 0:this.options.context??void 0;return s.forEach((u,f)=>{var p,m;const v=h[f-1],[g,w,S]=(()=>{const O=(v==null?void 0:v.search)??o.search,Pt=(v==null?void 0:v._strictSearch)??void 0;try{const j=ie(u.options.validateSearch,{...O})??void 0;return[{...O,...j},{...Pt,...j},void 0]}catch(j){let Y=j;if(j instanceof At||(Y=new At(j.message,{cause:j})),e!=null&&e.throwOnError)throw Y;return[O,{},Y]}})(),R=((m=(p=u.options).loaderDeps)==null?void 0:m.call(p,{search:g}))??"",x=R?JSON.stringify(R):"",{usedParams:C,interpolatedPath:L}=bt({path:u.fullPath,params:c,decodeCharMap:this.pathParamsDecodeCharMap}),b=bt({path:u.id,params:c,leaveWildcards:!0,decodeCharMap:this.pathParamsDecodeCharMap,parseCache:this.parsePathnameCache}).interpolatedPath+x,E=this.getMatch(b),_=this.state.matches.find(O=>O.routeId===u.id),M=_?"stay":"enter";let k;if(E)k={...E,cause:M,params:_?A(_.params,c):c,_strictParams:C,search:A(_?_.search:E.search,g),_strictSearch:w};else{const O=u.options.loader||u.options.beforeLoad||u.lazyFn||eo(u)?"pending":"success";k={id:b,index:f,routeId:u.id,params:_?A(_.params,c):c,_strictParams:C,pathname:z([this.basepath,L]),updatedAt:Date.now(),search:_?A(_.search,g):g,_strictSearch:w,searchError:void 0,status:O,isFetching:!1,error:void 0,paramsError:d[f],__routeContext:void 0,_nonReactive:{loadPromise:ct()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:M,loaderDeps:_?A(_.loaderDeps,R):R,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:u.options.staticData||{},fullPath:u.fullPath}}e!=null&&e.preload||(k.globalNotFound=i===u.id),k.searchError=S;const N=a(v);k.context={...N,...k.__routeContext,...k.__beforeLoadContext},h.push(k)}),h.forEach((u,f)=>{const p=this.looseRoutesById[u.routeId];if(!this.getMatch(u.id)&&(e==null?void 0:e._buildLocation)!==!0){const v=h[f-1],g=a(v);if(p.options.context){const w={deps:u.loaderDeps,params:u.params,context:g??{},location:o,navigate:S=>this.navigate({...S,_fromLocation:o}),buildLocation:this.buildLocation,cause:u.cause,abortController:u.abortController,preload:!!u.preload,matches:h};u.__routeContext=p.options.context(w)??void 0}u.context={...g,...u.__routeContext,...u.__beforeLoadContext}}}),h}}class At extends Error{}class on extends Error{}const Ie=t=>t.endsWith("/")&&t.length>1?t.slice(0,-1):t;function Te(t,o){return Ie(t)===Ie(o)}function nn(t){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:t,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function ie(t,o){if(t==null)return{};if("~standard"in t){const e=t["~standard"].validate(o);if(e instanceof Promise)throw new At("Async validation not supported");if(e.issues)throw new At(JSON.stringify(e.issues,void 0,2),{cause:e});return e.value}return"parse"in t?t.parse(o):typeof t=="function"?t(o):{}}const rn=.5,sn=.4,an=.25,cn=.05,ln=.02,un=.01,ke=2e-4,Oe=1e-4;function Fe(t,o){return t.prefixSegment&&t.suffixSegment?o+cn+ke*t.prefixSegment.length+Oe*t.suffixSegment.length:t.prefixSegment?o+ln+ke*t.prefixSegment.length:t.suffixSegment?o+un+Oe*t.suffixSegment.length:o}
1function dn({routeTree:t,initRoute:o}){const e={},n={},r=i=>{i.forEach((d,h)=>{o==null||o(d,h);const a=e[d.id];if(K(!a,`Duplicate routes found with id: ${String(d.id)}`),e[d.id]=d,!d.isRoot&&d.path){const f=ut(d.fullPath);(!n[f]||d.fullPath.endsWith("/"))&&(n[f]=d)}const u=d.children;u!=null&&u.length&&r(u)})};r([t]);const s=[];Object.values(e).forEach((i,d)=>{var h;if(i.isRoot||!i.path)return;const a=le(i.fullPath);let u=dt(a),f=0;for(;u.length>f+1&&((h=u[f])==null?void 0:h.value)==="/";)f++;f>0&&(u=u.slice(f));let p=0,m=!1;const v=u.map((g,w)=>{if(g.value==="/")return .75;let S;if(g.type===et?S=rn:g.type===lt?(S=sn,p++):g.type===ot&&(S=an),S){for(let R=w+1;R<u.length;R++){const x=u[R];if(x.type===U&&x.value!=="/")return m=!0,Fe(g,S+.2)}return Fe(g,S)}return 1});s.push({child:i,trimmed:a,parsed:u,index:d,scores:v,optionalParamCount:p,hasStaticAfter:m})});const l=s.sort((i,d)=>{const h=Math.min(i.scores.length,d.scores.length);for(let a=0;a<h;a++)if(i.scores[a]!==d.scores[a])return d.scores[a]-i.scores[a];if(i.scores.length!==d.scores.length){if(i.optionalParamCount!==d.optionalParamCount){if(i.hasStaticAfter===d.hasStaticAfter)return i.optionalParamCount-d.optionalParamCount;if(i.hasStaticAfter&&!d.hasStaticAfter)return-1;if(!i.hasStaticAfter&&d.hasStaticAfter)return 1}return d.scores.length-i.scores.length}for(let a=0;a<h;a++)if(i.parsed[a].value!==d.parsed[a].value)return i.parsed[a].value>d.parsed[a].value?1:-1;return i.index-d.index}).map((i,d)=>(i.child.rank=d,i.child));return{routesById:e,routesByPath:n,flatRoutes:l}}function hn({pathname:t,routePathname:o,basepath:e,caseSensitive:n,routesByPath:r,routesById:s,flatRoutes:c,parseCache:l}){let i={};const d=ut(t),h=p=>{var m;return re(e,d,{to:p.fullPath,caseSensitive:((m=p.options)==null?void 0:m.caseSensitive)??n,fuzzy:!0},l)};let a=o!==void 0?r[o]:void 0;if(a)i=h(a);else{let p;for(const m of c){const v=h(m);if(v)if(m.path!=="/"&&v["**"])p||(p={foundRoute:m,routeParams:v});else{a=m,i=v;break}}!a&&p&&(a=p.foundRoute,i=p.routeParams)}let u=a||s[B];const f=[u];for(;u.parentRoute;)u=u.parentRoute,f.push(u);return f.reverse(),{matchedRoutes:f,routeParams:i,foundRoute:a}}function fn({search:t,dest:o,destRoutes:e,_includeValidateSearch:n}){const r=e.reduce((l,i)=>{var d;const h=[];if("search"in i.options)(d=i.options.search)!=null&&d.middlewares&&h.push(...i.options.search.middlewares);else if(i.options.preSearchFilters||i.options.postSearchFilters){const a=({search:u,next:f})=>{let p=u;"preSearchFilters"in i.options&&i.options.preSearchFilters&&(p=i.options.preSearchFilters.reduce((v,g)=>g(v),u));const m=f(p);return"postSearchFilters"in i.options&&i.options.postSearchFilters?i.options.postSearchFilters.reduce((v,g)=>g(v),m):m};h.push(a)}if(n&&i.options.validateSearch){const a=({search:u,next:f})=>{const p=f(u);try{return{...p,...ie(i.options.validateSearch,p)??void 0}}catch{return p}};h.push(a)}return l.concat(h)},[])??[],s=({search:l})=>o.search?o.search===!0?l:Q(o.search,l):{};r.push(s);const c=(l,i)=>{if(l>=r.length)return i;const d=r[l];return d({search:i,next:a=>c(l+1,a)})};return c(0,t)}const pn="Error preloading route! âï¸";class no{constructor(o){if(this.init=e=>{var n,r;this.originalIndex=e.originalIndex;const s=this.options,c=!(s!=null&&s.path)&&!(s!=null&&s.id);this.parentRoute=(r=(n=this.options).getParentRoute)==null?void 0:r.call(n),c?this._path=B:this.parentRoute||K(!1);let l=c?B:s==null?void 0:s.path;l&&l!=="/"&&(l=le(l));const i=(s==null?void 0:s.id)||l;let d=c?B:z([this.parentRoute.id===B?"":this.parentRoute.id,i]);l===B&&(l="/"),d!==B&&(d=z(["/",d]));const h=d===B?"/":z([this.parentRoute.fullPath,l]);this._path=l,this._id=d,this._fullPath=h,this._to=h},this.clone=e=>{this._path=e._path,this._id=e._id,this._fullPath=e._fullPath,this._to=e._to,this.options.getParentRoute=e.options.getParentRoute,this.children=e.children},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=o||{},this.isRoot=!(o!=null&&o.getParentRoute),o!=null&&o.id&&(o!=null&&o.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}}class mn extends no{constructor(o){super(o)}}function ue(t){const o=t.errorComponent??Dt;return y.jsx(vn,{getResetKey:t.getResetKey,onCatch:t.onCatch,children:({error:e,reset:n})=>e?P.createElement(o,{error:e,reset:n}):t.children})}class vn extends P.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(o){return{resetKey:o.getResetKey()}}static getDerivedStateFromError(o){return{error:o}}reset(){this.setState({error:null})}componentDidUpdate(o,e){e.error&&e.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(o,e){this.props.onCatch&&this.props.onCatch(o,e)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function Dt({error:t}){const[o,e]=P.useState(!1);return y.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[y.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),y.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>e(n=>!n),children:o?"Hide Error":"Show Error"})]}),y.jsx("div",{style:{height:".25rem"}}),o?y.jsx("div",{children:y.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:t.message?y.jsx("code",{children:t.message}):null})}):null]})}function gn({children:t,fallback:o=null}){return yn()?y.jsx(St.Fragment,{children:t}):y.jsx(St.Fragment,{children:o})}function yn(){return St.useSyncExternalStore(_n,()=>!0,()=>!1)}function _n(){return()=>{}}var Gt={exports:{}},qt={},Jt={exports:{}},Yt={};/** 2 * @license React 3 * use-sync-external-store-shim.production.js 4 * 5 * Copyright (c) Meta Platforms, Inc. and affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var $e;function Sn(){if($e)return Yt;$e=1;var t=Ke();function o(a,u){return a===u&&(a!==0||1/a===1/u)||a!==a&&u!==u}var e=typeof Object.is=="function"?Object.is:o,n=t.useState,r=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(a,u){var f=u(),p=n({inst:{value:f,getSnapshot:u}}),m=p[0].inst,v=p[1];return s(function(){m.value=f,m.getSnapshot=u,i(m)&&v({inst:m})},[a,f,u]),r(function(){return i(m)&&v({inst:m}),a(function(){i(m)&&v({inst:m})})},[a]),c(f),f}function i(a){var u=a.getSnapshot;a=a.value;try{var f=u();return!e(a,f)}catch{return!0}}function d(a,u){return u()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:l;return Yt.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:h,Yt}var Ae;function Rn(){return Ae||(Ae=1,Jt.exports=Sn()),Jt.exports}/** 10 * @license React 11 * use-sync-external-store-shim/with-selector.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 Be;function Pn(){if(Be)return qt;Be=1;var t=Ke(),o=Rn();function e(d,h){return d===h&&(d!==0||1/d===1/h)||d!==d&&h!==h}var n=typeof Object.is=="function"?Object.is:e,r=o.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,i=t.useDebugValue;return qt.useSyncExternalStoreWithSelector=function(d,h,a,u,f){var p=s(null);if(p.current===null){var m={hasValue:!1,value:null};p.current=m}else m=p.current;p=l(function(){function g(C){if(!w){if(w=!0,S=C,C=u(C),f!==void 0&&m.hasValue){var L=m.value;if(f(L,C))return R=L}return R=C}if(L=R,n(S,C))return L;var b=u(C);return f!==void 0&&f(L,b)?(S=C,L):(S=C,R=b)}var w=!1,S,R,x=a===void 0?null:a;return[function(){return g(h())},x===null?void 0:function(){return g(x())}]},[h,a,u,f]);var v=r(d,p[0],p[1]);return c(function(){m.hasValue=!0,m.value=v},[v]),i(v),v},qt}var De;function xn(){return De||(De=1,Gt.exports=Pn()),Gt.exports}var wn=xn();function Ln(t,o=e=>e){return wn.useSyncExternalStoreWithSelector(t.subscribe,()=>t.state,()=>t.state,o,bn)}function bn(t,o){if(Object.is(t,o))return!0;
17if(typeof t!="object"||t===null||typeof o!="object"||o===null)return!1;if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(const[n,r]of t)if(!o.has(n)||!Object.is(r,o.get(n)))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(const n of t)if(!o.has(n))return!1;return!0}if(t instanceof Date&&o instanceof Date)return t.getTime()===o.getTime();const e=je(t);if(e.length!==je(o).length)return!1;for(let n=0;n<e.length;n++)if(!Object.prototype.hasOwnProperty.call(o,e[n])||!Object.is(t[e[n]],o[e[n]]))return!1;return!0}function je(t){return Object.keys(t).concat(Object.getOwnPropertySymbols(t))}const Xt=P.createContext(null);function ro(){return typeof document>"u"?Xt:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Xt,Xt)}function $(t){const o=P.useContext(ro());return t==null||t.warn,o}function T(t){const o=$({warn:(t==null?void 0:t.router)===void 0}),e=(t==null?void 0:t.router)||o,n=P.useRef(void 0);return Ln(e.__store,r=>{if(t!=null&&t.select){if(t.structuralSharing??e.options.defaultStructuralSharing){const s=A(n.current,t.select(r));return n.current=s,s}return t.select(r)}return r})}const jt=P.createContext(void 0),Cn=P.createContext(void 0);function D(t){const o=P.useContext(t.from?Cn:jt);return T({select:n=>{const r=n.matches.find(s=>t.from?t.from===s.routeId:s.id===o);if(K(!((t.shouldThrow??!0)&&!r),`Could not find ${t.from?`an active match from "${t.from}"`:"a nearest match!"}`),r!==void 0)return t.select?t.select(r):r},structuralSharing:t.structuralSharing})}function de(t){return D({from:t.from,strict:t.strict,structuralSharing:t.structuralSharing,select:o=>t.select?t.select(o.loaderData):o.loaderData})}function he(t){const{select:o,...e}=t;return D({...e,select:n=>o?o(n.loaderDeps):n.loaderDeps})}function fe(t){return D({from:t.from,strict:t.strict,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,select:o=>t.select?t.select(o.params):o.params})}function pe(t){return D({from:t.from,strict:t.strict,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,select:o=>t.select?t.select(o.search):o.search})}function me(t){const{navigate:o,state:e}=$(),n=D({strict:!1,select:r=>r.index});return P.useCallback(r=>{const s=r.from??(t==null?void 0:t.from)??e.matches[n].fullPath;return o({...r,from:s})},[t==null?void 0:t.from,o])}const Mt=typeof window<"u"?P.useLayoutEffect:P.useEffect;function Zt(t){const o=P.useRef({value:t,prev:null}),e=o.current.value;return t!==e&&(o.current={value:t,prev:e}),o.current.prev}function Mn(t,o,e={},n={}){P.useEffect(()=>{if(!t.current||n.disabled||typeof IntersectionObserver!="function")return;const r=new IntersectionObserver(([s])=>{o(s)},e);return r.observe(t.current),()=>{r.disconnect()}},[o,e,n.disabled,t])}function En(t){const o=P.useRef(null);return P.useImperativeHandle(t,()=>o.current,[]),o}function In(t,o){const e=$(),[n,r]=P.useState(!1),s=P.useRef(!1),c=En(o),{activeProps:l,inactiveProps:i,activeOptions:d,to:h,preload:a,preloadDelay:u,hashScrollIntoView:f,replace:p,startTransition:m,resetScroll:v,viewTransition:g,children:w,target:S,disabled:R,style:x,className:C,onClick:L,onFocus:b,onMouseEnter:E,onMouseLeave:_,onTouchStart:M,ignoreBlocker:k,params:N,search:O,hash:Pt,state:j,mask:Y,reloadDocument:ve,unsafeRelative:co,from:er,_fromLocation:or,...ge}=t,ye=P.useMemo(()=>{try{return new URL(h),"external"}catch{}return"internal"},[h]),lo=T({select:I=>I.location.search,structuralSharing:!0}),ht=D({strict:!1,select:I=>t.from??I.fullPath}),X=P.useMemo(()=>e.buildLocation({...t,from:ht}),[e,lo,t._fromLocation,ht,t.hash,t.to,t.search,t.params,t.state,t.mask,t.unsafeRelative]),Nt=ye==="external",nt=t.reloadDocument||Nt?!1:a??e.options.defaultPreload,Vt=u??e.options.defaultPreloadDelay??0,Wt=T({select:I=>{if(Nt)return!1;if(d!=null&&d.exact){if(!wo(I.location.pathname,X.pathname,e.basepath))return!1}else{const F=kt(I.location.pathname,e.basepath),H=kt(X.pathname,e.basepath);if(!(F.startsWith(H)&&(F.length===H.length||F[H.length]==="/")))return!1}return((d==null?void 0:d.includeSearch)??!0)&&!at(I.location.search,X.search,{partial:!(d!=null&&d.exact),ignoreUndefined:!(d!=null&&d.explicitUndef
17ined)})?!1:d!=null&&d.includeHash?I.location.hash===X.hash:!0}}),Z=P.useCallback(()=>{e.preloadRoute({...t,from:ht}).catch(I=>{console.warn(I),console.warn(pn)})},[e,t.to,t._fromLocation,ht,t.search,t.hash,t.params,t.state,t.mask,t.unsafeRelative,t.hashScrollIntoView,t.href,t.ignoreBlocker,t.reloadDocument,t.replace,t.resetScroll,t.viewTransition]),uo=P.useCallback(I=>{I!=null&&I.isIntersecting&&Z()},[Z]);if(Mn(c,uo,$n,{disabled:!!R||nt!=="viewport"}),P.useEffect(()=>{s.current||!R&&nt==="render"&&(Z(),s.current=!0)},[R,Z,nt]),Nt)return{...ge,ref:c,type:ye,href:h,...w&&{children:w},...S&&{target:S},...R&&{disabled:R},...x&&{style:x},...C&&{className:C},...L&&{onClick:L},...b&&{onFocus:b},...E&&{onMouseEnter:E},..._&&{onMouseLeave:_},...M&&{onTouchStart:M}};const ho=I=>{if(!R&&!An(I)&&!I.defaultPrevented&&(!S||S==="_self")&&I.button===0){I.preventDefault(),vo.flushSync(()=>{r(!0)});const F=e.subscribe("onResolved",()=>{F(),r(!1)});e.navigate({...t,from:ht,replace:p,resetScroll:v,hashScrollIntoView:f,startTransition:m,viewTransition:g,ignoreBlocker:k})}},_e=I=>{R||nt&&Z()},fo=_e,po=I=>{if(!(R||!nt))if(!Vt)Z();else{const F=I.target;if(pt.has(F))return;const H=setTimeout(()=>{pt.delete(F),Z()},Vt);pt.set(F,H)}},mo=I=>
17{if(R||!nt||!Vt)return;const F=I.target,H=pt.get(F);H&&(clearTimeout(H),pt.delete(F))},xt=Wt?Q(l,{})??Tn:Qt,wt=Wt?Qt:Q(i,{})??Qt,Se=[C,xt.className,wt.className].filter(Boolean).join(" "),Re=(x||xt.style||wt.style)&&{...x,...xt.style,...wt.style};return{...ge,...xt,...wt,href:R?void 0:X.maskedLocation?e.history.createHref(X.maskedLocation.href):e.history.createHref(X.href),ref:c,onClick:mt([L,ho]),onFocus:mt([b,_e]),onMouseEnter:mt([E,po]),onMouseLeave:mt([_,mo]),onTouchStart:mt([M,fo]),disabled:!!R,target:S,...Re&&{style:Re},...Se&&{className:Se},...R&&kn,...Wt&&On,...n&&Fn}}const Qt={},Tn={className:"active"},kn={role:"link","aria-disabled":!0},On={"data-status":"active","aria-current":"page"},Fn={"data-transitioning":"transitioning"},pt=new WeakMap,$n={rootMargin:"100px"},mt=t=>o=>{t.filter(Boolean).forEach(e=>{o.defaultPrevented||e(o)})},so=P.forwardRef((t,o)=>{const{_asChild:e,...n}=t,{type:r,ref:s,...c}=In(n,o),l=typeof n.children=="function"?n.children({isActive:c["data-status"]==="active"}):n.children;return e===void 0&&delete c.disabled,P.createElement(e||"a",{...c,ref:s},l)});function An(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}class Bn extends no{constructor(o){super(o),this.useMatch=e=>D({select:e==null?void 0:e.select,from:this.id,structuralSharing:e==null?void 0:e.structuralSharing}),this.useRouteContext=e=>D({...e,from:this.id,select:n=>e!=null&&e.select?e.select(n.context):n.context}),this.useSearch=e=>pe({select:e==null?void 0:e.select,structuralSharing:e==null?void 0:e.structuralSharing,from:this.id}),this.useParams=e=>fe({select:e==null?void 0:e.select,structuralSharing:e==null?void 0:e.structuralSharing,from:this.id}),this.useLoaderDeps=e=>he({...e,from:this.id}),this.useLoaderData=e=>de({...e,from:this.id}),this.useNavigate=()=>me({from:this.fullPath}),this.Link=St.forwardRef((e,n)=>y.jsx(so,{ref:n,from:this.fullPath,...e})),this.$$typeof=Symbol.for("react.memo")}}function Dn(t){return new Bn(t)}class jn extends mn{constructor(o){super(o),this.useMatch=e=>D({select:e==null?void 0:e.select,from:this.id,structuralSharing:e==null?void 0:e.structuralSharing}),this.useRouteContext=e=>D({...e,from:this.id,select:n=>e!=null&&e.select?e.select(n.context):n.context}),this.useSearch=e=>pe({select:e==null?void 0:e.select,structuralSharing:e==null?void 0:e.structuralSharing,from:this.id}),this.useParams=e=>fe({select:e==null?void 0:e.select,structuralSharing:e==null?void 0:e.structuralSharing,from:this.id}),this.useLoaderDeps=e=>he({...e,from:this.id}),this.useLoaderData=e=>de({...e,from:this.id}),this.useNavigate=()=>me({from:this.fullPath}),this.Link=St.forwardRef((e,n)=>y.jsx(so,{ref:n,from:this.fullPath,...e})),this.$$typeof=Symbol.for("react.memo")}}function ir(t){return new jn(t)}function Ne(t){return typeof t=="object"?new Ve(t,{silent:!0}).createRoute(t):new Ve(t,{silent:!0}).createRoute}class Ve{constructor(o,e){this.path=o,this.createRoute=n=>{this.silent;const r=Dn(n);return r.isRoot=!1,r},this.silent=e==null?void 0:e.silent}}class We{constructor(o){this.useMatch=e=>D({select:e==null?void 0:e.select,from:this.options.id,structuralSharing:e==null?void 0:e.structuralSharing}),this.useRouteContext=e=>D({from:this.options.id,select:n=>e!=null&&e.select?e.select(n.context):n.context}),this.useSearch=e=>pe({select:e==null?void 0:e.select,structuralSharing:e==null?void 0:e.structuralSharing,from:this.options.id}),this.useParams=e=>fe({select:e==null?void 0:e.select,structuralSharing:e==null?void 0:e.structuralSharing,from:this.options.id}),this.useLoaderDeps=e=>he({...e,from:this.options.id}),this.useLoaderData=e=>de({...e,from:this.options.id}),this.useNavigate=()=>{const e=$();return me({from:e.routesById[this.options.id].fullPath})},this.options=o,this.$$typeof=Symbol.for("react.memo")}}function Ue(t){return typeof t=="object"?new We(t):o=>new We({id:t,...o})}function Nn(){const t=$(),o=P.useRef({router:t,mounted:!1}),[e,n]=P.useState(!1),{hasPendingMatches:r,isLoading:s}=T({select:a=>({isLoading:a.isLoading,hasPendingMatches:a.matches.some(u=>u.status==="pending")}),structuralSharing:!0}),c=Zt(s),l=s||e||r,i=Zt(l),d=s||r,h=Zt(d);return t.startTransition=a=>{n(!0),P.startTransition(()=>{a(),n(!1)})},P.useEffect(()=>{const a=t.history.subscribe(t.load),u=t.buildLocation({to:t.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return ut(t.latestLocation.href)!==ut(u.href)&&t.commitLocation({...u,replace:!0}),()=>{a()}},[t,t.history]),Mt(()=>{if(typeof window<"u"&&t.ssr||o.current.router===t&&o.current.mounted)return;o.current={router:t,mounted:!0},(async()=>{try{await t.load()}catch(u){console.error(u)}})()},[t]),Mt(()=>{c&&!s&&t.emit({type:"onLoad",...tt(t.state)})},[c,t,s]),Mt(()=>{h&&!d&&t.emit({type:"onBeforeRouteMount",...tt(t.state)})},[d,h,t]),Mt(()=>{i&&!l&&(t.emit({type:"onResolved",...tt(t.state)}),t.__store.setState(a=>({...a,status:"idle",resolvedLocation:a.location})),Vo(t))},[l,i,t]),null}function Vn(t){const o=T({select:e=>`not-found-${e.location.pathname}-${e.status}`});return y.jsx(ue,{getResetKey:()=>o,onCatch:(e,n)=>{var r;if(W(e))(r=t.onCatch)==null||r.call(t,e,n);else throw e},errorComponent:({error:e})=>{var n;if(W(e))return(n=t.fallback)==null?void 0:n.call(t,e);throw e},children:t.children})}function Wn(){return y.jsx("p",{children:"Not Found"})}function rt(t){return y.jsx(y.Fragment,{children:t.children})}function io(t,o,e){return o.options.notFoundComponent?y.jsx(o.options.notFoundComponent,{data:e}):t.options.defaultNotFoundComponent?y.jsx(t.options.defaultNotFoundComponent,{data:e}):y.jsx(Wn,{})}function Un({children:t}){return typeof document<"u"?null:y.jsx("script",{className:"$tsr",dangerouslySetInnerHTML:{__html:[t].filter(
17Boolean).join(` 18`)}})}function zn(){const t=$(),e=(t.options.getScrollRestorationKey||se)(t.latestLocation),n=e!==se(t.latestLocation)?e:void 0;if(!t.isScrollRestoring||!t.isServer)return null;const r={storageKey:Ft,shouldScrollRestoration:!0};return n&&(r.key=n),y.jsx(Un,{children:`(${Je.toString()})(${JSON.stringify(r)})`})}const ao=P.memo(function({matchId:o}){var e,n;const r=$(),s=T({select:S=>{const R=S.matches.find(x=>x.id===o);return K(R),{routeId:R.routeId,ssr:R.ssr,_displayPending:R._displayPending}},structuralSharing:!0}),c=r.routesById[s.routeId],l=c.options.pendingComponent??r.options.defaultPendingComponent,i=l?y.jsx(l,{}):null,d=c.options.errorComponent??r.options.defaultErrorComponent,h=c.options.onCatch??r.options.defaultOnCatch,a=c.isRoot?c.options.notFoundComponent??((e=r.options.notFoundRoute)==null?void 0:e.options.component):c.options.notFoundComponent,u=s.ssr===!1||s.ssr==="data-only",f=(!c.isRoot||c.options.wrapInSuspense||u)&&(c.options.wrapInSuspense??l??(((n=c.options.errorComponent)==null?void 0:n.preload)||u))?P.Suspense:rt,p=d?ue:rt,m=a?Vn:rt,v=T({select:S=>S.loadedAt}),g=T({select:S=>{var R;const x=S.matches.findIndex(C=>C.id===o);return(R=S.matches[x-1])==null?void 0:R.routeId}}),w=c.isRoot?c.options.shellComponent??rt:rt;return y.jsxs(w,{children:[y.jsx(jt.Provider,{value:o,children:y.jsx(f,{fallback:i,children:y.jsx(p,{getResetKey:()=>v,errorComponent:d||Dt,onCatch:(S,R)=>{if(W(S))throw S;h==null||h(S,R)},children:y.jsx(m,{fallback:S=>
18{if(!a||S.routeId&&S.routeId!==s.routeId||!S.routeId&&!c.isRoot)throw S;return P.createElement(a,S)},children:u||s._displayPending?y.jsx(gn,{fallback:i,children:y.jsx(ze,{matchId:o})}):y.jsx(ze,{matchId:o})})})})}),g===B&&r.options.scrollRestoration?y.jsxs(y.Fragment,{children:[y.jsx(Kn,{}),y.jsx(zn,{})]}):null]})});function Kn(){const t=$(),o=P.useRef(void 0);return y.jsx("script",{suppressHydrationWarning:!0,ref:e=>{e&&(o.current===void 0||o.current.href!==t.latestLocation.href)&&(t.emit({type:"onRendered",...tt(t.state)}),o.current=t.latestLocation)}},t.latestLocation.state.__TSR_key)}const ze=P.memo(function({matchId:o}){var e,n,r,s;const c=$(),{match:l,key:i,routeId:d}=T({select:u=>{const f=u.matches.find(w=>w.id===o),p=f.routeId,m=c.routesById[p].options.remountDeps??c.options.defaultRemountDeps,v=m==null?void 0:m({routeId:p,loaderDeps:f.loaderDeps,params:f._strictParams,search:f._strictSearch});return{key:v?JSON.stringify(v):void 0,routeId:p,match:{id:f.id,status:f.status,error:f.error,_forcePending:f._forcePending,_displayPending:f._displayPending}}},structuralSharing:!0}),h=c.routesById[d],a=P.useMemo(()=>{const u=h.options.component??c.options.defaultComponent;return u?y.jsx(u,{},i):y.jsx(Hn,{})},[i,h.options.component,c.options.defaultComponent]);if(l._displayPending)throw(e=c.getMatch(l.id))==null?void 0:e._nonReactive.displayPendingPromise;if(l._forcePending)throw(n=c.getMatch(l.id))==null?void 0:n._nonReactive.minPendingPromise;if(l.status==="pending"){const u=h.options.pendingMinMs??c.options.defaultPendingMinMs;if(u){const f=c.getMatch(l.id);if(f&&!f._nonReactive.minPendingPromise&&!c.isServer){const p=ct();f._nonReactive.minPendingPromise=p,setTimeout(()=>{p.resolve(),f._nonReactive.minPendingPromise=void 0},u)}}throw(r=c.getMatch(l.id))==null?void 0:r._nonReactive.loadPromise}if(l.status==="notFound")return K(W(l.error)),io(c,h,l.error);if(l.status==="redirected")throw K(V(l.error)),(s=c.getMatch(l.id))==null?void 0:s._nonReactive.loadPromise;if(l.status==="error"){if(c.isServer){const u=(h.options.errorComponent??c.options.defaultErrorComponent)||Dt;return y.jsx(u,{error:l.error,reset:void 0,info:{componentStack:""}})}throw l.error}return a}),Hn=P.memo(function(){const o=$(),e=P.useContext(jt),n=T({select:d=>{var h;return(h=d.matches.find(a=>a.id===e))==null?void 0:h.routeId}}),r=o.routesById[n],s=T({select:d=>{const a=d.matches.find(u=>u.id===e);return K(a),a.globalNotFound}}),c=T({select:d=>{var h;const a=d.matches,u=a.findIndex(f=>f.id===e);return(h=a[u+1])==null?void 0:h.id}}),l=o.options.defaultPendingComponent?y.jsx(o.options.defaultPendingComponent,{}):null;if(s)return io(o,r,void 0);if(!c)return null;const i=y.jsx(ao,{matchId:c});return e===B?y.jsx(P.Suspense,{fallback:l,children:i}):i});function Gn(){const t=$(),o=t.options.defaultPendingComponent?y.jsx(t.options.defaultPendingComponent,{}):null,e=t.isServer||typeof document<"u"&&t.ssr?rt:P.Suspense,n=y.jsxs(e,{fallback:o,children:[!t.isServer&&y.jsx(Nn,{}),y.jsx(qn,{})]});return t.options.InnerWrap?y.jsx(t.options.InnerWrap,{children:n}):n}function qn(){const t=$(),o=T({select:r=>{var s;return(s=r.matches[0])==null?void 0:s.id}}),e=T({select:r=>r.loadedAt}),n=o?y.jsx(ao,{matchId:o}):null;return y.jsx(jt.Provider,{value:o,children:t.options.disableGlobalCatchBoundary?n:y.jsx(ue,{getResetKey:()=>e,errorComponent:Dt,onCatch:r=>{r.message||r.toString()},children:n})})}const ar=t=>new Jn(t);class Jn extends en{constructor(o){super(o)}}typeof globalThis<"u"?(globalThis.createFileRoute=Ne,globalThis.createLazyFileRoute=Ue):typeof window<"u"&&(window.createFileRoute=Ne,window.createLazyFileRoute=Ue);function Yn({router:t,children:o,...e}){Object.keys(e).length>0&&t.update({...t.options,...e,context:{...t.options.context,...e.context}});const n=ro(),r=y.jsx(n.Provider,{value:t,children:o});return t.options.Wrap?y.jsx(t.options.Wrap,{children:r}):r}function cr({router:t,...o}){return y.jsx(Yn,{router:t,...o,children:y.jsx(Gn,{})})}function Xn({tag:t,attrs:o,children:e}){switch(t){case"title":return y.jsx("title",{...o,suppressHydrationWarning:!0,children:e});case"meta":return y.jsx("meta",{...o,suppressHydrationWarning:!0});case"link":return y.jsx("link",{...o,suppressHydrationWarning:!0});case"style":return y.jsx("style",{...o,dangerouslySetInnerHTML:{__html:e}});case"script":return y.jsx(Zn,{attrs:o,children:e});default:return null}}function Zn({attrs:t,children:o}){return P.useEffect(()=>{if(t!=null&&t.src){const e=document.createElement("script");for(const[n,r]of Object.entries(t))n!=="suppressHydrationWarning"&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r=="boolean"?"":String(r));return document.head.appendChild(e),()=>{e.parentNode&&e.parentNode.removeChild(e)}}
18if(typeof o=="string"){const e=document.createElement("script");if(e.textContent=o,t)for(const[n,r]of Object.entries(t))n!=="suppressHydrationWarning"&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r=="boolean"?"":String(r));return document.head.appendChild(e),()=>{e.parentNode&&e.parentNode.removeChild(e)}}},[t,o]),t!=null&&t.src&&typeof t.src=="string"?y.jsx("script",{...t,suppressHydrationWarning:!0}):typeof o=="string"?y.jsx("script",{...t,dangerouslySetInnerHTML:{__html:o},suppressHydrationWarning:!0}):null}const Qn=()=>{const t=$(),o=T({select:l=>l.matches.map(i=>i.meta).filter(Boolean)}),e=P.useMemo(()=>{const l=[],i={};let d;for(let h=o.length-1;h>=0;h--){const a=o[h];for(let u=a.length-1;u>=0;u--){const f=a[u];if(f)if(f.title)d||(d={tag:"title",children:f.title});else{const p=f.name??f.property;if(p){if(i[p])continue;i[p]=!0}l.push({tag:"meta",attrs:{...f}})}}}return d&&l.push(d),l.reverse(),l},[o]),n=T({select:l=>{var i;const d=l.matches.map(u=>u.links).filter(Boolean).flat(1).map(u=>({tag:"link",attrs:{...u}})),h=(i=t.ssr)==null?void 0:i.manifest,a=l.matches.map(u=>{var f;return((f=h==null?void 0:h.routes[u.routeId])==null?void 0:f.assets)??[]}).filter(Boolean).flat(1).filter(u=>u.tag==="link").map(u=>({tag:"link",attrs:{...u.attrs,suppressHydrationWarning:!0}}));return[...d,...a]},structuralSharing:!0}),r=T({select:l=>{const i=[];return l.matches.map(d=>t.looseRoutesById[d.routeId]).forEach(d=>{var h,a,u,f;return(f=(u=(a=(h=t.ssr)==null?void 0:h.manifest)==null?void 0:a.routes[d.id])==null?void 0:u.preloads)==null?void 0:f.filter(Boolean).forEach(p=>{i.push({tag:"link",attrs:{rel:"modulepreload",href:p}})})}),i},structuralSharing:!0}),s=T({select:l=>l.matches.map(i=>i.styles).flat(1).filter(Boolean).map(({children:i,...d})=>({tag:"style",attrs:d,children:i})),structuralSharing:!0}),c=T({select:l=>l.matches.map(i=>i.headScripts).flat(1).filter(Boolean).map(({children:i,...d})=>({tag:"script",attrs:{...d},children:i})),structuralSharing:!0});return tr([...e,...r,...n,...s,...c],l=>JSON.stringify(l))};function lr(){return Qn().map(o=>P.createElement(Xn,{...o,key:`tsr-meta-${JSON.stringify(o)}`}))}function tr(t,o){const e=new Set;return t.filter(n=>{const r=o(n);return e.has(r)?!1:(e.add(r),!0)})}export{lr as H,so as L,Hn as O,cr as R,Ne as a,ar as b,ir as c,Ue as d,sr as n,T 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.